Partilhar via


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.

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: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Version: 2.0

See Also

Concepts

IMetaDataImport2 Interface

IMetaDataImport Interface

CorPEKind Enumeration