-- Autogenerated by MSIL2Ada v. 2
-- By: Martin C. Carlisle
--     Department of Computer Science
--     US Air Force Academy
--     carlislem@acm.org
pragma Extensions_Allowed(On);
with MSSyst.Object;
with MSIL_Types;
use MSIL_Types;
with type MSSyst.IntPtr.Valuetype is tagged;
with type MSSyst.Object.Ref is access;
with type MSSyst.String.Ref is access;
with type MSSyst.Type_k.Ref is access;
with type MSSyst.Guid.Valuetype is tagged;
with type MSSyst.Reflection.MemberInfo.Ref is access;
with type MSSyst.Reflection.Module.Ref is access;
with type MSSyst.Exception_k.Ref is access;
with MSSyst.Runtime.InteropServices.ComMemberType;
with type MSSyst.Object.Ref_array is access;
with type MSSyst.Threading.Thread.Ref is access;
with type MSSyst.Runtime.InteropServices.UCOMITypeInfo.Ref is access;
with type MSSyst.Runtime.InteropServices.UCOMITypeLib.Ref is access;
with type MSSyst.Reflection.Assembly.Ref is access;
with type MSSyst.Reflection.MethodInfo.Ref is access;
with MSSyst.Guid;
with MSSyst.IntPtr;
with type MSSyst.Array_k.Ref is access;
with MSSyst.Object;
package MSSyst.Runtime.InteropServices.Marshal is
   type Typ;
   type Ref is access all Typ'Class;
   type Ref_addrof is access all Ref;
   type Ref_Arr is array(Natural range <>) of Ref;
   type Ref_Array is access all Ref_Arr;
   type Ref_Array_addrof is access all Ref_Array;
   type Typ is new MSSyst.Object.Typ with record
      null;
   end record;
   SystemDefaultCharSize : Integer;
   pragma Import(MSIL,SystemDefaultCharSize,"SystemDefaultCharSize");
   SystemMaxDBCSCharSize : Integer;
   pragma Import(MSIL,SystemMaxDBCSCharSize,"SystemMaxDBCSCharSize");
   function AddRef(
      pUnk : MSSyst.IntPtr.Valuetype) return Integer;
   function AllocCoTaskMem(
      cb : Integer) return MSSyst.IntPtr.Valuetype;
   function AllocHGlobal(
      cb : Integer) return MSSyst.IntPtr.Valuetype;
   function AllocHGlobal(
      cb : MSSyst.IntPtr.Valuetype) return MSSyst.IntPtr.Valuetype;
   function BindToMoniker(
      monikerName : MSSyst.String.Ref) return MSSyst.Object.Ref;
   procedure ChangeWrapperHandleStrength(
      otp : MSSyst.Object.Ref;
      fIsWeak : Standard.Boolean);
   procedure Copy(
      source : MSIL_Types.Int64_Arr;
      startIndex : Integer;
      destination : MSSyst.IntPtr.Valuetype;
      length : Integer);
   procedure Copy(
      source : MSIL_Types.Float64_Arr;
      startIndex : Integer;
      destination : MSSyst.IntPtr.Valuetype;
      length : Integer);
   procedure Copy(
      source : MSIL_Types.Float32_Arr;
      startIndex : Integer;
      destination : MSSyst.IntPtr.Valuetype;
      length : Integer);
   procedure Copy(
      source : MSIL_Types.Int32_Arr;
      startIndex : Integer;
      destination : MSSyst.IntPtr.Valuetype;
      length : Integer);
   procedure Copy(
      source : MSIL_Types.Char_Arr;
      startIndex : Integer;
      destination : MSSyst.IntPtr.Valuetype;
      length : Integer);
   procedure Copy(
      source : MSIL_Types.Int16_Arr;
      startIndex : Integer;
      destination : MSSyst.IntPtr.Valuetype;
      length : Integer);
   procedure Copy(
      source : MSIL_Types.unsigned_int8_Arr;
      startIndex : Integer;
      destination : MSSyst.IntPtr.Valuetype;
      length : Integer);
   procedure Copy(
      source : MSSyst.IntPtr.Valuetype;
      destination : MSIL_Types.Float32_Arr;
      startIndex : Integer;
      length : Integer);
   procedure Copy(
      source : MSSyst.IntPtr.Valuetype;
      destination : MSIL_Types.Float64_Arr;
      startIndex : Integer;
      length : Integer);
   procedure Copy(
      source : MSSyst.IntPtr.Valuetype;
      destination : MSIL_Types.unsigned_int8_Arr;
      startIndex : Integer;
      length : Integer);
   procedure Copy(
      source : MSSyst.IntPtr.Valuetype;
      destination : MSIL_Types.Int64_Arr;
      startIndex : Integer;
      length : Integer);
   procedure Copy(
      source : MSSyst.IntPtr.Valuetype;
      destination : MSIL_Types.Int32_Arr;
      startIndex : Integer;
      length : Integer);
   procedure Copy(
      source : MSSyst.IntPtr.Valuetype;
      destination : MSIL_Types.Char_Arr;
      startIndex : Integer;
      length : Integer);
   procedure Copy(
      source : MSSyst.IntPtr.Valuetype;
      destination : MSIL_Types.Int16_Arr;
      startIndex : Integer;
      length : Integer);
   function CreateWrapperOfType(
      o : MSSyst.Object.Ref;
      t : MSSyst.Type_k.Ref) return MSSyst.Object.Ref;
   procedure DestroyStructure(
      ptr : MSSyst.IntPtr.Valuetype;
      structuretype : MSSyst.Type_k.Ref);
   procedure FreeBSTR(
      ptr : MSSyst.IntPtr.Valuetype);
   procedure FreeCoTaskMem(
      ptr : MSSyst.IntPtr.Valuetype);
   procedure FreeHGlobal(
      hglobal : MSSyst.IntPtr.Valuetype);
   function GenerateGuidForType(
      type_k : MSSyst.Type_k.Ref) return MSSyst.Guid.Valuetype;
   function GenerateProgIdForType(
      type_k : MSSyst.Type_k.Ref) return MSSyst.String.Ref;
   function GetActiveObject(
      progID : MSSyst.String.Ref) return MSSyst.Object.Ref;
   function GetComInterfaceForObject(
      o : MSSyst.Object.Ref;
      T : MSSyst.Type_k.Ref) return MSSyst.IntPtr.Valuetype;
   function GetComObjectData(
      obj : MSSyst.Object.Ref;
      key : MSSyst.Object.Ref) return MSSyst.Object.Ref;
   function GetComSlotForMethodInfo(
      m : MSSyst.Reflection.MemberInfo.Ref) return Integer;
   function GetEndComSlot(
      t : MSSyst.Type_k.Ref) return Integer;
   function GetExceptionCode return Integer;
   function GetExceptionPointers return MSSyst.IntPtr.Valuetype;
   function GetHINSTANCE(
      m : MSSyst.Reflection.Module.Ref) return MSSyst.IntPtr.Valuetype;
   function GetHRForException(
      e : MSSyst.Exception_k.Ref) return Integer;
   function GetHRForLastWin32Error return Integer;
   function GetIDispatchForObject(
      o : MSSyst.Object.Ref) return MSSyst.IntPtr.Valuetype;
   function GetITypeInfoForType(
      t : MSSyst.Type_k.Ref) return MSSyst.IntPtr.Valuetype;
   function GetIUnknownForObject(
      o : MSSyst.Object.Ref) return MSSyst.IntPtr.Valuetype;
   function GetLastWin32Error return Integer;
   function GetManagedThunkForUnmanagedMethodPtr(
      pfnMethodToWrap : MSSyst.IntPtr.Valuetype;
      pbSignature : MSSyst.IntPtr.Valuetype;
      cbSignature : Integer) return MSSyst.IntPtr.Valuetype;
   function GetMethodInfoForComSlot(
      t : MSSyst.Type_k.Ref;
      slot : Integer;
      memberType : MSSyst.Runtime.InteropServices.ComMemberType.Valuetype_addrof) return MSSyst.Reflection.MemberInfo.Ref;
   procedure GetNativeVariantForObject(
      obj : MSSyst.Object.Ref;
      pDstNativeVariant : MSSyst.IntPtr.Valuetype);
   function GetObjectForIUnknown(
      pUnk : MSSyst.IntPtr.Valuetype) return MSSyst.Object.Ref;
   function GetObjectForNativeVariant(
      pSrcNativeVariant : MSSyst.IntPtr.Valuetype) return MSSyst.Object.Ref;
   function GetObjectsForNativeVariants(
      aSrcNativeVariant : MSSyst.IntPtr.Valuetype;
      cVars : Integer) return MSSyst.Object.Ref_array;
   function GetStartComSlot(
      t : MSSyst.Type_k.Ref) return Integer;
   function GetThreadFromFiberCookie(
      cookie : Integer) return MSSyst.Threading.Thread.Ref;
   function GetTypedObjectForIUnknown(
      pUnk : MSSyst.IntPtr.Valuetype;
      t : MSSyst.Type_k.Ref) return MSSyst.Object.Ref;
   function GetTypeForITypeInfo(
      piTypeInfo : MSSyst.IntPtr.Valuetype) return MSSyst.Type_k.Ref;
   function GetTypeInfoName(
      pTI : MSSyst.Runtime.InteropServices.UCOMITypeInfo.Ref) return MSSyst.String.Ref;
   function GetTypeLibGuid(
      pTLB : MSSyst.Runtime.InteropServices.UCOMITypeLib.Ref) return MSSyst.Guid.Valuetype;
   function GetTypeLibGuidForAssembly(
      asm : MSSyst.Reflection.Assembly.Ref) return MSSyst.Guid.Valuetype;
   function GetTypeLibLcid(
      pTLB : MSSyst.Runtime.InteropServices.UCOMITypeLib.Ref) return Integer;
   function GetTypeLibName(
      pTLB : MSSyst.Runtime.InteropServices.UCOMITypeLib.Ref) return MSSyst.String.Ref;
   function GetUnmanagedThunkForManagedMethodPtr(
      pfnMethodToWrap : MSSyst.IntPtr.Valuetype;
      pbSignature : MSSyst.IntPtr.Valuetype;
      cbSignature : Integer) return MSSyst.IntPtr.Valuetype;
   function IsComObject(
      o : MSSyst.Object.Ref) return Standard.Boolean;
   function IsTypeVisibleFromCom(
      t : MSSyst.Type_k.Ref) return Standard.Boolean;
   function NumParamBytes(
      m : MSSyst.Reflection.MethodInfo.Ref) return Integer;
   function OffsetOf(
      t : MSSyst.Type_k.Ref;
      fieldName : MSSyst.String.Ref) return MSSyst.IntPtr.Valuetype;
   procedure Prelink(
      m : MSSyst.Reflection.MethodInfo.Ref);
   procedure PrelinkAll(
      c : MSSyst.Type_k.Ref);
   function PtrToStringAnsi(
      ptr : MSSyst.IntPtr.Valuetype;
      len : Integer) return MSSyst.String.Ref;
   function PtrToStringAnsi(
      ptr : MSSyst.IntPtr.Valuetype) return MSSyst.String.Ref;
   function PtrToStringAuto(
      ptr : MSSyst.IntPtr.Valuetype) return MSSyst.String.Ref;
   function PtrToStringAuto(
      ptr : MSSyst.IntPtr.Valuetype;
      len : Integer) return MSSyst.String.Ref;
   function PtrToStringBSTR(
      ptr : MSSyst.IntPtr.Valuetype) return MSSyst.String.Ref;
   function PtrToStringUni(
      ptr : MSSyst.IntPtr.Valuetype) return MSSyst.String.Ref;
   function PtrToStringUni(
      ptr : MSSyst.IntPtr.Valuetype;
      len : Integer) return MSSyst.String.Ref;
   procedure PtrToStructure(
      ptr : MSSyst.IntPtr.Valuetype;
      structure : MSSyst.Object.Ref);
   function PtrToStructure(
      ptr : MSSyst.IntPtr.Valuetype;
      structureType : MSSyst.Type_k.Ref) return MSSyst.Object.Ref;
   function QueryInterface(
      pUnk : MSSyst.IntPtr.Valuetype;
      iid : MSSyst.Guid.Valuetype_addrof;
      ppv : MSSyst.IntPtr.Valuetype_addrof) return Integer;
   function ReadByte(
      ptr : MSSyst.IntPtr.Valuetype) return MSIL_Types.unsigned_int8;
   function ReadByte(
      ptr : MSSyst.Object.Ref;
      ofs : Integer) return MSIL_Types.unsigned_int8;
   function ReadByte(
      ptr : MSSyst.IntPtr.Valuetype;
      ofs : Integer) return MSIL_Types.unsigned_int8;
   function ReadInt16(
      ptr : MSSyst.IntPtr.Valuetype) return MSIL_Types.int16;
   function ReadInt16(
      ptr : MSSyst.Object.Ref;
      ofs : Integer) return MSIL_Types.int16;
   function ReadInt16(
      ptr : MSSyst.IntPtr.Valuetype;
      ofs : Integer) return MSIL_Types.int16;
   function ReadInt32(
      ptr : MSSyst.IntPtr.Valuetype) return Integer;
   function ReadInt32(
      ptr : MSSyst.Object.Ref;
      ofs : Integer) return Integer;
   function ReadInt32(
      ptr : MSSyst.IntPtr.Valuetype;
      ofs : Integer) return Integer;
   function ReadInt64(
      ptr : MSSyst.IntPtr.Valuetype) return Long_Long_Integer;
   function ReadInt64(
      ptr : MSSyst.IntPtr.Valuetype;
      ofs : Integer) return Long_Long_Integer;
   function ReadInt64(
      ptr : MSSyst.Object.Ref;
      ofs : Integer) return Long_Long_Integer;
   function ReadIntPtr(
      ptr : MSSyst.IntPtr.Valuetype) return MSSyst.IntPtr.Valuetype;
   function ReadIntPtr(
      ptr : MSSyst.IntPtr.Valuetype;
      ofs : Integer) return MSSyst.IntPtr.Valuetype;
   function ReadIntPtr(
      ptr : MSSyst.Object.Ref;
      ofs : Integer) return MSSyst.IntPtr.Valuetype;
   function ReAllocCoTaskMem(
      pv : MSSyst.IntPtr.Valuetype;
      cb : Integer) return MSSyst.IntPtr.Valuetype;
   function ReAllocHGlobal(
      pv : MSSyst.IntPtr.Valuetype;
      cb : MSSyst.IntPtr.Valuetype) return MSSyst.IntPtr.Valuetype;
   function Release(
      pUnk : MSSyst.IntPtr.Valuetype) return Integer;
   function ReleaseComObject(
      o : MSSyst.Object.Ref) return Integer;
   procedure ReleaseThreadCache;
   function SetComObjectData(
      obj : MSSyst.Object.Ref;
      key : MSSyst.Object.Ref;
      data : MSSyst.Object.Ref) return Standard.Boolean;
   function SizeOf(
      t : MSSyst.Type_k.Ref) return Integer;
   function SizeOf(
      structure : MSSyst.Object.Ref) return Integer;
   function StringToBSTR(
      s : MSSyst.String.Ref) return MSSyst.IntPtr.Valuetype;
   function StringToCoTaskMemAnsi(
      s : MSSyst.String.Ref) return MSSyst.IntPtr.Valuetype;
   function StringToCoTaskMemAuto(
      s : MSSyst.String.Ref) return MSSyst.IntPtr.Valuetype;
   function StringToCoTaskMemUni(
      s : MSSyst.String.Ref) return MSSyst.IntPtr.Valuetype;
   function StringToHGlobalAnsi(
      s : MSSyst.String.Ref) return MSSyst.IntPtr.Valuetype;
   function StringToHGlobalAuto(
      s : MSSyst.String.Ref) return MSSyst.IntPtr.Valuetype;
   function StringToHGlobalUni(
      s : MSSyst.String.Ref) return MSSyst.IntPtr.Valuetype;
   procedure StructureToPtr(
      structure : MSSyst.Object.Ref;
      ptr : MSSyst.IntPtr.Valuetype;
      fDeleteOld : Standard.Boolean);
   procedure ThrowExceptionForHR(
      errorCode : Integer;
      errorInfo : MSSyst.IntPtr.Valuetype);
   procedure ThrowExceptionForHR(
      errorCode : Integer);
   function UnsafeAddrOfPinnedArrayElement(
      arr : MSSyst.Array_k.Ref;
      index : Integer) return MSSyst.IntPtr.Valuetype;
   procedure WriteByte(
      ptr : MSSyst.IntPtr.Valuetype;
      val : MSIL_Types.unsigned_int8);
   procedure WriteByte(
      ptr : MSSyst.Object.Ref;
      ofs : Integer;
      val : MSIL_Types.unsigned_int8);
   procedure WriteByte(
      ptr : MSSyst.IntPtr.Valuetype;
      ofs : Integer;
      val : MSIL_Types.unsigned_int8);
   procedure WriteInt16(
      ptr : MSSyst.IntPtr.Valuetype;
      ofs : Integer;
      val : Wide_Character);
   procedure WriteInt16(
      ptr : MSSyst.Object.Ref;
      ofs : Integer;
      val : Wide_Character);
   procedure WriteInt16(
      ptr : MSSyst.IntPtr.Valuetype;
      val : Wide_Character);
   procedure WriteInt16(
      ptr : MSSyst.IntPtr.Valuetype;
      ofs : Integer;
      val : MSIL_Types.int16);
   procedure WriteInt16(
      ptr : MSSyst.Object.Ref;
      ofs : Integer;
      val : MSIL_Types.int16);
   procedure WriteInt16(
      ptr : MSSyst.IntPtr.Valuetype;
      val : MSIL_Types.int16);
   procedure WriteInt32(
      ptr : MSSyst.IntPtr.Valuetype;
      ofs : Integer;
      val : Integer);
   procedure WriteInt32(
      ptr : MSSyst.Object.Ref;
      ofs : Integer;
      val : Integer);
   procedure WriteInt32(
      ptr : MSSyst.IntPtr.Valuetype;
      val : Integer);
   procedure WriteInt64(
      ptr : MSSyst.IntPtr.Valuetype;
      ofs : Integer;
      val : Long_Long_Integer);
   procedure WriteInt64(
      ptr : MSSyst.Object.Ref;
      ofs : Integer;
      val : Long_Long_Integer);
   procedure WriteInt64(
      ptr : MSSyst.IntPtr.Valuetype;
      val : Long_Long_Integer);
   procedure WriteIntPtr(
      ptr : MSSyst.IntPtr.Valuetype;
      ofs : Integer;
      val : MSSyst.IntPtr.Valuetype);
   procedure WriteIntPtr(
      ptr : MSSyst.Object.Ref;
      ofs : Integer;
      val : MSSyst.IntPtr.Valuetype);
   procedure WriteIntPtr(
      ptr : MSSyst.IntPtr.Valuetype;
      val : MSSyst.IntPtr.Valuetype);
