CeQueryInstructionSet (RAPI) (Compact 7)
3/12/2014
The CeQueryInstructionSet function queries a remote Windows Embedded Compact-based device to determine whether it supports the specified processor-specific instruction set.
Syntax
BOOL CeQueryInstructionSet(
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. Setting this parameter to PROCESSOR_QUERY_INSTRUCTION causes the device's current instruction set to be returned in the lpdwCurrentInstructionSet parameter. The following table shows the accepted values for this parameter.Note
ARMv4, V4FP, V4I, V41FP, V4T, and V4TFP architectures are not supported in Windows Embedded Compact 7.
Value Description Floating-point hardware Floating-point emulation PROCESSOR_X86_32BIT_INSTRUCTION
32-bit x86
Yes
Yes
PROCESSOR_MIPS_MIPS16_INSTRUCTION
MIPS16 instruction set
No
Yes
PROCESSOR_MIPS_MIPSII_INSTRUCTION
MIPS II instruction set
No
Yes
PROCESSOR_MIPS_MIPSIIFP_INSTRUCTION
MIPS II instruction set
Yes
No
PROCESSOR_ARM_V4_INSTRUCTION
ARM v4 instruction set
No
Yes
PROCESSOR_ARM_V4FP_INSTRUCTION
ARM v4 instruction set
Yes
No
PROCESSOR_ARM_V4I_INSTRUCTION
ARM v4 with Thumb instruction set
No
Yes
PROCESSOR_ARM_V4IFP_INSTRUCTION
ARM v4 with Thumb instruction set
Yes
No
PROCESSOR_ARM_V4T_INSTRUCTION
ARM v4 with Thumb instruction set
No
Yes
PROCESSOR_ARM_V4TFP_INSTRUCTION
ARM v4 with Thumb instruction set
Yes
No
PROCESSOR_ARM_V5_INSTRUCTION
ARM v5 instruction set
No
Yes
PROCESSOR_ARM_V5FP_INSTRUCTION
ARM v5 instruction set
Yes
No
PROCESSOR_ARM_V6_INSTRUCTION
ARM v6 instruction set
No
Yes
PROCESSOR_ARM_V6FP_INSTRUCTION
ARM v6 instruction set
Yes
No
PROCESSOR_ARM_V7_INSTRUCTION
ARM v7 instruction set
Yes
No
PROCESSOR_QUERY_INSTRUCTION
Request to have the current instruction set reported to the caller
No
No
- lpdwCurrentInstructionSet
[out] Returns the current instruction set supported by the OS.
Return Value
Returns nonzero if the instruction set passed in through dwInstructionSet is supported by the current OS. Otherwise, returns zero.
Returns nonzero if dwInstructionSet is set to PROCESSOR_QUERY_INSTRUCTION. The lpdwCurrentInstructionSet parameter is then set to the current instruction set supported.
Returns zero if the dwInstructionSet value is unknown.
Remarks
This function can be used by any application that needs to determine if the code about to install or run will work on the current OS. The OS knows explicitly what instruction it will execute, and therefore will inform you if your installation should continue.
Requirements
Header |
rapi.h |
Library |
rapi.lib |