Marshal (class)

This type is found in the namespace System.Runtime.InteropServices

mPtrToStringAnsiString
mPtrToStringAnsiString
mPtrToStringUniString
mPtrToStringAutoString
mPtrToStringUniString
mPtrToStringAutoString
mSizeOfInt32
mSizeOfInt32
mOffsetOfIntPtr
mCopyVoid
mCopyVoid
mCopyVoid
mCopyVoid
mCopyVoid
mCopyVoid
mCopyVoid
mCopyVoid
mCopyVoid
mCopyVoid
mCopyVoid
mCopyVoid
mCopyVoid
mCopyVoid
mCopyVoid
mCopyVoid
mReadByteByte
mReadByteByte
mReadInt16Int16
mReadInt16Int16
mReadInt32Int32
mReadInt32Int32
mReadIntPtrIntPtr
mReadIntPtrIntPtr
mReadIntPtrIntPtr
mReadInt64Int64
mReadInt64Int64
mWriteByteVoid
mWriteByteVoid
mWriteInt16Void
mWriteInt16Void
mWriteInt16Void
mWriteInt16Void
mWriteInt16Void
mWriteInt32Void
mWriteInt32Void
mWriteIntPtrVoid
mWriteIntPtrVoid
mWriteIntPtrVoid
mWriteInt64Void
mWriteInt64Void
mGetHRForLastWin32ErrorInt32
mPrelinkVoid
mPrelinkAllVoid
mNumParamBytesInt32
mPtrToStructureVoid
mPtrToStructureObject
mGetHINSTANCEIntPtr
mThrowExceptionForHRVoid
mThrowExceptionForHRVoid
mGetExceptionForHRException
mGetExceptionForHRException
mGetThreadFromFiberCookieThread
mAllocHGlobalIntPtr
mAllocHGlobalIntPtr
mFreeHGlobalVoid
mReAllocHGlobalIntPtr
mStringToHGlobalAnsiIntPtr
mStringToHGlobalUniIntPtr
mStringToHGlobalAutoIntPtr
mGetTypeLibNameString
mGetTypeLibNameString
mGetTypeLibGuidGuid
mGetTypeLibGuidGuid
mGetTypeLibLcidInt32
mGetTypeLibGuidForAssemblyGuid
mGetTypeLibVersionForAssemblyVoid
mGetTypeInfoNameString
mGetTypeInfoNameString
mGetTypeFromCLSIDType
mGetIUnknownForObjectIntPtr
mGetIUnknownForObjectInContextIntPtr
mGetIDispatchForObjectIntPtr
mGetIDispatchForObjectInContextIntPtr
mGetComInterfaceForObjectIntPtr
mGetComInterfaceForObjectIntPtr
mGetComInterfaceForObjectInContextIntPtr
mAllocCoTaskMemIntPtr
mStringToCoTaskMemUniIntPtr
mStringToCoTaskMemAutoIntPtr
mStringToCoTaskMemAnsiIntPtr
mFreeCoTaskMemVoid
mReAllocCoTaskMemIntPtr
mReleaseComObjectInt32
mFinalReleaseComObjectInt32
mGetComObjectDataObject
mSetComObjectDataBoolean
mCreateWrapperOfTypeObject
mReleaseThreadCacheVoid
mFreeBSTRVoid
mStringToBSTRIntPtr
mPtrToStringBSTRString
mGetComSlotForMethodInfoInt32
mGenerateGuidForTypeGuid
mGenerateProgIdForTypeString
mBindToMonikerObject
mGetActiveObjectObject
mGetDelegateForFunctionPointerDelegate
mGetFunctionPointerForDelegateIntPtr
mSecureStringToBSTRIntPtr
mSecureStringToCoTaskMemAnsiIntPtr
mSecureStringToCoTaskMemUnicodeIntPtr
mZeroFreeBSTRVoid
mZeroFreeCoTaskMemAnsiVoid
mZeroFreeCoTaskMemUnicodeVoid
mSecureStringToGlobalAllocAnsiIntPtr
mSecureStringToGlobalAllocUnicodeIntPtr
mZeroFreeGlobalAllocAnsiVoid
mZeroFreeGlobalAllocUnicodeVoid
mSizeOfInt32
mSizeOfInt32
mOffsetOfIntPtr
mUnsafeAddrOfPinnedArrayElementIntPtr
mReadByteByte
mReadInt16Int16
mReadInt32Int32
mReadInt64Int64
mWriteByteVoid
mWriteInt16Void
mWriteInt32Void
mWriteInt64Void
mGetExceptionPointersIntPtr
mGetExceptionCodeInt32
mStructureToPtrVoid
mPtrToStructureVoid
mPtrToStructure
mDestroyStructureVoid
mGetHRForExceptionInt32
mGetUnmanagedThunkForManagedMethodPtrIntPtr
mGetManagedThunkForUnmanagedMethodPtrIntPtr
mGetTypeLibLcidInt32
mGetTypeForITypeInfoType
mGetITypeInfoForTypeIntPtr
mGetComInterfaceForObjectIntPtr
mGetUniqueObjectForIUnknownObject
mGetTypedObjectForIUnknownObject
mCreateAggregatedObjectIntPtr
mCreateAggregatedObjectIntPtr
mCleanupUnusedObjectsInCurrentContextVoid
mAreComObjectsAvailableForCleanupBoolean
mCreateWrapperOfType
mIsTypeVisibleFromComBoolean
mAddRefInt32
mGetNativeVariantForObjectVoid
mGetNativeVariantForObjectVoid
mGetObjectForNativeVariantObject
mGetObjectForNativeVariant
mGetObjectsForNativeVariantsObject[]
mGetObjectsForNativeVariants
mGetStartComSlotInt32
mGetEndComSlotInt32
mGetMethodInfoForComSlotMemberInfo
mChangeWrapperHandleStrengthVoid
mGetDelegateForFunctionPointer
mGetFunctionPointerForDelegateIntPtr
mUnsafeAddrOfPinnedArrayElementIntPtr
mGetLastWin32ErrorInt32
mStructureToPtrVoid
mDestroyStructureVoid
mGetObjectForIUnknownObject
mIsComObjectBoolean
mQueryInterfaceInt32
mReleaseInt32
mEqualsBoolean
mGetHashCodeInt32
mGetTypeType
mToStringString
fSystemDefaultCharSizeInt32
fSystemMaxDBCSCharSizeInt32

