diff --git a/crates/tests/misc/standalone/src/b_arch.rs b/crates/tests/misc/standalone/src/b_arch.rs index 295342999f..062fa9e195 100644 --- a/crates/tests/misc/standalone/src/b_arch.rs +++ b/crates/tests/misc/standalone/src/b_arch.rs @@ -12,7 +12,11 @@ target_arch = "x86_64" ))] windows_targets::link!("user32.dll" "system" fn GetWindowLongPtrW(hwnd : HWND, nindex : WINDOW_LONG_PTR_INDEX) -> isize); +#[cfg(target_pointer_width = "32")] +pub use GetWindowLongW as GetWindowLongPtrW; +windows_targets::link!("user32.dll" "system" fn GetWindowLongW(hwnd : HWND, nindex : WINDOW_LONG_PTR_INDEX) -> i32); pub type WINDOW_LONG_PTR_INDEX = i32; +pub type HANDLE = *mut core::ffi::c_void; pub type HWND = *mut core::ffi::c_void; #[repr(C)] #[cfg(any( diff --git a/crates/tests/misc/standalone/src/b_nested.rs b/crates/tests/misc/standalone/src/b_nested.rs index 4bfd27922a..e76e4e55d1 100644 --- a/crates/tests/misc/standalone/src/b_nested.rs +++ b/crates/tests/misc/standalone/src/b_nested.rs @@ -141,6 +141,7 @@ pub union DEVMODEW_1 { } pub type HBITMAP = *mut core::ffi::c_void; pub type HENHMETAFILE = *mut core::ffi::c_void; +pub type HGDIOBJ = *mut core::ffi::c_void; pub type HGLOBAL = *mut core::ffi::c_void; #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/tests/misc/standalone/src/b_std.rs b/crates/tests/misc/standalone/src/b_std.rs index efcfdf5358..964c35b07e 100644 --- a/crates/tests/misc/standalone/src/b_std.rs +++ b/crates/tests/misc/standalone/src/b_std.rs @@ -14,9 +14,11 @@ windows_targets::link!("user32.dll" "cdecl" fn wsprintfA(param0 : PSTR, param1 : pub type WIN32_ERROR = u32; pub type WINSOCK_SOCKET_TYPE = i32; pub type BCRYPT_ALG_HANDLE = *mut core::ffi::c_void; +pub type BCRYPT_HANDLE = *mut core::ffi::c_void; pub type BOOL = i32; pub type BOOLEAN = u8; pub type HANDLE = *mut core::ffi::c_void; +pub type HINSTANCE = *mut core::ffi::c_void; pub type HMODULE = *mut core::ffi::c_void; pub type SOCKET = usize; pub type PSTR = *mut u8;