private
   pragma Convention(MSIL,Typ);
   pragma Import(MSIL,AddRef,"AddRef");
   pragma Import(MSIL,AllocCoTaskMem,"AllocCoTaskMem");
   pragma Import(MSIL,AllocHGlobal,"AllocHGlobal");
   pragma Import(MSIL,BindToMoniker,"BindToMoniker");
   pragma Import(MSIL,ChangeWrapperHandleStrength,"ChangeWrapperHandleStrength");
   pragma Import(MSIL,Copy,"Copy");
   pragma Import(MSIL,CreateWrapperOfType,"CreateWrapperOfType");
   pragma Import(MSIL,DestroyStructure,"DestroyStructure");
   pragma Import(MSIL,FreeBSTR,"FreeBSTR");
   pragma Import(MSIL,FreeCoTaskMem,"FreeCoTaskMem");
   pragma Import(MSIL,FreeHGlobal,"FreeHGlobal");
   pragma Import(MSIL,GenerateGuidForType,"GenerateGuidForType");
   pragma Import(MSIL,GenerateProgIdForType,"GenerateProgIdForType");
   pragma Import(MSIL,GetActiveObject,"GetActiveObject");
   pragma Import(MSIL,GetComInterfaceForObject,"GetComInterfaceForObject");
   pragma Import(MSIL,GetComObjectData,"GetComObjectData");
   pragma Import(MSIL,GetComSlotForMethodInfo,"GetComSlotForMethodInfo");
   pragma Import(MSIL,GetEndComSlot,"GetEndComSlot");
   pragma Import(MSIL,GetExceptionCode,"GetExceptionCode");
   pragma Import(MSIL,GetExceptionPointers,"GetExceptionPointers");
   pragma Import(MSIL,GetHINSTANCE,"GetHINSTANCE");
   pragma Import(MSIL,GetHRForException,"GetHRForException");
   pragma Import(MSIL,GetHRForLastWin32Error,"GetHRForLastWin32Error");
   pragma Import(MSIL,GetIDispatchForObject,"GetIDispatchForObject");
   pragma Import(MSIL,GetITypeInfoForType,"GetITypeInfoForType");
   pragma Import(MSIL,GetIUnknownForObject,"GetIUnknownForObject");
   pragma Import(MSIL,GetLastWin32Error,"GetLastWin32Error");
   pragma Import(MSIL,GetManagedThunkForUnmanagedMethodPtr,"GetManagedThunkForUnmanagedMethodPtr");
   pragma Import(MSIL,GetMethodInfoForComSlot,"GetMethodInfoForComSlot");
   pragma Import(MSIL,GetNativeVariantForObject,"GetNativeVariantForObject");
   pragma Import(MSIL,GetObjectForIUnknown,"GetObjectForIUnknown");
   pragma Import(MSIL,GetObjectForNativeVariant,"GetObjectForNativeVariant");
   pragma Import(MSIL,GetObjectsForNativeVariants,"GetObjectsForNativeVariants");
   pragma Import(MSIL,GetStartComSlot,"GetStartComSlot");
   pragma Import(MSIL,GetThreadFromFiberCookie,"GetThreadFromFiberCookie");
   pragma Import(MSIL,GetTypedObjectForIUnknown,"GetTypedObjectForIUnknown");
   pragma Import(MSIL,GetTypeForITypeInfo,"GetTypeForITypeInfo");
   pragma Import(MSIL,GetTypeInfoName,"GetTypeInfoName");
   pragma Import(MSIL,GetTypeLibGuid,"GetTypeLibGuid");
   pragma Import(MSIL,GetTypeLibGuidForAssembly,"GetTypeLibGuidForAssembly");
   pragma Import(MSIL,GetTypeLibLcid,"GetTypeLibLcid");
   pragma Import(MSIL,GetTypeLibName,"GetTypeLibName");
   pragma Import(MSIL,GetUnmanagedThunkForManagedMethodPtr,"GetUnmanagedThunkForManagedMethodPtr");
   pragma Import(MSIL,IsComObject,"IsComObject");
   pragma Import(MSIL,IsTypeVisibleFromCom,"IsTypeVisibleFromCom");
   pragma Import(MSIL,NumParamBytes,"NumParamBytes");
   pragma Import(MSIL,OffsetOf,"OffsetOf");
   pragma Import(MSIL,Prelink,"Prelink");
   pragma Import(MSIL,PrelinkAll,"PrelinkAll");
   pragma Import(MSIL,PtrToStringAnsi,"PtrToStringAnsi");
   pragma Import(MSIL,PtrToStringAuto,"PtrToStringAuto");
   pragma Import(MSIL,PtrToStringBSTR,"PtrToStringBSTR");
   pragma Import(MSIL,PtrToStringUni,"PtrToStringUni");
   pragma Import(MSIL,PtrToStructure,"PtrToStructure");
   pragma Import(MSIL,QueryInterface,"QueryInterface");
   pragma Import(MSIL,ReadByte,"ReadByte");
   pragma Import(MSIL,ReadInt16,"ReadInt16");
   pragma Import(MSIL,ReadInt32,"ReadInt32");
   pragma Import(MSIL,ReadInt64,"ReadInt64");
   pragma Import(MSIL,ReadIntPtr,"ReadIntPtr");
   pragma Import(MSIL,ReAllocCoTaskMem,"ReAllocCoTaskMem");
   pragma Import(MSIL,ReAllocHGlobal,"ReAllocHGlobal");
   pragma Import(MSIL,Release,"Release");
   pragma Import(MSIL,ReleaseComObject,"ReleaseComObject");
   pragma Import(MSIL,ReleaseThreadCache,"ReleaseThreadCache");
   pragma Import(MSIL,SetComObjectData,"SetComObjectData");
   pragma Import(MSIL,SizeOf,"SizeOf");
   pragma Import(MSIL,StringToBSTR,"StringToBSTR");
   pragma Import(MSIL,StringToCoTaskMemAnsi,"StringToCoTaskMemAnsi");
   pragma Import(MSIL,StringToCoTaskMemAuto,"StringToCoTaskMemAuto");
   pragma Import(MSIL,StringToCoTaskMemUni,"StringToCoTaskMemUni");
   pragma Import(MSIL,StringToHGlobalAnsi,"StringToHGlobalAnsi");
   pragma Import(MSIL,StringToHGlobalAuto,"StringToHGlobalAuto");
   pragma Import(MSIL,StringToHGlobalUni,"StringToHGlobalUni");
   pragma Import(MSIL,StructureToPtr,"StructureToPtr");
   pragma Import(MSIL,ThrowExceptionForHR,"ThrowExceptionForHR");
   pragma Import(MSIL,UnsafeAddrOfPinnedArrayElement,"UnsafeAddrOfPinnedArrayElement");
   pragma Import(MSIL,WriteByte,"WriteByte");
   pragma Import(MSIL,WriteInt16,"WriteInt16");
   pragma Import(MSIL,WriteInt32,"WriteInt32");
   pragma Import(MSIL,WriteInt64,"WriteInt64");
   pragma Import(MSIL,WriteIntPtr,"WriteIntPtr");
end MSSyst.Runtime.InteropServices.Marshal;
pragma Extensions_Allowed(Off);
pragma Import(MSIL,MSSyst.Runtime.InteropServices.Marshal,
   ".ver 1.0.5000.0 .publickeytoken=( 96 9d b8 05 3d 33 22 ac )",
   "[mscorlib]System.Runtime.InteropServices.Marshal");
