Export (0) Print
Expand All

IMetaDataEmit::DefinePinvokeMap Method

Sets features of the PInvoke signature of the method referenced by the specified token.

HRESULT DefinePinvokeMap ( 
    [in]  mdToken            tk, 
    [in]  DWORD              dwMappingFlags, 
    [in]  LPCWSTR            szImportName, 
    [in]  mdModuleRef        mrImportDLL 
);

tk

[in] The token for the target method.

dwMappingFlags

[in] Flags used by PInvoke to do the mapping.

szImportName

[in] The name of the target export method in an unmanaged DLL.

mrImportDLL

[in] The token for the target native DLL.

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Used as a resource in MSCorEE.dll

.NET Framework Versions: 4.6 RC, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

Show:
© 2015 Microsoft