ARM and AARCH64 Windows Support (#300)

* ARM and AARCH64 Windows Support
This commit is contained in:
smb123w64gb 2022-10-11 10:12:00 -07:00 committed by GitHub
parent 193726cd6d
commit ad331de5c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,6 +170,25 @@ unsafe fn set_window_long(window: windef::HWND, data: ntdef::LONG) -> ntdef::LON
unsafe fn get_window_long(window: windef::HWND) -> ntdef::LONG {
winuser::GetWindowLongW(window, winuser::GWLP_USERDATA)
}
#[cfg(target_arch = "aarch64")]
unsafe fn set_window_long(window: windef::HWND, data: basetsd::LONG_PTR) -> basetsd::LONG_PTR {
winuser::SetWindowLongPtrW(window, winuser::GWLP_USERDATA, data)
}
#[cfg(target_arch = "aarch64")]
unsafe fn get_window_long(window: windef::HWND) -> basetsd::LONG_PTR {
winuser::GetWindowLongPtrW(window, winuser::GWLP_USERDATA)
}
#[cfg(target_arch = "arm")]
unsafe fn set_window_long(window: windef::HWND, data: basetsd::LONG_PTR) -> basetsd::LONG_PTR {
winuser::SetWindowLongPtrW(window, winuser::GWLP_USERDATA, data)
}
#[cfg(target_arch = "arm")]
unsafe fn get_window_long(window: windef::HWND) -> basetsd::LONG_PTR {
winuser::GetWindowLongPtrW(window, winuser::GWLP_USERDATA)
}
unsafe extern "system" fn wnd_proc(
window: windef::HWND,