winapi_ui_automation/um/
wow64apiset.rs

1// Licensed under the Apache License, Version 2.0
2// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
3// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
4// All files in the project carrying such notice may not be copied, modified, or distributed
5// except according to those terms.
6use shared::minwindef::{BOOL, PBOOL, PUSHORT, UINT};
7use um::winnt::{HANDLE, LPSTR, LPWSTR, PVOID};
8extern "system" {
9    pub fn Wow64DisableWow64FsRedirection(
10        OldValue: *mut PVOID,
11    ) -> BOOL;
12    pub fn Wow64RevertWow64FsRedirection(
13        OlValue: PVOID,
14    ) -> BOOL;
15    pub fn IsWow64Process(
16        hProcess: HANDLE,
17        Wow64Process: PBOOL,
18    ) -> BOOL;
19    pub fn GetSystemWow64DirectoryA(
20        lpBuffer: LPSTR,
21        uSize: UINT,
22    ) -> UINT;
23    pub fn GetSystemWow64DirectoryW(
24        lpBuffer: LPWSTR,
25        uSize: UINT,
26    ) -> UINT;
27    pub fn IsWow64Process2(
28        hProcess: HANDLE,
29        pProcessMachine: PUSHORT,
30        pNativeMachine: PUSHORT,
31    ) -> BOOL;
32}