GetMachineTypeAttributes function (processthreadsapi.h)

Queries if the specified architecture is supported on the current system, either natively or by any form of compatibility or emulation layer.

Syntax

HRESULT GetMachineTypeAttributes(
  USHORT             Machine,
  MACHINE_ATTRIBUTES *MachineTypeAttributes
);

Parameters

Machine

An IMAGE_FILE_MACHINE_* value corresponding to the architecture of code to be tested for supportability. See the list of architecture values in Image File Machine Constants.

MachineTypeAttributes

Output parameter receives a pointer to a value from the MACHINE_ATTRIBUTES enumeration indicating if the specified code architecture can run in user mode, kernel mode, and/or under WOW64 on the host operating system.

Return value

If the function fails, the return value is a nonzero HRESULT value. If the function succeeds, the return value is zero.

Requirements

Requirement Value
Minimum supported client Windows Build 22000
Minimum supported server Windows Build 22000
Header processthreadsapi.h
Library Kernel32.lib
DLL Kernel32.dll