QueryInstructionSet (Compact 2013)

3/28/2014

This function queries to determine what instruction set is supported in the OS.

Syntax

BOOL QueryInstructionSet(
  DWORD dwInstructionSet,
  LPDWORD lpdwCurrentInstructionSet
);

Parameters

  • dwInstructionSet
    [in] The instruction set that will be queried to determine if it is supported by the currently running OS. The following table shows possible values.

    Value

    Description

    Floating-point hardware

    Floating-point emulation

    PROCESSOR_ARM_V7_INSTRUCTION

    ARMv7 instruction set

    Yes

    No

    PROCESSOR_QUERY_INSTRUCTION

    Request to have the current instruction set reported to the caller

    No

    No

    PROCESSOR_X86_32BIT_INSTRUCTION

    32-bit x86

    Yes

    Yes

  • lpdwCurrentInstructionSet
    [out] Returns the current instruction set supported by the OS.

Return Value

TRUE indicates that the instruction set passed in through dwInstructionSet is supported by the current OS or that dwInstructionSet is set to PROCESSOR_QUERY_INSTRUCTION. The lpdwCurrentInstructionSet parameter is then set to the current instruction set supported.

FALSE indicates that the instruction set is not supported or that the dwInstructionSet value is unknown.

Remarks

This function can be used by any application that needs to determine whether the code about to install or run will work on the current OS. The OS knows explicitly which instruction it will run, and therefore informs you if your installation should continue.

Requirements

Header

winbase.h

Library

coredll.lib

See Also

Reference

System Management Functions