Condividi tramite


SetPEKind Method

Determina il tipo eseguibile portabile, specifico del computer o indipendente dal computer.

Syntax

HRESULT SetPEKind(
    mdAssembly AssemblyID,
    mdToken FileToken,
    DWORD dwPEKind,
    DWORD dwMachine
) PURE;

Parameters

AssemblyID ID dell'assembly.

FileToken Token del file per il quale deve essere impostato il tipo PE. Può essere NULL se AssemblyID non indica un netmodule non associato.

dwPEKind Tipo di PE, come indicato dall'enumerazione CorPEKind.

dwMachine Architettura del computer di destinazione, come indicato nell'intestazione NT.

Return Value

Restituisce S_OK se il metodo ha esito positivo.

Requirements

Requires alink.h.

See also