PtrToStringAnsi

PtrToStringAnsi

ptrSystem.IntPtr

PtrToStringUni

ptrSystem.IntPtr
lenSystem.Int32

PtrToStringAuto

ptrSystem.IntPtr
lenSystem.Int32

PtrToStringUni

ptrSystem.IntPtr
lenSystem.Int32

PtrToStringAuto

ptrSystem.IntPtr

SizeOf

ptrSystem.IntPtr

SizeOf

structureSystem.Object

OffsetOf

tSystem.Type

Copy

tSystem.Type
fieldNameSystem.String

Copy

sourceSystem.Int32[]
startIndexSystem.Int32
destinationSystem.IntPtr
lengthSystem.Int32

Copy

sourceSystem.Char[]
startIndexSystem.Int32
destinationSystem.IntPtr
lengthSystem.Int32

Copy

sourceSystem.Int16[]
startIndexSystem.Int32
destinationSystem.IntPtr
lengthSystem.Int32

Copy

sourceSystem.Int64[]
startIndexSystem.Int32
destinationSystem.IntPtr
lengthSystem.Int32

Copy

sourceSystem.Single[]
startIndexSystem.Int32
destinationSystem.IntPtr
lengthSystem.Int32

Copy

sourceSystem.Double[]
startIndexSystem.Int32
destinationSystem.IntPtr
lengthSystem.Int32

Copy

sourceSystem.Byte[]
startIndexSystem.Int32
destinationSystem.IntPtr
lengthSystem.Int32

Copy

sourceSystem.IntPtr[]
startIndexSystem.Int32
destinationSystem.IntPtr
lengthSystem.Int32

Copy

