IMetaDataImport2::GetPEKind method (rometadataapi.h)
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
[out] pdwPEKind
A pointer to a value of the CorPEKind enumeration that describes the PE file.
[out] pdwMAchine
A pointer to a value that identifies the architecture of the machine. See the next section for possible values.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | rometadataapi.h |