// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //////////////////////////////////////////////////////////////////////////////// using System; namespace System.Runtime.InteropServices { //| [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct | AttributeTargets.Delegate, Inherited = false)] public sealed class GuidAttribute : Attribute { public GuidAttribute(String guid); } //| [AttributeUsage(AttributeTargets.Parameter, Inherited = false)] public sealed class InAttribute : Attribute { //| public InAttribute(); } //| [AttributeUsage(AttributeTargets.Parameter, Inherited = false)] public sealed class OutAttribute : Attribute { //| public OutAttribute(); } //| [AttributeUsage(AttributeTargets.Parameter, Inherited = false)] public sealed class OptionalAttribute : Attribute { //| public OptionalAttribute(); } //| [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false)] public sealed class StructLayoutAttribute : Attribute { public StructLayoutAttribute(LayoutKind layoutKind); //| public StructLayoutAttribute(short layoutKind); //| public int Pack; //| public int Size; } //| [AttributeUsage(AttributeTargets.Field, Inherited = false)] public sealed class FieldOffsetAttribute : Attribute { public FieldOffsetAttribute(int offset); } //| [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] public sealed class ComCompatibleVersionAttribute : Attribute { //| public ComCompatibleVersionAttribute(int major, int minor, int build, int revision); } public enum GCOption { NONE = 0, GCFRIEND = 1, NOGC = 2, NOSTGC = 3, } [AttributeUsage(AttributeTargets.Method, Inherited = false)] public sealed class GCAnnotationAttribute : Attribute { public GCAnnotationAttribute(GCOption options ); } }