mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-04 17:21:30 +03:00
remove IsWow64Process2
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user