sourceSystem.IntPtr
destinationSystem.Int32[]
startIndexSystem.Int32
lengthSystem.Int32

Copy

sourceSystem.IntPtr
destinationSystem.Char[]
startIndexSystem.Int32
lengthSystem.Int32

Copy

sourceSystem.IntPtr
destinationSystem.Int16[]
startIndexSystem.Int32
lengthSystem.Int32

Copy

sourceSystem.IntPtr
destinationSystem.Int64[]
startIndexSystem.Int32
lengthSystem.Int32

Copy

sourceSystem.IntPtr
destinationSystem.Single[]
startIndexSystem.Int32
lengthSystem.Int32

Copy

sourceSystem.IntPtr
destinationSystem.Double[]
startIndexSystem.Int32
lengthSystem.Int32

Copy

sourceSystem.IntPtr
destinationSystem.Byte[]
startIndexSystem.Int32
lengthSystem.Int32

ReadByte

sourceSystem.IntPtr
destinationSystem.IntPtr[]
startIndexSystem.Int32
lengthSystem.Int32

ReadByte

ptrSystem.IntPtr
ofsSystem.Int32

ReadInt16

ptrSystem.IntPtr

ReadInt16

ptrSystem.IntPtr
ofsSystem.Int32

ReadInt32

ptrSystem.IntPtr

ReadInt32

ptrSystem.IntPtr
ofsSystem.Int32

ReadIntPtr

ptrSystem.IntPtr

ReadIntPtr

ptrSystem.Object
ofsSystem.Int32

ReadIntPtr

ptrSystem.IntPtr
ofsSystem.Int32

ReadInt64

ptrSystem.IntPtr

ReadInt64

ptrSystem.IntPtr
ofsSystem.Int32

WriteByte

ptrSystem.IntPtr

WriteByte

ptrSystem.IntPtr
ofsSystem.Int32
valSystem.Byte

WriteInt16

ptrSystem.IntPtr
valSystem.Byte

WriteInt16

ptrSystem.IntPtr
ofsSystem.Int32
valSystem.Int16

WriteInt16

ptrSystem.IntPtr
valSystem.Int16

WriteInt16

ptrSystem.IntPtr
ofsSystem.Int32
valSystem.Char

WriteInt16

ptrSystem.Object
ofsSystem.Int32
valSystem.Char

WriteInt32

ptrSystem.IntPtr
valSystem.Char

WriteInt32

ptrSystem.IntPtr
ofsSystem.Int32
valSystem.Int32

WriteIntPtr

ptrSystem.IntPtr
valSystem.Int32

WriteIntPtr

ptrSystem.IntPtr
ofsSystem.Int32
valSystem.IntPtr

WriteIntPtr

ptrSystem.Object
ofsSystem.Int32
valSystem.IntPtr

WriteInt64

ptrSystem.IntPtr
valSystem.IntPtr

WriteInt64

ptrSystem.IntPtr
ofsSystem.Int32
valSystem.Int64

GetHRForLastWin32Error

ptrSystem.IntPtr
valSystem.Int64

Prelink

.

PrelinkAll

mSystem.Reflection.MethodInfo

NumParamBytes

cSystem.Type

PtrToStructure

mSystem.Reflection.MethodInfo

PtrToStructure

ptrSystem.IntPtr
structureSystem.Object

GetHINSTANCE

ptrSystem.IntPtr
structureTypeSystem.Type

ThrowExceptionForHR

mSystem.Reflection.Module

ThrowExceptionForHR

errorCodeSystem.Int32

GetExceptionForHR

errorCodeSystem.Int32
errorInfoSystem.IntPtr

GetExceptionForHR

errorCodeSystem.Int32

GetThreadFromFiberCookie

errorCodeSystem.Int32
errorInfoSystem.IntPtr

AllocHGlobal

cookieSystem.Int32

AllocHGlobal

cbSystem.IntPtr

FreeHGlobal

cbSystem.Int32

ReAllocHGlobal

hglobalSystem.IntPtr

StringToHGlobalAnsi

pvSystem.IntPtr
cbSystem.IntPtr

