IMetaDataImport2::GetPEKind Method
Gets a value identifying the nature of the code in the portable executable (PE) file, typically a DLL or EXE file, that is defined in the current metadata scope.
Syntax
HRESULT GetPEKind (
[out] DWORD *pdwPEKind,
[out] DWORD *pdwMachine
);
Parameters
pdwPEKind
[out] A pointer to a value of the CorPEKind enumeration that describes the PE file.
pdwMachine
[out] A pointer to a value that identifies the architecture of the machine. See the next section for possible values.
Remarks
The value referenced by the pdwMachine
parameter can be one of the following.
Value | Machine architecture |
---|---|
IMAGE_FILE_MACHINE_I386 0x014C |
x86 |
IMAGE_FILE_MACHINE_IA64 0x0200 |
Intel IPF |
IMAGE_FILE_MACHINE_AMD64 0x8664 |
x64 |
Requirements
Platforms: See System Requirements.
Header: Cor.h
Library: Used as a resource in MsCorEE.dll
.NET Framework Versions: Available since 2.0
See also
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.