diff --git a/crates/libs/bindgen/src/types/cpp_const.rs b/crates/libs/bindgen/src/types/cpp_const.rs index 92ef1309f0..39782aa1f3 100644 --- a/crates/libs/bindgen/src/types/cpp_const.rs +++ b/crates/libs/bindgen/src/types/cpp_const.rs @@ -84,11 +84,17 @@ impl CppConst { value = format!("0x{:X}_u32 as _", signed).into(); } } + } else if field_ty == Type::Bool { + value = match constant.value() { + Value::U8(1) => quote! { true }, + Value::U8(0) => quote! { false }, + _ => panic!(), + }; } else { value = quote! { #value as _ }; } - if writer.config.sys { + if writer.config.sys || field_ty == Type::Bool { quote! { #cfg pub const #name: #ty = #value; diff --git a/crates/libs/bindgen/src/types/cpp_method.rs b/crates/libs/bindgen/src/types/cpp_method.rs index b7b1065e12..0a5f3ecd04 100644 --- a/crates/libs/bindgen/src/types/cpp_method.rs +++ b/crates/libs/bindgen/src/types/cpp_method.rs @@ -162,8 +162,7 @@ impl CppMethod { || param.has_attribute("ReservedAttribute")) { *hint = ParamHint::Optional; - } else if !flags.contains(ParamAttributes::Out) - && matches!(ty.type_name(), TypeName::BOOL | TypeName::BOOLEAN) + } else if !flags.contains(ParamAttributes::Out) && ty.type_name() == TypeName::BOOL { *hint = ParamHint::Bool; } else if ty.is_primitive() && (!ty.is_pointer() || ty.deref().is_copyable()) { diff --git a/crates/libs/bindgen/src/types/mod.rs b/crates/libs/bindgen/src/types/mod.rs index e0ae4fedf7..bb84a4e8a5 100644 --- a/crates/libs/bindgen/src/types/mod.rs +++ b/crates/libs/bindgen/src/types/mod.rs @@ -166,6 +166,7 @@ impl Type { TypeName::BSTR => Remap::Type(Self::BSTR), TypeName::IInspectable => Remap::Type(Self::Object), TypeName::CHAR => Remap::Type(Self::I8), + TypeName::BOOLEAN => Remap::Type(Self::Bool), TypeName::IUnknown => Remap::Type(Self::IUnknown), TypeName::Type => Remap::Type(Self::Type), diff --git a/crates/libs/sys/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs b/crates/libs/sys/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs index b07346c904..21e55447e5 100644 --- a/crates/libs/sys/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/sys/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs @@ -1,6 +1,6 @@ windows_targets::link!("vhfum.dll" "system" fn VhfAsyncOperationComplete(vhfoperationhandle : *const core::ffi::c_void, completionstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("vhfum.dll" "system" fn VhfCreate(vhfconfig : *const VHF_CONFIG, vhfhandle : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("vhfum.dll" "system" fn VhfDelete(vhfhandle : *const core::ffi::c_void, wait : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("vhfum.dll" "system" fn VhfDelete(vhfhandle : *const core::ffi::c_void, wait : bool)); windows_targets::link!("vhfum.dll" "system" fn VhfReadReportSubmit(vhfhandle : *const core::ffi::c_void, hidtransferpacket : *const HID_XFER_PACKET) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("vhfum.dll" "system" fn VhfStart(vhfhandle : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); pub type EVT_VHF_ASYNC_OPERATION = Option; diff --git a/crates/libs/sys/src/Windows/Wdk/Foundation/mod.rs b/crates/libs/sys/src/Windows/Wdk/Foundation/mod.rs index 9ae3901ae6..f14846a40f 100644 --- a/crates/libs/sys/src/Windows/Wdk/Foundation/mod.rs +++ b/crates/libs/sys/src/Windows/Wdk/Foundation/mod.rs @@ -5,10 +5,10 @@ windows_targets::link!("ntdll.dll" "system" fn NtQueryObject(handle : super::sup #[derive(Clone, Copy)] pub struct ACCESS_STATE { pub OperationID: super::super::Win32::Foundation::LUID, - pub SecurityEvaluated: super::super::Win32::Foundation::BOOLEAN, - pub GenerateAudit: super::super::Win32::Foundation::BOOLEAN, - pub GenerateOnClose: super::super::Win32::Foundation::BOOLEAN, - pub PrivilegesAllocated: super::super::Win32::Foundation::BOOLEAN, + pub SecurityEvaluated: bool, + pub GenerateAudit: bool, + pub GenerateOnClose: bool, + pub PrivilegesAllocated: bool, pub Flags: u32, pub RemainingDesiredAccess: u32, pub PreviouslyGrantedAccess: u32, @@ -17,7 +17,7 @@ pub struct ACCESS_STATE { pub SecurityDescriptor: super::super::Win32::Security::PSECURITY_DESCRIPTOR, pub AuxData: *mut core::ffi::c_void, pub Privileges: ACCESS_STATE_0, - pub AuditPrivileges: super::super::Win32::Foundation::BOOLEAN, + pub AuditPrivileges: bool, pub ObjectName: super::super::Win32::Foundation::UNICODE_STRING, pub ObjectTypeName: super::super::Win32::Foundation::UNICODE_STRING, } @@ -235,7 +235,7 @@ pub union DISPATCHER_HEADER_0_5_1 { pub struct DISPATCHER_HEADER_0_6 { pub MutantType: u8, pub MutantSize: u8, - pub DpcActive: super::super::Win32::Foundation::BOOLEAN, + pub DpcActive: bool, pub MutantReserved: u8, } pub type DMA_COMMON_BUFFER_VECTOR = isize; @@ -259,7 +259,7 @@ pub struct DRIVER_EXTENSION { pub ServiceKeyName: super::super::Win32::Foundation::UNICODE_STRING, } #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type DRIVER_FS_NOTIFICATION = Option; +pub type DRIVER_FS_NOTIFICATION = Option; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type DRIVER_INITIALIZE = Option super::super::Win32::Foundation::NTSTATUS>; pub type DRIVER_NOTIFICATION_CALLBACK_ROUTINE = Option super::super::Win32::Foundation::NTSTATUS>; @@ -339,11 +339,11 @@ pub type FAST_IO_ACQUIRE_FOR_CCFLUSH = Option super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_CHECK_IF_POSSIBLE = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_CHECK_IF_POSSIBLE = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type FAST_IO_DETACH_DEVICE = Option; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_DEVICE_CONTROL = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_DEVICE_CONTROL = Option bool>; #[repr(C)] #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy)] @@ -378,31 +378,31 @@ pub struct FAST_IO_DISPATCH { pub ReleaseForCcFlush: FAST_IO_RELEASE_FOR_CCFLUSH, } #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_LOCK = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_LOCK = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_MDL_READ = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_MDL_READ = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_MDL_READ_COMPLETE = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_MDL_READ_COMPLETE = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_MDL_READ_COMPLETE_COMPRESSED = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_MDL_READ_COMPLETE_COMPRESSED = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_MDL_WRITE_COMPLETE = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_MDL_WRITE_COMPLETE = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_MDL_WRITE_COMPLETE_COMPRESSED = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_MDL_WRITE_COMPLETE_COMPRESSED = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_PREPARE_MDL_WRITE = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_PREPARE_MDL_WRITE = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_QUERY_BASIC_INFO = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_QUERY_BASIC_INFO = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_QUERY_NETWORK_OPEN_INFO = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_QUERY_NETWORK_OPEN_INFO = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_QUERY_OPEN = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_QUERY_OPEN = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_QUERY_STANDARD_INFO = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_QUERY_STANDARD_INFO = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_READ = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_READ = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_READ_COMPRESSED = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_READ_COMPRESSED = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type FAST_IO_RELEASE_FILE = Option; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -410,15 +410,15 @@ pub type FAST_IO_RELEASE_FOR_CCFLUSH = Option super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_UNLOCK_ALL = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_UNLOCK_ALL = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_UNLOCK_ALL_BY_KEY = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_UNLOCK_ALL_BY_KEY = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_UNLOCK_SINGLE = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_UNLOCK_SINGLE = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_WRITE = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_WRITE = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_WRITE_COMPRESSED = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_WRITE_COMPRESSED = Option bool>; #[repr(C)] #[cfg(feature = "Win32_System_Kernel")] #[derive(Clone, Copy)] @@ -443,14 +443,14 @@ pub struct FILE_OBJECT { pub PrivateCacheMap: *mut core::ffi::c_void, pub FinalStatus: super::super::Win32::Foundation::NTSTATUS, pub RelatedFileObject: *mut FILE_OBJECT, - pub LockOperation: super::super::Win32::Foundation::BOOLEAN, - pub DeletePending: super::super::Win32::Foundation::BOOLEAN, - pub ReadAccess: super::super::Win32::Foundation::BOOLEAN, - pub WriteAccess: super::super::Win32::Foundation::BOOLEAN, - pub DeleteAccess: super::super::Win32::Foundation::BOOLEAN, - pub SharedRead: super::super::Win32::Foundation::BOOLEAN, - pub SharedWrite: super::super::Win32::Foundation::BOOLEAN, - pub SharedDelete: super::super::Win32::Foundation::BOOLEAN, + pub LockOperation: bool, + pub DeletePending: bool, + pub ReadAccess: bool, + pub WriteAccess: bool, + pub DeleteAccess: bool, + pub SharedRead: bool, + pub SharedWrite: bool, + pub SharedDelete: bool, pub Flags: u32, pub FileName: super::super::Win32::Foundation::UNICODE_STRING, pub CurrentByteOffset: i64, @@ -789,14 +789,14 @@ pub union IO_STACK_LOCATION_0_9_0 { #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy)] pub struct IO_STACK_LOCATION_0_9_0_0 { - pub ReplaceIfExists: super::super::Win32::Foundation::BOOLEAN, - pub AdvanceOnly: super::super::Win32::Foundation::BOOLEAN, + pub ReplaceIfExists: bool, + pub AdvanceOnly: bool, } #[repr(C)] #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy)] pub struct IO_STACK_LOCATION_0_29 { - pub Lock: super::super::Win32::Foundation::BOOLEAN, + pub Lock: bool, } #[repr(C)] #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -829,8 +829,8 @@ pub struct IO_STACK_LOCATION_0_36 { #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy)] pub struct IO_STACK_LOCATION_0_32 { - pub InPath: super::super::Win32::Foundation::BOOLEAN, - pub Reserved: [super::super::Win32::Foundation::BOOLEAN; 3], + pub InPath: bool, + pub Reserved: [bool; 3], pub Type: super::System::SystemServices::DEVICE_USAGE_NOTIFICATION_TYPE, } #[repr(C)] @@ -875,10 +875,10 @@ pub struct IRP { pub ThreadListEntry: super::super::Win32::System::Kernel::LIST_ENTRY, pub IoStatus: super::super::Win32::System::IO::IO_STATUS_BLOCK, pub RequestorMode: i8, - pub PendingReturned: super::super::Win32::Foundation::BOOLEAN, + pub PendingReturned: bool, pub StackCount: i8, pub CurrentLocation: i8, - pub Cancel: super::super::Win32::Foundation::BOOLEAN, + pub Cancel: bool, pub CancelIrql: u8, pub ApcEnvironment: i8, pub AllocationFlags: u8, @@ -990,7 +990,7 @@ pub struct KDEVICE_QUEUE { pub Size: i16, pub DeviceListHead: super::super::Win32::System::Kernel::LIST_ENTRY, pub Lock: usize, - pub Busy: super::super::Win32::Foundation::BOOLEAN, + pub Busy: bool, } #[repr(C)] #[cfg(feature = "Win32_System_Kernel")] diff --git a/crates/libs/sys/src/Windows/Wdk/Graphics/Direct3D/mod.rs b/crates/libs/sys/src/Windows/Wdk/Graphics/Direct3D/mod.rs index 36bce41e03..b5a73949f8 100644 --- a/crates/libs/sys/src/Windows/Wdk/Graphics/Direct3D/mod.rs +++ b/crates/libs/sys/src/Windows/Wdk/Graphics/Direct3D/mod.rs @@ -5,7 +5,7 @@ windows_targets::link!("gdi32.dll" "system" fn D3DKMTCancelPresents(param0 : *co #[cfg(feature = "Win32_Graphics_Gdi")] windows_targets::link!("gdi32.dll" "system" fn D3DKMTChangeSurfacePointer(param0 : *const D3DKMT_CHANGESURFACEPOINTER) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("gdi32.dll" "system" fn D3DKMTChangeVideoMemoryReservation(param0 : *const D3DKMT_CHANGEVIDEOMEMORYRESERVATION) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("gdi32.dll" "system" fn D3DKMTCheckExclusiveOwnership() -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("gdi32.dll" "system" fn D3DKMTCheckExclusiveOwnership() -> bool); windows_targets::link!("gdi32.dll" "system" fn D3DKMTCheckMonitorPowerState(param0 : *const D3DKMT_CHECKMONITORPOWERSTATE) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("gdi32.dll" "system" fn D3DKMTCheckMultiPlaneOverlaySupport(param0 : *mut D3DKMT_CHECKMULTIPLANEOVERLAYSUPPORT) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("gdi32.dll" "system" fn D3DKMTCheckMultiPlaneOverlaySupport2(param0 : *mut D3DKMT_CHECKMULTIPLANEOVERLAYSUPPORT2) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -2258,7 +2258,7 @@ pub struct D3DKMDT_VIDEO_PRESENT_TARGET { pub VideoOutputTechnology: D3DKMDT_VIDEO_OUTPUT_TECHNOLOGY, pub VideoOutputHpdAwareness: DXGK_CHILD_DEVICE_HPD_AWARENESS, pub MonitorOrientationAwareness: D3DKMDT_MONITOR_ORIENTATION_AWARENESS, - pub SupportsSdtvModes: super::super::super::Win32::Foundation::BOOLEAN, + pub SupportsSdtvModes: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2647,7 +2647,7 @@ pub const D3DKMT_AllocationPriorityClassNormal: D3DKMT_QUERYSTATISTICS_ALLOCATIO #[repr(C)] #[derive(Clone, Copy)] pub struct D3DKMT_BDDFALLBACK_CTL { - pub ForceBddHeadlessNextFallback: super::super::super::Win32::Foundation::BOOLEAN, + pub ForceBddHeadlessNextFallback: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2679,7 +2679,7 @@ pub union D3DKMT_BRIGHTNESS_INFO_0 { pub BrightnessState: DXGK_BRIGHTNESS_STATE, pub OptimizationLevel: DXGK_BACKLIGHT_OPTIMIZATION_LEVEL, pub ReductionInfo: DXGK_BACKLIGHT_INFO, - pub VerboseLogging: super::super::super::Win32::Foundation::BOOLEAN, + pub VerboseLogging: bool, pub NitRanges: DXGK_BRIGHTNESS_GET_NIT_RANGES_OUT, pub GetBrightnessMillinits: DXGK_BRIGHTNESS_GET_OUT, pub SetBrightnessMillinits: DXGK_BRIGHTNESS_SET_IN, @@ -2892,9 +2892,9 @@ pub struct D3DKMT_COMPOSITION_PRESENTHISTORYTOKEN { pub struct D3DKMT_CONFIGURESHAREDRESOURCE { pub hDevice: u32, pub hResource: u32, - pub IsDwm: super::super::super::Win32::Foundation::BOOLEAN, + pub IsDwm: bool, pub hProcess: super::super::super::Win32::Foundation::HANDLE, - pub AllowAccess: super::super::super::Win32::Foundation::BOOLEAN, + pub AllowAccess: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -3338,7 +3338,7 @@ pub struct D3DKMT_DEVICEPAGEFAULT_STATE { #[derive(Clone, Copy)] pub struct D3DKMT_DEVICEPRESENT_QUEUE_STATE { pub VidPnSourceId: u32, - pub bQueuedPresentLimitReached: super::super::super::Win32::Foundation::BOOLEAN, + pub bQueuedPresentLimitReached: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -3602,7 +3602,7 @@ pub const D3DKMT_ESCAPE_VIDSCH: D3DKMT_ESCAPETYPE = 3i32; pub struct D3DKMT_ESCAPE_VIRTUAL_REFRESH_RATE { pub Type: D3DKMT_ESCAPE_VIRTUAL_REFRESH_RATE_TYPE, pub VidPnSourceId: u32, - pub ProcessBoostEligible: super::super::super::Win32::Foundation::BOOLEAN, + pub ProcessBoostEligible: bool, pub VSyncMultiplier: u32, pub BaseDesktopDuration: u32, pub Reserved: [u8; 16], @@ -3878,7 +3878,7 @@ pub struct D3DKMT_GETMULTISAMPLEMETHODLIST { pub struct D3DKMT_GETOVERLAYSTATE { pub hDevice: u32, pub hOverlay: u32, - pub OverlayEnabled: super::super::super::Win32::Foundation::BOOLEAN, + pub OverlayEnabled: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -3895,7 +3895,7 @@ pub const D3DKMT_GETPRESENTHISTORY_MAXTOKENS: u32 = 2048u32; pub struct D3DKMT_GETPROCESSDEVICEREMOVALSUPPORT { pub hProcess: super::super::super::Win32::Foundation::HANDLE, pub AdapterLuid: super::super::super::Win32::Foundation::LUID, - pub Support: super::super::super::Win32::Foundation::BOOLEAN, + pub Support: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -3910,7 +3910,7 @@ pub struct D3DKMT_GETRUNTIMEDATA { pub struct D3DKMT_GETSCANLINE { pub hAdapter: u32, pub VidPnSourceId: u32, - pub InVerticalBlank: super::super::super::Win32::Foundation::BOOLEAN, + pub InVerticalBlank: bool, pub ScanLine: u32, } #[repr(C)] @@ -3939,7 +3939,7 @@ pub struct D3DKMT_GETVERTICALBLANKEVENT { #[derive(Clone, Copy)] pub struct D3DKMT_GET_DEVICE_VIDPN_OWNERSHIP_INFO { pub hDevice: u32, - pub bFailedDwmAcquireVidPn: super::super::super::Win32::Foundation::BOOLEAN, + pub bFailedDwmAcquireVidPn: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -3973,7 +3973,7 @@ pub struct D3DKMT_GET_PTE { pub PhysicalAdapterIndex: u32, pub PageTableLevel: u32, pub PageTableIndex: [u32; 6], - pub b64KBPte: super::super::super::Win32::Foundation::BOOLEAN, + pub b64KBPte: bool, pub NumPtes: u32, pub Pte: [DXGK_PTE; 64], pub NumValidEntries: u32, @@ -4025,13 +4025,13 @@ pub const D3DKMT_GPU_PREFERENCE_TYPE_USER_PREFERENCE: D3DKMT_GPU_PREFERENCE_QUER #[repr(C)] #[derive(Clone, Copy)] pub struct D3DKMT_HISTORY_BUFFER_STATUS { - pub Enabled: super::super::super::Win32::Foundation::BOOLEAN, + pub Enabled: bool, pub Reserved: u32, } #[repr(C)] #[derive(Clone, Copy)] pub struct D3DKMT_HWDRM_SUPPORT { - pub Supported: super::super::super::Win32::Foundation::BOOLEAN, + pub Supported: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -4149,9 +4149,9 @@ pub const D3DKMT_MIRACAST_DEVICE_STATUS_UNKOWN_PAIRING: D3DKMT_MIRACAST_DEVICE_S #[repr(C)] #[derive(Clone, Copy)] pub struct D3DKMT_MIRACAST_DISPLAY_DEVICE_CAPS { - pub HdcpSupported: super::super::super::Win32::Foundation::BOOLEAN, + pub HdcpSupported: bool, pub DefaultControlPort: u32, - pub UsesIhvSolution: super::super::super::Win32::Foundation::BOOLEAN, + pub UsesIhvSolution: bool, } pub type D3DKMT_MIRACAST_DISPLAY_DEVICE_STATE = i32; #[repr(C)] @@ -4776,7 +4776,7 @@ pub struct D3DKMT_PANELFITTER_SUPPORT { #[repr(C)] #[derive(Clone, Copy)] pub struct D3DKMT_PARAVIRTUALIZATION { - pub SecureContainer: super::super::super::Win32::Foundation::BOOLEAN, + pub SecureContainer: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -4868,7 +4868,7 @@ pub struct D3DKMT_PRESENT { pub BroadcastDstAllocation: *mut u32, pub PrivateDriverDataSize: u32, pub pPrivateDriverData: *mut core::ffi::c_void, - pub bOptimizeForComposition: super::super::super::Win32::Foundation::BOOLEAN, + pub bOptimizeForComposition: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -5916,8 +5916,8 @@ pub struct D3DKMT_SEGMENT_CAPS { pub Size: u64, pub PageSize: u32, pub SegmentId: u32, - pub bAperture: super::super::super::Win32::Foundation::BOOLEAN, - pub bReservedSysMem: super::super::super::Win32::Foundation::BOOLEAN, + pub bAperture: bool, + pub bReservedSysMem: bool, pub BudgetGroup: D3DKMT_MEMORY_SEGMENT_GROUP, } #[repr(C)] @@ -8428,13 +8428,13 @@ pub const DXGK_ENGINE_TYPE_VIDEO_PROCESSING: DXGK_ENGINE_TYPE = 4i32; #[repr(C)] #[derive(Clone, Copy)] pub struct DXGK_ESCAPE_GPUMMUCAPS { - pub ReadOnlyMemorySupported: super::super::super::Win32::Foundation::BOOLEAN, - pub NoExecuteMemorySupported: super::super::super::Win32::Foundation::BOOLEAN, - pub ZeroInPteSupported: super::super::super::Win32::Foundation::BOOLEAN, - pub CacheCoherentMemorySupported: super::super::super::Win32::Foundation::BOOLEAN, - pub LargePageSupported: super::super::super::Win32::Foundation::BOOLEAN, - pub DualPteSupported: super::super::super::Win32::Foundation::BOOLEAN, - pub AllowNonAlignedLargePageAddress: super::super::super::Win32::Foundation::BOOLEAN, + pub ReadOnlyMemorySupported: bool, + pub NoExecuteMemorySupported: bool, + pub ZeroInPteSupported: bool, + pub CacheCoherentMemorySupported: bool, + pub LargePageSupported: bool, + pub DualPteSupported: bool, + pub AllowNonAlignedLargePageAddress: bool, pub VirtualAddressBitCount: u32, pub PageTableLevelCount: u32, pub PageTableLevelDesk: [D3DKMT_PAGE_TABLE_LEVEL_DESC; 6], @@ -8576,8 +8576,8 @@ pub struct DXGK_NODEMETADATA { pub EngineType: DXGK_ENGINE_TYPE, pub FriendlyName: [u16; 32], pub Flags: DXGK_NODEMETADATA_FLAGS, - pub GpuMmuSupported: super::super::super::Win32::Foundation::BOOLEAN, - pub IoMmuSupported: super::super::super::Win32::Foundation::BOOLEAN, + pub GpuMmuSupported: bool, + pub IoMmuSupported: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -8821,13 +8821,13 @@ pub const OUTPUTDUPL_CONTEXT_DEBUG_STATUS_ACTIVE: OUTPUTDUPL_CONTEXT_DEBUG_STATU pub const OUTPUTDUPL_CONTEXT_DEBUG_STATUS_INACTIVE: OUTPUTDUPL_CONTEXT_DEBUG_STATUS = 0i32; pub const OUTPUTDUPL_CONTEXT_DEBUG_STATUS_PENDING_DESTROY: OUTPUTDUPL_CONTEXT_DEBUG_STATUS = 2i32; pub const OUTPUTDUPL_CREATE_MAX_KEYEDMUTXES: u32 = 3u32; -pub type PDXGK_FSTATE_NOTIFICATION = Option; +pub type PDXGK_FSTATE_NOTIFICATION = Option; pub type PDXGK_GRAPHICSPOWER_UNREGISTER = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PDXGK_INITIAL_COMPONENT_STATE = Option; +pub type PDXGK_INITIAL_COMPONENT_STATE = Option; #[cfg(feature = "Win32_System_Power")] -pub type PDXGK_POWER_NOTIFICATION = Option; +pub type PDXGK_POWER_NOTIFICATION = Option; pub type PDXGK_REMOVAL_NOTIFICATION = Option; -pub type PDXGK_SET_SHARED_POWER_COMPONENT_STATE = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PDXGK_SET_SHARED_POWER_COMPONENT_STATE = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_ACQUIREKEYEDMUTEX = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_ACQUIREKEYEDMUTEX2 = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_ADJUSTFULLSCREENGAMMA = Option super::super::super::Win32::Foundation::NTSTATUS>; @@ -8836,7 +8836,7 @@ pub type PFND3DKMT_CANCELPRESENTS = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_CHANGEVIDEOMEMORYRESERVATION = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PFND3DKMT_CHECKEXCLUSIVEOWNERSHIP = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PFND3DKMT_CHECKEXCLUSIVEOWNERSHIP = Option bool>; pub type PFND3DKMT_CHECKMONITORPOWERSTATE = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_CHECKMULTIPLANEOVERLAYSUPPORT = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_CHECKMULTIPLANEOVERLAYSUPPORT2 = Option super::super::super::Win32::Foundation::NTSTATUS>; diff --git a/crates/libs/sys/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs b/crates/libs/sys/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs index 5156f639c7..4fba436e0c 100644 --- a/crates/libs/sys/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs +++ b/crates/libs/sys/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs @@ -1,7 +1,7 @@ -windows_targets::link!("ndis.sys" "system" fn NdisAcquireReadWriteLock(lock : *mut NDIS_RW_LOCK, fwrite : super::super::super::Win32::Foundation:: BOOLEAN, lockstate : *mut LOCK_STATE)); +windows_targets::link!("ndis.sys" "system" fn NdisAcquireReadWriteLock(lock : *mut NDIS_RW_LOCK, fwrite : bool, lockstate : *mut LOCK_STATE)); windows_targets::link!("ndis.sys" "system" fn NdisAllocateMemoryWithTag(virtualaddress : *mut *mut core::ffi::c_void, length : u32, tag : u32) -> i32); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] -windows_targets::link!("ndis.sys" "system" fn NdisCancelTimer(timer : *const NDIS_TIMER, timercancelled : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ndis.sys" "system" fn NdisCancelTimer(timer : *const NDIS_TIMER, timercancelled : *mut bool)); windows_targets::link!("ndis.sys" "system" fn NdisClAddParty(ndisvchandle : *const core::ffi::c_void, protocolpartycontext : *const core::ffi::c_void, callparameters : *mut CO_CALL_PARAMETERS, ndispartyhandle : *mut *mut core::ffi::c_void) -> i32); windows_targets::link!("ndis.sys" "system" fn NdisClCloseAddressFamily(ndisafhandle : *const core::ffi::c_void) -> i32); windows_targets::link!("ndis.sys" "system" fn NdisClCloseCall(ndisvchandle : *const core::ffi::c_void, ndispartyhandle : *const core::ffi::c_void, buffer : *const core::ffi::c_void, size : u32) -> i32); @@ -35,7 +35,7 @@ windows_targets::link!("ndis.sys" "system" fn NdisCoCreateVc(ndisbindinghandle : windows_targets::link!("ndis.sys" "system" fn NdisCoDeleteVc(ndisvchandle : *const core::ffi::c_void) -> i32); windows_targets::link!("ndis.sys" "system" fn NdisCoGetTapiCallId(ndisvchandle : *const core::ffi::c_void, tapicallid : *mut VAR_STRING) -> i32); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ndis.sys" "system" fn NdisCompleteDmaTransfer(status : *mut i32, ndisdmahandle : *mut core::ffi::c_void, buffer : *mut super::super::Foundation:: MDL, offset : u32, length : u32, writetodevice : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ndis.sys" "system" fn NdisCompleteDmaTransfer(status : *mut i32, ndisdmahandle : *mut core::ffi::c_void, buffer : *mut super::super::Foundation:: MDL, offset : u32, length : u32, writetodevice : bool)); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ndis.sys" "system" fn NdisCopyBuffer(status : *mut i32, buffer : *mut *mut super::super::Foundation:: MDL, poolhandle : *const core::ffi::c_void, memorydescriptor : *const core::ffi::c_void, offset : u32, length : u32)); windows_targets::link!("ndis.sys" "system" fn NdisDeregisterTdiCallBack()); @@ -57,10 +57,10 @@ windows_targets::link!("ndis.sys" "system" fn NdisInitializeReadWriteLock(lock : windows_targets::link!("ndis.sys" "system" fn NdisInitializeString(destination : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, source : *const u8)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] windows_targets::link!("ndis.sys" "system" fn NdisInitializeTimer(timer : *mut NDIS_TIMER, timerfunction : PNDIS_TIMER_FUNCTION, functioncontext : *const core::ffi::c_void)); -windows_targets::link!("ndis.sys" "system" fn NdisMAllocateSharedMemory(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : super::super::super::Win32::Foundation:: BOOLEAN, virtualaddress : *mut *mut core::ffi::c_void, physicaladdress : *mut i64)); -windows_targets::link!("ndis.sys" "system" fn NdisMAllocateSharedMemoryAsync(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : super::super::super::Win32::Foundation:: BOOLEAN, context : *const core::ffi::c_void) -> i32); +windows_targets::link!("ndis.sys" "system" fn NdisMAllocateSharedMemory(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : bool, virtualaddress : *mut *mut core::ffi::c_void, physicaladdress : *mut i64)); +windows_targets::link!("ndis.sys" "system" fn NdisMAllocateSharedMemoryAsync(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : bool, context : *const core::ffi::c_void) -> i32); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] -windows_targets::link!("ndis.sys" "system" fn NdisMCancelTimer(timer : *const NDIS_MINIPORT_TIMER, timercancelled : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ndis.sys" "system" fn NdisMCancelTimer(timer : *const NDIS_MINIPORT_TIMER, timercancelled : *mut bool)); windows_targets::link!("ndis.sys" "system" fn NdisMCloseLog(loghandle : *const core::ffi::c_void)); windows_targets::link!("ndis.sys" "system" fn NdisMCmActivateVc(ndisvchandle : *const core::ffi::c_void, callparameters : *const CO_CALL_PARAMETERS) -> i32); windows_targets::link!("ndis.sys" "system" fn NdisMCmCreateVc(miniportadapterhandle : *const core::ffi::c_void, ndisafhandle : *const core::ffi::c_void, miniportvccontext : *const core::ffi::c_void, ndisvchandle : *mut *mut core::ffi::c_void) -> i32); @@ -73,7 +73,7 @@ windows_targets::link!("ndis.sys" "system" fn NdisMCreateLog(miniportadapterhand windows_targets::link!("ndis.sys" "system" fn NdisMDeregisterDmaChannel(miniportdmahandle : *const core::ffi::c_void)); windows_targets::link!("ndis.sys" "system" fn NdisMDeregisterIoPortRange(miniportadapterhandle : *const core::ffi::c_void, initialport : u32, numberofports : u32, portoffset : *const core::ffi::c_void)); windows_targets::link!("ndis.sys" "system" fn NdisMFlushLog(loghandle : *const core::ffi::c_void)); -windows_targets::link!("ndis.sys" "system" fn NdisMFreeSharedMemory(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : super::super::super::Win32::Foundation:: BOOLEAN, virtualaddress : *const core::ffi::c_void, physicaladdress : i64)); +windows_targets::link!("ndis.sys" "system" fn NdisMFreeSharedMemory(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : bool, virtualaddress : *const core::ffi::c_void, physicaladdress : i64)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ndis.sys" "system" fn NdisMGetDeviceProperty(miniportadapterhandle : *const core::ffi::c_void, physicaldeviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT, functionaldeviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT, nextdeviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT, allocatedresources : *mut *mut super::super::System::SystemServices:: CM_RESOURCE_LIST, allocatedresourcestranslated : *mut *mut super::super::System::SystemServices:: CM_RESOURCE_LIST)); windows_targets::link!("ndis.sys" "system" fn NdisMGetDmaAlignment(miniportadapterhandle : *const core::ffi::c_void) -> u32); @@ -83,7 +83,7 @@ windows_targets::link!("ndis.sys" "system" fn NdisMMapIoSpace(virtualaddress : * windows_targets::link!("ndis.sys" "system" fn NdisMQueryAdapterInstanceName(padapterinstancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, miniporthandle : *const core::ffi::c_void) -> i32); windows_targets::link!("ndis.sys" "system" fn NdisMReadDmaCounter(miniportdmahandle : *const core::ffi::c_void) -> u32); #[cfg(feature = "Wdk_System_SystemServices")] -windows_targets::link!("ndis.sys" "system" fn NdisMRegisterDmaChannel(miniportdmahandle : *mut *mut core::ffi::c_void, miniportadapterhandle : *const core::ffi::c_void, dmachannel : u32, dma32bitaddresses : super::super::super::Win32::Foundation:: BOOLEAN, dmadescription : *const NDIS_DMA_DESCRIPTION, maximumlength : u32) -> i32); +windows_targets::link!("ndis.sys" "system" fn NdisMRegisterDmaChannel(miniportdmahandle : *mut *mut core::ffi::c_void, miniportadapterhandle : *const core::ffi::c_void, dmachannel : u32, dma32bitaddresses : bool, dmadescription : *const NDIS_DMA_DESCRIPTION, maximumlength : u32) -> i32); windows_targets::link!("ndis.sys" "system" fn NdisMRegisterIoPortRange(portoffset : *mut *mut core::ffi::c_void, miniportadapterhandle : *const core::ffi::c_void, initialport : u32, numberofports : u32) -> i32); windows_targets::link!("ndis.sys" "system" fn NdisMRemoveMiniport(miniporthandle : *const core::ffi::c_void) -> i32); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] @@ -113,12 +113,12 @@ windows_targets::link!("ndis.sys" "system" fn NdisSetTimer(timer : *const NDIS_T #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] windows_targets::link!("ndis.sys" "system" fn NdisSetTimerEx(ndistimer : *const NDIS_TIMER, millisecondstodelay : u32, functioncontext : *const core::ffi::c_void)); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ndis.sys" "system" fn NdisSetupDmaTransfer(status : *mut i32, ndisdmahandle : *mut core::ffi::c_void, buffer : *mut super::super::Foundation:: MDL, offset : u32, length : u32, writetodevice : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ndis.sys" "system" fn NdisSetupDmaTransfer(status : *mut i32, ndisdmahandle : *mut core::ffi::c_void, buffer : *mut super::super::Foundation:: MDL, offset : u32, length : u32, writetodevice : bool)); windows_targets::link!("ndis.sys" "system" fn NdisSystemProcessorCount() -> i8); windows_targets::link!("ndis.sys" "system" fn NdisUnmapFile(filehandle : *const core::ffi::c_void)); windows_targets::link!("ndis.sys" "system" fn NdisUpdateSharedMemory(ndisadapterhandle : *mut core::ffi::c_void, length : u32, virtualaddress : *mut core::ffi::c_void, physicaladdress : i64)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ndis.sys" "system" fn NdisWaitEvent(event : *const NDIS_EVENT, mstowait : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ndis.sys" "system" fn NdisWaitEvent(event : *const NDIS_EVENT, mstowait : u32) -> bool); windows_targets::link!("ndis.sys" "system" fn NdisWriteConfiguration(status : *mut i32, configurationhandle : *const core::ffi::c_void, keyword : *const super::super::super::Win32::Foundation:: UNICODE_STRING, parametervalue : *const NDIS_CONFIGURATION_PARAMETER)); windows_targets::link!("ndis.sys" "cdecl" fn NdisWriteErrorLogEntry(ndisadapterhandle : *const core::ffi::c_void, errorcode : u32, numberoferrorvalues : u32, ...)); windows_targets::link!("ndis.sys" "system" fn NdisWriteEventLogEntry(loghandle : *const core::ffi::c_void, eventcode : i32, uniqueeventvalue : u32, numstrings : u16, stringslist : *const core::ffi::c_void, datasize : u32, data : *const core::ffi::c_void) -> i32); @@ -664,15 +664,15 @@ pub struct NDIS_DMA_BLOCK { pub AllocationEvent: super::super::Foundation::KEVENT, pub SystemAdapterObject: *mut core::ffi::c_void, pub Miniport: *mut core::ffi::c_void, - pub InProgress: super::super::super::Win32::Foundation::BOOLEAN, + pub InProgress: bool, } #[repr(C)] #[cfg(feature = "Wdk_System_SystemServices")] #[derive(Clone, Copy)] pub struct NDIS_DMA_DESCRIPTION { - pub DemandMode: super::super::super::Win32::Foundation::BOOLEAN, - pub AutoInitialize: super::super::super::Win32::Foundation::BOOLEAN, - pub DmaChannelSpecified: super::super::super::Win32::Foundation::BOOLEAN, + pub DemandMode: bool, + pub AutoInitialize: bool, + pub DmaChannelSpecified: bool, pub DmaWidth: super::super::System::SystemServices::DMA_WIDTH, pub DmaSpeed: super::super::System::SystemServices::DMA_SPEED, pub DmaPort: u32, @@ -1917,7 +1917,7 @@ pub union NDIS_RW_LOCK_1 { pub struct NDIS_RW_LOCK_1_0 { pub RefCountLock: usize, pub SharedRefCount: u32, - pub WriterWaiting: super::super::super::Win32::Foundation::BOOLEAN, + pub WriterWaiting: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2253,7 +2253,7 @@ pub type NDIS_TIMER_FUNCTION = Option super::super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("fltmgr.sys" "system" fn FltAdjustDeviceStackSizeForIoRedirection(sourceinstance : PFLT_INSTANCE, targetinstance : PFLT_INSTANCE, sourcedevicestacksizemodified : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("fltmgr.sys" "system" fn FltAdjustDeviceStackSizeForIoRedirection(sourceinstance : PFLT_INSTANCE, targetinstance : PFLT_INSTANCE, sourcedevicestacksizemodified : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltAllocateCallbackData(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, retnewcallbackdata : *mut *mut FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -35,7 +35,7 @@ windows_targets::link!("fltmgr.sys" "system" fn FltBuildDefaultSecurityDescripto #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltCancelFileOpen(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltCancelIo(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltCancelIo(callbackdata : *const FLT_CALLBACK_DATA) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltCancellableWaitForMultipleObjects(count : u32, objectarray : *const *const core::ffi::c_void, waittype : super::super::super::super::Win32::System::Kernel:: WAIT_TYPE, timeout : *const i64, waitblockarray : *const super::super::super::Foundation:: KWAIT_BLOCK, callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -54,9 +54,9 @@ windows_targets::link!("fltmgr.sys" "system" fn FltCbdqRemoveIo(cbdq : *mut FLT_ windows_targets::link!("fltmgr.sys" "system" fn FltCbdqRemoveNextIo(cbdq : *mut FLT_CALLBACK_DATA_QUEUE, peekcontext : *const core::ffi::c_void) -> *mut FLT_CALLBACK_DATA); windows_targets::link!("fltmgr.sys" "system" fn FltCheckAndGrowNameControl(namectrl : *mut FLT_NAME_CONTROL, newsize : u16) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltCheckLockForReadAccess(filelock : *const super:: FILE_LOCK, callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltCheckLockForReadAccess(filelock : *const super:: FILE_LOCK, callbackdata : *const FLT_CALLBACK_DATA) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltCheckLockForWriteAccess(filelock : *const super:: FILE_LOCK, callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltCheckLockForWriteAccess(filelock : *const super:: FILE_LOCK, callbackdata : *const FLT_CALLBACK_DATA) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltCheckOplock(oplock : *const *const core::ffi::c_void, callbackdata : *const FLT_CALLBACK_DATA, context : *const core::ffi::c_void, waitcompletionroutine : PFLTOPLOCK_WAIT_COMPLETE_ROUTINE, prepostcallbackdataroutine : PFLTOPLOCK_PREPOST_CALLBACKDATA_ROUTINE) -> FLT_PREOP_CALLBACK_STATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -95,9 +95,9 @@ windows_targets::link!("fltmgr.sys" "system" fn FltCreateNamedPipeFile(filter : #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltCreateSectionForDataScan(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, sectioncontext : PFLT_CONTEXT, desiredaccess : u32, objectattributes : *const super::super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, flags : u32, sectionhandle : *mut super::super::super::super::Win32::Foundation:: HANDLE, sectionobject : *mut *mut core::ffi::c_void, sectionfilesize : *mut i64) -> super::super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("fltmgr.sys" "system" fn FltCreateSystemVolumeInformationFolder(instance : PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("fltmgr.sys" "system" fn FltCurrentBatchOplock(oplock : *const *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("fltmgr.sys" "system" fn FltCurrentOplock(oplock : *const *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("fltmgr.sys" "system" fn FltCurrentOplockH(oplock : *const *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltCurrentBatchOplock(oplock : *const *const core::ffi::c_void) -> bool); +windows_targets::link!("fltmgr.sys" "system" fn FltCurrentOplock(oplock : *const *const core::ffi::c_void) -> bool); +windows_targets::link!("fltmgr.sys" "system" fn FltCurrentOplockH(oplock : *const *const core::ffi::c_void) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltDecodeParameters(callbackdata : *const FLT_CALLBACK_DATA, mdladdresspointer : *mut *mut *mut super::super::super::Foundation:: MDL, buffer : *mut *mut *mut core::ffi::c_void, length : *mut *mut u32, desiredaccess : *mut super::super::super::System::SystemServices:: LOCK_OPERATION) -> super::super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("fltmgr.sys" "system" fn FltDeleteContext(context : PFLT_CONTEXT)); @@ -117,7 +117,7 @@ windows_targets::link!("fltmgr.sys" "system" fn FltDetachVolume(filter : PFLT_FI #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltDeviceIoControlFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, iocontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltDoCompletionProcessingWhenSafe(data : *const FLT_CALLBACK_DATA, fltobjects : *const FLT_RELATED_OBJECTS, completioncontext : *const core::ffi::c_void, flags : u32, safepostcallback : PFLT_POST_OPERATION_CALLBACK, retpostoperationstatus : *mut FLT_POSTOP_CALLBACK_STATUS) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltDoCompletionProcessingWhenSafe(data : *const FLT_CALLBACK_DATA, fltobjects : *const FLT_RELATED_OBJECTS, completioncontext : *const core::ffi::c_void, flags : u32, safepostcallback : PFLT_POST_OPERATION_CALLBACK, retpostoperationstatus : *mut FLT_POSTOP_CALLBACK_STATUS) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("fltmgr.sys" "system" fn FltEnlistInTransaction(instance : PFLT_INSTANCE, transaction : *const super::super::super::Foundation:: KTRANSACTION, transactioncontext : PFLT_CONTEXT, notificationmask : u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Storage_InstallableFileSystems")] @@ -136,13 +136,13 @@ windows_targets::link!("fltmgr.sys" "system" fn FltEnumerateInstances(volume : P windows_targets::link!("fltmgr.sys" "system" fn FltEnumerateVolumeInformation(filter : PFLT_FILTER, index : u32, informationclass : super::super::super::super::Win32::Storage::InstallableFileSystems:: FILTER_VOLUME_INFORMATION_CLASS, buffer : *mut core::ffi::c_void, buffersize : u32, bytesreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("fltmgr.sys" "system" fn FltEnumerateVolumes(filter : PFLT_FILTER, volumelist : *mut PFLT_VOLUME, volumelistsize : u32, numbervolumesreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlRead(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::super::Foundation:: MDL, iostatus : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlRead(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::super::Foundation:: MDL, iostatus : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlReadComplete(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::super::Foundation:: MDL) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlReadComplete(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::super::Foundation:: MDL) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlWriteComplete(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::super::Foundation:: MDL) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlWriteComplete(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::super::Foundation:: MDL) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltFastIoPrepareMdlWrite(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::super::Foundation:: MDL, iostatus : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltFastIoPrepareMdlWrite(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::super::Foundation:: MDL, iostatus : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("fltmgr.sys" "system" fn FltFindExtraCreateParameter(filter : PFLT_FILTER, ecplist : *const super::super::super::Foundation:: ECP_LIST, ecptype : *const windows_sys::core::GUID, ecpcontext : *mut *mut core::ffi::c_void, ecpcontextsize : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -257,29 +257,29 @@ windows_targets::link!("fltmgr.sys" "system" fn FltInitializePushLock(pushlock : #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("fltmgr.sys" "system" fn FltInsertExtraCreateParameter(filter : PFLT_FILTER, ecplist : *mut super::super::super::Foundation:: ECP_LIST, ecpcontext : *mut core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltIs32bitProcess(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltIs32bitProcess(callbackdata : *const FLT_CALLBACK_DATA) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltIsCallbackDataDirty(data : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltIsCallbackDataDirty(data : *const FLT_CALLBACK_DATA) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltIsDirectory(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, instance : PFLT_INSTANCE, isdirectory : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("fltmgr.sys" "system" fn FltIsEcpAcknowledged(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("fltmgr.sys" "system" fn FltIsEcpFromUserMode(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltIsDirectory(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, instance : PFLT_INSTANCE, isdirectory : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("fltmgr.sys" "system" fn FltIsEcpAcknowledged(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void) -> bool); +windows_targets::link!("fltmgr.sys" "system" fn FltIsEcpFromUserMode(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltIsFltMgrVolumeDeviceObject(deviceobject : *const super::super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltIsFltMgrVolumeDeviceObject(deviceobject : *const super::super::super::Foundation:: DEVICE_OBJECT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltIsIoCanceled(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("fltmgr.sys" "system" fn FltIsIoRedirectionAllowed(sourceinstance : PFLT_INSTANCE, targetinstance : PFLT_INSTANCE, redirectionallowed : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("fltmgr.sys" "system" fn FltIsIoCanceled(callbackdata : *const FLT_CALLBACK_DATA) -> bool); +windows_targets::link!("fltmgr.sys" "system" fn FltIsIoRedirectionAllowed(sourceinstance : PFLT_INSTANCE, targetinstance : PFLT_INSTANCE, redirectionallowed : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltIsIoRedirectionAllowedForOperation(data : *const FLT_CALLBACK_DATA, targetinstance : PFLT_INSTANCE, redirectionallowedthisio : *mut super::super::super::super::Win32::Foundation:: BOOLEAN, redirectionallowedallio : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("fltmgr.sys" "system" fn FltIsIoRedirectionAllowedForOperation(data : *const FLT_CALLBACK_DATA, targetinstance : PFLT_INSTANCE, redirectionallowedthisio : *mut bool, redirectionallowedallio : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltIsOperationSynchronous(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("fltmgr.sys" "system" fn FltIsVolumeSnapshot(fltobject : *const core::ffi::c_void, issnapshotvolume : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("fltmgr.sys" "system" fn FltIsVolumeWritable(fltobject : *const core::ffi::c_void, iswritable : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("fltmgr.sys" "system" fn FltIsOperationSynchronous(callbackdata : *const FLT_CALLBACK_DATA) -> bool); +windows_targets::link!("fltmgr.sys" "system" fn FltIsVolumeSnapshot(fltobject : *const core::ffi::c_void, issnapshotvolume : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("fltmgr.sys" "system" fn FltIsVolumeWritable(fltobject : *const core::ffi::c_void, iswritable : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("fltmgr.sys" "system" fn FltLoadFilter(filtername : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltLockUserBuffer(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltNotifyFilterChangeDirectory(notifysync : super::super::super::Foundation:: PNOTIFY_SYNC, notifylist : *mut super::super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *const super::super::super::super::Win32::System::Kernel:: STRING, watchtree : super::super::super::super::Win32::Foundation:: BOOLEAN, ignorebuffer : super::super::super::super::Win32::Foundation:: BOOLEAN, completionfilter : u32, notifycallbackdata : *const FLT_CALLBACK_DATA, traversecallback : super:: PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, filtercallback : super:: PFILTER_REPORT_CHANGE)); +windows_targets::link!("fltmgr.sys" "system" fn FltNotifyFilterChangeDirectory(notifysync : super::super::super::Foundation:: PNOTIFY_SYNC, notifylist : *mut super::super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *const super::super::super::super::Win32::System::Kernel:: STRING, watchtree : bool, ignorebuffer : bool, completionfilter : u32, notifycallbackdata : *const FLT_CALLBACK_DATA, traversecallback : super:: PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, filtercallback : super:: PFILTER_REPORT_CHANGE)); windows_targets::link!("fltmgr.sys" "system" fn FltObjectDereference(fltobject : *mut core::ffi::c_void)); windows_targets::link!("fltmgr.sys" "system" fn FltObjectReference(fltobject : *mut core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -294,11 +294,11 @@ windows_targets::link!("fltmgr.sys" "system" fn FltOplockBreakToNoneEx(oplock : windows_targets::link!("fltmgr.sys" "system" fn FltOplockFsctrl(oplock : *const *const core::ffi::c_void, callbackdata : *const FLT_CALLBACK_DATA, opencount : u32) -> FLT_PREOP_CALLBACK_STATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltOplockFsctrlEx(oplock : *const *const core::ffi::c_void, callbackdata : *const FLT_CALLBACK_DATA, opencount : u32, flags : u32) -> FLT_PREOP_CALLBACK_STATUS); -windows_targets::link!("fltmgr.sys" "system" fn FltOplockIsFastIoPossible(oplock : *const *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltOplockIsFastIoPossible(oplock : *const *const core::ffi::c_void) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltOplockIsSharedRequest(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltOplockIsSharedRequest(callbackdata : *const FLT_CALLBACK_DATA) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltOplockKeysEqual(fo1 : *const super::super::super::Foundation:: FILE_OBJECT, fo2 : *const super::super::super::Foundation:: FILE_OBJECT) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltOplockKeysEqual(fo1 : *const super::super::super::Foundation:: FILE_OBJECT, fo2 : *const super::super::super::Foundation:: FILE_OBJECT) -> bool); windows_targets::link!("fltmgr.sys" "system" fn FltParseFileName(filename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, extension : *mut super::super::super::super::Win32::Foundation:: UNICODE_STRING, stream : *mut super::super::super::super::Win32::Foundation:: UNICODE_STRING, finalcomponent : *mut super::super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("fltmgr.sys" "system" fn FltParseFileNameInformation(filenameinformation : *mut FLT_FILE_NAME_INFORMATION) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -319,17 +319,17 @@ windows_targets::link!("fltmgr.sys" "system" fn FltPropagateIrpExtension(sourced #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltPurgeFileNameInformationCache(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltQueryDirectoryFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super:: FILE_INFORMATION_CLASS, returnsingleentry : super::super::super::super::Win32::Foundation:: BOOLEAN, filename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : super::super::super::super::Win32::Foundation:: BOOLEAN, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("fltmgr.sys" "system" fn FltQueryDirectoryFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super:: FILE_INFORMATION_CLASS, returnsingleentry : bool, filename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : bool, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltQueryDirectoryFileEx(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super:: FILE_INFORMATION_CLASS, queryflags : u32, filename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltQueryEaFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, returnedeadata : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::super::Win32::Foundation:: BOOLEAN, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : super::super::super::super::Win32::Foundation:: BOOLEAN, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("fltmgr.sys" "system" fn FltQueryEaFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, returnedeadata : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO"))] windows_targets::link!("fltmgr.sys" "system" fn FltQueryInformationByName(filter : PFLT_FILTER, instance : PFLT_INSTANCE, objectattributes : *const super::super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super:: FILE_INFORMATION_CLASS, drivercontext : *const super::super::super::System::SystemServices:: IO_DRIVER_CREATE_CONTEXT) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltQueryInformationFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super:: FILE_INFORMATION_CLASS, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltQueryQuotaInformationFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, iostatusblock : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::super::Win32::Foundation:: BOOLEAN, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : *const u32, restartscan : super::super::super::super::Win32::Foundation:: BOOLEAN, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("fltmgr.sys" "system" fn FltQueryQuotaInformationFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, iostatusblock : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : *const u32, restartscan : bool, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltQuerySecurityObject(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, securityinformation : u32, securitydescriptor : super::super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, length : u32, lengthneeded : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] @@ -422,13 +422,13 @@ windows_targets::link!("fltmgr.sys" "system" fn FltSetVolumeContext(volume : PFL windows_targets::link!("fltmgr.sys" "system" fn FltSetVolumeInformation(instance : PFLT_INSTANCE, iosb : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fsinformation : *mut core::ffi::c_void, length : u32, fsinformationclass : super:: FS_INFORMATION_CLASS) -> super::super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("fltmgr.sys" "system" fn FltStartFiltering(filter : PFLT_FILTER) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltSupportsFileContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltSupportsFileContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltSupportsFileContextsEx(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, instance : PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltSupportsFileContextsEx(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, instance : PFLT_INSTANCE) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltSupportsStreamContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltSupportsStreamContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("fltmgr.sys" "system" fn FltSupportsStreamHandleContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("fltmgr.sys" "system" fn FltSupportsStreamHandleContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("fltmgr.sys" "system" fn FltTagFile(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, filetag : u32, guid : *const windows_sys::core::GUID, databuffer : *const core::ffi::c_void, databufferlength : u16) -> super::super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -808,7 +808,7 @@ pub struct FLT_PARAMETERS_25 { pub FileOffset: i64, pub Length: u32, pub LockKey: u32, - pub CheckForReadOperation: super::super::super::super::Win32::Foundation::BOOLEAN, + pub CheckForReadOperation: bool, } #[repr(C)] #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -874,8 +874,8 @@ pub struct FLT_PARAMETERS_14 { pub Key: u32, pub ByteOffset: i64, pub ProcessId: super::super::super::Foundation::PEPROCESS, - pub FailImmediately: super::super::super::super::Win32::Foundation::BOOLEAN, - pub ExclusiveLock: super::super::super::super::Win32::Foundation::BOOLEAN, + pub FailImmediately: bool, + pub ExclusiveLock: bool, } #[repr(C)] #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -992,7 +992,7 @@ pub struct FLT_PARAMETERS_20_5 { #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy)] pub struct FLT_PARAMETERS_20_6 { - pub Lock: super::super::super::super::Win32::Foundation::BOOLEAN, + pub Lock: bool, } #[repr(C)] #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -1005,8 +1005,8 @@ pub struct FLT_PARAMETERS_20_0 { #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy)] pub struct FLT_PARAMETERS_20_9 { - pub InPath: super::super::super::super::Win32::Foundation::BOOLEAN, - pub Reserved: [super::super::super::super::Win32::Foundation::BOOLEAN; 3], + pub InPath: bool, + pub Reserved: [bool; 3], pub Type: super::super::super::System::SystemServices::DEVICE_USAGE_NOTIFICATION_TYPE, } #[repr(C, packed(4))] @@ -1120,8 +1120,8 @@ pub union FLT_PARAMETERS_6_0 { #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy)] pub struct FLT_PARAMETERS_6_0_0 { - pub ReplaceIfExists: super::super::super::super::Win32::Foundation::BOOLEAN, - pub AdvanceOnly: super::super::super::super::Win32::Foundation::BOOLEAN, + pub ReplaceIfExists: bool, + pub AdvanceOnly: bool, } #[repr(C)] #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -1362,7 +1362,7 @@ pub type PFLT_DISCONNECT_NOTIFY = Option super::super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PFLT_GENERATE_FILE_NAME = Option super::super::super::super::Win32::Foundation::NTSTATUS>; +pub type PFLT_GENERATE_FILE_NAME = Option super::super::super::super::Win32::Foundation::NTSTATUS>; pub type PFLT_GENERIC_WORKITEM = isize; pub type PFLT_GENERIC_WORKITEM_ROUTINE = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] diff --git a/crates/libs/sys/src/Windows/Wdk/Storage/FileSystem/mod.rs b/crates/libs/sys/src/Windows/Wdk/Storage/FileSystem/mod.rs index 6da1696b32..82d97c465d 100644 --- a/crates/libs/sys/src/Windows/Wdk/Storage/FileSystem/mod.rs +++ b/crates/libs/sys/src/Windows/Wdk/Storage/FileSystem/mod.rs @@ -2,23 +2,23 @@ pub mod Minifilters; windows_targets::link!("secur32.dll" "system" fn ApplyControlToken(phcontext : *const SecHandle, pinput : *const SecBufferDesc) -> windows_sys::core::HRESULT); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcAsyncCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, ioissuerthread : super::super::Foundation:: PETHREAD, asyncreadcontext : *const CC_ASYNC_READ_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcAsyncCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, ioissuerthread : super::super::Foundation:: PETHREAD, asyncreadcontext : *const CC_ASYNC_READ_CONTEXT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcCanIWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, bytestowrite : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, retrying : u8) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcCanIWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, bytestowrite : u32, wait : bool, retrying : u8) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_IO"))] windows_targets::link!("ntoskrnl.exe" "system" fn CcCoherencyFlushAndPurgeCache(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, fileoffset : *const i64, length : u32, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, flags : u32)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyReadEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, ioissuerthread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyReadEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, ioissuerthread : super::super::Foundation:: PETHREAD) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *const core::ffi::c_void) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWriteEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *const core::ffi::c_void, ioissuerthread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWriteEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *const core::ffi::c_void, ioissuerthread : super::super::Foundation:: PETHREAD) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWriteWontFlush(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWriteWontFlush(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcDeferWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, postroutine : PCC_POST_DEFERRED_WRITE, context1 : *const core::ffi::c_void, context2 : *const core::ffi::c_void, bytestowrite : u32, retrying : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn CcDeferWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, postroutine : PCC_POST_DEFERRED_WRITE, context1 : *const core::ffi::c_void, context2 : *const core::ffi::c_void, bytestowrite : u32, retrying : bool)); windows_targets::link!("ntoskrnl.exe" "system" fn CcErrorCallbackRoutine(context : *const CC_ERROR_CALLBACK_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn CcFastCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : u32, length : u32, pagecount : u32, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK)); @@ -35,18 +35,18 @@ windows_targets::link!("ntoskrnl.exe" "system" fn CcGetFileObjectFromSectionPtrs #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn CcGetFileObjectFromSectionPtrsRef(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS) -> *mut super::super::Foundation:: FILE_OBJECT); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn CcGetFlushedValidData(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, bcblistheld : super::super::super::Win32::Foundation:: BOOLEAN) -> i64); +windows_targets::link!("ntoskrnl.exe" "system" fn CcGetFlushedValidData(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, bcblistheld : bool) -> i64); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMap(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : super::super::super::Win32::Foundation:: BOOLEAN, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void)); +windows_targets::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMap(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : bool, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMapEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : super::super::super::Win32::Foundation:: BOOLEAN, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void, flags : u32)); -windows_targets::link!("ntoskrnl.exe" "system" fn CcIsCacheManagerCallbackNeeded(status : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMapEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : bool, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void, flags : u32)); +windows_targets::link!("ntoskrnl.exe" "system" fn CcIsCacheManagerCallbackNeeded(status : super::super::super::Win32::Foundation:: NTSTATUS) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcIsThereDirtyData(vpb : *const super::super::Foundation:: VPB) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcIsThereDirtyData(vpb : *const super::super::Foundation:: VPB) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcIsThereDirtyDataEx(vpb : *const super::super::Foundation:: VPB, numberofdirtypages : *const u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcIsThereDirtyDataEx(vpb : *const super::super::Foundation:: VPB, numberofdirtypages : *const u32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcMapData(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcMapData(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn CcMdlRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -56,15 +56,15 @@ windows_targets::link!("ntoskrnl.exe" "system" fn CcMdlWriteAbort(fileobject : * #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn CcMdlWriteComplete(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::Foundation:: MDL)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcPinMappedData(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcPinMappedData(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcPinRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcPinRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn CcPrepareMdlWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcPreparePinWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, zero : super::super::super::Win32::Foundation:: BOOLEAN, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcPreparePinWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, zero : bool, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> bool); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn CcPurgeCacheSection(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, fileoffset : *const i64, length : u32, flags : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcPurgeCacheSection(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, fileoffset : *const i64, length : u32, flags : u32) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn CcRemapBcb(bcb : *const core::ffi::c_void) -> *mut core::ffi::c_void); windows_targets::link!("ntoskrnl.exe" "system" fn CcRepinBcb(bcb : *const core::ffi::c_void)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -72,7 +72,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn CcScheduleReadAhead(fileobject #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn CcScheduleReadAheadEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, ioissuerthread : super::super::Foundation:: PETHREAD)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcSetAdditionalCacheAttributes(fileobject : *const super::super::Foundation:: FILE_OBJECT, disablereadahead : super::super::super::Win32::Foundation:: BOOLEAN, disablewritebehind : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn CcSetAdditionalCacheAttributes(fileobject : *const super::super::Foundation:: FILE_OBJECT, disablereadahead : bool, disablewritebehind : bool)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn CcSetAdditionalCacheAttributesEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, flags : u32)); windows_targets::link!("ntoskrnl.exe" "system" fn CcSetBcbOwnerPointer(bcb : *const core::ffi::c_void, ownerpointer : *const core::ffi::c_void)); @@ -86,34 +86,34 @@ windows_targets::link!("ntoskrnl.exe" "system" fn CcSetFileSizesEx(fileobject : #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn CcSetLogHandleForFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, loghandle : *const core::ffi::c_void, flushtolsnroutine : PFLUSH_TO_LSN)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcSetParallelFlushFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, enableparallelflush : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn CcSetParallelFlushFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, enableparallelflush : bool)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn CcSetReadAheadGranularity(fileobject : *const super::super::Foundation:: FILE_OBJECT, granularity : u32)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcUninitializeCacheMap(fileobject : *const super::super::Foundation:: FILE_OBJECT, truncatesize : *const i64, uninitializeevent : *const CACHE_UNINITIALIZE_EVENT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcUninitializeCacheMap(fileobject : *const super::super::Foundation:: FILE_OBJECT, truncatesize : *const i64, uninitializeevent : *const CACHE_UNINITIALIZE_EVENT) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn CcUnpinData(bcb : *const core::ffi::c_void)); windows_targets::link!("ntoskrnl.exe" "system" fn CcUnpinDataForThread(bcb : *const core::ffi::c_void, resourcethreadid : usize)); #[cfg(feature = "Win32_System_IO")] -windows_targets::link!("ntoskrnl.exe" "system" fn CcUnpinRepinnedBcb(bcb : *const core::ffi::c_void, writethrough : super::super::super::Win32::Foundation:: BOOLEAN, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK)); +windows_targets::link!("ntoskrnl.exe" "system" fn CcUnpinRepinnedBcb(bcb : *const core::ffi::c_void, writethrough : bool, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK)); windows_targets::link!("ntoskrnl.exe" "system" fn CcWaitForCurrentLazyWriterActivity() -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn CcZeroData(fileobject : *const super::super::Foundation:: FILE_OBJECT, startoffset : *const i64, endoffset : *const i64, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn CcZeroData(fileobject : *const super::super::Foundation:: FILE_OBJECT, startoffset : *const i64, endoffset : *const i64, wait : bool) -> bool); windows_targets::link!("secur32.dll" "system" fn CompleteAuthToken(phcontext : *const SecHandle, ptoken : *const SecBufferDesc) -> windows_sys::core::HRESULT); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn ExDisableResourceBoostLite(resource : *const super::super::Foundation:: ERESOURCE)); -windows_targets::link!("ntoskrnl.exe" "system" fn ExQueryPoolBlockSize(poolblock : *const core::ffi::c_void, quotacharged : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> usize); +windows_targets::link!("ntoskrnl.exe" "system" fn ExQueryPoolBlockSize(poolblock : *const core::ffi::c_void, quotacharged : *mut bool) -> usize); windows_targets::link!("secur32.dll" "system" fn ExportSecurityContext(phcontext : *const SecHandle, fflags : u32, ppackedcontext : *mut SecBuffer, ptoken : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT); windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAcknowledgeEcp(ecpcontext : *const core::ffi::c_void)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAcquireFileExclusive(fileobject : *const super::super::Foundation:: FILE_OBJECT)); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddBaseMcbEntry(mcb : *mut BASE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddBaseMcbEntry(mcb : *mut BASE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddBaseMcbEntryEx(mcb : *mut BASE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddLargeMcbEntry(mcb : *mut LARGE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddLargeMcbEntry(mcb : *mut LARGE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddMcbEntry(mcb : *mut MCB, vbn : u32, lbn : u32, sectorcount : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddMcbEntry(mcb : *mut MCB, vbn : u32, lbn : u32, sectorcount : u32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddToTunnelCache(cache : *mut TUNNEL, directorykey : u64, shortname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, keybyshortname : super::super::super::Win32::Foundation:: BOOLEAN, datalength : u32, data : *const core::ffi::c_void)); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddToTunnelCache(cache : *mut TUNNEL, directorykey : u64, shortname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, keybyshortname : bool, datalength : u32, data : *const core::ffi::c_void)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddToTunnelCacheEx(cache : *mut TUNNEL, directorykey : u64, shortname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, flags : u32, datalength : u32, data : *const core::ffi::c_void)); #[cfg(feature = "Wdk_Foundation")] @@ -126,12 +126,12 @@ windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAllocateExtraCreateParame windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAllocateFileLock(completelockirproutine : PCOMPLETE_LOCK_IRP_ROUTINE, unlockroutine : PUNLOCK_ROUTINE) -> *mut FILE_LOCK); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAllocateResource() -> *mut super::super::Foundation:: ERESOURCE); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreNamesEqual(constantnamea : *const super::super::super::Win32::Foundation:: UNICODE_STRING, constantnameb : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : super::super::super::Win32::Foundation:: BOOLEAN, upcasetable : *const u16) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreNamesEqual(constantnamea : *const super::super::super::Win32::Foundation:: UNICODE_STRING, constantnameb : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : bool, upcasetable : *const u16) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreThereCurrentOrInProgressFileLocks(filelock : *const FILE_LOCK) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreThereCurrentOrInProgressFileLocks(filelock : *const FILE_LOCK) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreThereWaitingFileLocks(filelock : *const FILE_LOCK) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreVolumeStartupApplicationsComplete() -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreThereWaitingFileLocks(filelock : *const FILE_LOCK) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreVolumeStartupApplicationsComplete() -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlBalanceReads(targetdevice : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -141,11 +141,11 @@ windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCancellableWaitForSingleO #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlChangeBackingFileObject(currentfileobject : *const super::super::Foundation:: FILE_OBJECT, newfileobject : *const super::super::Foundation:: FILE_OBJECT, changebackingtype : FSRTL_CHANGE_BACKING_TYPE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForOplockRequest(filelock : *const FILE_LOCK, allocationsize : *const i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForOplockRequest(filelock : *const FILE_LOCK, allocationsize : *const i64) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForReadAccess(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForReadAccess(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForWriteAccess(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForWriteAccess(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckOplock(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, postirproutine : POPLOCK_FS_PREPOST_IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -155,14 +155,14 @@ windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckOplockEx2(oplock : * #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckUpperOplock(oplock : *const *const core::ffi::c_void, newloweroplockstate : u32, completionroutinecontext : *const core::ffi::c_void, completionroutine : POPLOCK_WAIT_COMPLETE_ROUTINE, prependroutine : POPLOCK_FS_PREPOST_IRP, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, lockkey : u32, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, lockkey : u32, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, lockkey : u32, buffer : *const core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, lockkey : u32, buffer : *const core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCreateSectionForDataScan(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, sectionobject : *mut *mut core::ffi::c_void, sectionfilesize : *mut i64, fileobject : *const super::super::Foundation:: FILE_OBJECT, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentBatchOplock(oplock : *const *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentOplock(oplock : *const *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentOplockH(oplock : *const *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentBatchOplock(oplock : *const *const core::ffi::c_void) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentOplock(oplock : *const *const core::ffi::c_void) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentOplockH(oplock : *const *const core::ffi::c_void) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDeleteExtraCreateParameterLookasideList(lookaside : *mut core::ffi::c_void, flags : u32)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDeleteKeyFromTunnelCache(cache : *mut TUNNEL, directorykey : u64)); @@ -175,24 +175,24 @@ windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDismountComplete(deviceob windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDissectDbcs(path : super::super::super::Win32::System::Kernel:: STRING, firstname : *mut super::super::super::Win32::System::Kernel:: STRING, remainingname : *mut super::super::super::Win32::System::Kernel:: STRING)); windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDissectName(path : super::super::super::Win32::Foundation:: UNICODE_STRING, firstname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, remainingname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING)); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDoesDbcsContainWildCards(name : *const super::super::super::Win32::System::Kernel:: STRING) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDoesNameContainWildCards(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDoesDbcsContainWildCards(name : *const super::super::super::Win32::System::Kernel:: STRING) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDoesNameContainWildCards(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastCheckLockForRead(filelock : *const FILE_LOCK, startingbyte : *const i64, length : *const i64, key : u32, fileobject : *const super::super::Foundation:: FILE_OBJECT, processid : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastCheckLockForRead(filelock : *const FILE_LOCK, startingbyte : *const i64, length : *const i64, key : u32, fileobject : *const super::super::Foundation:: FILE_OBJECT, processid : *const core::ffi::c_void) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastCheckLockForWrite(filelock : *const FILE_LOCK, startingbyte : *const i64, length : *const i64, key : u32, fileobject : *const core::ffi::c_void, processid : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastCheckLockForWrite(filelock : *const FILE_LOCK, startingbyte : *const i64, length : *const i64, key : u32, fileobject : *const core::ffi::c_void, processid : *const core::ffi::c_void) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastUnlockAll(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, processid : super::super::Foundation:: PEPROCESS, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastUnlockAllByKey(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, processid : super::super::Foundation:: PEPROCESS, key : u32, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastUnlockSingle(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : *const i64, processid : super::super::Foundation:: PEPROCESS, key : u32, context : *const core::ffi::c_void, alreadysynchronized : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastUnlockSingle(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : *const i64, processid : super::super::Foundation:: PEPROCESS, key : u32, context : *const core::ffi::c_void, alreadysynchronized : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFindExtraCreateParameter(ecplist : *const super::super::Foundation:: ECP_LIST, ecptype : *const windows_sys::core::GUID, ecpcontext : *mut *mut core::ffi::c_void, ecpcontextsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFindInTunnelCache(cache : *const TUNNEL, directorykey : u64, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, shortname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, datalength : *mut u32, data : *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFindInTunnelCache(cache : *const TUNNEL, directorykey : u64, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, shortname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, datalength : *mut u32, data : *mut core::ffi::c_void) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFindInTunnelCacheEx(cache : *const TUNNEL, directorykey : u64, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, shortname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, flags : u32, datalength : *mut u32, data : *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFindInTunnelCacheEx(cache : *const TUNNEL, directorykey : u64, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, shortname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, flags : u32, datalength : *mut u32, data : *mut core::ffi::c_void) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFreeAePushLock(aepushlock : *mut core::ffi::c_void)); windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFreeExtraCreateParameter(ecpcontext : *const core::ffi::c_void)); #[cfg(feature = "Wdk_Foundation")] @@ -205,15 +205,15 @@ windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetCurrentProcessLoaderLi windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetEcpListFromIrp(irp : *const super::super::Foundation:: IRP, ecplist : *mut *mut super::super::Foundation:: ECP_LIST) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetFileSize(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesize : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextBaseMcbEntry(mcb : *const BASE_MCB, runindex : u32, vbn : *mut i64, lbn : *mut i64, sectorcount : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextBaseMcbEntry(mcb : *const BASE_MCB, runindex : u32, vbn : *mut i64, lbn : *mut i64, sectorcount : *mut i64) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextExtraCreateParameter(ecplist : *const super::super::Foundation:: ECP_LIST, currentecpcontext : *const core::ffi::c_void, nextecptype : *mut windows_sys::core::GUID, nextecpcontext : *mut *mut core::ffi::c_void, nextecpcontextsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextFileLock(filelock : *const FILE_LOCK, restart : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut FILE_LOCK_INFO); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextFileLock(filelock : *const FILE_LOCK, restart : bool) -> *mut FILE_LOCK_INFO); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextLargeMcbEntry(mcb : *const LARGE_MCB, runindex : u32, vbn : *mut i64, lbn : *mut i64, sectorcount : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextLargeMcbEntry(mcb : *const LARGE_MCB, runindex : u32, vbn : *mut i64, lbn : *mut i64, sectorcount : *mut i64) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextMcbEntry(mcb : *const MCB, runindex : u32, vbn : *mut u32, lbn : *mut u32, sectorcount : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextMcbEntry(mcb : *const MCB, runindex : u32, vbn : *mut u32, lbn : *mut u32, sectorcount : *mut u32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetSectorSizeInformation(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectorsizeinfo : *mut FILE_FS_SECTOR_SIZE_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -229,7 +229,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInitExtraCreateParameterL #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInitializeBaseMcb(mcb : *mut BASE_MCB, pooltype : super::super::Foundation:: POOL_TYPE)); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInitializeBaseMcbEx(mcb : *mut BASE_MCB, pooltype : super::super::Foundation:: POOL_TYPE, flags : u16) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInitializeBaseMcbEx(mcb : *mut BASE_MCB, pooltype : super::super::Foundation:: POOL_TYPE, flags : u16) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInitializeExtraCreateParameter(ecp : *mut super::super::Foundation:: ECP_HEADER, ecpflags : u32, cleanupcallback : PFSRTL_EXTRA_CREATE_PARAMETER_CLEANUP_CALLBACK, totalsize : u32, ecptype : *const windows_sys::core::GUID, listallocatedfrom : *const core::ffi::c_void)); #[cfg(feature = "Wdk_Foundation")] @@ -252,23 +252,23 @@ windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInsertPerFileObjectContex #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInsertPerStreamContext(perstreamcontext : *const FSRTL_ADVANCED_FCB_HEADER, ptr : *const FSRTL_PER_STREAM_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIs32BitProcess(process : super::super::Foundation:: PEPROCESS) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIs32BitProcess(process : super::super::Foundation:: PEPROCESS) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsDaxVolume(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsDaxVolume(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> bool); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsDbcsInExpression(expression : *const super::super::super::Win32::System::Kernel:: STRING, name : *const super::super::super::Win32::System::Kernel:: STRING) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsEcpAcknowledged(ecpcontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsEcpFromUserMode(ecpcontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsDbcsInExpression(expression : *const super::super::super::Win32::System::Kernel:: STRING, name : *const super::super::super::Win32::System::Kernel:: STRING) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsEcpAcknowledged(ecpcontext : *const core::ffi::c_void) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsEcpFromUserMode(ecpcontext : *const core::ffi::c_void) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsExtentDangling(startpage : u32, numberofpages : u32, flags : u32) -> u32); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsFatDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : super::super::super::Win32::Foundation:: BOOLEAN, pathnamepermissible : super::super::super::Win32::Foundation:: BOOLEAN, leadingbackslashpermissible : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsFatDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : bool, pathnamepermissible : bool, leadingbackslashpermissible : bool) -> bool); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsHpfsDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : super::super::super::Win32::Foundation:: BOOLEAN, pathnamepermissible : super::super::super::Win32::Foundation:: BOOLEAN, leadingbackslashpermissible : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsMobileOS() -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNameInExpression(expression : *const super::super::super::Win32::Foundation:: UNICODE_STRING, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : super::super::super::Win32::Foundation:: BOOLEAN, upcasetable : windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNameInUnUpcasedExpression(expression : *const super::super::super::Win32::Foundation:: UNICODE_STRING, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : super::super::super::Win32::Foundation:: BOOLEAN, upcasetable : windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNtstatusExpected(exception : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsHpfsDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : bool, pathnamepermissible : bool, leadingbackslashpermissible : bool) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsMobileOS() -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNameInExpression(expression : *const super::super::super::Win32::Foundation:: UNICODE_STRING, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : bool, upcasetable : windows_sys::core::PCWSTR) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNameInUnUpcasedExpression(expression : *const super::super::super::Win32::Foundation:: UNICODE_STRING, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : bool, upcasetable : windows_sys::core::PCWSTR) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag : u32) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNtstatusExpected(exception : super::super::super::Win32::Foundation:: NTSTATUS) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsPagingFile(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> u32); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -279,19 +279,19 @@ windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIssueDeviceIoControl(devi windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlKernelFsControlFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, fscontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32, retoutputbuffersize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLogCcFlushError(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, flusherror : super::super::super::Win32::Foundation:: NTSTATUS, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupBaseMcbEntry(mcb : *const BASE_MCB, vbn : i64, lbn : *mut i64, sectorcountfromlbn : *mut i64, startinglbn : *mut i64, sectorcountfromstartinglbn : *mut i64, index : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupBaseMcbEntry(mcb : *const BASE_MCB, vbn : i64, lbn : *mut i64, sectorcountfromlbn : *mut i64, startinglbn : *mut i64, sectorcountfromstartinglbn : *mut i64, index : *mut u32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLargeMcbEntry(mcb : *const LARGE_MCB, vbn : i64, lbn : *mut i64, sectorcountfromlbn : *mut i64, startinglbn : *mut i64, sectorcountfromstartinglbn : *mut i64, index : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastBaseMcbEntry(mcb : *const BASE_MCB, vbn : *mut i64, lbn : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastBaseMcbEntryAndIndex(opaquemcb : *const BASE_MCB, largevbn : *mut i64, largelbn : *mut i64, index : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLargeMcbEntry(mcb : *const LARGE_MCB, vbn : i64, lbn : *mut i64, sectorcountfromlbn : *mut i64, startinglbn : *mut i64, sectorcountfromstartinglbn : *mut i64, index : *mut u32) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastBaseMcbEntry(mcb : *const BASE_MCB, vbn : *mut i64, lbn : *mut i64) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastBaseMcbEntryAndIndex(opaquemcb : *const BASE_MCB, largevbn : *mut i64, largelbn : *mut i64, index : *mut u32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastLargeMcbEntry(mcb : *const LARGE_MCB, vbn : *mut i64, lbn : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastLargeMcbEntry(mcb : *const LARGE_MCB, vbn : *mut i64, lbn : *mut i64) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastLargeMcbEntryAndIndex(opaquemcb : *const LARGE_MCB, largevbn : *mut i64, largelbn : *mut i64, index : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastLargeMcbEntryAndIndex(opaquemcb : *const LARGE_MCB, largevbn : *mut i64, largelbn : *mut i64, index : *mut u32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastMcbEntry(mcb : *const MCB, vbn : *mut u32, lbn : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastMcbEntry(mcb : *const MCB, vbn : *mut u32, lbn : *mut u32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupMcbEntry(mcb : *const MCB, vbn : u32, lbn : *mut u32, sectorcount : *mut u32, index : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupMcbEntry(mcb : *const MCB, vbn : u32, lbn : *mut u32, sectorcount : *mut u32, index : *mut u32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupPerFileContext(perfilecontextpointer : *const *const core::ffi::c_void, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_FILE_CONTEXT); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -299,13 +299,13 @@ windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupPerFileObjectContex #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupPerStreamContextInternal(streamcontext : *const FSRTL_ADVANCED_FCB_HEADER, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_STREAM_CONTEXT); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadCompleteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::Foundation:: MDL, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadCompleteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::Foundation:: MDL, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlWriteCompleteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::Foundation:: MDL, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlWriteCompleteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::Foundation:: MDL, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMupGetProviderIdFromName(pprovidername : *const super::super::super::Win32::Foundation:: UNICODE_STRING, pproviderid : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMupGetProviderInfoFromFileObject(pfileobject : *const super::super::Foundation:: FILE_OBJECT, level : u32, pbuffer : *mut core::ffi::c_void, pbuffersize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -315,11 +315,11 @@ windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyCleanup(notifysync #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyCleanupAll(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFilterChangeDirectory(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *const super::super::super::Win32::System::Kernel:: STRING, watchtree : super::super::super::Win32::Foundation:: BOOLEAN, ignorebuffer : super::super::super::Win32::Foundation:: BOOLEAN, completionfilter : u32, notifyirp : *const super::super::Foundation:: IRP, traversecallback : PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, filtercallback : PFILTER_REPORT_CHANGE)); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFilterChangeDirectory(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *const super::super::super::Win32::System::Kernel:: STRING, watchtree : bool, ignorebuffer : bool, completionfilter : u32, notifyirp : *const super::super::Foundation:: IRP, traversecallback : PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, filtercallback : PFILTER_REPORT_CHANGE)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFilterReportChange(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fulltargetname : *const super::super::super::Win32::System::Kernel:: STRING, targetnameoffset : u16, streamname : *const super::super::super::Win32::System::Kernel:: STRING, normalizedparentname : *const super::super::super::Win32::System::Kernel:: STRING, filtermatch : u32, action : u32, targetcontext : *const core::ffi::c_void, filtercontext : *const core::ffi::c_void)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFullChangeDirectory(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *mut super::super::super::Win32::System::Kernel:: STRING, watchtree : super::super::super::Win32::Foundation:: BOOLEAN, ignorebuffer : super::super::super::Win32::Foundation:: BOOLEAN, completionfilter : u32, notifyirp : *const super::super::Foundation:: IRP, traversecallback : PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT)); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFullChangeDirectory(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *mut super::super::super::Win32::System::Kernel:: STRING, watchtree : bool, ignorebuffer : bool, completionfilter : u32, notifyirp : *const super::super::Foundation:: IRP, traversecallback : PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFullReportChange(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fulltargetname : *const super::super::super::Win32::System::Kernel:: STRING, targetnameoffset : u16, streamname : *const super::super::super::Win32::System::Kernel:: STRING, normalizedparentname : *const super::super::super::Win32::System::Kernel:: STRING, filtermatch : u32, action : u32, targetcontext : *const core::ffi::c_void)); #[cfg(feature = "Wdk_Foundation")] @@ -349,22 +349,22 @@ windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockFsctrl(oplock : *co windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockFsctrlEx(oplock : *const *const core::ffi::c_void, irp : *const super::super::Foundation:: IRP, opencount : u32, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockGetAnyBreakOwnerProcess(oplock : *const *const core::ffi::c_void) -> super::super::Foundation:: PEPROCESS); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockIsFastIoPossible(oplock : *const *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockIsFastIoPossible(oplock : *const *const core::ffi::c_void) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockIsSharedRequest(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockIsSharedRequest(irp : *const super::super::Foundation:: IRP) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockKeysEqual(fo1 : *const super::super::Foundation:: FILE_OBJECT, fo2 : *const super::super::Foundation:: FILE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockKeysEqual(fo1 : *const super::super::Foundation:: FILE_OBJECT, fo2 : *const super::super::Foundation:: FILE_OBJECT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPostPagingFileStackOverflow(context : *const core::ffi::c_void, event : *const super::super::Foundation:: KEVENT, stackoverflowroutine : PFSRTL_STACK_OVERFLOW_ROUTINE)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPostStackOverflow(context : *const core::ffi::c_void, event : *const super::super::Foundation:: KEVENT, stackoverflowroutine : PFSRTL_STACK_OVERFLOW_ROUTINE)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrepareMdlWriteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrepareMdlWriteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrepareMdlWriteEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrepareToReuseEcp(ecpcontext : *const core::ffi::c_void)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrivateLock(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : *const i64, processid : super::super::Foundation:: PEPROCESS, key : u32, failimmediately : super::super::super::Win32::Foundation:: BOOLEAN, exclusivelock : super::super::super::Win32::Foundation:: BOOLEAN, iosb : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void, alreadysynchronized : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrivateLock(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : *const i64, processid : super::super::Foundation:: PEPROCESS, key : u32, failimmediately : bool, exclusivelock : bool, iosb : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void, alreadysynchronized : bool) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlProcessFileLock(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -372,18 +372,18 @@ windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlQueryCachedVdl(fileobject #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlQueryInformationFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, retfileinformationsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlQueryKernelEaFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, returnedeadata : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : super::super::super::Win32::Foundation:: BOOLEAN, lengthreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlQueryKernelEaFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, returnedeadata : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool, lengthreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlQueryMaximumVirtualDiskNestingLevel() -> u32); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRegisterFileSystemFilterCallbacks(filterdriverobject : *const super::super::Foundation:: DRIVER_OBJECT, callbacks : *const FS_FILTER_CALLBACKS) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRegisterUncProvider(muphandle : *mut super::super::super::Win32::Foundation:: HANDLE, redirectordevicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, mailslotssupported : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRegisterUncProvider(muphandle : *mut super::super::super::Win32::Foundation:: HANDLE, redirectordevicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, mailslotssupported : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRegisterUncProviderEx(muphandle : *mut super::super::super::Win32::Foundation:: HANDLE, redirdevname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRegisterUncProviderEx2(redirdevname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, registration : *const FSRTL_UNC_PROVIDER_REGISTRATION, muphandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlReleaseFile(fileobject : *const super::super::Foundation:: FILE_OBJECT)); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemoveBaseMcbEntry(mcb : *mut BASE_MCB, vbn : i64, sectorcount : i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemoveBaseMcbEntry(mcb : *mut BASE_MCB, vbn : i64, sectorcount : i64) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemoveDotsFromPath(originalstring : windows_sys::core::PWSTR, pathlength : u16, newlength : *mut u16) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemoveExtraCreateParameter(ecplist : *mut super::super::Foundation:: ECP_LIST, ecptype : *const windows_sys::core::GUID, ecpcontext : *mut *mut core::ffi::c_void, ecpcontextsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -399,16 +399,16 @@ windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemovePerFileObjectContex windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemovePerStreamContext(streamcontext : *const FSRTL_ADVANCED_FCB_HEADER, ownerid : *const core::ffi::c_void, instanceid : *const core::ffi::c_void) -> *mut FSRTL_PER_STREAM_CONTEXT); windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlResetBaseMcb(mcb : *mut BASE_MCB)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlResetLargeMcb(mcb : *mut LARGE_MCB, selfsynchronized : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlResetLargeMcb(mcb : *mut LARGE_MCB, selfsynchronized : bool)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSetDriverBacking(driverobj : *const super::super::Foundation:: DRIVER_OBJECT, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSetEcpListIntoIrp(irp : *mut super::super::Foundation:: IRP, ecplist : *const super::super::Foundation:: ECP_LIST) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSetKernelEaFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, eabuffer : *const core::ffi::c_void, length : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSplitBaseMcb(mcb : *mut BASE_MCB, vbn : i64, amount : i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSplitBaseMcb(mcb : *mut BASE_MCB, vbn : i64, amount : i64) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSplitLargeMcb(mcb : *mut LARGE_MCB, vbn : i64, amount : i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSplitLargeMcb(mcb : *mut LARGE_MCB, vbn : i64, amount : i64) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlTeardownPerFileContexts(perfilecontextpointer : *const *const core::ffi::c_void)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlTeardownPerStreamContexts(advancedheader : *const FSRTL_ADVANCED_FCB_HEADER)); @@ -439,8 +439,8 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoApplyPriorityInfoThread(inpu windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckDesiredAccess(desiredaccess : *mut u32, grantedaccess : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckEaBufferValidity(eabuffer : *const FILE_FULL_EA_INFORMATION, ealength : u32, erroroffset : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckFunctionAccess(grantedaccess : u32, majorfunction : u8, minorfunction : u8, iocontrolcode : u32, arg1 : *const core::ffi::c_void, arg2 : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetFileInformation(fileinformationclass : FILE_INFORMATION_CLASS, length : u32, setoperation : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetVolumeInformation(fsinformationclass : FS_INFORMATION_CLASS, length : u32, setoperation : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetFileInformation(fileinformationclass : FILE_INFORMATION_CLASS, length : u32, setoperation : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetVolumeInformation(fsinformationclass : FS_INFORMATION_CLASS, length : u32, setoperation : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuotaBufferValidity(quotabuffer : *const FILE_QUOTA_INFORMATION, quotalength : u32, erroroffset : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -458,7 +458,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoEnumerateDeviceObjectList(dr #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoEnumerateRegisteredFiltersList(driverobjectlist : *mut *mut super::super::Foundation:: DRIVER_OBJECT, driverobjectlistsize : u32, actualnumberdriverobjects : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoFastQueryNetworkAttributes(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, desiredaccess : u32, openoptions : u32, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut FILE_NETWORK_OPEN_INFORMATION) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoFastQueryNetworkAttributes(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, desiredaccess : u32, openoptions : u32, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut FILE_NETWORK_OPEN_INFORMATION) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoGetAttachedDevice(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> *mut super::super::Foundation:: DEVICE_OBJECT); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -484,13 +484,13 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoGetRequestorProcessId(irp : #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoGetRequestorSessionId(irp : *const super::super::Foundation:: IRP, psessionid : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoIrpHasFsTrackOffsetExtensionType(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoIrpHasFsTrackOffsetExtensionType(irp : *const super::super::Foundation:: IRP) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoIsOperationSynchronous(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoIsOperationSynchronous(irp : *const super::super::Foundation:: IRP) -> bool); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn IoIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoIsValidNameGraftingBuffer(irp : *const super::super::Foundation:: IRP, reparsebuffer : *const REPARSE_DATA_BUFFER) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoIsValidNameGraftingBuffer(irp : *const super::super::Foundation:: IRP, reparsebuffer : *const REPARSE_DATA_BUFFER) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoPageRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, memorydescriptorlist : *const super::super::Foundation:: MDL, startingoffset : *const i64, event : *const super::super::Foundation:: KEVENT, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -506,7 +506,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterFileSystem(deviceobj #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterFsRegistrationChange(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, drivernotificationroutine : super::super::Foundation:: DRIVER_FS_NOTIFICATION) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterFsRegistrationChangeMountAware(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, drivernotificationroutine : super::super::Foundation:: DRIVER_FS_NOTIFICATION, synchronizewithmounts : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterFsRegistrationChangeMountAware(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, drivernotificationroutine : super::super::Foundation:: DRIVER_FS_NOTIFICATION, synchronizewithmounts : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoReleaseVpbSpinLock(irql : u8)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoReplaceFileObjectName(fileobject : *const super::super::Foundation:: FILE_OBJECT, newfilename : windows_sys::core::PCWSTR, filenamelength : u16) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -529,7 +529,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoUnregisterFileSystem(deviceo #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoUnregisterFsRegistrationChange(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, drivernotificationroutine : super::super::Foundation:: DRIVER_FS_NOTIFICATION)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoVerifyVolume(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, allowrawmount : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoVerifyVolume(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, allowrawmount : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn KeAcquireQueuedSpinLock(number : super::super::Foundation:: KSPIN_LOCK_QUEUE_NUMBER) -> u8); windows_targets::link!("ntoskrnl.exe" "system" fn KeAcquireSpinLockRaiseToSynch(spinlock : *mut usize) -> u8); @@ -537,7 +537,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn KeAcquireSpinLockRaiseToSynch( windows_targets::link!("ntoskrnl.exe" "system" fn KeAttachProcess(process : super::super::Foundation:: PRKPROCESS)); windows_targets::link!("ntoskrnl.exe" "system" fn KeDetachProcess()); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeMutant(mutant : *mut super::super::Foundation:: KMUTANT, initialowner : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeMutant(mutant : *mut super::super::Foundation:: KMUTANT, initialowner : bool)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeQueue(queue : *mut super::super::Foundation:: KQUEUE, count : u32)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -549,18 +549,18 @@ windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateMutant(mutant : *co #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateQueue(queue : *const super::super::Foundation:: KQUEUE) -> i32); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseMutant(mutant : *mut super::super::Foundation:: KMUTANT, increment : i32, abandoned : super::super::super::Win32::Foundation:: BOOLEAN, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); +windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseMutant(mutant : *mut super::super::Foundation:: KMUTANT, increment : i32, abandoned : bool, wait : bool) -> i32); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseQueuedSpinLock(number : super::super::Foundation:: KSPIN_LOCK_QUEUE_NUMBER, oldirql : u8)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueue(queue : *mut super::super::Foundation:: KQUEUE, waitmode : i8, timeout : *const i64) -> *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueEx(queue : *mut super::super::Foundation:: KQUEUE, waitmode : i8, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *const i64, entryarray : *mut *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY, count : u32) -> u32); +windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueEx(queue : *mut super::super::Foundation:: KQUEUE, waitmode : i8, alertable : bool, timeout : *const i64, entryarray : *mut *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY, count : u32) -> u32); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeRundownQueue(queue : *mut super::super::Foundation:: KQUEUE) -> *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn KeSetIdealProcessorThread(thread : super::super::Foundation:: PKTHREAD, processor : u8) -> u8); -windows_targets::link!("ntoskrnl.exe" "system" fn KeSetKernelStackSwapEnable(enable : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeSetKernelStackSwapEnable(enable : bool) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeStackAttachProcess(process : super::super::Foundation:: PRKPROCESS, apcstate : *mut KAPC_STATE)); #[cfg(feature = "Wdk_Foundation")] @@ -570,46 +570,46 @@ windows_targets::link!("ntoskrnl.exe" "system" fn KeUnstackDetachProcess(apcstat windows_targets::link!("secur32.dll" "system" fn MakeSignature(phcontext : *const SecHandle, fqop : u32, pmessage : *const SecBufferDesc, messageseqno : u32) -> windows_sys::core::HRESULT); windows_targets::link!("ksecdd.sys" "system" fn MapSecurityError(secstatus : windows_sys::core::HRESULT) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn MmCanFileBeTruncated(sectionpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, newfilesize : *const i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn MmCanFileBeTruncated(sectionpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, newfilesize : *const i64) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn MmDoesFileHaveUserWritableReferences(sectionpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS) -> u32); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn MmFlushImageSection(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, flushtype : MMFLUSH_TYPE) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn MmFlushImageSection(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, flushtype : MMFLUSH_TYPE) -> bool); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn MmForceSectionClosed(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, delayclose : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn MmForceSectionClosed(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, delayclose : bool) -> bool); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn MmForceSectionClosedEx(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, forcecloseflags : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn MmForceSectionClosedEx(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, forcecloseflags : u32) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn MmGetMaximumFileSectionSize() -> u64); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn MmIsFileSectionActive(fssectionpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, flags : u32, sectionisactive : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn MmIsRecursiveIoFault() -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn MmIsRecursiveIoFault() -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn MmMdlPagesAreZero(mdl : *const super::super::Foundation:: MDL) -> u32); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn MmPrefetchPages(numberoflists : u32, readlists : *const *const READ_LIST) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn MmSetAddressRangeModified(address : *const core::ffi::c_void, length : usize) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn MmSetAddressRangeModified(address : *const core::ffi::c_void, length : usize) -> bool); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeResultListAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeResultListAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn NtAdjustGroupsToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, resettodefault : super::super::super::Win32::Foundation:: BOOLEAN, newstate : *const super::super::super::Win32::Security:: TOKEN_GROUPS, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_GROUPS, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtAdjustGroupsToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, resettodefault : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_GROUPS, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_GROUPS, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn NtAdjustPrivilegesToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, disableallprivileges : super::super::super::Win32::Foundation:: BOOLEAN, newstate : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtAdjustPrivilegesToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, disableallprivileges : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtAllocateVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, zerobits : usize, regionsize : *mut usize, allocationtype : u32, protect : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Memory")] windows_targets::link!("ntdll.dll" "system" fn NtAllocateVirtualMemoryEx(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, allocationtype : u32, pageprotection : u32, extendedparameters : *mut super::super::super::Win32::System::Memory:: MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] windows_targets::link!("ntdll.dll" "system" fn NtCancelIoFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, iorequesttocancel : *const super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn NtCloseObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtCloseObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntdll.dll" "system" fn NtCreateDirectoryObject(directoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntdll.dll" "system" fn NtCreateEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, eventtype : super::super::super::Win32::System::Kernel:: EVENT_TYPE, initialstate : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtCreateEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, eventtype : super::super::super::Win32::System::Kernel:: EVENT_TYPE, initialstate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO"))] windows_targets::link!("ntdll.dll" "system" fn NtCreateFile(filehandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : super::super::super::Win32::Storage::FileSystem:: FILE_ACCESS_RIGHTS, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, allocationsize : *const i64, fileattributes : super::super::super::Win32::Storage::FileSystem:: FILE_FLAGS_AND_ATTRIBUTES, shareaccess : super::super::super::Win32::Storage::FileSystem:: FILE_SHARE_MODE, createdisposition : NTCREATEFILE_CREATE_DISPOSITION, createoptions : NTCREATEFILE_CREATE_OPTIONS, eabuffer : *const core::ffi::c_void, ealength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] @@ -618,10 +618,10 @@ windows_targets::link!("ntdll.dll" "system" fn NtCreateSection(sectionhandle : * windows_targets::link!("ntdll.dll" "system" fn NtCreateSectionEx(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, filehandle : super::super::super::Win32::Foundation:: HANDLE, extendedparameters : *mut super::super::super::Win32::System::Memory:: MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntdll.dll" "system" fn NtDeleteFile(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn NtDeleteObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtDeleteObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtDuplicateObject(sourceprocesshandle : super::super::super::Win32::Foundation:: HANDLE, sourcehandle : super::super::super::Win32::Foundation:: HANDLE, targetprocesshandle : super::super::super::Win32::Foundation:: HANDLE, targethandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, handleattributes : u32, options : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntdll.dll" "system" fn NtDuplicateToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, effectiveonly : super::super::super::Win32::Foundation:: BOOLEAN, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtDuplicateToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, effectiveonly : bool, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn NtFilterToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, sidstodisable : *const super::super::super::Win32::Security:: TOKEN_GROUPS, privilegestodelete : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, restrictedsids : *const super::super::super::Win32::Security:: TOKEN_GROUPS, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] @@ -635,34 +635,34 @@ windows_targets::link!("ntdll.dll" "system" fn NtFreeVirtualMemory(processhandle windows_targets::link!("ntdll.dll" "system" fn NtFsControlFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fscontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtImpersonateAnonymousToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] -windows_targets::link!("ntdll.dll" "system" fn NtLockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32, failimmediately : super::super::super::Win32::Foundation:: BOOLEAN, exclusivelock : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtLockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32, failimmediately : bool, exclusivelock : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] -windows_targets::link!("ntdll.dll" "system" fn NtNotifyChangeKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtNotifyChangeKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntdll.dll" "system" fn NtOpenDirectoryObject(directoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] windows_targets::link!("ntdll.dll" "system" fn NtOpenFile(filehandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, shareaccess : u32, openoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn NtOpenObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtOpenObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, objectcreation : bool, accessgranted : bool, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtOpenProcessToken(processhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtOpenProcessTokenEx(processhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntdll.dll" "system" fn NtOpenSymbolicLinkObject(linkhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn NtOpenThreadToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : super::super::super::Win32::Foundation:: BOOLEAN, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn NtOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : super::super::super::Win32::Foundation:: BOOLEAN, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtOpenThreadToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn NtPrivilegeCheck(clienttoken : super::super::super::Win32::Foundation:: HANDLE, requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, result : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtPrivilegeCheck(clienttoken : super::super::super::Win32::Foundation:: HANDLE, requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, result : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn NtPrivilegeObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtPrivilegeObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn NtPrivilegedServiceAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, clienttoken : super::super::super::Win32::Foundation:: HANDLE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtPrivilegedServiceAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, clienttoken : super::super::super::Win32::Foundation:: HANDLE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] -windows_targets::link!("ntdll.dll" "system" fn NtQueryDirectoryFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtQueryDirectoryFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, returnsingleentry : bool, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] windows_targets::link!("ntdll.dll" "system" fn NtQueryDirectoryFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, queryflags : u32, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn NtQueryDirectoryObject(directoryhandle : super::super::super::Win32::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, restartscan : super::super::super::Win32::Foundation:: BOOLEAN, context : *mut u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtQueryDirectoryObject(directoryhandle : super::super::super::Win32::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, restartscan : bool, context : *mut u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] -windows_targets::link!("ntdll.dll" "system" fn NtQueryEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtQueryEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntdll.dll" "system" fn NtQueryFullAttributesFile(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, fileinformation : *mut FILE_NETWORK_OPEN_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] @@ -672,7 +672,7 @@ windows_targets::link!("ntdll.dll" "system" fn NtQueryInformationFile(filehandle #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn NtQueryInformationToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, tokeninformationclass : super::super::super::Win32::Security:: TOKEN_INFORMATION_CLASS, tokeninformation : *mut core::ffi::c_void, tokeninformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Win32_Security", feature = "Win32_System_IO"))] -windows_targets::link!("ntdll.dll" "system" fn NtQueryQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Security:: PSID, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtQueryQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Security:: PSID, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn NtQuerySecurityObject(handle : super::super::super::Win32::Foundation:: HANDLE, securityinformation : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, length : u32, lengthneeded : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtQuerySymbolicLinkObject(linkhandle : super::super::super::Win32::Foundation:: HANDLE, linktarget : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, returnedlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -701,7 +701,7 @@ windows_targets::link!("ntdll.dll" "system" fn NtUnlockFile(filehandle : super:: windows_targets::link!("ntdll.dll" "system" fn NtWriteFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *const core::ffi::c_void, length : u32, byteoffset : *const i64, key : *const u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] windows_targets::link!("ntoskrnl.exe" "system" fn ObInsertObject(object : *const core::ffi::c_void, passedaccessstate : *mut super::super::Foundation:: ACCESS_STATE, desiredaccess : u32, objectpointerbias : u32, newobject : *mut *mut core::ffi::c_void, handle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn ObIsKernelHandle(handle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ObIsKernelHandle(handle : super::super::super::Win32::Foundation:: HANDLE) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn ObMakeTemporaryObject(object : *const core::ffi::c_void)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] windows_targets::link!("ntoskrnl.exe" "system" fn ObOpenObjectByPointer(object : *const core::ffi::c_void, handleattributes : u32, passedaccessstate : *const super::super::Foundation:: ACCESS_STATE, desiredaccess : u32, objecttype : super::super::Foundation:: POBJECT_TYPE, accessmode : i8, handle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -709,13 +709,13 @@ windows_targets::link!("ntoskrnl.exe" "system" fn ObOpenObjectByPointer(object : windows_targets::link!("ntoskrnl.exe" "system" fn ObOpenObjectByPointerWithTag(object : *const core::ffi::c_void, handleattributes : u32, passedaccessstate : *const super::super::Foundation:: ACCESS_STATE, desiredaccess : u32, objecttype : super::super::Foundation:: POBJECT_TYPE, accessmode : i8, tag : u32, handle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn ObQueryNameString(object : *const core::ffi::c_void, objectnameinfo : *mut super::super::Foundation:: OBJECT_NAME_INFORMATION, length : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn ObQueryObjectAuditingByHandle(handle : super::super::super::Win32::Foundation:: HANDLE, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn ObQueryObjectAuditingByHandle(handle : super::super::super::Win32::Foundation:: HANDLE, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntdll.dll" "system" fn PfxFindPrefix(prefixtable : *const PREFIX_TABLE, fullname : *const super::super::super::Win32::System::Kernel:: STRING) -> *mut PREFIX_TABLE_ENTRY); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntdll.dll" "system" fn PfxInitialize(prefixtable : *mut PREFIX_TABLE)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntdll.dll" "system" fn PfxInsertPrefix(prefixtable : *const PREFIX_TABLE, prefix : *const super::super::super::Win32::System::Kernel:: STRING, prefixtableentry : *mut PREFIX_TABLE_ENTRY) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn PfxInsertPrefix(prefixtable : *const PREFIX_TABLE, prefix : *const super::super::super::Win32::System::Kernel:: STRING, prefixtableentry : *mut PREFIX_TABLE_ENTRY) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntdll.dll" "system" fn PfxRemovePrefix(prefixtable : *const PREFIX_TABLE, prefixtableentry : *const PREFIX_TABLE_ENTRY)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -729,23 +729,23 @@ windows_targets::link!("ntoskrnl.exe" "system" fn PsChargeProcessPoolQuota(proce windows_targets::link!("ntoskrnl.exe" "system" fn PsDereferenceImpersonationToken(impersonationtoken : *const core::ffi::c_void)); windows_targets::link!("ntoskrnl.exe" "system" fn PsDereferencePrimaryToken(primarytoken : *const core::ffi::c_void)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn PsDisableImpersonation(thread : super::super::Foundation:: PETHREAD, impersonationstate : *mut super::super::super::Win32::Security:: SE_IMPERSONATION_STATE) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn PsDisableImpersonation(thread : super::super::Foundation:: PETHREAD, impersonationstate : *mut super::super::super::Win32::Security:: SE_IMPERSONATION_STATE) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn PsGetProcessExitTime() -> i64); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadProcess(thread : super::super::Foundation:: PETHREAD) -> super::super::Foundation:: PEPROCESS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn PsImpersonateClient(thread : super::super::Foundation:: PETHREAD, token : *const core::ffi::c_void, copyonopen : super::super::super::Win32::Foundation:: BOOLEAN, effectiveonly : super::super::super::Win32::Foundation:: BOOLEAN, impersonationlevel : super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn PsIsDiskCountersEnabled() -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn PsImpersonateClient(thread : super::super::Foundation:: PETHREAD, token : *const core::ffi::c_void, copyonopen : bool, effectiveonly : bool, impersonationlevel : super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn PsIsDiskCountersEnabled() -> bool); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn PsIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn PsIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> bool); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn PsIsThreadTerminating(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn PsIsThreadTerminating(thread : super::super::Foundation:: PETHREAD) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn PsLookupProcessByProcessId(processid : super::super::super::Win32::Foundation:: HANDLE, process : *mut super::super::Foundation:: PEPROCESS) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn PsLookupThreadByThreadId(threadid : super::super::super::Win32::Foundation:: HANDLE, thread : *mut super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn PsReferenceImpersonationToken(thread : super::super::Foundation:: PETHREAD, copyonopen : *mut super::super::super::Win32::Foundation:: BOOLEAN, effectiveonly : *mut super::super::super::Win32::Foundation:: BOOLEAN, impersonationlevel : *mut super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> *mut core::ffi::c_void); +windows_targets::link!("ntoskrnl.exe" "system" fn PsReferenceImpersonationToken(thread : super::super::Foundation:: PETHREAD, copyonopen : *mut bool, effectiveonly : *mut bool, impersonationlevel : *mut super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> *mut core::ffi::c_void); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn PsReferencePrimaryToken(process : super::super::Foundation:: PEPROCESS) -> *mut core::ffi::c_void); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] @@ -784,7 +784,7 @@ windows_targets::link!("ntdll.dll" "system" fn RtlCreateHeap(flags : u32, heapba #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn RtlCreateServiceSid(servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicesid : super::super::super::Win32::Security:: PSID, servicesidlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlCreateSystemVolumeInformationFolder(volumerootpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn RtlCreateUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlCreateUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : windows_sys::core::PCWSTR) -> bool); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn RtlCreateVirtualAccountSid(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, basesubauthority : u32, sid : super::super::super::Win32::Security:: PSID, sidlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlCustomCPToUnicodeN(customcp : *const CPTABLEINFO, unicodestring : windows_sys::core::PWSTR, maxbytesinunicodestring : u32, bytesinunicodestring : *mut u32, customcpstring : windows_sys::core::PCSTR, bytesincustomcpstring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -799,29 +799,29 @@ windows_targets::link!("ntdll.dll" "system" fn RtlDeleteAce(acl : *mut super::su windows_targets::link!("ntoskrnl.exe" "system" fn RtlDescribeChunk(compressionformat : u16, compressedbuffer : *mut *mut u8, endofcompressedbufferplus1 : *const u8, chunkbuffer : *mut *mut u8, chunksize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlDestroyHeap(heaphandle : *const core::ffi::c_void) -> *mut core::ffi::c_void); windows_targets::link!("ntdll.dll" "system" fn RtlDosPathNameToNtPathName_U_WithStatus(dosfilename : windows_sys::core::PCWSTR, ntfilename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, filepart : *mut windows_sys::core::PWSTR, reserved : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn RtlDowncaseUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlDowncaseUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlDuplicateUnicodeString(flags : u32, stringin : *const super::super::super::Win32::Foundation:: UNICODE_STRING, stringout : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn RtlEqualPrefixSid(sid1 : super::super::super::Win32::Security:: PSID, sid2 : super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlEqualPrefixSid(sid1 : super::super::super::Win32::Security:: PSID, sid2 : super::super::super::Win32::Security:: PSID) -> bool); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn RtlEqualSid(sid1 : super::super::super::Win32::Security:: PSID, sid2 : super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlEqualSid(sid1 : super::super::super::Win32::Security:: PSID, sid2 : super::super::super::Win32::Security:: PSID) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn RtlFindUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, fullname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitiveindex : u32) -> *mut UNICODE_PREFIX_TABLE_ENTRY); windows_targets::link!("ntdll.dll" "system" fn RtlFreeHeap(heaphandle : *const core::ffi::c_void, flags : u32, baseaddress : *const core::ffi::c_void) -> u32); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn RtlFreeSid(sid : super::super::super::Win32::Security:: PSID) -> *mut core::ffi::c_void); -windows_targets::link!("ntdll.dll" "system" fn RtlGenerate8dot3Name(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allowextendedcharacters : super::super::super::Win32::Foundation:: BOOLEAN, context : *mut GENERATE_NAME_CONTEXT, name8dot3 : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlGenerate8dot3Name(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allowextendedcharacters : bool, context : *mut GENERATE_NAME_CONTEXT, name8dot3 : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn RtlGetAce(acl : *const super::super::super::Win32::Security:: ACL, aceindex : u32, ace : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlGetCompressionWorkSpaceSize(compressionformatandengine : u16, compressbufferworkspacesize : *mut u32, compressfragmentworkspacesize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn RtlGetDaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, daclpresent : *mut super::super::super::Win32::Foundation:: BOOLEAN, dacl : *mut *mut super::super::super::Win32::Security:: ACL, dacldefaulted : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlGetDaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, daclpresent : *mut bool, dacl : *mut *mut super::super::super::Win32::Security:: ACL, dacldefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn RtlGetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : *mut super::super::super::Win32::Security:: PSID, groupdefaulted : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlGetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : *mut super::super::super::Win32::Security:: PSID, groupdefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn RtlGetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : *mut super::super::super::Win32::Security:: PSID, ownerdefaulted : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlGetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : *mut super::super::super::Win32::Security:: PSID, ownerdefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn RtlGetSaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, saclpresent : *mut super::super::super::Win32::Foundation:: BOOLEAN, sacl : *mut *mut super::super::super::Win32::Security:: ACL, sacldefaulted : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlGetSaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, saclpresent : *mut bool, sacl : *mut *mut super::super::super::Win32::Security:: ACL, sacldefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn RtlIdentifierAuthoritySid(sid : super::super::super::Win32::Security:: PSID) -> *mut super::super::super::Win32::Security:: SID_IDENTIFIER_AUTHORITY); windows_targets::link!("ntdll.dll" "system" fn RtlIdnToAscii(flags : u32, sourcestring : windows_sys::core::PCWSTR, sourcestringlength : i32, destinationstring : windows_sys::core::PWSTR, destinationstringlength : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -836,34 +836,34 @@ windows_targets::link!("ntdll.dll" "cdecl" fn RtlInitializeSidEx(sid : super::su #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn RtlInitializeUnicodePrefix(prefixtable : *mut UNICODE_PREFIX_TABLE)); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn RtlInsertUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, prefix : *const super::super::super::Win32::Foundation:: UNICODE_STRING, prefixtableentry : *mut UNICODE_PREFIX_TABLE_ENTRY) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlIsCloudFilesPlaceholder(fileattributes : u32, reparsetag : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn RtlInsertUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, prefix : *const super::super::super::Win32::Foundation:: UNICODE_STRING, prefixtableentry : *mut UNICODE_PREFIX_TABLE_ENTRY) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlIsCloudFilesPlaceholder(fileattributes : u32, reparsetag : u32) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlIsDosDeviceName_U(dosfilename : windows_sys::core::PCWSTR) -> u32); -windows_targets::link!("ntdll.dll" "system" fn RtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlIsNormalizedString(normform : u32, sourcestring : windows_sys::core::PCWSTR, sourcestringlength : i32, normalized : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholder(fileattributes : u32, reparsetag : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholderFileHandle(filehandle : super::super::super::Win32::Foundation:: HANDLE, ispartialplaceholder : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholderFileInfo(infobuffer : *const core::ffi::c_void, infoclass : FILE_INFORMATION_CLASS, ispartialplaceholder : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag : u32) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlIsNormalizedString(normform : u32, sourcestring : windows_sys::core::PCWSTR, sourcestringlength : i32, normalized : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholder(fileattributes : u32, reparsetag : u32) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholderFileHandle(filehandle : super::super::super::Win32::Foundation:: HANDLE, ispartialplaceholder : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholderFileInfo(infobuffer : *const core::ffi::c_void, infoclass : FILE_INFORMATION_CLASS, ispartialplaceholder : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsSandboxedToken(context : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, previousmode : i8) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsValidOemCharacter(char : windows_sys::core::PWSTR) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsSandboxedToken(context : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, previousmode : i8) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsValidOemCharacter(char : windows_sys::core::PWSTR) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlLengthRequiredSid(subauthoritycount : u32) -> u32); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn RtlLengthSid(sid : super::super::super::Win32::Security:: PSID) -> u32); windows_targets::link!("ntdll.dll" "system" fn RtlMultiByteToUnicodeN(unicodestring : windows_sys::core::PWSTR, maxbytesinunicodestring : u32, bytesinunicodestring : *mut u32, multibytestring : windows_sys::core::PCSTR, bytesinmultibytestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlMultiByteToUnicodeSize(bytesinunicodestring : *mut u32, multibytestring : windows_sys::core::PCSTR, bytesinmultibytestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn RtlNextUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, restart : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut UNICODE_PREFIX_TABLE_ENTRY); +windows_targets::link!("ntoskrnl.exe" "system" fn RtlNextUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, restart : bool) -> *mut UNICODE_PREFIX_TABLE_ENTRY); windows_targets::link!("ntdll.dll" "system" fn RtlNormalizeString(normform : u32, sourcestring : windows_sys::core::PCWSTR, sourcestringlength : i32, destinationstring : windows_sys::core::PWSTR, destinationstringlength : *mut i32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlNtStatusToDosErrorNoTeb(status : super::super::super::Win32::Foundation:: NTSTATUS) -> u32); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntoskrnl.exe" "system" fn RtlOemStringToCountedUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn RtlOemStringToCountedUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlOemStringToUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlOemStringToUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlOemToUnicodeN(unicodestring : windows_sys::core::PWSTR, maxbytesinunicodestring : u32, bytesinunicodestring : *mut u32, oemstring : windows_sys::core::PCSTR, bytesinoemstring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlPrefixString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlQueryPackageIdentity(tokenobject : *const core::ffi::c_void, packagefullname : windows_sys::core::PWSTR, packagesize : *mut usize, appid : windows_sys::core::PWSTR, appidsize : *mut usize, packaged : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlPrefixString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : bool) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlQueryPackageIdentity(tokenobject : *const core::ffi::c_void, packagefullname : windows_sys::core::PWSTR, packagesize : *mut usize, appid : windows_sys::core::PWSTR, appidsize : *mut usize, packaged : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlQueryPackageIdentityEx(tokenobject : *const core::ffi::c_void, packagefullname : windows_sys::core::PWSTR, packagesize : *mut usize, appid : windows_sys::core::PWSTR, appidsize : *mut usize, dynamicid : *mut windows_sys::core::GUID, flags : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlQueryProcessPlaceholderCompatibilityMode() -> i8); windows_targets::link!("ntdll.dll" "system" fn RtlQueryThreadPlaceholderCompatibilityMode() -> i8); @@ -879,80 +879,80 @@ windows_targets::link!("ntdll.dll" "system" fn RtlSecondsSince1980ToTime(elapsed #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn RtlSelfRelativeToAbsoluteSD(selfrelativesecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, absolutesecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, absolutesecuritydescriptorsize : *mut u32, dacl : *mut super::super::super::Win32::Security:: ACL, daclsize : *mut u32, sacl : *mut super::super::super::Win32::Security:: ACL, saclsize : *mut u32, owner : super::super::super::Win32::Security:: PSID, ownersize : *mut u32, primarygroup : super::super::super::Win32::Security:: PSID, primarygroupsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn RtlSetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : super::super::super::Win32::Security:: PSID, groupdefaulted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlSetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : super::super::super::Win32::Security:: PSID, groupdefaulted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn RtlSetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : super::super::super::Win32::Security:: PSID, ownerdefaulted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlSetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : super::super::super::Win32::Security:: PSID, ownerdefaulted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlSetProcessPlaceholderCompatibilityMode(mode : i8) -> i8); windows_targets::link!("ntdll.dll" "system" fn RtlSetThreadPlaceholderCompatibilityMode(mode : i8) -> i8); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn RtlSubAuthorityCountSid(sid : super::super::super::Win32::Security:: PSID) -> *mut u8); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn RtlSubAuthoritySid(sid : super::super::super::Win32::Security:: PSID, subauthority : u32) -> *mut u32); -windows_targets::link!("ntdll.dll" "system" fn RtlTimeToSecondsSince1980(time : *const i64, elapsedseconds : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlTimeToSecondsSince1980(time : *const i64, elapsedseconds : *mut u32) -> bool); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToCountedOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToCountedOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeToCustomCPN(customcp : *const CPTABLEINFO, customcpstring : windows_sys::core::PSTR, maxbytesincustomcpstring : u32, bytesincustomcpstring : *mut u32, unicodestring : windows_sys::core::PCWSTR, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeToMultiByteN(multibytestring : windows_sys::core::PSTR, maxbytesinmultibytestring : u32, bytesinmultibytestring : *mut u32, unicodestring : *const u16, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeToOemN(oemstring : windows_sys::core::PSTR, maxbytesinoemstring : u32, bytesinoemstring : *mut u32, unicodestring : *const u16, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeStringToCountedOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeStringToCountedOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeStringToOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeStringToOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeToCustomCPN(customcp : *const CPTABLEINFO, customcpstring : windows_sys::core::PSTR, maxbytesincustomcpstring : u32, bytesincustomcpstring : *mut u32, unicodestring : windows_sys::core::PCWSTR, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeToMultiByteN(multibytestring : windows_sys::core::PSTR, maxbytesinmultibytestring : u32, bytesinmultibytestring : *mut u32, unicodestring : *const u16, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeToOemN(oemstring : windows_sys::core::PSTR, maxbytesinoemstring : u32, bytesinoemstring : *mut u32, unicodestring : *const u16, bytesinunicodestring : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn RtlValidSid(sid : super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlValidSid(sid : super::super::super::Win32::Security:: PSID) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlValidateUnicodeString(flags : u32, string : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] windows_targets::link!("ntdll.dll" "system" fn RtlxOemStringToUnicodeSize(oemstring : *const super::super::super::Win32::System::Kernel:: STRING) -> u32); windows_targets::link!("ntdll.dll" "system" fn RtlxUnicodeStringToOemSize(unicodestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> u32); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheckFromState(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, primarytokeninformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, clienttokeninformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheckFromState(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, primarytokeninformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, clienttokeninformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> bool); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheckFromStateEx(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, primarytoken : *const core::ffi::c_void, clienttoken : *const core::ffi::c_void, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheckFromStateEx(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, primarytoken : *const core::ffi::c_void, clienttoken : *const core::ffi::c_void, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] windows_targets::link!("ntoskrnl.exe" "system" fn SeAdjustAccessStateForAccessConstraints(objecttype : *const core::ffi::c_void, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *mut super::super::Foundation:: ACCESS_STATE)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] windows_targets::link!("ntoskrnl.exe" "system" fn SeAdjustAccessStateForTrustLabel(objecttype : *const core::ffi::c_void, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *mut super::super::Foundation:: ACCESS_STATE)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAdjustObjectSecurity(objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, originaldescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, proposeddescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, adjusteddescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, applyadjusteddescriptor : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAdjustObjectSecurity(objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, originaldescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, proposeddescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, adjusteddescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, applyadjusteddescriptor : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] windows_targets::link!("ntoskrnl.exe" "system" fn SeAppendPrivileges(accessstate : *mut super::super::Foundation:: ACCESS_STATE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditFipsCryptoSelftests(bsuccess : super::super::super::Win32::Foundation:: BOOLEAN, selftestcode : u32)); -windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditHardLinkCreation(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, linkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, bsuccess : super::super::super::Win32::Foundation:: BOOLEAN)); -windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditHardLinkCreationWithTransaction(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, linkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, bsuccess : super::super::super::Win32::Foundation:: BOOLEAN, transactionid : *const windows_sys::core::GUID)); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditFipsCryptoSelftests(bsuccess : bool, selftestcode : u32)); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditHardLinkCreation(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, linkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, bsuccess : bool)); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditHardLinkCreationWithTransaction(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, linkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, bsuccess : bool, transactionid : *const windows_sys::core::GUID)); windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditTransactionStateChange(transactionid : *const windows_sys::core::GUID, resourcemanagerid : *const windows_sys::core::GUID, newtransactionstate : u32)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingAnyFileEventsWithContext(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingAnyFileEventsWithContext(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingAnyFileEventsWithContextEx(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, stagingenabled : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingAnyFileEventsWithContextEx(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, stagingenabled : *mut bool) -> bool); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEvents(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEvents(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContext(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContext(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContextEx(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, stagingenabled : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContextEx(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, stagingenabled : *mut bool) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileOrGlobalEvents(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileOrGlobalEvents(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEvents(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEvents(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEventsWithContext(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEventsWithContext(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntoskrnl.exe" "system" fn SeCaptureSubjectContextEx(thread : super::super::Foundation:: PETHREAD, process : super::super::Foundation:: PEPROCESS, subjectcontext : *mut super::super::Foundation:: SECURITY_SUBJECT_CONTEXT)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeCheckForCriticalAceRemoval(currentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, aceremoved : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn SeCheckForCriticalAceRemoval(currentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, aceremoved : *mut bool)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeCreateClientSecurity(clientthread : super::super::Foundation:: PETHREAD, clientsecurityqos : *const super::super::super::Win32::Security:: SECURITY_QUALITY_OF_SERVICE, remotesession : super::super::super::Win32::Foundation:: BOOLEAN, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn SeCreateClientSecurity(clientthread : super::super::Foundation:: PETHREAD, clientsecurityqos : *const super::super::super::Win32::Security:: SECURITY_QUALITY_OF_SERVICE, remotesession : bool, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeCreateClientSecurityFromSubjectContext(subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, clientsecurityqos : *const super::super::super::Win32::Security:: SECURITY_QUALITY_OF_SERVICE, serverisremote : super::super::super::Win32::Foundation:: BOOLEAN, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn SeCreateClientSecurityFromSubjectContext(subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, clientsecurityqos : *const super::super::super::Win32::Security:: SECURITY_QUALITY_OF_SERVICE, serverisremote : bool, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntoskrnl.exe" "system" fn SeDeleteClientSecurity(clientcontext : *mut SECURITY_CLIENT_CONTEXT)); windows_targets::link!("ntoskrnl.exe" "system" fn SeDeleteObjectAuditAlarm(object : *const core::ffi::c_void, handle : super::super::super::Win32::Foundation:: HANDLE)); windows_targets::link!("ntoskrnl.exe" "system" fn SeDeleteObjectAuditAlarmWithTransaction(object : *const core::ffi::c_void, handle : super::super::super::Win32::Foundation:: HANDLE, transactionid : *const windows_sys::core::GUID)); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntoskrnl.exe" "system" fn SeExamineSacl(sacl : *const super::super::super::Win32::Security:: ACL, resourcesacl : *const super::super::super::Win32::Security:: ACL, token : *const core::ffi::c_void, desiredaccess : u32, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, generateaudit : *mut super::super::super::Win32::Foundation:: BOOLEAN, generatealarm : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn SeExamineSacl(sacl : *const super::super::super::Win32::Security:: ACL, resourcesacl : *const super::super::super::Win32::Security:: ACL, token : *const core::ffi::c_void, desiredaccess : u32, accessgranted : bool, generateaudit : *mut bool, generatealarm : *mut bool)); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntoskrnl.exe" "system" fn SeFilterToken(existingtoken : *const core::ffi::c_void, flags : u32, sidstodisable : *const super::super::super::Win32::Security:: TOKEN_GROUPS, privilegestodelete : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, restrictedsids : *const super::super::super::Win32::Security:: TOKEN_GROUPS, filteredtoken : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] @@ -967,15 +967,15 @@ windows_targets::link!("ntoskrnl.exe" "system" fn SeMarkLogonSessionForTerminati #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn SeMarkLogonSessionForTerminationNotificationEx(logonid : *const super::super::super::Win32::Foundation:: LUID, pserversilo : super::super::Foundation:: PESILO) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectAuditAlarm(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, accessmode : i8, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectAuditAlarm(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, generateonclose : *mut bool)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectAuditAlarmWithTransaction(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, accessmode : i8, transactionid : *const windows_sys::core::GUID, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectAuditAlarmWithTransaction(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, transactionid : *const windows_sys::core::GUID, generateonclose : *mut bool)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectForDeleteAuditAlarm(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, accessmode : i8, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectForDeleteAuditAlarm(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, generateonclose : *mut bool)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectForDeleteAuditAlarmWithTransaction(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, accessmode : i8, transactionid : *const windows_sys::core::GUID, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectForDeleteAuditAlarmWithTransaction(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, transactionid : *const windows_sys::core::GUID, generateonclose : *mut bool)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SePrivilegeCheck(requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, accessmode : i8) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SePrivilegeCheck(requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, accessmode : i8) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn SeQueryAuthenticationIdToken(token : *const core::ffi::c_void, authenticationid : *mut super::super::super::Win32::Foundation:: LUID) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntoskrnl.exe" "system" fn SeQueryInformationToken(token : *const core::ffi::c_void, tokeninformationclass : super::super::super::Win32::Security:: TOKEN_INFORMATION_CLASS, tokeninformation : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -984,7 +984,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn SeQuerySecurityDescriptorInfo( #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn SeQueryServerSiloToken(token : *const core::ffi::c_void, pserversilo : *mut super::super::Foundation:: PESILO) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn SeQuerySessionIdToken(token : *const core::ffi::c_void, sessionid : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn SeQuerySessionIdTokenEx(token : *const core::ffi::c_void, sessionid : *mut u32, isservicesession : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn SeQuerySessionIdTokenEx(token : *const core::ffi::c_void, sessionid : *mut u32, isservicesession : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn SeRegisterLogonSessionTerminatedRoutine(callbackroutine : PSE_LOGON_SESSION_TERMINATED_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn SeRegisterLogonSessionTerminatedRoutineEx(callbackroutine : PSE_LOGON_SESSION_TERMINATED_ROUTINE_EX, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security_Authentication_Identity")] @@ -996,12 +996,12 @@ windows_targets::link!("ntoskrnl.exe" "system" fn SeSetSecurityDescriptorInfo(ob #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntoskrnl.exe" "system" fn SeSetSecurityDescriptorInfoEx(object : *const core::ffi::c_void, securityinformation : *const u32, modificationdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, objectssecuritydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, autoinheritflags : u32, pooltype : super::super::Foundation:: POOL_TYPE, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeShouldCheckForAccessRightsFromParent(objecttype : *const core::ffi::c_void, childdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeShouldCheckForAccessRightsFromParent(objecttype : *const core::ffi::c_void, childdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE) -> bool); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenFromAccessInformation(accessinformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, token : *mut core::ffi::c_void, length : u32, requiredlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsAdmin(token : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsRestricted(token : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsWriteRestricted(token : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsAdmin(token : *const core::ffi::c_void) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsRestricted(token : *const core::ffi::c_void) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsWriteRestricted(token : *const core::ffi::c_void) -> bool); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenType(token : *const core::ffi::c_void) -> super::super::super::Win32::Security:: TOKEN_TYPE); windows_targets::link!("ntoskrnl.exe" "system" fn SeUnregisterLogonSessionTerminatedRoutine(callbackroutine : PSE_LOGON_SESSION_TERMINATED_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -1012,9 +1012,9 @@ windows_targets::link!("ksecdd.sys" "system" fn SecLookupAccountName(name : *con windows_targets::link!("ksecdd.sys" "system" fn SecLookupAccountSid(sid : super::super::super::Win32::Security:: PSID, namesize : *mut u32, namebuffer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, domainsize : *mut u32, domainbuffer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, nameuse : *mut super::super::super::Win32::Security:: SID_NAME_USE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] windows_targets::link!("ksecdd.sys" "system" fn SecLookupWellKnownSid(sidtype : super::super::super::Win32::Security:: WELL_KNOWN_SID_TYPE, sid : super::super::super::Win32::Security:: PSID, sidbuffersize : u32, sidsize : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPN(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, length : *mut u32, allocate : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPNEx(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, targetinfo : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, length : *mut u32, allocate : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPNEx2(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, intargetinfo : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, totalsize : *mut u32, allocate : super::super::super::Win32::Foundation:: BOOLEAN, istargetinfomarshaled : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPN(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, length : *mut u32, allocate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPNEx(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, targetinfo : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, length : *mut u32, allocate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPNEx2(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, intargetinfo : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, totalsize : *mut u32, allocate : bool, istargetinfomarshaled : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("secur32.dll" "system" fn SetContextAttributesW(phcontext : *const SecHandle, ulattribute : u32, pbuffer : *const core::ffi::c_void, cbbuffer : u32) -> windows_sys::core::HRESULT); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ksecdd.sys" "system" fn SspiAcceptSecurityContextAsync(asynccontext : *mut super::super::Foundation:: SspiAsyncContext, phcredential : *const SecHandle, phcontext : *const SecHandle, pinput : *const SecBufferDesc, fcontextreq : u32, targetdatarep : u32, phnewcontext : *const SecHandle, poutput : *const SecBufferDesc, pfcontextattr : *const u32, ptsexpiry : *const i64) -> windows_sys::core::HRESULT); @@ -1042,35 +1042,35 @@ windows_targets::link!("ksecdd.sys" "system" fn SspiReinitAsyncContext(handle : windows_targets::link!("ksecdd.sys" "system" fn SspiSetAsyncNotifyCallback(context : *const super::super::Foundation:: SspiAsyncContext, callback : SspiAsyncNotifyCallback, callbackdata : *const core::ffi::c_void) -> windows_sys::core::HRESULT); windows_targets::link!("secur32.dll" "system" fn VerifySignature(phcontext : *const SecHandle, pmessage : *const SecBufferDesc, messageseqno : u32, pfqop : *mut u32) -> windows_sys::core::HRESULT); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeResultListAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeResultListAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn ZwAdjustGroupsToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, resettodefault : super::super::super::Win32::Foundation:: BOOLEAN, newstate : *const super::super::super::Win32::Security:: TOKEN_GROUPS, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_GROUPS, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwAdjustGroupsToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, resettodefault : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_GROUPS, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_GROUPS, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn ZwAdjustPrivilegesToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, disableallprivileges : super::super::super::Win32::Foundation:: BOOLEAN, newstate : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwAdjustPrivilegesToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, disableallprivileges : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwAllocateVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, zerobits : usize, regionsize : *mut usize, allocationtype : u32, protect : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Memory")] windows_targets::link!("ntdll.dll" "system" fn ZwAllocateVirtualMemoryEx(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, regionsize : *mut usize, allocationtype : u32, pageprotection : u32, extendedparameters : *mut super::super::super::Win32::System::Memory:: MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] windows_targets::link!("ntdll.dll" "system" fn ZwCancelIoFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, iorequesttocancel : *const super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn ZwCloseObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwCloseObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntdll.dll" "system" fn ZwCreateDirectoryObject(directoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntdll.dll" "system" fn ZwCreateEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, eventtype : super::super::super::Win32::System::Kernel:: EVENT_TYPE, initialstate : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwCreateEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, eventtype : super::super::super::Win32::System::Kernel:: EVENT_TYPE, initialstate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Memory"))] windows_targets::link!("ntdll.dll" "system" fn ZwCreateSectionEx(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, maximumsize : *const i64, sectionpageprotection : u32, allocationattributes : u32, filehandle : super::super::super::Win32::Foundation:: HANDLE, extendedparameters : *mut super::super::super::Win32::System::Memory:: MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntdll.dll" "system" fn ZwDeleteFile(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn ZwDeleteObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwDeleteObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwDuplicateObject(sourceprocesshandle : super::super::super::Win32::Foundation:: HANDLE, sourcehandle : super::super::super::Win32::Foundation:: HANDLE, targetprocesshandle : super::super::super::Win32::Foundation:: HANDLE, targethandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, handleattributes : u32, options : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntdll.dll" "system" fn ZwDuplicateToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, effectiveonly : super::super::super::Win32::Foundation:: BOOLEAN, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwDuplicateToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, effectiveonly : bool, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn ZwFilterToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, sidstodisable : *const super::super::super::Win32::Security:: TOKEN_GROUPS, privilegestodelete : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, restrictedsids : *const super::super::super::Win32::Security:: TOKEN_GROUPS, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] @@ -1084,30 +1084,30 @@ windows_targets::link!("ntdll.dll" "system" fn ZwFreeVirtualMemory(processhandle windows_targets::link!("ntdll.dll" "system" fn ZwFsControlFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fscontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwImpersonateAnonymousToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] -windows_targets::link!("ntdll.dll" "system" fn ZwLockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32, failimmediately : super::super::super::Win32::Foundation:: BOOLEAN, exclusivelock : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwLockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32, failimmediately : bool, exclusivelock : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] -windows_targets::link!("ntdll.dll" "system" fn ZwNotifyChangeKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwNotifyChangeKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntdll.dll" "system" fn ZwOpenDirectoryObject(directoryhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn ZwOpenObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwOpenObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, objectcreation : bool, accessgranted : bool, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwOpenProcessToken(processhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwOpenProcessTokenEx(processhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn ZwOpenThreadToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : super::super::super::Win32::Foundation:: BOOLEAN, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn ZwOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : super::super::super::Win32::Foundation:: BOOLEAN, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwOpenThreadToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegeCheck(clienttoken : super::super::super::Win32::Foundation:: HANDLE, requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, result : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegeCheck(clienttoken : super::super::super::Win32::Foundation:: HANDLE, requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, result : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegeObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegeObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegedServiceAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, clienttoken : super::super::super::Win32::Foundation:: HANDLE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegedServiceAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, clienttoken : super::super::super::Win32::Foundation:: HANDLE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] -windows_targets::link!("ntdll.dll" "system" fn ZwQueryDirectoryFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwQueryDirectoryFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, returnsingleentry : bool, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] windows_targets::link!("ntdll.dll" "system" fn ZwQueryDirectoryFileEx(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, queryflags : u32, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn ZwQueryDirectoryObject(directoryhandle : super::super::super::Win32::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, restartscan : super::super::super::Win32::Foundation:: BOOLEAN, context : *mut u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwQueryDirectoryObject(directoryhandle : super::super::super::Win32::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, restartscan : bool, context : *mut u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_IO")] -windows_targets::link!("ntdll.dll" "system" fn ZwQueryEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwQueryEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntdll.dll" "system" fn ZwQueryFullAttributesFile(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, fileinformation : *mut FILE_NETWORK_OPEN_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] @@ -1115,7 +1115,7 @@ windows_targets::link!("ntdll.dll" "system" fn ZwQueryInformationToken(tokenhand #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntdll.dll" "system" fn ZwQueryObject(handle : super::super::super::Win32::Foundation:: HANDLE, objectinformationclass : super::super::Foundation:: OBJECT_INFORMATION_CLASS, objectinformation : *mut core::ffi::c_void, objectinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Win32_Security", feature = "Win32_System_IO"))] -windows_targets::link!("ntdll.dll" "system" fn ZwQueryQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Security:: PSID, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwQueryQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Security:: PSID, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn ZwQuerySecurityObject(handle : super::super::super::Win32::Foundation:: HANDLE, securityinformation : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, length : u32, lengthneeded : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwQueryVirtualMemory(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *const core::ffi::c_void, memoryinformationclass : MEMORY_INFORMATION_CLASS, memoryinformation : *mut core::ffi::c_void, memoryinformationlength : usize, returnlength : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -1378,7 +1378,7 @@ pub type CSV_DOWN_LEVEL_FILE_TYPE = i32; #[derive(Clone, Copy)] pub struct CSV_DOWN_LEVEL_OPEN_ECP_CONTEXT { pub Version: u32, - pub IsResume: super::super::super::Win32::Foundation::BOOLEAN, + pub IsResume: bool, pub FileType: CSV_DOWN_LEVEL_FILE_TYPE, pub SourceNodeId: u32, pub DestinationNodeId: u32, @@ -1446,8 +1446,8 @@ pub const DO_VOLUME_DEVICE_OBJECT: u32 = 1048576u32; pub struct DUAL_OPLOCK_KEY_ECP_CONTEXT { pub ParentOplockKey: windows_sys::core::GUID, pub TargetOplockKey: windows_sys::core::GUID, - pub ParentOplockKeySet: super::super::super::Win32::Foundation::BOOLEAN, - pub TargetOplockKeySet: super::super::super::Win32::Foundation::BOOLEAN, + pub ParentOplockKeySet: bool, + pub TargetOplockKeySet: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -1612,7 +1612,7 @@ pub const FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE: FILE_DISPOSITION_INFORMATI #[repr(C)] #[derive(Clone, Copy)] pub struct FILE_DISPOSITION_INFORMATION { - pub DeleteFile: super::super::super::Win32::Foundation::BOOLEAN, + pub DeleteFile: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -1671,7 +1671,7 @@ pub struct FILE_FS_DATA_COPY_INFORMATION { #[repr(C)] #[derive(Clone, Copy)] pub struct FILE_FS_DRIVER_PATH_INFORMATION { - pub DriverInPath: super::super::super::Win32::Foundation::BOOLEAN, + pub DriverInPath: bool, pub DriverNameLength: u32, pub DriverName: [u16; 1], } @@ -1902,7 +1902,7 @@ pub struct FILE_LINK_INFORMATION { #[repr(C)] #[derive(Clone, Copy)] pub union FILE_LINK_INFORMATION_0 { - pub ReplaceIfExists: super::super::super::Win32::Foundation::BOOLEAN, + pub ReplaceIfExists: bool, pub Flags: u32, } pub const FILE_LINK_NO_DECREASE_AVAILABLE_SPACE: u32 = 32u32; @@ -1917,8 +1917,8 @@ pub const FILE_LINK_SUPPRESS_STORAGE_RESERVE_INHERITANCE: u32 = 8u32; pub struct FILE_LOCK { pub CompleteLockIrpRoutine: PCOMPLETE_LOCK_IRP_ROUTINE, pub UnlockRoutine: PUNLOCK_ROUTINE, - pub FastIoIsQuestionable: super::super::super::Win32::Foundation::BOOLEAN, - pub SpareC: [super::super::super::Win32::Foundation::BOOLEAN; 3], + pub FastIoIsQuestionable: bool, + pub SpareC: [bool; 3], pub LockInformation: *mut core::ffi::c_void, pub LastReturnedLockInfo: FILE_LOCK_INFO, pub LastReturnedLock: *mut core::ffi::c_void, @@ -1930,7 +1930,7 @@ pub struct FILE_LOCK { pub struct FILE_LOCK_INFO { pub StartingByte: i64, pub Length: i64, - pub ExclusiveLock: super::super::super::Win32::Foundation::BOOLEAN, + pub ExclusiveLock: bool, pub Key: u32, pub FileObject: *mut super::super::Foundation::FILE_OBJECT, pub ProcessId: *mut core::ffi::c_void, @@ -2155,7 +2155,7 @@ pub const FILE_PIPE_TYPE_VALID_MASK: u32 = 3u32; pub struct FILE_PIPE_WAIT_FOR_BUFFER { pub Timeout: i64, pub NameLength: u32, - pub TimeoutSpecified: super::super::super::Win32::Foundation::BOOLEAN, + pub TimeoutSpecified: bool, pub Name: [u16; 1], } pub const FILE_PIPE_WRITE_SPACE: u32 = 1u32; @@ -2237,7 +2237,7 @@ pub struct FILE_RENAME_INFORMATION { #[repr(C)] #[derive(Clone, Copy)] pub union FILE_RENAME_INFORMATION_0 { - pub ReplaceIfExists: super::super::super::Win32::Foundation::BOOLEAN, + pub ReplaceIfExists: bool, pub Flags: u32, } pub const FILE_RENAME_NO_DECREASE_AVAILABLE_SPACE: u32 = 32u32; @@ -2262,16 +2262,16 @@ pub struct FILE_STANDARD_INFORMATION { pub AllocationSize: i64, pub EndOfFile: i64, pub NumberOfLinks: u32, - pub DeletePending: super::super::super::Win32::Foundation::BOOLEAN, - pub Directory: super::super::super::Win32::Foundation::BOOLEAN, + pub DeletePending: bool, + pub Directory: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct FILE_STANDARD_LINK_INFORMATION { pub NumberOfAccessibleLinks: u32, pub TotalNumberOfLinks: u32, - pub DeletePending: super::super::super::Win32::Foundation::BOOLEAN, - pub Directory: super::super::super::Win32::Foundation::BOOLEAN, + pub DeletePending: bool, + pub Directory: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2842,7 +2842,7 @@ pub const GENERATE_CLIENT_CHALLENGE: u32 = 16u32; #[derive(Clone, Copy)] pub struct GENERATE_NAME_CONTEXT { pub Checksum: u16, - pub ChecksumInserted: super::super::super::Win32::Foundation::BOOLEAN, + pub ChecksumInserted: bool, pub NameLength: u8, pub NameBuffer: [u16; 8], pub ExtensionLength: u32, @@ -3080,7 +3080,7 @@ pub struct KAPC_STATE { pub ApcListHead: [super::super::super::Win32::System::Kernel::LIST_ENTRY; 2], pub Process: *mut isize, pub Anonymous1: KAPC_STATE_0, - pub KernelApcPending: super::super::super::Win32::Foundation::BOOLEAN, + pub KernelApcPending: bool, pub Anonymous2: KAPC_STATE_1, } #[repr(C)] @@ -3100,7 +3100,7 @@ pub struct KAPC_STATE_0_0 { #[cfg(feature = "Win32_System_Kernel")] #[derive(Clone, Copy)] pub union KAPC_STATE_1 { - pub UserApcPendingAll: super::super::super::Win32::Foundation::BOOLEAN, + pub UserApcPendingAll: bool, pub Anonymous: KAPC_STATE_1_0, } #[repr(C)] @@ -3486,19 +3486,19 @@ pub struct OPLOCK_NOTIFY_PARAMS { pub type OPLOCK_NOTIFY_REASON = i32; pub const OPLOCK_UPPER_FLAG_CHECK_NO_BREAK: u32 = 65536u32; pub const OPLOCK_UPPER_FLAG_NOTIFY_REFRESH_READ: u32 = 131072u32; -pub type PACQUIRE_FOR_LAZY_WRITE = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PACQUIRE_FOR_LAZY_WRITE_EX = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PACQUIRE_FOR_READ_AHEAD = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PACQUIRE_FOR_LAZY_WRITE = Option bool>; +pub type PACQUIRE_FOR_LAZY_WRITE_EX = Option bool>; +pub type PACQUIRE_FOR_READ_AHEAD = Option bool>; pub type PALLOCATE_VIRTUAL_MEMORY_EX_CALLBACK = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PASYNC_READ_COMPLETION_CALLBACK = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PASYNC_READ_COMPLETION_CALLBACK = Option bool>; pub type PCC_POST_DEFERRED_WRITE = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -pub type PCHECK_FOR_TRAVERSE_ACCESS = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PCHECK_FOR_TRAVERSE_ACCESS = Option bool>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PCOMPLETE_LOCK_IRP_ROUTINE = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PDIRTY_PAGE_ROUTINE = Option; -pub type PFILTER_REPORT_CHANGE = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PFILTER_REPORT_CHANGE = Option bool>; pub type PFLUSH_TO_LSN = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] pub type PFN_FSRTLTEARDOWNPERSTREAMCONTEXTS = Option; @@ -3764,7 +3764,7 @@ pub struct REFS_QUERY_VOLUME_COMPRESSION_INFO_OUTPUT_BUFFER { #[repr(C)] #[derive(Clone, Copy)] pub struct REFS_QUERY_VOLUME_DEDUP_INFO_OUTPUT_BUFFER { - pub Enabled: super::super::super::Win32::Foundation::BOOLEAN, + pub Enabled: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -3788,7 +3788,7 @@ pub struct REFS_SET_VOLUME_COMPRESSION_INFO_INPUT_BUFFER { #[repr(C)] #[derive(Clone, Copy)] pub struct REFS_SET_VOLUME_DEDUP_INFO_INPUT_BUFFER { - pub Enable: super::super::super::Win32::Foundation::BOOLEAN, + pub Enable: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -3859,7 +3859,7 @@ pub struct REFS_STREAM_SNAPSHOT_QUERY_DELTAS_OUTPUT_BUFFER { #[repr(C)] #[derive(Clone, Copy)] pub struct REFS_VOLUME_COUNTER_INFO_INPUT_BUFFER { - pub ResetCounters: super::super::super::Win32::Foundation::BOOLEAN, + pub ResetCounters: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -4091,9 +4091,9 @@ pub const SECURITY_ANONYMOUS_LOGON_RID: i32 = 7i32; pub struct SECURITY_CLIENT_CONTEXT { pub SecurityQos: super::super::super::Win32::Security::SECURITY_QUALITY_OF_SERVICE, pub ClientToken: *mut core::ffi::c_void, - pub DirectlyAccessClientToken: super::super::super::Win32::Foundation::BOOLEAN, - pub DirectAccessEffectiveOnly: super::super::super::Win32::Foundation::BOOLEAN, - pub ServerIsRemote: super::super::super::Win32::Foundation::BOOLEAN, + pub DirectlyAccessClientToken: bool, + pub DirectAccessEffectiveOnly: bool, + pub ServerIsRemote: bool, pub ClientTokenControl: super::super::super::Win32::Security::TOKEN_CONTROL, } #[repr(C)] @@ -4140,7 +4140,7 @@ pub const SEMAPHORE_INCREMENT: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy)] pub struct SET_CACHED_RUNS_STATE_INPUT_BUFFER { - pub Enable: super::super::super::Win32::Foundation::BOOLEAN, + pub Enable: bool, } pub const SET_PURGE_FAILURE_MODE_DISABLED: u32 = 2u32; #[repr(C)] @@ -4157,8 +4157,8 @@ pub struct SE_AUDIT_INFO { pub HandleId: *mut core::ffi::c_void, pub TransactionId: *mut windows_sys::core::GUID, pub OperationId: *mut super::super::super::Win32::Foundation::LUID, - pub ObjectCreation: super::super::super::Win32::Foundation::BOOLEAN, - pub GenerateOnClose: super::super::super::Win32::Foundation::BOOLEAN, + pub ObjectCreation: bool, + pub GenerateOnClose: bool, } pub type SE_AUDIT_OPERATION = i32; pub const SE_BACKUP_PRIVILEGES_CHECKED: u32 = 256u32; @@ -4253,9 +4253,9 @@ pub type SRV_INSTANCE_TYPE = i32; pub struct SRV_OPEN_ECP_CONTEXT { pub ShareName: *mut super::super::super::Win32::Foundation::UNICODE_STRING, pub SocketAddress: *mut super::super::super::Win32::Networking::WinSock::SOCKADDR_STORAGE, - pub OplockBlockState: super::super::super::Win32::Foundation::BOOLEAN, - pub OplockAppState: super::super::super::Win32::Foundation::BOOLEAN, - pub OplockFinalState: super::super::super::Win32::Foundation::BOOLEAN, + pub OplockBlockState: bool, + pub OplockAppState: bool, + pub OplockFinalState: bool, pub Version: u16, pub InstanceType: SRV_INSTANCE_TYPE, } diff --git a/crates/libs/sys/src/Windows/Wdk/System/Registry/mod.rs b/crates/libs/sys/src/Windows/Wdk/System/Registry/mod.rs index 3aab105d42..52bfea6cee 100644 --- a/crates/libs/sys/src/Windows/Wdk/System/Registry/mod.rs +++ b/crates/libs/sys/src/Windows/Wdk/System/Registry/mod.rs @@ -11,7 +11,7 @@ windows_targets::link!("ntdll.dll" "system" fn NtEnumerateKey(keyhandle : super: windows_targets::link!("ntdll.dll" "system" fn NtEnumerateValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, index : u32, keyvalueinformationclass : KEY_VALUE_INFORMATION_CLASS, keyvalueinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtFlushKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] -windows_targets::link!("ntdll.dll" "system" fn NtNotifyChangeMultipleKeys(masterkeyhandle : super::super::super::Win32::Foundation:: HANDLE, count : u32, subordinateobjects : *const super::super::Foundation:: OBJECT_ATTRIBUTES, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtNotifyChangeMultipleKeys(masterkeyhandle : super::super::super::Win32::Foundation:: HANDLE, count : u32, subordinateobjects : *const super::super::Foundation:: OBJECT_ATTRIBUTES, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntdll.dll" "system" fn NtOpenKey(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] @@ -45,7 +45,7 @@ windows_targets::link!("ntdll.dll" "system" fn ZwEnumerateKey(keyhandle : super: windows_targets::link!("ntdll.dll" "system" fn ZwEnumerateValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, index : u32, keyvalueinformationclass : KEY_VALUE_INFORMATION_CLASS, keyvalueinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwFlushKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] -windows_targets::link!("ntdll.dll" "system" fn ZwNotifyChangeMultipleKeys(masterkeyhandle : super::super::super::Win32::Foundation:: HANDLE, count : u32, subordinateobjects : *const super::super::Foundation:: OBJECT_ATTRIBUTES, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwNotifyChangeMultipleKeys(masterkeyhandle : super::super::super::Win32::Foundation:: HANDLE, count : u32, subordinateobjects : *const super::super::Foundation:: OBJECT_ATTRIBUTES, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntdll.dll" "system" fn ZwOpenKey(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] diff --git a/crates/libs/sys/src/Windows/Wdk/System/SystemServices/mod.rs b/crates/libs/sys/src/Windows/Wdk/System/SystemServices/mod.rs index c10a9f2d48..8daa98c985 100644 --- a/crates/libs/sys/src/Windows/Wdk/System/SystemServices/mod.rs +++ b/crates/libs/sys/src/Windows/Wdk/System/SystemServices/mod.rs @@ -47,15 +47,15 @@ windows_targets::link!("clfs.sys" "system" fn ClfsLsnCreate(cidcontainer : u32, #[cfg(feature = "Win32_Storage_FileSystem")] windows_targets::link!("clfs.sys" "system" fn ClfsLsnDifference(plsnstart : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsnfinish : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, cbcontainer : u32, cbmaxblock : u32, pcbdifference : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Storage_FileSystem")] -windows_targets::link!("clfs.sys" "system" fn ClfsLsnEqual(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("clfs.sys" "system" fn ClfsLsnEqual(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); #[cfg(feature = "Win32_Storage_FileSystem")] -windows_targets::link!("clfs.sys" "system" fn ClfsLsnGreater(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("clfs.sys" "system" fn ClfsLsnGreater(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); #[cfg(feature = "Win32_Storage_FileSystem")] -windows_targets::link!("clfs.sys" "system" fn ClfsLsnInvalid(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("clfs.sys" "system" fn ClfsLsnInvalid(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); #[cfg(feature = "Win32_Storage_FileSystem")] -windows_targets::link!("clfs.sys" "system" fn ClfsLsnLess(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("clfs.sys" "system" fn ClfsLsnLess(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); #[cfg(feature = "Win32_Storage_FileSystem")] -windows_targets::link!("clfs.sys" "system" fn ClfsLsnNull(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("clfs.sys" "system" fn ClfsLsnNull(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); #[cfg(feature = "Win32_Storage_FileSystem")] windows_targets::link!("clfs.sys" "system" fn ClfsLsnRecordSequence(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> u32); windows_targets::link!("clfs.sys" "system" fn ClfsMgmtDeregisterManagedClient(clientcookie : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -84,9 +84,9 @@ windows_targets::link!("clfs.sys" "system" fn ClfsReadPreviousRestartArea(pvread #[cfg(feature = "Win32_Storage_FileSystem")] windows_targets::link!("clfs.sys" "system" fn ClfsReadRestartArea(pvmarshalcontext : *mut core::ffi::c_void, ppvrestartbuffer : *mut *mut core::ffi::c_void, pcbrestartbuffer : *mut u32, plsn : *mut super::super::super::Win32::Storage::FileSystem:: CLS_LSN, ppvreadcontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("clfs.sys" "system" fn ClfsRemoveLogContainer(plfolog : *const super::super::Foundation:: FILE_OBJECT, puszcontainerpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fforce : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("clfs.sys" "system" fn ClfsRemoveLogContainer(plfolog : *const super::super::Foundation:: FILE_OBJECT, puszcontainerpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fforce : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("clfs.sys" "system" fn ClfsRemoveLogContainerSet(plfolog : *const super::super::Foundation:: FILE_OBJECT, ccontainers : u16, rgwszcontainerpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fforce : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("clfs.sys" "system" fn ClfsRemoveLogContainerSet(plfolog : *const super::super::Foundation:: FILE_OBJECT, ccontainers : u16, rgwszcontainerpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fforce : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Storage_FileSystem")] windows_targets::link!("clfs.sys" "system" fn ClfsReserveAndAppendLog(pvmarshalcontext : *const core::ffi::c_void, rgwriteentries : *const super::super::super::Win32::Storage::FileSystem:: CLS_WRITE_ENTRY, cwriteentries : u32, plsnundonext : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsnprevious : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, creserverecords : u32, rgcbreservation : *mut i64, fflags : u32, plsn : *mut super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Storage_FileSystem")] @@ -117,14 +117,14 @@ windows_targets::link!("ntdll.dll" "cdecl" fn DbgPrintEx(componentid : u32, leve windows_targets::link!("ntdll.dll" "cdecl" fn DbgPrintReturnControlC(format : windows_sys::core::PCSTR, ...) -> u32); windows_targets::link!("ntdll.dll" "system" fn DbgPrompt(prompt : windows_sys::core::PCSTR, response : windows_sys::core::PSTR, length : u32) -> u32); windows_targets::link!("ntdll.dll" "system" fn DbgQueryDebugFilterState(componentid : u32, level : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn DbgSetDebugFilterState(componentid : u32, level : u32, state : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn DbgSetDebugFilterState(componentid : u32, level : u32, state : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntoskrnl.exe" "system" fn DbgSetDebugPrintCallback(debugprintcallback : PDEBUG_PRINT_CALLBACK, enable : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn DbgSetDebugPrintCallback(debugprintcallback : PDEBUG_PRINT_CALLBACK, enable : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn EtwActivityIdControl(controlcode : u32, activityid : *mut windows_sys::core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Diagnostics_Etw")] -windows_targets::link!("ntdll.dll" "system" fn EtwEventEnabled(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, eventdescriptor : *const super::super::super::Win32::System::Diagnostics::Etw:: EVENT_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn EtwEventEnabled(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, eventdescriptor : *const super::super::super::Win32::System::Diagnostics::Etw:: EVENT_DESCRIPTOR) -> bool); #[cfg(feature = "Win32_System_Diagnostics_Etw")] -windows_targets::link!("ntoskrnl.exe" "system" fn EtwProviderEnabled(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, level : u8, keyword : u64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn EtwProviderEnabled(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, level : u8, keyword : u64) -> bool); #[cfg(feature = "Win32_System_Diagnostics_Etw")] windows_targets::link!("ntoskrnl.exe" "system" fn EtwRegister(providerid : *const windows_sys::core::GUID, enablecallback : PETWENABLECALLBACK, callbackcontext : *const core::ffi::c_void, reghandle : *mut super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Diagnostics_Etw")] @@ -146,19 +146,19 @@ windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireFastMutexUnsafe(fastm windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquirePushLockExclusiveEx(pushlock : *mut usize, flags : u32)); windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquirePushLockSharedEx(pushlock : *mut usize, flags : u32)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireResourceExclusiveLite(resource : *mut super::super::Foundation:: ERESOURCE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireResourceExclusiveLite(resource : *mut super::super::Foundation:: ERESOURCE, wait : bool) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireResourceSharedLite(resource : *mut super::super::Foundation:: ERESOURCE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtection(runref : *mut EX_RUNDOWN_REF) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireResourceSharedLite(resource : *mut super::super::Foundation:: ERESOURCE, wait : bool) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtection(runref : *mut EX_RUNDOWN_REF) -> bool); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE) -> bool); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionCacheAwareEx(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE, count : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionEx(runref : *mut EX_RUNDOWN_REF, count : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionCacheAwareEx(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE, count : u32) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionEx(runref : *mut EX_RUNDOWN_REF, count : u32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSharedStarveExclusive(resource : *mut super::super::Foundation:: ERESOURCE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSharedStarveExclusive(resource : *mut super::super::Foundation:: ERESOURCE, wait : bool) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSharedWaitForExclusive(resource : *mut super::super::Foundation:: ERESOURCE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSharedWaitForExclusive(resource : *mut super::super::Foundation:: ERESOURCE, wait : bool) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSpinLockExclusive(spinlock : *mut i32) -> u8); windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSpinLockExclusiveAtDpcLevel(spinlock : *mut i32)); windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSpinLockShared(spinlock : *mut i32) -> u8); @@ -180,18 +180,18 @@ windows_targets::link!("ntoskrnl.exe" "system" fn ExAllocatePoolWithTagPriority( #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn ExAllocateTimer(callback : PEXT_CALLBACK, callbackcontext : *const core::ffi::c_void, attributes : u32) -> super::super::Foundation:: PEX_TIMER); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn ExCancelTimer(timer : super::super::Foundation:: PEX_TIMER, parameters : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ExCancelTimer(timer : super::super::Foundation:: PEX_TIMER, parameters : *const core::ffi::c_void) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn ExCleanupRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn ExConvertExclusiveToSharedLite(resource : *mut super::super::Foundation:: ERESOURCE)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn ExCreateCallback(callbackobject : *mut super::super::Foundation:: PCALLBACK_OBJECT, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, create : super::super::super::Win32::Foundation:: BOOLEAN, allowmultiplecallbacks : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn ExCreateCallback(callbackobject : *mut super::super::Foundation:: PCALLBACK_OBJECT, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, create : bool, allowmultiplecallbacks : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn ExCreatePool(flags : u32, tag : usize, params : *const POOL_CREATE_EXTENDED_PARAMS, poolhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn ExDeleteResourceLite(resource : *mut super::super::Foundation:: ERESOURCE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn ExDeleteTimer(timer : super::super::Foundation:: PEX_TIMER, cancel : super::super::super::Win32::Foundation:: BOOLEAN, wait : super::super::super::Win32::Foundation:: BOOLEAN, parameters : *const EXT_DELETE_PARAMETERS) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ExDeleteTimer(timer : super::super::Foundation:: PEX_TIMER, cancel : bool, wait : bool, parameters : *const EXT_DELETE_PARAMETERS) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn ExDestroyPool(poolhandle : super::super::super::Win32::Foundation:: HANDLE)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn ExEnterCriticalRegionAndAcquireResourceExclusive(resource : *mut super::super::Foundation:: ERESOURCE) -> *mut core::ffi::c_void); @@ -229,13 +229,13 @@ windows_targets::link!("ntoskrnl.exe" "system" fn ExInitializeZone(zone : *mut Z windows_targets::link!("ntoskrnl.exe" "system" fn ExInterlockedAddLargeInteger(addend : *mut i64, increment : i64, lock : *mut usize) -> i64); #[cfg(feature = "Win32_System_Kernel")] windows_targets::link!("ntoskrnl.exe" "system" fn ExInterlockedExtendZone(zone : *mut ZONE_HEADER, segment : *mut core::ffi::c_void, segmentsize : u32, lock : *mut usize) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn ExIsManufacturingModeEnabled() -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn ExIsProcessorFeaturePresent(processorfeature : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ExIsManufacturingModeEnabled() -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn ExIsProcessorFeaturePresent(processorfeature : u32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn ExIsResourceAcquiredExclusiveLite(resource : *const super::super::Foundation:: ERESOURCE) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ExIsResourceAcquiredExclusiveLite(resource : *const super::super::Foundation:: ERESOURCE) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn ExIsResourceAcquiredSharedLite(resource : *const super::super::Foundation:: ERESOURCE) -> u32); -windows_targets::link!("ntoskrnl.exe" "system" fn ExIsSoftBoot() -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ExIsSoftBoot() -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn ExLocalTimeToSystemTime(localtime : *const i64, systemtime : *mut i64)); windows_targets::link!("ntoskrnl.exe" "system" fn ExNotifyCallback(callbackobject : *const core::ffi::c_void, argument1 : *const core::ffi::c_void, argument2 : *const core::ffi::c_void)); windows_targets::link!("ntoskrnl.exe" "system" fn ExQueryTimerResolution(maximumtime : *mut u32, minimumtime : *mut u32, currenttime : *mut u32)); @@ -284,28 +284,28 @@ windows_targets::link!("ntoskrnl.exe" "system" fn ExSetResourceOwnerPointer(reso #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn ExSetResourceOwnerPointerEx(resource : *mut super::super::Foundation:: ERESOURCE, ownerpointer : *const core::ffi::c_void, flags : u32)); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn ExSetTimer(timer : super::super::Foundation:: PEX_TIMER, duetime : i64, period : i64, parameters : *const _EXT_SET_PARAMETERS_V0) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn ExSetTimerResolution(desiredtime : u32, setresolution : super::super::super::Win32::Foundation:: BOOLEAN) -> u32); +windows_targets::link!("ntoskrnl.exe" "system" fn ExSetTimer(timer : super::super::Foundation:: PEX_TIMER, duetime : i64, period : i64, parameters : *const _EXT_SET_PARAMETERS_V0) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn ExSetTimerResolution(desiredtime : u32, setresolution : bool) -> u32); windows_targets::link!("ntoskrnl.exe" "system" fn ExSizeOfRundownProtectionCacheAware() -> usize); windows_targets::link!("ntoskrnl.exe" "system" fn ExSystemTimeToLocalTime(systemtime : *const i64, localtime : *mut i64)); windows_targets::link!("ntoskrnl.exe" "system" fn ExTryAcquireSpinLockExclusiveAtDpcLevel(spinlock : *mut i32) -> u32); windows_targets::link!("ntoskrnl.exe" "system" fn ExTryAcquireSpinLockSharedAtDpcLevel(spinlock : *mut i32) -> u32); windows_targets::link!("ntoskrnl.exe" "system" fn ExTryConvertSharedSpinLockExclusive(spinlock : *mut i32) -> u32); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn ExTryToAcquireFastMutex(fastmutex : *mut super::super::Foundation:: FAST_MUTEX) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ExTryToAcquireFastMutex(fastmutex : *mut super::super::Foundation:: FAST_MUTEX) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn ExUnregisterCallback(callbackregistration : *mut core::ffi::c_void)); windows_targets::link!("ntoskrnl.exe" "system" fn ExUuidCreate(uuid : *mut windows_sys::core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntoskrnl.exe" "system" fn ExVerifySuite(suitetype : super::super::super::Win32::System::Kernel:: SUITE_TYPE) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ExVerifySuite(suitetype : super::super::super::Win32::System::Kernel:: SUITE_TYPE) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn ExWaitForRundownProtectionRelease(runref : *mut EX_RUNDOWN_REF)); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn ExWaitForRundownProtectionReleaseCacheAware(runref : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE)); -windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsTotalDeviceFailure(status : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsTotalDeviceFailure(status : super::super::super::Win32::Foundation:: NTSTATUS) -> bool); windows_targets::link!("hal.dll" "system" fn HalAcquireDisplayOwnership(resetdisplayparameters : PHAL_RESET_DISPLAY_PARAMETERS)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_IscsiDisc", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("hal.dll" "system" fn HalAllocateAdapterChannel(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, wcb : *const WAIT_CONTEXT_BLOCK, numberofmapregisters : u32, executionroutine : super::super::Foundation:: DRIVER_CONTROL) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Storage_IscsiDisc")] -windows_targets::link!("hal.dll" "system" fn HalAllocateCommonBuffer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, length : u32, logicaladdress : *mut i64, cacheenabled : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut core::ffi::c_void); +windows_targets::link!("hal.dll" "system" fn HalAllocateCommonBuffer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, length : u32, logicaladdress : *mut i64, cacheenabled : bool) -> *mut core::ffi::c_void); #[cfg(feature = "Win32_Storage_IscsiDisc")] windows_targets::link!("hal.dll" "system" fn HalAllocateCrashDumpRegisters(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, numberofmapregisters : *mut u32) -> *mut core::ffi::c_void); #[cfg(feature = "Win32_System_SystemInformation")] @@ -321,19 +321,19 @@ windows_targets::link!("hal.dll" "system" fn HalDmaFreeCrashDumpRegistersEx(adap #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn HalExamineMBR(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectorsize : u32, mbrtypeidentifier : u32, buffer : *mut *mut core::ffi::c_void)); #[cfg(feature = "Win32_Storage_IscsiDisc")] -windows_targets::link!("hal.dll" "system" fn HalFreeCommonBuffer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, length : u32, logicaladdress : i64, virtualaddress : *const core::ffi::c_void, cacheenabled : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("hal.dll" "system" fn HalFreeCommonBuffer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, length : u32, logicaladdress : i64, virtualaddress : *const core::ffi::c_void, cacheenabled : bool)); windows_targets::link!("hal.dll" "system" fn HalFreeHardwareCounters(countersethandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Storage_IscsiDisc")] windows_targets::link!("hal.dll" "system" fn HalGetAdapter(devicedescription : *const DEVICE_DESCRIPTION, numberofmapregisters : *mut u32) -> *mut super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT); windows_targets::link!("hal.dll" "system" fn HalGetBusData(busdatatype : BUS_DATA_TYPE, busnumber : u32, slotnumber : u32, buffer : *mut core::ffi::c_void, length : u32) -> u32); windows_targets::link!("hal.dll" "system" fn HalGetBusDataByOffset(busdatatype : BUS_DATA_TYPE, busnumber : u32, slotnumber : u32, buffer : *mut core::ffi::c_void, offset : u32, length : u32) -> u32); windows_targets::link!("hal.dll" "system" fn HalGetInterruptVector(interfacetype : INTERFACE_TYPE, busnumber : u32, businterruptlevel : u32, businterruptvector : u32, irql : *mut u8, affinity : *mut usize) -> u32); -windows_targets::link!("hal.dll" "system" fn HalMakeBeep(frequency : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("hal.dll" "system" fn HalMakeBeep(frequency : u32) -> bool); #[cfg(feature = "Win32_Storage_IscsiDisc")] windows_targets::link!("hal.dll" "system" fn HalReadDmaCounter(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT) -> u32); windows_targets::link!("hal.dll" "system" fn HalSetBusData(busdatatype : BUS_DATA_TYPE, busnumber : u32, slotnumber : u32, buffer : *const core::ffi::c_void, length : u32) -> u32); windows_targets::link!("hal.dll" "system" fn HalSetBusDataByOffset(busdatatype : BUS_DATA_TYPE, busnumber : u32, slotnumber : u32, buffer : *const core::ffi::c_void, offset : u32, length : u32) -> u32); -windows_targets::link!("hal.dll" "system" fn HalTranslateBusAddress(interfacetype : INTERFACE_TYPE, busnumber : u32, busaddress : i64, addressspace : *mut u32, translatedaddress : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("hal.dll" "system" fn HalTranslateBusAddress(interfacetype : INTERFACE_TYPE, busnumber : u32, busaddress : i64, addressspace : *mut u32, translatedaddress : *mut i64) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn HvlRegisterWheaErrorNotification(callback : PHVL_WHEA_ERROR_NOTIFICATION) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn HvlUnregisterWheaErrorNotification(callback : PHVL_WHEA_ERROR_NOTIFICATION) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoAcquireCancelSpinLock(irql : *mut u8)); @@ -351,11 +351,11 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateController(controlle windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateDriverObjectExtension(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, clientidentificationaddress : *const core::ffi::c_void, driverobjectextensionsize : u32, driverobjectextension : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateErrorLogEntry(ioobject : *const core::ffi::c_void, entrysize : u8) -> *mut core::ffi::c_void); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateIrp(stacksize : i8, chargequota : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut super::super::Foundation:: IRP); +windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateIrp(stacksize : i8, chargequota : bool) -> *mut super::super::Foundation:: IRP); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateIrpEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, stacksize : i8, chargequota : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut super::super::Foundation:: IRP); +windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateIrpEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, stacksize : i8, chargequota : bool) -> *mut super::super::Foundation:: IRP); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateMdl(virtualaddress : *const core::ffi::c_void, length : u32, secondarybuffer : super::super::super::Win32::Foundation:: BOOLEAN, chargequota : super::super::super::Win32::Foundation:: BOOLEAN, irp : *mut super::super::Foundation:: IRP) -> *mut super::super::Foundation:: MDL); +windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateMdl(virtualaddress : *const core::ffi::c_void, length : u32, secondarybuffer : bool, chargequota : bool, irp : *mut super::super::Foundation:: IRP) -> *mut super::super::Foundation:: MDL); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateSfioStreamIdentifier(fileobject : *const super::super::Foundation:: FILE_OBJECT, length : u32, signature : *const core::ffi::c_void, streamidentifier : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -373,7 +373,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoAttachDeviceToDeviceStackSaf #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoBuildAsynchronousFsdRequest(majorfunction : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, buffer : *mut core::ffi::c_void, length : u32, startingoffset : *const i64, iostatusblock : *const super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> *mut super::super::Foundation:: IRP); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoBuildDeviceIoControlRequest(iocontrolcode : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32, internaldeviceiocontrol : super::super::super::Win32::Foundation:: BOOLEAN, event : *const super::super::Foundation:: KEVENT, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> *mut super::super::Foundation:: IRP); +windows_targets::link!("ntoskrnl.exe" "system" fn IoBuildDeviceIoControlRequest(iocontrolcode : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32, internaldeviceiocontrol : bool, event : *const super::super::Foundation:: KEVENT, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> *mut super::super::Foundation:: IRP); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn IoBuildPartialMdl(sourcemdl : *const super::super::Foundation:: MDL, targetmdl : *mut super::super::Foundation:: MDL, virtualaddress : *mut core::ffi::c_void, length : u32)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -381,26 +381,26 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoBuildSynchronousFsdRequest(m #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoCancelFileOpen(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, fileobject : *const super::super::Foundation:: FILE_OBJECT)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoCancelIrp(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoCancelIrp(irp : *const super::super::Foundation:: IRP) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckLinkShareAccess(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, linkshareaccess : *mut LINK_SHARE_ACCESS, ioshareaccessflags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckShareAccess(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, update : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckShareAccess(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, update : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckShareAccessEx(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, update : super::super::super::Win32::Foundation:: BOOLEAN, writepermission : *const super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckShareAccessEx(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, update : bool, writepermission : *const bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoCleanupIrp(irp : *mut super::super::Foundation:: IRP)); windows_targets::link!("ntoskrnl.exe" "system" fn IoClearActivityIdThread(originalid : *const windows_sys::core::GUID)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoClearIrpExtraCreateParameter(irp : *mut super::super::Foundation:: IRP)); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn IoConnectInterrupt(interruptobject : *mut super::super::Foundation:: PKINTERRUPT, serviceroutine : PKSERVICE_ROUTINE, servicecontext : *const core::ffi::c_void, spinlock : *const usize, vector : u32, irql : u8, synchronizeirql : u8, interruptmode : KINTERRUPT_MODE, sharevector : super::super::super::Win32::Foundation:: BOOLEAN, processorenablemask : usize, floatingsave : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoConnectInterrupt(interruptobject : *mut super::super::Foundation:: PKINTERRUPT, serviceroutine : PKSERVICE_ROUTINE, servicecontext : *const core::ffi::c_void, spinlock : *const usize, vector : u32, irql : u8, synchronizeirql : u8, interruptmode : KINTERRUPT_MODE, sharevector : bool, processorenablemask : usize, floatingsave : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoConnectInterruptEx(parameters : *mut IO_CONNECT_INTERRUPT_PARAMETERS) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateController(size : u32) -> *mut CONTROLLER_OBJECT); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateDevice(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, deviceextensionsize : u32, devicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, devicetype : u32, devicecharacteristics : u32, exclusive : super::super::super::Win32::Foundation:: BOOLEAN, deviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateDevice(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, deviceextensionsize : u32, devicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, devicetype : u32, devicecharacteristics : u32, exclusive : bool, deviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateDisk(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, disk : *const super::super::super::Win32::System::Ioctl:: CREATE_DISK) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] @@ -445,9 +445,9 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoDisconnectInterruptEx(parame #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoEnumerateKsrPersistentMemoryEx(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, physicaldeviceid : *const super::super::super::Win32::Foundation:: UNICODE_STRING, callback : PIO_PERSISTED_MEMORY_ENUMERATION_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Storage_IscsiDisc"))] -windows_targets::link!("hal.dll" "system" fn IoFlushAdapterBuffers(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, mdl : *const super::super::Foundation:: MDL, mapregisterbase : *const core::ffi::c_void, currentva : *const core::ffi::c_void, length : u32, writetodevice : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("hal.dll" "system" fn IoFlushAdapterBuffers(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, mdl : *const super::super::Foundation:: MDL, mapregisterbase : *const core::ffi::c_void, currentva : *const core::ffi::c_void, length : u32, writetodevice : bool) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoForwardIrpSynchronously(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoForwardIrpSynchronously(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP) -> bool); #[cfg(feature = "Win32_Storage_IscsiDisc")] windows_targets::link!("hal.dll" "system" fn IoFreeAdapterChannel(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -545,21 +545,21 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoInvalidateDeviceRelations(de #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoInvalidateDeviceState(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoIs32bitProcess(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoIs32bitProcess(irp : *const super::super::Foundation:: IRP) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoIsFileObjectIgnoringSharing(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoIsFileObjectIgnoringSharing(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoIsFileOriginRemote(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoIsFileOriginRemote(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoIsInitiator32bitProcess(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoIsInitiator32bitProcess(irp : *const super::super::Foundation:: IRP) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn IoIsValidIrpStatus(status : super::super::super::Win32::Foundation:: NTSTATUS) -> u32); -windows_targets::link!("ntoskrnl.exe" "system" fn IoIsWdmVersionAvailable(majorversion : u8, minorversion : u8) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoIsWdmVersionAvailable(majorversion : u8, minorversion : u8) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoMakeAssociatedIrp(irp : *const super::super::Foundation:: IRP, stacksize : i8) -> *mut super::super::Foundation:: IRP); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoMakeAssociatedIrpEx(irp : *const super::super::Foundation:: IRP, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, stacksize : i8) -> *mut super::super::Foundation:: IRP); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Storage_IscsiDisc"))] -windows_targets::link!("hal.dll" "system" fn IoMapTransfer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, mdl : *const super::super::Foundation:: MDL, mapregisterbase : *const core::ffi::c_void, currentva : *const core::ffi::c_void, length : *mut u32, writetodevice : super::super::super::Win32::Foundation:: BOOLEAN) -> i64); +windows_targets::link!("hal.dll" "system" fn IoMapTransfer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, mdl : *const super::super::Foundation:: MDL, mapregisterbase : *const core::ffi::c_void, currentva : *const core::ffi::c_void, length : *mut u32, writetodevice : bool) -> i64); windows_targets::link!("ntoskrnl.exe" "system" fn IoOpenDeviceInterfaceRegistryKey(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, desiredaccess : u32, deviceinterfaceregkey : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoOpenDeviceRegistryKey(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, devinstkeytype : u32, desiredaccess : u32, deviceregkey : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -583,11 +583,11 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoQueueWorkItemEx(ioworkitem : #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoRaiseHardError(irp : *const super::super::Foundation:: IRP, vpb : *const super::super::Foundation:: VPB, realdeviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn IoRaiseInformationalHardError(errorstatus : super::super::super::Win32::Foundation:: NTSTATUS, string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, thread : super::super::Foundation:: PKTHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoRaiseInformationalHardError(errorstatus : super::super::super::Win32::Foundation:: NTSTATUS, string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, thread : super::super::Foundation:: PKTHREAD) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoReadDiskSignature(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, bytespersector : u32, signature : *mut DISK_SIGNATURE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoReadPartitionTable(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectorsize : u32, returnrecognizedpartitions : super::super::super::Win32::Foundation:: BOOLEAN, partitionbuffer : *mut *mut super::super::super::Win32::System::Ioctl:: DRIVE_LAYOUT_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoReadPartitionTable(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectorsize : u32, returnrecognizedpartitions : bool, partitionbuffer : *mut *mut super::super::super::Win32::System::Ioctl:: DRIVE_LAYOUT_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoReadPartitionTableEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, drivelayout : *mut *mut super::super::super::Win32::System::Ioctl:: DRIVE_LAYOUT_INFORMATION_EX) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoRecordIoAttribution(opaquehandle : *mut core::ffi::c_void, attributioninformation : *const IO_ATTRIBUTION_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -619,15 +619,15 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoRemoveShareAccess(fileobject #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoReplacePartitionUnit(targetpdo : *const super::super::Foundation:: DEVICE_OBJECT, sparepdo : *const super::super::Foundation:: DEVICE_OBJECT, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoReportDetectedDevice(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, legacybustype : INTERFACE_TYPE, busnumber : u32, slotnumber : u32, resourcelist : *const CM_RESOURCE_LIST, resourcerequirements : *const IO_RESOURCE_REQUIREMENTS_LIST, resourceassigned : super::super::super::Win32::Foundation:: BOOLEAN, deviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoReportDetectedDevice(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, legacybustype : INTERFACE_TYPE, busnumber : u32, slotnumber : u32, resourcelist : *const CM_RESOURCE_LIST, resourcerequirements : *const IO_RESOURCE_REQUIREMENTS_LIST, resourceassigned : bool, deviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn IoReportInterruptActive(parameters : *const IO_REPORT_INTERRUPT_ACTIVE_STATE_PARAMETERS)); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn IoReportInterruptInactive(parameters : *const IO_REPORT_INTERRUPT_ACTIVE_STATE_PARAMETERS)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoReportResourceForDetection(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, driverlist : *const CM_RESOURCE_LIST, driverlistsize : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, devicelist : *const CM_RESOURCE_LIST, devicelistsize : u32, conflictdetected : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoReportResourceForDetection(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, driverlist : *const CM_RESOURCE_LIST, driverlistsize : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, devicelist : *const CM_RESOURCE_LIST, devicelistsize : u32, conflictdetected : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoReportResourceUsage(driverclassname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, driverobject : *const super::super::Foundation:: DRIVER_OBJECT, driverlist : *const CM_RESOURCE_LIST, driverlistsize : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, devicelist : *const CM_RESOURCE_LIST, devicelistsize : u32, overrideconflict : super::super::super::Win32::Foundation:: BOOLEAN, conflictdetected : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoReportResourceUsage(driverclassname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, driverobject : *const super::super::Foundation:: DRIVER_OBJECT, driverlist : *const CM_RESOURCE_LIST, driverlistsize : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, devicelist : *const CM_RESOURCE_LIST, devicelistsize : u32, overrideconflict : bool, conflictdetected : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoReportRootDevice(driverobject : *const super::super::Foundation:: DRIVER_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -648,15 +648,15 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoReuseIrp(irp : *mut super::s windows_targets::link!("ntoskrnl.exe" "system" fn IoSetActivityIdIrp(irp : *mut super::super::Foundation:: IRP, guid : *const windows_sys::core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoSetActivityIdThread(activityid : *const windows_sys::core::GUID) -> *mut windows_sys::core::GUID); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoSetCompletionRoutineEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP, completionroutine : super::super::Foundation:: PIO_COMPLETION_ROUTINE, context : *const core::ffi::c_void, invokeonsuccess : super::super::super::Win32::Foundation:: BOOLEAN, invokeonerror : super::super::super::Win32::Foundation:: BOOLEAN, invokeoncancel : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoSetCompletionRoutineEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP, completionroutine : super::super::Foundation:: PIO_COMPLETION_ROUTINE, context : *const core::ffi::c_void, invokeonsuccess : bool, invokeonerror : bool, invokeoncancel : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoSetDeviceInterfacePropertyData(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, propertykey : *const super::super::super::Win32::Foundation:: DEVPROPKEY, lcid : u32, flags : u32, r#type : u32, size : u32, data : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn IoSetDeviceInterfaceState(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, enable : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoSetDeviceInterfaceState(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, enable : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoSetDevicePropertyData(pdo : *const super::super::Foundation:: DEVICE_OBJECT, propertykey : *const super::super::super::Win32::Foundation:: DEVPROPKEY, lcid : u32, flags : u32, r#type : u32, size : u32, data : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoSetFileObjectIgnoreSharing(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoSetFileOrigin(fileobject : *const super::super::Foundation:: FILE_OBJECT, remote : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoSetFileOrigin(fileobject : *const super::super::Foundation:: FILE_OBJECT, remote : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoSetFsZeroingOffset(irp : *mut super::super::Foundation:: IRP, zeroingoffset : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -680,20 +680,20 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoSetPartitionInformationEx(de #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoSetShareAccess(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoSetShareAccessEx(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, writepermission : *const super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn IoSetShareAccessEx(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, writepermission : *const bool)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoSetStartIoAttributes(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, deferredstartio : super::super::super::Win32::Foundation:: BOOLEAN, noncancelable : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn IoSetStartIoAttributes(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, deferredstartio : bool, noncancelable : bool)); windows_targets::link!("ntoskrnl.exe" "system" fn IoSetSystemPartition(volumenamestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn IoSetThreadHardErrorMode(enableharderrors : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoSetThreadHardErrorMode(enableharderrors : bool) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoSetTopLevelIrp(irp : *const super::super::Foundation:: IRP)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoSizeOfIrpEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, stacksize : i8) -> u16); windows_targets::link!("ntoskrnl.exe" "system" fn IoSizeofWorkItem() -> u32); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoStartNextPacket(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, cancelable : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn IoStartNextPacket(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, cancelable : bool)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoStartNextPacketByKey(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, cancelable : super::super::super::Win32::Foundation:: BOOLEAN, key : u32)); +windows_targets::link!("ntoskrnl.exe" "system" fn IoStartNextPacketByKey(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, cancelable : bool, key : u32)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoStartPacket(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP, key : *const u32, cancelfunction : super::super::Foundation:: DRIVER_CANCEL)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -703,9 +703,9 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoStopTimer(deviceobject : *co #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoSynchronousCallDriver(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoTransferActivityId(activityid : *const windows_sys::core::GUID, relatedactivityid : *const windows_sys::core::GUID)); -windows_targets::link!("ntoskrnl.exe" "system" fn IoTranslateBusAddress(interfacetype : INTERFACE_TYPE, busnumber : u32, busaddress : i64, addressspace : *mut u32, translatedaddress : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoTranslateBusAddress(interfacetype : INTERFACE_TYPE, busnumber : u32, busaddress : i64, addressspace : *mut u32, translatedaddress : *mut i64) -> bool); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn IoTryQueueWorkItem(ioworkitem : super::super::Foundation:: PIO_WORKITEM, workerroutine : PIO_WORKITEM_ROUTINE_EX, queuetype : WORK_QUEUE_TYPE, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn IoTryQueueWorkItem(ioworkitem : super::super::Foundation:: PIO_WORKITEM, workerroutine : PIO_WORKITEM_ROUTINE_EX, queuetype : WORK_QUEUE_TYPE, context : *const core::ffi::c_void) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn IoUninitializeWorkItem(ioworkitem : super::super::Foundation:: PIO_WORKITEM)); windows_targets::link!("ntoskrnl.exe" "system" fn IoUnregisterBootDriverCallback(callbackhandle : *const core::ffi::c_void)); @@ -723,7 +723,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoUpdateShareAccess(fileobject #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn IoValidateDeviceIoControlAccess(irp : *const super::super::Foundation:: IRP, requiredaccess : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoVerifyPartitionTable(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, fixerrors : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoVerifyPartitionTable(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, fixerrors : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoVolumeDeviceNameToGuid(volumedevicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, guid : *mut windows_sys::core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoVolumeDeviceNameToGuidPath(volumedevicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, guidpath : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoVolumeDeviceToDosName(volumedeviceobject : *const core::ffi::c_void, dosname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -745,7 +745,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IoWMISetNotificationCallback(o windows_targets::link!("ntoskrnl.exe" "system" fn IoWMISetSingleInstance(datablockobject : *const core::ffi::c_void, instancename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, version : u32, valuebuffersize : u32, valuebuffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoWMISetSingleItem(datablockobject : *const core::ffi::c_void, instancename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, dataitemid : u32, version : u32, valuebuffersize : u32, valuebuffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn IoWMISuggestInstanceName(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, combinenames : super::super::super::Win32::Foundation:: BOOLEAN, suggestedinstancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn IoWMISuggestInstanceName(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, combinenames : bool, suggestedinstancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoWMIWriteEvent(wnodeeventitem : *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn IoWithinStackLimits(regionstart : usize, regionsize : usize) -> u32); windows_targets::link!("ntoskrnl.exe" "system" fn IoWriteErrorLogEntry(elentry : *const core::ffi::c_void)); @@ -761,7 +761,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn IofCompleteRequest(irp : *cons windows_targets::link!("ntoskrnl.exe" "system" fn KdChangeOption(option : KD_OPTION, inbufferbytes : u32, inbuffer : *const core::ffi::c_void, outbufferbytes : u32, outbuffer : *mut core::ffi::c_void, outbufferneeded : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn KdDisableDebugger() -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn KdEnableDebugger() -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn KdRefreshDebuggerNotPresent() -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KdRefreshDebuggerNotPresent() -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeAcquireGuardedMutex(mutex : *mut super::super::Foundation:: FAST_MUTEX)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -774,32 +774,32 @@ windows_targets::link!("ntoskrnl.exe" "system" fn KeAcquireInterruptSpinLock(int windows_targets::link!("ntoskrnl.exe" "system" fn KeAcquireSpinLockForDpc(spinlock : *mut usize) -> u8); #[cfg(feature = "Win32_System_Kernel")] windows_targets::link!("ntoskrnl.exe" "system" fn KeAddTriageDumpDataBlock(ktriagedumpdataarray : *mut KTRIAGE_DUMP_DATA_ARRAY, address : *const core::ffi::c_void, size : usize) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn KeAreAllApcsDisabled() -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn KeAreApcsDisabled() -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeAreAllApcsDisabled() -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn KeAreApcsDisabled() -> bool); #[cfg(feature = "Win32_System_Diagnostics_Debug")] windows_targets::link!("ntoskrnl.exe" "system" fn KeBugCheck(bugcheckcode : super::super::super::Win32::System::Diagnostics::Debug:: BUGCHECK_ERROR)); #[cfg(feature = "Win32_System_Diagnostics_Debug")] windows_targets::link!("ntoskrnl.exe" "system" fn KeBugCheckEx(bugcheckcode : super::super::super::Win32::System::Diagnostics::Debug:: BUGCHECK_ERROR, bugcheckparameter1 : usize, bugcheckparameter2 : usize, bugcheckparameter3 : usize, bugcheckparameter4 : usize)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeCancelTimer(param0 : *mut KTIMER) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeCancelTimer(param0 : *mut KTIMER) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeClearEvent(event : *mut super::super::Foundation:: KEVENT)); windows_targets::link!("ntoskrnl.exe" "system" fn KeConvertAuxiliaryCounterToPerformanceCounter(auxiliarycountervalue : u64, performancecountervalue : *mut u64, conversionerror : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn KeConvertPerformanceCounterToAuxiliaryCounter(performancecountervalue : u64, auxiliarycountervalue : *mut u64, conversionerror : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn KeDelayExecutionThread(waitmode : i8, alertable : super::super::super::Win32::Foundation:: BOOLEAN, interval : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn KeDelayExecutionThread(waitmode : i8, alertable : bool, interval : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterBoundCallback(handle : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterBugCheckCallback(callbackrecord : *mut KBUGCHECK_CALLBACK_RECORD) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterBugCheckCallback(callbackrecord : *mut KBUGCHECK_CALLBACK_RECORD) -> bool); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterBugCheckReasonCallback(callbackrecord : *mut KBUGCHECK_REASON_CALLBACK_RECORD) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterBugCheckReasonCallback(callbackrecord : *mut KBUGCHECK_REASON_CALLBACK_RECORD) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterNmiCallback(handle : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterProcessorChangeCallback(callbackhandle : *const core::ffi::c_void)); windows_targets::link!("ntoskrnl.exe" "system" fn KeEnterCriticalRegion()); windows_targets::link!("ntoskrnl.exe" "system" fn KeEnterGuardedRegion()); windows_targets::link!("ntoskrnl.exe" "system" fn KeExpandKernelStackAndCallout(callout : PEXPAND_STACK_CALLOUT, parameter : *const core::ffi::c_void, size : usize) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn KeExpandKernelStackAndCalloutEx(callout : PEXPAND_STACK_CALLOUT, parameter : *const core::ffi::c_void, size : usize, wait : super::super::super::Win32::Foundation:: BOOLEAN, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn KeExpandKernelStackAndCalloutEx(callout : PEXPAND_STACK_CALLOUT, parameter : *const core::ffi::c_void, size : usize, wait : bool, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn KeFlushIoBuffers(mdl : *const super::super::Foundation:: MDL, readoperation : super::super::super::Win32::Foundation:: BOOLEAN, dmaoperation : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn KeFlushIoBuffers(mdl : *const super::super::Foundation:: MDL, readoperation : bool, dmaoperation : bool)); windows_targets::link!("ntoskrnl.exe" "system" fn KeFlushQueuedDpcs()); windows_targets::link!("hal.dll" "system" fn KeFlushWriteBuffer()); windows_targets::link!("ntoskrnl.exe" "system" fn KeGetCurrentIrql() -> u8); @@ -817,7 +817,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeDeviceQueue(device #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeDpc(dpc : *mut super::super::Foundation:: KDPC, deferredroutine : super::super::Foundation:: PKDEFERRED_ROUTINE, deferredcontext : *const core::ffi::c_void)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeEvent(event : *mut super::super::Foundation:: KEVENT, r#type : super::super::super::Win32::System::Kernel:: EVENT_TYPE, state : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeEvent(event : *mut super::super::Foundation:: KEVENT, r#type : super::super::super::Win32::System::Kernel:: EVENT_TYPE, state : bool)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeGuardedMutex(mutex : *mut super::super::Foundation:: FAST_MUTEX)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -834,19 +834,19 @@ windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeTimerEx(timer : *m #[cfg(feature = "Win32_System_Kernel")] windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeTriageDumpDataArray(ktriagedumpdataarray : *mut KTRIAGE_DUMP_DATA_ARRAY, size : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeInsertByKeyDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, devicequeueentry : *mut KDEVICE_QUEUE_ENTRY, sortkey : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeInsertByKeyDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, devicequeueentry : *mut KDEVICE_QUEUE_ENTRY, sortkey : u32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeInsertDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, devicequeueentry : *mut KDEVICE_QUEUE_ENTRY) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeInsertDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, devicequeueentry : *mut KDEVICE_QUEUE_ENTRY) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeInsertQueueDpc(dpc : *mut super::super::Foundation:: KDPC, systemargument1 : *const core::ffi::c_void, systemargument2 : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn KeInvalidateAllCaches() -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeInsertQueueDpc(dpc : *mut super::super::Foundation:: KDPC, systemargument1 : *const core::ffi::c_void, systemargument2 : *const core::ffi::c_void) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn KeInvalidateAllCaches() -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn KeInvalidateRangeAllCaches(baseaddress : *const core::ffi::c_void, length : u32)); windows_targets::link!("ntoskrnl.exe" "system" fn KeIpiGenericCall(broadcastfunction : PKIPI_BROADCAST_WORKER, context : usize) -> usize); windows_targets::link!("ntoskrnl.exe" "system" fn KeIsExecutingDpc() -> u32); windows_targets::link!("ntoskrnl.exe" "system" fn KeLeaveCriticalRegion()); windows_targets::link!("ntoskrnl.exe" "system" fn KeLeaveGuardedRegion()); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KePulseEvent(event : *mut super::super::Foundation:: KEVENT, increment : i32, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); +windows_targets::link!("ntoskrnl.exe" "system" fn KePulseEvent(event : *mut super::super::Foundation:: KEVENT, increment : i32, wait : bool) -> i32); windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryActiveGroupCount() -> u16); windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryActiveProcessorCount(activeprocessors : *mut usize) -> u32); windows_targets::link!("ntoskrnl.exe" "system" fn KeQueryActiveProcessorCountEx(groupnumber : u16) -> u32); @@ -886,12 +886,12 @@ windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateMutex(mutex : *cons #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateSemaphore(semaphore : *const KSEMAPHORE) -> i32); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateTimer(timer : *const KTIMER) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateTimer(timer : *const KTIMER) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterBoundCallback(callbackroutine : PBOUND_CALLBACK) -> *mut core::ffi::c_void); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterBugCheckCallback(callbackrecord : *mut KBUGCHECK_CALLBACK_RECORD, callbackroutine : PKBUGCHECK_CALLBACK_ROUTINE, buffer : *const core::ffi::c_void, length : u32, component : *const u8) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterBugCheckCallback(callbackrecord : *mut KBUGCHECK_CALLBACK_RECORD, callbackroutine : PKBUGCHECK_CALLBACK_ROUTINE, buffer : *const core::ffi::c_void, length : u32, component : *const u8) -> bool); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterBugCheckReasonCallback(callbackrecord : *mut KBUGCHECK_REASON_CALLBACK_RECORD, callbackroutine : PKBUGCHECK_REASON_CALLBACK_ROUTINE, reason : KBUGCHECK_CALLBACK_REASON, component : *const u8) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterBugCheckReasonCallback(callbackrecord : *mut KBUGCHECK_REASON_CALLBACK_RECORD, callbackroutine : PKBUGCHECK_REASON_CALLBACK_ROUTINE, reason : KBUGCHECK_CALLBACK_REASON, component : *const u8) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterNmiCallback(callbackroutine : PNMI_CALLBACK, context : *const core::ffi::c_void) -> *mut core::ffi::c_void); windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterProcessorChangeCallback(callbackfunction : PPROCESSOR_CALLBACK_FUNCTION, callbackcontext : *const core::ffi::c_void, flags : u32) -> *mut core::ffi::c_void); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -904,9 +904,9 @@ windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseInStackQueuedSpinLock #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseInterruptSpinLock(interrupt : super::super::Foundation:: PKINTERRUPT, oldirql : u8)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseMutex(mutex : *mut super::super::Foundation:: KMUTANT, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); +windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseMutex(mutex : *mut super::super::Foundation:: KMUTANT, wait : bool) -> i32); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseSemaphore(semaphore : *mut KSEMAPHORE, increment : i32, adjustment : i32, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); +windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseSemaphore(semaphore : *mut KSEMAPHORE, increment : i32, adjustment : i32, wait : bool) -> i32); windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseSpinLockForDpc(spinlock : *mut usize, oldirql : u8)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveByKeyDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, sortkey : u32) -> *mut KDEVICE_QUEUE_ENTRY); @@ -915,11 +915,11 @@ windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveByKeyDeviceQueueIfBusy #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE) -> *mut KDEVICE_QUEUE_ENTRY); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveEntryDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, devicequeueentry : *mut KDEVICE_QUEUE_ENTRY) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveEntryDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, devicequeueentry : *mut KDEVICE_QUEUE_ENTRY) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueDpc(dpc : *mut super::super::Foundation:: KDPC) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueDpc(dpc : *mut super::super::Foundation:: KDPC) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueDpcEx(dpc : *mut super::super::Foundation:: KDPC, waitifactive : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueDpcEx(dpc : *mut super::super::Foundation:: KDPC, waitifactive : bool) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeResetEvent(event : *mut super::super::Foundation:: KEVENT) -> i32); #[cfg(feature = "Win32_System_Diagnostics_Debug")] @@ -933,9 +933,9 @@ windows_targets::link!("ntoskrnl.exe" "system" fn KeSaveExtendedProcessorState(m #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn KeSetBasePriorityThread(thread : super::super::Foundation:: PKTHREAD, increment : i32) -> i32); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeSetCoalescableTimer(timer : *mut KTIMER, duetime : i64, period : u32, tolerabledelay : u32, dpc : *const super::super::Foundation:: KDPC) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeSetCoalescableTimer(timer : *mut KTIMER, duetime : i64, period : u32, tolerabledelay : u32, dpc : *const super::super::Foundation:: KDPC) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeSetEvent(event : *mut super::super::Foundation:: KEVENT, increment : i32, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); +windows_targets::link!("ntoskrnl.exe" "system" fn KeSetEvent(event : *mut super::super::Foundation:: KEVENT, increment : i32, wait : bool) -> i32); windows_targets::link!("ntoskrnl.exe" "system" fn KeSetHardwareCounterConfiguration(counterarray : *const HARDWARE_COUNTER, count : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeSetImportanceDpc(dpc : *mut super::super::Foundation:: KDPC, importance : KDPC_IMPORTANCE)); @@ -950,20 +950,20 @@ windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTargetProcessorDpc(dpc : #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTargetProcessorDpcEx(dpc : *mut super::super::Foundation:: KDPC, procnumber : *const super::super::super::Win32::System::Kernel:: PROCESSOR_NUMBER) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTimer(timer : *mut KTIMER, duetime : i64, dpc : *const super::super::Foundation:: KDPC) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTimer(timer : *mut KTIMER, duetime : i64, dpc : *const super::super::Foundation:: KDPC) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTimerEx(timer : *mut KTIMER, duetime : i64, period : i32, dpc : *const super::super::Foundation:: KDPC) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTimerEx(timer : *mut KTIMER, duetime : i64, period : i32, dpc : *const super::super::Foundation:: KDPC) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn KeShouldYieldProcessor() -> u32); windows_targets::link!("hal.dll" "system" fn KeStallExecutionProcessor(microseconds : u32)); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn KeSynchronizeExecution(interrupt : super::super::Foundation:: PKINTERRUPT, synchronizeroutine : PKSYNCHRONIZE_ROUTINE, synchronizecontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn KeTestSpinLock(spinlock : *const usize) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeSynchronizeExecution(interrupt : super::super::Foundation:: PKINTERRUPT, synchronizeroutine : PKSYNCHRONIZE_ROUTINE, synchronizecontext : *const core::ffi::c_void) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn KeTestSpinLock(spinlock : *const usize) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeTryToAcquireGuardedMutex(mutex : *mut super::super::Foundation:: FAST_MUTEX) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn KeTryToAcquireSpinLockAtDpcLevel(spinlock : *mut usize) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn KeTryToAcquireGuardedMutex(mutex : *mut super::super::Foundation:: FAST_MUTEX) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn KeTryToAcquireSpinLockAtDpcLevel(spinlock : *mut usize) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntoskrnl.exe" "system" fn KeWaitForMultipleObjects(count : u32, object : *const *const core::ffi::c_void, waittype : super::super::super::Win32::System::Kernel:: WAIT_TYPE, waitreason : KWAIT_REASON, waitmode : i8, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *const i64, waitblockarray : *mut super::super::Foundation:: KWAIT_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn KeWaitForSingleObject(object : *const core::ffi::c_void, waitreason : KWAIT_REASON, waitmode : i8, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn KeWaitForMultipleObjects(count : u32, object : *const *const core::ffi::c_void, waittype : super::super::super::Win32::System::Kernel:: WAIT_TYPE, waitreason : KWAIT_REASON, waitmode : i8, alertable : bool, timeout : *const i64, waitblockarray : *mut super::super::Foundation:: KWAIT_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn KeWaitForSingleObject(object : *const core::ffi::c_void, waitreason : KWAIT_REASON, waitmode : i8, alertable : bool, timeout : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn KfRaiseIrql(newirql : u8) -> u8); windows_targets::link!("ntoskrnl.exe" "system" fn MmAddPhysicalMemory(startaddress : *const i64, numberofbytes : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn MmAddVerifierSpecialThunks(entryroutine : usize, thunkbuffer : *const core::ffi::c_void, thunkbuffersize : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -1012,15 +1012,15 @@ windows_targets::link!("ntoskrnl.exe" "system" fn MmGetPhysicalMemoryRangesEx(pa windows_targets::link!("ntoskrnl.exe" "system" fn MmGetPhysicalMemoryRangesEx2(partitionobject : *const core::ffi::c_void, flags : u32) -> *mut PHYSICAL_MEMORY_RANGE); windows_targets::link!("ntoskrnl.exe" "system" fn MmGetSystemRoutineAddress(systemroutinename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> *mut core::ffi::c_void); windows_targets::link!("ntoskrnl.exe" "system" fn MmGetVirtualForPhysical(physicaladdress : i64) -> *mut core::ffi::c_void); -windows_targets::link!("ntoskrnl.exe" "system" fn MmIsAddressValid(virtualaddress : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn MmIsAddressValid(virtualaddress : *const core::ffi::c_void) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn MmIsDriverSuspectForVerifier(driverobject : *const super::super::Foundation:: DRIVER_OBJECT) -> u32); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn MmIsDriverVerifying(driverobject : *const super::super::Foundation:: DRIVER_OBJECT) -> u32); windows_targets::link!("ntoskrnl.exe" "system" fn MmIsDriverVerifyingByAddress(addresswithinsection : *const core::ffi::c_void) -> u32); windows_targets::link!("ntoskrnl.exe" "system" fn MmIsIoSpaceActive(startaddress : i64, numberofbytes : usize) -> u32); -windows_targets::link!("ntoskrnl.exe" "system" fn MmIsNonPagedSystemAddressValid(virtualaddress : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn MmIsThisAnNtAsSystem() -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn MmIsNonPagedSystemAddressValid(virtualaddress : *const core::ffi::c_void) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn MmIsThisAnNtAsSystem() -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn MmIsVerifierEnabled(verifierflags : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn MmLockPagableDataSection(addresswithinsection : *const core::ffi::c_void) -> *mut core::ffi::c_void); windows_targets::link!("ntoskrnl.exe" "system" fn MmLockPagableSectionByHandle(imagesectionhandle : *const core::ffi::c_void)); @@ -1078,7 +1078,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn MmUnsecureVirtualMemory(secure windows_targets::link!("ntdll.dll" "system" fn NtAllocateLocallyUniqueId(luid : *mut super::super::super::Win32::Foundation:: LUID) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtCommitComplete(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtCommitEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn NtCommitTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtCommitTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntdll.dll" "system" fn NtCreateEnlistment(enlistmenthandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, transactionhandle : super::super::super::Win32::Foundation:: HANDLE, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, createoptions : u32, notificationmask : u32, enlistmentkey : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] @@ -1127,7 +1127,7 @@ windows_targets::link!("ntdll.dll" "system" fn NtRegisterProtocolAddressInformat windows_targets::link!("ntdll.dll" "system" fn NtRenameTransactionManager(logfilename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, existingtransactionmanagerguid : *const windows_sys::core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtRollbackComplete(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtRollbackEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn NtRollbackTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtRollbackTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtRollforwardTransactionManager(transactionmanagerhandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_SystemServices")] windows_targets::link!("ntdll.dll" "system" fn NtSetInformationEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, enlistmentinformationclass : super::super::super::Win32::System::SystemServices:: ENLISTMENT_INFORMATION_CLASS, enlistmentinformation : *const core::ffi::c_void, enlistmentinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -1144,7 +1144,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn ObDereferenceObjectDeferDelete windows_targets::link!("ntoskrnl.exe" "system" fn ObDereferenceObjectDeferDeleteWithTag(object : *const core::ffi::c_void, tag : u32)); windows_targets::link!("ntoskrnl.exe" "system" fn ObGetFilterVersion() -> u16); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntoskrnl.exe" "system" fn ObGetObjectSecurity(object : *const core::ffi::c_void, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, memoryallocated : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn ObGetObjectSecurity(object : *const core::ffi::c_void, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, memoryallocated : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectByHandle(handle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objecttype : super::super::Foundation:: POBJECT_TYPE, accessmode : i8, object : *mut *mut core::ffi::c_void, handleinformation : *mut OBJECT_HANDLE_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] @@ -1153,12 +1153,12 @@ windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectByHandleWithT windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectByPointer(object : *const core::ffi::c_void, desiredaccess : u32, objecttype : super::super::Foundation:: POBJECT_TYPE, accessmode : i8) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectByPointerWithTag(object : *const core::ffi::c_void, desiredaccess : u32, objecttype : super::super::Foundation:: POBJECT_TYPE, accessmode : i8, tag : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectSafe(object : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectSafeWithTag(object : *const core::ffi::c_void, tag : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectSafe(object : *const core::ffi::c_void) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectSafeWithTag(object : *const core::ffi::c_void, tag : u32) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn ObRegisterCallbacks(callbackregistration : *const OB_CALLBACK_REGISTRATION, registrationhandle : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntoskrnl.exe" "system" fn ObReleaseObjectSecurity(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, memoryallocated : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn ObReleaseObjectSecurity(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, memoryallocated : bool)); windows_targets::link!("ntoskrnl.exe" "system" fn ObUnRegisterCallbacks(registrationhandle : *const core::ffi::c_void)); windows_targets::link!("ntoskrnl.exe" "system" fn ObfDereferenceObject(object : *const core::ffi::c_void) -> isize); windows_targets::link!("ntoskrnl.exe" "system" fn ObfDereferenceObjectWithTag(object : *const core::ffi::c_void, tag : u32) -> isize); @@ -1216,7 +1216,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn PoFxRegisterCrashdumpDevice(ha #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn PoFxRegisterDevice(pdo : *const super::super::Foundation:: DEVICE_OBJECT, device : *const PO_FX_DEVICE_V1, handle : *mut super::super::Foundation:: POHANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn PoFxRegisterDripsWatchdogCallback(handle : super::super::Foundation:: POHANDLE, callback : PPO_FX_DRIPS_WATCHDOG_CALLBACK, includechilddevices : super::super::super::Win32::Foundation:: BOOLEAN, matchingdriverobject : *const super::super::Foundation:: DRIVER_OBJECT)); +windows_targets::link!("ntoskrnl.exe" "system" fn PoFxRegisterDripsWatchdogCallback(handle : super::super::Foundation:: POHANDLE, callback : PPO_FX_DRIPS_WATCHDOG_CALLBACK, includechilddevices : bool, matchingdriverobject : *const super::super::Foundation:: DRIVER_OBJECT)); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn PoFxReportDevicePoweredOn(handle : super::super::Foundation:: POHANDLE)); #[cfg(feature = "Wdk_Foundation")] @@ -1224,7 +1224,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetComponentLatency(handle #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetComponentResidency(handle : super::super::Foundation:: POHANDLE, component : u32, residency : u64)); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetComponentWake(handle : super::super::Foundation:: POHANDLE, component : u32, wakehint : super::super::super::Win32::Foundation:: BOOLEAN)); +windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetComponentWake(handle : super::super::Foundation:: POHANDLE, component : u32, wakehint : bool)); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetDeviceIdleTimeout(handle : super::super::Foundation:: POHANDLE, idletimeout : u64)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Power"))] @@ -1234,10 +1234,10 @@ windows_targets::link!("ntoskrnl.exe" "system" fn PoFxStartDevicePowerManagement #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn PoFxUnregisterDevice(handle : super::super::Foundation:: POHANDLE)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn PoGetSystemWake(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn PoGetThermalRequestSupport(thermalrequest : *const core::ffi::c_void, r#type : PO_THERMAL_REQUEST_TYPE) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn PoGetSystemWake(irp : *const super::super::Foundation:: IRP) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn PoGetThermalRequestSupport(thermalrequest : *const core::ffi::c_void, r#type : PO_THERMAL_REQUEST_TYPE) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -windows_targets::link!("ntoskrnl.exe" "system" fn PoQueryWatchdogTime(pdo : *const super::super::Foundation:: DEVICE_OBJECT, secondsremaining : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn PoQueryWatchdogTime(pdo : *const super::super::Foundation:: DEVICE_OBJECT, secondsremaining : *mut u32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn PoRegisterDeviceForIdleDetection(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, conservationidletime : u32, performanceidletime : u32, state : super::super::super::Win32::System::Power:: DEVICE_POWER_STATE) -> *mut u32); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -1256,7 +1256,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn PoSetSystemState(flags : u32)) windows_targets::link!("ntoskrnl.exe" "system" fn PoSetSystemWake(irp : *mut super::super::Foundation:: IRP)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] windows_targets::link!("ntoskrnl.exe" "system" fn PoSetSystemWakeDevice(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT)); -windows_targets::link!("ntoskrnl.exe" "system" fn PoSetThermalActiveCooling(thermalrequest : *mut core::ffi::c_void, engaged : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn PoSetThermalActiveCooling(thermalrequest : *mut core::ffi::c_void, engaged : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn PoSetThermalPassiveCooling(thermalrequest : *mut core::ffi::c_void, throttle : u8) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn PoStartDeviceBusy(idlepointer : *mut u32)); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -1330,15 +1330,15 @@ windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadProcessId(thread : windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadProperty(thread : super::super::Foundation:: PETHREAD, key : usize, flags : u32) -> *mut core::ffi::c_void); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn PsGetThreadServerSilo(thread : super::super::Foundation:: PETHREAD) -> super::super::Foundation:: PESILO); -windows_targets::link!("ntoskrnl.exe" "system" fn PsGetVersion(majorversion : *mut u32, minorversion : *mut u32, buildnumber : *mut u32, csdversion : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn PsGetVersion(majorversion : *mut u32, minorversion : *mut u32, buildnumber : *mut u32, csdversion : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn PsInsertPermanentSiloContext(silo : super::super::Foundation:: PESILO, contextslot : u32, silocontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn PsInsertSiloContext(silo : super::super::Foundation:: PESILO, contextslot : u32, silocontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn PsIsCurrentThreadInServerSilo() -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn PsIsCurrentThreadPrefetching() -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn PsIsCurrentThreadInServerSilo() -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn PsIsCurrentThreadPrefetching() -> bool); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn PsIsHostSilo(silo : super::super::Foundation:: PESILO) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn PsIsHostSilo(silo : super::super::Foundation:: PESILO) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn PsMakeSiloContextPermanent(silo : super::super::Foundation:: PESILO, contextslot : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] @@ -1356,13 +1356,13 @@ windows_targets::link!("ntoskrnl.exe" "system" fn PsRemoveSiloContext(silo : sup windows_targets::link!("ntoskrnl.exe" "system" fn PsReplaceSiloContext(silo : super::super::Foundation:: PESILO, contextslot : u32, newsilocontext : *const core::ffi::c_void, oldsilocontext : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn PsRevertToUserMultipleGroupAffinityThread(affinitytoken : super::super::Foundation:: PAFFINITY_TOKEN)); -windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutine(notifyroutine : PCREATE_PROCESS_NOTIFY_ROUTINE, remove : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutine(notifyroutine : PCREATE_PROCESS_NOTIFY_ROUTINE, remove : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power", feature = "Win32_System_WindowsProgramming"))] -windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutineEx(notifyroutine : PCREATE_PROCESS_NOTIFY_ROUTINE_EX, remove : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutineEx2(notifytype : PSCREATEPROCESSNOTIFYTYPE, notifyinformation : *const core::ffi::c_void, remove : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutineEx(notifyroutine : PCREATE_PROCESS_NOTIFY_ROUTINE_EX, remove : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutineEx2(notifytype : PSCREATEPROCESSNOTIFYTYPE, notifyinformation : *const core::ffi::c_void, remove : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateThreadNotifyRoutine(notifyroutine : PCREATE_THREAD_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateThreadNotifyRoutineEx(notifytype : PSCREATETHREADNOTIFYTYPE, notifyinformation : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCurrentThreadPrefetching(prefetching : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCurrentThreadPrefetching(prefetching : bool) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn PsSetLoadImageNotifyRoutine(notifyroutine : PLOAD_IMAGE_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn PsSetLoadImageNotifyRoutineEx(notifyroutine : PLOAD_IMAGE_NOTIFY_ROUTINE, flags : usize) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_SystemInformation"))] @@ -1377,16 +1377,16 @@ windows_targets::link!("ntoskrnl.exe" "system" fn PsUnregisterSiloMonitor(monito windows_targets::link!("ntoskrnl.exe" "system" fn PsWrapApcWow64Thread(apccontext : *mut *mut core::ffi::c_void, apcroutine : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("pshed.dll" "system" fn PshedAllocateMemory(size : u32) -> *mut core::ffi::c_void); windows_targets::link!("pshed.dll" "system" fn PshedFreeMemory(address : *const core::ffi::c_void)); -windows_targets::link!("pshed.dll" "system" fn PshedIsSystemWheaEnabled() -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("pshed.dll" "system" fn PshedIsSystemWheaEnabled() -> bool); #[cfg(feature = "Win32_System_Diagnostics_Debug")] windows_targets::link!("pshed.dll" "system" fn PshedRegisterPlugin(packet : *mut WHEA_PSHED_PLUGIN_REGISTRATION_PACKET_V2) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Diagnostics_Debug")] -windows_targets::link!("pshed.dll" "system" fn PshedSynchronizeExecution(errorsource : *const super::super::super::Win32::System::Diagnostics::Debug:: WHEA_ERROR_SOURCE_DESCRIPTOR, synchronizeroutine : PKSYNCHRONIZE_ROUTINE, synchronizecontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("pshed.dll" "system" fn PshedSynchronizeExecution(errorsource : *const super::super::super::Win32::System::Diagnostics::Debug:: WHEA_ERROR_SOURCE_DESCRIPTOR, synchronizeroutine : PKSYNCHRONIZE_ROUTINE, synchronizecontext : *const core::ffi::c_void) -> bool); windows_targets::link!("pshed.dll" "system" fn PshedUnregisterPlugin(pluginhandle : *const core::ffi::c_void)); windows_targets::link!("ntdll.dll" "system" fn RtlAppendUnicodeStringToString(destination : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, source : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlAppendUnicodeToString(destination : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, source : windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn RtlAreBitsClear(bitmapheader : *const RTL_BITMAP, startingindex : u32, length : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlAreBitsSet(bitmapheader : *const RTL_BITMAP, startingindex : u32, length : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlAreBitsClear(bitmapheader : *const RTL_BITMAP, startingindex : u32, length : u32) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlAreBitsSet(bitmapheader : *const RTL_BITMAP, startingindex : u32, length : u32) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlAssert(voidfailedassertion : *const core::ffi::c_void, voidfilename : *const core::ffi::c_void, linenumber : u32, mutablemessage : windows_sys::core::PCSTR)); windows_targets::link!("ntdll.dll" "system" fn RtlCheckRegistryKey(relativeto : u32, path : windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlClearAllBits(bitmapheader : *const RTL_BITMAP)); @@ -1395,24 +1395,24 @@ windows_targets::link!("ntdll.dll" "system" fn RtlClearBits(bitmapheader : *cons windows_targets::link!("ntdll.dll" "system" fn RtlCmDecodeMemIoResource(descriptor : *const CM_PARTIAL_RESOURCE_DESCRIPTOR, start : *mut u64) -> u64); windows_targets::link!("ntdll.dll" "system" fn RtlCmEncodeMemIoResource(descriptor : *const CM_PARTIAL_RESOURCE_DESCRIPTOR, r#type : u8, length : u64, start : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlCompareString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); -windows_targets::link!("ntdll.dll" "system" fn RtlCompareUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); -windows_targets::link!("ntdll.dll" "system" fn RtlCompareUnicodeStrings(string1 : *const u16, string1length : usize, string2 : *const u16, string2length : usize, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); -windows_targets::link!("ntdll.dll" "system" fn RtlContractHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlCompareString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : bool) -> i32); +windows_targets::link!("ntdll.dll" "system" fn RtlCompareUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool) -> i32); +windows_targets::link!("ntdll.dll" "system" fn RtlCompareUnicodeStrings(string1 : *const u16, string1length : usize, string2 : *const u16, string2length : usize, caseinsensitive : bool) -> i32); +windows_targets::link!("ntdll.dll" "system" fn RtlContractHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlCopyBitMap(source : *const RTL_BITMAP, destination : *const RTL_BITMAP, targetbit : u32)); #[cfg(feature = "Win32_System_Kernel")] windows_targets::link!("ntdll.dll" "system" fn RtlCopyString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING)); windows_targets::link!("ntdll.dll" "system" fn RtlCopyUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING)); -windows_targets::link!("ntdll.dll" "system" fn RtlCreateHashTable(hashtable : *mut *mut RTL_DYNAMIC_HASH_TABLE, shift : u32, flags : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlCreateHashTableEx(hashtable : *mut *mut RTL_DYNAMIC_HASH_TABLE, initialsize : u32, shift : u32, flags : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlCreateHashTable(hashtable : *mut *mut RTL_DYNAMIC_HASH_TABLE, shift : u32, flags : u32) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlCreateHashTableEx(hashtable : *mut *mut RTL_DYNAMIC_HASH_TABLE, initialsize : u32, shift : u32, flags : u32) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlCreateRegistryKey(relativeto : u32, path : windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn RtlCreateSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, revision : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntdll.dll" "system" fn RtlDelete(links : *const super::super::Foundation:: RTL_SPLAY_LINKS) -> *mut super::super::Foundation:: RTL_SPLAY_LINKS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntdll.dll" "system" fn RtlDeleteElementGenericTable(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlDeleteElementGenericTableAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlDeleteElementGenericTable(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlDeleteElementGenericTableAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlDeleteElementGenericTableAvlEx(table : *const RTL_AVL_TABLE, nodeorparent : *const core::ffi::c_void)); windows_targets::link!("ntdll.dll" "system" fn RtlDeleteHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE)); #[cfg(feature = "Wdk_Foundation")] @@ -1428,20 +1428,20 @@ windows_targets::link!("ntdll.dll" "system" fn RtlEndWeakEnumerationHashTable(ha #[cfg(feature = "Win32_System_Kernel")] windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> *mut RTL_DYNAMIC_HASH_TABLE_ENTRY); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTable(table : *const RTL_GENERIC_TABLE, restart : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut core::ffi::c_void); -windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTableAvl(table : *const RTL_AVL_TABLE, restart : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut core::ffi::c_void); +windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTable(table : *const RTL_GENERIC_TABLE, restart : bool) -> *mut core::ffi::c_void); +windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTableAvl(table : *const RTL_AVL_TABLE, restart : bool) -> *mut core::ffi::c_void); windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTableLikeADirectory(table : *const RTL_AVL_TABLE, matchfunction : PRTL_AVL_MATCH_FUNCTION, matchdata : *const core::ffi::c_void, nextflag : u32, restartkey : *mut *mut core::ffi::c_void, deletecount : *mut u32, buffer : *const core::ffi::c_void) -> *mut core::ffi::c_void); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTableWithoutSplaying(table : *const RTL_GENERIC_TABLE, restartkey : *mut *mut core::ffi::c_void) -> *mut core::ffi::c_void); windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTableWithoutSplayingAvl(table : *const RTL_AVL_TABLE, restartkey : *mut *mut core::ffi::c_void) -> *mut core::ffi::c_void); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlEqualString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlEqualUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlExpandHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlEqualString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : bool) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlEqualUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlExpandHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlExtractBitMap(source : *const RTL_BITMAP, destination : *const RTL_BITMAP, targetbit : u32, numberofbits : u32)); windows_targets::link!("ntdll.dll" "system" fn RtlFindClearBits(bitmapheader : *const RTL_BITMAP, numbertofind : u32, hintindex : u32) -> u32); windows_targets::link!("ntdll.dll" "system" fn RtlFindClearBitsAndSet(bitmapheader : *const RTL_BITMAP, numbertofind : u32, hintindex : u32) -> u32); -windows_targets::link!("ntdll.dll" "system" fn RtlFindClearRuns(bitmapheader : *const RTL_BITMAP, runarray : *mut RTL_BITMAP_RUN, sizeofrunarray : u32, locatelongestruns : super::super::super::Win32::Foundation:: BOOLEAN) -> u32); +windows_targets::link!("ntdll.dll" "system" fn RtlFindClearRuns(bitmapheader : *const RTL_BITMAP, runarray : *mut RTL_BITMAP_RUN, sizeofrunarray : u32, locatelongestruns : bool) -> u32); windows_targets::link!("ntdll.dll" "system" fn RtlFindClosestEncodableLength(sourcelength : u64, targetlength : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn RtlFindFirstRunClear(bitmapheader : *const RTL_BITMAP, startingindex : *mut u32) -> u32); windows_targets::link!("ntdll.dll" "system" fn RtlFindLastBackwardRunClear(bitmapheader : *const RTL_BITMAP, fromindex : u32, startingrunindex : *mut u32) -> u32); @@ -1465,49 +1465,49 @@ windows_targets::link!("ntdll.dll" "system" fn RtlGetEnabledExtendedFeatures(fea #[cfg(feature = "Win32_System_Kernel")] windows_targets::link!("ntdll.dll" "system" fn RtlGetNextEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, context : *const RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> *mut RTL_DYNAMIC_HASH_TABLE_ENTRY); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlGetNtProductType(ntproducttype : *mut super::super::super::Win32::System::Kernel:: NT_PRODUCT_TYPE) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlGetNtProductType(ntproducttype : *mut super::super::super::Win32::System::Kernel:: NT_PRODUCT_TYPE) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlGetNtSystemRoot() -> windows_sys::core::PCWSTR); windows_targets::link!("ntdll.dll" "system" fn RtlGetPersistedStateLocation(sourceid : windows_sys::core::PCWSTR, customvalue : windows_sys::core::PCWSTR, defaultpath : windows_sys::core::PCWSTR, statelocationtype : STATE_LOCATION_TYPE, targetpath : windows_sys::core::PWSTR, bufferlengthin : u32, bufferlengthout : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlGetSuiteMask() -> u32); #[cfg(feature = "Win32_System_SystemInformation")] windows_targets::link!("ntdll.dll" "system" fn RtlGetVersion(lpversioninformation : *mut super::super::super::Win32::System::SystemInformation:: OSVERSIONINFOW) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn RtlHashUnicodeString(string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN, hashalgorithm : u32, hashvalue : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlHashUnicodeString(string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool, hashalgorithm : u32, hashvalue : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlInitEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlInitEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlInitStrongEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlInitStrongEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool); #[cfg(feature = "Win32_System_Kernel")] windows_targets::link!("ntdll.dll" "system" fn RtlInitUTF8String(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const i8)); #[cfg(feature = "Win32_System_Kernel")] windows_targets::link!("ntdll.dll" "system" fn RtlInitUTF8StringEx(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const i8) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlInitWeakEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlInitWeakEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlInitializeBitMap(bitmapheader : *mut RTL_BITMAP, bitmapbuffer : *const u32, sizeofbitmap : u32)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntdll.dll" "system" fn RtlInitializeGenericTable(table : *mut RTL_GENERIC_TABLE, compareroutine : PRTL_GENERIC_COMPARE_ROUTINE, allocateroutine : PRTL_GENERIC_ALLOCATE_ROUTINE, freeroutine : PRTL_GENERIC_FREE_ROUTINE, tablecontext : *const core::ffi::c_void)); windows_targets::link!("ntdll.dll" "system" fn RtlInitializeGenericTableAvl(table : *mut RTL_AVL_TABLE, compareroutine : PRTL_AVL_COMPARE_ROUTINE, allocateroutine : PRTL_AVL_ALLOCATE_ROUTINE, freeroutine : PRTL_AVL_FREE_ROUTINE, tablecontext : *const core::ffi::c_void)); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTable(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> *mut core::ffi::c_void); -windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> *mut core::ffi::c_void); +windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTable(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut bool) -> *mut core::ffi::c_void); +windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut bool) -> *mut core::ffi::c_void); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableFull(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut super::super::super::Win32::Foundation:: BOOLEAN, nodeorparent : *const core::ffi::c_void, searchresult : TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void); -windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableFullAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut super::super::super::Win32::Foundation:: BOOLEAN, nodeorparent : *const core::ffi::c_void, searchresult : TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void); +windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableFull(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut bool, nodeorparent : *const core::ffi::c_void, searchresult : TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void); +windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableFullAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut bool, nodeorparent : *const core::ffi::c_void, searchresult : TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlInsertEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, entry : *const RTL_DYNAMIC_HASH_TABLE_ENTRY, signature : usize, context : *mut RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlInsertEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, entry : *const RTL_DYNAMIC_HASH_TABLE_ENTRY, signature : usize, context : *mut RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlInt64ToUnicodeString(value : u64, base : u32, string : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlIntegerToUnicodeString(value : u32, base : u32, string : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlIoDecodeMemIoResource(descriptor : *const IO_RESOURCE_DESCRIPTOR, alignment : *mut u64, minimumaddress : *mut u64, maximumaddress : *mut u64) -> u64); windows_targets::link!("ntdll.dll" "system" fn RtlIoEncodeMemIoResource(descriptor : *const IO_RESOURCE_DESCRIPTOR, r#type : u8, length : u64, alignment : u64, minimumaddress : u64, maximumaddress : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlIsApiSetImplemented(apisetname : windows_sys::core::PCSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] -windows_targets::link!("ntdll.dll" "system" fn RtlIsGenericTableEmpty(table : *const RTL_GENERIC_TABLE) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlIsGenericTableEmptyAvl(table : *const RTL_AVL_TABLE) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlIsMultiSessionSku() -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlIsMultiUsersInSessionSku() -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsNtDdiVersionAvailable(version : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsServicePackVersionInstalled(version : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlIsStateSeparationEnabled() -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlIsUntrustedObject(handle : super::super::super::Win32::Foundation:: HANDLE, object : *const core::ffi::c_void, untrustedobject : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlIsGenericTableEmpty(table : *const RTL_GENERIC_TABLE) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlIsGenericTableEmptyAvl(table : *const RTL_AVL_TABLE) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlIsMultiSessionSku() -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlIsMultiUsersInSessionSku() -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsNtDdiVersionAvailable(version : u32) -> bool); +windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsServicePackVersionInstalled(version : u32) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlIsStateSeparationEnabled() -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlIsUntrustedObject(handle : super::super::super::Win32::Foundation:: HANDLE, object : *const core::ffi::c_void, untrustedobject : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn RtlLengthSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> u32); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -1522,7 +1522,7 @@ windows_targets::link!("ntdll.dll" "system" fn RtlLookupFirstMatchingElementGene #[cfg(feature = "Win32_Security")] windows_targets::link!("ntdll.dll" "system" fn RtlMapGenericMask(accessmask : *mut u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING)); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn RtlNormalizeSecurityDescriptor(securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, newsecuritydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newsecuritydescriptorlength : *mut u32, checkonly : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlNormalizeSecurityDescriptor(securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, newsecuritydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newsecuritydescriptorlength : *mut u32, checkonly : bool) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] windows_targets::link!("ntdll.dll" "system" fn RtlNumberGenericTableElements(table : *const RTL_GENERIC_TABLE) -> u32); windows_targets::link!("ntdll.dll" "system" fn RtlNumberGenericTableElementsAvl(table : *const RTL_AVL_TABLE) -> u32); @@ -1532,7 +1532,7 @@ windows_targets::link!("ntdll.dll" "system" fn RtlNumberOfSetBits(bitmapheader : windows_targets::link!("ntdll.dll" "system" fn RtlNumberOfSetBitsInRange(bitmapheader : *const RTL_BITMAP, startingindex : u32, length : u32) -> u32); windows_targets::link!("ntdll.dll" "system" fn RtlNumberOfSetBitsUlongPtr(target : usize) -> u32); windows_targets::link!("ntoskrnl.exe" "system" fn RtlPrefetchMemoryNonTemporal(source : *const core::ffi::c_void, length : usize)); -windows_targets::link!("ntdll.dll" "system" fn RtlPrefixUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlPrefixUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlQueryRegistryValueWithFallback(primaryhandle : super::super::super::Win32::Foundation:: HANDLE, fallbackhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, valuelength : u32, valuetype : *mut u32, valuedata : *mut core::ffi::c_void, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlQueryRegistryValues(relativeto : u32, path : windows_sys::core::PCWSTR, querytable : *mut RTL_QUERY_REGISTRY_TABLE, context : *const core::ffi::c_void, environment : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlQueryValidationRunlevel(componentname : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> u32); @@ -1541,7 +1541,7 @@ windows_targets::link!("ntdll.dll" "system" fn RtlRealPredecessor(links : *const #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntdll.dll" "system" fn RtlRealSuccessor(links : *const super::super::Foundation:: RTL_SPLAY_LINKS) -> *mut super::super::Foundation:: RTL_SPLAY_LINKS); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlRemoveEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, entry : *const RTL_DYNAMIC_HASH_TABLE_ENTRY, context : *mut RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlRemoveEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, entry : *const RTL_DYNAMIC_HASH_TABLE_ENTRY, context : *mut RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> bool); #[cfg(feature = "Win32_System_Threading")] windows_targets::link!("ntdll.dll" "system" fn RtlRunOnceBeginInitialize(runonce : *mut super::super::super::Win32::System::Threading:: INIT_ONCE, flags : u32, context : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Threading")] @@ -1554,7 +1554,7 @@ windows_targets::link!("ntdll.dll" "system" fn RtlSetAllBits(bitmapheader : *con windows_targets::link!("ntdll.dll" "system" fn RtlSetBit(bitmapheader : *const RTL_BITMAP, bitnumber : u32)); windows_targets::link!("ntdll.dll" "system" fn RtlSetBits(bitmapheader : *const RTL_BITMAP, startingindex : u32, numbertoset : u32)); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn RtlSetDaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, daclpresent : super::super::super::Win32::Foundation:: BOOLEAN, dacl : *const super::super::super::Win32::Security:: ACL, dacldefaulted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlSetDaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, daclpresent : bool, dacl : *const super::super::super::Win32::Security:: ACL, dacldefaulted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_SystemInformation")] windows_targets::link!("ntoskrnl.exe" "system" fn RtlSetSystemGlobalData(dataid : super::super::super::Win32::System::SystemInformation:: RTL_SYSTEM_GLOBAL_DATA_ID, buffer : *const core::ffi::c_void, size : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] @@ -1566,27 +1566,27 @@ windows_targets::link!("ntdll.dll" "system" fn RtlStronglyEnumerateEntryHashTabl windows_targets::link!("ntdll.dll" "system" fn RtlSubtreePredecessor(links : *const super::super::Foundation:: RTL_SPLAY_LINKS) -> *mut super::super::Foundation:: RTL_SPLAY_LINKS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntdll.dll" "system" fn RtlSubtreeSuccessor(links : *const super::super::Foundation:: RTL_SPLAY_LINKS) -> *mut super::super::Foundation:: RTL_SPLAY_LINKS); -windows_targets::link!("ntoskrnl.exe" "system" fn RtlSuffixUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlTestBit(bitmapheader : *const RTL_BITMAP, bitnumber : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); -windows_targets::link!("ntdll.dll" "system" fn RtlTimeFieldsToTime(timefields : *const TIME_FIELDS, time : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn RtlSuffixUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlTestBit(bitmapheader : *const RTL_BITMAP, bitnumber : u32) -> bool); +windows_targets::link!("ntdll.dll" "system" fn RtlTimeFieldsToTime(timefields : *const TIME_FIELDS, time : *mut i64) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlTimeToTimeFields(time : *const i64, timefields : *mut TIME_FIELDS)); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlUTF8StringToUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlUTF8StringToUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlUTF8ToUnicodeN(unicodestringdestination : windows_sys::core::PWSTR, unicodestringmaxbytecount : u32, unicodestringactualbytecount : *mut u32, utf8stringsource : windows_sys::core::PCSTR, utf8stringbytecount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn RtlUnicodeStringToInt64(string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, base : u32, number : *mut i64, endpointer : *mut windows_sys::core::PWSTR) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToInteger(string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, base : u32, value : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToUTF8String(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToUTF8String(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeToUTF8N(utf8stringdestination : windows_sys::core::PSTR, utf8stringmaxbytecount : u32, utf8stringactualbytecount : *mut u32, unicodestringsource : *const u16, unicodestringbytecount : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeChar(sourcecharacter : u16) -> u16); -windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlUpperChar(character : i8) -> i8); #[cfg(feature = "Win32_System_Kernel")] windows_targets::link!("ntdll.dll" "system" fn RtlUpperString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING)); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn RtlValidRelativeSecurityDescriptor(securitydescriptorinput : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, requiredinformation : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlValidRelativeSecurityDescriptor(securitydescriptorinput : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, requiredinformation : u32) -> bool); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntdll.dll" "system" fn RtlValidSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlValidSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool); #[cfg(feature = "Win32_System_SystemInformation")] windows_targets::link!("ntdll.dll" "system" fn RtlVerifyVersionInfo(versioninfo : *const super::super::super::Win32::System::SystemInformation:: OSVERSIONINFOEXW, typemask : u32, conditionmask : u64) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn RtlVolumeDeviceToDosName(volumedeviceobject : *const core::ffi::c_void, dosname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -1598,11 +1598,11 @@ windows_targets::link!("ntdll.dll" "system" fn RtlWriteRegistryValue(relativeto windows_targets::link!("ntdll.dll" "system" fn RtlxAnsiStringToUnicodeSize(ansistring : *const super::super::super::Win32::System::Kernel:: STRING) -> u32); windows_targets::link!("ntdll.dll" "system" fn RtlxUnicodeStringToAnsiSize(unicodestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> u32); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheck(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, subjectcontextlocked : super::super::super::Win32::Foundation:: BOOLEAN, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheck(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, subjectcontextlocked : bool, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAssignSecurity(parentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, explicitdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, isdirectoryobject : super::super::super::Win32::Foundation:: BOOLEAN, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, pooltype : super::super::Foundation:: POOL_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAssignSecurity(parentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, explicitdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, isdirectoryobject : bool, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, pooltype : super::super::Foundation:: POOL_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -windows_targets::link!("ntoskrnl.exe" "system" fn SeAssignSecurityEx(parentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, explicitdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, objecttype : *const windows_sys::core::GUID, isdirectoryobject : super::super::super::Win32::Foundation:: BOOLEAN, autoinheritflags : u32, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, pooltype : super::super::Foundation:: POOL_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn SeAssignSecurityEx(parentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, explicitdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, objecttype : *const windows_sys::core::GUID, isdirectoryobject : bool, autoinheritflags : u32, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, pooltype : super::super::Foundation:: POOL_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntoskrnl.exe" "system" fn SeCaptureSubjectContext(subjectcontext : *mut super::super::Foundation:: SECURITY_SUBJECT_CONTEXT)); #[cfg(feature = "Win32_Security")] @@ -1619,29 +1619,29 @@ windows_targets::link!("ntoskrnl.exe" "system" fn SeReleaseSubjectContext(subjec windows_targets::link!("ntoskrnl.exe" "system" fn SeReportSecurityEvent(flags : u32, sourcename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, usersid : super::super::super::Win32::Security:: PSID, auditparameters : *const super::super::super::Win32::Security::Authentication::Identity:: SE_ADT_PARAMETER_ARRAY) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_Security_Authentication_Identity")] windows_targets::link!("ntoskrnl.exe" "system" fn SeSetAuditParameter(auditparameters : *mut super::super::super::Win32::Security::Authentication::Identity:: SE_ADT_PARAMETER_ARRAY, r#type : super::super::super::Win32::Security::Authentication::Identity:: SE_ADT_PARAMETER_TYPE, index : u32, data : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn SeSinglePrivilegeCheck(privilegevalue : super::super::super::Win32::Foundation:: LUID, previousmode : i8) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeSinglePrivilegeCheck(privilegevalue : super::super::super::Win32::Foundation:: LUID, previousmode : i8) -> bool); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntoskrnl.exe" "system" fn SeUnlockSubjectContext(subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT)); windows_targets::link!("ntoskrnl.exe" "system" fn SeUnregisterImageVerificationCallback(callbackhandle : *const core::ffi::c_void)); #[cfg(feature = "Win32_Security")] -windows_targets::link!("ntoskrnl.exe" "system" fn SeValidSecurityDescriptor(length : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn SeValidSecurityDescriptor(length : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn TmCommitComplete(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn TmCommitEnlistment(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn TmCommitTransaction(transaction : *const super::super::Foundation:: KTRANSACTION, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn TmCommitTransaction(transaction : *const super::super::Foundation:: KTRANSACTION, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntoskrnl.exe" "system" fn TmCreateEnlistment(enlistmenthandle : *mut super::super::super::Win32::Foundation:: HANDLE, previousmode : i8, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, resourcemanager : *const isize, transaction : *const super::super::Foundation:: KTRANSACTION, createoptions : u32, notificationmask : u32, enlistmentkey : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn TmDereferenceEnlistmentKey(enlistment : *const super::super::Foundation:: KENLISTMENT, lastreference : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn TmDereferenceEnlistmentKey(enlistment : *const super::super::Foundation:: KENLISTMENT, lastreference : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn TmEnableCallbacks(resourcemanager : *const super::super::Foundation:: KRESOURCEMANAGER, callbackroutine : PTM_RM_NOTIFICATION, rmkey : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn TmGetTransactionId(transaction : *const super::super::Foundation:: KTRANSACTION, transactionid : *mut windows_sys::core::GUID)); windows_targets::link!("ntoskrnl.exe" "system" fn TmInitializeTransactionManager(transactionmanager : *const isize, logfilename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, tmid : *const windows_sys::core::GUID, createoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn TmIsTransactionActive(transaction : *const super::super::Foundation:: KTRANSACTION) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn TmIsTransactionActive(transaction : *const super::super::Foundation:: KTRANSACTION) -> bool); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn TmPrePrepareComplete(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] @@ -1672,7 +1672,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn TmRollbackComplete(enlistment #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn TmRollbackEnlistment(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] -windows_targets::link!("ntoskrnl.exe" "system" fn TmRollbackTransaction(transaction : *const super::super::Foundation:: KTRANSACTION, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntoskrnl.exe" "system" fn TmRollbackTransaction(transaction : *const super::super::Foundation:: KTRANSACTION, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] windows_targets::link!("ntoskrnl.exe" "system" fn TmSinglePhaseReject(enlistment : *const super::super::Foundation:: KENLISTMENT, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_Foundation")] @@ -1692,9 +1692,9 @@ windows_targets::link!("ntoskrnl.exe" "system" fn WheaConfigureErrorSource(sourc windows_targets::link!("ntoskrnl.exe" "system" fn WheaCreateHwErrorReportDeviceDriver(errorsourceid : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> *mut core::ffi::c_void); #[cfg(feature = "Win32_System_Diagnostics_Debug")] windows_targets::link!("ntoskrnl.exe" "system" fn WheaErrorSourceGetState(errorsourceid : u32) -> super::super::super::Win32::System::Diagnostics::Debug:: WHEA_ERROR_SOURCE_STATE); -windows_targets::link!("ntoskrnl.exe" "system" fn WheaGetNotifyAllOfflinesPolicy() -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn WheaGetNotifyAllOfflinesPolicy() -> bool); #[cfg(feature = "Win32_System_Diagnostics_Debug")] -windows_targets::link!("ntoskrnl.exe" "system" fn WheaHighIrqlLogSelEventHandlerRegister(handler : PFN_WHEA_HIGH_IRQL_LOG_SEL_EVENT_HANDLER, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn WheaHighIrqlLogSelEventHandlerRegister(handler : PFN_WHEA_HIGH_IRQL_LOG_SEL_EVENT_HANDLER, context : *const core::ffi::c_void) -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn WheaHighIrqlLogSelEventHandlerUnregister()); windows_targets::link!("ntoskrnl.exe" "system" fn WheaHwErrorReportAbandonDeviceDriver(errorhandle : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Diagnostics_Debug")] @@ -1702,7 +1702,7 @@ windows_targets::link!("ntoskrnl.exe" "system" fn WheaHwErrorReportSetSectionNam windows_targets::link!("ntoskrnl.exe" "system" fn WheaHwErrorReportSetSeverityDeviceDriver(errorhandle : *const core::ffi::c_void, errorseverity : WHEA_ERROR_SEVERITY) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn WheaHwErrorReportSubmitDeviceDriver(errorhandle : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn WheaInitializeRecordHeader(header : *mut WHEA_ERROR_RECORD_HEADER) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntoskrnl.exe" "system" fn WheaIsCriticalState() -> super::super::super::Win32::Foundation:: BOOLEAN); +windows_targets::link!("ntoskrnl.exe" "system" fn WheaIsCriticalState() -> bool); windows_targets::link!("ntoskrnl.exe" "system" fn WheaLogInternalEvent(entry : *const WHEA_EVENT_LOG_ENTRY)); windows_targets::link!("ntoskrnl.exe" "system" fn WheaRegisterInUsePageOfflineNotification(callback : PFN_IN_USE_PAGE_OFFLINE_NOTIFY, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntoskrnl.exe" "system" fn WheaRemoveErrorSource(errorsourceid : u32)); @@ -1719,7 +1719,7 @@ windows_targets::link!("ntdll.dll" "system" fn ZwAllocateLocallyUniqueId(luid : windows_targets::link!("ntdll.dll" "system" fn ZwClose(handle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwCommitComplete(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwCommitEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn ZwCommitTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwCommitTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] windows_targets::link!("ntdll.dll" "system" fn ZwCreateEnlistment(enlistmenthandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, resourcemanagerhandle : super::super::super::Win32::Foundation:: HANDLE, transactionhandle : super::super::super::Win32::Foundation:: HANDLE, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, createoptions : u32, notificationmask : u32, enlistmentkey : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] @@ -1785,7 +1785,7 @@ windows_targets::link!("ntdll.dll" "system" fn ZwRegisterProtocolAddressInformat windows_targets::link!("ntdll.dll" "system" fn ZwRenameTransactionManager(logfilename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, existingtransactionmanagerguid : *const windows_sys::core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwRollbackComplete(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwRollbackEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn ZwRollbackTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwRollbackTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwRollforwardTransactionManager(transactionmanagerhandle : super::super::super::Win32::Foundation:: HANDLE, tmvirtualclock : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_SystemServices")] windows_targets::link!("ntdll.dll" "system" fn ZwSetInformationEnlistment(enlistmenthandle : super::super::super::Win32::Foundation:: HANDLE, enlistmentinformationclass : super::super::super::Win32::System::SystemServices:: ENLISTMENT_INFORMATION_CLASS, enlistmentinformation : *const core::ffi::c_void, enlistmentinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); @@ -2153,8 +2153,8 @@ pub struct BOOTDISK_INFORMATION_EX { pub SystemDeviceSignature: u32, pub BootDeviceGuid: windows_sys::core::GUID, pub SystemDeviceGuid: windows_sys::core::GUID, - pub BootDeviceIsGpt: super::super::super::Win32::Foundation::BOOLEAN, - pub SystemDeviceIsGpt: super::super::super::Win32::Foundation::BOOLEAN, + pub BootDeviceIsGpt: bool, + pub SystemDeviceIsGpt: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2701,8 +2701,8 @@ pub struct CONFIGURATION_INFORMATION { pub ScsiPortCount: u32, pub SerialCount: u32, pub ParallelCount: u32, - pub AtDiskPrimaryAddressClaimed: super::super::super::Win32::Foundation::BOOLEAN, - pub AtDiskSecondaryAddressClaimed: super::super::super::Win32::Foundation::BOOLEAN, + pub AtDiskPrimaryAddressClaimed: bool, + pub AtDiskSecondaryAddressClaimed: bool, pub Version: u32, pub MediumChangerCount: u32, } @@ -2847,7 +2847,7 @@ pub struct D3COLD_AUX_POWER_AND_TIMING_INTERFACE { } pub type D3COLD_LAST_TRANSITION_STATUS = i32; pub type D3COLD_REQUEST_AUX_POWER = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type D3COLD_REQUEST_CORE_POWER_RAIL = Option; +pub type D3COLD_REQUEST_CORE_POWER_RAIL = Option; pub type D3COLD_REQUEST_PERST_DELAY = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy)] @@ -2900,7 +2900,7 @@ pub struct DEBUGGING_DEVICE_IN_USE_INFORMATION { #[derive(Clone, Copy)] pub struct DEBUG_DEVICE_ADDRESS { pub Type: u8, - pub Valid: super::super::super::Win32::Foundation::BOOLEAN, + pub Valid: bool, pub Anonymous: DEBUG_DEVICE_ADDRESS_0, pub TranslatedAddress: *mut u8, pub Length: u32, @@ -2929,8 +2929,8 @@ pub struct DEBUG_DEVICE_DESCRIPTOR { pub SubClass: u8, pub ProgIf: u8, pub Anonymous: DEBUG_DEVICE_DESCRIPTOR_0, - pub Initialized: super::super::super::Win32::Foundation::BOOLEAN, - pub Configured: super::super::super::Win32::Foundation::BOOLEAN, + pub Initialized: bool, + pub Configured: bool, pub BaseAddress: [DEBUG_DEVICE_ADDRESS; 6], pub Memory: DEBUG_MEMORY_REQUIREMENTS, pub Dbg2TableIndex: u32, @@ -2969,16 +2969,16 @@ pub struct DEBUG_MEMORY_REQUIREMENTS { pub MaxEnd: i64, pub VirtualAddress: *mut core::ffi::c_void, pub Length: u32, - pub Cached: super::super::super::Win32::Foundation::BOOLEAN, - pub Aligned: super::super::super::Win32::Foundation::BOOLEAN, + pub Cached: bool, + pub Aligned: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct DEBUG_TRANSPORT_DATA { pub HwContextSize: u32, pub SharedVisibleDataSize: u32, - pub UseSerialFraming: super::super::super::Win32::Foundation::BOOLEAN, - pub ValidUSBCoreId: super::super::super::Win32::Foundation::BOOLEAN, + pub UseSerialFraming: bool, + pub ValidUSBCoreId: bool, pub USBCoreId: u8, } pub const DEFAULT_DEVICE_DRIVER_CREATOR_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x57217c8d_5e66_44fb_8033_9b74cacedf5b); @@ -3027,14 +3027,14 @@ pub type DEVICE_CHANGE_COMPLETE_CALLBACK = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type ENABLE_VIRTUALIZATION = Option super::super::super::Win32::Foundation::NTSTATUS>; pub const ERROR_LOG_LIMIT_SIZE: u32 = 240u32; pub const ERROR_MAJOR_REVISION_SAL_03_00: u32 = 0u32; pub const ERROR_MEMORY_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe429faf2_3cb7_11d4_bca7_0080c73c8881); @@ -3759,7 +3759,7 @@ pub const ExternalFault: FAULT_INFORMATION_ARM64_TYPE = 3i32; #[derive(Clone, Copy)] pub struct FAULT_INFORMATION { pub Type: FAULT_INFORMATION_ARCH, - pub IsStage1: super::super::super::Win32::Foundation::BOOLEAN, + pub IsStage1: bool, pub Anonymous: FAULT_INFORMATION_0, } #[repr(C)] @@ -3907,7 +3907,7 @@ pub struct FILE_FS_VOLUME_INFORMATION { pub VolumeCreationTime: i64, pub VolumeSerialNumber: u32, pub VolumeLabelLength: u32, - pub SupportsObjects: super::super::super::Win32::Foundation::BOOLEAN, + pub SupportsObjects: bool, pub VolumeLabel: [u16; 1], } #[repr(C)] @@ -3932,12 +3932,12 @@ pub struct FILE_IO_PRIORITY_HINT_INFORMATION { #[derive(Clone, Copy)] pub struct FILE_IO_PRIORITY_HINT_INFORMATION_EX { pub PriorityHint: super::super::Foundation::IO_PRIORITY_HINT, - pub BoostOutstanding: super::super::super::Win32::Foundation::BOOLEAN, + pub BoostOutstanding: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct FILE_IS_REMOTE_DEVICE_INFORMATION { - pub IsRemote: super::super::super::Win32::Foundation::BOOLEAN, + pub IsRemote: bool, } pub const FILE_LONG_ALIGNMENT: u32 = 3u32; #[repr(C)] @@ -3986,8 +3986,8 @@ pub const FILE_REMOVABLE_MEDIA: u32 = 1u32; pub struct FILE_SFIO_RESERVE_INFORMATION { pub RequestsPerPeriod: u32, pub Period: u32, - pub RetryFailures: super::super::super::Win32::Foundation::BOOLEAN, - pub Discardable: super::super::super::Win32::Foundation::BOOLEAN, + pub RetryFailures: bool, + pub Discardable: bool, pub RequestSize: u32, pub NumOutstandingRequests: u32, } @@ -4006,10 +4006,10 @@ pub struct FILE_STANDARD_INFORMATION_EX { pub AllocationSize: i64, pub EndOfFile: i64, pub NumberOfLinks: u32, - pub DeletePending: super::super::super::Win32::Foundation::BOOLEAN, - pub Directory: super::super::super::Win32::Foundation::BOOLEAN, - pub AlternateStream: super::super::super::Win32::Foundation::BOOLEAN, - pub MetadataAttribute: super::super::super::Win32::Foundation::BOOLEAN, + pub DeletePending: bool, + pub Directory: bool, + pub AlternateStream: bool, + pub MetadataAttribute: bool, } pub const FILE_USE_FILE_POINTER_POSITION: u32 = 4294967294u32; #[repr(C)] @@ -4101,8 +4101,8 @@ pub const FPB_VECTOR_SIZE_SUPPORTED_4KBITS: u32 = 4u32; pub const FPB_VECTOR_SIZE_SUPPORTED_512BITS: u32 = 1u32; pub const FPB_VECTOR_SIZE_SUPPORTED_8KBITS: u32 = 5u32; pub type FPGA_BUS_SCAN = Option; -pub type FPGA_CONTROL_CONFIG_SPACE = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type FPGA_CONTROL_ERROR_REPORTING = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type FPGA_CONTROL_CONFIG_SPACE = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type FPGA_CONTROL_ERROR_REPORTING = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy)] pub struct FPGA_CONTROL_INTERFACE { @@ -4116,7 +4116,7 @@ pub struct FPGA_CONTROL_INTERFACE { pub ControlConfigSpace: PFPGA_CONTROL_CONFIG_SPACE, pub ControlErrorReporting: PFPGA_CONTROL_ERROR_REPORTING, } -pub type FPGA_CONTROL_LINK = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type FPGA_CONTROL_LINK = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type FREE_FUNCTION = Option; #[repr(C)] #[derive(Clone, Copy)] @@ -4158,9 +4158,9 @@ pub const GENPROC_PROCISA_X86: u32 = 0u32; pub const GENPROC_PROCTYPE_ARM: u32 = 2u32; pub const GENPROC_PROCTYPE_IPF: u32 = 1u32; pub const GENPROC_PROCTYPE_XPF: u32 = 0u32; -pub type GET_D3COLD_CAPABILITY = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type GET_D3COLD_CAPABILITY = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type GET_D3COLD_LAST_TRANSITION_STATUS = Option; -pub type GET_DEVICE_RESET_STATUS = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type GET_DEVICE_RESET_STATUS = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type GET_DMA_ADAPTER = Option *mut DMA_ADAPTER>; #[cfg(feature = "Win32_System_Power")] @@ -4321,7 +4321,7 @@ pub const HASH_STRING_ALGORITHM_INVALID: u32 = 4294967295u32; pub const HASH_STRING_ALGORITHM_X65599: u32 = 1u32; pub const HIGH_LEVEL: u32 = 31u32; pub const HIGH_PRIORITY: u32 = 31u32; -pub type HVL_WHEA_ERROR_NOTIFICATION = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type HVL_WHEA_ERROR_NOTIFICATION = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy)] pub struct HWPROFILE_CHANGE_NOTIFICATION { @@ -4593,7 +4593,7 @@ pub struct IOMMU_DMA_RESERVED_REGION { pub RegionNext: *mut IOMMU_DMA_RESERVED_REGION, pub Base: u64, pub NumberOfPages: usize, - pub ShouldMap: super::super::super::Win32::Foundation::BOOLEAN, + pub ShouldMap: bool, } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type IOMMU_DOMAIN_ATTACH_DEVICE = Option super::super::super::Win32::Foundation::NTSTATUS>; @@ -4602,7 +4602,7 @@ pub type IOMMU_DOMAIN_ATTACH_DEVICE_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] -pub type IOMMU_DOMAIN_CREATE = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type IOMMU_DOMAIN_CREATE = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] pub type IOMMU_DOMAIN_CREATE_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] @@ -4614,7 +4614,7 @@ pub type IOMMU_DOMAIN_DETACH_DEVICE_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] -pub type IOMMU_FLUSH_DOMAIN_VA_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type IOMMU_FLUSH_DOMAIN_VA_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type IOMMU_FREE_RESERVED_LOGICAL_ADDRESS_RANGE = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy)] @@ -4687,9 +4687,9 @@ pub type IOMMU_REGISTER_INTERFACE_STATE_CHANGE_CALLBACK = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type IOMMU_SET_DEVICE_FAULT_REPORTING = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type IOMMU_SET_DEVICE_FAULT_REPORTING = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] -pub type IOMMU_SET_DEVICE_FAULT_REPORTING_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type IOMMU_SET_DEVICE_FAULT_REPORTING_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] pub type IOMMU_UNMAP_IDENTITY_RANGE = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] @@ -4745,8 +4745,8 @@ pub struct IO_CONNECT_INTERRUPT_FULLY_SPECIFIED_PARAMETERS { pub ServiceContext: *mut core::ffi::c_void, pub SpinLock: *mut usize, pub SynchronizeIrql: u8, - pub FloatingSave: super::super::super::Win32::Foundation::BOOLEAN, - pub ShareVector: super::super::super::Win32::Foundation::BOOLEAN, + pub FloatingSave: bool, + pub ShareVector: bool, pub Vector: u32, pub Irql: u8, pub InterruptMode: KINTERRUPT_MODE, @@ -4763,7 +4763,7 @@ pub struct IO_CONNECT_INTERRUPT_LINE_BASED_PARAMETERS { pub ServiceContext: *mut core::ffi::c_void, pub SpinLock: *mut usize, pub SynchronizeIrql: u8, - pub FloatingSave: super::super::super::Win32::Foundation::BOOLEAN, + pub FloatingSave: bool, } #[repr(C)] #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -4775,7 +4775,7 @@ pub struct IO_CONNECT_INTERRUPT_MESSAGE_BASED_PARAMETERS { pub ServiceContext: *mut core::ffi::c_void, pub SpinLock: *mut usize, pub SynchronizeIrql: u8, - pub FloatingSave: super::super::super::Win32::Foundation::BOOLEAN, + pub FloatingSave: bool, pub FallBackServiceRoutine: PKSERVICE_ROUTINE, } #[repr(C)] @@ -4963,8 +4963,8 @@ pub struct IO_REMOVE_LOCK { #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[derive(Clone, Copy)] pub struct IO_REMOVE_LOCK_COMMON_BLOCK { - pub Removed: super::super::super::Win32::Foundation::BOOLEAN, - pub Reserved: [super::super::super::Win32::Foundation::BOOLEAN; 3], + pub Removed: bool, + pub Reserved: [bool; 3], pub IoCount: i32, pub RemoveEvent: super::super::Foundation::KEVENT, } @@ -5156,7 +5156,7 @@ pub const IO_SERIAL_INCREMENT: u32 = 2u32; #[derive(Clone, Copy)] pub struct IO_SESSION_CONNECT_INFO { pub SessionId: u32, - pub LocalSession: super::super::super::Win32::Foundation::BOOLEAN, + pub LocalSession: bool, } pub type IO_SESSION_EVENT = i32; pub const IO_SESSION_MAX_PAYLOAD_SIZE: i32 = 256i32; @@ -5171,7 +5171,7 @@ pub const IO_SESSION_STATE_DISCONNECT_EVENT: u32 = 8u32; pub struct IO_SESSION_STATE_INFORMATION { pub SessionId: u32, pub SessionState: IO_SESSION_STATE, - pub LocalSession: super::super::super::Win32::Foundation::BOOLEAN, + pub LocalSession: bool, } pub const IO_SESSION_STATE_LOGOFF_EVENT: u32 = 32u32; pub const IO_SESSION_STATE_LOGON_EVENT: u32 = 16u32; @@ -5467,7 +5467,7 @@ pub struct KAPC { pub SystemArgument2: *mut core::ffi::c_void, pub ApcStateIndex: i8, pub ApcMode: i8, - pub Inserted: super::super::super::Win32::Foundation::BOOLEAN, + pub Inserted: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -5582,7 +5582,7 @@ pub type KDEFERRED_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type KMESSAGE_SERVICE_ROUTINE = Option bool>; pub type KPROFILE_SOURCE = i32; #[repr(C)] #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -5792,7 +5792,7 @@ pub struct KSEMAPHORE { pub Header: super::super::Foundation::DISPATCHER_HEADER, pub Limit: i32, } -pub type KSERVICE_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type KSERVICE_ROUTINE = Option bool>; #[repr(C)] #[derive(Clone, Copy)] pub struct KSPIN_LOCK_QUEUE { @@ -5800,7 +5800,7 @@ pub struct KSPIN_LOCK_QUEUE { pub Lock: *mut usize, } pub type KSTART_ROUTINE = Option; -pub type KSYNCHRONIZE_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type KSYNCHRONIZE_ROUTINE = Option bool>; #[repr(C)] #[derive(Clone, Copy)] pub struct KSYSTEM_TIME { @@ -5855,12 +5855,12 @@ pub struct KUSER_SHARED_DATA { pub TimeZoneBiasStamp: i32, pub NtBuildNumber: u32, pub NtProductType: super::super::super::Win32::System::Kernel::NT_PRODUCT_TYPE, - pub ProductTypeIsValid: super::super::super::Win32::Foundation::BOOLEAN, - pub Reserved0: [super::super::super::Win32::Foundation::BOOLEAN; 1], + pub ProductTypeIsValid: bool, + pub Reserved0: [bool; 1], pub NativeProcessorArchitecture: u16, pub NtMajorVersion: u32, pub NtMinorVersion: u32, - pub ProcessorFeatures: [super::super::super::Win32::Foundation::BOOLEAN; 64], + pub ProcessorFeatures: [bool; 64], pub Reserved1: u32, pub Reserved3: u32, pub TimeSlip: u32, @@ -5868,7 +5868,7 @@ pub struct KUSER_SHARED_DATA { pub BootId: u32, pub SystemExpirationDate: i64, pub SuiteMask: u32, - pub KdDebuggerEnabled: super::super::super::Win32::Foundation::BOOLEAN, + pub KdDebuggerEnabled: bool, pub Anonymous1: KUSER_SHARED_DATA_0, pub CyclesPerYield: u16, pub ActiveConsoleId: u32, @@ -5876,7 +5876,7 @@ pub struct KUSER_SHARED_DATA { pub ComPlusPackage: u32, pub LastSystemRITEventTickCount: u32, pub NumberOfPhysicalPages: u32, - pub SafeBootMode: super::super::super::Win32::Foundation::BOOLEAN, + pub SafeBootMode: bool, pub Anonymous2: KUSER_SHARED_DATA_1, pub Reserved12: [u8; 2], pub Anonymous3: KUSER_SHARED_DATA_2, @@ -6104,13 +6104,13 @@ pub struct MAILSLOT_CREATE_PARAMETERS { pub MailslotQuota: u32, pub MaximumMessageSize: u32, pub ReadTimeout: i64, - pub TimeoutSpecified: super::super::super::Win32::Foundation::BOOLEAN, + pub TimeoutSpecified: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct MAP_REGISTER_ENTRY { pub MapRegister: *mut core::ffi::c_void, - pub WriteToDevice: super::super::super::Win32::Foundation::BOOLEAN, + pub WriteToDevice: bool, } pub const MAXIMUM_DEBUG_BARS: u32 = 6u32; pub const MAXIMUM_FILENAME_LENGTH: u32 = 256u32; @@ -6470,10 +6470,10 @@ pub struct NAMED_PIPE_CREATE_PARAMETERS { pub InboundQuota: u32, pub OutboundQuota: u32, pub DefaultTimeout: i64, - pub TimeoutSpecified: super::super::super::Win32::Foundation::BOOLEAN, + pub TimeoutSpecified: bool, } pub const NEC98x86: ALTERNATIVE_ARCHITECTURE_TYPE = 1i32; -pub type NMI_CALLBACK = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type NMI_CALLBACK = Option bool>; pub const NMI_NOTIFY_TYPE_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5bad89ff_b7e6_42c9_814a_cf2485d6e98a); pub const NMI_SECTION_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe71254e7_c1b9_4940_ab76_909703a4320f); #[repr(C)] @@ -6487,7 +6487,7 @@ pub union NPEM_CAPABILITY_STANDARD { pub struct NPEM_CAPABILITY_STANDARD_0 { pub _bitfield: u32, } -pub type NPEM_CONTROL_ENABLE_DISABLE = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type NPEM_CONTROL_ENABLE_DISABLE = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy)] pub struct NPEM_CONTROL_INTERFACE { @@ -6506,7 +6506,7 @@ pub const NPEM_CONTROL_INTERFACE_VERSION1: u32 = 1u32; pub const NPEM_CONTROL_INTERFACE_VERSION2: u32 = 2u32; pub type NPEM_CONTROL_QUERY_CONTROL = Option u32>; pub type NPEM_CONTROL_QUERY_STANDARD_CAPABILITIES = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type NPEM_CONTROL_SET_STANDARD_CONTROL = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type NPEM_CONTROL_SET_STANDARD_CONTROL = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type NPEM_CONTROL_STANDARD_CONTROL_BIT = i32; #[cfg(feature = "Win32_Security")] pub type NTFS_DEREF_EXPORTED_SECURITY_DESCRIPTOR = Option; @@ -6707,9 +6707,9 @@ pub type PALLOCATE_ADAPTER_CHANNEL = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PALLOCATE_COMMON_BUFFER = Option *mut core::ffi::c_void>; +pub type PALLOCATE_COMMON_BUFFER = Option *mut core::ffi::c_void>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PALLOCATE_COMMON_BUFFER_EX = Option *mut core::ffi::c_void>; +pub type PALLOCATE_COMMON_BUFFER_EX = Option *mut core::ffi::c_void>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PALLOCATE_COMMON_BUFFER_VECTOR = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -6728,14 +6728,14 @@ pub type PBOUND_CALLBACK = Option BOUND_CALLBACK_ #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PBUILD_MDL_FROM_SCATTER_GATHER_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PBUILD_SCATTER_GATHER_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PBUILD_SCATTER_GATHER_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PBUILD_SCATTER_GATHER_LIST_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PBUILD_SCATTER_GATHER_LIST_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PCALCULATE_SCATTER_GATHER_LIST_SIZE = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PCALLBACK_FUNCTION = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PCANCEL_ADAPTER_CHANNEL = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PCANCEL_ADAPTER_CHANNEL = Option bool>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PCANCEL_MAPPED_TRANSFER = Option super::super::super::Win32::Foundation::NTSTATUS>; pub const PCCARD_DEVICE_PCI: u32 = 16u32; @@ -8406,7 +8406,7 @@ pub struct PCI_EXPRESS_VIRTUAL_CHANNEL_CAPABILITY { pub Resource: [VIRTUAL_RESOURCE; 8], } pub const PCI_EXPRESS_VIRTUAL_CHANNEL_CAP_ID: u32 = 2u32; -pub type PCI_EXPRESS_WAKE_CONTROL = Option; +pub type PCI_EXPRESS_WAKE_CONTROL = Option; pub const PCI_EXTENDED_CONFIG_LENGTH: u32 = 4096u32; #[repr(C)] #[derive(Clone, Copy)] @@ -8531,14 +8531,14 @@ pub struct PCI_FPB_VECTOR_ACCESS_DATA_REGISTER { pub type PCI_HARDWARE_INTERFACE = i32; pub const PCI_INVALID_ALTERNATE_FUNCTION_NUMBER: u32 = 255u32; pub const PCI_INVALID_VENDORID: u32 = 65535u32; -pub type PCI_IS_DEVICE_PRESENT = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PCI_IS_DEVICE_PRESENT_EX = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PCI_IS_DEVICE_PRESENT = Option bool>; +pub type PCI_IS_DEVICE_PRESENT_EX = Option bool>; pub type PCI_LINE_TO_PIN = Option; pub const PCI_MAX_BRIDGE_NUMBER: u32 = 255u32; pub const PCI_MAX_DEVICES: u32 = 32u32; pub const PCI_MAX_FUNCTION: u32 = 8u32; pub const PCI_MAX_SEGMENT_NUMBER: u32 = 65535u32; -pub type PCI_MSIX_GET_ENTRY = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PCI_MSIX_GET_ENTRY = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PCI_MSIX_GET_TABLE_SIZE = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PCI_MSIX_MASKUNMASK_ENTRY = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PCI_MSIX_SET_ENTRY = Option super::super::super::Win32::Foundation::NTSTATUS>; @@ -8626,10 +8626,10 @@ pub struct PCI_ROOT_BUS_HARDWARE_CAPABILITY { #[repr(C)] #[derive(Clone, Copy)] pub struct PCI_ROOT_BUS_HARDWARE_CAPABILITY_0 { - pub BusCapabilitiesFound: super::super::super::Win32::Foundation::BOOLEAN, + pub BusCapabilitiesFound: bool, pub CurrentSpeedAndMode: u32, pub SupportedSpeedsAndModes: u32, - pub DeviceIDMessagingCapable: super::super::super::Win32::Foundation::BOOLEAN, + pub DeviceIDMessagingCapable: bool, pub SecondaryBusWidth: PCI_BUS_WIDTH, } #[repr(C)] @@ -8712,7 +8712,7 @@ pub struct PCI_SEGMENT_BUS_NUMBER_0_0 { } pub type PCI_SET_ACS = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PCI_SET_ACS2 = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PCI_SET_ATS = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PCI_SET_ATS = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy)] pub struct PCI_SLOT_NUMBER { @@ -8905,7 +8905,7 @@ pub const PCIe_NOTIFY_TYPE_GUID: windows_sys::core::GUID = windows_sys::core::GU #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PCLFS_CLIENT_ADVANCE_TAIL_CALLBACK = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PCLFS_CLIENT_LFF_HANDLER_COMPLETE_CALLBACK = Option; +pub type PCLFS_CLIENT_LFF_HANDLER_COMPLETE_CALLBACK = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PCLFS_CLIENT_LOG_UNPINNED_CALLBACK = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -8917,10 +8917,10 @@ pub type PCONFIGURE_ADAPTER_CHANNEL = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PCREATE_COMMON_BUFFER_FROM_MDL = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PCREATE_PROCESS_NOTIFY_ROUTINE = Option; +pub type PCREATE_PROCESS_NOTIFY_ROUTINE = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power", feature = "Win32_System_WindowsProgramming"))] pub type PCREATE_PROCESS_NOTIFY_ROUTINE_EX = Option; -pub type PCREATE_THREAD_NOTIFY_ROUTINE = Option; +pub type PCREATE_THREAD_NOTIFY_ROUTINE = Option; pub const PCR_BTI_MITIGATION_CSWAP_HVC: u32 = 16u32; pub const PCR_BTI_MITIGATION_CSWAP_SMC: u32 = 32u32; pub const PCR_BTI_MITIGATION_NONE: u32 = 0u32; @@ -8967,7 +8967,7 @@ pub struct PCW_MASK_INFORMATION { pub CounterMask: u64, pub InstanceMask: *mut super::super::super::Win32::Foundation::UNICODE_STRING, pub InstanceId: u32, - pub CollectMultiple: super::super::super::Win32::Foundation::BOOLEAN, + pub CollectMultiple: bool, pub Buffer: super::super::Foundation::PPCW_BUFFER, pub CancelEvent: *mut super::super::Foundation::KEVENT, } @@ -9016,25 +9016,25 @@ pub type PEXT_DELETE_CALLBACK = Option; pub type PEX_CALLBACK_FUNCTION = Option super::super::super::Win32::Foundation::NTSTATUS>; pub const PFAControl: NPEM_CONTROL_STANDARD_CONTROL_BIT = 6i32; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PFLUSH_ADAPTER_BUFFERS = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PFLUSH_ADAPTER_BUFFERS = Option bool>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PFLUSH_ADAPTER_BUFFERS_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PFLUSH_ADAPTER_BUFFERS_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PFLUSH_DMA_BUFFER = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PFLUSH_DMA_BUFFER = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFNFTH = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PFN_IN_USE_PAGE_OFFLINE_NOTIFY = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PFN_NT_COMMIT_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PFN_IN_USE_PAGE_OFFLINE_NOTIFY = Option bool>; +pub type PFN_NT_COMMIT_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] pub type PFN_NT_CREATE_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] pub type PFN_NT_OPEN_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Win32_System_SystemServices")] pub type PFN_NT_QUERY_INFORMATION_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PFN_NT_ROLLBACK_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PFN_NT_ROLLBACK_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Win32_System_SystemServices")] pub type PFN_NT_SET_INFORMATION_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PFN_RTL_IS_NTDDI_VERSION_AVAILABLE = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PFN_RTL_IS_SERVICE_PACK_VERSION_INSTALLED = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PFN_RTL_IS_NTDDI_VERSION_AVAILABLE = Option bool>; +pub type PFN_RTL_IS_SERVICE_PACK_VERSION_INSTALLED = Option bool>; #[cfg(feature = "Win32_System_Diagnostics_Debug")] pub type PFN_WHEA_HIGH_IRQL_LOG_SEL_EVENT_HANDLER = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFPGA_BUS_SCAN = Option; @@ -9046,7 +9046,7 @@ pub type PFREE_ADAPTER_CHANNEL = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PFREE_COMMON_BUFFER = Option; +pub type PFREE_COMMON_BUFFER = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PFREE_COMMON_BUFFER_FROM_VECTOR = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -9068,13 +9068,13 @@ pub type PGET_DMA_ALIGNMENT = Option super::super::super::Win32::Foundation::HANDLE>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PGET_DMA_TRANSFER_INFO = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PGET_DMA_TRANSFER_INFO = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PGET_IDLE_WAKE_INFO = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PGET_LOCATION_STRING = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PGET_SCATTER_GATHER_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PGET_SCATTER_GATHER_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PGET_SCATTER_GATHER_LIST_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PGET_SCATTER_GATHER_LIST_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PGET_SDEV_IDENTIFIER = Option u64>; pub type PGET_SET_DEVICE_DATA = Option u32>; pub type PGET_UPDATED_BUS_RESOURCE = Option super::super::super::Win32::Foundation::NTSTATUS>; @@ -9086,8 +9086,8 @@ pub type PGET_VIRTUAL_FUNCTION_PROBED_BARS = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PGPE_CLEAR_STATUS2 = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PGPE_CONNECT_VECTOR = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PGPE_CONNECT_VECTOR2 = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PGPE_CONNECT_VECTOR = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PGPE_CONNECT_VECTOR2 = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PGPE_DISABLE_EVENT = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PGPE_DISABLE_EVENT2 = Option super::super::super::Win32::Foundation::NTSTATUS>; @@ -9096,13 +9096,13 @@ pub type PGPE_DISCONNECT_VECTOR2 = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PGPE_ENABLE_EVENT2 = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PGPE_SERVICE_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PGPE_SERVICE_ROUTINE2 = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PHALIOREADWRITEHANDLER = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PGPE_SERVICE_ROUTINE = Option bool>; +pub type PGPE_SERVICE_ROUTINE2 = Option bool>; +pub type PHALIOREADWRITEHANDLER = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PHALMCAINTERFACELOCK = Option; pub type PHALMCAINTERFACEREADREGISTER = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PHALMCAINTERFACEUNLOCK = Option; -pub type PHAL_RESET_DISPLAY_PARAMETERS = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PHAL_RESET_DISPLAY_PARAMETERS = Option bool>; pub type PHVL_WHEA_ERROR_NOTIFICATION = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy)] @@ -9203,10 +9203,10 @@ pub type PJOIN_DMA_DOMAIN = Option; pub type PKBUGCHECK_REASON_CALLBACK_ROUTINE = Option; pub type PKIPI_BROADCAST_WORKER = Option usize>; -pub type PKMESSAGE_SERVICE_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PKSERVICE_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PKMESSAGE_SERVICE_ROUTINE = Option bool>; +pub type PKSERVICE_ROUTINE = Option bool>; pub type PKSTART_ROUTINE = Option; -pub type PKSYNCHRONIZE_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PKSYNCHRONIZE_ROUTINE = Option bool>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PLEAVE_DMA_DOMAIN = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PLOAD_IMAGE_NOTIFY_ROUTINE = Option; @@ -9222,9 +9222,9 @@ pub const PLUGPLAY_REGKEY_CURRENT_HWPROFILE: u32 = 4u32; pub const PLUGPLAY_REGKEY_DEVICE: u32 = 1u32; pub const PLUGPLAY_REGKEY_DRIVER: u32 = 2u32; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PMAP_TRANSFER = Option i64>; +pub type PMAP_TRANSFER = Option i64>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PMAP_TRANSFER_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PMAP_TRANSFER_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; pub const PMCCounter: HARDWARE_COUNTER_TYPE = 0i32; pub const PMEM_ERROR_SECTION_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x81687003_dbfd_4728_9ffd_f0904f97597d); pub type PMM_DLL_INITIALIZE = Option super::super::super::Win32::Foundation::NTSTATUS>; @@ -9240,7 +9240,7 @@ pub struct PM_DISPATCH_TABLE { pub Version: u32, pub Function: [*mut core::ffi::c_void; 1], } -pub type PNMI_CALLBACK = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PNMI_CALLBACK = Option bool>; pub const PNPBus: INTERFACE_TYPE = 15i32; pub type PNPEM_CONTROL_ENABLE_DISABLE = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PNPEM_CONTROL_QUERY_CONTROL = Option u32>; @@ -9424,7 +9424,7 @@ pub const POWER_LEVEL: u32 = 30u32; #[repr(C)] #[derive(Clone, Copy)] pub struct POWER_MONITOR_INVOCATION { - pub Console: super::super::super::Win32::Foundation::BOOLEAN, + pub Console: bool, pub RequestReason: POWER_MONITOR_REQUEST_REASON, } pub type POWER_MONITOR_REQUEST_REASON = i32; @@ -9432,7 +9432,7 @@ pub type POWER_MONITOR_REQUEST_TYPE = i32; #[repr(C)] #[derive(Clone, Copy)] pub struct POWER_PLATFORM_INFORMATION { - pub AoAc: super::super::super::Win32::Foundation::BOOLEAN, + pub AoAc: bool, } pub type POWER_PLATFORM_ROLE = i32; pub const POWER_PLATFORM_ROLE_V1: u32 = 1u32; @@ -9448,13 +9448,13 @@ pub struct POWER_SEQUENCE { #[repr(C)] #[derive(Clone, Copy)] pub struct POWER_SESSION_CONNECT { - pub Connected: super::super::super::Win32::Foundation::BOOLEAN, - pub Console: super::super::super::Win32::Foundation::BOOLEAN, + pub Connected: bool, + pub Console: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct POWER_SESSION_RIT_STATE { - pub Active: super::super::super::Win32::Foundation::BOOLEAN, + pub Active: bool, pub LastInputTime: u64, } #[repr(C)] @@ -9467,8 +9467,8 @@ pub struct POWER_SESSION_TIMEOUTS { #[derive(Clone, Copy)] pub struct POWER_SESSION_WINLOGON { pub SessionId: u32, - pub Console: super::super::super::Win32::Foundation::BOOLEAN, - pub Locked: super::super::super::Win32::Foundation::BOOLEAN, + pub Console: bool, + pub Locked: bool, } pub type POWER_SETTING_CALLBACK = Option super::super::super::Win32::Foundation::NTSTATUS>; pub const POWER_SETTING_VALUE_VERSION: u32 = 1u32; @@ -9503,7 +9503,7 @@ pub struct POWER_THROTTLING_THREAD_STATE { pub const POWER_THROTTLING_THREAD_VALID_FLAGS: u32 = 1u32; pub type POWER_USER_PRESENCE_TYPE = i32; pub type PO_FX_COMPONENT_ACTIVE_CONDITION_CALLBACK = Option; -pub type PO_FX_COMPONENT_CRITICAL_TRANSITION_CALLBACK = Option; +pub type PO_FX_COMPONENT_CRITICAL_TRANSITION_CALLBACK = Option; pub const PO_FX_COMPONENT_FLAG_F0_ON_DX: u64 = 1u64; pub const PO_FX_COMPONENT_FLAG_NO_DEBOUNCE: u64 = 2u64; pub type PO_FX_COMPONENT_IDLE_CONDITION_CALLBACK = Option; @@ -9548,7 +9548,7 @@ pub struct PO_FX_COMPONENT_PERF_SET_0_1 { pub Minimum: u64, pub Maximum: u64, } -pub type PO_FX_COMPONENT_PERF_STATE_CALLBACK = Option; +pub type PO_FX_COMPONENT_PERF_STATE_CALLBACK = Option; #[repr(C)] #[derive(Clone, Copy)] pub struct PO_FX_COMPONENT_V1 { @@ -9666,8 +9666,8 @@ pub type PPCI_EXPRESS_EXIT_LINK_QUIESCENT_MODE = Option u32>; pub type PPCI_EXPRESS_ROOT_PORT_WRITE_CONFIG_SPACE = Option u32>; pub type PPCI_EXPRESS_WAKE_CONTROL = Option; -pub type PPCI_IS_DEVICE_PRESENT = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PPCI_IS_DEVICE_PRESENT_EX = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PPCI_IS_DEVICE_PRESENT = Option bool>; +pub type PPCI_IS_DEVICE_PRESENT_EX = Option bool>; pub type PPCI_LINE_TO_PIN = Option; pub type PPCI_MSIX_GET_ENTRY = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PPCI_MSIX_GET_TABLE_SIZE = Option super::super::super::Win32::Foundation::NTSTATUS>; @@ -9705,7 +9705,7 @@ pub type PPTM_DEVICE_QUERY_TIME_SOURCE = Option s #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PPUT_DMA_ADAPTER = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PPUT_SCATTER_GATHER_LIST = Option; +pub type PPUT_SCATTER_GATHER_LIST = Option; pub type PQUERYEXTENDEDADDRESS = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PREAD_DMA_COUNTER = Option u32>; @@ -9715,14 +9715,14 @@ pub type PREGISTER_FOR_DEVICE_NOTIFICATIONS = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_BEGIN = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_DRIVER_INIT = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PREPLACE_ENABLE_DISABLE_HARDWARE_QUIESCE = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PREPLACE_ENABLE_DISABLE_HARDWARE_QUIESCE = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_END = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_GET_MEMORY_DESTINATION = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_INITIATE_HARDWARE_MIRROR = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_MAP_MEMORY = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_MIRROR_PHYSICAL_MEMORY = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_MIRROR_PLATFORM_MEMORY = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PREPLACE_SET_PROCESSOR_ID = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PREPLACE_SET_PROCESSOR_ID = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_SWAP = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_UNLOAD = Option; pub type PREQUEST_POWER_COMPLETE = Option; @@ -9972,7 +9972,7 @@ pub type PTM_DEVICE_QUERY_TIME_SOURCE = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] pub type PTM_RM_NOTIFICATION = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PTRANSLATE_BUS_ADDRESS = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PTRANSLATE_BUS_ADDRESS = Option bool>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PTRANSLATE_RESOURCE_HANDLER = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -10680,7 +10680,7 @@ pub const SEH_VALIDATION_POLICY_TELEMETRY: u32 = 2u32; pub const SEI_NOTIFY_TYPE_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5c284c81_b0ae_4e87_a322_b04c85624323); pub const SEI_SECTION_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xf2a4a152_9c6d_4020_aecf_7695b389251b); pub const SEMAPHORE_QUERY_STATE: u32 = 1u32; -pub type SET_D3COLD_SUPPORT = Option; +pub type SET_D3COLD_SUPPORT = Option; pub type SET_VIRTUAL_DEVICE_DATA = Option u32>; pub const SE_ASSIGNPRIMARYTOKEN_PRIVILEGE: i32 = 3i32; pub const SE_AUDIT_PRIVILEGE: i32 = 21i32; @@ -10771,8 +10771,8 @@ pub type SILO_MONITOR_CREATE_CALLBACK = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type TRANSLATE_BUS_ADDRESS = Option bool>; #[repr(C)] #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy)] @@ -11203,15 +11203,15 @@ pub struct WHEAP_ADD_REMOVE_ERROR_SOURCE_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub Descriptor: super::super::super::Win32::System::Diagnostics::Debug::WHEA_ERROR_SOURCE_DESCRIPTOR, pub Status: super::super::super::Win32::Foundation::NTSTATUS, - pub IsRemove: super::super::super::Win32::Foundation::BOOLEAN, + pub IsRemove: bool, } #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct WHEAP_ATTEMPT_RECOVERY_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub ErrorHeader: WHEA_ERROR_RECORD_HEADER, - pub ArchitecturalRecovery: super::super::super::Win32::Foundation::BOOLEAN, - pub PshedRecovery: super::super::super::Win32::Foundation::BOOLEAN, + pub ArchitecturalRecovery: bool, + pub PshedRecovery: bool, pub Status: super::super::super::Win32::Foundation::NTSTATUS, } #[repr(C, packed(1))] @@ -11233,7 +11233,7 @@ pub struct WHEAP_CLEARED_POISON_EVENT { #[derive(Clone, Copy)] pub struct WHEAP_CMCI_IMPLEMENTED_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub CmciAvailable: super::super::super::Win32::Foundation::BOOLEAN, + pub CmciAvailable: bool, } #[repr(C, packed(1))] #[derive(Clone, Copy)] @@ -11298,8 +11298,8 @@ pub struct WHEAP_DROPPED_CORRECTED_ERROR_EVENT { #[derive(Clone, Copy)] pub struct WHEAP_EDPC_ENABLED_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub eDPCEnabled: super::super::super::Win32::Foundation::BOOLEAN, - pub eDPCRecovEnabled: super::super::super::Win32::Foundation::BOOLEAN, + pub eDPCEnabled: bool, + pub eDPCRecovEnabled: bool, } #[repr(C, packed(1))] #[derive(Clone, Copy)] @@ -11351,8 +11351,8 @@ pub struct WHEAP_GENERIC_ERR_MEM_MAP_EVENT { #[derive(Clone, Copy)] pub struct WHEAP_OSC_IMPLEMENTED { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub OscImplemented: super::super::super::Win32::Foundation::BOOLEAN, - pub DebugChecked: super::super::super::Win32::Foundation::BOOLEAN, + pub OscImplemented: bool, + pub DebugChecked: bool, } #[repr(C, packed(1))] #[derive(Clone, Copy)] @@ -11395,7 +11395,7 @@ pub struct WHEAP_PCIE_READ_OVERRIDES_ERR { pub struct WHEAP_PFA_MEMORY_OFFLINED { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub DecisionType: WHEAP_PFA_OFFLINE_DECISION_TYPE, - pub ImmediateSuccess: super::super::super::Win32::Foundation::BOOLEAN, + pub ImmediateSuccess: bool, pub Page: u32, } #[repr(C, packed(1))] @@ -11403,9 +11403,9 @@ pub struct WHEAP_PFA_MEMORY_OFFLINED { pub struct WHEAP_PFA_MEMORY_POLICY { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub RegistryKeysPresent: u32, - pub DisableOffline: super::super::super::Win32::Foundation::BOOLEAN, - pub PersistOffline: super::super::super::Win32::Foundation::BOOLEAN, - pub PfaDisabled: super::super::super::Win32::Foundation::BOOLEAN, + pub DisableOffline: bool, + pub PersistOffline: bool, + pub PfaDisabled: bool, pub PageCount: u32, pub ErrorThreshold: u32, pub TimeOut: u32, @@ -11439,14 +11439,14 @@ pub struct WHEAP_PLUGIN_DEFECT_LIST_UEFI_VAR_FAILED { #[derive(Clone, Copy)] pub struct WHEAP_PLUGIN_PFA_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub NoFurtherPfa: super::super::super::Win32::Foundation::BOOLEAN, + pub NoFurtherPfa: bool, } #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct WHEAP_PROCESS_EINJ_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub Error: [i8; 32], - pub InjectionActionTableValid: super::super::super::Win32::Foundation::BOOLEAN, + pub InjectionActionTableValid: bool, pub BeginInjectionInstructionCount: u32, pub GetTriggerErrorActionTableInstructionCount: u32, pub SetErrorTypeInstructionCount: u32, @@ -11465,7 +11465,7 @@ pub struct WHEAP_PROCESS_HEST_EVENT { pub Error: [i8; 32], pub EntryType: [i8; 32], pub EntryIndex: u32, - pub HestValid: super::super::super::Win32::Foundation::BOOLEAN, + pub HestValid: bool, pub CmcCount: u32, pub MceCount: u32, pub NmiCount: u32, @@ -11485,8 +11485,8 @@ pub struct WHEAP_PSHED_INJECT_ERROR { pub Parameter3: u64, pub Parameter4: u64, pub InjectionStatus: super::super::super::Win32::Foundation::NTSTATUS, - pub InjectionAttempted: super::super::super::Win32::Foundation::BOOLEAN, - pub InjectionByPlugin: super::super::super::Win32::Foundation::BOOLEAN, + pub InjectionAttempted: bool, + pub InjectionByPlugin: bool, } #[repr(C, packed(1))] #[derive(Clone, Copy)] @@ -11870,8 +11870,8 @@ pub struct WHEA_ARM_TLB_ERROR_VALID_BITS_0 { #[derive(Clone, Copy)] pub struct WHEA_AZCC_ROOT_BUS_ERR_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub MaxBusCountPassed: super::super::super::Win32::Foundation::BOOLEAN, - pub InvalidBusMSR: super::super::super::Win32::Foundation::BOOLEAN, + pub MaxBusCountPassed: bool, + pub InvalidBusMSR: bool, } #[repr(C, packed(1))] #[derive(Clone, Copy)] @@ -11885,9 +11885,9 @@ pub struct WHEA_AZCC_ROOT_BUS_LIST_EVENT { pub struct WHEA_AZCC_SET_POISON_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub Bus: u32, - pub ReadSuccess: super::super::super::Win32::Foundation::BOOLEAN, - pub WriteSuccess: super::super::super::Win32::Foundation::BOOLEAN, - pub IsEnable: super::super::super::Win32::Foundation::BOOLEAN, + pub ReadSuccess: bool, + pub WriteSuccess: bool, + pub IsEnable: bool, } pub type WHEA_BUGCHECK_RECOVERY_LOG_TYPE = i32; pub const WHEA_BUSCHECK_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x1cf3f8b3_c5b1_49a2_aa59_5eef92ffa63c); @@ -12088,11 +12088,11 @@ pub const WHEA_ERROR_RECORD_VALID_TIMESTAMP: u32 = 2u32; #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct WHEA_ERROR_RECOVERY_INFO_SECTION { - pub RecoveryKernel: super::super::super::Win32::Foundation::BOOLEAN, + pub RecoveryKernel: bool, pub RecoveryAction: WHEA_RECOVERY_ACTION, pub RecoveryType: WHEA_RECOVERY_TYPE, pub Irql: u8, - pub RecoverySucceeded: super::super::super::Win32::Foundation::BOOLEAN, + pub RecoverySucceeded: bool, pub FailureReason: WHEA_RECOVERY_FAILURE_REASON, pub ProcessName: [i8; 20], } @@ -12582,7 +12582,7 @@ pub struct WHEA_PCIXDEVICE_REGISTER_PAIR { #[derive(Clone, Copy)] pub struct WHEA_PCI_RECOVERY_SECTION { pub SignalType: u8, - pub RecoveryAttempted: super::super::super::Win32::Foundation::BOOLEAN, + pub RecoveryAttempted: bool, pub RecoveryStatus: u8, } pub type WHEA_PCI_RECOVERY_SIGNAL = i32; @@ -12751,7 +12751,7 @@ pub struct WHEA_PSHED_PLUGIN_LOAD_EVENT { pub struct WHEA_PSHED_PLUGIN_PLATFORM_SUPPORT_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub PluginName: [u16; 32], - pub Supported: super::super::super::Win32::Foundation::BOOLEAN, + pub Supported: bool, } #[repr(C)] #[cfg(feature = "Win32_System_Diagnostics_Debug")] @@ -12814,11 +12814,11 @@ pub union WHEA_RECOVERY_CONTEXT_0 { #[derive(Clone, Copy)] pub struct WHEA_RECOVERY_CONTEXT_0_0 { pub Address: usize, - pub Consumed: super::super::super::Win32::Foundation::BOOLEAN, + pub Consumed: bool, pub ErrorCode: u16, - pub ErrorIpValid: super::super::super::Win32::Foundation::BOOLEAN, - pub RestartIpValid: super::super::super::Win32::Foundation::BOOLEAN, - pub ClearPoison: super::super::super::Win32::Foundation::BOOLEAN, + pub ErrorIpValid: bool, + pub RestartIpValid: bool, + pub ClearPoison: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -12862,7 +12862,7 @@ pub struct WHEA_SEA_SECTION { pub Esr: u32, pub Far: u64, pub Par: u64, - pub WasKernel: super::super::super::Win32::Foundation::BOOLEAN, + pub WasKernel: bool, } pub const WHEA_SECTION_DESCRIPTOR_FLAGS_CONTAINMENTWRN: u32 = 2u32; pub const WHEA_SECTION_DESCRIPTOR_FLAGS_FRU_TEXT_BY_PLUGIN: u32 = 128u32; @@ -12890,15 +12890,15 @@ pub struct WHEA_SEL_BUGCHECK_PROGRESS { #[derive(Clone, Copy)] pub struct WHEA_SEL_BUGCHECK_RECOVERY_STATUS_MULTIPLE_BUGCHECK_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub IsBugcheckOwner: super::super::super::Win32::Foundation::BOOLEAN, + pub IsBugcheckOwner: bool, pub RecursionCount: u8, - pub IsBugcheckRecoveryOwner: super::super::super::Win32::Foundation::BOOLEAN, + pub IsBugcheckRecoveryOwner: bool, } #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct WHEA_SEL_BUGCHECK_RECOVERY_STATUS_PHASE1_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub Success: super::super::super::Win32::Foundation::BOOLEAN, + pub Success: bool, pub Version: u8, pub EntryCount: u16, pub Data: WHEA_SEL_BUGCHECK_RECOVERY_STATUS_PHASE1_EVENT_0, @@ -12915,7 +12915,7 @@ pub const WHEA_SEL_BUGCHECK_RECOVERY_STATUS_PHASE1_VERSION: u32 = 1u32; pub struct WHEA_SEL_BUGCHECK_RECOVERY_STATUS_PHASE2_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub BootId: u32, - pub Success: super::super::super::Win32::Foundation::BOOLEAN, + pub Success: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -12923,7 +12923,7 @@ pub struct WHEA_SEL_BUGCHECK_RECOVERY_STATUS_START_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub StartingIrql: u8, } -pub type WHEA_SIGNAL_HANDLER_OVERRIDE_CALLBACK = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type WHEA_SIGNAL_HANDLER_OVERRIDE_CALLBACK = Option bool>; #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct WHEA_SRAR_DETAIL_EVENT { @@ -12931,7 +12931,7 @@ pub struct WHEA_SRAR_DETAIL_EVENT { pub RecoveryContextFlags: u32, pub RecoveryContextPa: u64, pub PageOfflineStatus: super::super::super::Win32::Foundation::NTSTATUS, - pub KernelConsumerError: super::super::super::Win32::Foundation::BOOLEAN, + pub KernelConsumerError: bool, } #[repr(C, packed(1))] #[derive(Clone, Copy)] @@ -12970,7 +12970,7 @@ pub struct WHEA_THROTTLE_PCIE_ADD_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub Address: WHEA_PCIE_ADDRESS, pub Mask: u32, - pub Updated: super::super::super::Win32::Foundation::BOOLEAN, + pub Updated: bool, pub Status: super::super::super::Win32::Foundation::NTSTATUS, } #[repr(C, packed(1))] @@ -13490,9 +13490,9 @@ pub const XPF_PROCESSOR_ERROR_SECTION_GUID: windows_sys::core::GUID = windows_sy pub struct XPF_RECOVERY_INFO { pub FailureReason: XPF_RECOVERY_INFO_0, pub Action: XPF_RECOVERY_INFO_1, - pub ActionRequired: super::super::super::Win32::Foundation::BOOLEAN, - pub RecoverySucceeded: super::super::super::Win32::Foundation::BOOLEAN, - pub RecoveryKernel: super::super::super::Win32::Foundation::BOOLEAN, + pub ActionRequired: bool, + pub RecoverySucceeded: bool, + pub RecoveryKernel: bool, pub Reserved: u8, pub Reserved2: u16, pub Reserved3: u16, @@ -13608,7 +13608,7 @@ pub type _WHEA_ERROR_SOURCE_CREATE_RECORD = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type _WHEA_ERROR_SOURCE_RECOVER = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type _WHEA_ERROR_SOURCE_UNINITIALIZE = Option; -pub type _WHEA_SIGNAL_HANDLER_OVERRIDE_CALLBACK = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type _WHEA_SIGNAL_HANDLER_OVERRIDE_CALLBACK = Option bool>; pub const __guid_type: u32 = 8192u32; pub const __multiString_type: u32 = 16384u32; pub const __string_type: u32 = 4096u32; @@ -13618,7 +13618,7 @@ pub type pHalEndMirroring = Option pub type pHalEndOfBoot = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type pHalExamineMBR = Option; -pub type pHalFindBusAddressTranslation = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type pHalFindBusAddressTranslation = Option bool>; pub type pHalGetAcpiTable = Option *mut core::ffi::c_void>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type pHalGetDmaAdapter = Option *mut DMA_ADAPTER>; @@ -13632,7 +13632,7 @@ pub type pHalHandlerForBus = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type pHalInitPowerManagement = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type pHalIoReadPartitionTable = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type pHalIoReadPartitionTable = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type pHalIoSetPartitionInformation = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -13644,20 +13644,20 @@ pub type pHalQueryBusSlots = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] pub type pHalReferenceBusHandler = Option; -pub type pHalResetDisplay = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type pHalResetDisplay = Option bool>; pub type pHalSetPciErrorHandlerCallback = Option; pub type pHalSetSystemInformation = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type pHalStartMirroring = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type pHalTranslateBusAddress = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type pHalTranslateBusAddress = Option bool>; pub type pHalVectorToIDTEntry = Option u8>; pub type pKdCheckPowerButton = Option; pub type pKdEnumerateDebuggingDevices = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type pKdGetAcpiTablePhase0 = Option *mut core::ffi::c_void>; pub type pKdGetPciDataByOffset = Option u32>; -pub type pKdMapPhysicalMemory64 = Option *mut core::ffi::c_void>; +pub type pKdMapPhysicalMemory64 = Option *mut core::ffi::c_void>; pub type pKdReleaseIntegratedDeviceForDebugging = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type pKdReleasePciDeviceForDebugging = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type pKdSetPciDataByOffset = Option u32>; pub type pKdSetupIntegratedDeviceForDebugging = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type pKdSetupPciDeviceForDebugging = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type pKdUnmapVirtualAddress = Option; +pub type pKdUnmapVirtualAddress = Option; diff --git a/crates/libs/sys/src/Windows/Wdk/System/Threading/mod.rs b/crates/libs/sys/src/Windows/Wdk/System/Threading/mod.rs index 1374e33216..f5a2e54ce1 100644 --- a/crates/libs/sys/src/Windows/Wdk/System/Threading/mod.rs +++ b/crates/libs/sys/src/Windows/Wdk/System/Threading/mod.rs @@ -1,4 +1,4 @@ -windows_targets::link!("ntdll.dll" "system" fn NtCancelTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, currentstate : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtCancelTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, currentstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))] windows_targets::link!("ntdll.dll" "system" fn NtCreateTimer(timerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, timertype : super::super::super::Win32::System::Kernel:: TIMER_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] @@ -11,11 +11,11 @@ windows_targets::link!("ntdll.dll" "system" fn NtQueryInformationProcess(process windows_targets::link!("ntdll.dll" "system" fn NtQueryInformationThread(threadhandle : super::super::super::Win32::Foundation:: HANDLE, threadinformationclass : THREADINFOCLASS, threadinformation : *mut core::ffi::c_void, threadinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtSetInformationThread(threadhandle : super::super::super::Win32::Foundation:: HANDLE, threadinformationclass : THREADINFOCLASS, threadinformation : *const core::ffi::c_void, threadinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_System_SystemServices")] -windows_targets::link!("ntdll.dll" "system" fn NtSetTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, duetime : *const i64, timerapcroutine : super::SystemServices:: PTIMER_APC_ROUTINE, timercontext : *const core::ffi::c_void, resumetimer : super::super::super::Win32::Foundation:: BOOLEAN, period : i32, previousstate : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtSetTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, duetime : *const i64, timerapcroutine : super::SystemServices:: PTIMER_APC_ROUTINE, timercontext : *const core::ffi::c_void, resumetimer : bool, period : i32, previousstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtSetTimerEx(timerhandle : super::super::super::Win32::Foundation:: HANDLE, timersetinformationclass : TIMER_SET_INFORMATION_CLASS, timersetinformation : *mut core::ffi::c_void, timersetinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn NtTerminateProcess(processhandle : super::super::super::Win32::Foundation:: HANDLE, exitstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn NtWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn ZwCancelTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, currentstate : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn NtWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : bool, timeout : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwCancelTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, currentstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))] windows_targets::link!("ntdll.dll" "system" fn ZwCreateTimer(timerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, timertype : super::super::super::Win32::System::Kernel:: TIMER_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] @@ -28,10 +28,10 @@ windows_targets::link!("ntdll.dll" "system" fn ZwQueryInformationProcess(process windows_targets::link!("ntdll.dll" "system" fn ZwQueryInformationThread(threadhandle : super::super::super::Win32::Foundation:: HANDLE, threadinformationclass : THREADINFOCLASS, threadinformation : *mut core::ffi::c_void, threadinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwSetInformationThread(threadhandle : super::super::super::Win32::Foundation:: HANDLE, threadinformationclass : THREADINFOCLASS, threadinformation : *const core::ffi::c_void, threadinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); #[cfg(feature = "Wdk_System_SystemServices")] -windows_targets::link!("ntdll.dll" "system" fn ZwSetTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, duetime : *const i64, timerapcroutine : super::SystemServices:: PTIMER_APC_ROUTINE, timercontext : *const core::ffi::c_void, resumetimer : super::super::super::Win32::Foundation:: BOOLEAN, period : i32, previousstate : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwSetTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, duetime : *const i64, timerapcroutine : super::SystemServices:: PTIMER_APC_ROUTINE, timercontext : *const core::ffi::c_void, resumetimer : bool, period : i32, previousstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwSetTimerEx(timerhandle : super::super::super::Win32::Foundation:: HANDLE, timersetinformationclass : TIMER_SET_INFORMATION_CLASS, timersetinformation : *mut core::ffi::c_void, timersetinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn ZwTerminateProcess(processhandle : super::super::super::Win32::Foundation:: HANDLE, exitstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn ZwWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn ZwWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : bool, timeout : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); pub const MaxProcessInfoClass: PROCESSINFOCLASS = 83i32; pub const MaxThreadInfoClass: THREADINFOCLASS = 56i32; pub const MaxTimerInfoClass: TIMER_SET_INFORMATION_CLASS = 1i32; diff --git a/crates/libs/sys/src/Windows/Win32/Devices/BiometricFramework/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/BiometricFramework/mod.rs index 1732e8f2df..c67e8cf92d 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/BiometricFramework/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/BiometricFramework/mod.rs @@ -65,7 +65,7 @@ pub type PIBIO_ENGINE_ACTIVATE_FN = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_IO")] -pub type PIBIO_ENGINE_CHECK_FOR_DUPLICATE_FN = Option windows_sys::core::HRESULT>; +pub type PIBIO_ENGINE_CHECK_FOR_DUPLICATE_FN = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_IO")] pub type PIBIO_ENGINE_CLEAR_CONTEXT_FN = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_IO")] @@ -107,7 +107,7 @@ pub type PIBIO_ENGINE_PIPELINE_CLEANUP_FN = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_IO")] -pub type PIBIO_ENGINE_QUERY_CALIBRATION_DATA_FN = Option windows_sys::core::HRESULT>; +pub type PIBIO_ENGINE_QUERY_CALIBRATION_DATA_FN = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_IO")] pub type PIBIO_ENGINE_QUERY_EXTENDED_ENROLLMENT_STATUS_FN = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_IO")] @@ -137,7 +137,7 @@ pub type PIBIO_ENGINE_SET_HASH_ALGORITHM_FN = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_IO")] -pub type PIBIO_ENGINE_VERIFY_FEATURE_SET_FN = Option windows_sys::core::HRESULT>; +pub type PIBIO_ENGINE_VERIFY_FEATURE_SET_FN = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_IO")] pub type PIBIO_FRAMEWORK_ALLOCATE_MEMORY_FN = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_IO")] @@ -273,7 +273,7 @@ pub type PIBIO_STORAGE_GET_RECORD_COUNT_FN = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_IO")] -pub type PIBIO_STORAGE_NOTIFY_DATABASE_CHANGE_FN = Option windows_sys::core::HRESULT>; +pub type PIBIO_STORAGE_NOTIFY_DATABASE_CHANGE_FN = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_IO")] pub type PIBIO_STORAGE_NOTIFY_POWER_CHANGE_FN = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_IO")] @@ -308,7 +308,7 @@ pub type PWINBIO_QUERY_ENGINE_INTERFACE_FN = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_IO")] pub type PWINBIO_QUERY_STORAGE_INTERFACE_FN = Option windows_sys::core::HRESULT>; -pub type PWINBIO_VERIFY_CALLBACK = Option; +pub type PWINBIO_VERIFY_CALLBACK = Option; #[repr(C)] #[derive(Clone, Copy)] pub struct WINBIO_ACCOUNT_POLICY { @@ -427,7 +427,7 @@ pub struct WINBIO_ASYNC_RESULT_0_3 { #[derive(Clone, Copy)] pub struct WINBIO_ASYNC_RESULT_0_4 { pub Identity: WINBIO_IDENTITY, - pub IsNewTemplate: super::super::Foundation::BOOLEAN, + pub IsNewTemplate: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -520,14 +520,14 @@ pub struct WINBIO_ASYNC_RESULT_0_9 { #[repr(C)] #[derive(Clone, Copy)] pub struct WINBIO_ASYNC_RESULT_0_15 { - pub Match: super::super::Foundation::BOOLEAN, + pub Match: bool, pub RejectDetail: u32, pub Ticket: u64, } #[repr(C)] #[derive(Clone, Copy)] pub struct WINBIO_ASYNC_RESULT_0_0 { - pub Match: super::super::Foundation::BOOLEAN, + pub Match: bool, pub RejectDetail: u32, } #[repr(C)] diff --git a/crates/libs/sys/src/Windows/Win32/Devices/Bluetooth/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/Bluetooth/mod.rs index a12f2c3a77..0343e23182 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/Bluetooth/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/Bluetooth/mod.rs @@ -580,14 +580,14 @@ pub struct BTH_LE_GATT_CHARACTERISTIC { pub CharacteristicUuid: BTH_LE_UUID, pub AttributeHandle: u16, pub CharacteristicValueHandle: u16, - pub IsBroadcastable: super::super::Foundation::BOOLEAN, - pub IsReadable: super::super::Foundation::BOOLEAN, - pub IsWritable: super::super::Foundation::BOOLEAN, - pub IsWritableWithoutResponse: super::super::Foundation::BOOLEAN, - pub IsSignedWritable: super::super::Foundation::BOOLEAN, - pub IsNotifiable: super::super::Foundation::BOOLEAN, - pub IsIndicatable: super::super::Foundation::BOOLEAN, - pub HasExtendedProperties: super::super::Foundation::BOOLEAN, + pub IsBroadcastable: bool, + pub IsReadable: bool, + pub IsWritable: bool, + pub IsWritableWithoutResponse: bool, + pub IsSignedWritable: bool, + pub IsNotifiable: bool, + pub IsIndicatable: bool, + pub HasExtendedProperties: bool, } pub const BTH_LE_GATT_CHARACTERISTIC_DESCRIPTOR_AGGREGATE_FORMAT: u32 = 10501u32; pub const BTH_LE_GATT_CHARACTERISTIC_DESCRIPTOR_CLIENT_CONFIGURATION: u32 = 10498u32; @@ -638,8 +638,8 @@ pub union BTH_LE_GATT_DESCRIPTOR_VALUE_0 { #[repr(C)] #[derive(Clone, Copy)] pub struct BTH_LE_GATT_DESCRIPTOR_VALUE_0_0 { - pub IsReliableWriteEnabled: super::super::Foundation::BOOLEAN, - pub IsAuxiliariesWritable: super::super::Foundation::BOOLEAN, + pub IsReliableWriteEnabled: bool, + pub IsAuxiliariesWritable: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -653,13 +653,13 @@ pub struct BTH_LE_GATT_DESCRIPTOR_VALUE_0_3 { #[repr(C)] #[derive(Clone, Copy)] pub struct BTH_LE_GATT_DESCRIPTOR_VALUE_0_1 { - pub IsSubscribeToNotification: super::super::Foundation::BOOLEAN, - pub IsSubscribeToIndication: super::super::Foundation::BOOLEAN, + pub IsSubscribeToNotification: bool, + pub IsSubscribeToIndication: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct BTH_LE_GATT_DESCRIPTOR_VALUE_0_2 { - pub IsBroadcast: super::super::Foundation::BOOLEAN, + pub IsBroadcast: bool, } pub type BTH_LE_GATT_EVENT_TYPE = i32; #[repr(C)] @@ -673,7 +673,7 @@ pub const BTH_LE_SERVICE_GATT: u32 = 6145u32; #[repr(C)] #[derive(Clone, Copy)] pub struct BTH_LE_UUID { - pub IsShortUuid: super::super::Foundation::BOOLEAN, + pub IsShortUuid: bool, pub Value: BTH_LE_UUID_0, } #[repr(C)] diff --git a/crates/libs/sys/src/Windows/Win32/Devices/Cdrom/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/Cdrom/mod.rs index 1f1b9d9820..75fcc9cace 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/Cdrom/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/Cdrom/mod.rs @@ -52,7 +52,7 @@ pub struct CDROM_EXCLUSIVE_LOCK { #[repr(C)] #[derive(Clone, Copy)] pub struct CDROM_EXCLUSIVE_LOCK_STATE { - pub LockState: super::super::Foundation::BOOLEAN, + pub LockState: bool, pub CallerName: [u8; 64], } pub const CDROM_IN_EXCLUSIVE_MODE: u32 = 1u32; @@ -139,17 +139,17 @@ pub struct CDROM_SET_STREAMING { pub StartLba: u32, pub EndLba: u32, pub RotationControl: WRITE_ROTATION, - pub RestoreDefaults: super::super::Foundation::BOOLEAN, - pub SetExact: super::super::Foundation::BOOLEAN, - pub RandomAccess: super::super::Foundation::BOOLEAN, - pub Persistent: super::super::Foundation::BOOLEAN, + pub RestoreDefaults: bool, + pub SetExact: bool, + pub RandomAccess: bool, + pub Persistent: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct CDROM_SIMPLE_OPC_INFO { pub RequestType: CDROM_OPC_INFO_TYPE, - pub Exclude0: super::super::Foundation::BOOLEAN, - pub Exclude1: super::super::Foundation::BOOLEAN, + pub Exclude0: bool, + pub Exclude1: bool, } pub type CDROM_SPEED_REQUEST = i32; #[repr(C)] diff --git a/crates/libs/sys/src/Windows/Win32/Devices/Display/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/Display/mod.rs index d2af8e6afe..34d1652231 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/Display/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/Display/mod.rs @@ -258,7 +258,7 @@ pub struct CDDDXGK_REDIRBITMAPPRESENTINFO { pub DirtyRect: *mut super::super::Foundation::RECT, pub NumContexts: u32, pub hContext: [super::super::Foundation::HANDLE; 65], - pub bDoNotSynchronizeWithDxContent: super::super::Foundation::BOOLEAN, + pub bDoNotSynchronizeWithDxContent: bool, } pub const CD_ANY: i32 = 4i32; pub const CD_LEFTDOWN: i32 = 1i32; @@ -2659,7 +2659,7 @@ pub type VIDEO_BANK_TYPE = i32; #[repr(C)] #[derive(Clone, Copy)] pub struct VIDEO_BRIGHTNESS_POLICY { - pub DefaultToBiosPolicy: super::super::Foundation::BOOLEAN, + pub DefaultToBiosPolicy: bool, pub LevelCount: u8, pub Level: [VIDEO_BRIGHTNESS_POLICY_0; 1], } @@ -3010,10 +3010,10 @@ pub struct VIDEO_WIN32K_CALLBACKS_PARAMS { pub PhysDisp: *mut core::ffi::c_void, pub Param: usize, pub Status: i32, - pub LockUserSession: super::super::Foundation::BOOLEAN, - pub IsPostDevice: super::super::Foundation::BOOLEAN, - pub SurpriseRemoval: super::super::Foundation::BOOLEAN, - pub WaitForQueueReady: super::super::Foundation::BOOLEAN, + pub LockUserSession: bool, + pub IsPostDevice: bool, + pub SurpriseRemoval: bool, + pub WaitForQueueReady: bool, } pub type VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE = i32; pub const VideoBanked1R1W: VIDEO_BANK_TYPE = 2i32; diff --git a/crates/libs/sys/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs index 4fca034f61..f83a688619 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs @@ -1,23 +1,23 @@ windows_targets::link!("dinput8.dll" "system" fn DirectInput8Create(hinst : super::super::Foundation:: HINSTANCE, dwversion : u32, riidltf : *const windows_sys::core::GUID, ppvout : *mut *mut core::ffi::c_void, punkouter : * mut core::ffi::c_void) -> windows_sys::core::HRESULT); -windows_targets::link!("hid.dll" "system" fn HidD_FlushQueue(hiddeviceobject : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_FreePreparsedData(preparseddata : PHIDP_PREPARSED_DATA) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_GetAttributes(hiddeviceobject : super::super::Foundation:: HANDLE, attributes : *mut HIDD_ATTRIBUTES) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_GetConfiguration(hiddeviceobject : super::super::Foundation:: HANDLE, configuration : *mut HIDD_CONFIGURATION, configurationlength : u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_GetFeature(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *mut core::ffi::c_void, reportbufferlength : u32) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("hid.dll" "system" fn HidD_FlushQueue(hiddeviceobject : super::super::Foundation:: HANDLE) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_FreePreparsedData(preparseddata : PHIDP_PREPARSED_DATA) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_GetAttributes(hiddeviceobject : super::super::Foundation:: HANDLE, attributes : *mut HIDD_ATTRIBUTES) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_GetConfiguration(hiddeviceobject : super::super::Foundation:: HANDLE, configuration : *mut HIDD_CONFIGURATION, configurationlength : u32) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_GetFeature(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *mut core::ffi::c_void, reportbufferlength : u32) -> bool); windows_targets::link!("hid.dll" "system" fn HidD_GetHidGuid(hidguid : *mut windows_sys::core::GUID)); -windows_targets::link!("hid.dll" "system" fn HidD_GetIndexedString(hiddeviceobject : super::super::Foundation:: HANDLE, stringindex : u32, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_GetInputReport(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *mut core::ffi::c_void, reportbufferlength : u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_GetManufacturerString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_GetMsGenreDescriptor(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_GetNumInputBuffers(hiddeviceobject : super::super::Foundation:: HANDLE, numberbuffers : *mut u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_GetPhysicalDescriptor(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_GetPreparsedData(hiddeviceobject : super::super::Foundation:: HANDLE, preparseddata : *mut PHIDP_PREPARSED_DATA) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_GetProductString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_GetSerialNumberString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_SetConfiguration(hiddeviceobject : super::super::Foundation:: HANDLE, configuration : *const HIDD_CONFIGURATION, configurationlength : u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_SetFeature(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *const core::ffi::c_void, reportbufferlength : u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_SetNumInputBuffers(hiddeviceobject : super::super::Foundation:: HANDLE, numberbuffers : u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("hid.dll" "system" fn HidD_SetOutputReport(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *const core::ffi::c_void, reportbufferlength : u32) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("hid.dll" "system" fn HidD_GetIndexedString(hiddeviceobject : super::super::Foundation:: HANDLE, stringindex : u32, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_GetInputReport(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *mut core::ffi::c_void, reportbufferlength : u32) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_GetManufacturerString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_GetMsGenreDescriptor(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_GetNumInputBuffers(hiddeviceobject : super::super::Foundation:: HANDLE, numberbuffers : *mut u32) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_GetPhysicalDescriptor(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_GetPreparsedData(hiddeviceobject : super::super::Foundation:: HANDLE, preparseddata : *mut PHIDP_PREPARSED_DATA) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_GetProductString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_GetSerialNumberString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_SetConfiguration(hiddeviceobject : super::super::Foundation:: HANDLE, configuration : *const HIDD_CONFIGURATION, configurationlength : u32) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_SetFeature(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *const core::ffi::c_void, reportbufferlength : u32) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_SetNumInputBuffers(hiddeviceobject : super::super::Foundation:: HANDLE, numberbuffers : u32) -> bool); +windows_targets::link!("hid.dll" "system" fn HidD_SetOutputReport(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *const core::ffi::c_void, reportbufferlength : u32) -> bool); windows_targets::link!("hid.dll" "system" fn HidP_GetButtonArray(reporttype : HIDP_REPORT_TYPE, usagepage : u16, linkcollection : u16, usage : u16, buttondata : *mut HIDP_BUTTON_ARRAY_DATA, buttondatalength : *mut u16, preparseddata : PHIDP_PREPARSED_DATA, report : windows_sys::core::PCSTR, reportlength : u32) -> super::super::Foundation:: NTSTATUS); windows_targets::link!("hid.dll" "system" fn HidP_GetButtonCaps(reporttype : HIDP_REPORT_TYPE, buttoncaps : *mut HIDP_BUTTON_CAPS, buttoncapslength : *mut u16, preparseddata : PHIDP_PREPARSED_DATA) -> super::super::Foundation:: NTSTATUS); windows_targets::link!("hid.dll" "system" fn HidP_GetCaps(preparseddata : PHIDP_PREPARSED_DATA, capabilities : *mut HIDP_CAPS) -> super::super::Foundation:: NTSTATUS); @@ -2480,22 +2480,22 @@ pub struct HIDD_CONFIGURATION { #[derive(Clone, Copy)] pub struct HIDP_BUTTON_ARRAY_DATA { pub ArrayIndex: u16, - pub On: super::super::Foundation::BOOLEAN, + pub On: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct HIDP_BUTTON_CAPS { pub UsagePage: u16, pub ReportID: u8, - pub IsAlias: super::super::Foundation::BOOLEAN, + pub IsAlias: bool, pub BitField: u16, pub LinkCollection: u16, pub LinkUsage: u16, pub LinkUsagePage: u16, - pub IsRange: super::super::Foundation::BOOLEAN, - pub IsStringRange: super::super::Foundation::BOOLEAN, - pub IsDesignatorRange: super::super::Foundation::BOOLEAN, - pub IsAbsolute: super::super::Foundation::BOOLEAN, + pub IsRange: bool, + pub IsStringRange: bool, + pub IsDesignatorRange: bool, + pub IsAbsolute: bool, pub ReportCount: u16, pub Reserved2: u16, pub Reserved: [u32; 9], @@ -2562,7 +2562,7 @@ pub struct HIDP_DATA { #[derive(Clone, Copy)] pub union HIDP_DATA_0 { pub RawValue: u32, - pub On: super::super::Foundation::BOOLEAN, + pub On: bool, } #[repr(C, packed(4))] #[derive(Clone, Copy)] @@ -2635,16 +2635,16 @@ pub struct HIDP_UNKNOWN_TOKEN { pub struct HIDP_VALUE_CAPS { pub UsagePage: u16, pub ReportID: u8, - pub IsAlias: super::super::Foundation::BOOLEAN, + pub IsAlias: bool, pub BitField: u16, pub LinkCollection: u16, pub LinkUsage: u16, pub LinkUsagePage: u16, - pub IsRange: super::super::Foundation::BOOLEAN, - pub IsStringRange: super::super::Foundation::BOOLEAN, - pub IsDesignatorRange: super::super::Foundation::BOOLEAN, - pub IsAbsolute: super::super::Foundation::BOOLEAN, - pub HasNull: super::super::Foundation::BOOLEAN, + pub IsRange: bool, + pub IsStringRange: bool, + pub IsDesignatorRange: bool, + pub IsAbsolute: bool, + pub HasNull: bool, pub Reserved: u8, pub BitSize: u16, pub ReportCount: u16, @@ -2691,7 +2691,7 @@ pub struct HIDP_VALUE_CAPS_0_0 { #[derive(Clone, Copy)] pub struct HID_COLLECTION_INFORMATION { pub DescriptorSize: u32, - pub Polled: super::super::Foundation::BOOLEAN, + pub Polled: bool, pub Reserved1: [u8; 1], pub VendorID: u16, pub ProductID: u16, @@ -3342,7 +3342,7 @@ pub struct INDICATOR_LIST { #[derive(Clone, Copy)] pub struct INPUT_BUTTON_ENABLE_INFO { pub ButtonType: GPIOBUTTONS_BUTTON_TYPE, - pub Enabled: super::super::Foundation::BOOLEAN, + pub Enabled: bool, } pub const IOCTL_BUTTON_GET_ENABLED_ON_IDLE: u32 = 721580u32; pub const IOCTL_BUTTON_SET_ENABLED_ON_IDLE: u32 = 721576u32; @@ -3663,7 +3663,7 @@ pub struct MOUSE_UNIT_ID_PARAMETER { } pub const MOUSE_WHEEL: u32 = 1024u32; pub type PFN_HidP_GetVersionInternal = Option super::super::Foundation::NTSTATUS>; -pub type PHIDP_INSERT_SCANCODES = Option super::super::Foundation::BOOLEAN>; +pub type PHIDP_INSERT_SCANCODES = Option bool>; pub type PHIDP_PREPARSED_DATA = isize; #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/sys/src/Windows/Win32/Devices/Nfc/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/Nfc/mod.rs index 89d4364022..8bb98ac74c 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/Nfc/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/Nfc/mod.rs @@ -99,13 +99,13 @@ pub const NFCRMDDI_IOCTL_BASE: u32 = 80u32; #[repr(C)] #[derive(Clone, Copy)] pub struct NFCRM_RADIO_STATE { - pub MediaRadioOn: super::super::Foundation::BOOLEAN, + pub MediaRadioOn: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct NFCRM_SET_RADIO_STATE { - pub SystemStateUpdate: super::super::Foundation::BOOLEAN, - pub MediaRadioOn: super::super::Foundation::BOOLEAN, + pub SystemStateUpdate: bool, + pub MediaRadioOn: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -121,7 +121,7 @@ pub struct NFC_LLCP_CONFIG { pub uWKS: u16, pub bLTO: u8, pub bOptions: u8, - pub fAutoActivate: super::super::Foundation::BOOLEAN, + pub fAutoActivate: bool, } pub type NFC_LLCP_LINK_STATUS = i32; #[repr(C)] @@ -208,8 +208,8 @@ pub type NFC_LLCP_SOCKET_TYPE = i32; #[repr(C)] #[derive(Clone, Copy)] pub struct NFC_NDEF_INFO { - pub fIsNdefFormatted: super::super::Foundation::BOOLEAN, - pub fIsReadOnly: super::super::Foundation::BOOLEAN, + pub fIsNdefFormatted: bool, + pub fIsReadOnly: bool, pub dwActualMessageLength: u32, pub dwMaxMessageLength: u32, } @@ -256,9 +256,9 @@ pub struct NFC_REMOTE_DEV_SEND_INFO { pub struct NFC_RF_DISCOVERY_CONFIG { pub usTotalDuration: u16, pub ulPollConfig: u32, - pub fDisableCardEmulation: super::super::Foundation::BOOLEAN, + pub fDisableCardEmulation: bool, pub ucNfcIPMode: u8, - pub fNfcIPTgtModeDisable: super::super::Foundation::BOOLEAN, + pub fNfcIPTgtModeDisable: bool, pub ucNfcIPTgtMode: u8, pub ucNfcCEMode: u8, pub ucBailoutConfig: u8, @@ -465,9 +465,9 @@ pub struct SECURE_ELEMENT_HCE_DATA_PACKET { #[derive(Clone, Copy)] pub struct SECURE_ELEMENT_NFCC_CAPABILITIES { pub cbMaxRoutingTableSize: u16, - pub IsAidRoutingSupported: super::super::Foundation::BOOLEAN, - pub IsProtocolRoutingSupported: super::super::Foundation::BOOLEAN, - pub IsTechRoutingSupported: super::super::Foundation::BOOLEAN, + pub IsAidRoutingSupported: bool, + pub IsProtocolRoutingSupported: bool, + pub IsTechRoutingSupported: bool, } pub type SECURE_ELEMENT_POWER_MODE = i32; #[repr(C)] diff --git a/crates/libs/sys/src/Windows/Win32/Devices/Pwm/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/Pwm/mod.rs index 072a6a1c1e..83b9343e26 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/Pwm/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/Pwm/mod.rs @@ -58,7 +58,7 @@ pub struct PWM_PIN_GET_POLARITY_OUTPUT { #[repr(C)] #[derive(Clone, Copy)] pub struct PWM_PIN_IS_STARTED_OUTPUT { - pub IsStarted: super::super::Foundation::BOOLEAN, + pub IsStarted: bool, } #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/sys/src/Windows/Win32/Devices/Sensors/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/Sensors/mod.rs index 703671b4a0..57a8600e2e 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/Sensors/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/Sensors/mod.rs @@ -20,20 +20,20 @@ windows_targets::link!("sensorsutilsv2.dll" "system" fn CollectionsListSortSubsc #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] windows_targets::link!("sensorsutilsv2.dll" "system" fn CollectionsListUpdateMarshalledPointer(collection : *mut SENSOR_COLLECTION_LIST) -> super::super::Foundation:: NTSTATUS); #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] -windows_targets::link!("sensorsutilsv2.dll" "system" fn EvaluateActivityThresholds(newsample : *const SENSOR_COLLECTION_LIST, oldsample : *const SENSOR_COLLECTION_LIST, thresholds : *const SENSOR_COLLECTION_LIST) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("sensorsutilsv2.dll" "system" fn EvaluateActivityThresholds(newsample : *const SENSOR_COLLECTION_LIST, oldsample : *const SENSOR_COLLECTION_LIST, thresholds : *const SENSOR_COLLECTION_LIST) -> bool); windows_targets::link!("sensorsutilsv2.dll" "system" fn GetPerformanceTime(timems : *mut u32) -> super::super::Foundation:: NTSTATUS); #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] windows_targets::link!("sensorsutilsv2.dll" "system" fn InitPropVariantFromCLSIDArray(members : *const windows_sys::core::GUID, size : u32, ppropvar : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> windows_sys::core::HRESULT); #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] windows_targets::link!("sensorsutilsv2.dll" "system" fn InitPropVariantFromFloat(fltval : f32, ppropvar : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> windows_sys::core::HRESULT); #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] -windows_targets::link!("sensorsutilsv2.dll" "system" fn IsCollectionListSame(lista : *const SENSOR_COLLECTION_LIST, listb : *const SENSOR_COLLECTION_LIST) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("sensorsutilsv2.dll" "system" fn IsGUIDPresentInList(guidarray : *const windows_sys::core::GUID, arraylength : u32, guidelem : *const windows_sys::core::GUID) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("sensorsutilsv2.dll" "system" fn IsCollectionListSame(lista : *const SENSOR_COLLECTION_LIST, listb : *const SENSOR_COLLECTION_LIST) -> bool); +windows_targets::link!("sensorsutilsv2.dll" "system" fn IsGUIDPresentInList(guidarray : *const windows_sys::core::GUID, arraylength : u32, guidelem : *const windows_sys::core::GUID) -> bool); #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] -windows_targets::link!("sensorsutilsv2.dll" "system" fn IsKeyPresentInCollectionList(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("sensorsutilsv2.dll" "system" fn IsKeyPresentInPropertyList(plist : *const SENSOR_PROPERTY_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("sensorsutilsv2.dll" "system" fn IsKeyPresentInCollectionList(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY) -> bool); +windows_targets::link!("sensorsutilsv2.dll" "system" fn IsKeyPresentInPropertyList(plist : *const SENSOR_PROPERTY_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY) -> bool); #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] -windows_targets::link!("sensorsutilsv2.dll" "system" fn IsSensorSubscribed(subscriptionlist : *const SENSOR_COLLECTION_LIST, currenttype : windows_sys::core::GUID) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("sensorsutilsv2.dll" "system" fn IsSensorSubscribed(subscriptionlist : *const SENSOR_COLLECTION_LIST, currenttype : windows_sys::core::GUID) -> bool); #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetBool(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: NTSTATUS); #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -55,13 +55,13 @@ windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetNthUlon #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetNthUshort(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, occurrence : u32, pretvalue : *mut u16) -> super::super::Foundation:: NTSTATUS); #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] -windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetPropVariant(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, typecheck : super::super::Foundation:: BOOLEAN, pvalue : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS); +windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetPropVariant(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, typecheck : bool, pvalue : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS); #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetUlong(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut u32) -> super::super::Foundation:: NTSTATUS); #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetUshort(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut u16) -> super::super::Foundation:: NTSTATUS); #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] -windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeySetPropVariant(plist : *mut SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, typecheck : super::super::Foundation:: BOOLEAN, pvalue : *const super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS); +windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeySetPropVariant(plist : *mut SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, typecheck : bool, pvalue : *const super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS); #[cfg(all(feature = "Win32_Devices_Properties", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] windows_targets::link!("sensorsutilsv2.dll" "system" fn PropVariantGetInformation(propvariantvalue : *const super::super::System::Com::StructuredStorage:: PROPVARIANT, propvariantoffset : *mut u32, propvariantsize : *mut u32, propvariantpointer : *mut *mut core::ffi::c_void, remappedtype : *mut super::Properties:: DEVPROPTYPE) -> super::super::Foundation:: NTSTATUS); windows_targets::link!("sensorsutilsv2.dll" "system" fn PropertiesListCopy(target : *mut SENSOR_PROPERTY_LIST, source : *const SENSOR_PROPERTY_LIST) -> super::super::Foundation:: NTSTATUS); diff --git a/crates/libs/sys/src/Windows/Win32/Devices/SerialCommunication/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/SerialCommunication/mod.rs index ff6c878e43..92c335274e 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/SerialCommunication/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/SerialCommunication/mod.rs @@ -199,8 +199,8 @@ pub struct SERIAL_STATUS { pub HoldReasons: u32, pub AmountInInQueue: u32, pub AmountInOutQueue: u32, - pub EofReceived: super::super::Foundation::BOOLEAN, - pub WaitForImmediate: super::super::Foundation::BOOLEAN, + pub EofReceived: bool, + pub WaitForImmediate: bool, } #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/sys/src/Windows/Win32/Devices/Usb/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/Usb/mod.rs index 1b4466fddc..f5ef223e22 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/Usb/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/Usb/mod.rs @@ -631,8 +631,8 @@ pub struct USBD_VERSION_INFORMATION { #[derive(Clone, Copy)] pub struct USBFN_BUS_CONFIGURATION_INFO { pub ConfigurationName: [u16; 40], - pub IsCurrent: super::super::Foundation::BOOLEAN, - pub IsActive: super::super::Foundation::BOOLEAN, + pub IsCurrent: bool, + pub IsActive: bool, } pub type USBFN_BUS_SPEED = i32; #[repr(C)] @@ -642,7 +642,7 @@ pub struct USBFN_CLASS_INFORMATION_PACKET { pub HighSpeedClassInterface: USBFN_CLASS_INTERFACE, pub InterfaceName: [u16; 40], pub InterfaceGuid: [u16; 39], - pub HasInterfaceGuid: super::super::Foundation::BOOLEAN, + pub HasInterfaceGuid: bool, pub SuperSpeedClassInterface: USBFN_CLASS_INTERFACE, } #[repr(C)] @@ -653,7 +653,7 @@ pub struct USBFN_CLASS_INFORMATION_PACKET_EX { pub SuperSpeedClassInterfaceEx: USBFN_CLASS_INTERFACE_EX, pub InterfaceName: [u16; 40], pub InterfaceGuid: [u16; 39], - pub HasInterfaceGuid: super::super::Foundation::BOOLEAN, + pub HasInterfaceGuid: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -989,7 +989,7 @@ pub struct USB_BUS_STATISTICS_0 { pub WorkerSignalCount: u32, pub CommonBufferBytes: u32, pub WorkerIdleTimeMs: u32, - pub RootHubEnabled: super::super::Foundation::BOOLEAN, + pub RootHubEnabled: bool, pub RootHubDevicePowerState: u8, pub Unused: u8, pub NameIndex: u8, @@ -1025,7 +1025,7 @@ pub struct USB_COMPOSITE_FUNCTION_INFO { pub FunctionNumber: u8, pub BaseInterfaceNumber: u8, pub NumberOfInterfaces: u8, - pub FunctionIsIdle: super::super::Foundation::BOOLEAN, + pub FunctionIsIdle: bool, } #[repr(C, packed(1))] #[derive(Clone, Copy)] @@ -1554,8 +1554,8 @@ pub struct USB_DRIVER_VERSION_PARAMETERS { pub DriverTrackingCode: u32, pub USBDI_Version: u32, pub USBUSER_Version: u32, - pub CheckedPortDriver: super::super::Foundation::BOOLEAN, - pub CheckedMiniportDriver: super::super::Foundation::BOOLEAN, + pub CheckedPortDriver: bool, + pub CheckedMiniportDriver: bool, pub USB_Version: u16, } pub const USB_ENABLE_PORT: u32 = 5u32; @@ -1764,8 +1764,8 @@ pub struct USB_HUB_DEVICE_INFO { pub HubDescriptor: USB_HUB_DESCRIPTOR, pub HubNumber: u32, pub DeviceAddress: u16, - pub HubIsSelfPowered: super::super::Foundation::BOOLEAN, - pub HubIsRootHub: super::super::Foundation::BOOLEAN, + pub HubIsSelfPowered: bool, + pub HubIsRootHub: bool, pub HubCapabilities: USB_HUB_CAPABILITIES, pub NumberOfHubPorts: u32, pub PortInfo: [USB_HUB_PORT_INFORMATION; 1], @@ -1785,7 +1785,7 @@ pub struct USB_HUB_DEVICE_UXD_SETTINGS { #[derive(Clone, Copy)] pub struct USB_HUB_INFORMATION { pub HubDescriptor: USB_HUB_DESCRIPTOR, - pub HubIsBusPowered: super::super::Foundation::BOOLEAN, + pub HubIsBusPowered: bool, } #[repr(C, packed(1))] #[derive(Clone, Copy)] @@ -1938,8 +1938,8 @@ pub struct USB_NODE_CONNECTION_INFORMATION { pub ConnectionIndex: u32, pub DeviceDescriptor: USB_DEVICE_DESCRIPTOR, pub CurrentConfigurationValue: u8, - pub LowSpeed: super::super::Foundation::BOOLEAN, - pub DeviceIsHub: super::super::Foundation::BOOLEAN, + pub LowSpeed: bool, + pub DeviceIsHub: bool, pub DeviceAddress: u16, pub NumberOfOpenPipes: u32, pub ConnectionStatus: USB_CONNECTION_STATUS, @@ -1952,7 +1952,7 @@ pub struct USB_NODE_CONNECTION_INFORMATION_EX { pub DeviceDescriptor: USB_DEVICE_DESCRIPTOR, pub CurrentConfigurationValue: u8, pub Speed: u8, - pub DeviceIsHub: super::super::Foundation::BOOLEAN, + pub DeviceIsHub: bool, pub DeviceAddress: u16, pub NumberOfOpenPipes: u32, pub ConnectionStatus: USB_CONNECTION_STATUS, @@ -2129,8 +2129,8 @@ pub struct USB_POWER_INFO { pub RhDeviceWake: WDMUSB_POWER_STATE, pub RhSystemWake: WDMUSB_POWER_STATE, pub LastSystemSleepState: WDMUSB_POWER_STATE, - pub CanWakeup: super::super::Foundation::BOOLEAN, - pub IsPowered: super::super::Foundation::BOOLEAN, + pub CanWakeup: bool, + pub IsPowered: bool, } #[repr(C, packed(1))] #[derive(Clone, Copy)] @@ -2203,7 +2203,7 @@ pub const USB_START_TRACKING_FOR_TIME_SYNC: u32 = 285u32; #[derive(Clone, Copy)] pub struct USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION { pub TimeTrackingHandle: super::super::Foundation::HANDLE, - pub IsStartupDelayTolerable: super::super::Foundation::BOOLEAN, + pub IsStartupDelayTolerable: bool, } pub const USB_STATUS_EXT_PORT_STATUS: u32 = 2u32; pub const USB_STATUS_PD_STATUS: u32 = 1u32; diff --git a/crates/libs/sys/src/Windows/Win32/Foundation/mod.rs b/crates/libs/sys/src/Windows/Win32/Foundation/mod.rs index fe891ddd06..7e192b52ce 100644 --- a/crates/libs/sys/src/Windows/Win32/Foundation/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Foundation/mod.rs @@ -61,7 +61,6 @@ pub struct APP_LOCAL_DEVICE_ID { } pub const APP_LOCAL_DEVICE_ID_SIZE: u32 = 32u32; pub type BOOL = i32; -pub type BOOLEAN = u8; pub const BT_E_SPURIOUS_ACTIVATION: windows_sys::core::HRESULT = 0x80080300_u32 as _; pub const CACHE_E_FIRST: i32 = -2147221136i32; pub const CACHE_E_LAST: i32 = -2147221121i32; diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs index 9aabf56b56..9130485681 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs @@ -1380,7 +1380,7 @@ pub struct DHCP_SERVER_OPTIONS { pub DNSFlags: u32, pub DNSNameLength: u32, pub DNSName: *mut u8, - pub DSDomainNameRequested: super::super::Foundation::BOOLEAN, + pub DSDomainNameRequested: bool, pub DSDomainName: windows_sys::core::PSTR, pub DSDomainNameLen: u32, pub ScopeId: *mut u32, diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs index 6c73c7fd3a..29c7038f7d 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs @@ -220,18 +220,18 @@ windows_targets::link!("iphlpapi.dll" "system" fn NhpAllocateAndGetInterfaceInfo windows_targets::link!("iphlpapi.dll" "system" fn NotifyAddrChange(handle : *mut super::super::Foundation:: HANDLE, overlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); windows_targets::link!("iphlpapi.dll" "system" fn NotifyIfTimestampConfigChange(callercontext : *const core::ffi::c_void, callback : PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK, notificationhandle : *mut HIFTIMESTAMPCHANGE) -> u32); #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] -windows_targets::link!("iphlpapi.dll" "system" fn NotifyIpInterfaceChange(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PIPINTERFACE_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); +windows_targets::link!("iphlpapi.dll" "system" fn NotifyIpInterfaceChange(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PIPINTERFACE_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); #[cfg(feature = "Win32_Networking_WinSock")] -windows_targets::link!("iphlpapi.dll" "system" fn NotifyNetworkConnectivityHintChange(callback : PNETWORK_CONNECTIVITY_HINT_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); +windows_targets::link!("iphlpapi.dll" "system" fn NotifyNetworkConnectivityHintChange(callback : PNETWORK_CONNECTIVITY_HINT_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); #[cfg(feature = "Win32_System_IO")] windows_targets::link!("iphlpapi.dll" "system" fn NotifyRouteChange(handle : *mut super::super::Foundation:: HANDLE, overlapped : *const super::super::System::IO:: OVERLAPPED) -> u32); #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] -windows_targets::link!("iphlpapi.dll" "system" fn NotifyRouteChange2(addressfamily : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PIPFORWARD_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); +windows_targets::link!("iphlpapi.dll" "system" fn NotifyRouteChange2(addressfamily : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PIPFORWARD_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] windows_targets::link!("iphlpapi.dll" "system" fn NotifyStableUnicastIpAddressTable(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, table : *mut *mut MIB_UNICASTIPADDRESS_TABLE, callercallback : PSTABLE_UNICAST_IPADDRESS_TABLE_CALLBACK, callercontext : *const core::ffi::c_void, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); -windows_targets::link!("iphlpapi.dll" "system" fn NotifyTeredoPortChange(callback : PTEREDO_PORT_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); +windows_targets::link!("iphlpapi.dll" "system" fn NotifyTeredoPortChange(callback : PTEREDO_PORT_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] -windows_targets::link!("iphlpapi.dll" "system" fn NotifyUnicastIpAddressChange(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PUNICAST_IPADDRESS_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); +windows_targets::link!("iphlpapi.dll" "system" fn NotifyUnicastIpAddressChange(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PUNICAST_IPADDRESS_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); #[cfg(feature = "Win32_Networking_WinSock")] windows_targets::link!("iphlpapi.dll" "system" fn ParseNetworkString(networkstring : windows_sys::core::PCWSTR, types : u32, addressinfo : *mut NET_ADDRESS_INFO, portnumber : *mut u16, prefixlength : *mut u8) -> u32); windows_targets::link!("iphlpapi.dll" "system" fn PfAddFiltersToInterface(ih : *mut core::ffi::c_void, cinfilters : u32, pfiltin : *mut PF_FILTER_DESCRIPTOR, coutfilters : u32, pfiltout : *mut PF_FILTER_DESCRIPTOR, pfhandle : *mut *mut core::ffi::c_void) -> u32); @@ -779,30 +779,30 @@ pub const INTERFACE_HARDWARE_CROSSTIMESTAMP_VERSION_1: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy)] pub struct INTERFACE_HARDWARE_TIMESTAMP_CAPABILITIES { - pub PtpV2OverUdpIPv4EventMessageReceive: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv4AllMessageReceive: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv4EventMessageTransmit: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv4AllMessageTransmit: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6EventMessageReceive: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6AllMessageReceive: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6EventMessageTransmit: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6AllMessageTransmit: super::super::Foundation::BOOLEAN, - pub AllReceive: super::super::Foundation::BOOLEAN, - pub AllTransmit: super::super::Foundation::BOOLEAN, - pub TaggedTransmit: super::super::Foundation::BOOLEAN, + pub PtpV2OverUdpIPv4EventMessageReceive: bool, + pub PtpV2OverUdpIPv4AllMessageReceive: bool, + pub PtpV2OverUdpIPv4EventMessageTransmit: bool, + pub PtpV2OverUdpIPv4AllMessageTransmit: bool, + pub PtpV2OverUdpIPv6EventMessageReceive: bool, + pub PtpV2OverUdpIPv6AllMessageReceive: bool, + pub PtpV2OverUdpIPv6EventMessageTransmit: bool, + pub PtpV2OverUdpIPv6AllMessageTransmit: bool, + pub AllReceive: bool, + pub AllTransmit: bool, + pub TaggedTransmit: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct INTERFACE_SOFTWARE_TIMESTAMP_CAPABILITIES { - pub AllReceive: super::super::Foundation::BOOLEAN, - pub AllTransmit: super::super::Foundation::BOOLEAN, - pub TaggedTransmit: super::super::Foundation::BOOLEAN, + pub AllReceive: bool, + pub AllTransmit: bool, + pub TaggedTransmit: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct INTERFACE_TIMESTAMP_CAPABILITIES { pub HardwareClockFrequencyHz: u64, - pub SupportsCrossTimestamp: super::super::Foundation::BOOLEAN, + pub SupportsCrossTimestamp: bool, pub HardwareCapabilities: INTERFACE_HARDWARE_TIMESTAMP_CAPABILITIES, pub SoftwareCapabilities: INTERFACE_SOFTWARE_TIMESTAMP_CAPABILITIES, } @@ -1684,10 +1684,10 @@ pub struct MIB_IPFORWARD_ROW2 { pub PreferredLifetime: u32, pub Metric: u32, pub Protocol: super::super::Networking::WinSock::NL_ROUTE_PROTOCOL, - pub Loopback: super::super::Foundation::BOOLEAN, - pub AutoconfigureAddress: super::super::Foundation::BOOLEAN, - pub Publish: super::super::Foundation::BOOLEAN, - pub Immortal: super::super::Foundation::BOOLEAN, + pub Loopback: bool, + pub AutoconfigureAddress: bool, + pub Publish: bool, + pub Immortal: bool, pub Age: u32, pub Origin: super::super::Networking::WinSock::NL_ROUTE_ORIGIN, } @@ -1710,15 +1710,15 @@ pub struct MIB_IPINTERFACE_ROW { pub InterfaceIdentifier: u64, pub MinRouterAdvertisementInterval: u32, pub MaxRouterAdvertisementInterval: u32, - pub AdvertisingEnabled: super::super::Foundation::BOOLEAN, - pub ForwardingEnabled: super::super::Foundation::BOOLEAN, - pub WeakHostSend: super::super::Foundation::BOOLEAN, - pub WeakHostReceive: super::super::Foundation::BOOLEAN, - pub UseAutomaticMetric: super::super::Foundation::BOOLEAN, - pub UseNeighborUnreachabilityDetection: super::super::Foundation::BOOLEAN, - pub ManagedAddressConfigurationSupported: super::super::Foundation::BOOLEAN, - pub OtherStatefulConfigurationSupported: super::super::Foundation::BOOLEAN, - pub AdvertiseDefaultRoute: super::super::Foundation::BOOLEAN, + pub AdvertisingEnabled: bool, + pub ForwardingEnabled: bool, + pub WeakHostSend: bool, + pub WeakHostReceive: bool, + pub UseAutomaticMetric: bool, + pub UseNeighborUnreachabilityDetection: bool, + pub ManagedAddressConfigurationSupported: bool, + pub OtherStatefulConfigurationSupported: bool, + pub AdvertiseDefaultRoute: bool, pub RouterDiscoveryBehavior: super::super::Networking::WinSock::NL_ROUTER_DISCOVERY_BEHAVIOR, pub DadTransmits: u32, pub BaseReachableTime: u32, @@ -1730,14 +1730,14 @@ pub struct MIB_IPINTERFACE_ROW { pub SitePrefixLength: u32, pub Metric: u32, pub NlMtu: u32, - pub Connected: super::super::Foundation::BOOLEAN, - pub SupportsWakeUpPatterns: super::super::Foundation::BOOLEAN, - pub SupportsNeighborDiscovery: super::super::Foundation::BOOLEAN, - pub SupportsRouterDiscovery: super::super::Foundation::BOOLEAN, + pub Connected: bool, + pub SupportsWakeUpPatterns: bool, + pub SupportsNeighborDiscovery: bool, + pub SupportsRouterDiscovery: bool, pub ReachableTime: u32, pub TransmitOffload: super::super::Networking::WinSock::NL_INTERFACE_OFFLOAD_ROD, pub ReceiveOffload: super::super::Networking::WinSock::NL_INTERFACE_OFFLOAD_ROD, - pub DisableDefaultRoutes: super::super::Foundation::BOOLEAN, + pub DisableDefaultRoutes: bool, } #[repr(C)] #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] @@ -1982,7 +1982,7 @@ pub struct MIB_IPPATH_ROW { pub RttMean: u32, pub RttDeviation: u32, pub Anonymous: MIB_IPPATH_ROW_0, - pub IsReachable: super::super::Foundation::BOOLEAN, + pub IsReachable: bool, pub LinkTransmitSpeed: u64, pub LinkReceiveSpeed: u64, } @@ -2585,7 +2585,7 @@ pub struct MIB_UNICASTIPADDRESS_ROW { pub ValidLifetime: u32, pub PreferredLifetime: u32, pub OnLinkPrefixLength: u8, - pub SkipAsSource: super::super::Foundation::BOOLEAN, + pub SkipAsSource: bool, pub DadState: super::super::Networking::WinSock::NL_DAD_STATE, pub ScopeId: super::super::Networking::WinSock::SCOPE_ID, pub CreationTimeStamp: i64, @@ -2767,8 +2767,8 @@ pub struct TCP_ESTATS_BANDWIDTH_ROD_v0 { pub InboundBandwidth: u64, pub OutboundInstability: u64, pub InboundInstability: u64, - pub OutboundBandwidthPeaked: super::super::Foundation::BOOLEAN, - pub InboundBandwidthPeaked: super::super::Foundation::BOOLEAN, + pub OutboundBandwidthPeaked: bool, + pub InboundBandwidthPeaked: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2797,7 +2797,7 @@ pub struct TCP_ESTATS_DATA_ROD_v0 { #[repr(C)] #[derive(Clone, Copy)] pub struct TCP_ESTATS_DATA_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2810,7 +2810,7 @@ pub struct TCP_ESTATS_FINE_RTT_ROD_v0 { #[repr(C)] #[derive(Clone, Copy)] pub struct TCP_ESTATS_FINE_RTT_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2823,7 +2823,7 @@ pub struct TCP_ESTATS_OBS_REC_ROD_v0 { #[repr(C)] #[derive(Clone, Copy)] pub struct TCP_ESTATS_OBS_REC_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2872,7 +2872,7 @@ pub struct TCP_ESTATS_PATH_ROD_v0 { #[repr(C)] #[derive(Clone, Copy)] pub struct TCP_ESTATS_PATH_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2895,7 +2895,7 @@ pub struct TCP_ESTATS_REC_ROD_v0 { #[repr(C)] #[derive(Clone, Copy)] pub struct TCP_ESTATS_REC_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2908,7 +2908,7 @@ pub struct TCP_ESTATS_SEND_BUFF_ROD_v0 { #[repr(C)] #[derive(Clone, Copy)] pub struct TCP_ESTATS_SEND_BUFF_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2940,12 +2940,12 @@ pub struct TCP_ESTATS_SND_CONG_ROS_v0 { #[repr(C)] #[derive(Clone, Copy)] pub struct TCP_ESTATS_SND_CONG_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct TCP_ESTATS_SYN_OPTS_ROS_v0 { - pub ActiveOpen: super::super::Foundation::BOOLEAN, + pub ActiveOpen: bool, pub MssRcvd: u32, pub MssSent: u32, } diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/Ndis/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/Ndis/mod.rs index b45f18b984..1d537bcc9e 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/Ndis/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/Ndis/mod.rs @@ -795,8 +795,8 @@ pub struct NDIS_INTERFACE_INFORMATION { pub MediaConnectState: NET_IF_MEDIA_CONNECT_STATE, pub MediaDuplexState: NET_IF_MEDIA_DUPLEX_STATE, pub ifMtu: u32, - pub ifPromiscuousMode: super::super::Foundation::BOOLEAN, - pub ifDeviceWakeUpEnable: super::super::Foundation::BOOLEAN, + pub ifPromiscuousMode: bool, + pub ifDeviceWakeUpEnable: bool, pub XmitLinkSpeed: u64, pub RcvLinkSpeed: u64, pub ifLastChange: u64, @@ -1760,7 +1760,7 @@ pub const NDIS_TIMEOUT_DPC_REQUEST_CAPABILITIES_REVISION_1: u32 = 1u32; pub struct NDIS_TIMESTAMP_CAPABILITIES { pub Header: NDIS_OBJECT_HEADER, pub HardwareClockFrequencyHz: u64, - pub CrossTimestamp: super::super::Foundation::BOOLEAN, + pub CrossTimestamp: bool, pub Reserved1: u64, pub Reserved2: u64, pub TimestampFlags: NDIS_TIMESTAMP_CAPABILITY_FLAGS, @@ -1769,20 +1769,20 @@ pub const NDIS_TIMESTAMP_CAPABILITIES_REVISION_1: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy)] pub struct NDIS_TIMESTAMP_CAPABILITY_FLAGS { - pub PtpV2OverUdpIPv4EventMsgReceiveHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv4AllMsgReceiveHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv4EventMsgTransmitHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv4AllMsgTransmitHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6EventMsgReceiveHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6AllMsgReceiveHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6EventMsgTransmitHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6AllMsgTransmitHw: super::super::Foundation::BOOLEAN, - pub AllReceiveHw: super::super::Foundation::BOOLEAN, - pub AllTransmitHw: super::super::Foundation::BOOLEAN, - pub TaggedTransmitHw: super::super::Foundation::BOOLEAN, - pub AllReceiveSw: super::super::Foundation::BOOLEAN, - pub AllTransmitSw: super::super::Foundation::BOOLEAN, - pub TaggedTransmitSw: super::super::Foundation::BOOLEAN, + pub PtpV2OverUdpIPv4EventMsgReceiveHw: bool, + pub PtpV2OverUdpIPv4AllMsgReceiveHw: bool, + pub PtpV2OverUdpIPv4EventMsgTransmitHw: bool, + pub PtpV2OverUdpIPv4AllMsgTransmitHw: bool, + pub PtpV2OverUdpIPv6EventMsgReceiveHw: bool, + pub PtpV2OverUdpIPv6AllMsgReceiveHw: bool, + pub PtpV2OverUdpIPv6EventMsgTransmitHw: bool, + pub PtpV2OverUdpIPv6AllMsgTransmitHw: bool, + pub AllReceiveHw: bool, + pub AllTransmitHw: bool, + pub TaggedTransmitHw: bool, + pub AllReceiveSw: bool, + pub AllTransmitSw: bool, + pub TaggedTransmitSw: bool, } #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs index bdfc775305..42029c48b3 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs @@ -2204,7 +2204,7 @@ pub type NET_USER_ENUM_FILTER_FLAGS = u32; #[derive(Clone, Copy)] pub struct NET_VALIDATE_AUTHENTICATION_INPUT_ARG { pub InputPersistedFields: NET_VALIDATE_PERSISTED_FIELDS, - pub PasswordMatched: super::super::Foundation::BOOLEAN, + pub PasswordMatched: bool, } pub const NET_VALIDATE_BAD_PASSWORD_COUNT: u32 = 8u32; pub const NET_VALIDATE_BAD_PASSWORD_TIME: u32 = 2u32; @@ -2222,7 +2222,7 @@ pub struct NET_VALIDATE_PASSWORD_CHANGE_INPUT_ARG { pub ClearPassword: windows_sys::core::PWSTR, pub UserAccountName: windows_sys::core::PWSTR, pub HashedPassword: NET_VALIDATE_PASSWORD_HASH, - pub PasswordMatch: super::super::Foundation::BOOLEAN, + pub PasswordMatch: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2240,8 +2240,8 @@ pub struct NET_VALIDATE_PASSWORD_RESET_INPUT_ARG { pub ClearPassword: windows_sys::core::PWSTR, pub UserAccountName: windows_sys::core::PWSTR, pub HashedPassword: NET_VALIDATE_PASSWORD_HASH, - pub PasswordMustChangeAtNextLogon: super::super::Foundation::BOOLEAN, - pub ClearLockout: super::super::Foundation::BOOLEAN, + pub PasswordMustChangeAtNextLogon: bool, + pub ClearLockout: bool, } pub type NET_VALIDATE_PASSWORD_TYPE = i32; #[repr(C)] @@ -3080,12 +3080,12 @@ pub struct SERVER_INFO_1598 { #[repr(C)] #[derive(Clone, Copy)] pub struct SERVER_INFO_1599 { - pub sv1598_enforcekerberosreauthentication: super::super::Foundation::BOOLEAN, + pub sv1598_enforcekerberosreauthentication: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct SERVER_INFO_1600 { - pub sv1598_disabledos: super::super::Foundation::BOOLEAN, + pub sv1598_disabledos: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -3578,7 +3578,7 @@ pub const SHPWLEN: u32 = 8u32; #[repr(C)] #[derive(Clone, Copy)] pub struct SMB_COMPRESSION_INFO { - pub Switch: super::super::Foundation::BOOLEAN, + pub Switch: bool, pub Reserved1: u8, pub Reserved2: u16, pub Reserved3: u32, @@ -3849,7 +3849,7 @@ pub const TRACE_USE_MSEC: u32 = 4u32; #[derive(Clone, Copy)] pub struct TRANSPORT_INFO { pub Type: TRANSPORT_TYPE, - pub SkipCertificateCheck: super::super::Foundation::BOOLEAN, + pub SkipCertificateCheck: bool, } pub const TRANSPORT_NAME_PARMNUM: u32 = 202u32; pub const TRANSPORT_QUALITYOFSERVICE_PARMNUM: u32 = 201u32; diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/QoS/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/QoS/mod.rs index 4ee39e37b8..2a38e46f20 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/QoS/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/QoS/mod.rs @@ -36,7 +36,7 @@ windows_targets::link!("traffic.dll" "system" fn TcOpenInterfaceA(pinterfacename windows_targets::link!("traffic.dll" "system" fn TcOpenInterfaceW(pinterfacename : windows_sys::core::PCWSTR, clienthandle : super::super::Foundation:: HANDLE, clifcctx : super::super::Foundation:: HANDLE, pifchandle : *mut super::super::Foundation:: HANDLE) -> u32); windows_targets::link!("traffic.dll" "system" fn TcQueryFlowA(pflowname : windows_sys::core::PCSTR, pguidparam : *const windows_sys::core::GUID, pbuffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); windows_targets::link!("traffic.dll" "system" fn TcQueryFlowW(pflowname : windows_sys::core::PCWSTR, pguidparam : *const windows_sys::core::GUID, pbuffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); -windows_targets::link!("traffic.dll" "system" fn TcQueryInterface(ifchandle : super::super::Foundation:: HANDLE, pguidparam : *const windows_sys::core::GUID, notifychange : super::super::Foundation:: BOOLEAN, pbuffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); +windows_targets::link!("traffic.dll" "system" fn TcQueryInterface(ifchandle : super::super::Foundation:: HANDLE, pguidparam : *const windows_sys::core::GUID, notifychange : bool, pbuffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); windows_targets::link!("traffic.dll" "system" fn TcRegisterClient(tciversion : u32, clregctx : super::super::Foundation:: HANDLE, clienthandlerlist : *const TCI_CLIENT_FUNC_LIST, pclienthandle : *mut super::super::Foundation:: HANDLE) -> u32); windows_targets::link!("traffic.dll" "system" fn TcSetFlowA(pflowname : windows_sys::core::PCSTR, pguidparam : *const windows_sys::core::GUID, buffersize : u32, buffer : *const core::ffi::c_void) -> u32); windows_targets::link!("traffic.dll" "system" fn TcSetFlowW(pflowname : windows_sys::core::PCWSTR, pguidparam : *const windows_sys::core::GUID, buffersize : u32, buffer : *const core::ffi::c_void) -> u32); diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/WiFi/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/WiFi/mod.rs index 620b0712df..93f9494676 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/WiFi/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/WiFi/mod.rs @@ -439,8 +439,8 @@ pub struct DOT11_ASSOCIATION_COMPLETION_PARAMETERS { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub MacAddr: [u8; 6], pub uStatus: u32, - pub bReAssocReq: super::super::Foundation::BOOLEAN, - pub bReAssocResp: super::super::Foundation::BOOLEAN, + pub bReAssocReq: bool, + pub bReAssocResp: bool, pub uAssocReqOffset: u32, pub uAssocReqSize: u32, pub uAssocRespOffset: u32, @@ -454,8 +454,8 @@ pub struct DOT11_ASSOCIATION_COMPLETION_PARAMETERS { pub MulticastCipher: DOT11_CIPHER_ALGORITHM, pub uActivePhyListOffset: u32, pub uActivePhyListSize: u32, - pub bFourAddressSupported: super::super::Foundation::BOOLEAN, - pub bPortAuthorized: super::super::Foundation::BOOLEAN, + pub bFourAddressSupported: bool, + pub bPortAuthorized: bool, pub ucActiveQoSProtocol: u8, pub DSInfo: DOT11_DS_INFO, pub uEncapTableOffset: u32, @@ -618,7 +618,7 @@ pub struct DOT11_BSS_ENTRY { pub dot11BSSType: DOT11_BSS_TYPE, pub lRSSI: i32, pub uLinkQuality: u32, - pub bInRegDomain: super::super::Foundation::BOOLEAN, + pub bInRegDomain: bool, pub usBeaconPeriod: u16, pub ullTimestamp: u64, pub ullHostTimestamp: u64, @@ -723,8 +723,8 @@ pub struct DOT11_CIPHER_DEFAULT_KEY_VALUE { pub uKeyIndex: u32, pub AlgorithmId: DOT11_CIPHER_ALGORITHM, pub MacAddr: [u8; 6], - pub bDelete: super::super::Foundation::BOOLEAN, - pub bStatic: super::super::Foundation::BOOLEAN, + pub bDelete: bool, + pub bStatic: bool, pub usKeyLength: u16, pub ucKey: [u8; 1], } @@ -735,8 +735,8 @@ pub struct DOT11_CIPHER_KEY_MAPPING_KEY_VALUE { pub PeerMacAddr: [u8; 6], pub AlgorithmId: DOT11_CIPHER_ALGORITHM, pub Direction: DOT11_DIRECTION, - pub bDelete: super::super::Foundation::BOOLEAN, - pub bStatic: super::super::Foundation::BOOLEAN, + pub bDelete: bool, + pub bStatic: bool, pub usKeyLength: u16, pub ucKey: [u8; 1], } @@ -805,10 +805,10 @@ pub struct DOT11_CURRENT_OPERATION_MODE { #[derive(Clone, Copy)] pub struct DOT11_CURRENT_OPTIONAL_CAPABILITY { pub uReserved: u32, - pub bDot11CFPollable: super::super::Foundation::BOOLEAN, - pub bDot11PCF: super::super::Foundation::BOOLEAN, - pub bDot11PCFMPDUTransferToPC: super::super::Foundation::BOOLEAN, - pub bStrictlyOrderedServiceClass: super::super::Foundation::BOOLEAN, + pub bDot11CFPollable: bool, + pub bDot11PCF: bool, + pub bDot11PCFMPDUTransferToPC: bool, + pub bStrictlyOrderedServiceClass: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -883,7 +883,7 @@ pub const DOT11_DISASSOCIATION_PARAMETERS_REVISION_1: u32 = 1u32; #[derive(Clone, Copy)] pub struct DOT11_DIVERSITY_SELECTION_RX { pub uAntennaListIndex: u32, - pub bDiversitySelectionRX: super::super::Foundation::BOOLEAN, + pub bDiversitySelectionRX: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -916,9 +916,9 @@ pub const DOT11_ENCAP_RFC_1042: u32 = 1u32; #[derive(Clone, Copy)] pub struct DOT11_ERP_PHY_ATTRIBUTES { pub HRDSSSAttributes: DOT11_HRDSSS_PHY_ATTRIBUTES, - pub bERPPBCCOptionImplemented: super::super::Foundation::BOOLEAN, - pub bDSSSOFDMOptionImplemented: super::super::Foundation::BOOLEAN, - pub bShortSlotTimeOptionImplemented: super::super::Foundation::BOOLEAN, + pub bERPPBCCOptionImplemented: bool, + pub bDSSSOFDMOptionImplemented: bool, + pub bShortSlotTimeOptionImplemented: bool, } pub const DOT11_EXEMPT_ALWAYS: u32 = 1u32; pub const DOT11_EXEMPT_BOTH: u32 = 3u32; @@ -937,7 +937,7 @@ pub struct DOT11_EXTAP_ATTRIBUTES { pub uAssociationTableSize: u32, pub uDefaultKeyTableSize: u32, pub uWEPKeyValueMaxLength: u32, - pub bStrictlyOrderedServiceClassImplemented: super::super::Foundation::BOOLEAN, + pub bStrictlyOrderedServiceClassImplemented: bool, pub uNumSupportedCountryOrRegionStrings: u32, pub pSupportedCountryOrRegionStrings: *mut u8, pub uInfraNumSupportedUcastAlgoPairs: u32, @@ -963,9 +963,9 @@ pub struct DOT11_EXTSTA_ATTRIBUTES { pub uWEPKeyValueMaxLength: u32, pub uPMKIDCacheSize: u32, pub uMaxNumPerSTADefaultKeyTables: u32, - pub bStrictlyOrderedServiceClassImplemented: super::super::Foundation::BOOLEAN, + pub bStrictlyOrderedServiceClassImplemented: bool, pub ucSupportedQoSProtocolFlags: u8, - pub bSafeModeImplemented: super::super::Foundation::BOOLEAN, + pub bSafeModeImplemented: bool, pub uNumSupportedCountryOrRegionStrings: u32, pub pSupportedCountryOrRegionStrings: *mut u8, pub uInfraNumSupportedUcastAlgoPairs: u32, @@ -976,16 +976,16 @@ pub struct DOT11_EXTSTA_ATTRIBUTES { pub pAdhocSupportedUcastAlgoPairs: *mut DOT11_AUTH_CIPHER_PAIR, pub uAdhocNumSupportedMcastAlgoPairs: u32, pub pAdhocSupportedMcastAlgoPairs: *mut DOT11_AUTH_CIPHER_PAIR, - pub bAutoPowerSaveMode: super::super::Foundation::BOOLEAN, + pub bAutoPowerSaveMode: bool, pub uMaxNetworkOffloadListSize: u32, - pub bMFPCapable: super::super::Foundation::BOOLEAN, + pub bMFPCapable: bool, pub uInfraNumSupportedMcastMgmtAlgoPairs: u32, pub pInfraSupportedMcastMgmtAlgoPairs: *mut DOT11_AUTH_CIPHER_PAIR, - pub bNeighborReportSupported: super::super::Foundation::BOOLEAN, - pub bAPChannelReportSupported: super::super::Foundation::BOOLEAN, - pub bActionFramesSupported: super::super::Foundation::BOOLEAN, - pub bANQPQueryOffloadSupported: super::super::Foundation::BOOLEAN, - pub bHESSIDConnectionSupported: super::super::Foundation::BOOLEAN, + pub bNeighborReportSupported: bool, + pub bAPChannelReportSupported: bool, + pub bActionFramesSupported: bool, + pub bANQPQueryOffloadSupported: bool, + pub bHESSIDConnectionSupported: bool, } pub const DOT11_EXTSTA_ATTRIBUTES_REVISION_1: u32 = 1u32; pub const DOT11_EXTSTA_ATTRIBUTES_REVISION_2: u32 = 2u32; @@ -1110,9 +1110,9 @@ pub type DOT11_HOP_ALGO_ADOPTED = i32; #[repr(C)] #[derive(Clone, Copy)] pub struct DOT11_HRDSSS_PHY_ATTRIBUTES { - pub bShortPreambleOptionImplemented: super::super::Foundation::BOOLEAN, - pub bPBCCOptionImplemented: super::super::Foundation::BOOLEAN, - pub bChannelAgilityPresent: super::super::Foundation::BOOLEAN, + pub bShortPreambleOptionImplemented: bool, + pub bPBCCOptionImplemented: bool, + pub bChannelAgilityPresent: bool, pub uHRCCAModeSupported: u32, } pub const DOT11_HR_CCA_MODE_CS_AND_ED: u32 = 4u32; @@ -1131,7 +1131,7 @@ pub const DOT11_HW_WEP_SUPPORTED_TX: u32 = 1u32; #[derive(Clone, Copy)] pub struct DOT11_IBSS_PARAMS { pub Header: super::Ndis::NDIS_OBJECT_HEADER, - pub bJoinOnly: super::super::Foundation::BOOLEAN, + pub bJoinOnly: bool, pub uIEsOffset: u32, pub uIEsLength: u32, } @@ -1150,8 +1150,8 @@ pub struct DOT11_INCOMING_ASSOC_COMPLETION_PARAMETERS { pub PeerMacAddr: [u8; 6], pub uStatus: u32, pub ucErrorSource: u8, - pub bReAssocReq: super::super::Foundation::BOOLEAN, - pub bReAssocResp: super::super::Foundation::BOOLEAN, + pub bReAssocReq: bool, + pub bReAssocResp: bool, pub uAssocReqOffset: u32, pub uAssocReqSize: u32, pub uAssocRespOffset: u32, @@ -1171,7 +1171,7 @@ pub const DOT11_INCOMING_ASSOC_COMPLETION_PARAMETERS_REVISION_1: u32 = 1u32; pub struct DOT11_INCOMING_ASSOC_DECISION { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub PeerMacAddr: [u8; 6], - pub bAccept: super::super::Foundation::BOOLEAN, + pub bAccept: bool, pub usReasonCode: u16, pub uAssocResponseIEsOffset: u32, pub uAssocResponseIEsLength: u32, @@ -1184,7 +1184,7 @@ pub const DOT11_INCOMING_ASSOC_DECISION_REVISION_2: u32 = 2u32; pub struct DOT11_INCOMING_ASSOC_DECISION_V2 { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub PeerMacAddr: [u8; 6], - pub bAccept: super::super::Foundation::BOOLEAN, + pub bAccept: bool, pub usReasonCode: u16, pub uAssocResponseIEsOffset: u32, pub uAssocResponseIEsLength: u32, @@ -1196,7 +1196,7 @@ pub struct DOT11_INCOMING_ASSOC_DECISION_V2 { pub struct DOT11_INCOMING_ASSOC_REQUEST_RECEIVED_PARAMETERS { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub PeerMacAddr: [u8; 6], - pub bReAssocReq: super::super::Foundation::BOOLEAN, + pub bReAssocReq: bool, pub uAssocReqOffset: u32, pub uAssocReqSize: u32, } @@ -1372,7 +1372,7 @@ pub struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC { #[repr(C)] #[derive(Clone, Copy)] pub struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX { - pub bEnabled: super::super::Foundation::BOOLEAN, + pub bEnabled: bool, pub Dot11Band: DOT11_BAND, pub uChannel: u32, pub PowerLevel: i32, @@ -1380,8 +1380,8 @@ pub struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX { #[repr(C)] #[derive(Clone, Copy)] pub struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_TX { - pub bEnable: super::super::Foundation::BOOLEAN, - pub bOpenLoop: super::super::Foundation::BOOLEAN, + pub bEnable: bool, + pub bOpenLoop: bool, pub Dot11Band: DOT11_BAND, pub uChannel: u32, pub uSetPowerLevel: u32, @@ -1392,7 +1392,7 @@ pub struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_TX { pub struct DOT11_MANUFACTURING_SELF_TEST_QUERY_RESULTS { pub SelfTestType: DOT11_MANUFACTURING_SELF_TEST_TYPE, pub uTestID: u32, - pub bResult: super::super::Foundation::BOOLEAN, + pub bResult: bool, pub uPinFailedBitMask: u32, pub pvContext: *mut core::ffi::c_void, pub uBytesWrittenOut: u32, @@ -1603,9 +1603,9 @@ pub const DOT11_OPERATION_MODE_WFD_GROUP_OWNER: u32 = 32u32; #[derive(Clone, Copy)] pub struct DOT11_OPTIONAL_CAPABILITY { pub uReserved: u32, - pub bDot11PCF: super::super::Foundation::BOOLEAN, - pub bDot11PCFMPDUTransferToPC: super::super::Foundation::BOOLEAN, - pub bStrictlyOrderedServiceClass: super::super::Foundation::BOOLEAN, + pub bDot11PCF: bool, + pub bDot11PCFMPDUTransferToPC: bool, + pub bStrictlyOrderedServiceClass: bool, } pub const DOT11_PACKET_TYPE_ALL_MULTICAST_CTRL: u32 = 4096u32; pub const DOT11_PACKET_TYPE_ALL_MULTICAST_DATA: u32 = 16384u32; @@ -1630,7 +1630,7 @@ pub struct DOT11_PEER_INFO { pub AuthAlgo: DOT11_AUTH_ALGORITHM, pub UnicastCipherAlgo: DOT11_CIPHER_ALGORITHM, pub MulticastCipherAlgo: DOT11_CIPHER_ALGORITHM, - pub bWpsEnabled: super::super::Foundation::BOOLEAN, + pub bWpsEnabled: bool, pub usListenInterval: u16, pub ucSupportedRates: [u8; 255], pub usAssociationID: u16, @@ -1674,9 +1674,9 @@ pub struct DOT11_PER_MSDU_COUNTERS { pub struct DOT11_PHY_ATTRIBUTES { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub PhyType: DOT11_PHY_TYPE, - pub bHardwarePhyState: super::super::Foundation::BOOLEAN, - pub bSoftwarePhyState: super::super::Foundation::BOOLEAN, - pub bCFPollable: super::super::Foundation::BOOLEAN, + pub bHardwarePhyState: bool, + pub bSoftwarePhyState: bool, + pub bCFPollable: bool, pub uMPDUMaxLength: u32, pub TempType: DOT11_TEMP_TYPE, pub DiversitySupport: DOT11_DIVERSITY_SUPPORT, @@ -1750,8 +1750,8 @@ pub const DOT11_PHY_ID_LIST_REVISION_1: u32 = 1u32; pub struct DOT11_PHY_STATE_PARAMETERS { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub uPhyId: u32, - pub bHardwarePhyState: super::super::Foundation::BOOLEAN, - pub bSoftwarePhyState: super::super::Foundation::BOOLEAN, + pub bHardwarePhyState: bool, + pub bSoftwarePhyState: bool, } pub const DOT11_PHY_STATE_PARAMETERS_REVISION_1: u32 = 1u32; pub type DOT11_PHY_TYPE = i32; @@ -1759,7 +1759,7 @@ pub type DOT11_PHY_TYPE = i32; #[derive(Clone, Copy)] pub struct DOT11_PHY_TYPE_INFO { pub dot11PhyType: DOT11_PHY_TYPE, - pub bUseParameters: super::super::Foundation::BOOLEAN, + pub bUseParameters: bool, pub uProbeDelay: u32, pub uMinChannelTime: u32, pub uMaxChannelTime: u32, @@ -1817,7 +1817,7 @@ pub struct DOT11_PORT_STATE { pub struct DOT11_PORT_STATE_NOTIFICATION { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub PeerMac: [u8; 6], - pub bOpen: super::super::Foundation::BOOLEAN, + pub bOpen: bool, } pub const DOT11_PORT_STATE_NOTIFICATION_REVISION_1: u32 = 1u32; #[repr(C)] @@ -1825,7 +1825,7 @@ pub const DOT11_PORT_STATE_NOTIFICATION_REVISION_1: u32 = 1u32; #[derive(Clone, Copy)] pub struct DOT11_POWER_MGMT_AUTO_MODE_ENABLED_INFO { pub Header: super::Ndis::NDIS_OBJECT_HEADER, - pub bEnabled: super::super::Foundation::BOOLEAN, + pub bEnabled: bool, } pub const DOT11_POWER_MGMT_AUTO_MODE_ENABLED_REVISION_1: u32 = 1u32; #[repr(C)] @@ -1835,7 +1835,7 @@ pub struct DOT11_POWER_MGMT_MODE { pub uPowerSaveLevel: u32, pub usListenInterval: u16, pub usAID: u16, - pub bReceiveDTIMs: super::super::Foundation::BOOLEAN, + pub bReceiveDTIMs: bool, } #[repr(C)] #[cfg(feature = "Win32_NetworkManagement_Ndis")] @@ -2115,7 +2115,7 @@ pub struct DOT11_REG_DOMAIN_VALUE { pub struct DOT11_RESET_REQUEST { pub dot11ResetType: DOT11_RESET_TYPE, pub dot11MacAddress: [u8; 6], - pub bSetDefaultMIB: super::super::Foundation::BOOLEAN, + pub bSetDefaultMIB: bool, } pub type DOT11_RESET_TYPE = i32; #[repr(C)] @@ -2150,8 +2150,8 @@ pub struct DOT11_SCAN_REQUEST { pub dot11BSSID: [u8; 6], pub dot11SSID: DOT11_SSID, pub dot11ScanType: DOT11_SCAN_TYPE, - pub bRestrictedScan: super::super::Foundation::BOOLEAN, - pub bUseRequestIE: super::super::Foundation::BOOLEAN, + pub bRestrictedScan: bool, + pub bUseRequestIE: bool, pub uRequestIDsOffset: u32, pub uNumOfRequestIDs: u32, pub uPhyTypesOffset: u32, @@ -2166,10 +2166,10 @@ pub struct DOT11_SCAN_REQUEST_V2 { pub dot11BSSType: DOT11_BSS_TYPE, pub dot11BSSID: [u8; 6], pub dot11ScanType: DOT11_SCAN_TYPE, - pub bRestrictedScan: super::super::Foundation::BOOLEAN, + pub bRestrictedScan: bool, pub udot11SSIDsOffset: u32, pub uNumOfdot11SSIDs: u32, - pub bUseRequestIE: super::super::Foundation::BOOLEAN, + pub bUseRequestIE: bool, pub uRequestIDsOffset: u32, pub uNumOfRequestIDs: u32, pub uPhyTypeInfosOffset: u32, @@ -2199,7 +2199,7 @@ pub struct DOT11_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS { pub Status: u8, pub GroupCapability: u8, pub GroupID: DOT11_WFD_GROUP_ID, - pub bUseGroupID: super::super::Foundation::BOOLEAN, + pub bUseGroupID: bool, pub uIEsOffset: u32, pub uIEsLength: u32, } @@ -2235,7 +2235,7 @@ pub struct DOT11_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS { pub IntendedInterfaceAddress: [u8; 6], pub GroupCapability: u8, pub GroupID: DOT11_WFD_GROUP_ID, - pub bUseGroupID: super::super::Foundation::BOOLEAN, + pub bUseGroupID: bool, pub uIEsOffset: u32, pub uIEsLength: u32, } @@ -2251,11 +2251,11 @@ pub struct DOT11_SEND_INVITATION_REQUEST_PARAMETERS { pub MinimumConfigTimeout: DOT11_WFD_CONFIGURATION_TIMEOUT, pub InvitationFlags: DOT11_WFD_INVITATION_FLAGS, pub GroupBSSID: [u8; 6], - pub bUseGroupBSSID: super::super::Foundation::BOOLEAN, + pub bUseGroupBSSID: bool, pub OperatingChannel: DOT11_WFD_CHANNEL, - pub bUseSpecifiedOperatingChannel: super::super::Foundation::BOOLEAN, + pub bUseSpecifiedOperatingChannel: bool, pub GroupID: DOT11_WFD_GROUP_ID, - pub bLocalGO: super::super::Foundation::BOOLEAN, + pub bLocalGO: bool, pub uIEsOffset: u32, pub uIEsLength: u32, } @@ -2272,9 +2272,9 @@ pub struct DOT11_SEND_INVITATION_RESPONSE_PARAMETERS { pub Status: u8, pub MinimumConfigTimeout: DOT11_WFD_CONFIGURATION_TIMEOUT, pub GroupBSSID: [u8; 6], - pub bUseGroupBSSID: super::super::Foundation::BOOLEAN, + pub bUseGroupBSSID: bool, pub OperatingChannel: DOT11_WFD_CHANNEL, - pub bUseSpecifiedOperatingChannel: super::super::Foundation::BOOLEAN, + pub bUseSpecifiedOperatingChannel: bool, pub uIEsOffset: u32, pub uIEsLength: u32, } @@ -2289,7 +2289,7 @@ pub struct DOT11_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS { pub uSendTimeout: u32, pub GroupCapability: u8, pub GroupID: DOT11_WFD_GROUP_ID, - pub bUseGroupID: super::super::Foundation::BOOLEAN, + pub bUseGroupID: bool, pub uIEsOffset: u32, pub uIEsLength: u32, } @@ -2395,7 +2395,7 @@ pub const DOT11_STOP_AP_REASON_IHV_START: u32 = 4278190080u32; #[derive(Clone, Copy)] pub struct DOT11_SUPPORTED_ANTENNA { pub uAntennaListIndex: u32, - pub bSupportedAntenna: super::super::Foundation::BOOLEAN, + pub bSupportedAntenna: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2459,7 +2459,7 @@ pub type DOT11_TEMP_TYPE = i32; #[derive(Clone, Copy)] pub struct DOT11_TKIPMIC_FAILURE_PARAMETERS { pub Header: super::Ndis::NDIS_OBJECT_HEADER, - pub bDefaultKeyFailure: super::super::Foundation::BOOLEAN, + pub bDefaultKeyFailure: bool, pub uKeyIndex: u32, pub PeerMac: [u8; 6], } @@ -2528,8 +2528,8 @@ pub struct DOT11_WEP_OFFLOAD { pub hOffload: super::super::Foundation::HANDLE, pub dot11OffloadType: DOT11_OFFLOAD_TYPE, pub dwAlgorithm: u32, - pub bRowIsOutbound: super::super::Foundation::BOOLEAN, - pub bUseDefault: super::super::Foundation::BOOLEAN, + pub bRowIsOutbound: bool, + pub bUseDefault: bool, pub uFlags: u32, pub ucMacAddress: [u8; 6], pub uNumOfRWsOnPeer: u32, @@ -2592,9 +2592,9 @@ pub struct DOT11_WFD_ATTRIBUTES { pub uNumConcurrentGORole: u32, pub uNumConcurrentClientRole: u32, pub WPSVersionsSupported: u32, - pub bServiceDiscoverySupported: super::super::Foundation::BOOLEAN, - pub bClientDiscoverabilitySupported: super::super::Foundation::BOOLEAN, - pub bInfrastructureManagementSupported: super::super::Foundation::BOOLEAN, + pub bServiceDiscoverySupported: bool, + pub bClientDiscoverabilitySupported: bool, + pub bInfrastructureManagementSupported: bool, pub uMaxSecondaryDeviceTypeListSize: u32, pub DeviceAddress: [u8; 6], pub uInterfaceAddressListCount: u32, @@ -2625,12 +2625,12 @@ pub const DOT11_WFD_DEVICE_CAPABILITY_CONCURRENT_OPERATION: u32 = 4u32; #[derive(Clone, Copy)] pub struct DOT11_WFD_DEVICE_CAPABILITY_CONFIG { pub Header: super::Ndis::NDIS_OBJECT_HEADER, - pub bServiceDiscoveryEnabled: super::super::Foundation::BOOLEAN, - pub bClientDiscoverabilityEnabled: super::super::Foundation::BOOLEAN, - pub bConcurrentOperationSupported: super::super::Foundation::BOOLEAN, - pub bInfrastructureManagementEnabled: super::super::Foundation::BOOLEAN, - pub bDeviceLimitReached: super::super::Foundation::BOOLEAN, - pub bInvitationProcedureEnabled: super::super::Foundation::BOOLEAN, + pub bServiceDiscoveryEnabled: bool, + pub bClientDiscoverabilityEnabled: bool, + pub bConcurrentOperationSupported: bool, + pub bInfrastructureManagementEnabled: bool, + pub bDeviceLimitReached: bool, + pub bInvitationProcedureEnabled: bool, pub WPSVersionsEnabled: u32, } pub const DOT11_WFD_DEVICE_CAPABILITY_CONFIG_REVISION_1: u32 = 1u32; @@ -2721,7 +2721,7 @@ pub struct DOT11_WFD_DISCOVER_REQUEST { pub uNumDeviceFilters: u32, pub uIEsOffset: u32, pub uIEsLength: u32, - pub bForceScanLegacyNetworks: super::super::Foundation::BOOLEAN, + pub bForceScanLegacyNetworks: bool, } pub const DOT11_WFD_DISCOVER_REQUEST_REVISION_1: u32 = 1u32; pub type DOT11_WFD_DISCOVER_TYPE = i32; @@ -2753,8 +2753,8 @@ pub struct DOT11_WFD_GROUP_JOIN_PARAMETERS { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub GOOperatingChannel: DOT11_WFD_CHANNEL, pub GOConfigTime: u32, - pub bInGroupFormation: super::super::Foundation::BOOLEAN, - pub bWaitForWPSReady: super::super::Foundation::BOOLEAN, + pub bInGroupFormation: bool, + pub bWaitForWPSReady: bool, } pub const DOT11_WFD_GROUP_JOIN_PARAMETERS_REVISION_1: u32 = 1u32; #[repr(C)] @@ -2762,11 +2762,11 @@ pub const DOT11_WFD_GROUP_JOIN_PARAMETERS_REVISION_1: u32 = 1u32; #[derive(Clone, Copy)] pub struct DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG { pub Header: super::Ndis::NDIS_OBJECT_HEADER, - pub bPersistentGroupEnabled: super::super::Foundation::BOOLEAN, - pub bIntraBSSDistributionSupported: super::super::Foundation::BOOLEAN, - pub bCrossConnectionSupported: super::super::Foundation::BOOLEAN, - pub bPersistentReconnectSupported: super::super::Foundation::BOOLEAN, - pub bGroupFormationEnabled: super::super::Foundation::BOOLEAN, + pub bPersistentGroupEnabled: bool, + pub bIntraBSSDistributionSupported: bool, + pub bCrossConnectionSupported: bool, + pub bPersistentReconnectSupported: bool, + pub bGroupFormationEnabled: bool, pub uMaximumGroupLimit: u32, } pub const DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG_REVISION_1: u32 = 1u32; @@ -2776,13 +2776,13 @@ pub const DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG_REVISION_2: u32 = 2u32; #[derive(Clone, Copy)] pub struct DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG_V2 { pub Header: super::Ndis::NDIS_OBJECT_HEADER, - pub bPersistentGroupEnabled: super::super::Foundation::BOOLEAN, - pub bIntraBSSDistributionSupported: super::super::Foundation::BOOLEAN, - pub bCrossConnectionSupported: super::super::Foundation::BOOLEAN, - pub bPersistentReconnectSupported: super::super::Foundation::BOOLEAN, - pub bGroupFormationEnabled: super::super::Foundation::BOOLEAN, + pub bPersistentGroupEnabled: bool, + pub bIntraBSSDistributionSupported: bool, + pub bCrossConnectionSupported: bool, + pub bPersistentReconnectSupported: bool, + pub bGroupFormationEnabled: bool, pub uMaximumGroupLimit: u32, - pub bEapolKeyIpAddressAllocationSupported: super::super::Foundation::BOOLEAN, + pub bEapolKeyIpAddressAllocationSupported: bool, } #[repr(C)] #[cfg(feature = "Win32_NetworkManagement_Ndis")] @@ -3312,9 +3312,9 @@ pub const WDIAG_IHV_WLAN_ID_FLAG_SECURITY_ENABLED: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy)] pub struct WFDSVC_CONNECTION_CAPABILITY { - pub bNew: super::super::Foundation::BOOLEAN, - pub bClient: super::super::Foundation::BOOLEAN, - pub bGO: super::super::Foundation::BOOLEAN, + pub bNew: bool, + pub bClient: bool, + pub bGO: bool, } pub const WFDSVC_CONNECTION_CAPABILITY_CLIENT: u32 = 2u32; pub const WFDSVC_CONNECTION_CAPABILITY_GO: u32 = 4u32; @@ -3433,7 +3433,7 @@ pub struct WLAN_BSS_ENTRY { pub dot11BssPhyType: DOT11_PHY_TYPE, pub lRssi: i32, pub uLinkQuality: u32, - pub bInRegDomain: super::super::Foundation::BOOLEAN, + pub bInRegDomain: bool, pub usBeaconPeriod: u16, pub ullTimestamp: u64, pub ullHostTimestamp: u64, diff --git a/crates/libs/sys/src/Windows/Win32/Networking/ActiveDirectory/mod.rs b/crates/libs/sys/src/Windows/Win32/Networking/ActiveDirectory/mod.rs index d22180db63..77d99d1a39 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/ActiveDirectory/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/ActiveDirectory/mod.rs @@ -662,7 +662,7 @@ pub const ADS_SETTYPE_SERVER: ADS_SETTYPE_ENUM = 3i32; pub struct ADS_SORTKEY { pub pszAttrType: windows_sys::core::PWSTR, pub pszReserved: windows_sys::core::PWSTR, - pub fReverseorder: super::super::Foundation::BOOLEAN, + pub fReverseorder: bool, } pub type ADS_STATUSENUM = i32; pub const ADS_STATUS_INVALID_SEARCHPREF: ADS_STATUSENUM = 1i32; diff --git a/crates/libs/sys/src/Windows/Win32/Networking/Clustering/mod.rs b/crates/libs/sys/src/Windows/Win32/Networking/Clustering/mod.rs index ab00911233..6825f2cfbf 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/Clustering/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/Clustering/mod.rs @@ -2215,7 +2215,7 @@ pub const CLUSTER_SET_ACCESS_TYPE_DENIED: u32 = 1u32; #[derive(Clone, Copy)] pub struct CLUSTER_SET_PASSWORD_STATUS { pub NodeId: u32, - pub SetAttempted: super::super::Foundation::BOOLEAN, + pub SetAttempted: bool, pub ReturnStatus: u32, } pub const CLUSTER_SHARED_VOLUMES_ROOT: windows_sys::core::PCWSTR = windows_sys::core::w!("SharedVolumesRoot"); @@ -2717,7 +2717,7 @@ pub struct CREATE_CLUSTER_CONFIG { pub ppszNodeNames: *const windows_sys::core::PCWSTR, pub cIpEntries: u32, pub pIpEntries: *mut CLUSTER_IP_ENTRY, - pub fEmptyCluster: super::super::Foundation::BOOLEAN, + pub fEmptyCluster: bool, pub managementPointType: CLUSTER_MGMT_POINT_TYPE, pub managementPointResType: CLUSTER_MGMT_POINT_RESTYPE, } @@ -2733,7 +2733,7 @@ pub struct CREATE_CLUSTER_NAME_ACCOUNT { pub pszDomain: windows_sys::core::PCWSTR, pub managementPointType: CLUSTER_MGMT_POINT_TYPE, pub managementPointResType: CLUSTER_MGMT_POINT_RESTYPE, - pub bUpgradeVCOs: super::super::Foundation::BOOLEAN, + pub bUpgradeVCOs: bool, } pub const CREATE_CLUSTER_VERSION: u32 = 1536u32; pub const CTCTL_GET_FAULT_DOMAIN_STATE: CLCTL_CODES = 789i32; @@ -3760,9 +3760,9 @@ pub struct SR_RESOURCE_TYPE_ADD_REPLICATION_GROUP { pub LogType: u16, pub ReplicationMode: u32, pub MinimumPartnersInSync: u32, - pub EnableWriteConsistency: super::super::Foundation::BOOLEAN, - pub EnableEncryption: super::super::Foundation::BOOLEAN, - pub EnableCompression: super::super::Foundation::BOOLEAN, + pub EnableWriteConsistency: bool, + pub EnableEncryption: bool, + pub EnableCompression: bool, pub CertificateThumbprint: [u16; 260], pub VolumeNameCount: u32, pub VolumeNames: [u16; 260], @@ -3789,21 +3789,21 @@ pub struct SR_RESOURCE_TYPE_ELIGIBLE_DISKS_RESULT { #[derive(Clone, Copy)] pub struct SR_RESOURCE_TYPE_QUERY_ELIGIBLE_LOGDISKS { pub DataDiskGuid: windows_sys::core::GUID, - pub IncludeOfflineDisks: super::super::Foundation::BOOLEAN, + pub IncludeOfflineDisks: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct SR_RESOURCE_TYPE_QUERY_ELIGIBLE_SOURCE_DATADISKS { pub DataDiskGuid: windows_sys::core::GUID, - pub IncludeAvailableStoargeDisks: super::super::Foundation::BOOLEAN, + pub IncludeAvailableStoargeDisks: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct SR_RESOURCE_TYPE_QUERY_ELIGIBLE_TARGET_DATADISKS { pub SourceDataDiskGuid: windows_sys::core::GUID, pub TargetReplicationGroupGuid: windows_sys::core::GUID, - pub SkipConnectivityCheck: super::super::Foundation::BOOLEAN, - pub IncludeOfflineDisks: super::super::Foundation::BOOLEAN, + pub SkipConnectivityCheck: bool, + pub IncludeOfflineDisks: bool, } #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/sys/src/Windows/Win32/Networking/HttpServer/mod.rs b/crates/libs/sys/src/Windows/Win32/Networking/HttpServer/mod.rs index 45b1ae1727..f07028d84c 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/HttpServer/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/HttpServer/mod.rs @@ -253,7 +253,7 @@ pub struct HTTP_KNOWN_HEADER { #[derive(Clone, Copy)] pub struct HTTP_LISTEN_ENDPOINT_INFO { pub Flags: HTTP_PROPERTY_FLAGS, - pub EnableSharing: super::super::Foundation::BOOLEAN, + pub EnableSharing: bool, } pub const HTTP_LOGGING_FLAG_LOCAL_TIME_ROLLOVER: u32 = 1u32; pub const HTTP_LOGGING_FLAG_LOG_ERRORS_ONLY: u32 = 4u32; @@ -651,9 +651,9 @@ pub struct HTTP_SERVER_AUTHENTICATION_DIGEST_PARAMS { pub struct HTTP_SERVER_AUTHENTICATION_INFO { pub Flags: HTTP_PROPERTY_FLAGS, pub AuthSchemes: u32, - pub ReceiveMutualAuth: super::super::Foundation::BOOLEAN, - pub ReceiveContextHandle: super::super::Foundation::BOOLEAN, - pub DisableNTLMCredentialCaching: super::super::Foundation::BOOLEAN, + pub ReceiveMutualAuth: bool, + pub ReceiveContextHandle: bool, + pub DisableNTLMCredentialCaching: bool, pub ExFlags: u8, pub DigestParams: HTTP_SERVER_AUTHENTICATION_DIGEST_PARAMS, pub BasicParams: HTTP_SERVER_AUTHENTICATION_BASIC_PARAMS, @@ -910,7 +910,7 @@ pub struct HTTP_SSL_CLIENT_CERT_INFO { pub CertEncodedSize: u32, pub pCertEncoded: *mut u8, pub Token: super::super::Foundation::HANDLE, - pub CertDeniedByMapper: super::super::Foundation::BOOLEAN, + pub CertDeniedByMapper: bool, } #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/sys/src/Windows/Win32/Networking/Ldap/mod.rs b/crates/libs/sys/src/Windows/Win32/Networking/Ldap/mod.rs index a36791d26f..1ae9ccfacd 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/Ldap/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/Ldap/mod.rs @@ -90,8 +90,8 @@ windows_targets::link!("wldap32.dll" "cdecl" fn ldap_delete_sW(ld : *mut LDAP, d windows_targets::link!("wldap32.dll" "cdecl" fn ldap_dn2ufn(dn : windows_sys::core::PCSTR) -> windows_sys::core::PSTR); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_dn2ufnA(dn : windows_sys::core::PCSTR) -> windows_sys::core::PSTR); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_dn2ufnW(dn : windows_sys::core::PCWSTR) -> windows_sys::core::PWSTR); -windows_targets::link!("wldap32.dll" "cdecl" fn ldap_encode_sort_controlA(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyA, control : *mut LDAPControlA, criticality : super::super::Foundation:: BOOLEAN) -> u32); -windows_targets::link!("wldap32.dll" "cdecl" fn ldap_encode_sort_controlW(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyW, control : *mut LDAPControlW, criticality : super::super::Foundation:: BOOLEAN) -> u32); +windows_targets::link!("wldap32.dll" "cdecl" fn ldap_encode_sort_controlA(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyA, control : *mut LDAPControlA, criticality : bool) -> u32); +windows_targets::link!("wldap32.dll" "cdecl" fn ldap_encode_sort_controlW(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyW, control : *mut LDAPControlW, criticality : bool) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_err2string(err : u32) -> windows_sys::core::PSTR); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_err2stringA(err : u32) -> windows_sys::core::PSTR); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_err2stringW(err : u32) -> windows_sys::core::PWSTR); @@ -167,17 +167,17 @@ windows_targets::link!("wldap32.dll" "cdecl" fn ldap_next_reference(ld : *mut LD windows_targets::link!("wldap32.dll" "cdecl" fn ldap_open(hostname : windows_sys::core::PCSTR, portnumber : u32) -> *mut LDAP); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_openA(hostname : windows_sys::core::PCSTR, portnumber : u32) -> *mut LDAP); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_openW(hostname : windows_sys::core::PCWSTR, portnumber : u32) -> *mut LDAP); -windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_extended_resultA(connection : *mut LDAP, resultmessage : *mut LDAPMessage, resultoid : *mut windows_sys::core::PSTR, resultdata : *mut *mut LDAP_BERVAL, freeit : super::super::Foundation:: BOOLEAN) -> u32); -windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_extended_resultW(connection : *mut LDAP, resultmessage : *mut LDAPMessage, resultoid : *mut windows_sys::core::PWSTR, resultdata : *mut *mut LDAP_BERVAL, freeit : super::super::Foundation:: BOOLEAN) -> u32); +windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_extended_resultA(connection : *mut LDAP, resultmessage : *mut LDAPMessage, resultoid : *mut windows_sys::core::PSTR, resultdata : *mut *mut LDAP_BERVAL, freeit : bool) -> u32); +windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_extended_resultW(connection : *mut LDAP, resultmessage : *mut LDAPMessage, resultoid : *mut windows_sys::core::PWSTR, resultdata : *mut *mut LDAP_BERVAL, freeit : bool) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_page_control(externalhandle : *mut LDAP, servercontrols : *mut *mut LDAPControlA, totalcount : *mut u32, cookie : *mut *mut LDAP_BERVAL) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_page_controlA(externalhandle : *mut LDAP, servercontrols : *mut *mut LDAPControlA, totalcount : *mut u32, cookie : *mut *mut LDAP_BERVAL) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_page_controlW(externalhandle : *mut LDAP, servercontrols : *mut *mut LDAPControlW, totalcount : *mut u32, cookie : *mut *mut LDAP_BERVAL) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_reference(connection : *mut LDAP, resultmessage : *mut LDAPMessage, referrals : *mut *mut windows_sys::core::PSTR) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_referenceA(connection : *mut LDAP, resultmessage : *mut LDAPMessage, referrals : *mut *mut windows_sys::core::PSTR) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_referenceW(connection : *mut LDAP, resultmessage : *mut LDAPMessage, referrals : *mut *mut windows_sys::core::PWSTR) -> u32); -windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_result(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_sys::core::PSTR, errormessage : *mut windows_sys::core::PSTR, referrals : *mut *mut windows_sys::core::PSTR, servercontrols : *mut *mut *mut LDAPControlA, freeit : super::super::Foundation:: BOOLEAN) -> u32); -windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_resultA(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_sys::core::PSTR, errormessage : *mut windows_sys::core::PSTR, referrals : *mut *mut *mut i8, servercontrols : *mut *mut *mut LDAPControlA, freeit : super::super::Foundation:: BOOLEAN) -> u32); -windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_resultW(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_sys::core::PWSTR, errormessage : *mut windows_sys::core::PWSTR, referrals : *mut *mut *mut u16, servercontrols : *mut *mut *mut LDAPControlW, freeit : super::super::Foundation:: BOOLEAN) -> u32); +windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_result(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_sys::core::PSTR, errormessage : *mut windows_sys::core::PSTR, referrals : *mut *mut windows_sys::core::PSTR, servercontrols : *mut *mut *mut LDAPControlA, freeit : bool) -> u32); +windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_resultA(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_sys::core::PSTR, errormessage : *mut windows_sys::core::PSTR, referrals : *mut *mut *mut i8, servercontrols : *mut *mut *mut LDAPControlA, freeit : bool) -> u32); +windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_resultW(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_sys::core::PWSTR, errormessage : *mut windows_sys::core::PWSTR, referrals : *mut *mut *mut u16, servercontrols : *mut *mut *mut LDAPControlW, freeit : bool) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_sort_control(externalhandle : *mut LDAP, control : *mut *mut LDAPControlA, result : *mut u32, attribute : *mut windows_sys::core::PSTR) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_sort_controlA(externalhandle : *mut LDAP, control : *mut *mut LDAPControlA, result : *mut u32, attribute : *mut windows_sys::core::PSTR) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_sort_controlW(externalhandle : *mut LDAP, control : *mut *mut LDAPControlW, result : *mut u32, attribute : *mut windows_sys::core::PWSTR) -> u32); @@ -231,7 +231,7 @@ windows_targets::link!("wldap32.dll" "cdecl" fn ldap_sslinitW(hostname : windows windows_targets::link!("wldap32.dll" "cdecl" fn ldap_start_tls_sA(externalhandle : *mut LDAP, serverreturnvalue : *mut u32, result : *mut *mut LDAPMessage, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_start_tls_sW(externalhandle : *mut LDAP, serverreturnvalue : *mut u32, result : *mut *mut LDAPMessage, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_startup(version : *mut LDAP_VERSION_INFO, instance : *mut super::super::Foundation:: HANDLE) -> u32); -windows_targets::link!("wldap32.dll" "cdecl" fn ldap_stop_tls_s(externalhandle : *mut LDAP) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("wldap32.dll" "cdecl" fn ldap_stop_tls_s(externalhandle : *mut LDAP) -> bool); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_ufn2dn(ufn : windows_sys::core::PCSTR, pdn : *mut windows_sys::core::PSTR) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_ufn2dnA(ufn : windows_sys::core::PCSTR, pdn : *mut windows_sys::core::PSTR) -> u32); windows_targets::link!("wldap32.dll" "cdecl" fn ldap_ufn2dnW(ufn : windows_sys::core::PCWSTR, pdn : *mut windows_sys::core::PWSTR) -> u32); @@ -322,14 +322,14 @@ pub struct LDAPAPIInfoW { pub struct LDAPControlA { pub ldctl_oid: windows_sys::core::PSTR, pub ldctl_value: LDAP_BERVAL, - pub ldctl_iscritical: super::super::Foundation::BOOLEAN, + pub ldctl_iscritical: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct LDAPControlW { pub ldctl_oid: windows_sys::core::PWSTR, pub ldctl_value: LDAP_BERVAL, - pub ldctl_iscritical: super::super::Foundation::BOOLEAN, + pub ldctl_iscritical: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -344,9 +344,9 @@ pub struct LDAPMessage { pub Request: *mut core::ffi::c_void, pub lm_returncode: u32, pub lm_referral: u16, - pub lm_chased: super::super::Foundation::BOOLEAN, - pub lm_eom: super::super::Foundation::BOOLEAN, - pub ConnectionReferenced: super::super::Foundation::BOOLEAN, + pub lm_chased: bool, + pub lm_eom: bool, + pub ConnectionReferenced: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -379,14 +379,14 @@ pub union LDAPModW_0 { pub struct LDAPSortKeyA { pub sk_attrtype: windows_sys::core::PSTR, pub sk_matchruleoid: windows_sys::core::PSTR, - pub sk_reverseorder: super::super::Foundation::BOOLEAN, + pub sk_reverseorder: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct LDAPSortKeyW { pub sk_attrtype: windows_sys::core::PWSTR, pub sk_matchruleoid: windows_sys::core::PWSTR, - pub sk_reverseorder: super::super::Foundation::BOOLEAN, + pub sk_reverseorder: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -806,12 +806,12 @@ pub const LDAP_VERSION_MAX: u32 = 3u32; pub const LDAP_VERSION_MIN: u32 = 2u32; pub const LDAP_VIRTUAL_LIST_VIEW_ERROR: LDAP_RETCODE = 76i32; pub const LDAP_VLVINFO_VERSION: u32 = 1u32; -pub type NOTIFYOFNEWCONNECTION = Option super::super::Foundation::BOOLEAN>; +pub type NOTIFYOFNEWCONNECTION = Option bool>; pub type PLDAPSearch = isize; #[cfg(all(feature = "Win32_Security_Authentication_Identity", feature = "Win32_Security_Cryptography"))] -pub type QUERYCLIENTCERT = Option super::super::Foundation::BOOLEAN>; +pub type QUERYCLIENTCERT = Option bool>; pub type QUERYFORCONNECTION = Option u32>; pub const SERVER_SEARCH_FLAG_DOMAIN_SCOPE: u32 = 1u32; pub const SERVER_SEARCH_FLAG_PHANTOM_ROOT: u32 = 2u32; #[cfg(feature = "Win32_Security_Cryptography")] -pub type VERIFYSERVERCERT = Option super::super::Foundation::BOOLEAN>; +pub type VERIFYSERVERCERT = Option bool>; diff --git a/crates/libs/sys/src/Windows/Win32/Networking/WinSock/mod.rs b/crates/libs/sys/src/Windows/Win32/Networking/WinSock/mod.rs index e7ff00558c..dc9907e616 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/WinSock/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/WinSock/mod.rs @@ -36,10 +36,10 @@ windows_targets::link!("ntdll.dll" "system" fn RtlIpv4AddressToStringA(addr : *c windows_targets::link!("ntdll.dll" "system" fn RtlIpv4AddressToStringExA(address : *const IN_ADDR, port : u16, addressstring : windows_sys::core::PSTR, addressstringlength : *mut u32) -> i32); windows_targets::link!("ntdll.dll" "system" fn RtlIpv4AddressToStringExW(address : *const IN_ADDR, port : u16, addressstring : windows_sys::core::PWSTR, addressstringlength : *mut u32) -> i32); windows_targets::link!("ntdll.dll" "system" fn RtlIpv4AddressToStringW(addr : *const IN_ADDR, s : windows_sys::core::PWSTR) -> windows_sys::core::PWSTR); -windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressA(s : windows_sys::core::PCSTR, strict : super::super::Foundation:: BOOLEAN, terminator : *mut windows_sys::core::PCSTR, addr : *mut IN_ADDR) -> i32); -windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressExA(addressstring : windows_sys::core::PCSTR, strict : super::super::Foundation:: BOOLEAN, address : *mut IN_ADDR, port : *mut u16) -> i32); -windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressExW(addressstring : windows_sys::core::PCWSTR, strict : super::super::Foundation:: BOOLEAN, address : *mut IN_ADDR, port : *mut u16) -> i32); -windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressW(s : windows_sys::core::PCWSTR, strict : super::super::Foundation:: BOOLEAN, terminator : *mut windows_sys::core::PCWSTR, addr : *mut IN_ADDR) -> i32); +windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressA(s : windows_sys::core::PCSTR, strict : bool, terminator : *mut windows_sys::core::PCSTR, addr : *mut IN_ADDR) -> i32); +windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressExA(addressstring : windows_sys::core::PCSTR, strict : bool, address : *mut IN_ADDR, port : *mut u16) -> i32); +windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressExW(addressstring : windows_sys::core::PCWSTR, strict : bool, address : *mut IN_ADDR, port : *mut u16) -> i32); +windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressW(s : windows_sys::core::PCWSTR, strict : bool, terminator : *mut windows_sys::core::PCWSTR, addr : *mut IN_ADDR) -> i32); windows_targets::link!("ntdll.dll" "system" fn RtlIpv6AddressToStringA(addr : *const IN6_ADDR, s : windows_sys::core::PSTR) -> windows_sys::core::PSTR); windows_targets::link!("ntdll.dll" "system" fn RtlIpv6AddressToStringExA(address : *const IN6_ADDR, scopeid : u32, port : u16, addressstring : windows_sys::core::PSTR, addressstringlength : *mut u32) -> i32); windows_targets::link!("ntdll.dll" "system" fn RtlIpv6AddressToStringExW(address : *const IN6_ADDR, scopeid : u32, port : u16, addressstring : windows_sys::core::PWSTR, addressstringlength : *mut u32) -> i32); @@ -1745,8 +1745,8 @@ pub struct IPX_ADDRESS_DATA { pub adapternum: i32, pub netnum: [u8; 4], pub nodenum: [u8; 6], - pub wan: super::super::Foundation::BOOLEAN, - pub status: super::super::Foundation::BOOLEAN, + pub wan: bool, + pub status: bool, pub maxpkt: i32, pub linkspeed: u32, } @@ -2570,7 +2570,7 @@ pub type NL_BANDWIDTH_FLAG = i32; pub struct NL_BANDWIDTH_INFORMATION { pub Bandwidth: u64, pub Instability: u64, - pub BandwidthPeaked: super::super::Foundation::BOOLEAN, + pub BandwidthPeaked: bool, } pub type NL_DAD_STATE = i32; pub type NL_INTERFACE_NETWORK_CATEGORY_STATE = i32; @@ -2588,9 +2588,9 @@ pub type NL_NETWORK_CONNECTIVITY_COST_HINT = i32; pub struct NL_NETWORK_CONNECTIVITY_HINT { pub ConnectivityLevel: NL_NETWORK_CONNECTIVITY_LEVEL_HINT, pub ConnectivityCost: NL_NETWORK_CONNECTIVITY_COST_HINT, - pub ApproachingDataLimit: super::super::Foundation::BOOLEAN, - pub OverDataLimit: super::super::Foundation::BOOLEAN, - pub Roaming: super::super::Foundation::BOOLEAN, + pub ApproachingDataLimit: bool, + pub OverDataLimit: bool, + pub Roaming: bool, } pub type NL_NETWORK_CONNECTIVITY_LEVEL_HINT = i32; #[repr(C)] @@ -2598,7 +2598,7 @@ pub type NL_NETWORK_CONNECTIVITY_LEVEL_HINT = i32; pub struct NL_PATH_BANDWIDTH_ROD { pub Bandwidth: u64, pub Instability: u64, - pub BandwidthPeaked: super::super::Foundation::BOOLEAN, + pub BandwidthPeaked: bool, } pub type NL_PREFIX_ORIGIN = i32; pub type NL_ROUTER_DISCOVERY_BEHAVIOR = i32; @@ -2936,7 +2936,7 @@ pub struct REAL_TIME_NOTIFICATION_SETTING_INPUT { pub struct REAL_TIME_NOTIFICATION_SETTING_INPUT_EX { pub TransportSettingId: TRANSPORT_SETTING_ID, pub BrokerEventGuid: windows_sys::core::GUID, - pub Unmark: super::super::Foundation::BOOLEAN, + pub Unmark: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -3043,7 +3043,7 @@ pub struct RM_FEC_INFO { pub FECBlockSize: u16, pub FECProActivePackets: u16, pub FECGroupSize: u8, - pub fFECOnDemandParityEnabled: super::super::Foundation::BOOLEAN, + pub fFECOnDemandParityEnabled: bool, } pub const RM_FLUSHCACHE: i32 = 1003i32; pub const RM_HIGH_SPEED_INTRANET_OPT: i32 = 1014i32; @@ -3110,7 +3110,7 @@ pub const RNRSERVICE_REGISTER: WSAESETSERVICEOP = 0i32; #[repr(C)] #[derive(Clone, Copy)] pub struct RSS_SCALABILITY_INFO { - pub RssEnabled: super::super::Foundation::BOOLEAN, + pub RssEnabled: bool, } pub const RouteProtocolBbn: NL_ROUTE_PROTOCOL = 12i32; pub const RouteProtocolBgp: NL_ROUTE_PROTOCOL = 14i32; @@ -3822,7 +3822,7 @@ pub struct TCP_INFO_v0 { pub State: TCPSTATE, pub Mss: u32, pub ConnectionTimeMs: u64, - pub TimestampsEnabled: super::super::Foundation::BOOLEAN, + pub TimestampsEnabled: bool, pub RttUs: u32, pub MinRttUs: u32, pub BytesInFlight: u32, @@ -3845,7 +3845,7 @@ pub struct TCP_INFO_v1 { pub State: TCPSTATE, pub Mss: u32, pub ConnectionTimeMs: u64, - pub TimestampsEnabled: super::super::Foundation::BOOLEAN, + pub TimestampsEnabled: bool, pub RttUs: u32, pub MinRttUs: u32, pub BytesInFlight: u32, diff --git a/crates/libs/sys/src/Windows/Win32/Security/AppLocker/mod.rs b/crates/libs/sys/src/Windows/Win32/Security/AppLocker/mod.rs index fdab046328..47c40e1e2d 100644 --- a/crates/libs/sys/src/Windows/Win32/Security/AppLocker/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Security/AppLocker/mod.rs @@ -8,7 +8,7 @@ windows_targets::link!("advapi32.dll" "system" fn SaferIdentifyLevel(dwnumproper windows_targets::link!("advapi32.dll" "system" fn SaferRecordEventLogEntry(hlevel : super:: SAFER_LEVEL_HANDLE, sztargetpath : windows_sys::core::PCWSTR, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); windows_targets::link!("advapi32.dll" "system" fn SaferSetLevelInformation(levelhandle : super:: SAFER_LEVEL_HANDLE, dwinfotype : SAFER_OBJECT_INFO_CLASS, lpquerybuffer : *const core::ffi::c_void, dwinbuffersize : u32) -> super::super::Foundation:: BOOL); windows_targets::link!("advapi32.dll" "system" fn SaferSetPolicyInformation(dwscopeid : u32, saferpolicyinfoclass : SAFER_POLICY_INFO_CLASS, infobuffersize : u32, infobuffer : *const core::ffi::c_void, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); -windows_targets::link!("advapi32.dll" "system" fn SaferiIsExecutableFileType(szfullpathname : windows_sys::core::PCWSTR, bfromshellexecute : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: BOOL); +windows_targets::link!("advapi32.dll" "system" fn SaferiIsExecutableFileType(szfullpathname : windows_sys::core::PCWSTR, bfromshellexecute : bool) -> super::super::Foundation:: BOOL); #[repr(C)] #[cfg(feature = "Win32_Security_Cryptography")] #[derive(Clone, Copy)] diff --git a/crates/libs/sys/src/Windows/Win32/Security/Authentication/Identity/mod.rs b/crates/libs/sys/src/Windows/Win32/Security/Authentication/Identity/mod.rs index 5b52875c5a..00b9d16fb7 100644 --- a/crates/libs/sys/src/Windows/Win32/Security/Authentication/Identity/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Security/Authentication/Identity/mod.rs @@ -12,30 +12,30 @@ windows_targets::link!("secur32.dll" "system" fn AddSecurityPackageA(pszpackagen windows_targets::link!("secur32.dll" "system" fn AddSecurityPackageW(pszpackagename : windows_sys::core::PCWSTR, poptions : *const SECURITY_PACKAGE_OPTIONS) -> windows_sys::core::HRESULT); #[cfg(feature = "Win32_Security_Credentials")] windows_targets::link!("secur32.dll" "system" fn ApplyControlToken(phcontext : *const super::super::Credentials:: SecHandle, pinput : *const SecBufferDesc) -> windows_sys::core::HRESULT); -windows_targets::link!("advapi32.dll" "system" fn AuditComputeEffectivePolicyBySid(psid : super::super:: PSID, psubcategoryguids : *const windows_sys::core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditComputeEffectivePolicyByToken(htokenhandle : super::super::super::Foundation:: HANDLE, psubcategoryguids : *const windows_sys::core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditEnumerateCategories(ppauditcategoriesarray : *mut *mut windows_sys::core::GUID, pdwcountreturned : *mut u32) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditEnumeratePerUserPolicy(ppauditsidarray : *mut *mut POLICY_AUDIT_SID_ARRAY) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditEnumerateSubCategories(pauditcategoryguid : *const windows_sys::core::GUID, bretrieveallsubcategories : super::super::super::Foundation:: BOOLEAN, ppauditsubcategoriesarray : *mut *mut windows_sys::core::GUID, pdwcountreturned : *mut u32) -> super::super::super::Foundation:: BOOLEAN); +windows_targets::link!("advapi32.dll" "system" fn AuditComputeEffectivePolicyBySid(psid : super::super:: PSID, psubcategoryguids : *const windows_sys::core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditComputeEffectivePolicyByToken(htokenhandle : super::super::super::Foundation:: HANDLE, psubcategoryguids : *const windows_sys::core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditEnumerateCategories(ppauditcategoriesarray : *mut *mut windows_sys::core::GUID, pdwcountreturned : *mut u32) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditEnumeratePerUserPolicy(ppauditsidarray : *mut *mut POLICY_AUDIT_SID_ARRAY) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditEnumerateSubCategories(pauditcategoryguid : *const windows_sys::core::GUID, bretrieveallsubcategories : bool, ppauditsubcategoriesarray : *mut *mut windows_sys::core::GUID, pdwcountreturned : *mut u32) -> bool); windows_targets::link!("advapi32.dll" "system" fn AuditFree(buffer : *const core::ffi::c_void)); -windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryGuidFromCategoryId(auditcategoryid : POLICY_AUDIT_EVENT_TYPE, pauditcategoryguid : *mut windows_sys::core::GUID) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryIdFromCategoryGuid(pauditcategoryguid : *const windows_sys::core::GUID, pauditcategoryid : *mut POLICY_AUDIT_EVENT_TYPE) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryNameA(pauditcategoryguid : *const windows_sys::core::GUID, ppszcategoryname : *mut windows_sys::core::PSTR) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryNameW(pauditcategoryguid : *const windows_sys::core::GUID, ppszcategoryname : *mut windows_sys::core::PWSTR) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditLookupSubCategoryNameA(pauditsubcategoryguid : *const windows_sys::core::GUID, ppszsubcategoryname : *mut windows_sys::core::PSTR) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditLookupSubCategoryNameW(pauditsubcategoryguid : *const windows_sys::core::GUID, ppszsubcategoryname : *mut windows_sys::core::PWSTR) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditQueryGlobalSaclA(objecttypename : windows_sys::core::PCSTR, acl : *mut *mut super::super:: ACL) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditQueryGlobalSaclW(objecttypename : windows_sys::core::PCWSTR, acl : *mut *mut super::super:: ACL) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditQueryPerUserPolicy(psid : super::super:: PSID, psubcategoryguids : *const windows_sys::core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditQuerySecurity(securityinformation : super::super:: OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor : *mut super::super:: PSECURITY_DESCRIPTOR) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditQuerySystemPolicy(psubcategoryguids : *const windows_sys::core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditSetGlobalSaclA(objecttypename : windows_sys::core::PCSTR, acl : *const super::super:: ACL) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditSetGlobalSaclW(objecttypename : windows_sys::core::PCWSTR, acl : *const super::super:: ACL) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditSetPerUserPolicy(psid : super::super:: PSID, pauditpolicy : *const AUDIT_POLICY_INFORMATION, dwpolicycount : u32) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditSetSecurity(securityinformation : super::super:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super:: PSECURITY_DESCRIPTOR) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn AuditSetSystemPolicy(pauditpolicy : *const AUDIT_POLICY_INFORMATION, dwpolicycount : u32) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("secur32.dll" "system" fn ChangeAccountPasswordA(pszpackagename : *const i8, pszdomainname : *const i8, pszaccountname : *const i8, pszoldpassword : *const i8, psznewpassword : *const i8, bimpersonating : super::super::super::Foundation:: BOOLEAN, dwreserved : u32, poutput : *mut SecBufferDesc) -> windows_sys::core::HRESULT); -windows_targets::link!("secur32.dll" "system" fn ChangeAccountPasswordW(pszpackagename : *const u16, pszdomainname : *const u16, pszaccountname : *const u16, pszoldpassword : *const u16, psznewpassword : *const u16, bimpersonating : super::super::super::Foundation:: BOOLEAN, dwreserved : u32, poutput : *mut SecBufferDesc) -> windows_sys::core::HRESULT); +windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryGuidFromCategoryId(auditcategoryid : POLICY_AUDIT_EVENT_TYPE, pauditcategoryguid : *mut windows_sys::core::GUID) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryIdFromCategoryGuid(pauditcategoryguid : *const windows_sys::core::GUID, pauditcategoryid : *mut POLICY_AUDIT_EVENT_TYPE) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryNameA(pauditcategoryguid : *const windows_sys::core::GUID, ppszcategoryname : *mut windows_sys::core::PSTR) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryNameW(pauditcategoryguid : *const windows_sys::core::GUID, ppszcategoryname : *mut windows_sys::core::PWSTR) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditLookupSubCategoryNameA(pauditsubcategoryguid : *const windows_sys::core::GUID, ppszsubcategoryname : *mut windows_sys::core::PSTR) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditLookupSubCategoryNameW(pauditsubcategoryguid : *const windows_sys::core::GUID, ppszsubcategoryname : *mut windows_sys::core::PWSTR) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditQueryGlobalSaclA(objecttypename : windows_sys::core::PCSTR, acl : *mut *mut super::super:: ACL) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditQueryGlobalSaclW(objecttypename : windows_sys::core::PCWSTR, acl : *mut *mut super::super:: ACL) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditQueryPerUserPolicy(psid : super::super:: PSID, psubcategoryguids : *const windows_sys::core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditQuerySecurity(securityinformation : super::super:: OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor : *mut super::super:: PSECURITY_DESCRIPTOR) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditQuerySystemPolicy(psubcategoryguids : *const windows_sys::core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditSetGlobalSaclA(objecttypename : windows_sys::core::PCSTR, acl : *const super::super:: ACL) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditSetGlobalSaclW(objecttypename : windows_sys::core::PCWSTR, acl : *const super::super:: ACL) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditSetPerUserPolicy(psid : super::super:: PSID, pauditpolicy : *const AUDIT_POLICY_INFORMATION, dwpolicycount : u32) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditSetSecurity(securityinformation : super::super:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super:: PSECURITY_DESCRIPTOR) -> bool); +windows_targets::link!("advapi32.dll" "system" fn AuditSetSystemPolicy(pauditpolicy : *const AUDIT_POLICY_INFORMATION, dwpolicycount : u32) -> bool); +windows_targets::link!("secur32.dll" "system" fn ChangeAccountPasswordA(pszpackagename : *const i8, pszdomainname : *const i8, pszaccountname : *const i8, pszoldpassword : *const i8, psznewpassword : *const i8, bimpersonating : bool, dwreserved : u32, poutput : *mut SecBufferDesc) -> windows_sys::core::HRESULT); +windows_targets::link!("secur32.dll" "system" fn ChangeAccountPasswordW(pszpackagename : *const u16, pszdomainname : *const u16, pszaccountname : *const u16, pszoldpassword : *const u16, psznewpassword : *const u16, bimpersonating : bool, dwreserved : u32, poutput : *mut SecBufferDesc) -> windows_sys::core::HRESULT); #[cfg(feature = "Win32_Security_Credentials")] windows_targets::link!("secur32.dll" "system" fn CompleteAuthToken(phcontext : *const super::super::Credentials:: SecHandle, ptoken : *const SecBufferDesc) -> windows_sys::core::HRESULT); #[cfg(feature = "Win32_Security_Credentials")] @@ -57,10 +57,10 @@ windows_targets::link!("secur32.dll" "system" fn ExportSecurityContext(phcontext windows_targets::link!("secur32.dll" "system" fn FreeContextBuffer(pvcontextbuffer : *mut core::ffi::c_void) -> windows_sys::core::HRESULT); #[cfg(feature = "Win32_Security_Credentials")] windows_targets::link!("secur32.dll" "system" fn FreeCredentialsHandle(phcredential : *const super::super::Credentials:: SecHandle) -> windows_sys::core::HRESULT); -windows_targets::link!("secur32.dll" "system" fn GetComputerObjectNameA(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_sys::core::PSTR, nsize : *mut u32) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("secur32.dll" "system" fn GetComputerObjectNameW(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_sys::core::PWSTR, nsize : *mut u32) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("secur32.dll" "system" fn GetUserNameExA(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_sys::core::PSTR, nsize : *mut u32) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("secur32.dll" "system" fn GetUserNameExW(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_sys::core::PWSTR, nsize : *mut u32) -> super::super::super::Foundation:: BOOLEAN); +windows_targets::link!("secur32.dll" "system" fn GetComputerObjectNameA(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_sys::core::PSTR, nsize : *mut u32) -> bool); +windows_targets::link!("secur32.dll" "system" fn GetComputerObjectNameW(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_sys::core::PWSTR, nsize : *mut u32) -> bool); +windows_targets::link!("secur32.dll" "system" fn GetUserNameExA(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_sys::core::PSTR, nsize : *mut u32) -> bool); +windows_targets::link!("secur32.dll" "system" fn GetUserNameExW(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_sys::core::PWSTR, nsize : *mut u32) -> bool); #[cfg(feature = "Win32_Security_Credentials")] windows_targets::link!("secur32.dll" "system" fn ImpersonateSecurityContext(phcontext : *const super::super::Credentials:: SecHandle) -> windows_sys::core::HRESULT); #[cfg(feature = "Win32_Security_Credentials")] @@ -109,12 +109,12 @@ windows_targets::link!("advapi32.dll" "system" fn LsaQueryTrustedDomainInfo(poli windows_targets::link!("advapi32.dll" "system" fn LsaQueryTrustedDomainInfoByName(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, informationclass : TRUSTED_INFORMATION_CLASS, buffer : *mut *mut core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); windows_targets::link!("secur32.dll" "system" fn LsaRegisterLogonProcess(logonprocessname : *const LSA_STRING, lsahandle : *mut super::super::super::Foundation:: HANDLE, securitymode : *mut u32) -> super::super::super::Foundation:: NTSTATUS); windows_targets::link!("secur32.dll" "system" fn LsaRegisterPolicyChangeNotification(informationclass : POLICY_NOTIFICATION_INFORMATION_CLASS, notificationeventhandle : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: NTSTATUS); -windows_targets::link!("advapi32.dll" "system" fn LsaRemoveAccountRights(policyhandle : LSA_HANDLE, accountsid : super::super:: PSID, allrights : super::super::super::Foundation:: BOOLEAN, userrights : *const LSA_UNICODE_STRING, countofrights : u32) -> super::super::super::Foundation:: NTSTATUS); +windows_targets::link!("advapi32.dll" "system" fn LsaRemoveAccountRights(policyhandle : LSA_HANDLE, accountsid : super::super:: PSID, allrights : bool, userrights : *const LSA_UNICODE_STRING, countofrights : u32) -> super::super::super::Foundation:: NTSTATUS); windows_targets::link!("advapi32.dll" "system" fn LsaRetrievePrivateData(policyhandle : LSA_HANDLE, keyname : *const LSA_UNICODE_STRING, privatedata : *mut *mut LSA_UNICODE_STRING) -> super::super::super::Foundation:: NTSTATUS); windows_targets::link!("advapi32.dll" "system" fn LsaSetCAPs(capdns : *const LSA_UNICODE_STRING, capdncount : u32, flags : u32) -> super::super::super::Foundation:: NTSTATUS); windows_targets::link!("advapi32.dll" "system" fn LsaSetDomainInformationPolicy(policyhandle : LSA_HANDLE, informationclass : POLICY_DOMAIN_INFORMATION_CLASS, buffer : *const core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); -windows_targets::link!("advapi32.dll" "system" fn LsaSetForestTrustInformation(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, foresttrustinfo : *const LSA_FOREST_TRUST_INFORMATION, checkonly : super::super::super::Foundation:: BOOLEAN, collisioninfo : *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation:: NTSTATUS); -windows_targets::link!("advapi32.dll" "system" fn LsaSetForestTrustInformation2(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, highestrecordtype : LSA_FOREST_TRUST_RECORD_TYPE, foresttrustinfo : *const LSA_FOREST_TRUST_INFORMATION2, checkonly : super::super::super::Foundation:: BOOLEAN, collisioninfo : *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation:: NTSTATUS); +windows_targets::link!("advapi32.dll" "system" fn LsaSetForestTrustInformation(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, foresttrustinfo : *const LSA_FOREST_TRUST_INFORMATION, checkonly : bool, collisioninfo : *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation:: NTSTATUS); +windows_targets::link!("advapi32.dll" "system" fn LsaSetForestTrustInformation2(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, highestrecordtype : LSA_FOREST_TRUST_RECORD_TYPE, foresttrustinfo : *const LSA_FOREST_TRUST_INFORMATION2, checkonly : bool, collisioninfo : *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation:: NTSTATUS); windows_targets::link!("advapi32.dll" "system" fn LsaSetInformationPolicy(policyhandle : LSA_HANDLE, informationclass : POLICY_INFORMATION_CLASS, buffer : *const core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); windows_targets::link!("advapi32.dll" "system" fn LsaSetTrustedDomainInfoByName(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, informationclass : TRUSTED_INFORMATION_CLASS, buffer : *const core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); windows_targets::link!("advapi32.dll" "system" fn LsaSetTrustedDomainInformation(policyhandle : LSA_HANDLE, trusteddomainsid : super::super:: PSID, informationclass : TRUSTED_INFORMATION_CLASS, buffer : *const core::ffi::c_void) -> super::super::super::Foundation:: NTSTATUS); @@ -146,7 +146,7 @@ windows_targets::link!("secur32.dll" "system" fn QuerySecurityPackageInfoW(pszpa windows_targets::link!("secur32.dll" "system" fn RevertSecurityContext(phcontext : *const super::super::Credentials:: SecHandle) -> windows_sys::core::HRESULT); windows_targets::link!("advapi32.dll" "system" "SystemFunction041" fn RtlDecryptMemory(memory : *mut core::ffi::c_void, memorysize : u32, optionflags : u32) -> super::super::super::Foundation:: NTSTATUS); windows_targets::link!("advapi32.dll" "system" "SystemFunction040" fn RtlEncryptMemory(memory : *mut core::ffi::c_void, memorysize : u32, optionflags : u32) -> super::super::super::Foundation:: NTSTATUS); -windows_targets::link!("advapi32.dll" "system" "SystemFunction036" fn RtlGenRandom(randombuffer : *mut core::ffi::c_void, randombufferlength : u32) -> super::super::super::Foundation:: BOOLEAN); +windows_targets::link!("advapi32.dll" "system" "SystemFunction036" fn RtlGenRandom(randombuffer : *mut core::ffi::c_void, randombufferlength : u32) -> bool); windows_targets::link!("slcext.dll" "system" fn SLAcquireGenuineTicket(ppticketblob : *mut *mut core::ffi::c_void, pcbticketblob : *mut u32, pwsztemplateid : windows_sys::core::PCWSTR, pwszserverurl : windows_sys::core::PCWSTR, pwszclienttoken : windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT); windows_targets::link!("slcext.dll" "system" fn SLActivateProduct(hslc : *const core::ffi::c_void, pproductskuid : *const windows_sys::core::GUID, cbappspecificdata : u32, pvappspecificdata : *const core::ffi::c_void, pactivationinfo : *const SL_ACTIVATION_INFO_HEADER, pwszproxyserver : windows_sys::core::PCWSTR, wproxyport : u16) -> windows_sys::core::HRESULT); windows_targets::link!("slc.dll" "system" fn SLClose(hslc : *const core::ffi::c_void) -> windows_sys::core::HRESULT); @@ -222,7 +222,7 @@ windows_targets::link!("schannel.dll" "system" fn SslGenerateRandomBits(prandomd windows_targets::link!("schannel.dll" "system" fn SslGetExtensions(clienthello : *const u8, clienthellobytesize : u32, genericextensions : *mut SCH_EXTENSION_DATA, genericextensionscount : u8, bytestoread : *mut u32, flags : SchGetExtensionsOptions) -> windows_sys::core::HRESULT); windows_targets::link!("schannel.dll" "system" fn SslGetMaximumKeySize(reserved : u32) -> u32); windows_targets::link!("schannel.dll" "system" fn SslGetServerIdentity(clienthello : *const u8, clienthellosize : u32, serveridentity : *mut *mut u8, serveridentitysize : *mut u32, flags : u32) -> windows_sys::core::HRESULT); -windows_targets::link!("secur32.dll" "system" fn SspiCompareAuthIdentities(authidentity1 : *const core::ffi::c_void, authidentity2 : *const core::ffi::c_void, samesupplieduser : *mut super::super::super::Foundation:: BOOLEAN, samesuppliedidentity : *mut super::super::super::Foundation:: BOOLEAN) -> windows_sys::core::HRESULT); +windows_targets::link!("secur32.dll" "system" fn SspiCompareAuthIdentities(authidentity1 : *const core::ffi::c_void, authidentity2 : *const core::ffi::c_void, samesupplieduser : *mut bool, samesuppliedidentity : *mut bool) -> windows_sys::core::HRESULT); windows_targets::link!("secur32.dll" "system" fn SspiCopyAuthIdentity(authdata : *const core::ffi::c_void, authdatacopy : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT); windows_targets::link!("secur32.dll" "system" fn SspiDecryptAuthIdentity(encryptedauthdata : *mut core::ffi::c_void) -> windows_sys::core::HRESULT); windows_targets::link!("sspicli.dll" "system" fn SspiDecryptAuthIdentityEx(options : u32, encryptedauthdata : *mut core::ffi::c_void) -> windows_sys::core::HRESULT); @@ -233,8 +233,8 @@ windows_targets::link!("sspicli.dll" "system" fn SspiEncryptAuthIdentityEx(optio windows_targets::link!("secur32.dll" "system" fn SspiExcludePackage(authidentity : *const core::ffi::c_void, pszpackagename : windows_sys::core::PCWSTR, ppnewauthidentity : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT); windows_targets::link!("secur32.dll" "system" fn SspiFreeAuthIdentity(authdata : *const core::ffi::c_void)); windows_targets::link!("secur32.dll" "system" fn SspiGetTargetHostName(psztargetname : windows_sys::core::PCWSTR, pszhostname : *mut windows_sys::core::PWSTR) -> windows_sys::core::HRESULT); -windows_targets::link!("secur32.dll" "system" fn SspiIsAuthIdentityEncrypted(encryptedauthdata : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("credui.dll" "system" fn SspiIsPromptingNeeded(errororntstatus : u32) -> super::super::super::Foundation:: BOOLEAN); +windows_targets::link!("secur32.dll" "system" fn SspiIsAuthIdentityEncrypted(encryptedauthdata : *const core::ffi::c_void) -> bool); +windows_targets::link!("credui.dll" "system" fn SspiIsPromptingNeeded(errororntstatus : u32) -> bool); windows_targets::link!("secur32.dll" "system" fn SspiLocalFree(databuffer : *const core::ffi::c_void)); windows_targets::link!("secur32.dll" "system" fn SspiMarshalAuthIdentity(authidentity : *const core::ffi::c_void, authidentitylength : *mut u32, authidentitybytearray : *mut *mut i8) -> windows_sys::core::HRESULT); windows_targets::link!("secur32.dll" "system" fn SspiPrepareForCredRead(authidentity : *const core::ffi::c_void, psztargetname : windows_sys::core::PCWSTR, pcredmancredentialtype : *mut u32, ppszcredmantargetname : *mut windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT); @@ -255,8 +255,8 @@ windows_targets::link!("tokenbinding.dll" "system" fn TokenBindingGetHighestSupp windows_targets::link!("tokenbinding.dll" "system" fn TokenBindingGetKeyTypesClient(keytypes : *mut *mut TOKENBINDING_KEY_TYPES) -> windows_sys::core::HRESULT); windows_targets::link!("tokenbinding.dll" "system" fn TokenBindingGetKeyTypesServer(keytypes : *mut *mut TOKENBINDING_KEY_TYPES) -> windows_sys::core::HRESULT); windows_targets::link!("tokenbinding.dll" "system" fn TokenBindingVerifyMessage(tokenbindingmessage : *const core::ffi::c_void, tokenbindingmessagesize : u32, keytype : TOKENBINDING_KEY_PARAMETERS_TYPE, tlsekm : *const core::ffi::c_void, tlsekmsize : u32, resultlist : *mut *mut TOKENBINDING_RESULT_LIST) -> windows_sys::core::HRESULT); -windows_targets::link!("secur32.dll" "system" fn TranslateNameA(lpaccountname : windows_sys::core::PCSTR, accountnameformat : EXTENDED_NAME_FORMAT, desirednameformat : EXTENDED_NAME_FORMAT, lptranslatedname : windows_sys::core::PSTR, nsize : *mut u32) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("secur32.dll" "system" fn TranslateNameW(lpaccountname : windows_sys::core::PCWSTR, accountnameformat : EXTENDED_NAME_FORMAT, desirednameformat : EXTENDED_NAME_FORMAT, lptranslatedname : windows_sys::core::PWSTR, nsize : *mut u32) -> super::super::super::Foundation:: BOOLEAN); +windows_targets::link!("secur32.dll" "system" fn TranslateNameA(lpaccountname : windows_sys::core::PCSTR, accountnameformat : EXTENDED_NAME_FORMAT, desirednameformat : EXTENDED_NAME_FORMAT, lptranslatedname : windows_sys::core::PSTR, nsize : *mut u32) -> bool); +windows_targets::link!("secur32.dll" "system" fn TranslateNameW(lpaccountname : windows_sys::core::PCWSTR, accountnameformat : EXTENDED_NAME_FORMAT, desirednameformat : EXTENDED_NAME_FORMAT, lptranslatedname : windows_sys::core::PWSTR, nsize : *mut u32) -> bool); #[cfg(feature = "Win32_Security_Credentials")] windows_targets::link!("secur32.dll" "system" fn VerifySignature(phcontext : *const super::super::Credentials:: SecHandle, pmessage : *const SecBufferDesc, messageseqno : u32, pfqop : *mut u32) -> windows_sys::core::HRESULT); #[cfg(feature = "Win32_Security_Credentials")] @@ -460,8 +460,8 @@ pub struct CENTRAL_ACCESS_POLICY_ENTRY { pub const CENTRAL_ACCESS_POLICY_OWNER_RIGHTS_PRESENT_FLAG: u32 = 1u32; pub const CENTRAL_ACCESS_POLICY_STAGED_FLAG: u32 = 65536u32; pub const CENTRAL_ACCESS_POLICY_STAGED_OWNER_RIGHTS_PRESENT_FLAG: u32 = 256u32; -pub type CHANGE_PASSWORD_FN_A = Option windows_sys::core::HRESULT>; -pub type CHANGE_PASSWORD_FN_W = Option windows_sys::core::HRESULT>; +pub type CHANGE_PASSWORD_FN_A = Option windows_sys::core::HRESULT>; +pub type CHANGE_PASSWORD_FN_W = Option windows_sys::core::HRESULT>; #[repr(C)] #[derive(Clone, Copy)] pub struct CLEAR_BLOCK { @@ -658,7 +658,7 @@ pub struct KDC_PROXY_CACHE_ENTRY_DATA { pub LogonId: super::super::super::Foundation::LUID, pub CredUserName: LSA_UNICODE_STRING, pub CredDomainName: LSA_UNICODE_STRING, - pub GlobalCache: super::super::super::Foundation::BOOLEAN, + pub GlobalCache: bool, } pub const KDC_PROXY_SETTINGS_FLAGS_FORCEPROXY: u32 = 1u32; pub const KDC_PROXY_SETTINGS_V1: u32 = 1u32; @@ -772,7 +772,7 @@ pub struct KERB_CHANGEPASSWORD_REQUEST { pub AccountName: LSA_UNICODE_STRING, pub OldPassword: LSA_UNICODE_STRING, pub NewPassword: LSA_UNICODE_STRING, - pub Impersonating: super::super::super::Foundation::BOOLEAN, + pub Impersonating: bool, } pub const KERB_CHECKSUM_CRC32: u32 = 1u32; pub const KERB_CHECKSUM_DES_MAC: i32 = -133i32; @@ -1220,7 +1220,7 @@ pub struct KERB_SETPASSWORD_EX_REQUEST { pub Password: LSA_UNICODE_STRING, pub ClientRealm: LSA_UNICODE_STRING, pub ClientName: LSA_UNICODE_STRING, - pub Impersonating: super::super::super::Foundation::BOOLEAN, + pub Impersonating: bool, pub KdcAddress: LSA_UNICODE_STRING, pub KdcAddressType: u32, } @@ -1472,7 +1472,7 @@ pub type KspMapHandleFn = Option super::super::super::Foundation::NTSTATUS>; pub type KspSealMessageFn = Option super::super::super::Foundation::NTSTATUS>; pub type KspSerializeAuthDataFn = Option super::super::super::Foundation::NTSTATUS>; -pub type KspSetPagingModeFn = Option super::super::super::Foundation::NTSTATUS>; +pub type KspSetPagingModeFn = Option super::super::super::Foundation::NTSTATUS>; pub type KspUnsealMessageFn = Option super::super::super::Foundation::NTSTATUS>; pub type KspVerifySignatureFn = Option super::super::super::Foundation::NTSTATUS>; pub const LCRED_CRED_EXISTS: u32 = 1u32; @@ -1867,13 +1867,13 @@ pub struct MSV1_0_CHANGEPASSWORD_REQUEST { pub AccountName: LSA_UNICODE_STRING, pub OldPassword: LSA_UNICODE_STRING, pub NewPassword: LSA_UNICODE_STRING, - pub Impersonating: super::super::super::Foundation::BOOLEAN, + pub Impersonating: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct MSV1_0_CHANGEPASSWORD_RESPONSE { pub MessageType: MSV1_0_PROTOCOL_MESSAGE_TYPE, - pub PasswordInfoValid: super::super::super::Foundation::BOOLEAN, + pub PasswordInfoValid: bool, pub DomainPasswordInfo: DOMAIN_PASSWORD_INFORMATION, } pub const MSV1_0_CHECK_LOGONHOURS_FOR_S4U: u32 = 262144u32; @@ -2116,7 +2116,7 @@ pub struct MSV1_0_VALIDATION_INFO { pub LogonServer: LSA_UNICODE_STRING, pub LogonDomainName: LSA_UNICODE_STRING, pub SessionKey: USER_SESSION_KEY, - pub Authoritative: super::super::super::Foundation::BOOLEAN, + pub Authoritative: bool, pub UserFlags: u32, pub WhichFields: u32, pub UserId: u32, @@ -2316,7 +2316,7 @@ pub type PKSEC_DEREFERENCE_LIST_ENTRY = Option; pub type PKSEC_LOCATE_PKG_BY_ID = Option *mut core::ffi::c_void>; #[cfg(feature = "Win32_System_Kernel")] -pub type PKSEC_REFERENCE_LIST_ENTRY = Option super::super::super::Foundation::NTSTATUS>; +pub type PKSEC_REFERENCE_LIST_ENTRY = Option super::super::super::Foundation::NTSTATUS>; pub type PKSEC_SERIALIZE_SCHANNEL_AUTH_DATA = Option super::super::super::Foundation::NTSTATUS>; pub type PKSEC_SERIALIZE_WINNT_AUTH_DATA = Option super::super::super::Foundation::NTSTATUS>; #[repr(C)] @@ -2405,7 +2405,7 @@ pub type PLSA_AP_POST_LOGON_USER_SURROGATE = Option< ) -> super::super::super::Foundation::NTSTATUS, >; pub type PLSA_AP_PRE_LOGON_USER_SURROGATE = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_AUDIT_ACCOUNT_LOGON = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_AUDIT_ACCOUNT_LOGON = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_AUDIT_LOGON = Option; pub type PLSA_AUDIT_LOGON_EX = Option; pub type PLSA_CALLBACK_FUNCTION = Option super::super::super::Foundation::NTSTATUS>; @@ -2413,13 +2413,13 @@ pub type PLSA_CALL_PACKAGE = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CALL_PACKAGE_PASSTHROUGH = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CANCEL_NOTIFICATION = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_CHECK_PROTECTED_USER_BY_TOKEN = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_CHECK_PROTECTED_USER_BY_TOKEN = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CLIENT_CALLBACK = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CLOSE_SAM_USER = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CONVERT_AUTH_DATA_TO_TOKEN = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_COPY_FROM_CLIENT_BUFFER = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_COPY_TO_CLIENT_BUFFER = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_CRACK_SINGLE_NAME = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_CRACK_SINGLE_NAME = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CREATE_LOGON_SESSION = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CREATE_SHARED_MEMORY = Option *mut core::ffi::c_void>; #[cfg(feature = "Win32_System_Threading")] @@ -2428,19 +2428,19 @@ pub type PLSA_CREATE_TOKEN = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_DELETE_CREDENTIAL = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_DELETE_LOGON_SESSION = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_DELETE_SHARED_MEMORY = Option super::super::super::Foundation::BOOLEAN>; +pub type PLSA_DELETE_SHARED_MEMORY = Option bool>; pub type PLSA_DUPLICATE_HANDLE = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_EXPAND_AUTH_DATA_FOR_DOMAIN = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_FREE_CLIENT_BUFFER = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_FREE_LSA_HEAP = Option; pub type PLSA_FREE_PRIVATE_HEAP = Option; pub type PLSA_FREE_SHARED_MEMORY = Option; -pub type PLSA_GET_APP_MODE_INFO = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_GET_APP_MODE_INFO = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_GET_AUTH_DATA_FOR_USER = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_GET_CALL_INFO = Option super::super::super::Foundation::BOOLEAN>; +pub type PLSA_GET_CALL_INFO = Option bool>; pub type PLSA_GET_CLIENT_INFO = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_GET_CLIENT_INFO_EX = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_GET_CREDENTIALS = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_GET_CREDENTIALS = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_GET_EXTENDED_CALL_FLAGS = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_GET_SERVICE_ACCOUNT_PASSWORD = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_GET_USER_AUTH_DATA = Option super::super::super::Foundation::NTSTATUS>; @@ -2448,7 +2448,7 @@ pub type PLSA_GET_USER_CREDENTIALS = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_LOCATE_PKG_BY_ID = Option *mut core::ffi::c_void>; pub type PLSA_MAP_BUFFER = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_OPEN_SAM_USER = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_OPEN_SAM_USER = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_OPEN_TOKEN_BY_LOGON_ID = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_PROTECT_MEMORY = Option; pub type PLSA_QUERY_CLIENT_REQUEST = Option super::super::super::Foundation::NTSTATUS>; @@ -2461,8 +2461,8 @@ pub type PLSA_REDIRECTED_LOGON_INIT = Option super::super::super::Foundation::NTSTATUS>; #[cfg(feature = "Win32_System_Threading")] pub type PLSA_REGISTER_NOTIFICATION = Option super::super::super::Foundation::HANDLE>; -pub type PLSA_SAVE_SUPPLEMENTAL_CREDENTIALS = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_SET_APP_MODE_INFO = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_SAVE_SUPPLEMENTAL_CREDENTIALS = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_SET_APP_MODE_INFO = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_UNLOAD_PACKAGE = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_UPDATE_PRIMARY_CREDENTIALS = Option super::super::super::Foundation::NTSTATUS>; #[repr(C)] @@ -2480,7 +2480,7 @@ pub struct POLICY_AUDIT_CATEGORIES_INFO { #[repr(C)] #[derive(Clone, Copy)] pub struct POLICY_AUDIT_EVENTS_INFO { - pub AuditingMode: super::super::super::Foundation::BOOLEAN, + pub AuditingMode: bool, pub EventAuditingOptions: *mut u32, pub MaximumAuditEventCount: u32, } @@ -2492,13 +2492,13 @@ pub const POLICY_AUDIT_EVENT_UNCHANGED: i32 = 0i32; #[repr(C)] #[derive(Clone, Copy)] pub struct POLICY_AUDIT_FULL_QUERY_INFO { - pub ShutDownOnFull: super::super::super::Foundation::BOOLEAN, - pub LogIsFull: super::super::super::Foundation::BOOLEAN, + pub ShutDownOnFull: bool, + pub LogIsFull: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct POLICY_AUDIT_FULL_SET_INFO { - pub ShutDownOnFull: super::super::super::Foundation::BOOLEAN, + pub ShutDownOnFull: bool, } pub const POLICY_AUDIT_LOG_ADMIN: i32 = 512i32; #[repr(C)] @@ -2507,7 +2507,7 @@ pub struct POLICY_AUDIT_LOG_INFO { pub AuditLogPercentFull: u32, pub MaximumLogSize: u32, pub AuditRetentionPeriod: i64, - pub AuditLogFullShutdownInProgress: super::super::super::Foundation::BOOLEAN, + pub AuditLogFullShutdownInProgress: bool, pub TimeToShutdown: i64, pub NextAuditRecordId: u32, } @@ -2648,9 +2648,9 @@ pub const PRIMARY_CRED_UPDATE: u32 = 4u32; pub type PSAM_CREDENTIAL_UPDATE_FREE_ROUTINE = Option; pub type PSAM_CREDENTIAL_UPDATE_NOTIFY_ROUTINE = Option super::super::super::Foundation::NTSTATUS>; pub type PSAM_CREDENTIAL_UPDATE_REGISTER_MAPPED_ENTRYPOINTS_ROUTINE = Option super::super::super::Foundation::NTSTATUS>; -pub type PSAM_CREDENTIAL_UPDATE_REGISTER_ROUTINE = Option super::super::super::Foundation::BOOLEAN>; -pub type PSAM_INIT_NOTIFICATION_ROUTINE = Option super::super::super::Foundation::BOOLEAN>; -pub type PSAM_PASSWORD_FILTER_ROUTINE = Option super::super::super::Foundation::BOOLEAN>; +pub type PSAM_CREDENTIAL_UPDATE_REGISTER_ROUTINE = Option bool>; +pub type PSAM_INIT_NOTIFICATION_ROUTINE = Option bool>; +pub type PSAM_PASSWORD_FILTER_ROUTINE = Option bool>; pub type PSAM_PASSWORD_NOTIFICATION_ROUTINE = Option super::super::super::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy)] @@ -2732,7 +2732,7 @@ pub const SAM_PASSWORD_FILTER_ROUTINE: windows_sys::core::PCSTR = windows_sys::c pub struct SAM_REGISTER_MAPPING_ELEMENT { pub Original: windows_sys::core::PSTR, pub Mapped: windows_sys::core::PSTR, - pub Continuable: super::super::super::Foundation::BOOLEAN, + pub Continuable: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2974,7 +2974,7 @@ pub struct SECPKG_APP_MODE_INFO { pub Argument1: usize, pub Argument2: usize, pub UserData: SecBuffer, - pub ReturnToLsa: super::super::super::Foundation::BOOLEAN, + pub ReturnToLsa: bool, } pub type SECPKG_ATTR = u32; pub const SECPKG_ATTR_ACCESS_TOKEN: SECPKG_ATTR = 18u32; @@ -3136,9 +3136,9 @@ pub struct SECPKG_CLIENT_INFO { pub LogonId: super::super::super::Foundation::LUID, pub ProcessID: u32, pub ThreadID: u32, - pub HasTcbPrivilege: super::super::super::Foundation::BOOLEAN, - pub Impersonating: super::super::super::Foundation::BOOLEAN, - pub Restricted: super::super::super::Foundation::BOOLEAN, + pub HasTcbPrivilege: bool, + pub Impersonating: bool, + pub Restricted: bool, pub ClientFlags: u8, pub ImpersonationLevel: super::super::SECURITY_IMPERSONATION_LEVEL, pub ClientToken: super::super::super::Foundation::HANDLE, @@ -3149,9 +3149,9 @@ pub struct SECPKG_CLIENT_INFO_EX { pub LogonId: super::super::super::Foundation::LUID, pub ProcessID: u32, pub ThreadID: u32, - pub HasTcbPrivilege: super::super::super::Foundation::BOOLEAN, - pub Impersonating: super::super::super::Foundation::BOOLEAN, - pub Restricted: super::super::super::Foundation::BOOLEAN, + pub HasTcbPrivilege: bool, + pub Impersonating: bool, + pub Restricted: bool, pub ClientFlags: u8, pub ImpersonationLevel: super::super::SECURITY_IMPERSONATION_LEVEL, pub ClientToken: super::super::super::Foundation::HANDLE, @@ -5322,11 +5322,11 @@ pub struct SecurityFunctionTableW { pub QueryCredentialsAttributesExW: QUERY_CREDENTIALS_ATTRIBUTES_EX_FN_W, } pub type SpAcceptCredentialsFn = Option super::super::super::Foundation::NTSTATUS>; -pub type SpAcceptLsaModeContextFn = Option super::super::super::Foundation::NTSTATUS>; +pub type SpAcceptLsaModeContextFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpAcquireCredentialsHandleFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpAddCredentialsFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpApplyControlTokenFn = Option super::super::super::Foundation::NTSTATUS>; -pub type SpChangeAccountPasswordFn = Option super::super::super::Foundation::NTSTATUS>; +pub type SpChangeAccountPasswordFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpCompleteAuthTokenFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpDeleteContextFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpDeleteCredentialsFn = Option super::super::super::Foundation::NTSTATUS>; @@ -5345,7 +5345,7 @@ pub type SpGetRemoteCredGuardSupplementalCredsFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpGetUserInfoFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpImportSecurityContextFn = Option super::super::super::Foundation::NTSTATUS>; -pub type SpInitLsaModeContextFn = Option super::super::super::Foundation::NTSTATUS>; +pub type SpInitLsaModeContextFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpInitUserModeContextFn = Option super::super::super::Foundation::NTSTATUS>; #[cfg(all(feature = "Win32_Security_Credentials", feature = "Win32_System_Threading"))] pub type SpInitializeFn = Option super::super::super::Foundation::NTSTATUS>; @@ -5643,10 +5643,10 @@ pub struct USER_ALL_INFORMATION { pub LogonCount: u16, pub CountryCode: u16, pub CodePage: u16, - pub LmPasswordPresent: super::super::super::Foundation::BOOLEAN, - pub NtPasswordPresent: super::super::super::Foundation::BOOLEAN, - pub PasswordExpired: super::super::super::Foundation::BOOLEAN, - pub PrivateDataSensitive: super::super::super::Foundation::BOOLEAN, + pub LmPasswordPresent: bool, + pub NtPasswordPresent: bool, + pub PasswordExpired: bool, + pub PrivateDataSensitive: bool, } pub const USER_ALL_PARAMETERS: u32 = 2097152u32; pub const USER_DONT_EXPIRE_PASSWORD: u32 = 512u32; diff --git a/crates/libs/sys/src/Windows/Win32/Security/WinTrust/mod.rs b/crates/libs/sys/src/Windows/Win32/Security/WinTrust/mod.rs index 27077b86ac..9cd85e3046 100644 --- a/crates/libs/sys/src/Windows/Win32/Security/WinTrust/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Security/WinTrust/mod.rs @@ -77,7 +77,7 @@ pub struct CONFIG_CI_PROV_INFO_RESULT { pub hr: windows_sys::core::HRESULT, pub dwResult: u32, pub dwPolicyIndex: u32, - pub fIsExplicitDeny: super::super::Foundation::BOOLEAN, + pub fIsExplicitDeny: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -86,7 +86,7 @@ pub struct CONFIG_CI_PROV_INFO_RESULT2 { pub hr: windows_sys::core::HRESULT, pub dwResult: u32, pub dwPolicyIndex: u32, - pub fIsExplicitDeny: super::super::Foundation::BOOLEAN, + pub fIsExplicitDeny: bool, pub cbCalculatedFileHash: u32, pub pbCalculatedFileHash: *mut u8, } @@ -327,7 +327,7 @@ pub const HTTPS_FINALPOLICY_FUNCTION: windows_sys::core::PCWSTR = windows_sys::c #[derive(Clone, Copy)] pub struct INTENT_TO_SEAL_ATTRIBUTE { pub version: u32, - pub seal: super::super::Foundation::BOOLEAN, + pub seal: bool, } pub const INTENT_TO_SEAL_ATTRIBUTE_STRUCT: windows_sys::core::PCSTR = 2010i32 as _; pub const OFFICESIGN_ACTION_VERIFY: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5555c2cd_17fb_11d1_85c4_00c04fc295ee); diff --git a/crates/libs/sys/src/Windows/Win32/Security/mod.rs b/crates/libs/sys/src/Windows/Win32/Security/mod.rs index 7df3e0dfd5..f35cee30a7 100644 --- a/crates/libs/sys/src/Windows/Win32/Security/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Security/mod.rs @@ -60,7 +60,7 @@ windows_targets::link!("advapi32.dll" "system" fn AreAnyAccessesGranted(granteda windows_targets::link!("kernel32.dll" "system" fn CheckTokenCapability(tokenhandle : super::Foundation:: HANDLE, capabilitysidtocheck : PSID, hascapability : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); windows_targets::link!("advapi32.dll" "system" fn CheckTokenMembership(tokenhandle : super::Foundation:: HANDLE, sidtocheck : PSID, ismember : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); windows_targets::link!("kernel32.dll" "system" fn CheckTokenMembershipEx(tokenhandle : super::Foundation:: HANDLE, sidtocheck : PSID, flags : u32, ismember : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); -windows_targets::link!("advapi32.dll" "system" fn ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor : PSECURITY_DESCRIPTOR, currentsecuritydescriptor : PSECURITY_DESCRIPTOR, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, objecttype : *const windows_sys::core::GUID, isdirectoryobject : super::Foundation:: BOOLEAN, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); +windows_targets::link!("advapi32.dll" "system" fn ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor : PSECURITY_DESCRIPTOR, currentsecuritydescriptor : PSECURITY_DESCRIPTOR, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, objecttype : *const windows_sys::core::GUID, isdirectoryobject : bool, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); windows_targets::link!("advapi32.dll" "system" fn CopySid(ndestinationsidlength : u32, pdestinationsid : PSID, psourcesid : PSID) -> super::Foundation:: BOOL); windows_targets::link!("advapi32.dll" "system" fn CreatePrivateObjectSecurity(parentdescriptor : PSECURITY_DESCRIPTOR, creatordescriptor : PSECURITY_DESCRIPTOR, newdescriptor : *mut PSECURITY_DESCRIPTOR, isdirectoryobject : super::Foundation:: BOOL, token : super::Foundation:: HANDLE, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); windows_targets::link!("advapi32.dll" "system" fn CreatePrivateObjectSecurityEx(parentdescriptor : PSECURITY_DESCRIPTOR, creatordescriptor : PSECURITY_DESCRIPTOR, newdescriptor : *mut PSECURITY_DESCRIPTOR, objecttype : *const windows_sys::core::GUID, iscontainerobject : super::Foundation:: BOOL, autoinheritflags : SECURITY_AUTO_INHERIT_FLAGS, token : super::Foundation:: HANDLE, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); @@ -141,8 +141,8 @@ windows_targets::link!("advapi32.dll" "system" fn PrivilegedServiceAuditAlarmA(s windows_targets::link!("advapi32.dll" "system" fn PrivilegedServiceAuditAlarmW(subsystemname : windows_sys::core::PCWSTR, servicename : windows_sys::core::PCWSTR, clienttoken : super::Foundation:: HANDLE, privileges : *const PRIVILEGE_SET, accessgranted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); windows_targets::link!("advapi32.dll" "system" fn QuerySecurityAccessMask(securityinformation : OBJECT_SECURITY_INFORMATION, desiredaccess : *mut u32)); windows_targets::link!("advapi32.dll" "system" fn RevertToSelf() -> super::Foundation:: BOOL); -windows_targets::link!("ntdll.dll" "system" fn RtlConvertSidToUnicodeString(unicodestring : *mut super::Foundation:: UNICODE_STRING, sid : PSID, allocatedestinationstring : super::Foundation:: BOOLEAN) -> super::Foundation:: NTSTATUS); -windows_targets::link!("ntdll.dll" "system" fn RtlNormalizeSecurityDescriptor(securitydescriptor : *mut PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, newsecuritydescriptorlength : *mut u32, checkonly : super::Foundation:: BOOLEAN) -> super::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlConvertSidToUnicodeString(unicodestring : *mut super::Foundation:: UNICODE_STRING, sid : PSID, allocatedestinationstring : bool) -> super::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlNormalizeSecurityDescriptor(securitydescriptor : *mut PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, newsecuritydescriptorlength : *mut u32, checkonly : bool) -> bool); windows_targets::link!("advapi32.dll" "system" fn SetAclInformation(pacl : *mut ACL, paclinformation : *const core::ffi::c_void, naclinformationlength : u32, dwaclinformationclass : ACL_INFORMATION_CLASS) -> super::Foundation:: BOOL); windows_targets::link!("kernel32.dll" "system" fn SetCachedSigningLevel(sourcefiles : *const super::Foundation:: HANDLE, sourcefilecount : u32, flags : u32, targetfile : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); windows_targets::link!("advapi32.dll" "system" fn SetFileSecurityA(lpfilename : windows_sys::core::PCSTR, securityinformation : OBJECT_SECURITY_INFORMATION, psecuritydescriptor : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); @@ -502,7 +502,7 @@ pub struct SECURITY_DESCRIPTOR_RELATIVE { pub Sacl: u32, pub Dacl: u32, } -pub const SECURITY_DYNAMIC_TRACKING: super::Foundation::BOOLEAN = 1u8; +pub const SECURITY_DYNAMIC_TRACKING: bool = true; pub type SECURITY_IMPERSONATION_LEVEL = i32; pub const SECURITY_LOCAL_SID_AUTHORITY: SID_IDENTIFIER_AUTHORITY = SID_IDENTIFIER_AUTHORITY { Value: [0, 0, 0, 0, 0, 2] }; pub const SECURITY_MANDATORY_LABEL_AUTHORITY: SID_IDENTIFIER_AUTHORITY = SID_IDENTIFIER_AUTHORITY { Value: [0, 0, 0, 0, 0, 16] }; @@ -517,11 +517,11 @@ pub struct SECURITY_QUALITY_OF_SERVICE { pub Length: u32, pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, pub ContextTrackingMode: u8, - pub EffectiveOnly: super::Foundation::BOOLEAN, + pub EffectiveOnly: bool, } pub const SECURITY_RESOURCE_MANAGER_AUTHORITY: SID_IDENTIFIER_AUTHORITY = SID_IDENTIFIER_AUTHORITY { Value: [0, 0, 0, 0, 0, 9] }; pub const SECURITY_SCOPED_POLICY_ID_AUTHORITY: SID_IDENTIFIER_AUTHORITY = SID_IDENTIFIER_AUTHORITY { Value: [0, 0, 0, 0, 0, 17] }; -pub const SECURITY_STATIC_TRACKING: super::Foundation::BOOLEAN = 0u8; +pub const SECURITY_STATIC_TRACKING: bool = false; pub const SECURITY_WORLD_SID_AUTHORITY: SID_IDENTIFIER_AUTHORITY = SID_IDENTIFIER_AUTHORITY { Value: [0, 0, 0, 0, 0, 1] }; pub type SEC_THREAD_START = Option u32>; pub const SEF_AVOID_OWNER_CHECK: SECURITY_AUTO_INHERIT_FLAGS = 16u32; @@ -580,8 +580,8 @@ pub const SE_IMPERSONATE_NAME: windows_sys::core::PCWSTR = windows_sys::core::w! #[derive(Clone, Copy)] pub struct SE_IMPERSONATION_STATE { pub Token: *mut core::ffi::c_void, - pub CopyOnOpen: super::Foundation::BOOLEAN, - pub EffectiveOnly: super::Foundation::BOOLEAN, + pub CopyOnOpen: bool, + pub EffectiveOnly: bool, pub Level: SECURITY_IMPERSONATION_LEVEL, } pub const SE_INCREASE_QUOTA_NAME: windows_sys::core::PCWSTR = windows_sys::core::w!("SeIncreaseQuotaPrivilege"); diff --git a/crates/libs/sys/src/Windows/Win32/Storage/CloudFilters/mod.rs b/crates/libs/sys/src/Windows/Win32/Storage/CloudFilters/mod.rs index d868177f43..e9a57400e9 100644 --- a/crates/libs/sys/src/Windows/Win32/Storage/CloudFilters/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Storage/CloudFilters/mod.rs @@ -29,7 +29,7 @@ windows_targets::link!("cldapi.dll" "system" fn CfGetWin32HandleFromProtectedHan windows_targets::link!("cldapi.dll" "system" fn CfHydratePlaceholder(filehandle : super::super::Foundation:: HANDLE, startingoffset : i64, length : i64, hydrateflags : CF_HYDRATE_FLAGS, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_sys::core::HRESULT); windows_targets::link!("cldapi.dll" "system" fn CfOpenFileWithOplock(filepath : windows_sys::core::PCWSTR, flags : CF_OPEN_FILE_FLAGS, protectedhandle : *mut super::super::Foundation:: HANDLE) -> windows_sys::core::HRESULT); windows_targets::link!("cldapi.dll" "system" fn CfQuerySyncProviderStatus(connectionkey : CF_CONNECTION_KEY, providerstatus : *mut CF_SYNC_PROVIDER_STATUS) -> windows_sys::core::HRESULT); -windows_targets::link!("cldapi.dll" "system" fn CfReferenceProtectedHandle(protectedhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("cldapi.dll" "system" fn CfReferenceProtectedHandle(protectedhandle : super::super::Foundation:: HANDLE) -> bool); windows_targets::link!("cldapi.dll" "system" fn CfRegisterSyncRoot(syncrootpath : windows_sys::core::PCWSTR, registration : *const CF_SYNC_REGISTRATION, policies : *const CF_SYNC_POLICIES, registerflags : CF_REGISTER_FLAGS) -> windows_sys::core::HRESULT); windows_targets::link!("cldapi.dll" "system" fn CfReleaseProtectedHandle(protectedhandle : super::super::Foundation:: HANDLE)); windows_targets::link!("cldapi.dll" "system" fn CfReleaseTransferKey(filehandle : super::super::Foundation:: HANDLE, transferkey : *const i64)); diff --git a/crates/libs/sys/src/Windows/Win32/Storage/FileSystem/mod.rs b/crates/libs/sys/src/Windows/Win32/Storage/FileSystem/mod.rs index 3c26740617..3ed7e02609 100644 --- a/crates/libs/sys/src/Windows/Win32/Storage/FileSystem/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Storage/FileSystem/mod.rs @@ -82,10 +82,10 @@ windows_targets::link!("clfsw32.dll" "system" fn CreateLogFile(pszlogfilename : windows_targets::link!("clfsw32.dll" "system" fn CreateLogMarshallingArea(hlog : super::super::Foundation:: HANDLE, pfnallocbuffer : CLFS_BLOCK_ALLOCATION, pfnfreebuffer : CLFS_BLOCK_DEALLOCATION, pvblockalloccontext : *mut core::ffi::c_void, cbmarshallingbuffer : u32, cmaxwritebuffers : u32, cmaxreadbuffers : u32, ppvmarshal : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); #[cfg(feature = "Win32_Security")] windows_targets::link!("ktmw32.dll" "system" fn CreateResourceManager(lpresourcemanagerattributes : *mut super::super::Security:: SECURITY_ATTRIBUTES, resourcemanagerid : *mut windows_sys::core::GUID, createoptions : u32, tmhandle : super::super::Foundation:: HANDLE, description : windows_sys::core::PCWSTR) -> super::super::Foundation:: HANDLE); -windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkA(lpsymlinkfilename : windows_sys::core::PCSTR, lptargetfilename : windows_sys::core::PCSTR, dwflags : SYMBOLIC_LINK_FLAGS) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkTransactedA(lpsymlinkfilename : windows_sys::core::PCSTR, lptargetfilename : windows_sys::core::PCSTR, dwflags : SYMBOLIC_LINK_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkTransactedW(lpsymlinkfilename : windows_sys::core::PCWSTR, lptargetfilename : windows_sys::core::PCWSTR, dwflags : SYMBOLIC_LINK_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkW(lpsymlinkfilename : windows_sys::core::PCWSTR, lptargetfilename : windows_sys::core::PCWSTR, dwflags : SYMBOLIC_LINK_FLAGS) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkA(lpsymlinkfilename : windows_sys::core::PCSTR, lptargetfilename : windows_sys::core::PCSTR, dwflags : SYMBOLIC_LINK_FLAGS) -> bool); +windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkTransactedA(lpsymlinkfilename : windows_sys::core::PCSTR, lptargetfilename : windows_sys::core::PCSTR, dwflags : SYMBOLIC_LINK_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> bool); +windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkTransactedW(lpsymlinkfilename : windows_sys::core::PCWSTR, lptargetfilename : windows_sys::core::PCWSTR, dwflags : SYMBOLIC_LINK_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> bool); +windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkW(lpsymlinkfilename : windows_sys::core::PCWSTR, lptargetfilename : windows_sys::core::PCWSTR, dwflags : SYMBOLIC_LINK_FLAGS) -> bool); windows_targets::link!("kernel32.dll" "system" fn CreateTapePartition(hdevice : super::super::Foundation:: HANDLE, dwpartitionmethod : CREATE_TAPE_PARTITION_METHOD, dwcount : u32, dwsize : u32) -> u32); #[cfg(feature = "Win32_Security")] windows_targets::link!("ktmw32.dll" "system" fn CreateTransaction(lptransactionattributes : *mut super::super::Security:: SECURITY_ATTRIBUTES, uow : *mut windows_sys::core::GUID, createoptions : u32, isolationlevel : u32, isolationflags : u32, timeout : u32, description : windows_sys::core::PCWSTR) -> super::super::Foundation:: HANDLE); @@ -261,12 +261,12 @@ windows_targets::link!("clfsw32.dll" "system" fn LogTailAdvanceFailure(hlog : su windows_targets::link!("clfsw32.dll" "system" fn LsnBlockOffset(plsn : *const CLS_LSN) -> u32); windows_targets::link!("clfsw32.dll" "system" fn LsnContainer(plsn : *const CLS_LSN) -> u32); windows_targets::link!("clfsw32.dll" "system" fn LsnCreate(cidcontainer : u32, offblock : u32, crecord : u32) -> CLS_LSN); -windows_targets::link!("clfsw32.dll" "system" fn LsnEqual(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("clfsw32.dll" "system" fn LsnGreater(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("clfsw32.dll" "system" fn LsnEqual(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> bool); +windows_targets::link!("clfsw32.dll" "system" fn LsnGreater(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> bool); windows_targets::link!("clfsw32.dll" "system" fn LsnIncrement(plsn : *const CLS_LSN) -> CLS_LSN); -windows_targets::link!("clfsw32.dll" "system" fn LsnInvalid(plsn : *const CLS_LSN) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("clfsw32.dll" "system" fn LsnLess(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("clfsw32.dll" "system" fn LsnNull(plsn : *const CLS_LSN) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("clfsw32.dll" "system" fn LsnInvalid(plsn : *const CLS_LSN) -> bool); +windows_targets::link!("clfsw32.dll" "system" fn LsnLess(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> bool); +windows_targets::link!("clfsw32.dll" "system" fn LsnNull(plsn : *const CLS_LSN) -> bool); windows_targets::link!("clfsw32.dll" "system" fn LsnRecordSequence(plsn : *const CLS_LSN) -> u32); windows_targets::link!("kernel32.dll" "system" fn MoveFileA(lpexistingfilename : windows_sys::core::PCSTR, lpnewfilename : windows_sys::core::PCSTR) -> super::super::Foundation:: BOOL); windows_targets::link!("kernel32.dll" "system" fn MoveFileExA(lpexistingfilename : windows_sys::core::PCSTR, lpnewfilename : windows_sys::core::PCSTR, dwflags : MOVE_FILE_FLAGS) -> super::super::Foundation:: BOOL); @@ -457,7 +457,7 @@ windows_targets::link!("wofutil.dll" "system" fn WofWimRemoveEntry(volumename : windows_targets::link!("wofutil.dll" "system" fn WofWimSuspendEntry(volumename : windows_sys::core::PCWSTR, datasourceid : i64) -> windows_sys::core::HRESULT); windows_targets::link!("wofutil.dll" "system" fn WofWimUpdateEntry(volumename : windows_sys::core::PCWSTR, datasourceid : i64, newwimpath : windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT); windows_targets::link!("kernel32.dll" "system" fn Wow64DisableWow64FsRedirection(oldvalue : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); -windows_targets::link!("kernel32.dll" "system" fn Wow64EnableWow64FsRedirection(wow64fsenableredirection : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("kernel32.dll" "system" fn Wow64EnableWow64FsRedirection(wow64fsenableredirection : bool) -> bool); windows_targets::link!("kernel32.dll" "system" fn Wow64RevertWow64FsRedirection(olvalue : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); windows_targets::link!("advapi32.dll" "system" fn WriteEncryptedFileRaw(pfimportcallback : PFE_IMPORT_FUNC, pvcallbackcontext : *const core::ffi::c_void, pvcontext : *const core::ffi::c_void) -> u32); #[cfg(feature = "Win32_System_IO")] @@ -1308,7 +1308,7 @@ pub const FILE_DISPOSITION_FLAG_POSIX_SEMANTICS: FILE_DISPOSITION_INFO_EX_FLAGS #[repr(C)] #[derive(Clone, Copy)] pub struct FILE_DISPOSITION_INFO { - pub DeleteFile: super::super::Foundation::BOOLEAN, + pub DeleteFile: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -1560,7 +1560,7 @@ pub struct FILE_RENAME_INFO { #[repr(C)] #[derive(Clone, Copy)] pub union FILE_RENAME_INFO_0 { - pub ReplaceIfExists: super::super::Foundation::BOOLEAN, + pub ReplaceIfExists: bool, pub Flags: u32, } #[repr(C)] @@ -1580,8 +1580,8 @@ pub struct FILE_STANDARD_INFO { pub AllocationSize: i64, pub EndOfFile: i64, pub NumberOfLinks: u32, - pub DeletePending: super::super::Foundation::BOOLEAN, - pub Directory: super::super::Foundation::BOOLEAN, + pub DeletePending: bool, + pub Directory: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -2915,7 +2915,7 @@ pub const SECURITY_VALID_SQOS_FLAGS: FILE_FLAGS_AND_ATTRIBUTES = 2031616u32; pub struct SERVER_ALIAS_INFO_0 { pub srvai0_alias: windows_sys::core::PWSTR, pub srvai0_target: windows_sys::core::PWSTR, - pub srvai0_default: super::super::Foundation::BOOLEAN, + pub srvai0_default: bool, pub srvai0_reserved: u32, } #[repr(C)] @@ -3211,7 +3211,7 @@ pub const TAPE_ABSOLUTE_POSITION: TAPE_POSITION_TYPE = 0u32; #[derive(Clone, Copy)] pub struct TAPE_ERASE { pub Type: ERASE_TAPE_TYPE, - pub Immediate: super::super::Foundation::BOOLEAN, + pub Immediate: bool, } pub const TAPE_ERASE_LONG: ERASE_TAPE_TYPE = 1u32; pub const TAPE_ERASE_SHORT: ERASE_TAPE_TYPE = 0u32; @@ -3238,7 +3238,7 @@ pub type TAPE_POSITION_TYPE = u32; #[derive(Clone, Copy)] pub struct TAPE_PREPARE { pub Operation: PREPARE_TAPE_OPERATION, - pub Immediate: super::super::Foundation::BOOLEAN, + pub Immediate: bool, } pub const TAPE_REWIND: TAPE_POSITION_METHOD = 0u32; pub const TAPE_SELECT_PARTITIONS: CREATE_TAPE_PARTITION_METHOD = 1u32; @@ -3249,7 +3249,7 @@ pub struct TAPE_SET_POSITION { pub Method: TAPE_POSITION_METHOD, pub Partition: u32, pub Offset: i64, - pub Immediate: super::super::Foundation::BOOLEAN, + pub Immediate: bool, } pub const TAPE_SHORT_FILEMARKS: TAPEMARK_TYPE = 2u32; pub const TAPE_SPACE_END_OF_DATA: TAPE_POSITION_METHOD = 4u32; @@ -3266,7 +3266,7 @@ pub const TAPE_UNLOCK: PREPARE_TAPE_OPERATION = 4u32; pub struct TAPE_WRITE_MARKS { pub Type: TAPEMARK_TYPE, pub Count: u32, - pub Immediate: super::super::Foundation::BOOLEAN, + pub Immediate: bool, } pub const TRANSACTIONMANAGER_OBJECT_PATH: windows_sys::core::PCWSTR = windows_sys::core::w!("\\TransactionManager\\"); pub const TRANSACTION_DO_NOT_PROMOTE: u32 = 1u32; @@ -3481,9 +3481,9 @@ pub struct VOLUME_ALLOCATE_BC_STREAM_INPUT { pub Version: u32, pub RequestsPerPeriod: u32, pub Period: u32, - pub RetryFailures: super::super::Foundation::BOOLEAN, - pub Discardable: super::super::Foundation::BOOLEAN, - pub Reserved1: [super::super::Foundation::BOOLEAN; 2], + pub RetryFailures: bool, + pub Discardable: bool, + pub Reserved1: [bool; 2], pub LowestByteOffset: u64, pub HighestByteOffset: u64, pub AccessType: u32, @@ -3578,8 +3578,8 @@ pub struct VOLUME_READ_PLEX_INPUT { #[derive(Clone, Copy)] pub struct VOLUME_SET_GPT_ATTRIBUTES_INFORMATION { pub GptAttributes: u64, - pub RevertOnClose: super::super::Foundation::BOOLEAN, - pub ApplyToAllConnectedVolumes: super::super::Foundation::BOOLEAN, + pub RevertOnClose: bool, + pub ApplyToAllConnectedVolumes: bool, pub Reserved1: u16, pub Reserved2: u32, } diff --git a/crates/libs/sys/src/Windows/Win32/Storage/IscsiDisc/mod.rs b/crates/libs/sys/src/Windows/Win32/Storage/IscsiDisc/mod.rs index 03fe9a21a2..78e23fdcde 100644 --- a/crates/libs/sys/src/Windows/Win32/Storage/IscsiDisc/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Storage/IscsiDisc/mod.rs @@ -4,8 +4,8 @@ windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiConnectionA(uniquesess windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiConnectionW(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, reserved : *mut core::ffi::c_void, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALW, securityflags : u64, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : windows_sys::core::PCSTR, connectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiSendTargetPortalA(initiatorinstance : windows_sys::core::PCSTR, initiatorportnumber : u32, loginoptions : *mut ISCSI_LOGIN_OPTIONS, securityflags : u64, portal : *mut ISCSI_TARGET_PORTALA) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiSendTargetPortalW(initiatorinstance : windows_sys::core::PCWSTR, initiatorportnumber : u32, loginoptions : *mut ISCSI_LOGIN_OPTIONS, securityflags : u64, portal : *mut ISCSI_TARGET_PORTALW) -> u32); -windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiStaticTargetA(targetname : windows_sys::core::PCSTR, targetalias : windows_sys::core::PCSTR, targetflags : u32, persist : super::super::Foundation:: BOOLEAN, mappings : *mut ISCSI_TARGET_MAPPINGA, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPA) -> u32); -windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiStaticTargetW(targetname : windows_sys::core::PCWSTR, targetalias : windows_sys::core::PCWSTR, targetflags : u32, persist : super::super::Foundation:: BOOLEAN, mappings : *mut ISCSI_TARGET_MAPPINGW, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPW) -> u32); +windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiStaticTargetA(targetname : windows_sys::core::PCSTR, targetalias : windows_sys::core::PCSTR, targetflags : u32, persist : bool, mappings : *mut ISCSI_TARGET_MAPPINGA, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPA) -> u32); +windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiStaticTargetW(targetname : windows_sys::core::PCWSTR, targetalias : windows_sys::core::PCWSTR, targetflags : u32, persist : bool, mappings : *mut ISCSI_TARGET_MAPPINGW, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPW) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn AddPersistentIScsiDeviceA(devicepath : windows_sys::core::PCSTR) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn AddPersistentIScsiDeviceW(devicepath : windows_sys::core::PCWSTR) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn AddRadiusServerA(address : windows_sys::core::PCSTR) -> u32); @@ -25,8 +25,8 @@ windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiSessionListW(buffersiz windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiTargetInformationA(targetname : windows_sys::core::PCSTR, discoverymechanism : windows_sys::core::PCSTR, infoclass : TARGET_INFORMATION_CLASS, buffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiTargetInformationW(targetname : windows_sys::core::PCWSTR, discoverymechanism : windows_sys::core::PCWSTR, infoclass : TARGET_INFORMATION_CLASS, buffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiVersionInformation(versioninfo : *mut ISCSI_VERSION_INFO) -> u32); -windows_targets::link!("iscsidsc.dll" "system" fn LoginIScsiTargetA(targetname : windows_sys::core::PCSTR, isinformationalsession : super::super::Foundation:: BOOLEAN, initiatorinstance : windows_sys::core::PCSTR, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALA, securityflags : u64, mappings : *mut ISCSI_TARGET_MAPPINGA, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : windows_sys::core::PCSTR, ispersistent : super::super::Foundation:: BOOLEAN, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); -windows_targets::link!("iscsidsc.dll" "system" fn LoginIScsiTargetW(targetname : windows_sys::core::PCWSTR, isinformationalsession : super::super::Foundation:: BOOLEAN, initiatorinstance : windows_sys::core::PCWSTR, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALW, securityflags : u64, mappings : *mut ISCSI_TARGET_MAPPINGW, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : windows_sys::core::PCSTR, ispersistent : super::super::Foundation:: BOOLEAN, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); +windows_targets::link!("iscsidsc.dll" "system" fn LoginIScsiTargetA(targetname : windows_sys::core::PCSTR, isinformationalsession : bool, initiatorinstance : windows_sys::core::PCSTR, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALA, securityflags : u64, mappings : *mut ISCSI_TARGET_MAPPINGA, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : windows_sys::core::PCSTR, ispersistent : bool, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); +windows_targets::link!("iscsidsc.dll" "system" fn LoginIScsiTargetW(targetname : windows_sys::core::PCWSTR, isinformationalsession : bool, initiatorinstance : windows_sys::core::PCWSTR, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALW, securityflags : u64, mappings : *mut ISCSI_TARGET_MAPPINGW, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : windows_sys::core::PCSTR, ispersistent : bool, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn LogoutIScsiTarget(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn RefreshISNSServerA(address : windows_sys::core::PCSTR) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn RefreshISNSServerW(address : windows_sys::core::PCWSTR) -> u32); @@ -59,8 +59,8 @@ windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiSendTargetPortalsEx windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiSendTargetPortalsW(portalcount : *mut u32, portalinfo : *mut ISCSI_TARGET_PORTAL_INFOW) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetPortalsA(initiatorname : windows_sys::core::PCSTR, targetname : windows_sys::core::PCSTR, targetportaltag : *mut u16, elementcount : *mut u32, portals : *mut ISCSI_TARGET_PORTALA) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetPortalsW(initiatorname : windows_sys::core::PCWSTR, targetname : windows_sys::core::PCWSTR, targetportaltag : *mut u16, elementcount : *mut u32, portals : *mut ISCSI_TARGET_PORTALW) -> u32); -windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetsA(forceupdate : super::super::Foundation:: BOOLEAN, buffersize : *mut u32, buffer : windows_sys::core::PSTR) -> u32); -windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetsW(forceupdate : super::super::Foundation:: BOOLEAN, buffersize : *mut u32, buffer : windows_sys::core::PWSTR) -> u32); +windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetsA(forceupdate : bool, buffersize : *mut u32, buffer : windows_sys::core::PSTR) -> u32); +windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetsW(forceupdate : bool, buffersize : *mut u32, buffer : windows_sys::core::PWSTR) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn ReportPersistentIScsiDevicesA(buffersizeinchar : *mut u32, buffer : windows_sys::core::PSTR) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn ReportPersistentIScsiDevicesW(buffersizeinchar : *mut u32, buffer : windows_sys::core::PWSTR) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn ReportRadiusServerListA(buffersizeinchar : *mut u32, buffer : windows_sys::core::PSTR) -> u32); @@ -68,15 +68,15 @@ windows_targets::link!("iscsidsc.dll" "system" fn ReportRadiusServerListW(buffer windows_targets::link!("iscsidsc.dll" "system" fn SendScsiInquiry(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, lun : u64, evpdcmddt : u8, pagecode : u8, scsistatus : *mut u8, responsesize : *mut u32, responsebuffer : *mut u8, sensesize : *mut u32, sensebuffer : *mut u8) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn SendScsiReadCapacity(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, lun : u64, scsistatus : *mut u8, responsesize : *mut u32, responsebuffer : *mut u8, sensesize : *mut u32, sensebuffer : *mut u8) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn SendScsiReportLuns(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, scsistatus : *mut u8, responsesize : *mut u32, responsebuffer : *mut u8, sensesize : *mut u32, sensebuffer : *mut u8) -> u32); -windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiGroupPresharedKey(keylength : u32, key : *mut u8, persist : super::super::Foundation:: BOOLEAN) -> u32); -windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiIKEInfoA(initiatorname : windows_sys::core::PCSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : super::super::Foundation:: BOOLEAN) -> u32); -windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiIKEInfoW(initiatorname : windows_sys::core::PCWSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : super::super::Foundation:: BOOLEAN) -> u32); +windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiGroupPresharedKey(keylength : u32, key : *mut u8, persist : bool) -> u32); +windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiIKEInfoA(initiatorname : windows_sys::core::PCSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : bool) -> u32); +windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiIKEInfoW(initiatorname : windows_sys::core::PCWSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : bool) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiInitiatorCHAPSharedSecret(sharedsecretlength : u32, sharedsecret : *mut u8) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiInitiatorNodeNameA(initiatornodename : windows_sys::core::PCSTR) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiInitiatorNodeNameW(initiatornodename : windows_sys::core::PCWSTR) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiInitiatorRADIUSSharedSecret(sharedsecretlength : u32, sharedsecret : *mut u8) -> u32); -windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiTunnelModeOuterAddressA(initiatorname : windows_sys::core::PCSTR, initiatorportnumber : u32, destinationaddress : windows_sys::core::PCSTR, outermodeaddress : windows_sys::core::PCSTR, persist : super::super::Foundation:: BOOLEAN) -> u32); -windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiTunnelModeOuterAddressW(initiatorname : windows_sys::core::PCWSTR, initiatorportnumber : u32, destinationaddress : windows_sys::core::PCWSTR, outermodeaddress : windows_sys::core::PCWSTR, persist : super::super::Foundation:: BOOLEAN) -> u32); +windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiTunnelModeOuterAddressA(initiatorname : windows_sys::core::PCSTR, initiatorportnumber : u32, destinationaddress : windows_sys::core::PCSTR, outermodeaddress : windows_sys::core::PCSTR, persist : bool) -> u32); +windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiTunnelModeOuterAddressW(initiatorname : windows_sys::core::PCWSTR, initiatorportnumber : u32, destinationaddress : windows_sys::core::PCWSTR, outermodeaddress : windows_sys::core::PCWSTR, persist : bool) -> u32); windows_targets::link!("iscsidsc.dll" "system" fn SetupPersistentIScsiDevices() -> u32); windows_targets::link!("iscsidsc.dll" "system" fn SetupPersistentIScsiVolumes() -> u32); pub const ATA_FLAGS_48BIT_COMMAND: u32 = 8u32; @@ -192,8 +192,8 @@ pub struct DUMP_POINTERS { pub CommonBufferVa: *mut core::ffi::c_void, pub CommonBufferPa: i64, pub CommonBufferSize: u32, - pub AllocateCommonBuffers: super::super::Foundation::BOOLEAN, - pub UseDiskDump: super::super::Foundation::BOOLEAN, + pub AllocateCommonBuffers: bool, + pub UseDiskDump: bool, pub Spare1: [u8; 2], pub DeviceObject: *mut core::ffi::c_void, } @@ -204,7 +204,7 @@ pub struct DUMP_POINTERS_EX { pub DumpData: *mut core::ffi::c_void, pub CommonBufferVa: *mut core::ffi::c_void, pub CommonBufferSize: u32, - pub AllocateCommonBuffers: super::super::Foundation::BOOLEAN, + pub AllocateCommonBuffers: bool, pub DeviceObject: *mut core::ffi::c_void, pub DriverList: *mut core::ffi::c_void, pub dwPortFlags: u32, @@ -213,7 +213,7 @@ pub struct DUMP_POINTERS_EX { pub MaxTransferSize: u32, pub AdapterObject: *mut core::ffi::c_void, pub MappedRegisterBase: *mut core::ffi::c_void, - pub DeviceReady: *mut super::super::Foundation::BOOLEAN, + pub DeviceReady: *mut bool, pub DumpDevicePowerOn: PDUMP_DEVICE_POWERON_ROUTINE, pub DumpDevicePowerOnContext: *mut core::ffi::c_void, } @@ -296,7 +296,7 @@ pub const HYBRID_FUNCTION_SET_DIRTY_THRESHOLD: u32 = 18u32; pub struct HYBRID_INFORMATION { pub Version: u32, pub Size: u32, - pub HybridSupported: super::super::Foundation::BOOLEAN, + pub HybridSupported: bool, pub Status: NVCACHE_STATUS, pub CacheTypeEffective: NVCACHE_TYPE, pub CacheTypeDefault: NVCACHE_TYPE, @@ -314,7 +314,7 @@ pub struct HYBRID_INFORMATION_0 { #[derive(Clone, Copy)] pub struct HYBRID_INFORMATION_1 { pub PriorityLevelCount: u8, - pub MaxPriorityBehavior: super::super::Foundation::BOOLEAN, + pub MaxPriorityBehavior: bool, pub OptimalWriteGranularity: u8, pub Reserved: u8, pub DirtyThresholdLow: u32, @@ -424,9 +424,9 @@ pub struct IO_SCSI_CAPABILITIES { pub MaximumPhysicalPages: u32, pub SupportedAsynchronousEvents: u32, pub AlignmentMask: u32, - pub TaggedQueuing: super::super::Foundation::BOOLEAN, - pub AdapterScansDown: super::super::Foundation::BOOLEAN, - pub AdapterUsesPio: super::super::Foundation::BOOLEAN, + pub TaggedQueuing: bool, + pub AdapterScansDown: bool, + pub AdapterUsesPio: bool, } pub type ISCSI_AUTH_TYPES = i32; pub const ISCSI_CHAP_AUTH_TYPE: ISCSI_AUTH_TYPES = 1i32; @@ -561,11 +561,11 @@ pub struct ISCSI_SESSION_INFOW { #[derive(Clone, Copy)] pub struct ISCSI_SESSION_INFO_EX { pub SessionId: ISCSI_UNIQUE_SESSION_ID, - pub InitialR2t: super::super::Foundation::BOOLEAN, - pub ImmediateData: super::super::Foundation::BOOLEAN, + pub InitialR2t: bool, + pub ImmediateData: bool, pub Type: u8, - pub DataSequenceInOrder: super::super::Foundation::BOOLEAN, - pub DataPduInOrder: super::super::Foundation::BOOLEAN, + pub DataSequenceInOrder: bool, + pub DataPduInOrder: bool, pub ErrorRecoveryLevel: u8, pub MaxOutstandingR2t: u32, pub FirstBurstLength: u32, @@ -928,7 +928,7 @@ pub type PDUMP_DEVICE_POWERON_ROUTINE = Option windows_sys::core::HRESULT); windows_targets::link!("projectedfslib.dll" "system" fn PrjCompleteCommand(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, commandid : i32, completionresult : windows_sys::core::HRESULT, extendedparameters : *const PRJ_COMPLETE_COMMAND_EXTENDED_PARAMETERS) -> windows_sys::core::HRESULT); windows_targets::link!("projectedfslib.dll" "system" fn PrjDeleteFile(namespacevirtualizationcontext : PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT, destinationfilename : windows_sys::core::PCWSTR, updateflags : PRJ_UPDATE_TYPES, failurereason : *mut PRJ_UPDATE_FAILURE_CAUSES) -> windows_sys::core::HRESULT); -windows_targets::link!("projectedfslib.dll" "system" fn PrjDoesNameContainWildCards(filename : windows_sys::core::PCWSTR) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("projectedfslib.dll" "system" fn PrjDoesNameContainWildCards(filename : windows_sys::core::PCWSTR) -> bool); windows_targets::link!("projectedfslib.dll" "system" fn PrjFileNameCompare(filename1 : windows_sys::core::PCWSTR, filename2 : windows_sys::core::PCWSTR) -> i32); -windows_targets::link!("projectedfslib.dll" "system" fn PrjFileNameMatch(filenametocheck : windows_sys::core::PCWSTR, pattern : windows_sys::core::PCWSTR) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("projectedfslib.dll" "system" fn PrjFileNameMatch(filenametocheck : windows_sys::core::PCWSTR, pattern : windows_sys::core::PCWSTR) -> bool); windows_targets::link!("projectedfslib.dll" "system" fn PrjFillDirEntryBuffer(filename : windows_sys::core::PCWSTR, filebasicinfo : *const PRJ_FILE_BASIC_INFO, direntrybufferhandle : PRJ_DIR_ENTRY_BUFFER_HANDLE) -> windows_sys::core::HRESULT); windows_targets::link!("projectedfslib.dll" "system" fn PrjFillDirEntryBuffer2(direntrybufferhandle : PRJ_DIR_ENTRY_BUFFER_HANDLE, filename : windows_sys::core::PCWSTR, filebasicinfo : *const PRJ_FILE_BASIC_INFO, extendedinfo : *const PRJ_EXTENDED_INFO) -> windows_sys::core::HRESULT); windows_targets::link!("projectedfslib.dll" "system" fn PrjFreeAlignedBuffer(buffer : *const core::ffi::c_void)); @@ -97,7 +97,7 @@ pub const PRJ_EXT_INFO_TYPE_SYMLINK: PRJ_EXT_INFO_TYPE = 1i32; #[repr(C)] #[derive(Clone, Copy)] pub struct PRJ_FILE_BASIC_INFO { - pub IsDirectory: super::super::Foundation::BOOLEAN, + pub IsDirectory: bool, pub FileSize: i64, pub CreationTime: i64, pub LastAccessTime: i64, @@ -118,7 +118,7 @@ pub type PRJ_GET_FILE_DATA_CB = Option windows_sys::core::HRESULT>; pub type PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT = *mut core::ffi::c_void; pub type PRJ_NOTIFICATION = i32; -pub type PRJ_NOTIFICATION_CB = Option windows_sys::core::HRESULT>; +pub type PRJ_NOTIFICATION_CB = Option windows_sys::core::HRESULT>; pub const PRJ_NOTIFICATION_FILE_HANDLE_CLOSED_FILE_DELETED: PRJ_NOTIFICATION = 2048i32; pub const PRJ_NOTIFICATION_FILE_HANDLE_CLOSED_FILE_MODIFIED: PRJ_NOTIFICATION = 1024i32; pub const PRJ_NOTIFICATION_FILE_HANDLE_CLOSED_NO_MODIFICATION: PRJ_NOTIFICATION = 512i32; @@ -144,7 +144,7 @@ pub union PRJ_NOTIFICATION_PARAMETERS { #[repr(C)] #[derive(Clone, Copy)] pub struct PRJ_NOTIFICATION_PARAMETERS_2 { - pub IsFileModified: super::super::Foundation::BOOLEAN, + pub IsFileModified: bool, } #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/sys/src/Windows/Win32/System/Com/StructuredStorage/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Com/StructuredStorage/mod.rs index 02fcb22296..0a1340f941 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Com/StructuredStorage/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Com/StructuredStorage/mod.rs @@ -179,9 +179,9 @@ windows_targets::link!("ole32.dll" "system" fn ReadClassStm(pstm : * mut core::f windows_targets::link!("ole32.dll" "system" fn ReadFmtUserTypeStg(pstg : * mut core::ffi::c_void, pcf : *mut u16, lplpszusertype : *mut windows_sys::core::PWSTR) -> windows_sys::core::HRESULT); windows_targets::link!("ole32.dll" "system" fn SetConvertStg(pstg : * mut core::ffi::c_void, fconvert : super::super::super::Foundation:: BOOL) -> windows_sys::core::HRESULT); #[cfg(feature = "Win32_System_Variant")] -windows_targets::link!("ole32.dll" "system" fn StgConvertPropertyToVariant(pprop : *const SERIALIZEDPROPERTYVALUE, codepage : u16, pvar : *mut PROPVARIANT, pma : * mut core::ffi::c_void) -> super::super::super::Foundation:: BOOLEAN); +windows_targets::link!("ole32.dll" "system" fn StgConvertPropertyToVariant(pprop : *const SERIALIZEDPROPERTYVALUE, codepage : u16, pvar : *mut PROPVARIANT, pma : * mut core::ffi::c_void) -> bool); #[cfg(feature = "Win32_System_Variant")] -windows_targets::link!("ole32.dll" "system" fn StgConvertVariantToProperty(pvar : *const PROPVARIANT, codepage : u16, pprop : *mut SERIALIZEDPROPERTYVALUE, pcb : *mut u32, pid : u32, freserved : super::super::super::Foundation:: BOOLEAN, pcindirect : *mut u32) -> *mut SERIALIZEDPROPERTYVALUE); +windows_targets::link!("ole32.dll" "system" fn StgConvertVariantToProperty(pvar : *const PROPVARIANT, codepage : u16, pprop : *mut SERIALIZEDPROPERTYVALUE, pcb : *mut u32, pid : u32, freserved : bool, pcindirect : *mut u32) -> *mut SERIALIZEDPROPERTYVALUE); windows_targets::link!("ole32.dll" "system" fn StgCreateDocfile(pwcsname : windows_sys::core::PCWSTR, grfmode : super:: STGM, reserved : u32, ppstgopen : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT); windows_targets::link!("ole32.dll" "system" fn StgCreateDocfileOnILockBytes(plkbyt : * mut core::ffi::c_void, grfmode : super:: STGM, reserved : u32, ppstgopen : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT); windows_targets::link!("ole32.dll" "system" fn StgCreatePropSetStg(pstorage : * mut core::ffi::c_void, dwreserved : u32, pppropsetstg : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT); diff --git a/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs index f0f6c29153..a07d6f1141 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs @@ -2369,8 +2369,8 @@ pub struct EXTSTACKTRACE64 { pub ReturnAddress: u64, pub Args: [u64; 4], } -pub type EXTS_JOB_PROCESS_CALLBACK = Option super::super::super::super::Foundation::BOOLEAN>; -pub type EXTS_TABLE_ENTRY_CALLBACK = Option super::super::super::super::Foundation::BOOLEAN>; +pub type EXTS_JOB_PROCESS_CALLBACK = Option bool>; +pub type EXTS_TABLE_ENTRY_CALLBACK = Option bool>; pub type EXT_ANALYSIS_PLUGIN = Option windows_sys::core::HRESULT>; pub type EXT_ANALYZER = Option windows_sys::core::HRESULT>; pub const EXT_ANALYZER_FLAG_ID: u32 = 2u32; @@ -3025,7 +3025,7 @@ pub struct KDEXTS_PTE_INFO { pub _bitfield1: u32, pub _bitfield2: u32, } -pub type KDEXT_DUMP_HANDLE_CALLBACK = Option super::super::super::super::Foundation::BOOLEAN>; +pub type KDEXT_DUMP_HANDLE_CALLBACK = Option bool>; #[repr(C)] #[derive(Clone, Copy)] pub struct KDEXT_FILELOCK_OWNER { @@ -3045,7 +3045,7 @@ pub struct KDEXT_HANDLE_INFORMATION { pub ObjectBody: u64, pub GrantedAccess: u64, pub HandleAttributes: u32, - pub PagedOut: super::super::super::super::Foundation::BOOLEAN, + pub PagedOut: bool, } #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/mod.rs index 821f7e2573..1f4daad400 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/mod.rs @@ -76,8 +76,8 @@ windows_targets::link!("dbghelp.dll" "system" fn GetTimestampForLoadedLibrary(mo windows_targets::link!("kernel32.dll" "system" fn GetXStateFeaturesMask(context : *const CONTEXT, featuremask : *mut u64) -> super::super::super::Foundation:: BOOL); #[cfg(feature = "Win32_Security_WinTrust")] windows_targets::link!("imagehlp.dll" "system" fn ImageAddCertificate(filehandle : super::super::super::Foundation:: HANDLE, certificate : *const super::super::super::Security::WinTrust:: WIN_CERTIFICATE, index : *mut u32) -> super::super::super::Foundation:: BOOL); -windows_targets::link!("dbghelp.dll" "system" fn ImageDirectoryEntryToData(base : *const core::ffi::c_void, mappedasimage : super::super::super::Foundation:: BOOLEAN, directoryentry : IMAGE_DIRECTORY_ENTRY, size : *mut u32) -> *mut core::ffi::c_void); -windows_targets::link!("dbghelp.dll" "system" fn ImageDirectoryEntryToDataEx(base : *const core::ffi::c_void, mappedasimage : super::super::super::Foundation:: BOOLEAN, directoryentry : IMAGE_DIRECTORY_ENTRY, size : *mut u32, foundheader : *mut *mut IMAGE_SECTION_HEADER) -> *mut core::ffi::c_void); +windows_targets::link!("dbghelp.dll" "system" fn ImageDirectoryEntryToData(base : *const core::ffi::c_void, mappedasimage : bool, directoryentry : IMAGE_DIRECTORY_ENTRY, size : *mut u32) -> *mut core::ffi::c_void); +windows_targets::link!("dbghelp.dll" "system" fn ImageDirectoryEntryToDataEx(base : *const core::ffi::c_void, mappedasimage : bool, directoryentry : IMAGE_DIRECTORY_ENTRY, size : *mut u32, foundheader : *mut *mut IMAGE_SECTION_HEADER) -> *mut core::ffi::c_void); windows_targets::link!("imagehlp.dll" "system" fn ImageEnumerateCertificates(filehandle : super::super::super::Foundation:: HANDLE, typefilter : u16, certificatecount : *mut u32, indices : *mut u32, indexcount : u32) -> super::super::super::Foundation:: BOOL); #[cfg(feature = "Win32_Security_WinTrust")] windows_targets::link!("imagehlp.dll" "system" fn ImageGetCertificateData(filehandle : super::super::super::Foundation:: HANDLE, certificateindex : u32, certificate : *mut super::super::super::Security::WinTrust:: WIN_CERTIFICATE, requiredlength : *mut u32) -> super::super::super::Foundation:: BOOL); @@ -148,9 +148,9 @@ windows_targets::link!("kernel32.dll" "system" fn RemoveVectoredContinueHandler( windows_targets::link!("kernel32.dll" "system" fn RemoveVectoredExceptionHandler(handle : *const core::ffi::c_void) -> u32); windows_targets::link!("dbghelp.dll" "system" fn ReportSymbolLoadSummary(hprocess : super::super::super::Foundation:: HANDLE, ploadmodule : windows_sys::core::PCWSTR, psymboldata : *const DBGHELP_DATA_REPORT_STRUCT) -> super::super::super::Foundation:: BOOL); #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] -windows_targets::link!("kernel32.dll" "system" fn RtlAddFunctionTable(functiontable : *const IMAGE_RUNTIME_FUNCTION_ENTRY, entrycount : u32, baseaddress : u64) -> super::super::super::Foundation:: BOOLEAN); +windows_targets::link!("kernel32.dll" "system" fn RtlAddFunctionTable(functiontable : *const IMAGE_RUNTIME_FUNCTION_ENTRY, entrycount : u32, baseaddress : u64) -> bool); #[cfg(target_arch = "aarch64")] -windows_targets::link!("kernel32.dll" "system" fn RtlAddFunctionTable(functiontable : *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, entrycount : u32, baseaddress : usize) -> super::super::super::Foundation:: BOOLEAN); +windows_targets::link!("kernel32.dll" "system" fn RtlAddFunctionTable(functiontable : *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, entrycount : u32, baseaddress : usize) -> bool); #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] windows_targets::link!("ntdll.dll" "system" fn RtlAddGrowableFunctionTable(dynamictable : *mut *mut core::ffi::c_void, functiontable : *const IMAGE_RUNTIME_FUNCTION_ENTRY, entrycount : u32, maximumentrycount : u32, rangebase : usize, rangeend : usize) -> u32); #[cfg(target_arch = "aarch64")] @@ -162,17 +162,17 @@ windows_targets::link!("kernel32.dll" "system" fn RtlCaptureContext(contextrecor windows_targets::link!("kernel32.dll" "system" fn RtlCaptureContext2(contextrecord : *mut CONTEXT)); windows_targets::link!("kernel32.dll" "system" fn RtlCaptureStackBackTrace(framestoskip : u32, framestocapture : u32, backtrace : *mut *mut core::ffi::c_void, backtracehash : *mut u32) -> u16); #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] -windows_targets::link!("kernel32.dll" "system" fn RtlDeleteFunctionTable(functiontable : *const IMAGE_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation:: BOOLEAN); +windows_targets::link!("kernel32.dll" "system" fn RtlDeleteFunctionTable(functiontable : *const IMAGE_RUNTIME_FUNCTION_ENTRY) -> bool); #[cfg(target_arch = "aarch64")] -windows_targets::link!("kernel32.dll" "system" fn RtlDeleteFunctionTable(functiontable : *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation:: BOOLEAN); +windows_targets::link!("kernel32.dll" "system" fn RtlDeleteFunctionTable(functiontable : *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> bool); #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] windows_targets::link!("ntdll.dll" "system" fn RtlDeleteGrowableFunctionTable(dynamictable : *const core::ffi::c_void)); #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] windows_targets::link!("ntdll.dll" "system" fn RtlGrowFunctionTable(dynamictable : *mut core::ffi::c_void, newentrycount : u32)); #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] -windows_targets::link!("kernel32.dll" "system" fn RtlInstallFunctionTableCallback(tableidentifier : u64, baseaddress : u64, length : u32, callback : PGET_RUNTIME_FUNCTION_CALLBACK, context : *const core::ffi::c_void, outofprocesscallbackdll : windows_sys::core::PCWSTR) -> super::super::super::Foundation:: BOOLEAN); +windows_targets::link!("kernel32.dll" "system" fn RtlInstallFunctionTableCallback(tableidentifier : u64, baseaddress : u64, length : u32, callback : PGET_RUNTIME_FUNCTION_CALLBACK, context : *const core::ffi::c_void, outofprocesscallbackdll : windows_sys::core::PCWSTR) -> bool); #[cfg(target_arch = "aarch64")] -windows_targets::link!("kernel32.dll" "system" fn RtlInstallFunctionTableCallback(tableidentifier : u64, baseaddress : u64, length : u32, callback : PGET_RUNTIME_FUNCTION_CALLBACK, context : *const core::ffi::c_void, outofprocesscallbackdll : windows_sys::core::PCWSTR) -> super::super::super::Foundation:: BOOLEAN); +windows_targets::link!("kernel32.dll" "system" fn RtlInstallFunctionTableCallback(tableidentifier : u64, baseaddress : u64, length : u32, callback : PGET_RUNTIME_FUNCTION_CALLBACK, context : *const core::ffi::c_void, outofprocesscallbackdll : windows_sys::core::PCWSTR) -> bool); #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] windows_targets::link!("kernel32.dll" "system" fn RtlLookupFunctionEntry(controlpc : u64, imagebase : *mut u64, historytable : *mut UNWIND_HISTORY_TABLE) -> *mut IMAGE_RUNTIME_FUNCTION_ENTRY); #[cfg(target_arch = "aarch64")] @@ -1102,7 +1102,7 @@ pub struct DISPATCHER_CONTEXT { pub HandlerData: *mut core::ffi::c_void, pub HistoryTable: *mut UNWIND_HISTORY_TABLE, pub ScopeIndex: u32, - pub ControlPcIsUnwound: super::super::super::Foundation::BOOLEAN, + pub ControlPcIsUnwound: bool, pub NonVolatileRegisters: *mut u8, } pub const DMA_COMMON_BUFFER_VECTOR_ERROR: BUGCHECK_ERROR = 476u32; @@ -1625,7 +1625,7 @@ pub struct IMAGEHLP_DEFERRED_SYMBOL_LOAD { pub CheckSum: u32, pub TimeDateStamp: u32, pub FileName: [i8; 260], - pub Reparse: super::super::super::Foundation::BOOLEAN, + pub Reparse: bool, pub hFile: super::super::super::Foundation::HANDLE, } #[repr(C)] @@ -1636,7 +1636,7 @@ pub struct IMAGEHLP_DEFERRED_SYMBOL_LOAD64 { pub CheckSum: u32, pub TimeDateStamp: u32, pub FileName: [i8; 260], - pub Reparse: super::super::super::Foundation::BOOLEAN, + pub Reparse: bool, pub hFile: super::super::super::Foundation::HANDLE, pub Flags: u32, } @@ -1648,7 +1648,7 @@ pub struct IMAGEHLP_DEFERRED_SYMBOL_LOADW64 { pub CheckSum: u32, pub TimeDateStamp: u32, pub FileName: [u16; 261], - pub Reparse: super::super::super::Foundation::BOOLEAN, + pub Reparse: bool, pub hFile: super::super::super::Foundation::HANDLE, pub Flags: u32, } @@ -2767,9 +2767,9 @@ pub struct LOADED_IMAGE { pub NumberOfSections: u32, pub Sections: *mut IMAGE_SECTION_HEADER, pub Characteristics: IMAGE_FILE_CHARACTERISTICS2, - pub fSystemImage: super::super::super::Foundation::BOOLEAN, - pub fDOSImage: super::super::super::Foundation::BOOLEAN, - pub fReadOnly: super::super::super::Foundation::BOOLEAN, + pub fSystemImage: bool, + pub fDOSImage: bool, + pub fReadOnly: bool, pub Version: u8, pub Links: super::super::Kernel::LIST_ENTRY, pub SizeOfImage: u32, @@ -2787,9 +2787,9 @@ pub struct LOADED_IMAGE { pub NumberOfSections: u32, pub Sections: *mut IMAGE_SECTION_HEADER, pub Characteristics: IMAGE_FILE_CHARACTERISTICS2, - pub fSystemImage: super::super::super::Foundation::BOOLEAN, - pub fDOSImage: super::super::super::Foundation::BOOLEAN, - pub fReadOnly: super::super::super::Foundation::BOOLEAN, + pub fSystemImage: bool, + pub fDOSImage: bool, + pub fReadOnly: bool, pub Version: u8, pub Links: super::super::Kernel::LIST_ENTRY, pub SizeOfImage: u32, @@ -4772,7 +4772,7 @@ pub const WFP_INVALID_OPERATION: BUGCHECK_ERROR = 467u32; #[derive(Clone, Copy)] pub struct WHEA_AER_BRIDGE_DESCRIPTOR { pub Type: u16, - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, pub Reserved: u8, pub BusNumber: u32, pub Slot: WHEA_PCI_SLOT_NUMBER, @@ -4790,7 +4790,7 @@ pub struct WHEA_AER_BRIDGE_DESCRIPTOR { #[derive(Clone, Copy)] pub struct WHEA_AER_ENDPOINT_DESCRIPTOR { pub Type: u16, - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, pub Reserved: u8, pub BusNumber: u32, pub Slot: WHEA_PCI_SLOT_NUMBER, @@ -4805,7 +4805,7 @@ pub struct WHEA_AER_ENDPOINT_DESCRIPTOR { #[derive(Clone, Copy)] pub struct WHEA_AER_ROOTPORT_DESCRIPTOR { pub Type: u16, - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, pub Reserved: u8, pub BusNumber: u32, pub Slot: WHEA_PCI_SLOT_NUMBER, @@ -4833,7 +4833,7 @@ pub const WHEA_DEVICE_DRIVER_CONFIG_V2: u32 = 2u32; #[derive(Clone, Copy)] pub struct WHEA_DEVICE_DRIVER_DESCRIPTOR { pub Type: u16, - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, pub Reserved: u8, pub SourceGuid: windows_sys::core::GUID, pub LogTag: u16, @@ -5158,7 +5158,7 @@ pub const WHEA_UNCORRECTABLE_ERROR: BUGCHECK_ERROR = 292u32; #[derive(Clone, Copy)] pub struct WHEA_XPF_CMC_DESCRIPTOR { pub Type: u16, - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, pub NumberOfBanks: u8, pub Reserved: u32, pub Notify: WHEA_NOTIFICATION_DESCRIPTOR, @@ -5179,7 +5179,7 @@ pub struct WHEA_XPF_MCE_DESCRIPTOR { #[derive(Clone, Copy)] pub struct WHEA_XPF_MC_BANK_DESCRIPTOR { pub BankNumber: u8, - pub ClearOnInitialization: super::super::super::Foundation::BOOLEAN, + pub ClearOnInitialization: bool, pub StatusDataFormat: u8, pub Flags: XPF_MC_BANK_FLAGS, pub ControlMsr: u32, @@ -5195,7 +5195,7 @@ pub const WHEA_XPF_MC_BANK_STATUSFORMAT_Intel64MCA: u32 = 1u32; #[derive(Clone, Copy)] pub struct WHEA_XPF_NMI_DESCRIPTOR { pub Type: u16, - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, } pub const WIN32K_ATOMIC_CHECK_FAILURE: BUGCHECK_ERROR = 352u32; pub const WIN32K_CALLOUT_WATCHDOG_BUGCHECK: BUGCHECK_ERROR = 418u32; diff --git a/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Etw/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Etw/mod.rs index d7e2ea0397..66301b3b85 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Etw/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Etw/mod.rs @@ -9,13 +9,13 @@ windows_targets::link!("advapi32.dll" "system" fn EnableTraceEx2(tracehandle : C windows_targets::link!("advapi32.dll" "system" fn EnumerateTraceGuids(guidpropertiesarray : *mut *mut TRACE_GUID_PROPERTIES, propertyarraycount : u32, guidcount : *mut u32) -> super::super::super::Foundation:: WIN32_ERROR); windows_targets::link!("advapi32.dll" "system" fn EnumerateTraceGuidsEx(tracequeryinfoclass : TRACE_QUERY_INFO_CLASS, inbuffer : *const core::ffi::c_void, inbuffersize : u32, outbuffer : *mut core::ffi::c_void, outbuffersize : u32, returnlength : *mut u32) -> super::super::super::Foundation:: WIN32_ERROR); #[cfg(feature = "Win32_Security")] -windows_targets::link!("advapi32.dll" "system" fn EventAccessControl(guid : *const windows_sys::core::GUID, operation : u32, sid : super::super::super::Security:: PSID, rights : u32, allowordeny : super::super::super::Foundation:: BOOLEAN) -> u32); +windows_targets::link!("advapi32.dll" "system" fn EventAccessControl(guid : *const windows_sys::core::GUID, operation : u32, sid : super::super::super::Security:: PSID, rights : u32, allowordeny : bool) -> u32); #[cfg(feature = "Win32_Security")] windows_targets::link!("advapi32.dll" "system" fn EventAccessQuery(guid : *const windows_sys::core::GUID, buffer : super::super::super::Security:: PSECURITY_DESCRIPTOR, buffersize : *mut u32) -> u32); windows_targets::link!("advapi32.dll" "system" fn EventAccessRemove(guid : *const windows_sys::core::GUID) -> u32); windows_targets::link!("advapi32.dll" "system" fn EventActivityIdControl(controlcode : u32, activityid : *mut windows_sys::core::GUID) -> u32); -windows_targets::link!("advapi32.dll" "system" fn EventEnabled(reghandle : REGHANDLE, eventdescriptor : *const EVENT_DESCRIPTOR) -> super::super::super::Foundation:: BOOLEAN); -windows_targets::link!("advapi32.dll" "system" fn EventProviderEnabled(reghandle : REGHANDLE, level : u8, keyword : u64) -> super::super::super::Foundation:: BOOLEAN); +windows_targets::link!("advapi32.dll" "system" fn EventEnabled(reghandle : REGHANDLE, eventdescriptor : *const EVENT_DESCRIPTOR) -> bool); +windows_targets::link!("advapi32.dll" "system" fn EventProviderEnabled(reghandle : REGHANDLE, level : u8, keyword : u64) -> bool); windows_targets::link!("advapi32.dll" "system" fn EventRegister(providerid : *const windows_sys::core::GUID, enablecallback : PENABLECALLBACK, callbackcontext : *const core::ffi::c_void, reghandle : *mut REGHANDLE) -> u32); windows_targets::link!("advapi32.dll" "system" fn EventSetInformation(reghandle : REGHANDLE, informationclass : EVENT_INFO_CLASS, eventinformation : *const core::ffi::c_void, informationlength : u32) -> u32); windows_targets::link!("advapi32.dll" "system" fn EventUnregister(reghandle : REGHANDLE) -> u32); @@ -57,10 +57,10 @@ windows_targets::link!("advapi32.dll" "system" fn StartTraceA(tracehandle : *mut windows_targets::link!("advapi32.dll" "system" fn StartTraceW(tracehandle : *mut CONTROLTRACE_HANDLE, instancename : windows_sys::core::PCWSTR, properties : *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation:: WIN32_ERROR); windows_targets::link!("advapi32.dll" "system" fn StopTraceA(tracehandle : CONTROLTRACE_HANDLE, instancename : windows_sys::core::PCSTR, properties : *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation:: WIN32_ERROR); windows_targets::link!("advapi32.dll" "system" fn StopTraceW(tracehandle : CONTROLTRACE_HANDLE, instancename : windows_sys::core::PCWSTR, properties : *mut EVENT_TRACE_PROPERTIES) -> super::super::super::Foundation:: WIN32_ERROR); -windows_targets::link!("tdh.dll" "system" fn TdhAggregatePayloadFilters(payloadfiltercount : u32, payloadfilterptrs : *const *const core::ffi::c_void, eventmatchallflags : *const super::super::super::Foundation:: BOOLEAN, eventfilterdescriptor : *mut EVENT_FILTER_DESCRIPTOR) -> u32); +windows_targets::link!("tdh.dll" "system" fn TdhAggregatePayloadFilters(payloadfiltercount : u32, payloadfilterptrs : *const *const core::ffi::c_void, eventmatchallflags : *const bool, eventfilterdescriptor : *mut EVENT_FILTER_DESCRIPTOR) -> u32); windows_targets::link!("tdh.dll" "system" fn TdhCleanupPayloadEventFilterDescriptor(eventfilterdescriptor : *mut EVENT_FILTER_DESCRIPTOR) -> u32); windows_targets::link!("tdh.dll" "system" fn TdhCloseDecodingHandle(handle : TDH_HANDLE) -> u32); -windows_targets::link!("tdh.dll" "system" fn TdhCreatePayloadFilter(providerguid : *const windows_sys::core::GUID, eventdescriptor : *const EVENT_DESCRIPTOR, eventmatchany : super::super::super::Foundation:: BOOLEAN, payloadpredicatecount : u32, payloadpredicates : *const PAYLOAD_FILTER_PREDICATE, payloadfilter : *mut *mut core::ffi::c_void) -> u32); +windows_targets::link!("tdh.dll" "system" fn TdhCreatePayloadFilter(providerguid : *const windows_sys::core::GUID, eventdescriptor : *const EVENT_DESCRIPTOR, eventmatchany : bool, payloadpredicatecount : u32, payloadpredicates : *const PAYLOAD_FILTER_PREDICATE, payloadfilter : *mut *mut core::ffi::c_void) -> u32); windows_targets::link!("tdh.dll" "system" fn TdhDeletePayloadFilter(payloadfilter : *mut *mut core::ffi::c_void) -> u32); windows_targets::link!("tdh.dll" "system" fn TdhEnumerateManifestProviderEvents(providerguid : *const windows_sys::core::GUID, buffer : *mut PROVIDER_EVENT_INFO, buffersize : *mut u32) -> u32); windows_targets::link!("tdh.dll" "system" fn TdhEnumerateProviderFieldInformation(pguid : *const windows_sys::core::GUID, eventfieldtype : EVENT_FIELD_TYPE, pbuffer : *mut PROVIDER_FIELD_INFOARRAY, pbuffersize : *mut u32) -> u32); @@ -407,7 +407,7 @@ pub struct EVENT_FILTER_DESCRIPTOR { #[repr(C)] #[derive(Clone, Copy)] pub struct EVENT_FILTER_EVENT_ID { - pub FilterIn: super::super::super::Foundation::BOOLEAN, + pub FilterIn: bool, pub Reserved: u8, pub Count: u16, pub Events: [u16; 1], @@ -418,7 +418,7 @@ pub struct EVENT_FILTER_EVENT_NAME { pub MatchAnyKeyword: u64, pub MatchAllKeyword: u64, pub Level: u8, - pub FilterIn: super::super::super::Foundation::BOOLEAN, + pub FilterIn: bool, pub NameCount: u16, pub Names: [u8; 1], } @@ -438,7 +438,7 @@ pub struct EVENT_FILTER_LEVEL_KW { pub MatchAnyKeyword: u64, pub MatchAllKeyword: u64, pub Level: u8, - pub FilterIn: super::super::super::Foundation::BOOLEAN, + pub FilterIn: bool, } pub const EVENT_FILTER_TYPE_CONTAINER: u32 = 2147516416u32; pub const EVENT_FILTER_TYPE_EVENT_ID: u32 = 2147484160u32; @@ -1580,7 +1580,7 @@ pub struct TRACE_GUID_PROPERTIES { pub LoggerId: u32, pub EnableLevel: u32, pub EnableFlags: u32, - pub IsEnable: super::super::super::Foundation::BOOLEAN, + pub IsEnable: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -1813,7 +1813,7 @@ pub type TRACE_QUERY_INFO_CLASS = i32; #[repr(C)] #[derive(Clone, Copy)] pub struct TRACE_STACK_CACHING_INFO { - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, pub CacheSize: u32, pub BucketCount: u32, } diff --git a/crates/libs/sys/src/Windows/Win32/System/Ioctl/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Ioctl/mod.rs index dcb09fa49e..5b73e228d6 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Ioctl/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Ioctl/mod.rs @@ -126,8 +126,8 @@ pub struct CHANGER_EXCHANGE_MEDIUM { pub Source: CHANGER_ELEMENT, pub Destination1: CHANGER_ELEMENT, pub Destination2: CHANGER_ELEMENT, - pub Flip1: super::super::Foundation::BOOLEAN, - pub Flip2: super::super::Foundation::BOOLEAN, + pub Flip1: bool, + pub Flip2: bool, } pub type CHANGER_FEATURES = u32; pub const CHANGER_IEPORT_USER_CONTROL_CLOSE: GET_CHANGER_PARAMETERS_FEATURES1 = 2147483904u32; @@ -136,7 +136,7 @@ pub const CHANGER_IEPORT_USER_CONTROL_OPEN: GET_CHANGER_PARAMETERS_FEATURES1 = 2 #[derive(Clone, Copy)] pub struct CHANGER_INITIALIZE_ELEMENT_STATUS { pub ElementList: CHANGER_ELEMENT_LIST, - pub BarCodeScan: super::super::Foundation::BOOLEAN, + pub BarCodeScan: bool, } pub const CHANGER_INIT_ELEM_STAT_WITH_RANGE: CHANGER_FEATURES = 2u32; pub const CHANGER_KEYPAD_ENABLE_DISABLE: CHANGER_FEATURES = 268435456u32; @@ -149,7 +149,7 @@ pub struct CHANGER_MOVE_MEDIUM { pub Transport: CHANGER_ELEMENT, pub Source: CHANGER_ELEMENT, pub Destination: CHANGER_ELEMENT, - pub Flip: super::super::Foundation::BOOLEAN, + pub Flip: bool, } pub const CHANGER_MOVE_RETRACTS_IEPORT: GET_CHANGER_PARAMETERS_FEATURES1 = 2147484672u32; pub const CHANGER_OPEN_IEPORT: CHANGER_FEATURES = 8u32; @@ -171,7 +171,7 @@ pub struct CHANGER_PRODUCT_DATA { #[derive(Clone, Copy)] pub struct CHANGER_READ_ELEMENT_STATUS { pub ElementList: CHANGER_ELEMENT_LIST, - pub VolumeTagInfo: super::super::Foundation::BOOLEAN, + pub VolumeTagInfo: bool, } pub const CHANGER_REPORT_IEPORT_STATE: CHANGER_FEATURES = 2048u32; pub const CHANGER_RESERVED_BIT: u32 = 2147483648u32; @@ -195,7 +195,7 @@ pub struct CHANGER_SET_ACCESS { pub struct CHANGER_SET_POSITION { pub Transport: CHANGER_ELEMENT, pub Destination: CHANGER_ELEMENT, - pub Flip: super::super::Foundation::BOOLEAN, + pub Flip: bool, } pub const CHANGER_SLOTS_USE_TRAYS: GET_CHANGER_PARAMETERS_FEATURES1 = 2147483664u32; pub const CHANGER_STATUS_NON_VOLATILE: CHANGER_FEATURES = 16u32; @@ -304,7 +304,7 @@ pub const CSV_INVALID_DEVICE_NUMBER: u32 = 4294967295u32; #[repr(C)] #[derive(Clone, Copy)] pub struct CSV_IS_OWNED_BY_CSVFS { - pub OwnedByCSVFS: super::super::Foundation::BOOLEAN, + pub OwnedByCSVFS: bool, } pub const CSV_MGMTLOCK_CHECK_VOLUME_REDIRECTED: u32 = 1u32; #[repr(C)] @@ -365,7 +365,7 @@ pub const CSV_QUERY_MDS_PATH_V2_VERSION_1: u32 = 1u32; pub struct CSV_QUERY_REDIRECT_STATE { pub MdsNodeId: u32, pub DsNodeId: u32, - pub FileRedirected: super::super::Foundation::BOOLEAN, + pub FileRedirected: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -384,8 +384,8 @@ pub struct CSV_QUERY_VOLUME_ID { pub struct CSV_QUERY_VOLUME_REDIRECT_STATE { pub MdsNodeId: u32, pub DsNodeId: u32, - pub IsDiskConnected: super::super::Foundation::BOOLEAN, - pub ClusterEnableDirectIo: super::super::Foundation::BOOLEAN, + pub IsDiskConnected: bool, + pub ClusterEnableDirectIo: bool, pub DiskConnectivity: CSVFS_DISK_CONNECTIVITY, } #[repr(C)] @@ -430,7 +430,7 @@ pub const DDUMP_FLAG_DATA_READ_FROM_DEVICE: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy)] pub struct DECRYPTION_STATUS_BUFFER { - pub NoEncryptedStreams: super::super::Foundation::BOOLEAN, + pub NoEncryptedStreams: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -640,10 +640,10 @@ pub struct DEVICE_DSM_CONVERSION_OUTPUT { #[derive(Clone, Copy)] pub struct DEVICE_DSM_DEFINITION { pub Action: u32, - pub SingleRange: super::super::Foundation::BOOLEAN, + pub SingleRange: bool, pub ParameterBlockAlignment: u32, pub ParameterBlockLength: u32, - pub HasOutput: super::super::Foundation::BOOLEAN, + pub HasOutput: bool, pub OutputBlockAlignment: u32, pub OutputBlockLength: u32, } @@ -917,12 +917,12 @@ pub struct DEVICE_MEDIA_INFO_0_2_0_0 { pub struct DEVICE_POWER_DESCRIPTOR { pub Version: u32, pub Size: u32, - pub DeviceAttentionSupported: super::super::Foundation::BOOLEAN, - pub AsynchronousNotificationSupported: super::super::Foundation::BOOLEAN, - pub IdlePowerManagementEnabled: super::super::Foundation::BOOLEAN, - pub D3ColdEnabled: super::super::Foundation::BOOLEAN, - pub D3ColdSupported: super::super::Foundation::BOOLEAN, - pub NoVerifyDuringIdlePower: super::super::Foundation::BOOLEAN, + pub DeviceAttentionSupported: bool, + pub AsynchronousNotificationSupported: bool, + pub IdlePowerManagementEnabled: bool, + pub D3ColdEnabled: bool, + pub D3ColdSupported: bool, + pub NoVerifyDuringIdlePower: bool, pub Reserved: [u8; 2], pub IdleTimeoutInMS: u32, } @@ -931,7 +931,7 @@ pub struct DEVICE_POWER_DESCRIPTOR { pub struct DEVICE_SEEK_PENALTY_DESCRIPTOR { pub Version: u32, pub Size: u32, - pub IncursSeekPenalty: super::super::Foundation::BOOLEAN, + pub IncursSeekPenalty: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -963,14 +963,14 @@ pub struct DEVICE_STORAGE_RANGE_ATTRIBUTES_0_0 { pub struct DEVICE_TRIM_DESCRIPTOR { pub Version: u32, pub Size: u32, - pub TrimEnabled: super::super::Foundation::BOOLEAN, + pub TrimEnabled: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct DEVICE_WRITE_AGGREGATION_DESCRIPTOR { pub Version: u32, pub Size: u32, - pub BenefitsFromWriteAggregation: super::super::Foundation::BOOLEAN, + pub BenefitsFromWriteAggregation: bool, } pub const DEVPKEY_Storage_Disk_Number: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4d1ebee8_0803_4774_9842_b77db50265e9), pid: 5 }; pub const DEVPKEY_Storage_Gpt_Name: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4d1ebee8_0803_4774_9842_b77db50265e9), pid: 9 }; @@ -987,13 +987,13 @@ pub const DISK_BINNING: u32 = 3u32; #[repr(C)] #[derive(Clone, Copy)] pub struct DISK_CACHE_INFORMATION { - pub ParametersSavable: super::super::Foundation::BOOLEAN, - pub ReadCacheEnabled: super::super::Foundation::BOOLEAN, - pub WriteCacheEnabled: super::super::Foundation::BOOLEAN, + pub ParametersSavable: bool, + pub ReadCacheEnabled: bool, + pub WriteCacheEnabled: bool, pub ReadRetentionPriority: DISK_CACHE_RETENTION_PRIORITY, pub WriteRetentionPriority: DISK_CACHE_RETENTION_PRIORITY, pub DisablePrefetchTransferLength: u16, - pub PrefetchScalar: super::super::Foundation::BOOLEAN, + pub PrefetchScalar: bool, pub Anonymous: DISK_CACHE_INFORMATION_0, } #[repr(C)] @@ -1164,7 +1164,7 @@ pub struct DISK_RECORD { pub VirtualAddress: *mut core::ffi::c_void, pub NumberOfBytes: u32, pub DeviceNumber: u8, - pub ReadRequest: super::super::Foundation::BOOLEAN, + pub ReadRequest: bool, } pub const DLT: STORAGE_MEDIA_TYPE = 39i32; pub const DMI: STORAGE_MEDIA_TYPE = 48i32; @@ -1709,7 +1709,7 @@ pub struct FILE_LEVEL_TRIM_RANGE { #[repr(C)] #[derive(Clone, Copy)] pub struct FILE_MAKE_COMPATIBLE_BUFFER { - pub CloseDisc: super::super::Foundation::BOOLEAN, + pub CloseDisc: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -1786,7 +1786,7 @@ pub struct FILE_QUERY_ON_DISK_VOL_INFO_BUFFER { #[derive(Clone, Copy)] pub struct FILE_QUERY_SPARING_BUFFER { pub SparingUnitBytes: u32, - pub SoftwareSparing: super::super::Foundation::BOOLEAN, + pub SoftwareSparing: bool, pub TotalSpareBlocks: u32, pub FreeSpareBlocks: u32, } @@ -1830,13 +1830,13 @@ pub const FILE_REGION_USAGE_VALID_NONCACHED_DATA: u32 = 2u32; #[repr(C)] #[derive(Clone, Copy)] pub struct FILE_SET_DEFECT_MGMT_BUFFER { - pub Disable: super::super::Foundation::BOOLEAN, + pub Disable: bool, } pub const FILE_SET_ENCRYPTION: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy)] pub struct FILE_SET_SPARSE_BUFFER { - pub SetSparse: super::super::Foundation::BOOLEAN, + pub SetSparse: bool, } pub const FILE_SPECIAL_ACCESS: u32 = 0u32; #[repr(C)] @@ -3098,9 +3098,9 @@ pub struct PARTITION_INFORMATION { pub HiddenSectors: u32, pub PartitionNumber: u32, pub PartitionType: u8, - pub BootIndicator: super::super::Foundation::BOOLEAN, - pub RecognizedPartition: super::super::Foundation::BOOLEAN, - pub RewritePartition: super::super::Foundation::BOOLEAN, + pub BootIndicator: bool, + pub RecognizedPartition: bool, + pub RewritePartition: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -3109,8 +3109,8 @@ pub struct PARTITION_INFORMATION_EX { pub StartingOffset: i64, pub PartitionLength: i64, pub PartitionNumber: u32, - pub RewritePartition: super::super::Foundation::BOOLEAN, - pub IsServicePartition: super::super::Foundation::BOOLEAN, + pub RewritePartition: bool, + pub IsServicePartition: bool, pub Anonymous: PARTITION_INFORMATION_EX_0, } #[repr(C)] @@ -3131,8 +3131,8 @@ pub struct PARTITION_INFORMATION_GPT { #[derive(Clone, Copy)] pub struct PARTITION_INFORMATION_MBR { pub PartitionType: u8, - pub BootIndicator: super::super::Foundation::BOOLEAN, - pub RecognizedPartition: super::super::Foundation::BOOLEAN, + pub BootIndicator: bool, + pub RecognizedPartition: bool, pub HiddenSectors: u32, pub PartitionId: windows_sys::core::GUID, } @@ -3259,7 +3259,7 @@ pub struct PLEX_READ_DATA_REQUEST { #[repr(C)] #[derive(Clone, Copy)] pub struct PREVENT_MEDIA_REMOVAL { - pub PreventMediaRemoval: super::super::Foundation::BOOLEAN, + pub PreventMediaRemoval: bool, } pub const PRODUCT_ID_LENGTH: u32 = 16u32; pub const PROJFS_PROTOCOL_VERSION: u32 = 3u32; @@ -3609,7 +3609,7 @@ pub struct SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO_0 { #[repr(C)] #[derive(Clone, Copy)] pub struct SCM_BUS_DEDICATED_MEMORY_STATE { - pub ActivateState: super::super::Foundation::BOOLEAN, + pub ActivateState: bool, } pub type SCM_BUS_FIRMWARE_ACTIVATION_STATE = i32; pub type SCM_BUS_PROPERTY_ID = i32; @@ -3637,7 +3637,7 @@ pub type SCM_BUS_QUERY_TYPE = i32; pub struct SCM_BUS_RUNTIME_FW_ACTIVATION_INFO { pub Version: u32, pub Size: u32, - pub RuntimeFwActivationSupported: super::super::Foundation::BOOLEAN, + pub RuntimeFwActivationSupported: bool, pub FirmwareActivationState: SCM_BUS_FIRMWARE_ACTIVATION_STATE, pub FirmwareActivationCapability: SCM_BUS_RUNTIME_FW_ACTIVATION_INFO_0, pub EstimatedFirmwareActivationTimeInUSecs: u64, @@ -3892,7 +3892,7 @@ pub struct SCM_PD_REINITIALIZE_MEDIA_OUTPUT { #[repr(C)] #[derive(Clone, Copy)] pub struct SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE { - pub ArmState: super::super::Foundation::BOOLEAN, + pub ArmState: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -4083,7 +4083,7 @@ pub struct SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT { #[derive(Clone, Copy)] pub struct SET_DISK_ATTRIBUTES { pub Version: u32, - pub Persist: super::super::Foundation::BOOLEAN, + pub Persist: bool, pub Reserved1: [u8; 3], pub Attributes: u64, pub AttributesMask: u64, @@ -4214,10 +4214,10 @@ pub struct STORAGE_ADAPTER_DESCRIPTOR { pub MaximumTransferLength: u32, pub MaximumPhysicalPages: u32, pub AlignmentMask: u32, - pub AdapterUsesPio: super::super::Foundation::BOOLEAN, - pub AdapterScansDown: super::super::Foundation::BOOLEAN, - pub CommandQueueing: super::super::Foundation::BOOLEAN, - pub AcceleratedTransfer: super::super::Foundation::BOOLEAN, + pub AdapterUsesPio: bool, + pub AdapterScansDown: bool, + pub CommandQueueing: bool, + pub AcceleratedTransfer: bool, pub BusType: u8, pub BusMajorVersion: u16, pub BusMinorVersion: u16, @@ -4239,9 +4239,9 @@ pub struct STORAGE_ALLOCATE_BC_STREAM_INPUT { pub Version: u32, pub RequestsPerPeriod: u32, pub Period: u32, - pub RetryFailures: super::super::Foundation::BOOLEAN, - pub Discardable: super::super::Foundation::BOOLEAN, - pub Reserved1: [super::super::Foundation::BOOLEAN; 2], + pub RetryFailures: bool, + pub Discardable: bool, + pub Reserved1: [bool; 2], pub AccessType: u32, pub AccessMode: u32, } @@ -4357,8 +4357,8 @@ pub struct STORAGE_DEVICE_DESCRIPTOR { pub Size: u32, pub DeviceType: u8, pub DeviceTypeModifier: u8, - pub RemovableMedia: super::super::Foundation::BOOLEAN, - pub CommandQueueing: super::super::Foundation::BOOLEAN, + pub RemovableMedia: bool, + pub CommandQueueing: bool, pub VendorIdOffset: u32, pub ProductIdOffset: u32, pub ProductRevisionOffset: u32, @@ -4483,14 +4483,14 @@ pub struct STORAGE_DEVICE_RESILIENCY_DESCRIPTOR { pub struct STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY { pub Version: u32, pub Size: u32, - pub SupportsSelfEncryption: super::super::Foundation::BOOLEAN, + pub SupportsSelfEncryption: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2 { pub Version: u32, pub Size: u32, - pub SupportsSelfEncryption: super::super::Foundation::BOOLEAN, + pub SupportsSelfEncryption: bool, pub EncryptionType: STORAGE_ENCRYPTION_TYPE, } pub const STORAGE_DEVICE_TELEMETRY_REGKEY: windows_sys::core::PCWSTR = windows_sys::core::w!("\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Storage\\StorageTelemetry"); @@ -4552,8 +4552,8 @@ pub const STORAGE_EVENT_NOTIFICATION_VERSION_V1: u32 = 1u32; pub struct STORAGE_FAILURE_PREDICTION_CONFIG { pub Version: u32, pub Size: u32, - pub Set: super::super::Foundation::BOOLEAN, - pub Enabled: super::super::Foundation::BOOLEAN, + pub Set: bool, + pub Enabled: bool, pub Reserved: u16, } pub const STORAGE_FAILURE_PREDICTION_CONFIG_V1: u32 = 1u32; @@ -4579,10 +4579,10 @@ pub struct STORAGE_GET_BC_PROPERTIES_OUTPUT { #[derive(Clone, Copy)] pub struct STORAGE_HOTPLUG_INFO { pub Size: u32, - pub MediaRemovable: super::super::Foundation::BOOLEAN, - pub MediaHotplug: super::super::Foundation::BOOLEAN, - pub DeviceHotplug: super::super::Foundation::BOOLEAN, - pub WriteCacheEnableOverride: super::super::Foundation::BOOLEAN, + pub MediaRemovable: bool, + pub MediaHotplug: bool, + pub DeviceHotplug: bool, + pub WriteCacheEnableOverride: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -4650,7 +4650,7 @@ pub struct STORAGE_HW_FIRMWARE_INFO { pub SlotCount: u8, pub ActiveSlot: u8, pub PendingActivateSlot: u8, - pub FirmwareShared: super::super::Foundation::BOOLEAN, + pub FirmwareShared: bool, pub Reserved: [u8; 3], pub ImagePayloadAlignment: u32, pub ImagePayloadMaxSize: u32, @@ -4743,10 +4743,10 @@ pub struct STORAGE_MINIPORT_DESCRIPTOR { pub Version: u32, pub Size: u32, pub Portdriver: STORAGE_PORT_CODE_SET, - pub LUNResetSupported: super::super::Foundation::BOOLEAN, - pub TargetResetSupported: super::super::Foundation::BOOLEAN, + pub LUNResetSupported: bool, + pub TargetResetSupported: bool, pub IoTimeoutValue: u16, - pub ExtraIoInfoSupported: super::super::Foundation::BOOLEAN, + pub ExtraIoInfoSupported: bool, pub Flags: STORAGE_MINIPORT_DESCRIPTOR_0, pub Reserved0: [u8; 2], pub Reserved1: u32, @@ -4845,7 +4845,7 @@ pub struct STORAGE_PHYSICAL_ADAPTER_DATA { pub Model: [u8; 40], pub FirmwareRevision: [u8; 16], pub PhysicalLocation: [u8; 32], - pub ExpanderConnected: super::super::Foundation::BOOLEAN, + pub ExpanderConnected: bool, pub Reserved0: [u8; 3], pub Reserved1: [u32; 3], } @@ -5157,9 +5157,9 @@ pub struct STORAGE_TEMPERATURE_INFO { pub Temperature: i16, pub OverThreshold: i16, pub UnderThreshold: i16, - pub OverThresholdChangable: super::super::Foundation::BOOLEAN, - pub UnderThresholdChangable: super::super::Foundation::BOOLEAN, - pub EventGenerated: super::super::Foundation::BOOLEAN, + pub OverThresholdChangable: bool, + pub UnderThresholdChangable: bool, + pub EventGenerated: bool, pub Reserved0: u8, pub Reserved1: u32, } @@ -5171,7 +5171,7 @@ pub struct STORAGE_TEMPERATURE_THRESHOLD { pub Flags: u16, pub Index: u16, pub Threshold: i16, - pub OverThreshold: super::super::Foundation::BOOLEAN, + pub OverThreshold: bool, pub Reserved: u8, } pub const STORAGE_TEMPERATURE_THRESHOLD_FLAG_ADAPTER_REQUEST: u32 = 1u32; @@ -5212,9 +5212,9 @@ pub struct STORAGE_WRITE_CACHE_PROPERTY { pub WriteCacheEnabled: WRITE_CACHE_ENABLE, pub WriteCacheChangeable: WRITE_CACHE_CHANGE, pub WriteThroughSupported: WRITE_THROUGH, - pub FlushCacheSupported: super::super::Foundation::BOOLEAN, - pub UserDefinedPowerProtection: super::super::Foundation::BOOLEAN, - pub NVCacheEnabled: super::super::Foundation::BOOLEAN, + pub FlushCacheSupported: bool, + pub UserDefinedPowerProtection: bool, + pub NVCacheEnabled: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -5243,7 +5243,7 @@ pub struct STORAGE_ZONED_DEVICE_DESCRIPTOR_0_1 { #[derive(Clone, Copy)] pub struct STORAGE_ZONED_DEVICE_DESCRIPTOR_0_0 { pub MaxOpenZoneCount: u32, - pub UnrestrictedRead: super::super::Foundation::BOOLEAN, + pub UnrestrictedRead: bool, pub Reserved: [u8; 3], } pub type STORAGE_ZONED_DEVICE_TYPES = i32; @@ -5255,7 +5255,7 @@ pub struct STORAGE_ZONE_DESCRIPTOR { pub Size: u32, pub ZoneType: STORAGE_ZONE_TYPES, pub ZoneCondition: STORAGE_ZONE_CONDITION, - pub ResetWritePointerRecommend: super::super::Foundation::BOOLEAN, + pub ResetWritePointerRecommend: bool, pub Reserved0: [u8; 3], pub ZoneSize: u64, pub WritePointerOffset: u64, @@ -5844,7 +5844,7 @@ pub const TXFS_TRANSACTED_VERSION_UNCOMMITTED: u32 = 4294967295u32; #[repr(C)] #[derive(Clone, Copy)] pub struct TXFS_TRANSACTION_ACTIVE_INFO { - pub TransactionsActiveAtSnapshot: super::super::Foundation::BOOLEAN, + pub TransactionsActiveAtSnapshot: bool, } pub const TXFS_TRANSACTION_STATE_ACTIVE: u32 = 1u32; pub const TXFS_TRANSACTION_STATE_NONE: u32 = 0u32; diff --git a/crates/libs/sys/src/Windows/Win32/System/Memory/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Memory/mod.rs index f2fce34c36..67a95afc09 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Memory/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Memory/mod.rs @@ -85,7 +85,7 @@ windows_targets::link!("kernel32.dll" "system" fn ResetWriteWatch(lpbaseaddress windows_targets::link!("kernel32.dll" "system" fn RtlCompareMemory(source1 : *const core::ffi::c_void, source2 : *const core::ffi::c_void, length : usize) -> usize); windows_targets::link!("ntdll.dll" "system" fn RtlCrc32(buffer : *const core::ffi::c_void, size : usize, initialcrc : u32) -> u32); windows_targets::link!("ntdll.dll" "system" fn RtlCrc64(buffer : *const core::ffi::c_void, size : usize, initialcrc : u64) -> u64); -windows_targets::link!("ntdll.dll" "system" fn RtlIsZeroMemory(buffer : *const core::ffi::c_void, length : usize) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlIsZeroMemory(buffer : *const core::ffi::c_void, length : usize) -> bool); windows_targets::link!("api-ms-win-core-memory-l1-1-3.dll" "system" fn SetProcessValidCallTargets(hprocess : super::super::Foundation:: HANDLE, virtualaddress : *const core::ffi::c_void, regionsize : usize, numberofoffsets : u32, offsetinformation : *mut CFG_CALL_TARGET_INFO) -> super::super::Foundation:: BOOL); windows_targets::link!("api-ms-win-core-memory-l1-1-7.dll" "system" fn SetProcessValidCallTargetsForMappedView(process : super::super::Foundation:: HANDLE, virtualaddress : *const core::ffi::c_void, regionsize : usize, numberofoffsets : u32, offsetinformation : *mut CFG_CALL_TARGET_INFO, section : super::super::Foundation:: HANDLE, expectedfileoffset : u64) -> super::super::Foundation:: BOOL); windows_targets::link!("kernel32.dll" "system" fn SetProcessWorkingSetSizeEx(hprocess : super::super::Foundation:: HANDLE, dwminimumworkingsetsize : usize, dwmaximumworkingsetsize : usize, flags : SETPROCESSWORKINGSETSIZEEX_FLAGS) -> super::super::Foundation:: BOOL); @@ -381,7 +381,7 @@ pub struct PROCESS_HEAP_ENTRY_0_1 { pub lpFirstBlock: *mut core::ffi::c_void, pub lpLastBlock: *mut core::ffi::c_void, } -pub type PSECURE_MEMORY_CACHE_CALLBACK = Option super::super::Foundation::BOOLEAN>; +pub type PSECURE_MEMORY_CACHE_CALLBACK = Option bool>; pub const QUOTA_LIMITS_HARDWS_MAX_DISABLE: SETPROCESSWORKINGSETSIZEEX_FLAGS = 8u32; pub const QUOTA_LIMITS_HARDWS_MAX_ENABLE: SETPROCESSWORKINGSETSIZEEX_FLAGS = 4u32; pub const QUOTA_LIMITS_HARDWS_MIN_DISABLE: SETPROCESSWORKINGSETSIZEEX_FLAGS = 2u32; diff --git a/crates/libs/sys/src/Windows/Win32/System/PasswordManagement/mod.rs b/crates/libs/sys/src/Windows/Win32/System/PasswordManagement/mod.rs index 299ee36eab..eb6c8f6b73 100644 --- a/crates/libs/sys/src/Windows/Win32/System/PasswordManagement/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/PasswordManagement/mod.rs @@ -1,5 +1,5 @@ -windows_targets::link!("advapi32.dll" "system" fn MSChapSrvChangePassword(servername : windows_sys::core::PCWSTR, username : windows_sys::core::PCWSTR, lmoldpresent : super::super::Foundation:: BOOLEAN, lmoldowfpassword : *const LM_OWF_PASSWORD, lmnewowfpassword : *const LM_OWF_PASSWORD, ntoldowfpassword : *const LM_OWF_PASSWORD, ntnewowfpassword : *const LM_OWF_PASSWORD) -> u32); -windows_targets::link!("advapi32.dll" "system" fn MSChapSrvChangePassword2(servername : windows_sys::core::PCWSTR, username : windows_sys::core::PCWSTR, newpasswordencryptedwitholdnt : *const SAMPR_ENCRYPTED_USER_PASSWORD, oldntowfpasswordencryptedwithnewnt : *const ENCRYPTED_LM_OWF_PASSWORD, lmpresent : super::super::Foundation:: BOOLEAN, newpasswordencryptedwitholdlm : *const SAMPR_ENCRYPTED_USER_PASSWORD, oldlmowfpasswordencryptedwithnewlmornt : *const ENCRYPTED_LM_OWF_PASSWORD) -> u32); +windows_targets::link!("advapi32.dll" "system" fn MSChapSrvChangePassword(servername : windows_sys::core::PCWSTR, username : windows_sys::core::PCWSTR, lmoldpresent : bool, lmoldowfpassword : *const LM_OWF_PASSWORD, lmnewowfpassword : *const LM_OWF_PASSWORD, ntoldowfpassword : *const LM_OWF_PASSWORD, ntnewowfpassword : *const LM_OWF_PASSWORD) -> u32); +windows_targets::link!("advapi32.dll" "system" fn MSChapSrvChangePassword2(servername : windows_sys::core::PCWSTR, username : windows_sys::core::PCWSTR, newpasswordencryptedwitholdnt : *const SAMPR_ENCRYPTED_USER_PASSWORD, oldntowfpasswordencryptedwithnewnt : *const ENCRYPTED_LM_OWF_PASSWORD, lmpresent : bool, newpasswordencryptedwitholdlm : *const SAMPR_ENCRYPTED_USER_PASSWORD, oldlmowfpasswordencryptedwithnewlmornt : *const ENCRYPTED_LM_OWF_PASSWORD) -> u32); #[repr(C)] #[derive(Clone, Copy)] pub struct CYPHER_BLOCK { diff --git a/crates/libs/sys/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs index 4b403e5acc..782f2e6221 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs @@ -1,6 +1,6 @@ windows_targets::link!("kernel32.dll" "system" fn DisableThreadProfiling(performancedatahandle : super::super::super::Foundation:: HANDLE) -> u32); windows_targets::link!("kernel32.dll" "system" fn EnableThreadProfiling(threadhandle : super::super::super::Foundation:: HANDLE, flags : u32, hardwarecounters : u64, performancedatahandle : *mut super::super::super::Foundation:: HANDLE) -> u32); -windows_targets::link!("kernel32.dll" "system" fn QueryThreadProfiling(threadhandle : super::super::super::Foundation:: HANDLE, enabled : *mut super::super::super::Foundation:: BOOLEAN) -> u32); +windows_targets::link!("kernel32.dll" "system" fn QueryThreadProfiling(threadhandle : super::super::super::Foundation:: HANDLE, enabled : *mut bool) -> u32); windows_targets::link!("kernel32.dll" "system" fn ReadThreadProfilingData(performancedatahandle : super::super::super::Foundation:: HANDLE, flags : u32, performancedata : *mut PERFORMANCE_DATA) -> u32); #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/sys/src/Windows/Win32/System/Performance/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Performance/mod.rs index 3be266550d..67ff6380f8 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Performance/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Performance/mod.rs @@ -47,8 +47,8 @@ windows_targets::link!("pdh.dll" "system" fn PdhExpandWildCardPathHA(hdatasource windows_targets::link!("pdh.dll" "system" fn PdhExpandWildCardPathHW(hdatasource : PDH_HLOG, szwildcardpath : windows_sys::core::PCWSTR, mszexpandedpathlist : windows_sys::core::PWSTR, pcchpathlistlength : *mut u32, dwflags : u32) -> u32); windows_targets::link!("pdh.dll" "system" fn PdhExpandWildCardPathW(szdatasource : windows_sys::core::PCWSTR, szwildcardpath : windows_sys::core::PCWSTR, mszexpandedpathlist : windows_sys::core::PWSTR, pcchpathlistlength : *mut u32, dwflags : u32) -> u32); windows_targets::link!("pdh.dll" "system" fn PdhFormatFromRawValue(dwcountertype : u32, dwformat : PDH_FMT, ptimebase : *const i64, prawvalue1 : *const PDH_RAW_COUNTER, prawvalue2 : *const PDH_RAW_COUNTER, pfmtvalue : *mut PDH_FMT_COUNTERVALUE) -> u32); -windows_targets::link!("pdh.dll" "system" fn PdhGetCounterInfoA(hcounter : PDH_HCOUNTER, bretrieveexplaintext : super::super::Foundation:: BOOLEAN, pdwbuffersize : *mut u32, lpbuffer : *mut PDH_COUNTER_INFO_A) -> u32); -windows_targets::link!("pdh.dll" "system" fn PdhGetCounterInfoW(hcounter : PDH_HCOUNTER, bretrieveexplaintext : super::super::Foundation:: BOOLEAN, pdwbuffersize : *mut u32, lpbuffer : *mut PDH_COUNTER_INFO_W) -> u32); +windows_targets::link!("pdh.dll" "system" fn PdhGetCounterInfoA(hcounter : PDH_HCOUNTER, bretrieveexplaintext : bool, pdwbuffersize : *mut u32, lpbuffer : *mut PDH_COUNTER_INFO_A) -> u32); +windows_targets::link!("pdh.dll" "system" fn PdhGetCounterInfoW(hcounter : PDH_HCOUNTER, bretrieveexplaintext : bool, pdwbuffersize : *mut u32, lpbuffer : *mut PDH_COUNTER_INFO_W) -> u32); windows_targets::link!("pdh.dll" "system" fn PdhGetCounterTimeBase(hcounter : PDH_HCOUNTER, ptimebase : *mut i64) -> u32); windows_targets::link!("pdh.dll" "system" fn PdhGetDataSourceTimeRangeA(szdatasource : windows_sys::core::PCSTR, pdwnumentries : *mut u32, pinfo : *mut PDH_TIME_INFO, pdwbuffersize : *mut u32) -> u32); windows_targets::link!("pdh.dll" "system" fn PdhGetDataSourceTimeRangeH(hdatasource : PDH_HLOG, pdwnumentries : *mut u32, pinfo : *mut PDH_TIME_INFO, pdwbuffersize : *mut u32) -> u32); diff --git a/crates/libs/sys/src/Windows/Win32/System/Power/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Power/mod.rs index 29430b7f87..b175320015 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Power/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Power/mod.rs @@ -1,21 +1,21 @@ windows_targets::link!("powrprof.dll" "system" fn CallNtPowerInformation(informationlevel : POWER_INFORMATION_LEVEL, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32) -> super::super::Foundation:: NTSTATUS); -windows_targets::link!("powrprof.dll" "system" fn CanUserWritePwrScheme() -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn DeletePwrScheme(uiid : u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn DevicePowerClose() -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn DevicePowerEnumDevices(queryindex : u32, queryinterpretationflags : u32, queryflags : u32, preturnbuffer : *mut u8, pbuffersize : *mut u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn DevicePowerOpen(debugmask : u32) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("powrprof.dll" "system" fn CanUserWritePwrScheme() -> bool); +windows_targets::link!("powrprof.dll" "system" fn DeletePwrScheme(uiid : u32) -> bool); +windows_targets::link!("powrprof.dll" "system" fn DevicePowerClose() -> bool); +windows_targets::link!("powrprof.dll" "system" fn DevicePowerEnumDevices(queryindex : u32, queryinterpretationflags : u32, queryflags : u32, preturnbuffer : *mut u8, pbuffersize : *mut u32) -> bool); +windows_targets::link!("powrprof.dll" "system" fn DevicePowerOpen(debugmask : u32) -> bool); windows_targets::link!("powrprof.dll" "system" fn DevicePowerSetDeviceState(devicedescription : windows_sys::core::PCWSTR, setflags : u32, setdata : *const core::ffi::c_void) -> u32); -windows_targets::link!("powrprof.dll" "system" fn EnumPwrSchemes(lpfn : PWRSCHEMESENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn GetActivePwrScheme(puiid : *mut u32) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn GetCurrentPowerPolicies(pglobalpowerpolicy : *mut GLOBAL_POWER_POLICY, ppowerpolicy : *mut POWER_POLICY) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("powrprof.dll" "system" fn EnumPwrSchemes(lpfn : PWRSCHEMESENUMPROC, lparam : super::super::Foundation:: LPARAM) -> bool); +windows_targets::link!("powrprof.dll" "system" fn GetActivePwrScheme(puiid : *mut u32) -> bool); +windows_targets::link!("powrprof.dll" "system" fn GetCurrentPowerPolicies(pglobalpowerpolicy : *mut GLOBAL_POWER_POLICY, ppowerpolicy : *mut POWER_POLICY) -> bool); windows_targets::link!("kernel32.dll" "system" fn GetDevicePowerState(hdevice : super::super::Foundation:: HANDLE, pfon : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); -windows_targets::link!("powrprof.dll" "system" fn GetPwrCapabilities(lpspc : *mut SYSTEM_POWER_CAPABILITIES) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn GetPwrDiskSpindownRange(puimax : *mut u32, puimin : *mut u32) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("powrprof.dll" "system" fn GetPwrCapabilities(lpspc : *mut SYSTEM_POWER_CAPABILITIES) -> bool); +windows_targets::link!("powrprof.dll" "system" fn GetPwrDiskSpindownRange(puimax : *mut u32, puimin : *mut u32) -> bool); windows_targets::link!("kernel32.dll" "system" fn GetSystemPowerStatus(lpsystempowerstatus : *mut SYSTEM_POWER_STATUS) -> super::super::Foundation:: BOOL); -windows_targets::link!("powrprof.dll" "system" fn IsAdminOverrideActive(papp : *const ADMINISTRATOR_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn IsPwrHibernateAllowed() -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn IsPwrShutdownAllowed() -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn IsPwrSuspendAllowed() -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("powrprof.dll" "system" fn IsAdminOverrideActive(papp : *const ADMINISTRATOR_POWER_POLICY) -> bool); +windows_targets::link!("powrprof.dll" "system" fn IsPwrHibernateAllowed() -> bool); +windows_targets::link!("powrprof.dll" "system" fn IsPwrShutdownAllowed() -> bool); +windows_targets::link!("powrprof.dll" "system" fn IsPwrSuspendAllowed() -> bool); windows_targets::link!("kernel32.dll" "system" fn IsSystemResumeAutomatic() -> super::super::Foundation:: BOOL); windows_targets::link!("powrprof.dll" "system" fn PowerCanRestoreIndividualDefaultPowerScheme(schemeguid : *const windows_sys::core::GUID) -> super::super::Foundation:: WIN32_ERROR); windows_targets::link!("kernel32.dll" "system" fn PowerClearRequest(powerrequest : super::super::Foundation:: HANDLE, requesttype : POWER_REQUEST_TYPE) -> super::super::Foundation:: BOOL); @@ -37,7 +37,7 @@ windows_targets::link!("powrprof.dll" "system" fn PowerEnumerate(rootpowerkey : windows_targets::link!("powrprof.dll" "system" fn PowerGetActiveScheme(userrootpowerkey : super::Registry:: HKEY, activepolicyguid : *mut *mut windows_sys::core::GUID) -> super::super::Foundation:: WIN32_ERROR); #[cfg(feature = "Win32_System_Registry")] windows_targets::link!("powrprof.dll" "system" fn PowerImportPowerScheme(rootpowerkey : super::Registry:: HKEY, importfilenamepath : windows_sys::core::PCWSTR, destinationschemeguid : *mut *mut windows_sys::core::GUID) -> super::super::Foundation:: WIN32_ERROR); -windows_targets::link!("powrprof.dll" "system" fn PowerIsSettingRangeDefined(subkeyguid : *const windows_sys::core::GUID, settingguid : *const windows_sys::core::GUID) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("powrprof.dll" "system" fn PowerIsSettingRangeDefined(subkeyguid : *const windows_sys::core::GUID, settingguid : *const windows_sys::core::GUID) -> bool); #[cfg(feature = "Win32_System_Registry")] windows_targets::link!("powrprof.dll" "system" fn PowerOpenSystemPowerKey(phsystempowerkey : *mut super::Registry:: HKEY, access : u32, openexisting : super::super::Foundation:: BOOL) -> u32); #[cfg(feature = "Win32_System_Registry")] @@ -123,24 +123,24 @@ windows_targets::link!("powrprof.dll" "system" fn PowerWriteValueMax(rootpowerke windows_targets::link!("powrprof.dll" "system" fn PowerWriteValueMin(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_sys::core::GUID, powersettingguid : *const windows_sys::core::GUID, valueminimum : u32) -> super::super::Foundation:: WIN32_ERROR); #[cfg(feature = "Win32_System_Registry")] windows_targets::link!("powrprof.dll" "system" fn PowerWriteValueUnitsSpecifier(rootpowerkey : super::Registry:: HKEY, subgroupofpowersettingsguid : *const windows_sys::core::GUID, powersettingguid : *const windows_sys::core::GUID, buffer : *const u8, buffersize : u32) -> super::super::Foundation:: WIN32_ERROR); -windows_targets::link!("powrprof.dll" "system" fn ReadGlobalPwrPolicy(pglobalpowerpolicy : *const GLOBAL_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn ReadProcessorPwrScheme(uiid : u32, pmachineprocessorpowerpolicy : *mut MACHINE_PROCESSOR_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn ReadPwrScheme(uiid : u32, ppowerpolicy : *mut POWER_POLICY) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("powrprof.dll" "system" fn ReadGlobalPwrPolicy(pglobalpowerpolicy : *const GLOBAL_POWER_POLICY) -> bool); +windows_targets::link!("powrprof.dll" "system" fn ReadProcessorPwrScheme(uiid : u32, pmachineprocessorpowerpolicy : *mut MACHINE_PROCESSOR_POWER_POLICY) -> bool); +windows_targets::link!("powrprof.dll" "system" fn ReadPwrScheme(uiid : u32, ppowerpolicy : *mut POWER_POLICY) -> bool); #[cfg(feature = "Win32_UI_WindowsAndMessaging")] windows_targets::link!("user32.dll" "system" fn RegisterPowerSettingNotification(hrecipient : super::super::Foundation:: HANDLE, powersettingguid : *const windows_sys::core::GUID, flags : super::super::UI::WindowsAndMessaging:: REGISTER_NOTIFICATION_FLAGS) -> HPOWERNOTIFY); #[cfg(feature = "Win32_UI_WindowsAndMessaging")] windows_targets::link!("user32.dll" "system" fn RegisterSuspendResumeNotification(hrecipient : super::super::Foundation:: HANDLE, flags : super::super::UI::WindowsAndMessaging:: REGISTER_NOTIFICATION_FLAGS) -> HPOWERNOTIFY); windows_targets::link!("kernel32.dll" "system" fn RequestWakeupLatency(latency : LATENCY_TIME) -> super::super::Foundation:: BOOL); -windows_targets::link!("powrprof.dll" "system" fn SetActivePwrScheme(uiid : u32, pglobalpowerpolicy : *const GLOBAL_POWER_POLICY, ppowerpolicy : *const POWER_POLICY) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn SetSuspendState(bhibernate : super::super::Foundation:: BOOLEAN, bforce : super::super::Foundation:: BOOLEAN, bwakeupeventsdisabled : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("powrprof.dll" "system" fn SetActivePwrScheme(uiid : u32, pglobalpowerpolicy : *const GLOBAL_POWER_POLICY, ppowerpolicy : *const POWER_POLICY) -> bool); +windows_targets::link!("powrprof.dll" "system" fn SetSuspendState(bhibernate : bool, bforce : bool, bwakeupeventsdisabled : bool) -> bool); windows_targets::link!("kernel32.dll" "system" fn SetSystemPowerState(fsuspend : super::super::Foundation:: BOOL, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); windows_targets::link!("kernel32.dll" "system" fn SetThreadExecutionState(esflags : EXECUTION_STATE) -> EXECUTION_STATE); windows_targets::link!("user32.dll" "system" fn UnregisterPowerSettingNotification(handle : HPOWERNOTIFY) -> super::super::Foundation:: BOOL); windows_targets::link!("user32.dll" "system" fn UnregisterSuspendResumeNotification(handle : HPOWERNOTIFY) -> super::super::Foundation:: BOOL); -windows_targets::link!("powrprof.dll" "system" fn ValidatePowerPolicies(pglobalpowerpolicy : *mut GLOBAL_POWER_POLICY, ppowerpolicy : *mut POWER_POLICY) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn WriteGlobalPwrPolicy(pglobalpowerpolicy : *const GLOBAL_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn WriteProcessorPwrScheme(uiid : u32, pmachineprocessorpowerpolicy : *const MACHINE_PROCESSOR_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("powrprof.dll" "system" fn WritePwrScheme(puiid : *const u32, lpszschemename : windows_sys::core::PCWSTR, lpszdescription : windows_sys::core::PCWSTR, lpscheme : *const POWER_POLICY) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("powrprof.dll" "system" fn ValidatePowerPolicies(pglobalpowerpolicy : *mut GLOBAL_POWER_POLICY, ppowerpolicy : *mut POWER_POLICY) -> bool); +windows_targets::link!("powrprof.dll" "system" fn WriteGlobalPwrPolicy(pglobalpowerpolicy : *const GLOBAL_POWER_POLICY) -> bool); +windows_targets::link!("powrprof.dll" "system" fn WriteProcessorPwrScheme(uiid : u32, pmachineprocessorpowerpolicy : *const MACHINE_PROCESSOR_POWER_POLICY) -> bool); +windows_targets::link!("powrprof.dll" "system" fn WritePwrScheme(puiid : *const u32, lpszschemename : windows_sys::core::PCWSTR, lpszdescription : windows_sys::core::PCWSTR, lpscheme : *const POWER_POLICY) -> bool); pub const ACCESS_ACTIVE_OVERLAY_SCHEME: POWER_DATA_ACCESSOR = 27i32; pub const ACCESS_ACTIVE_SCHEME: POWER_DATA_ACCESSOR = 19i32; pub const ACCESS_AC_POWER_SETTING_INDEX: POWER_DATA_ACCESSOR = 0i32; @@ -188,15 +188,15 @@ pub const ACPI_TIME_ADJUST_DAYLIGHT: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy)] pub struct ACPI_TIME_AND_ALARM_CAPABILITIES { - pub AcWakeSupported: super::super::Foundation::BOOLEAN, - pub DcWakeSupported: super::super::Foundation::BOOLEAN, - pub S4AcWakeSupported: super::super::Foundation::BOOLEAN, - pub S4DcWakeSupported: super::super::Foundation::BOOLEAN, - pub S5AcWakeSupported: super::super::Foundation::BOOLEAN, - pub S5DcWakeSupported: super::super::Foundation::BOOLEAN, - pub S4S5WakeStatusSupported: super::super::Foundation::BOOLEAN, + pub AcWakeSupported: bool, + pub DcWakeSupported: bool, + pub S4AcWakeSupported: bool, + pub S4DcWakeSupported: bool, + pub S5AcWakeSupported: bool, + pub S5DcWakeSupported: bool, + pub S4S5WakeStatusSupported: bool, pub DeepestWakeSystemState: u32, - pub RealTimeFeaturesSupported: super::super::Foundation::BOOLEAN, + pub RealTimeFeaturesSupported: bool, pub RealTimeResolution: ACPI_TIME_RESOLUTION, } pub const ACPI_TIME_IN_DAYLIGHT: u32 = 2u32; @@ -242,7 +242,7 @@ pub struct BATTERY_CHARGING_SOURCE { #[derive(Clone, Copy)] pub struct BATTERY_CHARGING_SOURCE_INFORMATION { pub Type: BATTERY_CHARGING_SOURCE_TYPE, - pub SourceOnline: super::super::Foundation::BOOLEAN, + pub SourceOnline: bool, } pub type BATTERY_CHARGING_SOURCE_TYPE = i32; pub const BATTERY_CLASS_MAJOR_VERSION: u32 = 1u32; @@ -706,7 +706,7 @@ pub const POWER_LEVEL_USER_NOTIFY_TEXT: POWER_ACTION_POLICY_EVENT_CODE = 1u32; #[repr(C)] #[derive(Clone, Copy)] pub struct POWER_MONITOR_INVOCATION { - pub Console: super::super::Foundation::BOOLEAN, + pub Console: bool, pub RequestReason: POWER_MONITOR_REQUEST_REASON, } pub type POWER_MONITOR_REQUEST_REASON = i32; @@ -714,7 +714,7 @@ pub type POWER_MONITOR_REQUEST_TYPE = i32; #[repr(C)] #[derive(Clone, Copy)] pub struct POWER_PLATFORM_INFORMATION { - pub AoAc: super::super::Foundation::BOOLEAN, + pub AoAc: bool, } pub type POWER_PLATFORM_ROLE = i32; pub const POWER_PLATFORM_ROLE_V1: POWER_PLATFORM_ROLE_VERSION = 1u32; @@ -730,18 +730,18 @@ pub type POWER_REQUEST_TYPE = i32; #[repr(C)] #[derive(Clone, Copy)] pub struct POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES { - pub IsAllowed: super::super::Foundation::BOOLEAN, + pub IsAllowed: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct POWER_SESSION_CONNECT { - pub Connected: super::super::Foundation::BOOLEAN, - pub Console: super::super::Foundation::BOOLEAN, + pub Connected: bool, + pub Console: bool, } #[repr(C)] #[derive(Clone, Copy)] pub struct POWER_SESSION_RIT_STATE { - pub Active: super::super::Foundation::BOOLEAN, + pub Active: bool, pub LastInputTime: u64, } #[repr(C)] @@ -754,8 +754,8 @@ pub struct POWER_SESSION_TIMEOUTS { #[derive(Clone, Copy)] pub struct POWER_SESSION_WINLOGON { pub SessionId: u32, - pub Console: super::super::Foundation::BOOLEAN, - pub Locked: super::super::Foundation::BOOLEAN, + pub Console: bool, + pub Locked: bool, } pub type POWER_SETTING_ALTITUDE = i32; pub const POWER_USER_NOTIFY_BUTTON: POWER_ACTION_POLICY_EVENT_CODE = 8u32; @@ -1050,8 +1050,8 @@ pub struct PROCESSOR_POWER_POLICY_INFO { pub Spare: [u8; 2], pub _bitfield: u32, } -pub type PWRSCHEMESENUMPROC = Option super::super::Foundation::BOOLEAN>; -pub type PWRSCHEMESENUMPROC_V1 = Option super::super::Foundation::BOOLEAN>; +pub type PWRSCHEMESENUMPROC = Option bool>; +pub type PWRSCHEMESENUMPROC_V1 = Option bool>; pub const PdcInvocation: POWER_INFORMATION_LEVEL = 67i32; pub const PhysicalPowerButtonPress: POWER_INFORMATION_LEVEL = 90i32; pub const PlatformIdleStates: POWER_INFORMATION_LEVEL = 80i32; @@ -1151,11 +1151,11 @@ pub struct SET_POWER_SETTING_VALUE { #[repr(C)] #[derive(Clone, Copy)] pub struct SYSTEM_BATTERY_STATE { - pub AcOnLine: super::super::Foundation::BOOLEAN, - pub BatteryPresent: super::super::Foundation::BOOLEAN, - pub Charging: super::super::Foundation::BOOLEAN, - pub Discharging: super::super::Foundation::BOOLEAN, - pub Spare1: [super::super::Foundation::BOOLEAN; 3], + pub AcOnLine: bool, + pub BatteryPresent: bool, + pub Charging: bool, + pub Discharging: bool, + pub Spare1: [bool; 3], pub Tag: u8, pub MaxCapacity: u32, pub RemainingCapacity: u32, @@ -1167,33 +1167,33 @@ pub struct SYSTEM_BATTERY_STATE { #[repr(C)] #[derive(Clone, Copy)] pub struct SYSTEM_POWER_CAPABILITIES { - pub PowerButtonPresent: super::super::Foundation::BOOLEAN, - pub SleepButtonPresent: super::super::Foundation::BOOLEAN, - pub LidPresent: super::super::Foundation::BOOLEAN, - pub SystemS1: super::super::Foundation::BOOLEAN, - pub SystemS2: super::super::Foundation::BOOLEAN, - pub SystemS3: super::super::Foundation::BOOLEAN, - pub SystemS4: super::super::Foundation::BOOLEAN, - pub SystemS5: super::super::Foundation::BOOLEAN, - pub HiberFilePresent: super::super::Foundation::BOOLEAN, - pub FullWake: super::super::Foundation::BOOLEAN, - pub VideoDimPresent: super::super::Foundation::BOOLEAN, - pub ApmPresent: super::super::Foundation::BOOLEAN, - pub UpsPresent: super::super::Foundation::BOOLEAN, - pub ThermalControl: super::super::Foundation::BOOLEAN, - pub ProcessorThrottle: super::super::Foundation::BOOLEAN, + pub PowerButtonPresent: bool, + pub SleepButtonPresent: bool, + pub LidPresent: bool, + pub SystemS1: bool, + pub SystemS2: bool, + pub SystemS3: bool, + pub SystemS4: bool, + pub SystemS5: bool, + pub HiberFilePresent: bool, + pub FullWake: bool, + pub VideoDimPresent: bool, + pub ApmPresent: bool, + pub UpsPresent: bool, + pub ThermalControl: bool, + pub ProcessorThrottle: bool, pub ProcessorMinThrottle: u8, pub ProcessorMaxThrottle: u8, - pub FastSystemS4: super::super::Foundation::BOOLEAN, - pub Hiberboot: super::super::Foundation::BOOLEAN, - pub WakeAlarmPresent: super::super::Foundation::BOOLEAN, - pub AoAc: super::super::Foundation::BOOLEAN, - pub DiskSpinDown: super::super::Foundation::BOOLEAN, + pub FastSystemS4: bool, + pub Hiberboot: bool, + pub WakeAlarmPresent: bool, + pub AoAc: bool, + pub DiskSpinDown: bool, pub HiberFileType: u8, - pub AoAcConnectivitySupported: super::super::Foundation::BOOLEAN, + pub AoAcConnectivitySupported: bool, pub spare3: [u8; 6], - pub SystemBatteriesPresent: super::super::Foundation::BOOLEAN, - pub BatteriesAreShortTerm: super::super::Foundation::BOOLEAN, + pub SystemBatteriesPresent: bool, + pub BatteriesAreShortTerm: bool, pub BatteryScale: [BATTERY_REPORTING_SCALE; 3], pub AcOnLineWake: SYSTEM_POWER_STATE, pub SoftLidWake: SYSTEM_POWER_STATE, @@ -1213,7 +1213,7 @@ pub struct SYSTEM_POWER_INFORMATION { #[repr(C)] #[derive(Clone, Copy)] pub struct SYSTEM_POWER_LEVEL { - pub Enable: super::super::Foundation::BOOLEAN, + pub Enable: bool, pub Spare: [u8; 3], pub BatteryLevel: u32, pub PowerPolicy: POWER_ACTION_POLICY, @@ -1242,10 +1242,10 @@ pub struct SYSTEM_POWER_POLICY { pub BroadcastCapacityResolution: u32, pub DischargePolicy: [SYSTEM_POWER_LEVEL; 4], pub VideoTimeout: u32, - pub VideoDimDisplay: super::super::Foundation::BOOLEAN, + pub VideoDimDisplay: bool, pub VideoReserved: [u32; 3], pub SpindownTimeout: u32, - pub OptimizeForPower: super::super::Foundation::BOOLEAN, + pub OptimizeForPower: bool, pub FanThrottleTolerance: u8, pub ForcedThrottle: u8, pub MinThrottle: u8, @@ -1334,14 +1334,14 @@ pub struct THERMAL_INFORMATION { #[derive(Clone, Copy)] pub struct THERMAL_POLICY { pub Version: u32, - pub WaitForUpdate: super::super::Foundation::BOOLEAN, - pub Hibernate: super::super::Foundation::BOOLEAN, - pub Critical: super::super::Foundation::BOOLEAN, - pub ThermalStandby: super::super::Foundation::BOOLEAN, + pub WaitForUpdate: bool, + pub Hibernate: bool, + pub Critical: bool, + pub ThermalStandby: bool, pub ActivationReasons: u32, pub PassiveLimit: u32, pub ActiveLevel: u32, - pub OverThrottled: super::super::Foundation::BOOLEAN, + pub OverThrottled: bool, } pub const THERMAL_POLICY_VERSION_1: u32 = 1u32; pub const THERMAL_POLICY_VERSION_2: u32 = 2u32; @@ -1384,8 +1384,8 @@ pub struct USER_POWER_POLICY { pub VideoTimeoutDc: u32, pub SpindownTimeoutAc: u32, pub SpindownTimeoutDc: u32, - pub OptimizeForPowerAc: super::super::Foundation::BOOLEAN, - pub OptimizeForPowerDc: super::super::Foundation::BOOLEAN, + pub OptimizeForPowerAc: bool, + pub OptimizeForPowerDc: bool, pub FanThrottleToleranceAc: u8, pub FanThrottleToleranceDc: u8, pub ForcedThrottleAc: u8, diff --git a/crates/libs/sys/src/Windows/Win32/System/RemoteDesktop/mod.rs b/crates/libs/sys/src/Windows/Win32/System/RemoteDesktop/mod.rs index 540916729b..490ecd2e5c 100644 --- a/crates/libs/sys/src/Windows/Win32/System/RemoteDesktop/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/RemoteDesktop/mod.rs @@ -594,29 +594,29 @@ pub struct WRDS_CONNECTION_SETTINGS { #[repr(C)] #[derive(Clone, Copy)] pub struct WRDS_CONNECTION_SETTINGS_1 { - pub fInheritInitialProgram: super::super::Foundation::BOOLEAN, - pub fInheritColorDepth: super::super::Foundation::BOOLEAN, - pub fHideTitleBar: super::super::Foundation::BOOLEAN, - pub fInheritAutoLogon: super::super::Foundation::BOOLEAN, - pub fMaximizeShell: super::super::Foundation::BOOLEAN, - pub fDisablePNP: super::super::Foundation::BOOLEAN, - pub fPasswordIsScPin: super::super::Foundation::BOOLEAN, - pub fPromptForPassword: super::super::Foundation::BOOLEAN, - pub fDisableCpm: super::super::Foundation::BOOLEAN, - pub fDisableCdm: super::super::Foundation::BOOLEAN, - pub fDisableCcm: super::super::Foundation::BOOLEAN, - pub fDisableLPT: super::super::Foundation::BOOLEAN, - pub fDisableClip: super::super::Foundation::BOOLEAN, - pub fResetBroken: super::super::Foundation::BOOLEAN, - pub fDisableEncryption: super::super::Foundation::BOOLEAN, - pub fDisableAutoReconnect: super::super::Foundation::BOOLEAN, - pub fDisableCtrlAltDel: super::super::Foundation::BOOLEAN, - pub fDoubleClickDetect: super::super::Foundation::BOOLEAN, - pub fEnableWindowsKey: super::super::Foundation::BOOLEAN, - pub fUsingSavedCreds: super::super::Foundation::BOOLEAN, - pub fMouse: super::super::Foundation::BOOLEAN, - pub fNoAudioPlayback: super::super::Foundation::BOOLEAN, - pub fRemoteConsoleAudio: super::super::Foundation::BOOLEAN, + pub fInheritInitialProgram: bool, + pub fInheritColorDepth: bool, + pub fHideTitleBar: bool, + pub fInheritAutoLogon: bool, + pub fMaximizeShell: bool, + pub fDisablePNP: bool, + pub fPasswordIsScPin: bool, + pub fPromptForPassword: bool, + pub fDisableCpm: bool, + pub fDisableCdm: bool, + pub fDisableCcm: bool, + pub fDisableLPT: bool, + pub fDisableClip: bool, + pub fResetBroken: bool, + pub fDisableEncryption: bool, + pub fDisableAutoReconnect: bool, + pub fDisableCtrlAltDel: bool, + pub fDoubleClickDetect: bool, + pub fEnableWindowsKey: bool, + pub fUsingSavedCreds: bool, + pub fMouse: bool, + pub fNoAudioPlayback: bool, + pub fRemoteConsoleAudio: bool, pub EncryptionLevel: u8, pub ColorDepth: u16, pub ProtocolType: u16, @@ -769,7 +769,7 @@ pub struct WRDS_SETTINGS_1 { pub WRdsMaxConnectTimeStatus: WRDS_SETTING_STATUS, pub WRdsMaxConnectTimeValue: u32, pub WRdsKeepAliveStatus: WRDS_SETTING_STATUS, - pub WRdsKeepAliveStartValue: super::super::Foundation::BOOLEAN, + pub WRdsKeepAliveStartValue: bool, pub WRdsKeepAliveIntervalValue: u32, } pub type WRDS_SETTING_LEVEL = i32; @@ -1262,21 +1262,21 @@ pub struct WTS_CLIENT_ADDRESS { #[repr(C)] #[derive(Clone, Copy)] pub struct WTS_CLIENT_DATA { - pub fDisableCtrlAltDel: super::super::Foundation::BOOLEAN, - pub fDoubleClickDetect: super::super::Foundation::BOOLEAN, - pub fEnableWindowsKey: super::super::Foundation::BOOLEAN, - pub fHideTitleBar: super::super::Foundation::BOOLEAN, + pub fDisableCtrlAltDel: bool, + pub fDoubleClickDetect: bool, + pub fEnableWindowsKey: bool, + pub fHideTitleBar: bool, pub fInheritAutoLogon: super::super::Foundation::BOOL, - pub fPromptForPassword: super::super::Foundation::BOOLEAN, - pub fUsingSavedCreds: super::super::Foundation::BOOLEAN, + pub fPromptForPassword: bool, + pub fUsingSavedCreds: bool, pub Domain: [u16; 256], pub UserName: [u16; 256], pub Password: [u16; 256], - pub fPasswordIsScPin: super::super::Foundation::BOOLEAN, + pub fPasswordIsScPin: bool, pub fInheritInitialProgram: super::super::Foundation::BOOL, pub WorkDirectory: [u16; 257], pub InitialProgram: [u16; 257], - pub fMaximizeShell: super::super::Foundation::BOOLEAN, + pub fMaximizeShell: bool, pub EncryptionLevel: u8, pub PerformanceFlags: u32, pub ProtocolName: [u16; 9], @@ -1287,15 +1287,15 @@ pub struct WTS_CLIENT_DATA { pub ColorDepth: u16, pub DisplayDriverName: [u16; 9], pub DisplayDeviceName: [u16; 20], - pub fMouse: super::super::Foundation::BOOLEAN, + pub fMouse: bool, pub KeyboardLayout: u32, pub KeyboardType: u32, pub KeyboardSubType: u32, pub KeyboardFunctionKey: u32, pub imeFileName: [u16; 33], pub ActiveInputLocale: u32, - pub fNoAudioPlayback: super::super::Foundation::BOOLEAN, - pub fRemoteConsoleAudio: super::super::Foundation::BOOLEAN, + pub fNoAudioPlayback: bool, + pub fRemoteConsoleAudio: bool, pub AudioDriverName: [u16; 9], pub ClientTimeZone: WTS_TIME_ZONE_INFORMATION, pub ClientName: [u16; 21], @@ -1311,12 +1311,12 @@ pub struct WTS_CLIENT_DATA { pub OutBufLength: u16, pub ClientSessionId: u32, pub ClientDigProductId: [u16; 33], - pub fDisableCpm: super::super::Foundation::BOOLEAN, - pub fDisableCdm: super::super::Foundation::BOOLEAN, - pub fDisableCcm: super::super::Foundation::BOOLEAN, - pub fDisableLPT: super::super::Foundation::BOOLEAN, - pub fDisableClip: super::super::Foundation::BOOLEAN, - pub fDisablePNP: super::super::Foundation::BOOLEAN, + pub fDisableCpm: bool, + pub fDisableCdm: bool, + pub fDisableCcm: bool, + pub fDisableLPT: bool, + pub fDisableClip: bool, + pub fDisablePNP: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -1405,16 +1405,16 @@ pub const WTS_PERF_ENABLE_FONT_SMOOTHING: u32 = 128u32; #[repr(C)] #[derive(Clone, Copy)] pub struct WTS_POLICY_DATA { - pub fDisableEncryption: super::super::Foundation::BOOLEAN, - pub fDisableAutoReconnect: super::super::Foundation::BOOLEAN, + pub fDisableEncryption: bool, + pub fDisableAutoReconnect: bool, pub ColorDepth: u32, pub MinEncryptionLevel: u8, - pub fDisableCpm: super::super::Foundation::BOOLEAN, - pub fDisableCdm: super::super::Foundation::BOOLEAN, - pub fDisableCcm: super::super::Foundation::BOOLEAN, - pub fDisableLPT: super::super::Foundation::BOOLEAN, - pub fDisableClip: super::super::Foundation::BOOLEAN, - pub fDisablePNPRedir: super::super::Foundation::BOOLEAN, + pub fDisableCpm: bool, + pub fDisableCdm: bool, + pub fDisableCcm: bool, + pub fDisableLPT: bool, + pub fDisableClip: bool, + pub fDisablePNPRedir: bool, } #[repr(C)] #[cfg(feature = "Win32_Security")] diff --git a/crates/libs/sys/src/Windows/Win32/System/Services/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Services/mod.rs index 572a799e61..31109913f6 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Services/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Services/mod.rs @@ -385,7 +385,7 @@ pub const SERVICE_PAUSE_PENDING: SERVICE_STATUS_CURRENT_STATE = 6u32; #[derive(Clone, Copy)] pub struct SERVICE_PREFERRED_NODE_INFO { pub usPreferredNode: u16, - pub fDelete: super::super::Foundation::BOOLEAN, + pub fDelete: bool, } #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/sys/src/Windows/Win32/System/Shutdown/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Shutdown/mod.rs index b7703776d5..ace890eef1 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Shutdown/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Shutdown/mod.rs @@ -1,6 +1,6 @@ windows_targets::link!("advapi32.dll" "system" fn AbortSystemShutdownA(lpmachinename : windows_sys::core::PCSTR) -> super::super::Foundation:: BOOL); windows_targets::link!("advapi32.dll" "system" fn AbortSystemShutdownW(lpmachinename : windows_sys::core::PCWSTR) -> super::super::Foundation:: BOOL); -windows_targets::link!("advapi32.dll" "system" fn CheckForHiberboot(phiberboot : *mut super::super::Foundation:: BOOLEAN, bclearflag : super::super::Foundation:: BOOLEAN) -> u32); +windows_targets::link!("advapi32.dll" "system" fn CheckForHiberboot(phiberboot : *mut bool, bclearflag : bool) -> u32); windows_targets::link!("user32.dll" "system" fn ExitWindowsEx(uflags : EXIT_WINDOWS_FLAGS, dwreason : SHUTDOWN_REASON) -> super::super::Foundation:: BOOL); windows_targets::link!("advapi32.dll" "system" fn InitiateShutdownA(lpmachinename : windows_sys::core::PCSTR, lpmessage : windows_sys::core::PCSTR, dwgraceperiod : u32, dwshutdownflags : SHUTDOWN_FLAGS, dwreason : SHUTDOWN_REASON) -> u32); windows_targets::link!("advapi32.dll" "system" fn InitiateShutdownW(lpmachinename : windows_sys::core::PCWSTR, lpmessage : windows_sys::core::PCWSTR, dwgraceperiod : u32, dwshutdownflags : SHUTDOWN_FLAGS, dwreason : SHUTDOWN_REASON) -> u32); diff --git a/crates/libs/sys/src/Windows/Win32/System/SystemInformation/mod.rs b/crates/libs/sys/src/Windows/Win32/System/SystemInformation/mod.rs index 7db1ee98f3..e5d0be7d56 100644 --- a/crates/libs/sys/src/Windows/Win32/System/SystemInformation/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/SystemInformation/mod.rs @@ -45,7 +45,7 @@ windows_targets::link!("kernel32.dll" "system" fn IsUserCetAvailableInEnvironmen windows_targets::link!("kernel32.dll" "system" fn IsWow64GuestMachineSupported(wowguestmachine : IMAGE_FILE_MACHINE, machineissupported : *mut super::super::Foundation:: BOOL) -> windows_sys::core::HRESULT); windows_targets::link!("ntdll.dll" "system" fn RtlConvertDeviceFamilyInfoToString(puldevicefamilybuffersize : *mut u32, puldeviceformbuffersize : *mut u32, devicefamily : windows_sys::core::PWSTR, deviceform : windows_sys::core::PWSTR) -> u32); windows_targets::link!("ntdll.dll" "system" fn RtlGetDeviceFamilyInfoEnum(pulluapinfo : *mut u64, puldevicefamily : *mut DEVICEFAMILYINFOENUM, puldeviceform : *mut DEVICEFAMILYDEVICEFORM)); -windows_targets::link!("ntdll.dll" "system" fn RtlGetProductInfo(osmajorversion : u32, osminorversion : u32, spmajorversion : u32, spminorversion : u32, returnedproducttype : *mut u32) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlGetProductInfo(osmajorversion : u32, osminorversion : u32, spmajorversion : u32, spminorversion : u32, returnedproducttype : *mut u32) -> bool); windows_targets::link!("ntdllk.dll" "system" fn RtlGetSystemGlobalData(dataid : RTL_SYSTEM_GLOBAL_DATA_ID, buffer : *mut core::ffi::c_void, size : u32) -> u32); windows_targets::link!("ntdll.dll" "system" fn RtlOsDeploymentState(flags : u32) -> OS_DEPLOYEMENT_STATE_VALUES); windows_targets::link!("ntdll.dll" "system" fn RtlSwitchedVVI(versioninfo : *const OSVERSIONINFOEXW, typemask : u32, conditionmask : u64) -> u32); @@ -666,7 +666,7 @@ pub union SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX_0 { #[repr(C)] #[derive(Clone, Copy)] pub struct SYSTEM_POOL_ZEROING_INFORMATION { - pub PoolZeroingSupportPresent: super::super::Foundation::BOOLEAN, + pub PoolZeroingSupportPresent: bool, } #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/sys/src/Windows/Win32/System/SystemServices/mod.rs b/crates/libs/sys/src/Windows/Win32/System/SystemServices/mod.rs index 721b7a3a13..e71fe241f0 100644 --- a/crates/libs/sys/src/Windows/Win32/System/SystemServices/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/SystemServices/mod.rs @@ -1150,7 +1150,7 @@ pub const IMAGE_COR_MIH_METHODRVA: ReplacesCorHdrNumericDefines = 1i32; pub struct IMAGE_DEBUG_MISC { pub DataType: u32, pub Length: u32, - pub Unicode: super::super::Foundation::BOOLEAN, + pub Unicode: bool, pub Reserved: [u8; 3], pub Data: [u8; 1], } @@ -1445,7 +1445,7 @@ pub struct IMAGE_POLICY_ENTRY { #[derive(Clone, Copy)] pub union IMAGE_POLICY_ENTRY_0 { pub None: *const core::ffi::c_void, - pub BoolValue: super::super::Foundation::BOOLEAN, + pub BoolValue: bool, pub Int8Value: i8, pub UInt8Value: u8, pub Int16Value: i16, @@ -2768,7 +2768,7 @@ pub struct PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY_0_0 { #[derive(Clone, Copy)] pub struct PROCESS_MITIGATION_DEP_POLICY { pub Anonymous: PROCESS_MITIGATION_DEP_POLICY_0, - pub Permanent: super::super::Foundation::BOOLEAN, + pub Permanent: bool, } #[repr(C)] #[derive(Clone, Copy)] @@ -3070,9 +3070,9 @@ pub const PRODUCT_XBOX_KEYSTONE: u32 = 198u32; pub const PRODUCT_XBOX_SCARLETTHOSTOS: u32 = 197u32; pub const PRODUCT_XBOX_SYSTEMOS: u32 = 192u32; #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] -pub type PTERMINATION_HANDLER = Option; +pub type PTERMINATION_HANDLER = Option; #[cfg(target_arch = "aarch64")] -pub type PTERMINATION_HANDLER = Option; +pub type PTERMINATION_HANDLER = Option; pub type PUMS_SCHEDULER_ENTRY_POINT = Option; pub const PcTeb: u32 = 24u32; pub const PdataCrChained: ARM64_FNPDATA_CR = 3i32; @@ -3509,7 +3509,7 @@ pub struct SERVERSILO_BASIC_INFORMATION { pub ServiceSessionId: u32, pub State: SERVERSILO_STATE, pub ExitStatus: u32, - pub IsDownlevelContainer: super::super::Foundation::BOOLEAN, + pub IsDownlevelContainer: bool, pub ApiSetSchema: *mut core::ffi::c_void, pub HostApiSetSchema: *mut core::ffi::c_void, } @@ -3655,7 +3655,7 @@ pub struct SILOOBJECT_BASIC_INFORMATION { pub SiloId: u32, pub SiloParentId: u32, pub NumberOfProcesses: u32, - pub IsInServerSilo: super::super::Foundation::BOOLEAN, + pub IsInServerSilo: bool, pub Reserved: [u8; 3], } pub const SIZEOF_RFPO_DATA: u32 = 16u32; @@ -4074,10 +4074,10 @@ pub const TAPE_DRIVE_WRITE_SHORT_FMKS: TAPE_GET_DRIVE_PARAMETERS_FEATURES_HIGH = #[repr(C)] #[derive(Clone, Copy)] pub struct TAPE_GET_DRIVE_PARAMETERS { - pub ECC: super::super::Foundation::BOOLEAN, - pub Compression: super::super::Foundation::BOOLEAN, - pub DataPadding: super::super::Foundation::BOOLEAN, - pub ReportSetmarks: super::super::Foundation::BOOLEAN, + pub ECC: bool, + pub Compression: bool, + pub DataPadding: bool, + pub ReportSetmarks: bool, pub DefaultBlockSize: u32, pub MaximumBlockSize: u32, pub MinimumBlockSize: u32, @@ -4094,7 +4094,7 @@ pub struct TAPE_GET_MEDIA_PARAMETERS { pub Remaining: i64, pub BlockSize: u32, pub PartitionCount: u32, - pub WriteProtected: super::super::Foundation::BOOLEAN, + pub WriteProtected: bool, } pub const TAPE_PSEUDO_LOGICAL_BLOCK: i32 = 3i32; pub const TAPE_PSEUDO_LOGICAL_POSITION: i32 = 2i32; @@ -4105,10 +4105,10 @@ pub const TAPE_QUERY_MEDIA_CAPACITY: i32 = 1i32; #[repr(C)] #[derive(Clone, Copy)] pub struct TAPE_SET_DRIVE_PARAMETERS { - pub ECC: super::super::Foundation::BOOLEAN, - pub Compression: super::super::Foundation::BOOLEAN, - pub DataPadding: super::super::Foundation::BOOLEAN, - pub ReportSetmarks: super::super::Foundation::BOOLEAN, + pub ECC: bool, + pub Compression: bool, + pub DataPadding: bool, + pub ReportSetmarks: bool, pub EOTWarningZoneSize: u32, } #[repr(C)] @@ -4137,7 +4137,7 @@ pub const TLS_MINIMUM_AVAILABLE: u32 = 64u32; #[derive(Clone, Copy)] pub struct TOKEN_BNO_ISOLATION_INFORMATION { pub IsolationPrefix: windows_sys::core::PWSTR, - pub IsolationEnabled: super::super::Foundation::BOOLEAN, + pub IsolationEnabled: bool, } #[repr(C)] #[cfg(feature = "Win32_Security")] diff --git a/crates/libs/sys/src/Windows/Win32/System/Threading/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Threading/mod.rs index aa6798fc24..c4453f6b9f 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Threading/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Threading/mod.rs @@ -24,7 +24,7 @@ windows_targets::link!("kernel32.dll" "system" fn CancelThreadpoolIo(pio : PTP_I windows_targets::link!("kernel32.dll" "system" fn CancelTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, timer : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); windows_targets::link!("kernel32.dll" "system" fn CancelWaitableTimer(htimer : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); windows_targets::link!("kernel32.dll" "system" fn ChangeTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, timer : super::super::Foundation:: HANDLE, duetime : u32, period : u32) -> super::super::Foundation:: BOOL); -windows_targets::link!("kernel32.dll" "system" fn ClosePrivateNamespace(handle : super::super::Foundation:: HANDLE, flags : u32) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("kernel32.dll" "system" fn ClosePrivateNamespace(handle : super::super::Foundation:: HANDLE, flags : u32) -> bool); windows_targets::link!("kernel32.dll" "system" fn CloseThreadpool(ptpp : PTP_POOL)); windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolCleanupGroup(ptpcg : PTP_CLEANUP_GROUP)); windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolCleanupGroupMembers(ptpcg : PTP_CLEANUP_GROUP, fcancelpendingcallbacks : super::super::Foundation:: BOOL, pvcleanupcontext : *mut core::ffi::c_void)); @@ -365,8 +365,8 @@ windows_targets::link!("kernel32.dll" "system" fn TlsAlloc() -> u32); windows_targets::link!("kernel32.dll" "system" fn TlsFree(dwtlsindex : u32) -> super::super::Foundation:: BOOL); windows_targets::link!("kernel32.dll" "system" fn TlsGetValue(dwtlsindex : u32) -> *mut core::ffi::c_void); windows_targets::link!("kernel32.dll" "system" fn TlsSetValue(dwtlsindex : u32, lptlsvalue : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); -windows_targets::link!("kernel32.dll" "system" fn TryAcquireSRWLockExclusive(srwlock : *mut SRWLOCK) -> super::super::Foundation:: BOOLEAN); -windows_targets::link!("kernel32.dll" "system" fn TryAcquireSRWLockShared(srwlock : *mut SRWLOCK) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("kernel32.dll" "system" fn TryAcquireSRWLockExclusive(srwlock : *mut SRWLOCK) -> bool); +windows_targets::link!("kernel32.dll" "system" fn TryAcquireSRWLockShared(srwlock : *mut SRWLOCK) -> bool); #[cfg(feature = "Win32_System_Kernel")] windows_targets::link!("kernel32.dll" "system" fn TryEnterCriticalSection(lpcriticalsection : *mut CRITICAL_SECTION) -> super::super::Foundation:: BOOL); windows_targets::link!("kernel32.dll" "system" fn TrySubmitThreadpoolCallback(pfns : PTP_SIMPLE_CALLBACK, pv : *mut core::ffi::c_void, pcbe : *const TP_CALLBACK_ENVIRON_V3) -> super::super::Foundation:: BOOL); @@ -1134,7 +1134,7 @@ pub const UmsThreadPriority: UMS_THREAD_INFO_CLASS = 2i32; pub const UmsThreadTeb: UMS_THREAD_INFO_CLASS = 4i32; pub const UmsThreadUserContext: UMS_THREAD_INFO_CLASS = 1i32; pub const UserEnabled: MACHINE_ATTRIBUTES = 1i32; -pub type WAITORTIMERCALLBACK = Option; +pub type WAITORTIMERCALLBACK = Option; pub type WORKERCALLBACKFUNC = Option; pub type WORKER_THREAD_FLAGS = u32; pub const WT_EXECUTEDEFAULT: WORKER_THREAD_FLAGS = 0u32; diff --git a/crates/libs/sys/src/Windows/Win32/System/Time/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Time/mod.rs index 0b0922b3f9..0d8536682a 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Time/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Time/mod.rs @@ -24,7 +24,7 @@ pub struct DYNAMIC_TIME_ZONE_INFORMATION { pub DaylightDate: super::super::Foundation::SYSTEMTIME, pub DaylightBias: i32, pub TimeZoneKeyName: [u16; 128], - pub DynamicDaylightTimeDisabled: super::super::Foundation::BOOLEAN, + pub DynamicDaylightTimeDisabled: bool, } pub const TIME_ZONE_ID_INVALID: u32 = 4294967295u32; #[repr(C)] diff --git a/crates/libs/sys/src/Windows/Win32/System/WindowsProgramming/mod.rs b/crates/libs/sys/src/Windows/Win32/System/WindowsProgramming/mod.rs index da5a934ae7..be2efb88b5 100644 --- a/crates/libs/sys/src/Windows/Win32/System/WindowsProgramming/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/WindowsProgramming/mod.rs @@ -145,7 +145,7 @@ windows_targets::link!("advpack.dll" "system" fn RegSaveRestoreW(hwnd : super::s windows_targets::link!("kernel32.dll" "system" fn ReplacePartitionUnit(targetpartition : windows_sys::core::PCWSTR, sparepartition : windows_sys::core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); windows_targets::link!("kernel32.dll" "system" fn RequestDeviceWakeup(hdevice : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlAnsiStringToUnicodeString(destinationstring : *mut super::super::Foundation:: UNICODE_STRING, sourcestring : *mut super::Kernel:: STRING, allocatedestinationstring : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlAnsiStringToUnicodeString(destinationstring : *mut super::super::Foundation:: UNICODE_STRING, sourcestring : *mut super::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlCharToInteger(string : *mut i8, base : u32, value : *mut u32) -> super::super::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] windows_targets::link!("ntdll.dll" "system" fn RtlFreeAnsiString(ansistring : *mut super::Kernel:: STRING)); @@ -163,14 +163,14 @@ windows_targets::link!("ntdll.dll" "system" fn RtlInitString(destinationstring : windows_targets::link!("ntdll.dll" "system" fn RtlInitStringEx(destinationstring : *mut super::Kernel:: STRING, sourcestring : *mut i8) -> super::super::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlInitUnicodeString(destinationstring : *mut super::super::Foundation:: UNICODE_STRING, sourcestring : windows_sys::core::PCWSTR)); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlIsNameLegalDOS8Dot3(name : *mut super::super::Foundation:: UNICODE_STRING, oemname : *mut super::Kernel:: STRING, namecontainsspaces : *mut super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlIsNameLegalDOS8Dot3(name : *mut super::super::Foundation:: UNICODE_STRING, oemname : *mut super::Kernel:: STRING, namecontainsspaces : *mut bool) -> bool); windows_targets::link!("ntdll.dll" "system" fn RtlLocalTimeToSystemTime(localtime : *mut i64, systemtime : *mut i64) -> super::super::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlRaiseCustomSystemEventTrigger(triggerconfig : *const CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG) -> u32); -windows_targets::link!("ntdll.dll" "system" fn RtlTimeToSecondsSince1970(time : *mut i64, elapsedseconds : *mut u32) -> super::super::Foundation:: BOOLEAN); +windows_targets::link!("ntdll.dll" "system" fn RtlTimeToSecondsSince1970(time : *mut i64, elapsedseconds : *mut u32) -> bool); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToAnsiString(destinationstring : *mut super::Kernel:: STRING, sourcestring : *mut super::super::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToAnsiString(destinationstring : *mut super::Kernel:: STRING, sourcestring : *mut super::super::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::Foundation:: NTSTATUS); #[cfg(feature = "Win32_System_Kernel")] -windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToOemString(destinationstring : *mut super::Kernel:: STRING, sourcestring : *mut super::super::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: NTSTATUS); +windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToOemString(destinationstring : *mut super::Kernel:: STRING, sourcestring : *mut super::super::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeToMultiByteSize(bytesinmultibytestring : *mut u32, unicodestring : windows_sys::core::PCWSTR, bytesinunicodestring : u32) -> super::super::Foundation:: NTSTATUS); windows_targets::link!("ntdll.dll" "system" fn RtlUniform(seed : *mut u32) -> u32); windows_targets::link!("advpack.dll" "system" fn RunSetupCommandA(hwnd : super::super::Foundation:: HWND, szcmdname : windows_sys::core::PCSTR, szinfsection : windows_sys::core::PCSTR, szdir : windows_sys::core::PCSTR, lpsztitle : windows_sys::core::PCSTR, phexe : *mut super::super::Foundation:: HANDLE, dwflags : u32, pvreserved : *mut core::ffi::c_void) -> windows_sys::core::HRESULT); @@ -1144,7 +1144,7 @@ pub struct PUBLIC_OBJECT_TYPE_INFORMATION { pub TypeName: super::super::Foundation::UNICODE_STRING, pub Reserved: [u32; 22], } -pub type PWINSTATIONQUERYINFORMATIONW = Option super::super::Foundation::BOOLEAN>; +pub type PWINSTATIONQUERYINFORMATIONW = Option bool>; pub type PWLDP_CANEXECUTEBUFFER_API = Option windows_sys::core::HRESULT>; pub type PWLDP_CANEXECUTEFILE_API = Option windows_sys::core::HRESULT>; #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs index 1c9d418235..7c7fb0d435 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs @@ -4079,9 +4079,9 @@ pub const PANE_PRIVACY: u32 = 7u32; pub const PANE_PROGRESS: u32 = 6u32; pub const PANE_SSL: u32 = 4u32; pub const PANE_ZONE: u32 = 1u32; -pub type PAPPCONSTRAIN_CHANGE_ROUTINE = Option; +pub type PAPPCONSTRAIN_CHANGE_ROUTINE = Option; pub type PAPPCONSTRAIN_REGISTRATION = isize; -pub type PAPPSTATE_CHANGE_ROUTINE = Option; +pub type PAPPSTATE_CHANGE_ROUTINE = Option; pub type PAPPSTATE_REGISTRATION = isize; #[repr(C)] #[derive(Clone, Copy)] diff --git a/crates/libs/sys/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs index eacb1b09b3..10e066c1f1 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs @@ -2451,7 +2451,7 @@ pub const POINTER_MESSAGE_FLAG_SECONDBUTTON: u32 = 32u32; pub const POINTER_MESSAGE_FLAG_THIRDBUTTON: u32 = 64u32; pub const POINTER_MOD_CTRL: u32 = 8u32; pub const POINTER_MOD_SHIFT: u32 = 4u32; -pub type PREGISTERCLASSNAMEW = Option super::super::Foundation::BOOLEAN>; +pub type PREGISTERCLASSNAMEW = Option bool>; pub const PRF_CHECKVISIBLE: i32 = 1i32; pub const PRF_CHILDREN: i32 = 16i32; pub const PRF_CLIENT: i32 = 4i32; diff --git a/crates/libs/windows/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs b/crates/libs/windows/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs index ca550d0f0b..d39c00351c 100644 --- a/crates/libs/windows/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Devices/HumanInterfaceDevice/mod.rs @@ -10,8 +10,8 @@ pub unsafe fn VhfCreate(vhfconfig: *const VHF_CONFIG, vhfhandle: *mut *mut core: } #[inline] pub unsafe fn VhfDelete(vhfhandle: *const core::ffi::c_void, wait: bool) { - windows_targets::link!("vhfum.dll" "system" fn VhfDelete(vhfhandle : *const core::ffi::c_void, wait : super::super::super::Win32::Foundation:: BOOLEAN)); - VhfDelete(core::mem::transmute(vhfhandle), wait.into()) + windows_targets::link!("vhfum.dll" "system" fn VhfDelete(vhfhandle : *const core::ffi::c_void, wait : bool)); + VhfDelete(core::mem::transmute(vhfhandle), core::mem::transmute(wait)) } #[inline] pub unsafe fn VhfReadReportSubmit(vhfhandle: *const core::ffi::c_void, hidtransferpacket: *const HID_XFER_PACKET) -> super::super::super::Win32::Foundation::NTSTATUS { diff --git a/crates/libs/windows/src/Windows/Wdk/Foundation/mod.rs b/crates/libs/windows/src/Windows/Wdk/Foundation/mod.rs index d34b6f1229..474663c3de 100644 --- a/crates/libs/windows/src/Windows/Wdk/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Foundation/mod.rs @@ -13,10 +13,10 @@ pub unsafe fn NtQueryObject(handle: Option; +pub type DRIVER_FS_NOTIFICATION = Option; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type DRIVER_INITIALIZE = Option super::super::Win32::Foundation::NTSTATUS>; pub type DRIVER_NOTIFICATION_CALLBACK_ROUTINE = Option super::super::Win32::Foundation::NTSTATUS>; @@ -539,11 +539,11 @@ pub type FAST_IO_ACQUIRE_FOR_CCFLUSH = Option super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_CHECK_IF_POSSIBLE = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_CHECK_IF_POSSIBLE = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type FAST_IO_DETACH_DEVICE = Option; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_DEVICE_CONTROL = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_DEVICE_CONTROL = Option bool>; #[repr(C)] #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy, Debug, PartialEq)] @@ -584,31 +584,31 @@ impl Default for FAST_IO_DISPATCH { } } #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_LOCK = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_LOCK = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_MDL_READ = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_MDL_READ = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_MDL_READ_COMPLETE = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_MDL_READ_COMPLETE = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_MDL_READ_COMPLETE_COMPRESSED = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_MDL_READ_COMPLETE_COMPRESSED = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_MDL_WRITE_COMPLETE = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_MDL_WRITE_COMPLETE = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_MDL_WRITE_COMPLETE_COMPRESSED = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_MDL_WRITE_COMPLETE_COMPRESSED = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_PREPARE_MDL_WRITE = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_PREPARE_MDL_WRITE = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_QUERY_BASIC_INFO = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_QUERY_BASIC_INFO = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_QUERY_NETWORK_OPEN_INFO = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_QUERY_NETWORK_OPEN_INFO = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_QUERY_OPEN = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_QUERY_OPEN = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_QUERY_STANDARD_INFO = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_QUERY_STANDARD_INFO = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_READ = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_READ = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_READ_COMPRESSED = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_READ_COMPRESSED = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type FAST_IO_RELEASE_FILE = Option; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -616,15 +616,15 @@ pub type FAST_IO_RELEASE_FOR_CCFLUSH = Option super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_UNLOCK_ALL = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_UNLOCK_ALL = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_UNLOCK_ALL_BY_KEY = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_UNLOCK_ALL_BY_KEY = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_UNLOCK_SINGLE = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_UNLOCK_SINGLE = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_WRITE = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_WRITE = Option bool>; #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type FAST_IO_WRITE_COMPRESSED = Option super::super::Win32::Foundation::BOOLEAN>; +pub type FAST_IO_WRITE_COMPRESSED = Option bool>; #[repr(C)] #[cfg(feature = "Win32_System_Kernel")] #[derive(Clone, Copy)] @@ -655,14 +655,14 @@ pub struct FILE_OBJECT { pub PrivateCacheMap: *mut core::ffi::c_void, pub FinalStatus: super::super::Win32::Foundation::NTSTATUS, pub RelatedFileObject: *mut FILE_OBJECT, - pub LockOperation: super::super::Win32::Foundation::BOOLEAN, - pub DeletePending: super::super::Win32::Foundation::BOOLEAN, - pub ReadAccess: super::super::Win32::Foundation::BOOLEAN, - pub WriteAccess: super::super::Win32::Foundation::BOOLEAN, - pub DeleteAccess: super::super::Win32::Foundation::BOOLEAN, - pub SharedRead: super::super::Win32::Foundation::BOOLEAN, - pub SharedWrite: super::super::Win32::Foundation::BOOLEAN, - pub SharedDelete: super::super::Win32::Foundation::BOOLEAN, + pub LockOperation: bool, + pub DeletePending: bool, + pub ReadAccess: bool, + pub WriteAccess: bool, + pub DeleteAccess: bool, + pub SharedRead: bool, + pub SharedWrite: bool, + pub SharedDelete: bool, pub Flags: u32, pub FileName: super::super::Win32::Foundation::UNICODE_STRING, pub CurrentByteOffset: i64, @@ -1222,8 +1222,8 @@ impl Default for IO_STACK_LOCATION_0_9_0 { #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy, Debug, PartialEq)] pub struct IO_STACK_LOCATION_0_9_0_0 { - pub ReplaceIfExists: super::super::Win32::Foundation::BOOLEAN, - pub AdvanceOnly: super::super::Win32::Foundation::BOOLEAN, + pub ReplaceIfExists: bool, + pub AdvanceOnly: bool, } #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] impl Default for IO_STACK_LOCATION_0_9_0_0 { @@ -1235,7 +1235,7 @@ impl Default for IO_STACK_LOCATION_0_9_0_0 { #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy, Debug, PartialEq)] pub struct IO_STACK_LOCATION_0_29 { - pub Lock: super::super::Win32::Foundation::BOOLEAN, + pub Lock: bool, } #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] impl Default for IO_STACK_LOCATION_0_29 { @@ -1298,8 +1298,8 @@ impl Default for IO_STACK_LOCATION_0_36 { #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy, Debug, PartialEq)] pub struct IO_STACK_LOCATION_0_32 { - pub InPath: super::super::Win32::Foundation::BOOLEAN, - pub Reserved: [super::super::Win32::Foundation::BOOLEAN; 3], + pub InPath: bool, + pub Reserved: [bool; 3], pub Type: super::System::SystemServices::DEVICE_USAGE_NOTIFICATION_TYPE, } #[cfg(all(feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -1374,10 +1374,10 @@ pub struct IRP { pub ThreadListEntry: super::super::Win32::System::Kernel::LIST_ENTRY, pub IoStatus: super::super::Win32::System::IO::IO_STATUS_BLOCK, pub RequestorMode: i8, - pub PendingReturned: super::super::Win32::Foundation::BOOLEAN, + pub PendingReturned: bool, pub StackCount: i8, pub CurrentLocation: i8, - pub Cancel: super::super::Win32::Foundation::BOOLEAN, + pub Cancel: bool, pub CancelIrql: u8, pub ApcEnvironment: i8, pub AllocationFlags: u8, @@ -1567,7 +1567,7 @@ pub struct KDEVICE_QUEUE { pub Size: i16, pub DeviceListHead: super::super::Win32::System::Kernel::LIST_ENTRY, pub Lock: usize, - pub Busy: super::super::Win32::Foundation::BOOLEAN, + pub Busy: bool, } #[cfg(feature = "Win32_System_Kernel")] impl Default for KDEVICE_QUEUE { diff --git a/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs b/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs index 3403c0f16a..30ebde9bd7 100644 --- a/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs @@ -30,8 +30,8 @@ pub unsafe fn D3DKMTChangeVideoMemoryReservation(param0: *const D3DKMT_CHANGEVID D3DKMTChangeVideoMemoryReservation(core::mem::transmute(param0)) } #[inline] -pub unsafe fn D3DKMTCheckExclusiveOwnership() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("gdi32.dll" "system" fn D3DKMTCheckExclusiveOwnership() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn D3DKMTCheckExclusiveOwnership() -> bool { + windows_targets::link!("gdi32.dll" "system" fn D3DKMTCheckExclusiveOwnership() -> bool); D3DKMTCheckExclusiveOwnership() } #[inline] @@ -4983,7 +4983,7 @@ pub struct D3DKMDT_VIDEO_PRESENT_TARGET { pub VideoOutputTechnology: D3DKMDT_VIDEO_OUTPUT_TECHNOLOGY, pub VideoOutputHpdAwareness: DXGK_CHILD_DEVICE_HPD_AWARENESS, pub MonitorOrientationAwareness: D3DKMDT_MONITOR_ORIENTATION_AWARENESS, - pub SupportsSdtvModes: super::super::super::Win32::Foundation::BOOLEAN, + pub SupportsSdtvModes: bool, } impl Default for D3DKMDT_VIDEO_PRESENT_TARGET { fn default() -> Self { @@ -5579,7 +5579,7 @@ pub const D3DKMT_AllocationPriorityClassNormal: D3DKMT_QUERYSTATISTICS_ALLOCATIO #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_BDDFALLBACK_CTL { - pub ForceBddHeadlessNextFallback: super::super::super::Win32::Foundation::BOOLEAN, + pub ForceBddHeadlessNextFallback: bool, } impl Default for D3DKMT_BDDFALLBACK_CTL { fn default() -> Self { @@ -5631,7 +5631,7 @@ pub union D3DKMT_BRIGHTNESS_INFO_0 { pub BrightnessState: DXGK_BRIGHTNESS_STATE, pub OptimizationLevel: DXGK_BACKLIGHT_OPTIMIZATION_LEVEL, pub ReductionInfo: DXGK_BACKLIGHT_INFO, - pub VerboseLogging: super::super::super::Win32::Foundation::BOOLEAN, + pub VerboseLogging: bool, pub NitRanges: DXGK_BRIGHTNESS_GET_NIT_RANGES_OUT, pub GetBrightnessMillinits: DXGK_BRIGHTNESS_GET_OUT, pub SetBrightnessMillinits: DXGK_BRIGHTNESS_SET_IN, @@ -5971,9 +5971,9 @@ impl Default for D3DKMT_COMPOSITION_PRESENTHISTORYTOKEN { pub struct D3DKMT_CONFIGURESHAREDRESOURCE { pub hDevice: u32, pub hResource: u32, - pub IsDwm: super::super::super::Win32::Foundation::BOOLEAN, + pub IsDwm: bool, pub hProcess: super::super::super::Win32::Foundation::HANDLE, - pub AllowAccess: super::super::super::Win32::Foundation::BOOLEAN, + pub AllowAccess: bool, } impl Default for D3DKMT_CONFIGURESHAREDRESOURCE { fn default() -> Self { @@ -6712,7 +6712,7 @@ impl Default for D3DKMT_DEVICEPAGEFAULT_STATE { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_DEVICEPRESENT_QUEUE_STATE { pub VidPnSourceId: u32, - pub bQueuedPresentLimitReached: super::super::super::Win32::Foundation::BOOLEAN, + pub bQueuedPresentLimitReached: bool, } impl Default for D3DKMT_DEVICEPRESENT_QUEUE_STATE { fn default() -> Self { @@ -7143,7 +7143,7 @@ pub const D3DKMT_ESCAPE_VIDSCH: D3DKMT_ESCAPETYPE = D3DKMT_ESCAPETYPE(3i32); pub struct D3DKMT_ESCAPE_VIRTUAL_REFRESH_RATE { pub Type: D3DKMT_ESCAPE_VIRTUAL_REFRESH_RATE_TYPE, pub VidPnSourceId: u32, - pub ProcessBoostEligible: super::super::super::Win32::Foundation::BOOLEAN, + pub ProcessBoostEligible: bool, pub VSyncMultiplier: u32, pub BaseDesktopDuration: u32, pub Reserved: [u8; 16], @@ -7583,7 +7583,7 @@ impl Default for D3DKMT_GETMULTISAMPLEMETHODLIST { pub struct D3DKMT_GETOVERLAYSTATE { pub hDevice: u32, pub hOverlay: u32, - pub OverlayEnabled: super::super::super::Win32::Foundation::BOOLEAN, + pub OverlayEnabled: bool, } impl Default for D3DKMT_GETOVERLAYSTATE { fn default() -> Self { @@ -7610,7 +7610,7 @@ pub const D3DKMT_GETPRESENTHISTORY_MAXTOKENS: u32 = 2048u32; pub struct D3DKMT_GETPROCESSDEVICEREMOVALSUPPORT { pub hProcess: super::super::super::Win32::Foundation::HANDLE, pub AdapterLuid: super::super::super::Win32::Foundation::LUID, - pub Support: super::super::super::Win32::Foundation::BOOLEAN, + pub Support: bool, } impl Default for D3DKMT_GETPROCESSDEVICEREMOVALSUPPORT { fn default() -> Self { @@ -7635,7 +7635,7 @@ impl Default for D3DKMT_GETRUNTIMEDATA { pub struct D3DKMT_GETSCANLINE { pub hAdapter: u32, pub VidPnSourceId: u32, - pub InVerticalBlank: super::super::super::Win32::Foundation::BOOLEAN, + pub InVerticalBlank: bool, pub ScanLine: u32, } impl Default for D3DKMT_GETSCANLINE { @@ -7684,7 +7684,7 @@ impl Default for D3DKMT_GETVERTICALBLANKEVENT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_GET_DEVICE_VIDPN_OWNERSHIP_INFO { pub hDevice: u32, - pub bFailedDwmAcquireVidPn: super::super::super::Win32::Foundation::BOOLEAN, + pub bFailedDwmAcquireVidPn: bool, } impl Default for D3DKMT_GET_DEVICE_VIDPN_OWNERSHIP_INFO { fn default() -> Self { @@ -7738,7 +7738,7 @@ pub struct D3DKMT_GET_PTE { pub PhysicalAdapterIndex: u32, pub PageTableLevel: u32, pub PageTableIndex: [u32; 6], - pub b64KBPte: super::super::super::Win32::Foundation::BOOLEAN, + pub b64KBPte: bool, pub NumPtes: u32, pub Pte: [DXGK_PTE; 64], pub NumValidEntries: u32, @@ -7824,7 +7824,7 @@ pub const D3DKMT_GPU_PREFERENCE_TYPE_USER_PREFERENCE: D3DKMT_GPU_PREFERENCE_QUER #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_HISTORY_BUFFER_STATUS { - pub Enabled: super::super::super::Win32::Foundation::BOOLEAN, + pub Enabled: bool, pub Reserved: u32, } impl Default for D3DKMT_HISTORY_BUFFER_STATUS { @@ -7835,7 +7835,7 @@ impl Default for D3DKMT_HISTORY_BUFFER_STATUS { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_HWDRM_SUPPORT { - pub Supported: super::super::super::Win32::Foundation::BOOLEAN, + pub Supported: bool, } impl Default for D3DKMT_HWDRM_SUPPORT { fn default() -> Self { @@ -8027,9 +8027,9 @@ pub const D3DKMT_MIRACAST_DEVICE_STATUS_UNKOWN_PAIRING: D3DKMT_MIRACAST_DEVICE_S #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_MIRACAST_DISPLAY_DEVICE_CAPS { - pub HdcpSupported: super::super::super::Win32::Foundation::BOOLEAN, + pub HdcpSupported: bool, pub DefaultControlPort: u32, - pub UsesIhvSolution: super::super::super::Win32::Foundation::BOOLEAN, + pub UsesIhvSolution: bool, } impl Default for D3DKMT_MIRACAST_DISPLAY_DEVICE_CAPS { fn default() -> Self { @@ -9057,7 +9057,7 @@ impl Default for D3DKMT_PANELFITTER_SUPPORT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_PARAVIRTUALIZATION { - pub SecureContainer: super::super::super::Win32::Foundation::BOOLEAN, + pub SecureContainer: bool, } impl Default for D3DKMT_PARAVIRTUALIZATION { fn default() -> Self { @@ -9201,7 +9201,7 @@ pub struct D3DKMT_PRESENT { pub BroadcastDstAllocation: *mut u32, pub PrivateDriverDataSize: u32, pub pPrivateDriverData: *mut core::ffi::c_void, - pub bOptimizeForComposition: super::super::super::Win32::Foundation::BOOLEAN, + pub bOptimizeForComposition: bool, } impl Default for D3DKMT_PRESENT { fn default() -> Self { @@ -10856,8 +10856,8 @@ pub struct D3DKMT_SEGMENT_CAPS { pub Size: u64, pub PageSize: u32, pub SegmentId: u32, - pub bAperture: super::super::super::Win32::Foundation::BOOLEAN, - pub bReservedSysMem: super::super::super::Win32::Foundation::BOOLEAN, + pub bAperture: bool, + pub bReservedSysMem: bool, pub BudgetGroup: D3DKMT_MEMORY_SEGMENT_GROUP, } impl Default for D3DKMT_SEGMENT_CAPS { @@ -15496,13 +15496,13 @@ pub const DXGK_ENGINE_TYPE_VIDEO_PROCESSING: DXGK_ENGINE_TYPE = DXGK_ENGINE_TYPE #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DXGK_ESCAPE_GPUMMUCAPS { - pub ReadOnlyMemorySupported: super::super::super::Win32::Foundation::BOOLEAN, - pub NoExecuteMemorySupported: super::super::super::Win32::Foundation::BOOLEAN, - pub ZeroInPteSupported: super::super::super::Win32::Foundation::BOOLEAN, - pub CacheCoherentMemorySupported: super::super::super::Win32::Foundation::BOOLEAN, - pub LargePageSupported: super::super::super::Win32::Foundation::BOOLEAN, - pub DualPteSupported: super::super::super::Win32::Foundation::BOOLEAN, - pub AllowNonAlignedLargePageAddress: super::super::super::Win32::Foundation::BOOLEAN, + pub ReadOnlyMemorySupported: bool, + pub NoExecuteMemorySupported: bool, + pub ZeroInPteSupported: bool, + pub CacheCoherentMemorySupported: bool, + pub LargePageSupported: bool, + pub DualPteSupported: bool, + pub AllowNonAlignedLargePageAddress: bool, pub VirtualAddressBitCount: u32, pub PageTableLevelCount: u32, pub PageTableLevelDesk: [D3DKMT_PAGE_TABLE_LEVEL_DESC; 6], @@ -15745,8 +15745,8 @@ pub struct DXGK_NODEMETADATA { pub EngineType: DXGK_ENGINE_TYPE, pub FriendlyName: [u16; 32], pub Flags: DXGK_NODEMETADATA_FLAGS, - pub GpuMmuSupported: super::super::super::Win32::Foundation::BOOLEAN, - pub IoMmuSupported: super::super::super::Win32::Foundation::BOOLEAN, + pub GpuMmuSupported: bool, + pub IoMmuSupported: bool, } impl Default for DXGK_NODEMETADATA { fn default() -> Self { @@ -16094,13 +16094,13 @@ pub const OUTPUTDUPL_CONTEXT_DEBUG_STATUS_ACTIVE: OUTPUTDUPL_CONTEXT_DEBUG_STATU pub const OUTPUTDUPL_CONTEXT_DEBUG_STATUS_INACTIVE: OUTPUTDUPL_CONTEXT_DEBUG_STATUS = OUTPUTDUPL_CONTEXT_DEBUG_STATUS(0i32); pub const OUTPUTDUPL_CONTEXT_DEBUG_STATUS_PENDING_DESTROY: OUTPUTDUPL_CONTEXT_DEBUG_STATUS = OUTPUTDUPL_CONTEXT_DEBUG_STATUS(2i32); pub const OUTPUTDUPL_CREATE_MAX_KEYEDMUTXES: u32 = 3u32; -pub type PDXGK_FSTATE_NOTIFICATION = Option; +pub type PDXGK_FSTATE_NOTIFICATION = Option; pub type PDXGK_GRAPHICSPOWER_UNREGISTER = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PDXGK_INITIAL_COMPONENT_STATE = Option; +pub type PDXGK_INITIAL_COMPONENT_STATE = Option; #[cfg(feature = "Win32_System_Power")] -pub type PDXGK_POWER_NOTIFICATION = Option; +pub type PDXGK_POWER_NOTIFICATION = Option; pub type PDXGK_REMOVAL_NOTIFICATION = Option; -pub type PDXGK_SET_SHARED_POWER_COMPONENT_STATE = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PDXGK_SET_SHARED_POWER_COMPONENT_STATE = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_ACQUIREKEYEDMUTEX = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_ACQUIREKEYEDMUTEX2 = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_ADJUSTFULLSCREENGAMMA = Option super::super::super::Win32::Foundation::NTSTATUS>; @@ -16109,7 +16109,7 @@ pub type PFND3DKMT_CANCELPRESENTS = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_CHANGEVIDEOMEMORYRESERVATION = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PFND3DKMT_CHECKEXCLUSIVEOWNERSHIP = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PFND3DKMT_CHECKEXCLUSIVEOWNERSHIP = Option bool>; pub type PFND3DKMT_CHECKMONITORPOWERSTATE = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_CHECKMULTIPLANEOVERLAYSUPPORT = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_CHECKMULTIPLANEOVERLAYSUPPORT2 = Option super::super::super::Win32::Foundation::NTSTATUS>; diff --git a/crates/libs/windows/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs b/crates/libs/windows/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs index b46d91896d..bd83c89d50 100644 --- a/crates/libs/windows/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/NetworkManagement/Ndis/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn NdisAcquireReadWriteLock(lock: *mut NDIS_RW_LOCK, fwrite: bool, lockstate: *mut LOCK_STATE) { - windows_targets::link!("ndis.sys" "system" fn NdisAcquireReadWriteLock(lock : *mut NDIS_RW_LOCK, fwrite : super::super::super::Win32::Foundation:: BOOLEAN, lockstate : *mut LOCK_STATE)); - NdisAcquireReadWriteLock(core::mem::transmute(lock), fwrite.into(), core::mem::transmute(lockstate)) + windows_targets::link!("ndis.sys" "system" fn NdisAcquireReadWriteLock(lock : *mut NDIS_RW_LOCK, fwrite : bool, lockstate : *mut LOCK_STATE)); + NdisAcquireReadWriteLock(core::mem::transmute(lock), core::mem::transmute(fwrite), core::mem::transmute(lockstate)) } #[inline] pub unsafe fn NdisAllocateMemoryWithTag(virtualaddress: *mut *mut core::ffi::c_void, length: u32, tag: u32) -> i32 { @@ -10,8 +10,8 @@ pub unsafe fn NdisAllocateMemoryWithTag(virtualaddress: *mut *mut core::ffi::c_v } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn NdisCancelTimer(timer: *const NDIS_TIMER) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ndis.sys" "system" fn NdisCancelTimer(timer : *const NDIS_TIMER, timercancelled : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +pub unsafe fn NdisCancelTimer(timer: *const NDIS_TIMER) -> bool { + windows_targets::link!("ndis.sys" "system" fn NdisCancelTimer(timer : *const NDIS_TIMER, timercancelled : *mut bool)); let mut result__ = core::mem::zeroed(); NdisCancelTimer(core::mem::transmute(timer), &mut result__); result__ @@ -179,8 +179,8 @@ pub unsafe fn NdisCoGetTapiCallId(ndisvchandle: *const core::ffi::c_void, tapica #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn NdisCompleteDmaTransfer(status: *mut i32, ndisdmahandle: *mut core::ffi::c_void, buffer: *mut super::super::Foundation::MDL, offset: u32, length: u32, writetodevice: bool) { - windows_targets::link!("ndis.sys" "system" fn NdisCompleteDmaTransfer(status : *mut i32, ndisdmahandle : *mut core::ffi::c_void, buffer : *mut super::super::Foundation:: MDL, offset : u32, length : u32, writetodevice : super::super::super::Win32::Foundation:: BOOLEAN)); - NdisCompleteDmaTransfer(core::mem::transmute(status), core::mem::transmute(ndisdmahandle), core::mem::transmute(buffer), core::mem::transmute(offset), core::mem::transmute(length), writetodevice.into()) + windows_targets::link!("ndis.sys" "system" fn NdisCompleteDmaTransfer(status : *mut i32, ndisdmahandle : *mut core::ffi::c_void, buffer : *mut super::super::Foundation:: MDL, offset : u32, length : u32, writetodevice : bool)); + NdisCompleteDmaTransfer(core::mem::transmute(status), core::mem::transmute(ndisdmahandle), core::mem::transmute(buffer), core::mem::transmute(offset), core::mem::transmute(length), core::mem::transmute(writetodevice)) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -257,11 +257,9 @@ pub unsafe fn NdisIMInitializeDeviceInstanceEx(driverhandle: *const core::ffi::c } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn NdisInitializeEvent() -> NDIS_EVENT { +pub unsafe fn NdisInitializeEvent(event: *mut NDIS_EVENT) { windows_targets::link!("ndis.sys" "system" fn NdisInitializeEvent(event : *mut NDIS_EVENT)); - let mut result__ = core::mem::zeroed(); - NdisInitializeEvent(&mut result__); - result__ + NdisInitializeEvent(core::mem::transmute(event)) } #[inline] pub unsafe fn NdisInitializeReadWriteLock(lock: *mut NDIS_RW_LOCK) { @@ -281,18 +279,18 @@ pub unsafe fn NdisInitializeTimer(timer: *mut NDIS_TIMER, timerfunction: PNDIS_T } #[inline] pub unsafe fn NdisMAllocateSharedMemory(miniportadapterhandle: *const core::ffi::c_void, length: u32, cached: bool, virtualaddress: *mut *mut core::ffi::c_void, physicaladdress: *mut i64) { - windows_targets::link!("ndis.sys" "system" fn NdisMAllocateSharedMemory(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : super::super::super::Win32::Foundation:: BOOLEAN, virtualaddress : *mut *mut core::ffi::c_void, physicaladdress : *mut i64)); - NdisMAllocateSharedMemory(core::mem::transmute(miniportadapterhandle), core::mem::transmute(length), cached.into(), core::mem::transmute(virtualaddress), core::mem::transmute(physicaladdress)) + windows_targets::link!("ndis.sys" "system" fn NdisMAllocateSharedMemory(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : bool, virtualaddress : *mut *mut core::ffi::c_void, physicaladdress : *mut i64)); + NdisMAllocateSharedMemory(core::mem::transmute(miniportadapterhandle), core::mem::transmute(length), core::mem::transmute(cached), core::mem::transmute(virtualaddress), core::mem::transmute(physicaladdress)) } #[inline] pub unsafe fn NdisMAllocateSharedMemoryAsync(miniportadapterhandle: *const core::ffi::c_void, length: u32, cached: bool, context: *const core::ffi::c_void) -> i32 { - windows_targets::link!("ndis.sys" "system" fn NdisMAllocateSharedMemoryAsync(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : super::super::super::Win32::Foundation:: BOOLEAN, context : *const core::ffi::c_void) -> i32); - NdisMAllocateSharedMemoryAsync(core::mem::transmute(miniportadapterhandle), core::mem::transmute(length), cached.into(), core::mem::transmute(context)) + windows_targets::link!("ndis.sys" "system" fn NdisMAllocateSharedMemoryAsync(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : bool, context : *const core::ffi::c_void) -> i32); + NdisMAllocateSharedMemoryAsync(core::mem::transmute(miniportadapterhandle), core::mem::transmute(length), core::mem::transmute(cached), core::mem::transmute(context)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn NdisMCancelTimer(timer: *const NDIS_MINIPORT_TIMER) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ndis.sys" "system" fn NdisMCancelTimer(timer : *const NDIS_MINIPORT_TIMER, timercancelled : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +pub unsafe fn NdisMCancelTimer(timer: *const NDIS_MINIPORT_TIMER) -> bool { + windows_targets::link!("ndis.sys" "system" fn NdisMCancelTimer(timer : *const NDIS_MINIPORT_TIMER, timercancelled : *mut bool)); let mut result__ = core::mem::zeroed(); NdisMCancelTimer(core::mem::transmute(timer), &mut result__); result__ @@ -359,8 +357,8 @@ pub unsafe fn NdisMFlushLog(loghandle: *const core::ffi::c_void) { } #[inline] pub unsafe fn NdisMFreeSharedMemory(miniportadapterhandle: *const core::ffi::c_void, length: u32, cached: bool, virtualaddress: *const core::ffi::c_void, physicaladdress: i64) { - windows_targets::link!("ndis.sys" "system" fn NdisMFreeSharedMemory(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : super::super::super::Win32::Foundation:: BOOLEAN, virtualaddress : *const core::ffi::c_void, physicaladdress : i64)); - NdisMFreeSharedMemory(core::mem::transmute(miniportadapterhandle), core::mem::transmute(length), cached.into(), core::mem::transmute(virtualaddress), core::mem::transmute(physicaladdress)) + windows_targets::link!("ndis.sys" "system" fn NdisMFreeSharedMemory(miniportadapterhandle : *const core::ffi::c_void, length : u32, cached : bool, virtualaddress : *const core::ffi::c_void, physicaladdress : i64)); + NdisMFreeSharedMemory(core::mem::transmute(miniportadapterhandle), core::mem::transmute(length), core::mem::transmute(cached), core::mem::transmute(virtualaddress), core::mem::transmute(physicaladdress)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -397,8 +395,8 @@ pub unsafe fn NdisMReadDmaCounter(miniportdmahandle: *const core::ffi::c_void) - #[cfg(feature = "Wdk_System_SystemServices")] #[inline] pub unsafe fn NdisMRegisterDmaChannel(miniportdmahandle: *mut *mut core::ffi::c_void, miniportadapterhandle: *const core::ffi::c_void, dmachannel: u32, dma32bitaddresses: bool, dmadescription: *const NDIS_DMA_DESCRIPTION, maximumlength: u32) -> i32 { - windows_targets::link!("ndis.sys" "system" fn NdisMRegisterDmaChannel(miniportdmahandle : *mut *mut core::ffi::c_void, miniportadapterhandle : *const core::ffi::c_void, dmachannel : u32, dma32bitaddresses : super::super::super::Win32::Foundation:: BOOLEAN, dmadescription : *const NDIS_DMA_DESCRIPTION, maximumlength : u32) -> i32); - NdisMRegisterDmaChannel(core::mem::transmute(miniportdmahandle), core::mem::transmute(miniportadapterhandle), core::mem::transmute(dmachannel), dma32bitaddresses.into(), core::mem::transmute(dmadescription), core::mem::transmute(maximumlength)) + windows_targets::link!("ndis.sys" "system" fn NdisMRegisterDmaChannel(miniportdmahandle : *mut *mut core::ffi::c_void, miniportadapterhandle : *const core::ffi::c_void, dmachannel : u32, dma32bitaddresses : bool, dmadescription : *const NDIS_DMA_DESCRIPTION, maximumlength : u32) -> i32); + NdisMRegisterDmaChannel(core::mem::transmute(miniportdmahandle), core::mem::transmute(miniportadapterhandle), core::mem::transmute(dmachannel), core::mem::transmute(dma32bitaddresses), core::mem::transmute(dmadescription), core::mem::transmute(maximumlength)) } #[inline] pub unsafe fn NdisMRegisterIoPortRange(portoffset: *mut *mut core::ffi::c_void, miniportadapterhandle: *const core::ffi::c_void, initialport: u32, numberofports: u32) -> i32 { @@ -519,8 +517,8 @@ pub unsafe fn NdisSetTimerEx(ndistimer: *const NDIS_TIMER, millisecondstodelay: #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn NdisSetupDmaTransfer(status: *mut i32, ndisdmahandle: *mut core::ffi::c_void, buffer: *mut super::super::Foundation::MDL, offset: u32, length: u32, writetodevice: bool) { - windows_targets::link!("ndis.sys" "system" fn NdisSetupDmaTransfer(status : *mut i32, ndisdmahandle : *mut core::ffi::c_void, buffer : *mut super::super::Foundation:: MDL, offset : u32, length : u32, writetodevice : super::super::super::Win32::Foundation:: BOOLEAN)); - NdisSetupDmaTransfer(core::mem::transmute(status), core::mem::transmute(ndisdmahandle), core::mem::transmute(buffer), core::mem::transmute(offset), core::mem::transmute(length), writetodevice.into()) + windows_targets::link!("ndis.sys" "system" fn NdisSetupDmaTransfer(status : *mut i32, ndisdmahandle : *mut core::ffi::c_void, buffer : *mut super::super::Foundation:: MDL, offset : u32, length : u32, writetodevice : bool)); + NdisSetupDmaTransfer(core::mem::transmute(status), core::mem::transmute(ndisdmahandle), core::mem::transmute(buffer), core::mem::transmute(offset), core::mem::transmute(length), core::mem::transmute(writetodevice)) } #[inline] pub unsafe fn NdisSystemProcessorCount() -> i8 { @@ -539,8 +537,8 @@ pub unsafe fn NdisUpdateSharedMemory(ndisadapterhandle: *mut core::ffi::c_void, } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn NdisWaitEvent(event: *const NDIS_EVENT, mstowait: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ndis.sys" "system" fn NdisWaitEvent(event : *const NDIS_EVENT, mstowait : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn NdisWaitEvent(event: *const NDIS_EVENT, mstowait: u32) -> bool { + windows_targets::link!("ndis.sys" "system" fn NdisWaitEvent(event : *const NDIS_EVENT, mstowait : u32) -> bool); NdisWaitEvent(core::mem::transmute(event), core::mem::transmute(mstowait)) } #[inline] @@ -1359,7 +1357,7 @@ pub struct NDIS_DMA_BLOCK { pub AllocationEvent: super::super::Foundation::KEVENT, pub SystemAdapterObject: *mut core::ffi::c_void, pub Miniport: *mut core::ffi::c_void, - pub InProgress: super::super::super::Win32::Foundation::BOOLEAN, + pub InProgress: bool, } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] impl Default for NDIS_DMA_BLOCK { @@ -1371,9 +1369,9 @@ impl Default for NDIS_DMA_BLOCK { #[cfg(feature = "Wdk_System_SystemServices")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct NDIS_DMA_DESCRIPTION { - pub DemandMode: super::super::super::Win32::Foundation::BOOLEAN, - pub AutoInitialize: super::super::super::Win32::Foundation::BOOLEAN, - pub DmaChannelSpecified: super::super::super::Win32::Foundation::BOOLEAN, + pub DemandMode: bool, + pub AutoInitialize: bool, + pub DmaChannelSpecified: bool, pub DmaWidth: super::super::System::SystemServices::DMA_WIDTH, pub DmaSpeed: super::super::System::SystemServices::DMA_SPEED, pub DmaPort: u32, @@ -2937,7 +2935,7 @@ impl Default for NDIS_RW_LOCK_1 { pub struct NDIS_RW_LOCK_1_0 { pub RefCountLock: usize, pub SharedRefCount: u32, - pub WriterWaiting: super::super::super::Win32::Foundation::BOOLEAN, + pub WriterWaiting: bool, } impl Default for NDIS_RW_LOCK_1_0 { fn default() -> Self { @@ -3391,7 +3389,7 @@ pub type NDIS_TIMER_FUNCTION = Option Self { @@ -5217,7 +5215,7 @@ pub const RECEIVE_VC: u32 = 8u32; pub struct REFERENCE { pub SpinLock: usize, pub ReferenceCount: u16, - pub Closing: super::super::super::Win32::Foundation::BOOLEAN, + pub Closing: bool, } impl Default for REFERENCE { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/Minifilters/mod.rs b/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/Minifilters/mod.rs index ffab0dc873..735defd5d3 100644 --- a/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/Minifilters/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/Minifilters/mod.rs @@ -42,8 +42,8 @@ pub unsafe fn FltAddOpenReparseEntry(filter: PFLT_FILTER, data: *const FLT_CALLB FltAddOpenReparseEntry(core::mem::transmute(filter), core::mem::transmute(data), core::mem::transmute(openreparseentry)) } #[inline] -pub unsafe fn FltAdjustDeviceStackSizeForIoRedirection(sourceinstance: PFLT_INSTANCE, targetinstance: PFLT_INSTANCE, sourcedevicestacksizemodified: Option<*mut super::super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("fltmgr.sys" "system" fn FltAdjustDeviceStackSizeForIoRedirection(sourceinstance : PFLT_INSTANCE, targetinstance : PFLT_INSTANCE, sourcedevicestacksizemodified : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn FltAdjustDeviceStackSizeForIoRedirection(sourceinstance: PFLT_INSTANCE, targetinstance: PFLT_INSTANCE, sourcedevicestacksizemodified: Option<*mut bool>) -> super::super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("fltmgr.sys" "system" fn FltAdjustDeviceStackSizeForIoRedirection(sourceinstance : PFLT_INSTANCE, targetinstance : PFLT_INSTANCE, sourcedevicestacksizemodified : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); FltAdjustDeviceStackSizeForIoRedirection(core::mem::transmute(sourceinstance), core::mem::transmute(targetinstance), core::mem::transmute(sourcedevicestacksizemodified.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -132,8 +132,8 @@ pub unsafe fn FltCancelFileOpen(instance: PFLT_INSTANCE, fileobject: *const supe } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltCancelIo(callbackdata: *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltCancelIo(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltCancelIo(callbackdata: *const FLT_CALLBACK_DATA) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltCancelIo(callbackdata : *const FLT_CALLBACK_DATA) -> bool); FltCancelIo(core::mem::transmute(callbackdata)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -191,14 +191,14 @@ pub unsafe fn FltCheckAndGrowNameControl(namectrl: *mut FLT_NAME_CONTROL, newsiz } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltCheckLockForReadAccess(filelock: *const super::FILE_LOCK, callbackdata: *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltCheckLockForReadAccess(filelock : *const super:: FILE_LOCK, callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltCheckLockForReadAccess(filelock: *const super::FILE_LOCK, callbackdata: *const FLT_CALLBACK_DATA) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltCheckLockForReadAccess(filelock : *const super:: FILE_LOCK, callbackdata : *const FLT_CALLBACK_DATA) -> bool); FltCheckLockForReadAccess(core::mem::transmute(filelock), core::mem::transmute(callbackdata)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltCheckLockForWriteAccess(filelock: *const super::FILE_LOCK, callbackdata: *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltCheckLockForWriteAccess(filelock : *const super:: FILE_LOCK, callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltCheckLockForWriteAccess(filelock: *const super::FILE_LOCK, callbackdata: *const FLT_CALLBACK_DATA) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltCheckLockForWriteAccess(filelock : *const super:: FILE_LOCK, callbackdata : *const FLT_CALLBACK_DATA) -> bool); FltCheckLockForWriteAccess(core::mem::transmute(filelock), core::mem::transmute(callbackdata)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -421,18 +421,18 @@ pub unsafe fn FltCreateSystemVolumeInformationFolder(instance: PFLT_INSTANCE) -> FltCreateSystemVolumeInformationFolder(core::mem::transmute(instance)) } #[inline] -pub unsafe fn FltCurrentBatchOplock(oplock: *const *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltCurrentBatchOplock(oplock : *const *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltCurrentBatchOplock(oplock: *const *const core::ffi::c_void) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltCurrentBatchOplock(oplock : *const *const core::ffi::c_void) -> bool); FltCurrentBatchOplock(core::mem::transmute(oplock)) } #[inline] -pub unsafe fn FltCurrentOplock(oplock: *const *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltCurrentOplock(oplock : *const *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltCurrentOplock(oplock: *const *const core::ffi::c_void) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltCurrentOplock(oplock : *const *const core::ffi::c_void) -> bool); FltCurrentOplock(core::mem::transmute(oplock)) } #[inline] -pub unsafe fn FltCurrentOplockH(oplock: *const *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltCurrentOplockH(oplock : *const *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltCurrentOplockH(oplock: *const *const core::ffi::c_void) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltCurrentOplockH(oplock : *const *const core::ffi::c_void) -> bool); FltCurrentOplockH(core::mem::transmute(oplock)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -503,8 +503,8 @@ pub unsafe fn FltDeviceIoControlFile(instance: PFLT_INSTANCE, fileobject: *const } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltDoCompletionProcessingWhenSafe(data: *const FLT_CALLBACK_DATA, fltobjects: *const FLT_RELATED_OBJECTS, completioncontext: Option<*const core::ffi::c_void>, flags: u32, safepostcallback: PFLT_POST_OPERATION_CALLBACK, retpostoperationstatus: *mut FLT_POSTOP_CALLBACK_STATUS) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltDoCompletionProcessingWhenSafe(data : *const FLT_CALLBACK_DATA, fltobjects : *const FLT_RELATED_OBJECTS, completioncontext : *const core::ffi::c_void, flags : u32, safepostcallback : PFLT_POST_OPERATION_CALLBACK, retpostoperationstatus : *mut FLT_POSTOP_CALLBACK_STATUS) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltDoCompletionProcessingWhenSafe(data: *const FLT_CALLBACK_DATA, fltobjects: *const FLT_RELATED_OBJECTS, completioncontext: Option<*const core::ffi::c_void>, flags: u32, safepostcallback: PFLT_POST_OPERATION_CALLBACK, retpostoperationstatus: *mut FLT_POSTOP_CALLBACK_STATUS) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltDoCompletionProcessingWhenSafe(data : *const FLT_CALLBACK_DATA, fltobjects : *const FLT_RELATED_OBJECTS, completioncontext : *const core::ffi::c_void, flags : u32, safepostcallback : PFLT_POST_OPERATION_CALLBACK, retpostoperationstatus : *mut FLT_POSTOP_CALLBACK_STATUS) -> bool); FltDoCompletionProcessingWhenSafe(core::mem::transmute(data), core::mem::transmute(fltobjects), core::mem::transmute(completioncontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(flags), core::mem::transmute(safepostcallback), core::mem::transmute(retpostoperationstatus)) } #[cfg(feature = "Wdk_Foundation")] @@ -566,26 +566,26 @@ pub unsafe fn FltEnumerateVolumes(filter: PFLT_FILTER, volumelist: Option<&mut [ } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltFastIoMdlRead(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::super::Foundation::MDL, iostatus: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlRead(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::super::Foundation:: MDL, iostatus : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltFastIoMdlRead(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::super::Foundation::MDL, iostatus: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlRead(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::super::Foundation:: MDL, iostatus : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> bool); FltFastIoMdlRead(core::mem::transmute(initiatinginstance), core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(lockkey), core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltFastIoMdlReadComplete(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, mdlchain: *const super::super::super::Foundation::MDL) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlReadComplete(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::super::Foundation:: MDL) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltFastIoMdlReadComplete(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, mdlchain: *const super::super::super::Foundation::MDL) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlReadComplete(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::super::Foundation:: MDL) -> bool); FltFastIoMdlReadComplete(core::mem::transmute(initiatinginstance), core::mem::transmute(fileobject), core::mem::transmute(mdlchain)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltFastIoMdlWriteComplete(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, mdlchain: *const super::super::super::Foundation::MDL) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlWriteComplete(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::super::Foundation:: MDL) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltFastIoMdlWriteComplete(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, mdlchain: *const super::super::super::Foundation::MDL) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltFastIoMdlWriteComplete(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::super::Foundation:: MDL) -> bool); FltFastIoMdlWriteComplete(core::mem::transmute(initiatinginstance), core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(mdlchain)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltFastIoPrepareMdlWrite(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::super::Foundation::MDL, iostatus: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltFastIoPrepareMdlWrite(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::super::Foundation:: MDL, iostatus : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltFastIoPrepareMdlWrite(initiatinginstance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::super::Foundation::MDL, iostatus: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltFastIoPrepareMdlWrite(initiatinginstance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::super::Foundation:: MDL, iostatus : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> bool); FltFastIoPrepareMdlWrite(core::mem::transmute(initiatinginstance), core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(lockkey), core::mem::transmute(mdlchain), core::mem::transmute(iostatus)) } #[cfg(feature = "Wdk_Foundation")] @@ -983,69 +983,69 @@ pub unsafe fn FltInsertExtraCreateParameter(filter: PFLT_FILTER, ecplist: *mut s } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltIs32bitProcess(callbackdata: Option<*const FLT_CALLBACK_DATA>) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltIs32bitProcess(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltIs32bitProcess(callbackdata: Option<*const FLT_CALLBACK_DATA>) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltIs32bitProcess(callbackdata : *const FLT_CALLBACK_DATA) -> bool); FltIs32bitProcess(core::mem::transmute(callbackdata.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltIsCallbackDataDirty(data: *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltIsCallbackDataDirty(data : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltIsCallbackDataDirty(data: *const FLT_CALLBACK_DATA) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltIsCallbackDataDirty(data : *const FLT_CALLBACK_DATA) -> bool); FltIsCallbackDataDirty(core::mem::transmute(data)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltIsDirectory(fileobject: *const super::super::super::Foundation::FILE_OBJECT, instance: PFLT_INSTANCE, isdirectory: *mut super::super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("fltmgr.sys" "system" fn FltIsDirectory(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, instance : PFLT_INSTANCE, isdirectory : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn FltIsDirectory(fileobject: *const super::super::super::Foundation::FILE_OBJECT, instance: PFLT_INSTANCE, isdirectory: *mut bool) -> super::super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("fltmgr.sys" "system" fn FltIsDirectory(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, instance : PFLT_INSTANCE, isdirectory : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); FltIsDirectory(core::mem::transmute(fileobject), core::mem::transmute(instance), core::mem::transmute(isdirectory)) } #[inline] -pub unsafe fn FltIsEcpAcknowledged(filter: PFLT_FILTER, ecpcontext: *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltIsEcpAcknowledged(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltIsEcpAcknowledged(filter: PFLT_FILTER, ecpcontext: *const core::ffi::c_void) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltIsEcpAcknowledged(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void) -> bool); FltIsEcpAcknowledged(core::mem::transmute(filter), core::mem::transmute(ecpcontext)) } #[inline] -pub unsafe fn FltIsEcpFromUserMode(filter: PFLT_FILTER, ecpcontext: *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltIsEcpFromUserMode(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltIsEcpFromUserMode(filter: PFLT_FILTER, ecpcontext: *const core::ffi::c_void) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltIsEcpFromUserMode(filter : PFLT_FILTER, ecpcontext : *const core::ffi::c_void) -> bool); FltIsEcpFromUserMode(core::mem::transmute(filter), core::mem::transmute(ecpcontext)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltIsFltMgrVolumeDeviceObject(deviceobject: *const super::super::super::Foundation::DEVICE_OBJECT) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltIsFltMgrVolumeDeviceObject(deviceobject : *const super::super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltIsFltMgrVolumeDeviceObject(deviceobject: *const super::super::super::Foundation::DEVICE_OBJECT) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltIsFltMgrVolumeDeviceObject(deviceobject : *const super::super::super::Foundation:: DEVICE_OBJECT) -> bool); FltIsFltMgrVolumeDeviceObject(core::mem::transmute(deviceobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltIsIoCanceled(callbackdata: *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltIsIoCanceled(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltIsIoCanceled(callbackdata: *const FLT_CALLBACK_DATA) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltIsIoCanceled(callbackdata : *const FLT_CALLBACK_DATA) -> bool); FltIsIoCanceled(core::mem::transmute(callbackdata)) } #[inline] -pub unsafe fn FltIsIoRedirectionAllowed(sourceinstance: PFLT_INSTANCE, targetinstance: PFLT_INSTANCE, redirectionallowed: *mut super::super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("fltmgr.sys" "system" fn FltIsIoRedirectionAllowed(sourceinstance : PFLT_INSTANCE, targetinstance : PFLT_INSTANCE, redirectionallowed : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn FltIsIoRedirectionAllowed(sourceinstance: PFLT_INSTANCE, targetinstance: PFLT_INSTANCE, redirectionallowed: *mut bool) -> super::super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("fltmgr.sys" "system" fn FltIsIoRedirectionAllowed(sourceinstance : PFLT_INSTANCE, targetinstance : PFLT_INSTANCE, redirectionallowed : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); FltIsIoRedirectionAllowed(core::mem::transmute(sourceinstance), core::mem::transmute(targetinstance), core::mem::transmute(redirectionallowed)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltIsIoRedirectionAllowedForOperation(data: *const FLT_CALLBACK_DATA, targetinstance: PFLT_INSTANCE, redirectionallowedthisio: *mut super::super::super::super::Win32::Foundation::BOOLEAN, redirectionallowedallio: Option<*mut super::super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("fltmgr.sys" "system" fn FltIsIoRedirectionAllowedForOperation(data : *const FLT_CALLBACK_DATA, targetinstance : PFLT_INSTANCE, redirectionallowedthisio : *mut super::super::super::super::Win32::Foundation:: BOOLEAN, redirectionallowedallio : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn FltIsIoRedirectionAllowedForOperation(data: *const FLT_CALLBACK_DATA, targetinstance: PFLT_INSTANCE, redirectionallowedthisio: *mut bool, redirectionallowedallio: Option<*mut bool>) -> super::super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("fltmgr.sys" "system" fn FltIsIoRedirectionAllowedForOperation(data : *const FLT_CALLBACK_DATA, targetinstance : PFLT_INSTANCE, redirectionallowedthisio : *mut bool, redirectionallowedallio : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); FltIsIoRedirectionAllowedForOperation(core::mem::transmute(data), core::mem::transmute(targetinstance), core::mem::transmute(redirectionallowedthisio), core::mem::transmute(redirectionallowedallio.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltIsOperationSynchronous(callbackdata: *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltIsOperationSynchronous(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltIsOperationSynchronous(callbackdata: *const FLT_CALLBACK_DATA) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltIsOperationSynchronous(callbackdata : *const FLT_CALLBACK_DATA) -> bool); FltIsOperationSynchronous(core::mem::transmute(callbackdata)) } #[inline] -pub unsafe fn FltIsVolumeSnapshot(fltobject: *const core::ffi::c_void, issnapshotvolume: *mut super::super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("fltmgr.sys" "system" fn FltIsVolumeSnapshot(fltobject : *const core::ffi::c_void, issnapshotvolume : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn FltIsVolumeSnapshot(fltobject: *const core::ffi::c_void, issnapshotvolume: *mut bool) -> super::super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("fltmgr.sys" "system" fn FltIsVolumeSnapshot(fltobject : *const core::ffi::c_void, issnapshotvolume : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); FltIsVolumeSnapshot(core::mem::transmute(fltobject), core::mem::transmute(issnapshotvolume)) } #[inline] -pub unsafe fn FltIsVolumeWritable(fltobject: *const core::ffi::c_void, iswritable: *mut super::super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("fltmgr.sys" "system" fn FltIsVolumeWritable(fltobject : *const core::ffi::c_void, iswritable : *mut super::super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn FltIsVolumeWritable(fltobject: *const core::ffi::c_void, iswritable: *mut bool) -> super::super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("fltmgr.sys" "system" fn FltIsVolumeWritable(fltobject : *const core::ffi::c_void, iswritable : *mut bool) -> super::super::super::super::Win32::Foundation:: NTSTATUS); FltIsVolumeWritable(core::mem::transmute(fltobject), core::mem::transmute(iswritable)) } #[inline] @@ -1062,8 +1062,20 @@ pub unsafe fn FltLockUserBuffer(callbackdata: *const FLT_CALLBACK_DATA) -> super #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltNotifyFilterChangeDirectory(notifysync: super::super::super::Foundation::PNOTIFY_SYNC, notifylist: *mut super::super::super::super::Win32::System::Kernel::LIST_ENTRY, fscontext: *const core::ffi::c_void, fulldirectoryname: *const super::super::super::super::Win32::System::Kernel::STRING, watchtree: bool, ignorebuffer: bool, completionfilter: u32, notifycallbackdata: *const FLT_CALLBACK_DATA, traversecallback: Option, subjectcontext: Option<*const super::super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, filtercallback: Option) { - windows_targets::link!("fltmgr.sys" "system" fn FltNotifyFilterChangeDirectory(notifysync : super::super::super::Foundation:: PNOTIFY_SYNC, notifylist : *mut super::super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *const super::super::super::super::Win32::System::Kernel:: STRING, watchtree : super::super::super::super::Win32::Foundation:: BOOLEAN, ignorebuffer : super::super::super::super::Win32::Foundation:: BOOLEAN, completionfilter : u32, notifycallbackdata : *const FLT_CALLBACK_DATA, traversecallback : super:: PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, filtercallback : super:: PFILTER_REPORT_CHANGE)); - FltNotifyFilterChangeDirectory(core::mem::transmute(notifysync), core::mem::transmute(notifylist), core::mem::transmute(fscontext), core::mem::transmute(fulldirectoryname), watchtree.into(), ignorebuffer.into(), core::mem::transmute(completionfilter), core::mem::transmute(notifycallbackdata), core::mem::transmute(traversecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(subjectcontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(filtercallback.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("fltmgr.sys" "system" fn FltNotifyFilterChangeDirectory(notifysync : super::super::super::Foundation:: PNOTIFY_SYNC, notifylist : *mut super::super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *const super::super::super::super::Win32::System::Kernel:: STRING, watchtree : bool, ignorebuffer : bool, completionfilter : u32, notifycallbackdata : *const FLT_CALLBACK_DATA, traversecallback : super:: PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, filtercallback : super:: PFILTER_REPORT_CHANGE)); + FltNotifyFilterChangeDirectory( + core::mem::transmute(notifysync), + core::mem::transmute(notifylist), + core::mem::transmute(fscontext), + core::mem::transmute(fulldirectoryname), + core::mem::transmute(watchtree), + core::mem::transmute(ignorebuffer), + core::mem::transmute(completionfilter), + core::mem::transmute(notifycallbackdata), + core::mem::transmute(traversecallback.unwrap_or(core::mem::zeroed())), + core::mem::transmute(subjectcontext.unwrap_or(core::mem::zeroed())), + core::mem::transmute(filtercallback.unwrap_or(core::mem::zeroed())), + ) } #[inline] pub unsafe fn FltObjectDereference(fltobject: *mut core::ffi::c_void) { @@ -1112,20 +1124,20 @@ pub unsafe fn FltOplockFsctrlEx(oplock: *const *const core::ffi::c_void, callbac FltOplockFsctrlEx(core::mem::transmute(oplock), core::mem::transmute(callbackdata), core::mem::transmute(opencount), core::mem::transmute(flags)) } #[inline] -pub unsafe fn FltOplockIsFastIoPossible(oplock: *const *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltOplockIsFastIoPossible(oplock : *const *const core::ffi::c_void) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltOplockIsFastIoPossible(oplock: *const *const core::ffi::c_void) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltOplockIsFastIoPossible(oplock : *const *const core::ffi::c_void) -> bool); FltOplockIsFastIoPossible(core::mem::transmute(oplock)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltOplockIsSharedRequest(callbackdata: *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltOplockIsSharedRequest(callbackdata : *const FLT_CALLBACK_DATA) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltOplockIsSharedRequest(callbackdata: *const FLT_CALLBACK_DATA) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltOplockIsSharedRequest(callbackdata : *const FLT_CALLBACK_DATA) -> bool); FltOplockIsSharedRequest(core::mem::transmute(callbackdata)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltOplockKeysEqual(fo1: Option<*const super::super::super::Foundation::FILE_OBJECT>, fo2: Option<*const super::super::super::Foundation::FILE_OBJECT>) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltOplockKeysEqual(fo1 : *const super::super::super::Foundation:: FILE_OBJECT, fo2 : *const super::super::super::Foundation:: FILE_OBJECT) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltOplockKeysEqual(fo1: Option<*const super::super::super::Foundation::FILE_OBJECT>, fo2: Option<*const super::super::super::Foundation::FILE_OBJECT>) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltOplockKeysEqual(fo1 : *const super::super::super::Foundation:: FILE_OBJECT, fo2 : *const super::super::super::Foundation:: FILE_OBJECT) -> bool); FltOplockKeysEqual(core::mem::transmute(fo1.unwrap_or(core::mem::zeroed())), core::mem::transmute(fo2.unwrap_or(core::mem::zeroed()))) } #[inline] @@ -1194,8 +1206,8 @@ pub unsafe fn FltPurgeFileNameInformationCache(instance: PFLT_INSTANCE, fileobje #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltQueryDirectoryFile(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: super::FILE_INFORMATION_CLASS, returnsingleentry: bool, filename: Option<*const super::super::super::super::Win32::Foundation::UNICODE_STRING>, restartscan: bool, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("fltmgr.sys" "system" fn FltQueryDirectoryFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super:: FILE_INFORMATION_CLASS, returnsingleentry : super::super::super::super::Win32::Foundation:: BOOLEAN, filename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : super::super::super::super::Win32::Foundation:: BOOLEAN, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryDirectoryFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass), returnsingleentry.into(), core::mem::transmute(filename.unwrap_or(core::mem::zeroed())), restartscan.into(), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("fltmgr.sys" "system" fn FltQueryDirectoryFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : super:: FILE_INFORMATION_CLASS, returnsingleentry : bool, filename : *const super::super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : bool, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); + FltQueryDirectoryFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass), core::mem::transmute(returnsingleentry), core::mem::transmute(filename.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1206,8 +1218,8 @@ pub unsafe fn FltQueryDirectoryFileEx(instance: PFLT_INSTANCE, fileobject: *cons #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltQueryEaFile(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, returnedeadata: *mut core::ffi::c_void, length: u32, returnsingleentry: bool, ealist: Option<*const core::ffi::c_void>, ealistlength: u32, eaindex: Option<*const u32>, restartscan: bool, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("fltmgr.sys" "system" fn FltQueryEaFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, returnedeadata : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::super::Win32::Foundation:: BOOLEAN, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : super::super::super::super::Win32::Foundation:: BOOLEAN, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryEaFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(returnedeadata), core::mem::transmute(length), returnsingleentry.into(), core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealistlength), core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), restartscan.into(), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("fltmgr.sys" "system" fn FltQueryEaFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, returnedeadata : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); + FltQueryEaFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(returnedeadata), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealistlength), core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] @@ -1224,8 +1236,8 @@ pub unsafe fn FltQueryInformationFile(instance: PFLT_INSTANCE, fileobject: *cons #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FltQueryQuotaInformationFile(instance: PFLT_INSTANCE, fileobject: *const super::super::super::Foundation::FILE_OBJECT, iostatusblock: *mut super::super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, returnsingleentry: bool, sidlist: Option<*const core::ffi::c_void>, sidlistlength: u32, startsid: Option<*const u32>, restartscan: bool, lengthreturned: Option<*mut u32>) -> super::super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("fltmgr.sys" "system" fn FltQueryQuotaInformationFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, iostatusblock : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::super::Win32::Foundation:: BOOLEAN, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : *const u32, restartscan : super::super::super::super::Win32::Foundation:: BOOLEAN, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); - FltQueryQuotaInformationFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), returnsingleentry.into(), core::mem::transmute(sidlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidlistlength), core::mem::transmute(startsid.unwrap_or(core::mem::zeroed())), restartscan.into(), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("fltmgr.sys" "system" fn FltQueryQuotaInformationFile(instance : PFLT_INSTANCE, fileobject : *const super::super::super::Foundation:: FILE_OBJECT, iostatusblock : *mut super::super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : *const u32, restartscan : bool, lengthreturned : *mut u32) -> super::super::super::super::Win32::Foundation:: NTSTATUS); + FltQueryQuotaInformationFile(core::mem::transmute(instance), core::mem::transmute(fileobject), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(sidlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidlistlength), core::mem::transmute(startsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1540,26 +1552,26 @@ pub unsafe fn FltStartFiltering(filter: PFLT_FILTER) -> super::super::super::sup } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltSupportsFileContexts(fileobject: *const super::super::super::Foundation::FILE_OBJECT) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltSupportsFileContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltSupportsFileContexts(fileobject: *const super::super::super::Foundation::FILE_OBJECT) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltSupportsFileContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> bool); FltSupportsFileContexts(core::mem::transmute(fileobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltSupportsFileContextsEx(fileobject: *const super::super::super::Foundation::FILE_OBJECT, instance: Option) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltSupportsFileContextsEx(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, instance : PFLT_INSTANCE) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltSupportsFileContextsEx(fileobject: *const super::super::super::Foundation::FILE_OBJECT, instance: Option) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltSupportsFileContextsEx(fileobject : *const super::super::super::Foundation:: FILE_OBJECT, instance : PFLT_INSTANCE) -> bool); FltSupportsFileContextsEx(core::mem::transmute(fileobject), core::mem::transmute(instance.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltSupportsStreamContexts(fileobject: *const super::super::super::Foundation::FILE_OBJECT) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltSupportsStreamContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltSupportsStreamContexts(fileobject: *const super::super::super::Foundation::FILE_OBJECT) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltSupportsStreamContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> bool); FltSupportsStreamContexts(core::mem::transmute(fileobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FltSupportsStreamHandleContexts(fileobject: *const super::super::super::Foundation::FILE_OBJECT) -> super::super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("fltmgr.sys" "system" fn FltSupportsStreamHandleContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> super::super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FltSupportsStreamHandleContexts(fileobject: *const super::super::super::Foundation::FILE_OBJECT) -> bool { + windows_targets::link!("fltmgr.sys" "system" fn FltSupportsStreamHandleContexts(fileobject : *const super::super::super::Foundation:: FILE_OBJECT) -> bool); FltSupportsStreamHandleContexts(core::mem::transmute(fileobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -2152,7 +2164,7 @@ pub struct FLT_PARAMETERS_25 { pub FileOffset: i64, pub Length: u32, pub LockKey: u32, - pub CheckForReadOperation: super::super::super::super::Win32::Foundation::BOOLEAN, + pub CheckForReadOperation: bool, } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] impl Default for FLT_PARAMETERS_25 { @@ -2260,8 +2272,8 @@ pub struct FLT_PARAMETERS_14 { pub Key: u32, pub ByteOffset: i64, pub ProcessId: super::super::super::Foundation::PEPROCESS, - pub FailImmediately: super::super::super::super::Win32::Foundation::BOOLEAN, - pub ExclusiveLock: super::super::super::super::Win32::Foundation::BOOLEAN, + pub FailImmediately: bool, + pub ExclusiveLock: bool, } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] impl Default for FLT_PARAMETERS_14 { @@ -2468,7 +2480,7 @@ impl Default for FLT_PARAMETERS_20_5 { #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FLT_PARAMETERS_20_6 { - pub Lock: super::super::super::super::Win32::Foundation::BOOLEAN, + pub Lock: bool, } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] impl Default for FLT_PARAMETERS_20_6 { @@ -2493,8 +2505,8 @@ impl Default for FLT_PARAMETERS_20_0 { #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FLT_PARAMETERS_20_9 { - pub InPath: super::super::super::super::Win32::Foundation::BOOLEAN, - pub Reserved: [super::super::super::super::Win32::Foundation::BOOLEAN; 3], + pub InPath: bool, + pub Reserved: [bool; 3], pub Type: super::super::super::System::SystemServices::DEVICE_USAGE_NOTIFICATION_TYPE, } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -2686,8 +2698,8 @@ impl Default for FLT_PARAMETERS_6_0 { #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FLT_PARAMETERS_6_0_0 { - pub ReplaceIfExists: super::super::super::super::Win32::Foundation::BOOLEAN, - pub AdvanceOnly: super::super::super::super::Win32::Foundation::BOOLEAN, + pub ReplaceIfExists: bool, + pub AdvanceOnly: bool, } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] impl Default for FLT_PARAMETERS_6_0_0 { @@ -3043,7 +3055,7 @@ pub type PFLT_DISCONNECT_NOTIFY = Option super::super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PFLT_GENERATE_FILE_NAME = Option super::super::super::super::Win32::Foundation::NTSTATUS>; +pub type PFLT_GENERATE_FILE_NAME = Option super::super::super::super::Win32::Foundation::NTSTATUS>; #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Default)] pub struct PFLT_GENERIC_WORKITEM(pub isize); diff --git a/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs b/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs index 85f2d63cae..ad5192beee 100644 --- a/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs @@ -7,15 +7,15 @@ pub unsafe fn ApplyControlToken(phcontext: *const SecHandle, pinput: *const SecB } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcAsyncCopyRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, ioissuerthread: super::super::Foundation::PETHREAD, asyncreadcontext: *const CC_ASYNC_READ_CONTEXT) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcAsyncCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, ioissuerthread : super::super::Foundation:: PETHREAD, asyncreadcontext : *const CC_ASYNC_READ_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcAsyncCopyRead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), wait.into(), core::mem::transmute(buffer), core::mem::transmute(iostatus), core::mem::transmute(ioissuerthread), core::mem::transmute(asyncreadcontext)) +pub unsafe fn CcAsyncCopyRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, ioissuerthread: super::super::Foundation::PETHREAD, asyncreadcontext: *const CC_ASYNC_READ_CONTEXT) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcAsyncCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, ioissuerthread : super::super::Foundation:: PETHREAD, asyncreadcontext : *const CC_ASYNC_READ_CONTEXT) -> bool); + CcAsyncCopyRead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(buffer), core::mem::transmute(iostatus), core::mem::transmute(ioissuerthread), core::mem::transmute(asyncreadcontext)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcCanIWrite(fileobject: Option<*const super::super::Foundation::FILE_OBJECT>, bytestowrite: u32, wait: bool, retrying: u8) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcCanIWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, bytestowrite : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, retrying : u8) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcCanIWrite(core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(bytestowrite), wait.into(), core::mem::transmute(retrying)) +pub unsafe fn CcCanIWrite(fileobject: Option<*const super::super::Foundation::FILE_OBJECT>, bytestowrite: u32, wait: bool, retrying: u8) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcCanIWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, bytestowrite : u32, wait : bool, retrying : u8) -> bool); + CcCanIWrite(core::mem::transmute(fileobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(bytestowrite), core::mem::transmute(wait), core::mem::transmute(retrying)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_IO"))] #[inline] @@ -25,39 +25,39 @@ pub unsafe fn CcCoherencyFlushAndPurgeCache(sectionobjectpointer: *const super:: } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcCopyRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcCopyRead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), wait.into(), core::mem::transmute(buffer), core::mem::transmute(iostatus)) +pub unsafe fn CcCopyRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> bool); + CcCopyRead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(buffer), core::mem::transmute(iostatus)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcCopyReadEx(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, ioissuerthread: super::super::Foundation::PETHREAD) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyReadEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, ioissuerthread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcCopyReadEx(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), wait.into(), core::mem::transmute(buffer), core::mem::transmute(iostatus), core::mem::transmute(ioissuerthread)) +pub unsafe fn CcCopyReadEx(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, ioissuerthread: super::super::Foundation::PETHREAD) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyReadEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, ioissuerthread : super::super::Foundation:: PETHREAD) -> bool); + CcCopyReadEx(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(buffer), core::mem::transmute(iostatus), core::mem::transmute(ioissuerthread)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcCopyWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcCopyWrite(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), wait.into(), core::mem::transmute(buffer)) +pub unsafe fn CcCopyWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *const core::ffi::c_void) -> bool); + CcCopyWrite(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(buffer)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcCopyWriteEx(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *const core::ffi::c_void, ioissuerthread: super::super::Foundation::PETHREAD) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWriteEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *const core::ffi::c_void, ioissuerthread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcCopyWriteEx(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), wait.into(), core::mem::transmute(buffer), core::mem::transmute(ioissuerthread)) +pub unsafe fn CcCopyWriteEx(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, buffer: *const core::ffi::c_void, ioissuerthread: super::super::Foundation::PETHREAD) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWriteEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, buffer : *const core::ffi::c_void, ioissuerthread : super::super::Foundation:: PETHREAD) -> bool); + CcCopyWriteEx(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(buffer), core::mem::transmute(ioissuerthread)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcCopyWriteWontFlush(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: Option<*const i64>, length: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWriteWontFlush(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn CcCopyWriteWontFlush(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: Option<*const i64>, length: u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcCopyWriteWontFlush(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32) -> bool); CcCopyWriteWontFlush(core::mem::transmute(fileobject), core::mem::transmute(fileoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(length)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcDeferWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, postroutine: PCC_POST_DEFERRED_WRITE, context1: *const core::ffi::c_void, context2: *const core::ffi::c_void, bytestowrite: u32, retrying: bool) { - windows_targets::link!("ntoskrnl.exe" "system" fn CcDeferWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, postroutine : PCC_POST_DEFERRED_WRITE, context1 : *const core::ffi::c_void, context2 : *const core::ffi::c_void, bytestowrite : u32, retrying : super::super::super::Win32::Foundation:: BOOLEAN)); - CcDeferWrite(core::mem::transmute(fileobject), core::mem::transmute(postroutine), core::mem::transmute(context1), core::mem::transmute(context2), core::mem::transmute(bytestowrite), retrying.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn CcDeferWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, postroutine : PCC_POST_DEFERRED_WRITE, context1 : *const core::ffi::c_void, context2 : *const core::ffi::c_void, bytestowrite : u32, retrying : bool)); + CcDeferWrite(core::mem::transmute(fileobject), core::mem::transmute(postroutine), core::mem::transmute(context1), core::mem::transmute(context2), core::mem::transmute(bytestowrite), core::mem::transmute(retrying)) } #[inline] pub unsafe fn CcErrorCallbackRoutine(context: *const CC_ERROR_CALLBACK_CONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -109,42 +109,42 @@ pub unsafe fn CcGetFileObjectFromSectionPtrsRef(sectionobjectpointer: *const sup #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn CcGetFlushedValidData(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, bcblistheld: bool) -> i64 { - windows_targets::link!("ntoskrnl.exe" "system" fn CcGetFlushedValidData(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, bcblistheld : super::super::super::Win32::Foundation:: BOOLEAN) -> i64); - CcGetFlushedValidData(core::mem::transmute(sectionobjectpointer), bcblistheld.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn CcGetFlushedValidData(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, bcblistheld : bool) -> i64); + CcGetFlushedValidData(core::mem::transmute(sectionobjectpointer), core::mem::transmute(bcblistheld)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcInitializeCacheMap(fileobject: *const super::super::Foundation::FILE_OBJECT, filesizes: *const CC_FILE_SIZES, pinaccess: bool, callbacks: *const CACHE_MANAGER_CALLBACKS, lazywritecontext: *const core::ffi::c_void) { - windows_targets::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMap(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : super::super::super::Win32::Foundation:: BOOLEAN, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void)); - CcInitializeCacheMap(core::mem::transmute(fileobject), core::mem::transmute(filesizes), pinaccess.into(), core::mem::transmute(callbacks), core::mem::transmute(lazywritecontext)) + windows_targets::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMap(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : bool, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void)); + CcInitializeCacheMap(core::mem::transmute(fileobject), core::mem::transmute(filesizes), core::mem::transmute(pinaccess), core::mem::transmute(callbacks), core::mem::transmute(lazywritecontext)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcInitializeCacheMapEx(fileobject: *const super::super::Foundation::FILE_OBJECT, filesizes: *const CC_FILE_SIZES, pinaccess: bool, callbacks: *const CACHE_MANAGER_CALLBACKS, lazywritecontext: *const core::ffi::c_void, flags: u32) { - windows_targets::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMapEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : super::super::super::Win32::Foundation:: BOOLEAN, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void, flags : u32)); - CcInitializeCacheMapEx(core::mem::transmute(fileobject), core::mem::transmute(filesizes), pinaccess.into(), core::mem::transmute(callbacks), core::mem::transmute(lazywritecontext), core::mem::transmute(flags)) + windows_targets::link!("ntoskrnl.exe" "system" fn CcInitializeCacheMapEx(fileobject : *const super::super::Foundation:: FILE_OBJECT, filesizes : *const CC_FILE_SIZES, pinaccess : bool, callbacks : *const CACHE_MANAGER_CALLBACKS, lazywritecontext : *const core::ffi::c_void, flags : u32)); + CcInitializeCacheMapEx(core::mem::transmute(fileobject), core::mem::transmute(filesizes), core::mem::transmute(pinaccess), core::mem::transmute(callbacks), core::mem::transmute(lazywritecontext), core::mem::transmute(flags)) } #[inline] -pub unsafe fn CcIsCacheManagerCallbackNeeded(status: super::super::super::Win32::Foundation::NTSTATUS) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcIsCacheManagerCallbackNeeded(status : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn CcIsCacheManagerCallbackNeeded(status: super::super::super::Win32::Foundation::NTSTATUS) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcIsCacheManagerCallbackNeeded(status : super::super::super::Win32::Foundation:: NTSTATUS) -> bool); CcIsCacheManagerCallbackNeeded(core::mem::transmute(status)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcIsThereDirtyData(vpb: *const super::super::Foundation::VPB) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcIsThereDirtyData(vpb : *const super::super::Foundation:: VPB) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn CcIsThereDirtyData(vpb: *const super::super::Foundation::VPB) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcIsThereDirtyData(vpb : *const super::super::Foundation:: VPB) -> bool); CcIsThereDirtyData(core::mem::transmute(vpb)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcIsThereDirtyDataEx(vpb: *const super::super::Foundation::VPB, numberofdirtypages: Option<*const u32>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcIsThereDirtyDataEx(vpb : *const super::super::Foundation:: VPB, numberofdirtypages : *const u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn CcIsThereDirtyDataEx(vpb: *const super::super::Foundation::VPB, numberofdirtypages: Option<*const u32>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcIsThereDirtyDataEx(vpb : *const super::super::Foundation:: VPB, numberofdirtypages : *const u32) -> bool); CcIsThereDirtyDataEx(core::mem::transmute(vpb), core::mem::transmute(numberofdirtypages.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcMapData(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, flags: u32, bcb: *mut *mut core::ffi::c_void, buffer: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcMapData(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn CcMapData(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, flags: u32, bcb: *mut *mut core::ffi::c_void, buffer: *mut *mut core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcMapData(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> bool); CcMapData(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(flags), core::mem::transmute(bcb), core::mem::transmute(buffer)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -173,14 +173,14 @@ pub unsafe fn CcMdlWriteComplete(fileobject: *const super::super::Foundation::FI } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcPinMappedData(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, flags: u32, bcb: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcPinMappedData(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn CcPinMappedData(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, flags: u32, bcb: *mut *mut core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcPinMappedData(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void) -> bool); CcPinMappedData(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(flags), core::mem::transmute(bcb)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcPinRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, flags: u32, bcb: *mut *mut core::ffi::c_void, buffer: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcPinRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn CcPinRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, flags: u32, bcb: *mut *mut core::ffi::c_void, buffer: *mut *mut core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcPinRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> bool); CcPinRead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(flags), core::mem::transmute(bcb), core::mem::transmute(buffer)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -191,14 +191,14 @@ pub unsafe fn CcPrepareMdlWrite(fileobject: *const super::super::Foundation::FIL } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcPreparePinWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, zero: bool, flags: u32, bcb: *mut *mut core::ffi::c_void, buffer: *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcPreparePinWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, zero : super::super::super::Win32::Foundation:: BOOLEAN, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcPreparePinWrite(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), zero.into(), core::mem::transmute(flags), core::mem::transmute(bcb), core::mem::transmute(buffer)) +pub unsafe fn CcPreparePinWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, zero: bool, flags: u32, bcb: *mut *mut core::ffi::c_void, buffer: *mut *mut core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcPreparePinWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, zero : bool, flags : u32, bcb : *mut *mut core::ffi::c_void, buffer : *mut *mut core::ffi::c_void) -> bool); + CcPreparePinWrite(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(zero), core::mem::transmute(flags), core::mem::transmute(bcb), core::mem::transmute(buffer)) } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn CcPurgeCacheSection(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, fileoffset: Option<*const i64>, length: u32, flags: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcPurgeCacheSection(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, fileoffset : *const i64, length : u32, flags : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn CcPurgeCacheSection(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, fileoffset: Option<*const i64>, length: u32, flags: u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcPurgeCacheSection(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, fileoffset : *const i64, length : u32, flags : u32) -> bool); CcPurgeCacheSection(core::mem::transmute(sectionobjectpointer), core::mem::transmute(fileoffset.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(flags)) } #[inline] @@ -226,8 +226,8 @@ pub unsafe fn CcScheduleReadAheadEx(fileobject: *const super::super::Foundation: #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcSetAdditionalCacheAttributes(fileobject: *const super::super::Foundation::FILE_OBJECT, disablereadahead: bool, disablewritebehind: bool) { - windows_targets::link!("ntoskrnl.exe" "system" fn CcSetAdditionalCacheAttributes(fileobject : *const super::super::Foundation:: FILE_OBJECT, disablereadahead : super::super::super::Win32::Foundation:: BOOLEAN, disablewritebehind : super::super::super::Win32::Foundation:: BOOLEAN)); - CcSetAdditionalCacheAttributes(core::mem::transmute(fileobject), disablereadahead.into(), disablewritebehind.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn CcSetAdditionalCacheAttributes(fileobject : *const super::super::Foundation:: FILE_OBJECT, disablereadahead : bool, disablewritebehind : bool)); + CcSetAdditionalCacheAttributes(core::mem::transmute(fileobject), core::mem::transmute(disablereadahead), core::mem::transmute(disablewritebehind)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -272,8 +272,8 @@ pub unsafe fn CcSetLogHandleForFile(fileobject: *const super::super::Foundation: #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn CcSetParallelFlushFile(fileobject: *const super::super::Foundation::FILE_OBJECT, enableparallelflush: bool) { - windows_targets::link!("ntoskrnl.exe" "system" fn CcSetParallelFlushFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, enableparallelflush : super::super::super::Win32::Foundation:: BOOLEAN)); - CcSetParallelFlushFile(core::mem::transmute(fileobject), enableparallelflush.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn CcSetParallelFlushFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, enableparallelflush : bool)); + CcSetParallelFlushFile(core::mem::transmute(fileobject), core::mem::transmute(enableparallelflush)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -283,8 +283,8 @@ pub unsafe fn CcSetReadAheadGranularity(fileobject: *const super::super::Foundat } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcUninitializeCacheMap(fileobject: *const super::super::Foundation::FILE_OBJECT, truncatesize: Option<*const i64>, uninitializeevent: Option<*const CACHE_UNINITIALIZE_EVENT>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcUninitializeCacheMap(fileobject : *const super::super::Foundation:: FILE_OBJECT, truncatesize : *const i64, uninitializeevent : *const CACHE_UNINITIALIZE_EVENT) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn CcUninitializeCacheMap(fileobject: *const super::super::Foundation::FILE_OBJECT, truncatesize: Option<*const i64>, uninitializeevent: Option<*const CACHE_UNINITIALIZE_EVENT>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcUninitializeCacheMap(fileobject : *const super::super::Foundation:: FILE_OBJECT, truncatesize : *const i64, uninitializeevent : *const CACHE_UNINITIALIZE_EVENT) -> bool); CcUninitializeCacheMap(core::mem::transmute(fileobject), core::mem::transmute(truncatesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(uninitializeevent.unwrap_or(core::mem::zeroed()))) } #[inline] @@ -300,9 +300,9 @@ pub unsafe fn CcUnpinDataForThread(bcb: *const core::ffi::c_void, resourcethread #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CcUnpinRepinnedBcb(bcb: *const core::ffi::c_void, writethrough: bool) -> super::super::super::Win32::System::IO::IO_STATUS_BLOCK { - windows_targets::link!("ntoskrnl.exe" "system" fn CcUnpinRepinnedBcb(bcb : *const core::ffi::c_void, writethrough : super::super::super::Win32::Foundation:: BOOLEAN, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK)); + windows_targets::link!("ntoskrnl.exe" "system" fn CcUnpinRepinnedBcb(bcb : *const core::ffi::c_void, writethrough : bool, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK)); let mut result__ = core::mem::zeroed(); - CcUnpinRepinnedBcb(core::mem::transmute(bcb), writethrough.into(), &mut result__); + CcUnpinRepinnedBcb(core::mem::transmute(bcb), core::mem::transmute(writethrough), &mut result__); result__ } #[inline] @@ -312,9 +312,9 @@ pub unsafe fn CcWaitForCurrentLazyWriterActivity() -> super::super::super::Win32 } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn CcZeroData(fileobject: *const super::super::Foundation::FILE_OBJECT, startoffset: *const i64, endoffset: *const i64, wait: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn CcZeroData(fileobject : *const super::super::Foundation:: FILE_OBJECT, startoffset : *const i64, endoffset : *const i64, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - CcZeroData(core::mem::transmute(fileobject), core::mem::transmute(startoffset), core::mem::transmute(endoffset), wait.into()) +pub unsafe fn CcZeroData(fileobject: *const super::super::Foundation::FILE_OBJECT, startoffset: *const i64, endoffset: *const i64, wait: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn CcZeroData(fileobject : *const super::super::Foundation:: FILE_OBJECT, startoffset : *const i64, endoffset : *const i64, wait : bool) -> bool); + CcZeroData(core::mem::transmute(fileobject), core::mem::transmute(startoffset), core::mem::transmute(endoffset), core::mem::transmute(wait)) } #[inline] pub unsafe fn CompleteAuthToken(phcontext: *const SecHandle, ptoken: *const SecBufferDesc) -> windows_core::Result<()> { @@ -328,8 +328,8 @@ pub unsafe fn ExDisableResourceBoostLite(resource: *const super::super::Foundati ExDisableResourceBoostLite(core::mem::transmute(resource)) } #[inline] -pub unsafe fn ExQueryPoolBlockSize(poolblock: *const core::ffi::c_void, quotacharged: *mut super::super::super::Win32::Foundation::BOOLEAN) -> usize { - windows_targets::link!("ntoskrnl.exe" "system" fn ExQueryPoolBlockSize(poolblock : *const core::ffi::c_void, quotacharged : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> usize); +pub unsafe fn ExQueryPoolBlockSize(poolblock: *const core::ffi::c_void, quotacharged: *mut bool) -> usize { + windows_targets::link!("ntoskrnl.exe" "system" fn ExQueryPoolBlockSize(poolblock : *const core::ffi::c_void, quotacharged : *mut bool) -> usize); ExQueryPoolBlockSize(core::mem::transmute(poolblock), core::mem::transmute(quotacharged)) } #[inline] @@ -349,8 +349,8 @@ pub unsafe fn FsRtlAcquireFileExclusive(fileobject: *const super::super::Foundat FsRtlAcquireFileExclusive(core::mem::transmute(fileobject)) } #[inline] -pub unsafe fn FsRtlAddBaseMcbEntry(mcb: *mut BASE_MCB, vbn: i64, lbn: i64, sectorcount: i64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddBaseMcbEntry(mcb : *mut BASE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlAddBaseMcbEntry(mcb: *mut BASE_MCB, vbn: i64, lbn: i64, sectorcount: i64) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddBaseMcbEntry(mcb : *mut BASE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> bool); FsRtlAddBaseMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) } #[inline] @@ -360,21 +360,21 @@ pub unsafe fn FsRtlAddBaseMcbEntryEx(mcb: *mut BASE_MCB, vbn: i64, lbn: i64, sec } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn FsRtlAddLargeMcbEntry(mcb: *mut LARGE_MCB, vbn: i64, lbn: i64, sectorcount: i64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddLargeMcbEntry(mcb : *mut LARGE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlAddLargeMcbEntry(mcb: *mut LARGE_MCB, vbn: i64, lbn: i64, sectorcount: i64) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddLargeMcbEntry(mcb : *mut LARGE_MCB, vbn : i64, lbn : i64, sectorcount : i64) -> bool); FsRtlAddLargeMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn FsRtlAddMcbEntry(mcb: *mut MCB, vbn: u32, lbn: u32, sectorcount: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddMcbEntry(mcb : *mut MCB, vbn : u32, lbn : u32, sectorcount : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlAddMcbEntry(mcb: *mut MCB, vbn: u32, lbn: u32, sectorcount: u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddMcbEntry(mcb : *mut MCB, vbn : u32, lbn : u32, sectorcount : u32) -> bool); FsRtlAddMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlAddToTunnelCache(cache: *mut TUNNEL, directorykey: u64, shortname: *const super::super::super::Win32::Foundation::UNICODE_STRING, longname: *const super::super::super::Win32::Foundation::UNICODE_STRING, keybyshortname: bool, datalength: u32, data: *const core::ffi::c_void) { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddToTunnelCache(cache : *mut TUNNEL, directorykey : u64, shortname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, keybyshortname : super::super::super::Win32::Foundation:: BOOLEAN, datalength : u32, data : *const core::ffi::c_void)); - FsRtlAddToTunnelCache(core::mem::transmute(cache), core::mem::transmute(directorykey), core::mem::transmute(shortname), core::mem::transmute(longname), keybyshortname.into(), core::mem::transmute(datalength), core::mem::transmute(data)) + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAddToTunnelCache(cache : *mut TUNNEL, directorykey : u64, shortname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, keybyshortname : bool, datalength : u32, data : *const core::ffi::c_void)); + FsRtlAddToTunnelCache(core::mem::transmute(cache), core::mem::transmute(directorykey), core::mem::transmute(shortname), core::mem::transmute(longname), core::mem::transmute(keybyshortname), core::mem::transmute(datalength), core::mem::transmute(data)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -417,25 +417,25 @@ pub unsafe fn FsRtlAllocateResource() -> *mut super::super::Foundation::ERESOURC FsRtlAllocateResource() } #[inline] -pub unsafe fn FsRtlAreNamesEqual(constantnamea: *const super::super::super::Win32::Foundation::UNICODE_STRING, constantnameb: *const super::super::super::Win32::Foundation::UNICODE_STRING, ignorecase: bool, upcasetable: Option<*const u16>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreNamesEqual(constantnamea : *const super::super::super::Win32::Foundation:: UNICODE_STRING, constantnameb : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : super::super::super::Win32::Foundation:: BOOLEAN, upcasetable : *const u16) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlAreNamesEqual(core::mem::transmute(constantnamea), core::mem::transmute(constantnameb), ignorecase.into(), core::mem::transmute(upcasetable.unwrap_or(core::mem::zeroed()))) +pub unsafe fn FsRtlAreNamesEqual(constantnamea: *const super::super::super::Win32::Foundation::UNICODE_STRING, constantnameb: *const super::super::super::Win32::Foundation::UNICODE_STRING, ignorecase: bool, upcasetable: Option<*const u16>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreNamesEqual(constantnamea : *const super::super::super::Win32::Foundation:: UNICODE_STRING, constantnameb : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : bool, upcasetable : *const u16) -> bool); + FsRtlAreNamesEqual(core::mem::transmute(constantnamea), core::mem::transmute(constantnameb), core::mem::transmute(ignorecase), core::mem::transmute(upcasetable.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlAreThereCurrentOrInProgressFileLocks(filelock: *const FILE_LOCK) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreThereCurrentOrInProgressFileLocks(filelock : *const FILE_LOCK) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlAreThereCurrentOrInProgressFileLocks(filelock: *const FILE_LOCK) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreThereCurrentOrInProgressFileLocks(filelock : *const FILE_LOCK) -> bool); FsRtlAreThereCurrentOrInProgressFileLocks(core::mem::transmute(filelock)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlAreThereWaitingFileLocks(filelock: *const FILE_LOCK) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreThereWaitingFileLocks(filelock : *const FILE_LOCK) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlAreThereWaitingFileLocks(filelock: *const FILE_LOCK) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreThereWaitingFileLocks(filelock : *const FILE_LOCK) -> bool); FsRtlAreThereWaitingFileLocks(core::mem::transmute(filelock)) } #[inline] -pub unsafe fn FsRtlAreVolumeStartupApplicationsComplete() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreVolumeStartupApplicationsComplete() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlAreVolumeStartupApplicationsComplete() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlAreVolumeStartupApplicationsComplete() -> bool); FsRtlAreVolumeStartupApplicationsComplete() } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -464,20 +464,20 @@ pub unsafe fn FsRtlChangeBackingFileObject(currentfileobject: Option<*const supe } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlCheckLockForOplockRequest(filelock: *const FILE_LOCK, allocationsize: *const i64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForOplockRequest(filelock : *const FILE_LOCK, allocationsize : *const i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlCheckLockForOplockRequest(filelock: *const FILE_LOCK, allocationsize: *const i64) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForOplockRequest(filelock : *const FILE_LOCK, allocationsize : *const i64) -> bool); FsRtlCheckLockForOplockRequest(core::mem::transmute(filelock), core::mem::transmute(allocationsize)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlCheckLockForReadAccess(filelock: *const FILE_LOCK, irp: *const super::super::Foundation::IRP) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForReadAccess(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlCheckLockForReadAccess(filelock: *const FILE_LOCK, irp: *const super::super::Foundation::IRP) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForReadAccess(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP) -> bool); FsRtlCheckLockForReadAccess(core::mem::transmute(filelock), core::mem::transmute(irp)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlCheckLockForWriteAccess(filelock: *const FILE_LOCK, irp: *const super::super::Foundation::IRP) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForWriteAccess(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlCheckLockForWriteAccess(filelock: *const FILE_LOCK, irp: *const super::super::Foundation::IRP) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCheckLockForWriteAccess(filelock : *const FILE_LOCK, irp : *const super::super::Foundation:: IRP) -> bool); FsRtlCheckLockForWriteAccess(core::mem::transmute(filelock), core::mem::transmute(irp)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -517,15 +517,15 @@ pub unsafe fn FsRtlCheckUpperOplock(oplock: *const *const core::ffi::c_void, new } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlCopyRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, lockkey: u32, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, lockkey : u32, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlCopyRead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), wait.into(), core::mem::transmute(lockkey), core::mem::transmute(buffer), core::mem::transmute(iostatus), core::mem::transmute(deviceobject)) +pub unsafe fn FsRtlCopyRead(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, lockkey: u32, buffer: *mut core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCopyRead(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, lockkey : u32, buffer : *mut core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); + FsRtlCopyRead(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(lockkey), core::mem::transmute(buffer), core::mem::transmute(iostatus), core::mem::transmute(deviceobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlCopyWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, lockkey: u32, buffer: *const core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : super::super::super::Win32::Foundation:: BOOLEAN, lockkey : u32, buffer : *const core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlCopyWrite(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), wait.into(), core::mem::transmute(lockkey), core::mem::transmute(buffer), core::mem::transmute(iostatus), core::mem::transmute(deviceobject)) +pub unsafe fn FsRtlCopyWrite(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, wait: bool, lockkey: u32, buffer: *const core::ffi::c_void, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCopyWrite(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, wait : bool, lockkey : u32, buffer : *const core::ffi::c_void, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); + FsRtlCopyWrite(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(wait), core::mem::transmute(lockkey), core::mem::transmute(buffer), core::mem::transmute(iostatus), core::mem::transmute(deviceobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -534,18 +534,18 @@ pub unsafe fn FsRtlCreateSectionForDataScan(sectionhandle: *mut super::super::su FsRtlCreateSectionForDataScan(core::mem::transmute(sectionhandle), core::mem::transmute(sectionobject), core::mem::transmute(sectionfilesize.unwrap_or(core::mem::zeroed())), core::mem::transmute(fileobject), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(maximumsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectionpageprotection), core::mem::transmute(allocationattributes), core::mem::transmute(flags)) } #[inline] -pub unsafe fn FsRtlCurrentBatchOplock(oplock: *const *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentBatchOplock(oplock : *const *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlCurrentBatchOplock(oplock: *const *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentBatchOplock(oplock : *const *const core::ffi::c_void) -> bool); FsRtlCurrentBatchOplock(core::mem::transmute(oplock)) } #[inline] -pub unsafe fn FsRtlCurrentOplock(oplock: *const *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentOplock(oplock : *const *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlCurrentOplock(oplock: *const *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentOplock(oplock : *const *const core::ffi::c_void) -> bool); FsRtlCurrentOplock(core::mem::transmute(oplock)) } #[inline] -pub unsafe fn FsRtlCurrentOplockH(oplock: *const *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentOplockH(oplock : *const *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlCurrentOplockH(oplock: *const *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlCurrentOplockH(oplock : *const *const core::ffi::c_void) -> bool); FsRtlCurrentOplockH(core::mem::transmute(oplock)) } #[inline] @@ -589,25 +589,25 @@ pub unsafe fn FsRtlDissectName(path: super::super::super::Win32::Foundation::UNI } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn FsRtlDoesDbcsContainWildCards(name: *const super::super::super::Win32::System::Kernel::STRING) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDoesDbcsContainWildCards(name : *const super::super::super::Win32::System::Kernel:: STRING) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlDoesDbcsContainWildCards(name: *const super::super::super::Win32::System::Kernel::STRING) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDoesDbcsContainWildCards(name : *const super::super::super::Win32::System::Kernel:: STRING) -> bool); FsRtlDoesDbcsContainWildCards(core::mem::transmute(name)) } #[inline] -pub unsafe fn FsRtlDoesNameContainWildCards(name: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDoesNameContainWildCards(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlDoesNameContainWildCards(name: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlDoesNameContainWildCards(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> bool); FsRtlDoesNameContainWildCards(core::mem::transmute(name)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlFastCheckLockForRead(filelock: *const FILE_LOCK, startingbyte: *const i64, length: *const i64, key: u32, fileobject: *const super::super::Foundation::FILE_OBJECT, processid: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastCheckLockForRead(filelock : *const FILE_LOCK, startingbyte : *const i64, length : *const i64, key : u32, fileobject : *const super::super::Foundation:: FILE_OBJECT, processid : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlFastCheckLockForRead(filelock: *const FILE_LOCK, startingbyte: *const i64, length: *const i64, key: u32, fileobject: *const super::super::Foundation::FILE_OBJECT, processid: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastCheckLockForRead(filelock : *const FILE_LOCK, startingbyte : *const i64, length : *const i64, key : u32, fileobject : *const super::super::Foundation:: FILE_OBJECT, processid : *const core::ffi::c_void) -> bool); FsRtlFastCheckLockForRead(core::mem::transmute(filelock), core::mem::transmute(startingbyte), core::mem::transmute(length), core::mem::transmute(key), core::mem::transmute(fileobject), core::mem::transmute(processid)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlFastCheckLockForWrite(filelock: *const FILE_LOCK, startingbyte: *const i64, length: *const i64, key: u32, fileobject: *const core::ffi::c_void, processid: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastCheckLockForWrite(filelock : *const FILE_LOCK, startingbyte : *const i64, length : *const i64, key : u32, fileobject : *const core::ffi::c_void, processid : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlFastCheckLockForWrite(filelock: *const FILE_LOCK, startingbyte: *const i64, length: *const i64, key: u32, fileobject: *const core::ffi::c_void, processid: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastCheckLockForWrite(filelock : *const FILE_LOCK, startingbyte : *const i64, length : *const i64, key : u32, fileobject : *const core::ffi::c_void, processid : *const core::ffi::c_void) -> bool); FsRtlFastCheckLockForWrite(core::mem::transmute(filelock), core::mem::transmute(startingbyte), core::mem::transmute(length), core::mem::transmute(key), core::mem::transmute(fileobject), core::mem::transmute(processid)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -625,8 +625,8 @@ pub unsafe fn FsRtlFastUnlockAllByKey(filelock: *const FILE_LOCK, fileobject: *c #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlFastUnlockSingle(filelock: *const FILE_LOCK, fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: *const i64, processid: super::super::Foundation::PEPROCESS, key: u32, context: Option<*const core::ffi::c_void>, alreadysynchronized: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastUnlockSingle(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : *const i64, processid : super::super::Foundation:: PEPROCESS, key : u32, context : *const core::ffi::c_void, alreadysynchronized : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlFastUnlockSingle(core::mem::transmute(filelock), core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(processid), core::mem::transmute(key), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), alreadysynchronized.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFastUnlockSingle(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : *const i64, processid : super::super::Foundation:: PEPROCESS, key : u32, context : *const core::ffi::c_void, alreadysynchronized : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + FsRtlFastUnlockSingle(core::mem::transmute(filelock), core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(processid), core::mem::transmute(key), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(alreadysynchronized)) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -636,14 +636,14 @@ pub unsafe fn FsRtlFindExtraCreateParameter(ecplist: *const super::super::Founda } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn FsRtlFindInTunnelCache(cache: *const TUNNEL, directorykey: u64, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, shortname: *mut super::super::super::Win32::Foundation::UNICODE_STRING, longname: *mut super::super::super::Win32::Foundation::UNICODE_STRING, datalength: *mut u32, data: *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFindInTunnelCache(cache : *const TUNNEL, directorykey : u64, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, shortname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, datalength : *mut u32, data : *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlFindInTunnelCache(cache: *const TUNNEL, directorykey: u64, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, shortname: *mut super::super::super::Win32::Foundation::UNICODE_STRING, longname: *mut super::super::super::Win32::Foundation::UNICODE_STRING, datalength: *mut u32, data: *mut core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFindInTunnelCache(cache : *const TUNNEL, directorykey : u64, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, shortname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, datalength : *mut u32, data : *mut core::ffi::c_void) -> bool); FsRtlFindInTunnelCache(core::mem::transmute(cache), core::mem::transmute(directorykey), core::mem::transmute(name), core::mem::transmute(shortname), core::mem::transmute(longname), core::mem::transmute(datalength), core::mem::transmute(data)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn FsRtlFindInTunnelCacheEx(cache: *const TUNNEL, directorykey: u64, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, shortname: *mut super::super::super::Win32::Foundation::UNICODE_STRING, longname: *mut super::super::super::Win32::Foundation::UNICODE_STRING, flags: u32, datalength: *mut u32, data: *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFindInTunnelCacheEx(cache : *const TUNNEL, directorykey : u64, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, shortname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, flags : u32, datalength : *mut u32, data : *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlFindInTunnelCacheEx(cache: *const TUNNEL, directorykey: u64, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, shortname: *mut super::super::super::Win32::Foundation::UNICODE_STRING, longname: *mut super::super::super::Win32::Foundation::UNICODE_STRING, flags: u32, datalength: *mut u32, data: *mut core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlFindInTunnelCacheEx(cache : *const TUNNEL, directorykey : u64, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, shortname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, longname : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, flags : u32, datalength : *mut u32, data : *mut core::ffi::c_void) -> bool); FsRtlFindInTunnelCacheEx(core::mem::transmute(cache), core::mem::transmute(directorykey), core::mem::transmute(name), core::mem::transmute(shortname), core::mem::transmute(longname), core::mem::transmute(flags), core::mem::transmute(datalength), core::mem::transmute(data)) } #[inline] @@ -687,8 +687,8 @@ pub unsafe fn FsRtlGetFileSize(fileobject: *const super::super::Foundation::FILE FsRtlGetFileSize(core::mem::transmute(fileobject), core::mem::transmute(filesize)) } #[inline] -pub unsafe fn FsRtlGetNextBaseMcbEntry(mcb: *const BASE_MCB, runindex: u32, vbn: *mut i64, lbn: *mut i64, sectorcount: *mut i64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextBaseMcbEntry(mcb : *const BASE_MCB, runindex : u32, vbn : *mut i64, lbn : *mut i64, sectorcount : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlGetNextBaseMcbEntry(mcb: *const BASE_MCB, runindex: u32, vbn: *mut i64, lbn: *mut i64, sectorcount: *mut i64) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextBaseMcbEntry(mcb : *const BASE_MCB, runindex : u32, vbn : *mut i64, lbn : *mut i64, sectorcount : *mut i64) -> bool); FsRtlGetNextBaseMcbEntry(core::mem::transmute(mcb), core::mem::transmute(runindex), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) } #[cfg(feature = "Wdk_Foundation")] @@ -700,19 +700,19 @@ pub unsafe fn FsRtlGetNextExtraCreateParameter(ecplist: *const super::super::Fou #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlGetNextFileLock(filelock: *const FILE_LOCK, restart: bool) -> *mut FILE_LOCK_INFO { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextFileLock(filelock : *const FILE_LOCK, restart : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut FILE_LOCK_INFO); - FsRtlGetNextFileLock(core::mem::transmute(filelock), restart.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextFileLock(filelock : *const FILE_LOCK, restart : bool) -> *mut FILE_LOCK_INFO); + FsRtlGetNextFileLock(core::mem::transmute(filelock), core::mem::transmute(restart)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn FsRtlGetNextLargeMcbEntry(mcb: *const LARGE_MCB, runindex: u32, vbn: *mut i64, lbn: *mut i64, sectorcount: *mut i64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextLargeMcbEntry(mcb : *const LARGE_MCB, runindex : u32, vbn : *mut i64, lbn : *mut i64, sectorcount : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlGetNextLargeMcbEntry(mcb: *const LARGE_MCB, runindex: u32, vbn: *mut i64, lbn: *mut i64, sectorcount: *mut i64) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextLargeMcbEntry(mcb : *const LARGE_MCB, runindex : u32, vbn : *mut i64, lbn : *mut i64, sectorcount : *mut i64) -> bool); FsRtlGetNextLargeMcbEntry(core::mem::transmute(mcb), core::mem::transmute(runindex), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn FsRtlGetNextMcbEntry(mcb: *const MCB, runindex: u32, vbn: *mut u32, lbn: *mut u32, sectorcount: *mut u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextMcbEntry(mcb : *const MCB, runindex : u32, vbn : *mut u32, lbn : *mut u32, sectorcount : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlGetNextMcbEntry(mcb: *const MCB, runindex: u32, vbn: *mut u32, lbn: *mut u32, sectorcount: *mut u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlGetNextMcbEntry(mcb : *const MCB, runindex : u32, vbn : *mut u32, lbn : *mut u32, sectorcount : *mut u32) -> bool); FsRtlGetNextMcbEntry(core::mem::transmute(mcb), core::mem::transmute(runindex), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -771,8 +771,8 @@ pub unsafe fn FsRtlInitializeBaseMcb(mcb: *mut BASE_MCB, pooltype: super::super: } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn FsRtlInitializeBaseMcbEx(mcb: *mut BASE_MCB, pooltype: super::super::Foundation::POOL_TYPE, flags: u16) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInitializeBaseMcbEx(mcb : *mut BASE_MCB, pooltype : super::super::Foundation:: POOL_TYPE, flags : u16) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlInitializeBaseMcbEx(mcb: *mut BASE_MCB, pooltype: super::super::Foundation::POOL_TYPE, flags: u16) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlInitializeBaseMcbEx(mcb : *mut BASE_MCB, pooltype : super::super::Foundation:: POOL_TYPE, flags : u16) -> bool); FsRtlInitializeBaseMcbEx(core::mem::transmute(mcb), core::mem::transmute(pooltype), core::mem::transmute(flags)) } #[cfg(feature = "Wdk_Foundation")] @@ -842,30 +842,30 @@ pub unsafe fn FsRtlInsertPerStreamContext(perstreamcontext: *const FSRTL_ADVANCE } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn FsRtlIs32BitProcess(process: super::super::Foundation::PEPROCESS) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIs32BitProcess(process : super::super::Foundation:: PEPROCESS) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlIs32BitProcess(process: super::super::Foundation::PEPROCESS) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIs32BitProcess(process : super::super::Foundation:: PEPROCESS) -> bool); FsRtlIs32BitProcess(core::mem::transmute(process)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlIsDaxVolume(fileobject: *const super::super::Foundation::FILE_OBJECT) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsDaxVolume(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlIsDaxVolume(fileobject: *const super::super::Foundation::FILE_OBJECT) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsDaxVolume(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> bool); FsRtlIsDaxVolume(core::mem::transmute(fileobject)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn FsRtlIsDbcsInExpression(expression: *const super::super::super::Win32::System::Kernel::STRING, name: *const super::super::super::Win32::System::Kernel::STRING) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsDbcsInExpression(expression : *const super::super::super::Win32::System::Kernel:: STRING, name : *const super::super::super::Win32::System::Kernel:: STRING) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlIsDbcsInExpression(expression: *const super::super::super::Win32::System::Kernel::STRING, name: *const super::super::super::Win32::System::Kernel::STRING) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsDbcsInExpression(expression : *const super::super::super::Win32::System::Kernel:: STRING, name : *const super::super::super::Win32::System::Kernel:: STRING) -> bool); FsRtlIsDbcsInExpression(core::mem::transmute(expression), core::mem::transmute(name)) } #[inline] -pub unsafe fn FsRtlIsEcpAcknowledged(ecpcontext: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsEcpAcknowledged(ecpcontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlIsEcpAcknowledged(ecpcontext: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsEcpAcknowledged(ecpcontext : *const core::ffi::c_void) -> bool); FsRtlIsEcpAcknowledged(core::mem::transmute(ecpcontext)) } #[inline] -pub unsafe fn FsRtlIsEcpFromUserMode(ecpcontext: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsEcpFromUserMode(ecpcontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlIsEcpFromUserMode(ecpcontext: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsEcpFromUserMode(ecpcontext : *const core::ffi::c_void) -> bool); FsRtlIsEcpFromUserMode(core::mem::transmute(ecpcontext)) } #[inline] @@ -875,45 +875,45 @@ pub unsafe fn FsRtlIsExtentDangling(startpage: u32, numberofpages: u32, flags: u } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn FsRtlIsFatDbcsLegal(dbcsname: super::super::super::Win32::System::Kernel::STRING, wildcardspermissible: bool, pathnamepermissible: bool, leadingbackslashpermissible: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsFatDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : super::super::super::Win32::Foundation:: BOOLEAN, pathnamepermissible : super::super::super::Win32::Foundation:: BOOLEAN, leadingbackslashpermissible : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlIsFatDbcsLegal(core::mem::transmute(dbcsname), wildcardspermissible.into(), pathnamepermissible.into(), leadingbackslashpermissible.into()) +pub unsafe fn FsRtlIsFatDbcsLegal(dbcsname: super::super::super::Win32::System::Kernel::STRING, wildcardspermissible: bool, pathnamepermissible: bool, leadingbackslashpermissible: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsFatDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : bool, pathnamepermissible : bool, leadingbackslashpermissible : bool) -> bool); + FsRtlIsFatDbcsLegal(core::mem::transmute(dbcsname), core::mem::transmute(wildcardspermissible), core::mem::transmute(pathnamepermissible), core::mem::transmute(leadingbackslashpermissible)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn FsRtlIsHpfsDbcsLegal(dbcsname: super::super::super::Win32::System::Kernel::STRING, wildcardspermissible: bool, pathnamepermissible: bool, leadingbackslashpermissible: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsHpfsDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : super::super::super::Win32::Foundation:: BOOLEAN, pathnamepermissible : super::super::super::Win32::Foundation:: BOOLEAN, leadingbackslashpermissible : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlIsHpfsDbcsLegal(core::mem::transmute(dbcsname), wildcardspermissible.into(), pathnamepermissible.into(), leadingbackslashpermissible.into()) +pub unsafe fn FsRtlIsHpfsDbcsLegal(dbcsname: super::super::super::Win32::System::Kernel::STRING, wildcardspermissible: bool, pathnamepermissible: bool, leadingbackslashpermissible: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsHpfsDbcsLegal(dbcsname : super::super::super::Win32::System::Kernel:: STRING, wildcardspermissible : bool, pathnamepermissible : bool, leadingbackslashpermissible : bool) -> bool); + FsRtlIsHpfsDbcsLegal(core::mem::transmute(dbcsname), core::mem::transmute(wildcardspermissible), core::mem::transmute(pathnamepermissible), core::mem::transmute(leadingbackslashpermissible)) } #[inline] -pub unsafe fn FsRtlIsMobileOS() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsMobileOS() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlIsMobileOS() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsMobileOS() -> bool); FsRtlIsMobileOS() } #[inline] -pub unsafe fn FsRtlIsNameInExpression(expression: *const super::super::super::Win32::Foundation::UNICODE_STRING, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, ignorecase: bool, upcasetable: P3) -> super::super::super::Win32::Foundation::BOOLEAN +pub unsafe fn FsRtlIsNameInExpression(expression: *const super::super::super::Win32::Foundation::UNICODE_STRING, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, ignorecase: bool, upcasetable: P3) -> bool where P3: windows_core::Param, { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNameInExpression(expression : *const super::super::super::Win32::Foundation:: UNICODE_STRING, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : super::super::super::Win32::Foundation:: BOOLEAN, upcasetable : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlIsNameInExpression(core::mem::transmute(expression), core::mem::transmute(name), ignorecase.into(), upcasetable.param().abi()) + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNameInExpression(expression : *const super::super::super::Win32::Foundation:: UNICODE_STRING, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : bool, upcasetable : windows_core::PCWSTR) -> bool); + FsRtlIsNameInExpression(core::mem::transmute(expression), core::mem::transmute(name), core::mem::transmute(ignorecase), upcasetable.param().abi()) } #[inline] -pub unsafe fn FsRtlIsNameInUnUpcasedExpression(expression: *const super::super::super::Win32::Foundation::UNICODE_STRING, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, ignorecase: bool, upcasetable: P3) -> super::super::super::Win32::Foundation::BOOLEAN +pub unsafe fn FsRtlIsNameInUnUpcasedExpression(expression: *const super::super::super::Win32::Foundation::UNICODE_STRING, name: *const super::super::super::Win32::Foundation::UNICODE_STRING, ignorecase: bool, upcasetable: P3) -> bool where P3: windows_core::Param, { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNameInUnUpcasedExpression(expression : *const super::super::super::Win32::Foundation:: UNICODE_STRING, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : super::super::super::Win32::Foundation:: BOOLEAN, upcasetable : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlIsNameInUnUpcasedExpression(core::mem::transmute(expression), core::mem::transmute(name), ignorecase.into(), upcasetable.param().abi()) + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNameInUnUpcasedExpression(expression : *const super::super::super::Win32::Foundation:: UNICODE_STRING, name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, ignorecase : bool, upcasetable : windows_core::PCWSTR) -> bool); + FsRtlIsNameInUnUpcasedExpression(core::mem::transmute(expression), core::mem::transmute(name), core::mem::transmute(ignorecase), upcasetable.param().abi()) } #[inline] -pub unsafe fn FsRtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag: u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag : u32) -> bool); FsRtlIsNonEmptyDirectoryReparsePointAllowed(core::mem::transmute(reparsetag)) } #[inline] -pub unsafe fn FsRtlIsNtstatusExpected(exception: super::super::super::Win32::Foundation::NTSTATUS) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNtstatusExpected(exception : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlIsNtstatusExpected(exception: super::super::super::Win32::Foundation::NTSTATUS) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsNtstatusExpected(exception : super::super::super::Win32::Foundation:: NTSTATUS) -> bool); FsRtlIsNtstatusExpected(core::mem::transmute(exception)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -947,48 +947,48 @@ pub unsafe fn FsRtlLogCcFlushError(filename: *const super::super::super::Win32:: FsRtlLogCcFlushError(core::mem::transmute(filename), core::mem::transmute(deviceobject), core::mem::transmute(sectionobjectpointer), core::mem::transmute(flusherror), core::mem::transmute(flags)) } #[inline] -pub unsafe fn FsRtlLookupBaseMcbEntry(mcb: *const BASE_MCB, vbn: i64, lbn: Option<*mut i64>, sectorcountfromlbn: Option<*mut i64>, startinglbn: Option<*mut i64>, sectorcountfromstartinglbn: Option<*mut i64>, index: Option<*mut u32>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupBaseMcbEntry(mcb : *const BASE_MCB, vbn : i64, lbn : *mut i64, sectorcountfromlbn : *mut i64, startinglbn : *mut i64, sectorcountfromstartinglbn : *mut i64, index : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlLookupBaseMcbEntry(mcb: *const BASE_MCB, vbn: i64, lbn: Option<*mut i64>, sectorcountfromlbn: Option<*mut i64>, startinglbn: Option<*mut i64>, sectorcountfromstartinglbn: Option<*mut i64>, index: Option<*mut u32>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupBaseMcbEntry(mcb : *const BASE_MCB, vbn : i64, lbn : *mut i64, sectorcountfromlbn : *mut i64, startinglbn : *mut i64, sectorcountfromstartinglbn : *mut i64, index : *mut u32) -> bool); FsRtlLookupBaseMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectorcountfromlbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(startinglbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectorcountfromstartinglbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(index.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn FsRtlLookupLargeMcbEntry(mcb: *const LARGE_MCB, vbn: i64, lbn: Option<*mut i64>, sectorcountfromlbn: Option<*mut i64>, startinglbn: Option<*mut i64>, sectorcountfromstartinglbn: Option<*mut i64>, index: Option<*mut u32>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLargeMcbEntry(mcb : *const LARGE_MCB, vbn : i64, lbn : *mut i64, sectorcountfromlbn : *mut i64, startinglbn : *mut i64, sectorcountfromstartinglbn : *mut i64, index : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlLookupLargeMcbEntry(mcb: *const LARGE_MCB, vbn: i64, lbn: Option<*mut i64>, sectorcountfromlbn: Option<*mut i64>, startinglbn: Option<*mut i64>, sectorcountfromstartinglbn: Option<*mut i64>, index: Option<*mut u32>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLargeMcbEntry(mcb : *const LARGE_MCB, vbn : i64, lbn : *mut i64, sectorcountfromlbn : *mut i64, startinglbn : *mut i64, sectorcountfromstartinglbn : *mut i64, index : *mut u32) -> bool); FsRtlLookupLargeMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectorcountfromlbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(startinglbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(sectorcountfromstartinglbn.unwrap_or(core::mem::zeroed())), core::mem::transmute(index.unwrap_or(core::mem::zeroed()))) } #[inline] -pub unsafe fn FsRtlLookupLastBaseMcbEntry(mcb: *const BASE_MCB, vbn: *mut i64, lbn: *mut i64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastBaseMcbEntry(mcb : *const BASE_MCB, vbn : *mut i64, lbn : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlLookupLastBaseMcbEntry(mcb: *const BASE_MCB, vbn: *mut i64, lbn: *mut i64) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastBaseMcbEntry(mcb : *const BASE_MCB, vbn : *mut i64, lbn : *mut i64) -> bool); FsRtlLookupLastBaseMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn)) } #[inline] -pub unsafe fn FsRtlLookupLastBaseMcbEntryAndIndex(opaquemcb: *const BASE_MCB, largevbn: *mut i64, largelbn: *mut i64, index: *mut u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastBaseMcbEntryAndIndex(opaquemcb : *const BASE_MCB, largevbn : *mut i64, largelbn : *mut i64, index : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlLookupLastBaseMcbEntryAndIndex(opaquemcb: *const BASE_MCB, largevbn: *mut i64, largelbn: *mut i64, index: *mut u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastBaseMcbEntryAndIndex(opaquemcb : *const BASE_MCB, largevbn : *mut i64, largelbn : *mut i64, index : *mut u32) -> bool); FsRtlLookupLastBaseMcbEntryAndIndex(core::mem::transmute(opaquemcb), core::mem::transmute(largevbn), core::mem::transmute(largelbn), core::mem::transmute(index)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn FsRtlLookupLastLargeMcbEntry(mcb: *const LARGE_MCB, vbn: *mut i64, lbn: *mut i64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastLargeMcbEntry(mcb : *const LARGE_MCB, vbn : *mut i64, lbn : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlLookupLastLargeMcbEntry(mcb: *const LARGE_MCB, vbn: *mut i64, lbn: *mut i64) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastLargeMcbEntry(mcb : *const LARGE_MCB, vbn : *mut i64, lbn : *mut i64) -> bool); FsRtlLookupLastLargeMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn FsRtlLookupLastLargeMcbEntryAndIndex(opaquemcb: *const LARGE_MCB, largevbn: *mut i64, largelbn: *mut i64, index: *mut u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastLargeMcbEntryAndIndex(opaquemcb : *const LARGE_MCB, largevbn : *mut i64, largelbn : *mut i64, index : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlLookupLastLargeMcbEntryAndIndex(opaquemcb: *const LARGE_MCB, largevbn: *mut i64, largelbn: *mut i64, index: *mut u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastLargeMcbEntryAndIndex(opaquemcb : *const LARGE_MCB, largevbn : *mut i64, largelbn : *mut i64, index : *mut u32) -> bool); FsRtlLookupLastLargeMcbEntryAndIndex(core::mem::transmute(opaquemcb), core::mem::transmute(largevbn), core::mem::transmute(largelbn), core::mem::transmute(index)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn FsRtlLookupLastMcbEntry(mcb: *const MCB, vbn: *mut u32, lbn: *mut u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastMcbEntry(mcb : *const MCB, vbn : *mut u32, lbn : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlLookupLastMcbEntry(mcb: *const MCB, vbn: *mut u32, lbn: *mut u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupLastMcbEntry(mcb : *const MCB, vbn : *mut u32, lbn : *mut u32) -> bool); FsRtlLookupLastMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn FsRtlLookupMcbEntry(mcb: *const MCB, vbn: u32, lbn: *mut u32, sectorcount: Option<*mut u32>, index: *mut u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupMcbEntry(mcb : *const MCB, vbn : u32, lbn : *mut u32, sectorcount : *mut u32, index : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlLookupMcbEntry(mcb: *const MCB, vbn: u32, lbn: *mut u32, sectorcount: Option<*mut u32>, index: *mut u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlLookupMcbEntry(mcb : *const MCB, vbn : u32, lbn : *mut u32, sectorcount : *mut u32, index : *mut u32) -> bool); FsRtlLookupMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(lbn), core::mem::transmute(sectorcount.unwrap_or(core::mem::zeroed())), core::mem::transmute(index)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -1011,14 +1011,14 @@ pub unsafe fn FsRtlLookupPerStreamContextInternal(streamcontext: *const FSRTL_AD } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlMdlReadCompleteDev(fileobject: *const super::super::Foundation::FILE_OBJECT, mdlchain: *const super::super::Foundation::MDL, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadCompleteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::Foundation:: MDL, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlMdlReadCompleteDev(fileobject: *const super::super::Foundation::FILE_OBJECT, mdlchain: *const super::super::Foundation::MDL, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadCompleteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, mdlchain : *const super::super::Foundation:: MDL, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); FsRtlMdlReadCompleteDev(core::mem::transmute(fileobject), core::mem::transmute(mdlchain), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlMdlReadDev(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::Foundation::MDL, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlMdlReadDev(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::Foundation::MDL, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlReadDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); FsRtlMdlReadDev(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(lockkey), core::mem::transmute(mdlchain), core::mem::transmute(iostatus), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -1029,8 +1029,8 @@ pub unsafe fn FsRtlMdlReadEx(fileobject: *const super::super::Foundation::FILE_O } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlMdlWriteCompleteDev(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, mdlchain: *const super::super::Foundation::MDL, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlWriteCompleteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::Foundation:: MDL, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlMdlWriteCompleteDev(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, mdlchain: *const super::super::Foundation::MDL, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlMdlWriteCompleteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, mdlchain : *const super::super::Foundation:: MDL, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); FsRtlMdlWriteCompleteDev(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(mdlchain), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed()))) } #[inline] @@ -1064,14 +1064,14 @@ pub unsafe fn FsRtlNotifyCleanupAll(notifysync: super::super::Foundation::PNOTIF #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlNotifyFilterChangeDirectory(notifysync: super::super::Foundation::PNOTIFY_SYNC, notifylist: *const super::super::super::Win32::System::Kernel::LIST_ENTRY, fscontext: *const core::ffi::c_void, fulldirectoryname: *const super::super::super::Win32::System::Kernel::STRING, watchtree: bool, ignorebuffer: bool, completionfilter: u32, notifyirp: Option<*const super::super::Foundation::IRP>, traversecallback: Option, subjectcontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, filtercallback: Option) { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFilterChangeDirectory(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *const super::super::super::Win32::System::Kernel:: STRING, watchtree : super::super::super::Win32::Foundation:: BOOLEAN, ignorebuffer : super::super::super::Win32::Foundation:: BOOLEAN, completionfilter : u32, notifyirp : *const super::super::Foundation:: IRP, traversecallback : PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, filtercallback : PFILTER_REPORT_CHANGE)); + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFilterChangeDirectory(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *const super::super::super::Win32::System::Kernel:: STRING, watchtree : bool, ignorebuffer : bool, completionfilter : u32, notifyirp : *const super::super::Foundation:: IRP, traversecallback : PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, filtercallback : PFILTER_REPORT_CHANGE)); FsRtlNotifyFilterChangeDirectory( core::mem::transmute(notifysync), core::mem::transmute(notifylist), core::mem::transmute(fscontext), core::mem::transmute(fulldirectoryname), - watchtree.into(), - ignorebuffer.into(), + core::mem::transmute(watchtree), + core::mem::transmute(ignorebuffer), core::mem::transmute(completionfilter), core::mem::transmute(notifyirp.unwrap_or(core::mem::zeroed())), core::mem::transmute(traversecallback.unwrap_or(core::mem::zeroed())), @@ -1099,8 +1099,8 @@ pub unsafe fn FsRtlNotifyFilterReportChange(notifysync: super::super::Foundation #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlNotifyFullChangeDirectory(notifysync: super::super::Foundation::PNOTIFY_SYNC, notifylist: *const super::super::super::Win32::System::Kernel::LIST_ENTRY, fscontext: *const core::ffi::c_void, fulldirectoryname: *mut super::super::super::Win32::System::Kernel::STRING, watchtree: bool, ignorebuffer: bool, completionfilter: u32, notifyirp: Option<*const super::super::Foundation::IRP>, traversecallback: Option, subjectcontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFullChangeDirectory(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *mut super::super::super::Win32::System::Kernel:: STRING, watchtree : super::super::super::Win32::Foundation:: BOOLEAN, ignorebuffer : super::super::super::Win32::Foundation:: BOOLEAN, completionfilter : u32, notifyirp : *const super::super::Foundation:: IRP, traversecallback : PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT)); - FsRtlNotifyFullChangeDirectory(core::mem::transmute(notifysync), core::mem::transmute(notifylist), core::mem::transmute(fscontext), core::mem::transmute(fulldirectoryname), watchtree.into(), ignorebuffer.into(), core::mem::transmute(completionfilter), core::mem::transmute(notifyirp.unwrap_or(core::mem::zeroed())), core::mem::transmute(traversecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(subjectcontext.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlNotifyFullChangeDirectory(notifysync : super::super::Foundation:: PNOTIFY_SYNC, notifylist : *const super::super::super::Win32::System::Kernel:: LIST_ENTRY, fscontext : *const core::ffi::c_void, fulldirectoryname : *mut super::super::super::Win32::System::Kernel:: STRING, watchtree : bool, ignorebuffer : bool, completionfilter : u32, notifyirp : *const super::super::Foundation:: IRP, traversecallback : PCHECK_FOR_TRAVERSE_ACCESS, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT)); + FsRtlNotifyFullChangeDirectory(core::mem::transmute(notifysync), core::mem::transmute(notifylist), core::mem::transmute(fscontext), core::mem::transmute(fulldirectoryname), core::mem::transmute(watchtree), core::mem::transmute(ignorebuffer), core::mem::transmute(completionfilter), core::mem::transmute(notifyirp.unwrap_or(core::mem::zeroed())), core::mem::transmute(traversecallback.unwrap_or(core::mem::zeroed())), core::mem::transmute(subjectcontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -1194,20 +1194,20 @@ pub unsafe fn FsRtlOplockGetAnyBreakOwnerProcess(oplock: *const *const core::ffi FsRtlOplockGetAnyBreakOwnerProcess(core::mem::transmute(oplock)) } #[inline] -pub unsafe fn FsRtlOplockIsFastIoPossible(oplock: *const *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockIsFastIoPossible(oplock : *const *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlOplockIsFastIoPossible(oplock: *const *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockIsFastIoPossible(oplock : *const *const core::ffi::c_void) -> bool); FsRtlOplockIsFastIoPossible(core::mem::transmute(oplock)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlOplockIsSharedRequest(irp: *const super::super::Foundation::IRP) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockIsSharedRequest(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlOplockIsSharedRequest(irp: *const super::super::Foundation::IRP) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockIsSharedRequest(irp : *const super::super::Foundation:: IRP) -> bool); FsRtlOplockIsSharedRequest(core::mem::transmute(irp)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlOplockKeysEqual(fo1: Option<*const super::super::Foundation::FILE_OBJECT>, fo2: Option<*const super::super::Foundation::FILE_OBJECT>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockKeysEqual(fo1 : *const super::super::Foundation:: FILE_OBJECT, fo2 : *const super::super::Foundation:: FILE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlOplockKeysEqual(fo1: Option<*const super::super::Foundation::FILE_OBJECT>, fo2: Option<*const super::super::Foundation::FILE_OBJECT>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlOplockKeysEqual(fo1 : *const super::super::Foundation:: FILE_OBJECT, fo2 : *const super::super::Foundation:: FILE_OBJECT) -> bool); FsRtlOplockKeysEqual(core::mem::transmute(fo1.unwrap_or(core::mem::zeroed())), core::mem::transmute(fo2.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -1224,8 +1224,8 @@ pub unsafe fn FsRtlPostStackOverflow(context: *const core::ffi::c_void, event: * } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlPrepareMdlWriteDev(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::Foundation::MDL, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrepareMdlWriteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlPrepareMdlWriteDev(fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: u32, lockkey: u32, mdlchain: *mut *mut super::super::Foundation::MDL, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, deviceobject: *const super::super::Foundation::DEVICE_OBJECT) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrepareMdlWriteDev(fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : u32, lockkey : u32, mdlchain : *mut *mut super::super::Foundation:: MDL, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT) -> bool); FsRtlPrepareMdlWriteDev(core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(lockkey), core::mem::transmute(mdlchain), core::mem::transmute(iostatus), core::mem::transmute(deviceobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -1241,9 +1241,9 @@ pub unsafe fn FsRtlPrepareToReuseEcp(ecpcontext: *const core::ffi::c_void) { } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn FsRtlPrivateLock(filelock: *const FILE_LOCK, fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: *const i64, processid: super::super::Foundation::PEPROCESS, key: u32, failimmediately: bool, exclusivelock: bool, iosb: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, irp: Option<*const super::super::Foundation::IRP>, context: Option<*const core::ffi::c_void>, alreadysynchronized: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrivateLock(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : *const i64, processid : super::super::Foundation:: PEPROCESS, key : u32, failimmediately : super::super::super::Win32::Foundation:: BOOLEAN, exclusivelock : super::super::super::Win32::Foundation:: BOOLEAN, iosb : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void, alreadysynchronized : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - FsRtlPrivateLock(core::mem::transmute(filelock), core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(processid), core::mem::transmute(key), failimmediately.into(), exclusivelock.into(), core::mem::transmute(iosb), core::mem::transmute(irp.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), alreadysynchronized.into()) +pub unsafe fn FsRtlPrivateLock(filelock: *const FILE_LOCK, fileobject: *const super::super::Foundation::FILE_OBJECT, fileoffset: *const i64, length: *const i64, processid: super::super::Foundation::PEPROCESS, key: u32, failimmediately: bool, exclusivelock: bool, iosb: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, irp: Option<*const super::super::Foundation::IRP>, context: Option<*const core::ffi::c_void>, alreadysynchronized: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlPrivateLock(filelock : *const FILE_LOCK, fileobject : *const super::super::Foundation:: FILE_OBJECT, fileoffset : *const i64, length : *const i64, processid : super::super::Foundation:: PEPROCESS, key : u32, failimmediately : bool, exclusivelock : bool, iosb : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, irp : *const super::super::Foundation:: IRP, context : *const core::ffi::c_void, alreadysynchronized : bool) -> bool); + FsRtlPrivateLock(core::mem::transmute(filelock), core::mem::transmute(fileobject), core::mem::transmute(fileoffset), core::mem::transmute(length), core::mem::transmute(processid), core::mem::transmute(key), core::mem::transmute(failimmediately), core::mem::transmute(exclusivelock), core::mem::transmute(iosb), core::mem::transmute(irp.unwrap_or(core::mem::zeroed())), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(alreadysynchronized)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1266,8 +1266,8 @@ pub unsafe fn FsRtlQueryInformationFile(fileobject: *const super::super::Foundat #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn FsRtlQueryKernelEaFile(fileobject: *const super::super::Foundation::FILE_OBJECT, returnedeadata: *mut core::ffi::c_void, length: u32, returnsingleentry: bool, ealist: Option<*const core::ffi::c_void>, ealistlength: u32, eaindex: Option<*const u32>, restartscan: bool, lengthreturned: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlQueryKernelEaFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, returnedeadata : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : super::super::super::Win32::Foundation:: BOOLEAN, lengthreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlQueryKernelEaFile(core::mem::transmute(fileobject), core::mem::transmute(returnedeadata), core::mem::transmute(length), returnsingleentry.into(), core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealistlength), core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), restartscan.into(), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlQueryKernelEaFile(fileobject : *const super::super::Foundation:: FILE_OBJECT, returnedeadata : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool, lengthreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); + FsRtlQueryKernelEaFile(core::mem::transmute(fileobject), core::mem::transmute(returnedeadata), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealistlength), core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan), core::mem::transmute(lengthreturned.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn FsRtlQueryMaximumVirtualDiskNestingLevel() -> u32 { @@ -1282,8 +1282,8 @@ pub unsafe fn FsRtlRegisterFileSystemFilterCallbacks(filterdriverobject: *const } #[inline] pub unsafe fn FsRtlRegisterUncProvider(muphandle: *mut super::super::super::Win32::Foundation::HANDLE, redirectordevicename: *const super::super::super::Win32::Foundation::UNICODE_STRING, mailslotssupported: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRegisterUncProvider(muphandle : *mut super::super::super::Win32::Foundation:: HANDLE, redirectordevicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, mailslotssupported : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - FsRtlRegisterUncProvider(core::mem::transmute(muphandle), core::mem::transmute(redirectordevicename), mailslotssupported.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRegisterUncProvider(muphandle : *mut super::super::super::Win32::Foundation:: HANDLE, redirectordevicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, mailslotssupported : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + FsRtlRegisterUncProvider(core::mem::transmute(muphandle), core::mem::transmute(redirectordevicename), core::mem::transmute(mailslotssupported)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1304,8 +1304,8 @@ pub unsafe fn FsRtlReleaseFile(fileobject: *const super::super::Foundation::FILE FsRtlReleaseFile(core::mem::transmute(fileobject)) } #[inline] -pub unsafe fn FsRtlRemoveBaseMcbEntry(mcb: *mut BASE_MCB, vbn: i64, sectorcount: i64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemoveBaseMcbEntry(mcb : *mut BASE_MCB, vbn : i64, sectorcount : i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlRemoveBaseMcbEntry(mcb: *mut BASE_MCB, vbn: i64, sectorcount: i64) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlRemoveBaseMcbEntry(mcb : *mut BASE_MCB, vbn : i64, sectorcount : i64) -> bool); FsRtlRemoveBaseMcbEntry(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(sectorcount)) } #[inline] @@ -1359,8 +1359,8 @@ pub unsafe fn FsRtlResetBaseMcb() -> BASE_MCB { #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn FsRtlResetLargeMcb(mcb: *mut LARGE_MCB, selfsynchronized: bool) { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlResetLargeMcb(mcb : *mut LARGE_MCB, selfsynchronized : super::super::super::Win32::Foundation:: BOOLEAN)); - FsRtlResetLargeMcb(core::mem::transmute(mcb), selfsynchronized.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlResetLargeMcb(mcb : *mut LARGE_MCB, selfsynchronized : bool)); + FsRtlResetLargeMcb(core::mem::transmute(mcb), core::mem::transmute(selfsynchronized)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1381,14 +1381,14 @@ pub unsafe fn FsRtlSetKernelEaFile(fileobject: *const super::super::Foundation:: FsRtlSetKernelEaFile(core::mem::transmute(fileobject), core::mem::transmute(eabuffer), core::mem::transmute(length)) } #[inline] -pub unsafe fn FsRtlSplitBaseMcb(mcb: *mut BASE_MCB, vbn: i64, amount: i64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSplitBaseMcb(mcb : *mut BASE_MCB, vbn : i64, amount : i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlSplitBaseMcb(mcb: *mut BASE_MCB, vbn: i64, amount: i64) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSplitBaseMcb(mcb : *mut BASE_MCB, vbn : i64, amount : i64) -> bool); FsRtlSplitBaseMcb(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(amount)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn FsRtlSplitLargeMcb(mcb: *mut LARGE_MCB, vbn: i64, amount: i64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSplitLargeMcb(mcb : *mut LARGE_MCB, vbn : i64, amount : i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlSplitLargeMcb(mcb: *mut LARGE_MCB, vbn: i64, amount: i64) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlSplitLargeMcb(mcb : *mut LARGE_MCB, vbn : i64, amount : i64) -> bool); FsRtlSplitLargeMcb(core::mem::transmute(mcb), core::mem::transmute(vbn), core::mem::transmute(amount)) } #[inline] @@ -1505,13 +1505,13 @@ pub unsafe fn IoCheckFunctionAccess(grantedaccess: u32, majorfunction: u8, minor } #[inline] pub unsafe fn IoCheckQuerySetFileInformation(fileinformationclass: FILE_INFORMATION_CLASS, length: u32, setoperation: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetFileInformation(fileinformationclass : FILE_INFORMATION_CLASS, length : u32, setoperation : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckQuerySetFileInformation(core::mem::transmute(fileinformationclass), core::mem::transmute(length), setoperation.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetFileInformation(fileinformationclass : FILE_INFORMATION_CLASS, length : u32, setoperation : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoCheckQuerySetFileInformation(core::mem::transmute(fileinformationclass), core::mem::transmute(length), core::mem::transmute(setoperation)) } #[inline] pub unsafe fn IoCheckQuerySetVolumeInformation(fsinformationclass: FS_INFORMATION_CLASS, length: u32, setoperation: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetVolumeInformation(fsinformationclass : FS_INFORMATION_CLASS, length : u32, setoperation : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckQuerySetVolumeInformation(core::mem::transmute(fsinformationclass), core::mem::transmute(length), setoperation.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckQuerySetVolumeInformation(fsinformationclass : FS_INFORMATION_CLASS, length : u32, setoperation : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoCheckQuerySetVolumeInformation(core::mem::transmute(fsinformationclass), core::mem::transmute(length), core::mem::transmute(setoperation)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -1563,8 +1563,8 @@ pub unsafe fn IoEnumerateRegisteredFiltersList(driverobjectlist: Option<*mut *mu } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] -pub unsafe fn IoFastQueryNetworkAttributes(objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, desiredaccess: u32, openoptions: u32, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut FILE_NETWORK_OPEN_INFORMATION) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoFastQueryNetworkAttributes(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, desiredaccess : u32, openoptions : u32, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut FILE_NETWORK_OPEN_INFORMATION) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoFastQueryNetworkAttributes(objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, desiredaccess: u32, openoptions: u32, iostatus: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut FILE_NETWORK_OPEN_INFORMATION) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoFastQueryNetworkAttributes(objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, desiredaccess : u32, openoptions : u32, iostatus : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut FILE_NETWORK_OPEN_INFORMATION) -> bool); IoFastQueryNetworkAttributes(core::mem::transmute(objectattributes), core::mem::transmute(desiredaccess), core::mem::transmute(openoptions), core::mem::transmute(iostatus), core::mem::transmute(buffer)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -1641,26 +1641,26 @@ pub unsafe fn IoGetRequestorSessionId(irp: *const super::super::Foundation::IRP, } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn IoIrpHasFsTrackOffsetExtensionType(irp: *const super::super::Foundation::IRP) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoIrpHasFsTrackOffsetExtensionType(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoIrpHasFsTrackOffsetExtensionType(irp: *const super::super::Foundation::IRP) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoIrpHasFsTrackOffsetExtensionType(irp : *const super::super::Foundation:: IRP) -> bool); IoIrpHasFsTrackOffsetExtensionType(core::mem::transmute(irp)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn IoIsOperationSynchronous(irp: *const super::super::Foundation::IRP) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoIsOperationSynchronous(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoIsOperationSynchronous(irp: *const super::super::Foundation::IRP) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoIsOperationSynchronous(irp : *const super::super::Foundation:: IRP) -> bool); IoIsOperationSynchronous(core::mem::transmute(irp)) } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn IoIsSystemThread(thread: super::super::Foundation::PETHREAD) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoIsSystemThread(thread: super::super::Foundation::PETHREAD) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> bool); IoIsSystemThread(core::mem::transmute(thread)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn IoIsValidNameGraftingBuffer(irp: *const super::super::Foundation::IRP, reparsebuffer: *const REPARSE_DATA_BUFFER) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoIsValidNameGraftingBuffer(irp : *const super::super::Foundation:: IRP, reparsebuffer : *const REPARSE_DATA_BUFFER) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoIsValidNameGraftingBuffer(irp: *const super::super::Foundation::IRP, reparsebuffer: *const REPARSE_DATA_BUFFER) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoIsValidNameGraftingBuffer(irp : *const super::super::Foundation:: IRP, reparsebuffer : *const REPARSE_DATA_BUFFER) -> bool); IoIsValidNameGraftingBuffer(core::mem::transmute(irp), core::mem::transmute(reparsebuffer)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -1708,8 +1708,8 @@ pub unsafe fn IoRegisterFsRegistrationChange(driverobject: *const super::super:: #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoRegisterFsRegistrationChangeMountAware(driverobject: *const super::super::Foundation::DRIVER_OBJECT, drivernotificationroutine: super::super::Foundation::DRIVER_FS_NOTIFICATION, synchronizewithmounts: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterFsRegistrationChangeMountAware(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, drivernotificationroutine : super::super::Foundation:: DRIVER_FS_NOTIFICATION, synchronizewithmounts : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoRegisterFsRegistrationChangeMountAware(core::mem::transmute(driverobject), core::mem::transmute(drivernotificationroutine), synchronizewithmounts.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoRegisterFsRegistrationChangeMountAware(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, drivernotificationroutine : super::super::Foundation:: DRIVER_FS_NOTIFICATION, synchronizewithmounts : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoRegisterFsRegistrationChangeMountAware(core::mem::transmute(driverobject), core::mem::transmute(drivernotificationroutine), core::mem::transmute(synchronizewithmounts)) } #[inline] pub unsafe fn IoReleaseVpbSpinLock(irql: u8) { @@ -1782,8 +1782,8 @@ pub unsafe fn IoUnregisterFsRegistrationChange(driverobject: *const super::super #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoVerifyVolume(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, allowrawmount: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoVerifyVolume(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, allowrawmount : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoVerifyVolume(core::mem::transmute(deviceobject), allowrawmount.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoVerifyVolume(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, allowrawmount : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoVerifyVolume(core::mem::transmute(deviceobject), core::mem::transmute(allowrawmount)) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -1810,8 +1810,8 @@ pub unsafe fn KeDetachProcess() { #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeInitializeMutant(mutant: *mut super::super::Foundation::KMUTANT, initialowner: bool) { - windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeMutant(mutant : *mut super::super::Foundation:: KMUTANT, initialowner : super::super::super::Win32::Foundation:: BOOLEAN)); - KeInitializeMutant(core::mem::transmute(mutant), initialowner.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeMutant(mutant : *mut super::super::Foundation:: KMUTANT, initialowner : bool)); + KeInitializeMutant(core::mem::transmute(mutant), core::mem::transmute(initialowner)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -1846,8 +1846,8 @@ pub unsafe fn KeReadStateQueue(queue: *const super::super::Foundation::KQUEUE) - #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeReleaseMutant(mutant: *mut super::super::Foundation::KMUTANT, increment: i32, abandoned: bool, wait: bool) -> i32 { - windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseMutant(mutant : *mut super::super::Foundation:: KMUTANT, increment : i32, abandoned : super::super::super::Win32::Foundation:: BOOLEAN, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - KeReleaseMutant(core::mem::transmute(mutant), core::mem::transmute(increment), abandoned.into(), wait.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseMutant(mutant : *mut super::super::Foundation:: KMUTANT, increment : i32, abandoned : bool, wait : bool) -> i32); + KeReleaseMutant(core::mem::transmute(mutant), core::mem::transmute(increment), core::mem::transmute(abandoned), core::mem::transmute(wait)) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -1864,8 +1864,8 @@ pub unsafe fn KeRemoveQueue(queue: *mut super::super::Foundation::KQUEUE, waitmo #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeRemoveQueueEx(queue: *mut super::super::Foundation::KQUEUE, waitmode: i8, alertable: bool, timeout: Option<*const i64>, entryarray: &mut [*mut super::super::super::Win32::System::Kernel::LIST_ENTRY]) -> u32 { - windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueEx(queue : *mut super::super::Foundation:: KQUEUE, waitmode : i8, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *const i64, entryarray : *mut *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY, count : u32) -> u32); - KeRemoveQueueEx(core::mem::transmute(queue), core::mem::transmute(waitmode), alertable.into(), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(entryarray.as_ptr()), entryarray.len().try_into().unwrap()) + windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueEx(queue : *mut super::super::Foundation:: KQUEUE, waitmode : i8, alertable : bool, timeout : *const i64, entryarray : *mut *mut super::super::super::Win32::System::Kernel:: LIST_ENTRY, count : u32) -> u32); + KeRemoveQueueEx(core::mem::transmute(queue), core::mem::transmute(waitmode), core::mem::transmute(alertable), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(entryarray.as_ptr()), entryarray.len().try_into().unwrap()) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -1880,9 +1880,9 @@ pub unsafe fn KeSetIdealProcessorThread(thread: super::super::Foundation::PKTHRE KeSetIdealProcessorThread(core::mem::transmute(thread), core::mem::transmute(processor)) } #[inline] -pub unsafe fn KeSetKernelStackSwapEnable(enable: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeSetKernelStackSwapEnable(enable : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - KeSetKernelStackSwapEnable(enable.into()) +pub unsafe fn KeSetKernelStackSwapEnable(enable: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeSetKernelStackSwapEnable(enable : bool) -> bool); + KeSetKernelStackSwapEnable(core::mem::transmute(enable)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -1914,8 +1914,8 @@ pub unsafe fn MapSecurityError(secstatus: windows_core::HRESULT) -> super::super } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn MmCanFileBeTruncated(sectionpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, newfilesize: Option<*const i64>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn MmCanFileBeTruncated(sectionpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, newfilesize : *const i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn MmCanFileBeTruncated(sectionpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, newfilesize: Option<*const i64>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn MmCanFileBeTruncated(sectionpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, newfilesize : *const i64) -> bool); MmCanFileBeTruncated(core::mem::transmute(sectionpointer), core::mem::transmute(newfilesize.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] @@ -1926,20 +1926,20 @@ pub unsafe fn MmDoesFileHaveUserWritableReferences(sectionpointer: *const super: } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn MmFlushImageSection(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, flushtype: MMFLUSH_TYPE) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn MmFlushImageSection(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, flushtype : MMFLUSH_TYPE) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn MmFlushImageSection(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, flushtype: MMFLUSH_TYPE) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn MmFlushImageSection(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, flushtype : MMFLUSH_TYPE) -> bool); MmFlushImageSection(core::mem::transmute(sectionobjectpointer), core::mem::transmute(flushtype)) } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn MmForceSectionClosed(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, delayclose: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn MmForceSectionClosed(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, delayclose : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - MmForceSectionClosed(core::mem::transmute(sectionobjectpointer), delayclose.into()) +pub unsafe fn MmForceSectionClosed(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, delayclose: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn MmForceSectionClosed(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, delayclose : bool) -> bool); + MmForceSectionClosed(core::mem::transmute(sectionobjectpointer), core::mem::transmute(delayclose)) } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn MmForceSectionClosedEx(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, forcecloseflags: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn MmForceSectionClosedEx(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, forcecloseflags : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn MmForceSectionClosedEx(sectionobjectpointer: *const super::super::Foundation::SECTION_OBJECT_POINTERS, forcecloseflags: u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn MmForceSectionClosedEx(sectionobjectpointer : *const super::super::Foundation:: SECTION_OBJECT_POINTERS, forcecloseflags : u32) -> bool); MmForceSectionClosedEx(core::mem::transmute(sectionobjectpointer), core::mem::transmute(forcecloseflags)) } #[inline] @@ -1954,8 +1954,8 @@ pub unsafe fn MmIsFileSectionActive(fssectionpointer: *const super::super::Found MmIsFileSectionActive(core::mem::transmute(fssectionpointer), core::mem::transmute(flags), core::mem::transmute(sectionisactive)) } #[inline] -pub unsafe fn MmIsRecursiveIoFault() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn MmIsRecursiveIoFault() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn MmIsRecursiveIoFault() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn MmIsRecursiveIoFault() -> bool); MmIsRecursiveIoFault() } #[cfg(feature = "Wdk_Foundation")] @@ -1971,15 +1971,15 @@ pub unsafe fn MmPrefetchPages(readlists: &[*const READ_LIST]) -> super::super::s MmPrefetchPages(readlists.len().try_into().unwrap(), core::mem::transmute(readlists.as_ptr())) } #[inline] -pub unsafe fn MmSetAddressRangeModified(address: *const core::ffi::c_void, length: usize) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn MmSetAddressRangeModified(address : *const core::ffi::c_void, length : usize) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn MmSetAddressRangeModified(address: *const core::ffi::c_void, length: usize) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn MmSetAddressRangeModified(address : *const core::ffi::c_void, length : usize) -> bool); MmSetAddressRangeModified(core::mem::transmute(address), core::mem::transmute(length)) } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn NtAccessCheckAndAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut i32, generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAccessCheckAndAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objecttypename), core::mem::transmute(objectname), core::mem::transmute(securitydescriptor), core::mem::transmute(desiredaccess), core::mem::transmute(genericmapping), objectcreation.into(), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose)) +pub unsafe fn NtAccessCheckAndAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut i32, generateonclose: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtAccessCheckAndAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objecttypename), core::mem::transmute(objectname), core::mem::transmute(securitydescriptor), core::mem::transmute(desiredaccess), core::mem::transmute(genericmapping), core::mem::transmute(objectcreation), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -1998,9 +1998,9 @@ pub unsafe fn NtAccessCheckByTypeAndAuditAlarm( objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut i32, - generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN, + generateonclose: *mut bool, ) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); + windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); NtAccessCheckByTypeAndAuditAlarm( core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), @@ -2014,7 +2014,7 @@ pub unsafe fn NtAccessCheckByTypeAndAuditAlarm( core::mem::transmute(objecttypelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), objecttypelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(genericmapping), - objectcreation.into(), + core::mem::transmute(objectcreation), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose), @@ -2038,9 +2038,9 @@ pub unsafe fn NtAccessCheckByTypeResultListAndAuditAlarm( objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut i32, - generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN, + generateonclose: *mut bool, ) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeResultListAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); + windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeResultListAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); NtAccessCheckByTypeResultListAndAuditAlarm( core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), @@ -2054,7 +2054,7 @@ pub unsafe fn NtAccessCheckByTypeResultListAndAuditAlarm( core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(objecttypelistlength), core::mem::transmute(genericmapping), - objectcreation.into(), + core::mem::transmute(objectcreation), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose), @@ -2079,9 +2079,9 @@ pub unsafe fn NtAccessCheckByTypeResultListAndAuditAlarmByHandle( objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut i32, - generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN, + generateonclose: *mut bool, ) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); + windows_targets::link!("ntdll.dll" "system" fn NtAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); NtAccessCheckByTypeResultListAndAuditAlarmByHandle( core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), @@ -2096,7 +2096,7 @@ pub unsafe fn NtAccessCheckByTypeResultListAndAuditAlarmByHandle( core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(objecttypelistlength), core::mem::transmute(genericmapping), - objectcreation.into(), + core::mem::transmute(objectcreation), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose), @@ -2105,14 +2105,14 @@ pub unsafe fn NtAccessCheckByTypeResultListAndAuditAlarmByHandle( #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtAdjustGroupsToken(tokenhandle: super::super::super::Win32::Foundation::HANDLE, resettodefault: bool, newstate: Option<*const super::super::super::Win32::Security::TOKEN_GROUPS>, bufferlength: u32, previousstate: Option<*mut super::super::super::Win32::Security::TOKEN_GROUPS>, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtAdjustGroupsToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, resettodefault : super::super::super::Win32::Foundation:: BOOLEAN, newstate : *const super::super::super::Win32::Security:: TOKEN_GROUPS, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_GROUPS, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAdjustGroupsToken(core::mem::transmute(tokenhandle), resettodefault.into(), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength)) + windows_targets::link!("ntdll.dll" "system" fn NtAdjustGroupsToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, resettodefault : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_GROUPS, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_GROUPS, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtAdjustGroupsToken(core::mem::transmute(tokenhandle), core::mem::transmute(resettodefault), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtAdjustPrivilegesToken(tokenhandle: super::super::super::Win32::Foundation::HANDLE, disableallprivileges: bool, newstate: Option<*const super::super::super::Win32::Security::TOKEN_PRIVILEGES>, bufferlength: u32, previousstate: Option<*mut super::super::super::Win32::Security::TOKEN_PRIVILEGES>, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtAdjustPrivilegesToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, disableallprivileges : super::super::super::Win32::Foundation:: BOOLEAN, newstate : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtAdjustPrivilegesToken(core::mem::transmute(tokenhandle), disableallprivileges.into(), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("ntdll.dll" "system" fn NtAdjustPrivilegesToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, disableallprivileges : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtAdjustPrivilegesToken(core::mem::transmute(tokenhandle), core::mem::transmute(disableallprivileges), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtAllocateVirtualMemory(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, zerobits: usize, regionsize: *mut usize, allocationtype: u32, protect: u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2133,8 +2133,8 @@ pub unsafe fn NtCancelIoFileEx(filehandle: super::super::super::Win32::Foundatio } #[inline] pub unsafe fn NtCloseObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, generateonclose: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtCloseObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCloseObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), generateonclose.into()) + windows_targets::link!("ntdll.dll" "system" fn NtCloseObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtCloseObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(generateonclose)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -2145,8 +2145,8 @@ pub unsafe fn NtCreateDirectoryObject(directoryhandle: *mut super::super::super: #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn NtCreateEvent(eventhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, eventtype: super::super::super::Win32::System::Kernel::EVENT_TYPE, initialstate: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtCreateEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, eventtype : super::super::super::Win32::System::Kernel:: EVENT_TYPE, initialstate : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCreateEvent(core::mem::transmute(eventhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventtype), initialstate.into()) + windows_targets::link!("ntdll.dll" "system" fn NtCreateEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, eventtype : super::super::super::Win32::System::Kernel:: EVENT_TYPE, initialstate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtCreateEvent(core::mem::transmute(eventhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventtype), core::mem::transmute(initialstate)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO"))] #[inline] @@ -2184,8 +2184,8 @@ pub unsafe fn NtDeleteFile(objectattributes: *const super::super::Foundation::OB } #[inline] pub unsafe fn NtDeleteObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, generateonclose: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtDeleteObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtDeleteObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), generateonclose.into()) + windows_targets::link!("ntdll.dll" "system" fn NtDeleteObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtDeleteObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(generateonclose)) } #[inline] pub unsafe fn NtDuplicateObject(sourceprocesshandle: super::super::super::Win32::Foundation::HANDLE, sourcehandle: super::super::super::Win32::Foundation::HANDLE, targetprocesshandle: Option, targethandle: Option<*mut super::super::super::Win32::Foundation::HANDLE>, desiredaccess: u32, handleattributes: u32, options: u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2195,8 +2195,8 @@ pub unsafe fn NtDuplicateObject(sourceprocesshandle: super::super::super::Win32: #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn NtDuplicateToken(existingtokenhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, effectiveonly: bool, tokentype: super::super::super::Win32::Security::TOKEN_TYPE, newtokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtDuplicateToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, effectiveonly : super::super::super::Win32::Foundation:: BOOLEAN, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtDuplicateToken(core::mem::transmute(existingtokenhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), effectiveonly.into(), core::mem::transmute(tokentype), core::mem::transmute(newtokenhandle)) + windows_targets::link!("ntdll.dll" "system" fn NtDuplicateToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, effectiveonly : bool, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtDuplicateToken(core::mem::transmute(existingtokenhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(effectiveonly), core::mem::transmute(tokentype), core::mem::transmute(newtokenhandle)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -2252,14 +2252,14 @@ pub unsafe fn NtImpersonateAnonymousToken(threadhandle: super::super::super::Win #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtLockFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, byteoffset: *const i64, length: *const i64, key: u32, failimmediately: bool, exclusivelock: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtLockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32, failimmediately : super::super::super::Win32::Foundation:: BOOLEAN, exclusivelock : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtLockFile(core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(byteoffset), core::mem::transmute(length), core::mem::transmute(key), failimmediately.into(), exclusivelock.into()) + windows_targets::link!("ntdll.dll" "system" fn NtLockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32, failimmediately : bool, exclusivelock : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtLockFile(core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(byteoffset), core::mem::transmute(length), core::mem::transmute(key), core::mem::transmute(failimmediately), core::mem::transmute(exclusivelock)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtNotifyChangeKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, completionfilter: u32, watchtree: bool, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, asynchronous: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtNotifyChangeKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtNotifyChangeKey(core::mem::transmute(keyhandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(completionfilter), watchtree.into(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), asynchronous.into()) + windows_targets::link!("ntdll.dll" "system" fn NtNotifyChangeKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtNotifyChangeKey(core::mem::transmute(keyhandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(completionfilter), core::mem::transmute(watchtree), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(asynchronous)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -2275,8 +2275,8 @@ pub unsafe fn NtOpenFile(filehandle: *mut super::super::super::Win32::Foundation } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn NtOpenObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, securitydescriptor: Option, clienttoken: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const super::super::super::Win32::Security::PRIVILEGE_SET>, objectcreation: bool, accessgranted: bool, generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtOpenObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn NtOpenObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, securitydescriptor: Option, clienttoken: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const super::super::super::Win32::Security::PRIVILEGE_SET>, objectcreation: bool, accessgranted: bool, generateonclose: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn NtOpenObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, objectcreation : bool, accessgranted : bool, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); NtOpenObjectAuditAlarm( core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), @@ -2287,8 +2287,8 @@ pub unsafe fn NtOpenObjectAuditAlarm(subsystemname: *const super::super::super:: core::mem::transmute(desiredaccess), core::mem::transmute(grantedaccess), core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), - objectcreation.into(), - accessgranted.into(), + core::mem::transmute(objectcreation), + core::mem::transmute(accessgranted), core::mem::transmute(generateonclose), ) } @@ -2310,36 +2310,36 @@ pub unsafe fn NtOpenSymbolicLinkObject(linkhandle: *mut super::super::super::Win } #[inline] pub unsafe fn NtOpenThreadToken(threadhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, openasself: bool, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtOpenThreadToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : super::super::super::Win32::Foundation:: BOOLEAN, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenThreadToken(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), openasself.into(), core::mem::transmute(tokenhandle)) + windows_targets::link!("ntdll.dll" "system" fn NtOpenThreadToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtOpenThreadToken(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), core::mem::transmute(openasself), core::mem::transmute(tokenhandle)) } #[inline] pub unsafe fn NtOpenThreadTokenEx(threadhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, openasself: bool, handleattributes: u32, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : super::super::super::Win32::Foundation:: BOOLEAN, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtOpenThreadTokenEx(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), openasself.into(), core::mem::transmute(handleattributes), core::mem::transmute(tokenhandle)) + windows_targets::link!("ntdll.dll" "system" fn NtOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtOpenThreadTokenEx(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), core::mem::transmute(openasself), core::mem::transmute(handleattributes), core::mem::transmute(tokenhandle)) } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn NtPrivilegeCheck(clienttoken: super::super::super::Win32::Foundation::HANDLE, requiredprivileges: *mut super::super::super::Win32::Security::PRIVILEGE_SET, result: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtPrivilegeCheck(clienttoken : super::super::super::Win32::Foundation:: HANDLE, requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, result : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn NtPrivilegeCheck(clienttoken: super::super::super::Win32::Foundation::HANDLE, requiredprivileges: *mut super::super::super::Win32::Security::PRIVILEGE_SET, result: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn NtPrivilegeCheck(clienttoken : super::super::super::Win32::Foundation:: HANDLE, requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, result : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); NtPrivilegeCheck(core::mem::transmute(clienttoken), core::mem::transmute(requiredprivileges), core::mem::transmute(result)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtPrivilegeObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, clienttoken: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, privileges: *const super::super::super::Win32::Security::PRIVILEGE_SET, accessgranted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtPrivilegeObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPrivilegeObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(clienttoken), core::mem::transmute(desiredaccess), core::mem::transmute(privileges), accessgranted.into()) + windows_targets::link!("ntdll.dll" "system" fn NtPrivilegeObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtPrivilegeObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(clienttoken), core::mem::transmute(desiredaccess), core::mem::transmute(privileges), core::mem::transmute(accessgranted)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn NtPrivilegedServiceAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, servicename: *const super::super::super::Win32::Foundation::UNICODE_STRING, clienttoken: super::super::super::Win32::Foundation::HANDLE, privileges: *const super::super::super::Win32::Security::PRIVILEGE_SET, accessgranted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtPrivilegedServiceAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, clienttoken : super::super::super::Win32::Foundation:: HANDLE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtPrivilegedServiceAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(servicename), core::mem::transmute(clienttoken), core::mem::transmute(privileges), accessgranted.into()) + windows_targets::link!("ntdll.dll" "system" fn NtPrivilegedServiceAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, clienttoken : super::super::super::Win32::Foundation:: HANDLE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtPrivilegedServiceAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(servicename), core::mem::transmute(clienttoken), core::mem::transmute(privileges), core::mem::transmute(accessgranted)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtQueryDirectoryFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: FILE_INFORMATION_CLASS, returnsingleentry: bool, filename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, restartscan: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtQueryDirectoryFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); + windows_targets::link!("ntdll.dll" "system" fn NtQueryDirectoryFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, returnsingleentry : bool, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); NtQueryDirectoryFile( core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), @@ -2349,9 +2349,9 @@ pub unsafe fn NtQueryDirectoryFile(filehandle: super::super::super::Win32::Found core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass), - returnsingleentry.into(), + core::mem::transmute(returnsingleentry), core::mem::transmute(filename.unwrap_or(core::mem::zeroed())), - restartscan.into(), + core::mem::transmute(restartscan), ) } #[cfg(feature = "Win32_System_IO")] @@ -2362,14 +2362,14 @@ pub unsafe fn NtQueryDirectoryFileEx(filehandle: super::super::super::Win32::Fou } #[inline] pub unsafe fn NtQueryDirectoryObject(directoryhandle: super::super::super::Win32::Foundation::HANDLE, buffer: Option<*mut core::ffi::c_void>, length: u32, returnsingleentry: bool, restartscan: bool, context: *mut u32, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtQueryDirectoryObject(directoryhandle : super::super::super::Win32::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, restartscan : super::super::super::Win32::Foundation:: BOOLEAN, context : *mut u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryDirectoryObject(core::mem::transmute(directoryhandle), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), returnsingleentry.into(), restartscan.into(), core::mem::transmute(context), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("ntdll.dll" "system" fn NtQueryDirectoryObject(directoryhandle : super::super::super::Win32::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, restartscan : bool, context : *mut u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtQueryDirectoryObject(core::mem::transmute(directoryhandle), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(restartscan), core::mem::transmute(context), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn NtQueryEaFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, returnsingleentry: bool, ealist: Option<*const core::ffi::c_void>, ealistlength: u32, eaindex: Option<*const u32>, restartscan: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtQueryEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryEaFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), returnsingleentry.into(), core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealistlength), core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), restartscan.into()) + windows_targets::link!("ntdll.dll" "system" fn NtQueryEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtQueryEaFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealistlength), core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -2398,8 +2398,8 @@ pub unsafe fn NtQueryInformationToken(tokenhandle: super::super::super::Win32::F #[cfg(all(feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn NtQueryQuotaInformationFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, returnsingleentry: bool, sidlist: Option<*const core::ffi::c_void>, sidlistlength: u32, startsid: Option, restartscan: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtQueryQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Security:: PSID, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtQueryQuotaInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), returnsingleentry.into(), core::mem::transmute(sidlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidlistlength), core::mem::transmute(startsid.unwrap_or(core::mem::zeroed())), restartscan.into()) + windows_targets::link!("ntdll.dll" "system" fn NtQueryQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Security:: PSID, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtQueryQuotaInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(sidlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidlistlength), core::mem::transmute(startsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -2494,8 +2494,8 @@ pub unsafe fn ObInsertObject(object: *const core::ffi::c_void, passedaccessstate ObInsertObject(core::mem::transmute(object), core::mem::transmute(passedaccessstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess.unwrap_or(core::mem::zeroed())), core::mem::transmute(objectpointerbias), core::mem::transmute(newobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(handle.unwrap_or(core::mem::zeroed()))) } #[inline] -pub unsafe fn ObIsKernelHandle(handle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ObIsKernelHandle(handle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ObIsKernelHandle(handle: super::super::super::Win32::Foundation::HANDLE) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ObIsKernelHandle(handle : super::super::super::Win32::Foundation:: HANDLE) -> bool); ObIsKernelHandle(core::mem::transmute(handle)) } #[inline] @@ -2522,8 +2522,8 @@ pub unsafe fn ObQueryNameString(object: *const core::ffi::c_void, objectnameinfo ObQueryNameString(core::mem::transmute(object), core::mem::transmute(objectnameinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(returnlength)) } #[inline] -pub unsafe fn ObQueryObjectAuditingByHandle(handle: super::super::super::Win32::Foundation::HANDLE, generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn ObQueryObjectAuditingByHandle(handle : super::super::super::Win32::Foundation:: HANDLE, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn ObQueryObjectAuditingByHandle(handle: super::super::super::Win32::Foundation::HANDLE, generateonclose: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntoskrnl.exe" "system" fn ObQueryObjectAuditingByHandle(handle : super::super::super::Win32::Foundation:: HANDLE, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); ObQueryObjectAuditingByHandle(core::mem::transmute(handle), core::mem::transmute(generateonclose)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -2542,8 +2542,8 @@ pub unsafe fn PfxInitialize() -> PREFIX_TABLE { } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn PfxInsertPrefix(prefixtable: *const PREFIX_TABLE, prefix: *const super::super::super::Win32::System::Kernel::STRING, prefixtableentry: *mut PREFIX_TABLE_ENTRY) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn PfxInsertPrefix(prefixtable : *const PREFIX_TABLE, prefix : *const super::super::super::Win32::System::Kernel:: STRING, prefixtableentry : *mut PREFIX_TABLE_ENTRY) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PfxInsertPrefix(prefixtable: *const PREFIX_TABLE, prefix: *const super::super::super::Win32::System::Kernel::STRING, prefixtableentry: *mut PREFIX_TABLE_ENTRY) -> bool { + windows_targets::link!("ntdll.dll" "system" fn PfxInsertPrefix(prefixtable : *const PREFIX_TABLE, prefix : *const super::super::super::Win32::System::Kernel:: STRING, prefixtableentry : *mut PREFIX_TABLE_ENTRY) -> bool); PfxInsertPrefix(core::mem::transmute(prefixtable), core::mem::transmute(prefix), core::mem::transmute(prefixtableentry)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -2588,8 +2588,8 @@ pub unsafe fn PsDereferencePrimaryToken(primarytoken: *const core::ffi::c_void) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn PsDisableImpersonation(thread: super::super::Foundation::PETHREAD, impersonationstate: *mut super::super::super::Win32::Security::SE_IMPERSONATION_STATE) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn PsDisableImpersonation(thread : super::super::Foundation:: PETHREAD, impersonationstate : *mut super::super::super::Win32::Security:: SE_IMPERSONATION_STATE) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PsDisableImpersonation(thread: super::super::Foundation::PETHREAD, impersonationstate: *mut super::super::super::Win32::Security::SE_IMPERSONATION_STATE) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn PsDisableImpersonation(thread : super::super::Foundation:: PETHREAD, impersonationstate : *mut super::super::super::Win32::Security:: SE_IMPERSONATION_STATE) -> bool); PsDisableImpersonation(core::mem::transmute(thread), core::mem::transmute(impersonationstate)) } #[inline] @@ -2606,24 +2606,24 @@ pub unsafe fn PsGetThreadProcess(thread: super::super::Foundation::PETHREAD) -> #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn PsImpersonateClient(thread: super::super::Foundation::PETHREAD, token: Option<*const core::ffi::c_void>, copyonopen: bool, effectiveonly: bool, impersonationlevel: super::super::super::Win32::Security::SECURITY_IMPERSONATION_LEVEL) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn PsImpersonateClient(thread : super::super::Foundation:: PETHREAD, token : *const core::ffi::c_void, copyonopen : super::super::super::Win32::Foundation:: BOOLEAN, effectiveonly : super::super::super::Win32::Foundation:: BOOLEAN, impersonationlevel : super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsImpersonateClient(core::mem::transmute(thread), core::mem::transmute(token.unwrap_or(core::mem::zeroed())), copyonopen.into(), effectiveonly.into(), core::mem::transmute(impersonationlevel)) + windows_targets::link!("ntoskrnl.exe" "system" fn PsImpersonateClient(thread : super::super::Foundation:: PETHREAD, token : *const core::ffi::c_void, copyonopen : bool, effectiveonly : bool, impersonationlevel : super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> super::super::super::Win32::Foundation:: NTSTATUS); + PsImpersonateClient(core::mem::transmute(thread), core::mem::transmute(token.unwrap_or(core::mem::zeroed())), core::mem::transmute(copyonopen), core::mem::transmute(effectiveonly), core::mem::transmute(impersonationlevel)) } #[inline] -pub unsafe fn PsIsDiskCountersEnabled() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn PsIsDiskCountersEnabled() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PsIsDiskCountersEnabled() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn PsIsDiskCountersEnabled() -> bool); PsIsDiskCountersEnabled() } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn PsIsSystemThread(thread: super::super::Foundation::PETHREAD) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn PsIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PsIsSystemThread(thread: super::super::Foundation::PETHREAD) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn PsIsSystemThread(thread : super::super::Foundation:: PETHREAD) -> bool); PsIsSystemThread(core::mem::transmute(thread)) } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn PsIsThreadTerminating(thread: super::super::Foundation::PETHREAD) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn PsIsThreadTerminating(thread : super::super::Foundation:: PETHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PsIsThreadTerminating(thread: super::super::Foundation::PETHREAD) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn PsIsThreadTerminating(thread : super::super::Foundation:: PETHREAD) -> bool); PsIsThreadTerminating(core::mem::transmute(thread)) } #[cfg(feature = "Wdk_Foundation")] @@ -2640,8 +2640,8 @@ pub unsafe fn PsLookupThreadByThreadId(threadid: super::super::super::Win32::Fou } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn PsReferenceImpersonationToken(thread: super::super::Foundation::PETHREAD, copyonopen: *mut super::super::super::Win32::Foundation::BOOLEAN, effectiveonly: *mut super::super::super::Win32::Foundation::BOOLEAN, impersonationlevel: *mut super::super::super::Win32::Security::SECURITY_IMPERSONATION_LEVEL) -> *mut core::ffi::c_void { - windows_targets::link!("ntoskrnl.exe" "system" fn PsReferenceImpersonationToken(thread : super::super::Foundation:: PETHREAD, copyonopen : *mut super::super::super::Win32::Foundation:: BOOLEAN, effectiveonly : *mut super::super::super::Win32::Foundation:: BOOLEAN, impersonationlevel : *mut super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> *mut core::ffi::c_void); +pub unsafe fn PsReferenceImpersonationToken(thread: super::super::Foundation::PETHREAD, copyonopen: *mut bool, effectiveonly: *mut bool, impersonationlevel: *mut super::super::super::Win32::Security::SECURITY_IMPERSONATION_LEVEL) -> *mut core::ffi::c_void { + windows_targets::link!("ntoskrnl.exe" "system" fn PsReferenceImpersonationToken(thread : super::super::Foundation:: PETHREAD, copyonopen : *mut bool, effectiveonly : *mut bool, impersonationlevel : *mut super::super::super::Win32::Security:: SECURITY_IMPERSONATION_LEVEL) -> *mut core::ffi::c_void); PsReferenceImpersonationToken(core::mem::transmute(thread), core::mem::transmute(copyonopen), core::mem::transmute(effectiveonly), core::mem::transmute(impersonationlevel)) } #[cfg(feature = "Wdk_Foundation")] @@ -2779,11 +2779,11 @@ pub unsafe fn RtlCreateSystemVolumeInformationFolder(volumerootpath: *const supe RtlCreateSystemVolumeInformationFolder(core::mem::transmute(volumerootpath)) } #[inline] -pub unsafe fn RtlCreateUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: P1) -> super::super::super::Win32::Foundation::BOOLEAN +pub unsafe fn RtlCreateUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: P1) -> bool where P1: windows_core::Param, { - windows_targets::link!("ntdll.dll" "system" fn RtlCreateUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : windows_core::PCWSTR) -> super::super::super::Win32::Foundation:: BOOLEAN); + windows_targets::link!("ntdll.dll" "system" fn RtlCreateUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : windows_core::PCWSTR) -> bool); RtlCreateUnicodeString(core::mem::transmute(destinationstring), sourcestring.param().abi()) } #[cfg(feature = "Win32_Security")] @@ -2853,8 +2853,8 @@ where } #[inline] pub unsafe fn RtlDowncaseUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlDowncaseUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlDowncaseUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlDowncaseUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlDowncaseUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) } #[inline] pub unsafe fn RtlDuplicateUnicodeString(flags: u32, stringin: *const super::super::super::Win32::Foundation::UNICODE_STRING, stringout: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2863,14 +2863,14 @@ pub unsafe fn RtlDuplicateUnicodeString(flags: u32, stringin: *const super::supe } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn RtlEqualPrefixSid(sid1: super::super::super::Win32::Security::PSID, sid2: super::super::super::Win32::Security::PSID) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlEqualPrefixSid(sid1 : super::super::super::Win32::Security:: PSID, sid2 : super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlEqualPrefixSid(sid1: super::super::super::Win32::Security::PSID, sid2: super::super::super::Win32::Security::PSID) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlEqualPrefixSid(sid1 : super::super::super::Win32::Security:: PSID, sid2 : super::super::super::Win32::Security:: PSID) -> bool); RtlEqualPrefixSid(core::mem::transmute(sid1), core::mem::transmute(sid2)) } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn RtlEqualSid(sid1: super::super::super::Win32::Security::PSID, sid2: super::super::super::Win32::Security::PSID) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlEqualSid(sid1 : super::super::super::Win32::Security:: PSID, sid2 : super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlEqualSid(sid1: super::super::super::Win32::Security::PSID, sid2: super::super::super::Win32::Security::PSID) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlEqualSid(sid1 : super::super::super::Win32::Security:: PSID, sid2 : super::super::super::Win32::Security:: PSID) -> bool); RtlEqualSid(core::mem::transmute(sid1), core::mem::transmute(sid2)) } #[cfg(feature = "Wdk_Foundation")] @@ -2892,8 +2892,8 @@ pub unsafe fn RtlFreeSid(sid: super::super::super::Win32::Security::PSID) -> *mu } #[inline] pub unsafe fn RtlGenerate8dot3Name(name: *const super::super::super::Win32::Foundation::UNICODE_STRING, allowextendedcharacters: bool, context: *mut GENERATE_NAME_CONTEXT, name8dot3: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlGenerate8dot3Name(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allowextendedcharacters : super::super::super::Win32::Foundation:: BOOLEAN, context : *mut GENERATE_NAME_CONTEXT, name8dot3 : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlGenerate8dot3Name(core::mem::transmute(name), allowextendedcharacters.into(), core::mem::transmute(context), core::mem::transmute(name8dot3)) + windows_targets::link!("ntdll.dll" "system" fn RtlGenerate8dot3Name(name : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allowextendedcharacters : bool, context : *mut GENERATE_NAME_CONTEXT, name8dot3 : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlGenerate8dot3Name(core::mem::transmute(name), core::mem::transmute(allowextendedcharacters), core::mem::transmute(context), core::mem::transmute(name8dot3)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -2908,26 +2908,26 @@ pub unsafe fn RtlGetCompressionWorkSpaceSize(compressionformatandengine: u16, co } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn RtlGetDaclSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, daclpresent: *mut super::super::super::Win32::Foundation::BOOLEAN, dacl: *mut *mut super::super::super::Win32::Security::ACL, dacldefaulted: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlGetDaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, daclpresent : *mut super::super::super::Win32::Foundation:: BOOLEAN, dacl : *mut *mut super::super::super::Win32::Security:: ACL, dacldefaulted : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn RtlGetDaclSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, daclpresent: *mut bool, dacl: *mut *mut super::super::super::Win32::Security::ACL, dacldefaulted: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn RtlGetDaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, daclpresent : *mut bool, dacl : *mut *mut super::super::super::Win32::Security:: ACL, dacldefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); RtlGetDaclSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(daclpresent), core::mem::transmute(dacl), core::mem::transmute(dacldefaulted)) } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn RtlGetGroupSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, group: *mut super::super::super::Win32::Security::PSID, groupdefaulted: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlGetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : *mut super::super::super::Win32::Security:: PSID, groupdefaulted : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn RtlGetGroupSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, group: *mut super::super::super::Win32::Security::PSID, groupdefaulted: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn RtlGetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : *mut super::super::super::Win32::Security:: PSID, groupdefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); RtlGetGroupSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(group), core::mem::transmute(groupdefaulted)) } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn RtlGetOwnerSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, owner: *mut super::super::super::Win32::Security::PSID, ownerdefaulted: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlGetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : *mut super::super::super::Win32::Security:: PSID, ownerdefaulted : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn RtlGetOwnerSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, owner: *mut super::super::super::Win32::Security::PSID, ownerdefaulted: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn RtlGetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : *mut super::super::super::Win32::Security:: PSID, ownerdefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); RtlGetOwnerSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(owner), core::mem::transmute(ownerdefaulted)) } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn RtlGetSaclSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, saclpresent: *mut super::super::super::Win32::Foundation::BOOLEAN, sacl: *mut *mut super::super::super::Win32::Security::ACL, sacldefaulted: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlGetSaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, saclpresent : *mut super::super::super::Win32::Foundation:: BOOLEAN, sacl : *mut *mut super::super::super::Win32::Security:: ACL, sacldefaulted : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn RtlGetSaclSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, saclpresent: *mut bool, sacl: *mut *mut super::super::super::Win32::Security::ACL, sacldefaulted: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn RtlGetSaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, saclpresent : *mut bool, sacl : *mut *mut super::super::super::Win32::Security:: ACL, sacldefaulted : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); RtlGetSaclSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(saclpresent), core::mem::transmute(sacl), core::mem::transmute(sacldefaulted)) } #[cfg(feature = "Win32_Security")] @@ -2995,13 +2995,13 @@ pub unsafe fn RtlInitializeUnicodePrefix() -> UNICODE_PREFIX_TABLE { } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn RtlInsertUnicodePrefix(prefixtable: *const UNICODE_PREFIX_TABLE, prefix: *const super::super::super::Win32::Foundation::UNICODE_STRING, prefixtableentry: *mut UNICODE_PREFIX_TABLE_ENTRY) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn RtlInsertUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, prefix : *const super::super::super::Win32::Foundation:: UNICODE_STRING, prefixtableentry : *mut UNICODE_PREFIX_TABLE_ENTRY) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlInsertUnicodePrefix(prefixtable: *const UNICODE_PREFIX_TABLE, prefix: *const super::super::super::Win32::Foundation::UNICODE_STRING, prefixtableentry: *mut UNICODE_PREFIX_TABLE_ENTRY) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn RtlInsertUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, prefix : *const super::super::super::Win32::Foundation:: UNICODE_STRING, prefixtableentry : *mut UNICODE_PREFIX_TABLE_ENTRY) -> bool); RtlInsertUnicodePrefix(core::mem::transmute(prefixtable), core::mem::transmute(prefix), core::mem::transmute(prefixtableentry)) } #[inline] -pub unsafe fn RtlIsCloudFilesPlaceholder(fileattributes: u32, reparsetag: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlIsCloudFilesPlaceholder(fileattributes : u32, reparsetag : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlIsCloudFilesPlaceholder(fileattributes: u32, reparsetag: u32) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlIsCloudFilesPlaceholder(fileattributes : u32, reparsetag : u32) -> bool); RtlIsCloudFilesPlaceholder(core::mem::transmute(fileattributes), core::mem::transmute(reparsetag)) } #[inline] @@ -3013,42 +3013,42 @@ where RtlIsDosDeviceName_U(dosfilename.param().abi()) } #[inline] -pub unsafe fn RtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag: u32) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlIsNonEmptyDirectoryReparsePointAllowed(reparsetag : u32) -> bool); RtlIsNonEmptyDirectoryReparsePointAllowed(core::mem::transmute(reparsetag)) } #[inline] -pub unsafe fn RtlIsNormalizedString(normform: u32, sourcestring: P1, sourcestringlength: i32, normalized: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS +pub unsafe fn RtlIsNormalizedString(normform: u32, sourcestring: P1, sourcestringlength: i32, normalized: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS where P1: windows_core::Param, { - windows_targets::link!("ntdll.dll" "system" fn RtlIsNormalizedString(normform : u32, sourcestring : windows_core::PCWSTR, sourcestringlength : i32, normalized : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); + windows_targets::link!("ntdll.dll" "system" fn RtlIsNormalizedString(normform : u32, sourcestring : windows_core::PCWSTR, sourcestringlength : i32, normalized : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); RtlIsNormalizedString(core::mem::transmute(normform), sourcestring.param().abi(), core::mem::transmute(sourcestringlength), core::mem::transmute(normalized)) } #[inline] -pub unsafe fn RtlIsPartialPlaceholder(fileattributes: u32, reparsetag: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholder(fileattributes : u32, reparsetag : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlIsPartialPlaceholder(fileattributes: u32, reparsetag: u32) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholder(fileattributes : u32, reparsetag : u32) -> bool); RtlIsPartialPlaceholder(core::mem::transmute(fileattributes), core::mem::transmute(reparsetag)) } #[inline] -pub unsafe fn RtlIsPartialPlaceholderFileHandle(filehandle: super::super::super::Win32::Foundation::HANDLE, ispartialplaceholder: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholderFileHandle(filehandle : super::super::super::Win32::Foundation:: HANDLE, ispartialplaceholder : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn RtlIsPartialPlaceholderFileHandle(filehandle: super::super::super::Win32::Foundation::HANDLE, ispartialplaceholder: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholderFileHandle(filehandle : super::super::super::Win32::Foundation:: HANDLE, ispartialplaceholder : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); RtlIsPartialPlaceholderFileHandle(core::mem::transmute(filehandle), core::mem::transmute(ispartialplaceholder)) } #[inline] -pub unsafe fn RtlIsPartialPlaceholderFileInfo(infobuffer: *const core::ffi::c_void, infoclass: FILE_INFORMATION_CLASS, ispartialplaceholder: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholderFileInfo(infobuffer : *const core::ffi::c_void, infoclass : FILE_INFORMATION_CLASS, ispartialplaceholder : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn RtlIsPartialPlaceholderFileInfo(infobuffer: *const core::ffi::c_void, infoclass: FILE_INFORMATION_CLASS, ispartialplaceholder: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn RtlIsPartialPlaceholderFileInfo(infobuffer : *const core::ffi::c_void, infoclass : FILE_INFORMATION_CLASS, ispartialplaceholder : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); RtlIsPartialPlaceholderFileInfo(core::mem::transmute(infobuffer), core::mem::transmute(infoclass), core::mem::transmute(ispartialplaceholder)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn RtlIsSandboxedToken(context: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, previousmode: i8) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsSandboxedToken(context : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, previousmode : i8) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlIsSandboxedToken(context: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, previousmode: i8) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsSandboxedToken(context : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, previousmode : i8) -> bool); RtlIsSandboxedToken(core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(previousmode)) } #[inline] -pub unsafe fn RtlIsValidOemCharacter(char: windows_core::PWSTR) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsValidOemCharacter(char : windows_core::PWSTR) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlIsValidOemCharacter(char: windows_core::PWSTR) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsValidOemCharacter(char : windows_core::PWSTR) -> bool); RtlIsValidOemCharacter(core::mem::transmute(char)) } #[inline] @@ -3075,8 +3075,8 @@ pub unsafe fn RtlMultiByteToUnicodeSize(bytesinunicodestring: *mut u32, multibyt #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn RtlNextUnicodePrefix(prefixtable: *const UNICODE_PREFIX_TABLE, restart: bool) -> *mut UNICODE_PREFIX_TABLE_ENTRY { - windows_targets::link!("ntoskrnl.exe" "system" fn RtlNextUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, restart : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut UNICODE_PREFIX_TABLE_ENTRY); - RtlNextUnicodePrefix(core::mem::transmute(prefixtable), restart.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn RtlNextUnicodePrefix(prefixtable : *const UNICODE_PREFIX_TABLE, restart : bool) -> *mut UNICODE_PREFIX_TABLE_ENTRY); + RtlNextUnicodePrefix(core::mem::transmute(prefixtable), core::mem::transmute(restart)) } #[inline] pub unsafe fn RtlNormalizeString(normform: u32, sourcestring: P1, sourcestringlength: i32, destinationstring: windows_core::PWSTR, destinationstringlength: *mut i32) -> super::super::super::Win32::Foundation::NTSTATUS @@ -3094,14 +3094,14 @@ pub unsafe fn RtlNtStatusToDosErrorNoTeb(status: super::super::super::Win32::Fou #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlOemStringToCountedUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: *const super::super::super::Win32::System::Kernel::STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn RtlOemStringToCountedUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlOemStringToCountedUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn RtlOemStringToCountedUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlOemStringToCountedUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlOemStringToUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: *const super::super::super::Win32::System::Kernel::STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlOemStringToUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlOemStringToUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlOemStringToUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlOemStringToUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) } #[inline] pub unsafe fn RtlOemToUnicodeN(unicodestring: windows_core::PWSTR, maxbytesinunicodestring: u32, bytesinunicodestring: Option<*mut u32>, oemstring: &[u8]) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3110,13 +3110,13 @@ pub unsafe fn RtlOemToUnicodeN(unicodestring: windows_core::PWSTR, maxbytesinuni } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn RtlPrefixString(string1: *const super::super::super::Win32::System::Kernel::STRING, string2: *const super::super::super::Win32::System::Kernel::STRING, caseinsensitive: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlPrefixString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlPrefixString(core::mem::transmute(string1), core::mem::transmute(string2), caseinsensitive.into()) +pub unsafe fn RtlPrefixString(string1: *const super::super::super::Win32::System::Kernel::STRING, string2: *const super::super::super::Win32::System::Kernel::STRING, caseinsensitive: bool) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlPrefixString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : bool) -> bool); + RtlPrefixString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) } #[inline] -pub unsafe fn RtlQueryPackageIdentity(tokenobject: *const core::ffi::c_void, packagefullname: windows_core::PWSTR, packagesize: *mut usize, appid: Option, appidsize: Option<*mut usize>, packaged: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlQueryPackageIdentity(tokenobject : *const core::ffi::c_void, packagefullname : windows_core::PWSTR, packagesize : *mut usize, appid : windows_core::PWSTR, appidsize : *mut usize, packaged : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn RtlQueryPackageIdentity(tokenobject: *const core::ffi::c_void, packagefullname: windows_core::PWSTR, packagesize: *mut usize, appid: Option, appidsize: Option<*mut usize>, packaged: Option<*mut bool>) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn RtlQueryPackageIdentity(tokenobject : *const core::ffi::c_void, packagefullname : windows_core::PWSTR, packagesize : *mut usize, appid : windows_core::PWSTR, appidsize : *mut usize, packaged : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); RtlQueryPackageIdentity(core::mem::transmute(tokenobject), core::mem::transmute(packagefullname), core::mem::transmute(packagesize), core::mem::transmute(appid.unwrap_or(core::mem::zeroed())), core::mem::transmute(appidsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(packaged.unwrap_or(core::mem::zeroed()))) } #[inline] @@ -3196,14 +3196,14 @@ pub unsafe fn RtlSelfRelativeToAbsoluteSD(selfrelativesecuritydescriptor: super: #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlSetGroupSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, group: Option, groupdefaulted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlSetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : super::super::super::Win32::Security:: PSID, groupdefaulted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlSetGroupSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(group.unwrap_or(core::mem::zeroed())), groupdefaulted.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlSetGroupSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, group : super::super::super::Win32::Security:: PSID, groupdefaulted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlSetGroupSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(group.unwrap_or(core::mem::zeroed())), core::mem::transmute(groupdefaulted)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlSetOwnerSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, owner: Option, ownerdefaulted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlSetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : super::super::super::Win32::Security:: PSID, ownerdefaulted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlSetOwnerSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(owner.unwrap_or(core::mem::zeroed())), ownerdefaulted.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlSetOwnerSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, owner : super::super::super::Win32::Security:: PSID, ownerdefaulted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlSetOwnerSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(owner.unwrap_or(core::mem::zeroed())), core::mem::transmute(ownerdefaulted)) } #[inline] pub unsafe fn RtlSetProcessPlaceholderCompatibilityMode(mode: i8) -> i8 { @@ -3228,15 +3228,15 @@ pub unsafe fn RtlSubAuthoritySid(sid: super::super::super::Win32::Security::PSID RtlSubAuthoritySid(core::mem::transmute(sid), core::mem::transmute(subauthority)) } #[inline] -pub unsafe fn RtlTimeToSecondsSince1980(time: *const i64, elapsedseconds: *mut u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlTimeToSecondsSince1980(time : *const i64, elapsedseconds : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlTimeToSecondsSince1980(time: *const i64, elapsedseconds: *mut u32) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlTimeToSecondsSince1980(time : *const i64, elapsedseconds : *mut u32) -> bool); RtlTimeToSecondsSince1980(core::mem::transmute(time), core::mem::transmute(elapsedseconds)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUnicodeStringToCountedOemString(destinationstring: *mut super::super::super::Win32::System::Kernel::STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToCountedOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUnicodeStringToCountedOemString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToCountedOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlUnicodeStringToCountedOemString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) } #[inline] pub unsafe fn RtlUnicodeToCustomCPN(customcp: *const CPTABLEINFO, customcpstring: &mut [u8], bytesincustomcpstring: Option<*mut u32>, unicodestring: P4, bytesinunicodestring: u32) -> super::super::super::Win32::Foundation::NTSTATUS @@ -3259,14 +3259,14 @@ pub unsafe fn RtlUnicodeToOemN(oemstring: &mut [u8], bytesinoemstring: Option<*m #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUpcaseUnicodeStringToCountedOemString(destinationstring: *mut super::super::super::Win32::System::Kernel::STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeStringToCountedOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUpcaseUnicodeStringToCountedOemString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeStringToCountedOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlUpcaseUnicodeStringToCountedOemString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUpcaseUnicodeStringToOemString(destinationstring: *mut super::super::super::Win32::System::Kernel::STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeStringToOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUpcaseUnicodeStringToOemString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeStringToOemString(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlUpcaseUnicodeStringToOemString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) } #[inline] pub unsafe fn RtlUpcaseUnicodeToCustomCPN(customcp: *const CPTABLEINFO, customcpstring: &mut [u8], bytesincustomcpstring: Option<*mut u32>, unicodestring: P4, bytesinunicodestring: u32) -> super::super::super::Win32::Foundation::NTSTATUS @@ -3288,8 +3288,8 @@ pub unsafe fn RtlUpcaseUnicodeToOemN(oemstring: &mut [u8], bytesinoemstring: Opt } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn RtlValidSid(sid: super::super::super::Win32::Security::PSID) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlValidSid(sid : super::super::super::Win32::Security:: PSID) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlValidSid(sid: super::super::super::Win32::Security::PSID) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlValidSid(sid : super::super::super::Win32::Security:: PSID) -> bool); RtlValidSid(core::mem::transmute(sid)) } #[inline] @@ -3310,14 +3310,14 @@ pub unsafe fn RtlxUnicodeStringToOemSize(unicodestring: *const super::super::sup } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn SeAccessCheckFromState(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, primarytokeninformation: *const super::super::super::Win32::Security::TOKEN_ACCESS_INFORMATION, clienttokeninformation: Option<*const super::super::super::Win32::Security::TOKEN_ACCESS_INFORMATION>, desiredaccess: u32, previouslygrantedaccess: u32, privileges: Option<*mut *mut super::super::super::Win32::Security::PRIVILEGE_SET>, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, accessmode: i8, grantedaccess: *mut u32, accessstatus: *mut i32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheckFromState(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, primarytokeninformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, clienttokeninformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn SeAccessCheckFromState(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, primarytokeninformation: *const super::super::super::Win32::Security::TOKEN_ACCESS_INFORMATION, clienttokeninformation: Option<*const super::super::super::Win32::Security::TOKEN_ACCESS_INFORMATION>, desiredaccess: u32, previouslygrantedaccess: u32, privileges: Option<*mut *mut super::super::super::Win32::Security::PRIVILEGE_SET>, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, accessmode: i8, grantedaccess: *mut u32, accessstatus: *mut i32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheckFromState(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, primarytokeninformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, clienttokeninformation : *const super::super::super::Win32::Security:: TOKEN_ACCESS_INFORMATION, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> bool); SeAccessCheckFromState(core::mem::transmute(securitydescriptor), core::mem::transmute(primarytokeninformation), core::mem::transmute(clienttokeninformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess), core::mem::transmute(previouslygrantedaccess), core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), core::mem::transmute(genericmapping), core::mem::transmute(accessmode), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus)) } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn SeAccessCheckFromStateEx(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, primarytoken: *const core::ffi::c_void, clienttoken: Option<*const core::ffi::c_void>, desiredaccess: u32, previouslygrantedaccess: u32, privileges: Option<*mut *mut super::super::super::Win32::Security::PRIVILEGE_SET>, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, accessmode: i8, grantedaccess: *mut u32, accessstatus: *mut i32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheckFromStateEx(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, primarytoken : *const core::ffi::c_void, clienttoken : *const core::ffi::c_void, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn SeAccessCheckFromStateEx(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, primarytoken: *const core::ffi::c_void, clienttoken: Option<*const core::ffi::c_void>, desiredaccess: u32, previouslygrantedaccess: u32, privileges: Option<*mut *mut super::super::super::Win32::Security::PRIVILEGE_SET>, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, accessmode: i8, grantedaccess: *mut u32, accessstatus: *mut i32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheckFromStateEx(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, primarytoken : *const core::ffi::c_void, clienttoken : *const core::ffi::c_void, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> bool); SeAccessCheckFromStateEx(core::mem::transmute(securitydescriptor), core::mem::transmute(primarytoken), core::mem::transmute(clienttoken.unwrap_or(core::mem::zeroed())), core::mem::transmute(desiredaccess), core::mem::transmute(previouslygrantedaccess), core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), core::mem::transmute(genericmapping), core::mem::transmute(accessmode), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] @@ -3334,8 +3334,8 @@ pub unsafe fn SeAdjustAccessStateForTrustLabel(objecttype: *const core::ffi::c_v } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn SeAdjustObjectSecurity(objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, originaldescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, proposeddescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, adjusteddescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, applyadjusteddescriptor: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAdjustObjectSecurity(objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, originaldescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, proposeddescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, adjusteddescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, applyadjusteddescriptor : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn SeAdjustObjectSecurity(objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, originaldescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, proposeddescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, adjusteddescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, applyadjusteddescriptor: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntoskrnl.exe" "system" fn SeAdjustObjectSecurity(objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, originaldescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, proposeddescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, adjusteddescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, applyadjusteddescriptor : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); SeAdjustObjectSecurity(core::mem::transmute(objectname), core::mem::transmute(originaldescriptor), core::mem::transmute(proposeddescriptor), core::mem::transmute(subjectsecuritycontext), core::mem::transmute(adjusteddescriptor), core::mem::transmute(applyadjusteddescriptor)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] @@ -3346,18 +3346,18 @@ pub unsafe fn SeAppendPrivileges(accessstate: *mut super::super::Foundation::ACC } #[inline] pub unsafe fn SeAuditFipsCryptoSelftests(bsuccess: bool, selftestcode: u32) { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditFipsCryptoSelftests(bsuccess : super::super::super::Win32::Foundation:: BOOLEAN, selftestcode : u32)); - SeAuditFipsCryptoSelftests(bsuccess.into(), core::mem::transmute(selftestcode)) + windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditFipsCryptoSelftests(bsuccess : bool, selftestcode : u32)); + SeAuditFipsCryptoSelftests(core::mem::transmute(bsuccess), core::mem::transmute(selftestcode)) } #[inline] pub unsafe fn SeAuditHardLinkCreation(filename: *const super::super::super::Win32::Foundation::UNICODE_STRING, linkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, bsuccess: bool) { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditHardLinkCreation(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, linkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, bsuccess : super::super::super::Win32::Foundation:: BOOLEAN)); - SeAuditHardLinkCreation(core::mem::transmute(filename), core::mem::transmute(linkname), bsuccess.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditHardLinkCreation(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, linkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, bsuccess : bool)); + SeAuditHardLinkCreation(core::mem::transmute(filename), core::mem::transmute(linkname), core::mem::transmute(bsuccess)) } #[inline] pub unsafe fn SeAuditHardLinkCreationWithTransaction(filename: *const super::super::super::Win32::Foundation::UNICODE_STRING, linkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, bsuccess: bool, transactionid: Option<*const windows_core::GUID>) { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditHardLinkCreationWithTransaction(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, linkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, bsuccess : super::super::super::Win32::Foundation:: BOOLEAN, transactionid : *const windows_core::GUID)); - SeAuditHardLinkCreationWithTransaction(core::mem::transmute(filename), core::mem::transmute(linkname), bsuccess.into(), core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditHardLinkCreationWithTransaction(filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, linkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, bsuccess : bool, transactionid : *const windows_core::GUID)); + SeAuditHardLinkCreationWithTransaction(core::mem::transmute(filename), core::mem::transmute(linkname), core::mem::transmute(bsuccess), core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn SeAuditTransactionStateChange(transactionid: *const windows_core::GUID, resourcemanagerid: *const windows_core::GUID, newtransactionstate: u32) { @@ -3366,51 +3366,51 @@ pub unsafe fn SeAuditTransactionStateChange(transactionid: *const windows_core:: } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn SeAuditingAnyFileEventsWithContext(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingAnyFileEventsWithContext(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn SeAuditingAnyFileEventsWithContext(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingAnyFileEventsWithContext(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool); SeAuditingAnyFileEventsWithContext(core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn SeAuditingAnyFileEventsWithContextEx(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, stagingenabled: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingAnyFileEventsWithContextEx(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, stagingenabled : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn SeAuditingAnyFileEventsWithContextEx(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, stagingenabled: Option<*mut bool>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingAnyFileEventsWithContextEx(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, stagingenabled : *mut bool) -> bool); SeAuditingAnyFileEventsWithContextEx(core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(stagingenabled.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn SeAuditingFileEvents(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEvents(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingFileEvents(accessgranted.into(), core::mem::transmute(securitydescriptor)) +pub unsafe fn SeAuditingFileEvents(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEvents(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool); + SeAuditingFileEvents(core::mem::transmute(accessgranted), core::mem::transmute(securitydescriptor)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn SeAuditingFileEventsWithContext(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContext(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingFileEventsWithContext(accessgranted.into(), core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed()))) +pub unsafe fn SeAuditingFileEventsWithContext(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContext(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool); + SeAuditingFileEventsWithContext(core::mem::transmute(accessgranted), core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn SeAuditingFileEventsWithContextEx(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, stagingenabled: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContextEx(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, stagingenabled : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingFileEventsWithContextEx(accessgranted.into(), core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(stagingenabled.unwrap_or(core::mem::zeroed()))) +pub unsafe fn SeAuditingFileEventsWithContextEx(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>, stagingenabled: Option<*mut bool>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileEventsWithContextEx(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, stagingenabled : *mut bool) -> bool); + SeAuditingFileEventsWithContextEx(core::mem::transmute(accessgranted), core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(stagingenabled.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn SeAuditingFileOrGlobalEvents(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileOrGlobalEvents(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingFileOrGlobalEvents(accessgranted.into(), core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext)) +pub unsafe fn SeAuditingFileOrGlobalEvents(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingFileOrGlobalEvents(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool); + SeAuditingFileOrGlobalEvents(core::mem::transmute(accessgranted), core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext)) } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn SeAuditingHardLinkEvents(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEvents(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingHardLinkEvents(accessgranted.into(), core::mem::transmute(securitydescriptor)) +pub unsafe fn SeAuditingHardLinkEvents(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEvents(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool); + SeAuditingHardLinkEvents(core::mem::transmute(accessgranted), core::mem::transmute(securitydescriptor)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn SeAuditingHardLinkEventsWithContext(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEventsWithContext(accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAuditingHardLinkEventsWithContext(accessgranted.into(), core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed()))) +pub unsafe fn SeAuditingHardLinkEventsWithContext(accessgranted: bool, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: Option<*const super::super::Foundation::SECURITY_SUBJECT_CONTEXT>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeAuditingHardLinkEventsWithContext(accessgranted : bool, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT) -> bool); + SeAuditingHardLinkEventsWithContext(core::mem::transmute(accessgranted), core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -3422,8 +3422,8 @@ pub unsafe fn SeCaptureSubjectContextEx(thread: Option super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeCheckForCriticalAceRemoval(currentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, aceremoved : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +pub unsafe fn SeCheckForCriticalAceRemoval(currentdescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, newdescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeCheckForCriticalAceRemoval(currentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, aceremoved : *mut bool)); let mut result__ = core::mem::zeroed(); SeCheckForCriticalAceRemoval(core::mem::transmute(currentdescriptor), core::mem::transmute(newdescriptor), core::mem::transmute(subjectsecuritycontext), &mut result__); result__ @@ -3431,14 +3431,14 @@ pub unsafe fn SeCheckForCriticalAceRemoval(currentdescriptor: super::super::supe #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeCreateClientSecurity(clientthread: super::super::Foundation::PETHREAD, clientsecurityqos: *const super::super::super::Win32::Security::SECURITY_QUALITY_OF_SERVICE, remotesession: bool, clientcontext: *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn SeCreateClientSecurity(clientthread : super::super::Foundation:: PETHREAD, clientsecurityqos : *const super::super::super::Win32::Security:: SECURITY_QUALITY_OF_SERVICE, remotesession : super::super::super::Win32::Foundation:: BOOLEAN, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeCreateClientSecurity(core::mem::transmute(clientthread), core::mem::transmute(clientsecurityqos), remotesession.into(), core::mem::transmute(clientcontext)) + windows_targets::link!("ntoskrnl.exe" "system" fn SeCreateClientSecurity(clientthread : super::super::Foundation:: PETHREAD, clientsecurityqos : *const super::super::super::Win32::Security:: SECURITY_QUALITY_OF_SERVICE, remotesession : bool, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); + SeCreateClientSecurity(core::mem::transmute(clientthread), core::mem::transmute(clientsecurityqos), core::mem::transmute(remotesession), core::mem::transmute(clientcontext)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeCreateClientSecurityFromSubjectContext(subjectcontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, clientsecurityqos: *const super::super::super::Win32::Security::SECURITY_QUALITY_OF_SERVICE, serverisremote: bool, clientcontext: *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn SeCreateClientSecurityFromSubjectContext(subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, clientsecurityqos : *const super::super::super::Win32::Security:: SECURITY_QUALITY_OF_SERVICE, serverisremote : super::super::super::Win32::Foundation:: BOOLEAN, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeCreateClientSecurityFromSubjectContext(core::mem::transmute(subjectcontext), core::mem::transmute(clientsecurityqos), serverisremote.into(), core::mem::transmute(clientcontext)) + windows_targets::link!("ntoskrnl.exe" "system" fn SeCreateClientSecurityFromSubjectContext(subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, clientsecurityqos : *const super::super::super::Win32::Security:: SECURITY_QUALITY_OF_SERVICE, serverisremote : bool, clientcontext : *mut SECURITY_CLIENT_CONTEXT) -> super::super::super::Win32::Foundation:: NTSTATUS); + SeCreateClientSecurityFromSubjectContext(core::mem::transmute(subjectcontext), core::mem::transmute(clientsecurityqos), core::mem::transmute(serverisremote), core::mem::transmute(clientcontext)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -3458,9 +3458,9 @@ pub unsafe fn SeDeleteObjectAuditAlarmWithTransaction(object: *const core::ffi:: } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn SeExamineSacl(sacl: *const super::super::super::Win32::Security::ACL, resourcesacl: *const super::super::super::Win32::Security::ACL, token: *const core::ffi::c_void, desiredaccess: u32, accessgranted: bool, generateaudit: *mut super::super::super::Win32::Foundation::BOOLEAN, generatealarm: *mut super::super::super::Win32::Foundation::BOOLEAN) { - windows_targets::link!("ntoskrnl.exe" "system" fn SeExamineSacl(sacl : *const super::super::super::Win32::Security:: ACL, resourcesacl : *const super::super::super::Win32::Security:: ACL, token : *const core::ffi::c_void, desiredaccess : u32, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, generateaudit : *mut super::super::super::Win32::Foundation:: BOOLEAN, generatealarm : *mut super::super::super::Win32::Foundation:: BOOLEAN)); - SeExamineSacl(core::mem::transmute(sacl), core::mem::transmute(resourcesacl), core::mem::transmute(token), core::mem::transmute(desiredaccess), accessgranted.into(), core::mem::transmute(generateaudit), core::mem::transmute(generatealarm)) +pub unsafe fn SeExamineSacl(sacl: *const super::super::super::Win32::Security::ACL, resourcesacl: *const super::super::super::Win32::Security::ACL, token: *const core::ffi::c_void, desiredaccess: u32, accessgranted: bool, generateaudit: *mut bool, generatealarm: *mut bool) { + windows_targets::link!("ntoskrnl.exe" "system" fn SeExamineSacl(sacl : *const super::super::super::Win32::Security:: ACL, resourcesacl : *const super::super::super::Win32::Security:: ACL, token : *const core::ffi::c_void, desiredaccess : u32, accessgranted : bool, generateaudit : *mut bool, generatealarm : *mut bool)); + SeExamineSacl(core::mem::transmute(sacl), core::mem::transmute(resourcesacl), core::mem::transmute(token), core::mem::transmute(desiredaccess), core::mem::transmute(accessgranted), core::mem::transmute(generateaudit), core::mem::transmute(generatealarm)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -3505,40 +3505,40 @@ pub unsafe fn SeMarkLogonSessionForTerminationNotificationEx(logonid: *const sup } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] -pub unsafe fn SeOpenObjectAuditAlarm(objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, object: Option<*const core::ffi::c_void>, absoluteobjectname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: bool, accessgranted: bool, accessmode: i8) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectAuditAlarm(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, accessmode : i8, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +pub unsafe fn SeOpenObjectAuditAlarm(objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, object: Option<*const core::ffi::c_void>, absoluteobjectname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: bool, accessgranted: bool, accessmode: i8) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectAuditAlarm(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, generateonclose : *mut bool)); let mut result__ = core::mem::zeroed(); - SeOpenObjectAuditAlarm(core::mem::transmute(objecttypename), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate), objectcreated.into(), accessgranted.into(), core::mem::transmute(accessmode), &mut result__); + SeOpenObjectAuditAlarm(core::mem::transmute(objecttypename), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate), core::mem::transmute(objectcreated), core::mem::transmute(accessgranted), core::mem::transmute(accessmode), &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] -pub unsafe fn SeOpenObjectAuditAlarmWithTransaction(objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, object: Option<*const core::ffi::c_void>, absoluteobjectname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: bool, accessgranted: bool, accessmode: i8, transactionid: Option<*const windows_core::GUID>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectAuditAlarmWithTransaction(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, accessmode : i8, transactionid : *const windows_core::GUID, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +pub unsafe fn SeOpenObjectAuditAlarmWithTransaction(objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, object: Option<*const core::ffi::c_void>, absoluteobjectname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: bool, accessgranted: bool, accessmode: i8, transactionid: Option<*const windows_core::GUID>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectAuditAlarmWithTransaction(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, transactionid : *const windows_core::GUID, generateonclose : *mut bool)); let mut result__ = core::mem::zeroed(); - SeOpenObjectAuditAlarmWithTransaction(core::mem::transmute(objecttypename), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate), objectcreated.into(), accessgranted.into(), core::mem::transmute(accessmode), core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed())), &mut result__); + SeOpenObjectAuditAlarmWithTransaction(core::mem::transmute(objecttypename), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate), core::mem::transmute(objectcreated), core::mem::transmute(accessgranted), core::mem::transmute(accessmode), core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed())), &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] -pub unsafe fn SeOpenObjectForDeleteAuditAlarm(objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, object: Option<*const core::ffi::c_void>, absoluteobjectname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: bool, accessgranted: bool, accessmode: i8) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectForDeleteAuditAlarm(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, accessmode : i8, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +pub unsafe fn SeOpenObjectForDeleteAuditAlarm(objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, object: Option<*const core::ffi::c_void>, absoluteobjectname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: bool, accessgranted: bool, accessmode: i8) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectForDeleteAuditAlarm(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, generateonclose : *mut bool)); let mut result__ = core::mem::zeroed(); - SeOpenObjectForDeleteAuditAlarm(core::mem::transmute(objecttypename), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate), objectcreated.into(), accessgranted.into(), core::mem::transmute(accessmode), &mut result__); + SeOpenObjectForDeleteAuditAlarm(core::mem::transmute(objecttypename), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate), core::mem::transmute(objectcreated), core::mem::transmute(accessgranted), core::mem::transmute(accessmode), &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] -pub unsafe fn SeOpenObjectForDeleteAuditAlarmWithTransaction(objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, object: Option<*const core::ffi::c_void>, absoluteobjectname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: bool, accessgranted: bool, accessmode: i8, transactionid: Option<*const windows_core::GUID>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectForDeleteAuditAlarmWithTransaction(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, accessmode : i8, transactionid : *const windows_core::GUID, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN)); +pub unsafe fn SeOpenObjectForDeleteAuditAlarmWithTransaction(objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, object: Option<*const core::ffi::c_void>, absoluteobjectname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE, objectcreated: bool, accessgranted: bool, accessmode: i8, transactionid: Option<*const windows_core::GUID>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeOpenObjectForDeleteAuditAlarmWithTransaction(objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, object : *const core::ffi::c_void, absoluteobjectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE, objectcreated : bool, accessgranted : bool, accessmode : i8, transactionid : *const windows_core::GUID, generateonclose : *mut bool)); let mut result__ = core::mem::zeroed(); - SeOpenObjectForDeleteAuditAlarmWithTransaction(core::mem::transmute(objecttypename), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate), objectcreated.into(), accessgranted.into(), core::mem::transmute(accessmode), core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed())), &mut result__); + SeOpenObjectForDeleteAuditAlarmWithTransaction(core::mem::transmute(objecttypename), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(absoluteobjectname.unwrap_or(core::mem::zeroed())), core::mem::transmute(securitydescriptor), core::mem::transmute(accessstate), core::mem::transmute(objectcreated), core::mem::transmute(accessgranted), core::mem::transmute(accessmode), core::mem::transmute(transactionid.unwrap_or(core::mem::zeroed())), &mut result__); result__ } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn SePrivilegeCheck(requiredprivileges: *mut super::super::super::Win32::Security::PRIVILEGE_SET, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, accessmode: i8) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SePrivilegeCheck(requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, accessmode : i8) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn SePrivilegeCheck(requiredprivileges: *mut super::super::super::Win32::Security::PRIVILEGE_SET, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, accessmode: i8) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SePrivilegeCheck(requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, accessmode : i8) -> bool); SePrivilegeCheck(core::mem::transmute(requiredprivileges), core::mem::transmute(subjectsecuritycontext), core::mem::transmute(accessmode)) } #[inline] @@ -3570,8 +3570,8 @@ pub unsafe fn SeQuerySessionIdToken(token: *const core::ffi::c_void, sessionid: SeQuerySessionIdToken(core::mem::transmute(token), core::mem::transmute(sessionid)) } #[inline] -pub unsafe fn SeQuerySessionIdTokenEx(token: *const core::ffi::c_void, sessionid: *mut u32, isservicesession: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn SeQuerySessionIdTokenEx(token : *const core::ffi::c_void, sessionid : *mut u32, isservicesession : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn SeQuerySessionIdTokenEx(token: *const core::ffi::c_void, sessionid: *mut u32, isservicesession: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntoskrnl.exe" "system" fn SeQuerySessionIdTokenEx(token : *const core::ffi::c_void, sessionid : *mut u32, isservicesession : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); SeQuerySessionIdTokenEx(core::mem::transmute(token), core::mem::transmute(sessionid), core::mem::transmute(isservicesession)) } #[inline] @@ -3610,8 +3610,8 @@ pub unsafe fn SeSetSecurityDescriptorInfoEx(object: Option<*const core::ffi::c_v } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security"))] #[inline] -pub unsafe fn SeShouldCheckForAccessRightsFromParent(objecttype: *const core::ffi::c_void, childdescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeShouldCheckForAccessRightsFromParent(objecttype : *const core::ffi::c_void, childdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn SeShouldCheckForAccessRightsFromParent(objecttype: *const core::ffi::c_void, childdescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, accessstate: *const super::super::Foundation::ACCESS_STATE) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeShouldCheckForAccessRightsFromParent(objecttype : *const core::ffi::c_void, childdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, accessstate : *const super::super::Foundation:: ACCESS_STATE) -> bool); SeShouldCheckForAccessRightsFromParent(core::mem::transmute(objecttype), core::mem::transmute(childdescriptor), core::mem::transmute(accessstate)) } #[cfg(feature = "Win32_Security")] @@ -3621,18 +3621,18 @@ pub unsafe fn SeTokenFromAccessInformation(accessinformation: Option<*const supe SeTokenFromAccessInformation(core::mem::transmute(accessinformation.unwrap_or(core::mem::zeroed())), core::mem::transmute(token.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(requiredlength)) } #[inline] -pub unsafe fn SeTokenIsAdmin(token: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsAdmin(token : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn SeTokenIsAdmin(token: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsAdmin(token : *const core::ffi::c_void) -> bool); SeTokenIsAdmin(core::mem::transmute(token)) } #[inline] -pub unsafe fn SeTokenIsRestricted(token: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsRestricted(token : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn SeTokenIsRestricted(token: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsRestricted(token : *const core::ffi::c_void) -> bool); SeTokenIsRestricted(core::mem::transmute(token)) } #[inline] -pub unsafe fn SeTokenIsWriteRestricted(token: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsWriteRestricted(token : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn SeTokenIsWriteRestricted(token: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeTokenIsWriteRestricted(token : *const core::ffi::c_void) -> bool); SeTokenIsWriteRestricted(core::mem::transmute(token)) } #[cfg(feature = "Win32_Security")] @@ -3671,18 +3671,18 @@ pub unsafe fn SecLookupWellKnownSid(sidtype: super::super::super::Win32::Securit } #[inline] pub unsafe fn SecMakeSPN(serviceclass: *mut super::super::super::Win32::Foundation::UNICODE_STRING, servicename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, instancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, instanceport: u16, referrer: *mut super::super::super::Win32::Foundation::UNICODE_STRING, spn: *mut super::super::super::Win32::Foundation::UNICODE_STRING, length: *mut u32, allocate: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPN(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, length : *mut u32, allocate : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - SecMakeSPN(core::mem::transmute(serviceclass), core::mem::transmute(servicename), core::mem::transmute(instancename), core::mem::transmute(instanceport), core::mem::transmute(referrer), core::mem::transmute(spn), core::mem::transmute(length), allocate.into()) + windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPN(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, length : *mut u32, allocate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + SecMakeSPN(core::mem::transmute(serviceclass), core::mem::transmute(servicename), core::mem::transmute(instancename), core::mem::transmute(instanceport), core::mem::transmute(referrer), core::mem::transmute(spn), core::mem::transmute(length), core::mem::transmute(allocate)) } #[inline] pub unsafe fn SecMakeSPNEx(serviceclass: *mut super::super::super::Win32::Foundation::UNICODE_STRING, servicename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, instancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, instanceport: u16, referrer: *mut super::super::super::Win32::Foundation::UNICODE_STRING, targetinfo: *mut super::super::super::Win32::Foundation::UNICODE_STRING, spn: *mut super::super::super::Win32::Foundation::UNICODE_STRING, length: *mut u32, allocate: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPNEx(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, targetinfo : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, length : *mut u32, allocate : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - SecMakeSPNEx(core::mem::transmute(serviceclass), core::mem::transmute(servicename), core::mem::transmute(instancename), core::mem::transmute(instanceport), core::mem::transmute(referrer), core::mem::transmute(targetinfo), core::mem::transmute(spn), core::mem::transmute(length), allocate.into()) + windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPNEx(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, targetinfo : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, length : *mut u32, allocate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + SecMakeSPNEx(core::mem::transmute(serviceclass), core::mem::transmute(servicename), core::mem::transmute(instancename), core::mem::transmute(instanceport), core::mem::transmute(referrer), core::mem::transmute(targetinfo), core::mem::transmute(spn), core::mem::transmute(length), core::mem::transmute(allocate)) } #[inline] pub unsafe fn SecMakeSPNEx2(serviceclass: *mut super::super::super::Win32::Foundation::UNICODE_STRING, servicename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, instancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING, instanceport: u16, referrer: *mut super::super::super::Win32::Foundation::UNICODE_STRING, intargetinfo: *mut super::super::super::Win32::Foundation::UNICODE_STRING, spn: *mut super::super::super::Win32::Foundation::UNICODE_STRING, totalsize: *mut u32, allocate: bool, istargetinfomarshaled: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPNEx2(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, intargetinfo : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, totalsize : *mut u32, allocate : super::super::super::Win32::Foundation:: BOOLEAN, istargetinfomarshaled : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - SecMakeSPNEx2(core::mem::transmute(serviceclass), core::mem::transmute(servicename), core::mem::transmute(instancename), core::mem::transmute(instanceport), core::mem::transmute(referrer), core::mem::transmute(intargetinfo), core::mem::transmute(spn), core::mem::transmute(totalsize), allocate.into(), istargetinfomarshaled.into()) + windows_targets::link!("ksecdd.sys" "system" fn SecMakeSPNEx2(serviceclass : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, instanceport : u16, referrer : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, intargetinfo : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, spn : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, totalsize : *mut u32, allocate : bool, istargetinfomarshaled : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + SecMakeSPNEx2(core::mem::transmute(serviceclass), core::mem::transmute(servicename), core::mem::transmute(instancename), core::mem::transmute(instanceport), core::mem::transmute(referrer), core::mem::transmute(intargetinfo), core::mem::transmute(spn), core::mem::transmute(totalsize), core::mem::transmute(allocate), core::mem::transmute(istargetinfomarshaled)) } #[inline] pub unsafe fn SetContextAttributesW(phcontext: *const SecHandle, ulattribute: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32) -> windows_core::Result<()> { @@ -3842,9 +3842,9 @@ pub unsafe fn VerifySignature(phcontext: *const SecHandle, pmessage: *const SecB } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn ZwAccessCheckAndAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut i32, generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwAccessCheckAndAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objecttypename), core::mem::transmute(objectname), core::mem::transmute(securitydescriptor), core::mem::transmute(desiredaccess), core::mem::transmute(genericmapping), objectcreation.into(), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose)) +pub unsafe fn ZwAccessCheckAndAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut i32, generateonclose: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwAccessCheckAndAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(objecttypename), core::mem::transmute(objectname), core::mem::transmute(securitydescriptor), core::mem::transmute(desiredaccess), core::mem::transmute(genericmapping), core::mem::transmute(objectcreation), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -3863,9 +3863,9 @@ pub unsafe fn ZwAccessCheckByTypeAndAuditAlarm( objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut i32, - generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN, + generateonclose: *mut bool, ) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); + windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); ZwAccessCheckByTypeAndAuditAlarm( core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), @@ -3879,7 +3879,7 @@ pub unsafe fn ZwAccessCheckByTypeAndAuditAlarm( core::mem::transmute(objecttypelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), objecttypelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(genericmapping), - objectcreation.into(), + core::mem::transmute(objectcreation), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose), @@ -3903,9 +3903,9 @@ pub unsafe fn ZwAccessCheckByTypeResultListAndAuditAlarm( objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut i32, - generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN, + generateonclose: *mut bool, ) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeResultListAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); + windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeResultListAndAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); ZwAccessCheckByTypeResultListAndAuditAlarm( core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), @@ -3919,7 +3919,7 @@ pub unsafe fn ZwAccessCheckByTypeResultListAndAuditAlarm( core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(objecttypelistlength), core::mem::transmute(genericmapping), - objectcreation.into(), + core::mem::transmute(objectcreation), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose), @@ -3944,9 +3944,9 @@ pub unsafe fn ZwAccessCheckByTypeResultListAndAuditAlarmByHandle( objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut i32, - generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN, + generateonclose: *mut bool, ) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); + windows_targets::link!("ntdll.dll" "system" fn ZwAccessCheckByTypeResultListAndAuditAlarmByHandle(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, principalselfsid : super::super::super::Win32::Security:: PSID, desiredaccess : u32, audittype : super::super::super::Win32::Security:: AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *const super::super::super::Win32::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, objectcreation : bool, grantedaccess : *mut u32, accessstatus : *mut i32, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); ZwAccessCheckByTypeResultListAndAuditAlarmByHandle( core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), @@ -3961,7 +3961,7 @@ pub unsafe fn ZwAccessCheckByTypeResultListAndAuditAlarmByHandle( core::mem::transmute(objecttypelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(objecttypelistlength), core::mem::transmute(genericmapping), - objectcreation.into(), + core::mem::transmute(objectcreation), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus), core::mem::transmute(generateonclose), @@ -3970,14 +3970,14 @@ pub unsafe fn ZwAccessCheckByTypeResultListAndAuditAlarmByHandle( #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwAdjustGroupsToken(tokenhandle: super::super::super::Win32::Foundation::HANDLE, resettodefault: bool, newstate: Option<*const super::super::super::Win32::Security::TOKEN_GROUPS>, bufferlength: u32, previousstate: Option<*mut super::super::super::Win32::Security::TOKEN_GROUPS>, returnlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwAdjustGroupsToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, resettodefault : super::super::super::Win32::Foundation:: BOOLEAN, newstate : *const super::super::super::Win32::Security:: TOKEN_GROUPS, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_GROUPS, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwAdjustGroupsToken(core::mem::transmute(tokenhandle), resettodefault.into(), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength)) + windows_targets::link!("ntdll.dll" "system" fn ZwAdjustGroupsToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, resettodefault : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_GROUPS, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_GROUPS, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwAdjustGroupsToken(core::mem::transmute(tokenhandle), core::mem::transmute(resettodefault), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwAdjustPrivilegesToken(tokenhandle: super::super::super::Win32::Foundation::HANDLE, disableallprivileges: bool, newstate: Option<*const super::super::super::Win32::Security::TOKEN_PRIVILEGES>, bufferlength: u32, previousstate: Option<*mut super::super::super::Win32::Security::TOKEN_PRIVILEGES>, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwAdjustPrivilegesToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, disableallprivileges : super::super::super::Win32::Foundation:: BOOLEAN, newstate : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwAdjustPrivilegesToken(core::mem::transmute(tokenhandle), disableallprivileges.into(), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("ntdll.dll" "system" fn ZwAdjustPrivilegesToken(tokenhandle : super::super::super::Win32::Foundation:: HANDLE, disableallprivileges : bool, newstate : *const super::super::super::Win32::Security:: TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut super::super::super::Win32::Security:: TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwAdjustPrivilegesToken(core::mem::transmute(tokenhandle), core::mem::transmute(disableallprivileges), core::mem::transmute(newstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(bufferlength), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed())), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwAllocateVirtualMemory(processhandle: super::super::super::Win32::Foundation::HANDLE, baseaddress: *mut *mut core::ffi::c_void, zerobits: usize, regionsize: *mut usize, allocationtype: u32, protect: u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3998,8 +3998,8 @@ pub unsafe fn ZwCancelIoFileEx(filehandle: super::super::super::Win32::Foundatio } #[inline] pub unsafe fn ZwCloseObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, generateonclose: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwCloseObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCloseObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), generateonclose.into()) + windows_targets::link!("ntdll.dll" "system" fn ZwCloseObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwCloseObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(generateonclose)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -4010,8 +4010,8 @@ pub unsafe fn ZwCreateDirectoryObject(directoryhandle: *mut super::super::super: #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn ZwCreateEvent(eventhandle: *mut super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, eventtype: super::super::super::Win32::System::Kernel::EVENT_TYPE, initialstate: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwCreateEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, eventtype : super::super::super::Win32::System::Kernel:: EVENT_TYPE, initialstate : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCreateEvent(core::mem::transmute(eventhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventtype), initialstate.into()) + windows_targets::link!("ntdll.dll" "system" fn ZwCreateEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, eventtype : super::super::super::Win32::System::Kernel:: EVENT_TYPE, initialstate : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwCreateEvent(core::mem::transmute(eventhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventtype), core::mem::transmute(initialstate)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Memory"))] #[inline] @@ -4037,8 +4037,8 @@ pub unsafe fn ZwDeleteFile(objectattributes: *const super::super::Foundation::OB } #[inline] pub unsafe fn ZwDeleteObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, generateonclose: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwDeleteObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwDeleteObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), generateonclose.into()) + windows_targets::link!("ntdll.dll" "system" fn ZwDeleteObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, generateonclose : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwDeleteObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(generateonclose)) } #[inline] pub unsafe fn ZwDuplicateObject(sourceprocesshandle: super::super::super::Win32::Foundation::HANDLE, sourcehandle: super::super::super::Win32::Foundation::HANDLE, targetprocesshandle: Option, targethandle: Option<*mut super::super::super::Win32::Foundation::HANDLE>, desiredaccess: u32, handleattributes: u32, options: u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -4048,8 +4048,8 @@ pub unsafe fn ZwDuplicateObject(sourceprocesshandle: super::super::super::Win32: #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ZwDuplicateToken(existingtokenhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, objectattributes: Option<*const super::super::Foundation::OBJECT_ATTRIBUTES>, effectiveonly: bool, tokentype: super::super::super::Win32::Security::TOKEN_TYPE, newtokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwDuplicateToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, effectiveonly : super::super::super::Win32::Foundation:: BOOLEAN, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwDuplicateToken(core::mem::transmute(existingtokenhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), effectiveonly.into(), core::mem::transmute(tokentype), core::mem::transmute(newtokenhandle)) + windows_targets::link!("ntdll.dll" "system" fn ZwDuplicateToken(existingtokenhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, effectiveonly : bool, tokentype : super::super::super::Win32::Security:: TOKEN_TYPE, newtokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwDuplicateToken(core::mem::transmute(existingtokenhandle), core::mem::transmute(desiredaccess), core::mem::transmute(objectattributes.unwrap_or(core::mem::zeroed())), core::mem::transmute(effectiveonly), core::mem::transmute(tokentype), core::mem::transmute(newtokenhandle)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -4105,14 +4105,14 @@ pub unsafe fn ZwImpersonateAnonymousToken(threadhandle: super::super::super::Win #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwLockFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, byteoffset: *const i64, length: *const i64, key: u32, failimmediately: bool, exclusivelock: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwLockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32, failimmediately : super::super::super::Win32::Foundation:: BOOLEAN, exclusivelock : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwLockFile(core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(byteoffset), core::mem::transmute(length), core::mem::transmute(key), failimmediately.into(), exclusivelock.into()) + windows_targets::link!("ntdll.dll" "system" fn ZwLockFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, byteoffset : *const i64, length : *const i64, key : u32, failimmediately : bool, exclusivelock : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwLockFile(core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(byteoffset), core::mem::transmute(length), core::mem::transmute(key), core::mem::transmute(failimmediately), core::mem::transmute(exclusivelock)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwNotifyChangeKey(keyhandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, completionfilter: u32, watchtree: bool, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, asynchronous: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwNotifyChangeKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwNotifyChangeKey(core::mem::transmute(keyhandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(completionfilter), watchtree.into(), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), asynchronous.into()) + windows_targets::link!("ntdll.dll" "system" fn ZwNotifyChangeKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwNotifyChangeKey(core::mem::transmute(keyhandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(apcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(completionfilter), core::mem::transmute(watchtree), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), core::mem::transmute(asynchronous)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -4122,8 +4122,8 @@ pub unsafe fn ZwOpenDirectoryObject(directoryhandle: *mut super::super::super::W } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn ZwOpenObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, securitydescriptor: Option, clienttoken: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const super::super::super::Win32::Security::PRIVILEGE_SET>, objectcreation: bool, accessgranted: bool, generateonclose: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwOpenObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, objectcreation : super::super::super::Win32::Foundation:: BOOLEAN, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN, generateonclose : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn ZwOpenObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, objecttypename: *const super::super::super::Win32::Foundation::UNICODE_STRING, objectname: *const super::super::super::Win32::Foundation::UNICODE_STRING, securitydescriptor: Option, clienttoken: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const super::super::super::Win32::Security::PRIVILEGE_SET>, objectcreation: bool, accessgranted: bool, generateonclose: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn ZwOpenObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, objecttypename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, objectname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, objectcreation : bool, accessgranted : bool, generateonclose : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); ZwOpenObjectAuditAlarm( core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), @@ -4134,8 +4134,8 @@ pub unsafe fn ZwOpenObjectAuditAlarm(subsystemname: *const super::super::super:: core::mem::transmute(desiredaccess), core::mem::transmute(grantedaccess), core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), - objectcreation.into(), - accessgranted.into(), + core::mem::transmute(objectcreation), + core::mem::transmute(accessgranted), core::mem::transmute(generateonclose), ) } @@ -4151,36 +4151,36 @@ pub unsafe fn ZwOpenProcessTokenEx(processhandle: super::super::super::Win32::Fo } #[inline] pub unsafe fn ZwOpenThreadToken(threadhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, openasself: bool, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwOpenThreadToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : super::super::super::Win32::Foundation:: BOOLEAN, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenThreadToken(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), openasself.into(), core::mem::transmute(tokenhandle)) + windows_targets::link!("ntdll.dll" "system" fn ZwOpenThreadToken(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwOpenThreadToken(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), core::mem::transmute(openasself), core::mem::transmute(tokenhandle)) } #[inline] pub unsafe fn ZwOpenThreadTokenEx(threadhandle: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, openasself: bool, handleattributes: u32, tokenhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : super::super::super::Win32::Foundation:: BOOLEAN, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwOpenThreadTokenEx(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), openasself.into(), core::mem::transmute(handleattributes), core::mem::transmute(tokenhandle)) + windows_targets::link!("ntdll.dll" "system" fn ZwOpenThreadTokenEx(threadhandle : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, openasself : bool, handleattributes : u32, tokenhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwOpenThreadTokenEx(core::mem::transmute(threadhandle), core::mem::transmute(desiredaccess), core::mem::transmute(openasself), core::mem::transmute(handleattributes), core::mem::transmute(tokenhandle)) } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn ZwPrivilegeCheck(clienttoken: super::super::super::Win32::Foundation::HANDLE, requiredprivileges: *mut super::super::super::Win32::Security::PRIVILEGE_SET, result: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegeCheck(clienttoken : super::super::super::Win32::Foundation:: HANDLE, requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, result : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn ZwPrivilegeCheck(clienttoken: super::super::super::Win32::Foundation::HANDLE, requiredprivileges: *mut super::super::super::Win32::Security::PRIVILEGE_SET, result: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegeCheck(clienttoken : super::super::super::Win32::Foundation:: HANDLE, requiredprivileges : *mut super::super::super::Win32::Security:: PRIVILEGE_SET, result : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); ZwPrivilegeCheck(core::mem::transmute(clienttoken), core::mem::transmute(requiredprivileges), core::mem::transmute(result)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwPrivilegeObjectAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, handleid: Option<*const core::ffi::c_void>, clienttoken: super::super::super::Win32::Foundation::HANDLE, desiredaccess: u32, privileges: *const super::super::super::Win32::Security::PRIVILEGE_SET, accessgranted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegeObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwPrivilegeObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(clienttoken), core::mem::transmute(desiredaccess), core::mem::transmute(privileges), accessgranted.into()) + windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegeObjectAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, handleid : *const core::ffi::c_void, clienttoken : super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwPrivilegeObjectAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(handleid.unwrap_or(core::mem::zeroed())), core::mem::transmute(clienttoken), core::mem::transmute(desiredaccess), core::mem::transmute(privileges), core::mem::transmute(accessgranted)) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ZwPrivilegedServiceAuditAlarm(subsystemname: *const super::super::super::Win32::Foundation::UNICODE_STRING, servicename: *const super::super::super::Win32::Foundation::UNICODE_STRING, clienttoken: super::super::super::Win32::Foundation::HANDLE, privileges: *const super::super::super::Win32::Security::PRIVILEGE_SET, accessgranted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegedServiceAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, clienttoken : super::super::super::Win32::Foundation:: HANDLE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwPrivilegedServiceAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(servicename), core::mem::transmute(clienttoken), core::mem::transmute(privileges), accessgranted.into()) + windows_targets::link!("ntdll.dll" "system" fn ZwPrivilegedServiceAuditAlarm(subsystemname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, servicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, clienttoken : super::super::super::Win32::Foundation:: HANDLE, privileges : *const super::super::super::Win32::Security:: PRIVILEGE_SET, accessgranted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwPrivilegedServiceAuditAlarm(core::mem::transmute(subsystemname), core::mem::transmute(servicename), core::mem::transmute(clienttoken), core::mem::transmute(privileges), core::mem::transmute(accessgranted)) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwQueryDirectoryFile(filehandle: super::super::super::Win32::Foundation::HANDLE, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, fileinformation: *mut core::ffi::c_void, length: u32, fileinformationclass: FILE_INFORMATION_CLASS, returnsingleentry: bool, filename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, restartscan: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwQueryDirectoryFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); + windows_targets::link!("ntdll.dll" "system" fn ZwQueryDirectoryFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, fileinformation : *mut core::ffi::c_void, length : u32, fileinformationclass : FILE_INFORMATION_CLASS, returnsingleentry : bool, filename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); ZwQueryDirectoryFile( core::mem::transmute(filehandle), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), @@ -4190,9 +4190,9 @@ pub unsafe fn ZwQueryDirectoryFile(filehandle: super::super::super::Win32::Found core::mem::transmute(fileinformation), core::mem::transmute(length), core::mem::transmute(fileinformationclass), - returnsingleentry.into(), + core::mem::transmute(returnsingleentry), core::mem::transmute(filename.unwrap_or(core::mem::zeroed())), - restartscan.into(), + core::mem::transmute(restartscan), ) } #[cfg(feature = "Win32_System_IO")] @@ -4203,14 +4203,14 @@ pub unsafe fn ZwQueryDirectoryFileEx(filehandle: super::super::super::Win32::Fou } #[inline] pub unsafe fn ZwQueryDirectoryObject(directoryhandle: super::super::super::Win32::Foundation::HANDLE, buffer: Option<*mut core::ffi::c_void>, length: u32, returnsingleentry: bool, restartscan: bool, context: *mut u32, returnlength: Option<*mut u32>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwQueryDirectoryObject(directoryhandle : super::super::super::Win32::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, restartscan : super::super::super::Win32::Foundation:: BOOLEAN, context : *mut u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryDirectoryObject(core::mem::transmute(directoryhandle), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), returnsingleentry.into(), restartscan.into(), core::mem::transmute(context), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("ntdll.dll" "system" fn ZwQueryDirectoryObject(directoryhandle : super::super::super::Win32::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, restartscan : bool, context : *mut u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwQueryDirectoryObject(core::mem::transmute(directoryhandle), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(restartscan), core::mem::transmute(context), core::mem::transmute(returnlength.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ZwQueryEaFile(filehandle: super::super::super::Win32::Foundation::HANDLE, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, buffer: *mut core::ffi::c_void, length: u32, returnsingleentry: bool, ealist: Option<*const core::ffi::c_void>, ealistlength: u32, eaindex: Option<*const u32>, restartscan: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwQueryEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryEaFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), returnsingleentry.into(), core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealistlength), core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), restartscan.into()) + windows_targets::link!("ntdll.dll" "system" fn ZwQueryEaFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, ealist : *const core::ffi::c_void, ealistlength : u32, eaindex : *const u32, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwQueryEaFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(ealist.unwrap_or(core::mem::zeroed())), core::mem::transmute(ealistlength), core::mem::transmute(eaindex.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -4233,8 +4233,8 @@ pub unsafe fn ZwQueryObject(handle: Option, sidlistlength: u32, startsid: Option, restartscan: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwQueryQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : super::super::super::Win32::Foundation:: BOOLEAN, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Security:: PSID, restartscan : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwQueryQuotaInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), returnsingleentry.into(), core::mem::transmute(sidlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidlistlength), core::mem::transmute(startsid.unwrap_or(core::mem::zeroed())), restartscan.into()) + windows_targets::link!("ntdll.dll" "system" fn ZwQueryQuotaInformationFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, buffer : *mut core::ffi::c_void, length : u32, returnsingleentry : bool, sidlist : *const core::ffi::c_void, sidlistlength : u32, startsid : super::super::super::Win32::Security:: PSID, restartscan : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwQueryQuotaInformationFile(core::mem::transmute(filehandle), core::mem::transmute(iostatusblock), core::mem::transmute(buffer), core::mem::transmute(length), core::mem::transmute(returnsingleentry), core::mem::transmute(sidlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(sidlistlength), core::mem::transmute(startsid.unwrap_or(core::mem::zeroed())), core::mem::transmute(restartscan)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -4648,7 +4648,7 @@ pub struct CSV_DOWN_LEVEL_FILE_TYPE(pub i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct CSV_DOWN_LEVEL_OPEN_ECP_CONTEXT { pub Version: u32, - pub IsResume: super::super::super::Win32::Foundation::BOOLEAN, + pub IsResume: bool, pub FileType: CSV_DOWN_LEVEL_FILE_TYPE, pub SourceNodeId: u32, pub DestinationNodeId: u32, @@ -4737,8 +4737,8 @@ pub const DO_VOLUME_DEVICE_OBJECT: u32 = 1048576u32; pub struct DUAL_OPLOCK_KEY_ECP_CONTEXT { pub ParentOplockKey: windows_core::GUID, pub TargetOplockKey: windows_core::GUID, - pub ParentOplockKeySet: super::super::super::Win32::Foundation::BOOLEAN, - pub TargetOplockKeySet: super::super::super::Win32::Foundation::BOOLEAN, + pub ParentOplockKeySet: bool, + pub TargetOplockKeySet: bool, } impl Default for DUAL_OPLOCK_KEY_ECP_CONTEXT { fn default() -> Self { @@ -4981,7 +4981,7 @@ pub const FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE: FILE_DISPOSITION_INFORMATI #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FILE_DISPOSITION_INFORMATION { - pub DeleteFile: super::super::super::Win32::Foundation::BOOLEAN, + pub DeleteFile: bool, } impl Default for FILE_DISPOSITION_INFORMATION { fn default() -> Self { @@ -5077,7 +5077,7 @@ impl Default for FILE_FS_DATA_COPY_INFORMATION { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FILE_FS_DRIVER_PATH_INFORMATION { - pub DriverInPath: super::super::super::Win32::Foundation::BOOLEAN, + pub DriverInPath: bool, pub DriverNameLength: u32, pub DriverName: [u16; 1], } @@ -5423,7 +5423,7 @@ impl Default for FILE_LINK_INFORMATION { #[repr(C)] #[derive(Clone, Copy)] pub union FILE_LINK_INFORMATION_0 { - pub ReplaceIfExists: super::super::super::Win32::Foundation::BOOLEAN, + pub ReplaceIfExists: bool, pub Flags: u32, } impl Default for FILE_LINK_INFORMATION_0 { @@ -5443,8 +5443,8 @@ pub const FILE_LINK_SUPPRESS_STORAGE_RESERVE_INHERITANCE: u32 = 8u32; pub struct FILE_LOCK { pub CompleteLockIrpRoutine: PCOMPLETE_LOCK_IRP_ROUTINE, pub UnlockRoutine: PUNLOCK_ROUTINE, - pub FastIoIsQuestionable: super::super::super::Win32::Foundation::BOOLEAN, - pub SpareC: [super::super::super::Win32::Foundation::BOOLEAN; 3], + pub FastIoIsQuestionable: bool, + pub SpareC: [bool; 3], pub LockInformation: *mut core::ffi::c_void, pub LastReturnedLockInfo: FILE_LOCK_INFO, pub LastReturnedLock: *mut core::ffi::c_void, @@ -5462,7 +5462,7 @@ impl Default for FILE_LOCK { pub struct FILE_LOCK_INFO { pub StartingByte: i64, pub Length: i64, - pub ExclusiveLock: super::super::super::Win32::Foundation::BOOLEAN, + pub ExclusiveLock: bool, pub Key: u32, pub FileObject: *mut super::super::Foundation::FILE_OBJECT, pub ProcessId: *mut core::ffi::c_void, @@ -5808,7 +5808,7 @@ pub const FILE_PIPE_TYPE_VALID_MASK: u32 = 3u32; pub struct FILE_PIPE_WAIT_FOR_BUFFER { pub Timeout: i64, pub NameLength: u32, - pub TimeoutSpecified: super::super::super::Win32::Foundation::BOOLEAN, + pub TimeoutSpecified: bool, pub Name: [u16; 1], } impl Default for FILE_PIPE_WAIT_FOR_BUFFER { @@ -5941,7 +5941,7 @@ impl Default for FILE_RENAME_INFORMATION { #[repr(C)] #[derive(Clone, Copy)] pub union FILE_RENAME_INFORMATION_0 { - pub ReplaceIfExists: super::super::super::Win32::Foundation::BOOLEAN, + pub ReplaceIfExists: bool, pub Flags: u32, } impl Default for FILE_RENAME_INFORMATION_0 { @@ -5976,8 +5976,8 @@ pub struct FILE_STANDARD_INFORMATION { pub AllocationSize: i64, pub EndOfFile: i64, pub NumberOfLinks: u32, - pub DeletePending: super::super::super::Win32::Foundation::BOOLEAN, - pub Directory: super::super::super::Win32::Foundation::BOOLEAN, + pub DeletePending: bool, + pub Directory: bool, } impl Default for FILE_STANDARD_INFORMATION { fn default() -> Self { @@ -5989,8 +5989,8 @@ impl Default for FILE_STANDARD_INFORMATION { pub struct FILE_STANDARD_LINK_INFORMATION { pub NumberOfAccessibleLinks: u32, pub TotalNumberOfLinks: u32, - pub DeletePending: super::super::super::Win32::Foundation::BOOLEAN, - pub Directory: super::super::super::Win32::Foundation::BOOLEAN, + pub DeletePending: bool, + pub Directory: bool, } impl Default for FILE_STANDARD_LINK_INFORMATION { fn default() -> Self { @@ -6783,7 +6783,7 @@ pub const GENERATE_CLIENT_CHALLENGE: u32 = 16u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct GENERATE_NAME_CONTEXT { pub Checksum: u16, - pub ChecksumInserted: super::super::super::Win32::Foundation::BOOLEAN, + pub ChecksumInserted: bool, pub NameLength: u8, pub NameBuffer: [u16; 8], pub ExtensionLength: u32, @@ -7061,7 +7061,7 @@ pub struct KAPC_STATE { pub ApcListHead: [super::super::super::Win32::System::Kernel::LIST_ENTRY; 2], pub Process: *mut isize, pub Anonymous1: KAPC_STATE_0, - pub KernelApcPending: super::super::super::Win32::Foundation::BOOLEAN, + pub KernelApcPending: bool, pub Anonymous2: KAPC_STATE_1, } #[cfg(feature = "Win32_System_Kernel")] @@ -7099,7 +7099,7 @@ impl Default for KAPC_STATE_0_0 { #[cfg(feature = "Win32_System_Kernel")] #[derive(Clone, Copy)] pub union KAPC_STATE_1 { - pub UserApcPendingAll: super::super::super::Win32::Foundation::BOOLEAN, + pub UserApcPendingAll: bool, pub Anonymous: KAPC_STATE_1_0, } #[cfg(feature = "Win32_System_Kernel")] @@ -7738,19 +7738,19 @@ impl Default for OPLOCK_NOTIFY_PARAMS { pub struct OPLOCK_NOTIFY_REASON(pub i32); pub const OPLOCK_UPPER_FLAG_CHECK_NO_BREAK: u32 = 65536u32; pub const OPLOCK_UPPER_FLAG_NOTIFY_REFRESH_READ: u32 = 131072u32; -pub type PACQUIRE_FOR_LAZY_WRITE = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PACQUIRE_FOR_LAZY_WRITE_EX = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PACQUIRE_FOR_READ_AHEAD = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PACQUIRE_FOR_LAZY_WRITE = Option bool>; +pub type PACQUIRE_FOR_LAZY_WRITE_EX = Option bool>; +pub type PACQUIRE_FOR_READ_AHEAD = Option bool>; pub type PALLOCATE_VIRTUAL_MEMORY_EX_CALLBACK = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PASYNC_READ_COMPLETION_CALLBACK = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PASYNC_READ_COMPLETION_CALLBACK = Option bool>; pub type PCC_POST_DEFERRED_WRITE = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] -pub type PCHECK_FOR_TRAVERSE_ACCESS = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PCHECK_FOR_TRAVERSE_ACCESS = Option bool>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PCOMPLETE_LOCK_IRP_ROUTINE = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_System_SystemServices", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PDIRTY_PAGE_ROUTINE = Option; -pub type PFILTER_REPORT_CHANGE = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PFILTER_REPORT_CHANGE = Option bool>; pub type PFLUSH_TO_LSN = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] pub type PFN_FSRTLTEARDOWNPERSTREAMCONTEXTS = Option; @@ -8141,7 +8141,7 @@ impl Default for REFS_QUERY_VOLUME_COMPRESSION_INFO_OUTPUT_BUFFER { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct REFS_QUERY_VOLUME_DEDUP_INFO_OUTPUT_BUFFER { - pub Enabled: super::super::super::Win32::Foundation::BOOLEAN, + pub Enabled: bool, } impl Default for REFS_QUERY_VOLUME_DEDUP_INFO_OUTPUT_BUFFER { fn default() -> Self { @@ -8182,7 +8182,7 @@ impl Default for REFS_SET_VOLUME_COMPRESSION_INFO_INPUT_BUFFER { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct REFS_SET_VOLUME_DEDUP_INFO_INPUT_BUFFER { - pub Enable: super::super::super::Win32::Foundation::BOOLEAN, + pub Enable: bool, } impl Default for REFS_SET_VOLUME_DEDUP_INFO_INPUT_BUFFER { fn default() -> Self { @@ -8290,7 +8290,7 @@ impl Default for REFS_STREAM_SNAPSHOT_QUERY_DELTAS_OUTPUT_BUFFER { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct REFS_VOLUME_COUNTER_INFO_INPUT_BUFFER { - pub ResetCounters: super::super::super::Win32::Foundation::BOOLEAN, + pub ResetCounters: bool, } impl Default for REFS_VOLUME_COUNTER_INFO_INPUT_BUFFER { fn default() -> Self { @@ -8636,9 +8636,9 @@ pub const SECURITY_ANONYMOUS_LOGON_RID: i32 = 7i32; pub struct SECURITY_CLIENT_CONTEXT { pub SecurityQos: super::super::super::Win32::Security::SECURITY_QUALITY_OF_SERVICE, pub ClientToken: *mut core::ffi::c_void, - pub DirectlyAccessClientToken: super::super::super::Win32::Foundation::BOOLEAN, - pub DirectAccessEffectiveOnly: super::super::super::Win32::Foundation::BOOLEAN, - pub ServerIsRemote: super::super::super::Win32::Foundation::BOOLEAN, + pub DirectlyAccessClientToken: bool, + pub DirectAccessEffectiveOnly: bool, + pub ServerIsRemote: bool, pub ClientTokenControl: super::super::super::Win32::Security::TOKEN_CONTROL, } #[cfg(feature = "Win32_Security")] @@ -8722,7 +8722,7 @@ pub const SEMAPHORE_INCREMENT: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SET_CACHED_RUNS_STATE_INPUT_BUFFER { - pub Enable: super::super::super::Win32::Foundation::BOOLEAN, + pub Enable: bool, } impl Default for SET_CACHED_RUNS_STATE_INPUT_BUFFER { fn default() -> Self { @@ -8744,8 +8744,8 @@ pub struct SE_AUDIT_INFO { pub HandleId: *mut core::ffi::c_void, pub TransactionId: *mut windows_core::GUID, pub OperationId: *mut super::super::super::Win32::Foundation::LUID, - pub ObjectCreation: super::super::super::Win32::Foundation::BOOLEAN, - pub GenerateOnClose: super::super::super::Win32::Foundation::BOOLEAN, + pub ObjectCreation: bool, + pub GenerateOnClose: bool, } #[cfg(feature = "Win32_Security")] impl Default for SE_AUDIT_INFO { @@ -8856,9 +8856,9 @@ pub struct SRV_INSTANCE_TYPE(pub i32); pub struct SRV_OPEN_ECP_CONTEXT { pub ShareName: *mut super::super::super::Win32::Foundation::UNICODE_STRING, pub SocketAddress: *mut super::super::super::Win32::Networking::WinSock::SOCKADDR_STORAGE, - pub OplockBlockState: super::super::super::Win32::Foundation::BOOLEAN, - pub OplockAppState: super::super::super::Win32::Foundation::BOOLEAN, - pub OplockFinalState: super::super::super::Win32::Foundation::BOOLEAN, + pub OplockBlockState: bool, + pub OplockAppState: bool, + pub OplockFinalState: bool, pub Version: u16, pub InstanceType: SRV_INSTANCE_TYPE, } diff --git a/crates/libs/windows/src/Windows/Wdk/System/Registry/mod.rs b/crates/libs/windows/src/Windows/Wdk/System/Registry/mod.rs index 7ea8c72e34..89d89a77b8 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/Registry/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/Registry/mod.rs @@ -49,7 +49,7 @@ pub unsafe fn NtFlushKey(keyhandle: super::super::super::Win32::Foundation::HAND #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn NtNotifyChangeMultipleKeys(masterkeyhandle: super::super::super::Win32::Foundation::HANDLE, subordinateobjects: Option<&[super::super::Foundation::OBJECT_ATTRIBUTES]>, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, completionfilter: u32, watchtree: bool, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, asynchronous: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtNotifyChangeMultipleKeys(masterkeyhandle : super::super::super::Win32::Foundation:: HANDLE, count : u32, subordinateobjects : *const super::super::Foundation:: OBJECT_ATTRIBUTES, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); + windows_targets::link!("ntdll.dll" "system" fn NtNotifyChangeMultipleKeys(masterkeyhandle : super::super::super::Win32::Foundation:: HANDLE, count : u32, subordinateobjects : *const super::super::Foundation:: OBJECT_ATTRIBUTES, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); NtNotifyChangeMultipleKeys( core::mem::transmute(masterkeyhandle), subordinateobjects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -59,10 +59,10 @@ pub unsafe fn NtNotifyChangeMultipleKeys(masterkeyhandle: super::super::super::W core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(completionfilter), - watchtree.into(), + core::mem::transmute(watchtree), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), - asynchronous.into(), + core::mem::transmute(asynchronous), ) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] @@ -196,7 +196,7 @@ pub unsafe fn ZwFlushKey(keyhandle: super::super::super::Win32::Foundation::HAND #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))] #[inline] pub unsafe fn ZwNotifyChangeMultipleKeys(masterkeyhandle: super::super::super::Win32::Foundation::HANDLE, subordinateobjects: Option<&[super::super::Foundation::OBJECT_ATTRIBUTES]>, event: Option, apcroutine: Option, apccontext: Option<*const core::ffi::c_void>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK, completionfilter: u32, watchtree: bool, buffer: Option<*mut core::ffi::c_void>, buffersize: u32, asynchronous: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwNotifyChangeMultipleKeys(masterkeyhandle : super::super::super::Win32::Foundation:: HANDLE, count : u32, subordinateobjects : *const super::super::Foundation:: OBJECT_ATTRIBUTES, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : super::super::super::Win32::Foundation:: BOOLEAN, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); + windows_targets::link!("ntdll.dll" "system" fn ZwNotifyChangeMultipleKeys(masterkeyhandle : super::super::super::Win32::Foundation:: HANDLE, count : u32, subordinateobjects : *const super::super::Foundation:: OBJECT_ATTRIBUTES, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); ZwNotifyChangeMultipleKeys( core::mem::transmute(masterkeyhandle), subordinateobjects.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), @@ -206,10 +206,10 @@ pub unsafe fn ZwNotifyChangeMultipleKeys(masterkeyhandle: super::super::super::W core::mem::transmute(apccontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock), core::mem::transmute(completionfilter), - watchtree.into(), + core::mem::transmute(watchtree), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(buffersize), - asynchronous.into(), + core::mem::transmute(asynchronous), ) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] diff --git a/crates/libs/windows/src/Windows/Wdk/System/SystemServices/mod.rs b/crates/libs/windows/src/Windows/Wdk/System/SystemServices/mod.rs index fc8e02430e..a1520c03a3 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/SystemServices/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/SystemServices/mod.rs @@ -160,32 +160,32 @@ pub unsafe fn ClfsLsnDifference(plsnstart: *const super::super::super::Win32::St } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] -pub unsafe fn ClfsLsnEqual(plsn1: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN, plsn2: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("clfs.sys" "system" fn ClfsLsnEqual(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ClfsLsnEqual(plsn1: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN, plsn2: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> bool { + windows_targets::link!("clfs.sys" "system" fn ClfsLsnEqual(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); ClfsLsnEqual(core::mem::transmute(plsn1), core::mem::transmute(plsn2)) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] -pub unsafe fn ClfsLsnGreater(plsn1: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN, plsn2: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("clfs.sys" "system" fn ClfsLsnGreater(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ClfsLsnGreater(plsn1: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN, plsn2: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> bool { + windows_targets::link!("clfs.sys" "system" fn ClfsLsnGreater(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); ClfsLsnGreater(core::mem::transmute(plsn1), core::mem::transmute(plsn2)) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] -pub unsafe fn ClfsLsnInvalid(plsn: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("clfs.sys" "system" fn ClfsLsnInvalid(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ClfsLsnInvalid(plsn: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> bool { + windows_targets::link!("clfs.sys" "system" fn ClfsLsnInvalid(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); ClfsLsnInvalid(core::mem::transmute(plsn)) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] -pub unsafe fn ClfsLsnLess(plsn1: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN, plsn2: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("clfs.sys" "system" fn ClfsLsnLess(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ClfsLsnLess(plsn1: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN, plsn2: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> bool { + windows_targets::link!("clfs.sys" "system" fn ClfsLsnLess(plsn1 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN, plsn2 : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); ClfsLsnLess(core::mem::transmute(plsn1), core::mem::transmute(plsn2)) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] -pub unsafe fn ClfsLsnNull(plsn: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("clfs.sys" "system" fn ClfsLsnNull(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ClfsLsnNull(plsn: *const super::super::super::Win32::Storage::FileSystem::CLS_LSN) -> bool { + windows_targets::link!("clfs.sys" "system" fn ClfsLsnNull(plsn : *const super::super::super::Win32::Storage::FileSystem:: CLS_LSN) -> bool); ClfsLsnNull(core::mem::transmute(plsn)) } #[cfg(feature = "Win32_Storage_FileSystem")] @@ -278,14 +278,14 @@ pub unsafe fn ClfsReadRestartArea(pvmarshalcontext: *mut core::ffi::c_void, ppvr #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsRemoveLogContainer(plfolog: *const super::super::Foundation::FILE_OBJECT, puszcontainerpath: *const super::super::super::Win32::Foundation::UNICODE_STRING, fforce: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("clfs.sys" "system" fn ClfsRemoveLogContainer(plfolog : *const super::super::Foundation:: FILE_OBJECT, puszcontainerpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fforce : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsRemoveLogContainer(core::mem::transmute(plfolog), core::mem::transmute(puszcontainerpath), fforce.into()) + windows_targets::link!("clfs.sys" "system" fn ClfsRemoveLogContainer(plfolog : *const super::super::Foundation:: FILE_OBJECT, puszcontainerpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fforce : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ClfsRemoveLogContainer(core::mem::transmute(plfolog), core::mem::transmute(puszcontainerpath), core::mem::transmute(fforce)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn ClfsRemoveLogContainerSet(plfolog: *const super::super::Foundation::FILE_OBJECT, rgwszcontainerpath: &[super::super::super::Win32::Foundation::UNICODE_STRING], fforce: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("clfs.sys" "system" fn ClfsRemoveLogContainerSet(plfolog : *const super::super::Foundation:: FILE_OBJECT, ccontainers : u16, rgwszcontainerpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fforce : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ClfsRemoveLogContainerSet(core::mem::transmute(plfolog), rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(rgwszcontainerpath.as_ptr()), fforce.into()) + windows_targets::link!("clfs.sys" "system" fn ClfsRemoveLogContainerSet(plfolog : *const super::super::Foundation:: FILE_OBJECT, ccontainers : u16, rgwszcontainerpath : *const super::super::super::Win32::Foundation:: UNICODE_STRING, fforce : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ClfsRemoveLogContainerSet(core::mem::transmute(plfolog), rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(rgwszcontainerpath.as_ptr()), core::mem::transmute(fforce)) } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] @@ -444,14 +444,14 @@ pub unsafe fn DbgQueryDebugFilterState(componentid: u32, level: u32) -> super::s } #[inline] pub unsafe fn DbgSetDebugFilterState(componentid: u32, level: u32, state: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn DbgSetDebugFilterState(componentid : u32, level : u32, state : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - DbgSetDebugFilterState(core::mem::transmute(componentid), core::mem::transmute(level), state.into()) + windows_targets::link!("ntdll.dll" "system" fn DbgSetDebugFilterState(componentid : u32, level : u32, state : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + DbgSetDebugFilterState(core::mem::transmute(componentid), core::mem::transmute(level), core::mem::transmute(state)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn DbgSetDebugPrintCallback(debugprintcallback: PDEBUG_PRINT_CALLBACK, enable: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn DbgSetDebugPrintCallback(debugprintcallback : PDEBUG_PRINT_CALLBACK, enable : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - DbgSetDebugPrintCallback(core::mem::transmute(debugprintcallback), enable.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn DbgSetDebugPrintCallback(debugprintcallback : PDEBUG_PRINT_CALLBACK, enable : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + DbgSetDebugPrintCallback(core::mem::transmute(debugprintcallback), core::mem::transmute(enable)) } #[inline] pub unsafe fn EtwActivityIdControl(controlcode: u32, activityid: *mut windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -460,14 +460,14 @@ pub unsafe fn EtwActivityIdControl(controlcode: u32, activityid: *mut windows_co } #[cfg(feature = "Win32_System_Diagnostics_Etw")] #[inline] -pub unsafe fn EtwEventEnabled(reghandle: super::super::super::Win32::System::Diagnostics::Etw::REGHANDLE, eventdescriptor: *const super::super::super::Win32::System::Diagnostics::Etw::EVENT_DESCRIPTOR) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn EtwEventEnabled(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, eventdescriptor : *const super::super::super::Win32::System::Diagnostics::Etw:: EVENT_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn EtwEventEnabled(reghandle: super::super::super::Win32::System::Diagnostics::Etw::REGHANDLE, eventdescriptor: *const super::super::super::Win32::System::Diagnostics::Etw::EVENT_DESCRIPTOR) -> bool { + windows_targets::link!("ntdll.dll" "system" fn EtwEventEnabled(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, eventdescriptor : *const super::super::super::Win32::System::Diagnostics::Etw:: EVENT_DESCRIPTOR) -> bool); EtwEventEnabled(core::mem::transmute(reghandle), core::mem::transmute(eventdescriptor)) } #[cfg(feature = "Win32_System_Diagnostics_Etw")] #[inline] -pub unsafe fn EtwProviderEnabled(reghandle: super::super::super::Win32::System::Diagnostics::Etw::REGHANDLE, level: u8, keyword: u64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn EtwProviderEnabled(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, level : u8, keyword : u64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn EtwProviderEnabled(reghandle: super::super::super::Win32::System::Diagnostics::Etw::REGHANDLE, level: u8, keyword: u64) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn EtwProviderEnabled(reghandle : super::super::super::Win32::System::Diagnostics::Etw:: REGHANDLE, level : u8, keyword : u64) -> bool); EtwProviderEnabled(core::mem::transmute(reghandle), core::mem::transmute(level), core::mem::transmute(keyword)) } #[cfg(feature = "Win32_System_Diagnostics_Etw")] @@ -539,49 +539,49 @@ pub unsafe fn ExAcquirePushLockSharedEx(pushlock: *mut usize, flags: u32) { } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn ExAcquireResourceExclusiveLite(resource: *mut super::super::Foundation::ERESOURCE, wait: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireResourceExclusiveLite(resource : *mut super::super::Foundation:: ERESOURCE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExAcquireResourceExclusiveLite(core::mem::transmute(resource), wait.into()) +pub unsafe fn ExAcquireResourceExclusiveLite(resource: *mut super::super::Foundation::ERESOURCE, wait: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireResourceExclusiveLite(resource : *mut super::super::Foundation:: ERESOURCE, wait : bool) -> bool); + ExAcquireResourceExclusiveLite(core::mem::transmute(resource), core::mem::transmute(wait)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn ExAcquireResourceSharedLite(resource: *mut super::super::Foundation::ERESOURCE, wait: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireResourceSharedLite(resource : *mut super::super::Foundation:: ERESOURCE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExAcquireResourceSharedLite(core::mem::transmute(resource), wait.into()) +pub unsafe fn ExAcquireResourceSharedLite(resource: *mut super::super::Foundation::ERESOURCE, wait: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireResourceSharedLite(resource : *mut super::super::Foundation:: ERESOURCE, wait : bool) -> bool); + ExAcquireResourceSharedLite(core::mem::transmute(resource), core::mem::transmute(wait)) } #[inline] -pub unsafe fn ExAcquireRundownProtection(runref: *mut EX_RUNDOWN_REF) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtection(runref : *mut EX_RUNDOWN_REF) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ExAcquireRundownProtection(runref: *mut EX_RUNDOWN_REF) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtection(runref : *mut EX_RUNDOWN_REF) -> bool); ExAcquireRundownProtection(core::mem::transmute(runref)) } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn ExAcquireRundownProtectionCacheAware(runrefcacheaware: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ExAcquireRundownProtectionCacheAware(runrefcacheaware: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionCacheAware(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE) -> bool); ExAcquireRundownProtectionCacheAware(core::mem::transmute(runrefcacheaware)) } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn ExAcquireRundownProtectionCacheAwareEx(runrefcacheaware: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE, count: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionCacheAwareEx(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE, count : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ExAcquireRundownProtectionCacheAwareEx(runrefcacheaware: super::super::Foundation::PEX_RUNDOWN_REF_CACHE_AWARE, count: u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionCacheAwareEx(runrefcacheaware : super::super::Foundation:: PEX_RUNDOWN_REF_CACHE_AWARE, count : u32) -> bool); ExAcquireRundownProtectionCacheAwareEx(core::mem::transmute(runrefcacheaware), core::mem::transmute(count)) } #[inline] -pub unsafe fn ExAcquireRundownProtectionEx(runref: *mut EX_RUNDOWN_REF, count: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionEx(runref : *mut EX_RUNDOWN_REF, count : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ExAcquireRundownProtectionEx(runref: *mut EX_RUNDOWN_REF, count: u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireRundownProtectionEx(runref : *mut EX_RUNDOWN_REF, count : u32) -> bool); ExAcquireRundownProtectionEx(core::mem::transmute(runref), core::mem::transmute(count)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn ExAcquireSharedStarveExclusive(resource: *mut super::super::Foundation::ERESOURCE, wait: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSharedStarveExclusive(resource : *mut super::super::Foundation:: ERESOURCE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExAcquireSharedStarveExclusive(core::mem::transmute(resource), wait.into()) +pub unsafe fn ExAcquireSharedStarveExclusive(resource: *mut super::super::Foundation::ERESOURCE, wait: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSharedStarveExclusive(resource : *mut super::super::Foundation:: ERESOURCE, wait : bool) -> bool); + ExAcquireSharedStarveExclusive(core::mem::transmute(resource), core::mem::transmute(wait)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn ExAcquireSharedWaitForExclusive(resource: *mut super::super::Foundation::ERESOURCE, wait: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSharedWaitForExclusive(resource : *mut super::super::Foundation:: ERESOURCE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExAcquireSharedWaitForExclusive(core::mem::transmute(resource), wait.into()) +pub unsafe fn ExAcquireSharedWaitForExclusive(resource: *mut super::super::Foundation::ERESOURCE, wait: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExAcquireSharedWaitForExclusive(resource : *mut super::super::Foundation:: ERESOURCE, wait : bool) -> bool); + ExAcquireSharedWaitForExclusive(core::mem::transmute(resource), core::mem::transmute(wait)) } #[inline] pub unsafe fn ExAcquireSpinLockExclusive(spinlock: *mut i32) -> u8 { @@ -657,8 +657,8 @@ pub unsafe fn ExAllocateTimer(callback: Option, callbackcontext: } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn ExCancelTimer(timer: super::super::Foundation::PEX_TIMER, parameters: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExCancelTimer(timer : super::super::Foundation:: PEX_TIMER, parameters : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ExCancelTimer(timer: super::super::Foundation::PEX_TIMER, parameters: Option<*const core::ffi::c_void>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExCancelTimer(timer : super::super::Foundation:: PEX_TIMER, parameters : *const core::ffi::c_void) -> bool); ExCancelTimer(core::mem::transmute(timer), core::mem::transmute(parameters.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] @@ -676,8 +676,8 @@ pub unsafe fn ExConvertExclusiveToSharedLite(resource: *mut super::super::Founda #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn ExCreateCallback(callbackobject: *mut super::super::Foundation::PCALLBACK_OBJECT, objectattributes: *const super::super::Foundation::OBJECT_ATTRIBUTES, create: bool, allowmultiplecallbacks: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn ExCreateCallback(callbackobject : *mut super::super::Foundation:: PCALLBACK_OBJECT, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, create : super::super::super::Win32::Foundation:: BOOLEAN, allowmultiplecallbacks : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ExCreateCallback(core::mem::transmute(callbackobject), core::mem::transmute(objectattributes), create.into(), allowmultiplecallbacks.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn ExCreateCallback(callbackobject : *mut super::super::Foundation:: PCALLBACK_OBJECT, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, create : bool, allowmultiplecallbacks : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ExCreateCallback(core::mem::transmute(callbackobject), core::mem::transmute(objectattributes), core::mem::transmute(create), core::mem::transmute(allowmultiplecallbacks)) } #[inline] pub unsafe fn ExCreatePool(flags: u32, tag: usize, params: Option<*const POOL_CREATE_EXTENDED_PARAMS>, poolhandle: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -692,9 +692,9 @@ pub unsafe fn ExDeleteResourceLite(resource: *mut super::super::Foundation::ERES } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn ExDeleteTimer(timer: super::super::Foundation::PEX_TIMER, cancel: bool, wait: bool, parameters: Option<*const EXT_DELETE_PARAMETERS>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExDeleteTimer(timer : super::super::Foundation:: PEX_TIMER, cancel : super::super::super::Win32::Foundation:: BOOLEAN, wait : super::super::super::Win32::Foundation:: BOOLEAN, parameters : *const EXT_DELETE_PARAMETERS) -> super::super::super::Win32::Foundation:: BOOLEAN); - ExDeleteTimer(core::mem::transmute(timer), cancel.into(), wait.into(), core::mem::transmute(parameters.unwrap_or(core::mem::zeroed()))) +pub unsafe fn ExDeleteTimer(timer: super::super::Foundation::PEX_TIMER, cancel: bool, wait: bool, parameters: Option<*const EXT_DELETE_PARAMETERS>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExDeleteTimer(timer : super::super::Foundation:: PEX_TIMER, cancel : bool, wait : bool, parameters : *const EXT_DELETE_PARAMETERS) -> bool); + ExDeleteTimer(core::mem::transmute(timer), core::mem::transmute(cancel), core::mem::transmute(wait), core::mem::transmute(parameters.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ExDestroyPool(poolhandle: super::super::super::Win32::Foundation::HANDLE) { @@ -834,19 +834,19 @@ pub unsafe fn ExInterlockedExtendZone(zone: *mut ZONE_HEADER, segment: *mut core ExInterlockedExtendZone(core::mem::transmute(zone), core::mem::transmute(segment), core::mem::transmute(segmentsize), core::mem::transmute(lock)) } #[inline] -pub unsafe fn ExIsManufacturingModeEnabled() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExIsManufacturingModeEnabled() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ExIsManufacturingModeEnabled() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExIsManufacturingModeEnabled() -> bool); ExIsManufacturingModeEnabled() } #[inline] -pub unsafe fn ExIsProcessorFeaturePresent(processorfeature: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExIsProcessorFeaturePresent(processorfeature : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ExIsProcessorFeaturePresent(processorfeature: u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExIsProcessorFeaturePresent(processorfeature : u32) -> bool); ExIsProcessorFeaturePresent(core::mem::transmute(processorfeature)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn ExIsResourceAcquiredExclusiveLite(resource: *const super::super::Foundation::ERESOURCE) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExIsResourceAcquiredExclusiveLite(resource : *const super::super::Foundation:: ERESOURCE) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ExIsResourceAcquiredExclusiveLite(resource: *const super::super::Foundation::ERESOURCE) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExIsResourceAcquiredExclusiveLite(resource : *const super::super::Foundation:: ERESOURCE) -> bool); ExIsResourceAcquiredExclusiveLite(core::mem::transmute(resource)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -856,8 +856,8 @@ pub unsafe fn ExIsResourceAcquiredSharedLite(resource: *const super::super::Foun ExIsResourceAcquiredSharedLite(core::mem::transmute(resource)) } #[inline] -pub unsafe fn ExIsSoftBoot() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExIsSoftBoot() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ExIsSoftBoot() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExIsSoftBoot() -> bool); ExIsSoftBoot() } #[inline] @@ -1045,14 +1045,14 @@ pub unsafe fn ExSetResourceOwnerPointerEx(resource: *mut super::super::Foundatio } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn ExSetTimer(timer: super::super::Foundation::PEX_TIMER, duetime: i64, period: i64, parameters: Option<*const _EXT_SET_PARAMETERS_V0>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExSetTimer(timer : super::super::Foundation:: PEX_TIMER, duetime : i64, period : i64, parameters : *const _EXT_SET_PARAMETERS_V0) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ExSetTimer(timer: super::super::Foundation::PEX_TIMER, duetime: i64, period: i64, parameters: Option<*const _EXT_SET_PARAMETERS_V0>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExSetTimer(timer : super::super::Foundation:: PEX_TIMER, duetime : i64, period : i64, parameters : *const _EXT_SET_PARAMETERS_V0) -> bool); ExSetTimer(core::mem::transmute(timer), core::mem::transmute(duetime), core::mem::transmute(period), core::mem::transmute(parameters.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ExSetTimerResolution(desiredtime: u32, setresolution: bool) -> u32 { - windows_targets::link!("ntoskrnl.exe" "system" fn ExSetTimerResolution(desiredtime : u32, setresolution : super::super::super::Win32::Foundation:: BOOLEAN) -> u32); - ExSetTimerResolution(core::mem::transmute(desiredtime), setresolution.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn ExSetTimerResolution(desiredtime : u32, setresolution : bool) -> u32); + ExSetTimerResolution(core::mem::transmute(desiredtime), core::mem::transmute(setresolution)) } #[inline] pub unsafe fn ExSizeOfRundownProtectionCacheAware() -> usize { @@ -1083,8 +1083,8 @@ pub unsafe fn ExTryConvertSharedSpinLockExclusive(spinlock: *mut i32) -> u32 { } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn ExTryToAcquireFastMutex(fastmutex: *mut super::super::Foundation::FAST_MUTEX) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExTryToAcquireFastMutex(fastmutex : *mut super::super::Foundation:: FAST_MUTEX) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ExTryToAcquireFastMutex(fastmutex: *mut super::super::Foundation::FAST_MUTEX) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExTryToAcquireFastMutex(fastmutex : *mut super::super::Foundation:: FAST_MUTEX) -> bool); ExTryToAcquireFastMutex(core::mem::transmute(fastmutex)) } #[inline] @@ -1099,8 +1099,8 @@ pub unsafe fn ExUuidCreate(uuid: *mut windows_core::GUID) -> super::super::super } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn ExVerifySuite(suitetype: super::super::super::Win32::System::Kernel::SUITE_TYPE) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ExVerifySuite(suitetype : super::super::super::Win32::System::Kernel:: SUITE_TYPE) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ExVerifySuite(suitetype: super::super::super::Win32::System::Kernel::SUITE_TYPE) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ExVerifySuite(suitetype : super::super::super::Win32::System::Kernel:: SUITE_TYPE) -> bool); ExVerifySuite(core::mem::transmute(suitetype)) } #[inline] @@ -1115,8 +1115,8 @@ pub unsafe fn ExWaitForRundownProtectionReleaseCacheAware(runref: super::super:: ExWaitForRundownProtectionReleaseCacheAware(core::mem::transmute(runref)) } #[inline] -pub unsafe fn FsRtlIsTotalDeviceFailure(status: super::super::super::Win32::Foundation::NTSTATUS) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsTotalDeviceFailure(status : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn FsRtlIsTotalDeviceFailure(status: super::super::super::Win32::Foundation::NTSTATUS) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn FsRtlIsTotalDeviceFailure(status : super::super::super::Win32::Foundation:: NTSTATUS) -> bool); FsRtlIsTotalDeviceFailure(core::mem::transmute(status)) } #[inline] @@ -1133,8 +1133,8 @@ pub unsafe fn HalAllocateAdapterChannel(adapterobject: *const super::super::supe #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] pub unsafe fn HalAllocateCommonBuffer(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, length: u32, logicaladdress: *mut i64, cacheenabled: bool) -> *mut core::ffi::c_void { - windows_targets::link!("hal.dll" "system" fn HalAllocateCommonBuffer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, length : u32, logicaladdress : *mut i64, cacheenabled : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut core::ffi::c_void); - HalAllocateCommonBuffer(core::mem::transmute(adapterobject), core::mem::transmute(length), core::mem::transmute(logicaladdress), cacheenabled.into()) + windows_targets::link!("hal.dll" "system" fn HalAllocateCommonBuffer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, length : u32, logicaladdress : *mut i64, cacheenabled : bool) -> *mut core::ffi::c_void); + HalAllocateCommonBuffer(core::mem::transmute(adapterobject), core::mem::transmute(length), core::mem::transmute(logicaladdress), core::mem::transmute(cacheenabled)) } #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] @@ -1181,8 +1181,8 @@ pub unsafe fn HalExamineMBR(deviceobject: *const super::super::Foundation::DEVIC #[cfg(feature = "Win32_Storage_IscsiDisc")] #[inline] pub unsafe fn HalFreeCommonBuffer(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, length: u32, logicaladdress: i64, virtualaddress: *const core::ffi::c_void, cacheenabled: bool) { - windows_targets::link!("hal.dll" "system" fn HalFreeCommonBuffer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, length : u32, logicaladdress : i64, virtualaddress : *const core::ffi::c_void, cacheenabled : super::super::super::Win32::Foundation:: BOOLEAN)); - HalFreeCommonBuffer(core::mem::transmute(adapterobject), core::mem::transmute(length), core::mem::transmute(logicaladdress), core::mem::transmute(virtualaddress), cacheenabled.into()) + windows_targets::link!("hal.dll" "system" fn HalFreeCommonBuffer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, length : u32, logicaladdress : i64, virtualaddress : *const core::ffi::c_void, cacheenabled : bool)); + HalFreeCommonBuffer(core::mem::transmute(adapterobject), core::mem::transmute(length), core::mem::transmute(logicaladdress), core::mem::transmute(virtualaddress), core::mem::transmute(cacheenabled)) } #[inline] pub unsafe fn HalFreeHardwareCounters(countersethandle: super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -1211,8 +1211,8 @@ pub unsafe fn HalGetInterruptVector(interfacetype: INTERFACE_TYPE, busnumber: u3 HalGetInterruptVector(core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(businterruptlevel), core::mem::transmute(businterruptvector), core::mem::transmute(irql), core::mem::transmute(affinity)) } #[inline] -pub unsafe fn HalMakeBeep(frequency: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("hal.dll" "system" fn HalMakeBeep(frequency : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn HalMakeBeep(frequency: u32) -> bool { + windows_targets::link!("hal.dll" "system" fn HalMakeBeep(frequency : u32) -> bool); HalMakeBeep(core::mem::transmute(frequency)) } #[cfg(feature = "Win32_Storage_IscsiDisc")] @@ -1232,8 +1232,8 @@ pub unsafe fn HalSetBusDataByOffset(busdatatype: BUS_DATA_TYPE, busnumber: u32, HalSetBusDataByOffset(core::mem::transmute(busdatatype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(buffer), core::mem::transmute(offset), core::mem::transmute(length)) } #[inline] -pub unsafe fn HalTranslateBusAddress(interfacetype: INTERFACE_TYPE, busnumber: u32, busaddress: i64, addressspace: *mut u32, translatedaddress: *mut i64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("hal.dll" "system" fn HalTranslateBusAddress(interfacetype : INTERFACE_TYPE, busnumber : u32, busaddress : i64, addressspace : *mut u32, translatedaddress : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn HalTranslateBusAddress(interfacetype: INTERFACE_TYPE, busnumber: u32, busaddress: i64, addressspace: *mut u32, translatedaddress: *mut i64) -> bool { + windows_targets::link!("hal.dll" "system" fn HalTranslateBusAddress(interfacetype : INTERFACE_TYPE, busnumber : u32, busaddress : i64, addressspace : *mut u32, translatedaddress : *mut i64) -> bool); HalTranslateBusAddress(core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(busaddress), core::mem::transmute(addressspace), core::mem::transmute(translatedaddress)) } #[inline] @@ -1300,20 +1300,20 @@ pub unsafe fn IoAllocateErrorLogEntry(ioobject: *const core::ffi::c_void, entrys #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAllocateIrp(stacksize: i8, chargequota: bool) -> *mut super::super::Foundation::IRP { - windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateIrp(stacksize : i8, chargequota : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut super::super::Foundation:: IRP); - IoAllocateIrp(core::mem::transmute(stacksize), chargequota.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateIrp(stacksize : i8, chargequota : bool) -> *mut super::super::Foundation:: IRP); + IoAllocateIrp(core::mem::transmute(stacksize), core::mem::transmute(chargequota)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAllocateIrpEx(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, stacksize: i8, chargequota: bool) -> *mut super::super::Foundation::IRP { - windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateIrpEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, stacksize : i8, chargequota : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut super::super::Foundation:: IRP); - IoAllocateIrpEx(core::mem::transmute(deviceobject), core::mem::transmute(stacksize), chargequota.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateIrpEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, stacksize : i8, chargequota : bool) -> *mut super::super::Foundation:: IRP); + IoAllocateIrpEx(core::mem::transmute(deviceobject), core::mem::transmute(stacksize), core::mem::transmute(chargequota)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoAllocateMdl(virtualaddress: Option<*const core::ffi::c_void>, length: u32, secondarybuffer: bool, chargequota: bool, irp: Option<*mut super::super::Foundation::IRP>) -> *mut super::super::Foundation::MDL { - windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateMdl(virtualaddress : *const core::ffi::c_void, length : u32, secondarybuffer : super::super::super::Win32::Foundation:: BOOLEAN, chargequota : super::super::super::Win32::Foundation:: BOOLEAN, irp : *mut super::super::Foundation:: IRP) -> *mut super::super::Foundation:: MDL); - IoAllocateMdl(core::mem::transmute(virtualaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), secondarybuffer.into(), chargequota.into(), core::mem::transmute(irp.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("ntoskrnl.exe" "system" fn IoAllocateMdl(virtualaddress : *const core::ffi::c_void, length : u32, secondarybuffer : bool, chargequota : bool, irp : *mut super::super::Foundation:: IRP) -> *mut super::super::Foundation:: MDL); + IoAllocateMdl(core::mem::transmute(virtualaddress.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(secondarybuffer), core::mem::transmute(chargequota), core::mem::transmute(irp.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1366,8 +1366,8 @@ pub unsafe fn IoBuildAsynchronousFsdRequest(majorfunction: u32, deviceobject: *c #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoBuildDeviceIoControlRequest(iocontrolcode: u32, deviceobject: *const super::super::Foundation::DEVICE_OBJECT, inputbuffer: Option<*const core::ffi::c_void>, inputbufferlength: u32, outputbuffer: Option<*mut core::ffi::c_void>, outputbufferlength: u32, internaldeviceiocontrol: bool, event: Option<*const super::super::Foundation::KEVENT>, iostatusblock: *mut super::super::super::Win32::System::IO::IO_STATUS_BLOCK) -> *mut super::super::Foundation::IRP { - windows_targets::link!("ntoskrnl.exe" "system" fn IoBuildDeviceIoControlRequest(iocontrolcode : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32, internaldeviceiocontrol : super::super::super::Win32::Foundation:: BOOLEAN, event : *const super::super::Foundation:: KEVENT, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> *mut super::super::Foundation:: IRP); - IoBuildDeviceIoControlRequest(core::mem::transmute(iocontrolcode), core::mem::transmute(deviceobject), core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputbufferlength), core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outputbufferlength), internaldeviceiocontrol.into(), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock)) + windows_targets::link!("ntoskrnl.exe" "system" fn IoBuildDeviceIoControlRequest(iocontrolcode : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32, internaldeviceiocontrol : bool, event : *const super::super::Foundation:: KEVENT, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK) -> *mut super::super::Foundation:: IRP); + IoBuildDeviceIoControlRequest(core::mem::transmute(iocontrolcode), core::mem::transmute(deviceobject), core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputbufferlength), core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outputbufferlength), core::mem::transmute(internaldeviceiocontrol), core::mem::transmute(event.unwrap_or(core::mem::zeroed())), core::mem::transmute(iostatusblock)) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -1389,8 +1389,8 @@ pub unsafe fn IoCancelFileOpen(deviceobject: *const super::super::Foundation::DE } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn IoCancelIrp(irp: *const super::super::Foundation::IRP) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoCancelIrp(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoCancelIrp(irp: *const super::super::Foundation::IRP) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoCancelIrp(irp : *const super::super::Foundation:: IRP) -> bool); IoCancelIrp(core::mem::transmute(irp)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -1402,14 +1402,14 @@ pub unsafe fn IoCheckLinkShareAccess(desiredaccess: u32, desiredshareaccess: u32 #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoCheckShareAccess(desiredaccess: u32, desiredshareaccess: u32, fileobject: *mut super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, update: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckShareAccess(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, update : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckShareAccess(core::mem::transmute(desiredaccess), core::mem::transmute(desiredshareaccess), core::mem::transmute(fileobject), core::mem::transmute(shareaccess), update.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckShareAccess(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, update : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoCheckShareAccess(core::mem::transmute(desiredaccess), core::mem::transmute(desiredshareaccess), core::mem::transmute(fileobject), core::mem::transmute(shareaccess), core::mem::transmute(update)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn IoCheckShareAccessEx(desiredaccess: u32, desiredshareaccess: u32, fileobject: *mut super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, update: bool, writepermission: Option<*const super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckShareAccessEx(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, update : super::super::super::Win32::Foundation:: BOOLEAN, writepermission : *const super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCheckShareAccessEx(core::mem::transmute(desiredaccess), core::mem::transmute(desiredshareaccess), core::mem::transmute(fileobject), core::mem::transmute(shareaccess), update.into(), core::mem::transmute(writepermission.unwrap_or(core::mem::zeroed()))) +pub unsafe fn IoCheckShareAccessEx(desiredaccess: u32, desiredshareaccess: u32, fileobject: *mut super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, update: bool, writepermission: Option<*const bool>) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntoskrnl.exe" "system" fn IoCheckShareAccessEx(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, update : bool, writepermission : *const bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoCheckShareAccessEx(core::mem::transmute(desiredaccess), core::mem::transmute(desiredshareaccess), core::mem::transmute(fileobject), core::mem::transmute(shareaccess), core::mem::transmute(update), core::mem::transmute(writepermission.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1431,8 +1431,8 @@ pub unsafe fn IoClearIrpExtraCreateParameter(irp: *mut super::super::Foundation: #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn IoConnectInterrupt(interruptobject: *mut super::super::Foundation::PKINTERRUPT, serviceroutine: PKSERVICE_ROUTINE, servicecontext: Option<*const core::ffi::c_void>, spinlock: Option<*const usize>, vector: u32, irql: u8, synchronizeirql: u8, interruptmode: KINTERRUPT_MODE, sharevector: bool, processorenablemask: usize, floatingsave: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoConnectInterrupt(interruptobject : *mut super::super::Foundation:: PKINTERRUPT, serviceroutine : PKSERVICE_ROUTINE, servicecontext : *const core::ffi::c_void, spinlock : *const usize, vector : u32, irql : u8, synchronizeirql : u8, interruptmode : KINTERRUPT_MODE, sharevector : super::super::super::Win32::Foundation:: BOOLEAN, processorenablemask : usize, floatingsave : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoConnectInterrupt(core::mem::transmute(interruptobject), core::mem::transmute(serviceroutine), core::mem::transmute(servicecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(spinlock.unwrap_or(core::mem::zeroed())), core::mem::transmute(vector), core::mem::transmute(irql), core::mem::transmute(synchronizeirql), core::mem::transmute(interruptmode), sharevector.into(), core::mem::transmute(processorenablemask), floatingsave.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoConnectInterrupt(interruptobject : *mut super::super::Foundation:: PKINTERRUPT, serviceroutine : PKSERVICE_ROUTINE, servicecontext : *const core::ffi::c_void, spinlock : *const usize, vector : u32, irql : u8, synchronizeirql : u8, interruptmode : KINTERRUPT_MODE, sharevector : bool, processorenablemask : usize, floatingsave : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoConnectInterrupt(core::mem::transmute(interruptobject), core::mem::transmute(serviceroutine), core::mem::transmute(servicecontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(spinlock.unwrap_or(core::mem::zeroed())), core::mem::transmute(vector), core::mem::transmute(irql), core::mem::transmute(synchronizeirql), core::mem::transmute(interruptmode), core::mem::transmute(sharevector), core::mem::transmute(processorenablemask), core::mem::transmute(floatingsave)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1449,8 +1449,8 @@ pub unsafe fn IoCreateController(size: u32) -> *mut CONTROLLER_OBJECT { #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoCreateDevice(driverobject: *const super::super::Foundation::DRIVER_OBJECT, deviceextensionsize: u32, devicename: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, devicetype: u32, devicecharacteristics: u32, exclusive: bool, deviceobject: *mut *mut super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateDevice(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, deviceextensionsize : u32, devicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, devicetype : u32, devicecharacteristics : u32, exclusive : super::super::super::Win32::Foundation:: BOOLEAN, deviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoCreateDevice(core::mem::transmute(driverobject), core::mem::transmute(deviceextensionsize), core::mem::transmute(devicename.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicetype), core::mem::transmute(devicecharacteristics), exclusive.into(), core::mem::transmute(deviceobject)) + windows_targets::link!("ntoskrnl.exe" "system" fn IoCreateDevice(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, deviceextensionsize : u32, devicename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, devicetype : u32, devicecharacteristics : u32, exclusive : bool, deviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoCreateDevice(core::mem::transmute(driverobject), core::mem::transmute(deviceextensionsize), core::mem::transmute(devicename.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicetype), core::mem::transmute(devicecharacteristics), core::mem::transmute(exclusive), core::mem::transmute(deviceobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -1636,14 +1636,14 @@ pub unsafe fn IoEnumerateKsrPersistentMemoryEx(driverobject: *const super::super } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Storage_IscsiDisc"))] #[inline] -pub unsafe fn IoFlushAdapterBuffers(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, mdl: *const super::super::Foundation::MDL, mapregisterbase: *const core::ffi::c_void, currentva: *const core::ffi::c_void, length: u32, writetodevice: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("hal.dll" "system" fn IoFlushAdapterBuffers(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, mdl : *const super::super::Foundation:: MDL, mapregisterbase : *const core::ffi::c_void, currentva : *const core::ffi::c_void, length : u32, writetodevice : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - IoFlushAdapterBuffers(core::mem::transmute(adapterobject), core::mem::transmute(mdl), core::mem::transmute(mapregisterbase), core::mem::transmute(currentva), core::mem::transmute(length), writetodevice.into()) +pub unsafe fn IoFlushAdapterBuffers(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, mdl: *const super::super::Foundation::MDL, mapregisterbase: *const core::ffi::c_void, currentva: *const core::ffi::c_void, length: u32, writetodevice: bool) -> bool { + windows_targets::link!("hal.dll" "system" fn IoFlushAdapterBuffers(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, mdl : *const super::super::Foundation:: MDL, mapregisterbase : *const core::ffi::c_void, currentva : *const core::ffi::c_void, length : u32, writetodevice : bool) -> bool); + IoFlushAdapterBuffers(core::mem::transmute(adapterobject), core::mem::transmute(mdl), core::mem::transmute(mapregisterbase), core::mem::transmute(currentva), core::mem::transmute(length), core::mem::transmute(writetodevice)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn IoForwardIrpSynchronously(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, irp: *const super::super::Foundation::IRP) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoForwardIrpSynchronously(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoForwardIrpSynchronously(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, irp: *const super::super::Foundation::IRP) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoForwardIrpSynchronously(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP) -> bool); IoForwardIrpSynchronously(core::mem::transmute(deviceobject), core::mem::transmute(irp)) } #[cfg(feature = "Win32_Storage_IscsiDisc")] @@ -1960,26 +1960,26 @@ pub unsafe fn IoInvalidateDeviceState(physicaldeviceobject: *const super::super: } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn IoIs32bitProcess(irp: Option<*const super::super::Foundation::IRP>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoIs32bitProcess(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoIs32bitProcess(irp: Option<*const super::super::Foundation::IRP>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoIs32bitProcess(irp : *const super::super::Foundation:: IRP) -> bool); IoIs32bitProcess(core::mem::transmute(irp.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn IoIsFileObjectIgnoringSharing(fileobject: *const super::super::Foundation::FILE_OBJECT) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoIsFileObjectIgnoringSharing(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoIsFileObjectIgnoringSharing(fileobject: *const super::super::Foundation::FILE_OBJECT) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoIsFileObjectIgnoringSharing(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> bool); IoIsFileObjectIgnoringSharing(core::mem::transmute(fileobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn IoIsFileOriginRemote(fileobject: *const super::super::Foundation::FILE_OBJECT) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoIsFileOriginRemote(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoIsFileOriginRemote(fileobject: *const super::super::Foundation::FILE_OBJECT) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoIsFileOriginRemote(fileobject : *const super::super::Foundation:: FILE_OBJECT) -> bool); IoIsFileOriginRemote(core::mem::transmute(fileobject)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn IoIsInitiator32bitProcess(irp: *const super::super::Foundation::IRP) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoIsInitiator32bitProcess(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoIsInitiator32bitProcess(irp: *const super::super::Foundation::IRP) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoIsInitiator32bitProcess(irp : *const super::super::Foundation:: IRP) -> bool); IoIsInitiator32bitProcess(core::mem::transmute(irp)) } #[inline] @@ -1988,8 +1988,8 @@ pub unsafe fn IoIsValidIrpStatus(status: super::super::super::Win32::Foundation: IoIsValidIrpStatus(core::mem::transmute(status)) } #[inline] -pub unsafe fn IoIsWdmVersionAvailable(majorversion: u8, minorversion: u8) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoIsWdmVersionAvailable(majorversion : u8, minorversion : u8) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoIsWdmVersionAvailable(majorversion: u8, minorversion: u8) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoIsWdmVersionAvailable(majorversion : u8, minorversion : u8) -> bool); IoIsWdmVersionAvailable(core::mem::transmute(majorversion), core::mem::transmute(minorversion)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -2007,8 +2007,8 @@ pub unsafe fn IoMakeAssociatedIrpEx(irp: *const super::super::Foundation::IRP, d #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Storage_IscsiDisc"))] #[inline] pub unsafe fn IoMapTransfer(adapterobject: *const super::super::super::Win32::Storage::IscsiDisc::_ADAPTER_OBJECT, mdl: *const super::super::Foundation::MDL, mapregisterbase: *const core::ffi::c_void, currentva: *const core::ffi::c_void, length: *mut u32, writetodevice: bool) -> i64 { - windows_targets::link!("hal.dll" "system" fn IoMapTransfer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, mdl : *const super::super::Foundation:: MDL, mapregisterbase : *const core::ffi::c_void, currentva : *const core::ffi::c_void, length : *mut u32, writetodevice : super::super::super::Win32::Foundation:: BOOLEAN) -> i64); - IoMapTransfer(core::mem::transmute(adapterobject), core::mem::transmute(mdl), core::mem::transmute(mapregisterbase), core::mem::transmute(currentva), core::mem::transmute(length), writetodevice.into()) + windows_targets::link!("hal.dll" "system" fn IoMapTransfer(adapterobject : *const super::super::super::Win32::Storage::IscsiDisc:: _ADAPTER_OBJECT, mdl : *const super::super::Foundation:: MDL, mapregisterbase : *const core::ffi::c_void, currentva : *const core::ffi::c_void, length : *mut u32, writetodevice : bool) -> i64); + IoMapTransfer(core::mem::transmute(adapterobject), core::mem::transmute(mdl), core::mem::transmute(mapregisterbase), core::mem::transmute(currentva), core::mem::transmute(length), core::mem::transmute(writetodevice)) } #[inline] pub unsafe fn IoOpenDeviceInterfaceRegistryKey(symboliclinkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, desiredaccess: u32, deviceinterfaceregkey: *mut super::super::super::Win32::Foundation::HANDLE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2091,8 +2091,8 @@ pub unsafe fn IoRaiseHardError(irp: *const super::super::Foundation::IRP, vpb: O } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn IoRaiseInformationalHardError(errorstatus: super::super::super::Win32::Foundation::NTSTATUS, string: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, thread: Option) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoRaiseInformationalHardError(errorstatus : super::super::super::Win32::Foundation:: NTSTATUS, string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, thread : super::super::Foundation:: PKTHREAD) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoRaiseInformationalHardError(errorstatus: super::super::super::Win32::Foundation::NTSTATUS, string: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, thread: Option) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoRaiseInformationalHardError(errorstatus : super::super::super::Win32::Foundation:: NTSTATUS, string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, thread : super::super::Foundation:: PKTHREAD) -> bool); IoRaiseInformationalHardError(core::mem::transmute(errorstatus), core::mem::transmute(string.unwrap_or(core::mem::zeroed())), core::mem::transmute(thread.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -2104,8 +2104,8 @@ pub unsafe fn IoReadDiskSignature(deviceobject: *const super::super::Foundation: #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReadPartitionTable(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, sectorsize: u32, returnrecognizedpartitions: bool, partitionbuffer: *mut *mut super::super::super::Win32::System::Ioctl::DRIVE_LAYOUT_INFORMATION) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoReadPartitionTable(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectorsize : u32, returnrecognizedpartitions : super::super::super::Win32::Foundation:: BOOLEAN, partitionbuffer : *mut *mut super::super::super::Win32::System::Ioctl:: DRIVE_LAYOUT_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReadPartitionTable(core::mem::transmute(deviceobject), core::mem::transmute(sectorsize), returnrecognizedpartitions.into(), core::mem::transmute(partitionbuffer)) + windows_targets::link!("ntoskrnl.exe" "system" fn IoReadPartitionTable(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, sectorsize : u32, returnrecognizedpartitions : bool, partitionbuffer : *mut *mut super::super::super::Win32::System::Ioctl:: DRIVE_LAYOUT_INFORMATION) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoReadPartitionTable(core::mem::transmute(deviceobject), core::mem::transmute(sectorsize), core::mem::transmute(returnrecognizedpartitions), core::mem::transmute(partitionbuffer)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -2208,8 +2208,8 @@ pub unsafe fn IoReplacePartitionUnit(targetpdo: *const super::super::Foundation: #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoReportDetectedDevice(driverobject: *const super::super::Foundation::DRIVER_OBJECT, legacybustype: INTERFACE_TYPE, busnumber: u32, slotnumber: u32, resourcelist: Option<*const CM_RESOURCE_LIST>, resourcerequirements: Option<*const IO_RESOURCE_REQUIREMENTS_LIST>, resourceassigned: bool, deviceobject: *mut *mut super::super::Foundation::DEVICE_OBJECT) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoReportDetectedDevice(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, legacybustype : INTERFACE_TYPE, busnumber : u32, slotnumber : u32, resourcelist : *const CM_RESOURCE_LIST, resourcerequirements : *const IO_RESOURCE_REQUIREMENTS_LIST, resourceassigned : super::super::super::Win32::Foundation:: BOOLEAN, deviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoReportDetectedDevice(core::mem::transmute(driverobject), core::mem::transmute(legacybustype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(resourcelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(resourcerequirements.unwrap_or(core::mem::zeroed())), resourceassigned.into(), core::mem::transmute(deviceobject)) + windows_targets::link!("ntoskrnl.exe" "system" fn IoReportDetectedDevice(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, legacybustype : INTERFACE_TYPE, busnumber : u32, slotnumber : u32, resourcelist : *const CM_RESOURCE_LIST, resourcerequirements : *const IO_RESOURCE_REQUIREMENTS_LIST, resourceassigned : bool, deviceobject : *mut *mut super::super::Foundation:: DEVICE_OBJECT) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoReportDetectedDevice(core::mem::transmute(driverobject), core::mem::transmute(legacybustype), core::mem::transmute(busnumber), core::mem::transmute(slotnumber), core::mem::transmute(resourcelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(resourcerequirements.unwrap_or(core::mem::zeroed())), core::mem::transmute(resourceassigned), core::mem::transmute(deviceobject)) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -2225,14 +2225,14 @@ pub unsafe fn IoReportInterruptInactive(parameters: *const IO_REPORT_INTERRUPT_A } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn IoReportResourceForDetection(driverobject: *const super::super::Foundation::DRIVER_OBJECT, driverlist: Option<*const CM_RESOURCE_LIST>, driverlistsize: Option, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, devicelist: Option<*const CM_RESOURCE_LIST>, devicelistsize: Option, conflictdetected: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoReportResourceForDetection(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, driverlist : *const CM_RESOURCE_LIST, driverlistsize : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, devicelist : *const CM_RESOURCE_LIST, devicelistsize : u32, conflictdetected : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn IoReportResourceForDetection(driverobject: *const super::super::Foundation::DRIVER_OBJECT, driverlist: Option<*const CM_RESOURCE_LIST>, driverlistsize: Option, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, devicelist: Option<*const CM_RESOURCE_LIST>, devicelistsize: Option, conflictdetected: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntoskrnl.exe" "system" fn IoReportResourceForDetection(driverobject : *const super::super::Foundation:: DRIVER_OBJECT, driverlist : *const CM_RESOURCE_LIST, driverlistsize : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, devicelist : *const CM_RESOURCE_LIST, devicelistsize : u32, conflictdetected : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); IoReportResourceForDetection(core::mem::transmute(driverobject), core::mem::transmute(driverlist.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverlistsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicelistsize.unwrap_or(core::mem::zeroed())), core::mem::transmute(conflictdetected)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn IoReportResourceUsage(driverclassname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, driverobject: *const super::super::Foundation::DRIVER_OBJECT, driverlist: Option<*const CM_RESOURCE_LIST>, driverlistsize: Option, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, devicelist: Option<*const CM_RESOURCE_LIST>, devicelistsize: Option, overrideconflict: bool, conflictdetected: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoReportResourceUsage(driverclassname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, driverobject : *const super::super::Foundation:: DRIVER_OBJECT, driverlist : *const CM_RESOURCE_LIST, driverlistsize : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, devicelist : *const CM_RESOURCE_LIST, devicelistsize : u32, overrideconflict : super::super::super::Win32::Foundation:: BOOLEAN, conflictdetected : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn IoReportResourceUsage(driverclassname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, driverobject: *const super::super::Foundation::DRIVER_OBJECT, driverlist: Option<*const CM_RESOURCE_LIST>, driverlistsize: Option, deviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, devicelist: Option<*const CM_RESOURCE_LIST>, devicelistsize: Option, overrideconflict: bool, conflictdetected: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntoskrnl.exe" "system" fn IoReportResourceUsage(driverclassname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, driverobject : *const super::super::Foundation:: DRIVER_OBJECT, driverlist : *const CM_RESOURCE_LIST, driverlistsize : u32, deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, devicelist : *const CM_RESOURCE_LIST, devicelistsize : u32, overrideconflict : bool, conflictdetected : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); IoReportResourceUsage( core::mem::transmute(driverclassname.unwrap_or(core::mem::zeroed())), core::mem::transmute(driverobject), @@ -2241,7 +2241,7 @@ pub unsafe fn IoReportResourceUsage(driverclassname: Option<*const super::super: core::mem::transmute(deviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicelist.unwrap_or(core::mem::zeroed())), core::mem::transmute(devicelistsize.unwrap_or(core::mem::zeroed())), - overrideconflict.into(), + core::mem::transmute(overrideconflict), core::mem::transmute(conflictdetected), ) } @@ -2307,8 +2307,8 @@ pub unsafe fn IoSetActivityIdThread(activityid: *const windows_core::GUID) -> *m #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetCompletionRoutineEx(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, irp: *const super::super::Foundation::IRP, completionroutine: super::super::Foundation::PIO_COMPLETION_ROUTINE, context: Option<*const core::ffi::c_void>, invokeonsuccess: bool, invokeonerror: bool, invokeoncancel: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoSetCompletionRoutineEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP, completionroutine : super::super::Foundation:: PIO_COMPLETION_ROUTINE, context : *const core::ffi::c_void, invokeonsuccess : super::super::super::Win32::Foundation:: BOOLEAN, invokeonerror : super::super::super::Win32::Foundation:: BOOLEAN, invokeoncancel : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetCompletionRoutineEx(core::mem::transmute(deviceobject), core::mem::transmute(irp), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), invokeonsuccess.into(), invokeonerror.into(), invokeoncancel.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoSetCompletionRoutineEx(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, irp : *const super::super::Foundation:: IRP, completionroutine : super::super::Foundation:: PIO_COMPLETION_ROUTINE, context : *const core::ffi::c_void, invokeonsuccess : bool, invokeonerror : bool, invokeoncancel : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoSetCompletionRoutineEx(core::mem::transmute(deviceobject), core::mem::transmute(irp), core::mem::transmute(completionroutine), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), core::mem::transmute(invokeonsuccess), core::mem::transmute(invokeonerror), core::mem::transmute(invokeoncancel)) } #[inline] pub unsafe fn IoSetDeviceInterfacePropertyData(symboliclinkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, propertykey: *const super::super::super::Win32::Foundation::DEVPROPKEY, lcid: u32, flags: u32, r#type: u32, size: u32, data: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2317,8 +2317,8 @@ pub unsafe fn IoSetDeviceInterfacePropertyData(symboliclinkname: *const super::s } #[inline] pub unsafe fn IoSetDeviceInterfaceState(symboliclinkname: *const super::super::super::Win32::Foundation::UNICODE_STRING, enable: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoSetDeviceInterfaceState(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, enable : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetDeviceInterfaceState(core::mem::transmute(symboliclinkname), enable.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoSetDeviceInterfaceState(symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, enable : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoSetDeviceInterfaceState(core::mem::transmute(symboliclinkname), core::mem::transmute(enable)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -2335,8 +2335,8 @@ pub unsafe fn IoSetFileObjectIgnoreSharing(fileobject: *const super::super::Foun #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetFileOrigin(fileobject: *const super::super::Foundation::FILE_OBJECT, remote: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoSetFileOrigin(fileobject : *const super::super::Foundation:: FILE_OBJECT, remote : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoSetFileOrigin(core::mem::transmute(fileobject), remote.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoSetFileOrigin(fileobject : *const super::super::Foundation:: FILE_OBJECT, remote : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoSetFileOrigin(core::mem::transmute(fileobject), core::mem::transmute(remote)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -2406,15 +2406,15 @@ pub unsafe fn IoSetShareAccess(desiredaccess: u32, desiredshareaccess: u32, file } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn IoSetShareAccessEx(desiredaccess: u32, desiredshareaccess: u32, fileobject: *mut super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, writepermission: Option<*const super::super::super::Win32::Foundation::BOOLEAN>) { - windows_targets::link!("ntoskrnl.exe" "system" fn IoSetShareAccessEx(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, writepermission : *const super::super::super::Win32::Foundation:: BOOLEAN)); +pub unsafe fn IoSetShareAccessEx(desiredaccess: u32, desiredshareaccess: u32, fileobject: *mut super::super::Foundation::FILE_OBJECT, shareaccess: *mut SHARE_ACCESS, writepermission: Option<*const bool>) { + windows_targets::link!("ntoskrnl.exe" "system" fn IoSetShareAccessEx(desiredaccess : u32, desiredshareaccess : u32, fileobject : *mut super::super::Foundation:: FILE_OBJECT, shareaccess : *mut SHARE_ACCESS, writepermission : *const bool)); IoSetShareAccessEx(core::mem::transmute(desiredaccess), core::mem::transmute(desiredshareaccess), core::mem::transmute(fileobject), core::mem::transmute(shareaccess), core::mem::transmute(writepermission.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoSetStartIoAttributes(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, deferredstartio: bool, noncancelable: bool) { - windows_targets::link!("ntoskrnl.exe" "system" fn IoSetStartIoAttributes(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, deferredstartio : super::super::super::Win32::Foundation:: BOOLEAN, noncancelable : super::super::super::Win32::Foundation:: BOOLEAN)); - IoSetStartIoAttributes(core::mem::transmute(deviceobject), deferredstartio.into(), noncancelable.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoSetStartIoAttributes(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, deferredstartio : bool, noncancelable : bool)); + IoSetStartIoAttributes(core::mem::transmute(deviceobject), core::mem::transmute(deferredstartio), core::mem::transmute(noncancelable)) } #[inline] pub unsafe fn IoSetSystemPartition(volumenamestring: *const super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2422,9 +2422,9 @@ pub unsafe fn IoSetSystemPartition(volumenamestring: *const super::super::super: IoSetSystemPartition(core::mem::transmute(volumenamestring)) } #[inline] -pub unsafe fn IoSetThreadHardErrorMode(enableharderrors: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoSetThreadHardErrorMode(enableharderrors : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - IoSetThreadHardErrorMode(enableharderrors.into()) +pub unsafe fn IoSetThreadHardErrorMode(enableharderrors: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoSetThreadHardErrorMode(enableharderrors : bool) -> bool); + IoSetThreadHardErrorMode(core::mem::transmute(enableharderrors)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -2446,14 +2446,14 @@ pub unsafe fn IoSizeofWorkItem() -> u32 { #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoStartNextPacket(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, cancelable: bool) { - windows_targets::link!("ntoskrnl.exe" "system" fn IoStartNextPacket(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, cancelable : super::super::super::Win32::Foundation:: BOOLEAN)); - IoStartNextPacket(core::mem::transmute(deviceobject), cancelable.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoStartNextPacket(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, cancelable : bool)); + IoStartNextPacket(core::mem::transmute(deviceobject), core::mem::transmute(cancelable)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoStartNextPacketByKey(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, cancelable: bool, key: u32) { - windows_targets::link!("ntoskrnl.exe" "system" fn IoStartNextPacketByKey(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, cancelable : super::super::super::Win32::Foundation:: BOOLEAN, key : u32)); - IoStartNextPacketByKey(core::mem::transmute(deviceobject), cancelable.into(), core::mem::transmute(key)) + windows_targets::link!("ntoskrnl.exe" "system" fn IoStartNextPacketByKey(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, cancelable : bool, key : u32)); + IoStartNextPacketByKey(core::mem::transmute(deviceobject), core::mem::transmute(cancelable), core::mem::transmute(key)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] @@ -2485,14 +2485,14 @@ pub unsafe fn IoTransferActivityId(activityid: *const windows_core::GUID, relate IoTransferActivityId(core::mem::transmute(activityid), core::mem::transmute(relatedactivityid)) } #[inline] -pub unsafe fn IoTranslateBusAddress(interfacetype: INTERFACE_TYPE, busnumber: u32, busaddress: i64, addressspace: *mut u32, translatedaddress: *mut i64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoTranslateBusAddress(interfacetype : INTERFACE_TYPE, busnumber : u32, busaddress : i64, addressspace : *mut u32, translatedaddress : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoTranslateBusAddress(interfacetype: INTERFACE_TYPE, busnumber: u32, busaddress: i64, addressspace: *mut u32, translatedaddress: *mut i64) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoTranslateBusAddress(interfacetype : INTERFACE_TYPE, busnumber : u32, busaddress : i64, addressspace : *mut u32, translatedaddress : *mut i64) -> bool); IoTranslateBusAddress(core::mem::transmute(interfacetype), core::mem::transmute(busnumber), core::mem::transmute(busaddress), core::mem::transmute(addressspace), core::mem::transmute(translatedaddress)) } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn IoTryQueueWorkItem(ioworkitem: super::super::Foundation::PIO_WORKITEM, workerroutine: PIO_WORKITEM_ROUTINE_EX, queuetype: WORK_QUEUE_TYPE, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn IoTryQueueWorkItem(ioworkitem : super::super::Foundation:: PIO_WORKITEM, workerroutine : PIO_WORKITEM_ROUTINE_EX, queuetype : WORK_QUEUE_TYPE, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn IoTryQueueWorkItem(ioworkitem: super::super::Foundation::PIO_WORKITEM, workerroutine: PIO_WORKITEM_ROUTINE_EX, queuetype: WORK_QUEUE_TYPE, context: Option<*const core::ffi::c_void>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn IoTryQueueWorkItem(ioworkitem : super::super::Foundation:: PIO_WORKITEM, workerroutine : PIO_WORKITEM_ROUTINE_EX, queuetype : WORK_QUEUE_TYPE, context : *const core::ffi::c_void) -> bool); IoTryQueueWorkItem(core::mem::transmute(ioworkitem), core::mem::transmute(workerroutine), core::mem::transmute(queuetype), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] @@ -2554,8 +2554,8 @@ pub unsafe fn IoValidateDeviceIoControlAccess(irp: *const super::super::Foundati #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoVerifyPartitionTable(deviceobject: *const super::super::Foundation::DEVICE_OBJECT, fixerrors: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoVerifyPartitionTable(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, fixerrors : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoVerifyPartitionTable(core::mem::transmute(deviceobject), fixerrors.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn IoVerifyPartitionTable(deviceobject : *const super::super::Foundation:: DEVICE_OBJECT, fixerrors : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoVerifyPartitionTable(core::mem::transmute(deviceobject), core::mem::transmute(fixerrors)) } #[inline] pub unsafe fn IoVolumeDeviceNameToGuid(volumedevicename: *const super::super::super::Win32::Foundation::UNICODE_STRING, guid: *mut windows_core::GUID) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2652,8 +2652,8 @@ pub unsafe fn IoWMISetSingleItem(datablockobject: *const core::ffi::c_void, inst #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn IoWMISuggestInstanceName(physicaldeviceobject: Option<*const super::super::Foundation::DEVICE_OBJECT>, symboliclinkname: Option<*const super::super::super::Win32::Foundation::UNICODE_STRING>, combinenames: bool, suggestedinstancename: *mut super::super::super::Win32::Foundation::UNICODE_STRING) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn IoWMISuggestInstanceName(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, combinenames : super::super::super::Win32::Foundation:: BOOLEAN, suggestedinstancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); - IoWMISuggestInstanceName(core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(symboliclinkname.unwrap_or(core::mem::zeroed())), combinenames.into(), core::mem::transmute(suggestedinstancename)) + windows_targets::link!("ntoskrnl.exe" "system" fn IoWMISuggestInstanceName(physicaldeviceobject : *const super::super::Foundation:: DEVICE_OBJECT, symboliclinkname : *const super::super::super::Win32::Foundation:: UNICODE_STRING, combinenames : bool, suggestedinstancename : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS); + IoWMISuggestInstanceName(core::mem::transmute(physicaldeviceobject.unwrap_or(core::mem::zeroed())), core::mem::transmute(symboliclinkname.unwrap_or(core::mem::zeroed())), core::mem::transmute(combinenames), core::mem::transmute(suggestedinstancename)) } #[inline] pub unsafe fn IoWMIWriteEvent(wnodeeventitem: *mut core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2715,8 +2715,8 @@ pub unsafe fn KdEnableDebugger() -> super::super::super::Win32::Foundation::NTST KdEnableDebugger() } #[inline] -pub unsafe fn KdRefreshDebuggerNotPresent() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KdRefreshDebuggerNotPresent() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KdRefreshDebuggerNotPresent() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KdRefreshDebuggerNotPresent() -> bool); KdRefreshDebuggerNotPresent() } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -2764,13 +2764,13 @@ pub unsafe fn KeAddTriageDumpDataBlock(ktriagedumpdataarray: *mut KTRIAGE_DUMP_D KeAddTriageDumpDataBlock(core::mem::transmute(ktriagedumpdataarray), core::mem::transmute(address), core::mem::transmute(size)) } #[inline] -pub unsafe fn KeAreAllApcsDisabled() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeAreAllApcsDisabled() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeAreAllApcsDisabled() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeAreAllApcsDisabled() -> bool); KeAreAllApcsDisabled() } #[inline] -pub unsafe fn KeAreApcsDisabled() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeAreApcsDisabled() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeAreApcsDisabled() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeAreApcsDisabled() -> bool); KeAreApcsDisabled() } #[cfg(feature = "Win32_System_Diagnostics_Debug")] @@ -2787,8 +2787,8 @@ pub unsafe fn KeBugCheckEx(bugcheckcode: super::super::super::Win32::System::Dia } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn KeCancelTimer(param0: *mut KTIMER) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeCancelTimer(param0 : *mut KTIMER) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeCancelTimer(param0: *mut KTIMER) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeCancelTimer(param0 : *mut KTIMER) -> bool); KeCancelTimer(core::mem::transmute(param0)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] @@ -2809,8 +2809,8 @@ pub unsafe fn KeConvertPerformanceCounterToAuxiliaryCounter(performancecounterva } #[inline] pub unsafe fn KeDelayExecutionThread(waitmode: i8, alertable: bool, interval: *const i64) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn KeDelayExecutionThread(waitmode : i8, alertable : super::super::super::Win32::Foundation:: BOOLEAN, interval : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeDelayExecutionThread(core::mem::transmute(waitmode), alertable.into(), core::mem::transmute(interval)) + windows_targets::link!("ntoskrnl.exe" "system" fn KeDelayExecutionThread(waitmode : i8, alertable : bool, interval : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); + KeDelayExecutionThread(core::mem::transmute(waitmode), core::mem::transmute(alertable), core::mem::transmute(interval)) } #[inline] pub unsafe fn KeDeregisterBoundCallback(handle: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -2819,14 +2819,14 @@ pub unsafe fn KeDeregisterBoundCallback(handle: *const core::ffi::c_void) -> sup } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn KeDeregisterBugCheckCallback(callbackrecord: *mut KBUGCHECK_CALLBACK_RECORD) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterBugCheckCallback(callbackrecord : *mut KBUGCHECK_CALLBACK_RECORD) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeDeregisterBugCheckCallback(callbackrecord: *mut KBUGCHECK_CALLBACK_RECORD) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterBugCheckCallback(callbackrecord : *mut KBUGCHECK_CALLBACK_RECORD) -> bool); KeDeregisterBugCheckCallback(core::mem::transmute(callbackrecord)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn KeDeregisterBugCheckReasonCallback(callbackrecord: *mut KBUGCHECK_REASON_CALLBACK_RECORD) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterBugCheckReasonCallback(callbackrecord : *mut KBUGCHECK_REASON_CALLBACK_RECORD) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeDeregisterBugCheckReasonCallback(callbackrecord: *mut KBUGCHECK_REASON_CALLBACK_RECORD) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeDeregisterBugCheckReasonCallback(callbackrecord : *mut KBUGCHECK_REASON_CALLBACK_RECORD) -> bool); KeDeregisterBugCheckReasonCallback(core::mem::transmute(callbackrecord)) } #[inline] @@ -2856,14 +2856,14 @@ pub unsafe fn KeExpandKernelStackAndCallout(callout: PEXPAND_STACK_CALLOUT, para } #[inline] pub unsafe fn KeExpandKernelStackAndCalloutEx(callout: PEXPAND_STACK_CALLOUT, parameter: Option<*const core::ffi::c_void>, size: usize, wait: bool, context: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn KeExpandKernelStackAndCalloutEx(callout : PEXPAND_STACK_CALLOUT, parameter : *const core::ffi::c_void, size : usize, wait : super::super::super::Win32::Foundation:: BOOLEAN, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeExpandKernelStackAndCalloutEx(core::mem::transmute(callout), core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(size), wait.into(), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("ntoskrnl.exe" "system" fn KeExpandKernelStackAndCalloutEx(callout : PEXPAND_STACK_CALLOUT, parameter : *const core::ffi::c_void, size : usize, wait : bool, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS); + KeExpandKernelStackAndCalloutEx(core::mem::transmute(callout), core::mem::transmute(parameter.unwrap_or(core::mem::zeroed())), core::mem::transmute(size), core::mem::transmute(wait), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn KeFlushIoBuffers(mdl: *const super::super::Foundation::MDL, readoperation: bool, dmaoperation: bool) { - windows_targets::link!("ntoskrnl.exe" "system" fn KeFlushIoBuffers(mdl : *const super::super::Foundation:: MDL, readoperation : super::super::super::Win32::Foundation:: BOOLEAN, dmaoperation : super::super::super::Win32::Foundation:: BOOLEAN)); - KeFlushIoBuffers(core::mem::transmute(mdl), readoperation.into(), dmaoperation.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn KeFlushIoBuffers(mdl : *const super::super::Foundation:: MDL, readoperation : bool, dmaoperation : bool)); + KeFlushIoBuffers(core::mem::transmute(mdl), core::mem::transmute(readoperation), core::mem::transmute(dmaoperation)) } #[inline] pub unsafe fn KeFlushQueuedDpcs() { @@ -2928,8 +2928,8 @@ pub unsafe fn KeInitializeDpc(dpc: *mut super::super::Foundation::KDPC, deferred #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeInitializeEvent(event: *mut super::super::Foundation::KEVENT, r#type: super::super::super::Win32::System::Kernel::EVENT_TYPE, state: bool) { - windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeEvent(event : *mut super::super::Foundation:: KEVENT, r#type : super::super::super::Win32::System::Kernel:: EVENT_TYPE, state : super::super::super::Win32::Foundation:: BOOLEAN)); - KeInitializeEvent(core::mem::transmute(event), core::mem::transmute(r#type), state.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn KeInitializeEvent(event : *mut super::super::Foundation:: KEVENT, r#type : super::super::super::Win32::System::Kernel:: EVENT_TYPE, state : bool)); + KeInitializeEvent(core::mem::transmute(event), core::mem::transmute(r#type), core::mem::transmute(state)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -2982,25 +2982,25 @@ pub unsafe fn KeInitializeTriageDumpDataArray(ktriagedumpdataarray: *mut KTRIAGE } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn KeInsertByKeyDeviceQueue(devicequeue: *mut super::super::Foundation::KDEVICE_QUEUE, devicequeueentry: *mut KDEVICE_QUEUE_ENTRY, sortkey: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeInsertByKeyDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, devicequeueentry : *mut KDEVICE_QUEUE_ENTRY, sortkey : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeInsertByKeyDeviceQueue(devicequeue: *mut super::super::Foundation::KDEVICE_QUEUE, devicequeueentry: *mut KDEVICE_QUEUE_ENTRY, sortkey: u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeInsertByKeyDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, devicequeueentry : *mut KDEVICE_QUEUE_ENTRY, sortkey : u32) -> bool); KeInsertByKeyDeviceQueue(core::mem::transmute(devicequeue), core::mem::transmute(devicequeueentry), core::mem::transmute(sortkey)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn KeInsertDeviceQueue(devicequeue: *mut super::super::Foundation::KDEVICE_QUEUE, devicequeueentry: *mut KDEVICE_QUEUE_ENTRY) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeInsertDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, devicequeueentry : *mut KDEVICE_QUEUE_ENTRY) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeInsertDeviceQueue(devicequeue: *mut super::super::Foundation::KDEVICE_QUEUE, devicequeueentry: *mut KDEVICE_QUEUE_ENTRY) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeInsertDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, devicequeueentry : *mut KDEVICE_QUEUE_ENTRY) -> bool); KeInsertDeviceQueue(core::mem::transmute(devicequeue), core::mem::transmute(devicequeueentry)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn KeInsertQueueDpc(dpc: *mut super::super::Foundation::KDPC, systemargument1: Option<*const core::ffi::c_void>, systemargument2: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeInsertQueueDpc(dpc : *mut super::super::Foundation:: KDPC, systemargument1 : *const core::ffi::c_void, systemargument2 : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeInsertQueueDpc(dpc: *mut super::super::Foundation::KDPC, systemargument1: Option<*const core::ffi::c_void>, systemargument2: Option<*const core::ffi::c_void>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeInsertQueueDpc(dpc : *mut super::super::Foundation:: KDPC, systemargument1 : *const core::ffi::c_void, systemargument2 : *const core::ffi::c_void) -> bool); KeInsertQueueDpc(core::mem::transmute(dpc), core::mem::transmute(systemargument1.unwrap_or(core::mem::zeroed())), core::mem::transmute(systemargument2.unwrap_or(core::mem::zeroed()))) } #[inline] -pub unsafe fn KeInvalidateAllCaches() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeInvalidateAllCaches() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeInvalidateAllCaches() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeInvalidateAllCaches() -> bool); KeInvalidateAllCaches() } #[inline] @@ -3031,8 +3031,8 @@ pub unsafe fn KeLeaveGuardedRegion() { #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KePulseEvent(event: *mut super::super::Foundation::KEVENT, increment: i32, wait: bool) -> i32 { - windows_targets::link!("ntoskrnl.exe" "system" fn KePulseEvent(event : *mut super::super::Foundation:: KEVENT, increment : i32, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - KePulseEvent(core::mem::transmute(event), core::mem::transmute(increment), wait.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn KePulseEvent(event : *mut super::super::Foundation:: KEVENT, increment : i32, wait : bool) -> i32); + KePulseEvent(core::mem::transmute(event), core::mem::transmute(increment), core::mem::transmute(wait)) } #[inline] pub unsafe fn KeQueryActiveGroupCount() -> u16 { @@ -3192,8 +3192,8 @@ pub unsafe fn KeReadStateSemaphore(semaphore: *const KSEMAPHORE) -> i32 { } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn KeReadStateTimer(timer: *const KTIMER) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateTimer(timer : *const KTIMER) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeReadStateTimer(timer: *const KTIMER) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeReadStateTimer(timer : *const KTIMER) -> bool); KeReadStateTimer(core::mem::transmute(timer)) } #[inline] @@ -3203,14 +3203,14 @@ pub unsafe fn KeRegisterBoundCallback(callbackroutine: PBOUND_CALLBACK) -> *mut } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn KeRegisterBugCheckCallback(callbackrecord: *mut KBUGCHECK_CALLBACK_RECORD, callbackroutine: PKBUGCHECK_CALLBACK_ROUTINE, buffer: Option<*const core::ffi::c_void>, length: u32, component: *const u8) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterBugCheckCallback(callbackrecord : *mut KBUGCHECK_CALLBACK_RECORD, callbackroutine : PKBUGCHECK_CALLBACK_ROUTINE, buffer : *const core::ffi::c_void, length : u32, component : *const u8) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeRegisterBugCheckCallback(callbackrecord: *mut KBUGCHECK_CALLBACK_RECORD, callbackroutine: PKBUGCHECK_CALLBACK_ROUTINE, buffer: Option<*const core::ffi::c_void>, length: u32, component: *const u8) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterBugCheckCallback(callbackrecord : *mut KBUGCHECK_CALLBACK_RECORD, callbackroutine : PKBUGCHECK_CALLBACK_ROUTINE, buffer : *const core::ffi::c_void, length : u32, component : *const u8) -> bool); KeRegisterBugCheckCallback(core::mem::transmute(callbackrecord), core::mem::transmute(callbackroutine), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(length), core::mem::transmute(component)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn KeRegisterBugCheckReasonCallback(callbackrecord: *mut KBUGCHECK_REASON_CALLBACK_RECORD, callbackroutine: PKBUGCHECK_REASON_CALLBACK_ROUTINE, reason: KBUGCHECK_CALLBACK_REASON, component: *const u8) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterBugCheckReasonCallback(callbackrecord : *mut KBUGCHECK_REASON_CALLBACK_RECORD, callbackroutine : PKBUGCHECK_REASON_CALLBACK_ROUTINE, reason : KBUGCHECK_CALLBACK_REASON, component : *const u8) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeRegisterBugCheckReasonCallback(callbackrecord: *mut KBUGCHECK_REASON_CALLBACK_RECORD, callbackroutine: PKBUGCHECK_REASON_CALLBACK_ROUTINE, reason: KBUGCHECK_CALLBACK_REASON, component: *const u8) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeRegisterBugCheckReasonCallback(callbackrecord : *mut KBUGCHECK_REASON_CALLBACK_RECORD, callbackroutine : PKBUGCHECK_REASON_CALLBACK_ROUTINE, reason : KBUGCHECK_CALLBACK_REASON, component : *const u8) -> bool); KeRegisterBugCheckReasonCallback(core::mem::transmute(callbackrecord), core::mem::transmute(callbackroutine), core::mem::transmute(reason), core::mem::transmute(component)) } #[inline] @@ -3259,14 +3259,14 @@ pub unsafe fn KeReleaseInterruptSpinLock(interrupt: super::super::Foundation::PK #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeReleaseMutex(mutex: *mut super::super::Foundation::KMUTANT, wait: bool) -> i32 { - windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseMutex(mutex : *mut super::super::Foundation:: KMUTANT, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - KeReleaseMutex(core::mem::transmute(mutex), wait.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseMutex(mutex : *mut super::super::Foundation:: KMUTANT, wait : bool) -> i32); + KeReleaseMutex(core::mem::transmute(mutex), core::mem::transmute(wait)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeReleaseSemaphore(semaphore: *mut KSEMAPHORE, increment: i32, adjustment: i32, wait: bool) -> i32 { - windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseSemaphore(semaphore : *mut KSEMAPHORE, increment : i32, adjustment : i32, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - KeReleaseSemaphore(core::mem::transmute(semaphore), core::mem::transmute(increment), core::mem::transmute(adjustment), wait.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn KeReleaseSemaphore(semaphore : *mut KSEMAPHORE, increment : i32, adjustment : i32, wait : bool) -> i32); + KeReleaseSemaphore(core::mem::transmute(semaphore), core::mem::transmute(increment), core::mem::transmute(adjustment), core::mem::transmute(wait)) } #[inline] pub unsafe fn KeReleaseSpinLockForDpc(spinlock: *mut usize, oldirql: u8) { @@ -3293,21 +3293,21 @@ pub unsafe fn KeRemoveDeviceQueue(devicequeue: *mut super::super::Foundation::KD } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn KeRemoveEntryDeviceQueue(devicequeue: *mut super::super::Foundation::KDEVICE_QUEUE, devicequeueentry: *mut KDEVICE_QUEUE_ENTRY) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveEntryDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, devicequeueentry : *mut KDEVICE_QUEUE_ENTRY) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeRemoveEntryDeviceQueue(devicequeue: *mut super::super::Foundation::KDEVICE_QUEUE, devicequeueentry: *mut KDEVICE_QUEUE_ENTRY) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveEntryDeviceQueue(devicequeue : *mut super::super::Foundation:: KDEVICE_QUEUE, devicequeueentry : *mut KDEVICE_QUEUE_ENTRY) -> bool); KeRemoveEntryDeviceQueue(core::mem::transmute(devicequeue), core::mem::transmute(devicequeueentry)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn KeRemoveQueueDpc(dpc: *mut super::super::Foundation::KDPC) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueDpc(dpc : *mut super::super::Foundation:: KDPC) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeRemoveQueueDpc(dpc: *mut super::super::Foundation::KDPC) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueDpc(dpc : *mut super::super::Foundation:: KDPC) -> bool); KeRemoveQueueDpc(core::mem::transmute(dpc)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn KeRemoveQueueDpcEx(dpc: *mut super::super::Foundation::KDPC, waitifactive: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueDpcEx(dpc : *mut super::super::Foundation:: KDPC, waitifactive : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - KeRemoveQueueDpcEx(core::mem::transmute(dpc), waitifactive.into()) +pub unsafe fn KeRemoveQueueDpcEx(dpc: *mut super::super::Foundation::KDPC, waitifactive: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeRemoveQueueDpcEx(dpc : *mut super::super::Foundation:: KDPC, waitifactive : bool) -> bool); + KeRemoveQueueDpcEx(core::mem::transmute(dpc), core::mem::transmute(waitifactive)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -3351,15 +3351,15 @@ pub unsafe fn KeSetBasePriorityThread(thread: super::super::Foundation::PKTHREAD } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn KeSetCoalescableTimer(timer: *mut KTIMER, duetime: i64, period: u32, tolerabledelay: u32, dpc: Option<*const super::super::Foundation::KDPC>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeSetCoalescableTimer(timer : *mut KTIMER, duetime : i64, period : u32, tolerabledelay : u32, dpc : *const super::super::Foundation:: KDPC) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeSetCoalescableTimer(timer: *mut KTIMER, duetime: i64, period: u32, tolerabledelay: u32, dpc: Option<*const super::super::Foundation::KDPC>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeSetCoalescableTimer(timer : *mut KTIMER, duetime : i64, period : u32, tolerabledelay : u32, dpc : *const super::super::Foundation:: KDPC) -> bool); KeSetCoalescableTimer(core::mem::transmute(timer), core::mem::transmute(duetime), core::mem::transmute(period), core::mem::transmute(tolerabledelay), core::mem::transmute(dpc.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeSetEvent(event: *mut super::super::Foundation::KEVENT, increment: i32, wait: bool) -> i32 { - windows_targets::link!("ntoskrnl.exe" "system" fn KeSetEvent(event : *mut super::super::Foundation:: KEVENT, increment : i32, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - KeSetEvent(core::mem::transmute(event), core::mem::transmute(increment), wait.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn KeSetEvent(event : *mut super::super::Foundation:: KEVENT, increment : i32, wait : bool) -> i32); + KeSetEvent(core::mem::transmute(event), core::mem::transmute(increment), core::mem::transmute(wait)) } #[inline] pub unsafe fn KeSetHardwareCounterConfiguration(counterarray: &[HARDWARE_COUNTER]) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -3408,14 +3408,14 @@ pub unsafe fn KeSetTargetProcessorDpcEx(dpc: *mut super::super::Foundation::KDPC } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn KeSetTimer(timer: *mut KTIMER, duetime: i64, dpc: Option<*const super::super::Foundation::KDPC>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTimer(timer : *mut KTIMER, duetime : i64, dpc : *const super::super::Foundation:: KDPC) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeSetTimer(timer: *mut KTIMER, duetime: i64, dpc: Option<*const super::super::Foundation::KDPC>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTimer(timer : *mut KTIMER, duetime : i64, dpc : *const super::super::Foundation:: KDPC) -> bool); KeSetTimer(core::mem::transmute(timer), core::mem::transmute(duetime), core::mem::transmute(dpc.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn KeSetTimerEx(timer: *mut KTIMER, duetime: i64, period: i32, dpc: Option<*const super::super::Foundation::KDPC>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTimerEx(timer : *mut KTIMER, duetime : i64, period : i32, dpc : *const super::super::Foundation:: KDPC) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeSetTimerEx(timer: *mut KTIMER, duetime: i64, period: i32, dpc: Option<*const super::super::Foundation::KDPC>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeSetTimerEx(timer : *mut KTIMER, duetime : i64, period : i32, dpc : *const super::super::Foundation:: KDPC) -> bool); KeSetTimerEx(core::mem::transmute(timer), core::mem::transmute(duetime), core::mem::transmute(period), core::mem::transmute(dpc.unwrap_or(core::mem::zeroed()))) } #[inline] @@ -3430,36 +3430,36 @@ pub unsafe fn KeStallExecutionProcessor(microseconds: u32) { } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn KeSynchronizeExecution(interrupt: super::super::Foundation::PKINTERRUPT, synchronizeroutine: PKSYNCHRONIZE_ROUTINE, synchronizecontext: Option<*const core::ffi::c_void>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeSynchronizeExecution(interrupt : super::super::Foundation:: PKINTERRUPT, synchronizeroutine : PKSYNCHRONIZE_ROUTINE, synchronizecontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeSynchronizeExecution(interrupt: super::super::Foundation::PKINTERRUPT, synchronizeroutine: PKSYNCHRONIZE_ROUTINE, synchronizecontext: Option<*const core::ffi::c_void>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeSynchronizeExecution(interrupt : super::super::Foundation:: PKINTERRUPT, synchronizeroutine : PKSYNCHRONIZE_ROUTINE, synchronizecontext : *const core::ffi::c_void) -> bool); KeSynchronizeExecution(core::mem::transmute(interrupt), core::mem::transmute(synchronizeroutine), core::mem::transmute(synchronizecontext.unwrap_or(core::mem::zeroed()))) } #[inline] -pub unsafe fn KeTestSpinLock(spinlock: *const usize) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeTestSpinLock(spinlock : *const usize) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeTestSpinLock(spinlock: *const usize) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeTestSpinLock(spinlock : *const usize) -> bool); KeTestSpinLock(core::mem::transmute(spinlock)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn KeTryToAcquireGuardedMutex(mutex: *mut super::super::Foundation::FAST_MUTEX) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeTryToAcquireGuardedMutex(mutex : *mut super::super::Foundation:: FAST_MUTEX) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeTryToAcquireGuardedMutex(mutex: *mut super::super::Foundation::FAST_MUTEX) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeTryToAcquireGuardedMutex(mutex : *mut super::super::Foundation:: FAST_MUTEX) -> bool); KeTryToAcquireGuardedMutex(core::mem::transmute(mutex)) } #[inline] -pub unsafe fn KeTryToAcquireSpinLockAtDpcLevel(spinlock: *mut usize) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn KeTryToAcquireSpinLockAtDpcLevel(spinlock : *mut usize) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn KeTryToAcquireSpinLockAtDpcLevel(spinlock: *mut usize) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn KeTryToAcquireSpinLockAtDpcLevel(spinlock : *mut usize) -> bool); KeTryToAcquireSpinLockAtDpcLevel(core::mem::transmute(spinlock)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn KeWaitForMultipleObjects(object: &[*const core::ffi::c_void], waittype: super::super::super::Win32::System::Kernel::WAIT_TYPE, waitreason: KWAIT_REASON, waitmode: i8, alertable: bool, timeout: Option<*const i64>, waitblockarray: Option<*mut super::super::Foundation::KWAIT_BLOCK>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn KeWaitForMultipleObjects(count : u32, object : *const *const core::ffi::c_void, waittype : super::super::super::Win32::System::Kernel:: WAIT_TYPE, waitreason : KWAIT_REASON, waitmode : i8, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *const i64, waitblockarray : *mut super::super::Foundation:: KWAIT_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeWaitForMultipleObjects(object.len().try_into().unwrap(), core::mem::transmute(object.as_ptr()), core::mem::transmute(waittype), core::mem::transmute(waitreason), core::mem::transmute(waitmode), alertable.into(), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitblockarray.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("ntoskrnl.exe" "system" fn KeWaitForMultipleObjects(count : u32, object : *const *const core::ffi::c_void, waittype : super::super::super::Win32::System::Kernel:: WAIT_TYPE, waitreason : KWAIT_REASON, waitmode : i8, alertable : bool, timeout : *const i64, waitblockarray : *mut super::super::Foundation:: KWAIT_BLOCK) -> super::super::super::Win32::Foundation:: NTSTATUS); + KeWaitForMultipleObjects(object.len().try_into().unwrap(), core::mem::transmute(object.as_ptr()), core::mem::transmute(waittype), core::mem::transmute(waitreason), core::mem::transmute(waitmode), core::mem::transmute(alertable), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed())), core::mem::transmute(waitblockarray.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn KeWaitForSingleObject(object: *const core::ffi::c_void, waitreason: KWAIT_REASON, waitmode: i8, alertable: bool, timeout: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn KeWaitForSingleObject(object : *const core::ffi::c_void, waitreason : KWAIT_REASON, waitmode : i8, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - KeWaitForSingleObject(core::mem::transmute(object), core::mem::transmute(waitreason), core::mem::transmute(waitmode), alertable.into(), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("ntoskrnl.exe" "system" fn KeWaitForSingleObject(object : *const core::ffi::c_void, waitreason : KWAIT_REASON, waitmode : i8, alertable : bool, timeout : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); + KeWaitForSingleObject(core::mem::transmute(object), core::mem::transmute(waitreason), core::mem::transmute(waitmode), core::mem::transmute(alertable), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn KfRaiseIrql(newirql: u8) -> u8 { @@ -3658,8 +3658,8 @@ pub unsafe fn MmGetVirtualForPhysical(physicaladdress: i64) -> *mut core::ffi::c MmGetVirtualForPhysical(core::mem::transmute(physicaladdress)) } #[inline] -pub unsafe fn MmIsAddressValid(virtualaddress: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn MmIsAddressValid(virtualaddress : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn MmIsAddressValid(virtualaddress: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn MmIsAddressValid(virtualaddress : *const core::ffi::c_void) -> bool); MmIsAddressValid(core::mem::transmute(virtualaddress)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -3685,13 +3685,13 @@ pub unsafe fn MmIsIoSpaceActive(startaddress: i64, numberofbytes: usize) -> u32 MmIsIoSpaceActive(core::mem::transmute(startaddress), core::mem::transmute(numberofbytes)) } #[inline] -pub unsafe fn MmIsNonPagedSystemAddressValid(virtualaddress: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn MmIsNonPagedSystemAddressValid(virtualaddress : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn MmIsNonPagedSystemAddressValid(virtualaddress: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn MmIsNonPagedSystemAddressValid(virtualaddress : *const core::ffi::c_void) -> bool); MmIsNonPagedSystemAddressValid(core::mem::transmute(virtualaddress)) } #[inline] -pub unsafe fn MmIsThisAnNtAsSystem() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn MmIsThisAnNtAsSystem() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn MmIsThisAnNtAsSystem() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn MmIsThisAnNtAsSystem() -> bool); MmIsThisAnNtAsSystem() } #[inline] @@ -3925,8 +3925,8 @@ pub unsafe fn NtCommitEnlistment(enlistmenthandle: super::super::super::Win32::F } #[inline] pub unsafe fn NtCommitTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, wait: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtCommitTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtCommitTransaction(core::mem::transmute(transactionhandle), wait.into()) + windows_targets::link!("ntdll.dll" "system" fn NtCommitTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtCommitTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(wait)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -4121,8 +4121,8 @@ pub unsafe fn NtRollbackEnlistment(enlistmenthandle: super::super::super::Win32: } #[inline] pub unsafe fn NtRollbackTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, wait: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtRollbackTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtRollbackTransaction(core::mem::transmute(transactionhandle), wait.into()) + windows_targets::link!("ntdll.dll" "system" fn NtRollbackTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtRollbackTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(wait)) } #[inline] pub unsafe fn NtRollforwardTransactionManager(transactionmanagerhandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -4185,8 +4185,8 @@ pub unsafe fn ObGetFilterVersion() -> u16 { } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn ObGetObjectSecurity(object: *const core::ffi::c_void, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, memoryallocated: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn ObGetObjectSecurity(object : *const core::ffi::c_void, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, memoryallocated : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn ObGetObjectSecurity(object: *const core::ffi::c_void, securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, memoryallocated: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntoskrnl.exe" "system" fn ObGetObjectSecurity(object : *const core::ffi::c_void, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, memoryallocated : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); ObGetObjectSecurity(core::mem::transmute(object), core::mem::transmute(securitydescriptor), core::mem::transmute(memoryallocated)) } #[cfg(feature = "Wdk_Foundation")] @@ -4214,13 +4214,13 @@ pub unsafe fn ObReferenceObjectByPointerWithTag(object: *const core::ffi::c_void ObReferenceObjectByPointerWithTag(core::mem::transmute(object), core::mem::transmute(desiredaccess), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(accessmode), core::mem::transmute(tag)) } #[inline] -pub unsafe fn ObReferenceObjectSafe(object: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectSafe(object : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ObReferenceObjectSafe(object: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectSafe(object : *const core::ffi::c_void) -> bool); ObReferenceObjectSafe(core::mem::transmute(object)) } #[inline] -pub unsafe fn ObReferenceObjectSafeWithTag(object: *const core::ffi::c_void, tag: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectSafeWithTag(object : *const core::ffi::c_void, tag : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn ObReferenceObjectSafeWithTag(object: *const core::ffi::c_void, tag: u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn ObReferenceObjectSafeWithTag(object : *const core::ffi::c_void, tag : u32) -> bool); ObReferenceObjectSafeWithTag(core::mem::transmute(object), core::mem::transmute(tag)) } #[cfg(feature = "Wdk_Foundation")] @@ -4232,8 +4232,8 @@ pub unsafe fn ObRegisterCallbacks(callbackregistration: *const OB_CALLBACK_REGIS #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ObReleaseObjectSecurity(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, memoryallocated: bool) { - windows_targets::link!("ntoskrnl.exe" "system" fn ObReleaseObjectSecurity(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, memoryallocated : super::super::super::Win32::Foundation:: BOOLEAN)); - ObReleaseObjectSecurity(core::mem::transmute(securitydescriptor), memoryallocated.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn ObReleaseObjectSecurity(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, memoryallocated : bool)); + ObReleaseObjectSecurity(core::mem::transmute(securitydescriptor), core::mem::transmute(memoryallocated)) } #[inline] pub unsafe fn ObUnRegisterCallbacks(registrationhandle: *const core::ffi::c_void) { @@ -4422,8 +4422,8 @@ pub unsafe fn PoFxRegisterDevice(pdo: *const super::super::Foundation::DEVICE_OB #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] pub unsafe fn PoFxRegisterDripsWatchdogCallback(handle: super::super::Foundation::POHANDLE, callback: PPO_FX_DRIPS_WATCHDOG_CALLBACK, includechilddevices: bool, matchingdriverobject: Option<*const super::super::Foundation::DRIVER_OBJECT>) { - windows_targets::link!("ntoskrnl.exe" "system" fn PoFxRegisterDripsWatchdogCallback(handle : super::super::Foundation:: POHANDLE, callback : PPO_FX_DRIPS_WATCHDOG_CALLBACK, includechilddevices : super::super::super::Win32::Foundation:: BOOLEAN, matchingdriverobject : *const super::super::Foundation:: DRIVER_OBJECT)); - PoFxRegisterDripsWatchdogCallback(core::mem::transmute(handle), core::mem::transmute(callback), includechilddevices.into(), core::mem::transmute(matchingdriverobject.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("ntoskrnl.exe" "system" fn PoFxRegisterDripsWatchdogCallback(handle : super::super::Foundation:: POHANDLE, callback : PPO_FX_DRIPS_WATCHDOG_CALLBACK, includechilddevices : bool, matchingdriverobject : *const super::super::Foundation:: DRIVER_OBJECT)); + PoFxRegisterDripsWatchdogCallback(core::mem::transmute(handle), core::mem::transmute(callback), core::mem::transmute(includechilddevices), core::mem::transmute(matchingdriverobject.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -4446,8 +4446,8 @@ pub unsafe fn PoFxSetComponentResidency(handle: super::super::Foundation::POHAND #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn PoFxSetComponentWake(handle: super::super::Foundation::POHANDLE, component: u32, wakehint: bool) { - windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetComponentWake(handle : super::super::Foundation:: POHANDLE, component : u32, wakehint : super::super::super::Win32::Foundation:: BOOLEAN)); - PoFxSetComponentWake(core::mem::transmute(handle), core::mem::transmute(component), wakehint.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn PoFxSetComponentWake(handle : super::super::Foundation:: POHANDLE, component : u32, wakehint : bool)); + PoFxSetComponentWake(core::mem::transmute(handle), core::mem::transmute(component), core::mem::transmute(wakehint)) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -4475,19 +4475,19 @@ pub unsafe fn PoFxUnregisterDevice(handle: super::super::Foundation::POHANDLE) { } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn PoGetSystemWake(irp: *const super::super::Foundation::IRP) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn PoGetSystemWake(irp : *const super::super::Foundation:: IRP) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PoGetSystemWake(irp: *const super::super::Foundation::IRP) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn PoGetSystemWake(irp : *const super::super::Foundation:: IRP) -> bool); PoGetSystemWake(core::mem::transmute(irp)) } #[inline] -pub unsafe fn PoGetThermalRequestSupport(thermalrequest: *const core::ffi::c_void, r#type: PO_THERMAL_REQUEST_TYPE) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn PoGetThermalRequestSupport(thermalrequest : *const core::ffi::c_void, r#type : PO_THERMAL_REQUEST_TYPE) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PoGetThermalRequestSupport(thermalrequest: *const core::ffi::c_void, r#type: PO_THERMAL_REQUEST_TYPE) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn PoGetThermalRequestSupport(thermalrequest : *const core::ffi::c_void, r#type : PO_THERMAL_REQUEST_TYPE) -> bool); PoGetThermalRequestSupport(core::mem::transmute(thermalrequest), core::mem::transmute(r#type)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[inline] -pub unsafe fn PoQueryWatchdogTime(pdo: *const super::super::Foundation::DEVICE_OBJECT, secondsremaining: *mut u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn PoQueryWatchdogTime(pdo : *const super::super::Foundation:: DEVICE_OBJECT, secondsremaining : *mut u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PoQueryWatchdogTime(pdo: *const super::super::Foundation::DEVICE_OBJECT, secondsremaining: *mut u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn PoQueryWatchdogTime(pdo : *const super::super::Foundation:: DEVICE_OBJECT, secondsremaining : *mut u32) -> bool); PoQueryWatchdogTime(core::mem::transmute(pdo), core::mem::transmute(secondsremaining)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -4554,8 +4554,8 @@ pub unsafe fn PoSetSystemWakeDevice(deviceobject: *const super::super::Foundatio } #[inline] pub unsafe fn PoSetThermalActiveCooling(thermalrequest: *mut core::ffi::c_void, engaged: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn PoSetThermalActiveCooling(thermalrequest : *mut core::ffi::c_void, engaged : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - PoSetThermalActiveCooling(core::mem::transmute(thermalrequest), engaged.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn PoSetThermalActiveCooling(thermalrequest : *mut core::ffi::c_void, engaged : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + PoSetThermalActiveCooling(core::mem::transmute(thermalrequest), core::mem::transmute(engaged)) } #[inline] pub unsafe fn PoSetThermalPassiveCooling(thermalrequest: *mut core::ffi::c_void, throttle: u8) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -4803,8 +4803,8 @@ pub unsafe fn PsGetThreadServerSilo(thread: super::super::Foundation::PETHREAD) PsGetThreadServerSilo(core::mem::transmute(thread)) } #[inline] -pub unsafe fn PsGetVersion(majorversion: Option<*mut u32>, minorversion: Option<*mut u32>, buildnumber: Option<*mut u32>, csdversion: Option<*mut super::super::super::Win32::Foundation::UNICODE_STRING>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn PsGetVersion(majorversion : *mut u32, minorversion : *mut u32, buildnumber : *mut u32, csdversion : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PsGetVersion(majorversion: Option<*mut u32>, minorversion: Option<*mut u32>, buildnumber: Option<*mut u32>, csdversion: Option<*mut super::super::super::Win32::Foundation::UNICODE_STRING>) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn PsGetVersion(majorversion : *mut u32, minorversion : *mut u32, buildnumber : *mut u32, csdversion : *mut super::super::super::Win32::Foundation:: UNICODE_STRING) -> bool); PsGetVersion(core::mem::transmute(majorversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(minorversion.unwrap_or(core::mem::zeroed())), core::mem::transmute(buildnumber.unwrap_or(core::mem::zeroed())), core::mem::transmute(csdversion.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] @@ -4820,19 +4820,19 @@ pub unsafe fn PsInsertSiloContext(silo: super::super::Foundation::PESILO, contex PsInsertSiloContext(core::mem::transmute(silo), core::mem::transmute(contextslot), core::mem::transmute(silocontext)) } #[inline] -pub unsafe fn PsIsCurrentThreadInServerSilo() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn PsIsCurrentThreadInServerSilo() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PsIsCurrentThreadInServerSilo() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn PsIsCurrentThreadInServerSilo() -> bool); PsIsCurrentThreadInServerSilo() } #[inline] -pub unsafe fn PsIsCurrentThreadPrefetching() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn PsIsCurrentThreadPrefetching() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PsIsCurrentThreadPrefetching() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn PsIsCurrentThreadPrefetching() -> bool); PsIsCurrentThreadPrefetching() } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn PsIsHostSilo(silo: super::super::Foundation::PESILO) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn PsIsHostSilo(silo : super::super::Foundation:: PESILO) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PsIsHostSilo(silo: super::super::Foundation::PESILO) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn PsIsHostSilo(silo : super::super::Foundation:: PESILO) -> bool); PsIsHostSilo(core::mem::transmute(silo)) } #[cfg(feature = "Wdk_Foundation")] @@ -4894,19 +4894,19 @@ pub unsafe fn PsRevertToUserMultipleGroupAffinityThread(affinitytoken: super::su } #[inline] pub unsafe fn PsSetCreateProcessNotifyRoutine(notifyroutine: PCREATE_PROCESS_NOTIFY_ROUTINE, remove: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutine(notifyroutine : PCREATE_PROCESS_NOTIFY_ROUTINE, remove : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetCreateProcessNotifyRoutine(core::mem::transmute(notifyroutine), remove.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutine(notifyroutine : PCREATE_PROCESS_NOTIFY_ROUTINE, remove : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + PsSetCreateProcessNotifyRoutine(core::mem::transmute(notifyroutine), core::mem::transmute(remove)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power", feature = "Win32_System_WindowsProgramming"))] #[inline] pub unsafe fn PsSetCreateProcessNotifyRoutineEx(notifyroutine: PCREATE_PROCESS_NOTIFY_ROUTINE_EX, remove: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutineEx(notifyroutine : PCREATE_PROCESS_NOTIFY_ROUTINE_EX, remove : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetCreateProcessNotifyRoutineEx(core::mem::transmute(notifyroutine), remove.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutineEx(notifyroutine : PCREATE_PROCESS_NOTIFY_ROUTINE_EX, remove : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + PsSetCreateProcessNotifyRoutineEx(core::mem::transmute(notifyroutine), core::mem::transmute(remove)) } #[inline] pub unsafe fn PsSetCreateProcessNotifyRoutineEx2(notifytype: PSCREATEPROCESSNOTIFYTYPE, notifyinformation: *const core::ffi::c_void, remove: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutineEx2(notifytype : PSCREATEPROCESSNOTIFYTYPE, notifyinformation : *const core::ffi::c_void, remove : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - PsSetCreateProcessNotifyRoutineEx2(core::mem::transmute(notifytype), core::mem::transmute(notifyinformation), remove.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCreateProcessNotifyRoutineEx2(notifytype : PSCREATEPROCESSNOTIFYTYPE, notifyinformation : *const core::ffi::c_void, remove : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + PsSetCreateProcessNotifyRoutineEx2(core::mem::transmute(notifytype), core::mem::transmute(notifyinformation), core::mem::transmute(remove)) } #[inline] pub unsafe fn PsSetCreateThreadNotifyRoutine(notifyroutine: PCREATE_THREAD_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -4919,9 +4919,9 @@ pub unsafe fn PsSetCreateThreadNotifyRoutineEx(notifytype: PSCREATETHREADNOTIFYT PsSetCreateThreadNotifyRoutineEx(core::mem::transmute(notifytype), core::mem::transmute(notifyinformation)) } #[inline] -pub unsafe fn PsSetCurrentThreadPrefetching(prefetching: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCurrentThreadPrefetching(prefetching : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - PsSetCurrentThreadPrefetching(prefetching.into()) +pub unsafe fn PsSetCurrentThreadPrefetching(prefetching: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn PsSetCurrentThreadPrefetching(prefetching : bool) -> bool); + PsSetCurrentThreadPrefetching(core::mem::transmute(prefetching)) } #[inline] pub unsafe fn PsSetLoadImageNotifyRoutine(notifyroutine: PLOAD_IMAGE_NOTIFY_ROUTINE) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -4978,8 +4978,8 @@ pub unsafe fn PshedFreeMemory(address: *const core::ffi::c_void) { PshedFreeMemory(core::mem::transmute(address)) } #[inline] -pub unsafe fn PshedIsSystemWheaEnabled() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("pshed.dll" "system" fn PshedIsSystemWheaEnabled() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PshedIsSystemWheaEnabled() -> bool { + windows_targets::link!("pshed.dll" "system" fn PshedIsSystemWheaEnabled() -> bool); PshedIsSystemWheaEnabled() } #[cfg(feature = "Win32_System_Diagnostics_Debug")] @@ -4990,8 +4990,8 @@ pub unsafe fn PshedRegisterPlugin(packet: *mut WHEA_PSHED_PLUGIN_REGISTRATION_PA } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] -pub unsafe fn PshedSynchronizeExecution(errorsource: *const super::super::super::Win32::System::Diagnostics::Debug::WHEA_ERROR_SOURCE_DESCRIPTOR, synchronizeroutine: PKSYNCHRONIZE_ROUTINE, synchronizecontext: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("pshed.dll" "system" fn PshedSynchronizeExecution(errorsource : *const super::super::super::Win32::System::Diagnostics::Debug:: WHEA_ERROR_SOURCE_DESCRIPTOR, synchronizeroutine : PKSYNCHRONIZE_ROUTINE, synchronizecontext : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn PshedSynchronizeExecution(errorsource: *const super::super::super::Win32::System::Diagnostics::Debug::WHEA_ERROR_SOURCE_DESCRIPTOR, synchronizeroutine: PKSYNCHRONIZE_ROUTINE, synchronizecontext: *const core::ffi::c_void) -> bool { + windows_targets::link!("pshed.dll" "system" fn PshedSynchronizeExecution(errorsource : *const super::super::super::Win32::System::Diagnostics::Debug:: WHEA_ERROR_SOURCE_DESCRIPTOR, synchronizeroutine : PKSYNCHRONIZE_ROUTINE, synchronizecontext : *const core::ffi::c_void) -> bool); PshedSynchronizeExecution(core::mem::transmute(errorsource), core::mem::transmute(synchronizeroutine), core::mem::transmute(synchronizecontext)) } #[inline] @@ -5013,13 +5013,13 @@ where RtlAppendUnicodeToString(core::mem::transmute(destination), source.param().abi()) } #[inline] -pub unsafe fn RtlAreBitsClear(bitmapheader: *const RTL_BITMAP, startingindex: u32, length: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlAreBitsClear(bitmapheader : *const RTL_BITMAP, startingindex : u32, length : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlAreBitsClear(bitmapheader: *const RTL_BITMAP, startingindex: u32, length: u32) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlAreBitsClear(bitmapheader : *const RTL_BITMAP, startingindex : u32, length : u32) -> bool); RtlAreBitsClear(core::mem::transmute(bitmapheader), core::mem::transmute(startingindex), core::mem::transmute(length)) } #[inline] -pub unsafe fn RtlAreBitsSet(bitmapheader: *const RTL_BITMAP, startingindex: u32, length: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlAreBitsSet(bitmapheader : *const RTL_BITMAP, startingindex : u32, length : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlAreBitsSet(bitmapheader: *const RTL_BITMAP, startingindex: u32, length: u32) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlAreBitsSet(bitmapheader : *const RTL_BITMAP, startingindex : u32, length : u32) -> bool); RtlAreBitsSet(core::mem::transmute(bitmapheader), core::mem::transmute(startingindex), core::mem::transmute(length)) } #[inline] @@ -5066,22 +5066,22 @@ pub unsafe fn RtlCmEncodeMemIoResource(descriptor: *const CM_PARTIAL_RESOURCE_DE #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlCompareString(string1: *const super::super::super::Win32::System::Kernel::STRING, string2: *const super::super::super::Win32::System::Kernel::STRING, caseinsensitive: bool) -> i32 { - windows_targets::link!("ntdll.dll" "system" fn RtlCompareString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - RtlCompareString(core::mem::transmute(string1), core::mem::transmute(string2), caseinsensitive.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlCompareString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : bool) -> i32); + RtlCompareString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) } #[inline] pub unsafe fn RtlCompareUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: bool) -> i32 { - windows_targets::link!("ntdll.dll" "system" fn RtlCompareUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - RtlCompareUnicodeString(core::mem::transmute(string1), core::mem::transmute(string2), caseinsensitive.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlCompareUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool) -> i32); + RtlCompareUnicodeString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) } #[inline] pub unsafe fn RtlCompareUnicodeStrings(string1: &[u16], string2: &[u16], caseinsensitive: bool) -> i32 { - windows_targets::link!("ntdll.dll" "system" fn RtlCompareUnicodeStrings(string1 : *const u16, string1length : usize, string2 : *const u16, string2length : usize, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> i32); - RtlCompareUnicodeStrings(core::mem::transmute(string1.as_ptr()), string1.len().try_into().unwrap(), core::mem::transmute(string2.as_ptr()), string2.len().try_into().unwrap(), caseinsensitive.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlCompareUnicodeStrings(string1 : *const u16, string1length : usize, string2 : *const u16, string2length : usize, caseinsensitive : bool) -> i32); + RtlCompareUnicodeStrings(core::mem::transmute(string1.as_ptr()), string1.len().try_into().unwrap(), core::mem::transmute(string2.as_ptr()), string2.len().try_into().unwrap(), core::mem::transmute(caseinsensitive)) } #[inline] -pub unsafe fn RtlContractHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlContractHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlContractHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlContractHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE) -> bool); RtlContractHashTable(core::mem::transmute(hashtable)) } #[inline] @@ -5101,13 +5101,13 @@ pub unsafe fn RtlCopyUnicodeString(destinationstring: *mut super::super::super:: RtlCopyUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring.unwrap_or(core::mem::zeroed()))) } #[inline] -pub unsafe fn RtlCreateHashTable(hashtable: *mut *mut RTL_DYNAMIC_HASH_TABLE, shift: u32, flags: Option) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlCreateHashTable(hashtable : *mut *mut RTL_DYNAMIC_HASH_TABLE, shift : u32, flags : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlCreateHashTable(hashtable: *mut *mut RTL_DYNAMIC_HASH_TABLE, shift: u32, flags: Option) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlCreateHashTable(hashtable : *mut *mut RTL_DYNAMIC_HASH_TABLE, shift : u32, flags : u32) -> bool); RtlCreateHashTable(core::mem::transmute(hashtable), core::mem::transmute(shift), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) } #[inline] -pub unsafe fn RtlCreateHashTableEx(hashtable: *mut *mut RTL_DYNAMIC_HASH_TABLE, initialsize: u32, shift: u32, flags: Option) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlCreateHashTableEx(hashtable : *mut *mut RTL_DYNAMIC_HASH_TABLE, initialsize : u32, shift : u32, flags : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlCreateHashTableEx(hashtable: *mut *mut RTL_DYNAMIC_HASH_TABLE, initialsize: u32, shift: u32, flags: Option) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlCreateHashTableEx(hashtable : *mut *mut RTL_DYNAMIC_HASH_TABLE, initialsize : u32, shift : u32, flags : u32) -> bool); RtlCreateHashTableEx(core::mem::transmute(hashtable), core::mem::transmute(initialsize), core::mem::transmute(shift), core::mem::transmute(flags.unwrap_or(core::mem::zeroed()))) } #[inline] @@ -5132,13 +5132,13 @@ pub unsafe fn RtlDelete(links: *const super::super::Foundation::RTL_SPLAY_LINKS) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn RtlDeleteElementGenericTable(table: *const RTL_GENERIC_TABLE, buffer: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlDeleteElementGenericTable(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlDeleteElementGenericTable(table: *const RTL_GENERIC_TABLE, buffer: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlDeleteElementGenericTable(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void) -> bool); RtlDeleteElementGenericTable(core::mem::transmute(table), core::mem::transmute(buffer)) } #[inline] -pub unsafe fn RtlDeleteElementGenericTableAvl(table: *const RTL_AVL_TABLE, buffer: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlDeleteElementGenericTableAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlDeleteElementGenericTableAvl(table: *const RTL_AVL_TABLE, buffer: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlDeleteElementGenericTableAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void) -> bool); RtlDeleteElementGenericTableAvl(core::mem::transmute(table), core::mem::transmute(buffer)) } #[inline] @@ -5198,13 +5198,13 @@ pub unsafe fn RtlEnumerateEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABL #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] pub unsafe fn RtlEnumerateGenericTable(table: *const RTL_GENERIC_TABLE, restart: bool) -> *mut core::ffi::c_void { - windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTable(table : *const RTL_GENERIC_TABLE, restart : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut core::ffi::c_void); - RtlEnumerateGenericTable(core::mem::transmute(table), restart.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTable(table : *const RTL_GENERIC_TABLE, restart : bool) -> *mut core::ffi::c_void); + RtlEnumerateGenericTable(core::mem::transmute(table), core::mem::transmute(restart)) } #[inline] pub unsafe fn RtlEnumerateGenericTableAvl(table: *const RTL_AVL_TABLE, restart: bool) -> *mut core::ffi::c_void { - windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTableAvl(table : *const RTL_AVL_TABLE, restart : super::super::super::Win32::Foundation:: BOOLEAN) -> *mut core::ffi::c_void); - RtlEnumerateGenericTableAvl(core::mem::transmute(table), restart.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlEnumerateGenericTableAvl(table : *const RTL_AVL_TABLE, restart : bool) -> *mut core::ffi::c_void); + RtlEnumerateGenericTableAvl(core::mem::transmute(table), core::mem::transmute(restart)) } #[inline] pub unsafe fn RtlEnumerateGenericTableLikeADirectory(table: *const RTL_AVL_TABLE, matchfunction: Option, matchdata: Option<*const core::ffi::c_void>, nextflag: u32, restartkey: *mut *mut core::ffi::c_void, deletecount: *mut u32, buffer: *const core::ffi::c_void) -> *mut core::ffi::c_void { @@ -5224,18 +5224,18 @@ pub unsafe fn RtlEnumerateGenericTableWithoutSplayingAvl(table: *const RTL_AVL_T } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn RtlEqualString(string1: *const super::super::super::Win32::System::Kernel::STRING, string2: *const super::super::super::Win32::System::Kernel::STRING, caseinsensitive: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlEqualString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlEqualString(core::mem::transmute(string1), core::mem::transmute(string2), caseinsensitive.into()) +pub unsafe fn RtlEqualString(string1: *const super::super::super::Win32::System::Kernel::STRING, string2: *const super::super::super::Win32::System::Kernel::STRING, caseinsensitive: bool) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlEqualString(string1 : *const super::super::super::Win32::System::Kernel:: STRING, string2 : *const super::super::super::Win32::System::Kernel:: STRING, caseinsensitive : bool) -> bool); + RtlEqualString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) } #[inline] -pub unsafe fn RtlEqualUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlEqualUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlEqualUnicodeString(core::mem::transmute(string1), core::mem::transmute(string2), caseinsensitive.into()) +pub unsafe fn RtlEqualUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: bool) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlEqualUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool) -> bool); + RtlEqualUnicodeString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) } #[inline] -pub unsafe fn RtlExpandHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlExpandHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlExpandHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlExpandHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE) -> bool); RtlExpandHashTable(core::mem::transmute(hashtable)) } #[inline] @@ -5255,8 +5255,8 @@ pub unsafe fn RtlFindClearBitsAndSet(bitmapheader: *const RTL_BITMAP, numbertofi } #[inline] pub unsafe fn RtlFindClearRuns(bitmapheader: *const RTL_BITMAP, runarray: &mut [RTL_BITMAP_RUN], locatelongestruns: bool) -> u32 { - windows_targets::link!("ntdll.dll" "system" fn RtlFindClearRuns(bitmapheader : *const RTL_BITMAP, runarray : *mut RTL_BITMAP_RUN, sizeofrunarray : u32, locatelongestruns : super::super::super::Win32::Foundation:: BOOLEAN) -> u32); - RtlFindClearRuns(core::mem::transmute(bitmapheader), core::mem::transmute(runarray.as_ptr()), runarray.len().try_into().unwrap(), locatelongestruns.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlFindClearRuns(bitmapheader : *const RTL_BITMAP, runarray : *mut RTL_BITMAP_RUN, sizeofrunarray : u32, locatelongestruns : bool) -> u32); + RtlFindClearRuns(core::mem::transmute(bitmapheader), core::mem::transmute(runarray.as_ptr()), runarray.len().try_into().unwrap(), core::mem::transmute(locatelongestruns)) } #[inline] pub unsafe fn RtlFindClosestEncodableLength(sourcelength: u64, targetlength: *mut u64) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -5358,8 +5358,8 @@ pub unsafe fn RtlGetNextEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn RtlGetNtProductType(ntproducttype: *mut super::super::super::Win32::System::Kernel::NT_PRODUCT_TYPE) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlGetNtProductType(ntproducttype : *mut super::super::super::Win32::System::Kernel:: NT_PRODUCT_TYPE) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlGetNtProductType(ntproducttype: *mut super::super::super::Win32::System::Kernel::NT_PRODUCT_TYPE) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlGetNtProductType(ntproducttype : *mut super::super::super::Win32::System::Kernel:: NT_PRODUCT_TYPE) -> bool); RtlGetNtProductType(core::mem::transmute(ntproducttype)) } #[inline] @@ -5390,19 +5390,19 @@ pub unsafe fn RtlGetVersion(lpversioninformation: *mut super::super::super::Win3 } #[inline] pub unsafe fn RtlHashUnicodeString(string: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: bool, hashalgorithm: u32, hashvalue: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlHashUnicodeString(string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN, hashalgorithm : u32, hashvalue : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlHashUnicodeString(core::mem::transmute(string), caseinsensitive.into(), core::mem::transmute(hashalgorithm), core::mem::transmute(hashvalue)) + windows_targets::link!("ntdll.dll" "system" fn RtlHashUnicodeString(string : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool, hashalgorithm : u32, hashvalue : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlHashUnicodeString(core::mem::transmute(string), core::mem::transmute(caseinsensitive), core::mem::transmute(hashalgorithm), core::mem::transmute(hashvalue)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn RtlInitEnumerationHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlInitEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlInitEnumerationHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlInitEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool); RtlInitEnumerationHashTable(core::mem::transmute(hashtable), core::mem::transmute(enumerator)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn RtlInitStrongEnumerationHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlInitStrongEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlInitStrongEnumerationHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlInitStrongEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool); RtlInitStrongEnumerationHashTable(core::mem::transmute(hashtable), core::mem::transmute(enumerator)) } #[cfg(feature = "Win32_System_Kernel")] @@ -5419,8 +5419,8 @@ pub unsafe fn RtlInitUTF8StringEx(destinationstring: *mut super::super::super::W } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn RtlInitWeakEnumerationHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlInitWeakEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlInitWeakEnumerationHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, enumerator: *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlInitWeakEnumerationHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, enumerator : *mut RTL_DYNAMIC_HASH_TABLE_ENUMERATOR) -> bool); RtlInitWeakEnumerationHashTable(core::mem::transmute(hashtable), core::mem::transmute(enumerator)) } #[inline] @@ -5441,30 +5441,30 @@ pub unsafe fn RtlInitializeGenericTableAvl(table: *mut RTL_AVL_TABLE, comparerou } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn RtlInsertElementGenericTable(table: *const RTL_GENERIC_TABLE, buffer: *const core::ffi::c_void, buffersize: u32, newelement: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> *mut core::ffi::c_void { - windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTable(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> *mut core::ffi::c_void); +pub unsafe fn RtlInsertElementGenericTable(table: *const RTL_GENERIC_TABLE, buffer: *const core::ffi::c_void, buffersize: u32, newelement: Option<*mut bool>) -> *mut core::ffi::c_void { + windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTable(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut bool) -> *mut core::ffi::c_void); RtlInsertElementGenericTable(core::mem::transmute(table), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(newelement.unwrap_or(core::mem::zeroed()))) } #[inline] -pub unsafe fn RtlInsertElementGenericTableAvl(table: *const RTL_AVL_TABLE, buffer: *const core::ffi::c_void, buffersize: u32, newelement: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> *mut core::ffi::c_void { - windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> *mut core::ffi::c_void); +pub unsafe fn RtlInsertElementGenericTableAvl(table: *const RTL_AVL_TABLE, buffer: *const core::ffi::c_void, buffersize: u32, newelement: Option<*mut bool>) -> *mut core::ffi::c_void { + windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut bool) -> *mut core::ffi::c_void); RtlInsertElementGenericTableAvl(core::mem::transmute(table), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(newelement.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn RtlInsertElementGenericTableFull(table: *const RTL_GENERIC_TABLE, buffer: *const core::ffi::c_void, buffersize: u32, newelement: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>, nodeorparent: *const core::ffi::c_void, searchresult: TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void { - windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableFull(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut super::super::super::Win32::Foundation:: BOOLEAN, nodeorparent : *const core::ffi::c_void, searchresult : TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void); +pub unsafe fn RtlInsertElementGenericTableFull(table: *const RTL_GENERIC_TABLE, buffer: *const core::ffi::c_void, buffersize: u32, newelement: Option<*mut bool>, nodeorparent: *const core::ffi::c_void, searchresult: TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void { + windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableFull(table : *const RTL_GENERIC_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut bool, nodeorparent : *const core::ffi::c_void, searchresult : TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void); RtlInsertElementGenericTableFull(core::mem::transmute(table), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(newelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(nodeorparent), core::mem::transmute(searchresult)) } #[inline] -pub unsafe fn RtlInsertElementGenericTableFullAvl(table: *const RTL_AVL_TABLE, buffer: *const core::ffi::c_void, buffersize: u32, newelement: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>, nodeorparent: *const core::ffi::c_void, searchresult: TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void { - windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableFullAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut super::super::super::Win32::Foundation:: BOOLEAN, nodeorparent : *const core::ffi::c_void, searchresult : TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void); +pub unsafe fn RtlInsertElementGenericTableFullAvl(table: *const RTL_AVL_TABLE, buffer: *const core::ffi::c_void, buffersize: u32, newelement: Option<*mut bool>, nodeorparent: *const core::ffi::c_void, searchresult: TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void { + windows_targets::link!("ntdll.dll" "system" fn RtlInsertElementGenericTableFullAvl(table : *const RTL_AVL_TABLE, buffer : *const core::ffi::c_void, buffersize : u32, newelement : *mut bool, nodeorparent : *const core::ffi::c_void, searchresult : TABLE_SEARCH_RESULT) -> *mut core::ffi::c_void); RtlInsertElementGenericTableFullAvl(core::mem::transmute(table), core::mem::transmute(buffer), core::mem::transmute(buffersize), core::mem::transmute(newelement.unwrap_or(core::mem::zeroed())), core::mem::transmute(nodeorparent), core::mem::transmute(searchresult)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn RtlInsertEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, entry: *const RTL_DYNAMIC_HASH_TABLE_ENTRY, signature: usize, context: Option<*mut RTL_DYNAMIC_HASH_TABLE_CONTEXT>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlInsertEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, entry : *const RTL_DYNAMIC_HASH_TABLE_ENTRY, signature : usize, context : *mut RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlInsertEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, entry: *const RTL_DYNAMIC_HASH_TABLE_ENTRY, signature: usize, context: Option<*mut RTL_DYNAMIC_HASH_TABLE_CONTEXT>) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlInsertEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, entry : *const RTL_DYNAMIC_HASH_TABLE_ENTRY, signature : usize, context : *mut RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> bool); RtlInsertEntryHashTable(core::mem::transmute(hashtable), core::mem::transmute(entry), core::mem::transmute(signature), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[inline] @@ -5497,43 +5497,43 @@ where } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] -pub unsafe fn RtlIsGenericTableEmpty(table: *const RTL_GENERIC_TABLE) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlIsGenericTableEmpty(table : *const RTL_GENERIC_TABLE) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlIsGenericTableEmpty(table: *const RTL_GENERIC_TABLE) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlIsGenericTableEmpty(table : *const RTL_GENERIC_TABLE) -> bool); RtlIsGenericTableEmpty(core::mem::transmute(table)) } #[inline] -pub unsafe fn RtlIsGenericTableEmptyAvl(table: *const RTL_AVL_TABLE) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlIsGenericTableEmptyAvl(table : *const RTL_AVL_TABLE) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlIsGenericTableEmptyAvl(table: *const RTL_AVL_TABLE) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlIsGenericTableEmptyAvl(table : *const RTL_AVL_TABLE) -> bool); RtlIsGenericTableEmptyAvl(core::mem::transmute(table)) } #[inline] -pub unsafe fn RtlIsMultiSessionSku() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlIsMultiSessionSku() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlIsMultiSessionSku() -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlIsMultiSessionSku() -> bool); RtlIsMultiSessionSku() } #[inline] -pub unsafe fn RtlIsMultiUsersInSessionSku() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlIsMultiUsersInSessionSku() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlIsMultiUsersInSessionSku() -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlIsMultiUsersInSessionSku() -> bool); RtlIsMultiUsersInSessionSku() } #[inline] -pub unsafe fn RtlIsNtDdiVersionAvailable(version: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsNtDdiVersionAvailable(version : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlIsNtDdiVersionAvailable(version: u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsNtDdiVersionAvailable(version : u32) -> bool); RtlIsNtDdiVersionAvailable(core::mem::transmute(version)) } #[inline] -pub unsafe fn RtlIsServicePackVersionInstalled(version: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsServicePackVersionInstalled(version : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlIsServicePackVersionInstalled(version: u32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn RtlIsServicePackVersionInstalled(version : u32) -> bool); RtlIsServicePackVersionInstalled(core::mem::transmute(version)) } #[inline] -pub unsafe fn RtlIsStateSeparationEnabled() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlIsStateSeparationEnabled() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlIsStateSeparationEnabled() -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlIsStateSeparationEnabled() -> bool); RtlIsStateSeparationEnabled() } #[inline] -pub unsafe fn RtlIsUntrustedObject(handle: Option, object: Option<*const core::ffi::c_void>, untrustedobject: *mut super::super::super::Win32::Foundation::BOOLEAN) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlIsUntrustedObject(handle : super::super::super::Win32::Foundation:: HANDLE, object : *const core::ffi::c_void, untrustedobject : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn RtlIsUntrustedObject(handle: Option, object: Option<*const core::ffi::c_void>, untrustedobject: *mut bool) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn RtlIsUntrustedObject(handle : super::super::super::Win32::Foundation:: HANDLE, object : *const core::ffi::c_void, untrustedobject : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); RtlIsUntrustedObject(core::mem::transmute(handle.unwrap_or(core::mem::zeroed())), core::mem::transmute(object.unwrap_or(core::mem::zeroed())), core::mem::transmute(untrustedobject)) } #[cfg(feature = "Win32_Security")] @@ -5583,9 +5583,9 @@ pub unsafe fn RtlMapGenericMask(accessmask: *mut u32, genericmapping: *const sup } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn RtlNormalizeSecurityDescriptor(securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, securitydescriptorlength: u32, newsecuritydescriptor: Option<*mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR>, newsecuritydescriptorlength: Option<*mut u32>, checkonly: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlNormalizeSecurityDescriptor(securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, newsecuritydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newsecuritydescriptorlength : *mut u32, checkonly : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlNormalizeSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(securitydescriptorlength), core::mem::transmute(newsecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newsecuritydescriptorlength.unwrap_or(core::mem::zeroed())), checkonly.into()) +pub unsafe fn RtlNormalizeSecurityDescriptor(securitydescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, securitydescriptorlength: u32, newsecuritydescriptor: Option<*mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR>, newsecuritydescriptorlength: Option<*mut u32>, checkonly: bool) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlNormalizeSecurityDescriptor(securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, newsecuritydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newsecuritydescriptorlength : *mut u32, checkonly : bool) -> bool); + RtlNormalizeSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(securitydescriptorlength), core::mem::transmute(newsecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newsecuritydescriptorlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(checkonly)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -5629,9 +5629,9 @@ pub unsafe fn RtlPrefetchMemoryNonTemporal(source: *const core::ffi::c_void, len RtlPrefetchMemoryNonTemporal(core::mem::transmute(source), core::mem::transmute(length)) } #[inline] -pub unsafe fn RtlPrefixUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlPrefixUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlPrefixUnicodeString(core::mem::transmute(string1), core::mem::transmute(string2), caseinsensitive.into()) +pub unsafe fn RtlPrefixUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: bool) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlPrefixUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool) -> bool); + RtlPrefixUnicodeString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) } #[inline] pub unsafe fn RtlQueryRegistryValueWithFallback(primaryhandle: Option, fallbackhandle: Option, valuename: *const super::super::super::Win32::Foundation::UNICODE_STRING, valuelength: u32, valuetype: Option<*mut u32>, valuedata: *mut core::ffi::c_void, resultlength: *mut u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -5665,8 +5665,8 @@ pub unsafe fn RtlRealSuccessor(links: *const super::super::Foundation::RTL_SPLAY } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn RtlRemoveEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, entry: *const RTL_DYNAMIC_HASH_TABLE_ENTRY, context: Option<*mut RTL_DYNAMIC_HASH_TABLE_CONTEXT>) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlRemoveEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, entry : *const RTL_DYNAMIC_HASH_TABLE_ENTRY, context : *mut RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlRemoveEntryHashTable(hashtable: *const RTL_DYNAMIC_HASH_TABLE, entry: *const RTL_DYNAMIC_HASH_TABLE_ENTRY, context: Option<*mut RTL_DYNAMIC_HASH_TABLE_CONTEXT>) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlRemoveEntryHashTable(hashtable : *const RTL_DYNAMIC_HASH_TABLE, entry : *const RTL_DYNAMIC_HASH_TABLE_ENTRY, context : *mut RTL_DYNAMIC_HASH_TABLE_CONTEXT) -> bool); RtlRemoveEntryHashTable(core::mem::transmute(hashtable), core::mem::transmute(entry), core::mem::transmute(context.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Threading")] @@ -5713,8 +5713,8 @@ pub unsafe fn RtlSetBits(bitmapheader: *const RTL_BITMAP, startingindex: u32, nu #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn RtlSetDaclSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, daclpresent: bool, dacl: Option<*const super::super::super::Win32::Security::ACL>, dacldefaulted: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlSetDaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, daclpresent : super::super::super::Win32::Foundation:: BOOLEAN, dacl : *const super::super::super::Win32::Security:: ACL, dacldefaulted : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlSetDaclSecurityDescriptor(core::mem::transmute(securitydescriptor), daclpresent.into(), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), dacldefaulted.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlSetDaclSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, daclpresent : bool, dacl : *const super::super::super::Win32::Security:: ACL, dacldefaulted : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlSetDaclSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(daclpresent), core::mem::transmute(dacl.unwrap_or(core::mem::zeroed())), core::mem::transmute(dacldefaulted)) } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] @@ -5752,18 +5752,18 @@ pub unsafe fn RtlSubtreeSuccessor(links: *const super::super::Foundation::RTL_SP RtlSubtreeSuccessor(core::mem::transmute(links)) } #[inline] -pub unsafe fn RtlSuffixUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: bool) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn RtlSuffixUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: BOOLEAN); - RtlSuffixUnicodeString(core::mem::transmute(string1), core::mem::transmute(string2), caseinsensitive.into()) +pub unsafe fn RtlSuffixUnicodeString(string1: *const super::super::super::Win32::Foundation::UNICODE_STRING, string2: *const super::super::super::Win32::Foundation::UNICODE_STRING, caseinsensitive: bool) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn RtlSuffixUnicodeString(string1 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, string2 : *const super::super::super::Win32::Foundation:: UNICODE_STRING, caseinsensitive : bool) -> bool); + RtlSuffixUnicodeString(core::mem::transmute(string1), core::mem::transmute(string2), core::mem::transmute(caseinsensitive)) } #[inline] -pub unsafe fn RtlTestBit(bitmapheader: *const RTL_BITMAP, bitnumber: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlTestBit(bitmapheader : *const RTL_BITMAP, bitnumber : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlTestBit(bitmapheader: *const RTL_BITMAP, bitnumber: u32) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlTestBit(bitmapheader : *const RTL_BITMAP, bitnumber : u32) -> bool); RtlTestBit(core::mem::transmute(bitmapheader), core::mem::transmute(bitnumber)) } #[inline] -pub unsafe fn RtlTimeFieldsToTime(timefields: *const TIME_FIELDS, time: *mut i64) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlTimeFieldsToTime(timefields : *const TIME_FIELDS, time : *mut i64) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlTimeFieldsToTime(timefields: *const TIME_FIELDS, time: *mut i64) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlTimeFieldsToTime(timefields : *const TIME_FIELDS, time : *mut i64) -> bool); RtlTimeFieldsToTime(core::mem::transmute(timefields), core::mem::transmute(time)) } #[inline] @@ -5776,8 +5776,8 @@ pub unsafe fn RtlTimeToTimeFields(time: *const i64) -> TIME_FIELDS { #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUTF8StringToUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: *const super::super::super::Win32::System::Kernel::STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlUTF8StringToUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUTF8StringToUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlUTF8StringToUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::System::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlUTF8StringToUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) } #[inline] pub unsafe fn RtlUTF8ToUnicodeN(unicodestringdestination: windows_core::PWSTR, unicodestringmaxbytecount: u32, unicodestringactualbytecount: *mut u32, utf8stringsource: &[u8]) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -5797,8 +5797,8 @@ pub unsafe fn RtlUnicodeStringToInteger(string: *const super::super::super::Win3 #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUnicodeStringToUTF8String(destinationstring: *mut super::super::super::Win32::System::Kernel::STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToUTF8String(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUnicodeStringToUTF8String(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToUTF8String(destinationstring : *mut super::super::super::Win32::System::Kernel:: STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlUnicodeStringToUTF8String(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) } #[inline] pub unsafe fn RtlUnicodeToUTF8N(utf8stringdestination: &mut [u8], utf8stringactualbytecount: *mut u32, unicodestringsource: *const u16, unicodestringbytecount: u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -5812,8 +5812,8 @@ pub unsafe fn RtlUpcaseUnicodeChar(sourcecharacter: u16) -> u16 { } #[inline] pub unsafe fn RtlUpcaseUnicodeString(destinationstring: *mut super::super::super::Win32::Foundation::UNICODE_STRING, sourcestring: *const super::super::super::Win32::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - RtlUpcaseUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlUpcaseUnicodeString(destinationstring : *mut super::super::super::Win32::Foundation:: UNICODE_STRING, sourcestring : *const super::super::super::Win32::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + RtlUpcaseUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) } #[inline] pub unsafe fn RtlUpperChar(character: i8) -> i8 { @@ -5828,14 +5828,14 @@ pub unsafe fn RtlUpperString(destinationstring: *mut super::super::super::Win32: } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn RtlValidRelativeSecurityDescriptor(securitydescriptorinput: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, securitydescriptorlength: u32, requiredinformation: u32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlValidRelativeSecurityDescriptor(securitydescriptorinput : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, requiredinformation : u32) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlValidRelativeSecurityDescriptor(securitydescriptorinput: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, securitydescriptorlength: u32, requiredinformation: u32) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlValidRelativeSecurityDescriptor(securitydescriptorinput : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, requiredinformation : u32) -> bool); RtlValidRelativeSecurityDescriptor(core::mem::transmute(securitydescriptorinput), core::mem::transmute(securitydescriptorlength), core::mem::transmute(requiredinformation)) } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn RtlValidSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlValidSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn RtlValidSecurityDescriptor(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlValidSecurityDescriptor(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool); RtlValidSecurityDescriptor(core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Win32_System_SystemInformation")] @@ -5882,21 +5882,21 @@ pub unsafe fn RtlxUnicodeStringToAnsiSize(unicodestring: *const super::super::su } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn SeAccessCheck(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, subjectcontextlocked: bool, desiredaccess: u32, previouslygrantedaccess: u32, privileges: Option<*mut *mut super::super::super::Win32::Security::PRIVILEGE_SET>, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, accessmode: i8, grantedaccess: *mut u32, accessstatus: *mut i32) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheck(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, subjectcontextlocked : super::super::super::Win32::Foundation:: BOOLEAN, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> super::super::super::Win32::Foundation:: BOOLEAN); - SeAccessCheck(core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext), subjectcontextlocked.into(), core::mem::transmute(desiredaccess), core::mem::transmute(previouslygrantedaccess), core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), core::mem::transmute(genericmapping), core::mem::transmute(accessmode), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus)) +pub unsafe fn SeAccessCheck(securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, subjectsecuritycontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, subjectcontextlocked: bool, desiredaccess: u32, previouslygrantedaccess: u32, privileges: Option<*mut *mut super::super::super::Win32::Security::PRIVILEGE_SET>, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, accessmode: i8, grantedaccess: *mut u32, accessstatus: *mut i32) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeAccessCheck(securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, subjectsecuritycontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, subjectcontextlocked : bool, desiredaccess : u32, previouslygrantedaccess : u32, privileges : *mut *mut super::super::super::Win32::Security:: PRIVILEGE_SET, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, accessmode : i8, grantedaccess : *mut u32, accessstatus : *mut i32) -> bool); + SeAccessCheck(core::mem::transmute(securitydescriptor), core::mem::transmute(subjectsecuritycontext), core::mem::transmute(subjectcontextlocked), core::mem::transmute(desiredaccess), core::mem::transmute(previouslygrantedaccess), core::mem::transmute(privileges.unwrap_or(core::mem::zeroed())), core::mem::transmute(genericmapping), core::mem::transmute(accessmode), core::mem::transmute(grantedaccess), core::mem::transmute(accessstatus)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAssignSecurity(parentdescriptor: Option, explicitdescriptor: Option, newdescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, isdirectoryobject: bool, subjectcontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, pooltype: super::super::Foundation::POOL_TYPE) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAssignSecurity(parentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, explicitdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, isdirectoryobject : super::super::super::Win32::Foundation:: BOOLEAN, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, pooltype : super::super::Foundation:: POOL_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeAssignSecurity(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(explicitdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newdescriptor), isdirectoryobject.into(), core::mem::transmute(subjectcontext), core::mem::transmute(genericmapping), core::mem::transmute(pooltype)) + windows_targets::link!("ntoskrnl.exe" "system" fn SeAssignSecurity(parentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, explicitdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, isdirectoryobject : bool, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, pooltype : super::super::Foundation:: POOL_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); + SeAssignSecurity(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(explicitdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newdescriptor), core::mem::transmute(isdirectoryobject), core::mem::transmute(subjectcontext), core::mem::transmute(genericmapping), core::mem::transmute(pooltype)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] pub unsafe fn SeAssignSecurityEx(parentdescriptor: Option, explicitdescriptor: Option, newdescriptor: *mut super::super::super::Win32::Security::PSECURITY_DESCRIPTOR, objecttype: Option<*const windows_core::GUID>, isdirectoryobject: bool, autoinheritflags: u32, subjectcontext: *const super::super::Foundation::SECURITY_SUBJECT_CONTEXT, genericmapping: *const super::super::super::Win32::Security::GENERIC_MAPPING, pooltype: super::super::Foundation::POOL_TYPE) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn SeAssignSecurityEx(parentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, explicitdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, objecttype : *const windows_core::GUID, isdirectoryobject : super::super::super::Win32::Foundation:: BOOLEAN, autoinheritflags : u32, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, pooltype : super::super::Foundation:: POOL_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); - SeAssignSecurityEx(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(explicitdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newdescriptor), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), isdirectoryobject.into(), core::mem::transmute(autoinheritflags), core::mem::transmute(subjectcontext), core::mem::transmute(genericmapping), core::mem::transmute(pooltype)) + windows_targets::link!("ntoskrnl.exe" "system" fn SeAssignSecurityEx(parentdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, explicitdescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, newdescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, objecttype : *const windows_core::GUID, isdirectoryobject : bool, autoinheritflags : u32, subjectcontext : *const super::super::Foundation:: SECURITY_SUBJECT_CONTEXT, genericmapping : *const super::super::super::Win32::Security:: GENERIC_MAPPING, pooltype : super::super::Foundation:: POOL_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS); + SeAssignSecurityEx(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(explicitdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newdescriptor), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(isdirectoryobject), core::mem::transmute(autoinheritflags), core::mem::transmute(subjectcontext), core::mem::transmute(genericmapping), core::mem::transmute(pooltype)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -5953,8 +5953,8 @@ pub unsafe fn SeSetAuditParameter(auditparameters: *mut super::super::super::Win SeSetAuditParameter(core::mem::transmute(auditparameters), core::mem::transmute(r#type), core::mem::transmute(index), core::mem::transmute(data)) } #[inline] -pub unsafe fn SeSinglePrivilegeCheck(privilegevalue: super::super::super::Win32::Foundation::LUID, previousmode: i8) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeSinglePrivilegeCheck(privilegevalue : super::super::super::Win32::Foundation:: LUID, previousmode : i8) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn SeSinglePrivilegeCheck(privilegevalue: super::super::super::Win32::Foundation::LUID, previousmode: i8) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeSinglePrivilegeCheck(privilegevalue : super::super::super::Win32::Foundation:: LUID, previousmode : i8) -> bool); SeSinglePrivilegeCheck(core::mem::transmute(privilegevalue), core::mem::transmute(previousmode)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] @@ -5970,8 +5970,8 @@ pub unsafe fn SeUnregisterImageVerificationCallback(callbackhandle: *const core: } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn SeValidSecurityDescriptor(length: u32, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn SeValidSecurityDescriptor(length : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn SeValidSecurityDescriptor(length: u32, securitydescriptor: super::super::super::Win32::Security::PSECURITY_DESCRIPTOR) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn SeValidSecurityDescriptor(length : u32, securitydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> bool); SeValidSecurityDescriptor(core::mem::transmute(length), core::mem::transmute(securitydescriptor)) } #[cfg(feature = "Wdk_Foundation")] @@ -5989,8 +5989,8 @@ pub unsafe fn TmCommitEnlistment(enlistment: *const super::super::Foundation::KE #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmCommitTransaction(transaction: *const super::super::Foundation::KTRANSACTION, wait: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn TmCommitTransaction(transaction : *const super::super::Foundation:: KTRANSACTION, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmCommitTransaction(core::mem::transmute(transaction), wait.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn TmCommitTransaction(transaction : *const super::super::Foundation:: KTRANSACTION, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + TmCommitTransaction(core::mem::transmute(transaction), core::mem::transmute(wait)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -6000,8 +6000,8 @@ pub unsafe fn TmCreateEnlistment(enlistmenthandle: *mut super::super::super::Win } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn TmDereferenceEnlistmentKey(enlistment: *const super::super::Foundation::KENLISTMENT, lastreference: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn TmDereferenceEnlistmentKey(enlistment : *const super::super::Foundation:: KENLISTMENT, lastreference : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn TmDereferenceEnlistmentKey(enlistment: *const super::super::Foundation::KENLISTMENT, lastreference: Option<*mut bool>) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntoskrnl.exe" "system" fn TmDereferenceEnlistmentKey(enlistment : *const super::super::Foundation:: KENLISTMENT, lastreference : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); TmDereferenceEnlistmentKey(core::mem::transmute(enlistment), core::mem::transmute(lastreference.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Wdk_Foundation")] @@ -6025,8 +6025,8 @@ pub unsafe fn TmInitializeTransactionManager(transactionmanager: *const isize, l } #[cfg(feature = "Wdk_Foundation")] #[inline] -pub unsafe fn TmIsTransactionActive(transaction: *const super::super::Foundation::KTRANSACTION) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn TmIsTransactionActive(transaction : *const super::super::Foundation:: KTRANSACTION) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn TmIsTransactionActive(transaction: *const super::super::Foundation::KTRANSACTION) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn TmIsTransactionActive(transaction : *const super::super::Foundation:: KTRANSACTION) -> bool); TmIsTransactionActive(core::mem::transmute(transaction)) } #[cfg(feature = "Wdk_Foundation")] @@ -6121,8 +6121,8 @@ pub unsafe fn TmRollbackEnlistment(enlistment: *const super::super::Foundation:: #[cfg(feature = "Wdk_Foundation")] #[inline] pub unsafe fn TmRollbackTransaction(transaction: *const super::super::Foundation::KTRANSACTION, wait: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntoskrnl.exe" "system" fn TmRollbackTransaction(transaction : *const super::super::Foundation:: KTRANSACTION, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - TmRollbackTransaction(core::mem::transmute(transaction), wait.into()) + windows_targets::link!("ntoskrnl.exe" "system" fn TmRollbackTransaction(transaction : *const super::super::Foundation:: KTRANSACTION, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + TmRollbackTransaction(core::mem::transmute(transaction), core::mem::transmute(wait)) } #[cfg(feature = "Wdk_Foundation")] #[inline] @@ -6184,14 +6184,14 @@ pub unsafe fn WheaErrorSourceGetState(errorsourceid: u32) -> super::super::super WheaErrorSourceGetState(core::mem::transmute(errorsourceid)) } #[inline] -pub unsafe fn WheaGetNotifyAllOfflinesPolicy() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn WheaGetNotifyAllOfflinesPolicy() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn WheaGetNotifyAllOfflinesPolicy() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn WheaGetNotifyAllOfflinesPolicy() -> bool); WheaGetNotifyAllOfflinesPolicy() } #[cfg(feature = "Win32_System_Diagnostics_Debug")] #[inline] -pub unsafe fn WheaHighIrqlLogSelEventHandlerRegister(handler: PFN_WHEA_HIGH_IRQL_LOG_SEL_EVENT_HANDLER, context: *const core::ffi::c_void) -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn WheaHighIrqlLogSelEventHandlerRegister(handler : PFN_WHEA_HIGH_IRQL_LOG_SEL_EVENT_HANDLER, context : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn WheaHighIrqlLogSelEventHandlerRegister(handler: PFN_WHEA_HIGH_IRQL_LOG_SEL_EVENT_HANDLER, context: *const core::ffi::c_void) -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn WheaHighIrqlLogSelEventHandlerRegister(handler : PFN_WHEA_HIGH_IRQL_LOG_SEL_EVENT_HANDLER, context : *const core::ffi::c_void) -> bool); WheaHighIrqlLogSelEventHandlerRegister(core::mem::transmute(handler), core::mem::transmute(context)) } #[inline] @@ -6226,8 +6226,8 @@ pub unsafe fn WheaInitializeRecordHeader(header: *mut WHEA_ERROR_RECORD_HEADER) WheaInitializeRecordHeader(core::mem::transmute(header)) } #[inline] -pub unsafe fn WheaIsCriticalState() -> super::super::super::Win32::Foundation::BOOLEAN { - windows_targets::link!("ntoskrnl.exe" "system" fn WheaIsCriticalState() -> super::super::super::Win32::Foundation:: BOOLEAN); +pub unsafe fn WheaIsCriticalState() -> bool { + windows_targets::link!("ntoskrnl.exe" "system" fn WheaIsCriticalState() -> bool); WheaIsCriticalState() } #[inline] @@ -6303,8 +6303,8 @@ pub unsafe fn ZwCommitEnlistment(enlistmenthandle: super::super::super::Win32::F } #[inline] pub unsafe fn ZwCommitTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, wait: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwCommitTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwCommitTransaction(core::mem::transmute(transactionhandle), wait.into()) + windows_targets::link!("ntdll.dll" "system" fn ZwCommitTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwCommitTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(wait)) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] #[inline] @@ -6563,8 +6563,8 @@ pub unsafe fn ZwRollbackEnlistment(enlistmenthandle: super::super::super::Win32: } #[inline] pub unsafe fn ZwRollbackTransaction(transactionhandle: super::super::super::Win32::Foundation::HANDLE, wait: bool) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwRollbackTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwRollbackTransaction(core::mem::transmute(transactionhandle), wait.into()) + windows_targets::link!("ntdll.dll" "system" fn ZwRollbackTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, wait : bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwRollbackTransaction(core::mem::transmute(transactionhandle), core::mem::transmute(wait)) } #[inline] pub unsafe fn ZwRollforwardTransactionManager(transactionmanagerhandle: super::super::super::Win32::Foundation::HANDLE, tmvirtualclock: Option<*const i64>) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -7153,8 +7153,8 @@ pub struct BOOTDISK_INFORMATION_EX { pub SystemDeviceSignature: u32, pub BootDeviceGuid: windows_core::GUID, pub SystemDeviceGuid: windows_core::GUID, - pub BootDeviceIsGpt: super::super::super::Win32::Foundation::BOOLEAN, - pub SystemDeviceIsGpt: super::super::super::Win32::Foundation::BOOLEAN, + pub BootDeviceIsGpt: bool, + pub SystemDeviceIsGpt: bool, } impl Default for BOOTDISK_INFORMATION_EX { fn default() -> Self { @@ -7953,8 +7953,8 @@ pub struct CONFIGURATION_INFORMATION { pub ScsiPortCount: u32, pub SerialCount: u32, pub ParallelCount: u32, - pub AtDiskPrimaryAddressClaimed: super::super::super::Win32::Foundation::BOOLEAN, - pub AtDiskSecondaryAddressClaimed: super::super::super::Win32::Foundation::BOOLEAN, + pub AtDiskPrimaryAddressClaimed: bool, + pub AtDiskSecondaryAddressClaimed: bool, pub Version: u32, pub MediumChangerCount: u32, } @@ -8152,7 +8152,7 @@ impl Default for D3COLD_AUX_POWER_AND_TIMING_INTERFACE { #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct D3COLD_LAST_TRANSITION_STATUS(pub i32); pub type D3COLD_REQUEST_AUX_POWER = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type D3COLD_REQUEST_CORE_POWER_RAIL = Option; +pub type D3COLD_REQUEST_CORE_POWER_RAIL = Option; pub type D3COLD_REQUEST_PERST_DELAY = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -8225,7 +8225,7 @@ impl Default for DEBUGGING_DEVICE_IN_USE_INFORMATION { #[derive(Clone, Copy)] pub struct DEBUG_DEVICE_ADDRESS { pub Type: u8, - pub Valid: super::super::super::Win32::Foundation::BOOLEAN, + pub Valid: bool, pub Anonymous: DEBUG_DEVICE_ADDRESS_0, pub TranslatedAddress: *mut u8, pub Length: u32, @@ -8269,8 +8269,8 @@ pub struct DEBUG_DEVICE_DESCRIPTOR { pub SubClass: u8, pub ProgIf: u8, pub Anonymous: DEBUG_DEVICE_DESCRIPTOR_0, - pub Initialized: super::super::super::Win32::Foundation::BOOLEAN, - pub Configured: super::super::super::Win32::Foundation::BOOLEAN, + pub Initialized: bool, + pub Configured: bool, pub BaseAddress: [DEBUG_DEVICE_ADDRESS; 6], pub Memory: DEBUG_MEMORY_REQUIREMENTS, pub Dbg2TableIndex: u32, @@ -8329,8 +8329,8 @@ pub struct DEBUG_MEMORY_REQUIREMENTS { pub MaxEnd: i64, pub VirtualAddress: *mut core::ffi::c_void, pub Length: u32, - pub Cached: super::super::super::Win32::Foundation::BOOLEAN, - pub Aligned: super::super::super::Win32::Foundation::BOOLEAN, + pub Cached: bool, + pub Aligned: bool, } impl Default for DEBUG_MEMORY_REQUIREMENTS { fn default() -> Self { @@ -8342,8 +8342,8 @@ impl Default for DEBUG_MEMORY_REQUIREMENTS { pub struct DEBUG_TRANSPORT_DATA { pub HwContextSize: u32, pub SharedVisibleDataSize: u32, - pub UseSerialFraming: super::super::super::Win32::Foundation::BOOLEAN, - pub ValidUSBCoreId: super::super::super::Win32::Foundation::BOOLEAN, + pub UseSerialFraming: bool, + pub ValidUSBCoreId: bool, pub USBCoreId: u8, } impl Default for DEBUG_TRANSPORT_DATA { @@ -8423,14 +8423,14 @@ pub type DEVICE_CHANGE_COMPLETE_CALLBACK = Option Self { @@ -9038,7 +9038,7 @@ impl Default for DOMAIN_CONFIGURATION_ARM64 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOMAIN_CONFIGURATION_X64 { pub FirstLevelPageTableRoot: i64, - pub TranslationEnabled: super::super::super::Win32::Foundation::BOOLEAN, + pub TranslationEnabled: bool, } impl Default for DOMAIN_CONFIGURATION_X64 { fn default() -> Self { @@ -9281,7 +9281,7 @@ impl Default for EISA_PORT_DESCRIPTOR { } } pub const EISA_SYSTEM_MEMORY: u32 = 0u32; -pub type ENABLE_VIRTUALIZATION = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type ENABLE_VIRTUALIZATION = Option super::super::super::Win32::Foundation::NTSTATUS>; pub const ERROR_LOG_LIMIT_SIZE: u32 = 240u32; pub const ERROR_MAJOR_REVISION_SAL_03_00: u32 = 0u32; pub const ERROR_MEMORY_GUID: windows_core::GUID = windows_core::GUID::from_u128(0xe429faf2_3cb7_11d4_bca7_0080c73c8881); @@ -9465,7 +9465,7 @@ pub const ExternalFault: FAULT_INFORMATION_ARM64_TYPE = FAULT_INFORMATION_ARM64_ #[derive(Clone, Copy)] pub struct FAULT_INFORMATION { pub Type: FAULT_INFORMATION_ARCH, - pub IsStage1: super::super::super::Win32::Foundation::BOOLEAN, + pub IsStage1: bool, pub Anonymous: FAULT_INFORMATION_0, } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -9695,7 +9695,7 @@ pub struct FILE_FS_VOLUME_INFORMATION { pub VolumeCreationTime: i64, pub VolumeSerialNumber: u32, pub VolumeLabelLength: u32, - pub SupportsObjects: super::super::super::Win32::Foundation::BOOLEAN, + pub SupportsObjects: bool, pub VolumeLabel: [u16; 1], } impl Default for FILE_FS_VOLUME_INFORMATION { @@ -9741,7 +9741,7 @@ impl Default for FILE_IO_PRIORITY_HINT_INFORMATION { #[derive(Clone, Copy, Debug, PartialEq)] pub struct FILE_IO_PRIORITY_HINT_INFORMATION_EX { pub PriorityHint: super::super::Foundation::IO_PRIORITY_HINT, - pub BoostOutstanding: super::super::super::Win32::Foundation::BOOLEAN, + pub BoostOutstanding: bool, } #[cfg(feature = "Wdk_Foundation")] impl Default for FILE_IO_PRIORITY_HINT_INFORMATION_EX { @@ -9752,7 +9752,7 @@ impl Default for FILE_IO_PRIORITY_HINT_INFORMATION_EX { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FILE_IS_REMOTE_DEVICE_INFORMATION { - pub IsRemote: super::super::super::Win32::Foundation::BOOLEAN, + pub IsRemote: bool, } impl Default for FILE_IS_REMOTE_DEVICE_INFORMATION { fn default() -> Self { @@ -9831,8 +9831,8 @@ pub const FILE_REMOVABLE_MEDIA: u32 = 1u32; pub struct FILE_SFIO_RESERVE_INFORMATION { pub RequestsPerPeriod: u32, pub Period: u32, - pub RetryFailures: super::super::super::Win32::Foundation::BOOLEAN, - pub Discardable: super::super::super::Win32::Foundation::BOOLEAN, + pub RetryFailures: bool, + pub Discardable: bool, pub RequestSize: u32, pub NumOutstandingRequests: u32, } @@ -9861,10 +9861,10 @@ pub struct FILE_STANDARD_INFORMATION_EX { pub AllocationSize: i64, pub EndOfFile: i64, pub NumberOfLinks: u32, - pub DeletePending: super::super::super::Win32::Foundation::BOOLEAN, - pub Directory: super::super::super::Win32::Foundation::BOOLEAN, - pub AlternateStream: super::super::super::Win32::Foundation::BOOLEAN, - pub MetadataAttribute: super::super::super::Win32::Foundation::BOOLEAN, + pub DeletePending: bool, + pub Directory: bool, + pub AlternateStream: bool, + pub MetadataAttribute: bool, } impl Default for FILE_STANDARD_INFORMATION_EX { fn default() -> Self { @@ -9971,8 +9971,8 @@ pub const FPB_VECTOR_SIZE_SUPPORTED_4KBITS: u32 = 4u32; pub const FPB_VECTOR_SIZE_SUPPORTED_512BITS: u32 = 1u32; pub const FPB_VECTOR_SIZE_SUPPORTED_8KBITS: u32 = 5u32; pub type FPGA_BUS_SCAN = Option; -pub type FPGA_CONTROL_CONFIG_SPACE = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type FPGA_CONTROL_ERROR_REPORTING = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type FPGA_CONTROL_CONFIG_SPACE = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type FPGA_CONTROL_ERROR_REPORTING = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FPGA_CONTROL_INTERFACE { @@ -9991,7 +9991,7 @@ impl Default for FPGA_CONTROL_INTERFACE { unsafe { core::mem::zeroed() } } } -pub type FPGA_CONTROL_LINK = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type FPGA_CONTROL_LINK = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type FREE_FUNCTION = Option; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -10038,9 +10038,9 @@ pub const GENPROC_PROCISA_X86: u32 = 0u32; pub const GENPROC_PROCTYPE_ARM: u32 = 2u32; pub const GENPROC_PROCTYPE_IPF: u32 = 1u32; pub const GENPROC_PROCTYPE_XPF: u32 = 0u32; -pub type GET_D3COLD_CAPABILITY = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type GET_D3COLD_CAPABILITY = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type GET_D3COLD_LAST_TRANSITION_STATUS = Option; -pub type GET_DEVICE_RESET_STATUS = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type GET_DEVICE_RESET_STATUS = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type GET_DMA_ADAPTER = Option *mut DMA_ADAPTER>; #[cfg(feature = "Win32_System_Power")] @@ -10270,7 +10270,7 @@ pub const HASH_STRING_ALGORITHM_INVALID: u32 = 4294967295u32; pub const HASH_STRING_ALGORITHM_X65599: u32 = 1u32; pub const HIGH_LEVEL: u32 = 31u32; pub const HIGH_PRIORITY: u32 = 31u32; -pub type HVL_WHEA_ERROR_NOTIFICATION = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type HVL_WHEA_ERROR_NOTIFICATION = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct HWPROFILE_CHANGE_NOTIFICATION { @@ -10668,7 +10668,7 @@ pub struct IOMMU_DMA_RESERVED_REGION { pub RegionNext: *mut IOMMU_DMA_RESERVED_REGION, pub Base: u64, pub NumberOfPages: usize, - pub ShouldMap: super::super::super::Win32::Foundation::BOOLEAN, + pub ShouldMap: bool, } impl Default for IOMMU_DMA_RESERVED_REGION { fn default() -> Self { @@ -10682,7 +10682,7 @@ pub type IOMMU_DOMAIN_ATTACH_DEVICE_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] -pub type IOMMU_DOMAIN_CREATE = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type IOMMU_DOMAIN_CREATE = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] pub type IOMMU_DOMAIN_CREATE_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] @@ -10694,7 +10694,7 @@ pub type IOMMU_DOMAIN_DETACH_DEVICE_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] -pub type IOMMU_FLUSH_DOMAIN_VA_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type IOMMU_FLUSH_DOMAIN_VA_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type IOMMU_FREE_RESERVED_LOGICAL_ADDRESS_RANGE = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy)] @@ -10814,9 +10814,9 @@ pub type IOMMU_REGISTER_INTERFACE_STATE_CHANGE_CALLBACK = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type IOMMU_SET_DEVICE_FAULT_REPORTING = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type IOMMU_SET_DEVICE_FAULT_REPORTING = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] -pub type IOMMU_SET_DEVICE_FAULT_REPORTING_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type IOMMU_SET_DEVICE_FAULT_REPORTING_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] pub type IOMMU_UNMAP_IDENTITY_RANGE = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] @@ -10895,8 +10895,8 @@ pub struct IO_CONNECT_INTERRUPT_FULLY_SPECIFIED_PARAMETERS { pub ServiceContext: *mut core::ffi::c_void, pub SpinLock: *mut usize, pub SynchronizeIrql: u8, - pub FloatingSave: super::super::super::Win32::Foundation::BOOLEAN, - pub ShareVector: super::super::super::Win32::Foundation::BOOLEAN, + pub FloatingSave: bool, + pub ShareVector: bool, pub Vector: u32, pub Irql: u8, pub InterruptMode: KINTERRUPT_MODE, @@ -10919,7 +10919,7 @@ pub struct IO_CONNECT_INTERRUPT_LINE_BASED_PARAMETERS { pub ServiceContext: *mut core::ffi::c_void, pub SpinLock: *mut usize, pub SynchronizeIrql: u8, - pub FloatingSave: super::super::super::Win32::Foundation::BOOLEAN, + pub FloatingSave: bool, } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] impl Default for IO_CONNECT_INTERRUPT_LINE_BASED_PARAMETERS { @@ -10937,7 +10937,7 @@ pub struct IO_CONNECT_INTERRUPT_MESSAGE_BASED_PARAMETERS { pub ServiceContext: *mut core::ffi::c_void, pub SpinLock: *mut usize, pub SynchronizeIrql: u8, - pub FloatingSave: super::super::super::Win32::Foundation::BOOLEAN, + pub FloatingSave: bool, pub FallBackServiceRoutine: PKSERVICE_ROUTINE, } #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -11241,8 +11241,8 @@ impl Default for IO_REMOVE_LOCK { #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_System_Kernel"))] #[derive(Clone, Copy)] pub struct IO_REMOVE_LOCK_COMMON_BLOCK { - pub Removed: super::super::super::Win32::Foundation::BOOLEAN, - pub Reserved: [super::super::super::Win32::Foundation::BOOLEAN; 3], + pub Removed: bool, + pub Reserved: [bool; 3], pub IoCount: i32, pub RemoveEvent: super::super::Foundation::KEVENT, } @@ -11543,7 +11543,7 @@ pub const IO_SERIAL_INCREMENT: u32 = 2u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct IO_SESSION_CONNECT_INFO { pub SessionId: u32, - pub LocalSession: super::super::super::Win32::Foundation::BOOLEAN, + pub LocalSession: bool, } impl Default for IO_SESSION_CONNECT_INFO { fn default() -> Self { @@ -11567,7 +11567,7 @@ pub const IO_SESSION_STATE_DISCONNECT_EVENT: u32 = 8u32; pub struct IO_SESSION_STATE_INFORMATION { pub SessionId: u32, pub SessionState: IO_SESSION_STATE, - pub LocalSession: super::super::super::Win32::Foundation::BOOLEAN, + pub LocalSession: bool, } impl Default for IO_SESSION_STATE_INFORMATION { fn default() -> Self { @@ -11904,7 +11904,7 @@ pub struct KAPC { pub SystemArgument2: *mut core::ffi::c_void, pub ApcStateIndex: i8, pub ApcMode: i8, - pub Inserted: super::super::super::Win32::Foundation::BOOLEAN, + pub Inserted: bool, } #[cfg(feature = "Win32_System_Kernel")] impl Default for KAPC { @@ -12074,7 +12074,7 @@ pub type KDEFERRED_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type KMESSAGE_SERVICE_ROUTINE = Option bool>; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct KPROFILE_SOURCE(pub i32); @@ -12434,7 +12434,7 @@ impl Default for KSEMAPHORE { unsafe { core::mem::zeroed() } } } -pub type KSERVICE_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type KSERVICE_ROUTINE = Option bool>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct KSPIN_LOCK_QUEUE { @@ -12447,7 +12447,7 @@ impl Default for KSPIN_LOCK_QUEUE { } } pub type KSTART_ROUTINE = Option; -pub type KSYNCHRONIZE_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type KSYNCHRONIZE_ROUTINE = Option bool>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct KSYSTEM_TIME { @@ -12519,12 +12519,12 @@ pub struct KUSER_SHARED_DATA { pub TimeZoneBiasStamp: i32, pub NtBuildNumber: u32, pub NtProductType: super::super::super::Win32::System::Kernel::NT_PRODUCT_TYPE, - pub ProductTypeIsValid: super::super::super::Win32::Foundation::BOOLEAN, - pub Reserved0: [super::super::super::Win32::Foundation::BOOLEAN; 1], + pub ProductTypeIsValid: bool, + pub Reserved0: [bool; 1], pub NativeProcessorArchitecture: u16, pub NtMajorVersion: u32, pub NtMinorVersion: u32, - pub ProcessorFeatures: [super::super::super::Win32::Foundation::BOOLEAN; 64], + pub ProcessorFeatures: [bool; 64], pub Reserved1: u32, pub Reserved3: u32, pub TimeSlip: u32, @@ -12532,7 +12532,7 @@ pub struct KUSER_SHARED_DATA { pub BootId: u32, pub SystemExpirationDate: i64, pub SuiteMask: u32, - pub KdDebuggerEnabled: super::super::super::Win32::Foundation::BOOLEAN, + pub KdDebuggerEnabled: bool, pub Anonymous1: KUSER_SHARED_DATA_0, pub CyclesPerYield: u16, pub ActiveConsoleId: u32, @@ -12540,7 +12540,7 @@ pub struct KUSER_SHARED_DATA { pub ComPlusPackage: u32, pub LastSystemRITEventTickCount: u32, pub NumberOfPhysicalPages: u32, - pub SafeBootMode: super::super::super::Win32::Foundation::BOOLEAN, + pub SafeBootMode: bool, pub Anonymous2: KUSER_SHARED_DATA_1, pub Reserved12: [u8; 2], pub Anonymous3: KUSER_SHARED_DATA_2, @@ -12857,7 +12857,7 @@ pub struct MAILSLOT_CREATE_PARAMETERS { pub MailslotQuota: u32, pub MaximumMessageSize: u32, pub ReadTimeout: i64, - pub TimeoutSpecified: super::super::super::Win32::Foundation::BOOLEAN, + pub TimeoutSpecified: bool, } impl Default for MAILSLOT_CREATE_PARAMETERS { fn default() -> Self { @@ -12868,7 +12868,7 @@ impl Default for MAILSLOT_CREATE_PARAMETERS { #[derive(Clone, Copy, Debug, PartialEq)] pub struct MAP_REGISTER_ENTRY { pub MapRegister: *mut core::ffi::c_void, - pub WriteToDevice: super::super::super::Win32::Foundation::BOOLEAN, + pub WriteToDevice: bool, } impl Default for MAP_REGISTER_ENTRY { fn default() -> Self { @@ -13364,7 +13364,7 @@ pub struct NAMED_PIPE_CREATE_PARAMETERS { pub InboundQuota: u32, pub OutboundQuota: u32, pub DefaultTimeout: i64, - pub TimeoutSpecified: super::super::super::Win32::Foundation::BOOLEAN, + pub TimeoutSpecified: bool, } impl Default for NAMED_PIPE_CREATE_PARAMETERS { fn default() -> Self { @@ -13372,7 +13372,7 @@ impl Default for NAMED_PIPE_CREATE_PARAMETERS { } } pub const NEC98x86: ALTERNATIVE_ARCHITECTURE_TYPE = ALTERNATIVE_ARCHITECTURE_TYPE(1i32); -pub type NMI_CALLBACK = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type NMI_CALLBACK = Option bool>; pub const NMI_NOTIFY_TYPE_GUID: windows_core::GUID = windows_core::GUID::from_u128(0x5bad89ff_b7e6_42c9_814a_cf2485d6e98a); pub const NMI_SECTION_GUID: windows_core::GUID = windows_core::GUID::from_u128(0xe71254e7_c1b9_4940_ab76_909703a4320f); #[repr(C)] @@ -13396,7 +13396,7 @@ impl Default for NPEM_CAPABILITY_STANDARD_0 { unsafe { core::mem::zeroed() } } } -pub type NPEM_CONTROL_ENABLE_DISABLE = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type NPEM_CONTROL_ENABLE_DISABLE = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct NPEM_CONTROL_INTERFACE { @@ -13420,7 +13420,7 @@ pub const NPEM_CONTROL_INTERFACE_VERSION1: u32 = 1u32; pub const NPEM_CONTROL_INTERFACE_VERSION2: u32 = 2u32; pub type NPEM_CONTROL_QUERY_CONTROL = Option u32>; pub type NPEM_CONTROL_QUERY_STANDARD_CAPABILITIES = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type NPEM_CONTROL_SET_STANDARD_CONTROL = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type NPEM_CONTROL_SET_STANDARD_CONTROL = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct NPEM_CONTROL_STANDARD_CONTROL_BIT(pub i32); @@ -13723,9 +13723,9 @@ pub type PALLOCATE_ADAPTER_CHANNEL = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PALLOCATE_COMMON_BUFFER = Option *mut core::ffi::c_void>; +pub type PALLOCATE_COMMON_BUFFER = Option *mut core::ffi::c_void>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PALLOCATE_COMMON_BUFFER_EX = Option *mut core::ffi::c_void>; +pub type PALLOCATE_COMMON_BUFFER_EX = Option *mut core::ffi::c_void>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PALLOCATE_COMMON_BUFFER_VECTOR = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -13746,14 +13746,14 @@ pub type PBOUND_CALLBACK = Option BOUND_CALLBACK_ #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PBUILD_MDL_FROM_SCATTER_GATHER_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PBUILD_SCATTER_GATHER_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PBUILD_SCATTER_GATHER_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PBUILD_SCATTER_GATHER_LIST_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PBUILD_SCATTER_GATHER_LIST_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PCALCULATE_SCATTER_GATHER_LIST_SIZE = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PCALLBACK_FUNCTION = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PCANCEL_ADAPTER_CHANNEL = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PCANCEL_ADAPTER_CHANNEL = Option bool>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PCANCEL_MAPPED_TRANSFER = Option super::super::super::Win32::Foundation::NTSTATUS>; pub const PCCARD_DEVICE_PCI: u32 = 16u32; @@ -16594,7 +16594,7 @@ impl Default for PCI_EXPRESS_VIRTUAL_CHANNEL_CAPABILITY { } } pub const PCI_EXPRESS_VIRTUAL_CHANNEL_CAP_ID: u32 = 2u32; -pub type PCI_EXPRESS_WAKE_CONTROL = Option; +pub type PCI_EXPRESS_WAKE_CONTROL = Option; pub const PCI_EXTENDED_CONFIG_LENGTH: u32 = 4096u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -16816,14 +16816,14 @@ impl Default for PCI_FPB_VECTOR_ACCESS_DATA_REGISTER { pub struct PCI_HARDWARE_INTERFACE(pub i32); pub const PCI_INVALID_ALTERNATE_FUNCTION_NUMBER: u32 = 255u32; pub const PCI_INVALID_VENDORID: u32 = 65535u32; -pub type PCI_IS_DEVICE_PRESENT = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PCI_IS_DEVICE_PRESENT_EX = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PCI_IS_DEVICE_PRESENT = Option bool>; +pub type PCI_IS_DEVICE_PRESENT_EX = Option bool>; pub type PCI_LINE_TO_PIN = Option; pub const PCI_MAX_BRIDGE_NUMBER: u32 = 255u32; pub const PCI_MAX_DEVICES: u32 = 32u32; pub const PCI_MAX_FUNCTION: u32 = 8u32; pub const PCI_MAX_SEGMENT_NUMBER: u32 = 65535u32; -pub type PCI_MSIX_GET_ENTRY = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PCI_MSIX_GET_ENTRY = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PCI_MSIX_GET_TABLE_SIZE = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PCI_MSIX_MASKUNMASK_ENTRY = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PCI_MSIX_SET_ENTRY = Option super::super::super::Win32::Foundation::NTSTATUS>; @@ -16961,10 +16961,10 @@ impl Default for PCI_ROOT_BUS_HARDWARE_CAPABILITY { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PCI_ROOT_BUS_HARDWARE_CAPABILITY_0 { - pub BusCapabilitiesFound: super::super::super::Win32::Foundation::BOOLEAN, + pub BusCapabilitiesFound: bool, pub CurrentSpeedAndMode: u32, pub SupportedSpeedsAndModes: u32, - pub DeviceIDMessagingCapable: super::super::super::Win32::Foundation::BOOLEAN, + pub DeviceIDMessagingCapable: bool, pub SecondaryBusWidth: PCI_BUS_WIDTH, } impl Default for PCI_ROOT_BUS_HARDWARE_CAPABILITY_0 { @@ -17107,7 +17107,7 @@ impl Default for PCI_SEGMENT_BUS_NUMBER_0_0 { } pub type PCI_SET_ACS = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PCI_SET_ACS2 = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PCI_SET_ATS = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PCI_SET_ATS = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy)] pub struct PCI_SLOT_NUMBER { @@ -17355,7 +17355,7 @@ pub const PCIe_NOTIFY_TYPE_GUID: windows_core::GUID = windows_core::GUID::from_u #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_Storage_FileSystem", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PCLFS_CLIENT_ADVANCE_TAIL_CALLBACK = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PCLFS_CLIENT_LFF_HANDLER_COMPLETE_CALLBACK = Option; +pub type PCLFS_CLIENT_LFF_HANDLER_COMPLETE_CALLBACK = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PCLFS_CLIENT_LOG_UNPINNED_CALLBACK = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -17367,10 +17367,10 @@ pub type PCONFIGURE_ADAPTER_CHANNEL = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PCREATE_COMMON_BUFFER_FROM_MDL = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PCREATE_PROCESS_NOTIFY_ROUTINE = Option; +pub type PCREATE_PROCESS_NOTIFY_ROUTINE = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power", feature = "Win32_System_WindowsProgramming"))] pub type PCREATE_PROCESS_NOTIFY_ROUTINE_EX = Option; -pub type PCREATE_THREAD_NOTIFY_ROUTINE = Option; +pub type PCREATE_THREAD_NOTIFY_ROUTINE = Option; pub const PCR_BTI_MITIGATION_CSWAP_HVC: u32 = 16u32; pub const PCR_BTI_MITIGATION_CSWAP_SMC: u32 = 32u32; pub const PCR_BTI_MITIGATION_NONE: u32 = 0u32; @@ -17440,7 +17440,7 @@ pub struct PCW_MASK_INFORMATION { pub CounterMask: u64, pub InstanceMask: *mut super::super::super::Win32::Foundation::UNICODE_STRING, pub InstanceId: u32, - pub CollectMultiple: super::super::super::Win32::Foundation::BOOLEAN, + pub CollectMultiple: bool, pub Buffer: super::super::Foundation::PPCW_BUFFER, pub CancelEvent: *mut super::super::Foundation::KEVENT, } @@ -17502,25 +17502,25 @@ pub type PEXT_DELETE_CALLBACK = Option; pub type PEX_CALLBACK_FUNCTION = Option super::super::super::Win32::Foundation::NTSTATUS>; pub const PFAControl: NPEM_CONTROL_STANDARD_CONTROL_BIT = NPEM_CONTROL_STANDARD_CONTROL_BIT(6i32); #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PFLUSH_ADAPTER_BUFFERS = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PFLUSH_ADAPTER_BUFFERS = Option bool>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PFLUSH_ADAPTER_BUFFERS_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PFLUSH_ADAPTER_BUFFERS_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PFLUSH_DMA_BUFFER = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PFLUSH_DMA_BUFFER = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFNFTH = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PFN_IN_USE_PAGE_OFFLINE_NOTIFY = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PFN_NT_COMMIT_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PFN_IN_USE_PAGE_OFFLINE_NOTIFY = Option bool>; +pub type PFN_NT_COMMIT_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] pub type PFN_NT_CREATE_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))] pub type PFN_NT_OPEN_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Win32_System_SystemServices")] pub type PFN_NT_QUERY_INFORMATION_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PFN_NT_ROLLBACK_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PFN_NT_ROLLBACK_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Win32_System_SystemServices")] pub type PFN_NT_SET_INFORMATION_TRANSACTION = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PFN_RTL_IS_NTDDI_VERSION_AVAILABLE = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PFN_RTL_IS_SERVICE_PACK_VERSION_INSTALLED = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PFN_RTL_IS_NTDDI_VERSION_AVAILABLE = Option bool>; +pub type PFN_RTL_IS_SERVICE_PACK_VERSION_INSTALLED = Option bool>; #[cfg(feature = "Win32_System_Diagnostics_Debug")] pub type PFN_WHEA_HIGH_IRQL_LOG_SEL_EVENT_HANDLER = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFPGA_BUS_SCAN = Option; @@ -17532,7 +17532,7 @@ pub type PFREE_ADAPTER_CHANNEL = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PFREE_COMMON_BUFFER = Option; +pub type PFREE_COMMON_BUFFER = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PFREE_COMMON_BUFFER_FROM_VECTOR = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -17554,13 +17554,13 @@ pub type PGET_DMA_ALIGNMENT = Option super::super::super::Win32::Foundation::HANDLE>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PGET_DMA_TRANSFER_INFO = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PGET_DMA_TRANSFER_INFO = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PGET_IDLE_WAKE_INFO = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PGET_LOCATION_STRING = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PGET_SCATTER_GATHER_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PGET_SCATTER_GATHER_LIST = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PGET_SCATTER_GATHER_LIST_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PGET_SCATTER_GATHER_LIST_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PGET_SDEV_IDENTIFIER = Option u64>; pub type PGET_SET_DEVICE_DATA = Option u32>; pub type PGET_UPDATED_BUS_RESOURCE = Option super::super::super::Win32::Foundation::NTSTATUS>; @@ -17572,8 +17572,8 @@ pub type PGET_VIRTUAL_FUNCTION_PROBED_BARS = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PGPE_CLEAR_STATUS2 = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PGPE_CONNECT_VECTOR = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PGPE_CONNECT_VECTOR2 = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PGPE_CONNECT_VECTOR = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PGPE_CONNECT_VECTOR2 = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PGPE_DISABLE_EVENT = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PGPE_DISABLE_EVENT2 = Option super::super::super::Win32::Foundation::NTSTATUS>; @@ -17582,13 +17582,13 @@ pub type PGPE_DISCONNECT_VECTOR2 = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PGPE_ENABLE_EVENT2 = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PGPE_SERVICE_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PGPE_SERVICE_ROUTINE2 = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PHALIOREADWRITEHANDLER = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PGPE_SERVICE_ROUTINE = Option bool>; +pub type PGPE_SERVICE_ROUTINE2 = Option bool>; +pub type PHALIOREADWRITEHANDLER = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PHALMCAINTERFACELOCK = Option; pub type PHALMCAINTERFACEREADREGISTER = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PHALMCAINTERFACEUNLOCK = Option; -pub type PHAL_RESET_DISPLAY_PARAMETERS = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PHAL_RESET_DISPLAY_PARAMETERS = Option bool>; pub type PHVL_WHEA_ERROR_NOTIFICATION = Option super::super::super::Win32::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -17721,10 +17721,10 @@ pub type PJOIN_DMA_DOMAIN = Option; pub type PKBUGCHECK_REASON_CALLBACK_ROUTINE = Option; pub type PKIPI_BROADCAST_WORKER = Option usize>; -pub type PKMESSAGE_SERVICE_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PKSERVICE_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PKMESSAGE_SERVICE_ROUTINE = Option bool>; +pub type PKSERVICE_ROUTINE = Option bool>; pub type PKSTART_ROUTINE = Option; -pub type PKSYNCHRONIZE_ROUTINE = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PKSYNCHRONIZE_ROUTINE = Option bool>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PLEAVE_DMA_DOMAIN = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PLOAD_IMAGE_NOTIFY_ROUTINE = Option; @@ -17745,9 +17745,9 @@ pub const PLUGPLAY_REGKEY_CURRENT_HWPROFILE: u32 = 4u32; pub const PLUGPLAY_REGKEY_DEVICE: u32 = 1u32; pub const PLUGPLAY_REGKEY_DRIVER: u32 = 2u32; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PMAP_TRANSFER = Option i64>; +pub type PMAP_TRANSFER = Option i64>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PMAP_TRANSFER_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PMAP_TRANSFER_EX = Option super::super::super::Win32::Foundation::NTSTATUS>; pub const PMCCounter: HARDWARE_COUNTER_TYPE = HARDWARE_COUNTER_TYPE(0i32); pub const PMEM_ERROR_SECTION_GUID: windows_core::GUID = windows_core::GUID::from_u128(0x81687003_dbfd_4728_9ffd_f0904f97597d); pub type PMM_DLL_INITIALIZE = Option super::super::super::Win32::Foundation::NTSTATUS>; @@ -17768,7 +17768,7 @@ impl Default for PM_DISPATCH_TABLE { unsafe { core::mem::zeroed() } } } -pub type PNMI_CALLBACK = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PNMI_CALLBACK = Option bool>; pub const PNPBus: INTERFACE_TYPE = INTERFACE_TYPE(15i32); pub type PNPEM_CONTROL_ENABLE_DISABLE = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PNPEM_CONTROL_QUERY_CONTROL = Option u32>; @@ -18029,7 +18029,7 @@ pub const POWER_LEVEL: u32 = 30u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct POWER_MONITOR_INVOCATION { - pub Console: super::super::super::Win32::Foundation::BOOLEAN, + pub Console: bool, pub RequestReason: POWER_MONITOR_REQUEST_REASON, } impl Default for POWER_MONITOR_INVOCATION { @@ -18046,7 +18046,7 @@ pub struct POWER_MONITOR_REQUEST_TYPE(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct POWER_PLATFORM_INFORMATION { - pub AoAc: super::super::super::Win32::Foundation::BOOLEAN, + pub AoAc: bool, } impl Default for POWER_PLATFORM_INFORMATION { fn default() -> Self { @@ -18074,8 +18074,8 @@ impl Default for POWER_SEQUENCE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct POWER_SESSION_CONNECT { - pub Connected: super::super::super::Win32::Foundation::BOOLEAN, - pub Console: super::super::super::Win32::Foundation::BOOLEAN, + pub Connected: bool, + pub Console: bool, } impl Default for POWER_SESSION_CONNECT { fn default() -> Self { @@ -18085,7 +18085,7 @@ impl Default for POWER_SESSION_CONNECT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct POWER_SESSION_RIT_STATE { - pub Active: super::super::super::Win32::Foundation::BOOLEAN, + pub Active: bool, pub LastInputTime: u64, } impl Default for POWER_SESSION_RIT_STATE { @@ -18108,8 +18108,8 @@ impl Default for POWER_SESSION_TIMEOUTS { #[derive(Clone, Copy, Debug, PartialEq)] pub struct POWER_SESSION_WINLOGON { pub SessionId: u32, - pub Console: super::super::super::Win32::Foundation::BOOLEAN, - pub Locked: super::super::super::Win32::Foundation::BOOLEAN, + pub Console: bool, + pub Locked: bool, } impl Default for POWER_SESSION_WINLOGON { fn default() -> Self { @@ -18169,7 +18169,7 @@ pub const POWER_THROTTLING_THREAD_VALID_FLAGS: u32 = 1u32; #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct POWER_USER_PRESENCE_TYPE(pub i32); pub type PO_FX_COMPONENT_ACTIVE_CONDITION_CALLBACK = Option; -pub type PO_FX_COMPONENT_CRITICAL_TRANSITION_CALLBACK = Option; +pub type PO_FX_COMPONENT_CRITICAL_TRANSITION_CALLBACK = Option; pub const PO_FX_COMPONENT_FLAG_F0_ON_DX: u64 = 1u64; pub const PO_FX_COMPONENT_FLAG_NO_DEBOUNCE: u64 = 2u64; pub type PO_FX_COMPONENT_IDLE_CONDITION_CALLBACK = Option; @@ -18244,7 +18244,7 @@ impl Default for PO_FX_COMPONENT_PERF_SET_0_1 { unsafe { core::mem::zeroed() } } } -pub type PO_FX_COMPONENT_PERF_STATE_CALLBACK = Option; +pub type PO_FX_COMPONENT_PERF_STATE_CALLBACK = Option; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PO_FX_COMPONENT_V1 { @@ -18408,8 +18408,8 @@ pub type PPCI_EXPRESS_EXIT_LINK_QUIESCENT_MODE = Option u32>; pub type PPCI_EXPRESS_ROOT_PORT_WRITE_CONFIG_SPACE = Option u32>; pub type PPCI_EXPRESS_WAKE_CONTROL = Option; -pub type PPCI_IS_DEVICE_PRESENT = Option super::super::super::Win32::Foundation::BOOLEAN>; -pub type PPCI_IS_DEVICE_PRESENT_EX = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PPCI_IS_DEVICE_PRESENT = Option bool>; +pub type PPCI_IS_DEVICE_PRESENT_EX = Option bool>; pub type PPCI_LINE_TO_PIN = Option; pub type PPCI_MSIX_GET_ENTRY = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PPCI_MSIX_GET_TABLE_SIZE = Option super::super::super::Win32::Foundation::NTSTATUS>; @@ -18447,7 +18447,7 @@ pub type PPTM_DEVICE_QUERY_TIME_SOURCE = Option s #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PPUT_DMA_ADAPTER = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type PPUT_SCATTER_GATHER_LIST = Option; +pub type PPUT_SCATTER_GATHER_LIST = Option; pub type PQUERYEXTENDEDADDRESS = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PREAD_DMA_COUNTER = Option u32>; @@ -18457,14 +18457,14 @@ pub type PREGISTER_FOR_DEVICE_NOTIFICATIONS = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_BEGIN = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_DRIVER_INIT = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PREPLACE_ENABLE_DISABLE_HARDWARE_QUIESCE = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PREPLACE_ENABLE_DISABLE_HARDWARE_QUIESCE = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_END = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_GET_MEMORY_DESTINATION = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_INITIATE_HARDWARE_MIRROR = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_MAP_MEMORY = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_MIRROR_PHYSICAL_MEMORY = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_MIRROR_PLATFORM_MEMORY = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PREPLACE_SET_PROCESSOR_ID = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PREPLACE_SET_PROCESSOR_ID = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_SWAP = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PREPLACE_UNLOAD = Option; pub type PREQUEST_POWER_COMPLETE = Option; @@ -18863,7 +18863,7 @@ pub type PTM_DEVICE_QUERY_TIME_SOURCE = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] pub type PTM_RM_NOTIFICATION = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PTRANSLATE_BUS_ADDRESS = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type PTRANSLATE_BUS_ADDRESS = Option bool>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type PTRANSLATE_RESOURCE_HANDLER = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -19787,7 +19787,7 @@ pub const SEH_VALIDATION_POLICY_TELEMETRY: u32 = 2u32; pub const SEI_NOTIFY_TYPE_GUID: windows_core::GUID = windows_core::GUID::from_u128(0x5c284c81_b0ae_4e87_a322_b04c85624323); pub const SEI_SECTION_GUID: windows_core::GUID = windows_core::GUID::from_u128(0xf2a4a152_9c6d_4020_aecf_7695b389251b); pub const SEMAPHORE_QUERY_STATE: u32 = 1u32; -pub type SET_D3COLD_SUPPORT = Option; +pub type SET_D3COLD_SUPPORT = Option; pub type SET_VIRTUAL_DEVICE_DATA = Option u32>; pub const SE_ASSIGNPRIMARYTOKEN_PRIVILEGE: i32 = 3i32; pub const SE_AUDIT_PRIVILEGE: i32 = 21i32; @@ -19892,8 +19892,8 @@ pub type SILO_MONITOR_CREATE_CALLBACK = Option Self { @@ -20155,7 +20155,7 @@ impl Default for TIME_FIELDS { #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct TRACE_INFORMATION_CLASS(pub i32); -pub type TRANSLATE_BUS_ADDRESS = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type TRANSLATE_BUS_ADDRESS = Option bool>; #[repr(C)] #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] #[derive(Clone, Copy, Debug, PartialEq)] @@ -20525,7 +20525,7 @@ pub struct WHEAP_ADD_REMOVE_ERROR_SOURCE_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub Descriptor: super::super::super::Win32::System::Diagnostics::Debug::WHEA_ERROR_SOURCE_DESCRIPTOR, pub Status: super::super::super::Win32::Foundation::NTSTATUS, - pub IsRemove: super::super::super::Win32::Foundation::BOOLEAN, + pub IsRemove: bool, } #[cfg(feature = "Win32_System_Diagnostics_Debug")] impl Default for WHEAP_ADD_REMOVE_ERROR_SOURCE_EVENT { @@ -20538,8 +20538,8 @@ impl Default for WHEAP_ADD_REMOVE_ERROR_SOURCE_EVENT { pub struct WHEAP_ATTEMPT_RECOVERY_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub ErrorHeader: WHEA_ERROR_RECORD_HEADER, - pub ArchitecturalRecovery: super::super::super::Win32::Foundation::BOOLEAN, - pub PshedRecovery: super::super::super::Win32::Foundation::BOOLEAN, + pub ArchitecturalRecovery: bool, + pub PshedRecovery: bool, pub Status: super::super::super::Win32::Foundation::NTSTATUS, } impl Default for WHEAP_ATTEMPT_RECOVERY_EVENT { @@ -20577,7 +20577,7 @@ impl Default for WHEAP_CLEARED_POISON_EVENT { #[derive(Clone, Copy)] pub struct WHEAP_CMCI_IMPLEMENTED_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub CmciAvailable: super::super::super::Win32::Foundation::BOOLEAN, + pub CmciAvailable: bool, } impl Default for WHEAP_CMCI_IMPLEMENTED_EVENT { fn default() -> Self { @@ -20686,8 +20686,8 @@ impl Default for WHEAP_DROPPED_CORRECTED_ERROR_EVENT { #[derive(Clone, Copy)] pub struct WHEAP_EDPC_ENABLED_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub eDPCEnabled: super::super::super::Win32::Foundation::BOOLEAN, - pub eDPCRecovEnabled: super::super::super::Win32::Foundation::BOOLEAN, + pub eDPCEnabled: bool, + pub eDPCRecovEnabled: bool, } impl Default for WHEAP_EDPC_ENABLED_EVENT { fn default() -> Self { @@ -20775,8 +20775,8 @@ impl Default for WHEAP_GENERIC_ERR_MEM_MAP_EVENT { #[derive(Clone, Copy)] pub struct WHEAP_OSC_IMPLEMENTED { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub OscImplemented: super::super::super::Win32::Foundation::BOOLEAN, - pub DebugChecked: super::super::super::Win32::Foundation::BOOLEAN, + pub OscImplemented: bool, + pub DebugChecked: bool, } impl Default for WHEAP_OSC_IMPLEMENTED { fn default() -> Self { @@ -20839,7 +20839,7 @@ impl Default for WHEAP_PCIE_READ_OVERRIDES_ERR { pub struct WHEAP_PFA_MEMORY_OFFLINED { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub DecisionType: WHEAP_PFA_OFFLINE_DECISION_TYPE, - pub ImmediateSuccess: super::super::super::Win32::Foundation::BOOLEAN, + pub ImmediateSuccess: bool, pub Page: u32, } impl Default for WHEAP_PFA_MEMORY_OFFLINED { @@ -20852,9 +20852,9 @@ impl Default for WHEAP_PFA_MEMORY_OFFLINED { pub struct WHEAP_PFA_MEMORY_POLICY { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub RegistryKeysPresent: u32, - pub DisableOffline: super::super::super::Win32::Foundation::BOOLEAN, - pub PersistOffline: super::super::super::Win32::Foundation::BOOLEAN, - pub PfaDisabled: super::super::super::Win32::Foundation::BOOLEAN, + pub DisableOffline: bool, + pub PersistOffline: bool, + pub PfaDisabled: bool, pub PageCount: u32, pub ErrorThreshold: u32, pub TimeOut: u32, @@ -20915,7 +20915,7 @@ impl Default for WHEAP_PLUGIN_DEFECT_LIST_UEFI_VAR_FAILED { #[derive(Clone, Copy)] pub struct WHEAP_PLUGIN_PFA_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub NoFurtherPfa: super::super::super::Win32::Foundation::BOOLEAN, + pub NoFurtherPfa: bool, } impl Default for WHEAP_PLUGIN_PFA_EVENT { fn default() -> Self { @@ -20927,7 +20927,7 @@ impl Default for WHEAP_PLUGIN_PFA_EVENT { pub struct WHEAP_PROCESS_EINJ_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub Error: [i8; 32], - pub InjectionActionTableValid: super::super::super::Win32::Foundation::BOOLEAN, + pub InjectionActionTableValid: bool, pub BeginInjectionInstructionCount: u32, pub GetTriggerErrorActionTableInstructionCount: u32, pub SetErrorTypeInstructionCount: u32, @@ -20951,7 +20951,7 @@ pub struct WHEAP_PROCESS_HEST_EVENT { pub Error: [i8; 32], pub EntryType: [i8; 32], pub EntryIndex: u32, - pub HestValid: super::super::super::Win32::Foundation::BOOLEAN, + pub HestValid: bool, pub CmcCount: u32, pub MceCount: u32, pub NmiCount: u32, @@ -20976,8 +20976,8 @@ pub struct WHEAP_PSHED_INJECT_ERROR { pub Parameter3: u64, pub Parameter4: u64, pub InjectionStatus: super::super::super::Win32::Foundation::NTSTATUS, - pub InjectionAttempted: super::super::super::Win32::Foundation::BOOLEAN, - pub InjectionByPlugin: super::super::super::Win32::Foundation::BOOLEAN, + pub InjectionAttempted: bool, + pub InjectionByPlugin: bool, } impl Default for WHEAP_PSHED_INJECT_ERROR { fn default() -> Self { @@ -21542,8 +21542,8 @@ impl Default for WHEA_ARM_TLB_ERROR_VALID_BITS_0 { #[derive(Clone, Copy)] pub struct WHEA_AZCC_ROOT_BUS_ERR_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub MaxBusCountPassed: super::super::super::Win32::Foundation::BOOLEAN, - pub InvalidBusMSR: super::super::super::Win32::Foundation::BOOLEAN, + pub MaxBusCountPassed: bool, + pub InvalidBusMSR: bool, } impl Default for WHEA_AZCC_ROOT_BUS_ERR_EVENT { fn default() -> Self { @@ -21567,9 +21567,9 @@ impl Default for WHEA_AZCC_ROOT_BUS_LIST_EVENT { pub struct WHEA_AZCC_SET_POISON_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub Bus: u32, - pub ReadSuccess: super::super::super::Win32::Foundation::BOOLEAN, - pub WriteSuccess: super::super::super::Win32::Foundation::BOOLEAN, - pub IsEnable: super::super::super::Win32::Foundation::BOOLEAN, + pub ReadSuccess: bool, + pub WriteSuccess: bool, + pub IsEnable: bool, } impl Default for WHEA_AZCC_SET_POISON_EVENT { fn default() -> Self { @@ -21884,11 +21884,11 @@ pub const WHEA_ERROR_RECORD_VALID_TIMESTAMP: u32 = 2u32; #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct WHEA_ERROR_RECOVERY_INFO_SECTION { - pub RecoveryKernel: super::super::super::Win32::Foundation::BOOLEAN, + pub RecoveryKernel: bool, pub RecoveryAction: WHEA_RECOVERY_ACTION, pub RecoveryType: WHEA_RECOVERY_TYPE, pub Irql: u8, - pub RecoverySucceeded: super::super::super::Win32::Foundation::BOOLEAN, + pub RecoverySucceeded: bool, pub FailureReason: WHEA_RECOVERY_FAILURE_REASON, pub ProcessName: [i8; 20], } @@ -22699,7 +22699,7 @@ impl Default for WHEA_PCIXDEVICE_REGISTER_PAIR { #[derive(Clone, Copy, Debug, PartialEq)] pub struct WHEA_PCI_RECOVERY_SECTION { pub SignalType: u8, - pub RecoveryAttempted: super::super::super::Win32::Foundation::BOOLEAN, + pub RecoveryAttempted: bool, pub RecoveryStatus: u8, } impl Default for WHEA_PCI_RECOVERY_SECTION { @@ -22977,7 +22977,7 @@ impl Default for WHEA_PSHED_PLUGIN_LOAD_EVENT { pub struct WHEA_PSHED_PLUGIN_PLATFORM_SUPPORT_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub PluginName: [u16; 32], - pub Supported: super::super::super::Win32::Foundation::BOOLEAN, + pub Supported: bool, } impl Default for WHEA_PSHED_PLUGIN_PLATFORM_SUPPORT_EVENT { fn default() -> Self { @@ -23084,11 +23084,11 @@ impl Default for WHEA_RECOVERY_CONTEXT_0 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct WHEA_RECOVERY_CONTEXT_0_0 { pub Address: usize, - pub Consumed: super::super::super::Win32::Foundation::BOOLEAN, + pub Consumed: bool, pub ErrorCode: u16, - pub ErrorIpValid: super::super::super::Win32::Foundation::BOOLEAN, - pub RestartIpValid: super::super::super::Win32::Foundation::BOOLEAN, - pub ClearPoison: super::super::super::Win32::Foundation::BOOLEAN, + pub ErrorIpValid: bool, + pub RestartIpValid: bool, + pub ClearPoison: bool, } impl Default for WHEA_RECOVERY_CONTEXT_0_0 { fn default() -> Self { @@ -23173,7 +23173,7 @@ pub struct WHEA_SEA_SECTION { pub Esr: u32, pub Far: u64, pub Par: u64, - pub WasKernel: super::super::super::Win32::Foundation::BOOLEAN, + pub WasKernel: bool, } impl Default for WHEA_SEA_SECTION { fn default() -> Self { @@ -23216,9 +23216,9 @@ impl Default for WHEA_SEL_BUGCHECK_PROGRESS { #[derive(Clone, Copy)] pub struct WHEA_SEL_BUGCHECK_RECOVERY_STATUS_MULTIPLE_BUGCHECK_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub IsBugcheckOwner: super::super::super::Win32::Foundation::BOOLEAN, + pub IsBugcheckOwner: bool, pub RecursionCount: u8, - pub IsBugcheckRecoveryOwner: super::super::super::Win32::Foundation::BOOLEAN, + pub IsBugcheckRecoveryOwner: bool, } impl Default for WHEA_SEL_BUGCHECK_RECOVERY_STATUS_MULTIPLE_BUGCHECK_EVENT { fn default() -> Self { @@ -23229,7 +23229,7 @@ impl Default for WHEA_SEL_BUGCHECK_RECOVERY_STATUS_MULTIPLE_BUGCHECK_EVENT { #[derive(Clone, Copy)] pub struct WHEA_SEL_BUGCHECK_RECOVERY_STATUS_PHASE1_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, - pub Success: super::super::super::Win32::Foundation::BOOLEAN, + pub Success: bool, pub Version: u8, pub EntryCount: u16, pub Data: WHEA_SEL_BUGCHECK_RECOVERY_STATUS_PHASE1_EVENT_0, @@ -23256,7 +23256,7 @@ pub const WHEA_SEL_BUGCHECK_RECOVERY_STATUS_PHASE1_VERSION: u32 = 1u32; pub struct WHEA_SEL_BUGCHECK_RECOVERY_STATUS_PHASE2_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub BootId: u32, - pub Success: super::super::super::Win32::Foundation::BOOLEAN, + pub Success: bool, } impl Default for WHEA_SEL_BUGCHECK_RECOVERY_STATUS_PHASE2_EVENT { fn default() -> Self { @@ -23274,7 +23274,7 @@ impl Default for WHEA_SEL_BUGCHECK_RECOVERY_STATUS_START_EVENT { unsafe { core::mem::zeroed() } } } -pub type WHEA_SIGNAL_HANDLER_OVERRIDE_CALLBACK = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type WHEA_SIGNAL_HANDLER_OVERRIDE_CALLBACK = Option bool>; #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct WHEA_SRAR_DETAIL_EVENT { @@ -23282,7 +23282,7 @@ pub struct WHEA_SRAR_DETAIL_EVENT { pub RecoveryContextFlags: u32, pub RecoveryContextPa: u64, pub PageOfflineStatus: super::super::super::Win32::Foundation::NTSTATUS, - pub KernelConsumerError: super::super::super::Win32::Foundation::BOOLEAN, + pub KernelConsumerError: bool, } impl Default for WHEA_SRAR_DETAIL_EVENT { fn default() -> Self { @@ -23351,7 +23351,7 @@ pub struct WHEA_THROTTLE_PCIE_ADD_EVENT { pub WheaEventLogEntry: WHEA_EVENT_LOG_ENTRY, pub Address: WHEA_PCIE_ADDRESS, pub Mask: u32, - pub Updated: super::super::super::Win32::Foundation::BOOLEAN, + pub Updated: bool, pub Status: super::super::super::Win32::Foundation::NTSTATUS, } impl Default for WHEA_THROTTLE_PCIE_ADD_EVENT { @@ -24005,9 +24005,9 @@ pub const XPF_PROCESSOR_ERROR_SECTION_GUID: windows_core::GUID = windows_core::G pub struct XPF_RECOVERY_INFO { pub FailureReason: XPF_RECOVERY_INFO_0, pub Action: XPF_RECOVERY_INFO_1, - pub ActionRequired: super::super::super::Win32::Foundation::BOOLEAN, - pub RecoverySucceeded: super::super::super::Win32::Foundation::BOOLEAN, - pub RecoveryKernel: super::super::super::Win32::Foundation::BOOLEAN, + pub ActionRequired: bool, + pub RecoverySucceeded: bool, + pub RecoveryKernel: bool, pub Reserved: u8, pub Reserved2: u16, pub Reserved3: u16, @@ -24185,7 +24185,7 @@ pub type _WHEA_ERROR_SOURCE_CREATE_RECORD = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type _WHEA_ERROR_SOURCE_RECOVER = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type _WHEA_ERROR_SOURCE_UNINITIALIZE = Option; -pub type _WHEA_SIGNAL_HANDLER_OVERRIDE_CALLBACK = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type _WHEA_SIGNAL_HANDLER_OVERRIDE_CALLBACK = Option bool>; pub const __guid_type: u32 = 8192u32; pub const __multiString_type: u32 = 16384u32; pub const __string_type: u32 = 4096u32; @@ -24195,7 +24195,7 @@ pub type pHalEndMirroring = Option pub type pHalEndOfBoot = Option; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type pHalExamineMBR = Option; -pub type pHalFindBusAddressTranslation = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type pHalFindBusAddressTranslation = Option bool>; pub type pHalGetAcpiTable = Option *mut core::ffi::c_void>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type pHalGetDmaAdapter = Option *mut DMA_ADAPTER>; @@ -24209,7 +24209,7 @@ pub type pHalHandlerForBus = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type pHalInitPowerManagement = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] -pub type pHalIoReadPartitionTable = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type pHalIoReadPartitionTable = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] pub type pHalIoSetPartitionInformation = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(all(feature = "Wdk_Foundation", feature = "Wdk_Storage_FileSystem", feature = "Win32_Security", feature = "Win32_System_IO", feature = "Win32_System_Ioctl", feature = "Win32_System_Kernel", feature = "Win32_System_Power"))] @@ -24221,20 +24221,20 @@ pub type pHalQueryBusSlots = Option super::super::super::Win32::Foundation::NTSTATUS>; #[cfg(feature = "Wdk_Foundation")] pub type pHalReferenceBusHandler = Option; -pub type pHalResetDisplay = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type pHalResetDisplay = Option bool>; pub type pHalSetPciErrorHandlerCallback = Option; pub type pHalSetSystemInformation = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type pHalStartMirroring = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type pHalTranslateBusAddress = Option super::super::super::Win32::Foundation::BOOLEAN>; +pub type pHalTranslateBusAddress = Option bool>; pub type pHalVectorToIDTEntry = Option u8>; pub type pKdCheckPowerButton = Option; pub type pKdEnumerateDebuggingDevices = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type pKdGetAcpiTablePhase0 = Option *mut core::ffi::c_void>; pub type pKdGetPciDataByOffset = Option u32>; -pub type pKdMapPhysicalMemory64 = Option *mut core::ffi::c_void>; +pub type pKdMapPhysicalMemory64 = Option *mut core::ffi::c_void>; pub type pKdReleaseIntegratedDeviceForDebugging = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type pKdReleasePciDeviceForDebugging = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type pKdSetPciDataByOffset = Option u32>; pub type pKdSetupIntegratedDeviceForDebugging = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type pKdSetupPciDeviceForDebugging = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type pKdUnmapVirtualAddress = Option; +pub type pKdUnmapVirtualAddress = Option; diff --git a/crates/libs/windows/src/Windows/Wdk/System/Threading/mod.rs b/crates/libs/windows/src/Windows/Wdk/System/Threading/mod.rs index c6e14973f7..dfacf6573b 100644 --- a/crates/libs/windows/src/Windows/Wdk/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/System/Threading/mod.rs @@ -1,6 +1,6 @@ #[inline] -pub unsafe fn NtCancelTimer(timerhandle: super::super::super::Win32::Foundation::HANDLE, currentstate: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtCancelTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, currentstate : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn NtCancelTimer(timerhandle: super::super::super::Win32::Foundation::HANDLE, currentstate: Option<*mut bool>) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn NtCancelTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, currentstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); NtCancelTimer(core::mem::transmute(timerhandle), core::mem::transmute(currentstate.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))] @@ -44,9 +44,9 @@ pub unsafe fn NtSetInformationThread(threadhandle: super::super::super::Win32::F } #[cfg(feature = "Wdk_System_SystemServices")] #[inline] -pub unsafe fn NtSetTimer(timerhandle: super::super::super::Win32::Foundation::HANDLE, duetime: *const i64, timerapcroutine: Option, timercontext: Option<*const core::ffi::c_void>, resumetimer: bool, period: Option, previousstate: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtSetTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, duetime : *const i64, timerapcroutine : super::SystemServices:: PTIMER_APC_ROUTINE, timercontext : *const core::ffi::c_void, resumetimer : super::super::super::Win32::Foundation:: BOOLEAN, period : i32, previousstate : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtSetTimer(core::mem::transmute(timerhandle), core::mem::transmute(duetime), core::mem::transmute(timerapcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(timercontext.unwrap_or(core::mem::zeroed())), resumetimer.into(), core::mem::transmute(period.unwrap_or(core::mem::zeroed())), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed()))) +pub unsafe fn NtSetTimer(timerhandle: super::super::super::Win32::Foundation::HANDLE, duetime: *const i64, timerapcroutine: Option, timercontext: Option<*const core::ffi::c_void>, resumetimer: bool, period: Option, previousstate: Option<*mut bool>) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn NtSetTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, duetime : *const i64, timerapcroutine : super::SystemServices:: PTIMER_APC_ROUTINE, timercontext : *const core::ffi::c_void, resumetimer : bool, period : i32, previousstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtSetTimer(core::mem::transmute(timerhandle), core::mem::transmute(duetime), core::mem::transmute(timerapcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(timercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(resumetimer), core::mem::transmute(period.unwrap_or(core::mem::zeroed())), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn NtSetTimerEx(timerhandle: super::super::super::Win32::Foundation::HANDLE, timersetinformationclass: TIMER_SET_INFORMATION_CLASS, timersetinformation: Option<*mut core::ffi::c_void>, timersetinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -60,12 +60,12 @@ pub unsafe fn NtTerminateProcess(processhandle: Option super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - NtWaitForSingleObject(core::mem::transmute(handle), alertable.into(), core::mem::transmute(timeout)) + windows_targets::link!("ntdll.dll" "system" fn NtWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : bool, timeout : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS); + NtWaitForSingleObject(core::mem::transmute(handle), core::mem::transmute(alertable), core::mem::transmute(timeout)) } #[inline] -pub unsafe fn ZwCancelTimer(timerhandle: super::super::super::Win32::Foundation::HANDLE, currentstate: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwCancelTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, currentstate : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); +pub unsafe fn ZwCancelTimer(timerhandle: super::super::super::Win32::Foundation::HANDLE, currentstate: Option<*mut bool>) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn ZwCancelTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, currentstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); ZwCancelTimer(core::mem::transmute(timerhandle), core::mem::transmute(currentstate.unwrap_or(core::mem::zeroed()))) } #[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))] @@ -109,9 +109,9 @@ pub unsafe fn ZwSetInformationThread(threadhandle: super::super::super::Win32::F } #[cfg(feature = "Wdk_System_SystemServices")] #[inline] -pub unsafe fn ZwSetTimer(timerhandle: super::super::super::Win32::Foundation::HANDLE, duetime: *const i64, timerapcroutine: Option, timercontext: Option<*const core::ffi::c_void>, resumetimer: bool, period: Option, previousstate: Option<*mut super::super::super::Win32::Foundation::BOOLEAN>) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwSetTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, duetime : *const i64, timerapcroutine : super::SystemServices:: PTIMER_APC_ROUTINE, timercontext : *const core::ffi::c_void, resumetimer : super::super::super::Win32::Foundation:: BOOLEAN, period : i32, previousstate : *mut super::super::super::Win32::Foundation:: BOOLEAN) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwSetTimer(core::mem::transmute(timerhandle), core::mem::transmute(duetime), core::mem::transmute(timerapcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(timercontext.unwrap_or(core::mem::zeroed())), resumetimer.into(), core::mem::transmute(period.unwrap_or(core::mem::zeroed())), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed()))) +pub unsafe fn ZwSetTimer(timerhandle: super::super::super::Win32::Foundation::HANDLE, duetime: *const i64, timerapcroutine: Option, timercontext: Option<*const core::ffi::c_void>, resumetimer: bool, period: Option, previousstate: Option<*mut bool>) -> super::super::super::Win32::Foundation::NTSTATUS { + windows_targets::link!("ntdll.dll" "system" fn ZwSetTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, duetime : *const i64, timerapcroutine : super::SystemServices:: PTIMER_APC_ROUTINE, timercontext : *const core::ffi::c_void, resumetimer : bool, period : i32, previousstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwSetTimer(core::mem::transmute(timerhandle), core::mem::transmute(duetime), core::mem::transmute(timerapcroutine.unwrap_or(core::mem::zeroed())), core::mem::transmute(timercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(resumetimer), core::mem::transmute(period.unwrap_or(core::mem::zeroed())), core::mem::transmute(previousstate.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ZwSetTimerEx(timerhandle: super::super::super::Win32::Foundation::HANDLE, timersetinformationclass: TIMER_SET_INFORMATION_CLASS, timersetinformation: Option<*mut core::ffi::c_void>, timersetinformationlength: u32) -> super::super::super::Win32::Foundation::NTSTATUS { @@ -125,8 +125,8 @@ pub unsafe fn ZwTerminateProcess(processhandle: Option) -> super::super::super::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn ZwWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : super::super::super::Win32::Foundation:: BOOLEAN, timeout : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); - ZwWaitForSingleObject(core::mem::transmute(handle), alertable.into(), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("ntdll.dll" "system" fn ZwWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : bool, timeout : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS); + ZwWaitForSingleObject(core::mem::transmute(handle), core::mem::transmute(alertable), core::mem::transmute(timeout.unwrap_or(core::mem::zeroed()))) } pub const MaxProcessInfoClass: PROCESSINFOCLASS = PROCESSINFOCLASS(83i32); pub const MaxThreadInfoClass: THREADINFOCLASS = THREADINFOCLASS(56i32); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs index f4021a7230..ff12583e26 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs @@ -299,7 +299,7 @@ pub type PIBIO_ENGINE_ACTIVATE_FN = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_IO")] -pub type PIBIO_ENGINE_CHECK_FOR_DUPLICATE_FN = Option windows_core::HRESULT>; +pub type PIBIO_ENGINE_CHECK_FOR_DUPLICATE_FN = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_IO")] pub type PIBIO_ENGINE_CLEAR_CONTEXT_FN = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_IO")] @@ -341,7 +341,7 @@ pub type PIBIO_ENGINE_PIPELINE_CLEANUP_FN = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_IO")] -pub type PIBIO_ENGINE_QUERY_CALIBRATION_DATA_FN = Option windows_core::HRESULT>; +pub type PIBIO_ENGINE_QUERY_CALIBRATION_DATA_FN = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_IO")] pub type PIBIO_ENGINE_QUERY_EXTENDED_ENROLLMENT_STATUS_FN = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_IO")] @@ -371,7 +371,7 @@ pub type PIBIO_ENGINE_SET_HASH_ALGORITHM_FN = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_IO")] -pub type PIBIO_ENGINE_VERIFY_FEATURE_SET_FN = Option windows_core::HRESULT>; +pub type PIBIO_ENGINE_VERIFY_FEATURE_SET_FN = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_IO")] pub type PIBIO_FRAMEWORK_ALLOCATE_MEMORY_FN = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_IO")] @@ -507,7 +507,7 @@ pub type PIBIO_STORAGE_GET_RECORD_COUNT_FN = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_IO")] -pub type PIBIO_STORAGE_NOTIFY_DATABASE_CHANGE_FN = Option windows_core::HRESULT>; +pub type PIBIO_STORAGE_NOTIFY_DATABASE_CHANGE_FN = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_IO")] pub type PIBIO_STORAGE_NOTIFY_POWER_CHANGE_FN = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_IO")] @@ -542,7 +542,7 @@ pub type PWINBIO_QUERY_ENGINE_INTERFACE_FN = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_IO")] pub type PWINBIO_QUERY_STORAGE_INTERFACE_FN = Option windows_core::HRESULT>; -pub type PWINBIO_VERIFY_CALLBACK = Option; +pub type PWINBIO_VERIFY_CALLBACK = Option; #[repr(C)] #[derive(Clone, Copy)] pub struct WINBIO_ACCOUNT_POLICY { @@ -715,7 +715,7 @@ impl Default for WINBIO_ASYNC_RESULT_0_3 { #[derive(Clone, Copy)] pub struct WINBIO_ASYNC_RESULT_0_4 { pub Identity: WINBIO_IDENTITY, - pub IsNewTemplate: super::super::Foundation::BOOLEAN, + pub IsNewTemplate: bool, } impl Default for WINBIO_ASYNC_RESULT_0_4 { fn default() -> Self { @@ -878,7 +878,7 @@ impl Default for WINBIO_ASYNC_RESULT_0_9 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WINBIO_ASYNC_RESULT_0_15 { - pub Match: super::super::Foundation::BOOLEAN, + pub Match: bool, pub RejectDetail: u32, pub Ticket: u64, } @@ -890,7 +890,7 @@ impl Default for WINBIO_ASYNC_RESULT_0_15 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WINBIO_ASYNC_RESULT_0_0 { - pub Match: super::super::Foundation::BOOLEAN, + pub Match: bool, pub RejectDetail: u32, } impl Default for WINBIO_ASYNC_RESULT_0_0 { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs index 7b29b9ef72..bcf4a5fee9 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs @@ -906,14 +906,14 @@ pub struct BTH_LE_GATT_CHARACTERISTIC { pub CharacteristicUuid: BTH_LE_UUID, pub AttributeHandle: u16, pub CharacteristicValueHandle: u16, - pub IsBroadcastable: super::super::Foundation::BOOLEAN, - pub IsReadable: super::super::Foundation::BOOLEAN, - pub IsWritable: super::super::Foundation::BOOLEAN, - pub IsWritableWithoutResponse: super::super::Foundation::BOOLEAN, - pub IsSignedWritable: super::super::Foundation::BOOLEAN, - pub IsNotifiable: super::super::Foundation::BOOLEAN, - pub IsIndicatable: super::super::Foundation::BOOLEAN, - pub HasExtendedProperties: super::super::Foundation::BOOLEAN, + pub IsBroadcastable: bool, + pub IsReadable: bool, + pub IsWritable: bool, + pub IsWritableWithoutResponse: bool, + pub IsSignedWritable: bool, + pub IsNotifiable: bool, + pub IsIndicatable: bool, + pub HasExtendedProperties: bool, } impl Default for BTH_LE_GATT_CHARACTERISTIC { fn default() -> Self { @@ -991,8 +991,8 @@ impl Default for BTH_LE_GATT_DESCRIPTOR_VALUE_0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct BTH_LE_GATT_DESCRIPTOR_VALUE_0_0 { - pub IsReliableWriteEnabled: super::super::Foundation::BOOLEAN, - pub IsAuxiliariesWritable: super::super::Foundation::BOOLEAN, + pub IsReliableWriteEnabled: bool, + pub IsAuxiliariesWritable: bool, } impl Default for BTH_LE_GATT_DESCRIPTOR_VALUE_0_0 { fn default() -> Self { @@ -1016,8 +1016,8 @@ impl Default for BTH_LE_GATT_DESCRIPTOR_VALUE_0_3 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct BTH_LE_GATT_DESCRIPTOR_VALUE_0_1 { - pub IsSubscribeToNotification: super::super::Foundation::BOOLEAN, - pub IsSubscribeToIndication: super::super::Foundation::BOOLEAN, + pub IsSubscribeToNotification: bool, + pub IsSubscribeToIndication: bool, } impl Default for BTH_LE_GATT_DESCRIPTOR_VALUE_0_1 { fn default() -> Self { @@ -1027,7 +1027,7 @@ impl Default for BTH_LE_GATT_DESCRIPTOR_VALUE_0_1 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct BTH_LE_GATT_DESCRIPTOR_VALUE_0_2 { - pub IsBroadcast: super::super::Foundation::BOOLEAN, + pub IsBroadcast: bool, } impl Default for BTH_LE_GATT_DESCRIPTOR_VALUE_0_2 { fn default() -> Self { @@ -1053,7 +1053,7 @@ pub const BTH_LE_SERVICE_GATT: u32 = 6145u32; #[repr(C)] #[derive(Clone, Copy)] pub struct BTH_LE_UUID { - pub IsShortUuid: super::super::Foundation::BOOLEAN, + pub IsShortUuid: bool, pub Value: BTH_LE_UUID_0, } impl Default for BTH_LE_UUID { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Cdrom/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Cdrom/mod.rs index c410043171..d9ba156870 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Cdrom/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Cdrom/mod.rs @@ -72,7 +72,7 @@ impl Default for CDROM_EXCLUSIVE_LOCK { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CDROM_EXCLUSIVE_LOCK_STATE { - pub LockState: super::super::Foundation::BOOLEAN, + pub LockState: bool, pub CallerName: [u8; 64], } impl Default for CDROM_EXCLUSIVE_LOCK_STATE { @@ -209,10 +209,10 @@ pub struct CDROM_SET_STREAMING { pub StartLba: u32, pub EndLba: u32, pub RotationControl: WRITE_ROTATION, - pub RestoreDefaults: super::super::Foundation::BOOLEAN, - pub SetExact: super::super::Foundation::BOOLEAN, - pub RandomAccess: super::super::Foundation::BOOLEAN, - pub Persistent: super::super::Foundation::BOOLEAN, + pub RestoreDefaults: bool, + pub SetExact: bool, + pub RandomAccess: bool, + pub Persistent: bool, } impl Default for CDROM_SET_STREAMING { fn default() -> Self { @@ -223,8 +223,8 @@ impl Default for CDROM_SET_STREAMING { #[derive(Clone, Copy, Debug, PartialEq)] pub struct CDROM_SIMPLE_OPC_INFO { pub RequestType: CDROM_OPC_INFO_TYPE, - pub Exclude0: super::super::Foundation::BOOLEAN, - pub Exclude1: super::super::Foundation::BOOLEAN, + pub Exclude0: bool, + pub Exclude1: bool, } impl Default for CDROM_SIMPLE_OPC_INFO { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs index 52b014f127..901da72ef0 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs @@ -843,7 +843,7 @@ pub struct CDDDXGK_REDIRBITMAPPRESENTINFO { pub DirtyRect: *mut super::super::Foundation::RECT, pub NumContexts: u32, pub hContext: [super::super::Foundation::HANDLE; 65], - pub bDoNotSynchronizeWithDxContent: super::super::Foundation::BOOLEAN, + pub bDoNotSynchronizeWithDxContent: bool, } impl Default for CDDDXGK_REDIRBITMAPPRESENTINFO { fn default() -> Self { @@ -4581,7 +4581,7 @@ pub struct VIDEO_BANK_TYPE(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct VIDEO_BRIGHTNESS_POLICY { - pub DefaultToBiosPolicy: super::super::Foundation::BOOLEAN, + pub DefaultToBiosPolicy: bool, pub LevelCount: u8, pub Level: [VIDEO_BRIGHTNESS_POLICY_0; 1], } @@ -5099,10 +5099,10 @@ pub struct VIDEO_WIN32K_CALLBACKS_PARAMS { pub PhysDisp: *mut core::ffi::c_void, pub Param: usize, pub Status: i32, - pub LockUserSession: super::super::Foundation::BOOLEAN, - pub IsPostDevice: super::super::Foundation::BOOLEAN, - pub SurpriseRemoval: super::super::Foundation::BOOLEAN, - pub WaitForQueueReady: super::super::Foundation::BOOLEAN, + pub LockUserSession: bool, + pub IsPostDevice: bool, + pub SurpriseRemoval: bool, + pub WaitForQueueReady: bool, } impl Default for VIDEO_WIN32K_CALLBACKS_PARAMS { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs index f6214eed6d..f83f74de9a 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs @@ -7,28 +7,28 @@ where DirectInput8Create(core::mem::transmute(hinst), core::mem::transmute(dwversion), core::mem::transmute(riidltf), core::mem::transmute(ppvout), punkouter.param().abi()).ok() } #[inline] -pub unsafe fn HidD_FlushQueue(hiddeviceobject: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_FlushQueue(hiddeviceobject : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_FlushQueue(hiddeviceobject: super::super::Foundation::HANDLE) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_FlushQueue(hiddeviceobject : super::super::Foundation:: HANDLE) -> bool); HidD_FlushQueue(core::mem::transmute(hiddeviceobject)) } #[inline] -pub unsafe fn HidD_FreePreparsedData(preparseddata: PHIDP_PREPARSED_DATA) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_FreePreparsedData(preparseddata : PHIDP_PREPARSED_DATA) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_FreePreparsedData(preparseddata: PHIDP_PREPARSED_DATA) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_FreePreparsedData(preparseddata : PHIDP_PREPARSED_DATA) -> bool); HidD_FreePreparsedData(core::mem::transmute(preparseddata)) } #[inline] -pub unsafe fn HidD_GetAttributes(hiddeviceobject: super::super::Foundation::HANDLE, attributes: *mut HIDD_ATTRIBUTES) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_GetAttributes(hiddeviceobject : super::super::Foundation:: HANDLE, attributes : *mut HIDD_ATTRIBUTES) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_GetAttributes(hiddeviceobject: super::super::Foundation::HANDLE, attributes: *mut HIDD_ATTRIBUTES) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_GetAttributes(hiddeviceobject : super::super::Foundation:: HANDLE, attributes : *mut HIDD_ATTRIBUTES) -> bool); HidD_GetAttributes(core::mem::transmute(hiddeviceobject), core::mem::transmute(attributes)) } #[inline] -pub unsafe fn HidD_GetConfiguration(hiddeviceobject: super::super::Foundation::HANDLE, configuration: *mut HIDD_CONFIGURATION, configurationlength: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_GetConfiguration(hiddeviceobject : super::super::Foundation:: HANDLE, configuration : *mut HIDD_CONFIGURATION, configurationlength : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_GetConfiguration(hiddeviceobject: super::super::Foundation::HANDLE, configuration: *mut HIDD_CONFIGURATION, configurationlength: u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_GetConfiguration(hiddeviceobject : super::super::Foundation:: HANDLE, configuration : *mut HIDD_CONFIGURATION, configurationlength : u32) -> bool); HidD_GetConfiguration(core::mem::transmute(hiddeviceobject), core::mem::transmute(configuration), core::mem::transmute(configurationlength)) } #[inline] -pub unsafe fn HidD_GetFeature(hiddeviceobject: super::super::Foundation::HANDLE, reportbuffer: *mut core::ffi::c_void, reportbufferlength: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_GetFeature(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *mut core::ffi::c_void, reportbufferlength : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_GetFeature(hiddeviceobject: super::super::Foundation::HANDLE, reportbuffer: *mut core::ffi::c_void, reportbufferlength: u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_GetFeature(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *mut core::ffi::c_void, reportbufferlength : u32) -> bool); HidD_GetFeature(core::mem::transmute(hiddeviceobject), core::mem::transmute(reportbuffer), core::mem::transmute(reportbufferlength)) } #[inline] @@ -39,68 +39,68 @@ pub unsafe fn HidD_GetHidGuid() -> windows_core::GUID { result__ } #[inline] -pub unsafe fn HidD_GetIndexedString(hiddeviceobject: super::super::Foundation::HANDLE, stringindex: u32, buffer: *mut core::ffi::c_void, bufferlength: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_GetIndexedString(hiddeviceobject : super::super::Foundation:: HANDLE, stringindex : u32, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_GetIndexedString(hiddeviceobject: super::super::Foundation::HANDLE, stringindex: u32, buffer: *mut core::ffi::c_void, bufferlength: u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_GetIndexedString(hiddeviceobject : super::super::Foundation:: HANDLE, stringindex : u32, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); HidD_GetIndexedString(core::mem::transmute(hiddeviceobject), core::mem::transmute(stringindex), core::mem::transmute(buffer), core::mem::transmute(bufferlength)) } #[inline] -pub unsafe fn HidD_GetInputReport(hiddeviceobject: super::super::Foundation::HANDLE, reportbuffer: *mut core::ffi::c_void, reportbufferlength: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_GetInputReport(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *mut core::ffi::c_void, reportbufferlength : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_GetInputReport(hiddeviceobject: super::super::Foundation::HANDLE, reportbuffer: *mut core::ffi::c_void, reportbufferlength: u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_GetInputReport(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *mut core::ffi::c_void, reportbufferlength : u32) -> bool); HidD_GetInputReport(core::mem::transmute(hiddeviceobject), core::mem::transmute(reportbuffer), core::mem::transmute(reportbufferlength)) } #[inline] -pub unsafe fn HidD_GetManufacturerString(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_GetManufacturerString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_GetManufacturerString(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_GetManufacturerString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); HidD_GetManufacturerString(core::mem::transmute(hiddeviceobject), core::mem::transmute(buffer), core::mem::transmute(bufferlength)) } #[inline] -pub unsafe fn HidD_GetMsGenreDescriptor(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_GetMsGenreDescriptor(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_GetMsGenreDescriptor(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_GetMsGenreDescriptor(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); HidD_GetMsGenreDescriptor(core::mem::transmute(hiddeviceobject), core::mem::transmute(buffer), core::mem::transmute(bufferlength)) } #[inline] -pub unsafe fn HidD_GetNumInputBuffers(hiddeviceobject: super::super::Foundation::HANDLE, numberbuffers: *mut u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_GetNumInputBuffers(hiddeviceobject : super::super::Foundation:: HANDLE, numberbuffers : *mut u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_GetNumInputBuffers(hiddeviceobject: super::super::Foundation::HANDLE, numberbuffers: *mut u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_GetNumInputBuffers(hiddeviceobject : super::super::Foundation:: HANDLE, numberbuffers : *mut u32) -> bool); HidD_GetNumInputBuffers(core::mem::transmute(hiddeviceobject), core::mem::transmute(numberbuffers)) } #[inline] -pub unsafe fn HidD_GetPhysicalDescriptor(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_GetPhysicalDescriptor(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_GetPhysicalDescriptor(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_GetPhysicalDescriptor(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); HidD_GetPhysicalDescriptor(core::mem::transmute(hiddeviceobject), core::mem::transmute(buffer), core::mem::transmute(bufferlength)) } #[inline] -pub unsafe fn HidD_GetPreparsedData(hiddeviceobject: super::super::Foundation::HANDLE, preparseddata: *mut PHIDP_PREPARSED_DATA) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_GetPreparsedData(hiddeviceobject : super::super::Foundation:: HANDLE, preparseddata : *mut PHIDP_PREPARSED_DATA) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_GetPreparsedData(hiddeviceobject: super::super::Foundation::HANDLE, preparseddata: *mut PHIDP_PREPARSED_DATA) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_GetPreparsedData(hiddeviceobject : super::super::Foundation:: HANDLE, preparseddata : *mut PHIDP_PREPARSED_DATA) -> bool); HidD_GetPreparsedData(core::mem::transmute(hiddeviceobject), core::mem::transmute(preparseddata)) } #[inline] -pub unsafe fn HidD_GetProductString(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_GetProductString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_GetProductString(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_GetProductString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); HidD_GetProductString(core::mem::transmute(hiddeviceobject), core::mem::transmute(buffer), core::mem::transmute(bufferlength)) } #[inline] -pub unsafe fn HidD_GetSerialNumberString(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_GetSerialNumberString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_GetSerialNumberString(hiddeviceobject: super::super::Foundation::HANDLE, buffer: *mut core::ffi::c_void, bufferlength: u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_GetSerialNumberString(hiddeviceobject : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bufferlength : u32) -> bool); HidD_GetSerialNumberString(core::mem::transmute(hiddeviceobject), core::mem::transmute(buffer), core::mem::transmute(bufferlength)) } #[inline] -pub unsafe fn HidD_SetConfiguration(hiddeviceobject: super::super::Foundation::HANDLE, configuration: *const HIDD_CONFIGURATION, configurationlength: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_SetConfiguration(hiddeviceobject : super::super::Foundation:: HANDLE, configuration : *const HIDD_CONFIGURATION, configurationlength : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_SetConfiguration(hiddeviceobject: super::super::Foundation::HANDLE, configuration: *const HIDD_CONFIGURATION, configurationlength: u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_SetConfiguration(hiddeviceobject : super::super::Foundation:: HANDLE, configuration : *const HIDD_CONFIGURATION, configurationlength : u32) -> bool); HidD_SetConfiguration(core::mem::transmute(hiddeviceobject), core::mem::transmute(configuration), core::mem::transmute(configurationlength)) } #[inline] -pub unsafe fn HidD_SetFeature(hiddeviceobject: super::super::Foundation::HANDLE, reportbuffer: *const core::ffi::c_void, reportbufferlength: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_SetFeature(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *const core::ffi::c_void, reportbufferlength : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_SetFeature(hiddeviceobject: super::super::Foundation::HANDLE, reportbuffer: *const core::ffi::c_void, reportbufferlength: u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_SetFeature(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *const core::ffi::c_void, reportbufferlength : u32) -> bool); HidD_SetFeature(core::mem::transmute(hiddeviceobject), core::mem::transmute(reportbuffer), core::mem::transmute(reportbufferlength)) } #[inline] -pub unsafe fn HidD_SetNumInputBuffers(hiddeviceobject: super::super::Foundation::HANDLE, numberbuffers: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_SetNumInputBuffers(hiddeviceobject : super::super::Foundation:: HANDLE, numberbuffers : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_SetNumInputBuffers(hiddeviceobject: super::super::Foundation::HANDLE, numberbuffers: u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_SetNumInputBuffers(hiddeviceobject : super::super::Foundation:: HANDLE, numberbuffers : u32) -> bool); HidD_SetNumInputBuffers(core::mem::transmute(hiddeviceobject), core::mem::transmute(numberbuffers)) } #[inline] -pub unsafe fn HidD_SetOutputReport(hiddeviceobject: super::super::Foundation::HANDLE, reportbuffer: *const core::ffi::c_void, reportbufferlength: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("hid.dll" "system" fn HidD_SetOutputReport(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *const core::ffi::c_void, reportbufferlength : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn HidD_SetOutputReport(hiddeviceobject: super::super::Foundation::HANDLE, reportbuffer: *const core::ffi::c_void, reportbufferlength: u32) -> bool { + windows_targets::link!("hid.dll" "system" fn HidD_SetOutputReport(hiddeviceobject : super::super::Foundation:: HANDLE, reportbuffer : *const core::ffi::c_void, reportbufferlength : u32) -> bool); HidD_SetOutputReport(core::mem::transmute(hiddeviceobject), core::mem::transmute(reportbuffer), core::mem::transmute(reportbufferlength)) } #[inline] @@ -3025,7 +3025,7 @@ impl Default for HIDD_CONFIGURATION { #[derive(Clone, Copy, Debug, PartialEq)] pub struct HIDP_BUTTON_ARRAY_DATA { pub ArrayIndex: u16, - pub On: super::super::Foundation::BOOLEAN, + pub On: bool, } impl Default for HIDP_BUTTON_ARRAY_DATA { fn default() -> Self { @@ -3037,15 +3037,15 @@ impl Default for HIDP_BUTTON_ARRAY_DATA { pub struct HIDP_BUTTON_CAPS { pub UsagePage: u16, pub ReportID: u8, - pub IsAlias: super::super::Foundation::BOOLEAN, + pub IsAlias: bool, pub BitField: u16, pub LinkCollection: u16, pub LinkUsage: u16, pub LinkUsagePage: u16, - pub IsRange: super::super::Foundation::BOOLEAN, - pub IsStringRange: super::super::Foundation::BOOLEAN, - pub IsDesignatorRange: super::super::Foundation::BOOLEAN, - pub IsAbsolute: super::super::Foundation::BOOLEAN, + pub IsRange: bool, + pub IsStringRange: bool, + pub IsDesignatorRange: bool, + pub IsAbsolute: bool, pub ReportCount: u16, pub Reserved2: u16, pub Reserved: [u32; 9], @@ -3142,7 +3142,7 @@ impl Default for HIDP_DATA { #[derive(Clone, Copy)] pub union HIDP_DATA_0 { pub RawValue: u32, - pub On: super::super::Foundation::BOOLEAN, + pub On: bool, } impl Default for HIDP_DATA_0 { fn default() -> Self { @@ -3254,16 +3254,16 @@ impl Default for HIDP_UNKNOWN_TOKEN { pub struct HIDP_VALUE_CAPS { pub UsagePage: u16, pub ReportID: u8, - pub IsAlias: super::super::Foundation::BOOLEAN, + pub IsAlias: bool, pub BitField: u16, pub LinkCollection: u16, pub LinkUsage: u16, pub LinkUsagePage: u16, - pub IsRange: super::super::Foundation::BOOLEAN, - pub IsStringRange: super::super::Foundation::BOOLEAN, - pub IsDesignatorRange: super::super::Foundation::BOOLEAN, - pub IsAbsolute: super::super::Foundation::BOOLEAN, - pub HasNull: super::super::Foundation::BOOLEAN, + pub IsRange: bool, + pub IsStringRange: bool, + pub IsDesignatorRange: bool, + pub IsAbsolute: bool, + pub HasNull: bool, pub Reserved: u8, pub BitSize: u16, pub ReportCount: u16, @@ -3330,7 +3330,7 @@ impl Default for HIDP_VALUE_CAPS_0_0 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct HID_COLLECTION_INFORMATION { pub DescriptorSize: u32, - pub Polled: super::super::Foundation::BOOLEAN, + pub Polled: bool, pub Reserved1: [u8; 1], pub VendorID: u16, pub ProductID: u16, @@ -6518,7 +6518,7 @@ impl Default for INDICATOR_LIST { #[derive(Clone, Copy, Debug, PartialEq)] pub struct INPUT_BUTTON_ENABLE_INFO { pub ButtonType: GPIOBUTTONS_BUTTON_TYPE, - pub Enabled: super::super::Foundation::BOOLEAN, + pub Enabled: bool, } impl Default for INPUT_BUTTON_ENABLE_INFO { fn default() -> Self { @@ -6949,7 +6949,7 @@ impl Default for MOUSE_UNIT_ID_PARAMETER { } pub const MOUSE_WHEEL: u32 = 1024u32; pub type PFN_HidP_GetVersionInternal = Option super::super::Foundation::NTSTATUS>; -pub type PHIDP_INSERT_SCANCODES = Option super::super::Foundation::BOOLEAN>; +pub type PHIDP_INSERT_SCANCODES = Option bool>; #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Default)] pub struct PHIDP_PREPARSED_DATA(pub isize); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Nfc/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Nfc/mod.rs index e8028ba005..cc873abbe4 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Nfc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Nfc/mod.rs @@ -99,7 +99,7 @@ pub const NFCRMDDI_IOCTL_BASE: u32 = 80u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct NFCRM_RADIO_STATE { - pub MediaRadioOn: super::super::Foundation::BOOLEAN, + pub MediaRadioOn: bool, } impl Default for NFCRM_RADIO_STATE { fn default() -> Self { @@ -109,8 +109,8 @@ impl Default for NFCRM_RADIO_STATE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct NFCRM_SET_RADIO_STATE { - pub SystemStateUpdate: super::super::Foundation::BOOLEAN, - pub MediaRadioOn: super::super::Foundation::BOOLEAN, + pub SystemStateUpdate: bool, + pub MediaRadioOn: bool, } impl Default for NFCRM_SET_RADIO_STATE { fn default() -> Self { @@ -138,7 +138,7 @@ pub struct NFC_LLCP_CONFIG { pub uWKS: u16, pub bLTO: u8, pub bOptions: u8, - pub fAutoActivate: super::super::Foundation::BOOLEAN, + pub fAutoActivate: bool, } impl Default for NFC_LLCP_CONFIG { fn default() -> Self { @@ -298,8 +298,8 @@ pub struct NFC_LLCP_SOCKET_TYPE(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct NFC_NDEF_INFO { - pub fIsNdefFormatted: super::super::Foundation::BOOLEAN, - pub fIsReadOnly: super::super::Foundation::BOOLEAN, + pub fIsNdefFormatted: bool, + pub fIsReadOnly: bool, pub dwActualMessageLength: u32, pub dwMaxMessageLength: u32, } @@ -380,9 +380,9 @@ impl Default for NFC_REMOTE_DEV_SEND_INFO { pub struct NFC_RF_DISCOVERY_CONFIG { pub usTotalDuration: u16, pub ulPollConfig: u32, - pub fDisableCardEmulation: super::super::Foundation::BOOLEAN, + pub fDisableCardEmulation: bool, pub ucNfcIPMode: u8, - pub fNfcIPTgtModeDisable: super::super::Foundation::BOOLEAN, + pub fNfcIPTgtModeDisable: bool, pub ucNfcIPTgtMode: u8, pub ucNfcCEMode: u8, pub ucBailoutConfig: u8, @@ -726,9 +726,9 @@ impl Default for SECURE_ELEMENT_HCE_DATA_PACKET { #[derive(Clone, Copy, Debug, PartialEq)] pub struct SECURE_ELEMENT_NFCC_CAPABILITIES { pub cbMaxRoutingTableSize: u16, - pub IsAidRoutingSupported: super::super::Foundation::BOOLEAN, - pub IsProtocolRoutingSupported: super::super::Foundation::BOOLEAN, - pub IsTechRoutingSupported: super::super::Foundation::BOOLEAN, + pub IsAidRoutingSupported: bool, + pub IsProtocolRoutingSupported: bool, + pub IsTechRoutingSupported: bool, } impl Default for SECURE_ELEMENT_NFCC_CAPABILITIES { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Pwm/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Pwm/mod.rs index 83d7f57e6f..a69066fa5f 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Pwm/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Pwm/mod.rs @@ -88,7 +88,7 @@ impl Default for PWM_PIN_GET_POLARITY_OUTPUT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PWM_PIN_IS_STARTED_OUTPUT { - pub IsStarted: super::super::Foundation::BOOLEAN, + pub IsStarted: bool, } impl Default for PWM_PIN_IS_STARTED_OUTPUT { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs index 3dc52d0039..782ab23f60 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs @@ -65,8 +65,8 @@ pub unsafe fn CollectionsListUpdateMarshalledPointer(collection: *mut SENSOR_COL } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] -pub unsafe fn EvaluateActivityThresholds(newsample: *const SENSOR_COLLECTION_LIST, oldsample: *const SENSOR_COLLECTION_LIST, thresholds: *const SENSOR_COLLECTION_LIST) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("sensorsutilsv2.dll" "system" fn EvaluateActivityThresholds(newsample : *const SENSOR_COLLECTION_LIST, oldsample : *const SENSOR_COLLECTION_LIST, thresholds : *const SENSOR_COLLECTION_LIST) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn EvaluateActivityThresholds(newsample: *const SENSOR_COLLECTION_LIST, oldsample: *const SENSOR_COLLECTION_LIST, thresholds: *const SENSOR_COLLECTION_LIST) -> bool { + windows_targets::link!("sensorsutilsv2.dll" "system" fn EvaluateActivityThresholds(newsample : *const SENSOR_COLLECTION_LIST, oldsample : *const SENSOR_COLLECTION_LIST, thresholds : *const SENSOR_COLLECTION_LIST) -> bool); EvaluateActivityThresholds(core::mem::transmute(newsample), core::mem::transmute(oldsample), core::mem::transmute(thresholds)) } #[inline] @@ -90,30 +90,30 @@ pub unsafe fn InitPropVariantFromFloat(fltval: f32) -> windows_core::Result super::super::Foundation::BOOLEAN { - windows_targets::link!("sensorsutilsv2.dll" "system" fn IsCollectionListSame(lista : *const SENSOR_COLLECTION_LIST, listb : *const SENSOR_COLLECTION_LIST) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn IsCollectionListSame(lista: *const SENSOR_COLLECTION_LIST, listb: *const SENSOR_COLLECTION_LIST) -> bool { + windows_targets::link!("sensorsutilsv2.dll" "system" fn IsCollectionListSame(lista : *const SENSOR_COLLECTION_LIST, listb : *const SENSOR_COLLECTION_LIST) -> bool); IsCollectionListSame(core::mem::transmute(lista), core::mem::transmute(listb)) } #[inline] -pub unsafe fn IsGUIDPresentInList(guidarray: &[windows_core::GUID], guidelem: *const windows_core::GUID) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("sensorsutilsv2.dll" "system" fn IsGUIDPresentInList(guidarray : *const windows_core::GUID, arraylength : u32, guidelem : *const windows_core::GUID) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn IsGUIDPresentInList(guidarray: &[windows_core::GUID], guidelem: *const windows_core::GUID) -> bool { + windows_targets::link!("sensorsutilsv2.dll" "system" fn IsGUIDPresentInList(guidarray : *const windows_core::GUID, arraylength : u32, guidelem : *const windows_core::GUID) -> bool); IsGUIDPresentInList(core::mem::transmute(guidarray.as_ptr()), guidarray.len().try_into().unwrap(), core::mem::transmute(guidelem)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] -pub unsafe fn IsKeyPresentInCollectionList(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("sensorsutilsv2.dll" "system" fn IsKeyPresentInCollectionList(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn IsKeyPresentInCollectionList(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY) -> bool { + windows_targets::link!("sensorsutilsv2.dll" "system" fn IsKeyPresentInCollectionList(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY) -> bool); IsKeyPresentInCollectionList(core::mem::transmute(plist), core::mem::transmute(pkey)) } #[inline] -pub unsafe fn IsKeyPresentInPropertyList(plist: *const SENSOR_PROPERTY_LIST, pkey: *const super::super::Foundation::PROPERTYKEY) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("sensorsutilsv2.dll" "system" fn IsKeyPresentInPropertyList(plist : *const SENSOR_PROPERTY_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn IsKeyPresentInPropertyList(plist: *const SENSOR_PROPERTY_LIST, pkey: *const super::super::Foundation::PROPERTYKEY) -> bool { + windows_targets::link!("sensorsutilsv2.dll" "system" fn IsKeyPresentInPropertyList(plist : *const SENSOR_PROPERTY_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY) -> bool); IsKeyPresentInPropertyList(core::mem::transmute(plist), core::mem::transmute(pkey)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] -pub unsafe fn IsSensorSubscribed(subscriptionlist: *const SENSOR_COLLECTION_LIST, currenttype: windows_core::GUID) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("sensorsutilsv2.dll" "system" fn IsSensorSubscribed(subscriptionlist : *const SENSOR_COLLECTION_LIST, currenttype : windows_core::GUID) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn IsSensorSubscribed(subscriptionlist: *const SENSOR_COLLECTION_LIST, currenttype: windows_core::GUID) -> bool { + windows_targets::link!("sensorsutilsv2.dll" "system" fn IsSensorSubscribed(subscriptionlist : *const SENSOR_COLLECTION_LIST, currenttype : windows_core::GUID) -> bool); IsSensorSubscribed(core::mem::transmute(subscriptionlist), core::mem::transmute(currenttype)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -179,8 +179,8 @@ pub unsafe fn PropKeyFindKeyGetNthUshort(plist: *const SENSOR_COLLECTION_LIST, p #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeyGetPropVariant(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, typecheck: bool, pvalue: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> super::super::Foundation::NTSTATUS { - windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetPropVariant(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, typecheck : super::super::Foundation:: BOOLEAN, pvalue : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeyGetPropVariant(core::mem::transmute(plist), core::mem::transmute(pkey), typecheck.into(), core::mem::transmute(pvalue)) + windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetPropVariant(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, typecheck : bool, pvalue : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS); + PropKeyFindKeyGetPropVariant(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(typecheck), core::mem::transmute(pvalue)) } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] @@ -197,8 +197,8 @@ pub unsafe fn PropKeyFindKeyGetUshort(plist: *const SENSOR_COLLECTION_LIST, pkey #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn PropKeyFindKeySetPropVariant(plist: *mut SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, typecheck: bool, pvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> super::super::Foundation::NTSTATUS { - windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeySetPropVariant(plist : *mut SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, typecheck : super::super::Foundation:: BOOLEAN, pvalue : *const super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS); - PropKeyFindKeySetPropVariant(core::mem::transmute(plist), core::mem::transmute(pkey), typecheck.into(), core::mem::transmute(pvalue)) + windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeySetPropVariant(plist : *mut SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, typecheck : bool, pvalue : *const super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS); + PropKeyFindKeySetPropVariant(core::mem::transmute(plist), core::mem::transmute(pkey), core::mem::transmute(typecheck), core::mem::transmute(pvalue)) } #[cfg(all(feature = "Win32_Devices_Properties", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs index 85f18e2c63..dc92ae0e43 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs @@ -305,8 +305,8 @@ pub struct SERIAL_STATUS { pub HoldReasons: u32, pub AmountInInQueue: u32, pub AmountInOutQueue: u32, - pub EofReceived: super::super::Foundation::BOOLEAN, - pub WaitForImmediate: super::super::Foundation::BOOLEAN, + pub EofReceived: bool, + pub WaitForImmediate: bool, } impl Default for SERIAL_STATUS { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs index 3544d014d0..540443c12b 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs @@ -915,8 +915,8 @@ impl Default for USBD_VERSION_INFORMATION { #[derive(Clone, Copy, Debug, PartialEq)] pub struct USBFN_BUS_CONFIGURATION_INFO { pub ConfigurationName: [u16; 40], - pub IsCurrent: super::super::Foundation::BOOLEAN, - pub IsActive: super::super::Foundation::BOOLEAN, + pub IsCurrent: bool, + pub IsActive: bool, } impl Default for USBFN_BUS_CONFIGURATION_INFO { fn default() -> Self { @@ -933,7 +933,7 @@ pub struct USBFN_CLASS_INFORMATION_PACKET { pub HighSpeedClassInterface: USBFN_CLASS_INTERFACE, pub InterfaceName: [u16; 40], pub InterfaceGuid: [u16; 39], - pub HasInterfaceGuid: super::super::Foundation::BOOLEAN, + pub HasInterfaceGuid: bool, pub SuperSpeedClassInterface: USBFN_CLASS_INTERFACE, } impl Default for USBFN_CLASS_INFORMATION_PACKET { @@ -949,7 +949,7 @@ pub struct USBFN_CLASS_INFORMATION_PACKET_EX { pub SuperSpeedClassInterfaceEx: USBFN_CLASS_INTERFACE_EX, pub InterfaceName: [u16; 40], pub InterfaceGuid: [u16; 39], - pub HasInterfaceGuid: super::super::Foundation::BOOLEAN, + pub HasInterfaceGuid: bool, } impl Default for USBFN_CLASS_INFORMATION_PACKET_EX { fn default() -> Self { @@ -1503,7 +1503,7 @@ pub struct USB_BUS_STATISTICS_0 { pub WorkerSignalCount: u32, pub CommonBufferBytes: u32, pub WorkerIdleTimeMs: u32, - pub RootHubEnabled: super::super::Foundation::BOOLEAN, + pub RootHubEnabled: bool, pub RootHubDevicePowerState: u8, pub Unused: u8, pub NameIndex: u8, @@ -1571,7 +1571,7 @@ pub struct USB_COMPOSITE_FUNCTION_INFO { pub FunctionNumber: u8, pub BaseInterfaceNumber: u8, pub NumberOfInterfaces: u8, - pub FunctionIsIdle: super::super::Foundation::BOOLEAN, + pub FunctionIsIdle: bool, } impl Default for USB_COMPOSITE_FUNCTION_INFO { fn default() -> Self { @@ -2363,8 +2363,8 @@ pub struct USB_DRIVER_VERSION_PARAMETERS { pub DriverTrackingCode: u32, pub USBDI_Version: u32, pub USBUSER_Version: u32, - pub CheckedPortDriver: super::super::Foundation::BOOLEAN, - pub CheckedMiniportDriver: super::super::Foundation::BOOLEAN, + pub CheckedPortDriver: bool, + pub CheckedMiniportDriver: bool, pub USB_Version: u16, } impl Default for USB_DRIVER_VERSION_PARAMETERS { @@ -2668,8 +2668,8 @@ pub struct USB_HUB_DEVICE_INFO { pub HubDescriptor: USB_HUB_DESCRIPTOR, pub HubNumber: u32, pub DeviceAddress: u16, - pub HubIsSelfPowered: super::super::Foundation::BOOLEAN, - pub HubIsRootHub: super::super::Foundation::BOOLEAN, + pub HubIsSelfPowered: bool, + pub HubIsRootHub: bool, pub HubCapabilities: USB_HUB_CAPABILITIES, pub NumberOfHubPorts: u32, pub PortInfo: [USB_HUB_PORT_INFORMATION; 1], @@ -2699,7 +2699,7 @@ impl Default for USB_HUB_DEVICE_UXD_SETTINGS { #[derive(Clone, Copy)] pub struct USB_HUB_INFORMATION { pub HubDescriptor: USB_HUB_DESCRIPTOR, - pub HubIsBusPowered: super::super::Foundation::BOOLEAN, + pub HubIsBusPowered: bool, } impl Default for USB_HUB_INFORMATION { fn default() -> Self { @@ -2951,8 +2951,8 @@ pub struct USB_NODE_CONNECTION_INFORMATION { pub ConnectionIndex: u32, pub DeviceDescriptor: USB_DEVICE_DESCRIPTOR, pub CurrentConfigurationValue: u8, - pub LowSpeed: super::super::Foundation::BOOLEAN, - pub DeviceIsHub: super::super::Foundation::BOOLEAN, + pub LowSpeed: bool, + pub DeviceIsHub: bool, pub DeviceAddress: u16, pub NumberOfOpenPipes: u32, pub ConnectionStatus: USB_CONNECTION_STATUS, @@ -2970,7 +2970,7 @@ pub struct USB_NODE_CONNECTION_INFORMATION_EX { pub DeviceDescriptor: USB_DEVICE_DESCRIPTOR, pub CurrentConfigurationValue: u8, pub Speed: u8, - pub DeviceIsHub: super::super::Foundation::BOOLEAN, + pub DeviceIsHub: bool, pub DeviceAddress: u16, pub NumberOfOpenPipes: u32, pub ConnectionStatus: USB_CONNECTION_STATUS, @@ -3259,8 +3259,8 @@ pub struct USB_POWER_INFO { pub RhDeviceWake: WDMUSB_POWER_STATE, pub RhSystemWake: WDMUSB_POWER_STATE, pub LastSystemSleepState: WDMUSB_POWER_STATE, - pub CanWakeup: super::super::Foundation::BOOLEAN, - pub IsPowered: super::super::Foundation::BOOLEAN, + pub CanWakeup: bool, + pub IsPowered: bool, } impl Default for USB_POWER_INFO { fn default() -> Self { @@ -3358,7 +3358,7 @@ pub const USB_START_TRACKING_FOR_TIME_SYNC: u32 = 285u32; #[derive(Clone, Copy)] pub struct USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION { pub TimeTrackingHandle: super::super::Foundation::HANDLE, - pub IsStartupDelayTolerable: super::super::Foundation::BOOLEAN, + pub IsStartupDelayTolerable: bool, } impl Default for USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs index 2715e52fed..c5bea0a41a 100644 --- a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs @@ -167,9 +167,6 @@ pub const APP_LOCAL_DEVICE_ID_SIZE: u32 = 32u32; #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Default)] pub struct BOOL(pub i32); -#[repr(transparent)] -#[derive(Clone, Copy, Debug, PartialEq, Eq, Default)] -pub struct BOOLEAN(pub u8); pub const BT_E_SPURIOUS_ACTIVATION: windows_core::HRESULT = windows_core::HRESULT(0x80080300_u32 as _); pub const CACHE_E_FIRST: i32 = -2147221136i32; pub const CACHE_E_LAST: i32 = -2147221121i32; diff --git a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs index 68df71be02..1c5758b1e2 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs @@ -12316,13 +12316,13 @@ windows_core::imp::define_interface!(IBDA_DiseqCommand, IBDA_DiseqCommand_Vtbl, windows_core::imp::interface_hierarchy!(IBDA_DiseqCommand, windows_core::IUnknown); impl IBDA_DiseqCommand { pub unsafe fn SetEnableDiseqCommands(&self, benable: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetEnableDiseqCommands)(windows_core::Interface::as_raw(self), benable.into()).ok() + (windows_core::Interface::vtable(self).SetEnableDiseqCommands)(windows_core::Interface::as_raw(self), core::mem::transmute(benable)).ok() } pub unsafe fn SetDiseqLNBSource(&self, ullnbsource: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDiseqLNBSource)(windows_core::Interface::as_raw(self), core::mem::transmute(ullnbsource)).ok() } pub unsafe fn SetDiseqUseToneBurst(&self, busetoneburst: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetDiseqUseToneBurst)(windows_core::Interface::as_raw(self), busetoneburst.into()).ok() + (windows_core::Interface::vtable(self).SetDiseqUseToneBurst)(windows_core::Interface::as_raw(self), core::mem::transmute(busetoneburst)).ok() } pub unsafe fn SetDiseqRepeats(&self, ulrepeats: u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SetDiseqRepeats)(windows_core::Interface::as_raw(self), core::mem::transmute(ulrepeats)).ok() @@ -12337,24 +12337,24 @@ impl IBDA_DiseqCommand { #[repr(C)] pub struct IBDA_DiseqCommand_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetEnableDiseqCommands: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOLEAN) -> windows_core::HRESULT, + pub SetEnableDiseqCommands: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub SetDiseqLNBSource: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub SetDiseqUseToneBurst: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOLEAN) -> windows_core::HRESULT, + pub SetDiseqUseToneBurst: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub SetDiseqRepeats: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub put_DiseqSendCommand: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const u8) -> windows_core::HRESULT, pub get_DiseqResponse: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32, *mut u8) -> windows_core::HRESULT, } pub trait IBDA_DiseqCommand_Impl: windows_core::IUnknownImpl { - fn SetEnableDiseqCommands(&self, benable: super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; + fn SetEnableDiseqCommands(&self, benable: bool) -> windows_core::Result<()>; fn SetDiseqLNBSource(&self, ullnbsource: u32) -> windows_core::Result<()>; - fn SetDiseqUseToneBurst(&self, busetoneburst: super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; + fn SetDiseqUseToneBurst(&self, busetoneburst: bool) -> windows_core::Result<()>; fn SetDiseqRepeats(&self, ulrepeats: u32) -> windows_core::Result<()>; fn put_DiseqSendCommand(&self, ulrequestid: u32, ulcbcommandlen: u32, pbcommand: *const u8) -> windows_core::Result<()>; fn get_DiseqResponse(&self, ulrequestid: u32, pulcbresponselen: *mut u32, pbresponse: *mut u8) -> windows_core::Result<()>; } impl IBDA_DiseqCommand_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetEnableDiseqCommands(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnableDiseqCommands(this: *mut core::ffi::c_void, benable: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DiseqCommand_Impl::SetEnableDiseqCommands(this, core::mem::transmute_copy(&benable)).into() } @@ -12362,7 +12362,7 @@ impl IBDA_DiseqCommand_Vtbl { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DiseqCommand_Impl::SetDiseqLNBSource(this, core::mem::transmute_copy(&ullnbsource)).into() } - unsafe extern "system" fn SetDiseqUseToneBurst(this: *mut core::ffi::c_void, busetoneburst: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { + unsafe extern "system" fn SetDiseqUseToneBurst(this: *mut core::ffi::c_void, busetoneburst: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DiseqCommand_Impl::SetDiseqUseToneBurst(this, core::mem::transmute_copy(&busetoneburst)).into() } @@ -13746,13 +13746,13 @@ impl IBDA_SignalStatistics { (windows_core::Interface::vtable(self).SignalQuality)(windows_core::Interface::as_raw(self), core::mem::transmute(plpercentquality)).ok() } pub unsafe fn SetSignalPresent(&self, fpresent: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSignalPresent)(windows_core::Interface::as_raw(self), fpresent.into()).ok() + (windows_core::Interface::vtable(self).SetSignalPresent)(windows_core::Interface::as_raw(self), core::mem::transmute(fpresent)).ok() } pub unsafe fn SignalPresent(&self, pfpresent: *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SignalPresent)(windows_core::Interface::as_raw(self), core::mem::transmute(pfpresent)).ok() } pub unsafe fn SetSignalLocked(&self, flocked: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSignalLocked)(windows_core::Interface::as_raw(self), flocked.into()).ok() + (windows_core::Interface::vtable(self).SetSignalLocked)(windows_core::Interface::as_raw(self), core::mem::transmute(flocked)).ok() } pub unsafe fn SignalLocked(&self, pflocked: *mut u8) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).SignalLocked)(windows_core::Interface::as_raw(self), core::mem::transmute(pflocked)).ok() @@ -13771,9 +13771,9 @@ pub struct IBDA_SignalStatistics_Vtbl { pub SignalStrength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetSignalQuality: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub SignalQuality: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - pub SetSignalPresent: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOLEAN) -> windows_core::HRESULT, + pub SetSignalPresent: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub SignalPresent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, - pub SetSignalLocked: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOLEAN) -> windows_core::HRESULT, + pub SetSignalLocked: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub SignalLocked: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, pub SetSampleTime: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub SampleTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, @@ -13783,9 +13783,9 @@ pub trait IBDA_SignalStatistics_Impl: windows_core::IUnknownImpl { fn SignalStrength(&self, pldbstrength: *mut i32) -> windows_core::Result<()>; fn SetSignalQuality(&self, lpercentquality: i32) -> windows_core::Result<()>; fn SignalQuality(&self, plpercentquality: *mut i32) -> windows_core::Result<()>; - fn SetSignalPresent(&self, fpresent: super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; + fn SetSignalPresent(&self, fpresent: bool) -> windows_core::Result<()>; fn SignalPresent(&self, pfpresent: *mut u8) -> windows_core::Result<()>; - fn SetSignalLocked(&self, flocked: super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; + fn SetSignalLocked(&self, flocked: bool) -> windows_core::Result<()>; fn SignalLocked(&self, pflocked: *mut u8) -> windows_core::Result<()>; fn SetSampleTime(&self, lmssampletime: i32) -> windows_core::Result<()>; fn SampleTime(&self, plmssampletime: *mut i32) -> windows_core::Result<()>; @@ -13808,7 +13808,7 @@ impl IBDA_SignalStatistics_Vtbl { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SignalQuality(this, core::mem::transmute_copy(&plpercentquality)).into() } - unsafe extern "system" fn SetSignalPresent(this: *mut core::ffi::c_void, fpresent: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { + unsafe extern "system" fn SetSignalPresent(this: *mut core::ffi::c_void, fpresent: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SetSignalPresent(this, core::mem::transmute_copy(&fpresent)).into() } @@ -13816,7 +13816,7 @@ impl IBDA_SignalStatistics_Vtbl { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SignalPresent(this, core::mem::transmute_copy(&pfpresent)).into() } - unsafe extern "system" fn SetSignalLocked(this: *mut core::ffi::c_void, flocked: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { + unsafe extern "system" fn SetSignalLocked(this: *mut core::ffi::c_void, flocked: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SetSignalLocked(this, core::mem::transmute_copy(&flocked)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs index 388c5cd516..7329ce7f1f 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs @@ -3447,7 +3447,7 @@ pub struct DHCP_SERVER_OPTIONS { pub DNSFlags: u32, pub DNSNameLength: u32, pub DNSName: *mut u8, - pub DSDomainNameRequested: super::super::Foundation::BOOLEAN, + pub DSDomainNameRequested: bool, pub DSDomainName: windows_core::PSTR, pub DSDomainNameLen: u32, pub ScopeId: *mut u32, diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs index a7e484eead..660f979cc2 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs @@ -890,14 +890,14 @@ pub unsafe fn NotifyIfTimestampConfigChange(callercontext: Option<*const core::f #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn NotifyIpInterfaceChange(family: super::super::Networking::WinSock::ADDRESS_FAMILY, callback: PIPINTERFACE_CHANGE_CALLBACK, callercontext: Option<*const core::ffi::c_void>, initialnotification: bool, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { - windows_targets::link!("iphlpapi.dll" "system" fn NotifyIpInterfaceChange(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PIPINTERFACE_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyIpInterfaceChange(core::mem::transmute(family), core::mem::transmute(callback), core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), initialnotification.into(), core::mem::transmute(notificationhandle)) + windows_targets::link!("iphlpapi.dll" "system" fn NotifyIpInterfaceChange(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PIPINTERFACE_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); + NotifyIpInterfaceChange(core::mem::transmute(family), core::mem::transmute(callback), core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(initialnotification), core::mem::transmute(notificationhandle)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn NotifyNetworkConnectivityHintChange(callback: PNETWORK_CONNECTIVITY_HINT_CHANGE_CALLBACK, callercontext: Option<*const core::ffi::c_void>, initialnotification: bool, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { - windows_targets::link!("iphlpapi.dll" "system" fn NotifyNetworkConnectivityHintChange(callback : PNETWORK_CONNECTIVITY_HINT_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyNetworkConnectivityHintChange(core::mem::transmute(callback), core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), initialnotification.into(), core::mem::transmute(notificationhandle)) + windows_targets::link!("iphlpapi.dll" "system" fn NotifyNetworkConnectivityHintChange(callback : PNETWORK_CONNECTIVITY_HINT_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); + NotifyNetworkConnectivityHintChange(core::mem::transmute(callback), core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(initialnotification), core::mem::transmute(notificationhandle)) } #[cfg(feature = "Win32_System_IO")] #[inline] @@ -908,8 +908,8 @@ pub unsafe fn NotifyRouteChange(handle: *mut super::super::Foundation::HANDLE, o #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn NotifyRouteChange2(addressfamily: super::super::Networking::WinSock::ADDRESS_FAMILY, callback: PIPFORWARD_CHANGE_CALLBACK, callercontext: *const core::ffi::c_void, initialnotification: bool, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { - windows_targets::link!("iphlpapi.dll" "system" fn NotifyRouteChange2(addressfamily : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PIPFORWARD_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyRouteChange2(core::mem::transmute(addressfamily), core::mem::transmute(callback), core::mem::transmute(callercontext), initialnotification.into(), core::mem::transmute(notificationhandle)) + windows_targets::link!("iphlpapi.dll" "system" fn NotifyRouteChange2(addressfamily : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PIPFORWARD_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); + NotifyRouteChange2(core::mem::transmute(addressfamily), core::mem::transmute(callback), core::mem::transmute(callercontext), core::mem::transmute(initialnotification), core::mem::transmute(notificationhandle)) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] @@ -919,14 +919,14 @@ pub unsafe fn NotifyStableUnicastIpAddressTable(family: super::super::Networking } #[inline] pub unsafe fn NotifyTeredoPortChange(callback: PTEREDO_PORT_CHANGE_CALLBACK, callercontext: *const core::ffi::c_void, initialnotification: bool, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { - windows_targets::link!("iphlpapi.dll" "system" fn NotifyTeredoPortChange(callback : PTEREDO_PORT_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyTeredoPortChange(core::mem::transmute(callback), core::mem::transmute(callercontext), initialnotification.into(), core::mem::transmute(notificationhandle)) + windows_targets::link!("iphlpapi.dll" "system" fn NotifyTeredoPortChange(callback : PTEREDO_PORT_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); + NotifyTeredoPortChange(core::mem::transmute(callback), core::mem::transmute(callercontext), core::mem::transmute(initialnotification), core::mem::transmute(notificationhandle)) } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] #[inline] pub unsafe fn NotifyUnicastIpAddressChange(family: super::super::Networking::WinSock::ADDRESS_FAMILY, callback: PUNICAST_IPADDRESS_CHANGE_CALLBACK, callercontext: Option<*const core::ffi::c_void>, initialnotification: bool, notificationhandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR { - windows_targets::link!("iphlpapi.dll" "system" fn NotifyUnicastIpAddressChange(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PUNICAST_IPADDRESS_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : super::super::Foundation:: BOOLEAN, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); - NotifyUnicastIpAddressChange(core::mem::transmute(family), core::mem::transmute(callback), core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), initialnotification.into(), core::mem::transmute(notificationhandle)) + windows_targets::link!("iphlpapi.dll" "system" fn NotifyUnicastIpAddressChange(family : super::super::Networking::WinSock:: ADDRESS_FAMILY, callback : PUNICAST_IPADDRESS_CHANGE_CALLBACK, callercontext : *const core::ffi::c_void, initialnotification : bool, notificationhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR); + NotifyUnicastIpAddressChange(core::mem::transmute(family), core::mem::transmute(callback), core::mem::transmute(callercontext.unwrap_or(core::mem::zeroed())), core::mem::transmute(initialnotification), core::mem::transmute(notificationhandle)) } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] @@ -1810,17 +1810,17 @@ pub const INTERFACE_HARDWARE_CROSSTIMESTAMP_VERSION_1: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct INTERFACE_HARDWARE_TIMESTAMP_CAPABILITIES { - pub PtpV2OverUdpIPv4EventMessageReceive: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv4AllMessageReceive: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv4EventMessageTransmit: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv4AllMessageTransmit: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6EventMessageReceive: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6AllMessageReceive: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6EventMessageTransmit: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6AllMessageTransmit: super::super::Foundation::BOOLEAN, - pub AllReceive: super::super::Foundation::BOOLEAN, - pub AllTransmit: super::super::Foundation::BOOLEAN, - pub TaggedTransmit: super::super::Foundation::BOOLEAN, + pub PtpV2OverUdpIPv4EventMessageReceive: bool, + pub PtpV2OverUdpIPv4AllMessageReceive: bool, + pub PtpV2OverUdpIPv4EventMessageTransmit: bool, + pub PtpV2OverUdpIPv4AllMessageTransmit: bool, + pub PtpV2OverUdpIPv6EventMessageReceive: bool, + pub PtpV2OverUdpIPv6AllMessageReceive: bool, + pub PtpV2OverUdpIPv6EventMessageTransmit: bool, + pub PtpV2OverUdpIPv6AllMessageTransmit: bool, + pub AllReceive: bool, + pub AllTransmit: bool, + pub TaggedTransmit: bool, } impl Default for INTERFACE_HARDWARE_TIMESTAMP_CAPABILITIES { fn default() -> Self { @@ -1830,9 +1830,9 @@ impl Default for INTERFACE_HARDWARE_TIMESTAMP_CAPABILITIES { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct INTERFACE_SOFTWARE_TIMESTAMP_CAPABILITIES { - pub AllReceive: super::super::Foundation::BOOLEAN, - pub AllTransmit: super::super::Foundation::BOOLEAN, - pub TaggedTransmit: super::super::Foundation::BOOLEAN, + pub AllReceive: bool, + pub AllTransmit: bool, + pub TaggedTransmit: bool, } impl Default for INTERFACE_SOFTWARE_TIMESTAMP_CAPABILITIES { fn default() -> Self { @@ -1843,7 +1843,7 @@ impl Default for INTERFACE_SOFTWARE_TIMESTAMP_CAPABILITIES { #[derive(Clone, Copy, Debug, PartialEq)] pub struct INTERFACE_TIMESTAMP_CAPABILITIES { pub HardwareClockFrequencyHz: u64, - pub SupportsCrossTimestamp: super::super::Foundation::BOOLEAN, + pub SupportsCrossTimestamp: bool, pub HardwareCapabilities: INTERFACE_HARDWARE_TIMESTAMP_CAPABILITIES, pub SoftwareCapabilities: INTERFACE_SOFTWARE_TIMESTAMP_CAPABILITIES, } @@ -3166,10 +3166,10 @@ pub struct MIB_IPFORWARD_ROW2 { pub PreferredLifetime: u32, pub Metric: u32, pub Protocol: super::super::Networking::WinSock::NL_ROUTE_PROTOCOL, - pub Loopback: super::super::Foundation::BOOLEAN, - pub AutoconfigureAddress: super::super::Foundation::BOOLEAN, - pub Publish: super::super::Foundation::BOOLEAN, - pub Immortal: super::super::Foundation::BOOLEAN, + pub Loopback: bool, + pub AutoconfigureAddress: bool, + pub Publish: bool, + pub Immortal: bool, pub Age: u32, pub Origin: super::super::Networking::WinSock::NL_ROUTE_ORIGIN, } @@ -3206,15 +3206,15 @@ pub struct MIB_IPINTERFACE_ROW { pub InterfaceIdentifier: u64, pub MinRouterAdvertisementInterval: u32, pub MaxRouterAdvertisementInterval: u32, - pub AdvertisingEnabled: super::super::Foundation::BOOLEAN, - pub ForwardingEnabled: super::super::Foundation::BOOLEAN, - pub WeakHostSend: super::super::Foundation::BOOLEAN, - pub WeakHostReceive: super::super::Foundation::BOOLEAN, - pub UseAutomaticMetric: super::super::Foundation::BOOLEAN, - pub UseNeighborUnreachabilityDetection: super::super::Foundation::BOOLEAN, - pub ManagedAddressConfigurationSupported: super::super::Foundation::BOOLEAN, - pub OtherStatefulConfigurationSupported: super::super::Foundation::BOOLEAN, - pub AdvertiseDefaultRoute: super::super::Foundation::BOOLEAN, + pub AdvertisingEnabled: bool, + pub ForwardingEnabled: bool, + pub WeakHostSend: bool, + pub WeakHostReceive: bool, + pub UseAutomaticMetric: bool, + pub UseNeighborUnreachabilityDetection: bool, + pub ManagedAddressConfigurationSupported: bool, + pub OtherStatefulConfigurationSupported: bool, + pub AdvertiseDefaultRoute: bool, pub RouterDiscoveryBehavior: super::super::Networking::WinSock::NL_ROUTER_DISCOVERY_BEHAVIOR, pub DadTransmits: u32, pub BaseReachableTime: u32, @@ -3226,14 +3226,14 @@ pub struct MIB_IPINTERFACE_ROW { pub SitePrefixLength: u32, pub Metric: u32, pub NlMtu: u32, - pub Connected: super::super::Foundation::BOOLEAN, - pub SupportsWakeUpPatterns: super::super::Foundation::BOOLEAN, - pub SupportsNeighborDiscovery: super::super::Foundation::BOOLEAN, - pub SupportsRouterDiscovery: super::super::Foundation::BOOLEAN, + pub Connected: bool, + pub SupportsWakeUpPatterns: bool, + pub SupportsNeighborDiscovery: bool, + pub SupportsRouterDiscovery: bool, pub ReachableTime: u32, pub TransmitOffload: super::super::Networking::WinSock::NL_INTERFACE_OFFLOAD_ROD, pub ReceiveOffload: super::super::Networking::WinSock::NL_INTERFACE_OFFLOAD_ROD, - pub DisableDefaultRoutes: super::super::Foundation::BOOLEAN, + pub DisableDefaultRoutes: bool, } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] impl Default for MIB_IPINTERFACE_ROW { @@ -3607,7 +3607,7 @@ pub struct MIB_IPPATH_ROW { pub RttMean: u32, pub RttDeviation: u32, pub Anonymous: MIB_IPPATH_ROW_0, - pub IsReachable: super::super::Foundation::BOOLEAN, + pub IsReachable: bool, pub LinkTransmitSpeed: u64, pub LinkReceiveSpeed: u64, } @@ -4558,7 +4558,7 @@ pub struct MIB_UNICASTIPADDRESS_ROW { pub ValidLifetime: u32, pub PreferredLifetime: u32, pub OnLinkPrefixLength: u8, - pub SkipAsSource: super::super::Foundation::BOOLEAN, + pub SkipAsSource: bool, pub DadState: super::super::Networking::WinSock::NL_DAD_STATE, pub ScopeId: super::super::Networking::WinSock::SCOPE_ID, pub CreationTimeStamp: i64, @@ -4814,8 +4814,8 @@ pub struct TCP_ESTATS_BANDWIDTH_ROD_v0 { pub InboundBandwidth: u64, pub OutboundInstability: u64, pub InboundInstability: u64, - pub OutboundBandwidthPeaked: super::super::Foundation::BOOLEAN, - pub InboundBandwidthPeaked: super::super::Foundation::BOOLEAN, + pub OutboundBandwidthPeaked: bool, + pub InboundBandwidthPeaked: bool, } impl Default for TCP_ESTATS_BANDWIDTH_ROD_v0 { fn default() -> Self { @@ -4859,7 +4859,7 @@ impl Default for TCP_ESTATS_DATA_ROD_v0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TCP_ESTATS_DATA_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } impl Default for TCP_ESTATS_DATA_RW_v0 { fn default() -> Self { @@ -4882,7 +4882,7 @@ impl Default for TCP_ESTATS_FINE_RTT_ROD_v0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TCP_ESTATS_FINE_RTT_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } impl Default for TCP_ESTATS_FINE_RTT_RW_v0 { fn default() -> Self { @@ -4905,7 +4905,7 @@ impl Default for TCP_ESTATS_OBS_REC_ROD_v0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TCP_ESTATS_OBS_REC_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } impl Default for TCP_ESTATS_OBS_REC_RW_v0 { fn default() -> Self { @@ -4964,7 +4964,7 @@ impl Default for TCP_ESTATS_PATH_ROD_v0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TCP_ESTATS_PATH_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } impl Default for TCP_ESTATS_PATH_RW_v0 { fn default() -> Self { @@ -4997,7 +4997,7 @@ impl Default for TCP_ESTATS_REC_ROD_v0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TCP_ESTATS_REC_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } impl Default for TCP_ESTATS_REC_RW_v0 { fn default() -> Self { @@ -5020,7 +5020,7 @@ impl Default for TCP_ESTATS_SEND_BUFF_ROD_v0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TCP_ESTATS_SEND_BUFF_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } impl Default for TCP_ESTATS_SEND_BUFF_RW_v0 { fn default() -> Self { @@ -5067,7 +5067,7 @@ impl Default for TCP_ESTATS_SND_CONG_ROS_v0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TCP_ESTATS_SND_CONG_RW_v0 { - pub EnableCollection: super::super::Foundation::BOOLEAN, + pub EnableCollection: bool, } impl Default for TCP_ESTATS_SND_CONG_RW_v0 { fn default() -> Self { @@ -5077,7 +5077,7 @@ impl Default for TCP_ESTATS_SND_CONG_RW_v0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TCP_ESTATS_SYN_OPTS_ROS_v0 { - pub ActiveOpen: super::super::Foundation::BOOLEAN, + pub ActiveOpen: bool, pub MssRcvd: u32, pub MssSent: u32, } diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Ndis/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Ndis/mod.rs index d604951d6f..7679512f99 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Ndis/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Ndis/mod.rs @@ -1006,8 +1006,8 @@ pub struct NDIS_INTERFACE_INFORMATION { pub MediaConnectState: NET_IF_MEDIA_CONNECT_STATE, pub MediaDuplexState: NET_IF_MEDIA_DUPLEX_STATE, pub ifMtu: u32, - pub ifPromiscuousMode: super::super::Foundation::BOOLEAN, - pub ifDeviceWakeUpEnable: super::super::Foundation::BOOLEAN, + pub ifPromiscuousMode: bool, + pub ifDeviceWakeUpEnable: bool, pub XmitLinkSpeed: u64, pub RcvLinkSpeed: u64, pub ifLastChange: u64, @@ -2213,7 +2213,7 @@ pub const NDIS_TIMEOUT_DPC_REQUEST_CAPABILITIES_REVISION_1: u32 = 1u32; pub struct NDIS_TIMESTAMP_CAPABILITIES { pub Header: NDIS_OBJECT_HEADER, pub HardwareClockFrequencyHz: u64, - pub CrossTimestamp: super::super::Foundation::BOOLEAN, + pub CrossTimestamp: bool, pub Reserved1: u64, pub Reserved2: u64, pub TimestampFlags: NDIS_TIMESTAMP_CAPABILITY_FLAGS, @@ -2227,20 +2227,20 @@ pub const NDIS_TIMESTAMP_CAPABILITIES_REVISION_1: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct NDIS_TIMESTAMP_CAPABILITY_FLAGS { - pub PtpV2OverUdpIPv4EventMsgReceiveHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv4AllMsgReceiveHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv4EventMsgTransmitHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv4AllMsgTransmitHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6EventMsgReceiveHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6AllMsgReceiveHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6EventMsgTransmitHw: super::super::Foundation::BOOLEAN, - pub PtpV2OverUdpIPv6AllMsgTransmitHw: super::super::Foundation::BOOLEAN, - pub AllReceiveHw: super::super::Foundation::BOOLEAN, - pub AllTransmitHw: super::super::Foundation::BOOLEAN, - pub TaggedTransmitHw: super::super::Foundation::BOOLEAN, - pub AllReceiveSw: super::super::Foundation::BOOLEAN, - pub AllTransmitSw: super::super::Foundation::BOOLEAN, - pub TaggedTransmitSw: super::super::Foundation::BOOLEAN, + pub PtpV2OverUdpIPv4EventMsgReceiveHw: bool, + pub PtpV2OverUdpIPv4AllMsgReceiveHw: bool, + pub PtpV2OverUdpIPv4EventMsgTransmitHw: bool, + pub PtpV2OverUdpIPv4AllMsgTransmitHw: bool, + pub PtpV2OverUdpIPv6EventMsgReceiveHw: bool, + pub PtpV2OverUdpIPv6AllMsgReceiveHw: bool, + pub PtpV2OverUdpIPv6EventMsgTransmitHw: bool, + pub PtpV2OverUdpIPv6AllMsgTransmitHw: bool, + pub AllReceiveHw: bool, + pub AllTransmitHw: bool, + pub TaggedTransmitHw: bool, + pub AllReceiveSw: bool, + pub AllTransmitSw: bool, + pub TaggedTransmitSw: bool, } impl Default for NDIS_TIMESTAMP_CAPABILITY_FLAGS { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs index 8b92aefa12..c6dccfa4bc 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs @@ -5652,7 +5652,7 @@ impl core::ops::Not for NET_USER_ENUM_FILTER_FLAGS { #[derive(Clone, Copy, Debug, PartialEq)] pub struct NET_VALIDATE_AUTHENTICATION_INPUT_ARG { pub InputPersistedFields: NET_VALIDATE_PERSISTED_FIELDS, - pub PasswordMatched: super::super::Foundation::BOOLEAN, + pub PasswordMatched: bool, } impl Default for NET_VALIDATE_AUTHENTICATION_INPUT_ARG { fn default() -> Self { @@ -5680,7 +5680,7 @@ pub struct NET_VALIDATE_PASSWORD_CHANGE_INPUT_ARG { pub ClearPassword: windows_core::PWSTR, pub UserAccountName: windows_core::PWSTR, pub HashedPassword: NET_VALIDATE_PASSWORD_HASH, - pub PasswordMatch: super::super::Foundation::BOOLEAN, + pub PasswordMatch: bool, } impl Default for NET_VALIDATE_PASSWORD_CHANGE_INPUT_ARG { fn default() -> Self { @@ -5708,8 +5708,8 @@ pub struct NET_VALIDATE_PASSWORD_RESET_INPUT_ARG { pub ClearPassword: windows_core::PWSTR, pub UserAccountName: windows_core::PWSTR, pub HashedPassword: NET_VALIDATE_PASSWORD_HASH, - pub PasswordMustChangeAtNextLogon: super::super::Foundation::BOOLEAN, - pub ClearLockout: super::super::Foundation::BOOLEAN, + pub PasswordMustChangeAtNextLogon: bool, + pub ClearLockout: bool, } impl Default for NET_VALIDATE_PASSWORD_RESET_INPUT_ARG { fn default() -> Self { @@ -7119,7 +7119,7 @@ impl Default for SERVER_INFO_1598 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1599 { - pub sv1598_enforcekerberosreauthentication: super::super::Foundation::BOOLEAN, + pub sv1598_enforcekerberosreauthentication: bool, } impl Default for SERVER_INFO_1599 { fn default() -> Self { @@ -7129,7 +7129,7 @@ impl Default for SERVER_INFO_1599 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1600 { - pub sv1598_disabledos: super::super::Foundation::BOOLEAN, + pub sv1598_disabledos: bool, } impl Default for SERVER_INFO_1600 { fn default() -> Self { @@ -7706,7 +7706,7 @@ pub const SHPWLEN: u32 = 8u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SMB_COMPRESSION_INFO { - pub Switch: super::super::Foundation::BOOLEAN, + pub Switch: bool, pub Reserved1: u8, pub Reserved2: u16, pub Reserved3: u32, @@ -8004,7 +8004,7 @@ pub const TRACE_USE_MSEC: u32 = 4u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct TRANSPORT_INFO { pub Type: TRANSPORT_TYPE, - pub SkipCertificateCheck: super::super::Foundation::BOOLEAN, + pub SkipCertificateCheck: bool, } impl Default for TRANSPORT_INFO { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs index fef417f16e..896aad0368 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs @@ -154,8 +154,8 @@ where } #[inline] pub unsafe fn TcQueryInterface(ifchandle: super::super::Foundation::HANDLE, pguidparam: *const windows_core::GUID, notifychange: bool, pbuffersize: *mut u32, buffer: *mut core::ffi::c_void) -> u32 { - windows_targets::link!("traffic.dll" "system" fn TcQueryInterface(ifchandle : super::super::Foundation:: HANDLE, pguidparam : *const windows_core::GUID, notifychange : super::super::Foundation:: BOOLEAN, pbuffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); - TcQueryInterface(core::mem::transmute(ifchandle), core::mem::transmute(pguidparam), notifychange.into(), core::mem::transmute(pbuffersize), core::mem::transmute(buffer)) + windows_targets::link!("traffic.dll" "system" fn TcQueryInterface(ifchandle : super::super::Foundation:: HANDLE, pguidparam : *const windows_core::GUID, notifychange : bool, pbuffersize : *mut u32, buffer : *mut core::ffi::c_void) -> u32); + TcQueryInterface(core::mem::transmute(ifchandle), core::mem::transmute(pguidparam), core::mem::transmute(notifychange), core::mem::transmute(pbuffersize), core::mem::transmute(buffer)) } #[inline] pub unsafe fn TcRegisterClient(tciversion: u32, clregctx: super::super::Foundation::HANDLE, clienthandlerlist: *const TCI_CLIENT_FUNC_LIST, pclienthandle: *mut super::super::Foundation::HANDLE) -> u32 { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs index 5bdeb47264..4c996fd083 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs @@ -866,8 +866,8 @@ pub struct DOT11_ASSOCIATION_COMPLETION_PARAMETERS { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub MacAddr: [u8; 6], pub uStatus: u32, - pub bReAssocReq: super::super::Foundation::BOOLEAN, - pub bReAssocResp: super::super::Foundation::BOOLEAN, + pub bReAssocReq: bool, + pub bReAssocResp: bool, pub uAssocReqOffset: u32, pub uAssocReqSize: u32, pub uAssocRespOffset: u32, @@ -881,8 +881,8 @@ pub struct DOT11_ASSOCIATION_COMPLETION_PARAMETERS { pub MulticastCipher: DOT11_CIPHER_ALGORITHM, pub uActivePhyListOffset: u32, pub uActivePhyListSize: u32, - pub bFourAddressSupported: super::super::Foundation::BOOLEAN, - pub bPortAuthorized: super::super::Foundation::BOOLEAN, + pub bFourAddressSupported: bool, + pub bPortAuthorized: bool, pub ucActiveQoSProtocol: u8, pub DSInfo: DOT11_DS_INFO, pub uEncapTableOffset: u32, @@ -1125,7 +1125,7 @@ pub struct DOT11_BSS_ENTRY { pub dot11BSSType: DOT11_BSS_TYPE, pub lRSSI: i32, pub uLinkQuality: u32, - pub bInRegDomain: super::super::Foundation::BOOLEAN, + pub bInRegDomain: bool, pub usBeaconPeriod: u16, pub ullTimestamp: u64, pub ullHostTimestamp: u64, @@ -1277,8 +1277,8 @@ pub struct DOT11_CIPHER_DEFAULT_KEY_VALUE { pub uKeyIndex: u32, pub AlgorithmId: DOT11_CIPHER_ALGORITHM, pub MacAddr: [u8; 6], - pub bDelete: super::super::Foundation::BOOLEAN, - pub bStatic: super::super::Foundation::BOOLEAN, + pub bDelete: bool, + pub bStatic: bool, pub usKeyLength: u16, pub ucKey: [u8; 1], } @@ -1295,8 +1295,8 @@ pub struct DOT11_CIPHER_KEY_MAPPING_KEY_VALUE { pub PeerMacAddr: [u8; 6], pub AlgorithmId: DOT11_CIPHER_ALGORITHM, pub Direction: DOT11_DIRECTION, - pub bDelete: super::super::Foundation::BOOLEAN, - pub bStatic: super::super::Foundation::BOOLEAN, + pub bDelete: bool, + pub bStatic: bool, pub usKeyLength: u16, pub ucKey: [u8; 1], } @@ -1403,10 +1403,10 @@ impl Default for DOT11_CURRENT_OPERATION_MODE { #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_CURRENT_OPTIONAL_CAPABILITY { pub uReserved: u32, - pub bDot11CFPollable: super::super::Foundation::BOOLEAN, - pub bDot11PCF: super::super::Foundation::BOOLEAN, - pub bDot11PCFMPDUTransferToPC: super::super::Foundation::BOOLEAN, - pub bStrictlyOrderedServiceClass: super::super::Foundation::BOOLEAN, + pub bDot11CFPollable: bool, + pub bDot11PCF: bool, + pub bDot11PCFMPDUTransferToPC: bool, + pub bStrictlyOrderedServiceClass: bool, } impl Default for DOT11_CURRENT_OPTIONAL_CAPABILITY { fn default() -> Self { @@ -1521,7 +1521,7 @@ pub const DOT11_DISASSOCIATION_PARAMETERS_REVISION_1: u32 = 1u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_DIVERSITY_SELECTION_RX { pub uAntennaListIndex: u32, - pub bDiversitySelectionRX: super::super::Foundation::BOOLEAN, + pub bDiversitySelectionRX: bool, } impl Default for DOT11_DIVERSITY_SELECTION_RX { fn default() -> Self { @@ -1579,9 +1579,9 @@ pub const DOT11_ENCAP_RFC_1042: u32 = 1u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_ERP_PHY_ATTRIBUTES { pub HRDSSSAttributes: DOT11_HRDSSS_PHY_ATTRIBUTES, - pub bERPPBCCOptionImplemented: super::super::Foundation::BOOLEAN, - pub bDSSSOFDMOptionImplemented: super::super::Foundation::BOOLEAN, - pub bShortSlotTimeOptionImplemented: super::super::Foundation::BOOLEAN, + pub bERPPBCCOptionImplemented: bool, + pub bDSSSOFDMOptionImplemented: bool, + pub bShortSlotTimeOptionImplemented: bool, } impl Default for DOT11_ERP_PHY_ATTRIBUTES { fn default() -> Self { @@ -1605,7 +1605,7 @@ pub struct DOT11_EXTAP_ATTRIBUTES { pub uAssociationTableSize: u32, pub uDefaultKeyTableSize: u32, pub uWEPKeyValueMaxLength: u32, - pub bStrictlyOrderedServiceClassImplemented: super::super::Foundation::BOOLEAN, + pub bStrictlyOrderedServiceClassImplemented: bool, pub uNumSupportedCountryOrRegionStrings: u32, pub pSupportedCountryOrRegionStrings: *mut u8, pub uInfraNumSupportedUcastAlgoPairs: u32, @@ -1637,9 +1637,9 @@ pub struct DOT11_EXTSTA_ATTRIBUTES { pub uWEPKeyValueMaxLength: u32, pub uPMKIDCacheSize: u32, pub uMaxNumPerSTADefaultKeyTables: u32, - pub bStrictlyOrderedServiceClassImplemented: super::super::Foundation::BOOLEAN, + pub bStrictlyOrderedServiceClassImplemented: bool, pub ucSupportedQoSProtocolFlags: u8, - pub bSafeModeImplemented: super::super::Foundation::BOOLEAN, + pub bSafeModeImplemented: bool, pub uNumSupportedCountryOrRegionStrings: u32, pub pSupportedCountryOrRegionStrings: *mut u8, pub uInfraNumSupportedUcastAlgoPairs: u32, @@ -1650,16 +1650,16 @@ pub struct DOT11_EXTSTA_ATTRIBUTES { pub pAdhocSupportedUcastAlgoPairs: *mut DOT11_AUTH_CIPHER_PAIR, pub uAdhocNumSupportedMcastAlgoPairs: u32, pub pAdhocSupportedMcastAlgoPairs: *mut DOT11_AUTH_CIPHER_PAIR, - pub bAutoPowerSaveMode: super::super::Foundation::BOOLEAN, + pub bAutoPowerSaveMode: bool, pub uMaxNetworkOffloadListSize: u32, - pub bMFPCapable: super::super::Foundation::BOOLEAN, + pub bMFPCapable: bool, pub uInfraNumSupportedMcastMgmtAlgoPairs: u32, pub pInfraSupportedMcastMgmtAlgoPairs: *mut DOT11_AUTH_CIPHER_PAIR, - pub bNeighborReportSupported: super::super::Foundation::BOOLEAN, - pub bAPChannelReportSupported: super::super::Foundation::BOOLEAN, - pub bActionFramesSupported: super::super::Foundation::BOOLEAN, - pub bANQPQueryOffloadSupported: super::super::Foundation::BOOLEAN, - pub bHESSIDConnectionSupported: super::super::Foundation::BOOLEAN, + pub bNeighborReportSupported: bool, + pub bAPChannelReportSupported: bool, + pub bActionFramesSupported: bool, + pub bANQPQueryOffloadSupported: bool, + pub bHESSIDConnectionSupported: bool, } #[cfg(feature = "Win32_NetworkManagement_Ndis")] impl Default for DOT11_EXTSTA_ATTRIBUTES { @@ -1843,9 +1843,9 @@ pub struct DOT11_HOP_ALGO_ADOPTED(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_HRDSSS_PHY_ATTRIBUTES { - pub bShortPreambleOptionImplemented: super::super::Foundation::BOOLEAN, - pub bPBCCOptionImplemented: super::super::Foundation::BOOLEAN, - pub bChannelAgilityPresent: super::super::Foundation::BOOLEAN, + pub bShortPreambleOptionImplemented: bool, + pub bPBCCOptionImplemented: bool, + pub bChannelAgilityPresent: bool, pub uHRCCAModeSupported: u32, } impl Default for DOT11_HRDSSS_PHY_ATTRIBUTES { @@ -1869,7 +1869,7 @@ pub const DOT11_HW_WEP_SUPPORTED_TX: u32 = 1u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_IBSS_PARAMS { pub Header: super::Ndis::NDIS_OBJECT_HEADER, - pub bJoinOnly: super::super::Foundation::BOOLEAN, + pub bJoinOnly: bool, pub uIEsOffset: u32, pub uIEsLength: u32, } @@ -1899,8 +1899,8 @@ pub struct DOT11_INCOMING_ASSOC_COMPLETION_PARAMETERS { pub PeerMacAddr: [u8; 6], pub uStatus: u32, pub ucErrorSource: u8, - pub bReAssocReq: super::super::Foundation::BOOLEAN, - pub bReAssocResp: super::super::Foundation::BOOLEAN, + pub bReAssocReq: bool, + pub bReAssocResp: bool, pub uAssocReqOffset: u32, pub uAssocReqSize: u32, pub uAssocRespOffset: u32, @@ -1926,7 +1926,7 @@ pub const DOT11_INCOMING_ASSOC_COMPLETION_PARAMETERS_REVISION_1: u32 = 1u32; pub struct DOT11_INCOMING_ASSOC_DECISION { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub PeerMacAddr: [u8; 6], - pub bAccept: super::super::Foundation::BOOLEAN, + pub bAccept: bool, pub usReasonCode: u16, pub uAssocResponseIEsOffset: u32, pub uAssocResponseIEsLength: u32, @@ -1945,7 +1945,7 @@ pub const DOT11_INCOMING_ASSOC_DECISION_REVISION_2: u32 = 2u32; pub struct DOT11_INCOMING_ASSOC_DECISION_V2 { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub PeerMacAddr: [u8; 6], - pub bAccept: super::super::Foundation::BOOLEAN, + pub bAccept: bool, pub usReasonCode: u16, pub uAssocResponseIEsOffset: u32, pub uAssocResponseIEsLength: u32, @@ -1963,7 +1963,7 @@ impl Default for DOT11_INCOMING_ASSOC_DECISION_V2 { pub struct DOT11_INCOMING_ASSOC_REQUEST_RECEIVED_PARAMETERS { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub PeerMacAddr: [u8; 6], - pub bReAssocReq: super::super::Foundation::BOOLEAN, + pub bReAssocReq: bool, pub uAssocReqOffset: u32, pub uAssocReqSize: u32, } @@ -2251,7 +2251,7 @@ impl Default for DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX { - pub bEnabled: super::super::Foundation::BOOLEAN, + pub bEnabled: bool, pub Dot11Band: DOT11_BAND, pub uChannel: u32, pub PowerLevel: i32, @@ -2264,8 +2264,8 @@ impl Default for DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_TX { - pub bEnable: super::super::Foundation::BOOLEAN, - pub bOpenLoop: super::super::Foundation::BOOLEAN, + pub bEnable: bool, + pub bOpenLoop: bool, pub Dot11Band: DOT11_BAND, pub uChannel: u32, pub uSetPowerLevel: u32, @@ -2281,7 +2281,7 @@ impl Default for DOT11_MANUFACTURING_FUNCTIONAL_TEST_TX { pub struct DOT11_MANUFACTURING_SELF_TEST_QUERY_RESULTS { pub SelfTestType: DOT11_MANUFACTURING_SELF_TEST_TYPE, pub uTestID: u32, - pub bResult: super::super::Foundation::BOOLEAN, + pub bResult: bool, pub uPinFailedBitMask: u32, pub pvContext: *mut core::ffi::c_void, pub uBytesWrittenOut: u32, @@ -2610,9 +2610,9 @@ pub const DOT11_OPERATION_MODE_WFD_GROUP_OWNER: u32 = 32u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_OPTIONAL_CAPABILITY { pub uReserved: u32, - pub bDot11PCF: super::super::Foundation::BOOLEAN, - pub bDot11PCFMPDUTransferToPC: super::super::Foundation::BOOLEAN, - pub bStrictlyOrderedServiceClass: super::super::Foundation::BOOLEAN, + pub bDot11PCF: bool, + pub bDot11PCFMPDUTransferToPC: bool, + pub bStrictlyOrderedServiceClass: bool, } impl Default for DOT11_OPTIONAL_CAPABILITY { fn default() -> Self { @@ -2642,7 +2642,7 @@ pub struct DOT11_PEER_INFO { pub AuthAlgo: DOT11_AUTH_ALGORITHM, pub UnicastCipherAlgo: DOT11_CIPHER_ALGORITHM, pub MulticastCipherAlgo: DOT11_CIPHER_ALGORITHM, - pub bWpsEnabled: super::super::Foundation::BOOLEAN, + pub bWpsEnabled: bool, pub usListenInterval: u16, pub ucSupportedRates: [u8; 255], pub usAssociationID: u16, @@ -2707,9 +2707,9 @@ impl Default for DOT11_PER_MSDU_COUNTERS { pub struct DOT11_PHY_ATTRIBUTES { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub PhyType: DOT11_PHY_TYPE, - pub bHardwarePhyState: super::super::Foundation::BOOLEAN, - pub bSoftwarePhyState: super::super::Foundation::BOOLEAN, - pub bCFPollable: super::super::Foundation::BOOLEAN, + pub bHardwarePhyState: bool, + pub bSoftwarePhyState: bool, + pub bCFPollable: bool, pub uMPDUMaxLength: u32, pub TempType: DOT11_TEMP_TYPE, pub DiversitySupport: DOT11_DIVERSITY_SUPPORT, @@ -2818,8 +2818,8 @@ pub const DOT11_PHY_ID_LIST_REVISION_1: u32 = 1u32; pub struct DOT11_PHY_STATE_PARAMETERS { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub uPhyId: u32, - pub bHardwarePhyState: super::super::Foundation::BOOLEAN, - pub bSoftwarePhyState: super::super::Foundation::BOOLEAN, + pub bHardwarePhyState: bool, + pub bSoftwarePhyState: bool, } #[cfg(feature = "Win32_NetworkManagement_Ndis")] impl Default for DOT11_PHY_STATE_PARAMETERS { @@ -2835,7 +2835,7 @@ pub struct DOT11_PHY_TYPE(pub i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_PHY_TYPE_INFO { pub dot11PhyType: DOT11_PHY_TYPE, - pub bUseParameters: super::super::Foundation::BOOLEAN, + pub bUseParameters: bool, pub uProbeDelay: u32, pub uMinChannelTime: u32, pub uMaxChannelTime: u32, @@ -2926,7 +2926,7 @@ impl Default for DOT11_PORT_STATE { pub struct DOT11_PORT_STATE_NOTIFICATION { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub PeerMac: [u8; 6], - pub bOpen: super::super::Foundation::BOOLEAN, + pub bOpen: bool, } #[cfg(feature = "Win32_NetworkManagement_Ndis")] impl Default for DOT11_PORT_STATE_NOTIFICATION { @@ -2940,7 +2940,7 @@ pub const DOT11_PORT_STATE_NOTIFICATION_REVISION_1: u32 = 1u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_POWER_MGMT_AUTO_MODE_ENABLED_INFO { pub Header: super::Ndis::NDIS_OBJECT_HEADER, - pub bEnabled: super::super::Foundation::BOOLEAN, + pub bEnabled: bool, } #[cfg(feature = "Win32_NetworkManagement_Ndis")] impl Default for DOT11_POWER_MGMT_AUTO_MODE_ENABLED_INFO { @@ -2956,7 +2956,7 @@ pub struct DOT11_POWER_MGMT_MODE { pub uPowerSaveLevel: u32, pub usListenInterval: u16, pub usAID: u16, - pub bReceiveDTIMs: super::super::Foundation::BOOLEAN, + pub bReceiveDTIMs: bool, } impl Default for DOT11_POWER_MGMT_MODE { fn default() -> Self { @@ -3374,7 +3374,7 @@ impl Default for DOT11_REG_DOMAIN_VALUE { pub struct DOT11_RESET_REQUEST { pub dot11ResetType: DOT11_RESET_TYPE, pub dot11MacAddress: [u8; 6], - pub bSetDefaultMIB: super::super::Foundation::BOOLEAN, + pub bSetDefaultMIB: bool, } impl Default for DOT11_RESET_REQUEST { fn default() -> Self { @@ -3433,8 +3433,8 @@ pub struct DOT11_SCAN_REQUEST { pub dot11BSSID: [u8; 6], pub dot11SSID: DOT11_SSID, pub dot11ScanType: DOT11_SCAN_TYPE, - pub bRestrictedScan: super::super::Foundation::BOOLEAN, - pub bUseRequestIE: super::super::Foundation::BOOLEAN, + pub bRestrictedScan: bool, + pub bUseRequestIE: bool, pub uRequestIDsOffset: u32, pub uNumOfRequestIDs: u32, pub uPhyTypesOffset: u32, @@ -3454,10 +3454,10 @@ pub struct DOT11_SCAN_REQUEST_V2 { pub dot11BSSType: DOT11_BSS_TYPE, pub dot11BSSID: [u8; 6], pub dot11ScanType: DOT11_SCAN_TYPE, - pub bRestrictedScan: super::super::Foundation::BOOLEAN, + pub bRestrictedScan: bool, pub udot11SSIDsOffset: u32, pub uNumOfdot11SSIDs: u32, - pub bUseRequestIE: super::super::Foundation::BOOLEAN, + pub bUseRequestIE: bool, pub uRequestIDsOffset: u32, pub uNumOfRequestIDs: u32, pub uPhyTypeInfosOffset: u32, @@ -3499,7 +3499,7 @@ pub struct DOT11_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS { pub Status: u8, pub GroupCapability: u8, pub GroupID: DOT11_WFD_GROUP_ID, - pub bUseGroupID: super::super::Foundation::BOOLEAN, + pub bUseGroupID: bool, pub uIEsOffset: u32, pub uIEsLength: u32, } @@ -3547,7 +3547,7 @@ pub struct DOT11_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS { pub IntendedInterfaceAddress: [u8; 6], pub GroupCapability: u8, pub GroupID: DOT11_WFD_GROUP_ID, - pub bUseGroupID: super::super::Foundation::BOOLEAN, + pub bUseGroupID: bool, pub uIEsOffset: u32, pub uIEsLength: u32, } @@ -3569,11 +3569,11 @@ pub struct DOT11_SEND_INVITATION_REQUEST_PARAMETERS { pub MinimumConfigTimeout: DOT11_WFD_CONFIGURATION_TIMEOUT, pub InvitationFlags: DOT11_WFD_INVITATION_FLAGS, pub GroupBSSID: [u8; 6], - pub bUseGroupBSSID: super::super::Foundation::BOOLEAN, + pub bUseGroupBSSID: bool, pub OperatingChannel: DOT11_WFD_CHANNEL, - pub bUseSpecifiedOperatingChannel: super::super::Foundation::BOOLEAN, + pub bUseSpecifiedOperatingChannel: bool, pub GroupID: DOT11_WFD_GROUP_ID, - pub bLocalGO: super::super::Foundation::BOOLEAN, + pub bLocalGO: bool, pub uIEsOffset: u32, pub uIEsLength: u32, } @@ -3596,9 +3596,9 @@ pub struct DOT11_SEND_INVITATION_RESPONSE_PARAMETERS { pub Status: u8, pub MinimumConfigTimeout: DOT11_WFD_CONFIGURATION_TIMEOUT, pub GroupBSSID: [u8; 6], - pub bUseGroupBSSID: super::super::Foundation::BOOLEAN, + pub bUseGroupBSSID: bool, pub OperatingChannel: DOT11_WFD_CHANNEL, - pub bUseSpecifiedOperatingChannel: super::super::Foundation::BOOLEAN, + pub bUseSpecifiedOperatingChannel: bool, pub uIEsOffset: u32, pub uIEsLength: u32, } @@ -3619,7 +3619,7 @@ pub struct DOT11_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS { pub uSendTimeout: u32, pub GroupCapability: u8, pub GroupID: DOT11_WFD_GROUP_ID, - pub bUseGroupID: super::super::Foundation::BOOLEAN, + pub bUseGroupID: bool, pub uIEsOffset: u32, pub uIEsLength: u32, } @@ -3770,7 +3770,7 @@ pub const DOT11_STOP_AP_REASON_IHV_START: u32 = 4278190080u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_SUPPORTED_ANTENNA { pub uAntennaListIndex: u32, - pub bSupportedAntenna: super::super::Foundation::BOOLEAN, + pub bSupportedAntenna: bool, } impl Default for DOT11_SUPPORTED_ANTENNA { fn default() -> Self { @@ -3886,7 +3886,7 @@ pub struct DOT11_TEMP_TYPE(pub i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_TKIPMIC_FAILURE_PARAMETERS { pub Header: super::Ndis::NDIS_OBJECT_HEADER, - pub bDefaultKeyFailure: super::super::Foundation::BOOLEAN, + pub bDefaultKeyFailure: bool, pub uKeyIndex: u32, pub PeerMac: [u8; 6], } @@ -3997,8 +3997,8 @@ pub struct DOT11_WEP_OFFLOAD { pub hOffload: super::super::Foundation::HANDLE, pub dot11OffloadType: DOT11_OFFLOAD_TYPE, pub dwAlgorithm: u32, - pub bRowIsOutbound: super::super::Foundation::BOOLEAN, - pub bUseDefault: super::super::Foundation::BOOLEAN, + pub bRowIsOutbound: bool, + pub bUseDefault: bool, pub uFlags: u32, pub ucMacAddress: [u8; 6], pub uNumOfRWsOnPeer: u32, @@ -4092,9 +4092,9 @@ pub struct DOT11_WFD_ATTRIBUTES { pub uNumConcurrentGORole: u32, pub uNumConcurrentClientRole: u32, pub WPSVersionsSupported: u32, - pub bServiceDiscoverySupported: super::super::Foundation::BOOLEAN, - pub bClientDiscoverabilitySupported: super::super::Foundation::BOOLEAN, - pub bInfrastructureManagementSupported: super::super::Foundation::BOOLEAN, + pub bServiceDiscoverySupported: bool, + pub bClientDiscoverabilitySupported: bool, + pub bInfrastructureManagementSupported: bool, pub uMaxSecondaryDeviceTypeListSize: u32, pub DeviceAddress: [u8; 6], pub uInterfaceAddressListCount: u32, @@ -4141,12 +4141,12 @@ pub const DOT11_WFD_DEVICE_CAPABILITY_CONCURRENT_OPERATION: u32 = 4u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_WFD_DEVICE_CAPABILITY_CONFIG { pub Header: super::Ndis::NDIS_OBJECT_HEADER, - pub bServiceDiscoveryEnabled: super::super::Foundation::BOOLEAN, - pub bClientDiscoverabilityEnabled: super::super::Foundation::BOOLEAN, - pub bConcurrentOperationSupported: super::super::Foundation::BOOLEAN, - pub bInfrastructureManagementEnabled: super::super::Foundation::BOOLEAN, - pub bDeviceLimitReached: super::super::Foundation::BOOLEAN, - pub bInvitationProcedureEnabled: super::super::Foundation::BOOLEAN, + pub bServiceDiscoveryEnabled: bool, + pub bClientDiscoverabilityEnabled: bool, + pub bConcurrentOperationSupported: bool, + pub bInfrastructureManagementEnabled: bool, + pub bDeviceLimitReached: bool, + pub bInvitationProcedureEnabled: bool, pub WPSVersionsEnabled: u32, } #[cfg(feature = "Win32_NetworkManagement_Ndis")] @@ -4276,7 +4276,7 @@ pub struct DOT11_WFD_DISCOVER_REQUEST { pub uNumDeviceFilters: u32, pub uIEsOffset: u32, pub uIEsLength: u32, - pub bForceScanLegacyNetworks: super::super::Foundation::BOOLEAN, + pub bForceScanLegacyNetworks: bool, } #[cfg(feature = "Win32_NetworkManagement_Ndis")] impl Default for DOT11_WFD_DISCOVER_REQUEST { @@ -4326,8 +4326,8 @@ pub struct DOT11_WFD_GROUP_JOIN_PARAMETERS { pub Header: super::Ndis::NDIS_OBJECT_HEADER, pub GOOperatingChannel: DOT11_WFD_CHANNEL, pub GOConfigTime: u32, - pub bInGroupFormation: super::super::Foundation::BOOLEAN, - pub bWaitForWPSReady: super::super::Foundation::BOOLEAN, + pub bInGroupFormation: bool, + pub bWaitForWPSReady: bool, } #[cfg(feature = "Win32_NetworkManagement_Ndis")] impl Default for DOT11_WFD_GROUP_JOIN_PARAMETERS { @@ -4341,11 +4341,11 @@ pub const DOT11_WFD_GROUP_JOIN_PARAMETERS_REVISION_1: u32 = 1u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG { pub Header: super::Ndis::NDIS_OBJECT_HEADER, - pub bPersistentGroupEnabled: super::super::Foundation::BOOLEAN, - pub bIntraBSSDistributionSupported: super::super::Foundation::BOOLEAN, - pub bCrossConnectionSupported: super::super::Foundation::BOOLEAN, - pub bPersistentReconnectSupported: super::super::Foundation::BOOLEAN, - pub bGroupFormationEnabled: super::super::Foundation::BOOLEAN, + pub bPersistentGroupEnabled: bool, + pub bIntraBSSDistributionSupported: bool, + pub bCrossConnectionSupported: bool, + pub bPersistentReconnectSupported: bool, + pub bGroupFormationEnabled: bool, pub uMaximumGroupLimit: u32, } #[cfg(feature = "Win32_NetworkManagement_Ndis")] @@ -4361,13 +4361,13 @@ pub const DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG_REVISION_2: u32 = 2u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG_V2 { pub Header: super::Ndis::NDIS_OBJECT_HEADER, - pub bPersistentGroupEnabled: super::super::Foundation::BOOLEAN, - pub bIntraBSSDistributionSupported: super::super::Foundation::BOOLEAN, - pub bCrossConnectionSupported: super::super::Foundation::BOOLEAN, - pub bPersistentReconnectSupported: super::super::Foundation::BOOLEAN, - pub bGroupFormationEnabled: super::super::Foundation::BOOLEAN, + pub bPersistentGroupEnabled: bool, + pub bIntraBSSDistributionSupported: bool, + pub bCrossConnectionSupported: bool, + pub bPersistentReconnectSupported: bool, + pub bGroupFormationEnabled: bool, pub uMaximumGroupLimit: u32, - pub bEapolKeyIpAddressAllocationSupported: super::super::Foundation::BOOLEAN, + pub bEapolKeyIpAddressAllocationSupported: bool, } #[cfg(feature = "Win32_NetworkManagement_Ndis")] impl Default for DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG_V2 { @@ -4844,7 +4844,7 @@ impl IDot11AdHocManager { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).CommitCreatedNetwork)(windows_core::Interface::as_raw(self), piadhoc.param().abi(), fsaveprofile.into(), fmakesavedprofileuserspecific.into()).ok() + (windows_core::Interface::vtable(self).CommitCreatedNetwork)(windows_core::Interface::as_raw(self), piadhoc.param().abi(), core::mem::transmute(fsaveprofile), core::mem::transmute(fmakesavedprofileuserspecific)).ok() } pub unsafe fn GetIEnumDot11AdHocNetworks(&self, pcontextguid: *const windows_core::GUID) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -4863,14 +4863,14 @@ impl IDot11AdHocManager { pub struct IDot11AdHocManager_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub CreateNetwork: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, i32, *mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CommitCreatedNetwork: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOLEAN, super::super::Foundation::BOOLEAN) -> windows_core::HRESULT, + pub CommitCreatedNetwork: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, bool) -> windows_core::HRESULT, pub GetIEnumDot11AdHocNetworks: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetIEnumDot11AdHocInterfaces: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetNetwork: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IDot11AdHocManager_Impl: windows_core::IUnknownImpl { fn CreateNetwork(&self, name: &windows_core::PCWSTR, password: &windows_core::PCWSTR, geographicalid: i32, pinterface: Option<&IDot11AdHocInterface>, psecurity: Option<&IDot11AdHocSecuritySettings>, pcontextguid: *const windows_core::GUID) -> windows_core::Result; - fn CommitCreatedNetwork(&self, piadhoc: Option<&IDot11AdHocNetwork>, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; + fn CommitCreatedNetwork(&self, piadhoc: Option<&IDot11AdHocNetwork>, fsaveprofile: bool, fmakesavedprofileuserspecific: bool) -> windows_core::Result<()>; fn GetIEnumDot11AdHocNetworks(&self, pcontextguid: *const windows_core::GUID) -> windows_core::Result; fn GetIEnumDot11AdHocInterfaces(&self) -> windows_core::Result; fn GetNetwork(&self, networksignature: *const windows_core::GUID) -> windows_core::Result; @@ -4887,7 +4887,7 @@ impl IDot11AdHocManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommitCreatedNetwork(this: *mut core::ffi::c_void, piadhoc: *mut core::ffi::c_void, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { + unsafe extern "system" fn CommitCreatedNetwork(this: *mut core::ffi::c_void, piadhoc: *mut core::ffi::c_void, fsaveprofile: bool, fmakesavedprofileuserspecific: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocManager_Impl::CommitCreatedNetwork(this, windows_core::from_raw_borrowed(&piadhoc), core::mem::transmute_copy(&fsaveprofile), core::mem::transmute_copy(&fmakesavedprofileuserspecific)).into() } @@ -5043,7 +5043,7 @@ impl IDot11AdHocNetwork { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), passphrase.param().abi(), core::mem::transmute(geographicalid), fsaveprofile.into(), fmakesavedprofileuserspecific.into()).ok() + (windows_core::Interface::vtable(self).Connect)(windows_core::Interface::as_raw(self), passphrase.param().abi(), core::mem::transmute(geographicalid), core::mem::transmute(fsaveprofile), core::mem::transmute(fmakesavedprofileuserspecific)).ok() } pub unsafe fn Disconnect(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)).ok() @@ -5062,7 +5062,7 @@ pub struct IDot11AdHocNetwork_Vtbl { pub GetContextGuid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub GetSignature: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub GetInterface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Connect: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, i32, super::super::Foundation::BOOLEAN, super::super::Foundation::BOOLEAN) -> windows_core::HRESULT, + pub Connect: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, i32, bool, bool) -> windows_core::HRESULT, pub Disconnect: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IDot11AdHocNetwork_Impl: windows_core::IUnknownImpl { @@ -5076,7 +5076,7 @@ pub trait IDot11AdHocNetwork_Impl: windows_core::IUnknownImpl { fn GetContextGuid(&self, pcontextguid: *mut windows_core::GUID) -> windows_core::Result<()>; fn GetSignature(&self, psignature: *mut windows_core::GUID) -> windows_core::Result<()>; fn GetInterface(&self) -> windows_core::Result; - fn Connect(&self, passphrase: &windows_core::PCWSTR, geographicalid: i32, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; + fn Connect(&self, passphrase: &windows_core::PCWSTR, geographicalid: i32, fsaveprofile: bool, fmakesavedprofileuserspecific: bool) -> windows_core::Result<()>; fn Disconnect(&self) -> windows_core::Result<()>; } impl IDot11AdHocNetwork_Vtbl { @@ -5145,7 +5145,7 @@ impl IDot11AdHocNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, passphrase: windows_core::PCWSTR, geographicalid: i32, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, passphrase: windows_core::PCWSTR, geographicalid: i32, fsaveprofile: bool, fmakesavedprofileuserspecific: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocNetwork_Impl::Connect(this, core::mem::transmute(&passphrase), core::mem::transmute_copy(&geographicalid), core::mem::transmute_copy(&fsaveprofile), core::mem::transmute_copy(&fmakesavedprofileuserspecific)).into() } @@ -5819,9 +5819,9 @@ pub const WDIAG_IHV_WLAN_ID_FLAG_SECURITY_ENABLED: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WFDSVC_CONNECTION_CAPABILITY { - pub bNew: super::super::Foundation::BOOLEAN, - pub bClient: super::super::Foundation::BOOLEAN, - pub bGO: super::super::Foundation::BOOLEAN, + pub bNew: bool, + pub bClient: bool, + pub bGO: bool, } impl Default for WFDSVC_CONNECTION_CAPABILITY { fn default() -> Self { @@ -5986,7 +5986,7 @@ pub struct WLAN_BSS_ENTRY { pub dot11BssPhyType: DOT11_PHY_TYPE, pub lRssi: i32, pub uLinkQuality: u32, - pub bInRegDomain: super::super::Foundation::BOOLEAN, + pub bInRegDomain: bool, pub usBeaconPeriod: u16, pub ullTimestamp: u64, pub ullHostTimestamp: u64, diff --git a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs index 4f4a064100..97111665ce 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs @@ -1913,7 +1913,7 @@ pub const ADS_SETTYPE_SERVER: ADS_SETTYPE_ENUM = ADS_SETTYPE_ENUM(3i32); pub struct ADS_SORTKEY { pub pszAttrType: windows_core::PWSTR, pub pszReserved: windows_core::PWSTR, - pub fReverseorder: super::super::Foundation::BOOLEAN, + pub fReverseorder: bool, } impl Default for ADS_SORTKEY { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs index 702042e380..1e2fbc6c5d 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs @@ -4791,7 +4791,7 @@ pub const CLUSTER_SET_ACCESS_TYPE_DENIED: u32 = 1u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct CLUSTER_SET_PASSWORD_STATUS { pub NodeId: u32, - pub SetAttempted: super::super::Foundation::BOOLEAN, + pub SetAttempted: bool, pub ReturnStatus: u32, } impl Default for CLUSTER_SET_PASSWORD_STATUS { @@ -5564,7 +5564,7 @@ pub struct CREATE_CLUSTER_CONFIG { pub ppszNodeNames: *const windows_core::PCWSTR, pub cIpEntries: u32, pub pIpEntries: *mut CLUSTER_IP_ENTRY, - pub fEmptyCluster: super::super::Foundation::BOOLEAN, + pub fEmptyCluster: bool, pub managementPointType: CLUSTER_MGMT_POINT_TYPE, pub managementPointResType: CLUSTER_MGMT_POINT_RESTYPE, } @@ -5585,7 +5585,7 @@ pub struct CREATE_CLUSTER_NAME_ACCOUNT { pub pszDomain: windows_core::PCWSTR, pub managementPointType: CLUSTER_MGMT_POINT_TYPE, pub managementPointResType: CLUSTER_MGMT_POINT_RESTYPE, - pub bUpgradeVCOs: super::super::Foundation::BOOLEAN, + pub bUpgradeVCOs: bool, } impl Default for CREATE_CLUSTER_NAME_ACCOUNT { fn default() -> Self { @@ -13796,9 +13796,9 @@ pub struct SR_RESOURCE_TYPE_ADD_REPLICATION_GROUP { pub LogType: u16, pub ReplicationMode: u32, pub MinimumPartnersInSync: u32, - pub EnableWriteConsistency: super::super::Foundation::BOOLEAN, - pub EnableEncryption: super::super::Foundation::BOOLEAN, - pub EnableCompression: super::super::Foundation::BOOLEAN, + pub EnableWriteConsistency: bool, + pub EnableEncryption: bool, + pub EnableCompression: bool, pub CertificateThumbprint: [u16; 260], pub VolumeNameCount: u32, pub VolumeNames: [u16; 260], @@ -13845,7 +13845,7 @@ impl Default for SR_RESOURCE_TYPE_ELIGIBLE_DISKS_RESULT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct SR_RESOURCE_TYPE_QUERY_ELIGIBLE_LOGDISKS { pub DataDiskGuid: windows_core::GUID, - pub IncludeOfflineDisks: super::super::Foundation::BOOLEAN, + pub IncludeOfflineDisks: bool, } impl Default for SR_RESOURCE_TYPE_QUERY_ELIGIBLE_LOGDISKS { fn default() -> Self { @@ -13856,7 +13856,7 @@ impl Default for SR_RESOURCE_TYPE_QUERY_ELIGIBLE_LOGDISKS { #[derive(Clone, Copy, Debug, PartialEq)] pub struct SR_RESOURCE_TYPE_QUERY_ELIGIBLE_SOURCE_DATADISKS { pub DataDiskGuid: windows_core::GUID, - pub IncludeAvailableStoargeDisks: super::super::Foundation::BOOLEAN, + pub IncludeAvailableStoargeDisks: bool, } impl Default for SR_RESOURCE_TYPE_QUERY_ELIGIBLE_SOURCE_DATADISKS { fn default() -> Self { @@ -13868,8 +13868,8 @@ impl Default for SR_RESOURCE_TYPE_QUERY_ELIGIBLE_SOURCE_DATADISKS { pub struct SR_RESOURCE_TYPE_QUERY_ELIGIBLE_TARGET_DATADISKS { pub SourceDataDiskGuid: windows_core::GUID, pub TargetReplicationGroupGuid: windows_core::GUID, - pub SkipConnectivityCheck: super::super::Foundation::BOOLEAN, - pub IncludeOfflineDisks: super::super::Foundation::BOOLEAN, + pub SkipConnectivityCheck: bool, + pub IncludeOfflineDisks: bool, } impl Default for SR_RESOURCE_TYPE_QUERY_ELIGIBLE_TARGET_DATADISKS { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs index 9e664ce1ee..46ae4a8333 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs @@ -646,7 +646,7 @@ impl Default for HTTP_KNOWN_HEADER { #[derive(Clone, Copy, Debug, PartialEq)] pub struct HTTP_LISTEN_ENDPOINT_INFO { pub Flags: HTTP_PROPERTY_FLAGS, - pub EnableSharing: super::super::Foundation::BOOLEAN, + pub EnableSharing: bool, } impl Default for HTTP_LISTEN_ENDPOINT_INFO { fn default() -> Self { @@ -1235,9 +1235,9 @@ impl Default for HTTP_SERVER_AUTHENTICATION_DIGEST_PARAMS { pub struct HTTP_SERVER_AUTHENTICATION_INFO { pub Flags: HTTP_PROPERTY_FLAGS, pub AuthSchemes: u32, - pub ReceiveMutualAuth: super::super::Foundation::BOOLEAN, - pub ReceiveContextHandle: super::super::Foundation::BOOLEAN, - pub DisableNTLMCredentialCaching: super::super::Foundation::BOOLEAN, + pub ReceiveMutualAuth: bool, + pub ReceiveContextHandle: bool, + pub DisableNTLMCredentialCaching: bool, pub ExFlags: u8, pub DigestParams: HTTP_SERVER_AUTHENTICATION_DIGEST_PARAMS, pub BasicParams: HTTP_SERVER_AUTHENTICATION_BASIC_PARAMS, @@ -1686,7 +1686,7 @@ pub struct HTTP_SSL_CLIENT_CERT_INFO { pub CertEncodedSize: u32, pub pCertEncoded: *mut u8, pub Token: super::super::Foundation::HANDLE, - pub CertDeniedByMapper: super::super::Foundation::BOOLEAN, + pub CertDeniedByMapper: bool, } impl Default for HTTP_SSL_CLIENT_CERT_INFO { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/Ldap/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/Ldap/mod.rs index ec1e4bd814..bea576aeb2 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Ldap/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Ldap/mod.rs @@ -649,13 +649,13 @@ where } #[inline] pub unsafe fn ldap_encode_sort_controlA(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyA, control: *mut LDAPControlA, criticality: bool) -> u32 { - windows_targets::link!("wldap32.dll" "cdecl" fn ldap_encode_sort_controlA(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyA, control : *mut LDAPControlA, criticality : super::super::Foundation:: BOOLEAN) -> u32); - ldap_encode_sort_controlA(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), core::mem::transmute(control), criticality.into()) + windows_targets::link!("wldap32.dll" "cdecl" fn ldap_encode_sort_controlA(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyA, control : *mut LDAPControlA, criticality : bool) -> u32); + ldap_encode_sort_controlA(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), core::mem::transmute(control), core::mem::transmute(criticality)) } #[inline] pub unsafe fn ldap_encode_sort_controlW(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyW, control: *mut LDAPControlW, criticality: bool) -> u32 { - windows_targets::link!("wldap32.dll" "cdecl" fn ldap_encode_sort_controlW(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyW, control : *mut LDAPControlW, criticality : super::super::Foundation:: BOOLEAN) -> u32); - ldap_encode_sort_controlW(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), core::mem::transmute(control), criticality.into()) + windows_targets::link!("wldap32.dll" "cdecl" fn ldap_encode_sort_controlW(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyW, control : *mut LDAPControlW, criticality : bool) -> u32); + ldap_encode_sort_controlW(core::mem::transmute(externalhandle), core::mem::transmute(sortkeys), core::mem::transmute(control), core::mem::transmute(criticality)) } #[inline] pub unsafe fn ldap_err2string(err: u32) -> windows_core::PSTR { @@ -1187,13 +1187,13 @@ where } #[inline] pub unsafe fn ldap_parse_extended_resultA(connection: *mut LDAP, resultmessage: *mut LDAPMessage, resultoid: Option<*mut windows_core::PSTR>, resultdata: *mut *mut LDAP_BERVAL, freeit: bool) -> u32 { - windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_extended_resultA(connection : *mut LDAP, resultmessage : *mut LDAPMessage, resultoid : *mut windows_core::PSTR, resultdata : *mut *mut LDAP_BERVAL, freeit : super::super::Foundation:: BOOLEAN) -> u32); - ldap_parse_extended_resultA(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(resultoid.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultdata), freeit.into()) + windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_extended_resultA(connection : *mut LDAP, resultmessage : *mut LDAPMessage, resultoid : *mut windows_core::PSTR, resultdata : *mut *mut LDAP_BERVAL, freeit : bool) -> u32); + ldap_parse_extended_resultA(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(resultoid.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultdata), core::mem::transmute(freeit)) } #[inline] pub unsafe fn ldap_parse_extended_resultW(connection: *mut LDAP, resultmessage: *mut LDAPMessage, resultoid: Option<*mut windows_core::PWSTR>, resultdata: *mut *mut LDAP_BERVAL, freeit: bool) -> u32 { - windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_extended_resultW(connection : *mut LDAP, resultmessage : *mut LDAPMessage, resultoid : *mut windows_core::PWSTR, resultdata : *mut *mut LDAP_BERVAL, freeit : super::super::Foundation:: BOOLEAN) -> u32); - ldap_parse_extended_resultW(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(resultoid.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultdata), freeit.into()) + windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_extended_resultW(connection : *mut LDAP, resultmessage : *mut LDAPMessage, resultoid : *mut windows_core::PWSTR, resultdata : *mut *mut LDAP_BERVAL, freeit : bool) -> u32); + ldap_parse_extended_resultW(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(resultoid.unwrap_or(core::mem::zeroed())), core::mem::transmute(resultdata), core::mem::transmute(freeit)) } #[inline] pub unsafe fn ldap_parse_page_control(externalhandle: *mut LDAP, servercontrols: *mut *mut LDAPControlA, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32 { @@ -1227,18 +1227,18 @@ pub unsafe fn ldap_parse_referenceW(connection: *mut LDAP, resultmessage: *mut L } #[inline] pub unsafe fn ldap_parse_result(connection: *mut LDAP, resultmessage: *mut LDAPMessage, returncode: *mut u32, matcheddns: Option<*mut windows_core::PSTR>, errormessage: Option<*mut windows_core::PSTR>, referrals: Option<*mut *mut windows_core::PSTR>, servercontrols: *mut *mut *mut LDAPControlA, freeit: bool) -> u32 { - windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_result(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_core::PSTR, errormessage : *mut windows_core::PSTR, referrals : *mut *mut windows_core::PSTR, servercontrols : *mut *mut *mut LDAPControlA, freeit : super::super::Foundation:: BOOLEAN) -> u32); - ldap_parse_result(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(returncode), core::mem::transmute(matcheddns.unwrap_or(core::mem::zeroed())), core::mem::transmute(errormessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(referrals.unwrap_or(core::mem::zeroed())), core::mem::transmute(servercontrols), freeit.into()) + windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_result(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_core::PSTR, errormessage : *mut windows_core::PSTR, referrals : *mut *mut windows_core::PSTR, servercontrols : *mut *mut *mut LDAPControlA, freeit : bool) -> u32); + ldap_parse_result(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(returncode), core::mem::transmute(matcheddns.unwrap_or(core::mem::zeroed())), core::mem::transmute(errormessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(referrals.unwrap_or(core::mem::zeroed())), core::mem::transmute(servercontrols), core::mem::transmute(freeit)) } #[inline] pub unsafe fn ldap_parse_resultA(connection: *mut LDAP, resultmessage: *mut LDAPMessage, returncode: *mut u32, matcheddns: Option<*mut windows_core::PSTR>, errormessage: Option<*mut windows_core::PSTR>, referrals: Option<*mut *mut *mut i8>, servercontrols: *mut *mut *mut LDAPControlA, freeit: bool) -> u32 { - windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_resultA(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_core::PSTR, errormessage : *mut windows_core::PSTR, referrals : *mut *mut *mut i8, servercontrols : *mut *mut *mut LDAPControlA, freeit : super::super::Foundation:: BOOLEAN) -> u32); - ldap_parse_resultA(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(returncode), core::mem::transmute(matcheddns.unwrap_or(core::mem::zeroed())), core::mem::transmute(errormessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(referrals.unwrap_or(core::mem::zeroed())), core::mem::transmute(servercontrols), freeit.into()) + windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_resultA(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_core::PSTR, errormessage : *mut windows_core::PSTR, referrals : *mut *mut *mut i8, servercontrols : *mut *mut *mut LDAPControlA, freeit : bool) -> u32); + ldap_parse_resultA(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(returncode), core::mem::transmute(matcheddns.unwrap_or(core::mem::zeroed())), core::mem::transmute(errormessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(referrals.unwrap_or(core::mem::zeroed())), core::mem::transmute(servercontrols), core::mem::transmute(freeit)) } #[inline] pub unsafe fn ldap_parse_resultW(connection: *mut LDAP, resultmessage: *mut LDAPMessage, returncode: *mut u32, matcheddns: Option<*mut windows_core::PWSTR>, errormessage: Option<*mut windows_core::PWSTR>, referrals: Option<*mut *mut *mut u16>, servercontrols: *mut *mut *mut LDAPControlW, freeit: bool) -> u32 { - windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_resultW(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_core::PWSTR, errormessage : *mut windows_core::PWSTR, referrals : *mut *mut *mut u16, servercontrols : *mut *mut *mut LDAPControlW, freeit : super::super::Foundation:: BOOLEAN) -> u32); - ldap_parse_resultW(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(returncode), core::mem::transmute(matcheddns.unwrap_or(core::mem::zeroed())), core::mem::transmute(errormessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(referrals.unwrap_or(core::mem::zeroed())), core::mem::transmute(servercontrols), freeit.into()) + windows_targets::link!("wldap32.dll" "cdecl" fn ldap_parse_resultW(connection : *mut LDAP, resultmessage : *mut LDAPMessage, returncode : *mut u32, matcheddns : *mut windows_core::PWSTR, errormessage : *mut windows_core::PWSTR, referrals : *mut *mut *mut u16, servercontrols : *mut *mut *mut LDAPControlW, freeit : bool) -> u32); + ldap_parse_resultW(core::mem::transmute(connection), core::mem::transmute(resultmessage), core::mem::transmute(returncode), core::mem::transmute(matcheddns.unwrap_or(core::mem::zeroed())), core::mem::transmute(errormessage.unwrap_or(core::mem::zeroed())), core::mem::transmute(referrals.unwrap_or(core::mem::zeroed())), core::mem::transmute(servercontrols), core::mem::transmute(freeit)) } #[inline] pub unsafe fn ldap_parse_sort_control(externalhandle: *mut LDAP, control: *mut *mut LDAPControlA, result: *mut u32, attribute: *mut windows_core::PSTR) -> u32 { @@ -1660,8 +1660,8 @@ pub unsafe fn ldap_startup(version: *mut LDAP_VERSION_INFO, instance: *mut super ldap_startup(core::mem::transmute(version), core::mem::transmute(instance)) } #[inline] -pub unsafe fn ldap_stop_tls_s(externalhandle: *mut LDAP) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("wldap32.dll" "cdecl" fn ldap_stop_tls_s(externalhandle : *mut LDAP) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn ldap_stop_tls_s(externalhandle: *mut LDAP) -> bool { + windows_targets::link!("wldap32.dll" "cdecl" fn ldap_stop_tls_s(externalhandle : *mut LDAP) -> bool); ldap_stop_tls_s(core::mem::transmute(externalhandle)) } #[inline] @@ -1834,7 +1834,7 @@ impl Default for LDAPAPIInfoW { pub struct LDAPControlA { pub ldctl_oid: windows_core::PSTR, pub ldctl_value: LDAP_BERVAL, - pub ldctl_iscritical: super::super::Foundation::BOOLEAN, + pub ldctl_iscritical: bool, } impl Default for LDAPControlA { fn default() -> Self { @@ -1846,7 +1846,7 @@ impl Default for LDAPControlA { pub struct LDAPControlW { pub ldctl_oid: windows_core::PWSTR, pub ldctl_value: LDAP_BERVAL, - pub ldctl_iscritical: super::super::Foundation::BOOLEAN, + pub ldctl_iscritical: bool, } impl Default for LDAPControlW { fn default() -> Self { @@ -1866,9 +1866,9 @@ pub struct LDAPMessage { pub Request: *mut core::ffi::c_void, pub lm_returncode: u32, pub lm_referral: u16, - pub lm_chased: super::super::Foundation::BOOLEAN, - pub lm_eom: super::super::Foundation::BOOLEAN, - pub ConnectionReferenced: super::super::Foundation::BOOLEAN, + pub lm_chased: bool, + pub lm_eom: bool, + pub ConnectionReferenced: bool, } impl Default for LDAPMessage { fn default() -> Self { @@ -1926,7 +1926,7 @@ impl Default for LDAPModW_0 { pub struct LDAPSortKeyA { pub sk_attrtype: windows_core::PSTR, pub sk_matchruleoid: windows_core::PSTR, - pub sk_reverseorder: super::super::Foundation::BOOLEAN, + pub sk_reverseorder: bool, } impl Default for LDAPSortKeyA { fn default() -> Self { @@ -1938,7 +1938,7 @@ impl Default for LDAPSortKeyA { pub struct LDAPSortKeyW { pub sk_attrtype: windows_core::PWSTR, pub sk_matchruleoid: windows_core::PWSTR, - pub sk_reverseorder: super::super::Foundation::BOOLEAN, + pub sk_reverseorder: bool, } impl Default for LDAPSortKeyW { fn default() -> Self { @@ -2390,14 +2390,14 @@ pub const LDAP_VERSION_MAX: u32 = 3u32; pub const LDAP_VERSION_MIN: u32 = 2u32; pub const LDAP_VIRTUAL_LIST_VIEW_ERROR: LDAP_RETCODE = LDAP_RETCODE(76i32); pub const LDAP_VLVINFO_VERSION: u32 = 1u32; -pub type NOTIFYOFNEWCONNECTION = Option super::super::Foundation::BOOLEAN>; +pub type NOTIFYOFNEWCONNECTION = Option bool>; #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Default)] pub struct PLDAPSearch(pub isize); #[cfg(all(feature = "Win32_Security_Authentication_Identity", feature = "Win32_Security_Cryptography"))] -pub type QUERYCLIENTCERT = Option super::super::Foundation::BOOLEAN>; +pub type QUERYCLIENTCERT = Option bool>; pub type QUERYFORCONNECTION = Option u32>; pub const SERVER_SEARCH_FLAG_DOMAIN_SCOPE: u32 = 1u32; pub const SERVER_SEARCH_FLAG_PHANTOM_ROOT: u32 = 2u32; #[cfg(feature = "Win32_Security_Cryptography")] -pub type VERIFYSERVERCERT = Option super::super::Foundation::BOOLEAN>; +pub type VERIFYSERVERCERT = Option bool>; diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs index 9e47956dd4..3b61ead7a6 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs @@ -242,32 +242,32 @@ pub unsafe fn RtlIpv4StringToAddressA(s: P0, strict: bool, terminator: *mut where P0: windows_core::Param, { - windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressA(s : windows_core::PCSTR, strict : super::super::Foundation:: BOOLEAN, terminator : *mut windows_core::PCSTR, addr : *mut IN_ADDR) -> i32); - RtlIpv4StringToAddressA(s.param().abi(), strict.into(), core::mem::transmute(terminator), core::mem::transmute(addr)) + windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressA(s : windows_core::PCSTR, strict : bool, terminator : *mut windows_core::PCSTR, addr : *mut IN_ADDR) -> i32); + RtlIpv4StringToAddressA(s.param().abi(), core::mem::transmute(strict), core::mem::transmute(terminator), core::mem::transmute(addr)) } #[inline] pub unsafe fn RtlIpv4StringToAddressExA(addressstring: P0, strict: bool, address: *mut IN_ADDR, port: *mut u16) -> i32 where P0: windows_core::Param, { - windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressExA(addressstring : windows_core::PCSTR, strict : super::super::Foundation:: BOOLEAN, address : *mut IN_ADDR, port : *mut u16) -> i32); - RtlIpv4StringToAddressExA(addressstring.param().abi(), strict.into(), core::mem::transmute(address), core::mem::transmute(port)) + windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressExA(addressstring : windows_core::PCSTR, strict : bool, address : *mut IN_ADDR, port : *mut u16) -> i32); + RtlIpv4StringToAddressExA(addressstring.param().abi(), core::mem::transmute(strict), core::mem::transmute(address), core::mem::transmute(port)) } #[inline] pub unsafe fn RtlIpv4StringToAddressExW(addressstring: P0, strict: bool, address: *mut IN_ADDR, port: *mut u16) -> i32 where P0: windows_core::Param, { - windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressExW(addressstring : windows_core::PCWSTR, strict : super::super::Foundation:: BOOLEAN, address : *mut IN_ADDR, port : *mut u16) -> i32); - RtlIpv4StringToAddressExW(addressstring.param().abi(), strict.into(), core::mem::transmute(address), core::mem::transmute(port)) + windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressExW(addressstring : windows_core::PCWSTR, strict : bool, address : *mut IN_ADDR, port : *mut u16) -> i32); + RtlIpv4StringToAddressExW(addressstring.param().abi(), core::mem::transmute(strict), core::mem::transmute(address), core::mem::transmute(port)) } #[inline] pub unsafe fn RtlIpv4StringToAddressW(s: P0, strict: bool, terminator: *mut windows_core::PCWSTR, addr: *mut IN_ADDR) -> i32 where P0: windows_core::Param, { - windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressW(s : windows_core::PCWSTR, strict : super::super::Foundation:: BOOLEAN, terminator : *mut windows_core::PCWSTR, addr : *mut IN_ADDR) -> i32); - RtlIpv4StringToAddressW(s.param().abi(), strict.into(), core::mem::transmute(terminator), core::mem::transmute(addr)) + windows_targets::link!("ntdll.dll" "system" fn RtlIpv4StringToAddressW(s : windows_core::PCWSTR, strict : bool, terminator : *mut windows_core::PCWSTR, addr : *mut IN_ADDR) -> i32); + RtlIpv4StringToAddressW(s.param().abi(), core::mem::transmute(strict), core::mem::transmute(terminator), core::mem::transmute(addr)) } #[inline] pub unsafe fn RtlIpv6AddressToStringA(addr: *const IN6_ADDR, s: &mut [u8; 46]) -> windows_core::PSTR { @@ -3462,8 +3462,8 @@ pub struct IPX_ADDRESS_DATA { pub adapternum: i32, pub netnum: [u8; 4], pub nodenum: [u8; 6], - pub wan: super::super::Foundation::BOOLEAN, - pub status: super::super::Foundation::BOOLEAN, + pub wan: bool, + pub status: bool, pub maxpkt: i32, pub linkspeed: u32, } @@ -4539,7 +4539,7 @@ pub struct NL_BANDWIDTH_FLAG(pub i32); pub struct NL_BANDWIDTH_INFORMATION { pub Bandwidth: u64, pub Instability: u64, - pub BandwidthPeaked: super::super::Foundation::BOOLEAN, + pub BandwidthPeaked: bool, } impl Default for NL_BANDWIDTH_INFORMATION { fn default() -> Self { @@ -4579,9 +4579,9 @@ pub struct NL_NETWORK_CONNECTIVITY_COST_HINT(pub i32); pub struct NL_NETWORK_CONNECTIVITY_HINT { pub ConnectivityLevel: NL_NETWORK_CONNECTIVITY_LEVEL_HINT, pub ConnectivityCost: NL_NETWORK_CONNECTIVITY_COST_HINT, - pub ApproachingDataLimit: super::super::Foundation::BOOLEAN, - pub OverDataLimit: super::super::Foundation::BOOLEAN, - pub Roaming: super::super::Foundation::BOOLEAN, + pub ApproachingDataLimit: bool, + pub OverDataLimit: bool, + pub Roaming: bool, } impl Default for NL_NETWORK_CONNECTIVITY_HINT { fn default() -> Self { @@ -4596,7 +4596,7 @@ pub struct NL_NETWORK_CONNECTIVITY_LEVEL_HINT(pub i32); pub struct NL_PATH_BANDWIDTH_ROD { pub Bandwidth: u64, pub Instability: u64, - pub BandwidthPeaked: super::super::Foundation::BOOLEAN, + pub BandwidthPeaked: bool, } impl Default for NL_PATH_BANDWIDTH_ROD { fn default() -> Self { @@ -5041,7 +5041,7 @@ impl Default for REAL_TIME_NOTIFICATION_SETTING_INPUT { pub struct REAL_TIME_NOTIFICATION_SETTING_INPUT_EX { pub TransportSettingId: TRANSPORT_SETTING_ID, pub BrokerEventGuid: windows_core::GUID, - pub Unmark: super::super::Foundation::BOOLEAN, + pub Unmark: bool, } impl Default for REAL_TIME_NOTIFICATION_SETTING_INPUT_EX { fn default() -> Self { @@ -5208,7 +5208,7 @@ pub struct RM_FEC_INFO { pub FECBlockSize: u16, pub FECProActivePackets: u16, pub FECGroupSize: u8, - pub fFECOnDemandParityEnabled: super::super::Foundation::BOOLEAN, + pub fFECOnDemandParityEnabled: bool, } impl Default for RM_FEC_INFO { fn default() -> Self { @@ -5295,7 +5295,7 @@ pub const RNRSERVICE_REGISTER: WSAESETSERVICEOP = WSAESETSERVICEOP(0i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct RSS_SCALABILITY_INFO { - pub RssEnabled: super::super::Foundation::BOOLEAN, + pub RssEnabled: bool, } impl Default for RSS_SCALABILITY_INFO { fn default() -> Self { @@ -6322,7 +6322,7 @@ pub struct TCP_INFO_v0 { pub State: TCPSTATE, pub Mss: u32, pub ConnectionTimeMs: u64, - pub TimestampsEnabled: super::super::Foundation::BOOLEAN, + pub TimestampsEnabled: bool, pub RttUs: u32, pub MinRttUs: u32, pub BytesInFlight: u32, @@ -6350,7 +6350,7 @@ pub struct TCP_INFO_v1 { pub State: TCPSTATE, pub Mss: u32, pub ConnectionTimeMs: u64, - pub TimestampsEnabled: super::super::Foundation::BOOLEAN, + pub TimestampsEnabled: bool, pub RttUs: u32, pub MinRttUs: u32, pub BytesInFlight: u32, diff --git a/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs index c357ad1114..0b58325540 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs @@ -52,8 +52,8 @@ pub unsafe fn SaferiIsExecutableFileType(szfullpathname: P0, bfromshellexecu where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn SaferiIsExecutableFileType(szfullpathname : windows_core::PCWSTR, bfromshellexecute : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: BOOL); - SaferiIsExecutableFileType(szfullpathname.param().abi(), bfromshellexecute.into()) + windows_targets::link!("advapi32.dll" "system" fn SaferiIsExecutableFileType(szfullpathname : windows_core::PCWSTR, bfromshellexecute : bool) -> super::super::Foundation:: BOOL); + SaferiIsExecutableFileType(szfullpathname.param().abi(), core::mem::transmute(bfromshellexecute)) } #[repr(C)] #[cfg(feature = "Win32_Security_Cryptography")] diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs index 610023d4c2..54a8527f57 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/mod.rs @@ -79,29 +79,29 @@ pub unsafe fn ApplyControlToken(phcontext: *const super::super::Credentials::Sec ApplyControlToken(core::mem::transmute(phcontext), core::mem::transmute(pinput)).ok() } #[inline] -pub unsafe fn AuditComputeEffectivePolicyBySid(psid: super::super::PSID, psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditComputeEffectivePolicyBySid(psid : super::super:: PSID, psubcategoryguids : *const windows_core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditComputeEffectivePolicyBySid(psid: super::super::PSID, psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditComputeEffectivePolicyBySid(psid : super::super:: PSID, psubcategoryguids : *const windows_core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> bool); AuditComputeEffectivePolicyBySid(core::mem::transmute(psid), core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), core::mem::transmute(ppauditpolicy)) } #[inline] -pub unsafe fn AuditComputeEffectivePolicyByToken(htokenhandle: super::super::super::Foundation::HANDLE, psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditComputeEffectivePolicyByToken(htokenhandle : super::super::super::Foundation:: HANDLE, psubcategoryguids : *const windows_core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditComputeEffectivePolicyByToken(htokenhandle: super::super::super::Foundation::HANDLE, psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditComputeEffectivePolicyByToken(htokenhandle : super::super::super::Foundation:: HANDLE, psubcategoryguids : *const windows_core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> bool); AuditComputeEffectivePolicyByToken(core::mem::transmute(htokenhandle), core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), core::mem::transmute(ppauditpolicy)) } #[inline] -pub unsafe fn AuditEnumerateCategories(ppauditcategoriesarray: *mut *mut windows_core::GUID, pdwcountreturned: *mut u32) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditEnumerateCategories(ppauditcategoriesarray : *mut *mut windows_core::GUID, pdwcountreturned : *mut u32) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditEnumerateCategories(ppauditcategoriesarray: *mut *mut windows_core::GUID, pdwcountreturned: *mut u32) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditEnumerateCategories(ppauditcategoriesarray : *mut *mut windows_core::GUID, pdwcountreturned : *mut u32) -> bool); AuditEnumerateCategories(core::mem::transmute(ppauditcategoriesarray), core::mem::transmute(pdwcountreturned)) } #[inline] -pub unsafe fn AuditEnumeratePerUserPolicy(ppauditsidarray: *mut *mut POLICY_AUDIT_SID_ARRAY) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditEnumeratePerUserPolicy(ppauditsidarray : *mut *mut POLICY_AUDIT_SID_ARRAY) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditEnumeratePerUserPolicy(ppauditsidarray: *mut *mut POLICY_AUDIT_SID_ARRAY) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditEnumeratePerUserPolicy(ppauditsidarray : *mut *mut POLICY_AUDIT_SID_ARRAY) -> bool); AuditEnumeratePerUserPolicy(core::mem::transmute(ppauditsidarray)) } #[inline] -pub unsafe fn AuditEnumerateSubCategories(pauditcategoryguid: Option<*const windows_core::GUID>, bretrieveallsubcategories: bool, ppauditsubcategoriesarray: *mut *mut windows_core::GUID, pdwcountreturned: *mut u32) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditEnumerateSubCategories(pauditcategoryguid : *const windows_core::GUID, bretrieveallsubcategories : super::super::super::Foundation:: BOOLEAN, ppauditsubcategoriesarray : *mut *mut windows_core::GUID, pdwcountreturned : *mut u32) -> super::super::super::Foundation:: BOOLEAN); - AuditEnumerateSubCategories(core::mem::transmute(pauditcategoryguid.unwrap_or(core::mem::zeroed())), bretrieveallsubcategories.into(), core::mem::transmute(ppauditsubcategoriesarray), core::mem::transmute(pdwcountreturned)) +pub unsafe fn AuditEnumerateSubCategories(pauditcategoryguid: Option<*const windows_core::GUID>, bretrieveallsubcategories: bool, ppauditsubcategoriesarray: *mut *mut windows_core::GUID, pdwcountreturned: *mut u32) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditEnumerateSubCategories(pauditcategoryguid : *const windows_core::GUID, bretrieveallsubcategories : bool, ppauditsubcategoriesarray : *mut *mut windows_core::GUID, pdwcountreturned : *mut u32) -> bool); + AuditEnumerateSubCategories(core::mem::transmute(pauditcategoryguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(bretrieveallsubcategories), core::mem::transmute(ppauditsubcategoriesarray), core::mem::transmute(pdwcountreturned)) } #[inline] pub unsafe fn AuditFree(buffer: *const core::ffi::c_void) { @@ -109,106 +109,106 @@ pub unsafe fn AuditFree(buffer: *const core::ffi::c_void) { AuditFree(core::mem::transmute(buffer)) } #[inline] -pub unsafe fn AuditLookupCategoryGuidFromCategoryId(auditcategoryid: POLICY_AUDIT_EVENT_TYPE, pauditcategoryguid: *mut windows_core::GUID) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryGuidFromCategoryId(auditcategoryid : POLICY_AUDIT_EVENT_TYPE, pauditcategoryguid : *mut windows_core::GUID) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditLookupCategoryGuidFromCategoryId(auditcategoryid: POLICY_AUDIT_EVENT_TYPE, pauditcategoryguid: *mut windows_core::GUID) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryGuidFromCategoryId(auditcategoryid : POLICY_AUDIT_EVENT_TYPE, pauditcategoryguid : *mut windows_core::GUID) -> bool); AuditLookupCategoryGuidFromCategoryId(core::mem::transmute(auditcategoryid), core::mem::transmute(pauditcategoryguid)) } #[inline] -pub unsafe fn AuditLookupCategoryIdFromCategoryGuid(pauditcategoryguid: *const windows_core::GUID, pauditcategoryid: *mut POLICY_AUDIT_EVENT_TYPE) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryIdFromCategoryGuid(pauditcategoryguid : *const windows_core::GUID, pauditcategoryid : *mut POLICY_AUDIT_EVENT_TYPE) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditLookupCategoryIdFromCategoryGuid(pauditcategoryguid: *const windows_core::GUID, pauditcategoryid: *mut POLICY_AUDIT_EVENT_TYPE) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryIdFromCategoryGuid(pauditcategoryguid : *const windows_core::GUID, pauditcategoryid : *mut POLICY_AUDIT_EVENT_TYPE) -> bool); AuditLookupCategoryIdFromCategoryGuid(core::mem::transmute(pauditcategoryguid), core::mem::transmute(pauditcategoryid)) } #[inline] -pub unsafe fn AuditLookupCategoryNameA(pauditcategoryguid: *const windows_core::GUID, ppszcategoryname: *mut windows_core::PSTR) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryNameA(pauditcategoryguid : *const windows_core::GUID, ppszcategoryname : *mut windows_core::PSTR) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditLookupCategoryNameA(pauditcategoryguid: *const windows_core::GUID, ppszcategoryname: *mut windows_core::PSTR) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryNameA(pauditcategoryguid : *const windows_core::GUID, ppszcategoryname : *mut windows_core::PSTR) -> bool); AuditLookupCategoryNameA(core::mem::transmute(pauditcategoryguid), core::mem::transmute(ppszcategoryname)) } #[inline] -pub unsafe fn AuditLookupCategoryNameW(pauditcategoryguid: *const windows_core::GUID, ppszcategoryname: *mut windows_core::PWSTR) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryNameW(pauditcategoryguid : *const windows_core::GUID, ppszcategoryname : *mut windows_core::PWSTR) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditLookupCategoryNameW(pauditcategoryguid: *const windows_core::GUID, ppszcategoryname: *mut windows_core::PWSTR) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditLookupCategoryNameW(pauditcategoryguid : *const windows_core::GUID, ppszcategoryname : *mut windows_core::PWSTR) -> bool); AuditLookupCategoryNameW(core::mem::transmute(pauditcategoryguid), core::mem::transmute(ppszcategoryname)) } #[inline] -pub unsafe fn AuditLookupSubCategoryNameA(pauditsubcategoryguid: *const windows_core::GUID, ppszsubcategoryname: *mut windows_core::PSTR) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditLookupSubCategoryNameA(pauditsubcategoryguid : *const windows_core::GUID, ppszsubcategoryname : *mut windows_core::PSTR) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditLookupSubCategoryNameA(pauditsubcategoryguid: *const windows_core::GUID, ppszsubcategoryname: *mut windows_core::PSTR) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditLookupSubCategoryNameA(pauditsubcategoryguid : *const windows_core::GUID, ppszsubcategoryname : *mut windows_core::PSTR) -> bool); AuditLookupSubCategoryNameA(core::mem::transmute(pauditsubcategoryguid), core::mem::transmute(ppszsubcategoryname)) } #[inline] -pub unsafe fn AuditLookupSubCategoryNameW(pauditsubcategoryguid: *const windows_core::GUID, ppszsubcategoryname: *mut windows_core::PWSTR) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditLookupSubCategoryNameW(pauditsubcategoryguid : *const windows_core::GUID, ppszsubcategoryname : *mut windows_core::PWSTR) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditLookupSubCategoryNameW(pauditsubcategoryguid: *const windows_core::GUID, ppszsubcategoryname: *mut windows_core::PWSTR) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditLookupSubCategoryNameW(pauditsubcategoryguid : *const windows_core::GUID, ppszsubcategoryname : *mut windows_core::PWSTR) -> bool); AuditLookupSubCategoryNameW(core::mem::transmute(pauditsubcategoryguid), core::mem::transmute(ppszsubcategoryname)) } #[inline] -pub unsafe fn AuditQueryGlobalSaclA(objecttypename: P0, acl: *mut *mut super::super::ACL) -> super::super::super::Foundation::BOOLEAN +pub unsafe fn AuditQueryGlobalSaclA(objecttypename: P0, acl: *mut *mut super::super::ACL) -> bool where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AuditQueryGlobalSaclA(objecttypename : windows_core::PCSTR, acl : *mut *mut super::super:: ACL) -> super::super::super::Foundation:: BOOLEAN); + windows_targets::link!("advapi32.dll" "system" fn AuditQueryGlobalSaclA(objecttypename : windows_core::PCSTR, acl : *mut *mut super::super:: ACL) -> bool); AuditQueryGlobalSaclA(objecttypename.param().abi(), core::mem::transmute(acl)) } #[inline] -pub unsafe fn AuditQueryGlobalSaclW(objecttypename: P0, acl: *mut *mut super::super::ACL) -> super::super::super::Foundation::BOOLEAN +pub unsafe fn AuditQueryGlobalSaclW(objecttypename: P0, acl: *mut *mut super::super::ACL) -> bool where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AuditQueryGlobalSaclW(objecttypename : windows_core::PCWSTR, acl : *mut *mut super::super:: ACL) -> super::super::super::Foundation:: BOOLEAN); + windows_targets::link!("advapi32.dll" "system" fn AuditQueryGlobalSaclW(objecttypename : windows_core::PCWSTR, acl : *mut *mut super::super:: ACL) -> bool); AuditQueryGlobalSaclW(objecttypename.param().abi(), core::mem::transmute(acl)) } #[inline] -pub unsafe fn AuditQueryPerUserPolicy(psid: super::super::PSID, psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditQueryPerUserPolicy(psid : super::super:: PSID, psubcategoryguids : *const windows_core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditQueryPerUserPolicy(psid: super::super::PSID, psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditQueryPerUserPolicy(psid : super::super:: PSID, psubcategoryguids : *const windows_core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> bool); AuditQueryPerUserPolicy(core::mem::transmute(psid), core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), core::mem::transmute(ppauditpolicy)) } #[inline] -pub unsafe fn AuditQuerySecurity(securityinformation: super::super::OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor: *mut super::super::PSECURITY_DESCRIPTOR) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditQuerySecurity(securityinformation : super::super:: OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor : *mut super::super:: PSECURITY_DESCRIPTOR) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditQuerySecurity(securityinformation: super::super::OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor: *mut super::super::PSECURITY_DESCRIPTOR) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditQuerySecurity(securityinformation : super::super:: OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor : *mut super::super:: PSECURITY_DESCRIPTOR) -> bool); AuditQuerySecurity(core::mem::transmute(securityinformation), core::mem::transmute(ppsecuritydescriptor)) } #[inline] -pub unsafe fn AuditQuerySystemPolicy(psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditQuerySystemPolicy(psubcategoryguids : *const windows_core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditQuerySystemPolicy(psubcategoryguids: &[windows_core::GUID], ppauditpolicy: *mut *mut AUDIT_POLICY_INFORMATION) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditQuerySystemPolicy(psubcategoryguids : *const windows_core::GUID, dwpolicycount : u32, ppauditpolicy : *mut *mut AUDIT_POLICY_INFORMATION) -> bool); AuditQuerySystemPolicy(core::mem::transmute(psubcategoryguids.as_ptr()), psubcategoryguids.len().try_into().unwrap(), core::mem::transmute(ppauditpolicy)) } #[inline] -pub unsafe fn AuditSetGlobalSaclA(objecttypename: P0, acl: Option<*const super::super::ACL>) -> super::super::super::Foundation::BOOLEAN +pub unsafe fn AuditSetGlobalSaclA(objecttypename: P0, acl: Option<*const super::super::ACL>) -> bool where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AuditSetGlobalSaclA(objecttypename : windows_core::PCSTR, acl : *const super::super:: ACL) -> super::super::super::Foundation:: BOOLEAN); + windows_targets::link!("advapi32.dll" "system" fn AuditSetGlobalSaclA(objecttypename : windows_core::PCSTR, acl : *const super::super:: ACL) -> bool); AuditSetGlobalSaclA(objecttypename.param().abi(), core::mem::transmute(acl.unwrap_or(core::mem::zeroed()))) } #[inline] -pub unsafe fn AuditSetGlobalSaclW(objecttypename: P0, acl: Option<*const super::super::ACL>) -> super::super::super::Foundation::BOOLEAN +pub unsafe fn AuditSetGlobalSaclW(objecttypename: P0, acl: Option<*const super::super::ACL>) -> bool where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AuditSetGlobalSaclW(objecttypename : windows_core::PCWSTR, acl : *const super::super:: ACL) -> super::super::super::Foundation:: BOOLEAN); + windows_targets::link!("advapi32.dll" "system" fn AuditSetGlobalSaclW(objecttypename : windows_core::PCWSTR, acl : *const super::super:: ACL) -> bool); AuditSetGlobalSaclW(objecttypename.param().abi(), core::mem::transmute(acl.unwrap_or(core::mem::zeroed()))) } #[inline] -pub unsafe fn AuditSetPerUserPolicy(psid: super::super::PSID, pauditpolicy: &[AUDIT_POLICY_INFORMATION]) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditSetPerUserPolicy(psid : super::super:: PSID, pauditpolicy : *const AUDIT_POLICY_INFORMATION, dwpolicycount : u32) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditSetPerUserPolicy(psid: super::super::PSID, pauditpolicy: &[AUDIT_POLICY_INFORMATION]) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditSetPerUserPolicy(psid : super::super:: PSID, pauditpolicy : *const AUDIT_POLICY_INFORMATION, dwpolicycount : u32) -> bool); AuditSetPerUserPolicy(core::mem::transmute(psid), core::mem::transmute(pauditpolicy.as_ptr()), pauditpolicy.len().try_into().unwrap()) } #[inline] -pub unsafe fn AuditSetSecurity(securityinformation: super::super::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: super::super::PSECURITY_DESCRIPTOR) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditSetSecurity(securityinformation : super::super:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super:: PSECURITY_DESCRIPTOR) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditSetSecurity(securityinformation: super::super::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: super::super::PSECURITY_DESCRIPTOR) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditSetSecurity(securityinformation : super::super:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super:: PSECURITY_DESCRIPTOR) -> bool); AuditSetSecurity(core::mem::transmute(securityinformation), core::mem::transmute(psecuritydescriptor)) } #[inline] -pub unsafe fn AuditSetSystemPolicy(pauditpolicy: &[AUDIT_POLICY_INFORMATION]) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn AuditSetSystemPolicy(pauditpolicy : *const AUDIT_POLICY_INFORMATION, dwpolicycount : u32) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn AuditSetSystemPolicy(pauditpolicy: &[AUDIT_POLICY_INFORMATION]) -> bool { + windows_targets::link!("advapi32.dll" "system" fn AuditSetSystemPolicy(pauditpolicy : *const AUDIT_POLICY_INFORMATION, dwpolicycount : u32) -> bool); AuditSetSystemPolicy(core::mem::transmute(pauditpolicy.as_ptr()), pauditpolicy.len().try_into().unwrap()) } #[inline] pub unsafe fn ChangeAccountPasswordA(pszpackagename: *const i8, pszdomainname: *const i8, pszaccountname: *const i8, pszoldpassword: *const i8, psznewpassword: *const i8, bimpersonating: bool, dwreserved: u32, poutput: *mut SecBufferDesc) -> windows_core::Result<()> { - windows_targets::link!("secur32.dll" "system" fn ChangeAccountPasswordA(pszpackagename : *const i8, pszdomainname : *const i8, pszaccountname : *const i8, pszoldpassword : *const i8, psznewpassword : *const i8, bimpersonating : super::super::super::Foundation:: BOOLEAN, dwreserved : u32, poutput : *mut SecBufferDesc) -> windows_core::HRESULT); - ChangeAccountPasswordA(core::mem::transmute(pszpackagename), core::mem::transmute(pszdomainname), core::mem::transmute(pszaccountname), core::mem::transmute(pszoldpassword), core::mem::transmute(psznewpassword), bimpersonating.into(), core::mem::transmute(dwreserved), core::mem::transmute(poutput)).ok() + windows_targets::link!("secur32.dll" "system" fn ChangeAccountPasswordA(pszpackagename : *const i8, pszdomainname : *const i8, pszaccountname : *const i8, pszoldpassword : *const i8, psznewpassword : *const i8, bimpersonating : bool, dwreserved : u32, poutput : *mut SecBufferDesc) -> windows_core::HRESULT); + ChangeAccountPasswordA(core::mem::transmute(pszpackagename), core::mem::transmute(pszdomainname), core::mem::transmute(pszaccountname), core::mem::transmute(pszoldpassword), core::mem::transmute(psznewpassword), core::mem::transmute(bimpersonating), core::mem::transmute(dwreserved), core::mem::transmute(poutput)).ok() } #[inline] pub unsafe fn ChangeAccountPasswordW(pszpackagename: *const u16, pszdomainname: *const u16, pszaccountname: *const u16, pszoldpassword: *const u16, psznewpassword: *const u16, bimpersonating: bool, dwreserved: u32, poutput: *mut SecBufferDesc) -> windows_core::Result<()> { - windows_targets::link!("secur32.dll" "system" fn ChangeAccountPasswordW(pszpackagename : *const u16, pszdomainname : *const u16, pszaccountname : *const u16, pszoldpassword : *const u16, psznewpassword : *const u16, bimpersonating : super::super::super::Foundation:: BOOLEAN, dwreserved : u32, poutput : *mut SecBufferDesc) -> windows_core::HRESULT); - ChangeAccountPasswordW(core::mem::transmute(pszpackagename), core::mem::transmute(pszdomainname), core::mem::transmute(pszaccountname), core::mem::transmute(pszoldpassword), core::mem::transmute(psznewpassword), bimpersonating.into(), core::mem::transmute(dwreserved), core::mem::transmute(poutput)).ok() + windows_targets::link!("secur32.dll" "system" fn ChangeAccountPasswordW(pszpackagename : *const u16, pszdomainname : *const u16, pszaccountname : *const u16, pszoldpassword : *const u16, psznewpassword : *const u16, bimpersonating : bool, dwreserved : u32, poutput : *mut SecBufferDesc) -> windows_core::HRESULT); + ChangeAccountPasswordW(core::mem::transmute(pszpackagename), core::mem::transmute(pszdomainname), core::mem::transmute(pszaccountname), core::mem::transmute(pszoldpassword), core::mem::transmute(psznewpassword), core::mem::transmute(bimpersonating), core::mem::transmute(dwreserved), core::mem::transmute(poutput)).ok() } #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -290,23 +290,23 @@ pub unsafe fn FreeCredentialsHandle(phcredential: *const super::super::Credentia FreeCredentialsHandle(core::mem::transmute(phcredential)).ok() } #[inline] -pub unsafe fn GetComputerObjectNameA(nameformat: EXTENDED_NAME_FORMAT, lpnamebuffer: Option, nsize: *mut u32) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("secur32.dll" "system" fn GetComputerObjectNameA(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_core::PSTR, nsize : *mut u32) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn GetComputerObjectNameA(nameformat: EXTENDED_NAME_FORMAT, lpnamebuffer: Option, nsize: *mut u32) -> bool { + windows_targets::link!("secur32.dll" "system" fn GetComputerObjectNameA(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_core::PSTR, nsize : *mut u32) -> bool); GetComputerObjectNameA(core::mem::transmute(nameformat), core::mem::transmute(lpnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) } #[inline] -pub unsafe fn GetComputerObjectNameW(nameformat: EXTENDED_NAME_FORMAT, lpnamebuffer: Option, nsize: *mut u32) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("secur32.dll" "system" fn GetComputerObjectNameW(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_core::PWSTR, nsize : *mut u32) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn GetComputerObjectNameW(nameformat: EXTENDED_NAME_FORMAT, lpnamebuffer: Option, nsize: *mut u32) -> bool { + windows_targets::link!("secur32.dll" "system" fn GetComputerObjectNameW(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_core::PWSTR, nsize : *mut u32) -> bool); GetComputerObjectNameW(core::mem::transmute(nameformat), core::mem::transmute(lpnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) } #[inline] -pub unsafe fn GetUserNameExA(nameformat: EXTENDED_NAME_FORMAT, lpnamebuffer: Option, nsize: *mut u32) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("secur32.dll" "system" fn GetUserNameExA(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_core::PSTR, nsize : *mut u32) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn GetUserNameExA(nameformat: EXTENDED_NAME_FORMAT, lpnamebuffer: Option, nsize: *mut u32) -> bool { + windows_targets::link!("secur32.dll" "system" fn GetUserNameExA(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_core::PSTR, nsize : *mut u32) -> bool); GetUserNameExA(core::mem::transmute(nameformat), core::mem::transmute(lpnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) } #[inline] -pub unsafe fn GetUserNameExW(nameformat: EXTENDED_NAME_FORMAT, lpnamebuffer: Option, nsize: *mut u32) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("secur32.dll" "system" fn GetUserNameExW(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_core::PWSTR, nsize : *mut u32) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn GetUserNameExW(nameformat: EXTENDED_NAME_FORMAT, lpnamebuffer: Option, nsize: *mut u32) -> bool { + windows_targets::link!("secur32.dll" "system" fn GetUserNameExW(nameformat : EXTENDED_NAME_FORMAT, lpnamebuffer : windows_core::PWSTR, nsize : *mut u32) -> bool); GetUserNameExW(core::mem::transmute(nameformat), core::mem::transmute(lpnamebuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) } #[cfg(feature = "Win32_Security_Credentials")] @@ -572,8 +572,8 @@ pub unsafe fn LsaRegisterPolicyChangeNotification(informationclass: POLICY_NOTIF } #[inline] pub unsafe fn LsaRemoveAccountRights(policyhandle: LSA_HANDLE, accountsid: super::super::PSID, allrights: bool, userrights: Option<&[LSA_UNICODE_STRING]>) -> super::super::super::Foundation::NTSTATUS { - windows_targets::link!("advapi32.dll" "system" fn LsaRemoveAccountRights(policyhandle : LSA_HANDLE, accountsid : super::super:: PSID, allrights : super::super::super::Foundation:: BOOLEAN, userrights : *const LSA_UNICODE_STRING, countofrights : u32) -> super::super::super::Foundation:: NTSTATUS); - LsaRemoveAccountRights(core::mem::transmute(policyhandle), core::mem::transmute(accountsid), allrights.into(), core::mem::transmute(userrights.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), userrights.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) + windows_targets::link!("advapi32.dll" "system" fn LsaRemoveAccountRights(policyhandle : LSA_HANDLE, accountsid : super::super:: PSID, allrights : bool, userrights : *const LSA_UNICODE_STRING, countofrights : u32) -> super::super::super::Foundation:: NTSTATUS); + LsaRemoveAccountRights(core::mem::transmute(policyhandle), core::mem::transmute(accountsid), core::mem::transmute(allrights), core::mem::transmute(userrights.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), userrights.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } #[inline] pub unsafe fn LsaRetrievePrivateData(policyhandle: LSA_HANDLE, keyname: *const LSA_UNICODE_STRING, privatedata: *mut *mut LSA_UNICODE_STRING) -> super::super::super::Foundation::NTSTATUS { @@ -592,13 +592,13 @@ pub unsafe fn LsaSetDomainInformationPolicy(policyhandle: LSA_HANDLE, informatio } #[inline] pub unsafe fn LsaSetForestTrustInformation(policyhandle: LSA_HANDLE, trusteddomainname: *const LSA_UNICODE_STRING, foresttrustinfo: *const LSA_FOREST_TRUST_INFORMATION, checkonly: bool, collisioninfo: *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation::NTSTATUS { - windows_targets::link!("advapi32.dll" "system" fn LsaSetForestTrustInformation(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, foresttrustinfo : *const LSA_FOREST_TRUST_INFORMATION, checkonly : super::super::super::Foundation:: BOOLEAN, collisioninfo : *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation:: NTSTATUS); - LsaSetForestTrustInformation(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainname), core::mem::transmute(foresttrustinfo), checkonly.into(), core::mem::transmute(collisioninfo)) + windows_targets::link!("advapi32.dll" "system" fn LsaSetForestTrustInformation(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, foresttrustinfo : *const LSA_FOREST_TRUST_INFORMATION, checkonly : bool, collisioninfo : *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation:: NTSTATUS); + LsaSetForestTrustInformation(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainname), core::mem::transmute(foresttrustinfo), core::mem::transmute(checkonly), core::mem::transmute(collisioninfo)) } #[inline] pub unsafe fn LsaSetForestTrustInformation2(policyhandle: LSA_HANDLE, trusteddomainname: *const LSA_UNICODE_STRING, highestrecordtype: LSA_FOREST_TRUST_RECORD_TYPE, foresttrustinfo: *const LSA_FOREST_TRUST_INFORMATION2, checkonly: bool, collisioninfo: *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation::NTSTATUS { - windows_targets::link!("advapi32.dll" "system" fn LsaSetForestTrustInformation2(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, highestrecordtype : LSA_FOREST_TRUST_RECORD_TYPE, foresttrustinfo : *const LSA_FOREST_TRUST_INFORMATION2, checkonly : super::super::super::Foundation:: BOOLEAN, collisioninfo : *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation:: NTSTATUS); - LsaSetForestTrustInformation2(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainname), core::mem::transmute(highestrecordtype), core::mem::transmute(foresttrustinfo), checkonly.into(), core::mem::transmute(collisioninfo)) + windows_targets::link!("advapi32.dll" "system" fn LsaSetForestTrustInformation2(policyhandle : LSA_HANDLE, trusteddomainname : *const LSA_UNICODE_STRING, highestrecordtype : LSA_FOREST_TRUST_RECORD_TYPE, foresttrustinfo : *const LSA_FOREST_TRUST_INFORMATION2, checkonly : bool, collisioninfo : *mut *mut LSA_FOREST_TRUST_COLLISION_INFORMATION) -> super::super::super::Foundation:: NTSTATUS); + LsaSetForestTrustInformation2(core::mem::transmute(policyhandle), core::mem::transmute(trusteddomainname), core::mem::transmute(highestrecordtype), core::mem::transmute(foresttrustinfo), core::mem::transmute(checkonly), core::mem::transmute(collisioninfo)) } #[inline] pub unsafe fn LsaSetInformationPolicy(policyhandle: LSA_HANDLE, informationclass: POLICY_INFORMATION_CLASS, buffer: *const core::ffi::c_void) -> super::super::super::Foundation::NTSTATUS { @@ -720,8 +720,8 @@ pub unsafe fn RtlEncryptMemory(memory: *mut core::ffi::c_void, memorysize: u32, RtlEncryptMemory(core::mem::transmute(memory), core::mem::transmute(memorysize), core::mem::transmute(optionflags)) } #[inline] -pub unsafe fn RtlGenRandom(randombuffer: *mut core::ffi::c_void, randombufferlength: u32) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" "SystemFunction036" fn RtlGenRandom(randombuffer : *mut core::ffi::c_void, randombufferlength : u32) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn RtlGenRandom(randombuffer: *mut core::ffi::c_void, randombufferlength: u32) -> bool { + windows_targets::link!("advapi32.dll" "system" "SystemFunction036" fn RtlGenRandom(randombuffer : *mut core::ffi::c_void, randombufferlength : u32) -> bool); RtlGenRandom(core::mem::transmute(randombuffer), core::mem::transmute(randombufferlength)) } #[inline] @@ -1204,8 +1204,8 @@ pub unsafe fn SslGetServerIdentity(clienthello: &[u8], serveridentity: *mut *mut SslGetServerIdentity(core::mem::transmute(clienthello.as_ptr()), clienthello.len().try_into().unwrap(), core::mem::transmute(serveridentity), core::mem::transmute(serveridentitysize), core::mem::transmute(flags)).ok() } #[inline] -pub unsafe fn SspiCompareAuthIdentities(authidentity1: Option<*const core::ffi::c_void>, authidentity2: Option<*const core::ffi::c_void>, samesupplieduser: Option<*mut super::super::super::Foundation::BOOLEAN>, samesuppliedidentity: Option<*mut super::super::super::Foundation::BOOLEAN>) -> windows_core::Result<()> { - windows_targets::link!("secur32.dll" "system" fn SspiCompareAuthIdentities(authidentity1 : *const core::ffi::c_void, authidentity2 : *const core::ffi::c_void, samesupplieduser : *mut super::super::super::Foundation:: BOOLEAN, samesuppliedidentity : *mut super::super::super::Foundation:: BOOLEAN) -> windows_core::HRESULT); +pub unsafe fn SspiCompareAuthIdentities(authidentity1: Option<*const core::ffi::c_void>, authidentity2: Option<*const core::ffi::c_void>, samesupplieduser: Option<*mut bool>, samesuppliedidentity: Option<*mut bool>) -> windows_core::Result<()> { + windows_targets::link!("secur32.dll" "system" fn SspiCompareAuthIdentities(authidentity1 : *const core::ffi::c_void, authidentity2 : *const core::ffi::c_void, samesupplieduser : *mut bool, samesuppliedidentity : *mut bool) -> windows_core::HRESULT); SspiCompareAuthIdentities(core::mem::transmute(authidentity1.unwrap_or(core::mem::zeroed())), core::mem::transmute(authidentity2.unwrap_or(core::mem::zeroed())), core::mem::transmute(samesupplieduser.unwrap_or(core::mem::zeroed())), core::mem::transmute(samesuppliedidentity.unwrap_or(core::mem::zeroed()))).ok() } #[inline] @@ -1271,13 +1271,13 @@ where SspiGetTargetHostName(psztargetname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] -pub unsafe fn SspiIsAuthIdentityEncrypted(encryptedauthdata: *const core::ffi::c_void) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("secur32.dll" "system" fn SspiIsAuthIdentityEncrypted(encryptedauthdata : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn SspiIsAuthIdentityEncrypted(encryptedauthdata: *const core::ffi::c_void) -> bool { + windows_targets::link!("secur32.dll" "system" fn SspiIsAuthIdentityEncrypted(encryptedauthdata : *const core::ffi::c_void) -> bool); SspiIsAuthIdentityEncrypted(core::mem::transmute(encryptedauthdata)) } #[inline] -pub unsafe fn SspiIsPromptingNeeded(errororntstatus: u32) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("credui.dll" "system" fn SspiIsPromptingNeeded(errororntstatus : u32) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn SspiIsPromptingNeeded(errororntstatus: u32) -> bool { + windows_targets::link!("credui.dll" "system" fn SspiIsPromptingNeeded(errororntstatus : u32) -> bool); SspiIsPromptingNeeded(core::mem::transmute(errororntstatus)) } #[inline] @@ -1409,19 +1409,19 @@ pub unsafe fn TokenBindingVerifyMessage(tokenbindingmessage: *const core::ffi::c TokenBindingVerifyMessage(core::mem::transmute(tokenbindingmessage), core::mem::transmute(tokenbindingmessagesize), core::mem::transmute(keytype), core::mem::transmute(tlsekm), core::mem::transmute(tlsekmsize), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] -pub unsafe fn TranslateNameA(lpaccountname: P0, accountnameformat: EXTENDED_NAME_FORMAT, desirednameformat: EXTENDED_NAME_FORMAT, lptranslatedname: Option, nsize: *mut u32) -> super::super::super::Foundation::BOOLEAN +pub unsafe fn TranslateNameA(lpaccountname: P0, accountnameformat: EXTENDED_NAME_FORMAT, desirednameformat: EXTENDED_NAME_FORMAT, lptranslatedname: Option, nsize: *mut u32) -> bool where P0: windows_core::Param, { - windows_targets::link!("secur32.dll" "system" fn TranslateNameA(lpaccountname : windows_core::PCSTR, accountnameformat : EXTENDED_NAME_FORMAT, desirednameformat : EXTENDED_NAME_FORMAT, lptranslatedname : windows_core::PSTR, nsize : *mut u32) -> super::super::super::Foundation:: BOOLEAN); + windows_targets::link!("secur32.dll" "system" fn TranslateNameA(lpaccountname : windows_core::PCSTR, accountnameformat : EXTENDED_NAME_FORMAT, desirednameformat : EXTENDED_NAME_FORMAT, lptranslatedname : windows_core::PSTR, nsize : *mut u32) -> bool); TranslateNameA(lpaccountname.param().abi(), core::mem::transmute(accountnameformat), core::mem::transmute(desirednameformat), core::mem::transmute(lptranslatedname.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) } #[inline] -pub unsafe fn TranslateNameW(lpaccountname: P0, accountnameformat: EXTENDED_NAME_FORMAT, desirednameformat: EXTENDED_NAME_FORMAT, lptranslatedname: Option, nsize: *mut u32) -> super::super::super::Foundation::BOOLEAN +pub unsafe fn TranslateNameW(lpaccountname: P0, accountnameformat: EXTENDED_NAME_FORMAT, desirednameformat: EXTENDED_NAME_FORMAT, lptranslatedname: Option, nsize: *mut u32) -> bool where P0: windows_core::Param, { - windows_targets::link!("secur32.dll" "system" fn TranslateNameW(lpaccountname : windows_core::PCWSTR, accountnameformat : EXTENDED_NAME_FORMAT, desirednameformat : EXTENDED_NAME_FORMAT, lptranslatedname : windows_core::PWSTR, nsize : *mut u32) -> super::super::super::Foundation:: BOOLEAN); + windows_targets::link!("secur32.dll" "system" fn TranslateNameW(lpaccountname : windows_core::PCWSTR, accountnameformat : EXTENDED_NAME_FORMAT, desirednameformat : EXTENDED_NAME_FORMAT, lptranslatedname : windows_core::PWSTR, nsize : *mut u32) -> bool); TranslateNameW(lpaccountname.param().abi(), core::mem::transmute(accountnameformat), core::mem::transmute(desirednameformat), core::mem::transmute(lptranslatedname.unwrap_or(core::mem::zeroed())), core::mem::transmute(nsize)) } #[cfg(feature = "Win32_Security_Credentials")] @@ -1717,8 +1717,8 @@ impl Default for CENTRAL_ACCESS_POLICY_ENTRY { pub const CENTRAL_ACCESS_POLICY_OWNER_RIGHTS_PRESENT_FLAG: u32 = 1u32; pub const CENTRAL_ACCESS_POLICY_STAGED_FLAG: u32 = 65536u32; pub const CENTRAL_ACCESS_POLICY_STAGED_OWNER_RIGHTS_PRESENT_FLAG: u32 = 256u32; -pub type CHANGE_PASSWORD_FN_A = Option windows_core::HRESULT>; -pub type CHANGE_PASSWORD_FN_W = Option windows_core::HRESULT>; +pub type CHANGE_PASSWORD_FN_A = Option windows_core::HRESULT>; +pub type CHANGE_PASSWORD_FN_W = Option windows_core::HRESULT>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CLEAR_BLOCK { @@ -2111,7 +2111,7 @@ pub struct KDC_PROXY_CACHE_ENTRY_DATA { pub LogonId: super::super::super::Foundation::LUID, pub CredUserName: LSA_UNICODE_STRING, pub CredDomainName: LSA_UNICODE_STRING, - pub GlobalCache: super::super::super::Foundation::BOOLEAN, + pub GlobalCache: bool, } impl Default for KDC_PROXY_CACHE_ENTRY_DATA { fn default() -> Self { @@ -2289,7 +2289,7 @@ pub struct KERB_CHANGEPASSWORD_REQUEST { pub AccountName: LSA_UNICODE_STRING, pub OldPassword: LSA_UNICODE_STRING, pub NewPassword: LSA_UNICODE_STRING, - pub Impersonating: super::super::super::Foundation::BOOLEAN, + pub Impersonating: bool, } impl Default for KERB_CHANGEPASSWORD_REQUEST { fn default() -> Self { @@ -2973,7 +2973,7 @@ pub struct KERB_SETPASSWORD_EX_REQUEST { pub Password: LSA_UNICODE_STRING, pub ClientRealm: LSA_UNICODE_STRING, pub ClientName: LSA_UNICODE_STRING, - pub Impersonating: super::super::super::Foundation::BOOLEAN, + pub Impersonating: bool, pub KdcAddress: LSA_UNICODE_STRING, pub KdcAddressType: u32, } @@ -3340,7 +3340,7 @@ pub type KspMapHandleFn = Option super::super::super::Foundation::NTSTATUS>; pub type KspSealMessageFn = Option super::super::super::Foundation::NTSTATUS>; pub type KspSerializeAuthDataFn = Option super::super::super::Foundation::NTSTATUS>; -pub type KspSetPagingModeFn = Option super::super::super::Foundation::NTSTATUS>; +pub type KspSetPagingModeFn = Option super::super::super::Foundation::NTSTATUS>; pub type KspUnsealMessageFn = Option super::super::super::Foundation::NTSTATUS>; pub type KspVerifySignatureFn = Option super::super::super::Foundation::NTSTATUS>; pub const LCRED_CRED_EXISTS: u32 = 1u32; @@ -3911,7 +3911,7 @@ pub struct MSV1_0_CHANGEPASSWORD_REQUEST { pub AccountName: LSA_UNICODE_STRING, pub OldPassword: LSA_UNICODE_STRING, pub NewPassword: LSA_UNICODE_STRING, - pub Impersonating: super::super::super::Foundation::BOOLEAN, + pub Impersonating: bool, } impl Default for MSV1_0_CHANGEPASSWORD_REQUEST { fn default() -> Self { @@ -3922,7 +3922,7 @@ impl Default for MSV1_0_CHANGEPASSWORD_REQUEST { #[derive(Clone, Copy, Debug, PartialEq)] pub struct MSV1_0_CHANGEPASSWORD_RESPONSE { pub MessageType: MSV1_0_PROTOCOL_MESSAGE_TYPE, - pub PasswordInfoValid: super::super::super::Foundation::BOOLEAN, + pub PasswordInfoValid: bool, pub DomainPasswordInfo: DOMAIN_PASSWORD_INFORMATION, } impl Default for MSV1_0_CHANGEPASSWORD_RESPONSE { @@ -4263,7 +4263,7 @@ pub struct MSV1_0_VALIDATION_INFO { pub LogonServer: LSA_UNICODE_STRING, pub LogonDomainName: LSA_UNICODE_STRING, pub SessionKey: USER_SESSION_KEY, - pub Authoritative: super::super::super::Foundation::BOOLEAN, + pub Authoritative: bool, pub UserFlags: u32, pub WhichFields: u32, pub UserId: u32, @@ -4592,7 +4592,7 @@ pub type PKSEC_DEREFERENCE_LIST_ENTRY = Option; pub type PKSEC_LOCATE_PKG_BY_ID = Option *mut core::ffi::c_void>; #[cfg(feature = "Win32_System_Kernel")] -pub type PKSEC_REFERENCE_LIST_ENTRY = Option super::super::super::Foundation::NTSTATUS>; +pub type PKSEC_REFERENCE_LIST_ENTRY = Option super::super::super::Foundation::NTSTATUS>; pub type PKSEC_SERIALIZE_SCHANNEL_AUTH_DATA = Option super::super::super::Foundation::NTSTATUS>; pub type PKSEC_SERIALIZE_WINNT_AUTH_DATA = Option super::super::super::Foundation::NTSTATUS>; #[repr(C)] @@ -4698,7 +4698,7 @@ pub type PLSA_AP_POST_LOGON_USER_SURROGATE = Option< ) -> super::super::super::Foundation::NTSTATUS, >; pub type PLSA_AP_PRE_LOGON_USER_SURROGATE = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_AUDIT_ACCOUNT_LOGON = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_AUDIT_ACCOUNT_LOGON = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_AUDIT_LOGON = Option; pub type PLSA_AUDIT_LOGON_EX = Option; pub type PLSA_CALLBACK_FUNCTION = Option super::super::super::Foundation::NTSTATUS>; @@ -4706,13 +4706,13 @@ pub type PLSA_CALL_PACKAGE = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CALL_PACKAGE_PASSTHROUGH = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CANCEL_NOTIFICATION = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_CHECK_PROTECTED_USER_BY_TOKEN = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_CHECK_PROTECTED_USER_BY_TOKEN = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CLIENT_CALLBACK = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CLOSE_SAM_USER = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CONVERT_AUTH_DATA_TO_TOKEN = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_COPY_FROM_CLIENT_BUFFER = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_COPY_TO_CLIENT_BUFFER = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_CRACK_SINGLE_NAME = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_CRACK_SINGLE_NAME = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CREATE_LOGON_SESSION = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_CREATE_SHARED_MEMORY = Option *mut core::ffi::c_void>; #[cfg(feature = "Win32_System_Threading")] @@ -4721,19 +4721,19 @@ pub type PLSA_CREATE_TOKEN = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_DELETE_CREDENTIAL = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_DELETE_LOGON_SESSION = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_DELETE_SHARED_MEMORY = Option super::super::super::Foundation::BOOLEAN>; +pub type PLSA_DELETE_SHARED_MEMORY = Option bool>; pub type PLSA_DUPLICATE_HANDLE = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_EXPAND_AUTH_DATA_FOR_DOMAIN = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_FREE_CLIENT_BUFFER = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_FREE_LSA_HEAP = Option; pub type PLSA_FREE_PRIVATE_HEAP = Option; pub type PLSA_FREE_SHARED_MEMORY = Option; -pub type PLSA_GET_APP_MODE_INFO = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_GET_APP_MODE_INFO = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_GET_AUTH_DATA_FOR_USER = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_GET_CALL_INFO = Option super::super::super::Foundation::BOOLEAN>; +pub type PLSA_GET_CALL_INFO = Option bool>; pub type PLSA_GET_CLIENT_INFO = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_GET_CLIENT_INFO_EX = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_GET_CREDENTIALS = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_GET_CREDENTIALS = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_GET_EXTENDED_CALL_FLAGS = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_GET_SERVICE_ACCOUNT_PASSWORD = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_GET_USER_AUTH_DATA = Option super::super::super::Foundation::NTSTATUS>; @@ -4741,7 +4741,7 @@ pub type PLSA_GET_USER_CREDENTIALS = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_LOCATE_PKG_BY_ID = Option *mut core::ffi::c_void>; pub type PLSA_MAP_BUFFER = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_OPEN_SAM_USER = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_OPEN_SAM_USER = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_OPEN_TOKEN_BY_LOGON_ID = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_PROTECT_MEMORY = Option; pub type PLSA_QUERY_CLIENT_REQUEST = Option super::super::super::Foundation::NTSTATUS>; @@ -4754,8 +4754,8 @@ pub type PLSA_REDIRECTED_LOGON_INIT = Option super::super::super::Foundation::NTSTATUS>; #[cfg(feature = "Win32_System_Threading")] pub type PLSA_REGISTER_NOTIFICATION = Option super::super::super::Foundation::HANDLE>; -pub type PLSA_SAVE_SUPPLEMENTAL_CREDENTIALS = Option super::super::super::Foundation::NTSTATUS>; -pub type PLSA_SET_APP_MODE_INFO = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_SAVE_SUPPLEMENTAL_CREDENTIALS = Option super::super::super::Foundation::NTSTATUS>; +pub type PLSA_SET_APP_MODE_INFO = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_UNLOAD_PACKAGE = Option super::super::super::Foundation::NTSTATUS>; pub type PLSA_UPDATE_PRIMARY_CREDENTIALS = Option super::super::super::Foundation::NTSTATUS>; #[repr(C)] @@ -4783,7 +4783,7 @@ impl Default for POLICY_AUDIT_CATEGORIES_INFO { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct POLICY_AUDIT_EVENTS_INFO { - pub AuditingMode: super::super::super::Foundation::BOOLEAN, + pub AuditingMode: bool, pub EventAuditingOptions: *mut u32, pub MaximumAuditEventCount: u32, } @@ -4802,8 +4802,8 @@ pub const POLICY_AUDIT_EVENT_UNCHANGED: i32 = 0i32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct POLICY_AUDIT_FULL_QUERY_INFO { - pub ShutDownOnFull: super::super::super::Foundation::BOOLEAN, - pub LogIsFull: super::super::super::Foundation::BOOLEAN, + pub ShutDownOnFull: bool, + pub LogIsFull: bool, } impl Default for POLICY_AUDIT_FULL_QUERY_INFO { fn default() -> Self { @@ -4813,7 +4813,7 @@ impl Default for POLICY_AUDIT_FULL_QUERY_INFO { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct POLICY_AUDIT_FULL_SET_INFO { - pub ShutDownOnFull: super::super::super::Foundation::BOOLEAN, + pub ShutDownOnFull: bool, } impl Default for POLICY_AUDIT_FULL_SET_INFO { fn default() -> Self { @@ -4827,7 +4827,7 @@ pub struct POLICY_AUDIT_LOG_INFO { pub AuditLogPercentFull: u32, pub MaximumLogSize: u32, pub AuditRetentionPeriod: i64, - pub AuditLogFullShutdownInProgress: super::super::super::Foundation::BOOLEAN, + pub AuditLogFullShutdownInProgress: bool, pub TimeToShutdown: i64, pub NextAuditRecordId: u32, } @@ -5046,9 +5046,9 @@ pub const PRIMARY_CRED_UPDATE: u32 = 4u32; pub type PSAM_CREDENTIAL_UPDATE_FREE_ROUTINE = Option; pub type PSAM_CREDENTIAL_UPDATE_NOTIFY_ROUTINE = Option super::super::super::Foundation::NTSTATUS>; pub type PSAM_CREDENTIAL_UPDATE_REGISTER_MAPPED_ENTRYPOINTS_ROUTINE = Option super::super::super::Foundation::NTSTATUS>; -pub type PSAM_CREDENTIAL_UPDATE_REGISTER_ROUTINE = Option super::super::super::Foundation::BOOLEAN>; -pub type PSAM_INIT_NOTIFICATION_ROUTINE = Option super::super::super::Foundation::BOOLEAN>; -pub type PSAM_PASSWORD_FILTER_ROUTINE = Option super::super::super::Foundation::BOOLEAN>; +pub type PSAM_CREDENTIAL_UPDATE_REGISTER_ROUTINE = Option bool>; +pub type PSAM_INIT_NOTIFICATION_ROUTINE = Option bool>; +pub type PSAM_PASSWORD_FILTER_ROUTINE = Option bool>; pub type PSAM_PASSWORD_NOTIFICATION_ROUTINE = Option super::super::super::Foundation::NTSTATUS>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -5135,7 +5135,7 @@ pub const SAM_PASSWORD_FILTER_ROUTINE: windows_core::PCSTR = windows_core::s!("P pub struct SAM_REGISTER_MAPPING_ELEMENT { pub Original: windows_core::PSTR, pub Mapped: windows_core::PSTR, - pub Continuable: super::super::super::Foundation::BOOLEAN, + pub Continuable: bool, } impl Default for SAM_REGISTER_MAPPING_ELEMENT { fn default() -> Self { @@ -5496,7 +5496,7 @@ pub struct SECPKG_APP_MODE_INFO { pub Argument1: usize, pub Argument2: usize, pub UserData: SecBuffer, - pub ReturnToLsa: super::super::super::Foundation::BOOLEAN, + pub ReturnToLsa: bool, } impl Default for SECPKG_APP_MODE_INFO { fn default() -> Self { @@ -5694,9 +5694,9 @@ pub struct SECPKG_CLIENT_INFO { pub LogonId: super::super::super::Foundation::LUID, pub ProcessID: u32, pub ThreadID: u32, - pub HasTcbPrivilege: super::super::super::Foundation::BOOLEAN, - pub Impersonating: super::super::super::Foundation::BOOLEAN, - pub Restricted: super::super::super::Foundation::BOOLEAN, + pub HasTcbPrivilege: bool, + pub Impersonating: bool, + pub Restricted: bool, pub ClientFlags: u8, pub ImpersonationLevel: super::super::SECURITY_IMPERSONATION_LEVEL, pub ClientToken: super::super::super::Foundation::HANDLE, @@ -5712,9 +5712,9 @@ pub struct SECPKG_CLIENT_INFO_EX { pub LogonId: super::super::super::Foundation::LUID, pub ProcessID: u32, pub ThreadID: u32, - pub HasTcbPrivilege: super::super::super::Foundation::BOOLEAN, - pub Impersonating: super::super::super::Foundation::BOOLEAN, - pub Restricted: super::super::super::Foundation::BOOLEAN, + pub HasTcbPrivilege: bool, + pub Impersonating: bool, + pub Restricted: bool, pub ClientFlags: u8, pub ImpersonationLevel: super::super::SECURITY_IMPERSONATION_LEVEL, pub ClientToken: super::super::super::Foundation::HANDLE, @@ -8730,11 +8730,11 @@ impl Default for SecurityFunctionTableW { } } pub type SpAcceptCredentialsFn = Option super::super::super::Foundation::NTSTATUS>; -pub type SpAcceptLsaModeContextFn = Option super::super::super::Foundation::NTSTATUS>; +pub type SpAcceptLsaModeContextFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpAcquireCredentialsHandleFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpAddCredentialsFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpApplyControlTokenFn = Option super::super::super::Foundation::NTSTATUS>; -pub type SpChangeAccountPasswordFn = Option super::super::super::Foundation::NTSTATUS>; +pub type SpChangeAccountPasswordFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpCompleteAuthTokenFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpDeleteContextFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpDeleteCredentialsFn = Option super::super::super::Foundation::NTSTATUS>; @@ -8753,7 +8753,7 @@ pub type SpGetRemoteCredGuardSupplementalCredsFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpGetUserInfoFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpImportSecurityContextFn = Option super::super::super::Foundation::NTSTATUS>; -pub type SpInitLsaModeContextFn = Option super::super::super::Foundation::NTSTATUS>; +pub type SpInitLsaModeContextFn = Option super::super::super::Foundation::NTSTATUS>; pub type SpInitUserModeContextFn = Option super::super::super::Foundation::NTSTATUS>; #[cfg(all(feature = "Win32_Security_Credentials", feature = "Win32_System_Threading"))] pub type SpInitializeFn = Option super::super::super::Foundation::NTSTATUS>; @@ -9145,10 +9145,10 @@ pub struct USER_ALL_INFORMATION { pub LogonCount: u16, pub CountryCode: u16, pub CodePage: u16, - pub LmPasswordPresent: super::super::super::Foundation::BOOLEAN, - pub NtPasswordPresent: super::super::super::Foundation::BOOLEAN, - pub PasswordExpired: super::super::super::Foundation::BOOLEAN, - pub PrivateDataSensitive: super::super::super::Foundation::BOOLEAN, + pub LmPasswordPresent: bool, + pub NtPasswordPresent: bool, + pub PasswordExpired: bool, + pub PrivateDataSensitive: bool, } impl Default for USER_ALL_INFORMATION { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/mod.rs index 394252e3a4..dc432a27b7 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/mod.rs @@ -33,7 +33,7 @@ pub const DOBJ_VOL_NTACLS: i32 = 4i32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct EFFPERM_RESULT_LIST { - pub fEvaluated: super::super::super::Foundation::BOOLEAN, + pub fEvaluated: bool, pub cObjectTypeListLength: u32, pub pObjectTypeList: *mut super::super::OBJECT_TYPE_LIST, pub pGrantedAccessList: *mut u32, @@ -492,7 +492,7 @@ pub struct SECURITY_OBJECT { pub pData2: *mut core::ffi::c_void, pub cbData2: u32, pub Id: u32, - pub fWellKnown: super::super::super::Foundation::BOOLEAN, + pub fWellKnown: bool, } impl Default for SECURITY_OBJECT { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs index 84b7511a8d..234040d44c 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs @@ -177,7 +177,7 @@ pub struct CONFIG_CI_PROV_INFO_RESULT { pub hr: windows_core::HRESULT, pub dwResult: u32, pub dwPolicyIndex: u32, - pub fIsExplicitDeny: super::super::Foundation::BOOLEAN, + pub fIsExplicitDeny: bool, } impl Default for CONFIG_CI_PROV_INFO_RESULT { fn default() -> Self { @@ -191,7 +191,7 @@ pub struct CONFIG_CI_PROV_INFO_RESULT2 { pub hr: windows_core::HRESULT, pub dwResult: u32, pub dwPolicyIndex: u32, - pub fIsExplicitDeny: super::super::Foundation::BOOLEAN, + pub fIsExplicitDeny: bool, pub cbCalculatedFileHash: u32, pub pbCalculatedFileHash: *mut u8, } @@ -520,7 +520,7 @@ pub const HTTPS_FINALPOLICY_FUNCTION: windows_core::PCWSTR = windows_core::w!("H #[derive(Clone, Copy, Debug, PartialEq)] pub struct INTENT_TO_SEAL_ATTRIBUTE { pub version: u32, - pub seal: super::super::Foundation::BOOLEAN, + pub seal: bool, } impl Default for INTENT_TO_SEAL_ATTRIBUTE { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Security/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/mod.rs index bbe156b1e3..f7deac1c95 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/mod.rs @@ -378,8 +378,8 @@ pub unsafe fn CheckTokenMembershipEx(tokenhandle: Option, currentsecuritydescriptor: PSECURITY_DESCRIPTOR, newsecuritydescriptor: *mut PSECURITY_DESCRIPTOR, objecttype: Option<*const windows_core::GUID>, isdirectoryobject: bool, genericmapping: *const GENERIC_MAPPING) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor : PSECURITY_DESCRIPTOR, currentsecuritydescriptor : PSECURITY_DESCRIPTOR, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, objecttype : *const windows_core::GUID, isdirectoryobject : super::Foundation:: BOOLEAN, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); - ConvertToAutoInheritPrivateObjectSecurity(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(currentsecuritydescriptor), core::mem::transmute(newsecuritydescriptor), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), isdirectoryobject.into(), core::mem::transmute(genericmapping)).ok() + windows_targets::link!("advapi32.dll" "system" fn ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor : PSECURITY_DESCRIPTOR, currentsecuritydescriptor : PSECURITY_DESCRIPTOR, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, objecttype : *const windows_core::GUID, isdirectoryobject : bool, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); + ConvertToAutoInheritPrivateObjectSecurity(core::mem::transmute(parentdescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(currentsecuritydescriptor), core::mem::transmute(newsecuritydescriptor), core::mem::transmute(objecttype.unwrap_or(core::mem::zeroed())), core::mem::transmute(isdirectoryobject), core::mem::transmute(genericmapping)).ok() } #[inline] pub unsafe fn CopySid(ndestinationsidlength: u32, pdestinationsid: PSID, psourcesid: PSID) -> windows_core::Result<()> { @@ -945,13 +945,13 @@ pub unsafe fn RevertToSelf() -> windows_core::Result<()> { } #[inline] pub unsafe fn RtlConvertSidToUnicodeString(unicodestring: *mut super::Foundation::UNICODE_STRING, sid: PSID, allocatedestinationstring: bool) -> super::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlConvertSidToUnicodeString(unicodestring : *mut super::Foundation:: UNICODE_STRING, sid : PSID, allocatedestinationstring : super::Foundation:: BOOLEAN) -> super::Foundation:: NTSTATUS); - RtlConvertSidToUnicodeString(core::mem::transmute(unicodestring), core::mem::transmute(sid), allocatedestinationstring.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlConvertSidToUnicodeString(unicodestring : *mut super::Foundation:: UNICODE_STRING, sid : PSID, allocatedestinationstring : bool) -> super::Foundation:: NTSTATUS); + RtlConvertSidToUnicodeString(core::mem::transmute(unicodestring), core::mem::transmute(sid), core::mem::transmute(allocatedestinationstring)) } #[inline] -pub unsafe fn RtlNormalizeSecurityDescriptor(securitydescriptor: *mut PSECURITY_DESCRIPTOR, securitydescriptorlength: u32, newsecuritydescriptor: Option<*mut PSECURITY_DESCRIPTOR>, newsecuritydescriptorlength: Option<*mut u32>, checkonly: bool) -> super::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlNormalizeSecurityDescriptor(securitydescriptor : *mut PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, newsecuritydescriptorlength : *mut u32, checkonly : super::Foundation:: BOOLEAN) -> super::Foundation:: BOOLEAN); - RtlNormalizeSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(securitydescriptorlength), core::mem::transmute(newsecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newsecuritydescriptorlength.unwrap_or(core::mem::zeroed())), checkonly.into()) +pub unsafe fn RtlNormalizeSecurityDescriptor(securitydescriptor: *mut PSECURITY_DESCRIPTOR, securitydescriptorlength: u32, newsecuritydescriptor: Option<*mut PSECURITY_DESCRIPTOR>, newsecuritydescriptorlength: Option<*mut u32>, checkonly: bool) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlNormalizeSecurityDescriptor(securitydescriptor : *mut PSECURITY_DESCRIPTOR, securitydescriptorlength : u32, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, newsecuritydescriptorlength : *mut u32, checkonly : bool) -> bool); + RtlNormalizeSecurityDescriptor(core::mem::transmute(securitydescriptor), core::mem::transmute(securitydescriptorlength), core::mem::transmute(newsecuritydescriptor.unwrap_or(core::mem::zeroed())), core::mem::transmute(newsecuritydescriptorlength.unwrap_or(core::mem::zeroed())), core::mem::transmute(checkonly)) } #[inline] pub unsafe fn SetAclInformation(pacl: *mut ACL, paclinformation: *const core::ffi::c_void, naclinformationlength: u32, dwaclinformationclass: ACL_INFORMATION_CLASS) -> windows_core::Result<()> { @@ -1830,7 +1830,7 @@ impl Default for SECURITY_DESCRIPTOR_RELATIVE { unsafe { core::mem::zeroed() } } } -pub const SECURITY_DYNAMIC_TRACKING: super::Foundation::BOOLEAN = super::Foundation::BOOLEAN(1u8); +pub const SECURITY_DYNAMIC_TRACKING: bool = true; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct SECURITY_IMPERSONATION_LEVEL(pub i32); @@ -1847,7 +1847,7 @@ pub struct SECURITY_QUALITY_OF_SERVICE { pub Length: u32, pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, pub ContextTrackingMode: u8, - pub EffectiveOnly: super::Foundation::BOOLEAN, + pub EffectiveOnly: bool, } impl Default for SECURITY_QUALITY_OF_SERVICE { fn default() -> Self { @@ -1856,7 +1856,7 @@ impl Default for SECURITY_QUALITY_OF_SERVICE { } pub const SECURITY_RESOURCE_MANAGER_AUTHORITY: SID_IDENTIFIER_AUTHORITY = SID_IDENTIFIER_AUTHORITY { Value: [0, 0, 0, 0, 0, 9] }; pub const SECURITY_SCOPED_POLICY_ID_AUTHORITY: SID_IDENTIFIER_AUTHORITY = SID_IDENTIFIER_AUTHORITY { Value: [0, 0, 0, 0, 0, 17] }; -pub const SECURITY_STATIC_TRACKING: super::Foundation::BOOLEAN = super::Foundation::BOOLEAN(0u8); +pub const SECURITY_STATIC_TRACKING: bool = false; pub const SECURITY_WORLD_SID_AUTHORITY: SID_IDENTIFIER_AUTHORITY = SID_IDENTIFIER_AUTHORITY { Value: [0, 0, 0, 0, 0, 1] }; pub type SEC_THREAD_START = Option u32>; pub const SEF_AVOID_OWNER_CHECK: SECURITY_AUTO_INHERIT_FLAGS = SECURITY_AUTO_INHERIT_FLAGS(16u32); @@ -1925,8 +1925,8 @@ pub const SE_IMPERSONATE_NAME: windows_core::PCWSTR = windows_core::w!("SeImpers #[derive(Clone, Copy, Debug, PartialEq)] pub struct SE_IMPERSONATION_STATE { pub Token: *mut core::ffi::c_void, - pub CopyOnOpen: super::Foundation::BOOLEAN, - pub EffectiveOnly: super::Foundation::BOOLEAN, + pub CopyOnOpen: bool, + pub EffectiveOnly: bool, pub Level: SECURITY_IMPERSONATION_LEVEL, } impl Default for SE_IMPERSONATION_STATE { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs index a29fb5c97f..1305a32eea 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs @@ -135,8 +135,8 @@ pub unsafe fn CfQuerySyncProviderStatus(connectionkey: CF_CONNECTION_KEY) -> win CfQuerySyncProviderStatus(core::mem::transmute(connectionkey), &mut result__).map(|| core::mem::transmute(result__)) } #[inline] -pub unsafe fn CfReferenceProtectedHandle(protectedhandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("cldapi.dll" "system" fn CfReferenceProtectedHandle(protectedhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn CfReferenceProtectedHandle(protectedhandle: super::super::Foundation::HANDLE) -> bool { + windows_targets::link!("cldapi.dll" "system" fn CfReferenceProtectedHandle(protectedhandle : super::super::Foundation:: HANDLE) -> bool); CfReferenceProtectedHandle(core::mem::transmute(protectedhandle)) } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs index ffdeb88b9a..6b119e2842 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs @@ -466,39 +466,39 @@ where (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] -pub unsafe fn CreateSymbolicLinkA(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS) -> super::super::Foundation::BOOLEAN +pub unsafe fn CreateSymbolicLinkA(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS) -> bool where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkA(lpsymlinkfilename : windows_core::PCSTR, lptargetfilename : windows_core::PCSTR, dwflags : SYMBOLIC_LINK_FLAGS) -> super::super::Foundation:: BOOLEAN); + windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkA(lpsymlinkfilename : windows_core::PCSTR, lptargetfilename : windows_core::PCSTR, dwflags : SYMBOLIC_LINK_FLAGS) -> bool); CreateSymbolicLinkA(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), core::mem::transmute(dwflags)) } #[inline] -pub unsafe fn CreateSymbolicLinkTransactedA(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS, htransaction: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOLEAN +pub unsafe fn CreateSymbolicLinkTransactedA(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS, htransaction: super::super::Foundation::HANDLE) -> bool where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkTransactedA(lpsymlinkfilename : windows_core::PCSTR, lptargetfilename : windows_core::PCSTR, dwflags : SYMBOLIC_LINK_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOLEAN); + windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkTransactedA(lpsymlinkfilename : windows_core::PCSTR, lptargetfilename : windows_core::PCSTR, dwflags : SYMBOLIC_LINK_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> bool); CreateSymbolicLinkTransactedA(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(htransaction)) } #[inline] -pub unsafe fn CreateSymbolicLinkTransactedW(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS, htransaction: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOLEAN +pub unsafe fn CreateSymbolicLinkTransactedW(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS, htransaction: super::super::Foundation::HANDLE) -> bool where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkTransactedW(lpsymlinkfilename : windows_core::PCWSTR, lptargetfilename : windows_core::PCWSTR, dwflags : SYMBOLIC_LINK_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOLEAN); + windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkTransactedW(lpsymlinkfilename : windows_core::PCWSTR, lptargetfilename : windows_core::PCWSTR, dwflags : SYMBOLIC_LINK_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> bool); CreateSymbolicLinkTransactedW(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), core::mem::transmute(dwflags), core::mem::transmute(htransaction)) } #[inline] -pub unsafe fn CreateSymbolicLinkW(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS) -> super::super::Foundation::BOOLEAN +pub unsafe fn CreateSymbolicLinkW(lpsymlinkfilename: P0, lptargetfilename: P1, dwflags: SYMBOLIC_LINK_FLAGS) -> bool where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkW(lpsymlinkfilename : windows_core::PCWSTR, lptargetfilename : windows_core::PCWSTR, dwflags : SYMBOLIC_LINK_FLAGS) -> super::super::Foundation:: BOOLEAN); + windows_targets::link!("kernel32.dll" "system" fn CreateSymbolicLinkW(lpsymlinkfilename : windows_core::PCWSTR, lptargetfilename : windows_core::PCWSTR, dwflags : SYMBOLIC_LINK_FLAGS) -> bool); CreateSymbolicLinkW(lpsymlinkfilename.param().abi(), lptargetfilename.param().abi(), core::mem::transmute(dwflags)) } #[inline] @@ -1668,13 +1668,13 @@ pub unsafe fn LsnCreate(cidcontainer: u32, offblock: u32, crecord: u32) -> CLS_L LsnCreate(core::mem::transmute(cidcontainer), core::mem::transmute(offblock), core::mem::transmute(crecord)) } #[inline] -pub unsafe fn LsnEqual(plsn1: *const CLS_LSN, plsn2: *const CLS_LSN) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("clfsw32.dll" "system" fn LsnEqual(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn LsnEqual(plsn1: *const CLS_LSN, plsn2: *const CLS_LSN) -> bool { + windows_targets::link!("clfsw32.dll" "system" fn LsnEqual(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> bool); LsnEqual(core::mem::transmute(plsn1), core::mem::transmute(plsn2)) } #[inline] -pub unsafe fn LsnGreater(plsn1: *const CLS_LSN, plsn2: *const CLS_LSN) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("clfsw32.dll" "system" fn LsnGreater(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn LsnGreater(plsn1: *const CLS_LSN, plsn2: *const CLS_LSN) -> bool { + windows_targets::link!("clfsw32.dll" "system" fn LsnGreater(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> bool); LsnGreater(core::mem::transmute(plsn1), core::mem::transmute(plsn2)) } #[inline] @@ -1683,18 +1683,18 @@ pub unsafe fn LsnIncrement(plsn: *const CLS_LSN) -> CLS_LSN { LsnIncrement(core::mem::transmute(plsn)) } #[inline] -pub unsafe fn LsnInvalid(plsn: *const CLS_LSN) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("clfsw32.dll" "system" fn LsnInvalid(plsn : *const CLS_LSN) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn LsnInvalid(plsn: *const CLS_LSN) -> bool { + windows_targets::link!("clfsw32.dll" "system" fn LsnInvalid(plsn : *const CLS_LSN) -> bool); LsnInvalid(core::mem::transmute(plsn)) } #[inline] -pub unsafe fn LsnLess(plsn1: *const CLS_LSN, plsn2: *const CLS_LSN) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("clfsw32.dll" "system" fn LsnLess(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn LsnLess(plsn1: *const CLS_LSN, plsn2: *const CLS_LSN) -> bool { + windows_targets::link!("clfsw32.dll" "system" fn LsnLess(plsn1 : *const CLS_LSN, plsn2 : *const CLS_LSN) -> bool); LsnLess(core::mem::transmute(plsn1), core::mem::transmute(plsn2)) } #[inline] -pub unsafe fn LsnNull(plsn: *const CLS_LSN) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("clfsw32.dll" "system" fn LsnNull(plsn : *const CLS_LSN) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn LsnNull(plsn: *const CLS_LSN) -> bool { + windows_targets::link!("clfsw32.dll" "system" fn LsnNull(plsn : *const CLS_LSN) -> bool); LsnNull(core::mem::transmute(plsn)) } #[inline] @@ -2873,9 +2873,9 @@ pub unsafe fn Wow64DisableWow64FsRedirection(oldvalue: *mut *mut core::ffi::c_vo Wow64DisableWow64FsRedirection(core::mem::transmute(oldvalue)).ok() } #[inline] -pub unsafe fn Wow64EnableWow64FsRedirection(wow64fsenableredirection: bool) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("kernel32.dll" "system" fn Wow64EnableWow64FsRedirection(wow64fsenableredirection : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: BOOLEAN); - Wow64EnableWow64FsRedirection(wow64fsenableredirection.into()) +pub unsafe fn Wow64EnableWow64FsRedirection(wow64fsenableredirection: bool) -> bool { + windows_targets::link!("kernel32.dll" "system" fn Wow64EnableWow64FsRedirection(wow64fsenableredirection : bool) -> bool); + Wow64EnableWow64FsRedirection(core::mem::transmute(wow64fsenableredirection)) } #[inline] pub unsafe fn Wow64RevertWow64FsRedirection(olvalue: *const core::ffi::c_void) -> windows_core::Result<()> { @@ -4330,7 +4330,7 @@ pub const FILE_DISPOSITION_FLAG_POSIX_SEMANTICS: FILE_DISPOSITION_INFO_EX_FLAGS #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FILE_DISPOSITION_INFO { - pub DeleteFile: super::super::Foundation::BOOLEAN, + pub DeleteFile: bool, } impl Default for FILE_DISPOSITION_INFO { fn default() -> Self { @@ -4820,7 +4820,7 @@ impl Default for FILE_RENAME_INFO { #[repr(C)] #[derive(Clone, Copy)] pub union FILE_RENAME_INFO_0 { - pub ReplaceIfExists: super::super::Foundation::BOOLEAN, + pub ReplaceIfExists: bool, pub Flags: u32, } impl Default for FILE_RENAME_INFO_0 { @@ -4885,8 +4885,8 @@ pub struct FILE_STANDARD_INFO { pub AllocationSize: i64, pub EndOfFile: i64, pub NumberOfLinks: u32, - pub DeletePending: super::super::Foundation::BOOLEAN, - pub Directory: super::super::Foundation::BOOLEAN, + pub DeletePending: bool, + pub Directory: bool, } impl Default for FILE_STANDARD_INFO { fn default() -> Self { @@ -7745,7 +7745,7 @@ pub const SECURITY_VALID_SQOS_FLAGS: FILE_FLAGS_AND_ATTRIBUTES = FILE_FLAGS_AND_ pub struct SERVER_ALIAS_INFO_0 { pub srvai0_alias: windows_core::PWSTR, pub srvai0_target: windows_core::PWSTR, - pub srvai0_default: super::super::Foundation::BOOLEAN, + pub srvai0_default: bool, pub srvai0_reserved: u32, } impl Default for SERVER_ALIAS_INFO_0 { @@ -8228,7 +8228,7 @@ pub const TAPE_ABSOLUTE_POSITION: TAPE_POSITION_TYPE = TAPE_POSITION_TYPE(0u32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct TAPE_ERASE { pub Type: ERASE_TAPE_TYPE, - pub Immediate: super::super::Foundation::BOOLEAN, + pub Immediate: bool, } impl Default for TAPE_ERASE { fn default() -> Self { @@ -8271,7 +8271,7 @@ pub struct TAPE_POSITION_TYPE(pub u32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct TAPE_PREPARE { pub Operation: PREPARE_TAPE_OPERATION, - pub Immediate: super::super::Foundation::BOOLEAN, + pub Immediate: bool, } impl Default for TAPE_PREPARE { fn default() -> Self { @@ -8287,7 +8287,7 @@ pub struct TAPE_SET_POSITION { pub Method: TAPE_POSITION_METHOD, pub Partition: u32, pub Offset: i64, - pub Immediate: super::super::Foundation::BOOLEAN, + pub Immediate: bool, } impl Default for TAPE_SET_POSITION { fn default() -> Self { @@ -8309,7 +8309,7 @@ pub const TAPE_UNLOCK: PREPARE_TAPE_OPERATION = PREPARE_TAPE_OPERATION(4u32); pub struct TAPE_WRITE_MARKS { pub Type: TAPEMARK_TYPE, pub Count: u32, - pub Immediate: super::super::Foundation::BOOLEAN, + pub Immediate: bool, } impl Default for TAPE_WRITE_MARKS { fn default() -> Self { @@ -8669,9 +8669,9 @@ pub struct VOLUME_ALLOCATE_BC_STREAM_INPUT { pub Version: u32, pub RequestsPerPeriod: u32, pub Period: u32, - pub RetryFailures: super::super::Foundation::BOOLEAN, - pub Discardable: super::super::Foundation::BOOLEAN, - pub Reserved1: [super::super::Foundation::BOOLEAN; 2], + pub RetryFailures: bool, + pub Discardable: bool, + pub Reserved1: [bool; 2], pub LowestByteOffset: u64, pub HighestByteOffset: u64, pub AccessType: u32, @@ -8831,8 +8831,8 @@ impl Default for VOLUME_READ_PLEX_INPUT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct VOLUME_SET_GPT_ATTRIBUTES_INFORMATION { pub GptAttributes: u64, - pub RevertOnClose: super::super::Foundation::BOOLEAN, - pub ApplyToAllConnectedVolumes: super::super::Foundation::BOOLEAN, + pub RevertOnClose: bool, + pub ApplyToAllConnectedVolumes: bool, pub Reserved1: u16, pub Reserved2: u32, } diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs index 166f727481..7a22e3ca36 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs @@ -3934,7 +3934,7 @@ impl IDiscRecorder2Ex { (windows_core::Interface::vtable(self).GetTrackInformation)(windows_core::Interface::as_raw(self), core::mem::transmute(address), core::mem::transmute(addresstype), core::mem::transmute(trackinformation), core::mem::transmute(bytesize)).ok() } pub unsafe fn GetFeaturePage(&self, requestedfeature: IMAPI_FEATURE_PAGE_TYPE, currentfeatureonly: bool, featuredata: *mut *mut u8, bytesize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetFeaturePage)(windows_core::Interface::as_raw(self), core::mem::transmute(requestedfeature), currentfeatureonly.into(), core::mem::transmute(featuredata), core::mem::transmute(bytesize)).ok() + (windows_core::Interface::vtable(self).GetFeaturePage)(windows_core::Interface::as_raw(self), core::mem::transmute(requestedfeature), core::mem::transmute(currentfeatureonly), core::mem::transmute(featuredata), core::mem::transmute(bytesize)).ok() } pub unsafe fn GetModePage(&self, requestedmodepage: IMAPI_MODE_PAGE_TYPE, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, modepagedata: *mut *mut u8, bytesize: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetModePage)(windows_core::Interface::as_raw(self), core::mem::transmute(requestedmodepage), core::mem::transmute(requesttype), core::mem::transmute(modepagedata), core::mem::transmute(bytesize)).ok() @@ -3943,10 +3943,10 @@ impl IDiscRecorder2Ex { (windows_core::Interface::vtable(self).SetModePage)(windows_core::Interface::as_raw(self), core::mem::transmute(requesttype), core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() } pub unsafe fn GetSupportedFeaturePages(&self, currentfeatureonly: bool, featuredata: *mut *mut IMAPI_FEATURE_PAGE_TYPE, bytesize: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSupportedFeaturePages)(windows_core::Interface::as_raw(self), currentfeatureonly.into(), core::mem::transmute(featuredata), core::mem::transmute(bytesize)).ok() + (windows_core::Interface::vtable(self).GetSupportedFeaturePages)(windows_core::Interface::as_raw(self), core::mem::transmute(currentfeatureonly), core::mem::transmute(featuredata), core::mem::transmute(bytesize)).ok() } pub unsafe fn GetSupportedProfiles(&self, currentonly: bool, profiletypes: *mut *mut IMAPI_PROFILE_TYPE, validprofiles: *mut u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetSupportedProfiles)(windows_core::Interface::as_raw(self), currentonly.into(), core::mem::transmute(profiletypes), core::mem::transmute(validprofiles)).ok() + (windows_core::Interface::vtable(self).GetSupportedProfiles)(windows_core::Interface::as_raw(self), core::mem::transmute(currentonly), core::mem::transmute(profiletypes), core::mem::transmute(validprofiles)).ok() } pub unsafe fn GetSupportedModePages(&self, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, modepagetypes: *mut *mut IMAPI_MODE_PAGE_TYPE, validpages: *mut u32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).GetSupportedModePages)(windows_core::Interface::as_raw(self), core::mem::transmute(requesttype), core::mem::transmute(modepagetypes), core::mem::transmute(validpages)).ok() @@ -3976,11 +3976,11 @@ pub struct IDiscRecorder2Ex_Vtbl { pub GetDeviceDescriptor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u8, *mut u32) -> windows_core::HRESULT, pub GetDiscInformation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u8, *mut u32) -> windows_core::HRESULT, pub GetTrackInformation: unsafe extern "system" fn(*mut core::ffi::c_void, u32, IMAPI_READ_TRACK_ADDRESS_TYPE, *mut *mut u8, *mut u32) -> windows_core::HRESULT, - pub GetFeaturePage: unsafe extern "system" fn(*mut core::ffi::c_void, IMAPI_FEATURE_PAGE_TYPE, super::super::Foundation::BOOLEAN, *mut *mut u8, *mut u32) -> windows_core::HRESULT, + pub GetFeaturePage: unsafe extern "system" fn(*mut core::ffi::c_void, IMAPI_FEATURE_PAGE_TYPE, bool, *mut *mut u8, *mut u32) -> windows_core::HRESULT, pub GetModePage: unsafe extern "system" fn(*mut core::ffi::c_void, IMAPI_MODE_PAGE_TYPE, IMAPI_MODE_PAGE_REQUEST_TYPE, *mut *mut u8, *mut u32) -> windows_core::HRESULT, pub SetModePage: unsafe extern "system" fn(*mut core::ffi::c_void, IMAPI_MODE_PAGE_REQUEST_TYPE, *const u8, u32) -> windows_core::HRESULT, - pub GetSupportedFeaturePages: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOLEAN, *mut *mut IMAPI_FEATURE_PAGE_TYPE, *mut u32) -> windows_core::HRESULT, - pub GetSupportedProfiles: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOLEAN, *mut *mut IMAPI_PROFILE_TYPE, *mut u32) -> windows_core::HRESULT, + pub GetSupportedFeaturePages: unsafe extern "system" fn(*mut core::ffi::c_void, bool, *mut *mut IMAPI_FEATURE_PAGE_TYPE, *mut u32) -> windows_core::HRESULT, + pub GetSupportedProfiles: unsafe extern "system" fn(*mut core::ffi::c_void, bool, *mut *mut IMAPI_PROFILE_TYPE, *mut u32) -> windows_core::HRESULT, pub GetSupportedModePages: unsafe extern "system" fn(*mut core::ffi::c_void, IMAPI_MODE_PAGE_REQUEST_TYPE, *mut *mut IMAPI_MODE_PAGE_TYPE, *mut u32) -> windows_core::HRESULT, pub GetByteAlignmentMask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetMaximumNonPageAlignedTransferSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -3996,11 +3996,11 @@ pub trait IDiscRecorder2Ex_Impl: windows_core::IUnknownImpl { fn GetDeviceDescriptor(&self, data: *mut *mut u8, bytesize: *mut u32) -> windows_core::Result<()>; fn GetDiscInformation(&self, discinformation: *mut *mut u8, bytesize: *mut u32) -> windows_core::Result<()>; fn GetTrackInformation(&self, address: u32, addresstype: IMAPI_READ_TRACK_ADDRESS_TYPE, trackinformation: *mut *mut u8, bytesize: *mut u32) -> windows_core::Result<()>; - fn GetFeaturePage(&self, requestedfeature: IMAPI_FEATURE_PAGE_TYPE, currentfeatureonly: super::super::Foundation::BOOLEAN, featuredata: *mut *mut u8, bytesize: *mut u32) -> windows_core::Result<()>; + fn GetFeaturePage(&self, requestedfeature: IMAPI_FEATURE_PAGE_TYPE, currentfeatureonly: bool, featuredata: *mut *mut u8, bytesize: *mut u32) -> windows_core::Result<()>; fn GetModePage(&self, requestedmodepage: IMAPI_MODE_PAGE_TYPE, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, modepagedata: *mut *mut u8, bytesize: *mut u32) -> windows_core::Result<()>; fn SetModePage(&self, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, data: *const u8, bytesize: u32) -> windows_core::Result<()>; - fn GetSupportedFeaturePages(&self, currentfeatureonly: super::super::Foundation::BOOLEAN, featuredata: *mut *mut IMAPI_FEATURE_PAGE_TYPE, bytesize: *mut u32) -> windows_core::Result<()>; - fn GetSupportedProfiles(&self, currentonly: super::super::Foundation::BOOLEAN, profiletypes: *mut *mut IMAPI_PROFILE_TYPE, validprofiles: *mut u32) -> windows_core::Result<()>; + fn GetSupportedFeaturePages(&self, currentfeatureonly: bool, featuredata: *mut *mut IMAPI_FEATURE_PAGE_TYPE, bytesize: *mut u32) -> windows_core::Result<()>; + fn GetSupportedProfiles(&self, currentonly: bool, profiletypes: *mut *mut IMAPI_PROFILE_TYPE, validprofiles: *mut u32) -> windows_core::Result<()>; fn GetSupportedModePages(&self, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, modepagetypes: *mut *mut IMAPI_MODE_PAGE_TYPE, validpages: *mut u32) -> windows_core::Result<()>; fn GetByteAlignmentMask(&self) -> windows_core::Result; fn GetMaximumNonPageAlignedTransferSize(&self) -> windows_core::Result; @@ -4044,7 +4044,7 @@ impl IDiscRecorder2Ex_Vtbl { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::GetTrackInformation(this, core::mem::transmute_copy(&address), core::mem::transmute_copy(&addresstype), core::mem::transmute_copy(&trackinformation), core::mem::transmute_copy(&bytesize)).into() } - unsafe extern "system" fn GetFeaturePage(this: *mut core::ffi::c_void, requestedfeature: IMAPI_FEATURE_PAGE_TYPE, currentfeatureonly: super::super::Foundation::BOOLEAN, featuredata: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetFeaturePage(this: *mut core::ffi::c_void, requestedfeature: IMAPI_FEATURE_PAGE_TYPE, currentfeatureonly: bool, featuredata: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::GetFeaturePage(this, core::mem::transmute_copy(&requestedfeature), core::mem::transmute_copy(¤tfeatureonly), core::mem::transmute_copy(&featuredata), core::mem::transmute_copy(&bytesize)).into() } @@ -4056,11 +4056,11 @@ impl IDiscRecorder2Ex_Vtbl { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::SetModePage(this, core::mem::transmute_copy(&requesttype), core::mem::transmute_copy(&data), core::mem::transmute_copy(&bytesize)).into() } - unsafe extern "system" fn GetSupportedFeaturePages(this: *mut core::ffi::c_void, currentfeatureonly: super::super::Foundation::BOOLEAN, featuredata: *mut *mut IMAPI_FEATURE_PAGE_TYPE, bytesize: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetSupportedFeaturePages(this: *mut core::ffi::c_void, currentfeatureonly: bool, featuredata: *mut *mut IMAPI_FEATURE_PAGE_TYPE, bytesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::GetSupportedFeaturePages(this, core::mem::transmute_copy(¤tfeatureonly), core::mem::transmute_copy(&featuredata), core::mem::transmute_copy(&bytesize)).into() } - unsafe extern "system" fn GetSupportedProfiles(this: *mut core::ffi::c_void, currentonly: super::super::Foundation::BOOLEAN, profiletypes: *mut *mut IMAPI_PROFILE_TYPE, validprofiles: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetSupportedProfiles(this: *mut core::ffi::c_void, currentonly: bool, profiletypes: *mut *mut IMAPI_PROFILE_TYPE, validprofiles: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::GetSupportedProfiles(this, core::mem::transmute_copy(¤tonly), core::mem::transmute_copy(&profiletypes), core::mem::transmute_copy(&validprofiles)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Storage/IscsiDisc/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/IscsiDisc/mod.rs index 83f2437490..105d2d070c 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/IscsiDisc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/IscsiDisc/mod.rs @@ -46,8 +46,8 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiStaticTargetA(targetname : windows_core::PCSTR, targetalias : windows_core::PCSTR, targetflags : u32, persist : super::super::Foundation:: BOOLEAN, mappings : *mut ISCSI_TARGET_MAPPINGA, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPA) -> u32); - AddIScsiStaticTargetA(targetname.param().abi(), targetalias.param().abi(), core::mem::transmute(targetflags), persist.into(), core::mem::transmute(mappings), core::mem::transmute(loginoptions), core::mem::transmute(portalgroup)) + windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiStaticTargetA(targetname : windows_core::PCSTR, targetalias : windows_core::PCSTR, targetflags : u32, persist : bool, mappings : *mut ISCSI_TARGET_MAPPINGA, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPA) -> u32); + AddIScsiStaticTargetA(targetname.param().abi(), targetalias.param().abi(), core::mem::transmute(targetflags), core::mem::transmute(persist), core::mem::transmute(mappings), core::mem::transmute(loginoptions), core::mem::transmute(portalgroup)) } #[inline] pub unsafe fn AddIScsiStaticTargetW(targetname: P0, targetalias: P1, targetflags: u32, persist: bool, mappings: *mut ISCSI_TARGET_MAPPINGW, loginoptions: *mut ISCSI_LOGIN_OPTIONS, portalgroup: *mut ISCSI_TARGET_PORTAL_GROUPW) -> u32 @@ -55,8 +55,8 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiStaticTargetW(targetname : windows_core::PCWSTR, targetalias : windows_core::PCWSTR, targetflags : u32, persist : super::super::Foundation:: BOOLEAN, mappings : *mut ISCSI_TARGET_MAPPINGW, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPW) -> u32); - AddIScsiStaticTargetW(targetname.param().abi(), targetalias.param().abi(), core::mem::transmute(targetflags), persist.into(), core::mem::transmute(mappings), core::mem::transmute(loginoptions), core::mem::transmute(portalgroup)) + windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiStaticTargetW(targetname : windows_core::PCWSTR, targetalias : windows_core::PCWSTR, targetflags : u32, persist : bool, mappings : *mut ISCSI_TARGET_MAPPINGW, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPW) -> u32); + AddIScsiStaticTargetW(targetname.param().abi(), targetalias.param().abi(), core::mem::transmute(targetflags), core::mem::transmute(persist), core::mem::transmute(mappings), core::mem::transmute(loginoptions), core::mem::transmute(portalgroup)) } #[inline] pub unsafe fn AddPersistentIScsiDeviceA(devicepath: P0) -> u32 @@ -177,10 +177,10 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("iscsidsc.dll" "system" fn LoginIScsiTargetA(targetname : windows_core::PCSTR, isinformationalsession : super::super::Foundation:: BOOLEAN, initiatorinstance : windows_core::PCSTR, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALA, securityflags : u64, mappings : *mut ISCSI_TARGET_MAPPINGA, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : windows_core::PCSTR, ispersistent : super::super::Foundation:: BOOLEAN, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); + windows_targets::link!("iscsidsc.dll" "system" fn LoginIScsiTargetA(targetname : windows_core::PCSTR, isinformationalsession : bool, initiatorinstance : windows_core::PCSTR, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALA, securityflags : u64, mappings : *mut ISCSI_TARGET_MAPPINGA, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : windows_core::PCSTR, ispersistent : bool, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); LoginIScsiTargetA( targetname.param().abi(), - isinformationalsession.into(), + core::mem::transmute(isinformationalsession), initiatorinstance.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(targetportal), @@ -189,7 +189,7 @@ where core::mem::transmute(loginoptions), key.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(key.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - ispersistent.into(), + core::mem::transmute(ispersistent), core::mem::transmute(uniquesessionid), core::mem::transmute(uniqueconnectionid), ) @@ -200,10 +200,10 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("iscsidsc.dll" "system" fn LoginIScsiTargetW(targetname : windows_core::PCWSTR, isinformationalsession : super::super::Foundation:: BOOLEAN, initiatorinstance : windows_core::PCWSTR, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALW, securityflags : u64, mappings : *mut ISCSI_TARGET_MAPPINGW, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : windows_core::PCSTR, ispersistent : super::super::Foundation:: BOOLEAN, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); + windows_targets::link!("iscsidsc.dll" "system" fn LoginIScsiTargetW(targetname : windows_core::PCWSTR, isinformationalsession : bool, initiatorinstance : windows_core::PCWSTR, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALW, securityflags : u64, mappings : *mut ISCSI_TARGET_MAPPINGW, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : windows_core::PCSTR, ispersistent : bool, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32); LoginIScsiTargetW( targetname.param().abi(), - isinformationalsession.into(), + core::mem::transmute(isinformationalsession), initiatorinstance.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(targetportal), @@ -212,7 +212,7 @@ where core::mem::transmute(loginoptions), key.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(key.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), - ispersistent.into(), + core::mem::transmute(ispersistent), core::mem::transmute(uniquesessionid), core::mem::transmute(uniqueconnectionid), ) @@ -437,13 +437,13 @@ where } #[inline] pub unsafe fn ReportIScsiTargetsA(forceupdate: bool, buffersize: *mut u32, buffer: Option) -> u32 { - windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetsA(forceupdate : super::super::Foundation:: BOOLEAN, buffersize : *mut u32, buffer : windows_core::PSTR) -> u32); - ReportIScsiTargetsA(forceupdate.into(), core::mem::transmute(buffersize), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetsA(forceupdate : bool, buffersize : *mut u32, buffer : windows_core::PSTR) -> u32); + ReportIScsiTargetsA(core::mem::transmute(forceupdate), core::mem::transmute(buffersize), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ReportIScsiTargetsW(forceupdate: bool, buffersize: *mut u32, buffer: Option) -> u32 { - windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetsW(forceupdate : super::super::Foundation:: BOOLEAN, buffersize : *mut u32, buffer : windows_core::PWSTR) -> u32); - ReportIScsiTargetsW(forceupdate.into(), core::mem::transmute(buffersize), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetsW(forceupdate : bool, buffersize : *mut u32, buffer : windows_core::PWSTR) -> u32); + ReportIScsiTargetsW(core::mem::transmute(forceupdate), core::mem::transmute(buffersize), core::mem::transmute(buffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ReportPersistentIScsiDevicesA(buffersizeinchar: *mut u32, buffer: Option) -> u32 { @@ -482,24 +482,24 @@ pub unsafe fn SendScsiReportLuns(uniquesessionid: *mut ISCSI_UNIQUE_SESSION_ID, } #[inline] pub unsafe fn SetIScsiGroupPresharedKey(keylength: u32, key: *mut u8, persist: bool) -> u32 { - windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiGroupPresharedKey(keylength : u32, key : *mut u8, persist : super::super::Foundation:: BOOLEAN) -> u32); - SetIScsiGroupPresharedKey(core::mem::transmute(keylength), core::mem::transmute(key), persist.into()) + windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiGroupPresharedKey(keylength : u32, key : *mut u8, persist : bool) -> u32); + SetIScsiGroupPresharedKey(core::mem::transmute(keylength), core::mem::transmute(key), core::mem::transmute(persist)) } #[inline] pub unsafe fn SetIScsiIKEInfoA(initiatorname: P0, initiatorportnumber: u32, authinfo: *mut IKE_AUTHENTICATION_INFORMATION, persist: bool) -> u32 where P0: windows_core::Param, { - windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiIKEInfoA(initiatorname : windows_core::PCSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : super::super::Foundation:: BOOLEAN) -> u32); - SetIScsiIKEInfoA(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(authinfo), persist.into()) + windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiIKEInfoA(initiatorname : windows_core::PCSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : bool) -> u32); + SetIScsiIKEInfoA(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(authinfo), core::mem::transmute(persist)) } #[inline] pub unsafe fn SetIScsiIKEInfoW(initiatorname: P0, initiatorportnumber: u32, authinfo: *mut IKE_AUTHENTICATION_INFORMATION, persist: bool) -> u32 where P0: windows_core::Param, { - windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiIKEInfoW(initiatorname : windows_core::PCWSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : super::super::Foundation:: BOOLEAN) -> u32); - SetIScsiIKEInfoW(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(authinfo), persist.into()) + windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiIKEInfoW(initiatorname : windows_core::PCWSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : bool) -> u32); + SetIScsiIKEInfoW(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), core::mem::transmute(authinfo), core::mem::transmute(persist)) } #[inline] pub unsafe fn SetIScsiInitiatorCHAPSharedSecret(sharedsecretlength: u32, sharedsecret: *mut u8) -> u32 { @@ -534,8 +534,8 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiTunnelModeOuterAddressA(initiatorname : windows_core::PCSTR, initiatorportnumber : u32, destinationaddress : windows_core::PCSTR, outermodeaddress : windows_core::PCSTR, persist : super::super::Foundation:: BOOLEAN) -> u32); - SetIScsiTunnelModeOuterAddressA(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), destinationaddress.param().abi(), outermodeaddress.param().abi(), persist.into()) + windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiTunnelModeOuterAddressA(initiatorname : windows_core::PCSTR, initiatorportnumber : u32, destinationaddress : windows_core::PCSTR, outermodeaddress : windows_core::PCSTR, persist : bool) -> u32); + SetIScsiTunnelModeOuterAddressA(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), destinationaddress.param().abi(), outermodeaddress.param().abi(), core::mem::transmute(persist)) } #[inline] pub unsafe fn SetIScsiTunnelModeOuterAddressW(initiatorname: P0, initiatorportnumber: u32, destinationaddress: P2, outermodeaddress: P3, persist: bool) -> u32 @@ -544,8 +544,8 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiTunnelModeOuterAddressW(initiatorname : windows_core::PCWSTR, initiatorportnumber : u32, destinationaddress : windows_core::PCWSTR, outermodeaddress : windows_core::PCWSTR, persist : super::super::Foundation:: BOOLEAN) -> u32); - SetIScsiTunnelModeOuterAddressW(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), destinationaddress.param().abi(), outermodeaddress.param().abi(), persist.into()) + windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiTunnelModeOuterAddressW(initiatorname : windows_core::PCWSTR, initiatorportnumber : u32, destinationaddress : windows_core::PCWSTR, outermodeaddress : windows_core::PCWSTR, persist : bool) -> u32); + SetIScsiTunnelModeOuterAddressW(initiatorname.param().abi(), core::mem::transmute(initiatorportnumber), destinationaddress.param().abi(), outermodeaddress.param().abi(), core::mem::transmute(persist)) } #[inline] pub unsafe fn SetupPersistentIScsiDevices() -> u32 { @@ -707,8 +707,8 @@ pub struct DUMP_POINTERS { pub CommonBufferVa: *mut core::ffi::c_void, pub CommonBufferPa: i64, pub CommonBufferSize: u32, - pub AllocateCommonBuffers: super::super::Foundation::BOOLEAN, - pub UseDiskDump: super::super::Foundation::BOOLEAN, + pub AllocateCommonBuffers: bool, + pub UseDiskDump: bool, pub Spare1: [u8; 2], pub DeviceObject: *mut core::ffi::c_void, } @@ -724,7 +724,7 @@ pub struct DUMP_POINTERS_EX { pub DumpData: *mut core::ffi::c_void, pub CommonBufferVa: *mut core::ffi::c_void, pub CommonBufferSize: u32, - pub AllocateCommonBuffers: super::super::Foundation::BOOLEAN, + pub AllocateCommonBuffers: bool, pub DeviceObject: *mut core::ffi::c_void, pub DriverList: *mut core::ffi::c_void, pub dwPortFlags: u32, @@ -733,7 +733,7 @@ pub struct DUMP_POINTERS_EX { pub MaxTransferSize: u32, pub AdapterObject: *mut core::ffi::c_void, pub MappedRegisterBase: *mut core::ffi::c_void, - pub DeviceReady: *mut super::super::Foundation::BOOLEAN, + pub DeviceReady: *mut bool, pub DumpDevicePowerOn: PDUMP_DEVICE_POWERON_ROUTINE, pub DumpDevicePowerOnContext: *mut core::ffi::c_void, } @@ -841,7 +841,7 @@ pub const HYBRID_FUNCTION_SET_DIRTY_THRESHOLD: u32 = 18u32; pub struct HYBRID_INFORMATION { pub Version: u32, pub Size: u32, - pub HybridSupported: super::super::Foundation::BOOLEAN, + pub HybridSupported: bool, pub Status: NVCACHE_STATUS, pub CacheTypeEffective: NVCACHE_TYPE, pub CacheTypeDefault: NVCACHE_TYPE, @@ -869,7 +869,7 @@ impl Default for HYBRID_INFORMATION_0 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct HYBRID_INFORMATION_1 { pub PriorityLevelCount: u8, - pub MaxPriorityBehavior: super::super::Foundation::BOOLEAN, + pub MaxPriorityBehavior: bool, pub OptimalWriteGranularity: u8, pub Reserved: u8, pub DirtyThresholdLow: u32, @@ -1016,9 +1016,9 @@ pub struct IO_SCSI_CAPABILITIES { pub MaximumPhysicalPages: u32, pub SupportedAsynchronousEvents: u32, pub AlignmentMask: u32, - pub TaggedQueuing: super::super::Foundation::BOOLEAN, - pub AdapterScansDown: super::super::Foundation::BOOLEAN, - pub AdapterUsesPio: super::super::Foundation::BOOLEAN, + pub TaggedQueuing: bool, + pub AdapterScansDown: bool, + pub AdapterUsesPio: bool, } impl Default for IO_SCSI_CAPABILITIES { fn default() -> Self { @@ -1204,11 +1204,11 @@ impl Default for ISCSI_SESSION_INFOW { #[derive(Clone, Copy, Debug, PartialEq)] pub struct ISCSI_SESSION_INFO_EX { pub SessionId: ISCSI_UNIQUE_SESSION_ID, - pub InitialR2t: super::super::Foundation::BOOLEAN, - pub ImmediateData: super::super::Foundation::BOOLEAN, + pub InitialR2t: bool, + pub ImmediateData: bool, pub Type: u8, - pub DataSequenceInOrder: super::super::Foundation::BOOLEAN, - pub DataPduInOrder: super::super::Foundation::BOOLEAN, + pub DataSequenceInOrder: bool, + pub DataPduInOrder: bool, pub ErrorRecoveryLevel: u8, pub MaxOutstandingR2t: u32, pub FirstBurstLength: u32, @@ -1735,7 +1735,7 @@ pub type PDUMP_DEVICE_POWERON_ROUTINE = Option(filename: P0) -> super::super::Foundation::BOOLEAN +pub unsafe fn PrjDoesNameContainWildCards(filename: P0) -> bool where P0: windows_core::Param, { - windows_targets::link!("projectedfslib.dll" "system" fn PrjDoesNameContainWildCards(filename : windows_core::PCWSTR) -> super::super::Foundation:: BOOLEAN); + windows_targets::link!("projectedfslib.dll" "system" fn PrjDoesNameContainWildCards(filename : windows_core::PCWSTR) -> bool); PrjDoesNameContainWildCards(filename.param().abi()) } #[inline] @@ -39,12 +39,12 @@ where PrjFileNameCompare(filename1.param().abi(), filename2.param().abi()) } #[inline] -pub unsafe fn PrjFileNameMatch(filenametocheck: P0, pattern: P1) -> super::super::Foundation::BOOLEAN +pub unsafe fn PrjFileNameMatch(filenametocheck: P0, pattern: P1) -> bool where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("projectedfslib.dll" "system" fn PrjFileNameMatch(filenametocheck : windows_core::PCWSTR, pattern : windows_core::PCWSTR) -> super::super::Foundation:: BOOLEAN); + windows_targets::link!("projectedfslib.dll" "system" fn PrjFileNameMatch(filenametocheck : windows_core::PCWSTR, pattern : windows_core::PCWSTR) -> bool); PrjFileNameMatch(filenametocheck.param().abi(), pattern.param().abi()) } #[inline] @@ -277,7 +277,7 @@ pub const PRJ_EXT_INFO_TYPE_SYMLINK: PRJ_EXT_INFO_TYPE = PRJ_EXT_INFO_TYPE(1i32) #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PRJ_FILE_BASIC_INFO { - pub IsDirectory: super::super::Foundation::BOOLEAN, + pub IsDirectory: bool, pub FileSize: i64, pub CreationTime: i64, pub LastAccessTime: i64, @@ -352,7 +352,7 @@ impl Default for PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT { #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct PRJ_NOTIFICATION(pub i32); -pub type PRJ_NOTIFICATION_CB = Option windows_core::HRESULT>; +pub type PRJ_NOTIFICATION_CB = Option windows_core::HRESULT>; pub const PRJ_NOTIFICATION_FILE_HANDLE_CLOSED_FILE_DELETED: PRJ_NOTIFICATION = PRJ_NOTIFICATION(2048i32); pub const PRJ_NOTIFICATION_FILE_HANDLE_CLOSED_FILE_MODIFIED: PRJ_NOTIFICATION = PRJ_NOTIFICATION(1024i32); pub const PRJ_NOTIFICATION_FILE_HANDLE_CLOSED_NO_MODIFICATION: PRJ_NOTIFICATION = PRJ_NOTIFICATION(512i32); @@ -388,7 +388,7 @@ impl Default for PRJ_NOTIFICATION_PARAMETERS { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PRJ_NOTIFICATION_PARAMETERS_2 { - pub IsFileModified: super::super::Foundation::BOOLEAN, + pub IsFileModified: bool, } impl Default for PRJ_NOTIFICATION_PARAMETERS_2 { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs index ab1ae3f5f7..d24679a470 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs @@ -35,7 +35,7 @@ impl Default for CHANGE_ATTRIBUTES_PARAMETERS_0_1 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CHANGE_ATTRIBUTES_PARAMETERS_0_0 { - pub bootIndicator: super::super::Foundation::BOOLEAN, + pub bootIndicator: bool, } impl Default for CHANGE_ATTRIBUTES_PARAMETERS_0_0 { fn default() -> Self { @@ -125,7 +125,7 @@ impl Default for CREATE_PARTITION_PARAMETERS_0_1 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct CREATE_PARTITION_PARAMETERS_0_0 { pub partitionType: u8, - pub bootIndicator: super::super::Foundation::BOOLEAN, + pub bootIndicator: bool, } impl Default for CREATE_PARTITION_PARAMETERS_0_0 { fn default() -> Self { @@ -3848,18 +3848,18 @@ impl IVdsServiceUninstallDisk { (windows_core::Interface::vtable(self).GetDiskIdFromLunInfo)(windows_core::Interface::as_raw(self), core::mem::transmute(pluninfo), &mut result__).map(|| result__) } pub unsafe fn UninstallDisks(&self, pdiskidarray: *const windows_core::GUID, ulcount: u32, bforce: bool, pbreboot: *mut u8, presults: *mut windows_core::HRESULT) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UninstallDisks)(windows_core::Interface::as_raw(self), core::mem::transmute(pdiskidarray), core::mem::transmute(ulcount), bforce.into(), core::mem::transmute(pbreboot), core::mem::transmute(presults)).ok() + (windows_core::Interface::vtable(self).UninstallDisks)(windows_core::Interface::as_raw(self), core::mem::transmute(pdiskidarray), core::mem::transmute(ulcount), core::mem::transmute(bforce), core::mem::transmute(pbreboot), core::mem::transmute(presults)).ok() } } #[repr(C)] pub struct IVdsServiceUninstallDisk_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetDiskIdFromLunInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *const VDS_LUN_INFORMATION, *mut windows_core::GUID) -> windows_core::HRESULT, - pub UninstallDisks: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, super::super::Foundation::BOOLEAN, *mut u8, *mut windows_core::HRESULT) -> windows_core::HRESULT, + pub UninstallDisks: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, bool, *mut u8, *mut windows_core::HRESULT) -> windows_core::HRESULT, } pub trait IVdsServiceUninstallDisk_Impl: windows_core::IUnknownImpl { fn GetDiskIdFromLunInfo(&self, pluninfo: *const VDS_LUN_INFORMATION) -> windows_core::Result; - fn UninstallDisks(&self, pdiskidarray: *const windows_core::GUID, ulcount: u32, bforce: super::super::Foundation::BOOLEAN, pbreboot: *mut u8, presults: *mut windows_core::HRESULT) -> windows_core::Result<()>; + fn UninstallDisks(&self, pdiskidarray: *const windows_core::GUID, ulcount: u32, bforce: bool, pbreboot: *mut u8, presults: *mut windows_core::HRESULT) -> windows_core::Result<()>; } impl IVdsServiceUninstallDisk_Vtbl { pub const fn new() -> Self { @@ -3873,7 +3873,7 @@ impl IVdsServiceUninstallDisk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UninstallDisks(this: *mut core::ffi::c_void, pdiskidarray: *const windows_core::GUID, ulcount: u32, bforce: super::super::Foundation::BOOLEAN, pbreboot: *mut u8, presults: *mut windows_core::HRESULT) -> windows_core::HRESULT { + unsafe extern "system" fn UninstallDisks(this: *mut core::ffi::c_void, pdiskidarray: *const windows_core::GUID, ulcount: u32, bforce: bool, pbreboot: *mut u8, presults: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsServiceUninstallDisk_Impl::UninstallDisks(this, core::mem::transmute_copy(&pdiskidarray), core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&pbreboot), core::mem::transmute_copy(&presults)).into() } @@ -7120,7 +7120,7 @@ pub struct VDS_PARTITION_INFORMATION_EX { pub ullStartingOffset: u64, pub ullPartitionLength: u64, pub dwPartitionNumber: u32, - pub bRewritePartition: super::super::Foundation::BOOLEAN, + pub bRewritePartition: bool, pub Anonymous: VDS_PARTITION_INFORMATION_EX_0, } impl Default for VDS_PARTITION_INFORMATION_EX { @@ -7156,8 +7156,8 @@ impl Default for VDS_PARTITION_INFO_GPT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct VDS_PARTITION_INFO_MBR { pub partitionType: u8, - pub bootIndicator: super::super::Foundation::BOOLEAN, - pub recognizedPartition: super::super::Foundation::BOOLEAN, + pub bootIndicator: bool, + pub recognizedPartition: bool, pub hiddenSectors: u32, } impl Default for VDS_PARTITION_INFO_MBR { diff --git a/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs index 5e61ca4ad2..b44a24d30f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs @@ -2183,7 +2183,7 @@ impl ICLRStrongName { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).StrongNameSignatureVerificationEx)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), fforceverification.into(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).StrongNameSignatureVerificationEx)(windows_core::Interface::as_raw(self), pwzfilepath.param().abi(), core::mem::transmute(fforceverification), &mut result__).map(|| result__) } pub unsafe fn StrongNameSignatureVerificationFromImage(&self, pbbase: *const u8, dwlength: u32, dwinflags: u32) -> windows_core::Result { let mut result__ = core::mem::zeroed(); @@ -2228,7 +2228,7 @@ pub struct ICLRStrongName_Vtbl { pub StrongNameSignatureGenerationEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *const u8, u32, *mut *mut u8, *mut u32, u32) -> windows_core::HRESULT, pub StrongNameSignatureSize: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32, *const u32) -> windows_core::HRESULT, pub StrongNameSignatureVerification: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut u32) -> windows_core::HRESULT, - pub StrongNameSignatureVerificationEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOLEAN, *mut u8) -> windows_core::HRESULT, + pub StrongNameSignatureVerificationEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, bool, *mut u8) -> windows_core::HRESULT, pub StrongNameSignatureVerificationFromImage: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32, u32, *mut u32) -> windows_core::HRESULT, pub StrongNameTokenFromAssembly: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut u8, *mut u32) -> windows_core::HRESULT, pub StrongNameTokenFromAssemblyEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut u8, *mut u32, *mut *mut u8, *mut u32) -> windows_core::HRESULT, @@ -2255,7 +2255,7 @@ pub trait ICLRStrongName_Impl: windows_core::IUnknownImpl { fn StrongNameSignatureGenerationEx(&self, wszfilepath: &windows_core::PCWSTR, wszkeycontainer: &windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, ppbsignatureblob: *mut *mut u8, pcbsignatureblob: *mut u32, dwflags: u32) -> windows_core::Result<()>; fn StrongNameSignatureSize(&self, pbpublickeyblob: *const u8, cbpublickeyblob: u32, pcbsize: *const u32) -> windows_core::Result<()>; fn StrongNameSignatureVerification(&self, pwzfilepath: &windows_core::PCWSTR, dwinflags: u32) -> windows_core::Result; - fn StrongNameSignatureVerificationEx(&self, pwzfilepath: &windows_core::PCWSTR, fforceverification: super::super::Foundation::BOOLEAN) -> windows_core::Result; + fn StrongNameSignatureVerificationEx(&self, pwzfilepath: &windows_core::PCWSTR, fforceverification: bool) -> windows_core::Result; fn StrongNameSignatureVerificationFromImage(&self, pbbase: *const u8, dwlength: u32, dwinflags: u32) -> windows_core::Result; fn StrongNameTokenFromAssembly(&self, pwzfilepath: &windows_core::PCWSTR, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32) -> windows_core::Result<()>; fn StrongNameTokenFromAssemblyEx(&self, pwzfilepath: &windows_core::PCWSTR, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32) -> windows_core::Result<()>; @@ -2361,7 +2361,7 @@ impl ICLRStrongName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StrongNameSignatureVerificationEx(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, fforceverification: super::super::Foundation::BOOLEAN, pfwasverified: *mut u8) -> windows_core::HRESULT { + unsafe extern "system" fn StrongNameSignatureVerificationEx(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, fforceverification: bool, pfwasverified: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRStrongName_Impl::StrongNameSignatureVerificationEx(this, core::mem::transmute(&pwzfilepath), core::mem::transmute_copy(&fforceverification)) { Ok(ok__) => { @@ -2441,18 +2441,18 @@ impl ICLRStrongName2 { P0: windows_core::Param, { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).StrongNameSignatureVerificationEx2)(windows_core::Interface::as_raw(self), wszfilepath.param().abi(), fforceverification.into(), core::mem::transmute(pbecmapublickey), core::mem::transmute(cbecmapublickey), &mut result__).map(|| result__) + (windows_core::Interface::vtable(self).StrongNameSignatureVerificationEx2)(windows_core::Interface::as_raw(self), wszfilepath.param().abi(), core::mem::transmute(fforceverification), core::mem::transmute(pbecmapublickey), core::mem::transmute(cbecmapublickey), &mut result__).map(|| result__) } } #[repr(C)] pub struct ICLRStrongName2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub StrongNameGetPublicKeyEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const u8, u32, *mut *mut u8, *mut u32, u32, u32) -> windows_core::HRESULT, - pub StrongNameSignatureVerificationEx2: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOLEAN, *const u8, u32, *mut u8) -> windows_core::HRESULT, + pub StrongNameSignatureVerificationEx2: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, bool, *const u8, u32, *mut u8) -> windows_core::HRESULT, } pub trait ICLRStrongName2_Impl: windows_core::IUnknownImpl { fn StrongNameGetPublicKeyEx(&self, pwzkeycontainer: &windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32, uhashalgid: u32, ureserved: u32) -> windows_core::Result<()>; - fn StrongNameSignatureVerificationEx2(&self, wszfilepath: &windows_core::PCWSTR, fforceverification: super::super::Foundation::BOOLEAN, pbecmapublickey: *const u8, cbecmapublickey: u32) -> windows_core::Result; + fn StrongNameSignatureVerificationEx2(&self, wszfilepath: &windows_core::PCWSTR, fforceverification: bool, pbecmapublickey: *const u8, cbecmapublickey: u32) -> windows_core::Result; } impl ICLRStrongName2_Vtbl { pub const fn new() -> Self { @@ -2460,7 +2460,7 @@ impl ICLRStrongName2_Vtbl { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName2_Impl::StrongNameGetPublicKeyEx(this, core::mem::transmute(&pwzkeycontainer), core::mem::transmute_copy(&pbkeyblob), core::mem::transmute_copy(&cbkeyblob), core::mem::transmute_copy(&ppbpublickeyblob), core::mem::transmute_copy(&pcbpublickeyblob), core::mem::transmute_copy(&uhashalgid), core::mem::transmute_copy(&ureserved)).into() } - unsafe extern "system" fn StrongNameSignatureVerificationEx2(this: *mut core::ffi::c_void, wszfilepath: windows_core::PCWSTR, fforceverification: super::super::Foundation::BOOLEAN, pbecmapublickey: *const u8, cbecmapublickey: u32, pfwasverified: *mut u8) -> windows_core::HRESULT { + unsafe extern "system" fn StrongNameSignatureVerificationEx2(this: *mut core::ffi::c_void, wszfilepath: windows_core::PCWSTR, fforceverification: bool, pbecmapublickey: *const u8, cbecmapublickey: u32, pfwasverified: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRStrongName2_Impl::StrongNameSignatureVerificationEx2(this, core::mem::transmute(&wszfilepath), core::mem::transmute_copy(&fforceverification), core::mem::transmute_copy(&pbecmapublickey), core::mem::transmute_copy(&cbecmapublickey)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/mod.rs index 5f15f38fa2..00d339baac 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/mod.rs @@ -39,8 +39,8 @@ impl Default for CALLFRAMEINFO { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CALLFRAMEPARAMINFO { - pub fIn: super::super::super::Foundation::BOOLEAN, - pub fOut: super::super::super::Foundation::BOOLEAN, + pub fIn: bool, + pub fOut: bool, pub stackOffset: u32, pub cbParam: u32, } @@ -67,7 +67,7 @@ pub const CALLFRAME_FREE_TOP_OUT: CALLFRAME_FREE = CALLFRAME_FREE(16i32); #[repr(C)] #[derive(Clone, Debug, PartialEq)] pub struct CALLFRAME_MARSHALCONTEXT { - pub fIn: super::super::super::Foundation::BOOLEAN, + pub fIn: bool, pub dwDestContext: u32, pub pvDestContext: *mut core::ffi::c_void, pub punkReserved: core::mem::ManuallyDrop>, diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs index 715d2b165c..37b423c74e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs @@ -681,17 +681,17 @@ where } #[cfg(feature = "Win32_System_Variant")] #[inline] -pub unsafe fn StgConvertPropertyToVariant(pprop: *const SERIALIZEDPROPERTYVALUE, codepage: u16, pvar: *mut PROPVARIANT, pma: P3) -> super::super::super::Foundation::BOOLEAN +pub unsafe fn StgConvertPropertyToVariant(pprop: *const SERIALIZEDPROPERTYVALUE, codepage: u16, pvar: *mut PROPVARIANT, pma: P3) -> bool where P3: windows_core::Param, { - windows_targets::link!("ole32.dll" "system" fn StgConvertPropertyToVariant(pprop : *const SERIALIZEDPROPERTYVALUE, codepage : u16, pvar : *mut PROPVARIANT, pma : * mut core::ffi::c_void) -> super::super::super::Foundation:: BOOLEAN); + windows_targets::link!("ole32.dll" "system" fn StgConvertPropertyToVariant(pprop : *const SERIALIZEDPROPERTYVALUE, codepage : u16, pvar : *mut PROPVARIANT, pma : * mut core::ffi::c_void) -> bool); StgConvertPropertyToVariant(core::mem::transmute(pprop), core::mem::transmute(codepage), core::mem::transmute(pvar), pma.param().abi()) } #[cfg(feature = "Win32_System_Variant")] #[inline] -pub unsafe fn StgConvertVariantToProperty(pvar: *const PROPVARIANT, codepage: u16, pprop: Option<*mut SERIALIZEDPROPERTYVALUE>, pcb: *mut u32, pid: u32, freserved: Option, pcindirect: Option<*mut u32>) -> *mut SERIALIZEDPROPERTYVALUE { - windows_targets::link!("ole32.dll" "system" fn StgConvertVariantToProperty(pvar : *const PROPVARIANT, codepage : u16, pprop : *mut SERIALIZEDPROPERTYVALUE, pcb : *mut u32, pid : u32, freserved : super::super::super::Foundation:: BOOLEAN, pcindirect : *mut u32) -> *mut SERIALIZEDPROPERTYVALUE); +pub unsafe fn StgConvertVariantToProperty(pvar: *const PROPVARIANT, codepage: u16, pprop: Option<*mut SERIALIZEDPROPERTYVALUE>, pcb: *mut u32, pid: u32, freserved: Option, pcindirect: Option<*mut u32>) -> *mut SERIALIZEDPROPERTYVALUE { + windows_targets::link!("ole32.dll" "system" fn StgConvertVariantToProperty(pvar : *const PROPVARIANT, codepage : u16, pprop : *mut SERIALIZEDPROPERTYVALUE, pcb : *mut u32, pid : u32, freserved : bool, pcindirect : *mut u32) -> *mut SERIALIZEDPROPERTYVALUE); StgConvertVariantToProperty(core::mem::transmute(pvar), core::mem::transmute(codepage), core::mem::transmute(pprop.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcb), core::mem::transmute(pid), core::mem::transmute(freserved.unwrap_or(core::mem::zeroed())), core::mem::transmute(pcindirect.unwrap_or(core::mem::zeroed()))) } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs index 8c19d6740f..c15c0ed668 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs @@ -2833,8 +2833,8 @@ impl Default for EXTSTACKTRACE64 { unsafe { core::mem::zeroed() } } } -pub type EXTS_JOB_PROCESS_CALLBACK = Option super::super::super::super::Foundation::BOOLEAN>; -pub type EXTS_TABLE_ENTRY_CALLBACK = Option super::super::super::super::Foundation::BOOLEAN>; +pub type EXTS_JOB_PROCESS_CALLBACK = Option bool>; +pub type EXTS_TABLE_ENTRY_CALLBACK = Option bool>; pub type EXT_ANALYSIS_PLUGIN = Option, callphase: FA_EXTENSION_PLUGIN_PHASE, panalysis: Option) -> windows_core::HRESULT>; pub type EXT_ANALYZER = Option, bucketsuffix: windows_core::PSTR, cbbucketsuffix: u32, debugtext: windows_core::PSTR, cbdebugtext: u32, flags: *const u32, panalysis: Option) -> windows_core::HRESULT>; pub const EXT_ANALYZER_FLAG_ID: u32 = 2u32; @@ -45144,7 +45144,7 @@ impl Default for KDEXTS_PTE_INFO { unsafe { core::mem::zeroed() } } } -pub type KDEXT_DUMP_HANDLE_CALLBACK = Option super::super::super::super::Foundation::BOOLEAN>; +pub type KDEXT_DUMP_HANDLE_CALLBACK = Option bool>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct KDEXT_FILELOCK_OWNER { @@ -45169,7 +45169,7 @@ pub struct KDEXT_HANDLE_INFORMATION { pub ObjectBody: u64, pub GrantedAccess: u64, pub HandleAttributes: u32, - pub PagedOut: super::super::super::super::Foundation::BOOLEAN, + pub PagedOut: bool, } impl Default for KDEXT_HANDLE_INFORMATION { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs index 9be415e85f..9526c3ad57 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs @@ -380,13 +380,13 @@ pub unsafe fn ImageAddCertificate(filehandle: super::super::super::Foundation::H } #[inline] pub unsafe fn ImageDirectoryEntryToData(base: *const core::ffi::c_void, mappedasimage: bool, directoryentry: IMAGE_DIRECTORY_ENTRY, size: *mut u32) -> *mut core::ffi::c_void { - windows_targets::link!("dbghelp.dll" "system" fn ImageDirectoryEntryToData(base : *const core::ffi::c_void, mappedasimage : super::super::super::Foundation:: BOOLEAN, directoryentry : IMAGE_DIRECTORY_ENTRY, size : *mut u32) -> *mut core::ffi::c_void); - ImageDirectoryEntryToData(core::mem::transmute(base), mappedasimage.into(), core::mem::transmute(directoryentry), core::mem::transmute(size)) + windows_targets::link!("dbghelp.dll" "system" fn ImageDirectoryEntryToData(base : *const core::ffi::c_void, mappedasimage : bool, directoryentry : IMAGE_DIRECTORY_ENTRY, size : *mut u32) -> *mut core::ffi::c_void); + ImageDirectoryEntryToData(core::mem::transmute(base), core::mem::transmute(mappedasimage), core::mem::transmute(directoryentry), core::mem::transmute(size)) } #[inline] pub unsafe fn ImageDirectoryEntryToDataEx(base: *const core::ffi::c_void, mappedasimage: bool, directoryentry: IMAGE_DIRECTORY_ENTRY, size: *mut u32, foundheader: Option<*mut *mut IMAGE_SECTION_HEADER>) -> *mut core::ffi::c_void { - windows_targets::link!("dbghelp.dll" "system" fn ImageDirectoryEntryToDataEx(base : *const core::ffi::c_void, mappedasimage : super::super::super::Foundation:: BOOLEAN, directoryentry : IMAGE_DIRECTORY_ENTRY, size : *mut u32, foundheader : *mut *mut IMAGE_SECTION_HEADER) -> *mut core::ffi::c_void); - ImageDirectoryEntryToDataEx(core::mem::transmute(base), mappedasimage.into(), core::mem::transmute(directoryentry), core::mem::transmute(size), core::mem::transmute(foundheader.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("dbghelp.dll" "system" fn ImageDirectoryEntryToDataEx(base : *const core::ffi::c_void, mappedasimage : bool, directoryentry : IMAGE_DIRECTORY_ENTRY, size : *mut u32, foundheader : *mut *mut IMAGE_SECTION_HEADER) -> *mut core::ffi::c_void); + ImageDirectoryEntryToDataEx(core::mem::transmute(base), core::mem::transmute(mappedasimage), core::mem::transmute(directoryentry), core::mem::transmute(size), core::mem::transmute(foundheader.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn ImageEnumerateCertificates(filehandle: super::super::super::Foundation::HANDLE, typefilter: u16, certificatecount: *mut u32, indices: Option<&mut [u32]>) -> windows_core::Result<()> { @@ -676,14 +676,14 @@ where } #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] -pub unsafe fn RtlAddFunctionTable(functiontable: &[IMAGE_RUNTIME_FUNCTION_ENTRY], baseaddress: u64) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("kernel32.dll" "system" fn RtlAddFunctionTable(functiontable : *const IMAGE_RUNTIME_FUNCTION_ENTRY, entrycount : u32, baseaddress : u64) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn RtlAddFunctionTable(functiontable: &[IMAGE_RUNTIME_FUNCTION_ENTRY], baseaddress: u64) -> bool { + windows_targets::link!("kernel32.dll" "system" fn RtlAddFunctionTable(functiontable : *const IMAGE_RUNTIME_FUNCTION_ENTRY, entrycount : u32, baseaddress : u64) -> bool); RtlAddFunctionTable(core::mem::transmute(functiontable.as_ptr()), functiontable.len().try_into().unwrap(), core::mem::transmute(baseaddress)) } #[cfg(target_arch = "aarch64")] #[inline] -pub unsafe fn RtlAddFunctionTable(functiontable: &[IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY], baseaddress: usize) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("kernel32.dll" "system" fn RtlAddFunctionTable(functiontable : *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, entrycount : u32, baseaddress : usize) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn RtlAddFunctionTable(functiontable: &[IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY], baseaddress: usize) -> bool { + windows_targets::link!("kernel32.dll" "system" fn RtlAddFunctionTable(functiontable : *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, entrycount : u32, baseaddress : usize) -> bool); RtlAddFunctionTable(core::mem::transmute(functiontable.as_ptr()), functiontable.len().try_into().unwrap(), core::mem::transmute(baseaddress)) } #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] @@ -718,14 +718,14 @@ pub unsafe fn RtlCaptureStackBackTrace(framestoskip: u32, backtrace: &mut [*mut } #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] -pub unsafe fn RtlDeleteFunctionTable(functiontable: *const IMAGE_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("kernel32.dll" "system" fn RtlDeleteFunctionTable(functiontable : *const IMAGE_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn RtlDeleteFunctionTable(functiontable: *const IMAGE_RUNTIME_FUNCTION_ENTRY) -> bool { + windows_targets::link!("kernel32.dll" "system" fn RtlDeleteFunctionTable(functiontable : *const IMAGE_RUNTIME_FUNCTION_ENTRY) -> bool); RtlDeleteFunctionTable(core::mem::transmute(functiontable)) } #[cfg(target_arch = "aarch64")] #[inline] -pub unsafe fn RtlDeleteFunctionTable(functiontable: *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("kernel32.dll" "system" fn RtlDeleteFunctionTable(functiontable : *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn RtlDeleteFunctionTable(functiontable: *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> bool { + windows_targets::link!("kernel32.dll" "system" fn RtlDeleteFunctionTable(functiontable : *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> bool); RtlDeleteFunctionTable(core::mem::transmute(functiontable)) } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] @@ -742,20 +742,20 @@ pub unsafe fn RtlGrowFunctionTable(dynamictable: *mut core::ffi::c_void, newentr } #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] -pub unsafe fn RtlInstallFunctionTableCallback(tableidentifier: u64, baseaddress: u64, length: u32, callback: PGET_RUNTIME_FUNCTION_CALLBACK, context: Option<*const core::ffi::c_void>, outofprocesscallbackdll: P5) -> super::super::super::Foundation::BOOLEAN +pub unsafe fn RtlInstallFunctionTableCallback(tableidentifier: u64, baseaddress: u64, length: u32, callback: PGET_RUNTIME_FUNCTION_CALLBACK, context: Option<*const core::ffi::c_void>, outofprocesscallbackdll: P5) -> bool where P5: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn RtlInstallFunctionTableCallback(tableidentifier : u64, baseaddress : u64, length : u32, callback : PGET_RUNTIME_FUNCTION_CALLBACK, context : *const core::ffi::c_void, outofprocesscallbackdll : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOLEAN); + windows_targets::link!("kernel32.dll" "system" fn RtlInstallFunctionTableCallback(tableidentifier : u64, baseaddress : u64, length : u32, callback : PGET_RUNTIME_FUNCTION_CALLBACK, context : *const core::ffi::c_void, outofprocesscallbackdll : windows_core::PCWSTR) -> bool); RtlInstallFunctionTableCallback(core::mem::transmute(tableidentifier), core::mem::transmute(baseaddress), core::mem::transmute(length), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), outofprocesscallbackdll.param().abi()) } #[cfg(target_arch = "aarch64")] #[inline] -pub unsafe fn RtlInstallFunctionTableCallback(tableidentifier: u64, baseaddress: u64, length: u32, callback: PGET_RUNTIME_FUNCTION_CALLBACK, context: Option<*const core::ffi::c_void>, outofprocesscallbackdll: P5) -> super::super::super::Foundation::BOOLEAN +pub unsafe fn RtlInstallFunctionTableCallback(tableidentifier: u64, baseaddress: u64, length: u32, callback: PGET_RUNTIME_FUNCTION_CALLBACK, context: Option<*const core::ffi::c_void>, outofprocesscallbackdll: P5) -> bool where P5: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn RtlInstallFunctionTableCallback(tableidentifier : u64, baseaddress : u64, length : u32, callback : PGET_RUNTIME_FUNCTION_CALLBACK, context : *const core::ffi::c_void, outofprocesscallbackdll : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOLEAN); + windows_targets::link!("kernel32.dll" "system" fn RtlInstallFunctionTableCallback(tableidentifier : u64, baseaddress : u64, length : u32, callback : PGET_RUNTIME_FUNCTION_CALLBACK, context : *const core::ffi::c_void, outofprocesscallbackdll : windows_core::PCWSTR) -> bool); RtlInstallFunctionTableCallback(core::mem::transmute(tableidentifier), core::mem::transmute(baseaddress), core::mem::transmute(length), core::mem::transmute(callback), core::mem::transmute(context.unwrap_or(core::mem::zeroed())), outofprocesscallbackdll.param().abi()) } #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] @@ -3150,7 +3150,7 @@ pub struct DISPATCHER_CONTEXT { pub HandlerData: *mut core::ffi::c_void, pub HistoryTable: *mut UNWIND_HISTORY_TABLE, pub ScopeIndex: u32, - pub ControlPcIsUnwound: super::super::super::Foundation::BOOLEAN, + pub ControlPcIsUnwound: bool, pub NonVolatileRegisters: *mut u8, } #[cfg(target_arch = "aarch64")] @@ -4288,7 +4288,7 @@ pub struct IMAGEHLP_DEFERRED_SYMBOL_LOAD { pub CheckSum: u32, pub TimeDateStamp: u32, pub FileName: [i8; 260], - pub Reparse: super::super::super::Foundation::BOOLEAN, + pub Reparse: bool, pub hFile: super::super::super::Foundation::HANDLE, } #[cfg(target_arch = "x86")] @@ -4305,7 +4305,7 @@ pub struct IMAGEHLP_DEFERRED_SYMBOL_LOAD64 { pub CheckSum: u32, pub TimeDateStamp: u32, pub FileName: [i8; 260], - pub Reparse: super::super::super::Foundation::BOOLEAN, + pub Reparse: bool, pub hFile: super::super::super::Foundation::HANDLE, pub Flags: u32, } @@ -4322,7 +4322,7 @@ pub struct IMAGEHLP_DEFERRED_SYMBOL_LOADW64 { pub CheckSum: u32, pub TimeDateStamp: u32, pub FileName: [u16; 261], - pub Reparse: super::super::super::Foundation::BOOLEAN, + pub Reparse: bool, pub hFile: super::super::super::Foundation::HANDLE, pub Flags: u32, } @@ -6074,9 +6074,9 @@ pub struct LOADED_IMAGE { pub NumberOfSections: u32, pub Sections: *mut IMAGE_SECTION_HEADER, pub Characteristics: IMAGE_FILE_CHARACTERISTICS2, - pub fSystemImage: super::super::super::Foundation::BOOLEAN, - pub fDOSImage: super::super::super::Foundation::BOOLEAN, - pub fReadOnly: super::super::super::Foundation::BOOLEAN, + pub fSystemImage: bool, + pub fDOSImage: bool, + pub fReadOnly: bool, pub Version: u8, pub Links: super::super::Kernel::LIST_ENTRY, pub SizeOfImage: u32, @@ -6101,9 +6101,9 @@ pub struct LOADED_IMAGE { pub NumberOfSections: u32, pub Sections: *mut IMAGE_SECTION_HEADER, pub Characteristics: IMAGE_FILE_CHARACTERISTICS2, - pub fSystemImage: super::super::super::Foundation::BOOLEAN, - pub fDOSImage: super::super::super::Foundation::BOOLEAN, - pub fReadOnly: super::super::super::Foundation::BOOLEAN, + pub fSystemImage: bool, + pub fDOSImage: bool, + pub fReadOnly: bool, pub Version: u8, pub Links: super::super::Kernel::LIST_ENTRY, pub SizeOfImage: u32, @@ -8948,7 +8948,7 @@ pub const WFP_INVALID_OPERATION: BUGCHECK_ERROR = BUGCHECK_ERROR(467u32); #[derive(Clone, Copy)] pub struct WHEA_AER_BRIDGE_DESCRIPTOR { pub Type: u16, - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, pub Reserved: u8, pub BusNumber: u32, pub Slot: WHEA_PCI_SLOT_NUMBER, @@ -8971,7 +8971,7 @@ impl Default for WHEA_AER_BRIDGE_DESCRIPTOR { #[derive(Clone, Copy)] pub struct WHEA_AER_ENDPOINT_DESCRIPTOR { pub Type: u16, - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, pub Reserved: u8, pub BusNumber: u32, pub Slot: WHEA_PCI_SLOT_NUMBER, @@ -8991,7 +8991,7 @@ impl Default for WHEA_AER_ENDPOINT_DESCRIPTOR { #[derive(Clone, Copy)] pub struct WHEA_AER_ROOTPORT_DESCRIPTOR { pub Type: u16, - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, pub Reserved: u8, pub BusNumber: u32, pub Slot: WHEA_PCI_SLOT_NUMBER, @@ -9024,7 +9024,7 @@ pub const WHEA_DEVICE_DRIVER_CONFIG_V2: u32 = 2u32; #[derive(Clone, Copy)] pub struct WHEA_DEVICE_DRIVER_DESCRIPTOR { pub Type: u16, - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, pub Reserved: u8, pub SourceGuid: windows_core::GUID, pub LogTag: u16, @@ -9488,7 +9488,7 @@ pub const WHEA_UNCORRECTABLE_ERROR: BUGCHECK_ERROR = BUGCHECK_ERROR(292u32); #[derive(Clone, Copy)] pub struct WHEA_XPF_CMC_DESCRIPTOR { pub Type: u16, - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, pub NumberOfBanks: u8, pub Reserved: u32, pub Notify: WHEA_NOTIFICATION_DESCRIPTOR, @@ -9519,7 +9519,7 @@ impl Default for WHEA_XPF_MCE_DESCRIPTOR { #[derive(Clone, Copy)] pub struct WHEA_XPF_MC_BANK_DESCRIPTOR { pub BankNumber: u8, - pub ClearOnInitialization: super::super::super::Foundation::BOOLEAN, + pub ClearOnInitialization: bool, pub StatusDataFormat: u8, pub Flags: XPF_MC_BANK_FLAGS, pub ControlMsr: u32, @@ -9540,7 +9540,7 @@ pub const WHEA_XPF_MC_BANK_STATUSFORMAT_Intel64MCA: u32 = 1u32; #[derive(Clone, Copy)] pub struct WHEA_XPF_NMI_DESCRIPTOR { pub Type: u16, - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, } impl Default for WHEA_XPF_NMI_DESCRIPTOR { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs index ab56146f14..2fbdda1b3e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs @@ -61,8 +61,8 @@ pub unsafe fn EnumerateTraceGuidsEx(tracequeryinfoclass: TRACE_QUERY_INFO_CLASS, #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EventAccessControl(guid: *const windows_core::GUID, operation: u32, sid: super::super::super::Security::PSID, rights: u32, allowordeny: bool) -> u32 { - windows_targets::link!("advapi32.dll" "system" fn EventAccessControl(guid : *const windows_core::GUID, operation : u32, sid : super::super::super::Security:: PSID, rights : u32, allowordeny : super::super::super::Foundation:: BOOLEAN) -> u32); - EventAccessControl(core::mem::transmute(guid), core::mem::transmute(operation), core::mem::transmute(sid), core::mem::transmute(rights), allowordeny.into()) + windows_targets::link!("advapi32.dll" "system" fn EventAccessControl(guid : *const windows_core::GUID, operation : u32, sid : super::super::super::Security:: PSID, rights : u32, allowordeny : bool) -> u32); + EventAccessControl(core::mem::transmute(guid), core::mem::transmute(operation), core::mem::transmute(sid), core::mem::transmute(rights), core::mem::transmute(allowordeny)) } #[cfg(feature = "Win32_Security")] #[inline] @@ -81,13 +81,13 @@ pub unsafe fn EventActivityIdControl(controlcode: u32, activityid: *mut windows_ EventActivityIdControl(core::mem::transmute(controlcode), core::mem::transmute(activityid)) } #[inline] -pub unsafe fn EventEnabled(reghandle: REGHANDLE, eventdescriptor: *const EVENT_DESCRIPTOR) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn EventEnabled(reghandle : REGHANDLE, eventdescriptor : *const EVENT_DESCRIPTOR) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn EventEnabled(reghandle: REGHANDLE, eventdescriptor: *const EVENT_DESCRIPTOR) -> bool { + windows_targets::link!("advapi32.dll" "system" fn EventEnabled(reghandle : REGHANDLE, eventdescriptor : *const EVENT_DESCRIPTOR) -> bool); EventEnabled(core::mem::transmute(reghandle), core::mem::transmute(eventdescriptor)) } #[inline] -pub unsafe fn EventProviderEnabled(reghandle: REGHANDLE, level: u8, keyword: u64) -> super::super::super::Foundation::BOOLEAN { - windows_targets::link!("advapi32.dll" "system" fn EventProviderEnabled(reghandle : REGHANDLE, level : u8, keyword : u64) -> super::super::super::Foundation:: BOOLEAN); +pub unsafe fn EventProviderEnabled(reghandle: REGHANDLE, level: u8, keyword: u64) -> bool { + windows_targets::link!("advapi32.dll" "system" fn EventProviderEnabled(reghandle : REGHANDLE, level : u8, keyword : u64) -> bool); EventProviderEnabled(core::mem::transmute(reghandle), core::mem::transmute(level), core::mem::transmute(keyword)) } #[inline] @@ -316,8 +316,8 @@ where StopTraceW(core::mem::transmute(tracehandle), instancename.param().abi(), core::mem::transmute(properties)) } #[inline] -pub unsafe fn TdhAggregatePayloadFilters(payloadfiltercount: u32, payloadfilterptrs: *const *const core::ffi::c_void, eventmatchallflags: Option<*const super::super::super::Foundation::BOOLEAN>, eventfilterdescriptor: *mut EVENT_FILTER_DESCRIPTOR) -> u32 { - windows_targets::link!("tdh.dll" "system" fn TdhAggregatePayloadFilters(payloadfiltercount : u32, payloadfilterptrs : *const *const core::ffi::c_void, eventmatchallflags : *const super::super::super::Foundation:: BOOLEAN, eventfilterdescriptor : *mut EVENT_FILTER_DESCRIPTOR) -> u32); +pub unsafe fn TdhAggregatePayloadFilters(payloadfiltercount: u32, payloadfilterptrs: *const *const core::ffi::c_void, eventmatchallflags: Option<*const bool>, eventfilterdescriptor: *mut EVENT_FILTER_DESCRIPTOR) -> u32 { + windows_targets::link!("tdh.dll" "system" fn TdhAggregatePayloadFilters(payloadfiltercount : u32, payloadfilterptrs : *const *const core::ffi::c_void, eventmatchallflags : *const bool, eventfilterdescriptor : *mut EVENT_FILTER_DESCRIPTOR) -> u32); TdhAggregatePayloadFilters(core::mem::transmute(payloadfiltercount), core::mem::transmute(payloadfilterptrs), core::mem::transmute(eventmatchallflags.unwrap_or(core::mem::zeroed())), core::mem::transmute(eventfilterdescriptor)) } #[inline] @@ -332,8 +332,8 @@ pub unsafe fn TdhCloseDecodingHandle(handle: TDH_HANDLE) -> u32 { } #[inline] pub unsafe fn TdhCreatePayloadFilter(providerguid: *const windows_core::GUID, eventdescriptor: *const EVENT_DESCRIPTOR, eventmatchany: bool, payloadpredicates: &[PAYLOAD_FILTER_PREDICATE], payloadfilter: *mut *mut core::ffi::c_void) -> u32 { - windows_targets::link!("tdh.dll" "system" fn TdhCreatePayloadFilter(providerguid : *const windows_core::GUID, eventdescriptor : *const EVENT_DESCRIPTOR, eventmatchany : super::super::super::Foundation:: BOOLEAN, payloadpredicatecount : u32, payloadpredicates : *const PAYLOAD_FILTER_PREDICATE, payloadfilter : *mut *mut core::ffi::c_void) -> u32); - TdhCreatePayloadFilter(core::mem::transmute(providerguid), core::mem::transmute(eventdescriptor), eventmatchany.into(), payloadpredicates.len().try_into().unwrap(), core::mem::transmute(payloadpredicates.as_ptr()), core::mem::transmute(payloadfilter)) + windows_targets::link!("tdh.dll" "system" fn TdhCreatePayloadFilter(providerguid : *const windows_core::GUID, eventdescriptor : *const EVENT_DESCRIPTOR, eventmatchany : bool, payloadpredicatecount : u32, payloadpredicates : *const PAYLOAD_FILTER_PREDICATE, payloadfilter : *mut *mut core::ffi::c_void) -> u32); + TdhCreatePayloadFilter(core::mem::transmute(providerguid), core::mem::transmute(eventdescriptor), core::mem::transmute(eventmatchany), payloadpredicates.len().try_into().unwrap(), core::mem::transmute(payloadpredicates.as_ptr()), core::mem::transmute(payloadfilter)) } #[inline] pub unsafe fn TdhDeletePayloadFilter(payloadfilter: *mut *mut core::ffi::c_void) -> u32 { @@ -1005,7 +1005,7 @@ impl Default for EVENT_FILTER_DESCRIPTOR { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct EVENT_FILTER_EVENT_ID { - pub FilterIn: super::super::super::Foundation::BOOLEAN, + pub FilterIn: bool, pub Reserved: u8, pub Count: u16, pub Events: [u16; 1], @@ -1021,7 +1021,7 @@ pub struct EVENT_FILTER_EVENT_NAME { pub MatchAnyKeyword: u64, pub MatchAllKeyword: u64, pub Level: u8, - pub FilterIn: super::super::super::Foundation::BOOLEAN, + pub FilterIn: bool, pub NameCount: u16, pub Names: [u8; 1], } @@ -1051,7 +1051,7 @@ pub struct EVENT_FILTER_LEVEL_KW { pub MatchAnyKeyword: u64, pub MatchAllKeyword: u64, pub Level: u8, - pub FilterIn: super::super::super::Foundation::BOOLEAN, + pub FilterIn: bool, } impl Default for EVENT_FILTER_LEVEL_KW { fn default() -> Self { @@ -2328,7 +2328,7 @@ impl ITraceRelogger { (windows_core::Interface::vtable(self).SetOutputFilename)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(logfilename)).ok() } pub unsafe fn SetCompressionMode(&self, compressionmode: bool) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetCompressionMode)(windows_core::Interface::as_raw(self), compressionmode.into()).ok() + (windows_core::Interface::vtable(self).SetCompressionMode)(windows_core::Interface::as_raw(self), core::mem::transmute(compressionmode)).ok() } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() @@ -2344,7 +2344,7 @@ pub struct ITraceRelogger_Vtbl { pub CreateEventInstance: unsafe extern "system" fn(*mut core::ffi::c_void, RELOGSTREAM_HANDLE, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ProcessTrace: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetOutputFilename: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetCompressionMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOLEAN) -> windows_core::HRESULT, + pub SetCompressionMode: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITraceRelogger_Impl: windows_core::IUnknownImpl { @@ -2355,7 +2355,7 @@ pub trait ITraceRelogger_Impl: windows_core::IUnknownImpl { fn CreateEventInstance(&self, tracehandle: &RELOGSTREAM_HANDLE, flags: u32) -> windows_core::Result; fn ProcessTrace(&self) -> windows_core::Result<()>; fn SetOutputFilename(&self, logfilename: &windows_core::BSTR) -> windows_core::Result<()>; - fn SetCompressionMode(&self, compressionmode: super::super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; + fn SetCompressionMode(&self, compressionmode: bool) -> windows_core::Result<()>; fn Cancel(&self) -> windows_core::Result<()>; } impl ITraceRelogger_Vtbl { @@ -2406,7 +2406,7 @@ impl ITraceRelogger_Vtbl { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceRelogger_Impl::SetOutputFilename(this, core::mem::transmute(&logfilename)).into() } - unsafe extern "system" fn SetCompressionMode(this: *mut core::ffi::c_void, compressionmode: super::super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { + unsafe extern "system" fn SetCompressionMode(this: *mut core::ffi::c_void, compressionmode: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceRelogger_Impl::SetCompressionMode(this, core::mem::transmute_copy(&compressionmode)).into() } @@ -3000,7 +3000,7 @@ pub struct TRACE_GUID_PROPERTIES { pub LoggerId: u32, pub EnableLevel: u32, pub EnableFlags: u32, - pub IsEnable: super::super::super::Foundation::BOOLEAN, + pub IsEnable: bool, } impl Default for TRACE_GUID_PROPERTIES { fn default() -> Self { @@ -3390,7 +3390,7 @@ pub struct TRACE_QUERY_INFO_CLASS(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TRACE_STACK_CACHING_INFO { - pub Enabled: super::super::super::Foundation::BOOLEAN, + pub Enabled: bool, pub CacheSize: u32, pub BucketCount: u32, } diff --git a/crates/libs/windows/src/Windows/Win32/System/Ioctl/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Ioctl/mod.rs index c9bc6b3b1d..77b9ad73ed 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Ioctl/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Ioctl/mod.rs @@ -220,8 +220,8 @@ pub struct CHANGER_EXCHANGE_MEDIUM { pub Source: CHANGER_ELEMENT, pub Destination1: CHANGER_ELEMENT, pub Destination2: CHANGER_ELEMENT, - pub Flip1: super::super::Foundation::BOOLEAN, - pub Flip2: super::super::Foundation::BOOLEAN, + pub Flip1: bool, + pub Flip2: bool, } impl Default for CHANGER_EXCHANGE_MEDIUM { fn default() -> Self { @@ -270,7 +270,7 @@ pub const CHANGER_IEPORT_USER_CONTROL_OPEN: GET_CHANGER_PARAMETERS_FEATURES1 = G #[derive(Clone, Copy, Debug, PartialEq)] pub struct CHANGER_INITIALIZE_ELEMENT_STATUS { pub ElementList: CHANGER_ELEMENT_LIST, - pub BarCodeScan: super::super::Foundation::BOOLEAN, + pub BarCodeScan: bool, } impl Default for CHANGER_INITIALIZE_ELEMENT_STATUS { fn default() -> Self { @@ -288,7 +288,7 @@ pub struct CHANGER_MOVE_MEDIUM { pub Transport: CHANGER_ELEMENT, pub Source: CHANGER_ELEMENT, pub Destination: CHANGER_ELEMENT, - pub Flip: super::super::Foundation::BOOLEAN, + pub Flip: bool, } impl Default for CHANGER_MOVE_MEDIUM { fn default() -> Self { @@ -320,7 +320,7 @@ impl Default for CHANGER_PRODUCT_DATA { #[derive(Clone, Copy, Debug, PartialEq)] pub struct CHANGER_READ_ELEMENT_STATUS { pub ElementList: CHANGER_ELEMENT_LIST, - pub VolumeTagInfo: super::super::Foundation::BOOLEAN, + pub VolumeTagInfo: bool, } impl Default for CHANGER_READ_ELEMENT_STATUS { fn default() -> Self { @@ -359,7 +359,7 @@ impl Default for CHANGER_SET_ACCESS { pub struct CHANGER_SET_POSITION { pub Transport: CHANGER_ELEMENT, pub Destination: CHANGER_ELEMENT, - pub Flip: super::super::Foundation::BOOLEAN, + pub Flip: bool, } impl Default for CHANGER_SET_POSITION { fn default() -> Self { @@ -532,7 +532,7 @@ pub const CSV_INVALID_DEVICE_NUMBER: u32 = 4294967295u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CSV_IS_OWNED_BY_CSVFS { - pub OwnedByCSVFS: super::super::Foundation::BOOLEAN, + pub OwnedByCSVFS: bool, } impl Default for CSV_IS_OWNED_BY_CSVFS { fn default() -> Self { @@ -629,7 +629,7 @@ pub const CSV_QUERY_MDS_PATH_V2_VERSION_1: u32 = 1u32; pub struct CSV_QUERY_REDIRECT_STATE { pub MdsNodeId: u32, pub DsNodeId: u32, - pub FileRedirected: super::super::Foundation::BOOLEAN, + pub FileRedirected: bool, } impl Default for CSV_QUERY_REDIRECT_STATE { fn default() -> Self { @@ -663,8 +663,8 @@ impl Default for CSV_QUERY_VOLUME_ID { pub struct CSV_QUERY_VOLUME_REDIRECT_STATE { pub MdsNodeId: u32, pub DsNodeId: u32, - pub IsDiskConnected: super::super::Foundation::BOOLEAN, - pub ClusterEnableDirectIo: super::super::Foundation::BOOLEAN, + pub IsDiskConnected: bool, + pub ClusterEnableDirectIo: bool, pub DiskConnectivity: CSVFS_DISK_CONNECTIVITY, } impl Default for CSV_QUERY_VOLUME_REDIRECT_STATE { @@ -719,7 +719,7 @@ pub const DDUMP_FLAG_DATA_READ_FROM_DEVICE: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DECRYPTION_STATUS_BUFFER { - pub NoEncryptedStreams: super::super::Foundation::BOOLEAN, + pub NoEncryptedStreams: bool, } impl Default for DECRYPTION_STATUS_BUFFER { fn default() -> Self { @@ -1063,10 +1063,10 @@ impl Default for DEVICE_DSM_CONVERSION_OUTPUT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct DEVICE_DSM_DEFINITION { pub Action: u32, - pub SingleRange: super::super::Foundation::BOOLEAN, + pub SingleRange: bool, pub ParameterBlockAlignment: u32, pub ParameterBlockLength: u32, - pub HasOutput: super::super::Foundation::BOOLEAN, + pub HasOutput: bool, pub OutputBlockAlignment: u32, pub OutputBlockLength: u32, } @@ -1496,12 +1496,12 @@ impl Default for DEVICE_MEDIA_INFO_0_2_0_0 { pub struct DEVICE_POWER_DESCRIPTOR { pub Version: u32, pub Size: u32, - pub DeviceAttentionSupported: super::super::Foundation::BOOLEAN, - pub AsynchronousNotificationSupported: super::super::Foundation::BOOLEAN, - pub IdlePowerManagementEnabled: super::super::Foundation::BOOLEAN, - pub D3ColdEnabled: super::super::Foundation::BOOLEAN, - pub D3ColdSupported: super::super::Foundation::BOOLEAN, - pub NoVerifyDuringIdlePower: super::super::Foundation::BOOLEAN, + pub DeviceAttentionSupported: bool, + pub AsynchronousNotificationSupported: bool, + pub IdlePowerManagementEnabled: bool, + pub D3ColdEnabled: bool, + pub D3ColdSupported: bool, + pub NoVerifyDuringIdlePower: bool, pub Reserved: [u8; 2], pub IdleTimeoutInMS: u32, } @@ -1515,7 +1515,7 @@ impl Default for DEVICE_POWER_DESCRIPTOR { pub struct DEVICE_SEEK_PENALTY_DESCRIPTOR { pub Version: u32, pub Size: u32, - pub IncursSeekPenalty: super::super::Foundation::BOOLEAN, + pub IncursSeekPenalty: bool, } impl Default for DEVICE_SEEK_PENALTY_DESCRIPTOR { fn default() -> Self { @@ -1572,7 +1572,7 @@ impl Default for DEVICE_STORAGE_RANGE_ATTRIBUTES_0_0 { pub struct DEVICE_TRIM_DESCRIPTOR { pub Version: u32, pub Size: u32, - pub TrimEnabled: super::super::Foundation::BOOLEAN, + pub TrimEnabled: bool, } impl Default for DEVICE_TRIM_DESCRIPTOR { fn default() -> Self { @@ -1584,7 +1584,7 @@ impl Default for DEVICE_TRIM_DESCRIPTOR { pub struct DEVICE_WRITE_AGGREGATION_DESCRIPTOR { pub Version: u32, pub Size: u32, - pub BenefitsFromWriteAggregation: super::super::Foundation::BOOLEAN, + pub BenefitsFromWriteAggregation: bool, } impl Default for DEVICE_WRITE_AGGREGATION_DESCRIPTOR { fn default() -> Self { @@ -1606,13 +1606,13 @@ pub const DISK_BINNING: u32 = 3u32; #[repr(C)] #[derive(Clone, Copy)] pub struct DISK_CACHE_INFORMATION { - pub ParametersSavable: super::super::Foundation::BOOLEAN, - pub ReadCacheEnabled: super::super::Foundation::BOOLEAN, - pub WriteCacheEnabled: super::super::Foundation::BOOLEAN, + pub ParametersSavable: bool, + pub ReadCacheEnabled: bool, + pub WriteCacheEnabled: bool, pub ReadRetentionPriority: DISK_CACHE_RETENTION_PRIORITY, pub WriteRetentionPriority: DISK_CACHE_RETENTION_PRIORITY, pub DisablePrefetchTransferLength: u16, - pub PrefetchScalar: super::super::Foundation::BOOLEAN, + pub PrefetchScalar: bool, pub Anonymous: DISK_CACHE_INFORMATION_0, } impl Default for DISK_CACHE_INFORMATION { @@ -1890,7 +1890,7 @@ pub struct DISK_RECORD { pub VirtualAddress: *mut core::ffi::c_void, pub NumberOfBytes: u32, pub DeviceNumber: u8, - pub ReadRequest: super::super::Foundation::BOOLEAN, + pub ReadRequest: bool, } impl Default for DISK_RECORD { fn default() -> Self { @@ -2593,7 +2593,7 @@ impl Default for FILE_LEVEL_TRIM_RANGE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FILE_MAKE_COMPATIBLE_BUFFER { - pub CloseDisc: super::super::Foundation::BOOLEAN, + pub CloseDisc: bool, } impl Default for FILE_MAKE_COMPATIBLE_BUFFER { fn default() -> Self { @@ -2715,7 +2715,7 @@ impl Default for FILE_QUERY_ON_DISK_VOL_INFO_BUFFER { #[derive(Clone, Copy, Debug, PartialEq)] pub struct FILE_QUERY_SPARING_BUFFER { pub SparingUnitBytes: u32, - pub SoftwareSparing: super::super::Foundation::BOOLEAN, + pub SoftwareSparing: bool, pub TotalSpareBlocks: u32, pub FreeSpareBlocks: u32, } @@ -2784,7 +2784,7 @@ pub const FILE_REGION_USAGE_VALID_NONCACHED_DATA: u32 = 2u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FILE_SET_DEFECT_MGMT_BUFFER { - pub Disable: super::super::Foundation::BOOLEAN, + pub Disable: bool, } impl Default for FILE_SET_DEFECT_MGMT_BUFFER { fn default() -> Self { @@ -2795,7 +2795,7 @@ pub const FILE_SET_ENCRYPTION: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FILE_SET_SPARSE_BUFFER { - pub SetSparse: super::super::Foundation::BOOLEAN, + pub SetSparse: bool, } impl Default for FILE_SET_SPARSE_BUFFER { fn default() -> Self { @@ -4592,9 +4592,9 @@ pub struct PARTITION_INFORMATION { pub HiddenSectors: u32, pub PartitionNumber: u32, pub PartitionType: u8, - pub BootIndicator: super::super::Foundation::BOOLEAN, - pub RecognizedPartition: super::super::Foundation::BOOLEAN, - pub RewritePartition: super::super::Foundation::BOOLEAN, + pub BootIndicator: bool, + pub RecognizedPartition: bool, + pub RewritePartition: bool, } impl Default for PARTITION_INFORMATION { fn default() -> Self { @@ -4608,8 +4608,8 @@ pub struct PARTITION_INFORMATION_EX { pub StartingOffset: i64, pub PartitionLength: i64, pub PartitionNumber: u32, - pub RewritePartition: super::super::Foundation::BOOLEAN, - pub IsServicePartition: super::super::Foundation::BOOLEAN, + pub RewritePartition: bool, + pub IsServicePartition: bool, pub Anonymous: PARTITION_INFORMATION_EX_0, } impl Default for PARTITION_INFORMATION_EX { @@ -4645,8 +4645,8 @@ impl Default for PARTITION_INFORMATION_GPT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct PARTITION_INFORMATION_MBR { pub PartitionType: u8, - pub BootIndicator: super::super::Foundation::BOOLEAN, - pub RecognizedPartition: super::super::Foundation::BOOLEAN, + pub BootIndicator: bool, + pub RecognizedPartition: bool, pub HiddenSectors: u32, pub PartitionId: windows_core::GUID, } @@ -4830,7 +4830,7 @@ impl Default for PLEX_READ_DATA_REQUEST { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PREVENT_MEDIA_REMOVAL { - pub PreventMediaRemoval: super::super::Foundation::BOOLEAN, + pub PreventMediaRemoval: bool, } impl Default for PREVENT_MEDIA_REMOVAL { fn default() -> Self { @@ -5353,7 +5353,7 @@ impl Default for SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO_0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SCM_BUS_DEDICATED_MEMORY_STATE { - pub ActivateState: super::super::Foundation::BOOLEAN, + pub ActivateState: bool, } impl Default for SCM_BUS_DEDICATED_MEMORY_STATE { fn default() -> Self { @@ -5402,7 +5402,7 @@ pub struct SCM_BUS_QUERY_TYPE(pub i32); pub struct SCM_BUS_RUNTIME_FW_ACTIVATION_INFO { pub Version: u32, pub Size: u32, - pub RuntimeFwActivationSupported: super::super::Foundation::BOOLEAN, + pub RuntimeFwActivationSupported: bool, pub FirmwareActivationState: SCM_BUS_FIRMWARE_ACTIVATION_STATE, pub FirmwareActivationCapability: SCM_BUS_RUNTIME_FW_ACTIVATION_INFO_0, pub EstimatedFirmwareActivationTimeInUSecs: u64, @@ -5815,7 +5815,7 @@ impl Default for SCM_PD_REINITIALIZE_MEDIA_OUTPUT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE { - pub ArmState: super::super::Foundation::BOOLEAN, + pub ArmState: bool, } impl Default for SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE { fn default() -> Self { @@ -6110,7 +6110,7 @@ impl Default for SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct SET_DISK_ATTRIBUTES { pub Version: u32, - pub Persist: super::super::Foundation::BOOLEAN, + pub Persist: bool, pub Reserved1: [u8; 3], pub Attributes: u64, pub AttributesMask: u64, @@ -6308,10 +6308,10 @@ pub struct STORAGE_ADAPTER_DESCRIPTOR { pub MaximumTransferLength: u32, pub MaximumPhysicalPages: u32, pub AlignmentMask: u32, - pub AdapterUsesPio: super::super::Foundation::BOOLEAN, - pub AdapterScansDown: super::super::Foundation::BOOLEAN, - pub CommandQueueing: super::super::Foundation::BOOLEAN, - pub AcceleratedTransfer: super::super::Foundation::BOOLEAN, + pub AdapterUsesPio: bool, + pub AdapterScansDown: bool, + pub CommandQueueing: bool, + pub AcceleratedTransfer: bool, pub BusType: u8, pub BusMajorVersion: u16, pub BusMinorVersion: u16, @@ -6343,9 +6343,9 @@ pub struct STORAGE_ALLOCATE_BC_STREAM_INPUT { pub Version: u32, pub RequestsPerPeriod: u32, pub Period: u32, - pub RetryFailures: super::super::Foundation::BOOLEAN, - pub Discardable: super::super::Foundation::BOOLEAN, - pub Reserved1: [super::super::Foundation::BOOLEAN; 2], + pub RetryFailures: bool, + pub Discardable: bool, + pub Reserved1: [bool; 2], pub AccessType: u32, pub AccessMode: u32, } @@ -6538,8 +6538,8 @@ pub struct STORAGE_DEVICE_DESCRIPTOR { pub Size: u32, pub DeviceType: u8, pub DeviceTypeModifier: u8, - pub RemovableMedia: super::super::Foundation::BOOLEAN, - pub CommandQueueing: super::super::Foundation::BOOLEAN, + pub RemovableMedia: bool, + pub CommandQueueing: bool, pub VendorIdOffset: u32, pub ProductIdOffset: u32, pub ProductRevisionOffset: u32, @@ -6734,7 +6734,7 @@ impl Default for STORAGE_DEVICE_RESILIENCY_DESCRIPTOR { pub struct STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY { pub Version: u32, pub Size: u32, - pub SupportsSelfEncryption: super::super::Foundation::BOOLEAN, + pub SupportsSelfEncryption: bool, } impl Default for STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY { fn default() -> Self { @@ -6746,7 +6746,7 @@ impl Default for STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY { pub struct STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2 { pub Version: u32, pub Size: u32, - pub SupportsSelfEncryption: super::super::Foundation::BOOLEAN, + pub SupportsSelfEncryption: bool, pub EncryptionType: STORAGE_ENCRYPTION_TYPE, } impl Default for STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2 { @@ -6848,8 +6848,8 @@ pub const STORAGE_EVENT_NOTIFICATION_VERSION_V1: u32 = 1u32; pub struct STORAGE_FAILURE_PREDICTION_CONFIG { pub Version: u32, pub Size: u32, - pub Set: super::super::Foundation::BOOLEAN, - pub Enabled: super::super::Foundation::BOOLEAN, + pub Set: bool, + pub Enabled: bool, pub Reserved: u16, } impl Default for STORAGE_FAILURE_PREDICTION_CONFIG { @@ -6890,10 +6890,10 @@ impl Default for STORAGE_GET_BC_PROPERTIES_OUTPUT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct STORAGE_HOTPLUG_INFO { pub Size: u32, - pub MediaRemovable: super::super::Foundation::BOOLEAN, - pub MediaHotplug: super::super::Foundation::BOOLEAN, - pub DeviceHotplug: super::super::Foundation::BOOLEAN, - pub WriteCacheEnableOverride: super::super::Foundation::BOOLEAN, + pub MediaRemovable: bool, + pub MediaHotplug: bool, + pub DeviceHotplug: bool, + pub WriteCacheEnableOverride: bool, } impl Default for STORAGE_HOTPLUG_INFO { fn default() -> Self { @@ -6996,7 +6996,7 @@ pub struct STORAGE_HW_FIRMWARE_INFO { pub SlotCount: u8, pub ActiveSlot: u8, pub PendingActivateSlot: u8, - pub FirmwareShared: super::super::Foundation::BOOLEAN, + pub FirmwareShared: bool, pub Reserved: [u8; 3], pub ImagePayloadAlignment: u32, pub ImagePayloadMaxSize: u32, @@ -7142,10 +7142,10 @@ pub struct STORAGE_MINIPORT_DESCRIPTOR { pub Version: u32, pub Size: u32, pub Portdriver: STORAGE_PORT_CODE_SET, - pub LUNResetSupported: super::super::Foundation::BOOLEAN, - pub TargetResetSupported: super::super::Foundation::BOOLEAN, + pub LUNResetSupported: bool, + pub TargetResetSupported: bool, pub IoTimeoutValue: u16, - pub ExtraIoInfoSupported: super::super::Foundation::BOOLEAN, + pub ExtraIoInfoSupported: bool, pub Flags: STORAGE_MINIPORT_DESCRIPTOR_0, pub Reserved0: [u8; 2], pub Reserved1: u32, @@ -7306,7 +7306,7 @@ pub struct STORAGE_PHYSICAL_ADAPTER_DATA { pub Model: [u8; 40], pub FirmwareRevision: [u8; 16], pub PhysicalLocation: [u8; 32], - pub ExpanderConnected: super::super::Foundation::BOOLEAN, + pub ExpanderConnected: bool, pub Reserved0: [u8; 3], pub Reserved1: [u32; 3], } @@ -7798,9 +7798,9 @@ pub struct STORAGE_TEMPERATURE_INFO { pub Temperature: i16, pub OverThreshold: i16, pub UnderThreshold: i16, - pub OverThresholdChangable: super::super::Foundation::BOOLEAN, - pub UnderThresholdChangable: super::super::Foundation::BOOLEAN, - pub EventGenerated: super::super::Foundation::BOOLEAN, + pub OverThresholdChangable: bool, + pub UnderThresholdChangable: bool, + pub EventGenerated: bool, pub Reserved0: u8, pub Reserved1: u32, } @@ -7817,7 +7817,7 @@ pub struct STORAGE_TEMPERATURE_THRESHOLD { pub Flags: u16, pub Index: u16, pub Threshold: i16, - pub OverThreshold: super::super::Foundation::BOOLEAN, + pub OverThreshold: bool, pub Reserved: u8, } impl Default for STORAGE_TEMPERATURE_THRESHOLD { @@ -7877,9 +7877,9 @@ pub struct STORAGE_WRITE_CACHE_PROPERTY { pub WriteCacheEnabled: WRITE_CACHE_ENABLE, pub WriteCacheChangeable: WRITE_CACHE_CHANGE, pub WriteThroughSupported: WRITE_THROUGH, - pub FlushCacheSupported: super::super::Foundation::BOOLEAN, - pub UserDefinedPowerProtection: super::super::Foundation::BOOLEAN, - pub NVCacheEnabled: super::super::Foundation::BOOLEAN, + pub FlushCacheSupported: bool, + pub UserDefinedPowerProtection: bool, + pub NVCacheEnabled: bool, } impl Default for STORAGE_WRITE_CACHE_PROPERTY { fn default() -> Self { @@ -7928,7 +7928,7 @@ impl Default for STORAGE_ZONED_DEVICE_DESCRIPTOR_0_1 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct STORAGE_ZONED_DEVICE_DESCRIPTOR_0_0 { pub MaxOpenZoneCount: u32, - pub UnrestrictedRead: super::super::Foundation::BOOLEAN, + pub UnrestrictedRead: bool, pub Reserved: [u8; 3], } impl Default for STORAGE_ZONED_DEVICE_DESCRIPTOR_0_0 { @@ -7951,7 +7951,7 @@ pub struct STORAGE_ZONE_DESCRIPTOR { pub Size: u32, pub ZoneType: STORAGE_ZONE_TYPES, pub ZoneCondition: STORAGE_ZONE_CONDITION, - pub ResetWritePointerRecommend: super::super::Foundation::BOOLEAN, + pub ResetWritePointerRecommend: bool, pub Reserved0: [u8; 3], pub ZoneSize: u64, pub WritePointerOffset: u64, @@ -8732,7 +8732,7 @@ pub const TXFS_TRANSACTED_VERSION_UNCOMMITTED: u32 = 4294967295u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TXFS_TRANSACTION_ACTIVE_INFO { - pub TransactionsActiveAtSnapshot: super::super::Foundation::BOOLEAN, + pub TransactionsActiveAtSnapshot: bool, } impl Default for TXFS_TRANSACTION_ACTIVE_INFO { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs index 8cbbee7756..4914fac5e5 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs @@ -473,8 +473,8 @@ pub unsafe fn RtlCrc64(buffer: *const core::ffi::c_void, size: usize, initialcrc RtlCrc64(core::mem::transmute(buffer), core::mem::transmute(size), core::mem::transmute(initialcrc)) } #[inline] -pub unsafe fn RtlIsZeroMemory(buffer: *const core::ffi::c_void, length: usize) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlIsZeroMemory(buffer : *const core::ffi::c_void, length : usize) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn RtlIsZeroMemory(buffer: *const core::ffi::c_void, length: usize) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlIsZeroMemory(buffer : *const core::ffi::c_void, length : usize) -> bool); RtlIsZeroMemory(core::mem::transmute(buffer), core::mem::transmute(length)) } #[inline] @@ -1179,7 +1179,7 @@ impl Default for PROCESS_HEAP_ENTRY_0_1 { unsafe { core::mem::zeroed() } } } -pub type PSECURE_MEMORY_CACHE_CALLBACK = Option super::super::Foundation::BOOLEAN>; +pub type PSECURE_MEMORY_CACHE_CALLBACK = Option bool>; pub const QUOTA_LIMITS_HARDWS_MAX_DISABLE: SETPROCESSWORKINGSETSIZEEX_FLAGS = SETPROCESSWORKINGSETSIZEEX_FLAGS(8u32); pub const QUOTA_LIMITS_HARDWS_MAX_ENABLE: SETPROCESSWORKINGSETSIZEEX_FLAGS = SETPROCESSWORKINGSETSIZEEX_FLAGS(4u32); pub const QUOTA_LIMITS_HARDWS_MIN_DISABLE: SETPROCESSWORKINGSETSIZEEX_FLAGS = SETPROCESSWORKINGSETSIZEEX_FLAGS(2u32); diff --git a/crates/libs/windows/src/Windows/Win32/System/PasswordManagement/mod.rs b/crates/libs/windows/src/Windows/Win32/System/PasswordManagement/mod.rs index 3af15b71ff..58d35ebf37 100644 --- a/crates/libs/windows/src/Windows/Win32/System/PasswordManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/PasswordManagement/mod.rs @@ -4,8 +4,8 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn MSChapSrvChangePassword(servername : windows_core::PCWSTR, username : windows_core::PCWSTR, lmoldpresent : super::super::Foundation:: BOOLEAN, lmoldowfpassword : *const LM_OWF_PASSWORD, lmnewowfpassword : *const LM_OWF_PASSWORD, ntoldowfpassword : *const LM_OWF_PASSWORD, ntnewowfpassword : *const LM_OWF_PASSWORD) -> u32); - MSChapSrvChangePassword(servername.param().abi(), username.param().abi(), lmoldpresent.into(), core::mem::transmute(lmoldowfpassword), core::mem::transmute(lmnewowfpassword), core::mem::transmute(ntoldowfpassword), core::mem::transmute(ntnewowfpassword)) + windows_targets::link!("advapi32.dll" "system" fn MSChapSrvChangePassword(servername : windows_core::PCWSTR, username : windows_core::PCWSTR, lmoldpresent : bool, lmoldowfpassword : *const LM_OWF_PASSWORD, lmnewowfpassword : *const LM_OWF_PASSWORD, ntoldowfpassword : *const LM_OWF_PASSWORD, ntnewowfpassword : *const LM_OWF_PASSWORD) -> u32); + MSChapSrvChangePassword(servername.param().abi(), username.param().abi(), core::mem::transmute(lmoldpresent), core::mem::transmute(lmoldowfpassword), core::mem::transmute(lmnewowfpassword), core::mem::transmute(ntoldowfpassword), core::mem::transmute(ntnewowfpassword)) } #[inline] pub unsafe fn MSChapSrvChangePassword2(servername: P0, username: P1, newpasswordencryptedwitholdnt: *const SAMPR_ENCRYPTED_USER_PASSWORD, oldntowfpasswordencryptedwithnewnt: *const ENCRYPTED_LM_OWF_PASSWORD, lmpresent: bool, newpasswordencryptedwitholdlm: *const SAMPR_ENCRYPTED_USER_PASSWORD, oldlmowfpasswordencryptedwithnewlmornt: *const ENCRYPTED_LM_OWF_PASSWORD) -> u32 @@ -13,8 +13,8 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn MSChapSrvChangePassword2(servername : windows_core::PCWSTR, username : windows_core::PCWSTR, newpasswordencryptedwitholdnt : *const SAMPR_ENCRYPTED_USER_PASSWORD, oldntowfpasswordencryptedwithnewnt : *const ENCRYPTED_LM_OWF_PASSWORD, lmpresent : super::super::Foundation:: BOOLEAN, newpasswordencryptedwitholdlm : *const SAMPR_ENCRYPTED_USER_PASSWORD, oldlmowfpasswordencryptedwithnewlmornt : *const ENCRYPTED_LM_OWF_PASSWORD) -> u32); - MSChapSrvChangePassword2(servername.param().abi(), username.param().abi(), core::mem::transmute(newpasswordencryptedwitholdnt), core::mem::transmute(oldntowfpasswordencryptedwithnewnt), lmpresent.into(), core::mem::transmute(newpasswordencryptedwitholdlm), core::mem::transmute(oldlmowfpasswordencryptedwithnewlmornt)) + windows_targets::link!("advapi32.dll" "system" fn MSChapSrvChangePassword2(servername : windows_core::PCWSTR, username : windows_core::PCWSTR, newpasswordencryptedwitholdnt : *const SAMPR_ENCRYPTED_USER_PASSWORD, oldntowfpasswordencryptedwithnewnt : *const ENCRYPTED_LM_OWF_PASSWORD, lmpresent : bool, newpasswordencryptedwitholdlm : *const SAMPR_ENCRYPTED_USER_PASSWORD, oldlmowfpasswordencryptedwithnewlmornt : *const ENCRYPTED_LM_OWF_PASSWORD) -> u32); + MSChapSrvChangePassword2(servername.param().abi(), username.param().abi(), core::mem::transmute(newpasswordencryptedwitholdnt), core::mem::transmute(oldntowfpasswordencryptedwithnewnt), core::mem::transmute(lmpresent), core::mem::transmute(newpasswordencryptedwitholdlm), core::mem::transmute(oldlmowfpasswordencryptedwithnewlmornt)) } #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs index 6f88f1036b..8cd349503a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs @@ -9,8 +9,8 @@ pub unsafe fn EnableThreadProfiling(threadhandle: super::super::super::Foundatio EnableThreadProfiling(core::mem::transmute(threadhandle), core::mem::transmute(flags), core::mem::transmute(hardwarecounters), core::mem::transmute(performancedatahandle)) } #[inline] -pub unsafe fn QueryThreadProfiling(threadhandle: super::super::super::Foundation::HANDLE, enabled: *mut super::super::super::Foundation::BOOLEAN) -> u32 { - windows_targets::link!("kernel32.dll" "system" fn QueryThreadProfiling(threadhandle : super::super::super::Foundation:: HANDLE, enabled : *mut super::super::super::Foundation:: BOOLEAN) -> u32); +pub unsafe fn QueryThreadProfiling(threadhandle: super::super::super::Foundation::HANDLE, enabled: *mut bool) -> u32 { + windows_targets::link!("kernel32.dll" "system" fn QueryThreadProfiling(threadhandle : super::super::super::Foundation:: HANDLE, enabled : *mut bool) -> u32); QueryThreadProfiling(core::mem::transmute(threadhandle), core::mem::transmute(enabled)) } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs index d31ab0d8df..e79335337e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs @@ -349,13 +349,13 @@ pub unsafe fn PdhFormatFromRawValue(dwcountertype: u32, dwformat: PDH_FMT, ptime } #[inline] pub unsafe fn PdhGetCounterInfoA(hcounter: PDH_HCOUNTER, bretrieveexplaintext: bool, pdwbuffersize: *mut u32, lpbuffer: Option<*mut PDH_COUNTER_INFO_A>) -> u32 { - windows_targets::link!("pdh.dll" "system" fn PdhGetCounterInfoA(hcounter : PDH_HCOUNTER, bretrieveexplaintext : super::super::Foundation:: BOOLEAN, pdwbuffersize : *mut u32, lpbuffer : *mut PDH_COUNTER_INFO_A) -> u32); - PdhGetCounterInfoA(core::mem::transmute(hcounter), bretrieveexplaintext.into(), core::mem::transmute(pdwbuffersize), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("pdh.dll" "system" fn PdhGetCounterInfoA(hcounter : PDH_HCOUNTER, bretrieveexplaintext : bool, pdwbuffersize : *mut u32, lpbuffer : *mut PDH_COUNTER_INFO_A) -> u32); + PdhGetCounterInfoA(core::mem::transmute(hcounter), core::mem::transmute(bretrieveexplaintext), core::mem::transmute(pdwbuffersize), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PdhGetCounterInfoW(hcounter: PDH_HCOUNTER, bretrieveexplaintext: bool, pdwbuffersize: *mut u32, lpbuffer: Option<*mut PDH_COUNTER_INFO_W>) -> u32 { - windows_targets::link!("pdh.dll" "system" fn PdhGetCounterInfoW(hcounter : PDH_HCOUNTER, bretrieveexplaintext : super::super::Foundation:: BOOLEAN, pdwbuffersize : *mut u32, lpbuffer : *mut PDH_COUNTER_INFO_W) -> u32); - PdhGetCounterInfoW(core::mem::transmute(hcounter), bretrieveexplaintext.into(), core::mem::transmute(pdwbuffersize), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed()))) + windows_targets::link!("pdh.dll" "system" fn PdhGetCounterInfoW(hcounter : PDH_HCOUNTER, bretrieveexplaintext : bool, pdwbuffersize : *mut u32, lpbuffer : *mut PDH_COUNTER_INFO_W) -> u32); + PdhGetCounterInfoW(core::mem::transmute(hcounter), core::mem::transmute(bretrieveexplaintext), core::mem::transmute(pdwbuffersize), core::mem::transmute(lpbuffer.unwrap_or(core::mem::zeroed()))) } #[inline] pub unsafe fn PdhGetCounterTimeBase(hcounter: PDH_HCOUNTER, ptimebase: *mut i64) -> u32 { diff --git a/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs index 9a3a0193d4..216d34c856 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs @@ -4,28 +4,28 @@ pub unsafe fn CallNtPowerInformation(informationlevel: POWER_INFORMATION_LEVEL, CallNtPowerInformation(core::mem::transmute(informationlevel), core::mem::transmute(inputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(inputbufferlength), core::mem::transmute(outputbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(outputbufferlength)) } #[inline] -pub unsafe fn CanUserWritePwrScheme() -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn CanUserWritePwrScheme() -> super::super::Foundation:: BOOLEAN); +pub unsafe fn CanUserWritePwrScheme() -> bool { + windows_targets::link!("powrprof.dll" "system" fn CanUserWritePwrScheme() -> bool); CanUserWritePwrScheme() } #[inline] -pub unsafe fn DeletePwrScheme(uiid: u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn DeletePwrScheme(uiid : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn DeletePwrScheme(uiid: u32) -> bool { + windows_targets::link!("powrprof.dll" "system" fn DeletePwrScheme(uiid : u32) -> bool); DeletePwrScheme(core::mem::transmute(uiid)) } #[inline] -pub unsafe fn DevicePowerClose() -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn DevicePowerClose() -> super::super::Foundation:: BOOLEAN); +pub unsafe fn DevicePowerClose() -> bool { + windows_targets::link!("powrprof.dll" "system" fn DevicePowerClose() -> bool); DevicePowerClose() } #[inline] -pub unsafe fn DevicePowerEnumDevices(queryindex: u32, queryinterpretationflags: u32, queryflags: u32, preturnbuffer: Option<*mut u8>, pbuffersize: *mut u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn DevicePowerEnumDevices(queryindex : u32, queryinterpretationflags : u32, queryflags : u32, preturnbuffer : *mut u8, pbuffersize : *mut u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn DevicePowerEnumDevices(queryindex: u32, queryinterpretationflags: u32, queryflags: u32, preturnbuffer: Option<*mut u8>, pbuffersize: *mut u32) -> bool { + windows_targets::link!("powrprof.dll" "system" fn DevicePowerEnumDevices(queryindex : u32, queryinterpretationflags : u32, queryflags : u32, preturnbuffer : *mut u8, pbuffersize : *mut u32) -> bool); DevicePowerEnumDevices(core::mem::transmute(queryindex), core::mem::transmute(queryinterpretationflags), core::mem::transmute(queryflags), core::mem::transmute(preturnbuffer.unwrap_or(core::mem::zeroed())), core::mem::transmute(pbuffersize)) } #[inline] -pub unsafe fn DevicePowerOpen(debugmask: Option) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn DevicePowerOpen(debugmask : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn DevicePowerOpen(debugmask: Option) -> bool { + windows_targets::link!("powrprof.dll" "system" fn DevicePowerOpen(debugmask : u32) -> bool); DevicePowerOpen(core::mem::transmute(debugmask.unwrap_or(core::mem::zeroed()))) } #[inline] @@ -37,18 +37,18 @@ where DevicePowerSetDeviceState(devicedescription.param().abi(), core::mem::transmute(setflags), core::mem::transmute(setdata.unwrap_or(core::mem::zeroed()))) } #[inline] -pub unsafe fn EnumPwrSchemes(lpfn: PWRSCHEMESENUMPROC, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn EnumPwrSchemes(lpfn : PWRSCHEMESENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn EnumPwrSchemes(lpfn: PWRSCHEMESENUMPROC, lparam: super::super::Foundation::LPARAM) -> bool { + windows_targets::link!("powrprof.dll" "system" fn EnumPwrSchemes(lpfn : PWRSCHEMESENUMPROC, lparam : super::super::Foundation:: LPARAM) -> bool); EnumPwrSchemes(core::mem::transmute(lpfn), core::mem::transmute(lparam)) } #[inline] -pub unsafe fn GetActivePwrScheme(puiid: *mut u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn GetActivePwrScheme(puiid : *mut u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn GetActivePwrScheme(puiid: *mut u32) -> bool { + windows_targets::link!("powrprof.dll" "system" fn GetActivePwrScheme(puiid : *mut u32) -> bool); GetActivePwrScheme(core::mem::transmute(puiid)) } #[inline] -pub unsafe fn GetCurrentPowerPolicies(pglobalpowerpolicy: *mut GLOBAL_POWER_POLICY, ppowerpolicy: *mut POWER_POLICY) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn GetCurrentPowerPolicies(pglobalpowerpolicy : *mut GLOBAL_POWER_POLICY, ppowerpolicy : *mut POWER_POLICY) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn GetCurrentPowerPolicies(pglobalpowerpolicy: *mut GLOBAL_POWER_POLICY, ppowerpolicy: *mut POWER_POLICY) -> bool { + windows_targets::link!("powrprof.dll" "system" fn GetCurrentPowerPolicies(pglobalpowerpolicy : *mut GLOBAL_POWER_POLICY, ppowerpolicy : *mut POWER_POLICY) -> bool); GetCurrentPowerPolicies(core::mem::transmute(pglobalpowerpolicy), core::mem::transmute(ppowerpolicy)) } #[inline] @@ -57,13 +57,13 @@ pub unsafe fn GetDevicePowerState(hdevice: super::super::Foundation::HANDLE, pfo GetDevicePowerState(core::mem::transmute(hdevice), core::mem::transmute(pfon)) } #[inline] -pub unsafe fn GetPwrCapabilities(lpspc: *mut SYSTEM_POWER_CAPABILITIES) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn GetPwrCapabilities(lpspc : *mut SYSTEM_POWER_CAPABILITIES) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn GetPwrCapabilities(lpspc: *mut SYSTEM_POWER_CAPABILITIES) -> bool { + windows_targets::link!("powrprof.dll" "system" fn GetPwrCapabilities(lpspc : *mut SYSTEM_POWER_CAPABILITIES) -> bool); GetPwrCapabilities(core::mem::transmute(lpspc)) } #[inline] -pub unsafe fn GetPwrDiskSpindownRange(puimax: *mut u32, puimin: *mut u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn GetPwrDiskSpindownRange(puimax : *mut u32, puimin : *mut u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn GetPwrDiskSpindownRange(puimax: *mut u32, puimin: *mut u32) -> bool { + windows_targets::link!("powrprof.dll" "system" fn GetPwrDiskSpindownRange(puimax : *mut u32, puimin : *mut u32) -> bool); GetPwrDiskSpindownRange(core::mem::transmute(puimax), core::mem::transmute(puimin)) } #[inline] @@ -72,23 +72,23 @@ pub unsafe fn GetSystemPowerStatus(lpsystempowerstatus: *mut SYSTEM_POWER_STATUS GetSystemPowerStatus(core::mem::transmute(lpsystempowerstatus)).ok() } #[inline] -pub unsafe fn IsAdminOverrideActive(papp: *const ADMINISTRATOR_POWER_POLICY) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn IsAdminOverrideActive(papp : *const ADMINISTRATOR_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn IsAdminOverrideActive(papp: *const ADMINISTRATOR_POWER_POLICY) -> bool { + windows_targets::link!("powrprof.dll" "system" fn IsAdminOverrideActive(papp : *const ADMINISTRATOR_POWER_POLICY) -> bool); IsAdminOverrideActive(core::mem::transmute(papp)) } #[inline] -pub unsafe fn IsPwrHibernateAllowed() -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn IsPwrHibernateAllowed() -> super::super::Foundation:: BOOLEAN); +pub unsafe fn IsPwrHibernateAllowed() -> bool { + windows_targets::link!("powrprof.dll" "system" fn IsPwrHibernateAllowed() -> bool); IsPwrHibernateAllowed() } #[inline] -pub unsafe fn IsPwrShutdownAllowed() -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn IsPwrShutdownAllowed() -> super::super::Foundation:: BOOLEAN); +pub unsafe fn IsPwrShutdownAllowed() -> bool { + windows_targets::link!("powrprof.dll" "system" fn IsPwrShutdownAllowed() -> bool); IsPwrShutdownAllowed() } #[inline] -pub unsafe fn IsPwrSuspendAllowed() -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn IsPwrSuspendAllowed() -> super::super::Foundation:: BOOLEAN); +pub unsafe fn IsPwrSuspendAllowed() -> bool { + windows_targets::link!("powrprof.dll" "system" fn IsPwrSuspendAllowed() -> bool); IsPwrSuspendAllowed() } #[inline] @@ -169,8 +169,8 @@ where PowerImportPowerScheme(core::mem::transmute(rootpowerkey.unwrap_or(core::mem::zeroed())), importfilenamepath.param().abi(), core::mem::transmute(destinationschemeguid)) } #[inline] -pub unsafe fn PowerIsSettingRangeDefined(subkeyguid: Option<*const windows_core::GUID>, settingguid: Option<*const windows_core::GUID>) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn PowerIsSettingRangeDefined(subkeyguid : *const windows_core::GUID, settingguid : *const windows_core::GUID) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn PowerIsSettingRangeDefined(subkeyguid: Option<*const windows_core::GUID>, settingguid: Option<*const windows_core::GUID>) -> bool { + windows_targets::link!("powrprof.dll" "system" fn PowerIsSettingRangeDefined(subkeyguid : *const windows_core::GUID, settingguid : *const windows_core::GUID) -> bool); PowerIsSettingRangeDefined(core::mem::transmute(subkeyguid.unwrap_or(core::mem::zeroed())), core::mem::transmute(settingguid.unwrap_or(core::mem::zeroed()))) } #[cfg(feature = "Win32_System_Registry")] @@ -455,18 +455,18 @@ pub unsafe fn PowerWriteValueUnitsSpecifier(rootpowerkey: Option super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn ReadGlobalPwrPolicy(pglobalpowerpolicy : *const GLOBAL_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn ReadGlobalPwrPolicy(pglobalpowerpolicy: *const GLOBAL_POWER_POLICY) -> bool { + windows_targets::link!("powrprof.dll" "system" fn ReadGlobalPwrPolicy(pglobalpowerpolicy : *const GLOBAL_POWER_POLICY) -> bool); ReadGlobalPwrPolicy(core::mem::transmute(pglobalpowerpolicy)) } #[inline] -pub unsafe fn ReadProcessorPwrScheme(uiid: u32, pmachineprocessorpowerpolicy: *mut MACHINE_PROCESSOR_POWER_POLICY) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn ReadProcessorPwrScheme(uiid : u32, pmachineprocessorpowerpolicy : *mut MACHINE_PROCESSOR_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn ReadProcessorPwrScheme(uiid: u32, pmachineprocessorpowerpolicy: *mut MACHINE_PROCESSOR_POWER_POLICY) -> bool { + windows_targets::link!("powrprof.dll" "system" fn ReadProcessorPwrScheme(uiid : u32, pmachineprocessorpowerpolicy : *mut MACHINE_PROCESSOR_POWER_POLICY) -> bool); ReadProcessorPwrScheme(core::mem::transmute(uiid), core::mem::transmute(pmachineprocessorpowerpolicy)) } #[inline] -pub unsafe fn ReadPwrScheme(uiid: u32, ppowerpolicy: *mut POWER_POLICY) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn ReadPwrScheme(uiid : u32, ppowerpolicy : *mut POWER_POLICY) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn ReadPwrScheme(uiid: u32, ppowerpolicy: *mut POWER_POLICY) -> bool { + windows_targets::link!("powrprof.dll" "system" fn ReadPwrScheme(uiid : u32, ppowerpolicy : *mut POWER_POLICY) -> bool); ReadPwrScheme(core::mem::transmute(uiid), core::mem::transmute(ppowerpolicy)) } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -489,14 +489,14 @@ pub unsafe fn RequestWakeupLatency(latency: LATENCY_TIME) -> super::super::Found RequestWakeupLatency(core::mem::transmute(latency)) } #[inline] -pub unsafe fn SetActivePwrScheme(uiid: u32, pglobalpowerpolicy: Option<*const GLOBAL_POWER_POLICY>, ppowerpolicy: Option<*const POWER_POLICY>) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn SetActivePwrScheme(uiid : u32, pglobalpowerpolicy : *const GLOBAL_POWER_POLICY, ppowerpolicy : *const POWER_POLICY) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn SetActivePwrScheme(uiid: u32, pglobalpowerpolicy: Option<*const GLOBAL_POWER_POLICY>, ppowerpolicy: Option<*const POWER_POLICY>) -> bool { + windows_targets::link!("powrprof.dll" "system" fn SetActivePwrScheme(uiid : u32, pglobalpowerpolicy : *const GLOBAL_POWER_POLICY, ppowerpolicy : *const POWER_POLICY) -> bool); SetActivePwrScheme(core::mem::transmute(uiid), core::mem::transmute(pglobalpowerpolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppowerpolicy.unwrap_or(core::mem::zeroed()))) } #[inline] -pub unsafe fn SetSuspendState(bhibernate: bool, bforce: bool, bwakeupeventsdisabled: bool) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn SetSuspendState(bhibernate : super::super::Foundation:: BOOLEAN, bforce : super::super::Foundation:: BOOLEAN, bwakeupeventsdisabled : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: BOOLEAN); - SetSuspendState(bhibernate.into(), bforce.into(), bwakeupeventsdisabled.into()) +pub unsafe fn SetSuspendState(bhibernate: bool, bforce: bool, bwakeupeventsdisabled: bool) -> bool { + windows_targets::link!("powrprof.dll" "system" fn SetSuspendState(bhibernate : bool, bforce : bool, bwakeupeventsdisabled : bool) -> bool); + SetSuspendState(core::mem::transmute(bhibernate), core::mem::transmute(bforce), core::mem::transmute(bwakeupeventsdisabled)) } #[inline] pub unsafe fn SetSystemPowerState(fsuspend: bool, fforce: bool) -> windows_core::Result<()> { @@ -519,27 +519,27 @@ pub unsafe fn UnregisterSuspendResumeNotification(handle: HPOWERNOTIFY) -> windo UnregisterSuspendResumeNotification(core::mem::transmute(handle)).ok() } #[inline] -pub unsafe fn ValidatePowerPolicies(pglobalpowerpolicy: Option<*mut GLOBAL_POWER_POLICY>, ppowerpolicy: Option<*mut POWER_POLICY>) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn ValidatePowerPolicies(pglobalpowerpolicy : *mut GLOBAL_POWER_POLICY, ppowerpolicy : *mut POWER_POLICY) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn ValidatePowerPolicies(pglobalpowerpolicy: Option<*mut GLOBAL_POWER_POLICY>, ppowerpolicy: Option<*mut POWER_POLICY>) -> bool { + windows_targets::link!("powrprof.dll" "system" fn ValidatePowerPolicies(pglobalpowerpolicy : *mut GLOBAL_POWER_POLICY, ppowerpolicy : *mut POWER_POLICY) -> bool); ValidatePowerPolicies(core::mem::transmute(pglobalpowerpolicy.unwrap_or(core::mem::zeroed())), core::mem::transmute(ppowerpolicy.unwrap_or(core::mem::zeroed()))) } #[inline] -pub unsafe fn WriteGlobalPwrPolicy(pglobalpowerpolicy: *const GLOBAL_POWER_POLICY) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn WriteGlobalPwrPolicy(pglobalpowerpolicy : *const GLOBAL_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn WriteGlobalPwrPolicy(pglobalpowerpolicy: *const GLOBAL_POWER_POLICY) -> bool { + windows_targets::link!("powrprof.dll" "system" fn WriteGlobalPwrPolicy(pglobalpowerpolicy : *const GLOBAL_POWER_POLICY) -> bool); WriteGlobalPwrPolicy(core::mem::transmute(pglobalpowerpolicy)) } #[inline] -pub unsafe fn WriteProcessorPwrScheme(uiid: u32, pmachineprocessorpowerpolicy: *const MACHINE_PROCESSOR_POWER_POLICY) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("powrprof.dll" "system" fn WriteProcessorPwrScheme(uiid : u32, pmachineprocessorpowerpolicy : *const MACHINE_PROCESSOR_POWER_POLICY) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn WriteProcessorPwrScheme(uiid: u32, pmachineprocessorpowerpolicy: *const MACHINE_PROCESSOR_POWER_POLICY) -> bool { + windows_targets::link!("powrprof.dll" "system" fn WriteProcessorPwrScheme(uiid : u32, pmachineprocessorpowerpolicy : *const MACHINE_PROCESSOR_POWER_POLICY) -> bool); WriteProcessorPwrScheme(core::mem::transmute(uiid), core::mem::transmute(pmachineprocessorpowerpolicy)) } #[inline] -pub unsafe fn WritePwrScheme(puiid: *const u32, lpszschemename: P1, lpszdescription: P2, lpscheme: *const POWER_POLICY) -> super::super::Foundation::BOOLEAN +pub unsafe fn WritePwrScheme(puiid: *const u32, lpszschemename: P1, lpszdescription: P2, lpscheme: *const POWER_POLICY) -> bool where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("powrprof.dll" "system" fn WritePwrScheme(puiid : *const u32, lpszschemename : windows_core::PCWSTR, lpszdescription : windows_core::PCWSTR, lpscheme : *const POWER_POLICY) -> super::super::Foundation:: BOOLEAN); + windows_targets::link!("powrprof.dll" "system" fn WritePwrScheme(puiid : *const u32, lpszschemename : windows_core::PCWSTR, lpszdescription : windows_core::PCWSTR, lpscheme : *const POWER_POLICY) -> bool); WritePwrScheme(core::mem::transmute(puiid), lpszschemename.param().abi(), lpszdescription.param().abi(), core::mem::transmute(lpscheme)) } pub const ACCESS_ACTIVE_OVERLAY_SCHEME: POWER_DATA_ACCESSOR = POWER_DATA_ACCESSOR(27i32); @@ -594,15 +594,15 @@ pub const ACPI_TIME_ADJUST_DAYLIGHT: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct ACPI_TIME_AND_ALARM_CAPABILITIES { - pub AcWakeSupported: super::super::Foundation::BOOLEAN, - pub DcWakeSupported: super::super::Foundation::BOOLEAN, - pub S4AcWakeSupported: super::super::Foundation::BOOLEAN, - pub S4DcWakeSupported: super::super::Foundation::BOOLEAN, - pub S5AcWakeSupported: super::super::Foundation::BOOLEAN, - pub S5DcWakeSupported: super::super::Foundation::BOOLEAN, - pub S4S5WakeStatusSupported: super::super::Foundation::BOOLEAN, + pub AcWakeSupported: bool, + pub DcWakeSupported: bool, + pub S4AcWakeSupported: bool, + pub S4DcWakeSupported: bool, + pub S5AcWakeSupported: bool, + pub S5DcWakeSupported: bool, + pub S4S5WakeStatusSupported: bool, pub DeepestWakeSystemState: u32, - pub RealTimeFeaturesSupported: super::super::Foundation::BOOLEAN, + pub RealTimeFeaturesSupported: bool, pub RealTimeResolution: ACPI_TIME_RESOLUTION, } impl Default for ACPI_TIME_AND_ALARM_CAPABILITIES { @@ -670,7 +670,7 @@ impl Default for BATTERY_CHARGING_SOURCE { #[derive(Clone, Copy, Debug, PartialEq)] pub struct BATTERY_CHARGING_SOURCE_INFORMATION { pub Type: BATTERY_CHARGING_SOURCE_TYPE, - pub SourceOnline: super::super::Foundation::BOOLEAN, + pub SourceOnline: bool, } impl Default for BATTERY_CHARGING_SOURCE_INFORMATION { fn default() -> Self { @@ -1407,7 +1407,7 @@ pub const POWER_LEVEL_USER_NOTIFY_TEXT: POWER_ACTION_POLICY_EVENT_CODE = POWER_A #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct POWER_MONITOR_INVOCATION { - pub Console: super::super::Foundation::BOOLEAN, + pub Console: bool, pub RequestReason: POWER_MONITOR_REQUEST_REASON, } impl Default for POWER_MONITOR_INVOCATION { @@ -1424,7 +1424,7 @@ pub struct POWER_MONITOR_REQUEST_TYPE(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct POWER_PLATFORM_INFORMATION { - pub AoAc: super::super::Foundation::BOOLEAN, + pub AoAc: bool, } impl Default for POWER_PLATFORM_INFORMATION { fn default() -> Self { @@ -1456,7 +1456,7 @@ pub struct POWER_REQUEST_TYPE(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES { - pub IsAllowed: super::super::Foundation::BOOLEAN, + pub IsAllowed: bool, } impl Default for POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES { fn default() -> Self { @@ -1466,8 +1466,8 @@ impl Default for POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct POWER_SESSION_CONNECT { - pub Connected: super::super::Foundation::BOOLEAN, - pub Console: super::super::Foundation::BOOLEAN, + pub Connected: bool, + pub Console: bool, } impl Default for POWER_SESSION_CONNECT { fn default() -> Self { @@ -1477,7 +1477,7 @@ impl Default for POWER_SESSION_CONNECT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct POWER_SESSION_RIT_STATE { - pub Active: super::super::Foundation::BOOLEAN, + pub Active: bool, pub LastInputTime: u64, } impl Default for POWER_SESSION_RIT_STATE { @@ -1500,8 +1500,8 @@ impl Default for POWER_SESSION_TIMEOUTS { #[derive(Clone, Copy, Debug, PartialEq)] pub struct POWER_SESSION_WINLOGON { pub SessionId: u32, - pub Console: super::super::Foundation::BOOLEAN, - pub Locked: super::super::Foundation::BOOLEAN, + pub Console: bool, + pub Locked: bool, } impl Default for POWER_SESSION_WINLOGON { fn default() -> Self { @@ -1920,8 +1920,8 @@ impl Default for PROCESSOR_POWER_POLICY_INFO { unsafe { core::mem::zeroed() } } } -pub type PWRSCHEMESENUMPROC = Option super::super::Foundation::BOOLEAN>; -pub type PWRSCHEMESENUMPROC_V1 = Option super::super::Foundation::BOOLEAN>; +pub type PWRSCHEMESENUMPROC = Option bool>; +pub type PWRSCHEMESENUMPROC_V1 = Option bool>; pub const PdcInvocation: POWER_INFORMATION_LEVEL = POWER_INFORMATION_LEVEL(67i32); pub const PhysicalPowerButtonPress: POWER_INFORMATION_LEVEL = POWER_INFORMATION_LEVEL(90i32); pub const PlatformIdleStates: POWER_INFORMATION_LEVEL = POWER_INFORMATION_LEVEL(80i32); @@ -2031,11 +2031,11 @@ impl Default for SET_POWER_SETTING_VALUE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SYSTEM_BATTERY_STATE { - pub AcOnLine: super::super::Foundation::BOOLEAN, - pub BatteryPresent: super::super::Foundation::BOOLEAN, - pub Charging: super::super::Foundation::BOOLEAN, - pub Discharging: super::super::Foundation::BOOLEAN, - pub Spare1: [super::super::Foundation::BOOLEAN; 3], + pub AcOnLine: bool, + pub BatteryPresent: bool, + pub Charging: bool, + pub Discharging: bool, + pub Spare1: [bool; 3], pub Tag: u8, pub MaxCapacity: u32, pub RemainingCapacity: u32, @@ -2052,33 +2052,33 @@ impl Default for SYSTEM_BATTERY_STATE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SYSTEM_POWER_CAPABILITIES { - pub PowerButtonPresent: super::super::Foundation::BOOLEAN, - pub SleepButtonPresent: super::super::Foundation::BOOLEAN, - pub LidPresent: super::super::Foundation::BOOLEAN, - pub SystemS1: super::super::Foundation::BOOLEAN, - pub SystemS2: super::super::Foundation::BOOLEAN, - pub SystemS3: super::super::Foundation::BOOLEAN, - pub SystemS4: super::super::Foundation::BOOLEAN, - pub SystemS5: super::super::Foundation::BOOLEAN, - pub HiberFilePresent: super::super::Foundation::BOOLEAN, - pub FullWake: super::super::Foundation::BOOLEAN, - pub VideoDimPresent: super::super::Foundation::BOOLEAN, - pub ApmPresent: super::super::Foundation::BOOLEAN, - pub UpsPresent: super::super::Foundation::BOOLEAN, - pub ThermalControl: super::super::Foundation::BOOLEAN, - pub ProcessorThrottle: super::super::Foundation::BOOLEAN, + pub PowerButtonPresent: bool, + pub SleepButtonPresent: bool, + pub LidPresent: bool, + pub SystemS1: bool, + pub SystemS2: bool, + pub SystemS3: bool, + pub SystemS4: bool, + pub SystemS5: bool, + pub HiberFilePresent: bool, + pub FullWake: bool, + pub VideoDimPresent: bool, + pub ApmPresent: bool, + pub UpsPresent: bool, + pub ThermalControl: bool, + pub ProcessorThrottle: bool, pub ProcessorMinThrottle: u8, pub ProcessorMaxThrottle: u8, - pub FastSystemS4: super::super::Foundation::BOOLEAN, - pub Hiberboot: super::super::Foundation::BOOLEAN, - pub WakeAlarmPresent: super::super::Foundation::BOOLEAN, - pub AoAc: super::super::Foundation::BOOLEAN, - pub DiskSpinDown: super::super::Foundation::BOOLEAN, + pub FastSystemS4: bool, + pub Hiberboot: bool, + pub WakeAlarmPresent: bool, + pub AoAc: bool, + pub DiskSpinDown: bool, pub HiberFileType: u8, - pub AoAcConnectivitySupported: super::super::Foundation::BOOLEAN, + pub AoAcConnectivitySupported: bool, pub spare3: [u8; 6], - pub SystemBatteriesPresent: super::super::Foundation::BOOLEAN, - pub BatteriesAreShortTerm: super::super::Foundation::BOOLEAN, + pub SystemBatteriesPresent: bool, + pub BatteriesAreShortTerm: bool, pub BatteryScale: [BATTERY_REPORTING_SCALE; 3], pub AcOnLineWake: SYSTEM_POWER_STATE, pub SoftLidWake: SYSTEM_POWER_STATE, @@ -2110,7 +2110,7 @@ impl Default for SYSTEM_POWER_INFORMATION { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SYSTEM_POWER_LEVEL { - pub Enable: super::super::Foundation::BOOLEAN, + pub Enable: bool, pub Spare: [u8; 3], pub BatteryLevel: u32, pub PowerPolicy: POWER_ACTION_POLICY, @@ -2144,10 +2144,10 @@ pub struct SYSTEM_POWER_POLICY { pub BroadcastCapacityResolution: u32, pub DischargePolicy: [SYSTEM_POWER_LEVEL; 4], pub VideoTimeout: u32, - pub VideoDimDisplay: super::super::Foundation::BOOLEAN, + pub VideoDimDisplay: bool, pub VideoReserved: [u32; 3], pub SpindownTimeout: u32, - pub OptimizeForPower: super::super::Foundation::BOOLEAN, + pub OptimizeForPower: bool, pub FanThrottleTolerance: u8, pub ForcedThrottle: u8, pub MinThrottle: u8, @@ -2258,14 +2258,14 @@ impl Default for THERMAL_INFORMATION { #[derive(Clone, Copy, Debug, PartialEq)] pub struct THERMAL_POLICY { pub Version: u32, - pub WaitForUpdate: super::super::Foundation::BOOLEAN, - pub Hibernate: super::super::Foundation::BOOLEAN, - pub Critical: super::super::Foundation::BOOLEAN, - pub ThermalStandby: super::super::Foundation::BOOLEAN, + pub WaitForUpdate: bool, + pub Hibernate: bool, + pub Critical: bool, + pub ThermalStandby: bool, pub ActivationReasons: u32, pub PassiveLimit: u32, pub ActiveLevel: u32, - pub OverThrottled: super::super::Foundation::BOOLEAN, + pub OverThrottled: bool, } impl Default for THERMAL_POLICY { fn default() -> Self { @@ -2322,8 +2322,8 @@ pub struct USER_POWER_POLICY { pub VideoTimeoutDc: u32, pub SpindownTimeoutAc: u32, pub SpindownTimeoutDc: u32, - pub OptimizeForPowerAc: super::super::Foundation::BOOLEAN, - pub OptimizeForPowerDc: super::super::Foundation::BOOLEAN, + pub OptimizeForPowerAc: bool, + pub OptimizeForPowerDc: bool, pub FanThrottleToleranceAc: u8, pub FanThrottleToleranceDc: u8, pub ForcedThrottleAc: u8, diff --git a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs index 215559ab0c..f8f9787a29 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs @@ -9245,29 +9245,29 @@ impl Default for WRDS_CONNECTION_SETTINGS { #[repr(C)] #[derive(Clone, Copy)] pub struct WRDS_CONNECTION_SETTINGS_1 { - pub fInheritInitialProgram: super::super::Foundation::BOOLEAN, - pub fInheritColorDepth: super::super::Foundation::BOOLEAN, - pub fHideTitleBar: super::super::Foundation::BOOLEAN, - pub fInheritAutoLogon: super::super::Foundation::BOOLEAN, - pub fMaximizeShell: super::super::Foundation::BOOLEAN, - pub fDisablePNP: super::super::Foundation::BOOLEAN, - pub fPasswordIsScPin: super::super::Foundation::BOOLEAN, - pub fPromptForPassword: super::super::Foundation::BOOLEAN, - pub fDisableCpm: super::super::Foundation::BOOLEAN, - pub fDisableCdm: super::super::Foundation::BOOLEAN, - pub fDisableCcm: super::super::Foundation::BOOLEAN, - pub fDisableLPT: super::super::Foundation::BOOLEAN, - pub fDisableClip: super::super::Foundation::BOOLEAN, - pub fResetBroken: super::super::Foundation::BOOLEAN, - pub fDisableEncryption: super::super::Foundation::BOOLEAN, - pub fDisableAutoReconnect: super::super::Foundation::BOOLEAN, - pub fDisableCtrlAltDel: super::super::Foundation::BOOLEAN, - pub fDoubleClickDetect: super::super::Foundation::BOOLEAN, - pub fEnableWindowsKey: super::super::Foundation::BOOLEAN, - pub fUsingSavedCreds: super::super::Foundation::BOOLEAN, - pub fMouse: super::super::Foundation::BOOLEAN, - pub fNoAudioPlayback: super::super::Foundation::BOOLEAN, - pub fRemoteConsoleAudio: super::super::Foundation::BOOLEAN, + pub fInheritInitialProgram: bool, + pub fInheritColorDepth: bool, + pub fHideTitleBar: bool, + pub fInheritAutoLogon: bool, + pub fMaximizeShell: bool, + pub fDisablePNP: bool, + pub fPasswordIsScPin: bool, + pub fPromptForPassword: bool, + pub fDisableCpm: bool, + pub fDisableCdm: bool, + pub fDisableCcm: bool, + pub fDisableLPT: bool, + pub fDisableClip: bool, + pub fResetBroken: bool, + pub fDisableEncryption: bool, + pub fDisableAutoReconnect: bool, + pub fDisableCtrlAltDel: bool, + pub fDoubleClickDetect: bool, + pub fEnableWindowsKey: bool, + pub fUsingSavedCreds: bool, + pub fMouse: bool, + pub fNoAudioPlayback: bool, + pub fRemoteConsoleAudio: bool, pub EncryptionLevel: u8, pub ColorDepth: u16, pub ProtocolType: u16, @@ -9459,7 +9459,7 @@ pub struct WRDS_SETTINGS_1 { pub WRdsMaxConnectTimeStatus: WRDS_SETTING_STATUS, pub WRdsMaxConnectTimeValue: u32, pub WRdsKeepAliveStatus: WRDS_SETTING_STATUS, - pub WRdsKeepAliveStartValue: super::super::Foundation::BOOLEAN, + pub WRdsKeepAliveStartValue: bool, pub WRdsKeepAliveIntervalValue: u32, } impl Default for WRDS_SETTINGS_1 { @@ -10099,21 +10099,21 @@ impl Default for WTS_CLIENT_ADDRESS { #[repr(C)] #[derive(Clone, Copy)] pub struct WTS_CLIENT_DATA { - pub fDisableCtrlAltDel: super::super::Foundation::BOOLEAN, - pub fDoubleClickDetect: super::super::Foundation::BOOLEAN, - pub fEnableWindowsKey: super::super::Foundation::BOOLEAN, - pub fHideTitleBar: super::super::Foundation::BOOLEAN, + pub fDisableCtrlAltDel: bool, + pub fDoubleClickDetect: bool, + pub fEnableWindowsKey: bool, + pub fHideTitleBar: bool, pub fInheritAutoLogon: super::super::Foundation::BOOL, - pub fPromptForPassword: super::super::Foundation::BOOLEAN, - pub fUsingSavedCreds: super::super::Foundation::BOOLEAN, + pub fPromptForPassword: bool, + pub fUsingSavedCreds: bool, pub Domain: [u16; 256], pub UserName: [u16; 256], pub Password: [u16; 256], - pub fPasswordIsScPin: super::super::Foundation::BOOLEAN, + pub fPasswordIsScPin: bool, pub fInheritInitialProgram: super::super::Foundation::BOOL, pub WorkDirectory: [u16; 257], pub InitialProgram: [u16; 257], - pub fMaximizeShell: super::super::Foundation::BOOLEAN, + pub fMaximizeShell: bool, pub EncryptionLevel: u8, pub PerformanceFlags: u32, pub ProtocolName: [u16; 9], @@ -10124,15 +10124,15 @@ pub struct WTS_CLIENT_DATA { pub ColorDepth: u16, pub DisplayDriverName: [u16; 9], pub DisplayDeviceName: [u16; 20], - pub fMouse: super::super::Foundation::BOOLEAN, + pub fMouse: bool, pub KeyboardLayout: u32, pub KeyboardType: u32, pub KeyboardSubType: u32, pub KeyboardFunctionKey: u32, pub imeFileName: [u16; 33], pub ActiveInputLocale: u32, - pub fNoAudioPlayback: super::super::Foundation::BOOLEAN, - pub fRemoteConsoleAudio: super::super::Foundation::BOOLEAN, + pub fNoAudioPlayback: bool, + pub fRemoteConsoleAudio: bool, pub AudioDriverName: [u16; 9], pub ClientTimeZone: WTS_TIME_ZONE_INFORMATION, pub ClientName: [u16; 21], @@ -10148,12 +10148,12 @@ pub struct WTS_CLIENT_DATA { pub OutBufLength: u16, pub ClientSessionId: u32, pub ClientDigProductId: [u16; 33], - pub fDisableCpm: super::super::Foundation::BOOLEAN, - pub fDisableCdm: super::super::Foundation::BOOLEAN, - pub fDisableCcm: super::super::Foundation::BOOLEAN, - pub fDisableLPT: super::super::Foundation::BOOLEAN, - pub fDisableClip: super::super::Foundation::BOOLEAN, - pub fDisablePNP: super::super::Foundation::BOOLEAN, + pub fDisableCpm: bool, + pub fDisableCdm: bool, + pub fDisableCcm: bool, + pub fDisableLPT: bool, + pub fDisableClip: bool, + pub fDisablePNP: bool, } impl Default for WTS_CLIENT_DATA { fn default() -> Self { @@ -10272,16 +10272,16 @@ pub const WTS_PERF_ENABLE_FONT_SMOOTHING: u32 = 128u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WTS_POLICY_DATA { - pub fDisableEncryption: super::super::Foundation::BOOLEAN, - pub fDisableAutoReconnect: super::super::Foundation::BOOLEAN, + pub fDisableEncryption: bool, + pub fDisableAutoReconnect: bool, pub ColorDepth: u32, pub MinEncryptionLevel: u8, - pub fDisableCpm: super::super::Foundation::BOOLEAN, - pub fDisableCdm: super::super::Foundation::BOOLEAN, - pub fDisableCcm: super::super::Foundation::BOOLEAN, - pub fDisableLPT: super::super::Foundation::BOOLEAN, - pub fDisableClip: super::super::Foundation::BOOLEAN, - pub fDisablePNPRedir: super::super::Foundation::BOOLEAN, + pub fDisableCpm: bool, + pub fDisableCdm: bool, + pub fDisableCcm: bool, + pub fDisableLPT: bool, + pub fDisableClip: bool, + pub fDisablePNPRedir: bool, } impl Default for WTS_POLICY_DATA { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/System/ServerBackup/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ServerBackup/mod.rs index e795f2bfd4..b4a02a2bc2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ServerBackup/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ServerBackup/mod.rs @@ -91,7 +91,7 @@ impl IWsbApplicationRestoreSupport { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PreRestore)(windows_core::Interface::as_raw(self), wszwritermetadata.param().abi(), wszcomponentname.param().abi(), wszcomponentlogicalpath.param().abi(), bnorollforward.into()).ok() + (windows_core::Interface::vtable(self).PreRestore)(windows_core::Interface::as_raw(self), wszwritermetadata.param().abi(), wszcomponentname.param().abi(), wszcomponentlogicalpath.param().abi(), core::mem::transmute(bnorollforward)).ok() } pub unsafe fn PostRestore(&self, wszwritermetadata: P0, wszcomponentname: P1, wszcomponentlogicalpath: P2, bnorollforward: bool) -> windows_core::Result<()> where @@ -99,7 +99,7 @@ impl IWsbApplicationRestoreSupport { P1: windows_core::Param, P2: windows_core::Param, { - (windows_core::Interface::vtable(self).PostRestore)(windows_core::Interface::as_raw(self), wszwritermetadata.param().abi(), wszcomponentname.param().abi(), wszcomponentlogicalpath.param().abi(), bnorollforward.into()).ok() + (windows_core::Interface::vtable(self).PostRestore)(windows_core::Interface::as_raw(self), wszwritermetadata.param().abi(), wszcomponentname.param().abi(), wszcomponentlogicalpath.param().abi(), core::mem::transmute(bnorollforward)).ok() } pub unsafe fn OrderComponents(&self, ccomponents: u32, rgcomponentname: *const windows_core::PCWSTR, rgcomponentlogicalpaths: *const windows_core::PCWSTR, prgcomponentname: *mut *mut windows_core::PWSTR, prgcomponentlogicalpath: *mut *mut windows_core::PWSTR) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).OrderComponents)(windows_core::Interface::as_raw(self), core::mem::transmute(ccomponents), core::mem::transmute(rgcomponentname), core::mem::transmute(rgcomponentlogicalpaths), core::mem::transmute(prgcomponentname), core::mem::transmute(prgcomponentlogicalpath)).ok() @@ -112,24 +112,24 @@ impl IWsbApplicationRestoreSupport { #[repr(C)] pub struct IWsbApplicationRestoreSupport_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub PreRestore: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOLEAN) -> windows_core::HRESULT, - pub PostRestore: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOLEAN) -> windows_core::HRESULT, + pub PreRestore: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, bool) -> windows_core::HRESULT, + pub PostRestore: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, bool) -> windows_core::HRESULT, pub OrderComponents: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::PCWSTR, *const windows_core::PCWSTR, *mut *mut windows_core::PWSTR, *mut *mut windows_core::PWSTR) -> windows_core::HRESULT, pub IsRollForwardSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, } pub trait IWsbApplicationRestoreSupport_Impl: windows_core::IUnknownImpl { - fn PreRestore(&self, wszwritermetadata: &windows_core::PCWSTR, wszcomponentname: &windows_core::PCWSTR, wszcomponentlogicalpath: &windows_core::PCWSTR, bnorollforward: super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; - fn PostRestore(&self, wszwritermetadata: &windows_core::PCWSTR, wszcomponentname: &windows_core::PCWSTR, wszcomponentlogicalpath: &windows_core::PCWSTR, bnorollforward: super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; + fn PreRestore(&self, wszwritermetadata: &windows_core::PCWSTR, wszcomponentname: &windows_core::PCWSTR, wszcomponentlogicalpath: &windows_core::PCWSTR, bnorollforward: bool) -> windows_core::Result<()>; + fn PostRestore(&self, wszwritermetadata: &windows_core::PCWSTR, wszcomponentname: &windows_core::PCWSTR, wszcomponentlogicalpath: &windows_core::PCWSTR, bnorollforward: bool) -> windows_core::Result<()>; fn OrderComponents(&self, ccomponents: u32, rgcomponentname: *const windows_core::PCWSTR, rgcomponentlogicalpaths: *const windows_core::PCWSTR, prgcomponentname: *mut *mut windows_core::PWSTR, prgcomponentlogicalpath: *mut *mut windows_core::PWSTR) -> windows_core::Result<()>; fn IsRollForwardSupported(&self) -> windows_core::Result; } impl IWsbApplicationRestoreSupport_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn PreRestore(this: *mut core::ffi::c_void, wszwritermetadata: windows_core::PCWSTR, wszcomponentname: windows_core::PCWSTR, wszcomponentlogicalpath: windows_core::PCWSTR, bnorollforward: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { + unsafe extern "system" fn PreRestore(this: *mut core::ffi::c_void, wszwritermetadata: windows_core::PCWSTR, wszcomponentname: windows_core::PCWSTR, wszcomponentlogicalpath: windows_core::PCWSTR, bnorollforward: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWsbApplicationRestoreSupport_Impl::PreRestore(this, core::mem::transmute(&wszwritermetadata), core::mem::transmute(&wszcomponentname), core::mem::transmute(&wszcomponentlogicalpath), core::mem::transmute_copy(&bnorollforward)).into() } - unsafe extern "system" fn PostRestore(this: *mut core::ffi::c_void, wszwritermetadata: windows_core::PCWSTR, wszcomponentname: windows_core::PCWSTR, wszcomponentlogicalpath: windows_core::PCWSTR, bnorollforward: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { + unsafe extern "system" fn PostRestore(this: *mut core::ffi::c_void, wszwritermetadata: windows_core::PCWSTR, wszcomponentname: windows_core::PCWSTR, wszcomponentlogicalpath: windows_core::PCWSTR, bnorollforward: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWsbApplicationRestoreSupport_Impl::PostRestore(this, core::mem::transmute(&wszwritermetadata), core::mem::transmute(&wszcomponentname), core::mem::transmute(&wszcomponentlogicalpath), core::mem::transmute_copy(&bnorollforward)).into() } @@ -177,7 +177,7 @@ pub struct WSB_OB_REGISTRATION_INFO { pub m_guidSnapinId: windows_core::GUID, pub m_dwProviderName: u32, pub m_dwProviderIcon: u32, - pub m_bSupportsRemoting: super::super::Foundation::BOOLEAN, + pub m_bSupportsRemoting: bool, } impl Default for WSB_OB_REGISTRATION_INFO { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs index ddd5798551..b0e82353d8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs @@ -958,7 +958,7 @@ pub const SERVICE_PAUSE_PENDING: SERVICE_STATUS_CURRENT_STATE = SERVICE_STATUS_C #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVICE_PREFERRED_NODE_INFO { pub usPreferredNode: u16, - pub fDelete: super::super::Foundation::BOOLEAN, + pub fDelete: bool, } impl Default for SERVICE_PREFERRED_NODE_INFO { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs index cc1385f292..2b2bfbb58a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs @@ -15,9 +15,9 @@ where AbortSystemShutdownW(lpmachinename.param().abi()).ok() } #[inline] -pub unsafe fn CheckForHiberboot(phiberboot: *mut super::super::Foundation::BOOLEAN, bclearflag: bool) -> u32 { - windows_targets::link!("advapi32.dll" "system" fn CheckForHiberboot(phiberboot : *mut super::super::Foundation:: BOOLEAN, bclearflag : super::super::Foundation:: BOOLEAN) -> u32); - CheckForHiberboot(core::mem::transmute(phiberboot), bclearflag.into()) +pub unsafe fn CheckForHiberboot(phiberboot: *mut bool, bclearflag: bool) -> u32 { + windows_targets::link!("advapi32.dll" "system" fn CheckForHiberboot(phiberboot : *mut bool, bclearflag : bool) -> u32); + CheckForHiberboot(core::mem::transmute(phiberboot), core::mem::transmute(bclearflag)) } #[inline] pub unsafe fn ExitWindowsEx(uflags: EXIT_WINDOWS_FLAGS, dwreason: SHUTDOWN_REASON) -> windows_core::Result<()> { diff --git a/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs index 4632593030..a94e712f0e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs @@ -247,8 +247,8 @@ pub unsafe fn RtlGetDeviceFamilyInfoEnum(pulluapinfo: Option<*mut u64>, puldevic RtlGetDeviceFamilyInfoEnum(core::mem::transmute(pulluapinfo.unwrap_or(core::mem::zeroed())), core::mem::transmute(puldevicefamily.unwrap_or(core::mem::zeroed())), core::mem::transmute(puldeviceform.unwrap_or(core::mem::zeroed()))) } #[inline] -pub unsafe fn RtlGetProductInfo(osmajorversion: u32, osminorversion: u32, spmajorversion: u32, spminorversion: u32, returnedproducttype: *mut u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlGetProductInfo(osmajorversion : u32, osminorversion : u32, spmajorversion : u32, spminorversion : u32, returnedproducttype : *mut u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn RtlGetProductInfo(osmajorversion: u32, osminorversion: u32, spmajorversion: u32, spminorversion: u32, returnedproducttype: *mut u32) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlGetProductInfo(osmajorversion : u32, osminorversion : u32, spmajorversion : u32, spminorversion : u32, returnedproducttype : *mut u32) -> bool); RtlGetProductInfo(core::mem::transmute(osmajorversion), core::mem::transmute(osminorversion), core::mem::transmute(spmajorversion), core::mem::transmute(spminorversion), core::mem::transmute(returnedproducttype)) } #[inline] @@ -1126,7 +1126,7 @@ impl Default for SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX_0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SYSTEM_POOL_ZEROING_INFORMATION { - pub PoolZeroingSupportPresent: super::super::Foundation::BOOLEAN, + pub PoolZeroingSupportPresent: bool, } impl Default for SYSTEM_POOL_ZEROING_INFORMATION { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/System/SystemServices/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SystemServices/mod.rs index 7d747749e0..b7d36513a8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SystemServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SystemServices/mod.rs @@ -1517,7 +1517,7 @@ pub const IMAGE_COR_MIH_METHODRVA: ReplacesCorHdrNumericDefines = ReplacesCorHdr pub struct IMAGE_DEBUG_MISC { pub DataType: u32, pub Length: u32, - pub Unicode: super::super::Foundation::BOOLEAN, + pub Unicode: bool, pub Reserved: [u8; 3], pub Data: [u8; 1], } @@ -1927,7 +1927,7 @@ impl Default for IMAGE_POLICY_ENTRY { #[derive(Clone, Copy)] pub union IMAGE_POLICY_ENTRY_0 { pub None: *const core::ffi::c_void, - pub BoolValue: super::super::Foundation::BOOLEAN, + pub BoolValue: bool, pub Int8Value: i8, pub UInt8Value: u8, pub Int16Value: i16, @@ -3632,7 +3632,7 @@ impl Default for PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY_0_0 { #[derive(Clone, Copy)] pub struct PROCESS_MITIGATION_DEP_POLICY { pub Anonymous: PROCESS_MITIGATION_DEP_POLICY_0, - pub Permanent: super::super::Foundation::BOOLEAN, + pub Permanent: bool, } impl Default for PROCESS_MITIGATION_DEP_POLICY { fn default() -> Self { @@ -4144,9 +4144,9 @@ pub const PRODUCT_XBOX_KEYSTONE: u32 = 198u32; pub const PRODUCT_XBOX_SCARLETTHOSTOS: u32 = 197u32; pub const PRODUCT_XBOX_SYSTEMOS: u32 = 192u32; #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] -pub type PTERMINATION_HANDLER = Option; +pub type PTERMINATION_HANDLER = Option; #[cfg(target_arch = "aarch64")] -pub type PTERMINATION_HANDLER = Option; +pub type PTERMINATION_HANDLER = Option; pub type PUMS_SCHEDULER_ENTRY_POINT = Option; pub const PcTeb: u32 = 24u32; pub const PdataCrChained: ARM64_FNPDATA_CR = ARM64_FNPDATA_CR(3i32); @@ -4760,7 +4760,7 @@ pub struct SERVERSILO_BASIC_INFORMATION { pub ServiceSessionId: u32, pub State: SERVERSILO_STATE, pub ExitStatus: u32, - pub IsDownlevelContainer: super::super::Foundation::BOOLEAN, + pub IsDownlevelContainer: bool, pub ApiSetSchema: *mut core::ffi::c_void, pub HostApiSetSchema: *mut core::ffi::c_void, } @@ -4984,7 +4984,7 @@ pub struct SILOOBJECT_BASIC_INFORMATION { pub SiloId: u32, pub SiloParentId: u32, pub NumberOfProcesses: u32, - pub IsInServerSilo: super::super::Foundation::BOOLEAN, + pub IsInServerSilo: bool, pub Reserved: [u8; 3], } impl Default for SILOOBJECT_BASIC_INFORMATION { @@ -5426,10 +5426,10 @@ pub const TAPE_DRIVE_WRITE_SHORT_FMKS: TAPE_GET_DRIVE_PARAMETERS_FEATURES_HIGH = #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TAPE_GET_DRIVE_PARAMETERS { - pub ECC: super::super::Foundation::BOOLEAN, - pub Compression: super::super::Foundation::BOOLEAN, - pub DataPadding: super::super::Foundation::BOOLEAN, - pub ReportSetmarks: super::super::Foundation::BOOLEAN, + pub ECC: bool, + pub Compression: bool, + pub DataPadding: bool, + pub ReportSetmarks: bool, pub DefaultBlockSize: u32, pub MaximumBlockSize: u32, pub MinimumBlockSize: u32, @@ -5486,7 +5486,7 @@ pub struct TAPE_GET_MEDIA_PARAMETERS { pub Remaining: i64, pub BlockSize: u32, pub PartitionCount: u32, - pub WriteProtected: super::super::Foundation::BOOLEAN, + pub WriteProtected: bool, } impl Default for TAPE_GET_MEDIA_PARAMETERS { fn default() -> Self { @@ -5502,10 +5502,10 @@ pub const TAPE_QUERY_MEDIA_CAPACITY: i32 = 1i32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TAPE_SET_DRIVE_PARAMETERS { - pub ECC: super::super::Foundation::BOOLEAN, - pub Compression: super::super::Foundation::BOOLEAN, - pub DataPadding: super::super::Foundation::BOOLEAN, - pub ReportSetmarks: super::super::Foundation::BOOLEAN, + pub ECC: bool, + pub Compression: bool, + pub DataPadding: bool, + pub ReportSetmarks: bool, pub EOTWarningZoneSize: u32, } impl Default for TAPE_SET_DRIVE_PARAMETERS { @@ -5549,7 +5549,7 @@ pub const TLS_MINIMUM_AVAILABLE: u32 = 64u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct TOKEN_BNO_ISOLATION_INFORMATION { pub IsolationPrefix: windows_core::PWSTR, - pub IsolationEnabled: super::super::Foundation::BOOLEAN, + pub IsolationEnabled: bool, } impl Default for TOKEN_BNO_ISOLATION_INFORMATION { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs index e6552b2877..a57e4fe2fa 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs @@ -145,8 +145,8 @@ pub unsafe fn ChangeTimerQueueTimer(timerqueue: Option super::super::Foundation::BOOLEAN { - windows_targets::link!("kernel32.dll" "system" fn ClosePrivateNamespace(handle : super::super::Foundation:: HANDLE, flags : u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn ClosePrivateNamespace(handle: super::super::Foundation::HANDLE, flags: u32) -> bool { + windows_targets::link!("kernel32.dll" "system" fn ClosePrivateNamespace(handle : super::super::Foundation:: HANDLE, flags : u32) -> bool); ClosePrivateNamespace(core::mem::transmute(handle), core::mem::transmute(flags)) } #[inline] @@ -1888,13 +1888,13 @@ pub unsafe fn TlsSetValue(dwtlsindex: u32, lptlsvalue: Option<*const core::ffi:: TlsSetValue(core::mem::transmute(dwtlsindex), core::mem::transmute(lptlsvalue.unwrap_or(core::mem::zeroed()))).ok() } #[inline] -pub unsafe fn TryAcquireSRWLockExclusive(srwlock: *mut SRWLOCK) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("kernel32.dll" "system" fn TryAcquireSRWLockExclusive(srwlock : *mut SRWLOCK) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn TryAcquireSRWLockExclusive(srwlock: *mut SRWLOCK) -> bool { + windows_targets::link!("kernel32.dll" "system" fn TryAcquireSRWLockExclusive(srwlock : *mut SRWLOCK) -> bool); TryAcquireSRWLockExclusive(core::mem::transmute(srwlock)) } #[inline] -pub unsafe fn TryAcquireSRWLockShared(srwlock: *mut SRWLOCK) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("kernel32.dll" "system" fn TryAcquireSRWLockShared(srwlock : *mut SRWLOCK) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn TryAcquireSRWLockShared(srwlock: *mut SRWLOCK) -> bool { + windows_targets::link!("kernel32.dll" "system" fn TryAcquireSRWLockShared(srwlock : *mut SRWLOCK) -> bool); TryAcquireSRWLockShared(core::mem::transmute(srwlock)) } #[cfg(feature = "Win32_System_Kernel")] @@ -3651,7 +3651,7 @@ pub const UmsThreadPriority: UMS_THREAD_INFO_CLASS = UMS_THREAD_INFO_CLASS(2i32) pub const UmsThreadTeb: UMS_THREAD_INFO_CLASS = UMS_THREAD_INFO_CLASS(4i32); pub const UmsThreadUserContext: UMS_THREAD_INFO_CLASS = UMS_THREAD_INFO_CLASS(1i32); pub const UserEnabled: MACHINE_ATTRIBUTES = MACHINE_ATTRIBUTES(1i32); -pub type WAITORTIMERCALLBACK = Option; +pub type WAITORTIMERCALLBACK = Option; pub type WORKERCALLBACKFUNC = Option; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Time/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Time/mod.rs index 093a779a11..ffef467272 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Time/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Time/mod.rs @@ -84,7 +84,7 @@ pub struct DYNAMIC_TIME_ZONE_INFORMATION { pub DaylightDate: super::super::Foundation::SYSTEMTIME, pub DaylightBias: i32, pub TimeZoneKeyName: [u16; 128], - pub DynamicDaylightTimeDisabled: super::super::Foundation::BOOLEAN, + pub DynamicDaylightTimeDisabled: bool, } impl Default for DYNAMIC_TIME_ZONE_INFORMATION { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/mod.rs index 02f19faafb..a2d6b2390d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/mod.rs @@ -76,7 +76,7 @@ pub struct PDF_RENDER_PARAMS { pub DestinationWidth: u32, pub DestinationHeight: u32, pub BackgroundColor: super::super::super::Graphics::Direct2D::Common::D2D_COLOR_F, - pub IgnoreHighContrast: super::super::super::Foundation::BOOLEAN, + pub IgnoreHighContrast: bool, } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl Default for PDF_RENDER_PARAMS { diff --git a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs index e948b21351..5daae917fe 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs @@ -906,8 +906,8 @@ pub unsafe fn RequestDeviceWakeup(hdevice: super::super::Foundation::HANDLE) -> #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlAnsiStringToUnicodeString(destinationstring: *mut super::super::Foundation::UNICODE_STRING, sourcestring: *mut super::Kernel::STRING, allocatedestinationstring: bool) -> super::super::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlAnsiStringToUnicodeString(destinationstring : *mut super::super::Foundation:: UNICODE_STRING, sourcestring : *mut super::Kernel:: STRING, allocatedestinationstring : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: NTSTATUS); - RtlAnsiStringToUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlAnsiStringToUnicodeString(destinationstring : *mut super::super::Foundation:: UNICODE_STRING, sourcestring : *mut super::Kernel:: STRING, allocatedestinationstring : bool) -> super::super::Foundation:: NTSTATUS); + RtlAnsiStringToUnicodeString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) } #[inline] pub unsafe fn RtlCharToInteger(string: *mut i8, base: u32, value: *mut u32) -> super::super::Foundation::NTSTATUS { @@ -970,8 +970,8 @@ where } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn RtlIsNameLegalDOS8Dot3(name: *mut super::super::Foundation::UNICODE_STRING, oemname: *mut super::Kernel::STRING, namecontainsspaces: *mut super::super::Foundation::BOOLEAN) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlIsNameLegalDOS8Dot3(name : *mut super::super::Foundation:: UNICODE_STRING, oemname : *mut super::Kernel:: STRING, namecontainsspaces : *mut super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn RtlIsNameLegalDOS8Dot3(name: *mut super::super::Foundation::UNICODE_STRING, oemname: *mut super::Kernel::STRING, namecontainsspaces: *mut bool) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlIsNameLegalDOS8Dot3(name : *mut super::super::Foundation:: UNICODE_STRING, oemname : *mut super::Kernel:: STRING, namecontainsspaces : *mut bool) -> bool); RtlIsNameLegalDOS8Dot3(core::mem::transmute(name), core::mem::transmute(oemname), core::mem::transmute(namecontainsspaces)) } #[inline] @@ -985,21 +985,21 @@ pub unsafe fn RtlRaiseCustomSystemEventTrigger(triggerconfig: *const CUSTOM_SYST RtlRaiseCustomSystemEventTrigger(core::mem::transmute(triggerconfig)) } #[inline] -pub unsafe fn RtlTimeToSecondsSince1970(time: *mut i64, elapsedseconds: *mut u32) -> super::super::Foundation::BOOLEAN { - windows_targets::link!("ntdll.dll" "system" fn RtlTimeToSecondsSince1970(time : *mut i64, elapsedseconds : *mut u32) -> super::super::Foundation:: BOOLEAN); +pub unsafe fn RtlTimeToSecondsSince1970(time: *mut i64, elapsedseconds: *mut u32) -> bool { + windows_targets::link!("ntdll.dll" "system" fn RtlTimeToSecondsSince1970(time : *mut i64, elapsedseconds : *mut u32) -> bool); RtlTimeToSecondsSince1970(core::mem::transmute(time), core::mem::transmute(elapsedseconds)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUnicodeStringToAnsiString(destinationstring: *mut super::Kernel::STRING, sourcestring: *mut super::super::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToAnsiString(destinationstring : *mut super::Kernel:: STRING, sourcestring : *mut super::super::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: NTSTATUS); - RtlUnicodeStringToAnsiString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToAnsiString(destinationstring : *mut super::Kernel:: STRING, sourcestring : *mut super::super::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::Foundation:: NTSTATUS); + RtlUnicodeStringToAnsiString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn RtlUnicodeStringToOemString(destinationstring: *mut super::Kernel::STRING, sourcestring: *mut super::super::Foundation::UNICODE_STRING, allocatedestinationstring: bool) -> super::super::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToOemString(destinationstring : *mut super::Kernel:: STRING, sourcestring : *mut super::super::Foundation:: UNICODE_STRING, allocatedestinationstring : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: NTSTATUS); - RtlUnicodeStringToOemString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), allocatedestinationstring.into()) + windows_targets::link!("ntdll.dll" "system" fn RtlUnicodeStringToOemString(destinationstring : *mut super::Kernel:: STRING, sourcestring : *mut super::super::Foundation:: UNICODE_STRING, allocatedestinationstring : bool) -> super::super::Foundation:: NTSTATUS); + RtlUnicodeStringToOemString(core::mem::transmute(destinationstring), core::mem::transmute(sourcestring), core::mem::transmute(allocatedestinationstring)) } #[inline] pub unsafe fn RtlUnicodeToMultiByteSize(bytesinmultibytestring: *mut u32, unicodestring: P1, bytesinunicodestring: u32) -> super::super::Foundation::NTSTATUS @@ -3180,7 +3180,7 @@ impl Default for PUBLIC_OBJECT_TYPE_INFORMATION { unsafe { core::mem::zeroed() } } } -pub type PWINSTATIONQUERYINFORMATIONW = Option super::super::Foundation::BOOLEAN>; +pub type PWINSTATIONQUERYINFORMATIONW = Option bool>; pub type PWLDP_CANEXECUTEBUFFER_API = Option windows_core::HRESULT>; pub type PWLDP_CANEXECUTEFILE_API = Option windows_core::HRESULT>; #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs index b175b263b1..85a94ff221 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs @@ -47460,11 +47460,11 @@ pub const PANE_PRIVACY: u32 = 7u32; pub const PANE_PROGRESS: u32 = 6u32; pub const PANE_SSL: u32 = 4u32; pub const PANE_ZONE: u32 = 1u32; -pub type PAPPCONSTRAIN_CHANGE_ROUTINE = Option; +pub type PAPPCONSTRAIN_CHANGE_ROUTINE = Option; #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Default)] pub struct PAPPCONSTRAIN_REGISTRATION(pub isize); -pub type PAPPSTATE_CHANGE_ROUTINE = Option; +pub type PAPPSTATE_CHANGE_ROUTINE = Option; #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Default)] pub struct PAPPSTATE_REGISTRATION(pub isize); diff --git a/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs index b4903555b9..0c67c81217 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs @@ -5794,7 +5794,7 @@ pub const POINTER_MESSAGE_FLAG_SECONDBUTTON: u32 = 32u32; pub const POINTER_MESSAGE_FLAG_THIRDBUTTON: u32 = 64u32; pub const POINTER_MOD_CTRL: u32 = 8u32; pub const POINTER_MOD_SHIFT: u32 = 4u32; -pub type PREGISTERCLASSNAMEW = Option super::super::Foundation::BOOLEAN>; +pub type PREGISTERCLASSNAMEW = Option bool>; pub const PRF_CHECKVISIBLE: i32 = 1i32; pub const PRF_CHILDREN: i32 = 16i32; pub const PRF_CLIENT: i32 = 4i32; diff --git a/crates/libs/windows/src/extensions/Win32/Foundation.rs b/crates/libs/windows/src/extensions/Win32/Foundation.rs index 0008cd07fb..09dde03398 100644 --- a/crates/libs/windows/src/extensions/Win32/Foundation.rs +++ b/crates/libs/windows/src/extensions/Win32/Foundation.rs @@ -1,5 +1,4 @@ pub mod BOOL; -pub mod BOOLEAN; pub mod NTSTATUS; pub mod VARIANT_BOOL; pub mod WIN32_ERROR; diff --git a/crates/libs/windows/src/extensions/Win32/Foundation/BOOLEAN.rs b/crates/libs/windows/src/extensions/Win32/Foundation/BOOLEAN.rs deleted file mode 100644 index 8661e00742..0000000000 --- a/crates/libs/windows/src/extensions/Win32/Foundation/BOOLEAN.rs +++ /dev/null @@ -1,70 +0,0 @@ -use crate::Win32::Foundation::BOOLEAN; - -impl BOOLEAN { - #[inline] - pub fn as_bool(self) -> bool { - self.0 != 0 - } - #[inline] - pub fn ok(self) -> windows_core::Result<()> { - if self.as_bool() { - Ok(()) - } else { - Err(windows_core::Error::from_win32()) - } - } - #[inline] - #[track_caller] - pub fn unwrap(self) { - self.ok().unwrap(); - } - #[inline] - #[track_caller] - pub fn expect(self, msg: &str) { - self.ok().expect(msg); - } -} -impl From for bool { - fn from(value: BOOLEAN) -> Self { - value.as_bool() - } -} -impl From<&BOOLEAN> for bool { - fn from(value: &BOOLEAN) -> Self { - value.as_bool() - } -} -impl From for BOOLEAN { - fn from(value: bool) -> Self { - if value { - Self(1) - } else { - Self(0) - } - } -} -impl From<&bool> for BOOLEAN { - fn from(value: &bool) -> Self { - (*value).into() - } -} -impl PartialEq for BOOLEAN { - fn eq(&self, other: &bool) -> bool { - self.as_bool() == *other - } -} -impl PartialEq for bool { - fn eq(&self, other: &BOOLEAN) -> bool { - *self == other.as_bool() - } -} -impl core::ops::Not for BOOLEAN { - type Output = Self; - fn not(self) -> Self::Output { - if self.as_bool() { - Self(0) - } else { - Self(1) - } - } -} diff --git a/crates/tests/bindgen/src/bool_event.rs b/crates/tests/bindgen/src/bool_event.rs index 1d1b335912..24241a725d 100644 --- a/crates/tests/bindgen/src/bool_event.rs +++ b/crates/tests/bindgen/src/bool_event.rs @@ -33,10 +33,10 @@ pub unsafe fn NtWaitForSingleObject( alertable: bool, timeout: *mut i64, ) -> windows::Win32::Foundation::NTSTATUS { - windows_targets::link!("ntdll.dll" "system" fn NtWaitForSingleObject(handle : windows::Win32::Foundation:: HANDLE, alertable : windows::Win32::Foundation:: BOOLEAN, timeout : *mut i64) -> windows::Win32::Foundation:: NTSTATUS); + windows_targets::link!("ntdll.dll" "system" fn NtWaitForSingleObject(handle : windows::Win32::Foundation:: HANDLE, alertable : bool, timeout : *mut i64) -> windows::Win32::Foundation:: NTSTATUS); NtWaitForSingleObject( core::mem::transmute(handle), - alertable.into(), + core::mem::transmute(alertable), core::mem::transmute(timeout), ) } diff --git a/crates/tests/misc/arch/Cargo.toml b/crates/tests/misc/arch/Cargo.toml index ad9274bb8b..99a8b03934 100644 --- a/crates/tests/misc/arch/Cargo.toml +++ b/crates/tests/misc/arch/Cargo.toml @@ -12,10 +12,16 @@ doctest = false workspace = true features = [ "Win32_System_Diagnostics_Debug", + "Wdk_Foundation", + "Wdk_System_SystemServices", + "Win32_Security", ] [dependencies.windows-sys] workspace = true features = [ "Win32_System_Diagnostics_Debug", + "Wdk_Foundation", + "Wdk_System_SystemServices", + "Win32_Security", ] diff --git a/crates/tests/misc/arch/tests/sys.rs b/crates/tests/misc/arch/tests/sys.rs index a666486e88..8e0aaaabe3 100644 --- a/crates/tests/misc/arch/tests/sys.rs +++ b/crates/tests/misc/arch/tests/sys.rs @@ -3,6 +3,10 @@ fn test() { use windows_sys::Win32::System::Diagnostics::Debug::KNONVOLATILE_CONTEXT_POINTERS; assert_eq!(256, core::mem::size_of::()); + + use windows_sys::Wdk::Foundation::ACCESS_STATE; + assert_eq!(160, core::mem::size_of::()); + assert_eq!(8, core::mem::align_of::()); } #[test] @@ -10,4 +14,8 @@ fn test() { fn test() { use windows_sys::Win32::System::Diagnostics::Debug::KNONVOLATILE_CONTEXT_POINTERS; assert_eq!(4, core::mem::size_of::()); + + use windows_sys::Wdk::Foundation::ACCESS_STATE; + assert_eq!(116, core::mem::size_of::()); + assert_eq!(4, core::mem::align_of::()); } diff --git a/crates/tests/misc/arch/tests/win.rs b/crates/tests/misc/arch/tests/win.rs index d8a4add7fe..955a6eb328 100644 --- a/crates/tests/misc/arch/tests/win.rs +++ b/crates/tests/misc/arch/tests/win.rs @@ -3,6 +3,10 @@ fn test() { use windows::Win32::System::Diagnostics::Debug::KNONVOLATILE_CONTEXT_POINTERS; assert_eq!(256, core::mem::size_of::()); + + use windows::Wdk::Foundation::ACCESS_STATE; + assert_eq!(160, core::mem::size_of::()); + assert_eq!(8, core::mem::align_of::()); } #[test] @@ -10,4 +14,8 @@ fn test() { fn test() { use windows::Win32::System::Diagnostics::Debug::KNONVOLATILE_CONTEXT_POINTERS; assert_eq!(4, core::mem::size_of::()); + + use windows::Wdk::Foundation::ACCESS_STATE; + assert_eq!(116, core::mem::size_of::()); + assert_eq!(4, core::mem::align_of::()); } diff --git a/crates/tests/misc/extensions/tests/boolean.rs b/crates/tests/misc/extensions/tests/boolean.rs deleted file mode 100644 index c56c557526..0000000000 --- a/crates/tests/misc/extensions/tests/boolean.rs +++ /dev/null @@ -1,44 +0,0 @@ -use windows::{Win32::Foundation::*, Win32::NetworkManagement::IpHelper::*}; - -#[test] -fn test() { - let status = BOOLEAN::default(); - assert_eq!(status.0, 0); - - let status = BOOLEAN(1); - assert_eq!(status.0, 1); - assert!(status.as_bool()); - assert!(status.ok().is_ok()); - - unsafe { - SetLastError(ERROR_ACCESS_DENIED); - } - let status = BOOLEAN(0); - assert_eq!(status.0, 0); - assert!(!status.as_bool()); - let result = status.ok(); - assert!(!result.is_ok()); - let error = result.unwrap_err(); - assert_eq!(error.code(), E_ACCESSDENIED); -} - -#[test] -#[ignore] -fn no_run() { - unsafe { - _ = NotifyUnicastIpAddressChange( - Default::default(), - None, - None, - true, - std::ptr::null_mut(), - ); - _ = NotifyUnicastIpAddressChange( - Default::default(), - None, - None, - true, - std::ptr::null_mut(), - ); - } -} diff --git a/crates/tests/misc/handles/tests/legacy.rs b/crates/tests/misc/handles/tests/legacy.rs index 6883bd46f4..61e90b1313 100644 --- a/crates/tests/misc/handles/tests/legacy.rs +++ b/crates/tests/misc/handles/tests/legacy.rs @@ -14,13 +14,6 @@ fn handle() { assert!(core::mem::size_of::() == core::mem::size_of::()); } -#[test] -fn boolean() { - // Although BOOLEAN is considered a Win32 handle type, it is not pointer-sized like most handle types. - // This test just validates that such types have the correct layout. - assert!(core::mem::size_of::() == 1); -} - #[test] fn pstr() { let handle = PSTR(core::ptr::null_mut()); diff --git a/crates/tests/misc/handles/tests/sys.rs b/crates/tests/misc/handles/tests/sys.rs index ec3ecff321..2e6d09cddf 100644 --- a/crates/tests/misc/handles/tests/sys.rs +++ b/crates/tests/misc/handles/tests/sys.rs @@ -1,11 +1,4 @@ -use windows_sys::{Win32::Foundation::*, Win32::Graphics::Gdi::*}; - -#[test] -fn boolean() { - let underlying: u8 = 123; - let handle: BOOLEAN = underlying; - assert!(handle == underlying); -} +use windows_sys::Win32::Graphics::Gdi::*; #[test] fn hfont() { diff --git a/crates/tests/misc/standalone/src/b_std.rs b/crates/tests/misc/standalone/src/b_std.rs index 14387b4773..79a39cb226 100644 --- a/crates/tests/misc/standalone/src/b_std.rs +++ b/crates/tests/misc/standalone/src/b_std.rs @@ -8,13 +8,12 @@ windows_targets::link!("kernel32.dll" "system" fn CloseHandle(hobject : HANDLE) -> BOOL); windows_targets::link!("kernel32.dll" "system" fn GetLastError() -> WIN32_ERROR); -windows_targets::link!("advapi32.dll" "system" "SystemFunction036" fn RtlGenRandom(randombuffer : *mut core::ffi::c_void, randombufferlength : u32) -> BOOLEAN); +windows_targets::link!("advapi32.dll" "system" "SystemFunction036" fn RtlGenRandom(randombuffer : *mut core::ffi::c_void, randombufferlength : u32) -> bool); windows_targets::link!("ws2_32.dll" "system" fn socket(af : i32, r#type : WINSOCK_SOCKET_TYPE, protocol : i32) -> SOCKET); windows_targets::link!("user32.dll" "cdecl" fn wsprintfA(param0 : PSTR, param1 : PCSTR, ...) -> 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; diff --git a/crates/tests/misc/standalone/src/lib.rs b/crates/tests/misc/standalone/src/lib.rs index 8638a1271c..31394762e2 100644 --- a/crates/tests/misc/standalone/src/lib.rs +++ b/crates/tests/misc/standalone/src/lib.rs @@ -129,10 +129,10 @@ fn std() { unsafe { assert_eq!(b_std::CloseHandle(std::ptr::null_mut()), 0); let mut buffer = [0u8; 8]; - assert_eq!( - b_std::RtlGenRandom(buffer.as_mut_ptr() as _, buffer.len() as _), - 1 - ); + assert!(b_std::RtlGenRandom( + buffer.as_mut_ptr() as _, + buffer.len() as _ + )); assert_ne!(&buffer, &[0u8; 8]); } } diff --git a/crates/tests/misc/targets/tests/symbol.rs b/crates/tests/misc/targets/tests/symbol.rs index cb6c8c7eb7..f93e38fda4 100644 --- a/crates/tests/misc/targets/tests/symbol.rs +++ b/crates/tests/misc/targets/tests/symbol.rs @@ -5,10 +5,7 @@ fn symbol() { unsafe { use windows_sys::Win32::Security::Authentication::Identity::RtlGenRandom; let mut buffer = [0u8; 8]; - assert_eq!( - RtlGenRandom(buffer.as_mut_ptr() as _, buffer.len() as u32), - 1 - ); + assert!(RtlGenRandom(buffer.as_mut_ptr() as _, buffer.len() as u32)); assert_ne!(&buffer, &[0u8; 8]); } unsafe {