StringToHGlobalUni

sSystem.String

StringToHGlobalAuto

sSystem.String

GetTypeLibName

sSystem.String

GetTypeLibName

pTLBSystem.Runtime.InteropServices.UCOMITypeLib

GetTypeLibGuid

typelibSystem.Runtime.InteropServices.ComTypes.ITypeLib

GetTypeLibGuid

pTLBSystem.Runtime.InteropServices.UCOMITypeLib

GetTypeLibLcid

typelibSystem.Runtime.InteropServices.ComTypes.ITypeLib

GetTypeLibGuidForAssembly

pTLBSystem.Runtime.InteropServices.UCOMITypeLib

GetTypeLibVersionForAssembly

asmSystem.Reflection.Assembly

GetTypeInfoName

inputAssemblySystem.Reflection.Assembly
majorVersionSystem.Int32&
minorVersionSystem.Int32&

GetTypeInfoName

pTISystem.Runtime.InteropServices.UCOMITypeInfo

GetTypeFromCLSID

typeInfoSystem.Runtime.InteropServices.ComTypes.ITypeInfo

GetIUnknownForObject

clsidSystem.Guid

GetIUnknownForObjectInContext

oSystem.Object

GetIDispatchForObject

oSystem.Object

GetIDispatchForObjectInContext

oSystem.Object

GetComInterfaceForObject

oSystem.Object

GetComInterfaceForObject

oSystem.Object
TSystem.Type

GetComInterfaceForObjectInContext

oSystem.Object
TSystem.Type
modeSystem.Runtime.InteropServices.CustomQueryInterfaceMode

AllocCoTaskMem

oSystem.Object
tSystem.Type

StringToCoTaskMemUni

cbSystem.Int32

StringToCoTaskMemAuto

sSystem.String

StringToCoTaskMemAnsi

sSystem.String

FreeCoTaskMem

sSystem.String

ReAllocCoTaskMem

ptrSystem.IntPtr

ReleaseComObject

pvSystem.IntPtr
cbSystem.Int32

FinalReleaseComObject

oSystem.Object

GetComObjectData

oSystem.Object

SetComObjectData

objSystem.Object
keySystem.Object

CreateWrapperOfType

objSystem.Object
keySystem.Object
dataSystem.Object

ReleaseThreadCache

oSystem.Object
tSystem.Type

FreeBSTR

.

StringToBSTR

ptrSystem.IntPtr

PtrToStringBSTR

sSystem.String

GetComSlotForMethodInfo

ptrSystem.IntPtr

GenerateGuidForType

mSystem.Reflection.MemberInfo

GenerateProgIdForType

typeSystem.Type

BindToMoniker

typeSystem.Type

GetActiveObject

monikerNameSystem.String

GetDelegateForFunctionPointer

progIDSystem.String

GetFunctionPointerForDelegate

ptrSystem.IntPtr
tSystem.Type

SecureStringToBSTR

dSystem.Delegate

SecureStringToCoTaskMemAnsi

sSystem.Security.SecureString

SecureStringToCoTaskMemUnicode

sSystem.Security.SecureString

ZeroFreeBSTR

sSystem.Security.SecureString

ZeroFreeCoTaskMemAnsi

sSystem.IntPtr

ZeroFreeCoTaskMemUnicode

sSystem.IntPtr

SecureStringToGlobalAllocAnsi

sSystem.IntPtr

SecureStringToGlobalAllocUnicode

sSystem.Security.SecureString

ZeroFreeGlobalAllocAnsi

sSystem.Security.SecureString

ZeroFreeGlobalAllocUnicode

sSystem.IntPtr

SizeOf

sSystem.IntPtr

SizeOf

structureSystem.Runtime.InteropServices.

OffsetOf

.

UnsafeAddrOfPinnedArrayElement

fieldNameSystem.String

ReadByte

arrSystem.Runtime.InteropServices.
indexSystem.Int32

ReadInt16

ptrSystem.Object
ofsSystem.Int32

ReadInt32

ptrSystem.Object
ofsSystem.Int32

ReadInt64

