From 998e81ee3f0a5f60f38092a700e136d2ab5b97f8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 01:38:13 +0000 Subject: [PATCH] chore: update vendored bindings --- src/ffi/aarch64_bindgen.rs | 158 ++++++++++++++++++------------------- src/ffi/x86_64_bindgen.rs | 158 ++++++++++++++++++------------------- src/ffi/x86_bindgen.rs | 154 ++++++++++++++++++------------------ 3 files changed, 235 insertions(+), 235 deletions(-) diff --git a/src/ffi/aarch64_bindgen.rs b/src/ffi/aarch64_bindgen.rs index 7240686..8bed9fc 100644 --- a/src/ffi/aarch64_bindgen.rs +++ b/src/ffi/aarch64_bindgen.rs @@ -1,12 +1,12 @@ -// Generated at 2025-01-11 08:14:17.747949300 +00:00 +// Generated at 2025-01-13 01:37:09.129519700 +00:00 #[cfg(not(target_arch = "aarch64"))] compile_error!("These bindings can only be used on `aarch64` architectures. To generate bindings for your target architecture, consider using the `regenerate` feature."); +pub use windows_sys::Win32::Foundation::BOOLEAN as BOOLEAN; pub use nt_string::unicode_string::NtUnicodeString as _UNICODE_STRING; -pub use windows_sys::Win32::Foundation::NTSTATUS as NTSTATUS; -pub use nt_string::unicode_string::NtUnicodeString as UNICODE_STRING; pub use windows_sys::Win32::Foundation::BOOL as BOOL; -pub use windows_sys::Win32::Foundation::BOOLEAN as BOOLEAN; +pub use nt_string::unicode_string::NtUnicodeString as UNICODE_STRING; +pub use windows_sys::Win32::Foundation::NTSTATUS as NTSTATUS; pub const PHNT_VERSION: u32 = self::PHNT_WIN11_24H2; pub const PHNT_MODE: u32 = self::PHNT_MODE_USER; @@ -3019,8 +3019,8 @@ pub const MOFCI_RESERVED0: u32 = 1; pub const MOFCI_RESERVED1: u32 = 2; pub const MOFCI_RESERVED2: u32 = 4; pub const CPI_NEWPROCESSWINDOW: u32 = 1; -pub type va_list = *mut ::core::ffi::c_char; -pub type wchar_t = ::core::ffi::c_ushort; +pub type va_list = *mut crate::cty::c_char; +pub type wchar_t = crate::cty::c_ushort; #[repr(i32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -3031,37 +3031,37 @@ pub enum _EXCEPTION_DISPOSITION { ExceptionCollidedUnwind = 3, } pub use self::_EXCEPTION_DISPOSITION as EXCEPTION_DISPOSITION; -pub type ULONG = ::core::ffi::c_ulong; +pub type ULONG = crate::cty::c_ulong; pub type PULONG = *mut ULONG; -pub type USHORT = ::core::ffi::c_ushort; +pub type USHORT = crate::cty::c_ushort; pub type PUSHORT = *mut USHORT; -pub type UCHAR = ::core::ffi::c_uchar; +pub type UCHAR = crate::cty::c_uchar; pub type PUCHAR = *mut UCHAR; -pub type DWORD = ::core::ffi::c_ulong; -pub type BYTE = ::core::ffi::c_uchar; -pub type WORD = ::core::ffi::c_ushort; +pub type DWORD = crate::cty::c_ulong; +pub type BYTE = crate::cty::c_uchar; +pub type WORD = crate::cty::c_ushort; pub type PBOOL = *mut BOOL; pub type PDWORD = *mut DWORD; -pub type LPVOID = *mut ::core::ffi::c_void; -pub type UINT = ::core::ffi::c_uint; -pub type ULONG32 = ::core::ffi::c_uint; -pub type UINT_PTR = ::core::ffi::c_ulonglong; -pub type LONG_PTR = ::core::ffi::c_longlong; -pub type ULONG_PTR = ::core::ffi::c_ulonglong; -pub type PULONG_PTR = *mut ::core::ffi::c_ulonglong; +pub type LPVOID = *mut crate::cty::c_void; +pub type UINT = crate::cty::c_uint; +pub type ULONG32 = crate::cty::c_uint; +pub type UINT_PTR = crate::cty::c_ulonglong; +pub type LONG_PTR = crate::cty::c_longlong; +pub type ULONG_PTR = crate::cty::c_ulonglong; +pub type PULONG_PTR = *mut crate::cty::c_ulonglong; pub type SIZE_T = ULONG_PTR; pub type PSIZE_T = *mut ULONG_PTR; -pub type LONG64 = ::core::ffi::c_longlong; -pub type PLONG64 = *mut ::core::ffi::c_longlong; -pub type ULONG64 = ::core::ffi::c_ulonglong; -pub type PULONG64 = *mut ::core::ffi::c_ulonglong; -pub type DWORD64 = ::core::ffi::c_ulonglong; -pub type PDWORD64 = *mut ::core::ffi::c_ulonglong; +pub type LONG64 = crate::cty::c_longlong; +pub type PLONG64 = *mut crate::cty::c_longlong; +pub type ULONG64 = crate::cty::c_ulonglong; +pub type PULONG64 = *mut crate::cty::c_ulonglong; +pub type DWORD64 = crate::cty::c_ulonglong; +pub type PDWORD64 = *mut crate::cty::c_ulonglong; pub type KAFFINITY = ULONG_PTR; -pub type PVOID = *mut ::core::ffi::c_void; -pub type CHAR = ::core::ffi::c_char; -pub type SHORT = ::core::ffi::c_short; -pub type LONG = ::core::ffi::c_long; +pub type PVOID = *mut crate::cty::c_void; +pub type CHAR = crate::cty::c_char; +pub type SHORT = crate::cty::c_short; +pub type LONG = crate::cty::c_long; pub type WCHAR = wchar_t; pub type PWCHAR = *mut WCHAR; pub type PWCH = *mut WCHAR; @@ -3097,14 +3097,14 @@ pub struct _GROUP_AFFINITY { } pub type GROUP_AFFINITY = _GROUP_AFFINITY; pub type PGROUP_AFFINITY = *mut _GROUP_AFFINITY; -pub type HANDLE = *mut ::core::ffi::c_void; +pub type HANDLE = *mut crate::cty::c_void; pub type PHANDLE = *mut HANDLE; -pub type CCHAR = ::core::ffi::c_char; +pub type CCHAR = crate::cty::c_char; pub type LCID = DWORD; pub type PLCID = PDWORD; pub type LANGID = WORD; -pub type LONGLONG = ::core::ffi::c_longlong; -pub type ULONGLONG = ::core::ffi::c_ulonglong; +pub type LONGLONG = crate::cty::c_longlong; +pub type ULONGLONG = crate::cty::c_ulonglong; pub type PULONGLONG = *mut ULONGLONG; #[repr(C)] #[derive(Copy, Clone)] @@ -3218,10 +3218,10 @@ pub type PLIST_ENTRY32 = *mut LIST_ENTRY32; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct _GUID { - pub Data1: ::core::ffi::c_ulong, - pub Data2: ::core::ffi::c_ushort, - pub Data3: ::core::ffi::c_ushort, - pub Data4: [::core::ffi::c_uchar; 8usize], + pub Data1: crate::cty::c_ulong, + pub Data2: crate::cty::c_ushort, + pub Data3: crate::cty::c_ushort, + pub Data4: [crate::cty::c_uchar; 8usize], } pub type GUID = _GUID; pub type LPGUID = *mut GUID; @@ -3234,7 +3234,7 @@ pub type PEXCEPTION_ROUTINE = ::core::option::Option< arg4: PVOID, ) -> EXCEPTION_DISPOSITION, >; -pub type __C_ASSERT__ = [::core::ffi::c_char; 1usize]; +pub type __C_ASSERT__ = [crate::cty::c_char; 1usize]; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct _XSAVE_AREA_HEADER { @@ -8845,7 +8845,7 @@ pub type FILE_ID_128 = _FILE_ID_128; #[repr(C)] #[derive(Copy, Clone)] pub union _FILE_SEGMENT_ELEMENT { - pub Buffer: *mut ::core::ffi::c_void, + pub Buffer: *mut crate::cty::c_void, pub Alignment: ULONGLONG, } impl Default for _FILE_SEGMENT_ELEMENT { @@ -10578,68 +10578,68 @@ pub type LPARAM = LONG_PTR; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HRGN__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HRGN = *mut HRGN__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HWINSTA__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HWINSTA = *mut HWINSTA__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HWND__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HWND = *mut HWND__; -pub type HGDIOBJ = *mut ::core::ffi::c_void; +pub type HGDIOBJ = *mut crate::cty::c_void; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HACCEL__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HACCEL = *mut HACCEL__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HBITMAP__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HBITMAP = *mut HBITMAP__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HDC__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HDC = *mut HDC__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HDESK__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HDESK = *mut HDESK__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HICON__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HICON = *mut HICON__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HMENU__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HMENU = *mut HMENU__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HWINEVENTHOOK__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HWINEVENTHOOK = *mut HWINEVENTHOOK__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HMONITOR__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HMONITOR = *mut HMONITOR__; pub type HCURSOR = HICON; @@ -10900,8 +10900,8 @@ pub type TIMERPROC = ::core::option::Option< #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct tagMOUSEMOVEPOINT { - pub x: ::core::ffi::c_int, - pub y: ::core::ffi::c_int, + pub x: crate::cty::c_int, + pub y: crate::cty::c_int, pub time: DWORD, pub dwExtraInfo: ULONG_PTR, } @@ -11308,7 +11308,7 @@ pub type PCOMBOBOXINFO = *mut tagCOMBOBOXINFO; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HRAWINPUT__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HRAWINPUT = *mut HRAWINPUT__; #[repr(C)] @@ -11645,7 +11645,7 @@ pub struct _QUAD { #[repr(C)] #[derive(Copy, Clone)] pub union _QUAD__bindgen_ty_1 { - pub UseThisFieldToCopy: ::core::ffi::c_longlong, + pub UseThisFieldToCopy: crate::cty::c_longlong, pub DoNotUseThisField: f64, } impl Default for _QUAD__bindgen_ty_1 { @@ -11680,14 +11680,14 @@ pub type PQUAD_PTR = *mut _QUAD_PTR; pub type LOGICAL = ULONG; pub type PLOGICAL = *mut ULONG; pub type PNTSTATUS = *mut NTSTATUS; -pub type CSHORT = ::core::ffi::c_short; +pub type CSHORT = crate::cty::c_short; pub type CLONG = ULONG; pub type PCCHAR = *mut CCHAR; pub type PCSHORT = *mut CSHORT; pub type PCLONG = *mut CLONG; pub type PCSZ = PCSTR; pub type PPVOID = *mut PVOID; -pub type PCVOID = *const ::core::ffi::c_void; +pub type PCVOID = *const crate::cty::c_void; pub type KIRQL = UCHAR; pub type PKIRQL = *mut UCHAR; pub type KPRIORITY = LONG; @@ -47817,7 +47817,7 @@ pub type PEXTENDED_CREATE_INFORMATION = *mut _EXTENDED_CREATE_INFORMATION; #[derive(Debug, Copy, Clone)] pub struct _EXTENDED_CREATE_INFORMATION_32 { pub ExtendedCreateFlags: LONGLONG, - pub EaBuffer: *mut ::core::ffi::c_void, + pub EaBuffer: *mut crate::cty::c_void, pub EaLength: ULONG, } impl Default for _EXTENDED_CREATE_INFORMATION_32 { @@ -60771,7 +60771,7 @@ pub type PWNF_USER_CALLBACK = ::core::option::Option< arg2: WNF_CHANGE_STAMP, arg3: PWNF_TYPE_ID, arg4: PVOID, - arg5: *const ::core::ffi::c_void, + arg5: *const crate::cty::c_void, arg6: ULONG, ) -> NTSTATUS, >; @@ -68287,7 +68287,7 @@ pub struct _WMI_THREAD_INFORMATION { } pub type WMI_THREAD_INFORMATION = _WMI_THREAD_INFORMATION; pub type PWMI_THREAD_INFORMATION = *mut _WMI_THREAD_INFORMATION; -pub type SCHAR = ::core::ffi::c_schar; +pub type SCHAR = crate::cty::c_schar; #[repr(C)] #[derive(Copy, Clone)] pub struct _WMI_EXTENDED_THREAD_INFORMATION { @@ -73475,7 +73475,7 @@ pub type PPERFINFO_SYSCALL_EXIT_DATA = *mut _PERFINFO_SYSCALL_EXIT_DATA; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct _PERFINFO_MARK_INFORMATION { - pub Name: [::core::ffi::c_char; 1usize], + pub Name: [crate::cty::c_char; 1usize], } pub type PERFINFO_MARK_INFORMATION = _PERFINFO_MARK_INFORMATION; pub type PPERFINFO_MARK_INFORMATION = *mut _PERFINFO_MARK_INFORMATION; @@ -75890,21 +75890,21 @@ unsafe extern "C" { pub fn NtDeleteWnfStateName(StateName: PCWNF_STATE_NAME) -> NTSTATUS; pub fn NtUpdateWnfStateData( StateName: PCWNF_STATE_NAME, - Buffer: *const ::core::ffi::c_void, + Buffer: *const crate::cty::c_void, Length: ULONG, TypeId: PCWNF_TYPE_ID, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, MatchingChangeStamp: WNF_CHANGE_STAMP, CheckStamp: LOGICAL, ) -> NTSTATUS; pub fn NtDeleteWnfStateData( StateName: PCWNF_STATE_NAME, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ) -> NTSTATUS; pub fn NtQueryWnfStateData( StateName: PCWNF_STATE_NAME, TypeId: PCWNF_TYPE_ID, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ChangeStamp: PWNF_CHANGE_STAMP, Buffer: PVOID, BufferSize: PULONG, @@ -75912,7 +75912,7 @@ unsafe extern "C" { pub fn NtQueryWnfStateNameInformation( StateName: PCWNF_STATE_NAME, NameInfoClass: WNF_STATE_NAME_INFORMATION, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, InfoBuffer: PVOID, InfoBufferSize: ULONG, ) -> NTSTATUS; @@ -78312,7 +78312,7 @@ unsafe extern "C" { pub fn RtlBarrier(Barrier: PRTL_BARRIER, Flags: ULONG) -> BOOLEAN; pub fn RtlBarrierForDelete(Barrier: PRTL_BARRIER, Flags: ULONG) -> BOOLEAN; pub fn RtlWaitOnAddress( - Address: *mut ::core::ffi::c_void, + Address: *mut crate::cty::c_void, CompareAddress: PVOID, AddressSize: SIZE_T, Timeout: PLARGE_INTEGER, @@ -79158,17 +79158,17 @@ unsafe extern "C" { ) -> NTSTATUS; pub fn RtlValidateUserCallTarget(Address: PVOID, Flags: PULONG); pub fn RtlCompareMemory( - Source1: *const ::core::ffi::c_void, - Source2: *const ::core::ffi::c_void, + Source1: *const crate::cty::c_void, + Source2: *const crate::cty::c_void, Length: SIZE_T, ) -> SIZE_T; pub fn RtlCompareMemoryUlong(Source: PVOID, Length: SIZE_T, Pattern: ULONG) -> SIZE_T; pub fn RtlFillMemoryUlong(Destination: PVOID, Length: SIZE_T, Pattern: ULONG); pub fn RtlFillMemoryUlonglong(Destination: PVOID, Length: SIZE_T, Pattern: ULONGLONG); pub fn RtlIsZeroMemory(Buffer: PVOID, Length: SIZE_T) -> BOOLEAN; - pub fn RtlCrc32(Buffer: *const ::core::ffi::c_void, Size: usize, InitialCrc: DWORD) -> DWORD; + pub fn RtlCrc32(Buffer: *const crate::cty::c_void, Size: usize, InitialCrc: DWORD) -> DWORD; pub fn RtlCrc64( - Buffer: *const ::core::ffi::c_void, + Buffer: *const crate::cty::c_void, Size: usize, InitialCrc: ULONGLONG, ) -> ULONGLONG; @@ -80836,9 +80836,9 @@ unsafe extern "C" { pub fn RtlPublishWnfStateData( StateName: WNF_STATE_NAME, TypeId: PCWNF_TYPE_ID, - Buffer: *const ::core::ffi::c_void, + Buffer: *const crate::cty::c_void, Length: ULONG, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ) -> NTSTATUS; pub fn RtlSubscribeWnfStateChangeNotification( SubscriptionHandle: *mut PVOID, @@ -83177,7 +83177,7 @@ unsafe extern "C" { pub fn ZwDeleteValueKey(KeyHandle: HANDLE, ValueName: PUNICODE_STRING) -> NTSTATUS; pub fn ZwDeleteWnfStateData( StateName: PCWNF_STATE_NAME, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ) -> NTSTATUS; pub fn ZwDeleteWnfStateName(StateName: PCWNF_STATE_NAME) -> NTSTATUS; pub fn ZwDeviceIoControlFile( @@ -84195,7 +84195,7 @@ unsafe extern "C" { pub fn ZwQueryWnfStateData( StateName: PCWNF_STATE_NAME, TypeId: PCWNF_TYPE_ID, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ChangeStamp: PWNF_CHANGE_STAMP, Buffer: PVOID, BufferSize: PULONG, @@ -84203,7 +84203,7 @@ unsafe extern "C" { pub fn ZwQueryWnfStateNameInformation( StateName: PCWNF_STATE_NAME, NameInfoClass: WNF_STATE_NAME_INFORMATION, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, InfoBuffer: PVOID, InfoBufferSize: ULONG, ) -> NTSTATUS; @@ -84751,10 +84751,10 @@ unsafe extern "C" { pub fn ZwUnsubscribeWnfStateChange(StateName: PCWNF_STATE_NAME) -> NTSTATUS; pub fn ZwUpdateWnfStateData( StateName: PCWNF_STATE_NAME, - Buffer: *const ::core::ffi::c_void, + Buffer: *const crate::cty::c_void, Length: ULONG, TypeId: PCWNF_TYPE_ID, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, MatchingChangeStamp: WNF_CHANGE_STAMP, CheckStamp: LOGICAL, ) -> NTSTATUS; @@ -85023,7 +85023,7 @@ unsafe extern "C" { ) -> ULONG; pub fn NtUserDrawAnimatedRects( WindowHandle: HWND, - idAni: ::core::ffi::c_int, + idAni: crate::cty::c_int, lprcFrom: *const RECT, lprcTo: *const RECT, ) -> BOOL; diff --git a/src/ffi/x86_64_bindgen.rs b/src/ffi/x86_64_bindgen.rs index b313893..2619506 100644 --- a/src/ffi/x86_64_bindgen.rs +++ b/src/ffi/x86_64_bindgen.rs @@ -1,12 +1,12 @@ -// Generated at 2025-01-11 08:05:37.134601100 +00:00 +// Generated at 2025-01-13 01:27:49.083183200 +00:00 #[cfg(not(target_arch = "x86_64"))] compile_error!("These bindings can only be used on `x86_64` architectures. To generate bindings for your target architecture, consider using the `regenerate` feature."); -pub use windows_sys::Win32::Foundation::NTSTATUS as NTSTATUS; -pub use nt_string::unicode_string::NtUnicodeString as UNICODE_STRING; -pub use windows_sys::Win32::Foundation::BOOL as BOOL; pub use windows_sys::Win32::Foundation::BOOLEAN as BOOLEAN; +pub use nt_string::unicode_string::NtUnicodeString as UNICODE_STRING; +pub use windows_sys::Win32::Foundation::NTSTATUS as NTSTATUS; pub use nt_string::unicode_string::NtUnicodeString as _UNICODE_STRING; +pub use windows_sys::Win32::Foundation::BOOL as BOOL; pub const PHNT_VERSION: u32 = self::PHNT_WIN11_24H2; pub const PHNT_MODE: u32 = self::PHNT_MODE_USER; @@ -2998,8 +2998,8 @@ pub const MOFCI_RESERVED0: u32 = 1; pub const MOFCI_RESERVED1: u32 = 2; pub const MOFCI_RESERVED2: u32 = 4; pub const CPI_NEWPROCESSWINDOW: u32 = 1; -pub type va_list = *mut ::core::ffi::c_char; -pub type wchar_t = ::core::ffi::c_ushort; +pub type va_list = *mut crate::cty::c_char; +pub type wchar_t = crate::cty::c_ushort; #[repr(i32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -3010,37 +3010,37 @@ pub enum _EXCEPTION_DISPOSITION { ExceptionCollidedUnwind = 3, } pub use self::_EXCEPTION_DISPOSITION as EXCEPTION_DISPOSITION; -pub type ULONG = ::core::ffi::c_ulong; +pub type ULONG = crate::cty::c_ulong; pub type PULONG = *mut ULONG; -pub type USHORT = ::core::ffi::c_ushort; +pub type USHORT = crate::cty::c_ushort; pub type PUSHORT = *mut USHORT; -pub type UCHAR = ::core::ffi::c_uchar; +pub type UCHAR = crate::cty::c_uchar; pub type PUCHAR = *mut UCHAR; -pub type DWORD = ::core::ffi::c_ulong; -pub type BYTE = ::core::ffi::c_uchar; -pub type WORD = ::core::ffi::c_ushort; +pub type DWORD = crate::cty::c_ulong; +pub type BYTE = crate::cty::c_uchar; +pub type WORD = crate::cty::c_ushort; pub type PBOOL = *mut BOOL; pub type PDWORD = *mut DWORD; -pub type LPVOID = *mut ::core::ffi::c_void; -pub type UINT = ::core::ffi::c_uint; -pub type ULONG32 = ::core::ffi::c_uint; -pub type UINT_PTR = ::core::ffi::c_ulonglong; -pub type LONG_PTR = ::core::ffi::c_longlong; -pub type ULONG_PTR = ::core::ffi::c_ulonglong; -pub type PULONG_PTR = *mut ::core::ffi::c_ulonglong; +pub type LPVOID = *mut crate::cty::c_void; +pub type UINT = crate::cty::c_uint; +pub type ULONG32 = crate::cty::c_uint; +pub type UINT_PTR = crate::cty::c_ulonglong; +pub type LONG_PTR = crate::cty::c_longlong; +pub type ULONG_PTR = crate::cty::c_ulonglong; +pub type PULONG_PTR = *mut crate::cty::c_ulonglong; pub type SIZE_T = ULONG_PTR; pub type PSIZE_T = *mut ULONG_PTR; -pub type LONG64 = ::core::ffi::c_longlong; -pub type PLONG64 = *mut ::core::ffi::c_longlong; -pub type ULONG64 = ::core::ffi::c_ulonglong; -pub type PULONG64 = *mut ::core::ffi::c_ulonglong; -pub type DWORD64 = ::core::ffi::c_ulonglong; -pub type PDWORD64 = *mut ::core::ffi::c_ulonglong; +pub type LONG64 = crate::cty::c_longlong; +pub type PLONG64 = *mut crate::cty::c_longlong; +pub type ULONG64 = crate::cty::c_ulonglong; +pub type PULONG64 = *mut crate::cty::c_ulonglong; +pub type DWORD64 = crate::cty::c_ulonglong; +pub type PDWORD64 = *mut crate::cty::c_ulonglong; pub type KAFFINITY = ULONG_PTR; -pub type PVOID = *mut ::core::ffi::c_void; -pub type CHAR = ::core::ffi::c_char; -pub type SHORT = ::core::ffi::c_short; -pub type LONG = ::core::ffi::c_long; +pub type PVOID = *mut crate::cty::c_void; +pub type CHAR = crate::cty::c_char; +pub type SHORT = crate::cty::c_short; +pub type LONG = crate::cty::c_long; pub type WCHAR = wchar_t; pub type PWCHAR = *mut WCHAR; pub type PWCH = *mut WCHAR; @@ -3076,14 +3076,14 @@ pub struct _GROUP_AFFINITY { } pub type GROUP_AFFINITY = _GROUP_AFFINITY; pub type PGROUP_AFFINITY = *mut _GROUP_AFFINITY; -pub type HANDLE = *mut ::core::ffi::c_void; +pub type HANDLE = *mut crate::cty::c_void; pub type PHANDLE = *mut HANDLE; -pub type CCHAR = ::core::ffi::c_char; +pub type CCHAR = crate::cty::c_char; pub type LCID = DWORD; pub type PLCID = PDWORD; pub type LANGID = WORD; -pub type LONGLONG = ::core::ffi::c_longlong; -pub type ULONGLONG = ::core::ffi::c_ulonglong; +pub type LONGLONG = crate::cty::c_longlong; +pub type ULONGLONG = crate::cty::c_ulonglong; pub type PULONGLONG = *mut ULONGLONG; #[repr(C)] #[derive(Copy, Clone)] @@ -3197,10 +3197,10 @@ pub type PLIST_ENTRY32 = *mut LIST_ENTRY32; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct _GUID { - pub Data1: ::core::ffi::c_ulong, - pub Data2: ::core::ffi::c_ushort, - pub Data3: ::core::ffi::c_ushort, - pub Data4: [::core::ffi::c_uchar; 8usize], + pub Data1: crate::cty::c_ulong, + pub Data2: crate::cty::c_ushort, + pub Data3: crate::cty::c_ushort, + pub Data4: [crate::cty::c_uchar; 8usize], } pub type GUID = _GUID; pub type LPGUID = *mut GUID; @@ -3213,7 +3213,7 @@ pub type PEXCEPTION_ROUTINE = ::core::option::Option< arg4: PVOID, ) -> EXCEPTION_DISPOSITION, >; -pub type __C_ASSERT__ = [::core::ffi::c_char; 1usize]; +pub type __C_ASSERT__ = [crate::cty::c_char; 1usize]; #[repr(C)] #[repr(align(16))] #[derive(Debug, Default, Copy, Clone)] @@ -8861,7 +8861,7 @@ pub type FILE_ID_128 = _FILE_ID_128; #[repr(C)] #[derive(Copy, Clone)] pub union _FILE_SEGMENT_ELEMENT { - pub Buffer: *mut ::core::ffi::c_void, + pub Buffer: *mut crate::cty::c_void, pub Alignment: ULONGLONG, } impl Default for _FILE_SEGMENT_ELEMENT { @@ -10316,68 +10316,68 @@ pub type LPARAM = LONG_PTR; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HRGN__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HRGN = *mut HRGN__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HWINSTA__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HWINSTA = *mut HWINSTA__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HWND__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HWND = *mut HWND__; -pub type HGDIOBJ = *mut ::core::ffi::c_void; +pub type HGDIOBJ = *mut crate::cty::c_void; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HACCEL__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HACCEL = *mut HACCEL__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HBITMAP__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HBITMAP = *mut HBITMAP__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HDC__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HDC = *mut HDC__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HDESK__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HDESK = *mut HDESK__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HICON__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HICON = *mut HICON__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HMENU__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HMENU = *mut HMENU__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HWINEVENTHOOK__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HWINEVENTHOOK = *mut HWINEVENTHOOK__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HMONITOR__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HMONITOR = *mut HMONITOR__; pub type HCURSOR = HICON; @@ -10638,8 +10638,8 @@ pub type TIMERPROC = ::core::option::Option< #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct tagMOUSEMOVEPOINT { - pub x: ::core::ffi::c_int, - pub y: ::core::ffi::c_int, + pub x: crate::cty::c_int, + pub y: crate::cty::c_int, pub time: DWORD, pub dwExtraInfo: ULONG_PTR, } @@ -11046,7 +11046,7 @@ pub type PCOMBOBOXINFO = *mut tagCOMBOBOXINFO; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HRAWINPUT__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HRAWINPUT = *mut HRAWINPUT__; #[repr(C)] @@ -11385,7 +11385,7 @@ pub struct _QUAD { #[repr(C)] #[derive(Copy, Clone)] pub union _QUAD__bindgen_ty_1 { - pub UseThisFieldToCopy: ::core::ffi::c_longlong, + pub UseThisFieldToCopy: crate::cty::c_longlong, pub DoNotUseThisField: f64, } impl Default for _QUAD__bindgen_ty_1 { @@ -11420,14 +11420,14 @@ pub type PQUAD_PTR = *mut _QUAD_PTR; pub type LOGICAL = ULONG; pub type PLOGICAL = *mut ULONG; pub type PNTSTATUS = *mut NTSTATUS; -pub type CSHORT = ::core::ffi::c_short; +pub type CSHORT = crate::cty::c_short; pub type CLONG = ULONG; pub type PCCHAR = *mut CCHAR; pub type PCSHORT = *mut CSHORT; pub type PCLONG = *mut CLONG; pub type PCSZ = PCSTR; pub type PPVOID = *mut PVOID; -pub type PCVOID = *const ::core::ffi::c_void; +pub type PCVOID = *const crate::cty::c_void; pub type KIRQL = UCHAR; pub type PKIRQL = *mut UCHAR; pub type KPRIORITY = LONG; @@ -60228,7 +60228,7 @@ pub type PWNF_USER_CALLBACK = ::core::option::Option< arg2: WNF_CHANGE_STAMP, arg3: PWNF_TYPE_ID, arg4: PVOID, - arg5: *const ::core::ffi::c_void, + arg5: *const crate::cty::c_void, arg6: ULONG, ) -> NTSTATUS, >; @@ -67742,7 +67742,7 @@ pub struct _WMI_THREAD_INFORMATION { } pub type WMI_THREAD_INFORMATION = _WMI_THREAD_INFORMATION; pub type PWMI_THREAD_INFORMATION = *mut _WMI_THREAD_INFORMATION; -pub type SCHAR = ::core::ffi::c_schar; +pub type SCHAR = crate::cty::c_schar; #[repr(C)] #[derive(Copy, Clone)] pub struct _WMI_EXTENDED_THREAD_INFORMATION { @@ -72930,7 +72930,7 @@ pub type PPERFINFO_SYSCALL_EXIT_DATA = *mut _PERFINFO_SYSCALL_EXIT_DATA; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct _PERFINFO_MARK_INFORMATION { - pub Name: [::core::ffi::c_char; 1usize], + pub Name: [crate::cty::c_char; 1usize], } pub type PERFINFO_MARK_INFORMATION = _PERFINFO_MARK_INFORMATION; pub type PPERFINFO_MARK_INFORMATION = *mut _PERFINFO_MARK_INFORMATION; @@ -75345,21 +75345,21 @@ unsafe extern "C" { pub fn NtDeleteWnfStateName(StateName: PCWNF_STATE_NAME) -> NTSTATUS; pub fn NtUpdateWnfStateData( StateName: PCWNF_STATE_NAME, - Buffer: *const ::core::ffi::c_void, + Buffer: *const crate::cty::c_void, Length: ULONG, TypeId: PCWNF_TYPE_ID, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, MatchingChangeStamp: WNF_CHANGE_STAMP, CheckStamp: LOGICAL, ) -> NTSTATUS; pub fn NtDeleteWnfStateData( StateName: PCWNF_STATE_NAME, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ) -> NTSTATUS; pub fn NtQueryWnfStateData( StateName: PCWNF_STATE_NAME, TypeId: PCWNF_TYPE_ID, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ChangeStamp: PWNF_CHANGE_STAMP, Buffer: PVOID, BufferSize: PULONG, @@ -75367,7 +75367,7 @@ unsafe extern "C" { pub fn NtQueryWnfStateNameInformation( StateName: PCWNF_STATE_NAME, NameInfoClass: WNF_STATE_NAME_INFORMATION, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, InfoBuffer: PVOID, InfoBufferSize: ULONG, ) -> NTSTATUS; @@ -77767,7 +77767,7 @@ unsafe extern "C" { pub fn RtlBarrier(Barrier: PRTL_BARRIER, Flags: ULONG) -> BOOLEAN; pub fn RtlBarrierForDelete(Barrier: PRTL_BARRIER, Flags: ULONG) -> BOOLEAN; pub fn RtlWaitOnAddress( - Address: *mut ::core::ffi::c_void, + Address: *mut crate::cty::c_void, CompareAddress: PVOID, AddressSize: SIZE_T, Timeout: PLARGE_INTEGER, @@ -78613,16 +78613,16 @@ unsafe extern "C" { ) -> NTSTATUS; pub fn RtlValidateUserCallTarget(Address: PVOID, Flags: PULONG); pub fn RtlCompareMemory( - Source1: *const ::core::ffi::c_void, - Source2: *const ::core::ffi::c_void, + Source1: *const crate::cty::c_void, + Source2: *const crate::cty::c_void, Length: SIZE_T, ) -> SIZE_T; pub fn RtlCompareMemoryUlong(Source: PVOID, Length: SIZE_T, Pattern: ULONG) -> SIZE_T; pub fn RtlFillMemoryUlong(Destination: PVOID, Length: SIZE_T, Pattern: ULONG); pub fn RtlIsZeroMemory(Buffer: PVOID, Length: SIZE_T) -> BOOLEAN; - pub fn RtlCrc32(Buffer: *const ::core::ffi::c_void, Size: usize, InitialCrc: DWORD) -> DWORD; + pub fn RtlCrc32(Buffer: *const crate::cty::c_void, Size: usize, InitialCrc: DWORD) -> DWORD; pub fn RtlCrc64( - Buffer: *const ::core::ffi::c_void, + Buffer: *const crate::cty::c_void, Size: usize, InitialCrc: ULONGLONG, ) -> ULONGLONG; @@ -80290,9 +80290,9 @@ unsafe extern "C" { pub fn RtlPublishWnfStateData( StateName: WNF_STATE_NAME, TypeId: PCWNF_TYPE_ID, - Buffer: *const ::core::ffi::c_void, + Buffer: *const crate::cty::c_void, Length: ULONG, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ) -> NTSTATUS; pub fn RtlSubscribeWnfStateChangeNotification( SubscriptionHandle: *mut PVOID, @@ -81005,7 +81005,7 @@ unsafe extern "C" { pub fn UStr32ToUStr(Destination: PUNICODE_STRING, Source: PUNICODE_STRING32); pub fn UStrToUStr32(Destination: PUNICODE_STRING32, Source: PUNICODE_STRING); pub fn Wow64CurrentGuestTeb() -> *mut TEB32; - pub fn Wow64CurrentNativeTeb() -> *mut ::core::ffi::c_void; + pub fn Wow64CurrentNativeTeb() -> *mut crate::cty::c_void; pub fn SamFreeMemory(Buffer: PVOID) -> NTSTATUS; pub fn SamCloseHandle(SamHandle: SAM_HANDLE) -> NTSTATUS; pub fn SamSetSecurityObject( @@ -82633,7 +82633,7 @@ unsafe extern "C" { pub fn ZwDeleteValueKey(KeyHandle: HANDLE, ValueName: PUNICODE_STRING) -> NTSTATUS; pub fn ZwDeleteWnfStateData( StateName: PCWNF_STATE_NAME, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ) -> NTSTATUS; pub fn ZwDeleteWnfStateName(StateName: PCWNF_STATE_NAME) -> NTSTATUS; pub fn ZwDeviceIoControlFile( @@ -83651,7 +83651,7 @@ unsafe extern "C" { pub fn ZwQueryWnfStateData( StateName: PCWNF_STATE_NAME, TypeId: PCWNF_TYPE_ID, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ChangeStamp: PWNF_CHANGE_STAMP, Buffer: PVOID, BufferSize: PULONG, @@ -83659,7 +83659,7 @@ unsafe extern "C" { pub fn ZwQueryWnfStateNameInformation( StateName: PCWNF_STATE_NAME, NameInfoClass: WNF_STATE_NAME_INFORMATION, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, InfoBuffer: PVOID, InfoBufferSize: ULONG, ) -> NTSTATUS; @@ -84207,10 +84207,10 @@ unsafe extern "C" { pub fn ZwUnsubscribeWnfStateChange(StateName: PCWNF_STATE_NAME) -> NTSTATUS; pub fn ZwUpdateWnfStateData( StateName: PCWNF_STATE_NAME, - Buffer: *const ::core::ffi::c_void, + Buffer: *const crate::cty::c_void, Length: ULONG, TypeId: PCWNF_TYPE_ID, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, MatchingChangeStamp: WNF_CHANGE_STAMP, CheckStamp: LOGICAL, ) -> NTSTATUS; @@ -84479,7 +84479,7 @@ unsafe extern "C" { ) -> ULONG; pub fn NtUserDrawAnimatedRects( WindowHandle: HWND, - idAni: ::core::ffi::c_int, + idAni: crate::cty::c_int, lprcFrom: *const RECT, lprcTo: *const RECT, ) -> BOOL; diff --git a/src/ffi/x86_bindgen.rs b/src/ffi/x86_bindgen.rs index 09f0d30..7f60d38 100644 --- a/src/ffi/x86_bindgen.rs +++ b/src/ffi/x86_bindgen.rs @@ -1,12 +1,12 @@ -// Generated at 2025-01-11 08:05:32.210453700 +00:00 +// Generated at 2025-01-13 01:28:00.143339300 +00:00 #[cfg(not(target_arch = "x86"))] compile_error!("These bindings can only be used on `x86` architectures. To generate bindings for your target architecture, consider using the `regenerate` feature."); pub use windows_sys::Win32::Foundation::NTSTATUS as NTSTATUS; -pub use windows_sys::Win32::Foundation::BOOL as BOOL; +pub use windows_sys::Win32::Foundation::BOOLEAN as BOOLEAN; pub use nt_string::unicode_string::NtUnicodeString as UNICODE_STRING; +pub use windows_sys::Win32::Foundation::BOOL as BOOL; pub use nt_string::unicode_string::NtUnicodeString as _UNICODE_STRING; -pub use windows_sys::Win32::Foundation::BOOLEAN as BOOLEAN; pub const PHNT_VERSION: u32 = self::PHNT_WIN11_24H2; pub const PHNT_MODE: u32 = self::PHNT_MODE_USER; @@ -2999,8 +2999,8 @@ pub const MOFCI_RESERVED0: u32 = 1; pub const MOFCI_RESERVED1: u32 = 2; pub const MOFCI_RESERVED2: u32 = 4; pub const CPI_NEWPROCESSWINDOW: u32 = 1; -pub type va_list = *mut ::core::ffi::c_char; -pub type wchar_t = ::core::ffi::c_ushort; +pub type va_list = *mut crate::cty::c_char; +pub type wchar_t = crate::cty::c_ushort; #[repr(i32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -3011,37 +3011,37 @@ pub enum _EXCEPTION_DISPOSITION { ExceptionCollidedUnwind = 3, } pub use self::_EXCEPTION_DISPOSITION as EXCEPTION_DISPOSITION; -pub type ULONG = ::core::ffi::c_ulong; +pub type ULONG = crate::cty::c_ulong; pub type PULONG = *mut ULONG; -pub type USHORT = ::core::ffi::c_ushort; +pub type USHORT = crate::cty::c_ushort; pub type PUSHORT = *mut USHORT; -pub type UCHAR = ::core::ffi::c_uchar; +pub type UCHAR = crate::cty::c_uchar; pub type PUCHAR = *mut UCHAR; -pub type DWORD = ::core::ffi::c_ulong; -pub type BYTE = ::core::ffi::c_uchar; -pub type WORD = ::core::ffi::c_ushort; +pub type DWORD = crate::cty::c_ulong; +pub type BYTE = crate::cty::c_uchar; +pub type WORD = crate::cty::c_ushort; pub type PBOOL = *mut BOOL; pub type PDWORD = *mut DWORD; -pub type LPVOID = *mut ::core::ffi::c_void; -pub type UINT = ::core::ffi::c_uint; -pub type ULONG32 = ::core::ffi::c_uint; -pub type UINT_PTR = ::core::ffi::c_uint; -pub type LONG_PTR = ::core::ffi::c_long; -pub type ULONG_PTR = ::core::ffi::c_ulong; -pub type PULONG_PTR = *mut ::core::ffi::c_ulong; +pub type LPVOID = *mut crate::cty::c_void; +pub type UINT = crate::cty::c_uint; +pub type ULONG32 = crate::cty::c_uint; +pub type UINT_PTR = crate::cty::c_uint; +pub type LONG_PTR = crate::cty::c_long; +pub type ULONG_PTR = crate::cty::c_ulong; +pub type PULONG_PTR = *mut crate::cty::c_ulong; pub type SIZE_T = ULONG_PTR; pub type PSIZE_T = *mut ULONG_PTR; -pub type LONG64 = ::core::ffi::c_longlong; -pub type PLONG64 = *mut ::core::ffi::c_longlong; -pub type ULONG64 = ::core::ffi::c_ulonglong; -pub type PULONG64 = *mut ::core::ffi::c_ulonglong; -pub type DWORD64 = ::core::ffi::c_ulonglong; -pub type PDWORD64 = *mut ::core::ffi::c_ulonglong; +pub type LONG64 = crate::cty::c_longlong; +pub type PLONG64 = *mut crate::cty::c_longlong; +pub type ULONG64 = crate::cty::c_ulonglong; +pub type PULONG64 = *mut crate::cty::c_ulonglong; +pub type DWORD64 = crate::cty::c_ulonglong; +pub type PDWORD64 = *mut crate::cty::c_ulonglong; pub type KAFFINITY = ULONG_PTR; -pub type PVOID = *mut ::core::ffi::c_void; -pub type CHAR = ::core::ffi::c_char; -pub type SHORT = ::core::ffi::c_short; -pub type LONG = ::core::ffi::c_long; +pub type PVOID = *mut crate::cty::c_void; +pub type CHAR = crate::cty::c_char; +pub type SHORT = crate::cty::c_short; +pub type LONG = crate::cty::c_long; pub type WCHAR = wchar_t; pub type PWCHAR = *mut WCHAR; pub type PWCH = *mut WCHAR; @@ -3077,14 +3077,14 @@ pub struct _GROUP_AFFINITY { } pub type GROUP_AFFINITY = _GROUP_AFFINITY; pub type PGROUP_AFFINITY = *mut _GROUP_AFFINITY; -pub type HANDLE = *mut ::core::ffi::c_void; +pub type HANDLE = *mut crate::cty::c_void; pub type PHANDLE = *mut HANDLE; -pub type CCHAR = ::core::ffi::c_char; +pub type CCHAR = crate::cty::c_char; pub type LCID = DWORD; pub type PLCID = PDWORD; pub type LANGID = WORD; -pub type LONGLONG = ::core::ffi::c_longlong; -pub type ULONGLONG = ::core::ffi::c_ulonglong; +pub type LONGLONG = crate::cty::c_longlong; +pub type ULONGLONG = crate::cty::c_ulonglong; pub type PULONGLONG = *mut ULONGLONG; #[repr(C)] #[derive(Copy, Clone)] @@ -3198,10 +3198,10 @@ pub type PLIST_ENTRY32 = *mut LIST_ENTRY32; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct _GUID { - pub Data1: ::core::ffi::c_ulong, - pub Data2: ::core::ffi::c_ushort, - pub Data3: ::core::ffi::c_ushort, - pub Data4: [::core::ffi::c_uchar; 8usize], + pub Data1: crate::cty::c_ulong, + pub Data2: crate::cty::c_ushort, + pub Data3: crate::cty::c_ushort, + pub Data4: [crate::cty::c_uchar; 8usize], } pub type GUID = _GUID; pub type LPGUID = *mut GUID; @@ -3214,7 +3214,7 @@ pub type PEXCEPTION_ROUTINE = ::core::option::Option< arg4: PVOID, ) -> EXCEPTION_DISPOSITION, >; -pub type __C_ASSERT__ = [::core::ffi::c_char; 1usize]; +pub type __C_ASSERT__ = [crate::cty::c_char; 1usize]; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct _XSAVE_AREA_HEADER { @@ -9972,68 +9972,68 @@ pub type LPARAM = LONG_PTR; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HRGN__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HRGN = *mut HRGN__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HWINSTA__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HWINSTA = *mut HWINSTA__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HWND__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HWND = *mut HWND__; -pub type HGDIOBJ = *mut ::core::ffi::c_void; +pub type HGDIOBJ = *mut crate::cty::c_void; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HACCEL__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HACCEL = *mut HACCEL__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HBITMAP__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HBITMAP = *mut HBITMAP__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HDC__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HDC = *mut HDC__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HDESK__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HDESK = *mut HDESK__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HICON__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HICON = *mut HICON__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HMENU__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HMENU = *mut HMENU__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HWINEVENTHOOK__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HWINEVENTHOOK = *mut HWINEVENTHOOK__; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HMONITOR__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HMONITOR = *mut HMONITOR__; pub type HCURSOR = HICON; @@ -10294,8 +10294,8 @@ pub type TIMERPROC = ::core::option::Option< #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct tagMOUSEMOVEPOINT { - pub x: ::core::ffi::c_int, - pub y: ::core::ffi::c_int, + pub x: crate::cty::c_int, + pub y: crate::cty::c_int, pub time: DWORD, pub dwExtraInfo: ULONG_PTR, } @@ -10701,7 +10701,7 @@ pub type PCOMBOBOXINFO = *mut tagCOMBOBOXINFO; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct HRAWINPUT__ { - pub unused: ::core::ffi::c_int, + pub unused: crate::cty::c_int, } pub type HRAWINPUT = *mut HRAWINPUT__; #[repr(C)] @@ -11040,7 +11040,7 @@ pub struct _QUAD { #[repr(C)] #[derive(Copy, Clone)] pub union _QUAD__bindgen_ty_1 { - pub UseThisFieldToCopy: ::core::ffi::c_longlong, + pub UseThisFieldToCopy: crate::cty::c_longlong, pub DoNotUseThisField: f64, } impl Default for _QUAD__bindgen_ty_1 { @@ -11075,14 +11075,14 @@ pub type PQUAD_PTR = *mut _QUAD_PTR; pub type LOGICAL = ULONG; pub type PLOGICAL = *mut ULONG; pub type PNTSTATUS = *mut NTSTATUS; -pub type CSHORT = ::core::ffi::c_short; +pub type CSHORT = crate::cty::c_short; pub type CLONG = ULONG; pub type PCCHAR = *mut CCHAR; pub type PCSHORT = *mut CSHORT; pub type PCLONG = *mut CLONG; pub type PCSZ = PCSTR; pub type PPVOID = *mut PVOID; -pub type PCVOID = *const ::core::ffi::c_void; +pub type PCVOID = *const crate::cty::c_void; pub type KIRQL = UCHAR; pub type PKIRQL = *mut UCHAR; pub type KPRIORITY = LONG; @@ -46944,7 +46944,7 @@ pub type PEXTENDED_CREATE_INFORMATION = *mut _EXTENDED_CREATE_INFORMATION; #[derive(Debug, Copy, Clone)] pub struct _EXTENDED_CREATE_INFORMATION_32 { pub ExtendedCreateFlags: LONGLONG, - pub EaBuffer: *mut ::core::ffi::c_void, + pub EaBuffer: *mut crate::cty::c_void, pub EaLength: ULONG, } impl Default for _EXTENDED_CREATE_INFORMATION_32 { @@ -59768,7 +59768,7 @@ pub type PWNF_USER_CALLBACK = ::core::option::Option< arg2: WNF_CHANGE_STAMP, arg3: PWNF_TYPE_ID, arg4: PVOID, - arg5: *const ::core::ffi::c_void, + arg5: *const crate::cty::c_void, arg6: ULONG, ) -> NTSTATUS, >; @@ -67282,7 +67282,7 @@ pub struct _WMI_THREAD_INFORMATION { } pub type WMI_THREAD_INFORMATION = _WMI_THREAD_INFORMATION; pub type PWMI_THREAD_INFORMATION = *mut _WMI_THREAD_INFORMATION; -pub type SCHAR = ::core::ffi::c_schar; +pub type SCHAR = crate::cty::c_schar; #[repr(C)] #[derive(Copy, Clone)] pub struct _WMI_EXTENDED_THREAD_INFORMATION { @@ -72470,7 +72470,7 @@ pub type PPERFINFO_SYSCALL_EXIT_DATA = *mut _PERFINFO_SYSCALL_EXIT_DATA; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct _PERFINFO_MARK_INFORMATION { - pub Name: [::core::ffi::c_char; 1usize], + pub Name: [crate::cty::c_char; 1usize], } pub type PERFINFO_MARK_INFORMATION = _PERFINFO_MARK_INFORMATION; pub type PPERFINFO_MARK_INFORMATION = *mut _PERFINFO_MARK_INFORMATION; @@ -75070,21 +75070,21 @@ unsafe extern "stdcall" { pub fn NtDeleteWnfStateName(StateName: PCWNF_STATE_NAME) -> NTSTATUS; pub fn NtUpdateWnfStateData( StateName: PCWNF_STATE_NAME, - Buffer: *const ::core::ffi::c_void, + Buffer: *const crate::cty::c_void, Length: ULONG, TypeId: PCWNF_TYPE_ID, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, MatchingChangeStamp: WNF_CHANGE_STAMP, CheckStamp: LOGICAL, ) -> NTSTATUS; pub fn NtDeleteWnfStateData( StateName: PCWNF_STATE_NAME, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ) -> NTSTATUS; pub fn NtQueryWnfStateData( StateName: PCWNF_STATE_NAME, TypeId: PCWNF_TYPE_ID, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ChangeStamp: PWNF_CHANGE_STAMP, Buffer: PVOID, BufferSize: PULONG, @@ -75092,7 +75092,7 @@ unsafe extern "stdcall" { pub fn NtQueryWnfStateNameInformation( StateName: PCWNF_STATE_NAME, NameInfoClass: WNF_STATE_NAME_INFORMATION, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, InfoBuffer: PVOID, InfoBufferSize: ULONG, ) -> NTSTATUS; @@ -77411,7 +77411,7 @@ unsafe extern "stdcall" { pub fn RtlBarrier(Barrier: PRTL_BARRIER, Flags: ULONG) -> BOOLEAN; pub fn RtlBarrierForDelete(Barrier: PRTL_BARRIER, Flags: ULONG) -> BOOLEAN; pub fn RtlWaitOnAddress( - Address: *mut ::core::ffi::c_void, + Address: *mut crate::cty::c_void, CompareAddress: PVOID, AddressSize: SIZE_T, Timeout: PLARGE_INTEGER, @@ -78234,17 +78234,17 @@ unsafe extern "stdcall" { ) -> NTSTATUS; pub fn RtlValidateUserCallTarget(Address: PVOID, Flags: PULONG); pub fn RtlCompareMemory( - Source1: *const ::core::ffi::c_void, - Source2: *const ::core::ffi::c_void, + Source1: *const crate::cty::c_void, + Source2: *const crate::cty::c_void, Length: SIZE_T, ) -> SIZE_T; pub fn RtlCompareMemoryUlong(Source: PVOID, Length: SIZE_T, Pattern: ULONG) -> SIZE_T; pub fn RtlFillMemoryUlong(Destination: PVOID, Length: SIZE_T, Pattern: ULONG); pub fn RtlFillMemoryUlonglong(Destination: PVOID, Length: SIZE_T, Pattern: ULONGLONG); pub fn RtlIsZeroMemory(Buffer: PVOID, Length: SIZE_T) -> BOOLEAN; - pub fn RtlCrc32(Buffer: *const ::core::ffi::c_void, Size: usize, InitialCrc: DWORD) -> DWORD; + pub fn RtlCrc32(Buffer: *const crate::cty::c_void, Size: usize, InitialCrc: DWORD) -> DWORD; pub fn RtlCrc64( - Buffer: *const ::core::ffi::c_void, + Buffer: *const crate::cty::c_void, Size: usize, InitialCrc: ULONGLONG, ) -> ULONGLONG; @@ -79899,9 +79899,9 @@ unsafe extern "stdcall" { pub fn RtlPublishWnfStateData( StateName: WNF_STATE_NAME, TypeId: PCWNF_TYPE_ID, - Buffer: *const ::core::ffi::c_void, + Buffer: *const crate::cty::c_void, Length: ULONG, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ) -> NTSTATUS; pub fn RtlSubscribeWnfStateChangeNotification( SubscriptionHandle: *mut PVOID, @@ -82181,7 +82181,7 @@ unsafe extern "stdcall" { pub fn ZwDeleteValueKey(KeyHandle: HANDLE, ValueName: PUNICODE_STRING) -> NTSTATUS; pub fn ZwDeleteWnfStateData( StateName: PCWNF_STATE_NAME, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ) -> NTSTATUS; pub fn ZwDeleteWnfStateName(StateName: PCWNF_STATE_NAME) -> NTSTATUS; pub fn ZwDeviceIoControlFile( @@ -83199,7 +83199,7 @@ unsafe extern "stdcall" { pub fn ZwQueryWnfStateData( StateName: PCWNF_STATE_NAME, TypeId: PCWNF_TYPE_ID, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, ChangeStamp: PWNF_CHANGE_STAMP, Buffer: PVOID, BufferSize: PULONG, @@ -83207,7 +83207,7 @@ unsafe extern "stdcall" { pub fn ZwQueryWnfStateNameInformation( StateName: PCWNF_STATE_NAME, NameInfoClass: WNF_STATE_NAME_INFORMATION, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, InfoBuffer: PVOID, InfoBufferSize: ULONG, ) -> NTSTATUS; @@ -83755,10 +83755,10 @@ unsafe extern "stdcall" { pub fn ZwUnsubscribeWnfStateChange(StateName: PCWNF_STATE_NAME) -> NTSTATUS; pub fn ZwUpdateWnfStateData( StateName: PCWNF_STATE_NAME, - Buffer: *const ::core::ffi::c_void, + Buffer: *const crate::cty::c_void, Length: ULONG, TypeId: PCWNF_TYPE_ID, - ExplicitScope: *const ::core::ffi::c_void, + ExplicitScope: *const crate::cty::c_void, MatchingChangeStamp: WNF_CHANGE_STAMP, CheckStamp: LOGICAL, ) -> NTSTATUS; @@ -84027,7 +84027,7 @@ unsafe extern "stdcall" { ) -> ULONG; pub fn NtUserDrawAnimatedRects( WindowHandle: HWND, - idAni: ::core::ffi::c_int, + idAni: crate::cty::c_int, lprcFrom: *const RECT, lprcTo: *const RECT, ) -> BOOL;