Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Gets a ModuleRef token to represent the target assembly of a PInvoke call.
HRESULT GetPinvokeMap (
   [in]  mdToken       tk,
   [out] DWORD         *pdwMappingFlags,
   [out] LPWSTR        szImportName,
   [in]  ULONG         cchImportName,
   [out] ULONG         *pchImportName,
   [out] mdModuleRef   *pmrImportDLL
);
Parameters
tk
[in] A FieldDef or MethodDef token to get the PInvoke mapping metadata for.pdwMappingFlags
[out] A pointer to flags used for mapping. This value is a bitmask from the CorPinvokeMap enumeration.szImportName
[out] The name of the unmanaged target DLL.cchImportName
[in] The size in wide characters of szImportName.pchImportName
[out] The number of wide characters returned in szImportName.pmrImportDLL
[out] A pointer to a ModuleRef token that represents the unmanaged target object library.
Requirements
Platforms: See .NET Framework System Requirements.
Header: Cor.h
Library: Included as a resource in MsCorEE.dll
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0