Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Sets or changes features of a method's PInvoke signature, as defined by a prior call to IMetaDataEmit::DefinePinvokeMap.
Syntax
HRESULT SetPinvokeMap (
[in] mdToken tk,
[in] DWORD dwMappingFlags,
[in] LPCWSTR szImportName,
[in] mdModuleRef mrImportDLL
);
Parameters
tk
[in] The mdToken to which mapping information applies.
dwMappingFlags
[in] Flags used by PInvoke to do the mapping. This is a bitmask of CorPinvokeMap values.
szImportName
[in] The name of the target export in the native DLL.
mrImportDLL
[in] The mdModuleRef token for the target unmanaged DLL.
Requirements
Platforms: See .NET supported operating systems.
Header: Cor.h
Library: CorGuids.lib