Share via


IMetaDataEmit::SetPinvokeMap Method

Sets or changes features of a method's PInvoke signature, as defined by a prior call to IMetaDataEmit::DefinePinvokeMap Method.

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

Parameters

Parameter Description

tk

[in] The mdToken to which mapping information applies.

dwMappingFlags

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

szImportName

[in] The name of the target export in the native DLL.

mrImportDLL

[in] The mdModuleRef token for the target unmanaged DLL.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Used as a resource in Mscoree.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

IMetaDataEmit Interface
IMetaDataEmit2 Interface