remove IsWow64Process2

This commit is contained in:
rustdesk
2024-04-20 19:24:44 +08:00
parent c81c4f9114
commit 0365c94407
2 changed files with 9 additions and 64 deletions

View File

@@ -698,19 +698,4 @@ extern "C"
return isRunning;
}
} // end of extern "C"
extern "C"
{
int get_native_machine()
{
USHORT processMachine = 0;
USHORT nativeMachine = 0;
BOOL res = IsWow64Process2(GetCurrentProcess(), &processMachine, &nativeMachine);
if (res == TRUE) {
return (int)nativeMachine;
} else {
return -1;
}
}
}
} // end of extern "C"