PortableExecutableKinds Enumeração
Definição
Identifica a natureza do código em um arquivo executável.Identifies the nature of the code in an executable file.
Esta enumeração tem um atributo FlagsAttribute que permite uma combinação bit a bit dos valores membros dela.
public enum class PortableExecutableKinds
[System.Flags]
public enum PortableExecutableKinds
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum PortableExecutableKinds
[<System.Flags>]
type PortableExecutableKinds =
[<System.Flags>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type PortableExecutableKinds =
Public Enum PortableExecutableKinds
- Herança
- Atributos
Campos
| ILOnly | 1 | O executável contém apenas MSIL (Microsoft Intermediate Language) e, portanto, é neutro em relação às plataformas de 32 ou 64 bits.The executable contains only Microsoft intermediate language (MSIL), and is therefore neutral with respect to 32-bit or 64-bit platforms. |
| NotAPortableExecutableImage | 0 | O arquivo não está no formato de arquivo PE.The file is not in portable executable (PE) file format. |
| PE32Plus | 4 | O executável requer uma plataforma de 64 bits.The executable requires a 64-bit platform. |
| Preferred32Bit | 16 | O executável é independente de plataforma, mas deve ser executado em uma plataforma de 32 bits sempre que possível.The executable is platform-agnostic but should be run on a 32-bit platform whenever possible. |
| Required32Bit | 2 | O executável pode ser executado em uma plataforma de 32 bits ou ambiente WOW (Windows on Windows) de 32 bits em uma plataforma de 64 bits.The executable can be run on a 32-bit platform, or in the 32-bit Windows on Windows (WOW) environment on a 64-bit platform. |
| Unmanaged32Bit | 8 | O executável contém código não gerenciado puro.The executable contains pure unmanaged code. |
Comentários
Para obter esse valor para um módulo, use o Module.GetPEKind método.To obtain this value for a module, use the Module.GetPEKind method.
Observação
Essa enumeração corresponde à CorPEKind enumeração na API de reflexão não gerenciada, que é acessada pela função não gerenciada GetPEKind .This enumeration corresponds to the CorPEKind enumeration in the unmanaged reflection API, which is accessed by the unmanaged GetPEKind function.