Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

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.

ValueMachine architecture

IMAGE_FILE_MACHINE_I386

0x014C

x86

IMAGE_FILE_MACHINE_IA64

0x0200

Intel IPF

IMAGE_FILE_MACHINE_AMD64

0x8664

x64

 

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport2

 

 

Show:
© 2017 Microsoft