The Everything_GetTargetMachine function retrieves the target machine of Everything.
DWORD Everything_GetTargetMachine(void);
No parameters.
The function returns one of the following:
Macro | Meaning |
---|---|
EVERYTHING_TARGET_MACHINE_X86 (1) | Target machine is x86 (32 bit). |
EVERYTHING_TARGET_MACHINE_X64 (2) | Target machine is x64 (64 bit). |
EVERYTHING_TARGET_MACHINE_ARM (3) | Target machine is ARM. |
EVERYTHING_TARGET_MACHINE_ARM64 (4) | Target machine is ARM64. |
The function returns 0 if target machine information is unavailable. To get extended error information, call Everything_GetLastError
Error code | Meaning |
---|---|
EVERYTHING_ERROR_IPC | Please make sure the Everything search client is running in the background. |
Everything uses the following version format:
major.minor.revision.build
The build part is incremental and unique for all Everything versions.
DWORD targetMachine;
// Get the attributes of the first visible result.
targetMachine = Everything_GetTargetMachine();
if (targetMachine == EVERYTHING_TARGET_MACHINE_X64)
{
// do something with x64 build.
}
else
if (targetMachine == EVERYTHING_TARGET_MACHINE_X86)
{
// do something with x86 build.
}
Requires Everything 1.4.1 or later.