ptrSystem.Object
ofsSystem.Int32

WriteByte

ptrSystem.Object
ofsSystem.Int32

WriteInt16

ptrSystem.Object
ofsSystem.Int32
valSystem.Byte

WriteInt32

ptrSystem.Object
ofsSystem.Int32
valSystem.Int16

WriteInt64

ptrSystem.Object
ofsSystem.Int32
valSystem.Int32

GetExceptionPointers

ptrSystem.Object
ofsSystem.Int32
valSystem.Int64

GetExceptionCode

.

StructureToPtr

.

PtrToStructure

structureSystem.Runtime.InteropServices.
ptrSystem.IntPtr
fDeleteOldSystem.Boolean

PtrToStructure

ptrSystem.IntPtr
structureSystem.Runtime.InteropServices.

DestroyStructure

ptrSystem.IntPtr

GetHRForException

ptrSystem.IntPtr

GetUnmanagedThunkForManagedMethodPtr

eSystem.Exception

GetManagedThunkForUnmanagedMethodPtr

pfnMethodToWrapSystem.IntPtr
pbSignatureSystem.IntPtr
cbSignatureSystem.Int32

GetTypeLibLcid

pfnMethodToWrapSystem.IntPtr
pbSignatureSystem.IntPtr
cbSignatureSystem.Int32

GetTypeForITypeInfo

typelibSystem.Runtime.InteropServices.ComTypes.ITypeLib

GetITypeInfoForType

piTypeInfoSystem.IntPtr

GetComInterfaceForObject

tSystem.Type

GetUniqueObjectForIUnknown

oSystem.Runtime.InteropServices.

GetTypedObjectForIUnknown

unknownSystem.IntPtr

CreateAggregatedObject

pUnkSystem.IntPtr
tSystem.Type

CreateAggregatedObject

pOuterSystem.IntPtr
oSystem.Object

CleanupUnusedObjectsInCurrentContext

pOuterSystem.IntPtr
oSystem.Runtime.InteropServices.

AreComObjectsAvailableForCleanup

.

CreateWrapperOfType

.

IsTypeVisibleFromCom

oSystem.Runtime.InteropServices.

AddRef

tSystem.Type

GetNativeVariantForObject

pUnkSystem.IntPtr

GetNativeVariantForObject

objSystem.Object
pDstNativeVariantSystem.IntPtr

GetObjectForNativeVariant

objSystem.Runtime.InteropServices.
pDstNativeVariantSystem.IntPtr

GetObjectForNativeVariant

pSrcNativeVariantSystem.IntPtr

GetObjectsForNativeVariants

pSrcNativeVariantSystem.IntPtr

GetObjectsForNativeVariants

aSrcNativeVariantSystem.IntPtr
cVarsSystem.Int32

GetStartComSlot

aSrcNativeVariantSystem.IntPtr
cVarsSystem.Int32

GetEndComSlot

tSystem.Type

GetMethodInfoForComSlot

tSystem.Type

ChangeWrapperHandleStrength

tSystem.Type
slotSystem.Int32
memberTypeSystem.Runtime.InteropServices.ComMemberType&

GetDelegateForFunctionPointer

otpSystem.Object
fIsWeakSystem.Boolean

GetFunctionPointerForDelegate

ptrSystem.IntPtr

UnsafeAddrOfPinnedArrayElement

dSystem.Runtime.InteropServices.

GetLastWin32Error

arrSystem.Array
indexSystem.Int32

StructureToPtr

.

DestroyStructure

structureSystem.Object
ptrSystem.IntPtr
fDeleteOldSystem.Boolean

GetObjectForIUnknown

ptrSystem.IntPtr
structuretypeSystem.Type

IsComObject

pUnkSystem.IntPtr

QueryInterface

oSystem.Object

Release

pUnkSystem.IntPtr
iidSystem.Guid&
ppvSystem.IntPtr&

Equals

pUnkSystem.IntPtr

GetHashCode

objSystem.Object

GetType

.

ToString

.

SystemDefaultCharSize

.

SystemMaxDBCSCharSize

.
.