diff --git a/crates/libs/metadata/default/Windows.Win32.Interop.winmd b/crates/libs/metadata/default/Windows.Win32.Interop.winmd index 0c0466ee85..9c6097e66b 100644 Binary files a/crates/libs/metadata/default/Windows.Win32.Interop.winmd and b/crates/libs/metadata/default/Windows.Win32.Interop.winmd differ diff --git a/crates/libs/metadata/default/Windows.Win32.winmd b/crates/libs/metadata/default/Windows.Win32.winmd index 9e91abcbde..902579c391 100644 Binary files a/crates/libs/metadata/default/Windows.Win32.winmd and b/crates/libs/metadata/default/Windows.Win32.winmd differ diff --git a/crates/libs/metadata/default/readme.md b/crates/libs/metadata/default/readme.md index 4bad92ea31..67f6c0e0f3 100644 --- a/crates/libs/metadata/default/readme.md +++ b/crates/libs/metadata/default/readme.md @@ -4,7 +4,7 @@ dependent crate or workspace has an empty or non-existent `.windows/winmd` direc ## Windows.Win32.winmd - Source: https://www.nuget.org/packages/Microsoft.Windows.SDK.Win32Metadata/ -- Version: 31.0.4-preview +- Version: 32.0.17-preview ## Windows.winmd - Source: https://www.nuget.org/packages/Microsoft.Windows.SDK.Contracts diff --git a/crates/libs/sys/src/Windows/Win32/Data/Xml/MsXml/mod.rs b/crates/libs/sys/src/Windows/Win32/Data/Xml/MsXml/mod.rs index dce8bc6e53..8109fbd16a 100644 --- a/crates/libs/sys/src/Windows/Win32/Data/Xml/MsXml/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Data/Xml/MsXml/mod.rs @@ -1589,21 +1589,21 @@ pub const XHR_PROP_SET_ENTERPRISEID: XHR_PROPERTY = 10i32; #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] pub const XHR_PROP_MAX_CONNECTIONS: XHR_PROPERTY = 11i32; #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub type XMLEMEM_TYPE = i32; +pub type XMLELEM_TYPE = i32; #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_ELEMENT: XMLEMEM_TYPE = 0i32; +pub const XMLELEMTYPE_ELEMENT: XMLELEM_TYPE = 0i32; #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_TEXT: XMLEMEM_TYPE = 1i32; +pub const XMLELEMTYPE_TEXT: XMLELEM_TYPE = 1i32; #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_COMMENT: XMLEMEM_TYPE = 2i32; +pub const XMLELEMTYPE_COMMENT: XMLELEM_TYPE = 2i32; #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_DOCUMENT: XMLEMEM_TYPE = 3i32; +pub const XMLELEMTYPE_DOCUMENT: XMLELEM_TYPE = 3i32; #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_DTD: XMLEMEM_TYPE = 4i32; +pub const XMLELEMTYPE_DTD: XMLELEM_TYPE = 4i32; #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_PI: XMLEMEM_TYPE = 5i32; +pub const XMLELEMTYPE_PI: XMLELEM_TYPE = 5i32; #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_OTHER: XMLEMEM_TYPE = 6i32; +pub const XMLELEMTYPE_OTHER: XMLELEM_TYPE = 6i32; #[repr(C)] #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] pub struct XHR_CERT { 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 50fbcfda89..681a2024bc 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/Bluetooth/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/Bluetooth/mod.rs @@ -2,16 +2,16 @@ extern "system" { #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothAuthenticateDevice(hwndparent: super::super::Foundation::HWND, hradio: super::super::Foundation::HANDLE, pbtbi: *mut BLUETOOTH_DEVICE_INFO, pszpasskey: ::windows_sys::core::PCWSTR, ulpasskeylength: u32) -> u32; + pub fn BluetoothAuthenticateDevice(hwndparent: super::super::Foundation::HWND, hradio: super::super::Foundation::HANDLE, pbtbi: *mut BLUETOOTH_DEVICE_INFO_STRUCT, pszpasskey: ::windows_sys::core::PCWSTR, ulpasskeylength: u32) -> u32; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothAuthenticateDeviceEx(hwndparentin: super::super::Foundation::HWND, hradioin: super::super::Foundation::HANDLE, pbtdiinout: *mut BLUETOOTH_DEVICE_INFO, pbtoobdata: *const BLUETOOTH_OOB_DATA_INFO, authenticationrequirement: AUTHENTICATION_REQUIREMENTS) -> u32; + pub fn BluetoothAuthenticateDeviceEx(hwndparentin: super::super::Foundation::HWND, hradioin: super::super::Foundation::HANDLE, pbtdiinout: *mut BLUETOOTH_DEVICE_INFO_STRUCT, pbtoobdata: *const BLUETOOTH_OOB_DATA_INFO, authenticationrequirement: AUTHENTICATION_REQUIREMENTS) -> u32; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothAuthenticateMultipleDevices(hwndparent: super::super::Foundation::HWND, hradio: super::super::Foundation::HANDLE, cdevices: u32, rgbtdi: *mut BLUETOOTH_DEVICE_INFO) -> u32; + pub fn BluetoothAuthenticateMultipleDevices(hwndparent: super::super::Foundation::HWND, hradio: super::super::Foundation::HANDLE, cdevices: u32, rgbtdi: *mut BLUETOOTH_DEVICE_INFO_STRUCT) -> u32; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothDisplayDeviceProperties(hwndparent: super::super::Foundation::HWND, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> super::super::Foundation::BOOL; + pub fn BluetoothDisplayDeviceProperties(hwndparent: super::super::Foundation::HWND, pbtdi: *mut BLUETOOTH_DEVICE_INFO_STRUCT) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn BluetoothEnableDiscovery(hradio: super::super::Foundation::HANDLE, fenabled: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; @@ -20,19 +20,19 @@ extern "system" { pub fn BluetoothEnableIncomingConnections(hradio: super::super::Foundation::HANDLE, fenabled: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothEnumerateInstalledServices(hradio: super::super::Foundation::HANDLE, pbtdi: *const BLUETOOTH_DEVICE_INFO, pcserviceinout: *mut u32, pguidservices: *mut ::windows_sys::core::GUID) -> u32; + pub fn BluetoothEnumerateInstalledServices(hradio: super::super::Foundation::HANDLE, pbtdi: *const BLUETOOTH_DEVICE_INFO_STRUCT, pcserviceinout: *mut u32, pguidservices: *mut ::windows_sys::core::GUID) -> u32; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn BluetoothFindDeviceClose(hfind: isize) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothFindFirstDevice(pbtsp: *const BLUETOOTH_DEVICE_SEARCH_PARAMS, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> isize; + pub fn BluetoothFindFirstDevice(pbtsp: *const BLUETOOTH_DEVICE_SEARCH_PARAMS, pbtdi: *mut BLUETOOTH_DEVICE_INFO_STRUCT) -> isize; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn BluetoothFindFirstRadio(pbtfrp: *const BLUETOOTH_FIND_RADIO_PARAMS, phradio: *mut super::super::Foundation::HANDLE) -> isize; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothFindNextDevice(hfind: isize, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> super::super::Foundation::BOOL; + pub fn BluetoothFindNextDevice(hfind: isize, pbtdi: *mut BLUETOOTH_DEVICE_INFO_STRUCT) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn BluetoothFindNextRadio(hfind: isize, phradio: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; @@ -79,7 +79,7 @@ extern "system" { pub fn BluetoothGATTUnregisterEvent(eventhandle: isize, flags: u32) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothGetDeviceInfo(hradio: super::super::Foundation::HANDLE, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> u32; + pub fn BluetoothGetDeviceInfo(hradio: super::super::Foundation::HANDLE, pbtdi: *mut BLUETOOTH_DEVICE_INFO_STRUCT) -> u32; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn BluetoothGetRadioInfo(hradio: super::super::Foundation::HANDLE, pradioinfo: *mut BLUETOOTH_RADIO_INFO) -> u32; @@ -94,12 +94,12 @@ extern "system" { pub fn BluetoothIsVersionAvailable(majorversion: u8, minorversion: u8) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothRegisterForAuthentication(pbtdi: *const BLUETOOTH_DEVICE_INFO, phreghandle: *mut isize, pfncallback: PFN_AUTHENTICATION_CALLBACK, pvparam: *const ::core::ffi::c_void) -> u32; + pub fn BluetoothRegisterForAuthentication(pbtdi: *const BLUETOOTH_DEVICE_INFO_STRUCT, phreghandle: *mut isize, pfncallback: PFN_AUTHENTICATION_CALLBACK, pvparam: *const ::core::ffi::c_void) -> u32; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothRegisterForAuthenticationEx(pbtdiin: *const BLUETOOTH_DEVICE_INFO, phreghandleout: *mut isize, pfncallbackin: PFN_AUTHENTICATION_CALLBACK_EX, pvparam: *const ::core::ffi::c_void) -> u32; + pub fn BluetoothRegisterForAuthenticationEx(pbtdiin: *const BLUETOOTH_DEVICE_INFO_STRUCT, phreghandleout: *mut isize, pfncallbackin: PFN_AUTHENTICATION_CALLBACK_EX, pvparam: *const ::core::ffi::c_void) -> u32; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`*"] - pub fn BluetoothRemoveDevice(paddress: *const BLUETOOTH_ADDRESS) -> u32; + pub fn BluetoothRemoveDevice(paddress: *const BLUETOOTH_ADDRESS_STRUCT) -> u32; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn BluetoothSdpEnumAttributes(psdpstream: *const u8, cbstreamsize: u32, pfncallback: PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK, pvparam: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; @@ -122,22 +122,22 @@ extern "system" { pub fn BluetoothSelectDevicesFree(pbtsdp: *mut BLUETOOTH_SELECT_DEVICE_PARAMS) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothSendAuthenticationResponse(hradio: super::super::Foundation::HANDLE, pbtdi: *const BLUETOOTH_DEVICE_INFO, pszpasskey: ::windows_sys::core::PCWSTR) -> u32; + pub fn BluetoothSendAuthenticationResponse(hradio: super::super::Foundation::HANDLE, pbtdi: *const BLUETOOTH_DEVICE_INFO_STRUCT, pszpasskey: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn BluetoothSendAuthenticationResponseEx(hradioin: super::super::Foundation::HANDLE, pauthresponse: *const BLUETOOTH_AUTHENTICATE_RESPONSE) -> u32; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothSetLocalServiceInfo(hradioin: super::super::Foundation::HANDLE, pclassguid: *const ::windows_sys::core::GUID, ulinstance: u32, pserviceinfoin: *const BLUETOOTH_LOCAL_SERVICE_INFO) -> u32; + pub fn BluetoothSetLocalServiceInfo(hradioin: super::super::Foundation::HANDLE, pclassguid: *const ::windows_sys::core::GUID, ulinstance: u32, pserviceinfoin: *const BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT) -> u32; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothSetServiceState(hradio: super::super::Foundation::HANDLE, pbtdi: *const BLUETOOTH_DEVICE_INFO, pguidservice: *const ::windows_sys::core::GUID, dwserviceflags: u32) -> u32; + pub fn BluetoothSetServiceState(hradio: super::super::Foundation::HANDLE, pbtdi: *const BLUETOOTH_DEVICE_INFO_STRUCT, pguidservice: *const ::windows_sys::core::GUID, dwserviceflags: u32) -> u32; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn BluetoothUnregisterAuthentication(hreghandle: isize) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn BluetoothUpdateDeviceRecord(pbtdi: *const BLUETOOTH_DEVICE_INFO) -> u32; + pub fn BluetoothUpdateDeviceRecord(pbtdi: *const BLUETOOTH_DEVICE_INFO_STRUCT) -> u32; } #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`*"] pub const A2DP_SINK_SUPPORTED_FEATURES_AMPLIFIER: u32 = 8u32; @@ -1831,23 +1831,23 @@ pub const SDP_TYPE_URL: SDP_TYPE = 8i32; pub const SDP_TYPE_CONTAINER: SDP_TYPE = 32i32; #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`*"] -pub struct BLUETOOTH_ADDRESS { - pub Anonymous: BLUETOOTH_ADDRESS_0, +pub struct BLUETOOTH_ADDRESS_STRUCT { + pub Anonymous: BLUETOOTH_ADDRESS_STRUCT_0, } -impl ::core::marker::Copy for BLUETOOTH_ADDRESS {} -impl ::core::clone::Clone for BLUETOOTH_ADDRESS { +impl ::core::marker::Copy for BLUETOOTH_ADDRESS_STRUCT {} +impl ::core::clone::Clone for BLUETOOTH_ADDRESS_STRUCT { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`*"] -pub union BLUETOOTH_ADDRESS_0 { +pub union BLUETOOTH_ADDRESS_STRUCT_0 { pub ullLong: u64, pub rgBytes: [u8; 6], } -impl ::core::marker::Copy for BLUETOOTH_ADDRESS_0 {} -impl ::core::clone::Clone for BLUETOOTH_ADDRESS_0 { +impl ::core::marker::Copy for BLUETOOTH_ADDRESS_STRUCT_0 {} +impl ::core::clone::Clone for BLUETOOTH_ADDRESS_STRUCT_0 { fn clone(&self) -> Self { *self } @@ -1855,7 +1855,7 @@ impl ::core::clone::Clone for BLUETOOTH_ADDRESS_0 { #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`*"] pub struct BLUETOOTH_AUTHENTICATE_RESPONSE { - pub bthAddressRemote: BLUETOOTH_ADDRESS, + pub bthAddressRemote: BLUETOOTH_ADDRESS_STRUCT, pub authMethod: BLUETOOTH_AUTHENTICATION_METHOD, pub Anonymous: BLUETOOTH_AUTHENTICATE_RESPONSE_0, pub negativeResponse: u8, @@ -1884,7 +1884,7 @@ impl ::core::clone::Clone for BLUETOOTH_AUTHENTICATE_RESPONSE_0 { #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS { - pub deviceInfo: BLUETOOTH_DEVICE_INFO, + pub deviceInfo: BLUETOOTH_DEVICE_INFO_STRUCT, pub authenticationMethod: BLUETOOTH_AUTHENTICATION_METHOD, pub ioCapability: BLUETOOTH_IO_CAPABILITY, pub authenticationRequirements: BLUETOOTH_AUTHENTICATION_REQUIREMENTS, @@ -1928,9 +1928,9 @@ impl ::core::clone::Clone for BLUETOOTH_COD_PAIRS { #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct BLUETOOTH_DEVICE_INFO { +pub struct BLUETOOTH_DEVICE_INFO_STRUCT { pub dwSize: u32, - pub Address: BLUETOOTH_ADDRESS, + pub Address: BLUETOOTH_ADDRESS_STRUCT, pub ulClassofDevice: u32, pub fConnected: super::super::Foundation::BOOL, pub fRemembered: super::super::Foundation::BOOL, @@ -1940,9 +1940,9 @@ pub struct BLUETOOTH_DEVICE_INFO { pub szName: [u16; 248], } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for BLUETOOTH_DEVICE_INFO {} +impl ::core::marker::Copy for BLUETOOTH_DEVICE_INFO_STRUCT {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for BLUETOOTH_DEVICE_INFO { +impl ::core::clone::Clone for BLUETOOTH_DEVICE_INFO_STRUCT { fn clone(&self) -> Self { *self } @@ -2010,16 +2010,16 @@ impl ::core::clone::Clone for BLUETOOTH_GATT_VALUE_CHANGED_EVENT_REGISTRATION { #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct BLUETOOTH_LOCAL_SERVICE_INFO { +pub struct BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT { pub Enabled: super::super::Foundation::BOOL, - pub btAddr: BLUETOOTH_ADDRESS, + pub btAddr: BLUETOOTH_ADDRESS_STRUCT, pub szName: [u16; 256], pub szDeviceString: [u16; 256], } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for BLUETOOTH_LOCAL_SERVICE_INFO {} +impl ::core::marker::Copy for BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for BLUETOOTH_LOCAL_SERVICE_INFO { +impl ::core::clone::Clone for BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT { fn clone(&self) -> Self { *self } @@ -2074,7 +2074,7 @@ impl ::core::clone::Clone for BLUETOOTH_PIN_INFO { #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`*"] pub struct BLUETOOTH_RADIO_INFO { pub dwSize: u32, - pub address: BLUETOOTH_ADDRESS, + pub address: BLUETOOTH_ADDRESS_STRUCT, pub szName: [u16; 248], pub ulClassofDevice: u32, pub lmpSubversion: u16, @@ -2104,7 +2104,7 @@ pub struct BLUETOOTH_SELECT_DEVICE_PARAMS { pub pfnDeviceCallback: PFN_DEVICE_CALLBACK, pub pvParam: *mut ::core::ffi::c_void, pub cNumDevices: u32, - pub pDevices: *mut BLUETOOTH_DEVICE_INFO, + pub pDevices: *mut BLUETOOTH_DEVICE_INFO_STRUCT, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for BLUETOOTH_SELECT_DEVICE_PARAMS {} @@ -2743,7 +2743,7 @@ impl ::core::clone::Clone for SdpQueryUuidUnion { pub type PFNBLUETOOTH_GATT_EVENT_CALLBACK = ::core::option::Option; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type PFN_AUTHENTICATION_CALLBACK = ::core::option::Option super::super::Foundation::BOOL>; +pub type PFN_AUTHENTICATION_CALLBACK = ::core::option::Option super::super::Foundation::BOOL>; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type PFN_AUTHENTICATION_CALLBACK_EX = ::core::option::Option super::super::Foundation::BOOL>; @@ -2752,4 +2752,4 @@ pub type PFN_AUTHENTICATION_CALLBACK_EX = ::core::option::Option super::super::Foundation::BOOL>; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type PFN_DEVICE_CALLBACK = ::core::option::Option super::super::Foundation::BOOL>; +pub type PFN_DEVICE_CALLBACK = ::core::option::Option super::super::Foundation::BOOL>; diff --git a/crates/libs/sys/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs index 11704b27d2..230fee969e 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs @@ -267,12 +267,12 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn CM_Get_Hardware_Profile_InfoA(ulindex: u32, phwprofileinfo: *mut HWProfileInfo_sA, ulflags: u32) -> CONFIGRET; #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] - pub fn CM_Get_Hardware_Profile_InfoW(ulindex: u32, phwprofileinfo: *mut HWProfileInfo_sW, ulflags: u32) -> CONFIGRET; + pub fn CM_Get_Hardware_Profile_InfoW(ulindex: u32, phwprofileinfo: *mut HWPROFILEINFO_W, ulflags: u32) -> CONFIGRET; #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn CM_Get_Hardware_Profile_Info_ExA(ulindex: u32, phwprofileinfo: *mut HWProfileInfo_sA, ulflags: u32, hmachine: isize) -> CONFIGRET; #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] - pub fn CM_Get_Hardware_Profile_Info_ExW(ulindex: u32, phwprofileinfo: *mut HWProfileInfo_sW, ulflags: u32, hmachine: isize) -> CONFIGRET; + pub fn CM_Get_Hardware_Profile_Info_ExW(ulindex: u32, phwprofileinfo: *mut HWPROFILEINFO_W, ulflags: u32, hmachine: isize) -> CONFIGRET; #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub fn CM_Get_Log_Conf_Priority(lclogconf: usize, ppriority: *mut u32, ulflags: u32) -> CONFIGRET; #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] @@ -4671,7 +4671,7 @@ impl ::core::clone::Clone for BUSNUMBER_RANGE { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct BUSNUMBER_RESOURCE { pub BusNumber_Header: BUSNUMBER_DES, @@ -4969,6 +4969,34 @@ impl ::core::clone::Clone for CONFLICT_DETAILS_W { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct CONNECTION_DES { + pub COND_Type: u32, + pub COND_Flags: u32, + pub COND_Class: u8, + pub COND_ClassType: u8, + pub COND_Reserved1: u8, + pub COND_Reserved2: u8, + pub COND_Id: i64, +} +impl ::core::marker::Copy for CONNECTION_DES {} +impl ::core::clone::Clone for CONNECTION_DES { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct CONNECTION_RESOURCE { + pub Connection_Header: CONNECTION_DES, +} +impl ::core::marker::Copy for CONNECTION_RESOURCE {} +impl ::core::clone::Clone for CONNECTION_RESOURCE { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct CS_DES { pub CSD_SignatureLength: u32, pub CSD_LegacyDataOffset: u32, @@ -4983,7 +5011,7 @@ impl ::core::clone::Clone for CS_DES { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct CS_RESOURCE { pub CS_Header: CS_DES, @@ -4996,28 +5024,41 @@ impl ::core::clone::Clone for CS_RESOURCE { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct Connection_Des_s { - pub COND_Type: u32, - pub COND_Flags: u32, - pub COND_Class: u8, - pub COND_ClassType: u8, - pub COND_Reserved1: u8, - pub COND_Reserved2: u8, - pub COND_Id: i64, +pub struct DEVPRIVATE_DES { + pub PD_Count: u32, + pub PD_Type: u32, + pub PD_Data1: u32, + pub PD_Data2: u32, + pub PD_Data3: u32, + pub PD_Flags: u32, } -impl ::core::marker::Copy for Connection_Des_s {} -impl ::core::clone::Clone for Connection_Des_s { +impl ::core::marker::Copy for DEVPRIVATE_DES {} +impl ::core::clone::Clone for DEVPRIVATE_DES { fn clone(&self) -> Self { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct Connection_Resource_s { - pub Connection_Header: Connection_Des_s, +pub struct DEVPRIVATE_RANGE { + pub PR_Data1: u32, + pub PR_Data2: u32, + pub PR_Data3: u32, } -impl ::core::marker::Copy for Connection_Resource_s {} -impl ::core::clone::Clone for Connection_Resource_s { +impl ::core::marker::Copy for DEVPRIVATE_RANGE {} +impl ::core::clone::Clone for DEVPRIVATE_RANGE { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct DEVPRIVATE_RESOURCE { + pub PRV_Header: DEVPRIVATE_DES, + pub PRV_Data: [DEVPRIVATE_RANGE; 1], +} +impl ::core::marker::Copy for DEVPRIVATE_RESOURCE {} +impl ::core::clone::Clone for DEVPRIVATE_RESOURCE { fn clone(&self) -> Self { *self } @@ -5049,7 +5090,7 @@ impl ::core::clone::Clone for DMA_RANGE { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct DMA_RESOURCE { pub DMA_Header: DMA_DES, @@ -5061,47 +5102,6 @@ impl ::core::clone::Clone for DMA_RESOURCE { *self } } -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct DevPrivate_Des_s { - pub PD_Count: u32, - pub PD_Type: u32, - pub PD_Data1: u32, - pub PD_Data2: u32, - pub PD_Data3: u32, - pub PD_Flags: u32, -} -impl ::core::marker::Copy for DevPrivate_Des_s {} -impl ::core::clone::Clone for DevPrivate_Des_s { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct DevPrivate_Range_s { - pub PR_Data1: u32, - pub PR_Data2: u32, - pub PR_Data3: u32, -} -impl ::core::marker::Copy for DevPrivate_Range_s {} -impl ::core::clone::Clone for DevPrivate_Range_s { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct DevPrivate_Resource_s { - pub PRV_Header: DevPrivate_Des_s, - pub PRV_Data: [DevPrivate_Range_s; 1], -} -impl ::core::marker::Copy for DevPrivate_Resource_s {} -impl ::core::clone::Clone for DevPrivate_Resource_s { - fn clone(&self) -> Self { - *self - } -} #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] @@ -5339,30 +5339,30 @@ impl ::core::clone::Clone for FILE_IN_CABINET_INFO_W { pub type HCMNOTIFICATION = isize; pub type HDEVINFO = isize; #[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct HWProfileInfo_sA { +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct HWPROFILEINFO_W { pub HWPI_ulHWProfile: u32, - pub HWPI_szFriendlyName: [super::super::Foundation::CHAR; 80], + pub HWPI_szFriendlyName: [u16; 80], pub HWPI_dwFlags: u32, } -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for HWProfileInfo_sA {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for HWProfileInfo_sA { +impl ::core::marker::Copy for HWPROFILEINFO_W {} +impl ::core::clone::Clone for HWPROFILEINFO_W { fn clone(&self) -> Self { *self } } #[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct HWProfileInfo_sW { +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct HWProfileInfo_sA { pub HWPI_ulHWProfile: u32, - pub HWPI_szFriendlyName: [u16; 80], + pub HWPI_szFriendlyName: [super::super::Foundation::CHAR; 80], pub HWPI_dwFlags: u32, } -impl ::core::marker::Copy for HWProfileInfo_sW {} -impl ::core::clone::Clone for HWProfileInfo_sW { +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for HWProfileInfo_sA {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for HWProfileInfo_sA { fn clone(&self) -> Self { *self } @@ -5487,7 +5487,7 @@ impl ::core::clone::Clone for IRQ_RANGE { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct IRQ_RESOURCE_32 { pub IRQ_Header: IRQ_DES_32, @@ -5499,7 +5499,7 @@ impl ::core::clone::Clone for IRQ_RESOURCE_32 { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct IRQ_RESOURCE_64 { pub IRQ_Header: IRQ_DES_64, @@ -5529,6 +5529,50 @@ impl ::core::clone::Clone for MEM_DES { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct MEM_LARGE_DES { + pub MLD_Count: u32, + pub MLD_Type: u32, + pub MLD_Alloc_Base: u64, + pub MLD_Alloc_End: u64, + pub MLD_Flags: u32, + pub MLD_Reserved: u32, +} +impl ::core::marker::Copy for MEM_LARGE_DES {} +impl ::core::clone::Clone for MEM_LARGE_DES { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct MEM_LARGE_RANGE { + pub MLR_Align: u64, + pub MLR_nBytes: u64, + pub MLR_Min: u64, + pub MLR_Max: u64, + pub MLR_Flags: u32, + pub MLR_Reserved: u32, +} +impl ::core::marker::Copy for MEM_LARGE_RANGE {} +impl ::core::clone::Clone for MEM_LARGE_RANGE { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct MEM_LARGE_RESOURCE { + pub MEM_LARGE_Header: MEM_LARGE_DES, + pub MEM_LARGE_Data: [MEM_LARGE_RANGE; 1], +} +impl ::core::marker::Copy for MEM_LARGE_RESOURCE {} +impl ::core::clone::Clone for MEM_LARGE_RESOURCE { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct MEM_RANGE { pub MR_Align: u64, pub MR_nBytes: u32, @@ -5543,7 +5587,7 @@ impl ::core::clone::Clone for MEM_RANGE { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct MEM_RESOURCE { pub MEM_Header: MEM_DES, @@ -5572,7 +5616,7 @@ impl ::core::clone::Clone for MFCARD_DES { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct MFCARD_RESOURCE { pub MfCard_Header: MFCARD_DES, @@ -5585,50 +5629,6 @@ impl ::core::clone::Clone for MFCARD_RESOURCE { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct Mem_Large_Des_s { - pub MLD_Count: u32, - pub MLD_Type: u32, - pub MLD_Alloc_Base: u64, - pub MLD_Alloc_End: u64, - pub MLD_Flags: u32, - pub MLD_Reserved: u32, -} -impl ::core::marker::Copy for Mem_Large_Des_s {} -impl ::core::clone::Clone for Mem_Large_Des_s { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct Mem_Large_Range_s { - pub MLR_Align: u64, - pub MLR_nBytes: u64, - pub MLR_Min: u64, - pub MLR_Max: u64, - pub MLR_Flags: u32, - pub MLR_Reserved: u32, -} -impl ::core::marker::Copy for Mem_Large_Range_s {} -impl ::core::clone::Clone for Mem_Large_Range_s { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct Mem_Large_Resource_s { - pub MEM_LARGE_Header: Mem_Large_Des_s, - pub MEM_LARGE_Data: [Mem_Large_Range_s; 1], -} -impl ::core::marker::Copy for Mem_Large_Resource_s {} -impl ::core::clone::Clone for Mem_Large_Resource_s { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct PCCARD_DES { pub PCD_Count: u32, pub PCD_Type: u32, @@ -5647,7 +5647,7 @@ impl ::core::clone::Clone for PCCARD_DES { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct PCCARD_RESOURCE { pub PcCard_Header: PCCARD_DES, 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 5e410bcca2..0905bd58d4 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/Sensors/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/Sensors/mod.rs @@ -1,5 +1,5 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { +extern "system" { #[doc = "*Required features: `\"Win32_Devices_Sensors\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] pub fn CollectionsListAllocateBufferAndSerialize(sourcecollection: *const SENSOR_COLLECTION_LIST, ptargetbuffersizeinbytes: *mut u32, ptargetbuffer: *mut *mut u8) -> super::super::Foundation::NTSTATUS; diff --git a/crates/libs/sys/src/Windows/Win32/Devices/Tapi/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/Tapi/mod.rs index 91afa4195d..cebb87b447 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/Tapi/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/Tapi/mod.rs @@ -3932,6 +3932,41 @@ pub const TT_STATIC: TERMINAL_TYPE = 0i32; #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] pub const TT_DYNAMIC: TERMINAL_TYPE = 1i32; #[repr(C)] +#[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct ADDRALIAS { + pub rgchName: [super::super::Foundation::CHAR; 41], + pub rgchEName: [super::super::Foundation::CHAR; 11], + pub rgchSrvr: [super::super::Foundation::CHAR; 12], + pub dibDetail: u32, + pub r#type: u16, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for ADDRALIAS {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for ADDRALIAS { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] +pub struct DTR { + pub wYear: u16, + pub wMonth: u16, + pub wDay: u16, + pub wHour: u16, + pub wMinute: u16, + pub wSecond: u16, + pub wDayOfWeek: u16, +} +impl ::core::marker::Copy for DTR {} +impl ::core::clone::Clone for DTR { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] pub struct HDRVCALL__ { pub unused: i32, @@ -5427,6 +5462,20 @@ impl ::core::clone::Clone for LINEREQMAKECALL { } } #[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] +pub struct LINEREQMAKECALLW { + pub szDestAddress: [u16; 80], + pub szAppName: [u16; 40], + pub szCalledParty: [u16; 40], + pub szComment: [u16; 80], +} +impl ::core::marker::Copy for LINEREQMAKECALLW {} +impl ::core::clone::Clone for LINEREQMAKECALLW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct LINEREQMEDIACALL { @@ -5450,6 +5499,29 @@ impl ::core::clone::Clone for LINEREQMEDIACALL { } } #[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct LINEREQMEDIACALLW { + pub hWnd: super::super::Foundation::HWND, + pub wRequestID: super::super::Foundation::WPARAM, + pub szDeviceClass: [u16; 40], + pub ucDeviceID: [u8; 40], + pub dwSize: u32, + pub dwSecure: u32, + pub szDestAddress: [u16; 80], + pub szAppName: [u16; 40], + pub szCalledParty: [u16; 40], + pub szComment: [u16; 80], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for LINEREQMEDIACALLW {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for LINEREQMEDIACALLW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] pub struct LINETERMCAPS { pub dwTermDev: u32, @@ -5689,7 +5761,7 @@ impl ::core::clone::Clone for NSID { #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub union NSID_0 { - pub alias: _ADDR_ALIAS, + pub alias: ADDRALIAS, pub rgchInterNet: [super::super::Foundation::CHAR; 1], } #[cfg(feature = "Win32_Foundation")] @@ -5876,6 +5948,21 @@ impl ::core::clone::Clone for PHONESTATUS { *self } } +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] +pub struct RENDDATA { + pub atyp: u16, + pub ulPosition: u32, + pub dxWidth: u16, + pub dyHeight: u16, + pub dwFlags: u32, +} +impl ::core::marker::Copy for RENDDATA {} +impl ::core::clone::Clone for RENDDATA { + fn clone(&self) -> Self { + *self + } +} #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] pub struct STnefProblem { @@ -5933,6 +6020,20 @@ impl ::core::clone::Clone for TAPI_DETECTTONE { } #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] +pub struct TRP { + pub trpid: u16, + pub cbgrtrp: u16, + pub cch: u16, + pub cbRgb: u16, +} +impl ::core::marker::Copy for TRP {} +impl ::core::clone::Clone for TRP { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] pub struct TUISPICREATEDIALOGINSTANCEPARAMS { pub dwRequestID: u32, pub hdDlgInst: *mut HDRVDIALOGINSTANCE__, @@ -5963,107 +6064,6 @@ impl ::core::clone::Clone for VARSTRING { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct _ADDR_ALIAS { - pub rgchName: [super::super::Foundation::CHAR; 41], - pub rgchEName: [super::super::Foundation::CHAR; 11], - pub rgchSrvr: [super::super::Foundation::CHAR; 12], - pub dibDetail: u32, - pub r#type: u16, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _ADDR_ALIAS {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _ADDR_ALIAS { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] -pub struct _dtr { - pub wYear: u16, - pub wMonth: u16, - pub wDay: u16, - pub wHour: u16, - pub wMinute: u16, - pub wSecond: u16, - pub wDayOfWeek: u16, -} -impl ::core::marker::Copy for _dtr {} -impl ::core::clone::Clone for _dtr { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] -pub struct _renddata { - pub atyp: u16, - pub ulPosition: u32, - pub dxWidth: u16, - pub dyHeight: u16, - pub dwFlags: u32, -} -impl ::core::marker::Copy for _renddata {} -impl ::core::clone::Clone for _renddata { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] -pub struct _trp { - pub trpid: u16, - pub cbgrtrp: u16, - pub cch: u16, - pub cbRgb: u16, -} -impl ::core::marker::Copy for _trp {} -impl ::core::clone::Clone for _trp { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] -pub struct linereqmakecallW_tag { - pub szDestAddress: [u16; 80], - pub szAppName: [u16; 40], - pub szCalledParty: [u16; 40], - pub szComment: [u16; 80], -} -impl ::core::marker::Copy for linereqmakecallW_tag {} -impl ::core::clone::Clone for linereqmakecallW_tag { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct linereqmediacallW_tag { - pub hWnd: super::super::Foundation::HWND, - pub wRequestID: super::super::Foundation::WPARAM, - pub szDeviceClass: [u16; 40], - pub ucDeviceID: [u8; 40], - pub dwSize: u32, - pub dwSecure: u32, - pub szDestAddress: [u16; 80], - pub szAppName: [u16; 40], - pub szCalledParty: [u16; 40], - pub szComment: [u16; 80], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for linereqmediacallW_tag {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for linereqmediacallW_tag { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] pub type ASYNC_COMPLETION = ::core::option::Option; #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] 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 387283a12c..e677aba4ae 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/Usb/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/Usb/mod.rs @@ -1979,7 +1979,7 @@ impl ::core::clone::Clone for USBSCAN_TIMEOUT { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_BANDWIDTH_INFO_REQUEST { pub Header: USBUSER_REQUEST_HEADER, @@ -1991,7 +1991,7 @@ impl ::core::clone::Clone for USBUSER_BANDWIDTH_INFO_REQUEST { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct USBUSER_BUS_STATISTICS_0_REQUEST { @@ -2006,7 +2006,7 @@ impl ::core::clone::Clone for USBUSER_BUS_STATISTICS_0_REQUEST { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_CLOSE_RAW_DEVICE { pub Header: USBUSER_REQUEST_HEADER, @@ -2018,7 +2018,7 @@ impl ::core::clone::Clone for USBUSER_CLOSE_RAW_DEVICE { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_CONTROLLER_INFO_0 { pub Header: USBUSER_REQUEST_HEADER, @@ -2030,7 +2030,7 @@ impl ::core::clone::Clone for USBUSER_CONTROLLER_INFO_0 { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_CONTROLLER_UNICODE_NAME { pub Header: USBUSER_REQUEST_HEADER, @@ -2042,7 +2042,7 @@ impl ::core::clone::Clone for USBUSER_CONTROLLER_UNICODE_NAME { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct USBUSER_GET_DRIVER_VERSION { @@ -2057,7 +2057,7 @@ impl ::core::clone::Clone for USBUSER_GET_DRIVER_VERSION { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_GET_USB2HW_VERSION { pub Header: USBUSER_REQUEST_HEADER, @@ -2069,7 +2069,7 @@ impl ::core::clone::Clone for USBUSER_GET_USB2HW_VERSION { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_OPEN_RAW_DEVICE { pub Header: USBUSER_REQUEST_HEADER, @@ -2081,7 +2081,7 @@ impl ::core::clone::Clone for USBUSER_OPEN_RAW_DEVICE { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_PASS_THRU_REQUEST { pub Header: USBUSER_REQUEST_HEADER, @@ -2093,7 +2093,7 @@ impl ::core::clone::Clone for USBUSER_PASS_THRU_REQUEST { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct USBUSER_POWER_INFO_REQUEST { @@ -2108,7 +2108,7 @@ impl ::core::clone::Clone for USBUSER_POWER_INFO_REQUEST { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_RAW_RESET_ROOT_PORT { pub Header: USBUSER_REQUEST_HEADER, @@ -2146,7 +2146,7 @@ impl ::core::clone::Clone for USBUSER_REQUEST_HEADER { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_ROOTPORT_FEATURE_REQUEST { pub Header: USBUSER_REQUEST_HEADER, @@ -2158,7 +2158,7 @@ impl ::core::clone::Clone for USBUSER_ROOTPORT_FEATURE_REQUEST { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_ROOTPORT_PARAMETERS { pub Header: USBUSER_REQUEST_HEADER, @@ -2170,7 +2170,7 @@ impl ::core::clone::Clone for USBUSER_ROOTPORT_PARAMETERS { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_SEND_ONE_PACKET { pub Header: USBUSER_REQUEST_HEADER, @@ -2182,7 +2182,7 @@ impl ::core::clone::Clone for USBUSER_SEND_ONE_PACKET { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_SEND_RAW_COMMAND { pub Header: USBUSER_REQUEST_HEADER, @@ -3560,7 +3560,7 @@ impl ::core::clone::Clone for USB_UNICODE_NAME { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USB_USB2HW_VERSION_PARAMETERS { pub Usb2HwRevision: u8, diff --git a/crates/libs/sys/src/Windows/Win32/Foundation/mod.rs b/crates/libs/sys/src/Windows/Win32/Foundation/mod.rs index 03e0f8bdd0..2e0bf18bd2 100644 --- a/crates/libs/sys/src/Windows/Win32/Foundation/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Foundation/mod.rs @@ -1298,22 +1298,6 @@ pub const DISP_E_UNKNOWNLCID: ::windows_sys::core::HRESULT = -2147352564i32; #[doc = "*Required features: `\"Win32_Foundation\"`*"] pub const DISP_E_UNKNOWNNAME: ::windows_sys::core::HRESULT = -2147352570i32; #[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_COPY: u32 = 2u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_IN_BUFFER: u32 = 8u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_IN_PROMPT: u32 = 4u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_MODIFY: u32 = 8u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_OUT_BUFFER: u32 = 2u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_OUT_DEFAULT: u32 = 1u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_PROMPT: u32 = 4u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_UPDATE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] pub const DNS_INFO_ADDED_LOCAL_WINS: i32 = 9753i32; #[doc = "*Required features: `\"Win32_Foundation\"`*"] pub const DNS_INFO_AXFR_COMPLETE: i32 = 9751i32; diff --git a/crates/libs/sys/src/Windows/Win32/Globalization/mod.rs b/crates/libs/sys/src/Windows/Win32/Globalization/mod.rs index 21bbe0b9b2..a3c545f10d 100644 --- a/crates/libs/sys/src/Windows/Win32/Globalization/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Globalization/mod.rs @@ -2419,7 +2419,7 @@ extern "system" { pub fn ScriptPlace(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut ::core::ffi::c_void, pwglyphs: *const u16, cglyphs: i32, psva: *const SCRIPT_VISATTR, psa: *mut SCRIPT_ANALYSIS, piadvance: *mut i32, pgoffset: *mut GOFFSET, pabc: *mut super::Graphics::Gdi::ABC) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Globalization\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] - pub fn ScriptPlaceOpenType(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut ::core::ffi::c_void, psa: *mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: *const i32, rprangeproperties: *const *const textrange_properties, cranges: i32, pwcchars: ::windows_sys::core::PCWSTR, pwlogclust: *const u16, pcharprops: *const script_charprop, cchars: i32, pwglyphs: *const u16, pglyphprops: *const script_glyphprop, cglyphs: i32, piadvance: *mut i32, pgoffset: *mut GOFFSET, pabc: *mut super::Graphics::Gdi::ABC) -> ::windows_sys::core::HRESULT; + pub fn ScriptPlaceOpenType(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut ::core::ffi::c_void, psa: *mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: *const i32, rprangeproperties: *const *const TEXTRANGE_PROPERTIES, cranges: i32, pwcchars: ::windows_sys::core::PCWSTR, pwlogclust: *const u16, pcharprops: *const SCRIPT_CHARPROP, cchars: i32, pwglyphs: *const u16, pglyphprops: *const SCRIPT_GLYPHPROP, cglyphs: i32, piadvance: *mut i32, pgoffset: *mut GOFFSET, pabc: *mut super::Graphics::Gdi::ABC) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Globalization\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] pub fn ScriptPositionSingleGlyph(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut ::core::ffi::c_void, psa: *const SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, tagfeature: u32, lparameter: i32, wglyphid: u16, iadvance: i32, goffset: GOFFSET, pioutadvance: *mut i32, poutgoffset: *mut GOFFSET) -> ::windows_sys::core::HRESULT; @@ -2430,7 +2430,7 @@ extern "system" { pub fn ScriptShape(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut ::core::ffi::c_void, pwcchars: ::windows_sys::core::PCWSTR, cchars: i32, cmaxglyphs: i32, psa: *mut SCRIPT_ANALYSIS, pwoutglyphs: *mut u16, pwlogclust: *mut u16, psva: *mut SCRIPT_VISATTR, pcglyphs: *mut i32) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Globalization\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] - pub fn ScriptShapeOpenType(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut ::core::ffi::c_void, psa: *mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: *const i32, rprangeproperties: *const *const textrange_properties, cranges: i32, pwcchars: ::windows_sys::core::PCWSTR, cchars: i32, cmaxglyphs: i32, pwlogclust: *mut u16, pcharprops: *mut script_charprop, pwoutglyphs: *mut u16, poutglyphprops: *mut script_glyphprop, pcglyphs: *mut i32) -> ::windows_sys::core::HRESULT; + pub fn ScriptShapeOpenType(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut ::core::ffi::c_void, psa: *mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: *const i32, rprangeproperties: *const *const TEXTRANGE_PROPERTIES, cranges: i32, pwcchars: ::windows_sys::core::PCWSTR, cchars: i32, cmaxglyphs: i32, pwlogclust: *mut u16, pcharprops: *mut SCRIPT_CHARPROP, pwoutglyphs: *mut u16, poutglyphprops: *mut SCRIPT_GLYPHPROP, pcglyphs: *mut i32) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Globalization\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] pub fn ScriptStringAnalyse(hdc: super::Graphics::Gdi::HDC, pstring: *const ::core::ffi::c_void, cstring: i32, cglyphs: i32, icharset: i32, dwflags: u32, ireqwidth: i32, pscontrol: *const SCRIPT_CONTROL, psstate: *const SCRIPT_STATE, pidx: *const i32, ptabdef: *const SCRIPT_TABDEF, pbinclass: *const u8, pssa: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; @@ -4451,6 +4451,40 @@ pub const MIMECONTF_MIME_LATEST: MIMECONTF = 536870912i32; #[doc = "*Required features: `\"Win32_Globalization\"`*"] pub const MIMECONTF_MIME_REGISTRY: MIMECONTF = 1073741824i32; #[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub type MLCONVCHAR = i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_AUTODETECT: MLCONVCHAR = 1i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_ENTITIZE: MLCONVCHAR = 2i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_NCR_ENTITIZE: MLCONVCHAR = 2i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_NAME_ENTITIZE: MLCONVCHAR = 4i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_USEDEFCHAR: MLCONVCHAR = 8i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_NOBESTFITCHARS: MLCONVCHAR = 16i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_DETECTJPN: MLCONVCHAR = 32i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub type MLCP = i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_MAILNEWS: MLCP = 1i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_BROWSER: MLCP = 2i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_VALID: MLCP = 4i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_VALID_NLS: MLCP = 8i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_PRESERVE_ORDER: MLCP = 16i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_PREFERRED_ONLY: MLCP = 32i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_FILTER_SPECIALCHAR: MLCP = 64i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_EURO_UTF8: MLCP = 128i32; +#[doc = "*Required features: `\"Win32_Globalization\"`*"] pub type MLDETECTCP = i32; #[doc = "*Required features: `\"Win32_Globalization\"`*"] pub const MLDETECTCP_NONE: MLDETECTCP = 0i32; @@ -8910,40 +8944,6 @@ pub const WORDLIST_TYPE_ADD: WORDLIST_TYPE = 1i32; pub const WORDLIST_TYPE_EXCLUDE: WORDLIST_TYPE = 2i32; #[doc = "*Required features: `\"Win32_Globalization\"`*"] pub const WORDLIST_TYPE_AUTOCORRECT: WORDLIST_TYPE = 3i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub type tagMLCONVCHARF = i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_AUTODETECT: tagMLCONVCHARF = 1i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_ENTITIZE: tagMLCONVCHARF = 2i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_NCR_ENTITIZE: tagMLCONVCHARF = 2i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_NAME_ENTITIZE: tagMLCONVCHARF = 4i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_USEDEFCHAR: tagMLCONVCHARF = 8i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_NOBESTFITCHARS: tagMLCONVCHARF = 16i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_DETECTJPN: tagMLCONVCHARF = 32i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub type tagMLCPF = i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_MAILNEWS: tagMLCPF = 1i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_BROWSER: tagMLCPF = 2i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_VALID: tagMLCPF = 4i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_VALID_NLS: tagMLCPF = 8i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_PRESERVE_ORDER: tagMLCPF = 16i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_PREFERRED_ONLY: tagMLCPF = 32i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_FILTER_SPECIALCHAR: tagMLCPF = 64i32; -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_EURO_UTF8: tagMLCPF = 128i32; #[repr(C)] #[doc = "*Required features: `\"Win32_Globalization\"`*"] pub struct CHARSETINFO { @@ -9394,6 +9394,18 @@ impl ::core::clone::Clone for NUMBERFMTW { } #[repr(C)] #[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub struct OPENTYPE_FEATURE_RECORD { + pub tagFeature: u32, + pub lParameter: i32, +} +impl ::core::marker::Copy for OPENTYPE_FEATURE_RECORD {} +impl ::core::clone::Clone for OPENTYPE_FEATURE_RECORD { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Globalization\"`*"] pub struct RFC1766INFO { pub lcid: u32, pub wszRfc1766: [u16; 6], @@ -9407,6 +9419,18 @@ impl ::core::clone::Clone for RFC1766INFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub struct SCRIPTFONTINFO { + pub scripts: i64, + pub wszFont: [u16; 32], +} +impl ::core::marker::Copy for SCRIPTFONTINFO {} +impl ::core::clone::Clone for SCRIPTFONTINFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Globalization\"`*"] pub struct SCRIPTINFO { pub ScriptId: u8, pub uiCodePage: u32, @@ -9434,6 +9458,17 @@ impl ::core::clone::Clone for SCRIPT_ANALYSIS { } #[repr(C)] #[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub struct SCRIPT_CHARPROP { + pub _bitfield: u16, +} +impl ::core::marker::Copy for SCRIPT_CHARPROP {} +impl ::core::clone::Clone for SCRIPT_CHARPROP { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Globalization\"`*"] pub struct SCRIPT_CONTROL { pub _bitfield: u32, } @@ -9474,6 +9509,18 @@ impl ::core::clone::Clone for SCRIPT_FONTPROPERTIES { } #[repr(C)] #[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub struct SCRIPT_GLYPHPROP { + pub sva: SCRIPT_VISATTR, + pub reserved: u16, +} +impl ::core::marker::Copy for SCRIPT_GLYPHPROP {} +impl ::core::clone::Clone for SCRIPT_GLYPHPROP { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Globalization\"`*"] pub struct SCRIPT_ITEM { pub iCharPos: i32, pub a: SCRIPT_ANALYSIS, @@ -9544,6 +9591,18 @@ impl ::core::clone::Clone for SCRIPT_VISATTR { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub struct TEXTRANGE_PROPERTIES { + pub potfRecords: *mut OPENTYPE_FEATURE_RECORD, + pub cotfRecords: i32, +} +impl ::core::marker::Copy for TEXTRANGE_PROPERTIES {} +impl ::core::clone::Clone for TEXTRANGE_PROPERTIES { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] pub struct UBiDi(pub u8); #[repr(C)] pub struct UBiDiTransform(pub u8); @@ -9887,65 +9946,6 @@ impl ::core::clone::Clone for UTransPosition { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub struct opentype_feature_record { - pub tagFeature: u32, - pub lParameter: i32, -} -impl ::core::marker::Copy for opentype_feature_record {} -impl ::core::clone::Clone for opentype_feature_record { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub struct script_charprop { - pub _bitfield: u16, -} -impl ::core::marker::Copy for script_charprop {} -impl ::core::clone::Clone for script_charprop { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub struct script_glyphprop { - pub sva: SCRIPT_VISATTR, - pub reserved: u16, -} -impl ::core::marker::Copy for script_glyphprop {} -impl ::core::clone::Clone for script_glyphprop { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub struct tagSCRIPFONTINFO { - pub scripts: i64, - pub wszFont: [u16; 32], -} -impl ::core::marker::Copy for tagSCRIPFONTINFO {} -impl ::core::clone::Clone for tagSCRIPFONTINFO { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub struct textrange_properties { - pub potfRecords: *mut opentype_feature_record, - pub cotfRecords: i32, -} -impl ::core::marker::Copy for textrange_properties {} -impl ::core::clone::Clone for textrange_properties { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_Globalization\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type CALINFO_ENUMPROCA = ::core::option::Option super::Foundation::BOOL>; diff --git a/crates/libs/sys/src/Windows/Win32/Graphics/Gdi/mod.rs b/crates/libs/sys/src/Windows/Win32/Graphics/Gdi/mod.rs index 28993d7e99..b270204246 100644 --- a/crates/libs/sys/src/Windows/Win32/Graphics/Gdi/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Graphics/Gdi/mod.rs @@ -1282,14 +1282,6 @@ pub const DMBIN_UPPER: u32 = 1u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMBIN_USER: u32 = 256u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMCOLLATE_FALSE: u32 = 0u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMCOLLATE_TRUE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMCOLOR_COLOR: u32 = 2u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMCOLOR_MONOCHROME: u32 = 1u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMDFO_CENTER: u32 = 2u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMDFO_DEFAULT: u32 = 0u32; @@ -1328,12 +1320,6 @@ pub const DMDO_90: u32 = 1u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMDO_DEFAULT: u32 = 0u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMDUP_HORIZONTAL: u32 = 3u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMDUP_SIMPLEX: u32 = 1u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMDUP_VERTICAL: u32 = 2u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMICMMETHOD_DEVICE: u32 = 4u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMICMMETHOD_DRIVER: u32 = 3u32; @@ -1618,78 +1604,6 @@ pub const DMRES_LOW: i32 = -2i32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMRES_MEDIUM: i32 = -3i32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMTT_BITMAP: u32 = 1u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMTT_DOWNLOAD: u32 = 2u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMTT_DOWNLOAD_OUTLINE: u32 = 4u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMTT_SUBDEV: u32 = 3u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_BITSPERPEL: i32 = 262144i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_COLLATE: i32 = 32768i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_COLOR: i32 = 2048i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_COPIES: i32 = 256i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DEFAULTSOURCE: i32 = 512i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DISPLAYFIXEDOUTPUT: i32 = 536870912i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DISPLAYFLAGS: i32 = 2097152i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DISPLAYFREQUENCY: i32 = 4194304i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DISPLAYORIENTATION: i32 = 128i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DITHERTYPE: i32 = 67108864i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DUPLEX: i32 = 4096i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_FORMNAME: i32 = 65536i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_ICMINTENT: i32 = 16777216i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_ICMMETHOD: i32 = 8388608i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_INTERLACED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_LOGPIXELS: i32 = 131072i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_MEDIATYPE: i32 = 33554432i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_NUP: i32 = 64i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_ORIENTATION: i32 = 1i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PANNINGHEIGHT: i32 = 268435456i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PANNINGWIDTH: i32 = 134217728i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PAPERLENGTH: i32 = 4i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PAPERSIZE: i32 = 2i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PAPERWIDTH: i32 = 8i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PELSHEIGHT: i32 = 1048576i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PELSWIDTH: i32 = 524288i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_POSITION: i32 = 32i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PRINTQUALITY: i32 = 1024i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_SCALE: i32 = 16i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_SPECVERSION: u32 = 1025u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_TTOPTION: i32 = 16384i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_YRESOLUTION: i32 = 8192i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DOWNLOADFACE: u32 = 514u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DOWNLOADHEADER: u32 = 4111u32; @@ -3156,19 +3070,19 @@ pub const CDS_DISABLE_UNSAFE_MODES: CDS_TYPE = 512u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const CDS_RESET_EX: CDS_TYPE = 536870912u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub type CREATE_FONT_PACKAGE_SUBSET_ENCODING = u32; +pub type CREATE_FONT_PACKAGE_SUBSET_ENCODING = u16; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const TTFCFP_STD_MAC_CHAR_SET: CREATE_FONT_PACKAGE_SUBSET_ENCODING = 0u32; +pub const TTFCFP_STD_MAC_CHAR_SET: CREATE_FONT_PACKAGE_SUBSET_ENCODING = 0u16; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const TTFCFP_SYMBOL_CHAR_SET: CREATE_FONT_PACKAGE_SUBSET_ENCODING = 0u32; +pub const TTFCFP_SYMBOL_CHAR_SET: CREATE_FONT_PACKAGE_SUBSET_ENCODING = 0u16; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const TTFCFP_UNICODE_CHAR_SET: CREATE_FONT_PACKAGE_SUBSET_ENCODING = 1u32; +pub const TTFCFP_UNICODE_CHAR_SET: CREATE_FONT_PACKAGE_SUBSET_ENCODING = 1u16; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub type CREATE_FONT_PACKAGE_SUBSET_PLATFORM = u32; +pub type CREATE_FONT_PACKAGE_SUBSET_PLATFORM = u16; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const TTFCFP_UNICODE_PLATFORMID: CREATE_FONT_PACKAGE_SUBSET_PLATFORM = 0u32; +pub const TTFCFP_UNICODE_PLATFORMID: CREATE_FONT_PACKAGE_SUBSET_PLATFORM = 0u16; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const TTFCFP_ISO_PLATFORMID: CREATE_FONT_PACKAGE_SUBSET_PLATFORM = 2u32; +pub const TTFCFP_ISO_PLATFORMID: CREATE_FONT_PACKAGE_SUBSET_PLATFORM = 2u16; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub type CREATE_POLYGON_RGN_MODE = u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] @@ -3182,6 +3096,118 @@ pub const LAYOUT_BITMAPORIENTATIONPRESERVED: DC_LAYOUT = 8u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const LAYOUT_RTL: DC_LAYOUT = 1u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub type DEVMODE_COLLATE = u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMCOLLATE_FALSE: DEVMODE_COLLATE = 0u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMCOLLATE_TRUE: DEVMODE_COLLATE = 1u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub type DEVMODE_COLOR = u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMCOLOR_MONOCHROME: DEVMODE_COLOR = 1u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMCOLOR_COLOR: DEVMODE_COLOR = 2u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub type DEVMODE_DUPLEX = u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMDUP_SIMPLEX: DEVMODE_DUPLEX = 1u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMDUP_VERTICAL: DEVMODE_DUPLEX = 2u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMDUP_HORIZONTAL: DEVMODE_DUPLEX = 3u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub type DEVMODE_FIELD_FLAGS = u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_SPECVERSION: DEVMODE_FIELD_FLAGS = 1025u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_ORIENTATION: DEVMODE_FIELD_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PAPERSIZE: DEVMODE_FIELD_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PAPERLENGTH: DEVMODE_FIELD_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PAPERWIDTH: DEVMODE_FIELD_FLAGS = 8u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_SCALE: DEVMODE_FIELD_FLAGS = 16u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_POSITION: DEVMODE_FIELD_FLAGS = 32u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_NUP: DEVMODE_FIELD_FLAGS = 64u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DISPLAYORIENTATION: DEVMODE_FIELD_FLAGS = 128u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_COPIES: DEVMODE_FIELD_FLAGS = 256u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DEFAULTSOURCE: DEVMODE_FIELD_FLAGS = 512u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PRINTQUALITY: DEVMODE_FIELD_FLAGS = 1024u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_COLOR: DEVMODE_FIELD_FLAGS = 2048u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DUPLEX: DEVMODE_FIELD_FLAGS = 4096u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_YRESOLUTION: DEVMODE_FIELD_FLAGS = 8192u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_TTOPTION: DEVMODE_FIELD_FLAGS = 16384u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_COLLATE: DEVMODE_FIELD_FLAGS = 32768u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_FORMNAME: DEVMODE_FIELD_FLAGS = 65536u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_LOGPIXELS: DEVMODE_FIELD_FLAGS = 131072u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_BITSPERPEL: DEVMODE_FIELD_FLAGS = 262144u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PELSWIDTH: DEVMODE_FIELD_FLAGS = 524288u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PELSHEIGHT: DEVMODE_FIELD_FLAGS = 1048576u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DISPLAYFLAGS: DEVMODE_FIELD_FLAGS = 2097152u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DISPLAYFREQUENCY: DEVMODE_FIELD_FLAGS = 4194304u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_ICMMETHOD: DEVMODE_FIELD_FLAGS = 8388608u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_ICMINTENT: DEVMODE_FIELD_FLAGS = 16777216u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_MEDIATYPE: DEVMODE_FIELD_FLAGS = 33554432u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DITHERTYPE: DEVMODE_FIELD_FLAGS = 67108864u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PANNINGWIDTH: DEVMODE_FIELD_FLAGS = 134217728u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PANNINGHEIGHT: DEVMODE_FIELD_FLAGS = 268435456u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DISPLAYFIXEDOUTPUT: DEVMODE_FIELD_FLAGS = 536870912u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_INTERLACED: DEVMODE_FIELD_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_UPDATE: DEVMODE_FIELD_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_COPY: DEVMODE_FIELD_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PROMPT: DEVMODE_FIELD_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_MODIFY: DEVMODE_FIELD_FLAGS = 8u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_IN_BUFFER: DEVMODE_FIELD_FLAGS = 8u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_IN_PROMPT: DEVMODE_FIELD_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_OUT_BUFFER: DEVMODE_FIELD_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_OUT_DEFAULT: DEVMODE_FIELD_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub type DEVMODE_TRUETYPE_OPTION = u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMTT_BITMAP: DEVMODE_TRUETYPE_OPTION = 1u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMTT_DOWNLOAD: DEVMODE_TRUETYPE_OPTION = 2u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMTT_SUBDEV: DEVMODE_TRUETYPE_OPTION = 3u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMTT_DOWNLOAD_OUTLINE: DEVMODE_TRUETYPE_OPTION = 4u32; +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub type DFCS_STATE = u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DFCS_CAPTIONCLOSE: DFCS_STATE = 0u32; @@ -4770,37 +4796,6 @@ impl ::core::clone::Clone for COLORADJUSTMENT { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub struct COLORCORRECTPALETTE { - pub emr: EMR, - pub ihPalette: u32, - pub nFirstEntry: u32, - pub nPalEntries: u32, - pub nReserved: u32, -} -impl ::core::marker::Copy for COLORCORRECTPALETTE {} -impl ::core::clone::Clone for COLORCORRECTPALETTE { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub struct COLORMATCHTOTARGET { - pub emr: EMR, - pub dwAction: u32, - pub dwFlags: u32, - pub cbName: u32, - pub cbData: u32, - pub Data: [u8; 1], -} -impl ::core::marker::Copy for COLORMATCHTOTARGET {} -impl ::core::clone::Clone for COLORMATCHTOTARGET { - fn clone(&self) -> Self { - *self - } -} pub type CreatedHDC = isize; #[repr(C)] #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] @@ -4824,13 +4819,13 @@ pub struct DEVMODEA { pub dmDriverVersion: u16, pub dmSize: u16, pub dmDriverExtra: u16, - pub dmFields: u32, + pub dmFields: DEVMODE_FIELD_FLAGS, pub Anonymous1: DEVMODEA_0, - pub dmColor: i16, + pub dmColor: DEVMODE_COLOR, pub dmDuplex: i16, pub dmYResolution: i16, - pub dmTTOption: i16, - pub dmCollate: i16, + pub dmTTOption: DEVMODE_TRUETYPE_OPTION, + pub dmCollate: DEVMODE_COLLATE, pub dmFormName: [u8; 32], pub dmLogPixels: u16, pub dmBitsPerPel: u32, @@ -4931,13 +4926,13 @@ pub struct DEVMODEW { pub dmDriverVersion: u16, pub dmSize: u16, pub dmDriverExtra: u16, - pub dmFields: u32, + pub dmFields: DEVMODE_FIELD_FLAGS, pub Anonymous1: DEVMODEW_0, - pub dmColor: i16, + pub dmColor: DEVMODE_COLOR, pub dmDuplex: i16, pub dmYResolution: i16, - pub dmTTOption: i16, - pub dmCollate: i16, + pub dmTTOption: DEVMODE_TRUETYPE_OPTION, + pub dmCollate: DEVMODE_COLLATE, pub dmFormName: [u16; 32], pub dmLogPixels: u16, pub dmBitsPerPel: u32, @@ -5100,7 +5095,7 @@ impl ::core::clone::Clone for DRAWTEXTPARAMS { #[repr(C)] #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub struct EMR { - pub iType: u32, + pub iType: ENHANCED_METAFILE_RECORD_TYPE, pub nSize: u32, } impl ::core::marker::Copy for EMR {} @@ -5205,6 +5200,37 @@ impl ::core::clone::Clone for EMRBITBLT { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub struct EMRCOLORCORRECTPALETTE { + pub emr: EMR, + pub ihPalette: u32, + pub nFirstEntry: u32, + pub nPalEntries: u32, + pub nReserved: u32, +} +impl ::core::marker::Copy for EMRCOLORCORRECTPALETTE {} +impl ::core::clone::Clone for EMRCOLORCORRECTPALETTE { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub struct EMRCOLORMATCHTOTARGET { + pub emr: EMR, + pub dwAction: u32, + pub dwFlags: u32, + pub cbName: u32, + pub cbData: u32, + pub Data: [u8; 1], +} +impl ::core::marker::Copy for EMRCOLORMATCHTOTARGET {} +impl ::core::clone::Clone for EMRCOLORMATCHTOTARGET { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct EMRCREATEBRUSHINDIRECT { @@ -6253,7 +6279,7 @@ impl ::core::clone::Clone for ENHMETAHEADER { #[repr(C)] #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub struct ENHMETARECORD { - pub iType: u32, + pub iType: ENHANCED_METAFILE_RECORD_TYPE, pub nSize: u32, pub dParm: [u32; 1], } diff --git a/crates/libs/sys/src/Windows/Win32/Graphics/Printing/mod.rs b/crates/libs/sys/src/Windows/Win32/Graphics/Printing/mod.rs index 2df9c2de47..90db8ddeb4 100644 --- a/crates/libs/sys/src/Windows/Win32/Graphics/Printing/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Graphics/Printing/mod.rs @@ -1,92 +1,6 @@ #[cfg(feature = "Win32_Graphics_Printing_PrintTicket")] pub mod PrintTicket; #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn AppendPrinterNotifyInfoData(pinfodest: *const PRINTER_NOTIFY_INFO, pdatasrc: *const PRINTER_NOTIFY_INFO_DATA, fdwflags: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn CallRouterFindFirstPrinterChangeNotification(hprinterrpc: super::super::Foundation::HANDLE, fdwfilterflags: u32, fdwoptions: u32, hnotify: super::super::Foundation::HANDLE, pprinternotifyoptions: *const PRINTER_NOTIFY_OPTIONS) -> u32; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] - pub fn CreatePrinterIC(hprinter: super::super::Foundation::HANDLE, pdevmode: *const super::Gdi::DEVMODEW) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DeletePrinterIC(hprinteric: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] - pub fn DevQueryPrint(hprinter: super::super::Foundation::HANDLE, pdevmode: *const super::Gdi::DEVMODEA, presid: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] - pub fn ExtDeviceMode(hwnd: super::super::Foundation::HWND, hinst: super::super::Foundation::HANDLE, pdevmodeoutput: *mut super::Gdi::DEVMODEA, pdevicename: ::windows_sys::core::PCSTR, pport: ::windows_sys::core::PCSTR, pdevmodeinput: *const super::Gdi::DEVMODEA, pprofile: ::windows_sys::core::PCSTR, fmode: u32) -> i32; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] - pub fn GetJobAttributes(pprintername: ::windows_sys::core::PCWSTR, pdevmode: *const super::Gdi::DEVMODEW, pattributeinfo: *mut ATTRIBUTE_INFO_3) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] - pub fn GetJobAttributesEx(pprintername: ::windows_sys::core::PCWSTR, pdevmode: *const super::Gdi::DEVMODEW, dwlevel: u32, pattributeinfo: *mut u8, nsize: u32, dwflags: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ImpersonatePrinterClient(htoken: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn PartialReplyPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, pdatasrc: *const PRINTER_NOTIFY_INFO_DATA) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn PlayGdiScriptOnPrinterIC(hprinteric: super::super::Foundation::HANDLE, pin: *const u8, cin: u32, pout: *mut u8, cout: u32, ul: u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ProvidorFindClosePrinterChangeNotification(hprinter: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ProvidorFindFirstPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, fdwflags: u32, fdwoptions: u32, hnotify: super::super::Foundation::HANDLE, pprinternotifyoptions: *const ::core::ffi::c_void, pvreserved1: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ReplyPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, fdwchangeflags: u32, pdwresult: *mut u32, pprinternotifyinfo: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ReplyPrinterChangeNotificationEx(hnotify: super::super::Foundation::HANDLE, dwcolor: u32, fdwflags: u32, pdwresult: *mut u32, pprinternotifyinfo: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RevertToPrinterSelf() -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] - pub fn RouterAllocBidiMem(numbytes: usize) -> *mut ::core::ffi::c_void; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterAllocBidiResponseContainer(count: u32) -> *mut BIDI_RESPONSE_CONTAINER; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] - pub fn RouterAllocPrinterNotifyInfo(cprinternotifyinfodata: u32) -> *mut PRINTER_NOTIFY_INFO; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] - pub fn RouterFreeBidiMem(pmempointer: *const ::core::ffi::c_void); - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterFreeBidiResponseContainer(pdata: *const BIDI_RESPONSE_CONTAINER) -> u32; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterFreePrinterNotifyInfo(pinfo: *const PRINTER_NOTIFY_INFO) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SplIsSessionZero(hprinter: super::super::Foundation::HANDLE, jobid: u32, pissessionzero: *mut super::super::Foundation::BOOL) -> u32; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SplPromptUIInUsersSession(hprinter: super::super::Foundation::HANDLE, jobid: u32, puiparams: *const SHOWUIPARAMS, presponse: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SpoolerFindClosePrinterChangeNotification(hprinter: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SpoolerFindFirstPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, fdwfilterflags: u32, fdwoptions: u32, pprinternotifyoptions: *const ::core::ffi::c_void, pvreserved: *const ::core::ffi::c_void, pnotificationconfig: *const ::core::ffi::c_void, phnotify: *mut super::super::Foundation::HANDLE, phevent: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SpoolerFindNextPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, pfdwchange: *mut u32, pprinternotifyoptions: *const ::core::ffi::c_void, ppprinternotifyinfo: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] - pub fn SpoolerFreePrinterNotifyInfo(pinfo: *const PRINTER_NOTIFY_INFO); - #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SpoolerRefreshPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, dwcolor: u32, poptions: *const PRINTER_NOTIFY_OPTIONS, ppinfo: *mut *mut PRINTER_NOTIFY_INFO) -> super::super::Foundation::BOOL; -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -168,6 +82,12 @@ extern "system" { pub fn AdvancedDocumentPropertiesW(hwnd: super::super::Foundation::HWND, hprinter: super::super::Foundation::HANDLE, pdevicename: ::windows_sys::core::PCWSTR, pdevmodeoutput: *mut super::Gdi::DEVMODEW, pdevmodeinput: *const super::Gdi::DEVMODEW) -> i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn AppendPrinterNotifyInfoData(pinfodest: *const PRINTER_NOTIFY_INFO, pdatasrc: *const PRINTER_NOTIFY_INFO_DATA, fdwflags: u32) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn CallRouterFindFirstPrinterChangeNotification(hprinterrpc: super::super::Foundation::HANDLE, fdwfilterflags: u32, fdwoptions: u32, hnotify: super::super::Foundation::HANDLE, pprinternotifyoptions: *const PRINTER_NOTIFY_OPTIONS) -> u32; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn ClosePrinter(hprinter: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -198,6 +118,9 @@ extern "system" { pub fn CorePrinterDriverInstalledW(pszserver: ::windows_sys::core::PCWSTR, pszenvironment: ::windows_sys::core::PCWSTR, coredriverguid: ::windows_sys::core::GUID, ftdriverdate: super::super::Foundation::FILETIME, dwldriverversion: u64, pbdriverinstalled: *mut super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] pub fn CreatePrintAsyncNotifyChannel(pszname: ::windows_sys::core::PCWSTR, pnotificationtype: *const ::windows_sys::core::GUID, euserfilter: PrintAsyncNotifyUserFilter, econversationstyle: PrintAsyncNotifyConversationStyle, pcallback: IPrintAsyncNotifyCallback, ppiasynchnotification: *mut IPrintAsyncNotifyChannel) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] + pub fn CreatePrinterIC(hprinter: super::super::Foundation::HANDLE, pdevmode: *const super::Gdi::DEVMODEW) -> super::super::Foundation::HANDLE; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn DeleteFormA(hprinter: super::super::Foundation::HANDLE, pformname: ::windows_sys::core::PCSTR) -> super::super::Foundation::BOOL; @@ -270,12 +193,18 @@ extern "system" { pub fn DeletePrinterDriverW(pname: ::windows_sys::core::PCWSTR, penvironment: ::windows_sys::core::PCWSTR, pdrivername: ::windows_sys::core::PCWSTR) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn DeletePrinterIC(hprinteric: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn DeletePrinterKeyA(hprinter: super::super::Foundation::HANDLE, pkeyname: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn DeletePrinterKeyW(hprinter: super::super::Foundation::HANDLE, pkeyname: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] + pub fn DevQueryPrint(hprinter: super::super::Foundation::HANDLE, pdevmode: *const super::Gdi::DEVMODEA, presid: *mut u32) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn DevQueryPrintEx(pdqpinfo: *mut DEVQUERYPRINT_INFO) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] @@ -358,6 +287,9 @@ extern "system" { #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn EnumPrintersW(flags: u32, name: ::windows_sys::core::PCWSTR, level: u32, pprinterenum: *mut u8, cbbuf: u32, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] + pub fn ExtDeviceMode(hwnd: super::super::Foundation::HWND, hinst: super::super::Foundation::HANDLE, pdevmodeoutput: *mut super::Gdi::DEVMODEA, pdevicename: ::windows_sys::core::PCSTR, pport: ::windows_sys::core::PCSTR, pdevmodeinput: *const super::Gdi::DEVMODEA, pprofile: ::windows_sys::core::PCSTR, fmode: u32) -> i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn FindClosePrinterChangeNotification(hchange: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; @@ -439,6 +371,12 @@ extern "system" { #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn GetJobA(hprinter: super::super::Foundation::HANDLE, jobid: u32, level: u32, pjob: *mut u8, cbbuf: u32, pcbneeded: *mut u32) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] + pub fn GetJobAttributes(pprintername: ::windows_sys::core::PCWSTR, pdevmode: *const super::Gdi::DEVMODEW, pattributeinfo: *mut ATTRIBUTE_INFO_3) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] + pub fn GetJobAttributesEx(pprintername: ::windows_sys::core::PCWSTR, pdevmode: *const super::Gdi::DEVMODEW, dwlevel: u32, pattributeinfo: *mut u8, nsize: u32, dwflags: u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn GetJobNamedPropertyValue(hprinter: super::super::Foundation::HANDLE, jobid: u32, pszname: ::windows_sys::core::PCWSTR, pvalue: *mut PrintPropertyValue) -> u32; @@ -500,6 +438,9 @@ extern "system" { #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn GetSpoolFileHandle(hprinter: super::super::Foundation::HANDLE) -> super::super::Foundation::HANDLE; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn ImpersonatePrinterClient(htoken: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] pub fn InstallPrinterDriverFromPackageA(pszserver: ::windows_sys::core::PCSTR, pszinfpath: ::windows_sys::core::PCSTR, pszdrivername: ::windows_sys::core::PCSTR, pszenvironment: ::windows_sys::core::PCSTR, dwflags: u32) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] @@ -524,6 +465,12 @@ extern "system" { pub fn OpenPrinterW(pprintername: ::windows_sys::core::PCWSTR, phprinter: *mut super::super::Foundation::HANDLE, pdefault: *const PRINTER_DEFAULTSW) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn PartialReplyPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, pdatasrc: *const PRINTER_NOTIFY_INFO_DATA) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn PlayGdiScriptOnPrinterIC(hprinteric: super::super::Foundation::HANDLE, pin: *const u8, cin: u32, pout: *mut u8, cout: u32, ul: u32) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn PrinterMessageBoxA(hprinter: super::super::Foundation::HANDLE, error: u32, hwnd: super::super::Foundation::HWND, ptext: ::windows_sys::core::PCSTR, pcaption: ::windows_sys::core::PCSTR, dwtype: u32) -> u32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -533,6 +480,12 @@ extern "system" { pub fn PrinterProperties(hwnd: super::super::Foundation::HWND, hprinter: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn ProvidorFindClosePrinterChangeNotification(hprinter: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn ProvidorFindFirstPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, fdwflags: u32, fdwoptions: u32, hnotify: super::super::Foundation::HANDLE, pprinternotifyoptions: *const ::core::ffi::c_void, pvreserved1: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn ReadPrinter(hprinter: super::super::Foundation::HANDLE, pbuf: *mut ::core::ffi::c_void, cbbuf: u32, pnobytesread: *mut u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -542,6 +495,12 @@ extern "system" { pub fn RemovePrintDeviceObject(hdeviceobject: super::super::Foundation::HANDLE) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn ReplyPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, fdwchangeflags: u32, pdwresult: *mut u32, pprinternotifyinfo: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn ReplyPrinterChangeNotificationEx(hnotify: super::super::Foundation::HANDLE, dwcolor: u32, fdwflags: u32, pdwresult: *mut u32, pprinternotifyinfo: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn ReportJobProcessingProgress(printerhandle: super::super::Foundation::HANDLE, jobid: u32, joboperation: EPrintXPSJobOperation, jobprogress: EPrintXPSJobProgress) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] @@ -551,6 +510,24 @@ extern "system" { pub fn ResetPrinterW(hprinter: super::super::Foundation::HANDLE, pdefault: *const PRINTER_DEFAULTSW) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn RevertToPrinterSelf() -> super::super::Foundation::HANDLE; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] + pub fn RouterAllocBidiMem(numbytes: usize) -> *mut ::core::ffi::c_void; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterAllocBidiResponseContainer(count: u32) -> *mut BIDI_RESPONSE_CONTAINER; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] + pub fn RouterAllocPrinterNotifyInfo(cprinternotifyinfodata: u32) -> *mut PRINTER_NOTIFY_INFO; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] + pub fn RouterFreeBidiMem(pmempointer: *const ::core::ffi::c_void); + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterFreeBidiResponseContainer(pdata: *const BIDI_RESPONSE_CONTAINER) -> u32; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterFreePrinterNotifyInfo(pinfo: *const PRINTER_NOTIFY_INFO) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn ScheduleJob(hprinter: super::super::Foundation::HANDLE, jobid: u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -602,9 +579,29 @@ extern "system" { pub fn SetPrinterW(hprinter: super::super::Foundation::HANDLE, level: u32, pprinter: *const u8, command: u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn SplIsSessionZero(hprinter: super::super::Foundation::HANDLE, jobid: u32, pissessionzero: *mut super::super::Foundation::BOOL) -> u32; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn SplPromptUIInUsersSession(hprinter: super::super::Foundation::HANDLE, jobid: u32, puiparams: *const SHOWUIPARAMS, presponse: *mut u32) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn SpoolerCopyFileEvent(pszprintername: ::windows_sys::core::PCWSTR, pszkey: ::windows_sys::core::PCWSTR, dwcopyfileevent: u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn SpoolerFindClosePrinterChangeNotification(hprinter: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn SpoolerFindFirstPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, fdwfilterflags: u32, fdwoptions: u32, pprinternotifyoptions: *const ::core::ffi::c_void, pvreserved: *const ::core::ffi::c_void, pnotificationconfig: *const ::core::ffi::c_void, phnotify: *mut super::super::Foundation::HANDLE, phevent: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn SpoolerFindNextPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, pfdwchange: *mut u32, pprinternotifyoptions: *const ::core::ffi::c_void, ppprinternotifyinfo: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] + pub fn SpoolerFreePrinterNotifyInfo(pinfo: *const PRINTER_NOTIFY_INFO); + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn SpoolerRefreshPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, dwcolor: u32, poptions: *const PRINTER_NOTIFY_OPTIONS, ppinfo: *mut *mut PRINTER_NOTIFY_INFO) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn StartDocPrinterA(hprinter: super::super::Foundation::HANDLE, level: u32, pdocinfo: *const DOC_INFO_1A) -> u32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -3655,45 +3652,45 @@ pub const XpsJob_FixedDocumentAdded: EXpsJobConsumption = 1i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] pub const XpsJob_FixedPageAdded: EXpsJobConsumption = 2i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub type MxdcImageTypeEnums = i32; +pub type MXDC_IMAGE_TYPE_ENUMS = i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_IMAGETYPE_JPEGHIGH_COMPRESSION: MxdcImageTypeEnums = 1i32; +pub const MXDC_IMAGETYPE_JPEGHIGH_COMPRESSION: MXDC_IMAGE_TYPE_ENUMS = 1i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_IMAGETYPE_JPEGMEDIUM_COMPRESSION: MxdcImageTypeEnums = 2i32; +pub const MXDC_IMAGETYPE_JPEGMEDIUM_COMPRESSION: MXDC_IMAGE_TYPE_ENUMS = 2i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_IMAGETYPE_JPEGLOW_COMPRESSION: MxdcImageTypeEnums = 3i32; +pub const MXDC_IMAGETYPE_JPEGLOW_COMPRESSION: MXDC_IMAGE_TYPE_ENUMS = 3i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_IMAGETYPE_PNG: MxdcImageTypeEnums = 4i32; +pub const MXDC_IMAGETYPE_PNG: MXDC_IMAGE_TYPE_ENUMS = 4i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub type MxdcLandscapeRotationEnums = i32; +pub type MXDC_LANDSCAPE_ROTATION_ENUMS = i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_LANDSCAPE_ROTATE_COUNTERCLOCKWISE_90_DEGREES: MxdcLandscapeRotationEnums = 90i32; +pub const MXDC_LANDSCAPE_ROTATE_COUNTERCLOCKWISE_90_DEGREES: MXDC_LANDSCAPE_ROTATION_ENUMS = 90i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_LANDSCAPE_ROTATE_NONE: MxdcLandscapeRotationEnums = 0i32; +pub const MXDC_LANDSCAPE_ROTATE_NONE: MXDC_LANDSCAPE_ROTATION_ENUMS = 0i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_LANDSCAPE_ROTATE_COUNTERCLOCKWISE_270_DEGREES: MxdcLandscapeRotationEnums = -90i32; +pub const MXDC_LANDSCAPE_ROTATE_COUNTERCLOCKWISE_270_DEGREES: MXDC_LANDSCAPE_ROTATION_ENUMS = -90i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub type MxdcS0PageEnums = i32; +pub type MXDC_S0_PAGE_ENUMS = i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_TTF: MxdcS0PageEnums = 0i32; +pub const MXDC_RESOURCE_TTF: MXDC_S0_PAGE_ENUMS = 0i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_JPEG: MxdcS0PageEnums = 1i32; +pub const MXDC_RESOURCE_JPEG: MXDC_S0_PAGE_ENUMS = 1i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_PNG: MxdcS0PageEnums = 2i32; +pub const MXDC_RESOURCE_PNG: MXDC_S0_PAGE_ENUMS = 2i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_TIFF: MxdcS0PageEnums = 3i32; +pub const MXDC_RESOURCE_TIFF: MXDC_S0_PAGE_ENUMS = 3i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_WDP: MxdcS0PageEnums = 4i32; +pub const MXDC_RESOURCE_WDP: MXDC_S0_PAGE_ENUMS = 4i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_DICTIONARY: MxdcS0PageEnums = 5i32; +pub const MXDC_RESOURCE_DICTIONARY: MXDC_S0_PAGE_ENUMS = 5i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_ICC_PROFILE: MxdcS0PageEnums = 6i32; +pub const MXDC_RESOURCE_ICC_PROFILE: MXDC_S0_PAGE_ENUMS = 6i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_JPEG_THUMBNAIL: MxdcS0PageEnums = 7i32; +pub const MXDC_RESOURCE_JPEG_THUMBNAIL: MXDC_S0_PAGE_ENUMS = 7i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_PNG_THUMBNAIL: MxdcS0PageEnums = 8i32; +pub const MXDC_RESOURCE_PNG_THUMBNAIL: MXDC_S0_PAGE_ENUMS = 8i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_MAX: MxdcS0PageEnums = 9i32; +pub const MXDC_RESOURCE_MAX: MXDC_S0_PAGE_ENUMS = 9i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] pub type NOTIFICATION_CALLBACK_COMMANDS = i32; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] @@ -5704,100 +5701,100 @@ impl ::core::clone::Clone for MONITOR_INFO_2W { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcEscapeHeader { +pub struct MXDC_ESCAPE_HEADER_T { pub cbInput: u32, pub cbOutput: u32, pub opCode: u32, } -impl ::core::marker::Copy for MxdcEscapeHeader {} -impl ::core::clone::Clone for MxdcEscapeHeader { +impl ::core::marker::Copy for MXDC_ESCAPE_HEADER_T {} +impl ::core::clone::Clone for MXDC_ESCAPE_HEADER_T { fn clone(&self) -> Self { *self } } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcGetFileNameData { +pub struct MXDC_GET_FILENAME_DATA_T { pub cbOutput: u32, pub wszData: [u16; 1], } -impl ::core::marker::Copy for MxdcGetFileNameData {} -impl ::core::clone::Clone for MxdcGetFileNameData { +impl ::core::marker::Copy for MXDC_GET_FILENAME_DATA_T {} +impl ::core::clone::Clone for MXDC_GET_FILENAME_DATA_T { fn clone(&self) -> Self { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcPrintTicketEscape { - pub mxdcEscape: MxdcEscapeHeader, - pub printTicketData: MxdcPrintTicketPassthrough, +pub struct MXDC_PRINTTICKET_DATA_T { + pub dwDataSize: u32, + pub bData: [u8; 1], } -impl ::core::marker::Copy for MxdcPrintTicketEscape {} -impl ::core::clone::Clone for MxdcPrintTicketEscape { +impl ::core::marker::Copy for MXDC_PRINTTICKET_DATA_T {} +impl ::core::clone::Clone for MXDC_PRINTTICKET_DATA_T { fn clone(&self) -> Self { *self } } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcPrintTicketPassthrough { - pub dwDataSize: u32, - pub bData: [u8; 1], +pub struct MXDC_PRINTTICKET_ESCAPE_T { + pub mxdcEscape: MXDC_ESCAPE_HEADER_T, + pub printTicketData: MXDC_PRINTTICKET_DATA_T, } -impl ::core::marker::Copy for MxdcPrintTicketPassthrough {} -impl ::core::clone::Clone for MxdcPrintTicketPassthrough { +impl ::core::marker::Copy for MXDC_PRINTTICKET_ESCAPE_T {} +impl ::core::clone::Clone for MXDC_PRINTTICKET_ESCAPE_T { fn clone(&self) -> Self { *self } } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcS0PageData { +pub struct MXDC_S0PAGE_DATA_T { pub dwSize: u32, pub bData: [u8; 1], } -impl ::core::marker::Copy for MxdcS0PageData {} -impl ::core::clone::Clone for MxdcS0PageData { +impl ::core::marker::Copy for MXDC_S0PAGE_DATA_T {} +impl ::core::clone::Clone for MXDC_S0PAGE_DATA_T { fn clone(&self) -> Self { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcS0PagePassthroughEscape { - pub mxdcEscape: MxdcEscapeHeader, - pub xpsS0PageData: MxdcS0PageData, +pub struct MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T { + pub mxdcEscape: MXDC_ESCAPE_HEADER_T, + pub xpsS0PageData: MXDC_S0PAGE_DATA_T, } -impl ::core::marker::Copy for MxdcS0PagePassthroughEscape {} -impl ::core::clone::Clone for MxdcS0PagePassthroughEscape { +impl ::core::marker::Copy for MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T {} +impl ::core::clone::Clone for MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T { fn clone(&self) -> Self { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcS0PageResourceEscape { - pub mxdcEscape: MxdcEscapeHeader, - pub xpsS0PageResourcePassthrough: MxdcXpsS0PageResource, +pub struct MXDC_S0PAGE_RESOURCE_ESCAPE_T { + pub mxdcEscape: MXDC_ESCAPE_HEADER_T, + pub xpsS0PageResourcePassthrough: MXDC_XPS_S0PAGE_RESOURCE_T, } -impl ::core::marker::Copy for MxdcS0PageResourceEscape {} -impl ::core::clone::Clone for MxdcS0PageResourceEscape { +impl ::core::marker::Copy for MXDC_S0PAGE_RESOURCE_ESCAPE_T {} +impl ::core::clone::Clone for MXDC_S0PAGE_RESOURCE_ESCAPE_T { fn clone(&self) -> Self { *self } } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcXpsS0PageResource { +pub struct MXDC_XPS_S0PAGE_RESOURCE_T { pub dwSize: u32, pub dwResourceType: u32, pub szUri: [u8; 260], pub dwDataSize: u32, pub bData: [u8; 1], } -impl ::core::marker::Copy for MxdcXpsS0PageResource {} -impl ::core::clone::Clone for MxdcXpsS0PageResource { +impl ::core::marker::Copy for MXDC_XPS_S0PAGE_RESOURCE_T {} +impl ::core::clone::Clone for MXDC_XPS_S0PAGE_RESOURCE_T { fn clone(&self) -> Self { *self } @@ -7288,6 +7285,45 @@ impl ::core::clone::Clone for SPLCLIENT_INFO_1 { } #[repr(C)] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] +pub struct SPLCLIENT_INFO_2_W2K { + pub hSplPrinter: usize, +} +impl ::core::marker::Copy for SPLCLIENT_INFO_2_W2K {} +impl ::core::clone::Clone for SPLCLIENT_INFO_2_W2K { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub struct SPLCLIENT_INFO_2_WINXP { + pub hSplPrinter: u64, +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::marker::Copy for SPLCLIENT_INFO_2_WINXP {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::clone::Clone for SPLCLIENT_INFO_2_WINXP { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] +#[cfg(target_arch = "x86")] +pub struct SPLCLIENT_INFO_2_WINXP { + pub hSplPrinter: u32, +} +#[cfg(target_arch = "x86")] +impl ::core::marker::Copy for SPLCLIENT_INFO_2_WINXP {} +#[cfg(target_arch = "x86")] +impl ::core::clone::Clone for SPLCLIENT_INFO_2_WINXP { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] pub struct SPLCLIENT_INFO_3_VISTA { pub cbSize: u32, pub dwFlags: u32, @@ -7503,45 +7539,6 @@ impl ::core::clone::Clone for WIDTHTABLE { } #[repr(C)] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct _SPLCLIENT_INFO_2_V1 { - pub hSplPrinter: usize, -} -impl ::core::marker::Copy for _SPLCLIENT_INFO_2_V1 {} -impl ::core::clone::Clone for _SPLCLIENT_INFO_2_V1 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub struct _SPLCLIENT_INFO_2_V2 { - pub hSplPrinter: u64, -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::marker::Copy for _SPLCLIENT_INFO_2_V2 {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::clone::Clone for _SPLCLIENT_INFO_2_V2 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -#[cfg(target_arch = "x86")] -pub struct _SPLCLIENT_INFO_2_V2 { - pub hSplPrinter: u32, -} -#[cfg(target_arch = "x86")] -impl ::core::marker::Copy for _SPLCLIENT_INFO_2_V2 {} -#[cfg(target_arch = "x86")] -impl ::core::clone::Clone for _SPLCLIENT_INFO_2_V2 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] pub struct _SPLCLIENT_INFO_2_V3 { pub hSplPrinter: u64, } diff --git a/crates/libs/sys/src/Windows/Win32/Media/Audio/DirectMusic/mod.rs b/crates/libs/sys/src/Windows/Win32/Media/Audio/DirectMusic/mod.rs index cc1734f494..13bdaff374 100644 --- a/crates/libs/sys/src/Windows/Win32/Media/Audio/DirectMusic/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Media/Audio/DirectMusic/mod.rs @@ -794,6 +794,27 @@ impl ::core::clone::Clone for DMUS_PORTCAPS { #[repr(C)] #[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] +pub struct DMUS_PORTPARAMS7 { + pub dwSize: u32, + pub dwValidParams: u32, + pub dwVoices: u32, + pub dwChannelGroups: u32, + pub dwAudioChannels: u32, + pub dwSampleRate: u32, + pub dwEffectFlags: u32, + pub fShare: super::super::super::Foundation::BOOL, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for DMUS_PORTPARAMS7 {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for DMUS_PORTPARAMS7 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct DMUS_PORTPARAMS8 { pub dwSize: u32, pub dwValidParams: u32, @@ -824,8 +845,8 @@ pub struct DMUS_REGION { pub ulNextRegionIdx: u32, pub ulFirstExtCkIdx: u32, pub WaveLink: WAVELINK, - pub WSMP: _rwsmp, - pub WLOOP: [_rloop; 1], + pub WSMP: WSMPL, + pub WLOOP: [WLOOP; 1], } impl ::core::marker::Copy for DMUS_REGION {} impl ::core::clone::Clone for DMUS_REGION { @@ -1096,6 +1117,23 @@ impl ::core::clone::Clone for DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W_D } #[repr(C)] #[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`*"] +pub struct DVAudInfo { + pub bAudStyle: [u8; 2], + pub bAudQu: [u8; 2], + pub bNumAudPin: u8, + pub wAvgSamplesPerPinPerFrm: [u16; 2], + pub wBlkMode: u16, + pub wDIFMode: u16, + pub wBlkDiv: u16, +} +impl ::core::marker::Copy for DVAudInfo {} +impl ::core::clone::Clone for DVAudInfo { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`*"] pub struct INSTHEADER { pub cRegions: u32, pub Locale: MIDILOCALE, @@ -1200,23 +1238,6 @@ impl ::core::clone::Clone for RGNRANGE { } #[repr(C)] #[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`*"] -pub struct Tag_DVAudInfo { - pub bAudStyle: [u8; 2], - pub bAudQu: [u8; 2], - pub bNumAudPin: u8, - pub wAvgSamplesPerPinPerFrm: [u16; 2], - pub wBlkMode: u16, - pub wDIFMode: u16, - pub wBlkDiv: u16, -} -impl ::core::marker::Copy for Tag_DVAudInfo {} -impl ::core::clone::Clone for Tag_DVAudInfo { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`*"] pub struct WAVELINK { pub fusOptions: u16, pub usPhaseGroup: u16, @@ -1230,43 +1251,22 @@ impl ::core::clone::Clone for WAVELINK { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct _DMUS_PORTPARAMS { - pub dwSize: u32, - pub dwValidParams: u32, - pub dwVoices: u32, - pub dwChannelGroups: u32, - pub dwAudioChannels: u32, - pub dwSampleRate: u32, - pub dwEffectFlags: u32, - pub fShare: super::super::super::Foundation::BOOL, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _DMUS_PORTPARAMS {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _DMUS_PORTPARAMS { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`*"] -pub struct _rloop { +pub struct WLOOP { pub cbSize: u32, pub ulType: u32, pub ulStart: u32, pub ulLength: u32, } -impl ::core::marker::Copy for _rloop {} -impl ::core::clone::Clone for _rloop { +impl ::core::marker::Copy for WLOOP {} +impl ::core::clone::Clone for WLOOP { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`*"] -pub struct _rwsmp { +pub struct WSMPL { pub cbSize: u32, pub usUnityNote: u16, pub sFineTune: i16, @@ -1274,8 +1274,8 @@ pub struct _rwsmp { pub fulOptions: u32, pub cSampleLoops: u32, } -impl ::core::marker::Copy for _rwsmp {} -impl ::core::clone::Clone for _rwsmp { +impl ::core::marker::Copy for WSMPL {} +impl ::core::clone::Clone for WSMPL { fn clone(&self) -> Self { *self } diff --git a/crates/libs/sys/src/Windows/Win32/Media/Audio/mod.rs b/crates/libs/sys/src/Windows/Win32/Media/Audio/mod.rs index 6ef61a0c8a..1bed25b9d7 100644 --- a/crates/libs/sys/src/Windows/Win32/Media/Audio/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Media/Audio/mod.rs @@ -1870,6 +1870,44 @@ impl ::core::clone::Clone for ACMDRVFORMATSUGGEST { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Media_Audio\"`*"] +pub struct ACMDRVOPENDESCA { + pub cbStruct: u32, + pub fccType: u32, + pub fccComp: u32, + pub dwVersion: u32, + pub dwFlags: u32, + pub dwError: u32, + pub pszSectionName: ::windows_sys::core::PCSTR, + pub pszAliasName: ::windows_sys::core::PCSTR, + pub dnDevNode: u32, +} +impl ::core::marker::Copy for ACMDRVOPENDESCA {} +impl ::core::clone::Clone for ACMDRVOPENDESCA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Media_Audio\"`*"] +pub struct ACMDRVOPENDESCW { + pub cbStruct: u32, + pub fccType: u32, + pub fccComp: u32, + pub dwVersion: u32, + pub dwFlags: u32, + pub dwError: u32, + pub pszSectionName: ::windows_sys::core::PCWSTR, + pub pszAliasName: ::windows_sys::core::PCWSTR, + pub dnDevNode: u32, +} +impl ::core::marker::Copy for ACMDRVOPENDESCW {} +impl ::core::clone::Clone for ACMDRVOPENDESCW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Media_Audio\"`*"] pub struct ACMDRVSTREAMHEADER { pub cbStruct: u32, pub fdwStatus: u32, @@ -3695,44 +3733,6 @@ impl ::core::clone::Clone for WAVEOUTCAPSW { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Media_Audio\"`*"] -pub struct tACMDRVOPENDESCA { - pub cbStruct: u32, - pub fccType: u32, - pub fccComp: u32, - pub dwVersion: u32, - pub dwFlags: u32, - pub dwError: u32, - pub pszSectionName: ::windows_sys::core::PCSTR, - pub pszAliasName: ::windows_sys::core::PCSTR, - pub dnDevNode: u32, -} -impl ::core::marker::Copy for tACMDRVOPENDESCA {} -impl ::core::clone::Clone for tACMDRVOPENDESCA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Media_Audio\"`*"] -pub struct tACMDRVOPENDESCW { - pub cbStruct: u32, - pub fccType: u32, - pub fccComp: u32, - pub dwVersion: u32, - pub dwFlags: u32, - pub dwError: u32, - pub pszSectionName: ::windows_sys::core::PCWSTR, - pub pszAliasName: ::windows_sys::core::PCWSTR, - pub dnDevNode: u32, -} -impl ::core::marker::Copy for tACMDRVOPENDESCW {} -impl ::core::clone::Clone for tACMDRVOPENDESCW { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Media_Audio\"`*"] pub struct tACMFORMATDETAILSW { pub cbStruct: u32, pub dwFormatIndex: u32, diff --git a/crates/libs/sys/src/Windows/Win32/Media/DeviceManager/mod.rs b/crates/libs/sys/src/Windows/Win32/Media/DeviceManager/mod.rs index 1b0a7344f5..60f548d5fc 100644 --- a/crates/libs/sys/src/Windows/Win32/Media/DeviceManager/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Media/DeviceManager/mod.rs @@ -863,6 +863,21 @@ pub const WMDM_TYPE_WORD: WMDM_TAG_DATATYPE = 5i32; pub const WMDM_TYPE_GUID: WMDM_TAG_DATATYPE = 6i32; #[doc = "*Required features: `\"Win32_Media_DeviceManager\"`*"] pub const WMDM_TYPE_DATE: WMDM_TAG_DATATYPE = 7i32; +#[repr(C)] +#[doc = "*Required features: `\"Win32_Media_DeviceManager\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct MACINFO { + pub fUsed: super::super::Foundation::BOOL, + pub abMacState: [u8; 36], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for MACINFO {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for MACINFO { + fn clone(&self) -> Self { + *self + } +} #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Media_DeviceManager\"`*"] pub struct MTP_COMMAND_DATA_IN { @@ -1165,18 +1180,3 @@ impl ::core::clone::Clone for WMFILECAPABILITIES { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Media_DeviceManager\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct __MACINFO { - pub fUsed: super::super::Foundation::BOOL, - pub abMacState: [u8; 36], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for __MACINFO {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for __MACINFO { - fn clone(&self) -> Self { - *self - } -} diff --git a/crates/libs/sys/src/Windows/Win32/Media/DirectShow/mod.rs b/crates/libs/sys/src/Windows/Win32/Media/DirectShow/mod.rs index dff668a3df..244235e262 100644 --- a/crates/libs/sys/src/Windows/Win32/Media/DirectShow/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Media/DirectShow/mod.rs @@ -3284,25 +3284,25 @@ pub const AM_SEEKING_CanDoSegments: AM_SEEKING_SEEKING_CAPABILITIES = 128i32; #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub const AM_SEEKING_Source: AM_SEEKING_SEEKING_CAPABILITIES = 256i32; #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub type AM_SEEKING_SeekingFlags = i32; +pub type AM_SEEKING_SEEKING_FLAGS = i32; #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_NoPositioning: AM_SEEKING_SeekingFlags = 0i32; +pub const AM_SEEKING_NoPositioning: AM_SEEKING_SEEKING_FLAGS = 0i32; #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_AbsolutePositioning: AM_SEEKING_SeekingFlags = 1i32; +pub const AM_SEEKING_AbsolutePositioning: AM_SEEKING_SEEKING_FLAGS = 1i32; #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_RelativePositioning: AM_SEEKING_SeekingFlags = 2i32; +pub const AM_SEEKING_RelativePositioning: AM_SEEKING_SEEKING_FLAGS = 2i32; #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_IncrementalPositioning: AM_SEEKING_SeekingFlags = 3i32; +pub const AM_SEEKING_IncrementalPositioning: AM_SEEKING_SEEKING_FLAGS = 3i32; #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_PositioningBitsMask: AM_SEEKING_SeekingFlags = 3i32; +pub const AM_SEEKING_PositioningBitsMask: AM_SEEKING_SEEKING_FLAGS = 3i32; #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_SeekToKeyFrame: AM_SEEKING_SeekingFlags = 4i32; +pub const AM_SEEKING_SeekToKeyFrame: AM_SEEKING_SEEKING_FLAGS = 4i32; #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_ReturnTime: AM_SEEKING_SeekingFlags = 8i32; +pub const AM_SEEKING_ReturnTime: AM_SEEKING_SEEKING_FLAGS = 8i32; #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_Segment: AM_SEEKING_SeekingFlags = 16i32; +pub const AM_SEEKING_Segment: AM_SEEKING_SEEKING_FLAGS = 16i32; #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_NoFlush: AM_SEEKING_SeekingFlags = 32i32; +pub const AM_SEEKING_NoFlush: AM_SEEKING_SEEKING_FLAGS = 32i32; #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub type AM_STREAM_INFO_FLAGS = i32; #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] @@ -8611,6 +8611,26 @@ impl ::core::clone::Clone for AVIStreamHeader { } #[repr(C, packed(2))] #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] +pub struct AVITCDLINDEX { + pub fcc: u32, + pub cb: u32, + pub wLongsPerEntry: u16, + pub bIndexSubType: u8, + pub bIndexType: u8, + pub nEntriesInUse: u32, + pub dwChunkId: u32, + pub dwReserved: [u32; 3], + pub aIndex: [AVITCDLINDEX_ENTRY; 584], + pub adwTrailingFill: [u32; 3512], +} +impl ::core::marker::Copy for AVITCDLINDEX {} +impl ::core::clone::Clone for AVITCDLINDEX { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(2))] +#[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub struct AVITCDLINDEX_ENTRY { pub dwTick: u32, pub time: super::TIMECODE, @@ -8645,6 +8665,27 @@ impl ::core::clone::Clone for AVITIMECODEINDEX { } #[repr(C, packed(2))] #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] +pub struct AVITIMEDINDEX { + pub fcc: u32, + pub cb: u32, + pub wLongsPerEntry: u16, + pub bIndexSubType: u8, + pub bIndexType: u8, + pub nEntriesInUse: u32, + pub dwChunkId: u32, + pub qwBaseOffset: u64, + pub dwReserved_3: u32, + pub aIndex: [AVITIMEDINDEX_ENTRY; 1362], + pub adwTrailingFill: [u32; 2734], +} +impl ::core::marker::Copy for AVITIMEDINDEX {} +impl ::core::clone::Clone for AVITIMEDINDEX { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(2))] +#[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub struct AVITIMEDINDEX_ENTRY { pub dwOffset: u32, pub dwSize: u32, @@ -11221,7 +11262,7 @@ impl ::core::clone::Clone for MPEG_DATE { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub struct MPEG_DATE_AND_TIME { pub D: MPEG_DATE, @@ -11364,7 +11405,7 @@ impl ::core::clone::Clone for MPEG_STREAM_FILTER { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub struct MPEG_TIME { pub Hours: u8, @@ -11861,7 +11902,7 @@ impl ::core::clone::Clone for SBE_PIN_DATA { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub struct SECTION { pub TableId: u8, @@ -12542,47 +12583,6 @@ impl ::core::clone::Clone for WMDRMProtectionInfo { *self } } -#[repr(C, packed(2))] -#[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub struct _avitcdlindex { - pub fcc: u32, - pub cb: u32, - pub wLongsPerEntry: u16, - pub bIndexSubType: u8, - pub bIndexType: u8, - pub nEntriesInUse: u32, - pub dwChunkId: u32, - pub dwReserved: [u32; 3], - pub aIndex: [AVITCDLINDEX_ENTRY; 584], - pub adwTrailingFill: [u32; 3512], -} -impl ::core::marker::Copy for _avitcdlindex {} -impl ::core::clone::Clone for _avitcdlindex { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(2))] -#[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub struct _avitimedindex { - pub fcc: u32, - pub cb: u32, - pub wLongsPerEntry: u16, - pub bIndexSubType: u8, - pub bIndexType: u8, - pub nEntriesInUse: u32, - pub dwChunkId: u32, - pub qwBaseOffset: u64, - pub dwReserved_3: u32, - pub aIndex: [AVITIMEDINDEX_ENTRY; 1362], - pub adwTrailingFill: [u32; 2734], -} -impl ::core::marker::Copy for _avitimedindex {} -impl ::core::clone::Clone for _avitimedindex { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type AMGETERRORTEXTPROCA = ::core::option::Option super::super::Foundation::BOOL>; diff --git a/crates/libs/sys/src/Windows/Win32/Media/KernelStreaming/mod.rs b/crates/libs/sys/src/Windows/Win32/Media/KernelStreaming/mod.rs index cf4dcfbc69..a9c1876d9c 100644 --- a/crates/libs/sys/src/Windows/Win32/Media/KernelStreaming/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Media/KernelStreaming/mod.rs @@ -3812,13 +3812,13 @@ pub const TELEPHONY_PROVIDERCHANGEOP_BEGIN: TELEPHONY_PROVIDERCHANGEOP = 1i32; #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] pub const TELEPHONY_PROVIDERCHANGEOP_CANCEL: TELEPHONY_PROVIDERCHANGEOP = 2i32; #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] -pub type _TunerDecoderLockType = i32; +pub type TunerLockType = i32; #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] -pub const Tuner_LockType_None: _TunerDecoderLockType = 0i32; +pub const Tuner_LockType_None: TunerLockType = 0i32; #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] -pub const Tuner_LockType_Within_Scan_Sensing_Range: _TunerDecoderLockType = 1i32; +pub const Tuner_LockType_Within_Scan_Sensing_Range: TunerLockType = 1i32; #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] -pub const Tuner_LockType_Locked: _TunerDecoderLockType = 2i32; +pub const Tuner_LockType_Locked: TunerLockType = 2i32; #[repr(C)] #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] pub struct ALLOCATOR_PROPERTIES_EX { @@ -4404,7 +4404,7 @@ pub struct KSAUDIO_PACKETSIZE_CONSTRAINTS { pub PacketSizeFileAlignment: u32, pub Reserved: u32, pub NumProcessingModeConstraints: u32, - pub ProcessingModeConstraints: [_KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT; 1], + pub ProcessingModeConstraints: [KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT; 1], } impl ::core::marker::Copy for KSAUDIO_PACKETSIZE_CONSTRAINTS {} impl ::core::clone::Clone for KSAUDIO_PACKETSIZE_CONSTRAINTS { @@ -4419,7 +4419,7 @@ pub struct KSAUDIO_PACKETSIZE_CONSTRAINTS2 { pub PacketSizeFileAlignment: u32, pub MaxPacketSizeInBytes: u32, pub NumProcessingModeConstraints: u32, - pub ProcessingModeConstraints: [_KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT; 1], + pub ProcessingModeConstraints: [KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT; 1], } impl ::core::marker::Copy for KSAUDIO_PACKETSIZE_CONSTRAINTS2 {} impl ::core::clone::Clone for KSAUDIO_PACKETSIZE_CONSTRAINTS2 { @@ -4429,6 +4429,19 @@ impl ::core::clone::Clone for KSAUDIO_PACKETSIZE_CONSTRAINTS2 { } #[repr(C)] #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] +pub struct KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT { + pub ProcessingMode: ::windows_sys::core::GUID, + pub SamplesPerProcessingPacket: u32, + pub ProcessingPacketDurationInHns: u32, +} +impl ::core::marker::Copy for KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT {} +impl ::core::clone::Clone for KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] pub struct KSAUDIO_POSITION { pub PlayOffset: u64, pub WriteOffset: u64, @@ -6809,7 +6822,7 @@ impl ::core::clone::Clone for KSPROPERTY_TUNER_SCAN_CAPS_S { #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] pub struct KSPROPERTY_TUNER_SCAN_STATUS_S { pub Property: KSIDENTIFIER, - pub LockStatus: _TunerDecoderLockType, + pub LockStatus: TunerLockType, pub CurrentFrequency: u32, } impl ::core::marker::Copy for KSPROPERTY_TUNER_SCAN_STATUS_S {} @@ -8105,7 +8118,7 @@ impl ::core::clone::Clone for KS_AM_SimpleRateChange { #[repr(C)] #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct KS_AnalogVideoInfo { +pub struct KS_ANALOGVIDEOINFO { pub rcSource: super::super::Foundation::RECT, pub rcTarget: super::super::Foundation::RECT, pub dwActiveWidth: u32, @@ -8113,9 +8126,9 @@ pub struct KS_AnalogVideoInfo { pub AvgTimePerFrame: i64, } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for KS_AnalogVideoInfo {} +impl ::core::marker::Copy for KS_ANALOGVIDEOINFO {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for KS_AnalogVideoInfo { +impl ::core::clone::Clone for KS_ANALOGVIDEOINFO { fn clone(&self) -> Self { *self } @@ -8280,7 +8293,7 @@ impl ::core::clone::Clone for KS_DATAFORMAT_VIDEOINFO_PALETTE { #[cfg(feature = "Win32_Foundation")] pub struct KS_DATARANGE_ANALOGVIDEO { pub DataRange: KSDATAFORMAT, - pub AnalogVideoInfo: KS_AnalogVideoInfo, + pub AnalogVideoInfo: KS_ANALOGVIDEOINFO, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for KS_DATARANGE_ANALOGVIDEO {} @@ -8722,20 +8735,6 @@ impl ::core::clone::Clone for KS_H264VIDEOINFO { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] -pub struct KS_MPEAUDIOINFO { - pub dwFlags: u32, - pub dwReserved1: u32, - pub dwReserved2: u32, - pub dwReserved3: u32, -} -impl ::core::marker::Copy for KS_MPEAUDIOINFO {} -impl ::core::clone::Clone for KS_MPEAUDIOINFO { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct KS_MPEG1VIDEOINFO { @@ -8753,6 +8752,20 @@ impl ::core::clone::Clone for KS_MPEG1VIDEOINFO { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] +pub struct KS_MPEGAUDIOINFO { + pub dwFlags: u32, + pub dwReserved1: u32, + pub dwReserved2: u32, + pub dwReserved3: u32, +} +impl ::core::marker::Copy for KS_MPEGAUDIOINFO {} +impl ::core::clone::Clone for KS_MPEGAUDIOINFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct KS_MPEGVIDEOINFO2 { @@ -9491,16 +9504,3 @@ impl ::core::clone::Clone for WST_BUFFER_LINE { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] -pub struct _KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT { - pub ProcessingMode: ::windows_sys::core::GUID, - pub SamplesPerProcessingPacket: u32, - pub ProcessingPacketDurationInHns: u32, -} -impl ::core::marker::Copy for _KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT {} -impl ::core::clone::Clone for _KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT { - fn clone(&self) -> Self { - *self - } -} diff --git a/crates/libs/sys/src/Windows/Win32/Media/MediaFoundation/mod.rs b/crates/libs/sys/src/Windows/Win32/Media/MediaFoundation/mod.rs index c82902ca58..54cdf1a964 100644 --- a/crates/libs/sys/src/Windows/Win32/Media/MediaFoundation/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Media/MediaFoundation/mod.rs @@ -1,16 +1,4 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_Graphics_Direct3D12\"`*"] - #[cfg(feature = "Win32_Graphics_Direct3D12")] - pub fn MFCreateD3D12SynchronizationObject(pdevice: super::super::Graphics::Direct3D12::ID3D12Device, riid: *const ::windows_sys::core::GUID, ppvsyncobject: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] - pub fn OPMXboxEnableHDCP(hdcptype: OPM_HDCP_TYPE) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] - pub fn OPMXboxGetHDCPStatus(phdcpstatus: *mut OPM_HDCP_STATUS) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] - pub fn OPMXboxGetHDCPStatusAndType(phdcpstatus: *mut OPM_HDCP_STATUS, phdcptype: *mut OPM_HDCP_TYPE) -> ::windows_sys::core::HRESULT; -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -134,6 +122,9 @@ extern "system" { pub fn MFCreateContentProtectionDevice(protectionsystemid: *const ::windows_sys::core::GUID, contentprotectiondevice: *mut IMFContentProtectionDevice) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] pub fn MFCreateCredentialCache(ppcache: *mut IMFNetCredentialCache) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_Graphics_Direct3D12\"`*"] + #[cfg(feature = "Win32_Graphics_Direct3D12")] + pub fn MFCreateD3D12SynchronizationObject(pdevice: super::super::Graphics::Direct3D12::ID3D12Device, riid: *const ::windows_sys::core::GUID, ppvsyncobject: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] pub fn MFCreateDXGIDeviceManager(resettoken: *mut u32, ppdevicemanager: *mut IMFDXGIDeviceManager) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_Foundation\"`*"] @@ -545,6 +536,12 @@ extern "system" { #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_Graphics_Direct3D9\"`*"] #[cfg(feature = "Win32_Graphics_Direct3D9")] pub fn OPMGetVideoOutputsFromIDirect3DDevice9Object(pdirect3ddevice9: super::super::Graphics::Direct3D9::IDirect3DDevice9, vos: OPM_VIDEO_OUTPUT_SEMANTICS, pulnumvideooutputs: *mut u32, pppopmvideooutputarray: *mut *mut IOPMVideoOutput) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] + pub fn OPMXboxEnableHDCP(hdcptype: OPM_HDCP_TYPE) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] + pub fn OPMXboxGetHDCPStatus(phdcpstatus: *mut OPM_HDCP_STATUS) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] + pub fn OPMXboxGetHDCPStatusAndType(phdcpstatus: *mut OPM_HDCP_STATUS, phdcptype: *mut OPM_HDCP_TYPE) -> ::windows_sys::core::HRESULT; } pub type IAdvancedMediaCapture = *mut ::core::ffi::c_void; pub type IAdvancedMediaCaptureInitializationSettings = *mut ::core::ffi::c_void; diff --git a/crates/libs/sys/src/Windows/Win32/Media/Speech/mod.rs b/crates/libs/sys/src/Windows/Win32/Media/Speech/mod.rs index 1c9e0a7027..810a43b410 100644 --- a/crates/libs/sys/src/Windows/Win32/Media/Speech/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Media/Speech/mod.rs @@ -1149,19 +1149,19 @@ pub const SPDKL_LocalMachine: SPDATAKEYLOCATION = 2i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] pub const SPDKL_CurrentConfig: SPDATAKEYLOCATION = 5i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub type SPDISPLYATTRIBUTES = i32; +pub type SPDISPLAYATTRIBUTES = i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPAF_ONE_TRAILING_SPACE: SPDISPLYATTRIBUTES = 2i32; +pub const SPAF_ONE_TRAILING_SPACE: SPDISPLAYATTRIBUTES = 2i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPAF_TWO_TRAILING_SPACES: SPDISPLYATTRIBUTES = 4i32; +pub const SPAF_TWO_TRAILING_SPACES: SPDISPLAYATTRIBUTES = 4i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPAF_CONSUME_LEADING_SPACES: SPDISPLYATTRIBUTES = 8i32; +pub const SPAF_CONSUME_LEADING_SPACES: SPDISPLAYATTRIBUTES = 8i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPAF_BUFFER_POSITION: SPDISPLYATTRIBUTES = 16i32; +pub const SPAF_BUFFER_POSITION: SPDISPLAYATTRIBUTES = 16i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPAF_ALL: SPDISPLYATTRIBUTES = 31i32; +pub const SPAF_ALL: SPDISPLAYATTRIBUTES = 31i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPAF_USER_SPECIFIED: SPDISPLYATTRIBUTES = 128i32; +pub const SPAF_USER_SPECIFIED: SPDISPLAYATTRIBUTES = 128i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] pub type SPEAKFLAGS = i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] @@ -1715,6 +1715,12 @@ pub const SPSF_GSM610_44kHzMono: SPSTREAMFORMAT = 68i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] pub const SPSF_NUM_FORMATS: SPSTREAMFORMAT = 69i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] +pub type SPSTREAMFORMATTYPE = i32; +#[doc = "*Required features: `\"Win32_Media_Speech\"`*"] +pub const SPWF_INPUT: SPSTREAMFORMATTYPE = 0i32; +#[doc = "*Required features: `\"Win32_Media_Speech\"`*"] +pub const SPWF_SRENGINE: SPSTREAMFORMATTYPE = 1i32; +#[doc = "*Required features: `\"Win32_Media_Speech\"`*"] pub type SPVACTIONS = i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] pub const SPVA_Speak: SPVACTIONS = 0i32; @@ -1821,12 +1827,6 @@ pub const SPVPRI_ALERT: SPVPRIORITY = 1i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] pub const SPVPRI_OVER: SPVPRIORITY = 2i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub type SPWAVEFORMATTYPE = i32; -#[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPWF_INPUT: SPWAVEFORMATTYPE = 0i32; -#[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPWF_SRENGINE: SPWAVEFORMATTYPE = 1i32; -#[doc = "*Required features: `\"Win32_Media_Speech\"`*"] pub type SPWORDPRONOUNCEABLE = i32; #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] pub const SPWP_UNKNOWN_WORD_UNPRONOUNCEABLE: SPWORDPRONOUNCEABLE = 0i32; 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 fdb6edcb64..302a6c5a31 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs @@ -1,97 +1,4 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpAddServer(flags: u32, idinfo: *mut ::core::ffi::c_void, newserver: *mut DHCPDS_SERVER, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpAuditLogGetParams(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, auditlogdir: *mut ::windows_sys::core::PWSTR, diskcheckinterval: *mut u32, maxlogfilessize: *mut u32, minspaceondisk: *mut u32) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpAuditLogSetParams(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, auditlogdir: ::windows_sys::core::PCWSTR, diskcheckinterval: u32, maxlogfilessize: u32, minspaceondisk: u32) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DhcpCreateClass(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpCreateOptionV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, optioninfo: *mut DHCP_OPTION) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpDeleteClass(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, classname: ::windows_sys::core::PCWSTR) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpDeleteServer(flags: u32, idinfo: *mut ::core::ffi::c_void, newserver: *mut DHCPDS_SERVER, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpDeleteSuperScopeV4(serveripaddress: ::windows_sys::core::PCWSTR, superscopename: ::windows_sys::core::PCWSTR) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpDsCleanup(); - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpDsInit() -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DhcpEnumClasses(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, resumehandle: *mut u32, preferredmaximum: u32, classinfoarray: *mut *mut DHCP_CLASS_INFO_ARRAY, nread: *mut u32, ntotal: *mut u32) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpEnumOptionValuesV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, resumehandle: *mut u32, preferredmaximum: u32, optionvalues: *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpEnumOptionsV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, resumehandle: *mut u32, preferredmaximum: u32, options: *mut *mut DHCP_OPTION_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpEnumServers(flags: u32, idinfo: *mut ::core::ffi::c_void, servers: *mut *mut DHCPDS_SERVERS, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DhcpGetAllOptionValues(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, values: *mut *mut DHCP_ALL_OPTION_VALUES) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpGetAllOptions(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionstruct: *mut *mut DHCP_ALL_OPTIONS) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DhcpGetClassInfo(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, partialclassinfo: *mut DHCP_CLASS_INFO, filledclassinfo: *mut *mut DHCP_CLASS_INFO) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpGetMibInfoV6(serveripaddress: ::windows_sys::core::PCWSTR, mibinfo: *mut *mut DHCP_MIB_INFO_V6) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpGetOptionInfoV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, optioninfo: *mut *mut DHCP_OPTION) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpGetOptionValueV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpGetOptionValueV6(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpGetSuperScopeInfoV4(serveripaddress: ::windows_sys::core::PCWSTR, superscopetable: *mut *mut DHCP_SUPER_SCOPE_TABLE) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpGetThreadOptions(pflags: *mut u32, reserved: *mut ::core::ffi::c_void) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpHlprFindV4DhcpProperty(propertyarray: *const DHCP_PROPERTY_ARRAY, id: DHCP_PROPERTY_ID, r#type: DHCP_PROPERTY_TYPE) -> *mut DHCP_PROPERTY; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DhcpModifyClass(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpRemoveOptionV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpRemoveOptionValueV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpServerBackupDatabase(serveripaddress: ::windows_sys::core::PCWSTR, path: ::windows_sys::core::PCWSTR) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DhcpServerQueryAttribute(serveripaddr: ::windows_sys::core::PCWSTR, dwreserved: u32, dhcpattribid: u32, pdhcpattrib: *mut *mut DHCP_ATTRIB) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DhcpServerQueryAttributes(serveripaddr: ::windows_sys::core::PCWSTR, dwreserved: u32, dwattribcount: u32, pdhcpattribs: *mut u32, pdhcpattribarr: *mut *mut DHCP_ATTRIB_ARRAY) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpServerQueryDnsRegCredentials(serveripaddress: ::windows_sys::core::PCWSTR, unamesize: u32, uname: ::windows_sys::core::PWSTR, domainsize: u32, domain: ::windows_sys::core::PWSTR) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpServerRedoAuthorization(serveripaddr: ::windows_sys::core::PCWSTR, dwreserved: u32) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpServerRestoreDatabase(serveripaddress: ::windows_sys::core::PCWSTR, path: ::windows_sys::core::PCWSTR) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpServerSetDnsRegCredentials(serveripaddress: ::windows_sys::core::PCWSTR, uname: ::windows_sys::core::PCWSTR, domain: ::windows_sys::core::PCWSTR, passwd: ::windows_sys::core::PCWSTR) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpServerSetDnsRegCredentialsV5(serveripaddress: ::windows_sys::core::PCWSTR, uname: ::windows_sys::core::PCWSTR, domain: ::windows_sys::core::PCWSTR, passwd: ::windows_sys::core::PCWSTR) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpSetOptionInfoV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, optioninfo: *mut DHCP_OPTION) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpSetOptionValueV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut DHCP_OPTION_DATA) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpSetOptionValuesV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalues: *mut DHCP_OPTION_VALUE_ARRAY) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpSetSubnetInfoV6(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: DHCP_IPV6_ADDRESS, subnetinfo: *mut DHCP_SUBNET_INFO_V6) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DhcpSetSuperScopeV4(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: u32, superscopename: ::windows_sys::core::PCWSTR, changeexisting: super::super::Foundation::BOOL) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] - pub fn DhcpSetThreadOptions(flags: u32, reserved: *mut ::core::ffi::c_void) -> u32; -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -99,6 +6,8 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpAddSecurityGroup(pserver: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpAddServer(flags: u32, idinfo: *mut ::core::ffi::c_void, newserver: *mut DHCPDS_SERVER, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpAddSubnetElement(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: u32, addelementinfo: *const DHCP_SUBNET_ELEMENT_DATA) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpAddSubnetElementV4(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: u32, addelementinfo: *const DHCP_SUBNET_ELEMENT_DATA_V4) -> u32; @@ -107,11 +16,18 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpAddSubnetElementV6(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: DHCP_IPV6_ADDRESS, addelementinfo: *mut DHCP_SUBNET_ELEMENT_DATA_V6) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpAuditLogGetParams(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, auditlogdir: *mut ::windows_sys::core::PWSTR, diskcheckinterval: *mut u32, maxlogfilessize: *mut u32, minspaceondisk: *mut u32) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpAuditLogSetParams(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, auditlogdir: ::windows_sys::core::PCWSTR, diskcheckinterval: u32, maxlogfilessize: u32, minspaceondisk: u32) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpCApiCleanup(); #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpCApiInitialize(version: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn DhcpCreateClass(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn DhcpCreateClassV6(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO_V6) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpCreateClientInfo(serveripaddress: ::windows_sys::core::PCWSTR, clientinfo: *const DHCP_CLIENT_INFO) -> u32; @@ -123,6 +39,8 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpCreateOption(serveripaddress: ::windows_sys::core::PCWSTR, optionid: u32, optioninfo: *const DHCP_OPTION) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpCreateOptionV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, optioninfo: *mut DHCP_OPTION) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpCreateOptionV6(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, optioninfo: *mut DHCP_OPTION) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpCreateSubnet(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: u32, subnetinfo: *const DHCP_SUBNET_INFO) -> u32; @@ -133,6 +51,8 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpDeRegisterParamChange(flags: u32, reserved: *mut ::core::ffi::c_void, event: *mut ::core::ffi::c_void) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpDeleteClass(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, classname: ::windows_sys::core::PCWSTR) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpDeleteClassV6(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, classname: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpDeleteClientInfo(serveripaddress: ::windows_sys::core::PCWSTR, clientinfo: *const DHCP_SEARCH_INFO) -> u32; @@ -142,9 +62,20 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn DhcpDeleteFilterV4(serveripaddress: ::windows_sys::core::PCWSTR, deletefilterinfo: *const DHCP_ADDR_PATTERN) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpDeleteServer(flags: u32, idinfo: *mut ::core::ffi::c_void, newserver: *mut DHCPDS_SERVER, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpDeleteSubnet(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: u32, forceflag: DHCP_FORCE_FLAG) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpDeleteSubnetV6(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: DHCP_IPV6_ADDRESS, forceflag: DHCP_FORCE_FLAG) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpDeleteSuperScopeV4(serveripaddress: ::windows_sys::core::PCWSTR, superscopename: ::windows_sys::core::PCWSTR) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpDsCleanup(); + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpDsInit() -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn DhcpEnumClasses(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, resumehandle: *mut u32, preferredmaximum: u32, classinfoarray: *mut *mut DHCP_CLASS_INFO_ARRAY, nread: *mut u32, ntotal: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn DhcpEnumClassesV6(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, resumehandle: *mut u32, preferredmaximum: u32, classinfoarray: *mut *mut DHCP_CLASS_INFO_ARRAY_V6, nread: *mut u32, ntotal: *mut u32) -> u32; @@ -154,12 +85,18 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpEnumOptionValues(serveripaddress: ::windows_sys::core::PCWSTR, scopeinfo: *const DHCP_OPTION_SCOPE_INFO, resumehandle: *mut u32, preferredmaximum: u32, optionvalues: *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpEnumOptionValuesV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, resumehandle: *mut u32, preferredmaximum: u32, optionvalues: *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpEnumOptionValuesV6(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, resumehandle: *mut u32, preferredmaximum: u32, optionvalues: *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpEnumOptions(serveripaddress: ::windows_sys::core::PCWSTR, resumehandle: *mut u32, preferredmaximum: u32, options: *mut *mut DHCP_OPTION_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpEnumOptionsV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, resumehandle: *mut u32, preferredmaximum: u32, options: *mut *mut DHCP_OPTION_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpEnumOptionsV6(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, resumehandle: *mut u32, preferredmaximum: u32, options: *mut *mut DHCP_OPTION_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpEnumServers(flags: u32, idinfo: *mut ::core::ffi::c_void, servers: *mut *mut DHCPDS_SERVERS, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpEnumSubnetClients(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: u32, resumehandle: *mut u32, preferredmaximum: u32, clientinfo: *mut *mut DHCP_CLIENT_INFO_ARRAY, clientsread: *mut u32, clientstotal: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -187,9 +124,17 @@ extern "system" { pub fn DhcpEnumSubnetsV6(serveripaddress: ::windows_sys::core::PCWSTR, resumehandle: *mut u32, preferredmaximum: u32, enuminfo: *mut *mut DHCPV6_IP_ARRAY, elementsread: *mut u32, elementstotal: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn DhcpGetAllOptionValues(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, values: *mut *mut DHCP_ALL_OPTION_VALUES) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn DhcpGetAllOptionValuesV6(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, values: *mut *mut DHCP_ALL_OPTION_VALUES) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpGetAllOptions(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionstruct: *mut *mut DHCP_ALL_OPTIONS) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpGetAllOptionsV6(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionstruct: *mut *mut DHCP_ALL_OPTIONS) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn DhcpGetClassInfo(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, partialclassinfo: *mut DHCP_CLASS_INFO, filledclassinfo: *mut *mut DHCP_CLASS_INFO) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpGetClientInfo(serveripaddress: ::windows_sys::core::PCWSTR, searchinfo: *const DHCP_SEARCH_INFO, clientinfo: *mut *mut DHCP_CLIENT_INFO) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] @@ -209,12 +154,20 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpGetMibInfoV5(serveripaddress: ::windows_sys::core::PCWSTR, mibinfo: *mut *mut DHCP_MIB_INFO_V5) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpGetMibInfoV6(serveripaddress: ::windows_sys::core::PCWSTR, mibinfo: *mut *mut DHCP_MIB_INFO_V6) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpGetOptionInfo(serveripaddress: ::windows_sys::core::PCWSTR, optionid: u32, optioninfo: *mut *mut DHCP_OPTION) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpGetOptionInfoV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, optioninfo: *mut *mut DHCP_OPTION) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpGetOptionInfoV6(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, optioninfo: *mut *mut DHCP_OPTION) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpGetOptionValue(serveripaddress: ::windows_sys::core::PCWSTR, optionid: u32, scopeinfo: *const DHCP_OPTION_SCOPE_INFO, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpGetOptionValueV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpGetOptionValueV6(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpGetOriginalSubnetMask(sadaptername: ::windows_sys::core::PCWSTR, dwsubnetmask: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -233,6 +186,10 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpGetSubnetInfoVQ(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: u32, subnetinfo: *mut *mut DHCP_SUBNET_INFO_VQ) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpGetSuperScopeInfoV4(serveripaddress: ::windows_sys::core::PCWSTR, superscopetable: *mut *mut DHCP_SUPER_SCOPE_TABLE) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpGetThreadOptions(pflags: *mut u32, reserved: *mut ::core::ffi::c_void) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpGetVersion(serveripaddress: ::windows_sys::core::PCWSTR, majorversion: *mut u32, minorversion: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -250,6 +207,8 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn DhcpHlprCreateV4PolicyEx(policyname: ::windows_sys::core::PCWSTR, fglobalpolicy: super::super::Foundation::BOOL, subnet: u32, processingorder: u32, rootoperator: DHCP_POL_LOGIC_OPER, description: ::windows_sys::core::PCWSTR, enabled: super::super::Foundation::BOOL, policy: *mut *mut DHCP_POLICY_EX) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpHlprFindV4DhcpProperty(propertyarray: *const DHCP_PROPERTY_ARRAY, id: DHCP_PROPERTY_ID, r#type: DHCP_PROPERTY_TYPE) -> *mut DHCP_PROPERTY; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpHlprFreeV4DhcpProperty(property: *mut DHCP_PROPERTY); #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpHlprFreeV4DhcpPropertyArray(propertyarray: *mut DHCP_PROPERTY_ARRAY); @@ -282,6 +241,9 @@ extern "system" { pub fn DhcpHlprResetV4PolicyExpr(policy: *mut DHCP_POLICY) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn DhcpModifyClass(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn DhcpModifyClassV6(serveripaddress: ::windows_sys::core::PCWSTR, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO_V6) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -291,10 +253,14 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpRemoveOption(serveripaddress: ::windows_sys::core::PCWSTR, optionid: u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpRemoveOptionV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpRemoveOptionV6(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpRemoveOptionValue(serveripaddress: ::windows_sys::core::PCWSTR, optionid: u32, scopeinfo: *const DHCP_OPTION_SCOPE_INFO) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpRemoveOptionValueV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpRemoveOptionValueV6(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpRemoveSubnetElement(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: u32, removeelementinfo: *const DHCP_SUBNET_ELEMENT_DATA, forceflag: DHCP_FORCE_FLAG) -> u32; @@ -315,6 +281,8 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn DhcpServerAuditlogParamsFree(configinfo: *mut DHCP_SERVER_CONFIG_INFO_VQ); #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpServerBackupDatabase(serveripaddress: ::windows_sys::core::PCWSTR, path: ::windows_sys::core::PCWSTR) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpServerGetConfig(serveripaddress: ::windows_sys::core::PCWSTR, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -325,6 +293,18 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn DhcpServerGetConfigVQ(serveripaddress: ::windows_sys::core::PCWSTR, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO_VQ) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn DhcpServerQueryAttribute(serveripaddr: ::windows_sys::core::PCWSTR, dwreserved: u32, dhcpattribid: u32, pdhcpattrib: *mut *mut DHCP_ATTRIB) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn DhcpServerQueryAttributes(serveripaddr: ::windows_sys::core::PCWSTR, dwreserved: u32, dwattribcount: u32, pdhcpattribs: *mut u32, pdhcpattribarr: *mut *mut DHCP_ATTRIB_ARRAY) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpServerQueryDnsRegCredentials(serveripaddress: ::windows_sys::core::PCWSTR, unamesize: u32, uname: ::windows_sys::core::PWSTR, domainsize: u32, domain: ::windows_sys::core::PWSTR) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpServerRedoAuthorization(serveripaddr: ::windows_sys::core::PCWSTR, dwreserved: u32) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpServerRestoreDatabase(serveripaddress: ::windows_sys::core::PCWSTR, path: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpServerSetConfig(serveripaddress: ::windows_sys::core::PCWSTR, fieldstoset: u32, configinfo: *mut DHCP_SERVER_CONFIG_INFO) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] @@ -337,6 +317,10 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn DhcpServerSetConfigVQ(serveripaddress: ::windows_sys::core::PCWSTR, fieldstoset: u32, configinfo: *mut DHCP_SERVER_CONFIG_INFO_VQ) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpServerSetDnsRegCredentials(serveripaddress: ::windows_sys::core::PCWSTR, uname: ::windows_sys::core::PCWSTR, domain: ::windows_sys::core::PCWSTR, passwd: ::windows_sys::core::PCWSTR) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpServerSetDnsRegCredentialsV5(serveripaddress: ::windows_sys::core::PCWSTR, uname: ::windows_sys::core::PCWSTR, domain: ::windows_sys::core::PCWSTR, passwd: ::windows_sys::core::PCWSTR) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpSetClientInfo(serveripaddress: ::windows_sys::core::PCWSTR, clientinfo: *const DHCP_CLIENT_INFO) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpSetClientInfoV4(serveripaddress: ::windows_sys::core::PCWSTR, clientinfo: *const DHCP_CLIENT_INFO_V4) -> u32; @@ -351,13 +335,19 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpSetOptionInfo(serveripaddress: ::windows_sys::core::PCWSTR, optionid: u32, optioninfo: *const DHCP_OPTION) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpSetOptionInfoV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, optioninfo: *mut DHCP_OPTION) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpSetOptionInfoV6(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, optioninfo: *mut DHCP_OPTION) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpSetOptionValue(serveripaddress: ::windows_sys::core::PCWSTR, optionid: u32, scopeinfo: *const DHCP_OPTION_SCOPE_INFO, optionvalue: *const DHCP_OPTION_DATA) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpSetOptionValueV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut DHCP_OPTION_DATA) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpSetOptionValueV6(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, optionvalue: *mut DHCP_OPTION_DATA) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpSetOptionValues(serveripaddress: ::windows_sys::core::PCWSTR, scopeinfo: *const DHCP_OPTION_SCOPE_INFO, optionvalues: *const DHCP_OPTION_VALUE_ARRAY) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpSetOptionValuesV5(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, classname: ::windows_sys::core::PCWSTR, vendorname: ::windows_sys::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalues: *mut DHCP_OPTION_VALUE_ARRAY) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn DhcpSetServerBindingInfo(serveripaddress: ::windows_sys::core::PCWSTR, flags: u32, bindelementinfo: *mut DHCP_BIND_ELEMENT_ARRAY) -> u32; @@ -369,7 +359,14 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpSetSubnetInfo(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: u32, subnetinfo: *const DHCP_SUBNET_INFO) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpSetSubnetInfoV6(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: DHCP_IPV6_ADDRESS, subnetinfo: *mut DHCP_SUBNET_INFO_V6) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpSetSubnetInfoVQ(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: u32, subnetinfo: *const DHCP_SUBNET_INFO_VQ) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn DhcpSetSuperScopeV4(serveripaddress: ::windows_sys::core::PCWSTR, subnetaddress: u32, superscopename: ::windows_sys::core::PCWSTR, changeexisting: super::super::Foundation::BOOL) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] + pub fn DhcpSetThreadOptions(flags: u32, reserved: *mut ::core::ffi::c_void) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] pub fn DhcpUndoRequestParams(flags: u32, reserved: *mut ::core::ffi::c_void, adaptername: ::windows_sys::core::PCWSTR, requestidstr: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] @@ -3276,48 +3273,6 @@ impl ::core::clone::Clone for DHCP_SERVER_CONFIG_INFO_VQ { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[cfg(feature = "Win32_Foundation")] -pub struct DHCP_SERVER_OPTIONS { - pub MessageType: *mut u8, - pub SubnetMask: *mut u32, - pub RequestedAddress: *mut u32, - pub RequestLeaseTime: *mut u32, - pub OverlayFields: *mut u8, - pub RouterAddress: *mut u32, - pub Server: *mut u32, - pub ParameterRequestList: *mut u8, - pub ParameterRequestListLength: u32, - pub MachineName: ::windows_sys::core::PSTR, - pub MachineNameLength: u32, - pub ClientHardwareAddressType: u8, - pub ClientHardwareAddressLength: u8, - pub ClientHardwareAddress: *mut u8, - pub ClassIdentifier: ::windows_sys::core::PSTR, - pub ClassIdentifierLength: u32, - pub VendorClass: *mut u8, - pub VendorClassLength: u32, - pub DNSFlags: u32, - pub DNSNameLength: u32, - pub DNSName: *mut u8, - pub DSDomainNameRequested: super::super::Foundation::BOOLEAN, - pub DSDomainName: ::windows_sys::core::PSTR, - pub DSDomainNameLen: u32, - pub ScopeId: *mut u32, -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for DHCP_SERVER_OPTIONS {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for DHCP_SERVER_OPTIONS { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] pub struct DHCP_SERVER_OPTIONS { pub MessageType: *mut u8, @@ -3346,10 +3301,8 @@ pub struct DHCP_SERVER_OPTIONS { pub DSDomainNameLen: u32, pub ScopeId: *mut u32, } -#[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for DHCP_SERVER_OPTIONS {} -#[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for DHCP_SERVER_OPTIONS { fn clone(&self) -> Self { diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/Dns/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/Dns/mod.rs index d105191fd9..c64e350fed 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/Dns/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/Dns/mod.rs @@ -1,5 +1,12 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { +extern "system" { + #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] + pub fn DnsAcquireContextHandle_A(credentialflags: u32, credentials: *const ::core::ffi::c_void, pcontext: *mut DnsContextHandle) -> i32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] + pub fn DnsAcquireContextHandle_W(credentialflags: u32, credentials: *const ::core::ffi::c_void, pcontext: *mut DnsContextHandle) -> i32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn DnsCancelQuery(pcancelhandle: *const DNS_QUERY_CANCEL) -> i32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] pub fn DnsConnectionDeletePolicyEntries(policyentrytag: DNS_CONNECTION_POLICY_TAG) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] @@ -30,42 +37,20 @@ extern "cdecl" { pub fn DnsConnectionUpdateIfIndexTable(pconnectionifindexentries: *const DNS_CONNECTION_IFINDEX_LIST) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn DnsFreeCustomServers(pcservers: *mut u32, ppservers: *mut *mut DNS_CUSTOM_SERVER); - #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DnsGetApplicationSettings(pcservers: *mut u32, ppdefaultservers: *mut *mut DNS_CUSTOM_SERVER, psettings: *mut DNS_APPLICATION_SETTINGS) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DnsRecordSetDetach(precordlist: *mut DNS_RECORDA) -> *mut DNS_RECORDA; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DnsSetApplicationSettings(cservers: u32, pservers: *const DNS_CUSTOM_SERVER, psettings: *const DNS_APPLICATION_SETTINGS) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] - pub fn DnsValidateName_A(pszname: ::windows_sys::core::PCSTR, format: DNS_NAME_FORMAT) -> i32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] - pub fn DnsValidateName_UTF8(pszname: ::windows_sys::core::PCSTR, format: DNS_NAME_FORMAT) -> i32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] - pub fn DnsValidateName_W(pszname: ::windows_sys::core::PCWSTR, format: DNS_NAME_FORMAT) -> i32; -} -#[cfg_attr(windows, link(name = "windows"))] -extern "system" { - #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] - pub fn DnsAcquireContextHandle_A(credentialflags: u32, credentials: *const ::core::ffi::c_void, pcontext: *mut DnsContextHandle) -> i32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] - pub fn DnsAcquireContextHandle_W(credentialflags: u32, credentials: *const ::core::ffi::c_void, pcontext: *mut DnsContextHandle) -> i32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DnsCancelQuery(pcancelhandle: *const DNS_QUERY_CANCEL) -> i32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub fn DnsExtractRecordsFromMessage_UTF8(pdnsbuffer: *const DNS_MESSAGE_BUFFER, wmessagelength: u16, pprecord: *mut *mut DNS_RECORDA) -> i32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn DnsExtractRecordsFromMessage_W(pdnsbuffer: *const DNS_MESSAGE_BUFFER, wmessagelength: u16, pprecord: *mut *mut DNS_RECORDA) -> i32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] pub fn DnsFree(pdata: *const ::core::ffi::c_void, freetype: DNS_FREE_TYPE); + #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn DnsFreeCustomServers(pcservers: *mut u32, ppservers: *mut *mut DNS_CUSTOM_SERVER); #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] pub fn DnsFreeProxyName(proxyname: ::windows_sys::core::PCWSTR); + #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn DnsGetApplicationSettings(pcservers: *mut u32, ppdefaultservers: *mut *mut DNS_CUSTOM_SERVER, psettings: *mut DNS_APPLICATION_SETTINGS) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] pub fn DnsGetProxyInformation(hostname: ::windows_sys::core::PCWSTR, proxyinformation: *mut DNS_PROXY_INFORMATION, defaultproxyinformation: *mut DNS_PROXY_INFORMATION, completionroutine: DNS_PROXY_COMPLETION_ROUTINE, completioncontext: *const ::core::ffi::c_void) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] @@ -111,6 +96,9 @@ extern "system" { pub fn DnsRecordSetCopyEx(precordset: *const DNS_RECORDA, charsetin: DNS_CHARSET, charsetout: DNS_CHARSET) -> *mut DNS_RECORDA; #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn DnsRecordSetDetach(precordlist: *mut DNS_RECORDA) -> *mut DNS_RECORDA; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn DnsReleaseContextHandle(hcontext: super::super::Foundation::HANDLE); #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -146,9 +134,18 @@ extern "system" { pub fn DnsServiceResolveCancel(pcancelhandle: *const DNS_SERVICE_CANCEL) -> i32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn DnsSetApplicationSettings(cservers: u32, pservers: *const DNS_CUSTOM_SERVER, psettings: *const DNS_APPLICATION_SETTINGS) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn DnsStartMulticastQuery(pqueryrequest: *const MDNS_QUERY_REQUEST, phandle: *mut MDNS_QUERY_HANDLE) -> i32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] pub fn DnsStopMulticastQuery(phandle: *mut MDNS_QUERY_HANDLE) -> i32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] + pub fn DnsValidateName_A(pszname: ::windows_sys::core::PCSTR, format: DNS_NAME_FORMAT) -> i32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] + pub fn DnsValidateName_UTF8(pszname: ::windows_sys::core::PCSTR, format: DNS_NAME_FORMAT) -> i32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] + pub fn DnsValidateName_W(pszname: ::windows_sys::core::PCWSTR, format: DNS_NAME_FORMAT) -> i32; #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn DnsWriteQuestionToBuffer_UTF8(pdnsbuffer: *mut DNS_MESSAGE_BUFFER, pdwbuffersize: *mut u32, pszname: ::windows_sys::core::PCSTR, wtype: u16, xid: u16, frecursiondesired: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; @@ -1938,6 +1935,58 @@ impl ::core::clone::Clone for DNS_RECORD_FLAGS { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] +pub struct DNS_RECORD_OPTW { + pub pNext: *mut DNS_RECORDW, + pub pName: ::windows_sys::core::PWSTR, + pub wType: u16, + pub wDataLength: u16, + pub Flags: DNS_RECORD_OPTW_1, + pub ExtHeader: DNS_HEADER_EXT, + pub wPayloadSize: u16, + pub wReserved: u16, + pub Data: DNS_RECORD_OPTW_0, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for DNS_RECORD_OPTW {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for DNS_RECORD_OPTW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub union DNS_RECORD_OPTW_0 { + pub OPT: DNS_OPT_DATA, + pub Opt: DNS_OPT_DATA, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for DNS_RECORD_OPTW_0 {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for DNS_RECORD_OPTW_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub union DNS_RECORD_OPTW_1 { + pub DW: u32, + pub S: DNS_RECORD_FLAGS, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for DNS_RECORD_OPTW_1 {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for DNS_RECORD_OPTW_1 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct DNS_RRSET { pub pFirstRR: *mut DNS_RECORDA, pub pLastRR: *mut DNS_RECORDA, @@ -2524,58 +2573,6 @@ impl ::core::clone::Clone for _DnsRecordOptA_1 { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct _DnsRecordOptW { - pub pNext: *mut DNS_RECORDW, - pub pName: ::windows_sys::core::PWSTR, - pub wType: u16, - pub wDataLength: u16, - pub Flags: _DnsRecordOptW_1, - pub ExtHeader: DNS_HEADER_EXT, - pub wPayloadSize: u16, - pub wReserved: u16, - pub Data: _DnsRecordOptW_0, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _DnsRecordOptW {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _DnsRecordOptW { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub union _DnsRecordOptW_0 { - pub OPT: DNS_OPT_DATA, - pub Opt: DNS_OPT_DATA, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _DnsRecordOptW_0 {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _DnsRecordOptW_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub union _DnsRecordOptW_1 { - pub DW: u32, - pub S: DNS_RECORD_FLAGS, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _DnsRecordOptW_1 {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _DnsRecordOptW_1 { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] pub type DNS_PROXY_COMPLETION_ROUTINE = ::core::option::Option; #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] 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 b652eb2497..9995b6901f 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs @@ -1,9 +1,4 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] - pub fn GetOwnerModuleFromPidAndInfo(ulpid: u32, pinfo: *const u64, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut ::core::ffi::c_void, pdwsize: *mut u32) -> u32; -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] pub fn AddIPAddress(address: u32, ipmask: u32, ifindex: u32, ntecontext: *mut u32, nteinstance: *mut u32) -> u32; @@ -278,6 +273,8 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] pub fn GetNumberOfInterfaces(pdwnumif: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] + pub fn GetOwnerModuleFromPidAndInfo(ulpid: u32, pinfo: *const u64, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut ::core::ffi::c_void, pdwsize: *mut u32) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] pub fn GetOwnerModuleFromTcp6Entry(ptcpentry: *const MIB_TCP6ROW_OWNER_MODULE, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut ::core::ffi::c_void, pdwsize: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] pub fn GetOwnerModuleFromTcpEntry(ptcpentry: *const MIB_TCPROW_OWNER_MODULE, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut ::core::ffi::c_void, pdwsize: *mut u32) -> u32; @@ -349,7 +346,7 @@ extern "system" { pub fn Icmp6ParseReplies(replybuffer: *mut ::core::ffi::c_void, replysize: u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`, `\"Win32_Foundation\"`, `\"Win32_Networking_WinSock\"`, `\"Win32_System_WindowsProgramming\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock", feature = "Win32_System_WindowsProgramming"))] - pub fn Icmp6SendEcho2(icmphandle: IcmpHandle, event: super::super::Foundation::HANDLE, apcroutine: super::super::System::WindowsProgramming::PIO_APC_ROUTINE, apccontext: *const ::core::ffi::c_void, sourceaddress: *const super::super::Networking::WinSock::SOCKADDR_IN6, destinationaddress: *const super::super::Networking::WinSock::SOCKADDR_IN6, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const ip_option_information, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; + pub fn Icmp6SendEcho2(icmphandle: IcmpHandle, event: super::super::Foundation::HANDLE, apcroutine: super::super::System::WindowsProgramming::PIO_APC_ROUTINE, apccontext: *const ::core::ffi::c_void, sourceaddress: *const super::super::Networking::WinSock::SOCKADDR_IN6, destinationaddress: *const super::super::Networking::WinSock::SOCKADDR_IN6, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const IP_OPTION_INFORMATION, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn IcmpCloseHandle(icmphandle: IcmpHandle) -> super::super::Foundation::BOOL; @@ -358,13 +355,13 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] pub fn IcmpParseReplies(replybuffer: *mut ::core::ffi::c_void, replysize: u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] - pub fn IcmpSendEcho(icmphandle: IcmpHandle, destinationaddress: u32, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const ip_option_information, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; + pub fn IcmpSendEcho(icmphandle: IcmpHandle, destinationaddress: u32, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const IP_OPTION_INFORMATION, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`, `\"Win32_Foundation\"`, `\"Win32_System_WindowsProgramming\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_WindowsProgramming"))] - pub fn IcmpSendEcho2(icmphandle: IcmpHandle, event: super::super::Foundation::HANDLE, apcroutine: super::super::System::WindowsProgramming::PIO_APC_ROUTINE, apccontext: *const ::core::ffi::c_void, destinationaddress: u32, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const ip_option_information, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; + pub fn IcmpSendEcho2(icmphandle: IcmpHandle, event: super::super::Foundation::HANDLE, apcroutine: super::super::System::WindowsProgramming::PIO_APC_ROUTINE, apccontext: *const ::core::ffi::c_void, destinationaddress: u32, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const IP_OPTION_INFORMATION, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`, `\"Win32_Foundation\"`, `\"Win32_System_WindowsProgramming\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_WindowsProgramming"))] - pub fn IcmpSendEcho2Ex(icmphandle: IcmpHandle, event: super::super::Foundation::HANDLE, apcroutine: super::super::System::WindowsProgramming::PIO_APC_ROUTINE, apccontext: *const ::core::ffi::c_void, sourceaddress: u32, destinationaddress: u32, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const ip_option_information, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; + pub fn IcmpSendEcho2Ex(icmphandle: IcmpHandle, event: super::super::Foundation::HANDLE, apcroutine: super::super::System::WindowsProgramming::PIO_APC_ROUTINE, apccontext: *const ::core::ffi::c_void, sourceaddress: u32, destinationaddress: u32, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const IP_OPTION_INFORMATION, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`, `\"Win32_Foundation\"`, `\"Win32_NetworkManagement_Ndis\"`, `\"Win32_Networking_WinSock\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] pub fn InitializeIpForwardEntry(row: *mut MIB_IPFORWARD_ROW2); @@ -384,7 +381,7 @@ extern "system" { pub fn LookupPersistentUdpPortReservation(startport: u16, numberofports: u16, token: *mut u64) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn NhpAllocateAndGetInterfaceInfoFromStack(pptable: *mut *mut ip_interface_name_info_w2ksp1, pdwcount: *mut u32, border: super::super::Foundation::BOOL, hheap: super::super::Foundation::HANDLE, dwflags: u32) -> u32; + pub fn NhpAllocateAndGetInterfaceInfoFromStack(pptable: *mut *mut IP_INTERFACE_NAME_INFO_W2KSP1, pdwcount: *mut u32, border: super::super::Foundation::BOOL, hheap: super::super::Foundation::HANDLE, dwflags: u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] pub fn NotifyAddrChange(handle: *mut super::super::Foundation::HANDLE, overlapped: *const super::super::System::IO::OVERLAPPED) -> u32; @@ -1760,6 +1757,18 @@ pub const UDP_TABLE_OWNER_PID: UDP_TABLE_CLASS = 1i32; pub const UDP_TABLE_OWNER_MODULE: UDP_TABLE_CLASS = 2i32; #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +pub struct ARP_SEND_REPLY { + pub DestAddress: u32, + pub SrcAddress: u32, +} +impl ::core::marker::Copy for ARP_SEND_REPLY {} +impl ::core::clone::Clone for ARP_SEND_REPLY { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] pub struct DNS_DOH_SERVER_SETTINGS { pub Template: ::windows_sys::core::PWSTR, pub Flags: u64, @@ -1910,6 +1919,56 @@ impl ::core::clone::Clone for FIXED_INFO_W2KSP1 { pub type HIFTIMESTAMPCHANGE = isize; #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +pub struct ICMPV6_ECHO_REPLY_LH { + pub Address: IPV6_ADDRESS_EX, + pub Status: u32, + pub RoundTripTime: u32, +} +impl ::core::marker::Copy for ICMPV6_ECHO_REPLY_LH {} +impl ::core::clone::Clone for ICMPV6_ECHO_REPLY_LH { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +pub struct ICMP_ECHO_REPLY { + pub Address: u32, + pub Status: u32, + pub RoundTripTime: u32, + pub DataSize: u16, + pub Reserved: u16, + pub Data: *mut ::core::ffi::c_void, + pub Options: IP_OPTION_INFORMATION, +} +impl ::core::marker::Copy for ICMP_ECHO_REPLY {} +impl ::core::clone::Clone for ICMP_ECHO_REPLY { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub struct ICMP_ECHO_REPLY32 { + pub Address: u32, + pub Status: u32, + pub RoundTripTime: u32, + pub DataSize: u16, + pub Reserved: u16, + pub Data: *mut ::core::ffi::c_void, + pub Options: IP_OPTION_INFORMATION32, +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::marker::Copy for ICMP_ECHO_REPLY32 {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::clone::Clone for ICMP_ECHO_REPLY32 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] pub struct INTERFACE_HARDWARE_CROSSTIMESTAMP { pub SystemTimestamp1: u64, pub HardwareClockTimestamp: u64, @@ -2671,6 +2730,22 @@ impl ::core::clone::Clone for IP_INTERFACE_INFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +pub struct IP_INTERFACE_NAME_INFO_W2KSP1 { + pub Index: u32, + pub MediaType: u32, + pub ConnectionType: u8, + pub AccessType: u8, + pub DeviceGuid: ::windows_sys::core::GUID, + pub InterfaceGuid: ::windows_sys::core::GUID, +} +impl ::core::marker::Copy for IP_INTERFACE_NAME_INFO_W2KSP1 {} +impl ::core::clone::Clone for IP_INTERFACE_NAME_INFO_W2KSP1 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] pub struct IP_MCAST_COUNTER_INFO { pub InMcastOctets: u64, pub OutMcastOctets: u64, @@ -2684,6 +2759,39 @@ impl ::core::clone::Clone for IP_MCAST_COUNTER_INFO { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +pub struct IP_OPTION_INFORMATION { + pub Ttl: u8, + pub Tos: u8, + pub Flags: u8, + pub OptionsSize: u8, + pub OptionsData: *mut u8, +} +impl ::core::marker::Copy for IP_OPTION_INFORMATION {} +impl ::core::clone::Clone for IP_OPTION_INFORMATION { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub struct IP_OPTION_INFORMATION32 { + pub Ttl: u8, + pub Tos: u8, + pub Flags: u8, + pub OptionsSize: u8, + pub OptionsData: *mut u8, +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::marker::Copy for IP_OPTION_INFORMATION32 {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::clone::Clone for IP_OPTION_INFORMATION32 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct IP_PER_ADAPTER_INFO_W2KSP1 { @@ -5143,123 +5251,12 @@ impl ::core::clone::Clone for TCP_ESTATS_SYN_OPTS_ROS_v0 { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -pub struct arp_send_reply { - pub DestAddress: u32, - pub SrcAddress: u32, -} -impl ::core::marker::Copy for arp_send_reply {} -impl ::core::clone::Clone for arp_send_reply { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -pub struct icmp_echo_reply { - pub Address: u32, - pub Status: u32, - pub RoundTripTime: u32, - pub DataSize: u16, - pub Reserved: u16, - pub Data: *mut ::core::ffi::c_void, - pub Options: ip_option_information, -} -impl ::core::marker::Copy for icmp_echo_reply {} -impl ::core::clone::Clone for icmp_echo_reply { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub struct icmp_echo_reply32 { - pub Address: u32, - pub Status: u32, - pub RoundTripTime: u32, - pub DataSize: u16, - pub Reserved: u16, - pub Data: *mut ::core::ffi::c_void, - pub Options: ip_option_information32, -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::marker::Copy for icmp_echo_reply32 {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::clone::Clone for icmp_echo_reply32 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -pub struct icmpv6_echo_reply_lh { - pub Address: IPV6_ADDRESS_EX, - pub Status: u32, - pub RoundTripTime: u32, -} -impl ::core::marker::Copy for icmpv6_echo_reply_lh {} -impl ::core::clone::Clone for icmpv6_echo_reply_lh { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -pub struct ip_interface_name_info_w2ksp1 { - pub Index: u32, - pub MediaType: u32, - pub ConnectionType: u8, - pub AccessType: u8, - pub DeviceGuid: ::windows_sys::core::GUID, - pub InterfaceGuid: ::windows_sys::core::GUID, -} -impl ::core::marker::Copy for ip_interface_name_info_w2ksp1 {} -impl ::core::clone::Clone for ip_interface_name_info_w2ksp1 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -pub struct ip_option_information { - pub Ttl: u8, - pub Tos: u8, - pub Flags: u8, - pub OptionsSize: u8, - pub OptionsData: *mut u8, -} -impl ::core::marker::Copy for ip_option_information {} -impl ::core::clone::Clone for ip_option_information { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub struct ip_option_information32 { - pub Ttl: u8, - pub Tos: u8, - pub Flags: u8, - pub OptionsSize: u8, - pub OptionsData: *mut u8, -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::marker::Copy for ip_option_information32 {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::clone::Clone for ip_option_information32 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -pub struct tcp_reserve_port_range { +pub struct TCP_RESERVE_PORT_RANGE { pub UpperRange: u16, pub LowerRange: u16, } -impl ::core::marker::Copy for tcp_reserve_port_range {} -impl ::core::clone::Clone for tcp_reserve_port_range { +impl ::core::marker::Copy for TCP_RESERVE_PORT_RANGE {} +impl ::core::clone::Clone for TCP_RESERVE_PORT_RANGE { fn clone(&self) -> Self { *self } 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 5202ac0b40..8dd12df59d 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs @@ -1,72 +1,11 @@ #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] - pub fn LogErrorW(dwmessageid: u32, cnumberofsubstrings: u32, plpwssubstrings: *const ::windows_sys::core::PWSTR, dwerrorcode: u32); - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] - pub fn LogEventW(weventtype: u32, dwmessageid: u32, cnumberofsubstrings: u32, plpwssubstrings: *const ::windows_sys::core::PWSTR); - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn NetAddServiceAccount(servername: ::windows_sys::core::PCWSTR, accountname: ::windows_sys::core::PCWSTR, password: ::windows_sys::core::PCWSTR, flags: u32) -> super::super::Foundation::NTSTATUS; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn NetEnumerateServiceAccounts(servername: ::windows_sys::core::PCWSTR, flags: u32, accountscount: *mut u32, accounts: *mut *mut *mut u16) -> super::super::Foundation::NTSTATUS; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn NetIsServiceAccount(servername: ::windows_sys::core::PCWSTR, accountname: ::windows_sys::core::PCWSTR, isservice: *mut super::super::Foundation::BOOL) -> super::super::Foundation::NTSTATUS; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn NetQueryServiceAccount(servername: ::windows_sys::core::PCWSTR, accountname: ::windows_sys::core::PCWSTR, infolevel: u32, buffer: *mut *mut u8) -> super::super::Foundation::NTSTATUS; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn NetRemoveServiceAccount(servername: ::windows_sys::core::PCWSTR, accountname: ::windows_sys::core::PCWSTR, flags: u32) -> super::super::Foundation::NTSTATUS; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] - pub fn RouterAssert(pszfailedassertion: ::windows_sys::core::PCSTR, pszfilename: ::windows_sys::core::PCSTR, dwlinenumber: u32, pszmessage: ::windows_sys::core::PCSTR); - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] - pub fn RouterGetErrorStringA(dwerrorcode: u32, lplpszerrorstring: *mut ::windows_sys::core::PSTR) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] - pub fn RouterGetErrorStringW(dwerrorcode: u32, lplpwszerrorstring: *mut ::windows_sys::core::PWSTR) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterLogDeregisterA(hloghandle: super::super::Foundation::HANDLE); - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterLogDeregisterW(hloghandle: super::super::Foundation::HANDLE); - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterLogEventA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows_sys::core::PSTR, dwerrorcode: u32); - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterLogEventDataA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows_sys::core::PSTR, dwdatabytes: u32, lpdatabytes: *mut u8); - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterLogEventDataW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows_sys::core::PWSTR, dwdatabytes: u32, lpdatabytes: *mut u8); #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn RouterLogEventExA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: ::windows_sys::core::PCSTR); #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn RouterLogEventExW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: ::windows_sys::core::PCWSTR); - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterLogEventStringA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows_sys::core::PSTR, dwerrorcode: u32, dwerrorindex: u32); - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterLogEventStringW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows_sys::core::PWSTR, dwerrorcode: u32, dwerrorindex: u32); - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterLogEventValistExA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: ::windows_sys::core::PCSTR, arglist: *mut i8); - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterLogEventValistExW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: ::windows_sys::core::PCWSTR, arglist: *mut i8); - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterLogEventW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows_sys::core::PWSTR, dwerrorcode: u32); - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterLogRegisterA(lpszsource: ::windows_sys::core::PCSTR) -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RouterLogRegisterW(lpszsource: ::windows_sys::core::PCWSTR) -> super::super::Foundation::HANDLE; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn TracePrintfA(dwtraceid: u32, lpszformat: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] @@ -85,8 +24,12 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn LogErrorA(dwmessageid: u32, cnumberofsubstrings: u32, plpwssubstrings: *const ::windows_sys::core::PSTR, dwerrorcode: u32); #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] + pub fn LogErrorW(dwmessageid: u32, cnumberofsubstrings: u32, plpwssubstrings: *const ::windows_sys::core::PWSTR, dwerrorcode: u32); + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn LogEventA(weventtype: u32, dwmessageid: u32, cnumberofsubstrings: u32, plpwssubstrings: *const ::windows_sys::core::PSTR); #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] + pub fn LogEventW(weventtype: u32, dwmessageid: u32, cnumberofsubstrings: u32, plpwssubstrings: *const ::windows_sys::core::PWSTR); + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn MprSetupProtocolEnum(dwtransportid: u32, lplpbuffer: *mut *mut u8, lpdwentriesread: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn MprSetupProtocolFree(lpbuffer: *mut ::core::ffi::c_void) -> u32; @@ -104,6 +47,9 @@ extern "system" { pub fn NetAccessSetInfo(servername: ::windows_sys::core::PCWSTR, resource: ::windows_sys::core::PCWSTR, level: u32, buf: *const u8, parm_err: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn NetAddAlternateComputerName(server: ::windows_sys::core::PCWSTR, alternatename: ::windows_sys::core::PCWSTR, domainaccount: ::windows_sys::core::PCWSTR, domainaccountpassword: ::windows_sys::core::PCWSTR, reserved: u32) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn NetAddServiceAccount(servername: ::windows_sys::core::PCWSTR, accountname: ::windows_sys::core::PCWSTR, password: ::windows_sys::core::PCWSTR, flags: u32) -> super::super::Foundation::NTSTATUS; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn NetAlertRaise(alerttype: ::windows_sys::core::PCWSTR, buffer: *const ::core::ffi::c_void, buffersize: u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] @@ -132,6 +78,9 @@ extern "system" { pub fn NetCreateProvisioningPackage(pprovisioningparams: *const NETSETUP_PROVISIONING_PARAMS, pppackagebindata: *mut *mut u8, pdwpackagebindatasize: *mut u32, pppackagetextdata: *mut ::windows_sys::core::PWSTR) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn NetEnumerateComputerNames(server: ::windows_sys::core::PCWSTR, nametype: NET_COMPUTER_NAME_TYPE, reserved: u32, entrycount: *mut u32, computernames: *mut *mut ::windows_sys::core::PWSTR) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn NetEnumerateServiceAccounts(servername: ::windows_sys::core::PCWSTR, flags: u32, accountscount: *mut u32, accounts: *mut *mut *mut u16) -> super::super::Foundation::NTSTATUS; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn NetErrorLogClear(uncservername: ::windows_sys::core::PCWSTR, backupfile: ::windows_sys::core::PCWSTR, reserved: *const u8) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] @@ -172,6 +121,9 @@ extern "system" { pub fn NetGroupSetInfo(servername: ::windows_sys::core::PCWSTR, groupname: ::windows_sys::core::PCWSTR, level: u32, buf: *const u8, parm_err: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn NetGroupSetUsers(servername: ::windows_sys::core::PCWSTR, groupname: ::windows_sys::core::PCWSTR, level: u32, buf: *const u8, totalentries: u32) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn NetIsServiceAccount(servername: ::windows_sys::core::PCWSTR, accountname: ::windows_sys::core::PCWSTR, isservice: *mut super::super::Foundation::BOOL) -> super::super::Foundation::NTSTATUS; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn NetJoinDomain(lpserver: ::windows_sys::core::PCWSTR, lpdomain: ::windows_sys::core::PCWSTR, lpmachineaccountou: ::windows_sys::core::PCWSTR, lpaccount: ::windows_sys::core::PCWSTR, lppassword: ::windows_sys::core::PCWSTR, fjoinoptions: NET_JOIN_DOMAIN_JOIN_OPTIONS) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] @@ -212,12 +164,18 @@ extern "system" { pub fn NetProvisionComputerAccount(lpdomain: ::windows_sys::core::PCWSTR, lpmachinename: ::windows_sys::core::PCWSTR, lpmachineaccountou: ::windows_sys::core::PCWSTR, lpdcname: ::windows_sys::core::PCWSTR, dwoptions: NETSETUP_PROVISION, pprovisionbindata: *mut *mut u8, pdwprovisionbindatasize: *mut u32, pprovisiontextdata: *mut ::windows_sys::core::PWSTR) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn NetQueryDisplayInformation(servername: ::windows_sys::core::PCWSTR, level: u32, index: u32, entriesrequested: u32, preferredmaximumlength: u32, returnedentrycount: *mut u32, sortedbuffer: *mut *mut ::core::ffi::c_void) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn NetQueryServiceAccount(servername: ::windows_sys::core::PCWSTR, accountname: ::windows_sys::core::PCWSTR, infolevel: u32, buffer: *mut *mut u8) -> super::super::Foundation::NTSTATUS; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn NetRemoteComputerSupports(uncservername: ::windows_sys::core::PCWSTR, optionswanted: NET_REMOTE_COMPUTER_SUPPORTS_OPTIONS, optionssupported: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn NetRemoteTOD(uncservername: ::windows_sys::core::PCWSTR, bufferptr: *mut *mut u8) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn NetRemoveAlternateComputerName(server: ::windows_sys::core::PCWSTR, alternatename: ::windows_sys::core::PCWSTR, domainaccount: ::windows_sys::core::PCWSTR, domainaccountpassword: ::windows_sys::core::PCWSTR, reserved: u32) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn NetRemoveServiceAccount(servername: ::windows_sys::core::PCWSTR, accountname: ::windows_sys::core::PCWSTR, flags: u32) -> super::super::Foundation::NTSTATUS; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn NetRenameMachineInDomain(lpserver: ::windows_sys::core::PCWSTR, lpnewmachinename: ::windows_sys::core::PCWSTR, lpaccount: ::windows_sys::core::PCWSTR, lppassword: ::windows_sys::core::PCWSTR, frenameoptions: u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] @@ -347,6 +305,48 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn NetWkstaUserSetInfo(reserved: ::windows_sys::core::PCWSTR, level: u32, buf: *const u8, parm_err: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] + pub fn RouterAssert(pszfailedassertion: ::windows_sys::core::PCSTR, pszfilename: ::windows_sys::core::PCSTR, dwlinenumber: u32, pszmessage: ::windows_sys::core::PCSTR); + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] + pub fn RouterGetErrorStringA(dwerrorcode: u32, lplpszerrorstring: *mut ::windows_sys::core::PSTR) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] + pub fn RouterGetErrorStringW(dwerrorcode: u32, lplpwszerrorstring: *mut ::windows_sys::core::PWSTR) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterLogDeregisterA(hloghandle: super::super::Foundation::HANDLE); + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterLogDeregisterW(hloghandle: super::super::Foundation::HANDLE); + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterLogEventA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows_sys::core::PSTR, dwerrorcode: u32); + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterLogEventDataA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows_sys::core::PSTR, dwdatabytes: u32, lpdatabytes: *mut u8); + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterLogEventDataW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows_sys::core::PWSTR, dwdatabytes: u32, lpdatabytes: *mut u8); + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterLogEventStringA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows_sys::core::PSTR, dwerrorcode: u32, dwerrorindex: u32); + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterLogEventStringW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows_sys::core::PWSTR, dwerrorcode: u32, dwerrorindex: u32); + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterLogEventValistExA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: ::windows_sys::core::PCSTR, arglist: *mut i8); + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterLogEventValistExW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: ::windows_sys::core::PCWSTR, arglist: *mut i8); + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterLogEventW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows_sys::core::PWSTR, dwerrorcode: u32); + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterLogRegisterA(lpszsource: ::windows_sys::core::PCSTR) -> super::super::Foundation::HANDLE; + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn RouterLogRegisterW(lpszsource: ::windows_sys::core::PCWSTR) -> super::super::Foundation::HANDLE; + #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn SetNetScheduleAccountInformation(pwszservername: ::windows_sys::core::PCWSTR, pwszaccount: ::windows_sys::core::PCWSTR, pwszpassword: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub fn TraceDeregisterA(dwtraceid: u32) -> u32; @@ -4879,6 +4879,40 @@ pub const OBO_COMPONENT: OBO_TOKEN_TYPE = 2i32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub const OBO_SOFTWARE: OBO_TOKEN_TYPE = 3i32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub type RASCON_UIINFO_FLAGS = i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_VPN: RASCON_UIINFO_FLAGS = 1i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_DEMAND_DIAL: RASCON_UIINFO_FLAGS = 2i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_NOT_ADMIN: RASCON_UIINFO_FLAGS = 4i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv4_STATICADDRESS: RASCON_UIINFO_FLAGS = 8i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv4_NAME_SERVERS: RASCON_UIINFO_FLAGS = 16i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv4_REMOTE_GATEWAY: RASCON_UIINFO_FLAGS = 32i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv4_EXPLICIT_METRIC: RASCON_UIINFO_FLAGS = 64i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_HEADER_COMPRESSION: RASCON_UIINFO_FLAGS = 128i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_DISABLE_REGISTER_DNS: RASCON_UIINFO_FLAGS = 256i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_PRIVATE_DNS_SUFFIX: RASCON_UIINFO_FLAGS = 512i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_ENABLE_NBT: RASCON_UIINFO_FLAGS = 1024i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv6_STATICADDRESS: RASCON_UIINFO_FLAGS = 2048i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv6_NAME_SERVERS: RASCON_UIINFO_FLAGS = 4096i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv6_REMOTE_GATEWAY: RASCON_UIINFO_FLAGS = 8192i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv6_EXPLICIT_METRIC: RASCON_UIINFO_FLAGS = 16384i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_DISABLE_CLASS_BASED_ROUTE: RASCON_UIINFO_FLAGS = 32768i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub type SERVER_INFO_HIDDEN = u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub const SV_VISIBLE: SERVER_INFO_HIDDEN = 0u32; @@ -4964,40 +4998,6 @@ pub const USE_DISKDEV: USE_INFO_ASG_TYPE = 0u32; pub const USE_SPOOLDEV: USE_INFO_ASG_TYPE = 1u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub const USE_IPC: USE_INFO_ASG_TYPE = 3u32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub type tagRASCON_IPUI_FLAGS = i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_VPN: tagRASCON_IPUI_FLAGS = 1i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_DEMAND_DIAL: tagRASCON_IPUI_FLAGS = 2i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_NOT_ADMIN: tagRASCON_IPUI_FLAGS = 4i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv4_STATICADDRESS: tagRASCON_IPUI_FLAGS = 8i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv4_NAME_SERVERS: tagRASCON_IPUI_FLAGS = 16i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv4_REMOTE_GATEWAY: tagRASCON_IPUI_FLAGS = 32i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv4_EXPLICIT_METRIC: tagRASCON_IPUI_FLAGS = 64i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_HEADER_COMPRESSION: tagRASCON_IPUI_FLAGS = 128i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_DISABLE_REGISTER_DNS: tagRASCON_IPUI_FLAGS = 256i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_PRIVATE_DNS_SUFFIX: tagRASCON_IPUI_FLAGS = 512i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_ENABLE_NBT: tagRASCON_IPUI_FLAGS = 1024i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv6_STATICADDRESS: tagRASCON_IPUI_FLAGS = 2048i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv6_NAME_SERVERS: tagRASCON_IPUI_FLAGS = 4096i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv6_REMOTE_GATEWAY: tagRASCON_IPUI_FLAGS = 8192i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv6_EXPLICIT_METRIC: tagRASCON_IPUI_FLAGS = 16384i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_DISABLE_CLASS_BASED_ROUTE: tagRASCON_IPUI_FLAGS = 32768i32; #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub struct ACCESS_INFO_0 { 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 c196424604..ceaf30383b 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/QoS/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/QoS/mod.rs @@ -1416,6 +1416,51 @@ impl ::core::clone::Clone for FLOWDESCRIPTOR { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] #[cfg(feature = "Win32_Networking_WinSock")] +pub struct FLOW_DESC { + pub u1: FLOW_DESC_0, + pub u2: FLOW_DESC_1, +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::marker::Copy for FLOW_DESC {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::clone::Clone for FLOW_DESC { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] +#[cfg(feature = "Win32_Networking_WinSock")] +pub union FLOW_DESC_0 { + pub stspec: *mut SENDER_TSPEC, + pub isflow: *mut IS_FLOWSPEC, +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::marker::Copy for FLOW_DESC_0 {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::clone::Clone for FLOW_DESC_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] +#[cfg(feature = "Win32_Networking_WinSock")] +pub union FLOW_DESC_1 { + pub stemp: *mut FILTER_SPEC, + pub fspec: *mut FILTER_SPEC, +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::marker::Copy for FLOW_DESC_1 {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::clone::Clone for FLOW_DESC_1 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] +#[cfg(feature = "Win32_Networking_WinSock")] pub struct Filter_Spec_IPv4 { pub filt_ipaddr: super::super::Networking::WinSock::IN_ADDR, pub filt_unused: u16, @@ -1782,6 +1827,23 @@ impl ::core::clone::Clone for IntServTspecBody_0 { *self } } +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] +#[cfg(feature = "Win32_Networking_WinSock")] +pub struct LPMIPTABLE { + pub ulIfIndex: u32, + pub MediaType: u32, + pub IfIpAddr: super::super::Networking::WinSock::IN_ADDR, + pub IfNetMask: super::super::Networking::WinSock::IN_ADDR, +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::marker::Copy for LPMIPTABLE {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::clone::Clone for LPMIPTABLE { + fn clone(&self) -> Self { + *self + } +} pub type LPM_HANDLE = isize; #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] @@ -1828,6 +1890,19 @@ impl ::core::clone::Clone for POLICY_DATA { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub struct POLICY_DECISION { + pub lpvResult: u32, + pub wPolicyErrCode: u16, + pub wPolicyErrValue: u16, +} +impl ::core::marker::Copy for POLICY_DECISION {} +impl ::core::clone::Clone for POLICY_DECISION { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] pub struct POLICY_ELEMENT { pub usPeLength: u16, pub usPeType: u16, @@ -2218,7 +2293,7 @@ pub struct RSVP_MSG_OBJS { pub pResvStyle: *mut RESV_STYLE, pub pRsvpScope: *mut RSVP_SCOPE, pub FlowDescCount: i32, - pub pFlowDescs: *mut flow_desc, + pub pFlowDescs: *mut FLOW_DESC, pub PdObjectCount: i32, pub ppPdObjects: *mut *mut POLICY_DATA, pub pErrorSpec: *mut ERROR_SPEC, @@ -2389,6 +2464,102 @@ impl ::core::clone::Clone for SENDER_TSPEC { *self } } +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub struct SIPAEVENT_KSR_SIGNATURE_PAYLOAD { + pub SignAlgID: u32, + pub SignatureLength: u32, + pub Signature: [u8; 1], +} +impl ::core::marker::Copy for SIPAEVENT_KSR_SIGNATURE_PAYLOAD {} +impl ::core::clone::Clone for SIPAEVENT_KSR_SIGNATURE_PAYLOAD { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub struct SIPAEVENT_REVOCATION_LIST_PAYLOAD { + pub CreationTime: i64, + pub DigestLength: u32, + pub HashAlgID: u16, + pub Digest: [u8; 1], +} +impl ::core::marker::Copy for SIPAEVENT_REVOCATION_LIST_PAYLOAD {} +impl ::core::clone::Clone for SIPAEVENT_REVOCATION_LIST_PAYLOAD { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub struct SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { + pub PayloadVersion: u32, + pub VarDataOffset: u32, + pub HashAlgID: u16, + pub DigestLength: u16, + pub Options: u32, + pub SignersCount: u32, + pub VarData: [u8; 1], +} +impl ::core::marker::Copy for SIPAEVENT_SBCP_INFO_PAYLOAD_V1 {} +impl ::core::clone::Clone for SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub struct SIPAEVENT_SI_POLICY_PAYLOAD { + pub PolicyVersion: u64, + pub PolicyNameLength: u16, + pub HashAlgID: u16, + pub DigestLength: u32, + pub VarLengthData: [u8; 1], +} +impl ::core::marker::Copy for SIPAEVENT_SI_POLICY_PAYLOAD {} +impl ::core::clone::Clone for SIPAEVENT_SI_POLICY_PAYLOAD { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub struct SIPAEVENT_VSM_IDK_INFO_PAYLOAD { + pub KeyAlgID: u32, + pub Anonymous: SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0, +} +impl ::core::marker::Copy for SIPAEVENT_VSM_IDK_INFO_PAYLOAD {} +impl ::core::clone::Clone for SIPAEVENT_VSM_IDK_INFO_PAYLOAD { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub union SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { + pub RsaKeyInfo: SIPAEVENT_VSM_IDK_RSA_INFO, +} +impl ::core::marker::Copy for SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 {} +impl ::core::clone::Clone for SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub struct SIPAEVENT_VSM_IDK_RSA_INFO { + pub KeyBitLength: u32, + pub PublicExpLengthBytes: u32, + pub ModulusSizeBytes: u32, + pub PublicKeyData: [u8; 1], +} +impl ::core::marker::Copy for SIPAEVENT_VSM_IDK_RSA_INFO {} +impl ::core::clone::Clone for SIPAEVENT_VSM_IDK_RSA_INFO { + fn clone(&self) -> Self { + *self + } +} #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] #[cfg(feature = "Win32_Networking_WinSock")] @@ -2564,179 +2735,8 @@ impl ::core::clone::Clone for WBCL_LogHdr { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] -#[cfg(feature = "Win32_Networking_WinSock")] -pub struct flow_desc { - pub u1: flow_desc_0, - pub u2: flow_desc_1, -} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::marker::Copy for flow_desc {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::clone::Clone for flow_desc { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] -#[cfg(feature = "Win32_Networking_WinSock")] -pub union flow_desc_0 { - pub stspec: *mut SENDER_TSPEC, - pub isflow: *mut IS_FLOWSPEC, -} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::marker::Copy for flow_desc_0 {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::clone::Clone for flow_desc_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] -#[cfg(feature = "Win32_Networking_WinSock")] -pub union flow_desc_1 { - pub stemp: *mut FILTER_SPEC, - pub fspec: *mut FILTER_SPEC, -} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::marker::Copy for flow_desc_1 {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::clone::Clone for flow_desc_1 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] -#[cfg(feature = "Win32_Networking_WinSock")] -pub struct lpmiptable { - pub ulIfIndex: u32, - pub MediaType: u32, - pub IfIpAddr: super::super::Networking::WinSock::IN_ADDR, - pub IfNetMask: super::super::Networking::WinSock::IN_ADDR, -} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::marker::Copy for lpmiptable {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::clone::Clone for lpmiptable { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct policy_decision { - pub lpvResult: u32, - pub wPolicyErrCode: u16, - pub wPolicyErrValue: u16, -} -impl ::core::marker::Copy for policy_decision {} -impl ::core::clone::Clone for policy_decision { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct tag_SIPAEVENT_KSR_SIGNATURE_PAYLOAD { - pub SignAlgID: u32, - pub SignatureLength: u32, - pub Signature: [u8; 1], -} -impl ::core::marker::Copy for tag_SIPAEVENT_KSR_SIGNATURE_PAYLOAD {} -impl ::core::clone::Clone for tag_SIPAEVENT_KSR_SIGNATURE_PAYLOAD { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct tag_SIPAEVENT_REVOCATION_LIST_PAYLOAD { - pub CreationTime: i64, - pub DigestLength: u32, - pub HashAlgID: u16, - pub Digest: [u8; 1], -} -impl ::core::marker::Copy for tag_SIPAEVENT_REVOCATION_LIST_PAYLOAD {} -impl ::core::clone::Clone for tag_SIPAEVENT_REVOCATION_LIST_PAYLOAD { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct tag_SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { - pub PayloadVersion: u32, - pub VarDataOffset: u32, - pub HashAlgID: u16, - pub DigestLength: u16, - pub Options: u32, - pub SignersCount: u32, - pub VarData: [u8; 1], -} -impl ::core::marker::Copy for tag_SIPAEVENT_SBCP_INFO_PAYLOAD_V1 {} -impl ::core::clone::Clone for tag_SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct tag_SIPAEVENT_SI_POLICY_PAYLOAD { - pub PolicyVersion: u64, - pub PolicyNameLength: u16, - pub HashAlgID: u16, - pub DigestLength: u32, - pub VarLengthData: [u8; 1], -} -impl ::core::marker::Copy for tag_SIPAEVENT_SI_POLICY_PAYLOAD {} -impl ::core::clone::Clone for tag_SIPAEVENT_SI_POLICY_PAYLOAD { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD { - pub KeyAlgID: u32, - pub Anonymous: tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0, -} -impl ::core::marker::Copy for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD {} -impl ::core::clone::Clone for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub union tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { - pub RsaKeyInfo: tag_SIPAEVENT_VSM_IDK_RSA_INFO, -} -impl ::core::marker::Copy for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 {} -impl ::core::clone::Clone for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct tag_SIPAEVENT_VSM_IDK_RSA_INFO { - pub KeyBitLength: u32, - pub PublicExpLengthBytes: u32, - pub ModulusSizeBytes: u32, - pub PublicKeyData: [u8; 1], -} -impl ::core::marker::Copy for tag_SIPAEVENT_VSM_IDK_RSA_INFO {} -impl ::core::clone::Clone for tag_SIPAEVENT_VSM_IDK_RSA_INFO { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub type CBADMITRESULT = ::core::option::Option *mut u32>; +pub type CBADMITRESULT = ::core::option::Option *mut u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] pub type CBGETRSVPOBJECTS = ::core::option::Option *mut u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/Rras/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/Rras/mod.rs index 82dc5c15c0..e963e961f7 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/Rras/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/Rras/mod.rs @@ -1,5 +1,5 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { +extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn MgmAddGroupMembershipEntry(hprotocol: super::super::Foundation::HANDLE, dwsourceaddr: u32, dwsourcemask: u32, dwgroupaddr: u32, dwgroupmask: u32, dwifindex: u32, dwifnexthopipaddr: u32, dwflags: u32) -> u32; @@ -45,15 +45,6 @@ extern "cdecl" { #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn MgmTakeInterfaceOwnership(hprotocol: super::super::Foundation::HANDLE, dwifindex: u32, dwifnexthopaddr: u32) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] - #[cfg(feature = "Win32_Networking_WinSock")] - pub fn RtmConvertIpv6AddressAndLengthToNetAddress(pnetaddress: *mut RTM_NET_ADDRESS, address: super::super::Networking::WinSock::IN6_ADDR, dwlength: u32, dwaddresssize: u32) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] - #[cfg(feature = "Win32_Networking_WinSock")] - pub fn RtmConvertNetAddressToIpv6AddressAndLength(pnetaddress: *mut RTM_NET_ADDRESS, paddress: *mut super::super::Networking::WinSock::IN6_ADDR, plength: *mut u32, dwaddresssize: u32) -> u32; -} -#[cfg_attr(windows, link(name = "windows"))] -extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`*"] pub fn MprAdminBufferFree(pbuffer: *const ::core::ffi::c_void) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Foundation\"`*"] @@ -583,6 +574,12 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn RtmBlockMethods(rtmreghandle: isize, targethandle: super::super::Foundation::HANDLE, targettype: u8, blockingflag: u32) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] + #[cfg(feature = "Win32_Networking_WinSock")] + pub fn RtmConvertIpv6AddressAndLengthToNetAddress(pnetaddress: *mut RTM_NET_ADDRESS, address: super::super::Networking::WinSock::IN6_ADDR, dwlength: u32, dwaddresssize: u32) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] + #[cfg(feature = "Win32_Networking_WinSock")] + pub fn RtmConvertNetAddressToIpv6AddressAndLength(pnetaddress: *mut RTM_NET_ADDRESS, paddress: *mut super::super::Networking::WinSock::IN6_ADDR, plength: *mut u32, dwaddresssize: u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`*"] pub fn RtmCreateDestEnum(rtmreghandle: isize, targetviews: u32, enumflags: u32, netaddress: *mut RTM_NET_ADDRESS, protocolid: u32, rtmenumhandle: *mut isize) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`*"] @@ -3248,11 +3245,31 @@ impl ::core::clone::Clone for MPR_TRANSPORT_0 { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] #[cfg(feature = "Win32_Networking_WinSock")] +pub struct MPR_VPN_TRAFFIC_SELECTOR { + pub r#type: MPR_VPN_TS_TYPE, + pub protocolId: u8, + pub portStart: u16, + pub portEnd: u16, + pub tsPayloadId: u16, + pub addrStart: VPN_TS_IP_ADDRESS, + pub addrEnd: VPN_TS_IP_ADDRESS, +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::marker::Copy for MPR_VPN_TRAFFIC_SELECTOR {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::clone::Clone for MPR_VPN_TRAFFIC_SELECTOR { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] +#[cfg(feature = "Win32_Networking_WinSock")] pub struct MPR_VPN_TRAFFIC_SELECTORS { pub numTsi: u32, pub numTsr: u32, - pub tsI: *mut _MPR_VPN_SELECTOR, - pub tsR: *mut _MPR_VPN_SELECTOR, + pub tsI: *mut MPR_VPN_TRAFFIC_SELECTOR, + pub tsR: *mut MPR_VPN_TRAFFIC_SELECTOR, } #[cfg(feature = "Win32_Networking_WinSock")] impl ::core::marker::Copy for MPR_VPN_TRAFFIC_SELECTORS {} @@ -5415,26 +5432,6 @@ impl ::core::clone::Clone for VPN_TS_IP_ADDRESS_0 { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] -#[cfg(feature = "Win32_Networking_WinSock")] -pub struct _MPR_VPN_SELECTOR { - pub r#type: MPR_VPN_TS_TYPE, - pub protocolId: u8, - pub portStart: u16, - pub portEnd: u16, - pub tsPayloadId: u16, - pub addrStart: VPN_TS_IP_ADDRESS, - pub addrEnd: VPN_TS_IP_ADDRESS, -} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::marker::Copy for _MPR_VPN_SELECTOR {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::clone::Clone for _MPR_VPN_SELECTOR { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type ORASADFUNC = ::core::option::Option super::super::Foundation::BOOL>; diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/Snmp/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/Snmp/mod.rs index 129ff441ae..2b140144ac 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/Snmp/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/Snmp/mod.rs @@ -538,7 +538,7 @@ pub type SNMP_STATUS = u32; pub const SNMPAPI_ON: SNMP_STATUS = 1u32; #[doc = "*Required features: `\"Win32_NetworkManagement_Snmp\"`*"] pub const SNMPAPI_OFF: SNMP_STATUS = 0u32; -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_NetworkManagement_Snmp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct AsnAny { @@ -606,7 +606,7 @@ impl ::core::clone::Clone for AsnOctetString { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_NetworkManagement_Snmp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct SnmpVarBind { diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/WNet/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/WNet/mod.rs index ea55d36c36..e039004027 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/WNet/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/WNet/mod.rs @@ -1,11 +1,4 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_NetworkManagement_WNet\"`*"] - pub fn WNetSetLastErrorA(err: u32, lperror: ::windows_sys::core::PCSTR, lpproviders: ::windows_sys::core::PCSTR); - #[doc = "*Required features: `\"Win32_NetworkManagement_WNet\"`*"] - pub fn WNetSetLastErrorW(err: u32, lperror: ::windows_sys::core::PCWSTR, lpproviders: ::windows_sys::core::PCWSTR); -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_WNet\"`*"] pub fn MultinetGetConnectionPerformanceA(lpnetresource: *const NETRESOURCEA, lpnetconnectinfostruct: *mut NETCONNECTINFOSTRUCT) -> u32; @@ -151,6 +144,10 @@ extern "system" { pub fn WNetOpenEnumA(dwscope: NET_RESOURCE_SCOPE, dwtype: NET_RESOURCE_TYPE, dwusage: WNET_OPEN_ENUM_USAGE, lpnetresource: *const NETRESOURCEA, lphenum: *mut NetEnumHandle) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WNet\"`*"] pub fn WNetOpenEnumW(dwscope: NET_RESOURCE_SCOPE, dwtype: NET_RESOURCE_TYPE, dwusage: WNET_OPEN_ENUM_USAGE, lpnetresource: *const NETRESOURCEW, lphenum: *mut NetEnumHandle) -> u32; + #[doc = "*Required features: `\"Win32_NetworkManagement_WNet\"`*"] + pub fn WNetSetLastErrorA(err: u32, lperror: ::windows_sys::core::PCSTR, lpproviders: ::windows_sys::core::PCSTR); + #[doc = "*Required features: `\"Win32_NetworkManagement_WNet\"`*"] + pub fn WNetSetLastErrorW(err: u32, lperror: ::windows_sys::core::PCWSTR, lpproviders: ::windows_sys::core::PCWSTR); #[doc = "*Required features: `\"Win32_NetworkManagement_WNet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn WNetUseConnection4A(hwndowner: super::super::Foundation::HWND, lpnetresource: *const NETRESOURCEA, pauthbuffer: *const ::core::ffi::c_void, cbauthbuffer: u32, dwflags: u32, lpuseoptions: *const u8, cbuseoptions: u32, lpaccessname: ::windows_sys::core::PSTR, lpbuffersize: *mut u32, lpresult: *mut u32) -> 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 821ff9b835..836cc25b0c 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/WiFi/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/WiFi/mod.rs @@ -6722,6 +6722,19 @@ impl ::core::clone::Clone for DOT11_WME_AC_PARAMETERS { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`*"] +pub struct DOT11_WME_AC_PARAMETERS_LIST { + pub uNumOfEntries: u32, + pub uTotalNumOfEntries: u32, + pub dot11WMEACParameters: [DOT11_WME_AC_PARAMETERS; 1], +} +impl ::core::marker::Copy for DOT11_WME_AC_PARAMETERS_LIST {} +impl ::core::clone::Clone for DOT11_WME_AC_PARAMETERS_LIST { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`*"] pub struct DOT11_WME_UPDATE_IE { pub uParamElemMinBeaconIntervals: u32, pub uWMEInfoElemOffset: u32, @@ -7552,19 +7565,6 @@ impl ::core::clone::Clone for WLAN_STATISTICS { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`*"] -pub struct _DOT11_WME_AC_PARAMTERS_LIST { - pub uNumOfEntries: u32, - pub uTotalNumOfEntries: u32, - pub dot11WMEACParameters: [DOT11_WME_AC_PARAMETERS; 1], -} -impl ::core::marker::Copy for _DOT11_WME_AC_PARAMTERS_LIST {} -impl ::core::clone::Clone for _DOT11_WME_AC_PARAMTERS_LIST { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type DOT11EXTIHV_ADAPTER_RESET = ::core::option::Option u32>; diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs index d2224e17b9..2aeacfd8a5 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs @@ -141,7 +141,7 @@ extern "system" { pub fn FwpmIPsecTunnelAdd2(enginehandle: super::super::Foundation::HANDLE, flags: u32, mainmodepolicy: *const FWPM_PROVIDER_CONTEXT2, tunnelpolicy: *const FWPM_PROVIDER_CONTEXT2, numfilterconditions: u32, filterconditions: *const FWPM_FILTER_CONDITION0, keymodkey: *const ::windows_sys::core::GUID, sd: super::super::Security::PSECURITY_DESCRIPTOR) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn FwpmIPsecTunnelAdd3(enginehandle: super::super::Foundation::HANDLE, flags: u32, mainmodepolicy: *const FWPM_PROVIDER_CONTEXT3_, tunnelpolicy: *const FWPM_PROVIDER_CONTEXT3_, numfilterconditions: u32, filterconditions: *const FWPM_FILTER_CONDITION0, keymodkey: *const ::windows_sys::core::GUID, sd: super::super::Security::PSECURITY_DESCRIPTOR) -> u32; + pub fn FwpmIPsecTunnelAdd3(enginehandle: super::super::Foundation::HANDLE, flags: u32, mainmodepolicy: *const FWPM_PROVIDER_CONTEXT3, tunnelpolicy: *const FWPM_PROVIDER_CONTEXT3, numfilterconditions: u32, filterconditions: *const FWPM_FILTER_CONDITION0, keymodkey: *const ::windows_sys::core::GUID, sd: super::super::Security::PSECURITY_DESCRIPTOR) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn FwpmIPsecTunnelDeleteByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const ::windows_sys::core::GUID) -> u32; @@ -186,10 +186,10 @@ extern "system" { pub fn FwpmNetEventEnum3(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT3, numentriesreturned: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn FwpmNetEventEnum4(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT4_, numentriesreturned: *mut u32) -> u32; + pub fn FwpmNetEventEnum4(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT4, numentriesreturned: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn FwpmNetEventEnum5(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT5_, numentriesreturned: *mut u32) -> u32; + pub fn FwpmNetEventEnum5(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT5, numentriesreturned: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] pub fn FwpmNetEventSubscribe0(enginehandle: super::super::Foundation::HANDLE, subscription: *const FWPM_NET_EVENT_SUBSCRIPTION0, callback: FWPM_NET_EVENT_CALLBACK0, context: *const ::core::ffi::c_void, eventshandle: *mut super::super::Foundation::HANDLE) -> u32; @@ -231,7 +231,7 @@ extern "system" { pub fn FwpmProviderContextAdd2(enginehandle: super::super::Foundation::HANDLE, providercontext: *const FWPM_PROVIDER_CONTEXT2, sd: super::super::Security::PSECURITY_DESCRIPTOR, id: *mut u64) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn FwpmProviderContextAdd3(enginehandle: super::super::Foundation::HANDLE, providercontext: *const FWPM_PROVIDER_CONTEXT3_, sd: super::super::Security::PSECURITY_DESCRIPTOR, id: *mut u64) -> u32; + pub fn FwpmProviderContextAdd3(enginehandle: super::super::Foundation::HANDLE, providercontext: *const FWPM_PROVIDER_CONTEXT3, sd: super::super::Security::PSECURITY_DESCRIPTOR, id: *mut u64) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn FwpmProviderContextCreateEnumHandle0(enginehandle: super::super::Foundation::HANDLE, enumtemplate: *const FWPM_PROVIDER_CONTEXT_ENUM_TEMPLATE0, enumhandle: *mut super::super::Foundation::HANDLE) -> u32; @@ -255,7 +255,7 @@ extern "system" { pub fn FwpmProviderContextEnum2(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT2, numentriesreturned: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn FwpmProviderContextEnum3(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT3_, numentriesreturned: *mut u32) -> u32; + pub fn FwpmProviderContextEnum3(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT3, numentriesreturned: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] pub fn FwpmProviderContextGetById0(enginehandle: super::super::Foundation::HANDLE, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT0) -> u32; @@ -267,7 +267,7 @@ extern "system" { pub fn FwpmProviderContextGetById2(enginehandle: super::super::Foundation::HANDLE, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT2) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn FwpmProviderContextGetById3(enginehandle: super::super::Foundation::HANDLE, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT3_) -> u32; + pub fn FwpmProviderContextGetById3(enginehandle: super::super::Foundation::HANDLE, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT3) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] pub fn FwpmProviderContextGetByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const ::windows_sys::core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT0) -> u32; @@ -279,7 +279,7 @@ extern "system" { pub fn FwpmProviderContextGetByKey2(enginehandle: super::super::Foundation::HANDLE, key: *const ::windows_sys::core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT2) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn FwpmProviderContextGetByKey3(enginehandle: super::super::Foundation::HANDLE, key: *const ::windows_sys::core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT3_) -> u32; + pub fn FwpmProviderContextGetByKey3(enginehandle: super::super::Foundation::HANDLE, key: *const ::windows_sys::core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT3) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] pub fn FwpmProviderContextGetSecurityInfoByKey0(enginehandle: super::super::Foundation::HANDLE, key: *const ::windows_sys::core::GUID, securityinfo: u32, sidowner: *mut super::super::Foundation::PSID, sidgroup: *mut super::super::Foundation::PSID, dacl: *mut *mut super::super::Security::ACL, sacl: *mut *mut super::super::Security::ACL, securitydescriptor: *mut super::super::Security::PSECURITY_DESCRIPTOR) -> u32; @@ -2661,15 +2661,15 @@ impl ::core::clone::Clone for FWPM_NET_EVENT3_0 { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub struct FWPM_NET_EVENT4_ { +pub struct FWPM_NET_EVENT4 { pub header: FWPM_NET_EVENT_HEADER3, pub r#type: FWPM_NET_EVENT_TYPE, - pub Anonymous: FWPM_NET_EVENT4__0, + pub Anonymous: FWPM_NET_EVENT4_0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT4_ {} +impl ::core::marker::Copy for FWPM_NET_EVENT4 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT4_ { +impl ::core::clone::Clone for FWPM_NET_EVENT4 { fn clone(&self) -> Self { *self } @@ -2677,9 +2677,9 @@ impl ::core::clone::Clone for FWPM_NET_EVENT4_ { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub union FWPM_NET_EVENT4__0 { - pub ikeMmFailure: *mut FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_, - pub ikeQmFailure: *mut FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_, +pub union FWPM_NET_EVENT4_0 { + pub ikeMmFailure: *mut FWPM_NET_EVENT_IKEEXT_MM_FAILURE2, + pub ikeQmFailure: *mut FWPM_NET_EVENT_IKEEXT_QM_FAILURE1, pub ikeEmFailure: *mut FWPM_NET_EVENT_IKEEXT_EM_FAILURE1, pub classifyDrop: *mut FWPM_NET_EVENT_CLASSIFY_DROP2, pub ipsecDrop: *mut FWPM_NET_EVENT_IPSEC_KERNEL_DROP0, @@ -2690,9 +2690,9 @@ pub union FWPM_NET_EVENT4__0 { pub classifyDropMac: *mut FWPM_NET_EVENT_CLASSIFY_DROP_MAC0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT4__0 {} +impl ::core::marker::Copy for FWPM_NET_EVENT4_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT4__0 { +impl ::core::clone::Clone for FWPM_NET_EVENT4_0 { fn clone(&self) -> Self { *self } @@ -2700,15 +2700,15 @@ impl ::core::clone::Clone for FWPM_NET_EVENT4__0 { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub struct FWPM_NET_EVENT5_ { +pub struct FWPM_NET_EVENT5 { pub header: FWPM_NET_EVENT_HEADER3, pub r#type: FWPM_NET_EVENT_TYPE, - pub Anonymous: FWPM_NET_EVENT5__0, + pub Anonymous: FWPM_NET_EVENT5_0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT5_ {} +impl ::core::marker::Copy for FWPM_NET_EVENT5 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT5_ { +impl ::core::clone::Clone for FWPM_NET_EVENT5 { fn clone(&self) -> Self { *self } @@ -2716,9 +2716,9 @@ impl ::core::clone::Clone for FWPM_NET_EVENT5_ { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub union FWPM_NET_EVENT5__0 { - pub ikeMmFailure: *mut FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_, - pub ikeQmFailure: *mut FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_, +pub union FWPM_NET_EVENT5_0 { + pub ikeMmFailure: *mut FWPM_NET_EVENT_IKEEXT_MM_FAILURE2, + pub ikeQmFailure: *mut FWPM_NET_EVENT_IKEEXT_QM_FAILURE1, pub ikeEmFailure: *mut FWPM_NET_EVENT_IKEEXT_EM_FAILURE1, pub classifyDrop: *mut FWPM_NET_EVENT_CLASSIFY_DROP2, pub ipsecDrop: *mut FWPM_NET_EVENT_IPSEC_KERNEL_DROP0, @@ -2727,12 +2727,12 @@ pub union FWPM_NET_EVENT5__0 { pub capabilityDrop: *mut FWPM_NET_EVENT_CAPABILITY_DROP0, pub capabilityAllow: *mut FWPM_NET_EVENT_CAPABILITY_ALLOW0, pub classifyDropMac: *mut FWPM_NET_EVENT_CLASSIFY_DROP_MAC0, - pub lpmPacketArrival: *mut FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_, + pub lpmPacketArrival: *mut FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT5__0 {} +impl ::core::marker::Copy for FWPM_NET_EVENT5_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT5__0 { +impl ::core::clone::Clone for FWPM_NET_EVENT5_0 { fn clone(&self) -> Self { *self } @@ -3275,7 +3275,7 @@ impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_MM_FAILURE1 { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub struct FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ { +pub struct FWPM_NET_EVENT_IKEEXT_MM_FAILURE2 { pub failureErrorCode: u32, pub failurePoint: IPSEC_FAILURE_POINT, pub flags: u32, @@ -3294,8 +3294,8 @@ pub struct FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ { pub remotePrincipalGroupSids: *mut ::windows_sys::core::PWSTR, pub providerContextKey: *mut ::windows_sys::core::GUID, } -impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ {} -impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ { +impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2 {} +impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2 { fn clone(&self) -> Self { *self } @@ -3353,23 +3353,23 @@ impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE0_1 { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub struct FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_ { +pub struct FWPM_NET_EVENT_IKEEXT_QM_FAILURE1 { pub failureErrorCode: u32, pub failurePoint: IPSEC_FAILURE_POINT, pub keyingModuleType: IKEEXT_KEY_MODULE_TYPE, pub qmState: IKEEXT_QM_SA_STATE, pub saRole: IKEEXT_SA_ROLE, pub saTrafficType: IPSEC_TRAFFIC_TYPE, - pub Anonymous1: FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0, - pub Anonymous2: FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__1, + pub Anonymous1: FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_0, + pub Anonymous2: FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_1, pub qmFilterId: u64, pub mmSaLuid: u64, pub mmProviderContextKey: ::windows_sys::core::GUID, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_ {} +impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_ { +impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1 { fn clone(&self) -> Self { *self } @@ -3377,13 +3377,13 @@ impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_ { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub union FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0 { +pub union FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_0 { pub localSubNet: FWP_CONDITION_VALUE0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0 {} +impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0 { +impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_0 { fn clone(&self) -> Self { *self } @@ -3391,13 +3391,13 @@ impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0 { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub union FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__1 { +pub union FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_1 { pub remoteSubNet: FWP_CONDITION_VALUE0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__1 {} +impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_1 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__1 { +impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_1 { fn clone(&self) -> Self { *self } @@ -3458,11 +3458,11 @@ impl ::core::clone::Clone for FWPM_NET_EVENT_IPSEC_KERNEL_DROP0 { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub struct FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_ { +pub struct FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0 { pub spi: u32, } -impl ::core::marker::Copy for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_ {} -impl ::core::clone::Clone for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_ { +impl ::core::marker::Copy for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0 {} +impl ::core::clone::Clone for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0 { fn clone(&self) -> Self { *self } @@ -3649,20 +3649,20 @@ impl ::core::clone::Clone for FWPM_PROVIDER_CONTEXT2_0 { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub struct FWPM_PROVIDER_CONTEXT3_ { +pub struct FWPM_PROVIDER_CONTEXT3 { pub providerContextKey: ::windows_sys::core::GUID, pub displayData: FWPM_DISPLAY_DATA0, pub flags: u32, pub providerKey: *mut ::windows_sys::core::GUID, pub providerData: FWP_BYTE_BLOB, pub r#type: FWPM_PROVIDER_CONTEXT_TYPE, - pub Anonymous: FWPM_PROVIDER_CONTEXT3__0, + pub Anonymous: FWPM_PROVIDER_CONTEXT3_0, pub providerContextId: u64, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_PROVIDER_CONTEXT3_ {} +impl ::core::marker::Copy for FWPM_PROVIDER_CONTEXT3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_PROVIDER_CONTEXT3_ { +impl ::core::clone::Clone for FWPM_PROVIDER_CONTEXT3 { fn clone(&self) -> Self { *self } @@ -3670,25 +3670,25 @@ impl ::core::clone::Clone for FWPM_PROVIDER_CONTEXT3_ { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub union FWPM_PROVIDER_CONTEXT3__0 { +pub union FWPM_PROVIDER_CONTEXT3_0 { pub keyingPolicy: *mut IPSEC_KEYING_POLICY1, pub ikeQmTransportPolicy: *mut IPSEC_TRANSPORT_POLICY2, - pub ikeQmTunnelPolicy: *mut IPSEC_TUNNEL_POLICY3_, + pub ikeQmTunnelPolicy: *mut IPSEC_TUNNEL_POLICY3, pub authipQmTransportPolicy: *mut IPSEC_TRANSPORT_POLICY2, - pub authipQmTunnelPolicy: *mut IPSEC_TUNNEL_POLICY3_, + pub authipQmTunnelPolicy: *mut IPSEC_TUNNEL_POLICY3, pub ikeMmPolicy: *mut IKEEXT_POLICY2, pub authIpMmPolicy: *mut IKEEXT_POLICY2, pub dataBuffer: *mut FWP_BYTE_BLOB, pub classifyOptions: *mut FWPM_CLASSIFY_OPTIONS0, - pub ikeV2QmTunnelPolicy: *mut IPSEC_TUNNEL_POLICY3_, + pub ikeV2QmTunnelPolicy: *mut IPSEC_TUNNEL_POLICY3, pub ikeV2QmTransportPolicy: *mut IPSEC_TRANSPORT_POLICY2, pub ikeV2MmPolicy: *mut IKEEXT_POLICY2, pub idpOptions: *mut IPSEC_DOSP_OPTIONS0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_PROVIDER_CONTEXT3__0 {} +impl ::core::marker::Copy for FWPM_PROVIDER_CONTEXT3_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_PROVIDER_CONTEXT3__0 { +impl ::core::clone::Clone for FWPM_PROVIDER_CONTEXT3_0 { fn clone(&self) -> Self { *self } @@ -6190,55 +6190,55 @@ impl ::core::clone::Clone for IPSEC_TRAFFIC1_2 { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub struct IPSEC_TRAFFIC_SELECTOR0_ { +pub struct IPSEC_TRAFFIC_SELECTOR0 { pub protocolId: u8, pub portStart: u16, pub portEnd: u16, pub ipVersion: FWP_IP_VERSION, - pub Anonymous1: IPSEC_TRAFFIC_SELECTOR0__0, - pub Anonymous2: IPSEC_TRAFFIC_SELECTOR0__1, + pub Anonymous1: IPSEC_TRAFFIC_SELECTOR0_0, + pub Anonymous2: IPSEC_TRAFFIC_SELECTOR0_1, } -impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR0_ {} -impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR0_ { +impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR0 {} +impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR0 { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub union IPSEC_TRAFFIC_SELECTOR0__0 { +pub union IPSEC_TRAFFIC_SELECTOR0_0 { pub startV4Address: u32, pub startV6Address: [u8; 16], } -impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR0__0 {} -impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR0__0 { +impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR0_0 {} +impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR0_0 { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub union IPSEC_TRAFFIC_SELECTOR0__1 { +pub union IPSEC_TRAFFIC_SELECTOR0_1 { pub endV4Address: u32, pub endV6Address: [u8; 16], } -impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR0__1 {} -impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR0__1 { +impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR0_1 {} +impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR0_1 { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub struct IPSEC_TRAFFIC_SELECTOR_POLICY0_ { +pub struct IPSEC_TRAFFIC_SELECTOR_POLICY0 { pub flags: u32, pub numLocalTrafficSelectors: u32, - pub localTrafficSelectors: *mut IPSEC_TRAFFIC_SELECTOR0_, + pub localTrafficSelectors: *mut IPSEC_TRAFFIC_SELECTOR0, pub numRemoteTrafficSelectors: u32, - pub remoteTrafficSelectors: *mut IPSEC_TRAFFIC_SELECTOR0_, + pub remoteTrafficSelectors: *mut IPSEC_TRAFFIC_SELECTOR0, } -impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR_POLICY0_ {} -impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR_POLICY0_ { +impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR_POLICY0 {} +impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR_POLICY0 { fn clone(&self) -> Self { *self } @@ -6515,7 +6515,7 @@ impl ::core::clone::Clone for IPSEC_TUNNEL_POLICY2 { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub struct IPSEC_TUNNEL_POLICY3_ { +pub struct IPSEC_TUNNEL_POLICY3 { pub flags: u32, pub numIpsecProposals: u32, pub ipsecProposals: *mut IPSEC_PROPOSAL0, @@ -6525,10 +6525,10 @@ pub struct IPSEC_TUNNEL_POLICY3_ { pub fwdPathSaLifetime: u32, pub compartmentId: u32, pub numTrafficSelectorPolicy: u32, - pub trafficSelectorPolicies: *mut IPSEC_TRAFFIC_SELECTOR_POLICY0_, + pub trafficSelectorPolicies: *mut IPSEC_TRAFFIC_SELECTOR_POLICY0, } -impl ::core::marker::Copy for IPSEC_TUNNEL_POLICY3_ {} -impl ::core::clone::Clone for IPSEC_TUNNEL_POLICY3_ { +impl ::core::marker::Copy for IPSEC_TUNNEL_POLICY3 {} +impl ::core::clone::Clone for IPSEC_TUNNEL_POLICY3 { fn clone(&self) -> Self { *self } @@ -6577,10 +6577,10 @@ pub type FWPM_NET_EVENT_CALLBACK1 = ::core::option::Option; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub type FWPM_NET_EVENT_CALLBACK3 = ::core::option::Option; +pub type FWPM_NET_EVENT_CALLBACK3 = ::core::option::Option; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub type FWPM_NET_EVENT_CALLBACK4 = ::core::option::Option; +pub type FWPM_NET_EVENT_CALLBACK4 = ::core::option::Option; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] pub type FWPM_PROVIDER_CHANGE_CALLBACK0 = ::core::option::Option; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs index e7b54471f6..2f74a2bf52 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs @@ -1,5 +1,5 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { +extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] pub fn NetworkIsolationDiagnoseConnectFailureAndGetInfo(wszservername: ::windows_sys::core::PCWSTR, netisoerror: *mut NETISO_ERROR_TYPE) -> u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] @@ -86,6 +86,26 @@ pub const NetSharingManager: ::windows_sys::core::GUID = ::windows_sys::core::GU pub const S_OBJECT_NO_LONGER_VALID: ::windows_sys::core::HRESULT = 2i32; pub const UPnPNAT: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 2921201834, data2: 16341, data3: 16444, data4: [138, 39, 43, 189, 195, 12, 208, 225] }; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub type FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = u32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_AUTO_RESOLVE: FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_NON_AUTO_RESOLVE: FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_ALL: FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = 3u32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub type FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS = u32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS_AUTO_RESOLVE: FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub type FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ORIGIN_INVALID: FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ORIGIN_LOCAL: FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ORIGIN_MDM: FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = 2i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] pub type ICS_TARGETTYPE = i32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] pub const ICSTT_NAME: ICS_TARGETTYPE = 0i32; @@ -399,26 +419,34 @@ pub type SHARINGCONNECTION_ENUM_FLAGS = i32; pub const ICSSC_DEFAULT: SHARINGCONNECTION_ENUM_FLAGS = 0i32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] pub const ICSSC_ENABLED: SHARINGCONNECTION_ENUM_FLAGS = 1i32; +#[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub type _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_AUTO_RESOLVE: _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = 1i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_NON_AUTO_RESOLVE: _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = 2i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_ALL: _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = 3i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub type _tag_FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS = i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS_AUTO_RESOLVE: _tag_FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS = 1i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub type _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ORIGIN_INVALID: _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = 0i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ORIGIN_LOCAL: _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = 1i32; +pub struct FW_DYNAMIC_KEYWORD_ADDRESS0 { + pub id: ::windows_sys::core::GUID, + pub keyword: ::windows_sys::core::PCWSTR, + pub flags: u32, + pub addresses: ::windows_sys::core::PCWSTR, +} +impl ::core::marker::Copy for FW_DYNAMIC_KEYWORD_ADDRESS0 {} +impl ::core::clone::Clone for FW_DYNAMIC_KEYWORD_ADDRESS0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ORIGIN_MDM: _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = 2i32; +pub struct FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { + pub dynamicKeywordAddress: FW_DYNAMIC_KEYWORD_ADDRESS0, + pub next: *mut FW_DYNAMIC_KEYWORD_ADDRESS_DATA0, + pub schemaVersion: u16, + pub originType: FW_DYNAMIC_KEYWORD_ORIGIN_TYPE, +} +impl ::core::marker::Copy for FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 {} +impl ::core::clone::Clone for FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { + fn clone(&self) -> Self { + *self + } +} #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] pub struct INET_FIREWALL_AC_BINARIES { @@ -520,47 +548,19 @@ impl ::core::clone::Clone for NETCON_PROPERTIES { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub struct _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 { - pub id: ::windows_sys::core::GUID, - pub keyword: ::windows_sys::core::PCWSTR, - pub flags: u32, - pub addresses: ::windows_sys::core::PCWSTR, -} -impl ::core::marker::Copy for _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 {} -impl ::core::clone::Clone for _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub struct _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { - pub dynamicKeywordAddress: _tag_FW_DYNAMIC_KEYWORD_ADDRESS0, - pub next: *mut _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0, - pub schemaVersion: u16, - pub originType: _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE, -} -impl ::core::marker::Copy for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 {} -impl ::core::clone::Clone for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] pub type PAC_CHANGES_CALLBACK_FN = ::core::option::Option; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub type PFN_FWADDDYNAMICKEYWORDADDRESS0 = ::core::option::Option u32>; +pub type PFN_FWADDDYNAMICKEYWORDADDRESS0 = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] pub type PFN_FWDELETEDYNAMICKEYWORDADDRESS0 = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub type PFN_FWENUMDYNAMICKEYWORDADDRESSBYID0 = ::core::option::Option u32>; +pub type PFN_FWENUMDYNAMICKEYWORDADDRESSBYID0 = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub type PFN_FWENUMDYNAMICKEYWORDADDRESSESBYTYPE0 = ::core::option::Option u32>; +pub type PFN_FWENUMDYNAMICKEYWORDADDRESSESBYTYPE0 = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub type PFN_FWFREEDYNAMICKEYWORDADDRESSDATA0 = ::core::option::Option u32>; +pub type PFN_FWFREEDYNAMICKEYWORDADDRESSDATA0 = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type PFN_FWUPDATEDYNAMICKEYWORDADDRESS0 = ::core::option::Option u32>; 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 b570ab2d2f..b16abcaa65 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/ActiveDirectory/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/ActiveDirectory/mod.rs @@ -1913,65 +1913,65 @@ pub const ADSI_DIALECT_LDAP: ADSI_DIALECT_ENUM = 0i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] pub const ADSI_DIALECT_SQL: ADSI_DIALECT_ENUM = 1i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub type ADSTYPEENUM = i32; +pub type ADSTYPE = i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_INVALID: ADSTYPEENUM = 0i32; +pub const ADSTYPE_INVALID: ADSTYPE = 0i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_DN_STRING: ADSTYPEENUM = 1i32; +pub const ADSTYPE_DN_STRING: ADSTYPE = 1i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_CASE_EXACT_STRING: ADSTYPEENUM = 2i32; +pub const ADSTYPE_CASE_EXACT_STRING: ADSTYPE = 2i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_CASE_IGNORE_STRING: ADSTYPEENUM = 3i32; +pub const ADSTYPE_CASE_IGNORE_STRING: ADSTYPE = 3i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_PRINTABLE_STRING: ADSTYPEENUM = 4i32; +pub const ADSTYPE_PRINTABLE_STRING: ADSTYPE = 4i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_NUMERIC_STRING: ADSTYPEENUM = 5i32; +pub const ADSTYPE_NUMERIC_STRING: ADSTYPE = 5i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_BOOLEAN: ADSTYPEENUM = 6i32; +pub const ADSTYPE_BOOLEAN: ADSTYPE = 6i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_INTEGER: ADSTYPEENUM = 7i32; +pub const ADSTYPE_INTEGER: ADSTYPE = 7i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_OCTET_STRING: ADSTYPEENUM = 8i32; +pub const ADSTYPE_OCTET_STRING: ADSTYPE = 8i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_UTC_TIME: ADSTYPEENUM = 9i32; +pub const ADSTYPE_UTC_TIME: ADSTYPE = 9i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_LARGE_INTEGER: ADSTYPEENUM = 10i32; +pub const ADSTYPE_LARGE_INTEGER: ADSTYPE = 10i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_PROV_SPECIFIC: ADSTYPEENUM = 11i32; +pub const ADSTYPE_PROV_SPECIFIC: ADSTYPE = 11i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_OBJECT_CLASS: ADSTYPEENUM = 12i32; +pub const ADSTYPE_OBJECT_CLASS: ADSTYPE = 12i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_CASEIGNORE_LIST: ADSTYPEENUM = 13i32; +pub const ADSTYPE_CASEIGNORE_LIST: ADSTYPE = 13i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_OCTET_LIST: ADSTYPEENUM = 14i32; +pub const ADSTYPE_OCTET_LIST: ADSTYPE = 14i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_PATH: ADSTYPEENUM = 15i32; +pub const ADSTYPE_PATH: ADSTYPE = 15i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_POSTALADDRESS: ADSTYPEENUM = 16i32; +pub const ADSTYPE_POSTALADDRESS: ADSTYPE = 16i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_TIMESTAMP: ADSTYPEENUM = 17i32; +pub const ADSTYPE_TIMESTAMP: ADSTYPE = 17i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_BACKLINK: ADSTYPEENUM = 18i32; +pub const ADSTYPE_BACKLINK: ADSTYPE = 18i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_TYPEDNAME: ADSTYPEENUM = 19i32; +pub const ADSTYPE_TYPEDNAME: ADSTYPE = 19i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_HOLD: ADSTYPEENUM = 20i32; +pub const ADSTYPE_HOLD: ADSTYPE = 20i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_NETADDRESS: ADSTYPEENUM = 21i32; +pub const ADSTYPE_NETADDRESS: ADSTYPE = 21i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_REPLICAPOINTER: ADSTYPEENUM = 22i32; +pub const ADSTYPE_REPLICAPOINTER: ADSTYPE = 22i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_FAXNUMBER: ADSTYPEENUM = 23i32; +pub const ADSTYPE_FAXNUMBER: ADSTYPE = 23i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_EMAIL: ADSTYPEENUM = 24i32; +pub const ADSTYPE_EMAIL: ADSTYPE = 24i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_NT_SECURITY_DESCRIPTOR: ADSTYPEENUM = 25i32; +pub const ADSTYPE_NT_SECURITY_DESCRIPTOR: ADSTYPE = 25i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_UNKNOWN: ADSTYPEENUM = 26i32; +pub const ADSTYPE_UNKNOWN: ADSTYPE = 26i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_DN_WITH_BINARY: ADSTYPEENUM = 27i32; +pub const ADSTYPE_DN_WITH_BINARY: ADSTYPE = 27i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_DN_WITH_STRING: ADSTYPEENUM = 28i32; +pub const ADSTYPE_DN_WITH_STRING: ADSTYPE = 28i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] pub type ADS_ACEFLAG_ENUM = i32; #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] @@ -2682,7 +2682,7 @@ impl ::core::clone::Clone for ADSPROPINITPARAMS { #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct ADSVALUE { - pub dwType: ADSTYPEENUM, + pub dwType: ADSTYPE, pub Anonymous: ADSVALUE_0, } #[cfg(feature = "Win32_Foundation")] @@ -2738,7 +2738,7 @@ impl ::core::clone::Clone for ADSVALUE_0 { #[cfg(feature = "Win32_Foundation")] pub struct ADS_ATTR_DEF { pub pszAttrName: ::windows_sys::core::PWSTR, - pub dwADsType: ADSTYPEENUM, + pub dwADsType: ADSTYPE, pub dwMinRange: u32, pub dwMaxRange: u32, pub fMultiValued: super::super::Foundation::BOOL, @@ -2757,7 +2757,7 @@ impl ::core::clone::Clone for ADS_ATTR_DEF { pub struct ADS_ATTR_INFO { pub pszAttrName: ::windows_sys::core::PWSTR, pub dwControlCode: u32, - pub dwADsType: ADSTYPEENUM, + pub dwADsType: ADSTYPE, pub pADsValues: *mut ADSVALUE, pub dwNumValues: u32, } @@ -2994,6 +2994,40 @@ impl ::core::clone::Clone for ADS_REPLICAPOINTER { *self } } +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct ADS_SEARCHPREF_INFO { + pub dwSearchPref: ADS_SEARCHPREF_ENUM, + pub vValue: ADSVALUE, + pub dwStatus: ADS_STATUSENUM, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for ADS_SEARCHPREF_INFO {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for ADS_SEARCHPREF_INFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct ADS_SEARCH_COLUMN { + pub pszAttrName: ::windows_sys::core::PWSTR, + pub dwADsType: ADSTYPE, + pub pADsValues: *mut ADSVALUE, + pub dwNumValues: u32, + pub hReserved: super::super::Foundation::HANDLE, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for ADS_SEARCH_COLUMN {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for ADS_SEARCH_COLUMN { + fn clone(&self) -> Self { + *self + } +} pub type ADS_SEARCH_HANDLE = isize; #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_Foundation\"`*"] @@ -4561,40 +4595,6 @@ impl ::core::clone::Clone for SCHEDULE_HEADER { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct ads_search_column { - pub pszAttrName: ::windows_sys::core::PWSTR, - pub dwADsType: ADSTYPEENUM, - pub pADsValues: *mut ADSVALUE, - pub dwNumValues: u32, - pub hReserved: super::super::Foundation::HANDLE, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ads_search_column {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ads_search_column { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct ads_searchpref_info { - pub dwSearchPref: ADS_SEARCHPREF_ENUM, - pub vValue: ADSVALUE, - pub dwStatus: ADS_STATUSENUM, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ads_searchpref_info {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ads_searchpref_info { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub type LPCQADDFORMSPROC = ::core::option::Option ::windows_sys::core::HRESULT>; 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 f7cd330626..fb4d45ed09 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/Clustering/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/Clustering/mod.rs @@ -1,27 +1,4 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ClusWorkersTerminate(clusworkers: *mut *mut CLUS_WORKER, clusworkerscount: usize, timeoutinmilliseconds: u32, waitonly: super::super::Foundation::BOOL) -> u32; - #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] - pub fn FreeClusterHealthFault(clusterhealthfault: *mut CLUSTER_HEALTH_FAULT) -> u32; - #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] - pub fn FreeClusterHealthFaultArray(clusterhealthfaultarray: *mut CLUSTER_HEALTH_FAULT_ARRAY) -> u32; - #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] - pub fn InitializeClusterHealthFault(clusterhealthfault: *mut CLUSTER_HEALTH_FAULT) -> u32; - #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] - pub fn InitializeClusterHealthFaultArray(clusterhealthfaultarray: *mut CLUSTER_HEALTH_FAULT_ARRAY) -> u32; - #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ResUtilLeftPaxosIsLessThanRight(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn ResUtilPaxosComparer(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] - pub fn ResUtilsDeleteKeyTree(key: super::super::System::Registry::HKEY, keyname: ::windows_sys::core::PCWSTR, treatnokeyaserror: super::super::Foundation::BOOL) -> u32; -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] pub fn AddClusterGroupDependency(hdependentgroup: *const _HGROUP, hprovidergroup: *const _HGROUP) -> u32; @@ -101,6 +78,9 @@ extern "system" { #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn ClusWorkerTerminateEx(clusworker: *mut CLUS_WORKER, timeoutinmilliseconds: u32, waitonly: super::super::Foundation::BOOL) -> u32; + #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn ClusWorkersTerminate(clusworkers: *mut *mut CLUS_WORKER, clusworkerscount: usize, timeoutinmilliseconds: u32, waitonly: super::super::Foundation::BOOL) -> u32; #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] pub fn ClusterAddGroupToAffinityRule(hcluster: *const _HCLUSTER, rulename: ::windows_sys::core::PCWSTR, hgroup: *const _HGROUP) -> u32; #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] @@ -382,6 +362,10 @@ extern "system" { #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] pub fn FreeClusterCrypt(pcryptinfo: *const ::core::ffi::c_void) -> u32; #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] + pub fn FreeClusterHealthFault(clusterhealthfault: *mut CLUSTER_HEALTH_FAULT) -> u32; + #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] + pub fn FreeClusterHealthFaultArray(clusterhealthfaultarray: *mut CLUSTER_HEALTH_FAULT_ARRAY) -> u32; + #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] pub fn GetClusterFromGroup(hgroup: *const _HGROUP) -> *mut _HCLUSTER; #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] pub fn GetClusterFromNetInterface(hnetinterface: *const _HNETINTERFACE) -> *mut _HCLUSTER; @@ -448,6 +432,10 @@ extern "system" { #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn GetNotifyEventHandle(hchange: *const _HCHANGE, lphtargetevent: *mut super::super::Foundation::HANDLE) -> u32; + #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] + pub fn InitializeClusterHealthFault(clusterhealthfault: *mut CLUSTER_HEALTH_FAULT) -> u32; + #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] + pub fn InitializeClusterHealthFaultArray(clusterhealthfaultarray: *mut CLUSTER_HEALTH_FAULT_ARRAY) -> u32; #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn IsFileOnClusterSharedVolume(lpszpathname: ::windows_sys::core::PCWSTR, pbfileisonsharedvolume: *mut super::super::Foundation::BOOL) -> u32; @@ -696,10 +684,16 @@ extern "system" { #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn ResUtilIsResourceClassEqual(prci: *mut CLUS_RESOURCE_CLASS_INFO, hresource: *mut _HRESOURCE) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn ResUtilLeftPaxosIsLessThanRight(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] pub fn ResUtilNodeEnum(hcluster: *mut _HCLUSTER, pnodecallback: LPNODE_CALLBACK, pparameter: *mut ::core::ffi::c_void) -> u32; #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn ResUtilPaxosComparer(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn ResUtilPropertyListFromParameterBlock(ppropertytable: *const RESUTIL_PROPERTY_ITEM, poutpropertylist: *mut ::core::ffi::c_void, pcboutpropertylistsize: *mut u32, pinparams: *const u8, pcbbytesreturned: *mut u32, pcbrequired: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] pub fn ResUtilRemoveResourceServiceEnvironment(pszservicename: ::windows_sys::core::PCWSTR, pfnlogevent: PLOG_EVENT_ROUTINE, hresourcehandle: isize) -> u32; @@ -780,6 +774,9 @@ extern "system" { pub fn ResUtilVerifyService(hservicehandle: super::super::Security::SC_HANDLE) -> u32; #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] pub fn ResUtilVerifyShutdownSafe(flags: u32, reason: u32, presult: *mut u32) -> u32; + #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] + pub fn ResUtilsDeleteKeyTree(key: super::super::System::Registry::HKEY, keyname: ::windows_sys::core::PCWSTR, treatnokeyaserror: super::super::Foundation::BOOL) -> u32; #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] pub fn ResetAllAppInstanceVersions() -> u32; #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] 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 53ed2753ad..c210882d6f 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/Ldap/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/Ldap/mod.rs @@ -9,7 +9,7 @@ extern "cdecl" { #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub fn LdapUnicodeToUTF8(lpsrcstr: ::windows_sys::core::PCWSTR, cchsrc: i32, lpdeststr: ::windows_sys::core::PSTR, cchdest: i32) -> i32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ber_alloc_t(options: i32) -> *mut berelement; + pub fn ber_alloc_t(options: i32) -> *mut BerElement; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub fn ber_bvdup(pberval: *mut LDAP_BERVAL) -> *mut LDAP_BERVAL; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] @@ -18,141 +18,141 @@ extern "cdecl" { pub fn ber_bvfree(bv: *mut LDAP_BERVAL); #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ber_first_element(pberelement: *mut berelement, plen: *mut u32, ppopaque: *mut *mut super::super::Foundation::CHAR) -> u32; + pub fn ber_first_element(pberelement: *mut BerElement, plen: *mut u32, ppopaque: *mut *mut super::super::Foundation::CHAR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ber_flatten(pberelement: *mut berelement, pberval: *mut *mut LDAP_BERVAL) -> i32; + pub fn ber_flatten(pberelement: *mut BerElement, pberval: *mut *mut LDAP_BERVAL) -> i32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ber_free(pberelement: *mut berelement, fbuf: i32); + pub fn ber_free(pberelement: *mut BerElement, fbuf: i32); #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ber_init(pberval: *mut LDAP_BERVAL) -> *mut berelement; + pub fn ber_init(pberval: *mut LDAP_BERVAL) -> *mut BerElement; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ber_next_element(pberelement: *mut berelement, plen: *mut u32, opaque: ::windows_sys::core::PCSTR) -> u32; + pub fn ber_next_element(pberelement: *mut BerElement, plen: *mut u32, opaque: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ber_peek_tag(pberelement: *mut berelement, plen: *mut u32) -> u32; + pub fn ber_peek_tag(pberelement: *mut BerElement, plen: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ber_printf(pberelement: *mut berelement, fmt: ::windows_sys::core::PCSTR) -> i32; + pub fn ber_printf(pberelement: *mut BerElement, fmt: ::windows_sys::core::PCSTR) -> i32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ber_scanf(pberelement: *mut berelement, fmt: ::windows_sys::core::PCSTR) -> u32; + pub fn ber_scanf(pberelement: *mut BerElement, fmt: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ber_skip_tag(pberelement: *mut berelement, plen: *mut u32) -> u32; + pub fn ber_skip_tag(pberelement: *mut BerElement, plen: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn cldap_open(hostname: ::windows_sys::core::PCSTR, portnumber: u32) -> *mut ldap; + pub fn cldap_open(hostname: ::windows_sys::core::PCSTR, portnumber: u32) -> *mut LDAP; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn cldap_openA(hostname: ::windows_sys::core::PCSTR, portnumber: u32) -> *mut ldap; + pub fn cldap_openA(hostname: ::windows_sys::core::PCSTR, portnumber: u32) -> *mut LDAP; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn cldap_openW(hostname: ::windows_sys::core::PCWSTR, portnumber: u32) -> *mut ldap; + pub fn cldap_openW(hostname: ::windows_sys::core::PCWSTR, portnumber: u32) -> *mut LDAP; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_abandon(ld: *mut ldap, msgid: u32) -> u32; + pub fn ldap_abandon(ld: *mut LDAP, msgid: u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_add(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut ldapmodA) -> u32; + pub fn ldap_add(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut LDAPModA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_addA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut ldapmodA) -> u32; + pub fn ldap_addA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut LDAPModA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_addW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, attrs: *mut *mut ldapmodW) -> u32; + pub fn ldap_addW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, attrs: *mut *mut LDAPModW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_add_ext(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + pub fn ldap_add_ext(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_add_extA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + pub fn ldap_add_extA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_add_extW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, attrs: *mut *mut ldapmodW, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, messagenumber: *mut u32) -> u32; + pub fn ldap_add_extW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, attrs: *mut *mut LDAPModW, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_add_ext_s(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_add_ext_s(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_add_ext_sA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_add_ext_sA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_add_ext_sW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, attrs: *mut *mut ldapmodW, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW) -> u32; + pub fn ldap_add_ext_sW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, attrs: *mut *mut LDAPModW, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_add_s(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut ldapmodA) -> u32; + pub fn ldap_add_s(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut LDAPModA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_add_sA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut ldapmodA) -> u32; + pub fn ldap_add_sA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attrs: *mut *mut LDAPModA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_add_sW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, attrs: *mut *mut ldapmodW) -> u32; + pub fn ldap_add_sW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, attrs: *mut *mut LDAPModW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_bind(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, cred: ::windows_sys::core::PCSTR, method: u32) -> u32; + pub fn ldap_bind(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, cred: ::windows_sys::core::PCSTR, method: u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_bindA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, cred: ::windows_sys::core::PCSTR, method: u32) -> u32; + pub fn ldap_bindA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, cred: ::windows_sys::core::PCSTR, method: u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_bindW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, cred: ::windows_sys::core::PCWSTR, method: u32) -> u32; + pub fn ldap_bindW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, cred: ::windows_sys::core::PCWSTR, method: u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_bind_s(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, cred: ::windows_sys::core::PCSTR, method: u32) -> u32; + pub fn ldap_bind_s(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, cred: ::windows_sys::core::PCSTR, method: u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_bind_sA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, cred: ::windows_sys::core::PCSTR, method: u32) -> u32; + pub fn ldap_bind_sA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, cred: ::windows_sys::core::PCSTR, method: u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_bind_sW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, cred: ::windows_sys::core::PCWSTR, method: u32) -> u32; + pub fn ldap_bind_sW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, cred: ::windows_sys::core::PCWSTR, method: u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_check_filterA(ld: *mut ldap, searchfilter: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_check_filterA(ld: *mut LDAP, searchfilter: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_check_filterW(ld: *mut ldap, searchfilter: ::windows_sys::core::PCWSTR) -> u32; + pub fn ldap_check_filterW(ld: *mut LDAP, searchfilter: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn ldap_cleanup(hinstance: super::super::Foundation::HANDLE) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_close_extended_op(ld: *mut ldap, messagenumber: u32) -> u32; + pub fn ldap_close_extended_op(ld: *mut LDAP, messagenumber: u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_compare(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_compare(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_compareA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_compareA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_compareW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, attr: ::windows_sys::core::PCWSTR, value: ::windows_sys::core::PCWSTR) -> u32; + pub fn ldap_compareW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, attr: ::windows_sys::core::PCWSTR, value: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_compare_ext(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + pub fn ldap_compare_ext(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_compare_extA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + pub fn ldap_compare_extA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_compare_extW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, attr: ::windows_sys::core::PCWSTR, value: ::windows_sys::core::PCWSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, messagenumber: *mut u32) -> u32; + pub fn ldap_compare_extW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, attr: ::windows_sys::core::PCWSTR, value: ::windows_sys::core::PCWSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_compare_ext_s(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_compare_ext_s(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_compare_ext_sA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_compare_ext_sA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_compare_ext_sW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, attr: ::windows_sys::core::PCWSTR, value: ::windows_sys::core::PCWSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW) -> u32; + pub fn ldap_compare_ext_sW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, attr: ::windows_sys::core::PCWSTR, value: ::windows_sys::core::PCWSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_compare_s(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_compare_s(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_compare_sA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_compare_sA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, attr: ::windows_sys::core::PCSTR, value: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_compare_sW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, attr: ::windows_sys::core::PCWSTR, value: ::windows_sys::core::PCWSTR) -> u32; + pub fn ldap_compare_sW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, attr: ::windows_sys::core::PCWSTR, value: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_conn_from_msg(primaryconn: *mut ldap, res: *mut LDAPMessage) -> *mut ldap; + pub fn ldap_conn_from_msg(primaryconn: *mut LDAP, res: *mut LDAPMessage) -> *mut LDAP; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_connect(ld: *mut ldap, timeout: *mut LDAP_TIMEVAL) -> u32; + pub fn ldap_connect(ld: *mut LDAP, timeout: *mut LDAP_TIMEVAL) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_control_free(control: *mut ldapcontrolA) -> u32; + pub fn ldap_control_free(control: *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_control_freeA(controls: *mut ldapcontrolA) -> u32; + pub fn ldap_control_freeA(controls: *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_control_freeW(control: *mut ldapcontrolW) -> u32; + pub fn ldap_control_freeW(control: *mut LDAPControlW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_controls_free(controls: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_controls_free(controls: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_controls_freeA(controls: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_controls_freeA(controls: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_controls_freeW(control: *mut *mut ldapcontrolW) -> u32; + pub fn ldap_controls_freeW(control: *mut *mut LDAPControlW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_count_entries(ld: *mut ldap, res: *mut LDAPMessage) -> u32; + pub fn ldap_count_entries(ld: *mut LDAP, res: *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_count_references(ld: *mut ldap, res: *mut LDAPMessage) -> u32; + pub fn ldap_count_references(ld: *mut LDAP, res: *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub fn ldap_count_values(vals: *const ::windows_sys::core::PSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] @@ -163,58 +163,58 @@ extern "cdecl" { pub fn ldap_count_values_len(vals: *mut *mut LDAP_BERVAL) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_create_page_control(externalhandle: *mut ldap, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_create_page_control(externalhandle: *mut LDAP, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_create_page_controlA(externalhandle: *mut ldap, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_create_page_controlA(externalhandle: *mut LDAP, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_create_page_controlW(externalhandle: *mut ldap, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut ldapcontrolW) -> u32; + pub fn ldap_create_page_controlW(externalhandle: *mut LDAP, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut LDAPControlW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_create_sort_control(externalhandle: *mut ldap, sortkeys: *mut *mut ldapsortkeyA, iscritical: u8, control: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_create_sort_control(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyA, iscritical: u8, control: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_create_sort_controlA(externalhandle: *mut ldap, sortkeys: *mut *mut ldapsortkeyA, iscritical: u8, control: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_create_sort_controlA(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyA, iscritical: u8, control: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_create_sort_controlW(externalhandle: *mut ldap, sortkeys: *mut *mut ldapsortkeyW, iscritical: u8, control: *mut *mut ldapcontrolW) -> u32; + pub fn ldap_create_sort_controlW(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyW, iscritical: u8, control: *mut *mut LDAPControlW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_create_vlv_controlA(externalhandle: *mut ldap, vlvinfo: *mut ldapvlvinfo, iscritical: u8, control: *mut *mut ldapcontrolA) -> i32; + pub fn ldap_create_vlv_controlA(externalhandle: *mut LDAP, vlvinfo: *mut LDAPVLVInfo, iscritical: u8, control: *mut *mut LDAPControlA) -> i32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_create_vlv_controlW(externalhandle: *mut ldap, vlvinfo: *mut ldapvlvinfo, iscritical: u8, control: *mut *mut ldapcontrolW) -> i32; + pub fn ldap_create_vlv_controlW(externalhandle: *mut LDAP, vlvinfo: *mut LDAPVLVInfo, iscritical: u8, control: *mut *mut LDAPControlW) -> i32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_delete(ld: *mut ldap, dn: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_delete(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_deleteA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_deleteA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_deleteW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR) -> u32; + pub fn ldap_deleteW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_delete_ext(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + pub fn ldap_delete_ext(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_delete_extA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + pub fn ldap_delete_extA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_delete_extW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, messagenumber: *mut u32) -> u32; + pub fn ldap_delete_extW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_delete_ext_s(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_delete_ext_s(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_delete_ext_sA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_delete_ext_sA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_delete_ext_sW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW) -> u32; + pub fn ldap_delete_ext_sW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_delete_s(ld: *mut ldap, dn: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_delete_s(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_delete_sA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_delete_sA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_delete_sW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR) -> u32; + pub fn ldap_delete_sW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub fn ldap_dn2ufn(dn: ::windows_sys::core::PCSTR) -> ::windows_sys::core::PSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] @@ -223,10 +223,10 @@ extern "cdecl" { pub fn ldap_dn2ufnW(dn: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::PWSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_encode_sort_controlA(externalhandle: *mut ldap, sortkeys: *mut *mut ldapsortkeyA, control: *mut ldapcontrolA, criticality: super::super::Foundation::BOOLEAN) -> u32; + pub fn ldap_encode_sort_controlA(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyA, control: *mut LDAPControlA, criticality: super::super::Foundation::BOOLEAN) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_encode_sort_controlW(externalhandle: *mut ldap, sortkeys: *mut *mut ldapsortkeyW, control: *mut ldapcontrolW, criticality: super::super::Foundation::BOOLEAN) -> u32; + pub fn ldap_encode_sort_controlW(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyW, control: *mut LDAPControlW, criticality: super::super::Foundation::BOOLEAN) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub fn ldap_err2string(err: u32) -> ::windows_sys::core::PSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] @@ -247,88 +247,88 @@ extern "cdecl" { pub fn ldap_explode_dnW(dn: ::windows_sys::core::PCWSTR, notypes: u32) -> *mut ::windows_sys::core::PWSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_extended_operation(ld: *mut ldap, oid: ::windows_sys::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + pub fn ldap_extended_operation(ld: *mut LDAP, oid: ::windows_sys::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_extended_operationA(ld: *mut ldap, oid: ::windows_sys::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + pub fn ldap_extended_operationA(ld: *mut LDAP, oid: ::windows_sys::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_extended_operationW(ld: *mut ldap, oid: ::windows_sys::core::PCWSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, messagenumber: *mut u32) -> u32; + pub fn ldap_extended_operationW(ld: *mut LDAP, oid: ::windows_sys::core::PCWSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_extended_operation_sA(externalhandle: *mut ldap, oid: ::windows_sys::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, returnedoid: *mut ::windows_sys::core::PSTR, returneddata: *mut *mut LDAP_BERVAL) -> u32; + pub fn ldap_extended_operation_sA(externalhandle: *mut LDAP, oid: ::windows_sys::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, returnedoid: *mut ::windows_sys::core::PSTR, returneddata: *mut *mut LDAP_BERVAL) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_extended_operation_sW(externalhandle: *mut ldap, oid: ::windows_sys::core::PCWSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, returnedoid: *mut ::windows_sys::core::PWSTR, returneddata: *mut *mut LDAP_BERVAL) -> u32; + pub fn ldap_extended_operation_sW(externalhandle: *mut LDAP, oid: ::windows_sys::core::PCWSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, returnedoid: *mut ::windows_sys::core::PWSTR, returneddata: *mut *mut LDAP_BERVAL) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_first_attribute(ld: *mut ldap, entry: *mut LDAPMessage, ptr: *mut *mut berelement) -> ::windows_sys::core::PSTR; + pub fn ldap_first_attribute(ld: *mut LDAP, entry: *mut LDAPMessage, ptr: *mut *mut BerElement) -> ::windows_sys::core::PSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_first_attributeA(ld: *mut ldap, entry: *mut LDAPMessage, ptr: *mut *mut berelement) -> ::windows_sys::core::PSTR; + pub fn ldap_first_attributeA(ld: *mut LDAP, entry: *mut LDAPMessage, ptr: *mut *mut BerElement) -> ::windows_sys::core::PSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_first_attributeW(ld: *mut ldap, entry: *mut LDAPMessage, ptr: *mut *mut berelement) -> ::windows_sys::core::PWSTR; + pub fn ldap_first_attributeW(ld: *mut LDAP, entry: *mut LDAPMessage, ptr: *mut *mut BerElement) -> ::windows_sys::core::PWSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_first_entry(ld: *mut ldap, res: *mut LDAPMessage) -> *mut LDAPMessage; + pub fn ldap_first_entry(ld: *mut LDAP, res: *mut LDAPMessage) -> *mut LDAPMessage; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_first_reference(ld: *mut ldap, res: *mut LDAPMessage) -> *mut LDAPMessage; + pub fn ldap_first_reference(ld: *mut LDAP, res: *mut LDAPMessage) -> *mut LDAPMessage; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_free_controls(controls: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_free_controls(controls: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_free_controlsA(controls: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_free_controlsA(controls: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_free_controlsW(controls: *mut *mut ldapcontrolW) -> u32; + pub fn ldap_free_controlsW(controls: *mut *mut LDAPControlW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_get_dn(ld: *mut ldap, entry: *mut LDAPMessage) -> ::windows_sys::core::PSTR; + pub fn ldap_get_dn(ld: *mut LDAP, entry: *mut LDAPMessage) -> ::windows_sys::core::PSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_get_dnA(ld: *mut ldap, entry: *mut LDAPMessage) -> ::windows_sys::core::PSTR; + pub fn ldap_get_dnA(ld: *mut LDAP, entry: *mut LDAPMessage) -> ::windows_sys::core::PSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_get_dnW(ld: *mut ldap, entry: *mut LDAPMessage) -> ::windows_sys::core::PWSTR; + pub fn ldap_get_dnW(ld: *mut LDAP, entry: *mut LDAPMessage) -> ::windows_sys::core::PWSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_get_next_page(externalhandle: *mut ldap, searchhandle: *mut ldapsearch, pagesize: u32, messagenumber: *mut u32) -> u32; + pub fn ldap_get_next_page(externalhandle: *mut LDAP, searchhandle: *mut LDAPSearch, pagesize: u32, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_get_next_page_s(externalhandle: *mut ldap, searchhandle: *mut ldapsearch, timeout: *mut LDAP_TIMEVAL, pagesize: u32, totalcount: *mut u32, results: *mut *mut LDAPMessage) -> u32; + pub fn ldap_get_next_page_s(externalhandle: *mut LDAP, searchhandle: *mut LDAPSearch, timeout: *mut LDAP_TIMEVAL, pagesize: u32, totalcount: *mut u32, results: *mut *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_get_option(ld: *mut ldap, option: i32, outvalue: *mut ::core::ffi::c_void) -> u32; + pub fn ldap_get_option(ld: *mut LDAP, option: i32, outvalue: *mut ::core::ffi::c_void) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_get_optionW(ld: *mut ldap, option: i32, outvalue: *mut ::core::ffi::c_void) -> u32; + pub fn ldap_get_optionW(ld: *mut LDAP, option: i32, outvalue: *mut ::core::ffi::c_void) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_get_paged_count(externalhandle: *mut ldap, searchblock: *mut ldapsearch, totalcount: *mut u32, results: *mut LDAPMessage) -> u32; + pub fn ldap_get_paged_count(externalhandle: *mut LDAP, searchblock: *mut LDAPSearch, totalcount: *mut u32, results: *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_get_values(ld: *mut ldap, entry: *mut LDAPMessage, attr: ::windows_sys::core::PCSTR) -> *mut ::windows_sys::core::PSTR; + pub fn ldap_get_values(ld: *mut LDAP, entry: *mut LDAPMessage, attr: ::windows_sys::core::PCSTR) -> *mut ::windows_sys::core::PSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_get_valuesA(ld: *mut ldap, entry: *mut LDAPMessage, attr: ::windows_sys::core::PCSTR) -> *mut ::windows_sys::core::PSTR; + pub fn ldap_get_valuesA(ld: *mut LDAP, entry: *mut LDAPMessage, attr: ::windows_sys::core::PCSTR) -> *mut ::windows_sys::core::PSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_get_valuesW(ld: *mut ldap, entry: *mut LDAPMessage, attr: ::windows_sys::core::PCWSTR) -> *mut ::windows_sys::core::PWSTR; + pub fn ldap_get_valuesW(ld: *mut LDAP, entry: *mut LDAPMessage, attr: ::windows_sys::core::PCWSTR) -> *mut ::windows_sys::core::PWSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_get_values_len(externalhandle: *mut ldap, message: *mut LDAPMessage, attr: ::windows_sys::core::PCSTR) -> *mut *mut LDAP_BERVAL; + pub fn ldap_get_values_len(externalhandle: *mut LDAP, message: *mut LDAPMessage, attr: ::windows_sys::core::PCSTR) -> *mut *mut LDAP_BERVAL; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_get_values_lenA(externalhandle: *mut ldap, message: *mut LDAPMessage, attr: ::windows_sys::core::PCSTR) -> *mut *mut LDAP_BERVAL; + pub fn ldap_get_values_lenA(externalhandle: *mut LDAP, message: *mut LDAPMessage, attr: ::windows_sys::core::PCSTR) -> *mut *mut LDAP_BERVAL; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_get_values_lenW(externalhandle: *mut ldap, message: *mut LDAPMessage, attr: ::windows_sys::core::PCWSTR) -> *mut *mut LDAP_BERVAL; + pub fn ldap_get_values_lenW(externalhandle: *mut LDAP, message: *mut LDAPMessage, attr: ::windows_sys::core::PCWSTR) -> *mut *mut LDAP_BERVAL; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_init(hostname: ::windows_sys::core::PCSTR, portnumber: u32) -> *mut ldap; + pub fn ldap_init(hostname: ::windows_sys::core::PCSTR, portnumber: u32) -> *mut LDAP; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_initA(hostname: ::windows_sys::core::PCSTR, portnumber: u32) -> *mut ldap; + pub fn ldap_initA(hostname: ::windows_sys::core::PCSTR, portnumber: u32) -> *mut LDAP; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_initW(hostname: ::windows_sys::core::PCWSTR, portnumber: u32) -> *mut ldap; + pub fn ldap_initW(hostname: ::windows_sys::core::PCWSTR, portnumber: u32) -> *mut LDAP; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub fn ldap_memfree(block: ::windows_sys::core::PCSTR); #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] @@ -336,260 +336,260 @@ extern "cdecl" { #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub fn ldap_memfreeW(block: ::windows_sys::core::PCWSTR); #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modify(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, mods: *mut *mut ldapmodA) -> u32; + pub fn ldap_modify(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, mods: *mut *mut LDAPModA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modifyA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, mods: *mut *mut ldapmodA) -> u32; + pub fn ldap_modifyA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, mods: *mut *mut LDAPModA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modifyW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, mods: *mut *mut ldapmodW) -> u32; + pub fn ldap_modifyW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, mods: *mut *mut LDAPModW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_modify_ext(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, mods: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + pub fn ldap_modify_ext(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, mods: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_modify_extA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, mods: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + pub fn ldap_modify_extA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, mods: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_modify_extW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, mods: *mut *mut ldapmodW, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, messagenumber: *mut u32) -> u32; + pub fn ldap_modify_extW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, mods: *mut *mut LDAPModW, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_modify_ext_s(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, mods: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_modify_ext_s(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, mods: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_modify_ext_sA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, mods: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_modify_ext_sA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, mods: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_modify_ext_sW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, mods: *mut *mut ldapmodW, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW) -> u32; + pub fn ldap_modify_ext_sW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, mods: *mut *mut LDAPModW, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modify_s(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, mods: *mut *mut ldapmodA) -> u32; + pub fn ldap_modify_s(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, mods: *mut *mut LDAPModA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modify_sA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, mods: *mut *mut ldapmodA) -> u32; + pub fn ldap_modify_sA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, mods: *mut *mut LDAPModA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modify_sW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, mods: *mut *mut ldapmodW) -> u32; + pub fn ldap_modify_sW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, mods: *mut *mut LDAPModW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modrdn(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_modrdn(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modrdn2(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR, deleteoldrdn: i32) -> u32; + pub fn ldap_modrdn2(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR, deleteoldrdn: i32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modrdn2A(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR, deleteoldrdn: i32) -> u32; + pub fn ldap_modrdn2A(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR, deleteoldrdn: i32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modrdn2W(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCWSTR, newdistinguishedname: ::windows_sys::core::PCWSTR, deleteoldrdn: i32) -> u32; + pub fn ldap_modrdn2W(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCWSTR, newdistinguishedname: ::windows_sys::core::PCWSTR, deleteoldrdn: i32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modrdn2_s(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR, deleteoldrdn: i32) -> u32; + pub fn ldap_modrdn2_s(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR, deleteoldrdn: i32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modrdn2_sA(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR, deleteoldrdn: i32) -> u32; + pub fn ldap_modrdn2_sA(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR, deleteoldrdn: i32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modrdn2_sW(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCWSTR, newdistinguishedname: ::windows_sys::core::PCWSTR, deleteoldrdn: i32) -> u32; + pub fn ldap_modrdn2_sW(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCWSTR, newdistinguishedname: ::windows_sys::core::PCWSTR, deleteoldrdn: i32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modrdnA(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_modrdnA(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modrdnW(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCWSTR, newdistinguishedname: ::windows_sys::core::PCWSTR) -> u32; + pub fn ldap_modrdnW(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCWSTR, newdistinguishedname: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modrdn_s(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_modrdn_s(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modrdn_sA(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_modrdn_sA(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCSTR, newdistinguishedname: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_modrdn_sW(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCWSTR, newdistinguishedname: ::windows_sys::core::PCWSTR) -> u32; + pub fn ldap_modrdn_sW(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCWSTR, newdistinguishedname: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn ldap_msgfree(res: *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_next_attribute(ld: *mut ldap, entry: *mut LDAPMessage, ptr: *mut berelement) -> ::windows_sys::core::PSTR; + pub fn ldap_next_attribute(ld: *mut LDAP, entry: *mut LDAPMessage, ptr: *mut BerElement) -> ::windows_sys::core::PSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_next_attributeA(ld: *mut ldap, entry: *mut LDAPMessage, ptr: *mut berelement) -> ::windows_sys::core::PSTR; + pub fn ldap_next_attributeA(ld: *mut LDAP, entry: *mut LDAPMessage, ptr: *mut BerElement) -> ::windows_sys::core::PSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_next_attributeW(ld: *mut ldap, entry: *mut LDAPMessage, ptr: *mut berelement) -> ::windows_sys::core::PWSTR; + pub fn ldap_next_attributeW(ld: *mut LDAP, entry: *mut LDAPMessage, ptr: *mut BerElement) -> ::windows_sys::core::PWSTR; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_next_entry(ld: *mut ldap, entry: *mut LDAPMessage) -> *mut LDAPMessage; + pub fn ldap_next_entry(ld: *mut LDAP, entry: *mut LDAPMessage) -> *mut LDAPMessage; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_next_reference(ld: *mut ldap, entry: *mut LDAPMessage) -> *mut LDAPMessage; + pub fn ldap_next_reference(ld: *mut LDAP, entry: *mut LDAPMessage) -> *mut LDAPMessage; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_open(hostname: ::windows_sys::core::PCSTR, portnumber: u32) -> *mut ldap; + pub fn ldap_open(hostname: ::windows_sys::core::PCSTR, portnumber: u32) -> *mut LDAP; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_openA(hostname: ::windows_sys::core::PCSTR, portnumber: u32) -> *mut ldap; + pub fn ldap_openA(hostname: ::windows_sys::core::PCSTR, portnumber: u32) -> *mut LDAP; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_openW(hostname: ::windows_sys::core::PCWSTR, portnumber: u32) -> *mut ldap; + pub fn ldap_openW(hostname: ::windows_sys::core::PCWSTR, portnumber: u32) -> *mut LDAP; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub 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; + pub 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; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub 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; + pub 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; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_parse_page_control(externalhandle: *mut ldap, servercontrols: *mut *mut ldapcontrolA, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32; + pub fn ldap_parse_page_control(externalhandle: *mut LDAP, servercontrols: *mut *mut LDAPControlA, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_parse_page_controlA(externalhandle: *mut ldap, servercontrols: *mut *mut ldapcontrolA, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32; + pub fn ldap_parse_page_controlA(externalhandle: *mut LDAP, servercontrols: *mut *mut LDAPControlA, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_parse_page_controlW(externalhandle: *mut ldap, servercontrols: *mut *mut ldapcontrolW, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32; + pub fn ldap_parse_page_controlW(externalhandle: *mut LDAP, servercontrols: *mut *mut LDAPControlW, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_parse_reference(connection: *mut ldap, resultmessage: *mut LDAPMessage, referrals: *mut *mut ::windows_sys::core::PSTR) -> u32; + pub fn ldap_parse_reference(connection: *mut LDAP, resultmessage: *mut LDAPMessage, referrals: *mut *mut ::windows_sys::core::PSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_parse_referenceA(connection: *mut ldap, resultmessage: *mut LDAPMessage, referrals: *mut *mut ::windows_sys::core::PSTR) -> u32; + pub fn ldap_parse_referenceA(connection: *mut LDAP, resultmessage: *mut LDAPMessage, referrals: *mut *mut ::windows_sys::core::PSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_parse_referenceW(connection: *mut ldap, resultmessage: *mut LDAPMessage, referrals: *mut *mut ::windows_sys::core::PWSTR) -> u32; + pub fn ldap_parse_referenceW(connection: *mut LDAP, resultmessage: *mut LDAPMessage, referrals: *mut *mut ::windows_sys::core::PWSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub 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; + pub 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; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub 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; + pub 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; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub 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; + pub 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; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_parse_sort_control(externalhandle: *mut ldap, control: *mut *mut ldapcontrolA, result: *mut u32, attribute: *mut ::windows_sys::core::PSTR) -> u32; + pub fn ldap_parse_sort_control(externalhandle: *mut LDAP, control: *mut *mut LDAPControlA, result: *mut u32, attribute: *mut ::windows_sys::core::PSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_parse_sort_controlA(externalhandle: *mut ldap, control: *mut *mut ldapcontrolA, result: *mut u32, attribute: *mut ::windows_sys::core::PSTR) -> u32; + pub fn ldap_parse_sort_controlA(externalhandle: *mut LDAP, control: *mut *mut LDAPControlA, result: *mut u32, attribute: *mut ::windows_sys::core::PSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_parse_sort_controlW(externalhandle: *mut ldap, control: *mut *mut ldapcontrolW, result: *mut u32, attribute: *mut ::windows_sys::core::PWSTR) -> u32; + pub fn ldap_parse_sort_controlW(externalhandle: *mut LDAP, control: *mut *mut LDAPControlW, result: *mut u32, attribute: *mut ::windows_sys::core::PWSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_parse_vlv_controlA(externalhandle: *mut ldap, control: *mut *mut ldapcontrolA, targetpos: *mut u32, listcount: *mut u32, context: *mut *mut LDAP_BERVAL, errcode: *mut i32) -> i32; + pub fn ldap_parse_vlv_controlA(externalhandle: *mut LDAP, control: *mut *mut LDAPControlA, targetpos: *mut u32, listcount: *mut u32, context: *mut *mut LDAP_BERVAL, errcode: *mut i32) -> i32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_parse_vlv_controlW(externalhandle: *mut ldap, control: *mut *mut ldapcontrolW, targetpos: *mut u32, listcount: *mut u32, context: *mut *mut LDAP_BERVAL, errcode: *mut i32) -> i32; + pub fn ldap_parse_vlv_controlW(externalhandle: *mut LDAP, control: *mut *mut LDAPControlW, targetpos: *mut u32, listcount: *mut u32, context: *mut *mut LDAP_BERVAL, errcode: *mut i32) -> i32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_perror(ld: *mut ldap, msg: ::windows_sys::core::PCSTR); + pub fn ldap_perror(ld: *mut LDAP, msg: ::windows_sys::core::PCSTR); #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_rename_ext(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, newrdn: ::windows_sys::core::PCSTR, newparent: ::windows_sys::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + pub fn ldap_rename_ext(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, newrdn: ::windows_sys::core::PCSTR, newparent: ::windows_sys::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_rename_extA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, newrdn: ::windows_sys::core::PCSTR, newparent: ::windows_sys::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + pub fn ldap_rename_extA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, newrdn: ::windows_sys::core::PCSTR, newparent: ::windows_sys::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_rename_extW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, newrdn: ::windows_sys::core::PCWSTR, newparent: ::windows_sys::core::PCWSTR, deleteoldrdn: i32, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, messagenumber: *mut u32) -> u32; + pub fn ldap_rename_extW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, newrdn: ::windows_sys::core::PCWSTR, newparent: ::windows_sys::core::PCWSTR, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_rename_ext_s(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, newrdn: ::windows_sys::core::PCSTR, newparent: ::windows_sys::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_rename_ext_s(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, newrdn: ::windows_sys::core::PCSTR, newparent: ::windows_sys::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_rename_ext_sA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, newrdn: ::windows_sys::core::PCSTR, newparent: ::windows_sys::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_rename_ext_sA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, newrdn: ::windows_sys::core::PCSTR, newparent: ::windows_sys::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_rename_ext_sW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, newrdn: ::windows_sys::core::PCWSTR, newparent: ::windows_sys::core::PCWSTR, deleteoldrdn: i32, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW) -> u32; + pub fn ldap_rename_ext_sW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, newrdn: ::windows_sys::core::PCWSTR, newparent: ::windows_sys::core::PCWSTR, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_result(ld: *mut ldap, msgid: u32, all: u32, timeout: *const LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; + pub fn ldap_result(ld: *mut LDAP, msgid: u32, all: u32, timeout: *const LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_result2error(ld: *mut ldap, res: *mut LDAPMessage, freeit: u32) -> u32; + pub fn ldap_result2error(ld: *mut LDAP, res: *mut LDAPMessage, freeit: u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_sasl_bindA(externalhandle: *mut ldap, distname: ::windows_sys::core::PCSTR, authmechanism: ::windows_sys::core::PCSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut ldapcontrolA, clientctrls: *mut *mut ldapcontrolA, messagenumber: *mut i32) -> i32; + pub fn ldap_sasl_bindA(externalhandle: *mut LDAP, distname: ::windows_sys::core::PCSTR, authmechanism: ::windows_sys::core::PCSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlA, clientctrls: *mut *mut LDAPControlA, messagenumber: *mut i32) -> i32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_sasl_bindW(externalhandle: *mut ldap, distname: ::windows_sys::core::PCWSTR, authmechanism: ::windows_sys::core::PCWSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut ldapcontrolW, clientctrls: *mut *mut ldapcontrolW, messagenumber: *mut i32) -> i32; + pub fn ldap_sasl_bindW(externalhandle: *mut LDAP, distname: ::windows_sys::core::PCWSTR, authmechanism: ::windows_sys::core::PCWSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlW, clientctrls: *mut *mut LDAPControlW, messagenumber: *mut i32) -> i32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_sasl_bind_sA(externalhandle: *mut ldap, distname: ::windows_sys::core::PCSTR, authmechanism: ::windows_sys::core::PCSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut ldapcontrolA, clientctrls: *mut *mut ldapcontrolA, serverdata: *mut *mut LDAP_BERVAL) -> i32; + pub fn ldap_sasl_bind_sA(externalhandle: *mut LDAP, distname: ::windows_sys::core::PCSTR, authmechanism: ::windows_sys::core::PCSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlA, clientctrls: *mut *mut LDAPControlA, serverdata: *mut *mut LDAP_BERVAL) -> i32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_sasl_bind_sW(externalhandle: *mut ldap, distname: ::windows_sys::core::PCWSTR, authmechanism: ::windows_sys::core::PCWSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut ldapcontrolW, clientctrls: *mut *mut ldapcontrolW, serverdata: *mut *mut LDAP_BERVAL) -> i32; + pub fn ldap_sasl_bind_sW(externalhandle: *mut LDAP, distname: ::windows_sys::core::PCWSTR, authmechanism: ::windows_sys::core::PCWSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlW, clientctrls: *mut *mut LDAPControlW, serverdata: *mut *mut LDAP_BERVAL) -> i32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_search(ld: *mut ldap, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32) -> u32; + pub fn ldap_search(ld: *mut LDAP, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_searchA(ld: *mut ldap, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32) -> u32; + pub fn ldap_searchA(ld: *mut LDAP, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_searchW(ld: *mut ldap, base: ::windows_sys::core::PCWSTR, scope: u32, filter: ::windows_sys::core::PCWSTR, attrs: *const *const u16, attrsonly: u32) -> u32; + pub fn ldap_searchW(ld: *mut LDAP, base: ::windows_sys::core::PCWSTR, scope: u32, filter: ::windows_sys::core::PCWSTR, attrs: *const *const u16, attrsonly: u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_search_abandon_page(externalhandle: *mut ldap, searchblock: *mut ldapsearch) -> u32; + pub fn ldap_search_abandon_page(externalhandle: *mut LDAP, searchblock: *mut LDAPSearch) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_ext(ld: *mut ldap, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const ldapcontrolA, clientcontrols: *const *const ldapcontrolA, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32; + pub fn ldap_search_ext(ld: *mut LDAP, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const LDAPControlA, clientcontrols: *const *const LDAPControlA, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_extA(ld: *mut ldap, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const ldapcontrolA, clientcontrols: *const *const ldapcontrolA, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32; + pub fn ldap_search_extA(ld: *mut LDAP, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const LDAPControlA, clientcontrols: *const *const LDAPControlA, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_extW(ld: *mut ldap, base: ::windows_sys::core::PCWSTR, scope: u32, filter: ::windows_sys::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, servercontrols: *const *const ldapcontrolW, clientcontrols: *const *const ldapcontrolW, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32; + pub fn ldap_search_extW(ld: *mut LDAP, base: ::windows_sys::core::PCWSTR, scope: u32, filter: ::windows_sys::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, servercontrols: *const *const LDAPControlW, clientcontrols: *const *const LDAPControlW, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_ext_s(ld: *mut ldap, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const ldapcontrolA, clientcontrols: *const *const ldapcontrolA, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32; + pub fn ldap_search_ext_s(ld: *mut LDAP, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const LDAPControlA, clientcontrols: *const *const LDAPControlA, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_ext_sA(ld: *mut ldap, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const ldapcontrolA, clientcontrols: *const *const ldapcontrolA, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32; + pub fn ldap_search_ext_sA(ld: *mut LDAP, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const LDAPControlA, clientcontrols: *const *const LDAPControlA, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_ext_sW(ld: *mut ldap, base: ::windows_sys::core::PCWSTR, scope: u32, filter: ::windows_sys::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, servercontrols: *const *const ldapcontrolW, clientcontrols: *const *const ldapcontrolW, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32; + pub fn ldap_search_ext_sW(ld: *mut LDAP, base: ::windows_sys::core::PCWSTR, scope: u32, filter: ::windows_sys::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, servercontrols: *const *const LDAPControlW, clientcontrols: *const *const LDAPControlW, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_init_page(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCSTR, scopeofsearch: u32, searchfilter: ::windows_sys::core::PCSTR, attributelist: *mut *mut i8, attributesonly: u32, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut ldapsortkeyA) -> *mut ldapsearch; + pub fn ldap_search_init_page(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCSTR, scopeofsearch: u32, searchfilter: ::windows_sys::core::PCSTR, attributelist: *mut *mut i8, attributesonly: u32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut LDAPSortKeyA) -> *mut LDAPSearch; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_init_pageA(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCSTR, scopeofsearch: u32, searchfilter: ::windows_sys::core::PCSTR, attributelist: *const *const i8, attributesonly: u32, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut ldapsortkeyA) -> *mut ldapsearch; + pub fn ldap_search_init_pageA(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCSTR, scopeofsearch: u32, searchfilter: ::windows_sys::core::PCSTR, attributelist: *const *const i8, attributesonly: u32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut LDAPSortKeyA) -> *mut LDAPSearch; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_init_pageW(externalhandle: *mut ldap, distinguishedname: ::windows_sys::core::PCWSTR, scopeofsearch: u32, searchfilter: ::windows_sys::core::PCWSTR, attributelist: *const *const u16, attributesonly: u32, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut ldapsortkeyW) -> *mut ldapsearch; + pub fn ldap_search_init_pageW(externalhandle: *mut LDAP, distinguishedname: ::windows_sys::core::PCWSTR, scopeofsearch: u32, searchfilter: ::windows_sys::core::PCWSTR, attributelist: *const *const u16, attributesonly: u32, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut LDAPSortKeyW) -> *mut LDAPSearch; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_s(ld: *mut ldap, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32; + pub fn ldap_search_s(ld: *mut LDAP, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_sA(ld: *mut ldap, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32; + pub fn ldap_search_sA(ld: *mut LDAP, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_sW(ld: *mut ldap, base: ::windows_sys::core::PCWSTR, scope: u32, filter: ::windows_sys::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32; + pub fn ldap_search_sW(ld: *mut LDAP, base: ::windows_sys::core::PCWSTR, scope: u32, filter: ::windows_sys::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_st(ld: *mut ldap, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; + pub fn ldap_search_st(ld: *mut LDAP, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_stA(ld: *mut ldap, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; + pub fn ldap_search_stA(ld: *mut LDAP, base: ::windows_sys::core::PCSTR, scope: u32, filter: ::windows_sys::core::PCSTR, attrs: *const *const i8, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_search_stW(ld: *mut ldap, base: ::windows_sys::core::PCWSTR, scope: u32, filter: ::windows_sys::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; + pub fn ldap_search_stW(ld: *mut LDAP, base: ::windows_sys::core::PCWSTR, scope: u32, filter: ::windows_sys::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub fn ldap_set_dbg_flags(newflags: u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub fn ldap_set_dbg_routine(debugprintroutine: DBGPRINT); #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_set_option(ld: *mut ldap, option: i32, invalue: *const ::core::ffi::c_void) -> u32; + pub fn ldap_set_option(ld: *mut LDAP, option: i32, invalue: *const ::core::ffi::c_void) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_set_optionW(ld: *mut ldap, option: i32, invalue: *const ::core::ffi::c_void) -> u32; + pub fn ldap_set_optionW(ld: *mut LDAP, option: i32, invalue: *const ::core::ffi::c_void) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_simple_bind(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, passwd: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_simple_bind(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, passwd: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_simple_bindA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, passwd: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_simple_bindA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, passwd: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_simple_bindW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, passwd: ::windows_sys::core::PCWSTR) -> u32; + pub fn ldap_simple_bindW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, passwd: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_simple_bind_s(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, passwd: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_simple_bind_s(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, passwd: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_simple_bind_sA(ld: *mut ldap, dn: ::windows_sys::core::PCSTR, passwd: ::windows_sys::core::PCSTR) -> u32; + pub fn ldap_simple_bind_sA(ld: *mut LDAP, dn: ::windows_sys::core::PCSTR, passwd: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_simple_bind_sW(ld: *mut ldap, dn: ::windows_sys::core::PCWSTR, passwd: ::windows_sys::core::PCWSTR) -> u32; + pub fn ldap_simple_bind_sW(ld: *mut LDAP, dn: ::windows_sys::core::PCWSTR, passwd: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_sslinit(hostname: ::windows_sys::core::PCSTR, portnumber: u32, secure: i32) -> *mut ldap; + pub fn ldap_sslinit(hostname: ::windows_sys::core::PCSTR, portnumber: u32, secure: i32) -> *mut LDAP; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_sslinitA(hostname: ::windows_sys::core::PCSTR, portnumber: u32, secure: i32) -> *mut ldap; + pub fn ldap_sslinitA(hostname: ::windows_sys::core::PCSTR, portnumber: u32, secure: i32) -> *mut LDAP; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_sslinitW(hostname: ::windows_sys::core::PCWSTR, portnumber: u32, secure: i32) -> *mut ldap; + pub fn ldap_sslinitW(hostname: ::windows_sys::core::PCWSTR, portnumber: u32, secure: i32) -> *mut LDAP; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_start_tls_sA(externalhandle: *mut ldap, serverreturnvalue: *mut u32, result: *mut *mut LDAPMessage, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + pub fn ldap_start_tls_sA(externalhandle: *mut LDAP, serverreturnvalue: *mut u32, result: *mut *mut LDAPMessage, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_start_tls_sW(externalhandle: *mut ldap, serverreturnvalue: *mut u32, result: *mut *mut LDAPMessage, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW) -> u32; + pub fn ldap_start_tls_sW(externalhandle: *mut LDAP, serverreturnvalue: *mut u32, result: *mut *mut LDAPMessage, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_startup(version: *mut ldap_version_info, instance: *mut super::super::Foundation::HANDLE) -> u32; + pub fn ldap_startup(version: *mut LDAP_VERSION_INFO, instance: *mut super::super::Foundation::HANDLE) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ldap_stop_tls_s(externalhandle: *mut ldap) -> super::super::Foundation::BOOLEAN; + pub fn ldap_stop_tls_s(externalhandle: *mut LDAP) -> super::super::Foundation::BOOLEAN; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub fn ldap_ufn2dn(ufn: ::windows_sys::core::PCSTR, pdn: *mut ::windows_sys::core::PSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] @@ -597,9 +597,9 @@ extern "cdecl" { #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub fn ldap_ufn2dnW(ufn: ::windows_sys::core::PCWSTR, pdn: *mut ::windows_sys::core::PWSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_unbind(ld: *mut ldap) -> u32; + pub fn ldap_unbind(ld: *mut LDAP) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] - pub fn ldap_unbind_s(ld: *mut ldap) -> u32; + pub fn ldap_unbind_s(ld: *mut LDAP) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub fn ldap_value_free(vals: *const ::windows_sys::core::PSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] @@ -1383,112 +1383,19 @@ pub const LDAP_CLIENT_LOOP: LDAP_RETCODE = 96i32; pub const LDAP_REFERRAL_LIMIT_EXCEEDED: LDAP_RETCODE = 97i32; #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct LDAPAPIFeatureInfoA { - pub ldapaif_info_version: i32, - pub ldapaif_name: ::windows_sys::core::PSTR, - pub ldapaif_version: i32, -} -impl ::core::marker::Copy for LDAPAPIFeatureInfoA {} -impl ::core::clone::Clone for LDAPAPIFeatureInfoA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct LDAPAPIFeatureInfoW { - pub ldapaif_info_version: i32, - pub ldapaif_name: ::windows_sys::core::PWSTR, - pub ldapaif_version: i32, -} -impl ::core::marker::Copy for LDAPAPIFeatureInfoW {} -impl ::core::clone::Clone for LDAPAPIFeatureInfoW { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct LDAPMessage { - pub lm_msgid: u32, - pub lm_msgtype: u32, - pub lm_ber: *mut ::core::ffi::c_void, - pub lm_chain: *mut LDAPMessage, - pub lm_next: *mut LDAPMessage, - pub lm_time: u32, - pub Connection: *mut ldap, - 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, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for LDAPMessage {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for LDAPMessage { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct LDAP_BERVAL { - pub bv_len: u32, - pub bv_val: ::windows_sys::core::PSTR, -} -impl ::core::marker::Copy for LDAP_BERVAL {} -impl ::core::clone::Clone for LDAP_BERVAL { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct LDAP_REFERRAL_CALLBACK { - pub SizeOfCallbacks: u32, - pub QueryForConnection: QUERYFORCONNECTION, - pub NotifyRoutine: NOTIFYOFNEWCONNECTION, - pub DereferenceRoutine: DEREFERENCECONNECTION, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for LDAP_REFERRAL_CALLBACK {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for LDAP_REFERRAL_CALLBACK { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct LDAP_TIMEVAL { - pub tv_sec: i32, - pub tv_usec: i32, -} -impl ::core::marker::Copy for LDAP_TIMEVAL {} -impl ::core::clone::Clone for LDAP_TIMEVAL { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct berelement { +pub struct BerElement { pub opaque: ::windows_sys::core::PSTR, } -impl ::core::marker::Copy for berelement {} -impl ::core::clone::Clone for berelement { +impl ::core::marker::Copy for BerElement {} +impl ::core::clone::Clone for BerElement { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldap { - pub ld_sb: ldap_0, +pub struct LDAP { + pub ld_sb: LDAP_0, pub ld_host: ::windows_sys::core::PSTR, pub ld_version: u32, pub ld_lberoptions: u8, @@ -1505,42 +1412,55 @@ pub struct ldap { pub ld_refhoplimit: u32, pub ld_options: u32, } -impl ::core::marker::Copy for ldap {} -impl ::core::clone::Clone for ldap { +impl ::core::marker::Copy for LDAP {} +impl ::core::clone::Clone for LDAP { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldap_0 { +pub struct LDAP_0 { pub sb_sd: usize, pub Reserved1: [u8; 41], pub sb_naddr: usize, pub Reserved2: [u8; 24], } -impl ::core::marker::Copy for ldap_0 {} -impl ::core::clone::Clone for ldap_0 { +impl ::core::marker::Copy for LDAP_0 {} +impl ::core::clone::Clone for LDAP_0 { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldap_version_info { - pub lv_size: u32, - pub lv_major: u32, - pub lv_minor: u32, +pub struct LDAPAPIFeatureInfoA { + pub ldapaif_info_version: i32, + pub ldapaif_name: ::windows_sys::core::PSTR, + pub ldapaif_version: i32, +} +impl ::core::marker::Copy for LDAPAPIFeatureInfoA {} +impl ::core::clone::Clone for LDAPAPIFeatureInfoA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] +pub struct LDAPAPIFeatureInfoW { + pub ldapaif_info_version: i32, + pub ldapaif_name: ::windows_sys::core::PWSTR, + pub ldapaif_version: i32, } -impl ::core::marker::Copy for ldap_version_info {} -impl ::core::clone::Clone for ldap_version_info { +impl ::core::marker::Copy for LDAPAPIFeatureInfoW {} +impl ::core::clone::Clone for LDAPAPIFeatureInfoW { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldapapiinfoA { +pub struct LDAPAPIInfoA { pub ldapai_info_version: i32, pub ldapai_api_version: i32, pub ldapai_protocol_version: i32, @@ -1548,15 +1468,15 @@ pub struct ldapapiinfoA { pub ldapai_vendor_name: ::windows_sys::core::PSTR, pub ldapai_vendor_version: i32, } -impl ::core::marker::Copy for ldapapiinfoA {} -impl ::core::clone::Clone for ldapapiinfoA { +impl ::core::marker::Copy for LDAPAPIInfoA {} +impl ::core::clone::Clone for LDAPAPIInfoA { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldapapiinfoW { +pub struct LDAPAPIInfoW { pub ldapai_info_version: i32, pub ldapai_api_version: i32, pub ldapai_protocol_version: i32, @@ -1564,8 +1484,8 @@ pub struct ldapapiinfoW { pub ldapai_vendor_name: ::windows_sys::core::PWSTR, pub ldapai_vendor_version: i32, } -impl ::core::marker::Copy for ldapapiinfoW {} -impl ::core::clone::Clone for ldapapiinfoW { +impl ::core::marker::Copy for LDAPAPIInfoW {} +impl ::core::clone::Clone for LDAPAPIInfoW { fn clone(&self) -> Self { *self } @@ -1573,15 +1493,15 @@ impl ::core::clone::Clone for ldapapiinfoW { #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct ldapcontrolA { +pub struct LDAPControlA { pub ldctl_oid: ::windows_sys::core::PSTR, pub ldctl_value: LDAP_BERVAL, pub ldctl_iscritical: super::super::Foundation::BOOLEAN, } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ldapcontrolA {} +impl ::core::marker::Copy for LDAPControlA {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ldapcontrolA { +impl ::core::clone::Clone for LDAPControlA { fn clone(&self) -> Self { *self } @@ -1589,83 +1509,109 @@ impl ::core::clone::Clone for ldapcontrolA { #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct ldapcontrolW { +pub struct LDAPControlW { pub ldctl_oid: ::windows_sys::core::PWSTR, pub ldctl_value: LDAP_BERVAL, pub ldctl_iscritical: super::super::Foundation::BOOLEAN, } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ldapcontrolW {} +impl ::core::marker::Copy for LDAPControlW {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for LDAPControlW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct LDAPMessage { + pub lm_msgid: u32, + pub lm_msgtype: u32, + pub lm_ber: *mut ::core::ffi::c_void, + pub lm_chain: *mut LDAPMessage, + pub lm_next: *mut LDAPMessage, + pub lm_time: u32, + pub Connection: *mut LDAP, + 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, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for LDAPMessage {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ldapcontrolW { +impl ::core::clone::Clone for LDAPMessage { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldapmodA { +pub struct LDAPModA { pub mod_op: u32, pub mod_type: ::windows_sys::core::PSTR, - pub mod_vals: ldapmodA_0, + pub mod_vals: LDAPModA_0, } -impl ::core::marker::Copy for ldapmodA {} -impl ::core::clone::Clone for ldapmodA { +impl ::core::marker::Copy for LDAPModA {} +impl ::core::clone::Clone for LDAPModA { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub union ldapmodA_0 { +pub union LDAPModA_0 { pub modv_strvals: *mut ::windows_sys::core::PSTR, pub modv_bvals: *mut *mut LDAP_BERVAL, } -impl ::core::marker::Copy for ldapmodA_0 {} -impl ::core::clone::Clone for ldapmodA_0 { +impl ::core::marker::Copy for LDAPModA_0 {} +impl ::core::clone::Clone for LDAPModA_0 { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldapmodW { +pub struct LDAPModW { pub mod_op: u32, pub mod_type: ::windows_sys::core::PWSTR, - pub mod_vals: ldapmodW_0, + pub mod_vals: LDAPModW_0, } -impl ::core::marker::Copy for ldapmodW {} -impl ::core::clone::Clone for ldapmodW { +impl ::core::marker::Copy for LDAPModW {} +impl ::core::clone::Clone for LDAPModW { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub union ldapmodW_0 { +pub union LDAPModW_0 { pub modv_strvals: *mut ::windows_sys::core::PWSTR, pub modv_bvals: *mut *mut LDAP_BERVAL, } -impl ::core::marker::Copy for ldapmodW_0 {} -impl ::core::clone::Clone for ldapmodW_0 { +impl ::core::marker::Copy for LDAPModW_0 {} +impl ::core::clone::Clone for LDAPModW_0 { fn clone(&self) -> Self { *self } } #[repr(C)] -pub struct ldapsearch(pub u8); +pub struct LDAPSearch(pub u8); #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct ldapsortkeyA { +pub struct LDAPSortKeyA { pub sk_attrtype: ::windows_sys::core::PSTR, pub sk_matchruleoid: ::windows_sys::core::PSTR, pub sk_reverseorder: super::super::Foundation::BOOLEAN, } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ldapsortkeyA {} +impl ::core::marker::Copy for LDAPSortKeyA {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ldapsortkeyA { +impl ::core::clone::Clone for LDAPSortKeyA { fn clone(&self) -> Self { *self } @@ -1673,22 +1619,22 @@ impl ::core::clone::Clone for ldapsortkeyA { #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct ldapsortkeyW { +pub struct LDAPSortKeyW { pub sk_attrtype: ::windows_sys::core::PWSTR, pub sk_matchruleoid: ::windows_sys::core::PWSTR, pub sk_reverseorder: super::super::Foundation::BOOLEAN, } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ldapsortkeyW {} +impl ::core::marker::Copy for LDAPSortKeyW {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ldapsortkeyW { +impl ::core::clone::Clone for LDAPSortKeyW { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldapvlvinfo { +pub struct LDAPVLVInfo { pub ldvlv_version: i32, pub ldvlv_before_count: u32, pub ldvlv_after_count: u32, @@ -1698,8 +1644,62 @@ pub struct ldapvlvinfo { pub ldvlv_context: *mut LDAP_BERVAL, pub ldvlv_extradata: *mut ::core::ffi::c_void, } -impl ::core::marker::Copy for ldapvlvinfo {} -impl ::core::clone::Clone for ldapvlvinfo { +impl ::core::marker::Copy for LDAPVLVInfo {} +impl ::core::clone::Clone for LDAPVLVInfo { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] +pub struct LDAP_BERVAL { + pub bv_len: u32, + pub bv_val: ::windows_sys::core::PSTR, +} +impl ::core::marker::Copy for LDAP_BERVAL {} +impl ::core::clone::Clone for LDAP_BERVAL { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct LDAP_REFERRAL_CALLBACK { + pub SizeOfCallbacks: u32, + pub QueryForConnection: QUERYFORCONNECTION, + pub NotifyRoutine: NOTIFYOFNEWCONNECTION, + pub DereferenceRoutine: DEREFERENCECONNECTION, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for LDAP_REFERRAL_CALLBACK {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for LDAP_REFERRAL_CALLBACK { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] +pub struct LDAP_TIMEVAL { + pub tv_sec: i32, + pub tv_usec: i32, +} +impl ::core::marker::Copy for LDAP_TIMEVAL {} +impl ::core::clone::Clone for LDAP_TIMEVAL { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] +pub struct LDAP_VERSION_INFO { + pub lv_size: u32, + pub lv_major: u32, + pub lv_minor: u32, +} +impl ::core::marker::Copy for LDAP_VERSION_INFO {} +impl ::core::clone::Clone for LDAP_VERSION_INFO { fn clone(&self) -> Self { *self } @@ -1707,15 +1707,15 @@ impl ::core::clone::Clone for ldapvlvinfo { #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub type DBGPRINT = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub type DEREFERENCECONNECTION = ::core::option::Option u32>; +pub type DEREFERENCECONNECTION = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type NOTIFYOFNEWCONNECTION = ::core::option::Option super::super::Foundation::BOOLEAN>; +pub type NOTIFYOFNEWCONNECTION = ::core::option::Option super::super::Foundation::BOOLEAN>; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Security_Cryptography\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Authentication_Identity", feature = "Win32_Security_Cryptography"))] -pub type QUERYCLIENTCERT = ::core::option::Option super::super::Foundation::BOOLEAN>; +pub type QUERYCLIENTCERT = ::core::option::Option super::super::Foundation::BOOLEAN>; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub type QUERYFORCONNECTION = ::core::option::Option u32>; +pub type QUERYFORCONNECTION = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] -pub type VERIFYSERVERCERT = ::core::option::Option super::super::Foundation::BOOLEAN>; +pub type VERIFYSERVERCERT = ::core::option::Option super::super::Foundation::BOOLEAN>; diff --git a/crates/libs/sys/src/Windows/Win32/Networking/WinHttp/mod.rs b/crates/libs/sys/src/Windows/Win32/Networking/WinHttp/mod.rs index 70446ca376..a5fb10e754 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/WinHttp/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/WinHttp/mod.rs @@ -1626,6 +1626,17 @@ impl ::core::clone::Clone for WINHTTP_PROXY_INFO { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinHttp\"`*"] +pub struct WINHTTP_PROXY_NETWORKING_KEY { + pub pbBuffer: [u8; 128], +} +impl ::core::marker::Copy for WINHTTP_PROXY_NETWORKING_KEY {} +impl ::core::clone::Clone for WINHTTP_PROXY_NETWORKING_KEY { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinHttp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct WINHTTP_PROXY_RESULT { @@ -1694,7 +1705,7 @@ pub struct WINHTTP_PROXY_SETTINGS { pub dwDetectedInterfaceIpCount: u32, pub pdwDetectedInterfaceIp: *mut u32, pub cNetworkKeys: u32, - pub pNetworkKeys: *mut _WinHttpProxyNetworkKey, + pub pNetworkKeys: *mut WINHTTP_PROXY_NETWORKING_KEY, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for WINHTTP_PROXY_SETTINGS {} @@ -1842,16 +1853,5 @@ impl ::core::clone::Clone for WINHTTP_WEB_SOCKET_STATUS { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinHttp\"`*"] -pub struct _WinHttpProxyNetworkKey { - pub pbBuffer: [u8; 128], -} -impl ::core::marker::Copy for _WinHttpProxyNetworkKey {} -impl ::core::clone::Clone for _WinHttpProxyNetworkKey { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_Networking_WinHttp\"`*"] pub type WINHTTP_STATUS_CALLBACK = ::core::option::Option; diff --git a/crates/libs/sys/src/Windows/Win32/Networking/WinInet/mod.rs b/crates/libs/sys/src/Windows/Win32/Networking/WinInet/mod.rs index 8f7c026cd9..963d322f09 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/WinInet/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/WinInet/mod.rs @@ -1,20 +1,4 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DoConnectoidsExist() -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn IsProfilesEnabled() -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn PerformOperationOverUrlCacheA(pszurlsearchpattern: ::windows_sys::core::PCSTR, dwflags: u32, dwfilter: u32, groupid: i64, preserved1: *mut ::core::ffi::c_void, pdwreserved2: *mut u32, preserved3: *mut ::core::ffi::c_void, op: CACHE_OPERATOR, poperatordata: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] - pub fn UrlCacheFreeGlobalSpace(ulltargetsize: u64, dwfilter: u32) -> u32; - #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] - pub fn UrlCacheGetGlobalCacheSize(dwfilter: u32, pullsize: *mut u64, pulllimit: *mut u64) -> u32; -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] pub fn AppCacheCheckManifest(pwszmasterurl: ::windows_sys::core::PCWSTR, pwszmanifesturl: ::windows_sys::core::PCWSTR, pbmanifestdata: *const u8, dwmanifestdatasize: u32, pbmanifestresponseheaders: *const u8, dwmanifestresponseheaderssize: u32, pestate: *mut APP_CACHE_STATE, phnewappcache: *mut *mut ::core::ffi::c_void) -> u32; @@ -116,6 +100,9 @@ extern "system" { pub fn DetectAutoProxyUrl(pszautoproxyurl: ::windows_sys::core::PSTR, cchautoproxyurl: u32, dwdetectflags: PROXY_AUTO_DETECT_TYPE) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn DoConnectoidsExist() -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn ExportCookieFileA(szfilename: ::windows_sys::core::PCSTR, fappend: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -695,6 +682,9 @@ extern "system" { pub fn IsHostInProxyBypassList(tscheme: INTERNET_SCHEME, lpszhost: ::windows_sys::core::PCSTR, cchhost: u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn IsProfilesEnabled() -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn IsUrlCacheEntryExpiredA(lpszurlname: ::windows_sys::core::PCSTR, dwflags: u32, pftlastmodified: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -704,6 +694,9 @@ extern "system" { pub fn LoadUrlCacheContent() -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] pub fn ParseX509EncodedCertificateForListBoxEntry(lpcert: *const u8, cbcert: u32, lpszlistboxentry: ::windows_sys::core::PSTR, lpdwlistboxentry: *mut u32) -> u32; + #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn PerformOperationOverUrlCacheA(pszurlsearchpattern: ::windows_sys::core::PCSTR, dwflags: u32, dwfilter: u32, groupid: i64, preserved1: *mut ::core::ffi::c_void, pdwreserved2: *mut u32, preserved3: *mut ::core::ffi::c_void, op: CACHE_OPERATOR, poperatordata: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] pub fn PrivacyGetZonePreferenceW(dwzone: u32, dwtype: u32, pdwtemplate: *mut u32, pszbuffer: ::windows_sys::core::PWSTR, pdwbufferlength: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] @@ -811,11 +804,15 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn UrlCacheFreeEntryInfo(pcacheentryinfo: *mut URLCACHE_ENTRY_INFO); #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] + pub fn UrlCacheFreeGlobalSpace(ulltargetsize: u64, dwfilter: u32) -> u32; + #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] pub fn UrlCacheGetContentPaths(pppwszdirectories: *mut *mut ::windows_sys::core::PWSTR, pcdirectories: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn UrlCacheGetEntryInfo(happcache: *const ::core::ffi::c_void, pcwszurl: ::windows_sys::core::PCWSTR, pcacheentryinfo: *mut URLCACHE_ENTRY_INFO) -> u32; #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] + pub fn UrlCacheGetGlobalCacheSize(dwfilter: u32, pullsize: *mut u64, pulllimit: *mut u64) -> u32; + #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] pub fn UrlCacheGetGlobalLimit(limittype: URL_CACHE_LIMIT_TYPE, pulllimit: *mut u64) -> u32; #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] pub fn UrlCacheReadEntryStream(hurlcachestream: *const ::core::ffi::c_void, ulllocation: u64, pbuffer: *mut ::core::ffi::c_void, dwbufferlen: u32, pdwbufferlen: *mut u32) -> u32; 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 3f28fbfbe4..b11842e4ab 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/WinSock/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/WinSock/mod.rs @@ -21,7 +21,7 @@ extern "system" { pub fn GetAcceptExSockaddrs(lpoutputbuffer: *const ::core::ffi::c_void, dwreceivedatalength: u32, dwlocaladdresslength: u32, dwremoteaddresslength: u32, localsockaddr: *mut *mut SOCKADDR, localsockaddrlength: *mut i32, remotesockaddr: *mut *mut SOCKADDR, remotesockaddrlength: *mut i32); #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] - pub fn GetAddrInfoExA(pname: ::windows_sys::core::PCSTR, pservicename: ::windows_sys::core::PCSTR, dwnamespace: u32, lpnspid: *const ::windows_sys::core::GUID, hints: *const ADDRINFOEXA, ppresult: *mut *mut ADDRINFOEXA, timeout: *const timeval, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: *mut super::super::Foundation::HANDLE) -> i32; + pub fn GetAddrInfoExA(pname: ::windows_sys::core::PCSTR, pservicename: ::windows_sys::core::PCSTR, dwnamespace: u32, lpnspid: *const ::windows_sys::core::GUID, hints: *const ADDRINFOEXA, ppresult: *mut *mut ADDRINFOEXA, timeout: *const TIMEVAL, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: *mut super::super::Foundation::HANDLE) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn GetAddrInfoExCancel(lphandle: *const super::super::Foundation::HANDLE) -> i32; @@ -30,7 +30,7 @@ extern "system" { pub fn GetAddrInfoExOverlappedResult(lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] - pub fn GetAddrInfoExW(pname: ::windows_sys::core::PCWSTR, pservicename: ::windows_sys::core::PCWSTR, dwnamespace: u32, lpnspid: *const ::windows_sys::core::GUID, hints: *const ADDRINFOEXW, ppresult: *mut *mut ADDRINFOEXW, timeout: *const timeval, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lphandle: *mut super::super::Foundation::HANDLE) -> i32; + pub fn GetAddrInfoExW(pname: ::windows_sys::core::PCWSTR, pservicename: ::windows_sys::core::PCWSTR, dwnamespace: u32, lpnspid: *const ::windows_sys::core::GUID, hints: *const ADDRINFOEXW, ppresult: *mut *mut ADDRINFOEXW, timeout: *const TIMEVAL, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lphandle: *mut super::super::Foundation::HANDLE) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn GetAddrInfoW(pnodename: ::windows_sys::core::PCWSTR, pservicename: ::windows_sys::core::PCWSTR, phints: *const ADDRINFOW, ppresult: *mut *mut ADDRINFOW) -> i32; @@ -112,10 +112,10 @@ extern "system" { pub fn RtlIpv6StringToAddressW(s: ::windows_sys::core::PCWSTR, terminator: *mut ::windows_sys::core::PWSTR, addr: *mut IN6_ADDR) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_IO"))] - pub fn SetAddrInfoExA(pname: ::windows_sys::core::PCSTR, pservicename: ::windows_sys::core::PCSTR, paddresses: *const SOCKET_ADDRESS, dwaddresscount: u32, lpblob: *const super::super::System::Com::BLOB, dwflags: u32, dwnamespace: u32, lpnspid: *const ::windows_sys::core::GUID, timeout: *const timeval, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: *mut super::super::Foundation::HANDLE) -> i32; + pub fn SetAddrInfoExA(pname: ::windows_sys::core::PCSTR, pservicename: ::windows_sys::core::PCSTR, paddresses: *const SOCKET_ADDRESS, dwaddresscount: u32, lpblob: *const super::super::System::Com::BLOB, dwflags: u32, dwnamespace: u32, lpnspid: *const ::windows_sys::core::GUID, timeout: *const TIMEVAL, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: *mut super::super::Foundation::HANDLE) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_IO"))] - pub fn SetAddrInfoExW(pname: ::windows_sys::core::PCWSTR, pservicename: ::windows_sys::core::PCWSTR, paddresses: *const SOCKET_ADDRESS, dwaddresscount: u32, lpblob: *const super::super::System::Com::BLOB, dwflags: u32, dwnamespace: u32, lpnspid: *const ::windows_sys::core::GUID, timeout: *const timeval, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: *mut super::super::Foundation::HANDLE) -> i32; + pub fn SetAddrInfoExW(pname: ::windows_sys::core::PCWSTR, pservicename: ::windows_sys::core::PCWSTR, paddresses: *const SOCKET_ADDRESS, dwaddresscount: u32, lpblob: *const super::super::System::Com::BLOB, dwflags: u32, dwnamespace: u32, lpnspid: *const ::windows_sys::core::GUID, timeout: *const TIMEVAL, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: *mut super::super::Foundation::HANDLE) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub fn SetServiceA(dwnamespace: u32, dwoperation: SET_SERVICE_OPERATION, dwflags: u32, lpserviceinfo: *const SERVICE_INFOA, lpserviceasyncinfo: *const SERVICE_ASYNC_INFO, lpdwstatusflags: *mut u32) -> i32; @@ -179,13 +179,13 @@ extern "system" { pub fn WSAConnect(s: SOCKET, name: *const SOCKADDR, namelen: i32, lpcallerdata: *const WSABUF, lpcalleedata: *mut WSABUF, lpsqos: *const QOS, lpgqos: *const QOS) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] - pub fn WSAConnectByList(s: SOCKET, socketaddress: *const SOCKET_ADDRESS_LIST, localaddresslength: *mut u32, localaddress: *mut SOCKADDR, remoteaddresslength: *mut u32, remoteaddress: *mut SOCKADDR, timeout: *const timeval, reserved: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL; + pub fn WSAConnectByList(s: SOCKET, socketaddress: *const SOCKET_ADDRESS_LIST, localaddresslength: *mut u32, localaddress: *mut SOCKADDR, remoteaddresslength: *mut u32, remoteaddress: *mut SOCKADDR, timeout: *const TIMEVAL, reserved: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] - pub fn WSAConnectByNameA(s: SOCKET, nodename: ::windows_sys::core::PCSTR, servicename: ::windows_sys::core::PCSTR, localaddresslength: *mut u32, localaddress: *mut SOCKADDR, remoteaddresslength: *mut u32, remoteaddress: *mut SOCKADDR, timeout: *const timeval, reserved: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL; + pub fn WSAConnectByNameA(s: SOCKET, nodename: ::windows_sys::core::PCSTR, servicename: ::windows_sys::core::PCSTR, localaddresslength: *mut u32, localaddress: *mut SOCKADDR, remoteaddresslength: *mut u32, remoteaddress: *mut SOCKADDR, timeout: *const TIMEVAL, reserved: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] - pub fn WSAConnectByNameW(s: SOCKET, nodename: ::windows_sys::core::PCWSTR, servicename: ::windows_sys::core::PCWSTR, localaddresslength: *mut u32, localaddress: *mut SOCKADDR, remoteaddresslength: *mut u32, remoteaddress: *mut SOCKADDR, timeout: *const timeval, reserved: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL; + pub fn WSAConnectByNameW(s: SOCKET, nodename: ::windows_sys::core::PCWSTR, servicename: ::windows_sys::core::PCWSTR, localaddresslength: *mut u32, localaddress: *mut SOCKADDR, remoteaddresslength: *mut u32, remoteaddress: *mut SOCKADDR, timeout: *const TIMEVAL, reserved: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn WSACreateEvent() -> super::super::Foundation::HANDLE; @@ -344,7 +344,7 @@ extern "system" { pub fn WSASocketW(af: i32, r#type: i32, protocol: i32, lpprotocolinfo: *const WSAPROTOCOL_INFOW, g: u32, dwflags: u32) -> SOCKET; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn WSAStartup(wversionrequested: u16, lpwsadata: *mut WSAData) -> i32; + pub fn WSAStartup(wversionrequested: u16, lpwsadata: *mut WSADATA) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn WSAStringToAddressA(addressstring: ::windows_sys::core::PCSTR, addressfamily: i32, lpprotocolinfo: *const WSAPROTOCOL_INFOA, lpaddress: *mut SOCKADDR, lpaddresslength: *mut i32) -> i32; @@ -443,7 +443,7 @@ extern "system" { #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] pub fn WSCWriteProviderOrder32(lpwdcatalogentryid: *mut u32, dwnumberofentries: u32) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] - pub fn __WSAFDIsSet(fd: SOCKET, param1: *mut fd_set) -> i32; + pub fn __WSAFDIsSet(fd: SOCKET, param1: *mut FD_SET) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn accept(s: SOCKET, addr: *mut SOCKADDR, addrlen: *mut i32) -> SOCKET; @@ -462,9 +462,9 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn getaddrinfo(pnodename: ::windows_sys::core::PCSTR, pservicename: ::windows_sys::core::PCSTR, phints: *const ADDRINFOA, ppresult: *mut *mut ADDRINFOA) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] - pub fn gethostbyaddr(addr: ::windows_sys::core::PCSTR, len: i32, r#type: i32) -> *mut hostent; + pub fn gethostbyaddr(addr: ::windows_sys::core::PCSTR, len: i32, r#type: i32) -> *mut HOSTENT; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] - pub fn gethostbyname(name: ::windows_sys::core::PCSTR) -> *mut hostent; + pub fn gethostbyname(name: ::windows_sys::core::PCSTR) -> *mut HOSTENT; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub fn gethostname(name: ::windows_sys::core::PSTR, namelen: i32) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] @@ -474,13 +474,13 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn getpeername(s: SOCKET, name: *mut SOCKADDR, namelen: *mut i32) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] - pub fn getprotobyname(name: ::windows_sys::core::PCSTR) -> *mut protoent; + pub fn getprotobyname(name: ::windows_sys::core::PCSTR) -> *mut PROTOENT; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] - pub fn getprotobynumber(number: i32) -> *mut protoent; + pub fn getprotobynumber(number: i32) -> *mut PROTOENT; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] - pub fn getservbyname(name: ::windows_sys::core::PCSTR, proto: ::windows_sys::core::PCSTR) -> *mut servent; + pub fn getservbyname(name: ::windows_sys::core::PCSTR, proto: ::windows_sys::core::PCSTR) -> *mut SERVENT; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] - pub fn getservbyport(port: i32, proto: ::windows_sys::core::PCSTR) -> *mut servent; + pub fn getservbyport(port: i32, proto: ::windows_sys::core::PCSTR) -> *mut SERVENT; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn getsockname(s: SOCKET, name: *mut SOCKADDR, namelen: *mut i32) -> i32; @@ -512,7 +512,7 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn recvfrom(s: SOCKET, buf: ::windows_sys::core::PSTR, len: i32, flags: i32, from: *mut SOCKADDR, fromlen: *mut i32) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] - pub fn select(nfds: i32, readfds: *mut fd_set, writefds: *mut fd_set, exceptfds: *mut fd_set, timeout: *const timeval) -> i32; + pub fn select(nfds: i32, readfds: *mut FD_SET, writefds: *mut FD_SET, exceptfds: *mut FD_SET, timeout: *const TIMEVAL) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub fn send(s: SOCKET, buf: ::windows_sys::core::PCSTR, len: i32, flags: SEND_RECV_FLAGS) -> i32; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] @@ -4046,7 +4046,7 @@ pub struct ADDRINFOEX6 { pub ai_resolutionhandle: super::super::Foundation::HANDLE, pub ai_ttl: u32, pub ai_numservers: u32, - pub ai_servers: *mut addrinfo_dns_server, + pub ai_servers: *mut ADDRINFO_DNS_SERVER, pub ai_responseflags: u64, } #[cfg(feature = "Win32_Foundation")] @@ -4127,6 +4127,38 @@ impl ::core::clone::Clone for ADDRINFOW { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct ADDRINFO_DNS_SERVER { + pub ai_servertype: u32, + pub ai_flags: u64, + pub ai_addrlen: u32, + pub ai_addr: *mut SOCKADDR, + pub Anonymous: ADDRINFO_DNS_SERVER_0, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for ADDRINFO_DNS_SERVER {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for ADDRINFO_DNS_SERVER { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub union ADDRINFO_DNS_SERVER_0 { + pub ai_template: ::windows_sys::core::PWSTR, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for ADDRINFO_DNS_SERVER_0 {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for ADDRINFO_DNS_SERVER_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct AFPROTOCOLS { pub iAddressFamily: i32, @@ -4359,6 +4391,19 @@ impl ::core::clone::Clone for ATM_TRANSIT_NETWORK_SELECTION_IE { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct CMSGHDR { + pub cmsg_len: usize, + pub cmsg_level: i32, + pub cmsg_type: i32, +} +impl ::core::marker::Copy for CMSGHDR {} +impl ::core::clone::Clone for CMSGHDR { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct CSADDR_INFO { @@ -4494,7 +4539,7 @@ impl ::core::clone::Clone for DL_OUI_0 { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct DL_TEREDO_ADDRESS { pub Reserved: [u8; 6], @@ -4531,7 +4576,7 @@ impl ::core::clone::Clone for DL_TEREDO_ADDRESS_0_0 { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct DL_TEREDO_ADDRESS_PRV { pub Reserved: [u8; 6], @@ -4615,6 +4660,18 @@ impl ::core::clone::Clone for ETHERNET_HEADER_0 { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct FD_SET { + pub fd_count: u32, + pub fd_array: [SOCKET; 64], +} +impl ::core::marker::Copy for FD_SET {} +impl ::core::clone::Clone for FD_SET { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct FLOWSPEC { pub TokenRate: u32, pub TokenBucketSize: u32, @@ -4680,6 +4737,21 @@ impl ::core::clone::Clone for GROUP_SOURCE_REQ { *self } } +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct HOSTENT { + pub h_name: ::windows_sys::core::PSTR, + pub h_aliases: *mut *mut i8, + pub h_addrtype: i16, + pub h_length: i16, + pub h_addr_list: *mut *mut i8, +} +impl ::core::marker::Copy for HOSTENT {} +impl ::core::clone::Clone for HOSTENT { + fn clone(&self) -> Self { + *self + } +} pub type HWSAEVENT = isize; #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] @@ -5639,6 +5711,18 @@ impl ::core::clone::Clone for IP_MSFILTER { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct LINGER { + pub l_onoff: u16, + pub l_linger: u16, +} +impl ::core::marker::Copy for LINGER {} +impl ::core::clone::Clone for LINGER { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct LM_IRPARMS { pub nTXDataBytes: u32, pub nRXDataBytes: u32, @@ -6012,6 +6096,17 @@ impl ::core::clone::Clone for ND_ROUTER_ADVERT_HEADER { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct ND_ROUTER_SOLICIT_HEADER { + pub nd_rs_hdr: ICMP_MESSAGE, +} +impl ::core::marker::Copy for ND_ROUTER_SOLICIT_HEADER {} +impl ::core::clone::Clone for ND_ROUTER_SOLICIT_HEADER { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct NETRESOURCE2A { pub dwScope: u32, pub dwType: u32, @@ -6424,6 +6519,19 @@ impl ::core::clone::Clone for PROTOCOL_INFOW { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct PROTOENT { + pub p_name: ::windows_sys::core::PSTR, + pub p_aliases: *mut *mut i8, + pub p_proto: i16, +} +impl ::core::marker::Copy for PROTOENT {} +impl ::core::clone::Clone for PROTOENT { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct Q2931_IE { pub IEType: Q2931_IE_TYPE, pub IELength: u32, @@ -6762,6 +6870,40 @@ impl ::core::clone::Clone for SCOPE_ID_0_0 { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub struct SERVENT { + pub s_name: ::windows_sys::core::PSTR, + pub s_aliases: *mut *mut i8, + pub s_proto: ::windows_sys::core::PSTR, + pub s_port: i16, +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::marker::Copy for SERVENT {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::clone::Clone for SERVENT { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +#[cfg(target_arch = "x86")] +pub struct SERVENT { + pub s_name: ::windows_sys::core::PSTR, + pub s_aliases: *mut *mut i8, + pub s_port: i16, + pub s_proto: ::windows_sys::core::PSTR, +} +#[cfg(target_arch = "x86")] +impl ::core::marker::Copy for SERVENT {} +#[cfg(target_arch = "x86")] +impl ::core::clone::Clone for SERVENT { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct SERVICE_ADDRESS { pub dwAddressType: u32, pub dwAddressFlags: u32, @@ -6966,6 +7108,20 @@ impl ::core::clone::Clone for SOCKADDR { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct SOCKADDR_ATM { + pub satm_family: u16, + pub satm_number: ATM_ADDRESS, + pub satm_blli: ATM_BLLI, + pub satm_bhli: ATM_BHLI, +} +impl ::core::marker::Copy for SOCKADDR_ATM {} +impl ::core::clone::Clone for SOCKADDR_ATM { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct SOCKADDR_DL { pub sdl_family: u16, pub sdl_data: [u8; 8], @@ -7067,6 +7223,23 @@ impl ::core::clone::Clone for SOCKADDR_INET { #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] +pub struct SOCKADDR_IPX { + pub sa_family: i16, + pub sa_netnum: [super::super::Foundation::CHAR; 4], + pub sa_nodenum: [super::super::Foundation::CHAR; 6], + pub sa_socket: u16, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for SOCKADDR_IPX {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for SOCKADDR_IPX { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct SOCKADDR_IRDA { pub irdaAddressFamily: u16, pub irdaDeviceID: [u8; 4], @@ -7083,6 +7256,22 @@ impl ::core::clone::Clone for SOCKADDR_IRDA { #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] +pub struct SOCKADDR_NB { + pub snb_family: i16, + pub snb_type: u16, + pub snb_name: [super::super::Foundation::CHAR; 16], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for SOCKADDR_NB {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for SOCKADDR_NB { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct SOCKADDR_STORAGE { pub ss_family: u16, pub __ss_pad1: [super::super::Foundation::CHAR; 6], @@ -7114,6 +7303,52 @@ impl ::core::clone::Clone for SOCKADDR_STORAGE_XP { *self } } +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct SOCKADDR_TP { + pub tp_family: u16, + pub tp_addr_type: u16, + pub tp_taddr_len: u16, + pub tp_tsel_len: u16, + pub tp_addr: [u8; 64], +} +impl ::core::marker::Copy for SOCKADDR_TP {} +impl ::core::clone::Clone for SOCKADDR_TP { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct SOCKADDR_UN { + pub sun_family: u16, + pub sun_path: [super::super::Foundation::CHAR; 108], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for SOCKADDR_UN {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for SOCKADDR_UN { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct SOCKADDR_VNS { + pub sin_family: u16, + pub net_address: [u8; 4], + pub subnet_addr: [u8; 2], + pub port: [u8; 2], + pub hops: u8, + pub filler: [u8; 5], +} +impl ::core::marker::Copy for SOCKADDR_VNS {} +impl ::core::clone::Clone for SOCKADDR_VNS { + fn clone(&self) -> Self { + *self + } +} pub type SOCKET = usize; #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] @@ -7304,6 +7539,25 @@ impl ::core::clone::Clone for TCP_ACK_FREQUENCY_PARAMETERS { *self } } +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_HDR { + pub th_sport: u16, + pub th_dport: u16, + pub th_seq: u32, + pub th_ack: u32, + pub _bitfield: u8, + pub th_flags: u8, + pub th_win: u16, + pub th_sum: u16, + pub th_urp: u16, +} +impl ::core::marker::Copy for TCP_HDR {} +impl ::core::clone::Clone for TCP_HDR { + fn clone(&self) -> Self { + *self + } +} #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct TCP_ICW_PARAMETERS { @@ -7400,58 +7654,172 @@ impl ::core::clone::Clone for TCP_INITIAL_RTO_PARAMETERS { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct TIMESTAMPING_CONFIG { - pub Flags: u32, - pub TxTimestampsBuffered: u16, +pub struct TCP_OPT_FASTOPEN { + pub Kind: u8, + pub Length: u8, + pub Cookie: [u8; 1], } -impl ::core::marker::Copy for TIMESTAMPING_CONFIG {} -impl ::core::clone::Clone for TIMESTAMPING_CONFIG { +impl ::core::marker::Copy for TCP_OPT_FASTOPEN {} +impl ::core::clone::Clone for TCP_OPT_FASTOPEN { fn clone(&self) -> Self { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct TRANSMIT_FILE_BUFFERS { - pub Head: *mut ::core::ffi::c_void, - pub HeadLength: u32, - pub Tail: *mut ::core::ffi::c_void, - pub TailLength: u32, +pub struct TCP_OPT_MSS { + pub Kind: u8, + pub Length: u8, + pub Mss: u16, } -impl ::core::marker::Copy for TRANSMIT_FILE_BUFFERS {} -impl ::core::clone::Clone for TRANSMIT_FILE_BUFFERS { +impl ::core::marker::Copy for TCP_OPT_MSS {} +impl ::core::clone::Clone for TCP_OPT_MSS { fn clone(&self) -> Self { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct TRANSMIT_PACKETS_ELEMENT { - pub dwElFlags: u32, - pub cLength: u32, - pub Anonymous: TRANSMIT_PACKETS_ELEMENT_0, +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_OPT_SACK { + pub Kind: u8, + pub Length: u8, + pub Block: [TCP_OPT_SACK_0; 1], } -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for TRANSMIT_PACKETS_ELEMENT {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for TRANSMIT_PACKETS_ELEMENT { +impl ::core::marker::Copy for TCP_OPT_SACK {} +impl ::core::clone::Clone for TCP_OPT_SACK { fn clone(&self) -> Self { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub union TRANSMIT_PACKETS_ELEMENT_0 { - pub Anonymous: TRANSMIT_PACKETS_ELEMENT_0_0, - pub pBuffer: *mut ::core::ffi::c_void, +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_OPT_SACK_0 { + pub Left: u32, + pub Right: u32, } -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for TRANSMIT_PACKETS_ELEMENT_0 {} -#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for TCP_OPT_SACK_0 {} +impl ::core::clone::Clone for TCP_OPT_SACK_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_OPT_SACK_PERMITTED { + pub Kind: u8, + pub Length: u8, +} +impl ::core::marker::Copy for TCP_OPT_SACK_PERMITTED {} +impl ::core::clone::Clone for TCP_OPT_SACK_PERMITTED { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_OPT_TS { + pub Kind: u8, + pub Length: u8, + pub Val: u32, + pub EcR: u32, +} +impl ::core::marker::Copy for TCP_OPT_TS {} +impl ::core::clone::Clone for TCP_OPT_TS { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_OPT_UNKNOWN { + pub Kind: u8, + pub Length: u8, +} +impl ::core::marker::Copy for TCP_OPT_UNKNOWN {} +impl ::core::clone::Clone for TCP_OPT_UNKNOWN { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_OPT_WS { + pub Kind: u8, + pub Length: u8, + pub ShiftCnt: u8, +} +impl ::core::marker::Copy for TCP_OPT_WS {} +impl ::core::clone::Clone for TCP_OPT_WS { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TIMESTAMPING_CONFIG { + pub Flags: u32, + pub TxTimestampsBuffered: u16, +} +impl ::core::marker::Copy for TIMESTAMPING_CONFIG {} +impl ::core::clone::Clone for TIMESTAMPING_CONFIG { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TIMEVAL { + pub tv_sec: i32, + pub tv_usec: i32, +} +impl ::core::marker::Copy for TIMEVAL {} +impl ::core::clone::Clone for TIMEVAL { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TRANSMIT_FILE_BUFFERS { + pub Head: *mut ::core::ffi::c_void, + pub HeadLength: u32, + pub Tail: *mut ::core::ffi::c_void, + pub TailLength: u32, +} +impl ::core::marker::Copy for TRANSMIT_FILE_BUFFERS {} +impl ::core::clone::Clone for TRANSMIT_FILE_BUFFERS { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct TRANSMIT_PACKETS_ELEMENT { + pub dwElFlags: u32, + pub cLength: u32, + pub Anonymous: TRANSMIT_PACKETS_ELEMENT_0, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for TRANSMIT_PACKETS_ELEMENT {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for TRANSMIT_PACKETS_ELEMENT { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub union TRANSMIT_PACKETS_ELEMENT_0 { + pub Anonymous: TRANSMIT_PACKETS_ELEMENT_0_0, + pub pBuffer: *mut ::core::ffi::c_void, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for TRANSMIT_PACKETS_ELEMENT_0 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for TRANSMIT_PACKETS_ELEMENT_0 { fn clone(&self) -> Self { *self @@ -7820,7 +8188,7 @@ impl ::core::clone::Clone for WSACOMPLETION_0_3 { #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_Foundation")] -pub struct WSAData { +pub struct WSADATA { pub wVersion: u16, pub wHighVersion: u16, pub iMaxSockets: u16, @@ -7831,10 +8199,10 @@ pub struct WSAData { } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for WSAData {} +impl ::core::marker::Copy for WSADATA {} #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for WSAData { +impl ::core::clone::Clone for WSADATA { fn clone(&self) -> Self { *self } @@ -7843,7 +8211,7 @@ impl ::core::clone::Clone for WSAData { #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] -pub struct WSAData { +pub struct WSADATA { pub wVersion: u16, pub wHighVersion: u16, pub szDescription: [super::super::Foundation::CHAR; 257], @@ -7854,10 +8222,10 @@ pub struct WSAData { } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for WSAData {} +impl ::core::marker::Copy for WSADATA {} #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for WSAData { +impl ::core::clone::Clone for WSADATA { fn clone(&self) -> Self { *self } @@ -8308,13 +8676,13 @@ impl ::core::clone::Clone for WSC_PROVIDER_AUDIT_INFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct WSPData { +pub struct WSPDATA { pub wVersion: u16, pub wHighVersion: u16, pub szDescription: [u16; 256], } -impl ::core::marker::Copy for WSPData {} -impl ::core::clone::Clone for WSPData { +impl ::core::marker::Copy for WSPDATA {} +impl ::core::clone::Clone for WSPDATA { fn clone(&self) -> Self { *self } @@ -8391,101 +8759,6 @@ impl ::core::clone::Clone for WSPUPCALLTABLE { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct addrinfo_dns_server { - pub ai_servertype: u32, - pub ai_flags: u64, - pub ai_addrlen: u32, - pub ai_addr: *mut SOCKADDR, - pub Anonymous: addrinfo_dns_server_0, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for addrinfo_dns_server {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for addrinfo_dns_server { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub union addrinfo_dns_server_0 { - pub ai_template: ::windows_sys::core::PWSTR, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for addrinfo_dns_server_0 {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for addrinfo_dns_server_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct cmsghdr { - pub cmsg_len: usize, - pub cmsg_level: i32, - pub cmsg_type: i32, -} -impl ::core::marker::Copy for cmsghdr {} -impl ::core::clone::Clone for cmsghdr { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct fd_set { - pub fd_count: u32, - pub fd_array: [SOCKET; 64], -} -impl ::core::marker::Copy for fd_set {} -impl ::core::clone::Clone for fd_set { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct hostent { - pub h_name: ::windows_sys::core::PSTR, - pub h_aliases: *mut *mut i8, - pub h_addrtype: i16, - pub h_length: i16, - pub h_addr_list: *mut *mut i8, -} -impl ::core::marker::Copy for hostent {} -impl ::core::clone::Clone for hostent { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct linger { - pub l_onoff: u16, - pub l_linger: u16, -} -impl ::core::marker::Copy for linger {} -impl ::core::clone::Clone for linger { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct nd_router_solicit { - pub nd_rs_hdr: ICMP_MESSAGE, -} -impl ::core::marker::Copy for nd_router_solicit {} -impl ::core::clone::Clone for nd_router_solicit { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct netent { pub n_name: ::windows_sys::core::PSTR, @@ -8500,67 +8773,6 @@ impl ::core::clone::Clone for netent { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct protoent { - pub p_name: ::windows_sys::core::PSTR, - pub p_aliases: *mut *mut i8, - pub p_proto: i16, -} -impl ::core::marker::Copy for protoent {} -impl ::core::clone::Clone for protoent { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub struct servent { - pub s_name: ::windows_sys::core::PSTR, - pub s_aliases: *mut *mut i8, - pub s_proto: ::windows_sys::core::PSTR, - pub s_port: i16, -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::marker::Copy for servent {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::clone::Clone for servent { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -#[cfg(target_arch = "x86")] -pub struct servent { - pub s_name: ::windows_sys::core::PSTR, - pub s_aliases: *mut *mut i8, - pub s_port: i16, - pub s_proto: ::windows_sys::core::PSTR, -} -#[cfg(target_arch = "x86")] -impl ::core::marker::Copy for servent {} -#[cfg(target_arch = "x86")] -impl ::core::clone::Clone for servent { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct sockaddr_atm { - pub satm_family: u16, - pub satm_number: ATM_ADDRESS, - pub satm_blli: ATM_BLLI, - pub satm_bhli: ATM_BHLI, -} -impl ::core::marker::Copy for sockaddr_atm {} -impl ::core::clone::Clone for sockaddr_atm { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub union sockaddr_gen { @@ -8591,85 +8803,6 @@ impl ::core::clone::Clone for sockaddr_in6_old { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct sockaddr_ipx { - pub sa_family: i16, - pub sa_netnum: [super::super::Foundation::CHAR; 4], - pub sa_nodenum: [super::super::Foundation::CHAR; 6], - pub sa_socket: u16, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for sockaddr_ipx {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for sockaddr_ipx { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct sockaddr_nb { - pub snb_family: i16, - pub snb_type: u16, - pub snb_name: [super::super::Foundation::CHAR; 16], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for sockaddr_nb {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for sockaddr_nb { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct sockaddr_tp { - pub tp_family: u16, - pub tp_addr_type: u16, - pub tp_taddr_len: u16, - pub tp_tsel_len: u16, - pub tp_addr: [u8; 64], -} -impl ::core::marker::Copy for sockaddr_tp {} -impl ::core::clone::Clone for sockaddr_tp { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct sockaddr_un { - pub sun_family: u16, - pub sun_path: [super::super::Foundation::CHAR; 108], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for sockaddr_un {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for sockaddr_un { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct sockaddr_vns { - pub sin_family: u16, - pub net_address: [u8; 4], - pub subnet_addr: [u8; 2], - pub port: [u8; 2], - pub hops: u8, - pub filler: [u8; 5], -} -impl ::core::marker::Copy for sockaddr_vns {} -impl ::core::clone::Clone for sockaddr_vns { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct sockproto { pub sp_family: u16, @@ -8681,25 +8814,6 @@ impl ::core::clone::Clone for sockproto { *self } } -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_hdr { - pub th_sport: u16, - pub th_dport: u16, - pub th_seq: u32, - pub th_ack: u32, - pub _bitfield: u8, - pub th_flags: u8, - pub th_win: u16, - pub th_sum: u16, - pub th_urp: u16, -} -impl ::core::marker::Copy for tcp_hdr {} -impl ::core::clone::Clone for tcp_hdr { - fn clone(&self) -> Self { - *self - } -} #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct tcp_keepalive { @@ -8713,120 +8827,6 @@ impl ::core::clone::Clone for tcp_keepalive { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_fastopen { - pub Kind: u8, - pub Length: u8, - pub Cookie: [u8; 1], -} -impl ::core::marker::Copy for tcp_opt_fastopen {} -impl ::core::clone::Clone for tcp_opt_fastopen { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_mss { - pub Kind: u8, - pub Length: u8, - pub Mss: u16, -} -impl ::core::marker::Copy for tcp_opt_mss {} -impl ::core::clone::Clone for tcp_opt_mss { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_sack { - pub Kind: u8, - pub Length: u8, - pub Block: [tcp_opt_sack_0; 1], -} -impl ::core::marker::Copy for tcp_opt_sack {} -impl ::core::clone::Clone for tcp_opt_sack { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_sack_0 { - pub Left: u32, - pub Right: u32, -} -impl ::core::marker::Copy for tcp_opt_sack_0 {} -impl ::core::clone::Clone for tcp_opt_sack_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_sack_permitted { - pub Kind: u8, - pub Length: u8, -} -impl ::core::marker::Copy for tcp_opt_sack_permitted {} -impl ::core::clone::Clone for tcp_opt_sack_permitted { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_ts { - pub Kind: u8, - pub Length: u8, - pub Val: u32, - pub EcR: u32, -} -impl ::core::marker::Copy for tcp_opt_ts {} -impl ::core::clone::Clone for tcp_opt_ts { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_unknown { - pub Kind: u8, - pub Length: u8, -} -impl ::core::marker::Copy for tcp_opt_unknown {} -impl ::core::clone::Clone for tcp_opt_unknown { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_ws { - pub Kind: u8, - pub Length: u8, - pub ShiftCnt: u8, -} -impl ::core::marker::Copy for tcp_opt_ws {} -impl ::core::clone::Clone for tcp_opt_ws { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct timeval { - pub tv_sec: i32, - pub tv_usec: i32, -} -impl ::core::marker::Copy for timeval {} -impl ::core::clone::Clone for timeval { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type LPBLOCKINGCALLBACK = ::core::option::Option super::super::Foundation::BOOL>; @@ -8959,7 +8959,7 @@ pub type LPWPUCREATEEVENT = ::core::option::Option SOCKET>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub type LPWPUFDISSET = ::core::option::Option i32>; +pub type LPWPUFDISSET = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub type LPWPUGETPROVIDERPATH = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] @@ -9070,7 +9070,7 @@ pub type LPWSPRECVDISCONNECT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub type LPWSPSELECT = ::core::option::Option i32>; +pub type LPWSPSELECT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] pub type LPWSPSEND = ::core::option::Option i32>; @@ -9087,7 +9087,7 @@ pub type LPWSPSHUTDOWN = ::core::option::Option SOCKET>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] -pub type LPWSPSTARTUP = ::core::option::Option i32>; +pub type LPWSPSTARTUP = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type LPWSPSTRINGTOADDRESS = ::core::option::Option i32>; 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 a5e7bcced2..9ecae5db36 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 @@ -1,15 +1,6 @@ #[cfg(feature = "Win32_Security_Authentication_Identity_Provider")] pub mod Provider; #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Credentials\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Credentials"))] - pub fn CredMarshalTargetInfo(intargetinfo: *const super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW, buffer: *mut *mut u16, buffersize: *mut u32) -> super::super::super::Foundation::NTSTATUS; - #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Credentials\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Credentials"))] - pub fn CredUnmarshalTargetInfo(buffer: *const u16, buffersize: u32, rettargetinfo: *mut *mut super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW, retactualsize: *mut u32) -> super::super::super::Foundation::NTSTATUS; -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Security_Credentials\"`*"] #[cfg(feature = "Win32_Security_Credentials")] @@ -107,6 +98,12 @@ extern "system" { #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Security_Credentials\"`*"] #[cfg(feature = "Win32_Security_Credentials")] pub fn CompleteAuthToken(phcontext: *const super::super::Credentials::SecHandle, ptoken: *const SecBufferDesc) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Credentials\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Credentials"))] + pub fn CredMarshalTargetInfo(intargetinfo: *const super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW, buffer: *mut *mut u16, buffersize: *mut u32) -> super::super::super::Foundation::NTSTATUS; + #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Credentials\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Credentials"))] + pub fn CredUnmarshalTargetInfo(buffer: *const u16, buffersize: u32, rettargetinfo: *mut *mut super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW, retactualsize: *mut u32) -> super::super::super::Foundation::NTSTATUS; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Security_Credentials\"`*"] #[cfg(feature = "Win32_Security_Credentials")] pub fn DecryptMessage(phcontext: *const super::super::Credentials::SecHandle, pmessage: *const SecBufferDesc, messageseqno: u32, pfqop: *mut u32) -> ::windows_sys::core::HRESULT; @@ -3263,59 +3260,61 @@ pub const WINDOWS_SLID: ::windows_sys::core::GUID = ::windows_sys::core::GUID { #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] pub const _FACILITY_WINDOWS_STORE: u32 = 63u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub type ASC_REQ_FLAGS = u64; +pub type ASC_REQ_FLAGS = u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_DELEGATE: ASC_REQ_FLAGS = 1u64; +pub const ASC_REQ_DELEGATE: ASC_REQ_FLAGS = 1u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_MUTUAL_AUTH: ASC_REQ_FLAGS = 2u64; +pub const ASC_REQ_MUTUAL_AUTH: ASC_REQ_FLAGS = 2u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_REPLAY_DETECT: ASC_REQ_FLAGS = 4u64; +pub const ASC_REQ_REPLAY_DETECT: ASC_REQ_FLAGS = 4u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_SEQUENCE_DETECT: ASC_REQ_FLAGS = 8u64; +pub const ASC_REQ_SEQUENCE_DETECT: ASC_REQ_FLAGS = 8u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_CONFIDENTIALITY: ASC_REQ_FLAGS = 16u64; +pub const ASC_REQ_CONFIDENTIALITY: ASC_REQ_FLAGS = 16u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_USE_SESSION_KEY: ASC_REQ_FLAGS = 32u64; +pub const ASC_REQ_USE_SESSION_KEY: ASC_REQ_FLAGS = 32u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_SESSION_TICKET: ASC_REQ_FLAGS = 64u64; +pub const ASC_REQ_SESSION_TICKET: ASC_REQ_FLAGS = 64u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_ALLOCATE_MEMORY: ASC_REQ_FLAGS = 256u64; +pub const ASC_REQ_ALLOCATE_MEMORY: ASC_REQ_FLAGS = 256u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_USE_DCE_STYLE: ASC_REQ_FLAGS = 512u64; +pub const ASC_REQ_USE_DCE_STYLE: ASC_REQ_FLAGS = 512u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_DATAGRAM: ASC_REQ_FLAGS = 1024u64; +pub const ASC_REQ_DATAGRAM: ASC_REQ_FLAGS = 1024u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_CONNECTION: ASC_REQ_FLAGS = 2048u64; +pub const ASC_REQ_CONNECTION: ASC_REQ_FLAGS = 2048u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_CALL_LEVEL: ASC_REQ_FLAGS = 4096u64; +pub const ASC_REQ_CALL_LEVEL: ASC_REQ_FLAGS = 4096u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_FRAGMENT_SUPPLIED: ASC_REQ_FLAGS = 8192u64; +pub const ASC_REQ_FRAGMENT_SUPPLIED: ASC_REQ_FLAGS = 8192u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_EXTENDED_ERROR: ASC_REQ_FLAGS = 32768u64; +pub const ASC_REQ_EXTENDED_ERROR: ASC_REQ_FLAGS = 32768u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_STREAM: ASC_REQ_FLAGS = 65536u64; +pub const ASC_REQ_STREAM: ASC_REQ_FLAGS = 65536u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_INTEGRITY: ASC_REQ_FLAGS = 131072u64; +pub const ASC_REQ_INTEGRITY: ASC_REQ_FLAGS = 131072u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_LICENSING: ASC_REQ_FLAGS = 262144u64; +pub const ASC_REQ_LICENSING: ASC_REQ_FLAGS = 262144u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_IDENTIFY: ASC_REQ_FLAGS = 524288u64; +pub const ASC_REQ_IDENTIFY: ASC_REQ_FLAGS = 524288u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_ALLOW_NULL_SESSION: ASC_REQ_FLAGS = 1048576u64; +pub const ASC_REQ_ALLOW_NULL_SESSION: ASC_REQ_FLAGS = 1048576u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_ALLOW_NON_USER_LOGONS: ASC_REQ_FLAGS = 2097152u64; +pub const ASC_REQ_ALLOW_NON_USER_LOGONS: ASC_REQ_FLAGS = 2097152u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_ALLOW_CONTEXT_REPLAY: ASC_REQ_FLAGS = 4194304u64; +pub const ASC_REQ_ALLOW_CONTEXT_REPLAY: ASC_REQ_FLAGS = 4194304u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_FRAGMENT_TO_FIT: ASC_REQ_FLAGS = 8388608u64; +pub const ASC_REQ_FRAGMENT_TO_FIT: ASC_REQ_FLAGS = 8388608u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_NO_TOKEN: ASC_REQ_FLAGS = 16777216u64; +pub const ASC_REQ_NO_TOKEN: ASC_REQ_FLAGS = 16777216u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_PROXY_BINDINGS: ASC_REQ_FLAGS = 67108864u64; +pub const ASC_REQ_PROXY_BINDINGS: ASC_REQ_FLAGS = 67108864u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_ALLOW_MISSING_BINDINGS: ASC_REQ_FLAGS = 268435456u64; +pub const ASC_REQ_ALLOW_MISSING_BINDINGS: ASC_REQ_FLAGS = 268435456u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_MESSAGES: ASC_REQ_FLAGS = 4294967296u64; +pub type ASC_REQ_HIGH_FLAGS = u64; +#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] +pub const ASC_REQ_MESSAGES: ASC_REQ_HIGH_FLAGS = 4294967296u64; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] pub type CRED_FETCH = i32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] @@ -3373,65 +3372,67 @@ pub const NameGivenName: EXTENDED_NAME_FORMAT = 13i32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] pub const NameSurname: EXTENDED_NAME_FORMAT = 14i32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub type ISC_REQ_FLAGS = u64; +pub type ISC_REQ_FLAGS = u32; +#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] +pub const ISC_REQ_DELEGATE: ISC_REQ_FLAGS = 1u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_DELEGATE: ISC_REQ_FLAGS = 1u64; +pub const ISC_REQ_MUTUAL_AUTH: ISC_REQ_FLAGS = 2u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_MUTUAL_AUTH: ISC_REQ_FLAGS = 2u64; +pub const ISC_REQ_REPLAY_DETECT: ISC_REQ_FLAGS = 4u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_REPLAY_DETECT: ISC_REQ_FLAGS = 4u64; +pub const ISC_REQ_SEQUENCE_DETECT: ISC_REQ_FLAGS = 8u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_SEQUENCE_DETECT: ISC_REQ_FLAGS = 8u64; +pub const ISC_REQ_CONFIDENTIALITY: ISC_REQ_FLAGS = 16u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_CONFIDENTIALITY: ISC_REQ_FLAGS = 16u64; +pub const ISC_REQ_USE_SESSION_KEY: ISC_REQ_FLAGS = 32u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_USE_SESSION_KEY: ISC_REQ_FLAGS = 32u64; +pub const ISC_REQ_PROMPT_FOR_CREDS: ISC_REQ_FLAGS = 64u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_PROMPT_FOR_CREDS: ISC_REQ_FLAGS = 64u64; +pub const ISC_REQ_USE_SUPPLIED_CREDS: ISC_REQ_FLAGS = 128u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_USE_SUPPLIED_CREDS: ISC_REQ_FLAGS = 128u64; +pub const ISC_REQ_ALLOCATE_MEMORY: ISC_REQ_FLAGS = 256u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_ALLOCATE_MEMORY: ISC_REQ_FLAGS = 256u64; +pub const ISC_REQ_USE_DCE_STYLE: ISC_REQ_FLAGS = 512u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_USE_DCE_STYLE: ISC_REQ_FLAGS = 512u64; +pub const ISC_REQ_DATAGRAM: ISC_REQ_FLAGS = 1024u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_DATAGRAM: ISC_REQ_FLAGS = 1024u64; +pub const ISC_REQ_CONNECTION: ISC_REQ_FLAGS = 2048u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_CONNECTION: ISC_REQ_FLAGS = 2048u64; +pub const ISC_REQ_CALL_LEVEL: ISC_REQ_FLAGS = 4096u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_CALL_LEVEL: ISC_REQ_FLAGS = 4096u64; +pub const ISC_REQ_FRAGMENT_SUPPLIED: ISC_REQ_FLAGS = 8192u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_FRAGMENT_SUPPLIED: ISC_REQ_FLAGS = 8192u64; +pub const ISC_REQ_EXTENDED_ERROR: ISC_REQ_FLAGS = 16384u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_EXTENDED_ERROR: ISC_REQ_FLAGS = 16384u64; +pub const ISC_REQ_STREAM: ISC_REQ_FLAGS = 32768u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_STREAM: ISC_REQ_FLAGS = 32768u64; +pub const ISC_REQ_INTEGRITY: ISC_REQ_FLAGS = 65536u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_INTEGRITY: ISC_REQ_FLAGS = 65536u64; +pub const ISC_REQ_IDENTIFY: ISC_REQ_FLAGS = 131072u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_IDENTIFY: ISC_REQ_FLAGS = 131072u64; +pub const ISC_REQ_NULL_SESSION: ISC_REQ_FLAGS = 262144u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_NULL_SESSION: ISC_REQ_FLAGS = 262144u64; +pub const ISC_REQ_MANUAL_CRED_VALIDATION: ISC_REQ_FLAGS = 524288u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_MANUAL_CRED_VALIDATION: ISC_REQ_FLAGS = 524288u64; +pub const ISC_REQ_RESERVED1: ISC_REQ_FLAGS = 1048576u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_RESERVED1: ISC_REQ_FLAGS = 1048576u64; +pub const ISC_REQ_FRAGMENT_TO_FIT: ISC_REQ_FLAGS = 2097152u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_FRAGMENT_TO_FIT: ISC_REQ_FLAGS = 2097152u64; +pub const ISC_REQ_FORWARD_CREDENTIALS: ISC_REQ_FLAGS = 4194304u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_FORWARD_CREDENTIALS: ISC_REQ_FLAGS = 4194304u64; +pub const ISC_REQ_NO_INTEGRITY: ISC_REQ_FLAGS = 8388608u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_NO_INTEGRITY: ISC_REQ_FLAGS = 8388608u64; +pub const ISC_REQ_USE_HTTP_STYLE: ISC_REQ_FLAGS = 16777216u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_USE_HTTP_STYLE: ISC_REQ_FLAGS = 16777216u64; +pub const ISC_REQ_UNVERIFIED_TARGET_NAME: ISC_REQ_FLAGS = 536870912u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_UNVERIFIED_TARGET_NAME: ISC_REQ_FLAGS = 536870912u64; +pub const ISC_REQ_CONFIDENTIALITY_ONLY: ISC_REQ_FLAGS = 1073741824u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_CONFIDENTIALITY_ONLY: ISC_REQ_FLAGS = 1073741824u64; +pub type ISC_REQ_HIGH_FLAGS = u64; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_MESSAGES: ISC_REQ_FLAGS = 4294967296u64; +pub const ISC_REQ_MESSAGES: ISC_REQ_HIGH_FLAGS = 4294967296u64; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_DEFERRED_CRED_VALIDATION: ISC_REQ_FLAGS = 8589934592u64; +pub const ISC_REQ_DEFERRED_CRED_VALIDATION: ISC_REQ_HIGH_FLAGS = 8589934592u64; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] pub type KERB_ADDRESS_TYPE = u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] diff --git a/crates/libs/sys/src/Windows/Win32/Security/Authorization/mod.rs b/crates/libs/sys/src/Windows/Win32/Security/Authorization/mod.rs index 9a2cdc535f..a2a18dd5c5 100644 --- a/crates/libs/sys/src/Windows/Win32/Security/Authorization/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Security/Authorization/mod.rs @@ -165,7 +165,7 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn ConvertStringSidToSidW(stringsid: ::windows_sys::core::PCWSTR, sid: *mut super::super::Foundation::PSID) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Security_Authorization\"`*"] - pub fn FreeInheritedFromArray(pinheritarray: *const INHERITED_FROMW, acecnt: u16, pfnarray: *const FN_OBJECT_MGR_FUNCTIONS) -> u32; + pub fn FreeInheritedFromArray(pinheritarray: *const INHERITED_FROMW, acecnt: u16, pfnarray: *const FN_OBJECT_MGR_FUNCTS) -> u32; #[doc = "*Required features: `\"Win32_Security_Authorization\"`*"] pub fn GetAuditedPermissionsFromAclA(pacl: *const super::ACL, ptrustee: *const TRUSTEE_A, psuccessfulauditedrights: *mut u32, pfailedauditrights: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Security_Authorization\"`*"] @@ -180,10 +180,10 @@ extern "system" { pub fn GetExplicitEntriesFromAclW(pacl: *const super::ACL, pccountofexplicitentries: *mut u32, plistofexplicitentries: *mut *mut EXPLICIT_ACCESS_W) -> u32; #[doc = "*Required features: `\"Win32_Security_Authorization\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn GetInheritanceSourceA(pobjectname: ::windows_sys::core::PCSTR, objecttype: SE_OBJECT_TYPE, securityinfo: u32, container: super::super::Foundation::BOOL, pobjectclassguids: *const *const ::windows_sys::core::GUID, guidcount: u32, pacl: *const super::ACL, pfnarray: *const FN_OBJECT_MGR_FUNCTIONS, pgenericmapping: *const super::GENERIC_MAPPING, pinheritarray: *mut INHERITED_FROMA) -> u32; + pub fn GetInheritanceSourceA(pobjectname: ::windows_sys::core::PCSTR, objecttype: SE_OBJECT_TYPE, securityinfo: u32, container: super::super::Foundation::BOOL, pobjectclassguids: *const *const ::windows_sys::core::GUID, guidcount: u32, pacl: *const super::ACL, pfnarray: *const FN_OBJECT_MGR_FUNCTS, pgenericmapping: *const super::GENERIC_MAPPING, pinheritarray: *mut INHERITED_FROMA) -> u32; #[doc = "*Required features: `\"Win32_Security_Authorization\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn GetInheritanceSourceW(pobjectname: ::windows_sys::core::PCWSTR, objecttype: SE_OBJECT_TYPE, securityinfo: u32, container: super::super::Foundation::BOOL, pobjectclassguids: *const *const ::windows_sys::core::GUID, guidcount: u32, pacl: *const super::ACL, pfnarray: *const FN_OBJECT_MGR_FUNCTIONS, pgenericmapping: *const super::GENERIC_MAPPING, pinheritarray: *mut INHERITED_FROMW) -> u32; + pub fn GetInheritanceSourceW(pobjectname: ::windows_sys::core::PCWSTR, objecttype: SE_OBJECT_TYPE, securityinfo: u32, container: super::super::Foundation::BOOL, pobjectclassguids: *const *const ::windows_sys::core::GUID, guidcount: u32, pacl: *const super::ACL, pfnarray: *const FN_OBJECT_MGR_FUNCTS, pgenericmapping: *const super::GENERIC_MAPPING, pinheritarray: *mut INHERITED_FROMW) -> u32; #[doc = "*Required features: `\"Win32_Security_Authorization\"`*"] pub fn GetMultipleTrusteeA(ptrustee: *const TRUSTEE_A) -> *mut TRUSTEE_A; #[doc = "*Required features: `\"Win32_Security_Authorization\"`*"] @@ -1852,11 +1852,11 @@ impl ::core::clone::Clone for EXPLICIT_ACCESS_W { } #[repr(C)] #[doc = "*Required features: `\"Win32_Security_Authorization\"`*"] -pub struct FN_OBJECT_MGR_FUNCTIONS { +pub struct FN_OBJECT_MGR_FUNCTS { pub Placeholder: u32, } -impl ::core::marker::Copy for FN_OBJECT_MGR_FUNCTIONS {} -impl ::core::clone::Clone for FN_OBJECT_MGR_FUNCTIONS { +impl ::core::marker::Copy for FN_OBJECT_MGR_FUNCTS {} +impl ::core::clone::Clone for FN_OBJECT_MGR_FUNCTS { fn clone(&self) -> Self { *self } diff --git a/crates/libs/sys/src/Windows/Win32/Security/Credentials/mod.rs b/crates/libs/sys/src/Windows/Win32/Security/Credentials/mod.rs index 511385a513..d0646f64df 100644 --- a/crates/libs/sys/src/Windows/Win32/Security/Credentials/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Security/Credentials/mod.rs @@ -1,9 +1,4 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_Security_Credentials\"`*"] - pub fn KeyCredentialManagerFreeInformation(keycredentialmanagerinfo: *const KeyCredentialManagerInfo); -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_Security_Credentials\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -152,6 +147,8 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn GetOpenCardNameW(param0: *mut OPENCARDNAMEW) -> i32; #[doc = "*Required features: `\"Win32_Security_Credentials\"`*"] + pub fn KeyCredentialManagerFreeInformation(keycredentialmanagerinfo: *const KeyCredentialManagerInfo); + #[doc = "*Required features: `\"Win32_Security_Credentials\"`*"] pub fn KeyCredentialManagerGetInformation(keycredentialmanagerinfo: *mut *mut KeyCredentialManagerInfo) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Security_Credentials\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] diff --git a/crates/libs/sys/src/Windows/Win32/Security/Cryptography/UI/mod.rs b/crates/libs/sys/src/Windows/Win32/Security/Cryptography/UI/mod.rs index d08c6b796c..1a789428c0 100644 --- a/crates/libs/sys/src/Windows/Win32/Security/Cryptography/UI/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Security/Cryptography/UI/mod.rs @@ -378,6 +378,34 @@ pub const CTL_MODIFY_REQUEST_ADD_NOT_TRUSTED: CTL_MODIFY_REQUEST_OPERATION = 1u3 #[doc = "*Required features: `\"Win32_Security_Cryptography_UI\"`*"] pub const CTL_MODIFY_REQUEST_REMOVE: CTL_MODIFY_REQUEST_OPERATION = 2u32; #[repr(C)] +#[doc = "*Required features: `\"Win32_Security_Cryptography_UI\"`*"] +pub struct CERT_FILTER_DATA { + pub dwSize: u32, + pub cExtensionChecks: u32, + pub arrayExtensionChecks: *mut CERT_FILTER_EXTENSION_MATCH, + pub dwCheckingFlags: u32, +} +impl ::core::marker::Copy for CERT_FILTER_DATA {} +impl ::core::clone::Clone for CERT_FILTER_DATA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Security_Cryptography_UI\"`*"] +pub struct CERT_FILTER_EXTENSION_MATCH { + pub szExtensionOID: ::windows_sys::core::PCSTR, + pub dwTestOperation: u32, + pub pbTestData: *mut u8, + pub cbTestData: u32, +} +impl ::core::marker::Copy for CERT_FILTER_EXTENSION_MATCH {} +impl ::core::clone::Clone for CERT_FILTER_EXTENSION_MATCH { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Security_Cryptography_UI\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct CERT_SELECTUI_INPUT { @@ -556,34 +584,6 @@ impl ::core::clone::Clone for CERT_VIEWPROPERTIES_STRUCT_W { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Security_Cryptography_UI\"`*"] -pub struct CMFLTR { - pub dwSize: u32, - pub cExtensionChecks: u32, - pub arrayExtensionChecks: *mut CMOID, - pub dwCheckingFlags: u32, -} -impl ::core::marker::Copy for CMFLTR {} -impl ::core::clone::Clone for CMFLTR { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Security_Cryptography_UI\"`*"] -pub struct CMOID { - pub szExtensionOID: ::windows_sys::core::PCSTR, - pub dwTestOperation: u32, - pub pbTestData: *mut u8, - pub cbTestData: u32, -} -impl ::core::marker::Copy for CMOID {} -impl ::core::clone::Clone for CMOID { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_Security_Cryptography_UI\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct CRYPTUI_CERT_MGR_STRUCT { diff --git a/crates/libs/sys/src/Windows/Win32/Security/Cryptography/mod.rs b/crates/libs/sys/src/Windows/Win32/Security/Cryptography/mod.rs index 8a8493c6f2..b4b043e4f9 100644 --- a/crates/libs/sys/src/Windows/Win32/Security/Cryptography/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Security/Cryptography/mod.rs @@ -13069,15 +13069,15 @@ pub type HCRYPTPROV_LEGACY = usize; pub type HCRYPTPROV_OR_NCRYPT_KEY_HANDLE = usize; #[repr(C)] #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] -pub struct HMAC_Info { +pub struct HMAC_INFO { pub HashAlgid: u32, pub pbInnerString: *mut u8, pub cbInnerString: u32, pub pbOuterString: *mut u8, pub cbOuterString: u32, } -impl ::core::marker::Copy for HMAC_Info {} -impl ::core::clone::Clone for HMAC_Info { +impl ::core::marker::Copy for HMAC_INFO {} +impl ::core::clone::Clone for HMAC_INFO { fn clone(&self) -> Self { *self } @@ -13326,12 +13326,12 @@ impl ::core::clone::Clone for NCRYPT_PCP_HMAC_AUTH_SIGNATURE_INFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] -pub struct NCRYPT_PCP_RAW_POLICYDIGEST { +pub struct NCRYPT_PCP_RAW_POLICYDIGEST_INFO { pub dwVersion: u32, pub cbDigest: u32, } -impl ::core::marker::Copy for NCRYPT_PCP_RAW_POLICYDIGEST {} -impl ::core::clone::Clone for NCRYPT_PCP_RAW_POLICYDIGEST { +impl ::core::marker::Copy for NCRYPT_PCP_RAW_POLICYDIGEST_INFO {} +impl ::core::clone::Clone for NCRYPT_PCP_RAW_POLICYDIGEST_INFO { fn clone(&self) -> Self { *self } diff --git a/crates/libs/sys/src/Windows/Win32/Security/EnterpriseData/mod.rs b/crates/libs/sys/src/Windows/Win32/Security/EnterpriseData/mod.rs index 19756cb51e..c02f20c8bc 100644 --- a/crates/libs/sys/src/Windows/Win32/Security/EnterpriseData/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Security/EnterpriseData/mod.rs @@ -1,12 +1,4 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"] - pub fn SrpHostingTerminate(r#type: SRPHOSTING_TYPE); - #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn SrpIsTokenService(tokenhandle: super::super::Foundation::HANDLE, istokenservice: *mut u8) -> super::super::Foundation::NTSTATUS; -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"] pub fn ProtectFileToEnterpriseIdentity(fileorfolderpath: ::windows_sys::core::PCWSTR, identity: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT; @@ -31,6 +23,11 @@ extern "system" { pub fn SrpGetEnterprisePolicy(tokenhandle: super::super::Foundation::HANDLE, policyflags: *mut ENTERPRISE_DATA_POLICIES) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"] pub fn SrpHostingInitialize(version: SRPHOSTING_VERSION, r#type: SRPHOSTING_TYPE, pvdata: *const ::core::ffi::c_void, cbdata: u32) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"] + pub fn SrpHostingTerminate(r#type: SRPHOSTING_TYPE); + #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn SrpIsTokenService(tokenhandle: super::super::Foundation::HANDLE, istokenservice: *mut u8) -> super::super::Foundation::NTSTATUS; #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn SrpSetTokenEnterpriseId(tokenhandle: super::super::Foundation::HANDLE, enterpriseid: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT; 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 5b8fb3bff5..b53e603f7f 100644 --- a/crates/libs/sys/src/Windows/Win32/Storage/FileSystem/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Storage/FileSystem/mod.rs @@ -1,13 +1,4 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetCurrentClockTransactionManager(transactionmanagerhandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetTransactionManagerId(transactionmanagerhandle: super::super::Foundation::HANDLE, transactionmanagerid: *mut ::windows_sys::core::GUID) -> super::super::Foundation::BOOL; -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -385,6 +376,9 @@ extern "system" { pub fn GetCompressedFileSizeW(lpfilename: ::windows_sys::core::PCWSTR, lpfilesizehigh: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn GetCurrentClockTransactionManager(transactionmanagerhandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn GetDiskFreeSpaceA(lprootpathname: ::windows_sys::core::PCSTR, lpsectorspercluster: *mut u32, lpbytespersector: *mut u32, lpnumberoffreeclusters: *mut u32, lptotalnumberofclusters: *mut u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -563,6 +557,9 @@ extern "system" { pub fn GetTransactionInformation(transactionhandle: super::super::Foundation::HANDLE, outcome: *mut u32, isolationlevel: *mut u32, isolationflags: *mut u32, timeout: *mut u32, bufferlength: u32, description: ::windows_sys::core::PWSTR) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn GetTransactionManagerId(transactionmanagerhandle: super::super::Foundation::HANDLE, transactionmanagerid: *mut ::windows_sys::core::GUID) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn GetVolumeInformationA(lprootpathname: ::windows_sys::core::PCSTR, lpvolumenamebuffer: ::windows_sys::core::PSTR, nvolumenamesize: u32, lpvolumeserialnumber: *mut u32, lpmaximumcomponentlength: *mut u32, lpfilesystemflags: *mut u32, lpfilesystemnamebuffer: ::windows_sys::core::PSTR, nfilesystemnamesize: u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -733,7 +730,7 @@ extern "system" { pub fn OpenEnlistment(dwdesiredaccess: u32, resourcemanagerhandle: super::super::Foundation::HANDLE, enlistmentid: *mut ::windows_sys::core::GUID) -> super::super::Foundation::HANDLE; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn OpenFile(lpfilename: ::windows_sys::core::PCSTR, lpreopenbuff: *mut OFSTRUCT, ustyle: LZOPENFILE_STYLE) -> i32; + pub fn OpenFile(lpfilename: ::windows_sys::core::PCSTR, lpreopenbuff: *mut OFSTRUCT, ustyle: u32) -> i32; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] pub fn OpenFileById(hvolumehint: super::super::Foundation::HANDLE, lpfileid: *const FILE_ID_DESCRIPTOR, dwdesiredaccess: FILE_ACCESS_FLAGS, dwsharemode: FILE_SHARE_MODE, lpsecurityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwflagsandattributes: FILE_FLAGS_AND_ATTRIBUTES) -> super::super::Foundation::HANDLE; @@ -2248,39 +2245,39 @@ pub const CALLBACK_CHUNK_FINISHED: LPPROGRESS_ROUTINE_CALLBACK_REASON = 0u32; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] pub const CALLBACK_STREAM_SWITCH: LPPROGRESS_ROUTINE_CALLBACK_REASON = 1u32; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub type LZOPENFILE_STYLE = u32; +pub type LZOPENFILE_STYLE = u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_CANCEL: LZOPENFILE_STYLE = 2048u32; +pub const OF_CANCEL: LZOPENFILE_STYLE = 2048u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_CREATE: LZOPENFILE_STYLE = 4096u32; +pub const OF_CREATE: LZOPENFILE_STYLE = 4096u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_DELETE: LZOPENFILE_STYLE = 512u32; +pub const OF_DELETE: LZOPENFILE_STYLE = 512u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_EXIST: LZOPENFILE_STYLE = 16384u32; +pub const OF_EXIST: LZOPENFILE_STYLE = 16384u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_PARSE: LZOPENFILE_STYLE = 256u32; +pub const OF_PARSE: LZOPENFILE_STYLE = 256u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_PROMPT: LZOPENFILE_STYLE = 8192u32; +pub const OF_PROMPT: LZOPENFILE_STYLE = 8192u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_READ: LZOPENFILE_STYLE = 0u32; +pub const OF_READ: LZOPENFILE_STYLE = 0u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_READWRITE: LZOPENFILE_STYLE = 2u32; +pub const OF_READWRITE: LZOPENFILE_STYLE = 2u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_REOPEN: LZOPENFILE_STYLE = 32768u32; +pub const OF_REOPEN: LZOPENFILE_STYLE = 32768u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_SHARE_DENY_NONE: LZOPENFILE_STYLE = 64u32; +pub const OF_SHARE_DENY_NONE: LZOPENFILE_STYLE = 64u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_SHARE_DENY_READ: LZOPENFILE_STYLE = 48u32; +pub const OF_SHARE_DENY_READ: LZOPENFILE_STYLE = 48u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_SHARE_DENY_WRITE: LZOPENFILE_STYLE = 32u32; +pub const OF_SHARE_DENY_WRITE: LZOPENFILE_STYLE = 32u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_SHARE_EXCLUSIVE: LZOPENFILE_STYLE = 16u32; +pub const OF_SHARE_EXCLUSIVE: LZOPENFILE_STYLE = 16u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_WRITE: LZOPENFILE_STYLE = 1u32; +pub const OF_WRITE: LZOPENFILE_STYLE = 1u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_SHARE_COMPAT: LZOPENFILE_STYLE = 0u32; +pub const OF_SHARE_COMPAT: LZOPENFILE_STYLE = 0u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_VERIFY: LZOPENFILE_STYLE = 1024u32; +pub const OF_VERIFY: LZOPENFILE_STYLE = 1024u16; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] pub type MOVE_FILE_FLAGS = u32; #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] @@ -6380,7 +6377,7 @@ impl ::core::clone::Clone for TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] pub struct TXF_ID { pub Anonymous: TXF_ID_0, @@ -6403,7 +6400,7 @@ impl ::core::clone::Clone for TXF_ID_0 { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] pub struct TXF_LOG_RECORD_AFFECTED_FILE { pub Version: u16, @@ -6420,7 +6417,7 @@ impl ::core::clone::Clone for TXF_LOG_RECORD_AFFECTED_FILE { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] pub struct TXF_LOG_RECORD_BASE { pub Version: u16, diff --git a/crates/libs/sys/src/Windows/Win32/Storage/Jet/mod.rs b/crates/libs/sys/src/Windows/Win32/Storage/Jet/mod.rs index 65cad9b4c6..69bfcd68c6 100644 --- a/crates/libs/sys/src/Windows/Win32/Storage/Jet/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Storage/Jet/mod.rs @@ -70,10 +70,10 @@ extern "system" { pub fn JetCommitTransaction2(sesid: super::StructuredStorage::JET_SESID, grbit: u32, cmsecdurablecommit: u32, pcommitid: *mut JET_COMMIT_ID) -> i32; #[doc = "*Required features: `\"Win32_Storage_Jet\"`, `\"Win32_Storage_StructuredStorage\"`*"] #[cfg(feature = "Win32_Storage_StructuredStorage")] - pub fn JetCompactA(sesid: super::StructuredStorage::JET_SESID, szdatabasesrc: *const i8, szdatabasedest: *const i8, pfnstatus: JET_PFNSTATUS, pconvert: *const CONVERT_A, grbit: u32) -> i32; + pub fn JetCompactA(sesid: super::StructuredStorage::JET_SESID, szdatabasesrc: *const i8, szdatabasedest: *const i8, pfnstatus: JET_PFNSTATUS, pconvert: *const JET_CONVERT_A, grbit: u32) -> i32; #[doc = "*Required features: `\"Win32_Storage_Jet\"`, `\"Win32_Storage_StructuredStorage\"`*"] #[cfg(feature = "Win32_Storage_StructuredStorage")] - pub fn JetCompactW(sesid: super::StructuredStorage::JET_SESID, szdatabasesrc: *const u16, szdatabasedest: *const u16, pfnstatus: JET_PFNSTATUS, pconvert: *const CONVERT_W, grbit: u32) -> i32; + pub fn JetCompactW(sesid: super::StructuredStorage::JET_SESID, szdatabasesrc: *const u16, szdatabasedest: *const u16, pfnstatus: JET_PFNSTATUS, pconvert: *const JET_CONVERT_W, grbit: u32) -> i32; #[doc = "*Required features: `\"Win32_Storage_Jet\"`, `\"Win32_Storage_StructuredStorage\"`*"] #[cfg(feature = "Win32_Storage_StructuredStorage")] pub fn JetComputeStats(sesid: super::StructuredStorage::JET_SESID, tableid: super::StructuredStorage::JET_TABLEID) -> i32; @@ -2634,76 +2634,6 @@ pub const JET_relopGreaterThan: JET_RELOP = 6i32; pub const JET_relopBitmaskEqualsZero: JET_RELOP = 7i32; #[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] pub const JET_relopBitmaskNotEqualsZero: JET_RELOP = 8i32; -#[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] -pub struct CONVERT_A { - pub szOldDll: ::windows_sys::core::PSTR, - pub Anonymous: CONVERT_A_0, -} -impl ::core::marker::Copy for CONVERT_A {} -impl ::core::clone::Clone for CONVERT_A { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] -pub union CONVERT_A_0 { - pub fFlags: u32, - pub Anonymous: CONVERT_A_0_0, -} -impl ::core::marker::Copy for CONVERT_A_0 {} -impl ::core::clone::Clone for CONVERT_A_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] -pub struct CONVERT_A_0_0 { - pub _bitfield: u32, -} -impl ::core::marker::Copy for CONVERT_A_0_0 {} -impl ::core::clone::Clone for CONVERT_A_0_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] -pub struct CONVERT_W { - pub szOldDll: ::windows_sys::core::PWSTR, - pub Anonymous: CONVERT_W_0, -} -impl ::core::marker::Copy for CONVERT_W {} -impl ::core::clone::Clone for CONVERT_W { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] -pub union CONVERT_W_0 { - pub fFlags: u32, - pub Anonymous: CONVERT_W_0_0, -} -impl ::core::marker::Copy for CONVERT_W_0 {} -impl ::core::clone::Clone for CONVERT_W_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] -pub struct CONVERT_W_0_0 { - pub _bitfield: u32, -} -impl ::core::marker::Copy for CONVERT_W_0_0 {} -impl ::core::clone::Clone for CONVERT_W_0_0 { - fn clone(&self) -> Self { - *self - } -} #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Storage_Jet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -3014,6 +2944,76 @@ impl ::core::clone::Clone for JET_CONDITIONALCOLUMN_W { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] +pub struct JET_CONVERT_A { + pub szOldDll: ::windows_sys::core::PSTR, + pub Anonymous: JET_CONVERT_A_0, +} +impl ::core::marker::Copy for JET_CONVERT_A {} +impl ::core::clone::Clone for JET_CONVERT_A { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] +pub union JET_CONVERT_A_0 { + pub fFlags: u32, + pub Anonymous: JET_CONVERT_A_0_0, +} +impl ::core::marker::Copy for JET_CONVERT_A_0 {} +impl ::core::clone::Clone for JET_CONVERT_A_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] +pub struct JET_CONVERT_A_0_0 { + pub _bitfield: u32, +} +impl ::core::marker::Copy for JET_CONVERT_A_0_0 {} +impl ::core::clone::Clone for JET_CONVERT_A_0_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] +pub struct JET_CONVERT_W { + pub szOldDll: ::windows_sys::core::PWSTR, + pub Anonymous: JET_CONVERT_W_0, +} +impl ::core::marker::Copy for JET_CONVERT_W {} +impl ::core::clone::Clone for JET_CONVERT_W { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] +pub union JET_CONVERT_W_0 { + pub fFlags: u32, + pub Anonymous: JET_CONVERT_W_0_0, +} +impl ::core::marker::Copy for JET_CONVERT_W_0 {} +impl ::core::clone::Clone for JET_CONVERT_W_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] +pub struct JET_CONVERT_W_0_0 { + pub _bitfield: u32, +} +impl ::core::marker::Copy for JET_CONVERT_W_0_0 {} +impl ::core::clone::Clone for JET_CONVERT_W_0_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Storage_Jet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct JET_DBINFOMISC { diff --git a/crates/libs/sys/src/Windows/Win32/Storage/Xps/mod.rs b/crates/libs/sys/src/Windows/Win32/Storage/Xps/mod.rs index 0e853e3a86..e30ca41785 100644 --- a/crates/libs/sys/src/Windows/Win32/Storage/Xps/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Storage/Xps/mod.rs @@ -281,67 +281,67 @@ pub const XpsOMObjectFactory: ::windows_sys::core::GUID = ::windows_sys::core::G pub const XpsOMThumbnailGenerator: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 2118788066, data2: 47465, data3: 18273, data4: [190, 53, 26, 140, 237, 88, 227, 35] }; pub const XpsSignatureManager: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 2965648160, data2: 8981, data3: 17570, data4: [183, 10, 9, 67, 161, 64, 168, 238] }; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub type DEVICE_CAPABILITIES = u32; +pub type DEVICE_CAPABILITIES = u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_BINNAMES: DEVICE_CAPABILITIES = 12u32; +pub const DC_BINNAMES: DEVICE_CAPABILITIES = 12u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_BINS: DEVICE_CAPABILITIES = 6u32; +pub const DC_BINS: DEVICE_CAPABILITIES = 6u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_COLLATE: DEVICE_CAPABILITIES = 22u32; +pub const DC_COLLATE: DEVICE_CAPABILITIES = 22u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_COLORDEVICE: DEVICE_CAPABILITIES = 32u32; +pub const DC_COLORDEVICE: DEVICE_CAPABILITIES = 32u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_COPIES: DEVICE_CAPABILITIES = 18u32; +pub const DC_COPIES: DEVICE_CAPABILITIES = 18u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_DRIVER: DEVICE_CAPABILITIES = 11u32; +pub const DC_DRIVER: DEVICE_CAPABILITIES = 11u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_DUPLEX: DEVICE_CAPABILITIES = 7u32; +pub const DC_DUPLEX: DEVICE_CAPABILITIES = 7u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_ENUMRESOLUTIONS: DEVICE_CAPABILITIES = 13u32; +pub const DC_ENUMRESOLUTIONS: DEVICE_CAPABILITIES = 13u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_EXTRA: DEVICE_CAPABILITIES = 9u32; +pub const DC_EXTRA: DEVICE_CAPABILITIES = 9u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_FIELDS: DEVICE_CAPABILITIES = 1u32; +pub const DC_FIELDS: DEVICE_CAPABILITIES = 1u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_FILEDEPENDENCIES: DEVICE_CAPABILITIES = 14u32; +pub const DC_FILEDEPENDENCIES: DEVICE_CAPABILITIES = 14u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_MAXEXTENT: DEVICE_CAPABILITIES = 5u32; +pub const DC_MAXEXTENT: DEVICE_CAPABILITIES = 5u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_MEDIAREADY: DEVICE_CAPABILITIES = 29u32; +pub const DC_MEDIAREADY: DEVICE_CAPABILITIES = 29u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_MEDIATYPENAMES: DEVICE_CAPABILITIES = 34u32; +pub const DC_MEDIATYPENAMES: DEVICE_CAPABILITIES = 34u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_MEDIATYPES: DEVICE_CAPABILITIES = 35u32; +pub const DC_MEDIATYPES: DEVICE_CAPABILITIES = 35u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_MINEXTENT: DEVICE_CAPABILITIES = 4u32; +pub const DC_MINEXTENT: DEVICE_CAPABILITIES = 4u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_ORIENTATION: DEVICE_CAPABILITIES = 17u32; +pub const DC_ORIENTATION: DEVICE_CAPABILITIES = 17u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_NUP: DEVICE_CAPABILITIES = 33u32; +pub const DC_NUP: DEVICE_CAPABILITIES = 33u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PAPERNAMES: DEVICE_CAPABILITIES = 16u32; +pub const DC_PAPERNAMES: DEVICE_CAPABILITIES = 16u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PAPERS: DEVICE_CAPABILITIES = 2u32; +pub const DC_PAPERS: DEVICE_CAPABILITIES = 2u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PAPERSIZE: DEVICE_CAPABILITIES = 3u32; +pub const DC_PAPERSIZE: DEVICE_CAPABILITIES = 3u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PERSONALITY: DEVICE_CAPABILITIES = 25u32; +pub const DC_PERSONALITY: DEVICE_CAPABILITIES = 25u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PRINTERMEM: DEVICE_CAPABILITIES = 28u32; +pub const DC_PRINTERMEM: DEVICE_CAPABILITIES = 28u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PRINTRATE: DEVICE_CAPABILITIES = 26u32; +pub const DC_PRINTRATE: DEVICE_CAPABILITIES = 26u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PRINTRATEPPM: DEVICE_CAPABILITIES = 31u32; +pub const DC_PRINTRATEPPM: DEVICE_CAPABILITIES = 31u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PRINTRATEUNIT: DEVICE_CAPABILITIES = 27u32; +pub const DC_PRINTRATEUNIT: DEVICE_CAPABILITIES = 27u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_SIZE: DEVICE_CAPABILITIES = 8u32; +pub const DC_SIZE: DEVICE_CAPABILITIES = 8u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_STAPLE: DEVICE_CAPABILITIES = 30u32; +pub const DC_STAPLE: DEVICE_CAPABILITIES = 30u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_TRUETYPE: DEVICE_CAPABILITIES = 15u32; +pub const DC_TRUETYPE: DEVICE_CAPABILITIES = 15u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_VERSION: DEVICE_CAPABILITIES = 10u32; +pub const DC_VERSION: DEVICE_CAPABILITIES = 10u16; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] pub type PRINT_WINDOW_FLAGS = u32; #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] diff --git a/crates/libs/sys/src/Windows/Win32/System/AddressBook/mod.rs b/crates/libs/sys/src/Windows/Win32/System/AddressBook/mod.rs index 7b3abf869f..c8d1f0a551 100644 --- a/crates/libs/sys/src/Windows/Win32/System/AddressBook/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/AddressBook/mod.rs @@ -984,6 +984,18 @@ impl ::core::clone::Clone for FLATMTSIDLIST { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_AddressBook\"`*"] +pub struct FlagList { + pub cFlags: u32, + pub ulFlag: [u32; 1], +} +impl ::core::marker::Copy for FlagList {} +impl ::core::clone::Clone for FlagList { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_AddressBook\"`*"] pub struct MAPIERROR { pub ulVersion: u32, pub lpszError: *mut i8, @@ -1414,7 +1426,7 @@ impl ::core::clone::Clone for SPropTagArray { pub struct SPropValue { pub ulPropTag: u32, pub dwAlignPad: u32, - pub Value: _PV, + pub Value: __UPV, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl ::core::marker::Copy for SPropValue {} @@ -1695,9 +1707,11 @@ impl ::core::clone::Clone for WAB_PARAM { } } #[repr(C)] +pub struct _WABACTIONITEM(pub u8); +#[repr(C)] #[doc = "*Required features: `\"Win32_System_AddressBook\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -pub union _PV { +pub union __UPV { pub i: i16, pub l: i32, pub ul: u32, @@ -1728,23 +1742,9 @@ pub union _PV { pub x: i32, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::marker::Copy for _PV {} +impl ::core::marker::Copy for __UPV {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::clone::Clone for _PV { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -pub struct _WABACTIONITEM(pub u8); -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_AddressBook\"`*"] -pub struct _flaglist { - pub cFlags: u32, - pub ulFlag: [u32; 1], -} -impl ::core::marker::Copy for _flaglist {} -impl ::core::clone::Clone for _flaglist { +impl ::core::clone::Clone for __UPV { fn clone(&self) -> Self { *self } diff --git a/crates/libs/sys/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs b/crates/libs/sys/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs index 6fbe0dac51..5939529b03 100644 --- a/crates/libs/sys/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs @@ -236,9 +236,9 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub fn MsiDoActionW(hinstall: MSIHANDLE, szaction: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] - pub fn MsiEnableLogA(dwlogmode: INSTALLOGMODE, szlogfile: ::windows_sys::core::PCSTR, dwlogattributes: u32) -> u32; + pub fn MsiEnableLogA(dwlogmode: INSTALLLOGMODE, szlogfile: ::windows_sys::core::PCSTR, dwlogattributes: u32) -> u32; #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] - pub fn MsiEnableLogW(dwlogmode: INSTALLOGMODE, szlogfile: ::windows_sys::core::PCWSTR, dwlogattributes: u32) -> u32; + pub fn MsiEnableLogW(dwlogmode: INSTALLLOGMODE, szlogfile: ::windows_sys::core::PCWSTR, dwlogattributes: u32) -> u32; #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub fn MsiEnableUIPreview(hdatabase: MSIHANDLE, phpreview: *mut MSIHANDLE) -> u32; #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] @@ -2152,6 +2152,54 @@ pub const INSTALLLOGATTRIBUTES_APPEND: INSTALLLOGATTRIBUTES = 1i32; #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub const INSTALLLOGATTRIBUTES_FLUSHEACHLINE: INSTALLLOGATTRIBUTES = 2i32; #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub type INSTALLLOGMODE = i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_FATALEXIT: INSTALLLOGMODE = 1i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_ERROR: INSTALLLOGMODE = 2i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_WARNING: INSTALLLOGMODE = 4i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_USER: INSTALLLOGMODE = 8i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_INFO: INSTALLLOGMODE = 16i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_RESOLVESOURCE: INSTALLLOGMODE = 64i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_OUTOFDISKSPACE: INSTALLLOGMODE = 128i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_ACTIONSTART: INSTALLLOGMODE = 256i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_ACTIONDATA: INSTALLLOGMODE = 512i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_COMMONDATA: INSTALLLOGMODE = 2048i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_PROPERTYDUMP: INSTALLLOGMODE = 1024i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_VERBOSE: INSTALLLOGMODE = 4096i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_EXTRADEBUG: INSTALLLOGMODE = 8192i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_LOGONLYONERROR: INSTALLLOGMODE = 16384i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_LOGPERFORMANCE: INSTALLLOGMODE = 32768i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_PROGRESS: INSTALLLOGMODE = 1024i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_INITIALIZE: INSTALLLOGMODE = 4096i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_TERMINATE: INSTALLLOGMODE = 8192i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_SHOWDIALOG: INSTALLLOGMODE = 16384i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_FILESINUSE: INSTALLLOGMODE = 32i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_RMFILESINUSE: INSTALLLOGMODE = 33554432i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_INSTALLSTART: INSTALLLOGMODE = 67108864i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_INSTALLEND: INSTALLLOGMODE = 134217728i32; +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub type INSTALLMESSAGE = i32; #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub const INSTALLMESSAGE_FATALEXIT: INSTALLMESSAGE = 0i32; @@ -2204,54 +2252,6 @@ pub const INSTALLMODE_EXISTING: INSTALLMODE = -1i32; #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub const INSTALLMODE_DEFAULT: INSTALLMODE = 0i32; #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub type INSTALLOGMODE = i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_FATALEXIT: INSTALLOGMODE = 1i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_ERROR: INSTALLOGMODE = 2i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_WARNING: INSTALLOGMODE = 4i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_USER: INSTALLOGMODE = 8i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_INFO: INSTALLOGMODE = 16i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_RESOLVESOURCE: INSTALLOGMODE = 64i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_OUTOFDISKSPACE: INSTALLOGMODE = 128i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_ACTIONSTART: INSTALLOGMODE = 256i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_ACTIONDATA: INSTALLOGMODE = 512i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_COMMONDATA: INSTALLOGMODE = 2048i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_PROPERTYDUMP: INSTALLOGMODE = 1024i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_VERBOSE: INSTALLOGMODE = 4096i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_EXTRADEBUG: INSTALLOGMODE = 8192i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_LOGONLYONERROR: INSTALLOGMODE = 16384i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_LOGPERFORMANCE: INSTALLOGMODE = 32768i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_PROGRESS: INSTALLOGMODE = 1024i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_INITIALIZE: INSTALLOGMODE = 4096i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_TERMINATE: INSTALLOGMODE = 8192i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_SHOWDIALOG: INSTALLOGMODE = 16384i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_FILESINUSE: INSTALLOGMODE = 32i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_RMFILESINUSE: INSTALLOGMODE = 33554432i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_INSTALLSTART: INSTALLOGMODE = 67108864i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_INSTALLEND: INSTALLOGMODE = 134217728i32; -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub type INSTALLSTATE = i32; #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub const INSTALLSTATE_NOTUSED: INSTALLSTATE = -7i32; @@ -4007,6 +4007,18 @@ impl ::core::clone::Clone for PMSIHANDLE { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub struct PM_APPTASKTYPE { + pub ProductID: ::windows_sys::core::GUID, + pub TaskType: PM_TASK_TYPE, +} +impl ::core::marker::Copy for PM_APPTASKTYPE {} +impl ::core::clone::Clone for PM_APPTASKTYPE { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_BSATASKID { pub ProductID: ::windows_sys::core::GUID, pub TaskID: ::windows_sys::core::BSTR, @@ -4051,7 +4063,7 @@ pub union PM_ENUM_FILTER_0 { pub Tasktype: PM_TASK_TYPE, pub TaskProductID: ::windows_sys::core::GUID, pub TileProductID: ::windows_sys::core::GUID, - pub AppTaskType: _tagAPPTASKTYPE, + pub AppTaskType: PM_APPTASKTYPE, pub Consumer: PM_EXTENSIONCONSUMER, pub BSATask: PM_BSATASKID, pub BSAProductID: ::windows_sys::core::GUID, @@ -4209,18 +4221,6 @@ impl ::core::clone::Clone for PROTECTED_FILE_DATA { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub struct _tagAPPTASKTYPE { - pub ProductID: ::windows_sys::core::GUID, - pub TaskType: PM_TASK_TYPE, -} -impl ::core::marker::Copy for _tagAPPTASKTYPE {} -impl ::core::clone::Clone for _tagAPPTASKTYPE { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub type INSTALLUI_HANDLERA = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] diff --git a/crates/libs/sys/src/Windows/Win32/System/AssessmentTool/mod.rs b/crates/libs/sys/src/Windows/Win32/System/AssessmentTool/mod.rs index 3193903593..f5187ae1ef 100644 --- a/crates/libs/sys/src/Windows/Win32/System/AssessmentTool/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/AssessmentTool/mod.rs @@ -48,12 +48,12 @@ pub const WINSAT_BITMAP_SIZE_SMALL: WINSAT_BITMAP_SIZE = 0i32; #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`*"] pub const WINSAT_BITMAP_SIZE_NORMAL: WINSAT_BITMAP_SIZE = 1i32; #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`*"] -pub type WINSAT_OEM_DATA_TYPE = i32; +pub type WINSAT_OEM_CUSTOMIZATION_STATE = i32; #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`*"] -pub const WINSAT_OEM_DATA_VALID: WINSAT_OEM_DATA_TYPE = 0i32; +pub const WINSAT_OEM_DATA_VALID: WINSAT_OEM_CUSTOMIZATION_STATE = 0i32; #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`*"] -pub const WINSAT_OEM_DATA_NON_SYS_CONFIG_MATCH: WINSAT_OEM_DATA_TYPE = 1i32; +pub const WINSAT_OEM_DATA_NON_SYS_CONFIG_MATCH: WINSAT_OEM_CUSTOMIZATION_STATE = 1i32; #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`*"] -pub const WINSAT_OEM_DATA_INVALID: WINSAT_OEM_DATA_TYPE = 2i32; +pub const WINSAT_OEM_DATA_INVALID: WINSAT_OEM_CUSTOMIZATION_STATE = 2i32; #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`*"] -pub const WINSAT_OEM_NO_DATA_SUPPLIED: WINSAT_OEM_DATA_TYPE = 3i32; +pub const WINSAT_OEM_NO_DATA_SUPPLIED: WINSAT_OEM_CUSTOMIZATION_STATE = 3i32; 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 cccbfa5980..7c3b18ec66 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 @@ -57,16 +57,16 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub 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; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] - pub fn StgCreateDocfile(pwcsname: ::windows_sys::core::PCWSTR, grfmode: STGM, reserved: u32, ppstgopen: *mut IStorage) -> ::windows_sys::core::HRESULT; + pub fn StgCreateDocfile(pwcsname: ::windows_sys::core::PCWSTR, grfmode: super::STGM, reserved: u32, ppstgopen: *mut IStorage) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] - pub fn StgCreateDocfileOnILockBytes(plkbyt: ILockBytes, grfmode: STGM, reserved: u32, ppstgopen: *mut IStorage) -> ::windows_sys::core::HRESULT; + pub fn StgCreateDocfileOnILockBytes(plkbyt: ILockBytes, grfmode: super::STGM, reserved: u32, ppstgopen: *mut IStorage) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub fn StgCreatePropSetStg(pstorage: IStorage, dwreserved: u32, pppropsetstg: *mut IPropertySetStorage) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub fn StgCreatePropStg(punk: ::windows_sys::core::IUnknown, fmtid: *const ::windows_sys::core::GUID, pclsid: *const ::windows_sys::core::GUID, grfflags: u32, dwreserved: u32, pppropstg: *mut IPropertyStorage) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_Security\"`*"] #[cfg(feature = "Win32_Security")] - pub fn StgCreateStorageEx(pwcsname: ::windows_sys::core::PCWSTR, grfmode: STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: *mut STGOPTIONS, psecuritydescriptor: super::super::super::Security::PSECURITY_DESCRIPTOR, riid: *const ::windows_sys::core::GUID, ppobjectopen: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; + pub fn StgCreateStorageEx(pwcsname: ::windows_sys::core::PCWSTR, grfmode: super::STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: *mut STGOPTIONS, psecuritydescriptor: super::super::super::Security::PSECURITY_DESCRIPTOR, riid: *const ::windows_sys::core::GUID, ppobjectopen: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn StgDeserializePropVariant(pprop: *const SERIALIZEDPROPERTYVALUE, cbmax: u32, ppropvar: *mut PROPVARIANT) -> ::windows_sys::core::HRESULT; @@ -85,12 +85,12 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub fn StgOpenPropStg(punk: ::windows_sys::core::IUnknown, fmtid: *const ::windows_sys::core::GUID, grfflags: u32, dwreserved: u32, pppropstg: *mut IPropertyStorage) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] - pub fn StgOpenStorage(pwcsname: ::windows_sys::core::PCWSTR, pstgpriority: IStorage, grfmode: STGM, snbexclude: *const *const u16, reserved: u32, ppstgopen: *mut IStorage) -> ::windows_sys::core::HRESULT; + pub fn StgOpenStorage(pwcsname: ::windows_sys::core::PCWSTR, pstgpriority: IStorage, grfmode: super::STGM, snbexclude: *const *const u16, reserved: u32, ppstgopen: *mut IStorage) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_Security\"`*"] #[cfg(feature = "Win32_Security")] - pub fn StgOpenStorageEx(pwcsname: ::windows_sys::core::PCWSTR, grfmode: STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: *mut STGOPTIONS, psecuritydescriptor: super::super::super::Security::PSECURITY_DESCRIPTOR, riid: *const ::windows_sys::core::GUID, ppobjectopen: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; + pub fn StgOpenStorageEx(pwcsname: ::windows_sys::core::PCWSTR, grfmode: super::STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: *mut STGOPTIONS, psecuritydescriptor: super::super::super::Security::PSECURITY_DESCRIPTOR, riid: *const ::windows_sys::core::GUID, ppobjectopen: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] - pub fn StgOpenStorageOnILockBytes(plkbyt: ILockBytes, pstgpriority: IStorage, grfmode: u32, snbexclude: *const *const u16, reserved: u32, ppstgopen: *mut IStorage) -> ::windows_sys::core::HRESULT; + pub fn StgOpenStorageOnILockBytes(plkbyt: ILockBytes, pstgpriority: IStorage, grfmode: super::STGM, snbexclude: *const *const u16, reserved: u32, ppstgopen: *mut IStorage) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub fn StgPropertyLengthAsVariant(pprop: *const SERIALIZEDPROPERTYVALUE, cbprop: u32, codepage: u16, breserved: u8) -> u32; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_Foundation\"`*"] @@ -253,14 +253,6 @@ pub const PRSPEC_INVALID: u32 = 4294967295u32; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub const STGOPTIONS_VERSION: u32 = 1u32; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub type LOCKTYPE = i32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const LOCK_WRITE: LOCKTYPE = 1i32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const LOCK_EXCLUSIVE: LOCKTYPE = 2i32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const LOCK_ONLYONCE: LOCKTYPE = 4i32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub type PIDMSI_STATUS_VALUE = i32; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub const PIDMSI_STATUS_NORMAL: PIDMSI_STATUS_VALUE = 0i32; @@ -289,14 +281,6 @@ pub const PRSPEC_LPWSTR: PROPSPEC_KIND = 0u32; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub const PRSPEC_PROPID: PROPSPEC_KIND = 1u32; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub type STATFLAG = i32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STATFLAG_DEFAULT: STATFLAG = 0i32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STATFLAG_NONAME: STATFLAG = 1i32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STATFLAG_NOOPEN: STATFLAG = 2i32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub type STGFMT = u32; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub const STGFMT_STORAGE: STGFMT = 0u32; @@ -311,44 +295,6 @@ pub const STGFMT_DOCFILE: STGFMT = 5u32; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub const STGFMT_DOCUMENT: STGFMT = 0u32; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub type STGM = u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_DIRECT: STGM = 0u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_TRANSACTED: STGM = 65536u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_SIMPLE: STGM = 134217728u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_READ: STGM = 0u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_WRITE: STGM = 1u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_READWRITE: STGM = 2u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_SHARE_DENY_NONE: STGM = 64u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_SHARE_DENY_READ: STGM = 48u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_SHARE_DENY_WRITE: STGM = 32u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_SHARE_EXCLUSIVE: STGM = 16u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_PRIORITY: STGM = 262144u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_DELETEONRELEASE: STGM = 67108864u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_NOSCRATCH: STGM = 1048576u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_CREATE: STGM = 4096u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_CONVERT: STGM = 131072u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_FAILIFTHERE: STGM = 0u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_NOSNAPSHOT: STGM = 2097152u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_DIRECT_SWMR: STGM = 4194304u32; -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub type STGMOVE = i32; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub const STGMOVE_MOVE: STGMOVE = 0i32; diff --git a/crates/libs/sys/src/Windows/Win32/System/Com/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Com/mod.rs index 5d56fddb92..db644390d0 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Com/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Com/mod.rs @@ -440,6 +440,32 @@ pub const STG_LAYOUT_SEQUENTIAL: i32 = 0i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const STG_TOEND: i32 = -1i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub type ADVANCED_FEATURE_FLAGS = u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_AUTO: ADVANCED_FEATURE_FLAGS = 1u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_STATIC: ADVANCED_FEATURE_FLAGS = 2u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_EMBEDDED: ADVANCED_FEATURE_FLAGS = 4u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_FIXEDSIZE: ADVANCED_FEATURE_FLAGS = 16u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_RECORD: ADVANCED_FEATURE_FLAGS = 32u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_HAVEIID: ADVANCED_FEATURE_FLAGS = 64u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_HAVEVARTYPE: ADVANCED_FEATURE_FLAGS = 128u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_BSTR: ADVANCED_FEATURE_FLAGS = 256u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_UNKNOWN: ADVANCED_FEATURE_FLAGS = 512u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_DISPATCH: ADVANCED_FEATURE_FLAGS = 1024u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_VARIANT: ADVANCED_FEATURE_FLAGS = 2048u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_RESERVED: ADVANCED_FEATURE_FLAGS = 61448u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub type ADVF = i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const ADVF_NODATA: ADVF = 1i32; @@ -854,6 +880,14 @@ pub const INVOKE_PROPERTYPUT: INVOKEKIND = 4i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const INVOKE_PROPERTYPUTREF: INVOKEKIND = 8i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub type LOCKTYPE = i32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const LOCK_WRITE: LOCKTYPE = 1i32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const LOCK_EXCLUSIVE: LOCKTYPE = 2i32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const LOCK_ONLYONCE: LOCKTYPE = 4i32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub type MEMCTX = i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const MEMCTX_TASK: MEMCTX = 1i32; @@ -866,15 +900,15 @@ pub const MEMCTX_UNKNOWN: MEMCTX = -1i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const MEMCTX_SAME: MEMCTX = -2i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] -pub type MKREDUCE = i32; +pub type MKRREDUCE = i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] -pub const MKRREDUCE_ONE: MKREDUCE = 196608i32; +pub const MKRREDUCE_ONE: MKRREDUCE = 196608i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] -pub const MKRREDUCE_TOUSER: MKREDUCE = 131072i32; +pub const MKRREDUCE_TOUSER: MKRREDUCE = 131072i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] -pub const MKRREDUCE_THROUGHUSER: MKREDUCE = 65536i32; +pub const MKRREDUCE_THROUGHUSER: MKRREDUCE = 65536i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] -pub const MKRREDUCE_ALL: MKREDUCE = 0i32; +pub const MKRREDUCE_ALL: MKRREDUCE = 0i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub type MKSYS = i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -1022,6 +1056,14 @@ pub const SERVERCALL_REJECTED: SERVERCALL = 1i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const SERVERCALL_RETRYLATER: SERVERCALL = 2i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub type STATFLAG = i32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STATFLAG_DEFAULT: STATFLAG = 0i32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STATFLAG_NONAME: STATFLAG = 1i32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STATFLAG_NOOPEN: STATFLAG = 2i32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub type STGC = u32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const STGC_DEFAULT: STGC = 0u32; @@ -1034,6 +1076,44 @@ pub const STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE: STGC = 4u32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const STGC_CONSOLIDATE: STGC = 8u32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub type STGM = u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_DIRECT: STGM = 0u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_TRANSACTED: STGM = 65536u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_SIMPLE: STGM = 134217728u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_READ: STGM = 0u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_WRITE: STGM = 1u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_READWRITE: STGM = 2u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_SHARE_DENY_NONE: STGM = 64u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_SHARE_DENY_READ: STGM = 48u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_SHARE_DENY_WRITE: STGM = 32u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_SHARE_EXCLUSIVE: STGM = 16u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_PRIORITY: STGM = 262144u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_DELETEONRELEASE: STGM = 67108864u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_NOSCRATCH: STGM = 1048576u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_CREATE: STGM = 4096u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_CONVERT: STGM = 131072u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_FAILIFTHERE: STGM = 0u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_NOSNAPSHOT: STGM = 2097152u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_DIRECT_SWMR: STGM = 4194304u32; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub type STGTY = i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const STGTY_STORAGE: STGTY = 1i32; @@ -1320,6 +1400,34 @@ pub const VT_ILLEGALMASKED: VARENUM = 4095u16; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const VT_TYPEMASK: VARENUM = 4095u16; #[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub type VARFLAGS = u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FREADONLY: VARFLAGS = 1u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FSOURCE: VARFLAGS = 2u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FBINDABLE: VARFLAGS = 4u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FREQUESTEDIT: VARFLAGS = 8u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FDISPLAYBIND: VARFLAGS = 16u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FDEFAULTBIND: VARFLAGS = 32u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FHIDDEN: VARFLAGS = 64u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FRESTRICTED: VARFLAGS = 128u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FDEFAULTCOLLELEM: VARFLAGS = 256u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FUIDEFAULT: VARFLAGS = 512u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FNONBROWSABLE: VARFLAGS = 1024u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FREPLACEABLE: VARFLAGS = 2048u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FIMMEDIATEBIND: VARFLAGS = 4096u16; +#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub type VARKIND = i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const VAR_PERINSTANCE: VARKIND = 0i32; @@ -1666,6 +1774,18 @@ impl ::core::clone::Clone for DWORD_BLOB { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub struct DWORD_SIZEDARR { + pub clSize: u32, + pub pData: *mut u32, +} +impl ::core::marker::Copy for DWORD_SIZEDARR {} +impl ::core::clone::Clone for DWORD_SIZEDARR { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub struct ELEMDESC { @@ -1870,18 +1990,6 @@ impl ::core::clone::Clone for INTERFACEINFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Com\"`*"] -pub struct LONG_SIZEDARR { - pub clSize: u32, - pub pData: *mut u32, -} -impl ::core::marker::Copy for LONG_SIZEDARR {} -impl ::core::clone::Clone for LONG_SIZEDARR { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub struct MULTI_QI { pub pIID: *const ::windows_sys::core::GUID, pub pItf: ::windows_sys::core::IUnknown, @@ -1939,7 +2047,7 @@ impl ::core::clone::Clone for RPCOLEMESSAGE { #[repr(C)] #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub struct RemSTGMEDIUM { - pub tymed: u32, + pub tymed: TYMED, pub dwHandleType: u32, pub pData: u32, pub pUnkForRelease: u32, @@ -1956,7 +2064,7 @@ impl ::core::clone::Clone for RemSTGMEDIUM { #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub struct SAFEARRAY { pub cDims: u16, - pub fFeatures: u16, + pub fFeatures: ADVANCED_FEATURE_FLAGS, pub cbElements: u32, pub cLocks: u32, pub pvData: *mut ::core::ffi::c_void, @@ -1998,18 +2106,6 @@ impl ::core::clone::Clone for SChannelHookCallInfo { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Com\"`*"] -pub struct SHORT_SIZEDARR { - pub clSize: u32, - pub pData: *mut u16, -} -impl ::core::marker::Copy for SHORT_SIZEDARR {} -impl ::core::clone::Clone for SHORT_SIZEDARR { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub struct SOLE_AUTHENTICATION_INFO { pub dwAuthnSvc: u32, pub dwAuthzSvc: u32, @@ -2071,8 +2167,8 @@ pub struct STATSTG { pub mtime: super::super::Foundation::FILETIME, pub ctime: super::super::Foundation::FILETIME, pub atime: super::super::Foundation::FILETIME, - pub grfMode: u32, - pub grfLocksSupported: u32, + pub grfMode: STGM, + pub grfLocksSupported: LOCKTYPE, pub clsid: ::windows_sys::core::GUID, pub grfStateBits: u32, pub reserved: u32, @@ -2089,7 +2185,7 @@ impl ::core::clone::Clone for STATSTG { #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] pub struct STGMEDIUM { - pub tymed: u32, + pub tymed: TYMED, pub Anonymous: STGMEDIUM_0, pub pUnkForRelease: ::windows_sys::core::IUnknown, } @@ -2221,7 +2317,7 @@ pub struct VARDESC { pub lpstrSchema: ::windows_sys::core::PWSTR, pub Anonymous: VARDESC_0, pub elemdescVar: ELEMDESC, - pub wVarFlags: u16, + pub wVarFlags: VARFLAGS, pub varkind: VARKIND, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] @@ -2382,6 +2478,18 @@ impl ::core::clone::Clone for WORD_BLOB { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub struct WORD_SIZEDARR { + pub clSize: u32, + pub pData: *mut u16, +} +impl ::core::marker::Copy for WORD_SIZEDARR {} +impl ::core::clone::Clone for WORD_SIZEDARR { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub struct uCLSSPEC { pub tyspec: u32, pub tagged_union: uCLSSPEC_0, diff --git a/crates/libs/sys/src/Windows/Win32/System/ComponentServices/mod.rs b/crates/libs/sys/src/Windows/Win32/System/ComponentServices/mod.rs index a7bdaea6fe..fd008524b7 100644 --- a/crates/libs/sys/src/Windows/Win32/System/ComponentServices/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/ComponentServices/mod.rs @@ -901,6 +901,34 @@ pub const TxCommit: TransactionVote = 0i32; #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] pub const TxAbort: TransactionVote = 1i32; #[repr(C)] +#[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] +pub struct APPDATA { + pub m_idApp: u32, + pub m_szAppGuid: [u16; 40], + pub m_dwAppProcessId: u32, + pub m_AppStatistics: APPSTATISTICS, +} +impl ::core::marker::Copy for APPDATA {} +impl ::core::clone::Clone for APPDATA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] +pub struct APPSTATISTICS { + pub m_cTotalCalls: u32, + pub m_cTotalInstances: u32, + pub m_cTotalClasses: u32, + pub m_cCallsPerSecond: u32, +} +impl ::core::marker::Copy for APPSTATISTICS {} +impl ::core::clone::Clone for APPSTATISTICS { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_System_ComponentServices\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct ApplicationProcessRecycleInfo { @@ -986,35 +1014,7 @@ impl ::core::clone::Clone for ApplicationSummary { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] -pub struct CAppData { - pub m_idApp: u32, - pub m_szAppGuid: [u16; 40], - pub m_dwAppProcessId: u32, - pub m_AppStatistics: CAppStatistics, -} -impl ::core::marker::Copy for CAppData {} -impl ::core::clone::Clone for CAppData { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] -pub struct CAppStatistics { - pub m_cTotalCalls: u32, - pub m_cTotalInstances: u32, - pub m_cTotalClasses: u32, - pub m_cCallsPerSecond: u32, -} -impl ::core::marker::Copy for CAppStatistics {} -impl ::core::clone::Clone for CAppStatistics { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] -pub struct CCLSIDData { +pub struct CLSIDDATA { pub m_clsid: ::windows_sys::core::GUID, pub m_cReferences: u32, pub m_cBound: u32, @@ -1024,15 +1024,15 @@ pub struct CCLSIDData { pub m_cCallsCompleted: u32, pub m_cCallsFailed: u32, } -impl ::core::marker::Copy for CCLSIDData {} -impl ::core::clone::Clone for CCLSIDData { +impl ::core::marker::Copy for CLSIDDATA {} +impl ::core::clone::Clone for CLSIDDATA { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] -pub struct CCLSIDData2 { +pub struct CLSIDDATA2 { pub m_clsid: ::windows_sys::core::GUID, pub m_appid: ::windows_sys::core::GUID, pub m_partid: ::windows_sys::core::GUID, @@ -1047,8 +1047,8 @@ pub struct CCLSIDData2 { pub m_cCallsCompleted: u32, pub m_cCallsFailed: u32, } -impl ::core::marker::Copy for CCLSIDData2 {} -impl ::core::clone::Clone for CCLSIDData2 { +impl ::core::marker::Copy for CLSIDDATA2 {} +impl ::core::clone::Clone for CLSIDDATA2 { fn clone(&self) -> Self { *self } diff --git a/crates/libs/sys/src/Windows/Win32/System/DeploymentServices/mod.rs b/crates/libs/sys/src/Windows/Win32/System/DeploymentServices/mod.rs index e5547f6557..552db29218 100644 --- a/crates/libs/sys/src/Windows/Win32/System/DeploymentServices/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/DeploymentServices/mod.rs @@ -1,8 +1,5 @@ #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn PxeProviderFreeInfo(pprovider: *const PXE_PROVIDER) -> u32; #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn PxeTrace(hprovider: super::super::Foundation::HANDLE, severity: u32, pszformat: ::windows_sys::core::PCWSTR) -> u32; @@ -67,6 +64,9 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn PxeProviderEnumNext(henum: super::super::Foundation::HANDLE, ppprovider: *mut *mut PXE_PROVIDER) -> u32; + #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn PxeProviderFreeInfo(pprovider: *const PXE_PROVIDER) -> u32; #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`*"] pub fn PxeProviderQueryIndex(pszprovidername: ::windows_sys::core::PCWSTR, puindex: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] @@ -920,7 +920,7 @@ impl ::core::clone::Clone for PXE_ADDRESS_0 { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`*"] pub struct PXE_DHCPV6_MESSAGE { pub MessageType: u8, @@ -935,7 +935,7 @@ impl ::core::clone::Clone for PXE_DHCPV6_MESSAGE { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`*"] pub struct PXE_DHCPV6_MESSAGE_HEADER { pub MessageType: u8, @@ -974,7 +974,7 @@ impl ::core::clone::Clone for PXE_DHCPV6_OPTION { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`*"] pub struct PXE_DHCPV6_RELAY_MESSAGE { pub MessageType: u8, @@ -1027,7 +1027,7 @@ impl ::core::clone::Clone for PXE_DHCP_MESSAGE_0 { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`*"] pub struct PXE_DHCP_OPTION { pub OptionType: u8, 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 4142250a78..5e58cb7e7a 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 @@ -1,25 +1,5 @@ #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] - #[cfg(target_arch = "aarch64")] - #[cfg(feature = "Win32_Foundation")] - pub fn RtlAddFunctionTable(functiontable: *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, entrycount: u32, baseaddress: usize) -> super::super::super::Foundation::BOOLEAN; - #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] - #[cfg(target_arch = "x86_64")] - #[cfg(feature = "Win32_Foundation")] - pub fn RtlAddFunctionTable(functiontable: *const IMAGE_RUNTIME_FUNCTION_ENTRY, entrycount: u32, baseaddress: u64) -> super::super::super::Foundation::BOOLEAN; - #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] - #[cfg(target_arch = "aarch64")] - #[cfg(feature = "Win32_Foundation")] - pub fn RtlDeleteFunctionTable(functiontable: *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN; - #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] - #[cfg(target_arch = "x86_64")] - #[cfg(feature = "Win32_Foundation")] - pub fn RtlDeleteFunctionTable(functiontable: *const IMAGE_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN; - #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] - #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] - #[cfg(feature = "Win32_Foundation")] - pub 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; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] pub fn RtlRestoreContext(contextrecord: *const CONTEXT, exceptionrecord: *const EXCEPTION_RECORD); @@ -280,9 +260,9 @@ extern "system" { pub fn MapFileAndCheckSumA(filename: ::windows_sys::core::PCSTR, headersum: *mut u32, checksum: *mut u32) -> u32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub fn MapFileAndCheckSumW(filename: ::windows_sys::core::PCWSTR, headersum: *mut u32, checksum: *mut u32) -> u32; - #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn MessageBeep(utype: u32) -> super::super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] + pub fn MessageBeep(utype: super::super::super::UI::WindowsAndMessaging::MESSAGEBOX_STYLE) -> super::super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn MiniDumpReadDumpStream(baseofdump: *const ::core::ffi::c_void, streamnumber: u32, dir: *mut *mut MINIDUMP_DIRECTORY, streampointer: *mut *mut ::core::ffi::c_void, streamsize: *mut u32) -> super::super::super::Foundation::BOOL; @@ -338,6 +318,14 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn ReportSymbolLoadSummary(hprocess: super::super::super::Foundation::HANDLE, ploadmodule: ::windows_sys::core::PCWSTR, psymboldata: *const DBGHELP_DATA_REPORT_STRUCT) -> super::super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] + #[cfg(target_arch = "aarch64")] + #[cfg(feature = "Win32_Foundation")] + pub fn RtlAddFunctionTable(functiontable: *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, entrycount: u32, baseaddress: usize) -> super::super::super::Foundation::BOOLEAN; + #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] + #[cfg(target_arch = "x86_64")] + #[cfg(feature = "Win32_Foundation")] + pub fn RtlAddFunctionTable(functiontable: *const IMAGE_RUNTIME_FUNCTION_ENTRY, entrycount: u32, baseaddress: u64) -> super::super::super::Foundation::BOOLEAN; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[cfg(target_arch = "aarch64")] pub fn RtlAddGrowableFunctionTable(dynamictable: *mut *mut ::core::ffi::c_void, functiontable: *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, entrycount: u32, maximumentrycount: u32, rangebase: usize, rangeend: usize) -> u32; @@ -353,12 +341,28 @@ extern "system" { pub fn RtlCaptureContext2(contextrecord: *mut CONTEXT); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub fn RtlCaptureStackBackTrace(framestoskip: u32, framestocapture: u32, backtrace: *mut *mut ::core::ffi::c_void, backtracehash: *mut u32) -> u16; + #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] + #[cfg(target_arch = "aarch64")] + #[cfg(feature = "Win32_Foundation")] + pub fn RtlDeleteFunctionTable(functiontable: *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN; + #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] + #[cfg(target_arch = "x86_64")] + #[cfg(feature = "Win32_Foundation")] + pub fn RtlDeleteFunctionTable(functiontable: *const IMAGE_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] pub fn RtlDeleteGrowableFunctionTable(dynamictable: *const ::core::ffi::c_void); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] pub fn RtlGrowFunctionTable(dynamictable: *mut ::core::ffi::c_void, newentrycount: u32); + #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] + #[cfg(target_arch = "aarch64")] + #[cfg(feature = "Win32_Foundation")] + pub 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; + #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] + #[cfg(target_arch = "x86_64")] + #[cfg(feature = "Win32_Foundation")] + pub 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; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[cfg(target_arch = "aarch64")] pub fn RtlLookupFunctionEntry(controlpc: usize, imagebase: *mut usize, historytable: *mut UNWIND_HISTORY_TABLE) -> *mut IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY; @@ -3922,21 +3926,21 @@ pub const BREAKREASON_JIT: BREAKREASON = 7i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub const BREAKREASON_MUTATION_BREAKPOINT: BREAKREASON = 8i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub type BREAKRESUME_ACTION = i32; +pub type BREAKRESUMEACTION = i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_ABORT: BREAKRESUME_ACTION = 0i32; +pub const BREAKRESUMEACTION_ABORT: BREAKRESUMEACTION = 0i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_CONTINUE: BREAKRESUME_ACTION = 1i32; +pub const BREAKRESUMEACTION_CONTINUE: BREAKRESUMEACTION = 1i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_STEP_INTO: BREAKRESUME_ACTION = 2i32; +pub const BREAKRESUMEACTION_STEP_INTO: BREAKRESUMEACTION = 2i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_STEP_OVER: BREAKRESUME_ACTION = 3i32; +pub const BREAKRESUMEACTION_STEP_OVER: BREAKRESUMEACTION = 3i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_STEP_OUT: BREAKRESUME_ACTION = 4i32; +pub const BREAKRESUMEACTION_STEP_OUT: BREAKRESUMEACTION = 4i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_IGNORE: BREAKRESUME_ACTION = 5i32; +pub const BREAKRESUMEACTION_IGNORE: BREAKRESUMEACTION = 5i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_STEP_DOCUMENT: BREAKRESUME_ACTION = 6i32; +pub const BREAKRESUMEACTION_STEP_DOCUMENT: BREAKRESUMEACTION = 6i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub type BUGCHECK_ERROR = u32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] @@ -5138,6 +5142,26 @@ pub const DOCUMENTNAMETYPE_UNIQUE_TITLE: DOCUMENTNAMETYPE = 4i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub const DOCUMENTNAMETYPE_SOURCE_MAP_URL: DOCUMENTNAMETYPE = 5i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub type DUMP_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_INVALID: DUMP_TYPE = -1i32; +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_UNKNOWN: DUMP_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_FULL: DUMP_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_SUMMARY: DUMP_TYPE = 2i32; +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_HEADER: DUMP_TYPE = 3i32; +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_TRIAGE: DUMP_TYPE = 4i32; +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_BITMAP_FULL: DUMP_TYPE = 5i32; +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_BITMAP_KERNEL: DUMP_TYPE = 6i32; +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_AUTOMATIC: DUMP_TYPE = 7i32; +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub type ERRORRESUMEACTION = i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub const ERRORRESUMEACTION_ReexecuteErrorStatement: ERRORRESUMEACTION = 0i32; @@ -6347,77 +6371,77 @@ pub const ObjectMethod: ModelObjectKind = 8i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub const ObjectKeyReference: ModelObjectKind = 9i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub type OBJECT_ATTRIB_FLAG = u32; +pub type OBJECT_ATTRIB_FLAGS = i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_NO_ATTRIB: OBJECT_ATTRIB_FLAG = 0u32; +pub const OBJECT_ATTRIB_NO_ATTRIB: OBJECT_ATTRIB_FLAGS = 0i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_NO_NAME: OBJECT_ATTRIB_FLAG = 1u32; +pub const OBJECT_ATTRIB_NO_NAME: OBJECT_ATTRIB_FLAGS = 1i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_NO_TYPE: OBJECT_ATTRIB_FLAG = 2u32; +pub const OBJECT_ATTRIB_NO_TYPE: OBJECT_ATTRIB_FLAGS = 2i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_NO_VALUE: OBJECT_ATTRIB_FLAG = 4u32; +pub const OBJECT_ATTRIB_NO_VALUE: OBJECT_ATTRIB_FLAGS = 4i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_VALUE_IS_INVALID: OBJECT_ATTRIB_FLAG = 8u32; +pub const OBJECT_ATTRIB_VALUE_IS_INVALID: OBJECT_ATTRIB_FLAGS = 8i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_VALUE_IS_OBJECT: OBJECT_ATTRIB_FLAG = 16u32; +pub const OBJECT_ATTRIB_VALUE_IS_OBJECT: OBJECT_ATTRIB_FLAGS = 16i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_VALUE_IS_ENUM: OBJECT_ATTRIB_FLAG = 32u32; +pub const OBJECT_ATTRIB_VALUE_IS_ENUM: OBJECT_ATTRIB_FLAGS = 32i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_VALUE_IS_CUSTOM: OBJECT_ATTRIB_FLAG = 64u32; +pub const OBJECT_ATTRIB_VALUE_IS_CUSTOM: OBJECT_ATTRIB_FLAGS = 64i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_OBJECT_IS_EXPANDABLE: OBJECT_ATTRIB_FLAG = 112u32; +pub const OBJECT_ATTRIB_OBJECT_IS_EXPANDABLE: OBJECT_ATTRIB_FLAGS = 112i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_VALUE_HAS_CODE: OBJECT_ATTRIB_FLAG = 128u32; +pub const OBJECT_ATTRIB_VALUE_HAS_CODE: OBJECT_ATTRIB_FLAGS = 128i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_TYPE_IS_OBJECT: OBJECT_ATTRIB_FLAG = 256u32; +pub const OBJECT_ATTRIB_TYPE_IS_OBJECT: OBJECT_ATTRIB_FLAGS = 256i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_TYPE_HAS_CODE: OBJECT_ATTRIB_FLAG = 512u32; +pub const OBJECT_ATTRIB_TYPE_HAS_CODE: OBJECT_ATTRIB_FLAGS = 512i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_TYPE_IS_EXPANDABLE: OBJECT_ATTRIB_FLAG = 256u32; +pub const OBJECT_ATTRIB_TYPE_IS_EXPANDABLE: OBJECT_ATTRIB_FLAGS = 256i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_SLOT_IS_CATEGORY: OBJECT_ATTRIB_FLAG = 1024u32; +pub const OBJECT_ATTRIB_SLOT_IS_CATEGORY: OBJECT_ATTRIB_FLAGS = 1024i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_VALUE_READONLY: OBJECT_ATTRIB_FLAG = 2048u32; +pub const OBJECT_ATTRIB_VALUE_READONLY: OBJECT_ATTRIB_FLAGS = 2048i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_ACCESS_PUBLIC: OBJECT_ATTRIB_FLAG = 4096u32; +pub const OBJECT_ATTRIB_ACCESS_PUBLIC: OBJECT_ATTRIB_FLAGS = 4096i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_ACCESS_PRIVATE: OBJECT_ATTRIB_FLAG = 8192u32; +pub const OBJECT_ATTRIB_ACCESS_PRIVATE: OBJECT_ATTRIB_FLAGS = 8192i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_ACCESS_PROTECTED: OBJECT_ATTRIB_FLAG = 16384u32; +pub const OBJECT_ATTRIB_ACCESS_PROTECTED: OBJECT_ATTRIB_FLAGS = 16384i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_ACCESS_FINAL: OBJECT_ATTRIB_FLAG = 32768u32; +pub const OBJECT_ATTRIB_ACCESS_FINAL: OBJECT_ATTRIB_FLAGS = 32768i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_STORAGE_GLOBAL: OBJECT_ATTRIB_FLAG = 65536u32; +pub const OBJECT_ATTRIB_STORAGE_GLOBAL: OBJECT_ATTRIB_FLAGS = 65536i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_STORAGE_STATIC: OBJECT_ATTRIB_FLAG = 131072u32; +pub const OBJECT_ATTRIB_STORAGE_STATIC: OBJECT_ATTRIB_FLAGS = 131072i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_STORAGE_FIELD: OBJECT_ATTRIB_FLAG = 262144u32; +pub const OBJECT_ATTRIB_STORAGE_FIELD: OBJECT_ATTRIB_FLAGS = 262144i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_STORAGE_VIRTUAL: OBJECT_ATTRIB_FLAG = 524288u32; +pub const OBJECT_ATTRIB_STORAGE_VIRTUAL: OBJECT_ATTRIB_FLAGS = 524288i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_TYPE_IS_CONSTANT: OBJECT_ATTRIB_FLAG = 1048576u32; +pub const OBJECT_ATTRIB_TYPE_IS_CONSTANT: OBJECT_ATTRIB_FLAGS = 1048576i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_TYPE_IS_SYNCHRONIZED: OBJECT_ATTRIB_FLAG = 2097152u32; +pub const OBJECT_ATTRIB_TYPE_IS_SYNCHRONIZED: OBJECT_ATTRIB_FLAGS = 2097152i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_TYPE_IS_VOLATILE: OBJECT_ATTRIB_FLAG = 4194304u32; +pub const OBJECT_ATTRIB_TYPE_IS_VOLATILE: OBJECT_ATTRIB_FLAGS = 4194304i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_HAS_EXTENDED_ATTRIBS: OBJECT_ATTRIB_FLAG = 8388608u32; +pub const OBJECT_ATTRIB_HAS_EXTENDED_ATTRIBS: OBJECT_ATTRIB_FLAGS = 8388608i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_CLASS: OBJECT_ATTRIB_FLAG = 16777216u32; +pub const OBJECT_ATTRIB_IS_CLASS: OBJECT_ATTRIB_FLAGS = 16777216i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_FUNCTION: OBJECT_ATTRIB_FLAG = 33554432u32; +pub const OBJECT_ATTRIB_IS_FUNCTION: OBJECT_ATTRIB_FLAGS = 33554432i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_VARIABLE: OBJECT_ATTRIB_FLAG = 67108864u32; +pub const OBJECT_ATTRIB_IS_VARIABLE: OBJECT_ATTRIB_FLAGS = 67108864i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_PROPERTY: OBJECT_ATTRIB_FLAG = 134217728u32; +pub const OBJECT_ATTRIB_IS_PROPERTY: OBJECT_ATTRIB_FLAGS = 134217728i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_MACRO: OBJECT_ATTRIB_FLAG = 268435456u32; +pub const OBJECT_ATTRIB_IS_MACRO: OBJECT_ATTRIB_FLAGS = 268435456i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_TYPE: OBJECT_ATTRIB_FLAG = 536870912u32; +pub const OBJECT_ATTRIB_IS_TYPE: OBJECT_ATTRIB_FLAGS = 536870912i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_INHERITED: OBJECT_ATTRIB_FLAG = 1073741824u32; +pub const OBJECT_ATTRIB_IS_INHERITED: OBJECT_ATTRIB_FLAGS = 1073741824i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_INTERFACE: OBJECT_ATTRIB_FLAG = 2147483648u32; +pub const OBJECT_ATTRIB_IS_INTERFACE: OBJECT_ATTRIB_FLAGS = -2147483648i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub type OPEN_THREAD_WAIT_CHAIN_SESSION_FLAGS = u32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] @@ -7090,26 +7114,6 @@ pub const WheaErrSrcTypePMEM: WHEA_ERROR_SOURCE_TYPE = 15i32; pub const WheaErrSrcTypeDeviceDriver: WHEA_ERROR_SOURCE_TYPE = 16i32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub const WheaErrSrcTypeMax: WHEA_ERROR_SOURCE_TYPE = 17i32; -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub type _DUMP_TYPES = i32; -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_INVALID: _DUMP_TYPES = -1i32; -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_UNKNOWN: _DUMP_TYPES = 0i32; -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_FULL: _DUMP_TYPES = 1i32; -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_SUMMARY: _DUMP_TYPES = 2i32; -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_HEADER: _DUMP_TYPES = 3i32; -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_TRIAGE: _DUMP_TYPES = 4i32; -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_BITMAP_FULL: _DUMP_TYPES = 5i32; -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_BITMAP_KERNEL: _DUMP_TYPES = 6i32; -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_AUTOMATIC: _DUMP_TYPES = 7i32; #[repr(C)] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[cfg(target_arch = "x86")] @@ -7347,6 +7351,22 @@ impl ::core::clone::Clone for ArrayDimension { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub struct BUSDATA { + pub BusDataType: u32, + pub BusNumber: u32, + pub SlotNumber: u32, + pub Buffer: *mut ::core::ffi::c_void, + pub Offset: u32, + pub Length: u32, +} +impl ::core::marker::Copy for BUSDATA {} +impl ::core::clone::Clone for BUSDATA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_System_Kernel\"`*"] #[cfg(target_arch = "aarch64")] #[cfg(feature = "Win32_System_Kernel")] @@ -9333,6 +9353,19 @@ impl ::core::clone::Clone for IMAGEHLP_GET_TYPE_INFO_PARAMS { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub struct IMAGEHLP_JIT_SYMBOLMAP { + pub SizeOfStruct: u32, + pub Address: u64, + pub BaseOfImage: u64, +} +impl ::core::marker::Copy for IMAGEHLP_JIT_SYMBOLMAP {} +impl ::core::clone::Clone for IMAGEHLP_JIT_SYMBOLMAP { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[cfg(target_arch = "x86")] pub struct IMAGEHLP_LINE { pub SizeOfStruct: u32, @@ -11064,7 +11097,7 @@ impl ::core::clone::Clone for MINIDUMP_CALLBACK_INFORMATION { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_Storage_FileSystem\"`, `\"Win32_System_Kernel\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem", feature = "Win32_System_Kernel"))] pub struct MINIDUMP_CALLBACK_INPUT { @@ -11106,7 +11139,7 @@ impl ::core::clone::Clone for MINIDUMP_CALLBACK_INPUT_0 { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Memory\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Memory"))] pub struct MINIDUMP_CALLBACK_OUTPUT { @@ -11120,7 +11153,7 @@ impl ::core::clone::Clone for MINIDUMP_CALLBACK_OUTPUT { *self } } -#[repr(C, packed(4))] +#[repr(C)] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Memory\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Memory"))] pub union MINIDUMP_CALLBACK_OUTPUT_0 { @@ -11218,7 +11251,7 @@ impl ::core::clone::Clone for MINIDUMP_CALLBACK_OUTPUT_0_4 { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_DIRECTORY { pub StreamType: u32, @@ -11280,7 +11313,7 @@ impl ::core::clone::Clone for MINIDUMP_EXCEPTION_INFORMATION64 { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_EXCEPTION_STREAM { pub ThreadId: u32, @@ -11309,7 +11342,7 @@ impl ::core::clone::Clone for MINIDUMP_FUNCTION_TABLE_DESCRIPTOR { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_FUNCTION_TABLE_STREAM { pub SizeOfHeader: u32, @@ -11325,7 +11358,7 @@ impl ::core::clone::Clone for MINIDUMP_FUNCTION_TABLE_STREAM { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_HANDLE_DATA_STREAM { pub SizeOfHeader: u32, @@ -11375,7 +11408,7 @@ impl ::core::clone::Clone for MINIDUMP_HANDLE_DESCRIPTOR_2 { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_HANDLE_OBJECT_INFORMATION { pub NextInfoRva: u32, @@ -11388,7 +11421,7 @@ impl ::core::clone::Clone for MINIDUMP_HANDLE_OBJECT_INFORMATION { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_HANDLE_OPERATION_LIST { pub SizeOfHeader: u32, @@ -11442,7 +11475,7 @@ impl ::core::clone::Clone for MINIDUMP_INCLUDE_MODULE_CALLBACK { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_INCLUDE_THREAD_CALLBACK { pub ThreadId: u32, @@ -11470,7 +11503,7 @@ impl ::core::clone::Clone for MINIDUMP_IO_CALLBACK { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_LOCATION_DESCRIPTOR { pub DataSize: u32, @@ -11566,7 +11599,7 @@ impl ::core::clone::Clone for MINIDUMP_MEMORY_INFO_LIST { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_MEMORY_LIST { pub NumberOfMemoryRanges: u32, @@ -11578,7 +11611,7 @@ impl ::core::clone::Clone for MINIDUMP_MEMORY_LIST { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_MISC_INFO { pub SizeOfInfo: u32, @@ -11594,7 +11627,7 @@ impl ::core::clone::Clone for MINIDUMP_MISC_INFO { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_MISC_INFO_2 { pub SizeOfInfo: u32, @@ -11615,7 +11648,7 @@ impl ::core::clone::Clone for MINIDUMP_MISC_INFO_2 { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Time\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Time"))] pub struct MINIDUMP_MISC_INFO_3 { @@ -11644,7 +11677,7 @@ impl ::core::clone::Clone for MINIDUMP_MISC_INFO_3 { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Time\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Time"))] pub struct MINIDUMP_MISC_INFO_4 { @@ -11675,7 +11708,7 @@ impl ::core::clone::Clone for MINIDUMP_MISC_INFO_4 { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Time\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Time"))] pub struct MINIDUMP_MISC_INFO_5 { @@ -11754,7 +11787,7 @@ impl ::core::clone::Clone for MINIDUMP_MODULE_CALLBACK { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Storage_FileSystem\"`*"] #[cfg(feature = "Win32_Storage_FileSystem")] pub struct MINIDUMP_MODULE_LIST { @@ -11834,7 +11867,7 @@ impl ::core::clone::Clone for MINIDUMP_READ_MEMORY_FAILURE_CALLBACK { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_STRING { pub Length: u32, @@ -11899,7 +11932,7 @@ impl ::core::clone::Clone for MINIDUMP_SYSTEM_FILECACHE_INFORMATION { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_SYSTEM_INFO { pub ProcessorArchitecture: PROCESSOR_ARCHITECTURE, @@ -11968,7 +12001,7 @@ impl ::core::clone::Clone for MINIDUMP_SYSTEM_INFO_1_0 { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_SYSTEM_MEMORY_INFO_1 { pub Revision: u16, @@ -12089,7 +12122,7 @@ impl ::core::clone::Clone for MINIDUMP_THREAD { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] #[cfg(target_arch = "aarch64")] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] @@ -12112,31 +12145,9 @@ impl ::core::clone::Clone for MINIDUMP_THREAD_CALLBACK { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -pub struct MINIDUMP_THREAD_CALLBACK { - pub ThreadId: u32, - pub ThreadHandle: super::super::super::Foundation::HANDLE, - pub Context: CONTEXT, - pub SizeOfContext: u32, - pub StackBase: u64, - pub StackEnd: u64, -} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::marker::Copy for MINIDUMP_THREAD_CALLBACK {} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::clone::Clone for MINIDUMP_THREAD_CALLBACK { - fn clone(&self) -> Self { - *self - } -} #[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] pub struct MINIDUMP_THREAD_CALLBACK { pub ThreadId: u32, @@ -12146,10 +12157,10 @@ pub struct MINIDUMP_THREAD_CALLBACK { pub StackBase: u64, pub StackEnd: u64, } -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::marker::Copy for MINIDUMP_THREAD_CALLBACK {} -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::clone::Clone for MINIDUMP_THREAD_CALLBACK { fn clone(&self) -> Self { @@ -12174,7 +12185,7 @@ impl ::core::clone::Clone for MINIDUMP_THREAD_EX { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] #[cfg(target_arch = "aarch64")] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] @@ -12199,33 +12210,9 @@ impl ::core::clone::Clone for MINIDUMP_THREAD_EX_CALLBACK { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -pub struct MINIDUMP_THREAD_EX_CALLBACK { - pub ThreadId: u32, - pub ThreadHandle: super::super::super::Foundation::HANDLE, - pub Context: CONTEXT, - pub SizeOfContext: u32, - pub StackBase: u64, - pub StackEnd: u64, - pub BackingStoreBase: u64, - pub BackingStoreEnd: u64, -} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::marker::Copy for MINIDUMP_THREAD_EX_CALLBACK {} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::clone::Clone for MINIDUMP_THREAD_EX_CALLBACK { - fn clone(&self) -> Self { - *self - } -} #[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] pub struct MINIDUMP_THREAD_EX_CALLBACK { pub ThreadId: u32, @@ -12237,17 +12224,17 @@ pub struct MINIDUMP_THREAD_EX_CALLBACK { pub BackingStoreBase: u64, pub BackingStoreEnd: u64, } -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::marker::Copy for MINIDUMP_THREAD_EX_CALLBACK {} -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::clone::Clone for MINIDUMP_THREAD_EX_CALLBACK { fn clone(&self) -> Self { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_THREAD_EX_LIST { pub NumberOfThreads: u32, @@ -12279,7 +12266,7 @@ impl ::core::clone::Clone for MINIDUMP_THREAD_INFO { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_THREAD_INFO_LIST { pub SizeOfHeader: u32, @@ -12292,7 +12279,7 @@ impl ::core::clone::Clone for MINIDUMP_THREAD_INFO_LIST { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_THREAD_LIST { pub NumberOfThreads: u32, @@ -12316,7 +12303,7 @@ impl ::core::clone::Clone for MINIDUMP_THREAD_NAME { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_THREAD_NAME_LIST { pub NumberOfThreadNames: u32, @@ -12341,7 +12328,7 @@ impl ::core::clone::Clone for MINIDUMP_TOKEN_INFO_HEADER { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_TOKEN_INFO_LIST { pub TokenListSize: u32, @@ -12370,7 +12357,7 @@ impl ::core::clone::Clone for MINIDUMP_UNLOADED_MODULE { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_UNLOADED_MODULE_LIST { pub SizeOfHeader: u32, @@ -12383,7 +12370,7 @@ impl ::core::clone::Clone for MINIDUMP_UNLOADED_MODULE_LIST { *self } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_USER_RECORD { pub Type: u32, @@ -14640,35 +14627,6 @@ impl ::core::clone::Clone for XSTATE_FEATURE { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub struct _GETSETBUSDATA { - pub BusDataType: u32, - pub BusNumber: u32, - pub SlotNumber: u32, - pub Buffer: *mut ::core::ffi::c_void, - pub Offset: u32, - pub Length: u32, -} -impl ::core::marker::Copy for _GETSETBUSDATA {} -impl ::core::clone::Clone for _GETSETBUSDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub struct _IMAGEHLP_JIT_SYMBOL_MAP { - pub SizeOfStruct: u32, - pub Address: u64, - pub BaseOfImage: u64, -} -impl ::core::marker::Copy for _IMAGEHLP_JIT_SYMBOL_MAP {} -impl ::core::clone::Clone for _IMAGEHLP_JIT_SYMBOL_MAP { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type DIGEST_FUNCTION = ::core::option::Option super::super::super::Foundation::BOOL>; 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 714d19a84b..31d3397fe9 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 @@ -3,9 +3,6 @@ extern "cdecl" { #[doc = "*Required features: `\"Win32_System_Diagnostics_Etw\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn TraceMessage(loggerhandle: u64, messageflags: TRACE_MESSAGE_FLAGS, messageguid: *const ::windows_sys::core::GUID, messagenumber: u16) -> super::super::super::Foundation::WIN32_ERROR; - #[doc = "*Required features: `\"Win32_System_Diagnostics_Etw\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn TraceMessageVa(loggerhandle: u64, messageflags: TRACE_MESSAGE_FLAGS, messageguid: *const ::windows_sys::core::GUID, messagenumber: u16, messagearglist: *const i8) -> super::super::super::Foundation::WIN32_ERROR; } #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -192,6 +189,9 @@ extern "system" { pub fn TraceEventInstance(tracehandle: u64, eventtrace: *const EVENT_INSTANCE_HEADER, instinfo: *const EVENT_INSTANCE_INFO, parentinstinfo: *const EVENT_INSTANCE_INFO) -> u32; #[doc = "*Required features: `\"Win32_System_Diagnostics_Etw\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn TraceMessageVa(loggerhandle: u64, messageflags: TRACE_MESSAGE_FLAGS, messageguid: *const ::windows_sys::core::GUID, messagenumber: u16, messagearglist: *const i8) -> super::super::super::Foundation::WIN32_ERROR; + #[doc = "*Required features: `\"Win32_System_Diagnostics_Etw\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn TraceQueryInformation(sessionhandle: CONTROLTRACE_HANDLE, informationclass: TRACE_QUERY_INFO_CLASS, traceinformation: *mut ::core::ffi::c_void, informationlength: u32, returnlength: *mut u32) -> super::super::super::Foundation::WIN32_ERROR; #[doc = "*Required features: `\"Win32_System_Diagnostics_Etw\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] diff --git a/crates/libs/sys/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs b/crates/libs/sys/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs index 84873e9dd5..167b493933 100644 --- a/crates/libs/sys/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs @@ -226,6 +226,78 @@ pub const INCOMING_AUTHENTICATION_REQUIRED: AUTHENTICATION_LEVEL = 1i32; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub const MUTUAL_AUTHENTICATION_REQUIRED: AUTHENTICATION_LEVEL = 2i32; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub type DTCINITIATEDRECOVERYWORK = i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCINITIATEDRECOVERYWORK_CHECKLUSTATUS: DTCINITIATEDRECOVERYWORK = 1i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCINITIATEDRECOVERYWORK_TRANS: DTCINITIATEDRECOVERYWORK = 2i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCINITIATEDRECOVERYWORK_TMDOWN: DTCINITIATEDRECOVERYWORK = 3i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub type DTCLUCOMPARESTATE = i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATE_COMMITTED: DTCLUCOMPARESTATE = 1i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATE_HEURISTICCOMMITTED: DTCLUCOMPARESTATE = 2i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATE_HEURISTICMIXED: DTCLUCOMPARESTATE = 3i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATE_HEURISTICRESET: DTCLUCOMPARESTATE = 4i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATE_INDOUBT: DTCLUCOMPARESTATE = 5i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATE_RESET: DTCLUCOMPARESTATE = 6i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub type DTCLUCOMPARESTATESCONFIRMATION = i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATESCONFIRMATION_CONFIRM: DTCLUCOMPARESTATESCONFIRMATION = 1i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATESCONFIRMATION_PROTOCOL: DTCLUCOMPARESTATESCONFIRMATION = 2i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub type DTCLUCOMPARESTATESERROR = i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATESERROR_PROTOCOL: DTCLUCOMPARESTATESERROR = 1i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub type DTCLUCOMPARESTATESRESPONSE = i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATESRESPONSE_OK: DTCLUCOMPARESTATESRESPONSE = 1i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATESRESPONSE_PROTOCOL: DTCLUCOMPARESTATESRESPONSE = 2i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub type DTCLUXLN = i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLN_COLD: DTCLUXLN = 1i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLN_WARM: DTCLUXLN = 2i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub type DTCLUXLNCONFIRMATION = i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNCONFIRMATION_CONFIRM: DTCLUXLNCONFIRMATION = 1i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNCONFIRMATION_LOGNAMEMISMATCH: DTCLUXLNCONFIRMATION = 2i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNCONFIRMATION_COLDWARMMISMATCH: DTCLUXLNCONFIRMATION = 3i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNCONFIRMATION_OBSOLETE: DTCLUXLNCONFIRMATION = 4i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub type DTCLUXLNERROR = i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNERROR_PROTOCOL: DTCLUXLNERROR = 1i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNERROR_LOGNAMEMISMATCH: DTCLUXLNERROR = 2i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNERROR_COLDWARMMISMATCH: DTCLUXLNERROR = 3i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub type DTCLUXLNRESPONSE = i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNRESPONSE_OK_SENDOURXLNBACK: DTCLUXLNRESPONSE = 1i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNRESPONSE_OK_SENDCONFIRMATION: DTCLUXLNRESPONSE = 2i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNRESPONSE_LOGNAMEMISMATCH: DTCLUXLNRESPONSE = 3i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNRESPONSE_COLDWARMMISMATCH: DTCLUXLNRESPONSE = 4i32; +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub type DTC_STATUS_ = i32; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub const DTC_STATUS_UNKNOWN: DTC_STATUS_ = 0i32; @@ -425,78 +497,6 @@ pub const XACT_S_NONOTIFY: XACT_DTC_CONSTANTS = 315648i32; pub const XACT_OK_NONOTIFY: XACT_DTC_CONSTANTS = 315649i32; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub const dwUSER_MS_SQLSERVER: XACT_DTC_CONSTANTS = 65535i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub type _DtcLu_CompareState = i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATE_COMMITTED: _DtcLu_CompareState = 1i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATE_HEURISTICCOMMITTED: _DtcLu_CompareState = 2i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATE_HEURISTICMIXED: _DtcLu_CompareState = 3i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATE_HEURISTICRESET: _DtcLu_CompareState = 4i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATE_INDOUBT: _DtcLu_CompareState = 5i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATE_RESET: _DtcLu_CompareState = 6i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub type _DtcLu_CompareStates_Confirmation = i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATESCONFIRMATION_CONFIRM: _DtcLu_CompareStates_Confirmation = 1i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATESCONFIRMATION_PROTOCOL: _DtcLu_CompareStates_Confirmation = 2i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub type _DtcLu_CompareStates_Error = i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATESERROR_PROTOCOL: _DtcLu_CompareStates_Error = 1i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub type _DtcLu_CompareStates_Response = i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATESRESPONSE_OK: _DtcLu_CompareStates_Response = 1i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATESRESPONSE_PROTOCOL: _DtcLu_CompareStates_Response = 2i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub type _DtcLu_LocalRecovery_Work = i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCINITIATEDRECOVERYWORK_CHECKLUSTATUS: _DtcLu_LocalRecovery_Work = 1i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCINITIATEDRECOVERYWORK_TRANS: _DtcLu_LocalRecovery_Work = 2i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCINITIATEDRECOVERYWORK_TMDOWN: _DtcLu_LocalRecovery_Work = 3i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub type _DtcLu_Xln = i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLN_COLD: _DtcLu_Xln = 1i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLN_WARM: _DtcLu_Xln = 2i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub type _DtcLu_Xln_Confirmation = i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNCONFIRMATION_CONFIRM: _DtcLu_Xln_Confirmation = 1i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNCONFIRMATION_LOGNAMEMISMATCH: _DtcLu_Xln_Confirmation = 2i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNCONFIRMATION_COLDWARMMISMATCH: _DtcLu_Xln_Confirmation = 3i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNCONFIRMATION_OBSOLETE: _DtcLu_Xln_Confirmation = 4i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub type _DtcLu_Xln_Error = i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNERROR_PROTOCOL: _DtcLu_Xln_Error = 1i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNERROR_LOGNAMEMISMATCH: _DtcLu_Xln_Error = 2i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNERROR_COLDWARMMISMATCH: _DtcLu_Xln_Error = 3i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub type _DtcLu_Xln_Response = i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNRESPONSE_OK_SENDOURXLNBACK: _DtcLu_Xln_Response = 1i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNRESPONSE_OK_SENDCONFIRMATION: _DtcLu_Xln_Response = 2i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNRESPONSE_LOGNAMEMISMATCH: _DtcLu_Xln_Response = 3i32; -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNRESPONSE_COLDWARMMISMATCH: _DtcLu_Xln_Response = 4i32; #[repr(C)] #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub struct BOID { @@ -536,6 +536,17 @@ impl ::core::clone::Clone for OLE_TM_CONFIG_PARAMS_V2 { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub struct PROXY_CONFIG_PARAMS { + pub wcThreadsMax: u16, +} +impl ::core::marker::Copy for PROXY_CONFIG_PARAMS {} +impl ::core::clone::Clone for PROXY_CONFIG_PARAMS { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub struct XACTOPT { pub ulTimeout: u32, pub szDescription: [u8; 40], @@ -585,12 +596,18 @@ impl ::core::clone::Clone for XACTTRANSINFO { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub struct _ProxyConfigParams { - pub wcThreadsMax: u16, +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct XID { + pub formatID: i32, + pub gtrid_length: i32, + pub bqual_length: i32, + pub data: [super::super::Foundation::CHAR; 128], } -impl ::core::marker::Copy for _ProxyConfigParams {} -impl ::core::clone::Clone for _ProxyConfigParams { +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for XID {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for XID { fn clone(&self) -> Self { *self } @@ -621,23 +638,6 @@ impl ::core::clone::Clone for xa_switch_t { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct xid_t { - pub formatID: i32, - pub gtrid_length: i32, - pub bqual_length: i32, - pub data: [super::super::Foundation::CHAR; 128], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for xid_t {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for xid_t { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub type DTC_GET_TRANSACTION_MANAGER = ::core::option::Option ::windows_sys::core::HRESULT>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] @@ -650,26 +650,26 @@ pub type DTC_INSTALL_CLIENT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_COMMIT_EPT = ::core::option::Option i32>; +pub type XA_COMMIT_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub type XA_COMPLETE_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_END_EPT = ::core::option::Option i32>; +pub type XA_END_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_FORGET_EPT = ::core::option::Option i32>; +pub type XA_FORGET_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub type XA_OPEN_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_PREPARE_EPT = ::core::option::Option i32>; +pub type XA_PREPARE_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_RECOVER_EPT = ::core::option::Option i32>; +pub type XA_RECOVER_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_ROLLBACK_EPT = ::core::option::Option i32>; +pub type XA_ROLLBACK_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_START_EPT = ::core::option::Option i32>; +pub type XA_START_EPT = ::core::option::Option i32>; diff --git a/crates/libs/sys/src/Windows/Win32/System/ErrorReporting/mod.rs b/crates/libs/sys/src/Windows/Win32/System/ErrorReporting/mod.rs index 2211c4e3cd..d768136c8c 100644 --- a/crates/libs/sys/src/Windows/Win32/System/ErrorReporting/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/ErrorReporting/mod.rs @@ -1,34 +1,4 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] - pub fn WerFreeString(pwszstr: ::windows_sys::core::PCWSTR); - #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] - pub fn WerStoreClose(hreportstore: HREPORTSTORE); - #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] - pub fn WerStoreGetFirstReportKey(hreportstore: HREPORTSTORE, ppszreportkey: *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] - pub fn WerStoreGetNextReportKey(hreportstore: HREPORTSTORE, ppszreportkey: *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] - pub fn WerStoreGetReportCount(hreportstore: HREPORTSTORE, pdwreportcount: *mut u32) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] - pub fn WerStoreGetSizeOnDisk(hreportstore: HREPORTSTORE, pqwsizeinbytes: *mut u64) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] - pub fn WerStoreOpen(repstoretype: REPORT_STORE_TYPES, phreportstore: *mut HREPORTSTORE) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] - pub fn WerStorePurge() -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WerStoreQueryReportMetadataV1(hreportstore: HREPORTSTORE, pszreportkey: ::windows_sys::core::PCWSTR, preportmetadata: *mut WER_REPORT_METADATA_V1) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WerStoreQueryReportMetadataV2(hreportstore: HREPORTSTORE, pszreportkey: ::windows_sys::core::PCWSTR, preportmetadata: *mut WER_REPORT_METADATA_V2) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WerStoreQueryReportMetadataV3(hreportstore: HREPORTSTORE, pszreportkey: ::windows_sys::core::PCWSTR, preportmetadata: *mut WER_REPORT_METADATA_V3) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] - pub fn WerStoreUploadReport(hreportstore: HREPORTSTORE, pszreportkey: ::windows_sys::core::PCWSTR, dwflags: u32, psubmitresult: *mut WER_SUBMIT_RESULT) -> ::windows_sys::core::HRESULT; -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -42,6 +12,8 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn WerAddExcludedApplication(pwzexename: ::windows_sys::core::PCWSTR, ballusers: super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] + pub fn WerFreeString(pwszstr: ::windows_sys::core::PCWSTR); #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn WerGetFlags(hprocess: super::super::Foundation::HANDLE, pdwflags: *mut WER_FAULT_REPORTING) -> ::windows_sys::core::HRESULT; @@ -84,6 +56,31 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] pub fn WerSetFlags(dwflags: WER_FAULT_REPORTING) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] + pub fn WerStoreClose(hreportstore: HREPORTSTORE); + #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] + pub fn WerStoreGetFirstReportKey(hreportstore: HREPORTSTORE, ppszreportkey: *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] + pub fn WerStoreGetNextReportKey(hreportstore: HREPORTSTORE, ppszreportkey: *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] + pub fn WerStoreGetReportCount(hreportstore: HREPORTSTORE, pdwreportcount: *mut u32) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] + pub fn WerStoreGetSizeOnDisk(hreportstore: HREPORTSTORE, pqwsizeinbytes: *mut u64) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] + pub fn WerStoreOpen(repstoretype: REPORT_STORE_TYPES, phreportstore: *mut HREPORTSTORE) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] + pub fn WerStorePurge() -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn WerStoreQueryReportMetadataV1(hreportstore: HREPORTSTORE, pszreportkey: ::windows_sys::core::PCWSTR, preportmetadata: *mut WER_REPORT_METADATA_V1) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn WerStoreQueryReportMetadataV2(hreportstore: HREPORTSTORE, pszreportkey: ::windows_sys::core::PCWSTR, preportmetadata: *mut WER_REPORT_METADATA_V2) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn WerStoreQueryReportMetadataV3(hreportstore: HREPORTSTORE, pszreportkey: ::windows_sys::core::PCWSTR, preportmetadata: *mut WER_REPORT_METADATA_V3) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] + pub fn WerStoreUploadReport(hreportstore: HREPORTSTORE, pszreportkey: ::windows_sys::core::PCWSTR, dwflags: u32, psubmitresult: *mut WER_SUBMIT_RESULT) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] pub fn WerUnregisterAdditionalProcess(processid: u32) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] pub fn WerUnregisterAppLocalDump() -> ::windows_sys::core::HRESULT; diff --git a/crates/libs/sys/src/Windows/Win32/System/Hypervisor/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Hypervisor/mod.rs index 65d4360be0..0c94c24ca5 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Hypervisor/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Hypervisor/mod.rs @@ -1,15 +1,4 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] - pub fn GetMemoryBlockCacheLimit(vmsavedstatedumphandle: *mut ::core::ffi::c_void, memoryblockcachelimit: *mut u64) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] - pub fn SetSavedStateSymbolProviderDebugInfoCallback(vmsavedstatedumphandle: *mut ::core::ffi::c_void, callback: GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] - pub fn WHvCancelPartitionMigration(partition: WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] - pub fn WHvCompletePartitionMigration(partition: WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT; -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] pub fn ApplyGuestMemoryFix(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, virtualaddress: u64, fixbuffer: *const ::core::ffi::c_void, fixbuffersize: u32) -> ::windows_sys::core::HRESULT; @@ -43,6 +32,8 @@ extern "system" { pub fn GetGuestPhysicalMemoryChunks(vmsavedstatedumphandle: *mut ::core::ffi::c_void, memorychunkpagesize: *mut u64, memorychunks: *mut GPA_MEMORY_CHUNK, memorychunkcount: *mut u64) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] pub fn GetGuestRawSavedMemorySize(vmsavedstatedumphandle: *mut ::core::ffi::c_void, guestrawsavedmemorysize: *mut u64) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] + pub fn GetMemoryBlockCacheLimit(vmsavedstatedumphandle: *mut ::core::ffi::c_void, memoryblockcachelimit: *mut u64) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn GetNestedVirtualizationMode(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, enabled: *mut super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT; @@ -130,6 +121,8 @@ extern "system" { pub fn ScanMemoryForDosImages(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, startaddress: u64, endaddress: u64, callbackcontext: *mut ::core::ffi::c_void, foundimagecallback: FOUND_IMAGE_CALLBACK, standaloneaddress: *const u64, standaloneaddresscount: u32) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] pub fn SetMemoryBlockCacheLimit(vmsavedstatedumphandle: *mut ::core::ffi::c_void, memoryblockcachelimit: u64) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] + pub fn SetSavedStateSymbolProviderDebugInfoCallback(vmsavedstatedumphandle: *mut ::core::ffi::c_void, callback: GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn WHvAcceptPartitionMigration(migrationhandle: super::super::Foundation::HANDLE, partition: *mut WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT; @@ -139,7 +132,11 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn WHvAllocateVpciResource(providerid: *const ::windows_sys::core::GUID, flags: WHV_ALLOCATE_VPCI_RESOURCE_FLAGS, resourcedescriptor: *const ::core::ffi::c_void, resourcedescriptorsizeinbytes: u32, vpciresource: *mut super::super::Foundation::HANDLE) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] + pub fn WHvCancelPartitionMigration(partition: WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] pub fn WHvCancelRunVirtualProcessor(partition: WHV_PARTITION_HANDLE, vpindex: u32, flags: u32) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] + pub fn WHvCompletePartitionMigration(partition: WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn WHvCreateNotificationPort(partition: WHV_PARTITION_HANDLE, parameters: *const WHV_NOTIFICATION_PORT_PARAMETERS, eventhandle: super::super::Foundation::HANDLE, porthandle: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; @@ -782,8 +779,6 @@ pub const WHvCacheTypeWriteCombining: WHV_CACHE_TYPE = 1i32; #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] pub const WHvCacheTypeWriteThrough: WHV_CACHE_TYPE = 4i32; #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] -pub const WHvCacheTypeWriteProtected: WHV_CACHE_TYPE = 5i32; -#[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] pub const WHvCacheTypeWriteBack: WHV_CACHE_TYPE = 6i32; #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] pub type WHV_CAPABILITY_CODE = i32; 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 802c636296..d48670760a 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Ioctl/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Ioctl/mod.rs @@ -2189,6 +2189,14 @@ pub const DetectInt13: DETECTION_TYPE = 1i32; #[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] pub const DetectExInt13: DETECTION_TYPE = 2i32; #[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] +pub type DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] +pub const TCCollectionBugCheck: DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] +pub const TCCollectionApplicationRequested: DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE = 2i32; +#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] +pub const TCCollectionDeviceRequested: DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE = 3i32; +#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] pub type DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = i32; #[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] pub const DeviceInternalStatusDataRequestTypeUndefined: DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = 0i32; @@ -3438,14 +3446,6 @@ pub const WriteThroughUnknown: WRITE_THROUGH = 0i32; pub const WriteThroughNotSupported: WRITE_THROUGH = 1i32; #[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] pub const WriteThroughSupported: WRITE_THROUGH = 2i32; -#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] -pub type _DEVICEDUMP_COLLECTION_TYPE = i32; -#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] -pub const TCCollectionBugCheck: _DEVICEDUMP_COLLECTION_TYPE = 1i32; -#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] -pub const TCCollectionApplicationRequested: _DEVICEDUMP_COLLECTION_TYPE = 2i32; -#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] -pub const TCCollectionDeviceRequested: _DEVICEDUMP_COLLECTION_TYPE = 3i32; #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] pub struct ASYNC_DUPLICATE_EXTENTS_STATUS { @@ -5973,7 +5973,7 @@ pub struct FILE_STORAGE_TIER { pub Id: ::windows_sys::core::GUID, pub Name: [u16; 256], pub Description: [u16; 256], - pub Flags: FILE_STORAGE_TIER_FLAGS, + pub Flags: u64, pub ProvisionedCapacity: u64, pub MediaType: FILE_STORAGE_TIER_MEDIA_TYPE, pub Class: FILE_STORAGE_TIER_CLASS, diff --git a/crates/libs/sys/src/Windows/Win32/System/JobObjects/mod.rs b/crates/libs/sys/src/Windows/Win32/System/JobObjects/mod.rs index 72ac9c5d9b..56c0ab53d1 100644 --- a/crates/libs/sys/src/Windows/Win32/System/JobObjects/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/JobObjects/mod.rs @@ -497,23 +497,6 @@ impl ::core::clone::Clone for JOBOBJECT_IO_RATE_CONTROL_INFORMATION { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_JobObjects\"`*"] -pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE { - pub MaxIops: i64, - pub MaxBandwidth: i64, - pub ReservationIops: i64, - pub VolumeName: ::windows_sys::core::PWSTR, - pub BaseIoSize: u32, - pub ControlFlags: JOB_OBJECT_IO_RATE_CONTROL_FLAGS, - pub VolumeNameLength: u16, -} -impl ::core::marker::Copy for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE {} -impl ::core::clone::Clone for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_JobObjects\"`*"] pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V2 { pub MaxIops: i64, pub MaxBandwidth: i64, diff --git a/crates/libs/sys/src/Windows/Win32/System/Ole/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Ole/mod.rs index 38e4c25ad6..60c294fe15 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Ole/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Ole/mod.rs @@ -151,7 +151,7 @@ extern "system" { pub fn OleCreateLinkToFileEx(lpszfilename: ::windows_sys::core::PCWSTR, riid: *const ::windows_sys::core::GUID, dwflags: u32, renderopt: u32, cformats: u32, rgadvf: *const u32, rgformatetc: *const super::Com::FORMATETC, lpadvisesink: super::Com::IAdviseSink, rgdwconnection: *mut u32, pclientsite: IOleClientSite, pstg: super::Com::StructuredStorage::IStorage, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub fn OleCreateMenuDescriptor(hmenucombined: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *const OleMenuGroupWidths) -> isize; + pub fn OleCreateMenuDescriptor(hmenucombined: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *const OLEMENUGROUPWIDTHS) -> isize; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub fn OleCreatePictureIndirect(lppictdesc: *mut PICTDESC, riid: *const ::windows_sys::core::GUID, fown: super::super::Foundation::BOOL, lplpvobj: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; @@ -245,7 +245,7 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub fn OleRegGetMiscStatus(clsid: *const ::windows_sys::core::GUID, dwaspect: u32, pdwstatus: *mut u32) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] - pub fn OleRegGetUserType(clsid: *const ::windows_sys::core::GUID, dwformoftype: u32, pszusertype: *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT; + pub fn OleRegGetUserType(clsid: *const ::windows_sys::core::GUID, dwformoftype: USERCLASSTYPE, pszusertype: *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub fn OleRun(punknown: ::windows_sys::core::IUnknown) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] @@ -270,7 +270,7 @@ extern "system" { pub fn OleSetMenuDescriptor(holemenu: isize, hwndframe: super::super::Foundation::HWND, hwndactiveobject: super::super::Foundation::HWND, lpframe: IOleInPlaceFrame, lpactiveobj: IOleInPlaceActiveObject) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] - pub fn OleTranslateAccelerator(lpframe: IOleInPlaceFrame, lpframeinfo: *const OIFI, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> ::windows_sys::core::HRESULT; + pub fn OleTranslateAccelerator(lpframe: IOleInPlaceFrame, lpframeinfo: *const OLEINPLACEFRAMEINFO, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn OleTranslateColor(clr: u32, hpal: super::super::Graphics::Gdi::HPALETTE, lpcolorref: *mut super::super::Foundation::COLORREF) -> ::windows_sys::core::HRESULT; @@ -425,7 +425,7 @@ extern "system" { pub fn SafeArrayGetUBound(psa: *const super::Com::SAFEARRAY, ndim: u32, plubound: *mut i32) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub fn SafeArrayGetVartype(psa: *const super::Com::SAFEARRAY, pvt: *mut u16) -> ::windows_sys::core::HRESULT; + pub fn SafeArrayGetVartype(psa: *const super::Com::SAFEARRAY, pvt: *mut super::Com::VARENUM) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] pub fn SafeArrayLock(psa: *const super::Com::SAFEARRAY) -> ::windows_sys::core::HRESULT; @@ -1634,30 +1634,6 @@ pub const EMBDHLP_INPROC_HANDLER: i32 = 0i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const EMBDHLP_INPROC_SERVER: i32 = 1i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_AUTO: u32 = 1u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_BSTR: u32 = 256u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_DISPATCH: u32 = 1024u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_EMBEDDED: u32 = 4u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_FIXEDSIZE: u32 = 16u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_HAVEIID: u32 = 64u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_HAVEVARTYPE: u32 = 128u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_RECORD: u32 = 32u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_RESERVED: u32 = 61448u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_STATIC: u32 = 2u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_UNKNOWN: u32 = 512u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_VARIANT: u32 = 2048u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const GC_WCH_SIBLING: i32 = 1i32; pub const GUID_CHECKVALUEEXCLUSIVE: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 1716536076, data2: 48655, data3: 4122, data4: [139, 187, 0, 170, 0, 48, 12, 171] }; pub const GUID_COLOR: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 1716536065, data2: 48655, data3: 4122, data4: [139, 187, 0, 170, 0, 48, 12, 171] }; @@ -2503,10 +2479,6 @@ pub type ACTIVATEFLAGS = i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const ACTIVATE_WINDOWLESS: ACTIVATEFLAGS = 1i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub type AspectInfoFlag = i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const DVASPECTINFOFLAG_CANOPTIMIZE: AspectInfoFlag = 1i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub type BINDSPEED = i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const BINDSPEED_INDEFINITE: BINDSPEED = 1i32; @@ -2573,6 +2545,16 @@ pub const DVASPECT_OPAQUE: DVASPECT2 = 16i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const DVASPECT_TRANSPARENT: DVASPECT2 = 32i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub type DVASPECTINFOFLAG = i32; +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const DVASPECTINFOFLAG_CANOPTIMIZE: DVASPECTINFOFLAG = 1i32; +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub type DVEXTENTMODE = i32; +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const DVEXTENT_CONTENT: DVEXTENTMODE = 0i32; +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const DVEXTENT_INTEGRAL: DVEXTENTMODE = 1i32; +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub type ENUM_CONTROLS_WHICH_FLAGS = u32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const GCW_WCH_SIBLING: ENUM_CONTROLS_WHICH_FLAGS = 1u32; @@ -2591,39 +2573,33 @@ pub const GC_WCH_FONLYBEFORE: ENUM_CONTROLS_WHICH_FLAGS = 536870912u32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const GC_WCH_FSELECTED: ENUM_CONTROLS_WHICH_FLAGS = 1073741824u32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub type ExtentMode = i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const DVEXTENT_CONTENT: ExtentMode = 0i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const DVEXTENT_INTEGRAL: ExtentMode = 1i32; +pub type FUNCFLAGS = u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub type FUNCFLAGS = i32; +pub const FUNCFLAG_FRESTRICTED: FUNCFLAGS = 1u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FRESTRICTED: FUNCFLAGS = 1i32; +pub const FUNCFLAG_FSOURCE: FUNCFLAGS = 2u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FSOURCE: FUNCFLAGS = 2i32; +pub const FUNCFLAG_FBINDABLE: FUNCFLAGS = 4u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FBINDABLE: FUNCFLAGS = 4i32; +pub const FUNCFLAG_FREQUESTEDIT: FUNCFLAGS = 8u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FREQUESTEDIT: FUNCFLAGS = 8i32; +pub const FUNCFLAG_FDISPLAYBIND: FUNCFLAGS = 16u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FDISPLAYBIND: FUNCFLAGS = 16i32; +pub const FUNCFLAG_FDEFAULTBIND: FUNCFLAGS = 32u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FDEFAULTBIND: FUNCFLAGS = 32i32; +pub const FUNCFLAG_FHIDDEN: FUNCFLAGS = 64u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FHIDDEN: FUNCFLAGS = 64i32; +pub const FUNCFLAG_FUSESGETLASTERROR: FUNCFLAGS = 128u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FUSESGETLASTERROR: FUNCFLAGS = 128i32; +pub const FUNCFLAG_FDEFAULTCOLLELEM: FUNCFLAGS = 256u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FDEFAULTCOLLELEM: FUNCFLAGS = 256i32; +pub const FUNCFLAG_FUIDEFAULT: FUNCFLAGS = 512u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FUIDEFAULT: FUNCFLAGS = 512i32; +pub const FUNCFLAG_FNONBROWSABLE: FUNCFLAGS = 1024u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FNONBROWSABLE: FUNCFLAGS = 1024i32; +pub const FUNCFLAG_FREPLACEABLE: FUNCFLAGS = 2048u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FREPLACEABLE: FUNCFLAGS = 2048i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FIMMEDIATEBIND: FUNCFLAGS = 4096i32; +pub const FUNCFLAG_FIMMEDIATEBIND: FUNCFLAGS = 4096u16; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub type GUIDKIND = i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] @@ -2645,6 +2621,14 @@ pub const IGNOREMIME_PROMPT: IGNOREMIME = 1i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const IGNOREMIME_TEXT: IGNOREMIME = 2i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub type KEYMODIFIERS = u32; +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const KEYMOD_SHIFT: KEYMODIFIERS = 1u32; +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const KEYMOD_CONTROL: KEYMODIFIERS = 2u32; +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const KEYMOD_ALT: KEYMODIFIERS = 4u32; +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub type LIBFLAGS = i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const LIBFLAG_FRESTRICTED: LIBFLAGS = 1i32; @@ -3199,6 +3183,12 @@ pub const PAGEACTION_UI_MODELESS: PAGEACTION_UI = 2i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const PAGEACTION_UI_SILENT: PAGEACTION_UI = 3i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub type PICTUREATTRIBUTES = i32; +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const PICTURE_SCALABLE: PICTUREATTRIBUTES = 1i32; +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const PICTURE_TRANSPARENT: PICTUREATTRIBUTES = 2i32; +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub type POINTERINACTIVE = i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const POINTERINACTIVE_ACTIVATEONENTRY: POINTERINACTIVE = 1i32; @@ -3247,12 +3237,6 @@ pub const PROPPAGESTATUS_VALIDATE: PROPPAGESTATUS = 2i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const PROPPAGESTATUS_CLEAN: PROPPAGESTATUS = 4i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub type PictureAttributes = i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const PICTURE_SCALABLE: PictureAttributes = 1i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const PICTURE_TRANSPARENT: PictureAttributes = 2i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub type QACONTAINERFLAGS = i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const QACONTAINER_SHOWHATCHING: QACONTAINERFLAGS = 1i32; @@ -3385,34 +3369,6 @@ pub const USERCLASSTYPE_SHORT: USERCLASSTYPE = 2i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const USERCLASSTYPE_APPNAME: USERCLASSTYPE = 3i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub type VARFLAGS = i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FREADONLY: VARFLAGS = 1i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FSOURCE: VARFLAGS = 2i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FBINDABLE: VARFLAGS = 4i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FREQUESTEDIT: VARFLAGS = 8i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FDISPLAYBIND: VARFLAGS = 16i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FDEFAULTBIND: VARFLAGS = 32i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FHIDDEN: VARFLAGS = 64i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FRESTRICTED: VARFLAGS = 128i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FDEFAULTCOLLELEM: VARFLAGS = 256i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FUIDEFAULT: VARFLAGS = 512i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FNONBROWSABLE: VARFLAGS = 1024i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FREPLACEABLE: VARFLAGS = 2048i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FIMMEDIATEBIND: VARFLAGS = 4096i32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub type VIEWSTATUS = i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const VIEWSTATUS_OPAQUE: VIEWSTATUS = 1i32; @@ -3462,18 +3418,6 @@ impl ::core::clone::Clone for ARRAYDESC { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct AspectInfo { - pub cb: u32, - pub dwFlags: u32, -} -impl ::core::marker::Copy for AspectInfo {} -impl ::core::clone::Clone for AspectInfo { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub struct CADWORD { pub cElems: u32, pub pElems: *mut u32, @@ -3539,17 +3483,29 @@ impl ::core::clone::Clone for CONTROLINFO { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub struct DVASPECTINFO { + pub cb: u32, + pub dwFlags: u32, +} +impl ::core::marker::Copy for DVASPECTINFO {} +impl ::core::clone::Clone for DVASPECTINFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct ExtentInfo { +pub struct DVEXTENTINFO { pub cb: u32, pub dwExtentMode: u32, pub sizelProposed: super::super::Foundation::SIZE, } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ExtentInfo {} +impl ::core::marker::Copy for DVEXTENTINFO {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ExtentInfo { +impl ::core::clone::Clone for DVEXTENTINFO { fn clone(&self) -> Self { *self } @@ -3689,28 +3645,10 @@ impl ::core::clone::Clone for OCPFIPARAMS { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] -pub struct OIFI { - pub cb: u32, - pub fMDIApp: super::super::Foundation::BOOL, - pub hwndFrame: super::super::Foundation::HWND, - pub haccel: super::super::UI::WindowsAndMessaging::HACCEL, - pub cAccelEntries: u32, -} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] -impl ::core::marker::Copy for OIFI {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] -impl ::core::clone::Clone for OIFI { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub struct OLECMD { - pub cmdID: u32, - pub cmdf: u32, + pub cmdID: OLECMDID, + pub cmdf: OLECMDF, } impl ::core::marker::Copy for OLECMD {} impl ::core::clone::Clone for OLECMD { @@ -3733,6 +3671,35 @@ impl ::core::clone::Clone for OLECMDTEXT { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] +pub struct OLEINPLACEFRAMEINFO { + pub cb: u32, + pub fMDIApp: super::super::Foundation::BOOL, + pub hwndFrame: super::super::Foundation::HWND, + pub haccel: super::super::UI::WindowsAndMessaging::HACCEL, + pub cAccelEntries: u32, +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] +impl ::core::marker::Copy for OLEINPLACEFRAMEINFO {} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] +impl ::core::clone::Clone for OLEINPLACEFRAMEINFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub struct OLEMENUGROUPWIDTHS { + pub width: [i32; 6], +} +impl ::core::marker::Copy for OLEMENUGROUPWIDTHS {} +impl ::core::clone::Clone for OLEMENUGROUPWIDTHS { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_Media\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Media"))] pub struct OLEUIBUSYA { @@ -4351,14 +4318,17 @@ impl ::core::clone::Clone for OLEUIVIEWPROPSW { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub struct OLEVERB { pub lVerb: i32, pub lpszVerbName: ::windows_sys::core::PWSTR, - pub fuFlags: u32, - pub grfAttribs: u32, + pub fuFlags: super::super::UI::WindowsAndMessaging::MENU_ITEM_FLAGS, + pub grfAttribs: OLEVERBATTRIB, } +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::marker::Copy for OLEVERB {} +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::clone::Clone for OLEVERB { fn clone(&self) -> Self { *self @@ -4366,17 +4336,6 @@ impl ::core::clone::Clone for OLEVERB { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct OleMenuGroupWidths { - pub width: [i32; 6], -} -impl ::core::marker::Copy for OleMenuGroupWidths {} -impl ::core::clone::Clone for OleMenuGroupWidths { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub struct PAGERANGE { pub nFromPage: i32, pub nToPage: i32, @@ -4582,7 +4541,7 @@ pub struct QACONTAINER { pub pAdviseSink: IAdviseSinkEx, pub pPropertyNotifySink: IPropertyNotifySink, pub pUnkEventSink: ::windows_sys::core::IUnknown, - pub dwAmbientFlags: u32, + pub dwAmbientFlags: QACONTAINERFLAGS, pub colorFore: u32, pub colorBack: u32, pub pFont: IFont, @@ -4606,11 +4565,11 @@ impl ::core::clone::Clone for QACONTAINER { #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub struct QACONTROL { pub cbSize: u32, - pub dwMiscStatus: u32, - pub dwViewStatus: u32, + pub dwMiscStatus: OLEMISC, + pub dwViewStatus: VIEWSTATUS, pub dwEventCookie: u32, pub dwPropNotifyCookie: u32, - pub dwPointerActivationPolicy: u32, + pub dwPointerActivationPolicy: POINTERINACTIVE, } impl ::core::marker::Copy for QACONTROL {} impl ::core::clone::Clone for QACONTROL { @@ -4619,64 +4578,16 @@ impl ::core::clone::Clone for QACONTROL { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct UDATE { - pub st: super::super::Foundation::SYSTEMTIME, - pub wDayOfYear: u16, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for UDATE {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for UDATE { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct _wireBRECORD { - pub fFlags: u32, - pub clSize: u32, - pub pRecInfo: IRecordInfo, - pub pRecord: *mut u8, -} -impl ::core::marker::Copy for _wireBRECORD {} -impl ::core::clone::Clone for _wireBRECORD { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -pub struct _wireSAFEARRAY { - pub cDims: u16, - pub fFeatures: u16, - pub cbElements: u32, - pub cLocks: u32, - pub uArrayStructs: _wireSAFEARRAY_UNION, - pub rgsabound: [super::Com::SAFEARRAYBOUND; 1], -} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::marker::Copy for _wireSAFEARRAY {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::clone::Clone for _wireSAFEARRAY { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -pub struct _wireSAFEARRAY_UNION { +pub struct SAFEARRAYUNION { pub sfType: u32, - pub u: _wireSAFEARRAY_UNION_0, + pub u: SAFEARRAYUNION_0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::marker::Copy for _wireSAFEARRAY_UNION {} +impl ::core::marker::Copy for SAFEARRAYUNION {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::clone::Clone for _wireSAFEARRAY_UNION { +impl ::core::clone::Clone for SAFEARRAYUNION { fn clone(&self) -> Self { *self } @@ -4684,34 +4595,34 @@ impl ::core::clone::Clone for _wireSAFEARRAY_UNION { #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -pub union _wireSAFEARRAY_UNION_0 { - pub BstrStr: _wireSAFEARR_BSTR, - pub UnknownStr: _wireSAFEARR_UNKNOWN, - pub DispatchStr: _wireSAFEARR_DISPATCH, - pub VariantStr: _wireSAFEARR_VARIANT, - pub RecordStr: _wireSAFEARR_BRECORD, - pub HaveIidStr: _wireSAFEARR_HAVEIID, +pub union SAFEARRAYUNION_0 { + pub BstrStr: SAFEARR_BSTR, + pub UnknownStr: SAFEARR_UNKNOWN, + pub DispatchStr: SAFEARR_DISPATCH, + pub VariantStr: SAFEARR_VARIANT, + pub RecordStr: SAFEARR_BRECORD, + pub HaveIidStr: SAFEARR_HAVEIID, pub ByteStr: super::Com::BYTE_SIZEDARR, - pub WordStr: super::Com::SHORT_SIZEDARR, - pub LongStr: super::Com::LONG_SIZEDARR, + pub WordStr: super::Com::WORD_SIZEDARR, + pub LongStr: super::Com::DWORD_SIZEDARR, pub HyperStr: super::Com::HYPER_SIZEDARR, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::marker::Copy for _wireSAFEARRAY_UNION_0 {} +impl ::core::marker::Copy for SAFEARRAYUNION_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::clone::Clone for _wireSAFEARRAY_UNION_0 { +impl ::core::clone::Clone for SAFEARRAYUNION_0 { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct _wireSAFEARR_BRECORD { +pub struct SAFEARR_BRECORD { pub Size: u32, pub aRecord: *mut *mut _wireBRECORD, } -impl ::core::marker::Copy for _wireSAFEARR_BRECORD {} -impl ::core::clone::Clone for _wireSAFEARR_BRECORD { +impl ::core::marker::Copy for SAFEARR_BRECORD {} +impl ::core::clone::Clone for SAFEARR_BRECORD { fn clone(&self) -> Self { *self } @@ -4719,14 +4630,14 @@ impl ::core::clone::Clone for _wireSAFEARR_BRECORD { #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] -pub struct _wireSAFEARR_BSTR { +pub struct SAFEARR_BSTR { pub Size: u32, pub aBstr: *mut *mut super::Com::FLAGGED_WORD_BLOB, } #[cfg(feature = "Win32_System_Com")] -impl ::core::marker::Copy for _wireSAFEARR_BSTR {} +impl ::core::marker::Copy for SAFEARR_BSTR {} #[cfg(feature = "Win32_System_Com")] -impl ::core::clone::Clone for _wireSAFEARR_BSTR { +impl ::core::clone::Clone for SAFEARR_BSTR { fn clone(&self) -> Self { *self } @@ -4734,39 +4645,39 @@ impl ::core::clone::Clone for _wireSAFEARR_BSTR { #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] -pub struct _wireSAFEARR_DISPATCH { +pub struct SAFEARR_DISPATCH { pub Size: u32, pub apDispatch: *mut super::Com::IDispatch, } #[cfg(feature = "Win32_System_Com")] -impl ::core::marker::Copy for _wireSAFEARR_DISPATCH {} +impl ::core::marker::Copy for SAFEARR_DISPATCH {} #[cfg(feature = "Win32_System_Com")] -impl ::core::clone::Clone for _wireSAFEARR_DISPATCH { +impl ::core::clone::Clone for SAFEARR_DISPATCH { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct _wireSAFEARR_HAVEIID { +pub struct SAFEARR_HAVEIID { pub Size: u32, pub apUnknown: *mut ::windows_sys::core::IUnknown, pub iid: ::windows_sys::core::GUID, } -impl ::core::marker::Copy for _wireSAFEARR_HAVEIID {} -impl ::core::clone::Clone for _wireSAFEARR_HAVEIID { +impl ::core::marker::Copy for SAFEARR_HAVEIID {} +impl ::core::clone::Clone for SAFEARR_HAVEIID { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct _wireSAFEARR_UNKNOWN { +pub struct SAFEARR_UNKNOWN { pub Size: u32, pub apUnknown: *mut ::windows_sys::core::IUnknown, } -impl ::core::marker::Copy for _wireSAFEARR_UNKNOWN {} -impl ::core::clone::Clone for _wireSAFEARR_UNKNOWN { +impl ::core::marker::Copy for SAFEARR_UNKNOWN {} +impl ::core::clone::Clone for SAFEARR_UNKNOWN { fn clone(&self) -> Self { *self } @@ -4774,14 +4685,62 @@ impl ::core::clone::Clone for _wireSAFEARR_UNKNOWN { #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -pub struct _wireSAFEARR_VARIANT { +pub struct SAFEARR_VARIANT { pub Size: u32, pub aVariant: *mut *mut _wireVARIANT, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::marker::Copy for _wireSAFEARR_VARIANT {} +impl ::core::marker::Copy for SAFEARR_VARIANT {} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +impl ::core::clone::Clone for SAFEARR_VARIANT { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct UDATE { + pub st: super::super::Foundation::SYSTEMTIME, + pub wDayOfYear: u16, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for UDATE {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for UDATE { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub struct _wireBRECORD { + pub fFlags: u32, + pub clSize: u32, + pub pRecInfo: IRecordInfo, + pub pRecord: *mut u8, +} +impl ::core::marker::Copy for _wireBRECORD {} +impl ::core::clone::Clone for _wireBRECORD { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +pub struct _wireSAFEARRAY { + pub cDims: u16, + pub fFeatures: u16, + pub cbElements: u32, + pub cLocks: u32, + pub uArrayStructs: SAFEARRAYUNION, + pub rgsabound: [super::Com::SAFEARRAYBOUND; 1], +} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::clone::Clone for _wireSAFEARR_VARIANT { +impl ::core::marker::Copy for _wireSAFEARRAY {} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +impl ::core::clone::Clone for _wireSAFEARRAY { fn clone(&self) -> Self { *self } 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 c42b7a1193..e5e2954b53 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Performance/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Performance/mod.rs @@ -1,14 +1,9 @@ #[cfg(feature = "Win32_System_Performance_HardwareCounterProfiling")] pub mod HardwareCounterProfiling; #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { +extern "system" { #[doc = "*Required features: `\"Win32_System_Performance\"`*"] pub fn BackupPerfRegistryToFileW(szfilename: ::windows_sys::core::PCWSTR, szcommentstring: ::windows_sys::core::PCWSTR) -> u32; - #[doc = "*Required features: `\"Win32_System_Performance\"`*"] - pub fn RestorePerfRegistryFromFileW(szfilename: ::windows_sys::core::PCWSTR, szlangid: ::windows_sys::core::PCWSTR) -> u32; -} -#[cfg_attr(windows, link(name = "windows"))] -extern "system" { #[doc = "*Required features: `\"Win32_System_Performance\"`*"] pub fn InstallPerfDllA(szcomputername: ::windows_sys::core::PCSTR, lpinifile: ::windows_sys::core::PCSTR, dwflags: usize) -> u32; #[doc = "*Required features: `\"Win32_System_Performance\"`*"] @@ -300,6 +295,8 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn QueryPerformanceFrequency(lpfrequency: *mut i64) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_System_Performance\"`*"] + pub fn RestorePerfRegistryFromFileW(szfilename: ::windows_sys::core::PCWSTR, szlangid: ::windows_sys::core::PCWSTR) -> u32; + #[doc = "*Required features: `\"Win32_System_Performance\"`*"] pub fn SetServiceAsTrustedA(szreserved: ::windows_sys::core::PCSTR, szservicename: ::windows_sys::core::PCSTR) -> u32; #[doc = "*Required features: `\"Win32_System_Performance\"`*"] pub fn SetServiceAsTrustedW(szreserved: ::windows_sys::core::PCWSTR, szservicename: ::windows_sys::core::PCWSTR) -> u32; diff --git a/crates/libs/sys/src/Windows/Win32/System/Registry/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Registry/mod.rs index 9be19cbda4..ebf05b71ed 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Registry/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Registry/mod.rs @@ -2224,35 +2224,35 @@ impl ::core::clone::Clone for DSKTLSYSTEMTIME { pub type HKEY = isize; #[repr(C)] #[doc = "*Required features: `\"Win32_System_Registry\"`*"] -pub struct VALENTA { - pub ve_valuename: ::windows_sys::core::PSTR, - pub ve_valuelen: u32, - pub ve_valueptr: usize, - pub ve_type: REG_VALUE_TYPE, +pub struct PVALUEA { + pub pv_valuename: ::windows_sys::core::PSTR, + pub pv_valuelen: i32, + pub pv_value_context: *mut ::core::ffi::c_void, + pub pv_type: u32, } -impl ::core::marker::Copy for VALENTA {} -impl ::core::clone::Clone for VALENTA { +impl ::core::marker::Copy for PVALUEA {} +impl ::core::clone::Clone for PVALUEA { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Registry\"`*"] -pub struct VALENTW { - pub ve_valuename: ::windows_sys::core::PWSTR, - pub ve_valuelen: u32, - pub ve_valueptr: usize, - pub ve_type: REG_VALUE_TYPE, +pub struct PVALUEW { + pub pv_valuename: ::windows_sys::core::PWSTR, + pub pv_valuelen: i32, + pub pv_value_context: *mut ::core::ffi::c_void, + pub pv_type: u32, } -impl ::core::marker::Copy for VALENTW {} -impl ::core::clone::Clone for VALENTW { +impl ::core::marker::Copy for PVALUEW {} +impl ::core::clone::Clone for PVALUEW { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Registry\"`*"] -pub struct provider_info { +pub struct REG_PROVIDER { pub pi_R0_1val: PQUERYHANDLER, pub pi_R0_allvals: PQUERYHANDLER, pub pi_R3_1val: PQUERYHANDLER, @@ -2260,36 +2260,36 @@ pub struct provider_info { pub pi_flags: u32, pub pi_key_context: *mut ::core::ffi::c_void, } -impl ::core::marker::Copy for provider_info {} -impl ::core::clone::Clone for provider_info { +impl ::core::marker::Copy for REG_PROVIDER {} +impl ::core::clone::Clone for REG_PROVIDER { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Registry\"`*"] -pub struct pvalueA { - pub pv_valuename: ::windows_sys::core::PSTR, - pub pv_valuelen: i32, - pub pv_value_context: *mut ::core::ffi::c_void, - pub pv_type: u32, +pub struct VALENTA { + pub ve_valuename: ::windows_sys::core::PSTR, + pub ve_valuelen: u32, + pub ve_valueptr: usize, + pub ve_type: REG_VALUE_TYPE, } -impl ::core::marker::Copy for pvalueA {} -impl ::core::clone::Clone for pvalueA { +impl ::core::marker::Copy for VALENTA {} +impl ::core::clone::Clone for VALENTA { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Registry\"`*"] -pub struct pvalueW { - pub pv_valuename: ::windows_sys::core::PWSTR, - pub pv_valuelen: i32, - pub pv_value_context: *mut ::core::ffi::c_void, - pub pv_type: u32, +pub struct VALENTW { + pub ve_valuename: ::windows_sys::core::PWSTR, + pub ve_valuelen: u32, + pub ve_valueptr: usize, + pub ve_type: REG_VALUE_TYPE, } -impl ::core::marker::Copy for pvalueW {} -impl ::core::clone::Clone for pvalueW { +impl ::core::marker::Copy for VALENTW {} +impl ::core::clone::Clone for VALENTW { fn clone(&self) -> Self { *self } 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 9aef03326c..cf80a1ed6b 100644 --- a/crates/libs/sys/src/Windows/Win32/System/RemoteDesktop/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/RemoteDesktop/mod.rs @@ -1,16 +1,4 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WTSEnableChildSessions(benable: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WTSGetChildSessionId(psessionid: *mut u32) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WTSIsChildSessionsEnabled(pbenabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -35,6 +23,9 @@ extern "system" { pub fn WTSDisconnectSession(hserver: super::super::Foundation::HANDLE, sessionid: u32, bwait: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn WTSEnableChildSessions(benable: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn WTSEnumerateListenersA(hserver: super::super::Foundation::HANDLE, preserved: *const ::core::ffi::c_void, reserved: u32, plisteners: *mut *mut i8, pcount: *mut u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -79,6 +70,9 @@ extern "system" { pub fn WTSFreeMemoryExW(wtstypeclass: WTS_TYPE_CLASS, pmemory: *const ::core::ffi::c_void, numberofentries: u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] pub fn WTSGetActiveConsoleSessionId() -> u32; + #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn WTSGetChildSessionId(psessionid: *mut u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] pub fn WTSGetListenerSecurityA(hserver: super::super::Foundation::HANDLE, preserved: *const ::core::ffi::c_void, reserved: u32, plistenername: ::windows_sys::core::PCSTR, securityinformation: u32, psecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::super::Foundation::BOOL; @@ -87,6 +81,9 @@ extern "system" { pub fn WTSGetListenerSecurityW(hserver: super::super::Foundation::HANDLE, preserved: *const ::core::ffi::c_void, reserved: u32, plistenername: ::windows_sys::core::PCWSTR, securityinformation: u32, psecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] + pub fn WTSIsChildSessionsEnabled(pbenabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub fn WTSLogoffSession(hserver: super::super::Foundation::HANDLE, sessionid: u32, bwait: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -1565,6 +1562,33 @@ impl ::core::clone::Clone for CLIENT_DISPLAY { } } pub type HwtsVirtualChannelHandle = isize; +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct PRODUCT_INFOA { + pub CompanyName: [super::super::Foundation::CHAR; 256], + pub ProductID: [super::super::Foundation::CHAR; 4], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for PRODUCT_INFOA {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for PRODUCT_INFOA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] +pub struct PRODUCT_INFOW { + pub CompanyName: [u16; 256], + pub ProductID: [u16; 4], +} +impl ::core::marker::Copy for PRODUCT_INFOW {} +impl ::core::clone::Clone for PRODUCT_INFOW { + fn clone(&self) -> Self { + *self + } +} #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -3108,7 +3132,7 @@ impl ::core::clone::Clone for WTS_USER_DATA { #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct WTS_VALIDATION_INFORMATIONA { - pub ProductInfo: _WTS_PRODUCT_INFOA, + pub ProductInfo: PRODUCT_INFOA, pub License: [u8; 16384], pub LicenseLength: u32, pub HardwareID: [u8; 20], @@ -3125,7 +3149,7 @@ impl ::core::clone::Clone for WTS_VALIDATION_INFORMATIONA { #[repr(C)] #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] pub struct WTS_VALIDATION_INFORMATIONW { - pub ProductInfo: _WTS_PRODUCT_INFOW, + pub ProductInfo: PRODUCT_INFOW, pub License: [u8; 16384], pub LicenseLength: u32, pub HardwareID: [u8; 20], @@ -3138,33 +3162,6 @@ impl ::core::clone::Clone for WTS_VALIDATION_INFORMATIONW { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct _WTS_PRODUCT_INFOA { - pub CompanyName: [super::super::Foundation::CHAR; 256], - pub ProductID: [super::super::Foundation::CHAR; 4], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _WTS_PRODUCT_INFOA {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _WTS_PRODUCT_INFOA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] -pub struct _WTS_PRODUCT_INFOW { - pub CompanyName: [u16; 256], - pub ProductID: [u16; 4], -} -impl ::core::marker::Copy for _WTS_PRODUCT_INFOW {} -impl ::core::clone::Clone for _WTS_PRODUCT_INFOW { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] pub struct pluginResource { pub alias: [u16; 256], diff --git a/crates/libs/sys/src/Windows/Win32/System/Restore/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Restore/mod.rs index 6e257b0fe1..6cd584cde1 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Restore/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Restore/mod.rs @@ -89,6 +89,24 @@ impl ::core::clone::Clone for RESTOREPOINTINFOA { } } #[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_System_Restore\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct RESTOREPOINTINFOEX { + pub ftCreation: super::super::Foundation::FILETIME, + pub dwEventType: u32, + pub dwRestorePtType: u32, + pub dwRPNum: u32, + pub szDescription: [u16; 256], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for RESTOREPOINTINFOEX {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for RESTOREPOINTINFOEX { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_Restore\"`*"] pub struct RESTOREPOINTINFOW { pub dwEventType: RESTOREPOINTINFO_EVENT_TYPE, @@ -114,21 +132,3 @@ impl ::core::clone::Clone for STATEMGRSTATUS { *self } } -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_System_Restore\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct _RESTOREPTINFOEX { - pub ftCreation: super::super::Foundation::FILETIME, - pub dwEventType: u32, - pub dwRestorePtType: u32, - pub dwRPNum: u32, - pub szDescription: [u16; 256], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _RESTOREPTINFOEX {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _RESTOREPTINFOEX { - fn clone(&self) -> Self { - *self - } -} diff --git a/crates/libs/sys/src/Windows/Win32/System/Rpc/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Rpc/mod.rs index 14768916f8..88a8dc1c34 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Rpc/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Rpc/mod.rs @@ -1,7 +1,5 @@ #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] - pub fn I_RpcServerInqAddressChangeFn() -> *mut RPC_ADDRESS_CHANGE_FN; #[doc = "*Required features: `\"Win32_System_Rpc\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] pub fn Ndr64AsyncClientCall(pproxyinfo: *mut MIDL_STUBLESS_PROXY_INFO, nprocnum: u32, preturnvalue: *mut ::core::ffi::c_void) -> CLIENT_CALL_RETURN; @@ -152,6 +150,8 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] pub fn I_RpcServerGetAssociationID(binding: *const ::core::ffi::c_void, associationid: *mut u32) -> RPC_STATUS; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] + pub fn I_RpcServerInqAddressChangeFn() -> *mut RPC_ADDRESS_CHANGE_FN; + #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] pub fn I_RpcServerInqLocalConnAddress(binding: *mut ::core::ffi::c_void, buffer: *mut ::core::ffi::c_void, buffersize: *mut u32, addressformat: *mut u32) -> RPC_STATUS; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] pub fn I_RpcServerInqRemoteConnAddress(binding: *mut ::core::ffi::c_void, buffer: *mut ::core::ffi::c_void, buffersize: *mut u32, addressformat: *mut u32) -> RPC_STATUS; @@ -2073,31 +2073,31 @@ pub const rlafIPv4: RpcLocalAddressFormat = 1i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] pub const rlafIPv6: RpcLocalAddressFormat = 2i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub type RpcProxyPerfCounters = i32; +pub type RpcPerfCounters = i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcCurrentUniqueUser: RpcProxyPerfCounters = 1i32; +pub const RpcCurrentUniqueUser: RpcPerfCounters = 1i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcBackEndConnectionAttempts: RpcProxyPerfCounters = 2i32; +pub const RpcBackEndConnectionAttempts: RpcPerfCounters = 2i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcBackEndConnectionFailed: RpcProxyPerfCounters = 3i32; +pub const RpcBackEndConnectionFailed: RpcPerfCounters = 3i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcRequestsPerSecond: RpcProxyPerfCounters = 4i32; +pub const RpcRequestsPerSecond: RpcPerfCounters = 4i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcIncomingConnections: RpcProxyPerfCounters = 5i32; +pub const RpcIncomingConnections: RpcPerfCounters = 5i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcIncomingBandwidth: RpcProxyPerfCounters = 6i32; +pub const RpcIncomingBandwidth: RpcPerfCounters = 6i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcOutgoingBandwidth: RpcProxyPerfCounters = 7i32; +pub const RpcOutgoingBandwidth: RpcPerfCounters = 7i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcAttemptedLbsDecisions: RpcProxyPerfCounters = 8i32; +pub const RpcAttemptedLbsDecisions: RpcPerfCounters = 8i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcFailedLbsDecisions: RpcProxyPerfCounters = 9i32; +pub const RpcFailedLbsDecisions: RpcPerfCounters = 9i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcAttemptedLbsMessages: RpcProxyPerfCounters = 10i32; +pub const RpcAttemptedLbsMessages: RpcPerfCounters = 10i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcFailedLbsMessages: RpcProxyPerfCounters = 11i32; +pub const RpcFailedLbsMessages: RpcPerfCounters = 11i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcLastCounter: RpcProxyPerfCounters = 12i32; +pub const RpcLastCounter: RpcPerfCounters = 12i32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] pub type SEC_WINNT_AUTH_IDENTITY = u32; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] @@ -4936,7 +4936,7 @@ pub type I_RpcProxyIsValidMachineFn = ::core::option::Option; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub type I_RpcProxyUpdatePerfCounterFn = ::core::option::Option; +pub type I_RpcProxyUpdatePerfCounterFn = ::core::option::Option; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] pub type MIDL_ES_ALLOC = ::core::option::Option; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] diff --git a/crates/libs/sys/src/Windows/Win32/System/Search/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Search/mod.rs index 2cea477eda..0a19507fc0 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Search/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Search/mod.rs @@ -10011,6 +10011,30 @@ impl ::core::clone::Clone for DBDATE { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct DBDATETIM4 { + pub numdays: u16, + pub nummins: u16, +} +impl ::core::marker::Copy for DBDATETIM4 {} +impl ::core::clone::Clone for DBDATETIM4 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct DBDATETIME { + pub dtdays: i32, + pub dttime: u32, +} +impl ::core::marker::Copy for DBDATETIME {} +impl ::core::clone::Clone for DBDATETIME { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] pub struct DBFAILUREINFO { pub hRow: usize, @@ -10155,6 +10179,18 @@ impl ::core::clone::Clone for DBLITERALINFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct DBMONEY { + pub mnyhigh: i32, + pub mnylow: u32, +} +impl ::core::marker::Copy for DBMONEY {} +impl ::core::clone::Clone for DBMONEY { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] pub struct DBOBJECT { pub dwFlags: u32, @@ -10275,7 +10311,7 @@ impl ::core::clone::Clone for DBPARAMINFO { pub struct DBPARAMS { pub pData: *mut ::core::ffi::c_void, pub cParamSets: usize, - pub hAccessor: usize, + pub hAccessor: HACCESSOR, } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] impl ::core::marker::Copy for DBPARAMS {} @@ -10291,7 +10327,7 @@ impl ::core::clone::Clone for DBPARAMS { pub struct DBPARAMS { pub pData: *mut ::core::ffi::c_void, pub cParamSets: usize, - pub hAccessor: usize, + pub hAccessor: HACCESSOR, } #[cfg(target_arch = "x86")] impl ::core::marker::Copy for DBPARAMS {} @@ -10495,6 +10531,40 @@ impl ::core::clone::Clone for DBPROPSET { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub struct DBROWWATCHCHANGE { + pub hRegion: usize, + pub eChangeKind: u32, + pub hRow: usize, + pub iRow: usize, +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::marker::Copy for DBROWWATCHCHANGE {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::clone::Clone for DBROWWATCHCHANGE { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(2))] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] +#[cfg(target_arch = "x86")] +pub struct DBROWWATCHCHANGE { + pub hRegion: usize, + pub eChangeKind: u32, + pub hRow: usize, + pub iRow: usize, +} +#[cfg(target_arch = "x86")] +impl ::core::marker::Copy for DBROWWATCHCHANGE {} +#[cfg(target_arch = "x86")] +impl ::core::clone::Clone for DBROWWATCHCHANGE { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] pub struct DBTIME { pub hour: u16, pub minute: u16, @@ -10548,6 +10618,30 @@ impl ::core::clone::Clone for DBTIMESTAMP { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct DBVARYBIN { + pub len: i16, + pub array: [u8; 8001], +} +impl ::core::marker::Copy for DBVARYBIN {} +impl ::core::clone::Clone for DBVARYBIN { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct DBVARYCHAR { + pub len: i16, + pub str: [i8; 8001], +} +impl ::core::marker::Copy for DBVARYCHAR {} +impl ::core::clone::Clone for DBVARYCHAR { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] pub struct DBVECTOR { pub size: usize, @@ -10669,6 +10763,7 @@ impl ::core::clone::Clone for FILTERED_DATA_SOURCES { *self } } +pub type HACCESSOR = usize; #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] pub struct HITRANGE { @@ -11195,6 +11290,64 @@ impl ::core::clone::Clone for SORTSET { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct SQLPERF { + pub TimerResolution: u32, + pub SQLidu: u32, + pub SQLiduRows: u32, + pub SQLSelects: u32, + pub SQLSelectRows: u32, + pub Transactions: u32, + pub SQLPrepares: u32, + pub ExecDirects: u32, + pub SQLExecutes: u32, + pub CursorOpens: u32, + pub CursorSize: u32, + pub CursorUsed: u32, + pub PercentCursorUsed: f64, + pub AvgFetchTime: f64, + pub AvgCursorSize: f64, + pub AvgCursorUsed: f64, + pub SQLFetchTime: u32, + pub SQLFetchCount: u32, + pub CurrentStmtCount: u32, + pub MaxOpenStmt: u32, + pub SumOpenStmt: u32, + pub CurrentConnectionCount: u32, + pub MaxConnectionsOpened: u32, + pub SumConnectionsOpened: u32, + pub SumConnectiontime: u32, + pub AvgTimeOpened: f64, + pub ServerRndTrips: u32, + pub BuffersSent: u32, + pub BuffersRec: u32, + pub BytesSent: u32, + pub BytesRec: u32, + pub msExecutionTime: u32, + pub msNetWorkServerTime: u32, +} +impl ::core::marker::Copy for SQLPERF {} +impl ::core::clone::Clone for SQLPERF { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct SQL_DAY_SECOND_STRUCT { + pub day: u32, + pub hour: u32, + pub minute: u32, + pub second: u32, + pub fraction: u32, +} +impl ::core::marker::Copy for SQL_DAY_SECOND_STRUCT {} +impl ::core::clone::Clone for SQL_DAY_SECOND_STRUCT { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] pub struct SQL_INTERVAL_STRUCT { pub interval_type: SQLINTERVAL, pub interval_sign: i16, @@ -11209,8 +11362,8 @@ impl ::core::clone::Clone for SQL_INTERVAL_STRUCT { #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] pub union SQL_INTERVAL_STRUCT_0 { - pub year_month: tagSQL_YEAR_MONTH, - pub day_second: tagSQL_DAY_SECOND, + pub year_month: SQL_YEAR_MONTH_STRUCT, + pub day_second: SQL_DAY_SECOND_STRUCT, } impl ::core::marker::Copy for SQL_INTERVAL_STRUCT_0 {} impl ::core::clone::Clone for SQL_INTERVAL_STRUCT_0 { @@ -11233,6 +11386,35 @@ impl ::core::clone::Clone for SQL_NUMERIC_STRUCT { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct SQL_YEAR_MONTH_STRUCT { + pub year: u32, + pub month: u32, +} +impl ::core::marker::Copy for SQL_YEAR_MONTH_STRUCT {} +impl ::core::clone::Clone for SQL_YEAR_MONTH_STRUCT { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct SSERRORINFO { + pub pwszMessage: ::windows_sys::core::PWSTR, + pub pwszServer: ::windows_sys::core::PWSTR, + pub pwszProcedure: ::windows_sys::core::PWSTR, + pub lNative: i32, + pub bState: u8, + pub bClass: u8, + pub wLineNumber: u16, +} +impl ::core::marker::Copy for SSERRORINFO {} +impl ::core::clone::Clone for SSERRORINFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] pub struct SSVARIANT { @@ -11483,187 +11665,6 @@ impl ::core::clone::Clone for VECTORRESTRICTION { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct dbdatetime { - pub dtdays: i32, - pub dttime: u32, -} -impl ::core::marker::Copy for dbdatetime {} -impl ::core::clone::Clone for dbdatetime { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct dbdatetime4 { - pub numdays: u16, - pub nummins: u16, -} -impl ::core::marker::Copy for dbdatetime4 {} -impl ::core::clone::Clone for dbdatetime4 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct dbmoney { - pub mnyhigh: i32, - pub mnylow: u32, -} -impl ::core::marker::Copy for dbmoney {} -impl ::core::clone::Clone for dbmoney { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct dbvarybin { - pub len: i16, - pub array: [u8; 8001], -} -impl ::core::marker::Copy for dbvarybin {} -impl ::core::clone::Clone for dbvarybin { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct dbvarychar { - pub len: i16, - pub str: [i8; 8001], -} -impl ::core::marker::Copy for dbvarychar {} -impl ::core::clone::Clone for dbvarychar { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct sqlperf { - pub TimerResolution: u32, - pub SQLidu: u32, - pub SQLiduRows: u32, - pub SQLSelects: u32, - pub SQLSelectRows: u32, - pub Transactions: u32, - pub SQLPrepares: u32, - pub ExecDirects: u32, - pub SQLExecutes: u32, - pub CursorOpens: u32, - pub CursorSize: u32, - pub CursorUsed: u32, - pub PercentCursorUsed: f64, - pub AvgFetchTime: f64, - pub AvgCursorSize: f64, - pub AvgCursorUsed: f64, - pub SQLFetchTime: u32, - pub SQLFetchCount: u32, - pub CurrentStmtCount: u32, - pub MaxOpenStmt: u32, - pub SumOpenStmt: u32, - pub CurrentConnectionCount: u32, - pub MaxConnectionsOpened: u32, - pub SumConnectionsOpened: u32, - pub SumConnectiontime: u32, - pub AvgTimeOpened: f64, - pub ServerRndTrips: u32, - pub BuffersSent: u32, - pub BuffersRec: u32, - pub BytesSent: u32, - pub BytesRec: u32, - pub msExecutionTime: u32, - pub msNetWorkServerTime: u32, -} -impl ::core::marker::Copy for sqlperf {} -impl ::core::clone::Clone for sqlperf { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub struct tagDBROWWATCHRANGE { - pub hRegion: usize, - pub eChangeKind: u32, - pub hRow: usize, - pub iRow: usize, -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::marker::Copy for tagDBROWWATCHRANGE {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::clone::Clone for tagDBROWWATCHRANGE { - fn clone(&self) -> Self { - *self - } -} -#[repr(C, packed(2))] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -#[cfg(target_arch = "x86")] -pub struct tagDBROWWATCHRANGE { - pub hRegion: usize, - pub eChangeKind: u32, - pub hRow: usize, - pub iRow: usize, -} -#[cfg(target_arch = "x86")] -impl ::core::marker::Copy for tagDBROWWATCHRANGE {} -#[cfg(target_arch = "x86")] -impl ::core::clone::Clone for tagDBROWWATCHRANGE { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct tagSQL_DAY_SECOND { - pub day: u32, - pub hour: u32, - pub minute: u32, - pub second: u32, - pub fraction: u32, -} -impl ::core::marker::Copy for tagSQL_DAY_SECOND {} -impl ::core::clone::Clone for tagSQL_DAY_SECOND { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct tagSQL_YEAR_MONTH { - pub year: u32, - pub month: u32, -} -impl ::core::marker::Copy for tagSQL_YEAR_MONTH {} -impl ::core::clone::Clone for tagSQL_YEAR_MONTH { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct tagSSErrorInfo { - pub pwszMessage: ::windows_sys::core::PWSTR, - pub pwszServer: ::windows_sys::core::PWSTR, - pub pwszProcedure: ::windows_sys::core::PWSTR, - pub lNative: i32, - pub bState: u8, - pub bClass: u8, - pub wLineNumber: u16, -} -impl ::core::marker::Copy for tagSSErrorInfo {} -impl ::core::clone::Clone for tagSSErrorInfo { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_System_Search\"`*"] pub type PFNFILLTEXTBUFFER = ::core::option::Option ::windows_sys::core::HRESULT>; #[doc = "*Required features: `\"Win32_System_Search\"`, `\"Win32_Foundation\"`*"] diff --git a/crates/libs/sys/src/Windows/Win32/System/StationsAndDesktops/mod.rs b/crates/libs/sys/src/Windows/Win32/System/StationsAndDesktops/mod.rs index dff623a496..dac1946241 100644 --- a/crates/libs/sys/src/Windows/Win32/System/StationsAndDesktops/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/StationsAndDesktops/mod.rs @@ -20,16 +20,16 @@ extern "system" { pub fn CloseWindowStation(hwinsta: HWINSTA) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] - pub fn CreateDesktopA(lpszdesktop: ::windows_sys::core::PCSTR, lpszdevice: ::windows_sys::core::PCSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEA, dwflags: u32, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES) -> HDESK; + pub fn CreateDesktopA(lpszdesktop: ::windows_sys::core::PCSTR, lpszdevice: ::windows_sys::core::PCSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEA, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES) -> HDESK; #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] - pub fn CreateDesktopExA(lpszdesktop: ::windows_sys::core::PCSTR, lpszdevice: ::windows_sys::core::PCSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEA, dwflags: u32, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES, ulheapsize: u32, pvoid: *mut ::core::ffi::c_void) -> HDESK; + pub fn CreateDesktopExA(lpszdesktop: ::windows_sys::core::PCSTR, lpszdevice: ::windows_sys::core::PCSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEA, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES, ulheapsize: u32, pvoid: *mut ::core::ffi::c_void) -> HDESK; #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] - pub fn CreateDesktopExW(lpszdesktop: ::windows_sys::core::PCWSTR, lpszdevice: ::windows_sys::core::PCWSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEW, dwflags: u32, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES, ulheapsize: u32, pvoid: *mut ::core::ffi::c_void) -> HDESK; + pub fn CreateDesktopExW(lpszdesktop: ::windows_sys::core::PCWSTR, lpszdevice: ::windows_sys::core::PCWSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEW, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES, ulheapsize: u32, pvoid: *mut ::core::ffi::c_void) -> HDESK; #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] - pub fn CreateDesktopW(lpszdesktop: ::windows_sys::core::PCWSTR, lpszdevice: ::windows_sys::core::PCWSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEW, dwflags: u32, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES) -> HDESK; + pub fn CreateDesktopW(lpszdesktop: ::windows_sys::core::PCWSTR, lpszdevice: ::windows_sys::core::PCWSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEW, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES) -> HDESK; #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] pub fn CreateWindowStationA(lpwinsta: ::windows_sys::core::PCSTR, dwflags: u32, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES) -> HWINSTA; @@ -63,13 +63,13 @@ extern "system" { pub fn GetUserObjectInformationW(hobj: super::super::Foundation::HANDLE, nindex: USER_OBJECT_INFORMATION_INDEX, pvinfo: *mut ::core::ffi::c_void, nlength: u32, lpnlengthneeded: *mut u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn OpenDesktopA(lpszdesktop: ::windows_sys::core::PCSTR, dwflags: u32, finherit: super::super::Foundation::BOOL, dwdesiredaccess: u32) -> HDESK; + pub fn OpenDesktopA(lpszdesktop: ::windows_sys::core::PCSTR, dwflags: DESKTOP_CONTROL_FLAGS, finherit: super::super::Foundation::BOOL, dwdesiredaccess: u32) -> HDESK; #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn OpenDesktopW(lpszdesktop: ::windows_sys::core::PCWSTR, dwflags: u32, finherit: super::super::Foundation::BOOL, dwdesiredaccess: u32) -> HDESK; + pub fn OpenDesktopW(lpszdesktop: ::windows_sys::core::PCWSTR, dwflags: DESKTOP_CONTROL_FLAGS, finherit: super::super::Foundation::BOOL, dwdesiredaccess: u32) -> HDESK; #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn OpenInputDesktop(dwflags: u32, finherit: super::super::Foundation::BOOL, dwdesiredaccess: u32) -> HDESK; + pub fn OpenInputDesktop(dwflags: DESKTOP_CONTROL_FLAGS, finherit: super::super::Foundation::BOOL, dwdesiredaccess: u32) -> HDESK; #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn OpenWindowStationA(lpszwinsta: ::windows_sys::core::PCSTR, finherit: super::super::Foundation::BOOL, dwdesiredaccess: u32) -> HWINSTA; @@ -125,6 +125,10 @@ pub const BSM_ALLDESKTOPS: BROADCAST_SYSTEM_MESSAGE_INFO = 16u32; #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`*"] pub const BSM_APPLICATIONS: BROADCAST_SYSTEM_MESSAGE_INFO = 8u32; #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`*"] +pub type DESKTOP_CONTROL_FLAGS = u32; +#[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`*"] +pub const DF_ALLOWOTHERACCOUNTHOOK: DESKTOP_CONTROL_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`*"] pub type USER_OBJECT_INFORMATION_INDEX = u32; #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`*"] pub const UOI_FLAGS: USER_OBJECT_INFORMATION_INDEX = 1u32; diff --git a/crates/libs/sys/src/Windows/Win32/System/SubsystemForLinux/mod.rs b/crates/libs/sys/src/Windows/Win32/System/SubsystemForLinux/mod.rs index ff28c1fce2..dc00314cbd 100644 --- a/crates/libs/sys/src/Windows/Win32/System/SubsystemForLinux/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/SubsystemForLinux/mod.rs @@ -1,5 +1,5 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { +extern "system" { #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`*"] pub fn WslConfigureDistribution(distributionname: ::windows_sys::core::PCWSTR, defaultuid: u32, wsldistributionflags: WSL_DISTRIBUTION_FLAGS) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`*"] 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 4ffade9b79..12b927fd64 100644 --- a/crates/libs/sys/src/Windows/Win32/System/SystemServices/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/SystemServices/mod.rs @@ -6525,41 +6525,25 @@ pub const CF_GDIOBJFIRST: CLIPBOARD_FORMATS = 768u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub const CF_GDIOBJLAST: CLIPBOARD_FORMATS = 1023u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub type CM_ERROR_CONTROL_TYPE = i32; +pub type DESKTOP_ACCESS_FLAGS = u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const IgnoreError: CM_ERROR_CONTROL_TYPE = 0i32; +pub const DESKTOP_READOBJECTS: DESKTOP_ACCESS_FLAGS = 1u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const NormalError: CM_ERROR_CONTROL_TYPE = 1i32; +pub const DESKTOP_CREATEWINDOW: DESKTOP_ACCESS_FLAGS = 2u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const SevereError: CM_ERROR_CONTROL_TYPE = 2i32; +pub const DESKTOP_CREATEMENU: DESKTOP_ACCESS_FLAGS = 4u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const CriticalError: CM_ERROR_CONTROL_TYPE = 3i32; +pub const DESKTOP_HOOKCONTROL: DESKTOP_ACCESS_FLAGS = 8u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub type CM_SERVICE_LOAD_TYPE = i32; +pub const DESKTOP_JOURNALRECORD: DESKTOP_ACCESS_FLAGS = 16u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const BootLoad: CM_SERVICE_LOAD_TYPE = 0i32; +pub const DESKTOP_JOURNALPLAYBACK: DESKTOP_ACCESS_FLAGS = 32u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const SystemLoad: CM_SERVICE_LOAD_TYPE = 1i32; +pub const DESKTOP_ENUMERATE: DESKTOP_ACCESS_FLAGS = 64u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const AutoLoad: CM_SERVICE_LOAD_TYPE = 2i32; +pub const DESKTOP_WRITEOBJECTS: DESKTOP_ACCESS_FLAGS = 128u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const DemandLoad: CM_SERVICE_LOAD_TYPE = 3i32; -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const DisableLoad: CM_SERVICE_LOAD_TYPE = 4i32; -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub type CM_SERVICE_NODE_TYPE = i32; -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const DriverType: CM_SERVICE_NODE_TYPE = 1i32; -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const FileSystemType: CM_SERVICE_NODE_TYPE = 2i32; -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const Win32ServiceOwnProcess: CM_SERVICE_NODE_TYPE = 16i32; -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const Win32ServiceShareProcess: CM_SERVICE_NODE_TYPE = 32i32; -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const AdapterType: CM_SERVICE_NODE_TYPE = 4i32; -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const RecognizerType: CM_SERVICE_NODE_TYPE = 8i32; +pub const DESKTOP_SWITCHDESKTOP: DESKTOP_ACCESS_FLAGS = 256u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub type DEV_BROADCAST_HDR_DEVICE_TYPE = u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] @@ -6933,6 +6917,18 @@ pub const UserPresent: POWER_USER_PRESENCE_TYPE = 1i32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub const UserUnknown: POWER_USER_PRESENCE_TYPE = 255i32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub type RECO_FLAGS = u32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const RECO_PASTE: RECO_FLAGS = 0u32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const RECO_DROP: RECO_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const RECO_COPY: RECO_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const RECO_CUT: RECO_FLAGS = 3u32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const RECO_DRAG: RECO_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub type RESOURCEMANAGER_INFORMATION_CLASS = i32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub const ResourceManagerBasicInformation: RESOURCEMANAGER_INFORMATION_CLASS = 0i32; @@ -7027,6 +7023,42 @@ pub const SERVERSILO_TERMINATING: SERVERSILO_STATE = 3i32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub const SERVERSILO_TERMINATED: SERVERSILO_STATE = 4i32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub type SERVICE_ERROR_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const IgnoreError: SERVICE_ERROR_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const NormalError: SERVICE_ERROR_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SevereError: SERVICE_ERROR_TYPE = 2i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const CriticalError: SERVICE_ERROR_TYPE = 3i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub type SERVICE_LOAD_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const BootLoad: SERVICE_LOAD_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SystemLoad: SERVICE_LOAD_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const AutoLoad: SERVICE_LOAD_TYPE = 2i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const DemandLoad: SERVICE_LOAD_TYPE = 3i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const DisableLoad: SERVICE_LOAD_TYPE = 4i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub type SERVICE_NODE_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const DriverType: SERVICE_NODE_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const FileSystemType: SERVICE_NODE_TYPE = 2i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const Win32ServiceOwnProcess: SERVICE_NODE_TYPE = 16i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const Win32ServiceShareProcess: SERVICE_NODE_TYPE = 32i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const AdapterType: SERVICE_NODE_TYPE = 4i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const RecognizerType: SERVICE_NODE_TYPE = 8i32; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub type SE_IMAGE_SIGNATURE_TYPE = i32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub const SeImageSignatureNone: SE_IMAGE_SIGNATURE_TYPE = 0i32; @@ -7053,6 +7085,80 @@ pub const SeLearningModeSettings: SE_LEARNING_MODE_DATA_TYPE = 1i32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub const SeLearningModeMax: SE_LEARNING_MODE_DATA_TYPE = 2i32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub type SFGAO_FLAGS = u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CANCOPY: SFGAO_FLAGS = 1u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CANMOVE: SFGAO_FLAGS = 2u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CANLINK: SFGAO_FLAGS = 4u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_STORAGE: SFGAO_FLAGS = 8u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CANRENAME: SFGAO_FLAGS = 16u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CANDELETE: SFGAO_FLAGS = 32u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_HASPROPSHEET: SFGAO_FLAGS = 64u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_DROPTARGET: SFGAO_FLAGS = 256u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CAPABILITYMASK: SFGAO_FLAGS = 375u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_PLACEHOLDER: SFGAO_FLAGS = 2048u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_SYSTEM: SFGAO_FLAGS = 4096u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_ENCRYPTED: SFGAO_FLAGS = 8192u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_ISSLOW: SFGAO_FLAGS = 16384u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_GHOSTED: SFGAO_FLAGS = 32768u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_LINK: SFGAO_FLAGS = 65536u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_SHARE: SFGAO_FLAGS = 131072u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_READONLY: SFGAO_FLAGS = 262144u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_HIDDEN: SFGAO_FLAGS = 524288u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_DISPLAYATTRMASK: SFGAO_FLAGS = 1032192u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_FILESYSANCESTOR: SFGAO_FLAGS = 268435456u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_FOLDER: SFGAO_FLAGS = 536870912u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_FILESYSTEM: SFGAO_FLAGS = 1073741824u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_HASSUBFOLDER: SFGAO_FLAGS = 2147483648u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CONTENTSMASK: SFGAO_FLAGS = 2147483648u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_VALIDATE: SFGAO_FLAGS = 16777216u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_REMOVABLE: SFGAO_FLAGS = 33554432u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_COMPRESSED: SFGAO_FLAGS = 67108864u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_BROWSABLE: SFGAO_FLAGS = 134217728u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_NONENUMERATED: SFGAO_FLAGS = 1048576u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_NEWCONTENT: SFGAO_FLAGS = 2097152u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CANMONIKER: SFGAO_FLAGS = 4194304u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_HASSTORAGE: SFGAO_FLAGS = 4194304u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_STREAM: SFGAO_FLAGS = 4194304u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_STORAGEANCESTOR: SFGAO_FLAGS = 8388608u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_STORAGECAPMASK: SFGAO_FLAGS = 1891958792u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_PKEYSFGAOMASK: SFGAO_FLAGS = 2164539392u64; +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub type STATIC_STYLES = u32; #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub const SS_LEFT: STATIC_STYLES = 0u32; @@ -8974,6 +9080,26 @@ impl ::core::clone::Clone for IMPORT_OBJECT_HEADER_0 { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_System_SystemServices\"`, `\"Win32_System_JobObjects\"`*"] +#[cfg(feature = "Win32_System_JobObjects")] +pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1 { + pub MaxIops: i64, + pub MaxBandwidth: i64, + pub ReservationIops: i64, + pub VolumeName: ::windows_sys::core::PWSTR, + pub BaseIoSize: u32, + pub ControlFlags: super::JobObjects::JOB_OBJECT_IO_RATE_CONTROL_FLAGS, + pub VolumeNameLength: u16, +} +#[cfg(feature = "Win32_System_JobObjects")] +impl ::core::marker::Copy for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1 {} +#[cfg(feature = "Win32_System_JobObjects")] +impl ::core::clone::Clone for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub struct KERNEL_CET_CONTEXT { pub Ssp: u64, @@ -10396,24 +10522,24 @@ impl ::core::clone::Clone for RESUME_PERFORMANCE { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub struct RemBRUSH { +pub struct RemHBITMAP { pub cbData: u32, pub data: [u8; 1], } -impl ::core::marker::Copy for RemBRUSH {} -impl ::core::clone::Clone for RemBRUSH { +impl ::core::marker::Copy for RemHBITMAP {} +impl ::core::clone::Clone for RemHBITMAP { fn clone(&self) -> Self { *self } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub struct RemHBITMAP { +pub struct RemHBRUSH { pub cbData: u32, pub data: [u8; 1], } -impl ::core::marker::Copy for RemHBITMAP {} -impl ::core::clone::Clone for RemHBITMAP { +impl ::core::marker::Copy for RemHBRUSH {} +impl ::core::clone::Clone for RemHBRUSH { fn clone(&self) -> Self { *self } diff --git a/crates/libs/sys/src/Windows/Win32/System/TpmBaseServices/mod.rs b/crates/libs/sys/src/Windows/Win32/System/TpmBaseServices/mod.rs index 7ce5e9ed20..52e2e89fda 100644 --- a/crates/libs/sys/src/Windows/Win32/System/TpmBaseServices/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/TpmBaseServices/mod.rs @@ -1,14 +1,11 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { +extern "system" { #[doc = "*Required features: `\"Win32_System_TpmBaseServices\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn GetDeviceID(pbwindowsaik: *mut u8, cbwindowsaik: u32, pcbresult: *mut u32, pfprotectedbytpm: *mut super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_TpmBaseServices\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn GetDeviceIDString(pszwindowsaik: ::windows_sys::core::PWSTR, cchwindowsaik: u32, pcchresult: *mut u32, pfprotectedbytpm: *mut super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT; -} -#[cfg_attr(windows, link(name = "windows"))] -extern "system" { #[doc = "*Required features: `\"Win32_System_TpmBaseServices\"`*"] pub fn Tbsi_Context_Create(pcontextparams: *const TBS_CONTEXT_PARAMS, phcontext: *mut *mut ::core::ffi::c_void) -> u32; #[doc = "*Required features: `\"Win32_System_TpmBaseServices\"`*"] @@ -172,12 +169,12 @@ impl ::core::clone::Clone for TPM_DEVICE_INFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_TpmBaseServices\"`*"] -pub struct tdTPM_WNF_PROVISIONING { +pub struct TPM_WNF_PROVISIONING { pub status: u32, pub message: [u8; 28], } -impl ::core::marker::Copy for tdTPM_WNF_PROVISIONING {} -impl ::core::clone::Clone for tdTPM_WNF_PROVISIONING { +impl ::core::marker::Copy for TPM_WNF_PROVISIONING {} +impl ::core::clone::Clone for TPM_WNF_PROVISIONING { fn clone(&self) -> Self { *self } 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 65eaee3b97..2e99491166 100644 --- a/crates/libs/sys/src/Windows/Win32/System/WindowsProgramming/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/WindowsProgramming/mod.rs @@ -1,35 +1,4 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] - pub fn GetFeatureEnabledState(featureid: u32, changetime: FEATURE_CHANGE_TIME) -> FEATURE_ENABLED_STATE; - #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn GetFeatureVariant(featureid: u32, changetime: FEATURE_CHANGE_TIME, payloadid: *mut u32, hasnotification: *mut super::super::Foundation::BOOL) -> u32; - #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] - pub fn RecordFeatureError(featureid: u32, error: *const FEATURE_ERROR); - #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] - pub fn RecordFeatureUsage(featureid: u32, kind: u32, addend: u32, originname: ::windows_sys::core::PCSTR); - #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] - pub fn SubscribeFeatureStateChangeNotification(subscription: *mut FEATURE_STATE_CHANGE_SUBSCRIPTION, callback: PFEATURE_STATE_CHANGE_CALLBACK, context: *const ::core::ffi::c_void); - #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] - pub fn UnsubscribeFeatureStateChangeNotification(subscription: FEATURE_STATE_CHANGE_SUBSCRIPTION); - #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] - #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] - pub fn uaw_wcschr(string: *const u16, character: u16) -> *mut u16; - #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] - #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] - pub fn uaw_wcscpy(destination: *mut u16, source: *const u16) -> *mut u16; - #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] - #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] - pub fn uaw_wcsicmp(string1: *const u16, string2: *const u16) -> i32; - #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] - #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] - pub fn uaw_wcslen(string: *const u16) -> usize; - #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] - #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] - pub fn uaw_wcsrchr(string: *const u16, character: u16) -> *mut u16; -} -#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] pub fn AddDelBackupEntryA(lpcszfilelist: ::windows_sys::core::PCSTR, lpcszbackupdir: ::windows_sys::core::PCSTR, lpcszbasename: ::windows_sys::core::PCSTR, dwflags: u32) -> ::windows_sys::core::HRESULT; @@ -161,6 +130,11 @@ extern "system" { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub fn GetDCRegionData(hdc: super::super::Graphics::Gdi::HDC, size: u32, prd: *mut super::super::Graphics::Gdi::RGNDATA) -> u32; #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] + pub fn GetFeatureEnabledState(featureid: u32, changetime: FEATURE_CHANGE_TIME) -> FEATURE_ENABLED_STATE; + #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn GetFeatureVariant(featureid: u32, changetime: FEATURE_CHANGE_TIME, payloadid: *mut u32, hasnotification: *mut super::super::Foundation::BOOL) -> u32; + #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] pub fn GetFirmwareEnvironmentVariableA(lpname: ::windows_sys::core::PCSTR, lpguid: ::windows_sys::core::PCSTR, pbuffer: *mut ::core::ffi::c_void, nsize: u32) -> u32; #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] pub fn GetFirmwareEnvironmentVariableExA(lpname: ::windows_sys::core::PCSTR, lpguid: ::windows_sys::core::PCSTR, pbuffer: *mut ::core::ffi::c_void, nsize: u32, pdwattribubutes: *mut u32) -> u32; @@ -373,6 +347,10 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn RebootCheckOnInstallW(hwnd: super::super::Foundation::HWND, pszinf: ::windows_sys::core::PCWSTR, pszsec: ::windows_sys::core::PCWSTR, dwreserved: u32) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] + pub fn RecordFeatureError(featureid: u32, error: *const FEATURE_ERROR); + #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] + pub fn RecordFeatureUsage(featureid: u32, kind: u32, addend: u32, originname: ::windows_sys::core::PCSTR); #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn RegInstallA(hmod: super::super::Foundation::HINSTANCE, pszsection: ::windows_sys::core::PCSTR, psttable: *const STRTABLEA) -> ::windows_sys::core::HRESULT; @@ -499,6 +477,8 @@ extern "system" { #[cfg(feature = "Win32_Foundation")] pub fn SignalObjectAndWait(hobjecttosignal: super::super::Foundation::HANDLE, hobjecttowaiton: super::super::Foundation::HANDLE, dwmilliseconds: u32, balertable: super::super::Foundation::BOOL) -> super::super::Foundation::WIN32_ERROR; #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] + pub fn SubscribeFeatureStateChangeNotification(subscription: *mut FEATURE_STATE_CHANGE_SUBSCRIPTION, callback: PFEATURE_STATE_CHANGE_CALLBACK, context: *const ::core::ffi::c_void); + #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] pub fn TranslateInfStringA(pszinffilename: ::windows_sys::core::PCSTR, pszinstallsection: ::windows_sys::core::PCSTR, psztranslatesection: ::windows_sys::core::PCSTR, psztranslatekey: ::windows_sys::core::PCSTR, pszbuffer: ::windows_sys::core::PSTR, cchbuffer: u32, pdwrequiredsize: *mut u32, pvreserved: *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] pub fn TranslateInfStringExA(hinf: *mut ::core::ffi::c_void, pszinffilename: ::windows_sys::core::PCSTR, psztranslatesection: ::windows_sys::core::PCSTR, psztranslatekey: ::windows_sys::core::PCSTR, pszbuffer: ::windows_sys::core::PSTR, dwbuffersize: u32, pdwrequiredsize: *mut u32, pvreserved: *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; @@ -506,6 +486,8 @@ extern "system" { pub fn TranslateInfStringExW(hinf: *mut ::core::ffi::c_void, pszinffilename: ::windows_sys::core::PCWSTR, psztranslatesection: ::windows_sys::core::PCWSTR, psztranslatekey: ::windows_sys::core::PCWSTR, pszbuffer: ::windows_sys::core::PWSTR, dwbuffersize: u32, pdwrequiredsize: *mut u32, pvreserved: *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] pub fn TranslateInfStringW(pszinffilename: ::windows_sys::core::PCWSTR, pszinstallsection: ::windows_sys::core::PCWSTR, psztranslatesection: ::windows_sys::core::PCWSTR, psztranslatekey: ::windows_sys::core::PCWSTR, pszbuffer: ::windows_sys::core::PWSTR, cchbuffer: u32, pdwrequiredsize: *mut u32, pvreserved: *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] + pub fn UnsubscribeFeatureStateChangeNotification(subscription: FEATURE_STATE_CHANGE_SUBSCRIPTION); #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn UserInstStubWrapperA(hwnd: super::super::Foundation::HWND, hinstance: super::super::Foundation::HINSTANCE, pszparms: ::windows_sys::core::PCSTR, nshow: i32) -> ::windows_sys::core::HRESULT; @@ -613,6 +595,21 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] pub fn uaw_lstrlenW(string: *const u16) -> i32; + #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] + #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] + pub fn uaw_wcschr(string: *const u16, character: u16) -> *mut u16; + #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] + #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] + pub fn uaw_wcscpy(destination: *mut u16, source: *const u16) -> *mut u16; + #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] + #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] + pub fn uaw_wcsicmp(string1: *const u16, string2: *const u16) -> i32; + #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] + #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] + pub fn uaw_wcslen(string: *const u16) -> usize; + #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] + #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] + pub fn uaw_wcsrchr(string: *const u16, character: u16) -> *mut u16; } pub type ICameraUIControl = *mut ::core::ffi::c_void; pub type ICameraUIControlEventCallback = *mut ::core::ffi::c_void; @@ -3045,6 +3042,58 @@ impl ::core::clone::Clone for SYSTEM_TIMEOFDAY_INFORMATION { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub struct TCP_REQUEST_QUERY_INFORMATION_EX32_XP { + pub ID: TDIObjectID, + pub Context: [u32; 4], +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::marker::Copy for TCP_REQUEST_QUERY_INFORMATION_EX32_XP {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::clone::Clone for TCP_REQUEST_QUERY_INFORMATION_EX32_XP { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +pub struct TCP_REQUEST_QUERY_INFORMATION_EX_W2K { + pub ID: TDIObjectID, + pub Context: [u8; 16], +} +impl ::core::marker::Copy for TCP_REQUEST_QUERY_INFORMATION_EX_W2K {} +impl ::core::clone::Clone for TCP_REQUEST_QUERY_INFORMATION_EX_W2K { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +pub struct TCP_REQUEST_QUERY_INFORMATION_EX_XP { + pub ID: TDIObjectID, + pub Context: [usize; 4], +} +impl ::core::marker::Copy for TCP_REQUEST_QUERY_INFORMATION_EX_XP {} +impl ::core::clone::Clone for TCP_REQUEST_QUERY_INFORMATION_EX_XP { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +pub struct TCP_REQUEST_SET_INFORMATION_EX { + pub ID: TDIObjectID, + pub BufferSize: u32, + pub Buffer: [u8; 1], +} +impl ::core::marker::Copy for TCP_REQUEST_SET_INFORMATION_EX {} +impl ::core::clone::Clone for TCP_REQUEST_SET_INFORMATION_EX { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] pub struct TDIEntityID { pub tei_entity: TDIENTITY_ENTITY_TYPE, pub tei_instance: u32, @@ -3184,58 +3233,6 @@ impl ::core::clone::Clone for WLDP_HOST_INFORMATION { pub struct _D3DHAL_CALLBACKS(pub u8); #[repr(C)] pub struct _D3DHAL_GLOBALDRIVERDATA(pub u8); -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub struct tcp_request_query_information_ex32_xp { - pub ID: TDIObjectID, - pub Context: [u32; 4], -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::marker::Copy for tcp_request_query_information_ex32_xp {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::clone::Clone for tcp_request_query_information_ex32_xp { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -pub struct tcp_request_query_information_ex_w2k { - pub ID: TDIObjectID, - pub Context: [u8; 16], -} -impl ::core::marker::Copy for tcp_request_query_information_ex_w2k {} -impl ::core::clone::Clone for tcp_request_query_information_ex_w2k { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -pub struct tcp_request_query_information_ex_xp { - pub ID: TDIObjectID, - pub Context: [usize; 2], -} -impl ::core::marker::Copy for tcp_request_query_information_ex_xp {} -impl ::core::clone::Clone for tcp_request_query_information_ex_xp { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -pub struct tcp_request_set_information_ex { - pub ID: TDIObjectID, - pub BufferSize: u32, - pub Buffer: [u8; 1], -} -impl ::core::marker::Copy for tcp_request_set_information_ex {} -impl ::core::clone::Clone for tcp_request_set_information_ex { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] pub type APPLICATION_RECOVERY_CALLBACK = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] diff --git a/crates/libs/sys/src/Windows/Win32/System/Wmi/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Wmi/mod.rs index 088b3d321d..e8d5674e7e 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Wmi/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Wmi/mod.rs @@ -1171,9 +1171,21 @@ pub const WBEM_MAX_OBJECT_NESTING: WBEM_LIMITS = 64i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] pub const WBEM_MAX_USER_PROPERTIES: WBEM_LIMITS = 1024i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub type WBEM_LOCKING = i32; +pub type WBEM_LOCKING_FLAG_TYPE = i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WBEM_FLAG_ALLOW_READ: WBEM_LOCKING = 1i32; +pub const WBEM_FLAG_ALLOW_READ: WBEM_LOCKING_FLAG_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] +pub type WBEM_LOGIN_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] +pub const WBEM_FLAG_INPROC_LOGIN: WBEM_LOGIN_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] +pub const WBEM_FLAG_LOCAL_LOGIN: WBEM_LOGIN_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] +pub const WBEM_FLAG_REMOTE_LOGIN: WBEM_LOGIN_TYPE = 2i32; +#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] +pub const WBEM_AUTHENTICATION_METHOD_MASK: WBEM_LOGIN_TYPE = 15i32; +#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] +pub const WBEM_FLAG_USE_MULTIPLE_CHALLENGES: WBEM_LOGIN_TYPE = 16i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] pub type WBEM_PATH_CREATE_FLAG = i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] @@ -1433,35 +1445,35 @@ pub const WMIQ_LF40_BETWEEN: WMIQ_LANGUAGE_FEATURES = 40i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] pub const WMIQ_LF_LAST: WMIQ_LANGUAGE_FEATURES = 40i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub type WMIQ_RPNQ_FEATURE = i32; +pub type WMIQ_RPNF_FEATURE = i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_WHERE_CLAUSE_PRESENT: WMIQ_RPNQ_FEATURE = 1i32; +pub const WMIQ_RPNF_WHERE_CLAUSE_PRESENT: WMIQ_RPNF_FEATURE = 1i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_QUERY_IS_CONJUNCTIVE: WMIQ_RPNQ_FEATURE = 2i32; +pub const WMIQ_RPNF_QUERY_IS_CONJUNCTIVE: WMIQ_RPNF_FEATURE = 2i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_QUERY_IS_DISJUNCTIVE: WMIQ_RPNQ_FEATURE = 4i32; +pub const WMIQ_RPNF_QUERY_IS_DISJUNCTIVE: WMIQ_RPNF_FEATURE = 4i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_PROJECTION: WMIQ_RPNQ_FEATURE = 8i32; +pub const WMIQ_RPNF_PROJECTION: WMIQ_RPNF_FEATURE = 8i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_FEATURE_SELECT_STAR: WMIQ_RPNQ_FEATURE = 16i32; +pub const WMIQ_RPNF_FEATURE_SELECT_STAR: WMIQ_RPNF_FEATURE = 16i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_EQUALITY_TESTS_ONLY: WMIQ_RPNQ_FEATURE = 32i32; +pub const WMIQ_RPNF_EQUALITY_TESTS_ONLY: WMIQ_RPNF_FEATURE = 32i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_COUNT_STAR: WMIQ_RPNQ_FEATURE = 64i32; +pub const WMIQ_RPNF_COUNT_STAR: WMIQ_RPNF_FEATURE = 64i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_QUALIFIED_NAMES_USED: WMIQ_RPNQ_FEATURE = 128i32; +pub const WMIQ_RPNF_QUALIFIED_NAMES_USED: WMIQ_RPNF_FEATURE = 128i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_SYSPROP_CLASS_USED: WMIQ_RPNQ_FEATURE = 256i32; +pub const WMIQ_RPNF_SYSPROP_CLASS_USED: WMIQ_RPNF_FEATURE = 256i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_PROP_TO_PROP_TESTS: WMIQ_RPNQ_FEATURE = 512i32; +pub const WMIQ_RPNF_PROP_TO_PROP_TESTS: WMIQ_RPNF_FEATURE = 512i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_ORDER_BY: WMIQ_RPNQ_FEATURE = 1024i32; +pub const WMIQ_RPNF_ORDER_BY: WMIQ_RPNF_FEATURE = 1024i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_ISA_USED: WMIQ_RPNQ_FEATURE = 2048i32; +pub const WMIQ_RPNF_ISA_USED: WMIQ_RPNF_FEATURE = 2048i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_GROUP_BY_HAVING: WMIQ_RPNQ_FEATURE = 4096i32; +pub const WMIQ_RPNF_GROUP_BY_HAVING: WMIQ_RPNF_FEATURE = 4096i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_ARRAY_ACCESS_USED: WMIQ_RPNQ_FEATURE = 8192i32; +pub const WMIQ_RPNF_ARRAY_ACCESS_USED: WMIQ_RPNF_FEATURE = 8192i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] pub type WMIQ_RPN_TOKEN_FLAGS = i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] @@ -2024,18 +2036,6 @@ pub const wbemTextFlagNoFlavors: WbemTextFlagEnum = 1i32; pub type WbemTimeout = i32; #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] pub const wbemTimeoutInfinite: WbemTimeout = -1i32; -#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub type tag_WBEM_LOGIN_TYPE = i32; -#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WBEM_FLAG_INPROC_LOGIN: tag_WBEM_LOGIN_TYPE = 0i32; -#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WBEM_FLAG_LOCAL_LOGIN: tag_WBEM_LOGIN_TYPE = 1i32; -#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WBEM_FLAG_REMOTE_LOGIN: tag_WBEM_LOGIN_TYPE = 2i32; -#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WBEM_AUTHENTICATION_METHOD_MASK: tag_WBEM_LOGIN_TYPE = 15i32; -#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WBEM_FLAG_USE_MULTIPLE_CHALLENGES: tag_WBEM_LOGIN_TYPE = 16i32; #[repr(C)] #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] pub struct MI_Application { diff --git a/crates/libs/sys/src/Windows/Win32/UI/Controls/RichEdit/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/Controls/RichEdit/mod.rs index eac153e62e..5d464e51b6 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Controls/RichEdit/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Controls/RichEdit/mod.rs @@ -653,28 +653,6 @@ pub const PFM_TABLEROWDELIMITER: u32 = 268435456u32; #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub const PFM_TEXTWRAPPINGBREAK: u32 = 536870912u32; #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const PFN_ARABIC: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const PFN_BULLET: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const PFN_LCLETTER: u32 = 3u32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const PFN_LCROMAN: u32 = 5u32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const PFN_UCLETTER: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const PFN_UCROMAN: u32 = 6u32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const RECO_COPY: i32 = 2i32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const RECO_CUT: i32 = 3i32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const RECO_DRAG: i32 = 4i32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const RECO_DROP: i32 = 1i32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const RECO_PASTE: i32 = 0i32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub const REO_NULL: i32 = 0i32; #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub const REO_READWRITEMASK: i32 = 2047i32; @@ -1303,6 +1281,20 @@ pub const PFM_STARTINDENT: PARAFORMAT_MASK = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub const PFM_TABSTOPS: PARAFORMAT_MASK = 16u32; #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub type PARAFORMAT_NUMBERING = u16; +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub const PFN_BULLET: PARAFORMAT_NUMBERING = 1u16; +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub const PFN_ARABIC: PARAFORMAT_NUMBERING = 2u16; +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub const PFN_LCLETTER: PARAFORMAT_NUMBERING = 3u16; +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub const PFN_UCLETTER: PARAFORMAT_NUMBERING = 4u16; +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub const PFN_LCROMAN: PARAFORMAT_NUMBERING = 5u16; +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub const PFN_UCROMAN: PARAFORMAT_NUMBERING = 6u16; +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub type PARAFORMAT_NUMBERING_STYLE = u16; #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub const PFNS_PAREN: PARAFORMAT_NUMBERING_STYLE = 0u16; @@ -2689,8 +2681,8 @@ impl ::core::clone::Clone for CHANGENOTIFY { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct CHARFORMAT2A { pub Base: CHARFORMATA, pub wWeight: u16, @@ -2705,32 +2697,32 @@ pub struct CHARFORMAT2A { pub bRevAuthor: u8, pub bUnderlineColor: u8, } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for CHARFORMAT2A {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for CHARFORMAT2A { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub union CHARFORMAT2A_0 { pub dwReserved: u32, pub dwCookie: u32, } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for CHARFORMAT2A_0 {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for CHARFORMAT2A_0 { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct CHARFORMAT2W { pub Base: CHARFORMATW, pub wWeight: u16, @@ -2745,32 +2737,32 @@ pub struct CHARFORMAT2W { pub bRevAuthor: u8, pub bUnderlineColor: u8, } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for CHARFORMAT2W {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for CHARFORMAT2W { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub union CHARFORMAT2W_0 { pub dwReserved: u32, pub dwCookie: u32, } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for CHARFORMAT2W_0 {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for CHARFORMAT2W_0 { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct CHARFORMATA { pub cbSize: u32, pub dwMask: CFM_MASK, @@ -2778,21 +2770,21 @@ pub struct CHARFORMATA { pub yHeight: i32, pub yOffset: i32, pub crTextColor: super::super::super::Foundation::COLORREF, - pub bCharSet: u8, - pub bPitchAndFamily: u8, + pub bCharSet: super::super::super::Graphics::Gdi::EMBED_FONT_CHARSET, + pub bPitchAndFamily: super::super::super::Graphics::Gdi::FONT_PITCH_AND_FAMILY, pub szFaceName: [super::super::super::Foundation::CHAR; 32], } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for CHARFORMATA {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for CHARFORMATA { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct CHARFORMATW { pub cbSize: u32, pub dwMask: CFM_MASK, @@ -2800,13 +2792,13 @@ pub struct CHARFORMATW { pub yHeight: i32, pub yOffset: i32, pub crTextColor: super::super::super::Foundation::COLORREF, - pub bCharSet: u8, - pub bPitchAndFamily: u8, + pub bCharSet: super::super::super::Graphics::Gdi::EMBED_FONT_CHARSET, + pub bPitchAndFamily: super::super::super::Graphics::Gdi::FONT_PITCH_AND_FAMILY, pub szFaceName: [u16; 32], } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for CHARFORMATW {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for CHARFORMATW { fn clone(&self) -> Self { *self @@ -3113,6 +3105,21 @@ impl ::core::clone::Clone for GETTEXTLENGTHEX { } } #[repr(C, packed(4))] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct GROUPTYPINGCHANGE { + pub nmhdr: super::NMHDR, + pub fGroupTyping: super::super::super::Foundation::BOOL, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for GROUPTYPINGCHANGE {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for GROUPTYPINGCHANGE { + fn clone(&self) -> Self { + *self + } +} +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub struct HYPHENATEINFO { pub cbSize: i16, @@ -3127,6 +3134,19 @@ impl ::core::clone::Clone for HYPHENATEINFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub struct HYPHRESULT { + pub khyph: KHYPH, + pub ichHyph: i32, + pub chHyph: u16, +} +impl ::core::marker::Copy for HYPHRESULT {} +impl ::core::clone::Clone for HYPHRESULT { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub struct IMECOMPTEXT { pub cb: i32, pub flags: IMECOMPTEXT_FLAGS, @@ -3175,7 +3195,7 @@ impl ::core::clone::Clone for OBJECTPOSITIONS { pub struct PARAFORMAT { pub cbSize: u32, pub dwMask: PARAFORMAT_MASK, - pub wNumbering: u16, + pub wNumbering: PARAFORMAT_NUMBERING, pub Anonymous: PARAFORMAT_0, pub dxStartIndent: i32, pub dxRightIndent: i32, @@ -3410,34 +3430,6 @@ impl ::core::clone::Clone for TEXTRANGEW { *self } } -#[repr(C, packed(4))] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct _grouptypingchange { - pub nmhdr: super::NMHDR, - pub fGroupTyping: super::super::super::Foundation::BOOL, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _grouptypingchange {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _grouptypingchange { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub struct hyphresult { - pub khyph: KHYPH, - pub ichHyph: i32, - pub chHyph: u16, -} -impl ::core::marker::Copy for hyphresult {} -impl ::core::clone::Clone for hyphresult { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub type AutoCorrectProc = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] diff --git a/crates/libs/sys/src/Windows/Win32/UI/Controls/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/Controls/mod.rs index c1c1082406..8ba5dd9dd0 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Controls/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Controls/mod.rs @@ -487,7 +487,7 @@ extern "system" { pub fn ImageList_Write(himl: HIMAGELIST, pstm: super::super::System::Com::IStream) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_UI_Controls\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub fn ImageList_WriteEx(himl: HIMAGELIST, dwflags: u32, pstm: super::super::System::Com::IStream) -> ::windows_sys::core::HRESULT; + pub fn ImageList_WriteEx(himl: HIMAGELIST, dwflags: IMAGE_LIST_WRITE_STREAM_FLAGS, pstm: super::super::System::Com::IStream) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub fn InitCommonControls(); #[doc = "*Required features: `\"Win32_UI_Controls\"`, `\"Win32_Foundation\"`*"] @@ -839,32 +839,6 @@ pub const CDDS_ITEM: u32 = 65536u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const CDDS_POSTERASE: u32 = 4u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_CHECKED: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_DEFAULT: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_DISABLED: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_DROPHILITED: u32 = 4096u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_FOCUS: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_GRAYED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_HOT: u32 = 64u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_INDETERMINATE: u32 = 256u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_MARKED: u32 = 128u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_NEARHOT: u32 = 1024u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_OTHERSIDEHOT: u32 = 2048u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_SELECTED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_SHOWKEYBOARDCUES: u32 = 512u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const CDRF_DODEFAULT: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const CDRF_DOERASE: u32 = 8u32; @@ -1169,56 +1143,10 @@ pub const GDTR_MIN: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const GDT_ERROR: i32 = -1i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const GDT_NONE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const GDT_VALID: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const GMR_DAYSTATE: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const GMR_VISIBLE: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDFT_HASNOVALUE: u32 = 32768u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDFT_ISDATE: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDFT_ISNUMBER: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDFT_ISSTRING: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_BITMAP: u32 = 8192u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_BITMAP_ON_RIGHT: u32 = 4096u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_CENTER: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_CHECKBOX: u32 = 64u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_CHECKED: u32 = 128u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_FIXEDWIDTH: u32 = 256u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_IMAGE: u32 = 2048u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_JUSTIFYMASK: u32 = 3u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_LEFT: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_OWNERDRAW: u32 = 32768u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_RIGHT: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_RTLREADING: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_SORTDOWN: u32 = 512u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_SORTUP: u32 = 1024u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_SPLITBUTTON: u32 = 16777216u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_STRING: u32 = 16384u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDIS_FOCUSED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HDM_CLEARFILTER: u32 = 4632u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HDM_CREATEDRAGIMAGE: u32 = 4624u32; @@ -1311,32 +1239,6 @@ pub const HDS_NOSIZING: u32 = 2048u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HDS_OVERFLOW: u32 = 4096u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ABOVE: u32 = 256u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_BELOW: u32 = 512u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_NOWHERE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONDIVIDER: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONDIVOPEN: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONDROPDOWN: u32 = 8192u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONFILTER: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONFILTERBUTTON: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONHEADER: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONITEMSTATEICON: u32 = 4096u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONOVERFLOW: u32 = 16384u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_TOLEFT: u32 = 2048u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_TORIGHT: u32 = 1024u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HIST_ADDTOFAVORITES: u32 = 3u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HIST_BACK: u32 = 0u32; @@ -1469,10 +1371,6 @@ pub const ILGT_ASYNC: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const ILGT_NORMAL: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const ILP_DOWNLEVEL: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const ILP_NORMAL: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const ILR_DEFAULT: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const ILR_HORIZONTAL_CENTER: u32 = 1u32; @@ -1524,24 +1422,6 @@ pub const I_IMAGENONE: i32 = -2i32; pub const I_INDENTCALLBACK: i32 = -1i32; pub const ImageList: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 2085055394, data2: 689, data3: 18676, data4: [128, 72, 178, 70, 25, 221, 192, 88] }; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIF_ITEMID: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIF_ITEMINDEX: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIF_STATE: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIF_URL: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIS_DEFAULTCOLORS: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIS_ENABLED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIS_FOCUSED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIS_HOTTRACK: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIS_VISITED: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LM_GETIDEALHEIGHT: u32 = 1793u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LM_GETIDEALSIZE: u32 = 1793u32; @@ -1560,48 +1440,14 @@ pub const LVA_DEFAULT: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVA_SNAPTOGRID: u32 = 5u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_FLAG_ALPHABLEND: u32 = 536870912u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_FLAG_TILEOFFSET: u32 = 256u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_SOURCE_HBITMAP: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_SOURCE_MASK: u32 = 3u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_SOURCE_NONE: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_SOURCE_URL: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_STYLE_MASK: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_STYLE_NORMAL: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_STYLE_TILE: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_TYPE_WATERMARK: u32 = 268435456u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVCDRF_NOGROUPFRAME: u32 = 131072u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVCDRF_NOSELECT: u32 = 65536u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVCFMT_FILL: u32 = 2097152u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVCFMT_LINE_BREAK: u32 = 1048576u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVCFMT_NO_TITLE: u32 = 8388608u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVCFMT_WRAP: u32 = 4194304u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVFF_ITEMCOUNT: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVFIS_FOCUSED: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGA_FOOTER_CENTER: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGA_FOOTER_LEFT: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGA_FOOTER_RIGHT: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVGF_ALIGN: u32 = 8u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVGF_DESCRIPTIONBOTTOM: u32 = 2048u32; @@ -1632,8 +1478,6 @@ pub const LVGGR_LABEL: u32 = 2u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVGGR_SUBSETLINK: u32 = 3u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGIT_UNFOLDED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVGMF_BORDERCOLOR: u32 = 2u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVGMF_BORDERSIZE: u32 = 1u32; @@ -1642,46 +1486,6 @@ pub const LVGMF_NONE: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVGMF_TEXTCOLOR: u32 = 4u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_COLLAPSED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_COLLAPSIBLE: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_FOCUSED: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_HIDDEN: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_NOHEADER: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_NORMAL: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_SELECTED: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_SUBSETED: u32 = 64u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_SUBSETLINKFOCUSED: u32 = 128u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_COLFMT: u32 = 65536u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_COLUMNS: u32 = 512u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_DI_SETITEM: u32 = 4096u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_GROUPID: u32 = 256u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_IMAGE: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_INDENT: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_NORECOMPUTE: u32 = 2048u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_PARAM: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_STATE: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_TEXT: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIM_AFTER: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVIR_BOUNDS: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVIR_ICON: u32 = 1u32; @@ -1690,22 +1494,6 @@ pub const LVIR_LABEL: u32 = 2u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVIR_SELECTBOUNDS: u32 = 3u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_ACTIVATING: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_CUT: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_DROPHILITED: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_FOCUSED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_GLOW: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_OVERLAYMASK: u32 = 3840u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_SELECTED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_STATEIMAGEMASK: u32 = 61440u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVKF_ALT: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVKF_CONTROL: u32 = 2u32; @@ -2224,34 +2012,6 @@ pub const MAX_THEMECOLOR: u32 = 64u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const MAX_THEMESIZE: u32 = 64u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_CALENDAR: u32 = 131072u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_CALENDARBK: u32 = 131072u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_CALENDARCONTROL: u32 = 1048576u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_NEXT: u32 = 16777216u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_NOWHERE: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_PREV: u32 = 33554432u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_TITLE: u32 = 65536u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_TITLEBK: u32 = 65536u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_TODAYLINK: u32 = 196608u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCMV_CENTURY: u32 = 3u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCMV_DECADE: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCMV_MAX: u32 = 3u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCMV_MONTH: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCMV_YEAR: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const MCM_FIRST: u32 = 4096u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const MCM_GETCALENDARBORDER: u32 = 4127u32; @@ -3484,10 +3244,6 @@ pub const TB_THUMBTRACK: u32 = 5u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TB_TOP: u32 = 6u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TCIS_BUTTONPRESSED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TCIS_HIGHLIGHTED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TCM_ADJUSTRECT: u32 = 4904u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TCM_DELETEALLITEMS: u32 = 4873u32; @@ -3642,8 +3398,6 @@ pub const TTDT_INITIAL: u32 = 3u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TTDT_RESHOW: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_DI_SETITEM: u32 = 32768u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TTM_ACTIVATE: u32 = 1025u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TTM_ADDTOOL: u32 = 1074u32; @@ -3772,22 +3526,6 @@ pub const TTS_USEVISUALSTYLE: u32 = 256u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TVCDRF_NOIMAGES: u32 = 65536u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVC_BYKEYBOARD: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVC_BYMOUSE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVC_UNKNOWN: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVE_COLLAPSE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVE_COLLAPSERESET: u32 = 32768u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVE_EXPAND: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVE_EXPANDPARTIAL: u32 = 16384u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVE_TOGGLE: u32 = 3u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TVGN_CARET: u32 = 9u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TVGN_CHILD: u32 = 4u32; @@ -3812,32 +3550,6 @@ pub const TVGN_PREVIOUSVISIBLE: u32 = 7u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TVGN_ROOT: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_BOLD: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_CUT: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_DROPHILITED: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_EXPANDED: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_EXPANDEDONCE: u32 = 64u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_EXPANDPARTIAL: u32 = 128u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_EX_ALL: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_EX_DISABLED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_EX_FLAT: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_OVERLAYMASK: u32 = 3840u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_SELECTED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_STATEIMAGEMASK: u32 = 61440u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_USERMASK: u32 = 61440u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TVI_FIRST: HTREEITEM = -65535i32 as _; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TVI_LAST: HTREEITEM = -65534i32 as _; @@ -6000,6 +5712,54 @@ pub const HBG_DETAILS: HEADERSTYLESTATES = 1i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HBG_ICON: HEADERSTYLESTATES = 2i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type HEADER_CONTROL_FORMAT_FLAGS = i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_LEFT: HEADER_CONTROL_FORMAT_FLAGS = 0i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_RIGHT: HEADER_CONTROL_FORMAT_FLAGS = 1i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_CENTER: HEADER_CONTROL_FORMAT_FLAGS = 2i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_JUSTIFYMASK: HEADER_CONTROL_FORMAT_FLAGS = 3i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_RTLREADING: HEADER_CONTROL_FORMAT_FLAGS = 4i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_BITMAP: HEADER_CONTROL_FORMAT_FLAGS = 8192i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_STRING: HEADER_CONTROL_FORMAT_FLAGS = 16384i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_OWNERDRAW: HEADER_CONTROL_FORMAT_FLAGS = 32768i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_IMAGE: HEADER_CONTROL_FORMAT_FLAGS = 2048i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_BITMAP_ON_RIGHT: HEADER_CONTROL_FORMAT_FLAGS = 4096i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_SORTUP: HEADER_CONTROL_FORMAT_FLAGS = 1024i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_SORTDOWN: HEADER_CONTROL_FORMAT_FLAGS = 512i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_CHECKBOX: HEADER_CONTROL_FORMAT_FLAGS = 64i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_CHECKED: HEADER_CONTROL_FORMAT_FLAGS = 128i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_FIXEDWIDTH: HEADER_CONTROL_FORMAT_FLAGS = 256i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_SPLITBUTTON: HEADER_CONTROL_FORMAT_FLAGS = 16777216i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type HEADER_CONTROL_FORMAT_STATE = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDIS_FOCUSED: HEADER_CONTROL_FORMAT_STATE = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type HEADER_CONTROL_FORMAT_TYPE = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDFT_ISSTRING: HEADER_CONTROL_FORMAT_TYPE = 0u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDFT_ISNUMBER: HEADER_CONTROL_FORMAT_TYPE = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDFT_ISDATE: HEADER_CONTROL_FORMAT_TYPE = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDFT_HASNOVALUE: HEADER_CONTROL_FORMAT_TYPE = 32768u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub type HEADER_CONTROL_NOTIFICATION_BUTTON = u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HEADER_CONTROL_NOTIFICATION_BUTTON_LEFT: HEADER_CONTROL_NOTIFICATION_BUTTON = 0u32; @@ -6008,6 +5768,34 @@ pub const HEADER_CONTROL_NOTIFICATION_BUTTON_RIGHT: HEADER_CONTROL_NOTIFICATION_ #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HEADER_CONTROL_NOTIFICATION_BUTTON_MIDDLE: HEADER_CONTROL_NOTIFICATION_BUTTON = 2u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type HEADER_HITTEST_INFO_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_NOWHERE: HEADER_HITTEST_INFO_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ONHEADER: HEADER_HITTEST_INFO_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ONDIVIDER: HEADER_HITTEST_INFO_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ONDIVOPEN: HEADER_HITTEST_INFO_FLAGS = 8u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ONFILTER: HEADER_HITTEST_INFO_FLAGS = 16u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ONFILTERBUTTON: HEADER_HITTEST_INFO_FLAGS = 32u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ABOVE: HEADER_HITTEST_INFO_FLAGS = 256u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_BELOW: HEADER_HITTEST_INFO_FLAGS = 512u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_TORIGHT: HEADER_HITTEST_INFO_FLAGS = 1024u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_TOLEFT: HEADER_HITTEST_INFO_FLAGS = 2048u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ONITEMSTATEICON: HEADER_HITTEST_INFO_FLAGS = 4096u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ONDROPDOWN: HEADER_HITTEST_INFO_FLAGS = 8192u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ONOVERFLOW: HEADER_HITTEST_INFO_FLAGS = 16384u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub type HELPBUTTONSTATES = i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HBS_NORMAL: HELPBUTTONSTATES = 1i32; @@ -6166,6 +5954,12 @@ pub const ILIF_ALPHA: IMAGE_LIST_ITEM_FLAGS = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const ILIF_LOWQUALITY: IMAGE_LIST_ITEM_FLAGS = 2u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type IMAGE_LIST_WRITE_STREAM_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ILP_NORMAL: IMAGE_LIST_WRITE_STREAM_FLAGS = 0u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ILP_DOWNLEVEL: IMAGE_LIST_WRITE_STREAM_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub type INITCOMMONCONTROLSEX_ICC = u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const ICC_ANIMATE_CLASS: INITCOMMONCONTROLSEX_ICC = 128u32; @@ -6286,6 +6080,140 @@ pub const LVP_COLLAPSEBUTTON: LISTVIEWPARTS = 9i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVP_COLUMNDETAIL: LISTVIEWPARTS = 10i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type LIST_ITEM_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIF_ITEMINDEX: LIST_ITEM_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIF_STATE: LIST_ITEM_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIF_ITEMID: LIST_ITEM_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIF_URL: LIST_ITEM_FLAGS = 8u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type LIST_ITEM_STATE_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIS_FOCUSED: LIST_ITEM_STATE_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIS_ENABLED: LIST_ITEM_STATE_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIS_VISITED: LIST_ITEM_STATE_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIS_HOTTRACK: LIST_ITEM_STATE_FLAGS = 8u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIS_DEFAULTCOLORS: LIST_ITEM_STATE_FLAGS = 16u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type LIST_VIEW_BACKGROUND_IMAGE_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_SOURCE_NONE: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = 0u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_SOURCE_HBITMAP: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_SOURCE_URL: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_SOURCE_MASK: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = 3u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_STYLE_NORMAL: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = 0u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_STYLE_TILE: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = 16u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_STYLE_MASK: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = 16u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_FLAG_TILEOFFSET: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = 256u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_TYPE_WATERMARK: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = 268435456u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_FLAG_ALPHABLEND: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = 536870912u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type LIST_VIEW_GROUP_ALIGN_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGA_HEADER_LEFT: LIST_VIEW_GROUP_ALIGN_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGA_HEADER_CENTER: LIST_VIEW_GROUP_ALIGN_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGA_HEADER_RIGHT: LIST_VIEW_GROUP_ALIGN_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGA_FOOTER_LEFT: LIST_VIEW_GROUP_ALIGN_FLAGS = 8u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGA_FOOTER_CENTER: LIST_VIEW_GROUP_ALIGN_FLAGS = 16u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGA_FOOTER_RIGHT: LIST_VIEW_GROUP_ALIGN_FLAGS = 32u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type LIST_VIEW_GROUP_STATE_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_NORMAL: LIST_VIEW_GROUP_STATE_FLAGS = 0u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_COLLAPSED: LIST_VIEW_GROUP_STATE_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_HIDDEN: LIST_VIEW_GROUP_STATE_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_NOHEADER: LIST_VIEW_GROUP_STATE_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_COLLAPSIBLE: LIST_VIEW_GROUP_STATE_FLAGS = 8u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_FOCUSED: LIST_VIEW_GROUP_STATE_FLAGS = 16u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_SELECTED: LIST_VIEW_GROUP_STATE_FLAGS = 32u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_SUBSETED: LIST_VIEW_GROUP_STATE_FLAGS = 64u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_SUBSETLINKFOCUSED: LIST_VIEW_GROUP_STATE_FLAGS = 128u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type LIST_VIEW_INSERT_MARK_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIM_AFTER: LIST_VIEW_INSERT_MARK_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS = i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVCFMT_LINE_BREAK: LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS = 1048576i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVCFMT_FILL: LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS = 2097152i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVCFMT_WRAP: LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS = 4194304i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVCFMT_NO_TITLE: LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS = 8388608i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVCFMT_TILE_PLACEMENTMASK: LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS = 3145728i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type LIST_VIEW_ITEM_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_TEXT: LIST_VIEW_ITEM_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_IMAGE: LIST_VIEW_ITEM_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_PARAM: LIST_VIEW_ITEM_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_STATE: LIST_VIEW_ITEM_FLAGS = 8u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_INDENT: LIST_VIEW_ITEM_FLAGS = 16u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_NORECOMPUTE: LIST_VIEW_ITEM_FLAGS = 2048u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_GROUPID: LIST_VIEW_ITEM_FLAGS = 256u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_COLUMNS: LIST_VIEW_ITEM_FLAGS = 512u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_COLFMT: LIST_VIEW_ITEM_FLAGS = 65536u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_DI_SETITEM: LIST_VIEW_ITEM_FLAGS = 4096u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type LIST_VIEW_ITEM_STATE_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIS_FOCUSED: LIST_VIEW_ITEM_STATE_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIS_SELECTED: LIST_VIEW_ITEM_STATE_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIS_CUT: LIST_VIEW_ITEM_STATE_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIS_DROPHILITED: LIST_VIEW_ITEM_STATE_FLAGS = 8u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIS_GLOW: LIST_VIEW_ITEM_STATE_FLAGS = 16u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIS_ACTIVATING: LIST_VIEW_ITEM_STATE_FLAGS = 32u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIS_OVERLAYMASK: LIST_VIEW_ITEM_STATE_FLAGS = 3840u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIS_STATEIMAGEMASK: LIST_VIEW_ITEM_STATE_FLAGS = 61440u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub type LOGOFFBUTTONSSTATES = i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const SPLS_NORMAL: LOGOFFBUTTONSSTATES = 1i32; @@ -6466,6 +6394,48 @@ pub const MCGIP_CALENDARROW: MCGRIDINFO_PART = 7u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const MCGIP_CALENDARCELL: MCGRIDINFO_PART = 8u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type MCHITTESTINFO_HIT_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TITLE: MCHITTESTINFO_HIT_FLAGS = 65536u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDAR: MCHITTESTINFO_HIT_FLAGS = 131072u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TODAYLINK: MCHITTESTINFO_HIT_FLAGS = 196608u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARCONTROL: MCHITTESTINFO_HIT_FLAGS = 1048576u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_NEXT: MCHITTESTINFO_HIT_FLAGS = 16777216u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_PREV: MCHITTESTINFO_HIT_FLAGS = 33554432u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_NOWHERE: MCHITTESTINFO_HIT_FLAGS = 0u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TITLEBK: MCHITTESTINFO_HIT_FLAGS = 65536u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TITLEMONTH: MCHITTESTINFO_HIT_FLAGS = 65537u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TITLEYEAR: MCHITTESTINFO_HIT_FLAGS = 65538u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TITLEBTNNEXT: MCHITTESTINFO_HIT_FLAGS = 16842755u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TITLEBTNPREV: MCHITTESTINFO_HIT_FLAGS = 33619971u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARBK: MCHITTESTINFO_HIT_FLAGS = 131072u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARDATE: MCHITTESTINFO_HIT_FLAGS = 131073u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARDATENEXT: MCHITTESTINFO_HIT_FLAGS = 16908289u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARDATEPREV: MCHITTESTINFO_HIT_FLAGS = 33685505u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARDAY: MCHITTESTINFO_HIT_FLAGS = 131074u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARWEEKNUM: MCHITTESTINFO_HIT_FLAGS = 131075u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARDATEMIN: MCHITTESTINFO_HIT_FLAGS = 131076u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARDATEMAX: MCHITTESTINFO_HIT_FLAGS = 131077u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub type MDICLOSEBUTTONSTATES = i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const MDCL_NORMAL: MDICLOSEBUTTONSTATES = 1i32; @@ -6600,6 +6570,18 @@ pub const MC_NAVNEXT: MONTHCALPARTS = 10i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const MC_NAVPREV: MONTHCALPARTS = 11i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type MONTH_CALDENDAR_MESSAGES_VIEW = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCMV_MONTH: MONTH_CALDENDAR_MESSAGES_VIEW = 0u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCMV_YEAR: MONTH_CALDENDAR_MESSAGES_VIEW = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCMV_DECADE: MONTH_CALDENDAR_MESSAGES_VIEW = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCMV_CENTURY: MONTH_CALDENDAR_MESSAGES_VIEW = 3u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCMV_MAX: MONTH_CALDENDAR_MESSAGES_VIEW = 3u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub type MOREPROGRAMSARROWBACKSTATES = i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const SPSB_NORMAL: MOREPROGRAMSARROWBACKSTATES = 1i32; @@ -6710,13 +6692,39 @@ pub const CDDS_ITEMPREPAINT: NMCUSTOMDRAW_DRAW_STAGE = 65537u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const CDDS_SUBITEM: NMCUSTOMDRAW_DRAW_STAGE = 131072u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub type NMLVCUSTOMDRAW_ALIGN = u32; +pub type NMCUSTOMDRAW_DRAW_STATE_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_SELECTED: NMCUSTOMDRAW_DRAW_STATE_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_GRAYED: NMCUSTOMDRAW_DRAW_STATE_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_DISABLED: NMCUSTOMDRAW_DRAW_STATE_FLAGS = 4u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGA_HEADER_CENTER: NMLVCUSTOMDRAW_ALIGN = 2u32; +pub const CDIS_CHECKED: NMCUSTOMDRAW_DRAW_STATE_FLAGS = 8u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGA_HEADER_LEFT: NMLVCUSTOMDRAW_ALIGN = 1u32; +pub const CDIS_FOCUS: NMCUSTOMDRAW_DRAW_STATE_FLAGS = 16u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGA_HEADER_RIGHT: NMLVCUSTOMDRAW_ALIGN = 4u32; +pub const CDIS_DEFAULT: NMCUSTOMDRAW_DRAW_STATE_FLAGS = 32u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_HOT: NMCUSTOMDRAW_DRAW_STATE_FLAGS = 64u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_MARKED: NMCUSTOMDRAW_DRAW_STATE_FLAGS = 128u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_INDETERMINATE: NMCUSTOMDRAW_DRAW_STATE_FLAGS = 256u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_SHOWKEYBOARDCUES: NMCUSTOMDRAW_DRAW_STATE_FLAGS = 512u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_NEARHOT: NMCUSTOMDRAW_DRAW_STATE_FLAGS = 1024u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_OTHERSIDEHOT: NMCUSTOMDRAW_DRAW_STATE_FLAGS = 2048u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_DROPHILITED: NMCUSTOMDRAW_DRAW_STATE_FLAGS = 4096u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type NMDATETIMECHANGE_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const GDT_NONE: NMDATETIMECHANGE_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const GDT_VALID: NMDATETIMECHANGE_FLAGS = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub type NMLVCUSTOMDRAW_ITEM_TYPE = u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] @@ -6730,6 +6738,12 @@ pub type NMLVEMPTYMARKUP_FLAGS = u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const EMF_CENTERED: NMLVEMPTYMARKUP_FLAGS = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type NMLVGETINFOTIP_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGIT_UNFOLDED: NMLVGETINFOTIP_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGIT_ZERO: NMLVGETINFOTIP_FLAGS = 0u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub type NMPGCALCSIZE_FLAGS = u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const PGF_CALCHEIGHT: NMPGCALCSIZE_FLAGS = 2u32; @@ -6794,6 +6808,24 @@ pub const HICF_RESELECT: NMTBHOTITEM_FLAGS = 64u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HICF_TOGGLEDROPDOWN: NMTBHOTITEM_FLAGS = 256u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type NM_TREEVIEW_ACTION = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVE_COLLAPSE: NM_TREEVIEW_ACTION = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVE_EXPAND: NM_TREEVIEW_ACTION = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVE_TOGGLE: NM_TREEVIEW_ACTION = 3u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVE_EXPANDPARTIAL: NM_TREEVIEW_ACTION = 16384u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVE_COLLAPSERESET: NM_TREEVIEW_ACTION = 32768u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVC_UNKNOWN: NM_TREEVIEW_ACTION = 0u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVC_BYMOUSE: NM_TREEVIEW_ACTION = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVC_BYKEYBOARD: NM_TREEVIEW_ACTION = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub type NONESTATES = i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const DDNONE_HIGHLIGHT: NONESTATES = 1i32; @@ -6816,6 +6848,38 @@ pub const EBNGE_HOT: NORMALGROUPEXPANDSTATES = 2i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const EBNGE_PRESSED: NORMALGROUPEXPANDSTATES = 3i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type ODA_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODA_DRAWENTIRE: ODA_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODA_SELECT: ODA_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODA_FOCUS: ODA_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type ODS_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_SELECTED: ODS_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_GRAYED: ODS_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_DISABLED: ODS_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_CHECKED: ODS_FLAGS = 8u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_FOCUS: ODS_FLAGS = 16u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_DEFAULT: ODS_FLAGS = 32u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_COMBOBOXEDIT: ODS_FLAGS = 4096u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_HOTLIGHT: ODS_FLAGS = 64u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_INACTIVE: ODS_FLAGS = 128u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_NOACCEL: ODS_FLAGS = 256u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_NOFOCUSRECT: ODS_FLAGS = 512u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub type OFFSETTYPE = i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const OT_TOPLEFT: OFFSETTYPE = 0i32; @@ -7412,6 +7476,12 @@ pub const CSTB_HOT: TABSTATES = 2i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const CSTB_SELECTED: TABSTATES = 3i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type TAB_CONTROL_ITEM_STATE = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TCIS_BUTTONPRESSED: TAB_CONTROL_ITEM_STATE = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TCIS_HIGHLIGHTED: TAB_CONTROL_ITEM_STATE = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub type TASKBANDPARTS = i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TDP_GROUPCOUNT: TASKBANDPARTS = 1i32; @@ -8412,6 +8482,26 @@ pub const TTP_BALLOONSTEM: TOOLTIPPARTS = 6i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TTP_WRENCH: TOOLTIPPARTS = 7i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type TOOLTIP_FLAGS = u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_IDISHWND: TOOLTIP_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_CENTERTIP: TOOLTIP_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_RTLREADING: TOOLTIP_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_SUBCLASS: TOOLTIP_FLAGS = 16u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_TRACK: TOOLTIP_FLAGS = 32u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_ABSOLUTE: TOOLTIP_FLAGS = 128u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_TRANSPARENT: TOOLTIP_FLAGS = 256u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_PARSELINKS: TOOLTIP_FLAGS = 4096u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_DI_SETITEM: TOOLTIP_FLAGS = 32768u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub type TOPTABITEMBOTHEDGESTATES = i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TTIBES_NORMAL: TOPTABITEMBOTHEDGESTATES = 1i32; @@ -8574,31 +8664,41 @@ pub const TVP_BRANCH: TREEVIEWPARTS = 3i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TVP_HOTGLYPH: TREEVIEWPARTS = 4i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub type TRUESIZESCALINGTYPE = i32; +pub type TREE_VIEW_ITEM_STATE_FLAGS = u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TSST_NONE: TRUESIZESCALINGTYPE = 0i32; +pub const TVIS_SELECTED: TREE_VIEW_ITEM_STATE_FLAGS = 2u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TSST_SIZE: TRUESIZESCALINGTYPE = 1i32; +pub const TVIS_CUT: TREE_VIEW_ITEM_STATE_FLAGS = 4u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TSST_DPI: TRUESIZESCALINGTYPE = 2i32; +pub const TVIS_DROPHILITED: TREE_VIEW_ITEM_STATE_FLAGS = 8u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVIS_BOLD: TREE_VIEW_ITEM_STATE_FLAGS = 16u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub type TTTOOLINFO_FLAGS = u32; +pub const TVIS_EXPANDED: TREE_VIEW_ITEM_STATE_FLAGS = 32u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_ABSOLUTE: TTTOOLINFO_FLAGS = 128u32; +pub const TVIS_EXPANDEDONCE: TREE_VIEW_ITEM_STATE_FLAGS = 64u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_CENTERTIP: TTTOOLINFO_FLAGS = 2u32; +pub const TVIS_EXPANDPARTIAL: TREE_VIEW_ITEM_STATE_FLAGS = 128u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_IDISHWND: TTTOOLINFO_FLAGS = 1u32; +pub const TVIS_OVERLAYMASK: TREE_VIEW_ITEM_STATE_FLAGS = 3840u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_PARSELINKS: TTTOOLINFO_FLAGS = 4096u32; +pub const TVIS_STATEIMAGEMASK: TREE_VIEW_ITEM_STATE_FLAGS = 61440u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_RTLREADING: TTTOOLINFO_FLAGS = 4u32; +pub const TVIS_USERMASK: TREE_VIEW_ITEM_STATE_FLAGS = 61440u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_SUBCLASS: TTTOOLINFO_FLAGS = 16u32; +pub const TVIS_EX_FLAT: TREE_VIEW_ITEM_STATE_FLAGS = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_TRACK: TTTOOLINFO_FLAGS = 32u32; +pub const TVIS_EX_DISABLED: TREE_VIEW_ITEM_STATE_FLAGS = 2u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_TRANSPARENT: TTTOOLINFO_FLAGS = 256u32; +pub const TVIS_EX_ALL: TREE_VIEW_ITEM_STATE_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub type TRUESIZESCALINGTYPE = i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TSST_NONE: TRUESIZESCALINGTYPE = 0i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TSST_SIZE: TRUESIZESCALINGTYPE = 1i32; +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TSST_DPI: TRUESIZESCALINGTYPE = 2i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub type TVHITTESTINFO_FLAGS = u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] @@ -9240,8 +9340,8 @@ pub struct DRAWITEMSTRUCT { pub CtlType: DRAWITEMSTRUCT_CTL_TYPE, pub CtlID: u32, pub itemID: u32, - pub itemAction: u32, - pub itemState: u32, + pub itemAction: ODA_FLAGS, + pub itemState: ODS_FLAGS, pub hwndItem: super::super::Foundation::HWND, pub hDC: super::super::Graphics::Gdi::HDC, pub rcItem: super::super::Foundation::RECT, @@ -9318,7 +9418,7 @@ impl ::core::clone::Clone for EDITBALLOONTIP { #[cfg(feature = "Win32_Foundation")] pub struct HDHITTESTINFO { pub pt: super::super::Foundation::POINT, - pub flags: u32, + pub flags: HEADER_HITTEST_INFO_FLAGS, pub iItem: i32, } #[cfg(feature = "Win32_Foundation")] @@ -9338,13 +9438,13 @@ pub struct HDITEMA { pub pszText: ::windows_sys::core::PSTR, pub hbm: super::super::Graphics::Gdi::HBITMAP, pub cchTextMax: i32, - pub fmt: i32, + pub fmt: HEADER_CONTROL_FORMAT_FLAGS, pub lParam: super::super::Foundation::LPARAM, pub iImage: i32, pub iOrder: i32, - pub r#type: u32, + pub r#type: HEADER_CONTROL_FORMAT_TYPE, pub pvFilter: *mut ::core::ffi::c_void, - pub state: u32, + pub state: HEADER_CONTROL_FORMAT_STATE, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for HDITEMA {} @@ -9363,13 +9463,13 @@ pub struct HDITEMW { pub pszText: ::windows_sys::core::PWSTR, pub hbm: super::super::Graphics::Gdi::HBITMAP, pub cchTextMax: i32, - pub fmt: i32, + pub fmt: HEADER_CONTROL_FORMAT_FLAGS, pub lParam: super::super::Foundation::LPARAM, pub iImage: i32, pub iOrder: i32, - pub r#type: u32, + pub r#type: HEADER_CONTROL_FORMAT_TYPE, pub pvFilter: *mut ::core::ffi::c_void, - pub state: u32, + pub state: HEADER_CONTROL_FORMAT_STATE, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for HDITEMW {} @@ -9528,10 +9628,10 @@ impl ::core::clone::Clone for LHITTESTINFO { #[repr(C)] #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub struct LITEM { - pub mask: u32, + pub mask: LIST_ITEM_FLAGS, pub iLink: i32, - pub state: u32, - pub stateMask: u32, + pub state: LIST_ITEM_STATE_FLAGS, + pub stateMask: LIST_ITEM_STATE_FLAGS, pub szID: [u16; 48], pub szUrl: [u16; 2084], } @@ -9545,7 +9645,7 @@ impl ::core::clone::Clone for LITEM { #[doc = "*Required features: `\"Win32_UI_Controls\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] pub struct LVBKIMAGEA { - pub ulFlags: u32, + pub ulFlags: LIST_VIEW_BACKGROUND_IMAGE_FLAGS, pub hbm: super::super::Graphics::Gdi::HBITMAP, pub pszImage: ::windows_sys::core::PSTR, pub cchImageMax: u32, @@ -9564,7 +9664,7 @@ impl ::core::clone::Clone for LVBKIMAGEA { #[doc = "*Required features: `\"Win32_UI_Controls\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] pub struct LVBKIMAGEW { - pub ulFlags: u32, + pub ulFlags: LIST_VIEW_BACKGROUND_IMAGE_FLAGS, pub hbm: super::super::Graphics::Gdi::HBITMAP, pub pszImage: ::windows_sys::core::PWSTR, pub cchImageMax: u32, @@ -9697,9 +9797,9 @@ pub struct LVGROUP { pub pszFooter: ::windows_sys::core::PWSTR, pub cchFooter: i32, pub iGroupId: i32, - pub stateMask: u32, - pub state: u32, - pub uAlign: u32, + pub stateMask: LIST_VIEW_GROUP_STATE_FLAGS, + pub state: LIST_VIEW_GROUP_STATE_FLAGS, + pub uAlign: LIST_VIEW_GROUP_ALIGN_FLAGS, pub pszSubtitle: ::windows_sys::core::PWSTR, pub cchSubtitle: u32, pub pszTask: ::windows_sys::core::PWSTR, @@ -9781,7 +9881,7 @@ impl ::core::clone::Clone for LVINSERTGROUPSORTED { #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub struct LVINSERTMARK { pub cbSize: u32, - pub dwFlags: u32, + pub dwFlags: LIST_VIEW_INSERT_MARK_FLAGS, pub iItem: i32, pub dwReserved: u32, } @@ -9795,11 +9895,11 @@ impl ::core::clone::Clone for LVINSERTMARK { #[doc = "*Required features: `\"Win32_UI_Controls\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct LVITEMA { - pub mask: u32, + pub mask: LIST_VIEW_ITEM_FLAGS, pub iItem: i32, pub iSubItem: i32, - pub state: u32, - pub stateMask: u32, + pub state: LIST_VIEW_ITEM_STATE_FLAGS, + pub stateMask: LIST_VIEW_ITEM_STATE_FLAGS, pub pszText: ::windows_sys::core::PSTR, pub cchTextMax: i32, pub iImage: i32, @@ -9808,7 +9908,7 @@ pub struct LVITEMA { pub iGroupId: LVITEMA_GROUP_ID, pub cColumns: u32, pub puColumns: *mut u32, - pub piColFmt: *mut i32, + pub piColFmt: *mut LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS, pub iGroup: i32, } #[cfg(feature = "Win32_Foundation")] @@ -9835,11 +9935,11 @@ impl ::core::clone::Clone for LVITEMINDEX { #[doc = "*Required features: `\"Win32_UI_Controls\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct LVITEMW { - pub mask: u32, + pub mask: LIST_VIEW_ITEM_FLAGS, pub iItem: i32, pub iSubItem: i32, - pub state: u32, - pub stateMask: u32, + pub state: LIST_VIEW_ITEM_STATE_FLAGS, + pub stateMask: LIST_VIEW_ITEM_STATE_FLAGS, pub pszText: ::windows_sys::core::PWSTR, pub cchTextMax: i32, pub iImage: i32, @@ -9848,7 +9948,7 @@ pub struct LVITEMW { pub iGroupId: LVITEMA_GROUP_ID, pub cColumns: u32, pub puColumns: *mut u32, - pub piColFmt: *mut i32, + pub piColFmt: *mut LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS, pub iGroup: i32, } #[cfg(feature = "Win32_Foundation")] @@ -9953,7 +10053,7 @@ impl ::core::clone::Clone for MCGRIDINFO { pub struct MCHITTESTINFO { pub cbSize: u32, pub pt: super::super::Foundation::POINT, - pub uHit: u32, + pub uHit: MCHITTESTINFO_HIT_FLAGS, pub st: super::super::Foundation::SYSTEMTIME, pub rc: super::super::Foundation::RECT, pub iOffset: i32, @@ -10138,7 +10238,7 @@ pub struct NMCUSTOMDRAW { pub hdc: super::super::Graphics::Gdi::HDC, pub rc: super::super::Foundation::RECT, pub dwItemSpec: usize, - pub uItemState: u32, + pub uItemState: NMCUSTOMDRAW_DRAW_STATE_FLAGS, pub lItemlParam: super::super::Foundation::LPARAM, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] @@ -10191,7 +10291,7 @@ impl ::core::clone::Clone for NMCUSTOMTEXT { #[cfg(feature = "Win32_Foundation")] pub struct NMDATETIMECHANGE { pub nmhdr: NMHDR, - pub dwFlags: u32, + pub dwFlags: NMDATETIMECHANGE_FLAGS, pub st: super::super::Foundation::SYSTEMTIME, } #[cfg(feature = "Win32_Foundation")] @@ -10539,7 +10639,7 @@ pub struct NMLISTVIEW { pub iSubItem: i32, pub uNewState: u32, pub uOldState: u32, - pub uChanged: u32, + pub uChanged: LIST_VIEW_ITEM_FLAGS, pub ptAction: super::super::Foundation::POINT, pub lParam: super::super::Foundation::LPARAM, } @@ -10582,7 +10682,7 @@ pub struct NMLVCUSTOMDRAW { pub iPartId: i32, pub iStateId: i32, pub rcText: super::super::Foundation::RECT, - pub uAlign: NMLVCUSTOMDRAW_ALIGN, + pub uAlign: LIST_VIEW_GROUP_ALIGN_FLAGS, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for NMLVCUSTOMDRAW {} @@ -10675,7 +10775,7 @@ impl ::core::clone::Clone for NMLVFINDITEMW { #[cfg(feature = "Win32_Foundation")] pub struct NMLVGETINFOTIPA { pub hdr: NMHDR, - pub dwFlags: u32, + pub dwFlags: NMLVGETINFOTIP_FLAGS, pub pszText: ::windows_sys::core::PSTR, pub cchTextMax: i32, pub iItem: i32, @@ -10695,7 +10795,7 @@ impl ::core::clone::Clone for NMLVGETINFOTIPA { #[cfg(feature = "Win32_Foundation")] pub struct NMLVGETINFOTIPW { pub hdr: NMHDR, - pub dwFlags: u32, + pub dwFlags: NMLVGETINFOTIP_FLAGS, pub pszText: ::windows_sys::core::PWSTR, pub cchTextMax: i32, pub iItem: i32, @@ -10750,8 +10850,8 @@ pub struct NMLVODSTATECHANGE { pub hdr: NMHDR, pub iFrom: i32, pub iTo: i32, - pub uNewState: u32, - pub uOldState: u32, + pub uNewState: LIST_VIEW_ITEM_STATE_FLAGS, + pub uOldState: LIST_VIEW_ITEM_STATE_FLAGS, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for NMLVODSTATECHANGE {} @@ -11260,7 +11360,7 @@ impl ::core::clone::Clone for NMTRBTHUMBPOSCHANGING { #[cfg(feature = "Win32_Foundation")] pub struct NMTREEVIEWA { pub hdr: NMHDR, - pub action: u32, + pub action: NM_TREEVIEW_ACTION, pub itemOld: TVITEMA, pub itemNew: TVITEMA, pub ptDrag: super::super::Foundation::POINT, @@ -11278,7 +11378,7 @@ impl ::core::clone::Clone for NMTREEVIEWA { #[cfg(feature = "Win32_Foundation")] pub struct NMTREEVIEWW { pub hdr: NMHDR, - pub action: u32, + pub action: NM_TREEVIEW_ACTION, pub itemOld: TVITEMW, pub itemNew: TVITEMW, pub ptDrag: super::super::Foundation::POINT, @@ -11314,7 +11414,7 @@ pub struct NMTTDISPINFOA { pub lpszText: ::windows_sys::core::PSTR, pub szText: [super::super::Foundation::CHAR; 80], pub hinst: super::super::Foundation::HINSTANCE, - pub uFlags: u32, + pub uFlags: TOOLTIP_FLAGS, pub lParam: super::super::Foundation::LPARAM, } #[cfg(feature = "Win32_Foundation")] @@ -11333,7 +11433,7 @@ pub struct NMTTDISPINFOW { pub lpszText: ::windows_sys::core::PWSTR, pub szText: [u16; 80], pub hinst: super::super::Foundation::HINSTANCE, - pub uFlags: u32, + pub uFlags: TOOLTIP_FLAGS, pub lParam: super::super::Foundation::LPARAM, } #[cfg(feature = "Win32_Foundation")] @@ -11550,8 +11650,8 @@ impl ::core::clone::Clone for NMUPDOWN { #[cfg(feature = "Win32_Foundation")] pub struct NMVIEWCHANGE { pub nmhdr: NMHDR, - pub dwOldView: u32, - pub dwNewView: u32, + pub dwOldView: MONTH_CALDENDAR_MESSAGES_VIEW, + pub dwNewView: MONTH_CALDENDAR_MESSAGES_VIEW, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for NMVIEWCHANGE {} @@ -12941,8 +13041,8 @@ impl ::core::clone::Clone for TCHITTESTINFO { #[cfg(feature = "Win32_Foundation")] pub struct TCITEMA { pub mask: TCITEMHEADERA_MASK, - pub dwState: u32, - pub dwStateMask: u32, + pub dwState: TAB_CONTROL_ITEM_STATE, + pub dwStateMask: TAB_CONTROL_ITEM_STATE, pub pszText: ::windows_sys::core::PSTR, pub cchTextMax: i32, pub iImage: i32, @@ -12993,8 +13093,8 @@ impl ::core::clone::Clone for TCITEMHEADERW { #[cfg(feature = "Win32_Foundation")] pub struct TCITEMW { pub mask: TCITEMHEADERA_MASK, - pub dwState: u32, - pub dwStateMask: u32, + pub dwState: TAB_CONTROL_ITEM_STATE, + pub dwStateMask: TAB_CONTROL_ITEM_STATE, pub pszText: ::windows_sys::core::PWSTR, pub cchTextMax: i32, pub iImage: i32, @@ -13092,7 +13192,7 @@ impl ::core::clone::Clone for TTHITTESTINFOW { #[cfg(feature = "Win32_Foundation")] pub struct TTTOOLINFOA { pub cbSize: u32, - pub uFlags: TTTOOLINFO_FLAGS, + pub uFlags: TOOLTIP_FLAGS, pub hwnd: super::super::Foundation::HWND, pub uId: usize, pub rect: super::super::Foundation::RECT, @@ -13114,7 +13214,7 @@ impl ::core::clone::Clone for TTTOOLINFOA { #[cfg(feature = "Win32_Foundation")] pub struct TTTOOLINFOW { pub cbSize: u32, - pub uFlags: TTTOOLINFO_FLAGS, + pub uFlags: TOOLTIP_FLAGS, pub hwnd: super::super::Foundation::HWND, pub uId: usize, pub rect: super::super::Foundation::RECT, @@ -13231,8 +13331,8 @@ impl ::core::clone::Clone for TVINSERTSTRUCTW_0 { pub struct TVITEMA { pub mask: TVITEM_MASK, pub hItem: HTREEITEM, - pub state: u32, - pub stateMask: u32, + pub state: TREE_VIEW_ITEM_STATE_FLAGS, + pub stateMask: TREE_VIEW_ITEM_STATE_FLAGS, pub pszText: ::windows_sys::core::PSTR, pub cchTextMax: i32, pub iImage: i32, @@ -13310,8 +13410,8 @@ impl ::core::clone::Clone for TVITEMEXW { pub struct TVITEMW { pub mask: TVITEM_MASK, pub hItem: HTREEITEM, - pub state: u32, - pub stateMask: u32, + pub state: TREE_VIEW_ITEM_STATE_FLAGS, + pub stateMask: TREE_VIEW_ITEM_STATE_FLAGS, pub pszText: ::windows_sys::core::PWSTR, pub cchTextMax: i32, pub iImage: i32, diff --git a/crates/libs/sys/src/Windows/Win32/UI/HiDpi/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/HiDpi/mod.rs index 97df768721..739578b7b3 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/HiDpi/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/HiDpi/mod.rs @@ -36,8 +36,9 @@ extern "system" { #[doc = "*Required features: `\"Win32_UI_HiDpi\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn GetSystemDpiForProcess(hprocess: super::super::Foundation::HANDLE) -> u32; - #[doc = "*Required features: `\"Win32_UI_HiDpi\"`*"] - pub fn GetSystemMetricsForDpi(nindex: i32, dpi: u32) -> i32; + #[doc = "*Required features: `\"Win32_UI_HiDpi\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] + #[cfg(feature = "Win32_UI_WindowsAndMessaging")] + pub fn GetSystemMetricsForDpi(nindex: super::WindowsAndMessaging::SYSTEM_METRICS_INDEX, dpi: u32) -> i32; #[doc = "*Required features: `\"Win32_UI_HiDpi\"`*"] pub fn GetThreadDpiAwarenessContext() -> DPI_AWARENESS_CONTEXT; #[doc = "*Required features: `\"Win32_UI_HiDpi\"`*"] diff --git a/crates/libs/sys/src/Windows/Win32/UI/Input/Ime/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/Input/Ime/mod.rs index ade0688caa..acf729aab0 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Input/Ime/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Input/Ime/mod.rs @@ -2091,6 +2091,19 @@ impl ::core::clone::Clone for IMEDP { } #[repr(C)] #[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] +pub struct IMEFAREASTINFO { + pub dwSize: u32, + pub dwType: u32, + pub dwData: [u32; 1], +} +impl ::core::marker::Copy for IMEFAREASTINFO {} +impl ::core::clone::Clone for IMEFAREASTINFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] pub struct IMEINFO { pub dwPrivateDataSize: u32, pub fdwProperty: u32, @@ -2346,7 +2359,7 @@ impl ::core::clone::Clone for IMESTRINGCANDIDATE { #[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] pub struct IMESTRINGCANDIDATEINFO { pub dwFarEastId: u32, - pub lpFarEastInfo: *mut tabIMEFAREASTINFO, + pub lpFarEastInfo: *mut IMEFAREASTINFO, pub fInfoMask: u32, pub iSelIndex: i32, pub uCount: u32, @@ -2358,6 +2371,18 @@ impl ::core::clone::Clone for IMESTRINGCANDIDATEINFO { *self } } +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] +pub struct IMESTRINGINFO { + pub dwFarEastId: u32, + pub lpwstr: ::windows_sys::core::PWSTR, +} +impl ::core::marker::Copy for IMESTRINGINFO {} +impl ::core::clone::Clone for IMESTRINGINFO { + fn clone(&self) -> Self { + *self + } +} #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] pub struct IMEWRD { @@ -2669,31 +2694,6 @@ impl ::core::clone::Clone for WDD_1 { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] -pub struct tabIMEFAREASTINFO { - pub dwSize: u32, - pub dwType: u32, - pub dwData: [u32; 1], -} -impl ::core::marker::Copy for tabIMEFAREASTINFO {} -impl ::core::clone::Clone for tabIMEFAREASTINFO { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] -pub struct tabIMESTRINGINFO { - pub dwFarEastId: u32, - pub lpwstr: ::windows_sys::core::PWSTR, -} -impl ::core::marker::Copy for tabIMESTRINGINFO {} -impl ::core::clone::Clone for tabIMESTRINGINFO { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_UI_Input_Ime\"`, `\"Win32_Foundation\"`, `\"Win32_Globalization\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Globalization"))] pub type IMCENUMPROC = ::core::option::Option super::super::super::Foundation::BOOL>; diff --git a/crates/libs/sys/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs index 6b54ae583e..fe4e6ac306 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs @@ -1051,6 +1051,48 @@ impl ::core::clone::Clone for INPUT_0 { } #[repr(C)] #[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] +pub struct KBDNLSTABLES { + pub OEMIdentifier: u16, + pub LayoutInformation: u16, + pub NumOfVkToF: u32, + pub pVkToF: *mut VK_F, + pub NumOfMouseVKey: i32, + pub pusMouseVKey: *mut u16, +} +impl ::core::marker::Copy for KBDNLSTABLES {} +impl ::core::clone::Clone for KBDNLSTABLES { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] +pub struct KBDTABLES { + pub pCharModifiers: *mut MODIFIERS, + pub pVkToWcharTable: *mut VK_TO_WCHAR_TABLE, + pub pDeadKey: *mut DEADKEY, + pub pKeyNames: *mut VSC_LPWSTR, + pub pKeyNamesExt: *mut VSC_LPWSTR, + pub pKeyNamesDead: *mut *mut u16, + pub pusVSCtoVK: *mut u16, + pub bMaxVSCtoVK: u8, + pub pVSCtoVK_E0: *mut VSC_VK, + pub pVSCtoVK_E1: *mut VSC_VK, + pub fLocaleFlags: u32, + pub nLgMax: u8, + pub cbLgEntry: u8, + pub pLigature: *mut LIGATURE1, + pub dwType: u32, + pub dwSubType: u32, +} +impl ::core::marker::Copy for KBDTABLES {} +impl ::core::clone::Clone for KBDTABLES { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] pub struct KBDTABLE_DESC { pub wszDllName: [u16; 32], pub dwType: u32, @@ -1241,6 +1283,34 @@ impl ::core::clone::Clone for TRACKMOUSEEVENT { } #[repr(C)] #[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] +pub struct VK_F { + pub Vk: u8, + pub NLSFEProcType: u8, + pub NLSFEProcCurrent: u8, + pub NLSFEProcSwitch: u8, + pub NLSFEProc: [VK_FPARAM; 8], + pub NLSFEProcAlt: [VK_FPARAM; 8], +} +impl ::core::marker::Copy for VK_F {} +impl ::core::clone::Clone for VK_F { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] +pub struct VK_FPARAM { + pub NLSFEProcIndex: u8, + pub NLSFEProcParam: u32, +} +impl ::core::marker::Copy for VK_FPARAM {} +impl ::core::clone::Clone for VK_FPARAM { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] pub struct VK_TO_BIT { pub Vk: u8, pub ModBits: u8, @@ -1430,73 +1500,3 @@ impl ::core::clone::Clone for VSC_VK { *self } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] -pub struct _VK_FUNCTION_PARAM { - pub NLSFEProcIndex: u8, - pub NLSFEProcParam: u32, -} -impl ::core::marker::Copy for _VK_FUNCTION_PARAM {} -impl ::core::clone::Clone for _VK_FUNCTION_PARAM { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] -pub struct _VK_TO_FUNCTION_TABLE { - pub Vk: u8, - pub NLSFEProcType: u8, - pub NLSFEProcCurrent: u8, - pub NLSFEProcSwitch: u8, - pub NLSFEProc: [_VK_FUNCTION_PARAM; 8], - pub NLSFEProcAlt: [_VK_FUNCTION_PARAM; 8], -} -impl ::core::marker::Copy for _VK_TO_FUNCTION_TABLE {} -impl ::core::clone::Clone for _VK_TO_FUNCTION_TABLE { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] -pub struct tagKbdLayer { - pub pCharModifiers: *mut MODIFIERS, - pub pVkToWcharTable: *mut VK_TO_WCHAR_TABLE, - pub pDeadKey: *mut DEADKEY, - pub pKeyNames: *mut VSC_LPWSTR, - pub pKeyNamesExt: *mut VSC_LPWSTR, - pub pKeyNamesDead: *mut *mut u16, - pub pusVSCtoVK: *mut u16, - pub bMaxVSCtoVK: u8, - pub pVSCtoVK_E0: *mut VSC_VK, - pub pVSCtoVK_E1: *mut VSC_VK, - pub fLocaleFlags: u32, - pub nLgMax: u8, - pub cbLgEntry: u8, - pub pLigature: *mut LIGATURE1, - pub dwType: u32, - pub dwSubType: u32, -} -impl ::core::marker::Copy for tagKbdLayer {} -impl ::core::clone::Clone for tagKbdLayer { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] -pub struct tagKbdNlsLayer { - pub OEMIdentifier: u16, - pub LayoutInformation: u16, - pub NumOfVkToF: u32, - pub pVkToF: *mut _VK_TO_FUNCTION_TABLE, - pub NumOfMouseVKey: i32, - pub pusMouseVKey: *mut u16, -} -impl ::core::marker::Copy for tagKbdNlsLayer {} -impl ::core::clone::Clone for tagKbdNlsLayer { - fn clone(&self) -> Self { - *self - } -} diff --git a/crates/libs/sys/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs index 94ed1e06ac..70aa7ba780 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs @@ -45,20 +45,20 @@ pub const REC_S_NOTCOMPLETEBUTPROPAGATE: ::windows_sys::core::HRESULT = 266242i3 #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] pub const STATEBITS_FLAT: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub type _reconcilef = i32; +pub type RECONCILEF = i32; #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_MAYBOTHERUSER: _reconcilef = 1i32; +pub const RECONCILEF_MAYBOTHERUSER: RECONCILEF = 1i32; #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_FEEDBACKWINDOWVALID: _reconcilef = 2i32; +pub const RECONCILEF_FEEDBACKWINDOWVALID: RECONCILEF = 2i32; #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_NORESIDUESOK: _reconcilef = 4i32; +pub const RECONCILEF_NORESIDUESOK: RECONCILEF = 4i32; #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_OMITSELFRESIDUE: _reconcilef = 8i32; +pub const RECONCILEF_OMITSELFRESIDUE: RECONCILEF = 8i32; #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_RESUMERECONCILIATION: _reconcilef = 16i32; +pub const RECONCILEF_RESUMERECONCILIATION: RECONCILEF = 16i32; #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_YOUMAYDOTHEUPDATES: _reconcilef = 32i32; +pub const RECONCILEF_YOUMAYDOTHEUPDATES: RECONCILEF = 32i32; #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_ONLYYOUWERECHANGED: _reconcilef = 64i32; +pub const RECONCILEF_ONLYYOUWERECHANGED: RECONCILEF = 64i32; #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const ALL_RECONCILE_FLAGS: _reconcilef = 127i32; +pub const ALL_RECONCILE_FLAGS: RECONCILEF = 127i32; diff --git a/crates/libs/sys/src/Windows/Win32/UI/Shell/Common/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/Shell/Common/mod.rs index 9269cf07ed..23ef6a88db 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Shell/Common/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Shell/Common/mod.rs @@ -146,7 +146,7 @@ impl ::core::clone::Clone for COMDLG_FILTERSPEC { *self } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_UI_Shell_Common\"`*"] pub struct ITEMIDLIST { pub mkid: SHITEMID, 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 40d7f56e88..a1ffc75081 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs @@ -4589,72 +4589,6 @@ pub const SE_ERR_SHARE: u32 = 26u32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const SFBID_PIDLCHANGED: i32 = 0i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_BROWSABLE: i32 = 134217728i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_CANDELETE: i32 = 32i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_CANMONIKER: i32 = 4194304i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_CANRENAME: i32 = 16i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_CAPABILITYMASK: i32 = 375i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_COMPRESSED: i32 = 67108864i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_CONTENTSMASK: i32 = -2147483648i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_DISPLAYATTRMASK: i32 = 1032192i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_DROPTARGET: i32 = 256i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_ENCRYPTED: i32 = 8192i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_FILESYSANCESTOR: i32 = 268435456i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_FILESYSTEM: i32 = 1073741824i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_FOLDER: i32 = 536870912i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_GHOSTED: i32 = 32768i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_HASPROPSHEET: i32 = 64i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_HASSTORAGE: i32 = 4194304i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_HASSUBFOLDER: i32 = -2147483648i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_HIDDEN: i32 = 524288i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_ISSLOW: i32 = 16384i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_LINK: i32 = 65536i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_NEWCONTENT: i32 = 2097152i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_NONENUMERATED: i32 = 1048576i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_PKEYSFGAOMASK: i32 = -2130427904i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_PLACEHOLDER: i32 = 2048i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_READONLY: i32 = 262144i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_REMOVABLE: i32 = 33554432i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_SHARE: i32 = 131072i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_STORAGE: i32 = 8i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_STORAGEANCESTOR: i32 = 8388608i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_STORAGECAPMASK: i32 = 1891958792i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_STREAM: i32 = 4194304i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_SYSTEM: i32 = 4096i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_VALIDATE: i32 = 16777216i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const SFVM_ADDOBJECT: u32 = 3u32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const SFVM_GETSELECTEDOBJECTS: u32 = 9u32; @@ -6548,6 +6482,12 @@ pub type FVTEXTTYPE = i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const FVST_EMPTYTEXT: FVTEXTTYPE = 0i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub type HELP_INFO_TYPE = i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HELPINFO_WINDOW: HELP_INFO_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HELPINFO_MENUITEM: HELP_INFO_TYPE = 2i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub type HLBWIF_FLAGS = u32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const HLBWIF_HASFRAMEWNDINFO: HLBWIF_FLAGS = 1u32; @@ -6632,6 +6572,26 @@ pub const HLQF_ISVALID: HLQF_INFO = 1i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const HLQF_ISCURRENT: HLQF_INFO = 2i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub type HLSHORTCUTF = i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSHORTCUTF_DEFAULT: HLSHORTCUTF = 0i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSHORTCUTF_DONTACTUALLYCREATE: HLSHORTCUTF = 1i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSHORTCUTF_USEFILENAMEFROMFRIENDLYNAME: HLSHORTCUTF = 2i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSHORTCUTF_USEUNIQUEFILENAME: HLSHORTCUTF = 4i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSHORTCUTF_MAYUSEEXISTINGSHORTCUT: HLSHORTCUTF = 8i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub type HLSR = i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSR_HOME: HLSR = 0i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSR_SEARCHPAGE: HLSR = 1i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSR_HISTORYFOLDER: HLSR = 2i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub type HLTB_INFO = i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const HLTB_DOCKEDLEFT: HLTB_INFO = 0i32; @@ -6644,6 +6604,12 @@ pub const HLTB_DOCKEDBOTTOM: HLTB_INFO = 3i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const HLTB_FLOATING: HLTB_INFO = 4i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub type HLTRANSLATEF = i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLTRANSLATEF_DEFAULT: HLTRANSLATEF = 0i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLTRANSLATEF_DONTAPPLYDEFAULTPREFIX: HLTRANSLATEF = 1i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub type HOMEGROUPSHARINGCHOICES = i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const HGSC_NONE: HOMEGROUPSHARINGCHOICES = 0i32; @@ -6672,6 +6638,24 @@ pub const IESHORTCUT_FORCENAVIGATE: IESHORTCUTFLAGS = 4i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const IESHORTCUT_BACKGROUNDTAB: IESHORTCUTFLAGS = 8i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub type IURL_INVOKECOMMAND_FLAGS = i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_INVOKECOMMAND_FL_ALLOW_UI: IURL_INVOKECOMMAND_FLAGS = 1i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB: IURL_INVOKECOMMAND_FLAGS = 2i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_INVOKECOMMAND_FL_DDEWAIT: IURL_INVOKECOMMAND_FLAGS = 4i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_INVOKECOMMAND_FL_ASYNCOK: IURL_INVOKECOMMAND_FLAGS = 8i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_INVOKECOMMAND_FL_LOG_USAGE: IURL_INVOKECOMMAND_FLAGS = 16i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub type IURL_SETURL_FLAGS = i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_SETURL_FL_GUESS_PROTOCOL: IURL_SETURL_FLAGS = 1i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_SETURL_FL_USE_DEFAULT_PROTOCOL: IURL_SETURL_FLAGS = 2i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub type KF_CATEGORY = i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const KF_CATEGORY_VIRTUAL: KF_CATEGORY = 1i32; @@ -6808,6 +6792,10 @@ pub const MUS_USERINPUTNEEDED: MERGE_UPDATE_STATUS = 1i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const MUS_FAILED: MERGE_UPDATE_STATUS = 2i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub type MIMEASSOCIATIONDIALOG_IN_FLAGS = i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const MIMEASSOCDLG_FL_REGISTER_ASSOC: MIMEASSOCIATIONDIALOG_IN_FLAGS = 1i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub type MM_FLAGS = u32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const MM_ADDSEPARATOR: MM_FLAGS = 1u32; @@ -9258,6 +9246,12 @@ pub const TLEF_EXCLUDE_SUBFRAME_ENTRIES: TLENUMF = 128i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const TLEF_EXCLUDE_ABOUT_PAGES: TLENUMF = 256i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub type TRANSLATEURL_IN_FLAGS = i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const TRANSLATEURL_FL_GUESS_PROTOCOL: TRANSLATEURL_IN_FLAGS = 1i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL: TRANSLATEURL_IN_FLAGS = 2i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub type ThumbnailStreamCacheOptions = i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const ExtractIfNotCached: ThumbnailStreamCacheOptions = 0i32; @@ -9274,6 +9268,12 @@ pub const UR_RESOLUTION_CHANGE: UNDOCK_REASON = 0i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const UR_MONITOR_DISCONNECT: UNDOCK_REASON = 1i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub type URLASSOCIATIONDIALOG_IN_FLAGS = i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const URLASSOCDLG_FL_USE_DEFAULT_NAME: URLASSOCIATIONDIALOG_IN_FLAGS = 1i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const URLASSOCDLG_FL_REGISTER_ASSOC: URLASSOCIATIONDIALOG_IN_FLAGS = 2i32; +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub type URLIS = i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const URLIS_URL: URLIS = 0i32; @@ -9566,32 +9566,6 @@ pub type _EXPPS = i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const EXPPS_FILETYPES: _EXPPS = 1i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub type _HLSHORTCUTF__NOREDEF10 = i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSHORTCUTF_DEFAULT: _HLSHORTCUTF__NOREDEF10 = 0i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSHORTCUTF_DONTACTUALLYCREATE: _HLSHORTCUTF__NOREDEF10 = 1i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSHORTCUTF_USEFILENAMEFROMFRIENDLYNAME: _HLSHORTCUTF__NOREDEF10 = 2i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSHORTCUTF_USEUNIQUEFILENAME: _HLSHORTCUTF__NOREDEF10 = 4i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSHORTCUTF_MAYUSEEXISTINGSHORTCUT: _HLSHORTCUTF__NOREDEF10 = 8i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub type _HLSR_NOREDEF10 = i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSR_HOME: _HLSR_NOREDEF10 = 0i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSR_SEARCHPAGE: _HLSR_NOREDEF10 = 1i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSR_HISTORYFOLDER: _HLSR_NOREDEF10 = 2i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub type _HLTRANSLATEF_NOREDEF10 = i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLTRANSLATEF_DEFAULT: _HLTRANSLATEF_NOREDEF10 = 0i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLTRANSLATEF_DONTAPPLYDEFAULTPREFIX: _HLTRANSLATEF_NOREDEF10 = 1i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub type _KF_DEFINITION_FLAGS = i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const KFDF_LOCAL_REDIRECT_ONLY: _KF_DEFINITION_FLAGS = 2i32; @@ -9953,40 +9927,6 @@ pub const TSF_COPY_LOCALIZED_NAME: _TRANSFER_SOURCE_FLAGS = 512i32; pub const TSF_MOVE_AS_COPY_DELETE: _TRANSFER_SOURCE_FLAGS = 1024i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const TSF_SUSPEND_SHELLEVENTS: _TRANSFER_SOURCE_FLAGS = 2048i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub type iurl_invokecommand_flags = i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_INVOKECOMMAND_FL_ALLOW_UI: iurl_invokecommand_flags = 1i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB: iurl_invokecommand_flags = 2i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_INVOKECOMMAND_FL_DDEWAIT: iurl_invokecommand_flags = 4i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_INVOKECOMMAND_FL_ASYNCOK: iurl_invokecommand_flags = 8i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_INVOKECOMMAND_FL_LOG_USAGE: iurl_invokecommand_flags = 16i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub type iurl_seturl_flags = i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_SETURL_FL_GUESS_PROTOCOL: iurl_seturl_flags = 1i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_SETURL_FL_USE_DEFAULT_PROTOCOL: iurl_seturl_flags = 2i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub type mimeassociationdialog_in_flags = i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const MIMEASSOCDLG_FL_REGISTER_ASSOC: mimeassociationdialog_in_flags = 1i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub type translateurl_in_flags = i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const TRANSLATEURL_FL_GUESS_PROTOCOL: translateurl_in_flags = 1i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL: translateurl_in_flags = 2i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub type urlassociationdialog_in_flags = i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const URLASSOCDLG_FL_USE_DEFAULT_NAME: urlassociationdialog_in_flags = 1i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const URLASSOCDLG_FL_REGISTER_ASSOC: urlassociationdialog_in_flags = 2i32; #[repr(C)] #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub struct AASHELLMENUFILENAME { @@ -11009,7 +10949,7 @@ pub type HDROP = isize; #[cfg(feature = "Win32_Foundation")] pub struct HELPINFO { pub cbSize: u32, - pub iContextType: i32, + pub iContextType: HELP_INFO_TYPE, pub iCtrlId: i32, pub hItemHandle: super::super::Foundation::HANDLE, pub dwContextId: usize, @@ -12961,6 +12901,40 @@ impl ::core::clone::Clone for TOOLBARITEM { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct URLINVOKECOMMANDINFOA { + pub dwcbSize: u32, + pub dwFlags: u32, + pub hwndParent: super::super::Foundation::HWND, + pub pcszVerb: ::windows_sys::core::PCSTR, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for URLINVOKECOMMANDINFOA {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for URLINVOKECOMMANDINFOA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct URLINVOKECOMMANDINFOW { + pub dwcbSize: u32, + pub dwFlags: u32, + pub hwndParent: super::super::Foundation::HWND, + pub pcszVerb: ::windows_sys::core::PCWSTR, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for URLINVOKECOMMANDINFOW {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for URLINVOKECOMMANDINFOW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(feature = "Win32_UI_Shell_Common")] pub struct WINDOWDATA { @@ -12994,40 +12968,6 @@ impl ::core::clone::Clone for WTS_THUMBNAILID { pub struct _APPCONSTRAIN_REGISTRATION(pub u8); #[repr(C)] pub struct _APPSTATE_REGISTRATION(pub u8); -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct urlinvokecommandinfoA { - pub dwcbSize: u32, - pub dwFlags: u32, - pub hwndParent: super::super::Foundation::HWND, - pub pcszVerb: ::windows_sys::core::PCSTR, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for urlinvokecommandinfoA {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for urlinvokecommandinfoA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct urlinvokecommandinfoW { - pub dwcbSize: u32, - pub dwFlags: u32, - pub hwndParent: super::super::Foundation::HWND, - pub pcszVerb: ::windows_sys::core::PCWSTR, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for urlinvokecommandinfoW {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for urlinvokecommandinfoW { - fn clone(&self) -> Self { - *self - } -} #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type APPLET_PROC = ::core::option::Option i32>; diff --git a/crates/libs/sys/src/Windows/Win32/UI/TabletPC/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/TabletPC/mod.rs index 711b5a9707..04e15f8d7a 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/TabletPC/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/TabletPC/mod.rs @@ -1841,6 +1841,20 @@ pub const FLICKMODE_MAX: FLICKMODE = 2i32; #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] pub const FLICKMODE_DEFAULT: FLICKMODE = 1i32; #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub type GET_DANDIDATE_FLAGS = i32; +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const TCF_ALLOW_RECOGNITION: GET_DANDIDATE_FLAGS = 1i32; +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const TCF_FORCE_RECOGNITION: GET_DANDIDATE_FLAGS = 2i32; +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub type INK_METRIC_FLAGS = i32; +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const IMF_FONT_SELECTED_IN_HDC: INK_METRIC_FLAGS = 1i32; +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const IMF_ITALIC: INK_METRIC_FLAGS = 2i32; +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const IMF_BOLD: INK_METRIC_FLAGS = 4i32; +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] pub type InPlaceDirection = i32; #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] pub const InPlaceDirection_Auto: InPlaceDirection = 0i32; @@ -2505,6 +2519,12 @@ pub const PT_Handwriting: PanelType = 2i32; #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] pub const PT_Keyboard: PanelType = 3i32; #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub type RECO_TYPE = i32; +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const RECO_TYPE_WSTRING: RECO_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const RECO_TYPE_WCHAR: RECO_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] pub type RealTimeStylusDataInterest = i32; #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] pub const RTSDI_AllData: RealTimeStylusDataInterest = -1i32; @@ -2662,26 +2682,6 @@ pub const DockedTop: VisualState = 2i32; pub const DockedBottom: VisualState = 3i32; #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] pub const Closed: VisualState = 4i32; -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub type enumGetCandidateFlags = i32; -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const TCF_ALLOW_RECOGNITION: enumGetCandidateFlags = 1i32; -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const TCF_FORCE_RECOGNITION: enumGetCandidateFlags = 2i32; -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub type enumINKMETRIC_FLAGS = i32; -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const IMF_FONT_SELECTED_IN_HDC: enumINKMETRIC_FLAGS = 1i32; -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const IMF_ITALIC: enumINKMETRIC_FLAGS = 2i32; -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const IMF_BOLD: enumINKMETRIC_FLAGS = 4i32; -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub type enumRECO_TYPE = i32; -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const RECO_TYPE_WSTRING: enumRECO_TYPE = 0i32; -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const RECO_TYPE_WCHAR: enumRECO_TYPE = 1i32; #[repr(C)] #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] pub struct CHARACTER_RANGE { 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 30a5307284..c4c27faa10 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs @@ -1,9 +1,5 @@ #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] - pub fn DestroyIndexedResults(resourceuri: ::windows_sys::core::PCWSTR, qualifiercount: u32, qualifiers: *const IndexedResourceQualifier); - #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] - pub fn DestroyResourceIndexer(resourceindexer: *const ::core::ffi::c_void); #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub fn wsprintfA(param0: ::windows_sys::core::PSTR, param1: ::windows_sys::core::PCSTR) -> i32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] @@ -239,9 +235,13 @@ extern "system" { #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn DestroyIcon(hicon: HICON) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] + pub fn DestroyIndexedResults(resourceuri: ::windows_sys::core::PCWSTR, qualifiercount: u32, qualifiers: *const IndexedResourceQualifier); #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn DestroyMenu(hmenu: HMENU) -> super::super::Foundation::BOOL; + #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] + pub fn DestroyResourceIndexer(resourceindexer: *const ::core::ffi::c_void); #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn DestroyWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL; @@ -1478,28 +1478,8 @@ pub const DCX_EXCLUDEUPDATE: i32 = 256i32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const DC_HASDEFID: u32 = 21323u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_CREATEMENU: i32 = 4i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_CREATEWINDOW: i32 = 2i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_ENUMERATE: i32 = 64i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_HOOKCONTROL: i32 = 8i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_JOURNALPLAYBACK: i32 = 32i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_JOURNALRECORD: i32 = 16i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_READOBJECTS: i32 = 1i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_SWITCHDESKTOP: i32 = 256i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_WRITEOBJECTS: i32 = 128i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const DEVICE_NOTIFY_ALL_INTERFACE_CLASSES: u32 = 4u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DF_ALLOWOTHERACCOUNTHOOK: i32 = 1i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const DIFFERENCE: u32 = 11u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const DLGC_BUTTON: u32 = 8192u32; @@ -1852,8 +1832,6 @@ pub const EWX_QUICKRESOLVE: u32 = 32u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const EWX_SYSTEM_INITIATED: u32 = 268435456u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const FALT: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const FAPPCOMMAND_KEY: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const FAPPCOMMAND_MASK: u32 = 61440u32; @@ -1862,8 +1840,6 @@ pub const FAPPCOMMAND_MOUSE: u32 = 32768u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const FAPPCOMMAND_OEM: u32 = 4096u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const FCONTROL: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const FE_FONTSMOOTHINGCLEARTYPE: u32 = 2u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const FE_FONTSMOOTHINGORIENTATIONBGR: u32 = 0u32; @@ -1886,12 +1862,6 @@ pub const FKF_HOTKEYSOUND: u32 = 16u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const FKF_INDICATOR: u32 = 32u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const FNOINVERT: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const FSHIFT: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const FVIRTKEY: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const GCF_INCLUDE_ANCESTORS: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const GESTURECONFIGMAXCOUNT: u32 = 256u32; @@ -1997,10 +1967,6 @@ pub const HC_SYSMODALOFF: u32 = 5u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const HC_SYSMODALON: u32 = 4u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const HELPINFO_MENUITEM: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const HELPINFO_WINDOW: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const HELP_COMMAND: i32 = 258i32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const HELP_CONTENTS: i32 = 3i32; @@ -2625,34 +2591,6 @@ pub const OCR_ICON: u32 = 32641u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const OCR_SIZE: u32 = 32640u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODA_DRAWENTIRE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODA_FOCUS: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODA_SELECT: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_CHECKED: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_COMBOBOXEDIT: u32 = 4096u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_DEFAULT: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_DISABLED: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_FOCUS: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_GRAYED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_HOTLIGHT: u32 = 64u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_INACTIVE: u32 = 128u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_NOACCEL: u32 = 256u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_NOFOCUSRECT: u32 = 512u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_SELECTED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const OIC_BANG: u32 = 32515u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const OIC_ERROR: u32 = 32513u32; @@ -3917,6 +3855,18 @@ pub const __WARNING_RETURN_UNINIT_VAR: u32 = 6101u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const __WARNING_USING_UNINIT_VAR: u32 = 6001u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +pub type ACCEL_VIRT_FLAGS = u8; +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +pub const FVIRTKEY: ACCEL_VIRT_FLAGS = 1u8; +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +pub const FNOINVERT: ACCEL_VIRT_FLAGS = 2u8; +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +pub const FSHIFT: ACCEL_VIRT_FLAGS = 4u8; +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +pub const FCONTROL: ACCEL_VIRT_FLAGS = 8u8; +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +pub const FALT: ACCEL_VIRT_FLAGS = 16u8; +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub type ANIMATE_WINDOW_FLAGS = u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const AW_ACTIVATE: ANIMATE_WINDOW_FLAGS = 131072u32; @@ -5759,7 +5709,7 @@ pub const CS_DROPSHADOW: WNDCLASS_STYLES = 131072u32; #[repr(C)] #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub struct ACCEL { - pub fVirt: u8, + pub fVirt: ACCEL_VIRT_FLAGS, pub key: u16, pub cmd: u16, } @@ -6855,6 +6805,20 @@ impl ::core::clone::Clone for TITLEBARINFOEX { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +pub struct TOUCHPREDICTIONPARAMETERS { + pub cbSize: u32, + pub dwLatency: u32, + pub dwSampleTime: u32, + pub bUseHWTimeStamp: u32, +} +impl ::core::marker::Copy for TOUCHPREDICTIONPARAMETERS {} +impl ::core::clone::Clone for TOUCHPREDICTIONPARAMETERS { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct TPMPARAMS { @@ -6870,20 +6834,6 @@ impl ::core::clone::Clone for TPMPARAMS { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub struct TouchPredictionParameters { - pub cbSize: u32, - pub dwLatency: u32, - pub dwSampleTime: u32, - pub bUseHWTimeStamp: u32, -} -impl ::core::marker::Copy for TouchPredictionParameters {} -impl ::core::clone::Clone for TouchPredictionParameters { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct UPDATELAYEREDWINDOWINFO { diff --git a/crates/libs/sys/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs index 434595f45b..cda8d164a0 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs @@ -1,5 +1,5 @@ #[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { +extern "system" { #[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`*"] pub fn InitializeXamlDiagnostic(endpointname: ::windows_sys::core::PCWSTR, pid: u32, wszdllxamldiagnostics: ::windows_sys::core::PCWSTR, wsztapdllname: ::windows_sys::core::PCWSTR, tapclsid: ::windows_sys::core::GUID) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/mod.rs b/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/mod.rs index ff422831cd..1a9e4f208a 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/mod.rs @@ -17543,38 +17543,38 @@ impl ::core::fmt::Debug for XHR_PROPERTY { #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct XMLEMEM_TYPE(pub i32); +pub struct XMLELEM_TYPE(pub i32); #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_ELEMENT: XMLEMEM_TYPE = XMLEMEM_TYPE(0i32); +pub const XMLELEMTYPE_ELEMENT: XMLELEM_TYPE = XMLELEM_TYPE(0i32); #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_TEXT: XMLEMEM_TYPE = XMLEMEM_TYPE(1i32); +pub const XMLELEMTYPE_TEXT: XMLELEM_TYPE = XMLELEM_TYPE(1i32); #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_COMMENT: XMLEMEM_TYPE = XMLEMEM_TYPE(2i32); +pub const XMLELEMTYPE_COMMENT: XMLELEM_TYPE = XMLELEM_TYPE(2i32); #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_DOCUMENT: XMLEMEM_TYPE = XMLEMEM_TYPE(3i32); +pub const XMLELEMTYPE_DOCUMENT: XMLELEM_TYPE = XMLELEM_TYPE(3i32); #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_DTD: XMLEMEM_TYPE = XMLEMEM_TYPE(4i32); +pub const XMLELEMTYPE_DTD: XMLELEM_TYPE = XMLELEM_TYPE(4i32); #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_PI: XMLEMEM_TYPE = XMLEMEM_TYPE(5i32); +pub const XMLELEMTYPE_PI: XMLELEM_TYPE = XMLELEM_TYPE(5i32); #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] -pub const XMLELEMTYPE_OTHER: XMLEMEM_TYPE = XMLEMEM_TYPE(6i32); -impl ::core::marker::Copy for XMLEMEM_TYPE {} -impl ::core::clone::Clone for XMLEMEM_TYPE { +pub const XMLELEMTYPE_OTHER: XMLELEM_TYPE = XMLELEM_TYPE(6i32); +impl ::core::marker::Copy for XMLELEM_TYPE {} +impl ::core::clone::Clone for XMLELEM_TYPE { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for XMLEMEM_TYPE { +impl ::core::default::Default for XMLELEM_TYPE { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for XMLEMEM_TYPE { +unsafe impl ::windows::core::Abi for XMLELEM_TYPE { type Abi = Self; } -impl ::core::fmt::Debug for XMLEMEM_TYPE { +impl ::core::fmt::Debug for XMLELEM_TYPE { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("XMLEMEM_TYPE").field(&self.0).finish() + f.debug_tuple("XMLELEM_TYPE").field(&self.0).finish() } } #[repr(C)] 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 b9041a45d7..4e97c08dda 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs @@ -1,55 +1,55 @@ #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothAuthenticateDevice<'a, P0, P1>(hwndparent: P0, hradio: P1, pbtbi: &mut BLUETOOTH_DEVICE_INFO, pszpasskey: ::core::option::Option<&[u16]>) -> u32 +pub unsafe fn BluetoothAuthenticateDevice<'a, P0, P1>(hwndparent: P0, hradio: P1, pbtbi: &mut BLUETOOTH_DEVICE_INFO_STRUCT, pszpasskey: ::core::option::Option<&[u16]>) -> u32 where P0: ::std::convert::Into, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothAuthenticateDevice(hwndparent: super::super::Foundation::HWND, hradio: super::super::Foundation::HANDLE, pbtbi: *mut BLUETOOTH_DEVICE_INFO, pszpasskey: ::windows::core::PCWSTR, ulpasskeylength: u32) -> u32; + fn BluetoothAuthenticateDevice(hwndparent: super::super::Foundation::HWND, hradio: super::super::Foundation::HANDLE, pbtbi: *mut BLUETOOTH_DEVICE_INFO_STRUCT, pszpasskey: ::windows::core::PCWSTR, ulpasskeylength: u32) -> u32; } BluetoothAuthenticateDevice(hwndparent.into(), hradio.into(), ::core::mem::transmute(pbtbi), ::core::mem::transmute(pszpasskey.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pszpasskey.as_deref().map_or(0, |slice| slice.len() as _)) } #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothAuthenticateDeviceEx<'a, P0, P1>(hwndparentin: P0, hradioin: P1, pbtdiinout: &mut BLUETOOTH_DEVICE_INFO, pbtoobdata: ::core::option::Option<&BLUETOOTH_OOB_DATA_INFO>, authenticationrequirement: AUTHENTICATION_REQUIREMENTS) -> u32 +pub unsafe fn BluetoothAuthenticateDeviceEx<'a, P0, P1>(hwndparentin: P0, hradioin: P1, pbtdiinout: &mut BLUETOOTH_DEVICE_INFO_STRUCT, pbtoobdata: ::core::option::Option<&BLUETOOTH_OOB_DATA_INFO>, authenticationrequirement: AUTHENTICATION_REQUIREMENTS) -> u32 where P0: ::std::convert::Into, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothAuthenticateDeviceEx(hwndparentin: super::super::Foundation::HWND, hradioin: super::super::Foundation::HANDLE, pbtdiinout: *mut BLUETOOTH_DEVICE_INFO, pbtoobdata: *const BLUETOOTH_OOB_DATA_INFO, authenticationrequirement: AUTHENTICATION_REQUIREMENTS) -> u32; + fn BluetoothAuthenticateDeviceEx(hwndparentin: super::super::Foundation::HWND, hradioin: super::super::Foundation::HANDLE, pbtdiinout: *mut BLUETOOTH_DEVICE_INFO_STRUCT, pbtoobdata: *const BLUETOOTH_OOB_DATA_INFO, authenticationrequirement: AUTHENTICATION_REQUIREMENTS) -> u32; } BluetoothAuthenticateDeviceEx(hwndparentin.into(), hradioin.into(), ::core::mem::transmute(pbtdiinout), ::core::mem::transmute(pbtoobdata), authenticationrequirement) } #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothAuthenticateMultipleDevices<'a, P0, P1>(hwndparent: P0, hradio: P1, rgbtdi: &mut [BLUETOOTH_DEVICE_INFO]) -> u32 +pub unsafe fn BluetoothAuthenticateMultipleDevices<'a, P0, P1>(hwndparent: P0, hradio: P1, rgbtdi: &mut [BLUETOOTH_DEVICE_INFO_STRUCT]) -> u32 where P0: ::std::convert::Into, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothAuthenticateMultipleDevices(hwndparent: super::super::Foundation::HWND, hradio: super::super::Foundation::HANDLE, cdevices: u32, rgbtdi: *mut BLUETOOTH_DEVICE_INFO) -> u32; + fn BluetoothAuthenticateMultipleDevices(hwndparent: super::super::Foundation::HWND, hradio: super::super::Foundation::HANDLE, cdevices: u32, rgbtdi: *mut BLUETOOTH_DEVICE_INFO_STRUCT) -> u32; } BluetoothAuthenticateMultipleDevices(hwndparent.into(), hradio.into(), rgbtdi.len() as _, ::core::mem::transmute(rgbtdi.as_ptr())) } #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothDisplayDeviceProperties<'a, P0>(hwndparent: P0, pbtdi: &mut BLUETOOTH_DEVICE_INFO) -> super::super::Foundation::BOOL +pub unsafe fn BluetoothDisplayDeviceProperties<'a, P0>(hwndparent: P0, pbtdi: &mut BLUETOOTH_DEVICE_INFO_STRUCT) -> super::super::Foundation::BOOL where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothDisplayDeviceProperties(hwndparent: super::super::Foundation::HWND, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> super::super::Foundation::BOOL; + fn BluetoothDisplayDeviceProperties(hwndparent: super::super::Foundation::HWND, pbtdi: *mut BLUETOOTH_DEVICE_INFO_STRUCT) -> super::super::Foundation::BOOL; } BluetoothDisplayDeviceProperties(hwndparent.into(), ::core::mem::transmute(pbtdi)) } @@ -84,13 +84,13 @@ where #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothEnumerateInstalledServices<'a, P0>(hradio: P0, pbtdi: &BLUETOOTH_DEVICE_INFO, pcserviceinout: &mut u32, pguidservices: *mut ::windows::core::GUID) -> u32 +pub unsafe fn BluetoothEnumerateInstalledServices<'a, P0>(hradio: P0, pbtdi: &BLUETOOTH_DEVICE_INFO_STRUCT, pcserviceinout: &mut u32, pguidservices: *mut ::windows::core::GUID) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothEnumerateInstalledServices(hradio: super::super::Foundation::HANDLE, pbtdi: *const BLUETOOTH_DEVICE_INFO, pcserviceinout: *mut u32, pguidservices: *mut ::windows::core::GUID) -> u32; + fn BluetoothEnumerateInstalledServices(hradio: super::super::Foundation::HANDLE, pbtdi: *const BLUETOOTH_DEVICE_INFO_STRUCT, pcserviceinout: *mut u32, pguidservices: *mut ::windows::core::GUID) -> u32; } BluetoothEnumerateInstalledServices(hradio.into(), ::core::mem::transmute(pbtdi), ::core::mem::transmute(pcserviceinout), ::core::mem::transmute(pguidservices)) } @@ -107,10 +107,10 @@ pub unsafe fn BluetoothFindDeviceClose(hfind: isize) -> super::super::Foundation #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothFindFirstDevice(pbtsp: &BLUETOOTH_DEVICE_SEARCH_PARAMS, pbtdi: &mut BLUETOOTH_DEVICE_INFO) -> isize { +pub unsafe fn BluetoothFindFirstDevice(pbtsp: &BLUETOOTH_DEVICE_SEARCH_PARAMS, pbtdi: &mut BLUETOOTH_DEVICE_INFO_STRUCT) -> isize { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothFindFirstDevice(pbtsp: *const BLUETOOTH_DEVICE_SEARCH_PARAMS, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> isize; + fn BluetoothFindFirstDevice(pbtsp: *const BLUETOOTH_DEVICE_SEARCH_PARAMS, pbtdi: *mut BLUETOOTH_DEVICE_INFO_STRUCT) -> isize; } BluetoothFindFirstDevice(::core::mem::transmute(pbtsp), ::core::mem::transmute(pbtdi)) } @@ -127,10 +127,10 @@ pub unsafe fn BluetoothFindFirstRadio(pbtfrp: &BLUETOOTH_FIND_RADIO_PARAMS, phra #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothFindNextDevice(hfind: isize, pbtdi: &mut BLUETOOTH_DEVICE_INFO) -> super::super::Foundation::BOOL { +pub unsafe fn BluetoothFindNextDevice(hfind: isize, pbtdi: &mut BLUETOOTH_DEVICE_INFO_STRUCT) -> super::super::Foundation::BOOL { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothFindNextDevice(hfind: isize, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> super::super::Foundation::BOOL; + fn BluetoothFindNextDevice(hfind: isize, pbtdi: *mut BLUETOOTH_DEVICE_INFO_STRUCT) -> super::super::Foundation::BOOL; } BluetoothFindNextDevice(hfind, ::core::mem::transmute(pbtdi)) } @@ -322,13 +322,13 @@ pub unsafe fn BluetoothGATTUnregisterEvent(eventhandle: isize, flags: u32) -> :: #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothGetDeviceInfo<'a, P0>(hradio: P0, pbtdi: &mut BLUETOOTH_DEVICE_INFO) -> u32 +pub unsafe fn BluetoothGetDeviceInfo<'a, P0>(hradio: P0, pbtdi: &mut BLUETOOTH_DEVICE_INFO_STRUCT) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothGetDeviceInfo(hradio: super::super::Foundation::HANDLE, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> u32; + fn BluetoothGetDeviceInfo(hradio: super::super::Foundation::HANDLE, pbtdi: *mut BLUETOOTH_DEVICE_INFO_STRUCT) -> u32; } BluetoothGetDeviceInfo(hradio.into(), ::core::mem::transmute(pbtdi)) } @@ -384,29 +384,29 @@ pub unsafe fn BluetoothIsVersionAvailable(majorversion: u8, minorversion: u8) -> #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothRegisterForAuthentication(pbtdi: ::core::option::Option<&BLUETOOTH_DEVICE_INFO>, phreghandle: &mut isize, pfncallback: PFN_AUTHENTICATION_CALLBACK, pvparam: *const ::core::ffi::c_void) -> u32 { +pub unsafe fn BluetoothRegisterForAuthentication(pbtdi: ::core::option::Option<&BLUETOOTH_DEVICE_INFO_STRUCT>, phreghandle: &mut isize, pfncallback: PFN_AUTHENTICATION_CALLBACK, pvparam: *const ::core::ffi::c_void) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothRegisterForAuthentication(pbtdi: *const BLUETOOTH_DEVICE_INFO, phreghandle: *mut isize, pfncallback: *mut ::core::ffi::c_void, pvparam: *const ::core::ffi::c_void) -> u32; + fn BluetoothRegisterForAuthentication(pbtdi: *const BLUETOOTH_DEVICE_INFO_STRUCT, phreghandle: *mut isize, pfncallback: *mut ::core::ffi::c_void, pvparam: *const ::core::ffi::c_void) -> u32; } BluetoothRegisterForAuthentication(::core::mem::transmute(pbtdi), ::core::mem::transmute(phreghandle), ::core::mem::transmute(pfncallback), ::core::mem::transmute(pvparam)) } #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothRegisterForAuthenticationEx(pbtdiin: ::core::option::Option<&BLUETOOTH_DEVICE_INFO>, phreghandleout: &mut isize, pfncallbackin: PFN_AUTHENTICATION_CALLBACK_EX, pvparam: *const ::core::ffi::c_void) -> u32 { +pub unsafe fn BluetoothRegisterForAuthenticationEx(pbtdiin: ::core::option::Option<&BLUETOOTH_DEVICE_INFO_STRUCT>, phreghandleout: &mut isize, pfncallbackin: PFN_AUTHENTICATION_CALLBACK_EX, pvparam: *const ::core::ffi::c_void) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothRegisterForAuthenticationEx(pbtdiin: *const BLUETOOTH_DEVICE_INFO, phreghandleout: *mut isize, pfncallbackin: *mut ::core::ffi::c_void, pvparam: *const ::core::ffi::c_void) -> u32; + fn BluetoothRegisterForAuthenticationEx(pbtdiin: *const BLUETOOTH_DEVICE_INFO_STRUCT, phreghandleout: *mut isize, pfncallbackin: *mut ::core::ffi::c_void, pvparam: *const ::core::ffi::c_void) -> u32; } BluetoothRegisterForAuthenticationEx(::core::mem::transmute(pbtdiin), ::core::mem::transmute(phreghandleout), ::core::mem::transmute(pfncallbackin), ::core::mem::transmute(pvparam)) } #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`*"] #[inline] -pub unsafe fn BluetoothRemoveDevice(paddress: &BLUETOOTH_ADDRESS) -> u32 { +pub unsafe fn BluetoothRemoveDevice(paddress: &BLUETOOTH_ADDRESS_STRUCT) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothRemoveDevice(paddress: *const BLUETOOTH_ADDRESS) -> u32; + fn BluetoothRemoveDevice(paddress: *const BLUETOOTH_ADDRESS_STRUCT) -> u32; } BluetoothRemoveDevice(::core::mem::transmute(paddress)) } @@ -482,14 +482,14 @@ pub unsafe fn BluetoothSelectDevicesFree(pbtsdp: &mut BLUETOOTH_SELECT_DEVICE_PA #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothSendAuthenticationResponse<'a, P0, P1>(hradio: P0, pbtdi: &BLUETOOTH_DEVICE_INFO, pszpasskey: P1) -> u32 +pub unsafe fn BluetoothSendAuthenticationResponse<'a, P0, P1>(hradio: P0, pbtdi: &BLUETOOTH_DEVICE_INFO_STRUCT, pszpasskey: P1) -> u32 where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothSendAuthenticationResponse(hradio: super::super::Foundation::HANDLE, pbtdi: *const BLUETOOTH_DEVICE_INFO, pszpasskey: ::windows::core::PCWSTR) -> u32; + fn BluetoothSendAuthenticationResponse(hradio: super::super::Foundation::HANDLE, pbtdi: *const BLUETOOTH_DEVICE_INFO_STRUCT, pszpasskey: ::windows::core::PCWSTR) -> u32; } BluetoothSendAuthenticationResponse(hradio.into(), ::core::mem::transmute(pbtdi), pszpasskey.into()) } @@ -509,26 +509,26 @@ where #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothSetLocalServiceInfo<'a, P0>(hradioin: P0, pclassguid: &::windows::core::GUID, ulinstance: u32, pserviceinfoin: &BLUETOOTH_LOCAL_SERVICE_INFO) -> u32 +pub unsafe fn BluetoothSetLocalServiceInfo<'a, P0>(hradioin: P0, pclassguid: &::windows::core::GUID, ulinstance: u32, pserviceinfoin: &BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothSetLocalServiceInfo(hradioin: super::super::Foundation::HANDLE, pclassguid: *const ::windows::core::GUID, ulinstance: u32, pserviceinfoin: *const BLUETOOTH_LOCAL_SERVICE_INFO) -> u32; + fn BluetoothSetLocalServiceInfo(hradioin: super::super::Foundation::HANDLE, pclassguid: *const ::windows::core::GUID, ulinstance: u32, pserviceinfoin: *const BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT) -> u32; } BluetoothSetLocalServiceInfo(hradioin.into(), ::core::mem::transmute(pclassguid), ulinstance, ::core::mem::transmute(pserviceinfoin)) } #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothSetServiceState<'a, P0>(hradio: P0, pbtdi: &BLUETOOTH_DEVICE_INFO, pguidservice: &::windows::core::GUID, dwserviceflags: u32) -> u32 +pub unsafe fn BluetoothSetServiceState<'a, P0>(hradio: P0, pbtdi: &BLUETOOTH_DEVICE_INFO_STRUCT, pguidservice: &::windows::core::GUID, dwserviceflags: u32) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothSetServiceState(hradio: super::super::Foundation::HANDLE, pbtdi: *const BLUETOOTH_DEVICE_INFO, pguidservice: *const ::windows::core::GUID, dwserviceflags: u32) -> u32; + fn BluetoothSetServiceState(hradio: super::super::Foundation::HANDLE, pbtdi: *const BLUETOOTH_DEVICE_INFO_STRUCT, pguidservice: *const ::windows::core::GUID, dwserviceflags: u32) -> u32; } BluetoothSetServiceState(hradio.into(), ::core::mem::transmute(pbtdi), ::core::mem::transmute(pguidservice), dwserviceflags) } @@ -545,10 +545,10 @@ pub unsafe fn BluetoothUnregisterAuthentication(hreghandle: isize) -> super::sup #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn BluetoothUpdateDeviceRecord(pbtdi: &BLUETOOTH_DEVICE_INFO) -> u32 { +pub unsafe fn BluetoothUpdateDeviceRecord(pbtdi: &BLUETOOTH_DEVICE_INFO_STRUCT) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BluetoothUpdateDeviceRecord(pbtdi: *const BLUETOOTH_DEVICE_INFO) -> u32; + fn BluetoothUpdateDeviceRecord(pbtdi: *const BLUETOOTH_DEVICE_INFO_STRUCT) -> u32; } BluetoothUpdateDeviceRecord(::core::mem::transmute(pbtdi)) } @@ -2454,51 +2454,51 @@ impl ::core::fmt::Debug for SDP_TYPE { } #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`*"] -pub struct BLUETOOTH_ADDRESS { - pub Anonymous: BLUETOOTH_ADDRESS_0, +pub struct BLUETOOTH_ADDRESS_STRUCT { + pub Anonymous: BLUETOOTH_ADDRESS_STRUCT_0, } -impl ::core::marker::Copy for BLUETOOTH_ADDRESS {} -impl ::core::clone::Clone for BLUETOOTH_ADDRESS { +impl ::core::marker::Copy for BLUETOOTH_ADDRESS_STRUCT {} +impl ::core::clone::Clone for BLUETOOTH_ADDRESS_STRUCT { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for BLUETOOTH_ADDRESS { +unsafe impl ::windows::core::Abi for BLUETOOTH_ADDRESS_STRUCT { type Abi = Self; } -impl ::core::cmp::PartialEq for BLUETOOTH_ADDRESS { +impl ::core::cmp::PartialEq for BLUETOOTH_ADDRESS_STRUCT { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for BLUETOOTH_ADDRESS {} -impl ::core::default::Default for BLUETOOTH_ADDRESS { +impl ::core::cmp::Eq for BLUETOOTH_ADDRESS_STRUCT {} +impl ::core::default::Default for BLUETOOTH_ADDRESS_STRUCT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`*"] -pub union BLUETOOTH_ADDRESS_0 { +pub union BLUETOOTH_ADDRESS_STRUCT_0 { pub ullLong: u64, pub rgBytes: [u8; 6], } -impl ::core::marker::Copy for BLUETOOTH_ADDRESS_0 {} -impl ::core::clone::Clone for BLUETOOTH_ADDRESS_0 { +impl ::core::marker::Copy for BLUETOOTH_ADDRESS_STRUCT_0 {} +impl ::core::clone::Clone for BLUETOOTH_ADDRESS_STRUCT_0 { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for BLUETOOTH_ADDRESS_0 { +unsafe impl ::windows::core::Abi for BLUETOOTH_ADDRESS_STRUCT_0 { type Abi = Self; } -impl ::core::cmp::PartialEq for BLUETOOTH_ADDRESS_0 { +impl ::core::cmp::PartialEq for BLUETOOTH_ADDRESS_STRUCT_0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for BLUETOOTH_ADDRESS_0 {} -impl ::core::default::Default for BLUETOOTH_ADDRESS_0 { +impl ::core::cmp::Eq for BLUETOOTH_ADDRESS_STRUCT_0 {} +impl ::core::default::Default for BLUETOOTH_ADDRESS_STRUCT_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -2506,7 +2506,7 @@ impl ::core::default::Default for BLUETOOTH_ADDRESS_0 { #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`*"] pub struct BLUETOOTH_AUTHENTICATE_RESPONSE { - pub bthAddressRemote: BLUETOOTH_ADDRESS, + pub bthAddressRemote: BLUETOOTH_ADDRESS_STRUCT, pub authMethod: BLUETOOTH_AUTHENTICATION_METHOD, pub Anonymous: BLUETOOTH_AUTHENTICATE_RESPONSE_0, pub negativeResponse: u8, @@ -2563,7 +2563,7 @@ impl ::core::default::Default for BLUETOOTH_AUTHENTICATE_RESPONSE_0 { #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS { - pub deviceInfo: BLUETOOTH_DEVICE_INFO, + pub deviceInfo: BLUETOOTH_DEVICE_INFO_STRUCT, pub authenticationMethod: BLUETOOTH_AUTHENTICATION_METHOD, pub ioCapability: BLUETOOTH_IO_CAPABILITY, pub authenticationRequirements: BLUETOOTH_AUTHENTICATION_REQUIREMENTS, @@ -2662,9 +2662,9 @@ impl ::core::default::Default for BLUETOOTH_COD_PAIRS { #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct BLUETOOTH_DEVICE_INFO { +pub struct BLUETOOTH_DEVICE_INFO_STRUCT { pub dwSize: u32, - pub Address: BLUETOOTH_ADDRESS, + pub Address: BLUETOOTH_ADDRESS_STRUCT, pub ulClassofDevice: u32, pub fConnected: super::super::Foundation::BOOL, pub fRemembered: super::super::Foundation::BOOL, @@ -2674,27 +2674,27 @@ pub struct BLUETOOTH_DEVICE_INFO { pub szName: [u16; 248], } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for BLUETOOTH_DEVICE_INFO {} +impl ::core::marker::Copy for BLUETOOTH_DEVICE_INFO_STRUCT {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for BLUETOOTH_DEVICE_INFO { +impl ::core::clone::Clone for BLUETOOTH_DEVICE_INFO_STRUCT { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for BLUETOOTH_DEVICE_INFO { +unsafe impl ::windows::core::Abi for BLUETOOTH_DEVICE_INFO_STRUCT { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for BLUETOOTH_DEVICE_INFO { +impl ::core::cmp::PartialEq for BLUETOOTH_DEVICE_INFO_STRUCT { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for BLUETOOTH_DEVICE_INFO {} +impl ::core::cmp::Eq for BLUETOOTH_DEVICE_INFO_STRUCT {} #[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for BLUETOOTH_DEVICE_INFO { +impl ::core::default::Default for BLUETOOTH_DEVICE_INFO_STRUCT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -2842,34 +2842,34 @@ impl ::core::default::Default for BLUETOOTH_GATT_VALUE_CHANGED_EVENT_REGISTRATIO #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct BLUETOOTH_LOCAL_SERVICE_INFO { +pub struct BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT { pub Enabled: super::super::Foundation::BOOL, - pub btAddr: BLUETOOTH_ADDRESS, + pub btAddr: BLUETOOTH_ADDRESS_STRUCT, pub szName: [u16; 256], pub szDeviceString: [u16; 256], } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for BLUETOOTH_LOCAL_SERVICE_INFO {} +impl ::core::marker::Copy for BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for BLUETOOTH_LOCAL_SERVICE_INFO { +impl ::core::clone::Clone for BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for BLUETOOTH_LOCAL_SERVICE_INFO { +unsafe impl ::windows::core::Abi for BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for BLUETOOTH_LOCAL_SERVICE_INFO { +impl ::core::cmp::PartialEq for BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for BLUETOOTH_LOCAL_SERVICE_INFO {} +impl ::core::cmp::Eq for BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT {} #[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for BLUETOOTH_LOCAL_SERVICE_INFO { +impl ::core::default::Default for BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -3000,7 +3000,7 @@ impl ::core::default::Default for BLUETOOTH_PIN_INFO { #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`*"] pub struct BLUETOOTH_RADIO_INFO { pub dwSize: u32, - pub address: BLUETOOTH_ADDRESS, + pub address: BLUETOOTH_ADDRESS_STRUCT, pub szName: [u16; 248], pub ulClassofDevice: u32, pub lmpSubversion: u16, @@ -3044,7 +3044,7 @@ pub struct BLUETOOTH_SELECT_DEVICE_PARAMS { pub pfnDeviceCallback: PFN_DEVICE_CALLBACK, pub pvParam: *mut ::core::ffi::c_void, pub cNumDevices: u32, - pub pDevices: *mut BLUETOOTH_DEVICE_INFO, + pub pDevices: *mut BLUETOOTH_DEVICE_INFO_STRUCT, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for BLUETOOTH_SELECT_DEVICE_PARAMS {} @@ -4531,7 +4531,7 @@ impl ::core::default::Default for SdpQueryUuidUnion { pub type PFNBLUETOOTH_GATT_EVENT_CALLBACK = ::core::option::Option; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type PFN_AUTHENTICATION_CALLBACK = ::core::option::Option super::super::Foundation::BOOL>; +pub type PFN_AUTHENTICATION_CALLBACK = ::core::option::Option super::super::Foundation::BOOL>; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type PFN_AUTHENTICATION_CALLBACK_EX = ::core::option::Option super::super::Foundation::BOOL>; @@ -4540,6 +4540,6 @@ pub type PFN_AUTHENTICATION_CALLBACK_EX = ::core::option::Option super::super::Foundation::BOOL>; #[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type PFN_DEVICE_CALLBACK = ::core::option::Option super::super::Foundation::BOOL>; +pub type PFN_DEVICE_CALLBACK = ::core::option::Option super::super::Foundation::BOOL>; #[cfg(feature = "implement")] ::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs index cb1d6a3a7f..bc17a15ba8 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs @@ -1268,10 +1268,10 @@ pub unsafe fn CM_Get_Hardware_Profile_InfoA(ulindex: u32, phwprofileinfo: &mut H } #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] #[inline] -pub unsafe fn CM_Get_Hardware_Profile_InfoW(ulindex: u32, phwprofileinfo: &mut HWProfileInfo_sW, ulflags: u32) -> CONFIGRET { +pub unsafe fn CM_Get_Hardware_Profile_InfoW(ulindex: u32, phwprofileinfo: &mut HWPROFILEINFO_W, ulflags: u32) -> CONFIGRET { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn CM_Get_Hardware_Profile_InfoW(ulindex: u32, phwprofileinfo: *mut HWProfileInfo_sW, ulflags: u32) -> CONFIGRET; + fn CM_Get_Hardware_Profile_InfoW(ulindex: u32, phwprofileinfo: *mut HWPROFILEINFO_W, ulflags: u32) -> CONFIGRET; } CM_Get_Hardware_Profile_InfoW(ulindex, ::core::mem::transmute(phwprofileinfo), ulflags) } @@ -1287,10 +1287,10 @@ pub unsafe fn CM_Get_Hardware_Profile_Info_ExA(ulindex: u32, phwprofileinfo: &mu } #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] #[inline] -pub unsafe fn CM_Get_Hardware_Profile_Info_ExW(ulindex: u32, phwprofileinfo: &mut HWProfileInfo_sW, ulflags: u32, hmachine: isize) -> CONFIGRET { +pub unsafe fn CM_Get_Hardware_Profile_Info_ExW(ulindex: u32, phwprofileinfo: &mut HWPROFILEINFO_W, ulflags: u32, hmachine: isize) -> CONFIGRET { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn CM_Get_Hardware_Profile_Info_ExW(ulindex: u32, phwprofileinfo: *mut HWProfileInfo_sW, ulflags: u32, hmachine: isize) -> CONFIGRET; + fn CM_Get_Hardware_Profile_Info_ExW(ulindex: u32, phwprofileinfo: *mut HWPROFILEINFO_W, ulflags: u32, hmachine: isize) -> CONFIGRET; } CM_Get_Hardware_Profile_Info_ExW(ulindex, ::core::mem::transmute(phwprofileinfo), ulflags, hmachine) } @@ -10176,7 +10176,7 @@ impl ::core::default::Default for BUSNUMBER_RANGE { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct BUSNUMBER_RESOURCE { pub BusNumber_Header: BUSNUMBER_DES, @@ -10840,6 +10840,62 @@ impl ::core::default::Default for CONFLICT_DETAILS_W { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct CONNECTION_DES { + pub COND_Type: u32, + pub COND_Flags: u32, + pub COND_Class: u8, + pub COND_ClassType: u8, + pub COND_Reserved1: u8, + pub COND_Reserved2: u8, + pub COND_Id: i64, +} +impl ::core::marker::Copy for CONNECTION_DES {} +impl ::core::clone::Clone for CONNECTION_DES { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for CONNECTION_DES { + type Abi = Self; +} +impl ::core::cmp::PartialEq for CONNECTION_DES { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for CONNECTION_DES {} +impl ::core::default::Default for CONNECTION_DES { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct CONNECTION_RESOURCE { + pub Connection_Header: CONNECTION_DES, +} +impl ::core::marker::Copy for CONNECTION_RESOURCE {} +impl ::core::clone::Clone for CONNECTION_RESOURCE { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for CONNECTION_RESOURCE { + type Abi = Self; +} +impl ::core::cmp::PartialEq for CONNECTION_RESOURCE { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for CONNECTION_RESOURCE {} +impl ::core::default::Default for CONNECTION_RESOURCE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct CS_DES { pub CSD_SignatureLength: u32, pub CSD_LegacyDataOffset: u32, @@ -10868,7 +10924,7 @@ impl ::core::default::Default for CS_DES { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct CS_RESOURCE { pub CS_Header: CS_DES, @@ -10895,56 +10951,83 @@ impl ::core::default::Default for CS_RESOURCE { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct Connection_Des_s { - pub COND_Type: u32, - pub COND_Flags: u32, - pub COND_Class: u8, - pub COND_ClassType: u8, - pub COND_Reserved1: u8, - pub COND_Reserved2: u8, - pub COND_Id: i64, +pub struct DEVPRIVATE_DES { + pub PD_Count: u32, + pub PD_Type: u32, + pub PD_Data1: u32, + pub PD_Data2: u32, + pub PD_Data3: u32, + pub PD_Flags: u32, } -impl ::core::marker::Copy for Connection_Des_s {} -impl ::core::clone::Clone for Connection_Des_s { +impl ::core::marker::Copy for DEVPRIVATE_DES {} +impl ::core::clone::Clone for DEVPRIVATE_DES { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for Connection_Des_s { +unsafe impl ::windows::core::Abi for DEVPRIVATE_DES { type Abi = Self; } -impl ::core::cmp::PartialEq for Connection_Des_s { +impl ::core::cmp::PartialEq for DEVPRIVATE_DES { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for Connection_Des_s {} -impl ::core::default::Default for Connection_Des_s { +impl ::core::cmp::Eq for DEVPRIVATE_DES {} +impl ::core::default::Default for DEVPRIVATE_DES { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct DEVPRIVATE_RANGE { + pub PR_Data1: u32, + pub PR_Data2: u32, + pub PR_Data3: u32, +} +impl ::core::marker::Copy for DEVPRIVATE_RANGE {} +impl ::core::clone::Clone for DEVPRIVATE_RANGE { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for DEVPRIVATE_RANGE { + type Abi = Self; +} +impl ::core::cmp::PartialEq for DEVPRIVATE_RANGE { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for DEVPRIVATE_RANGE {} +impl ::core::default::Default for DEVPRIVATE_RANGE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct Connection_Resource_s { - pub Connection_Header: Connection_Des_s, +pub struct DEVPRIVATE_RESOURCE { + pub PRV_Header: DEVPRIVATE_DES, + pub PRV_Data: [DEVPRIVATE_RANGE; 1], } -impl ::core::marker::Copy for Connection_Resource_s {} -impl ::core::clone::Clone for Connection_Resource_s { +impl ::core::marker::Copy for DEVPRIVATE_RESOURCE {} +impl ::core::clone::Clone for DEVPRIVATE_RESOURCE { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for Connection_Resource_s { +unsafe impl ::windows::core::Abi for DEVPRIVATE_RESOURCE { type Abi = Self; } -impl ::core::cmp::PartialEq for Connection_Resource_s { +impl ::core::cmp::PartialEq for DEVPRIVATE_RESOURCE { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for Connection_Resource_s {} -impl ::core::default::Default for Connection_Resource_s { +impl ::core::cmp::Eq for DEVPRIVATE_RESOURCE {} +impl ::core::default::Default for DEVPRIVATE_RESOURCE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -11004,7 +11087,7 @@ impl ::core::default::Default for DMA_RANGE { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct DMA_RESOURCE { pub DMA_Header: DMA_DES, @@ -11030,89 +11113,6 @@ impl ::core::default::Default for DMA_RESOURCE { unsafe { ::core::mem::zeroed() } } } -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct DevPrivate_Des_s { - pub PD_Count: u32, - pub PD_Type: u32, - pub PD_Data1: u32, - pub PD_Data2: u32, - pub PD_Data3: u32, - pub PD_Flags: u32, -} -impl ::core::marker::Copy for DevPrivate_Des_s {} -impl ::core::clone::Clone for DevPrivate_Des_s { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for DevPrivate_Des_s { - type Abi = Self; -} -impl ::core::cmp::PartialEq for DevPrivate_Des_s { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for DevPrivate_Des_s {} -impl ::core::default::Default for DevPrivate_Des_s { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct DevPrivate_Range_s { - pub PR_Data1: u32, - pub PR_Data2: u32, - pub PR_Data3: u32, -} -impl ::core::marker::Copy for DevPrivate_Range_s {} -impl ::core::clone::Clone for DevPrivate_Range_s { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for DevPrivate_Range_s { - type Abi = Self; -} -impl ::core::cmp::PartialEq for DevPrivate_Range_s { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for DevPrivate_Range_s {} -impl ::core::default::Default for DevPrivate_Range_s { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct DevPrivate_Resource_s { - pub PRV_Header: DevPrivate_Des_s, - pub PRV_Data: [DevPrivate_Range_s; 1], -} -impl ::core::marker::Copy for DevPrivate_Resource_s {} -impl ::core::clone::Clone for DevPrivate_Resource_s { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for DevPrivate_Resource_s { - type Abi = Self; -} -impl ::core::cmp::PartialEq for DevPrivate_Resource_s { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for DevPrivate_Resource_s {} -impl ::core::default::Default for DevPrivate_Resource_s { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] @@ -11636,62 +11636,62 @@ unsafe impl ::windows::core::Abi for HDEVINFO { type Abi = Self; } #[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct HWProfileInfo_sA { +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct HWPROFILEINFO_W { pub HWPI_ulHWProfile: u32, - pub HWPI_szFriendlyName: [super::super::Foundation::CHAR; 80], + pub HWPI_szFriendlyName: [u16; 80], pub HWPI_dwFlags: u32, } -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for HWProfileInfo_sA {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for HWProfileInfo_sA { +impl ::core::marker::Copy for HWPROFILEINFO_W {} +impl ::core::clone::Clone for HWPROFILEINFO_W { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for HWProfileInfo_sA { +unsafe impl ::windows::core::Abi for HWPROFILEINFO_W { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for HWProfileInfo_sA { +impl ::core::cmp::PartialEq for HWPROFILEINFO_W { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for HWProfileInfo_sA {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for HWProfileInfo_sA { +impl ::core::cmp::Eq for HWPROFILEINFO_W {} +impl ::core::default::Default for HWPROFILEINFO_W { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct HWProfileInfo_sW { +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct HWProfileInfo_sA { pub HWPI_ulHWProfile: u32, - pub HWPI_szFriendlyName: [u16; 80], + pub HWPI_szFriendlyName: [super::super::Foundation::CHAR; 80], pub HWPI_dwFlags: u32, } -impl ::core::marker::Copy for HWProfileInfo_sW {} -impl ::core::clone::Clone for HWProfileInfo_sW { +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for HWProfileInfo_sA {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for HWProfileInfo_sA { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for HWProfileInfo_sW { +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for HWProfileInfo_sA { type Abi = Self; } -impl ::core::cmp::PartialEq for HWProfileInfo_sW { +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for HWProfileInfo_sA { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for HWProfileInfo_sW {} -impl ::core::default::Default for HWProfileInfo_sW { +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for HWProfileInfo_sA {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for HWProfileInfo_sA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -11936,7 +11936,7 @@ impl ::core::default::Default for IRQ_RANGE { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct IRQ_RESOURCE_32 { pub IRQ_Header: IRQ_DES_32, @@ -11962,7 +11962,7 @@ impl ::core::default::Default for IRQ_RESOURCE_32 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct IRQ_RESOURCE_64 { pub IRQ_Header: IRQ_DES_64, @@ -12020,6 +12020,92 @@ impl ::core::default::Default for MEM_DES { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct MEM_LARGE_DES { + pub MLD_Count: u32, + pub MLD_Type: u32, + pub MLD_Alloc_Base: u64, + pub MLD_Alloc_End: u64, + pub MLD_Flags: u32, + pub MLD_Reserved: u32, +} +impl ::core::marker::Copy for MEM_LARGE_DES {} +impl ::core::clone::Clone for MEM_LARGE_DES { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for MEM_LARGE_DES { + type Abi = Self; +} +impl ::core::cmp::PartialEq for MEM_LARGE_DES { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for MEM_LARGE_DES {} +impl ::core::default::Default for MEM_LARGE_DES { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct MEM_LARGE_RANGE { + pub MLR_Align: u64, + pub MLR_nBytes: u64, + pub MLR_Min: u64, + pub MLR_Max: u64, + pub MLR_Flags: u32, + pub MLR_Reserved: u32, +} +impl ::core::marker::Copy for MEM_LARGE_RANGE {} +impl ::core::clone::Clone for MEM_LARGE_RANGE { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for MEM_LARGE_RANGE { + type Abi = Self; +} +impl ::core::cmp::PartialEq for MEM_LARGE_RANGE { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for MEM_LARGE_RANGE {} +impl ::core::default::Default for MEM_LARGE_RANGE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] +pub struct MEM_LARGE_RESOURCE { + pub MEM_LARGE_Header: MEM_LARGE_DES, + pub MEM_LARGE_Data: [MEM_LARGE_RANGE; 1], +} +impl ::core::marker::Copy for MEM_LARGE_RESOURCE {} +impl ::core::clone::Clone for MEM_LARGE_RESOURCE { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for MEM_LARGE_RESOURCE { + type Abi = Self; +} +impl ::core::cmp::PartialEq for MEM_LARGE_RESOURCE { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for MEM_LARGE_RESOURCE {} +impl ::core::default::Default for MEM_LARGE_RESOURCE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct MEM_RANGE { pub MR_Align: u64, pub MR_nBytes: u32, @@ -12048,7 +12134,7 @@ impl ::core::default::Default for MEM_RANGE { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct MEM_RESOURCE { pub MEM_Header: MEM_DES, @@ -12105,7 +12191,7 @@ impl ::core::default::Default for MFCARD_DES { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct MFCARD_RESOURCE { pub MfCard_Header: MFCARD_DES, @@ -12132,92 +12218,6 @@ impl ::core::default::Default for MFCARD_RESOURCE { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct Mem_Large_Des_s { - pub MLD_Count: u32, - pub MLD_Type: u32, - pub MLD_Alloc_Base: u64, - pub MLD_Alloc_End: u64, - pub MLD_Flags: u32, - pub MLD_Reserved: u32, -} -impl ::core::marker::Copy for Mem_Large_Des_s {} -impl ::core::clone::Clone for Mem_Large_Des_s { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for Mem_Large_Des_s { - type Abi = Self; -} -impl ::core::cmp::PartialEq for Mem_Large_Des_s { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for Mem_Large_Des_s {} -impl ::core::default::Default for Mem_Large_Des_s { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct Mem_Large_Range_s { - pub MLR_Align: u64, - pub MLR_nBytes: u64, - pub MLR_Min: u64, - pub MLR_Max: u64, - pub MLR_Flags: u32, - pub MLR_Reserved: u32, -} -impl ::core::marker::Copy for Mem_Large_Range_s {} -impl ::core::clone::Clone for Mem_Large_Range_s { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for Mem_Large_Range_s { - type Abi = Self; -} -impl ::core::cmp::PartialEq for Mem_Large_Range_s { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for Mem_Large_Range_s {} -impl ::core::default::Default for Mem_Large_Range_s { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] -pub struct Mem_Large_Resource_s { - pub MEM_LARGE_Header: Mem_Large_Des_s, - pub MEM_LARGE_Data: [Mem_Large_Range_s; 1], -} -impl ::core::marker::Copy for Mem_Large_Resource_s {} -impl ::core::clone::Clone for Mem_Large_Resource_s { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for Mem_Large_Resource_s { - type Abi = Self; -} -impl ::core::cmp::PartialEq for Mem_Large_Resource_s { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for Mem_Large_Resource_s {} -impl ::core::default::Default for Mem_Large_Resource_s { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct PCCARD_DES { pub PCD_Count: u32, pub PCD_Type: u32, @@ -12250,7 +12250,7 @@ impl ::core::default::Default for PCCARD_DES { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"] pub struct PCCARD_RESOURCE { pub PcCard_Header: PCCARD_DES, diff --git a/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/impl.rs index 0bd1936c77..dfe6d1081b 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/impl.rs @@ -338,16 +338,16 @@ impl IFunctionDiscoveryServiceProvider_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] pub trait IFunctionInstance_Impl: Sized + super::super::System::Com::IServiceProvider_Impl { fn GetID(&self) -> ::windows::core::Result<*mut u16>; fn GetProviderInstanceID(&self) -> ::windows::core::Result<*mut u16>; - fn OpenPropertyStore(&self, dwstgaccess: super::super::System::Com::StructuredStorage::STGM) -> ::windows::core::Result; + fn OpenPropertyStore(&self, dwstgaccess: super::super::System::Com::STGM) -> ::windows::core::Result; fn GetCategory(&self, ppszcomemcategory: *mut *mut u16, ppszcomemsubcategory: *mut *mut u16) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl ::windows::core::RuntimeName for IFunctionInstance {} -#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IFunctionInstance_Vtbl { pub const fn new, Impl: IFunctionInstance_Impl, const OFFSET: isize>() -> IFunctionInstance_Vtbl { unsafe extern "system" fn GetID, Impl: IFunctionInstance_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppszcomemidentity: *mut *mut u16) -> ::windows::core::HRESULT { @@ -372,7 +372,7 @@ impl IFunctionInstance_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenPropertyStore, Impl: IFunctionInstance_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwstgaccess: super::super::System::Com::StructuredStorage::STGM, ppipropertystore: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenPropertyStore, Impl: IFunctionInstance_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwstgaccess: super::super::System::Com::STGM, ppipropertystore: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenPropertyStore(::core::mem::transmute_copy(&dwstgaccess)) { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs index 149d1c8755..541a023fe1 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs @@ -544,9 +544,9 @@ impl IFunctionInstance { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetProviderInstanceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u16>(result__) } - #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"] - #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] - pub unsafe fn OpenPropertyStore(&self, dwstgaccess: super::super::System::Com::StructuredStorage::STGM) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"] + #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] + pub unsafe fn OpenPropertyStore(&self, dwstgaccess: super::super::System::Com::STGM) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).OpenPropertyStore)(::windows::core::Interface::as_raw(self), dwstgaccess, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } @@ -622,9 +622,9 @@ pub struct IFunctionInstance_Vtbl { pub base__: super::super::System::Com::IServiceProvider_Vtbl, pub GetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszcomemidentity: *mut *mut u16) -> ::windows::core::HRESULT, pub GetProviderInstanceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszcomemproviderinstanceidentity: *mut *mut u16) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] - pub OpenPropertyStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstgaccess: super::super::System::Com::StructuredStorage::STGM, ppipropertystore: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem")))] + #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] + pub OpenPropertyStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstgaccess: super::super::System::Com::STGM, ppipropertystore: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem")))] OpenPropertyStore: usize, pub GetCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszcomemcategory: *mut *mut u16, ppszcomemsubcategory: *mut *mut u16) -> ::windows::core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs index b8b298253f..cc6cfd1fb8 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs @@ -898,7 +898,7 @@ impl IPortableDeviceDataStream { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::super::System::Com::LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -908,7 +908,7 @@ impl IPortableDeviceDataStream { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: super::super::System::Com::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] 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 8355afbab3..742e345af9 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs @@ -3,7 +3,7 @@ #[inline] pub unsafe fn CollectionsListAllocateBufferAndSerialize(sourcecollection: &SENSOR_COLLECTION_LIST, ptargetbuffersizeinbytes: &mut u32, ptargetbuffer: &mut *mut u8) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn CollectionsListAllocateBufferAndSerialize(sourcecollection: *const SENSOR_COLLECTION_LIST, ptargetbuffersizeinbytes: *mut u32, ptargetbuffer: *mut *mut u8) -> super::super::Foundation::NTSTATUS; } CollectionsListAllocateBufferAndSerialize(::core::mem::transmute(sourcecollection), ::core::mem::transmute(ptargetbuffersizeinbytes), ::core::mem::transmute(ptargetbuffer)).ok() @@ -13,7 +13,7 @@ pub unsafe fn CollectionsListAllocateBufferAndSerialize(sourcecollection: &SENSO #[inline] pub unsafe fn CollectionsListCopyAndMarshall(target: &mut SENSOR_COLLECTION_LIST, source: &SENSOR_COLLECTION_LIST) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn CollectionsListCopyAndMarshall(target: *mut SENSOR_COLLECTION_LIST, source: *const SENSOR_COLLECTION_LIST) -> super::super::Foundation::NTSTATUS; } CollectionsListCopyAndMarshall(::core::mem::transmute(target), ::core::mem::transmute(source)).ok() @@ -23,7 +23,7 @@ pub unsafe fn CollectionsListCopyAndMarshall(target: &mut SENSOR_COLLECTION_LIST #[inline] pub unsafe fn CollectionsListDeserializeFromBuffer(sourcebuffer: &[u8], targetcollection: &mut SENSOR_COLLECTION_LIST) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn CollectionsListDeserializeFromBuffer(sourcebuffersizeinbytes: u32, sourcebuffer: *const u8, targetcollection: *mut SENSOR_COLLECTION_LIST) -> super::super::Foundation::NTSTATUS; } CollectionsListDeserializeFromBuffer(sourcebuffer.len() as _, ::core::mem::transmute(sourcebuffer.as_ptr()), ::core::mem::transmute(targetcollection)).ok() @@ -32,7 +32,7 @@ pub unsafe fn CollectionsListDeserializeFromBuffer(sourcebuffer: &[u8], targetco #[inline] pub unsafe fn CollectionsListGetFillableCount(buffersizebytes: u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn CollectionsListGetFillableCount(buffersizebytes: u32) -> u32; } CollectionsListGetFillableCount(buffersizebytes) @@ -42,7 +42,7 @@ pub unsafe fn CollectionsListGetFillableCount(buffersizebytes: u32) -> u32 { #[inline] pub unsafe fn CollectionsListGetMarshalledSize(collection: &SENSOR_COLLECTION_LIST) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn CollectionsListGetMarshalledSize(collection: *const SENSOR_COLLECTION_LIST) -> u32; } CollectionsListGetMarshalledSize(::core::mem::transmute(collection)) @@ -52,7 +52,7 @@ pub unsafe fn CollectionsListGetMarshalledSize(collection: &SENSOR_COLLECTION_LI #[inline] pub unsafe fn CollectionsListGetMarshalledSizeWithoutSerialization(collection: &SENSOR_COLLECTION_LIST) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn CollectionsListGetMarshalledSizeWithoutSerialization(collection: *const SENSOR_COLLECTION_LIST) -> u32; } CollectionsListGetMarshalledSizeWithoutSerialization(::core::mem::transmute(collection)) @@ -62,7 +62,7 @@ pub unsafe fn CollectionsListGetMarshalledSizeWithoutSerialization(collection: & #[inline] pub unsafe fn CollectionsListGetSerializedSize(collection: &SENSOR_COLLECTION_LIST) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn CollectionsListGetSerializedSize(collection: *const SENSOR_COLLECTION_LIST) -> u32; } CollectionsListGetSerializedSize(::core::mem::transmute(collection)) @@ -72,7 +72,7 @@ pub unsafe fn CollectionsListGetSerializedSize(collection: &SENSOR_COLLECTION_LI #[inline] pub unsafe fn CollectionsListMarshall(target: &mut SENSOR_COLLECTION_LIST) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn CollectionsListMarshall(target: *mut SENSOR_COLLECTION_LIST) -> super::super::Foundation::NTSTATUS; } CollectionsListMarshall(::core::mem::transmute(target)).ok() @@ -82,7 +82,7 @@ pub unsafe fn CollectionsListMarshall(target: &mut SENSOR_COLLECTION_LIST) -> :: #[inline] pub unsafe fn CollectionsListSerializeToBuffer(sourcecollection: &SENSOR_COLLECTION_LIST, targetbuffer: &mut [u8]) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn CollectionsListSerializeToBuffer(sourcecollection: *const SENSOR_COLLECTION_LIST, targetbuffersizeinbytes: u32, targetbuffer: *mut u8) -> super::super::Foundation::NTSTATUS; } CollectionsListSerializeToBuffer(::core::mem::transmute(sourcecollection), targetbuffer.len() as _, ::core::mem::transmute(targetbuffer.as_ptr())).ok() @@ -92,7 +92,7 @@ pub unsafe fn CollectionsListSerializeToBuffer(sourcecollection: &SENSOR_COLLECT #[inline] pub unsafe fn CollectionsListSortSubscribedActivitiesByConfidence(thresholds: &SENSOR_COLLECTION_LIST, pcollection: &mut SENSOR_COLLECTION_LIST) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn CollectionsListSortSubscribedActivitiesByConfidence(thresholds: *const SENSOR_COLLECTION_LIST, pcollection: *mut SENSOR_COLLECTION_LIST) -> super::super::Foundation::NTSTATUS; } CollectionsListSortSubscribedActivitiesByConfidence(::core::mem::transmute(thresholds), ::core::mem::transmute(pcollection)).ok() @@ -102,7 +102,7 @@ pub unsafe fn CollectionsListSortSubscribedActivitiesByConfidence(thresholds: &S #[inline] pub unsafe fn CollectionsListUpdateMarshalledPointer(collection: &mut SENSOR_COLLECTION_LIST) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn CollectionsListUpdateMarshalledPointer(collection: *mut SENSOR_COLLECTION_LIST) -> super::super::Foundation::NTSTATUS; } CollectionsListUpdateMarshalledPointer(::core::mem::transmute(collection)).ok() @@ -112,7 +112,7 @@ pub unsafe fn CollectionsListUpdateMarshalledPointer(collection: &mut SENSOR_COL #[inline] pub unsafe fn EvaluateActivityThresholds(newsample: &SENSOR_COLLECTION_LIST, oldsample: &SENSOR_COLLECTION_LIST, thresholds: &SENSOR_COLLECTION_LIST) -> super::super::Foundation::BOOLEAN { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn EvaluateActivityThresholds(newsample: *const SENSOR_COLLECTION_LIST, oldsample: *const SENSOR_COLLECTION_LIST, thresholds: *const SENSOR_COLLECTION_LIST) -> super::super::Foundation::BOOLEAN; } EvaluateActivityThresholds(::core::mem::transmute(newsample), ::core::mem::transmute(oldsample), ::core::mem::transmute(thresholds)) @@ -122,7 +122,7 @@ pub unsafe fn EvaluateActivityThresholds(newsample: &SENSOR_COLLECTION_LIST, old #[inline] pub unsafe fn GetPerformanceTime(timems: &mut u32) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn GetPerformanceTime(timems: *mut u32) -> super::super::Foundation::NTSTATUS; } GetPerformanceTime(::core::mem::transmute(timems)).ok() @@ -132,7 +132,7 @@ pub unsafe fn GetPerformanceTime(timems: &mut u32) -> ::windows::core::Result<() #[inline] pub unsafe fn InitPropVariantFromCLSIDArray(members: &[::windows::core::GUID]) -> ::windows::core::Result { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn InitPropVariantFromCLSIDArray(members: *const ::windows::core::GUID, size: u32, ppropvar: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -143,7 +143,7 @@ pub unsafe fn InitPropVariantFromCLSIDArray(members: &[::windows::core::GUID]) - #[inline] pub unsafe fn InitPropVariantFromFloat(fltval: f32) -> ::windows::core::Result { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn InitPropVariantFromFloat(fltval: f32, ppropvar: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -154,7 +154,7 @@ pub unsafe fn InitPropVariantFromFloat(fltval: f32) -> ::windows::core::Result super::super::Foundation::BOOLEAN { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn IsCollectionListSame(lista: *const SENSOR_COLLECTION_LIST, listb: *const SENSOR_COLLECTION_LIST) -> super::super::Foundation::BOOLEAN; } IsCollectionListSame(::core::mem::transmute(lista), ::core::mem::transmute(listb)) @@ -164,7 +164,7 @@ pub unsafe fn IsCollectionListSame(lista: &SENSOR_COLLECTION_LIST, listb: &SENSO #[inline] pub unsafe fn IsGUIDPresentInList(guidarray: &[::windows::core::GUID], guidelem: &::windows::core::GUID) -> super::super::Foundation::BOOLEAN { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn IsGUIDPresentInList(guidarray: *const ::windows::core::GUID, arraylength: u32, guidelem: *const ::windows::core::GUID) -> super::super::Foundation::BOOLEAN; } IsGUIDPresentInList(::core::mem::transmute(guidarray.as_ptr()), guidarray.len() as _, ::core::mem::transmute(guidelem)) @@ -174,7 +174,7 @@ pub unsafe fn IsGUIDPresentInList(guidarray: &[::windows::core::GUID], guidelem: #[inline] pub unsafe fn IsKeyPresentInCollectionList(plist: &SENSOR_COLLECTION_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> super::super::Foundation::BOOLEAN { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn IsKeyPresentInCollectionList(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> super::super::Foundation::BOOLEAN; } IsKeyPresentInCollectionList(::core::mem::transmute(plist), ::core::mem::transmute(pkey)) @@ -184,7 +184,7 @@ pub unsafe fn IsKeyPresentInCollectionList(plist: &SENSOR_COLLECTION_LIST, pkey: #[inline] pub unsafe fn IsKeyPresentInPropertyList(plist: &SENSOR_PROPERTY_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> super::super::Foundation::BOOLEAN { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn IsKeyPresentInPropertyList(plist: *const SENSOR_PROPERTY_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> super::super::Foundation::BOOLEAN; } IsKeyPresentInPropertyList(::core::mem::transmute(plist), ::core::mem::transmute(pkey)) @@ -194,7 +194,7 @@ pub unsafe fn IsKeyPresentInPropertyList(plist: &SENSOR_PROPERTY_LIST, pkey: &su #[inline] pub unsafe fn IsSensorSubscribed(subscriptionlist: &SENSOR_COLLECTION_LIST, currenttype: ::windows::core::GUID) -> super::super::Foundation::BOOLEAN { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn IsSensorSubscribed(subscriptionlist: *const SENSOR_COLLECTION_LIST, currenttype: ::windows::core::GUID) -> super::super::Foundation::BOOLEAN; } IsSensorSubscribed(::core::mem::transmute(subscriptionlist), ::core::mem::transmute(currenttype)) @@ -204,7 +204,7 @@ pub unsafe fn IsSensorSubscribed(subscriptionlist: &SENSOR_COLLECTION_LIST, curr #[inline] pub unsafe fn PropKeyFindKeyGetBool(plist: &SENSOR_COLLECTION_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeyGetBool(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: *mut super::super::Foundation::BOOL) -> super::super::Foundation::NTSTATUS; } PropKeyFindKeyGetBool(::core::mem::transmute(plist), ::core::mem::transmute(pkey), ::core::mem::transmute(pretvalue)).ok() @@ -214,7 +214,7 @@ pub unsafe fn PropKeyFindKeyGetBool(plist: &SENSOR_COLLECTION_LIST, pkey: &super #[inline] pub unsafe fn PropKeyFindKeyGetDouble(plist: &SENSOR_COLLECTION_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: &mut f64) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeyGetDouble(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: *mut f64) -> super::super::Foundation::NTSTATUS; } PropKeyFindKeyGetDouble(::core::mem::transmute(plist), ::core::mem::transmute(pkey), ::core::mem::transmute(pretvalue)).ok() @@ -224,7 +224,7 @@ pub unsafe fn PropKeyFindKeyGetDouble(plist: &SENSOR_COLLECTION_LIST, pkey: &sup #[inline] pub unsafe fn PropKeyFindKeyGetFileTime(plist: &SENSOR_COLLECTION_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: &mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeyGetFileTime(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::NTSTATUS; } PropKeyFindKeyGetFileTime(::core::mem::transmute(plist), ::core::mem::transmute(pkey), ::core::mem::transmute(pretvalue)).ok() @@ -234,7 +234,7 @@ pub unsafe fn PropKeyFindKeyGetFileTime(plist: &SENSOR_COLLECTION_LIST, pkey: &s #[inline] pub unsafe fn PropKeyFindKeyGetFloat(plist: &SENSOR_COLLECTION_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: &mut f32) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeyGetFloat(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: *mut f32) -> super::super::Foundation::NTSTATUS; } PropKeyFindKeyGetFloat(::core::mem::transmute(plist), ::core::mem::transmute(pkey), ::core::mem::transmute(pretvalue)).ok() @@ -244,7 +244,7 @@ pub unsafe fn PropKeyFindKeyGetFloat(plist: &SENSOR_COLLECTION_LIST, pkey: &supe #[inline] pub unsafe fn PropKeyFindKeyGetGuid(plist: &SENSOR_COLLECTION_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: &mut ::windows::core::GUID) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeyGetGuid(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: *mut ::windows::core::GUID) -> super::super::Foundation::NTSTATUS; } PropKeyFindKeyGetGuid(::core::mem::transmute(plist), ::core::mem::transmute(pkey), ::core::mem::transmute(pretvalue)).ok() @@ -254,7 +254,7 @@ pub unsafe fn PropKeyFindKeyGetGuid(plist: &SENSOR_COLLECTION_LIST, pkey: &super #[inline] pub unsafe fn PropKeyFindKeyGetInt32(plist: &SENSOR_COLLECTION_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: &mut i32) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeyGetInt32(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: *mut i32) -> super::super::Foundation::NTSTATUS; } PropKeyFindKeyGetInt32(::core::mem::transmute(plist), ::core::mem::transmute(pkey), ::core::mem::transmute(pretvalue)).ok() @@ -264,7 +264,7 @@ pub unsafe fn PropKeyFindKeyGetInt32(plist: &SENSOR_COLLECTION_LIST, pkey: &supe #[inline] pub unsafe fn PropKeyFindKeyGetInt64(plist: &SENSOR_COLLECTION_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: &mut i64) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeyGetInt64(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: *mut i64) -> super::super::Foundation::NTSTATUS; } PropKeyFindKeyGetInt64(::core::mem::transmute(plist), ::core::mem::transmute(pkey), ::core::mem::transmute(pretvalue)).ok() @@ -274,7 +274,7 @@ pub unsafe fn PropKeyFindKeyGetInt64(plist: &SENSOR_COLLECTION_LIST, pkey: &supe #[inline] pub unsafe fn PropKeyFindKeyGetNthInt64(plist: &SENSOR_COLLECTION_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, occurrence: u32, pretvalue: &mut i64) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeyGetNthInt64(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, occurrence: u32, pretvalue: *mut i64) -> super::super::Foundation::NTSTATUS; } PropKeyFindKeyGetNthInt64(::core::mem::transmute(plist), ::core::mem::transmute(pkey), occurrence, ::core::mem::transmute(pretvalue)).ok() @@ -284,7 +284,7 @@ pub unsafe fn PropKeyFindKeyGetNthInt64(plist: &SENSOR_COLLECTION_LIST, pkey: &s #[inline] pub unsafe fn PropKeyFindKeyGetNthUlong(plist: &SENSOR_COLLECTION_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, occurrence: u32, pretvalue: &mut u32) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeyGetNthUlong(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, occurrence: u32, pretvalue: *mut u32) -> super::super::Foundation::NTSTATUS; } PropKeyFindKeyGetNthUlong(::core::mem::transmute(plist), ::core::mem::transmute(pkey), occurrence, ::core::mem::transmute(pretvalue)).ok() @@ -294,7 +294,7 @@ pub unsafe fn PropKeyFindKeyGetNthUlong(plist: &SENSOR_COLLECTION_LIST, pkey: &s #[inline] pub unsafe fn PropKeyFindKeyGetNthUshort(plist: &SENSOR_COLLECTION_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, occurrence: u32, pretvalue: &mut u16) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeyGetNthUshort(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, occurrence: u32, pretvalue: *mut u16) -> super::super::Foundation::NTSTATUS; } PropKeyFindKeyGetNthUshort(::core::mem::transmute(plist), ::core::mem::transmute(pkey), occurrence, ::core::mem::transmute(pretvalue)).ok() @@ -307,7 +307,7 @@ where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeyGetPropVariant(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::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)).ok() @@ -317,7 +317,7 @@ where #[inline] pub unsafe fn PropKeyFindKeyGetUlong(plist: &SENSOR_COLLECTION_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: &mut u32) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeyGetUlong(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: *mut u32) -> super::super::Foundation::NTSTATUS; } PropKeyFindKeyGetUlong(::core::mem::transmute(plist), ::core::mem::transmute(pkey), ::core::mem::transmute(pretvalue)).ok() @@ -327,7 +327,7 @@ pub unsafe fn PropKeyFindKeyGetUlong(plist: &SENSOR_COLLECTION_LIST, pkey: &supe #[inline] pub unsafe fn PropKeyFindKeyGetUshort(plist: &SENSOR_COLLECTION_LIST, pkey: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: &mut u16) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeyGetUshort(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pretvalue: *mut u16) -> super::super::Foundation::NTSTATUS; } PropKeyFindKeyGetUshort(::core::mem::transmute(plist), ::core::mem::transmute(pkey), ::core::mem::transmute(pretvalue)).ok() @@ -340,7 +340,7 @@ where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropKeyFindKeySetPropVariant(plist: *mut SENSOR_COLLECTION_LIST, pkey: *const super::super::UI::Shell::PropertiesSystem::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)).ok() @@ -350,7 +350,7 @@ where #[inline] pub unsafe fn PropVariantGetInformation(propvariantvalue: &super::super::System::Com::StructuredStorage::PROPVARIANT, propvariantoffset: ::core::option::Option<&mut u32>, propvariantsize: ::core::option::Option<&mut u32>, propvariantpointer: *mut *mut ::core::ffi::c_void, remappedtype: ::core::option::Option<&mut u32>) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "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 u32) -> super::super::Foundation::NTSTATUS; } PropVariantGetInformation(::core::mem::transmute(propvariantvalue), ::core::mem::transmute(propvariantoffset), ::core::mem::transmute(propvariantsize), ::core::mem::transmute(propvariantpointer), ::core::mem::transmute(remappedtype)).ok() @@ -360,7 +360,7 @@ pub unsafe fn PropVariantGetInformation(propvariantvalue: &super::super::System: #[inline] pub unsafe fn PropertiesListCopy(target: &mut SENSOR_PROPERTY_LIST, source: &SENSOR_PROPERTY_LIST) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropertiesListCopy(target: *mut SENSOR_PROPERTY_LIST, source: *const SENSOR_PROPERTY_LIST) -> super::super::Foundation::NTSTATUS; } PropertiesListCopy(::core::mem::transmute(target), ::core::mem::transmute(source)).ok() @@ -369,7 +369,7 @@ pub unsafe fn PropertiesListCopy(target: &mut SENSOR_PROPERTY_LIST, source: &SEN #[inline] pub unsafe fn PropertiesListGetFillableCount(buffersizebytes: u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn PropertiesListGetFillableCount(buffersizebytes: u32) -> u32; } PropertiesListGetFillableCount(buffersizebytes) @@ -379,7 +379,7 @@ pub unsafe fn PropertiesListGetFillableCount(buffersizebytes: u32) -> u32 { #[inline] pub unsafe fn SensorCollectionGetAt(index: u32, psensorslist: &SENSOR_COLLECTION_LIST, pkey: ::core::option::Option<&mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY>, pvalue: ::core::option::Option<&mut super::super::System::Com::StructuredStorage::PROPVARIANT>) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn SensorCollectionGetAt(index: u32, psensorslist: *const SENSOR_COLLECTION_LIST, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> super::super::Foundation::NTSTATUS; } SensorCollectionGetAt(index, ::core::mem::transmute(psensorslist), ::core::mem::transmute(pkey), ::core::mem::transmute(pvalue)).ok() @@ -389,7 +389,7 @@ pub unsafe fn SensorCollectionGetAt(index: u32, psensorslist: &SENSOR_COLLECTION #[inline] pub unsafe fn SerializationBufferAllocate(sizeinbytes: u32, pbuffer: &mut *mut u8) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn SerializationBufferAllocate(sizeinbytes: u32, pbuffer: *mut *mut u8) -> super::super::Foundation::NTSTATUS; } SerializationBufferAllocate(sizeinbytes, ::core::mem::transmute(pbuffer)).ok() @@ -398,7 +398,7 @@ pub unsafe fn SerializationBufferAllocate(sizeinbytes: u32, pbuffer: &mut *mut u #[inline] pub unsafe fn SerializationBufferFree(buffer: ::core::option::Option<&u8>) { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn SerializationBufferFree(buffer: *const u8); } SerializationBufferFree(::core::mem::transmute(buffer)) diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs index b94b1c1924..f1c02a16b8 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs @@ -19834,6 +19834,79 @@ impl ::core::fmt::Debug for TERMINAL_TYPE { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct ADDRALIAS { + pub rgchName: [super::super::Foundation::CHAR; 41], + pub rgchEName: [super::super::Foundation::CHAR; 11], + pub rgchSrvr: [super::super::Foundation::CHAR; 12], + pub dibDetail: u32, + pub r#type: u16, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for ADDRALIAS {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for ADDRALIAS { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for ADDRALIAS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("ADDRALIAS").field("rgchName", &self.rgchName).field("rgchEName", &self.rgchEName).field("rgchSrvr", &self.rgchSrvr).field("dibDetail", &self.dibDetail).field("type", &self.r#type).finish() + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for ADDRALIAS { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for ADDRALIAS { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for ADDRALIAS {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for ADDRALIAS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] +pub struct DTR { + pub wYear: u16, + pub wMonth: u16, + pub wDay: u16, + pub wHour: u16, + pub wMinute: u16, + pub wSecond: u16, + pub wDayOfWeek: u16, +} +impl ::core::marker::Copy for DTR {} +impl ::core::clone::Clone for DTR { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for DTR { + type Abi = Self; +} +impl ::core::cmp::PartialEq for DTR { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for DTR {} +impl ::core::default::Default for DTR { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] pub struct HDRVCALL__ { pub unused: i32, @@ -22584,6 +22657,34 @@ impl ::core::default::Default for LINEREQMAKECALL { } } #[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] +pub struct LINEREQMAKECALLW { + pub szDestAddress: [u16; 80], + pub szAppName: [u16; 40], + pub szCalledParty: [u16; 40], + pub szComment: [u16; 80], +} +impl ::core::marker::Copy for LINEREQMAKECALLW {} +impl ::core::clone::Clone for LINEREQMAKECALLW { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for LINEREQMAKECALLW { + type Abi = Self; +} +impl ::core::cmp::PartialEq for LINEREQMAKECALLW { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for LINEREQMAKECALLW {} +impl ::core::default::Default for LINEREQMAKECALLW { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct LINEREQMEDIACALL { @@ -22625,6 +22726,47 @@ impl ::core::default::Default for LINEREQMEDIACALL { } } #[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct LINEREQMEDIACALLW { + pub hWnd: super::super::Foundation::HWND, + pub wRequestID: super::super::Foundation::WPARAM, + pub szDeviceClass: [u16; 40], + pub ucDeviceID: [u8; 40], + pub dwSize: u32, + pub dwSecure: u32, + pub szDestAddress: [u16; 80], + pub szAppName: [u16; 40], + pub szCalledParty: [u16; 40], + pub szComment: [u16; 80], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for LINEREQMEDIACALLW {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for LINEREQMEDIACALLW { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for LINEREQMEDIACALLW { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for LINEREQMEDIACALLW { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for LINEREQMEDIACALLW {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for LINEREQMEDIACALLW { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] pub struct LINETERMCAPS { pub dwTermDev: u32, @@ -23140,7 +23282,7 @@ impl ::core::default::Default for NSID { #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub union NSID_0 { - pub alias: _ADDR_ALIAS, + pub alias: ADDRALIAS, pub rgchInterNet: [super::super::Foundation::CHAR; 1], } #[cfg(feature = "Win32_Foundation")] @@ -23451,6 +23593,35 @@ impl ::core::default::Default for PHONESTATUS { unsafe { ::core::mem::zeroed() } } } +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] +pub struct RENDDATA { + pub atyp: u16, + pub ulPosition: u32, + pub dxWidth: u16, + pub dyHeight: u16, + pub dwFlags: u32, +} +impl ::core::marker::Copy for RENDDATA {} +impl ::core::clone::Clone for RENDDATA { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for RENDDATA { + type Abi = Self; +} +impl ::core::cmp::PartialEq for RENDDATA { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for RENDDATA {} +impl ::core::default::Default for RENDDATA { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] pub struct STnefProblem { @@ -23584,6 +23755,39 @@ impl ::core::default::Default for TAPI_DETECTTONE { } #[repr(C)] #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] +pub struct TRP { + pub trpid: u16, + pub cbgrtrp: u16, + pub cch: u16, + pub cbRgb: u16, +} +impl ::core::marker::Copy for TRP {} +impl ::core::clone::Clone for TRP { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for TRP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TRP").field("trpid", &self.trpid).field("cbgrtrp", &self.cbgrtrp).field("cch", &self.cch).field("cbRgb", &self.cbRgb).finish() + } +} +unsafe impl ::windows::core::Abi for TRP { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TRP { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TRP {} +impl ::core::default::Default for TRP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] pub struct TUISPICREATEDIALOGINSTANCEPARAMS { pub dwRequestID: u32, pub hdDlgInst: *mut HDRVDIALOGINSTANCE__, @@ -23647,210 +23851,6 @@ impl ::core::default::Default for VARSTRING { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct _ADDR_ALIAS { - pub rgchName: [super::super::Foundation::CHAR; 41], - pub rgchEName: [super::super::Foundation::CHAR; 11], - pub rgchSrvr: [super::super::Foundation::CHAR; 12], - pub dibDetail: u32, - pub r#type: u16, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _ADDR_ALIAS {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _ADDR_ALIAS { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for _ADDR_ALIAS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_ADDR_ALIAS").field("rgchName", &self.rgchName).field("rgchEName", &self.rgchEName).field("rgchSrvr", &self.rgchSrvr).field("dibDetail", &self.dibDetail).field("type", &self.r#type).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for _ADDR_ALIAS { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for _ADDR_ALIAS { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_ADDR_ALIAS>()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for _ADDR_ALIAS {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for _ADDR_ALIAS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] -pub struct _dtr { - pub wYear: u16, - pub wMonth: u16, - pub wDay: u16, - pub wHour: u16, - pub wMinute: u16, - pub wSecond: u16, - pub wDayOfWeek: u16, -} -impl ::core::marker::Copy for _dtr {} -impl ::core::clone::Clone for _dtr { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for _dtr { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _dtr { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_dtr>()) == 0 } - } -} -impl ::core::cmp::Eq for _dtr {} -impl ::core::default::Default for _dtr { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] -pub struct _renddata { - pub atyp: u16, - pub ulPosition: u32, - pub dxWidth: u16, - pub dyHeight: u16, - pub dwFlags: u32, -} -impl ::core::marker::Copy for _renddata {} -impl ::core::clone::Clone for _renddata { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for _renddata { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _renddata { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_renddata>()) == 0 } - } -} -impl ::core::cmp::Eq for _renddata {} -impl ::core::default::Default for _renddata { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] -pub struct _trp { - pub trpid: u16, - pub cbgrtrp: u16, - pub cch: u16, - pub cbRgb: u16, -} -impl ::core::marker::Copy for _trp {} -impl ::core::clone::Clone for _trp { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _trp { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_trp").field("trpid", &self.trpid).field("cbgrtrp", &self.cbgrtrp).field("cch", &self.cch).field("cbRgb", &self.cbRgb).finish() - } -} -unsafe impl ::windows::core::Abi for _trp { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _trp { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_trp>()) == 0 } - } -} -impl ::core::cmp::Eq for _trp {} -impl ::core::default::Default for _trp { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] -pub struct linereqmakecallW_tag { - pub szDestAddress: [u16; 80], - pub szAppName: [u16; 40], - pub szCalledParty: [u16; 40], - pub szComment: [u16; 80], -} -impl ::core::marker::Copy for linereqmakecallW_tag {} -impl ::core::clone::Clone for linereqmakecallW_tag { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for linereqmakecallW_tag { - type Abi = Self; -} -impl ::core::cmp::PartialEq for linereqmakecallW_tag { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for linereqmakecallW_tag {} -impl ::core::default::Default for linereqmakecallW_tag { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct linereqmediacallW_tag { - pub hWnd: super::super::Foundation::HWND, - pub wRequestID: super::super::Foundation::WPARAM, - pub szDeviceClass: [u16; 40], - pub ucDeviceID: [u8; 40], - pub dwSize: u32, - pub dwSecure: u32, - pub szDestAddress: [u16; 80], - pub szAppName: [u16; 40], - pub szCalledParty: [u16; 40], - pub szComment: [u16; 80], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for linereqmediacallW_tag {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for linereqmediacallW_tag { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for linereqmediacallW_tag { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for linereqmediacallW_tag { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for linereqmediacallW_tag {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for linereqmediacallW_tag { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] pub type ASYNC_COMPLETION = ::core::option::Option; #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] 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 b61c2e0aee..9ade81232e 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs @@ -3146,7 +3146,7 @@ impl ::core::default::Default for USBSCAN_TIMEOUT { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_BANDWIDTH_INFO_REQUEST { pub Header: USBUSER_REQUEST_HEADER, @@ -3172,7 +3172,7 @@ impl ::core::default::Default for USBUSER_BANDWIDTH_INFO_REQUEST { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct USBUSER_BUS_STATISTICS_0_REQUEST { @@ -3205,7 +3205,7 @@ impl ::core::default::Default for USBUSER_BUS_STATISTICS_0_REQUEST { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_CLOSE_RAW_DEVICE { pub Header: USBUSER_REQUEST_HEADER, @@ -3231,7 +3231,7 @@ impl ::core::default::Default for USBUSER_CLOSE_RAW_DEVICE { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_CONTROLLER_INFO_0 { pub Header: USBUSER_REQUEST_HEADER, @@ -3257,7 +3257,7 @@ impl ::core::default::Default for USBUSER_CONTROLLER_INFO_0 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_CONTROLLER_UNICODE_NAME { pub Header: USBUSER_REQUEST_HEADER, @@ -3283,7 +3283,7 @@ impl ::core::default::Default for USBUSER_CONTROLLER_UNICODE_NAME { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct USBUSER_GET_DRIVER_VERSION { @@ -3316,7 +3316,7 @@ impl ::core::default::Default for USBUSER_GET_DRIVER_VERSION { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_GET_USB2HW_VERSION { pub Header: USBUSER_REQUEST_HEADER, @@ -3342,7 +3342,7 @@ impl ::core::default::Default for USBUSER_GET_USB2HW_VERSION { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_OPEN_RAW_DEVICE { pub Header: USBUSER_REQUEST_HEADER, @@ -3368,7 +3368,7 @@ impl ::core::default::Default for USBUSER_OPEN_RAW_DEVICE { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_PASS_THRU_REQUEST { pub Header: USBUSER_REQUEST_HEADER, @@ -3394,7 +3394,7 @@ impl ::core::default::Default for USBUSER_PASS_THRU_REQUEST { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct USBUSER_POWER_INFO_REQUEST { @@ -3427,7 +3427,7 @@ impl ::core::default::Default for USBUSER_POWER_INFO_REQUEST { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_RAW_RESET_ROOT_PORT { pub Header: USBUSER_REQUEST_HEADER, @@ -3507,7 +3507,7 @@ impl ::core::default::Default for USBUSER_REQUEST_HEADER { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_ROOTPORT_FEATURE_REQUEST { pub Header: USBUSER_REQUEST_HEADER, @@ -3533,7 +3533,7 @@ impl ::core::default::Default for USBUSER_ROOTPORT_FEATURE_REQUEST { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_ROOTPORT_PARAMETERS { pub Header: USBUSER_REQUEST_HEADER, @@ -3559,7 +3559,7 @@ impl ::core::default::Default for USBUSER_ROOTPORT_PARAMETERS { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_SEND_ONE_PACKET { pub Header: USBUSER_REQUEST_HEADER, @@ -3585,7 +3585,7 @@ impl ::core::default::Default for USBUSER_SEND_ONE_PACKET { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USBUSER_SEND_RAW_COMMAND { pub Header: USBUSER_REQUEST_HEADER, @@ -6433,7 +6433,7 @@ impl ::core::default::Default for USB_UNICODE_NAME { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] pub struct USB_USB2HW_VERSION_PARAMETERS { pub Usb2HwRevision: u8, @@ -6444,11 +6444,6 @@ impl ::core::clone::Clone for USB_USB2HW_VERSION_PARAMETERS { *self } } -impl ::core::fmt::Debug for USB_USB2HW_VERSION_PARAMETERS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("USB_USB2HW_VERSION_PARAMETERS").field("Usb2HwRevision", &self.Usb2HwRevision).finish() - } -} unsafe impl ::windows::core::Abi for USB_USB2HW_VERSION_PARAMETERS { type Abi = Self; } diff --git a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs index ff3573002b..b6c9d5ed84 100644 --- a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs @@ -1459,22 +1459,6 @@ pub const DISP_E_UNKNOWNLCID: ::windows::core::HRESULT = ::windows::core::HRESUL #[doc = "*Required features: `\"Win32_Foundation\"`*"] pub const DISP_E_UNKNOWNNAME: ::windows::core::HRESULT = ::windows::core::HRESULT(-2147352570i32); #[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_COPY: u32 = 2u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_IN_BUFFER: u32 = 8u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_IN_PROMPT: u32 = 4u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_MODIFY: u32 = 8u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_OUT_BUFFER: u32 = 2u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_OUT_DEFAULT: u32 = 1u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_PROMPT: u32 = 4u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] -pub const DM_UPDATE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_Foundation\"`*"] pub const DNS_INFO_ADDED_LOCAL_WINS: i32 = 9753i32; #[doc = "*Required features: `\"Win32_Foundation\"`*"] pub const DNS_INFO_AXFR_COMPLETE: i32 = 9751i32; diff --git a/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs b/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs index c1be854401..a43622278c 100644 --- a/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs @@ -387,7 +387,7 @@ pub trait IMLangFontLink2_Impl: Sized + IMLangCodePages_Impl { fn ResetFontMapping(&self) -> ::windows::core::Result<()>; fn MapFont(&self, hdc: super::Graphics::Gdi::HDC, dwcodepages: u32, chsrc: u16) -> ::windows::core::Result; fn GetFontUnicodeRanges(&self, hdc: super::Graphics::Gdi::HDC, puiranges: *const u32) -> ::windows::core::Result; - fn GetScriptFontInfo(&self, sid: u8, dwflags: u32, puifonts: *mut u32, pscriptfont: *mut tagSCRIPFONTINFO) -> ::windows::core::Result<()>; + fn GetScriptFontInfo(&self, sid: u8, dwflags: u32, puifonts: *mut u32, pscriptfont: *mut SCRIPTFONTINFO) -> ::windows::core::Result<()>; fn CodePageToScriptID(&self, uicodepage: u32) -> ::windows::core::Result; } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -438,7 +438,7 @@ impl IMLangFontLink2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetScriptFontInfo, Impl: IMLangFontLink2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sid: u8, dwflags: u32, puifonts: *mut u32, pscriptfont: *mut tagSCRIPFONTINFO) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetScriptFontInfo, Impl: IMLangFontLink2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sid: u8, dwflags: u32, puifonts: *mut u32, pscriptfont: *mut SCRIPTFONTINFO) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetScriptFontInfo(::core::mem::transmute_copy(&sid), ::core::mem::transmute_copy(&dwflags), ::core::mem::transmute_copy(&puifonts), ::core::mem::transmute_copy(&pscriptfont)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs index 632b5d0bec..766823468a 100644 --- a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs @@ -11409,13 +11409,13 @@ where #[doc = "*Required features: `\"Win32_Globalization\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ScriptPlaceOpenType<'a, P0>(hdc: P0, psc: *mut *mut ::core::ffi::c_void, psa: &mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: *const i32, rprangeproperties: *const *const textrange_properties, cranges: i32, pwcchars: ::windows::core::PCWSTR, pwlogclust: *const u16, pcharprops: *const script_charprop, cchars: i32, pwglyphs: *const u16, pglyphprops: *const script_glyphprop, cglyphs: i32, piadvance: *mut i32, pgoffset: *mut GOFFSET, pabc: ::core::option::Option<&mut super::Graphics::Gdi::ABC>) -> ::windows::core::Result<()> +pub unsafe fn ScriptPlaceOpenType<'a, P0>(hdc: P0, psc: *mut *mut ::core::ffi::c_void, psa: &mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: *const i32, rprangeproperties: *const *const TEXTRANGE_PROPERTIES, cranges: i32, pwcchars: ::windows::core::PCWSTR, pwlogclust: *const u16, pcharprops: *const SCRIPT_CHARPROP, cchars: i32, pwglyphs: *const u16, pglyphprops: *const SCRIPT_GLYPHPROP, cglyphs: i32, piadvance: *mut i32, pgoffset: *mut GOFFSET, pabc: ::core::option::Option<&mut super::Graphics::Gdi::ABC>) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn ScriptPlaceOpenType(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut ::core::ffi::c_void, psa: *mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: *const i32, rprangeproperties: *const *const textrange_properties, cranges: i32, pwcchars: ::windows::core::PCWSTR, pwlogclust: *const u16, pcharprops: *const script_charprop, cchars: i32, pwglyphs: *const u16, pglyphprops: *const script_glyphprop, cglyphs: i32, piadvance: *mut i32, pgoffset: *mut GOFFSET, pabc: *mut super::Graphics::Gdi::ABC) -> ::windows::core::HRESULT; + fn ScriptPlaceOpenType(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut ::core::ffi::c_void, psa: *mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: *const i32, rprangeproperties: *const *const TEXTRANGE_PROPERTIES, cranges: i32, pwcchars: ::windows::core::PCWSTR, pwlogclust: *const u16, pcharprops: *const SCRIPT_CHARPROP, cchars: i32, pwglyphs: *const u16, pglyphprops: *const SCRIPT_GLYPHPROP, cglyphs: i32, piadvance: *mut i32, pgoffset: *mut GOFFSET, pabc: *mut super::Graphics::Gdi::ABC) -> ::windows::core::HRESULT; } ScriptPlaceOpenType( hdc.into(), @@ -11478,13 +11478,13 @@ where #[doc = "*Required features: `\"Win32_Globalization\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ScriptShapeOpenType<'a, P0>(hdc: P0, psc: *mut *mut ::core::ffi::c_void, psa: &mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: *const i32, rprangeproperties: *const *const textrange_properties, cranges: i32, pwcchars: ::windows::core::PCWSTR, cchars: i32, cmaxglyphs: i32, pwlogclust: *mut u16, pcharprops: *mut script_charprop, pwoutglyphs: *mut u16, poutglyphprops: *mut script_glyphprop, pcglyphs: &mut i32) -> ::windows::core::Result<()> +pub unsafe fn ScriptShapeOpenType<'a, P0>(hdc: P0, psc: *mut *mut ::core::ffi::c_void, psa: &mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: *const i32, rprangeproperties: *const *const TEXTRANGE_PROPERTIES, cranges: i32, pwcchars: ::windows::core::PCWSTR, cchars: i32, cmaxglyphs: i32, pwlogclust: *mut u16, pcharprops: *mut SCRIPT_CHARPROP, pwoutglyphs: *mut u16, poutglyphprops: *mut SCRIPT_GLYPHPROP, pcglyphs: &mut i32) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn ScriptShapeOpenType(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut ::core::ffi::c_void, psa: *mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: *const i32, rprangeproperties: *const *const textrange_properties, cranges: i32, pwcchars: ::windows::core::PCWSTR, cchars: i32, cmaxglyphs: i32, pwlogclust: *mut u16, pcharprops: *mut script_charprop, pwoutglyphs: *mut u16, poutglyphprops: *mut script_glyphprop, pcglyphs: *mut i32) -> ::windows::core::HRESULT; + fn ScriptShapeOpenType(hdc: super::Graphics::Gdi::HDC, psc: *mut *mut ::core::ffi::c_void, psa: *mut SCRIPT_ANALYSIS, tagscript: u32, taglangsys: u32, rcrangechars: *const i32, rprangeproperties: *const *const TEXTRANGE_PROPERTIES, cranges: i32, pwcchars: ::windows::core::PCWSTR, cchars: i32, cmaxglyphs: i32, pwlogclust: *mut u16, pcharprops: *mut SCRIPT_CHARPROP, pwoutglyphs: *mut u16, poutglyphprops: *mut SCRIPT_GLYPHPROP, pcglyphs: *mut i32) -> ::windows::core::HRESULT; } ScriptShapeOpenType( hdc.into(), @@ -12578,7 +12578,7 @@ impl IMLangFontLink2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetFontUnicodeRanges)(::windows::core::Interface::as_raw(self), hdc.into(), ::core::mem::transmute(puiranges), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn GetScriptFontInfo(&self, sid: u8, dwflags: u32, puifonts: &mut u32, pscriptfont: ::core::option::Option<&mut tagSCRIPFONTINFO>) -> ::windows::core::Result<()> { + pub unsafe fn GetScriptFontInfo(&self, sid: u8, dwflags: u32, puifonts: &mut u32, pscriptfont: ::core::option::Option<&mut SCRIPTFONTINFO>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetScriptFontInfo)(::windows::core::Interface::as_raw(self), sid, dwflags, ::core::mem::transmute(puifonts), ::core::mem::transmute(pscriptfont)).ok() } pub unsafe fn CodePageToScriptID(&self, uicodepage: u32) -> ::windows::core::Result { @@ -12657,7 +12657,7 @@ pub struct IMLangFontLink2_Vtbl { pub GetFontUnicodeRanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hdc: super::Graphics::Gdi::HDC, puiranges: *const u32, puranges: *mut UNICODERANGE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetFontUnicodeRanges: usize, - pub GetScriptFontInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sid: u8, dwflags: u32, puifonts: *mut u32, pscriptfont: *mut tagSCRIPFONTINFO) -> ::windows::core::HRESULT, + pub GetScriptFontInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sid: u8, dwflags: u32, puifonts: *mut u32, pscriptfont: *mut SCRIPTFONTINFO) -> ::windows::core::HRESULT, pub CodePageToScriptID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uicodepage: u32, psid: *mut u8) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Globalization\"`*"] @@ -16690,6 +16690,82 @@ impl ::core::fmt::Debug for MIMECONTF { #[doc = "*Required features: `\"Win32_Globalization\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct MLCONVCHAR(pub i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_AUTODETECT: MLCONVCHAR = MLCONVCHAR(1i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_ENTITIZE: MLCONVCHAR = MLCONVCHAR(2i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_NCR_ENTITIZE: MLCONVCHAR = MLCONVCHAR(2i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_NAME_ENTITIZE: MLCONVCHAR = MLCONVCHAR(4i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_USEDEFCHAR: MLCONVCHAR = MLCONVCHAR(8i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_NOBESTFITCHARS: MLCONVCHAR = MLCONVCHAR(16i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLCONVCHARF_DETECTJPN: MLCONVCHAR = MLCONVCHAR(32i32); +impl ::core::marker::Copy for MLCONVCHAR {} +impl ::core::clone::Clone for MLCONVCHAR { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for MLCONVCHAR { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for MLCONVCHAR { + type Abi = Self; +} +impl ::core::fmt::Debug for MLCONVCHAR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("MLCONVCHAR").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct MLCP(pub i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_MAILNEWS: MLCP = MLCP(1i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_BROWSER: MLCP = MLCP(2i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_VALID: MLCP = MLCP(4i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_VALID_NLS: MLCP = MLCP(8i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_PRESERVE_ORDER: MLCP = MLCP(16i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_PREFERRED_ONLY: MLCP = MLCP(32i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_FILTER_SPECIALCHAR: MLCP = MLCP(64i32); +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub const MLDETECTF_EURO_UTF8: MLCP = MLCP(128i32); +impl ::core::marker::Copy for MLCP {} +impl ::core::clone::Clone for MLCP { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for MLCP { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for MLCP { + type Abi = Self; +} +impl ::core::fmt::Debug for MLCP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("MLCP").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct MLDETECTCP(pub i32); #[doc = "*Required features: `\"Win32_Globalization\"`*"] pub const MLDETECTCP_NONE: MLDETECTCP = MLDETECTCP(0i32); @@ -24395,82 +24471,6 @@ impl ::core::fmt::Debug for WORDLIST_TYPE { f.debug_tuple("WORDLIST_TYPE").field(&self.0).finish() } } -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct tagMLCONVCHARF(pub i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_AUTODETECT: tagMLCONVCHARF = tagMLCONVCHARF(1i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_ENTITIZE: tagMLCONVCHARF = tagMLCONVCHARF(2i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_NCR_ENTITIZE: tagMLCONVCHARF = tagMLCONVCHARF(2i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_NAME_ENTITIZE: tagMLCONVCHARF = tagMLCONVCHARF(4i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_USEDEFCHAR: tagMLCONVCHARF = tagMLCONVCHARF(8i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_NOBESTFITCHARS: tagMLCONVCHARF = tagMLCONVCHARF(16i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLCONVCHARF_DETECTJPN: tagMLCONVCHARF = tagMLCONVCHARF(32i32); -impl ::core::marker::Copy for tagMLCONVCHARF {} -impl ::core::clone::Clone for tagMLCONVCHARF { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for tagMLCONVCHARF { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for tagMLCONVCHARF { - type Abi = Self; -} -impl ::core::fmt::Debug for tagMLCONVCHARF { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("tagMLCONVCHARF").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct tagMLCPF(pub i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_MAILNEWS: tagMLCPF = tagMLCPF(1i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_BROWSER: tagMLCPF = tagMLCPF(2i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_VALID: tagMLCPF = tagMLCPF(4i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_VALID_NLS: tagMLCPF = tagMLCPF(8i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_PRESERVE_ORDER: tagMLCPF = tagMLCPF(16i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_PREFERRED_ONLY: tagMLCPF = tagMLCPF(32i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_FILTER_SPECIALCHAR: tagMLCPF = tagMLCPF(64i32); -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub const MLDETECTF_EURO_UTF8: tagMLCPF = tagMLCPF(128i32); -impl ::core::marker::Copy for tagMLCPF {} -impl ::core::clone::Clone for tagMLCPF { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for tagMLCPF { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for tagMLCPF { - type Abi = Self; -} -impl ::core::fmt::Debug for tagMLCPF { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("tagMLCPF").field(&self.0).finish() - } -} #[repr(C)] #[doc = "*Required features: `\"Win32_Globalization\"`*"] pub struct CHARSETINFO { @@ -25623,6 +25623,37 @@ impl ::core::default::Default for NUMBERFMTW { } #[repr(C)] #[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub struct OPENTYPE_FEATURE_RECORD { + pub tagFeature: u32, + pub lParameter: i32, +} +impl ::core::marker::Copy for OPENTYPE_FEATURE_RECORD {} +impl ::core::clone::Clone for OPENTYPE_FEATURE_RECORD { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for OPENTYPE_FEATURE_RECORD { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("OPENTYPE_FEATURE_RECORD").field("tagFeature", &self.tagFeature).field("lParameter", &self.lParameter).finish() + } +} +unsafe impl ::windows::core::Abi for OPENTYPE_FEATURE_RECORD { + type Abi = Self; +} +impl ::core::cmp::PartialEq for OPENTYPE_FEATURE_RECORD { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for OPENTYPE_FEATURE_RECORD {} +impl ::core::default::Default for OPENTYPE_FEATURE_RECORD { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Globalization\"`*"] pub struct RFC1766INFO { pub lcid: u32, pub wszRfc1766: [u16; 6], @@ -25655,6 +25686,37 @@ impl ::core::default::Default for RFC1766INFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub struct SCRIPTFONTINFO { + pub scripts: i64, + pub wszFont: [u16; 32], +} +impl ::core::marker::Copy for SCRIPTFONTINFO {} +impl ::core::clone::Clone for SCRIPTFONTINFO { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for SCRIPTFONTINFO { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SCRIPTFONTINFO").field("scripts", &self.scripts).field("wszFont", &self.wszFont).finish() + } +} +unsafe impl ::windows::core::Abi for SCRIPTFONTINFO { + type Abi = Self; +} +impl ::core::cmp::PartialEq for SCRIPTFONTINFO { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for SCRIPTFONTINFO {} +impl ::core::default::Default for SCRIPTFONTINFO { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Globalization\"`*"] pub struct SCRIPTINFO { pub ScriptId: u8, pub uiCodePage: u32, @@ -25720,6 +25782,36 @@ impl ::core::default::Default for SCRIPT_ANALYSIS { } #[repr(C)] #[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub struct SCRIPT_CHARPROP { + pub _bitfield: u16, +} +impl ::core::marker::Copy for SCRIPT_CHARPROP {} +impl ::core::clone::Clone for SCRIPT_CHARPROP { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for SCRIPT_CHARPROP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SCRIPT_CHARPROP").field("_bitfield", &self._bitfield).finish() + } +} +unsafe impl ::windows::core::Abi for SCRIPT_CHARPROP { + type Abi = Self; +} +impl ::core::cmp::PartialEq for SCRIPT_CHARPROP { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for SCRIPT_CHARPROP {} +impl ::core::default::Default for SCRIPT_CHARPROP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Globalization\"`*"] pub struct SCRIPT_CONTROL { pub _bitfield: u32, } @@ -25817,6 +25909,37 @@ impl ::core::default::Default for SCRIPT_FONTPROPERTIES { } #[repr(C)] #[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub struct SCRIPT_GLYPHPROP { + pub sva: SCRIPT_VISATTR, + pub reserved: u16, +} +impl ::core::marker::Copy for SCRIPT_GLYPHPROP {} +impl ::core::clone::Clone for SCRIPT_GLYPHPROP { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for SCRIPT_GLYPHPROP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SCRIPT_GLYPHPROP").field("sva", &self.sva).field("reserved", &self.reserved).finish() + } +} +unsafe impl ::windows::core::Abi for SCRIPT_GLYPHPROP { + type Abi = Self; +} +impl ::core::cmp::PartialEq for SCRIPT_GLYPHPROP { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for SCRIPT_GLYPHPROP {} +impl ::core::default::Default for SCRIPT_GLYPHPROP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Globalization\"`*"] pub struct SCRIPT_ITEM { pub iCharPos: i32, pub a: SCRIPT_ANALYSIS, @@ -26001,6 +26124,37 @@ impl ::core::default::Default for SCRIPT_VISATTR { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Globalization\"`*"] +pub struct TEXTRANGE_PROPERTIES { + pub potfRecords: *mut OPENTYPE_FEATURE_RECORD, + pub cotfRecords: i32, +} +impl ::core::marker::Copy for TEXTRANGE_PROPERTIES {} +impl ::core::clone::Clone for TEXTRANGE_PROPERTIES { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for TEXTRANGE_PROPERTIES { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TEXTRANGE_PROPERTIES").field("potfRecords", &self.potfRecords).field("cotfRecords", &self.cotfRecords).finish() + } +} +unsafe impl ::windows::core::Abi for TEXTRANGE_PROPERTIES { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TEXTRANGE_PROPERTIES { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TEXTRANGE_PROPERTIES {} +impl ::core::default::Default for TEXTRANGE_PROPERTIES { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] pub struct UBiDi(pub u8); #[repr(C)] pub struct UBiDiTransform(pub u8); @@ -26659,160 +26813,6 @@ impl ::core::default::Default for UTransPosition { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub struct opentype_feature_record { - pub tagFeature: u32, - pub lParameter: i32, -} -impl ::core::marker::Copy for opentype_feature_record {} -impl ::core::clone::Clone for opentype_feature_record { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for opentype_feature_record { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("opentype_feature_record").field("tagFeature", &self.tagFeature).field("lParameter", &self.lParameter).finish() - } -} -unsafe impl ::windows::core::Abi for opentype_feature_record { - type Abi = Self; -} -impl ::core::cmp::PartialEq for opentype_feature_record { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for opentype_feature_record {} -impl ::core::default::Default for opentype_feature_record { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub struct script_charprop { - pub _bitfield: u16, -} -impl ::core::marker::Copy for script_charprop {} -impl ::core::clone::Clone for script_charprop { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for script_charprop { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("script_charprop").field("_bitfield", &self._bitfield).finish() - } -} -unsafe impl ::windows::core::Abi for script_charprop { - type Abi = Self; -} -impl ::core::cmp::PartialEq for script_charprop { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for script_charprop {} -impl ::core::default::Default for script_charprop { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub struct script_glyphprop { - pub sva: SCRIPT_VISATTR, - pub reserved: u16, -} -impl ::core::marker::Copy for script_glyphprop {} -impl ::core::clone::Clone for script_glyphprop { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for script_glyphprop { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("script_glyphprop").field("sva", &self.sva).field("reserved", &self.reserved).finish() - } -} -unsafe impl ::windows::core::Abi for script_glyphprop { - type Abi = Self; -} -impl ::core::cmp::PartialEq for script_glyphprop { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for script_glyphprop {} -impl ::core::default::Default for script_glyphprop { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub struct tagSCRIPFONTINFO { - pub scripts: i64, - pub wszFont: [u16; 32], -} -impl ::core::marker::Copy for tagSCRIPFONTINFO {} -impl ::core::clone::Clone for tagSCRIPFONTINFO { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tagSCRIPFONTINFO { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tagSCRIPFONTINFO").field("scripts", &self.scripts).field("wszFont", &self.wszFont).finish() - } -} -unsafe impl ::windows::core::Abi for tagSCRIPFONTINFO { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tagSCRIPFONTINFO { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tagSCRIPFONTINFO {} -impl ::core::default::Default for tagSCRIPFONTINFO { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Globalization\"`*"] -pub struct textrange_properties { - pub potfRecords: *mut opentype_feature_record, - pub cotfRecords: i32, -} -impl ::core::marker::Copy for textrange_properties {} -impl ::core::clone::Clone for textrange_properties { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for textrange_properties { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("textrange_properties").field("potfRecords", &self.potfRecords).field("cotfRecords", &self.cotfRecords).finish() - } -} -unsafe impl ::windows::core::Abi for textrange_properties { - type Abi = Self; -} -impl ::core::cmp::PartialEq for textrange_properties { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for textrange_properties {} -impl ::core::default::Default for textrange_properties { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_Globalization\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type CALINFO_ENUMPROCA = ::core::option::Option super::Foundation::BOOL>; diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs index 3e84b1a067..c7f70dfa30 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs @@ -5198,14 +5198,6 @@ pub const DMBIN_UPPER: u32 = 1u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMBIN_USER: u32 = 256u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMCOLLATE_FALSE: u32 = 0u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMCOLLATE_TRUE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMCOLOR_COLOR: u32 = 2u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMCOLOR_MONOCHROME: u32 = 1u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMDFO_CENTER: u32 = 2u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMDFO_DEFAULT: u32 = 0u32; @@ -5244,12 +5236,6 @@ pub const DMDO_90: u32 = 1u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMDO_DEFAULT: u32 = 0u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMDUP_HORIZONTAL: u32 = 3u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMDUP_SIMPLEX: u32 = 1u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMDUP_VERTICAL: u32 = 2u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMICMMETHOD_DEVICE: u32 = 4u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMICMMETHOD_DRIVER: u32 = 3u32; @@ -5534,78 +5520,6 @@ pub const DMRES_LOW: i32 = -2i32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DMRES_MEDIUM: i32 = -3i32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMTT_BITMAP: u32 = 1u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMTT_DOWNLOAD: u32 = 2u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMTT_DOWNLOAD_OUTLINE: u32 = 4u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DMTT_SUBDEV: u32 = 3u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_BITSPERPEL: i32 = 262144i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_COLLATE: i32 = 32768i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_COLOR: i32 = 2048i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_COPIES: i32 = 256i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DEFAULTSOURCE: i32 = 512i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DISPLAYFIXEDOUTPUT: i32 = 536870912i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DISPLAYFLAGS: i32 = 2097152i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DISPLAYFREQUENCY: i32 = 4194304i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DISPLAYORIENTATION: i32 = 128i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DITHERTYPE: i32 = 67108864i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_DUPLEX: i32 = 4096i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_FORMNAME: i32 = 65536i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_ICMINTENT: i32 = 16777216i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_ICMMETHOD: i32 = 8388608i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_INTERLACED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_LOGPIXELS: i32 = 131072i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_MEDIATYPE: i32 = 33554432i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_NUP: i32 = 64i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_ORIENTATION: i32 = 1i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PANNINGHEIGHT: i32 = 268435456i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PANNINGWIDTH: i32 = 134217728i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PAPERLENGTH: i32 = 4i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PAPERSIZE: i32 = 2i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PAPERWIDTH: i32 = 8i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PELSHEIGHT: i32 = 1048576i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PELSWIDTH: i32 = 524288i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_POSITION: i32 = 32i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_PRINTQUALITY: i32 = 1024i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_SCALE: i32 = 16i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_SPECVERSION: u32 = 1025u32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_TTOPTION: i32 = 16384i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const DM_YRESOLUTION: i32 = 8192i32; -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DOWNLOADFACE: u32 = 514u32; #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DOWNLOADHEADER: u32 = 4111u32; @@ -7207,13 +7121,13 @@ impl ::core::ops::Not for CDS_TYPE { #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct CREATE_FONT_PACKAGE_SUBSET_ENCODING(pub u32); +pub struct CREATE_FONT_PACKAGE_SUBSET_ENCODING(pub u16); #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const TTFCFP_STD_MAC_CHAR_SET: CREATE_FONT_PACKAGE_SUBSET_ENCODING = CREATE_FONT_PACKAGE_SUBSET_ENCODING(0u32); +pub const TTFCFP_STD_MAC_CHAR_SET: CREATE_FONT_PACKAGE_SUBSET_ENCODING = CREATE_FONT_PACKAGE_SUBSET_ENCODING(0u16); #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const TTFCFP_SYMBOL_CHAR_SET: CREATE_FONT_PACKAGE_SUBSET_ENCODING = CREATE_FONT_PACKAGE_SUBSET_ENCODING(0u32); +pub const TTFCFP_SYMBOL_CHAR_SET: CREATE_FONT_PACKAGE_SUBSET_ENCODING = CREATE_FONT_PACKAGE_SUBSET_ENCODING(0u16); #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const TTFCFP_UNICODE_CHAR_SET: CREATE_FONT_PACKAGE_SUBSET_ENCODING = CREATE_FONT_PACKAGE_SUBSET_ENCODING(1u32); +pub const TTFCFP_UNICODE_CHAR_SET: CREATE_FONT_PACKAGE_SUBSET_ENCODING = CREATE_FONT_PACKAGE_SUBSET_ENCODING(1u16); impl ::core::marker::Copy for CREATE_FONT_PACKAGE_SUBSET_ENCODING {} impl ::core::clone::Clone for CREATE_FONT_PACKAGE_SUBSET_ENCODING { fn clone(&self) -> Self { @@ -7236,11 +7150,11 @@ impl ::core::fmt::Debug for CREATE_FONT_PACKAGE_SUBSET_ENCODING { #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct CREATE_FONT_PACKAGE_SUBSET_PLATFORM(pub u32); +pub struct CREATE_FONT_PACKAGE_SUBSET_PLATFORM(pub u16); #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const TTFCFP_UNICODE_PLATFORMID: CREATE_FONT_PACKAGE_SUBSET_PLATFORM = CREATE_FONT_PACKAGE_SUBSET_PLATFORM(0u32); +pub const TTFCFP_UNICODE_PLATFORMID: CREATE_FONT_PACKAGE_SUBSET_PLATFORM = CREATE_FONT_PACKAGE_SUBSET_PLATFORM(0u16); #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub const TTFCFP_ISO_PLATFORMID: CREATE_FONT_PACKAGE_SUBSET_PLATFORM = CREATE_FONT_PACKAGE_SUBSET_PLATFORM(2u32); +pub const TTFCFP_ISO_PLATFORMID: CREATE_FONT_PACKAGE_SUBSET_PLATFORM = CREATE_FONT_PACKAGE_SUBSET_PLATFORM(2u16); impl ::core::marker::Copy for CREATE_FONT_PACKAGE_SUBSET_PLATFORM {} impl ::core::clone::Clone for CREATE_FONT_PACKAGE_SUBSET_PLATFORM { fn clone(&self) -> Self { @@ -7345,6 +7259,251 @@ impl ::core::ops::Not for DC_LAYOUT { #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DEVMODE_COLLATE(pub u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMCOLLATE_FALSE: DEVMODE_COLLATE = DEVMODE_COLLATE(0u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMCOLLATE_TRUE: DEVMODE_COLLATE = DEVMODE_COLLATE(1u32); +impl ::core::marker::Copy for DEVMODE_COLLATE {} +impl ::core::clone::Clone for DEVMODE_COLLATE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DEVMODE_COLLATE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DEVMODE_COLLATE { + type Abi = Self; +} +impl ::core::fmt::Debug for DEVMODE_COLLATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DEVMODE_COLLATE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DEVMODE_COLOR(pub u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMCOLOR_MONOCHROME: DEVMODE_COLOR = DEVMODE_COLOR(1u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMCOLOR_COLOR: DEVMODE_COLOR = DEVMODE_COLOR(2u32); +impl ::core::marker::Copy for DEVMODE_COLOR {} +impl ::core::clone::Clone for DEVMODE_COLOR { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DEVMODE_COLOR { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DEVMODE_COLOR { + type Abi = Self; +} +impl ::core::fmt::Debug for DEVMODE_COLOR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DEVMODE_COLOR").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DEVMODE_DUPLEX(pub u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMDUP_SIMPLEX: DEVMODE_DUPLEX = DEVMODE_DUPLEX(1u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMDUP_VERTICAL: DEVMODE_DUPLEX = DEVMODE_DUPLEX(2u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMDUP_HORIZONTAL: DEVMODE_DUPLEX = DEVMODE_DUPLEX(3u32); +impl ::core::marker::Copy for DEVMODE_DUPLEX {} +impl ::core::clone::Clone for DEVMODE_DUPLEX { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DEVMODE_DUPLEX { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DEVMODE_DUPLEX { + type Abi = Self; +} +impl ::core::fmt::Debug for DEVMODE_DUPLEX { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DEVMODE_DUPLEX").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DEVMODE_FIELD_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_SPECVERSION: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(1025u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_ORIENTATION: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PAPERSIZE: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PAPERLENGTH: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(4u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PAPERWIDTH: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(8u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_SCALE: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(16u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_POSITION: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(32u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_NUP: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(64u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DISPLAYORIENTATION: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(128u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_COPIES: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(256u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DEFAULTSOURCE: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(512u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PRINTQUALITY: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(1024u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_COLOR: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(2048u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DUPLEX: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(4096u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_YRESOLUTION: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(8192u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_TTOPTION: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(16384u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_COLLATE: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(32768u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_FORMNAME: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(65536u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_LOGPIXELS: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(131072u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_BITSPERPEL: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(262144u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PELSWIDTH: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(524288u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PELSHEIGHT: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(1048576u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DISPLAYFLAGS: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(2097152u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DISPLAYFREQUENCY: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(4194304u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_ICMMETHOD: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(8388608u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_ICMINTENT: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(16777216u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_MEDIATYPE: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(33554432u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DITHERTYPE: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(67108864u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PANNINGWIDTH: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(134217728u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PANNINGHEIGHT: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(268435456u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_DISPLAYFIXEDOUTPUT: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(536870912u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_INTERLACED: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_UPDATE: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_COPY: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_PROMPT: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(4u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_MODIFY: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(8u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_IN_BUFFER: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(8u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_IN_PROMPT: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(4u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_OUT_BUFFER: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DM_OUT_DEFAULT: DEVMODE_FIELD_FLAGS = DEVMODE_FIELD_FLAGS(1u32); +impl ::core::marker::Copy for DEVMODE_FIELD_FLAGS {} +impl ::core::clone::Clone for DEVMODE_FIELD_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DEVMODE_FIELD_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DEVMODE_FIELD_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for DEVMODE_FIELD_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DEVMODE_FIELD_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for DEVMODE_FIELD_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for DEVMODE_FIELD_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for DEVMODE_FIELD_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for DEVMODE_FIELD_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for DEVMODE_FIELD_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DEVMODE_TRUETYPE_OPTION(pub u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMTT_BITMAP: DEVMODE_TRUETYPE_OPTION = DEVMODE_TRUETYPE_OPTION(1u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMTT_DOWNLOAD: DEVMODE_TRUETYPE_OPTION = DEVMODE_TRUETYPE_OPTION(2u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMTT_SUBDEV: DEVMODE_TRUETYPE_OPTION = DEVMODE_TRUETYPE_OPTION(3u32); +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub const DMTT_DOWNLOAD_OUTLINE: DEVMODE_TRUETYPE_OPTION = DEVMODE_TRUETYPE_OPTION(4u32); +impl ::core::marker::Copy for DEVMODE_TRUETYPE_OPTION {} +impl ::core::clone::Clone for DEVMODE_TRUETYPE_OPTION { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DEVMODE_TRUETYPE_OPTION { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DEVMODE_TRUETYPE_OPTION { + type Abi = Self; +} +impl ::core::fmt::Debug for DEVMODE_TRUETYPE_OPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DEVMODE_TRUETYPE_OPTION").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct DFCS_STATE(pub u32); #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub const DFCS_CAPTIONCLOSE: DFCS_STATE = DFCS_STATE(0u32); @@ -10851,75 +11010,6 @@ impl ::core::default::Default for COLORADJUSTMENT { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub struct COLORCORRECTPALETTE { - pub emr: EMR, - pub ihPalette: u32, - pub nFirstEntry: u32, - pub nPalEntries: u32, - pub nReserved: u32, -} -impl ::core::marker::Copy for COLORCORRECTPALETTE {} -impl ::core::clone::Clone for COLORCORRECTPALETTE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for COLORCORRECTPALETTE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("COLORCORRECTPALETTE").field("emr", &self.emr).field("ihPalette", &self.ihPalette).field("nFirstEntry", &self.nFirstEntry).field("nPalEntries", &self.nPalEntries).field("nReserved", &self.nReserved).finish() - } -} -unsafe impl ::windows::core::Abi for COLORCORRECTPALETTE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for COLORCORRECTPALETTE { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for COLORCORRECTPALETTE {} -impl ::core::default::Default for COLORCORRECTPALETTE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] -pub struct COLORMATCHTOTARGET { - pub emr: EMR, - pub dwAction: u32, - pub dwFlags: u32, - pub cbName: u32, - pub cbData: u32, - pub Data: [u8; 1], -} -impl ::core::marker::Copy for COLORMATCHTOTARGET {} -impl ::core::clone::Clone for COLORMATCHTOTARGET { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for COLORMATCHTOTARGET { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("COLORMATCHTOTARGET").field("emr", &self.emr).field("dwAction", &self.dwAction).field("dwFlags", &self.dwFlags).field("cbName", &self.cbName).field("cbData", &self.cbData).field("Data", &self.Data).finish() - } -} -unsafe impl ::windows::core::Abi for COLORMATCHTOTARGET { - type Abi = Self; -} -impl ::core::cmp::PartialEq for COLORMATCHTOTARGET { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for COLORMATCHTOTARGET {} -impl ::core::default::Default for COLORMATCHTOTARGET { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct CreatedHDC(pub isize); @@ -10998,13 +11088,13 @@ pub struct DEVMODEA { pub dmDriverVersion: u16, pub dmSize: u16, pub dmDriverExtra: u16, - pub dmFields: u32, + pub dmFields: DEVMODE_FIELD_FLAGS, pub Anonymous1: DEVMODEA_0, - pub dmColor: i16, + pub dmColor: DEVMODE_COLOR, pub dmDuplex: i16, pub dmYResolution: i16, - pub dmTTOption: i16, - pub dmCollate: i16, + pub dmTTOption: DEVMODE_TRUETYPE_OPTION, + pub dmCollate: DEVMODE_COLLATE, pub dmFormName: [u8; 32], pub dmLogPixels: u16, pub dmBitsPerPel: u32, @@ -11207,13 +11297,13 @@ pub struct DEVMODEW { pub dmDriverVersion: u16, pub dmSize: u16, pub dmDriverExtra: u16, - pub dmFields: u32, + pub dmFields: DEVMODE_FIELD_FLAGS, pub Anonymous1: DEVMODEW_0, - pub dmColor: i16, + pub dmColor: DEVMODE_COLOR, pub dmDuplex: i16, pub dmYResolution: i16, - pub dmTTOption: i16, - pub dmCollate: i16, + pub dmTTOption: DEVMODE_TRUETYPE_OPTION, + pub dmCollate: DEVMODE_COLLATE, pub dmFormName: [u16; 32], pub dmLogPixels: u16, pub dmBitsPerPel: u32, @@ -11564,7 +11654,7 @@ impl ::core::default::Default for DRAWTEXTPARAMS { #[repr(C)] #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub struct EMR { - pub iType: u32, + pub iType: ENHANCED_METAFILE_RECORD_TYPE, pub nSize: u32, } impl ::core::marker::Copy for EMR {} @@ -11820,6 +11910,75 @@ impl ::core::default::Default for EMRBITBLT { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub struct EMRCOLORCORRECTPALETTE { + pub emr: EMR, + pub ihPalette: u32, + pub nFirstEntry: u32, + pub nPalEntries: u32, + pub nReserved: u32, +} +impl ::core::marker::Copy for EMRCOLORCORRECTPALETTE {} +impl ::core::clone::Clone for EMRCOLORCORRECTPALETTE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for EMRCOLORCORRECTPALETTE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("EMRCOLORCORRECTPALETTE").field("emr", &self.emr).field("ihPalette", &self.ihPalette).field("nFirstEntry", &self.nFirstEntry).field("nPalEntries", &self.nPalEntries).field("nReserved", &self.nReserved).finish() + } +} +unsafe impl ::windows::core::Abi for EMRCOLORCORRECTPALETTE { + type Abi = Self; +} +impl ::core::cmp::PartialEq for EMRCOLORCORRECTPALETTE { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for EMRCOLORCORRECTPALETTE {} +impl ::core::default::Default for EMRCOLORCORRECTPALETTE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] +pub struct EMRCOLORMATCHTOTARGET { + pub emr: EMR, + pub dwAction: u32, + pub dwFlags: u32, + pub cbName: u32, + pub cbData: u32, + pub Data: [u8; 1], +} +impl ::core::marker::Copy for EMRCOLORMATCHTOTARGET {} +impl ::core::clone::Clone for EMRCOLORMATCHTOTARGET { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for EMRCOLORMATCHTOTARGET { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("EMRCOLORMATCHTOTARGET").field("emr", &self.emr).field("dwAction", &self.dwAction).field("dwFlags", &self.dwFlags).field("cbName", &self.cbName).field("cbData", &self.cbData).field("Data", &self.Data).finish() + } +} +unsafe impl ::windows::core::Abi for EMRCOLORMATCHTOTARGET { + type Abi = Self; +} +impl ::core::cmp::PartialEq for EMRCOLORMATCHTOTARGET { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for EMRCOLORMATCHTOTARGET {} +impl ::core::default::Default for EMRCOLORMATCHTOTARGET { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct EMRCREATEBRUSHINDIRECT { @@ -14339,7 +14498,7 @@ impl ::core::default::Default for ENHMETAHEADER { #[repr(C)] #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] pub struct ENHMETARECORD { - pub iType: u32, + pub iType: ENHANCED_METAFILE_RECORD_TYPE, pub nSize: u32, pub dParm: [u32; 1], } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs index 17e691fde4..0c01cb4a1f 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs @@ -5266,7 +5266,7 @@ impl IWICStream { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::super::System::Com::LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -5276,7 +5276,7 @@ impl IWICStream { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: super::super::System::Com::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs index f532afa421..cf4c056f79 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs @@ -3,358 +3,6 @@ pub mod PrintTicket; #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn AppendPrinterNotifyInfoData(pinfodest: &PRINTER_NOTIFY_INFO, pdatasrc: ::core::option::Option<&PRINTER_NOTIFY_INFO_DATA>, fdwflags: u32) -> super::super::Foundation::BOOL { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn AppendPrinterNotifyInfoData(pinfodest: *const PRINTER_NOTIFY_INFO, pdatasrc: *const PRINTER_NOTIFY_INFO_DATA, fdwflags: u32) -> super::super::Foundation::BOOL; - } - AppendPrinterNotifyInfoData(::core::mem::transmute(pinfodest), ::core::mem::transmute(pdatasrc), fdwflags) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn CallRouterFindFirstPrinterChangeNotification<'a, P0, P1>(hprinterrpc: P0, fdwfilterflags: u32, fdwoptions: u32, hnotify: P1, pprinternotifyoptions: &PRINTER_NOTIFY_OPTIONS) -> u32 -where - P0: ::std::convert::Into, - P1: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn CallRouterFindFirstPrinterChangeNotification(hprinterrpc: super::super::Foundation::HANDLE, fdwfilterflags: u32, fdwoptions: u32, hnotify: super::super::Foundation::HANDLE, pprinternotifyoptions: *const PRINTER_NOTIFY_OPTIONS) -> u32; - } - CallRouterFindFirstPrinterChangeNotification(hprinterrpc.into(), fdwfilterflags, fdwoptions, hnotify.into(), ::core::mem::transmute(pprinternotifyoptions)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] -#[inline] -pub unsafe fn CreatePrinterIC<'a, P0>(hprinter: P0, pdevmode: ::core::option::Option<&super::Gdi::DEVMODEW>) -> super::super::Foundation::HANDLE -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn CreatePrinterIC(hprinter: super::super::Foundation::HANDLE, pdevmode: *const super::Gdi::DEVMODEW) -> super::super::Foundation::HANDLE; - } - CreatePrinterIC(hprinter.into(), ::core::mem::transmute(pdevmode)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DeletePrinterIC<'a, P0>(hprinteric: P0) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DeletePrinterIC(hprinteric: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - } - DeletePrinterIC(hprinteric.into()) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] -#[inline] -pub unsafe fn DevQueryPrint<'a, P0>(hprinter: P0, pdevmode: &super::Gdi::DEVMODEA, presid: &mut u32) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DevQueryPrint(hprinter: super::super::Foundation::HANDLE, pdevmode: *const super::Gdi::DEVMODEA, presid: *mut u32) -> super::super::Foundation::BOOL; - } - DevQueryPrint(hprinter.into(), ::core::mem::transmute(pdevmode), ::core::mem::transmute(presid)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] -#[inline] -pub unsafe fn ExtDeviceMode<'a, P0, P1, P2, P3, P4>(hwnd: P0, hinst: P1, pdevmodeoutput: ::core::option::Option<&mut super::Gdi::DEVMODEA>, pdevicename: P2, pport: P3, pdevmodeinput: ::core::option::Option<&super::Gdi::DEVMODEA>, pprofile: P4, fmode: u32) -> i32 -where - P0: ::std::convert::Into, - P1: ::std::convert::Into, - P2: ::std::convert::Into<::windows::core::PCSTR>, - P3: ::std::convert::Into<::windows::core::PCSTR>, - P4: ::std::convert::Into<::windows::core::PCSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn ExtDeviceMode(hwnd: super::super::Foundation::HWND, hinst: super::super::Foundation::HANDLE, pdevmodeoutput: *mut super::Gdi::DEVMODEA, pdevicename: ::windows::core::PCSTR, pport: ::windows::core::PCSTR, pdevmodeinput: *const super::Gdi::DEVMODEA, pprofile: ::windows::core::PCSTR, fmode: u32) -> i32; - } - ExtDeviceMode(hwnd.into(), hinst.into(), ::core::mem::transmute(pdevmodeoutput), pdevicename.into(), pport.into(), ::core::mem::transmute(pdevmodeinput), pprofile.into(), fmode) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] -#[inline] -pub unsafe fn GetJobAttributes<'a, P0>(pprintername: P0, pdevmode: &super::Gdi::DEVMODEW, pattributeinfo: &mut ATTRIBUTE_INFO_3) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn GetJobAttributes(pprintername: ::windows::core::PCWSTR, pdevmode: *const super::Gdi::DEVMODEW, pattributeinfo: *mut ATTRIBUTE_INFO_3) -> super::super::Foundation::BOOL; - } - GetJobAttributes(pprintername.into(), ::core::mem::transmute(pdevmode), ::core::mem::transmute(pattributeinfo)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] -#[inline] -pub unsafe fn GetJobAttributesEx<'a, P0>(pprintername: P0, pdevmode: &super::Gdi::DEVMODEW, dwlevel: u32, pattributeinfo: &mut [u8], dwflags: u32) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn GetJobAttributesEx(pprintername: ::windows::core::PCWSTR, pdevmode: *const super::Gdi::DEVMODEW, dwlevel: u32, pattributeinfo: *mut u8, nsize: u32, dwflags: u32) -> super::super::Foundation::BOOL; - } - GetJobAttributesEx(pprintername.into(), ::core::mem::transmute(pdevmode), dwlevel, ::core::mem::transmute(pattributeinfo.as_ptr()), pattributeinfo.len() as _, dwflags) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn ImpersonatePrinterClient<'a, P0>(htoken: P0) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn ImpersonatePrinterClient(htoken: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - } - ImpersonatePrinterClient(htoken.into()) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn PartialReplyPrinterChangeNotification<'a, P0>(hprinter: P0, pdatasrc: ::core::option::Option<&PRINTER_NOTIFY_INFO_DATA>) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn PartialReplyPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, pdatasrc: *const PRINTER_NOTIFY_INFO_DATA) -> super::super::Foundation::BOOL; - } - PartialReplyPrinterChangeNotification(hprinter.into(), ::core::mem::transmute(pdatasrc)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn PlayGdiScriptOnPrinterIC<'a, P0>(hprinteric: P0, pin: &[u8], pout: &mut [u8], ul: u32) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn PlayGdiScriptOnPrinterIC(hprinteric: super::super::Foundation::HANDLE, pin: *const u8, cin: u32, pout: *mut u8, cout: u32, ul: u32) -> super::super::Foundation::BOOL; - } - PlayGdiScriptOnPrinterIC(hprinteric.into(), ::core::mem::transmute(pin.as_ptr()), pin.len() as _, ::core::mem::transmute(pout.as_ptr()), pout.len() as _, ul) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn ProvidorFindClosePrinterChangeNotification<'a, P0>(hprinter: P0) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn ProvidorFindClosePrinterChangeNotification(hprinter: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - } - ProvidorFindClosePrinterChangeNotification(hprinter.into()) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn ProvidorFindFirstPrinterChangeNotification<'a, P0, P1>(hprinter: P0, fdwflags: u32, fdwoptions: u32, hnotify: P1, pprinternotifyoptions: *const ::core::ffi::c_void, pvreserved1: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, - P1: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn ProvidorFindFirstPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, fdwflags: u32, fdwoptions: u32, hnotify: super::super::Foundation::HANDLE, pprinternotifyoptions: *const ::core::ffi::c_void, pvreserved1: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; - } - ProvidorFindFirstPrinterChangeNotification(hprinter.into(), fdwflags, fdwoptions, hnotify.into(), ::core::mem::transmute(pprinternotifyoptions), ::core::mem::transmute(pvreserved1)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn ReplyPrinterChangeNotification<'a, P0>(hprinter: P0, fdwchangeflags: u32, pdwresult: ::core::option::Option<&mut u32>, pprinternotifyinfo: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn ReplyPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, fdwchangeflags: u32, pdwresult: *mut u32, pprinternotifyinfo: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; - } - ReplyPrinterChangeNotification(hprinter.into(), fdwchangeflags, ::core::mem::transmute(pdwresult), ::core::mem::transmute(pprinternotifyinfo)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn ReplyPrinterChangeNotificationEx<'a, P0>(hnotify: P0, dwcolor: u32, fdwflags: u32, pdwresult: &mut u32, pprinternotifyinfo: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn ReplyPrinterChangeNotificationEx(hnotify: super::super::Foundation::HANDLE, dwcolor: u32, fdwflags: u32, pdwresult: *mut u32, pprinternotifyinfo: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; - } - ReplyPrinterChangeNotificationEx(hnotify.into(), dwcolor, fdwflags, ::core::mem::transmute(pdwresult), ::core::mem::transmute(pprinternotifyinfo)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RevertToPrinterSelf() -> super::super::Foundation::HANDLE { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RevertToPrinterSelf() -> super::super::Foundation::HANDLE; - } - RevertToPrinterSelf() -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -#[inline] -pub unsafe fn RouterAllocBidiMem(numbytes: usize) -> *mut ::core::ffi::c_void { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterAllocBidiMem(numbytes: usize) -> *mut ::core::ffi::c_void; - } - RouterAllocBidiMem(numbytes) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterAllocBidiResponseContainer(count: u32) -> *mut BIDI_RESPONSE_CONTAINER { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterAllocBidiResponseContainer(count: u32) -> *mut BIDI_RESPONSE_CONTAINER; - } - RouterAllocBidiResponseContainer(count) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -#[inline] -pub unsafe fn RouterAllocPrinterNotifyInfo(cprinternotifyinfodata: u32) -> *mut PRINTER_NOTIFY_INFO { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterAllocPrinterNotifyInfo(cprinternotifyinfodata: u32) -> *mut PRINTER_NOTIFY_INFO; - } - RouterAllocPrinterNotifyInfo(cprinternotifyinfodata) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -#[inline] -pub unsafe fn RouterFreeBidiMem(pmempointer: *const ::core::ffi::c_void) { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterFreeBidiMem(pmempointer: *const ::core::ffi::c_void); - } - RouterFreeBidiMem(::core::mem::transmute(pmempointer)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterFreeBidiResponseContainer(pdata: &BIDI_RESPONSE_CONTAINER) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterFreeBidiResponseContainer(pdata: *const BIDI_RESPONSE_CONTAINER) -> u32; - } - RouterFreeBidiResponseContainer(::core::mem::transmute(pdata)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterFreePrinterNotifyInfo(pinfo: ::core::option::Option<&PRINTER_NOTIFY_INFO>) -> super::super::Foundation::BOOL { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterFreePrinterNotifyInfo(pinfo: *const PRINTER_NOTIFY_INFO) -> super::super::Foundation::BOOL; - } - RouterFreePrinterNotifyInfo(::core::mem::transmute(pinfo)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn SplIsSessionZero<'a, P0>(hprinter: P0, jobid: u32, pissessionzero: &mut super::super::Foundation::BOOL) -> u32 -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn SplIsSessionZero(hprinter: super::super::Foundation::HANDLE, jobid: u32, pissessionzero: *mut super::super::Foundation::BOOL) -> u32; - } - SplIsSessionZero(hprinter.into(), jobid, ::core::mem::transmute(pissessionzero)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn SplPromptUIInUsersSession<'a, P0>(hprinter: P0, jobid: u32, puiparams: &SHOWUIPARAMS, presponse: &mut u32) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn SplPromptUIInUsersSession(hprinter: super::super::Foundation::HANDLE, jobid: u32, puiparams: *const SHOWUIPARAMS, presponse: *mut u32) -> super::super::Foundation::BOOL; - } - SplPromptUIInUsersSession(hprinter.into(), jobid, ::core::mem::transmute(puiparams), ::core::mem::transmute(presponse)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn SpoolerFindClosePrinterChangeNotification<'a, P0>(hprinter: P0) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn SpoolerFindClosePrinterChangeNotification(hprinter: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - } - SpoolerFindClosePrinterChangeNotification(hprinter.into()) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn SpoolerFindFirstPrinterChangeNotification<'a, P0>(hprinter: P0, fdwfilterflags: u32, fdwoptions: u32, pprinternotifyoptions: *const ::core::ffi::c_void, pvreserved: *const ::core::ffi::c_void, pnotificationconfig: *const ::core::ffi::c_void, phnotify: ::core::option::Option<&mut super::super::Foundation::HANDLE>, phevent: ::core::option::Option<&mut super::super::Foundation::HANDLE>) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn SpoolerFindFirstPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, fdwfilterflags: u32, fdwoptions: u32, pprinternotifyoptions: *const ::core::ffi::c_void, pvreserved: *const ::core::ffi::c_void, pnotificationconfig: *const ::core::ffi::c_void, phnotify: *mut super::super::Foundation::HANDLE, phevent: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; - } - SpoolerFindFirstPrinterChangeNotification(hprinter.into(), fdwfilterflags, fdwoptions, ::core::mem::transmute(pprinternotifyoptions), ::core::mem::transmute(pvreserved), ::core::mem::transmute(pnotificationconfig), ::core::mem::transmute(phnotify), ::core::mem::transmute(phevent)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn SpoolerFindNextPrinterChangeNotification<'a, P0>(hprinter: P0, pfdwchange: &mut u32, pprinternotifyoptions: *const ::core::ffi::c_void, ppprinternotifyinfo: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn SpoolerFindNextPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, pfdwchange: *mut u32, pprinternotifyoptions: *const ::core::ffi::c_void, ppprinternotifyinfo: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; - } - SpoolerFindNextPrinterChangeNotification(hprinter.into(), ::core::mem::transmute(pfdwchange), ::core::mem::transmute(pprinternotifyoptions), ::core::mem::transmute(ppprinternotifyinfo)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -#[inline] -pub unsafe fn SpoolerFreePrinterNotifyInfo(pinfo: &PRINTER_NOTIFY_INFO) { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn SpoolerFreePrinterNotifyInfo(pinfo: *const PRINTER_NOTIFY_INFO); - } - SpoolerFreePrinterNotifyInfo(::core::mem::transmute(pinfo)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn SpoolerRefreshPrinterChangeNotification<'a, P0>(hprinter: P0, dwcolor: u32, poptions: &PRINTER_NOTIFY_OPTIONS, ppinfo: ::core::option::Option<&mut *mut PRINTER_NOTIFY_INFO>) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn SpoolerRefreshPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, dwcolor: u32, poptions: *const PRINTER_NOTIFY_OPTIONS, ppinfo: *mut *mut PRINTER_NOTIFY_INFO) -> super::super::Foundation::BOOL; - } - SpoolerRefreshPrinterChangeNotification(hprinter.into(), dwcolor, ::core::mem::transmute(poptions), ::core::mem::transmute(ppinfo)) -} -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] pub unsafe fn AbortPrinter<'a, P0>(hprinter: P0) -> super::super::Foundation::BOOL where P0: ::std::convert::Into, @@ -688,24 +336,48 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn AdvancedDocumentPropertiesA(hwnd: super::super::Foundation::HWND, hprinter: super::super::Foundation::HANDLE, pdevicename: ::windows::core::PCSTR, pdevmodeoutput: *mut super::Gdi::DEVMODEA, pdevmodeinput: *const super::Gdi::DEVMODEA) -> i32; + fn AdvancedDocumentPropertiesA(hwnd: super::super::Foundation::HWND, hprinter: super::super::Foundation::HANDLE, pdevicename: ::windows::core::PCSTR, pdevmodeoutput: *mut super::Gdi::DEVMODEA, pdevmodeinput: *const super::Gdi::DEVMODEA) -> i32; + } + AdvancedDocumentPropertiesA(hwnd.into(), hprinter.into(), pdevicename.into(), ::core::mem::transmute(pdevmodeoutput), ::core::mem::transmute(pdevmodeinput)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] +#[inline] +pub unsafe fn AdvancedDocumentPropertiesW<'a, P0, P1, P2>(hwnd: P0, hprinter: P1, pdevicename: P2, pdevmodeoutput: ::core::option::Option<&mut super::Gdi::DEVMODEW>, pdevmodeinput: ::core::option::Option<&super::Gdi::DEVMODEW>) -> i32 +where + P0: ::std::convert::Into, + P1: ::std::convert::Into, + P2: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn AdvancedDocumentPropertiesW(hwnd: super::super::Foundation::HWND, hprinter: super::super::Foundation::HANDLE, pdevicename: ::windows::core::PCWSTR, pdevmodeoutput: *mut super::Gdi::DEVMODEW, pdevmodeinput: *const super::Gdi::DEVMODEW) -> i32; + } + AdvancedDocumentPropertiesW(hwnd.into(), hprinter.into(), pdevicename.into(), ::core::mem::transmute(pdevmodeoutput), ::core::mem::transmute(pdevmodeinput)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn AppendPrinterNotifyInfoData(pinfodest: &PRINTER_NOTIFY_INFO, pdatasrc: ::core::option::Option<&PRINTER_NOTIFY_INFO_DATA>, fdwflags: u32) -> super::super::Foundation::BOOL { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn AppendPrinterNotifyInfoData(pinfodest: *const PRINTER_NOTIFY_INFO, pdatasrc: *const PRINTER_NOTIFY_INFO_DATA, fdwflags: u32) -> super::super::Foundation::BOOL; } - AdvancedDocumentPropertiesA(hwnd.into(), hprinter.into(), pdevicename.into(), ::core::mem::transmute(pdevmodeoutput), ::core::mem::transmute(pdevmodeinput)) + AppendPrinterNotifyInfoData(::core::mem::transmute(pinfodest), ::core::mem::transmute(pdatasrc), fdwflags) } -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn AdvancedDocumentPropertiesW<'a, P0, P1, P2>(hwnd: P0, hprinter: P1, pdevicename: P2, pdevmodeoutput: ::core::option::Option<&mut super::Gdi::DEVMODEW>, pdevmodeinput: ::core::option::Option<&super::Gdi::DEVMODEW>) -> i32 +pub unsafe fn CallRouterFindFirstPrinterChangeNotification<'a, P0, P1>(hprinterrpc: P0, fdwfilterflags: u32, fdwoptions: u32, hnotify: P1, pprinternotifyoptions: &PRINTER_NOTIFY_OPTIONS) -> u32 where - P0: ::std::convert::Into, + P0: ::std::convert::Into, P1: ::std::convert::Into, - P2: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn AdvancedDocumentPropertiesW(hwnd: super::super::Foundation::HWND, hprinter: super::super::Foundation::HANDLE, pdevicename: ::windows::core::PCWSTR, pdevmodeoutput: *mut super::Gdi::DEVMODEW, pdevmodeinput: *const super::Gdi::DEVMODEW) -> i32; + fn CallRouterFindFirstPrinterChangeNotification(hprinterrpc: super::super::Foundation::HANDLE, fdwfilterflags: u32, fdwoptions: u32, hnotify: super::super::Foundation::HANDLE, pprinternotifyoptions: *const PRINTER_NOTIFY_OPTIONS) -> u32; } - AdvancedDocumentPropertiesW(hwnd.into(), hprinter.into(), pdevicename.into(), ::core::mem::transmute(pdevmodeoutput), ::core::mem::transmute(pdevmodeinput)) + CallRouterFindFirstPrinterChangeNotification(hprinterrpc.into(), fdwfilterflags, fdwoptions, hnotify.into(), ::core::mem::transmute(pprinternotifyoptions)) } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -863,6 +535,19 @@ where let mut result__ = ::core::mem::MaybeUninit::zeroed(); CreatePrintAsyncNotifyChannel(pszname.into(), ::core::mem::transmute(pnotificationtype), euserfilter, econversationstyle, pcallback.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] +#[inline] +pub unsafe fn CreatePrinterIC<'a, P0>(hprinter: P0, pdevmode: ::core::option::Option<&super::Gdi::DEVMODEW>) -> super::super::Foundation::HANDLE +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn CreatePrinterIC(hprinter: super::super::Foundation::HANDLE, pdevmode: *const super::Gdi::DEVMODEW) -> super::super::Foundation::HANDLE; + } + CreatePrinterIC(hprinter.into(), ::core::mem::transmute(pdevmode)) +} #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -1213,6 +898,19 @@ where #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn DeletePrinterIC<'a, P0>(hprinteric: P0) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DeletePrinterIC(hprinteric: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; + } + DeletePrinterIC(hprinteric.into()) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn DeletePrinterKeyA<'a, P0, P1>(hprinter: P0, pkeyname: P1) -> u32 where P0: ::std::convert::Into, @@ -1241,6 +939,19 @@ where #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] #[inline] +pub unsafe fn DevQueryPrint<'a, P0>(hprinter: P0, pdevmode: &super::Gdi::DEVMODEA, presid: &mut u32) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DevQueryPrint(hprinter: super::super::Foundation::HANDLE, pdevmode: *const super::Gdi::DEVMODEA, presid: *mut u32) -> super::super::Foundation::BOOL; + } + DevQueryPrint(hprinter.into(), ::core::mem::transmute(pdevmode), ::core::mem::transmute(presid)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] +#[inline] pub unsafe fn DevQueryPrintEx(pdqpinfo: &mut DEVQUERYPRINT_INFO) -> super::super::Foundation::BOOL { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -1613,6 +1324,23 @@ where } EnumPrintersW(flags, name.into(), level, ::core::mem::transmute(pprinterenum.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pprinterenum.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(pcbneeded), ::core::mem::transmute(pcreturned)) } +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] +#[inline] +pub unsafe fn ExtDeviceMode<'a, P0, P1, P2, P3, P4>(hwnd: P0, hinst: P1, pdevmodeoutput: ::core::option::Option<&mut super::Gdi::DEVMODEA>, pdevicename: P2, pport: P3, pdevmodeinput: ::core::option::Option<&super::Gdi::DEVMODEA>, pprofile: P4, fmode: u32) -> i32 +where + P0: ::std::convert::Into, + P1: ::std::convert::Into, + P2: ::std::convert::Into<::windows::core::PCSTR>, + P3: ::std::convert::Into<::windows::core::PCSTR>, + P4: ::std::convert::Into<::windows::core::PCSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn ExtDeviceMode(hwnd: super::super::Foundation::HWND, hinst: super::super::Foundation::HANDLE, pdevmodeoutput: *mut super::Gdi::DEVMODEA, pdevicename: ::windows::core::PCSTR, pport: ::windows::core::PCSTR, pdevmodeinput: *const super::Gdi::DEVMODEA, pprofile: ::windows::core::PCSTR, fmode: u32) -> i32; + } + ExtDeviceMode(hwnd.into(), hinst.into(), ::core::mem::transmute(pdevmodeoutput), pdevicename.into(), pport.into(), ::core::mem::transmute(pdevmodeinput), pprofile.into(), fmode) +} #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -1968,6 +1696,32 @@ where } GetJobA(hprinter.into(), jobid, level, ::core::mem::transmute(pjob.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pjob.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(pcbneeded)) } +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] +#[inline] +pub unsafe fn GetJobAttributes<'a, P0>(pprintername: P0, pdevmode: &super::Gdi::DEVMODEW, pattributeinfo: &mut ATTRIBUTE_INFO_3) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn GetJobAttributes(pprintername: ::windows::core::PCWSTR, pdevmode: *const super::Gdi::DEVMODEW, pattributeinfo: *mut ATTRIBUTE_INFO_3) -> super::super::Foundation::BOOL; + } + GetJobAttributes(pprintername.into(), ::core::mem::transmute(pdevmode), ::core::mem::transmute(pattributeinfo)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] +#[inline] +pub unsafe fn GetJobAttributesEx<'a, P0>(pprintername: P0, pdevmode: &super::Gdi::DEVMODEW, dwlevel: u32, pattributeinfo: &mut [u8], dwflags: u32) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn GetJobAttributesEx(pprintername: ::windows::core::PCWSTR, pdevmode: *const super::Gdi::DEVMODEW, dwlevel: u32, pattributeinfo: *mut u8, nsize: u32, dwflags: u32) -> super::super::Foundation::BOOL; + } + GetJobAttributesEx(pprintername.into(), ::core::mem::transmute(pdevmode), dwlevel, ::core::mem::transmute(pattributeinfo.as_ptr()), pattributeinfo.len() as _, dwflags) +} #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -2260,6 +2014,19 @@ where } GetSpoolFileHandle(hprinter.into()) } +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn ImpersonatePrinterClient<'a, P0>(htoken: P0) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn ImpersonatePrinterClient(htoken: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; + } + ImpersonatePrinterClient(htoken.into()) +} #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] #[inline] pub unsafe fn InstallPrinterDriverFromPackageA<'a, P0, P1, P2, P3>(pszserver: P0, pszinfpath: P1, pszdrivername: P2, pszenvironment: P3, dwflags: u32) -> ::windows::core::Result<()> @@ -2365,6 +2132,32 @@ where #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn PartialReplyPrinterChangeNotification<'a, P0>(hprinter: P0, pdatasrc: ::core::option::Option<&PRINTER_NOTIFY_INFO_DATA>) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn PartialReplyPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, pdatasrc: *const PRINTER_NOTIFY_INFO_DATA) -> super::super::Foundation::BOOL; + } + PartialReplyPrinterChangeNotification(hprinter.into(), ::core::mem::transmute(pdatasrc)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn PlayGdiScriptOnPrinterIC<'a, P0>(hprinteric: P0, pin: &[u8], pout: &mut [u8], ul: u32) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn PlayGdiScriptOnPrinterIC(hprinteric: super::super::Foundation::HANDLE, pin: *const u8, cin: u32, pout: *mut u8, cout: u32, ul: u32) -> super::super::Foundation::BOOL; + } + PlayGdiScriptOnPrinterIC(hprinteric.into(), ::core::mem::transmute(pin.as_ptr()), pin.len() as _, ::core::mem::transmute(pout.as_ptr()), pout.len() as _, ul) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn PrinterMessageBoxA<'a, P0, P1, P2, P3>(hprinter: P0, error: u32, hwnd: P1, ptext: P2, pcaption: P3, dwtype: u32) -> u32 where P0: ::std::convert::Into, @@ -2411,6 +2204,33 @@ where #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn ProvidorFindClosePrinterChangeNotification<'a, P0>(hprinter: P0) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn ProvidorFindClosePrinterChangeNotification(hprinter: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; + } + ProvidorFindClosePrinterChangeNotification(hprinter.into()) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn ProvidorFindFirstPrinterChangeNotification<'a, P0, P1>(hprinter: P0, fdwflags: u32, fdwoptions: u32, hnotify: P1, pprinternotifyoptions: *const ::core::ffi::c_void, pvreserved1: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, + P1: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn ProvidorFindFirstPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, fdwflags: u32, fdwoptions: u32, hnotify: super::super::Foundation::HANDLE, pprinternotifyoptions: *const ::core::ffi::c_void, pvreserved1: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; + } + ProvidorFindFirstPrinterChangeNotification(hprinter.into(), fdwflags, fdwoptions, hnotify.into(), ::core::mem::transmute(pprinternotifyoptions), ::core::mem::transmute(pvreserved1)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn ReadPrinter<'a, P0>(hprinter: P0, pbuf: &mut [u8], pnobytesread: &mut u32) -> super::super::Foundation::BOOL where P0: ::std::convert::Into, @@ -2452,6 +2272,32 @@ where #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn ReplyPrinterChangeNotification<'a, P0>(hprinter: P0, fdwchangeflags: u32, pdwresult: ::core::option::Option<&mut u32>, pprinternotifyinfo: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn ReplyPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, fdwchangeflags: u32, pdwresult: *mut u32, pprinternotifyinfo: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; + } + ReplyPrinterChangeNotification(hprinter.into(), fdwchangeflags, ::core::mem::transmute(pdwresult), ::core::mem::transmute(pprinternotifyinfo)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn ReplyPrinterChangeNotificationEx<'a, P0>(hnotify: P0, dwcolor: u32, fdwflags: u32, pdwresult: &mut u32, pprinternotifyinfo: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn ReplyPrinterChangeNotificationEx(hnotify: super::super::Foundation::HANDLE, dwcolor: u32, fdwflags: u32, pdwresult: *mut u32, pprinternotifyinfo: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; + } + ReplyPrinterChangeNotificationEx(hnotify.into(), dwcolor, fdwflags, ::core::mem::transmute(pdwresult), ::core::mem::transmute(pprinternotifyinfo)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn ReportJobProcessingProgress<'a, P0>(printerhandle: P0, jobid: u32, joboperation: EPrintXPSJobOperation, jobprogress: EPrintXPSJobProgress) -> ::windows::core::Result<()> where P0: ::std::convert::Into, @@ -2484,9 +2330,76 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn ResetPrinterW(hprinter: super::super::Foundation::HANDLE, pdefault: *const PRINTER_DEFAULTSW) -> super::super::Foundation::BOOL; + fn ResetPrinterW(hprinter: super::super::Foundation::HANDLE, pdefault: *const PRINTER_DEFAULTSW) -> super::super::Foundation::BOOL; + } + ResetPrinterW(hprinter.into(), ::core::mem::transmute(pdefault)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RevertToPrinterSelf() -> super::super::Foundation::HANDLE { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RevertToPrinterSelf() -> super::super::Foundation::HANDLE; + } + RevertToPrinterSelf() +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] +#[inline] +pub unsafe fn RouterAllocBidiMem(numbytes: usize) -> *mut ::core::ffi::c_void { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterAllocBidiMem(numbytes: usize) -> *mut ::core::ffi::c_void; + } + RouterAllocBidiMem(numbytes) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterAllocBidiResponseContainer(count: u32) -> *mut BIDI_RESPONSE_CONTAINER { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterAllocBidiResponseContainer(count: u32) -> *mut BIDI_RESPONSE_CONTAINER; + } + RouterAllocBidiResponseContainer(count) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] +#[inline] +pub unsafe fn RouterAllocPrinterNotifyInfo(cprinternotifyinfodata: u32) -> *mut PRINTER_NOTIFY_INFO { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterAllocPrinterNotifyInfo(cprinternotifyinfodata: u32) -> *mut PRINTER_NOTIFY_INFO; + } + RouterAllocPrinterNotifyInfo(cprinternotifyinfodata) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] +#[inline] +pub unsafe fn RouterFreeBidiMem(pmempointer: *const ::core::ffi::c_void) { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterFreeBidiMem(pmempointer: *const ::core::ffi::c_void); + } + RouterFreeBidiMem(::core::mem::transmute(pmempointer)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterFreeBidiResponseContainer(pdata: &BIDI_RESPONSE_CONTAINER) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterFreeBidiResponseContainer(pdata: *const BIDI_RESPONSE_CONTAINER) -> u32; + } + RouterFreeBidiResponseContainer(::core::mem::transmute(pdata)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterFreePrinterNotifyInfo(pinfo: ::core::option::Option<&PRINTER_NOTIFY_INFO>) -> super::super::Foundation::BOOL { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterFreePrinterNotifyInfo(pinfo: *const PRINTER_NOTIFY_INFO) -> super::super::Foundation::BOOL; } - ResetPrinterW(hprinter.into(), ::core::mem::transmute(pdefault)) + RouterFreePrinterNotifyInfo(::core::mem::transmute(pinfo)) } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -2722,6 +2635,32 @@ where #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn SplIsSessionZero<'a, P0>(hprinter: P0, jobid: u32, pissessionzero: &mut super::super::Foundation::BOOL) -> u32 +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn SplIsSessionZero(hprinter: super::super::Foundation::HANDLE, jobid: u32, pissessionzero: *mut super::super::Foundation::BOOL) -> u32; + } + SplIsSessionZero(hprinter.into(), jobid, ::core::mem::transmute(pissessionzero)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn SplPromptUIInUsersSession<'a, P0>(hprinter: P0, jobid: u32, puiparams: &SHOWUIPARAMS, presponse: &mut u32) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn SplPromptUIInUsersSession(hprinter: super::super::Foundation::HANDLE, jobid: u32, puiparams: *const SHOWUIPARAMS, presponse: *mut u32) -> super::super::Foundation::BOOL; + } + SplPromptUIInUsersSession(hprinter.into(), jobid, ::core::mem::transmute(puiparams), ::core::mem::transmute(presponse)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn SpoolerCopyFileEvent<'a, P0, P1>(pszprintername: P0, pszkey: P1, dwcopyfileevent: u32) -> super::super::Foundation::BOOL where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -2736,6 +2675,67 @@ where #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn SpoolerFindClosePrinterChangeNotification<'a, P0>(hprinter: P0) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn SpoolerFindClosePrinterChangeNotification(hprinter: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; + } + SpoolerFindClosePrinterChangeNotification(hprinter.into()) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn SpoolerFindFirstPrinterChangeNotification<'a, P0>(hprinter: P0, fdwfilterflags: u32, fdwoptions: u32, pprinternotifyoptions: *const ::core::ffi::c_void, pvreserved: *const ::core::ffi::c_void, pnotificationconfig: *const ::core::ffi::c_void, phnotify: ::core::option::Option<&mut super::super::Foundation::HANDLE>, phevent: ::core::option::Option<&mut super::super::Foundation::HANDLE>) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn SpoolerFindFirstPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, fdwfilterflags: u32, fdwoptions: u32, pprinternotifyoptions: *const ::core::ffi::c_void, pvreserved: *const ::core::ffi::c_void, pnotificationconfig: *const ::core::ffi::c_void, phnotify: *mut super::super::Foundation::HANDLE, phevent: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL; + } + SpoolerFindFirstPrinterChangeNotification(hprinter.into(), fdwfilterflags, fdwoptions, ::core::mem::transmute(pprinternotifyoptions), ::core::mem::transmute(pvreserved), ::core::mem::transmute(pnotificationconfig), ::core::mem::transmute(phnotify), ::core::mem::transmute(phevent)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn SpoolerFindNextPrinterChangeNotification<'a, P0>(hprinter: P0, pfdwchange: &mut u32, pprinternotifyoptions: *const ::core::ffi::c_void, ppprinternotifyinfo: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn SpoolerFindNextPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, pfdwchange: *mut u32, pprinternotifyoptions: *const ::core::ffi::c_void, ppprinternotifyinfo: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; + } + SpoolerFindNextPrinterChangeNotification(hprinter.into(), ::core::mem::transmute(pfdwchange), ::core::mem::transmute(pprinternotifyoptions), ::core::mem::transmute(ppprinternotifyinfo)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] +#[inline] +pub unsafe fn SpoolerFreePrinterNotifyInfo(pinfo: &PRINTER_NOTIFY_INFO) { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn SpoolerFreePrinterNotifyInfo(pinfo: *const PRINTER_NOTIFY_INFO); + } + SpoolerFreePrinterNotifyInfo(::core::mem::transmute(pinfo)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn SpoolerRefreshPrinterChangeNotification<'a, P0>(hprinter: P0, dwcolor: u32, poptions: &PRINTER_NOTIFY_OPTIONS, ppinfo: ::core::option::Option<&mut *mut PRINTER_NOTIFY_INFO>) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn SpoolerRefreshPrinterChangeNotification(hprinter: super::super::Foundation::HANDLE, dwcolor: u32, poptions: *const PRINTER_NOTIFY_OPTIONS, ppinfo: *mut *mut PRINTER_NOTIFY_INFO) -> super::super::Foundation::BOOL; + } + SpoolerRefreshPrinterChangeNotification(hprinter.into(), dwcolor, ::core::mem::transmute(poptions), ::core::mem::transmute(ppinfo)) +} +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn StartDocPrinterA<'a, P0>(hprinter: P0, level: u32, pdocinfo: &DOC_INFO_1A) -> u32 where P0: ::std::convert::Into, @@ -15510,104 +15510,104 @@ impl ::core::fmt::Debug for EXpsJobConsumption { #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct MxdcImageTypeEnums(pub i32); +pub struct MXDC_IMAGE_TYPE_ENUMS(pub i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_IMAGETYPE_JPEGHIGH_COMPRESSION: MxdcImageTypeEnums = MxdcImageTypeEnums(1i32); +pub const MXDC_IMAGETYPE_JPEGHIGH_COMPRESSION: MXDC_IMAGE_TYPE_ENUMS = MXDC_IMAGE_TYPE_ENUMS(1i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_IMAGETYPE_JPEGMEDIUM_COMPRESSION: MxdcImageTypeEnums = MxdcImageTypeEnums(2i32); +pub const MXDC_IMAGETYPE_JPEGMEDIUM_COMPRESSION: MXDC_IMAGE_TYPE_ENUMS = MXDC_IMAGE_TYPE_ENUMS(2i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_IMAGETYPE_JPEGLOW_COMPRESSION: MxdcImageTypeEnums = MxdcImageTypeEnums(3i32); +pub const MXDC_IMAGETYPE_JPEGLOW_COMPRESSION: MXDC_IMAGE_TYPE_ENUMS = MXDC_IMAGE_TYPE_ENUMS(3i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_IMAGETYPE_PNG: MxdcImageTypeEnums = MxdcImageTypeEnums(4i32); -impl ::core::marker::Copy for MxdcImageTypeEnums {} -impl ::core::clone::Clone for MxdcImageTypeEnums { +pub const MXDC_IMAGETYPE_PNG: MXDC_IMAGE_TYPE_ENUMS = MXDC_IMAGE_TYPE_ENUMS(4i32); +impl ::core::marker::Copy for MXDC_IMAGE_TYPE_ENUMS {} +impl ::core::clone::Clone for MXDC_IMAGE_TYPE_ENUMS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for MxdcImageTypeEnums { +impl ::core::default::Default for MXDC_IMAGE_TYPE_ENUMS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for MxdcImageTypeEnums { +unsafe impl ::windows::core::Abi for MXDC_IMAGE_TYPE_ENUMS { type Abi = Self; } -impl ::core::fmt::Debug for MxdcImageTypeEnums { +impl ::core::fmt::Debug for MXDC_IMAGE_TYPE_ENUMS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MxdcImageTypeEnums").field(&self.0).finish() + f.debug_tuple("MXDC_IMAGE_TYPE_ENUMS").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct MxdcLandscapeRotationEnums(pub i32); +pub struct MXDC_LANDSCAPE_ROTATION_ENUMS(pub i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_LANDSCAPE_ROTATE_COUNTERCLOCKWISE_90_DEGREES: MxdcLandscapeRotationEnums = MxdcLandscapeRotationEnums(90i32); +pub const MXDC_LANDSCAPE_ROTATE_COUNTERCLOCKWISE_90_DEGREES: MXDC_LANDSCAPE_ROTATION_ENUMS = MXDC_LANDSCAPE_ROTATION_ENUMS(90i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_LANDSCAPE_ROTATE_NONE: MxdcLandscapeRotationEnums = MxdcLandscapeRotationEnums(0i32); +pub const MXDC_LANDSCAPE_ROTATE_NONE: MXDC_LANDSCAPE_ROTATION_ENUMS = MXDC_LANDSCAPE_ROTATION_ENUMS(0i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_LANDSCAPE_ROTATE_COUNTERCLOCKWISE_270_DEGREES: MxdcLandscapeRotationEnums = MxdcLandscapeRotationEnums(-90i32); -impl ::core::marker::Copy for MxdcLandscapeRotationEnums {} -impl ::core::clone::Clone for MxdcLandscapeRotationEnums { +pub const MXDC_LANDSCAPE_ROTATE_COUNTERCLOCKWISE_270_DEGREES: MXDC_LANDSCAPE_ROTATION_ENUMS = MXDC_LANDSCAPE_ROTATION_ENUMS(-90i32); +impl ::core::marker::Copy for MXDC_LANDSCAPE_ROTATION_ENUMS {} +impl ::core::clone::Clone for MXDC_LANDSCAPE_ROTATION_ENUMS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for MxdcLandscapeRotationEnums { +impl ::core::default::Default for MXDC_LANDSCAPE_ROTATION_ENUMS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for MxdcLandscapeRotationEnums { +unsafe impl ::windows::core::Abi for MXDC_LANDSCAPE_ROTATION_ENUMS { type Abi = Self; } -impl ::core::fmt::Debug for MxdcLandscapeRotationEnums { +impl ::core::fmt::Debug for MXDC_LANDSCAPE_ROTATION_ENUMS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MxdcLandscapeRotationEnums").field(&self.0).finish() + f.debug_tuple("MXDC_LANDSCAPE_ROTATION_ENUMS").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct MxdcS0PageEnums(pub i32); +pub struct MXDC_S0_PAGE_ENUMS(pub i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_TTF: MxdcS0PageEnums = MxdcS0PageEnums(0i32); +pub const MXDC_RESOURCE_TTF: MXDC_S0_PAGE_ENUMS = MXDC_S0_PAGE_ENUMS(0i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_JPEG: MxdcS0PageEnums = MxdcS0PageEnums(1i32); +pub const MXDC_RESOURCE_JPEG: MXDC_S0_PAGE_ENUMS = MXDC_S0_PAGE_ENUMS(1i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_PNG: MxdcS0PageEnums = MxdcS0PageEnums(2i32); +pub const MXDC_RESOURCE_PNG: MXDC_S0_PAGE_ENUMS = MXDC_S0_PAGE_ENUMS(2i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_TIFF: MxdcS0PageEnums = MxdcS0PageEnums(3i32); +pub const MXDC_RESOURCE_TIFF: MXDC_S0_PAGE_ENUMS = MXDC_S0_PAGE_ENUMS(3i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_WDP: MxdcS0PageEnums = MxdcS0PageEnums(4i32); +pub const MXDC_RESOURCE_WDP: MXDC_S0_PAGE_ENUMS = MXDC_S0_PAGE_ENUMS(4i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_DICTIONARY: MxdcS0PageEnums = MxdcS0PageEnums(5i32); +pub const MXDC_RESOURCE_DICTIONARY: MXDC_S0_PAGE_ENUMS = MXDC_S0_PAGE_ENUMS(5i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_ICC_PROFILE: MxdcS0PageEnums = MxdcS0PageEnums(6i32); +pub const MXDC_RESOURCE_ICC_PROFILE: MXDC_S0_PAGE_ENUMS = MXDC_S0_PAGE_ENUMS(6i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_JPEG_THUMBNAIL: MxdcS0PageEnums = MxdcS0PageEnums(7i32); +pub const MXDC_RESOURCE_JPEG_THUMBNAIL: MXDC_S0_PAGE_ENUMS = MXDC_S0_PAGE_ENUMS(7i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_PNG_THUMBNAIL: MxdcS0PageEnums = MxdcS0PageEnums(8i32); +pub const MXDC_RESOURCE_PNG_THUMBNAIL: MXDC_S0_PAGE_ENUMS = MXDC_S0_PAGE_ENUMS(8i32); #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub const MXDC_RESOURCE_MAX: MxdcS0PageEnums = MxdcS0PageEnums(9i32); -impl ::core::marker::Copy for MxdcS0PageEnums {} -impl ::core::clone::Clone for MxdcS0PageEnums { +pub const MXDC_RESOURCE_MAX: MXDC_S0_PAGE_ENUMS = MXDC_S0_PAGE_ENUMS(9i32); +impl ::core::marker::Copy for MXDC_S0_PAGE_ENUMS {} +impl ::core::clone::Clone for MXDC_S0_PAGE_ENUMS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for MxdcS0PageEnums { +impl ::core::default::Default for MXDC_S0_PAGE_ENUMS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for MxdcS0PageEnums { +unsafe impl ::windows::core::Abi for MXDC_S0_PAGE_ENUMS { type Abi = Self; } -impl ::core::fmt::Debug for MxdcS0PageEnums { +impl ::core::fmt::Debug for MXDC_S0_PAGE_ENUMS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MxdcS0PageEnums").field(&self.0).finish() + f.debug_tuple("MXDC_S0_PAGE_ENUMS").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] @@ -20335,212 +20335,212 @@ impl ::core::default::Default for MONITOR_INFO_2W { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcEscapeHeader { +pub struct MXDC_ESCAPE_HEADER_T { pub cbInput: u32, pub cbOutput: u32, pub opCode: u32, } -impl ::core::marker::Copy for MxdcEscapeHeader {} -impl ::core::clone::Clone for MxdcEscapeHeader { +impl ::core::marker::Copy for MXDC_ESCAPE_HEADER_T {} +impl ::core::clone::Clone for MXDC_ESCAPE_HEADER_T { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for MxdcEscapeHeader { +unsafe impl ::windows::core::Abi for MXDC_ESCAPE_HEADER_T { type Abi = Self; } -impl ::core::cmp::PartialEq for MxdcEscapeHeader { +impl ::core::cmp::PartialEq for MXDC_ESCAPE_HEADER_T { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for MxdcEscapeHeader {} -impl ::core::default::Default for MxdcEscapeHeader { +impl ::core::cmp::Eq for MXDC_ESCAPE_HEADER_T {} +impl ::core::default::Default for MXDC_ESCAPE_HEADER_T { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcGetFileNameData { +pub struct MXDC_GET_FILENAME_DATA_T { pub cbOutput: u32, pub wszData: [u16; 1], } -impl ::core::marker::Copy for MxdcGetFileNameData {} -impl ::core::clone::Clone for MxdcGetFileNameData { +impl ::core::marker::Copy for MXDC_GET_FILENAME_DATA_T {} +impl ::core::clone::Clone for MXDC_GET_FILENAME_DATA_T { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for MxdcGetFileNameData { +unsafe impl ::windows::core::Abi for MXDC_GET_FILENAME_DATA_T { type Abi = Self; } -impl ::core::cmp::PartialEq for MxdcGetFileNameData { +impl ::core::cmp::PartialEq for MXDC_GET_FILENAME_DATA_T { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for MxdcGetFileNameData {} -impl ::core::default::Default for MxdcGetFileNameData { +impl ::core::cmp::Eq for MXDC_GET_FILENAME_DATA_T {} +impl ::core::default::Default for MXDC_GET_FILENAME_DATA_T { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcPrintTicketEscape { - pub mxdcEscape: MxdcEscapeHeader, - pub printTicketData: MxdcPrintTicketPassthrough, +pub struct MXDC_PRINTTICKET_DATA_T { + pub dwDataSize: u32, + pub bData: [u8; 1], } -impl ::core::marker::Copy for MxdcPrintTicketEscape {} -impl ::core::clone::Clone for MxdcPrintTicketEscape { +impl ::core::marker::Copy for MXDC_PRINTTICKET_DATA_T {} +impl ::core::clone::Clone for MXDC_PRINTTICKET_DATA_T { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for MxdcPrintTicketEscape { +unsafe impl ::windows::core::Abi for MXDC_PRINTTICKET_DATA_T { type Abi = Self; } -impl ::core::cmp::PartialEq for MxdcPrintTicketEscape { +impl ::core::cmp::PartialEq for MXDC_PRINTTICKET_DATA_T { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for MxdcPrintTicketEscape {} -impl ::core::default::Default for MxdcPrintTicketEscape { +impl ::core::cmp::Eq for MXDC_PRINTTICKET_DATA_T {} +impl ::core::default::Default for MXDC_PRINTTICKET_DATA_T { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcPrintTicketPassthrough { - pub dwDataSize: u32, - pub bData: [u8; 1], +pub struct MXDC_PRINTTICKET_ESCAPE_T { + pub mxdcEscape: MXDC_ESCAPE_HEADER_T, + pub printTicketData: MXDC_PRINTTICKET_DATA_T, } -impl ::core::marker::Copy for MxdcPrintTicketPassthrough {} -impl ::core::clone::Clone for MxdcPrintTicketPassthrough { +impl ::core::marker::Copy for MXDC_PRINTTICKET_ESCAPE_T {} +impl ::core::clone::Clone for MXDC_PRINTTICKET_ESCAPE_T { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for MxdcPrintTicketPassthrough { +unsafe impl ::windows::core::Abi for MXDC_PRINTTICKET_ESCAPE_T { type Abi = Self; } -impl ::core::cmp::PartialEq for MxdcPrintTicketPassthrough { +impl ::core::cmp::PartialEq for MXDC_PRINTTICKET_ESCAPE_T { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for MxdcPrintTicketPassthrough {} -impl ::core::default::Default for MxdcPrintTicketPassthrough { +impl ::core::cmp::Eq for MXDC_PRINTTICKET_ESCAPE_T {} +impl ::core::default::Default for MXDC_PRINTTICKET_ESCAPE_T { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcS0PageData { +pub struct MXDC_S0PAGE_DATA_T { pub dwSize: u32, pub bData: [u8; 1], } -impl ::core::marker::Copy for MxdcS0PageData {} -impl ::core::clone::Clone for MxdcS0PageData { +impl ::core::marker::Copy for MXDC_S0PAGE_DATA_T {} +impl ::core::clone::Clone for MXDC_S0PAGE_DATA_T { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for MxdcS0PageData { +unsafe impl ::windows::core::Abi for MXDC_S0PAGE_DATA_T { type Abi = Self; } -impl ::core::cmp::PartialEq for MxdcS0PageData { +impl ::core::cmp::PartialEq for MXDC_S0PAGE_DATA_T { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for MxdcS0PageData {} -impl ::core::default::Default for MxdcS0PageData { +impl ::core::cmp::Eq for MXDC_S0PAGE_DATA_T {} +impl ::core::default::Default for MXDC_S0PAGE_DATA_T { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcS0PagePassthroughEscape { - pub mxdcEscape: MxdcEscapeHeader, - pub xpsS0PageData: MxdcS0PageData, +pub struct MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T { + pub mxdcEscape: MXDC_ESCAPE_HEADER_T, + pub xpsS0PageData: MXDC_S0PAGE_DATA_T, } -impl ::core::marker::Copy for MxdcS0PagePassthroughEscape {} -impl ::core::clone::Clone for MxdcS0PagePassthroughEscape { +impl ::core::marker::Copy for MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T {} +impl ::core::clone::Clone for MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for MxdcS0PagePassthroughEscape { +unsafe impl ::windows::core::Abi for MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T { type Abi = Self; } -impl ::core::cmp::PartialEq for MxdcS0PagePassthroughEscape { +impl ::core::cmp::PartialEq for MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for MxdcS0PagePassthroughEscape {} -impl ::core::default::Default for MxdcS0PagePassthroughEscape { +impl ::core::cmp::Eq for MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T {} +impl ::core::default::Default for MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcS0PageResourceEscape { - pub mxdcEscape: MxdcEscapeHeader, - pub xpsS0PageResourcePassthrough: MxdcXpsS0PageResource, +pub struct MXDC_S0PAGE_RESOURCE_ESCAPE_T { + pub mxdcEscape: MXDC_ESCAPE_HEADER_T, + pub xpsS0PageResourcePassthrough: MXDC_XPS_S0PAGE_RESOURCE_T, } -impl ::core::marker::Copy for MxdcS0PageResourceEscape {} -impl ::core::clone::Clone for MxdcS0PageResourceEscape { +impl ::core::marker::Copy for MXDC_S0PAGE_RESOURCE_ESCAPE_T {} +impl ::core::clone::Clone for MXDC_S0PAGE_RESOURCE_ESCAPE_T { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for MxdcS0PageResourceEscape { +unsafe impl ::windows::core::Abi for MXDC_S0PAGE_RESOURCE_ESCAPE_T { type Abi = Self; } -impl ::core::cmp::PartialEq for MxdcS0PageResourceEscape { +impl ::core::cmp::PartialEq for MXDC_S0PAGE_RESOURCE_ESCAPE_T { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for MxdcS0PageResourceEscape {} -impl ::core::default::Default for MxdcS0PageResourceEscape { +impl ::core::cmp::Eq for MXDC_S0PAGE_RESOURCE_ESCAPE_T {} +impl ::core::default::Default for MXDC_S0PAGE_RESOURCE_ESCAPE_T { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct MxdcXpsS0PageResource { +pub struct MXDC_XPS_S0PAGE_RESOURCE_T { pub dwSize: u32, pub dwResourceType: u32, pub szUri: [u8; 260], pub dwDataSize: u32, pub bData: [u8; 1], } -impl ::core::marker::Copy for MxdcXpsS0PageResource {} -impl ::core::clone::Clone for MxdcXpsS0PageResource { +impl ::core::marker::Copy for MXDC_XPS_S0PAGE_RESOURCE_T {} +impl ::core::clone::Clone for MXDC_XPS_S0PAGE_RESOURCE_T { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for MxdcXpsS0PageResource { +unsafe impl ::windows::core::Abi for MXDC_XPS_S0PAGE_RESOURCE_T { type Abi = Self; } -impl ::core::cmp::PartialEq for MxdcXpsS0PageResource { +impl ::core::cmp::PartialEq for MXDC_XPS_S0PAGE_RESOURCE_T { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for MxdcXpsS0PageResource {} -impl ::core::default::Default for MxdcXpsS0PageResource { +impl ::core::cmp::Eq for MXDC_XPS_S0PAGE_RESOURCE_T {} +impl ::core::default::Default for MXDC_XPS_S0PAGE_RESOURCE_T { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -24013,6 +24013,112 @@ impl ::core::default::Default for SPLCLIENT_INFO_1 { } #[repr(C)] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] +pub struct SPLCLIENT_INFO_2_W2K { + pub hSplPrinter: usize, +} +impl ::core::marker::Copy for SPLCLIENT_INFO_2_W2K {} +impl ::core::clone::Clone for SPLCLIENT_INFO_2_W2K { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for SPLCLIENT_INFO_2_W2K { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SPLCLIENT_INFO_2_W2K").field("hSplPrinter", &self.hSplPrinter).finish() + } +} +unsafe impl ::windows::core::Abi for SPLCLIENT_INFO_2_W2K { + type Abi = Self; +} +impl ::core::cmp::PartialEq for SPLCLIENT_INFO_2_W2K { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for SPLCLIENT_INFO_2_W2K {} +impl ::core::default::Default for SPLCLIENT_INFO_2_W2K { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub struct SPLCLIENT_INFO_2_WINXP { + pub hSplPrinter: u64, +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::marker::Copy for SPLCLIENT_INFO_2_WINXP {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::clone::Clone for SPLCLIENT_INFO_2_WINXP { + fn clone(&self) -> Self { + *self + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::fmt::Debug for SPLCLIENT_INFO_2_WINXP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SPLCLIENT_INFO_2_WINXP").field("hSplPrinter", &self.hSplPrinter).finish() + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +unsafe impl ::windows::core::Abi for SPLCLIENT_INFO_2_WINXP { + type Abi = Self; +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::cmp::PartialEq for SPLCLIENT_INFO_2_WINXP { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::cmp::Eq for SPLCLIENT_INFO_2_WINXP {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::default::Default for SPLCLIENT_INFO_2_WINXP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] +#[cfg(target_arch = "x86")] +pub struct SPLCLIENT_INFO_2_WINXP { + pub hSplPrinter: u32, +} +#[cfg(target_arch = "x86")] +impl ::core::marker::Copy for SPLCLIENT_INFO_2_WINXP {} +#[cfg(target_arch = "x86")] +impl ::core::clone::Clone for SPLCLIENT_INFO_2_WINXP { + fn clone(&self) -> Self { + *self + } +} +#[cfg(target_arch = "x86")] +impl ::core::fmt::Debug for SPLCLIENT_INFO_2_WINXP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SPLCLIENT_INFO_2_WINXP").field("hSplPrinter", &self.hSplPrinter).finish() + } +} +#[cfg(target_arch = "x86")] +unsafe impl ::windows::core::Abi for SPLCLIENT_INFO_2_WINXP { + type Abi = Self; +} +#[cfg(target_arch = "x86")] +impl ::core::cmp::PartialEq for SPLCLIENT_INFO_2_WINXP { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(target_arch = "x86")] +impl ::core::cmp::Eq for SPLCLIENT_INFO_2_WINXP {} +#[cfg(target_arch = "x86")] +impl ::core::default::Default for SPLCLIENT_INFO_2_WINXP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] pub struct SPLCLIENT_INFO_3_VISTA { pub cbSize: u32, pub dwFlags: u32, @@ -24477,112 +24583,6 @@ impl ::core::default::Default for WIDTHTABLE { } #[repr(C)] #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -pub struct _SPLCLIENT_INFO_2_V1 { - pub hSplPrinter: usize, -} -impl ::core::marker::Copy for _SPLCLIENT_INFO_2_V1 {} -impl ::core::clone::Clone for _SPLCLIENT_INFO_2_V1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _SPLCLIENT_INFO_2_V1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_SPLCLIENT_INFO_2_V1").field("hSplPrinter", &self.hSplPrinter).finish() - } -} -unsafe impl ::windows::core::Abi for _SPLCLIENT_INFO_2_V1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _SPLCLIENT_INFO_2_V1 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_SPLCLIENT_INFO_2_V1>()) == 0 } - } -} -impl ::core::cmp::Eq for _SPLCLIENT_INFO_2_V1 {} -impl ::core::default::Default for _SPLCLIENT_INFO_2_V1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub struct _SPLCLIENT_INFO_2_V2 { - pub hSplPrinter: u64, -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::marker::Copy for _SPLCLIENT_INFO_2_V2 {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::clone::Clone for _SPLCLIENT_INFO_2_V2 { - fn clone(&self) -> Self { - *self - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::fmt::Debug for _SPLCLIENT_INFO_2_V2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_SPLCLIENT_INFO_2_V2").field("hSplPrinter", &self.hSplPrinter).finish() - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -unsafe impl ::windows::core::Abi for _SPLCLIENT_INFO_2_V2 { - type Abi = Self; -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::cmp::PartialEq for _SPLCLIENT_INFO_2_V2 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_SPLCLIENT_INFO_2_V2>()) == 0 } - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::cmp::Eq for _SPLCLIENT_INFO_2_V2 {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::default::Default for _SPLCLIENT_INFO_2_V2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] -#[cfg(target_arch = "x86")] -pub struct _SPLCLIENT_INFO_2_V2 { - pub hSplPrinter: u32, -} -#[cfg(target_arch = "x86")] -impl ::core::marker::Copy for _SPLCLIENT_INFO_2_V2 {} -#[cfg(target_arch = "x86")] -impl ::core::clone::Clone for _SPLCLIENT_INFO_2_V2 { - fn clone(&self) -> Self { - *self - } -} -#[cfg(target_arch = "x86")] -impl ::core::fmt::Debug for _SPLCLIENT_INFO_2_V2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_SPLCLIENT_INFO_2_V2").field("hSplPrinter", &self.hSplPrinter).finish() - } -} -#[cfg(target_arch = "x86")] -unsafe impl ::windows::core::Abi for _SPLCLIENT_INFO_2_V2 { - type Abi = Self; -} -#[cfg(target_arch = "x86")] -impl ::core::cmp::PartialEq for _SPLCLIENT_INFO_2_V2 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_SPLCLIENT_INFO_2_V2>()) == 0 } - } -} -#[cfg(target_arch = "x86")] -impl ::core::cmp::Eq for _SPLCLIENT_INFO_2_V2 {} -#[cfg(target_arch = "x86")] -impl ::core::default::Default for _SPLCLIENT_INFO_2_V2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] pub struct _SPLCLIENT_INFO_2_V3 { pub hSplPrinter: u64, } diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/mod.rs index 10d19a26a5..f2f9ac4e56 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/mod.rs @@ -2491,6 +2491,51 @@ impl ::core::default::Default for DMUS_PORTCAPS { #[repr(C)] #[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] +pub struct DMUS_PORTPARAMS7 { + pub dwSize: u32, + pub dwValidParams: u32, + pub dwVoices: u32, + pub dwChannelGroups: u32, + pub dwAudioChannels: u32, + pub dwSampleRate: u32, + pub dwEffectFlags: u32, + pub fShare: super::super::super::Foundation::BOOL, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for DMUS_PORTPARAMS7 {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for DMUS_PORTPARAMS7 { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for DMUS_PORTPARAMS7 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("DMUS_PORTPARAMS7").field("dwSize", &self.dwSize).field("dwValidParams", &self.dwValidParams).field("dwVoices", &self.dwVoices).field("dwChannelGroups", &self.dwChannelGroups).field("dwAudioChannels", &self.dwAudioChannels).field("dwSampleRate", &self.dwSampleRate).field("dwEffectFlags", &self.dwEffectFlags).field("fShare", &self.fShare).finish() + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for DMUS_PORTPARAMS7 { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for DMUS_PORTPARAMS7 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for DMUS_PORTPARAMS7 {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for DMUS_PORTPARAMS7 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct DMUS_PORTPARAMS8 { pub dwSize: u32, pub dwValidParams: u32, @@ -2545,8 +2590,8 @@ pub struct DMUS_REGION { pub ulNextRegionIdx: u32, pub ulFirstExtCkIdx: u32, pub WaveLink: WAVELINK, - pub WSMP: _rwsmp, - pub WLOOP: [_rloop; 1], + pub WSMP: WSMPL, + pub WLOOP: [WLOOP; 1], } impl ::core::marker::Copy for DMUS_REGION {} impl ::core::clone::Clone for DMUS_REGION { @@ -3179,6 +3224,42 @@ impl ::core::default::Default for DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING } #[repr(C)] #[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`*"] +pub struct DVAudInfo { + pub bAudStyle: [u8; 2], + pub bAudQu: [u8; 2], + pub bNumAudPin: u8, + pub wAvgSamplesPerPinPerFrm: [u16; 2], + pub wBlkMode: u16, + pub wDIFMode: u16, + pub wBlkDiv: u16, +} +impl ::core::marker::Copy for DVAudInfo {} +impl ::core::clone::Clone for DVAudInfo { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for DVAudInfo { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("DVAudInfo").field("bAudStyle", &self.bAudStyle).field("bAudQu", &self.bAudQu).field("bNumAudPin", &self.bNumAudPin).field("wAvgSamplesPerPinPerFrm", &self.wAvgSamplesPerPinPerFrm).field("wBlkMode", &self.wBlkMode).field("wDIFMode", &self.wDIFMode).field("wBlkDiv", &self.wBlkDiv).finish() + } +} +unsafe impl ::windows::core::Abi for DVAudInfo { + type Abi = Self; +} +impl ::core::cmp::PartialEq for DVAudInfo { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for DVAudInfo {} +impl ::core::default::Default for DVAudInfo { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`*"] pub struct INSTHEADER { pub cRegions: u32, pub Locale: MIDILOCALE, @@ -3429,42 +3510,6 @@ impl ::core::default::Default for RGNRANGE { } #[repr(C)] #[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`*"] -pub struct Tag_DVAudInfo { - pub bAudStyle: [u8; 2], - pub bAudQu: [u8; 2], - pub bNumAudPin: u8, - pub wAvgSamplesPerPinPerFrm: [u16; 2], - pub wBlkMode: u16, - pub wDIFMode: u16, - pub wBlkDiv: u16, -} -impl ::core::marker::Copy for Tag_DVAudInfo {} -impl ::core::clone::Clone for Tag_DVAudInfo { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for Tag_DVAudInfo { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Tag_DVAudInfo").field("bAudStyle", &self.bAudStyle).field("bAudQu", &self.bAudQu).field("bNumAudPin", &self.bNumAudPin).field("wAvgSamplesPerPinPerFrm", &self.wAvgSamplesPerPinPerFrm).field("wBlkMode", &self.wBlkMode).field("wDIFMode", &self.wDIFMode).field("wBlkDiv", &self.wBlkDiv).finish() - } -} -unsafe impl ::windows::core::Abi for Tag_DVAudInfo { - type Abi = Self; -} -impl ::core::cmp::PartialEq for Tag_DVAudInfo { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for Tag_DVAudInfo {} -impl ::core::default::Default for Tag_DVAudInfo { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`*"] pub struct WAVELINK { pub fusOptions: u16, pub usPhaseGroup: u16, @@ -3497,86 +3542,41 @@ impl ::core::default::Default for WAVELINK { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct _DMUS_PORTPARAMS { - pub dwSize: u32, - pub dwValidParams: u32, - pub dwVoices: u32, - pub dwChannelGroups: u32, - pub dwAudioChannels: u32, - pub dwSampleRate: u32, - pub dwEffectFlags: u32, - pub fShare: super::super::super::Foundation::BOOL, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _DMUS_PORTPARAMS {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _DMUS_PORTPARAMS { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for _DMUS_PORTPARAMS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_DMUS_PORTPARAMS").field("dwSize", &self.dwSize).field("dwValidParams", &self.dwValidParams).field("dwVoices", &self.dwVoices).field("dwChannelGroups", &self.dwChannelGroups).field("dwAudioChannels", &self.dwAudioChannels).field("dwSampleRate", &self.dwSampleRate).field("dwEffectFlags", &self.dwEffectFlags).field("fShare", &self.fShare).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for _DMUS_PORTPARAMS { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for _DMUS_PORTPARAMS { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_DMUS_PORTPARAMS>()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for _DMUS_PORTPARAMS {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for _DMUS_PORTPARAMS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`*"] -pub struct _rloop { +pub struct WLOOP { pub cbSize: u32, pub ulType: u32, pub ulStart: u32, pub ulLength: u32, } -impl ::core::marker::Copy for _rloop {} -impl ::core::clone::Clone for _rloop { +impl ::core::marker::Copy for WLOOP {} +impl ::core::clone::Clone for WLOOP { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for _rloop { +impl ::core::fmt::Debug for WLOOP { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_rloop").field("cbSize", &self.cbSize).field("ulType", &self.ulType).field("ulStart", &self.ulStart).field("ulLength", &self.ulLength).finish() + f.debug_struct("WLOOP").field("cbSize", &self.cbSize).field("ulType", &self.ulType).field("ulStart", &self.ulStart).field("ulLength", &self.ulLength).finish() } } -unsafe impl ::windows::core::Abi for _rloop { +unsafe impl ::windows::core::Abi for WLOOP { type Abi = Self; } -impl ::core::cmp::PartialEq for _rloop { +impl ::core::cmp::PartialEq for WLOOP { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_rloop>()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for _rloop {} -impl ::core::default::Default for _rloop { +impl ::core::cmp::Eq for WLOOP {} +impl ::core::default::Default for WLOOP { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_Media_Audio_DirectMusic\"`*"] -pub struct _rwsmp { +pub struct WSMPL { pub cbSize: u32, pub usUnityNote: u16, pub sFineTune: i16, @@ -3584,27 +3584,27 @@ pub struct _rwsmp { pub fulOptions: u32, pub cSampleLoops: u32, } -impl ::core::marker::Copy for _rwsmp {} -impl ::core::clone::Clone for _rwsmp { +impl ::core::marker::Copy for WSMPL {} +impl ::core::clone::Clone for WSMPL { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for _rwsmp { +impl ::core::fmt::Debug for WSMPL { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_rwsmp").field("cbSize", &self.cbSize).field("usUnityNote", &self.usUnityNote).field("sFineTune", &self.sFineTune).field("lAttenuation", &self.lAttenuation).field("fulOptions", &self.fulOptions).field("cSampleLoops", &self.cSampleLoops).finish() + f.debug_struct("WSMPL").field("cbSize", &self.cbSize).field("usUnityNote", &self.usUnityNote).field("sFineTune", &self.sFineTune).field("lAttenuation", &self.lAttenuation).field("fulOptions", &self.fulOptions).field("cSampleLoops", &self.cSampleLoops).finish() } } -unsafe impl ::windows::core::Abi for _rwsmp { +unsafe impl ::windows::core::Abi for WSMPL { type Abi = Self; } -impl ::core::cmp::PartialEq for _rwsmp { +impl ::core::cmp::PartialEq for WSMPL { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_rwsmp>()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for _rwsmp {} -impl ::core::default::Default for _rwsmp { +impl ::core::cmp::Eq for WSMPL {} +impl ::core::default::Default for WSMPL { fn default() -> Self { unsafe { ::core::mem::zeroed() } } diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/impl.rs index 64c04eb770..3cb2b2734d 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/impl.rs @@ -1839,7 +1839,7 @@ impl IDeviceTopology_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] pub trait IMMDevice_Impl: Sized { fn Activate(&self, iid: *const ::windows::core::GUID, dwclsctx: super::super::System::Com::CLSCTX, pactivationparams: *const super::super::System::Com::StructuredStorage::PROPVARIANT, ppinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; - fn OpenPropertyStore(&self, stgmaccess: super::super::System::Com::StructuredStorage::STGM) -> ::windows::core::Result; + fn OpenPropertyStore(&self, stgmaccess: super::super::System::Com::STGM) -> ::windows::core::Result; fn GetId(&self) -> ::windows::core::Result<::windows::core::PWSTR>; fn GetState(&self) -> ::windows::core::Result; } @@ -1853,7 +1853,7 @@ impl IMMDevice_Vtbl { let this = (*this).get_impl(); this.Activate(::core::mem::transmute_copy(&iid), ::core::mem::transmute_copy(&dwclsctx), ::core::mem::transmute_copy(&pactivationparams), ::core::mem::transmute_copy(&ppinterface)).into() } - unsafe extern "system" fn OpenPropertyStore, Impl: IMMDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, stgmaccess: super::super::System::Com::StructuredStorage::STGM, ppproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenPropertyStore, Impl: IMMDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, stgmaccess: super::super::System::Com::STGM, ppproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenPropertyStore(::core::mem::transmute_copy(&stgmaccess)) { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs index ff0f77748e..91cba1ed66 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs @@ -4979,9 +4979,9 @@ impl IMMDevice { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).Activate)(::windows::core::Interface::as_raw(self), &::IID, dwclsctx, ::core::mem::transmute(pactivationparams), &mut result__ as *mut _ as *mut _).and_some(result__) } - #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"] - #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] - pub unsafe fn OpenPropertyStore(&self, stgmaccess: super::super::System::Com::StructuredStorage::STGM) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"] + #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] + pub unsafe fn OpenPropertyStore(&self, stgmaccess: super::super::System::Com::STGM) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).OpenPropertyStore)(::windows::core::Interface::as_raw(self), stgmaccess, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } @@ -5037,9 +5037,9 @@ pub struct IMMDevice_Vtbl { pub Activate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iid: *const ::windows::core::GUID, dwclsctx: super::super::System::Com::CLSCTX, pactivationparams: *const super::super::System::Com::StructuredStorage::PROPVARIANT, ppinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage")))] Activate: usize, - #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] - pub OpenPropertyStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stgmaccess: super::super::System::Com::StructuredStorage::STGM, ppproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem")))] + #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] + pub OpenPropertyStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stgmaccess: super::super::System::Com::STGM, ppproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem")))] OpenPropertyStore: usize, pub GetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstrid: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, pub GetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstate: *mut u32) -> ::windows::core::HRESULT, @@ -9513,6 +9513,72 @@ impl ::core::default::Default for ACMDRVFORMATSUGGEST { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Media_Audio\"`*"] +pub struct ACMDRVOPENDESCA { + pub cbStruct: u32, + pub fccType: u32, + pub fccComp: u32, + pub dwVersion: u32, + pub dwFlags: u32, + pub dwError: u32, + pub pszSectionName: ::windows::core::PCSTR, + pub pszAliasName: ::windows::core::PCSTR, + pub dnDevNode: u32, +} +impl ::core::marker::Copy for ACMDRVOPENDESCA {} +impl ::core::clone::Clone for ACMDRVOPENDESCA { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for ACMDRVOPENDESCA { + type Abi = Self; +} +impl ::core::cmp::PartialEq for ACMDRVOPENDESCA { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for ACMDRVOPENDESCA {} +impl ::core::default::Default for ACMDRVOPENDESCA { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Media_Audio\"`*"] +pub struct ACMDRVOPENDESCW { + pub cbStruct: u32, + pub fccType: u32, + pub fccComp: u32, + pub dwVersion: u32, + pub dwFlags: u32, + pub dwError: u32, + pub pszSectionName: ::windows::core::PCWSTR, + pub pszAliasName: ::windows::core::PCWSTR, + pub dnDevNode: u32, +} +impl ::core::marker::Copy for ACMDRVOPENDESCW {} +impl ::core::clone::Clone for ACMDRVOPENDESCW { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for ACMDRVOPENDESCW { + type Abi = Self; +} +impl ::core::cmp::PartialEq for ACMDRVOPENDESCW { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for ACMDRVOPENDESCW {} +impl ::core::default::Default for ACMDRVOPENDESCW { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Media_Audio\"`*"] pub struct ACMDRVSTREAMHEADER { pub cbStruct: u32, pub fdwStatus: u32, @@ -13349,72 +13415,6 @@ impl ::core::default::Default for WAVEOUTCAPSW { } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Media_Audio\"`*"] -pub struct tACMDRVOPENDESCA { - pub cbStruct: u32, - pub fccType: u32, - pub fccComp: u32, - pub dwVersion: u32, - pub dwFlags: u32, - pub dwError: u32, - pub pszSectionName: ::windows::core::PCSTR, - pub pszAliasName: ::windows::core::PCSTR, - pub dnDevNode: u32, -} -impl ::core::marker::Copy for tACMDRVOPENDESCA {} -impl ::core::clone::Clone for tACMDRVOPENDESCA { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for tACMDRVOPENDESCA { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tACMDRVOPENDESCA { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tACMDRVOPENDESCA {} -impl ::core::default::Default for tACMDRVOPENDESCA { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Media_Audio\"`*"] -pub struct tACMDRVOPENDESCW { - pub cbStruct: u32, - pub fccType: u32, - pub fccComp: u32, - pub dwVersion: u32, - pub dwFlags: u32, - pub dwError: u32, - pub pszSectionName: ::windows::core::PCWSTR, - pub pszAliasName: ::windows::core::PCWSTR, - pub dnDevNode: u32, -} -impl ::core::marker::Copy for tACMDRVOPENDESCW {} -impl ::core::clone::Clone for tACMDRVOPENDESCW { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for tACMDRVOPENDESCW { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tACMDRVOPENDESCW { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tACMDRVOPENDESCW {} -impl ::core::default::Default for tACMDRVOPENDESCW { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Media_Audio\"`*"] pub struct tACMFORMATDETAILSW { pub cbStruct: u32, pub dwFormatIndex: u32, diff --git a/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs index b9fe9d4620..e2d69b229a 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs @@ -6478,6 +6478,45 @@ impl ::core::fmt::Debug for WMDM_TAG_DATATYPE { f.debug_tuple("WMDM_TAG_DATATYPE").field(&self.0).finish() } } +#[repr(C)] +#[doc = "*Required features: `\"Win32_Media_DeviceManager\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct MACINFO { + pub fUsed: super::super::Foundation::BOOL, + pub abMacState: [u8; 36], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for MACINFO {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for MACINFO { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for MACINFO { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("MACINFO").field("fUsed", &self.fUsed).field("abMacState", &self.abMacState).finish() + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for MACINFO { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for MACINFO { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for MACINFO {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for MACINFO { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Media_DeviceManager\"`*"] pub struct MTP_COMMAND_DATA_IN { @@ -7056,44 +7095,5 @@ impl ::core::default::Default for WMFILECAPABILITIES { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Media_DeviceManager\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct __MACINFO { - pub fUsed: super::super::Foundation::BOOL, - pub abMacState: [u8; 36], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for __MACINFO {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for __MACINFO { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for __MACINFO { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("__MACINFO").field("fUsed", &self.fUsed).field("abMacState", &self.abMacState).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for __MACINFO { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for __MACINFO { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<__MACINFO>()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for __MACINFO {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for __MACINFO { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[cfg(feature = "implement")] ::core::include!("impl.rs"); 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 1afc42ed15..6bc29c20f4 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs @@ -65388,42 +65388,42 @@ impl ::core::fmt::Debug for AM_SEEKING_SEEKING_CAPABILITIES { #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct AM_SEEKING_SeekingFlags(pub i32); +pub struct AM_SEEKING_SEEKING_FLAGS(pub i32); #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_NoPositioning: AM_SEEKING_SeekingFlags = AM_SEEKING_SeekingFlags(0i32); +pub const AM_SEEKING_NoPositioning: AM_SEEKING_SEEKING_FLAGS = AM_SEEKING_SEEKING_FLAGS(0i32); #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_AbsolutePositioning: AM_SEEKING_SeekingFlags = AM_SEEKING_SeekingFlags(1i32); +pub const AM_SEEKING_AbsolutePositioning: AM_SEEKING_SEEKING_FLAGS = AM_SEEKING_SEEKING_FLAGS(1i32); #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_RelativePositioning: AM_SEEKING_SeekingFlags = AM_SEEKING_SeekingFlags(2i32); +pub const AM_SEEKING_RelativePositioning: AM_SEEKING_SEEKING_FLAGS = AM_SEEKING_SEEKING_FLAGS(2i32); #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_IncrementalPositioning: AM_SEEKING_SeekingFlags = AM_SEEKING_SeekingFlags(3i32); +pub const AM_SEEKING_IncrementalPositioning: AM_SEEKING_SEEKING_FLAGS = AM_SEEKING_SEEKING_FLAGS(3i32); #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_PositioningBitsMask: AM_SEEKING_SeekingFlags = AM_SEEKING_SeekingFlags(3i32); +pub const AM_SEEKING_PositioningBitsMask: AM_SEEKING_SEEKING_FLAGS = AM_SEEKING_SEEKING_FLAGS(3i32); #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_SeekToKeyFrame: AM_SEEKING_SeekingFlags = AM_SEEKING_SeekingFlags(4i32); +pub const AM_SEEKING_SeekToKeyFrame: AM_SEEKING_SEEKING_FLAGS = AM_SEEKING_SEEKING_FLAGS(4i32); #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_ReturnTime: AM_SEEKING_SeekingFlags = AM_SEEKING_SeekingFlags(8i32); +pub const AM_SEEKING_ReturnTime: AM_SEEKING_SEEKING_FLAGS = AM_SEEKING_SEEKING_FLAGS(8i32); #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_Segment: AM_SEEKING_SeekingFlags = AM_SEEKING_SeekingFlags(16i32); +pub const AM_SEEKING_Segment: AM_SEEKING_SEEKING_FLAGS = AM_SEEKING_SEEKING_FLAGS(16i32); #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub const AM_SEEKING_NoFlush: AM_SEEKING_SeekingFlags = AM_SEEKING_SeekingFlags(32i32); -impl ::core::marker::Copy for AM_SEEKING_SeekingFlags {} -impl ::core::clone::Clone for AM_SEEKING_SeekingFlags { +pub const AM_SEEKING_NoFlush: AM_SEEKING_SEEKING_FLAGS = AM_SEEKING_SEEKING_FLAGS(32i32); +impl ::core::marker::Copy for AM_SEEKING_SEEKING_FLAGS {} +impl ::core::clone::Clone for AM_SEEKING_SEEKING_FLAGS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for AM_SEEKING_SeekingFlags { +impl ::core::default::Default for AM_SEEKING_SEEKING_FLAGS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for AM_SEEKING_SeekingFlags { +unsafe impl ::windows::core::Abi for AM_SEEKING_SEEKING_FLAGS { type Abi = Self; } -impl ::core::fmt::Debug for AM_SEEKING_SeekingFlags { +impl ::core::fmt::Debug for AM_SEEKING_SEEKING_FLAGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AM_SEEKING_SeekingFlags").field(&self.0).finish() + f.debug_tuple("AM_SEEKING_SEEKING_FLAGS").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] @@ -77395,6 +77395,40 @@ impl ::core::default::Default for AVIStreamHeader { } #[repr(C, packed(2))] #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] +pub struct AVITCDLINDEX { + pub fcc: u32, + pub cb: u32, + pub wLongsPerEntry: u16, + pub bIndexSubType: u8, + pub bIndexType: u8, + pub nEntriesInUse: u32, + pub dwChunkId: u32, + pub dwReserved: [u32; 3], + pub aIndex: [AVITCDLINDEX_ENTRY; 584], + pub adwTrailingFill: [u32; 3512], +} +impl ::core::marker::Copy for AVITCDLINDEX {} +impl ::core::clone::Clone for AVITCDLINDEX { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for AVITCDLINDEX { + type Abi = Self; +} +impl ::core::cmp::PartialEq for AVITCDLINDEX { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for AVITCDLINDEX {} +impl ::core::default::Default for AVITCDLINDEX { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(2))] +#[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub struct AVITCDLINDEX_ENTRY { pub dwTick: u32, pub time: super::TIMECODE, @@ -77457,6 +77491,41 @@ impl ::core::default::Default for AVITIMECODEINDEX { } #[repr(C, packed(2))] #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] +pub struct AVITIMEDINDEX { + pub fcc: u32, + pub cb: u32, + pub wLongsPerEntry: u16, + pub bIndexSubType: u8, + pub bIndexType: u8, + pub nEntriesInUse: u32, + pub dwChunkId: u32, + pub qwBaseOffset: u64, + pub dwReserved_3: u32, + pub aIndex: [AVITIMEDINDEX_ENTRY; 1362], + pub adwTrailingFill: [u32; 2734], +} +impl ::core::marker::Copy for AVITIMEDINDEX {} +impl ::core::clone::Clone for AVITIMEDINDEX { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for AVITIMEDINDEX { + type Abi = Self; +} +impl ::core::cmp::PartialEq for AVITIMEDINDEX { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for AVITIMEDINDEX {} +impl ::core::default::Default for AVITIMEDINDEX { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(2))] +#[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub struct AVITIMEDINDEX_ENTRY { pub dwOffset: u32, pub dwSize: u32, @@ -83195,7 +83264,7 @@ impl ::core::default::Default for MPEG_DATE { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub struct MPEG_DATE_AND_TIME { pub D: MPEG_DATE, @@ -83510,7 +83579,7 @@ impl ::core::default::Default for MPEG_STREAM_FILTER { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub struct MPEG_TIME { pub Hours: u8, @@ -83523,11 +83592,6 @@ impl ::core::clone::Clone for MPEG_TIME { *self } } -impl ::core::fmt::Debug for MPEG_TIME { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MPEG_TIME").field("Hours", &self.Hours).field("Minutes", &self.Minutes).field("Seconds", &self.Seconds).finish() - } -} unsafe impl ::windows::core::Abi for MPEG_TIME { type Abi = Self; } @@ -84664,7 +84728,7 @@ impl ::core::default::Default for SBE_PIN_DATA { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub struct SECTION { pub TableId: u8, @@ -86221,75 +86285,6 @@ impl ::core::default::Default for WMDRMProtectionInfo { unsafe { ::core::mem::zeroed() } } } -#[repr(C, packed(2))] -#[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub struct _avitcdlindex { - pub fcc: u32, - pub cb: u32, - pub wLongsPerEntry: u16, - pub bIndexSubType: u8, - pub bIndexType: u8, - pub nEntriesInUse: u32, - pub dwChunkId: u32, - pub dwReserved: [u32; 3], - pub aIndex: [AVITCDLINDEX_ENTRY; 584], - pub adwTrailingFill: [u32; 3512], -} -impl ::core::marker::Copy for _avitcdlindex {} -impl ::core::clone::Clone for _avitcdlindex { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for _avitcdlindex { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _avitcdlindex { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_avitcdlindex>()) == 0 } - } -} -impl ::core::cmp::Eq for _avitcdlindex {} -impl ::core::default::Default for _avitcdlindex { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(2))] -#[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] -pub struct _avitimedindex { - pub fcc: u32, - pub cb: u32, - pub wLongsPerEntry: u16, - pub bIndexSubType: u8, - pub bIndexType: u8, - pub nEntriesInUse: u32, - pub dwChunkId: u32, - pub qwBaseOffset: u64, - pub dwReserved_3: u32, - pub aIndex: [AVITIMEDINDEX_ENTRY; 1362], - pub adwTrailingFill: [u32; 2734], -} -impl ::core::marker::Copy for _avitimedindex {} -impl ::core::clone::Clone for _avitimedindex { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for _avitimedindex { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _avitimedindex { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_avitimedindex>()) == 0 } - } -} -impl ::core::cmp::Eq for _avitimedindex {} -impl ::core::default::Default for _avitimedindex { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type AMGETERRORTEXTPROCA = ::core::option::Option super::super::Foundation::BOOL>; diff --git a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs index 3c84141959..3d2482835f 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs @@ -7682,30 +7682,30 @@ impl ::core::fmt::Debug for TELEPHONY_PROVIDERCHANGEOP { #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _TunerDecoderLockType(pub i32); +pub struct TunerLockType(pub i32); #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] -pub const Tuner_LockType_None: _TunerDecoderLockType = _TunerDecoderLockType(0i32); +pub const Tuner_LockType_None: TunerLockType = TunerLockType(0i32); #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] -pub const Tuner_LockType_Within_Scan_Sensing_Range: _TunerDecoderLockType = _TunerDecoderLockType(1i32); +pub const Tuner_LockType_Within_Scan_Sensing_Range: TunerLockType = TunerLockType(1i32); #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] -pub const Tuner_LockType_Locked: _TunerDecoderLockType = _TunerDecoderLockType(2i32); -impl ::core::marker::Copy for _TunerDecoderLockType {} -impl ::core::clone::Clone for _TunerDecoderLockType { +pub const Tuner_LockType_Locked: TunerLockType = TunerLockType(2i32); +impl ::core::marker::Copy for TunerLockType {} +impl ::core::clone::Clone for TunerLockType { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for _TunerDecoderLockType { +impl ::core::default::Default for TunerLockType { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for _TunerDecoderLockType { +unsafe impl ::windows::core::Abi for TunerLockType { type Abi = Self; } -impl ::core::fmt::Debug for _TunerDecoderLockType { +impl ::core::fmt::Debug for TunerLockType { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_TunerDecoderLockType").field(&self.0).finish() + f.debug_tuple("TunerLockType").field(&self.0).finish() } } #[repr(C)] @@ -9068,7 +9068,7 @@ pub struct KSAUDIO_PACKETSIZE_CONSTRAINTS { pub PacketSizeFileAlignment: u32, pub Reserved: u32, pub NumProcessingModeConstraints: u32, - pub ProcessingModeConstraints: [_KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT; 1], + pub ProcessingModeConstraints: [KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT; 1], } impl ::core::marker::Copy for KSAUDIO_PACKETSIZE_CONSTRAINTS {} impl ::core::clone::Clone for KSAUDIO_PACKETSIZE_CONSTRAINTS { @@ -9102,7 +9102,7 @@ pub struct KSAUDIO_PACKETSIZE_CONSTRAINTS2 { pub PacketSizeFileAlignment: u32, pub MaxPacketSizeInBytes: u32, pub NumProcessingModeConstraints: u32, - pub ProcessingModeConstraints: [_KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT; 1], + pub ProcessingModeConstraints: [KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT; 1], } impl ::core::marker::Copy for KSAUDIO_PACKETSIZE_CONSTRAINTS2 {} impl ::core::clone::Clone for KSAUDIO_PACKETSIZE_CONSTRAINTS2 { @@ -9131,6 +9131,38 @@ impl ::core::default::Default for KSAUDIO_PACKETSIZE_CONSTRAINTS2 { } #[repr(C)] #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] +pub struct KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT { + pub ProcessingMode: ::windows::core::GUID, + pub SamplesPerProcessingPacket: u32, + pub ProcessingPacketDurationInHns: u32, +} +impl ::core::marker::Copy for KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT {} +impl ::core::clone::Clone for KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT").field("ProcessingMode", &self.ProcessingMode).field("SamplesPerProcessingPacket", &self.SamplesPerProcessingPacket).field("ProcessingPacketDurationInHns", &self.ProcessingPacketDurationInHns).finish() + } +} +unsafe impl ::windows::core::Abi for KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT { + type Abi = Self; +} +impl ::core::cmp::PartialEq for KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT {} +impl ::core::default::Default for KSAUDIO_PACKETSIZE_PROCESSINGMODE_CONSTRAINT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] pub struct KSAUDIO_POSITION { pub PlayOffset: u64, pub WriteOffset: u64, @@ -14523,7 +14555,7 @@ impl ::core::default::Default for KSPROPERTY_TUNER_SCAN_CAPS_S { #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] pub struct KSPROPERTY_TUNER_SCAN_STATUS_S { pub Property: KSIDENTIFIER, - pub LockStatus: _TunerDecoderLockType, + pub LockStatus: TunerLockType, pub CurrentFrequency: u32, } impl ::core::marker::Copy for KSPROPERTY_TUNER_SCAN_STATUS_S {} @@ -17389,7 +17421,7 @@ impl ::core::default::Default for KS_AM_SimpleRateChange { #[repr(C)] #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct KS_AnalogVideoInfo { +pub struct KS_ANALOGVIDEOINFO { pub rcSource: super::super::Foundation::RECT, pub rcTarget: super::super::Foundation::RECT, pub dwActiveWidth: u32, @@ -17397,33 +17429,33 @@ pub struct KS_AnalogVideoInfo { pub AvgTimePerFrame: i64, } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for KS_AnalogVideoInfo {} +impl ::core::marker::Copy for KS_ANALOGVIDEOINFO {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for KS_AnalogVideoInfo { +impl ::core::clone::Clone for KS_ANALOGVIDEOINFO { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for KS_AnalogVideoInfo { +impl ::core::fmt::Debug for KS_ANALOGVIDEOINFO { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("KS_AnalogVideoInfo").field("rcSource", &self.rcSource).field("rcTarget", &self.rcTarget).field("dwActiveWidth", &self.dwActiveWidth).field("dwActiveHeight", &self.dwActiveHeight).field("AvgTimePerFrame", &self.AvgTimePerFrame).finish() + f.debug_struct("KS_ANALOGVIDEOINFO").field("rcSource", &self.rcSource).field("rcTarget", &self.rcTarget).field("dwActiveWidth", &self.dwActiveWidth).field("dwActiveHeight", &self.dwActiveHeight).field("AvgTimePerFrame", &self.AvgTimePerFrame).finish() } } #[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for KS_AnalogVideoInfo { +unsafe impl ::windows::core::Abi for KS_ANALOGVIDEOINFO { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for KS_AnalogVideoInfo { +impl ::core::cmp::PartialEq for KS_ANALOGVIDEOINFO { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for KS_AnalogVideoInfo {} +impl ::core::cmp::Eq for KS_ANALOGVIDEOINFO {} #[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for KS_AnalogVideoInfo { +impl ::core::default::Default for KS_ANALOGVIDEOINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -17778,7 +17810,7 @@ impl ::core::default::Default for KS_DATAFORMAT_VIDEOINFO_PALETTE { #[cfg(feature = "Win32_Foundation")] pub struct KS_DATARANGE_ANALOGVIDEO { pub DataRange: KSDATAFORMAT, - pub AnalogVideoInfo: KS_AnalogVideoInfo, + pub AnalogVideoInfo: KS_ANALOGVIDEOINFO, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for KS_DATARANGE_ANALOGVIDEO {} @@ -18736,39 +18768,6 @@ impl ::core::default::Default for KS_H264VIDEOINFO { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] -pub struct KS_MPEAUDIOINFO { - pub dwFlags: u32, - pub dwReserved1: u32, - pub dwReserved2: u32, - pub dwReserved3: u32, -} -impl ::core::marker::Copy for KS_MPEAUDIOINFO {} -impl ::core::clone::Clone for KS_MPEAUDIOINFO { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for KS_MPEAUDIOINFO { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("KS_MPEAUDIOINFO").field("dwFlags", &self.dwFlags).field("dwReserved1", &self.dwReserved1).field("dwReserved2", &self.dwReserved2).field("dwReserved3", &self.dwReserved3).finish() - } -} -unsafe impl ::windows::core::Abi for KS_MPEAUDIOINFO { - type Abi = Self; -} -impl ::core::cmp::PartialEq for KS_MPEAUDIOINFO { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for KS_MPEAUDIOINFO {} -impl ::core::default::Default for KS_MPEAUDIOINFO { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct KS_MPEG1VIDEOINFO { @@ -18810,6 +18809,39 @@ impl ::core::default::Default for KS_MPEG1VIDEOINFO { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] +pub struct KS_MPEGAUDIOINFO { + pub dwFlags: u32, + pub dwReserved1: u32, + pub dwReserved2: u32, + pub dwReserved3: u32, +} +impl ::core::marker::Copy for KS_MPEGAUDIOINFO {} +impl ::core::clone::Clone for KS_MPEGAUDIOINFO { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for KS_MPEGAUDIOINFO { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("KS_MPEGAUDIOINFO").field("dwFlags", &self.dwFlags).field("dwReserved1", &self.dwReserved1).field("dwReserved2", &self.dwReserved2).field("dwReserved3", &self.dwReserved3).finish() + } +} +unsafe impl ::windows::core::Abi for KS_MPEGAUDIOINFO { + type Abi = Self; +} +impl ::core::cmp::PartialEq for KS_MPEGAUDIOINFO { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for KS_MPEGAUDIOINFO {} +impl ::core::default::Default for KS_MPEGAUDIOINFO { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct KS_MPEGVIDEOINFO2 { @@ -20524,37 +20556,5 @@ impl ::core::default::Default for WST_BUFFER_LINE { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`*"] -pub struct _KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT { - pub ProcessingMode: ::windows::core::GUID, - pub SamplesPerProcessingPacket: u32, - pub ProcessingPacketDurationInHns: u32, -} -impl ::core::marker::Copy for _KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT {} -impl ::core::clone::Clone for _KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT").field("ProcessingMode", &self.ProcessingMode).field("SamplesPerProcessingPacket", &self.SamplesPerProcessingPacket).field("ProcessingPacketDurationInHns", &self.ProcessingPacketDurationInHns).finish() - } -} -unsafe impl ::windows::core::Abi for _KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT>()) == 0 } - } -} -impl ::core::cmp::Eq for _KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT {} -impl ::core::default::Default for _KSAUDIO_PACKETSIZE_SIGNALPROCESSINGMODE_CONSTRAINT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[cfg(feature = "implement")] ::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs index 35964523b5..f3f0ad7b8a 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs @@ -1,43 +1,3 @@ -#[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_Graphics_Direct3D12\"`*"] -#[cfg(feature = "Win32_Graphics_Direct3D12")] -#[inline] -pub unsafe fn MFCreateD3D12SynchronizationObject<'a, P0>(pdevice: P0, riid: &::windows::core::GUID, ppvsyncobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Graphics::Direct3D12::ID3D12Device>>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn MFCreateD3D12SynchronizationObject(pdevice: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppvsyncobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; - } - MFCreateD3D12SynchronizationObject(pdevice.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvsyncobject)).ok() -} -#[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] -#[inline] -pub unsafe fn OPMXboxEnableHDCP(hdcptype: OPM_HDCP_TYPE) -> ::windows::core::Result<()> { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn OPMXboxEnableHDCP(hdcptype: OPM_HDCP_TYPE) -> ::windows::core::HRESULT; - } - OPMXboxEnableHDCP(hdcptype).ok() -} -#[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] -#[inline] -pub unsafe fn OPMXboxGetHDCPStatus(phdcpstatus: &mut OPM_HDCP_STATUS) -> ::windows::core::Result<()> { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn OPMXboxGetHDCPStatus(phdcpstatus: *mut OPM_HDCP_STATUS) -> ::windows::core::HRESULT; - } - OPMXboxGetHDCPStatus(::core::mem::transmute(phdcpstatus)).ok() -} -#[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] -#[inline] -pub unsafe fn OPMXboxGetHDCPStatusAndType(phdcpstatus: &mut OPM_HDCP_STATUS, phdcptype: &mut OPM_HDCP_TYPE) -> ::windows::core::Result<()> { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn OPMXboxGetHDCPStatusAndType(phdcpstatus: *mut OPM_HDCP_STATUS, phdcptype: *mut OPM_HDCP_TYPE) -> ::windows::core::HRESULT; - } - OPMXboxGetHDCPStatusAndType(::core::mem::transmute(phdcpstatus), ::core::mem::transmute(phdcptype)).ok() -} #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] #[inline] @@ -688,6 +648,19 @@ pub unsafe fn MFCreateCredentialCache() -> ::windows::core::Result(result__) } +#[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_Graphics_Direct3D12\"`*"] +#[cfg(feature = "Win32_Graphics_Direct3D12")] +#[inline] +pub unsafe fn MFCreateD3D12SynchronizationObject<'a, P0>(pdevice: P0, riid: &::windows::core::GUID, ppvsyncobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +where + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Graphics::Direct3D12::ID3D12Device>>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn MFCreateD3D12SynchronizationObject(pdevice: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppvsyncobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; + } + MFCreateD3D12SynchronizationObject(pdevice.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvsyncobject)).ok() +} #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] #[inline] pub unsafe fn MFCreateDXGIDeviceManager(resettoken: &mut u32, ppdevicemanager: &mut ::core::option::Option) -> ::windows::core::Result<()> { @@ -2845,6 +2818,33 @@ where OPMGetVideoOutputsFromIDirect3DDevice9Object(pdirect3ddevice9.into().abi(), vos, ::core::mem::transmute(pulnumvideooutputs), ::core::mem::transmute(pppopmvideooutputarray)).ok() } #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] +#[inline] +pub unsafe fn OPMXboxEnableHDCP(hdcptype: OPM_HDCP_TYPE) -> ::windows::core::Result<()> { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn OPMXboxEnableHDCP(hdcptype: OPM_HDCP_TYPE) -> ::windows::core::HRESULT; + } + OPMXboxEnableHDCP(hdcptype).ok() +} +#[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] +#[inline] +pub unsafe fn OPMXboxGetHDCPStatus(phdcpstatus: &mut OPM_HDCP_STATUS) -> ::windows::core::Result<()> { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn OPMXboxGetHDCPStatus(phdcpstatus: *mut OPM_HDCP_STATUS) -> ::windows::core::HRESULT; + } + OPMXboxGetHDCPStatus(::core::mem::transmute(phdcpstatus)).ok() +} +#[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] +#[inline] +pub unsafe fn OPMXboxGetHDCPStatusAndType(phdcpstatus: &mut OPM_HDCP_STATUS, phdcptype: &mut OPM_HDCP_TYPE) -> ::windows::core::Result<()> { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn OPMXboxGetHDCPStatusAndType(phdcpstatus: *mut OPM_HDCP_STATUS, phdcptype: *mut OPM_HDCP_TYPE) -> ::windows::core::HRESULT; + } + OPMXboxGetHDCPStatusAndType(::core::mem::transmute(phdcpstatus), ::core::mem::transmute(phdcptype)).ok() +} +#[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] #[repr(transparent)] pub struct IAdvancedMediaCapture(::windows::core::IUnknown); impl IAdvancedMediaCapture { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs index 06f4b59d42..9a1dad8548 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs @@ -1915,7 +1915,7 @@ pub trait ISpRecognizer_Impl: Sized + ISpProperties_Impl { fn GetRecoState(&self, pstate: *mut SPRECOSTATE) -> ::windows::core::Result<()>; fn SetRecoState(&self, newstate: SPRECOSTATE) -> ::windows::core::Result<()>; fn GetStatus(&self, pstatus: *mut SPRECOGNIZERSTATUS) -> ::windows::core::Result<()>; - fn GetFormat(&self, waveformattype: SPWAVEFORMATTYPE, pformatid: *mut ::windows::core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> ::windows::core::Result<()>; + fn GetFormat(&self, waveformattype: SPSTREAMFORMATTYPE, pformatid: *mut ::windows::core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> ::windows::core::Result<()>; fn IsUISupported(&self, psztypeofui: &::windows::core::PCWSTR, pvextradata: *mut ::core::ffi::c_void, cbextradata: u32, pfsupported: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn DisplayUI(&self, hwndparent: super::super::Foundation::HWND, psztitle: &::windows::core::PCWSTR, psztypeofui: &::windows::core::PCWSTR, pvextradata: *mut ::core::ffi::c_void, cbextradata: u32) -> ::windows::core::Result<()>; fn EmulateRecognition(&self, pphrase: &::core::option::Option) -> ::windows::core::Result<()>; @@ -2015,7 +2015,7 @@ impl ISpRecognizer_Vtbl { let this = (*this).get_impl(); this.GetStatus(::core::mem::transmute_copy(&pstatus)).into() } - unsafe extern "system" fn GetFormat, Impl: ISpRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, waveformattype: SPWAVEFORMATTYPE, pformatid: *mut ::windows::core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFormat, Impl: ISpRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, waveformattype: SPSTREAMFORMATTYPE, pformatid: *mut ::windows::core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetFormat(::core::mem::transmute_copy(&waveformattype), ::core::mem::transmute_copy(&pformatid), ::core::mem::transmute_copy(&ppcomemwfex)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs index be083b0620..803ae6cb2d 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs @@ -116,7 +116,7 @@ impl ISpAudio { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::super::System::Com::LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -126,7 +126,7 @@ impl ISpAudio { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: super::super::System::Com::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -1250,7 +1250,7 @@ impl ISpMMSysAudio { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::super::System::Com::LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -1260,7 +1260,7 @@ impl ISpMMSysAudio { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: super::super::System::Com::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -4025,7 +4025,7 @@ impl ISpRecognizer { } #[doc = "*Required features: `\"Win32_Media_Audio\"`*"] #[cfg(feature = "Win32_Media_Audio")] - pub unsafe fn GetFormat(&self, waveformattype: SPWAVEFORMATTYPE, pformatid: &mut ::windows::core::GUID, ppcomemwfex: &mut *mut super::Audio::WAVEFORMATEX) -> ::windows::core::Result<()> { + pub unsafe fn GetFormat(&self, waveformattype: SPSTREAMFORMATTYPE, pformatid: &mut ::windows::core::GUID, ppcomemwfex: &mut *mut super::Audio::WAVEFORMATEX) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetFormat)(::windows::core::Interface::as_raw(self), waveformattype, ::core::mem::transmute(pformatid), ::core::mem::transmute(ppcomemwfex)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -4126,7 +4126,7 @@ pub struct ISpRecognizer_Vtbl { pub SetRecoState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newstate: SPRECOSTATE) -> ::windows::core::HRESULT, pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatus: *mut SPRECOGNIZERSTATUS) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Media_Audio")] - pub GetFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, waveformattype: SPWAVEFORMATTYPE, pformatid: *mut ::windows::core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> ::windows::core::HRESULT, + pub GetFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, waveformattype: SPSTREAMFORMATTYPE, pformatid: *mut ::windows::core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Media_Audio"))] GetFormat: usize, #[cfg(feature = "Win32_Foundation")] @@ -4637,7 +4637,7 @@ impl ISpStream { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::super::System::Com::LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -4647,7 +4647,7 @@ impl ISpStream { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: super::super::System::Com::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -4851,7 +4851,7 @@ impl ISpStreamFormat { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::super::System::Com::LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -4861,7 +4861,7 @@ impl ISpStreamFormat { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: super::super::System::Com::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -5013,7 +5013,7 @@ impl ISpStreamFormatConverter { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::super::System::Com::LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -5023,7 +5023,7 @@ impl ISpStreamFormatConverter { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: super::super::System::Com::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -14930,36 +14930,36 @@ impl ::core::fmt::Debug for SPDATAKEYLOCATION { #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct SPDISPLYATTRIBUTES(pub i32); +pub struct SPDISPLAYATTRIBUTES(pub i32); #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPAF_ONE_TRAILING_SPACE: SPDISPLYATTRIBUTES = SPDISPLYATTRIBUTES(2i32); +pub const SPAF_ONE_TRAILING_SPACE: SPDISPLAYATTRIBUTES = SPDISPLAYATTRIBUTES(2i32); #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPAF_TWO_TRAILING_SPACES: SPDISPLYATTRIBUTES = SPDISPLYATTRIBUTES(4i32); +pub const SPAF_TWO_TRAILING_SPACES: SPDISPLAYATTRIBUTES = SPDISPLAYATTRIBUTES(4i32); #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPAF_CONSUME_LEADING_SPACES: SPDISPLYATTRIBUTES = SPDISPLYATTRIBUTES(8i32); +pub const SPAF_CONSUME_LEADING_SPACES: SPDISPLAYATTRIBUTES = SPDISPLAYATTRIBUTES(8i32); #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPAF_BUFFER_POSITION: SPDISPLYATTRIBUTES = SPDISPLYATTRIBUTES(16i32); +pub const SPAF_BUFFER_POSITION: SPDISPLAYATTRIBUTES = SPDISPLAYATTRIBUTES(16i32); #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPAF_ALL: SPDISPLYATTRIBUTES = SPDISPLYATTRIBUTES(31i32); +pub const SPAF_ALL: SPDISPLAYATTRIBUTES = SPDISPLAYATTRIBUTES(31i32); #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPAF_USER_SPECIFIED: SPDISPLYATTRIBUTES = SPDISPLYATTRIBUTES(128i32); -impl ::core::marker::Copy for SPDISPLYATTRIBUTES {} -impl ::core::clone::Clone for SPDISPLYATTRIBUTES { +pub const SPAF_USER_SPECIFIED: SPDISPLAYATTRIBUTES = SPDISPLAYATTRIBUTES(128i32); +impl ::core::marker::Copy for SPDISPLAYATTRIBUTES {} +impl ::core::clone::Clone for SPDISPLAYATTRIBUTES { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for SPDISPLYATTRIBUTES { +impl ::core::default::Default for SPDISPLAYATTRIBUTES { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for SPDISPLYATTRIBUTES { +unsafe impl ::windows::core::Abi for SPDISPLAYATTRIBUTES { type Abi = Self; } -impl ::core::fmt::Debug for SPDISPLYATTRIBUTES { +impl ::core::fmt::Debug for SPDISPLAYATTRIBUTES { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SPDISPLYATTRIBUTES").field(&self.0).finish() + f.debug_tuple("SPDISPLAYATTRIBUTES").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] @@ -16000,6 +16000,33 @@ impl ::core::fmt::Debug for SPSTREAMFORMAT { #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct SPSTREAMFORMATTYPE(pub i32); +#[doc = "*Required features: `\"Win32_Media_Speech\"`*"] +pub const SPWF_INPUT: SPSTREAMFORMATTYPE = SPSTREAMFORMATTYPE(0i32); +#[doc = "*Required features: `\"Win32_Media_Speech\"`*"] +pub const SPWF_SRENGINE: SPSTREAMFORMATTYPE = SPSTREAMFORMATTYPE(1i32); +impl ::core::marker::Copy for SPSTREAMFORMATTYPE {} +impl ::core::clone::Clone for SPSTREAMFORMATTYPE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for SPSTREAMFORMATTYPE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for SPSTREAMFORMATTYPE { + type Abi = Self; +} +impl ::core::fmt::Debug for SPSTREAMFORMATTYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("SPSTREAMFORMATTYPE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_Media_Speech\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct SPVACTIONS(pub i32); #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] pub const SPVA_Speak: SPVACTIONS = SPVACTIONS(0i32); @@ -16232,33 +16259,6 @@ impl ::core::fmt::Debug for SPVPRIORITY { #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct SPWAVEFORMATTYPE(pub i32); -#[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPWF_INPUT: SPWAVEFORMATTYPE = SPWAVEFORMATTYPE(0i32); -#[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -pub const SPWF_SRENGINE: SPWAVEFORMATTYPE = SPWAVEFORMATTYPE(1i32); -impl ::core::marker::Copy for SPWAVEFORMATTYPE {} -impl ::core::clone::Clone for SPWAVEFORMATTYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for SPWAVEFORMATTYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for SPWAVEFORMATTYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for SPWAVEFORMATTYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SPWAVEFORMATTYPE").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_Media_Speech\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct SPWORDPRONOUNCEABLE(pub i32); #[doc = "*Required features: `\"Win32_Media_Speech\"`*"] pub const SPWP_UNKNOWN_WORD_UNPRONOUNCEABLE: SPWORDPRONOUNCEABLE = SPWORDPRONOUNCEABLE(0i32); 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 07ca9f7206..95d91ca558 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs @@ -1,514 +1,3 @@ -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpAddServer(flags: u32, idinfo: *mut ::core::ffi::c_void, newserver: &mut DHCPDS_SERVER, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpAddServer(flags: u32, idinfo: *mut ::core::ffi::c_void, newserver: *mut DHCPDS_SERVER, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32; - } - DhcpAddServer(flags, ::core::mem::transmute(idinfo), ::core::mem::transmute(newserver), ::core::mem::transmute(callbackfn), ::core::mem::transmute(callbackdata)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpAuditLogGetParams<'a, P0>(serveripaddress: P0, flags: u32, auditlogdir: ::core::option::Option<&mut ::windows::core::PWSTR>, diskcheckinterval: &mut u32, maxlogfilessize: &mut u32, minspaceondisk: &mut u32) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpAuditLogGetParams(serveripaddress: ::windows::core::PCWSTR, flags: u32, auditlogdir: *mut ::windows::core::PWSTR, diskcheckinterval: *mut u32, maxlogfilessize: *mut u32, minspaceondisk: *mut u32) -> u32; - } - DhcpAuditLogGetParams(serveripaddress.into(), flags, ::core::mem::transmute(auditlogdir), ::core::mem::transmute(diskcheckinterval), ::core::mem::transmute(maxlogfilessize), ::core::mem::transmute(minspaceondisk)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpAuditLogSetParams<'a, P0, P1>(serveripaddress: P0, flags: u32, auditlogdir: P1, diskcheckinterval: u32, maxlogfilessize: u32, minspaceondisk: u32) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpAuditLogSetParams(serveripaddress: ::windows::core::PCWSTR, flags: u32, auditlogdir: ::windows::core::PCWSTR, diskcheckinterval: u32, maxlogfilessize: u32, minspaceondisk: u32) -> u32; - } - DhcpAuditLogSetParams(serveripaddress.into(), flags, auditlogdir.into(), diskcheckinterval, maxlogfilessize, minspaceondisk) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DhcpCreateClass<'a, P0>(serveripaddress: P0, reservedmustbezero: u32, classinfo: &mut DHCP_CLASS_INFO) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpCreateClass(serveripaddress: ::windows::core::PCWSTR, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO) -> u32; - } - DhcpCreateClass(serveripaddress.into(), reservedmustbezero, ::core::mem::transmute(classinfo)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpCreateOptionV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: &mut DHCP_OPTION) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpCreateOptionV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, optioninfo: *mut DHCP_OPTION) -> u32; - } - DhcpCreateOptionV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(optioninfo)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpDeleteClass<'a, P0, P1>(serveripaddress: P0, reservedmustbezero: u32, classname: P1) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpDeleteClass(serveripaddress: ::windows::core::PCWSTR, reservedmustbezero: u32, classname: ::windows::core::PCWSTR) -> u32; - } - DhcpDeleteClass(serveripaddress.into(), reservedmustbezero, classname.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpDeleteServer(flags: u32, idinfo: *mut ::core::ffi::c_void, newserver: &mut DHCPDS_SERVER, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpDeleteServer(flags: u32, idinfo: *mut ::core::ffi::c_void, newserver: *mut DHCPDS_SERVER, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32; - } - DhcpDeleteServer(flags, ::core::mem::transmute(idinfo), ::core::mem::transmute(newserver), ::core::mem::transmute(callbackfn), ::core::mem::transmute(callbackdata)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpDeleteSuperScopeV4<'a, P0, P1>(serveripaddress: P0, superscopename: P1) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpDeleteSuperScopeV4(serveripaddress: ::windows::core::PCWSTR, superscopename: ::windows::core::PCWSTR) -> u32; - } - DhcpDeleteSuperScopeV4(serveripaddress.into(), superscopename.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpDsCleanup() { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpDsCleanup(); - } - DhcpDsCleanup() -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpDsInit() -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpDsInit() -> u32; - } - DhcpDsInit() -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DhcpEnumClasses<'a, P0>(serveripaddress: P0, reservedmustbezero: u32, resumehandle: &mut u32, preferredmaximum: u32, classinfoarray: &mut *mut DHCP_CLASS_INFO_ARRAY, nread: &mut u32, ntotal: &mut u32) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpEnumClasses(serveripaddress: ::windows::core::PCWSTR, reservedmustbezero: u32, resumehandle: *mut u32, preferredmaximum: u32, classinfoarray: *mut *mut DHCP_CLASS_INFO_ARRAY, nread: *mut u32, ntotal: *mut u32) -> u32; - } - DhcpEnumClasses(serveripaddress.into(), reservedmustbezero, ::core::mem::transmute(resumehandle), preferredmaximum, ::core::mem::transmute(classinfoarray), ::core::mem::transmute(nread), ::core::mem::transmute(ntotal)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpEnumOptionValuesV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO, resumehandle: &mut u32, preferredmaximum: u32, optionvalues: &mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: &mut u32, optionstotal: &mut u32) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpEnumOptionValuesV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, resumehandle: *mut u32, preferredmaximum: u32, optionvalues: *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; - } - DhcpEnumOptionValuesV5(serveripaddress.into(), flags, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(resumehandle), preferredmaximum, ::core::mem::transmute(optionvalues), ::core::mem::transmute(optionsread), ::core::mem::transmute(optionstotal)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpEnumOptionsV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, classname: P1, vendorname: P2, resumehandle: &mut u32, preferredmaximum: u32, options: &mut *mut DHCP_OPTION_ARRAY, optionsread: &mut u32, optionstotal: &mut u32) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpEnumOptionsV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, resumehandle: *mut u32, preferredmaximum: u32, options: *mut *mut DHCP_OPTION_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; - } - DhcpEnumOptionsV5(serveripaddress.into(), flags, classname.into(), vendorname.into(), ::core::mem::transmute(resumehandle), preferredmaximum, ::core::mem::transmute(options), ::core::mem::transmute(optionsread), ::core::mem::transmute(optionstotal)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpEnumServers(flags: u32, idinfo: *mut ::core::ffi::c_void, servers: &mut *mut DHCPDS_SERVERS, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpEnumServers(flags: u32, idinfo: *mut ::core::ffi::c_void, servers: *mut *mut DHCPDS_SERVERS, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32; - } - DhcpEnumServers(flags, ::core::mem::transmute(idinfo), ::core::mem::transmute(servers), ::core::mem::transmute(callbackfn), ::core::mem::transmute(callbackdata)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DhcpGetAllOptionValues<'a, P0>(serveripaddress: P0, flags: u32, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO, values: &mut *mut DHCP_ALL_OPTION_VALUES) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpGetAllOptionValues(serveripaddress: ::windows::core::PCWSTR, flags: u32, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, values: *mut *mut DHCP_ALL_OPTION_VALUES) -> u32; - } - DhcpGetAllOptionValues(serveripaddress.into(), flags, ::core::mem::transmute(scopeinfo), ::core::mem::transmute(values)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpGetAllOptions<'a, P0>(serveripaddress: P0, flags: u32, optionstruct: &mut *mut DHCP_ALL_OPTIONS) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpGetAllOptions(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionstruct: *mut *mut DHCP_ALL_OPTIONS) -> u32; - } - DhcpGetAllOptions(serveripaddress.into(), flags, ::core::mem::transmute(optionstruct)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DhcpGetClassInfo<'a, P0>(serveripaddress: P0, reservedmustbezero: u32, partialclassinfo: &mut DHCP_CLASS_INFO, filledclassinfo: &mut *mut DHCP_CLASS_INFO) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpGetClassInfo(serveripaddress: ::windows::core::PCWSTR, reservedmustbezero: u32, partialclassinfo: *mut DHCP_CLASS_INFO, filledclassinfo: *mut *mut DHCP_CLASS_INFO) -> u32; - } - DhcpGetClassInfo(serveripaddress.into(), reservedmustbezero, ::core::mem::transmute(partialclassinfo), ::core::mem::transmute(filledclassinfo)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpGetMibInfoV6<'a, P0>(serveripaddress: P0, mibinfo: &mut *mut DHCP_MIB_INFO_V6) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpGetMibInfoV6(serveripaddress: ::windows::core::PCWSTR, mibinfo: *mut *mut DHCP_MIB_INFO_V6) -> u32; - } - DhcpGetMibInfoV6(serveripaddress.into(), ::core::mem::transmute(mibinfo)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpGetOptionInfoV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: &mut *mut DHCP_OPTION) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpGetOptionInfoV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, optioninfo: *mut *mut DHCP_OPTION) -> u32; - } - DhcpGetOptionInfoV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(optioninfo)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpGetOptionValueV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO, optionvalue: &mut *mut DHCP_OPTION_VALUE) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpGetOptionValueV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32; - } - DhcpGetOptionValueV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(optionvalue)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpGetOptionValueV6<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO6, optionvalue: &mut *mut DHCP_OPTION_VALUE) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpGetOptionValueV6(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32; - } - DhcpGetOptionValueV6(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(optionvalue)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpGetSuperScopeInfoV4<'a, P0>(serveripaddress: P0, superscopetable: &mut *mut DHCP_SUPER_SCOPE_TABLE) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpGetSuperScopeInfoV4(serveripaddress: ::windows::core::PCWSTR, superscopetable: *mut *mut DHCP_SUPER_SCOPE_TABLE) -> u32; - } - DhcpGetSuperScopeInfoV4(serveripaddress.into(), ::core::mem::transmute(superscopetable)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpGetThreadOptions(pflags: &mut u32, reserved: *mut ::core::ffi::c_void) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpGetThreadOptions(pflags: *mut u32, reserved: *mut ::core::ffi::c_void) -> u32; - } - DhcpGetThreadOptions(::core::mem::transmute(pflags), ::core::mem::transmute(reserved)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpHlprFindV4DhcpProperty(propertyarray: &DHCP_PROPERTY_ARRAY, id: DHCP_PROPERTY_ID, r#type: DHCP_PROPERTY_TYPE) -> *mut DHCP_PROPERTY { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpHlprFindV4DhcpProperty(propertyarray: *const DHCP_PROPERTY_ARRAY, id: DHCP_PROPERTY_ID, r#type: DHCP_PROPERTY_TYPE) -> *mut DHCP_PROPERTY; - } - DhcpHlprFindV4DhcpProperty(::core::mem::transmute(propertyarray), id, r#type) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DhcpModifyClass<'a, P0>(serveripaddress: P0, reservedmustbezero: u32, classinfo: &mut DHCP_CLASS_INFO) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpModifyClass(serveripaddress: ::windows::core::PCWSTR, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO) -> u32; - } - DhcpModifyClass(serveripaddress.into(), reservedmustbezero, ::core::mem::transmute(classinfo)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpRemoveOptionV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpRemoveOptionV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR) -> u32; - } - DhcpRemoveOptionV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpRemoveOptionValueV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpRemoveOptionValueV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO) -> u32; - } - DhcpRemoveOptionValueV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpServerBackupDatabase<'a, P0, P1>(serveripaddress: P0, path: P1) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpServerBackupDatabase(serveripaddress: ::windows::core::PCWSTR, path: ::windows::core::PCWSTR) -> u32; - } - DhcpServerBackupDatabase(serveripaddress.into(), path.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DhcpServerQueryAttribute<'a, P0>(serveripaddr: P0, dwreserved: u32, dhcpattribid: u32, pdhcpattrib: &mut *mut DHCP_ATTRIB) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpServerQueryAttribute(serveripaddr: ::windows::core::PCWSTR, dwreserved: u32, dhcpattribid: u32, pdhcpattrib: *mut *mut DHCP_ATTRIB) -> u32; - } - DhcpServerQueryAttribute(serveripaddr.into(), dwreserved, dhcpattribid, ::core::mem::transmute(pdhcpattrib)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DhcpServerQueryAttributes<'a, P0>(serveripaddr: P0, dwreserved: u32, dwattribcount: u32, pdhcpattribs: &mut u32, pdhcpattribarr: &mut *mut DHCP_ATTRIB_ARRAY) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpServerQueryAttributes(serveripaddr: ::windows::core::PCWSTR, dwreserved: u32, dwattribcount: u32, pdhcpattribs: *mut u32, pdhcpattribarr: *mut *mut DHCP_ATTRIB_ARRAY) -> u32; - } - DhcpServerQueryAttributes(serveripaddr.into(), dwreserved, dwattribcount, ::core::mem::transmute(pdhcpattribs), ::core::mem::transmute(pdhcpattribarr)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpServerQueryDnsRegCredentials<'a, P0>(serveripaddress: P0, uname: &mut [u16], domain: &mut [u16]) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpServerQueryDnsRegCredentials(serveripaddress: ::windows::core::PCWSTR, unamesize: u32, uname: ::windows::core::PWSTR, domainsize: u32, domain: ::windows::core::PWSTR) -> u32; - } - DhcpServerQueryDnsRegCredentials(serveripaddress.into(), uname.len() as _, ::core::mem::transmute(uname.as_ptr()), domain.len() as _, ::core::mem::transmute(domain.as_ptr())) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpServerRedoAuthorization<'a, P0>(serveripaddr: P0, dwreserved: u32) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpServerRedoAuthorization(serveripaddr: ::windows::core::PCWSTR, dwreserved: u32) -> u32; - } - DhcpServerRedoAuthorization(serveripaddr.into(), dwreserved) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpServerRestoreDatabase<'a, P0, P1>(serveripaddress: P0, path: P1) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpServerRestoreDatabase(serveripaddress: ::windows::core::PCWSTR, path: ::windows::core::PCWSTR) -> u32; - } - DhcpServerRestoreDatabase(serveripaddress.into(), path.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpServerSetDnsRegCredentials<'a, P0, P1, P2, P3>(serveripaddress: P0, uname: P1, domain: P2, passwd: P3) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpServerSetDnsRegCredentials(serveripaddress: ::windows::core::PCWSTR, uname: ::windows::core::PCWSTR, domain: ::windows::core::PCWSTR, passwd: ::windows::core::PCWSTR) -> u32; - } - DhcpServerSetDnsRegCredentials(serveripaddress.into(), uname.into(), domain.into(), passwd.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpServerSetDnsRegCredentialsV5<'a, P0, P1, P2, P3>(serveripaddress: P0, uname: P1, domain: P2, passwd: P3) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpServerSetDnsRegCredentialsV5(serveripaddress: ::windows::core::PCWSTR, uname: ::windows::core::PCWSTR, domain: ::windows::core::PCWSTR, passwd: ::windows::core::PCWSTR) -> u32; - } - DhcpServerSetDnsRegCredentialsV5(serveripaddress.into(), uname.into(), domain.into(), passwd.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpSetOptionInfoV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: &mut DHCP_OPTION) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpSetOptionInfoV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, optioninfo: *mut DHCP_OPTION) -> u32; - } - DhcpSetOptionInfoV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(optioninfo)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpSetOptionValueV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO, optionvalue: &mut DHCP_OPTION_DATA) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpSetOptionValueV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut DHCP_OPTION_DATA) -> u32; - } - DhcpSetOptionValueV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(optionvalue)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpSetOptionValuesV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO, optionvalues: &mut DHCP_OPTION_VALUE_ARRAY) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpSetOptionValuesV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalues: *mut DHCP_OPTION_VALUE_ARRAY) -> u32; - } - DhcpSetOptionValuesV5(serveripaddress.into(), flags, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(optionvalues)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpSetSubnetInfoV6<'a, P0>(serveripaddress: P0, subnetaddress: DHCP_IPV6_ADDRESS, subnetinfo: &mut DHCP_SUBNET_INFO_V6) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpSetSubnetInfoV6(serveripaddress: ::windows::core::PCWSTR, subnetaddress: DHCP_IPV6_ADDRESS, subnetinfo: *mut DHCP_SUBNET_INFO_V6) -> u32; - } - DhcpSetSubnetInfoV6(serveripaddress.into(), ::core::mem::transmute(subnetaddress), ::core::mem::transmute(subnetinfo)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DhcpSetSuperScopeV4<'a, P0, P1, P2>(serveripaddress: P0, subnetaddress: u32, superscopename: P1, changeexisting: P2) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpSetSuperScopeV4(serveripaddress: ::windows::core::PCWSTR, subnetaddress: u32, superscopename: ::windows::core::PCWSTR, changeexisting: super::super::Foundation::BOOL) -> u32; - } - DhcpSetSuperScopeV4(serveripaddress.into(), subnetaddress, superscopename.into(), changeexisting.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] -#[inline] -pub unsafe fn DhcpSetThreadOptions(flags: u32, reserved: *mut ::core::ffi::c_void) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DhcpSetThreadOptions(flags: u32, reserved: *mut ::core::ffi::c_void) -> u32; - } - DhcpSetThreadOptions(flags, ::core::mem::transmute(reserved)) -} #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -537,6 +26,15 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpAddServer(flags: u32, idinfo: *mut ::core::ffi::c_void, newserver: &mut DHCPDS_SERVER, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpAddServer(flags: u32, idinfo: *mut ::core::ffi::c_void, newserver: *mut DHCPDS_SERVER, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32; + } + DhcpAddServer(flags, ::core::mem::transmute(idinfo), ::core::mem::transmute(newserver), ::core::mem::transmute(callbackfn), ::core::mem::transmute(callbackdata)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpAddSubnetElement<'a, P0>(serveripaddress: P0, subnetaddress: u32, addelementinfo: &DHCP_SUBNET_ELEMENT_DATA) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -585,6 +83,31 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpAuditLogGetParams<'a, P0>(serveripaddress: P0, flags: u32, auditlogdir: ::core::option::Option<&mut ::windows::core::PWSTR>, diskcheckinterval: &mut u32, maxlogfilessize: &mut u32, minspaceondisk: &mut u32) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpAuditLogGetParams(serveripaddress: ::windows::core::PCWSTR, flags: u32, auditlogdir: *mut ::windows::core::PWSTR, diskcheckinterval: *mut u32, maxlogfilessize: *mut u32, minspaceondisk: *mut u32) -> u32; + } + DhcpAuditLogGetParams(serveripaddress.into(), flags, ::core::mem::transmute(auditlogdir), ::core::mem::transmute(diskcheckinterval), ::core::mem::transmute(maxlogfilessize), ::core::mem::transmute(minspaceondisk)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] +pub unsafe fn DhcpAuditLogSetParams<'a, P0, P1>(serveripaddress: P0, flags: u32, auditlogdir: P1, diskcheckinterval: u32, maxlogfilessize: u32, minspaceondisk: u32) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpAuditLogSetParams(serveripaddress: ::windows::core::PCWSTR, flags: u32, auditlogdir: ::windows::core::PCWSTR, diskcheckinterval: u32, maxlogfilessize: u32, minspaceondisk: u32) -> u32; + } + DhcpAuditLogSetParams(serveripaddress.into(), flags, auditlogdir.into(), diskcheckinterval, maxlogfilessize, minspaceondisk) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpCApiCleanup() { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -604,6 +127,19 @@ pub unsafe fn DhcpCApiInitialize(version: &mut u32) -> u32 { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn DhcpCreateClass<'a, P0>(serveripaddress: P0, reservedmustbezero: u32, classinfo: &mut DHCP_CLASS_INFO) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpCreateClass(serveripaddress: ::windows::core::PCWSTR, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO) -> u32; + } + DhcpCreateClass(serveripaddress.into(), reservedmustbezero, ::core::mem::transmute(classinfo)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn DhcpCreateClassV6<'a, P0>(serveripaddress: P0, reservedmustbezero: u32, classinfo: &mut DHCP_CLASS_INFO_V6) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -665,6 +201,20 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpCreateOptionV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: &mut DHCP_OPTION) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpCreateOptionV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, optioninfo: *mut DHCP_OPTION) -> u32; + } + DhcpCreateOptionV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(optioninfo)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpCreateOptionV6<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: &mut DHCP_OPTION) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -724,6 +274,19 @@ pub unsafe fn DhcpDeRegisterParamChange(flags: u32, reserved: *mut ::core::ffi:: } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpDeleteClass<'a, P0, P1>(serveripaddress: P0, reservedmustbezero: u32, classname: P1) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpDeleteClass(serveripaddress: ::windows::core::PCWSTR, reservedmustbezero: u32, classname: ::windows::core::PCWSTR) -> u32; + } + DhcpDeleteClass(serveripaddress.into(), reservedmustbezero, classname.into()) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpDeleteClassV6<'a, P0, P1>(serveripaddress: P0, reservedmustbezero: u32, classname: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -774,6 +337,15 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpDeleteServer(flags: u32, idinfo: *mut ::core::ffi::c_void, newserver: &mut DHCPDS_SERVER, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpDeleteServer(flags: u32, idinfo: *mut ::core::ffi::c_void, newserver: *mut DHCPDS_SERVER, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32; + } + DhcpDeleteServer(flags, ::core::mem::transmute(idinfo), ::core::mem::transmute(newserver), ::core::mem::transmute(callbackfn), ::core::mem::transmute(callbackdata)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpDeleteSubnet<'a, P0>(serveripaddress: P0, subnetaddress: u32, forceflag: DHCP_FORCE_FLAG) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -796,6 +368,50 @@ where } DhcpDeleteSubnetV6(serveripaddress.into(), ::core::mem::transmute(subnetaddress), forceflag) } +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] +pub unsafe fn DhcpDeleteSuperScopeV4<'a, P0, P1>(serveripaddress: P0, superscopename: P1) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpDeleteSuperScopeV4(serveripaddress: ::windows::core::PCWSTR, superscopename: ::windows::core::PCWSTR) -> u32; + } + DhcpDeleteSuperScopeV4(serveripaddress.into(), superscopename.into()) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] +pub unsafe fn DhcpDsCleanup() { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpDsCleanup(); + } + DhcpDsCleanup() +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] +pub unsafe fn DhcpDsInit() -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpDsInit() -> u32; + } + DhcpDsInit() +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn DhcpEnumClasses<'a, P0>(serveripaddress: P0, reservedmustbezero: u32, resumehandle: &mut u32, preferredmaximum: u32, classinfoarray: &mut *mut DHCP_CLASS_INFO_ARRAY, nread: &mut u32, ntotal: &mut u32) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpEnumClasses(serveripaddress: ::windows::core::PCWSTR, reservedmustbezero: u32, resumehandle: *mut u32, preferredmaximum: u32, classinfoarray: *mut *mut DHCP_CLASS_INFO_ARRAY, nread: *mut u32, ntotal: *mut u32) -> u32; + } + DhcpEnumClasses(serveripaddress.into(), reservedmustbezero, ::core::mem::transmute(resumehandle), preferredmaximum, ::core::mem::transmute(classinfoarray), ::core::mem::transmute(nread), ::core::mem::transmute(ntotal)) +} #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -836,6 +452,20 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpEnumOptionValuesV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO, resumehandle: &mut u32, preferredmaximum: u32, optionvalues: &mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: &mut u32, optionstotal: &mut u32) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpEnumOptionValuesV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, resumehandle: *mut u32, preferredmaximum: u32, optionvalues: *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; + } + DhcpEnumOptionValuesV5(serveripaddress.into(), flags, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(resumehandle), preferredmaximum, ::core::mem::transmute(optionvalues), ::core::mem::transmute(optionsread), ::core::mem::transmute(optionstotal)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpEnumOptionValuesV6<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO6, resumehandle: &mut u32, preferredmaximum: u32, optionvalues: &mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: &mut u32, optionstotal: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -844,21 +474,35 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn DhcpEnumOptionValuesV6(serveripaddress: ::windows::core::PCWSTR, flags: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, resumehandle: *mut u32, preferredmaximum: u32, optionvalues: *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; + fn DhcpEnumOptionValuesV6(serveripaddress: ::windows::core::PCWSTR, flags: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, resumehandle: *mut u32, preferredmaximum: u32, optionvalues: *mut *mut DHCP_OPTION_VALUE_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; + } + DhcpEnumOptionValuesV6(serveripaddress.into(), flags, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(resumehandle), preferredmaximum, ::core::mem::transmute(optionvalues), ::core::mem::transmute(optionsread), ::core::mem::transmute(optionstotal)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] +pub unsafe fn DhcpEnumOptions<'a, P0>(serveripaddress: P0, resumehandle: &mut u32, preferredmaximum: u32, options: &mut *mut DHCP_OPTION_ARRAY, optionsread: &mut u32, optionstotal: &mut u32) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpEnumOptions(serveripaddress: ::windows::core::PCWSTR, resumehandle: *mut u32, preferredmaximum: u32, options: *mut *mut DHCP_OPTION_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; } - DhcpEnumOptionValuesV6(serveripaddress.into(), flags, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(resumehandle), preferredmaximum, ::core::mem::transmute(optionvalues), ::core::mem::transmute(optionsread), ::core::mem::transmute(optionstotal)) + DhcpEnumOptions(serveripaddress.into(), ::core::mem::transmute(resumehandle), preferredmaximum, ::core::mem::transmute(options), ::core::mem::transmute(optionsread), ::core::mem::transmute(optionstotal)) } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] -pub unsafe fn DhcpEnumOptions<'a, P0>(serveripaddress: P0, resumehandle: &mut u32, preferredmaximum: u32, options: &mut *mut DHCP_OPTION_ARRAY, optionsread: &mut u32, optionstotal: &mut u32) -> u32 +pub unsafe fn DhcpEnumOptionsV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, classname: P1, vendorname: P2, resumehandle: &mut u32, preferredmaximum: u32, options: &mut *mut DHCP_OPTION_ARRAY, optionsread: &mut u32, optionstotal: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn DhcpEnumOptions(serveripaddress: ::windows::core::PCWSTR, resumehandle: *mut u32, preferredmaximum: u32, options: *mut *mut DHCP_OPTION_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; + fn DhcpEnumOptionsV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, resumehandle: *mut u32, preferredmaximum: u32, options: *mut *mut DHCP_OPTION_ARRAY, optionsread: *mut u32, optionstotal: *mut u32) -> u32; } - DhcpEnumOptions(serveripaddress.into(), ::core::mem::transmute(resumehandle), preferredmaximum, ::core::mem::transmute(options), ::core::mem::transmute(optionsread), ::core::mem::transmute(optionstotal)) + DhcpEnumOptionsV5(serveripaddress.into(), flags, classname.into(), vendorname.into(), ::core::mem::transmute(resumehandle), preferredmaximum, ::core::mem::transmute(options), ::core::mem::transmute(optionsread), ::core::mem::transmute(optionstotal)) } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] @@ -876,6 +520,15 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpEnumServers(flags: u32, idinfo: *mut ::core::ffi::c_void, servers: &mut *mut DHCPDS_SERVERS, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpEnumServers(flags: u32, idinfo: *mut ::core::ffi::c_void, servers: *mut *mut DHCPDS_SERVERS, callbackfn: *mut ::core::ffi::c_void, callbackdata: *mut ::core::ffi::c_void) -> u32; + } + DhcpEnumServers(flags, ::core::mem::transmute(idinfo), ::core::mem::transmute(servers), ::core::mem::transmute(callbackfn), ::core::mem::transmute(callbackdata)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpEnumSubnetClients<'a, P0>(serveripaddress: P0, subnetaddress: u32, resumehandle: &mut u32, preferredmaximum: u32, clientinfo: &mut *mut DHCP_CLIENT_INFO_ARRAY, clientsread: &mut u32, clientstotal: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1023,6 +676,19 @@ where #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn DhcpGetAllOptionValues<'a, P0>(serveripaddress: P0, flags: u32, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO, values: &mut *mut DHCP_ALL_OPTION_VALUES) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpGetAllOptionValues(serveripaddress: ::windows::core::PCWSTR, flags: u32, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, values: *mut *mut DHCP_ALL_OPTION_VALUES) -> u32; + } + DhcpGetAllOptionValues(serveripaddress.into(), flags, ::core::mem::transmute(scopeinfo), ::core::mem::transmute(values)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn DhcpGetAllOptionValuesV6<'a, P0>(serveripaddress: P0, flags: u32, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO6, values: &mut *mut DHCP_ALL_OPTION_VALUES) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1035,6 +701,18 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpGetAllOptions<'a, P0>(serveripaddress: P0, flags: u32, optionstruct: &mut *mut DHCP_ALL_OPTIONS) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpGetAllOptions(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionstruct: *mut *mut DHCP_ALL_OPTIONS) -> u32; + } + DhcpGetAllOptions(serveripaddress.into(), flags, ::core::mem::transmute(optionstruct)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpGetAllOptionsV6<'a, P0>(serveripaddress: P0, flags: u32, optionstruct: &mut *mut DHCP_ALL_OPTIONS) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1045,6 +723,19 @@ where } DhcpGetAllOptionsV6(serveripaddress.into(), flags, ::core::mem::transmute(optionstruct)) } +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn DhcpGetClassInfo<'a, P0>(serveripaddress: P0, reservedmustbezero: u32, partialclassinfo: &mut DHCP_CLASS_INFO, filledclassinfo: &mut *mut DHCP_CLASS_INFO) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpGetClassInfo(serveripaddress: ::windows::core::PCWSTR, reservedmustbezero: u32, partialclassinfo: *mut DHCP_CLASS_INFO, filledclassinfo: *mut *mut DHCP_CLASS_INFO) -> u32; + } + DhcpGetClassInfo(serveripaddress.into(), reservedmustbezero, ::core::mem::transmute(partialclassinfo), ::core::mem::transmute(filledclassinfo)) +} #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] pub unsafe fn DhcpGetClientInfo<'a, P0>(serveripaddress: P0, searchinfo: &DHCP_SEARCH_INFO, clientinfo: &mut *mut DHCP_CLIENT_INFO) -> u32 @@ -1145,6 +836,18 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpGetMibInfoV6<'a, P0>(serveripaddress: P0, mibinfo: &mut *mut DHCP_MIB_INFO_V6) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpGetMibInfoV6(serveripaddress: ::windows::core::PCWSTR, mibinfo: *mut *mut DHCP_MIB_INFO_V6) -> u32; + } + DhcpGetMibInfoV6(serveripaddress.into(), ::core::mem::transmute(mibinfo)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpGetOptionInfo<'a, P0>(serveripaddress: P0, optionid: u32, optioninfo: &mut *mut DHCP_OPTION) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1157,6 +860,20 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpGetOptionInfoV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: &mut *mut DHCP_OPTION) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpGetOptionInfoV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, optioninfo: *mut *mut DHCP_OPTION) -> u32; + } + DhcpGetOptionInfoV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(optioninfo)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpGetOptionInfoV6<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: &mut *mut DHCP_OPTION) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1183,6 +900,34 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpGetOptionValueV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO, optionvalue: &mut *mut DHCP_OPTION_VALUE) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpGetOptionValueV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32; + } + DhcpGetOptionValueV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(optionvalue)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] +pub unsafe fn DhcpGetOptionValueV6<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO6, optionvalue: &mut *mut DHCP_OPTION_VALUE) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpGetOptionValueV6(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, optionvalue: *mut *mut DHCP_OPTION_VALUE) -> u32; + } + DhcpGetOptionValueV6(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(optionvalue)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpGetOriginalSubnetMask<'a, P0>(sadaptername: P0, dwsubnetmask: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1281,6 +1026,27 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpGetSuperScopeInfoV4<'a, P0>(serveripaddress: P0, superscopetable: &mut *mut DHCP_SUPER_SCOPE_TABLE) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpGetSuperScopeInfoV4(serveripaddress: ::windows::core::PCWSTR, superscopetable: *mut *mut DHCP_SUPER_SCOPE_TABLE) -> u32; + } + DhcpGetSuperScopeInfoV4(serveripaddress.into(), ::core::mem::transmute(superscopetable)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] +pub unsafe fn DhcpGetThreadOptions(pflags: &mut u32, reserved: *mut ::core::ffi::c_void) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpGetThreadOptions(pflags: *mut u32, reserved: *mut ::core::ffi::c_void) -> u32; + } + DhcpGetThreadOptions(::core::mem::transmute(pflags), ::core::mem::transmute(reserved)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpGetVersion<'a, P0>(serveripaddress: P0, majorversion: &mut u32, minorversion: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1358,6 +1124,15 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpHlprFindV4DhcpProperty(propertyarray: &DHCP_PROPERTY_ARRAY, id: DHCP_PROPERTY_ID, r#type: DHCP_PROPERTY_TYPE) -> *mut DHCP_PROPERTY { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpHlprFindV4DhcpProperty(propertyarray: *const DHCP_PROPERTY_ARRAY, id: DHCP_PROPERTY_ID, r#type: DHCP_PROPERTY_TYPE) -> *mut DHCP_PROPERTY; + } + DhcpHlprFindV4DhcpProperty(::core::mem::transmute(propertyarray), id, r#type) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpHlprFreeV4DhcpProperty(property: &mut DHCP_PROPERTY) { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -1467,6 +1242,19 @@ pub unsafe fn DhcpHlprResetV4PolicyExpr(policy: &mut DHCP_POLICY) -> u32 { #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn DhcpModifyClass<'a, P0>(serveripaddress: P0, reservedmustbezero: u32, classinfo: &mut DHCP_CLASS_INFO) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpModifyClass(serveripaddress: ::windows::core::PCWSTR, reservedmustbezero: u32, classinfo: *mut DHCP_CLASS_INFO) -> u32; + } + DhcpModifyClass(serveripaddress.into(), reservedmustbezero, ::core::mem::transmute(classinfo)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn DhcpModifyClassV6<'a, P0>(serveripaddress: P0, reservedmustbezero: u32, classinfo: &mut DHCP_CLASS_INFO_V6) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1513,6 +1301,20 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpRemoveOptionV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpRemoveOptionV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR) -> u32; + } + DhcpRemoveOptionV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into()) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpRemoveOptionV6<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1539,6 +1341,20 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpRemoveOptionValueV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpRemoveOptionValueV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO) -> u32; + } + DhcpRemoveOptionValueV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpRemoveOptionValueV6<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO6) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1618,82 +1434,158 @@ where pub unsafe fn DhcpRpcFreeMemory(bufferpointer: *mut ::core::ffi::c_void) { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn DhcpRpcFreeMemory(bufferpointer: *mut ::core::ffi::c_void); + fn DhcpRpcFreeMemory(bufferpointer: *mut ::core::ffi::c_void); + } + DhcpRpcFreeMemory(::core::mem::transmute(bufferpointer)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] +pub unsafe fn DhcpScanDatabase<'a, P0>(serveripaddress: P0, subnetaddress: u32, fixflag: u32, scanlist: &mut *mut DHCP_SCAN_LIST) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpScanDatabase(serveripaddress: ::windows::core::PCWSTR, subnetaddress: u32, fixflag: u32, scanlist: *mut *mut DHCP_SCAN_LIST) -> u32; + } + DhcpScanDatabase(serveripaddress.into(), subnetaddress, fixflag, ::core::mem::transmute(scanlist)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn DhcpServerAuditlogParamsFree(configinfo: &mut DHCP_SERVER_CONFIG_INFO_VQ) { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpServerAuditlogParamsFree(configinfo: *mut DHCP_SERVER_CONFIG_INFO_VQ); + } + DhcpServerAuditlogParamsFree(::core::mem::transmute(configinfo)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] +pub unsafe fn DhcpServerBackupDatabase<'a, P0, P1>(serveripaddress: P0, path: P1) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpServerBackupDatabase(serveripaddress: ::windows::core::PCWSTR, path: ::windows::core::PCWSTR) -> u32; + } + DhcpServerBackupDatabase(serveripaddress.into(), path.into()) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] +pub unsafe fn DhcpServerGetConfig<'a, P0>(serveripaddress: P0, configinfo: &mut *mut DHCP_SERVER_CONFIG_INFO) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpServerGetConfig(serveripaddress: ::windows::core::PCWSTR, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO) -> u32; + } + DhcpServerGetConfig(serveripaddress.into(), ::core::mem::transmute(configinfo)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn DhcpServerGetConfigV4<'a, P0>(serveripaddress: P0, configinfo: &mut *mut DHCP_SERVER_CONFIG_INFO_V4) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpServerGetConfigV4(serveripaddress: ::windows::core::PCWSTR, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO_V4) -> u32; + } + DhcpServerGetConfigV4(serveripaddress.into(), ::core::mem::transmute(configinfo)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn DhcpServerGetConfigV6<'a, P0>(serveripaddress: P0, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO6, configinfo: &mut *mut DHCP_SERVER_CONFIG_INFO_V6) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpServerGetConfigV6(serveripaddress: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO_V6) -> u32; } - DhcpRpcFreeMemory(::core::mem::transmute(bufferpointer)) + DhcpServerGetConfigV6(serveripaddress.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(configinfo)) } -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn DhcpScanDatabase<'a, P0>(serveripaddress: P0, subnetaddress: u32, fixflag: u32, scanlist: &mut *mut DHCP_SCAN_LIST) -> u32 +pub unsafe fn DhcpServerGetConfigVQ<'a, P0>(serveripaddress: P0, configinfo: &mut *mut DHCP_SERVER_CONFIG_INFO_VQ) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn DhcpScanDatabase(serveripaddress: ::windows::core::PCWSTR, subnetaddress: u32, fixflag: u32, scanlist: *mut *mut DHCP_SCAN_LIST) -> u32; + fn DhcpServerGetConfigVQ(serveripaddress: ::windows::core::PCWSTR, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO_VQ) -> u32; } - DhcpScanDatabase(serveripaddress.into(), subnetaddress, fixflag, ::core::mem::transmute(scanlist)) + DhcpServerGetConfigVQ(serveripaddress.into(), ::core::mem::transmute(configinfo)) } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn DhcpServerAuditlogParamsFree(configinfo: &mut DHCP_SERVER_CONFIG_INFO_VQ) { +pub unsafe fn DhcpServerQueryAttribute<'a, P0>(serveripaddr: P0, dwreserved: u32, dhcpattribid: u32, pdhcpattrib: &mut *mut DHCP_ATTRIB) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn DhcpServerAuditlogParamsFree(configinfo: *mut DHCP_SERVER_CONFIG_INFO_VQ); + fn DhcpServerQueryAttribute(serveripaddr: ::windows::core::PCWSTR, dwreserved: u32, dhcpattribid: u32, pdhcpattrib: *mut *mut DHCP_ATTRIB) -> u32; } - DhcpServerAuditlogParamsFree(::core::mem::transmute(configinfo)) + DhcpServerQueryAttribute(serveripaddr.into(), dwreserved, dhcpattribid, ::core::mem::transmute(pdhcpattrib)) } -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn DhcpServerGetConfig<'a, P0>(serveripaddress: P0, configinfo: &mut *mut DHCP_SERVER_CONFIG_INFO) -> u32 +pub unsafe fn DhcpServerQueryAttributes<'a, P0>(serveripaddr: P0, dwreserved: u32, dwattribcount: u32, pdhcpattribs: &mut u32, pdhcpattribarr: &mut *mut DHCP_ATTRIB_ARRAY) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn DhcpServerGetConfig(serveripaddress: ::windows::core::PCWSTR, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO) -> u32; + fn DhcpServerQueryAttributes(serveripaddr: ::windows::core::PCWSTR, dwreserved: u32, dwattribcount: u32, pdhcpattribs: *mut u32, pdhcpattribarr: *mut *mut DHCP_ATTRIB_ARRAY) -> u32; } - DhcpServerGetConfig(serveripaddress.into(), ::core::mem::transmute(configinfo)) + DhcpServerQueryAttributes(serveripaddr.into(), dwreserved, dwattribcount, ::core::mem::transmute(pdhcpattribs), ::core::mem::transmute(pdhcpattribarr)) } -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] -pub unsafe fn DhcpServerGetConfigV4<'a, P0>(serveripaddress: P0, configinfo: &mut *mut DHCP_SERVER_CONFIG_INFO_V4) -> u32 +pub unsafe fn DhcpServerQueryDnsRegCredentials<'a, P0>(serveripaddress: P0, uname: &mut [u16], domain: &mut [u16]) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn DhcpServerGetConfigV4(serveripaddress: ::windows::core::PCWSTR, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO_V4) -> u32; + fn DhcpServerQueryDnsRegCredentials(serveripaddress: ::windows::core::PCWSTR, unamesize: u32, uname: ::windows::core::PWSTR, domainsize: u32, domain: ::windows::core::PWSTR) -> u32; } - DhcpServerGetConfigV4(serveripaddress.into(), ::core::mem::transmute(configinfo)) + DhcpServerQueryDnsRegCredentials(serveripaddress.into(), uname.len() as _, ::core::mem::transmute(uname.as_ptr()), domain.len() as _, ::core::mem::transmute(domain.as_ptr())) } -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] -pub unsafe fn DhcpServerGetConfigV6<'a, P0>(serveripaddress: P0, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO6, configinfo: &mut *mut DHCP_SERVER_CONFIG_INFO_V6) -> u32 +pub unsafe fn DhcpServerRedoAuthorization<'a, P0>(serveripaddr: P0, dwreserved: u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn DhcpServerGetConfigV6(serveripaddress: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO6, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO_V6) -> u32; + fn DhcpServerRedoAuthorization(serveripaddr: ::windows::core::PCWSTR, dwreserved: u32) -> u32; } - DhcpServerGetConfigV6(serveripaddress.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(configinfo)) + DhcpServerRedoAuthorization(serveripaddr.into(), dwreserved) } -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] -pub unsafe fn DhcpServerGetConfigVQ<'a, P0>(serveripaddress: P0, configinfo: &mut *mut DHCP_SERVER_CONFIG_INFO_VQ) -> u32 +pub unsafe fn DhcpServerRestoreDatabase<'a, P0, P1>(serveripaddress: P0, path: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn DhcpServerGetConfigVQ(serveripaddress: ::windows::core::PCWSTR, configinfo: *mut *mut DHCP_SERVER_CONFIG_INFO_VQ) -> u32; + fn DhcpServerRestoreDatabase(serveripaddress: ::windows::core::PCWSTR, path: ::windows::core::PCWSTR) -> u32; } - DhcpServerGetConfigVQ(serveripaddress.into(), ::core::mem::transmute(configinfo)) + DhcpServerRestoreDatabase(serveripaddress.into(), path.into()) } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] @@ -1748,6 +1640,36 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpServerSetDnsRegCredentials<'a, P0, P1, P2, P3>(serveripaddress: P0, uname: P1, domain: P2, passwd: P3) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, + P3: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpServerSetDnsRegCredentials(serveripaddress: ::windows::core::PCWSTR, uname: ::windows::core::PCWSTR, domain: ::windows::core::PCWSTR, passwd: ::windows::core::PCWSTR) -> u32; + } + DhcpServerSetDnsRegCredentials(serveripaddress.into(), uname.into(), domain.into(), passwd.into()) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] +pub unsafe fn DhcpServerSetDnsRegCredentialsV5<'a, P0, P1, P2, P3>(serveripaddress: P0, uname: P1, domain: P2, passwd: P3) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, + P3: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpServerSetDnsRegCredentialsV5(serveripaddress: ::windows::core::PCWSTR, uname: ::windows::core::PCWSTR, domain: ::windows::core::PCWSTR, passwd: ::windows::core::PCWSTR) -> u32; + } + DhcpServerSetDnsRegCredentialsV5(serveripaddress.into(), uname.into(), domain.into(), passwd.into()) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpSetClientInfo<'a, P0>(serveripaddress: P0, clientinfo: &DHCP_CLIENT_INFO) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1822,6 +1744,20 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpSetOptionInfoV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: &mut DHCP_OPTION) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpSetOptionInfoV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, optioninfo: *mut DHCP_OPTION) -> u32; + } + DhcpSetOptionInfoV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(optioninfo)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpSetOptionInfoV6<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, optioninfo: &mut DHCP_OPTION) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1848,6 +1784,20 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpSetOptionValueV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO, optionvalue: &mut DHCP_OPTION_DATA) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpSetOptionValueV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, optionid: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalue: *mut DHCP_OPTION_DATA) -> u32; + } + DhcpSetOptionValueV5(serveripaddress.into(), flags, optionid, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(optionvalue)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpSetOptionValueV6<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, optionid: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO6, optionvalue: &mut DHCP_OPTION_DATA) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1872,6 +1822,20 @@ where } DhcpSetOptionValues(serveripaddress.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(optionvalues)) } +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] +pub unsafe fn DhcpSetOptionValuesV5<'a, P0, P1, P2>(serveripaddress: P0, flags: u32, classname: P1, vendorname: P2, scopeinfo: &mut DHCP_OPTION_SCOPE_INFO, optionvalues: &mut DHCP_OPTION_VALUE_ARRAY) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpSetOptionValuesV5(serveripaddress: ::windows::core::PCWSTR, flags: u32, classname: ::windows::core::PCWSTR, vendorname: ::windows::core::PCWSTR, scopeinfo: *mut DHCP_OPTION_SCOPE_INFO, optionvalues: *mut DHCP_OPTION_VALUE_ARRAY) -> u32; + } + DhcpSetOptionValuesV5(serveripaddress.into(), flags, classname.into(), vendorname.into(), ::core::mem::transmute(scopeinfo), ::core::mem::transmute(optionvalues)) +} #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -1924,6 +1888,18 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] +pub unsafe fn DhcpSetSubnetInfoV6<'a, P0>(serveripaddress: P0, subnetaddress: DHCP_IPV6_ADDRESS, subnetinfo: &mut DHCP_SUBNET_INFO_V6) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpSetSubnetInfoV6(serveripaddress: ::windows::core::PCWSTR, subnetaddress: DHCP_IPV6_ADDRESS, subnetinfo: *mut DHCP_SUBNET_INFO_V6) -> u32; + } + DhcpSetSubnetInfoV6(serveripaddress.into(), ::core::mem::transmute(subnetaddress), ::core::mem::transmute(subnetinfo)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] pub unsafe fn DhcpSetSubnetInfoVQ<'a, P0>(serveripaddress: P0, subnetaddress: u32, subnetinfo: &DHCP_SUBNET_INFO_VQ) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -1934,6 +1910,30 @@ where } DhcpSetSubnetInfoVQ(serveripaddress.into(), subnetaddress, ::core::mem::transmute(subnetinfo)) } +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn DhcpSetSuperScopeV4<'a, P0, P1, P2>(serveripaddress: P0, subnetaddress: u32, superscopename: P1, changeexisting: P2) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpSetSuperScopeV4(serveripaddress: ::windows::core::PCWSTR, subnetaddress: u32, superscopename: ::windows::core::PCWSTR, changeexisting: super::super::Foundation::BOOL) -> u32; + } + DhcpSetSuperScopeV4(serveripaddress.into(), subnetaddress, superscopename.into(), changeexisting.into()) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] +#[inline] +pub unsafe fn DhcpSetThreadOptions(flags: u32, reserved: *mut ::core::ffi::c_void) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DhcpSetThreadOptions(flags: u32, reserved: *mut ::core::ffi::c_void) -> u32; + } + DhcpSetThreadOptions(flags, ::core::mem::transmute(reserved)) +} #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`*"] #[inline] pub unsafe fn DhcpUndoRequestParams<'a, P0, P1>(flags: u32, reserved: *mut ::core::ffi::c_void, adaptername: P0, requestidstr: P1) -> u32 @@ -8444,103 +8444,6 @@ impl ::core::default::Default for DHCP_SERVER_CONFIG_INFO_VQ { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[cfg(feature = "Win32_Foundation")] -pub struct DHCP_SERVER_OPTIONS { - pub MessageType: *mut u8, - pub SubnetMask: *mut u32, - pub RequestedAddress: *mut u32, - pub RequestLeaseTime: *mut u32, - pub OverlayFields: *mut u8, - pub RouterAddress: *mut u32, - pub Server: *mut u32, - pub ParameterRequestList: *mut u8, - pub ParameterRequestListLength: u32, - pub MachineName: ::windows::core::PSTR, - pub MachineNameLength: u32, - pub ClientHardwareAddressType: u8, - pub ClientHardwareAddressLength: u8, - pub ClientHardwareAddress: *mut u8, - pub ClassIdentifier: ::windows::core::PSTR, - pub ClassIdentifierLength: u32, - pub VendorClass: *mut u8, - pub VendorClassLength: u32, - pub DNSFlags: u32, - pub DNSNameLength: u32, - pub DNSName: *mut u8, - pub DSDomainNameRequested: super::super::Foundation::BOOLEAN, - pub DSDomainName: ::windows::core::PSTR, - pub DSDomainNameLen: u32, - pub ScopeId: *mut u32, -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for DHCP_SERVER_OPTIONS {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for DHCP_SERVER_OPTIONS { - fn clone(&self) -> Self { - *self - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for DHCP_SERVER_OPTIONS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("DHCP_SERVER_OPTIONS") - .field("MessageType", &self.MessageType) - .field("SubnetMask", &self.SubnetMask) - .field("RequestedAddress", &self.RequestedAddress) - .field("RequestLeaseTime", &self.RequestLeaseTime) - .field("OverlayFields", &self.OverlayFields) - .field("RouterAddress", &self.RouterAddress) - .field("Server", &self.Server) - .field("ParameterRequestList", &self.ParameterRequestList) - .field("ParameterRequestListLength", &self.ParameterRequestListLength) - .field("MachineName", &self.MachineName) - .field("MachineNameLength", &self.MachineNameLength) - .field("ClientHardwareAddressType", &self.ClientHardwareAddressType) - .field("ClientHardwareAddressLength", &self.ClientHardwareAddressLength) - .field("ClientHardwareAddress", &self.ClientHardwareAddress) - .field("ClassIdentifier", &self.ClassIdentifier) - .field("ClassIdentifierLength", &self.ClassIdentifierLength) - .field("VendorClass", &self.VendorClass) - .field("VendorClassLength", &self.VendorClassLength) - .field("DNSFlags", &self.DNSFlags) - .field("DNSNameLength", &self.DNSNameLength) - .field("DNSName", &self.DNSName) - .field("DSDomainNameRequested", &self.DSDomainNameRequested) - .field("DSDomainName", &self.DSDomainName) - .field("DSDomainNameLen", &self.DSDomainNameLen) - .field("ScopeId", &self.ScopeId) - .finish() - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for DHCP_SERVER_OPTIONS { - type Abi = Self; -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for DHCP_SERVER_OPTIONS { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for DHCP_SERVER_OPTIONS {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for DHCP_SERVER_OPTIONS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"] -#[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] pub struct DHCP_SERVER_OPTIONS { pub MessageType: *mut u8, @@ -8569,17 +8472,14 @@ pub struct DHCP_SERVER_OPTIONS { pub DSDomainNameLen: u32, pub ScopeId: *mut u32, } -#[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for DHCP_SERVER_OPTIONS {} -#[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for DHCP_SERVER_OPTIONS { fn clone(&self) -> Self { *self } } -#[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for DHCP_SERVER_OPTIONS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { @@ -8612,22 +8512,18 @@ impl ::core::fmt::Debug for DHCP_SERVER_OPTIONS { .finish() } } -#[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for DHCP_SERVER_OPTIONS { type Abi = Self; } -#[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for DHCP_SERVER_OPTIONS { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for DHCP_SERVER_OPTIONS {} -#[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for DHCP_SERVER_OPTIONS { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs index 19afa58eef..d97160bc7f 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs @@ -1,8 +1,36 @@ #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] #[inline] +pub unsafe fn DnsAcquireContextHandle_A(credentialflags: u32, credentials: *const ::core::ffi::c_void, pcontext: &mut DnsContextHandle) -> i32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DnsAcquireContextHandle_A(credentialflags: u32, credentials: *const ::core::ffi::c_void, pcontext: *mut DnsContextHandle) -> i32; + } + DnsAcquireContextHandle_A(credentialflags, ::core::mem::transmute(credentials), ::core::mem::transmute(pcontext)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] +#[inline] +pub unsafe fn DnsAcquireContextHandle_W(credentialflags: u32, credentials: *const ::core::ffi::c_void, pcontext: &mut DnsContextHandle) -> i32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DnsAcquireContextHandle_W(credentialflags: u32, credentials: *const ::core::ffi::c_void, pcontext: *mut DnsContextHandle) -> i32; + } + DnsAcquireContextHandle_W(credentialflags, ::core::mem::transmute(credentials), ::core::mem::transmute(pcontext)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn DnsCancelQuery(pcancelhandle: &DNS_QUERY_CANCEL) -> i32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DnsCancelQuery(pcancelhandle: *const DNS_QUERY_CANCEL) -> i32; + } + DnsCancelQuery(::core::mem::transmute(pcancelhandle)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] +#[inline] pub unsafe fn DnsConnectionDeletePolicyEntries(policyentrytag: DNS_CONNECTION_POLICY_TAG) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn DnsConnectionDeletePolicyEntries(policyentrytag: DNS_CONNECTION_POLICY_TAG) -> u32; } DnsConnectionDeletePolicyEntries(policyentrytag) @@ -14,7 +42,7 @@ where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn DnsConnectionDeleteProxyInfo(pwszconnectionname: ::windows::core::PCWSTR, r#type: DNS_CONNECTION_PROXY_TYPE) -> u32; } DnsConnectionDeleteProxyInfo(pwszconnectionname.into(), r#type) @@ -23,7 +51,7 @@ where #[inline] pub unsafe fn DnsConnectionFreeNameList(pnamelist: &mut DNS_CONNECTION_NAME_LIST) { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn DnsConnectionFreeNameList(pnamelist: *mut DNS_CONNECTION_NAME_LIST); } DnsConnectionFreeNameList(::core::mem::transmute(pnamelist)) @@ -32,7 +60,7 @@ pub unsafe fn DnsConnectionFreeNameList(pnamelist: &mut DNS_CONNECTION_NAME_LIST #[inline] pub unsafe fn DnsConnectionFreeProxyInfo(pproxyinfo: &mut DNS_CONNECTION_PROXY_INFO) { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn DnsConnectionFreeProxyInfo(pproxyinfo: *mut DNS_CONNECTION_PROXY_INFO); } DnsConnectionFreeProxyInfo(::core::mem::transmute(pproxyinfo)) @@ -42,7 +70,7 @@ pub unsafe fn DnsConnectionFreeProxyInfo(pproxyinfo: &mut DNS_CONNECTION_PROXY_I #[inline] pub unsafe fn DnsConnectionFreeProxyInfoEx(pproxyinfoex: &mut DNS_CONNECTION_PROXY_INFO_EX) { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn DnsConnectionFreeProxyInfoEx(pproxyinfoex: *mut DNS_CONNECTION_PROXY_INFO_EX); } DnsConnectionFreeProxyInfoEx(::core::mem::transmute(pproxyinfoex)) @@ -51,7 +79,7 @@ pub unsafe fn DnsConnectionFreeProxyInfoEx(pproxyinfoex: &mut DNS_CONNECTION_PRO #[inline] pub unsafe fn DnsConnectionFreeProxyList(pproxylist: &mut DNS_CONNECTION_PROXY_LIST) { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn DnsConnectionFreeProxyList(pproxylist: *mut DNS_CONNECTION_PROXY_LIST); } DnsConnectionFreeProxyList(::core::mem::transmute(pproxylist)) @@ -60,7 +88,7 @@ pub unsafe fn DnsConnectionFreeProxyList(pproxylist: &mut DNS_CONNECTION_PROXY_L #[inline] pub unsafe fn DnsConnectionGetNameList(pnamelist: &mut DNS_CONNECTION_NAME_LIST) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn DnsConnectionGetNameList(pnamelist: *mut DNS_CONNECTION_NAME_LIST) -> u32; } DnsConnectionGetNameList(::core::mem::transmute(pnamelist)) @@ -72,7 +100,7 @@ where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn DnsConnectionGetProxyInfo(pwszconnectionname: ::windows::core::PCWSTR, r#type: DNS_CONNECTION_PROXY_TYPE, pproxyinfo: *mut DNS_CONNECTION_PROXY_INFO) -> u32; } DnsConnectionGetProxyInfo(pwszconnectionname.into(), r#type, ::core::mem::transmute(pproxyinfo)) @@ -85,7 +113,7 @@ where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn DnsConnectionGetProxyInfoForHostUrl(pwszhosturl: ::windows::core::PCWSTR, pselectioncontext: *const u8, dwselectioncontextlength: u32, dwexplicitinterfaceindex: u32, pproxyinfoex: *mut DNS_CONNECTION_PROXY_INFO_EX) -> u32; } DnsConnectionGetProxyInfoForHostUrl(pwszhosturl.into(), ::core::mem::transmute(pselectioncontext.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pselectioncontext.as_deref().map_or(0, |slice| slice.len() as _), dwexplicitinterfaceindex, ::core::mem::transmute(pproxyinfoex)) @@ -97,7 +125,7 @@ where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn DnsConnectionGetProxyList(pwszconnectionname: ::windows::core::PCWSTR, pproxylist: *mut DNS_CONNECTION_PROXY_LIST) -> u32; } DnsConnectionGetProxyList(pwszconnectionname.into(), ::core::mem::transmute(pproxylist)) @@ -106,7 +134,7 @@ where #[inline] pub unsafe fn DnsConnectionSetPolicyEntries(policyentrytag: DNS_CONNECTION_POLICY_TAG, ppolicyentrylist: &DNS_CONNECTION_POLICY_ENTRY_LIST) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn DnsConnectionSetPolicyEntries(policyentrytag: DNS_CONNECTION_POLICY_TAG, ppolicyentrylist: *const DNS_CONNECTION_POLICY_ENTRY_LIST) -> u32; } DnsConnectionSetPolicyEntries(policyentrytag, ::core::mem::transmute(ppolicyentrylist)) @@ -118,7 +146,7 @@ where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn DnsConnectionSetProxyInfo(pwszconnectionname: ::windows::core::PCWSTR, r#type: DNS_CONNECTION_PROXY_TYPE, pproxyinfo: *const DNS_CONNECTION_PROXY_INFO) -> u32; } DnsConnectionSetProxyInfo(pwszconnectionname.into(), r#type, ::core::mem::transmute(pproxyinfo)) @@ -127,7 +155,7 @@ where #[inline] pub unsafe fn DnsConnectionUpdateIfIndexTable(pconnectionifindexentries: &DNS_CONNECTION_IFINDEX_LIST) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn DnsConnectionUpdateIfIndexTable(pconnectionifindexentries: *const DNS_CONNECTION_IFINDEX_LIST) -> u32; } DnsConnectionUpdateIfIndexTable(::core::mem::transmute(pconnectionifindexentries)) @@ -135,110 +163,6 @@ pub unsafe fn DnsConnectionUpdateIfIndexTable(pconnectionifindexentries: &DNS_CO #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn DnsFreeCustomServers(pcservers: &mut u32, ppservers: &mut *mut DNS_CUSTOM_SERVER) { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DnsFreeCustomServers(pcservers: *mut u32, ppservers: *mut *mut DNS_CUSTOM_SERVER); - } - DnsFreeCustomServers(::core::mem::transmute(pcservers), ::core::mem::transmute(ppservers)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DnsGetApplicationSettings(pcservers: &mut u32, ppdefaultservers: &mut *mut DNS_CUSTOM_SERVER, psettings: ::core::option::Option<&mut DNS_APPLICATION_SETTINGS>) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DnsGetApplicationSettings(pcservers: *mut u32, ppdefaultservers: *mut *mut DNS_CUSTOM_SERVER, psettings: *mut DNS_APPLICATION_SETTINGS) -> u32; - } - DnsGetApplicationSettings(::core::mem::transmute(pcservers), ::core::mem::transmute(ppdefaultservers), ::core::mem::transmute(psettings)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DnsRecordSetDetach(precordlist: &mut DNS_RECORDA) -> *mut DNS_RECORDA { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DnsRecordSetDetach(precordlist: *mut DNS_RECORDA) -> *mut DNS_RECORDA; - } - DnsRecordSetDetach(::core::mem::transmute(precordlist)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DnsSetApplicationSettings(pservers: &[DNS_CUSTOM_SERVER], psettings: ::core::option::Option<&DNS_APPLICATION_SETTINGS>) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DnsSetApplicationSettings(cservers: u32, pservers: *const DNS_CUSTOM_SERVER, psettings: *const DNS_APPLICATION_SETTINGS) -> u32; - } - DnsSetApplicationSettings(pservers.len() as _, ::core::mem::transmute(pservers.as_ptr()), ::core::mem::transmute(psettings)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] -#[inline] -pub unsafe fn DnsValidateName_A<'a, P0>(pszname: P0, format: DNS_NAME_FORMAT) -> i32 -where - P0: ::std::convert::Into<::windows::core::PCSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DnsValidateName_A(pszname: ::windows::core::PCSTR, format: DNS_NAME_FORMAT) -> i32; - } - DnsValidateName_A(pszname.into(), format) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] -#[inline] -pub unsafe fn DnsValidateName_UTF8<'a, P0>(pszname: P0, format: DNS_NAME_FORMAT) -> i32 -where - P0: ::std::convert::Into<::windows::core::PCSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DnsValidateName_UTF8(pszname: ::windows::core::PCSTR, format: DNS_NAME_FORMAT) -> i32; - } - DnsValidateName_UTF8(pszname.into(), format) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] -#[inline] -pub unsafe fn DnsValidateName_W<'a, P0>(pszname: P0, format: DNS_NAME_FORMAT) -> i32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DnsValidateName_W(pszname: ::windows::core::PCWSTR, format: DNS_NAME_FORMAT) -> i32; - } - DnsValidateName_W(pszname.into(), format) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] -#[inline] -pub unsafe fn DnsAcquireContextHandle_A(credentialflags: u32, credentials: *const ::core::ffi::c_void, pcontext: &mut DnsContextHandle) -> i32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "system" { - fn DnsAcquireContextHandle_A(credentialflags: u32, credentials: *const ::core::ffi::c_void, pcontext: *mut DnsContextHandle) -> i32; - } - DnsAcquireContextHandle_A(credentialflags, ::core::mem::transmute(credentials), ::core::mem::transmute(pcontext)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] -#[inline] -pub unsafe fn DnsAcquireContextHandle_W(credentialflags: u32, credentials: *const ::core::ffi::c_void, pcontext: &mut DnsContextHandle) -> i32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "system" { - fn DnsAcquireContextHandle_W(credentialflags: u32, credentials: *const ::core::ffi::c_void, pcontext: *mut DnsContextHandle) -> i32; - } - DnsAcquireContextHandle_W(credentialflags, ::core::mem::transmute(credentials), ::core::mem::transmute(pcontext)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DnsCancelQuery(pcancelhandle: &DNS_QUERY_CANCEL) -> i32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "system" { - fn DnsCancelQuery(pcancelhandle: *const DNS_QUERY_CANCEL) -> i32; - } - DnsCancelQuery(::core::mem::transmute(pcancelhandle)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] pub unsafe fn DnsExtractRecordsFromMessage_UTF8(pdnsbuffer: &DNS_MESSAGE_BUFFER, wmessagelength: u16, pprecord: &mut *mut DNS_RECORDA) -> i32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -265,6 +189,16 @@ pub unsafe fn DnsFree(pdata: *const ::core::ffi::c_void, freetype: DNS_FREE_TYPE } DnsFree(::core::mem::transmute(pdata), freetype) } +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn DnsFreeCustomServers(pcservers: &mut u32, ppservers: &mut *mut DNS_CUSTOM_SERVER) { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DnsFreeCustomServers(pcservers: *mut u32, ppservers: *mut *mut DNS_CUSTOM_SERVER); + } + DnsFreeCustomServers(::core::mem::transmute(pcservers), ::core::mem::transmute(ppservers)) +} #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] #[inline] pub unsafe fn DnsFreeProxyName(proxyname: ::windows::core::PCWSTR) { @@ -274,6 +208,16 @@ pub unsafe fn DnsFreeProxyName(proxyname: ::windows::core::PCWSTR) { } DnsFreeProxyName(::core::mem::transmute(proxyname)) } +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn DnsGetApplicationSettings(pcservers: &mut u32, ppdefaultservers: &mut *mut DNS_CUSTOM_SERVER, psettings: ::core::option::Option<&mut DNS_APPLICATION_SETTINGS>) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DnsGetApplicationSettings(pcservers: *mut u32, ppdefaultservers: *mut *mut DNS_CUSTOM_SERVER, psettings: *mut DNS_APPLICATION_SETTINGS) -> u32; + } + DnsGetApplicationSettings(::core::mem::transmute(pcservers), ::core::mem::transmute(ppdefaultservers), ::core::mem::transmute(psettings)) +} #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] #[inline] pub unsafe fn DnsGetProxyInformation<'a, P0>(hostname: P0, proxyinformation: &mut DNS_PROXY_INFORMATION, defaultproxyinformation: ::core::option::Option<&mut DNS_PROXY_INFORMATION>, completionroutine: DNS_PROXY_COMPLETION_ROUTINE, completioncontext: *const ::core::ffi::c_void) -> u32 @@ -457,6 +401,16 @@ pub unsafe fn DnsRecordSetCopyEx(precordset: &DNS_RECORDA, charsetin: DNS_CHARSE #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn DnsRecordSetDetach(precordlist: &mut DNS_RECORDA) -> *mut DNS_RECORDA { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DnsRecordSetDetach(precordlist: *mut DNS_RECORDA) -> *mut DNS_RECORDA; + } + DnsRecordSetDetach(::core::mem::transmute(precordlist)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn DnsReleaseContextHandle<'a, P0>(hcontext: P0) where P0: ::std::convert::Into, @@ -606,6 +560,16 @@ pub unsafe fn DnsServiceResolveCancel(pcancelhandle: &DNS_SERVICE_CANCEL) -> i32 #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn DnsSetApplicationSettings(pservers: &[DNS_CUSTOM_SERVER], psettings: ::core::option::Option<&DNS_APPLICATION_SETTINGS>) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DnsSetApplicationSettings(cservers: u32, pservers: *const DNS_CUSTOM_SERVER, psettings: *const DNS_APPLICATION_SETTINGS) -> u32; + } + DnsSetApplicationSettings(pservers.len() as _, ::core::mem::transmute(pservers.as_ptr()), ::core::mem::transmute(psettings)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn DnsStartMulticastQuery(pqueryrequest: &MDNS_QUERY_REQUEST, phandle: &mut MDNS_QUERY_HANDLE) -> i32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -622,6 +586,42 @@ pub unsafe fn DnsStopMulticastQuery(phandle: &mut MDNS_QUERY_HANDLE) -> i32 { } DnsStopMulticastQuery(::core::mem::transmute(phandle)) } +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] +#[inline] +pub unsafe fn DnsValidateName_A<'a, P0>(pszname: P0, format: DNS_NAME_FORMAT) -> i32 +where + P0: ::std::convert::Into<::windows::core::PCSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DnsValidateName_A(pszname: ::windows::core::PCSTR, format: DNS_NAME_FORMAT) -> i32; + } + DnsValidateName_A(pszname.into(), format) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] +#[inline] +pub unsafe fn DnsValidateName_UTF8<'a, P0>(pszname: P0, format: DNS_NAME_FORMAT) -> i32 +where + P0: ::std::convert::Into<::windows::core::PCSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DnsValidateName_UTF8(pszname: ::windows::core::PCSTR, format: DNS_NAME_FORMAT) -> i32; + } + DnsValidateName_UTF8(pszname.into(), format) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] +#[inline] +pub unsafe fn DnsValidateName_W<'a, P0>(pszname: P0, format: DNS_NAME_FORMAT) -> i32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DnsValidateName_W(pszname: ::windows::core::PCWSTR, format: DNS_NAME_FORMAT) -> i32; + } + DnsValidateName_W(pszname.into(), format) +} #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -3712,6 +3712,112 @@ impl ::core::default::Default for DNS_RECORD_FLAGS { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] +pub struct DNS_RECORD_OPTW { + pub pNext: *mut DNS_RECORDW, + pub pName: ::windows::core::PWSTR, + pub wType: u16, + pub wDataLength: u16, + pub Flags: DNS_RECORD_OPTW_1, + pub ExtHeader: DNS_HEADER_EXT, + pub wPayloadSize: u16, + pub wReserved: u16, + pub Data: DNS_RECORD_OPTW_0, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for DNS_RECORD_OPTW {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for DNS_RECORD_OPTW { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for DNS_RECORD_OPTW { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for DNS_RECORD_OPTW { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for DNS_RECORD_OPTW {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for DNS_RECORD_OPTW { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub union DNS_RECORD_OPTW_0 { + pub OPT: DNS_OPT_DATA, + pub Opt: DNS_OPT_DATA, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for DNS_RECORD_OPTW_0 {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for DNS_RECORD_OPTW_0 { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for DNS_RECORD_OPTW_0 { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for DNS_RECORD_OPTW_0 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for DNS_RECORD_OPTW_0 {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for DNS_RECORD_OPTW_0 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub union DNS_RECORD_OPTW_1 { + pub DW: u32, + pub S: DNS_RECORD_FLAGS, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for DNS_RECORD_OPTW_1 {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for DNS_RECORD_OPTW_1 { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for DNS_RECORD_OPTW_1 { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for DNS_RECORD_OPTW_1 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for DNS_RECORD_OPTW_1 {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for DNS_RECORD_OPTW_1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct DNS_RRSET { pub pFirstRR: *mut DNS_RECORDA, pub pLastRR: *mut DNS_RECORDA, @@ -5064,112 +5170,6 @@ impl ::core::default::Default for _DnsRecordOptA_1 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct _DnsRecordOptW { - pub pNext: *mut DNS_RECORDW, - pub pName: ::windows::core::PWSTR, - pub wType: u16, - pub wDataLength: u16, - pub Flags: _DnsRecordOptW_1, - pub ExtHeader: DNS_HEADER_EXT, - pub wPayloadSize: u16, - pub wReserved: u16, - pub Data: _DnsRecordOptW_0, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _DnsRecordOptW {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _DnsRecordOptW { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for _DnsRecordOptW { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for _DnsRecordOptW { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_DnsRecordOptW>()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for _DnsRecordOptW {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for _DnsRecordOptW { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub union _DnsRecordOptW_0 { - pub OPT: DNS_OPT_DATA, - pub Opt: DNS_OPT_DATA, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _DnsRecordOptW_0 {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _DnsRecordOptW_0 { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for _DnsRecordOptW_0 { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for _DnsRecordOptW_0 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_DnsRecordOptW_0>()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for _DnsRecordOptW_0 {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for _DnsRecordOptW_0 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub union _DnsRecordOptW_1 { - pub DW: u32, - pub S: DNS_RECORD_FLAGS, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _DnsRecordOptW_1 {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _DnsRecordOptW_1 { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for _DnsRecordOptW_1 { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for _DnsRecordOptW_1 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_DnsRecordOptW_1>()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for _DnsRecordOptW_1 {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for _DnsRecordOptW_1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"] pub type DNS_PROXY_COMPLETION_ROUTINE = ::core::option::Option; #[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`, `\"Win32_Foundation\"`*"] 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 6b219dc1a3..6be20bd30f 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs @@ -1,14 +1,5 @@ #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] #[inline] -pub unsafe fn GetOwnerModuleFromPidAndInfo(ulpid: u32, pinfo: &u64, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut ::core::ffi::c_void, pdwsize: &mut u32) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn GetOwnerModuleFromPidAndInfo(ulpid: u32, pinfo: *const u64, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut ::core::ffi::c_void, pdwsize: *mut u32) -> u32; - } - GetOwnerModuleFromPidAndInfo(ulpid, ::core::mem::transmute(pinfo), class, ::core::mem::transmute(pbuffer), ::core::mem::transmute(pdwsize)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -#[inline] pub unsafe fn AddIPAddress(address: u32, ipmask: u32, ifindex: u32, ntecontext: &mut u32, nteinstance: &mut u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -1017,6 +1008,15 @@ pub unsafe fn GetNumberOfInterfaces(pdwnumif: &mut u32) -> u32 { } #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] #[inline] +pub unsafe fn GetOwnerModuleFromPidAndInfo(ulpid: u32, pinfo: &u64, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut ::core::ffi::c_void, pdwsize: &mut u32) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn GetOwnerModuleFromPidAndInfo(ulpid: u32, pinfo: *const u64, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut ::core::ffi::c_void, pdwsize: *mut u32) -> u32; + } + GetOwnerModuleFromPidAndInfo(ulpid, ::core::mem::transmute(pinfo), class, ::core::mem::transmute(pbuffer), ::core::mem::transmute(pdwsize)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +#[inline] pub unsafe fn GetOwnerModuleFromTcp6Entry(ptcpentry: &MIB_TCP6ROW_OWNER_MODULE, class: TCPIP_OWNER_MODULE_INFO_CLASS, pbuffer: *mut ::core::ffi::c_void, pdwsize: &mut u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -1320,14 +1320,14 @@ pub unsafe fn Icmp6ParseReplies(replybuffer: &mut [u8]) -> u32 { #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`, `\"Win32_Foundation\"`, `\"Win32_Networking_WinSock\"`, `\"Win32_System_WindowsProgramming\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock", feature = "Win32_System_WindowsProgramming"))] #[inline] -pub unsafe fn Icmp6SendEcho2<'a, P0, P1>(icmphandle: P0, event: P1, apcroutine: super::super::System::WindowsProgramming::PIO_APC_ROUTINE, apccontext: *const ::core::ffi::c_void, sourceaddress: &super::super::Networking::WinSock::SOCKADDR_IN6, destinationaddress: &super::super::Networking::WinSock::SOCKADDR_IN6, requestdata: &[u8], requestoptions: ::core::option::Option<&ip_option_information>, replybuffer: &mut [u8], timeout: u32) -> u32 +pub unsafe fn Icmp6SendEcho2<'a, P0, P1>(icmphandle: P0, event: P1, apcroutine: super::super::System::WindowsProgramming::PIO_APC_ROUTINE, apccontext: *const ::core::ffi::c_void, sourceaddress: &super::super::Networking::WinSock::SOCKADDR_IN6, destinationaddress: &super::super::Networking::WinSock::SOCKADDR_IN6, requestdata: &[u8], requestoptions: ::core::option::Option<&IP_OPTION_INFORMATION>, replybuffer: &mut [u8], timeout: u32) -> u32 where P0: ::std::convert::Into, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn Icmp6SendEcho2(icmphandle: IcmpHandle, event: super::super::Foundation::HANDLE, apcroutine: *mut ::core::ffi::c_void, apccontext: *const ::core::ffi::c_void, sourceaddress: *const super::super::Networking::WinSock::SOCKADDR_IN6, destinationaddress: *const super::super::Networking::WinSock::SOCKADDR_IN6, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const ip_option_information, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; + fn Icmp6SendEcho2(icmphandle: IcmpHandle, event: super::super::Foundation::HANDLE, apcroutine: *mut ::core::ffi::c_void, apccontext: *const ::core::ffi::c_void, sourceaddress: *const super::super::Networking::WinSock::SOCKADDR_IN6, destinationaddress: *const super::super::Networking::WinSock::SOCKADDR_IN6, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const IP_OPTION_INFORMATION, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; } Icmp6SendEcho2(icmphandle.into(), event.into(), ::core::mem::transmute(apcroutine), ::core::mem::transmute(apccontext), ::core::mem::transmute(sourceaddress), ::core::mem::transmute(destinationaddress), ::core::mem::transmute(requestdata.as_ptr()), requestdata.len() as _, ::core::mem::transmute(requestoptions), ::core::mem::transmute(replybuffer.as_ptr()), replybuffer.len() as _, timeout) } @@ -1365,41 +1365,41 @@ pub unsafe fn IcmpParseReplies(replybuffer: &mut [u8]) -> u32 { } #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] #[inline] -pub unsafe fn IcmpSendEcho<'a, P0>(icmphandle: P0, destinationaddress: u32, requestdata: &[u8], requestoptions: ::core::option::Option<&ip_option_information>, replybuffer: &mut [u8], timeout: u32) -> u32 +pub unsafe fn IcmpSendEcho<'a, P0>(icmphandle: P0, destinationaddress: u32, requestdata: &[u8], requestoptions: ::core::option::Option<&IP_OPTION_INFORMATION>, replybuffer: &mut [u8], timeout: u32) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn IcmpSendEcho(icmphandle: IcmpHandle, destinationaddress: u32, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const ip_option_information, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; + fn IcmpSendEcho(icmphandle: IcmpHandle, destinationaddress: u32, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const IP_OPTION_INFORMATION, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; } IcmpSendEcho(icmphandle.into(), destinationaddress, ::core::mem::transmute(requestdata.as_ptr()), requestdata.len() as _, ::core::mem::transmute(requestoptions), ::core::mem::transmute(replybuffer.as_ptr()), replybuffer.len() as _, timeout) } #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`, `\"Win32_Foundation\"`, `\"Win32_System_WindowsProgramming\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_WindowsProgramming"))] #[inline] -pub unsafe fn IcmpSendEcho2<'a, P0, P1>(icmphandle: P0, event: P1, apcroutine: super::super::System::WindowsProgramming::PIO_APC_ROUTINE, apccontext: *const ::core::ffi::c_void, destinationaddress: u32, requestdata: &[u8], requestoptions: ::core::option::Option<&ip_option_information>, replybuffer: &mut [u8], timeout: u32) -> u32 +pub unsafe fn IcmpSendEcho2<'a, P0, P1>(icmphandle: P0, event: P1, apcroutine: super::super::System::WindowsProgramming::PIO_APC_ROUTINE, apccontext: *const ::core::ffi::c_void, destinationaddress: u32, requestdata: &[u8], requestoptions: ::core::option::Option<&IP_OPTION_INFORMATION>, replybuffer: &mut [u8], timeout: u32) -> u32 where P0: ::std::convert::Into, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn IcmpSendEcho2(icmphandle: IcmpHandle, event: super::super::Foundation::HANDLE, apcroutine: *mut ::core::ffi::c_void, apccontext: *const ::core::ffi::c_void, destinationaddress: u32, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const ip_option_information, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; + fn IcmpSendEcho2(icmphandle: IcmpHandle, event: super::super::Foundation::HANDLE, apcroutine: *mut ::core::ffi::c_void, apccontext: *const ::core::ffi::c_void, destinationaddress: u32, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const IP_OPTION_INFORMATION, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; } IcmpSendEcho2(icmphandle.into(), event.into(), ::core::mem::transmute(apcroutine), ::core::mem::transmute(apccontext), destinationaddress, ::core::mem::transmute(requestdata.as_ptr()), requestdata.len() as _, ::core::mem::transmute(requestoptions), ::core::mem::transmute(replybuffer.as_ptr()), replybuffer.len() as _, timeout) } #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`, `\"Win32_Foundation\"`, `\"Win32_System_WindowsProgramming\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_WindowsProgramming"))] #[inline] -pub unsafe fn IcmpSendEcho2Ex<'a, P0, P1>(icmphandle: P0, event: P1, apcroutine: super::super::System::WindowsProgramming::PIO_APC_ROUTINE, apccontext: *const ::core::ffi::c_void, sourceaddress: u32, destinationaddress: u32, requestdata: &[u8], requestoptions: ::core::option::Option<&ip_option_information>, replybuffer: &mut [u8], timeout: u32) -> u32 +pub unsafe fn IcmpSendEcho2Ex<'a, P0, P1>(icmphandle: P0, event: P1, apcroutine: super::super::System::WindowsProgramming::PIO_APC_ROUTINE, apccontext: *const ::core::ffi::c_void, sourceaddress: u32, destinationaddress: u32, requestdata: &[u8], requestoptions: ::core::option::Option<&IP_OPTION_INFORMATION>, replybuffer: &mut [u8], timeout: u32) -> u32 where P0: ::std::convert::Into, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn IcmpSendEcho2Ex(icmphandle: IcmpHandle, event: super::super::Foundation::HANDLE, apcroutine: *mut ::core::ffi::c_void, apccontext: *const ::core::ffi::c_void, sourceaddress: u32, destinationaddress: u32, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const ip_option_information, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; + fn IcmpSendEcho2Ex(icmphandle: IcmpHandle, event: super::super::Foundation::HANDLE, apcroutine: *mut ::core::ffi::c_void, apccontext: *const ::core::ffi::c_void, sourceaddress: u32, destinationaddress: u32, requestdata: *const ::core::ffi::c_void, requestsize: u16, requestoptions: *const IP_OPTION_INFORMATION, replybuffer: *mut ::core::ffi::c_void, replysize: u32, timeout: u32) -> u32; } IcmpSendEcho2Ex(icmphandle.into(), event.into(), ::core::mem::transmute(apcroutine), ::core::mem::transmute(apccontext), sourceaddress, destinationaddress, ::core::mem::transmute(requestdata.as_ptr()), requestdata.len() as _, ::core::mem::transmute(requestoptions), ::core::mem::transmute(replybuffer.as_ptr()), replybuffer.len() as _, timeout) } @@ -1472,14 +1472,14 @@ pub unsafe fn LookupPersistentUdpPortReservation(startport: u16, numberofports: #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn NhpAllocateAndGetInterfaceInfoFromStack<'a, P0, P1>(pptable: &mut *mut ip_interface_name_info_w2ksp1, pdwcount: &mut u32, border: P0, hheap: P1, dwflags: u32) -> u32 +pub unsafe fn NhpAllocateAndGetInterfaceInfoFromStack<'a, P0, P1>(pptable: &mut *mut IP_INTERFACE_NAME_INFO_W2KSP1, pdwcount: &mut u32, border: P0, hheap: P1, dwflags: u32) -> u32 where P0: ::std::convert::Into, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn NhpAllocateAndGetInterfaceInfoFromStack(pptable: *mut *mut ip_interface_name_info_w2ksp1, pdwcount: *mut u32, border: super::super::Foundation::BOOL, hheap: super::super::Foundation::HANDLE, dwflags: u32) -> u32; + fn NhpAllocateAndGetInterfaceInfoFromStack(pptable: *mut *mut IP_INTERFACE_NAME_INFO_W2KSP1, pdwcount: *mut u32, border: super::super::Foundation::BOOL, hheap: super::super::Foundation::HANDLE, dwflags: u32) -> u32; } NhpAllocateAndGetInterfaceInfoFromStack(::core::mem::transmute(pptable), ::core::mem::transmute(pdwcount), border.into(), hheap.into(), dwflags) } @@ -3839,6 +3839,37 @@ impl ::core::fmt::Debug for UDP_TABLE_CLASS { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +pub struct ARP_SEND_REPLY { + pub DestAddress: u32, + pub SrcAddress: u32, +} +impl ::core::marker::Copy for ARP_SEND_REPLY {} +impl ::core::clone::Clone for ARP_SEND_REPLY { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for ARP_SEND_REPLY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("ARP_SEND_REPLY").field("DestAddress", &self.DestAddress).field("SrcAddress", &self.SrcAddress).finish() + } +} +unsafe impl ::windows::core::Abi for ARP_SEND_REPLY { + type Abi = Self; +} +impl ::core::cmp::PartialEq for ARP_SEND_REPLY { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for ARP_SEND_REPLY {} +impl ::core::default::Default for ARP_SEND_REPLY { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] pub struct DNS_DOH_SERVER_SETTINGS { pub Template: ::windows::core::PWSTR, pub Flags: u64, @@ -4203,6 +4234,113 @@ unsafe impl ::windows::core::Abi for HIFTIMESTAMPCHANGE { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +pub struct ICMPV6_ECHO_REPLY_LH { + pub Address: IPV6_ADDRESS_EX, + pub Status: u32, + pub RoundTripTime: u32, +} +impl ::core::marker::Copy for ICMPV6_ECHO_REPLY_LH {} +impl ::core::clone::Clone for ICMPV6_ECHO_REPLY_LH { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for ICMPV6_ECHO_REPLY_LH { + type Abi = Self; +} +impl ::core::cmp::PartialEq for ICMPV6_ECHO_REPLY_LH { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for ICMPV6_ECHO_REPLY_LH {} +impl ::core::default::Default for ICMPV6_ECHO_REPLY_LH { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +pub struct ICMP_ECHO_REPLY { + pub Address: u32, + pub Status: u32, + pub RoundTripTime: u32, + pub DataSize: u16, + pub Reserved: u16, + pub Data: *mut ::core::ffi::c_void, + pub Options: IP_OPTION_INFORMATION, +} +impl ::core::marker::Copy for ICMP_ECHO_REPLY {} +impl ::core::clone::Clone for ICMP_ECHO_REPLY { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for ICMP_ECHO_REPLY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("ICMP_ECHO_REPLY").field("Address", &self.Address).field("Status", &self.Status).field("RoundTripTime", &self.RoundTripTime).field("DataSize", &self.DataSize).field("Reserved", &self.Reserved).field("Data", &self.Data).field("Options", &self.Options).finish() + } +} +unsafe impl ::windows::core::Abi for ICMP_ECHO_REPLY { + type Abi = Self; +} +impl ::core::cmp::PartialEq for ICMP_ECHO_REPLY { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for ICMP_ECHO_REPLY {} +impl ::core::default::Default for ICMP_ECHO_REPLY { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub struct ICMP_ECHO_REPLY32 { + pub Address: u32, + pub Status: u32, + pub RoundTripTime: u32, + pub DataSize: u16, + pub Reserved: u16, + pub Data: *mut ::core::ffi::c_void, + pub Options: IP_OPTION_INFORMATION32, +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::marker::Copy for ICMP_ECHO_REPLY32 {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::clone::Clone for ICMP_ECHO_REPLY32 { + fn clone(&self) -> Self { + *self + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::fmt::Debug for ICMP_ECHO_REPLY32 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("ICMP_ECHO_REPLY32").field("Address", &self.Address).field("Status", &self.Status).field("RoundTripTime", &self.RoundTripTime).field("DataSize", &self.DataSize).field("Reserved", &self.Reserved).field("Data", &self.Data).field("Options", &self.Options).finish() + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +unsafe impl ::windows::core::Abi for ICMP_ECHO_REPLY32 { + type Abi = Self; +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::cmp::PartialEq for ICMP_ECHO_REPLY32 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::cmp::Eq for ICMP_ECHO_REPLY32 {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::default::Default for ICMP_ECHO_REPLY32 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] pub struct INTERFACE_HARDWARE_CROSSTIMESTAMP { pub SystemTimestamp1: u64, pub HardwareClockTimestamp: u64, @@ -5908,6 +6046,41 @@ impl ::core::default::Default for IP_INTERFACE_INFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +pub struct IP_INTERFACE_NAME_INFO_W2KSP1 { + pub Index: u32, + pub MediaType: u32, + pub ConnectionType: u8, + pub AccessType: u8, + pub DeviceGuid: ::windows::core::GUID, + pub InterfaceGuid: ::windows::core::GUID, +} +impl ::core::marker::Copy for IP_INTERFACE_NAME_INFO_W2KSP1 {} +impl ::core::clone::Clone for IP_INTERFACE_NAME_INFO_W2KSP1 { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for IP_INTERFACE_NAME_INFO_W2KSP1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("IP_INTERFACE_NAME_INFO_W2KSP1").field("Index", &self.Index).field("MediaType", &self.MediaType).field("ConnectionType", &self.ConnectionType).field("AccessType", &self.AccessType).field("DeviceGuid", &self.DeviceGuid).field("InterfaceGuid", &self.InterfaceGuid).finish() + } +} +unsafe impl ::windows::core::Abi for IP_INTERFACE_NAME_INFO_W2KSP1 { + type Abi = Self; +} +impl ::core::cmp::PartialEq for IP_INTERFACE_NAME_INFO_W2KSP1 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for IP_INTERFACE_NAME_INFO_W2KSP1 {} +impl ::core::default::Default for IP_INTERFACE_NAME_INFO_W2KSP1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] pub struct IP_MCAST_COUNTER_INFO { pub InMcastOctets: u64, pub OutMcastOctets: u64, @@ -5940,6 +6113,82 @@ impl ::core::default::Default for IP_MCAST_COUNTER_INFO { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +pub struct IP_OPTION_INFORMATION { + pub Ttl: u8, + pub Tos: u8, + pub Flags: u8, + pub OptionsSize: u8, + pub OptionsData: *mut u8, +} +impl ::core::marker::Copy for IP_OPTION_INFORMATION {} +impl ::core::clone::Clone for IP_OPTION_INFORMATION { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for IP_OPTION_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("IP_OPTION_INFORMATION").field("Ttl", &self.Ttl).field("Tos", &self.Tos).field("Flags", &self.Flags).field("OptionsSize", &self.OptionsSize).field("OptionsData", &self.OptionsData).finish() + } +} +unsafe impl ::windows::core::Abi for IP_OPTION_INFORMATION { + type Abi = Self; +} +impl ::core::cmp::PartialEq for IP_OPTION_INFORMATION { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for IP_OPTION_INFORMATION {} +impl ::core::default::Default for IP_OPTION_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub struct IP_OPTION_INFORMATION32 { + pub Ttl: u8, + pub Tos: u8, + pub Flags: u8, + pub OptionsSize: u8, + pub OptionsData: *mut u8, +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::marker::Copy for IP_OPTION_INFORMATION32 {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::clone::Clone for IP_OPTION_INFORMATION32 { + fn clone(&self) -> Self { + *self + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::fmt::Debug for IP_OPTION_INFORMATION32 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("IP_OPTION_INFORMATION32").field("Ttl", &self.Ttl).field("Tos", &self.Tos).field("Flags", &self.Flags).field("OptionsSize", &self.OptionsSize).field("OptionsData", &self.OptionsData).finish() + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +unsafe impl ::windows::core::Abi for IP_OPTION_INFORMATION32 { + type Abi = Self; +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::cmp::PartialEq for IP_OPTION_INFORMATION32 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::cmp::Eq for IP_OPTION_INFORMATION32 {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::default::Default for IP_OPTION_INFORMATION32 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct IP_PER_ADAPTER_INFO_W2KSP1 { @@ -11489,280 +11738,31 @@ impl ::core::default::Default for TCP_ESTATS_SYN_OPTS_ROS_v0 { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -pub struct arp_send_reply { - pub DestAddress: u32, - pub SrcAddress: u32, -} -impl ::core::marker::Copy for arp_send_reply {} -impl ::core::clone::Clone for arp_send_reply { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for arp_send_reply { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("arp_send_reply").field("DestAddress", &self.DestAddress).field("SrcAddress", &self.SrcAddress).finish() - } -} -unsafe impl ::windows::core::Abi for arp_send_reply { - type Abi = Self; -} -impl ::core::cmp::PartialEq for arp_send_reply { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for arp_send_reply {} -impl ::core::default::Default for arp_send_reply { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -pub struct icmp_echo_reply { - pub Address: u32, - pub Status: u32, - pub RoundTripTime: u32, - pub DataSize: u16, - pub Reserved: u16, - pub Data: *mut ::core::ffi::c_void, - pub Options: ip_option_information, -} -impl ::core::marker::Copy for icmp_echo_reply {} -impl ::core::clone::Clone for icmp_echo_reply { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for icmp_echo_reply { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("icmp_echo_reply").field("Address", &self.Address).field("Status", &self.Status).field("RoundTripTime", &self.RoundTripTime).field("DataSize", &self.DataSize).field("Reserved", &self.Reserved).field("Data", &self.Data).field("Options", &self.Options).finish() - } -} -unsafe impl ::windows::core::Abi for icmp_echo_reply { - type Abi = Self; -} -impl ::core::cmp::PartialEq for icmp_echo_reply { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for icmp_echo_reply {} -impl ::core::default::Default for icmp_echo_reply { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub struct icmp_echo_reply32 { - pub Address: u32, - pub Status: u32, - pub RoundTripTime: u32, - pub DataSize: u16, - pub Reserved: u16, - pub Data: *mut ::core::ffi::c_void, - pub Options: ip_option_information32, -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::marker::Copy for icmp_echo_reply32 {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::clone::Clone for icmp_echo_reply32 { - fn clone(&self) -> Self { - *self - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::fmt::Debug for icmp_echo_reply32 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("icmp_echo_reply32").field("Address", &self.Address).field("Status", &self.Status).field("RoundTripTime", &self.RoundTripTime).field("DataSize", &self.DataSize).field("Reserved", &self.Reserved).field("Data", &self.Data).field("Options", &self.Options).finish() - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -unsafe impl ::windows::core::Abi for icmp_echo_reply32 { - type Abi = Self; -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::cmp::PartialEq for icmp_echo_reply32 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::cmp::Eq for icmp_echo_reply32 {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::default::Default for icmp_echo_reply32 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -pub struct icmpv6_echo_reply_lh { - pub Address: IPV6_ADDRESS_EX, - pub Status: u32, - pub RoundTripTime: u32, -} -impl ::core::marker::Copy for icmpv6_echo_reply_lh {} -impl ::core::clone::Clone for icmpv6_echo_reply_lh { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for icmpv6_echo_reply_lh { - type Abi = Self; -} -impl ::core::cmp::PartialEq for icmpv6_echo_reply_lh { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for icmpv6_echo_reply_lh {} -impl ::core::default::Default for icmpv6_echo_reply_lh { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -pub struct ip_interface_name_info_w2ksp1 { - pub Index: u32, - pub MediaType: u32, - pub ConnectionType: u8, - pub AccessType: u8, - pub DeviceGuid: ::windows::core::GUID, - pub InterfaceGuid: ::windows::core::GUID, -} -impl ::core::marker::Copy for ip_interface_name_info_w2ksp1 {} -impl ::core::clone::Clone for ip_interface_name_info_w2ksp1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for ip_interface_name_info_w2ksp1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ip_interface_name_info_w2ksp1").field("Index", &self.Index).field("MediaType", &self.MediaType).field("ConnectionType", &self.ConnectionType).field("AccessType", &self.AccessType).field("DeviceGuid", &self.DeviceGuid).field("InterfaceGuid", &self.InterfaceGuid).finish() - } -} -unsafe impl ::windows::core::Abi for ip_interface_name_info_w2ksp1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for ip_interface_name_info_w2ksp1 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for ip_interface_name_info_w2ksp1 {} -impl ::core::default::Default for ip_interface_name_info_w2ksp1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -pub struct ip_option_information { - pub Ttl: u8, - pub Tos: u8, - pub Flags: u8, - pub OptionsSize: u8, - pub OptionsData: *mut u8, -} -impl ::core::marker::Copy for ip_option_information {} -impl ::core::clone::Clone for ip_option_information { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for ip_option_information { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ip_option_information").field("Ttl", &self.Ttl).field("Tos", &self.Tos).field("Flags", &self.Flags).field("OptionsSize", &self.OptionsSize).field("OptionsData", &self.OptionsData).finish() - } -} -unsafe impl ::windows::core::Abi for ip_option_information { - type Abi = Self; -} -impl ::core::cmp::PartialEq for ip_option_information { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for ip_option_information {} -impl ::core::default::Default for ip_option_information { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub struct ip_option_information32 { - pub Ttl: u8, - pub Tos: u8, - pub Flags: u8, - pub OptionsSize: u8, - pub OptionsData: *mut u8, -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::marker::Copy for ip_option_information32 {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::clone::Clone for ip_option_information32 { - fn clone(&self) -> Self { - *self - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::fmt::Debug for ip_option_information32 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ip_option_information32").field("Ttl", &self.Ttl).field("Tos", &self.Tos).field("Flags", &self.Flags).field("OptionsSize", &self.OptionsSize).field("OptionsData", &self.OptionsData).finish() - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -unsafe impl ::windows::core::Abi for ip_option_information32 { - type Abi = Self; -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::cmp::PartialEq for ip_option_information32 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::cmp::Eq for ip_option_information32 {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::default::Default for ip_option_information32 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"] -pub struct tcp_reserve_port_range { +pub struct TCP_RESERVE_PORT_RANGE { pub UpperRange: u16, pub LowerRange: u16, } -impl ::core::marker::Copy for tcp_reserve_port_range {} -impl ::core::clone::Clone for tcp_reserve_port_range { +impl ::core::marker::Copy for TCP_RESERVE_PORT_RANGE {} +impl ::core::clone::Clone for TCP_RESERVE_PORT_RANGE { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for tcp_reserve_port_range { +impl ::core::fmt::Debug for TCP_RESERVE_PORT_RANGE { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tcp_reserve_port_range").field("UpperRange", &self.UpperRange).field("LowerRange", &self.LowerRange).finish() + f.debug_struct("TCP_RESERVE_PORT_RANGE").field("UpperRange", &self.UpperRange).field("LowerRange", &self.LowerRange).finish() } } -unsafe impl ::windows::core::Abi for tcp_reserve_port_range { +unsafe impl ::windows::core::Abi for TCP_RESERVE_PORT_RANGE { type Abi = Self; } -impl ::core::cmp::PartialEq for tcp_reserve_port_range { +impl ::core::cmp::PartialEq for TCP_RESERVE_PORT_RANGE { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for tcp_reserve_port_range {} -impl ::core::default::Default for tcp_reserve_port_range { +impl ::core::cmp::Eq for TCP_RESERVE_PORT_RANGE {} +impl ::core::default::Default for TCP_RESERVE_PORT_RANGE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } 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 64b90f2fb9..d13c149c54 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs @@ -1,188 +1,3 @@ -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -#[inline] -pub unsafe fn LogErrorW(dwmessageid: u32, plpwssubstrings: &[::windows::core::PWSTR], dwerrorcode: u32) { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn LogErrorW(dwmessageid: u32, cnumberofsubstrings: u32, plpwssubstrings: *const ::windows::core::PWSTR, dwerrorcode: u32); - } - LogErrorW(dwmessageid, plpwssubstrings.len() as _, ::core::mem::transmute(plpwssubstrings.as_ptr()), dwerrorcode) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -#[inline] -pub unsafe fn LogEventW(weventtype: u32, dwmessageid: u32, plpwssubstrings: &[::windows::core::PWSTR]) { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn LogEventW(weventtype: u32, dwmessageid: u32, cnumberofsubstrings: u32, plpwssubstrings: *const ::windows::core::PWSTR); - } - LogEventW(weventtype, dwmessageid, plpwssubstrings.len() as _, ::core::mem::transmute(plpwssubstrings.as_ptr())) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn NetAddServiceAccount<'a, P0, P1, P2>(servername: P0, accountname: P1, password: P2, flags: u32) -> ::windows::core::Result<()> -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn NetAddServiceAccount(servername: ::windows::core::PCWSTR, accountname: ::windows::core::PCWSTR, password: ::windows::core::PCWSTR, flags: u32) -> super::super::Foundation::NTSTATUS; - } - NetAddServiceAccount(servername.into(), accountname.into(), password.into(), flags).ok() -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn NetEnumerateServiceAccounts<'a, P0>(servername: P0, flags: u32, accountscount: &mut u32, accounts: &mut *mut *mut u16) -> ::windows::core::Result<()> -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn NetEnumerateServiceAccounts(servername: ::windows::core::PCWSTR, flags: u32, accountscount: *mut u32, accounts: *mut *mut *mut u16) -> super::super::Foundation::NTSTATUS; - } - NetEnumerateServiceAccounts(servername.into(), flags, ::core::mem::transmute(accountscount), ::core::mem::transmute(accounts)).ok() -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn NetIsServiceAccount<'a, P0, P1>(servername: P0, accountname: P1, isservice: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn NetIsServiceAccount(servername: ::windows::core::PCWSTR, accountname: ::windows::core::PCWSTR, isservice: *mut super::super::Foundation::BOOL) -> super::super::Foundation::NTSTATUS; - } - NetIsServiceAccount(servername.into(), accountname.into(), ::core::mem::transmute(isservice)).ok() -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn NetQueryServiceAccount<'a, P0, P1>(servername: P0, accountname: P1, infolevel: u32, buffer: &mut *mut u8) -> ::windows::core::Result<()> -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn NetQueryServiceAccount(servername: ::windows::core::PCWSTR, accountname: ::windows::core::PCWSTR, infolevel: u32, buffer: *mut *mut u8) -> super::super::Foundation::NTSTATUS; - } - NetQueryServiceAccount(servername.into(), accountname.into(), infolevel, ::core::mem::transmute(buffer)).ok() -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn NetRemoveServiceAccount<'a, P0, P1>(servername: P0, accountname: P1, flags: u32) -> ::windows::core::Result<()> -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn NetRemoveServiceAccount(servername: ::windows::core::PCWSTR, accountname: ::windows::core::PCWSTR, flags: u32) -> super::super::Foundation::NTSTATUS; - } - NetRemoveServiceAccount(servername.into(), accountname.into(), flags).ok() -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -#[inline] -pub unsafe fn RouterAssert<'a, P0, P1, P2>(pszfailedassertion: P0, pszfilename: P1, dwlinenumber: u32, pszmessage: P2) -where - P0: ::std::convert::Into<::windows::core::PCSTR>, - P1: ::std::convert::Into<::windows::core::PCSTR>, - P2: ::std::convert::Into<::windows::core::PCSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterAssert(pszfailedassertion: ::windows::core::PCSTR, pszfilename: ::windows::core::PCSTR, dwlinenumber: u32, pszmessage: ::windows::core::PCSTR); - } - RouterAssert(pszfailedassertion.into(), pszfilename.into(), dwlinenumber, pszmessage.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -#[inline] -pub unsafe fn RouterGetErrorStringA(dwerrorcode: u32, lplpszerrorstring: &mut ::windows::core::PSTR) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterGetErrorStringA(dwerrorcode: u32, lplpszerrorstring: *mut ::windows::core::PSTR) -> u32; - } - RouterGetErrorStringA(dwerrorcode, ::core::mem::transmute(lplpszerrorstring)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -#[inline] -pub unsafe fn RouterGetErrorStringW(dwerrorcode: u32, lplpwszerrorstring: &mut ::windows::core::PWSTR) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterGetErrorStringW(dwerrorcode: u32, lplpwszerrorstring: *mut ::windows::core::PWSTR) -> u32; - } - RouterGetErrorStringW(dwerrorcode, ::core::mem::transmute(lplpwszerrorstring)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterLogDeregisterA<'a, P0>(hloghandle: P0) -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterLogDeregisterA(hloghandle: super::super::Foundation::HANDLE); - } - RouterLogDeregisterA(hloghandle.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterLogDeregisterW<'a, P0>(hloghandle: P0) -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterLogDeregisterW(hloghandle: super::super::Foundation::HANDLE); - } - RouterLogDeregisterW(hloghandle.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterLogEventA<'a, P0>(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: ::core::option::Option<&[::windows::core::PSTR]>, dwerrorcode: u32) -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterLogEventA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows::core::PSTR, dwerrorcode: u32); - } - RouterLogEventA(hloghandle.into(), dweventtype, dwmessageid, plpszsubstringarray.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(plpszsubstringarray.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), dwerrorcode) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterLogEventDataA<'a, P0>(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: ::core::option::Option<&[::windows::core::PSTR]>, dwdatabytes: u32, lpdatabytes: &mut u8) -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterLogEventDataA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows::core::PSTR, dwdatabytes: u32, lpdatabytes: *mut u8); - } - RouterLogEventDataA(hloghandle.into(), dweventtype, dwmessageid, plpszsubstringarray.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(plpszsubstringarray.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), dwdatabytes, ::core::mem::transmute(lpdatabytes)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterLogEventDataW<'a, P0>(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: ::core::option::Option<&[::windows::core::PWSTR]>, dwdatabytes: u32, lpdatabytes: &mut u8) -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterLogEventDataW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows::core::PWSTR, dwdatabytes: u32, lpdatabytes: *mut u8); - } - RouterLogEventDataW(hloghandle.into(), dweventtype, dwmessageid, plpszsubstringarray.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(plpszsubstringarray.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), dwdatabytes, ::core::mem::transmute(lpdatabytes)) -} #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -211,99 +26,6 @@ where } RouterLogEventExW(hloghandle.into(), dweventtype, dwerrorcode, dwmessageid, ptszformat.into()) } -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterLogEventStringA<'a, P0>(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: &[::windows::core::PSTR], dwerrorcode: u32, dwerrorindex: u32) -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterLogEventStringA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows::core::PSTR, dwerrorcode: u32, dwerrorindex: u32); - } - RouterLogEventStringA(hloghandle.into(), dweventtype, dwmessageid, plpszsubstringarray.len() as _, ::core::mem::transmute(plpszsubstringarray.as_ptr()), dwerrorcode, dwerrorindex) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterLogEventStringW<'a, P0>(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: &[::windows::core::PWSTR], dwerrorcode: u32, dwerrorindex: u32) -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterLogEventStringW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows::core::PWSTR, dwerrorcode: u32, dwerrorindex: u32); - } - RouterLogEventStringW(hloghandle.into(), dweventtype, dwmessageid, plpszsubstringarray.len() as _, ::core::mem::transmute(plpszsubstringarray.as_ptr()), dwerrorcode, dwerrorindex) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterLogEventValistExA<'a, P0, P1>(hloghandle: P0, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: P1, arglist: &mut i8) -where - P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::PCSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterLogEventValistExA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: ::windows::core::PCSTR, arglist: *mut i8); - } - RouterLogEventValistExA(hloghandle.into(), dweventtype, dwerrorcode, dwmessageid, ptszformat.into(), ::core::mem::transmute(arglist)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterLogEventValistExW<'a, P0, P1>(hloghandle: P0, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: P1, arglist: &mut i8) -where - P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterLogEventValistExW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: ::windows::core::PCWSTR, arglist: *mut i8); - } - RouterLogEventValistExW(hloghandle.into(), dweventtype, dwerrorcode, dwmessageid, ptszformat.into(), ::core::mem::transmute(arglist)) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterLogEventW<'a, P0>(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: ::core::option::Option<&[::windows::core::PWSTR]>, dwerrorcode: u32) -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterLogEventW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows::core::PWSTR, dwerrorcode: u32); - } - RouterLogEventW(hloghandle.into(), dweventtype, dwmessageid, plpszsubstringarray.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(plpszsubstringarray.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), dwerrorcode) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterLogRegisterA<'a, P0>(lpszsource: P0) -> super::super::Foundation::HANDLE -where - P0: ::std::convert::Into<::windows::core::PCSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterLogRegisterA(lpszsource: ::windows::core::PCSTR) -> super::super::Foundation::HANDLE; - } - RouterLogRegisterA(lpszsource.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RouterLogRegisterW<'a, P0>(lpszsource: P0) -> super::super::Foundation::HANDLE -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RouterLogRegisterW(lpszsource: ::windows::core::PCWSTR) -> super::super::Foundation::HANDLE; - } - RouterLogRegisterW(lpszsource.into()) -} #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] #[inline] pub unsafe fn TracePrintfA<'a, P0>(dwtraceid: u32, lpszformat: P0) -> u32 @@ -387,6 +109,15 @@ pub unsafe fn LogErrorA(dwmessageid: u32, plpwssubstrings: &[::windows::core::PS } #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] #[inline] +pub unsafe fn LogErrorW(dwmessageid: u32, plpwssubstrings: &[::windows::core::PWSTR], dwerrorcode: u32) { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn LogErrorW(dwmessageid: u32, cnumberofsubstrings: u32, plpwssubstrings: *const ::windows::core::PWSTR, dwerrorcode: u32); + } + LogErrorW(dwmessageid, plpwssubstrings.len() as _, ::core::mem::transmute(plpwssubstrings.as_ptr()), dwerrorcode) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +#[inline] pub unsafe fn LogEventA(weventtype: u32, dwmessageid: u32, plpwssubstrings: &[::windows::core::PSTR]) { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -396,6 +127,15 @@ pub unsafe fn LogEventA(weventtype: u32, dwmessageid: u32, plpwssubstrings: &[:: } #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] #[inline] +pub unsafe fn LogEventW(weventtype: u32, dwmessageid: u32, plpwssubstrings: &[::windows::core::PWSTR]) { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn LogEventW(weventtype: u32, dwmessageid: u32, cnumberofsubstrings: u32, plpwssubstrings: *const ::windows::core::PWSTR); + } + LogEventW(weventtype, dwmessageid, plpwssubstrings.len() as _, ::core::mem::transmute(plpwssubstrings.as_ptr())) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +#[inline] pub unsafe fn MprSetupProtocolEnum(dwtransportid: u32, lplpbuffer: &mut *mut u8, lpdwentriesread: &mut u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -505,6 +245,21 @@ where } NetAddAlternateComputerName(server.into(), alternatename.into(), domainaccount.into(), domainaccountpassword.into(), reserved) } +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn NetAddServiceAccount<'a, P0, P1, P2>(servername: P0, accountname: P1, password: P2, flags: u32) -> ::windows::core::Result<()> +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn NetAddServiceAccount(servername: ::windows::core::PCWSTR, accountname: ::windows::core::PCWSTR, password: ::windows::core::PCWSTR, flags: u32) -> super::super::Foundation::NTSTATUS; + } + NetAddServiceAccount(servername.into(), accountname.into(), password.into(), flags).ok() +} #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] #[inline] pub unsafe fn NetAlertRaise<'a, P0>(alerttype: P0, buffer: *const ::core::ffi::c_void, buffersize: u32) -> u32 @@ -667,6 +422,19 @@ where } NetEnumerateComputerNames(server.into(), nametype, reserved, ::core::mem::transmute(entrycount), ::core::mem::transmute(computernames)) } +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn NetEnumerateServiceAccounts<'a, P0>(servername: P0, flags: u32, accountscount: &mut u32, accounts: &mut *mut *mut u16) -> ::windows::core::Result<()> +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn NetEnumerateServiceAccounts(servername: ::windows::core::PCWSTR, flags: u32, accountscount: *mut u32, accounts: *mut *mut *mut u16) -> super::super::Foundation::NTSTATUS; + } + NetEnumerateServiceAccounts(servername.into(), flags, ::core::mem::transmute(accountscount), ::core::mem::transmute(accounts)).ok() +} #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] #[inline] pub unsafe fn NetErrorLogClear<'a, P0, P1>(uncservername: P0, backupfile: P1, reserved: ::core::option::Option<&u8>) -> u32 @@ -912,6 +680,20 @@ where } NetGroupSetUsers(servername.into(), groupname.into(), level, ::core::mem::transmute(buf), totalentries) } +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn NetIsServiceAccount<'a, P0, P1>(servername: P0, accountname: P1, isservice: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn NetIsServiceAccount(servername: ::windows::core::PCWSTR, accountname: ::windows::core::PCWSTR, isservice: *mut super::super::Foundation::BOOL) -> super::super::Foundation::NTSTATUS; + } + NetIsServiceAccount(servername.into(), accountname.into(), ::core::mem::transmute(isservice)).ok() +} #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] #[inline] pub unsafe fn NetJoinDomain<'a, P0, P1, P2, P3, P4>(lpserver: P0, lpdomain: P1, lpmachineaccountou: P2, lpaccount: P3, lppassword: P4, fjoinoptions: NET_JOIN_DOMAIN_JOIN_OPTIONS) -> u32 @@ -1165,6 +947,20 @@ where } NetQueryDisplayInformation(servername.into(), level, index, entriesrequested, preferredmaximumlength, ::core::mem::transmute(returnedentrycount), ::core::mem::transmute(sortedbuffer)) } +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn NetQueryServiceAccount<'a, P0, P1>(servername: P0, accountname: P1, infolevel: u32, buffer: &mut *mut u8) -> ::windows::core::Result<()> +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn NetQueryServiceAccount(servername: ::windows::core::PCWSTR, accountname: ::windows::core::PCWSTR, infolevel: u32, buffer: *mut *mut u8) -> super::super::Foundation::NTSTATUS; + } + NetQueryServiceAccount(servername.into(), accountname.into(), infolevel, ::core::mem::transmute(buffer)).ok() +} #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] #[inline] pub unsafe fn NetRemoteComputerSupports<'a, P0>(uncservername: P0, optionswanted: NET_REMOTE_COMPUTER_SUPPORTS_OPTIONS, optionssupported: &mut u32) -> u32 @@ -1202,7 +998,21 @@ where extern "system" { fn NetRemoveAlternateComputerName(server: ::windows::core::PCWSTR, alternatename: ::windows::core::PCWSTR, domainaccount: ::windows::core::PCWSTR, domainaccountpassword: ::windows::core::PCWSTR, reserved: u32) -> u32; } - NetRemoveAlternateComputerName(server.into(), alternatename.into(), domainaccount.into(), domainaccountpassword.into(), reserved) + NetRemoveAlternateComputerName(server.into(), alternatename.into(), domainaccount.into(), domainaccountpassword.into(), reserved) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn NetRemoveServiceAccount<'a, P0, P1>(servername: P0, accountname: P1, flags: u32) -> ::windows::core::Result<()> +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn NetRemoveServiceAccount(servername: ::windows::core::PCWSTR, accountname: ::windows::core::PCWSTR, flags: u32) -> super::super::Foundation::NTSTATUS; + } + NetRemoveServiceAccount(servername.into(), accountname.into(), flags).ok() } #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] #[inline] @@ -2001,6 +1811,196 @@ where } #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] #[inline] +pub unsafe fn RouterAssert<'a, P0, P1, P2>(pszfailedassertion: P0, pszfilename: P1, dwlinenumber: u32, pszmessage: P2) +where + P0: ::std::convert::Into<::windows::core::PCSTR>, + P1: ::std::convert::Into<::windows::core::PCSTR>, + P2: ::std::convert::Into<::windows::core::PCSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterAssert(pszfailedassertion: ::windows::core::PCSTR, pszfilename: ::windows::core::PCSTR, dwlinenumber: u32, pszmessage: ::windows::core::PCSTR); + } + RouterAssert(pszfailedassertion.into(), pszfilename.into(), dwlinenumber, pszmessage.into()) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +#[inline] +pub unsafe fn RouterGetErrorStringA(dwerrorcode: u32, lplpszerrorstring: &mut ::windows::core::PSTR) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterGetErrorStringA(dwerrorcode: u32, lplpszerrorstring: *mut ::windows::core::PSTR) -> u32; + } + RouterGetErrorStringA(dwerrorcode, ::core::mem::transmute(lplpszerrorstring)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +#[inline] +pub unsafe fn RouterGetErrorStringW(dwerrorcode: u32, lplpwszerrorstring: &mut ::windows::core::PWSTR) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterGetErrorStringW(dwerrorcode: u32, lplpwszerrorstring: *mut ::windows::core::PWSTR) -> u32; + } + RouterGetErrorStringW(dwerrorcode, ::core::mem::transmute(lplpwszerrorstring)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterLogDeregisterA<'a, P0>(hloghandle: P0) +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterLogDeregisterA(hloghandle: super::super::Foundation::HANDLE); + } + RouterLogDeregisterA(hloghandle.into()) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterLogDeregisterW<'a, P0>(hloghandle: P0) +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterLogDeregisterW(hloghandle: super::super::Foundation::HANDLE); + } + RouterLogDeregisterW(hloghandle.into()) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterLogEventA<'a, P0>(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: ::core::option::Option<&[::windows::core::PSTR]>, dwerrorcode: u32) +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterLogEventA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows::core::PSTR, dwerrorcode: u32); + } + RouterLogEventA(hloghandle.into(), dweventtype, dwmessageid, plpszsubstringarray.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(plpszsubstringarray.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), dwerrorcode) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterLogEventDataA<'a, P0>(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: ::core::option::Option<&[::windows::core::PSTR]>, dwdatabytes: u32, lpdatabytes: &mut u8) +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterLogEventDataA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows::core::PSTR, dwdatabytes: u32, lpdatabytes: *mut u8); + } + RouterLogEventDataA(hloghandle.into(), dweventtype, dwmessageid, plpszsubstringarray.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(plpszsubstringarray.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), dwdatabytes, ::core::mem::transmute(lpdatabytes)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterLogEventDataW<'a, P0>(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: ::core::option::Option<&[::windows::core::PWSTR]>, dwdatabytes: u32, lpdatabytes: &mut u8) +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterLogEventDataW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows::core::PWSTR, dwdatabytes: u32, lpdatabytes: *mut u8); + } + RouterLogEventDataW(hloghandle.into(), dweventtype, dwmessageid, plpszsubstringarray.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(plpszsubstringarray.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), dwdatabytes, ::core::mem::transmute(lpdatabytes)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterLogEventStringA<'a, P0>(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: &[::windows::core::PSTR], dwerrorcode: u32, dwerrorindex: u32) +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterLogEventStringA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows::core::PSTR, dwerrorcode: u32, dwerrorindex: u32); + } + RouterLogEventStringA(hloghandle.into(), dweventtype, dwmessageid, plpszsubstringarray.len() as _, ::core::mem::transmute(plpszsubstringarray.as_ptr()), dwerrorcode, dwerrorindex) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterLogEventStringW<'a, P0>(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: &[::windows::core::PWSTR], dwerrorcode: u32, dwerrorindex: u32) +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterLogEventStringW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows::core::PWSTR, dwerrorcode: u32, dwerrorindex: u32); + } + RouterLogEventStringW(hloghandle.into(), dweventtype, dwmessageid, plpszsubstringarray.len() as _, ::core::mem::transmute(plpszsubstringarray.as_ptr()), dwerrorcode, dwerrorindex) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterLogEventValistExA<'a, P0, P1>(hloghandle: P0, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: P1, arglist: &mut i8) +where + P0: ::std::convert::Into, + P1: ::std::convert::Into<::windows::core::PCSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterLogEventValistExA(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: ::windows::core::PCSTR, arglist: *mut i8); + } + RouterLogEventValistExA(hloghandle.into(), dweventtype, dwerrorcode, dwmessageid, ptszformat.into(), ::core::mem::transmute(arglist)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterLogEventValistExW<'a, P0, P1>(hloghandle: P0, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: P1, arglist: &mut i8) +where + P0: ::std::convert::Into, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterLogEventValistExW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwerrorcode: u32, dwmessageid: u32, ptszformat: ::windows::core::PCWSTR, arglist: *mut i8); + } + RouterLogEventValistExW(hloghandle.into(), dweventtype, dwerrorcode, dwmessageid, ptszformat.into(), ::core::mem::transmute(arglist)) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterLogEventW<'a, P0>(hloghandle: P0, dweventtype: u32, dwmessageid: u32, plpszsubstringarray: ::core::option::Option<&[::windows::core::PWSTR]>, dwerrorcode: u32) +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterLogEventW(hloghandle: super::super::Foundation::HANDLE, dweventtype: u32, dwmessageid: u32, dwsubstringcount: u32, plpszsubstringarray: *const ::windows::core::PWSTR, dwerrorcode: u32); + } + RouterLogEventW(hloghandle.into(), dweventtype, dwmessageid, plpszsubstringarray.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(plpszsubstringarray.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), dwerrorcode) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterLogRegisterA<'a, P0>(lpszsource: P0) -> super::super::Foundation::HANDLE +where + P0: ::std::convert::Into<::windows::core::PCSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterLogRegisterA(lpszsource: ::windows::core::PCSTR) -> super::super::Foundation::HANDLE; + } + RouterLogRegisterA(lpszsource.into()) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RouterLogRegisterW<'a, P0>(lpszsource: P0) -> super::super::Foundation::HANDLE +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RouterLogRegisterW(lpszsource: ::windows::core::PCWSTR) -> super::super::Foundation::HANDLE; + } + RouterLogRegisterW(lpszsource.into()) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +#[inline] pub unsafe fn SetNetScheduleAccountInformation<'a, P0, P1, P2>(pwszservername: P0, pwszaccount: P1, pwszpassword: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -9103,6 +9103,61 @@ impl ::core::fmt::Debug for OBO_TOKEN_TYPE { #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct RASCON_UIINFO_FLAGS(pub i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_VPN: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(1i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_DEMAND_DIAL: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(2i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_NOT_ADMIN: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(4i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv4_STATICADDRESS: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(8i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv4_NAME_SERVERS: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(16i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv4_REMOTE_GATEWAY: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(32i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv4_EXPLICIT_METRIC: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(64i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_HEADER_COMPRESSION: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(128i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_DISABLE_REGISTER_DNS: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(256i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_PRIVATE_DNS_SUFFIX: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(512i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_ENABLE_NBT: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(1024i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv6_STATICADDRESS: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(2048i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv6_NAME_SERVERS: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(4096i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv6_REMOTE_GATEWAY: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(8192i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_USE_IPv6_EXPLICIT_METRIC: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(16384i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +pub const RCUIF_DISABLE_CLASS_BASED_ROUTE: RASCON_UIINFO_FLAGS = RASCON_UIINFO_FLAGS(32768i32); +impl ::core::marker::Copy for RASCON_UIINFO_FLAGS {} +impl ::core::clone::Clone for RASCON_UIINFO_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for RASCON_UIINFO_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for RASCON_UIINFO_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for RASCON_UIINFO_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("RASCON_UIINFO_FLAGS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct SERVER_INFO_HIDDEN(pub u32); #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub const SV_VISIBLE: SERVER_INFO_HIDDEN = SERVER_INFO_HIDDEN(0u32); @@ -9382,61 +9437,6 @@ impl ::core::fmt::Debug for USE_INFO_ASG_TYPE { f.debug_tuple("USE_INFO_ASG_TYPE").field(&self.0).finish() } } -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct tagRASCON_IPUI_FLAGS(pub i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_VPN: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(1i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_DEMAND_DIAL: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(2i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_NOT_ADMIN: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(4i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv4_STATICADDRESS: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(8i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv4_NAME_SERVERS: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(16i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv4_REMOTE_GATEWAY: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(32i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv4_EXPLICIT_METRIC: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(64i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_HEADER_COMPRESSION: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(128i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_DISABLE_REGISTER_DNS: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(256i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_PRIVATE_DNS_SUFFIX: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(512i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_ENABLE_NBT: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(1024i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv6_STATICADDRESS: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(2048i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv6_NAME_SERVERS: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(4096i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv6_REMOTE_GATEWAY: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(8192i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_USE_IPv6_EXPLICIT_METRIC: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(16384i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] -pub const RCUIF_DISABLE_CLASS_BASED_ROUTE: tagRASCON_IPUI_FLAGS = tagRASCON_IPUI_FLAGS(32768i32); -impl ::core::marker::Copy for tagRASCON_IPUI_FLAGS {} -impl ::core::clone::Clone for tagRASCON_IPUI_FLAGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for tagRASCON_IPUI_FLAGS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for tagRASCON_IPUI_FLAGS { - type Abi = Self; -} -impl ::core::fmt::Debug for tagRASCON_IPUI_FLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("tagRASCON_IPUI_FLAGS").field(&self.0).finish() - } -} #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub struct ACCESS_INFO_0 { 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 8363a7bd9a..fe42ab596a 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs @@ -2162,6 +2162,105 @@ impl ::core::default::Default for FLOWDESCRIPTOR { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] #[cfg(feature = "Win32_Networking_WinSock")] +pub struct FLOW_DESC { + pub u1: FLOW_DESC_0, + pub u2: FLOW_DESC_1, +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::marker::Copy for FLOW_DESC {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::clone::Clone for FLOW_DESC { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Networking_WinSock")] +unsafe impl ::windows::core::Abi for FLOW_DESC { + type Abi = Self; +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::cmp::PartialEq for FLOW_DESC { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::cmp::Eq for FLOW_DESC {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::default::Default for FLOW_DESC { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] +#[cfg(feature = "Win32_Networking_WinSock")] +pub union FLOW_DESC_0 { + pub stspec: *mut SENDER_TSPEC, + pub isflow: *mut IS_FLOWSPEC, +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::marker::Copy for FLOW_DESC_0 {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::clone::Clone for FLOW_DESC_0 { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Networking_WinSock")] +unsafe impl ::windows::core::Abi for FLOW_DESC_0 { + type Abi = Self; +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::cmp::PartialEq for FLOW_DESC_0 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::cmp::Eq for FLOW_DESC_0 {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::default::Default for FLOW_DESC_0 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] +#[cfg(feature = "Win32_Networking_WinSock")] +pub union FLOW_DESC_1 { + pub stemp: *mut FILTER_SPEC, + pub fspec: *mut FILTER_SPEC, +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::marker::Copy for FLOW_DESC_1 {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::clone::Clone for FLOW_DESC_1 { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Networking_WinSock")] +unsafe impl ::windows::core::Abi for FLOW_DESC_1 { + type Abi = Self; +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::cmp::PartialEq for FLOW_DESC_1 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::cmp::Eq for FLOW_DESC_1 {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::default::Default for FLOW_DESC_1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] +#[cfg(feature = "Win32_Networking_WinSock")] pub struct Filter_Spec_IPv4 { pub filt_ipaddr: super::super::Networking::WinSock::IN_ADDR, pub filt_unused: u16, @@ -3009,6 +3108,41 @@ impl ::core::default::Default for IntServTspecBody_0 { unsafe { ::core::mem::zeroed() } } } +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] +#[cfg(feature = "Win32_Networking_WinSock")] +pub struct LPMIPTABLE { + pub ulIfIndex: u32, + pub MediaType: u32, + pub IfIpAddr: super::super::Networking::WinSock::IN_ADDR, + pub IfNetMask: super::super::Networking::WinSock::IN_ADDR, +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::marker::Copy for LPMIPTABLE {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::clone::Clone for LPMIPTABLE { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Networking_WinSock")] +unsafe impl ::windows::core::Abi for LPMIPTABLE { + type Abi = Self; +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::cmp::PartialEq for LPMIPTABLE { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::cmp::Eq for LPMIPTABLE {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::default::Default for LPMIPTABLE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct LPM_HANDLE(pub isize); @@ -3143,6 +3277,38 @@ impl ::core::default::Default for POLICY_DATA { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub struct POLICY_DECISION { + pub lpvResult: u32, + pub wPolicyErrCode: u16, + pub wPolicyErrValue: u16, +} +impl ::core::marker::Copy for POLICY_DECISION {} +impl ::core::clone::Clone for POLICY_DECISION { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for POLICY_DECISION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("POLICY_DECISION").field("lpvResult", &self.lpvResult).field("wPolicyErrCode", &self.wPolicyErrCode).field("wPolicyErrValue", &self.wPolicyErrValue).finish() + } +} +unsafe impl ::windows::core::Abi for POLICY_DECISION { + type Abi = Self; +} +impl ::core::cmp::PartialEq for POLICY_DECISION { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for POLICY_DECISION {} +impl ::core::default::Default for POLICY_DECISION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] pub struct POLICY_ELEMENT { pub usPeLength: u16, pub usPeType: u16, @@ -4098,7 +4264,7 @@ pub struct RSVP_MSG_OBJS { pub pResvStyle: *mut RESV_STYLE, pub pRsvpScope: *mut RSVP_SCOPE, pub FlowDescCount: i32, - pub pFlowDescs: *mut flow_desc, + pub pFlowDescs: *mut FLOW_DESC, pub PdObjectCount: i32, pub ppPdObjects: *mut *mut POLICY_DATA, pub pErrorSpec: *mut ERROR_SPEC, @@ -4510,384 +4676,196 @@ impl ::core::default::Default for SENDER_TSPEC { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] -#[cfg(feature = "Win32_Networking_WinSock")] -pub struct Scope_list_ipv4 { - pub scopl_ipaddr: [super::super::Networking::WinSock::IN_ADDR; 1], +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub struct SIPAEVENT_KSR_SIGNATURE_PAYLOAD { + pub SignAlgID: u32, + pub SignatureLength: u32, + pub Signature: [u8; 1], } -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::marker::Copy for Scope_list_ipv4 {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::clone::Clone for Scope_list_ipv4 { +impl ::core::marker::Copy for SIPAEVENT_KSR_SIGNATURE_PAYLOAD {} +impl ::core::clone::Clone for SIPAEVENT_KSR_SIGNATURE_PAYLOAD { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Networking_WinSock")] -unsafe impl ::windows::core::Abi for Scope_list_ipv4 { +unsafe impl ::windows::core::Abi for SIPAEVENT_KSR_SIGNATURE_PAYLOAD { type Abi = Self; } -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::PartialEq for Scope_list_ipv4 { +impl ::core::cmp::PartialEq for SIPAEVENT_KSR_SIGNATURE_PAYLOAD { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::Eq for Scope_list_ipv4 {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::default::Default for Scope_list_ipv4 { +impl ::core::cmp::Eq for SIPAEVENT_KSR_SIGNATURE_PAYLOAD {} +impl ::core::default::Default for SIPAEVENT_KSR_SIGNATURE_PAYLOAD { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] -#[cfg(feature = "Win32_Networking_WinSock")] -pub struct Session_IPv4 { - pub sess_destaddr: super::super::Networking::WinSock::IN_ADDR, - pub sess_protid: u8, - pub sess_flags: u8, - pub sess_destport: u16, +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub struct SIPAEVENT_REVOCATION_LIST_PAYLOAD { + pub CreationTime: i64, + pub DigestLength: u32, + pub HashAlgID: u16, + pub Digest: [u8; 1], } -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::marker::Copy for Session_IPv4 {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::clone::Clone for Session_IPv4 { +impl ::core::marker::Copy for SIPAEVENT_REVOCATION_LIST_PAYLOAD {} +impl ::core::clone::Clone for SIPAEVENT_REVOCATION_LIST_PAYLOAD { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Networking_WinSock")] -unsafe impl ::windows::core::Abi for Session_IPv4 { +unsafe impl ::windows::core::Abi for SIPAEVENT_REVOCATION_LIST_PAYLOAD { type Abi = Self; } -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::PartialEq for Session_IPv4 { +impl ::core::cmp::PartialEq for SIPAEVENT_REVOCATION_LIST_PAYLOAD { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::Eq for Session_IPv4 {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::default::Default for Session_IPv4 { +impl ::core::cmp::Eq for SIPAEVENT_REVOCATION_LIST_PAYLOAD {} +impl ::core::default::Default for SIPAEVENT_REVOCATION_LIST_PAYLOAD { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct TCG_PCClientPCREventStruct { - pub pcrIndex: u32, - pub eventType: u32, - pub digest: [u8; 20], - pub eventDataSize: u32, - pub event: [u8; 1], +pub struct SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { + pub PayloadVersion: u32, + pub VarDataOffset: u32, + pub HashAlgID: u16, + pub DigestLength: u16, + pub Options: u32, + pub SignersCount: u32, + pub VarData: [u8; 1], } -impl ::core::marker::Copy for TCG_PCClientPCREventStruct {} -impl ::core::clone::Clone for TCG_PCClientPCREventStruct { +impl ::core::marker::Copy for SIPAEVENT_SBCP_INFO_PAYLOAD_V1 {} +impl ::core::clone::Clone for SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for TCG_PCClientPCREventStruct { +unsafe impl ::windows::core::Abi for SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { type Abi = Self; } -impl ::core::cmp::PartialEq for TCG_PCClientPCREventStruct { +impl ::core::cmp::PartialEq for SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for TCG_PCClientPCREventStruct {} -impl ::core::default::Default for TCG_PCClientPCREventStruct { +impl ::core::cmp::Eq for SIPAEVENT_SBCP_INFO_PAYLOAD_V1 {} +impl ::core::default::Default for SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct TCG_PCClientTaggedEventStruct { - pub EventID: u32, - pub EventDataSize: u32, - pub EventData: [u8; 1], +pub struct SIPAEVENT_SI_POLICY_PAYLOAD { + pub PolicyVersion: u64, + pub PolicyNameLength: u16, + pub HashAlgID: u16, + pub DigestLength: u32, + pub VarLengthData: [u8; 1], } -impl ::core::marker::Copy for TCG_PCClientTaggedEventStruct {} -impl ::core::clone::Clone for TCG_PCClientTaggedEventStruct { +impl ::core::marker::Copy for SIPAEVENT_SI_POLICY_PAYLOAD {} +impl ::core::clone::Clone for SIPAEVENT_SI_POLICY_PAYLOAD { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for TCG_PCClientTaggedEventStruct { +unsafe impl ::windows::core::Abi for SIPAEVENT_SI_POLICY_PAYLOAD { type Abi = Self; } -impl ::core::cmp::PartialEq for TCG_PCClientTaggedEventStruct { +impl ::core::cmp::PartialEq for SIPAEVENT_SI_POLICY_PAYLOAD { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for TCG_PCClientTaggedEventStruct {} -impl ::core::default::Default for TCG_PCClientTaggedEventStruct { +impl ::core::cmp::Eq for SIPAEVENT_SI_POLICY_PAYLOAD {} +impl ::core::default::Default for SIPAEVENT_SI_POLICY_PAYLOAD { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct TCI_CLIENT_FUNC_LIST { - pub ClNotifyHandler: TCI_NOTIFY_HANDLER, - pub ClAddFlowCompleteHandler: TCI_ADD_FLOW_COMPLETE_HANDLER, - pub ClModifyFlowCompleteHandler: TCI_MOD_FLOW_COMPLETE_HANDLER, - pub ClDeleteFlowCompleteHandler: TCI_DEL_FLOW_COMPLETE_HANDLER, +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub struct SIPAEVENT_VSM_IDK_INFO_PAYLOAD { + pub KeyAlgID: u32, + pub Anonymous: SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0, } -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for TCI_CLIENT_FUNC_LIST {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for TCI_CLIENT_FUNC_LIST { +impl ::core::marker::Copy for SIPAEVENT_VSM_IDK_INFO_PAYLOAD {} +impl ::core::clone::Clone for SIPAEVENT_VSM_IDK_INFO_PAYLOAD { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for TCI_CLIENT_FUNC_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("TCI_CLIENT_FUNC_LIST").field("ClNotifyHandler", &self.ClNotifyHandler.map(|f| f as usize)).field("ClAddFlowCompleteHandler", &self.ClAddFlowCompleteHandler.map(|f| f as usize)).field("ClModifyFlowCompleteHandler", &self.ClModifyFlowCompleteHandler.map(|f| f as usize)).field("ClDeleteFlowCompleteHandler", &self.ClDeleteFlowCompleteHandler.map(|f| f as usize)).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for TCI_CLIENT_FUNC_LIST { +unsafe impl ::windows::core::Abi for SIPAEVENT_VSM_IDK_INFO_PAYLOAD { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for TCI_CLIENT_FUNC_LIST { +impl ::core::cmp::PartialEq for SIPAEVENT_VSM_IDK_INFO_PAYLOAD { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for TCI_CLIENT_FUNC_LIST {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for TCI_CLIENT_FUNC_LIST { +impl ::core::cmp::Eq for SIPAEVENT_VSM_IDK_INFO_PAYLOAD {} +impl ::core::default::Default for SIPAEVENT_VSM_IDK_INFO_PAYLOAD { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct TC_GEN_FILTER { - pub AddressType: u16, - pub PatternSize: u32, - pub Pattern: *mut ::core::ffi::c_void, - pub Mask: *mut ::core::ffi::c_void, +pub union SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { + pub RsaKeyInfo: SIPAEVENT_VSM_IDK_RSA_INFO, } -impl ::core::marker::Copy for TC_GEN_FILTER {} -impl ::core::clone::Clone for TC_GEN_FILTER { +impl ::core::marker::Copy for SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 {} +impl ::core::clone::Clone for SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for TC_GEN_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("TC_GEN_FILTER").field("AddressType", &self.AddressType).field("PatternSize", &self.PatternSize).field("Pattern", &self.Pattern).field("Mask", &self.Mask).finish() - } -} -unsafe impl ::windows::core::Abi for TC_GEN_FILTER { +unsafe impl ::windows::core::Abi for SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { type Abi = Self; } -impl ::core::cmp::PartialEq for TC_GEN_FILTER { +impl ::core::cmp::PartialEq for SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for TC_GEN_FILTER {} -impl ::core::default::Default for TC_GEN_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] -#[cfg(feature = "Win32_Networking_WinSock")] -pub struct TC_GEN_FLOW { - pub SendingFlowspec: super::super::Networking::WinSock::FLOWSPEC, - pub ReceivingFlowspec: super::super::Networking::WinSock::FLOWSPEC, - pub TcObjectsLength: u32, - pub TcObjects: [QOS_OBJECT_HDR; 1], -} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::marker::Copy for TC_GEN_FLOW {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::clone::Clone for TC_GEN_FLOW { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::fmt::Debug for TC_GEN_FLOW { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("TC_GEN_FLOW").field("SendingFlowspec", &self.SendingFlowspec).field("ReceivingFlowspec", &self.ReceivingFlowspec).field("TcObjectsLength", &self.TcObjectsLength).field("TcObjects", &self.TcObjects).finish() - } -} -#[cfg(feature = "Win32_Networking_WinSock")] -unsafe impl ::windows::core::Abi for TC_GEN_FLOW { - type Abi = Self; -} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::PartialEq for TC_GEN_FLOW { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::Eq for TC_GEN_FLOW {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::default::Default for TC_GEN_FLOW { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_NetworkManagement_Ndis\"`*"] -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -pub struct TC_IFC_DESCRIPTOR { - pub Length: u32, - pub pInterfaceName: ::windows::core::PWSTR, - pub pInterfaceID: ::windows::core::PWSTR, - pub AddressListDesc: ADDRESS_LIST_DESCRIPTOR, -} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -impl ::core::marker::Copy for TC_IFC_DESCRIPTOR {} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -impl ::core::clone::Clone for TC_IFC_DESCRIPTOR { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -impl ::core::fmt::Debug for TC_IFC_DESCRIPTOR { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("TC_IFC_DESCRIPTOR").field("Length", &self.Length).field("pInterfaceName", &self.pInterfaceName).field("pInterfaceID", &self.pInterfaceID).field("AddressListDesc", &self.AddressListDesc).finish() - } -} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -unsafe impl ::windows::core::Abi for TC_IFC_DESCRIPTOR { - type Abi = Self; -} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -impl ::core::cmp::PartialEq for TC_IFC_DESCRIPTOR { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -impl ::core::cmp::Eq for TC_IFC_DESCRIPTOR {} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -impl ::core::default::Default for TC_IFC_DESCRIPTOR { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_NetworkManagement_Ndis\"`*"] -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -pub struct TC_SUPPORTED_INFO_BUFFER { - pub InstanceIDLength: u16, - pub InstanceID: [u16; 256], - pub InterfaceLuid: u64, - pub AddrListDesc: ADDRESS_LIST_DESCRIPTOR, -} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -impl ::core::marker::Copy for TC_SUPPORTED_INFO_BUFFER {} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -impl ::core::clone::Clone for TC_SUPPORTED_INFO_BUFFER { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -impl ::core::fmt::Debug for TC_SUPPORTED_INFO_BUFFER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("TC_SUPPORTED_INFO_BUFFER").field("InstanceIDLength", &self.InstanceIDLength).field("InstanceID", &self.InstanceID).field("InterfaceLuid", &self.InterfaceLuid).field("AddrListDesc", &self.AddrListDesc).finish() - } -} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -unsafe impl ::windows::core::Abi for TC_SUPPORTED_INFO_BUFFER { - type Abi = Self; -} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -impl ::core::cmp::PartialEq for TC_SUPPORTED_INFO_BUFFER { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -impl ::core::cmp::Eq for TC_SUPPORTED_INFO_BUFFER {} -#[cfg(feature = "Win32_NetworkManagement_Ndis")] -impl ::core::default::Default for TC_SUPPORTED_INFO_BUFFER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct WBCL_Iterator { - pub firstElementPtr: *mut ::core::ffi::c_void, - pub logSize: u32, - pub currentElementPtr: *mut ::core::ffi::c_void, - pub currentElementSize: u32, - pub digestSize: u16, - pub logFormat: u16, - pub numberOfDigests: u32, - pub digestSizes: *mut ::core::ffi::c_void, - pub supportedAlgorithms: u32, - pub hashAlgorithm: u16, -} -impl ::core::marker::Copy for WBCL_Iterator {} -impl ::core::clone::Clone for WBCL_Iterator { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for WBCL_Iterator { - type Abi = Self; -} -impl ::core::cmp::PartialEq for WBCL_Iterator { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for WBCL_Iterator {} -impl ::core::default::Default for WBCL_Iterator { +impl ::core::cmp::Eq for SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 {} +impl ::core::default::Default for SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct WBCL_LogHdr { - pub signature: u32, - pub version: u32, - pub entries: u32, - pub length: u32, +pub struct SIPAEVENT_VSM_IDK_RSA_INFO { + pub KeyBitLength: u32, + pub PublicExpLengthBytes: u32, + pub ModulusSizeBytes: u32, + pub PublicKeyData: [u8; 1], } -impl ::core::marker::Copy for WBCL_LogHdr {} -impl ::core::clone::Clone for WBCL_LogHdr { +impl ::core::marker::Copy for SIPAEVENT_VSM_IDK_RSA_INFO {} +impl ::core::clone::Clone for SIPAEVENT_VSM_IDK_RSA_INFO { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for WBCL_LogHdr { +unsafe impl ::windows::core::Abi for SIPAEVENT_VSM_IDK_RSA_INFO { type Abi = Self; } -impl ::core::cmp::PartialEq for WBCL_LogHdr { +impl ::core::cmp::PartialEq for SIPAEVENT_VSM_IDK_RSA_INFO { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for WBCL_LogHdr {} -impl ::core::default::Default for WBCL_LogHdr { +impl ::core::cmp::Eq for SIPAEVENT_VSM_IDK_RSA_INFO {} +impl ::core::default::Default for SIPAEVENT_VSM_IDK_RSA_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -4895,32 +4873,31 @@ impl ::core::default::Default for WBCL_LogHdr { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] #[cfg(feature = "Win32_Networking_WinSock")] -pub struct flow_desc { - pub u1: flow_desc_0, - pub u2: flow_desc_1, +pub struct Scope_list_ipv4 { + pub scopl_ipaddr: [super::super::Networking::WinSock::IN_ADDR; 1], } #[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::marker::Copy for flow_desc {} +impl ::core::marker::Copy for Scope_list_ipv4 {} #[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::clone::Clone for flow_desc { +impl ::core::clone::Clone for Scope_list_ipv4 { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_Networking_WinSock")] -unsafe impl ::windows::core::Abi for flow_desc { +unsafe impl ::windows::core::Abi for Scope_list_ipv4 { type Abi = Self; } #[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::PartialEq for flow_desc { +impl ::core::cmp::PartialEq for Scope_list_ipv4 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::Eq for flow_desc {} +impl ::core::cmp::Eq for Scope_list_ipv4 {} #[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::default::Default for flow_desc { +impl ::core::default::Default for Scope_list_ipv4 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -4928,332 +4905,355 @@ impl ::core::default::Default for flow_desc { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] #[cfg(feature = "Win32_Networking_WinSock")] -pub union flow_desc_0 { - pub stspec: *mut SENDER_TSPEC, - pub isflow: *mut IS_FLOWSPEC, +pub struct Session_IPv4 { + pub sess_destaddr: super::super::Networking::WinSock::IN_ADDR, + pub sess_protid: u8, + pub sess_flags: u8, + pub sess_destport: u16, } #[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::marker::Copy for flow_desc_0 {} +impl ::core::marker::Copy for Session_IPv4 {} #[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::clone::Clone for flow_desc_0 { +impl ::core::clone::Clone for Session_IPv4 { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_Networking_WinSock")] -unsafe impl ::windows::core::Abi for flow_desc_0 { +unsafe impl ::windows::core::Abi for Session_IPv4 { type Abi = Self; } #[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::PartialEq for flow_desc_0 { +impl ::core::cmp::PartialEq for Session_IPv4 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::Eq for flow_desc_0 {} +impl ::core::cmp::Eq for Session_IPv4 {} #[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::default::Default for flow_desc_0 { +impl ::core::default::Default for Session_IPv4 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] -#[cfg(feature = "Win32_Networking_WinSock")] -pub union flow_desc_1 { - pub stemp: *mut FILTER_SPEC, - pub fspec: *mut FILTER_SPEC, +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub struct TCG_PCClientPCREventStruct { + pub pcrIndex: u32, + pub eventType: u32, + pub digest: [u8; 20], + pub eventDataSize: u32, + pub event: [u8; 1], } -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::marker::Copy for flow_desc_1 {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::clone::Clone for flow_desc_1 { +impl ::core::marker::Copy for TCG_PCClientPCREventStruct {} +impl ::core::clone::Clone for TCG_PCClientPCREventStruct { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Networking_WinSock")] -unsafe impl ::windows::core::Abi for flow_desc_1 { +unsafe impl ::windows::core::Abi for TCG_PCClientPCREventStruct { type Abi = Self; } -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::PartialEq for flow_desc_1 { +impl ::core::cmp::PartialEq for TCG_PCClientPCREventStruct { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::Eq for flow_desc_1 {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::default::Default for flow_desc_1 { +impl ::core::cmp::Eq for TCG_PCClientPCREventStruct {} +impl ::core::default::Default for TCG_PCClientPCREventStruct { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] -#[cfg(feature = "Win32_Networking_WinSock")] -pub struct lpmiptable { - pub ulIfIndex: u32, - pub MediaType: u32, - pub IfIpAddr: super::super::Networking::WinSock::IN_ADDR, - pub IfNetMask: super::super::Networking::WinSock::IN_ADDR, +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] +pub struct TCG_PCClientTaggedEventStruct { + pub EventID: u32, + pub EventDataSize: u32, + pub EventData: [u8; 1], } -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::marker::Copy for lpmiptable {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::clone::Clone for lpmiptable { +impl ::core::marker::Copy for TCG_PCClientTaggedEventStruct {} +impl ::core::clone::Clone for TCG_PCClientTaggedEventStruct { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Networking_WinSock")] -unsafe impl ::windows::core::Abi for lpmiptable { +unsafe impl ::windows::core::Abi for TCG_PCClientTaggedEventStruct { type Abi = Self; } -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::PartialEq for lpmiptable { +impl ::core::cmp::PartialEq for TCG_PCClientTaggedEventStruct { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::Eq for lpmiptable {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::default::Default for lpmiptable { +impl ::core::cmp::Eq for TCG_PCClientTaggedEventStruct {} +impl ::core::default::Default for TCG_PCClientTaggedEventStruct { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct policy_decision { - pub lpvResult: u32, - pub wPolicyErrCode: u16, - pub wPolicyErrValue: u16, +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct TCI_CLIENT_FUNC_LIST { + pub ClNotifyHandler: TCI_NOTIFY_HANDLER, + pub ClAddFlowCompleteHandler: TCI_ADD_FLOW_COMPLETE_HANDLER, + pub ClModifyFlowCompleteHandler: TCI_MOD_FLOW_COMPLETE_HANDLER, + pub ClDeleteFlowCompleteHandler: TCI_DEL_FLOW_COMPLETE_HANDLER, } -impl ::core::marker::Copy for policy_decision {} -impl ::core::clone::Clone for policy_decision { +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for TCI_CLIENT_FUNC_LIST {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for TCI_CLIENT_FUNC_LIST { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for policy_decision { +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for TCI_CLIENT_FUNC_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("policy_decision").field("lpvResult", &self.lpvResult).field("wPolicyErrCode", &self.wPolicyErrCode).field("wPolicyErrValue", &self.wPolicyErrValue).finish() + f.debug_struct("TCI_CLIENT_FUNC_LIST").field("ClNotifyHandler", &self.ClNotifyHandler.map(|f| f as usize)).field("ClAddFlowCompleteHandler", &self.ClAddFlowCompleteHandler.map(|f| f as usize)).field("ClModifyFlowCompleteHandler", &self.ClModifyFlowCompleteHandler.map(|f| f as usize)).field("ClDeleteFlowCompleteHandler", &self.ClDeleteFlowCompleteHandler.map(|f| f as usize)).finish() } } -unsafe impl ::windows::core::Abi for policy_decision { +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for TCI_CLIENT_FUNC_LIST { type Abi = Self; } -impl ::core::cmp::PartialEq for policy_decision { +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for TCI_CLIENT_FUNC_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for policy_decision {} -impl ::core::default::Default for policy_decision { +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for TCI_CLIENT_FUNC_LIST {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for TCI_CLIENT_FUNC_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C, packed(1))] +#[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct tag_SIPAEVENT_KSR_SIGNATURE_PAYLOAD { - pub SignAlgID: u32, - pub SignatureLength: u32, - pub Signature: [u8; 1], +pub struct TC_GEN_FILTER { + pub AddressType: u16, + pub PatternSize: u32, + pub Pattern: *mut ::core::ffi::c_void, + pub Mask: *mut ::core::ffi::c_void, } -impl ::core::marker::Copy for tag_SIPAEVENT_KSR_SIGNATURE_PAYLOAD {} -impl ::core::clone::Clone for tag_SIPAEVENT_KSR_SIGNATURE_PAYLOAD { +impl ::core::marker::Copy for TC_GEN_FILTER {} +impl ::core::clone::Clone for TC_GEN_FILTER { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for tag_SIPAEVENT_KSR_SIGNATURE_PAYLOAD { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tag_SIPAEVENT_KSR_SIGNATURE_PAYLOAD { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tag_SIPAEVENT_KSR_SIGNATURE_PAYLOAD {} -impl ::core::default::Default for tag_SIPAEVENT_KSR_SIGNATURE_PAYLOAD { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct tag_SIPAEVENT_REVOCATION_LIST_PAYLOAD { - pub CreationTime: i64, - pub DigestLength: u32, - pub HashAlgID: u16, - pub Digest: [u8; 1], -} -impl ::core::marker::Copy for tag_SIPAEVENT_REVOCATION_LIST_PAYLOAD {} -impl ::core::clone::Clone for tag_SIPAEVENT_REVOCATION_LIST_PAYLOAD { - fn clone(&self) -> Self { - *self +impl ::core::fmt::Debug for TC_GEN_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TC_GEN_FILTER").field("AddressType", &self.AddressType).field("PatternSize", &self.PatternSize).field("Pattern", &self.Pattern).field("Mask", &self.Mask).finish() } } -unsafe impl ::windows::core::Abi for tag_SIPAEVENT_REVOCATION_LIST_PAYLOAD { +unsafe impl ::windows::core::Abi for TC_GEN_FILTER { type Abi = Self; } -impl ::core::cmp::PartialEq for tag_SIPAEVENT_REVOCATION_LIST_PAYLOAD { +impl ::core::cmp::PartialEq for TC_GEN_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for tag_SIPAEVENT_REVOCATION_LIST_PAYLOAD {} -impl ::core::default::Default for tag_SIPAEVENT_REVOCATION_LIST_PAYLOAD { +impl ::core::cmp::Eq for TC_GEN_FILTER {} +impl ::core::default::Default for TC_GEN_FILTER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct tag_SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { - pub PayloadVersion: u32, - pub VarDataOffset: u32, - pub HashAlgID: u16, - pub DigestLength: u16, - pub Options: u32, - pub SignersCount: u32, - pub VarData: [u8; 1], +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_Networking_WinSock\"`*"] +#[cfg(feature = "Win32_Networking_WinSock")] +pub struct TC_GEN_FLOW { + pub SendingFlowspec: super::super::Networking::WinSock::FLOWSPEC, + pub ReceivingFlowspec: super::super::Networking::WinSock::FLOWSPEC, + pub TcObjectsLength: u32, + pub TcObjects: [QOS_OBJECT_HDR; 1], } -impl ::core::marker::Copy for tag_SIPAEVENT_SBCP_INFO_PAYLOAD_V1 {} -impl ::core::clone::Clone for tag_SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::marker::Copy for TC_GEN_FLOW {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::clone::Clone for TC_GEN_FLOW { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for tag_SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::fmt::Debug for TC_GEN_FLOW { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TC_GEN_FLOW").field("SendingFlowspec", &self.SendingFlowspec).field("ReceivingFlowspec", &self.ReceivingFlowspec).field("TcObjectsLength", &self.TcObjectsLength).field("TcObjects", &self.TcObjects).finish() + } +} +#[cfg(feature = "Win32_Networking_WinSock")] +unsafe impl ::windows::core::Abi for TC_GEN_FLOW { type Abi = Self; } -impl ::core::cmp::PartialEq for tag_SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::cmp::PartialEq for TC_GEN_FLOW { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for tag_SIPAEVENT_SBCP_INFO_PAYLOAD_V1 {} -impl ::core::default::Default for tag_SIPAEVENT_SBCP_INFO_PAYLOAD_V1 { +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::cmp::Eq for TC_GEN_FLOW {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::default::Default for TC_GEN_FLOW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct tag_SIPAEVENT_SI_POLICY_PAYLOAD { - pub PolicyVersion: u64, - pub PolicyNameLength: u16, - pub HashAlgID: u16, - pub DigestLength: u32, - pub VarLengthData: [u8; 1], +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_NetworkManagement_Ndis\"`*"] +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +pub struct TC_IFC_DESCRIPTOR { + pub Length: u32, + pub pInterfaceName: ::windows::core::PWSTR, + pub pInterfaceID: ::windows::core::PWSTR, + pub AddressListDesc: ADDRESS_LIST_DESCRIPTOR, } -impl ::core::marker::Copy for tag_SIPAEVENT_SI_POLICY_PAYLOAD {} -impl ::core::clone::Clone for tag_SIPAEVENT_SI_POLICY_PAYLOAD { +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +impl ::core::marker::Copy for TC_IFC_DESCRIPTOR {} +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +impl ::core::clone::Clone for TC_IFC_DESCRIPTOR { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for tag_SIPAEVENT_SI_POLICY_PAYLOAD { +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +impl ::core::fmt::Debug for TC_IFC_DESCRIPTOR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TC_IFC_DESCRIPTOR").field("Length", &self.Length).field("pInterfaceName", &self.pInterfaceName).field("pInterfaceID", &self.pInterfaceID).field("AddressListDesc", &self.AddressListDesc).finish() + } +} +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +unsafe impl ::windows::core::Abi for TC_IFC_DESCRIPTOR { type Abi = Self; } -impl ::core::cmp::PartialEq for tag_SIPAEVENT_SI_POLICY_PAYLOAD { +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +impl ::core::cmp::PartialEq for TC_IFC_DESCRIPTOR { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for tag_SIPAEVENT_SI_POLICY_PAYLOAD {} -impl ::core::default::Default for tag_SIPAEVENT_SI_POLICY_PAYLOAD { +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +impl ::core::cmp::Eq for TC_IFC_DESCRIPTOR {} +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +impl ::core::default::Default for TC_IFC_DESCRIPTOR { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD { - pub KeyAlgID: u32, - pub Anonymous: tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0, +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`, `\"Win32_NetworkManagement_Ndis\"`*"] +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +pub struct TC_SUPPORTED_INFO_BUFFER { + pub InstanceIDLength: u16, + pub InstanceID: [u16; 256], + pub InterfaceLuid: u64, + pub AddrListDesc: ADDRESS_LIST_DESCRIPTOR, } -impl ::core::marker::Copy for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD {} -impl ::core::clone::Clone for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD { +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +impl ::core::marker::Copy for TC_SUPPORTED_INFO_BUFFER {} +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +impl ::core::clone::Clone for TC_SUPPORTED_INFO_BUFFER { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD { +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +impl ::core::fmt::Debug for TC_SUPPORTED_INFO_BUFFER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TC_SUPPORTED_INFO_BUFFER").field("InstanceIDLength", &self.InstanceIDLength).field("InstanceID", &self.InstanceID).field("InterfaceLuid", &self.InterfaceLuid).field("AddrListDesc", &self.AddrListDesc).finish() + } +} +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +unsafe impl ::windows::core::Abi for TC_SUPPORTED_INFO_BUFFER { type Abi = Self; } -impl ::core::cmp::PartialEq for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD { +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +impl ::core::cmp::PartialEq for TC_SUPPORTED_INFO_BUFFER { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD {} -impl ::core::default::Default for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD { +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +impl ::core::cmp::Eq for TC_SUPPORTED_INFO_BUFFER {} +#[cfg(feature = "Win32_NetworkManagement_Ndis")] +impl ::core::default::Default for TC_SUPPORTED_INFO_BUFFER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub union tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { - pub RsaKeyInfo: tag_SIPAEVENT_VSM_IDK_RSA_INFO, +pub struct WBCL_Iterator { + pub firstElementPtr: *mut ::core::ffi::c_void, + pub logSize: u32, + pub currentElementPtr: *mut ::core::ffi::c_void, + pub currentElementSize: u32, + pub digestSize: u16, + pub logFormat: u16, + pub numberOfDigests: u32, + pub digestSizes: *mut ::core::ffi::c_void, + pub supportedAlgorithms: u32, + pub hashAlgorithm: u16, } -impl ::core::marker::Copy for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 {} -impl ::core::clone::Clone for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { +impl ::core::marker::Copy for WBCL_Iterator {} +impl ::core::clone::Clone for WBCL_Iterator { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { +unsafe impl ::windows::core::Abi for WBCL_Iterator { type Abi = Self; } -impl ::core::cmp::PartialEq for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { +impl ::core::cmp::PartialEq for WBCL_Iterator { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 {} -impl ::core::default::Default for tag_SIPAEVENT_VSM_IDK_INFO_PAYLOAD_0 { +impl ::core::cmp::Eq for WBCL_Iterator {} +impl ::core::default::Default for WBCL_Iterator { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub struct tag_SIPAEVENT_VSM_IDK_RSA_INFO { - pub KeyBitLength: u32, - pub PublicExpLengthBytes: u32, - pub ModulusSizeBytes: u32, - pub PublicKeyData: [u8; 1], +pub struct WBCL_LogHdr { + pub signature: u32, + pub version: u32, + pub entries: u32, + pub length: u32, } -impl ::core::marker::Copy for tag_SIPAEVENT_VSM_IDK_RSA_INFO {} -impl ::core::clone::Clone for tag_SIPAEVENT_VSM_IDK_RSA_INFO { +impl ::core::marker::Copy for WBCL_LogHdr {} +impl ::core::clone::Clone for WBCL_LogHdr { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for tag_SIPAEVENT_VSM_IDK_RSA_INFO { +unsafe impl ::windows::core::Abi for WBCL_LogHdr { type Abi = Self; } -impl ::core::cmp::PartialEq for tag_SIPAEVENT_VSM_IDK_RSA_INFO { +impl ::core::cmp::PartialEq for WBCL_LogHdr { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for tag_SIPAEVENT_VSM_IDK_RSA_INFO {} -impl ::core::default::Default for tag_SIPAEVENT_VSM_IDK_RSA_INFO { +impl ::core::cmp::Eq for WBCL_LogHdr {} +impl ::core::default::Default for WBCL_LogHdr { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] -pub type CBADMITRESULT = ::core::option::Option *mut u32>; +pub type CBADMITRESULT = ::core::option::Option *mut u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] pub type CBGETRSVPOBJECTS = ::core::option::Option *mut u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_QoS\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs index 1a80f26c65..369f9c0be9 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs @@ -6,7 +6,7 @@ where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmAddGroupMembershipEntry(hprotocol: super::super::Foundation::HANDLE, dwsourceaddr: u32, dwsourcemask: u32, dwgroupaddr: u32, dwgroupmask: u32, dwifindex: u32, dwifnexthopipaddr: u32, dwflags: u32) -> u32; } MgmAddGroupMembershipEntry(hprotocol.into(), dwsourceaddr, dwsourcemask, dwgroupaddr, dwgroupmask, dwifindex, dwifnexthopipaddr, dwflags) @@ -19,7 +19,7 @@ where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmDeRegisterMProtocol(hprotocol: super::super::Foundation::HANDLE) -> u32; } MgmDeRegisterMProtocol(hprotocol.into()) @@ -32,7 +32,7 @@ where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmDeleteGroupMembershipEntry(hprotocol: super::super::Foundation::HANDLE, dwsourceaddr: u32, dwsourcemask: u32, dwgroupaddr: u32, dwgroupmask: u32, dwifindex: u32, dwifnexthopipaddr: u32, dwflags: u32) -> u32; } MgmDeleteGroupMembershipEntry(hprotocol.into(), dwsourceaddr, dwsourcemask, dwgroupaddr, dwgroupmask, dwifindex, dwifnexthopipaddr, dwflags) @@ -41,7 +41,7 @@ where #[inline] pub unsafe fn MgmGetFirstMfe(pdwbuffersize: &mut u32, pbbuffer: &mut u8, pdwnumentries: &mut u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmGetFirstMfe(pdwbuffersize: *mut u32, pbbuffer: *mut u8, pdwnumentries: *mut u32) -> u32; } MgmGetFirstMfe(::core::mem::transmute(pdwbuffersize), ::core::mem::transmute(pbbuffer), ::core::mem::transmute(pdwnumentries)) @@ -50,7 +50,7 @@ pub unsafe fn MgmGetFirstMfe(pdwbuffersize: &mut u32, pbbuffer: &mut u8, pdwnume #[inline] pub unsafe fn MgmGetFirstMfeStats(pdwbuffersize: &mut u32, pbbuffer: &mut u8, pdwnumentries: &mut u32, dwflags: u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmGetFirstMfeStats(pdwbuffersize: *mut u32, pbbuffer: *mut u8, pdwnumentries: *mut u32, dwflags: u32) -> u32; } MgmGetFirstMfeStats(::core::mem::transmute(pdwbuffersize), ::core::mem::transmute(pbbuffer), ::core::mem::transmute(pdwnumentries), dwflags) @@ -60,7 +60,7 @@ pub unsafe fn MgmGetFirstMfeStats(pdwbuffersize: &mut u32, pbbuffer: &mut u8, pd #[inline] pub unsafe fn MgmGetMfe(pimm: &mut super::IpHelper::MIB_IPMCAST_MFE, pdwbuffersize: &mut u32, pbbuffer: &mut u8) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmGetMfe(pimm: *mut super::IpHelper::MIB_IPMCAST_MFE, pdwbuffersize: *mut u32, pbbuffer: *mut u8) -> u32; } MgmGetMfe(::core::mem::transmute(pimm), ::core::mem::transmute(pdwbuffersize), ::core::mem::transmute(pbbuffer)) @@ -70,7 +70,7 @@ pub unsafe fn MgmGetMfe(pimm: &mut super::IpHelper::MIB_IPMCAST_MFE, pdwbuffersi #[inline] pub unsafe fn MgmGetMfeStats(pimm: &mut super::IpHelper::MIB_IPMCAST_MFE, pdwbuffersize: &mut u32, pbbuffer: &mut u8, dwflags: u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmGetMfeStats(pimm: *mut super::IpHelper::MIB_IPMCAST_MFE, pdwbuffersize: *mut u32, pbbuffer: *mut u8, dwflags: u32) -> u32; } MgmGetMfeStats(::core::mem::transmute(pimm), ::core::mem::transmute(pdwbuffersize), ::core::mem::transmute(pbbuffer), dwflags) @@ -80,7 +80,7 @@ pub unsafe fn MgmGetMfeStats(pimm: &mut super::IpHelper::MIB_IPMCAST_MFE, pdwbuf #[inline] pub unsafe fn MgmGetNextMfe(pimmstart: &mut super::IpHelper::MIB_IPMCAST_MFE, pdwbuffersize: &mut u32, pbbuffer: &mut u8, pdwnumentries: &mut u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmGetNextMfe(pimmstart: *mut super::IpHelper::MIB_IPMCAST_MFE, pdwbuffersize: *mut u32, pbbuffer: *mut u8, pdwnumentries: *mut u32) -> u32; } MgmGetNextMfe(::core::mem::transmute(pimmstart), ::core::mem::transmute(pdwbuffersize), ::core::mem::transmute(pbbuffer), ::core::mem::transmute(pdwnumentries)) @@ -90,7 +90,7 @@ pub unsafe fn MgmGetNextMfe(pimmstart: &mut super::IpHelper::MIB_IPMCAST_MFE, pd #[inline] pub unsafe fn MgmGetNextMfeStats(pimmstart: &mut super::IpHelper::MIB_IPMCAST_MFE, pdwbuffersize: &mut u32, pbbuffer: &mut u8, pdwnumentries: &mut u32, dwflags: u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmGetNextMfeStats(pimmstart: *mut super::IpHelper::MIB_IPMCAST_MFE, pdwbuffersize: *mut u32, pbbuffer: *mut u8, pdwnumentries: *mut u32, dwflags: u32) -> u32; } MgmGetNextMfeStats(::core::mem::transmute(pimmstart), ::core::mem::transmute(pdwbuffersize), ::core::mem::transmute(pbbuffer), ::core::mem::transmute(pdwnumentries), dwflags) @@ -99,7 +99,7 @@ pub unsafe fn MgmGetNextMfeStats(pimmstart: &mut super::IpHelper::MIB_IPMCAST_MF #[inline] pub unsafe fn MgmGetProtocolOnInterface(dwifindex: u32, dwifnexthopaddr: u32, pdwifprotocolid: &mut u32, pdwifcomponentid: &mut u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmGetProtocolOnInterface(dwifindex: u32, dwifnexthopaddr: u32, pdwifprotocolid: *mut u32, pdwifcomponentid: *mut u32) -> u32; } MgmGetProtocolOnInterface(dwifindex, dwifnexthopaddr, ::core::mem::transmute(pdwifprotocolid), ::core::mem::transmute(pdwifcomponentid)) @@ -112,7 +112,7 @@ where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmGroupEnumerationEnd(henum: super::super::Foundation::HANDLE) -> u32; } MgmGroupEnumerationEnd(henum.into()) @@ -125,7 +125,7 @@ where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmGroupEnumerationGetNext(henum: super::super::Foundation::HANDLE, pdwbuffersize: *mut u32, pbbuffer: *mut u8, pdwnumentries: *mut u32) -> u32; } MgmGroupEnumerationGetNext(henum.into(), ::core::mem::transmute(pdwbuffersize), ::core::mem::transmute(pbbuffer), ::core::mem::transmute(pdwnumentries)) @@ -138,7 +138,7 @@ where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmGroupEnumerationStart(hprotocol: super::super::Foundation::HANDLE, metenumtype: MGM_ENUM_TYPES, phenumhandle: *mut super::super::Foundation::HANDLE) -> u32; } MgmGroupEnumerationStart(hprotocol.into(), metenumtype, ::core::mem::transmute(phenumhandle)) @@ -148,7 +148,7 @@ where #[inline] pub unsafe fn MgmRegisterMProtocol(prpiinfo: &mut ROUTING_PROTOCOL_CONFIG, dwprotocolid: u32, dwcomponentid: u32, phprotocol: &mut super::super::Foundation::HANDLE) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmRegisterMProtocol(prpiinfo: *mut ROUTING_PROTOCOL_CONFIG, dwprotocolid: u32, dwcomponentid: u32, phprotocol: *mut super::super::Foundation::HANDLE) -> u32; } MgmRegisterMProtocol(::core::mem::transmute(prpiinfo), dwprotocolid, dwcomponentid, ::core::mem::transmute(phprotocol)) @@ -161,7 +161,7 @@ where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmReleaseInterfaceOwnership(hprotocol: super::super::Foundation::HANDLE, dwifindex: u32, dwifnexthopaddr: u32) -> u32; } MgmReleaseInterfaceOwnership(hprotocol.into(), dwifindex, dwifnexthopaddr) @@ -174,31 +174,11 @@ where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn MgmTakeInterfaceOwnership(hprotocol: super::super::Foundation::HANDLE, dwifindex: u32, dwifnexthopaddr: u32) -> u32; } MgmTakeInterfaceOwnership(hprotocol.into(), dwifindex, dwifnexthopaddr) } -#[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] -#[cfg(feature = "Win32_Networking_WinSock")] -#[inline] -pub unsafe fn RtmConvertIpv6AddressAndLengthToNetAddress(pnetaddress: &mut RTM_NET_ADDRESS, address: super::super::Networking::WinSock::IN6_ADDR, dwlength: u32, dwaddresssize: u32) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RtmConvertIpv6AddressAndLengthToNetAddress(pnetaddress: *mut RTM_NET_ADDRESS, address: super::super::Networking::WinSock::IN6_ADDR, dwlength: u32, dwaddresssize: u32) -> u32; - } - RtmConvertIpv6AddressAndLengthToNetAddress(::core::mem::transmute(pnetaddress), ::core::mem::transmute(address), dwlength, dwaddresssize) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] -#[cfg(feature = "Win32_Networking_WinSock")] -#[inline] -pub unsafe fn RtmConvertNetAddressToIpv6AddressAndLength(pnetaddress: &mut RTM_NET_ADDRESS, paddress: &mut super::super::Networking::WinSock::IN6_ADDR, plength: &mut u32, dwaddresssize: u32) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RtmConvertNetAddressToIpv6AddressAndLength(pnetaddress: *mut RTM_NET_ADDRESS, paddress: *mut super::super::Networking::WinSock::IN6_ADDR, plength: *mut u32, dwaddresssize: u32) -> u32; - } - RtmConvertNetAddressToIpv6AddressAndLength(::core::mem::transmute(pnetaddress), ::core::mem::transmute(paddress), ::core::mem::transmute(plength), dwaddresssize) -} #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`*"] #[inline] pub unsafe fn MprAdminBufferFree(pbuffer: *const ::core::ffi::c_void) -> u32 { @@ -2713,6 +2693,26 @@ where } RtmBlockMethods(rtmreghandle, targethandle.into(), targettype, blockingflag) } +#[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] +#[cfg(feature = "Win32_Networking_WinSock")] +#[inline] +pub unsafe fn RtmConvertIpv6AddressAndLengthToNetAddress(pnetaddress: &mut RTM_NET_ADDRESS, address: super::super::Networking::WinSock::IN6_ADDR, dwlength: u32, dwaddresssize: u32) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RtmConvertIpv6AddressAndLengthToNetAddress(pnetaddress: *mut RTM_NET_ADDRESS, address: super::super::Networking::WinSock::IN6_ADDR, dwlength: u32, dwaddresssize: u32) -> u32; + } + RtmConvertIpv6AddressAndLengthToNetAddress(::core::mem::transmute(pnetaddress), ::core::mem::transmute(address), dwlength, dwaddresssize) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] +#[cfg(feature = "Win32_Networking_WinSock")] +#[inline] +pub unsafe fn RtmConvertNetAddressToIpv6AddressAndLength(pnetaddress: &mut RTM_NET_ADDRESS, paddress: &mut super::super::Networking::WinSock::IN6_ADDR, plength: &mut u32, dwaddresssize: u32) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RtmConvertNetAddressToIpv6AddressAndLength(pnetaddress: *mut RTM_NET_ADDRESS, paddress: *mut super::super::Networking::WinSock::IN6_ADDR, plength: *mut u32, dwaddresssize: u32) -> u32; + } + RtmConvertNetAddressToIpv6AddressAndLength(::core::mem::transmute(pnetaddress), ::core::mem::transmute(paddress), ::core::mem::transmute(plength), dwaddresssize) +} #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`*"] #[inline] pub unsafe fn RtmCreateDestEnum(rtmreghandle: isize, targetviews: u32, enumflags: u32, netaddress: &mut RTM_NET_ADDRESS, protocolid: u32, rtmenumhandle: &mut isize) -> u32 { @@ -7382,11 +7382,49 @@ impl ::core::default::Default for MPR_TRANSPORT_0 { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] #[cfg(feature = "Win32_Networking_WinSock")] +pub struct MPR_VPN_TRAFFIC_SELECTOR { + pub r#type: MPR_VPN_TS_TYPE, + pub protocolId: u8, + pub portStart: u16, + pub portEnd: u16, + pub tsPayloadId: u16, + pub addrStart: VPN_TS_IP_ADDRESS, + pub addrEnd: VPN_TS_IP_ADDRESS, +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::marker::Copy for MPR_VPN_TRAFFIC_SELECTOR {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::clone::Clone for MPR_VPN_TRAFFIC_SELECTOR { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Networking_WinSock")] +unsafe impl ::windows::core::Abi for MPR_VPN_TRAFFIC_SELECTOR { + type Abi = Self; +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::cmp::PartialEq for MPR_VPN_TRAFFIC_SELECTOR { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::cmp::Eq for MPR_VPN_TRAFFIC_SELECTOR {} +#[cfg(feature = "Win32_Networking_WinSock")] +impl ::core::default::Default for MPR_VPN_TRAFFIC_SELECTOR { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] +#[cfg(feature = "Win32_Networking_WinSock")] pub struct MPR_VPN_TRAFFIC_SELECTORS { pub numTsi: u32, pub numTsr: u32, - pub tsI: *mut _MPR_VPN_SELECTOR, - pub tsR: *mut _MPR_VPN_SELECTOR, + pub tsI: *mut MPR_VPN_TRAFFIC_SELECTOR, + pub tsR: *mut MPR_VPN_TRAFFIC_SELECTOR, } #[cfg(feature = "Win32_Networking_WinSock")] impl ::core::marker::Copy for MPR_VPN_TRAFFIC_SELECTORS {} @@ -11966,44 +12004,6 @@ impl ::core::default::Default for VPN_TS_IP_ADDRESS_0 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Networking_WinSock\"`*"] -#[cfg(feature = "Win32_Networking_WinSock")] -pub struct _MPR_VPN_SELECTOR { - pub r#type: MPR_VPN_TS_TYPE, - pub protocolId: u8, - pub portStart: u16, - pub portEnd: u16, - pub tsPayloadId: u16, - pub addrStart: VPN_TS_IP_ADDRESS, - pub addrEnd: VPN_TS_IP_ADDRESS, -} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::marker::Copy for _MPR_VPN_SELECTOR {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::clone::Clone for _MPR_VPN_SELECTOR { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Networking_WinSock")] -unsafe impl ::windows::core::Abi for _MPR_VPN_SELECTOR { - type Abi = Self; -} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::PartialEq for _MPR_VPN_SELECTOR { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_MPR_VPN_SELECTOR>()) == 0 } - } -} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::cmp::Eq for _MPR_VPN_SELECTOR {} -#[cfg(feature = "Win32_Networking_WinSock")] -impl ::core::default::Default for _MPR_VPN_SELECTOR { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_NetworkManagement_Rras\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type ORASADFUNC = ::core::option::Option super::super::Foundation::BOOL>; diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs index f4c335f66e..31ed2ae1a1 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs @@ -1331,7 +1331,7 @@ impl ::core::fmt::Debug for SNMP_STATUS { f.debug_tuple("SNMP_STATUS").field(&self.0).finish() } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_NetworkManagement_Snmp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct AsnAny { @@ -1467,7 +1467,7 @@ impl ::core::default::Default for AsnOctetString { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_NetworkManagement_Snmp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct SnmpVarBind { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs index 8263a6825b..cfecaa7409 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs @@ -1,31 +1,5 @@ #[doc = "*Required features: `\"Win32_NetworkManagement_WNet\"`*"] #[inline] -pub unsafe fn WNetSetLastErrorA<'a, P0, P1>(err: u32, lperror: P0, lpproviders: P1) -where - P0: ::std::convert::Into<::windows::core::PCSTR>, - P1: ::std::convert::Into<::windows::core::PCSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WNetSetLastErrorA(err: u32, lperror: ::windows::core::PCSTR, lpproviders: ::windows::core::PCSTR); - } - WNetSetLastErrorA(err, lperror.into(), lpproviders.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_WNet\"`*"] -#[inline] -pub unsafe fn WNetSetLastErrorW<'a, P0, P1>(err: u32, lperror: P0, lpproviders: P1) -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WNetSetLastErrorW(err: u32, lperror: ::windows::core::PCWSTR, lpproviders: ::windows::core::PCWSTR); - } - WNetSetLastErrorW(err, lperror.into(), lpproviders.into()) -} -#[doc = "*Required features: `\"Win32_NetworkManagement_WNet\"`*"] -#[inline] pub unsafe fn MultinetGetConnectionPerformanceA(lpnetresource: &NETRESOURCEA, lpnetconnectinfostruct: &mut NETCONNECTINFOSTRUCT) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -717,6 +691,32 @@ pub unsafe fn WNetOpenEnumW(dwscope: NET_RESOURCE_SCOPE, dwtype: NET_RESOURCE_TY } WNetOpenEnumW(dwscope, dwtype, dwusage, ::core::mem::transmute(lpnetresource), ::core::mem::transmute(lphenum)) } +#[doc = "*Required features: `\"Win32_NetworkManagement_WNet\"`*"] +#[inline] +pub unsafe fn WNetSetLastErrorA<'a, P0, P1>(err: u32, lperror: P0, lpproviders: P1) +where + P0: ::std::convert::Into<::windows::core::PCSTR>, + P1: ::std::convert::Into<::windows::core::PCSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WNetSetLastErrorA(err: u32, lperror: ::windows::core::PCSTR, lpproviders: ::windows::core::PCSTR); + } + WNetSetLastErrorA(err, lperror.into(), lpproviders.into()) +} +#[doc = "*Required features: `\"Win32_NetworkManagement_WNet\"`*"] +#[inline] +pub unsafe fn WNetSetLastErrorW<'a, P0, P1>(err: u32, lperror: P0, lpproviders: P1) +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WNetSetLastErrorW(err: u32, lperror: ::windows::core::PCWSTR, lpproviders: ::windows::core::PCWSTR); + } + WNetSetLastErrorW(err, lperror.into(), lpproviders.into()) +} #[doc = "*Required features: `\"Win32_NetworkManagement_WNet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] 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 378a5fca65..b37cd1284c 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs @@ -14801,6 +14801,38 @@ impl ::core::default::Default for DOT11_WME_AC_PARAMETERS { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`*"] +pub struct DOT11_WME_AC_PARAMETERS_LIST { + pub uNumOfEntries: u32, + pub uTotalNumOfEntries: u32, + pub dot11WMEACParameters: [DOT11_WME_AC_PARAMETERS; 1], +} +impl ::core::marker::Copy for DOT11_WME_AC_PARAMETERS_LIST {} +impl ::core::clone::Clone for DOT11_WME_AC_PARAMETERS_LIST { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for DOT11_WME_AC_PARAMETERS_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("DOT11_WME_AC_PARAMETERS_LIST").field("uNumOfEntries", &self.uNumOfEntries).field("uTotalNumOfEntries", &self.uTotalNumOfEntries).field("dot11WMEACParameters", &self.dot11WMEACParameters).finish() + } +} +unsafe impl ::windows::core::Abi for DOT11_WME_AC_PARAMETERS_LIST { + type Abi = Self; +} +impl ::core::cmp::PartialEq for DOT11_WME_AC_PARAMETERS_LIST { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for DOT11_WME_AC_PARAMETERS_LIST {} +impl ::core::default::Default for DOT11_WME_AC_PARAMETERS_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`*"] pub struct DOT11_WME_UPDATE_IE { pub uParamElemMinBeaconIntervals: u32, pub uWMEInfoElemOffset: u32, @@ -16786,38 +16818,6 @@ impl ::core::default::Default for WLAN_STATISTICS { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`*"] -pub struct _DOT11_WME_AC_PARAMTERS_LIST { - pub uNumOfEntries: u32, - pub uTotalNumOfEntries: u32, - pub dot11WMEACParameters: [DOT11_WME_AC_PARAMETERS; 1], -} -impl ::core::marker::Copy for _DOT11_WME_AC_PARAMTERS_LIST {} -impl ::core::clone::Clone for _DOT11_WME_AC_PARAMTERS_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _DOT11_WME_AC_PARAMTERS_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_DOT11_WME_AC_PARAMTERS_LIST").field("uNumOfEntries", &self.uNumOfEntries).field("uTotalNumOfEntries", &self.uTotalNumOfEntries).field("dot11WMEACParameters", &self.dot11WMEACParameters).finish() - } -} -unsafe impl ::windows::core::Abi for _DOT11_WME_AC_PARAMTERS_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _DOT11_WME_AC_PARAMTERS_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_DOT11_WME_AC_PARAMTERS_LIST>()) == 0 } - } -} -impl ::core::cmp::Eq for _DOT11_WME_AC_PARAMTERS_LIST {} -impl ::core::default::Default for _DOT11_WME_AC_PARAMTERS_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_NetworkManagement_WiFi\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type DOT11EXTIHV_ADAPTER_RESET = ::core::option::Option u32>; diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs index 7c8c30b083..764792a74d 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs @@ -618,14 +618,14 @@ where #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn FwpmIPsecTunnelAdd3<'a, P0, P1>(enginehandle: P0, flags: u32, mainmodepolicy: ::core::option::Option<&FWPM_PROVIDER_CONTEXT3_>, tunnelpolicy: &FWPM_PROVIDER_CONTEXT3_, filterconditions: &[FWPM_FILTER_CONDITION0], keymodkey: ::core::option::Option<&::windows::core::GUID>, sd: P1) -> u32 +pub unsafe fn FwpmIPsecTunnelAdd3<'a, P0, P1>(enginehandle: P0, flags: u32, mainmodepolicy: ::core::option::Option<&FWPM_PROVIDER_CONTEXT3>, tunnelpolicy: &FWPM_PROVIDER_CONTEXT3, filterconditions: &[FWPM_FILTER_CONDITION0], keymodkey: ::core::option::Option<&::windows::core::GUID>, sd: P1) -> u32 where P0: ::std::convert::Into, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn FwpmIPsecTunnelAdd3(enginehandle: super::super::Foundation::HANDLE, flags: u32, mainmodepolicy: *const FWPM_PROVIDER_CONTEXT3_, tunnelpolicy: *const FWPM_PROVIDER_CONTEXT3_, numfilterconditions: u32, filterconditions: *const FWPM_FILTER_CONDITION0, keymodkey: *const ::windows::core::GUID, sd: super::super::Security::PSECURITY_DESCRIPTOR) -> u32; + fn FwpmIPsecTunnelAdd3(enginehandle: super::super::Foundation::HANDLE, flags: u32, mainmodepolicy: *const FWPM_PROVIDER_CONTEXT3, tunnelpolicy: *const FWPM_PROVIDER_CONTEXT3, numfilterconditions: u32, filterconditions: *const FWPM_FILTER_CONDITION0, keymodkey: *const ::windows::core::GUID, sd: super::super::Security::PSECURITY_DESCRIPTOR) -> u32; } FwpmIPsecTunnelAdd3(enginehandle.into(), flags, ::core::mem::transmute(mainmodepolicy), ::core::mem::transmute(tunnelpolicy), filterconditions.len() as _, ::core::mem::transmute(filterconditions.as_ptr()), ::core::mem::transmute(keymodkey), sd.into()) } @@ -821,28 +821,28 @@ where #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn FwpmNetEventEnum4<'a, P0, P1>(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: &mut *mut *mut FWPM_NET_EVENT4_, numentriesreturned: &mut u32) -> u32 +pub unsafe fn FwpmNetEventEnum4<'a, P0, P1>(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: &mut *mut *mut FWPM_NET_EVENT4, numentriesreturned: &mut u32) -> u32 where P0: ::std::convert::Into, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn FwpmNetEventEnum4(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT4_, numentriesreturned: *mut u32) -> u32; + fn FwpmNetEventEnum4(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT4, numentriesreturned: *mut u32) -> u32; } FwpmNetEventEnum4(enginehandle.into(), enumhandle.into(), numentriesrequested, ::core::mem::transmute(entries), ::core::mem::transmute(numentriesreturned)) } #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn FwpmNetEventEnum5<'a, P0, P1>(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: &mut *mut *mut FWPM_NET_EVENT5_, numentriesreturned: &mut u32) -> u32 +pub unsafe fn FwpmNetEventEnum5<'a, P0, P1>(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: &mut *mut *mut FWPM_NET_EVENT5, numentriesreturned: &mut u32) -> u32 where P0: ::std::convert::Into, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn FwpmNetEventEnum5(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT5_, numentriesreturned: *mut u32) -> u32; + fn FwpmNetEventEnum5(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_NET_EVENT5, numentriesreturned: *mut u32) -> u32; } FwpmNetEventEnum5(enginehandle.into(), enumhandle.into(), numentriesrequested, ::core::mem::transmute(entries), ::core::mem::transmute(numentriesreturned)) } @@ -1023,14 +1023,14 @@ where #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn FwpmProviderContextAdd3<'a, P0, P1>(enginehandle: P0, providercontext: &FWPM_PROVIDER_CONTEXT3_, sd: P1, id: ::core::option::Option<&mut u64>) -> u32 +pub unsafe fn FwpmProviderContextAdd3<'a, P0, P1>(enginehandle: P0, providercontext: &FWPM_PROVIDER_CONTEXT3, sd: P1, id: ::core::option::Option<&mut u64>) -> u32 where P0: ::std::convert::Into, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn FwpmProviderContextAdd3(enginehandle: super::super::Foundation::HANDLE, providercontext: *const FWPM_PROVIDER_CONTEXT3_, sd: super::super::Security::PSECURITY_DESCRIPTOR, id: *mut u64) -> u32; + fn FwpmProviderContextAdd3(enginehandle: super::super::Foundation::HANDLE, providercontext: *const FWPM_PROVIDER_CONTEXT3, sd: super::super::Security::PSECURITY_DESCRIPTOR, id: *mut u64) -> u32; } FwpmProviderContextAdd3(enginehandle.into(), ::core::mem::transmute(providercontext), sd.into(), ::core::mem::transmute(id)) } @@ -1132,14 +1132,14 @@ where #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn FwpmProviderContextEnum3<'a, P0, P1>(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: &mut *mut *mut FWPM_PROVIDER_CONTEXT3_, numentriesreturned: &mut u32) -> u32 +pub unsafe fn FwpmProviderContextEnum3<'a, P0, P1>(enginehandle: P0, enumhandle: P1, numentriesrequested: u32, entries: &mut *mut *mut FWPM_PROVIDER_CONTEXT3, numentriesreturned: &mut u32) -> u32 where P0: ::std::convert::Into, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn FwpmProviderContextEnum3(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT3_, numentriesreturned: *mut u32) -> u32; + fn FwpmProviderContextEnum3(enginehandle: super::super::Foundation::HANDLE, enumhandle: super::super::Foundation::HANDLE, numentriesrequested: u32, entries: *mut *mut *mut FWPM_PROVIDER_CONTEXT3, numentriesreturned: *mut u32) -> u32; } FwpmProviderContextEnum3(enginehandle.into(), enumhandle.into(), numentriesrequested, ::core::mem::transmute(entries), ::core::mem::transmute(numentriesreturned)) } @@ -1185,13 +1185,13 @@ where #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn FwpmProviderContextGetById3<'a, P0>(enginehandle: P0, id: u64, providercontext: &mut *mut FWPM_PROVIDER_CONTEXT3_) -> u32 +pub unsafe fn FwpmProviderContextGetById3<'a, P0>(enginehandle: P0, id: u64, providercontext: &mut *mut FWPM_PROVIDER_CONTEXT3) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn FwpmProviderContextGetById3(enginehandle: super::super::Foundation::HANDLE, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT3_) -> u32; + fn FwpmProviderContextGetById3(enginehandle: super::super::Foundation::HANDLE, id: u64, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT3) -> u32; } FwpmProviderContextGetById3(enginehandle.into(), id, ::core::mem::transmute(providercontext)) } @@ -1237,13 +1237,13 @@ where #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] -pub unsafe fn FwpmProviderContextGetByKey3<'a, P0>(enginehandle: P0, key: &::windows::core::GUID, providercontext: &mut *mut FWPM_PROVIDER_CONTEXT3_) -> u32 +pub unsafe fn FwpmProviderContextGetByKey3<'a, P0>(enginehandle: P0, key: &::windows::core::GUID, providercontext: &mut *mut FWPM_PROVIDER_CONTEXT3) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn FwpmProviderContextGetByKey3(enginehandle: super::super::Foundation::HANDLE, key: *const ::windows::core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT3_) -> u32; + fn FwpmProviderContextGetByKey3(enginehandle: super::super::Foundation::HANDLE, key: *const ::windows::core::GUID, providercontext: *mut *mut FWPM_PROVIDER_CONTEXT3) -> u32; } FwpmProviderContextGetByKey3(enginehandle.into(), ::core::mem::transmute(key), ::core::mem::transmute(providercontext)) } @@ -6613,33 +6613,33 @@ impl ::core::default::Default for FWPM_NET_EVENT3_0 { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub struct FWPM_NET_EVENT4_ { +pub struct FWPM_NET_EVENT4 { pub header: FWPM_NET_EVENT_HEADER3, pub r#type: FWPM_NET_EVENT_TYPE, - pub Anonymous: FWPM_NET_EVENT4__0, + pub Anonymous: FWPM_NET_EVENT4_0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT4_ {} +impl ::core::marker::Copy for FWPM_NET_EVENT4 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT4_ { +impl ::core::clone::Clone for FWPM_NET_EVENT4 { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -unsafe impl ::windows::core::Abi for FWPM_NET_EVENT4_ { +unsafe impl ::windows::core::Abi for FWPM_NET_EVENT4 { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::PartialEq for FWPM_NET_EVENT4_ { +impl ::core::cmp::PartialEq for FWPM_NET_EVENT4 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::Eq for FWPM_NET_EVENT4_ {} +impl ::core::cmp::Eq for FWPM_NET_EVENT4 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::default::Default for FWPM_NET_EVENT4_ { +impl ::core::default::Default for FWPM_NET_EVENT4 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -6647,9 +6647,9 @@ impl ::core::default::Default for FWPM_NET_EVENT4_ { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub union FWPM_NET_EVENT4__0 { - pub ikeMmFailure: *mut FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_, - pub ikeQmFailure: *mut FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_, +pub union FWPM_NET_EVENT4_0 { + pub ikeMmFailure: *mut FWPM_NET_EVENT_IKEEXT_MM_FAILURE2, + pub ikeQmFailure: *mut FWPM_NET_EVENT_IKEEXT_QM_FAILURE1, pub ikeEmFailure: *mut FWPM_NET_EVENT_IKEEXT_EM_FAILURE1, pub classifyDrop: *mut FWPM_NET_EVENT_CLASSIFY_DROP2, pub ipsecDrop: *mut FWPM_NET_EVENT_IPSEC_KERNEL_DROP0, @@ -6660,27 +6660,27 @@ pub union FWPM_NET_EVENT4__0 { pub classifyDropMac: *mut FWPM_NET_EVENT_CLASSIFY_DROP_MAC0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT4__0 {} +impl ::core::marker::Copy for FWPM_NET_EVENT4_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT4__0 { +impl ::core::clone::Clone for FWPM_NET_EVENT4_0 { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -unsafe impl ::windows::core::Abi for FWPM_NET_EVENT4__0 { +unsafe impl ::windows::core::Abi for FWPM_NET_EVENT4_0 { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::PartialEq for FWPM_NET_EVENT4__0 { +impl ::core::cmp::PartialEq for FWPM_NET_EVENT4_0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::Eq for FWPM_NET_EVENT4__0 {} +impl ::core::cmp::Eq for FWPM_NET_EVENT4_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::default::Default for FWPM_NET_EVENT4__0 { +impl ::core::default::Default for FWPM_NET_EVENT4_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -6688,33 +6688,33 @@ impl ::core::default::Default for FWPM_NET_EVENT4__0 { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub struct FWPM_NET_EVENT5_ { +pub struct FWPM_NET_EVENT5 { pub header: FWPM_NET_EVENT_HEADER3, pub r#type: FWPM_NET_EVENT_TYPE, - pub Anonymous: FWPM_NET_EVENT5__0, + pub Anonymous: FWPM_NET_EVENT5_0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT5_ {} +impl ::core::marker::Copy for FWPM_NET_EVENT5 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT5_ { +impl ::core::clone::Clone for FWPM_NET_EVENT5 { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -unsafe impl ::windows::core::Abi for FWPM_NET_EVENT5_ { +unsafe impl ::windows::core::Abi for FWPM_NET_EVENT5 { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::PartialEq for FWPM_NET_EVENT5_ { +impl ::core::cmp::PartialEq for FWPM_NET_EVENT5 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::Eq for FWPM_NET_EVENT5_ {} +impl ::core::cmp::Eq for FWPM_NET_EVENT5 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::default::Default for FWPM_NET_EVENT5_ { +impl ::core::default::Default for FWPM_NET_EVENT5 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -6722,9 +6722,9 @@ impl ::core::default::Default for FWPM_NET_EVENT5_ { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub union FWPM_NET_EVENT5__0 { - pub ikeMmFailure: *mut FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_, - pub ikeQmFailure: *mut FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_, +pub union FWPM_NET_EVENT5_0 { + pub ikeMmFailure: *mut FWPM_NET_EVENT_IKEEXT_MM_FAILURE2, + pub ikeQmFailure: *mut FWPM_NET_EVENT_IKEEXT_QM_FAILURE1, pub ikeEmFailure: *mut FWPM_NET_EVENT_IKEEXT_EM_FAILURE1, pub classifyDrop: *mut FWPM_NET_EVENT_CLASSIFY_DROP2, pub ipsecDrop: *mut FWPM_NET_EVENT_IPSEC_KERNEL_DROP0, @@ -6733,30 +6733,30 @@ pub union FWPM_NET_EVENT5__0 { pub capabilityDrop: *mut FWPM_NET_EVENT_CAPABILITY_DROP0, pub capabilityAllow: *mut FWPM_NET_EVENT_CAPABILITY_ALLOW0, pub classifyDropMac: *mut FWPM_NET_EVENT_CLASSIFY_DROP_MAC0, - pub lpmPacketArrival: *mut FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_, + pub lpmPacketArrival: *mut FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT5__0 {} +impl ::core::marker::Copy for FWPM_NET_EVENT5_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT5__0 { +impl ::core::clone::Clone for FWPM_NET_EVENT5_0 { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -unsafe impl ::windows::core::Abi for FWPM_NET_EVENT5__0 { +unsafe impl ::windows::core::Abi for FWPM_NET_EVENT5_0 { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::PartialEq for FWPM_NET_EVENT5__0 { +impl ::core::cmp::PartialEq for FWPM_NET_EVENT5_0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::Eq for FWPM_NET_EVENT5__0 {} +impl ::core::cmp::Eq for FWPM_NET_EVENT5_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::default::Default for FWPM_NET_EVENT5__0 { +impl ::core::default::Default for FWPM_NET_EVENT5_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -7921,7 +7921,7 @@ impl ::core::default::Default for FWPM_NET_EVENT_IKEEXT_MM_FAILURE1 { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub struct FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ { +pub struct FWPM_NET_EVENT_IKEEXT_MM_FAILURE2 { pub failureErrorCode: u32, pub failurePoint: IPSEC_FAILURE_POINT, pub flags: u32, @@ -7940,15 +7940,15 @@ pub struct FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ { pub remotePrincipalGroupSids: *mut ::windows::core::PWSTR, pub providerContextKey: *mut ::windows::core::GUID, } -impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ {} -impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ { +impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2 {} +impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2 { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ { +impl ::core::fmt::Debug for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_") + f.debug_struct("FWPM_NET_EVENT_IKEEXT_MM_FAILURE2") .field("failureErrorCode", &self.failureErrorCode) .field("failurePoint", &self.failurePoint) .field("flags", &self.flags) @@ -7969,16 +7969,16 @@ impl ::core::fmt::Debug for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ { .finish() } } -unsafe impl ::windows::core::Abi for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ { +unsafe impl ::windows::core::Abi for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2 { type Abi = Self; } -impl ::core::cmp::PartialEq for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ { +impl ::core::cmp::PartialEq for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ {} -impl ::core::default::Default for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2_ { +impl ::core::cmp::Eq for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2 {} +impl ::core::default::Default for FWPM_NET_EVENT_IKEEXT_MM_FAILURE2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -8090,41 +8090,41 @@ impl ::core::default::Default for FWPM_NET_EVENT_IKEEXT_QM_FAILURE0_1 { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub struct FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_ { +pub struct FWPM_NET_EVENT_IKEEXT_QM_FAILURE1 { pub failureErrorCode: u32, pub failurePoint: IPSEC_FAILURE_POINT, pub keyingModuleType: IKEEXT_KEY_MODULE_TYPE, pub qmState: IKEEXT_QM_SA_STATE, pub saRole: IKEEXT_SA_ROLE, pub saTrafficType: IPSEC_TRAFFIC_TYPE, - pub Anonymous1: FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0, - pub Anonymous2: FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__1, + pub Anonymous1: FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_0, + pub Anonymous2: FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_1, pub qmFilterId: u64, pub mmSaLuid: u64, pub mmProviderContextKey: ::windows::core::GUID, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_ {} +impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_ { +impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1 { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -unsafe impl ::windows::core::Abi for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_ { +unsafe impl ::windows::core::Abi for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1 { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::PartialEq for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_ { +impl ::core::cmp::PartialEq for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::Eq for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_ {} +impl ::core::cmp::Eq for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::default::Default for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_ { +impl ::core::default::Default for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -8132,31 +8132,31 @@ impl ::core::default::Default for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_ { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub union FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0 { +pub union FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_0 { pub localSubNet: FWP_CONDITION_VALUE0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0 {} +impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0 { +impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_0 { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -unsafe impl ::windows::core::Abi for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0 { +unsafe impl ::windows::core::Abi for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_0 { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::PartialEq for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0 { +impl ::core::cmp::PartialEq for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::Eq for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0 {} +impl ::core::cmp::Eq for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::default::Default for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0 { +impl ::core::default::Default for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -8164,31 +8164,31 @@ impl ::core::default::Default for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__0 { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub union FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__1 { +pub union FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_1 { pub remoteSubNet: FWP_CONDITION_VALUE0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__1 {} +impl ::core::marker::Copy for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_1 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__1 { +impl ::core::clone::Clone for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_1 { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -unsafe impl ::windows::core::Abi for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__1 { +unsafe impl ::windows::core::Abi for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_1 { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::PartialEq for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__1 { +impl ::core::cmp::PartialEq for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_1 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::Eq for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__1 {} +impl ::core::cmp::Eq for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_1 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::default::Default for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1__1 { +impl ::core::default::Default for FWPM_NET_EVENT_IKEEXT_QM_FAILURE1_1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -8310,30 +8310,30 @@ impl ::core::default::Default for FWPM_NET_EVENT_IPSEC_KERNEL_DROP0 { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub struct FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_ { +pub struct FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0 { pub spi: u32, } -impl ::core::marker::Copy for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_ {} -impl ::core::clone::Clone for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_ { +impl ::core::marker::Copy for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0 {} +impl ::core::clone::Clone for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0 { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_ { +impl ::core::fmt::Debug for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_").field("spi", &self.spi).finish() + f.debug_struct("FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0").field("spi", &self.spi).finish() } } -unsafe impl ::windows::core::Abi for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_ { +unsafe impl ::windows::core::Abi for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0 { type Abi = Self; } -impl ::core::cmp::PartialEq for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_ { +impl ::core::cmp::PartialEq for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_ {} -impl ::core::default::Default for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0_ { +impl ::core::cmp::Eq for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0 {} +impl ::core::default::Default for FWPM_NET_EVENT_LPM_PACKET_ARRIVAL0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -8690,38 +8690,38 @@ impl ::core::default::Default for FWPM_PROVIDER_CONTEXT2_0 { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub struct FWPM_PROVIDER_CONTEXT3_ { +pub struct FWPM_PROVIDER_CONTEXT3 { pub providerContextKey: ::windows::core::GUID, pub displayData: FWPM_DISPLAY_DATA0, pub flags: u32, pub providerKey: *mut ::windows::core::GUID, pub providerData: FWP_BYTE_BLOB, pub r#type: FWPM_PROVIDER_CONTEXT_TYPE, - pub Anonymous: FWPM_PROVIDER_CONTEXT3__0, + pub Anonymous: FWPM_PROVIDER_CONTEXT3_0, pub providerContextId: u64, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_PROVIDER_CONTEXT3_ {} +impl ::core::marker::Copy for FWPM_PROVIDER_CONTEXT3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_PROVIDER_CONTEXT3_ { +impl ::core::clone::Clone for FWPM_PROVIDER_CONTEXT3 { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -unsafe impl ::windows::core::Abi for FWPM_PROVIDER_CONTEXT3_ { +unsafe impl ::windows::core::Abi for FWPM_PROVIDER_CONTEXT3 { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::PartialEq for FWPM_PROVIDER_CONTEXT3_ { +impl ::core::cmp::PartialEq for FWPM_PROVIDER_CONTEXT3 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::Eq for FWPM_PROVIDER_CONTEXT3_ {} +impl ::core::cmp::Eq for FWPM_PROVIDER_CONTEXT3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::default::Default for FWPM_PROVIDER_CONTEXT3_ { +impl ::core::default::Default for FWPM_PROVIDER_CONTEXT3 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -8729,43 +8729,43 @@ impl ::core::default::Default for FWPM_PROVIDER_CONTEXT3_ { #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub union FWPM_PROVIDER_CONTEXT3__0 { +pub union FWPM_PROVIDER_CONTEXT3_0 { pub keyingPolicy: *mut IPSEC_KEYING_POLICY1, pub ikeQmTransportPolicy: *mut IPSEC_TRANSPORT_POLICY2, - pub ikeQmTunnelPolicy: *mut IPSEC_TUNNEL_POLICY3_, + pub ikeQmTunnelPolicy: *mut IPSEC_TUNNEL_POLICY3, pub authipQmTransportPolicy: *mut IPSEC_TRANSPORT_POLICY2, - pub authipQmTunnelPolicy: *mut IPSEC_TUNNEL_POLICY3_, + pub authipQmTunnelPolicy: *mut IPSEC_TUNNEL_POLICY3, pub ikeMmPolicy: *mut IKEEXT_POLICY2, pub authIpMmPolicy: *mut IKEEXT_POLICY2, pub dataBuffer: *mut FWP_BYTE_BLOB, pub classifyOptions: *mut FWPM_CLASSIFY_OPTIONS0, - pub ikeV2QmTunnelPolicy: *mut IPSEC_TUNNEL_POLICY3_, + pub ikeV2QmTunnelPolicy: *mut IPSEC_TUNNEL_POLICY3, pub ikeV2QmTransportPolicy: *mut IPSEC_TRANSPORT_POLICY2, pub ikeV2MmPolicy: *mut IKEEXT_POLICY2, pub idpOptions: *mut IPSEC_DOSP_OPTIONS0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for FWPM_PROVIDER_CONTEXT3__0 {} +impl ::core::marker::Copy for FWPM_PROVIDER_CONTEXT3_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for FWPM_PROVIDER_CONTEXT3__0 { +impl ::core::clone::Clone for FWPM_PROVIDER_CONTEXT3_0 { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -unsafe impl ::windows::core::Abi for FWPM_PROVIDER_CONTEXT3__0 { +unsafe impl ::windows::core::Abi for FWPM_PROVIDER_CONTEXT3_0 { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::PartialEq for FWPM_PROVIDER_CONTEXT3__0 { +impl ::core::cmp::PartialEq for FWPM_PROVIDER_CONTEXT3_0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::cmp::Eq for FWPM_PROVIDER_CONTEXT3__0 {} +impl ::core::cmp::Eq for FWPM_PROVIDER_CONTEXT3_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::default::Default for FWPM_PROVIDER_CONTEXT3__0 { +impl ::core::default::Default for FWPM_PROVIDER_CONTEXT3_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -14455,116 +14455,116 @@ impl ::core::default::Default for IPSEC_TRAFFIC1_2 { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub struct IPSEC_TRAFFIC_SELECTOR0_ { +pub struct IPSEC_TRAFFIC_SELECTOR0 { pub protocolId: u8, pub portStart: u16, pub portEnd: u16, pub ipVersion: FWP_IP_VERSION, - pub Anonymous1: IPSEC_TRAFFIC_SELECTOR0__0, - pub Anonymous2: IPSEC_TRAFFIC_SELECTOR0__1, + pub Anonymous1: IPSEC_TRAFFIC_SELECTOR0_0, + pub Anonymous2: IPSEC_TRAFFIC_SELECTOR0_1, } -impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR0_ {} -impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR0_ { +impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR0 {} +impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR0 { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for IPSEC_TRAFFIC_SELECTOR0_ { +unsafe impl ::windows::core::Abi for IPSEC_TRAFFIC_SELECTOR0 { type Abi = Self; } -impl ::core::cmp::PartialEq for IPSEC_TRAFFIC_SELECTOR0_ { +impl ::core::cmp::PartialEq for IPSEC_TRAFFIC_SELECTOR0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for IPSEC_TRAFFIC_SELECTOR0_ {} -impl ::core::default::Default for IPSEC_TRAFFIC_SELECTOR0_ { +impl ::core::cmp::Eq for IPSEC_TRAFFIC_SELECTOR0 {} +impl ::core::default::Default for IPSEC_TRAFFIC_SELECTOR0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub union IPSEC_TRAFFIC_SELECTOR0__0 { +pub union IPSEC_TRAFFIC_SELECTOR0_0 { pub startV4Address: u32, pub startV6Address: [u8; 16], } -impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR0__0 {} -impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR0__0 { +impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR0_0 {} +impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR0_0 { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for IPSEC_TRAFFIC_SELECTOR0__0 { +unsafe impl ::windows::core::Abi for IPSEC_TRAFFIC_SELECTOR0_0 { type Abi = Self; } -impl ::core::cmp::PartialEq for IPSEC_TRAFFIC_SELECTOR0__0 { +impl ::core::cmp::PartialEq for IPSEC_TRAFFIC_SELECTOR0_0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for IPSEC_TRAFFIC_SELECTOR0__0 {} -impl ::core::default::Default for IPSEC_TRAFFIC_SELECTOR0__0 { +impl ::core::cmp::Eq for IPSEC_TRAFFIC_SELECTOR0_0 {} +impl ::core::default::Default for IPSEC_TRAFFIC_SELECTOR0_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub union IPSEC_TRAFFIC_SELECTOR0__1 { +pub union IPSEC_TRAFFIC_SELECTOR0_1 { pub endV4Address: u32, pub endV6Address: [u8; 16], } -impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR0__1 {} -impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR0__1 { +impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR0_1 {} +impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR0_1 { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for IPSEC_TRAFFIC_SELECTOR0__1 { +unsafe impl ::windows::core::Abi for IPSEC_TRAFFIC_SELECTOR0_1 { type Abi = Self; } -impl ::core::cmp::PartialEq for IPSEC_TRAFFIC_SELECTOR0__1 { +impl ::core::cmp::PartialEq for IPSEC_TRAFFIC_SELECTOR0_1 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for IPSEC_TRAFFIC_SELECTOR0__1 {} -impl ::core::default::Default for IPSEC_TRAFFIC_SELECTOR0__1 { +impl ::core::cmp::Eq for IPSEC_TRAFFIC_SELECTOR0_1 {} +impl ::core::default::Default for IPSEC_TRAFFIC_SELECTOR0_1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub struct IPSEC_TRAFFIC_SELECTOR_POLICY0_ { +pub struct IPSEC_TRAFFIC_SELECTOR_POLICY0 { pub flags: u32, pub numLocalTrafficSelectors: u32, - pub localTrafficSelectors: *mut IPSEC_TRAFFIC_SELECTOR0_, + pub localTrafficSelectors: *mut IPSEC_TRAFFIC_SELECTOR0, pub numRemoteTrafficSelectors: u32, - pub remoteTrafficSelectors: *mut IPSEC_TRAFFIC_SELECTOR0_, + pub remoteTrafficSelectors: *mut IPSEC_TRAFFIC_SELECTOR0, } -impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR_POLICY0_ {} -impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR_POLICY0_ { +impl ::core::marker::Copy for IPSEC_TRAFFIC_SELECTOR_POLICY0 {} +impl ::core::clone::Clone for IPSEC_TRAFFIC_SELECTOR_POLICY0 { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for IPSEC_TRAFFIC_SELECTOR_POLICY0_ { +impl ::core::fmt::Debug for IPSEC_TRAFFIC_SELECTOR_POLICY0 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("IPSEC_TRAFFIC_SELECTOR_POLICY0_").field("flags", &self.flags).field("numLocalTrafficSelectors", &self.numLocalTrafficSelectors).field("localTrafficSelectors", &self.localTrafficSelectors).field("numRemoteTrafficSelectors", &self.numRemoteTrafficSelectors).field("remoteTrafficSelectors", &self.remoteTrafficSelectors).finish() + f.debug_struct("IPSEC_TRAFFIC_SELECTOR_POLICY0").field("flags", &self.flags).field("numLocalTrafficSelectors", &self.numLocalTrafficSelectors).field("localTrafficSelectors", &self.localTrafficSelectors).field("numRemoteTrafficSelectors", &self.numRemoteTrafficSelectors).field("remoteTrafficSelectors", &self.remoteTrafficSelectors).finish() } } -unsafe impl ::windows::core::Abi for IPSEC_TRAFFIC_SELECTOR_POLICY0_ { +unsafe impl ::windows::core::Abi for IPSEC_TRAFFIC_SELECTOR_POLICY0 { type Abi = Self; } -impl ::core::cmp::PartialEq for IPSEC_TRAFFIC_SELECTOR_POLICY0_ { +impl ::core::cmp::PartialEq for IPSEC_TRAFFIC_SELECTOR_POLICY0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for IPSEC_TRAFFIC_SELECTOR_POLICY0_ {} -impl ::core::default::Default for IPSEC_TRAFFIC_SELECTOR_POLICY0_ { +impl ::core::cmp::Eq for IPSEC_TRAFFIC_SELECTOR_POLICY0 {} +impl ::core::default::Default for IPSEC_TRAFFIC_SELECTOR_POLICY0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -15132,7 +15132,7 @@ impl ::core::default::Default for IPSEC_TUNNEL_POLICY2 { } #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] -pub struct IPSEC_TUNNEL_POLICY3_ { +pub struct IPSEC_TUNNEL_POLICY3 { pub flags: u32, pub numIpsecProposals: u32, pub ipsecProposals: *mut IPSEC_PROPOSAL0, @@ -15142,24 +15142,24 @@ pub struct IPSEC_TUNNEL_POLICY3_ { pub fwdPathSaLifetime: u32, pub compartmentId: u32, pub numTrafficSelectorPolicy: u32, - pub trafficSelectorPolicies: *mut IPSEC_TRAFFIC_SELECTOR_POLICY0_, + pub trafficSelectorPolicies: *mut IPSEC_TRAFFIC_SELECTOR_POLICY0, } -impl ::core::marker::Copy for IPSEC_TUNNEL_POLICY3_ {} -impl ::core::clone::Clone for IPSEC_TUNNEL_POLICY3_ { +impl ::core::marker::Copy for IPSEC_TUNNEL_POLICY3 {} +impl ::core::clone::Clone for IPSEC_TUNNEL_POLICY3 { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for IPSEC_TUNNEL_POLICY3_ { +unsafe impl ::windows::core::Abi for IPSEC_TUNNEL_POLICY3 { type Abi = Self; } -impl ::core::cmp::PartialEq for IPSEC_TUNNEL_POLICY3_ { +impl ::core::cmp::PartialEq for IPSEC_TUNNEL_POLICY3 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for IPSEC_TUNNEL_POLICY3_ {} -impl ::core::default::Default for IPSEC_TUNNEL_POLICY3_ { +impl ::core::cmp::Eq for IPSEC_TUNNEL_POLICY3 {} +impl ::core::default::Default for IPSEC_TUNNEL_POLICY3 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -15246,10 +15246,10 @@ pub type FWPM_NET_EVENT_CALLBACK1 = ::core::option::Option; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub type FWPM_NET_EVENT_CALLBACK3 = ::core::option::Option; +pub type FWPM_NET_EVENT_CALLBACK3 = ::core::option::Option; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub type FWPM_NET_EVENT_CALLBACK4 = ::core::option::Option; +pub type FWPM_NET_EVENT_CALLBACK4 = ::core::option::Option; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] pub type FWPM_PROVIDER_CHANGE_CALLBACK0 = ::core::option::Option; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFilteringPlatform\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs index a50be2c40d..56f821a3c5 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs @@ -5,7 +5,7 @@ where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn NetworkIsolationDiagnoseConnectFailureAndGetInfo(wszservername: ::windows::core::PCWSTR, netisoerror: *mut NETISO_ERROR_TYPE) -> u32; } NetworkIsolationDiagnoseConnectFailureAndGetInfo(wszservername.into(), ::core::mem::transmute(netisoerror)) @@ -15,7 +15,7 @@ where #[inline] pub unsafe fn NetworkIsolationEnumAppContainers(flags: u32, pdwnumpublicappcs: &mut u32, pppublicappcs: &mut *mut INET_FIREWALL_APP_CONTAINER) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn NetworkIsolationEnumAppContainers(flags: u32, pdwnumpublicappcs: *mut u32, pppublicappcs: *mut *mut INET_FIREWALL_APP_CONTAINER) -> u32; } NetworkIsolationEnumAppContainers(flags, ::core::mem::transmute(pdwnumpublicappcs), ::core::mem::transmute(pppublicappcs)) @@ -25,7 +25,7 @@ pub unsafe fn NetworkIsolationEnumAppContainers(flags: u32, pdwnumpublicappcs: & #[inline] pub unsafe fn NetworkIsolationFreeAppContainers(ppublicappcs: &INET_FIREWALL_APP_CONTAINER) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn NetworkIsolationFreeAppContainers(ppublicappcs: *const INET_FIREWALL_APP_CONTAINER) -> u32; } NetworkIsolationFreeAppContainers(::core::mem::transmute(ppublicappcs)) @@ -35,7 +35,7 @@ pub unsafe fn NetworkIsolationFreeAppContainers(ppublicappcs: &INET_FIREWALL_APP #[inline] pub unsafe fn NetworkIsolationGetAppContainerConfig(pdwnumpublicappcs: &mut u32, appcontainersids: &mut *mut super::super::Security::SID_AND_ATTRIBUTES) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn NetworkIsolationGetAppContainerConfig(pdwnumpublicappcs: *mut u32, appcontainersids: *mut *mut super::super::Security::SID_AND_ATTRIBUTES) -> u32; } NetworkIsolationGetAppContainerConfig(::core::mem::transmute(pdwnumpublicappcs), ::core::mem::transmute(appcontainersids)) @@ -45,7 +45,7 @@ pub unsafe fn NetworkIsolationGetAppContainerConfig(pdwnumpublicappcs: &mut u32, #[inline] pub unsafe fn NetworkIsolationRegisterForAppContainerChanges(flags: u32, callback: PAC_CHANGES_CALLBACK_FN, context: *const ::core::ffi::c_void, registrationobject: &mut super::super::Foundation::HANDLE) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn NetworkIsolationRegisterForAppContainerChanges(flags: u32, callback: *mut ::core::ffi::c_void, context: *const ::core::ffi::c_void, registrationobject: *mut super::super::Foundation::HANDLE) -> u32; } NetworkIsolationRegisterForAppContainerChanges(flags, ::core::mem::transmute(callback), ::core::mem::transmute(context), ::core::mem::transmute(registrationobject)) @@ -55,7 +55,7 @@ pub unsafe fn NetworkIsolationRegisterForAppContainerChanges(flags: u32, callbac #[inline] pub unsafe fn NetworkIsolationSetAppContainerConfig(appcontainersids: &[super::super::Security::SID_AND_ATTRIBUTES]) -> u32 { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn NetworkIsolationSetAppContainerConfig(dwnumpublicappcs: u32, appcontainersids: *const super::super::Security::SID_AND_ATTRIBUTES) -> u32; } NetworkIsolationSetAppContainerConfig(appcontainersids.len() as _, ::core::mem::transmute(appcontainersids.as_ptr())) @@ -72,7 +72,7 @@ where P4: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn NetworkIsolationSetupAppContainerBinaries(applicationcontainersid: super::super::Foundation::PSID, packagefullname: ::windows::core::PCWSTR, packagefolder: ::windows::core::PCWSTR, displayname: ::windows::core::PCWSTR, bbinariesfullycomputed: super::super::Foundation::BOOL, binaries: *const ::windows::core::PWSTR, binariescount: u32) -> ::windows::core::HRESULT; } NetworkIsolationSetupAppContainerBinaries(applicationcontainersid.into(), packagefullname.into(), packagefolder.into(), displayname.into(), bbinariesfullycomputed.into(), ::core::mem::transmute(binaries.as_ptr()), binaries.len() as _).ok() @@ -85,7 +85,7 @@ where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn NetworkIsolationUnregisterForAppContainerChanges(registrationobject: super::super::Foundation::HANDLE) -> u32; } NetworkIsolationUnregisterForAppContainerChanges(registrationobject.into()) @@ -5109,6 +5109,145 @@ pub const UPnPNAT: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xae #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_AUTO_RESOLVE: FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_NON_AUTO_RESOLVE: FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_ALL: FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS(3u32); +impl ::core::marker::Copy for FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS {} +impl ::core::clone::Clone for FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS_AUTO_RESOLVE: FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS = FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS(1u32); +impl ::core::marker::Copy for FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS {} +impl ::core::clone::Clone for FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FW_DYNAMIC_KEYWORD_ORIGIN_TYPE(pub i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ORIGIN_INVALID: FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = FW_DYNAMIC_KEYWORD_ORIGIN_TYPE(0i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ORIGIN_LOCAL: FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = FW_DYNAMIC_KEYWORD_ORIGIN_TYPE(1i32); +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +pub const FW_DYNAMIC_KEYWORD_ORIGIN_MDM: FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = FW_DYNAMIC_KEYWORD_ORIGIN_TYPE(2i32); +impl ::core::marker::Copy for FW_DYNAMIC_KEYWORD_ORIGIN_TYPE {} +impl ::core::clone::Clone for FW_DYNAMIC_KEYWORD_ORIGIN_TYPE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FW_DYNAMIC_KEYWORD_ORIGIN_TYPE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for FW_DYNAMIC_KEYWORD_ORIGIN_TYPE { + type Abi = Self; +} +impl ::core::fmt::Debug for FW_DYNAMIC_KEYWORD_ORIGIN_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FW_DYNAMIC_KEYWORD_ORIGIN_TYPE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct ICS_TARGETTYPE(pub i32); #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] pub const ICSTT_NAME: ICS_TARGETTYPE = ICS_TARGETTYPE(0i32); @@ -5966,87 +6105,70 @@ impl ::core::fmt::Debug for SHARINGCONNECTION_ENUM_FLAGS { f.debug_tuple("SHARINGCONNECTION_ENUM_FLAGS").field(&self.0).finish() } } +#[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS(pub i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_AUTO_RESOLVE: _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS(1i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_NON_AUTO_RESOLVE: _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS(2i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_ALL: _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS(3i32); -impl ::core::marker::Copy for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS {} -impl ::core::clone::Clone for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS { +pub struct FW_DYNAMIC_KEYWORD_ADDRESS0 { + pub id: ::windows::core::GUID, + pub keyword: ::windows::core::PCWSTR, + pub flags: u32, + pub addresses: ::windows::core::PCWSTR, +} +impl ::core::marker::Copy for FW_DYNAMIC_KEYWORD_ADDRESS0 {} +impl ::core::clone::Clone for FW_DYNAMIC_KEYWORD_ADDRESS0 { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS { - fn default() -> Self { - Self(0) +impl ::core::fmt::Debug for FW_DYNAMIC_KEYWORD_ADDRESS0 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FW_DYNAMIC_KEYWORD_ADDRESS0").field("id", &self.id).field("keyword", &self.keyword).field("flags", &self.flags).field("addresses", &self.addresses).finish() } } -unsafe impl ::windows::core::Abi for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS { +unsafe impl ::windows::core::Abi for FW_DYNAMIC_KEYWORD_ADDRESS0 { type Abi = Self; } -impl ::core::fmt::Debug for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _tag_FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS(pub i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS_AUTO_RESOLVE: _tag_FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS = _tag_FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS(1i32); -impl ::core::marker::Copy for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS {} -impl ::core::clone::Clone for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS { - fn clone(&self) -> Self { - *self +impl ::core::cmp::PartialEq for FW_DYNAMIC_KEYWORD_ADDRESS0 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::default::Default for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS { +impl ::core::cmp::Eq for FW_DYNAMIC_KEYWORD_ADDRESS0 {} +impl ::core::default::Default for FW_DYNAMIC_KEYWORD_ADDRESS0 { fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS { - type Abi = Self; -} -impl ::core::fmt::Debug for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_tag_FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS").field(&self.0).finish() + unsafe { ::core::mem::zeroed() } } } +#[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE(pub i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ORIGIN_INVALID: _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE(0i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ORIGIN_LOCAL: _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE(1i32); -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub const FW_DYNAMIC_KEYWORD_ORIGIN_MDM: _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE(2i32); -impl ::core::marker::Copy for _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE {} -impl ::core::clone::Clone for _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE { +pub struct FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { + pub dynamicKeywordAddress: FW_DYNAMIC_KEYWORD_ADDRESS0, + pub next: *mut FW_DYNAMIC_KEYWORD_ADDRESS_DATA0, + pub schemaVersion: u16, + pub originType: FW_DYNAMIC_KEYWORD_ORIGIN_TYPE, +} +impl ::core::marker::Copy for FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 {} +impl ::core::clone::Clone for FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE { - fn default() -> Self { - Self(0) +impl ::core::fmt::Debug for FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FW_DYNAMIC_KEYWORD_ADDRESS_DATA0").field("dynamicKeywordAddress", &self.dynamicKeywordAddress).field("next", &self.next).field("schemaVersion", &self.schemaVersion).field("originType", &self.originType).finish() } } -unsafe impl ::windows::core::Abi for _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE { +unsafe impl ::windows::core::Abi for FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { type Abi = Self; } -impl ::core::fmt::Debug for _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE").field(&self.0).finish() +impl ::core::cmp::PartialEq for FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 {} +impl ::core::default::Default for FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } } } #[repr(C)] @@ -6272,85 +6394,19 @@ impl ::core::default::Default for NETCON_PROPERTIES { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub struct _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 { - pub id: ::windows::core::GUID, - pub keyword: ::windows::core::PCWSTR, - pub flags: u32, - pub addresses: ::windows::core::PCWSTR, -} -impl ::core::marker::Copy for _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 {} -impl ::core::clone::Clone for _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_tag_FW_DYNAMIC_KEYWORD_ADDRESS0").field("id", &self.id).field("keyword", &self.keyword).field("flags", &self.flags).field("addresses", &self.addresses).finish() - } -} -unsafe impl ::windows::core::Abi for _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_tag_FW_DYNAMIC_KEYWORD_ADDRESS0>()) == 0 } - } -} -impl ::core::cmp::Eq for _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 {} -impl ::core::default::Default for _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub struct _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { - pub dynamicKeywordAddress: _tag_FW_DYNAMIC_KEYWORD_ADDRESS0, - pub next: *mut _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0, - pub schemaVersion: u16, - pub originType: _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE, -} -impl ::core::marker::Copy for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 {} -impl ::core::clone::Clone for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0").field("dynamicKeywordAddress", &self.dynamicKeywordAddress).field("next", &self.next).field("schemaVersion", &self.schemaVersion).field("originType", &self.originType).finish() - } -} -unsafe impl ::windows::core::Abi for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0>()) == 0 } - } -} -impl ::core::cmp::Eq for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 {} -impl ::core::default::Default for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] pub type PAC_CHANGES_CALLBACK_FN = ::core::option::Option; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub type PFN_FWADDDYNAMICKEYWORDADDRESS0 = ::core::option::Option u32>; +pub type PFN_FWADDDYNAMICKEYWORDADDRESS0 = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] pub type PFN_FWDELETEDYNAMICKEYWORDADDRESS0 = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub type PFN_FWENUMDYNAMICKEYWORDADDRESSBYID0 = ::core::option::Option u32>; +pub type PFN_FWENUMDYNAMICKEYWORDADDRESSBYID0 = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub type PFN_FWENUMDYNAMICKEYWORDADDRESSESBYTYPE0 = ::core::option::Option u32>; +pub type PFN_FWENUMDYNAMICKEYWORDADDRESSESBYTYPE0 = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] -pub type PFN_FWFREEDYNAMICKEYWORDADDRESSDATA0 = ::core::option::Option u32>; +pub type PFN_FWFREEDYNAMICKEYWORDADDRESSDATA0 = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type PFN_FWUPDATEDYNAMICKEYWORDADDRESS0 = ::core::option::Option u32>; diff --git a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs index 3093bc1a34..564545622b 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs @@ -7055,15 +7055,15 @@ impl IDirectorySchemaMgmt_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IDirectorySearch_Impl: Sized { - fn SetSearchPreference(&self, psearchprefs: *const ads_searchpref_info, dwnumprefs: u32) -> ::windows::core::Result<()>; + fn SetSearchPreference(&self, psearchprefs: *const ADS_SEARCHPREF_INFO, dwnumprefs: u32) -> ::windows::core::Result<()>; fn ExecuteSearch(&self, pszsearchfilter: &::windows::core::PCWSTR, pattributenames: *const ::windows::core::PWSTR, dwnumberattributes: u32) -> ::windows::core::Result; fn AbandonSearch(&self, phsearchresult: ADS_SEARCH_HANDLE) -> ::windows::core::Result<()>; fn GetFirstRow(&self, hsearchresult: ADS_SEARCH_HANDLE) -> ::windows::core::HRESULT; fn GetNextRow(&self, hsearchresult: ADS_SEARCH_HANDLE) -> ::windows::core::HRESULT; fn GetPreviousRow(&self, hsearchresult: ADS_SEARCH_HANDLE) -> ::windows::core::HRESULT; fn GetNextColumnName(&self, hsearchhandle: ADS_SEARCH_HANDLE, ppszcolumnname: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT; - fn GetColumn(&self, hsearchresult: ADS_SEARCH_HANDLE, szcolumnname: &::windows::core::PCWSTR) -> ::windows::core::Result; - fn FreeColumn(&self, psearchcolumn: *const ads_search_column) -> ::windows::core::Result<()>; + fn GetColumn(&self, hsearchresult: ADS_SEARCH_HANDLE, szcolumnname: &::windows::core::PCWSTR) -> ::windows::core::Result; + fn FreeColumn(&self, psearchcolumn: *const ADS_SEARCH_COLUMN) -> ::windows::core::Result<()>; fn CloseSearchHandle(&self, hsearchresult: ADS_SEARCH_HANDLE) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] @@ -7071,7 +7071,7 @@ impl ::windows::core::RuntimeName for IDirectorySearch {} #[cfg(feature = "Win32_Foundation")] impl IDirectorySearch_Vtbl { pub const fn new, Impl: IDirectorySearch_Impl, const OFFSET: isize>() -> IDirectorySearch_Vtbl { - unsafe extern "system" fn SetSearchPreference, Impl: IDirectorySearch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psearchprefs: *const ads_searchpref_info, dwnumprefs: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSearchPreference, Impl: IDirectorySearch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psearchprefs: *const ADS_SEARCHPREF_INFO, dwnumprefs: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSearchPreference(::core::mem::transmute_copy(&psearchprefs), ::core::mem::transmute_copy(&dwnumprefs)).into() @@ -7112,7 +7112,7 @@ impl IDirectorySearch_Vtbl { let this = (*this).get_impl(); this.GetNextColumnName(::core::mem::transmute_copy(&hsearchhandle), ::core::mem::transmute_copy(&ppszcolumnname)) } - unsafe extern "system" fn GetColumn, Impl: IDirectorySearch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE, szcolumnname: ::windows::core::PCWSTR, psearchcolumn: *mut ads_search_column) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetColumn, Impl: IDirectorySearch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE, szcolumnname: ::windows::core::PCWSTR, psearchcolumn: *mut ADS_SEARCH_COLUMN) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetColumn(::core::mem::transmute_copy(&hsearchresult), ::core::mem::transmute(&szcolumnname)) { @@ -7123,7 +7123,7 @@ impl IDirectorySearch_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FreeColumn, Impl: IDirectorySearch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psearchcolumn: *const ads_search_column) -> ::windows::core::HRESULT { + unsafe extern "system" fn FreeColumn, Impl: IDirectorySearch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psearchcolumn: *const ADS_SEARCH_COLUMN) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FreeColumn(::core::mem::transmute_copy(&psearchcolumn)).into() @@ -7409,7 +7409,7 @@ pub trait IDsDisplaySpecifier_Impl: Sized { fn IsClassContainer(&self, pszobjectclass: &::windows::core::PCWSTR, pszadspath: &::windows::core::PCWSTR, dwflags: u32) -> super::super::Foundation::BOOL; fn GetClassCreationInfo(&self, pszobjectclass: &::windows::core::PCWSTR, ppdscci: *mut *mut DSCLASSCREATIONINFO) -> ::windows::core::Result<()>; fn EnumClassAttributes(&self, pszobjectclass: &::windows::core::PCWSTR, pcbenum: &LPDSENUMATTRIBUTES, lparam: super::super::Foundation::LPARAM) -> ::windows::core::Result<()>; - fn GetAttributeADsType(&self, pszattributename: &::windows::core::PCWSTR) -> ADSTYPEENUM; + fn GetAttributeADsType(&self, pszattributename: &::windows::core::PCWSTR) -> ADSTYPE; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::windows::core::RuntimeName for IDsDisplaySpecifier {} @@ -7466,7 +7466,7 @@ impl IDsDisplaySpecifier_Vtbl { let this = (*this).get_impl(); this.EnumClassAttributes(::core::mem::transmute(&pszobjectclass), ::core::mem::transmute(&pcbenum), ::core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn GetAttributeADsType, Impl: IDsDisplaySpecifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszattributename: ::windows::core::PCWSTR) -> ADSTYPEENUM { + unsafe extern "system" fn GetAttributeADsType, Impl: IDsDisplaySpecifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszattributename: ::windows::core::PCWSTR) -> ADSTYPE { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetAttributeADsType(::core::mem::transmute(&pszattributename)) 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 31095a47c0..1cce299014 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs @@ -12266,7 +12266,7 @@ pub struct IDirectorySearch(::windows::core::IUnknown); impl IDirectorySearch { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSearchPreference(&self, psearchprefs: &ads_searchpref_info, dwnumprefs: u32) -> ::windows::core::Result<()> { + pub unsafe fn SetSearchPreference(&self, psearchprefs: &ADS_SEARCHPREF_INFO, dwnumprefs: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetSearchPreference)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(psearchprefs), dwnumprefs).ok() } pub unsafe fn ExecuteSearch<'a, P0>(&self, pszsearchfilter: P0, pattributenames: &::windows::core::PWSTR, dwnumberattributes: u32) -> ::windows::core::Result @@ -12308,17 +12308,17 @@ impl IDirectorySearch { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetColumn<'a, P0, P1>(&self, hsearchresult: P0, szcolumnname: P1) -> ::windows::core::Result + pub unsafe fn GetColumn<'a, P0, P1>(&self, hsearchresult: P0, szcolumnname: P1) -> ::windows::core::Result where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::PCWSTR>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetColumn)(::windows::core::Interface::as_raw(self), hsearchresult.into(), szcolumnname.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetColumn)(::windows::core::Interface::as_raw(self), hsearchresult.into(), szcolumnname.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FreeColumn(&self, psearchcolumn: &ads_search_column) -> ::windows::core::Result<()> { + pub unsafe fn FreeColumn(&self, psearchcolumn: &ADS_SEARCH_COLUMN) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).FreeColumn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(psearchcolumn)).ok() } pub unsafe fn CloseSearchHandle<'a, P0>(&self, hsearchresult: P0) -> ::windows::core::Result<()> @@ -12368,7 +12368,7 @@ unsafe impl ::windows::core::Interface for IDirectorySearch { pub struct IDirectorySearch_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(feature = "Win32_Foundation")] - pub SetSearchPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psearchprefs: *const ads_searchpref_info, dwnumprefs: u32) -> ::windows::core::HRESULT, + pub SetSearchPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psearchprefs: *const ADS_SEARCHPREF_INFO, dwnumprefs: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetSearchPreference: usize, pub ExecuteSearch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsearchfilter: ::windows::core::PCWSTR, pattributenames: *const ::windows::core::PWSTR, dwnumberattributes: u32, phsearchresult: *mut ADS_SEARCH_HANDLE) -> ::windows::core::HRESULT, @@ -12378,11 +12378,11 @@ pub struct IDirectorySearch_Vtbl { pub GetPreviousRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE) -> ::windows::core::HRESULT, pub GetNextColumnName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hsearchhandle: ADS_SEARCH_HANDLE, ppszcolumnname: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub GetColumn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE, szcolumnname: ::windows::core::PCWSTR, psearchcolumn: *mut ads_search_column) -> ::windows::core::HRESULT, + pub GetColumn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE, szcolumnname: ::windows::core::PCWSTR, psearchcolumn: *mut ADS_SEARCH_COLUMN) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetColumn: usize, #[cfg(feature = "Win32_Foundation")] - pub FreeColumn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psearchcolumn: *const ads_search_column) -> ::windows::core::HRESULT, + pub FreeColumn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psearchcolumn: *const ADS_SEARCH_COLUMN) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] FreeColumn: usize, pub CloseSearchHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE) -> ::windows::core::HRESULT, @@ -12926,7 +12926,7 @@ impl IDsDisplaySpecifier { { (::windows::core::Interface::vtable(self).EnumClassAttributes)(::windows::core::Interface::as_raw(self), pszobjectclass.into(), ::core::mem::transmute(pcbenum), lparam.into()).ok() } - pub unsafe fn GetAttributeADsType<'a, P0>(&self, pszattributename: P0) -> ADSTYPEENUM + pub unsafe fn GetAttributeADsType<'a, P0>(&self, pszattributename: P0) -> ADSTYPE where P0: ::std::convert::Into<::windows::core::PCWSTR>, { @@ -12991,7 +12991,7 @@ pub struct IDsDisplaySpecifier_Vtbl { pub EnumClassAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszobjectclass: ::windows::core::PCWSTR, pcbenum: *mut ::core::ffi::c_void, lparam: super::super::Foundation::LPARAM) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] EnumClassAttributes: usize, - pub GetAttributeADsType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszattributename: ::windows::core::PCWSTR) -> ADSTYPEENUM, + pub GetAttributeADsType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszattributename: ::windows::core::PCWSTR) -> ADSTYPE, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] #[repr(transparent)] @@ -14920,82 +14920,82 @@ impl ::core::fmt::Debug for ADSI_DIALECT_ENUM { #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct ADSTYPEENUM(pub i32); +pub struct ADSTYPE(pub i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_INVALID: ADSTYPEENUM = ADSTYPEENUM(0i32); +pub const ADSTYPE_INVALID: ADSTYPE = ADSTYPE(0i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_DN_STRING: ADSTYPEENUM = ADSTYPEENUM(1i32); +pub const ADSTYPE_DN_STRING: ADSTYPE = ADSTYPE(1i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_CASE_EXACT_STRING: ADSTYPEENUM = ADSTYPEENUM(2i32); +pub const ADSTYPE_CASE_EXACT_STRING: ADSTYPE = ADSTYPE(2i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_CASE_IGNORE_STRING: ADSTYPEENUM = ADSTYPEENUM(3i32); +pub const ADSTYPE_CASE_IGNORE_STRING: ADSTYPE = ADSTYPE(3i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_PRINTABLE_STRING: ADSTYPEENUM = ADSTYPEENUM(4i32); +pub const ADSTYPE_PRINTABLE_STRING: ADSTYPE = ADSTYPE(4i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_NUMERIC_STRING: ADSTYPEENUM = ADSTYPEENUM(5i32); +pub const ADSTYPE_NUMERIC_STRING: ADSTYPE = ADSTYPE(5i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_BOOLEAN: ADSTYPEENUM = ADSTYPEENUM(6i32); +pub const ADSTYPE_BOOLEAN: ADSTYPE = ADSTYPE(6i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_INTEGER: ADSTYPEENUM = ADSTYPEENUM(7i32); +pub const ADSTYPE_INTEGER: ADSTYPE = ADSTYPE(7i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_OCTET_STRING: ADSTYPEENUM = ADSTYPEENUM(8i32); +pub const ADSTYPE_OCTET_STRING: ADSTYPE = ADSTYPE(8i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_UTC_TIME: ADSTYPEENUM = ADSTYPEENUM(9i32); +pub const ADSTYPE_UTC_TIME: ADSTYPE = ADSTYPE(9i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_LARGE_INTEGER: ADSTYPEENUM = ADSTYPEENUM(10i32); +pub const ADSTYPE_LARGE_INTEGER: ADSTYPE = ADSTYPE(10i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_PROV_SPECIFIC: ADSTYPEENUM = ADSTYPEENUM(11i32); +pub const ADSTYPE_PROV_SPECIFIC: ADSTYPE = ADSTYPE(11i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_OBJECT_CLASS: ADSTYPEENUM = ADSTYPEENUM(12i32); +pub const ADSTYPE_OBJECT_CLASS: ADSTYPE = ADSTYPE(12i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_CASEIGNORE_LIST: ADSTYPEENUM = ADSTYPEENUM(13i32); +pub const ADSTYPE_CASEIGNORE_LIST: ADSTYPE = ADSTYPE(13i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_OCTET_LIST: ADSTYPEENUM = ADSTYPEENUM(14i32); +pub const ADSTYPE_OCTET_LIST: ADSTYPE = ADSTYPE(14i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_PATH: ADSTYPEENUM = ADSTYPEENUM(15i32); +pub const ADSTYPE_PATH: ADSTYPE = ADSTYPE(15i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_POSTALADDRESS: ADSTYPEENUM = ADSTYPEENUM(16i32); +pub const ADSTYPE_POSTALADDRESS: ADSTYPE = ADSTYPE(16i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_TIMESTAMP: ADSTYPEENUM = ADSTYPEENUM(17i32); +pub const ADSTYPE_TIMESTAMP: ADSTYPE = ADSTYPE(17i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_BACKLINK: ADSTYPEENUM = ADSTYPEENUM(18i32); +pub const ADSTYPE_BACKLINK: ADSTYPE = ADSTYPE(18i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_TYPEDNAME: ADSTYPEENUM = ADSTYPEENUM(19i32); +pub const ADSTYPE_TYPEDNAME: ADSTYPE = ADSTYPE(19i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_HOLD: ADSTYPEENUM = ADSTYPEENUM(20i32); +pub const ADSTYPE_HOLD: ADSTYPE = ADSTYPE(20i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_NETADDRESS: ADSTYPEENUM = ADSTYPEENUM(21i32); +pub const ADSTYPE_NETADDRESS: ADSTYPE = ADSTYPE(21i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_REPLICAPOINTER: ADSTYPEENUM = ADSTYPEENUM(22i32); +pub const ADSTYPE_REPLICAPOINTER: ADSTYPE = ADSTYPE(22i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_FAXNUMBER: ADSTYPEENUM = ADSTYPEENUM(23i32); +pub const ADSTYPE_FAXNUMBER: ADSTYPE = ADSTYPE(23i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_EMAIL: ADSTYPEENUM = ADSTYPEENUM(24i32); +pub const ADSTYPE_EMAIL: ADSTYPE = ADSTYPE(24i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_NT_SECURITY_DESCRIPTOR: ADSTYPEENUM = ADSTYPEENUM(25i32); +pub const ADSTYPE_NT_SECURITY_DESCRIPTOR: ADSTYPE = ADSTYPE(25i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_UNKNOWN: ADSTYPEENUM = ADSTYPEENUM(26i32); +pub const ADSTYPE_UNKNOWN: ADSTYPE = ADSTYPE(26i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_DN_WITH_BINARY: ADSTYPEENUM = ADSTYPEENUM(27i32); +pub const ADSTYPE_DN_WITH_BINARY: ADSTYPE = ADSTYPE(27i32); #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] -pub const ADSTYPE_DN_WITH_STRING: ADSTYPEENUM = ADSTYPEENUM(28i32); -impl ::core::marker::Copy for ADSTYPEENUM {} -impl ::core::clone::Clone for ADSTYPEENUM { +pub const ADSTYPE_DN_WITH_STRING: ADSTYPE = ADSTYPE(28i32); +impl ::core::marker::Copy for ADSTYPE {} +impl ::core::clone::Clone for ADSTYPE { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for ADSTYPEENUM { +impl ::core::default::Default for ADSTYPE { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for ADSTYPEENUM { +unsafe impl ::windows::core::Abi for ADSTYPE { type Abi = Self; } -impl ::core::fmt::Debug for ADSTYPEENUM { +impl ::core::fmt::Debug for ADSTYPE { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ADSTYPEENUM").field(&self.0).finish() + f.debug_tuple("ADSTYPE").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] @@ -16657,7 +16657,7 @@ impl ::core::default::Default for ADSPROPINITPARAMS { #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct ADSVALUE { - pub dwType: ADSTYPEENUM, + pub dwType: ADSTYPE, pub Anonymous: ADSVALUE_0, } #[cfg(feature = "Win32_Foundation")] @@ -16749,7 +16749,7 @@ impl ::core::default::Default for ADSVALUE_0 { #[cfg(feature = "Win32_Foundation")] pub struct ADS_ATTR_DEF { pub pszAttrName: ::windows::core::PWSTR, - pub dwADsType: ADSTYPEENUM, + pub dwADsType: ADSTYPE, pub dwMinRange: u32, pub dwMaxRange: u32, pub fMultiValued: super::super::Foundation::BOOL, @@ -16792,7 +16792,7 @@ impl ::core::default::Default for ADS_ATTR_DEF { pub struct ADS_ATTR_INFO { pub pszAttrName: ::windows::core::PWSTR, pub dwControlCode: u32, - pub dwADsType: ADSTYPEENUM, + pub dwADsType: ADSTYPE, pub pADsValues: *mut ADSVALUE, pub dwNumValues: u32, } @@ -17392,6 +17392,82 @@ impl ::core::default::Default for ADS_REPLICAPOINTER { unsafe { ::core::mem::zeroed() } } } +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct ADS_SEARCHPREF_INFO { + pub dwSearchPref: ADS_SEARCHPREF_ENUM, + pub vValue: ADSVALUE, + pub dwStatus: ADS_STATUSENUM, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for ADS_SEARCHPREF_INFO {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for ADS_SEARCHPREF_INFO { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for ADS_SEARCHPREF_INFO { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for ADS_SEARCHPREF_INFO { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for ADS_SEARCHPREF_INFO {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for ADS_SEARCHPREF_INFO { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct ADS_SEARCH_COLUMN { + pub pszAttrName: ::windows::core::PWSTR, + pub dwADsType: ADSTYPE, + pub pADsValues: *mut ADSVALUE, + pub dwNumValues: u32, + pub hReserved: super::super::Foundation::HANDLE, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for ADS_SEARCH_COLUMN {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for ADS_SEARCH_COLUMN { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for ADS_SEARCH_COLUMN { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("ADS_SEARCH_COLUMN").field("pszAttrName", &self.pszAttrName).field("dwADsType", &self.dwADsType).field("pADsValues", &self.pADsValues).field("dwNumValues", &self.dwNumValues).field("hReserved", &self.hReserved).finish() + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for ADS_SEARCH_COLUMN { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for ADS_SEARCH_COLUMN { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for ADS_SEARCH_COLUMN {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for ADS_SEARCH_COLUMN { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct ADS_SEARCH_HANDLE(pub isize); @@ -21133,82 +21209,6 @@ impl ::core::default::Default for SCHEDULE_HEADER { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct ads_search_column { - pub pszAttrName: ::windows::core::PWSTR, - pub dwADsType: ADSTYPEENUM, - pub pADsValues: *mut ADSVALUE, - pub dwNumValues: u32, - pub hReserved: super::super::Foundation::HANDLE, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ads_search_column {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ads_search_column { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for ads_search_column { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ads_search_column").field("pszAttrName", &self.pszAttrName).field("dwADsType", &self.dwADsType).field("pADsValues", &self.pADsValues).field("dwNumValues", &self.dwNumValues).field("hReserved", &self.hReserved).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for ads_search_column { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for ads_search_column { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for ads_search_column {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for ads_search_column { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct ads_searchpref_info { - pub dwSearchPref: ADS_SEARCHPREF_ENUM, - pub vValue: ADSVALUE, - pub dwStatus: ADS_STATUSENUM, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ads_searchpref_info {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ads_searchpref_info { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for ads_searchpref_info { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for ads_searchpref_info { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for ads_searchpref_info {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for ads_searchpref_info { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub type LPCQADDFORMSPROC = ::core::option::Option ::windows::core::HRESULT>; 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 b44e69b8bb..e80a31df3c 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs @@ -1,87 +1,3 @@ -#[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn ClusWorkersTerminate<'a, P0>(clusworkers: &mut [*mut CLUS_WORKER], timeoutinmilliseconds: u32, waitonly: P0) -> u32 -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn ClusWorkersTerminate(clusworkers: *mut *mut CLUS_WORKER, clusworkerscount: usize, timeoutinmilliseconds: u32, waitonly: super::super::Foundation::BOOL) -> u32; - } - ClusWorkersTerminate(::core::mem::transmute(clusworkers.as_ptr()), clusworkers.len() as _, timeoutinmilliseconds, waitonly.into()) -} -#[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] -#[inline] -pub unsafe fn FreeClusterHealthFault(clusterhealthfault: &mut CLUSTER_HEALTH_FAULT) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn FreeClusterHealthFault(clusterhealthfault: *mut CLUSTER_HEALTH_FAULT) -> u32; - } - FreeClusterHealthFault(::core::mem::transmute(clusterhealthfault)) -} -#[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] -#[inline] -pub unsafe fn FreeClusterHealthFaultArray(clusterhealthfaultarray: &mut CLUSTER_HEALTH_FAULT_ARRAY) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn FreeClusterHealthFaultArray(clusterhealthfaultarray: *mut CLUSTER_HEALTH_FAULT_ARRAY) -> u32; - } - FreeClusterHealthFaultArray(::core::mem::transmute(clusterhealthfaultarray)) -} -#[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] -#[inline] -pub unsafe fn InitializeClusterHealthFault(clusterhealthfault: &mut CLUSTER_HEALTH_FAULT) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn InitializeClusterHealthFault(clusterhealthfault: *mut CLUSTER_HEALTH_FAULT) -> u32; - } - InitializeClusterHealthFault(::core::mem::transmute(clusterhealthfault)) -} -#[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] -#[inline] -pub unsafe fn InitializeClusterHealthFaultArray(clusterhealthfaultarray: &mut CLUSTER_HEALTH_FAULT_ARRAY) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn InitializeClusterHealthFaultArray(clusterhealthfaultarray: *mut CLUSTER_HEALTH_FAULT_ARRAY) -> u32; - } - InitializeClusterHealthFaultArray(::core::mem::transmute(clusterhealthfaultarray)) -} -#[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn ResUtilLeftPaxosIsLessThanRight(left: &PaxosTagCStruct, right: &PaxosTagCStruct) -> super::super::Foundation::BOOL { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn ResUtilLeftPaxosIsLessThanRight(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL; - } - ResUtilLeftPaxosIsLessThanRight(::core::mem::transmute(left), ::core::mem::transmute(right)) -} -#[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn ResUtilPaxosComparer(left: &PaxosTagCStruct, right: &PaxosTagCStruct) -> super::super::Foundation::BOOL { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn ResUtilPaxosComparer(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL; - } - ResUtilPaxosComparer(::core::mem::transmute(left), ::core::mem::transmute(right)) -} -#[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] -#[inline] -pub unsafe fn ResUtilsDeleteKeyTree<'a, P0, P1, P2>(key: P0, keyname: P1, treatnokeyaserror: P2) -> u32 -where - P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn ResUtilsDeleteKeyTree(key: super::super::System::Registry::HKEY, keyname: ::windows::core::PCWSTR, treatnokeyaserror: super::super::Foundation::BOOL) -> u32; - } - ResUtilsDeleteKeyTree(key.into(), keyname.into(), treatnokeyaserror.into()) -} #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] #[inline] pub unsafe fn AddClusterGroupDependency(hdependentgroup: &_HGROUP, hprovidergroup: &_HGROUP) -> u32 { @@ -401,6 +317,19 @@ where } ClusWorkerTerminateEx(::core::mem::transmute(clusworker), timeoutinmilliseconds, waitonly.into()) } +#[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn ClusWorkersTerminate<'a, P0>(clusworkers: &mut [*mut CLUS_WORKER], timeoutinmilliseconds: u32, waitonly: P0) -> u32 +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn ClusWorkersTerminate(clusworkers: *mut *mut CLUS_WORKER, clusworkerscount: usize, timeoutinmilliseconds: u32, waitonly: super::super::Foundation::BOOL) -> u32; + } + ClusWorkersTerminate(::core::mem::transmute(clusworkers.as_ptr()), clusworkers.len() as _, timeoutinmilliseconds, waitonly.into()) +} #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] #[inline] pub unsafe fn ClusterAddGroupToAffinityRule<'a, P0>(hcluster: &_HCLUSTER, rulename: P0, hgroup: &_HGROUP) -> u32 @@ -1724,6 +1653,24 @@ pub unsafe fn FreeClusterCrypt(pcryptinfo: *const ::core::ffi::c_void) -> u32 { } #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] #[inline] +pub unsafe fn FreeClusterHealthFault(clusterhealthfault: &mut CLUSTER_HEALTH_FAULT) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn FreeClusterHealthFault(clusterhealthfault: *mut CLUSTER_HEALTH_FAULT) -> u32; + } + FreeClusterHealthFault(::core::mem::transmute(clusterhealthfault)) +} +#[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] +#[inline] +pub unsafe fn FreeClusterHealthFaultArray(clusterhealthfaultarray: &mut CLUSTER_HEALTH_FAULT_ARRAY) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn FreeClusterHealthFaultArray(clusterhealthfaultarray: *mut CLUSTER_HEALTH_FAULT_ARRAY) -> u32; + } + FreeClusterHealthFaultArray(::core::mem::transmute(clusterhealthfaultarray)) +} +#[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] +#[inline] pub unsafe fn GetClusterFromGroup(hgroup: &_HGROUP) -> *mut _HCLUSTER { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -2027,6 +1974,24 @@ pub unsafe fn GetNotifyEventHandle(hchange: &_HCHANGE, lphtargetevent: &mut supe } GetNotifyEventHandle(::core::mem::transmute(hchange), ::core::mem::transmute(lphtargetevent)) } +#[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] +#[inline] +pub unsafe fn InitializeClusterHealthFault(clusterhealthfault: &mut CLUSTER_HEALTH_FAULT) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn InitializeClusterHealthFault(clusterhealthfault: *mut CLUSTER_HEALTH_FAULT) -> u32; + } + InitializeClusterHealthFault(::core::mem::transmute(clusterhealthfault)) +} +#[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] +#[inline] +pub unsafe fn InitializeClusterHealthFaultArray(clusterhealthfaultarray: &mut CLUSTER_HEALTH_FAULT_ARRAY) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn InitializeClusterHealthFaultArray(clusterhealthfaultarray: *mut CLUSTER_HEALTH_FAULT_ARRAY) -> u32; + } + InitializeClusterHealthFaultArray(::core::mem::transmute(clusterhealthfaultarray)) +} #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -3225,6 +3190,16 @@ pub unsafe fn ResUtilIsResourceClassEqual(prci: &mut CLUS_RESOURCE_CLASS_INFO, h } ResUtilIsResourceClassEqual(::core::mem::transmute(prci), ::core::mem::transmute(hresource)) } +#[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn ResUtilLeftPaxosIsLessThanRight(left: &PaxosTagCStruct, right: &PaxosTagCStruct) -> super::super::Foundation::BOOL { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn ResUtilLeftPaxosIsLessThanRight(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL; + } + ResUtilLeftPaxosIsLessThanRight(::core::mem::transmute(left), ::core::mem::transmute(right)) +} #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] #[inline] pub unsafe fn ResUtilNodeEnum(hcluster: &mut _HCLUSTER, pnodecallback: LPNODE_CALLBACK, pparameter: *mut ::core::ffi::c_void) -> u32 { @@ -3237,6 +3212,16 @@ pub unsafe fn ResUtilNodeEnum(hcluster: &mut _HCLUSTER, pnodecallback: LPNODE_CA #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn ResUtilPaxosComparer(left: &PaxosTagCStruct, right: &PaxosTagCStruct) -> super::super::Foundation::BOOL { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn ResUtilPaxosComparer(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL; + } + ResUtilPaxosComparer(::core::mem::transmute(left), ::core::mem::transmute(right)) +} +#[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn ResUtilPropertyListFromParameterBlock(ppropertytable: &RESUTIL_PROPERTY_ITEM, poutpropertylist: *mut ::core::ffi::c_void, pcboutpropertylistsize: &mut u32, pinparams: &u8, pcbbytesreturned: &mut u32, pcbrequired: &mut u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -3616,6 +3601,21 @@ pub unsafe fn ResUtilVerifyShutdownSafe(flags: u32, reason: u32, presult: &mut u } ResUtilVerifyShutdownSafe(flags, reason, ::core::mem::transmute(presult)) } +#[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))] +#[inline] +pub unsafe fn ResUtilsDeleteKeyTree<'a, P0, P1, P2>(key: P0, keyname: P1, treatnokeyaserror: P2) -> u32 +where + P0: ::std::convert::Into, + P1: ::std::convert::Into<::windows::core::PCWSTR>, + P2: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn ResUtilsDeleteKeyTree(key: super::super::System::Registry::HKEY, keyname: ::windows::core::PCWSTR, treatnokeyaserror: super::super::Foundation::BOOL) -> u32; + } + ResUtilsDeleteKeyTree(key.into(), keyname.into(), treatnokeyaserror.into()) +} #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] #[inline] pub unsafe fn ResetAllAppInstanceVersions() -> u32 { 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 df8858a7cc..c4db8be23b 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Ldap/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Ldap/mod.rs @@ -36,10 +36,10 @@ pub unsafe fn LdapUnicodeToUTF8(lpsrcstr: &[u16], lpdeststr: &mut [u8]) -> i32 { } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ber_alloc_t(options: i32) -> *mut berelement { +pub unsafe fn ber_alloc_t(options: i32) -> *mut BerElement { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ber_alloc_t(options: i32) -> *mut berelement; + fn ber_alloc_t(options: i32) -> *mut BerElement; } ber_alloc_t(options) } @@ -73,388 +73,388 @@ pub unsafe fn ber_bvfree(bv: &mut LDAP_BERVAL) { #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ber_first_element(pberelement: &mut berelement, plen: &mut u32, ppopaque: &mut *mut super::super::Foundation::CHAR) -> u32 { +pub unsafe fn ber_first_element(pberelement: &mut BerElement, plen: &mut u32, ppopaque: &mut *mut super::super::Foundation::CHAR) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ber_first_element(pberelement: *mut berelement, plen: *mut u32, ppopaque: *mut *mut super::super::Foundation::CHAR) -> u32; + fn ber_first_element(pberelement: *mut BerElement, plen: *mut u32, ppopaque: *mut *mut super::super::Foundation::CHAR) -> u32; } ber_first_element(::core::mem::transmute(pberelement), ::core::mem::transmute(plen), ::core::mem::transmute(ppopaque)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ber_flatten(pberelement: &mut berelement, pberval: &mut *mut LDAP_BERVAL) -> i32 { +pub unsafe fn ber_flatten(pberelement: &mut BerElement, pberval: &mut *mut LDAP_BERVAL) -> i32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ber_flatten(pberelement: *mut berelement, pberval: *mut *mut LDAP_BERVAL) -> i32; + fn ber_flatten(pberelement: *mut BerElement, pberval: *mut *mut LDAP_BERVAL) -> i32; } ber_flatten(::core::mem::transmute(pberelement), ::core::mem::transmute(pberval)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ber_free(pberelement: &mut berelement, fbuf: i32) { +pub unsafe fn ber_free(pberelement: &mut BerElement, fbuf: i32) { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ber_free(pberelement: *mut berelement, fbuf: i32); + fn ber_free(pberelement: *mut BerElement, fbuf: i32); } ber_free(::core::mem::transmute(pberelement), fbuf) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ber_init(pberval: &mut LDAP_BERVAL) -> *mut berelement { +pub unsafe fn ber_init(pberval: &mut LDAP_BERVAL) -> *mut BerElement { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ber_init(pberval: *mut LDAP_BERVAL) -> *mut berelement; + fn ber_init(pberval: *mut LDAP_BERVAL) -> *mut BerElement; } ber_init(::core::mem::transmute(pberval)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ber_next_element<'a, P0>(pberelement: &mut berelement, plen: &mut u32, opaque: P0) -> u32 +pub unsafe fn ber_next_element<'a, P0>(pberelement: &mut BerElement, plen: &mut u32, opaque: P0) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ber_next_element(pberelement: *mut berelement, plen: *mut u32, opaque: ::windows::core::PCSTR) -> u32; + fn ber_next_element(pberelement: *mut BerElement, plen: *mut u32, opaque: ::windows::core::PCSTR) -> u32; } ber_next_element(::core::mem::transmute(pberelement), ::core::mem::transmute(plen), opaque.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ber_peek_tag(pberelement: &mut berelement, plen: &mut u32) -> u32 { +pub unsafe fn ber_peek_tag(pberelement: &mut BerElement, plen: &mut u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ber_peek_tag(pberelement: *mut berelement, plen: *mut u32) -> u32; + fn ber_peek_tag(pberelement: *mut BerElement, plen: *mut u32) -> u32; } ber_peek_tag(::core::mem::transmute(pberelement), ::core::mem::transmute(plen)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ber_printf<'a, P0>(pberelement: &mut berelement, fmt: P0) -> i32 +pub unsafe fn ber_printf<'a, P0>(pberelement: &mut BerElement, fmt: P0) -> i32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ber_printf(pberelement: *mut berelement, fmt: ::windows::core::PCSTR) -> i32; + fn ber_printf(pberelement: *mut BerElement, fmt: ::windows::core::PCSTR) -> i32; } ber_printf(::core::mem::transmute(pberelement), fmt.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ber_scanf<'a, P0>(pberelement: &mut berelement, fmt: P0) -> u32 +pub unsafe fn ber_scanf<'a, P0>(pberelement: &mut BerElement, fmt: P0) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ber_scanf(pberelement: *mut berelement, fmt: ::windows::core::PCSTR) -> u32; + fn ber_scanf(pberelement: *mut BerElement, fmt: ::windows::core::PCSTR) -> u32; } ber_scanf(::core::mem::transmute(pberelement), fmt.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ber_skip_tag(pberelement: &mut berelement, plen: &mut u32) -> u32 { +pub unsafe fn ber_skip_tag(pberelement: &mut BerElement, plen: &mut u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ber_skip_tag(pberelement: *mut berelement, plen: *mut u32) -> u32; + fn ber_skip_tag(pberelement: *mut BerElement, plen: *mut u32) -> u32; } ber_skip_tag(::core::mem::transmute(pberelement), ::core::mem::transmute(plen)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn cldap_open<'a, P0>(hostname: P0, portnumber: u32) -> *mut ldap +pub unsafe fn cldap_open<'a, P0>(hostname: P0, portnumber: u32) -> *mut LDAP where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn cldap_open(hostname: ::windows::core::PCSTR, portnumber: u32) -> *mut ldap; + fn cldap_open(hostname: ::windows::core::PCSTR, portnumber: u32) -> *mut LDAP; } cldap_open(hostname.into(), portnumber) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn cldap_openA<'a, P0>(hostname: P0, portnumber: u32) -> *mut ldap +pub unsafe fn cldap_openA<'a, P0>(hostname: P0, portnumber: u32) -> *mut LDAP where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn cldap_openA(hostname: ::windows::core::PCSTR, portnumber: u32) -> *mut ldap; + fn cldap_openA(hostname: ::windows::core::PCSTR, portnumber: u32) -> *mut LDAP; } cldap_openA(hostname.into(), portnumber) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn cldap_openW<'a, P0>(hostname: P0, portnumber: u32) -> *mut ldap +pub unsafe fn cldap_openW<'a, P0>(hostname: P0, portnumber: u32) -> *mut LDAP where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn cldap_openW(hostname: ::windows::core::PCWSTR, portnumber: u32) -> *mut ldap; + fn cldap_openW(hostname: ::windows::core::PCWSTR, portnumber: u32) -> *mut LDAP; } cldap_openW(hostname.into(), portnumber) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_abandon(ld: &mut ldap, msgid: u32) -> u32 { +pub unsafe fn ldap_abandon(ld: &mut LDAP, msgid: u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_abandon(ld: *mut ldap, msgid: u32) -> u32; + fn ldap_abandon(ld: *mut LDAP, msgid: u32) -> u32; } ldap_abandon(::core::mem::transmute(ld), msgid) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_add<'a, P0>(ld: &mut ldap, dn: P0, attrs: &mut *mut ldapmodA) -> u32 +pub unsafe fn ldap_add<'a, P0>(ld: &mut LDAP, dn: P0, attrs: &mut *mut LDAPModA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_add(ld: *mut ldap, dn: ::windows::core::PCSTR, attrs: *mut *mut ldapmodA) -> u32; + fn ldap_add(ld: *mut LDAP, dn: ::windows::core::PCSTR, attrs: *mut *mut LDAPModA) -> u32; } ldap_add(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(attrs)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_addA<'a, P0>(ld: &mut ldap, dn: P0, attrs: &mut *mut ldapmodA) -> u32 +pub unsafe fn ldap_addA<'a, P0>(ld: &mut LDAP, dn: P0, attrs: &mut *mut LDAPModA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_addA(ld: *mut ldap, dn: ::windows::core::PCSTR, attrs: *mut *mut ldapmodA) -> u32; + fn ldap_addA(ld: *mut LDAP, dn: ::windows::core::PCSTR, attrs: *mut *mut LDAPModA) -> u32; } ldap_addA(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(attrs)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_addW<'a, P0>(ld: &mut ldap, dn: P0, attrs: &mut *mut ldapmodW) -> u32 +pub unsafe fn ldap_addW<'a, P0>(ld: &mut LDAP, dn: P0, attrs: &mut *mut LDAPModW) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_addW(ld: *mut ldap, dn: ::windows::core::PCWSTR, attrs: *mut *mut ldapmodW) -> u32; + fn ldap_addW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, attrs: *mut *mut LDAPModW) -> u32; } ldap_addW(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(attrs)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_add_ext<'a, P0>(ld: &mut ldap, dn: P0, attrs: &mut *mut ldapmodA, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_add_ext<'a, P0>(ld: &mut LDAP, dn: P0, attrs: &mut *mut LDAPModA, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_add_ext(ld: *mut ldap, dn: ::windows::core::PCSTR, attrs: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + fn ldap_add_ext(ld: *mut LDAP, dn: ::windows::core::PCSTR, attrs: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; } ldap_add_ext(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(attrs), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_add_extA<'a, P0>(ld: &mut ldap, dn: P0, attrs: &mut *mut ldapmodA, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_add_extA<'a, P0>(ld: &mut LDAP, dn: P0, attrs: &mut *mut LDAPModA, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_add_extA(ld: *mut ldap, dn: ::windows::core::PCSTR, attrs: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + fn ldap_add_extA(ld: *mut LDAP, dn: ::windows::core::PCSTR, attrs: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; } ldap_add_extA(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(attrs), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_add_extW<'a, P0>(ld: &mut ldap, dn: P0, attrs: &mut *mut ldapmodW, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_add_extW<'a, P0>(ld: &mut LDAP, dn: P0, attrs: &mut *mut LDAPModW, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_add_extW(ld: *mut ldap, dn: ::windows::core::PCWSTR, attrs: *mut *mut ldapmodW, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, messagenumber: *mut u32) -> u32; + fn ldap_add_extW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, attrs: *mut *mut LDAPModW, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32; } ldap_add_extW(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(attrs), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_add_ext_s<'a, P0>(ld: &mut ldap, dn: P0, attrs: &mut *mut ldapmodA, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA) -> u32 +pub unsafe fn ldap_add_ext_s<'a, P0>(ld: &mut LDAP, dn: P0, attrs: &mut *mut LDAPModA, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_add_ext_s(ld: *mut ldap, dn: ::windows::core::PCSTR, attrs: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + fn ldap_add_ext_s(ld: *mut LDAP, dn: ::windows::core::PCSTR, attrs: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; } ldap_add_ext_s(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(attrs), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_add_ext_sA<'a, P0>(ld: &mut ldap, dn: P0, attrs: &mut *mut ldapmodA, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA) -> u32 +pub unsafe fn ldap_add_ext_sA<'a, P0>(ld: &mut LDAP, dn: P0, attrs: &mut *mut LDAPModA, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_add_ext_sA(ld: *mut ldap, dn: ::windows::core::PCSTR, attrs: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + fn ldap_add_ext_sA(ld: *mut LDAP, dn: ::windows::core::PCSTR, attrs: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; } ldap_add_ext_sA(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(attrs), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_add_ext_sW<'a, P0>(ld: &mut ldap, dn: P0, attrs: &mut *mut ldapmodW, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW) -> u32 +pub unsafe fn ldap_add_ext_sW<'a, P0>(ld: &mut LDAP, dn: P0, attrs: &mut *mut LDAPModW, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_add_ext_sW(ld: *mut ldap, dn: ::windows::core::PCWSTR, attrs: *mut *mut ldapmodW, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW) -> u32; + fn ldap_add_ext_sW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, attrs: *mut *mut LDAPModW, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32; } ldap_add_ext_sW(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(attrs), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_add_s<'a, P0>(ld: &mut ldap, dn: P0, attrs: &mut *mut ldapmodA) -> u32 +pub unsafe fn ldap_add_s<'a, P0>(ld: &mut LDAP, dn: P0, attrs: &mut *mut LDAPModA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_add_s(ld: *mut ldap, dn: ::windows::core::PCSTR, attrs: *mut *mut ldapmodA) -> u32; + fn ldap_add_s(ld: *mut LDAP, dn: ::windows::core::PCSTR, attrs: *mut *mut LDAPModA) -> u32; } ldap_add_s(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(attrs)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_add_sA<'a, P0>(ld: &mut ldap, dn: P0, attrs: &mut *mut ldapmodA) -> u32 +pub unsafe fn ldap_add_sA<'a, P0>(ld: &mut LDAP, dn: P0, attrs: &mut *mut LDAPModA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_add_sA(ld: *mut ldap, dn: ::windows::core::PCSTR, attrs: *mut *mut ldapmodA) -> u32; + fn ldap_add_sA(ld: *mut LDAP, dn: ::windows::core::PCSTR, attrs: *mut *mut LDAPModA) -> u32; } ldap_add_sA(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(attrs)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_add_sW<'a, P0>(ld: &mut ldap, dn: P0, attrs: &mut *mut ldapmodW) -> u32 +pub unsafe fn ldap_add_sW<'a, P0>(ld: &mut LDAP, dn: P0, attrs: &mut *mut LDAPModW) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_add_sW(ld: *mut ldap, dn: ::windows::core::PCWSTR, attrs: *mut *mut ldapmodW) -> u32; + fn ldap_add_sW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, attrs: *mut *mut LDAPModW) -> u32; } ldap_add_sW(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(attrs)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_bind<'a, P0, P1>(ld: &mut ldap, dn: P0, cred: P1, method: u32) -> u32 +pub unsafe fn ldap_bind<'a, P0, P1>(ld: &mut LDAP, dn: P0, cred: P1, method: u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_bind(ld: *mut ldap, dn: ::windows::core::PCSTR, cred: ::windows::core::PCSTR, method: u32) -> u32; + fn ldap_bind(ld: *mut LDAP, dn: ::windows::core::PCSTR, cred: ::windows::core::PCSTR, method: u32) -> u32; } ldap_bind(::core::mem::transmute(ld), dn.into(), cred.into(), method) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_bindA<'a, P0, P1>(ld: &mut ldap, dn: P0, cred: P1, method: u32) -> u32 +pub unsafe fn ldap_bindA<'a, P0, P1>(ld: &mut LDAP, dn: P0, cred: P1, method: u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_bindA(ld: *mut ldap, dn: ::windows::core::PCSTR, cred: ::windows::core::PCSTR, method: u32) -> u32; + fn ldap_bindA(ld: *mut LDAP, dn: ::windows::core::PCSTR, cred: ::windows::core::PCSTR, method: u32) -> u32; } ldap_bindA(::core::mem::transmute(ld), dn.into(), cred.into(), method) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_bindW<'a, P0, P1>(ld: &mut ldap, dn: P0, cred: P1, method: u32) -> u32 +pub unsafe fn ldap_bindW<'a, P0, P1>(ld: &mut LDAP, dn: P0, cred: P1, method: u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_bindW(ld: *mut ldap, dn: ::windows::core::PCWSTR, cred: ::windows::core::PCWSTR, method: u32) -> u32; + fn ldap_bindW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, cred: ::windows::core::PCWSTR, method: u32) -> u32; } ldap_bindW(::core::mem::transmute(ld), dn.into(), cred.into(), method) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_bind_s<'a, P0, P1>(ld: &mut ldap, dn: P0, cred: P1, method: u32) -> u32 +pub unsafe fn ldap_bind_s<'a, P0, P1>(ld: &mut LDAP, dn: P0, cred: P1, method: u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_bind_s(ld: *mut ldap, dn: ::windows::core::PCSTR, cred: ::windows::core::PCSTR, method: u32) -> u32; + fn ldap_bind_s(ld: *mut LDAP, dn: ::windows::core::PCSTR, cred: ::windows::core::PCSTR, method: u32) -> u32; } ldap_bind_s(::core::mem::transmute(ld), dn.into(), cred.into(), method) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_bind_sA<'a, P0, P1>(ld: &mut ldap, dn: P0, cred: P1, method: u32) -> u32 +pub unsafe fn ldap_bind_sA<'a, P0, P1>(ld: &mut LDAP, dn: P0, cred: P1, method: u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_bind_sA(ld: *mut ldap, dn: ::windows::core::PCSTR, cred: ::windows::core::PCSTR, method: u32) -> u32; + fn ldap_bind_sA(ld: *mut LDAP, dn: ::windows::core::PCSTR, cred: ::windows::core::PCSTR, method: u32) -> u32; } ldap_bind_sA(::core::mem::transmute(ld), dn.into(), cred.into(), method) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_bind_sW<'a, P0, P1>(ld: &mut ldap, dn: P0, cred: P1, method: u32) -> u32 +pub unsafe fn ldap_bind_sW<'a, P0, P1>(ld: &mut LDAP, dn: P0, cred: P1, method: u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_bind_sW(ld: *mut ldap, dn: ::windows::core::PCWSTR, cred: ::windows::core::PCWSTR, method: u32) -> u32; + fn ldap_bind_sW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, cred: ::windows::core::PCWSTR, method: u32) -> u32; } ldap_bind_sW(::core::mem::transmute(ld), dn.into(), cred.into(), method) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_check_filterA<'a, P0>(ld: &mut ldap, searchfilter: P0) -> u32 +pub unsafe fn ldap_check_filterA<'a, P0>(ld: &mut LDAP, searchfilter: P0) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_check_filterA(ld: *mut ldap, searchfilter: ::windows::core::PCSTR) -> u32; + fn ldap_check_filterA(ld: *mut LDAP, searchfilter: ::windows::core::PCSTR) -> u32; } ldap_check_filterA(::core::mem::transmute(ld), searchfilter.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_check_filterW<'a, P0>(ld: &mut ldap, searchfilter: P0) -> u32 +pub unsafe fn ldap_check_filterW<'a, P0>(ld: &mut LDAP, searchfilter: P0) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_check_filterW(ld: *mut ldap, searchfilter: ::windows::core::PCWSTR) -> u32; + fn ldap_check_filterW(ld: *mut LDAP, searchfilter: ::windows::core::PCWSTR) -> u32; } ldap_check_filterW(::core::mem::transmute(ld), searchfilter.into()) } @@ -473,16 +473,16 @@ where } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_close_extended_op(ld: &mut ldap, messagenumber: u32) -> u32 { +pub unsafe fn ldap_close_extended_op(ld: &mut LDAP, messagenumber: u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_close_extended_op(ld: *mut ldap, messagenumber: u32) -> u32; + fn ldap_close_extended_op(ld: *mut LDAP, messagenumber: u32) -> u32; } ldap_close_extended_op(::core::mem::transmute(ld), messagenumber) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_compare<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, attr: P1, value: P2) -> u32 +pub unsafe fn ldap_compare<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, attr: P1, value: P2) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, @@ -490,13 +490,13 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_compare(ld: *mut ldap, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR) -> u32; + fn ldap_compare(ld: *mut LDAP, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR) -> u32; } ldap_compare(::core::mem::transmute(ld), dn.into(), attr.into(), value.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_compareA<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, attr: P1, value: P2) -> u32 +pub unsafe fn ldap_compareA<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, attr: P1, value: P2) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, @@ -504,13 +504,13 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_compareA(ld: *mut ldap, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR) -> u32; + fn ldap_compareA(ld: *mut LDAP, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR) -> u32; } ldap_compareA(::core::mem::transmute(ld), dn.into(), attr.into(), value.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_compareW<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, attr: P1, value: P2) -> u32 +pub unsafe fn ldap_compareW<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, attr: P1, value: P2) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, @@ -518,14 +518,14 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_compareW(ld: *mut ldap, dn: ::windows::core::PCWSTR, attr: ::windows::core::PCWSTR, value: ::windows::core::PCWSTR) -> u32; + fn ldap_compareW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, attr: ::windows::core::PCWSTR, value: ::windows::core::PCWSTR) -> u32; } ldap_compareW(::core::mem::transmute(ld), dn.into(), attr.into(), value.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_compare_ext<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, attr: P1, value: P2, data: &mut LDAP_BERVAL, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_compare_ext<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, attr: P1, value: P2, data: &mut LDAP_BERVAL, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, @@ -533,14 +533,14 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_compare_ext(ld: *mut ldap, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + fn ldap_compare_ext(ld: *mut LDAP, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; } ldap_compare_ext(::core::mem::transmute(ld), dn.into(), attr.into(), value.into(), ::core::mem::transmute(data), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_compare_extA<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, attr: P1, value: P2, data: ::core::option::Option<&LDAP_BERVAL>, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_compare_extA<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, attr: P1, value: P2, data: ::core::option::Option<&LDAP_BERVAL>, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, @@ -548,14 +548,14 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_compare_extA(ld: *mut ldap, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + fn ldap_compare_extA(ld: *mut LDAP, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; } ldap_compare_extA(::core::mem::transmute(ld), dn.into(), attr.into(), value.into(), ::core::mem::transmute(data), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_compare_extW<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, attr: P1, value: P2, data: ::core::option::Option<&LDAP_BERVAL>, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_compare_extW<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, attr: P1, value: P2, data: ::core::option::Option<&LDAP_BERVAL>, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, @@ -563,14 +563,14 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_compare_extW(ld: *mut ldap, dn: ::windows::core::PCWSTR, attr: ::windows::core::PCWSTR, value: ::windows::core::PCWSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, messagenumber: *mut u32) -> u32; + fn ldap_compare_extW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, attr: ::windows::core::PCWSTR, value: ::windows::core::PCWSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32; } ldap_compare_extW(::core::mem::transmute(ld), dn.into(), attr.into(), value.into(), ::core::mem::transmute(data), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_compare_ext_s<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, attr: P1, value: P2, data: &mut LDAP_BERVAL, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA) -> u32 +pub unsafe fn ldap_compare_ext_s<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, attr: P1, value: P2, data: &mut LDAP_BERVAL, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, @@ -578,14 +578,14 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_compare_ext_s(ld: *mut ldap, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + fn ldap_compare_ext_s(ld: *mut LDAP, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; } ldap_compare_ext_s(::core::mem::transmute(ld), dn.into(), attr.into(), value.into(), ::core::mem::transmute(data), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_compare_ext_sA<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, attr: P1, value: P2, data: ::core::option::Option<&LDAP_BERVAL>, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA) -> u32 +pub unsafe fn ldap_compare_ext_sA<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, attr: P1, value: P2, data: ::core::option::Option<&LDAP_BERVAL>, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, @@ -593,14 +593,14 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_compare_ext_sA(ld: *mut ldap, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + fn ldap_compare_ext_sA(ld: *mut LDAP, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; } ldap_compare_ext_sA(::core::mem::transmute(ld), dn.into(), attr.into(), value.into(), ::core::mem::transmute(data), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_compare_ext_sW<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, attr: P1, value: P2, data: ::core::option::Option<&LDAP_BERVAL>, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW) -> u32 +pub unsafe fn ldap_compare_ext_sW<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, attr: P1, value: P2, data: ::core::option::Option<&LDAP_BERVAL>, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, @@ -608,13 +608,13 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_compare_ext_sW(ld: *mut ldap, dn: ::windows::core::PCWSTR, attr: ::windows::core::PCWSTR, value: ::windows::core::PCWSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW) -> u32; + fn ldap_compare_ext_sW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, attr: ::windows::core::PCWSTR, value: ::windows::core::PCWSTR, data: *const LDAP_BERVAL, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32; } ldap_compare_ext_sW(::core::mem::transmute(ld), dn.into(), attr.into(), value.into(), ::core::mem::transmute(data), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_compare_s<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, attr: P1, value: P2) -> u32 +pub unsafe fn ldap_compare_s<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, attr: P1, value: P2) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, @@ -622,13 +622,13 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_compare_s(ld: *mut ldap, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR) -> u32; + fn ldap_compare_s(ld: *mut LDAP, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR) -> u32; } ldap_compare_s(::core::mem::transmute(ld), dn.into(), attr.into(), value.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_compare_sA<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, attr: P1, value: P2) -> u32 +pub unsafe fn ldap_compare_sA<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, attr: P1, value: P2) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, @@ -636,13 +636,13 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_compare_sA(ld: *mut ldap, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR) -> u32; + fn ldap_compare_sA(ld: *mut LDAP, dn: ::windows::core::PCSTR, attr: ::windows::core::PCSTR, value: ::windows::core::PCSTR) -> u32; } ldap_compare_sA(::core::mem::transmute(ld), dn.into(), attr.into(), value.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_compare_sW<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, attr: P1, value: P2) -> u32 +pub unsafe fn ldap_compare_sW<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, attr: P1, value: P2) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, @@ -650,106 +650,106 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_compare_sW(ld: *mut ldap, dn: ::windows::core::PCWSTR, attr: ::windows::core::PCWSTR, value: ::windows::core::PCWSTR) -> u32; + fn ldap_compare_sW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, attr: ::windows::core::PCWSTR, value: ::windows::core::PCWSTR) -> u32; } ldap_compare_sW(::core::mem::transmute(ld), dn.into(), attr.into(), value.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_conn_from_msg(primaryconn: &mut ldap, res: &mut LDAPMessage) -> *mut ldap { +pub unsafe fn ldap_conn_from_msg(primaryconn: &mut LDAP, res: &mut LDAPMessage) -> *mut LDAP { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_conn_from_msg(primaryconn: *mut ldap, res: *mut LDAPMessage) -> *mut ldap; + fn ldap_conn_from_msg(primaryconn: *mut LDAP, res: *mut LDAPMessage) -> *mut LDAP; } ldap_conn_from_msg(::core::mem::transmute(primaryconn), ::core::mem::transmute(res)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_connect(ld: &mut ldap, timeout: &mut LDAP_TIMEVAL) -> u32 { +pub unsafe fn ldap_connect(ld: &mut LDAP, timeout: &mut LDAP_TIMEVAL) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_connect(ld: *mut ldap, timeout: *mut LDAP_TIMEVAL) -> u32; + fn ldap_connect(ld: *mut LDAP, timeout: *mut LDAP_TIMEVAL) -> u32; } ldap_connect(::core::mem::transmute(ld), ::core::mem::transmute(timeout)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_control_free(control: &mut ldapcontrolA) -> u32 { +pub unsafe fn ldap_control_free(control: &mut LDAPControlA) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_control_free(control: *mut ldapcontrolA) -> u32; + fn ldap_control_free(control: *mut LDAPControlA) -> u32; } ldap_control_free(::core::mem::transmute(control)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_control_freeA(controls: &mut ldapcontrolA) -> u32 { +pub unsafe fn ldap_control_freeA(controls: &mut LDAPControlA) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_control_freeA(controls: *mut ldapcontrolA) -> u32; + fn ldap_control_freeA(controls: *mut LDAPControlA) -> u32; } ldap_control_freeA(::core::mem::transmute(controls)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_control_freeW(control: &mut ldapcontrolW) -> u32 { +pub unsafe fn ldap_control_freeW(control: &mut LDAPControlW) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_control_freeW(control: *mut ldapcontrolW) -> u32; + fn ldap_control_freeW(control: *mut LDAPControlW) -> u32; } ldap_control_freeW(::core::mem::transmute(control)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_controls_free(controls: &mut *mut ldapcontrolA) -> u32 { +pub unsafe fn ldap_controls_free(controls: &mut *mut LDAPControlA) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_controls_free(controls: *mut *mut ldapcontrolA) -> u32; + fn ldap_controls_free(controls: *mut *mut LDAPControlA) -> u32; } ldap_controls_free(::core::mem::transmute(controls)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_controls_freeA(controls: &mut *mut ldapcontrolA) -> u32 { +pub unsafe fn ldap_controls_freeA(controls: &mut *mut LDAPControlA) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_controls_freeA(controls: *mut *mut ldapcontrolA) -> u32; + fn ldap_controls_freeA(controls: *mut *mut LDAPControlA) -> u32; } ldap_controls_freeA(::core::mem::transmute(controls)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_controls_freeW(control: &mut *mut ldapcontrolW) -> u32 { +pub unsafe fn ldap_controls_freeW(control: &mut *mut LDAPControlW) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_controls_freeW(control: *mut *mut ldapcontrolW) -> u32; + fn ldap_controls_freeW(control: *mut *mut LDAPControlW) -> u32; } ldap_controls_freeW(::core::mem::transmute(control)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_count_entries(ld: &mut ldap, res: &mut LDAPMessage) -> u32 { +pub unsafe fn ldap_count_entries(ld: &mut LDAP, res: &mut LDAPMessage) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_count_entries(ld: *mut ldap, res: *mut LDAPMessage) -> u32; + fn ldap_count_entries(ld: *mut LDAP, res: *mut LDAPMessage) -> u32; } ldap_count_entries(::core::mem::transmute(ld), ::core::mem::transmute(res)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_count_references(ld: &mut ldap, res: &mut LDAPMessage) -> u32 { +pub unsafe fn ldap_count_references(ld: &mut LDAP, res: &mut LDAPMessage) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_count_references(ld: *mut ldap, res: *mut LDAPMessage) -> u32; + fn ldap_count_references(ld: *mut LDAP, res: *mut LDAPMessage) -> u32; } ldap_count_references(::core::mem::transmute(ld), ::core::mem::transmute(res)) } @@ -792,230 +792,230 @@ pub unsafe fn ldap_count_values_len(vals: &mut *mut LDAP_BERVAL) -> u32 { #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_create_page_control(externalhandle: &mut ldap, pagesize: u32, cookie: &mut LDAP_BERVAL, iscritical: u8, control: &mut *mut ldapcontrolA) -> u32 { +pub unsafe fn ldap_create_page_control(externalhandle: &mut LDAP, pagesize: u32, cookie: &mut LDAP_BERVAL, iscritical: u8, control: &mut *mut LDAPControlA) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_create_page_control(externalhandle: *mut ldap, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut ldapcontrolA) -> u32; + fn ldap_create_page_control(externalhandle: *mut LDAP, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut LDAPControlA) -> u32; } ldap_create_page_control(::core::mem::transmute(externalhandle), pagesize, ::core::mem::transmute(cookie), iscritical, ::core::mem::transmute(control)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_create_page_controlA(externalhandle: &mut ldap, pagesize: u32, cookie: &mut LDAP_BERVAL, iscritical: u8, control: &mut *mut ldapcontrolA) -> u32 { +pub unsafe fn ldap_create_page_controlA(externalhandle: &mut LDAP, pagesize: u32, cookie: &mut LDAP_BERVAL, iscritical: u8, control: &mut *mut LDAPControlA) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_create_page_controlA(externalhandle: *mut ldap, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut ldapcontrolA) -> u32; + fn ldap_create_page_controlA(externalhandle: *mut LDAP, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut LDAPControlA) -> u32; } ldap_create_page_controlA(::core::mem::transmute(externalhandle), pagesize, ::core::mem::transmute(cookie), iscritical, ::core::mem::transmute(control)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_create_page_controlW(externalhandle: &mut ldap, pagesize: u32, cookie: &mut LDAP_BERVAL, iscritical: u8, control: &mut *mut ldapcontrolW) -> u32 { +pub unsafe fn ldap_create_page_controlW(externalhandle: &mut LDAP, pagesize: u32, cookie: &mut LDAP_BERVAL, iscritical: u8, control: &mut *mut LDAPControlW) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_create_page_controlW(externalhandle: *mut ldap, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut ldapcontrolW) -> u32; + fn ldap_create_page_controlW(externalhandle: *mut LDAP, pagesize: u32, cookie: *mut LDAP_BERVAL, iscritical: u8, control: *mut *mut LDAPControlW) -> u32; } ldap_create_page_controlW(::core::mem::transmute(externalhandle), pagesize, ::core::mem::transmute(cookie), iscritical, ::core::mem::transmute(control)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_create_sort_control(externalhandle: &mut ldap, sortkeys: &mut *mut ldapsortkeyA, iscritical: u8, control: &mut *mut ldapcontrolA) -> u32 { +pub unsafe fn ldap_create_sort_control(externalhandle: &mut LDAP, sortkeys: &mut *mut LDAPSortKeyA, iscritical: u8, control: &mut *mut LDAPControlA) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_create_sort_control(externalhandle: *mut ldap, sortkeys: *mut *mut ldapsortkeyA, iscritical: u8, control: *mut *mut ldapcontrolA) -> u32; + fn ldap_create_sort_control(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyA, iscritical: u8, control: *mut *mut LDAPControlA) -> u32; } ldap_create_sort_control(::core::mem::transmute(externalhandle), ::core::mem::transmute(sortkeys), iscritical, ::core::mem::transmute(control)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_create_sort_controlA(externalhandle: &mut ldap, sortkeys: &mut *mut ldapsortkeyA, iscritical: u8, control: &mut *mut ldapcontrolA) -> u32 { +pub unsafe fn ldap_create_sort_controlA(externalhandle: &mut LDAP, sortkeys: &mut *mut LDAPSortKeyA, iscritical: u8, control: &mut *mut LDAPControlA) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_create_sort_controlA(externalhandle: *mut ldap, sortkeys: *mut *mut ldapsortkeyA, iscritical: u8, control: *mut *mut ldapcontrolA) -> u32; + fn ldap_create_sort_controlA(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyA, iscritical: u8, control: *mut *mut LDAPControlA) -> u32; } ldap_create_sort_controlA(::core::mem::transmute(externalhandle), ::core::mem::transmute(sortkeys), iscritical, ::core::mem::transmute(control)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_create_sort_controlW(externalhandle: &mut ldap, sortkeys: &mut *mut ldapsortkeyW, iscritical: u8, control: &mut *mut ldapcontrolW) -> u32 { +pub unsafe fn ldap_create_sort_controlW(externalhandle: &mut LDAP, sortkeys: &mut *mut LDAPSortKeyW, iscritical: u8, control: &mut *mut LDAPControlW) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_create_sort_controlW(externalhandle: *mut ldap, sortkeys: *mut *mut ldapsortkeyW, iscritical: u8, control: *mut *mut ldapcontrolW) -> u32; + fn ldap_create_sort_controlW(externalhandle: *mut LDAP, sortkeys: *mut *mut LDAPSortKeyW, iscritical: u8, control: *mut *mut LDAPControlW) -> u32; } ldap_create_sort_controlW(::core::mem::transmute(externalhandle), ::core::mem::transmute(sortkeys), iscritical, ::core::mem::transmute(control)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_create_vlv_controlA(externalhandle: &mut ldap, vlvinfo: &mut ldapvlvinfo, iscritical: u8, control: &mut *mut ldapcontrolA) -> i32 { +pub unsafe fn ldap_create_vlv_controlA(externalhandle: &mut LDAP, vlvinfo: &mut LDAPVLVInfo, iscritical: u8, control: &mut *mut LDAPControlA) -> i32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_create_vlv_controlA(externalhandle: *mut ldap, vlvinfo: *mut ldapvlvinfo, iscritical: u8, control: *mut *mut ldapcontrolA) -> i32; + fn ldap_create_vlv_controlA(externalhandle: *mut LDAP, vlvinfo: *mut LDAPVLVInfo, iscritical: u8, control: *mut *mut LDAPControlA) -> i32; } ldap_create_vlv_controlA(::core::mem::transmute(externalhandle), ::core::mem::transmute(vlvinfo), iscritical, ::core::mem::transmute(control)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_create_vlv_controlW(externalhandle: &mut ldap, vlvinfo: &mut ldapvlvinfo, iscritical: u8, control: &mut *mut ldapcontrolW) -> i32 { +pub unsafe fn ldap_create_vlv_controlW(externalhandle: &mut LDAP, vlvinfo: &mut LDAPVLVInfo, iscritical: u8, control: &mut *mut LDAPControlW) -> i32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_create_vlv_controlW(externalhandle: *mut ldap, vlvinfo: *mut ldapvlvinfo, iscritical: u8, control: *mut *mut ldapcontrolW) -> i32; + fn ldap_create_vlv_controlW(externalhandle: *mut LDAP, vlvinfo: *mut LDAPVLVInfo, iscritical: u8, control: *mut *mut LDAPControlW) -> i32; } ldap_create_vlv_controlW(::core::mem::transmute(externalhandle), ::core::mem::transmute(vlvinfo), iscritical, ::core::mem::transmute(control)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_delete<'a, P0>(ld: &mut ldap, dn: P0) -> u32 +pub unsafe fn ldap_delete<'a, P0>(ld: &mut LDAP, dn: P0) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_delete(ld: *mut ldap, dn: ::windows::core::PCSTR) -> u32; + fn ldap_delete(ld: *mut LDAP, dn: ::windows::core::PCSTR) -> u32; } ldap_delete(::core::mem::transmute(ld), dn.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_deleteA<'a, P0>(ld: &mut ldap, dn: P0) -> u32 +pub unsafe fn ldap_deleteA<'a, P0>(ld: &mut LDAP, dn: P0) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_deleteA(ld: *mut ldap, dn: ::windows::core::PCSTR) -> u32; + fn ldap_deleteA(ld: *mut LDAP, dn: ::windows::core::PCSTR) -> u32; } ldap_deleteA(::core::mem::transmute(ld), dn.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_deleteW<'a, P0>(ld: &mut ldap, dn: P0) -> u32 +pub unsafe fn ldap_deleteW<'a, P0>(ld: &mut LDAP, dn: P0) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_deleteW(ld: *mut ldap, dn: ::windows::core::PCWSTR) -> u32; + fn ldap_deleteW(ld: *mut LDAP, dn: ::windows::core::PCWSTR) -> u32; } ldap_deleteW(::core::mem::transmute(ld), dn.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_delete_ext<'a, P0>(ld: &mut ldap, dn: P0, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_delete_ext<'a, P0>(ld: &mut LDAP, dn: P0, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_delete_ext(ld: *mut ldap, dn: ::windows::core::PCSTR, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + fn ldap_delete_ext(ld: *mut LDAP, dn: ::windows::core::PCSTR, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; } ldap_delete_ext(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_delete_extA<'a, P0>(ld: &mut ldap, dn: P0, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_delete_extA<'a, P0>(ld: &mut LDAP, dn: P0, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_delete_extA(ld: *mut ldap, dn: ::windows::core::PCSTR, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + fn ldap_delete_extA(ld: *mut LDAP, dn: ::windows::core::PCSTR, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; } ldap_delete_extA(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_delete_extW<'a, P0>(ld: &mut ldap, dn: P0, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_delete_extW<'a, P0>(ld: &mut LDAP, dn: P0, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_delete_extW(ld: *mut ldap, dn: ::windows::core::PCWSTR, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, messagenumber: *mut u32) -> u32; + fn ldap_delete_extW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32; } ldap_delete_extW(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_delete_ext_s<'a, P0>(ld: &mut ldap, dn: P0, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA) -> u32 +pub unsafe fn ldap_delete_ext_s<'a, P0>(ld: &mut LDAP, dn: P0, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_delete_ext_s(ld: *mut ldap, dn: ::windows::core::PCSTR, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + fn ldap_delete_ext_s(ld: *mut LDAP, dn: ::windows::core::PCSTR, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; } ldap_delete_ext_s(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_delete_ext_sA<'a, P0>(ld: &mut ldap, dn: P0, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA) -> u32 +pub unsafe fn ldap_delete_ext_sA<'a, P0>(ld: &mut LDAP, dn: P0, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_delete_ext_sA(ld: *mut ldap, dn: ::windows::core::PCSTR, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + fn ldap_delete_ext_sA(ld: *mut LDAP, dn: ::windows::core::PCSTR, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; } ldap_delete_ext_sA(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_delete_ext_sW<'a, P0>(ld: &mut ldap, dn: P0, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW) -> u32 +pub unsafe fn ldap_delete_ext_sW<'a, P0>(ld: &mut LDAP, dn: P0, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_delete_ext_sW(ld: *mut ldap, dn: ::windows::core::PCWSTR, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW) -> u32; + fn ldap_delete_ext_sW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32; } ldap_delete_ext_sW(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_delete_s<'a, P0>(ld: &mut ldap, dn: P0) -> u32 +pub unsafe fn ldap_delete_s<'a, P0>(ld: &mut LDAP, dn: P0) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_delete_s(ld: *mut ldap, dn: ::windows::core::PCSTR) -> u32; + fn ldap_delete_s(ld: *mut LDAP, dn: ::windows::core::PCSTR) -> u32; } ldap_delete_s(::core::mem::transmute(ld), dn.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_delete_sA<'a, P0>(ld: &mut ldap, dn: P0) -> u32 +pub unsafe fn ldap_delete_sA<'a, P0>(ld: &mut LDAP, dn: P0) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_delete_sA(ld: *mut ldap, dn: ::windows::core::PCSTR) -> u32; + fn ldap_delete_sA(ld: *mut LDAP, dn: ::windows::core::PCSTR) -> u32; } ldap_delete_sA(::core::mem::transmute(ld), dn.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_delete_sW<'a, P0>(ld: &mut ldap, dn: P0) -> u32 +pub unsafe fn ldap_delete_sW<'a, P0>(ld: &mut LDAP, dn: P0) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_delete_sW(ld: *mut ldap, dn: ::windows::core::PCWSTR) -> u32; + fn ldap_delete_sW(ld: *mut LDAP, dn: ::windows::core::PCWSTR) -> u32; } ldap_delete_sW(::core::mem::transmute(ld), dn.into()) } @@ -1058,26 +1058,26 @@ where #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_encode_sort_controlA<'a, P0>(externalhandle: &mut ldap, sortkeys: &mut *mut ldapsortkeyA, control: &mut ldapcontrolA, criticality: P0) -> u32 +pub unsafe fn ldap_encode_sort_controlA<'a, P0>(externalhandle: &mut LDAP, sortkeys: &mut *mut LDAPSortKeyA, control: &mut LDAPControlA, criticality: P0) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_encode_sort_controlA(externalhandle: *mut ldap, sortkeys: *mut *mut ldapsortkeyA, control: *mut ldapcontrolA, criticality: super::super::Foundation::BOOLEAN) -> u32; + 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()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_encode_sort_controlW<'a, P0>(externalhandle: &mut ldap, sortkeys: &mut *mut ldapsortkeyW, control: &mut ldapcontrolW, criticality: P0) -> u32 +pub unsafe fn ldap_encode_sort_controlW<'a, P0>(externalhandle: &mut LDAP, sortkeys: &mut *mut LDAPSortKeyW, control: &mut LDAPControlW, criticality: P0) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_encode_sort_controlW(externalhandle: *mut ldap, sortkeys: *mut *mut ldapsortkeyW, control: *mut ldapcontrolW, criticality: super::super::Foundation::BOOLEAN) -> u32; + 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()) } @@ -1174,336 +1174,336 @@ where #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_extended_operation<'a, P0>(ld: &mut ldap, oid: P0, data: &mut LDAP_BERVAL, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_extended_operation<'a, P0>(ld: &mut LDAP, oid: P0, data: &mut LDAP_BERVAL, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_extended_operation(ld: *mut ldap, oid: ::windows::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + fn ldap_extended_operation(ld: *mut LDAP, oid: ::windows::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; } ldap_extended_operation(::core::mem::transmute(ld), oid.into(), ::core::mem::transmute(data), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_extended_operationA<'a, P0>(ld: &mut ldap, oid: P0, data: &mut LDAP_BERVAL, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_extended_operationA<'a, P0>(ld: &mut LDAP, oid: P0, data: &mut LDAP_BERVAL, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_extended_operationA(ld: *mut ldap, oid: ::windows::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + fn ldap_extended_operationA(ld: *mut LDAP, oid: ::windows::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; } ldap_extended_operationA(::core::mem::transmute(ld), oid.into(), ::core::mem::transmute(data), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_extended_operationW<'a, P0>(ld: &mut ldap, oid: P0, data: &mut LDAP_BERVAL, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_extended_operationW<'a, P0>(ld: &mut LDAP, oid: P0, data: &mut LDAP_BERVAL, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_extended_operationW(ld: *mut ldap, oid: ::windows::core::PCWSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, messagenumber: *mut u32) -> u32; + fn ldap_extended_operationW(ld: *mut LDAP, oid: ::windows::core::PCWSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32; } ldap_extended_operationW(::core::mem::transmute(ld), oid.into(), ::core::mem::transmute(data), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_extended_operation_sA<'a, P0>(externalhandle: &mut ldap, oid: P0, data: &mut LDAP_BERVAL, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, returnedoid: &mut ::windows::core::PSTR, returneddata: &mut *mut LDAP_BERVAL) -> u32 +pub unsafe fn ldap_extended_operation_sA<'a, P0>(externalhandle: &mut LDAP, oid: P0, data: &mut LDAP_BERVAL, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, returnedoid: &mut ::windows::core::PSTR, returneddata: &mut *mut LDAP_BERVAL) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_extended_operation_sA(externalhandle: *mut ldap, oid: ::windows::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, returnedoid: *mut ::windows::core::PSTR, returneddata: *mut *mut LDAP_BERVAL) -> u32; + fn ldap_extended_operation_sA(externalhandle: *mut LDAP, oid: ::windows::core::PCSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, returnedoid: *mut ::windows::core::PSTR, returneddata: *mut *mut LDAP_BERVAL) -> u32; } ldap_extended_operation_sA(::core::mem::transmute(externalhandle), oid.into(), ::core::mem::transmute(data), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(returnedoid), ::core::mem::transmute(returneddata)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_extended_operation_sW<'a, P0>(externalhandle: &mut ldap, oid: P0, data: &mut LDAP_BERVAL, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW, returnedoid: &mut ::windows::core::PWSTR, returneddata: &mut *mut LDAP_BERVAL) -> u32 +pub unsafe fn ldap_extended_operation_sW<'a, P0>(externalhandle: &mut LDAP, oid: P0, data: &mut LDAP_BERVAL, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW, returnedoid: &mut ::windows::core::PWSTR, returneddata: &mut *mut LDAP_BERVAL) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_extended_operation_sW(externalhandle: *mut ldap, oid: ::windows::core::PCWSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, returnedoid: *mut ::windows::core::PWSTR, returneddata: *mut *mut LDAP_BERVAL) -> u32; + fn ldap_extended_operation_sW(externalhandle: *mut LDAP, oid: ::windows::core::PCWSTR, data: *mut LDAP_BERVAL, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, returnedoid: *mut ::windows::core::PWSTR, returneddata: *mut *mut LDAP_BERVAL) -> u32; } ldap_extended_operation_sW(::core::mem::transmute(externalhandle), oid.into(), ::core::mem::transmute(data), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(returnedoid), ::core::mem::transmute(returneddata)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_first_attribute(ld: &mut ldap, entry: &mut LDAPMessage, ptr: &mut *mut berelement) -> ::windows::core::PSTR { +pub unsafe fn ldap_first_attribute(ld: &mut LDAP, entry: &mut LDAPMessage, ptr: &mut *mut BerElement) -> ::windows::core::PSTR { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_first_attribute(ld: *mut ldap, entry: *mut LDAPMessage, ptr: *mut *mut berelement) -> ::windows::core::PSTR; + fn ldap_first_attribute(ld: *mut LDAP, entry: *mut LDAPMessage, ptr: *mut *mut BerElement) -> ::windows::core::PSTR; } ldap_first_attribute(::core::mem::transmute(ld), ::core::mem::transmute(entry), ::core::mem::transmute(ptr)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_first_attributeA(ld: &mut ldap, entry: &mut LDAPMessage, ptr: &mut *mut berelement) -> ::windows::core::PSTR { +pub unsafe fn ldap_first_attributeA(ld: &mut LDAP, entry: &mut LDAPMessage, ptr: &mut *mut BerElement) -> ::windows::core::PSTR { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_first_attributeA(ld: *mut ldap, entry: *mut LDAPMessage, ptr: *mut *mut berelement) -> ::windows::core::PSTR; + fn ldap_first_attributeA(ld: *mut LDAP, entry: *mut LDAPMessage, ptr: *mut *mut BerElement) -> ::windows::core::PSTR; } ldap_first_attributeA(::core::mem::transmute(ld), ::core::mem::transmute(entry), ::core::mem::transmute(ptr)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_first_attributeW(ld: &mut ldap, entry: &mut LDAPMessage, ptr: &mut *mut berelement) -> ::windows::core::PWSTR { +pub unsafe fn ldap_first_attributeW(ld: &mut LDAP, entry: &mut LDAPMessage, ptr: &mut *mut BerElement) -> ::windows::core::PWSTR { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_first_attributeW(ld: *mut ldap, entry: *mut LDAPMessage, ptr: *mut *mut berelement) -> ::windows::core::PWSTR; + fn ldap_first_attributeW(ld: *mut LDAP, entry: *mut LDAPMessage, ptr: *mut *mut BerElement) -> ::windows::core::PWSTR; } ldap_first_attributeW(::core::mem::transmute(ld), ::core::mem::transmute(entry), ::core::mem::transmute(ptr)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_first_entry(ld: &mut ldap, res: &mut LDAPMessage) -> *mut LDAPMessage { +pub unsafe fn ldap_first_entry(ld: &mut LDAP, res: &mut LDAPMessage) -> *mut LDAPMessage { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_first_entry(ld: *mut ldap, res: *mut LDAPMessage) -> *mut LDAPMessage; + fn ldap_first_entry(ld: *mut LDAP, res: *mut LDAPMessage) -> *mut LDAPMessage; } ldap_first_entry(::core::mem::transmute(ld), ::core::mem::transmute(res)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_first_reference(ld: &mut ldap, res: &mut LDAPMessage) -> *mut LDAPMessage { +pub unsafe fn ldap_first_reference(ld: &mut LDAP, res: &mut LDAPMessage) -> *mut LDAPMessage { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_first_reference(ld: *mut ldap, res: *mut LDAPMessage) -> *mut LDAPMessage; + fn ldap_first_reference(ld: *mut LDAP, res: *mut LDAPMessage) -> *mut LDAPMessage; } ldap_first_reference(::core::mem::transmute(ld), ::core::mem::transmute(res)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_free_controls(controls: &mut *mut ldapcontrolA) -> u32 { +pub unsafe fn ldap_free_controls(controls: &mut *mut LDAPControlA) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_free_controls(controls: *mut *mut ldapcontrolA) -> u32; + fn ldap_free_controls(controls: *mut *mut LDAPControlA) -> u32; } ldap_free_controls(::core::mem::transmute(controls)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_free_controlsA(controls: &mut *mut ldapcontrolA) -> u32 { +pub unsafe fn ldap_free_controlsA(controls: &mut *mut LDAPControlA) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_free_controlsA(controls: *mut *mut ldapcontrolA) -> u32; + fn ldap_free_controlsA(controls: *mut *mut LDAPControlA) -> u32; } ldap_free_controlsA(::core::mem::transmute(controls)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_free_controlsW(controls: &mut *mut ldapcontrolW) -> u32 { +pub unsafe fn ldap_free_controlsW(controls: &mut *mut LDAPControlW) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_free_controlsW(controls: *mut *mut ldapcontrolW) -> u32; + fn ldap_free_controlsW(controls: *mut *mut LDAPControlW) -> u32; } ldap_free_controlsW(::core::mem::transmute(controls)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_get_dn(ld: &mut ldap, entry: &mut LDAPMessage) -> ::windows::core::PSTR { +pub unsafe fn ldap_get_dn(ld: &mut LDAP, entry: &mut LDAPMessage) -> ::windows::core::PSTR { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_dn(ld: *mut ldap, entry: *mut LDAPMessage) -> ::windows::core::PSTR; + fn ldap_get_dn(ld: *mut LDAP, entry: *mut LDAPMessage) -> ::windows::core::PSTR; } ldap_get_dn(::core::mem::transmute(ld), ::core::mem::transmute(entry)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_get_dnA(ld: &mut ldap, entry: &mut LDAPMessage) -> ::windows::core::PSTR { +pub unsafe fn ldap_get_dnA(ld: &mut LDAP, entry: &mut LDAPMessage) -> ::windows::core::PSTR { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_dnA(ld: *mut ldap, entry: *mut LDAPMessage) -> ::windows::core::PSTR; + fn ldap_get_dnA(ld: *mut LDAP, entry: *mut LDAPMessage) -> ::windows::core::PSTR; } ldap_get_dnA(::core::mem::transmute(ld), ::core::mem::transmute(entry)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_get_dnW(ld: &mut ldap, entry: &mut LDAPMessage) -> ::windows::core::PWSTR { +pub unsafe fn ldap_get_dnW(ld: &mut LDAP, entry: &mut LDAPMessage) -> ::windows::core::PWSTR { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_dnW(ld: *mut ldap, entry: *mut LDAPMessage) -> ::windows::core::PWSTR; + fn ldap_get_dnW(ld: *mut LDAP, entry: *mut LDAPMessage) -> ::windows::core::PWSTR; } ldap_get_dnW(::core::mem::transmute(ld), ::core::mem::transmute(entry)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_get_next_page(externalhandle: &mut ldap, searchhandle: &mut ldapsearch, pagesize: u32, messagenumber: &mut u32) -> u32 { +pub unsafe fn ldap_get_next_page(externalhandle: &mut LDAP, searchhandle: &mut LDAPSearch, pagesize: u32, messagenumber: &mut u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_next_page(externalhandle: *mut ldap, searchhandle: *mut ldapsearch, pagesize: u32, messagenumber: *mut u32) -> u32; + fn ldap_get_next_page(externalhandle: *mut LDAP, searchhandle: *mut LDAPSearch, pagesize: u32, messagenumber: *mut u32) -> u32; } ldap_get_next_page(::core::mem::transmute(externalhandle), ::core::mem::transmute(searchhandle), pagesize, ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_get_next_page_s(externalhandle: &mut ldap, searchhandle: &mut ldapsearch, timeout: &mut LDAP_TIMEVAL, pagesize: u32, totalcount: &mut u32, results: &mut *mut LDAPMessage) -> u32 { +pub unsafe fn ldap_get_next_page_s(externalhandle: &mut LDAP, searchhandle: &mut LDAPSearch, timeout: &mut LDAP_TIMEVAL, pagesize: u32, totalcount: &mut u32, results: &mut *mut LDAPMessage) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_next_page_s(externalhandle: *mut ldap, searchhandle: *mut ldapsearch, timeout: *mut LDAP_TIMEVAL, pagesize: u32, totalcount: *mut u32, results: *mut *mut LDAPMessage) -> u32; + fn ldap_get_next_page_s(externalhandle: *mut LDAP, searchhandle: *mut LDAPSearch, timeout: *mut LDAP_TIMEVAL, pagesize: u32, totalcount: *mut u32, results: *mut *mut LDAPMessage) -> u32; } ldap_get_next_page_s(::core::mem::transmute(externalhandle), ::core::mem::transmute(searchhandle), ::core::mem::transmute(timeout), pagesize, ::core::mem::transmute(totalcount), ::core::mem::transmute(results)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_get_option(ld: &mut ldap, option: i32, outvalue: *mut ::core::ffi::c_void) -> u32 { +pub unsafe fn ldap_get_option(ld: &mut LDAP, option: i32, outvalue: *mut ::core::ffi::c_void) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_option(ld: *mut ldap, option: i32, outvalue: *mut ::core::ffi::c_void) -> u32; + fn ldap_get_option(ld: *mut LDAP, option: i32, outvalue: *mut ::core::ffi::c_void) -> u32; } ldap_get_option(::core::mem::transmute(ld), option, ::core::mem::transmute(outvalue)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_get_optionW(ld: &mut ldap, option: i32, outvalue: *mut ::core::ffi::c_void) -> u32 { +pub unsafe fn ldap_get_optionW(ld: &mut LDAP, option: i32, outvalue: *mut ::core::ffi::c_void) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_optionW(ld: *mut ldap, option: i32, outvalue: *mut ::core::ffi::c_void) -> u32; + fn ldap_get_optionW(ld: *mut LDAP, option: i32, outvalue: *mut ::core::ffi::c_void) -> u32; } ldap_get_optionW(::core::mem::transmute(ld), option, ::core::mem::transmute(outvalue)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_get_paged_count(externalhandle: &mut ldap, searchblock: &mut ldapsearch, totalcount: &mut u32, results: &mut LDAPMessage) -> u32 { +pub unsafe fn ldap_get_paged_count(externalhandle: &mut LDAP, searchblock: &mut LDAPSearch, totalcount: &mut u32, results: &mut LDAPMessage) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_paged_count(externalhandle: *mut ldap, searchblock: *mut ldapsearch, totalcount: *mut u32, results: *mut LDAPMessage) -> u32; + fn ldap_get_paged_count(externalhandle: *mut LDAP, searchblock: *mut LDAPSearch, totalcount: *mut u32, results: *mut LDAPMessage) -> u32; } ldap_get_paged_count(::core::mem::transmute(externalhandle), ::core::mem::transmute(searchblock), ::core::mem::transmute(totalcount), ::core::mem::transmute(results)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_get_values<'a, P0>(ld: &mut ldap, entry: &mut LDAPMessage, attr: P0) -> *mut ::windows::core::PSTR +pub unsafe fn ldap_get_values<'a, P0>(ld: &mut LDAP, entry: &mut LDAPMessage, attr: P0) -> *mut ::windows::core::PSTR where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_values(ld: *mut ldap, entry: *mut LDAPMessage, attr: ::windows::core::PCSTR) -> *mut ::windows::core::PSTR; + fn ldap_get_values(ld: *mut LDAP, entry: *mut LDAPMessage, attr: ::windows::core::PCSTR) -> *mut ::windows::core::PSTR; } ldap_get_values(::core::mem::transmute(ld), ::core::mem::transmute(entry), attr.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_get_valuesA<'a, P0>(ld: &mut ldap, entry: &mut LDAPMessage, attr: P0) -> *mut ::windows::core::PSTR +pub unsafe fn ldap_get_valuesA<'a, P0>(ld: &mut LDAP, entry: &mut LDAPMessage, attr: P0) -> *mut ::windows::core::PSTR where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_valuesA(ld: *mut ldap, entry: *mut LDAPMessage, attr: ::windows::core::PCSTR) -> *mut ::windows::core::PSTR; + fn ldap_get_valuesA(ld: *mut LDAP, entry: *mut LDAPMessage, attr: ::windows::core::PCSTR) -> *mut ::windows::core::PSTR; } ldap_get_valuesA(::core::mem::transmute(ld), ::core::mem::transmute(entry), attr.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_get_valuesW<'a, P0>(ld: &mut ldap, entry: &mut LDAPMessage, attr: P0) -> *mut ::windows::core::PWSTR +pub unsafe fn ldap_get_valuesW<'a, P0>(ld: &mut LDAP, entry: &mut LDAPMessage, attr: P0) -> *mut ::windows::core::PWSTR where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_valuesW(ld: *mut ldap, entry: *mut LDAPMessage, attr: ::windows::core::PCWSTR) -> *mut ::windows::core::PWSTR; + fn ldap_get_valuesW(ld: *mut LDAP, entry: *mut LDAPMessage, attr: ::windows::core::PCWSTR) -> *mut ::windows::core::PWSTR; } ldap_get_valuesW(::core::mem::transmute(ld), ::core::mem::transmute(entry), attr.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_get_values_len<'a, P0>(externalhandle: &mut ldap, message: &mut LDAPMessage, attr: P0) -> *mut *mut LDAP_BERVAL +pub unsafe fn ldap_get_values_len<'a, P0>(externalhandle: &mut LDAP, message: &mut LDAPMessage, attr: P0) -> *mut *mut LDAP_BERVAL where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_values_len(externalhandle: *mut ldap, message: *mut LDAPMessage, attr: ::windows::core::PCSTR) -> *mut *mut LDAP_BERVAL; + fn ldap_get_values_len(externalhandle: *mut LDAP, message: *mut LDAPMessage, attr: ::windows::core::PCSTR) -> *mut *mut LDAP_BERVAL; } ldap_get_values_len(::core::mem::transmute(externalhandle), ::core::mem::transmute(message), attr.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_get_values_lenA<'a, P0>(externalhandle: &mut ldap, message: &mut LDAPMessage, attr: P0) -> *mut *mut LDAP_BERVAL +pub unsafe fn ldap_get_values_lenA<'a, P0>(externalhandle: &mut LDAP, message: &mut LDAPMessage, attr: P0) -> *mut *mut LDAP_BERVAL where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_values_lenA(externalhandle: *mut ldap, message: *mut LDAPMessage, attr: ::windows::core::PCSTR) -> *mut *mut LDAP_BERVAL; + fn ldap_get_values_lenA(externalhandle: *mut LDAP, message: *mut LDAPMessage, attr: ::windows::core::PCSTR) -> *mut *mut LDAP_BERVAL; } ldap_get_values_lenA(::core::mem::transmute(externalhandle), ::core::mem::transmute(message), attr.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_get_values_lenW<'a, P0>(externalhandle: &mut ldap, message: &mut LDAPMessage, attr: P0) -> *mut *mut LDAP_BERVAL +pub unsafe fn ldap_get_values_lenW<'a, P0>(externalhandle: &mut LDAP, message: &mut LDAPMessage, attr: P0) -> *mut *mut LDAP_BERVAL where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_get_values_lenW(externalhandle: *mut ldap, message: *mut LDAPMessage, attr: ::windows::core::PCWSTR) -> *mut *mut LDAP_BERVAL; + fn ldap_get_values_lenW(externalhandle: *mut LDAP, message: *mut LDAPMessage, attr: ::windows::core::PCWSTR) -> *mut *mut LDAP_BERVAL; } ldap_get_values_lenW(::core::mem::transmute(externalhandle), ::core::mem::transmute(message), attr.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_init<'a, P0>(hostname: P0, portnumber: u32) -> *mut ldap +pub unsafe fn ldap_init<'a, P0>(hostname: P0, portnumber: u32) -> *mut LDAP where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_init(hostname: ::windows::core::PCSTR, portnumber: u32) -> *mut ldap; + fn ldap_init(hostname: ::windows::core::PCSTR, portnumber: u32) -> *mut LDAP; } ldap_init(hostname.into(), portnumber) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_initA<'a, P0>(hostname: P0, portnumber: u32) -> *mut ldap +pub unsafe fn ldap_initA<'a, P0>(hostname: P0, portnumber: u32) -> *mut LDAP where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_initA(hostname: ::windows::core::PCSTR, portnumber: u32) -> *mut ldap; + fn ldap_initA(hostname: ::windows::core::PCSTR, portnumber: u32) -> *mut LDAP; } ldap_initA(hostname.into(), portnumber) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_initW<'a, P0>(hostname: P0, portnumber: u32) -> *mut ldap +pub unsafe fn ldap_initW<'a, P0>(hostname: P0, portnumber: u32) -> *mut LDAP where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_initW(hostname: ::windows::core::PCWSTR, portnumber: u32) -> *mut ldap; + fn ldap_initW(hostname: ::windows::core::PCWSTR, portnumber: u32) -> *mut LDAP; } ldap_initW(hostname.into(), portnumber) } @@ -1545,307 +1545,307 @@ where } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modify<'a, P0>(ld: &mut ldap, dn: P0, mods: &mut *mut ldapmodA) -> u32 +pub unsafe fn ldap_modify<'a, P0>(ld: &mut LDAP, dn: P0, mods: &mut *mut LDAPModA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modify(ld: *mut ldap, dn: ::windows::core::PCSTR, mods: *mut *mut ldapmodA) -> u32; + fn ldap_modify(ld: *mut LDAP, dn: ::windows::core::PCSTR, mods: *mut *mut LDAPModA) -> u32; } ldap_modify(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(mods)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modifyA<'a, P0>(ld: &mut ldap, dn: P0, mods: &mut *mut ldapmodA) -> u32 +pub unsafe fn ldap_modifyA<'a, P0>(ld: &mut LDAP, dn: P0, mods: &mut *mut LDAPModA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modifyA(ld: *mut ldap, dn: ::windows::core::PCSTR, mods: *mut *mut ldapmodA) -> u32; + fn ldap_modifyA(ld: *mut LDAP, dn: ::windows::core::PCSTR, mods: *mut *mut LDAPModA) -> u32; } ldap_modifyA(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(mods)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modifyW<'a, P0>(ld: &mut ldap, dn: P0, mods: &mut *mut ldapmodW) -> u32 +pub unsafe fn ldap_modifyW<'a, P0>(ld: &mut LDAP, dn: P0, mods: &mut *mut LDAPModW) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modifyW(ld: *mut ldap, dn: ::windows::core::PCWSTR, mods: *mut *mut ldapmodW) -> u32; + fn ldap_modifyW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, mods: *mut *mut LDAPModW) -> u32; } ldap_modifyW(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(mods)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_modify_ext<'a, P0>(ld: &mut ldap, dn: P0, mods: &mut *mut ldapmodA, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_modify_ext<'a, P0>(ld: &mut LDAP, dn: P0, mods: &mut *mut LDAPModA, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modify_ext(ld: *mut ldap, dn: ::windows::core::PCSTR, mods: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + fn ldap_modify_ext(ld: *mut LDAP, dn: ::windows::core::PCSTR, mods: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; } ldap_modify_ext(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(mods), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_modify_extA<'a, P0>(ld: &mut ldap, dn: P0, mods: &mut *mut ldapmodA, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_modify_extA<'a, P0>(ld: &mut LDAP, dn: P0, mods: &mut *mut LDAPModA, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modify_extA(ld: *mut ldap, dn: ::windows::core::PCSTR, mods: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + fn ldap_modify_extA(ld: *mut LDAP, dn: ::windows::core::PCSTR, mods: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; } ldap_modify_extA(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(mods), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_modify_extW<'a, P0>(ld: &mut ldap, dn: P0, mods: &mut *mut ldapmodW, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_modify_extW<'a, P0>(ld: &mut LDAP, dn: P0, mods: &mut *mut LDAPModW, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modify_extW(ld: *mut ldap, dn: ::windows::core::PCWSTR, mods: *mut *mut ldapmodW, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, messagenumber: *mut u32) -> u32; + fn ldap_modify_extW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, mods: *mut *mut LDAPModW, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32; } ldap_modify_extW(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(mods), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_modify_ext_s<'a, P0>(ld: &mut ldap, dn: P0, mods: &mut *mut ldapmodA, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA) -> u32 +pub unsafe fn ldap_modify_ext_s<'a, P0>(ld: &mut LDAP, dn: P0, mods: &mut *mut LDAPModA, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modify_ext_s(ld: *mut ldap, dn: ::windows::core::PCSTR, mods: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + fn ldap_modify_ext_s(ld: *mut LDAP, dn: ::windows::core::PCSTR, mods: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; } ldap_modify_ext_s(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(mods), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_modify_ext_sA<'a, P0>(ld: &mut ldap, dn: P0, mods: &mut *mut ldapmodA, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA) -> u32 +pub unsafe fn ldap_modify_ext_sA<'a, P0>(ld: &mut LDAP, dn: P0, mods: &mut *mut LDAPModA, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modify_ext_sA(ld: *mut ldap, dn: ::windows::core::PCSTR, mods: *mut *mut ldapmodA, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + fn ldap_modify_ext_sA(ld: *mut LDAP, dn: ::windows::core::PCSTR, mods: *mut *mut LDAPModA, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; } ldap_modify_ext_sA(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(mods), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_modify_ext_sW<'a, P0>(ld: &mut ldap, dn: P0, mods: &mut *mut ldapmodW, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW) -> u32 +pub unsafe fn ldap_modify_ext_sW<'a, P0>(ld: &mut LDAP, dn: P0, mods: &mut *mut LDAPModW, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modify_ext_sW(ld: *mut ldap, dn: ::windows::core::PCWSTR, mods: *mut *mut ldapmodW, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW) -> u32; + fn ldap_modify_ext_sW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, mods: *mut *mut LDAPModW, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32; } ldap_modify_ext_sW(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(mods), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modify_s<'a, P0>(ld: &mut ldap, dn: P0, mods: &mut *mut ldapmodA) -> u32 +pub unsafe fn ldap_modify_s<'a, P0>(ld: &mut LDAP, dn: P0, mods: &mut *mut LDAPModA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modify_s(ld: *mut ldap, dn: ::windows::core::PCSTR, mods: *mut *mut ldapmodA) -> u32; + fn ldap_modify_s(ld: *mut LDAP, dn: ::windows::core::PCSTR, mods: *mut *mut LDAPModA) -> u32; } ldap_modify_s(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(mods)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modify_sA<'a, P0>(ld: &mut ldap, dn: P0, mods: &mut *mut ldapmodA) -> u32 +pub unsafe fn ldap_modify_sA<'a, P0>(ld: &mut LDAP, dn: P0, mods: &mut *mut LDAPModA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modify_sA(ld: *mut ldap, dn: ::windows::core::PCSTR, mods: *mut *mut ldapmodA) -> u32; + fn ldap_modify_sA(ld: *mut LDAP, dn: ::windows::core::PCSTR, mods: *mut *mut LDAPModA) -> u32; } ldap_modify_sA(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(mods)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modify_sW<'a, P0>(ld: &mut ldap, dn: P0, mods: &mut *mut ldapmodW) -> u32 +pub unsafe fn ldap_modify_sW<'a, P0>(ld: &mut LDAP, dn: P0, mods: &mut *mut LDAPModW) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modify_sW(ld: *mut ldap, dn: ::windows::core::PCWSTR, mods: *mut *mut ldapmodW) -> u32; + fn ldap_modify_sW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, mods: *mut *mut LDAPModW) -> u32; } ldap_modify_sW(::core::mem::transmute(ld), dn.into(), ::core::mem::transmute(mods)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modrdn<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, newdistinguishedname: P1) -> u32 +pub unsafe fn ldap_modrdn<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, newdistinguishedname: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modrdn(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR) -> u32; + fn ldap_modrdn(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR) -> u32; } ldap_modrdn(::core::mem::transmute(externalhandle), distinguishedname.into(), newdistinguishedname.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modrdn2<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 +pub unsafe fn ldap_modrdn2<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modrdn2(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR, deleteoldrdn: i32) -> u32; + fn ldap_modrdn2(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR, deleteoldrdn: i32) -> u32; } ldap_modrdn2(::core::mem::transmute(externalhandle), distinguishedname.into(), newdistinguishedname.into(), deleteoldrdn) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modrdn2A<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 +pub unsafe fn ldap_modrdn2A<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modrdn2A(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR, deleteoldrdn: i32) -> u32; + fn ldap_modrdn2A(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR, deleteoldrdn: i32) -> u32; } ldap_modrdn2A(::core::mem::transmute(externalhandle), distinguishedname.into(), newdistinguishedname.into(), deleteoldrdn) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modrdn2W<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 +pub unsafe fn ldap_modrdn2W<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modrdn2W(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCWSTR, newdistinguishedname: ::windows::core::PCWSTR, deleteoldrdn: i32) -> u32; + fn ldap_modrdn2W(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCWSTR, newdistinguishedname: ::windows::core::PCWSTR, deleteoldrdn: i32) -> u32; } ldap_modrdn2W(::core::mem::transmute(externalhandle), distinguishedname.into(), newdistinguishedname.into(), deleteoldrdn) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modrdn2_s<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 +pub unsafe fn ldap_modrdn2_s<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modrdn2_s(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR, deleteoldrdn: i32) -> u32; + fn ldap_modrdn2_s(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR, deleteoldrdn: i32) -> u32; } ldap_modrdn2_s(::core::mem::transmute(externalhandle), distinguishedname.into(), newdistinguishedname.into(), deleteoldrdn) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modrdn2_sA<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 +pub unsafe fn ldap_modrdn2_sA<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modrdn2_sA(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR, deleteoldrdn: i32) -> u32; + fn ldap_modrdn2_sA(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR, deleteoldrdn: i32) -> u32; } ldap_modrdn2_sA(::core::mem::transmute(externalhandle), distinguishedname.into(), newdistinguishedname.into(), deleteoldrdn) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modrdn2_sW<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 +pub unsafe fn ldap_modrdn2_sW<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, newdistinguishedname: P1, deleteoldrdn: i32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modrdn2_sW(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCWSTR, newdistinguishedname: ::windows::core::PCWSTR, deleteoldrdn: i32) -> u32; + fn ldap_modrdn2_sW(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCWSTR, newdistinguishedname: ::windows::core::PCWSTR, deleteoldrdn: i32) -> u32; } ldap_modrdn2_sW(::core::mem::transmute(externalhandle), distinguishedname.into(), newdistinguishedname.into(), deleteoldrdn) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modrdnA<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, newdistinguishedname: P1) -> u32 +pub unsafe fn ldap_modrdnA<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, newdistinguishedname: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modrdnA(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR) -> u32; + fn ldap_modrdnA(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR) -> u32; } ldap_modrdnA(::core::mem::transmute(externalhandle), distinguishedname.into(), newdistinguishedname.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modrdnW<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, newdistinguishedname: P1) -> u32 +pub unsafe fn ldap_modrdnW<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, newdistinguishedname: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modrdnW(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCWSTR, newdistinguishedname: ::windows::core::PCWSTR) -> u32; + fn ldap_modrdnW(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCWSTR, newdistinguishedname: ::windows::core::PCWSTR) -> u32; } ldap_modrdnW(::core::mem::transmute(externalhandle), distinguishedname.into(), newdistinguishedname.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modrdn_s<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, newdistinguishedname: P1) -> u32 +pub unsafe fn ldap_modrdn_s<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, newdistinguishedname: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modrdn_s(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR) -> u32; + fn ldap_modrdn_s(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR) -> u32; } ldap_modrdn_s(::core::mem::transmute(externalhandle), distinguishedname.into(), newdistinguishedname.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modrdn_sA<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, newdistinguishedname: P1) -> u32 +pub unsafe fn ldap_modrdn_sA<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, newdistinguishedname: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modrdn_sA(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR) -> u32; + fn ldap_modrdn_sA(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCSTR, newdistinguishedname: ::windows::core::PCSTR) -> u32; } ldap_modrdn_sA(::core::mem::transmute(externalhandle), distinguishedname.into(), newdistinguishedname.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_modrdn_sW<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, newdistinguishedname: P1) -> u32 +pub unsafe fn ldap_modrdn_sW<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, newdistinguishedname: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_modrdn_sW(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCWSTR, newdistinguishedname: ::windows::core::PCWSTR) -> u32; + fn ldap_modrdn_sW(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCWSTR, newdistinguishedname: ::windows::core::PCWSTR) -> u32; } ldap_modrdn_sW(::core::mem::transmute(externalhandle), distinguishedname.into(), newdistinguishedname.into()) } @@ -1862,280 +1862,280 @@ pub unsafe fn ldap_msgfree(res: &mut LDAPMessage) -> u32 { #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_next_attribute(ld: &mut ldap, entry: &mut LDAPMessage, ptr: &mut berelement) -> ::windows::core::PSTR { +pub unsafe fn ldap_next_attribute(ld: &mut LDAP, entry: &mut LDAPMessage, ptr: &mut BerElement) -> ::windows::core::PSTR { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_next_attribute(ld: *mut ldap, entry: *mut LDAPMessage, ptr: *mut berelement) -> ::windows::core::PSTR; + fn ldap_next_attribute(ld: *mut LDAP, entry: *mut LDAPMessage, ptr: *mut BerElement) -> ::windows::core::PSTR; } ldap_next_attribute(::core::mem::transmute(ld), ::core::mem::transmute(entry), ::core::mem::transmute(ptr)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_next_attributeA(ld: &mut ldap, entry: &mut LDAPMessage, ptr: &mut berelement) -> ::windows::core::PSTR { +pub unsafe fn ldap_next_attributeA(ld: &mut LDAP, entry: &mut LDAPMessage, ptr: &mut BerElement) -> ::windows::core::PSTR { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_next_attributeA(ld: *mut ldap, entry: *mut LDAPMessage, ptr: *mut berelement) -> ::windows::core::PSTR; + fn ldap_next_attributeA(ld: *mut LDAP, entry: *mut LDAPMessage, ptr: *mut BerElement) -> ::windows::core::PSTR; } ldap_next_attributeA(::core::mem::transmute(ld), ::core::mem::transmute(entry), ::core::mem::transmute(ptr)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_next_attributeW(ld: &mut ldap, entry: &mut LDAPMessage, ptr: &mut berelement) -> ::windows::core::PWSTR { +pub unsafe fn ldap_next_attributeW(ld: &mut LDAP, entry: &mut LDAPMessage, ptr: &mut BerElement) -> ::windows::core::PWSTR { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_next_attributeW(ld: *mut ldap, entry: *mut LDAPMessage, ptr: *mut berelement) -> ::windows::core::PWSTR; + fn ldap_next_attributeW(ld: *mut LDAP, entry: *mut LDAPMessage, ptr: *mut BerElement) -> ::windows::core::PWSTR; } ldap_next_attributeW(::core::mem::transmute(ld), ::core::mem::transmute(entry), ::core::mem::transmute(ptr)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_next_entry(ld: &mut ldap, entry: &mut LDAPMessage) -> *mut LDAPMessage { +pub unsafe fn ldap_next_entry(ld: &mut LDAP, entry: &mut LDAPMessage) -> *mut LDAPMessage { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_next_entry(ld: *mut ldap, entry: *mut LDAPMessage) -> *mut LDAPMessage; + fn ldap_next_entry(ld: *mut LDAP, entry: *mut LDAPMessage) -> *mut LDAPMessage; } ldap_next_entry(::core::mem::transmute(ld), ::core::mem::transmute(entry)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_next_reference(ld: &mut ldap, entry: &mut LDAPMessage) -> *mut LDAPMessage { +pub unsafe fn ldap_next_reference(ld: &mut LDAP, entry: &mut LDAPMessage) -> *mut LDAPMessage { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_next_reference(ld: *mut ldap, entry: *mut LDAPMessage) -> *mut LDAPMessage; + fn ldap_next_reference(ld: *mut LDAP, entry: *mut LDAPMessage) -> *mut LDAPMessage; } ldap_next_reference(::core::mem::transmute(ld), ::core::mem::transmute(entry)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_open<'a, P0>(hostname: P0, portnumber: u32) -> *mut ldap +pub unsafe fn ldap_open<'a, P0>(hostname: P0, portnumber: u32) -> *mut LDAP where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_open(hostname: ::windows::core::PCSTR, portnumber: u32) -> *mut ldap; + fn ldap_open(hostname: ::windows::core::PCSTR, portnumber: u32) -> *mut LDAP; } ldap_open(hostname.into(), portnumber) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_openA<'a, P0>(hostname: P0, portnumber: u32) -> *mut ldap +pub unsafe fn ldap_openA<'a, P0>(hostname: P0, portnumber: u32) -> *mut LDAP where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_openA(hostname: ::windows::core::PCSTR, portnumber: u32) -> *mut ldap; + fn ldap_openA(hostname: ::windows::core::PCSTR, portnumber: u32) -> *mut LDAP; } ldap_openA(hostname.into(), portnumber) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_openW<'a, P0>(hostname: P0, portnumber: u32) -> *mut ldap +pub unsafe fn ldap_openW<'a, P0>(hostname: P0, portnumber: u32) -> *mut LDAP where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_openW(hostname: ::windows::core::PCWSTR, portnumber: u32) -> *mut ldap; + fn ldap_openW(hostname: ::windows::core::PCWSTR, portnumber: u32) -> *mut LDAP; } ldap_openW(hostname.into(), portnumber) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_extended_resultA<'a, P0>(connection: &mut ldap, resultmessage: &mut LDAPMessage, resultoid: ::core::option::Option<&mut ::windows::core::PSTR>, resultdata: &mut *mut LDAP_BERVAL, freeit: P0) -> u32 +pub unsafe fn ldap_parse_extended_resultA<'a, P0>(connection: &mut LDAP, resultmessage: &mut LDAPMessage, resultoid: ::core::option::Option<&mut ::windows::core::PSTR>, resultdata: &mut *mut LDAP_BERVAL, freeit: P0) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "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; + 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), ::core::mem::transmute(resultdata), freeit.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_extended_resultW<'a, P0>(connection: &mut ldap, resultmessage: &mut LDAPMessage, resultoid: ::core::option::Option<&mut ::windows::core::PWSTR>, resultdata: &mut *mut LDAP_BERVAL, freeit: P0) -> u32 +pub unsafe fn ldap_parse_extended_resultW<'a, P0>(connection: &mut LDAP, resultmessage: &mut LDAPMessage, resultoid: ::core::option::Option<&mut ::windows::core::PWSTR>, resultdata: &mut *mut LDAP_BERVAL, freeit: P0) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "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; + 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), ::core::mem::transmute(resultdata), freeit.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_page_control(externalhandle: &mut ldap, servercontrols: &mut *mut ldapcontrolA, totalcount: &mut u32, cookie: &mut *mut LDAP_BERVAL) -> u32 { +pub unsafe fn ldap_parse_page_control(externalhandle: &mut LDAP, servercontrols: &mut *mut LDAPControlA, totalcount: &mut u32, cookie: &mut *mut LDAP_BERVAL) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_parse_page_control(externalhandle: *mut ldap, servercontrols: *mut *mut ldapcontrolA, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32; + fn ldap_parse_page_control(externalhandle: *mut LDAP, servercontrols: *mut *mut LDAPControlA, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32; } ldap_parse_page_control(::core::mem::transmute(externalhandle), ::core::mem::transmute(servercontrols), ::core::mem::transmute(totalcount), ::core::mem::transmute(cookie)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_page_controlA(externalhandle: &mut ldap, servercontrols: &mut *mut ldapcontrolA, totalcount: &mut u32, cookie: &mut *mut LDAP_BERVAL) -> u32 { +pub unsafe fn ldap_parse_page_controlA(externalhandle: &mut LDAP, servercontrols: &mut *mut LDAPControlA, totalcount: &mut u32, cookie: &mut *mut LDAP_BERVAL) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_parse_page_controlA(externalhandle: *mut ldap, servercontrols: *mut *mut ldapcontrolA, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32; + fn ldap_parse_page_controlA(externalhandle: *mut LDAP, servercontrols: *mut *mut LDAPControlA, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32; } ldap_parse_page_controlA(::core::mem::transmute(externalhandle), ::core::mem::transmute(servercontrols), ::core::mem::transmute(totalcount), ::core::mem::transmute(cookie)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_page_controlW(externalhandle: &mut ldap, servercontrols: &mut *mut ldapcontrolW, totalcount: &mut u32, cookie: &mut *mut LDAP_BERVAL) -> u32 { +pub unsafe fn ldap_parse_page_controlW(externalhandle: &mut LDAP, servercontrols: &mut *mut LDAPControlW, totalcount: &mut u32, cookie: &mut *mut LDAP_BERVAL) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_parse_page_controlW(externalhandle: *mut ldap, servercontrols: *mut *mut ldapcontrolW, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32; + fn ldap_parse_page_controlW(externalhandle: *mut LDAP, servercontrols: *mut *mut LDAPControlW, totalcount: *mut u32, cookie: *mut *mut LDAP_BERVAL) -> u32; } ldap_parse_page_controlW(::core::mem::transmute(externalhandle), ::core::mem::transmute(servercontrols), ::core::mem::transmute(totalcount), ::core::mem::transmute(cookie)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_reference(connection: &mut ldap, resultmessage: &mut LDAPMessage, referrals: &mut *mut ::windows::core::PSTR) -> u32 { +pub unsafe fn ldap_parse_reference(connection: &mut LDAP, resultmessage: &mut LDAPMessage, referrals: &mut *mut ::windows::core::PSTR) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_parse_reference(connection: *mut ldap, resultmessage: *mut LDAPMessage, referrals: *mut *mut ::windows::core::PSTR) -> u32; + fn ldap_parse_reference(connection: *mut LDAP, resultmessage: *mut LDAPMessage, referrals: *mut *mut ::windows::core::PSTR) -> u32; } ldap_parse_reference(::core::mem::transmute(connection), ::core::mem::transmute(resultmessage), ::core::mem::transmute(referrals)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_referenceA(connection: &mut ldap, resultmessage: &mut LDAPMessage, referrals: &mut *mut ::windows::core::PSTR) -> u32 { +pub unsafe fn ldap_parse_referenceA(connection: &mut LDAP, resultmessage: &mut LDAPMessage, referrals: &mut *mut ::windows::core::PSTR) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_parse_referenceA(connection: *mut ldap, resultmessage: *mut LDAPMessage, referrals: *mut *mut ::windows::core::PSTR) -> u32; + fn ldap_parse_referenceA(connection: *mut LDAP, resultmessage: *mut LDAPMessage, referrals: *mut *mut ::windows::core::PSTR) -> u32; } ldap_parse_referenceA(::core::mem::transmute(connection), ::core::mem::transmute(resultmessage), ::core::mem::transmute(referrals)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_referenceW(connection: &mut ldap, resultmessage: &mut LDAPMessage, referrals: &mut *mut ::windows::core::PWSTR) -> u32 { +pub unsafe fn ldap_parse_referenceW(connection: &mut LDAP, resultmessage: &mut LDAPMessage, referrals: &mut *mut ::windows::core::PWSTR) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_parse_referenceW(connection: *mut ldap, resultmessage: *mut LDAPMessage, referrals: *mut *mut ::windows::core::PWSTR) -> u32; + fn ldap_parse_referenceW(connection: *mut LDAP, resultmessage: *mut LDAPMessage, referrals: *mut *mut ::windows::core::PWSTR) -> u32; } ldap_parse_referenceW(::core::mem::transmute(connection), ::core::mem::transmute(resultmessage), ::core::mem::transmute(referrals)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_result<'a, P0>(connection: &mut ldap, resultmessage: &mut LDAPMessage, returncode: &mut u32, matcheddns: ::core::option::Option<&mut ::windows::core::PSTR>, errormessage: ::core::option::Option<&mut ::windows::core::PSTR>, referrals: ::core::option::Option<&mut *mut ::windows::core::PSTR>, servercontrols: &mut *mut *mut ldapcontrolA, freeit: P0) -> u32 +pub unsafe fn ldap_parse_result<'a, P0>(connection: &mut LDAP, resultmessage: &mut LDAPMessage, returncode: &mut u32, matcheddns: ::core::option::Option<&mut ::windows::core::PSTR>, errormessage: ::core::option::Option<&mut ::windows::core::PSTR>, referrals: ::core::option::Option<&mut *mut ::windows::core::PSTR>, servercontrols: &mut *mut *mut LDAPControlA, freeit: P0) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "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; + 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), ::core::mem::transmute(errormessage), ::core::mem::transmute(referrals), ::core::mem::transmute(servercontrols), freeit.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_resultA<'a, P0>(connection: &mut ldap, resultmessage: &mut LDAPMessage, returncode: &mut u32, matcheddns: ::core::option::Option<&mut ::windows::core::PSTR>, errormessage: ::core::option::Option<&mut ::windows::core::PSTR>, referrals: ::core::option::Option<&mut *mut *mut i8>, servercontrols: &mut *mut *mut ldapcontrolA, freeit: P0) -> u32 +pub unsafe fn ldap_parse_resultA<'a, P0>(connection: &mut LDAP, resultmessage: &mut LDAPMessage, returncode: &mut u32, matcheddns: ::core::option::Option<&mut ::windows::core::PSTR>, errormessage: ::core::option::Option<&mut ::windows::core::PSTR>, referrals: ::core::option::Option<&mut *mut *mut i8>, servercontrols: &mut *mut *mut LDAPControlA, freeit: P0) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "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; + 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), ::core::mem::transmute(errormessage), ::core::mem::transmute(referrals), ::core::mem::transmute(servercontrols), freeit.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_resultW<'a, P0>(connection: &mut ldap, resultmessage: &mut LDAPMessage, returncode: &mut u32, matcheddns: ::core::option::Option<&mut ::windows::core::PWSTR>, errormessage: ::core::option::Option<&mut ::windows::core::PWSTR>, referrals: ::core::option::Option<&mut *mut *mut u16>, servercontrols: &mut *mut *mut ldapcontrolW, freeit: P0) -> u32 +pub unsafe fn ldap_parse_resultW<'a, P0>(connection: &mut LDAP, resultmessage: &mut LDAPMessage, returncode: &mut u32, matcheddns: ::core::option::Option<&mut ::windows::core::PWSTR>, errormessage: ::core::option::Option<&mut ::windows::core::PWSTR>, referrals: ::core::option::Option<&mut *mut *mut u16>, servercontrols: &mut *mut *mut LDAPControlW, freeit: P0) -> u32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "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; + 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), ::core::mem::transmute(errormessage), ::core::mem::transmute(referrals), ::core::mem::transmute(servercontrols), freeit.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_sort_control(externalhandle: &mut ldap, control: &mut *mut ldapcontrolA, result: &mut u32, attribute: &mut ::windows::core::PSTR) -> u32 { +pub unsafe fn ldap_parse_sort_control(externalhandle: &mut LDAP, control: &mut *mut LDAPControlA, result: &mut u32, attribute: &mut ::windows::core::PSTR) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_parse_sort_control(externalhandle: *mut ldap, control: *mut *mut ldapcontrolA, result: *mut u32, attribute: *mut ::windows::core::PSTR) -> u32; + fn ldap_parse_sort_control(externalhandle: *mut LDAP, control: *mut *mut LDAPControlA, result: *mut u32, attribute: *mut ::windows::core::PSTR) -> u32; } ldap_parse_sort_control(::core::mem::transmute(externalhandle), ::core::mem::transmute(control), ::core::mem::transmute(result), ::core::mem::transmute(attribute)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_sort_controlA(externalhandle: &mut ldap, control: &mut *mut ldapcontrolA, result: &mut u32, attribute: ::core::option::Option<&mut ::windows::core::PSTR>) -> u32 { +pub unsafe fn ldap_parse_sort_controlA(externalhandle: &mut LDAP, control: &mut *mut LDAPControlA, result: &mut u32, attribute: ::core::option::Option<&mut ::windows::core::PSTR>) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_parse_sort_controlA(externalhandle: *mut ldap, control: *mut *mut ldapcontrolA, result: *mut u32, attribute: *mut ::windows::core::PSTR) -> u32; + fn ldap_parse_sort_controlA(externalhandle: *mut LDAP, control: *mut *mut LDAPControlA, result: *mut u32, attribute: *mut ::windows::core::PSTR) -> u32; } ldap_parse_sort_controlA(::core::mem::transmute(externalhandle), ::core::mem::transmute(control), ::core::mem::transmute(result), ::core::mem::transmute(attribute)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_sort_controlW(externalhandle: &mut ldap, control: &mut *mut ldapcontrolW, result: &mut u32, attribute: ::core::option::Option<&mut ::windows::core::PWSTR>) -> u32 { +pub unsafe fn ldap_parse_sort_controlW(externalhandle: &mut LDAP, control: &mut *mut LDAPControlW, result: &mut u32, attribute: ::core::option::Option<&mut ::windows::core::PWSTR>) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_parse_sort_controlW(externalhandle: *mut ldap, control: *mut *mut ldapcontrolW, result: *mut u32, attribute: *mut ::windows::core::PWSTR) -> u32; + fn ldap_parse_sort_controlW(externalhandle: *mut LDAP, control: *mut *mut LDAPControlW, result: *mut u32, attribute: *mut ::windows::core::PWSTR) -> u32; } ldap_parse_sort_controlW(::core::mem::transmute(externalhandle), ::core::mem::transmute(control), ::core::mem::transmute(result), ::core::mem::transmute(attribute)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_vlv_controlA(externalhandle: &mut ldap, control: &mut *mut ldapcontrolA, targetpos: &mut u32, listcount: &mut u32, context: &mut *mut LDAP_BERVAL, errcode: &mut i32) -> i32 { +pub unsafe fn ldap_parse_vlv_controlA(externalhandle: &mut LDAP, control: &mut *mut LDAPControlA, targetpos: &mut u32, listcount: &mut u32, context: &mut *mut LDAP_BERVAL, errcode: &mut i32) -> i32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_parse_vlv_controlA(externalhandle: *mut ldap, control: *mut *mut ldapcontrolA, targetpos: *mut u32, listcount: *mut u32, context: *mut *mut LDAP_BERVAL, errcode: *mut i32) -> i32; + fn ldap_parse_vlv_controlA(externalhandle: *mut LDAP, control: *mut *mut LDAPControlA, targetpos: *mut u32, listcount: *mut u32, context: *mut *mut LDAP_BERVAL, errcode: *mut i32) -> i32; } ldap_parse_vlv_controlA(::core::mem::transmute(externalhandle), ::core::mem::transmute(control), ::core::mem::transmute(targetpos), ::core::mem::transmute(listcount), ::core::mem::transmute(context), ::core::mem::transmute(errcode)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_parse_vlv_controlW(externalhandle: &mut ldap, control: &mut *mut ldapcontrolW, targetpos: &mut u32, listcount: &mut u32, context: &mut *mut LDAP_BERVAL, errcode: &mut i32) -> i32 { +pub unsafe fn ldap_parse_vlv_controlW(externalhandle: &mut LDAP, control: &mut *mut LDAPControlW, targetpos: &mut u32, listcount: &mut u32, context: &mut *mut LDAP_BERVAL, errcode: &mut i32) -> i32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_parse_vlv_controlW(externalhandle: *mut ldap, control: *mut *mut ldapcontrolW, targetpos: *mut u32, listcount: *mut u32, context: *mut *mut LDAP_BERVAL, errcode: *mut i32) -> i32; + fn ldap_parse_vlv_controlW(externalhandle: *mut LDAP, control: *mut *mut LDAPControlW, targetpos: *mut u32, listcount: *mut u32, context: *mut *mut LDAP_BERVAL, errcode: *mut i32) -> i32; } ldap_parse_vlv_controlW(::core::mem::transmute(externalhandle), ::core::mem::transmute(control), ::core::mem::transmute(targetpos), ::core::mem::transmute(listcount), ::core::mem::transmute(context), ::core::mem::transmute(errcode)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_perror<'a, P0>(ld: &mut ldap, msg: P0) +pub unsafe fn ldap_perror<'a, P0>(ld: &mut LDAP, msg: P0) where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_perror(ld: *mut ldap, msg: ::windows::core::PCSTR); + fn ldap_perror(ld: *mut LDAP, msg: ::windows::core::PCSTR); } ldap_perror(::core::mem::transmute(ld), msg.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_rename_ext<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_rename_ext<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, @@ -2143,14 +2143,14 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_rename_ext(ld: *mut ldap, dn: ::windows::core::PCSTR, newrdn: ::windows::core::PCSTR, newparent: ::windows::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + fn ldap_rename_ext(ld: *mut LDAP, dn: ::windows::core::PCSTR, newrdn: ::windows::core::PCSTR, newparent: ::windows::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; } ldap_rename_ext(::core::mem::transmute(ld), dn.into(), newrdn.into(), newparent.into(), deleteoldrdn, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_rename_extA<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_rename_extA<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, @@ -2158,14 +2158,14 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_rename_extA(ld: *mut ldap, dn: ::windows::core::PCSTR, newrdn: ::windows::core::PCSTR, newparent: ::windows::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, messagenumber: *mut u32) -> u32; + fn ldap_rename_extA(ld: *mut LDAP, dn: ::windows::core::PCSTR, newrdn: ::windows::core::PCSTR, newparent: ::windows::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, messagenumber: *mut u32) -> u32; } ldap_rename_extA(::core::mem::transmute(ld), dn.into(), newrdn.into(), newparent.into(), deleteoldrdn, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_rename_extW<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_rename_extW<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, @@ -2173,14 +2173,14 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_rename_extW(ld: *mut ldap, dn: ::windows::core::PCWSTR, newrdn: ::windows::core::PCWSTR, newparent: ::windows::core::PCWSTR, deleteoldrdn: i32, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, messagenumber: *mut u32) -> u32; + fn ldap_rename_extW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, newrdn: ::windows::core::PCWSTR, newparent: ::windows::core::PCWSTR, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, messagenumber: *mut u32) -> u32; } ldap_rename_extW(::core::mem::transmute(ld), dn.into(), newrdn.into(), newparent.into(), deleteoldrdn, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_rename_ext_s<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA) -> u32 +pub unsafe fn ldap_rename_ext_s<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, @@ -2188,14 +2188,14 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_rename_ext_s(ld: *mut ldap, dn: ::windows::core::PCSTR, newrdn: ::windows::core::PCSTR, newparent: ::windows::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + fn ldap_rename_ext_s(ld: *mut LDAP, dn: ::windows::core::PCSTR, newrdn: ::windows::core::PCSTR, newparent: ::windows::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; } ldap_rename_ext_s(::core::mem::transmute(ld), dn.into(), newrdn.into(), newparent.into(), deleteoldrdn, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_rename_ext_sA<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA) -> u32 +pub unsafe fn ldap_rename_ext_sA<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, @@ -2203,14 +2203,14 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_rename_ext_sA(ld: *mut ldap, dn: ::windows::core::PCSTR, newrdn: ::windows::core::PCSTR, newparent: ::windows::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA) -> u32; + fn ldap_rename_ext_sA(ld: *mut LDAP, dn: ::windows::core::PCSTR, newrdn: ::windows::core::PCSTR, newparent: ::windows::core::PCSTR, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; } ldap_rename_ext_sA(::core::mem::transmute(ld), dn.into(), newrdn.into(), newparent.into(), deleteoldrdn, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_rename_ext_sW<'a, P0, P1, P2>(ld: &mut ldap, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW) -> u32 +pub unsafe fn ldap_rename_ext_sW<'a, P0, P1, P2>(ld: &mut LDAP, dn: P0, newrdn: P1, newparent: P2, deleteoldrdn: i32, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, @@ -2218,341 +2218,341 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_rename_ext_sW(ld: *mut ldap, dn: ::windows::core::PCWSTR, newrdn: ::windows::core::PCWSTR, newparent: ::windows::core::PCWSTR, deleteoldrdn: i32, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW) -> u32; + fn ldap_rename_ext_sW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, newrdn: ::windows::core::PCWSTR, newparent: ::windows::core::PCWSTR, deleteoldrdn: i32, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32; } ldap_rename_ext_sW(::core::mem::transmute(ld), dn.into(), newrdn.into(), newparent.into(), deleteoldrdn, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_result(ld: &mut ldap, msgid: u32, all: u32, timeout: ::core::option::Option<&LDAP_TIMEVAL>, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 { +pub unsafe fn ldap_result(ld: &mut LDAP, msgid: u32, all: u32, timeout: ::core::option::Option<&LDAP_TIMEVAL>, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_result(ld: *mut ldap, msgid: u32, all: u32, timeout: *const LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; + fn ldap_result(ld: *mut LDAP, msgid: u32, all: u32, timeout: *const LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; } ldap_result(::core::mem::transmute(ld), msgid, all, ::core::mem::transmute(timeout), ::core::mem::transmute(res)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_result2error(ld: &mut ldap, res: &mut LDAPMessage, freeit: u32) -> u32 { +pub unsafe fn ldap_result2error(ld: &mut LDAP, res: &mut LDAPMessage, freeit: u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_result2error(ld: *mut ldap, res: *mut LDAPMessage, freeit: u32) -> u32; + fn ldap_result2error(ld: *mut LDAP, res: *mut LDAPMessage, freeit: u32) -> u32; } ldap_result2error(::core::mem::transmute(ld), ::core::mem::transmute(res), freeit) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_sasl_bindA<'a, P0, P1>(externalhandle: &mut ldap, distname: P0, authmechanism: P1, cred: &LDAP_BERVAL, serverctrls: &mut *mut ldapcontrolA, clientctrls: &mut *mut ldapcontrolA, messagenumber: &mut i32) -> i32 +pub unsafe fn ldap_sasl_bindA<'a, P0, P1>(externalhandle: &mut LDAP, distname: P0, authmechanism: P1, cred: &LDAP_BERVAL, serverctrls: &mut *mut LDAPControlA, clientctrls: &mut *mut LDAPControlA, messagenumber: &mut i32) -> i32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_sasl_bindA(externalhandle: *mut ldap, distname: ::windows::core::PCSTR, authmechanism: ::windows::core::PCSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut ldapcontrolA, clientctrls: *mut *mut ldapcontrolA, messagenumber: *mut i32) -> i32; + fn ldap_sasl_bindA(externalhandle: *mut LDAP, distname: ::windows::core::PCSTR, authmechanism: ::windows::core::PCSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlA, clientctrls: *mut *mut LDAPControlA, messagenumber: *mut i32) -> i32; } ldap_sasl_bindA(::core::mem::transmute(externalhandle), distname.into(), authmechanism.into(), ::core::mem::transmute(cred), ::core::mem::transmute(serverctrls), ::core::mem::transmute(clientctrls), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_sasl_bindW<'a, P0, P1>(externalhandle: &mut ldap, distname: P0, authmechanism: P1, cred: &LDAP_BERVAL, serverctrls: &mut *mut ldapcontrolW, clientctrls: &mut *mut ldapcontrolW, messagenumber: &mut i32) -> i32 +pub unsafe fn ldap_sasl_bindW<'a, P0, P1>(externalhandle: &mut LDAP, distname: P0, authmechanism: P1, cred: &LDAP_BERVAL, serverctrls: &mut *mut LDAPControlW, clientctrls: &mut *mut LDAPControlW, messagenumber: &mut i32) -> i32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_sasl_bindW(externalhandle: *mut ldap, distname: ::windows::core::PCWSTR, authmechanism: ::windows::core::PCWSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut ldapcontrolW, clientctrls: *mut *mut ldapcontrolW, messagenumber: *mut i32) -> i32; + fn ldap_sasl_bindW(externalhandle: *mut LDAP, distname: ::windows::core::PCWSTR, authmechanism: ::windows::core::PCWSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlW, clientctrls: *mut *mut LDAPControlW, messagenumber: *mut i32) -> i32; } ldap_sasl_bindW(::core::mem::transmute(externalhandle), distname.into(), authmechanism.into(), ::core::mem::transmute(cred), ::core::mem::transmute(serverctrls), ::core::mem::transmute(clientctrls), ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_sasl_bind_sA<'a, P0, P1>(externalhandle: &mut ldap, distname: P0, authmechanism: P1, cred: &LDAP_BERVAL, serverctrls: &mut *mut ldapcontrolA, clientctrls: &mut *mut ldapcontrolA, serverdata: &mut *mut LDAP_BERVAL) -> i32 +pub unsafe fn ldap_sasl_bind_sA<'a, P0, P1>(externalhandle: &mut LDAP, distname: P0, authmechanism: P1, cred: &LDAP_BERVAL, serverctrls: &mut *mut LDAPControlA, clientctrls: &mut *mut LDAPControlA, serverdata: &mut *mut LDAP_BERVAL) -> i32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_sasl_bind_sA(externalhandle: *mut ldap, distname: ::windows::core::PCSTR, authmechanism: ::windows::core::PCSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut ldapcontrolA, clientctrls: *mut *mut ldapcontrolA, serverdata: *mut *mut LDAP_BERVAL) -> i32; + fn ldap_sasl_bind_sA(externalhandle: *mut LDAP, distname: ::windows::core::PCSTR, authmechanism: ::windows::core::PCSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlA, clientctrls: *mut *mut LDAPControlA, serverdata: *mut *mut LDAP_BERVAL) -> i32; } ldap_sasl_bind_sA(::core::mem::transmute(externalhandle), distname.into(), authmechanism.into(), ::core::mem::transmute(cred), ::core::mem::transmute(serverctrls), ::core::mem::transmute(clientctrls), ::core::mem::transmute(serverdata)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_sasl_bind_sW<'a, P0, P1>(externalhandle: &mut ldap, distname: P0, authmechanism: P1, cred: &LDAP_BERVAL, serverctrls: &mut *mut ldapcontrolW, clientctrls: &mut *mut ldapcontrolW, serverdata: &mut *mut LDAP_BERVAL) -> i32 +pub unsafe fn ldap_sasl_bind_sW<'a, P0, P1>(externalhandle: &mut LDAP, distname: P0, authmechanism: P1, cred: &LDAP_BERVAL, serverctrls: &mut *mut LDAPControlW, clientctrls: &mut *mut LDAPControlW, serverdata: &mut *mut LDAP_BERVAL) -> i32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_sasl_bind_sW(externalhandle: *mut ldap, distname: ::windows::core::PCWSTR, authmechanism: ::windows::core::PCWSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut ldapcontrolW, clientctrls: *mut *mut ldapcontrolW, serverdata: *mut *mut LDAP_BERVAL) -> i32; + fn ldap_sasl_bind_sW(externalhandle: *mut LDAP, distname: ::windows::core::PCWSTR, authmechanism: ::windows::core::PCWSTR, cred: *const LDAP_BERVAL, serverctrls: *mut *mut LDAPControlW, clientctrls: *mut *mut LDAPControlW, serverdata: *mut *mut LDAP_BERVAL) -> i32; } ldap_sasl_bind_sW(::core::mem::transmute(externalhandle), distname.into(), authmechanism.into(), ::core::mem::transmute(cred), ::core::mem::transmute(serverctrls), ::core::mem::transmute(clientctrls), ::core::mem::transmute(serverdata)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_search<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32) -> u32 +pub unsafe fn ldap_search<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search(ld: *mut ldap, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32) -> u32; + fn ldap_search(ld: *mut LDAP, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32) -> u32; } ldap_search(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_searchA<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32) -> u32 +pub unsafe fn ldap_searchA<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_searchA(ld: *mut ldap, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32) -> u32; + fn ldap_searchA(ld: *mut LDAP, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32) -> u32; } ldap_searchA(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_searchW<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const u16, attrsonly: u32) -> u32 +pub unsafe fn ldap_searchW<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const u16, attrsonly: u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_searchW(ld: *mut ldap, base: ::windows::core::PCWSTR, scope: u32, filter: ::windows::core::PCWSTR, attrs: *const *const u16, attrsonly: u32) -> u32; + fn ldap_searchW(ld: *mut LDAP, base: ::windows::core::PCWSTR, scope: u32, filter: ::windows::core::PCWSTR, attrs: *const *const u16, attrsonly: u32) -> u32; } ldap_searchW(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_search_abandon_page(externalhandle: &mut ldap, searchblock: &mut ldapsearch) -> u32 { +pub unsafe fn ldap_search_abandon_page(externalhandle: &mut LDAP, searchblock: &mut LDAPSearch) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_abandon_page(externalhandle: *mut ldap, searchblock: *mut ldapsearch) -> u32; + fn ldap_search_abandon_page(externalhandle: *mut LDAP, searchblock: *mut LDAPSearch) -> u32; } ldap_search_abandon_page(::core::mem::transmute(externalhandle), ::core::mem::transmute(searchblock)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_ext<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, servercontrols: ::core::option::Option<&*const ldapcontrolA>, clientcontrols: ::core::option::Option<&*const ldapcontrolA>, timelimit: u32, sizelimit: u32, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_search_ext<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, servercontrols: ::core::option::Option<&*const LDAPControlA>, clientcontrols: ::core::option::Option<&*const LDAPControlA>, timelimit: u32, sizelimit: u32, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_ext(ld: *mut ldap, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const ldapcontrolA, clientcontrols: *const *const ldapcontrolA, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32; + fn ldap_search_ext(ld: *mut LDAP, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const LDAPControlA, clientcontrols: *const *const LDAPControlA, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32; } ldap_search_ext(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), timelimit, sizelimit, ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_extA<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, servercontrols: ::core::option::Option<&*const ldapcontrolA>, clientcontrols: ::core::option::Option<&*const ldapcontrolA>, timelimit: u32, sizelimit: u32, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_search_extA<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, servercontrols: ::core::option::Option<&*const LDAPControlA>, clientcontrols: ::core::option::Option<&*const LDAPControlA>, timelimit: u32, sizelimit: u32, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_extA(ld: *mut ldap, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const ldapcontrolA, clientcontrols: *const *const ldapcontrolA, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32; + fn ldap_search_extA(ld: *mut LDAP, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const LDAPControlA, clientcontrols: *const *const LDAPControlA, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32; } ldap_search_extA(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), timelimit, sizelimit, ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_extW<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const u16, attrsonly: u32, servercontrols: ::core::option::Option<&*const ldapcontrolW>, clientcontrols: ::core::option::Option<&*const ldapcontrolW>, timelimit: u32, sizelimit: u32, messagenumber: &mut u32) -> u32 +pub unsafe fn ldap_search_extW<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const u16, attrsonly: u32, servercontrols: ::core::option::Option<&*const LDAPControlW>, clientcontrols: ::core::option::Option<&*const LDAPControlW>, timelimit: u32, sizelimit: u32, messagenumber: &mut u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_extW(ld: *mut ldap, base: ::windows::core::PCWSTR, scope: u32, filter: ::windows::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, servercontrols: *const *const ldapcontrolW, clientcontrols: *const *const ldapcontrolW, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32; + fn ldap_search_extW(ld: *mut LDAP, base: ::windows::core::PCWSTR, scope: u32, filter: ::windows::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, servercontrols: *const *const LDAPControlW, clientcontrols: *const *const LDAPControlW, timelimit: u32, sizelimit: u32, messagenumber: *mut u32) -> u32; } ldap_search_extW(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), timelimit, sizelimit, ::core::mem::transmute(messagenumber)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_ext_s<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, servercontrols: ::core::option::Option<&*const ldapcontrolA>, clientcontrols: ::core::option::Option<&*const ldapcontrolA>, timeout: &mut LDAP_TIMEVAL, sizelimit: u32, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 +pub unsafe fn ldap_search_ext_s<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, servercontrols: ::core::option::Option<&*const LDAPControlA>, clientcontrols: ::core::option::Option<&*const LDAPControlA>, timeout: &mut LDAP_TIMEVAL, sizelimit: u32, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_ext_s(ld: *mut ldap, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const ldapcontrolA, clientcontrols: *const *const ldapcontrolA, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32; + fn ldap_search_ext_s(ld: *mut LDAP, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const LDAPControlA, clientcontrols: *const *const LDAPControlA, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32; } ldap_search_ext_s(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(timeout), sizelimit, ::core::mem::transmute(res)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_ext_sA<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, servercontrols: ::core::option::Option<&*const ldapcontrolA>, clientcontrols: ::core::option::Option<&*const ldapcontrolA>, timeout: &mut LDAP_TIMEVAL, sizelimit: u32, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 +pub unsafe fn ldap_search_ext_sA<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, servercontrols: ::core::option::Option<&*const LDAPControlA>, clientcontrols: ::core::option::Option<&*const LDAPControlA>, timeout: &mut LDAP_TIMEVAL, sizelimit: u32, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_ext_sA(ld: *mut ldap, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const ldapcontrolA, clientcontrols: *const *const ldapcontrolA, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32; + fn ldap_search_ext_sA(ld: *mut LDAP, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, servercontrols: *const *const LDAPControlA, clientcontrols: *const *const LDAPControlA, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32; } ldap_search_ext_sA(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(timeout), sizelimit, ::core::mem::transmute(res)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_ext_sW<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const u16, attrsonly: u32, servercontrols: ::core::option::Option<&*const ldapcontrolW>, clientcontrols: ::core::option::Option<&*const ldapcontrolW>, timeout: &mut LDAP_TIMEVAL, sizelimit: u32, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 +pub unsafe fn ldap_search_ext_sW<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const u16, attrsonly: u32, servercontrols: ::core::option::Option<&*const LDAPControlW>, clientcontrols: ::core::option::Option<&*const LDAPControlW>, timeout: &mut LDAP_TIMEVAL, sizelimit: u32, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_ext_sW(ld: *mut ldap, base: ::windows::core::PCWSTR, scope: u32, filter: ::windows::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, servercontrols: *const *const ldapcontrolW, clientcontrols: *const *const ldapcontrolW, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32; + fn ldap_search_ext_sW(ld: *mut LDAP, base: ::windows::core::PCWSTR, scope: u32, filter: ::windows::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, servercontrols: *const *const LDAPControlW, clientcontrols: *const *const LDAPControlW, timeout: *mut LDAP_TIMEVAL, sizelimit: u32, res: *mut *mut LDAPMessage) -> u32; } ldap_search_ext_sW(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), ::core::mem::transmute(timeout), sizelimit, ::core::mem::transmute(res)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_init_page<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, scopeofsearch: u32, searchfilter: P1, attributelist: &mut *mut i8, attributesonly: u32, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: &mut *mut ldapsortkeyA) -> *mut ldapsearch +pub unsafe fn ldap_search_init_page<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, scopeofsearch: u32, searchfilter: P1, attributelist: &mut *mut i8, attributesonly: u32, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: &mut *mut LDAPSortKeyA) -> *mut LDAPSearch where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_init_page(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCSTR, scopeofsearch: u32, searchfilter: ::windows::core::PCSTR, attributelist: *mut *mut i8, attributesonly: u32, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut ldapsortkeyA) -> *mut ldapsearch; + fn ldap_search_init_page(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCSTR, scopeofsearch: u32, searchfilter: ::windows::core::PCSTR, attributelist: *mut *mut i8, attributesonly: u32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut LDAPSortKeyA) -> *mut LDAPSearch; } ldap_search_init_page(::core::mem::transmute(externalhandle), distinguishedname.into(), scopeofsearch, searchfilter.into(), ::core::mem::transmute(attributelist), attributesonly, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), pagetimelimit, totalsizelimit, ::core::mem::transmute(sortkeys)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_init_pageA<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, scopeofsearch: u32, searchfilter: P1, attributelist: &*const i8, attributesonly: u32, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: &mut *mut ldapsortkeyA) -> *mut ldapsearch +pub unsafe fn ldap_search_init_pageA<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, scopeofsearch: u32, searchfilter: P1, attributelist: &*const i8, attributesonly: u32, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: &mut *mut LDAPSortKeyA) -> *mut LDAPSearch where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_init_pageA(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCSTR, scopeofsearch: u32, searchfilter: ::windows::core::PCSTR, attributelist: *const *const i8, attributesonly: u32, servercontrols: *mut *mut ldapcontrolA, clientcontrols: *mut *mut ldapcontrolA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut ldapsortkeyA) -> *mut ldapsearch; + fn ldap_search_init_pageA(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCSTR, scopeofsearch: u32, searchfilter: ::windows::core::PCSTR, attributelist: *const *const i8, attributesonly: u32, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut LDAPSortKeyA) -> *mut LDAPSearch; } ldap_search_init_pageA(::core::mem::transmute(externalhandle), distinguishedname.into(), scopeofsearch, searchfilter.into(), ::core::mem::transmute(attributelist), attributesonly, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), pagetimelimit, totalsizelimit, ::core::mem::transmute(sortkeys)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_init_pageW<'a, P0, P1>(externalhandle: &mut ldap, distinguishedname: P0, scopeofsearch: u32, searchfilter: P1, attributelist: &*const u16, attributesonly: u32, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW, pagetimelimit: u32, totalsizelimit: u32, sortkeys: &mut *mut ldapsortkeyW) -> *mut ldapsearch +pub unsafe fn ldap_search_init_pageW<'a, P0, P1>(externalhandle: &mut LDAP, distinguishedname: P0, scopeofsearch: u32, searchfilter: P1, attributelist: &*const u16, attributesonly: u32, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW, pagetimelimit: u32, totalsizelimit: u32, sortkeys: &mut *mut LDAPSortKeyW) -> *mut LDAPSearch where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_init_pageW(externalhandle: *mut ldap, distinguishedname: ::windows::core::PCWSTR, scopeofsearch: u32, searchfilter: ::windows::core::PCWSTR, attributelist: *const *const u16, attributesonly: u32, servercontrols: *mut *mut ldapcontrolW, clientcontrols: *mut *mut ldapcontrolW, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut ldapsortkeyW) -> *mut ldapsearch; + fn ldap_search_init_pageW(externalhandle: *mut LDAP, distinguishedname: ::windows::core::PCWSTR, scopeofsearch: u32, searchfilter: ::windows::core::PCWSTR, attributelist: *const *const u16, attributesonly: u32, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW, pagetimelimit: u32, totalsizelimit: u32, sortkeys: *mut *mut LDAPSortKeyW) -> *mut LDAPSearch; } ldap_search_init_pageW(::core::mem::transmute(externalhandle), distinguishedname.into(), scopeofsearch, searchfilter.into(), ::core::mem::transmute(attributelist), attributesonly, ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols), pagetimelimit, totalsizelimit, ::core::mem::transmute(sortkeys)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_s<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 +pub unsafe fn ldap_search_s<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_s(ld: *mut ldap, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32; + fn ldap_search_s(ld: *mut LDAP, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32; } ldap_search_s(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly, ::core::mem::transmute(res)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_sA<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 +pub unsafe fn ldap_search_sA<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_sA(ld: *mut ldap, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32; + fn ldap_search_sA(ld: *mut LDAP, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32; } ldap_search_sA(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly, ::core::mem::transmute(res)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_sW<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const u16, attrsonly: u32, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 +pub unsafe fn ldap_search_sW<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const u16, attrsonly: u32, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_sW(ld: *mut ldap, base: ::windows::core::PCWSTR, scope: u32, filter: ::windows::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32; + fn ldap_search_sW(ld: *mut LDAP, base: ::windows::core::PCWSTR, scope: u32, filter: ::windows::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, res: *mut *mut LDAPMessage) -> u32; } ldap_search_sW(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly, ::core::mem::transmute(res)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_st<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, timeout: &mut LDAP_TIMEVAL, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 +pub unsafe fn ldap_search_st<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, timeout: &mut LDAP_TIMEVAL, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_st(ld: *mut ldap, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; + fn ldap_search_st(ld: *mut LDAP, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; } ldap_search_st(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly, ::core::mem::transmute(timeout), ::core::mem::transmute(res)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_stA<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, timeout: &mut LDAP_TIMEVAL, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 +pub unsafe fn ldap_search_stA<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const i8, attrsonly: u32, timeout: &mut LDAP_TIMEVAL, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_stA(ld: *mut ldap, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; + fn ldap_search_stA(ld: *mut LDAP, base: ::windows::core::PCSTR, scope: u32, filter: ::windows::core::PCSTR, attrs: *const *const i8, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; } ldap_search_stA(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly, ::core::mem::transmute(timeout), ::core::mem::transmute(res)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_search_stW<'a, P0, P1>(ld: &mut ldap, base: P0, scope: u32, filter: P1, attrs: &*const u16, attrsonly: u32, timeout: &mut LDAP_TIMEVAL, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 +pub unsafe fn ldap_search_stW<'a, P0, P1>(ld: &mut LDAP, base: P0, scope: u32, filter: P1, attrs: &*const u16, attrsonly: u32, timeout: &mut LDAP_TIMEVAL, res: ::core::option::Option<&mut *mut LDAPMessage>) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_search_stW(ld: *mut ldap, base: ::windows::core::PCWSTR, scope: u32, filter: ::windows::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; + fn ldap_search_stW(ld: *mut LDAP, base: ::windows::core::PCWSTR, scope: u32, filter: ::windows::core::PCWSTR, attrs: *const *const u16, attrsonly: u32, timeout: *mut LDAP_TIMEVAL, res: *mut *mut LDAPMessage) -> u32; } ldap_search_stW(::core::mem::transmute(ld), base.into(), scope, filter.into(), ::core::mem::transmute(attrs), attrsonly, ::core::mem::transmute(timeout), ::core::mem::transmute(res)) } @@ -2576,173 +2576,173 @@ pub unsafe fn ldap_set_dbg_routine(debugprintroutine: DBGPRINT) { } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_set_option(ld: &mut ldap, option: i32, invalue: *const ::core::ffi::c_void) -> u32 { +pub unsafe fn ldap_set_option(ld: &mut LDAP, option: i32, invalue: *const ::core::ffi::c_void) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_set_option(ld: *mut ldap, option: i32, invalue: *const ::core::ffi::c_void) -> u32; + fn ldap_set_option(ld: *mut LDAP, option: i32, invalue: *const ::core::ffi::c_void) -> u32; } ldap_set_option(::core::mem::transmute(ld), option, ::core::mem::transmute(invalue)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_set_optionW(ld: &mut ldap, option: i32, invalue: *const ::core::ffi::c_void) -> u32 { +pub unsafe fn ldap_set_optionW(ld: &mut LDAP, option: i32, invalue: *const ::core::ffi::c_void) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_set_optionW(ld: *mut ldap, option: i32, invalue: *const ::core::ffi::c_void) -> u32; + fn ldap_set_optionW(ld: *mut LDAP, option: i32, invalue: *const ::core::ffi::c_void) -> u32; } ldap_set_optionW(::core::mem::transmute(ld), option, ::core::mem::transmute(invalue)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_simple_bind<'a, P0, P1>(ld: &mut ldap, dn: P0, passwd: P1) -> u32 +pub unsafe fn ldap_simple_bind<'a, P0, P1>(ld: &mut LDAP, dn: P0, passwd: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_simple_bind(ld: *mut ldap, dn: ::windows::core::PCSTR, passwd: ::windows::core::PCSTR) -> u32; + fn ldap_simple_bind(ld: *mut LDAP, dn: ::windows::core::PCSTR, passwd: ::windows::core::PCSTR) -> u32; } ldap_simple_bind(::core::mem::transmute(ld), dn.into(), passwd.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_simple_bindA<'a, P0, P1>(ld: &mut ldap, dn: P0, passwd: P1) -> u32 +pub unsafe fn ldap_simple_bindA<'a, P0, P1>(ld: &mut LDAP, dn: P0, passwd: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_simple_bindA(ld: *mut ldap, dn: ::windows::core::PCSTR, passwd: ::windows::core::PCSTR) -> u32; + fn ldap_simple_bindA(ld: *mut LDAP, dn: ::windows::core::PCSTR, passwd: ::windows::core::PCSTR) -> u32; } ldap_simple_bindA(::core::mem::transmute(ld), dn.into(), passwd.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_simple_bindW<'a, P0, P1>(ld: &mut ldap, dn: P0, passwd: P1) -> u32 +pub unsafe fn ldap_simple_bindW<'a, P0, P1>(ld: &mut LDAP, dn: P0, passwd: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_simple_bindW(ld: *mut ldap, dn: ::windows::core::PCWSTR, passwd: ::windows::core::PCWSTR) -> u32; + fn ldap_simple_bindW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, passwd: ::windows::core::PCWSTR) -> u32; } ldap_simple_bindW(::core::mem::transmute(ld), dn.into(), passwd.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_simple_bind_s<'a, P0, P1>(ld: &mut ldap, dn: P0, passwd: P1) -> u32 +pub unsafe fn ldap_simple_bind_s<'a, P0, P1>(ld: &mut LDAP, dn: P0, passwd: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_simple_bind_s(ld: *mut ldap, dn: ::windows::core::PCSTR, passwd: ::windows::core::PCSTR) -> u32; + fn ldap_simple_bind_s(ld: *mut LDAP, dn: ::windows::core::PCSTR, passwd: ::windows::core::PCSTR) -> u32; } ldap_simple_bind_s(::core::mem::transmute(ld), dn.into(), passwd.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_simple_bind_sA<'a, P0, P1>(ld: &mut ldap, dn: P0, passwd: P1) -> u32 +pub unsafe fn ldap_simple_bind_sA<'a, P0, P1>(ld: &mut LDAP, dn: P0, passwd: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_simple_bind_sA(ld: *mut ldap, dn: ::windows::core::PCSTR, passwd: ::windows::core::PCSTR) -> u32; + fn ldap_simple_bind_sA(ld: *mut LDAP, dn: ::windows::core::PCSTR, passwd: ::windows::core::PCSTR) -> u32; } ldap_simple_bind_sA(::core::mem::transmute(ld), dn.into(), passwd.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_simple_bind_sW<'a, P0, P1>(ld: &mut ldap, dn: P0, passwd: P1) -> u32 +pub unsafe fn ldap_simple_bind_sW<'a, P0, P1>(ld: &mut LDAP, dn: P0, passwd: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_simple_bind_sW(ld: *mut ldap, dn: ::windows::core::PCWSTR, passwd: ::windows::core::PCWSTR) -> u32; + fn ldap_simple_bind_sW(ld: *mut LDAP, dn: ::windows::core::PCWSTR, passwd: ::windows::core::PCWSTR) -> u32; } ldap_simple_bind_sW(::core::mem::transmute(ld), dn.into(), passwd.into()) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_sslinit<'a, P0>(hostname: P0, portnumber: u32, secure: i32) -> *mut ldap +pub unsafe fn ldap_sslinit<'a, P0>(hostname: P0, portnumber: u32, secure: i32) -> *mut LDAP where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_sslinit(hostname: ::windows::core::PCSTR, portnumber: u32, secure: i32) -> *mut ldap; + fn ldap_sslinit(hostname: ::windows::core::PCSTR, portnumber: u32, secure: i32) -> *mut LDAP; } ldap_sslinit(hostname.into(), portnumber, secure) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_sslinitA<'a, P0>(hostname: P0, portnumber: u32, secure: i32) -> *mut ldap +pub unsafe fn ldap_sslinitA<'a, P0>(hostname: P0, portnumber: u32, secure: i32) -> *mut LDAP where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_sslinitA(hostname: ::windows::core::PCSTR, portnumber: u32, secure: i32) -> *mut ldap; + fn ldap_sslinitA(hostname: ::windows::core::PCSTR, portnumber: u32, secure: i32) -> *mut LDAP; } ldap_sslinitA(hostname.into(), portnumber, secure) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_sslinitW<'a, P0>(hostname: P0, portnumber: u32, secure: i32) -> *mut ldap +pub unsafe fn ldap_sslinitW<'a, P0>(hostname: P0, portnumber: u32, secure: i32) -> *mut LDAP where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_sslinitW(hostname: ::windows::core::PCWSTR, portnumber: u32, secure: i32) -> *mut ldap; + fn ldap_sslinitW(hostname: ::windows::core::PCWSTR, portnumber: u32, secure: i32) -> *mut LDAP; } ldap_sslinitW(hostname.into(), portnumber, secure) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_start_tls_sA(externalhandle: &mut ldap, serverreturnvalue: &mut u32, result: &mut *mut LDAPMessage, servercontrols: &mut *mut ldapcontrolA, clientcontrols: &mut *mut ldapcontrolA) -> u32 { +pub unsafe fn ldap_start_tls_sA(externalhandle: &mut LDAP, serverreturnvalue: &mut u32, result: &mut *mut LDAPMessage, servercontrols: &mut *mut LDAPControlA, clientcontrols: &mut *mut LDAPControlA) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "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; + fn ldap_start_tls_sA(externalhandle: *mut LDAP, serverreturnvalue: *mut u32, result: *mut *mut LDAPMessage, servercontrols: *mut *mut LDAPControlA, clientcontrols: *mut *mut LDAPControlA) -> u32; } ldap_start_tls_sA(::core::mem::transmute(externalhandle), ::core::mem::transmute(serverreturnvalue), ::core::mem::transmute(result), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_start_tls_sW(externalhandle: &mut ldap, serverreturnvalue: &mut u32, result: &mut *mut LDAPMessage, servercontrols: &mut *mut ldapcontrolW, clientcontrols: &mut *mut ldapcontrolW) -> u32 { +pub unsafe fn ldap_start_tls_sW(externalhandle: &mut LDAP, serverreturnvalue: &mut u32, result: &mut *mut LDAPMessage, servercontrols: &mut *mut LDAPControlW, clientcontrols: &mut *mut LDAPControlW) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "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; + fn ldap_start_tls_sW(externalhandle: *mut LDAP, serverreturnvalue: *mut u32, result: *mut *mut LDAPMessage, servercontrols: *mut *mut LDAPControlW, clientcontrols: *mut *mut LDAPControlW) -> u32; } ldap_start_tls_sW(::core::mem::transmute(externalhandle), ::core::mem::transmute(serverreturnvalue), ::core::mem::transmute(result), ::core::mem::transmute(servercontrols), ::core::mem::transmute(clientcontrols)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_startup(version: &mut ldap_version_info, instance: &mut super::super::Foundation::HANDLE) -> u32 { +pub unsafe fn ldap_startup(version: &mut LDAP_VERSION_INFO, instance: &mut super::super::Foundation::HANDLE) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_startup(version: *mut ldap_version_info, instance: *mut super::super::Foundation::HANDLE) -> u32; + fn ldap_startup(version: *mut LDAP_VERSION_INFO, instance: *mut super::super::Foundation::HANDLE) -> u32; } ldap_startup(::core::mem::transmute(version), ::core::mem::transmute(instance)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ldap_stop_tls_s(externalhandle: &mut ldap) -> super::super::Foundation::BOOLEAN { +pub unsafe fn ldap_stop_tls_s(externalhandle: &mut LDAP) -> super::super::Foundation::BOOLEAN { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_stop_tls_s(externalhandle: *mut ldap) -> super::super::Foundation::BOOLEAN; + fn ldap_stop_tls_s(externalhandle: *mut LDAP) -> super::super::Foundation::BOOLEAN; } ldap_stop_tls_s(::core::mem::transmute(externalhandle)) } @@ -2784,19 +2784,19 @@ where } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_unbind(ld: &mut ldap) -> u32 { +pub unsafe fn ldap_unbind(ld: &mut LDAP) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_unbind(ld: *mut ldap) -> u32; + fn ldap_unbind(ld: *mut LDAP) -> u32; } ldap_unbind(::core::mem::transmute(ld)) } #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] #[inline] -pub unsafe fn ldap_unbind_s(ld: &mut ldap) -> u32 { +pub unsafe fn ldap_unbind_s(ld: &mut LDAP) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "cdecl" { - fn ldap_unbind_s(ld: *mut ldap) -> u32; + fn ldap_unbind_s(ld: *mut LDAP) -> u32; } ldap_unbind_s(::core::mem::transmute(ld)) } @@ -3631,269 +3631,38 @@ impl ::core::fmt::Debug for LDAP_RETCODE { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct LDAPAPIFeatureInfoA { - pub ldapaif_info_version: i32, - pub ldapaif_name: ::windows::core::PSTR, - pub ldapaif_version: i32, -} -impl ::core::marker::Copy for LDAPAPIFeatureInfoA {} -impl ::core::clone::Clone for LDAPAPIFeatureInfoA { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for LDAPAPIFeatureInfoA { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("LDAPAPIFeatureInfoA").field("ldapaif_info_version", &self.ldapaif_info_version).field("ldapaif_name", &self.ldapaif_name).field("ldapaif_version", &self.ldapaif_version).finish() - } -} -unsafe impl ::windows::core::Abi for LDAPAPIFeatureInfoA { - type Abi = Self; -} -impl ::core::cmp::PartialEq for LDAPAPIFeatureInfoA { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for LDAPAPIFeatureInfoA {} -impl ::core::default::Default for LDAPAPIFeatureInfoA { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct LDAPAPIFeatureInfoW { - pub ldapaif_info_version: i32, - pub ldapaif_name: ::windows::core::PWSTR, - pub ldapaif_version: i32, -} -impl ::core::marker::Copy for LDAPAPIFeatureInfoW {} -impl ::core::clone::Clone for LDAPAPIFeatureInfoW { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for LDAPAPIFeatureInfoW { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("LDAPAPIFeatureInfoW").field("ldapaif_info_version", &self.ldapaif_info_version).field("ldapaif_name", &self.ldapaif_name).field("ldapaif_version", &self.ldapaif_version).finish() - } -} -unsafe impl ::windows::core::Abi for LDAPAPIFeatureInfoW { - type Abi = Self; -} -impl ::core::cmp::PartialEq for LDAPAPIFeatureInfoW { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for LDAPAPIFeatureInfoW {} -impl ::core::default::Default for LDAPAPIFeatureInfoW { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct LDAPMessage { - pub lm_msgid: u32, - pub lm_msgtype: u32, - pub lm_ber: *mut ::core::ffi::c_void, - pub lm_chain: *mut LDAPMessage, - pub lm_next: *mut LDAPMessage, - pub lm_time: u32, - pub Connection: *mut ldap, - 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, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for LDAPMessage {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for LDAPMessage { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for LDAPMessage { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("LDAPMessage") - .field("lm_msgid", &self.lm_msgid) - .field("lm_msgtype", &self.lm_msgtype) - .field("lm_ber", &self.lm_ber) - .field("lm_chain", &self.lm_chain) - .field("lm_next", &self.lm_next) - .field("lm_time", &self.lm_time) - .field("Connection", &self.Connection) - .field("Request", &self.Request) - .field("lm_returncode", &self.lm_returncode) - .field("lm_referral", &self.lm_referral) - .field("lm_chased", &self.lm_chased) - .field("lm_eom", &self.lm_eom) - .field("ConnectionReferenced", &self.ConnectionReferenced) - .finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for LDAPMessage { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for LDAPMessage { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for LDAPMessage {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for LDAPMessage { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct LDAP_BERVAL { - pub bv_len: u32, - pub bv_val: ::windows::core::PSTR, -} -impl ::core::marker::Copy for LDAP_BERVAL {} -impl ::core::clone::Clone for LDAP_BERVAL { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for LDAP_BERVAL { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("LDAP_BERVAL").field("bv_len", &self.bv_len).field("bv_val", &self.bv_val).finish() - } -} -unsafe impl ::windows::core::Abi for LDAP_BERVAL { - type Abi = Self; -} -impl ::core::cmp::PartialEq for LDAP_BERVAL { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for LDAP_BERVAL {} -impl ::core::default::Default for LDAP_BERVAL { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct LDAP_REFERRAL_CALLBACK { - pub SizeOfCallbacks: u32, - pub QueryForConnection: QUERYFORCONNECTION, - pub NotifyRoutine: NOTIFYOFNEWCONNECTION, - pub DereferenceRoutine: DEREFERENCECONNECTION, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for LDAP_REFERRAL_CALLBACK {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for LDAP_REFERRAL_CALLBACK { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for LDAP_REFERRAL_CALLBACK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("LDAP_REFERRAL_CALLBACK").field("SizeOfCallbacks", &self.SizeOfCallbacks).field("QueryForConnection", &self.QueryForConnection.map(|f| f as usize)).field("NotifyRoutine", &self.NotifyRoutine.map(|f| f as usize)).field("DereferenceRoutine", &self.DereferenceRoutine.map(|f| f as usize)).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for LDAP_REFERRAL_CALLBACK { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for LDAP_REFERRAL_CALLBACK { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for LDAP_REFERRAL_CALLBACK {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for LDAP_REFERRAL_CALLBACK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct LDAP_TIMEVAL { - pub tv_sec: i32, - pub tv_usec: i32, -} -impl ::core::marker::Copy for LDAP_TIMEVAL {} -impl ::core::clone::Clone for LDAP_TIMEVAL { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for LDAP_TIMEVAL { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("LDAP_TIMEVAL").field("tv_sec", &self.tv_sec).field("tv_usec", &self.tv_usec).finish() - } -} -unsafe impl ::windows::core::Abi for LDAP_TIMEVAL { - type Abi = Self; -} -impl ::core::cmp::PartialEq for LDAP_TIMEVAL { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for LDAP_TIMEVAL {} -impl ::core::default::Default for LDAP_TIMEVAL { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct berelement { +pub struct BerElement { pub opaque: ::windows::core::PSTR, } -impl ::core::marker::Copy for berelement {} -impl ::core::clone::Clone for berelement { +impl ::core::marker::Copy for BerElement {} +impl ::core::clone::Clone for BerElement { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for berelement { +impl ::core::fmt::Debug for BerElement { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("berelement").field("opaque", &self.opaque).finish() + f.debug_struct("BerElement").field("opaque", &self.opaque).finish() } } -unsafe impl ::windows::core::Abi for berelement { +unsafe impl ::windows::core::Abi for BerElement { type Abi = Self; } -impl ::core::cmp::PartialEq for berelement { +impl ::core::cmp::PartialEq for BerElement { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for berelement {} -impl ::core::default::Default for berelement { +impl ::core::cmp::Eq for BerElement {} +impl ::core::default::Default for BerElement { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldap { - pub ld_sb: ldap_0, +pub struct LDAP { + pub ld_sb: LDAP_0, pub ld_host: ::windows::core::PSTR, pub ld_version: u32, pub ld_lberoptions: u8, @@ -3910,15 +3679,15 @@ pub struct ldap { pub ld_refhoplimit: u32, pub ld_options: u32, } -impl ::core::marker::Copy for ldap {} -impl ::core::clone::Clone for ldap { +impl ::core::marker::Copy for LDAP {} +impl ::core::clone::Clone for LDAP { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for ldap { +impl ::core::fmt::Debug for LDAP { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ldap") + f.debug_struct("LDAP") .field("ld_sb", &self.ld_sb) .field("ld_host", &self.ld_host) .field("ld_version", &self.ld_version) @@ -3938,88 +3707,120 @@ impl ::core::fmt::Debug for ldap { .finish() } } -unsafe impl ::windows::core::Abi for ldap { +unsafe impl ::windows::core::Abi for LDAP { type Abi = Self; } -impl ::core::cmp::PartialEq for ldap { +impl ::core::cmp::PartialEq for LDAP { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for ldap {} -impl ::core::default::Default for ldap { +impl ::core::cmp::Eq for LDAP {} +impl ::core::default::Default for LDAP { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldap_0 { +pub struct LDAP_0 { pub sb_sd: usize, pub Reserved1: [u8; 41], pub sb_naddr: usize, pub Reserved2: [u8; 24], } -impl ::core::marker::Copy for ldap_0 {} -impl ::core::clone::Clone for ldap_0 { +impl ::core::marker::Copy for LDAP_0 {} +impl ::core::clone::Clone for LDAP_0 { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for ldap_0 { +impl ::core::fmt::Debug for LDAP_0 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ldap_0").field("sb_sd", &self.sb_sd).field("Reserved1", &self.Reserved1).field("sb_naddr", &self.sb_naddr).field("Reserved2", &self.Reserved2).finish() + f.debug_struct("LDAP_0").field("sb_sd", &self.sb_sd).field("Reserved1", &self.Reserved1).field("sb_naddr", &self.sb_naddr).field("Reserved2", &self.Reserved2).finish() } } -unsafe impl ::windows::core::Abi for ldap_0 { +unsafe impl ::windows::core::Abi for LDAP_0 { type Abi = Self; } -impl ::core::cmp::PartialEq for ldap_0 { +impl ::core::cmp::PartialEq for LDAP_0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for ldap_0 {} -impl ::core::default::Default for ldap_0 { +impl ::core::cmp::Eq for LDAP_0 {} +impl ::core::default::Default for LDAP_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldap_version_info { - pub lv_size: u32, - pub lv_major: u32, - pub lv_minor: u32, +pub struct LDAPAPIFeatureInfoA { + pub ldapaif_info_version: i32, + pub ldapaif_name: ::windows::core::PSTR, + pub ldapaif_version: i32, } -impl ::core::marker::Copy for ldap_version_info {} -impl ::core::clone::Clone for ldap_version_info { +impl ::core::marker::Copy for LDAPAPIFeatureInfoA {} +impl ::core::clone::Clone for LDAPAPIFeatureInfoA { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for ldap_version_info { +impl ::core::fmt::Debug for LDAPAPIFeatureInfoA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ldap_version_info").field("lv_size", &self.lv_size).field("lv_major", &self.lv_major).field("lv_minor", &self.lv_minor).finish() + f.debug_struct("LDAPAPIFeatureInfoA").field("ldapaif_info_version", &self.ldapaif_info_version).field("ldapaif_name", &self.ldapaif_name).field("ldapaif_version", &self.ldapaif_version).finish() } } -unsafe impl ::windows::core::Abi for ldap_version_info { +unsafe impl ::windows::core::Abi for LDAPAPIFeatureInfoA { type Abi = Self; } -impl ::core::cmp::PartialEq for ldap_version_info { +impl ::core::cmp::PartialEq for LDAPAPIFeatureInfoA { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for ldap_version_info {} -impl ::core::default::Default for ldap_version_info { +impl ::core::cmp::Eq for LDAPAPIFeatureInfoA {} +impl ::core::default::Default for LDAPAPIFeatureInfoA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldapapiinfoA { +pub struct LDAPAPIFeatureInfoW { + pub ldapaif_info_version: i32, + pub ldapaif_name: ::windows::core::PWSTR, + pub ldapaif_version: i32, +} +impl ::core::marker::Copy for LDAPAPIFeatureInfoW {} +impl ::core::clone::Clone for LDAPAPIFeatureInfoW { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for LDAPAPIFeatureInfoW { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("LDAPAPIFeatureInfoW").field("ldapaif_info_version", &self.ldapaif_info_version).field("ldapaif_name", &self.ldapaif_name).field("ldapaif_version", &self.ldapaif_version).finish() + } +} +unsafe impl ::windows::core::Abi for LDAPAPIFeatureInfoW { + type Abi = Self; +} +impl ::core::cmp::PartialEq for LDAPAPIFeatureInfoW { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for LDAPAPIFeatureInfoW {} +impl ::core::default::Default for LDAPAPIFeatureInfoW { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] +pub struct LDAPAPIInfoA { pub ldapai_info_version: i32, pub ldapai_api_version: i32, pub ldapai_protocol_version: i32, @@ -4027,34 +3828,34 @@ pub struct ldapapiinfoA { pub ldapai_vendor_name: ::windows::core::PSTR, pub ldapai_vendor_version: i32, } -impl ::core::marker::Copy for ldapapiinfoA {} -impl ::core::clone::Clone for ldapapiinfoA { +impl ::core::marker::Copy for LDAPAPIInfoA {} +impl ::core::clone::Clone for LDAPAPIInfoA { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for ldapapiinfoA { +impl ::core::fmt::Debug for LDAPAPIInfoA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ldapapiinfoA").field("ldapai_info_version", &self.ldapai_info_version).field("ldapai_api_version", &self.ldapai_api_version).field("ldapai_protocol_version", &self.ldapai_protocol_version).field("ldapai_extensions", &self.ldapai_extensions).field("ldapai_vendor_name", &self.ldapai_vendor_name).field("ldapai_vendor_version", &self.ldapai_vendor_version).finish() + f.debug_struct("LDAPAPIInfoA").field("ldapai_info_version", &self.ldapai_info_version).field("ldapai_api_version", &self.ldapai_api_version).field("ldapai_protocol_version", &self.ldapai_protocol_version).field("ldapai_extensions", &self.ldapai_extensions).field("ldapai_vendor_name", &self.ldapai_vendor_name).field("ldapai_vendor_version", &self.ldapai_vendor_version).finish() } } -unsafe impl ::windows::core::Abi for ldapapiinfoA { +unsafe impl ::windows::core::Abi for LDAPAPIInfoA { type Abi = Self; } -impl ::core::cmp::PartialEq for ldapapiinfoA { +impl ::core::cmp::PartialEq for LDAPAPIInfoA { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for ldapapiinfoA {} -impl ::core::default::Default for ldapapiinfoA { +impl ::core::cmp::Eq for LDAPAPIInfoA {} +impl ::core::default::Default for LDAPAPIInfoA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldapapiinfoW { +pub struct LDAPAPIInfoW { pub ldapai_info_version: i32, pub ldapai_api_version: i32, pub ldapai_protocol_version: i32, @@ -4062,27 +3863,27 @@ pub struct ldapapiinfoW { pub ldapai_vendor_name: ::windows::core::PWSTR, pub ldapai_vendor_version: i32, } -impl ::core::marker::Copy for ldapapiinfoW {} -impl ::core::clone::Clone for ldapapiinfoW { +impl ::core::marker::Copy for LDAPAPIInfoW {} +impl ::core::clone::Clone for LDAPAPIInfoW { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for ldapapiinfoW { +impl ::core::fmt::Debug for LDAPAPIInfoW { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ldapapiinfoW").field("ldapai_info_version", &self.ldapai_info_version).field("ldapai_api_version", &self.ldapai_api_version).field("ldapai_protocol_version", &self.ldapai_protocol_version).field("ldapai_extensions", &self.ldapai_extensions).field("ldapai_vendor_name", &self.ldapai_vendor_name).field("ldapai_vendor_version", &self.ldapai_vendor_version).finish() + f.debug_struct("LDAPAPIInfoW").field("ldapai_info_version", &self.ldapai_info_version).field("ldapai_api_version", &self.ldapai_api_version).field("ldapai_protocol_version", &self.ldapai_protocol_version).field("ldapai_extensions", &self.ldapai_extensions).field("ldapai_vendor_name", &self.ldapai_vendor_name).field("ldapai_vendor_version", &self.ldapai_vendor_version).finish() } } -unsafe impl ::windows::core::Abi for ldapapiinfoW { +unsafe impl ::windows::core::Abi for LDAPAPIInfoW { type Abi = Self; } -impl ::core::cmp::PartialEq for ldapapiinfoW { +impl ::core::cmp::PartialEq for LDAPAPIInfoW { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for ldapapiinfoW {} -impl ::core::default::Default for ldapapiinfoW { +impl ::core::cmp::Eq for LDAPAPIInfoW {} +impl ::core::default::Default for LDAPAPIInfoW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -4090,39 +3891,39 @@ impl ::core::default::Default for ldapapiinfoW { #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct ldapcontrolA { +pub struct LDAPControlA { pub ldctl_oid: ::windows::core::PSTR, pub ldctl_value: LDAP_BERVAL, pub ldctl_iscritical: super::super::Foundation::BOOLEAN, } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ldapcontrolA {} +impl ::core::marker::Copy for LDAPControlA {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ldapcontrolA { +impl ::core::clone::Clone for LDAPControlA { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for ldapcontrolA { +impl ::core::fmt::Debug for LDAPControlA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ldapcontrolA").field("ldctl_oid", &self.ldctl_oid).field("ldctl_value", &self.ldctl_value).field("ldctl_iscritical", &self.ldctl_iscritical).finish() + f.debug_struct("LDAPControlA").field("ldctl_oid", &self.ldctl_oid).field("ldctl_value", &self.ldctl_value).field("ldctl_iscritical", &self.ldctl_iscritical).finish() } } #[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for ldapcontrolA { +unsafe impl ::windows::core::Abi for LDAPControlA { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for ldapcontrolA { +impl ::core::cmp::PartialEq for LDAPControlA { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for ldapcontrolA {} +impl ::core::cmp::Eq for LDAPControlA {} #[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for ldapcontrolA { +impl ::core::default::Default for LDAPControlA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -4130,187 +3931,251 @@ impl ::core::default::Default for ldapcontrolA { #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct ldapcontrolW { +pub struct LDAPControlW { pub ldctl_oid: ::windows::core::PWSTR, pub ldctl_value: LDAP_BERVAL, pub ldctl_iscritical: super::super::Foundation::BOOLEAN, } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ldapcontrolW {} +impl ::core::marker::Copy for LDAPControlW {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ldapcontrolW { +impl ::core::clone::Clone for LDAPControlW { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for ldapcontrolW { +impl ::core::fmt::Debug for LDAPControlW { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ldapcontrolW").field("ldctl_oid", &self.ldctl_oid).field("ldctl_value", &self.ldctl_value).field("ldctl_iscritical", &self.ldctl_iscritical).finish() + f.debug_struct("LDAPControlW").field("ldctl_oid", &self.ldctl_oid).field("ldctl_value", &self.ldctl_value).field("ldctl_iscritical", &self.ldctl_iscritical).finish() } } #[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for ldapcontrolW { +unsafe impl ::windows::core::Abi for LDAPControlW { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for ldapcontrolW { +impl ::core::cmp::PartialEq for LDAPControlW { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for ldapcontrolW {} +impl ::core::cmp::Eq for LDAPControlW {} #[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for ldapcontrolW { +impl ::core::default::Default for LDAPControlW { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct LDAPMessage { + pub lm_msgid: u32, + pub lm_msgtype: u32, + pub lm_ber: *mut ::core::ffi::c_void, + pub lm_chain: *mut LDAPMessage, + pub lm_next: *mut LDAPMessage, + pub lm_time: u32, + pub Connection: *mut LDAP, + 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, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for LDAPMessage {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for LDAPMessage { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for LDAPMessage { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("LDAPMessage") + .field("lm_msgid", &self.lm_msgid) + .field("lm_msgtype", &self.lm_msgtype) + .field("lm_ber", &self.lm_ber) + .field("lm_chain", &self.lm_chain) + .field("lm_next", &self.lm_next) + .field("lm_time", &self.lm_time) + .field("Connection", &self.Connection) + .field("Request", &self.Request) + .field("lm_returncode", &self.lm_returncode) + .field("lm_referral", &self.lm_referral) + .field("lm_chased", &self.lm_chased) + .field("lm_eom", &self.lm_eom) + .field("ConnectionReferenced", &self.ConnectionReferenced) + .finish() + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for LDAPMessage { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for LDAPMessage { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for LDAPMessage {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for LDAPMessage { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldapmodA { +pub struct LDAPModA { pub mod_op: u32, pub mod_type: ::windows::core::PSTR, - pub mod_vals: ldapmodA_0, + pub mod_vals: LDAPModA_0, } -impl ::core::marker::Copy for ldapmodA {} -impl ::core::clone::Clone for ldapmodA { +impl ::core::marker::Copy for LDAPModA {} +impl ::core::clone::Clone for LDAPModA { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for ldapmodA { +unsafe impl ::windows::core::Abi for LDAPModA { type Abi = Self; } -impl ::core::cmp::PartialEq for ldapmodA { +impl ::core::cmp::PartialEq for LDAPModA { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for ldapmodA {} -impl ::core::default::Default for ldapmodA { +impl ::core::cmp::Eq for LDAPModA {} +impl ::core::default::Default for LDAPModA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub union ldapmodA_0 { +pub union LDAPModA_0 { pub modv_strvals: *mut ::windows::core::PSTR, pub modv_bvals: *mut *mut LDAP_BERVAL, } -impl ::core::marker::Copy for ldapmodA_0 {} -impl ::core::clone::Clone for ldapmodA_0 { +impl ::core::marker::Copy for LDAPModA_0 {} +impl ::core::clone::Clone for LDAPModA_0 { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for ldapmodA_0 { +unsafe impl ::windows::core::Abi for LDAPModA_0 { type Abi = Self; } -impl ::core::cmp::PartialEq for ldapmodA_0 { +impl ::core::cmp::PartialEq for LDAPModA_0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for ldapmodA_0 {} -impl ::core::default::Default for ldapmodA_0 { +impl ::core::cmp::Eq for LDAPModA_0 {} +impl ::core::default::Default for LDAPModA_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldapmodW { +pub struct LDAPModW { pub mod_op: u32, pub mod_type: ::windows::core::PWSTR, - pub mod_vals: ldapmodW_0, + pub mod_vals: LDAPModW_0, } -impl ::core::marker::Copy for ldapmodW {} -impl ::core::clone::Clone for ldapmodW { +impl ::core::marker::Copy for LDAPModW {} +impl ::core::clone::Clone for LDAPModW { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for ldapmodW { +unsafe impl ::windows::core::Abi for LDAPModW { type Abi = Self; } -impl ::core::cmp::PartialEq for ldapmodW { +impl ::core::cmp::PartialEq for LDAPModW { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for ldapmodW {} -impl ::core::default::Default for ldapmodW { +impl ::core::cmp::Eq for LDAPModW {} +impl ::core::default::Default for LDAPModW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub union ldapmodW_0 { +pub union LDAPModW_0 { pub modv_strvals: *mut ::windows::core::PWSTR, pub modv_bvals: *mut *mut LDAP_BERVAL, } -impl ::core::marker::Copy for ldapmodW_0 {} -impl ::core::clone::Clone for ldapmodW_0 { +impl ::core::marker::Copy for LDAPModW_0 {} +impl ::core::clone::Clone for LDAPModW_0 { fn clone(&self) -> Self { *self } } -unsafe impl ::windows::core::Abi for ldapmodW_0 { +unsafe impl ::windows::core::Abi for LDAPModW_0 { type Abi = Self; } -impl ::core::cmp::PartialEq for ldapmodW_0 { +impl ::core::cmp::PartialEq for LDAPModW_0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for ldapmodW_0 {} -impl ::core::default::Default for ldapmodW_0 { +impl ::core::cmp::Eq for LDAPModW_0 {} +impl ::core::default::Default for LDAPModW_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -pub struct ldapsearch(pub u8); +pub struct LDAPSearch(pub u8); #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct ldapsortkeyA { +pub struct LDAPSortKeyA { pub sk_attrtype: ::windows::core::PSTR, pub sk_matchruleoid: ::windows::core::PSTR, pub sk_reverseorder: super::super::Foundation::BOOLEAN, } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ldapsortkeyA {} +impl ::core::marker::Copy for LDAPSortKeyA {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ldapsortkeyA { +impl ::core::clone::Clone for LDAPSortKeyA { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for ldapsortkeyA { +impl ::core::fmt::Debug for LDAPSortKeyA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ldapsortkeyA").field("sk_attrtype", &self.sk_attrtype).field("sk_matchruleoid", &self.sk_matchruleoid).field("sk_reverseorder", &self.sk_reverseorder).finish() + f.debug_struct("LDAPSortKeyA").field("sk_attrtype", &self.sk_attrtype).field("sk_matchruleoid", &self.sk_matchruleoid).field("sk_reverseorder", &self.sk_reverseorder).finish() } } #[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for ldapsortkeyA { +unsafe impl ::windows::core::Abi for LDAPSortKeyA { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for ldapsortkeyA { +impl ::core::cmp::PartialEq for LDAPSortKeyA { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for ldapsortkeyA {} +impl ::core::cmp::Eq for LDAPSortKeyA {} #[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for ldapsortkeyA { +impl ::core::default::Default for LDAPSortKeyA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -4318,46 +4183,46 @@ impl ::core::default::Default for ldapsortkeyA { #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct ldapsortkeyW { +pub struct LDAPSortKeyW { pub sk_attrtype: ::windows::core::PWSTR, pub sk_matchruleoid: ::windows::core::PWSTR, pub sk_reverseorder: super::super::Foundation::BOOLEAN, } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ldapsortkeyW {} +impl ::core::marker::Copy for LDAPSortKeyW {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ldapsortkeyW { +impl ::core::clone::Clone for LDAPSortKeyW { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for ldapsortkeyW { +impl ::core::fmt::Debug for LDAPSortKeyW { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ldapsortkeyW").field("sk_attrtype", &self.sk_attrtype).field("sk_matchruleoid", &self.sk_matchruleoid).field("sk_reverseorder", &self.sk_reverseorder).finish() + f.debug_struct("LDAPSortKeyW").field("sk_attrtype", &self.sk_attrtype).field("sk_matchruleoid", &self.sk_matchruleoid).field("sk_reverseorder", &self.sk_reverseorder).finish() } } #[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for ldapsortkeyW { +unsafe impl ::windows::core::Abi for LDAPSortKeyW { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for ldapsortkeyW { +impl ::core::cmp::PartialEq for LDAPSortKeyW { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for ldapsortkeyW {} +impl ::core::cmp::Eq for LDAPSortKeyW {} #[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for ldapsortkeyW { +impl ::core::default::Default for LDAPSortKeyW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub struct ldapvlvinfo { +pub struct LDAPVLVInfo { pub ldvlv_version: i32, pub ldvlv_before_count: u32, pub ldvlv_after_count: u32, @@ -4367,27 +4232,162 @@ pub struct ldapvlvinfo { pub ldvlv_context: *mut LDAP_BERVAL, pub ldvlv_extradata: *mut ::core::ffi::c_void, } -impl ::core::marker::Copy for ldapvlvinfo {} -impl ::core::clone::Clone for ldapvlvinfo { +impl ::core::marker::Copy for LDAPVLVInfo {} +impl ::core::clone::Clone for LDAPVLVInfo { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for LDAPVLVInfo { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("LDAPVLVInfo").field("ldvlv_version", &self.ldvlv_version).field("ldvlv_before_count", &self.ldvlv_before_count).field("ldvlv_after_count", &self.ldvlv_after_count).field("ldvlv_offset", &self.ldvlv_offset).field("ldvlv_count", &self.ldvlv_count).field("ldvlv_attrvalue", &self.ldvlv_attrvalue).field("ldvlv_context", &self.ldvlv_context).field("ldvlv_extradata", &self.ldvlv_extradata).finish() + } +} +unsafe impl ::windows::core::Abi for LDAPVLVInfo { + type Abi = Self; +} +impl ::core::cmp::PartialEq for LDAPVLVInfo { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for LDAPVLVInfo {} +impl ::core::default::Default for LDAPVLVInfo { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] +pub struct LDAP_BERVAL { + pub bv_len: u32, + pub bv_val: ::windows::core::PSTR, +} +impl ::core::marker::Copy for LDAP_BERVAL {} +impl ::core::clone::Clone for LDAP_BERVAL { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for LDAP_BERVAL { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("LDAP_BERVAL").field("bv_len", &self.bv_len).field("bv_val", &self.bv_val).finish() + } +} +unsafe impl ::windows::core::Abi for LDAP_BERVAL { + type Abi = Self; +} +impl ::core::cmp::PartialEq for LDAP_BERVAL { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for LDAP_BERVAL {} +impl ::core::default::Default for LDAP_BERVAL { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct LDAP_REFERRAL_CALLBACK { + pub SizeOfCallbacks: u32, + pub QueryForConnection: QUERYFORCONNECTION, + pub NotifyRoutine: NOTIFYOFNEWCONNECTION, + pub DereferenceRoutine: DEREFERENCECONNECTION, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for LDAP_REFERRAL_CALLBACK {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for LDAP_REFERRAL_CALLBACK { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for LDAP_REFERRAL_CALLBACK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("LDAP_REFERRAL_CALLBACK").field("SizeOfCallbacks", &self.SizeOfCallbacks).field("QueryForConnection", &self.QueryForConnection.map(|f| f as usize)).field("NotifyRoutine", &self.NotifyRoutine.map(|f| f as usize)).field("DereferenceRoutine", &self.DereferenceRoutine.map(|f| f as usize)).finish() + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for LDAP_REFERRAL_CALLBACK { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for LDAP_REFERRAL_CALLBACK { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for LDAP_REFERRAL_CALLBACK {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for LDAP_REFERRAL_CALLBACK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] +pub struct LDAP_TIMEVAL { + pub tv_sec: i32, + pub tv_usec: i32, +} +impl ::core::marker::Copy for LDAP_TIMEVAL {} +impl ::core::clone::Clone for LDAP_TIMEVAL { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for LDAP_TIMEVAL { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("LDAP_TIMEVAL").field("tv_sec", &self.tv_sec).field("tv_usec", &self.tv_usec).finish() + } +} +unsafe impl ::windows::core::Abi for LDAP_TIMEVAL { + type Abi = Self; +} +impl ::core::cmp::PartialEq for LDAP_TIMEVAL { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for LDAP_TIMEVAL {} +impl ::core::default::Default for LDAP_TIMEVAL { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] +pub struct LDAP_VERSION_INFO { + pub lv_size: u32, + pub lv_major: u32, + pub lv_minor: u32, +} +impl ::core::marker::Copy for LDAP_VERSION_INFO {} +impl ::core::clone::Clone for LDAP_VERSION_INFO { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for ldapvlvinfo { +impl ::core::fmt::Debug for LDAP_VERSION_INFO { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ldapvlvinfo").field("ldvlv_version", &self.ldvlv_version).field("ldvlv_before_count", &self.ldvlv_before_count).field("ldvlv_after_count", &self.ldvlv_after_count).field("ldvlv_offset", &self.ldvlv_offset).field("ldvlv_count", &self.ldvlv_count).field("ldvlv_attrvalue", &self.ldvlv_attrvalue).field("ldvlv_context", &self.ldvlv_context).field("ldvlv_extradata", &self.ldvlv_extradata).finish() + f.debug_struct("LDAP_VERSION_INFO").field("lv_size", &self.lv_size).field("lv_major", &self.lv_major).field("lv_minor", &self.lv_minor).finish() } } -unsafe impl ::windows::core::Abi for ldapvlvinfo { +unsafe impl ::windows::core::Abi for LDAP_VERSION_INFO { type Abi = Self; } -impl ::core::cmp::PartialEq for ldapvlvinfo { +impl ::core::cmp::PartialEq for LDAP_VERSION_INFO { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for ldapvlvinfo {} -impl ::core::default::Default for ldapvlvinfo { +impl ::core::cmp::Eq for LDAP_VERSION_INFO {} +impl ::core::default::Default for LDAP_VERSION_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -4395,17 +4395,17 @@ impl ::core::default::Default for ldapvlvinfo { #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] pub type DBGPRINT = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub type DEREFERENCECONNECTION = ::core::option::Option u32>; +pub type DEREFERENCECONNECTION = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type NOTIFYOFNEWCONNECTION = ::core::option::Option super::super::Foundation::BOOLEAN>; +pub type NOTIFYOFNEWCONNECTION = ::core::option::Option super::super::Foundation::BOOLEAN>; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Security_Cryptography\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Authentication_Identity", feature = "Win32_Security_Cryptography"))] -pub type QUERYCLIENTCERT = ::core::option::Option super::super::Foundation::BOOLEAN>; +pub type QUERYCLIENTCERT = ::core::option::Option super::super::Foundation::BOOLEAN>; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`*"] -pub type QUERYFORCONNECTION = ::core::option::Option u32>; +pub type QUERYFORCONNECTION = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_Networking_Ldap\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] -pub type VERIFYSERVERCERT = ::core::option::Option super::super::Foundation::BOOLEAN>; +pub type VERIFYSERVERCERT = ::core::option::Option super::super::Foundation::BOOLEAN>; #[cfg(feature = "implement")] ::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs index 9525d17e2e..9f095cf911 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs @@ -2718,6 +2718,36 @@ impl ::core::default::Default for WINHTTP_PROXY_INFO { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinHttp\"`*"] +pub struct WINHTTP_PROXY_NETWORKING_KEY { + pub pbBuffer: [u8; 128], +} +impl ::core::marker::Copy for WINHTTP_PROXY_NETWORKING_KEY {} +impl ::core::clone::Clone for WINHTTP_PROXY_NETWORKING_KEY { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for WINHTTP_PROXY_NETWORKING_KEY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("WINHTTP_PROXY_NETWORKING_KEY").field("pbBuffer", &self.pbBuffer).finish() + } +} +unsafe impl ::windows::core::Abi for WINHTTP_PROXY_NETWORKING_KEY { + type Abi = Self; +} +impl ::core::cmp::PartialEq for WINHTTP_PROXY_NETWORKING_KEY { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for WINHTTP_PROXY_NETWORKING_KEY {} +impl ::core::default::Default for WINHTTP_PROXY_NETWORKING_KEY { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinHttp\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct WINHTTP_PROXY_RESULT { @@ -2858,7 +2888,7 @@ pub struct WINHTTP_PROXY_SETTINGS { pub dwDetectedInterfaceIpCount: u32, pub pdwDetectedInterfaceIp: *mut u32, pub cNetworkKeys: u32, - pub pNetworkKeys: *mut _WinHttpProxyNetworkKey, + pub pNetworkKeys: *mut WINHTTP_PROXY_NETWORKING_KEY, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for WINHTTP_PROXY_SETTINGS {} @@ -3212,36 +3242,6 @@ impl ::core::default::Default for WINHTTP_WEB_SOCKET_STATUS { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinHttp\"`*"] -pub struct _WinHttpProxyNetworkKey { - pub pbBuffer: [u8; 128], -} -impl ::core::marker::Copy for _WinHttpProxyNetworkKey {} -impl ::core::clone::Clone for _WinHttpProxyNetworkKey { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _WinHttpProxyNetworkKey { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_WinHttpProxyNetworkKey").field("pbBuffer", &self.pbBuffer).finish() - } -} -unsafe impl ::windows::core::Abi for _WinHttpProxyNetworkKey { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _WinHttpProxyNetworkKey { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_WinHttpProxyNetworkKey>()) == 0 } - } -} -impl ::core::cmp::Eq for _WinHttpProxyNetworkKey {} -impl ::core::default::Default for _WinHttpProxyNetworkKey { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_Networking_WinHttp\"`*"] pub type WINHTTP_STATUS_CALLBACK = ::core::option::Option; #[cfg(feature = "implement")] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs index 5031019132..ceac4585b5 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs @@ -1,54 +1,3 @@ -#[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn DoConnectoidsExist() -> super::super::Foundation::BOOL { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DoConnectoidsExist() -> super::super::Foundation::BOOL; - } - DoConnectoidsExist() -} -#[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn IsProfilesEnabled() -> super::super::Foundation::BOOL { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn IsProfilesEnabled() -> super::super::Foundation::BOOL; - } - IsProfilesEnabled() -} -#[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn PerformOperationOverUrlCacheA<'a, P0>(pszurlsearchpattern: P0, dwflags: u32, dwfilter: u32, groupid: i64, preserved1: *mut ::core::ffi::c_void, pdwreserved2: &mut u32, preserved3: *mut ::core::ffi::c_void, op: CACHE_OPERATOR, poperatordata: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into<::windows::core::PCSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn PerformOperationOverUrlCacheA(pszurlsearchpattern: ::windows::core::PCSTR, dwflags: u32, dwfilter: u32, groupid: i64, preserved1: *mut ::core::ffi::c_void, pdwreserved2: *mut u32, preserved3: *mut ::core::ffi::c_void, op: *mut ::core::ffi::c_void, poperatordata: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; - } - PerformOperationOverUrlCacheA(pszurlsearchpattern.into(), dwflags, dwfilter, groupid, ::core::mem::transmute(preserved1), ::core::mem::transmute(pdwreserved2), ::core::mem::transmute(preserved3), ::core::mem::transmute(op), ::core::mem::transmute(poperatordata)) -} -#[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] -#[inline] -pub unsafe fn UrlCacheFreeGlobalSpace(ulltargetsize: u64, dwfilter: u32) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn UrlCacheFreeGlobalSpace(ulltargetsize: u64, dwfilter: u32) -> u32; - } - UrlCacheFreeGlobalSpace(ulltargetsize, dwfilter) -} -#[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] -#[inline] -pub unsafe fn UrlCacheGetGlobalCacheSize(dwfilter: u32, pullsize: &mut u64, pulllimit: &mut u64) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn UrlCacheGetGlobalCacheSize(dwfilter: u32, pullsize: *mut u64, pulllimit: *mut u64) -> u32; - } - UrlCacheGetGlobalCacheSize(dwfilter, ::core::mem::transmute(pullsize), ::core::mem::transmute(pulllimit)) -} #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] #[inline] pub unsafe fn AppCacheCheckManifest<'a, P0, P1>(pwszmasterurl: P0, pwszmanifesturl: P1, pbmanifestdata: &[u8], pbmanifestresponseheaders: &[u8], pestate: &mut APP_CACHE_STATE, phnewappcache: *mut *mut ::core::ffi::c_void) -> u32 @@ -492,6 +441,16 @@ pub unsafe fn DetectAutoProxyUrl(pszautoproxyurl: &mut [u8], dwdetectflags: PROX #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn DoConnectoidsExist() -> super::super::Foundation::BOOL { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DoConnectoidsExist() -> super::super::Foundation::BOOL; + } + DoConnectoidsExist() +} +#[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn ExportCookieFileA<'a, P0, P1>(szfilename: P0, fappend: P1) -> super::super::Foundation::BOOL where P0: ::std::convert::Into<::windows::core::PCSTR>, @@ -2945,6 +2904,16 @@ pub unsafe fn IsHostInProxyBypassList(tscheme: INTERNET_SCHEME, lpszhost: &[u8]) #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn IsProfilesEnabled() -> super::super::Foundation::BOOL { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn IsProfilesEnabled() -> super::super::Foundation::BOOL; + } + IsProfilesEnabled() +} +#[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn IsUrlCacheEntryExpiredA<'a, P0>(lpszurlname: P0, dwflags: u32, pftlastmodified: &mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL where P0: ::std::convert::Into<::windows::core::PCSTR>, @@ -2987,6 +2956,19 @@ pub unsafe fn ParseX509EncodedCertificateForListBoxEntry(lpcert: &[u8], lpszlist } ParseX509EncodedCertificateForListBoxEntry(::core::mem::transmute(lpcert.as_ptr()), lpcert.len() as _, ::core::mem::transmute(lpszlistboxentry), ::core::mem::transmute(lpdwlistboxentry)) } +#[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn PerformOperationOverUrlCacheA<'a, P0>(pszurlsearchpattern: P0, dwflags: u32, dwfilter: u32, groupid: i64, preserved1: *mut ::core::ffi::c_void, pdwreserved2: &mut u32, preserved3: *mut ::core::ffi::c_void, op: CACHE_OPERATOR, poperatordata: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into<::windows::core::PCSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn PerformOperationOverUrlCacheA(pszurlsearchpattern: ::windows::core::PCSTR, dwflags: u32, dwfilter: u32, groupid: i64, preserved1: *mut ::core::ffi::c_void, pdwreserved2: *mut u32, preserved3: *mut ::core::ffi::c_void, op: *mut ::core::ffi::c_void, poperatordata: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL; + } + PerformOperationOverUrlCacheA(pszurlsearchpattern.into(), dwflags, dwfilter, groupid, ::core::mem::transmute(preserved1), ::core::mem::transmute(pdwreserved2), ::core::mem::transmute(preserved3), ::core::mem::transmute(op), ::core::mem::transmute(poperatordata)) +} #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] #[inline] pub unsafe fn PrivacyGetZonePreferenceW(dwzone: u32, dwtype: u32, pdwtemplate: ::core::option::Option<&mut u32>, pszbuffer: ::windows::core::PWSTR, pdwbufferlength: ::core::option::Option<&mut u32>) -> u32 { @@ -3440,6 +3422,15 @@ pub unsafe fn UrlCacheFreeEntryInfo(pcacheentryinfo: &mut URLCACHE_ENTRY_INFO) { } #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] #[inline] +pub unsafe fn UrlCacheFreeGlobalSpace(ulltargetsize: u64, dwfilter: u32) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn UrlCacheFreeGlobalSpace(ulltargetsize: u64, dwfilter: u32) -> u32; + } + UrlCacheFreeGlobalSpace(ulltargetsize, dwfilter) +} +#[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] +#[inline] pub unsafe fn UrlCacheGetContentPaths(pppwszdirectories: &mut *mut ::windows::core::PWSTR, pcdirectories: &mut u32) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -3462,6 +3453,15 @@ where } #[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] #[inline] +pub unsafe fn UrlCacheGetGlobalCacheSize(dwfilter: u32, pullsize: &mut u64, pulllimit: &mut u64) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn UrlCacheGetGlobalCacheSize(dwfilter: u32, pullsize: *mut u64, pulllimit: *mut u64) -> u32; + } + UrlCacheGetGlobalCacheSize(dwfilter, ::core::mem::transmute(pullsize), ::core::mem::transmute(pulllimit)) +} +#[doc = "*Required features: `\"Win32_Networking_WinInet\"`*"] +#[inline] pub unsafe fn UrlCacheGetGlobalLimit(limittype: URL_CACHE_LIMIT_TYPE, pulllimit: &mut u64) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { 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 31682494da..57224dd356 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs @@ -73,14 +73,14 @@ pub unsafe fn GetAcceptExSockaddrs(lpoutputbuffer: *const ::core::ffi::c_void, d #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] #[inline] -pub unsafe fn GetAddrInfoExA<'a, P0, P1>(pname: P0, pservicename: P1, dwnamespace: u32, lpnspid: ::core::option::Option<&::windows::core::GUID>, hints: ::core::option::Option<&ADDRINFOEXA>, ppresult: &mut *mut ADDRINFOEXA, timeout: ::core::option::Option<&timeval>, lpoverlapped: ::core::option::Option<&super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: ::core::option::Option<&mut super::super::Foundation::HANDLE>) -> i32 +pub unsafe fn GetAddrInfoExA<'a, P0, P1>(pname: P0, pservicename: P1, dwnamespace: u32, lpnspid: ::core::option::Option<&::windows::core::GUID>, hints: ::core::option::Option<&ADDRINFOEXA>, ppresult: &mut *mut ADDRINFOEXA, timeout: ::core::option::Option<&TIMEVAL>, lpoverlapped: ::core::option::Option<&super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: ::core::option::Option<&mut super::super::Foundation::HANDLE>) -> i32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn GetAddrInfoExA(pname: ::windows::core::PCSTR, pservicename: ::windows::core::PCSTR, dwnamespace: u32, lpnspid: *const ::windows::core::GUID, hints: *const ADDRINFOEXA, ppresult: *mut *mut ADDRINFOEXA, timeout: *const timeval, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: *mut ::core::ffi::c_void, lpnamehandle: *mut super::super::Foundation::HANDLE) -> i32; + fn GetAddrInfoExA(pname: ::windows::core::PCSTR, pservicename: ::windows::core::PCSTR, dwnamespace: u32, lpnspid: *const ::windows::core::GUID, hints: *const ADDRINFOEXA, ppresult: *mut *mut ADDRINFOEXA, timeout: *const TIMEVAL, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: *mut ::core::ffi::c_void, lpnamehandle: *mut super::super::Foundation::HANDLE) -> i32; } GetAddrInfoExA(pname.into(), pservicename.into(), dwnamespace, ::core::mem::transmute(lpnspid), ::core::mem::transmute(hints), ::core::mem::transmute(ppresult), ::core::mem::transmute(timeout), ::core::mem::transmute(lpoverlapped), ::core::mem::transmute(lpcompletionroutine), ::core::mem::transmute(lpnamehandle)) } @@ -107,14 +107,14 @@ pub unsafe fn GetAddrInfoExOverlappedResult(lpoverlapped: &super::super::System: #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] #[inline] -pub unsafe fn GetAddrInfoExW<'a, P0, P1>(pname: P0, pservicename: P1, dwnamespace: u32, lpnspid: ::core::option::Option<&::windows::core::GUID>, hints: ::core::option::Option<&ADDRINFOEXW>, ppresult: &mut *mut ADDRINFOEXW, timeout: ::core::option::Option<&timeval>, lpoverlapped: ::core::option::Option<&super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lphandle: ::core::option::Option<&mut super::super::Foundation::HANDLE>) -> i32 +pub unsafe fn GetAddrInfoExW<'a, P0, P1>(pname: P0, pservicename: P1, dwnamespace: u32, lpnspid: ::core::option::Option<&::windows::core::GUID>, hints: ::core::option::Option<&ADDRINFOEXW>, ppresult: &mut *mut ADDRINFOEXW, timeout: ::core::option::Option<&TIMEVAL>, lpoverlapped: ::core::option::Option<&super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lphandle: ::core::option::Option<&mut super::super::Foundation::HANDLE>) -> i32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn GetAddrInfoExW(pname: ::windows::core::PCWSTR, pservicename: ::windows::core::PCWSTR, dwnamespace: u32, lpnspid: *const ::windows::core::GUID, hints: *const ADDRINFOEXW, ppresult: *mut *mut ADDRINFOEXW, timeout: *const timeval, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: *mut ::core::ffi::c_void, lphandle: *mut super::super::Foundation::HANDLE) -> i32; + fn GetAddrInfoExW(pname: ::windows::core::PCWSTR, pservicename: ::windows::core::PCWSTR, dwnamespace: u32, lpnspid: *const ::windows::core::GUID, hints: *const ADDRINFOEXW, ppresult: *mut *mut ADDRINFOEXW, timeout: *const TIMEVAL, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: *mut ::core::ffi::c_void, lphandle: *mut super::super::Foundation::HANDLE) -> i32; } GetAddrInfoExW(pname.into(), pservicename.into(), dwnamespace, ::core::mem::transmute(lpnspid), ::core::mem::transmute(hints), ::core::mem::transmute(ppresult), ::core::mem::transmute(timeout), ::core::mem::transmute(lpoverlapped), ::core::mem::transmute(lpcompletionroutine), ::core::mem::transmute(lphandle)) } @@ -500,28 +500,28 @@ where #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_IO"))] #[inline] -pub unsafe fn SetAddrInfoExA<'a, P0, P1>(pname: P0, pservicename: P1, paddresses: ::core::option::Option<&SOCKET_ADDRESS>, dwaddresscount: u32, lpblob: ::core::option::Option<&super::super::System::Com::BLOB>, dwflags: u32, dwnamespace: u32, lpnspid: ::core::option::Option<&::windows::core::GUID>, timeout: ::core::option::Option<&timeval>, lpoverlapped: ::core::option::Option<&super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: ::core::option::Option<&mut super::super::Foundation::HANDLE>) -> i32 +pub unsafe fn SetAddrInfoExA<'a, P0, P1>(pname: P0, pservicename: P1, paddresses: ::core::option::Option<&SOCKET_ADDRESS>, dwaddresscount: u32, lpblob: ::core::option::Option<&super::super::System::Com::BLOB>, dwflags: u32, dwnamespace: u32, lpnspid: ::core::option::Option<&::windows::core::GUID>, timeout: ::core::option::Option<&TIMEVAL>, lpoverlapped: ::core::option::Option<&super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: ::core::option::Option<&mut super::super::Foundation::HANDLE>) -> i32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn SetAddrInfoExA(pname: ::windows::core::PCSTR, pservicename: ::windows::core::PCSTR, paddresses: *const SOCKET_ADDRESS, dwaddresscount: u32, lpblob: *const super::super::System::Com::BLOB, dwflags: u32, dwnamespace: u32, lpnspid: *const ::windows::core::GUID, timeout: *const timeval, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: *mut ::core::ffi::c_void, lpnamehandle: *mut super::super::Foundation::HANDLE) -> i32; + fn SetAddrInfoExA(pname: ::windows::core::PCSTR, pservicename: ::windows::core::PCSTR, paddresses: *const SOCKET_ADDRESS, dwaddresscount: u32, lpblob: *const super::super::System::Com::BLOB, dwflags: u32, dwnamespace: u32, lpnspid: *const ::windows::core::GUID, timeout: *const TIMEVAL, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: *mut ::core::ffi::c_void, lpnamehandle: *mut super::super::Foundation::HANDLE) -> i32; } SetAddrInfoExA(pname.into(), pservicename.into(), ::core::mem::transmute(paddresses), dwaddresscount, ::core::mem::transmute(lpblob), dwflags, dwnamespace, ::core::mem::transmute(lpnspid), ::core::mem::transmute(timeout), ::core::mem::transmute(lpoverlapped), ::core::mem::transmute(lpcompletionroutine), ::core::mem::transmute(lpnamehandle)) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_IO"))] #[inline] -pub unsafe fn SetAddrInfoExW<'a, P0, P1>(pname: P0, pservicename: P1, paddresses: ::core::option::Option<&SOCKET_ADDRESS>, dwaddresscount: u32, lpblob: ::core::option::Option<&super::super::System::Com::BLOB>, dwflags: u32, dwnamespace: u32, lpnspid: ::core::option::Option<&::windows::core::GUID>, timeout: ::core::option::Option<&timeval>, lpoverlapped: ::core::option::Option<&super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: ::core::option::Option<&mut super::super::Foundation::HANDLE>) -> i32 +pub unsafe fn SetAddrInfoExW<'a, P0, P1>(pname: P0, pservicename: P1, paddresses: ::core::option::Option<&SOCKET_ADDRESS>, dwaddresscount: u32, lpblob: ::core::option::Option<&super::super::System::Com::BLOB>, dwflags: u32, dwnamespace: u32, lpnspid: ::core::option::Option<&::windows::core::GUID>, timeout: ::core::option::Option<&TIMEVAL>, lpoverlapped: ::core::option::Option<&super::super::System::IO::OVERLAPPED>, lpcompletionroutine: LPLOOKUPSERVICE_COMPLETION_ROUTINE, lpnamehandle: ::core::option::Option<&mut super::super::Foundation::HANDLE>) -> i32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn SetAddrInfoExW(pname: ::windows::core::PCWSTR, pservicename: ::windows::core::PCWSTR, paddresses: *const SOCKET_ADDRESS, dwaddresscount: u32, lpblob: *const super::super::System::Com::BLOB, dwflags: u32, dwnamespace: u32, lpnspid: *const ::windows::core::GUID, timeout: *const timeval, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: *mut ::core::ffi::c_void, lpnamehandle: *mut super::super::Foundation::HANDLE) -> i32; + fn SetAddrInfoExW(pname: ::windows::core::PCWSTR, pservicename: ::windows::core::PCWSTR, paddresses: *const SOCKET_ADDRESS, dwaddresscount: u32, lpblob: *const super::super::System::Com::BLOB, dwflags: u32, dwnamespace: u32, lpnspid: *const ::windows::core::GUID, timeout: *const TIMEVAL, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcompletionroutine: *mut ::core::ffi::c_void, lpnamehandle: *mut super::super::Foundation::HANDLE) -> i32; } SetAddrInfoExW(pname.into(), pservicename.into(), ::core::mem::transmute(paddresses), dwaddresscount, ::core::mem::transmute(lpblob), dwflags, dwnamespace, ::core::mem::transmute(lpnspid), ::core::mem::transmute(timeout), ::core::mem::transmute(lpoverlapped), ::core::mem::transmute(lpcompletionroutine), ::core::mem::transmute(lpnamehandle)) } @@ -785,20 +785,20 @@ where #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] #[inline] -pub unsafe fn WSAConnectByList<'a, P0>(s: P0, socketaddress: &SOCKET_ADDRESS_LIST, localaddresslength: ::core::option::Option<&mut u32>, localaddress: *mut SOCKADDR, remoteaddresslength: ::core::option::Option<&mut u32>, remoteaddress: *mut SOCKADDR, timeout: ::core::option::Option<&timeval>, reserved: &mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL +pub unsafe fn WSAConnectByList<'a, P0>(s: P0, socketaddress: &SOCKET_ADDRESS_LIST, localaddresslength: ::core::option::Option<&mut u32>, localaddress: *mut SOCKADDR, remoteaddresslength: ::core::option::Option<&mut u32>, remoteaddress: *mut SOCKADDR, timeout: ::core::option::Option<&TIMEVAL>, reserved: &mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn WSAConnectByList(s: SOCKET, socketaddress: *const SOCKET_ADDRESS_LIST, localaddresslength: *mut u32, localaddress: *mut SOCKADDR, remoteaddresslength: *mut u32, remoteaddress: *mut SOCKADDR, timeout: *const timeval, reserved: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL; + fn WSAConnectByList(s: SOCKET, socketaddress: *const SOCKET_ADDRESS_LIST, localaddresslength: *mut u32, localaddress: *mut SOCKADDR, remoteaddresslength: *mut u32, remoteaddress: *mut SOCKADDR, timeout: *const TIMEVAL, reserved: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL; } WSAConnectByList(s.into(), ::core::mem::transmute(socketaddress), ::core::mem::transmute(localaddresslength), ::core::mem::transmute(localaddress), ::core::mem::transmute(remoteaddresslength), ::core::mem::transmute(remoteaddress), ::core::mem::transmute(timeout), ::core::mem::transmute(reserved)) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] #[inline] -pub unsafe fn WSAConnectByNameA<'a, P0, P1, P2>(s: P0, nodename: P1, servicename: P2, localaddresslength: ::core::option::Option<&mut u32>, localaddress: *mut SOCKADDR, remoteaddresslength: ::core::option::Option<&mut u32>, remoteaddress: *mut SOCKADDR, timeout: ::core::option::Option<&timeval>, reserved: &mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL +pub unsafe fn WSAConnectByNameA<'a, P0, P1, P2>(s: P0, nodename: P1, servicename: P2, localaddresslength: ::core::option::Option<&mut u32>, localaddress: *mut SOCKADDR, remoteaddresslength: ::core::option::Option<&mut u32>, remoteaddress: *mut SOCKADDR, timeout: ::core::option::Option<&TIMEVAL>, reserved: &mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::PCSTR>, @@ -806,14 +806,14 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn WSAConnectByNameA(s: SOCKET, nodename: ::windows::core::PCSTR, servicename: ::windows::core::PCSTR, localaddresslength: *mut u32, localaddress: *mut SOCKADDR, remoteaddresslength: *mut u32, remoteaddress: *mut SOCKADDR, timeout: *const timeval, reserved: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL; + fn WSAConnectByNameA(s: SOCKET, nodename: ::windows::core::PCSTR, servicename: ::windows::core::PCSTR, localaddresslength: *mut u32, localaddress: *mut SOCKADDR, remoteaddresslength: *mut u32, remoteaddress: *mut SOCKADDR, timeout: *const TIMEVAL, reserved: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL; } WSAConnectByNameA(s.into(), nodename.into(), servicename.into(), ::core::mem::transmute(localaddresslength), ::core::mem::transmute(localaddress), ::core::mem::transmute(remoteaddresslength), ::core::mem::transmute(remoteaddress), ::core::mem::transmute(timeout), ::core::mem::transmute(reserved)) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] #[inline] -pub unsafe fn WSAConnectByNameW<'a, P0, P1, P2>(s: P0, nodename: P1, servicename: P2, localaddresslength: ::core::option::Option<&mut u32>, localaddress: *mut SOCKADDR, remoteaddresslength: ::core::option::Option<&mut u32>, remoteaddress: *mut SOCKADDR, timeout: ::core::option::Option<&timeval>, reserved: &mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL +pub unsafe fn WSAConnectByNameW<'a, P0, P1, P2>(s: P0, nodename: P1, servicename: P2, localaddresslength: ::core::option::Option<&mut u32>, localaddress: *mut SOCKADDR, remoteaddresslength: ::core::option::Option<&mut u32>, remoteaddress: *mut SOCKADDR, timeout: ::core::option::Option<&TIMEVAL>, reserved: &mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::PCWSTR>, @@ -821,7 +821,7 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn WSAConnectByNameW(s: SOCKET, nodename: ::windows::core::PCWSTR, servicename: ::windows::core::PCWSTR, localaddresslength: *mut u32, localaddress: *mut SOCKADDR, remoteaddresslength: *mut u32, remoteaddress: *mut SOCKADDR, timeout: *const timeval, reserved: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL; + fn WSAConnectByNameW(s: SOCKET, nodename: ::windows::core::PCWSTR, servicename: ::windows::core::PCWSTR, localaddresslength: *mut u32, localaddress: *mut SOCKADDR, remoteaddresslength: *mut u32, remoteaddress: *mut SOCKADDR, timeout: *const TIMEVAL, reserved: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL; } WSAConnectByNameW(s.into(), nodename.into(), servicename.into(), ::core::mem::transmute(localaddresslength), ::core::mem::transmute(localaddress), ::core::mem::transmute(remoteaddresslength), ::core::mem::transmute(remoteaddress), ::core::mem::transmute(timeout), ::core::mem::transmute(reserved)) } @@ -1496,10 +1496,10 @@ pub unsafe fn WSASocketW(af: i32, r#type: i32, protocol: i32, lpprotocolinfo: :: #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn WSAStartup(wversionrequested: u16, lpwsadata: &mut WSAData) -> i32 { +pub unsafe fn WSAStartup(wversionrequested: u16, lpwsadata: &mut WSADATA) -> i32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn WSAStartup(wversionrequested: u16, lpwsadata: *mut WSAData) -> i32; + fn WSAStartup(wversionrequested: u16, lpwsadata: *mut WSADATA) -> i32; } WSAStartup(wversionrequested, ::core::mem::transmute(lpwsadata)) } @@ -1903,13 +1903,13 @@ pub unsafe fn WSCWriteProviderOrder32(lpwdcatalogentryid: &mut u32, dwnumberofen } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn __WSAFDIsSet<'a, P0>(fd: P0, param1: &mut fd_set) -> i32 +pub unsafe fn __WSAFDIsSet<'a, P0>(fd: P0, param1: &mut FD_SET) -> i32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn __WSAFDIsSet(fd: SOCKET, param1: *mut fd_set) -> i32; + fn __WSAFDIsSet(fd: SOCKET, param1: *mut FD_SET) -> i32; } __WSAFDIsSet(fd.into(), ::core::mem::transmute(param1)) } @@ -1990,22 +1990,22 @@ where } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn gethostbyaddr(addr: &[u8], r#type: i32) -> *mut hostent { +pub unsafe fn gethostbyaddr(addr: &[u8], r#type: i32) -> *mut HOSTENT { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn gethostbyaddr(addr: ::windows::core::PCSTR, len: i32, r#type: i32) -> *mut hostent; + fn gethostbyaddr(addr: ::windows::core::PCSTR, len: i32, r#type: i32) -> *mut HOSTENT; } gethostbyaddr(::core::mem::transmute(addr.as_ptr()), addr.len() as _, r#type) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn gethostbyname<'a, P0>(name: P0) -> *mut hostent +pub unsafe fn gethostbyname<'a, P0>(name: P0) -> *mut HOSTENT where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn gethostbyname(name: ::windows::core::PCSTR) -> *mut hostent; + fn gethostbyname(name: ::windows::core::PCSTR) -> *mut HOSTENT; } gethostbyname(name.into()) } @@ -2043,47 +2043,47 @@ where } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn getprotobyname<'a, P0>(name: P0) -> *mut protoent +pub unsafe fn getprotobyname<'a, P0>(name: P0) -> *mut PROTOENT where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn getprotobyname(name: ::windows::core::PCSTR) -> *mut protoent; + fn getprotobyname(name: ::windows::core::PCSTR) -> *mut PROTOENT; } getprotobyname(name.into()) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn getprotobynumber(number: i32) -> *mut protoent { +pub unsafe fn getprotobynumber(number: i32) -> *mut PROTOENT { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn getprotobynumber(number: i32) -> *mut protoent; + fn getprotobynumber(number: i32) -> *mut PROTOENT; } getprotobynumber(number) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn getservbyname<'a, P0, P1>(name: P0, proto: P1) -> *mut servent +pub unsafe fn getservbyname<'a, P0, P1>(name: P0, proto: P1) -> *mut SERVENT where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn getservbyname(name: ::windows::core::PCSTR, proto: ::windows::core::PCSTR) -> *mut servent; + fn getservbyname(name: ::windows::core::PCSTR, proto: ::windows::core::PCSTR) -> *mut SERVENT; } getservbyname(name.into(), proto.into()) } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn getservbyport<'a, P0>(port: i32, proto: P0) -> *mut servent +pub unsafe fn getservbyport<'a, P0>(port: i32, proto: P0) -> *mut SERVENT where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn getservbyport(port: i32, proto: ::windows::core::PCSTR) -> *mut servent; + fn getservbyport(port: i32, proto: ::windows::core::PCSTR) -> *mut SERVENT; } getservbyport(port, proto.into()) } @@ -2241,10 +2241,10 @@ where } #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] #[inline] -pub unsafe fn select(nfds: i32, readfds: ::core::option::Option<&mut fd_set>, writefds: ::core::option::Option<&mut fd_set>, exceptfds: ::core::option::Option<&mut fd_set>, timeout: ::core::option::Option<&timeval>) -> i32 { +pub unsafe fn select(nfds: i32, readfds: ::core::option::Option<&mut FD_SET>, writefds: ::core::option::Option<&mut FD_SET>, exceptfds: ::core::option::Option<&mut FD_SET>, timeout: ::core::option::Option<&TIMEVAL>) -> i32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn select(nfds: i32, readfds: *mut fd_set, writefds: *mut fd_set, exceptfds: *mut fd_set, timeout: *const timeval) -> i32; + fn select(nfds: i32, readfds: *mut FD_SET, writefds: *mut FD_SET, exceptfds: *mut FD_SET, timeout: *const TIMEVAL) -> i32; } select(nfds, ::core::mem::transmute(readfds), ::core::mem::transmute(writefds), ::core::mem::transmute(exceptfds), ::core::mem::transmute(timeout)) } @@ -7338,7 +7338,7 @@ pub struct ADDRINFOEX6 { pub ai_resolutionhandle: super::super::Foundation::HANDLE, pub ai_ttl: u32, pub ai_numservers: u32, - pub ai_servers: *mut addrinfo_dns_server, + pub ai_servers: *mut ADDRINFO_DNS_SERVER, pub ai_responseflags: u64, } #[cfg(feature = "Win32_Foundation")] @@ -7535,6 +7535,74 @@ impl ::core::default::Default for ADDRINFOW { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct ADDRINFO_DNS_SERVER { + pub ai_servertype: u32, + pub ai_flags: u64, + pub ai_addrlen: u32, + pub ai_addr: *mut SOCKADDR, + pub Anonymous: ADDRINFO_DNS_SERVER_0, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for ADDRINFO_DNS_SERVER {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for ADDRINFO_DNS_SERVER { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for ADDRINFO_DNS_SERVER { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for ADDRINFO_DNS_SERVER { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for ADDRINFO_DNS_SERVER {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for ADDRINFO_DNS_SERVER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub union ADDRINFO_DNS_SERVER_0 { + pub ai_template: ::windows::core::PWSTR, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for ADDRINFO_DNS_SERVER_0 {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for ADDRINFO_DNS_SERVER_0 { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for ADDRINFO_DNS_SERVER_0 { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for ADDRINFO_DNS_SERVER_0 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for ADDRINFO_DNS_SERVER_0 {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for ADDRINFO_DNS_SERVER_0 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct AFPROTOCOLS { pub iAddressFamily: i32, @@ -8088,6 +8156,38 @@ impl ::core::default::Default for ATM_TRANSIT_NETWORK_SELECTION_IE { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct CMSGHDR { + pub cmsg_len: usize, + pub cmsg_level: i32, + pub cmsg_type: i32, +} +impl ::core::marker::Copy for CMSGHDR {} +impl ::core::clone::Clone for CMSGHDR { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for CMSGHDR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("CMSGHDR").field("cmsg_len", &self.cmsg_len).field("cmsg_level", &self.cmsg_level).field("cmsg_type", &self.cmsg_type).finish() + } +} +unsafe impl ::windows::core::Abi for CMSGHDR { + type Abi = Self; +} +impl ::core::cmp::PartialEq for CMSGHDR { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for CMSGHDR {} +impl ::core::default::Default for CMSGHDR { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct CSADDR_INFO { @@ -8392,7 +8492,7 @@ impl ::core::default::Default for DL_OUI_0 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct DL_TEREDO_ADDRESS { pub Reserved: [u8; 6], @@ -8471,7 +8571,7 @@ impl ::core::default::Default for DL_TEREDO_ADDRESS_0_0 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct DL_TEREDO_ADDRESS_PRV { pub Reserved: [u8; 6], @@ -8643,6 +8743,37 @@ impl ::core::default::Default for ETHERNET_HEADER_0 { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct FD_SET { + pub fd_count: u32, + pub fd_array: [SOCKET; 64], +} +impl ::core::marker::Copy for FD_SET {} +impl ::core::clone::Clone for FD_SET { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for FD_SET { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FD_SET").field("fd_count", &self.fd_count).field("fd_array", &self.fd_array).finish() + } +} +unsafe impl ::windows::core::Abi for FD_SET { + type Abi = Self; +} +impl ::core::cmp::PartialEq for FD_SET { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for FD_SET {} +impl ::core::default::Default for FD_SET { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct FLOWSPEC { pub TokenRate: u32, pub TokenBucketSize: u32, @@ -8799,6 +8930,40 @@ impl ::core::default::Default for GROUP_SOURCE_REQ { unsafe { ::core::mem::zeroed() } } } +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct HOSTENT { + pub h_name: ::windows::core::PSTR, + pub h_aliases: *mut *mut i8, + pub h_addrtype: i16, + pub h_length: i16, + pub h_addr_list: *mut *mut i8, +} +impl ::core::marker::Copy for HOSTENT {} +impl ::core::clone::Clone for HOSTENT { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for HOSTENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("HOSTENT").field("h_name", &self.h_name).field("h_aliases", &self.h_aliases).field("h_addrtype", &self.h_addrtype).field("h_length", &self.h_length).field("h_addr_list", &self.h_addr_list).finish() + } +} +unsafe impl ::windows::core::Abi for HOSTENT { + type Abi = Self; +} +impl ::core::cmp::PartialEq for HOSTENT { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for HOSTENT {} +impl ::core::default::Default for HOSTENT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct HWSAEVENT(pub isize); @@ -11032,6 +11197,37 @@ impl ::core::default::Default for IP_MSFILTER { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct LINGER { + pub l_onoff: u16, + pub l_linger: u16, +} +impl ::core::marker::Copy for LINGER {} +impl ::core::clone::Clone for LINGER { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for LINGER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("LINGER").field("l_onoff", &self.l_onoff).field("l_linger", &self.l_linger).finish() + } +} +unsafe impl ::windows::core::Abi for LINGER { + type Abi = Self; +} +impl ::core::cmp::PartialEq for LINGER { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for LINGER {} +impl ::core::default::Default for LINGER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct LM_IRPARMS { pub nTXDataBytes: u32, pub nRXDataBytes: u32, @@ -11867,6 +12063,31 @@ impl ::core::default::Default for ND_ROUTER_ADVERT_HEADER { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct ND_ROUTER_SOLICIT_HEADER { + pub nd_rs_hdr: ICMP_MESSAGE, +} +impl ::core::marker::Copy for ND_ROUTER_SOLICIT_HEADER {} +impl ::core::clone::Clone for ND_ROUTER_SOLICIT_HEADER { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for ND_ROUTER_SOLICIT_HEADER { + type Abi = Self; +} +impl ::core::cmp::PartialEq for ND_ROUTER_SOLICIT_HEADER { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for ND_ROUTER_SOLICIT_HEADER {} +impl ::core::default::Default for ND_ROUTER_SOLICIT_HEADER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct NETRESOURCE2A { pub dwScope: u32, pub dwType: u32, @@ -12839,6 +13060,38 @@ impl ::core::default::Default for PROTOCOL_INFOW { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct PROTOENT { + pub p_name: ::windows::core::PSTR, + pub p_aliases: *mut *mut i8, + pub p_proto: i16, +} +impl ::core::marker::Copy for PROTOENT {} +impl ::core::clone::Clone for PROTOENT { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for PROTOENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("PROTOENT").field("p_name", &self.p_name).field("p_aliases", &self.p_aliases).field("p_proto", &self.p_proto).finish() + } +} +unsafe impl ::windows::core::Abi for PROTOENT { + type Abi = Self; +} +impl ::core::cmp::PartialEq for PROTOENT { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for PROTOENT {} +impl ::core::default::Default for PROTOENT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct Q2931_IE { pub IEType: Q2931_IE_TYPE, pub IELength: u32, @@ -13661,6 +13914,88 @@ impl ::core::default::Default for SCOPE_ID_0_0 { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub struct SERVENT { + pub s_name: ::windows::core::PSTR, + pub s_aliases: *mut *mut i8, + pub s_proto: ::windows::core::PSTR, + pub s_port: i16, +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::marker::Copy for SERVENT {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::clone::Clone for SERVENT { + fn clone(&self) -> Self { + *self + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::fmt::Debug for SERVENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SERVENT").field("s_name", &self.s_name).field("s_aliases", &self.s_aliases).field("s_proto", &self.s_proto).field("s_port", &self.s_port).finish() + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +unsafe impl ::windows::core::Abi for SERVENT { + type Abi = Self; +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::cmp::PartialEq for SERVENT { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::cmp::Eq for SERVENT {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::default::Default for SERVENT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +#[cfg(target_arch = "x86")] +pub struct SERVENT { + pub s_name: ::windows::core::PSTR, + pub s_aliases: *mut *mut i8, + pub s_port: i16, + pub s_proto: ::windows::core::PSTR, +} +#[cfg(target_arch = "x86")] +impl ::core::marker::Copy for SERVENT {} +#[cfg(target_arch = "x86")] +impl ::core::clone::Clone for SERVENT { + fn clone(&self) -> Self { + *self + } +} +#[cfg(target_arch = "x86")] +impl ::core::fmt::Debug for SERVENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SERVENT").field("s_name", &self.s_name).field("s_aliases", &self.s_aliases).field("s_port", &self.s_port).field("s_proto", &self.s_proto).finish() + } +} +#[cfg(target_arch = "x86")] +unsafe impl ::windows::core::Abi for SERVENT { + type Abi = Self; +} +#[cfg(target_arch = "x86")] +impl ::core::cmp::PartialEq for SERVENT { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(target_arch = "x86")] +impl ::core::cmp::Eq for SERVENT {} +#[cfg(target_arch = "x86")] +impl ::core::default::Default for SERVENT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct SERVICE_ADDRESS { pub dwAddressType: u32, pub dwAddressFlags: u32, @@ -14132,20 +14467,53 @@ impl ::core::default::Default for SOCKADDR { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct SOCKADDR_DL { - pub sdl_family: u16, - pub sdl_data: [u8; 8], - pub sdl_zero: [u8; 4], +pub struct SOCKADDR_ATM { + pub satm_family: u16, + pub satm_number: ATM_ADDRESS, + pub satm_blli: ATM_BLLI, + pub satm_bhli: ATM_BHLI, } -impl ::core::marker::Copy for SOCKADDR_DL {} -impl ::core::clone::Clone for SOCKADDR_DL { +impl ::core::marker::Copy for SOCKADDR_ATM {} +impl ::core::clone::Clone for SOCKADDR_ATM { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for SOCKADDR_DL { +impl ::core::fmt::Debug for SOCKADDR_ATM { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("SOCKADDR_DL").field("sdl_family", &self.sdl_family).field("sdl_data", &self.sdl_data).field("sdl_zero", &self.sdl_zero).finish() + f.debug_struct("SOCKADDR_ATM").field("satm_family", &self.satm_family).field("satm_number", &self.satm_number).field("satm_blli", &self.satm_blli).field("satm_bhli", &self.satm_bhli).finish() + } +} +unsafe impl ::windows::core::Abi for SOCKADDR_ATM { + type Abi = Self; +} +impl ::core::cmp::PartialEq for SOCKADDR_ATM { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for SOCKADDR_ATM {} +impl ::core::default::Default for SOCKADDR_ATM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct SOCKADDR_DL { + pub sdl_family: u16, + pub sdl_data: [u8; 8], + pub sdl_zero: [u8; 4], +} +impl ::core::marker::Copy for SOCKADDR_DL {} +impl ::core::clone::Clone for SOCKADDR_DL { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for SOCKADDR_DL { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SOCKADDR_DL").field("sdl_family", &self.sdl_family).field("sdl_data", &self.sdl_data).field("sdl_zero", &self.sdl_zero).finish() } } unsafe impl ::windows::core::Abi for SOCKADDR_DL { @@ -14384,6 +14752,47 @@ impl ::core::convert::From<::std::net::SocketAddr> for SOCKADDR_INET { #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] +pub struct SOCKADDR_IPX { + pub sa_family: i16, + pub sa_netnum: [super::super::Foundation::CHAR; 4], + pub sa_nodenum: [super::super::Foundation::CHAR; 6], + pub sa_socket: u16, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for SOCKADDR_IPX {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for SOCKADDR_IPX { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for SOCKADDR_IPX { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SOCKADDR_IPX").field("sa_family", &self.sa_family).field("sa_netnum", &self.sa_netnum).field("sa_nodenum", &self.sa_nodenum).field("sa_socket", &self.sa_socket).finish() + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for SOCKADDR_IPX { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for SOCKADDR_IPX { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for SOCKADDR_IPX {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for SOCKADDR_IPX { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct SOCKADDR_IRDA { pub irdaAddressFamily: u16, pub irdaDeviceID: [u8; 4], @@ -14424,6 +14833,46 @@ impl ::core::default::Default for SOCKADDR_IRDA { #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] +pub struct SOCKADDR_NB { + pub snb_family: i16, + pub snb_type: u16, + pub snb_name: [super::super::Foundation::CHAR; 16], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for SOCKADDR_NB {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for SOCKADDR_NB { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for SOCKADDR_NB { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SOCKADDR_NB").field("snb_family", &self.snb_family).field("snb_type", &self.snb_type).field("snb_name", &self.snb_name).finish() + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for SOCKADDR_NB { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for SOCKADDR_NB { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for SOCKADDR_NB {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for SOCKADDR_NB { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct SOCKADDR_STORAGE { pub ss_family: u16, pub __ss_pad1: [super::super::Foundation::CHAR; 6], @@ -14503,6 +14952,114 @@ impl ::core::default::Default for SOCKADDR_STORAGE_XP { unsafe { ::core::mem::zeroed() } } } +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct SOCKADDR_TP { + pub tp_family: u16, + pub tp_addr_type: u16, + pub tp_taddr_len: u16, + pub tp_tsel_len: u16, + pub tp_addr: [u8; 64], +} +impl ::core::marker::Copy for SOCKADDR_TP {} +impl ::core::clone::Clone for SOCKADDR_TP { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for SOCKADDR_TP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SOCKADDR_TP").field("tp_family", &self.tp_family).field("tp_addr_type", &self.tp_addr_type).field("tp_taddr_len", &self.tp_taddr_len).field("tp_tsel_len", &self.tp_tsel_len).field("tp_addr", &self.tp_addr).finish() + } +} +unsafe impl ::windows::core::Abi for SOCKADDR_TP { + type Abi = Self; +} +impl ::core::cmp::PartialEq for SOCKADDR_TP { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for SOCKADDR_TP {} +impl ::core::default::Default for SOCKADDR_TP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct SOCKADDR_UN { + pub sun_family: u16, + pub sun_path: [super::super::Foundation::CHAR; 108], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for SOCKADDR_UN {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for SOCKADDR_UN { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for SOCKADDR_UN { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SOCKADDR_UN").field("sun_family", &self.sun_family).field("sun_path", &self.sun_path).finish() + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for SOCKADDR_UN { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for SOCKADDR_UN { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for SOCKADDR_UN {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for SOCKADDR_UN { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct SOCKADDR_VNS { + pub sin_family: u16, + pub net_address: [u8; 4], + pub subnet_addr: [u8; 2], + pub port: [u8; 2], + pub hops: u8, + pub filler: [u8; 5], +} +impl ::core::marker::Copy for SOCKADDR_VNS {} +impl ::core::clone::Clone for SOCKADDR_VNS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for SOCKADDR_VNS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SOCKADDR_VNS").field("sin_family", &self.sin_family).field("net_address", &self.net_address).field("subnet_addr", &self.subnet_addr).field("port", &self.port).field("hops", &self.hops).field("filler", &self.filler).finish() + } +} +unsafe impl ::windows::core::Abi for SOCKADDR_VNS { + type Abi = Self; +} +impl ::core::cmp::PartialEq for SOCKADDR_VNS { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for SOCKADDR_VNS {} +impl ::core::default::Default for SOCKADDR_VNS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct SOCKET(pub usize); @@ -14989,6 +15546,39 @@ impl ::core::default::Default for TCP_ACK_FREQUENCY_PARAMETERS { unsafe { ::core::mem::zeroed() } } } +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_HDR { + pub th_sport: u16, + pub th_dport: u16, + pub th_seq: u32, + pub th_ack: u32, + pub _bitfield: u8, + pub th_flags: u8, + pub th_win: u16, + pub th_sum: u16, + pub th_urp: u16, +} +impl ::core::marker::Copy for TCP_HDR {} +impl ::core::clone::Clone for TCP_HDR { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for TCP_HDR { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TCP_HDR { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TCP_HDR {} +impl ::core::default::Default for TCP_HDR { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct TCP_ICW_PARAMETERS { @@ -15220,99 +15810,344 @@ impl ::core::default::Default for TCP_INITIAL_RTO_PARAMETERS { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct TIMESTAMPING_CONFIG { - pub Flags: u32, - pub TxTimestampsBuffered: u16, +pub struct TCP_OPT_FASTOPEN { + pub Kind: u8, + pub Length: u8, + pub Cookie: [u8; 1], } -impl ::core::marker::Copy for TIMESTAMPING_CONFIG {} -impl ::core::clone::Clone for TIMESTAMPING_CONFIG { +impl ::core::marker::Copy for TCP_OPT_FASTOPEN {} +impl ::core::clone::Clone for TCP_OPT_FASTOPEN { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for TIMESTAMPING_CONFIG { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("TIMESTAMPING_CONFIG").field("Flags", &self.Flags).field("TxTimestampsBuffered", &self.TxTimestampsBuffered).finish() - } -} -unsafe impl ::windows::core::Abi for TIMESTAMPING_CONFIG { +unsafe impl ::windows::core::Abi for TCP_OPT_FASTOPEN { type Abi = Self; } -impl ::core::cmp::PartialEq for TIMESTAMPING_CONFIG { +impl ::core::cmp::PartialEq for TCP_OPT_FASTOPEN { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for TIMESTAMPING_CONFIG {} -impl ::core::default::Default for TIMESTAMPING_CONFIG { +impl ::core::cmp::Eq for TCP_OPT_FASTOPEN {} +impl ::core::default::Default for TCP_OPT_FASTOPEN { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct TRANSMIT_FILE_BUFFERS { - pub Head: *mut ::core::ffi::c_void, - pub HeadLength: u32, - pub Tail: *mut ::core::ffi::c_void, - pub TailLength: u32, +pub struct TCP_OPT_MSS { + pub Kind: u8, + pub Length: u8, + pub Mss: u16, } -impl ::core::marker::Copy for TRANSMIT_FILE_BUFFERS {} -impl ::core::clone::Clone for TRANSMIT_FILE_BUFFERS { +impl ::core::marker::Copy for TCP_OPT_MSS {} +impl ::core::clone::Clone for TCP_OPT_MSS { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for TRANSMIT_FILE_BUFFERS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("TRANSMIT_FILE_BUFFERS").field("Head", &self.Head).field("HeadLength", &self.HeadLength).field("Tail", &self.Tail).field("TailLength", &self.TailLength).finish() - } -} -unsafe impl ::windows::core::Abi for TRANSMIT_FILE_BUFFERS { +unsafe impl ::windows::core::Abi for TCP_OPT_MSS { type Abi = Self; } -impl ::core::cmp::PartialEq for TRANSMIT_FILE_BUFFERS { +impl ::core::cmp::PartialEq for TCP_OPT_MSS { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for TRANSMIT_FILE_BUFFERS {} -impl ::core::default::Default for TRANSMIT_FILE_BUFFERS { +impl ::core::cmp::Eq for TCP_OPT_MSS {} +impl ::core::default::Default for TCP_OPT_MSS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct TRANSMIT_PACKETS_ELEMENT { - pub dwElFlags: u32, - pub cLength: u32, - pub Anonymous: TRANSMIT_PACKETS_ELEMENT_0, +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_OPT_SACK { + pub Kind: u8, + pub Length: u8, + pub Block: [TCP_OPT_SACK_0; 1], } -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for TRANSMIT_PACKETS_ELEMENT {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for TRANSMIT_PACKETS_ELEMENT { +impl ::core::marker::Copy for TCP_OPT_SACK {} +impl ::core::clone::Clone for TCP_OPT_SACK { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for TRANSMIT_PACKETS_ELEMENT { +unsafe impl ::windows::core::Abi for TCP_OPT_SACK { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for TRANSMIT_PACKETS_ELEMENT { +impl ::core::cmp::PartialEq for TCP_OPT_SACK { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for TRANSMIT_PACKETS_ELEMENT {} -#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for TCP_OPT_SACK {} +impl ::core::default::Default for TCP_OPT_SACK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_OPT_SACK_0 { + pub Left: u32, + pub Right: u32, +} +impl ::core::marker::Copy for TCP_OPT_SACK_0 {} +impl ::core::clone::Clone for TCP_OPT_SACK_0 { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for TCP_OPT_SACK_0 { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TCP_OPT_SACK_0 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TCP_OPT_SACK_0 {} +impl ::core::default::Default for TCP_OPT_SACK_0 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_OPT_SACK_PERMITTED { + pub Kind: u8, + pub Length: u8, +} +impl ::core::marker::Copy for TCP_OPT_SACK_PERMITTED {} +impl ::core::clone::Clone for TCP_OPT_SACK_PERMITTED { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for TCP_OPT_SACK_PERMITTED { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TCP_OPT_SACK_PERMITTED { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TCP_OPT_SACK_PERMITTED {} +impl ::core::default::Default for TCP_OPT_SACK_PERMITTED { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_OPT_TS { + pub Kind: u8, + pub Length: u8, + pub Val: u32, + pub EcR: u32, +} +impl ::core::marker::Copy for TCP_OPT_TS {} +impl ::core::clone::Clone for TCP_OPT_TS { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for TCP_OPT_TS { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TCP_OPT_TS { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TCP_OPT_TS {} +impl ::core::default::Default for TCP_OPT_TS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_OPT_UNKNOWN { + pub Kind: u8, + pub Length: u8, +} +impl ::core::marker::Copy for TCP_OPT_UNKNOWN {} +impl ::core::clone::Clone for TCP_OPT_UNKNOWN { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for TCP_OPT_UNKNOWN { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TCP_OPT_UNKNOWN { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TCP_OPT_UNKNOWN {} +impl ::core::default::Default for TCP_OPT_UNKNOWN { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TCP_OPT_WS { + pub Kind: u8, + pub Length: u8, + pub ShiftCnt: u8, +} +impl ::core::marker::Copy for TCP_OPT_WS {} +impl ::core::clone::Clone for TCP_OPT_WS { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for TCP_OPT_WS { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TCP_OPT_WS { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TCP_OPT_WS {} +impl ::core::default::Default for TCP_OPT_WS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TIMESTAMPING_CONFIG { + pub Flags: u32, + pub TxTimestampsBuffered: u16, +} +impl ::core::marker::Copy for TIMESTAMPING_CONFIG {} +impl ::core::clone::Clone for TIMESTAMPING_CONFIG { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for TIMESTAMPING_CONFIG { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TIMESTAMPING_CONFIG").field("Flags", &self.Flags).field("TxTimestampsBuffered", &self.TxTimestampsBuffered).finish() + } +} +unsafe impl ::windows::core::Abi for TIMESTAMPING_CONFIG { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TIMESTAMPING_CONFIG { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TIMESTAMPING_CONFIG {} +impl ::core::default::Default for TIMESTAMPING_CONFIG { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TIMEVAL { + pub tv_sec: i32, + pub tv_usec: i32, +} +impl ::core::marker::Copy for TIMEVAL {} +impl ::core::clone::Clone for TIMEVAL { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for TIMEVAL { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TIMEVAL").field("tv_sec", &self.tv_sec).field("tv_usec", &self.tv_usec).finish() + } +} +unsafe impl ::windows::core::Abi for TIMEVAL { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TIMEVAL { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TIMEVAL {} +impl ::core::default::Default for TIMEVAL { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct TRANSMIT_FILE_BUFFERS { + pub Head: *mut ::core::ffi::c_void, + pub HeadLength: u32, + pub Tail: *mut ::core::ffi::c_void, + pub TailLength: u32, +} +impl ::core::marker::Copy for TRANSMIT_FILE_BUFFERS {} +impl ::core::clone::Clone for TRANSMIT_FILE_BUFFERS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for TRANSMIT_FILE_BUFFERS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TRANSMIT_FILE_BUFFERS").field("Head", &self.Head).field("HeadLength", &self.HeadLength).field("Tail", &self.Tail).field("TailLength", &self.TailLength).finish() + } +} +unsafe impl ::windows::core::Abi for TRANSMIT_FILE_BUFFERS { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TRANSMIT_FILE_BUFFERS { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TRANSMIT_FILE_BUFFERS {} +impl ::core::default::Default for TRANSMIT_FILE_BUFFERS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct TRANSMIT_PACKETS_ELEMENT { + pub dwElFlags: u32, + pub cLength: u32, + pub Anonymous: TRANSMIT_PACKETS_ELEMENT_0, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for TRANSMIT_PACKETS_ELEMENT {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for TRANSMIT_PACKETS_ELEMENT { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for TRANSMIT_PACKETS_ELEMENT { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for TRANSMIT_PACKETS_ELEMENT { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for TRANSMIT_PACKETS_ELEMENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for TRANSMIT_PACKETS_ELEMENT { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -16219,7 +17054,7 @@ impl ::core::default::Default for WSACOMPLETION_0_3 { #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_Foundation")] -pub struct WSAData { +pub struct WSADATA { pub wVersion: u16, pub wHighVersion: u16, pub iMaxSockets: u16, @@ -16230,39 +17065,39 @@ pub struct WSAData { } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for WSAData {} +impl ::core::marker::Copy for WSADATA {} #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for WSAData { +impl ::core::clone::Clone for WSADATA { fn clone(&self) -> Self { *self } } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for WSAData { +impl ::core::fmt::Debug for WSADATA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("WSAData").field("wVersion", &self.wVersion).field("wHighVersion", &self.wHighVersion).field("iMaxSockets", &self.iMaxSockets).field("iMaxUdpDg", &self.iMaxUdpDg).field("lpVendorInfo", &self.lpVendorInfo).field("szDescription", &self.szDescription).field("szSystemStatus", &self.szSystemStatus).finish() + f.debug_struct("WSADATA").field("wVersion", &self.wVersion).field("wHighVersion", &self.wHighVersion).field("iMaxSockets", &self.iMaxSockets).field("iMaxUdpDg", &self.iMaxUdpDg).field("lpVendorInfo", &self.lpVendorInfo).field("szDescription", &self.szDescription).field("szSystemStatus", &self.szSystemStatus).finish() } } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for WSAData { +unsafe impl ::windows::core::Abi for WSADATA { type Abi = Self; } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for WSAData { +impl ::core::cmp::PartialEq for WSADATA { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for WSAData {} +impl ::core::cmp::Eq for WSADATA {} #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for WSAData { +impl ::core::default::Default for WSADATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -16271,7 +17106,7 @@ impl ::core::default::Default for WSAData { #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] -pub struct WSAData { +pub struct WSADATA { pub wVersion: u16, pub wHighVersion: u16, pub szDescription: [super::super::Foundation::CHAR; 257], @@ -16282,39 +17117,39 @@ pub struct WSAData { } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for WSAData {} +impl ::core::marker::Copy for WSADATA {} #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for WSAData { +impl ::core::clone::Clone for WSADATA { fn clone(&self) -> Self { *self } } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for WSAData { +impl ::core::fmt::Debug for WSADATA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("WSAData").field("wVersion", &self.wVersion).field("wHighVersion", &self.wHighVersion).field("szDescription", &self.szDescription).field("szSystemStatus", &self.szSystemStatus).field("iMaxSockets", &self.iMaxSockets).field("iMaxUdpDg", &self.iMaxUdpDg).field("lpVendorInfo", &self.lpVendorInfo).finish() + f.debug_struct("WSADATA").field("wVersion", &self.wVersion).field("wHighVersion", &self.wHighVersion).field("szDescription", &self.szDescription).field("szSystemStatus", &self.szSystemStatus).field("iMaxSockets", &self.iMaxSockets).field("iMaxUdpDg", &self.iMaxUdpDg).field("lpVendorInfo", &self.lpVendorInfo).finish() } } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for WSAData { +unsafe impl ::windows::core::Abi for WSADATA { type Abi = Self; } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for WSAData { +impl ::core::cmp::PartialEq for WSADATA { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for WSAData {} +impl ::core::cmp::Eq for WSADATA {} #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for WSAData { +impl ::core::default::Default for WSADATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -17385,32 +18220,32 @@ impl ::core::default::Default for WSC_PROVIDER_AUDIT_INFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct WSPData { +pub struct WSPDATA { pub wVersion: u16, pub wHighVersion: u16, pub szDescription: [u16; 256], } -impl ::core::marker::Copy for WSPData {} -impl ::core::clone::Clone for WSPData { +impl ::core::marker::Copy for WSPDATA {} +impl ::core::clone::Clone for WSPDATA { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for WSPData { +impl ::core::fmt::Debug for WSPDATA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("WSPData").field("wVersion", &self.wVersion).field("wHighVersion", &self.wHighVersion).field("szDescription", &self.szDescription).finish() + f.debug_struct("WSPDATA").field("wVersion", &self.wVersion).field("wHighVersion", &self.wHighVersion).field("szDescription", &self.szDescription).finish() } } -unsafe impl ::windows::core::Abi for WSPData { +unsafe impl ::windows::core::Abi for WSPDATA { type Abi = Self; } -impl ::core::cmp::PartialEq for WSPData { +impl ::core::cmp::PartialEq for WSPDATA { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for WSPData {} -impl ::core::default::Default for WSPData { +impl ::core::cmp::Eq for WSPDATA {} +impl ::core::default::Default for WSPDATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -17582,37 +18417,34 @@ impl ::core::default::Default for WSPUPCALLTABLE { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct addrinfo_dns_server { - pub ai_servertype: u32, - pub ai_flags: u64, - pub ai_addrlen: u32, - pub ai_addr: *mut SOCKADDR, - pub Anonymous: addrinfo_dns_server_0, +#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] +pub struct netent { + pub n_name: ::windows::core::PSTR, + pub n_aliases: *mut *mut i8, + pub n_addrtype: i16, + pub n_net: u32, } -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for addrinfo_dns_server {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for addrinfo_dns_server { +impl ::core::marker::Copy for netent {} +impl ::core::clone::Clone for netent { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for addrinfo_dns_server { +impl ::core::fmt::Debug for netent { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("netent").field("n_name", &self.n_name).field("n_aliases", &self.n_aliases).field("n_addrtype", &self.n_addrtype).field("n_net", &self.n_net).finish() + } +} +unsafe impl ::windows::core::Abi for netent { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for addrinfo_dns_server { +impl ::core::cmp::PartialEq for netent { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for addrinfo_dns_server {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for addrinfo_dns_server { +impl ::core::cmp::Eq for netent {} +impl ::core::default::Default for netent { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -17620,615 +18452,61 @@ impl ::core::default::Default for addrinfo_dns_server { #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub union addrinfo_dns_server_0 { - pub ai_template: ::windows::core::PWSTR, +pub union sockaddr_gen { + pub Address: SOCKADDR, + pub AddressIn: SOCKADDR_IN, + pub AddressIn6: sockaddr_in6_old, } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for addrinfo_dns_server_0 {} +impl ::core::marker::Copy for sockaddr_gen {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for addrinfo_dns_server_0 { +impl ::core::clone::Clone for sockaddr_gen { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for addrinfo_dns_server_0 { +unsafe impl ::windows::core::Abi for sockaddr_gen { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for addrinfo_dns_server_0 { +impl ::core::cmp::PartialEq for sockaddr_gen { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for addrinfo_dns_server_0 {} +impl ::core::cmp::Eq for sockaddr_gen {} #[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for addrinfo_dns_server_0 { +impl ::core::default::Default for sockaddr_gen { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct cmsghdr { - pub cmsg_len: usize, - pub cmsg_level: i32, - pub cmsg_type: i32, -} -impl ::core::marker::Copy for cmsghdr {} -impl ::core::clone::Clone for cmsghdr { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for cmsghdr { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("cmsghdr").field("cmsg_len", &self.cmsg_len).field("cmsg_level", &self.cmsg_level).field("cmsg_type", &self.cmsg_type).finish() - } -} -unsafe impl ::windows::core::Abi for cmsghdr { - type Abi = Self; -} -impl ::core::cmp::PartialEq for cmsghdr { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for cmsghdr {} -impl ::core::default::Default for cmsghdr { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct fd_set { - pub fd_count: u32, - pub fd_array: [SOCKET; 64], -} -impl ::core::marker::Copy for fd_set {} -impl ::core::clone::Clone for fd_set { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for fd_set { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("fd_set").field("fd_count", &self.fd_count).field("fd_array", &self.fd_array).finish() - } -} -unsafe impl ::windows::core::Abi for fd_set { - type Abi = Self; -} -impl ::core::cmp::PartialEq for fd_set { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for fd_set {} -impl ::core::default::Default for fd_set { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct hostent { - pub h_name: ::windows::core::PSTR, - pub h_aliases: *mut *mut i8, - pub h_addrtype: i16, - pub h_length: i16, - pub h_addr_list: *mut *mut i8, -} -impl ::core::marker::Copy for hostent {} -impl ::core::clone::Clone for hostent { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for hostent { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("hostent").field("h_name", &self.h_name).field("h_aliases", &self.h_aliases).field("h_addrtype", &self.h_addrtype).field("h_length", &self.h_length).field("h_addr_list", &self.h_addr_list).finish() - } -} -unsafe impl ::windows::core::Abi for hostent { - type Abi = Self; -} -impl ::core::cmp::PartialEq for hostent { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for hostent {} -impl ::core::default::Default for hostent { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct linger { - pub l_onoff: u16, - pub l_linger: u16, -} -impl ::core::marker::Copy for linger {} -impl ::core::clone::Clone for linger { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for linger { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("linger").field("l_onoff", &self.l_onoff).field("l_linger", &self.l_linger).finish() - } -} -unsafe impl ::windows::core::Abi for linger { - type Abi = Self; -} -impl ::core::cmp::PartialEq for linger { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for linger {} -impl ::core::default::Default for linger { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct nd_router_solicit { - pub nd_rs_hdr: ICMP_MESSAGE, -} -impl ::core::marker::Copy for nd_router_solicit {} -impl ::core::clone::Clone for nd_router_solicit { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for nd_router_solicit { - type Abi = Self; -} -impl ::core::cmp::PartialEq for nd_router_solicit { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for nd_router_solicit {} -impl ::core::default::Default for nd_router_solicit { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct netent { - pub n_name: ::windows::core::PSTR, - pub n_aliases: *mut *mut i8, - pub n_addrtype: i16, - pub n_net: u32, -} -impl ::core::marker::Copy for netent {} -impl ::core::clone::Clone for netent { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for netent { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("netent").field("n_name", &self.n_name).field("n_aliases", &self.n_aliases).field("n_addrtype", &self.n_addrtype).field("n_net", &self.n_net).finish() - } -} -unsafe impl ::windows::core::Abi for netent { - type Abi = Self; -} -impl ::core::cmp::PartialEq for netent { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for netent {} -impl ::core::default::Default for netent { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct protoent { - pub p_name: ::windows::core::PSTR, - pub p_aliases: *mut *mut i8, - pub p_proto: i16, -} -impl ::core::marker::Copy for protoent {} -impl ::core::clone::Clone for protoent { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for protoent { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("protoent").field("p_name", &self.p_name).field("p_aliases", &self.p_aliases).field("p_proto", &self.p_proto).finish() - } -} -unsafe impl ::windows::core::Abi for protoent { - type Abi = Self; -} -impl ::core::cmp::PartialEq for protoent { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for protoent {} -impl ::core::default::Default for protoent { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub struct servent { - pub s_name: ::windows::core::PSTR, - pub s_aliases: *mut *mut i8, - pub s_proto: ::windows::core::PSTR, - pub s_port: i16, -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::marker::Copy for servent {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::clone::Clone for servent { - fn clone(&self) -> Self { - *self - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::fmt::Debug for servent { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("servent").field("s_name", &self.s_name).field("s_aliases", &self.s_aliases).field("s_proto", &self.s_proto).field("s_port", &self.s_port).finish() - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -unsafe impl ::windows::core::Abi for servent { - type Abi = Self; -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::cmp::PartialEq for servent { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::cmp::Eq for servent {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::default::Default for servent { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -#[cfg(target_arch = "x86")] -pub struct servent { - pub s_name: ::windows::core::PSTR, - pub s_aliases: *mut *mut i8, - pub s_port: i16, - pub s_proto: ::windows::core::PSTR, -} -#[cfg(target_arch = "x86")] -impl ::core::marker::Copy for servent {} -#[cfg(target_arch = "x86")] -impl ::core::clone::Clone for servent { - fn clone(&self) -> Self { - *self - } -} -#[cfg(target_arch = "x86")] -impl ::core::fmt::Debug for servent { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("servent").field("s_name", &self.s_name).field("s_aliases", &self.s_aliases).field("s_port", &self.s_port).field("s_proto", &self.s_proto).finish() - } -} -#[cfg(target_arch = "x86")] -unsafe impl ::windows::core::Abi for servent { - type Abi = Self; -} -#[cfg(target_arch = "x86")] -impl ::core::cmp::PartialEq for servent { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(target_arch = "x86")] -impl ::core::cmp::Eq for servent {} -#[cfg(target_arch = "x86")] -impl ::core::default::Default for servent { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct sockaddr_atm { - pub satm_family: u16, - pub satm_number: ATM_ADDRESS, - pub satm_blli: ATM_BLLI, - pub satm_bhli: ATM_BHLI, -} -impl ::core::marker::Copy for sockaddr_atm {} -impl ::core::clone::Clone for sockaddr_atm { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for sockaddr_atm { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("sockaddr_atm").field("satm_family", &self.satm_family).field("satm_number", &self.satm_number).field("satm_blli", &self.satm_blli).field("satm_bhli", &self.satm_bhli).finish() - } -} -unsafe impl ::windows::core::Abi for sockaddr_atm { - type Abi = Self; -} -impl ::core::cmp::PartialEq for sockaddr_atm { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for sockaddr_atm {} -impl ::core::default::Default for sockaddr_atm { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub union sockaddr_gen { - pub Address: SOCKADDR, - pub AddressIn: SOCKADDR_IN, - pub AddressIn6: sockaddr_in6_old, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for sockaddr_gen {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for sockaddr_gen { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for sockaddr_gen { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for sockaddr_gen { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for sockaddr_gen {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for sockaddr_gen { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct sockaddr_in6_old { - pub sin6_family: i16, - pub sin6_port: u16, - pub sin6_flowinfo: u32, - pub sin6_addr: IN6_ADDR, -} -impl ::core::marker::Copy for sockaddr_in6_old {} -impl ::core::clone::Clone for sockaddr_in6_old { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for sockaddr_in6_old { - type Abi = Self; -} -impl ::core::cmp::PartialEq for sockaddr_in6_old { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for sockaddr_in6_old {} -impl ::core::default::Default for sockaddr_in6_old { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct sockaddr_ipx { - pub sa_family: i16, - pub sa_netnum: [super::super::Foundation::CHAR; 4], - pub sa_nodenum: [super::super::Foundation::CHAR; 6], - pub sa_socket: u16, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for sockaddr_ipx {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for sockaddr_ipx { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for sockaddr_ipx { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("sockaddr_ipx").field("sa_family", &self.sa_family).field("sa_netnum", &self.sa_netnum).field("sa_nodenum", &self.sa_nodenum).field("sa_socket", &self.sa_socket).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for sockaddr_ipx { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for sockaddr_ipx { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for sockaddr_ipx {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for sockaddr_ipx { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct sockaddr_nb { - pub snb_family: i16, - pub snb_type: u16, - pub snb_name: [super::super::Foundation::CHAR; 16], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for sockaddr_nb {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for sockaddr_nb { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for sockaddr_nb { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("sockaddr_nb").field("snb_family", &self.snb_family).field("snb_type", &self.snb_type).field("snb_name", &self.snb_name).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for sockaddr_nb { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for sockaddr_nb { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for sockaddr_nb {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for sockaddr_nb { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct sockaddr_tp { - pub tp_family: u16, - pub tp_addr_type: u16, - pub tp_taddr_len: u16, - pub tp_tsel_len: u16, - pub tp_addr: [u8; 64], -} -impl ::core::marker::Copy for sockaddr_tp {} -impl ::core::clone::Clone for sockaddr_tp { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for sockaddr_tp { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("sockaddr_tp").field("tp_family", &self.tp_family).field("tp_addr_type", &self.tp_addr_type).field("tp_taddr_len", &self.tp_taddr_len).field("tp_tsel_len", &self.tp_tsel_len).field("tp_addr", &self.tp_addr).finish() - } -} -unsafe impl ::windows::core::Abi for sockaddr_tp { - type Abi = Self; -} -impl ::core::cmp::PartialEq for sockaddr_tp { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for sockaddr_tp {} -impl ::core::default::Default for sockaddr_tp { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct sockaddr_un { - pub sun_family: u16, - pub sun_path: [super::super::Foundation::CHAR; 108], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for sockaddr_un {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for sockaddr_un { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for sockaddr_un { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("sockaddr_un").field("sun_family", &self.sun_family).field("sun_path", &self.sun_path).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for sockaddr_un { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for sockaddr_un { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for sockaddr_un {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for sockaddr_un { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct sockaddr_vns { - pub sin_family: u16, - pub net_address: [u8; 4], - pub subnet_addr: [u8; 2], - pub port: [u8; 2], - pub hops: u8, - pub filler: [u8; 5], +pub struct sockaddr_in6_old { + pub sin6_family: i16, + pub sin6_port: u16, + pub sin6_flowinfo: u32, + pub sin6_addr: IN6_ADDR, } -impl ::core::marker::Copy for sockaddr_vns {} -impl ::core::clone::Clone for sockaddr_vns { +impl ::core::marker::Copy for sockaddr_in6_old {} +impl ::core::clone::Clone for sockaddr_in6_old { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for sockaddr_vns { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("sockaddr_vns").field("sin_family", &self.sin_family).field("net_address", &self.net_address).field("subnet_addr", &self.subnet_addr).field("port", &self.port).field("hops", &self.hops).field("filler", &self.filler).finish() - } -} -unsafe impl ::windows::core::Abi for sockaddr_vns { +unsafe impl ::windows::core::Abi for sockaddr_in6_old { type Abi = Self; } -impl ::core::cmp::PartialEq for sockaddr_vns { +impl ::core::cmp::PartialEq for sockaddr_in6_old { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for sockaddr_vns {} -impl ::core::default::Default for sockaddr_vns { +impl ::core::cmp::Eq for sockaddr_in6_old {} +impl ::core::default::Default for sockaddr_in6_old { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -18264,39 +18542,6 @@ impl ::core::default::Default for sockproto { unsafe { ::core::mem::zeroed() } } } -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_hdr { - pub th_sport: u16, - pub th_dport: u16, - pub th_seq: u32, - pub th_ack: u32, - pub _bitfield: u8, - pub th_flags: u8, - pub th_win: u16, - pub th_sum: u16, - pub th_urp: u16, -} -impl ::core::marker::Copy for tcp_hdr {} -impl ::core::clone::Clone for tcp_hdr { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for tcp_hdr { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tcp_hdr { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tcp_hdr {} -impl ::core::default::Default for tcp_hdr { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[repr(C)] #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub struct tcp_keepalive { @@ -18329,271 +18574,6 @@ impl ::core::default::Default for tcp_keepalive { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_fastopen { - pub Kind: u8, - pub Length: u8, - pub Cookie: [u8; 1], -} -impl ::core::marker::Copy for tcp_opt_fastopen {} -impl ::core::clone::Clone for tcp_opt_fastopen { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tcp_opt_fastopen { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tcp_opt_fastopen").field("Kind", &self.Kind).field("Length", &self.Length).field("Cookie", &self.Cookie).finish() - } -} -unsafe impl ::windows::core::Abi for tcp_opt_fastopen { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tcp_opt_fastopen { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tcp_opt_fastopen {} -impl ::core::default::Default for tcp_opt_fastopen { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_mss { - pub Kind: u8, - pub Length: u8, - pub Mss: u16, -} -impl ::core::marker::Copy for tcp_opt_mss {} -impl ::core::clone::Clone for tcp_opt_mss { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for tcp_opt_mss { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tcp_opt_mss { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tcp_opt_mss {} -impl ::core::default::Default for tcp_opt_mss { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_sack { - pub Kind: u8, - pub Length: u8, - pub Block: [tcp_opt_sack_0; 1], -} -impl ::core::marker::Copy for tcp_opt_sack {} -impl ::core::clone::Clone for tcp_opt_sack { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for tcp_opt_sack { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tcp_opt_sack { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tcp_opt_sack {} -impl ::core::default::Default for tcp_opt_sack { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_sack_0 { - pub Left: u32, - pub Right: u32, -} -impl ::core::marker::Copy for tcp_opt_sack_0 {} -impl ::core::clone::Clone for tcp_opt_sack_0 { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for tcp_opt_sack_0 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tcp_opt_sack_0 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tcp_opt_sack_0 {} -impl ::core::default::Default for tcp_opt_sack_0 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_sack_permitted { - pub Kind: u8, - pub Length: u8, -} -impl ::core::marker::Copy for tcp_opt_sack_permitted {} -impl ::core::clone::Clone for tcp_opt_sack_permitted { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tcp_opt_sack_permitted { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tcp_opt_sack_permitted").field("Kind", &self.Kind).field("Length", &self.Length).finish() - } -} -unsafe impl ::windows::core::Abi for tcp_opt_sack_permitted { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tcp_opt_sack_permitted { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tcp_opt_sack_permitted {} -impl ::core::default::Default for tcp_opt_sack_permitted { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_ts { - pub Kind: u8, - pub Length: u8, - pub Val: u32, - pub EcR: u32, -} -impl ::core::marker::Copy for tcp_opt_ts {} -impl ::core::clone::Clone for tcp_opt_ts { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for tcp_opt_ts { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tcp_opt_ts { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tcp_opt_ts {} -impl ::core::default::Default for tcp_opt_ts { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_unknown { - pub Kind: u8, - pub Length: u8, -} -impl ::core::marker::Copy for tcp_opt_unknown {} -impl ::core::clone::Clone for tcp_opt_unknown { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tcp_opt_unknown { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tcp_opt_unknown").field("Kind", &self.Kind).field("Length", &self.Length).finish() - } -} -unsafe impl ::windows::core::Abi for tcp_opt_unknown { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tcp_opt_unknown { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tcp_opt_unknown {} -impl ::core::default::Default for tcp_opt_unknown { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct tcp_opt_ws { - pub Kind: u8, - pub Length: u8, - pub ShiftCnt: u8, -} -impl ::core::marker::Copy for tcp_opt_ws {} -impl ::core::clone::Clone for tcp_opt_ws { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tcp_opt_ws { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tcp_opt_ws").field("Kind", &self.Kind).field("Length", &self.Length).field("ShiftCnt", &self.ShiftCnt).finish() - } -} -unsafe impl ::windows::core::Abi for tcp_opt_ws { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tcp_opt_ws { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tcp_opt_ws {} -impl ::core::default::Default for tcp_opt_ws { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub struct timeval { - pub tv_sec: i32, - pub tv_usec: i32, -} -impl ::core::marker::Copy for timeval {} -impl ::core::clone::Clone for timeval { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for timeval { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("timeval").field("tv_sec", &self.tv_sec).field("tv_usec", &self.tv_usec).finish() - } -} -unsafe impl ::windows::core::Abi for timeval { - type Abi = Self; -} -impl ::core::cmp::PartialEq for timeval { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for timeval {} -impl ::core::default::Default for timeval { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type LPBLOCKINGCALLBACK = ::core::option::Option super::super::Foundation::BOOL>; @@ -18726,7 +18706,7 @@ pub type LPWPUCREATEEVENT = ::core::option::Option SOCKET>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub type LPWPUFDISSET = ::core::option::Option i32>; +pub type LPWPUFDISSET = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] pub type LPWPUGETPROVIDERPATH = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] @@ -18837,7 +18817,7 @@ pub type LPWSPRECVDISCONNECT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`*"] -pub type LPWSPSELECT = ::core::option::Option i32>; +pub type LPWSPSELECT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] pub type LPWSPSEND = ::core::option::Option i32>; @@ -18854,7 +18834,7 @@ pub type LPWSPSHUTDOWN = ::core::option::Option SOCKET>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] -pub type LPWSPSTARTUP = ::core::option::Option i32>; +pub type LPWSPSTARTUP = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_Networking_WinSock\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type LPWSPSTRINGTOADDRESS = ::core::option::Option i32>; 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 fe499d7a6c..1842c53ac7 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 @@ -1,25 +1,5 @@ #[cfg(feature = "Win32_Security_Authentication_Identity_Provider")] pub mod Provider; -#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Credentials\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Credentials"))] -#[inline] -pub unsafe fn CredMarshalTargetInfo(intargetinfo: &super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW, buffer: &mut *mut u16, buffersize: &mut u32) -> ::windows::core::Result<()> { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn CredMarshalTargetInfo(intargetinfo: *const super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW, buffer: *mut *mut u16, buffersize: *mut u32) -> super::super::super::Foundation::NTSTATUS; - } - CredMarshalTargetInfo(::core::mem::transmute(intargetinfo), ::core::mem::transmute(buffer), ::core::mem::transmute(buffersize)).ok() -} -#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Credentials\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Credentials"))] -#[inline] -pub unsafe fn CredUnmarshalTargetInfo(buffer: &[u8], rettargetinfo: ::core::option::Option<&mut *mut super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW>, retactualsize: ::core::option::Option<&mut u32>) -> ::windows::core::Result<()> { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn CredUnmarshalTargetInfo(buffer: *const u16, buffersize: u32, rettargetinfo: *mut *mut super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW, retactualsize: *mut u32) -> super::super::super::Foundation::NTSTATUS; - } - CredUnmarshalTargetInfo(::core::mem::transmute(buffer.as_ptr()), buffer.len() as _, ::core::mem::transmute(rettargetinfo), ::core::mem::transmute(retactualsize)).ok() -} #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Security_Credentials\"`*"] #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -407,6 +387,26 @@ pub unsafe fn CompleteAuthToken(phcontext: &super::super::Credentials::SecHandle } CompleteAuthToken(::core::mem::transmute(phcontext), ::core::mem::transmute(ptoken)).ok() } +#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Credentials\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Credentials"))] +#[inline] +pub unsafe fn CredMarshalTargetInfo(intargetinfo: &super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW, buffer: &mut *mut u16, buffersize: &mut u32) -> ::windows::core::Result<()> { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn CredMarshalTargetInfo(intargetinfo: *const super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW, buffer: *mut *mut u16, buffersize: *mut u32) -> super::super::super::Foundation::NTSTATUS; + } + CredMarshalTargetInfo(::core::mem::transmute(intargetinfo), ::core::mem::transmute(buffer), ::core::mem::transmute(buffersize)).ok() +} +#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Credentials\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Credentials"))] +#[inline] +pub unsafe fn CredUnmarshalTargetInfo(buffer: &[u8], rettargetinfo: ::core::option::Option<&mut *mut super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW>, retactualsize: ::core::option::Option<&mut u32>) -> ::windows::core::Result<()> { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn CredUnmarshalTargetInfo(buffer: *const u16, buffersize: u32, rettargetinfo: *mut *mut super::super::Credentials::CREDENTIAL_TARGET_INFORMATIONW, retactualsize: *mut u32) -> super::super::super::Foundation::NTSTATUS; + } + CredUnmarshalTargetInfo(::core::mem::transmute(buffer.as_ptr()), buffer.len() as _, ::core::mem::transmute(rettargetinfo), ::core::mem::transmute(retactualsize)).ok() +} #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`, `\"Win32_Security_Credentials\"`*"] #[cfg(feature = "Win32_Security_Credentials")] #[inline] @@ -5076,59 +5076,57 @@ pub const _FACILITY_WINDOWS_STORE: u32 = 63u32; #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct ASC_REQ_FLAGS(pub u64); -#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_DELEGATE: ASC_REQ_FLAGS = ASC_REQ_FLAGS(1u64); +pub struct ASC_REQ_FLAGS(pub u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_MUTUAL_AUTH: ASC_REQ_FLAGS = ASC_REQ_FLAGS(2u64); +pub const ASC_REQ_DELEGATE: ASC_REQ_FLAGS = ASC_REQ_FLAGS(1u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_REPLAY_DETECT: ASC_REQ_FLAGS = ASC_REQ_FLAGS(4u64); +pub const ASC_REQ_MUTUAL_AUTH: ASC_REQ_FLAGS = ASC_REQ_FLAGS(2u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_SEQUENCE_DETECT: ASC_REQ_FLAGS = ASC_REQ_FLAGS(8u64); +pub const ASC_REQ_REPLAY_DETECT: ASC_REQ_FLAGS = ASC_REQ_FLAGS(4u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_CONFIDENTIALITY: ASC_REQ_FLAGS = ASC_REQ_FLAGS(16u64); +pub const ASC_REQ_SEQUENCE_DETECT: ASC_REQ_FLAGS = ASC_REQ_FLAGS(8u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_USE_SESSION_KEY: ASC_REQ_FLAGS = ASC_REQ_FLAGS(32u64); +pub const ASC_REQ_CONFIDENTIALITY: ASC_REQ_FLAGS = ASC_REQ_FLAGS(16u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_SESSION_TICKET: ASC_REQ_FLAGS = ASC_REQ_FLAGS(64u64); +pub const ASC_REQ_USE_SESSION_KEY: ASC_REQ_FLAGS = ASC_REQ_FLAGS(32u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_ALLOCATE_MEMORY: ASC_REQ_FLAGS = ASC_REQ_FLAGS(256u64); +pub const ASC_REQ_SESSION_TICKET: ASC_REQ_FLAGS = ASC_REQ_FLAGS(64u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_USE_DCE_STYLE: ASC_REQ_FLAGS = ASC_REQ_FLAGS(512u64); +pub const ASC_REQ_ALLOCATE_MEMORY: ASC_REQ_FLAGS = ASC_REQ_FLAGS(256u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_DATAGRAM: ASC_REQ_FLAGS = ASC_REQ_FLAGS(1024u64); +pub const ASC_REQ_USE_DCE_STYLE: ASC_REQ_FLAGS = ASC_REQ_FLAGS(512u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_CONNECTION: ASC_REQ_FLAGS = ASC_REQ_FLAGS(2048u64); +pub const ASC_REQ_DATAGRAM: ASC_REQ_FLAGS = ASC_REQ_FLAGS(1024u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_CALL_LEVEL: ASC_REQ_FLAGS = ASC_REQ_FLAGS(4096u64); +pub const ASC_REQ_CONNECTION: ASC_REQ_FLAGS = ASC_REQ_FLAGS(2048u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_FRAGMENT_SUPPLIED: ASC_REQ_FLAGS = ASC_REQ_FLAGS(8192u64); +pub const ASC_REQ_CALL_LEVEL: ASC_REQ_FLAGS = ASC_REQ_FLAGS(4096u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_EXTENDED_ERROR: ASC_REQ_FLAGS = ASC_REQ_FLAGS(32768u64); +pub const ASC_REQ_FRAGMENT_SUPPLIED: ASC_REQ_FLAGS = ASC_REQ_FLAGS(8192u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_STREAM: ASC_REQ_FLAGS = ASC_REQ_FLAGS(65536u64); +pub const ASC_REQ_EXTENDED_ERROR: ASC_REQ_FLAGS = ASC_REQ_FLAGS(32768u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_INTEGRITY: ASC_REQ_FLAGS = ASC_REQ_FLAGS(131072u64); +pub const ASC_REQ_STREAM: ASC_REQ_FLAGS = ASC_REQ_FLAGS(65536u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_LICENSING: ASC_REQ_FLAGS = ASC_REQ_FLAGS(262144u64); +pub const ASC_REQ_INTEGRITY: ASC_REQ_FLAGS = ASC_REQ_FLAGS(131072u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_IDENTIFY: ASC_REQ_FLAGS = ASC_REQ_FLAGS(524288u64); +pub const ASC_REQ_LICENSING: ASC_REQ_FLAGS = ASC_REQ_FLAGS(262144u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_ALLOW_NULL_SESSION: ASC_REQ_FLAGS = ASC_REQ_FLAGS(1048576u64); +pub const ASC_REQ_IDENTIFY: ASC_REQ_FLAGS = ASC_REQ_FLAGS(524288u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_ALLOW_NON_USER_LOGONS: ASC_REQ_FLAGS = ASC_REQ_FLAGS(2097152u64); +pub const ASC_REQ_ALLOW_NULL_SESSION: ASC_REQ_FLAGS = ASC_REQ_FLAGS(1048576u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_ALLOW_CONTEXT_REPLAY: ASC_REQ_FLAGS = ASC_REQ_FLAGS(4194304u64); +pub const ASC_REQ_ALLOW_NON_USER_LOGONS: ASC_REQ_FLAGS = ASC_REQ_FLAGS(2097152u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_FRAGMENT_TO_FIT: ASC_REQ_FLAGS = ASC_REQ_FLAGS(8388608u64); +pub const ASC_REQ_ALLOW_CONTEXT_REPLAY: ASC_REQ_FLAGS = ASC_REQ_FLAGS(4194304u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_NO_TOKEN: ASC_REQ_FLAGS = ASC_REQ_FLAGS(16777216u64); +pub const ASC_REQ_FRAGMENT_TO_FIT: ASC_REQ_FLAGS = ASC_REQ_FLAGS(8388608u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_PROXY_BINDINGS: ASC_REQ_FLAGS = ASC_REQ_FLAGS(67108864u64); +pub const ASC_REQ_NO_TOKEN: ASC_REQ_FLAGS = ASC_REQ_FLAGS(16777216u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_ALLOW_MISSING_BINDINGS: ASC_REQ_FLAGS = ASC_REQ_FLAGS(268435456u64); +pub const ASC_REQ_PROXY_BINDINGS: ASC_REQ_FLAGS = ASC_REQ_FLAGS(67108864u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ASC_REQ_MESSAGES: ASC_REQ_FLAGS = ASC_REQ_FLAGS(4294967296u64); +pub const ASC_REQ_ALLOW_MISSING_BINDINGS: ASC_REQ_FLAGS = ASC_REQ_FLAGS(268435456u32); impl ::core::marker::Copy for ASC_REQ_FLAGS {} impl ::core::clone::Clone for ASC_REQ_FLAGS { fn clone(&self) -> Self { @@ -5179,6 +5177,59 @@ impl ::core::ops::Not for ASC_REQ_FLAGS { #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct ASC_REQ_HIGH_FLAGS(pub u64); +#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] +pub const ASC_REQ_MESSAGES: ASC_REQ_HIGH_FLAGS = ASC_REQ_HIGH_FLAGS(4294967296u64); +impl ::core::marker::Copy for ASC_REQ_HIGH_FLAGS {} +impl ::core::clone::Clone for ASC_REQ_HIGH_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for ASC_REQ_HIGH_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for ASC_REQ_HIGH_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for ASC_REQ_HIGH_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("ASC_REQ_HIGH_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for ASC_REQ_HIGH_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for ASC_REQ_HIGH_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for ASC_REQ_HIGH_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for ASC_REQ_HIGH_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for ASC_REQ_HIGH_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct CRED_FETCH(pub i32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] pub const CredFetchDefault: CRED_FETCH = CRED_FETCH(0i32); @@ -5375,65 +5426,61 @@ impl ::core::fmt::Debug for EXTENDED_NAME_FORMAT { #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct ISC_REQ_FLAGS(pub u64); -#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_DELEGATE: ISC_REQ_FLAGS = ISC_REQ_FLAGS(1u64); -#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_MUTUAL_AUTH: ISC_REQ_FLAGS = ISC_REQ_FLAGS(2u64); +pub struct ISC_REQ_FLAGS(pub u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_REPLAY_DETECT: ISC_REQ_FLAGS = ISC_REQ_FLAGS(4u64); +pub const ISC_REQ_DELEGATE: ISC_REQ_FLAGS = ISC_REQ_FLAGS(1u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_SEQUENCE_DETECT: ISC_REQ_FLAGS = ISC_REQ_FLAGS(8u64); +pub const ISC_REQ_MUTUAL_AUTH: ISC_REQ_FLAGS = ISC_REQ_FLAGS(2u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_CONFIDENTIALITY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(16u64); +pub const ISC_REQ_REPLAY_DETECT: ISC_REQ_FLAGS = ISC_REQ_FLAGS(4u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_USE_SESSION_KEY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(32u64); +pub const ISC_REQ_SEQUENCE_DETECT: ISC_REQ_FLAGS = ISC_REQ_FLAGS(8u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_PROMPT_FOR_CREDS: ISC_REQ_FLAGS = ISC_REQ_FLAGS(64u64); +pub const ISC_REQ_CONFIDENTIALITY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(16u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_USE_SUPPLIED_CREDS: ISC_REQ_FLAGS = ISC_REQ_FLAGS(128u64); +pub const ISC_REQ_USE_SESSION_KEY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(32u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_ALLOCATE_MEMORY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(256u64); +pub const ISC_REQ_PROMPT_FOR_CREDS: ISC_REQ_FLAGS = ISC_REQ_FLAGS(64u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_USE_DCE_STYLE: ISC_REQ_FLAGS = ISC_REQ_FLAGS(512u64); +pub const ISC_REQ_USE_SUPPLIED_CREDS: ISC_REQ_FLAGS = ISC_REQ_FLAGS(128u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_DATAGRAM: ISC_REQ_FLAGS = ISC_REQ_FLAGS(1024u64); +pub const ISC_REQ_ALLOCATE_MEMORY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(256u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_CONNECTION: ISC_REQ_FLAGS = ISC_REQ_FLAGS(2048u64); +pub const ISC_REQ_USE_DCE_STYLE: ISC_REQ_FLAGS = ISC_REQ_FLAGS(512u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_CALL_LEVEL: ISC_REQ_FLAGS = ISC_REQ_FLAGS(4096u64); +pub const ISC_REQ_DATAGRAM: ISC_REQ_FLAGS = ISC_REQ_FLAGS(1024u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_FRAGMENT_SUPPLIED: ISC_REQ_FLAGS = ISC_REQ_FLAGS(8192u64); +pub const ISC_REQ_CONNECTION: ISC_REQ_FLAGS = ISC_REQ_FLAGS(2048u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_EXTENDED_ERROR: ISC_REQ_FLAGS = ISC_REQ_FLAGS(16384u64); +pub const ISC_REQ_CALL_LEVEL: ISC_REQ_FLAGS = ISC_REQ_FLAGS(4096u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_STREAM: ISC_REQ_FLAGS = ISC_REQ_FLAGS(32768u64); +pub const ISC_REQ_FRAGMENT_SUPPLIED: ISC_REQ_FLAGS = ISC_REQ_FLAGS(8192u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_INTEGRITY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(65536u64); +pub const ISC_REQ_EXTENDED_ERROR: ISC_REQ_FLAGS = ISC_REQ_FLAGS(16384u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_IDENTIFY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(131072u64); +pub const ISC_REQ_STREAM: ISC_REQ_FLAGS = ISC_REQ_FLAGS(32768u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_NULL_SESSION: ISC_REQ_FLAGS = ISC_REQ_FLAGS(262144u64); +pub const ISC_REQ_INTEGRITY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(65536u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_MANUAL_CRED_VALIDATION: ISC_REQ_FLAGS = ISC_REQ_FLAGS(524288u64); +pub const ISC_REQ_IDENTIFY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(131072u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_RESERVED1: ISC_REQ_FLAGS = ISC_REQ_FLAGS(1048576u64); +pub const ISC_REQ_NULL_SESSION: ISC_REQ_FLAGS = ISC_REQ_FLAGS(262144u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_FRAGMENT_TO_FIT: ISC_REQ_FLAGS = ISC_REQ_FLAGS(2097152u64); +pub const ISC_REQ_MANUAL_CRED_VALIDATION: ISC_REQ_FLAGS = ISC_REQ_FLAGS(524288u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_FORWARD_CREDENTIALS: ISC_REQ_FLAGS = ISC_REQ_FLAGS(4194304u64); +pub const ISC_REQ_RESERVED1: ISC_REQ_FLAGS = ISC_REQ_FLAGS(1048576u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_NO_INTEGRITY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(8388608u64); +pub const ISC_REQ_FRAGMENT_TO_FIT: ISC_REQ_FLAGS = ISC_REQ_FLAGS(2097152u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_USE_HTTP_STYLE: ISC_REQ_FLAGS = ISC_REQ_FLAGS(16777216u64); +pub const ISC_REQ_FORWARD_CREDENTIALS: ISC_REQ_FLAGS = ISC_REQ_FLAGS(4194304u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_UNVERIFIED_TARGET_NAME: ISC_REQ_FLAGS = ISC_REQ_FLAGS(536870912u64); +pub const ISC_REQ_NO_INTEGRITY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(8388608u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_CONFIDENTIALITY_ONLY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(1073741824u64); +pub const ISC_REQ_USE_HTTP_STYLE: ISC_REQ_FLAGS = ISC_REQ_FLAGS(16777216u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_MESSAGES: ISC_REQ_FLAGS = ISC_REQ_FLAGS(4294967296u64); +pub const ISC_REQ_UNVERIFIED_TARGET_NAME: ISC_REQ_FLAGS = ISC_REQ_FLAGS(536870912u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] -pub const ISC_REQ_DEFERRED_CRED_VALIDATION: ISC_REQ_FLAGS = ISC_REQ_FLAGS(8589934592u64); +pub const ISC_REQ_CONFIDENTIALITY_ONLY: ISC_REQ_FLAGS = ISC_REQ_FLAGS(1073741824u32); impl ::core::marker::Copy for ISC_REQ_FLAGS {} impl ::core::clone::Clone for ISC_REQ_FLAGS { fn clone(&self) -> Self { @@ -5484,6 +5531,61 @@ impl ::core::ops::Not for ISC_REQ_FLAGS { #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct ISC_REQ_HIGH_FLAGS(pub u64); +#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] +pub const ISC_REQ_MESSAGES: ISC_REQ_HIGH_FLAGS = ISC_REQ_HIGH_FLAGS(4294967296u64); +#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] +pub const ISC_REQ_DEFERRED_CRED_VALIDATION: ISC_REQ_HIGH_FLAGS = ISC_REQ_HIGH_FLAGS(8589934592u64); +impl ::core::marker::Copy for ISC_REQ_HIGH_FLAGS {} +impl ::core::clone::Clone for ISC_REQ_HIGH_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for ISC_REQ_HIGH_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for ISC_REQ_HIGH_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for ISC_REQ_HIGH_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("ISC_REQ_HIGH_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for ISC_REQ_HIGH_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for ISC_REQ_HIGH_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for ISC_REQ_HIGH_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for ISC_REQ_HIGH_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for ISC_REQ_HIGH_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct KERB_ADDRESS_TYPE(pub u32); #[doc = "*Required features: `\"Win32_Security_Authentication_Identity\"`*"] pub const DS_INET_ADDRESS: KERB_ADDRESS_TYPE = KERB_ADDRESS_TYPE(1u32); diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs index eb5567e7c9..6a62c70061 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs @@ -746,10 +746,10 @@ where } #[doc = "*Required features: `\"Win32_Security_Authorization\"`*"] #[inline] -pub unsafe fn FreeInheritedFromArray(pinheritarray: &[INHERITED_FROMW], pfnarray: ::core::option::Option<&FN_OBJECT_MGR_FUNCTIONS>) -> u32 { +pub unsafe fn FreeInheritedFromArray(pinheritarray: &[INHERITED_FROMW], pfnarray: ::core::option::Option<&FN_OBJECT_MGR_FUNCTS>) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn FreeInheritedFromArray(pinheritarray: *const INHERITED_FROMW, acecnt: u16, pfnarray: *const FN_OBJECT_MGR_FUNCTIONS) -> u32; + fn FreeInheritedFromArray(pinheritarray: *const INHERITED_FROMW, acecnt: u16, pfnarray: *const FN_OBJECT_MGR_FUNCTS) -> u32; } FreeInheritedFromArray(::core::mem::transmute(pinheritarray.as_ptr()), pinheritarray.len() as _, ::core::mem::transmute(pfnarray)) } @@ -810,28 +810,28 @@ pub unsafe fn GetExplicitEntriesFromAclW(pacl: &super::ACL, pccountofexplicitent #[doc = "*Required features: `\"Win32_Security_Authorization\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn GetInheritanceSourceA<'a, P0, P1>(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: u32, container: P1, pobjectclassguids: ::core::option::Option<&[*const ::windows::core::GUID]>, pacl: &super::ACL, pfnarray: ::core::option::Option<&FN_OBJECT_MGR_FUNCTIONS>, pgenericmapping: &super::GENERIC_MAPPING, pinheritarray: &mut INHERITED_FROMA) -> u32 +pub unsafe fn GetInheritanceSourceA<'a, P0, P1>(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: u32, container: P1, pobjectclassguids: ::core::option::Option<&[*const ::windows::core::GUID]>, pacl: &super::ACL, pfnarray: ::core::option::Option<&FN_OBJECT_MGR_FUNCTS>, pgenericmapping: &super::GENERIC_MAPPING, pinheritarray: &mut INHERITED_FROMA) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn GetInheritanceSourceA(pobjectname: ::windows::core::PCSTR, objecttype: SE_OBJECT_TYPE, securityinfo: u32, container: super::super::Foundation::BOOL, pobjectclassguids: *const *const ::windows::core::GUID, guidcount: u32, pacl: *const super::ACL, pfnarray: *const FN_OBJECT_MGR_FUNCTIONS, pgenericmapping: *const super::GENERIC_MAPPING, pinheritarray: *mut INHERITED_FROMA) -> u32; + fn GetInheritanceSourceA(pobjectname: ::windows::core::PCSTR, objecttype: SE_OBJECT_TYPE, securityinfo: u32, container: super::super::Foundation::BOOL, pobjectclassguids: *const *const ::windows::core::GUID, guidcount: u32, pacl: *const super::ACL, pfnarray: *const FN_OBJECT_MGR_FUNCTS, pgenericmapping: *const super::GENERIC_MAPPING, pinheritarray: *mut INHERITED_FROMA) -> u32; } GetInheritanceSourceA(pobjectname.into(), objecttype, securityinfo, container.into(), ::core::mem::transmute(pobjectclassguids.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pobjectclassguids.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(pacl), ::core::mem::transmute(pfnarray), ::core::mem::transmute(pgenericmapping), ::core::mem::transmute(pinheritarray)) } #[doc = "*Required features: `\"Win32_Security_Authorization\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn GetInheritanceSourceW<'a, P0, P1>(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: u32, container: P1, pobjectclassguids: ::core::option::Option<&[*const ::windows::core::GUID]>, pacl: &super::ACL, pfnarray: ::core::option::Option<&FN_OBJECT_MGR_FUNCTIONS>, pgenericmapping: &super::GENERIC_MAPPING, pinheritarray: &mut INHERITED_FROMW) -> u32 +pub unsafe fn GetInheritanceSourceW<'a, P0, P1>(pobjectname: P0, objecttype: SE_OBJECT_TYPE, securityinfo: u32, container: P1, pobjectclassguids: ::core::option::Option<&[*const ::windows::core::GUID]>, pacl: &super::ACL, pfnarray: ::core::option::Option<&FN_OBJECT_MGR_FUNCTS>, pgenericmapping: &super::GENERIC_MAPPING, pinheritarray: &mut INHERITED_FROMW) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn GetInheritanceSourceW(pobjectname: ::windows::core::PCWSTR, objecttype: SE_OBJECT_TYPE, securityinfo: u32, container: super::super::Foundation::BOOL, pobjectclassguids: *const *const ::windows::core::GUID, guidcount: u32, pacl: *const super::ACL, pfnarray: *const FN_OBJECT_MGR_FUNCTIONS, pgenericmapping: *const super::GENERIC_MAPPING, pinheritarray: *mut INHERITED_FROMW) -> u32; + fn GetInheritanceSourceW(pobjectname: ::windows::core::PCWSTR, objecttype: SE_OBJECT_TYPE, securityinfo: u32, container: super::super::Foundation::BOOL, pobjectclassguids: *const *const ::windows::core::GUID, guidcount: u32, pacl: *const super::ACL, pfnarray: *const FN_OBJECT_MGR_FUNCTS, pgenericmapping: *const super::GENERIC_MAPPING, pinheritarray: *mut INHERITED_FROMW) -> u32; } GetInheritanceSourceW(pobjectname.into(), objecttype, securityinfo, container.into(), ::core::mem::transmute(pobjectclassguids.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pobjectclassguids.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(pacl), ::core::mem::transmute(pfnarray), ::core::mem::transmute(pgenericmapping), ::core::mem::transmute(pinheritarray)) } @@ -12971,30 +12971,30 @@ impl ::core::default::Default for EXPLICIT_ACCESS_W { } #[repr(C)] #[doc = "*Required features: `\"Win32_Security_Authorization\"`*"] -pub struct FN_OBJECT_MGR_FUNCTIONS { +pub struct FN_OBJECT_MGR_FUNCTS { pub Placeholder: u32, } -impl ::core::marker::Copy for FN_OBJECT_MGR_FUNCTIONS {} -impl ::core::clone::Clone for FN_OBJECT_MGR_FUNCTIONS { +impl ::core::marker::Copy for FN_OBJECT_MGR_FUNCTS {} +impl ::core::clone::Clone for FN_OBJECT_MGR_FUNCTS { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for FN_OBJECT_MGR_FUNCTIONS { +impl ::core::fmt::Debug for FN_OBJECT_MGR_FUNCTS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FN_OBJECT_MGR_FUNCTIONS").field("Placeholder", &self.Placeholder).finish() + f.debug_struct("FN_OBJECT_MGR_FUNCTS").field("Placeholder", &self.Placeholder).finish() } } -unsafe impl ::windows::core::Abi for FN_OBJECT_MGR_FUNCTIONS { +unsafe impl ::windows::core::Abi for FN_OBJECT_MGR_FUNCTS { type Abi = Self; } -impl ::core::cmp::PartialEq for FN_OBJECT_MGR_FUNCTIONS { +impl ::core::cmp::PartialEq for FN_OBJECT_MGR_FUNCTS { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for FN_OBJECT_MGR_FUNCTIONS {} -impl ::core::default::Default for FN_OBJECT_MGR_FUNCTIONS { +impl ::core::cmp::Eq for FN_OBJECT_MGR_FUNCTS {} +impl ::core::default::Default for FN_OBJECT_MGR_FUNCTS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } diff --git a/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs index 7b4b315983..c146367103 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs @@ -1,12 +1,3 @@ -#[doc = "*Required features: `\"Win32_Security_Credentials\"`*"] -#[inline] -pub unsafe fn KeyCredentialManagerFreeInformation(keycredentialmanagerinfo: &KeyCredentialManagerInfo) { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn KeyCredentialManagerFreeInformation(keycredentialmanagerinfo: *const KeyCredentialManagerInfo); - } - KeyCredentialManagerFreeInformation(::core::mem::transmute(keycredentialmanagerinfo)) -} #[doc = "*Required features: `\"Win32_Security_Credentials\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -616,6 +607,15 @@ pub unsafe fn GetOpenCardNameW(param0: &mut OPENCARDNAMEW) -> i32 { } #[doc = "*Required features: `\"Win32_Security_Credentials\"`*"] #[inline] +pub unsafe fn KeyCredentialManagerFreeInformation(keycredentialmanagerinfo: &KeyCredentialManagerInfo) { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn KeyCredentialManagerFreeInformation(keycredentialmanagerinfo: *const KeyCredentialManagerInfo); + } + KeyCredentialManagerFreeInformation(::core::mem::transmute(keycredentialmanagerinfo)) +} +#[doc = "*Required features: `\"Win32_Security_Credentials\"`*"] +#[inline] pub unsafe fn KeyCredentialManagerGetInformation() -> ::windows::core::Result<*mut KeyCredentialManagerInfo> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/UI/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/UI/mod.rs index 0a453f408a..7d9f12a141 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/UI/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/UI/mod.rs @@ -853,6 +853,72 @@ impl ::core::fmt::Debug for CTL_MODIFY_REQUEST_OPERATION { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Security_Cryptography_UI\"`*"] +pub struct CERT_FILTER_DATA { + pub dwSize: u32, + pub cExtensionChecks: u32, + pub arrayExtensionChecks: *mut CERT_FILTER_EXTENSION_MATCH, + pub dwCheckingFlags: u32, +} +impl ::core::marker::Copy for CERT_FILTER_DATA {} +impl ::core::clone::Clone for CERT_FILTER_DATA { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for CERT_FILTER_DATA { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("CERT_FILTER_DATA").field("dwSize", &self.dwSize).field("cExtensionChecks", &self.cExtensionChecks).field("arrayExtensionChecks", &self.arrayExtensionChecks).field("dwCheckingFlags", &self.dwCheckingFlags).finish() + } +} +unsafe impl ::windows::core::Abi for CERT_FILTER_DATA { + type Abi = Self; +} +impl ::core::cmp::PartialEq for CERT_FILTER_DATA { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for CERT_FILTER_DATA {} +impl ::core::default::Default for CERT_FILTER_DATA { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Security_Cryptography_UI\"`*"] +pub struct CERT_FILTER_EXTENSION_MATCH { + pub szExtensionOID: ::windows::core::PCSTR, + pub dwTestOperation: u32, + pub pbTestData: *mut u8, + pub cbTestData: u32, +} +impl ::core::marker::Copy for CERT_FILTER_EXTENSION_MATCH {} +impl ::core::clone::Clone for CERT_FILTER_EXTENSION_MATCH { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for CERT_FILTER_EXTENSION_MATCH { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("CERT_FILTER_EXTENSION_MATCH").field("szExtensionOID", &self.szExtensionOID).field("dwTestOperation", &self.dwTestOperation).field("pbTestData", &self.pbTestData).field("cbTestData", &self.cbTestData).finish() + } +} +unsafe impl ::windows::core::Abi for CERT_FILTER_EXTENSION_MATCH { + type Abi = Self; +} +impl ::core::cmp::PartialEq for CERT_FILTER_EXTENSION_MATCH { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for CERT_FILTER_EXTENSION_MATCH {} +impl ::core::default::Default for CERT_FILTER_EXTENSION_MATCH { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Security_Cryptography_UI\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct CERT_SELECTUI_INPUT { @@ -1277,72 +1343,6 @@ impl ::core::default::Default for CERT_VIEWPROPERTIES_STRUCT_W { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Security_Cryptography_UI\"`*"] -pub struct CMFLTR { - pub dwSize: u32, - pub cExtensionChecks: u32, - pub arrayExtensionChecks: *mut CMOID, - pub dwCheckingFlags: u32, -} -impl ::core::marker::Copy for CMFLTR {} -impl ::core::clone::Clone for CMFLTR { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for CMFLTR { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("CMFLTR").field("dwSize", &self.dwSize).field("cExtensionChecks", &self.cExtensionChecks).field("arrayExtensionChecks", &self.arrayExtensionChecks).field("dwCheckingFlags", &self.dwCheckingFlags).finish() - } -} -unsafe impl ::windows::core::Abi for CMFLTR { - type Abi = Self; -} -impl ::core::cmp::PartialEq for CMFLTR { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for CMFLTR {} -impl ::core::default::Default for CMFLTR { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Security_Cryptography_UI\"`*"] -pub struct CMOID { - pub szExtensionOID: ::windows::core::PCSTR, - pub dwTestOperation: u32, - pub pbTestData: *mut u8, - pub cbTestData: u32, -} -impl ::core::marker::Copy for CMOID {} -impl ::core::clone::Clone for CMOID { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for CMOID { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("CMOID").field("szExtensionOID", &self.szExtensionOID).field("dwTestOperation", &self.dwTestOperation).field("pbTestData", &self.pbTestData).field("cbTestData", &self.cbTestData).finish() - } -} -unsafe impl ::windows::core::Abi for CMOID { - type Abi = Self; -} -impl ::core::cmp::PartialEq for CMOID { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for CMOID {} -impl ::core::default::Default for CMOID { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_Security_Cryptography_UI\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct CRYPTUI_CERT_MGR_STRUCT { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs index d4f5783da9..e5deabc9d7 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs @@ -26941,34 +26941,34 @@ unsafe impl ::windows::core::Abi for HCRYPTPROV_OR_NCRYPT_KEY_HANDLE { } #[repr(C)] #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] -pub struct HMAC_Info { +pub struct HMAC_INFO { pub HashAlgid: u32, pub pbInnerString: *mut u8, pub cbInnerString: u32, pub pbOuterString: *mut u8, pub cbOuterString: u32, } -impl ::core::marker::Copy for HMAC_Info {} -impl ::core::clone::Clone for HMAC_Info { +impl ::core::marker::Copy for HMAC_INFO {} +impl ::core::clone::Clone for HMAC_INFO { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for HMAC_Info { +impl ::core::fmt::Debug for HMAC_INFO { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("HMAC_Info").field("HashAlgid", &self.HashAlgid).field("pbInnerString", &self.pbInnerString).field("cbInnerString", &self.cbInnerString).field("pbOuterString", &self.pbOuterString).field("cbOuterString", &self.cbOuterString).finish() + f.debug_struct("HMAC_INFO").field("HashAlgid", &self.HashAlgid).field("pbInnerString", &self.pbInnerString).field("cbInnerString", &self.cbInnerString).field("pbOuterString", &self.pbOuterString).field("cbOuterString", &self.cbOuterString).finish() } } -unsafe impl ::windows::core::Abi for HMAC_Info { +unsafe impl ::windows::core::Abi for HMAC_INFO { type Abi = Self; } -impl ::core::cmp::PartialEq for HMAC_Info { +impl ::core::cmp::PartialEq for HMAC_INFO { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for HMAC_Info {} -impl ::core::default::Default for HMAC_Info { +impl ::core::cmp::Eq for HMAC_INFO {} +impl ::core::default::Default for HMAC_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -27633,31 +27633,31 @@ impl ::core::default::Default for NCRYPT_PCP_HMAC_AUTH_SIGNATURE_INFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_Security_Cryptography\"`*"] -pub struct NCRYPT_PCP_RAW_POLICYDIGEST { +pub struct NCRYPT_PCP_RAW_POLICYDIGEST_INFO { pub dwVersion: u32, pub cbDigest: u32, } -impl ::core::marker::Copy for NCRYPT_PCP_RAW_POLICYDIGEST {} -impl ::core::clone::Clone for NCRYPT_PCP_RAW_POLICYDIGEST { +impl ::core::marker::Copy for NCRYPT_PCP_RAW_POLICYDIGEST_INFO {} +impl ::core::clone::Clone for NCRYPT_PCP_RAW_POLICYDIGEST_INFO { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for NCRYPT_PCP_RAW_POLICYDIGEST { +impl ::core::fmt::Debug for NCRYPT_PCP_RAW_POLICYDIGEST_INFO { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("NCRYPT_PCP_RAW_POLICYDIGEST").field("dwVersion", &self.dwVersion).field("cbDigest", &self.cbDigest).finish() + f.debug_struct("NCRYPT_PCP_RAW_POLICYDIGEST_INFO").field("dwVersion", &self.dwVersion).field("cbDigest", &self.cbDigest).finish() } } -unsafe impl ::windows::core::Abi for NCRYPT_PCP_RAW_POLICYDIGEST { +unsafe impl ::windows::core::Abi for NCRYPT_PCP_RAW_POLICYDIGEST_INFO { type Abi = Self; } -impl ::core::cmp::PartialEq for NCRYPT_PCP_RAW_POLICYDIGEST { +impl ::core::cmp::PartialEq for NCRYPT_PCP_RAW_POLICYDIGEST_INFO { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for NCRYPT_PCP_RAW_POLICYDIGEST {} -impl ::core::default::Default for NCRYPT_PCP_RAW_POLICYDIGEST { +impl ::core::cmp::Eq for NCRYPT_PCP_RAW_POLICYDIGEST_INFO {} +impl ::core::default::Default for NCRYPT_PCP_RAW_POLICYDIGEST_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } diff --git a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs index cde48f6c44..c6ca915857 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs @@ -1,27 +1,5 @@ #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"] #[inline] -pub unsafe fn SrpHostingTerminate(r#type: SRPHOSTING_TYPE) { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn SrpHostingTerminate(r#type: SRPHOSTING_TYPE); - } - SrpHostingTerminate(r#type) -} -#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn SrpIsTokenService<'a, P0>(tokenhandle: P0, istokenservice: &mut u8) -> ::windows::core::Result<()> -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn SrpIsTokenService(tokenhandle: super::super::Foundation::HANDLE, istokenservice: *mut u8) -> super::super::Foundation::NTSTATUS; - } - SrpIsTokenService(tokenhandle.into(), ::core::mem::transmute(istokenservice)).ok() -} -#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"] -#[inline] pub unsafe fn ProtectFileToEnterpriseIdentity<'a, P0, P1>(fileorfolderpath: P0, identity: P1) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -125,6 +103,28 @@ pub unsafe fn SrpHostingInitialize(version: SRPHOSTING_VERSION, r#type: SRPHOSTI } SrpHostingInitialize(version, r#type, ::core::mem::transmute(pvdata), cbdata).ok() } +#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"] +#[inline] +pub unsafe fn SrpHostingTerminate(r#type: SRPHOSTING_TYPE) { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn SrpHostingTerminate(r#type: SRPHOSTING_TYPE); + } + SrpHostingTerminate(r#type) +} +#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn SrpIsTokenService<'a, P0>(tokenhandle: P0, istokenservice: &mut u8) -> ::windows::core::Result<()> +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn SrpIsTokenService(tokenhandle: super::super::Foundation::HANDLE, istokenservice: *mut u8) -> super::super::Foundation::NTSTATUS; + } + SrpIsTokenService(tokenhandle.into(), ::core::mem::transmute(istokenservice)).ok() +} #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[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 3844f87335..102753fab0 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs @@ -1,32 +1,6 @@ #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn GetCurrentClockTransactionManager<'a, P0>(transactionmanagerhandle: P0, tmvirtualclock: &mut i64) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn GetCurrentClockTransactionManager(transactionmanagerhandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> super::super::Foundation::BOOL; - } - GetCurrentClockTransactionManager(transactionmanagerhandle.into(), ::core::mem::transmute(tmvirtualclock)) -} -#[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn GetTransactionManagerId<'a, P0>(transactionmanagerhandle: P0, transactionmanagerid: &mut ::windows::core::GUID) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn GetTransactionManagerId(transactionmanagerhandle: super::super::Foundation::HANDLE, transactionmanagerid: *mut ::windows::core::GUID) -> super::super::Foundation::BOOL; - } - GetTransactionManagerId(transactionmanagerhandle.into(), ::core::mem::transmute(transactionmanagerid)) -} -#[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] pub unsafe fn AddLogContainer<'a, P0, P1>(hlog: P0, pcbcontainer: ::core::option::Option<&u64>, pwszcontainerpath: P1, preserved: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL where P0: ::std::convert::Into, @@ -1722,6 +1696,19 @@ where #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn GetCurrentClockTransactionManager<'a, P0>(transactionmanagerhandle: P0, tmvirtualclock: &mut i64) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn GetCurrentClockTransactionManager(transactionmanagerhandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> super::super::Foundation::BOOL; + } + GetCurrentClockTransactionManager(transactionmanagerhandle.into(), ::core::mem::transmute(tmvirtualclock)) +} +#[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn GetDiskFreeSpaceA<'a, P0>(lprootpathname: P0, lpsectorspercluster: ::core::option::Option<&mut u32>, lpbytespersector: ::core::option::Option<&mut u32>, lpnumberoffreeclusters: ::core::option::Option<&mut u32>, lptotalnumberofclusters: ::core::option::Option<&mut u32>) -> super::super::Foundation::BOOL where P0: ::std::convert::Into<::windows::core::PCSTR>, @@ -2572,6 +2559,19 @@ where #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn GetTransactionManagerId<'a, P0>(transactionmanagerhandle: P0, transactionmanagerid: &mut ::windows::core::GUID) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn GetTransactionManagerId(transactionmanagerhandle: super::super::Foundation::HANDLE, transactionmanagerid: *mut ::windows::core::GUID) -> super::super::Foundation::BOOL; + } + GetTransactionManagerId(transactionmanagerhandle.into(), ::core::mem::transmute(transactionmanagerid)) +} +#[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn GetVolumeInformationA<'a, P0>(lprootpathname: P0, lpvolumenamebuffer: ::core::option::Option<&mut [u8]>, lpvolumeserialnumber: ::core::option::Option<&mut u32>, lpmaximumcomponentlength: ::core::option::Option<&mut u32>, lpfilesystemflags: ::core::option::Option<&mut u32>, lpfilesystemnamebuffer: ::core::option::Option<&mut [u8]>) -> super::super::Foundation::BOOL where P0: ::std::convert::Into<::windows::core::PCSTR>, @@ -3412,13 +3412,13 @@ where #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn OpenFile<'a, P0>(lpfilename: P0, lpreopenbuff: &mut OFSTRUCT, ustyle: LZOPENFILE_STYLE) -> i32 +pub unsafe fn OpenFile<'a, P0>(lpfilename: P0, lpreopenbuff: &mut OFSTRUCT, ustyle: u32) -> i32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn OpenFile(lpfilename: ::windows::core::PCSTR, lpreopenbuff: *mut OFSTRUCT, ustyle: LZOPENFILE_STYLE) -> i32; + fn OpenFile(lpfilename: ::windows::core::PCSTR, lpreopenbuff: *mut OFSTRUCT, ustyle: u32) -> i32; } OpenFile(lpfilename.into(), ::core::mem::transmute(lpreopenbuff), ustyle) } @@ -7998,39 +7998,39 @@ impl ::core::fmt::Debug for LPPROGRESS_ROUTINE_CALLBACK_REASON { #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct LZOPENFILE_STYLE(pub u32); +pub struct LZOPENFILE_STYLE(pub u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_CANCEL: LZOPENFILE_STYLE = LZOPENFILE_STYLE(2048u32); +pub const OF_CANCEL: LZOPENFILE_STYLE = LZOPENFILE_STYLE(2048u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_CREATE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(4096u32); +pub const OF_CREATE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(4096u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_DELETE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(512u32); +pub const OF_DELETE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(512u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_EXIST: LZOPENFILE_STYLE = LZOPENFILE_STYLE(16384u32); +pub const OF_EXIST: LZOPENFILE_STYLE = LZOPENFILE_STYLE(16384u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_PARSE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(256u32); +pub const OF_PARSE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(256u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_PROMPT: LZOPENFILE_STYLE = LZOPENFILE_STYLE(8192u32); +pub const OF_PROMPT: LZOPENFILE_STYLE = LZOPENFILE_STYLE(8192u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_READ: LZOPENFILE_STYLE = LZOPENFILE_STYLE(0u32); +pub const OF_READ: LZOPENFILE_STYLE = LZOPENFILE_STYLE(0u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_READWRITE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(2u32); +pub const OF_READWRITE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(2u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_REOPEN: LZOPENFILE_STYLE = LZOPENFILE_STYLE(32768u32); +pub const OF_REOPEN: LZOPENFILE_STYLE = LZOPENFILE_STYLE(32768u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_SHARE_DENY_NONE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(64u32); +pub const OF_SHARE_DENY_NONE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(64u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_SHARE_DENY_READ: LZOPENFILE_STYLE = LZOPENFILE_STYLE(48u32); +pub const OF_SHARE_DENY_READ: LZOPENFILE_STYLE = LZOPENFILE_STYLE(48u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_SHARE_DENY_WRITE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(32u32); +pub const OF_SHARE_DENY_WRITE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(32u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_SHARE_EXCLUSIVE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(16u32); +pub const OF_SHARE_EXCLUSIVE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(16u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_WRITE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(1u32); +pub const OF_WRITE: LZOPENFILE_STYLE = LZOPENFILE_STYLE(1u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_SHARE_COMPAT: LZOPENFILE_STYLE = LZOPENFILE_STYLE(0u32); +pub const OF_SHARE_COMPAT: LZOPENFILE_STYLE = LZOPENFILE_STYLE(0u16); #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] -pub const OF_VERIFY: LZOPENFILE_STYLE = LZOPENFILE_STYLE(1024u32); +pub const OF_VERIFY: LZOPENFILE_STYLE = LZOPENFILE_STYLE(1024u16); impl ::core::marker::Copy for LZOPENFILE_STYLE {} impl ::core::clone::Clone for LZOPENFILE_STYLE { fn clone(&self) -> Self { @@ -18326,7 +18326,7 @@ impl ::core::default::Default for TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] pub struct TXF_ID { pub Anonymous: TXF_ID_0, @@ -18377,7 +18377,7 @@ impl ::core::default::Default for TXF_ID_0 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] pub struct TXF_LOG_RECORD_AFFECTED_FILE { pub Version: u16, @@ -18408,7 +18408,7 @@ impl ::core::default::Default for TXF_LOG_RECORD_AFFECTED_FILE { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_Storage_FileSystem\"`*"] pub struct TXF_LOG_RECORD_BASE { pub Version: u16, @@ -18421,11 +18421,6 @@ impl ::core::clone::Clone for TXF_LOG_RECORD_BASE { *self } } -impl ::core::fmt::Debug for TXF_LOG_RECORD_BASE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("TXF_LOG_RECORD_BASE").field("Version", &self.Version).field("RecordType", &self.RecordType).field("RecordLength", &self.RecordLength).finish() - } -} unsafe impl ::windows::core::Abi for TXF_LOG_RECORD_BASE { type Abi = Self; } 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 122d7bff67..e9b8ca54ac 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs @@ -7442,7 +7442,7 @@ impl IStreamConcatenate { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::super::System::Com::LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -7452,7 +7452,7 @@ impl IStreamConcatenate { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: super::super::System::Com::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -7637,7 +7637,7 @@ impl IStreamInterleave { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::super::System::Com::LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -7647,7 +7647,7 @@ impl IStreamInterleave { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: super::super::System::Com::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -7798,7 +7798,7 @@ impl IStreamPseudoRandomBased { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::super::System::Com::LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -7808,7 +7808,7 @@ impl IStreamPseudoRandomBased { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: super::super::System::Com::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs index c309bb4ea2..83abf121ab 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Jet/mod.rs @@ -294,26 +294,26 @@ where #[doc = "*Required features: `\"Win32_Storage_Jet\"`, `\"Win32_Storage_StructuredStorage\"`*"] #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] -pub unsafe fn JetCompactA<'a, P0>(sesid: P0, szdatabasesrc: &i8, szdatabasedest: &i8, pfnstatus: JET_PFNSTATUS, pconvert: ::core::option::Option<&CONVERT_A>, grbit: u32) -> i32 +pub unsafe fn JetCompactA<'a, P0>(sesid: P0, szdatabasesrc: &i8, szdatabasedest: &i8, pfnstatus: JET_PFNSTATUS, pconvert: ::core::option::Option<&JET_CONVERT_A>, grbit: u32) -> i32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn JetCompactA(sesid: super::StructuredStorage::JET_SESID, szdatabasesrc: *const i8, szdatabasedest: *const i8, pfnstatus: *mut ::core::ffi::c_void, pconvert: *const CONVERT_A, grbit: u32) -> i32; + fn JetCompactA(sesid: super::StructuredStorage::JET_SESID, szdatabasesrc: *const i8, szdatabasedest: *const i8, pfnstatus: *mut ::core::ffi::c_void, pconvert: *const JET_CONVERT_A, grbit: u32) -> i32; } JetCompactA(sesid.into(), ::core::mem::transmute(szdatabasesrc), ::core::mem::transmute(szdatabasedest), ::core::mem::transmute(pfnstatus), ::core::mem::transmute(pconvert), grbit) } #[doc = "*Required features: `\"Win32_Storage_Jet\"`, `\"Win32_Storage_StructuredStorage\"`*"] #[cfg(feature = "Win32_Storage_StructuredStorage")] #[inline] -pub unsafe fn JetCompactW<'a, P0>(sesid: P0, szdatabasesrc: &u16, szdatabasedest: &u16, pfnstatus: JET_PFNSTATUS, pconvert: ::core::option::Option<&CONVERT_W>, grbit: u32) -> i32 +pub unsafe fn JetCompactW<'a, P0>(sesid: P0, szdatabasesrc: &u16, szdatabasedest: &u16, pfnstatus: JET_PFNSTATUS, pconvert: ::core::option::Option<&JET_CONVERT_W>, grbit: u32) -> i32 where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn JetCompactW(sesid: super::StructuredStorage::JET_SESID, szdatabasesrc: *const u16, szdatabasedest: *const u16, pfnstatus: *mut ::core::ffi::c_void, pconvert: *const CONVERT_W, grbit: u32) -> i32; + fn JetCompactW(sesid: super::StructuredStorage::JET_SESID, szdatabasesrc: *const u16, szdatabasedest: *const u16, pfnstatus: *mut ::core::ffi::c_void, pconvert: *const JET_CONVERT_W, grbit: u32) -> i32; } JetCompactW(sesid.into(), ::core::mem::transmute(szdatabasesrc), ::core::mem::transmute(szdatabasedest), ::core::mem::transmute(pfnstatus), ::core::mem::transmute(pconvert), grbit) } @@ -4972,170 +4972,6 @@ impl ::core::fmt::Debug for JET_RELOP { f.debug_tuple("JET_RELOP").field(&self.0).finish() } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] -pub struct CONVERT_A { - pub szOldDll: ::windows::core::PSTR, - pub Anonymous: CONVERT_A_0, -} -impl ::core::marker::Copy for CONVERT_A {} -impl ::core::clone::Clone for CONVERT_A { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for CONVERT_A { - type Abi = Self; -} -impl ::core::cmp::PartialEq for CONVERT_A { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for CONVERT_A {} -impl ::core::default::Default for CONVERT_A { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] -pub union CONVERT_A_0 { - pub fFlags: u32, - pub Anonymous: CONVERT_A_0_0, -} -impl ::core::marker::Copy for CONVERT_A_0 {} -impl ::core::clone::Clone for CONVERT_A_0 { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for CONVERT_A_0 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for CONVERT_A_0 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for CONVERT_A_0 {} -impl ::core::default::Default for CONVERT_A_0 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] -pub struct CONVERT_A_0_0 { - pub _bitfield: u32, -} -impl ::core::marker::Copy for CONVERT_A_0_0 {} -impl ::core::clone::Clone for CONVERT_A_0_0 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for CONVERT_A_0_0 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("CONVERT_A_0_0").field("_bitfield", &self._bitfield).finish() - } -} -unsafe impl ::windows::core::Abi for CONVERT_A_0_0 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for CONVERT_A_0_0 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for CONVERT_A_0_0 {} -impl ::core::default::Default for CONVERT_A_0_0 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] -pub struct CONVERT_W { - pub szOldDll: ::windows::core::PWSTR, - pub Anonymous: CONVERT_W_0, -} -impl ::core::marker::Copy for CONVERT_W {} -impl ::core::clone::Clone for CONVERT_W { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for CONVERT_W { - type Abi = Self; -} -impl ::core::cmp::PartialEq for CONVERT_W { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for CONVERT_W {} -impl ::core::default::Default for CONVERT_W { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] -pub union CONVERT_W_0 { - pub fFlags: u32, - pub Anonymous: CONVERT_W_0_0, -} -impl ::core::marker::Copy for CONVERT_W_0 {} -impl ::core::clone::Clone for CONVERT_W_0 { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for CONVERT_W_0 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for CONVERT_W_0 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for CONVERT_W_0 {} -impl ::core::default::Default for CONVERT_W_0 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] -pub struct CONVERT_W_0_0 { - pub _bitfield: u32, -} -impl ::core::marker::Copy for CONVERT_W_0_0 {} -impl ::core::clone::Clone for CONVERT_W_0_0 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for CONVERT_W_0_0 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("CONVERT_W_0_0").field("_bitfield", &self._bitfield).finish() - } -} -unsafe impl ::windows::core::Abi for CONVERT_W_0_0 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for CONVERT_W_0_0 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for CONVERT_W_0_0 {} -impl ::core::default::Default for CONVERT_W_0_0 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_Storage_Jet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -5808,6 +5644,170 @@ impl ::core::default::Default for JET_CONDITIONALCOLUMN_W { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] +pub struct JET_CONVERT_A { + pub szOldDll: ::windows::core::PSTR, + pub Anonymous: JET_CONVERT_A_0, +} +impl ::core::marker::Copy for JET_CONVERT_A {} +impl ::core::clone::Clone for JET_CONVERT_A { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for JET_CONVERT_A { + type Abi = Self; +} +impl ::core::cmp::PartialEq for JET_CONVERT_A { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for JET_CONVERT_A {} +impl ::core::default::Default for JET_CONVERT_A { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] +pub union JET_CONVERT_A_0 { + pub fFlags: u32, + pub Anonymous: JET_CONVERT_A_0_0, +} +impl ::core::marker::Copy for JET_CONVERT_A_0 {} +impl ::core::clone::Clone for JET_CONVERT_A_0 { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for JET_CONVERT_A_0 { + type Abi = Self; +} +impl ::core::cmp::PartialEq for JET_CONVERT_A_0 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for JET_CONVERT_A_0 {} +impl ::core::default::Default for JET_CONVERT_A_0 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] +pub struct JET_CONVERT_A_0_0 { + pub _bitfield: u32, +} +impl ::core::marker::Copy for JET_CONVERT_A_0_0 {} +impl ::core::clone::Clone for JET_CONVERT_A_0_0 { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for JET_CONVERT_A_0_0 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("JET_CONVERT_A_0_0").field("_bitfield", &self._bitfield).finish() + } +} +unsafe impl ::windows::core::Abi for JET_CONVERT_A_0_0 { + type Abi = Self; +} +impl ::core::cmp::PartialEq for JET_CONVERT_A_0_0 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for JET_CONVERT_A_0_0 {} +impl ::core::default::Default for JET_CONVERT_A_0_0 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] +pub struct JET_CONVERT_W { + pub szOldDll: ::windows::core::PWSTR, + pub Anonymous: JET_CONVERT_W_0, +} +impl ::core::marker::Copy for JET_CONVERT_W {} +impl ::core::clone::Clone for JET_CONVERT_W { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for JET_CONVERT_W { + type Abi = Self; +} +impl ::core::cmp::PartialEq for JET_CONVERT_W { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for JET_CONVERT_W {} +impl ::core::default::Default for JET_CONVERT_W { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] +pub union JET_CONVERT_W_0 { + pub fFlags: u32, + pub Anonymous: JET_CONVERT_W_0_0, +} +impl ::core::marker::Copy for JET_CONVERT_W_0 {} +impl ::core::clone::Clone for JET_CONVERT_W_0 { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for JET_CONVERT_W_0 { + type Abi = Self; +} +impl ::core::cmp::PartialEq for JET_CONVERT_W_0 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for JET_CONVERT_W_0 {} +impl ::core::default::Default for JET_CONVERT_W_0 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Jet\"`*"] +pub struct JET_CONVERT_W_0_0 { + pub _bitfield: u32, +} +impl ::core::marker::Copy for JET_CONVERT_W_0_0 {} +impl ::core::clone::Clone for JET_CONVERT_W_0_0 { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for JET_CONVERT_W_0_0 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("JET_CONVERT_W_0_0").field("_bitfield", &self._bitfield).finish() + } +} +unsafe impl ::windows::core::Abi for JET_CONVERT_W_0_0 { + type Abi = Self; +} +impl ::core::cmp::PartialEq for JET_CONVERT_W_0_0 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for JET_CONVERT_W_0_0 {} +impl ::core::default::Default for JET_CONVERT_W_0_0 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_Storage_Jet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct JET_DBINFOMISC { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs index 1c16530933..63833d6550 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs @@ -9482,67 +9482,67 @@ pub const XpsSignatureManager: ::windows::core::GUID = ::windows::core::GUID::fr #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct DEVICE_CAPABILITIES(pub u32); +pub struct DEVICE_CAPABILITIES(pub u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_BINNAMES: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(12u32); +pub const DC_BINNAMES: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(12u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_BINS: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(6u32); +pub const DC_BINS: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(6u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_COLLATE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(22u32); +pub const DC_COLLATE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(22u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_COLORDEVICE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(32u32); +pub const DC_COLORDEVICE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(32u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_COPIES: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(18u32); +pub const DC_COPIES: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(18u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_DRIVER: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(11u32); +pub const DC_DRIVER: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(11u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_DUPLEX: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(7u32); +pub const DC_DUPLEX: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(7u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_ENUMRESOLUTIONS: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(13u32); +pub const DC_ENUMRESOLUTIONS: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(13u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_EXTRA: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(9u32); +pub const DC_EXTRA: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(9u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_FIELDS: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(1u32); +pub const DC_FIELDS: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(1u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_FILEDEPENDENCIES: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(14u32); +pub const DC_FILEDEPENDENCIES: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(14u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_MAXEXTENT: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(5u32); +pub const DC_MAXEXTENT: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(5u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_MEDIAREADY: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(29u32); +pub const DC_MEDIAREADY: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(29u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_MEDIATYPENAMES: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(34u32); +pub const DC_MEDIATYPENAMES: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(34u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_MEDIATYPES: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(35u32); +pub const DC_MEDIATYPES: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(35u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_MINEXTENT: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(4u32); +pub const DC_MINEXTENT: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(4u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_ORIENTATION: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(17u32); +pub const DC_ORIENTATION: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(17u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_NUP: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(33u32); +pub const DC_NUP: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(33u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PAPERNAMES: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(16u32); +pub const DC_PAPERNAMES: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(16u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PAPERS: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(2u32); +pub const DC_PAPERS: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(2u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PAPERSIZE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(3u32); +pub const DC_PAPERSIZE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(3u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PERSONALITY: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(25u32); +pub const DC_PERSONALITY: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(25u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PRINTERMEM: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(28u32); +pub const DC_PRINTERMEM: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(28u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PRINTRATE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(26u32); +pub const DC_PRINTRATE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(26u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PRINTRATEPPM: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(31u32); +pub const DC_PRINTRATEPPM: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(31u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_PRINTRATEUNIT: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(27u32); +pub const DC_PRINTRATEUNIT: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(27u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_SIZE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(8u32); +pub const DC_SIZE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(8u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_STAPLE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(30u32); +pub const DC_STAPLE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(30u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_TRUETYPE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(15u32); +pub const DC_TRUETYPE: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(15u16); #[doc = "*Required features: `\"Win32_Storage_Xps\"`*"] -pub const DC_VERSION: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(10u32); +pub const DC_VERSION: DEVICE_CAPABILITIES = DEVICE_CAPABILITIES(10u16); impl ::core::marker::Copy for DEVICE_CAPABILITIES {} impl ::core::clone::Clone for DEVICE_CAPABILITIES { fn clone(&self) -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/System/AddressBook/impl.rs b/crates/libs/windows/src/Windows/Win32/System/AddressBook/impl.rs index 55bbe9efdb..b1c630fc18 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AddressBook/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AddressBook/impl.rs @@ -3,7 +3,7 @@ pub trait IABContainer_Impl: Sized + IMAPIProp_Impl + IMAPIContainer_Impl { fn CreateEntry(&self, cbentryid: u32, lpentryid: *const ENTRYID, ulcreateflags: u32) -> ::windows::core::Result; fn CopyEntries(&self, lpentries: *const SBinaryArray, uluiparam: usize, lpprogress: &::core::option::Option, ulflags: u32) -> ::windows::core::Result<()>; fn DeleteEntries(&self, lpentries: *const SBinaryArray, ulflags: u32) -> ::windows::core::Result<()>; - fn ResolveNames(&self, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST) -> ::windows::core::Result<_flaglist>; + fn ResolveNames(&self, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl ::windows::core::RuntimeName for IABContainer {} @@ -31,7 +31,7 @@ impl IABContainer_Vtbl { let this = (*this).get_impl(); this.DeleteEntries(::core::mem::transmute_copy(&lpentries), ::core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn ResolveNames, Impl: IABContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST, lpflaglist: *mut _flaglist) -> ::windows::core::HRESULT { + unsafe extern "system" fn ResolveNames, Impl: IABContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST, lpflaglist: *mut FlagList) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ResolveNames(::core::mem::transmute_copy(&lpproptagarray), ::core::mem::transmute_copy(&ulflags), ::core::mem::transmute_copy(&lpadrlist)) { @@ -214,7 +214,7 @@ pub trait IDistList_Impl: Sized + IMAPIProp_Impl + IMAPIContainer_Impl { fn CreateEntry(&self, cbentryid: u32, lpentryid: *const ENTRYID, ulcreateflags: u32) -> ::windows::core::Result; fn CopyEntries(&self, lpentries: *const SBinaryArray, uluiparam: usize, lpprogress: &::core::option::Option, ulflags: u32) -> ::windows::core::Result<()>; fn DeleteEntries(&self, lpentries: *const SBinaryArray, ulflags: u32) -> ::windows::core::Result<()>; - fn ResolveNames(&self, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST) -> ::windows::core::Result<_flaglist>; + fn ResolveNames(&self, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl ::windows::core::RuntimeName for IDistList {} @@ -242,7 +242,7 @@ impl IDistList_Vtbl { let this = (*this).get_impl(); this.DeleteEntries(::core::mem::transmute_copy(&lpentries), ::core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn ResolveNames, Impl: IDistList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST, lpflaglist: *mut _flaglist) -> ::windows::core::HRESULT { + unsafe extern "system" fn ResolveNames, Impl: IDistList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST, lpflaglist: *mut FlagList) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ResolveNames(::core::mem::transmute_copy(&lpproptagarray), ::core::mem::transmute_copy(&ulflags), ::core::mem::transmute_copy(&lpadrlist)) { diff --git a/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs b/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs index a9807abbf7..3e0269feaa 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs @@ -676,9 +676,9 @@ impl IABContainer { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ResolveNames(&self, lpproptagarray: ::core::option::Option<&SPropTagArray>, ulflags: u32, lpadrlist: &ADRLIST) -> ::windows::core::Result<_flaglist> { + pub unsafe fn ResolveNames(&self, lpproptagarray: ::core::option::Option<&SPropTagArray>, ulflags: u32, lpadrlist: &ADRLIST) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ResolveNames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(lpproptagarray), ulflags, ::core::mem::transmute(lpadrlist), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<_flaglist>(result__) + (::windows::core::Interface::vtable(self).ResolveNames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(lpproptagarray), ulflags, ::core::mem::transmute(lpadrlist), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -754,7 +754,7 @@ pub struct IABContainer_Vtbl { pub CopyEntries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpentries: *const SBinaryArray, uluiparam: usize, lpprogress: *mut ::core::ffi::c_void, ulflags: u32) -> ::windows::core::HRESULT, pub DeleteEntries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpentries: *const SBinaryArray, ulflags: u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ResolveNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST, lpflaglist: *mut _flaglist) -> ::windows::core::HRESULT, + pub ResolveNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST, lpflaglist: *mut FlagList) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] ResolveNames: usize, } @@ -1157,9 +1157,9 @@ impl IDistList { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ResolveNames(&self, lpproptagarray: ::core::option::Option<&SPropTagArray>, ulflags: u32, lpadrlist: &ADRLIST) -> ::windows::core::Result<_flaglist> { + pub unsafe fn ResolveNames(&self, lpproptagarray: ::core::option::Option<&SPropTagArray>, ulflags: u32, lpadrlist: &ADRLIST) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ResolveNames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(lpproptagarray), ulflags, ::core::mem::transmute(lpadrlist), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<_flaglist>(result__) + (::windows::core::Interface::vtable(self).ResolveNames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(lpproptagarray), ulflags, ::core::mem::transmute(lpadrlist), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1235,7 +1235,7 @@ pub struct IDistList_Vtbl { pub CopyEntries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpentries: *const SBinaryArray, uluiparam: usize, lpprogress: *mut ::core::ffi::c_void, ulflags: u32) -> ::windows::core::HRESULT, pub DeleteEntries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpentries: *const SBinaryArray, ulflags: u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ResolveNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST, lpflaglist: *mut _flaglist) -> ::windows::core::HRESULT, + pub ResolveNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST, lpflaglist: *mut FlagList) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] ResolveNames: usize, } @@ -4668,6 +4668,37 @@ impl ::core::default::Default for FLATMTSIDLIST { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_AddressBook\"`*"] +pub struct FlagList { + pub cFlags: u32, + pub ulFlag: [u32; 1], +} +impl ::core::marker::Copy for FlagList {} +impl ::core::clone::Clone for FlagList { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for FlagList { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FlagList").field("cFlags", &self.cFlags).field("ulFlag", &self.ulFlag).finish() + } +} +unsafe impl ::windows::core::Abi for FlagList { + type Abi = Self; +} +impl ::core::cmp::PartialEq for FlagList { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for FlagList {} +impl ::core::default::Default for FlagList { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_AddressBook\"`*"] pub struct MAPIERROR { pub ulVersion: u32, pub lpszError: *mut i8, @@ -5710,7 +5741,7 @@ impl ::core::default::Default for SPropTagArray { pub struct SPropValue { pub ulPropTag: u32, pub dwAlignPad: u32, - pub Value: _PV, + pub Value: __UPV, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl ::core::marker::Copy for SPropValue {} @@ -6375,9 +6406,11 @@ impl ::core::default::Default for WAB_PARAM { } } #[repr(C)] +pub struct _WABACTIONITEM(pub u8); +#[repr(C)] #[doc = "*Required features: `\"Win32_System_AddressBook\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -pub union _PV { +pub union __UPV { pub i: i16, pub l: i32, pub ul: u32, @@ -6408,60 +6441,27 @@ pub union _PV { pub x: i32, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::marker::Copy for _PV {} +impl ::core::marker::Copy for __UPV {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::clone::Clone for _PV { +impl ::core::clone::Clone for __UPV { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -unsafe impl ::windows::core::Abi for _PV { +unsafe impl ::windows::core::Abi for __UPV { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::cmp::PartialEq for _PV { +impl ::core::cmp::PartialEq for __UPV { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_PV>()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<__UPV>()) == 0 } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::cmp::Eq for _PV {} +impl ::core::cmp::Eq for __UPV {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::default::Default for _PV { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct _WABACTIONITEM(pub u8); -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_AddressBook\"`*"] -pub struct _flaglist { - pub cFlags: u32, - pub ulFlag: [u32; 1], -} -impl ::core::marker::Copy for _flaglist {} -impl ::core::clone::Clone for _flaglist { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _flaglist { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_flaglist").field("cFlags", &self.cFlags).field("ulFlag", &self.ulFlag).finish() - } -} -unsafe impl ::windows::core::Abi for _flaglist { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _flaglist { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_flaglist>()) == 0 } - } -} -impl ::core::cmp::Eq for _flaglist {} -impl ::core::default::Default for _flaglist { +impl ::core::default::Default for __UPV { fn default() -> Self { unsafe { ::core::mem::zeroed() } } diff --git a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs index 64df7f2267..1b75106097 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs @@ -1261,25 +1261,25 @@ where } #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] #[inline] -pub unsafe fn MsiEnableLogA<'a, P0>(dwlogmode: INSTALLOGMODE, szlogfile: P0, dwlogattributes: u32) -> u32 +pub unsafe fn MsiEnableLogA<'a, P0>(dwlogmode: INSTALLLOGMODE, szlogfile: P0, dwlogattributes: u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn MsiEnableLogA(dwlogmode: INSTALLOGMODE, szlogfile: ::windows::core::PCSTR, dwlogattributes: u32) -> u32; + fn MsiEnableLogA(dwlogmode: INSTALLLOGMODE, szlogfile: ::windows::core::PCSTR, dwlogattributes: u32) -> u32; } MsiEnableLogA(dwlogmode, szlogfile.into(), dwlogattributes) } #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] #[inline] -pub unsafe fn MsiEnableLogW<'a, P0>(dwlogmode: INSTALLOGMODE, szlogfile: P0, dwlogattributes: u32) -> u32 +pub unsafe fn MsiEnableLogW<'a, P0>(dwlogmode: INSTALLLOGMODE, szlogfile: P0, dwlogattributes: u32) -> u32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn MsiEnableLogW(dwlogmode: INSTALLOGMODE, szlogfile: ::windows::core::PCWSTR, dwlogattributes: u32) -> u32; + fn MsiEnableLogW(dwlogmode: INSTALLLOGMODE, szlogfile: ::windows::core::PCWSTR, dwlogattributes: u32) -> u32; } MsiEnableLogW(dwlogmode, szlogfile.into(), dwlogattributes) } @@ -9661,6 +9661,75 @@ impl ::core::fmt::Debug for INSTALLLOGATTRIBUTES { #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct INSTALLLOGMODE(pub i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_FATALEXIT: INSTALLLOGMODE = INSTALLLOGMODE(1i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_ERROR: INSTALLLOGMODE = INSTALLLOGMODE(2i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_WARNING: INSTALLLOGMODE = INSTALLLOGMODE(4i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_USER: INSTALLLOGMODE = INSTALLLOGMODE(8i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_INFO: INSTALLLOGMODE = INSTALLLOGMODE(16i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_RESOLVESOURCE: INSTALLLOGMODE = INSTALLLOGMODE(64i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_OUTOFDISKSPACE: INSTALLLOGMODE = INSTALLLOGMODE(128i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_ACTIONSTART: INSTALLLOGMODE = INSTALLLOGMODE(256i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_ACTIONDATA: INSTALLLOGMODE = INSTALLLOGMODE(512i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_COMMONDATA: INSTALLLOGMODE = INSTALLLOGMODE(2048i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_PROPERTYDUMP: INSTALLLOGMODE = INSTALLLOGMODE(1024i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_VERBOSE: INSTALLLOGMODE = INSTALLLOGMODE(4096i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_EXTRADEBUG: INSTALLLOGMODE = INSTALLLOGMODE(8192i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_LOGONLYONERROR: INSTALLLOGMODE = INSTALLLOGMODE(16384i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_LOGPERFORMANCE: INSTALLLOGMODE = INSTALLLOGMODE(32768i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_PROGRESS: INSTALLLOGMODE = INSTALLLOGMODE(1024i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_INITIALIZE: INSTALLLOGMODE = INSTALLLOGMODE(4096i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_TERMINATE: INSTALLLOGMODE = INSTALLLOGMODE(8192i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_SHOWDIALOG: INSTALLLOGMODE = INSTALLLOGMODE(16384i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_FILESINUSE: INSTALLLOGMODE = INSTALLLOGMODE(32i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_RMFILESINUSE: INSTALLLOGMODE = INSTALLLOGMODE(33554432i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_INSTALLSTART: INSTALLLOGMODE = INSTALLLOGMODE(67108864i32); +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub const INSTALLLOGMODE_INSTALLEND: INSTALLLOGMODE = INSTALLLOGMODE(134217728i32); +impl ::core::marker::Copy for INSTALLLOGMODE {} +impl ::core::clone::Clone for INSTALLLOGMODE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for INSTALLLOGMODE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for INSTALLLOGMODE { + type Abi = Self; +} +impl ::core::fmt::Debug for INSTALLLOGMODE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("INSTALLLOGMODE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct INSTALLMESSAGE(pub i32); #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub const INSTALLMESSAGE_FATALEXIT: INSTALLMESSAGE = INSTALLMESSAGE(0i32); @@ -9755,75 +9824,6 @@ impl ::core::fmt::Debug for INSTALLMODE { #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct INSTALLOGMODE(pub i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_FATALEXIT: INSTALLOGMODE = INSTALLOGMODE(1i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_ERROR: INSTALLOGMODE = INSTALLOGMODE(2i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_WARNING: INSTALLOGMODE = INSTALLOGMODE(4i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_USER: INSTALLOGMODE = INSTALLOGMODE(8i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_INFO: INSTALLOGMODE = INSTALLOGMODE(16i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_RESOLVESOURCE: INSTALLOGMODE = INSTALLOGMODE(64i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_OUTOFDISKSPACE: INSTALLOGMODE = INSTALLOGMODE(128i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_ACTIONSTART: INSTALLOGMODE = INSTALLOGMODE(256i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_ACTIONDATA: INSTALLOGMODE = INSTALLOGMODE(512i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_COMMONDATA: INSTALLOGMODE = INSTALLOGMODE(2048i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_PROPERTYDUMP: INSTALLOGMODE = INSTALLOGMODE(1024i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_VERBOSE: INSTALLOGMODE = INSTALLOGMODE(4096i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_EXTRADEBUG: INSTALLOGMODE = INSTALLOGMODE(8192i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_LOGONLYONERROR: INSTALLOGMODE = INSTALLOGMODE(16384i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_LOGPERFORMANCE: INSTALLOGMODE = INSTALLOGMODE(32768i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_PROGRESS: INSTALLOGMODE = INSTALLOGMODE(1024i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_INITIALIZE: INSTALLOGMODE = INSTALLOGMODE(4096i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_TERMINATE: INSTALLOGMODE = INSTALLOGMODE(8192i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_SHOWDIALOG: INSTALLOGMODE = INSTALLOGMODE(16384i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_FILESINUSE: INSTALLOGMODE = INSTALLOGMODE(32i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_RMFILESINUSE: INSTALLOGMODE = INSTALLOGMODE(33554432i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_INSTALLSTART: INSTALLOGMODE = INSTALLOGMODE(67108864i32); -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub const INSTALLLOGMODE_INSTALLEND: INSTALLOGMODE = INSTALLOGMODE(134217728i32); -impl ::core::marker::Copy for INSTALLOGMODE {} -impl ::core::clone::Clone for INSTALLOGMODE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for INSTALLOGMODE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for INSTALLOGMODE { - type Abi = Self; -} -impl ::core::fmt::Debug for INSTALLOGMODE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("INSTALLOGMODE").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct INSTALLSTATE(pub i32); #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub const INSTALLSTATE_NOTUSED: INSTALLSTATE = INSTALLSTATE(-7i32); @@ -13882,6 +13882,37 @@ impl ::core::default::Default for PMSIHANDLE { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] +pub struct PM_APPTASKTYPE { + pub ProductID: ::windows::core::GUID, + pub TaskType: PM_TASK_TYPE, +} +impl ::core::marker::Copy for PM_APPTASKTYPE {} +impl ::core::clone::Clone for PM_APPTASKTYPE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for PM_APPTASKTYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("PM_APPTASKTYPE").field("ProductID", &self.ProductID).field("TaskType", &self.TaskType).finish() + } +} +unsafe impl ::windows::core::Abi for PM_APPTASKTYPE { + type Abi = Self; +} +impl ::core::cmp::PartialEq for PM_APPTASKTYPE { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for PM_APPTASKTYPE {} +impl ::core::default::Default for PM_APPTASKTYPE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_BSATASKID { pub ProductID: ::windows::core::GUID, pub TaskID: ::windows::core::BSTR, @@ -13975,7 +14006,7 @@ pub union PM_ENUM_FILTER_0 { pub Tasktype: PM_TASK_TYPE, pub TaskProductID: ::windows::core::GUID, pub TileProductID: ::windows::core::GUID, - pub AppTaskType: _tagAPPTASKTYPE, + pub AppTaskType: PM_APPTASKTYPE, pub Consumer: ::core::mem::ManuallyDrop, pub BSATask: ::core::mem::ManuallyDrop, pub BSAProductID: ::windows::core::GUID, @@ -14368,37 +14399,6 @@ impl ::core::default::Default for PROTECTED_FILE_DATA { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] -pub struct _tagAPPTASKTYPE { - pub ProductID: ::windows::core::GUID, - pub TaskType: PM_TASK_TYPE, -} -impl ::core::marker::Copy for _tagAPPTASKTYPE {} -impl ::core::clone::Clone for _tagAPPTASKTYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _tagAPPTASKTYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_tagAPPTASKTYPE").field("ProductID", &self.ProductID).field("TaskType", &self.TaskType).finish() - } -} -unsafe impl ::windows::core::Abi for _tagAPPTASKTYPE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _tagAPPTASKTYPE { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_tagAPPTASKTYPE>()) == 0 } - } -} -impl ::core::cmp::Eq for _tagAPPTASKTYPE {} -impl ::core::default::Default for _tagAPPTASKTYPE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub type INSTALLUI_HANDLERA = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs index c0ff68877f..ba896602e1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs @@ -247,12 +247,12 @@ impl IQueryAllWinSATAssessments_Vtbl { } } pub trait IQueryOEMWinSATCustomization_Impl: Sized { - fn GetOEMPrePopulationInfo(&self) -> ::windows::core::Result; + fn GetOEMPrePopulationInfo(&self) -> ::windows::core::Result; } impl ::windows::core::RuntimeName for IQueryOEMWinSATCustomization {} impl IQueryOEMWinSATCustomization_Vtbl { pub const fn new, Impl: IQueryOEMWinSATCustomization_Impl, const OFFSET: isize>() -> IQueryOEMWinSATCustomization_Vtbl { - unsafe extern "system" fn GetOEMPrePopulationInfo, Impl: IQueryOEMWinSATCustomization_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, state: *mut WINSAT_OEM_DATA_TYPE) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetOEMPrePopulationInfo, Impl: IQueryOEMWinSATCustomization_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, state: *mut WINSAT_OEM_CUSTOMIZATION_STATE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetOEMPrePopulationInfo() { diff --git a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs index 9f593cdab3..a0dddf739a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs @@ -684,9 +684,9 @@ pub struct IQueryAllWinSATAssessments_Vtbl { #[repr(transparent)] pub struct IQueryOEMWinSATCustomization(::windows::core::IUnknown); impl IQueryOEMWinSATCustomization { - pub unsafe fn GetOEMPrePopulationInfo(&self) -> ::windows::core::Result { + pub unsafe fn GetOEMPrePopulationInfo(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetOEMPrePopulationInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetOEMPrePopulationInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -728,7 +728,7 @@ unsafe impl ::windows::core::Interface for IQueryOEMWinSATCustomization { #[doc(hidden)] pub struct IQueryOEMWinSATCustomization_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub GetOEMPrePopulationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, state: *mut WINSAT_OEM_DATA_TYPE) -> ::windows::core::HRESULT, + pub GetOEMPrePopulationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, state: *mut WINSAT_OEM_CUSTOMIZATION_STATE) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -989,32 +989,32 @@ impl ::core::fmt::Debug for WINSAT_BITMAP_SIZE { #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct WINSAT_OEM_DATA_TYPE(pub i32); +pub struct WINSAT_OEM_CUSTOMIZATION_STATE(pub i32); #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`*"] -pub const WINSAT_OEM_DATA_VALID: WINSAT_OEM_DATA_TYPE = WINSAT_OEM_DATA_TYPE(0i32); +pub const WINSAT_OEM_DATA_VALID: WINSAT_OEM_CUSTOMIZATION_STATE = WINSAT_OEM_CUSTOMIZATION_STATE(0i32); #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`*"] -pub const WINSAT_OEM_DATA_NON_SYS_CONFIG_MATCH: WINSAT_OEM_DATA_TYPE = WINSAT_OEM_DATA_TYPE(1i32); +pub const WINSAT_OEM_DATA_NON_SYS_CONFIG_MATCH: WINSAT_OEM_CUSTOMIZATION_STATE = WINSAT_OEM_CUSTOMIZATION_STATE(1i32); #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`*"] -pub const WINSAT_OEM_DATA_INVALID: WINSAT_OEM_DATA_TYPE = WINSAT_OEM_DATA_TYPE(2i32); +pub const WINSAT_OEM_DATA_INVALID: WINSAT_OEM_CUSTOMIZATION_STATE = WINSAT_OEM_CUSTOMIZATION_STATE(2i32); #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`*"] -pub const WINSAT_OEM_NO_DATA_SUPPLIED: WINSAT_OEM_DATA_TYPE = WINSAT_OEM_DATA_TYPE(3i32); -impl ::core::marker::Copy for WINSAT_OEM_DATA_TYPE {} -impl ::core::clone::Clone for WINSAT_OEM_DATA_TYPE { +pub const WINSAT_OEM_NO_DATA_SUPPLIED: WINSAT_OEM_CUSTOMIZATION_STATE = WINSAT_OEM_CUSTOMIZATION_STATE(3i32); +impl ::core::marker::Copy for WINSAT_OEM_CUSTOMIZATION_STATE {} +impl ::core::clone::Clone for WINSAT_OEM_CUSTOMIZATION_STATE { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for WINSAT_OEM_DATA_TYPE { +impl ::core::default::Default for WINSAT_OEM_CUSTOMIZATION_STATE { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for WINSAT_OEM_DATA_TYPE { +unsafe impl ::windows::core::Abi for WINSAT_OEM_CUSTOMIZATION_STATE { type Abi = Self; } -impl ::core::fmt::Debug for WINSAT_OEM_DATA_TYPE { +impl ::core::fmt::Debug for WINSAT_OEM_CUSTOMIZATION_STATE { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("WINSAT_OEM_DATA_TYPE").field(&self.0).finish() + f.debug_tuple("WINSAT_OEM_CUSTOMIZATION_STATE").field(&self.0).finish() } } #[cfg(feature = "implement")] diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs index 84fe85d57a..5fc054d42f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs @@ -54,7 +54,7 @@ pub unsafe fn BSTR_UserSize64(param0: &u32, param1: u32, param2: &::windows::cor } #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn BSTR_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut ::windows::core::BSTR) -> *mut u8 { +pub unsafe fn BSTR_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut ::windows::core::BSTR) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn BSTR_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> *mut u8; @@ -63,7 +63,7 @@ pub unsafe fn BSTR_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut : } #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn BSTR_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut ::windows::core::BSTR) -> *mut u8 { +pub unsafe fn BSTR_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut ::windows::core::BSTR) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn BSTR_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> *mut u8; @@ -126,7 +126,7 @@ pub unsafe fn CLIPFORMAT_UserSize64(param0: &u32, param1: u32, param2: &u16) -> } #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn CLIPFORMAT_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut u16) -> *mut u8 { +pub unsafe fn CLIPFORMAT_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut u16) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn CLIPFORMAT_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut u16) -> *mut u8; @@ -135,7 +135,7 @@ pub unsafe fn CLIPFORMAT_UserUnmarshal(param0: &u32, param1: *const u8, param2: } #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn CLIPFORMAT_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut u16) -> *mut u8 { +pub unsafe fn CLIPFORMAT_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut u16) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn CLIPFORMAT_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut u16) -> *mut u8; @@ -320,7 +320,7 @@ pub unsafe fn HACCEL_UserSize64(param0: &u32, param1: u32, param2: &super::super #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn HACCEL_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut super::super::super::UI::WindowsAndMessaging::HACCEL) -> *mut u8 { +pub unsafe fn HACCEL_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut super::super::super::UI::WindowsAndMessaging::HACCEL) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HACCEL_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::UI::WindowsAndMessaging::HACCEL) -> *mut u8; @@ -330,7 +330,7 @@ pub unsafe fn HACCEL_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn HACCEL_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut super::super::super::UI::WindowsAndMessaging::HACCEL) -> *mut u8 { +pub unsafe fn HACCEL_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut super::super::super::UI::WindowsAndMessaging::HACCEL) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HACCEL_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::UI::WindowsAndMessaging::HACCEL) -> *mut u8; @@ -400,7 +400,7 @@ pub unsafe fn HBITMAP_UserSize64(param0: &u32, param1: u32, param2: &super::supe #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn HBITMAP_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut super::super::super::Graphics::Gdi::HBITMAP) -> *mut u8 { +pub unsafe fn HBITMAP_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut super::super::super::Graphics::Gdi::HBITMAP) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HBITMAP_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Graphics::Gdi::HBITMAP) -> *mut u8; @@ -410,7 +410,7 @@ pub unsafe fn HBITMAP_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mu #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn HBITMAP_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut super::super::super::Graphics::Gdi::HBITMAP) -> *mut u8 { +pub unsafe fn HBITMAP_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut super::super::super::Graphics::Gdi::HBITMAP) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HBITMAP_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Graphics::Gdi::HBITMAP) -> *mut u8; @@ -480,7 +480,7 @@ pub unsafe fn HDC_UserSize64(param0: &u32, param1: u32, param2: &super::super::s #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn HDC_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut super::super::super::Graphics::Gdi::HDC) -> *mut u8 { +pub unsafe fn HDC_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut super::super::super::Graphics::Gdi::HDC) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HDC_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Graphics::Gdi::HDC) -> *mut u8; @@ -490,7 +490,7 @@ pub unsafe fn HDC_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut su #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn HDC_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut super::super::super::Graphics::Gdi::HDC) -> *mut u8 { +pub unsafe fn HDC_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut super::super::super::Graphics::Gdi::HDC) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HDC_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Graphics::Gdi::HDC) -> *mut u8; @@ -553,7 +553,7 @@ pub unsafe fn HGLOBAL_UserSize64(param0: &u32, param1: u32, param2: &isize) -> u } #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn HGLOBAL_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut isize) -> *mut u8 { +pub unsafe fn HGLOBAL_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut isize) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HGLOBAL_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut isize) -> *mut u8; @@ -562,7 +562,7 @@ pub unsafe fn HGLOBAL_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mu } #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn HGLOBAL_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut isize) -> *mut u8 { +pub unsafe fn HGLOBAL_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut isize) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HGLOBAL_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut isize) -> *mut u8; @@ -632,7 +632,7 @@ pub unsafe fn HICON_UserSize64(param0: &u32, param1: u32, param2: &super::super: #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn HICON_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut super::super::super::UI::WindowsAndMessaging::HICON) -> *mut u8 { +pub unsafe fn HICON_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut super::super::super::UI::WindowsAndMessaging::HICON) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HICON_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::UI::WindowsAndMessaging::HICON) -> *mut u8; @@ -642,7 +642,7 @@ pub unsafe fn HICON_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn HICON_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut super::super::super::UI::WindowsAndMessaging::HICON) -> *mut u8 { +pub unsafe fn HICON_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut super::super::super::UI::WindowsAndMessaging::HICON) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HICON_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::UI::WindowsAndMessaging::HICON) -> *mut u8; @@ -712,7 +712,7 @@ pub unsafe fn HMENU_UserSize64(param0: &u32, param1: u32, param2: &super::super: #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn HMENU_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut super::super::super::UI::WindowsAndMessaging::HMENU) -> *mut u8 { +pub unsafe fn HMENU_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut super::super::super::UI::WindowsAndMessaging::HMENU) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HMENU_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::UI::WindowsAndMessaging::HMENU) -> *mut u8; @@ -722,7 +722,7 @@ pub unsafe fn HMENU_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn HMENU_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut super::super::super::UI::WindowsAndMessaging::HMENU) -> *mut u8 { +pub unsafe fn HMENU_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut super::super::super::UI::WindowsAndMessaging::HMENU) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HMENU_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::UI::WindowsAndMessaging::HMENU) -> *mut u8; @@ -792,7 +792,7 @@ pub unsafe fn HPALETTE_UserSize64(param0: &u32, param1: u32, param2: &super::sup #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn HPALETTE_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut super::super::super::Graphics::Gdi::HPALETTE) -> *mut u8 { +pub unsafe fn HPALETTE_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut super::super::super::Graphics::Gdi::HPALETTE) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HPALETTE_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Graphics::Gdi::HPALETTE) -> *mut u8; @@ -802,7 +802,7 @@ pub unsafe fn HPALETTE_UserUnmarshal(param0: &u32, param1: *const u8, param2: &m #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn HPALETTE_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut super::super::super::Graphics::Gdi::HPALETTE) -> *mut u8 { +pub unsafe fn HPALETTE_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut super::super::super::Graphics::Gdi::HPALETTE) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HPALETTE_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Graphics::Gdi::HPALETTE) -> *mut u8; @@ -872,7 +872,7 @@ pub unsafe fn HWND_UserSize64(param0: &u32, param1: u32, param2: &super::super:: #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn HWND_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut super::super::super::Foundation::HWND) -> *mut u8 { +pub unsafe fn HWND_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut super::super::super::Foundation::HWND) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HWND_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Foundation::HWND) -> *mut u8; @@ -882,7 +882,7 @@ pub unsafe fn HWND_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut s #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn HWND_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut super::super::super::Foundation::HWND) -> *mut u8 { +pub unsafe fn HWND_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut super::super::super::Foundation::HWND) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HWND_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Foundation::HWND) -> *mut u8; @@ -945,7 +945,7 @@ pub unsafe fn LPSAFEARRAY_UserSize64(param0: &u32, param1: u32, param2: &*const } #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn LPSAFEARRAY_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut *mut super::SAFEARRAY) -> *mut u8 { +pub unsafe fn LPSAFEARRAY_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut *mut super::SAFEARRAY) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn LPSAFEARRAY_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut *mut super::SAFEARRAY) -> *mut u8; @@ -954,7 +954,7 @@ pub unsafe fn LPSAFEARRAY_UserUnmarshal(param0: &u32, param1: *const u8, param2: } #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn LPSAFEARRAY_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut *mut super::SAFEARRAY) -> *mut u8 { +pub unsafe fn LPSAFEARRAY_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut *mut super::SAFEARRAY) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn LPSAFEARRAY_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut *mut super::SAFEARRAY) -> *mut u8; @@ -1017,7 +1017,7 @@ pub unsafe fn SNB_UserSize64(param0: &u32, param1: u32, param2: &*const *const u } #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn SNB_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut *mut *mut u16) -> *mut u8 { +pub unsafe fn SNB_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut *mut *mut u16) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SNB_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut *mut *mut u16) -> *mut u8; @@ -1026,7 +1026,7 @@ pub unsafe fn SNB_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut *m } #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn SNB_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut *mut *mut u16) -> *mut u8 { +pub unsafe fn SNB_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut *mut *mut u16) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SNB_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut *mut *mut u16) -> *mut u8; @@ -1096,7 +1096,7 @@ pub unsafe fn STGMEDIUM_UserSize64(param0: &u32, param1: u32, param2: &super::ST #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] #[inline] -pub unsafe fn STGMEDIUM_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut super::STGMEDIUM) -> *mut u8 { +pub unsafe fn STGMEDIUM_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut super::STGMEDIUM) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn STGMEDIUM_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::STGMEDIUM) -> *mut u8; @@ -1106,7 +1106,7 @@ pub unsafe fn STGMEDIUM_UserUnmarshal(param0: &u32, param1: *const u8, param2: & #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] #[inline] -pub unsafe fn STGMEDIUM_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut super::STGMEDIUM) -> *mut u8 { +pub unsafe fn STGMEDIUM_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut super::STGMEDIUM) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn STGMEDIUM_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::STGMEDIUM) -> *mut u8; @@ -1176,7 +1176,7 @@ pub unsafe fn VARIANT_UserSize64(param0: &u32, param1: u32, param2: &super::VARI #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] #[inline] -pub unsafe fn VARIANT_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut super::VARIANT) -> *mut u8 { +pub unsafe fn VARIANT_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut super::VARIANT) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn VARIANT_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::VARIANT) -> *mut u8; @@ -1186,7 +1186,7 @@ pub unsafe fn VARIANT_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mu #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] #[inline] -pub unsafe fn VARIANT_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut super::VARIANT) -> *mut u8 { +pub unsafe fn VARIANT_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut super::VARIANT) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn VARIANT_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::VARIANT) -> *mut u8; @@ -1387,7 +1387,7 @@ impl IMarshalingStream { pub unsafe fn Revert(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Revert)(::windows::core::Interface::as_raw(self)).ok() } - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } pub unsafe fn UnlockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { @@ -1395,7 +1395,7 @@ impl IMarshalingStream { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Stat(&self, pstatstg: &mut super::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::STATSTG, grfstatflag: super::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result { diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/impl.rs index 6bd6933e47..746bc6a7cb 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/impl.rs @@ -289,9 +289,9 @@ pub trait ILockBytes_Impl: Sized { fn WriteAt(&self, uloffset: u64, pv: *const ::core::ffi::c_void, cb: u32) -> ::windows::core::Result; fn Flush(&self) -> ::windows::core::Result<()>; fn SetSize(&self, cb: u64) -> ::windows::core::Result<()>; - fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()>; + fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::LOCKTYPE) -> ::windows::core::Result<()>; fn UnlockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()>; - fn Stat(&self, pstatstg: *mut super::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()>; + fn Stat(&self, pstatstg: *mut super::STATSTG, grfstatflag: super::STATFLAG) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ILockBytes {} @@ -324,7 +324,7 @@ impl ILockBytes_Vtbl { let this = (*this).get_impl(); this.SetSize(::core::mem::transmute_copy(&cb)).into() } - unsafe extern "system" fn LockRegion, Impl: ILockBytes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn LockRegion, Impl: ILockBytes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: super::LOCKTYPE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.LockRegion(::core::mem::transmute_copy(&liboffset), ::core::mem::transmute_copy(&cb), ::core::mem::transmute_copy(&dwlocktype)).into() @@ -334,7 +334,7 @@ impl ILockBytes_Vtbl { let this = (*this).get_impl(); this.UnlockRegion(::core::mem::transmute_copy(&liboffset), ::core::mem::transmute_copy(&cb), ::core::mem::transmute_copy(&dwlocktype)).into() } - unsafe extern "system" fn Stat, Impl: ILockBytes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstatstg: *mut super::STATSTG, grfstatflag: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Stat, Impl: ILockBytes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstatstg: *mut super::STATSTG, grfstatflag: super::STATFLAG) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Stat(::core::mem::transmute_copy(&pstatstg), ::core::mem::transmute_copy(&grfstatflag)).into() @@ -685,10 +685,10 @@ impl IRootStorage_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IStorage_Impl: Sized { - fn CreateStream(&self, pwcsname: &::windows::core::PCWSTR, grfmode: STGM, reserved1: u32, reserved2: u32) -> ::windows::core::Result; - fn OpenStream(&self, pwcsname: &::windows::core::PCWSTR, reserved1: *mut ::core::ffi::c_void, grfmode: STGM, reserved2: u32, ppstm: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn CreateStorage(&self, pwcsname: &::windows::core::PCWSTR, grfmode: STGM, reserved1: u32, reserved2: u32) -> ::windows::core::Result; - fn OpenStorage(&self, pwcsname: &::windows::core::PCWSTR, pstgpriority: &::core::option::Option, grfmode: STGM, snbexclude: *const *const u16, reserved: u32) -> ::windows::core::Result; + fn CreateStream(&self, pwcsname: &::windows::core::PCWSTR, grfmode: super::STGM, reserved1: u32, reserved2: u32) -> ::windows::core::Result; + fn OpenStream(&self, pwcsname: &::windows::core::PCWSTR, reserved1: *mut ::core::ffi::c_void, grfmode: super::STGM, reserved2: u32, ppstm: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn CreateStorage(&self, pwcsname: &::windows::core::PCWSTR, grfmode: super::STGM, reserved1: u32, reserved2: u32) -> ::windows::core::Result; + fn OpenStorage(&self, pwcsname: &::windows::core::PCWSTR, pstgpriority: &::core::option::Option, grfmode: super::STGM, snbexclude: *const *const u16, reserved: u32) -> ::windows::core::Result; fn CopyTo(&self, ciidexclude: u32, rgiidexclude: *const ::windows::core::GUID, snbexclude: *const *const u16, pstgdest: &::core::option::Option) -> ::windows::core::Result<()>; fn MoveElementTo(&self, pwcsname: &::windows::core::PCWSTR, pstgdest: &::core::option::Option, pwcsnewname: &::windows::core::PCWSTR, grfflags: STGMOVE) -> ::windows::core::Result<()>; fn Commit(&self, grfcommitflags: super::STGC) -> ::windows::core::Result<()>; @@ -699,14 +699,14 @@ pub trait IStorage_Impl: Sized { fn SetElementTimes(&self, pwcsname: &::windows::core::PCWSTR, pctime: *const super::super::super::Foundation::FILETIME, patime: *const super::super::super::Foundation::FILETIME, pmtime: *const super::super::super::Foundation::FILETIME) -> ::windows::core::Result<()>; fn SetClass(&self, clsid: *const ::windows::core::GUID) -> ::windows::core::Result<()>; fn SetStateBits(&self, grfstatebits: u32, grfmask: u32) -> ::windows::core::Result<()>; - fn Stat(&self, pstatstg: *mut super::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()>; + fn Stat(&self, pstatstg: *mut super::STATSTG, grfstatflag: super::STATFLAG) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IStorage {} #[cfg(feature = "Win32_Foundation")] impl IStorage_Vtbl { pub const fn new, Impl: IStorage_Impl, const OFFSET: isize>() -> IStorage_Vtbl { - unsafe extern "system" fn CreateStream, Impl: IStorage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, grfmode: STGM, reserved1: u32, reserved2: u32, ppstm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateStream, Impl: IStorage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, grfmode: super::STGM, reserved1: u32, reserved2: u32, ppstm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateStream(::core::mem::transmute(&pwcsname), ::core::mem::transmute_copy(&grfmode), ::core::mem::transmute_copy(&reserved1), ::core::mem::transmute_copy(&reserved2)) { @@ -717,12 +717,12 @@ impl IStorage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenStream, Impl: IStorage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, reserved1: *mut ::core::ffi::c_void, grfmode: STGM, reserved2: u32, ppstm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenStream, Impl: IStorage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, reserved1: *mut ::core::ffi::c_void, grfmode: super::STGM, reserved2: u32, ppstm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OpenStream(::core::mem::transmute(&pwcsname), ::core::mem::transmute_copy(&reserved1), ::core::mem::transmute_copy(&grfmode), ::core::mem::transmute_copy(&reserved2), ::core::mem::transmute_copy(&ppstm)).into() } - unsafe extern "system" fn CreateStorage, Impl: IStorage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, grfmode: STGM, reserved1: u32, reserved2: u32, ppstg: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateStorage, Impl: IStorage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, grfmode: super::STGM, reserved1: u32, reserved2: u32, ppstg: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateStorage(::core::mem::transmute(&pwcsname), ::core::mem::transmute_copy(&grfmode), ::core::mem::transmute_copy(&reserved1), ::core::mem::transmute_copy(&reserved2)) { @@ -733,7 +733,7 @@ impl IStorage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenStorage, Impl: IStorage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, pstgpriority: *mut ::core::ffi::c_void, grfmode: STGM, snbexclude: *const *const u16, reserved: u32, ppstg: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenStorage, Impl: IStorage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, pstgpriority: *mut ::core::ffi::c_void, grfmode: super::STGM, snbexclude: *const *const u16, reserved: u32, ppstg: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenStorage(::core::mem::transmute(&pwcsname), ::core::mem::transmute(&pstgpriority), ::core::mem::transmute_copy(&grfmode), ::core::mem::transmute_copy(&snbexclude), ::core::mem::transmute_copy(&reserved)) { @@ -794,7 +794,7 @@ impl IStorage_Vtbl { let this = (*this).get_impl(); this.SetStateBits(::core::mem::transmute_copy(&grfstatebits), ::core::mem::transmute_copy(&grfmask)).into() } - unsafe extern "system" fn Stat, Impl: IStorage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstatstg: *mut super::STATSTG, grfstatflag: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Stat, Impl: IStorage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstatstg: *mut super::STATSTG, grfstatflag: super::STATFLAG) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Stat(::core::mem::transmute_copy(&pstatstg), ::core::mem::transmute_copy(&grfstatflag)).into() 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 de0ffa3d7a..46ec480d4f 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 @@ -285,26 +285,26 @@ where } #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] #[inline] -pub unsafe fn StgCreateDocfile<'a, P0>(pwcsname: P0, grfmode: STGM, reserved: u32) -> ::windows::core::Result +pub unsafe fn StgCreateDocfile<'a, P0>(pwcsname: P0, grfmode: super::STGM, reserved: u32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn StgCreateDocfile(pwcsname: ::windows::core::PCWSTR, grfmode: STGM, reserved: u32, ppstgopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; + fn StgCreateDocfile(pwcsname: ::windows::core::PCWSTR, grfmode: super::STGM, reserved: u32, ppstgopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); StgCreateDocfile(pwcsname.into(), grfmode, reserved, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] #[inline] -pub unsafe fn StgCreateDocfileOnILockBytes<'a, P0>(plkbyt: P0, grfmode: STGM, reserved: u32) -> ::windows::core::Result +pub unsafe fn StgCreateDocfileOnILockBytes<'a, P0>(plkbyt: P0, grfmode: super::STGM, reserved: u32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, ILockBytes>>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn StgCreateDocfileOnILockBytes(plkbyt: *mut ::core::ffi::c_void, grfmode: STGM, reserved: u32, ppstgopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; + fn StgCreateDocfileOnILockBytes(plkbyt: *mut ::core::ffi::c_void, grfmode: super::STGM, reserved: u32, ppstgopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); StgCreateDocfileOnILockBytes(plkbyt.into().abi(), grfmode, reserved, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -338,14 +338,14 @@ where #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_Security\"`*"] #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn StgCreateStorageEx<'a, P0, P1>(pwcsname: P0, grfmode: STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: ::core::option::Option<&mut STGOPTIONS>, psecuritydescriptor: P1, riid: &::windows::core::GUID, ppobjectopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn StgCreateStorageEx<'a, P0, P1>(pwcsname: P0, grfmode: super::STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: ::core::option::Option<&mut STGOPTIONS>, psecuritydescriptor: P1, riid: &::windows::core::GUID, ppobjectopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn StgCreateStorageEx(pwcsname: ::windows::core::PCWSTR, grfmode: STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: *mut STGOPTIONS, psecuritydescriptor: super::super::super::Security::PSECURITY_DESCRIPTOR, riid: *const ::windows::core::GUID, ppobjectopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; + fn StgCreateStorageEx(pwcsname: ::windows::core::PCWSTR, grfmode: super::STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: *mut STGOPTIONS, psecuritydescriptor: super::super::super::Security::PSECURITY_DESCRIPTOR, riid: *const ::windows::core::GUID, ppobjectopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } StgCreateStorageEx(pwcsname.into(), grfmode, stgfmt, grfattrs, ::core::mem::transmute(pstgoptions), psecuritydescriptor.into(), ::core::mem::transmute(riid), ::core::mem::transmute(ppobjectopen)).ok() } @@ -451,14 +451,14 @@ where } #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] #[inline] -pub unsafe fn StgOpenStorage<'a, P0, P1>(pwcsname: P0, pstgpriority: P1, grfmode: STGM, snbexclude: ::core::option::Option<&*const u16>, reserved: u32) -> ::windows::core::Result +pub unsafe fn StgOpenStorage<'a, P0, P1>(pwcsname: P0, pstgpriority: P1, grfmode: super::STGM, snbexclude: ::core::option::Option<&*const u16>, reserved: u32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::InParam<'a, IStorage>>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn StgOpenStorage(pwcsname: ::windows::core::PCWSTR, pstgpriority: *mut ::core::ffi::c_void, grfmode: STGM, snbexclude: *const *const u16, reserved: u32, ppstgopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; + fn StgOpenStorage(pwcsname: ::windows::core::PCWSTR, pstgpriority: *mut ::core::ffi::c_void, grfmode: super::STGM, snbexclude: *const *const u16, reserved: u32, ppstgopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); StgOpenStorage(pwcsname.into(), pstgpriority.into().abi(), grfmode, ::core::mem::transmute(snbexclude), reserved, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -466,27 +466,27 @@ where #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_Security\"`*"] #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn StgOpenStorageEx<'a, P0, P1>(pwcsname: P0, grfmode: STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: ::core::option::Option<&mut STGOPTIONS>, psecuritydescriptor: P1, riid: &::windows::core::GUID, ppobjectopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn StgOpenStorageEx<'a, P0, P1>(pwcsname: P0, grfmode: super::STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: ::core::option::Option<&mut STGOPTIONS>, psecuritydescriptor: P1, riid: &::windows::core::GUID, ppobjectopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn StgOpenStorageEx(pwcsname: ::windows::core::PCWSTR, grfmode: STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: *mut STGOPTIONS, psecuritydescriptor: super::super::super::Security::PSECURITY_DESCRIPTOR, riid: *const ::windows::core::GUID, ppobjectopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; + fn StgOpenStorageEx(pwcsname: ::windows::core::PCWSTR, grfmode: super::STGM, stgfmt: STGFMT, grfattrs: u32, pstgoptions: *mut STGOPTIONS, psecuritydescriptor: super::super::super::Security::PSECURITY_DESCRIPTOR, riid: *const ::windows::core::GUID, ppobjectopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } StgOpenStorageEx(pwcsname.into(), grfmode, stgfmt, grfattrs, ::core::mem::transmute(pstgoptions), psecuritydescriptor.into(), ::core::mem::transmute(riid), ::core::mem::transmute(ppobjectopen)).ok() } #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] #[inline] -pub unsafe fn StgOpenStorageOnILockBytes<'a, P0, P1>(plkbyt: P0, pstgpriority: P1, grfmode: u32, snbexclude: ::core::option::Option<&*const u16>, reserved: u32) -> ::windows::core::Result +pub unsafe fn StgOpenStorageOnILockBytes<'a, P0, P1>(plkbyt: P0, pstgpriority: P1, grfmode: super::STGM, snbexclude: ::core::option::Option<&*const u16>, reserved: u32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, ILockBytes>>, P1: ::std::convert::Into<::windows::core::InParam<'a, IStorage>>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn StgOpenStorageOnILockBytes(plkbyt: *mut ::core::ffi::c_void, pstgpriority: *mut ::core::ffi::c_void, grfmode: u32, snbexclude: *const *const u16, reserved: u32, ppstgopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; + fn StgOpenStorageOnILockBytes(plkbyt: *mut ::core::ffi::c_void, pstgpriority: *mut ::core::ffi::c_void, grfmode: super::STGM, snbexclude: *const *const u16, reserved: u32, ppstgopen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); StgOpenStorageOnILockBytes(plkbyt.into().abi(), pstgpriority.into().abi(), grfmode, ::core::mem::transmute(snbexclude), reserved, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -972,7 +972,7 @@ impl ILockBytes { pub unsafe fn SetSize(&self, cb: u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetSize)(::windows::core::Interface::as_raw(self), cb).ok() } - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } pub unsafe fn UnlockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { @@ -980,7 +980,7 @@ impl ILockBytes { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Stat(&self, pstatstg: &mut super::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::STATSTG, grfstatflag: super::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } } @@ -1027,10 +1027,10 @@ pub struct ILockBytes_Vtbl { pub WriteAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uloffset: u64, pv: *const ::core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> ::windows::core::HRESULT, pub Flush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cb: u64) -> ::windows::core::HRESULT, - pub LockRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::HRESULT, + pub LockRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: super::LOCKTYPE) -> ::windows::core::HRESULT, pub UnlockRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub Stat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatstg: *mut super::STATSTG, grfstatflag: u32) -> ::windows::core::HRESULT, + pub Stat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatstg: *mut super::STATSTG, grfstatflag: super::STATFLAG) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] Stat: usize, } @@ -1529,27 +1529,27 @@ pub struct IRootStorage_Vtbl { #[repr(transparent)] pub struct IStorage(::windows::core::IUnknown); impl IStorage { - pub unsafe fn CreateStream<'a, P0>(&self, pwcsname: P0, grfmode: STGM, reserved1: u32, reserved2: u32) -> ::windows::core::Result + pub unsafe fn CreateStream<'a, P0>(&self, pwcsname: P0, grfmode: super::STGM, reserved1: u32, reserved2: u32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateStream)(::windows::core::Interface::as_raw(self), pwcsname.into(), grfmode, reserved1, reserved2, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn OpenStream<'a, P0>(&self, pwcsname: P0, reserved1: *mut ::core::ffi::c_void, grfmode: STGM, reserved2: u32, ppstm: &mut ::core::option::Option) -> ::windows::core::Result<()> + pub unsafe fn OpenStream<'a, P0>(&self, pwcsname: P0, reserved1: *mut ::core::ffi::c_void, grfmode: super::STGM, reserved2: u32, ppstm: &mut ::core::option::Option) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, { (::windows::core::Interface::vtable(self).OpenStream)(::windows::core::Interface::as_raw(self), pwcsname.into(), ::core::mem::transmute(reserved1), grfmode, reserved2, ::core::mem::transmute(ppstm)).ok() } - pub unsafe fn CreateStorage<'a, P0>(&self, pwcsname: P0, grfmode: STGM, reserved1: u32, reserved2: u32) -> ::windows::core::Result + pub unsafe fn CreateStorage<'a, P0>(&self, pwcsname: P0, grfmode: super::STGM, reserved1: u32, reserved2: u32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateStorage)(::windows::core::Interface::as_raw(self), pwcsname.into(), grfmode, reserved1, reserved2, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn OpenStorage<'a, P0, P1>(&self, pwcsname: P0, pstgpriority: P1, grfmode: STGM, snbexclude: &*const u16, reserved: u32) -> ::windows::core::Result + pub unsafe fn OpenStorage<'a, P0, P1>(&self, pwcsname: P0, pstgpriority: P1, grfmode: super::STGM, snbexclude: &*const u16, reserved: u32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::InParam<'a, IStorage>>, @@ -1609,7 +1609,7 @@ impl IStorage { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Stat(&self, pstatstg: &mut super::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::STATSTG, grfstatflag: super::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } } @@ -1652,10 +1652,10 @@ unsafe impl ::windows::core::Interface for IStorage { #[doc(hidden)] pub struct IStorage_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub CreateStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, grfmode: STGM, reserved1: u32, reserved2: u32, ppstm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub OpenStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, reserved1: *mut ::core::ffi::c_void, grfmode: STGM, reserved2: u32, ppstm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CreateStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, grfmode: STGM, reserved1: u32, reserved2: u32, ppstg: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub OpenStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, pstgpriority: *mut ::core::ffi::c_void, grfmode: STGM, snbexclude: *const *const u16, reserved: u32, ppstg: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, grfmode: super::STGM, reserved1: u32, reserved2: u32, ppstm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, reserved1: *mut ::core::ffi::c_void, grfmode: super::STGM, reserved2: u32, ppstm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, grfmode: super::STGM, reserved1: u32, reserved2: u32, ppstg: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, pstgpriority: *mut ::core::ffi::c_void, grfmode: super::STGM, snbexclude: *const *const u16, reserved: u32, ppstg: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CopyTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ciidexclude: u32, rgiidexclude: *const ::windows::core::GUID, snbexclude: *const *const u16, pstgdest: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub MoveElementTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcsname: ::windows::core::PCWSTR, pstgdest: *mut ::core::ffi::c_void, pwcsnewname: ::windows::core::PCWSTR, grfflags: STGMOVE) -> ::windows::core::HRESULT, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfcommitflags: super::STGC) -> ::windows::core::HRESULT, @@ -1670,7 +1670,7 @@ pub struct IStorage_Vtbl { pub SetClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub SetStateBits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfstatebits: u32, grfmask: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub Stat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatstg: *mut super::STATSTG, grfstatflag: u32) -> ::windows::core::HRESULT, + pub Stat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatstg: *mut super::STATSTG, grfstatflag: super::STATFLAG) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] Stat: usize, } @@ -1809,35 +1809,6 @@ pub const STGOPTIONS_VERSION: u32 = 1u32; #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct LOCKTYPE(pub i32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const LOCK_WRITE: LOCKTYPE = LOCKTYPE(1i32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const LOCK_EXCLUSIVE: LOCKTYPE = LOCKTYPE(2i32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const LOCK_ONLYONCE: LOCKTYPE = LOCKTYPE(4i32); -impl ::core::marker::Copy for LOCKTYPE {} -impl ::core::clone::Clone for LOCKTYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for LOCKTYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for LOCKTYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for LOCKTYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("LOCKTYPE").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct PIDMSI_STATUS_VALUE(pub i32); #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub const PIDMSI_STATUS_NORMAL: PIDMSI_STATUS_VALUE = PIDMSI_STATUS_VALUE(0i32); @@ -1908,35 +1879,6 @@ impl ::core::fmt::Debug for PROPSPEC_KIND { #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct STATFLAG(pub i32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STATFLAG_DEFAULT: STATFLAG = STATFLAG(0i32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STATFLAG_NONAME: STATFLAG = STATFLAG(1i32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STATFLAG_NOOPEN: STATFLAG = STATFLAG(2i32); -impl ::core::marker::Copy for STATFLAG {} -impl ::core::clone::Clone for STATFLAG { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for STATFLAG { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for STATFLAG { - type Abi = Self; -} -impl ::core::fmt::Debug for STATFLAG { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("STATFLAG").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct STGFMT(pub u32); #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub const STGFMT_STORAGE: STGFMT = STGFMT(0u32); @@ -1972,93 +1914,6 @@ impl ::core::fmt::Debug for STGFMT { #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct STGM(pub u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_DIRECT: STGM = STGM(0u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_TRANSACTED: STGM = STGM(65536u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_SIMPLE: STGM = STGM(134217728u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_READ: STGM = STGM(0u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_WRITE: STGM = STGM(1u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_READWRITE: STGM = STGM(2u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_SHARE_DENY_NONE: STGM = STGM(64u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_SHARE_DENY_READ: STGM = STGM(48u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_SHARE_DENY_WRITE: STGM = STGM(32u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_SHARE_EXCLUSIVE: STGM = STGM(16u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_PRIORITY: STGM = STGM(262144u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_DELETEONRELEASE: STGM = STGM(67108864u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_NOSCRATCH: STGM = STGM(1048576u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_CREATE: STGM = STGM(4096u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_CONVERT: STGM = STGM(131072u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_FAILIFTHERE: STGM = STGM(0u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_NOSNAPSHOT: STGM = STGM(2097152u32); -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -pub const STGM_DIRECT_SWMR: STGM = STGM(4194304u32); -impl ::core::marker::Copy for STGM {} -impl ::core::clone::Clone for STGM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for STGM { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for STGM { - type Abi = Self; -} -impl ::core::fmt::Debug for STGM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("STGM").field(&self.0).finish() - } -} -impl ::core::ops::BitOr for STGM { - type Output = Self; - fn bitor(self, other: Self) -> Self { - Self(self.0 | other.0) - } -} -impl ::core::ops::BitAnd for STGM { - type Output = Self; - fn bitand(self, other: Self) -> Self { - Self(self.0 & other.0) - } -} -impl ::core::ops::BitOrAssign for STGM { - fn bitor_assign(&mut self, other: Self) { - self.0.bitor_assign(other.0) - } -} -impl ::core::ops::BitAndAssign for STGM { - fn bitand_assign(&mut self, other: Self) { - self.0.bitand_assign(other.0) - } -} -impl ::core::ops::Not for STGM { - type Output = Self; - fn not(self) -> Self { - Self(self.0.not()) - } -} -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct STGMOVE(pub i32); #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub const STGMOVE_MOVE: STGMOVE = STGMOVE(0i32); diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs index d5e1f6dd50..777ff9adb0 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs @@ -3776,9 +3776,9 @@ pub trait IStream_Impl: Sized + ISequentialStream_Impl { fn CopyTo(&self, pstm: &::core::option::Option, cb: u64, pcbread: *mut u64, pcbwritten: *mut u64) -> ::windows::core::Result<()>; fn Commit(&self, grfcommitflags: STGC) -> ::windows::core::Result<()>; fn Revert(&self) -> ::windows::core::Result<()>; - fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()>; + fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: LOCKTYPE) -> ::windows::core::Result<()>; fn UnlockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()>; - fn Stat(&self, pstatstg: *mut STATSTG, grfstatflag: u32) -> ::windows::core::Result<()>; + fn Stat(&self, pstatstg: *mut STATSTG, grfstatflag: STATFLAG) -> ::windows::core::Result<()>; fn Clone(&self) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] @@ -3817,7 +3817,7 @@ impl IStream_Vtbl { let this = (*this).get_impl(); this.Revert().into() } - unsafe extern "system" fn LockRegion, Impl: IStream_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn LockRegion, Impl: IStream_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: LOCKTYPE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.LockRegion(::core::mem::transmute_copy(&liboffset), ::core::mem::transmute_copy(&cb), ::core::mem::transmute_copy(&dwlocktype)).into() @@ -3827,7 +3827,7 @@ impl IStream_Vtbl { let this = (*this).get_impl(); this.UnlockRegion(::core::mem::transmute_copy(&liboffset), ::core::mem::transmute_copy(&cb), ::core::mem::transmute_copy(&dwlocktype)).into() } - unsafe extern "system" fn Stat, Impl: IStream_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstatstg: *mut STATSTG, grfstatflag: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Stat, Impl: IStream_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstatstg: *mut STATSTG, grfstatflag: STATFLAG) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Stat(::core::mem::transmute_copy(&pstatstg), ::core::mem::transmute_copy(&grfstatflag)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs index b900f4c474..0f4d188b9a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs @@ -7541,7 +7541,7 @@ impl IStream { pub unsafe fn Revert(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Revert)(::windows::core::Interface::as_raw(self)).ok() } - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } pub unsafe fn UnlockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { @@ -7549,7 +7549,7 @@ impl IStream { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Stat(&self, pstatstg: &mut STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut STATSTG, grfstatflag: STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } pub unsafe fn Clone(&self) -> ::windows::core::Result { @@ -7616,10 +7616,10 @@ pub struct IStream_Vtbl { pub CopyTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstm: *mut ::core::ffi::c_void, cb: u64, pcbread: *mut u64, pcbwritten: *mut u64) -> ::windows::core::HRESULT, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfcommitflags: STGC) -> ::windows::core::HRESULT, pub Revert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LockRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::HRESULT, + pub LockRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: LOCKTYPE) -> ::windows::core::HRESULT, pub UnlockRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub Stat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatstg: *mut STATSTG, grfstatflag: u32) -> ::windows::core::HRESULT, + pub Stat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatstg: *mut STATSTG, grfstatflag: STATFLAG) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] Stat: usize, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -9579,6 +9579,81 @@ pub const STG_TOEND: i32 = -1i32; #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct ADVANCED_FEATURE_FLAGS(pub u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_AUTO: ADVANCED_FEATURE_FLAGS = ADVANCED_FEATURE_FLAGS(1u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_STATIC: ADVANCED_FEATURE_FLAGS = ADVANCED_FEATURE_FLAGS(2u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_EMBEDDED: ADVANCED_FEATURE_FLAGS = ADVANCED_FEATURE_FLAGS(4u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_FIXEDSIZE: ADVANCED_FEATURE_FLAGS = ADVANCED_FEATURE_FLAGS(16u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_RECORD: ADVANCED_FEATURE_FLAGS = ADVANCED_FEATURE_FLAGS(32u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_HAVEIID: ADVANCED_FEATURE_FLAGS = ADVANCED_FEATURE_FLAGS(64u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_HAVEVARTYPE: ADVANCED_FEATURE_FLAGS = ADVANCED_FEATURE_FLAGS(128u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_BSTR: ADVANCED_FEATURE_FLAGS = ADVANCED_FEATURE_FLAGS(256u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_UNKNOWN: ADVANCED_FEATURE_FLAGS = ADVANCED_FEATURE_FLAGS(512u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_DISPATCH: ADVANCED_FEATURE_FLAGS = ADVANCED_FEATURE_FLAGS(1024u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_VARIANT: ADVANCED_FEATURE_FLAGS = ADVANCED_FEATURE_FLAGS(2048u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const FADF_RESERVED: ADVANCED_FEATURE_FLAGS = ADVANCED_FEATURE_FLAGS(61448u16); +impl ::core::marker::Copy for ADVANCED_FEATURE_FLAGS {} +impl ::core::clone::Clone for ADVANCED_FEATURE_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for ADVANCED_FEATURE_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for ADVANCED_FEATURE_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for ADVANCED_FEATURE_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("ADVANCED_FEATURE_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for ADVANCED_FEATURE_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for ADVANCED_FEATURE_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for ADVANCED_FEATURE_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for ADVANCED_FEATURE_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for ADVANCED_FEATURE_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct ADVF(pub i32); #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const ADVF_NODATA: ADVF = ADVF(1i32); @@ -10637,6 +10712,35 @@ impl ::core::fmt::Debug for INVOKEKIND { #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct LOCKTYPE(pub i32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const LOCK_WRITE: LOCKTYPE = LOCKTYPE(1i32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const LOCK_EXCLUSIVE: LOCKTYPE = LOCKTYPE(2i32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const LOCK_ONLYONCE: LOCKTYPE = LOCKTYPE(4i32); +impl ::core::marker::Copy for LOCKTYPE {} +impl ::core::clone::Clone for LOCKTYPE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for LOCKTYPE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for LOCKTYPE { + type Abi = Self; +} +impl ::core::fmt::Debug for LOCKTYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("LOCKTYPE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct MEMCTX(pub i32); #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const MEMCTX_TASK: MEMCTX = MEMCTX(1i32); @@ -10670,32 +10774,32 @@ impl ::core::fmt::Debug for MEMCTX { #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct MKREDUCE(pub i32); +pub struct MKRREDUCE(pub i32); #[doc = "*Required features: `\"Win32_System_Com\"`*"] -pub const MKRREDUCE_ONE: MKREDUCE = MKREDUCE(196608i32); +pub const MKRREDUCE_ONE: MKRREDUCE = MKRREDUCE(196608i32); #[doc = "*Required features: `\"Win32_System_Com\"`*"] -pub const MKRREDUCE_TOUSER: MKREDUCE = MKREDUCE(131072i32); +pub const MKRREDUCE_TOUSER: MKRREDUCE = MKRREDUCE(131072i32); #[doc = "*Required features: `\"Win32_System_Com\"`*"] -pub const MKRREDUCE_THROUGHUSER: MKREDUCE = MKREDUCE(65536i32); +pub const MKRREDUCE_THROUGHUSER: MKRREDUCE = MKRREDUCE(65536i32); #[doc = "*Required features: `\"Win32_System_Com\"`*"] -pub const MKRREDUCE_ALL: MKREDUCE = MKREDUCE(0i32); -impl ::core::marker::Copy for MKREDUCE {} -impl ::core::clone::Clone for MKREDUCE { +pub const MKRREDUCE_ALL: MKRREDUCE = MKRREDUCE(0i32); +impl ::core::marker::Copy for MKRREDUCE {} +impl ::core::clone::Clone for MKRREDUCE { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for MKREDUCE { +impl ::core::default::Default for MKRREDUCE { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for MKREDUCE { +unsafe impl ::windows::core::Abi for MKRREDUCE { type Abi = Self; } -impl ::core::fmt::Debug for MKREDUCE { +impl ::core::fmt::Debug for MKRREDUCE { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MKREDUCE").field(&self.0).finish() + f.debug_tuple("MKRREDUCE").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -11127,6 +11231,35 @@ impl ::core::fmt::Debug for SERVERCALL { #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct STATFLAG(pub i32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STATFLAG_DEFAULT: STATFLAG = STATFLAG(0i32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STATFLAG_NONAME: STATFLAG = STATFLAG(1i32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STATFLAG_NOOPEN: STATFLAG = STATFLAG(2i32); +impl ::core::marker::Copy for STATFLAG {} +impl ::core::clone::Clone for STATFLAG { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for STATFLAG { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for STATFLAG { + type Abi = Self; +} +impl ::core::fmt::Debug for STATFLAG { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("STATFLAG").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct STGC(pub u32); #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const STGC_DEFAULT: STGC = STGC(0u32); @@ -11188,6 +11321,93 @@ impl ::core::ops::Not for STGC { #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct STGM(pub u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_DIRECT: STGM = STGM(0u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_TRANSACTED: STGM = STGM(65536u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_SIMPLE: STGM = STGM(134217728u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_READ: STGM = STGM(0u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_WRITE: STGM = STGM(1u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_READWRITE: STGM = STGM(2u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_SHARE_DENY_NONE: STGM = STGM(64u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_SHARE_DENY_READ: STGM = STGM(48u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_SHARE_DENY_WRITE: STGM = STGM(32u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_SHARE_EXCLUSIVE: STGM = STGM(16u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_PRIORITY: STGM = STGM(262144u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_DELETEONRELEASE: STGM = STGM(67108864u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_NOSCRATCH: STGM = STGM(1048576u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_CREATE: STGM = STGM(4096u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_CONVERT: STGM = STGM(131072u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_FAILIFTHERE: STGM = STGM(0u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_NOSNAPSHOT: STGM = STGM(2097152u32); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const STGM_DIRECT_SWMR: STGM = STGM(4194304u32); +impl ::core::marker::Copy for STGM {} +impl ::core::clone::Clone for STGM { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for STGM { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for STGM { + type Abi = Self; +} +impl ::core::fmt::Debug for STGM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("STGM").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for STGM { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for STGM { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for STGM { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for STGM { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for STGM { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct STGTY(pub i32); #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const STGTY_STORAGE: STGTY = STGTY(1i32); @@ -11733,6 +11953,55 @@ impl ::core::fmt::Debug for VARENUM { #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct VARFLAGS(pub u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FREADONLY: VARFLAGS = VARFLAGS(1u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FSOURCE: VARFLAGS = VARFLAGS(2u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FBINDABLE: VARFLAGS = VARFLAGS(4u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FREQUESTEDIT: VARFLAGS = VARFLAGS(8u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FDISPLAYBIND: VARFLAGS = VARFLAGS(16u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FDEFAULTBIND: VARFLAGS = VARFLAGS(32u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FHIDDEN: VARFLAGS = VARFLAGS(64u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FRESTRICTED: VARFLAGS = VARFLAGS(128u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FDEFAULTCOLLELEM: VARFLAGS = VARFLAGS(256u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FUIDEFAULT: VARFLAGS = VARFLAGS(512u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FNONBROWSABLE: VARFLAGS = VARFLAGS(1024u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FREPLACEABLE: VARFLAGS = VARFLAGS(2048u16); +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub const VARFLAG_FIMMEDIATEBIND: VARFLAGS = VARFLAGS(4096u16); +impl ::core::marker::Copy for VARFLAGS {} +impl ::core::clone::Clone for VARFLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for VARFLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for VARFLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for VARFLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("VARFLAGS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct VARKIND(pub i32); #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub const VAR_PERINSTANCE: VARKIND = VARKIND(0i32); @@ -12612,6 +12881,37 @@ impl ::core::default::Default for DWORD_BLOB { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub struct DWORD_SIZEDARR { + pub clSize: u32, + pub pData: *mut u32, +} +impl ::core::marker::Copy for DWORD_SIZEDARR {} +impl ::core::clone::Clone for DWORD_SIZEDARR { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for DWORD_SIZEDARR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("DWORD_SIZEDARR").field("clSize", &self.clSize).field("pData", &self.pData).finish() + } +} +unsafe impl ::windows::core::Abi for DWORD_SIZEDARR { + type Abi = Self; +} +impl ::core::cmp::PartialEq for DWORD_SIZEDARR { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for DWORD_SIZEDARR {} +impl ::core::default::Default for DWORD_SIZEDARR { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub struct ELEMDESC { @@ -13063,37 +13363,6 @@ impl ::core::default::Default for INTERFACEINFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Com\"`*"] -pub struct LONG_SIZEDARR { - pub clSize: u32, - pub pData: *mut u32, -} -impl ::core::marker::Copy for LONG_SIZEDARR {} -impl ::core::clone::Clone for LONG_SIZEDARR { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for LONG_SIZEDARR { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("LONG_SIZEDARR").field("clSize", &self.clSize).field("pData", &self.pData).finish() - } -} -unsafe impl ::windows::core::Abi for LONG_SIZEDARR { - type Abi = Self; -} -impl ::core::cmp::PartialEq for LONG_SIZEDARR { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for LONG_SIZEDARR {} -impl ::core::default::Default for LONG_SIZEDARR { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub struct MULTI_QI { pub pIID: *const ::windows::core::GUID, pub pItf: ::core::option::Option<::windows::core::IUnknown>, @@ -13226,7 +13495,7 @@ impl ::core::default::Default for RPCOLEMESSAGE { #[repr(C)] #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub struct RemSTGMEDIUM { - pub tymed: u32, + pub tymed: TYMED, pub dwHandleType: u32, pub pData: u32, pub pUnkForRelease: u32, @@ -13262,7 +13531,7 @@ impl ::core::default::Default for RemSTGMEDIUM { #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub struct SAFEARRAY { pub cDims: u16, - pub fFeatures: u16, + pub fFeatures: ADVANCED_FEATURE_FLAGS, pub cbElements: u32, pub cLocks: u32, pub pvData: *mut ::core::ffi::c_void, @@ -13361,37 +13630,6 @@ impl ::core::default::Default for SChannelHookCallInfo { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Com\"`*"] -pub struct SHORT_SIZEDARR { - pub clSize: u32, - pub pData: *mut u16, -} -impl ::core::marker::Copy for SHORT_SIZEDARR {} -impl ::core::clone::Clone for SHORT_SIZEDARR { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for SHORT_SIZEDARR { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("SHORT_SIZEDARR").field("clSize", &self.clSize).field("pData", &self.pData).finish() - } -} -unsafe impl ::windows::core::Abi for SHORT_SIZEDARR { - type Abi = Self; -} -impl ::core::cmp::PartialEq for SHORT_SIZEDARR { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for SHORT_SIZEDARR {} -impl ::core::default::Default for SHORT_SIZEDARR { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub struct SOLE_AUTHENTICATION_INFO { pub dwAuthnSvc: u32, pub dwAuthzSvc: u32, @@ -13528,8 +13766,8 @@ pub struct STATSTG { pub mtime: super::super::Foundation::FILETIME, pub ctime: super::super::Foundation::FILETIME, pub atime: super::super::Foundation::FILETIME, - pub grfMode: u32, - pub grfLocksSupported: u32, + pub grfMode: STGM, + pub grfLocksSupported: LOCKTYPE, pub clsid: ::windows::core::GUID, pub grfStateBits: u32, pub reserved: u32, @@ -13570,7 +13808,7 @@ impl ::core::default::Default for STATSTG { #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] pub struct STGMEDIUM { - pub tymed: u32, + pub tymed: TYMED, pub Anonymous: STGMEDIUM_0, pub pUnkForRelease: ::core::option::Option<::windows::core::IUnknown>, } @@ -13826,7 +14064,7 @@ pub struct VARDESC { pub lpstrSchema: ::windows::core::PWSTR, pub Anonymous: VARDESC_0, pub elemdescVar: ELEMDESC, - pub wVarFlags: u16, + pub wVarFlags: VARFLAGS, pub varkind: VARKIND, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] @@ -14128,6 +14366,37 @@ impl ::core::default::Default for WORD_BLOB { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Com\"`*"] +pub struct WORD_SIZEDARR { + pub clSize: u32, + pub pData: *mut u16, +} +impl ::core::marker::Copy for WORD_SIZEDARR {} +impl ::core::clone::Clone for WORD_SIZEDARR { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for WORD_SIZEDARR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("WORD_SIZEDARR").field("clSize", &self.clSize).field("pData", &self.pData).finish() + } +} +unsafe impl ::windows::core::Abi for WORD_SIZEDARR { + type Abi = Self; +} +impl ::core::cmp::PartialEq for WORD_SIZEDARR { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for WORD_SIZEDARR {} +impl ::core::default::Default for WORD_SIZEDARR { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub struct uCLSSPEC { pub tyspec: u32, pub tagged_union: uCLSSPEC_0, diff --git a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs index 7aa2f8a341..f5b2fa4783 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs @@ -11558,6 +11558,72 @@ impl ::core::fmt::Debug for TransactionVote { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] +pub struct APPDATA { + pub m_idApp: u32, + pub m_szAppGuid: [u16; 40], + pub m_dwAppProcessId: u32, + pub m_AppStatistics: APPSTATISTICS, +} +impl ::core::marker::Copy for APPDATA {} +impl ::core::clone::Clone for APPDATA { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for APPDATA { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("APPDATA").field("m_idApp", &self.m_idApp).field("m_szAppGuid", &self.m_szAppGuid).field("m_dwAppProcessId", &self.m_dwAppProcessId).field("m_AppStatistics", &self.m_AppStatistics).finish() + } +} +unsafe impl ::windows::core::Abi for APPDATA { + type Abi = Self; +} +impl ::core::cmp::PartialEq for APPDATA { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for APPDATA {} +impl ::core::default::Default for APPDATA { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] +pub struct APPSTATISTICS { + pub m_cTotalCalls: u32, + pub m_cTotalInstances: u32, + pub m_cTotalClasses: u32, + pub m_cCallsPerSecond: u32, +} +impl ::core::marker::Copy for APPSTATISTICS {} +impl ::core::clone::Clone for APPSTATISTICS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for APPSTATISTICS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("APPSTATISTICS").field("m_cTotalCalls", &self.m_cTotalCalls).field("m_cTotalInstances", &self.m_cTotalInstances).field("m_cTotalClasses", &self.m_cTotalClasses).field("m_cCallsPerSecond", &self.m_cCallsPerSecond).finish() + } +} +unsafe impl ::windows::core::Abi for APPSTATISTICS { + type Abi = Self; +} +impl ::core::cmp::PartialEq for APPSTATISTICS { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for APPSTATISTICS {} +impl ::core::default::Default for APPSTATISTICS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_System_ComponentServices\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct ApplicationProcessRecycleInfo { @@ -11754,73 +11820,7 @@ impl ::core::default::Default for ApplicationSummary { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] -pub struct CAppData { - pub m_idApp: u32, - pub m_szAppGuid: [u16; 40], - pub m_dwAppProcessId: u32, - pub m_AppStatistics: CAppStatistics, -} -impl ::core::marker::Copy for CAppData {} -impl ::core::clone::Clone for CAppData { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for CAppData { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("CAppData").field("m_idApp", &self.m_idApp).field("m_szAppGuid", &self.m_szAppGuid).field("m_dwAppProcessId", &self.m_dwAppProcessId).field("m_AppStatistics", &self.m_AppStatistics).finish() - } -} -unsafe impl ::windows::core::Abi for CAppData { - type Abi = Self; -} -impl ::core::cmp::PartialEq for CAppData { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for CAppData {} -impl ::core::default::Default for CAppData { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] -pub struct CAppStatistics { - pub m_cTotalCalls: u32, - pub m_cTotalInstances: u32, - pub m_cTotalClasses: u32, - pub m_cCallsPerSecond: u32, -} -impl ::core::marker::Copy for CAppStatistics {} -impl ::core::clone::Clone for CAppStatistics { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for CAppStatistics { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("CAppStatistics").field("m_cTotalCalls", &self.m_cTotalCalls).field("m_cTotalInstances", &self.m_cTotalInstances).field("m_cTotalClasses", &self.m_cTotalClasses).field("m_cCallsPerSecond", &self.m_cCallsPerSecond).finish() - } -} -unsafe impl ::windows::core::Abi for CAppStatistics { - type Abi = Self; -} -impl ::core::cmp::PartialEq for CAppStatistics { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for CAppStatistics {} -impl ::core::default::Default for CAppStatistics { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] -pub struct CCLSIDData { +pub struct CLSIDDATA { pub m_clsid: ::windows::core::GUID, pub m_cReferences: u32, pub m_cBound: u32, @@ -11830,34 +11830,34 @@ pub struct CCLSIDData { pub m_cCallsCompleted: u32, pub m_cCallsFailed: u32, } -impl ::core::marker::Copy for CCLSIDData {} -impl ::core::clone::Clone for CCLSIDData { +impl ::core::marker::Copy for CLSIDDATA {} +impl ::core::clone::Clone for CLSIDDATA { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for CCLSIDData { +impl ::core::fmt::Debug for CLSIDDATA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("CCLSIDData").field("m_clsid", &self.m_clsid).field("m_cReferences", &self.m_cReferences).field("m_cBound", &self.m_cBound).field("m_cPooled", &self.m_cPooled).field("m_cInCall", &self.m_cInCall).field("m_dwRespTime", &self.m_dwRespTime).field("m_cCallsCompleted", &self.m_cCallsCompleted).field("m_cCallsFailed", &self.m_cCallsFailed).finish() + f.debug_struct("CLSIDDATA").field("m_clsid", &self.m_clsid).field("m_cReferences", &self.m_cReferences).field("m_cBound", &self.m_cBound).field("m_cPooled", &self.m_cPooled).field("m_cInCall", &self.m_cInCall).field("m_dwRespTime", &self.m_dwRespTime).field("m_cCallsCompleted", &self.m_cCallsCompleted).field("m_cCallsFailed", &self.m_cCallsFailed).finish() } } -unsafe impl ::windows::core::Abi for CCLSIDData { +unsafe impl ::windows::core::Abi for CLSIDDATA { type Abi = Self; } -impl ::core::cmp::PartialEq for CCLSIDData { +impl ::core::cmp::PartialEq for CLSIDDATA { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for CCLSIDData {} -impl ::core::default::Default for CCLSIDData { +impl ::core::cmp::Eq for CLSIDDATA {} +impl ::core::default::Default for CLSIDDATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] -pub struct CCLSIDData2 { +pub struct CLSIDDATA2 { pub m_clsid: ::windows::core::GUID, pub m_appid: ::windows::core::GUID, pub m_partid: ::windows::core::GUID, @@ -11872,15 +11872,15 @@ pub struct CCLSIDData2 { pub m_cCallsCompleted: u32, pub m_cCallsFailed: u32, } -impl ::core::marker::Copy for CCLSIDData2 {} -impl ::core::clone::Clone for CCLSIDData2 { +impl ::core::marker::Copy for CLSIDDATA2 {} +impl ::core::clone::Clone for CLSIDDATA2 { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for CCLSIDData2 { +impl ::core::fmt::Debug for CLSIDDATA2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("CCLSIDData2") + f.debug_struct("CLSIDDATA2") .field("m_clsid", &self.m_clsid) .field("m_appid", &self.m_appid) .field("m_partid", &self.m_partid) @@ -11897,16 +11897,16 @@ impl ::core::fmt::Debug for CCLSIDData2 { .finish() } } -unsafe impl ::windows::core::Abi for CCLSIDData2 { +unsafe impl ::windows::core::Abi for CLSIDDATA2 { type Abi = Self; } -impl ::core::cmp::PartialEq for CCLSIDData2 { +impl ::core::cmp::PartialEq for CLSIDDATA2 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for CCLSIDData2 {} -impl ::core::default::Default for CCLSIDData2 { +impl ::core::cmp::Eq for CLSIDDATA2 {} +impl ::core::default::Default for CLSIDDATA2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } diff --git a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs index 521e2e4170..3feb6ea8b4 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs @@ -1,16 +1,6 @@ #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn PxeProviderFreeInfo(pprovider: &PXE_PROVIDER) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn PxeProviderFreeInfo(pprovider: *const PXE_PROVIDER) -> u32; - } - PxeProviderFreeInfo(::core::mem::transmute(pprovider)) -} -#[doc = "*Required features: `\"Win32_System_DeploymentServices\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] pub unsafe fn PxeTrace<'a, P0, P1>(hprovider: P0, severity: u32, pszformat: P1) -> u32 where P0: ::std::convert::Into, @@ -278,6 +268,16 @@ where } PxeProviderEnumNext(henum.into(), ::core::mem::transmute(ppprovider)) } +#[doc = "*Required features: `\"Win32_System_DeploymentServices\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn PxeProviderFreeInfo(pprovider: &PXE_PROVIDER) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn PxeProviderFreeInfo(pprovider: *const PXE_PROVIDER) -> u32; + } + PxeProviderFreeInfo(::core::mem::transmute(pprovider)) +} #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`*"] #[inline] pub unsafe fn PxeProviderQueryIndex<'a, P0>(pszprovidername: P0, puindex: &mut u32) -> u32 @@ -5531,7 +5531,7 @@ impl ::core::default::Default for PXE_ADDRESS_0 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`*"] pub struct PXE_DHCPV6_MESSAGE { pub MessageType: u8, @@ -5560,7 +5560,7 @@ impl ::core::default::Default for PXE_DHCPV6_MESSAGE { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`*"] pub struct PXE_DHCPV6_MESSAGE_HEADER { pub MessageType: u8, @@ -5572,11 +5572,6 @@ impl ::core::clone::Clone for PXE_DHCPV6_MESSAGE_HEADER { *self } } -impl ::core::fmt::Debug for PXE_DHCPV6_MESSAGE_HEADER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("PXE_DHCPV6_MESSAGE_HEADER").field("MessageType", &self.MessageType).field("Message", &self.Message).finish() - } -} unsafe impl ::windows::core::Abi for PXE_DHCPV6_MESSAGE_HEADER { type Abi = Self; } @@ -5651,7 +5646,7 @@ impl ::core::default::Default for PXE_DHCPV6_OPTION { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`*"] pub struct PXE_DHCPV6_RELAY_MESSAGE { pub MessageType: u8, @@ -5746,7 +5741,7 @@ impl ::core::default::Default for PXE_DHCP_MESSAGE_0 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`*"] pub struct PXE_DHCP_OPTION { pub OptionType: u8, @@ -5759,11 +5754,6 @@ impl ::core::clone::Clone for PXE_DHCP_OPTION { *self } } -impl ::core::fmt::Debug for PXE_DHCP_OPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("PXE_DHCP_OPTION").field("OptionType", &self.OptionType).field("OptionLength", &self.OptionLength).field("OptionValue", &self.OptionValue).finish() - } -} unsafe impl ::windows::core::Abi for PXE_DHCP_OPTION { type Abi = Self; } diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs index c7449190bb..6a94a8ec36 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs @@ -3343,7 +3343,7 @@ pub trait IDebugApplication32_Impl: Sized + IRemoteDebugApplication_Impl { fn StepOutComplete(&self) -> ::windows::core::Result<()>; fn DebugOutput(&self, pstr: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn StartDebugSession(&self) -> ::windows::core::Result<()>; - fn HandleBreakPoint(&self, br: BREAKREASON) -> ::windows::core::Result; + fn HandleBreakPoint(&self, br: BREAKREASON) -> ::windows::core::Result; fn Close(&self) -> ::windows::core::Result<()>; fn GetBreakFlags(&self, pabf: *mut u32, pprdatsteppingthread: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn GetCurrentThread(&self) -> ::windows::core::Result; @@ -3354,7 +3354,7 @@ pub trait IDebugApplication32_Impl: Sized + IRemoteDebugApplication_Impl { fn SynchronousCallInDebuggerThread(&self, pptc: &::core::option::Option, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> ::windows::core::Result<()>; fn CreateApplicationNode(&self) -> ::windows::core::Result; fn FireDebuggerEvent(&self, riid: *const ::windows::core::GUID, punk: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; - fn HandleRuntimeError(&self, perrordebug: &::core::option::Option, pscriptsite: &::core::option::Option, pbra: *mut BREAKRESUME_ACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn HandleRuntimeError(&self, perrordebug: &::core::option::Option, pscriptsite: &::core::option::Option, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn FCanJitDebug(&self) -> super::super::super::Foundation::BOOL; fn FIsAutoJitDebugEnabled(&self) -> super::super::super::Foundation::BOOL; fn AddGlobalExpressionContextProvider(&self, pdsfs: &::core::option::Option) -> ::windows::core::Result; @@ -3385,7 +3385,7 @@ impl IDebugApplication32_Vtbl { let this = (*this).get_impl(); this.StartDebugSession().into() } - unsafe extern "system" fn HandleBreakPoint, Impl: IDebugApplication32_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, br: BREAKREASON, pbra: *mut BREAKRESUME_ACTION) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleBreakPoint, Impl: IDebugApplication32_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, br: BREAKREASON, pbra: *mut BREAKRESUMEACTION) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HandleBreakPoint(::core::mem::transmute_copy(&br)) { @@ -3470,7 +3470,7 @@ impl IDebugApplication32_Vtbl { let this = (*this).get_impl(); this.FireDebuggerEvent(::core::mem::transmute_copy(&riid), ::core::mem::transmute(&punk)).into() } - unsafe extern "system" fn HandleRuntimeError, Impl: IDebugApplication32_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, perrordebug: *mut ::core::ffi::c_void, pscriptsite: *mut ::core::ffi::c_void, pbra: *mut BREAKRESUME_ACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleRuntimeError, Impl: IDebugApplication32_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, perrordebug: *mut ::core::ffi::c_void, pscriptsite: *mut ::core::ffi::c_void, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleRuntimeError(::core::mem::transmute(&perrordebug), ::core::mem::transmute(&pscriptsite), ::core::mem::transmute_copy(&pbra), ::core::mem::transmute_copy(&perra), ::core::mem::transmute_copy(&pfcallonscripterror)).into() @@ -3535,7 +3535,7 @@ pub trait IDebugApplication64_Impl: Sized + IRemoteDebugApplication_Impl { fn StepOutComplete(&self) -> ::windows::core::Result<()>; fn DebugOutput(&self, pstr: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn StartDebugSession(&self) -> ::windows::core::Result<()>; - fn HandleBreakPoint(&self, br: BREAKREASON) -> ::windows::core::Result; + fn HandleBreakPoint(&self, br: BREAKREASON) -> ::windows::core::Result; fn Close(&self) -> ::windows::core::Result<()>; fn GetBreakFlags(&self, pabf: *mut u32, pprdatsteppingthread: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn GetCurrentThread(&self) -> ::windows::core::Result; @@ -3546,7 +3546,7 @@ pub trait IDebugApplication64_Impl: Sized + IRemoteDebugApplication_Impl { fn SynchronousCallInDebuggerThread(&self, pptc: &::core::option::Option, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> ::windows::core::Result<()>; fn CreateApplicationNode(&self) -> ::windows::core::Result; fn FireDebuggerEvent(&self, riid: *const ::windows::core::GUID, punk: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; - fn HandleRuntimeError(&self, perrordebug: &::core::option::Option, pscriptsite: &::core::option::Option, pbra: *mut BREAKRESUME_ACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn HandleRuntimeError(&self, perrordebug: &::core::option::Option, pscriptsite: &::core::option::Option, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn FCanJitDebug(&self) -> super::super::super::Foundation::BOOL; fn FIsAutoJitDebugEnabled(&self) -> super::super::super::Foundation::BOOL; fn AddGlobalExpressionContextProvider(&self, pdsfs: &::core::option::Option) -> ::windows::core::Result; @@ -3577,7 +3577,7 @@ impl IDebugApplication64_Vtbl { let this = (*this).get_impl(); this.StartDebugSession().into() } - unsafe extern "system" fn HandleBreakPoint, Impl: IDebugApplication64_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, br: BREAKREASON, pbra: *mut BREAKRESUME_ACTION) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleBreakPoint, Impl: IDebugApplication64_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, br: BREAKREASON, pbra: *mut BREAKRESUMEACTION) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HandleBreakPoint(::core::mem::transmute_copy(&br)) { @@ -3662,7 +3662,7 @@ impl IDebugApplication64_Vtbl { let this = (*this).get_impl(); this.FireDebuggerEvent(::core::mem::transmute_copy(&riid), ::core::mem::transmute(&punk)).into() } - unsafe extern "system" fn HandleRuntimeError, Impl: IDebugApplication64_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, perrordebug: *mut ::core::ffi::c_void, pscriptsite: *mut ::core::ffi::c_void, pbra: *mut BREAKRESUME_ACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleRuntimeError, Impl: IDebugApplication64_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, perrordebug: *mut ::core::ffi::c_void, pscriptsite: *mut ::core::ffi::c_void, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleRuntimeError(::core::mem::transmute(&perrordebug), ::core::mem::transmute(&pscriptsite), ::core::mem::transmute_copy(&pbra), ::core::mem::transmute_copy(&perra), ::core::mem::transmute_copy(&pfcallonscripterror)).into() @@ -31962,7 +31962,7 @@ impl IRawEnumerator_Vtbl { } } pub trait IRemoteDebugApplication_Impl: Sized { - fn ResumeFromBreakPoint(&self, prptfocus: &::core::option::Option, bra: BREAKRESUME_ACTION, era: ERRORRESUMEACTION) -> ::windows::core::Result<()>; + fn ResumeFromBreakPoint(&self, prptfocus: &::core::option::Option, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> ::windows::core::Result<()>; fn CauseBreak(&self) -> ::windows::core::Result<()>; fn ConnectDebugger(&self, pad: &::core::option::Option) -> ::windows::core::Result<()>; fn DisconnectDebugger(&self) -> ::windows::core::Result<()>; @@ -31977,7 +31977,7 @@ pub trait IRemoteDebugApplication_Impl: Sized { impl ::windows::core::RuntimeName for IRemoteDebugApplication {} impl IRemoteDebugApplication_Vtbl { pub const fn new, Impl: IRemoteDebugApplication_Impl, const OFFSET: isize>() -> IRemoteDebugApplication_Vtbl { - unsafe extern "system" fn ResumeFromBreakPoint, Impl: IRemoteDebugApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prptfocus: *mut ::core::ffi::c_void, bra: BREAKRESUME_ACTION, era: ERRORRESUMEACTION) -> ::windows::core::HRESULT { + unsafe extern "system" fn ResumeFromBreakPoint, Impl: IRemoteDebugApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prptfocus: *mut ::core::ffi::c_void, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ResumeFromBreakPoint(::core::mem::transmute(&prptfocus), ::core::mem::transmute_copy(&bra), ::core::mem::transmute_copy(&era)).into() 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 d09e38b2e2..02fb25f62c 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 @@ -1,61 +1,3 @@ -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(target_arch = "aarch64")] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RtlAddFunctionTable(functiontable: &[IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY], baseaddress: usize) -> super::super::super::Foundation::BOOLEAN { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RtlAddFunctionTable(functiontable: *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, entrycount: u32, baseaddress: usize) -> super::super::super::Foundation::BOOLEAN; - } - RtlAddFunctionTable(::core::mem::transmute(functiontable.as_ptr()), functiontable.len() as _, baseaddress) -} -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(target_arch = "x86_64")] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RtlAddFunctionTable(functiontable: &[IMAGE_RUNTIME_FUNCTION_ENTRY], baseaddress: u64) -> super::super::super::Foundation::BOOLEAN { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RtlAddFunctionTable(functiontable: *const IMAGE_RUNTIME_FUNCTION_ENTRY, entrycount: u32, baseaddress: u64) -> super::super::super::Foundation::BOOLEAN; - } - RtlAddFunctionTable(::core::mem::transmute(functiontable.as_ptr()), functiontable.len() as _, baseaddress) -} -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(target_arch = "aarch64")] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RtlDeleteFunctionTable(functiontable: &IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RtlDeleteFunctionTable(functiontable: *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN; - } - RtlDeleteFunctionTable(::core::mem::transmute(functiontable)) -} -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(target_arch = "x86_64")] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RtlDeleteFunctionTable(functiontable: &IMAGE_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RtlDeleteFunctionTable(functiontable: *const IMAGE_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN; - } - RtlDeleteFunctionTable(::core::mem::transmute(functiontable)) -} -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn RtlInstallFunctionTableCallback<'a, P0>(tableidentifier: u64, baseaddress: u64, length: u32, callback: PGET_RUNTIME_FUNCTION_CALLBACK, context: *const ::core::ffi::c_void, outofprocesscallbackdll: P0) -> super::super::super::Foundation::BOOLEAN -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RtlInstallFunctionTableCallback(tableidentifier: u64, baseaddress: u64, length: u32, callback: *mut ::core::ffi::c_void, context: *const ::core::ffi::c_void, outofprocesscallbackdll: ::windows::core::PCWSTR) -> super::super::super::Foundation::BOOLEAN; - } - RtlInstallFunctionTableCallback(tableidentifier, baseaddress, length, ::core::mem::transmute(callback), ::core::mem::transmute(context), outofprocesscallbackdll.into()) -} #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] #[inline] @@ -1111,13 +1053,13 @@ where } MapFileAndCheckSumW(filename.into(), ::core::mem::transmute(headersum), ::core::mem::transmute(checksum)) } -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] -pub unsafe fn MessageBeep(utype: u32) -> super::super::super::Foundation::BOOL { +pub unsafe fn MessageBeep(utype: super::super::super::UI::WindowsAndMessaging::MESSAGEBOX_STYLE) -> super::super::super::Foundation::BOOL { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn MessageBeep(utype: u32) -> super::super::super::Foundation::BOOL; + fn MessageBeep(utype: super::super::super::UI::WindowsAndMessaging::MESSAGEBOX_STYLE) -> super::super::super::Foundation::BOOL; } MessageBeep(utype) } @@ -1360,6 +1302,28 @@ where } ReportSymbolLoadSummary(hprocess.into(), ploadmodule.into(), ::core::mem::transmute(psymboldata)) } +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] +#[cfg(target_arch = "aarch64")] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RtlAddFunctionTable(functiontable: &[IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY], baseaddress: usize) -> super::super::super::Foundation::BOOLEAN { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RtlAddFunctionTable(functiontable: *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, entrycount: u32, baseaddress: usize) -> super::super::super::Foundation::BOOLEAN; + } + RtlAddFunctionTable(::core::mem::transmute(functiontable.as_ptr()), functiontable.len() as _, baseaddress) +} +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] +#[cfg(target_arch = "x86_64")] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RtlAddFunctionTable(functiontable: &[IMAGE_RUNTIME_FUNCTION_ENTRY], baseaddress: u64) -> super::super::super::Foundation::BOOLEAN { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RtlAddFunctionTable(functiontable: *const IMAGE_RUNTIME_FUNCTION_ENTRY, entrycount: u32, baseaddress: u64) -> super::super::super::Foundation::BOOLEAN; + } + RtlAddFunctionTable(::core::mem::transmute(functiontable.as_ptr()), functiontable.len() as _, baseaddress) +} #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[cfg(target_arch = "aarch64")] #[inline] @@ -1410,6 +1374,28 @@ pub unsafe fn RtlCaptureStackBackTrace(framestoskip: u32, backtrace: &mut [*mut } RtlCaptureStackBackTrace(framestoskip, backtrace.len() as _, ::core::mem::transmute(backtrace.as_ptr()), ::core::mem::transmute(backtracehash)) } +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] +#[cfg(target_arch = "aarch64")] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RtlDeleteFunctionTable(functiontable: &IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RtlDeleteFunctionTable(functiontable: *const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN; + } + RtlDeleteFunctionTable(::core::mem::transmute(functiontable)) +} +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] +#[cfg(target_arch = "x86_64")] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RtlDeleteFunctionTable(functiontable: &IMAGE_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RtlDeleteFunctionTable(functiontable: *const IMAGE_RUNTIME_FUNCTION_ENTRY) -> super::super::super::Foundation::BOOLEAN; + } + RtlDeleteFunctionTable(::core::mem::transmute(functiontable)) +} #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] #[inline] @@ -1430,6 +1416,34 @@ pub unsafe fn RtlGrowFunctionTable(dynamictable: *mut ::core::ffi::c_void, newen } RtlGrowFunctionTable(::core::mem::transmute(dynamictable), newentrycount) } +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] +#[cfg(target_arch = "aarch64")] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RtlInstallFunctionTableCallback<'a, P0>(tableidentifier: u64, baseaddress: u64, length: u32, callback: PGET_RUNTIME_FUNCTION_CALLBACK, context: *const ::core::ffi::c_void, outofprocesscallbackdll: P0) -> super::super::super::Foundation::BOOLEAN +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RtlInstallFunctionTableCallback(tableidentifier: u64, baseaddress: u64, length: u32, callback: *mut ::core::ffi::c_void, context: *const ::core::ffi::c_void, outofprocesscallbackdll: ::windows::core::PCWSTR) -> super::super::super::Foundation::BOOLEAN; + } + RtlInstallFunctionTableCallback(tableidentifier, baseaddress, length, ::core::mem::transmute(callback), ::core::mem::transmute(context), outofprocesscallbackdll.into()) +} +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] +#[cfg(target_arch = "x86_64")] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn RtlInstallFunctionTableCallback<'a, P0>(tableidentifier: u64, baseaddress: u64, length: u32, callback: PGET_RUNTIME_FUNCTION_CALLBACK, context: *const ::core::ffi::c_void, outofprocesscallbackdll: P0) -> super::super::super::Foundation::BOOLEAN +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RtlInstallFunctionTableCallback(tableidentifier: u64, baseaddress: u64, length: u32, callback: *mut ::core::ffi::c_void, context: *const ::core::ffi::c_void, outofprocesscallbackdll: ::windows::core::PCWSTR) -> super::super::super::Foundation::BOOLEAN; + } + RtlInstallFunctionTableCallback(tableidentifier, baseaddress, length, ::core::mem::transmute(callback), ::core::mem::transmute(context), outofprocesscallbackdll.into()) +} #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[cfg(target_arch = "aarch64")] #[inline] @@ -10148,7 +10162,7 @@ pub struct IDebugApplication11064_Vtbl { #[repr(transparent)] pub struct IDebugApplication32(::windows::core::IUnknown); impl IDebugApplication32 { - pub unsafe fn ResumeFromBreakPoint<'a, P0>(&self, prptfocus: P0, bra: BREAKRESUME_ACTION, era: ERRORRESUMEACTION) -> ::windows::core::Result<()> + pub unsafe fn ResumeFromBreakPoint<'a, P0>(&self, prptfocus: P0, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IRemoteDebugApplicationThread>>, { @@ -10214,9 +10228,9 @@ impl IDebugApplication32 { pub unsafe fn StartDebugSession(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).StartDebugSession)(::windows::core::Interface::as_raw(self)).ok() } - pub unsafe fn HandleBreakPoint(&self, br: BREAKREASON) -> ::windows::core::Result { + pub unsafe fn HandleBreakPoint(&self, br: BREAKREASON) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HandleBreakPoint)(::windows::core::Interface::as_raw(self), br, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HandleBreakPoint)(::windows::core::Interface::as_raw(self), br, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Close(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Close)(::windows::core::Interface::as_raw(self)).ok() @@ -10266,7 +10280,7 @@ impl IDebugApplication32 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandleRuntimeError<'a, P0, P1>(&self, perrordebug: P0, pscriptsite: P1, pbra: &mut BREAKRESUME_ACTION, perra: &mut ERRORRESUMEACTION, pfcallonscripterror: &mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()> + pub unsafe fn HandleRuntimeError<'a, P0, P1>(&self, perrordebug: P0, pscriptsite: P1, pbra: &mut BREAKRESUMEACTION, perra: &mut ERRORRESUMEACTION, pfcallonscripterror: &mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IActiveScriptErrorDebug>>, P1: ::std::convert::Into<::windows::core::InParam<'a, IActiveScriptSite>>, @@ -10352,7 +10366,7 @@ pub struct IDebugApplication32_Vtbl { pub StepOutComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DebugOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstr: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub StartDebugSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub HandleBreakPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, br: BREAKREASON, pbra: *mut BREAKRESUME_ACTION) -> ::windows::core::HRESULT, + pub HandleBreakPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, br: BREAKREASON, pbra: *mut BREAKRESUMEACTION) -> ::windows::core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetBreakFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pabf: *mut u32, pprdatsteppingthread: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetCurrentThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pat: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -10364,7 +10378,7 @@ pub struct IDebugApplication32_Vtbl { pub CreateApplicationNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdannew: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub FireDebuggerEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, punk: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub HandleRuntimeError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrordebug: *mut ::core::ffi::c_void, pscriptsite: *mut ::core::ffi::c_void, pbra: *mut BREAKRESUME_ACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub HandleRuntimeError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrordebug: *mut ::core::ffi::c_void, pscriptsite: *mut ::core::ffi::c_void, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] HandleRuntimeError: usize, #[cfg(feature = "Win32_Foundation")] @@ -10382,7 +10396,7 @@ pub struct IDebugApplication32_Vtbl { #[repr(transparent)] pub struct IDebugApplication64(::windows::core::IUnknown); impl IDebugApplication64 { - pub unsafe fn ResumeFromBreakPoint<'a, P0>(&self, prptfocus: P0, bra: BREAKRESUME_ACTION, era: ERRORRESUMEACTION) -> ::windows::core::Result<()> + pub unsafe fn ResumeFromBreakPoint<'a, P0>(&self, prptfocus: P0, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IRemoteDebugApplicationThread>>, { @@ -10448,9 +10462,9 @@ impl IDebugApplication64 { pub unsafe fn StartDebugSession(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).StartDebugSession)(::windows::core::Interface::as_raw(self)).ok() } - pub unsafe fn HandleBreakPoint(&self, br: BREAKREASON) -> ::windows::core::Result { + pub unsafe fn HandleBreakPoint(&self, br: BREAKREASON) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HandleBreakPoint)(::windows::core::Interface::as_raw(self), br, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HandleBreakPoint)(::windows::core::Interface::as_raw(self), br, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Close(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Close)(::windows::core::Interface::as_raw(self)).ok() @@ -10500,7 +10514,7 @@ impl IDebugApplication64 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandleRuntimeError<'a, P0, P1>(&self, perrordebug: P0, pscriptsite: P1, pbra: &mut BREAKRESUME_ACTION, perra: &mut ERRORRESUMEACTION, pfcallonscripterror: &mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()> + pub unsafe fn HandleRuntimeError<'a, P0, P1>(&self, perrordebug: P0, pscriptsite: P1, pbra: &mut BREAKRESUMEACTION, perra: &mut ERRORRESUMEACTION, pfcallonscripterror: &mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IActiveScriptErrorDebug>>, P1: ::std::convert::Into<::windows::core::InParam<'a, IActiveScriptSite>>, @@ -10586,7 +10600,7 @@ pub struct IDebugApplication64_Vtbl { pub StepOutComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DebugOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstr: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub StartDebugSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub HandleBreakPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, br: BREAKREASON, pbra: *mut BREAKRESUME_ACTION) -> ::windows::core::HRESULT, + pub HandleBreakPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, br: BREAKREASON, pbra: *mut BREAKRESUMEACTION) -> ::windows::core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetBreakFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pabf: *mut u32, pprdatsteppingthread: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetCurrentThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pat: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -10598,7 +10612,7 @@ pub struct IDebugApplication64_Vtbl { pub CreateApplicationNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdannew: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub FireDebuggerEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, punk: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub HandleRuntimeError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrordebug: *mut ::core::ffi::c_void, pscriptsite: *mut ::core::ffi::c_void, pbra: *mut BREAKRESUME_ACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub HandleRuntimeError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrordebug: *mut ::core::ffi::c_void, pscriptsite: *mut ::core::ffi::c_void, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] HandleRuntimeError: usize, #[cfg(feature = "Win32_Foundation")] @@ -35848,7 +35862,7 @@ pub struct IRawEnumerator_Vtbl { #[repr(transparent)] pub struct IRemoteDebugApplication(::windows::core::IUnknown); impl IRemoteDebugApplication { - pub unsafe fn ResumeFromBreakPoint<'a, P0>(&self, prptfocus: P0, bra: BREAKRESUME_ACTION, era: ERRORRESUMEACTION) -> ::windows::core::Result<()> + pub unsafe fn ResumeFromBreakPoint<'a, P0>(&self, prptfocus: P0, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IRemoteDebugApplicationThread>>, { @@ -35936,7 +35950,7 @@ unsafe impl ::windows::core::Interface for IRemoteDebugApplication { #[doc(hidden)] pub struct IRemoteDebugApplication_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub ResumeFromBreakPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prptfocus: *mut ::core::ffi::c_void, bra: BREAKRESUME_ACTION, era: ERRORRESUMEACTION) -> ::windows::core::HRESULT, + pub ResumeFromBreakPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prptfocus: *mut ::core::ffi::c_void, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> ::windows::core::HRESULT, pub CauseBreak: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ConnectDebugger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pad: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DisconnectDebugger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -39931,38 +39945,38 @@ impl ::core::fmt::Debug for BREAKREASON { #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct BREAKRESUME_ACTION(pub i32); +pub struct BREAKRESUMEACTION(pub i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_ABORT: BREAKRESUME_ACTION = BREAKRESUME_ACTION(0i32); +pub const BREAKRESUMEACTION_ABORT: BREAKRESUMEACTION = BREAKRESUMEACTION(0i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_CONTINUE: BREAKRESUME_ACTION = BREAKRESUME_ACTION(1i32); +pub const BREAKRESUMEACTION_CONTINUE: BREAKRESUMEACTION = BREAKRESUMEACTION(1i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_STEP_INTO: BREAKRESUME_ACTION = BREAKRESUME_ACTION(2i32); +pub const BREAKRESUMEACTION_STEP_INTO: BREAKRESUMEACTION = BREAKRESUMEACTION(2i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_STEP_OVER: BREAKRESUME_ACTION = BREAKRESUME_ACTION(3i32); +pub const BREAKRESUMEACTION_STEP_OVER: BREAKRESUMEACTION = BREAKRESUMEACTION(3i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_STEP_OUT: BREAKRESUME_ACTION = BREAKRESUME_ACTION(4i32); +pub const BREAKRESUMEACTION_STEP_OUT: BREAKRESUMEACTION = BREAKRESUMEACTION(4i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_IGNORE: BREAKRESUME_ACTION = BREAKRESUME_ACTION(5i32); +pub const BREAKRESUMEACTION_IGNORE: BREAKRESUMEACTION = BREAKRESUMEACTION(5i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const BREAKRESUMEACTION_STEP_DOCUMENT: BREAKRESUME_ACTION = BREAKRESUME_ACTION(6i32); -impl ::core::marker::Copy for BREAKRESUME_ACTION {} -impl ::core::clone::Clone for BREAKRESUME_ACTION { +pub const BREAKRESUMEACTION_STEP_DOCUMENT: BREAKRESUMEACTION = BREAKRESUMEACTION(6i32); +impl ::core::marker::Copy for BREAKRESUMEACTION {} +impl ::core::clone::Clone for BREAKRESUMEACTION { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for BREAKRESUME_ACTION { +impl ::core::default::Default for BREAKRESUMEACTION { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for BREAKRESUME_ACTION { +unsafe impl ::windows::core::Abi for BREAKRESUMEACTION { type Abi = Self; } -impl ::core::fmt::Debug for BREAKRESUME_ACTION { +impl ::core::fmt::Debug for BREAKRESUMEACTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("BREAKRESUME_ACTION").field(&self.0).finish() + f.debug_tuple("BREAKRESUMEACTION").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] @@ -41413,6 +41427,47 @@ impl ::core::fmt::Debug for DOCUMENTNAMETYPE { #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DUMP_TYPE(pub i32); +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_INVALID: DUMP_TYPE = DUMP_TYPE(-1i32); +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_UNKNOWN: DUMP_TYPE = DUMP_TYPE(0i32); +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_FULL: DUMP_TYPE = DUMP_TYPE(1i32); +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_SUMMARY: DUMP_TYPE = DUMP_TYPE(2i32); +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_HEADER: DUMP_TYPE = DUMP_TYPE(3i32); +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_TRIAGE: DUMP_TYPE = DUMP_TYPE(4i32); +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_BITMAP_FULL: DUMP_TYPE = DUMP_TYPE(5i32); +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_BITMAP_KERNEL: DUMP_TYPE = DUMP_TYPE(6i32); +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub const DUMP_TYPE_AUTOMATIC: DUMP_TYPE = DUMP_TYPE(7i32); +impl ::core::marker::Copy for DUMP_TYPE {} +impl ::core::clone::Clone for DUMP_TYPE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DUMP_TYPE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DUMP_TYPE { + type Abi = Self; +} +impl ::core::fmt::Debug for DUMP_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DUMP_TYPE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct ERRORRESUMEACTION(pub i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub const ERRORRESUMEACTION_ReexecuteErrorStatement: ERRORRESUMEACTION = ERRORRESUMEACTION(0i32); @@ -43609,122 +43664,94 @@ impl ::core::fmt::Debug for ModelObjectKind { #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct OBJECT_ATTRIB_FLAG(pub u32); +pub struct OBJECT_ATTRIB_FLAGS(pub i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_NO_ATTRIB: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(0u32); +pub const OBJECT_ATTRIB_NO_ATTRIB: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(0i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_NO_NAME: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(1u32); +pub const OBJECT_ATTRIB_NO_NAME: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(1i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_NO_TYPE: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(2u32); +pub const OBJECT_ATTRIB_NO_TYPE: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(2i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_NO_VALUE: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(4u32); +pub const OBJECT_ATTRIB_NO_VALUE: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(4i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_VALUE_IS_INVALID: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(8u32); +pub const OBJECT_ATTRIB_VALUE_IS_INVALID: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(8i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_VALUE_IS_OBJECT: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(16u32); +pub const OBJECT_ATTRIB_VALUE_IS_OBJECT: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(16i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_VALUE_IS_ENUM: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(32u32); +pub const OBJECT_ATTRIB_VALUE_IS_ENUM: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(32i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_VALUE_IS_CUSTOM: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(64u32); +pub const OBJECT_ATTRIB_VALUE_IS_CUSTOM: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(64i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_OBJECT_IS_EXPANDABLE: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(112u32); +pub const OBJECT_ATTRIB_OBJECT_IS_EXPANDABLE: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(112i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_VALUE_HAS_CODE: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(128u32); +pub const OBJECT_ATTRIB_VALUE_HAS_CODE: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(128i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_TYPE_IS_OBJECT: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(256u32); +pub const OBJECT_ATTRIB_TYPE_IS_OBJECT: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(256i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_TYPE_HAS_CODE: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(512u32); +pub const OBJECT_ATTRIB_TYPE_HAS_CODE: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(512i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_TYPE_IS_EXPANDABLE: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(256u32); +pub const OBJECT_ATTRIB_TYPE_IS_EXPANDABLE: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(256i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_SLOT_IS_CATEGORY: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(1024u32); +pub const OBJECT_ATTRIB_SLOT_IS_CATEGORY: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(1024i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_VALUE_READONLY: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(2048u32); +pub const OBJECT_ATTRIB_VALUE_READONLY: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(2048i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_ACCESS_PUBLIC: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(4096u32); +pub const OBJECT_ATTRIB_ACCESS_PUBLIC: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(4096i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_ACCESS_PRIVATE: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(8192u32); +pub const OBJECT_ATTRIB_ACCESS_PRIVATE: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(8192i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_ACCESS_PROTECTED: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(16384u32); +pub const OBJECT_ATTRIB_ACCESS_PROTECTED: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(16384i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_ACCESS_FINAL: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(32768u32); +pub const OBJECT_ATTRIB_ACCESS_FINAL: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(32768i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_STORAGE_GLOBAL: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(65536u32); +pub const OBJECT_ATTRIB_STORAGE_GLOBAL: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(65536i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_STORAGE_STATIC: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(131072u32); +pub const OBJECT_ATTRIB_STORAGE_STATIC: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(131072i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_STORAGE_FIELD: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(262144u32); +pub const OBJECT_ATTRIB_STORAGE_FIELD: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(262144i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_STORAGE_VIRTUAL: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(524288u32); +pub const OBJECT_ATTRIB_STORAGE_VIRTUAL: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(524288i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_TYPE_IS_CONSTANT: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(1048576u32); +pub const OBJECT_ATTRIB_TYPE_IS_CONSTANT: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(1048576i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_TYPE_IS_SYNCHRONIZED: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(2097152u32); +pub const OBJECT_ATTRIB_TYPE_IS_SYNCHRONIZED: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(2097152i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_TYPE_IS_VOLATILE: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(4194304u32); +pub const OBJECT_ATTRIB_TYPE_IS_VOLATILE: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(4194304i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_HAS_EXTENDED_ATTRIBS: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(8388608u32); +pub const OBJECT_ATTRIB_HAS_EXTENDED_ATTRIBS: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(8388608i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_CLASS: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(16777216u32); +pub const OBJECT_ATTRIB_IS_CLASS: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(16777216i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_FUNCTION: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(33554432u32); +pub const OBJECT_ATTRIB_IS_FUNCTION: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(33554432i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_VARIABLE: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(67108864u32); +pub const OBJECT_ATTRIB_IS_VARIABLE: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(67108864i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_PROPERTY: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(134217728u32); +pub const OBJECT_ATTRIB_IS_PROPERTY: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(134217728i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_MACRO: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(268435456u32); +pub const OBJECT_ATTRIB_IS_MACRO: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(268435456i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_TYPE: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(536870912u32); +pub const OBJECT_ATTRIB_IS_TYPE: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(536870912i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_INHERITED: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(1073741824u32); +pub const OBJECT_ATTRIB_IS_INHERITED: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(1073741824i32); #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const OBJECT_ATTRIB_IS_INTERFACE: OBJECT_ATTRIB_FLAG = OBJECT_ATTRIB_FLAG(2147483648u32); -impl ::core::marker::Copy for OBJECT_ATTRIB_FLAG {} -impl ::core::clone::Clone for OBJECT_ATTRIB_FLAG { +pub const OBJECT_ATTRIB_IS_INTERFACE: OBJECT_ATTRIB_FLAGS = OBJECT_ATTRIB_FLAGS(-2147483648i32); +impl ::core::marker::Copy for OBJECT_ATTRIB_FLAGS {} +impl ::core::clone::Clone for OBJECT_ATTRIB_FLAGS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for OBJECT_ATTRIB_FLAG { +impl ::core::default::Default for OBJECT_ATTRIB_FLAGS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for OBJECT_ATTRIB_FLAG { +unsafe impl ::windows::core::Abi for OBJECT_ATTRIB_FLAGS { type Abi = Self; } -impl ::core::fmt::Debug for OBJECT_ATTRIB_FLAG { +impl ::core::fmt::Debug for OBJECT_ATTRIB_FLAGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("OBJECT_ATTRIB_FLAG").field(&self.0).finish() - } -} -impl ::core::ops::BitOr for OBJECT_ATTRIB_FLAG { - type Output = Self; - fn bitor(self, other: Self) -> Self { - Self(self.0 | other.0) - } -} -impl ::core::ops::BitAnd for OBJECT_ATTRIB_FLAG { - type Output = Self; - fn bitand(self, other: Self) -> Self { - Self(self.0 & other.0) - } -} -impl ::core::ops::BitOrAssign for OBJECT_ATTRIB_FLAG { - fn bitor_assign(&mut self, other: Self) { - self.0.bitor_assign(other.0) - } -} -impl ::core::ops::BitAndAssign for OBJECT_ATTRIB_FLAG { - fn bitand_assign(&mut self, other: Self) { - self.0.bitand_assign(other.0) - } -} -impl ::core::ops::Not for OBJECT_ATTRIB_FLAG { - type Output = Self; - fn not(self) -> Self { - Self(self.0.not()) + f.debug_tuple("OBJECT_ATTRIB_FLAGS").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] @@ -45624,47 +45651,6 @@ impl ::core::fmt::Debug for WHEA_ERROR_SOURCE_TYPE { f.debug_tuple("WHEA_ERROR_SOURCE_TYPE").field(&self.0).finish() } } -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _DUMP_TYPES(pub i32); -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_INVALID: _DUMP_TYPES = _DUMP_TYPES(-1i32); -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_UNKNOWN: _DUMP_TYPES = _DUMP_TYPES(0i32); -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_FULL: _DUMP_TYPES = _DUMP_TYPES(1i32); -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_SUMMARY: _DUMP_TYPES = _DUMP_TYPES(2i32); -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_HEADER: _DUMP_TYPES = _DUMP_TYPES(3i32); -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_TRIAGE: _DUMP_TYPES = _DUMP_TYPES(4i32); -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_BITMAP_FULL: _DUMP_TYPES = _DUMP_TYPES(5i32); -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_BITMAP_KERNEL: _DUMP_TYPES = _DUMP_TYPES(6i32); -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub const DUMP_TYPE_AUTOMATIC: _DUMP_TYPES = _DUMP_TYPES(7i32); -impl ::core::marker::Copy for _DUMP_TYPES {} -impl ::core::clone::Clone for _DUMP_TYPES { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _DUMP_TYPES { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _DUMP_TYPES { - type Abi = Self; -} -impl ::core::fmt::Debug for _DUMP_TYPES { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_DUMP_TYPES").field(&self.0).finish() - } -} #[repr(C)] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[cfg(target_arch = "x86")] @@ -46192,6 +46178,41 @@ impl ::core::default::Default for ArrayDimension { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub struct BUSDATA { + pub BusDataType: u32, + pub BusNumber: u32, + pub SlotNumber: u32, + pub Buffer: *mut ::core::ffi::c_void, + pub Offset: u32, + pub Length: u32, +} +impl ::core::marker::Copy for BUSDATA {} +impl ::core::clone::Clone for BUSDATA { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for BUSDATA { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("BUSDATA").field("BusDataType", &self.BusDataType).field("BusNumber", &self.BusNumber).field("SlotNumber", &self.SlotNumber).field("Buffer", &self.Buffer).field("Offset", &self.Offset).field("Length", &self.Length).finish() + } +} +unsafe impl ::windows::core::Abi for BUSDATA { + type Abi = Self; +} +impl ::core::cmp::PartialEq for BUSDATA { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for BUSDATA {} +impl ::core::default::Default for BUSDATA { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_System_Kernel\"`*"] #[cfg(target_arch = "aarch64")] #[cfg(feature = "Win32_System_Kernel")] @@ -50619,6 +50640,38 @@ impl ::core::default::Default for IMAGEHLP_GET_TYPE_INFO_PARAMS { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] +pub struct IMAGEHLP_JIT_SYMBOLMAP { + pub SizeOfStruct: u32, + pub Address: u64, + pub BaseOfImage: u64, +} +impl ::core::marker::Copy for IMAGEHLP_JIT_SYMBOLMAP {} +impl ::core::clone::Clone for IMAGEHLP_JIT_SYMBOLMAP { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for IMAGEHLP_JIT_SYMBOLMAP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("IMAGEHLP_JIT_SYMBOLMAP").field("SizeOfStruct", &self.SizeOfStruct).field("Address", &self.Address).field("BaseOfImage", &self.BaseOfImage).finish() + } +} +unsafe impl ::windows::core::Abi for IMAGEHLP_JIT_SYMBOLMAP { + type Abi = Self; +} +impl ::core::cmp::PartialEq for IMAGEHLP_JIT_SYMBOLMAP { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for IMAGEHLP_JIT_SYMBOLMAP {} +impl ::core::default::Default for IMAGEHLP_JIT_SYMBOLMAP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[cfg(target_arch = "x86")] pub struct IMAGEHLP_LINE { pub SizeOfStruct: u32, @@ -54433,7 +54486,7 @@ impl ::core::default::Default for MINIDUMP_CALLBACK_INFORMATION { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_Storage_FileSystem\"`, `\"Win32_System_Kernel\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_FileSystem", feature = "Win32_System_Kernel"))] pub struct MINIDUMP_CALLBACK_INPUT { @@ -54511,7 +54564,7 @@ impl ::core::default::Default for MINIDUMP_CALLBACK_INPUT_0 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Memory\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Memory"))] pub struct MINIDUMP_CALLBACK_OUTPUT { @@ -54543,7 +54596,7 @@ impl ::core::default::Default for MINIDUMP_CALLBACK_OUTPUT { unsafe { ::core::mem::zeroed() } } } -#[repr(C, packed(4))] +#[repr(C)] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Memory\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Memory"))] pub union MINIDUMP_CALLBACK_OUTPUT_0 { @@ -54761,7 +54814,7 @@ impl ::core::default::Default for MINIDUMP_CALLBACK_OUTPUT_0_4 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_DIRECTORY { pub StreamType: u32, @@ -54773,11 +54826,6 @@ impl ::core::clone::Clone for MINIDUMP_DIRECTORY { *self } } -impl ::core::fmt::Debug for MINIDUMP_DIRECTORY { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_DIRECTORY").field("StreamType", &self.StreamType).field("Location", &self.Location).finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_DIRECTORY { type Abi = Self; } @@ -54892,7 +54940,7 @@ impl ::core::default::Default for MINIDUMP_EXCEPTION_INFORMATION64 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_EXCEPTION_STREAM { pub ThreadId: u32, @@ -54949,7 +54997,7 @@ impl ::core::default::Default for MINIDUMP_FUNCTION_TABLE_DESCRIPTOR { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_FUNCTION_TABLE_STREAM { pub SizeOfHeader: u32, @@ -54965,11 +55013,6 @@ impl ::core::clone::Clone for MINIDUMP_FUNCTION_TABLE_STREAM { *self } } -impl ::core::fmt::Debug for MINIDUMP_FUNCTION_TABLE_STREAM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_FUNCTION_TABLE_STREAM").field("SizeOfHeader", &self.SizeOfHeader).field("SizeOfDescriptor", &self.SizeOfDescriptor).field("SizeOfNativeDescriptor", &self.SizeOfNativeDescriptor).field("SizeOfFunctionEntry", &self.SizeOfFunctionEntry).field("NumberOfDescriptors", &self.NumberOfDescriptors).field("SizeOfAlignPad", &self.SizeOfAlignPad).finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_FUNCTION_TABLE_STREAM { type Abi = Self; } @@ -54984,7 +55027,7 @@ impl ::core::default::Default for MINIDUMP_FUNCTION_TABLE_STREAM { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_HANDLE_DATA_STREAM { pub SizeOfHeader: u32, @@ -54998,11 +55041,6 @@ impl ::core::clone::Clone for MINIDUMP_HANDLE_DATA_STREAM { *self } } -impl ::core::fmt::Debug for MINIDUMP_HANDLE_DATA_STREAM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_HANDLE_DATA_STREAM").field("SizeOfHeader", &self.SizeOfHeader).field("SizeOfDescriptor", &self.SizeOfDescriptor).field("NumberOfDescriptors", &self.NumberOfDescriptors).field("Reserved", &self.Reserved).finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_HANDLE_DATA_STREAM { type Abi = Self; } @@ -55081,7 +55119,7 @@ impl ::core::default::Default for MINIDUMP_HANDLE_DESCRIPTOR_2 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_HANDLE_OBJECT_INFORMATION { pub NextInfoRva: u32, @@ -55094,11 +55132,6 @@ impl ::core::clone::Clone for MINIDUMP_HANDLE_OBJECT_INFORMATION { *self } } -impl ::core::fmt::Debug for MINIDUMP_HANDLE_OBJECT_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_HANDLE_OBJECT_INFORMATION").field("NextInfoRva", &self.NextInfoRva).field("InfoType", &self.InfoType).field("SizeOfInfo", &self.SizeOfInfo).finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_HANDLE_OBJECT_INFORMATION { type Abi = Self; } @@ -55113,7 +55146,7 @@ impl ::core::default::Default for MINIDUMP_HANDLE_OBJECT_INFORMATION { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_HANDLE_OPERATION_LIST { pub SizeOfHeader: u32, @@ -55127,11 +55160,6 @@ impl ::core::clone::Clone for MINIDUMP_HANDLE_OPERATION_LIST { *self } } -impl ::core::fmt::Debug for MINIDUMP_HANDLE_OPERATION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_HANDLE_OPERATION_LIST").field("SizeOfHeader", &self.SizeOfHeader).field("SizeOfEntry", &self.SizeOfEntry).field("NumberOfEntries", &self.NumberOfEntries).field("Reserved", &self.Reserved).finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_HANDLE_OPERATION_LIST { type Abi = Self; } @@ -55228,7 +55256,7 @@ impl ::core::default::Default for MINIDUMP_INCLUDE_MODULE_CALLBACK { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_INCLUDE_THREAD_CALLBACK { pub ThreadId: u32, @@ -55239,11 +55267,6 @@ impl ::core::clone::Clone for MINIDUMP_INCLUDE_THREAD_CALLBACK { *self } } -impl ::core::fmt::Debug for MINIDUMP_INCLUDE_THREAD_CALLBACK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_INCLUDE_THREAD_CALLBACK").field("ThreadId", &self.ThreadId).finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_INCLUDE_THREAD_CALLBACK { type Abi = Self; } @@ -55293,7 +55316,7 @@ impl ::core::default::Default for MINIDUMP_IO_CALLBACK { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_LOCATION_DESCRIPTOR { pub DataSize: u32, @@ -55305,11 +55328,6 @@ impl ::core::clone::Clone for MINIDUMP_LOCATION_DESCRIPTOR { *self } } -impl ::core::fmt::Debug for MINIDUMP_LOCATION_DESCRIPTOR { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_LOCATION_DESCRIPTOR").field("DataSize", &self.DataSize).field("Rva", &self.Rva).finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_LOCATION_DESCRIPTOR { type Abi = Self; } @@ -55496,7 +55514,7 @@ impl ::core::default::Default for MINIDUMP_MEMORY_INFO_LIST { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_MEMORY_LIST { pub NumberOfMemoryRanges: u32, @@ -55522,7 +55540,7 @@ impl ::core::default::Default for MINIDUMP_MEMORY_LIST { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_MISC_INFO { pub SizeOfInfo: u32, @@ -55538,11 +55556,6 @@ impl ::core::clone::Clone for MINIDUMP_MISC_INFO { *self } } -impl ::core::fmt::Debug for MINIDUMP_MISC_INFO { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_MISC_INFO").field("SizeOfInfo", &self.SizeOfInfo).field("Flags1", &self.Flags1).field("ProcessId", &self.ProcessId).field("ProcessCreateTime", &self.ProcessCreateTime).field("ProcessUserTime", &self.ProcessUserTime).field("ProcessKernelTime", &self.ProcessKernelTime).finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_MISC_INFO { type Abi = Self; } @@ -55557,7 +55570,7 @@ impl ::core::default::Default for MINIDUMP_MISC_INFO { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_MISC_INFO_2 { pub SizeOfInfo: u32, @@ -55578,23 +55591,6 @@ impl ::core::clone::Clone for MINIDUMP_MISC_INFO_2 { *self } } -impl ::core::fmt::Debug for MINIDUMP_MISC_INFO_2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_MISC_INFO_2") - .field("SizeOfInfo", &self.SizeOfInfo) - .field("Flags1", &self.Flags1) - .field("ProcessId", &self.ProcessId) - .field("ProcessCreateTime", &self.ProcessCreateTime) - .field("ProcessUserTime", &self.ProcessUserTime) - .field("ProcessKernelTime", &self.ProcessKernelTime) - .field("ProcessorMaxMhz", &self.ProcessorMaxMhz) - .field("ProcessorCurrentMhz", &self.ProcessorCurrentMhz) - .field("ProcessorMhzLimit", &self.ProcessorMhzLimit) - .field("ProcessorMaxIdleState", &self.ProcessorMaxIdleState) - .field("ProcessorCurrentIdleState", &self.ProcessorCurrentIdleState) - .finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_MISC_INFO_2 { type Abi = Self; } @@ -55609,7 +55605,7 @@ impl ::core::default::Default for MINIDUMP_MISC_INFO_2 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Time\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Time"))] pub struct MINIDUMP_MISC_INFO_3 { @@ -55639,29 +55635,6 @@ impl ::core::clone::Clone for MINIDUMP_MISC_INFO_3 { } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Time"))] -impl ::core::fmt::Debug for MINIDUMP_MISC_INFO_3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_MISC_INFO_3") - .field("SizeOfInfo", &self.SizeOfInfo) - .field("Flags1", &self.Flags1) - .field("ProcessId", &self.ProcessId) - .field("ProcessCreateTime", &self.ProcessCreateTime) - .field("ProcessUserTime", &self.ProcessUserTime) - .field("ProcessKernelTime", &self.ProcessKernelTime) - .field("ProcessorMaxMhz", &self.ProcessorMaxMhz) - .field("ProcessorCurrentMhz", &self.ProcessorCurrentMhz) - .field("ProcessorMhzLimit", &self.ProcessorMhzLimit) - .field("ProcessorMaxIdleState", &self.ProcessorMaxIdleState) - .field("ProcessorCurrentIdleState", &self.ProcessorCurrentIdleState) - .field("ProcessIntegrityLevel", &self.ProcessIntegrityLevel) - .field("ProcessExecuteFlags", &self.ProcessExecuteFlags) - .field("ProtectedProcess", &self.ProtectedProcess) - .field("TimeZoneId", &self.TimeZoneId) - .field("TimeZone", &self.TimeZone) - .finish() - } -} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Time"))] unsafe impl ::windows::core::Abi for MINIDUMP_MISC_INFO_3 { type Abi = Self; } @@ -55679,7 +55652,7 @@ impl ::core::default::Default for MINIDUMP_MISC_INFO_3 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Time\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Time"))] pub struct MINIDUMP_MISC_INFO_4 { @@ -55711,31 +55684,6 @@ impl ::core::clone::Clone for MINIDUMP_MISC_INFO_4 { } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Time"))] -impl ::core::fmt::Debug for MINIDUMP_MISC_INFO_4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_MISC_INFO_4") - .field("SizeOfInfo", &self.SizeOfInfo) - .field("Flags1", &self.Flags1) - .field("ProcessId", &self.ProcessId) - .field("ProcessCreateTime", &self.ProcessCreateTime) - .field("ProcessUserTime", &self.ProcessUserTime) - .field("ProcessKernelTime", &self.ProcessKernelTime) - .field("ProcessorMaxMhz", &self.ProcessorMaxMhz) - .field("ProcessorCurrentMhz", &self.ProcessorCurrentMhz) - .field("ProcessorMhzLimit", &self.ProcessorMhzLimit) - .field("ProcessorMaxIdleState", &self.ProcessorMaxIdleState) - .field("ProcessorCurrentIdleState", &self.ProcessorCurrentIdleState) - .field("ProcessIntegrityLevel", &self.ProcessIntegrityLevel) - .field("ProcessExecuteFlags", &self.ProcessExecuteFlags) - .field("ProtectedProcess", &self.ProtectedProcess) - .field("TimeZoneId", &self.TimeZoneId) - .field("TimeZone", &self.TimeZone) - .field("BuildString", &self.BuildString) - .field("DbgBldStr", &self.DbgBldStr) - .finish() - } -} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Time"))] unsafe impl ::windows::core::Abi for MINIDUMP_MISC_INFO_4 { type Abi = Self; } @@ -55753,7 +55701,7 @@ impl ::core::default::Default for MINIDUMP_MISC_INFO_4 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Time\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Time"))] pub struct MINIDUMP_MISC_INFO_5 { @@ -55886,7 +55834,7 @@ impl ::core::default::Default for MINIDUMP_MODULE_CALLBACK { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Storage_FileSystem\"`*"] #[cfg(feature = "Win32_Storage_FileSystem")] pub struct MINIDUMP_MODULE_LIST { @@ -56026,7 +55974,7 @@ impl ::core::default::Default for MINIDUMP_READ_MEMORY_FAILURE_CALLBACK { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_STRING { pub Length: u32, @@ -56038,11 +55986,6 @@ impl ::core::clone::Clone for MINIDUMP_STRING { *self } } -impl ::core::fmt::Debug for MINIDUMP_STRING { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_STRING").field("Length", &self.Length).field("Buffer", &self.Buffer).finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_STRING { type Abi = Self; } @@ -56152,7 +56095,7 @@ impl ::core::default::Default for MINIDUMP_SYSTEM_FILECACHE_INFORMATION { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_SYSTEM_INFO { pub ProcessorArchitecture: PROCESSOR_ARCHITECTURE, @@ -56301,7 +56244,7 @@ impl ::core::default::Default for MINIDUMP_SYSTEM_INFO_1_0 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_SYSTEM_MEMORY_INFO_1 { pub Revision: u16, @@ -56464,7 +56407,7 @@ impl ::core::default::Default for MINIDUMP_THREAD { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] #[cfg(target_arch = "aarch64")] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] @@ -56509,53 +56452,9 @@ impl ::core::default::Default for MINIDUMP_THREAD_CALLBACK { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -pub struct MINIDUMP_THREAD_CALLBACK { - pub ThreadId: u32, - pub ThreadHandle: super::super::super::Foundation::HANDLE, - pub Context: CONTEXT, - pub SizeOfContext: u32, - pub StackBase: u64, - pub StackEnd: u64, -} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::marker::Copy for MINIDUMP_THREAD_CALLBACK {} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::clone::Clone for MINIDUMP_THREAD_CALLBACK { - fn clone(&self) -> Self { - *self - } -} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -unsafe impl ::windows::core::Abi for MINIDUMP_THREAD_CALLBACK { - type Abi = Self; -} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::cmp::PartialEq for MINIDUMP_THREAD_CALLBACK { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::cmp::Eq for MINIDUMP_THREAD_CALLBACK {} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::default::Default for MINIDUMP_THREAD_CALLBACK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] pub struct MINIDUMP_THREAD_CALLBACK { pub ThreadId: u32, @@ -56565,32 +56464,32 @@ pub struct MINIDUMP_THREAD_CALLBACK { pub StackBase: u64, pub StackEnd: u64, } -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::marker::Copy for MINIDUMP_THREAD_CALLBACK {} -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::clone::Clone for MINIDUMP_THREAD_CALLBACK { fn clone(&self) -> Self { *self } } -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] unsafe impl ::windows::core::Abi for MINIDUMP_THREAD_CALLBACK { type Abi = Self; } -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::cmp::PartialEq for MINIDUMP_THREAD_CALLBACK { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::cmp::Eq for MINIDUMP_THREAD_CALLBACK {} -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::default::Default for MINIDUMP_THREAD_CALLBACK { fn default() -> Self { @@ -56629,7 +56528,7 @@ impl ::core::default::Default for MINIDUMP_THREAD_EX { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] #[cfg(target_arch = "aarch64")] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] @@ -56676,55 +56575,9 @@ impl ::core::default::Default for MINIDUMP_THREAD_EX_CALLBACK { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -pub struct MINIDUMP_THREAD_EX_CALLBACK { - pub ThreadId: u32, - pub ThreadHandle: super::super::super::Foundation::HANDLE, - pub Context: CONTEXT, - pub SizeOfContext: u32, - pub StackBase: u64, - pub StackEnd: u64, - pub BackingStoreBase: u64, - pub BackingStoreEnd: u64, -} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::marker::Copy for MINIDUMP_THREAD_EX_CALLBACK {} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::clone::Clone for MINIDUMP_THREAD_EX_CALLBACK { - fn clone(&self) -> Self { - *self - } -} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -unsafe impl ::windows::core::Abi for MINIDUMP_THREAD_EX_CALLBACK { - type Abi = Self; -} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::cmp::PartialEq for MINIDUMP_THREAD_EX_CALLBACK { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::cmp::Eq for MINIDUMP_THREAD_EX_CALLBACK {} -#[cfg(target_arch = "x86_64")] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] -impl ::core::default::Default for MINIDUMP_THREAD_EX_CALLBACK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] pub struct MINIDUMP_THREAD_EX_CALLBACK { pub ThreadId: u32, @@ -56736,39 +56589,39 @@ pub struct MINIDUMP_THREAD_EX_CALLBACK { pub BackingStoreBase: u64, pub BackingStoreEnd: u64, } -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::marker::Copy for MINIDUMP_THREAD_EX_CALLBACK {} -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::clone::Clone for MINIDUMP_THREAD_EX_CALLBACK { fn clone(&self) -> Self { *self } } -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] unsafe impl ::windows::core::Abi for MINIDUMP_THREAD_EX_CALLBACK { type Abi = Self; } -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::cmp::PartialEq for MINIDUMP_THREAD_EX_CALLBACK { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::cmp::Eq for MINIDUMP_THREAD_EX_CALLBACK {} -#[cfg(target_arch = "x86")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] impl ::core::default::Default for MINIDUMP_THREAD_EX_CALLBACK { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_THREAD_EX_LIST { pub NumberOfThreads: u32, @@ -56828,7 +56681,7 @@ impl ::core::default::Default for MINIDUMP_THREAD_INFO { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_THREAD_INFO_LIST { pub SizeOfHeader: u32, @@ -56841,11 +56694,6 @@ impl ::core::clone::Clone for MINIDUMP_THREAD_INFO_LIST { *self } } -impl ::core::fmt::Debug for MINIDUMP_THREAD_INFO_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_THREAD_INFO_LIST").field("SizeOfHeader", &self.SizeOfHeader).field("SizeOfEntry", &self.SizeOfEntry).field("NumberOfEntries", &self.NumberOfEntries).finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_THREAD_INFO_LIST { type Abi = Self; } @@ -56860,7 +56708,7 @@ impl ::core::default::Default for MINIDUMP_THREAD_INFO_LIST { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_THREAD_LIST { pub NumberOfThreads: u32, @@ -56912,7 +56760,7 @@ impl ::core::default::Default for MINIDUMP_THREAD_NAME { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_THREAD_NAME_LIST { pub NumberOfThreadNames: u32, @@ -56965,7 +56813,7 @@ impl ::core::default::Default for MINIDUMP_TOKEN_INFO_HEADER { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_TOKEN_INFO_LIST { pub TokenListSize: u32, @@ -56979,11 +56827,6 @@ impl ::core::clone::Clone for MINIDUMP_TOKEN_INFO_LIST { *self } } -impl ::core::fmt::Debug for MINIDUMP_TOKEN_INFO_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_TOKEN_INFO_LIST").field("TokenListSize", &self.TokenListSize).field("TokenListEntries", &self.TokenListEntries).field("ListHeaderSize", &self.ListHeaderSize).field("ElementHeaderSize", &self.ElementHeaderSize).finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_TOKEN_INFO_LIST { type Abi = Self; } @@ -57027,7 +56870,7 @@ impl ::core::default::Default for MINIDUMP_UNLOADED_MODULE { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_UNLOADED_MODULE_LIST { pub SizeOfHeader: u32, @@ -57040,11 +56883,6 @@ impl ::core::clone::Clone for MINIDUMP_UNLOADED_MODULE_LIST { *self } } -impl ::core::fmt::Debug for MINIDUMP_UNLOADED_MODULE_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_UNLOADED_MODULE_LIST").field("SizeOfHeader", &self.SizeOfHeader).field("SizeOfEntry", &self.SizeOfEntry).field("NumberOfEntries", &self.NumberOfEntries).finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_UNLOADED_MODULE_LIST { type Abi = Self; } @@ -57059,7 +56897,7 @@ impl ::core::default::Default for MINIDUMP_UNLOADED_MODULE_LIST { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct MINIDUMP_USER_RECORD { pub Type: u32, @@ -57071,11 +56909,6 @@ impl ::core::clone::Clone for MINIDUMP_USER_RECORD { *self } } -impl ::core::fmt::Debug for MINIDUMP_USER_RECORD { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MINIDUMP_USER_RECORD").field("Type", &self.Type).field("Memory", &self.Memory).finish() - } -} unsafe impl ::windows::core::Abi for MINIDUMP_USER_RECORD { type Abi = Self; } @@ -61994,73 +61827,6 @@ impl ::core::default::Default for XSTATE_FEATURE { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub struct _GETSETBUSDATA { - pub BusDataType: u32, - pub BusNumber: u32, - pub SlotNumber: u32, - pub Buffer: *mut ::core::ffi::c_void, - pub Offset: u32, - pub Length: u32, -} -impl ::core::marker::Copy for _GETSETBUSDATA {} -impl ::core::clone::Clone for _GETSETBUSDATA { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _GETSETBUSDATA { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_GETSETBUSDATA").field("BusDataType", &self.BusDataType).field("BusNumber", &self.BusNumber).field("SlotNumber", &self.SlotNumber).field("Buffer", &self.Buffer).field("Offset", &self.Offset).field("Length", &self.Length).finish() - } -} -unsafe impl ::windows::core::Abi for _GETSETBUSDATA { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _GETSETBUSDATA { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_GETSETBUSDATA>()) == 0 } - } -} -impl ::core::cmp::Eq for _GETSETBUSDATA {} -impl ::core::default::Default for _GETSETBUSDATA { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] -pub struct _IMAGEHLP_JIT_SYMBOL_MAP { - pub SizeOfStruct: u32, - pub Address: u64, - pub BaseOfImage: u64, -} -impl ::core::marker::Copy for _IMAGEHLP_JIT_SYMBOL_MAP {} -impl ::core::clone::Clone for _IMAGEHLP_JIT_SYMBOL_MAP { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _IMAGEHLP_JIT_SYMBOL_MAP { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_IMAGEHLP_JIT_SYMBOL_MAP").field("SizeOfStruct", &self.SizeOfStruct).field("Address", &self.Address).field("BaseOfImage", &self.BaseOfImage).finish() - } -} -unsafe impl ::windows::core::Abi for _IMAGEHLP_JIT_SYMBOL_MAP { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _IMAGEHLP_JIT_SYMBOL_MAP { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_IMAGEHLP_JIT_SYMBOL_MAP>()) == 0 } - } -} -impl ::core::cmp::Eq for _IMAGEHLP_JIT_SYMBOL_MAP {} -impl ::core::default::Default for _IMAGEHLP_JIT_SYMBOL_MAP { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type DIGEST_FUNCTION = ::core::option::Option super::super::super::Foundation::BOOL>; 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 d0ddbf779e..b50f3f0d34 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 @@ -11,16 +11,6 @@ pub unsafe fn TraceMessage(loggerhandle: u64, messageflags: TRACE_MESSAGE_FLAGS, #[doc = "*Required features: `\"Win32_System_Diagnostics_Etw\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn TraceMessageVa(loggerhandle: u64, messageflags: TRACE_MESSAGE_FLAGS, messageguid: &::windows::core::GUID, messagenumber: u16, messagearglist: &i8) -> super::super::super::Foundation::WIN32_ERROR { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn TraceMessageVa(loggerhandle: u64, messageflags: TRACE_MESSAGE_FLAGS, messageguid: *const ::windows::core::GUID, messagenumber: u16, messagearglist: *const i8) -> super::super::super::Foundation::WIN32_ERROR; - } - TraceMessageVa(loggerhandle, messageflags, ::core::mem::transmute(messageguid), messagenumber, ::core::mem::transmute(messagearglist)) -} -#[doc = "*Required features: `\"Win32_System_Diagnostics_Etw\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] pub unsafe fn CloseTrace<'a, P0>(tracehandle: P0) -> super::super::super::Foundation::WIN32_ERROR where P0: ::std::convert::Into, @@ -819,6 +809,16 @@ pub unsafe fn TraceEventInstance(tracehandle: u64, eventtrace: &EVENT_INSTANCE_H #[doc = "*Required features: `\"Win32_System_Diagnostics_Etw\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn TraceMessageVa(loggerhandle: u64, messageflags: TRACE_MESSAGE_FLAGS, messageguid: &::windows::core::GUID, messagenumber: u16, messagearglist: &i8) -> super::super::super::Foundation::WIN32_ERROR { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn TraceMessageVa(loggerhandle: u64, messageflags: TRACE_MESSAGE_FLAGS, messageguid: *const ::windows::core::GUID, messagenumber: u16, messagearglist: *const i8) -> super::super::super::Foundation::WIN32_ERROR; + } + TraceMessageVa(loggerhandle, messageflags, ::core::mem::transmute(messageguid), messagenumber, ::core::mem::transmute(messagearglist)) +} +#[doc = "*Required features: `\"Win32_System_Diagnostics_Etw\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn TraceQueryInformation<'a, P0>(sessionhandle: P0, informationclass: TRACE_QUERY_INFO_CLASS, traceinformation: &mut [u8], returnlength: ::core::option::Option<&mut u32>) -> super::super::super::Foundation::WIN32_ERROR where P0: ::std::convert::Into, diff --git a/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/impl.rs b/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/impl.rs index 9e0763f4da..07ef3ca629 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/impl.rs @@ -55,12 +55,12 @@ impl IDtcLuRecoveryFactory_Vtbl { } } pub trait IDtcLuRecoveryInitiatedByDtc_Impl: Sized { - fn GetWork(&self, pwork: *mut _DtcLu_LocalRecovery_Work, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn GetWork(&self, pwork: *mut DTCINITIATEDRECOVERYWORK, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; } impl ::windows::core::RuntimeName for IDtcLuRecoveryInitiatedByDtc {} impl IDtcLuRecoveryInitiatedByDtc_Vtbl { pub const fn new, Impl: IDtcLuRecoveryInitiatedByDtc_Impl, const OFFSET: isize>() -> IDtcLuRecoveryInitiatedByDtc_Vtbl { - unsafe extern "system" fn GetWork, Impl: IDtcLuRecoveryInitiatedByDtc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwork: *mut _DtcLu_LocalRecovery_Work, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetWork, Impl: IDtcLuRecoveryInitiatedByDtc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwork: *mut DTCINITIATEDRECOVERYWORK, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetWork(::core::mem::transmute_copy(&pwork), ::core::mem::transmute_copy(&ppv)).into() @@ -91,15 +91,15 @@ impl IDtcLuRecoveryInitiatedByDtcStatusWork_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IDtcLuRecoveryInitiatedByDtcTransWork_Impl: Sized { fn GetLogNameSizes(&self, pcbourlogname: *mut u32, pcbremotelogname: *mut u32) -> ::windows::core::Result<()>; - fn GetOurXln(&self, pxln: *mut _DtcLu_Xln, pourlogname: *mut u8, premotelogname: *mut u8, pdwprotocol: *mut u32) -> ::windows::core::Result<()>; - fn HandleConfirmationFromOurXln(&self, confirmation: _DtcLu_Xln_Confirmation) -> ::windows::core::Result<()>; - fn HandleTheirXlnResponse(&self, xln: _DtcLu_Xln, premotelogname: *mut u8, cbremotelogname: u32, dwprotocol: u32, pconfirmation: *mut _DtcLu_Xln_Confirmation) -> ::windows::core::Result<()>; - fn HandleErrorFromOurXln(&self, error: _DtcLu_Xln_Error) -> ::windows::core::Result<()>; + fn GetOurXln(&self, pxln: *mut DTCLUXLN, pourlogname: *mut u8, premotelogname: *mut u8, pdwprotocol: *mut u32) -> ::windows::core::Result<()>; + fn HandleConfirmationFromOurXln(&self, confirmation: DTCLUXLNCONFIRMATION) -> ::windows::core::Result<()>; + fn HandleTheirXlnResponse(&self, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, dwprotocol: u32, pconfirmation: *mut DTCLUXLNCONFIRMATION) -> ::windows::core::Result<()>; + fn HandleErrorFromOurXln(&self, error: DTCLUXLNERROR) -> ::windows::core::Result<()>; fn CheckForCompareStates(&self, fcomparestates: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn GetOurTransIdSize(&self, pcbourtransid: *mut u32) -> ::windows::core::Result<()>; - fn GetOurCompareStates(&self, pourtransid: *mut u8, pcomparestate: *mut _DtcLu_CompareState) -> ::windows::core::Result<()>; - fn HandleTheirCompareStatesResponse(&self, comparestate: _DtcLu_CompareState, pconfirmation: *mut _DtcLu_CompareStates_Confirmation) -> ::windows::core::Result<()>; - fn HandleErrorFromOurCompareStates(&self, error: _DtcLu_CompareStates_Error) -> ::windows::core::Result<()>; + fn GetOurCompareStates(&self, pourtransid: *mut u8, pcomparestate: *mut DTCLUCOMPARESTATE) -> ::windows::core::Result<()>; + fn HandleTheirCompareStatesResponse(&self, comparestate: DTCLUCOMPARESTATE, pconfirmation: *mut DTCLUCOMPARESTATESCONFIRMATION) -> ::windows::core::Result<()>; + fn HandleErrorFromOurCompareStates(&self, error: DTCLUCOMPARESTATESERROR) -> ::windows::core::Result<()>; fn ConversationLost(&self) -> ::windows::core::Result<()>; fn GetRecoverySeqNum(&self, plrecoveryseqnum: *mut i32) -> ::windows::core::Result<()>; fn ObsoleteRecoverySeqNum(&self, lnewrecoveryseqnum: i32) -> ::windows::core::Result<()>; @@ -114,22 +114,22 @@ impl IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl { let this = (*this).get_impl(); this.GetLogNameSizes(::core::mem::transmute_copy(&pcbourlogname), ::core::mem::transmute_copy(&pcbremotelogname)).into() } - unsafe extern "system" fn GetOurXln, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxln: *mut _DtcLu_Xln, pourlogname: *mut u8, premotelogname: *mut u8, pdwprotocol: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetOurXln, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxln: *mut DTCLUXLN, pourlogname: *mut u8, premotelogname: *mut u8, pdwprotocol: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetOurXln(::core::mem::transmute_copy(&pxln), ::core::mem::transmute_copy(&pourlogname), ::core::mem::transmute_copy(&premotelogname), ::core::mem::transmute_copy(&pdwprotocol)).into() } - unsafe extern "system" fn HandleConfirmationFromOurXln, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, confirmation: _DtcLu_Xln_Confirmation) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleConfirmationFromOurXln, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, confirmation: DTCLUXLNCONFIRMATION) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleConfirmationFromOurXln(::core::mem::transmute_copy(&confirmation)).into() } - unsafe extern "system" fn HandleTheirXlnResponse, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xln: _DtcLu_Xln, premotelogname: *mut u8, cbremotelogname: u32, dwprotocol: u32, pconfirmation: *mut _DtcLu_Xln_Confirmation) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleTheirXlnResponse, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, dwprotocol: u32, pconfirmation: *mut DTCLUXLNCONFIRMATION) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleTheirXlnResponse(::core::mem::transmute_copy(&xln), ::core::mem::transmute_copy(&premotelogname), ::core::mem::transmute_copy(&cbremotelogname), ::core::mem::transmute_copy(&dwprotocol), ::core::mem::transmute_copy(&pconfirmation)).into() } - unsafe extern "system" fn HandleErrorFromOurXln, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, error: _DtcLu_Xln_Error) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleErrorFromOurXln, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, error: DTCLUXLNERROR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleErrorFromOurXln(::core::mem::transmute_copy(&error)).into() @@ -144,17 +144,17 @@ impl IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl { let this = (*this).get_impl(); this.GetOurTransIdSize(::core::mem::transmute_copy(&pcbourtransid)).into() } - unsafe extern "system" fn GetOurCompareStates, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pourtransid: *mut u8, pcomparestate: *mut _DtcLu_CompareState) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetOurCompareStates, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pourtransid: *mut u8, pcomparestate: *mut DTCLUCOMPARESTATE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetOurCompareStates(::core::mem::transmute_copy(&pourtransid), ::core::mem::transmute_copy(&pcomparestate)).into() } - unsafe extern "system" fn HandleTheirCompareStatesResponse, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, comparestate: _DtcLu_CompareState, pconfirmation: *mut _DtcLu_CompareStates_Confirmation) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleTheirCompareStatesResponse, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, comparestate: DTCLUCOMPARESTATE, pconfirmation: *mut DTCLUCOMPARESTATESCONFIRMATION) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleTheirCompareStatesResponse(::core::mem::transmute_copy(&comparestate), ::core::mem::transmute_copy(&pconfirmation)).into() } - unsafe extern "system" fn HandleErrorFromOurCompareStates, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, error: _DtcLu_CompareStates_Error) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleErrorFromOurCompareStates, Impl: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, error: DTCLUCOMPARESTATESERROR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleErrorFromOurCompareStates(::core::mem::transmute_copy(&error)).into() @@ -222,19 +222,19 @@ impl IDtcLuRecoveryInitiatedByLu_Vtbl { } } pub trait IDtcLuRecoveryInitiatedByLuWork_Impl: Sized { - fn HandleTheirXln(&self, lrecoveryseqnum: i32, xln: _DtcLu_Xln, premotelogname: *mut u8, cbremotelogname: u32, pourlogname: *mut u8, cbourlogname: u32, dwprotocol: u32, presponse: *mut _DtcLu_Xln_Response) -> ::windows::core::Result<()>; + fn HandleTheirXln(&self, lrecoveryseqnum: i32, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, pourlogname: *mut u8, cbourlogname: u32, dwprotocol: u32, presponse: *mut DTCLUXLNRESPONSE) -> ::windows::core::Result<()>; fn GetOurLogNameSize(&self, pcbourlogname: *mut u32) -> ::windows::core::Result<()>; - fn GetOurXln(&self, pxln: *mut _DtcLu_Xln, pourlogname: *mut u8, pdwprotocol: *mut u32) -> ::windows::core::Result<()>; - fn HandleConfirmationOfOurXln(&self, confirmation: _DtcLu_Xln_Confirmation) -> ::windows::core::Result<()>; - fn HandleTheirCompareStates(&self, premotetransid: *mut u8, cbremotetransid: u32, comparestate: _DtcLu_CompareState, presponse: *mut _DtcLu_CompareStates_Response, pcomparestate: *mut _DtcLu_CompareState) -> ::windows::core::Result<()>; - fn HandleConfirmationOfOurCompareStates(&self, confirmation: _DtcLu_CompareStates_Confirmation) -> ::windows::core::Result<()>; - fn HandleErrorFromOurCompareStates(&self, error: _DtcLu_CompareStates_Error) -> ::windows::core::Result<()>; + fn GetOurXln(&self, pxln: *mut DTCLUXLN, pourlogname: *mut u8, pdwprotocol: *mut u32) -> ::windows::core::Result<()>; + fn HandleConfirmationOfOurXln(&self, confirmation: DTCLUXLNCONFIRMATION) -> ::windows::core::Result<()>; + fn HandleTheirCompareStates(&self, premotetransid: *mut u8, cbremotetransid: u32, comparestate: DTCLUCOMPARESTATE, presponse: *mut DTCLUCOMPARESTATESRESPONSE, pcomparestate: *mut DTCLUCOMPARESTATE) -> ::windows::core::Result<()>; + fn HandleConfirmationOfOurCompareStates(&self, confirmation: DTCLUCOMPARESTATESCONFIRMATION) -> ::windows::core::Result<()>; + fn HandleErrorFromOurCompareStates(&self, error: DTCLUCOMPARESTATESERROR) -> ::windows::core::Result<()>; fn ConversationLost(&self) -> ::windows::core::Result<()>; } impl ::windows::core::RuntimeName for IDtcLuRecoveryInitiatedByLuWork {} impl IDtcLuRecoveryInitiatedByLuWork_Vtbl { pub const fn new, Impl: IDtcLuRecoveryInitiatedByLuWork_Impl, const OFFSET: isize>() -> IDtcLuRecoveryInitiatedByLuWork_Vtbl { - unsafe extern "system" fn HandleTheirXln, Impl: IDtcLuRecoveryInitiatedByLuWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lrecoveryseqnum: i32, xln: _DtcLu_Xln, premotelogname: *mut u8, cbremotelogname: u32, pourlogname: *mut u8, cbourlogname: u32, dwprotocol: u32, presponse: *mut _DtcLu_Xln_Response) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleTheirXln, Impl: IDtcLuRecoveryInitiatedByLuWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lrecoveryseqnum: i32, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, pourlogname: *mut u8, cbourlogname: u32, dwprotocol: u32, presponse: *mut DTCLUXLNRESPONSE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleTheirXln(::core::mem::transmute_copy(&lrecoveryseqnum), ::core::mem::transmute_copy(&xln), ::core::mem::transmute_copy(&premotelogname), ::core::mem::transmute_copy(&cbremotelogname), ::core::mem::transmute_copy(&pourlogname), ::core::mem::transmute_copy(&cbourlogname), ::core::mem::transmute_copy(&dwprotocol), ::core::mem::transmute_copy(&presponse)).into() @@ -244,27 +244,27 @@ impl IDtcLuRecoveryInitiatedByLuWork_Vtbl { let this = (*this).get_impl(); this.GetOurLogNameSize(::core::mem::transmute_copy(&pcbourlogname)).into() } - unsafe extern "system" fn GetOurXln, Impl: IDtcLuRecoveryInitiatedByLuWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxln: *mut _DtcLu_Xln, pourlogname: *mut u8, pdwprotocol: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetOurXln, Impl: IDtcLuRecoveryInitiatedByLuWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxln: *mut DTCLUXLN, pourlogname: *mut u8, pdwprotocol: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetOurXln(::core::mem::transmute_copy(&pxln), ::core::mem::transmute_copy(&pourlogname), ::core::mem::transmute_copy(&pdwprotocol)).into() } - unsafe extern "system" fn HandleConfirmationOfOurXln, Impl: IDtcLuRecoveryInitiatedByLuWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, confirmation: _DtcLu_Xln_Confirmation) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleConfirmationOfOurXln, Impl: IDtcLuRecoveryInitiatedByLuWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, confirmation: DTCLUXLNCONFIRMATION) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleConfirmationOfOurXln(::core::mem::transmute_copy(&confirmation)).into() } - unsafe extern "system" fn HandleTheirCompareStates, Impl: IDtcLuRecoveryInitiatedByLuWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, premotetransid: *mut u8, cbremotetransid: u32, comparestate: _DtcLu_CompareState, presponse: *mut _DtcLu_CompareStates_Response, pcomparestate: *mut _DtcLu_CompareState) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleTheirCompareStates, Impl: IDtcLuRecoveryInitiatedByLuWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, premotetransid: *mut u8, cbremotetransid: u32, comparestate: DTCLUCOMPARESTATE, presponse: *mut DTCLUCOMPARESTATESRESPONSE, pcomparestate: *mut DTCLUCOMPARESTATE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleTheirCompareStates(::core::mem::transmute_copy(&premotetransid), ::core::mem::transmute_copy(&cbremotetransid), ::core::mem::transmute_copy(&comparestate), ::core::mem::transmute_copy(&presponse), ::core::mem::transmute_copy(&pcomparestate)).into() } - unsafe extern "system" fn HandleConfirmationOfOurCompareStates, Impl: IDtcLuRecoveryInitiatedByLuWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, confirmation: _DtcLu_CompareStates_Confirmation) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleConfirmationOfOurCompareStates, Impl: IDtcLuRecoveryInitiatedByLuWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, confirmation: DTCLUCOMPARESTATESCONFIRMATION) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleConfirmationOfOurCompareStates(::core::mem::transmute_copy(&confirmation)).into() } - unsafe extern "system" fn HandleErrorFromOurCompareStates, Impl: IDtcLuRecoveryInitiatedByLuWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, error: _DtcLu_CompareStates_Error) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleErrorFromOurCompareStates, Impl: IDtcLuRecoveryInitiatedByLuWork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, error: DTCLUCOMPARESTATESERROR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleErrorFromOurCompareStates(::core::mem::transmute_copy(&error)).into() @@ -851,7 +851,7 @@ impl IDtcNetworkAccessConfig3_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IDtcToXaHelper_Impl: Sized { fn Close(&self, i_fdorecovery: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn TranslateTridToXid(&self, pitransaction: &::core::option::Option, pguidbqual: *const ::windows::core::GUID) -> ::windows::core::Result; + fn TranslateTridToXid(&self, pitransaction: &::core::option::Option, pguidbqual: *const ::windows::core::GUID) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDtcToXaHelper {} @@ -863,7 +863,7 @@ impl IDtcToXaHelper_Vtbl { let this = (*this).get_impl(); this.Close(::core::mem::transmute_copy(&i_fdorecovery)).into() } - unsafe extern "system" fn TranslateTridToXid, Impl: IDtcToXaHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pitransaction: *mut ::core::ffi::c_void, pguidbqual: *const ::windows::core::GUID, pxid: *mut xid_t) -> ::windows::core::HRESULT { + unsafe extern "system" fn TranslateTridToXid, Impl: IDtcToXaHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pitransaction: *mut ::core::ffi::c_void, pguidbqual: *const ::windows::core::GUID, pxid: *mut XID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TranslateTridToXid(::core::mem::transmute(&pitransaction), ::core::mem::transmute_copy(&pguidbqual)) { @@ -904,7 +904,7 @@ impl IDtcToXaHelperFactory_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IDtcToXaHelperSinglePipe_Impl: Sized { fn XARMCreate(&self, pszdsn: &::windows::core::PCSTR, pszclientdll: &::windows::core::PCSTR, pdwrmcookie: *mut u32) -> ::windows::core::Result<()>; - fn ConvertTridToXID(&self, pdwitrans: *mut u32, dwrmcookie: u32, pxid: *mut xid_t) -> ::windows::core::Result<()>; + fn ConvertTridToXID(&self, pdwitrans: *mut u32, dwrmcookie: u32, pxid: *mut XID) -> ::windows::core::Result<()>; fn EnlistWithRM(&self, dwrmcookie: u32, i_pitransaction: &::core::option::Option, i_pitransres: &::core::option::Option) -> ::windows::core::Result; fn ReleaseRMCookie(&self, i_dwrmcookie: u32, i_fnormal: super::super::Foundation::BOOL); } @@ -918,7 +918,7 @@ impl IDtcToXaHelperSinglePipe_Vtbl { let this = (*this).get_impl(); this.XARMCreate(::core::mem::transmute(&pszdsn), ::core::mem::transmute(&pszclientdll), ::core::mem::transmute_copy(&pdwrmcookie)).into() } - unsafe extern "system" fn ConvertTridToXID, Impl: IDtcToXaHelperSinglePipe_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdwitrans: *mut u32, dwrmcookie: u32, pxid: *mut xid_t) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConvertTridToXID, Impl: IDtcToXaHelperSinglePipe_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdwitrans: *mut u32, dwrmcookie: u32, pxid: *mut XID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ConvertTridToXID(::core::mem::transmute_copy(&pdwitrans), ::core::mem::transmute_copy(&dwrmcookie), ::core::mem::transmute_copy(&pxid)).into() @@ -954,7 +954,7 @@ impl IDtcToXaHelperSinglePipe_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IDtcToXaMapper_Impl: Sized { fn RequestNewResourceManager(&self, pszdsn: &::windows::core::PCSTR, pszclientdllname: &::windows::core::PCSTR, pdwrmcookie: *mut u32) -> ::windows::core::Result<()>; - fn TranslateTridToXid(&self, pdwitransaction: *const u32, dwrmcookie: u32, pxid: *mut xid_t) -> ::windows::core::Result<()>; + fn TranslateTridToXid(&self, pdwitransaction: *const u32, dwrmcookie: u32, pxid: *mut XID) -> ::windows::core::Result<()>; fn EnlistResourceManager(&self, dwrmcookie: u32, pdwitransaction: *const u32) -> ::windows::core::Result<()>; fn ReleaseResourceManager(&self, dwrmcookie: u32) -> ::windows::core::Result<()>; } @@ -968,7 +968,7 @@ impl IDtcToXaMapper_Vtbl { let this = (*this).get_impl(); this.RequestNewResourceManager(::core::mem::transmute(&pszdsn), ::core::mem::transmute(&pszclientdllname), ::core::mem::transmute_copy(&pdwrmcookie)).into() } - unsafe extern "system" fn TranslateTridToXid, Impl: IDtcToXaMapper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdwitransaction: *const u32, dwrmcookie: u32, pxid: *mut xid_t) -> ::windows::core::HRESULT { + unsafe extern "system" fn TranslateTridToXid, Impl: IDtcToXaMapper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdwitransaction: *const u32, dwrmcookie: u32, pxid: *mut XID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.TranslateTridToXid(::core::mem::transmute_copy(&pdwitransaction), ::core::mem::transmute_copy(&dwrmcookie), ::core::mem::transmute_copy(&pxid)).into() @@ -1204,20 +1204,20 @@ impl IResourceManager_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IResourceManager2_Impl: Sized + IResourceManager_Impl { - fn Enlist2(&self, ptransaction: &::core::option::Option, presasync: &::core::option::Option, puow: *mut BOID, pisolevel: *mut i32, pxid: *mut xid_t, ppenlist: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn Reenlist2(&self, pxid: *const xid_t, dwtimeout: u32) -> ::windows::core::Result; + fn Enlist2(&self, ptransaction: &::core::option::Option, presasync: &::core::option::Option, puow: *mut BOID, pisolevel: *mut i32, pxid: *mut XID, ppenlist: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn Reenlist2(&self, pxid: *const XID, dwtimeout: u32) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IResourceManager2 {} #[cfg(feature = "Win32_Foundation")] impl IResourceManager2_Vtbl { pub const fn new, Impl: IResourceManager2_Impl, const OFFSET: isize>() -> IResourceManager2_Vtbl { - unsafe extern "system" fn Enlist2, Impl: IResourceManager2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptransaction: *mut ::core::ffi::c_void, presasync: *mut ::core::ffi::c_void, puow: *mut BOID, pisolevel: *mut i32, pxid: *mut xid_t, ppenlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Enlist2, Impl: IResourceManager2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptransaction: *mut ::core::ffi::c_void, presasync: *mut ::core::ffi::c_void, puow: *mut BOID, pisolevel: *mut i32, pxid: *mut XID, ppenlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Enlist2(::core::mem::transmute(&ptransaction), ::core::mem::transmute(&presasync), ::core::mem::transmute_copy(&puow), ::core::mem::transmute_copy(&pisolevel), ::core::mem::transmute_copy(&pxid), ::core::mem::transmute_copy(&ppenlist)).into() } - unsafe extern "system" fn Reenlist2, Impl: IResourceManager2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxid: *const xid_t, dwtimeout: u32, pxactstat: *mut XACTSTAT) -> ::windows::core::HRESULT { + unsafe extern "system" fn Reenlist2, Impl: IResourceManager2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxid: *const XID, dwtimeout: u32, pxactstat: *mut XACTSTAT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Reenlist2(::core::mem::transmute_copy(&pxid), ::core::mem::transmute_copy(&dwtimeout)) { @@ -2347,14 +2347,14 @@ impl IXATransLookup_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IXATransLookup2_Impl: Sized { - fn Lookup(&self, pxid: *const xid_t) -> ::windows::core::Result; + fn Lookup(&self, pxid: *const XID) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IXATransLookup2 {} #[cfg(feature = "Win32_Foundation")] impl IXATransLookup2_Vtbl { pub const fn new, Impl: IXATransLookup2_Impl, const OFFSET: isize>() -> IXATransLookup2_Vtbl { - unsafe extern "system" fn Lookup, Impl: IXATransLookup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxid: *const xid_t, pptransaction: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Lookup, Impl: IXATransLookup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxid: *const XID, pptransaction: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Lookup(::core::mem::transmute_copy(&pxid)) { diff --git a/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs b/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs index 2381ae5432..7e367b6995 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs @@ -201,7 +201,7 @@ pub struct IDtcLuRecoveryFactory_Vtbl { #[repr(transparent)] pub struct IDtcLuRecoveryInitiatedByDtc(::windows::core::IUnknown); impl IDtcLuRecoveryInitiatedByDtc { - pub unsafe fn GetWork(&self, pwork: &mut _DtcLu_LocalRecovery_Work, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { + pub unsafe fn GetWork(&self, pwork: &mut DTCINITIATEDRECOVERYWORK, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetWork)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwork), ::core::mem::transmute(ppv)).ok() } } @@ -244,7 +244,7 @@ unsafe impl ::windows::core::Interface for IDtcLuRecoveryInitiatedByDtc { #[doc(hidden)] pub struct IDtcLuRecoveryInitiatedByDtc_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub GetWork: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwork: *mut _DtcLu_LocalRecovery_Work, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetWork: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwork: *mut DTCINITIATEDRECOVERYWORK, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] #[repr(transparent)] @@ -302,16 +302,16 @@ impl IDtcLuRecoveryInitiatedByDtcTransWork { pub unsafe fn GetLogNameSizes(&self, pcbourlogname: &mut u32, pcbremotelogname: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLogNameSizes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcbourlogname), ::core::mem::transmute(pcbremotelogname)).ok() } - pub unsafe fn GetOurXln(&self, pxln: &mut _DtcLu_Xln, pourlogname: &mut u8, premotelogname: &mut u8, pdwprotocol: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn GetOurXln(&self, pxln: &mut DTCLUXLN, pourlogname: &mut u8, premotelogname: &mut u8, pdwprotocol: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetOurXln)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pxln), ::core::mem::transmute(pourlogname), ::core::mem::transmute(premotelogname), ::core::mem::transmute(pdwprotocol)).ok() } - pub unsafe fn HandleConfirmationFromOurXln(&self, confirmation: _DtcLu_Xln_Confirmation) -> ::windows::core::Result<()> { + pub unsafe fn HandleConfirmationFromOurXln(&self, confirmation: DTCLUXLNCONFIRMATION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HandleConfirmationFromOurXln)(::windows::core::Interface::as_raw(self), confirmation).ok() } - pub unsafe fn HandleTheirXlnResponse(&self, xln: _DtcLu_Xln, premotelogname: &mut u8, cbremotelogname: u32, dwprotocol: u32, pconfirmation: &mut _DtcLu_Xln_Confirmation) -> ::windows::core::Result<()> { + pub unsafe fn HandleTheirXlnResponse(&self, xln: DTCLUXLN, premotelogname: &mut u8, cbremotelogname: u32, dwprotocol: u32, pconfirmation: &mut DTCLUXLNCONFIRMATION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HandleTheirXlnResponse)(::windows::core::Interface::as_raw(self), xln, ::core::mem::transmute(premotelogname), cbremotelogname, dwprotocol, ::core::mem::transmute(pconfirmation)).ok() } - pub unsafe fn HandleErrorFromOurXln(&self, error: _DtcLu_Xln_Error) -> ::windows::core::Result<()> { + pub unsafe fn HandleErrorFromOurXln(&self, error: DTCLUXLNERROR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HandleErrorFromOurXln)(::windows::core::Interface::as_raw(self), error).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -322,13 +322,13 @@ impl IDtcLuRecoveryInitiatedByDtcTransWork { pub unsafe fn GetOurTransIdSize(&self, pcbourtransid: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetOurTransIdSize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcbourtransid)).ok() } - pub unsafe fn GetOurCompareStates(&self, pourtransid: &mut u8, pcomparestate: &mut _DtcLu_CompareState) -> ::windows::core::Result<()> { + pub unsafe fn GetOurCompareStates(&self, pourtransid: &mut u8, pcomparestate: &mut DTCLUCOMPARESTATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetOurCompareStates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pourtransid), ::core::mem::transmute(pcomparestate)).ok() } - pub unsafe fn HandleTheirCompareStatesResponse(&self, comparestate: _DtcLu_CompareState, pconfirmation: &mut _DtcLu_CompareStates_Confirmation) -> ::windows::core::Result<()> { + pub unsafe fn HandleTheirCompareStatesResponse(&self, comparestate: DTCLUCOMPARESTATE, pconfirmation: &mut DTCLUCOMPARESTATESCONFIRMATION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HandleTheirCompareStatesResponse)(::windows::core::Interface::as_raw(self), comparestate, ::core::mem::transmute(pconfirmation)).ok() } - pub unsafe fn HandleErrorFromOurCompareStates(&self, error: _DtcLu_CompareStates_Error) -> ::windows::core::Result<()> { + pub unsafe fn HandleErrorFromOurCompareStates(&self, error: DTCLUCOMPARESTATESERROR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HandleErrorFromOurCompareStates)(::windows::core::Interface::as_raw(self), error).ok() } pub unsafe fn ConversationLost(&self) -> ::windows::core::Result<()> { @@ -381,18 +381,18 @@ unsafe impl ::windows::core::Interface for IDtcLuRecoveryInitiatedByDtcTransWork pub struct IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetLogNameSizes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbourlogname: *mut u32, pcbremotelogname: *mut u32) -> ::windows::core::HRESULT, - pub GetOurXln: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxln: *mut _DtcLu_Xln, pourlogname: *mut u8, premotelogname: *mut u8, pdwprotocol: *mut u32) -> ::windows::core::HRESULT, - pub HandleConfirmationFromOurXln: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, confirmation: _DtcLu_Xln_Confirmation) -> ::windows::core::HRESULT, - pub HandleTheirXlnResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xln: _DtcLu_Xln, premotelogname: *mut u8, cbremotelogname: u32, dwprotocol: u32, pconfirmation: *mut _DtcLu_Xln_Confirmation) -> ::windows::core::HRESULT, - pub HandleErrorFromOurXln: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: _DtcLu_Xln_Error) -> ::windows::core::HRESULT, + pub GetOurXln: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxln: *mut DTCLUXLN, pourlogname: *mut u8, premotelogname: *mut u8, pdwprotocol: *mut u32) -> ::windows::core::HRESULT, + pub HandleConfirmationFromOurXln: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, confirmation: DTCLUXLNCONFIRMATION) -> ::windows::core::HRESULT, + pub HandleTheirXlnResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, dwprotocol: u32, pconfirmation: *mut DTCLUXLNCONFIRMATION) -> ::windows::core::HRESULT, + pub HandleErrorFromOurXln: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: DTCLUXLNERROR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CheckForCompareStates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fcomparestates: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CheckForCompareStates: usize, pub GetOurTransIdSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbourtransid: *mut u32) -> ::windows::core::HRESULT, - pub GetOurCompareStates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pourtransid: *mut u8, pcomparestate: *mut _DtcLu_CompareState) -> ::windows::core::HRESULT, - pub HandleTheirCompareStatesResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, comparestate: _DtcLu_CompareState, pconfirmation: *mut _DtcLu_CompareStates_Confirmation) -> ::windows::core::HRESULT, - pub HandleErrorFromOurCompareStates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: _DtcLu_CompareStates_Error) -> ::windows::core::HRESULT, + pub GetOurCompareStates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pourtransid: *mut u8, pcomparestate: *mut DTCLUCOMPARESTATE) -> ::windows::core::HRESULT, + pub HandleTheirCompareStatesResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, comparestate: DTCLUCOMPARESTATE, pconfirmation: *mut DTCLUCOMPARESTATESCONFIRMATION) -> ::windows::core::HRESULT, + pub HandleErrorFromOurCompareStates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: DTCLUCOMPARESTATESERROR) -> ::windows::core::HRESULT, pub ConversationLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetRecoverySeqNum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plrecoveryseqnum: *mut i32) -> ::windows::core::HRESULT, pub ObsoleteRecoverySeqNum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnewrecoveryseqnum: i32) -> ::windows::core::HRESULT, @@ -451,25 +451,25 @@ pub struct IDtcLuRecoveryInitiatedByLu_Vtbl { #[repr(transparent)] pub struct IDtcLuRecoveryInitiatedByLuWork(::windows::core::IUnknown); impl IDtcLuRecoveryInitiatedByLuWork { - pub unsafe fn HandleTheirXln(&self, lrecoveryseqnum: i32, xln: _DtcLu_Xln, premotelogname: &mut u8, cbremotelogname: u32, pourlogname: &mut u8, cbourlogname: u32, dwprotocol: u32, presponse: &mut _DtcLu_Xln_Response) -> ::windows::core::Result<()> { + pub unsafe fn HandleTheirXln(&self, lrecoveryseqnum: i32, xln: DTCLUXLN, premotelogname: &mut u8, cbremotelogname: u32, pourlogname: &mut u8, cbourlogname: u32, dwprotocol: u32, presponse: &mut DTCLUXLNRESPONSE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HandleTheirXln)(::windows::core::Interface::as_raw(self), lrecoveryseqnum, xln, ::core::mem::transmute(premotelogname), cbremotelogname, ::core::mem::transmute(pourlogname), cbourlogname, dwprotocol, ::core::mem::transmute(presponse)).ok() } pub unsafe fn GetOurLogNameSize(&self, pcbourlogname: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetOurLogNameSize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcbourlogname)).ok() } - pub unsafe fn GetOurXln(&self, pxln: &mut _DtcLu_Xln, pourlogname: &mut u8, pdwprotocol: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn GetOurXln(&self, pxln: &mut DTCLUXLN, pourlogname: &mut u8, pdwprotocol: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetOurXln)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pxln), ::core::mem::transmute(pourlogname), ::core::mem::transmute(pdwprotocol)).ok() } - pub unsafe fn HandleConfirmationOfOurXln(&self, confirmation: _DtcLu_Xln_Confirmation) -> ::windows::core::Result<()> { + pub unsafe fn HandleConfirmationOfOurXln(&self, confirmation: DTCLUXLNCONFIRMATION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HandleConfirmationOfOurXln)(::windows::core::Interface::as_raw(self), confirmation).ok() } - pub unsafe fn HandleTheirCompareStates(&self, premotetransid: &mut u8, cbremotetransid: u32, comparestate: _DtcLu_CompareState, presponse: &mut _DtcLu_CompareStates_Response, pcomparestate: &mut _DtcLu_CompareState) -> ::windows::core::Result<()> { + pub unsafe fn HandleTheirCompareStates(&self, premotetransid: &mut u8, cbremotetransid: u32, comparestate: DTCLUCOMPARESTATE, presponse: &mut DTCLUCOMPARESTATESRESPONSE, pcomparestate: &mut DTCLUCOMPARESTATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HandleTheirCompareStates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(premotetransid), cbremotetransid, comparestate, ::core::mem::transmute(presponse), ::core::mem::transmute(pcomparestate)).ok() } - pub unsafe fn HandleConfirmationOfOurCompareStates(&self, confirmation: _DtcLu_CompareStates_Confirmation) -> ::windows::core::Result<()> { + pub unsafe fn HandleConfirmationOfOurCompareStates(&self, confirmation: DTCLUCOMPARESTATESCONFIRMATION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HandleConfirmationOfOurCompareStates)(::windows::core::Interface::as_raw(self), confirmation).ok() } - pub unsafe fn HandleErrorFromOurCompareStates(&self, error: _DtcLu_CompareStates_Error) -> ::windows::core::Result<()> { + pub unsafe fn HandleErrorFromOurCompareStates(&self, error: DTCLUCOMPARESTATESERROR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HandleErrorFromOurCompareStates)(::windows::core::Interface::as_raw(self), error).ok() } pub unsafe fn ConversationLost(&self) -> ::windows::core::Result<()> { @@ -515,13 +515,13 @@ unsafe impl ::windows::core::Interface for IDtcLuRecoveryInitiatedByLuWork { #[doc(hidden)] pub struct IDtcLuRecoveryInitiatedByLuWork_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub HandleTheirXln: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lrecoveryseqnum: i32, xln: _DtcLu_Xln, premotelogname: *mut u8, cbremotelogname: u32, pourlogname: *mut u8, cbourlogname: u32, dwprotocol: u32, presponse: *mut _DtcLu_Xln_Response) -> ::windows::core::HRESULT, + pub HandleTheirXln: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lrecoveryseqnum: i32, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, pourlogname: *mut u8, cbourlogname: u32, dwprotocol: u32, presponse: *mut DTCLUXLNRESPONSE) -> ::windows::core::HRESULT, pub GetOurLogNameSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbourlogname: *mut u32) -> ::windows::core::HRESULT, - pub GetOurXln: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxln: *mut _DtcLu_Xln, pourlogname: *mut u8, pdwprotocol: *mut u32) -> ::windows::core::HRESULT, - pub HandleConfirmationOfOurXln: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, confirmation: _DtcLu_Xln_Confirmation) -> ::windows::core::HRESULT, - pub HandleTheirCompareStates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, premotetransid: *mut u8, cbremotetransid: u32, comparestate: _DtcLu_CompareState, presponse: *mut _DtcLu_CompareStates_Response, pcomparestate: *mut _DtcLu_CompareState) -> ::windows::core::HRESULT, - pub HandleConfirmationOfOurCompareStates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, confirmation: _DtcLu_CompareStates_Confirmation) -> ::windows::core::HRESULT, - pub HandleErrorFromOurCompareStates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: _DtcLu_CompareStates_Error) -> ::windows::core::HRESULT, + pub GetOurXln: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxln: *mut DTCLUXLN, pourlogname: *mut u8, pdwprotocol: *mut u32) -> ::windows::core::HRESULT, + pub HandleConfirmationOfOurXln: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, confirmation: DTCLUXLNCONFIRMATION) -> ::windows::core::HRESULT, + pub HandleTheirCompareStates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, premotetransid: *mut u8, cbremotetransid: u32, comparestate: DTCLUCOMPARESTATE, presponse: *mut DTCLUCOMPARESTATESRESPONSE, pcomparestate: *mut DTCLUCOMPARESTATE) -> ::windows::core::HRESULT, + pub HandleConfirmationOfOurCompareStates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, confirmation: DTCLUCOMPARESTATESCONFIRMATION) -> ::windows::core::HRESULT, + pub HandleErrorFromOurCompareStates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: DTCLUCOMPARESTATESERROR) -> ::windows::core::HRESULT, pub ConversationLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] @@ -1561,12 +1561,12 @@ impl IDtcToXaHelper { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TranslateTridToXid<'a, P0>(&self, pitransaction: P0, pguidbqual: &::windows::core::GUID) -> ::windows::core::Result + pub unsafe fn TranslateTridToXid<'a, P0>(&self, pitransaction: P0, pguidbqual: &::windows::core::GUID) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, ITransaction>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TranslateTridToXid)(::windows::core::Interface::as_raw(self), pitransaction.into().abi(), ::core::mem::transmute(pguidbqual), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TranslateTridToXid)(::windows::core::Interface::as_raw(self), pitransaction.into().abi(), ::core::mem::transmute(pguidbqual), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1613,7 +1613,7 @@ pub struct IDtcToXaHelper_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] Close: usize, #[cfg(feature = "Win32_Foundation")] - pub TranslateTridToXid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitransaction: *mut ::core::ffi::c_void, pguidbqual: *const ::windows::core::GUID, pxid: *mut xid_t) -> ::windows::core::HRESULT, + pub TranslateTridToXid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitransaction: *mut ::core::ffi::c_void, pguidbqual: *const ::windows::core::GUID, pxid: *mut XID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] TranslateTridToXid: usize, } @@ -1683,7 +1683,7 @@ impl IDtcToXaHelperSinglePipe { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConvertTridToXID(&self, pdwitrans: &mut u32, dwrmcookie: u32, pxid: &mut xid_t) -> ::windows::core::Result<()> { + pub unsafe fn ConvertTridToXID(&self, pdwitrans: &mut u32, dwrmcookie: u32, pxid: &mut XID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ConvertTridToXID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwitrans), dwrmcookie, ::core::mem::transmute(pxid)).ok() } pub unsafe fn EnlistWithRM<'a, P0, P1>(&self, dwrmcookie: u32, i_pitransaction: P0, i_pitransres: P1) -> ::windows::core::Result @@ -1744,7 +1744,7 @@ pub struct IDtcToXaHelperSinglePipe_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub XARMCreate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdsn: ::windows::core::PCSTR, pszclientdll: ::windows::core::PCSTR, pdwrmcookie: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub ConvertTridToXID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwitrans: *mut u32, dwrmcookie: u32, pxid: *mut xid_t) -> ::windows::core::HRESULT, + pub ConvertTridToXID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwitrans: *mut u32, dwrmcookie: u32, pxid: *mut XID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] ConvertTridToXID: usize, pub EnlistWithRM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrmcookie: u32, i_pitransaction: *mut ::core::ffi::c_void, i_pitransres: *mut ::core::ffi::c_void, o_ppitransenslitment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -1766,7 +1766,7 @@ impl IDtcToXaMapper { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TranslateTridToXid(&self, pdwitransaction: &u32, dwrmcookie: u32, pxid: &mut xid_t) -> ::windows::core::Result<()> { + pub unsafe fn TranslateTridToXid(&self, pdwitransaction: &u32, dwrmcookie: u32, pxid: &mut XID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TranslateTridToXid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwitransaction), dwrmcookie, ::core::mem::transmute(pxid)).ok() } pub unsafe fn EnlistResourceManager(&self, dwrmcookie: u32, pdwitransaction: &u32) -> ::windows::core::Result<()> { @@ -1817,7 +1817,7 @@ pub struct IDtcToXaMapper_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub RequestNewResourceManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdsn: ::windows::core::PCSTR, pszclientdllname: ::windows::core::PCSTR, pdwrmcookie: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub TranslateTridToXid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwitransaction: *const u32, dwrmcookie: u32, pxid: *mut xid_t) -> ::windows::core::HRESULT, + pub TranslateTridToXid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwitransaction: *const u32, dwrmcookie: u32, pxid: *mut XID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] TranslateTridToXid: usize, pub EnlistResourceManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrmcookie: u32, pdwitransaction: *const u32) -> ::windows::core::HRESULT, @@ -2239,7 +2239,7 @@ impl IResourceManager2 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Enlist2<'a, P0, P1>(&self, ptransaction: P0, presasync: P1, puow: &mut BOID, pisolevel: &mut i32, pxid: &mut xid_t, ppenlist: &mut ::core::option::Option) -> ::windows::core::Result<()> + pub unsafe fn Enlist2<'a, P0, P1>(&self, ptransaction: P0, presasync: P1, puow: &mut BOID, pisolevel: &mut i32, pxid: &mut XID, ppenlist: &mut ::core::option::Option) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, ITransaction>>, P1: ::std::convert::Into<::windows::core::InParam<'a, ITransactionResourceAsync>>, @@ -2248,7 +2248,7 @@ impl IResourceManager2 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Reenlist2(&self, pxid: &xid_t, dwtimeout: u32) -> ::windows::core::Result { + pub unsafe fn Reenlist2(&self, pxid: &XID, dwtimeout: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Reenlist2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pxid), dwtimeout, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } @@ -2308,11 +2308,11 @@ unsafe impl ::windows::core::Interface for IResourceManager2 { pub struct IResourceManager2_Vtbl { pub base__: IResourceManager_Vtbl, #[cfg(feature = "Win32_Foundation")] - pub Enlist2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptransaction: *mut ::core::ffi::c_void, presasync: *mut ::core::ffi::c_void, puow: *mut BOID, pisolevel: *mut i32, pxid: *mut xid_t, ppenlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub Enlist2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptransaction: *mut ::core::ffi::c_void, presasync: *mut ::core::ffi::c_void, puow: *mut BOID, pisolevel: *mut i32, pxid: *mut XID, ppenlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] Enlist2: usize, #[cfg(feature = "Win32_Foundation")] - pub Reenlist2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxid: *const xid_t, dwtimeout: u32, pxactstat: *mut XACTSTAT) -> ::windows::core::HRESULT, + pub Reenlist2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxid: *const XID, dwtimeout: u32, pxactstat: *mut XACTSTAT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] Reenlist2: usize, } @@ -2469,7 +2469,7 @@ impl IResourceManagerRejoinable { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Enlist2<'a, P0, P1>(&self, ptransaction: P0, presasync: P1, puow: &mut BOID, pisolevel: &mut i32, pxid: &mut xid_t, ppenlist: &mut ::core::option::Option) -> ::windows::core::Result<()> + pub unsafe fn Enlist2<'a, P0, P1>(&self, ptransaction: P0, presasync: P1, puow: &mut BOID, pisolevel: &mut i32, pxid: &mut XID, ppenlist: &mut ::core::option::Option) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, ITransaction>>, P1: ::std::convert::Into<::windows::core::InParam<'a, ITransactionResourceAsync>>, @@ -2478,7 +2478,7 @@ impl IResourceManagerRejoinable { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Reenlist2(&self, pxid: &xid_t, dwtimeout: u32) -> ::windows::core::Result { + pub unsafe fn Reenlist2(&self, pxid: &XID, dwtimeout: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Reenlist2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pxid), dwtimeout, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } @@ -4592,7 +4592,7 @@ pub struct IXATransLookup2(::windows::core::IUnknown); impl IXATransLookup2 { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Lookup(&self, pxid: &xid_t) -> ::windows::core::Result { + pub unsafe fn Lookup(&self, pxid: &XID) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Lookup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pxid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } @@ -4637,7 +4637,7 @@ unsafe impl ::windows::core::Interface for IXATransLookup2 { pub struct IXATransLookup2_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(feature = "Win32_Foundation")] - pub Lookup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxid: *const xid_t, pptransaction: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub Lookup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxid: *const XID, pptransaction: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] Lookup: usize, } @@ -4836,6 +4836,267 @@ impl ::core::fmt::Debug for AUTHENTICATION_LEVEL { #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DTCINITIATEDRECOVERYWORK(pub i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCINITIATEDRECOVERYWORK_CHECKLUSTATUS: DTCINITIATEDRECOVERYWORK = DTCINITIATEDRECOVERYWORK(1i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCINITIATEDRECOVERYWORK_TRANS: DTCINITIATEDRECOVERYWORK = DTCINITIATEDRECOVERYWORK(2i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCINITIATEDRECOVERYWORK_TMDOWN: DTCINITIATEDRECOVERYWORK = DTCINITIATEDRECOVERYWORK(3i32); +impl ::core::marker::Copy for DTCINITIATEDRECOVERYWORK {} +impl ::core::clone::Clone for DTCINITIATEDRECOVERYWORK { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DTCINITIATEDRECOVERYWORK { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DTCINITIATEDRECOVERYWORK { + type Abi = Self; +} +impl ::core::fmt::Debug for DTCINITIATEDRECOVERYWORK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DTCINITIATEDRECOVERYWORK").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DTCLUCOMPARESTATE(pub i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATE_COMMITTED: DTCLUCOMPARESTATE = DTCLUCOMPARESTATE(1i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATE_HEURISTICCOMMITTED: DTCLUCOMPARESTATE = DTCLUCOMPARESTATE(2i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATE_HEURISTICMIXED: DTCLUCOMPARESTATE = DTCLUCOMPARESTATE(3i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATE_HEURISTICRESET: DTCLUCOMPARESTATE = DTCLUCOMPARESTATE(4i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATE_INDOUBT: DTCLUCOMPARESTATE = DTCLUCOMPARESTATE(5i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATE_RESET: DTCLUCOMPARESTATE = DTCLUCOMPARESTATE(6i32); +impl ::core::marker::Copy for DTCLUCOMPARESTATE {} +impl ::core::clone::Clone for DTCLUCOMPARESTATE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DTCLUCOMPARESTATE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DTCLUCOMPARESTATE { + type Abi = Self; +} +impl ::core::fmt::Debug for DTCLUCOMPARESTATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DTCLUCOMPARESTATE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DTCLUCOMPARESTATESCONFIRMATION(pub i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATESCONFIRMATION_CONFIRM: DTCLUCOMPARESTATESCONFIRMATION = DTCLUCOMPARESTATESCONFIRMATION(1i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATESCONFIRMATION_PROTOCOL: DTCLUCOMPARESTATESCONFIRMATION = DTCLUCOMPARESTATESCONFIRMATION(2i32); +impl ::core::marker::Copy for DTCLUCOMPARESTATESCONFIRMATION {} +impl ::core::clone::Clone for DTCLUCOMPARESTATESCONFIRMATION { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DTCLUCOMPARESTATESCONFIRMATION { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DTCLUCOMPARESTATESCONFIRMATION { + type Abi = Self; +} +impl ::core::fmt::Debug for DTCLUCOMPARESTATESCONFIRMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DTCLUCOMPARESTATESCONFIRMATION").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DTCLUCOMPARESTATESERROR(pub i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATESERROR_PROTOCOL: DTCLUCOMPARESTATESERROR = DTCLUCOMPARESTATESERROR(1i32); +impl ::core::marker::Copy for DTCLUCOMPARESTATESERROR {} +impl ::core::clone::Clone for DTCLUCOMPARESTATESERROR { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DTCLUCOMPARESTATESERROR { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DTCLUCOMPARESTATESERROR { + type Abi = Self; +} +impl ::core::fmt::Debug for DTCLUCOMPARESTATESERROR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DTCLUCOMPARESTATESERROR").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DTCLUCOMPARESTATESRESPONSE(pub i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATESRESPONSE_OK: DTCLUCOMPARESTATESRESPONSE = DTCLUCOMPARESTATESRESPONSE(1i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUCOMPARESTATESRESPONSE_PROTOCOL: DTCLUCOMPARESTATESRESPONSE = DTCLUCOMPARESTATESRESPONSE(2i32); +impl ::core::marker::Copy for DTCLUCOMPARESTATESRESPONSE {} +impl ::core::clone::Clone for DTCLUCOMPARESTATESRESPONSE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DTCLUCOMPARESTATESRESPONSE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DTCLUCOMPARESTATESRESPONSE { + type Abi = Self; +} +impl ::core::fmt::Debug for DTCLUCOMPARESTATESRESPONSE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DTCLUCOMPARESTATESRESPONSE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DTCLUXLN(pub i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLN_COLD: DTCLUXLN = DTCLUXLN(1i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLN_WARM: DTCLUXLN = DTCLUXLN(2i32); +impl ::core::marker::Copy for DTCLUXLN {} +impl ::core::clone::Clone for DTCLUXLN { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DTCLUXLN { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DTCLUXLN { + type Abi = Self; +} +impl ::core::fmt::Debug for DTCLUXLN { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DTCLUXLN").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DTCLUXLNCONFIRMATION(pub i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNCONFIRMATION_CONFIRM: DTCLUXLNCONFIRMATION = DTCLUXLNCONFIRMATION(1i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNCONFIRMATION_LOGNAMEMISMATCH: DTCLUXLNCONFIRMATION = DTCLUXLNCONFIRMATION(2i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNCONFIRMATION_COLDWARMMISMATCH: DTCLUXLNCONFIRMATION = DTCLUXLNCONFIRMATION(3i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNCONFIRMATION_OBSOLETE: DTCLUXLNCONFIRMATION = DTCLUXLNCONFIRMATION(4i32); +impl ::core::marker::Copy for DTCLUXLNCONFIRMATION {} +impl ::core::clone::Clone for DTCLUXLNCONFIRMATION { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DTCLUXLNCONFIRMATION { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DTCLUXLNCONFIRMATION { + type Abi = Self; +} +impl ::core::fmt::Debug for DTCLUXLNCONFIRMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DTCLUXLNCONFIRMATION").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DTCLUXLNERROR(pub i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNERROR_PROTOCOL: DTCLUXLNERROR = DTCLUXLNERROR(1i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNERROR_LOGNAMEMISMATCH: DTCLUXLNERROR = DTCLUXLNERROR(2i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNERROR_COLDWARMMISMATCH: DTCLUXLNERROR = DTCLUXLNERROR(3i32); +impl ::core::marker::Copy for DTCLUXLNERROR {} +impl ::core::clone::Clone for DTCLUXLNERROR { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DTCLUXLNERROR { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DTCLUXLNERROR { + type Abi = Self; +} +impl ::core::fmt::Debug for DTCLUXLNERROR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DTCLUXLNERROR").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DTCLUXLNRESPONSE(pub i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNRESPONSE_OK_SENDOURXLNBACK: DTCLUXLNRESPONSE = DTCLUXLNRESPONSE(1i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNRESPONSE_OK_SENDCONFIRMATION: DTCLUXLNRESPONSE = DTCLUXLNRESPONSE(2i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNRESPONSE_LOGNAMEMISMATCH: DTCLUXLNRESPONSE = DTCLUXLNRESPONSE(3i32); +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub const DTCLUXLNRESPONSE_COLDWARMMISMATCH: DTCLUXLNRESPONSE = DTCLUXLNRESPONSE(4i32); +impl ::core::marker::Copy for DTCLUXLNRESPONSE {} +impl ::core::clone::Clone for DTCLUXLNRESPONSE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DTCLUXLNRESPONSE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DTCLUXLNRESPONSE { + type Abi = Self; +} +impl ::core::fmt::Debug for DTCLUXLNRESPONSE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DTCLUXLNRESPONSE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct DTC_STATUS_(pub i32); #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub const DTC_STATUS_UNKNOWN: DTC_STATUS_ = DTC_STATUS_(0i32); @@ -5243,267 +5504,6 @@ impl ::core::fmt::Debug for XACT_DTC_CONSTANTS { f.debug_tuple("XACT_DTC_CONSTANTS").field(&self.0).finish() } } -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _DtcLu_CompareState(pub i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATE_COMMITTED: _DtcLu_CompareState = _DtcLu_CompareState(1i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATE_HEURISTICCOMMITTED: _DtcLu_CompareState = _DtcLu_CompareState(2i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATE_HEURISTICMIXED: _DtcLu_CompareState = _DtcLu_CompareState(3i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATE_HEURISTICRESET: _DtcLu_CompareState = _DtcLu_CompareState(4i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATE_INDOUBT: _DtcLu_CompareState = _DtcLu_CompareState(5i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATE_RESET: _DtcLu_CompareState = _DtcLu_CompareState(6i32); -impl ::core::marker::Copy for _DtcLu_CompareState {} -impl ::core::clone::Clone for _DtcLu_CompareState { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _DtcLu_CompareState { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _DtcLu_CompareState { - type Abi = Self; -} -impl ::core::fmt::Debug for _DtcLu_CompareState { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_DtcLu_CompareState").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _DtcLu_CompareStates_Confirmation(pub i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATESCONFIRMATION_CONFIRM: _DtcLu_CompareStates_Confirmation = _DtcLu_CompareStates_Confirmation(1i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATESCONFIRMATION_PROTOCOL: _DtcLu_CompareStates_Confirmation = _DtcLu_CompareStates_Confirmation(2i32); -impl ::core::marker::Copy for _DtcLu_CompareStates_Confirmation {} -impl ::core::clone::Clone for _DtcLu_CompareStates_Confirmation { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _DtcLu_CompareStates_Confirmation { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _DtcLu_CompareStates_Confirmation { - type Abi = Self; -} -impl ::core::fmt::Debug for _DtcLu_CompareStates_Confirmation { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_DtcLu_CompareStates_Confirmation").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _DtcLu_CompareStates_Error(pub i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATESERROR_PROTOCOL: _DtcLu_CompareStates_Error = _DtcLu_CompareStates_Error(1i32); -impl ::core::marker::Copy for _DtcLu_CompareStates_Error {} -impl ::core::clone::Clone for _DtcLu_CompareStates_Error { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _DtcLu_CompareStates_Error { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _DtcLu_CompareStates_Error { - type Abi = Self; -} -impl ::core::fmt::Debug for _DtcLu_CompareStates_Error { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_DtcLu_CompareStates_Error").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _DtcLu_CompareStates_Response(pub i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATESRESPONSE_OK: _DtcLu_CompareStates_Response = _DtcLu_CompareStates_Response(1i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUCOMPARESTATESRESPONSE_PROTOCOL: _DtcLu_CompareStates_Response = _DtcLu_CompareStates_Response(2i32); -impl ::core::marker::Copy for _DtcLu_CompareStates_Response {} -impl ::core::clone::Clone for _DtcLu_CompareStates_Response { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _DtcLu_CompareStates_Response { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _DtcLu_CompareStates_Response { - type Abi = Self; -} -impl ::core::fmt::Debug for _DtcLu_CompareStates_Response { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_DtcLu_CompareStates_Response").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _DtcLu_LocalRecovery_Work(pub i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCINITIATEDRECOVERYWORK_CHECKLUSTATUS: _DtcLu_LocalRecovery_Work = _DtcLu_LocalRecovery_Work(1i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCINITIATEDRECOVERYWORK_TRANS: _DtcLu_LocalRecovery_Work = _DtcLu_LocalRecovery_Work(2i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCINITIATEDRECOVERYWORK_TMDOWN: _DtcLu_LocalRecovery_Work = _DtcLu_LocalRecovery_Work(3i32); -impl ::core::marker::Copy for _DtcLu_LocalRecovery_Work {} -impl ::core::clone::Clone for _DtcLu_LocalRecovery_Work { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _DtcLu_LocalRecovery_Work { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _DtcLu_LocalRecovery_Work { - type Abi = Self; -} -impl ::core::fmt::Debug for _DtcLu_LocalRecovery_Work { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_DtcLu_LocalRecovery_Work").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _DtcLu_Xln(pub i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLN_COLD: _DtcLu_Xln = _DtcLu_Xln(1i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLN_WARM: _DtcLu_Xln = _DtcLu_Xln(2i32); -impl ::core::marker::Copy for _DtcLu_Xln {} -impl ::core::clone::Clone for _DtcLu_Xln { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _DtcLu_Xln { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _DtcLu_Xln { - type Abi = Self; -} -impl ::core::fmt::Debug for _DtcLu_Xln { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_DtcLu_Xln").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _DtcLu_Xln_Confirmation(pub i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNCONFIRMATION_CONFIRM: _DtcLu_Xln_Confirmation = _DtcLu_Xln_Confirmation(1i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNCONFIRMATION_LOGNAMEMISMATCH: _DtcLu_Xln_Confirmation = _DtcLu_Xln_Confirmation(2i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNCONFIRMATION_COLDWARMMISMATCH: _DtcLu_Xln_Confirmation = _DtcLu_Xln_Confirmation(3i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNCONFIRMATION_OBSOLETE: _DtcLu_Xln_Confirmation = _DtcLu_Xln_Confirmation(4i32); -impl ::core::marker::Copy for _DtcLu_Xln_Confirmation {} -impl ::core::clone::Clone for _DtcLu_Xln_Confirmation { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _DtcLu_Xln_Confirmation { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _DtcLu_Xln_Confirmation { - type Abi = Self; -} -impl ::core::fmt::Debug for _DtcLu_Xln_Confirmation { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_DtcLu_Xln_Confirmation").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _DtcLu_Xln_Error(pub i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNERROR_PROTOCOL: _DtcLu_Xln_Error = _DtcLu_Xln_Error(1i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNERROR_LOGNAMEMISMATCH: _DtcLu_Xln_Error = _DtcLu_Xln_Error(2i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNERROR_COLDWARMMISMATCH: _DtcLu_Xln_Error = _DtcLu_Xln_Error(3i32); -impl ::core::marker::Copy for _DtcLu_Xln_Error {} -impl ::core::clone::Clone for _DtcLu_Xln_Error { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _DtcLu_Xln_Error { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _DtcLu_Xln_Error { - type Abi = Self; -} -impl ::core::fmt::Debug for _DtcLu_Xln_Error { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_DtcLu_Xln_Error").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _DtcLu_Xln_Response(pub i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNRESPONSE_OK_SENDOURXLNBACK: _DtcLu_Xln_Response = _DtcLu_Xln_Response(1i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNRESPONSE_OK_SENDCONFIRMATION: _DtcLu_Xln_Response = _DtcLu_Xln_Response(2i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNRESPONSE_LOGNAMEMISMATCH: _DtcLu_Xln_Response = _DtcLu_Xln_Response(3i32); -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub const DTCLUXLNRESPONSE_COLDWARMMISMATCH: _DtcLu_Xln_Response = _DtcLu_Xln_Response(4i32); -impl ::core::marker::Copy for _DtcLu_Xln_Response {} -impl ::core::clone::Clone for _DtcLu_Xln_Response { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _DtcLu_Xln_Response { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _DtcLu_Xln_Response { - type Abi = Self; -} -impl ::core::fmt::Debug for _DtcLu_Xln_Response { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_DtcLu_Xln_Response").field(&self.0).finish() - } -} #[repr(C)] #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub struct BOID { @@ -5600,6 +5600,36 @@ impl ::core::default::Default for OLE_TM_CONFIG_PARAMS_V2 { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] +pub struct PROXY_CONFIG_PARAMS { + pub wcThreadsMax: u16, +} +impl ::core::marker::Copy for PROXY_CONFIG_PARAMS {} +impl ::core::clone::Clone for PROXY_CONFIG_PARAMS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for PROXY_CONFIG_PARAMS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("PROXY_CONFIG_PARAMS").field("wcThreadsMax", &self.wcThreadsMax).finish() + } +} +unsafe impl ::windows::core::Abi for PROXY_CONFIG_PARAMS { + type Abi = Self; +} +impl ::core::cmp::PartialEq for PROXY_CONFIG_PARAMS { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for PROXY_CONFIG_PARAMS {} +impl ::core::default::Default for PROXY_CONFIG_PARAMS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub struct XACTOPT { pub ulTimeout: u32, pub szDescription: [u8; 40], @@ -5711,31 +5741,42 @@ impl ::core::default::Default for XACTTRANSINFO { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] -pub struct _ProxyConfigParams { - pub wcThreadsMax: u16, +#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct XID { + pub formatID: i32, + pub gtrid_length: i32, + pub bqual_length: i32, + pub data: [super::super::Foundation::CHAR; 128], } -impl ::core::marker::Copy for _ProxyConfigParams {} -impl ::core::clone::Clone for _ProxyConfigParams { +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for XID {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for XID { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for _ProxyConfigParams { +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for XID { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_ProxyConfigParams").field("wcThreadsMax", &self.wcThreadsMax).finish() + f.debug_struct("XID").field("formatID", &self.formatID).field("gtrid_length", &self.gtrid_length).field("bqual_length", &self.bqual_length).field("data", &self.data).finish() } } -unsafe impl ::windows::core::Abi for _ProxyConfigParams { +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for XID { type Abi = Self; } -impl ::core::cmp::PartialEq for _ProxyConfigParams { +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for XID { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_ProxyConfigParams>()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for _ProxyConfigParams {} -impl ::core::default::Default for _ProxyConfigParams { +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for XID {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for XID { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -5804,47 +5845,6 @@ impl ::core::default::Default for xa_switch_t { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct xid_t { - pub formatID: i32, - pub gtrid_length: i32, - pub bqual_length: i32, - pub data: [super::super::Foundation::CHAR; 128], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for xid_t {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for xid_t { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for xid_t { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("xid_t").field("formatID", &self.formatID).field("gtrid_length", &self.gtrid_length).field("bqual_length", &self.bqual_length).field("data", &self.data).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for xid_t { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for xid_t { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for xid_t {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for xid_t { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub type DTC_GET_TRANSACTION_MANAGER = ::core::option::Option ::windows::core::HRESULT>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] @@ -5857,28 +5857,28 @@ pub type DTC_INSTALL_CLIENT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_COMMIT_EPT = ::core::option::Option i32>; +pub type XA_COMMIT_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub type XA_COMPLETE_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_END_EPT = ::core::option::Option i32>; +pub type XA_END_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_FORGET_EPT = ::core::option::Option i32>; +pub type XA_FORGET_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`*"] pub type XA_OPEN_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_PREPARE_EPT = ::core::option::Option i32>; +pub type XA_PREPARE_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_RECOVER_EPT = ::core::option::Option i32>; +pub type XA_RECOVER_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_ROLLBACK_EPT = ::core::option::Option i32>; +pub type XA_ROLLBACK_EPT = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_System_DistributedTransactionCoordinator\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub type XA_START_EPT = ::core::option::Option i32>; +pub type XA_START_EPT = ::core::option::Option i32>; #[cfg(feature = "implement")] ::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs index bb754dee90..70a4c12689 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs @@ -1,157 +1,3 @@ -#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] -#[inline] -pub unsafe fn WerFreeString<'a, P0>(pwszstr: P0) -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WerFreeString(pwszstr: ::windows::core::PCWSTR); - } - WerFreeString(pwszstr.into()) -} -#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] -#[inline] -pub unsafe fn WerStoreClose<'a, P0>(hreportstore: P0) -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WerStoreClose(hreportstore: HREPORTSTORE); - } - WerStoreClose(hreportstore.into()) -} -#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] -#[inline] -pub unsafe fn WerStoreGetFirstReportKey<'a, P0>(hreportstore: P0) -> ::windows::core::Result<::windows::core::PWSTR> -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WerStoreGetFirstReportKey(hreportstore: HREPORTSTORE, ppszreportkey: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - WerStoreGetFirstReportKey(hreportstore.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::PWSTR>(result__) -} -#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] -#[inline] -pub unsafe fn WerStoreGetNextReportKey<'a, P0>(hreportstore: P0) -> ::windows::core::Result<::windows::core::PWSTR> -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WerStoreGetNextReportKey(hreportstore: HREPORTSTORE, ppszreportkey: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - WerStoreGetNextReportKey(hreportstore.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::PWSTR>(result__) -} -#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] -#[inline] -pub unsafe fn WerStoreGetReportCount<'a, P0>(hreportstore: P0) -> ::windows::core::Result -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WerStoreGetReportCount(hreportstore: HREPORTSTORE, pdwreportcount: *mut u32) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - WerStoreGetReportCount(hreportstore.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) -} -#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] -#[inline] -pub unsafe fn WerStoreGetSizeOnDisk<'a, P0>(hreportstore: P0) -> ::windows::core::Result -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WerStoreGetSizeOnDisk(hreportstore: HREPORTSTORE, pqwsizeinbytes: *mut u64) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - WerStoreGetSizeOnDisk(hreportstore.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) -} -#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] -#[inline] -pub unsafe fn WerStoreOpen(repstoretype: REPORT_STORE_TYPES) -> ::windows::core::Result { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WerStoreOpen(repstoretype: REPORT_STORE_TYPES, phreportstore: *mut HREPORTSTORE) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - WerStoreOpen(repstoretype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) -} -#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] -#[inline] -pub unsafe fn WerStorePurge() -> ::windows::core::Result<()> { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WerStorePurge() -> ::windows::core::HRESULT; - } - WerStorePurge().ok() -} -#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn WerStoreQueryReportMetadataV1<'a, P0, P1>(hreportstore: P0, pszreportkey: P1) -> ::windows::core::Result -where - P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WerStoreQueryReportMetadataV1(hreportstore: HREPORTSTORE, pszreportkey: ::windows::core::PCWSTR, preportmetadata: *mut WER_REPORT_METADATA_V1) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - WerStoreQueryReportMetadataV1(hreportstore.into(), pszreportkey.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) -} -#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn WerStoreQueryReportMetadataV2<'a, P0, P1>(hreportstore: P0, pszreportkey: P1) -> ::windows::core::Result -where - P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WerStoreQueryReportMetadataV2(hreportstore: HREPORTSTORE, pszreportkey: ::windows::core::PCWSTR, preportmetadata: *mut WER_REPORT_METADATA_V2) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - WerStoreQueryReportMetadataV2(hreportstore.into(), pszreportkey.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) -} -#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn WerStoreQueryReportMetadataV3<'a, P0, P1>(hreportstore: P0, pszreportkey: P1) -> ::windows::core::Result -where - P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WerStoreQueryReportMetadataV3(hreportstore: HREPORTSTORE, pszreportkey: ::windows::core::PCWSTR, preportmetadata: *mut WER_REPORT_METADATA_V3) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - WerStoreQueryReportMetadataV3(hreportstore.into(), pszreportkey.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) -} -#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] -#[inline] -pub unsafe fn WerStoreUploadReport<'a, P0, P1>(hreportstore: P0, pszreportkey: P1, dwflags: u32) -> ::windows::core::Result -where - P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WerStoreUploadReport(hreportstore: HREPORTSTORE, pszreportkey: ::windows::core::PCWSTR, dwflags: u32, psubmitresult: *mut WER_SUBMIT_RESULT) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - WerStoreUploadReport(hreportstore.into(), pszreportkey.into(), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) -} #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -202,6 +48,18 @@ where } WerAddExcludedApplication(pwzexename.into(), ballusers.into()).ok() } +#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] +#[inline] +pub unsafe fn WerFreeString<'a, P0>(pwszstr: P0) +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WerFreeString(pwszstr: ::windows::core::PCWSTR); + } + WerFreeString(pwszstr.into()) +} #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -425,6 +283,148 @@ pub unsafe fn WerSetFlags(dwflags: WER_FAULT_REPORTING) -> ::windows::core::Resu } #[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] #[inline] +pub unsafe fn WerStoreClose<'a, P0>(hreportstore: P0) +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WerStoreClose(hreportstore: HREPORTSTORE); + } + WerStoreClose(hreportstore.into()) +} +#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] +#[inline] +pub unsafe fn WerStoreGetFirstReportKey<'a, P0>(hreportstore: P0) -> ::windows::core::Result<::windows::core::PWSTR> +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WerStoreGetFirstReportKey(hreportstore: HREPORTSTORE, ppszreportkey: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT; + } + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + WerStoreGetFirstReportKey(hreportstore.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::PWSTR>(result__) +} +#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] +#[inline] +pub unsafe fn WerStoreGetNextReportKey<'a, P0>(hreportstore: P0) -> ::windows::core::Result<::windows::core::PWSTR> +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WerStoreGetNextReportKey(hreportstore: HREPORTSTORE, ppszreportkey: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT; + } + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + WerStoreGetNextReportKey(hreportstore.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::PWSTR>(result__) +} +#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] +#[inline] +pub unsafe fn WerStoreGetReportCount<'a, P0>(hreportstore: P0) -> ::windows::core::Result +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WerStoreGetReportCount(hreportstore: HREPORTSTORE, pdwreportcount: *mut u32) -> ::windows::core::HRESULT; + } + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + WerStoreGetReportCount(hreportstore.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) +} +#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] +#[inline] +pub unsafe fn WerStoreGetSizeOnDisk<'a, P0>(hreportstore: P0) -> ::windows::core::Result +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WerStoreGetSizeOnDisk(hreportstore: HREPORTSTORE, pqwsizeinbytes: *mut u64) -> ::windows::core::HRESULT; + } + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + WerStoreGetSizeOnDisk(hreportstore.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) +} +#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] +#[inline] +pub unsafe fn WerStoreOpen(repstoretype: REPORT_STORE_TYPES) -> ::windows::core::Result { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WerStoreOpen(repstoretype: REPORT_STORE_TYPES, phreportstore: *mut HREPORTSTORE) -> ::windows::core::HRESULT; + } + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + WerStoreOpen(repstoretype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) +} +#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] +#[inline] +pub unsafe fn WerStorePurge() -> ::windows::core::Result<()> { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WerStorePurge() -> ::windows::core::HRESULT; + } + WerStorePurge().ok() +} +#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn WerStoreQueryReportMetadataV1<'a, P0, P1>(hreportstore: P0, pszreportkey: P1) -> ::windows::core::Result +where + P0: ::std::convert::Into, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WerStoreQueryReportMetadataV1(hreportstore: HREPORTSTORE, pszreportkey: ::windows::core::PCWSTR, preportmetadata: *mut WER_REPORT_METADATA_V1) -> ::windows::core::HRESULT; + } + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + WerStoreQueryReportMetadataV1(hreportstore.into(), pszreportkey.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) +} +#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn WerStoreQueryReportMetadataV2<'a, P0, P1>(hreportstore: P0, pszreportkey: P1) -> ::windows::core::Result +where + P0: ::std::convert::Into, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WerStoreQueryReportMetadataV2(hreportstore: HREPORTSTORE, pszreportkey: ::windows::core::PCWSTR, preportmetadata: *mut WER_REPORT_METADATA_V2) -> ::windows::core::HRESULT; + } + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + WerStoreQueryReportMetadataV2(hreportstore.into(), pszreportkey.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) +} +#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn WerStoreQueryReportMetadataV3<'a, P0, P1>(hreportstore: P0, pszreportkey: P1) -> ::windows::core::Result +where + P0: ::std::convert::Into, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WerStoreQueryReportMetadataV3(hreportstore: HREPORTSTORE, pszreportkey: ::windows::core::PCWSTR, preportmetadata: *mut WER_REPORT_METADATA_V3) -> ::windows::core::HRESULT; + } + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + WerStoreQueryReportMetadataV3(hreportstore.into(), pszreportkey.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) +} +#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] +#[inline] +pub unsafe fn WerStoreUploadReport<'a, P0, P1>(hreportstore: P0, pszreportkey: P1, dwflags: u32) -> ::windows::core::Result +where + P0: ::std::convert::Into, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WerStoreUploadReport(hreportstore: HREPORTSTORE, pszreportkey: ::windows::core::PCWSTR, dwflags: u32, psubmitresult: *mut WER_SUBMIT_RESULT) -> ::windows::core::HRESULT; + } + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + WerStoreUploadReport(hreportstore.into(), pszreportkey.into(), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) +} +#[doc = "*Required features: `\"Win32_System_ErrorReporting\"`*"] +#[inline] pub unsafe fn WerUnregisterAdditionalProcess(processid: u32) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { diff --git a/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs index 41eedf4247..ab06ecc834 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs @@ -1,47 +1,5 @@ #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] #[inline] -pub unsafe fn GetMemoryBlockCacheLimit(vmsavedstatedumphandle: *mut ::core::ffi::c_void, memoryblockcachelimit: &mut u64) -> ::windows::core::Result<()> { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn GetMemoryBlockCacheLimit(vmsavedstatedumphandle: *mut ::core::ffi::c_void, memoryblockcachelimit: *mut u64) -> ::windows::core::HRESULT; - } - GetMemoryBlockCacheLimit(::core::mem::transmute(vmsavedstatedumphandle), ::core::mem::transmute(memoryblockcachelimit)).ok() -} -#[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] -#[inline] -pub unsafe fn SetSavedStateSymbolProviderDebugInfoCallback(vmsavedstatedumphandle: *mut ::core::ffi::c_void, callback: GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK) -> ::windows::core::Result<()> { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn SetSavedStateSymbolProviderDebugInfoCallback(vmsavedstatedumphandle: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; - } - SetSavedStateSymbolProviderDebugInfoCallback(::core::mem::transmute(vmsavedstatedumphandle), ::core::mem::transmute(callback)).ok() -} -#[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] -#[inline] -pub unsafe fn WHvCancelPartitionMigration<'a, P0>(partition: P0) -> ::windows::core::Result<()> -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WHvCancelPartitionMigration(partition: WHV_PARTITION_HANDLE) -> ::windows::core::HRESULT; - } - WHvCancelPartitionMigration(partition.into()).ok() -} -#[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] -#[inline] -pub unsafe fn WHvCompletePartitionMigration<'a, P0>(partition: P0) -> ::windows::core::Result<()> -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WHvCompletePartitionMigration(partition: WHV_PARTITION_HANDLE) -> ::windows::core::HRESULT; - } - WHvCompletePartitionMigration(partition.into()).ok() -} -#[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] -#[inline] pub unsafe fn ApplyGuestMemoryFix(vmsavedstatedumphandle: *mut ::core::ffi::c_void, vpid: u32, virtualaddress: u64, fixbuffer: *const ::core::ffi::c_void, fixbuffersize: u32) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -187,6 +145,15 @@ pub unsafe fn GetGuestRawSavedMemorySize(vmsavedstatedumphandle: *mut ::core::ff } GetGuestRawSavedMemorySize(::core::mem::transmute(vmsavedstatedumphandle), ::core::mem::transmute(guestrawsavedmemorysize)).ok() } +#[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] +#[inline] +pub unsafe fn GetMemoryBlockCacheLimit(vmsavedstatedumphandle: *mut ::core::ffi::c_void, memoryblockcachelimit: &mut u64) -> ::windows::core::Result<()> { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn GetMemoryBlockCacheLimit(vmsavedstatedumphandle: *mut ::core::ffi::c_void, memoryblockcachelimit: *mut u64) -> ::windows::core::HRESULT; + } + GetMemoryBlockCacheLimit(::core::mem::transmute(vmsavedstatedumphandle), ::core::mem::transmute(memoryblockcachelimit)).ok() +} #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -587,6 +554,15 @@ pub unsafe fn SetMemoryBlockCacheLimit(vmsavedstatedumphandle: *mut ::core::ffi: } SetMemoryBlockCacheLimit(::core::mem::transmute(vmsavedstatedumphandle), memoryblockcachelimit).ok() } +#[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] +#[inline] +pub unsafe fn SetSavedStateSymbolProviderDebugInfoCallback(vmsavedstatedumphandle: *mut ::core::ffi::c_void, callback: GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK) -> ::windows::core::Result<()> { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn SetSavedStateSymbolProviderDebugInfoCallback(vmsavedstatedumphandle: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; + } + SetSavedStateSymbolProviderDebugInfoCallback(::core::mem::transmute(vmsavedstatedumphandle), ::core::mem::transmute(callback)).ok() +} #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -626,6 +602,18 @@ pub unsafe fn WHvAllocateVpciResource(providerid: ::core::option::Option<&::wind } #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] #[inline] +pub unsafe fn WHvCancelPartitionMigration<'a, P0>(partition: P0) -> ::windows::core::Result<()> +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WHvCancelPartitionMigration(partition: WHV_PARTITION_HANDLE) -> ::windows::core::HRESULT; + } + WHvCancelPartitionMigration(partition.into()).ok() +} +#[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] +#[inline] pub unsafe fn WHvCancelRunVirtualProcessor<'a, P0>(partition: P0, vpindex: u32, flags: u32) -> ::windows::core::Result<()> where P0: ::std::convert::Into, @@ -636,6 +624,18 @@ where } WHvCancelRunVirtualProcessor(partition.into(), vpindex, flags).ok() } +#[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] +#[inline] +pub unsafe fn WHvCompletePartitionMigration<'a, P0>(partition: P0) -> ::windows::core::Result<()> +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WHvCompletePartitionMigration(partition: WHV_PARTITION_HANDLE) -> ::windows::core::HRESULT; + } + WHvCompletePartitionMigration(partition.into()).ok() +} #[doc = "*Required features: `\"Win32_System_Hypervisor\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -2262,8 +2262,6 @@ pub const WHvCacheTypeWriteCombining: WHV_CACHE_TYPE = WHV_CACHE_TYPE(1i32); #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] pub const WHvCacheTypeWriteThrough: WHV_CACHE_TYPE = WHV_CACHE_TYPE(4i32); #[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] -pub const WHvCacheTypeWriteProtected: WHV_CACHE_TYPE = WHV_CACHE_TYPE(5i32); -#[doc = "*Required features: `\"Win32_System_Hypervisor\"`*"] pub const WHvCacheTypeWriteBack: WHV_CACHE_TYPE = WHV_CACHE_TYPE(6i32); impl ::core::marker::Copy for WHV_CACHE_TYPE {} impl ::core::clone::Clone for WHV_CACHE_TYPE { 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 a259bfe7fa..4ce0a521c2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Ioctl/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Ioctl/mod.rs @@ -2394,6 +2394,35 @@ impl ::core::fmt::Debug for DETECTION_TYPE { #[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE(pub i32); +#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] +pub const TCCollectionBugCheck: DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE = DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE(1i32); +#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] +pub const TCCollectionApplicationRequested: DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE = DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE(2i32); +#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] +pub const TCCollectionDeviceRequested: DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE = DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE(3i32); +impl ::core::marker::Copy for DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE {} +impl ::core::clone::Clone for DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE { + type Abi = Self; +} +impl ::core::fmt::Debug for DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE(pub i32); #[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] pub const DeviceInternalStatusDataRequestTypeUndefined: DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE(0i32); @@ -5440,35 +5469,6 @@ impl ::core::fmt::Debug for WRITE_THROUGH { f.debug_tuple("WRITE_THROUGH").field(&self.0).finish() } } -#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _DEVICEDUMP_COLLECTION_TYPE(pub i32); -#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] -pub const TCCollectionBugCheck: _DEVICEDUMP_COLLECTION_TYPE = _DEVICEDUMP_COLLECTION_TYPE(1i32); -#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] -pub const TCCollectionApplicationRequested: _DEVICEDUMP_COLLECTION_TYPE = _DEVICEDUMP_COLLECTION_TYPE(2i32); -#[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] -pub const TCCollectionDeviceRequested: _DEVICEDUMP_COLLECTION_TYPE = _DEVICEDUMP_COLLECTION_TYPE(3i32); -impl ::core::marker::Copy for _DEVICEDUMP_COLLECTION_TYPE {} -impl ::core::clone::Clone for _DEVICEDUMP_COLLECTION_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _DEVICEDUMP_COLLECTION_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _DEVICEDUMP_COLLECTION_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for _DEVICEDUMP_COLLECTION_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_DEVICEDUMP_COLLECTION_TYPE").field(&self.0).finish() - } -} #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ioctl\"`*"] pub struct ASYNC_DUPLICATE_EXTENTS_STATUS { @@ -11418,7 +11418,7 @@ pub struct FILE_STORAGE_TIER { pub Id: ::windows::core::GUID, pub Name: [u16; 256], pub Description: [u16; 256], - pub Flags: FILE_STORAGE_TIER_FLAGS, + pub Flags: u64, pub ProvisionedCapacity: u64, pub MediaType: FILE_STORAGE_TIER_MEDIA_TYPE, pub Class: FILE_STORAGE_TIER_CLASS, diff --git a/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs b/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs index 0af0b4ef56..dd0f866acb 100644 --- a/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs @@ -1300,42 +1300,6 @@ impl ::core::default::Default for JOBOBJECT_IO_RATE_CONTROL_INFORMATION { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_JobObjects\"`*"] -pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE { - pub MaxIops: i64, - pub MaxBandwidth: i64, - pub ReservationIops: i64, - pub VolumeName: ::windows::core::PWSTR, - pub BaseIoSize: u32, - pub ControlFlags: JOB_OBJECT_IO_RATE_CONTROL_FLAGS, - pub VolumeNameLength: u16, -} -impl ::core::marker::Copy for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE {} -impl ::core::clone::Clone for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE").field("MaxIops", &self.MaxIops).field("MaxBandwidth", &self.MaxBandwidth).field("ReservationIops", &self.ReservationIops).field("VolumeName", &self.VolumeName).field("BaseIoSize", &self.BaseIoSize).field("ControlFlags", &self.ControlFlags).field("VolumeNameLength", &self.VolumeNameLength).finish() - } -} -unsafe impl ::windows::core::Abi for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE {} -impl ::core::default::Default for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_JobObjects\"`*"] pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V2 { pub MaxIops: i64, pub MaxBandwidth: i64, diff --git a/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs index 7fd9e800ca..35a45a7e1f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs @@ -797,7 +797,7 @@ impl IDispatchEx_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemServices"))] pub trait IDropSource_Impl: Sized { fn QueryContinueDrag(&self, fescapepressed: super::super::Foundation::BOOL, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS) -> ::windows::core::Result<()>; - fn GiveFeedback(&self, dweffect: u32) -> ::windows::core::Result<()>; + fn GiveFeedback(&self, dweffect: DROPEFFECT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemServices"))] impl ::windows::core::RuntimeName for IDropSource {} @@ -809,7 +809,7 @@ impl IDropSource_Vtbl { let this = (*this).get_impl(); this.QueryContinueDrag(::core::mem::transmute_copy(&fescapepressed), ::core::mem::transmute_copy(&grfkeystate)).into() } - unsafe extern "system" fn GiveFeedback, Impl: IDropSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dweffect: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GiveFeedback, Impl: IDropSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dweffect: DROPEFFECT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GiveFeedback(::core::mem::transmute_copy(&dweffect)).into() @@ -856,22 +856,22 @@ impl IDropSourceNotify_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] pub trait IDropTarget_Impl: Sized { - fn DragEnter(&self, pdataobj: &::core::option::Option, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: &super::super::Foundation::POINTL, pdweffect: *mut u32) -> ::windows::core::Result<()>; - fn DragOver(&self, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: &super::super::Foundation::POINTL, pdweffect: *mut u32) -> ::windows::core::Result<()>; + fn DragEnter(&self, pdataobj: &::core::option::Option, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: &super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> ::windows::core::Result<()>; + fn DragOver(&self, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: &super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> ::windows::core::Result<()>; fn DragLeave(&self) -> ::windows::core::Result<()>; - fn Drop(&self, pdataobj: &::core::option::Option, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: &super::super::Foundation::POINTL, pdweffect: *mut u32) -> ::windows::core::Result<()>; + fn Drop(&self, pdataobj: &::core::option::Option, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: &super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] impl ::windows::core::RuntimeName for IDropTarget {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] impl IDropTarget_Vtbl { pub const fn new, Impl: IDropTarget_Impl, const OFFSET: isize>() -> IDropTarget_Vtbl { - unsafe extern "system" fn DragEnter, Impl: IDropTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdataobj: *mut ::core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn DragEnter, Impl: IDropTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdataobj: *mut ::core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DragEnter(::core::mem::transmute(&pdataobj), ::core::mem::transmute_copy(&grfkeystate), ::core::mem::transmute(&pt), ::core::mem::transmute_copy(&pdweffect)).into() } - unsafe extern "system" fn DragOver, Impl: IDropTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn DragOver, Impl: IDropTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DragOver(::core::mem::transmute_copy(&grfkeystate), ::core::mem::transmute(&pt), ::core::mem::transmute_copy(&pdweffect)).into() @@ -881,7 +881,7 @@ impl IDropTarget_Vtbl { let this = (*this).get_impl(); this.DragLeave().into() } - unsafe extern "system" fn Drop, Impl: IDropTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdataobj: *mut ::core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Drop, Impl: IDropTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdataobj: *mut ::core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Drop(::core::mem::transmute(&pdataobj), ::core::mem::transmute_copy(&grfkeystate), ::core::mem::transmute(&pt), ::core::mem::transmute_copy(&pdweffect)).into() @@ -934,13 +934,16 @@ impl IEnterpriseDropTarget_Vtbl { iid == &::IID } } +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub trait IEnumOLEVERB_Impl: Sized { fn Next(&self, celt: u32, rgelt: *mut OLEVERB, pceltfetched: *mut u32) -> ::windows::core::Result<()>; fn Skip(&self, celt: u32) -> ::windows::core::Result<()>; fn Reset(&self) -> ::windows::core::Result<()>; fn Clone(&self) -> ::windows::core::Result; } +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::windows::core::RuntimeName for IEnumOLEVERB {} +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IEnumOLEVERB_Vtbl { pub const fn new, Impl: IEnumOLEVERB_Impl, const OFFSET: isize>() -> IEnumOLEVERB_Vtbl { unsafe extern "system" fn Next, Impl: IEnumOLEVERB_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32, rgelt: *mut OLEVERB, pceltfetched: *mut u32) -> ::windows::core::HRESULT { @@ -1675,7 +1678,7 @@ impl IOleCacheControl_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub trait IOleClientSite_Impl: Sized { fn SaveObject(&self) -> ::windows::core::Result<()>; - fn GetMoniker(&self, dwassign: u32, dwwhichmoniker: u32) -> ::windows::core::Result; + fn GetMoniker(&self, dwassign: OLEGETMONIKER, dwwhichmoniker: OLEWHICHMK) -> ::windows::core::Result; fn GetContainer(&self) -> ::windows::core::Result; fn ShowObject(&self) -> ::windows::core::Result<()>; fn OnShowWindow(&self, fshow: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; @@ -1691,7 +1694,7 @@ impl IOleClientSite_Vtbl { let this = (*this).get_impl(); this.SaveObject().into() } - unsafe extern "system" fn GetMoniker, Impl: IOleClientSite_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwassign: u32, dwwhichmoniker: u32, ppmk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMoniker, Impl: IOleClientSite_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwassign: OLEGETMONIKER, dwwhichmoniker: OLEWHICHMK, ppmk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMoniker(::core::mem::transmute_copy(&dwassign), ::core::mem::transmute_copy(&dwwhichmoniker)) { @@ -1774,7 +1777,7 @@ impl IOleCommandTarget_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub trait IOleContainer_Impl: Sized + IParseDisplayName_Impl { - fn EnumObjects(&self, grfflags: u32) -> ::windows::core::Result; + fn EnumObjects(&self, grfflags: OLECONTF) -> ::windows::core::Result; fn LockContainer(&self, flock: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] @@ -1782,7 +1785,7 @@ impl ::windows::core::RuntimeName for IOleContainer {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl IOleContainer_Vtbl { pub const fn new, Impl: IOleContainer_Impl, const OFFSET: isize>() -> IOleContainer_Vtbl { - unsafe extern "system" fn EnumObjects, Impl: IOleContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, grfflags: u32, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumObjects, Impl: IOleContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, grfflags: OLECONTF, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumObjects(::core::mem::transmute_copy(&grfflags)) { @@ -1858,7 +1861,7 @@ pub trait IOleControlSite_Impl: Sized { fn LockInPlaceActive(&self, flock: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn GetExtendedControl(&self) -> ::windows::core::Result; fn TransformCoords(&self, pptlhimetric: *mut super::super::Foundation::POINTL, pptfcontainer: *mut POINTF, dwflags: XFORMCOORDS) -> ::windows::core::Result<()>; - fn TranslateAccelerator(&self, pmsg: *const super::super::UI::WindowsAndMessaging::MSG, grfmodifiers: u32) -> ::windows::core::Result<()>; + fn TranslateAccelerator(&self, pmsg: *const super::super::UI::WindowsAndMessaging::MSG, grfmodifiers: KEYMODIFIERS) -> ::windows::core::Result<()>; fn OnFocus(&self, fgotfocus: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn ShowPropertyFrame(&self) -> ::windows::core::Result<()>; } @@ -1893,7 +1896,7 @@ impl IOleControlSite_Vtbl { let this = (*this).get_impl(); this.TransformCoords(::core::mem::transmute_copy(&pptlhimetric), ::core::mem::transmute_copy(&pptfcontainer), ::core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn TranslateAccelerator, Impl: IOleControlSite_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pmsg: *const super::super::UI::WindowsAndMessaging::MSG, grfmodifiers: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn TranslateAccelerator, Impl: IOleControlSite_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pmsg: *const super::super::UI::WindowsAndMessaging::MSG, grfmodifiers: KEYMODIFIERS) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.TranslateAccelerator(::core::mem::transmute_copy(&pmsg), ::core::mem::transmute_copy(&grfmodifiers)).into() @@ -2173,7 +2176,7 @@ impl IOleInPlaceActiveObject_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub trait IOleInPlaceFrame_Impl: Sized + IOleWindow_Impl + IOleInPlaceUIWindow_Impl { - fn InsertMenus(&self, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *mut OleMenuGroupWidths) -> ::windows::core::Result<()>; + fn InsertMenus(&self, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *mut OLEMENUGROUPWIDTHS) -> ::windows::core::Result<()>; fn SetMenu(&self, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, holemenu: isize, hwndactiveobject: super::super::Foundation::HWND) -> ::windows::core::Result<()>; fn RemoveMenus(&self, hmenushared: super::super::UI::WindowsAndMessaging::HMENU) -> ::windows::core::Result<()>; fn SetStatusText(&self, pszstatustext: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; @@ -2185,7 +2188,7 @@ impl ::windows::core::RuntimeName for IOleInPlaceFrame {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl IOleInPlaceFrame_Vtbl { pub const fn new, Impl: IOleInPlaceFrame_Impl, const OFFSET: isize>() -> IOleInPlaceFrame_Vtbl { - unsafe extern "system" fn InsertMenus, Impl: IOleInPlaceFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *mut OleMenuGroupWidths) -> ::windows::core::HRESULT { + unsafe extern "system" fn InsertMenus, Impl: IOleInPlaceFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *mut OLEMENUGROUPWIDTHS) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InsertMenus(::core::mem::transmute_copy(&hmenushared), ::core::mem::transmute_copy(&lpmenuwidths)).into() @@ -2320,7 +2323,7 @@ pub trait IOleInPlaceSite_Impl: Sized + IOleWindow_Impl { fn CanInPlaceActivate(&self) -> ::windows::core::Result<()>; fn OnInPlaceActivate(&self) -> ::windows::core::Result<()>; fn OnUIActivate(&self) -> ::windows::core::Result<()>; - fn GetWindowContext(&self, ppframe: *mut ::core::option::Option, ppdoc: *mut ::core::option::Option, lprcposrect: *mut super::super::Foundation::RECT, lprccliprect: *mut super::super::Foundation::RECT, lpframeinfo: *mut OIFI) -> ::windows::core::Result<()>; + fn GetWindowContext(&self, ppframe: *mut ::core::option::Option, ppdoc: *mut ::core::option::Option, lprcposrect: *mut super::super::Foundation::RECT, lprccliprect: *mut super::super::Foundation::RECT, lpframeinfo: *mut OLEINPLACEFRAMEINFO) -> ::windows::core::Result<()>; fn Scroll(&self, scrollextant: &super::super::Foundation::SIZE) -> ::windows::core::Result<()>; fn OnUIDeactivate(&self, fundoable: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn OnInPlaceDeactivate(&self) -> ::windows::core::Result<()>; @@ -2348,7 +2351,7 @@ impl IOleInPlaceSite_Vtbl { let this = (*this).get_impl(); this.OnUIActivate().into() } - unsafe extern "system" fn GetWindowContext, Impl: IOleInPlaceSite_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppframe: *mut *mut ::core::ffi::c_void, ppdoc: *mut *mut ::core::ffi::c_void, lprcposrect: *mut super::super::Foundation::RECT, lprccliprect: *mut super::super::Foundation::RECT, lpframeinfo: *mut OIFI) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetWindowContext, Impl: IOleInPlaceSite_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppframe: *mut *mut ::core::ffi::c_void, ppdoc: *mut *mut ::core::ffi::c_void, lprcposrect: *mut super::super::Foundation::RECT, lprccliprect: *mut super::super::Foundation::RECT, lpframeinfo: *mut OLEINPLACEFRAMEINFO) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetWindowContext(::core::mem::transmute_copy(&ppframe), ::core::mem::transmute_copy(&ppdoc), ::core::mem::transmute_copy(&lprcposrect), ::core::mem::transmute_copy(&lprccliprect), ::core::mem::transmute_copy(&lpframeinfo)).into() @@ -2759,9 +2762,9 @@ pub trait IOleObject_Impl: Sized { fn SetClientSite(&self, pclientsite: &::core::option::Option) -> ::windows::core::Result<()>; fn GetClientSite(&self) -> ::windows::core::Result; fn SetHostNames(&self, szcontainerapp: &::windows::core::PCWSTR, szcontainerobj: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn Close(&self, dwsaveoption: u32) -> ::windows::core::Result<()>; - fn SetMoniker(&self, dwwhichmoniker: u32, pmk: &::core::option::Option) -> ::windows::core::Result<()>; - fn GetMoniker(&self, dwassign: u32, dwwhichmoniker: u32) -> ::windows::core::Result; + fn Close(&self, dwsaveoption: OLECLOSE) -> ::windows::core::Result<()>; + fn SetMoniker(&self, dwwhichmoniker: OLEWHICHMK, pmk: &::core::option::Option) -> ::windows::core::Result<()>; + fn GetMoniker(&self, dwassign: OLEGETMONIKER, dwwhichmoniker: OLEWHICHMK) -> ::windows::core::Result; fn InitFromData(&self, pdataobject: &::core::option::Option, fcreation: super::super::Foundation::BOOL, dwreserved: u32) -> ::windows::core::Result<()>; fn GetClipboardData(&self, dwreserved: u32) -> ::windows::core::Result; fn DoVerb(&self, iverb: i32, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, pactivesite: &::core::option::Option, lindex: i32, hwndparent: super::super::Foundation::HWND, lprcposrect: *const super::super::Foundation::RECT) -> ::windows::core::Result<()>; @@ -2769,13 +2772,13 @@ pub trait IOleObject_Impl: Sized { fn Update(&self) -> ::windows::core::Result<()>; fn IsUpToDate(&self) -> ::windows::core::Result<()>; fn GetUserClassID(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn GetUserType(&self, dwformoftype: u32) -> ::windows::core::Result<::windows::core::PWSTR>; + fn GetUserType(&self, dwformoftype: USERCLASSTYPE) -> ::windows::core::Result<::windows::core::PWSTR>; fn SetExtent(&self, dwdrawaspect: u32, psizel: *const super::super::Foundation::SIZE) -> ::windows::core::Result<()>; fn GetExtent(&self, dwdrawaspect: u32) -> ::windows::core::Result; fn Advise(&self, padvsink: &::core::option::Option) -> ::windows::core::Result; fn Unadvise(&self, dwconnection: u32) -> ::windows::core::Result<()>; fn EnumAdvise(&self) -> ::windows::core::Result; - fn GetMiscStatus(&self, dwaspect: u32) -> ::windows::core::Result; + fn GetMiscStatus(&self, dwaspect: u32) -> ::windows::core::Result; fn SetColorScheme(&self, plogpal: *const super::super::Graphics::Gdi::LOGPALETTE) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] @@ -2804,17 +2807,17 @@ impl IOleObject_Vtbl { let this = (*this).get_impl(); this.SetHostNames(::core::mem::transmute(&szcontainerapp), ::core::mem::transmute(&szcontainerobj)).into() } - unsafe extern "system" fn Close, Impl: IOleObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwsaveoption: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Close, Impl: IOleObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwsaveoption: OLECLOSE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Close(::core::mem::transmute_copy(&dwsaveoption)).into() } - unsafe extern "system" fn SetMoniker, Impl: IOleObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwwhichmoniker: u32, pmk: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMoniker, Impl: IOleObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwwhichmoniker: OLEWHICHMK, pmk: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMoniker(::core::mem::transmute_copy(&dwwhichmoniker), ::core::mem::transmute(&pmk)).into() } - unsafe extern "system" fn GetMoniker, Impl: IOleObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwassign: u32, dwwhichmoniker: u32, ppmk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMoniker, Impl: IOleObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwassign: OLEGETMONIKER, dwwhichmoniker: OLEWHICHMK, ppmk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMoniker(::core::mem::transmute_copy(&dwassign), ::core::mem::transmute_copy(&dwwhichmoniker)) { @@ -2878,7 +2881,7 @@ impl IOleObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetUserType, Impl: IOleObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwformoftype: u32, pszusertype: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetUserType, Impl: IOleObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwformoftype: USERCLASSTYPE, pszusertype: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetUserType(::core::mem::transmute_copy(&dwformoftype)) { @@ -2932,7 +2935,7 @@ impl IOleObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetMiscStatus, Impl: IOleObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwaspect: u32, pdwstatus: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMiscStatus, Impl: IOleObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwaspect: u32, pdwstatus: *mut OLEMISC) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMiscStatus(::core::mem::transmute_copy(&dwaspect)) { @@ -4071,7 +4074,7 @@ impl IPictureDisp_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IPointerInactive_Impl: Sized { - fn GetActivationPolicy(&self) -> ::windows::core::Result; + fn GetActivationPolicy(&self) -> ::windows::core::Result; fn OnInactiveMouseMove(&self, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, grfkeystate: u32) -> ::windows::core::Result<()>; fn OnInactiveSetCursor(&self, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, dwmousemsg: u32, fsetalways: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; } @@ -4080,7 +4083,7 @@ impl ::windows::core::RuntimeName for IPointerInactive {} #[cfg(feature = "Win32_Foundation")] impl IPointerInactive_Vtbl { pub const fn new, Impl: IPointerInactive_Impl, const OFFSET: isize>() -> IPointerInactive_Vtbl { - unsafe extern "system" fn GetActivationPolicy, Impl: IPointerInactive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdwpolicy: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetActivationPolicy, Impl: IPointerInactive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdwpolicy: *mut POINTERINACTIVE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetActivationPolicy() { @@ -4591,8 +4594,8 @@ pub trait IRecordInfo_Impl: Sized { fn GetTypeInfo(&self) -> ::windows::core::Result; fn GetField(&self, pvdata: *const ::core::ffi::c_void, szfieldname: &::windows::core::PCWSTR) -> ::windows::core::Result; fn GetFieldNoCopy(&self, pvdata: *const ::core::ffi::c_void, szfieldname: &::windows::core::PCWSTR, pvarfield: *mut super::Com::VARIANT, ppvdatacarray: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; - fn PutField(&self, wflags: u32, pvdata: *mut ::core::ffi::c_void, szfieldname: &::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn PutFieldNoCopy(&self, wflags: u32, pvdata: *mut ::core::ffi::c_void, szfieldname: &::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::Result<()>; + fn PutField(&self, wflags: super::Com::INVOKEKIND, pvdata: *mut ::core::ffi::c_void, szfieldname: &::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::Result<()>; + fn PutFieldNoCopy(&self, wflags: super::Com::INVOKEKIND, pvdata: *mut ::core::ffi::c_void, szfieldname: &::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::Result<()>; fn GetFieldNames(&self, pcnames: *mut u32, rgbstrnames: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsMatchingType(&self, precordinfo: &::core::option::Option) -> super::super::Foundation::BOOL; fn RecordCreate(&self) -> *mut ::core::ffi::c_void; @@ -4679,12 +4682,12 @@ impl IRecordInfo_Vtbl { let this = (*this).get_impl(); this.GetFieldNoCopy(::core::mem::transmute_copy(&pvdata), ::core::mem::transmute(&szfieldname), ::core::mem::transmute_copy(&pvarfield), ::core::mem::transmute_copy(&ppvdatacarray)).into() } - unsafe extern "system" fn PutField, Impl: IRecordInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wflags: u32, pvdata: *mut ::core::ffi::c_void, szfieldname: ::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn PutField, Impl: IRecordInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wflags: super::Com::INVOKEKIND, pvdata: *mut ::core::ffi::c_void, szfieldname: ::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PutField(::core::mem::transmute_copy(&wflags), ::core::mem::transmute_copy(&pvdata), ::core::mem::transmute(&szfieldname), ::core::mem::transmute_copy(&pvarfield)).into() } - unsafe extern "system" fn PutFieldNoCopy, Impl: IRecordInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wflags: u32, pvdata: *mut ::core::ffi::c_void, szfieldname: ::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn PutFieldNoCopy, Impl: IRecordInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wflags: super::Com::INVOKEKIND, pvdata: *mut ::core::ffi::c_void, szfieldname: ::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PutFieldNoCopy(::core::mem::transmute_copy(&wflags), ::core::mem::transmute_copy(&pvdata), ::core::mem::transmute(&szfieldname), ::core::mem::transmute_copy(&pvarfield)).into() @@ -5056,7 +5059,7 @@ pub trait IViewObjectEx_Impl: Sized + IViewObject_Impl + IViewObject2_Impl { fn GetViewStatus(&self) -> ::windows::core::Result; fn QueryHitPoint(&self, dwaspect: u32, prectbounds: *const super::super::Foundation::RECT, ptlloc: &super::super::Foundation::POINT, lclosehint: i32) -> ::windows::core::Result; fn QueryHitRect(&self, dwaspect: u32, prectbounds: *const super::super::Foundation::RECT, prectloc: *const super::super::Foundation::RECT, lclosehint: i32) -> ::windows::core::Result; - fn GetNaturalExtent(&self, dwaspect: super::Com::DVASPECT, lindex: i32, ptd: *const super::Com::DVTARGETDEVICE, hictargetdev: super::super::Graphics::Gdi::HDC, pextentinfo: *const ExtentInfo) -> ::windows::core::Result; + fn GetNaturalExtent(&self, dwaspect: super::Com::DVASPECT, lindex: i32, ptd: *const super::Com::DVTARGETDEVICE, hictargetdev: super::super::Graphics::Gdi::HDC, pextentinfo: *const DVEXTENTINFO) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl ::windows::core::RuntimeName for IViewObjectEx {} @@ -5107,7 +5110,7 @@ impl IViewObjectEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetNaturalExtent, Impl: IViewObjectEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwaspect: super::Com::DVASPECT, lindex: i32, ptd: *const super::Com::DVTARGETDEVICE, hictargetdev: super::super::Graphics::Gdi::HDC, pextentinfo: *const ExtentInfo, psizel: *mut super::super::Foundation::SIZE) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNaturalExtent, Impl: IViewObjectEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwaspect: super::Com::DVASPECT, lindex: i32, ptd: *const super::Com::DVTARGETDEVICE, hictargetdev: super::super::Graphics::Gdi::HDC, pextentinfo: *const DVEXTENTINFO, psizel: *mut super::super::Foundation::SIZE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetNaturalExtent(::core::mem::transmute_copy(&dwaspect), ::core::mem::transmute_copy(&lindex), ::core::mem::transmute_copy(&ptd), ::core::mem::transmute_copy(&hictargetdev), ::core::mem::transmute_copy(&pextentinfo)) { diff --git a/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs index c01a59755f..7c5b3046cd 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs @@ -293,7 +293,7 @@ pub unsafe fn HRGN_UserSize64(param0: &u32, param1: u32, param2: &super::super:: #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn HRGN_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut super::super::Graphics::Gdi::HRGN) -> *mut u8 { +pub unsafe fn HRGN_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut super::super::Graphics::Gdi::HRGN) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HRGN_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::Graphics::Gdi::HRGN) -> *mut u8; @@ -303,7 +303,7 @@ pub unsafe fn HRGN_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut s #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn HRGN_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut super::super::Graphics::Gdi::HRGN) -> *mut u8 { +pub unsafe fn HRGN_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut super::super::Graphics::Gdi::HRGN) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HRGN_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::Graphics::Gdi::HRGN) -> *mut u8; @@ -638,13 +638,13 @@ where #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn OleCreateMenuDescriptor<'a, P0>(hmenucombined: P0, lpmenuwidths: &OleMenuGroupWidths) -> isize +pub unsafe fn OleCreateMenuDescriptor<'a, P0>(hmenucombined: P0, lpmenuwidths: &OLEMENUGROUPWIDTHS) -> isize where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn OleCreateMenuDescriptor(hmenucombined: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *const OleMenuGroupWidths) -> isize; + fn OleCreateMenuDescriptor(hmenucombined: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *const OLEMENUGROUPWIDTHS) -> isize; } OleCreateMenuDescriptor(hmenucombined.into(), ::core::mem::transmute(lpmenuwidths)) } @@ -1066,10 +1066,10 @@ pub unsafe fn OleRegGetMiscStatus(clsid: &::windows::core::GUID, dwaspect: u32) } #[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn OleRegGetUserType(clsid: &::windows::core::GUID, dwformoftype: u32) -> ::windows::core::Result<::windows::core::PWSTR> { +pub unsafe fn OleRegGetUserType(clsid: &::windows::core::GUID, dwformoftype: USERCLASSTYPE) -> ::windows::core::Result<::windows::core::PWSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn OleRegGetUserType(clsid: *const ::windows::core::GUID, dwformoftype: u32, pszusertype: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT; + fn OleRegGetUserType(clsid: *const ::windows::core::GUID, dwformoftype: USERCLASSTYPE, pszusertype: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); OleRegGetUserType(::core::mem::transmute(clsid), dwformoftype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::PWSTR>(result__) @@ -1183,13 +1183,13 @@ where #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] -pub unsafe fn OleTranslateAccelerator<'a, P0>(lpframe: P0, lpframeinfo: &OIFI, lpmsg: &super::super::UI::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> +pub unsafe fn OleTranslateAccelerator<'a, P0>(lpframe: P0, lpframeinfo: &OLEINPLACEFRAMEINFO, lpmsg: &super::super::UI::WindowsAndMessaging::MSG) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IOleInPlaceFrame>>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn OleTranslateAccelerator(lpframe: *mut ::core::ffi::c_void, lpframeinfo: *const OIFI, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT; + fn OleTranslateAccelerator(lpframe: *mut ::core::ffi::c_void, lpframeinfo: *const OLEINPLACEFRAMEINFO, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> ::windows::core::HRESULT; } OleTranslateAccelerator(lpframe.into().abi(), ::core::mem::transmute(lpframeinfo), ::core::mem::transmute(lpmsg)).ok() } @@ -1768,13 +1768,13 @@ pub unsafe fn SafeArrayGetUBound(psa: &super::Com::SAFEARRAY, ndim: u32) -> ::wi #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn SafeArrayGetVartype(psa: &super::Com::SAFEARRAY) -> ::windows::core::Result { +pub unsafe fn SafeArrayGetVartype(psa: &super::Com::SAFEARRAY) -> ::windows::core::Result { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn SafeArrayGetVartype(psa: *const super::Com::SAFEARRAY, pvt: *mut u16) -> ::windows::core::HRESULT; + fn SafeArrayGetVartype(psa: *const super::Com::SAFEARRAY, pvt: *mut super::Com::VARENUM) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - SafeArrayGetVartype(::core::mem::transmute(psa), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + SafeArrayGetVartype(::core::mem::transmute(psa), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6426,7 +6426,7 @@ impl IDropSource { { (::windows::core::Interface::vtable(self).QueryContinueDrag)(::windows::core::Interface::as_raw(self), fescapepressed.into(), grfkeystate).ok() } - pub unsafe fn GiveFeedback(&self, dweffect: u32) -> ::windows::core::Result<()> { + pub unsafe fn GiveFeedback(&self, dweffect: DROPEFFECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GiveFeedback)(::windows::core::Interface::as_raw(self), dweffect).ok() } } @@ -6473,7 +6473,7 @@ pub struct IDropSource_Vtbl { pub QueryContinueDrag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fescapepressed: super::super::Foundation::BOOL, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_SystemServices")))] QueryContinueDrag: usize, - pub GiveFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dweffect: u32) -> ::windows::core::HRESULT, + pub GiveFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dweffect: DROPEFFECT) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[repr(transparent)] @@ -6542,7 +6542,7 @@ pub struct IDropTarget(::windows::core::IUnknown); impl IDropTarget { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_SystemServices\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] - pub unsafe fn DragEnter<'a, P0>(&self, pdataobj: P0, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: &mut u32) -> ::windows::core::Result<()> + pub unsafe fn DragEnter<'a, P0>(&self, pdataobj: P0, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: &mut DROPEFFECT) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDataObject>>, { @@ -6550,7 +6550,7 @@ impl IDropTarget { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_SystemServices\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemServices"))] - pub unsafe fn DragOver(&self, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn DragOver(&self, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: &mut DROPEFFECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DragOver)(::windows::core::Interface::as_raw(self), grfkeystate, ::core::mem::transmute(pt), ::core::mem::transmute(pdweffect)).ok() } pub unsafe fn DragLeave(&self) -> ::windows::core::Result<()> { @@ -6558,7 +6558,7 @@ impl IDropTarget { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_SystemServices\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] - pub unsafe fn Drop<'a, P0>(&self, pdataobj: P0, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: &mut u32) -> ::windows::core::Result<()> + pub unsafe fn Drop<'a, P0>(&self, pdataobj: P0, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: &mut DROPEFFECT) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDataObject>>, { @@ -6605,16 +6605,16 @@ unsafe impl ::windows::core::Interface for IDropTarget { pub struct IDropTarget_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] - pub DragEnter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataobj: *mut ::core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut u32) -> ::windows::core::HRESULT, + pub DragEnter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataobj: *mut ::core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_SystemServices")))] DragEnter: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemServices"))] - pub DragOver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut u32) -> ::windows::core::HRESULT, + pub DragOver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_SystemServices")))] DragOver: usize, pub DragLeave: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] - pub Drop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataobj: *mut ::core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut u32) -> ::windows::core::HRESULT, + pub Drop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataobj: *mut ::core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_SystemServices")))] Drop: usize, } @@ -6684,6 +6684,8 @@ pub struct IEnterpriseDropTarget_Vtbl { #[repr(transparent)] pub struct IEnumOLEVERB(::windows::core::IUnknown); impl IEnumOLEVERB { + #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] + #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub unsafe fn Next(&self, rgelt: &mut [OLEVERB], pceltfetched: ::core::option::Option<&mut u32>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), rgelt.len() as _, ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched)).ok() } @@ -6737,7 +6739,10 @@ unsafe impl ::windows::core::Interface for IEnumOLEVERB { #[doc(hidden)] pub struct IEnumOLEVERB_Vtbl { pub base__: ::windows::core::IUnknownVtbl, + #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, rgelt: *mut OLEVERB, pceltfetched: *mut u32) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] + Next: usize, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -7902,7 +7907,7 @@ impl IOleClientSite { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn GetMoniker(&self, dwassign: u32, dwwhichmoniker: u32) -> ::windows::core::Result { + pub unsafe fn GetMoniker(&self, dwassign: OLEGETMONIKER, dwwhichmoniker: OLEWHICHMK) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetMoniker)(::windows::core::Interface::as_raw(self), dwassign, dwwhichmoniker, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } @@ -7966,7 +7971,7 @@ pub struct IOleClientSite_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub SaveObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub GetMoniker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwassign: u32, dwwhichmoniker: u32, ppmk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetMoniker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwassign: OLEGETMONIKER, dwwhichmoniker: OLEWHICHMK, ppmk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetMoniker: usize, pub GetContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcontainer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -8050,7 +8055,7 @@ impl IOleContainer { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn EnumObjects(&self, grfflags: u32) -> ::windows::core::Result { + pub unsafe fn EnumObjects(&self, grfflags: OLECONTF) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumObjects)(::windows::core::Interface::as_raw(self), grfflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } @@ -8118,7 +8123,7 @@ unsafe impl ::windows::core::Interface for IOleContainer { pub struct IOleContainer_Vtbl { pub base__: IParseDisplayName_Vtbl, #[cfg(feature = "Win32_System_Com")] - pub EnumObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfflags: u32, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub EnumObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfflags: OLECONTF, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnumObjects: usize, #[cfg(feature = "Win32_Foundation")] @@ -8233,7 +8238,7 @@ impl IOleControlSite { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] - pub unsafe fn TranslateAccelerator(&self, pmsg: &super::super::UI::WindowsAndMessaging::MSG, grfmodifiers: u32) -> ::windows::core::Result<()> { + pub unsafe fn TranslateAccelerator(&self, pmsg: &super::super::UI::WindowsAndMessaging::MSG, grfmodifiers: KEYMODIFIERS) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TranslateAccelerator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pmsg), grfmodifiers).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -8301,7 +8306,7 @@ pub struct IOleControlSite_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] TransformCoords: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] - pub TranslateAccelerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmsg: *const super::super::UI::WindowsAndMessaging::MSG, grfmodifiers: u32) -> ::windows::core::HRESULT, + pub TranslateAccelerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmsg: *const super::super::UI::WindowsAndMessaging::MSG, grfmodifiers: KEYMODIFIERS) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] TranslateAccelerator: usize, #[cfg(feature = "Win32_Foundation")] @@ -8759,7 +8764,7 @@ impl IOleInPlaceFrame { } #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub unsafe fn InsertMenus<'a, P0>(&self, hmenushared: P0, lpmenuwidths: &mut OleMenuGroupWidths) -> ::windows::core::Result<()> + pub unsafe fn InsertMenus<'a, P0>(&self, hmenushared: P0, lpmenuwidths: &mut OLEMENUGROUPWIDTHS) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { @@ -8872,7 +8877,7 @@ unsafe impl ::windows::core::Interface for IOleInPlaceFrame { pub struct IOleInPlaceFrame_Vtbl { pub base__: IOleInPlaceUIWindow_Vtbl, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub InsertMenus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *mut OleMenuGroupWidths) -> ::windows::core::HRESULT, + pub InsertMenus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *mut OLEMENUGROUPWIDTHS) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] InsertMenus: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] @@ -9139,7 +9144,7 @@ impl IOleInPlaceSite { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] - pub unsafe fn GetWindowContext(&self, ppframe: &mut ::core::option::Option, ppdoc: &mut ::core::option::Option, lprcposrect: &mut super::super::Foundation::RECT, lprccliprect: &mut super::super::Foundation::RECT, lpframeinfo: &mut OIFI) -> ::windows::core::Result<()> { + pub unsafe fn GetWindowContext(&self, ppframe: &mut ::core::option::Option, ppdoc: &mut ::core::option::Option, lprcposrect: &mut super::super::Foundation::RECT, lprccliprect: &mut super::super::Foundation::RECT, lpframeinfo: &mut OLEINPLACEFRAMEINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetWindowContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppframe), ::core::mem::transmute(ppdoc), ::core::mem::transmute(lprcposrect), ::core::mem::transmute(lprccliprect), ::core::mem::transmute(lpframeinfo)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -9228,7 +9233,7 @@ pub struct IOleInPlaceSite_Vtbl { pub OnInPlaceActivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub OnUIActivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] - pub GetWindowContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppframe: *mut *mut ::core::ffi::c_void, ppdoc: *mut *mut ::core::ffi::c_void, lprcposrect: *mut super::super::Foundation::RECT, lprccliprect: *mut super::super::Foundation::RECT, lpframeinfo: *mut OIFI) -> ::windows::core::HRESULT, + pub GetWindowContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppframe: *mut *mut ::core::ffi::c_void, ppdoc: *mut *mut ::core::ffi::c_void, lprcposrect: *mut super::super::Foundation::RECT, lprccliprect: *mut super::super::Foundation::RECT, lpframeinfo: *mut OLEINPLACEFRAMEINFO) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] GetWindowContext: usize, #[cfg(feature = "Win32_Foundation")] @@ -9276,7 +9281,7 @@ impl IOleInPlaceSiteEx { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] - pub unsafe fn GetWindowContext(&self, ppframe: &mut ::core::option::Option, ppdoc: &mut ::core::option::Option, lprcposrect: &mut super::super::Foundation::RECT, lprccliprect: &mut super::super::Foundation::RECT, lpframeinfo: &mut OIFI) -> ::windows::core::Result<()> { + pub unsafe fn GetWindowContext(&self, ppframe: &mut ::core::option::Option, ppdoc: &mut ::core::option::Option, lprcposrect: &mut super::super::Foundation::RECT, lprccliprect: &mut super::super::Foundation::RECT, lpframeinfo: &mut OLEINPLACEFRAMEINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetWindowContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppframe), ::core::mem::transmute(ppdoc), ::core::mem::transmute(lprcposrect), ::core::mem::transmute(lprccliprect), ::core::mem::transmute(lpframeinfo)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -9431,7 +9436,7 @@ impl IOleInPlaceSiteWindowless { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] - pub unsafe fn GetWindowContext(&self, ppframe: &mut ::core::option::Option, ppdoc: &mut ::core::option::Option, lprcposrect: &mut super::super::Foundation::RECT, lprccliprect: &mut super::super::Foundation::RECT, lpframeinfo: &mut OIFI) -> ::windows::core::Result<()> { + pub unsafe fn GetWindowContext(&self, ppframe: &mut ::core::option::Option, ppdoc: &mut ::core::option::Option, lprcposrect: &mut super::super::Foundation::RECT, lprccliprect: &mut super::super::Foundation::RECT, lpframeinfo: &mut OLEINPLACEFRAMEINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetWindowContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppframe), ::core::mem::transmute(ppdoc), ::core::mem::transmute(lprcposrect), ::core::mem::transmute(lprccliprect), ::core::mem::transmute(lpframeinfo)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -9803,7 +9808,7 @@ impl IOleItemContainer { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn EnumObjects(&self, grfflags: u32) -> ::windows::core::Result { + pub unsafe fn EnumObjects(&self, grfflags: OLECONTF) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumObjects)(::windows::core::Interface::as_raw(self), grfflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } @@ -10069,12 +10074,12 @@ impl IOleObject { { (::windows::core::Interface::vtable(self).SetHostNames)(::windows::core::Interface::as_raw(self), szcontainerapp.into(), szcontainerobj.into()).ok() } - pub unsafe fn Close(&self, dwsaveoption: u32) -> ::windows::core::Result<()> { + pub unsafe fn Close(&self, dwsaveoption: OLECLOSE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Close)(::windows::core::Interface::as_raw(self), dwsaveoption).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn SetMoniker<'a, P0>(&self, dwwhichmoniker: u32, pmk: P0) -> ::windows::core::Result<()> + pub unsafe fn SetMoniker<'a, P0>(&self, dwwhichmoniker: OLEWHICHMK, pmk: P0) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IMoniker>>, { @@ -10082,7 +10087,7 @@ impl IOleObject { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn GetMoniker(&self, dwassign: u32, dwwhichmoniker: u32) -> ::windows::core::Result { + pub unsafe fn GetMoniker(&self, dwassign: OLEGETMONIKER, dwwhichmoniker: OLEWHICHMK) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetMoniker)(::windows::core::Interface::as_raw(self), dwassign, dwwhichmoniker, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } @@ -10124,7 +10129,7 @@ impl IOleObject { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetUserClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - pub unsafe fn GetUserType(&self, dwformoftype: u32) -> ::windows::core::Result<::windows::core::PWSTR> { + pub unsafe fn GetUserType(&self, dwformoftype: USERCLASSTYPE) -> ::windows::core::Result<::windows::core::PWSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetUserType)(::windows::core::Interface::as_raw(self), dwformoftype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::PWSTR>(result__) } @@ -10157,9 +10162,9 @@ impl IOleObject { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumAdvise)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn GetMiscStatus(&self, dwaspect: u32) -> ::windows::core::Result { + pub unsafe fn GetMiscStatus(&self, dwaspect: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMiscStatus)(::windows::core::Interface::as_raw(self), dwaspect, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMiscStatus)(::windows::core::Interface::as_raw(self), dwaspect, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -10209,13 +10214,13 @@ pub struct IOleObject_Vtbl { pub SetClientSite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclientsite: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetClientSite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppclientsite: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetHostNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szcontainerapp: ::windows::core::PCWSTR, szcontainerobj: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsaveoption: u32) -> ::windows::core::HRESULT, + pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsaveoption: OLECLOSE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub SetMoniker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwwhichmoniker: u32, pmk: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub SetMoniker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwwhichmoniker: OLEWHICHMK, pmk: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetMoniker: usize, #[cfg(feature = "Win32_System_Com")] - pub GetMoniker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwassign: u32, dwwhichmoniker: u32, ppmk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetMoniker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwassign: OLEGETMONIKER, dwwhichmoniker: OLEWHICHMK, ppmk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetMoniker: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] @@ -10234,7 +10239,7 @@ pub struct IOleObject_Vtbl { pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub IsUpToDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetUserClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub GetUserType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwformoftype: u32, pszusertype: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, + pub GetUserType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwformoftype: USERCLASSTYPE, pszusertype: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub SetExtent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdrawaspect: u32, psizel: *const super::super::Foundation::SIZE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -10252,7 +10257,7 @@ pub struct IOleObject_Vtbl { pub EnumAdvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumadvise: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnumAdvise: usize, - pub GetMiscStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwaspect: u32, pdwstatus: *mut u32) -> ::windows::core::HRESULT, + pub GetMiscStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwaspect: u32, pdwstatus: *mut OLEMISC) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Graphics_Gdi")] pub SetColorScheme: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plogpal: *const super::super::Graphics::Gdi::LOGPALETTE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] @@ -11937,9 +11942,9 @@ pub struct IPictureDisp_Vtbl { #[repr(transparent)] pub struct IPointerInactive(::windows::core::IUnknown); impl IPointerInactive { - pub unsafe fn GetActivationPolicy(&self) -> ::windows::core::Result { + pub unsafe fn GetActivationPolicy(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetActivationPolicy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetActivationPolicy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11994,7 +11999,7 @@ unsafe impl ::windows::core::Interface for IPointerInactive { #[doc(hidden)] pub struct IPointerInactive_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub GetActivationPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwpolicy: *mut u32) -> ::windows::core::HRESULT, + pub GetActivationPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwpolicy: *mut POINTERINACTIVE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub OnInactiveMouseMove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, grfkeystate: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -12960,7 +12965,7 @@ impl IRecordInfo { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn PutField<'a, P0>(&self, wflags: u32, pvdata: *mut ::core::ffi::c_void, szfieldname: P0, pvarfield: &super::Com::VARIANT) -> ::windows::core::Result<()> + pub unsafe fn PutField<'a, P0>(&self, wflags: super::Com::INVOKEKIND, pvdata: *mut ::core::ffi::c_void, szfieldname: P0, pvarfield: &super::Com::VARIANT) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, { @@ -12968,7 +12973,7 @@ impl IRecordInfo { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn PutFieldNoCopy<'a, P0>(&self, wflags: u32, pvdata: *mut ::core::ffi::c_void, szfieldname: P0, pvarfield: &super::Com::VARIANT) -> ::windows::core::Result<()> + pub unsafe fn PutFieldNoCopy<'a, P0>(&self, wflags: super::Com::INVOKEKIND, pvdata: *mut ::core::ffi::c_void, szfieldname: P0, pvarfield: &super::Com::VARIANT) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, { @@ -13053,11 +13058,11 @@ pub struct IRecordInfo_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] GetFieldNoCopy: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub PutField: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wflags: u32, pvdata: *mut ::core::ffi::c_void, szfieldname: ::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::HRESULT, + pub PutField: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wflags: super::Com::INVOKEKIND, pvdata: *mut ::core::ffi::c_void, szfieldname: ::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] PutField: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub PutFieldNoCopy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wflags: u32, pvdata: *mut ::core::ffi::c_void, szfieldname: ::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::HRESULT, + pub PutFieldNoCopy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wflags: super::Com::INVOKEKIND, pvdata: *mut ::core::ffi::c_void, szfieldname: ::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] PutFieldNoCopy: usize, pub GetFieldNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcnames: *mut u32, rgbstrnames: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, @@ -13822,7 +13827,7 @@ impl IViewObjectEx { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] - pub unsafe fn GetNaturalExtent<'a, P0>(&self, dwaspect: super::Com::DVASPECT, lindex: i32, ptd: &super::Com::DVTARGETDEVICE, hictargetdev: P0, pextentinfo: &ExtentInfo) -> ::windows::core::Result + pub unsafe fn GetNaturalExtent<'a, P0>(&self, dwaspect: super::Com::DVASPECT, lindex: i32, ptd: &super::Com::DVTARGETDEVICE, hictargetdev: P0, pextentinfo: &DVEXTENTINFO) -> ::windows::core::Result where P0: ::std::convert::Into, { @@ -13913,7 +13918,7 @@ pub struct IViewObjectEx_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] QueryHitRect: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] - pub GetNaturalExtent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwaspect: super::Com::DVASPECT, lindex: i32, ptd: *const super::Com::DVTARGETDEVICE, hictargetdev: super::super::Graphics::Gdi::HDC, pextentinfo: *const ExtentInfo, psizel: *mut super::super::Foundation::SIZE) -> ::windows::core::HRESULT, + pub GetNaturalExtent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwaspect: super::Com::DVASPECT, lindex: i32, ptd: *const super::Com::DVTARGETDEVICE, hictargetdev: super::super::Graphics::Gdi::HDC, pextentinfo: *const DVEXTENTINFO, psizel: *mut super::super::Foundation::SIZE) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com")))] GetNaturalExtent: usize, } @@ -14312,30 +14317,6 @@ pub const EMBDHLP_INPROC_HANDLER: i32 = 0i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const EMBDHLP_INPROC_SERVER: i32 = 1i32; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_AUTO: u32 = 1u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_BSTR: u32 = 256u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_DISPATCH: u32 = 1024u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_EMBEDDED: u32 = 4u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_FIXEDSIZE: u32 = 16u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_HAVEIID: u32 = 64u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_HAVEVARTYPE: u32 = 128u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_RECORD: u32 = 32u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_RESERVED: u32 = 61448u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_STATIC: u32 = 2u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_UNKNOWN: u32 = 512u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FADF_VARIANT: u32 = 2048u32; -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const GC_WCH_SIBLING: i32 = 1i32; pub const GUID_CHECKVALUEEXCLUSIVE: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6650430c_be0f_101a_8bbb_00aa00300cab); pub const GUID_COLOR: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x66504301_be0f_101a_8bbb_00aa00300cab); @@ -15204,31 +15185,6 @@ impl ::core::fmt::Debug for ACTIVATEFLAGS { #[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct AspectInfoFlag(pub i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const DVASPECTINFOFLAG_CANOPTIMIZE: AspectInfoFlag = AspectInfoFlag(1i32); -impl ::core::marker::Copy for AspectInfoFlag {} -impl ::core::clone::Clone for AspectInfoFlag { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AspectInfoFlag { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AspectInfoFlag { - type Abi = Self; -} -impl ::core::fmt::Debug for AspectInfoFlag { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AspectInfoFlag").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct BINDSPEED(pub i32); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const BINDSPEED_INDEFINITE: BINDSPEED = BINDSPEED(1i32); @@ -15470,6 +15426,58 @@ impl ::core::fmt::Debug for DVASPECT2 { #[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DVASPECTINFOFLAG(pub i32); +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const DVASPECTINFOFLAG_CANOPTIMIZE: DVASPECTINFOFLAG = DVASPECTINFOFLAG(1i32); +impl ::core::marker::Copy for DVASPECTINFOFLAG {} +impl ::core::clone::Clone for DVASPECTINFOFLAG { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DVASPECTINFOFLAG { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DVASPECTINFOFLAG { + type Abi = Self; +} +impl ::core::fmt::Debug for DVASPECTINFOFLAG { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DVASPECTINFOFLAG").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DVEXTENTMODE(pub i32); +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const DVEXTENT_CONTENT: DVEXTENTMODE = DVEXTENTMODE(0i32); +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const DVEXTENT_INTEGRAL: DVEXTENTMODE = DVEXTENTMODE(1i32); +impl ::core::marker::Copy for DVEXTENTMODE {} +impl ::core::clone::Clone for DVEXTENTMODE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DVEXTENTMODE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DVEXTENTMODE { + type Abi = Self; +} +impl ::core::fmt::Debug for DVEXTENTMODE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DVEXTENTMODE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct ENUM_CONTROLS_WHICH_FLAGS(pub u32); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const GCW_WCH_SIBLING: ENUM_CONTROLS_WHICH_FLAGS = ENUM_CONTROLS_WHICH_FLAGS(1u32); @@ -15509,60 +15517,33 @@ impl ::core::fmt::Debug for ENUM_CONTROLS_WHICH_FLAGS { #[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct ExtentMode(pub i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const DVEXTENT_CONTENT: ExtentMode = ExtentMode(0i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const DVEXTENT_INTEGRAL: ExtentMode = ExtentMode(1i32); -impl ::core::marker::Copy for ExtentMode {} -impl ::core::clone::Clone for ExtentMode { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for ExtentMode { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for ExtentMode { - type Abi = Self; -} -impl ::core::fmt::Debug for ExtentMode { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ExtentMode").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FUNCFLAGS(pub i32); +pub struct FUNCFLAGS(pub u16); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FRESTRICTED: FUNCFLAGS = FUNCFLAGS(1i32); +pub const FUNCFLAG_FRESTRICTED: FUNCFLAGS = FUNCFLAGS(1u16); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FSOURCE: FUNCFLAGS = FUNCFLAGS(2i32); +pub const FUNCFLAG_FSOURCE: FUNCFLAGS = FUNCFLAGS(2u16); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FBINDABLE: FUNCFLAGS = FUNCFLAGS(4i32); +pub const FUNCFLAG_FBINDABLE: FUNCFLAGS = FUNCFLAGS(4u16); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FREQUESTEDIT: FUNCFLAGS = FUNCFLAGS(8i32); +pub const FUNCFLAG_FREQUESTEDIT: FUNCFLAGS = FUNCFLAGS(8u16); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FDISPLAYBIND: FUNCFLAGS = FUNCFLAGS(16i32); +pub const FUNCFLAG_FDISPLAYBIND: FUNCFLAGS = FUNCFLAGS(16u16); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FDEFAULTBIND: FUNCFLAGS = FUNCFLAGS(32i32); +pub const FUNCFLAG_FDEFAULTBIND: FUNCFLAGS = FUNCFLAGS(32u16); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FHIDDEN: FUNCFLAGS = FUNCFLAGS(64i32); +pub const FUNCFLAG_FHIDDEN: FUNCFLAGS = FUNCFLAGS(64u16); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FUSESGETLASTERROR: FUNCFLAGS = FUNCFLAGS(128i32); +pub const FUNCFLAG_FUSESGETLASTERROR: FUNCFLAGS = FUNCFLAGS(128u16); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FDEFAULTCOLLELEM: FUNCFLAGS = FUNCFLAGS(256i32); +pub const FUNCFLAG_FDEFAULTCOLLELEM: FUNCFLAGS = FUNCFLAGS(256u16); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FUIDEFAULT: FUNCFLAGS = FUNCFLAGS(512i32); +pub const FUNCFLAG_FUIDEFAULT: FUNCFLAGS = FUNCFLAGS(512u16); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FNONBROWSABLE: FUNCFLAGS = FUNCFLAGS(1024i32); +pub const FUNCFLAG_FNONBROWSABLE: FUNCFLAGS = FUNCFLAGS(1024u16); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FREPLACEABLE: FUNCFLAGS = FUNCFLAGS(2048i32); +pub const FUNCFLAG_FREPLACEABLE: FUNCFLAGS = FUNCFLAGS(2048u16); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const FUNCFLAG_FIMMEDIATEBIND: FUNCFLAGS = FUNCFLAGS(4096i32); +pub const FUNCFLAG_FIMMEDIATEBIND: FUNCFLAGS = FUNCFLAGS(4096u16); impl ::core::marker::Copy for FUNCFLAGS {} impl ::core::clone::Clone for FUNCFLAGS { fn clone(&self) -> Self { @@ -15668,6 +15649,63 @@ impl ::core::fmt::Debug for IGNOREMIME { #[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct KEYMODIFIERS(pub u32); +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const KEYMOD_SHIFT: KEYMODIFIERS = KEYMODIFIERS(1u32); +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const KEYMOD_CONTROL: KEYMODIFIERS = KEYMODIFIERS(2u32); +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const KEYMOD_ALT: KEYMODIFIERS = KEYMODIFIERS(4u32); +impl ::core::marker::Copy for KEYMODIFIERS {} +impl ::core::clone::Clone for KEYMODIFIERS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for KEYMODIFIERS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for KEYMODIFIERS { + type Abi = Self; +} +impl ::core::fmt::Debug for KEYMODIFIERS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("KEYMODIFIERS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for KEYMODIFIERS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for KEYMODIFIERS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for KEYMODIFIERS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for KEYMODIFIERS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for KEYMODIFIERS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct LIBFLAGS(pub i32); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const LIBFLAG_FRESTRICTED: LIBFLAGS = LIBFLAGS(1i32); @@ -16768,6 +16806,33 @@ impl ::core::fmt::Debug for PAGEACTION_UI { #[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct PICTUREATTRIBUTES(pub i32); +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const PICTURE_SCALABLE: PICTUREATTRIBUTES = PICTUREATTRIBUTES(1i32); +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub const PICTURE_TRANSPARENT: PICTUREATTRIBUTES = PICTUREATTRIBUTES(2i32); +impl ::core::marker::Copy for PICTUREATTRIBUTES {} +impl ::core::clone::Clone for PICTUREATTRIBUTES { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for PICTUREATTRIBUTES { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for PICTUREATTRIBUTES { + type Abi = Self; +} +impl ::core::fmt::Debug for PICTUREATTRIBUTES { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("PICTUREATTRIBUTES").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct POINTERINACTIVE(pub i32); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const POINTERINACTIVE_ACTIVATEONENTRY: POINTERINACTIVE = POINTERINACTIVE(1i32); @@ -16928,33 +16993,6 @@ impl ::core::fmt::Debug for PROPPAGESTATUS { #[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct PictureAttributes(pub i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const PICTURE_SCALABLE: PictureAttributes = PictureAttributes(1i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const PICTURE_TRANSPARENT: PictureAttributes = PictureAttributes(2i32); -impl ::core::marker::Copy for PictureAttributes {} -impl ::core::clone::Clone for PictureAttributes { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for PictureAttributes { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for PictureAttributes { - type Abi = Self; -} -impl ::core::fmt::Debug for PictureAttributes { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PictureAttributes").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct QACONTAINERFLAGS(pub i32); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const QACONTAINER_SHOWHATCHING: QACONTAINERFLAGS = QACONTAINERFLAGS(1i32); @@ -17283,55 +17321,6 @@ impl ::core::fmt::Debug for USERCLASSTYPE { #[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct VARFLAGS(pub i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FREADONLY: VARFLAGS = VARFLAGS(1i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FSOURCE: VARFLAGS = VARFLAGS(2i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FBINDABLE: VARFLAGS = VARFLAGS(4i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FREQUESTEDIT: VARFLAGS = VARFLAGS(8i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FDISPLAYBIND: VARFLAGS = VARFLAGS(16i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FDEFAULTBIND: VARFLAGS = VARFLAGS(32i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FHIDDEN: VARFLAGS = VARFLAGS(64i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FRESTRICTED: VARFLAGS = VARFLAGS(128i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FDEFAULTCOLLELEM: VARFLAGS = VARFLAGS(256i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FUIDEFAULT: VARFLAGS = VARFLAGS(512i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FNONBROWSABLE: VARFLAGS = VARFLAGS(1024i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FREPLACEABLE: VARFLAGS = VARFLAGS(2048i32); -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub const VARFLAG_FIMMEDIATEBIND: VARFLAGS = VARFLAGS(4096i32); -impl ::core::marker::Copy for VARFLAGS {} -impl ::core::clone::Clone for VARFLAGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for VARFLAGS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for VARFLAGS { - type Abi = Self; -} -impl ::core::fmt::Debug for VARFLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("VARFLAGS").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct VIEWSTATUS(pub i32); #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub const VIEWSTATUS_OPAQUE: VIEWSTATUS = VIEWSTATUS(1i32); @@ -17460,37 +17449,6 @@ impl ::core::default::Default for ARRAYDESC { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct AspectInfo { - pub cb: u32, - pub dwFlags: u32, -} -impl ::core::marker::Copy for AspectInfo {} -impl ::core::clone::Clone for AspectInfo { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for AspectInfo { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("AspectInfo").field("cb", &self.cb).field("dwFlags", &self.dwFlags).finish() - } -} -unsafe impl ::windows::core::Abi for AspectInfo { - type Abi = Self; -} -impl ::core::cmp::PartialEq for AspectInfo { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for AspectInfo {} -impl ::core::default::Default for AspectInfo { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub struct CADWORD { pub cElems: u32, pub pElems: *mut u32, @@ -17655,41 +17613,72 @@ impl ::core::default::Default for CONTROLINFO { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub struct DVASPECTINFO { + pub cb: u32, + pub dwFlags: u32, +} +impl ::core::marker::Copy for DVASPECTINFO {} +impl ::core::clone::Clone for DVASPECTINFO { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for DVASPECTINFO { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("DVASPECTINFO").field("cb", &self.cb).field("dwFlags", &self.dwFlags).finish() + } +} +unsafe impl ::windows::core::Abi for DVASPECTINFO { + type Abi = Self; +} +impl ::core::cmp::PartialEq for DVASPECTINFO { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for DVASPECTINFO {} +impl ::core::default::Default for DVASPECTINFO { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] -pub struct ExtentInfo { +pub struct DVEXTENTINFO { pub cb: u32, pub dwExtentMode: u32, pub sizelProposed: super::super::Foundation::SIZE, } #[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for ExtentInfo {} +impl ::core::marker::Copy for DVEXTENTINFO {} #[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for ExtentInfo { +impl ::core::clone::Clone for DVEXTENTINFO { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for ExtentInfo { +impl ::core::fmt::Debug for DVEXTENTINFO { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ExtentInfo").field("cb", &self.cb).field("dwExtentMode", &self.dwExtentMode).field("sizelProposed", &self.sizelProposed).finish() + f.debug_struct("DVEXTENTINFO").field("cb", &self.cb).field("dwExtentMode", &self.dwExtentMode).field("sizelProposed", &self.sizelProposed).finish() } } #[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for ExtentInfo { +unsafe impl ::windows::core::Abi for DVEXTENTINFO { type Abi = Self; } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for ExtentInfo { +impl ::core::cmp::PartialEq for DVEXTENTINFO { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for ExtentInfo {} +impl ::core::cmp::Eq for DVEXTENTINFO {} #[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for ExtentInfo { +impl ::core::default::Default for DVEXTENTINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -17986,107 +17975,137 @@ impl ::core::default::Default for OCPFIPARAMS { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] -pub struct OIFI { - pub cb: u32, - pub fMDIApp: super::super::Foundation::BOOL, - pub hwndFrame: super::super::Foundation::HWND, - pub haccel: super::super::UI::WindowsAndMessaging::HACCEL, - pub cAccelEntries: u32, +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub struct OLECMD { + pub cmdID: OLECMDID, + pub cmdf: OLECMDF, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] -impl ::core::marker::Copy for OIFI {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] -impl ::core::clone::Clone for OIFI { +impl ::core::marker::Copy for OLECMD {} +impl ::core::clone::Clone for OLECMD { fn clone(&self) -> Self { *self } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] -impl ::core::fmt::Debug for OIFI { +impl ::core::fmt::Debug for OLECMD { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("OIFI").field("cb", &self.cb).field("fMDIApp", &self.fMDIApp).field("hwndFrame", &self.hwndFrame).field("haccel", &self.haccel).field("cAccelEntries", &self.cAccelEntries).finish() + f.debug_struct("OLECMD").field("cmdID", &self.cmdID).field("cmdf", &self.cmdf).finish() } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] -unsafe impl ::windows::core::Abi for OIFI { +unsafe impl ::windows::core::Abi for OLECMD { type Abi = Self; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] -impl ::core::cmp::PartialEq for OIFI { +impl ::core::cmp::PartialEq for OLECMD { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] -impl ::core::cmp::Eq for OIFI {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] -impl ::core::default::Default for OIFI { +impl ::core::cmp::Eq for OLECMD {} +impl ::core::default::Default for OLECMD { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct OLECMD { - pub cmdID: u32, - pub cmdf: u32, +pub struct OLECMDTEXT { + pub cmdtextf: u32, + pub cwActual: u32, + pub cwBuf: u32, + pub rgwz: [u16; 1], } -impl ::core::marker::Copy for OLECMD {} -impl ::core::clone::Clone for OLECMD { +impl ::core::marker::Copy for OLECMDTEXT {} +impl ::core::clone::Clone for OLECMDTEXT { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for OLECMD { +impl ::core::fmt::Debug for OLECMDTEXT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("OLECMD").field("cmdID", &self.cmdID).field("cmdf", &self.cmdf).finish() + f.debug_struct("OLECMDTEXT").field("cmdtextf", &self.cmdtextf).field("cwActual", &self.cwActual).field("cwBuf", &self.cwBuf).field("rgwz", &self.rgwz).finish() } } -unsafe impl ::windows::core::Abi for OLECMD { +unsafe impl ::windows::core::Abi for OLECMDTEXT { type Abi = Self; } -impl ::core::cmp::PartialEq for OLECMD { +impl ::core::cmp::PartialEq for OLECMDTEXT { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for OLECMD {} -impl ::core::default::Default for OLECMD { +impl ::core::cmp::Eq for OLECMDTEXT {} +impl ::core::default::Default for OLECMDTEXT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] +pub struct OLEINPLACEFRAMEINFO { + pub cb: u32, + pub fMDIApp: super::super::Foundation::BOOL, + pub hwndFrame: super::super::Foundation::HWND, + pub haccel: super::super::UI::WindowsAndMessaging::HACCEL, + pub cAccelEntries: u32, +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] +impl ::core::marker::Copy for OLEINPLACEFRAMEINFO {} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] +impl ::core::clone::Clone for OLEINPLACEFRAMEINFO { + fn clone(&self) -> Self { + *self + } +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] +impl ::core::fmt::Debug for OLEINPLACEFRAMEINFO { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("OLEINPLACEFRAMEINFO").field("cb", &self.cb).field("fMDIApp", &self.fMDIApp).field("hwndFrame", &self.hwndFrame).field("haccel", &self.haccel).field("cAccelEntries", &self.cAccelEntries).finish() + } +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] +unsafe impl ::windows::core::Abi for OLEINPLACEFRAMEINFO { + type Abi = Self; +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] +impl ::core::cmp::PartialEq for OLEINPLACEFRAMEINFO { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] +impl ::core::cmp::Eq for OLEINPLACEFRAMEINFO {} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] +impl ::core::default::Default for OLEINPLACEFRAMEINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct OLECMDTEXT { - pub cmdtextf: u32, - pub cwActual: u32, - pub cwBuf: u32, - pub rgwz: [u16; 1], +pub struct OLEMENUGROUPWIDTHS { + pub width: [i32; 6], } -impl ::core::marker::Copy for OLECMDTEXT {} -impl ::core::clone::Clone for OLECMDTEXT { +impl ::core::marker::Copy for OLEMENUGROUPWIDTHS {} +impl ::core::clone::Clone for OLEMENUGROUPWIDTHS { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for OLECMDTEXT { +impl ::core::fmt::Debug for OLEMENUGROUPWIDTHS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("OLECMDTEXT").field("cmdtextf", &self.cmdtextf).field("cwActual", &self.cwActual).field("cwBuf", &self.cwBuf).field("rgwz", &self.rgwz).finish() + f.debug_struct("OLEMENUGROUPWIDTHS").field("width", &self.width).finish() } } -unsafe impl ::windows::core::Abi for OLECMDTEXT { +unsafe impl ::windows::core::Abi for OLEMENUGROUPWIDTHS { type Abi = Self; } -impl ::core::cmp::PartialEq for OLECMDTEXT { +impl ::core::cmp::PartialEq for OLEMENUGROUPWIDTHS { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for OLECMDTEXT {} -impl ::core::default::Default for OLECMDTEXT { +impl ::core::cmp::Eq for OLEMENUGROUPWIDTHS {} +impl ::core::default::Default for OLEMENUGROUPWIDTHS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -19712,33 +19731,41 @@ impl ::core::default::Default for OLEUIVIEWPROPSW { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub struct OLEVERB { pub lVerb: i32, pub lpszVerbName: ::windows::core::PWSTR, - pub fuFlags: u32, - pub grfAttribs: u32, + pub fuFlags: super::super::UI::WindowsAndMessaging::MENU_ITEM_FLAGS, + pub grfAttribs: OLEVERBATTRIB, } +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::marker::Copy for OLEVERB {} +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::clone::Clone for OLEVERB { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::fmt::Debug for OLEVERB { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("OLEVERB").field("lVerb", &self.lVerb).field("lpszVerbName", &self.lpszVerbName).field("fuFlags", &self.fuFlags).field("grfAttribs", &self.grfAttribs).finish() } } +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] unsafe impl ::windows::core::Abi for OLEVERB { type Abi = Self; } +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::PartialEq for OLEVERB { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::cmp::Eq for OLEVERB {} +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::default::Default for OLEVERB { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -19746,36 +19773,6 @@ impl ::core::default::Default for OLEVERB { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct OleMenuGroupWidths { - pub width: [i32; 6], -} -impl ::core::marker::Copy for OleMenuGroupWidths {} -impl ::core::clone::Clone for OleMenuGroupWidths { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for OleMenuGroupWidths { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("OleMenuGroupWidths").field("width", &self.width).finish() - } -} -unsafe impl ::windows::core::Abi for OleMenuGroupWidths { - type Abi = Self; -} -impl ::core::cmp::PartialEq for OleMenuGroupWidths { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for OleMenuGroupWidths {} -impl ::core::default::Default for OleMenuGroupWidths { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub struct PAGERANGE { pub nFromPage: i32, pub nToPage: i32, @@ -20263,7 +20260,7 @@ pub struct QACONTAINER { pub pAdviseSink: ::core::option::Option, pub pPropertyNotifySink: ::core::option::Option, pub pUnkEventSink: ::core::option::Option<::windows::core::IUnknown>, - pub dwAmbientFlags: u32, + pub dwAmbientFlags: QACONTAINERFLAGS, pub colorFore: u32, pub colorBack: u32, pub pFont: ::core::option::Option, @@ -20343,11 +20340,11 @@ impl ::core::default::Default for QACONTAINER { #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub struct QACONTROL { pub cbSize: u32, - pub dwMiscStatus: u32, - pub dwViewStatus: u32, + pub dwMiscStatus: OLEMISC, + pub dwViewStatus: VIEWSTATUS, pub dwEventCookie: u32, pub dwPropNotifyCookie: u32, - pub dwPointerActivationPolicy: u32, + pub dwPointerActivationPolicy: POINTERINACTIVE, } impl ::core::marker::Copy for QACONTROL {} impl ::core::clone::Clone for QACONTROL { @@ -20375,142 +20372,34 @@ impl ::core::default::Default for QACONTROL { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct UDATE { - pub st: super::super::Foundation::SYSTEMTIME, - pub wDayOfYear: u16, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for UDATE {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for UDATE { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for UDATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("UDATE").field("st", &self.st).field("wDayOfYear", &self.wDayOfYear).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for UDATE { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for UDATE { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for UDATE {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for UDATE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct _wireBRECORD { - pub fFlags: u32, - pub clSize: u32, - pub pRecInfo: ::core::option::Option, - pub pRecord: *mut u8, -} -impl ::core::clone::Clone for _wireBRECORD { - fn clone(&self) -> Self { - Self { fFlags: self.fFlags, clSize: self.clSize, pRecInfo: self.pRecInfo.clone(), pRecord: self.pRecord } - } -} -impl ::core::fmt::Debug for _wireBRECORD { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_wireBRECORD").field("fFlags", &self.fFlags).field("clSize", &self.clSize).field("pRecInfo", &self.pRecInfo).field("pRecord", &self.pRecord).finish() - } -} -unsafe impl ::windows::core::Abi for _wireBRECORD { - type Abi = ::core::mem::ManuallyDrop; -} -impl ::core::cmp::PartialEq for _wireBRECORD { - fn eq(&self, other: &Self) -> bool { - self.fFlags == other.fFlags && self.clSize == other.clSize && self.pRecInfo == other.pRecInfo && self.pRecord == other.pRecord - } -} -impl ::core::cmp::Eq for _wireBRECORD {} -impl ::core::default::Default for _wireBRECORD { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -pub struct _wireSAFEARRAY { - pub cDims: u16, - pub fFeatures: u16, - pub cbElements: u32, - pub cLocks: u32, - pub uArrayStructs: _wireSAFEARRAY_UNION, - pub rgsabound: [super::Com::SAFEARRAYBOUND; 1], -} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::marker::Copy for _wireSAFEARRAY {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::clone::Clone for _wireSAFEARRAY { - fn clone(&self) -> Self { - *self - } -} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -unsafe impl ::windows::core::Abi for _wireSAFEARRAY { - type Abi = Self; -} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::cmp::PartialEq for _wireSAFEARRAY { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_wireSAFEARRAY>()) == 0 } - } -} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::cmp::Eq for _wireSAFEARRAY {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::default::Default for _wireSAFEARRAY { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -pub struct _wireSAFEARRAY_UNION { +pub struct SAFEARRAYUNION { pub sfType: u32, - pub u: _wireSAFEARRAY_UNION_0, + pub u: SAFEARRAYUNION_0, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::marker::Copy for _wireSAFEARRAY_UNION {} +impl ::core::marker::Copy for SAFEARRAYUNION {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::clone::Clone for _wireSAFEARRAY_UNION { +impl ::core::clone::Clone for SAFEARRAYUNION { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -unsafe impl ::windows::core::Abi for _wireSAFEARRAY_UNION { +unsafe impl ::windows::core::Abi for SAFEARRAYUNION { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::cmp::PartialEq for _wireSAFEARRAY_UNION { +impl ::core::cmp::PartialEq for SAFEARRAYUNION { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_wireSAFEARRAY_UNION>()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::cmp::Eq for _wireSAFEARRAY_UNION {} +impl ::core::cmp::Eq for SAFEARRAYUNION {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::default::Default for _wireSAFEARRAY_UNION { +impl ::core::default::Default for SAFEARRAYUNION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -20518,71 +20407,71 @@ impl ::core::default::Default for _wireSAFEARRAY_UNION { #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -pub union _wireSAFEARRAY_UNION_0 { - pub BstrStr: _wireSAFEARR_BSTR, - pub UnknownStr: _wireSAFEARR_UNKNOWN, - pub DispatchStr: _wireSAFEARR_DISPATCH, - pub VariantStr: _wireSAFEARR_VARIANT, - pub RecordStr: _wireSAFEARR_BRECORD, - pub HaveIidStr: _wireSAFEARR_HAVEIID, +pub union SAFEARRAYUNION_0 { + pub BstrStr: SAFEARR_BSTR, + pub UnknownStr: SAFEARR_UNKNOWN, + pub DispatchStr: SAFEARR_DISPATCH, + pub VariantStr: SAFEARR_VARIANT, + pub RecordStr: SAFEARR_BRECORD, + pub HaveIidStr: SAFEARR_HAVEIID, pub ByteStr: super::Com::BYTE_SIZEDARR, - pub WordStr: super::Com::SHORT_SIZEDARR, - pub LongStr: super::Com::LONG_SIZEDARR, + pub WordStr: super::Com::WORD_SIZEDARR, + pub LongStr: super::Com::DWORD_SIZEDARR, pub HyperStr: super::Com::HYPER_SIZEDARR, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::marker::Copy for _wireSAFEARRAY_UNION_0 {} +impl ::core::marker::Copy for SAFEARRAYUNION_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::clone::Clone for _wireSAFEARRAY_UNION_0 { +impl ::core::clone::Clone for SAFEARRAYUNION_0 { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -unsafe impl ::windows::core::Abi for _wireSAFEARRAY_UNION_0 { +unsafe impl ::windows::core::Abi for SAFEARRAYUNION_0 { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::cmp::PartialEq for _wireSAFEARRAY_UNION_0 { +impl ::core::cmp::PartialEq for SAFEARRAYUNION_0 { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_wireSAFEARRAY_UNION_0>()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::cmp::Eq for _wireSAFEARRAY_UNION_0 {} +impl ::core::cmp::Eq for SAFEARRAYUNION_0 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::default::Default for _wireSAFEARRAY_UNION_0 { +impl ::core::default::Default for SAFEARRAYUNION_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct _wireSAFEARR_BRECORD { +pub struct SAFEARR_BRECORD { pub Size: u32, pub aRecord: *mut *mut _wireBRECORD, } -impl ::core::marker::Copy for _wireSAFEARR_BRECORD {} -impl ::core::clone::Clone for _wireSAFEARR_BRECORD { +impl ::core::marker::Copy for SAFEARR_BRECORD {} +impl ::core::clone::Clone for SAFEARR_BRECORD { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for _wireSAFEARR_BRECORD { +impl ::core::fmt::Debug for SAFEARR_BRECORD { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_wireSAFEARR_BRECORD").field("Size", &self.Size).field("aRecord", &self.aRecord).finish() + f.debug_struct("SAFEARR_BRECORD").field("Size", &self.Size).field("aRecord", &self.aRecord).finish() } } -unsafe impl ::windows::core::Abi for _wireSAFEARR_BRECORD { +unsafe impl ::windows::core::Abi for SAFEARR_BRECORD { type Abi = Self; } -impl ::core::cmp::PartialEq for _wireSAFEARR_BRECORD { +impl ::core::cmp::PartialEq for SAFEARR_BRECORD { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_wireSAFEARR_BRECORD>()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for _wireSAFEARR_BRECORD {} -impl ::core::default::Default for _wireSAFEARR_BRECORD { +impl ::core::cmp::Eq for SAFEARR_BRECORD {} +impl ::core::default::Default for SAFEARR_BRECORD { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -20590,38 +20479,38 @@ impl ::core::default::Default for _wireSAFEARR_BRECORD { #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] -pub struct _wireSAFEARR_BSTR { +pub struct SAFEARR_BSTR { pub Size: u32, pub aBstr: *mut *mut super::Com::FLAGGED_WORD_BLOB, } #[cfg(feature = "Win32_System_Com")] -impl ::core::marker::Copy for _wireSAFEARR_BSTR {} +impl ::core::marker::Copy for SAFEARR_BSTR {} #[cfg(feature = "Win32_System_Com")] -impl ::core::clone::Clone for _wireSAFEARR_BSTR { +impl ::core::clone::Clone for SAFEARR_BSTR { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_System_Com")] -impl ::core::fmt::Debug for _wireSAFEARR_BSTR { +impl ::core::fmt::Debug for SAFEARR_BSTR { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_wireSAFEARR_BSTR").field("Size", &self.Size).field("aBstr", &self.aBstr).finish() + f.debug_struct("SAFEARR_BSTR").field("Size", &self.Size).field("aBstr", &self.aBstr).finish() } } #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows::core::Abi for _wireSAFEARR_BSTR { +unsafe impl ::windows::core::Abi for SAFEARR_BSTR { type Abi = Self; } #[cfg(feature = "Win32_System_Com")] -impl ::core::cmp::PartialEq for _wireSAFEARR_BSTR { +impl ::core::cmp::PartialEq for SAFEARR_BSTR { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_wireSAFEARR_BSTR>()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(feature = "Win32_System_Com")] -impl ::core::cmp::Eq for _wireSAFEARR_BSTR {} +impl ::core::cmp::Eq for SAFEARR_BSTR {} #[cfg(feature = "Win32_System_Com")] -impl ::core::default::Default for _wireSAFEARR_BSTR { +impl ::core::default::Default for SAFEARR_BSTR { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -20629,101 +20518,101 @@ impl ::core::default::Default for _wireSAFEARR_BSTR { #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] -pub struct _wireSAFEARR_DISPATCH { +pub struct SAFEARR_DISPATCH { pub Size: u32, pub apDispatch: *mut ::core::option::Option, } #[cfg(feature = "Win32_System_Com")] -impl ::core::marker::Copy for _wireSAFEARR_DISPATCH {} +impl ::core::marker::Copy for SAFEARR_DISPATCH {} #[cfg(feature = "Win32_System_Com")] -impl ::core::clone::Clone for _wireSAFEARR_DISPATCH { +impl ::core::clone::Clone for SAFEARR_DISPATCH { fn clone(&self) -> Self { *self } } #[cfg(feature = "Win32_System_Com")] -impl ::core::fmt::Debug for _wireSAFEARR_DISPATCH { +impl ::core::fmt::Debug for SAFEARR_DISPATCH { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_wireSAFEARR_DISPATCH").field("Size", &self.Size).field("apDispatch", &self.apDispatch).finish() + f.debug_struct("SAFEARR_DISPATCH").field("Size", &self.Size).field("apDispatch", &self.apDispatch).finish() } } #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows::core::Abi for _wireSAFEARR_DISPATCH { +unsafe impl ::windows::core::Abi for SAFEARR_DISPATCH { type Abi = Self; } #[cfg(feature = "Win32_System_Com")] -impl ::core::cmp::PartialEq for _wireSAFEARR_DISPATCH { +impl ::core::cmp::PartialEq for SAFEARR_DISPATCH { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_wireSAFEARR_DISPATCH>()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } #[cfg(feature = "Win32_System_Com")] -impl ::core::cmp::Eq for _wireSAFEARR_DISPATCH {} +impl ::core::cmp::Eq for SAFEARR_DISPATCH {} #[cfg(feature = "Win32_System_Com")] -impl ::core::default::Default for _wireSAFEARR_DISPATCH { +impl ::core::default::Default for SAFEARR_DISPATCH { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct _wireSAFEARR_HAVEIID { +pub struct SAFEARR_HAVEIID { pub Size: u32, pub apUnknown: *mut ::core::option::Option<::windows::core::IUnknown>, pub iid: ::windows::core::GUID, } -impl ::core::marker::Copy for _wireSAFEARR_HAVEIID {} -impl ::core::clone::Clone for _wireSAFEARR_HAVEIID { +impl ::core::marker::Copy for SAFEARR_HAVEIID {} +impl ::core::clone::Clone for SAFEARR_HAVEIID { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for _wireSAFEARR_HAVEIID { +impl ::core::fmt::Debug for SAFEARR_HAVEIID { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_wireSAFEARR_HAVEIID").field("Size", &self.Size).field("apUnknown", &self.apUnknown).field("iid", &self.iid).finish() + f.debug_struct("SAFEARR_HAVEIID").field("Size", &self.Size).field("apUnknown", &self.apUnknown).field("iid", &self.iid).finish() } } -unsafe impl ::windows::core::Abi for _wireSAFEARR_HAVEIID { +unsafe impl ::windows::core::Abi for SAFEARR_HAVEIID { type Abi = Self; } -impl ::core::cmp::PartialEq for _wireSAFEARR_HAVEIID { +impl ::core::cmp::PartialEq for SAFEARR_HAVEIID { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_wireSAFEARR_HAVEIID>()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for _wireSAFEARR_HAVEIID {} -impl ::core::default::Default for _wireSAFEARR_HAVEIID { +impl ::core::cmp::Eq for SAFEARR_HAVEIID {} +impl ::core::default::Default for SAFEARR_HAVEIID { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`*"] -pub struct _wireSAFEARR_UNKNOWN { +pub struct SAFEARR_UNKNOWN { pub Size: u32, pub apUnknown: *mut ::core::option::Option<::windows::core::IUnknown>, } -impl ::core::marker::Copy for _wireSAFEARR_UNKNOWN {} -impl ::core::clone::Clone for _wireSAFEARR_UNKNOWN { +impl ::core::marker::Copy for SAFEARR_UNKNOWN {} +impl ::core::clone::Clone for SAFEARR_UNKNOWN { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for _wireSAFEARR_UNKNOWN { +impl ::core::fmt::Debug for SAFEARR_UNKNOWN { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_wireSAFEARR_UNKNOWN").field("Size", &self.Size).field("apUnknown", &self.apUnknown).finish() + f.debug_struct("SAFEARR_UNKNOWN").field("Size", &self.Size).field("apUnknown", &self.apUnknown).finish() } } -unsafe impl ::windows::core::Abi for _wireSAFEARR_UNKNOWN { +unsafe impl ::windows::core::Abi for SAFEARR_UNKNOWN { type Abi = Self; } -impl ::core::cmp::PartialEq for _wireSAFEARR_UNKNOWN { +impl ::core::cmp::PartialEq for SAFEARR_UNKNOWN { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_wireSAFEARR_UNKNOWN>()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for _wireSAFEARR_UNKNOWN {} -impl ::core::default::Default for _wireSAFEARR_UNKNOWN { +impl ::core::cmp::Eq for SAFEARR_UNKNOWN {} +impl ::core::default::Default for SAFEARR_UNKNOWN { fn default() -> Self { unsafe { ::core::mem::zeroed() } } @@ -20731,38 +20620,146 @@ impl ::core::default::Default for _wireSAFEARR_UNKNOWN { #[repr(C)] #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -pub struct _wireSAFEARR_VARIANT { +pub struct SAFEARR_VARIANT { pub Size: u32, pub aVariant: *mut *mut _wireVARIANT, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::marker::Copy for _wireSAFEARR_VARIANT {} +impl ::core::marker::Copy for SAFEARR_VARIANT {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::clone::Clone for _wireSAFEARR_VARIANT { +impl ::core::clone::Clone for SAFEARR_VARIANT { fn clone(&self) -> Self { *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::fmt::Debug for _wireSAFEARR_VARIANT { +impl ::core::fmt::Debug for SAFEARR_VARIANT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SAFEARR_VARIANT").field("Size", &self.Size).field("aVariant", &self.aVariant).finish() + } +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +unsafe impl ::windows::core::Abi for SAFEARR_VARIANT { + type Abi = Self; +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +impl ::core::cmp::PartialEq for SAFEARR_VARIANT { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +impl ::core::cmp::Eq for SAFEARR_VARIANT {} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +impl ::core::default::Default for SAFEARR_VARIANT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct UDATE { + pub st: super::super::Foundation::SYSTEMTIME, + pub wDayOfYear: u16, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for UDATE {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for UDATE { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for UDATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("UDATE").field("st", &self.st).field("wDayOfYear", &self.wDayOfYear).finish() + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for UDATE { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for UDATE { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for UDATE {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for UDATE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] +pub struct _wireBRECORD { + pub fFlags: u32, + pub clSize: u32, + pub pRecInfo: ::core::option::Option, + pub pRecord: *mut u8, +} +impl ::core::clone::Clone for _wireBRECORD { + fn clone(&self) -> Self { + Self { fFlags: self.fFlags, clSize: self.clSize, pRecInfo: self.pRecInfo.clone(), pRecord: self.pRecord } + } +} +impl ::core::fmt::Debug for _wireBRECORD { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_wireSAFEARR_VARIANT").field("Size", &self.Size).field("aVariant", &self.aVariant).finish() + f.debug_struct("_wireBRECORD").field("fFlags", &self.fFlags).field("clSize", &self.clSize).field("pRecInfo", &self.pRecInfo).field("pRecord", &self.pRecord).finish() + } +} +unsafe impl ::windows::core::Abi for _wireBRECORD { + type Abi = ::core::mem::ManuallyDrop; +} +impl ::core::cmp::PartialEq for _wireBRECORD { + fn eq(&self, other: &Self) -> bool { + self.fFlags == other.fFlags && self.clSize == other.clSize && self.pRecInfo == other.pRecInfo && self.pRecord == other.pRecord + } +} +impl ::core::cmp::Eq for _wireBRECORD {} +impl ::core::default::Default for _wireBRECORD { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +pub struct _wireSAFEARRAY { + pub cDims: u16, + pub fFeatures: u16, + pub cbElements: u32, + pub cLocks: u32, + pub uArrayStructs: SAFEARRAYUNION, + pub rgsabound: [super::Com::SAFEARRAYBOUND; 1], +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +impl ::core::marker::Copy for _wireSAFEARRAY {} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +impl ::core::clone::Clone for _wireSAFEARRAY { + fn clone(&self) -> Self { + *self } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -unsafe impl ::windows::core::Abi for _wireSAFEARR_VARIANT { +unsafe impl ::windows::core::Abi for _wireSAFEARRAY { type Abi = Self; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::cmp::PartialEq for _wireSAFEARR_VARIANT { +impl ::core::cmp::PartialEq for _wireSAFEARRAY { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_wireSAFEARR_VARIANT>()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_wireSAFEARRAY>()) == 0 } } } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::cmp::Eq for _wireSAFEARR_VARIANT {} +impl ::core::cmp::Eq for _wireSAFEARRAY {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -impl ::core::default::Default for _wireSAFEARR_VARIANT { +impl ::core::default::Default for _wireSAFEARRAY { fn default() -> Self { unsafe { ::core::mem::zeroed() } } 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 01b69d72bc..a0af81ff02 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs @@ -8,26 +8,13 @@ where P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn BackupPerfRegistryToFileW(szfilename: ::windows::core::PCWSTR, szcommentstring: ::windows::core::PCWSTR) -> u32; } BackupPerfRegistryToFileW(szfilename.into(), szcommentstring.into()) } #[doc = "*Required features: `\"Win32_System_Performance\"`*"] #[inline] -pub unsafe fn RestorePerfRegistryFromFileW<'a, P0, P1>(szfilename: P0, szlangid: P1) -> u32 -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RestorePerfRegistryFromFileW(szfilename: ::windows::core::PCWSTR, szlangid: ::windows::core::PCWSTR) -> u32; - } - RestorePerfRegistryFromFileW(szfilename.into(), szlangid.into()) -} -#[doc = "*Required features: `\"Win32_System_Performance\"`*"] -#[inline] pub unsafe fn InstallPerfDllA<'a, P0, P1>(szcomputername: P0, lpinifile: P1, dwflags: usize) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, @@ -1503,6 +1490,19 @@ pub unsafe fn QueryPerformanceFrequency(lpfrequency: &mut i64) -> super::super:: } #[doc = "*Required features: `\"Win32_System_Performance\"`*"] #[inline] +pub unsafe fn RestorePerfRegistryFromFileW<'a, P0, P1>(szfilename: P0, szlangid: P1) -> u32 +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, + P1: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RestorePerfRegistryFromFileW(szfilename: ::windows::core::PCWSTR, szlangid: ::windows::core::PCWSTR) -> u32; + } + RestorePerfRegistryFromFileW(szfilename.into(), szlangid.into()) +} +#[doc = "*Required features: `\"Win32_System_Performance\"`*"] +#[inline] pub unsafe fn SetServiceAsTrustedA<'a, P0, P1>(szreserved: P0, szservicename: P1) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, diff --git a/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs index 5eb23c42a4..36833b470a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs @@ -3465,73 +3465,73 @@ unsafe impl ::windows::core::Abi for HKEY { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Registry\"`*"] -pub struct VALENTA { - pub ve_valuename: ::windows::core::PSTR, - pub ve_valuelen: u32, - pub ve_valueptr: usize, - pub ve_type: REG_VALUE_TYPE, +pub struct PVALUEA { + pub pv_valuename: ::windows::core::PSTR, + pub pv_valuelen: i32, + pub pv_value_context: *mut ::core::ffi::c_void, + pub pv_type: u32, } -impl ::core::marker::Copy for VALENTA {} -impl ::core::clone::Clone for VALENTA { +impl ::core::marker::Copy for PVALUEA {} +impl ::core::clone::Clone for PVALUEA { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for VALENTA { +impl ::core::fmt::Debug for PVALUEA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("VALENTA").field("ve_valuename", &self.ve_valuename).field("ve_valuelen", &self.ve_valuelen).field("ve_valueptr", &self.ve_valueptr).field("ve_type", &self.ve_type).finish() + f.debug_struct("PVALUEA").field("pv_valuename", &self.pv_valuename).field("pv_valuelen", &self.pv_valuelen).field("pv_value_context", &self.pv_value_context).field("pv_type", &self.pv_type).finish() } } -unsafe impl ::windows::core::Abi for VALENTA { +unsafe impl ::windows::core::Abi for PVALUEA { type Abi = Self; } -impl ::core::cmp::PartialEq for VALENTA { +impl ::core::cmp::PartialEq for PVALUEA { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for VALENTA {} -impl ::core::default::Default for VALENTA { +impl ::core::cmp::Eq for PVALUEA {} +impl ::core::default::Default for PVALUEA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Registry\"`*"] -pub struct VALENTW { - pub ve_valuename: ::windows::core::PWSTR, - pub ve_valuelen: u32, - pub ve_valueptr: usize, - pub ve_type: REG_VALUE_TYPE, +pub struct PVALUEW { + pub pv_valuename: ::windows::core::PWSTR, + pub pv_valuelen: i32, + pub pv_value_context: *mut ::core::ffi::c_void, + pub pv_type: u32, } -impl ::core::marker::Copy for VALENTW {} -impl ::core::clone::Clone for VALENTW { +impl ::core::marker::Copy for PVALUEW {} +impl ::core::clone::Clone for PVALUEW { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for VALENTW { +impl ::core::fmt::Debug for PVALUEW { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("VALENTW").field("ve_valuename", &self.ve_valuename).field("ve_valuelen", &self.ve_valuelen).field("ve_valueptr", &self.ve_valueptr).field("ve_type", &self.ve_type).finish() + f.debug_struct("PVALUEW").field("pv_valuename", &self.pv_valuename).field("pv_valuelen", &self.pv_valuelen).field("pv_value_context", &self.pv_value_context).field("pv_type", &self.pv_type).finish() } } -unsafe impl ::windows::core::Abi for VALENTW { +unsafe impl ::windows::core::Abi for PVALUEW { type Abi = Self; } -impl ::core::cmp::PartialEq for VALENTW { +impl ::core::cmp::PartialEq for PVALUEW { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for VALENTW {} -impl ::core::default::Default for VALENTW { +impl ::core::cmp::Eq for PVALUEW {} +impl ::core::default::Default for PVALUEW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Registry\"`*"] -pub struct provider_info { +pub struct REG_PROVIDER { pub pi_R0_1val: PQUERYHANDLER, pub pi_R0_allvals: PQUERYHANDLER, pub pi_R3_1val: PQUERYHANDLER, @@ -3539,93 +3539,93 @@ pub struct provider_info { pub pi_flags: u32, pub pi_key_context: *mut ::core::ffi::c_void, } -impl ::core::marker::Copy for provider_info {} -impl ::core::clone::Clone for provider_info { +impl ::core::marker::Copy for REG_PROVIDER {} +impl ::core::clone::Clone for REG_PROVIDER { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for provider_info { +impl ::core::fmt::Debug for REG_PROVIDER { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("provider_info").field("pi_R0_1val", &self.pi_R0_1val.map(|f| f as usize)).field("pi_R0_allvals", &self.pi_R0_allvals.map(|f| f as usize)).field("pi_R3_1val", &self.pi_R3_1val.map(|f| f as usize)).field("pi_R3_allvals", &self.pi_R3_allvals.map(|f| f as usize)).field("pi_flags", &self.pi_flags).field("pi_key_context", &self.pi_key_context).finish() + f.debug_struct("REG_PROVIDER").field("pi_R0_1val", &self.pi_R0_1val.map(|f| f as usize)).field("pi_R0_allvals", &self.pi_R0_allvals.map(|f| f as usize)).field("pi_R3_1val", &self.pi_R3_1val.map(|f| f as usize)).field("pi_R3_allvals", &self.pi_R3_allvals.map(|f| f as usize)).field("pi_flags", &self.pi_flags).field("pi_key_context", &self.pi_key_context).finish() } } -unsafe impl ::windows::core::Abi for provider_info { +unsafe impl ::windows::core::Abi for REG_PROVIDER { type Abi = Self; } -impl ::core::cmp::PartialEq for provider_info { +impl ::core::cmp::PartialEq for REG_PROVIDER { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for provider_info {} -impl ::core::default::Default for provider_info { +impl ::core::cmp::Eq for REG_PROVIDER {} +impl ::core::default::Default for REG_PROVIDER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Registry\"`*"] -pub struct pvalueA { - pub pv_valuename: ::windows::core::PSTR, - pub pv_valuelen: i32, - pub pv_value_context: *mut ::core::ffi::c_void, - pub pv_type: u32, +pub struct VALENTA { + pub ve_valuename: ::windows::core::PSTR, + pub ve_valuelen: u32, + pub ve_valueptr: usize, + pub ve_type: REG_VALUE_TYPE, } -impl ::core::marker::Copy for pvalueA {} -impl ::core::clone::Clone for pvalueA { +impl ::core::marker::Copy for VALENTA {} +impl ::core::clone::Clone for VALENTA { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for pvalueA { +impl ::core::fmt::Debug for VALENTA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("pvalueA").field("pv_valuename", &self.pv_valuename).field("pv_valuelen", &self.pv_valuelen).field("pv_value_context", &self.pv_value_context).field("pv_type", &self.pv_type).finish() + f.debug_struct("VALENTA").field("ve_valuename", &self.ve_valuename).field("ve_valuelen", &self.ve_valuelen).field("ve_valueptr", &self.ve_valueptr).field("ve_type", &self.ve_type).finish() } } -unsafe impl ::windows::core::Abi for pvalueA { +unsafe impl ::windows::core::Abi for VALENTA { type Abi = Self; } -impl ::core::cmp::PartialEq for pvalueA { +impl ::core::cmp::PartialEq for VALENTA { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for pvalueA {} -impl ::core::default::Default for pvalueA { +impl ::core::cmp::Eq for VALENTA {} +impl ::core::default::Default for VALENTA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Registry\"`*"] -pub struct pvalueW { - pub pv_valuename: ::windows::core::PWSTR, - pub pv_valuelen: i32, - pub pv_value_context: *mut ::core::ffi::c_void, - pub pv_type: u32, +pub struct VALENTW { + pub ve_valuename: ::windows::core::PWSTR, + pub ve_valuelen: u32, + pub ve_valueptr: usize, + pub ve_type: REG_VALUE_TYPE, } -impl ::core::marker::Copy for pvalueW {} -impl ::core::clone::Clone for pvalueW { +impl ::core::marker::Copy for VALENTW {} +impl ::core::clone::Clone for VALENTW { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for pvalueW { +impl ::core::fmt::Debug for VALENTW { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("pvalueW").field("pv_valuename", &self.pv_valuename).field("pv_valuelen", &self.pv_valuelen).field("pv_value_context", &self.pv_value_context).field("pv_type", &self.pv_type).finish() + f.debug_struct("VALENTW").field("ve_valuename", &self.ve_valuename).field("ve_valuelen", &self.ve_valuelen).field("ve_valueptr", &self.ve_valueptr).field("ve_type", &self.ve_type).finish() } } -unsafe impl ::windows::core::Abi for pvalueW { +unsafe impl ::windows::core::Abi for VALENTW { type Abi = Self; } -impl ::core::cmp::PartialEq for pvalueW { +impl ::core::cmp::PartialEq for VALENTW { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for pvalueW {} -impl ::core::default::Default for pvalueW { +impl ::core::cmp::Eq for VALENTW {} +impl ::core::default::Default for VALENTW { fn default() -> Self { unsafe { ::core::mem::zeroed() } } 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 cac60432c2..fb574bdc03 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs @@ -1,39 +1,6 @@ #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn WTSEnableChildSessions<'a, P0>(benable: P0) -> super::super::Foundation::BOOL -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WTSEnableChildSessions(benable: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - } - WTSEnableChildSessions(benable.into()) -} -#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn WTSGetChildSessionId(psessionid: &mut u32) -> super::super::Foundation::BOOL { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WTSGetChildSessionId(psessionid: *mut u32) -> super::super::Foundation::BOOL; - } - WTSGetChildSessionId(::core::mem::transmute(psessionid)) -} -#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn WTSIsChildSessionsEnabled(pbenabled: &mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn WTSIsChildSessionsEnabled(pbenabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - } - WTSIsChildSessionsEnabled(::core::mem::transmute(pbenabled)) -} -#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] pub unsafe fn ProcessIdToSessionId(dwprocessid: u32, psessionid: &mut u32) -> super::super::Foundation::BOOL { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -127,6 +94,19 @@ where #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn WTSEnableChildSessions<'a, P0>(benable: P0) -> super::super::Foundation::BOOL +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WTSEnableChildSessions(benable: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; + } + WTSEnableChildSessions(benable.into()) +} +#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn WTSEnumerateListenersA<'a, P0>(hserver: P0, preserved: *const ::core::ffi::c_void, reserved: u32, plisteners: *mut *mut i8, pcount: &mut u32) -> super::super::Foundation::BOOL where P0: ::std::convert::Into, @@ -318,6 +298,16 @@ pub unsafe fn WTSGetActiveConsoleSessionId() -> u32 { } WTSGetActiveConsoleSessionId() } +#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn WTSGetChildSessionId(psessionid: &mut u32) -> super::super::Foundation::BOOL { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WTSGetChildSessionId(psessionid: *mut u32) -> super::super::Foundation::BOOL; + } + WTSGetChildSessionId(::core::mem::transmute(psessionid)) +} #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] #[inline] @@ -349,6 +339,16 @@ where #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] +pub unsafe fn WTSIsChildSessionsEnabled(pbenabled: &mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn WTSIsChildSessionsEnabled(pbenabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; + } + WTSIsChildSessionsEnabled(::core::mem::transmute(pbenabled)) +} +#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] pub unsafe fn WTSLogoffSession<'a, P0, P1>(hserver: P0, sessionid: u32, bwait: P1) -> super::super::Foundation::BOOL where P0: ::std::convert::Into, @@ -11662,6 +11662,76 @@ impl ::core::convert::From<::core::option::Option> for unsafe impl ::windows::core::Abi for HwtsVirtualChannelHandle { type Abi = Self; } +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct PRODUCT_INFOA { + pub CompanyName: [super::super::Foundation::CHAR; 256], + pub ProductID: [super::super::Foundation::CHAR; 4], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for PRODUCT_INFOA {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for PRODUCT_INFOA { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for PRODUCT_INFOA { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("PRODUCT_INFOA").field("CompanyName", &self.CompanyName).field("ProductID", &self.ProductID).finish() + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for PRODUCT_INFOA { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for PRODUCT_INFOA { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for PRODUCT_INFOA {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for PRODUCT_INFOA { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] +pub struct PRODUCT_INFOW { + pub CompanyName: [u16; 256], + pub ProductID: [u16; 4], +} +impl ::core::marker::Copy for PRODUCT_INFOW {} +impl ::core::clone::Clone for PRODUCT_INFOW { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for PRODUCT_INFOW { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("PRODUCT_INFOW").field("CompanyName", &self.CompanyName).field("ProductID", &self.ProductID).finish() + } +} +unsafe impl ::windows::core::Abi for PRODUCT_INFOW { + type Abi = Self; +} +impl ::core::cmp::PartialEq for PRODUCT_INFOW { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for PRODUCT_INFOW {} +impl ::core::default::Default for PRODUCT_INFOW { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15066,7 +15136,7 @@ impl ::core::default::Default for WTS_USER_DATA { #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct WTS_VALIDATION_INFORMATIONA { - pub ProductInfo: _WTS_PRODUCT_INFOA, + pub ProductInfo: PRODUCT_INFOA, pub License: [u8; 16384], pub LicenseLength: u32, pub HardwareID: [u8; 20], @@ -15107,7 +15177,7 @@ impl ::core::default::Default for WTS_VALIDATION_INFORMATIONA { #[repr(C)] #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] pub struct WTS_VALIDATION_INFORMATIONW { - pub ProductInfo: _WTS_PRODUCT_INFOW, + pub ProductInfo: PRODUCT_INFOW, pub License: [u8; 16384], pub LicenseLength: u32, pub HardwareID: [u8; 20], @@ -15139,76 +15209,6 @@ impl ::core::default::Default for WTS_VALIDATION_INFORMATIONW { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct _WTS_PRODUCT_INFOA { - pub CompanyName: [super::super::Foundation::CHAR; 256], - pub ProductID: [super::super::Foundation::CHAR; 4], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _WTS_PRODUCT_INFOA {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _WTS_PRODUCT_INFOA { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for _WTS_PRODUCT_INFOA { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_WTS_PRODUCT_INFOA").field("CompanyName", &self.CompanyName).field("ProductID", &self.ProductID).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for _WTS_PRODUCT_INFOA { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for _WTS_PRODUCT_INFOA { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_WTS_PRODUCT_INFOA>()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for _WTS_PRODUCT_INFOA {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for _WTS_PRODUCT_INFOA { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] -pub struct _WTS_PRODUCT_INFOW { - pub CompanyName: [u16; 256], - pub ProductID: [u16; 4], -} -impl ::core::marker::Copy for _WTS_PRODUCT_INFOW {} -impl ::core::clone::Clone for _WTS_PRODUCT_INFOW { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _WTS_PRODUCT_INFOW { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_WTS_PRODUCT_INFOW").field("CompanyName", &self.CompanyName).field("ProductID", &self.ProductID).finish() - } -} -unsafe impl ::windows::core::Abi for _WTS_PRODUCT_INFOW { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _WTS_PRODUCT_INFOW { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_WTS_PRODUCT_INFOW>()) == 0 } - } -} -impl ::core::cmp::Eq for _WTS_PRODUCT_INFOW {} -impl ::core::default::Default for _WTS_PRODUCT_INFOW { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] pub struct pluginResource { pub alias: [u16; 256], diff --git a/crates/libs/windows/src/Windows/Win32/System/Restore/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Restore/mod.rs index 4777e33f19..a47b03865b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Restore/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Restore/mod.rs @@ -160,6 +160,42 @@ impl ::core::default::Default for RESTOREPOINTINFOA { } } #[repr(C, packed(1))] +#[doc = "*Required features: `\"Win32_System_Restore\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct RESTOREPOINTINFOEX { + pub ftCreation: super::super::Foundation::FILETIME, + pub dwEventType: u32, + pub dwRestorePtType: u32, + pub dwRPNum: u32, + pub szDescription: [u16; 256], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for RESTOREPOINTINFOEX {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for RESTOREPOINTINFOEX { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for RESTOREPOINTINFOEX { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for RESTOREPOINTINFOEX { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for RESTOREPOINTINFOEX {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for RESTOREPOINTINFOEX { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_Restore\"`*"] pub struct RESTOREPOINTINFOW { pub dwEventType: RESTOREPOINTINFO_EVENT_TYPE, @@ -213,41 +249,5 @@ impl ::core::default::Default for STATEMGRSTATUS { unsafe { ::core::mem::zeroed() } } } -#[repr(C, packed(1))] -#[doc = "*Required features: `\"Win32_System_Restore\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct _RESTOREPTINFOEX { - pub ftCreation: super::super::Foundation::FILETIME, - pub dwEventType: u32, - pub dwRestorePtType: u32, - pub dwRPNum: u32, - pub szDescription: [u16; 256], -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _RESTOREPTINFOEX {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _RESTOREPTINFOEX { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for _RESTOREPTINFOEX { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for _RESTOREPTINFOEX { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_RESTOREPTINFOEX>()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for _RESTOREPTINFOEX {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for _RESTOREPTINFOEX { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[cfg(feature = "implement")] ::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs index a662595aa5..5852db5578 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs @@ -1,12 +1,3 @@ -#[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -#[inline] -pub unsafe fn I_RpcServerInqAddressChangeFn() -> *mut RPC_ADDRESS_CHANGE_FN { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn I_RpcServerInqAddressChangeFn() -> *mut RPC_ADDRESS_CHANGE_FN; - } - I_RpcServerInqAddressChangeFn() -} #[doc = "*Required features: `\"Win32_System_Rpc\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] #[inline] @@ -633,6 +624,15 @@ pub unsafe fn I_RpcServerGetAssociationID(binding: *const ::core::ffi::c_void, a } #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] #[inline] +pub unsafe fn I_RpcServerInqAddressChangeFn() -> *mut RPC_ADDRESS_CHANGE_FN { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn I_RpcServerInqAddressChangeFn() -> *mut RPC_ADDRESS_CHANGE_FN; + } + I_RpcServerInqAddressChangeFn() +} +#[doc = "*Required features: `\"Win32_System_Rpc\"`*"] +#[inline] pub unsafe fn I_RpcServerInqLocalConnAddress(binding: *mut ::core::ffi::c_void, buffer: *mut ::core::ffi::c_void, buffersize: &mut u32, addressformat: &mut u32) -> RPC_STATUS { #[cfg_attr(windows, link(name = "windows"))] extern "system" { @@ -6249,48 +6249,48 @@ impl ::core::fmt::Debug for RpcLocalAddressFormat { #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct RpcProxyPerfCounters(pub i32); +pub struct RpcPerfCounters(pub i32); #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcCurrentUniqueUser: RpcProxyPerfCounters = RpcProxyPerfCounters(1i32); +pub const RpcCurrentUniqueUser: RpcPerfCounters = RpcPerfCounters(1i32); #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcBackEndConnectionAttempts: RpcProxyPerfCounters = RpcProxyPerfCounters(2i32); +pub const RpcBackEndConnectionAttempts: RpcPerfCounters = RpcPerfCounters(2i32); #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcBackEndConnectionFailed: RpcProxyPerfCounters = RpcProxyPerfCounters(3i32); +pub const RpcBackEndConnectionFailed: RpcPerfCounters = RpcPerfCounters(3i32); #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcRequestsPerSecond: RpcProxyPerfCounters = RpcProxyPerfCounters(4i32); +pub const RpcRequestsPerSecond: RpcPerfCounters = RpcPerfCounters(4i32); #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcIncomingConnections: RpcProxyPerfCounters = RpcProxyPerfCounters(5i32); +pub const RpcIncomingConnections: RpcPerfCounters = RpcPerfCounters(5i32); #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcIncomingBandwidth: RpcProxyPerfCounters = RpcProxyPerfCounters(6i32); +pub const RpcIncomingBandwidth: RpcPerfCounters = RpcPerfCounters(6i32); #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcOutgoingBandwidth: RpcProxyPerfCounters = RpcProxyPerfCounters(7i32); +pub const RpcOutgoingBandwidth: RpcPerfCounters = RpcPerfCounters(7i32); #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcAttemptedLbsDecisions: RpcProxyPerfCounters = RpcProxyPerfCounters(8i32); +pub const RpcAttemptedLbsDecisions: RpcPerfCounters = RpcPerfCounters(8i32); #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcFailedLbsDecisions: RpcProxyPerfCounters = RpcProxyPerfCounters(9i32); +pub const RpcFailedLbsDecisions: RpcPerfCounters = RpcPerfCounters(9i32); #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcAttemptedLbsMessages: RpcProxyPerfCounters = RpcProxyPerfCounters(10i32); +pub const RpcAttemptedLbsMessages: RpcPerfCounters = RpcPerfCounters(10i32); #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcFailedLbsMessages: RpcProxyPerfCounters = RpcProxyPerfCounters(11i32); +pub const RpcFailedLbsMessages: RpcPerfCounters = RpcPerfCounters(11i32); #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub const RpcLastCounter: RpcProxyPerfCounters = RpcProxyPerfCounters(12i32); -impl ::core::marker::Copy for RpcProxyPerfCounters {} -impl ::core::clone::Clone for RpcProxyPerfCounters { +pub const RpcLastCounter: RpcPerfCounters = RpcPerfCounters(12i32); +impl ::core::marker::Copy for RpcPerfCounters {} +impl ::core::clone::Clone for RpcPerfCounters { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for RpcProxyPerfCounters { +impl ::core::default::Default for RpcPerfCounters { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for RpcProxyPerfCounters { +unsafe impl ::windows::core::Abi for RpcPerfCounters { type Abi = Self; } -impl ::core::fmt::Debug for RpcProxyPerfCounters { +impl ::core::fmt::Debug for RpcPerfCounters { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RpcProxyPerfCounters").field(&self.0).finish() + f.debug_tuple("RpcPerfCounters").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] @@ -12889,7 +12889,7 @@ pub type I_RpcProxyIsValidMachineFn = ::core::option::Option; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] -pub type I_RpcProxyUpdatePerfCounterFn = ::core::option::Option; +pub type I_RpcProxyUpdatePerfCounterFn = ::core::option::Option; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] pub type MIDL_ES_ALLOC = ::core::option::Option; #[doc = "*Required features: `\"Win32_System_Rpc\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs index 21d0604e61..15cd609669 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs @@ -113,17 +113,17 @@ impl DataSourceObject_Vtbl { } #[cfg(feature = "Win32_System_Com")] pub trait IAccessor_Impl: Sized { - fn AddRefAccessor(&self, haccessor: usize) -> ::windows::core::Result; - fn CreateAccessor(&self, dwaccessorflags: u32, cbindings: usize, rgbindings: *const DBBINDING, cbrowsize: usize, phaccessor: *mut usize, rgstatus: *mut u32) -> ::windows::core::Result<()>; - fn GetBindings(&self, haccessor: usize, pdwaccessorflags: *mut u32, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> ::windows::core::Result<()>; - fn ReleaseAccessor(&self, haccessor: usize) -> ::windows::core::Result; + fn AddRefAccessor(&self, haccessor: HACCESSOR) -> ::windows::core::Result; + fn CreateAccessor(&self, dwaccessorflags: u32, cbindings: usize, rgbindings: *const DBBINDING, cbrowsize: usize, phaccessor: *mut HACCESSOR, rgstatus: *mut u32) -> ::windows::core::Result<()>; + fn GetBindings(&self, haccessor: HACCESSOR, pdwaccessorflags: *mut u32, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> ::windows::core::Result<()>; + fn ReleaseAccessor(&self, haccessor: HACCESSOR) -> ::windows::core::Result; } #[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IAccessor {} #[cfg(feature = "Win32_System_Com")] impl IAccessor_Vtbl { pub const fn new, Impl: IAccessor_Impl, const OFFSET: isize>() -> IAccessor_Vtbl { - unsafe extern "system" fn AddRefAccessor, Impl: IAccessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: usize, pcrefcount: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddRefAccessor, Impl: IAccessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, pcrefcount: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddRefAccessor(::core::mem::transmute_copy(&haccessor)) { @@ -134,17 +134,17 @@ impl IAccessor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateAccessor, Impl: IAccessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwaccessorflags: u32, cbindings: usize, rgbindings: *const DBBINDING, cbrowsize: usize, phaccessor: *mut usize, rgstatus: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateAccessor, Impl: IAccessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwaccessorflags: u32, cbindings: usize, rgbindings: *const DBBINDING, cbrowsize: usize, phaccessor: *mut HACCESSOR, rgstatus: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreateAccessor(::core::mem::transmute_copy(&dwaccessorflags), ::core::mem::transmute_copy(&cbindings), ::core::mem::transmute_copy(&rgbindings), ::core::mem::transmute_copy(&cbrowsize), ::core::mem::transmute_copy(&phaccessor), ::core::mem::transmute_copy(&rgstatus)).into() } - unsafe extern "system" fn GetBindings, Impl: IAccessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: usize, pdwaccessorflags: *mut u32, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBindings, Impl: IAccessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, pdwaccessorflags: *mut u32, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetBindings(::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&pdwaccessorflags), ::core::mem::transmute_copy(&pcbindings), ::core::mem::transmute_copy(&prgbindings)).into() } - unsafe extern "system" fn ReleaseAccessor, Impl: IAccessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: usize, pcrefcount: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReleaseAccessor, Impl: IAccessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, pcrefcount: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReleaseAccessor(::core::mem::transmute_copy(&haccessor)) { @@ -1636,8 +1636,8 @@ impl IDataInitialize_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IDataSourceLocator_Impl: Sized + super::Com::IDispatch_Impl { - fn hWnd(&self) -> ::windows::core::Result; - fn SethWnd(&self, hwndparent: i64) -> ::windows::core::Result<()>; + fn hWnd(&self) -> ::windows::core::Result; + fn SethWnd(&self, hwndparent: super::super::Foundation::HWND) -> ::windows::core::Result<()>; fn PromptNew(&self) -> ::windows::core::Result; fn PromptEdit(&self, ppadoconnection: *mut ::core::option::Option, pbsuccess: *mut i16) -> ::windows::core::Result<()>; } @@ -1646,7 +1646,7 @@ impl ::windows::core::RuntimeName for IDataSourceLocator {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IDataSourceLocator_Vtbl { pub const fn new, Impl: IDataSourceLocator_Impl, const OFFSET: isize>() -> IDataSourceLocator_Vtbl { - unsafe extern "system" fn hWnd, Impl: IDataSourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phwndparent: *mut i64) -> ::windows::core::HRESULT { + unsafe extern "system" fn hWnd, Impl: IDataSourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phwndparent: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.hWnd() { @@ -1657,7 +1657,7 @@ impl IDataSourceLocator_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SethWnd, Impl: IDataSourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: i64) -> ::windows::core::HRESULT { + unsafe extern "system" fn SethWnd, Impl: IDataSourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SethWnd(::core::mem::transmute_copy(&hwndparent)).into() @@ -2354,7 +2354,7 @@ pub trait IMDDataset_Impl: Sized { fn FreeAxisInfo(&self, caxes: usize, rgaxisinfo: *mut MDAXISINFO) -> ::windows::core::Result<()>; fn GetAxisInfo(&self, pcaxes: *mut usize, prgaxisinfo: *mut *mut MDAXISINFO) -> ::windows::core::Result<()>; fn GetAxisRowset(&self, punkouter: &::core::option::Option<::windows::core::IUnknown>, iaxis: usize, riid: *const ::windows::core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut ::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; - fn GetCellData(&self, haccessor: usize, ulstartcell: usize, ulendcell: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn GetCellData(&self, haccessor: HACCESSOR, ulstartcell: usize, ulendcell: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn GetSpecification(&self, riid: *const ::windows::core::GUID) -> ::windows::core::Result<::windows::core::IUnknown>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2377,7 +2377,7 @@ impl IMDDataset_Vtbl { let this = (*this).get_impl(); this.GetAxisRowset(::core::mem::transmute(&punkouter), ::core::mem::transmute_copy(&iaxis), ::core::mem::transmute_copy(&riid), ::core::mem::transmute_copy(&cpropertysets), ::core::mem::transmute_copy(&rgpropertysets), ::core::mem::transmute_copy(&pprowset)).into() } - unsafe extern "system" fn GetCellData, Impl: IMDDataset_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: usize, ulstartcell: usize, ulendcell: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCellData, Impl: IMDDataset_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, ulstartcell: usize, ulendcell: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetCellData(::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&ulstartcell), ::core::mem::transmute_copy(&ulendcell), ::core::mem::transmute_copy(&pdata)).into() @@ -2915,13 +2915,13 @@ impl IQuerySolution_Vtbl { } } pub trait IReadData_Impl: Sized { - fn ReadData(&self, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, haccessor: usize, crows: isize, pcrowsobtained: *mut usize, ppfixeddata: *mut *mut u8, pcbvariabletotal: *mut usize, ppvariabledata: *mut *mut u8) -> ::windows::core::Result<()>; + fn ReadData(&self, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, haccessor: HACCESSOR, crows: isize, pcrowsobtained: *mut usize, ppfixeddata: *mut *mut u8, pcbvariabletotal: *mut usize, ppvariabledata: *mut *mut u8) -> ::windows::core::Result<()>; fn ReleaseChapter(&self, hchapter: usize) -> ::windows::core::Result<()>; } impl ::windows::core::RuntimeName for IReadData {} impl IReadData_Vtbl { pub const fn new, Impl: IReadData_Impl, const OFFSET: isize>() -> IReadData_Vtbl { - unsafe extern "system" fn ReadData, Impl: IReadData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, haccessor: usize, crows: isize, pcrowsobtained: *mut usize, ppfixeddata: *mut *mut u8, pcbvariabletotal: *mut usize, ppvariabledata: *mut *mut u8) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReadData, Impl: IReadData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, haccessor: HACCESSOR, crows: isize, pcrowsobtained: *mut usize, ppfixeddata: *mut *mut u8, pcbvariabletotal: *mut usize, ppvariabledata: *mut *mut u8) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReadData(::core::mem::transmute_copy(&hchapter), ::core::mem::transmute_copy(&cbbookmark), ::core::mem::transmute_copy(&pbookmark), ::core::mem::transmute_copy(&lrowsoffset), ::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&crows), ::core::mem::transmute_copy(&pcrowsobtained), ::core::mem::transmute_copy(&ppfixeddata), ::core::mem::transmute_copy(&pcbvariabletotal), ::core::mem::transmute_copy(&ppvariabledata)).into() @@ -3245,7 +3245,7 @@ impl IRowSchemaChange_Vtbl { } pub trait IRowset_Impl: Sized { fn AddRefRows(&self, crows: usize, rghrows: *const usize, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> ::windows::core::Result<()>; - fn GetData(&self, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn GetData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn GetNextRows(&self, hreserved: usize, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> ::windows::core::Result<()>; fn ReleaseRows(&self, crows: usize, rghrows: *const usize, rgrowoptions: *mut u32, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> ::windows::core::Result<()>; fn RestartPosition(&self, hreserved: usize) -> ::windows::core::Result<()>; @@ -3258,7 +3258,7 @@ impl IRowset_Vtbl { let this = (*this).get_impl(); this.AddRefRows(::core::mem::transmute_copy(&crows), ::core::mem::transmute_copy(&rghrows), ::core::mem::transmute_copy(&rgrefcounts), ::core::mem::transmute_copy(&rgrowstatus)).into() } - unsafe extern "system" fn GetData, Impl: IRowset_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetData, Impl: IRowset_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetData(::core::mem::transmute_copy(&hrow), ::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&pdata)).into() @@ -3340,8 +3340,8 @@ impl IRowsetBookmark_Vtbl { } pub trait IRowsetChange_Impl: Sized { fn DeleteRows(&self, hreserved: usize, crows: usize, rghrows: *const usize, rgrowstatus: *mut u32) -> ::windows::core::Result<()>; - fn SetData(&self, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; - fn InsertRow(&self, hreserved: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void, phrow: *mut usize) -> ::windows::core::Result<()>; + fn SetData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn InsertRow(&self, hreserved: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void, phrow: *mut usize) -> ::windows::core::Result<()>; } impl ::windows::core::RuntimeName for IRowsetChange {} impl IRowsetChange_Vtbl { @@ -3351,12 +3351,12 @@ impl IRowsetChange_Vtbl { let this = (*this).get_impl(); this.DeleteRows(::core::mem::transmute_copy(&hreserved), ::core::mem::transmute_copy(&crows), ::core::mem::transmute_copy(&rghrows), ::core::mem::transmute_copy(&rgrowstatus)).into() } - unsafe extern "system" fn SetData, Impl: IRowsetChange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetData, Impl: IRowsetChange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetData(::core::mem::transmute_copy(&hrow), ::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn InsertRow, Impl: IRowsetChange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hreserved: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void, phrow: *mut usize) -> ::windows::core::HRESULT { + unsafe extern "system" fn InsertRow, Impl: IRowsetChange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hreserved: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void, phrow: *mut usize) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InsertRow(::core::mem::transmute_copy(&hreserved), ::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&pdata), ::core::mem::transmute_copy(&phrow)).into() @@ -3533,7 +3533,7 @@ impl IRowsetEvents_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IRowsetFastLoad_Impl: Sized { - fn InsertRow(&self, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn InsertRow(&self, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn Commit(&self, fdone: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] @@ -3541,7 +3541,7 @@ impl ::windows::core::RuntimeName for IRowsetFastLoad {} #[cfg(feature = "Win32_Foundation")] impl IRowsetFastLoad_Vtbl { pub const fn new, Impl: IRowsetFastLoad_Impl, const OFFSET: isize>() -> IRowsetFastLoad_Vtbl { - unsafe extern "system" fn InsertRow, Impl: IRowsetFastLoad_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn InsertRow, Impl: IRowsetFastLoad_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InsertRow(::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&pdata)).into() @@ -3562,12 +3562,12 @@ impl IRowsetFastLoad_Vtbl { } } pub trait IRowsetFind_Impl: Sized { - fn FindNextRow(&self, hchapter: usize, haccessor: usize, pfindvalue: *mut ::core::ffi::c_void, compareop: u32, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> ::windows::core::Result<()>; + fn FindNextRow(&self, hchapter: usize, haccessor: HACCESSOR, pfindvalue: *mut ::core::ffi::c_void, compareop: u32, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> ::windows::core::Result<()>; } impl ::windows::core::RuntimeName for IRowsetFind {} impl IRowsetFind_Vtbl { pub const fn new, Impl: IRowsetFind_Impl, const OFFSET: isize>() -> IRowsetFind_Vtbl { - unsafe extern "system" fn FindNextRow, Impl: IRowsetFind_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hchapter: usize, haccessor: usize, pfindvalue: *mut ::core::ffi::c_void, compareop: u32, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindNextRow, Impl: IRowsetFind_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hchapter: usize, haccessor: HACCESSOR, pfindvalue: *mut ::core::ffi::c_void, compareop: u32, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FindNextRow(::core::mem::transmute_copy(&hchapter), ::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&pfindvalue), ::core::mem::transmute_copy(&compareop), ::core::mem::transmute_copy(&cbbookmark), ::core::mem::transmute_copy(&pbookmark), ::core::mem::transmute_copy(&lrowsoffset), ::core::mem::transmute_copy(&crows), ::core::mem::transmute_copy(&pcrowsobtained), ::core::mem::transmute_copy(&prghrows)).into() @@ -3598,8 +3598,8 @@ impl IRowsetIdentity_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRowsetIndex_Impl: Sized { fn GetIndexInfo(&self, pckeycolumns: *mut usize, prgindexcolumndesc: *mut *mut DBINDEXCOLUMNDESC, pcindexpropertysets: *mut u32, prgindexpropertysets: *mut *mut DBPROPSET) -> ::windows::core::Result<()>; - fn Seek(&self, haccessor: usize, ckeyvalues: usize, pdata: *mut ::core::ffi::c_void, dwseekoptions: u32) -> ::windows::core::Result<()>; - fn SetRange(&self, haccessor: usize, cstartkeycolumns: usize, pstartdata: *mut ::core::ffi::c_void, cendkeycolumns: usize, penddata: *mut ::core::ffi::c_void, dwrangeoptions: u32) -> ::windows::core::Result<()>; + fn Seek(&self, haccessor: HACCESSOR, ckeyvalues: usize, pdata: *mut ::core::ffi::c_void, dwseekoptions: u32) -> ::windows::core::Result<()>; + fn SetRange(&self, haccessor: HACCESSOR, cstartkeycolumns: usize, pstartdata: *mut ::core::ffi::c_void, cendkeycolumns: usize, penddata: *mut ::core::ffi::c_void, dwrangeoptions: u32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRowsetIndex {} @@ -3611,12 +3611,12 @@ impl IRowsetIndex_Vtbl { let this = (*this).get_impl(); this.GetIndexInfo(::core::mem::transmute_copy(&pckeycolumns), ::core::mem::transmute_copy(&prgindexcolumndesc), ::core::mem::transmute_copy(&pcindexpropertysets), ::core::mem::transmute_copy(&prgindexpropertysets)).into() } - unsafe extern "system" fn Seek, Impl: IRowsetIndex_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: usize, ckeyvalues: usize, pdata: *mut ::core::ffi::c_void, dwseekoptions: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Seek, Impl: IRowsetIndex_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, ckeyvalues: usize, pdata: *mut ::core::ffi::c_void, dwseekoptions: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Seek(::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&ckeyvalues), ::core::mem::transmute_copy(&pdata), ::core::mem::transmute_copy(&dwseekoptions)).into() } - unsafe extern "system" fn SetRange, Impl: IRowsetIndex_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: usize, cstartkeycolumns: usize, pstartdata: *mut ::core::ffi::c_void, cendkeycolumns: usize, penddata: *mut ::core::ffi::c_void, dwrangeoptions: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRange, Impl: IRowsetIndex_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, cstartkeycolumns: usize, pstartdata: *mut ::core::ffi::c_void, cendkeycolumns: usize, penddata: *mut ::core::ffi::c_void, dwrangeoptions: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRange(::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&cstartkeycolumns), ::core::mem::transmute_copy(&pstartdata), ::core::mem::transmute_copy(&cendkeycolumns), ::core::mem::transmute_copy(&penddata), ::core::mem::transmute_copy(&dwrangeoptions)).into() @@ -3740,12 +3740,12 @@ impl IRowsetLocate_Vtbl { } } pub trait IRowsetNewRowAfter_Impl: Sized { - fn SetNewDataAfter(&self, hchapter: usize, cbbmprevious: u32, pbmprevious: *const u8, haccessor: usize, pdata: *mut u8, phrow: *mut usize) -> ::windows::core::Result<()>; + fn SetNewDataAfter(&self, hchapter: usize, cbbmprevious: u32, pbmprevious: *const u8, haccessor: HACCESSOR, pdata: *mut u8, phrow: *mut usize) -> ::windows::core::Result<()>; } impl ::windows::core::RuntimeName for IRowsetNewRowAfter {} impl IRowsetNewRowAfter_Vtbl { pub const fn new, Impl: IRowsetNewRowAfter_Impl, const OFFSET: isize>() -> IRowsetNewRowAfter_Vtbl { - unsafe extern "system" fn SetNewDataAfter, Impl: IRowsetNewRowAfter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hchapter: usize, cbbmprevious: u32, pbmprevious: *const u8, haccessor: usize, pdata: *mut u8, phrow: *mut usize) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetNewDataAfter, Impl: IRowsetNewRowAfter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hchapter: usize, cbbmprevious: u32, pbmprevious: *const u8, haccessor: HACCESSOR, pdata: *mut u8, phrow: *mut usize) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetNewDataAfter(::core::mem::transmute_copy(&hchapter), ::core::mem::transmute_copy(&cbbmprevious), ::core::mem::transmute_copy(&pbmprevious), ::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&pdata), ::core::mem::transmute_copy(&phrow)).into() @@ -3880,7 +3880,7 @@ impl IRowsetQueryStatus_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IRowsetRefresh_Impl: Sized { fn RefreshVisibleData(&self, hchapter: usize, crows: usize, rghrows: *const usize, foverwrite: super::super::Foundation::BOOL, pcrowsrefreshed: *mut usize, prghrowsrefreshed: *mut *mut usize, prgrowstatus: *mut *mut u32) -> ::windows::core::Result<()>; - fn GetLastVisibleData(&self, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn GetLastVisibleData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRowsetRefresh {} @@ -3892,7 +3892,7 @@ impl IRowsetRefresh_Vtbl { let this = (*this).get_impl(); this.RefreshVisibleData(::core::mem::transmute_copy(&hchapter), ::core::mem::transmute_copy(&crows), ::core::mem::transmute_copy(&rghrows), ::core::mem::transmute_copy(&foverwrite), ::core::mem::transmute_copy(&pcrowsrefreshed), ::core::mem::transmute_copy(&prghrowsrefreshed), ::core::mem::transmute_copy(&prgrowstatus)).into() } - unsafe extern "system" fn GetLastVisibleData, Impl: IRowsetRefresh_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLastVisibleData, Impl: IRowsetRefresh_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetLastVisibleData(::core::mem::transmute_copy(&hrow), ::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&pdata)).into() @@ -3908,13 +3908,13 @@ impl IRowsetRefresh_Vtbl { } } pub trait IRowsetResynch_Impl: Sized { - fn GetVisibleData(&self, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn GetVisibleData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn ResynchRows(&self, crows: usize, rghrows: *const usize, pcrowsresynched: *mut usize, prghrowsresynched: *mut *mut usize, prgrowstatus: *mut *mut u32) -> ::windows::core::Result<()>; } impl ::windows::core::RuntimeName for IRowsetResynch {} impl IRowsetResynch_Vtbl { pub const fn new, Impl: IRowsetResynch_Impl, const OFFSET: isize>() -> IRowsetResynch_Vtbl { - unsafe extern "system" fn GetVisibleData, Impl: IRowsetResynch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetVisibleData, Impl: IRowsetResynch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetVisibleData(::core::mem::transmute_copy(&hrow), ::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&pdata)).into() @@ -3962,7 +3962,7 @@ impl IRowsetScroll_Vtbl { } } pub trait IRowsetUpdate_Impl: Sized + IRowsetChange_Impl { - fn GetOriginalData(&self, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn GetOriginalData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn GetPendingRows(&self, hreserved: usize, dwrowstatus: u32, pcpendingrows: *mut usize, prgpendingrows: *mut *mut usize, prgpendingstatus: *mut *mut u32) -> ::windows::core::Result<()>; fn GetRowStatus(&self, hreserved: usize, crows: usize, rghrows: *const usize, rgpendingstatus: *mut u32) -> ::windows::core::Result<()>; fn Undo(&self, hreserved: usize, crows: usize, rghrows: *const usize, pcrowsundone: *mut usize, prgrowsundone: *mut *mut usize, prgrowstatus: *mut *mut u32) -> ::windows::core::Result<()>; @@ -3971,7 +3971,7 @@ pub trait IRowsetUpdate_Impl: Sized + IRowsetChange_Impl { impl ::windows::core::RuntimeName for IRowsetUpdate {} impl IRowsetUpdate_Vtbl { pub const fn new, Impl: IRowsetUpdate_Impl, const OFFSET: isize>() -> IRowsetUpdate_Vtbl { - unsafe extern "system" fn GetOriginalData, Impl: IRowsetUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetOriginalData, Impl: IRowsetUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetOriginalData(::core::mem::transmute_copy(&hrow), ::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&pdata)).into() @@ -4098,7 +4098,7 @@ pub trait IRowsetWatchRegion_Impl: Sized + IRowsetWatchAll_Impl { fn ChangeWatchMode(&self, hregion: usize, dwwatchmode: u32) -> ::windows::core::Result<()>; fn DeleteWatchRegion(&self, hregion: usize) -> ::windows::core::Result<()>; fn GetWatchRegionInfo(&self, hregion: usize, pdwwatchmode: *mut u32, phchapter: *mut usize, pcbbookmark: *mut usize, ppbookmark: *mut *mut u8, pcrows: *mut isize) -> ::windows::core::Result<()>; - fn Refresh(&self, pcchangesobtained: *mut usize, prgchanges: *mut *mut tagDBROWWATCHRANGE) -> ::windows::core::Result<()>; + fn Refresh(&self, pcchangesobtained: *mut usize, prgchanges: *mut *mut DBROWWATCHCHANGE) -> ::windows::core::Result<()>; fn ShrinkWatchRegion(&self, hregion: usize, hchapter: usize, cbbookmark: usize, pbookmark: *mut u8, crows: isize) -> ::windows::core::Result<()>; } impl ::windows::core::RuntimeName for IRowsetWatchRegion {} @@ -4124,7 +4124,7 @@ impl IRowsetWatchRegion_Vtbl { let this = (*this).get_impl(); this.GetWatchRegionInfo(::core::mem::transmute_copy(&hregion), ::core::mem::transmute_copy(&pdwwatchmode), ::core::mem::transmute_copy(&phchapter), ::core::mem::transmute_copy(&pcbbookmark), ::core::mem::transmute_copy(&ppbookmark), ::core::mem::transmute_copy(&pcrows)).into() } - unsafe extern "system" fn Refresh, Impl: IRowsetWatchRegion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchangesobtained: *mut usize, prgchanges: *mut *mut tagDBROWWATCHRANGE) -> ::windows::core::HRESULT { + unsafe extern "system" fn Refresh, Impl: IRowsetWatchRegion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcchangesobtained: *mut usize, prgchanges: *mut *mut DBROWWATCHCHANGE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Refresh(::core::mem::transmute_copy(&pcchangesobtained), ::core::mem::transmute_copy(&prgchanges)).into() @@ -4236,12 +4236,12 @@ impl ISQLRequestDiagFields_Vtbl { } } pub trait ISQLServerErrorInfo_Impl: Sized { - fn GetErrorInfo(&self, pperrorinfo: *mut *mut tagSSErrorInfo, ppstringsbuffer: *mut *mut u16) -> ::windows::core::Result<()>; + fn GetErrorInfo(&self, pperrorinfo: *mut *mut SSERRORINFO, ppstringsbuffer: *mut *mut u16) -> ::windows::core::Result<()>; } impl ::windows::core::RuntimeName for ISQLServerErrorInfo {} impl ISQLServerErrorInfo_Vtbl { pub const fn new, Impl: ISQLServerErrorInfo_Impl, const OFFSET: isize>() -> ISQLServerErrorInfo_Vtbl { - unsafe extern "system" fn GetErrorInfo, Impl: ISQLServerErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pperrorinfo: *mut *mut tagSSErrorInfo, ppstringsbuffer: *mut *mut u16) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetErrorInfo, Impl: ISQLServerErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pperrorinfo: *mut *mut SSERRORINFO, ppstringsbuffer: *mut *mut u16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetErrorInfo(::core::mem::transmute_copy(&pperrorinfo), ::core::mem::transmute_copy(&ppstringsbuffer)).into() @@ -7101,16 +7101,16 @@ impl IViewChapter_Vtbl { } #[cfg(feature = "Win32_System_Com")] pub trait IViewFilter_Impl: Sized { - fn GetFilter(&self, haccessor: usize, pcrows: *mut usize, pcompareops: *mut *mut u32, pcriteriadata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn GetFilter(&self, haccessor: HACCESSOR, pcrows: *mut usize, pcompareops: *mut *mut u32, pcriteriadata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn GetFilterBindings(&self, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> ::windows::core::Result<()>; - fn SetFilter(&self, haccessor: usize, crows: usize, compareops: *const u32, pcriteriadata: *const ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn SetFilter(&self, haccessor: HACCESSOR, crows: usize, compareops: *const u32, pcriteriadata: *const ::core::ffi::c_void) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IViewFilter {} #[cfg(feature = "Win32_System_Com")] impl IViewFilter_Vtbl { pub const fn new, Impl: IViewFilter_Impl, const OFFSET: isize>() -> IViewFilter_Vtbl { - unsafe extern "system" fn GetFilter, Impl: IViewFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: usize, pcrows: *mut usize, pcompareops: *mut *mut u32, pcriteriadata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFilter, Impl: IViewFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, pcrows: *mut usize, pcompareops: *mut *mut u32, pcriteriadata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetFilter(::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&pcrows), ::core::mem::transmute_copy(&pcompareops), ::core::mem::transmute_copy(&pcriteriadata)).into() @@ -7120,7 +7120,7 @@ impl IViewFilter_Vtbl { let this = (*this).get_impl(); this.GetFilterBindings(::core::mem::transmute_copy(&pcbindings), ::core::mem::transmute_copy(&prgbindings)).into() } - unsafe extern "system" fn SetFilter, Impl: IViewFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: usize, crows: usize, compareops: *const u32, pcriteriadata: *const ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFilter, Impl: IViewFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, crows: usize, compareops: *const u32, pcriteriadata: *const ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFilter(::core::mem::transmute_copy(&haccessor), ::core::mem::transmute_copy(&crows), ::core::mem::transmute_copy(&compareops), ::core::mem::transmute_copy(&pcriteriadata)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs index 1c3bfc4566..b5a81e375b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs @@ -2506,23 +2506,32 @@ pub struct DataSourceObject_Vtbl { #[repr(transparent)] pub struct IAccessor(::windows::core::IUnknown); impl IAccessor { - pub unsafe fn AddRefAccessor(&self, haccessor: usize) -> ::windows::core::Result { + pub unsafe fn AddRefAccessor<'a, P0>(&self, haccessor: P0) -> ::windows::core::Result + where + P0: ::std::convert::Into, + { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddRefAccessor)(::windows::core::Interface::as_raw(self), haccessor, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddRefAccessor)(::windows::core::Interface::as_raw(self), haccessor.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn CreateAccessor(&self, dwaccessorflags: u32, cbindings: usize, rgbindings: *const DBBINDING, cbrowsize: usize, phaccessor: &mut usize, rgstatus: *mut u32) -> ::windows::core::Result<()> { + pub unsafe fn CreateAccessor(&self, dwaccessorflags: u32, cbindings: usize, rgbindings: *const DBBINDING, cbrowsize: usize, phaccessor: &mut HACCESSOR, rgstatus: *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CreateAccessor)(::windows::core::Interface::as_raw(self), dwaccessorflags, ::core::mem::transmute(cbindings), ::core::mem::transmute(rgbindings), cbrowsize, ::core::mem::transmute(phaccessor), ::core::mem::transmute(rgstatus)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn GetBindings(&self, haccessor: usize, pdwaccessorflags: &mut u32, pcbindings: ::core::option::Option<&mut usize>, prgbindings: ::core::option::Option<&mut *mut DBBINDING>) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).GetBindings)(::windows::core::Interface::as_raw(self), haccessor, ::core::mem::transmute(pdwaccessorflags), ::core::mem::transmute(pcbindings), ::core::mem::transmute(prgbindings)).ok() + pub unsafe fn GetBindings<'a, P0>(&self, haccessor: P0, pdwaccessorflags: &mut u32, pcbindings: ::core::option::Option<&mut usize>, prgbindings: ::core::option::Option<&mut *mut DBBINDING>) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).GetBindings)(::windows::core::Interface::as_raw(self), haccessor.into(), ::core::mem::transmute(pdwaccessorflags), ::core::mem::transmute(pcbindings), ::core::mem::transmute(prgbindings)).ok() } - pub unsafe fn ReleaseAccessor(&self, haccessor: usize) -> ::windows::core::Result { + pub unsafe fn ReleaseAccessor<'a, P0>(&self, haccessor: P0) -> ::windows::core::Result + where + P0: ::std::convert::Into, + { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReleaseAccessor)(::windows::core::Interface::as_raw(self), haccessor, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReleaseAccessor)(::windows::core::Interface::as_raw(self), haccessor.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -2564,16 +2573,16 @@ unsafe impl ::windows::core::Interface for IAccessor { #[doc(hidden)] pub struct IAccessor_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub AddRefAccessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: usize, pcrefcount: *mut u32) -> ::windows::core::HRESULT, + pub AddRefAccessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, pcrefcount: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub CreateAccessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwaccessorflags: u32, cbindings: usize, rgbindings: *const DBBINDING, cbrowsize: usize, phaccessor: *mut usize, rgstatus: *mut u32) -> ::windows::core::HRESULT, + pub CreateAccessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwaccessorflags: u32, cbindings: usize, rgbindings: *const DBBINDING, cbrowsize: usize, phaccessor: *mut HACCESSOR, rgstatus: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateAccessor: usize, #[cfg(feature = "Win32_System_Com")] - pub GetBindings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: usize, pdwaccessorflags: *mut u32, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> ::windows::core::HRESULT, + pub GetBindings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, pdwaccessorflags: *mut u32, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetBindings: usize, - pub ReleaseAccessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: usize, pcrefcount: *mut u32) -> ::windows::core::HRESULT, + pub ReleaseAccessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, pcrefcount: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] #[repr(transparent)] @@ -5648,12 +5657,19 @@ pub struct IDataInitialize_Vtbl { pub struct IDataSourceLocator(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IDataSourceLocator { - pub unsafe fn hWnd(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn hWnd(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).hWnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).hWnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn SethWnd(&self, hwndparent: i64) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).SethWnd)(::windows::core::Interface::as_raw(self), hwndparent).ok() + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn SethWnd<'a, P0>(&self, hwndparent: P0) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).SethWnd)(::windows::core::Interface::as_raw(self), hwndparent.into()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5733,8 +5749,14 @@ unsafe impl ::windows::core::Interface for IDataSourceLocator { #[doc(hidden)] pub struct IDataSourceLocator_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - pub hWnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwndparent: *mut i64) -> ::windows::core::HRESULT, - pub SethWnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: i64) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_Foundation")] + pub hWnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwndparent: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + hWnd: usize, + #[cfg(feature = "Win32_Foundation")] + pub SethWnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + SethWnd: usize, #[cfg(feature = "Win32_System_Com")] pub PromptNew: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppadoconnection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -6795,8 +6817,11 @@ impl IMDDataset { { (::windows::core::Interface::vtable(self).GetAxisRowset)(::windows::core::Interface::as_raw(self), punkouter.into().abi(), iaxis, ::core::mem::transmute(riid), cpropertysets, ::core::mem::transmute(rgpropertysets), ::core::mem::transmute(pprowset)).ok() } - pub unsafe fn GetCellData(&self, haccessor: usize, ulstartcell: usize, ulendcell: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).GetCellData)(::windows::core::Interface::as_raw(self), haccessor, ulstartcell, ulendcell, ::core::mem::transmute(pdata)).ok() + pub unsafe fn GetCellData<'a, P0>(&self, haccessor: P0, ulstartcell: usize, ulendcell: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).GetCellData)(::windows::core::Interface::as_raw(self), haccessor.into(), ulstartcell, ulendcell, ::core::mem::transmute(pdata)).ok() } pub unsafe fn GetSpecification(&self, riid: &::windows::core::GUID) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6848,7 +6873,7 @@ pub struct IMDDataset_Vtbl { pub GetAxisRowset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, iaxis: usize, riid: *const ::windows::core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetAxisRowset: usize, - pub GetCellData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: usize, ulstartcell: usize, ulendcell: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetCellData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, ulstartcell: usize, ulendcell: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetSpecification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppspecification: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] @@ -7894,8 +7919,11 @@ pub struct IQuerySolution_Vtbl { #[repr(transparent)] pub struct IReadData(::windows::core::IUnknown); impl IReadData { - pub unsafe fn ReadData(&self, hchapter: usize, cbbookmark: usize, pbookmark: &u8, lrowsoffset: isize, haccessor: usize, crows: isize, pcrowsobtained: &mut usize, ppfixeddata: &mut *mut u8, pcbvariabletotal: &mut usize, ppvariabledata: &mut *mut u8) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).ReadData)(::windows::core::Interface::as_raw(self), hchapter, cbbookmark, ::core::mem::transmute(pbookmark), lrowsoffset, haccessor, crows, ::core::mem::transmute(pcrowsobtained), ::core::mem::transmute(ppfixeddata), ::core::mem::transmute(pcbvariabletotal), ::core::mem::transmute(ppvariabledata)).ok() + pub unsafe fn ReadData<'a, P0>(&self, hchapter: usize, cbbookmark: usize, pbookmark: &u8, lrowsoffset: isize, haccessor: P0, crows: isize, pcrowsobtained: &mut usize, ppfixeddata: &mut *mut u8, pcbvariabletotal: &mut usize, ppvariabledata: &mut *mut u8) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).ReadData)(::windows::core::Interface::as_raw(self), hchapter, cbbookmark, ::core::mem::transmute(pbookmark), lrowsoffset, haccessor.into(), crows, ::core::mem::transmute(pcrowsobtained), ::core::mem::transmute(ppfixeddata), ::core::mem::transmute(pcbvariabletotal), ::core::mem::transmute(ppvariabledata)).ok() } pub unsafe fn ReleaseChapter(&self, hchapter: usize) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ReleaseChapter)(::windows::core::Interface::as_raw(self), hchapter).ok() @@ -7940,7 +7968,7 @@ unsafe impl ::windows::core::Interface for IReadData { #[doc(hidden)] pub struct IReadData_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub ReadData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, haccessor: usize, crows: isize, pcrowsobtained: *mut usize, ppfixeddata: *mut *mut u8, pcbvariabletotal: *mut usize, ppvariabledata: *mut *mut u8) -> ::windows::core::HRESULT, + pub ReadData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, haccessor: HACCESSOR, crows: isize, pcrowsobtained: *mut usize, ppfixeddata: *mut *mut u8, pcbvariabletotal: *mut usize, ppvariabledata: *mut *mut u8) -> ::windows::core::HRESULT, pub ReleaseChapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] @@ -8483,8 +8511,11 @@ impl IRowset { pub unsafe fn AddRefRows(&self, crows: usize, rghrows: &usize, rgrefcounts: &mut u32, rgrowstatus: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).AddRefRows)(::windows::core::Interface::as_raw(self), crows, ::core::mem::transmute(rghrows), ::core::mem::transmute(rgrefcounts), ::core::mem::transmute(rgrowstatus)).ok() } - pub unsafe fn GetData(&self, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).GetData)(::windows::core::Interface::as_raw(self), hrow, haccessor, ::core::mem::transmute(pdata)).ok() + pub unsafe fn GetData<'a, P0>(&self, hrow: usize, haccessor: P0, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).GetData)(::windows::core::Interface::as_raw(self), hrow, haccessor.into(), ::core::mem::transmute(pdata)).ok() } pub unsafe fn GetNextRows(&self, hreserved: usize, lrowsoffset: isize, crows: isize, pcrowsobtained: &mut usize, prghrows: &mut *mut usize) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetNextRows)(::windows::core::Interface::as_raw(self), hreserved, lrowsoffset, crows, ::core::mem::transmute(pcrowsobtained), ::core::mem::transmute(prghrows)).ok() @@ -8536,7 +8567,7 @@ unsafe impl ::windows::core::Interface for IRowset { pub struct IRowset_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub AddRefRows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, crows: usize, rghrows: *const usize, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> ::windows::core::HRESULT, - pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetNextRows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> ::windows::core::HRESULT, pub ReleaseRows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, crows: usize, rghrows: *const usize, rgrowoptions: *mut u32, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> ::windows::core::HRESULT, pub RestartPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize) -> ::windows::core::HRESULT, @@ -8655,11 +8686,17 @@ impl IRowsetChange { pub unsafe fn DeleteRows(&self, hreserved: usize, crows: usize, rghrows: &usize, rgrowstatus: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DeleteRows)(::windows::core::Interface::as_raw(self), hreserved, crows, ::core::mem::transmute(rghrows), ::core::mem::transmute(rgrowstatus)).ok() } - pub unsafe fn SetData(&self, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).SetData)(::windows::core::Interface::as_raw(self), hrow, haccessor, ::core::mem::transmute(pdata)).ok() + pub unsafe fn SetData<'a, P0>(&self, hrow: usize, haccessor: P0, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).SetData)(::windows::core::Interface::as_raw(self), hrow, haccessor.into(), ::core::mem::transmute(pdata)).ok() } - pub unsafe fn InsertRow(&self, hreserved: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void, phrow: &mut usize) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).InsertRow)(::windows::core::Interface::as_raw(self), hreserved, haccessor, ::core::mem::transmute(pdata), ::core::mem::transmute(phrow)).ok() + pub unsafe fn InsertRow<'a, P0>(&self, hreserved: usize, haccessor: P0, pdata: *mut ::core::ffi::c_void, phrow: &mut usize) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).InsertRow)(::windows::core::Interface::as_raw(self), hreserved, haccessor.into(), ::core::mem::transmute(pdata), ::core::mem::transmute(phrow)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -8702,8 +8739,8 @@ unsafe impl ::windows::core::Interface for IRowsetChange { pub struct IRowsetChange_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub DeleteRows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, crows: usize, rghrows: *const usize, rgrowstatus: *mut u32) -> ::windows::core::HRESULT, - pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub InsertRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void, phrow: *mut usize) -> ::windows::core::HRESULT, + pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub InsertRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void, phrow: *mut usize) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] #[repr(transparent)] @@ -8880,11 +8917,17 @@ impl IRowsetCurrentIndex { pub unsafe fn GetIndexInfo(&self, pckeycolumns: &mut usize, prgindexcolumndesc: &mut *mut DBINDEXCOLUMNDESC, pcindexpropertysets: &mut u32, prgindexpropertysets: &mut *mut DBPROPSET) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetIndexInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pckeycolumns), ::core::mem::transmute(prgindexcolumndesc), ::core::mem::transmute(pcindexpropertysets), ::core::mem::transmute(prgindexpropertysets)).ok() } - pub unsafe fn Seek(&self, haccessor: usize, ckeyvalues: usize, pdata: *mut ::core::ffi::c_void, dwseekoptions: u32) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).base__.Seek)(::windows::core::Interface::as_raw(self), haccessor, ckeyvalues, ::core::mem::transmute(pdata), dwseekoptions).ok() + pub unsafe fn Seek<'a, P0>(&self, haccessor: P0, ckeyvalues: usize, pdata: *mut ::core::ffi::c_void, dwseekoptions: u32) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).base__.Seek)(::windows::core::Interface::as_raw(self), haccessor.into(), ckeyvalues, ::core::mem::transmute(pdata), dwseekoptions).ok() } - pub unsafe fn SetRange(&self, haccessor: usize, cstartkeycolumns: usize, pstartdata: *mut ::core::ffi::c_void, cendkeycolumns: usize, penddata: *mut ::core::ffi::c_void, dwrangeoptions: u32) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).base__.SetRange)(::windows::core::Interface::as_raw(self), haccessor, cstartkeycolumns, ::core::mem::transmute(pstartdata), cendkeycolumns, ::core::mem::transmute(penddata), dwrangeoptions).ok() + pub unsafe fn SetRange<'a, P0>(&self, haccessor: P0, cstartkeycolumns: usize, pstartdata: *mut ::core::ffi::c_void, cendkeycolumns: usize, penddata: *mut ::core::ffi::c_void, dwrangeoptions: u32) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).base__.SetRange)(::windows::core::Interface::as_raw(self), haccessor.into(), cstartkeycolumns, ::core::mem::transmute(pstartdata), cendkeycolumns, ::core::mem::transmute(penddata), dwrangeoptions).ok() } #[doc = "*Required features: `\"Win32_Storage_IndexServer\"`*"] #[cfg(feature = "Win32_Storage_IndexServer")] @@ -9045,8 +9088,11 @@ pub struct IRowsetEvents_Vtbl { #[repr(transparent)] pub struct IRowsetFastLoad(::windows::core::IUnknown); impl IRowsetFastLoad { - pub unsafe fn InsertRow(&self, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).InsertRow)(::windows::core::Interface::as_raw(self), haccessor, ::core::mem::transmute(pdata)).ok() + pub unsafe fn InsertRow<'a, P0>(&self, haccessor: P0, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).InsertRow)(::windows::core::Interface::as_raw(self), haccessor.into(), ::core::mem::transmute(pdata)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -9096,7 +9142,7 @@ unsafe impl ::windows::core::Interface for IRowsetFastLoad { #[doc(hidden)] pub struct IRowsetFastLoad_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub InsertRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub InsertRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fdone: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -9106,8 +9152,11 @@ pub struct IRowsetFastLoad_Vtbl { #[repr(transparent)] pub struct IRowsetFind(::windows::core::IUnknown); impl IRowsetFind { - pub unsafe fn FindNextRow(&self, hchapter: usize, haccessor: usize, pfindvalue: *mut ::core::ffi::c_void, compareop: u32, cbbookmark: usize, pbookmark: &u8, lrowsoffset: isize, crows: isize, pcrowsobtained: &mut usize, prghrows: &mut *mut usize) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).FindNextRow)(::windows::core::Interface::as_raw(self), hchapter, haccessor, ::core::mem::transmute(pfindvalue), compareop, cbbookmark, ::core::mem::transmute(pbookmark), lrowsoffset, crows, ::core::mem::transmute(pcrowsobtained), ::core::mem::transmute(prghrows)).ok() + pub unsafe fn FindNextRow<'a, P0>(&self, hchapter: usize, haccessor: P0, pfindvalue: *mut ::core::ffi::c_void, compareop: u32, cbbookmark: usize, pbookmark: &u8, lrowsoffset: isize, crows: isize, pcrowsobtained: &mut usize, prghrows: &mut *mut usize) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).FindNextRow)(::windows::core::Interface::as_raw(self), hchapter, haccessor.into(), ::core::mem::transmute(pfindvalue), compareop, cbbookmark, ::core::mem::transmute(pbookmark), lrowsoffset, crows, ::core::mem::transmute(pcrowsobtained), ::core::mem::transmute(prghrows)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -9149,7 +9198,7 @@ unsafe impl ::windows::core::Interface for IRowsetFind { #[doc(hidden)] pub struct IRowsetFind_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub FindNextRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, haccessor: usize, pfindvalue: *mut ::core::ffi::c_void, compareop: u32, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> ::windows::core::HRESULT, + pub FindNextRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, haccessor: HACCESSOR, pfindvalue: *mut ::core::ffi::c_void, compareop: u32, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] #[repr(transparent)] @@ -9209,11 +9258,17 @@ impl IRowsetIndex { pub unsafe fn GetIndexInfo(&self, pckeycolumns: &mut usize, prgindexcolumndesc: &mut *mut DBINDEXCOLUMNDESC, pcindexpropertysets: &mut u32, prgindexpropertysets: &mut *mut DBPROPSET) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetIndexInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pckeycolumns), ::core::mem::transmute(prgindexcolumndesc), ::core::mem::transmute(pcindexpropertysets), ::core::mem::transmute(prgindexpropertysets)).ok() } - pub unsafe fn Seek(&self, haccessor: usize, ckeyvalues: usize, pdata: *mut ::core::ffi::c_void, dwseekoptions: u32) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).Seek)(::windows::core::Interface::as_raw(self), haccessor, ckeyvalues, ::core::mem::transmute(pdata), dwseekoptions).ok() + pub unsafe fn Seek<'a, P0>(&self, haccessor: P0, ckeyvalues: usize, pdata: *mut ::core::ffi::c_void, dwseekoptions: u32) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).Seek)(::windows::core::Interface::as_raw(self), haccessor.into(), ckeyvalues, ::core::mem::transmute(pdata), dwseekoptions).ok() } - pub unsafe fn SetRange(&self, haccessor: usize, cstartkeycolumns: usize, pstartdata: *mut ::core::ffi::c_void, cendkeycolumns: usize, penddata: *mut ::core::ffi::c_void, dwrangeoptions: u32) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).SetRange)(::windows::core::Interface::as_raw(self), haccessor, cstartkeycolumns, ::core::mem::transmute(pstartdata), cendkeycolumns, ::core::mem::transmute(penddata), dwrangeoptions).ok() + pub unsafe fn SetRange<'a, P0>(&self, haccessor: P0, cstartkeycolumns: usize, pstartdata: *mut ::core::ffi::c_void, cendkeycolumns: usize, penddata: *mut ::core::ffi::c_void, dwrangeoptions: u32) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).SetRange)(::windows::core::Interface::as_raw(self), haccessor.into(), cstartkeycolumns, ::core::mem::transmute(pstartdata), cendkeycolumns, ::core::mem::transmute(penddata), dwrangeoptions).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -9259,8 +9314,8 @@ pub struct IRowsetIndex_Vtbl { pub GetIndexInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pckeycolumns: *mut usize, prgindexcolumndesc: *mut *mut DBINDEXCOLUMNDESC, pcindexpropertysets: *mut u32, prgindexpropertysets: *mut *mut DBPROPSET) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetIndexInfo: usize, - pub Seek: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: usize, ckeyvalues: usize, pdata: *mut ::core::ffi::c_void, dwseekoptions: u32) -> ::windows::core::HRESULT, - pub SetRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: usize, cstartkeycolumns: usize, pstartdata: *mut ::core::ffi::c_void, cendkeycolumns: usize, penddata: *mut ::core::ffi::c_void, dwrangeoptions: u32) -> ::windows::core::HRESULT, + pub Seek: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, ckeyvalues: usize, pdata: *mut ::core::ffi::c_void, dwseekoptions: u32) -> ::windows::core::HRESULT, + pub SetRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, cstartkeycolumns: usize, pstartdata: *mut ::core::ffi::c_void, cendkeycolumns: usize, penddata: *mut ::core::ffi::c_void, dwrangeoptions: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] #[repr(transparent)] @@ -9382,8 +9437,11 @@ impl IRowsetLocate { pub unsafe fn AddRefRows(&self, crows: usize, rghrows: &usize, rgrefcounts: &mut u32, rgrowstatus: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.AddRefRows)(::windows::core::Interface::as_raw(self), crows, ::core::mem::transmute(rghrows), ::core::mem::transmute(rgrefcounts), ::core::mem::transmute(rgrowstatus)).ok() } - pub unsafe fn GetData(&self, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).base__.GetData)(::windows::core::Interface::as_raw(self), hrow, haccessor, ::core::mem::transmute(pdata)).ok() + pub unsafe fn GetData<'a, P0>(&self, hrow: usize, haccessor: P0, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).base__.GetData)(::windows::core::Interface::as_raw(self), hrow, haccessor.into(), ::core::mem::transmute(pdata)).ok() } pub unsafe fn GetNextRows(&self, hreserved: usize, lrowsoffset: isize, crows: isize, pcrowsobtained: &mut usize, prghrows: &mut *mut usize) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetNextRows)(::windows::core::Interface::as_raw(self), hreserved, lrowsoffset, crows, ::core::mem::transmute(pcrowsobtained), ::core::mem::transmute(prghrows)).ok() @@ -9470,8 +9528,11 @@ pub struct IRowsetLocate_Vtbl { #[repr(transparent)] pub struct IRowsetNewRowAfter(::windows::core::IUnknown); impl IRowsetNewRowAfter { - pub unsafe fn SetNewDataAfter(&self, hchapter: usize, cbbmprevious: u32, pbmprevious: &u8, haccessor: usize, pdata: &mut u8, phrow: &mut usize) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).SetNewDataAfter)(::windows::core::Interface::as_raw(self), hchapter, cbbmprevious, ::core::mem::transmute(pbmprevious), haccessor, ::core::mem::transmute(pdata), ::core::mem::transmute(phrow)).ok() + pub unsafe fn SetNewDataAfter<'a, P0>(&self, hchapter: usize, cbbmprevious: u32, pbmprevious: &u8, haccessor: P0, pdata: &mut u8, phrow: &mut usize) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).SetNewDataAfter)(::windows::core::Interface::as_raw(self), hchapter, cbbmprevious, ::core::mem::transmute(pbmprevious), haccessor.into(), ::core::mem::transmute(pdata), ::core::mem::transmute(phrow)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -9513,7 +9574,7 @@ unsafe impl ::windows::core::Interface for IRowsetNewRowAfter { #[doc(hidden)] pub struct IRowsetNewRowAfter_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub SetNewDataAfter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, cbbmprevious: u32, pbmprevious: *const u8, haccessor: usize, pdata: *mut u8, phrow: *mut usize) -> ::windows::core::HRESULT, + pub SetNewDataAfter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, cbbmprevious: u32, pbmprevious: *const u8, haccessor: HACCESSOR, pdata: *mut u8, phrow: *mut usize) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] #[repr(transparent)] @@ -9774,8 +9835,11 @@ impl IRowsetRefresh { { (::windows::core::Interface::vtable(self).RefreshVisibleData)(::windows::core::Interface::as_raw(self), hchapter, crows, ::core::mem::transmute(rghrows), foverwrite.into(), ::core::mem::transmute(pcrowsrefreshed), ::core::mem::transmute(prghrowsrefreshed), ::core::mem::transmute(prgrowstatus)).ok() } - pub unsafe fn GetLastVisibleData(&self, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).GetLastVisibleData)(::windows::core::Interface::as_raw(self), hrow, haccessor, ::core::mem::transmute(pdata)).ok() + pub unsafe fn GetLastVisibleData<'a, P0>(&self, hrow: usize, haccessor: P0, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).GetLastVisibleData)(::windows::core::Interface::as_raw(self), hrow, haccessor.into(), ::core::mem::transmute(pdata)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -9821,14 +9885,17 @@ pub struct IRowsetRefresh_Vtbl { pub RefreshVisibleData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, crows: usize, rghrows: *const usize, foverwrite: super::super::Foundation::BOOL, pcrowsrefreshed: *mut usize, prghrowsrefreshed: *mut *mut usize, prgrowstatus: *mut *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] RefreshVisibleData: usize, - pub GetLastVisibleData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetLastVisibleData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] #[repr(transparent)] pub struct IRowsetResynch(::windows::core::IUnknown); impl IRowsetResynch { - pub unsafe fn GetVisibleData(&self, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).GetVisibleData)(::windows::core::Interface::as_raw(self), hrow, haccessor, ::core::mem::transmute(pdata)).ok() + pub unsafe fn GetVisibleData<'a, P0>(&self, hrow: usize, haccessor: P0, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).GetVisibleData)(::windows::core::Interface::as_raw(self), hrow, haccessor.into(), ::core::mem::transmute(pdata)).ok() } pub unsafe fn ResynchRows(&self, crows: usize, rghrows: &usize, pcrowsresynched: &mut usize, prghrowsresynched: &mut *mut usize, prgrowstatus: &mut *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ResynchRows)(::windows::core::Interface::as_raw(self), crows, ::core::mem::transmute(rghrows), ::core::mem::transmute(pcrowsresynched), ::core::mem::transmute(prghrowsresynched), ::core::mem::transmute(prgrowstatus)).ok() @@ -9873,7 +9940,7 @@ unsafe impl ::windows::core::Interface for IRowsetResynch { #[doc(hidden)] pub struct IRowsetResynch_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub GetVisibleData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetVisibleData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ResynchRows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, crows: usize, rghrows: *const usize, pcrowsresynched: *mut usize, prghrowsresynched: *mut *mut usize, prgrowstatus: *mut *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] @@ -9883,8 +9950,11 @@ impl IRowsetScroll { pub unsafe fn AddRefRows(&self, crows: usize, rghrows: &usize, rgrefcounts: &mut u32, rgrowstatus: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.AddRefRows)(::windows::core::Interface::as_raw(self), crows, ::core::mem::transmute(rghrows), ::core::mem::transmute(rgrefcounts), ::core::mem::transmute(rgrowstatus)).ok() } - pub unsafe fn GetData(&self, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).base__.base__.GetData)(::windows::core::Interface::as_raw(self), hrow, haccessor, ::core::mem::transmute(pdata)).ok() + pub unsafe fn GetData<'a, P0>(&self, hrow: usize, haccessor: P0, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).base__.base__.GetData)(::windows::core::Interface::as_raw(self), hrow, haccessor.into(), ::core::mem::transmute(pdata)).ok() } pub unsafe fn GetNextRows(&self, hreserved: usize, lrowsoffset: isize, crows: isize, pcrowsobtained: &mut usize, prghrows: &mut *mut usize) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetNextRows)(::windows::core::Interface::as_raw(self), hreserved, lrowsoffset, crows, ::core::mem::transmute(pcrowsobtained), ::core::mem::transmute(prghrows)).ok() @@ -9993,14 +10063,23 @@ impl IRowsetUpdate { pub unsafe fn DeleteRows(&self, hreserved: usize, crows: usize, rghrows: &usize, rgrowstatus: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.DeleteRows)(::windows::core::Interface::as_raw(self), hreserved, crows, ::core::mem::transmute(rghrows), ::core::mem::transmute(rgrowstatus)).ok() } - pub unsafe fn SetData(&self, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).base__.SetData)(::windows::core::Interface::as_raw(self), hrow, haccessor, ::core::mem::transmute(pdata)).ok() + pub unsafe fn SetData<'a, P0>(&self, hrow: usize, haccessor: P0, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).base__.SetData)(::windows::core::Interface::as_raw(self), hrow, haccessor.into(), ::core::mem::transmute(pdata)).ok() } - pub unsafe fn InsertRow(&self, hreserved: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void, phrow: &mut usize) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).base__.InsertRow)(::windows::core::Interface::as_raw(self), hreserved, haccessor, ::core::mem::transmute(pdata), ::core::mem::transmute(phrow)).ok() + pub unsafe fn InsertRow<'a, P0>(&self, hreserved: usize, haccessor: P0, pdata: *mut ::core::ffi::c_void, phrow: &mut usize) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).base__.InsertRow)(::windows::core::Interface::as_raw(self), hreserved, haccessor.into(), ::core::mem::transmute(pdata), ::core::mem::transmute(phrow)).ok() } - pub unsafe fn GetOriginalData(&self, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).GetOriginalData)(::windows::core::Interface::as_raw(self), hrow, haccessor, ::core::mem::transmute(pdata)).ok() + pub unsafe fn GetOriginalData<'a, P0>(&self, hrow: usize, haccessor: P0, pdata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).GetOriginalData)(::windows::core::Interface::as_raw(self), hrow, haccessor.into(), ::core::mem::transmute(pdata)).ok() } pub unsafe fn GetPendingRows(&self, hreserved: usize, dwrowstatus: u32, pcpendingrows: &mut usize, prgpendingrows: &mut *mut usize, prgpendingstatus: &mut *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPendingRows)(::windows::core::Interface::as_raw(self), hreserved, dwrowstatus, ::core::mem::transmute(pcpendingrows), ::core::mem::transmute(prgpendingrows), ::core::mem::transmute(prgpendingstatus)).ok() @@ -10069,7 +10148,7 @@ unsafe impl ::windows::core::Interface for IRowsetUpdate { #[doc(hidden)] pub struct IRowsetUpdate_Vtbl { pub base__: IRowsetChange_Vtbl, - pub GetOriginalData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: usize, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetOriginalData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetPendingRows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, dwrowstatus: u32, pcpendingrows: *mut usize, prgpendingrows: *mut *mut usize, prgpendingstatus: *mut *mut u32) -> ::windows::core::HRESULT, pub GetRowStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, crows: usize, rghrows: *const usize, rgpendingstatus: *mut u32) -> ::windows::core::HRESULT, pub Undo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, crows: usize, rghrows: *const usize, pcrowsundone: *mut usize, prgrowsundone: *mut *mut usize, prgrowstatus: *mut *mut u32) -> ::windows::core::HRESULT, @@ -10266,7 +10345,7 @@ impl IRowsetWatchRegion { pub unsafe fn GetWatchRegionInfo(&self, hregion: usize, pdwwatchmode: &mut u32, phchapter: &mut usize, pcbbookmark: &mut usize, ppbookmark: &mut *mut u8, pcrows: &mut isize) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetWatchRegionInfo)(::windows::core::Interface::as_raw(self), hregion, ::core::mem::transmute(pdwwatchmode), ::core::mem::transmute(phchapter), ::core::mem::transmute(pcbbookmark), ::core::mem::transmute(ppbookmark), ::core::mem::transmute(pcrows)).ok() } - pub unsafe fn Refresh(&self, pcchangesobtained: &mut usize, prgchanges: &mut *mut tagDBROWWATCHRANGE) -> ::windows::core::Result<()> { + pub unsafe fn Refresh(&self, pcchangesobtained: &mut usize, prgchanges: &mut *mut DBROWWATCHCHANGE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Refresh)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcchangesobtained), ::core::mem::transmute(prgchanges)).ok() } pub unsafe fn ShrinkWatchRegion(&self, hregion: usize, hchapter: usize, cbbookmark: usize, pbookmark: &mut u8, crows: isize) -> ::windows::core::Result<()> { @@ -10331,7 +10410,7 @@ pub struct IRowsetWatchRegion_Vtbl { pub ChangeWatchMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hregion: usize, dwwatchmode: u32) -> ::windows::core::HRESULT, pub DeleteWatchRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hregion: usize) -> ::windows::core::HRESULT, pub GetWatchRegionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hregion: usize, pdwwatchmode: *mut u32, phchapter: *mut usize, pcbbookmark: *mut usize, ppbookmark: *mut *mut u8, pcrows: *mut isize) -> ::windows::core::HRESULT, - pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchangesobtained: *mut usize, prgchanges: *mut *mut tagDBROWWATCHRANGE) -> ::windows::core::HRESULT, + pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchangesobtained: *mut usize, prgchanges: *mut *mut DBROWWATCHCHANGE) -> ::windows::core::HRESULT, pub ShrinkWatchRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hregion: usize, hchapter: usize, cbbookmark: usize, pbookmark: *mut u8, crows: isize) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] @@ -10553,7 +10632,7 @@ pub struct ISQLRequestDiagFields_Vtbl { #[repr(transparent)] pub struct ISQLServerErrorInfo(::windows::core::IUnknown); impl ISQLServerErrorInfo { - pub unsafe fn GetErrorInfo(&self, pperrorinfo: &mut *mut tagSSErrorInfo, ppstringsbuffer: &mut *mut u16) -> ::windows::core::Result<()> { + pub unsafe fn GetErrorInfo(&self, pperrorinfo: &mut *mut SSERRORINFO, ppstringsbuffer: &mut *mut u16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetErrorInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pperrorinfo), ::core::mem::transmute(ppstringsbuffer)).ok() } } @@ -10596,7 +10675,7 @@ unsafe impl ::windows::core::Interface for ISQLServerErrorInfo { #[doc(hidden)] pub struct ISQLServerErrorInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub GetErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pperrorinfo: *mut *mut tagSSErrorInfo, ppstringsbuffer: *mut *mut u16) -> ::windows::core::HRESULT, + pub GetErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pperrorinfo: *mut *mut SSERRORINFO, ppstringsbuffer: *mut *mut u16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] #[repr(transparent)] @@ -15442,16 +15521,22 @@ pub struct IViewChapter_Vtbl { #[repr(transparent)] pub struct IViewFilter(::windows::core::IUnknown); impl IViewFilter { - pub unsafe fn GetFilter(&self, haccessor: usize, pcrows: &mut usize, pcompareops: *mut *mut u32, pcriteriadata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).GetFilter)(::windows::core::Interface::as_raw(self), haccessor, ::core::mem::transmute(pcrows), ::core::mem::transmute(pcompareops), ::core::mem::transmute(pcriteriadata)).ok() + pub unsafe fn GetFilter<'a, P0>(&self, haccessor: P0, pcrows: &mut usize, pcompareops: *mut *mut u32, pcriteriadata: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).GetFilter)(::windows::core::Interface::as_raw(self), haccessor.into(), ::core::mem::transmute(pcrows), ::core::mem::transmute(pcompareops), ::core::mem::transmute(pcriteriadata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetFilterBindings(&self, pcbindings: &mut usize, prgbindings: ::core::option::Option<&mut *mut DBBINDING>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetFilterBindings)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcbindings), ::core::mem::transmute(prgbindings)).ok() } - pub unsafe fn SetFilter(&self, haccessor: usize, compareops: &[u32], pcriteriadata: *const ::core::ffi::c_void) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).SetFilter)(::windows::core::Interface::as_raw(self), haccessor, compareops.len() as _, ::core::mem::transmute(compareops.as_ptr()), ::core::mem::transmute(pcriteriadata)).ok() + pub unsafe fn SetFilter<'a, P0>(&self, haccessor: P0, compareops: &[u32], pcriteriadata: *const ::core::ffi::c_void) -> ::windows::core::Result<()> + where + P0: ::std::convert::Into, + { + (::windows::core::Interface::vtable(self).SetFilter)(::windows::core::Interface::as_raw(self), haccessor.into(), compareops.len() as _, ::core::mem::transmute(compareops.as_ptr()), ::core::mem::transmute(pcriteriadata)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -15493,12 +15578,12 @@ unsafe impl ::windows::core::Interface for IViewFilter { #[doc(hidden)] pub struct IViewFilter_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - pub GetFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: usize, pcrows: *mut usize, pcompareops: *mut *mut u32, pcriteriadata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, pcrows: *mut usize, pcompareops: *mut *mut u32, pcriteriadata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetFilterBindings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetFilterBindings: usize, - pub SetFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: usize, crows: usize, compareops: *const u32, pcriteriadata: *const ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub SetFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, crows: usize, compareops: *const u32, pcriteriadata: *const ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] #[repr(transparent)] @@ -28650,6 +28735,68 @@ impl ::core::default::Default for DBDATE { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct DBDATETIM4 { + pub numdays: u16, + pub nummins: u16, +} +impl ::core::marker::Copy for DBDATETIM4 {} +impl ::core::clone::Clone for DBDATETIM4 { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for DBDATETIM4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("DBDATETIM4").field("numdays", &self.numdays).field("nummins", &self.nummins).finish() + } +} +unsafe impl ::windows::core::Abi for DBDATETIM4 { + type Abi = Self; +} +impl ::core::cmp::PartialEq for DBDATETIM4 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for DBDATETIM4 {} +impl ::core::default::Default for DBDATETIM4 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct DBDATETIME { + pub dtdays: i32, + pub dttime: u32, +} +impl ::core::marker::Copy for DBDATETIME {} +impl ::core::clone::Clone for DBDATETIME { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for DBDATETIME { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("DBDATETIME").field("dtdays", &self.dtdays).field("dttime", &self.dttime).finish() + } +} +unsafe impl ::windows::core::Abi for DBDATETIME { + type Abi = Self; +} +impl ::core::cmp::PartialEq for DBDATETIME { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for DBDATETIME {} +impl ::core::default::Default for DBDATETIME { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] pub struct DBFAILUREINFO { pub hRow: usize, @@ -28944,6 +29091,37 @@ impl ::core::default::Default for DBLITERALINFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct DBMONEY { + pub mnyhigh: i32, + pub mnylow: u32, +} +impl ::core::marker::Copy for DBMONEY {} +impl ::core::clone::Clone for DBMONEY { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for DBMONEY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("DBMONEY").field("mnyhigh", &self.mnyhigh).field("mnylow", &self.mnylow).finish() + } +} +unsafe impl ::windows::core::Abi for DBMONEY { + type Abi = Self; +} +impl ::core::cmp::PartialEq for DBMONEY { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for DBMONEY {} +impl ::core::default::Default for DBMONEY { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] pub struct DBOBJECT { pub dwFlags: u32, @@ -29176,7 +29354,7 @@ impl ::core::default::Default for DBPARAMINFO { pub struct DBPARAMS { pub pData: *mut ::core::ffi::c_void, pub cParamSets: usize, - pub hAccessor: usize, + pub hAccessor: HACCESSOR, } #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] impl ::core::marker::Copy for DBPARAMS {} @@ -29210,7 +29388,7 @@ impl ::core::default::Default for DBPARAMS { pub struct DBPARAMS { pub pData: *mut ::core::ffi::c_void, pub cParamSets: usize, - pub hAccessor: usize, + pub hAccessor: HACCESSOR, } #[cfg(target_arch = "x86")] impl ::core::marker::Copy for DBPARAMS {} @@ -29624,6 +29802,76 @@ impl ::core::default::Default for DBPROPSET { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub struct DBROWWATCHCHANGE { + pub hRegion: usize, + pub eChangeKind: u32, + pub hRow: usize, + pub iRow: usize, +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::marker::Copy for DBROWWATCHCHANGE {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::clone::Clone for DBROWWATCHCHANGE { + fn clone(&self) -> Self { + *self + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +unsafe impl ::windows::core::Abi for DBROWWATCHCHANGE { + type Abi = Self; +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::cmp::PartialEq for DBROWWATCHCHANGE { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::cmp::Eq for DBROWWATCHCHANGE {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::default::Default for DBROWWATCHCHANGE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(2))] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] +#[cfg(target_arch = "x86")] +pub struct DBROWWATCHCHANGE { + pub hRegion: usize, + pub eChangeKind: u32, + pub hRow: usize, + pub iRow: usize, +} +#[cfg(target_arch = "x86")] +impl ::core::marker::Copy for DBROWWATCHCHANGE {} +#[cfg(target_arch = "x86")] +impl ::core::clone::Clone for DBROWWATCHCHANGE { + fn clone(&self) -> Self { + *self + } +} +#[cfg(target_arch = "x86")] +unsafe impl ::windows::core::Abi for DBROWWATCHCHANGE { + type Abi = Self; +} +#[cfg(target_arch = "x86")] +impl ::core::cmp::PartialEq for DBROWWATCHCHANGE { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(target_arch = "x86")] +impl ::core::cmp::Eq for DBROWWATCHCHANGE {} +#[cfg(target_arch = "x86")] +impl ::core::default::Default for DBROWWATCHCHANGE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] pub struct DBTIME { pub hour: u16, pub minute: u16, @@ -29732,6 +29980,68 @@ impl ::core::default::Default for DBTIMESTAMP { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct DBVARYBIN { + pub len: i16, + pub array: [u8; 8001], +} +impl ::core::marker::Copy for DBVARYBIN {} +impl ::core::clone::Clone for DBVARYBIN { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for DBVARYBIN { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("DBVARYBIN").field("len", &self.len).field("array", &self.array).finish() + } +} +unsafe impl ::windows::core::Abi for DBVARYBIN { + type Abi = Self; +} +impl ::core::cmp::PartialEq for DBVARYBIN { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for DBVARYBIN {} +impl ::core::default::Default for DBVARYBIN { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct DBVARYCHAR { + pub len: i16, + pub str: [i8; 8001], +} +impl ::core::marker::Copy for DBVARYCHAR {} +impl ::core::clone::Clone for DBVARYCHAR { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for DBVARYCHAR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("DBVARYCHAR").field("len", &self.len).field("str", &self.str).finish() + } +} +unsafe impl ::windows::core::Abi for DBVARYCHAR { + type Abi = Self; +} +impl ::core::cmp::PartialEq for DBVARYCHAR { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for DBVARYCHAR {} +impl ::core::default::Default for DBVARYCHAR { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] pub struct DBVECTOR { pub size: usize, @@ -29998,6 +30308,38 @@ impl ::core::default::Default for FILTERED_DATA_SOURCES { unsafe { ::core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct HACCESSOR(pub usize); +impl HACCESSOR { + pub fn is_invalid(&self) -> bool { + self.0 == 0 + } +} +impl ::core::default::Default for HACCESSOR { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +impl ::core::clone::Clone for HACCESSOR { + fn clone(&self) -> Self { + *self + } +} +impl ::core::marker::Copy for HACCESSOR {} +impl ::core::fmt::Debug for HACCESSOR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("HACCESSOR").field(&self.0).finish() + } +} +impl ::core::convert::From<::core::option::Option> for HACCESSOR { + fn from(optional: ::core::option::Option) -> HACCESSOR { + optional.unwrap_or_default() + } +} +unsafe impl ::windows::core::Abi for HACCESSOR { + type Abi = Self; +} #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] pub struct HITRANGE { @@ -31136,25 +31478,155 @@ impl ::core::default::Default for SORTSET { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct SQL_INTERVAL_STRUCT { - pub interval_type: SQLINTERVAL, - pub interval_sign: i16, - pub intval: SQL_INTERVAL_STRUCT_0, -} -impl ::core::marker::Copy for SQL_INTERVAL_STRUCT {} -impl ::core::clone::Clone for SQL_INTERVAL_STRUCT { - fn clone(&self) -> Self { - *self - } -} -unsafe impl ::windows::core::Abi for SQL_INTERVAL_STRUCT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for SQL_INTERVAL_STRUCT { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} +pub struct SQLPERF { + pub TimerResolution: u32, + pub SQLidu: u32, + pub SQLiduRows: u32, + pub SQLSelects: u32, + pub SQLSelectRows: u32, + pub Transactions: u32, + pub SQLPrepares: u32, + pub ExecDirects: u32, + pub SQLExecutes: u32, + pub CursorOpens: u32, + pub CursorSize: u32, + pub CursorUsed: u32, + pub PercentCursorUsed: f64, + pub AvgFetchTime: f64, + pub AvgCursorSize: f64, + pub AvgCursorUsed: f64, + pub SQLFetchTime: u32, + pub SQLFetchCount: u32, + pub CurrentStmtCount: u32, + pub MaxOpenStmt: u32, + pub SumOpenStmt: u32, + pub CurrentConnectionCount: u32, + pub MaxConnectionsOpened: u32, + pub SumConnectionsOpened: u32, + pub SumConnectiontime: u32, + pub AvgTimeOpened: f64, + pub ServerRndTrips: u32, + pub BuffersSent: u32, + pub BuffersRec: u32, + pub BytesSent: u32, + pub BytesRec: u32, + pub msExecutionTime: u32, + pub msNetWorkServerTime: u32, +} +impl ::core::marker::Copy for SQLPERF {} +impl ::core::clone::Clone for SQLPERF { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for SQLPERF { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SQLPERF") + .field("TimerResolution", &self.TimerResolution) + .field("SQLidu", &self.SQLidu) + .field("SQLiduRows", &self.SQLiduRows) + .field("SQLSelects", &self.SQLSelects) + .field("SQLSelectRows", &self.SQLSelectRows) + .field("Transactions", &self.Transactions) + .field("SQLPrepares", &self.SQLPrepares) + .field("ExecDirects", &self.ExecDirects) + .field("SQLExecutes", &self.SQLExecutes) + .field("CursorOpens", &self.CursorOpens) + .field("CursorSize", &self.CursorSize) + .field("CursorUsed", &self.CursorUsed) + .field("PercentCursorUsed", &self.PercentCursorUsed) + .field("AvgFetchTime", &self.AvgFetchTime) + .field("AvgCursorSize", &self.AvgCursorSize) + .field("AvgCursorUsed", &self.AvgCursorUsed) + .field("SQLFetchTime", &self.SQLFetchTime) + .field("SQLFetchCount", &self.SQLFetchCount) + .field("CurrentStmtCount", &self.CurrentStmtCount) + .field("MaxOpenStmt", &self.MaxOpenStmt) + .field("SumOpenStmt", &self.SumOpenStmt) + .field("CurrentConnectionCount", &self.CurrentConnectionCount) + .field("MaxConnectionsOpened", &self.MaxConnectionsOpened) + .field("SumConnectionsOpened", &self.SumConnectionsOpened) + .field("SumConnectiontime", &self.SumConnectiontime) + .field("AvgTimeOpened", &self.AvgTimeOpened) + .field("ServerRndTrips", &self.ServerRndTrips) + .field("BuffersSent", &self.BuffersSent) + .field("BuffersRec", &self.BuffersRec) + .field("BytesSent", &self.BytesSent) + .field("BytesRec", &self.BytesRec) + .field("msExecutionTime", &self.msExecutionTime) + .field("msNetWorkServerTime", &self.msNetWorkServerTime) + .finish() + } +} +unsafe impl ::windows::core::Abi for SQLPERF { + type Abi = Self; +} +impl ::core::cmp::PartialEq for SQLPERF { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for SQLPERF {} +impl ::core::default::Default for SQLPERF { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct SQL_DAY_SECOND_STRUCT { + pub day: u32, + pub hour: u32, + pub minute: u32, + pub second: u32, + pub fraction: u32, +} +impl ::core::marker::Copy for SQL_DAY_SECOND_STRUCT {} +impl ::core::clone::Clone for SQL_DAY_SECOND_STRUCT { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for SQL_DAY_SECOND_STRUCT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SQL_DAY_SECOND_STRUCT").field("day", &self.day).field("hour", &self.hour).field("minute", &self.minute).field("second", &self.second).field("fraction", &self.fraction).finish() + } +} +unsafe impl ::windows::core::Abi for SQL_DAY_SECOND_STRUCT { + type Abi = Self; +} +impl ::core::cmp::PartialEq for SQL_DAY_SECOND_STRUCT { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for SQL_DAY_SECOND_STRUCT {} +impl ::core::default::Default for SQL_DAY_SECOND_STRUCT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct SQL_INTERVAL_STRUCT { + pub interval_type: SQLINTERVAL, + pub interval_sign: i16, + pub intval: SQL_INTERVAL_STRUCT_0, +} +impl ::core::marker::Copy for SQL_INTERVAL_STRUCT {} +impl ::core::clone::Clone for SQL_INTERVAL_STRUCT { + fn clone(&self) -> Self { + *self + } +} +unsafe impl ::windows::core::Abi for SQL_INTERVAL_STRUCT { + type Abi = Self; +} +impl ::core::cmp::PartialEq for SQL_INTERVAL_STRUCT { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} impl ::core::cmp::Eq for SQL_INTERVAL_STRUCT {} impl ::core::default::Default for SQL_INTERVAL_STRUCT { fn default() -> Self { @@ -31164,8 +31636,8 @@ impl ::core::default::Default for SQL_INTERVAL_STRUCT { #[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`*"] pub union SQL_INTERVAL_STRUCT_0 { - pub year_month: tagSQL_YEAR_MONTH, - pub day_second: tagSQL_DAY_SECOND, + pub year_month: SQL_YEAR_MONTH_STRUCT, + pub day_second: SQL_DAY_SECOND_STRUCT, } impl ::core::marker::Copy for SQL_INTERVAL_STRUCT_0 {} impl ::core::clone::Clone for SQL_INTERVAL_STRUCT_0 { @@ -31221,6 +31693,73 @@ impl ::core::default::Default for SQL_NUMERIC_STRUCT { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct SQL_YEAR_MONTH_STRUCT { + pub year: u32, + pub month: u32, +} +impl ::core::marker::Copy for SQL_YEAR_MONTH_STRUCT {} +impl ::core::clone::Clone for SQL_YEAR_MONTH_STRUCT { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for SQL_YEAR_MONTH_STRUCT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SQL_YEAR_MONTH_STRUCT").field("year", &self.year).field("month", &self.month).finish() + } +} +unsafe impl ::windows::core::Abi for SQL_YEAR_MONTH_STRUCT { + type Abi = Self; +} +impl ::core::cmp::PartialEq for SQL_YEAR_MONTH_STRUCT { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for SQL_YEAR_MONTH_STRUCT {} +impl ::core::default::Default for SQL_YEAR_MONTH_STRUCT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Search\"`*"] +pub struct SSERRORINFO { + pub pwszMessage: ::windows::core::PWSTR, + pub pwszServer: ::windows::core::PWSTR, + pub pwszProcedure: ::windows::core::PWSTR, + pub lNative: i32, + pub bState: u8, + pub bClass: u8, + pub wLineNumber: u16, +} +impl ::core::marker::Copy for SSERRORINFO {} +impl ::core::clone::Clone for SSERRORINFO { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for SSERRORINFO { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("SSERRORINFO").field("pwszMessage", &self.pwszMessage).field("pwszServer", &self.pwszServer).field("pwszProcedure", &self.pwszProcedure).field("lNative", &self.lNative).field("bState", &self.bState).field("bClass", &self.bClass).field("wLineNumber", &self.wLineNumber).finish() + } +} +unsafe impl ::windows::core::Abi for SSERRORINFO { + type Abi = Self; +} +impl ::core::cmp::PartialEq for SSERRORINFO { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for SSERRORINFO {} +impl ::core::default::Default for SSERRORINFO { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_System_Search\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] pub struct SSVARIANT { @@ -31814,428 +32353,6 @@ impl ::core::default::Default for VECTORRESTRICTION { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct dbdatetime { - pub dtdays: i32, - pub dttime: u32, -} -impl ::core::marker::Copy for dbdatetime {} -impl ::core::clone::Clone for dbdatetime { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for dbdatetime { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("dbdatetime").field("dtdays", &self.dtdays).field("dttime", &self.dttime).finish() - } -} -unsafe impl ::windows::core::Abi for dbdatetime { - type Abi = Self; -} -impl ::core::cmp::PartialEq for dbdatetime { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for dbdatetime {} -impl ::core::default::Default for dbdatetime { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct dbdatetime4 { - pub numdays: u16, - pub nummins: u16, -} -impl ::core::marker::Copy for dbdatetime4 {} -impl ::core::clone::Clone for dbdatetime4 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for dbdatetime4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("dbdatetime4").field("numdays", &self.numdays).field("nummins", &self.nummins).finish() - } -} -unsafe impl ::windows::core::Abi for dbdatetime4 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for dbdatetime4 { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for dbdatetime4 {} -impl ::core::default::Default for dbdatetime4 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct dbmoney { - pub mnyhigh: i32, - pub mnylow: u32, -} -impl ::core::marker::Copy for dbmoney {} -impl ::core::clone::Clone for dbmoney { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for dbmoney { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("dbmoney").field("mnyhigh", &self.mnyhigh).field("mnylow", &self.mnylow).finish() - } -} -unsafe impl ::windows::core::Abi for dbmoney { - type Abi = Self; -} -impl ::core::cmp::PartialEq for dbmoney { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for dbmoney {} -impl ::core::default::Default for dbmoney { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct dbvarybin { - pub len: i16, - pub array: [u8; 8001], -} -impl ::core::marker::Copy for dbvarybin {} -impl ::core::clone::Clone for dbvarybin { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for dbvarybin { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("dbvarybin").field("len", &self.len).field("array", &self.array).finish() - } -} -unsafe impl ::windows::core::Abi for dbvarybin { - type Abi = Self; -} -impl ::core::cmp::PartialEq for dbvarybin { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for dbvarybin {} -impl ::core::default::Default for dbvarybin { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct dbvarychar { - pub len: i16, - pub str: [i8; 8001], -} -impl ::core::marker::Copy for dbvarychar {} -impl ::core::clone::Clone for dbvarychar { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for dbvarychar { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("dbvarychar").field("len", &self.len).field("str", &self.str).finish() - } -} -unsafe impl ::windows::core::Abi for dbvarychar { - type Abi = Self; -} -impl ::core::cmp::PartialEq for dbvarychar { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for dbvarychar {} -impl ::core::default::Default for dbvarychar { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct sqlperf { - pub TimerResolution: u32, - pub SQLidu: u32, - pub SQLiduRows: u32, - pub SQLSelects: u32, - pub SQLSelectRows: u32, - pub Transactions: u32, - pub SQLPrepares: u32, - pub ExecDirects: u32, - pub SQLExecutes: u32, - pub CursorOpens: u32, - pub CursorSize: u32, - pub CursorUsed: u32, - pub PercentCursorUsed: f64, - pub AvgFetchTime: f64, - pub AvgCursorSize: f64, - pub AvgCursorUsed: f64, - pub SQLFetchTime: u32, - pub SQLFetchCount: u32, - pub CurrentStmtCount: u32, - pub MaxOpenStmt: u32, - pub SumOpenStmt: u32, - pub CurrentConnectionCount: u32, - pub MaxConnectionsOpened: u32, - pub SumConnectionsOpened: u32, - pub SumConnectiontime: u32, - pub AvgTimeOpened: f64, - pub ServerRndTrips: u32, - pub BuffersSent: u32, - pub BuffersRec: u32, - pub BytesSent: u32, - pub BytesRec: u32, - pub msExecutionTime: u32, - pub msNetWorkServerTime: u32, -} -impl ::core::marker::Copy for sqlperf {} -impl ::core::clone::Clone for sqlperf { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for sqlperf { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("sqlperf") - .field("TimerResolution", &self.TimerResolution) - .field("SQLidu", &self.SQLidu) - .field("SQLiduRows", &self.SQLiduRows) - .field("SQLSelects", &self.SQLSelects) - .field("SQLSelectRows", &self.SQLSelectRows) - .field("Transactions", &self.Transactions) - .field("SQLPrepares", &self.SQLPrepares) - .field("ExecDirects", &self.ExecDirects) - .field("SQLExecutes", &self.SQLExecutes) - .field("CursorOpens", &self.CursorOpens) - .field("CursorSize", &self.CursorSize) - .field("CursorUsed", &self.CursorUsed) - .field("PercentCursorUsed", &self.PercentCursorUsed) - .field("AvgFetchTime", &self.AvgFetchTime) - .field("AvgCursorSize", &self.AvgCursorSize) - .field("AvgCursorUsed", &self.AvgCursorUsed) - .field("SQLFetchTime", &self.SQLFetchTime) - .field("SQLFetchCount", &self.SQLFetchCount) - .field("CurrentStmtCount", &self.CurrentStmtCount) - .field("MaxOpenStmt", &self.MaxOpenStmt) - .field("SumOpenStmt", &self.SumOpenStmt) - .field("CurrentConnectionCount", &self.CurrentConnectionCount) - .field("MaxConnectionsOpened", &self.MaxConnectionsOpened) - .field("SumConnectionsOpened", &self.SumConnectionsOpened) - .field("SumConnectiontime", &self.SumConnectiontime) - .field("AvgTimeOpened", &self.AvgTimeOpened) - .field("ServerRndTrips", &self.ServerRndTrips) - .field("BuffersSent", &self.BuffersSent) - .field("BuffersRec", &self.BuffersRec) - .field("BytesSent", &self.BytesSent) - .field("BytesRec", &self.BytesRec) - .field("msExecutionTime", &self.msExecutionTime) - .field("msNetWorkServerTime", &self.msNetWorkServerTime) - .finish() - } -} -unsafe impl ::windows::core::Abi for sqlperf { - type Abi = Self; -} -impl ::core::cmp::PartialEq for sqlperf { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for sqlperf {} -impl ::core::default::Default for sqlperf { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub struct tagDBROWWATCHRANGE { - pub hRegion: usize, - pub eChangeKind: u32, - pub hRow: usize, - pub iRow: usize, -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::marker::Copy for tagDBROWWATCHRANGE {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::clone::Clone for tagDBROWWATCHRANGE { - fn clone(&self) -> Self { - *self - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -unsafe impl ::windows::core::Abi for tagDBROWWATCHRANGE { - type Abi = Self; -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::cmp::PartialEq for tagDBROWWATCHRANGE { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::cmp::Eq for tagDBROWWATCHRANGE {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::default::Default for tagDBROWWATCHRANGE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C, packed(2))] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -#[cfg(target_arch = "x86")] -pub struct tagDBROWWATCHRANGE { - pub hRegion: usize, - pub eChangeKind: u32, - pub hRow: usize, - pub iRow: usize, -} -#[cfg(target_arch = "x86")] -impl ::core::marker::Copy for tagDBROWWATCHRANGE {} -#[cfg(target_arch = "x86")] -impl ::core::clone::Clone for tagDBROWWATCHRANGE { - fn clone(&self) -> Self { - *self - } -} -#[cfg(target_arch = "x86")] -unsafe impl ::windows::core::Abi for tagDBROWWATCHRANGE { - type Abi = Self; -} -#[cfg(target_arch = "x86")] -impl ::core::cmp::PartialEq for tagDBROWWATCHRANGE { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(target_arch = "x86")] -impl ::core::cmp::Eq for tagDBROWWATCHRANGE {} -#[cfg(target_arch = "x86")] -impl ::core::default::Default for tagDBROWWATCHRANGE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct tagSQL_DAY_SECOND { - pub day: u32, - pub hour: u32, - pub minute: u32, - pub second: u32, - pub fraction: u32, -} -impl ::core::marker::Copy for tagSQL_DAY_SECOND {} -impl ::core::clone::Clone for tagSQL_DAY_SECOND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tagSQL_DAY_SECOND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tagSQL_DAY_SECOND").field("day", &self.day).field("hour", &self.hour).field("minute", &self.minute).field("second", &self.second).field("fraction", &self.fraction).finish() - } -} -unsafe impl ::windows::core::Abi for tagSQL_DAY_SECOND { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tagSQL_DAY_SECOND { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tagSQL_DAY_SECOND {} -impl ::core::default::Default for tagSQL_DAY_SECOND { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct tagSQL_YEAR_MONTH { - pub year: u32, - pub month: u32, -} -impl ::core::marker::Copy for tagSQL_YEAR_MONTH {} -impl ::core::clone::Clone for tagSQL_YEAR_MONTH { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tagSQL_YEAR_MONTH { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tagSQL_YEAR_MONTH").field("year", &self.year).field("month", &self.month).finish() - } -} -unsafe impl ::windows::core::Abi for tagSQL_YEAR_MONTH { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tagSQL_YEAR_MONTH { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tagSQL_YEAR_MONTH {} -impl ::core::default::Default for tagSQL_YEAR_MONTH { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_Search\"`*"] -pub struct tagSSErrorInfo { - pub pwszMessage: ::windows::core::PWSTR, - pub pwszServer: ::windows::core::PWSTR, - pub pwszProcedure: ::windows::core::PWSTR, - pub lNative: i32, - pub bState: u8, - pub bClass: u8, - pub wLineNumber: u16, -} -impl ::core::marker::Copy for tagSSErrorInfo {} -impl ::core::clone::Clone for tagSSErrorInfo { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tagSSErrorInfo { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tagSSErrorInfo").field("pwszMessage", &self.pwszMessage).field("pwszServer", &self.pwszServer).field("pwszProcedure", &self.pwszProcedure).field("lNative", &self.lNative).field("bState", &self.bState).field("bClass", &self.bClass).field("wLineNumber", &self.wLineNumber).finish() - } -} -unsafe impl ::windows::core::Abi for tagSSErrorInfo { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tagSSErrorInfo { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tagSSErrorInfo {} -impl ::core::default::Default for tagSSErrorInfo { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_System_Search\"`*"] pub type PFNFILLTEXTBUFFER = ::core::option::Option ::windows::core::HRESULT>; #[doc = "*Required features: `\"Win32_System_Search\"`, `\"Win32_Foundation\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs b/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs index ad065b0502..ef3fde0981 100644 --- a/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs @@ -83,14 +83,14 @@ where #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] #[inline] -pub unsafe fn CreateDesktopA<'a, P0, P1>(lpszdesktop: P0, lpszdevice: P1, pdevmode: &mut super::super::Graphics::Gdi::DEVMODEA, dwflags: u32, dwdesiredaccess: u32, lpsa: ::core::option::Option<&super::super::Security::SECURITY_ATTRIBUTES>) -> ::windows::core::Result +pub unsafe fn CreateDesktopA<'a, P0, P1>(lpszdesktop: P0, lpszdevice: P1, pdevmode: &mut super::super::Graphics::Gdi::DEVMODEA, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: ::core::option::Option<&super::super::Security::SECURITY_ATTRIBUTES>) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn CreateDesktopA(lpszdesktop: ::windows::core::PCSTR, lpszdevice: ::windows::core::PCSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEA, dwflags: u32, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES) -> HDESK; + fn CreateDesktopA(lpszdesktop: ::windows::core::PCSTR, lpszdevice: ::windows::core::PCSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEA, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES) -> HDESK; } let result__ = CreateDesktopA(lpszdesktop.into(), lpszdevice.into(), ::core::mem::transmute(pdevmode), dwflags, dwdesiredaccess, ::core::mem::transmute(lpsa)); (!result__.is_invalid()).then(|| result__).ok_or_else(::windows::core::Error::from_win32) @@ -98,14 +98,14 @@ where #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] #[inline] -pub unsafe fn CreateDesktopExA<'a, P0, P1>(lpszdesktop: P0, lpszdevice: P1, pdevmode: &mut super::super::Graphics::Gdi::DEVMODEA, dwflags: u32, dwdesiredaccess: u32, lpsa: ::core::option::Option<&super::super::Security::SECURITY_ATTRIBUTES>, ulheapsize: u32, pvoid: *mut ::core::ffi::c_void) -> ::windows::core::Result +pub unsafe fn CreateDesktopExA<'a, P0, P1>(lpszdesktop: P0, lpszdevice: P1, pdevmode: &mut super::super::Graphics::Gdi::DEVMODEA, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: ::core::option::Option<&super::super::Security::SECURITY_ATTRIBUTES>, ulheapsize: u32, pvoid: *mut ::core::ffi::c_void) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into<::windows::core::PCSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn CreateDesktopExA(lpszdesktop: ::windows::core::PCSTR, lpszdevice: ::windows::core::PCSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEA, dwflags: u32, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES, ulheapsize: u32, pvoid: *mut ::core::ffi::c_void) -> HDESK; + fn CreateDesktopExA(lpszdesktop: ::windows::core::PCSTR, lpszdevice: ::windows::core::PCSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEA, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES, ulheapsize: u32, pvoid: *mut ::core::ffi::c_void) -> HDESK; } let result__ = CreateDesktopExA(lpszdesktop.into(), lpszdevice.into(), ::core::mem::transmute(pdevmode), dwflags, dwdesiredaccess, ::core::mem::transmute(lpsa), ulheapsize, ::core::mem::transmute(pvoid)); (!result__.is_invalid()).then(|| result__).ok_or_else(::windows::core::Error::from_win32) @@ -113,14 +113,14 @@ where #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] #[inline] -pub unsafe fn CreateDesktopExW<'a, P0, P1>(lpszdesktop: P0, lpszdevice: P1, pdevmode: &mut super::super::Graphics::Gdi::DEVMODEW, dwflags: u32, dwdesiredaccess: u32, lpsa: ::core::option::Option<&super::super::Security::SECURITY_ATTRIBUTES>, ulheapsize: u32, pvoid: *mut ::core::ffi::c_void) -> ::windows::core::Result +pub unsafe fn CreateDesktopExW<'a, P0, P1>(lpszdesktop: P0, lpszdevice: P1, pdevmode: &mut super::super::Graphics::Gdi::DEVMODEW, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: ::core::option::Option<&super::super::Security::SECURITY_ATTRIBUTES>, ulheapsize: u32, pvoid: *mut ::core::ffi::c_void) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn CreateDesktopExW(lpszdesktop: ::windows::core::PCWSTR, lpszdevice: ::windows::core::PCWSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEW, dwflags: u32, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES, ulheapsize: u32, pvoid: *mut ::core::ffi::c_void) -> HDESK; + fn CreateDesktopExW(lpszdesktop: ::windows::core::PCWSTR, lpszdevice: ::windows::core::PCWSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEW, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES, ulheapsize: u32, pvoid: *mut ::core::ffi::c_void) -> HDESK; } let result__ = CreateDesktopExW(lpszdesktop.into(), lpszdevice.into(), ::core::mem::transmute(pdevmode), dwflags, dwdesiredaccess, ::core::mem::transmute(lpsa), ulheapsize, ::core::mem::transmute(pvoid)); (!result__.is_invalid()).then(|| result__).ok_or_else(::windows::core::Error::from_win32) @@ -128,14 +128,14 @@ where #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] #[inline] -pub unsafe fn CreateDesktopW<'a, P0, P1>(lpszdesktop: P0, lpszdevice: P1, pdevmode: &mut super::super::Graphics::Gdi::DEVMODEW, dwflags: u32, dwdesiredaccess: u32, lpsa: ::core::option::Option<&super::super::Security::SECURITY_ATTRIBUTES>) -> ::windows::core::Result +pub unsafe fn CreateDesktopW<'a, P0, P1>(lpszdesktop: P0, lpszdevice: P1, pdevmode: &mut super::super::Graphics::Gdi::DEVMODEW, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: ::core::option::Option<&super::super::Security::SECURITY_ATTRIBUTES>) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn CreateDesktopW(lpszdesktop: ::windows::core::PCWSTR, lpszdevice: ::windows::core::PCWSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEW, dwflags: u32, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES) -> HDESK; + fn CreateDesktopW(lpszdesktop: ::windows::core::PCWSTR, lpszdevice: ::windows::core::PCWSTR, pdevmode: *mut super::super::Graphics::Gdi::DEVMODEW, dwflags: DESKTOP_CONTROL_FLAGS, dwdesiredaccess: u32, lpsa: *const super::super::Security::SECURITY_ATTRIBUTES) -> HDESK; } let result__ = CreateDesktopW(lpszdesktop.into(), lpszdevice.into(), ::core::mem::transmute(pdevmode), dwflags, dwdesiredaccess, ::core::mem::transmute(lpsa)); (!result__.is_invalid()).then(|| result__).ok_or_else(::windows::core::Error::from_win32) @@ -285,14 +285,14 @@ where #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn OpenDesktopA<'a, P0, P1>(lpszdesktop: P0, dwflags: u32, finherit: P1, dwdesiredaccess: u32) -> ::windows::core::Result +pub unsafe fn OpenDesktopA<'a, P0, P1>(lpszdesktop: P0, dwflags: DESKTOP_CONTROL_FLAGS, finherit: P1, dwdesiredaccess: u32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCSTR>, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn OpenDesktopA(lpszdesktop: ::windows::core::PCSTR, dwflags: u32, finherit: super::super::Foundation::BOOL, dwdesiredaccess: u32) -> HDESK; + fn OpenDesktopA(lpszdesktop: ::windows::core::PCSTR, dwflags: DESKTOP_CONTROL_FLAGS, finherit: super::super::Foundation::BOOL, dwdesiredaccess: u32) -> HDESK; } let result__ = OpenDesktopA(lpszdesktop.into(), dwflags, finherit.into(), dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(::windows::core::Error::from_win32) @@ -300,14 +300,14 @@ where #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn OpenDesktopW<'a, P0, P1>(lpszdesktop: P0, dwflags: u32, finherit: P1, dwdesiredaccess: u32) -> ::windows::core::Result +pub unsafe fn OpenDesktopW<'a, P0, P1>(lpszdesktop: P0, dwflags: DESKTOP_CONTROL_FLAGS, finherit: P1, dwdesiredaccess: u32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn OpenDesktopW(lpszdesktop: ::windows::core::PCWSTR, dwflags: u32, finherit: super::super::Foundation::BOOL, dwdesiredaccess: u32) -> HDESK; + fn OpenDesktopW(lpszdesktop: ::windows::core::PCWSTR, dwflags: DESKTOP_CONTROL_FLAGS, finherit: super::super::Foundation::BOOL, dwdesiredaccess: u32) -> HDESK; } let result__ = OpenDesktopW(lpszdesktop.into(), dwflags, finherit.into(), dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(::windows::core::Error::from_win32) @@ -315,13 +315,13 @@ where #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn OpenInputDesktop<'a, P0>(dwflags: u32, finherit: P0, dwdesiredaccess: u32) -> ::windows::core::Result +pub unsafe fn OpenInputDesktop<'a, P0>(dwflags: DESKTOP_CONTROL_FLAGS, finherit: P0, dwdesiredaccess: u32) -> ::windows::core::Result where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn OpenInputDesktop(dwflags: u32, finherit: super::super::Foundation::BOOL, dwdesiredaccess: u32) -> HDESK; + fn OpenInputDesktop(dwflags: DESKTOP_CONTROL_FLAGS, finherit: super::super::Foundation::BOOL, dwdesiredaccess: u32) -> HDESK; } let result__ = OpenInputDesktop(dwflags, finherit.into(), dwdesiredaccess); (!result__.is_invalid()).then(|| result__).ok_or_else(::windows::core::Error::from_win32) @@ -554,6 +554,31 @@ impl ::core::ops::Not for BROADCAST_SYSTEM_MESSAGE_INFO { #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct DESKTOP_CONTROL_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`*"] +pub const DF_ALLOWOTHERACCOUNTHOOK: DESKTOP_CONTROL_FLAGS = DESKTOP_CONTROL_FLAGS(1u32); +impl ::core::marker::Copy for DESKTOP_CONTROL_FLAGS {} +impl ::core::clone::Clone for DESKTOP_CONTROL_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for DESKTOP_CONTROL_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for DESKTOP_CONTROL_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for DESKTOP_CONTROL_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("DESKTOP_CONTROL_FLAGS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct USER_OBJECT_INFORMATION_INDEX(pub u32); #[doc = "*Required features: `\"Win32_System_StationsAndDesktops\"`*"] pub const UOI_FLAGS: USER_OBJECT_INFORMATION_INDEX = USER_OBJECT_INFORMATION_INDEX(1u32); diff --git a/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs index 59b6f043b1..744bccefd3 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs @@ -5,7 +5,7 @@ where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn WslConfigureDistribution(distributionname: ::windows::core::PCWSTR, defaultuid: u32, wsldistributionflags: WSL_DISTRIBUTION_FLAGS) -> ::windows::core::HRESULT; } WslConfigureDistribution(distributionname.into(), defaultuid, wsldistributionflags).ok() @@ -17,7 +17,7 @@ where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn WslGetDistributionConfiguration(distributionname: ::windows::core::PCWSTR, distributionversion: *mut u32, defaultuid: *mut u32, wsldistributionflags: *mut WSL_DISTRIBUTION_FLAGS, defaultenvironmentvariables: *mut *mut ::windows::core::PSTR, defaultenvironmentvariablecount: *mut u32) -> ::windows::core::HRESULT; } WslGetDistributionConfiguration(distributionname.into(), ::core::mem::transmute(distributionversion), ::core::mem::transmute(defaultuid), ::core::mem::transmute(wsldistributionflags), ::core::mem::transmute(defaultenvironmentvariables), ::core::mem::transmute(defaultenvironmentvariablecount)).ok() @@ -30,7 +30,7 @@ where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn WslIsDistributionRegistered(distributionname: ::windows::core::PCWSTR) -> super::super::Foundation::BOOL; } WslIsDistributionRegistered(distributionname.into()) @@ -48,7 +48,7 @@ where P5: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn WslLaunch(distributionname: ::windows::core::PCWSTR, command: ::windows::core::PCWSTR, usecurrentworkingdirectory: super::super::Foundation::BOOL, stdin: super::super::Foundation::HANDLE, stdout: super::super::Foundation::HANDLE, stderr: super::super::Foundation::HANDLE, process: *mut super::super::Foundation::HANDLE) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -64,7 +64,7 @@ where P2: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn WslLaunchInteractive(distributionname: ::windows::core::PCWSTR, command: ::windows::core::PCWSTR, usecurrentworkingdirectory: super::super::Foundation::BOOL, exitcode: *mut u32) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -78,7 +78,7 @@ where P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn WslRegisterDistribution(distributionname: ::windows::core::PCWSTR, targzfilename: ::windows::core::PCWSTR) -> ::windows::core::HRESULT; } WslRegisterDistribution(distributionname.into(), targzfilename.into()).ok() @@ -90,7 +90,7 @@ where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn WslUnregisterDistribution(distributionname: ::windows::core::PCWSTR) -> ::windows::core::HRESULT; } WslUnregisterDistribution(distributionname.into()).ok() 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 d95f5152a1..f1ee12f517 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SystemServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SystemServices/mod.rs @@ -6776,100 +6776,42 @@ impl ::core::fmt::Debug for CLIPBOARD_FORMATS { #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct CM_ERROR_CONTROL_TYPE(pub i32); +pub struct DESKTOP_ACCESS_FLAGS(pub u32); #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const IgnoreError: CM_ERROR_CONTROL_TYPE = CM_ERROR_CONTROL_TYPE(0i32); +pub const DESKTOP_READOBJECTS: DESKTOP_ACCESS_FLAGS = DESKTOP_ACCESS_FLAGS(1u32); #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const NormalError: CM_ERROR_CONTROL_TYPE = CM_ERROR_CONTROL_TYPE(1i32); +pub const DESKTOP_CREATEWINDOW: DESKTOP_ACCESS_FLAGS = DESKTOP_ACCESS_FLAGS(2u32); #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const SevereError: CM_ERROR_CONTROL_TYPE = CM_ERROR_CONTROL_TYPE(2i32); +pub const DESKTOP_CREATEMENU: DESKTOP_ACCESS_FLAGS = DESKTOP_ACCESS_FLAGS(4u32); #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const CriticalError: CM_ERROR_CONTROL_TYPE = CM_ERROR_CONTROL_TYPE(3i32); -impl ::core::marker::Copy for CM_ERROR_CONTROL_TYPE {} -impl ::core::clone::Clone for CM_ERROR_CONTROL_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for CM_ERROR_CONTROL_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for CM_ERROR_CONTROL_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for CM_ERROR_CONTROL_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("CM_ERROR_CONTROL_TYPE").field(&self.0).finish() - } -} +pub const DESKTOP_HOOKCONTROL: DESKTOP_ACCESS_FLAGS = DESKTOP_ACCESS_FLAGS(8u32); #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct CM_SERVICE_LOAD_TYPE(pub i32); +pub const DESKTOP_JOURNALRECORD: DESKTOP_ACCESS_FLAGS = DESKTOP_ACCESS_FLAGS(16u32); #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const BootLoad: CM_SERVICE_LOAD_TYPE = CM_SERVICE_LOAD_TYPE(0i32); +pub const DESKTOP_JOURNALPLAYBACK: DESKTOP_ACCESS_FLAGS = DESKTOP_ACCESS_FLAGS(32u32); #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const SystemLoad: CM_SERVICE_LOAD_TYPE = CM_SERVICE_LOAD_TYPE(1i32); +pub const DESKTOP_ENUMERATE: DESKTOP_ACCESS_FLAGS = DESKTOP_ACCESS_FLAGS(64u32); #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const AutoLoad: CM_SERVICE_LOAD_TYPE = CM_SERVICE_LOAD_TYPE(2i32); +pub const DESKTOP_WRITEOBJECTS: DESKTOP_ACCESS_FLAGS = DESKTOP_ACCESS_FLAGS(128u32); #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const DemandLoad: CM_SERVICE_LOAD_TYPE = CM_SERVICE_LOAD_TYPE(3i32); -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const DisableLoad: CM_SERVICE_LOAD_TYPE = CM_SERVICE_LOAD_TYPE(4i32); -impl ::core::marker::Copy for CM_SERVICE_LOAD_TYPE {} -impl ::core::clone::Clone for CM_SERVICE_LOAD_TYPE { +pub const DESKTOP_SWITCHDESKTOP: DESKTOP_ACCESS_FLAGS = DESKTOP_ACCESS_FLAGS(256u32); +impl ::core::marker::Copy for DESKTOP_ACCESS_FLAGS {} +impl ::core::clone::Clone for DESKTOP_ACCESS_FLAGS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for CM_SERVICE_LOAD_TYPE { +impl ::core::default::Default for DESKTOP_ACCESS_FLAGS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for CM_SERVICE_LOAD_TYPE { +unsafe impl ::windows::core::Abi for DESKTOP_ACCESS_FLAGS { type Abi = Self; } -impl ::core::fmt::Debug for CM_SERVICE_LOAD_TYPE { +impl ::core::fmt::Debug for DESKTOP_ACCESS_FLAGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("CM_SERVICE_LOAD_TYPE").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct CM_SERVICE_NODE_TYPE(pub i32); -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const DriverType: CM_SERVICE_NODE_TYPE = CM_SERVICE_NODE_TYPE(1i32); -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const FileSystemType: CM_SERVICE_NODE_TYPE = CM_SERVICE_NODE_TYPE(2i32); -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const Win32ServiceOwnProcess: CM_SERVICE_NODE_TYPE = CM_SERVICE_NODE_TYPE(16i32); -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const Win32ServiceShareProcess: CM_SERVICE_NODE_TYPE = CM_SERVICE_NODE_TYPE(32i32); -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const AdapterType: CM_SERVICE_NODE_TYPE = CM_SERVICE_NODE_TYPE(4i32); -#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub const RecognizerType: CM_SERVICE_NODE_TYPE = CM_SERVICE_NODE_TYPE(8i32); -impl ::core::marker::Copy for CM_SERVICE_NODE_TYPE {} -impl ::core::clone::Clone for CM_SERVICE_NODE_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for CM_SERVICE_NODE_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for CM_SERVICE_NODE_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for CM_SERVICE_NODE_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("CM_SERVICE_NODE_TYPE").field(&self.0).finish() + f.debug_tuple("DESKTOP_ACCESS_FLAGS").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] @@ -7723,6 +7665,67 @@ impl ::core::fmt::Debug for POWER_USER_PRESENCE_TYPE { #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct RECO_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const RECO_PASTE: RECO_FLAGS = RECO_FLAGS(0u32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const RECO_DROP: RECO_FLAGS = RECO_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const RECO_COPY: RECO_FLAGS = RECO_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const RECO_CUT: RECO_FLAGS = RECO_FLAGS(3u32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const RECO_DRAG: RECO_FLAGS = RECO_FLAGS(4u32); +impl ::core::marker::Copy for RECO_FLAGS {} +impl ::core::clone::Clone for RECO_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for RECO_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for RECO_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for RECO_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("RECO_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for RECO_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for RECO_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for RECO_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for RECO_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for RECO_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct RESOURCEMANAGER_INFORMATION_CLASS(pub i32); #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub const ResourceManagerBasicInformation: RESOURCEMANAGER_INFORMATION_CLASS = RESOURCEMANAGER_INFORMATION_CLASS(0i32); @@ -7950,6 +7953,105 @@ impl ::core::fmt::Debug for SERVERSILO_STATE { #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct SERVICE_ERROR_TYPE(pub i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const IgnoreError: SERVICE_ERROR_TYPE = SERVICE_ERROR_TYPE(0i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const NormalError: SERVICE_ERROR_TYPE = SERVICE_ERROR_TYPE(1i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SevereError: SERVICE_ERROR_TYPE = SERVICE_ERROR_TYPE(2i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const CriticalError: SERVICE_ERROR_TYPE = SERVICE_ERROR_TYPE(3i32); +impl ::core::marker::Copy for SERVICE_ERROR_TYPE {} +impl ::core::clone::Clone for SERVICE_ERROR_TYPE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for SERVICE_ERROR_TYPE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for SERVICE_ERROR_TYPE { + type Abi = Self; +} +impl ::core::fmt::Debug for SERVICE_ERROR_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("SERVICE_ERROR_TYPE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct SERVICE_LOAD_TYPE(pub i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const BootLoad: SERVICE_LOAD_TYPE = SERVICE_LOAD_TYPE(0i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SystemLoad: SERVICE_LOAD_TYPE = SERVICE_LOAD_TYPE(1i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const AutoLoad: SERVICE_LOAD_TYPE = SERVICE_LOAD_TYPE(2i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const DemandLoad: SERVICE_LOAD_TYPE = SERVICE_LOAD_TYPE(3i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const DisableLoad: SERVICE_LOAD_TYPE = SERVICE_LOAD_TYPE(4i32); +impl ::core::marker::Copy for SERVICE_LOAD_TYPE {} +impl ::core::clone::Clone for SERVICE_LOAD_TYPE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for SERVICE_LOAD_TYPE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for SERVICE_LOAD_TYPE { + type Abi = Self; +} +impl ::core::fmt::Debug for SERVICE_LOAD_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("SERVICE_LOAD_TYPE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct SERVICE_NODE_TYPE(pub i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const DriverType: SERVICE_NODE_TYPE = SERVICE_NODE_TYPE(1i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const FileSystemType: SERVICE_NODE_TYPE = SERVICE_NODE_TYPE(2i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const Win32ServiceOwnProcess: SERVICE_NODE_TYPE = SERVICE_NODE_TYPE(16i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const Win32ServiceShareProcess: SERVICE_NODE_TYPE = SERVICE_NODE_TYPE(32i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const AdapterType: SERVICE_NODE_TYPE = SERVICE_NODE_TYPE(4i32); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const RecognizerType: SERVICE_NODE_TYPE = SERVICE_NODE_TYPE(8i32); +impl ::core::marker::Copy for SERVICE_NODE_TYPE {} +impl ::core::clone::Clone for SERVICE_NODE_TYPE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for SERVICE_NODE_TYPE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for SERVICE_NODE_TYPE { + type Abi = Self; +} +impl ::core::fmt::Debug for SERVICE_NODE_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("SERVICE_NODE_TYPE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct SE_IMAGE_SIGNATURE_TYPE(pub i32); #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub const SeImageSignatureNone: SE_IMAGE_SIGNATURE_TYPE = SE_IMAGE_SIGNATURE_TYPE(0i32); @@ -8018,6 +8120,129 @@ impl ::core::fmt::Debug for SE_LEARNING_MODE_DATA_TYPE { #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct SFGAO_FLAGS(pub u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CANCOPY: SFGAO_FLAGS = SFGAO_FLAGS(1u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CANMOVE: SFGAO_FLAGS = SFGAO_FLAGS(2u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CANLINK: SFGAO_FLAGS = SFGAO_FLAGS(4u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_STORAGE: SFGAO_FLAGS = SFGAO_FLAGS(8u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CANRENAME: SFGAO_FLAGS = SFGAO_FLAGS(16u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CANDELETE: SFGAO_FLAGS = SFGAO_FLAGS(32u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_HASPROPSHEET: SFGAO_FLAGS = SFGAO_FLAGS(64u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_DROPTARGET: SFGAO_FLAGS = SFGAO_FLAGS(256u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CAPABILITYMASK: SFGAO_FLAGS = SFGAO_FLAGS(375u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_PLACEHOLDER: SFGAO_FLAGS = SFGAO_FLAGS(2048u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_SYSTEM: SFGAO_FLAGS = SFGAO_FLAGS(4096u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_ENCRYPTED: SFGAO_FLAGS = SFGAO_FLAGS(8192u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_ISSLOW: SFGAO_FLAGS = SFGAO_FLAGS(16384u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_GHOSTED: SFGAO_FLAGS = SFGAO_FLAGS(32768u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_LINK: SFGAO_FLAGS = SFGAO_FLAGS(65536u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_SHARE: SFGAO_FLAGS = SFGAO_FLAGS(131072u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_READONLY: SFGAO_FLAGS = SFGAO_FLAGS(262144u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_HIDDEN: SFGAO_FLAGS = SFGAO_FLAGS(524288u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_DISPLAYATTRMASK: SFGAO_FLAGS = SFGAO_FLAGS(1032192u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_FILESYSANCESTOR: SFGAO_FLAGS = SFGAO_FLAGS(268435456u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_FOLDER: SFGAO_FLAGS = SFGAO_FLAGS(536870912u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_FILESYSTEM: SFGAO_FLAGS = SFGAO_FLAGS(1073741824u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_HASSUBFOLDER: SFGAO_FLAGS = SFGAO_FLAGS(2147483648u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CONTENTSMASK: SFGAO_FLAGS = SFGAO_FLAGS(2147483648u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_VALIDATE: SFGAO_FLAGS = SFGAO_FLAGS(16777216u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_REMOVABLE: SFGAO_FLAGS = SFGAO_FLAGS(33554432u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_COMPRESSED: SFGAO_FLAGS = SFGAO_FLAGS(67108864u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_BROWSABLE: SFGAO_FLAGS = SFGAO_FLAGS(134217728u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_NONENUMERATED: SFGAO_FLAGS = SFGAO_FLAGS(1048576u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_NEWCONTENT: SFGAO_FLAGS = SFGAO_FLAGS(2097152u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_CANMONIKER: SFGAO_FLAGS = SFGAO_FLAGS(4194304u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_HASSTORAGE: SFGAO_FLAGS = SFGAO_FLAGS(4194304u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_STREAM: SFGAO_FLAGS = SFGAO_FLAGS(4194304u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_STORAGEANCESTOR: SFGAO_FLAGS = SFGAO_FLAGS(8388608u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_STORAGECAPMASK: SFGAO_FLAGS = SFGAO_FLAGS(1891958792u64); +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +pub const SFGAO_PKEYSFGAOMASK: SFGAO_FLAGS = SFGAO_FLAGS(2164539392u64); +impl ::core::marker::Copy for SFGAO_FLAGS {} +impl ::core::clone::Clone for SFGAO_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for SFGAO_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for SFGAO_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for SFGAO_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("SFGAO_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for SFGAO_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for SFGAO_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for SFGAO_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for SFGAO_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for SFGAO_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct STATIC_STYLES(pub u32); #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub const SS_LEFT: STATIC_STYLES = STATIC_STYLES(0u32); @@ -12158,6 +12383,50 @@ impl ::core::default::Default for IMPORT_OBJECT_HEADER_0 { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_System_SystemServices\"`, `\"Win32_System_JobObjects\"`*"] +#[cfg(feature = "Win32_System_JobObjects")] +pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1 { + pub MaxIops: i64, + pub MaxBandwidth: i64, + pub ReservationIops: i64, + pub VolumeName: ::windows::core::PWSTR, + pub BaseIoSize: u32, + pub ControlFlags: super::JobObjects::JOB_OBJECT_IO_RATE_CONTROL_FLAGS, + pub VolumeNameLength: u16, +} +#[cfg(feature = "Win32_System_JobObjects")] +impl ::core::marker::Copy for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1 {} +#[cfg(feature = "Win32_System_JobObjects")] +impl ::core::clone::Clone for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1 { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_System_JobObjects")] +impl ::core::fmt::Debug for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1").field("MaxIops", &self.MaxIops).field("MaxBandwidth", &self.MaxBandwidth).field("ReservationIops", &self.ReservationIops).field("VolumeName", &self.VolumeName).field("BaseIoSize", &self.BaseIoSize).field("ControlFlags", &self.ControlFlags).field("VolumeNameLength", &self.VolumeNameLength).finish() + } +} +#[cfg(feature = "Win32_System_JobObjects")] +unsafe impl ::windows::core::Abi for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1 { + type Abi = Self; +} +#[cfg(feature = "Win32_System_JobObjects")] +impl ::core::cmp::PartialEq for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1 { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_System_JobObjects")] +impl ::core::cmp::Eq for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1 {} +#[cfg(feature = "Win32_System_JobObjects")] +impl ::core::default::Default for JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] pub struct KERNEL_CET_CONTEXT { pub Ssp: u64, @@ -15481,62 +15750,62 @@ impl ::core::default::Default for RESUME_PERFORMANCE { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub struct RemBRUSH { +pub struct RemHBITMAP { pub cbData: u32, pub data: [u8; 1], } -impl ::core::marker::Copy for RemBRUSH {} -impl ::core::clone::Clone for RemBRUSH { +impl ::core::marker::Copy for RemHBITMAP {} +impl ::core::clone::Clone for RemHBITMAP { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for RemBRUSH { +impl ::core::fmt::Debug for RemHBITMAP { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RemBRUSH").field("cbData", &self.cbData).field("data", &self.data).finish() + f.debug_struct("RemHBITMAP").field("cbData", &self.cbData).field("data", &self.data).finish() } } -unsafe impl ::windows::core::Abi for RemBRUSH { +unsafe impl ::windows::core::Abi for RemHBITMAP { type Abi = Self; } -impl ::core::cmp::PartialEq for RemBRUSH { +impl ::core::cmp::PartialEq for RemHBITMAP { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for RemBRUSH {} -impl ::core::default::Default for RemBRUSH { +impl ::core::cmp::Eq for RemHBITMAP {} +impl ::core::default::Default for RemHBITMAP { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] -pub struct RemHBITMAP { +pub struct RemHBRUSH { pub cbData: u32, pub data: [u8; 1], } -impl ::core::marker::Copy for RemHBITMAP {} -impl ::core::clone::Clone for RemHBITMAP { +impl ::core::marker::Copy for RemHBRUSH {} +impl ::core::clone::Clone for RemHBRUSH { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for RemHBITMAP { +impl ::core::fmt::Debug for RemHBRUSH { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RemHBITMAP").field("cbData", &self.cbData).field("data", &self.data).finish() + f.debug_struct("RemHBRUSH").field("cbData", &self.cbData).field("data", &self.data).finish() } } -unsafe impl ::windows::core::Abi for RemHBITMAP { +unsafe impl ::windows::core::Abi for RemHBRUSH { type Abi = Self; } -impl ::core::cmp::PartialEq for RemHBITMAP { +impl ::core::cmp::PartialEq for RemHBRUSH { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for RemHBITMAP {} -impl ::core::default::Default for RemHBITMAP { +impl ::core::cmp::Eq for RemHBRUSH {} +impl ::core::default::Default for RemHBRUSH { fn default() -> Self { unsafe { ::core::mem::zeroed() } } diff --git a/crates/libs/windows/src/Windows/Win32/System/TpmBaseServices/mod.rs b/crates/libs/windows/src/Windows/Win32/System/TpmBaseServices/mod.rs index 526635989d..e546a53d72 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TpmBaseServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TpmBaseServices/mod.rs @@ -3,7 +3,7 @@ #[inline] pub unsafe fn GetDeviceID(pbwindowsaik: ::core::option::Option<&mut [u8]>, pcbresult: &mut u32, pfprotectedbytpm: ::core::option::Option<&mut super::super::Foundation::BOOL>) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn GetDeviceID(pbwindowsaik: *mut u8, cbwindowsaik: u32, pcbresult: *mut u32, pfprotectedbytpm: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT; } GetDeviceID(::core::mem::transmute(pbwindowsaik.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pbwindowsaik.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(pcbresult), ::core::mem::transmute(pfprotectedbytpm)).ok() @@ -13,7 +13,7 @@ pub unsafe fn GetDeviceID(pbwindowsaik: ::core::option::Option<&mut [u8]>, pcbre #[inline] pub unsafe fn GetDeviceIDString(pszwindowsaik: ::core::option::Option<&mut [u16]>, pcchresult: &mut u32, pfprotectedbytpm: ::core::option::Option<&mut super::super::Foundation::BOOL>) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn GetDeviceIDString(pszwindowsaik: ::windows::core::PWSTR, cchwindowsaik: u32, pcchresult: *mut u32, pfprotectedbytpm: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT; } GetDeviceIDString(::core::mem::transmute(pszwindowsaik.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pszwindowsaik.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(pcchresult), ::core::mem::transmute(pfprotectedbytpm)).ok() @@ -384,31 +384,31 @@ impl ::core::default::Default for TPM_DEVICE_INFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_TpmBaseServices\"`*"] -pub struct tdTPM_WNF_PROVISIONING { +pub struct TPM_WNF_PROVISIONING { pub status: u32, pub message: [u8; 28], } -impl ::core::marker::Copy for tdTPM_WNF_PROVISIONING {} -impl ::core::clone::Clone for tdTPM_WNF_PROVISIONING { +impl ::core::marker::Copy for TPM_WNF_PROVISIONING {} +impl ::core::clone::Clone for TPM_WNF_PROVISIONING { fn clone(&self) -> Self { *self } } -impl ::core::fmt::Debug for tdTPM_WNF_PROVISIONING { +impl ::core::fmt::Debug for TPM_WNF_PROVISIONING { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tdTPM_WNF_PROVISIONING").field("status", &self.status).field("message", &self.message).finish() + f.debug_struct("TPM_WNF_PROVISIONING").field("status", &self.status).field("message", &self.message).finish() } } -unsafe impl ::windows::core::Abi for tdTPM_WNF_PROVISIONING { +unsafe impl ::windows::core::Abi for TPM_WNF_PROVISIONING { type Abi = Self; } -impl ::core::cmp::PartialEq for tdTPM_WNF_PROVISIONING { +impl ::core::cmp::PartialEq for TPM_WNF_PROVISIONING { fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -impl ::core::cmp::Eq for tdTPM_WNF_PROVISIONING {} -impl ::core::default::Default for tdTPM_WNF_PROVISIONING { +impl ::core::cmp::Eq for TPM_WNF_PROVISIONING {} +impl ::core::default::Default for TPM_WNF_PROVISIONING { fn default() -> Self { unsafe { ::core::mem::zeroed() } } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs index 637651da8f..7ebc102b9a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs @@ -183,7 +183,7 @@ pub unsafe fn HSTRING_UserSize64(param0: &u32, param1: u32, param2: &::windows:: } #[doc = "*Required features: `\"Win32_System_WinRT\"`*"] #[inline] -pub unsafe fn HSTRING_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut ::windows::core::HSTRING) -> *mut u8 { +pub unsafe fn HSTRING_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut ::windows::core::HSTRING) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HSTRING_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> *mut u8; @@ -192,7 +192,7 @@ pub unsafe fn HSTRING_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mu } #[doc = "*Required features: `\"Win32_System_WinRT\"`*"] #[inline] -pub unsafe fn HSTRING_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut ::windows::core::HSTRING) -> *mut u8 { +pub unsafe fn HSTRING_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut ::windows::core::HSTRING) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HSTRING_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> *mut u8; 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 e26b4fb8f7..c5a2dd0654 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs @@ -1,116 +1,5 @@ #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] #[inline] -pub unsafe fn GetFeatureEnabledState(featureid: u32, changetime: FEATURE_CHANGE_TIME) -> FEATURE_ENABLED_STATE { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn GetFeatureEnabledState(featureid: u32, changetime: FEATURE_CHANGE_TIME) -> FEATURE_ENABLED_STATE; - } - GetFeatureEnabledState(featureid, changetime) -} -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -#[inline] -pub unsafe fn GetFeatureVariant(featureid: u32, changetime: FEATURE_CHANGE_TIME, payloadid: &mut u32, hasnotification: &mut super::super::Foundation::BOOL) -> u32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn GetFeatureVariant(featureid: u32, changetime: FEATURE_CHANGE_TIME, payloadid: *mut u32, hasnotification: *mut super::super::Foundation::BOOL) -> u32; - } - GetFeatureVariant(featureid, changetime, ::core::mem::transmute(payloadid), ::core::mem::transmute(hasnotification)) -} -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -#[inline] -pub unsafe fn RecordFeatureError(featureid: u32, error: &FEATURE_ERROR) { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RecordFeatureError(featureid: u32, error: *const FEATURE_ERROR); - } - RecordFeatureError(featureid, ::core::mem::transmute(error)) -} -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -#[inline] -pub unsafe fn RecordFeatureUsage<'a, P0>(featureid: u32, kind: u32, addend: u32, originname: P0) -where - P0: ::std::convert::Into<::windows::core::PCSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn RecordFeatureUsage(featureid: u32, kind: u32, addend: u32, originname: ::windows::core::PCSTR); - } - RecordFeatureUsage(featureid, kind, addend, originname.into()) -} -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -#[inline] -pub unsafe fn SubscribeFeatureStateChangeNotification(subscription: &mut FEATURE_STATE_CHANGE_SUBSCRIPTION, callback: PFEATURE_STATE_CHANGE_CALLBACK, context: *const ::core::ffi::c_void) { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn SubscribeFeatureStateChangeNotification(subscription: *mut FEATURE_STATE_CHANGE_SUBSCRIPTION, callback: *mut ::core::ffi::c_void, context: *const ::core::ffi::c_void); - } - SubscribeFeatureStateChangeNotification(::core::mem::transmute(subscription), ::core::mem::transmute(callback), ::core::mem::transmute(context)) -} -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -#[inline] -pub unsafe fn UnsubscribeFeatureStateChangeNotification<'a, P0>(subscription: P0) -where - P0: ::std::convert::Into, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn UnsubscribeFeatureStateChangeNotification(subscription: FEATURE_STATE_CHANGE_SUBSCRIPTION); - } - UnsubscribeFeatureStateChangeNotification(subscription.into()) -} -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[inline] -pub unsafe fn uaw_wcschr(string: &u16, character: u16) -> *mut u16 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn uaw_wcschr(string: *const u16, character: u16) -> *mut u16; - } - uaw_wcschr(::core::mem::transmute(string), character) -} -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[inline] -pub unsafe fn uaw_wcscpy(destination: &mut u16, source: &u16) -> *mut u16 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn uaw_wcscpy(destination: *mut u16, source: *const u16) -> *mut u16; - } - uaw_wcscpy(::core::mem::transmute(destination), ::core::mem::transmute(source)) -} -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[inline] -pub unsafe fn uaw_wcsicmp(string1: &u16, string2: &u16) -> i32 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn uaw_wcsicmp(string1: *const u16, string2: *const u16) -> i32; - } - uaw_wcsicmp(::core::mem::transmute(string1), ::core::mem::transmute(string2)) -} -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[inline] -pub unsafe fn uaw_wcslen(string: &u16) -> usize { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn uaw_wcslen(string: *const u16) -> usize; - } - uaw_wcslen(::core::mem::transmute(string)) -} -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -#[inline] -pub unsafe fn uaw_wcsrchr(string: &u16, character: u16) -> *mut u16 { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn uaw_wcsrchr(string: *const u16, character: u16) -> *mut u16; - } - uaw_wcsrchr(::core::mem::transmute(string), character) -} -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -#[inline] pub unsafe fn AddDelBackupEntryA<'a, P0, P1, P2>(lpcszfilelist: P0, lpcszbackupdir: P1, lpcszbasename: P2, dwflags: u32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCSTR>, @@ -699,6 +588,25 @@ where } #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] #[inline] +pub unsafe fn GetFeatureEnabledState(featureid: u32, changetime: FEATURE_CHANGE_TIME) -> FEATURE_ENABLED_STATE { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn GetFeatureEnabledState(featureid: u32, changetime: FEATURE_CHANGE_TIME) -> FEATURE_ENABLED_STATE; + } + GetFeatureEnabledState(featureid, changetime) +} +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +#[inline] +pub unsafe fn GetFeatureVariant(featureid: u32, changetime: FEATURE_CHANGE_TIME, payloadid: &mut u32, hasnotification: &mut super::super::Foundation::BOOL) -> u32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn GetFeatureVariant(featureid: u32, changetime: FEATURE_CHANGE_TIME, payloadid: *mut u32, hasnotification: *mut super::super::Foundation::BOOL) -> u32; + } + GetFeatureVariant(featureid, changetime, ::core::mem::transmute(payloadid), ::core::mem::transmute(hasnotification)) +} +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +#[inline] pub unsafe fn GetFirmwareEnvironmentVariableA<'a, P0, P1>(lpname: P0, lpguid: P1, pbuffer: ::core::option::Option<&mut [u8]>) -> u32 where P0: ::std::convert::Into<::windows::core::PCSTR>, @@ -1696,6 +1604,27 @@ where } RebootCheckOnInstallW(hwnd.into(), pszinf.into(), pszsec.into(), dwreserved).ok() } +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +#[inline] +pub unsafe fn RecordFeatureError(featureid: u32, error: &FEATURE_ERROR) { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RecordFeatureError(featureid: u32, error: *const FEATURE_ERROR); + } + RecordFeatureError(featureid, ::core::mem::transmute(error)) +} +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +#[inline] +pub unsafe fn RecordFeatureUsage<'a, P0>(featureid: u32, kind: u32, addend: u32, originname: P0) +where + P0: ::std::convert::Into<::windows::core::PCSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn RecordFeatureUsage(featureid: u32, kind: u32, addend: u32, originname: ::windows::core::PCSTR); + } + RecordFeatureUsage(featureid, kind, addend, originname.into()) +} #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -2242,6 +2171,15 @@ where } #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] #[inline] +pub unsafe fn SubscribeFeatureStateChangeNotification(subscription: &mut FEATURE_STATE_CHANGE_SUBSCRIPTION, callback: PFEATURE_STATE_CHANGE_CALLBACK, context: *const ::core::ffi::c_void) { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn SubscribeFeatureStateChangeNotification(subscription: *mut FEATURE_STATE_CHANGE_SUBSCRIPTION, callback: *mut ::core::ffi::c_void, context: *const ::core::ffi::c_void); + } + SubscribeFeatureStateChangeNotification(::core::mem::transmute(subscription), ::core::mem::transmute(callback), ::core::mem::transmute(context)) +} +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +#[inline] pub unsafe fn TranslateInfStringA<'a, P0, P1, P2, P3>(pszinffilename: P0, pszinstallsection: P1, psztranslatesection: P2, psztranslatekey: P3, pszbuffer: ::core::option::Option<&mut [u8]>, pdwrequiredsize: &mut u32, pvreserved: *mut ::core::ffi::c_void) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCSTR>, @@ -2298,6 +2236,18 @@ where } TranslateInfStringW(pszinffilename.into(), pszinstallsection.into(), psztranslatesection.into(), psztranslatekey.into(), ::core::mem::transmute(pszbuffer.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pszbuffer.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(pdwrequiredsize), ::core::mem::transmute(pvreserved)).ok() } +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +#[inline] +pub unsafe fn UnsubscribeFeatureStateChangeNotification<'a, P0>(subscription: P0) +where + P0: ::std::convert::Into, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn UnsubscribeFeatureStateChangeNotification(subscription: FEATURE_STATE_CHANGE_SUBSCRIPTION); + } + UnsubscribeFeatureStateChangeNotification(subscription.into()) +} #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -2788,6 +2738,56 @@ pub unsafe fn uaw_lstrlenW(string: &u16) -> i32 { uaw_lstrlenW(::core::mem::transmute(string)) } #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +#[inline] +pub unsafe fn uaw_wcschr(string: &u16, character: u16) -> *mut u16 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn uaw_wcschr(string: *const u16, character: u16) -> *mut u16; + } + uaw_wcschr(::core::mem::transmute(string), character) +} +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +#[inline] +pub unsafe fn uaw_wcscpy(destination: &mut u16, source: &u16) -> *mut u16 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn uaw_wcscpy(destination: *mut u16, source: *const u16) -> *mut u16; + } + uaw_wcscpy(::core::mem::transmute(destination), ::core::mem::transmute(source)) +} +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +#[inline] +pub unsafe fn uaw_wcsicmp(string1: &u16, string2: &u16) -> i32 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn uaw_wcsicmp(string1: *const u16, string2: *const u16) -> i32; + } + uaw_wcsicmp(::core::mem::transmute(string1), ::core::mem::transmute(string2)) +} +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +#[inline] +pub unsafe fn uaw_wcslen(string: &u16) -> usize { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn uaw_wcslen(string: *const u16) -> usize; + } + uaw_wcslen(::core::mem::transmute(string)) +} +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +#[inline] +pub unsafe fn uaw_wcsrchr(string: &u16, character: u16) -> *mut u16 { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn uaw_wcsrchr(string: *const u16, character: u16) -> *mut u16; + } + uaw_wcsrchr(::core::mem::transmute(string), character) +} +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] #[repr(transparent)] pub struct ICameraUIControl(::windows::core::IUnknown); impl ICameraUIControl { @@ -7615,6 +7615,139 @@ impl ::core::default::Default for SYSTEM_TIMEOFDAY_INFORMATION { } #[repr(C)] #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub struct TCP_REQUEST_QUERY_INFORMATION_EX32_XP { + pub ID: TDIObjectID, + pub Context: [u32; 4], +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::marker::Copy for TCP_REQUEST_QUERY_INFORMATION_EX32_XP {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::clone::Clone for TCP_REQUEST_QUERY_INFORMATION_EX32_XP { + fn clone(&self) -> Self { + *self + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::fmt::Debug for TCP_REQUEST_QUERY_INFORMATION_EX32_XP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TCP_REQUEST_QUERY_INFORMATION_EX32_XP").field("ID", &self.ID).field("Context", &self.Context).finish() + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +unsafe impl ::windows::core::Abi for TCP_REQUEST_QUERY_INFORMATION_EX32_XP { + type Abi = Self; +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::cmp::PartialEq for TCP_REQUEST_QUERY_INFORMATION_EX32_XP { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::cmp::Eq for TCP_REQUEST_QUERY_INFORMATION_EX32_XP {} +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +impl ::core::default::Default for TCP_REQUEST_QUERY_INFORMATION_EX32_XP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +pub struct TCP_REQUEST_QUERY_INFORMATION_EX_W2K { + pub ID: TDIObjectID, + pub Context: [u8; 16], +} +impl ::core::marker::Copy for TCP_REQUEST_QUERY_INFORMATION_EX_W2K {} +impl ::core::clone::Clone for TCP_REQUEST_QUERY_INFORMATION_EX_W2K { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for TCP_REQUEST_QUERY_INFORMATION_EX_W2K { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TCP_REQUEST_QUERY_INFORMATION_EX_W2K").field("ID", &self.ID).field("Context", &self.Context).finish() + } +} +unsafe impl ::windows::core::Abi for TCP_REQUEST_QUERY_INFORMATION_EX_W2K { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TCP_REQUEST_QUERY_INFORMATION_EX_W2K { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TCP_REQUEST_QUERY_INFORMATION_EX_W2K {} +impl ::core::default::Default for TCP_REQUEST_QUERY_INFORMATION_EX_W2K { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +pub struct TCP_REQUEST_QUERY_INFORMATION_EX_XP { + pub ID: TDIObjectID, + pub Context: [usize; 4], +} +impl ::core::marker::Copy for TCP_REQUEST_QUERY_INFORMATION_EX_XP {} +impl ::core::clone::Clone for TCP_REQUEST_QUERY_INFORMATION_EX_XP { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for TCP_REQUEST_QUERY_INFORMATION_EX_XP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TCP_REQUEST_QUERY_INFORMATION_EX_XP").field("ID", &self.ID).field("Context", &self.Context).finish() + } +} +unsafe impl ::windows::core::Abi for TCP_REQUEST_QUERY_INFORMATION_EX_XP { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TCP_REQUEST_QUERY_INFORMATION_EX_XP { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TCP_REQUEST_QUERY_INFORMATION_EX_XP {} +impl ::core::default::Default for TCP_REQUEST_QUERY_INFORMATION_EX_XP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] +pub struct TCP_REQUEST_SET_INFORMATION_EX { + pub ID: TDIObjectID, + pub BufferSize: u32, + pub Buffer: [u8; 1], +} +impl ::core::marker::Copy for TCP_REQUEST_SET_INFORMATION_EX {} +impl ::core::clone::Clone for TCP_REQUEST_SET_INFORMATION_EX { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for TCP_REQUEST_SET_INFORMATION_EX { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TCP_REQUEST_SET_INFORMATION_EX").field("ID", &self.ID).field("BufferSize", &self.BufferSize).field("Buffer", &self.Buffer).finish() + } +} +unsafe impl ::windows::core::Abi for TCP_REQUEST_SET_INFORMATION_EX { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TCP_REQUEST_SET_INFORMATION_EX { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TCP_REQUEST_SET_INFORMATION_EX {} +impl ::core::default::Default for TCP_REQUEST_SET_INFORMATION_EX { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] pub struct TDIEntityID { pub tei_entity: TDIENTITY_ENTITY_TYPE, pub tei_instance: u32, @@ -7940,139 +8073,6 @@ impl ::core::default::Default for WLDP_HOST_INFORMATION { pub struct _D3DHAL_CALLBACKS(pub u8); #[repr(C)] pub struct _D3DHAL_GLOBALDRIVERDATA(pub u8); -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub struct tcp_request_query_information_ex32_xp { - pub ID: TDIObjectID, - pub Context: [u32; 4], -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::marker::Copy for tcp_request_query_information_ex32_xp {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::clone::Clone for tcp_request_query_information_ex32_xp { - fn clone(&self) -> Self { - *self - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::fmt::Debug for tcp_request_query_information_ex32_xp { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tcp_request_query_information_ex32_xp").field("ID", &self.ID).field("Context", &self.Context).finish() - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -unsafe impl ::windows::core::Abi for tcp_request_query_information_ex32_xp { - type Abi = Self; -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::cmp::PartialEq for tcp_request_query_information_ex32_xp { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::cmp::Eq for tcp_request_query_information_ex32_xp {} -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -impl ::core::default::Default for tcp_request_query_information_ex32_xp { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -pub struct tcp_request_query_information_ex_w2k { - pub ID: TDIObjectID, - pub Context: [u8; 16], -} -impl ::core::marker::Copy for tcp_request_query_information_ex_w2k {} -impl ::core::clone::Clone for tcp_request_query_information_ex_w2k { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tcp_request_query_information_ex_w2k { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tcp_request_query_information_ex_w2k").field("ID", &self.ID).field("Context", &self.Context).finish() - } -} -unsafe impl ::windows::core::Abi for tcp_request_query_information_ex_w2k { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tcp_request_query_information_ex_w2k { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tcp_request_query_information_ex_w2k {} -impl ::core::default::Default for tcp_request_query_information_ex_w2k { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -pub struct tcp_request_query_information_ex_xp { - pub ID: TDIObjectID, - pub Context: [usize; 2], -} -impl ::core::marker::Copy for tcp_request_query_information_ex_xp {} -impl ::core::clone::Clone for tcp_request_query_information_ex_xp { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tcp_request_query_information_ex_xp { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tcp_request_query_information_ex_xp").field("ID", &self.ID).field("Context", &self.Context).finish() - } -} -unsafe impl ::windows::core::Abi for tcp_request_query_information_ex_xp { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tcp_request_query_information_ex_xp { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tcp_request_query_information_ex_xp {} -impl ::core::default::Default for tcp_request_query_information_ex_xp { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] -pub struct tcp_request_set_information_ex { - pub ID: TDIObjectID, - pub BufferSize: u32, - pub Buffer: [u8; 1], -} -impl ::core::marker::Copy for tcp_request_set_information_ex {} -impl ::core::clone::Clone for tcp_request_set_information_ex { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tcp_request_set_information_ex { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tcp_request_set_information_ex").field("ID", &self.ID).field("BufferSize", &self.BufferSize).field("Buffer", &self.Buffer).finish() - } -} -unsafe impl ::windows::core::Abi for tcp_request_set_information_ex { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tcp_request_set_information_ex { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tcp_request_set_information_ex {} -impl ::core::default::Default for tcp_request_set_information_ex { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] pub type APPLICATION_RECOVERY_CALLBACK = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs index b4b1e2014e..24524d964b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs @@ -9467,26 +9467,59 @@ impl ::core::fmt::Debug for WBEM_LIMITS { #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct WBEM_LOCKING(pub i32); +pub struct WBEM_LOCKING_FLAG_TYPE(pub i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WBEM_FLAG_ALLOW_READ: WBEM_LOCKING = WBEM_LOCKING(1i32); -impl ::core::marker::Copy for WBEM_LOCKING {} -impl ::core::clone::Clone for WBEM_LOCKING { +pub const WBEM_FLAG_ALLOW_READ: WBEM_LOCKING_FLAG_TYPE = WBEM_LOCKING_FLAG_TYPE(1i32); +impl ::core::marker::Copy for WBEM_LOCKING_FLAG_TYPE {} +impl ::core::clone::Clone for WBEM_LOCKING_FLAG_TYPE { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for WBEM_LOCKING { +impl ::core::default::Default for WBEM_LOCKING_FLAG_TYPE { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for WBEM_LOCKING { +unsafe impl ::windows::core::Abi for WBEM_LOCKING_FLAG_TYPE { type Abi = Self; } -impl ::core::fmt::Debug for WBEM_LOCKING { +impl ::core::fmt::Debug for WBEM_LOCKING_FLAG_TYPE { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("WBEM_LOCKING").field(&self.0).finish() + f.debug_tuple("WBEM_LOCKING_FLAG_TYPE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct WBEM_LOGIN_TYPE(pub i32); +#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] +pub const WBEM_FLAG_INPROC_LOGIN: WBEM_LOGIN_TYPE = WBEM_LOGIN_TYPE(0i32); +#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] +pub const WBEM_FLAG_LOCAL_LOGIN: WBEM_LOGIN_TYPE = WBEM_LOGIN_TYPE(1i32); +#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] +pub const WBEM_FLAG_REMOTE_LOGIN: WBEM_LOGIN_TYPE = WBEM_LOGIN_TYPE(2i32); +#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] +pub const WBEM_AUTHENTICATION_METHOD_MASK: WBEM_LOGIN_TYPE = WBEM_LOGIN_TYPE(15i32); +#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] +pub const WBEM_FLAG_USE_MULTIPLE_CHALLENGES: WBEM_LOGIN_TYPE = WBEM_LOGIN_TYPE(16i32); +impl ::core::marker::Copy for WBEM_LOGIN_TYPE {} +impl ::core::clone::Clone for WBEM_LOGIN_TYPE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for WBEM_LOGIN_TYPE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for WBEM_LOGIN_TYPE { + type Abi = Self; +} +impl ::core::fmt::Debug for WBEM_LOGIN_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("WBEM_LOGIN_TYPE").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] @@ -10065,52 +10098,52 @@ impl ::core::fmt::Debug for WMIQ_LANGUAGE_FEATURES { #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct WMIQ_RPNQ_FEATURE(pub i32); +pub struct WMIQ_RPNF_FEATURE(pub i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_WHERE_CLAUSE_PRESENT: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(1i32); +pub const WMIQ_RPNF_WHERE_CLAUSE_PRESENT: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(1i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_QUERY_IS_CONJUNCTIVE: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(2i32); +pub const WMIQ_RPNF_QUERY_IS_CONJUNCTIVE: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(2i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_QUERY_IS_DISJUNCTIVE: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(4i32); +pub const WMIQ_RPNF_QUERY_IS_DISJUNCTIVE: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(4i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_PROJECTION: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(8i32); +pub const WMIQ_RPNF_PROJECTION: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(8i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_FEATURE_SELECT_STAR: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(16i32); +pub const WMIQ_RPNF_FEATURE_SELECT_STAR: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(16i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_EQUALITY_TESTS_ONLY: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(32i32); +pub const WMIQ_RPNF_EQUALITY_TESTS_ONLY: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(32i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_COUNT_STAR: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(64i32); +pub const WMIQ_RPNF_COUNT_STAR: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(64i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_QUALIFIED_NAMES_USED: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(128i32); +pub const WMIQ_RPNF_QUALIFIED_NAMES_USED: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(128i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_SYSPROP_CLASS_USED: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(256i32); +pub const WMIQ_RPNF_SYSPROP_CLASS_USED: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(256i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_PROP_TO_PROP_TESTS: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(512i32); +pub const WMIQ_RPNF_PROP_TO_PROP_TESTS: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(512i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_ORDER_BY: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(1024i32); +pub const WMIQ_RPNF_ORDER_BY: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(1024i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_ISA_USED: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(2048i32); +pub const WMIQ_RPNF_ISA_USED: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(2048i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_GROUP_BY_HAVING: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(4096i32); +pub const WMIQ_RPNF_GROUP_BY_HAVING: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(4096i32); #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WMIQ_RPNF_ARRAY_ACCESS_USED: WMIQ_RPNQ_FEATURE = WMIQ_RPNQ_FEATURE(8192i32); -impl ::core::marker::Copy for WMIQ_RPNQ_FEATURE {} -impl ::core::clone::Clone for WMIQ_RPNQ_FEATURE { +pub const WMIQ_RPNF_ARRAY_ACCESS_USED: WMIQ_RPNF_FEATURE = WMIQ_RPNF_FEATURE(8192i32); +impl ::core::marker::Copy for WMIQ_RPNF_FEATURE {} +impl ::core::clone::Clone for WMIQ_RPNF_FEATURE { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for WMIQ_RPNQ_FEATURE { +impl ::core::default::Default for WMIQ_RPNF_FEATURE { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for WMIQ_RPNQ_FEATURE { +unsafe impl ::windows::core::Abi for WMIQ_RPNF_FEATURE { type Abi = Self; } -impl ::core::fmt::Debug for WMIQ_RPNQ_FEATURE { +impl ::core::fmt::Debug for WMIQ_RPNF_FEATURE { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("WMIQ_RPNQ_FEATURE").field(&self.0).finish() + f.debug_tuple("WMIQ_RPNF_FEATURE").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] @@ -10990,39 +11023,6 @@ impl ::core::fmt::Debug for WbemTimeout { f.debug_tuple("WbemTimeout").field(&self.0).finish() } } -#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct tag_WBEM_LOGIN_TYPE(pub i32); -#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WBEM_FLAG_INPROC_LOGIN: tag_WBEM_LOGIN_TYPE = tag_WBEM_LOGIN_TYPE(0i32); -#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WBEM_FLAG_LOCAL_LOGIN: tag_WBEM_LOGIN_TYPE = tag_WBEM_LOGIN_TYPE(1i32); -#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WBEM_FLAG_REMOTE_LOGIN: tag_WBEM_LOGIN_TYPE = tag_WBEM_LOGIN_TYPE(2i32); -#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WBEM_AUTHENTICATION_METHOD_MASK: tag_WBEM_LOGIN_TYPE = tag_WBEM_LOGIN_TYPE(15i32); -#[doc = "*Required features: `\"Win32_System_Wmi\"`*"] -pub const WBEM_FLAG_USE_MULTIPLE_CHALLENGES: tag_WBEM_LOGIN_TYPE = tag_WBEM_LOGIN_TYPE(16i32); -impl ::core::marker::Copy for tag_WBEM_LOGIN_TYPE {} -impl ::core::clone::Clone for tag_WBEM_LOGIN_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for tag_WBEM_LOGIN_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for tag_WBEM_LOGIN_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for tag_WBEM_LOGIN_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("tag_WBEM_LOGIN_TYPE").field(&self.0).finish() - } -} #[repr(C)] #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] pub struct MI_Application { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/impl.rs index 94f772a5d5..a9ef76c930 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/impl.rs @@ -135,14 +135,14 @@ impl IRichEditOle_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Ole", feature = "Win32_System_SystemServices", feature = "Win32_UI_WindowsAndMessaging"))] pub trait IRichEditOleCallback_Impl: Sized { fn GetNewStorage(&self) -> ::windows::core::Result; - fn GetInPlaceContext(&self, lplpframe: *mut ::core::option::Option, lplpdoc: *mut ::core::option::Option, lpframeinfo: *mut super::super::super::System::Ole::OIFI) -> ::windows::core::Result<()>; + fn GetInPlaceContext(&self, lplpframe: *mut ::core::option::Option, lplpdoc: *mut ::core::option::Option, lpframeinfo: *mut super::super::super::System::Ole::OLEINPLACEFRAMEINFO) -> ::windows::core::Result<()>; fn ShowContainerUI(&self, fshow: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn QueryInsertObject(&self, lpclsid: *mut ::windows::core::GUID, lpstg: &::core::option::Option, cp: i32) -> ::windows::core::Result<()>; fn DeleteObject(&self, lpoleobj: &::core::option::Option) -> ::windows::core::Result<()>; - fn QueryAcceptData(&self, lpdataobj: &::core::option::Option, lpcfformat: *mut u16, reco: u32, freally: super::super::super::Foundation::BOOL, hmetapict: isize) -> ::windows::core::Result<()>; + fn QueryAcceptData(&self, lpdataobj: &::core::option::Option, lpcfformat: *mut u16, reco: super::super::super::System::SystemServices::RECO_FLAGS, freally: super::super::super::Foundation::BOOL, hmetapict: isize) -> ::windows::core::Result<()>; fn ContextSensitiveHelp(&self, fentermode: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn GetClipboardData(&self, lpchrg: *mut CHARRANGE, reco: u32, lplpdataobj: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn GetDragDropEffect(&self, fdrag: super::super::super::Foundation::BOOL, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut u32) -> ::windows::core::Result<()>; + fn GetDragDropEffect(&self, fdrag: super::super::super::Foundation::BOOL, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut super::super::super::System::Ole::DROPEFFECT) -> ::windows::core::Result<()>; fn GetContextMenu(&self, seltype: RICH_EDIT_GET_CONTEXT_MENU_SEL_TYPE, lpoleobj: &::core::option::Option, lpchrg: *mut CHARRANGE, lphmenu: *mut super::super::WindowsAndMessaging::HMENU) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Ole", feature = "Win32_System_SystemServices", feature = "Win32_UI_WindowsAndMessaging"))] @@ -161,7 +161,7 @@ impl IRichEditOleCallback_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetInPlaceContext, Impl: IRichEditOleCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lplpframe: *mut *mut ::core::ffi::c_void, lplpdoc: *mut *mut ::core::ffi::c_void, lpframeinfo: *mut super::super::super::System::Ole::OIFI) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetInPlaceContext, Impl: IRichEditOleCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lplpframe: *mut *mut ::core::ffi::c_void, lplpdoc: *mut *mut ::core::ffi::c_void, lpframeinfo: *mut super::super::super::System::Ole::OLEINPLACEFRAMEINFO) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetInPlaceContext(::core::mem::transmute_copy(&lplpframe), ::core::mem::transmute_copy(&lplpdoc), ::core::mem::transmute_copy(&lpframeinfo)).into() @@ -181,7 +181,7 @@ impl IRichEditOleCallback_Vtbl { let this = (*this).get_impl(); this.DeleteObject(::core::mem::transmute(&lpoleobj)).into() } - unsafe extern "system" fn QueryAcceptData, Impl: IRichEditOleCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpdataobj: *mut ::core::ffi::c_void, lpcfformat: *mut u16, reco: u32, freally: super::super::super::Foundation::BOOL, hmetapict: isize) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueryAcceptData, Impl: IRichEditOleCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpdataobj: *mut ::core::ffi::c_void, lpcfformat: *mut u16, reco: super::super::super::System::SystemServices::RECO_FLAGS, freally: super::super::super::Foundation::BOOL, hmetapict: isize) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.QueryAcceptData(::core::mem::transmute(&lpdataobj), ::core::mem::transmute_copy(&lpcfformat), ::core::mem::transmute_copy(&reco), ::core::mem::transmute_copy(&freally), ::core::mem::transmute_copy(&hmetapict)).into() @@ -196,7 +196,7 @@ impl IRichEditOleCallback_Vtbl { let this = (*this).get_impl(); this.GetClipboardData(::core::mem::transmute_copy(&lpchrg), ::core::mem::transmute_copy(&reco), ::core::mem::transmute_copy(&lplpdataobj)).into() } - unsafe extern "system" fn GetDragDropEffect, Impl: IRichEditOleCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fdrag: super::super::super::Foundation::BOOL, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDragDropEffect, Impl: IRichEditOleCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fdrag: super::super::super::Foundation::BOOL, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut super::super::super::System::Ole::DROPEFFECT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDragDropEffect(::core::mem::transmute_copy(&fdrag), ::core::mem::transmute_copy(&grfkeystate), ::core::mem::transmute_copy(&pdweffect)).into() @@ -268,8 +268,8 @@ pub trait ITextDocument_Impl: Sized + super::super::super::System::Com::IDispatc fn GetDefaultTabStop(&self) -> ::windows::core::Result; fn SetDefaultTabStop(&self, value: f32) -> ::windows::core::Result<()>; fn New(&self) -> ::windows::core::Result<()>; - fn Open(&self, pvar: *const super::super::super::System::Com::VARIANT, flags: i32, codepage: i32) -> ::windows::core::Result<()>; - fn Save(&self, pvar: *const super::super::super::System::Com::VARIANT, flags: i32, codepage: i32) -> ::windows::core::Result<()>; + fn Open(&self, pvar: *const super::super::super::System::Com::VARIANT, flags: tomConstants, codepage: i32) -> ::windows::core::Result<()>; + fn Save(&self, pvar: *const super::super::super::System::Com::VARIANT, flags: tomConstants, codepage: i32) -> ::windows::core::Result<()>; fn Freeze(&self) -> ::windows::core::Result; fn Unfreeze(&self) -> ::windows::core::Result; fn BeginEditCollection(&self) -> ::windows::core::Result<()>; @@ -365,12 +365,12 @@ impl ITextDocument_Vtbl { let this = (*this).get_impl(); this.New().into() } - unsafe extern "system" fn Open, Impl: ITextDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvar: *const super::super::super::System::Com::VARIANT, flags: i32, codepage: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Open, Impl: ITextDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvar: *const super::super::super::System::Com::VARIANT, flags: tomConstants, codepage: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Open(::core::mem::transmute_copy(&pvar), ::core::mem::transmute_copy(&flags), ::core::mem::transmute_copy(&codepage)).into() } - unsafe extern "system" fn Save, Impl: ITextDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvar: *const super::super::super::System::Com::VARIANT, flags: i32, codepage: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Save, Impl: ITextDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvar: *const super::super::super::System::Com::VARIANT, flags: tomConstants, codepage: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Save(::core::mem::transmute_copy(&pvar), ::core::mem::transmute_copy(&flags), ::core::mem::transmute_copy(&codepage)).into() @@ -3335,18 +3335,18 @@ pub trait ITextRange_Impl: Sized + super::super::super::System::Com::IDispatch_I fn MoveUntil(&self, cset: *const super::super::super::System::Com::VARIANT, count: i32) -> ::windows::core::Result; fn MoveStartUntil(&self, cset: *const super::super::super::System::Com::VARIANT, count: i32) -> ::windows::core::Result; fn MoveEndUntil(&self, cset: *const super::super::super::System::Com::VARIANT, count: i32) -> ::windows::core::Result; - fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result; - fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result; - fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result; + fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result; + fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result; + fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result; fn Delete(&self, unit: i32, count: i32) -> ::windows::core::Result; fn Cut(&self) -> ::windows::core::Result; fn Copy(&self) -> ::windows::core::Result; fn Paste(&self, pvar: *const super::super::super::System::Com::VARIANT, format: i32) -> ::windows::core::Result<()>; fn CanPaste(&self, pvar: *const super::super::super::System::Com::VARIANT, format: i32) -> ::windows::core::Result; fn CanEdit(&self) -> ::windows::core::Result; - fn ChangeCase(&self, r#type: i32) -> ::windows::core::Result<()>; - fn GetPoint(&self, r#type: i32, px: *mut i32, py: *mut i32) -> ::windows::core::Result<()>; - fn SetPoint(&self, x: i32, y: i32, r#type: i32, extend: i32) -> ::windows::core::Result<()>; + fn ChangeCase(&self, r#type: tomConstants) -> ::windows::core::Result<()>; + fn GetPoint(&self, r#type: tomConstants, px: *mut i32, py: *mut i32) -> ::windows::core::Result<()>; + fn SetPoint(&self, x: i32, y: i32, r#type: tomConstants, extend: i32) -> ::windows::core::Result<()>; fn ScrollIntoView(&self, value: i32) -> ::windows::core::Result<()>; fn GetEmbeddedObject(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } @@ -3696,7 +3696,7 @@ impl ITextRange_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FindText, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindText, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: tomConstants, plength: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindText(::core::mem::transmute(&bstr), ::core::mem::transmute_copy(&count), ::core::mem::transmute_copy(&flags)) { @@ -3707,7 +3707,7 @@ impl ITextRange_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FindTextStart, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindTextStart, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: tomConstants, plength: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindTextStart(::core::mem::transmute(&bstr), ::core::mem::transmute_copy(&count), ::core::mem::transmute_copy(&flags)) { @@ -3718,7 +3718,7 @@ impl ITextRange_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FindTextEnd, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindTextEnd, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: tomConstants, plength: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindTextEnd(::core::mem::transmute(&bstr), ::core::mem::transmute_copy(&count), ::core::mem::transmute_copy(&flags)) { @@ -3789,17 +3789,17 @@ impl ITextRange_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ChangeCase, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ChangeCase, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: tomConstants) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ChangeCase(::core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetPoint, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: i32, px: *mut i32, py: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPoint, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: tomConstants, px: *mut i32, py: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPoint(::core::mem::transmute_copy(&r#type), ::core::mem::transmute_copy(&px), ::core::mem::transmute_copy(&py)).into() } - unsafe extern "system" fn SetPoint, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, x: i32, y: i32, r#type: i32, extend: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPoint, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, x: i32, y: i32, r#type: tomConstants, extend: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPoint(::core::mem::transmute_copy(&x), ::core::mem::transmute_copy(&y), ::core::mem::transmute_copy(&r#type), ::core::mem::transmute_copy(&extend)).into() diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/mod.rs index f48d3006d3..9ee15900c0 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/mod.rs @@ -179,7 +179,7 @@ impl IRichEditOleCallback { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] - pub unsafe fn GetInPlaceContext(&self, lplpframe: &mut ::core::option::Option, lplpdoc: &mut ::core::option::Option, lpframeinfo: &mut super::super::super::System::Ole::OIFI) -> ::windows::core::Result<()> { + pub unsafe fn GetInPlaceContext(&self, lplpframe: &mut ::core::option::Option, lplpdoc: &mut ::core::option::Option, lpframeinfo: &mut super::super::super::System::Ole::OLEINPLACEFRAMEINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetInPlaceContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(lplpframe), ::core::mem::transmute(lplpdoc), ::core::mem::transmute(lpframeinfo)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -206,9 +206,9 @@ impl IRichEditOleCallback { { (::windows::core::Interface::vtable(self).DeleteObject)(::windows::core::Interface::as_raw(self), lpoleobj.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn QueryAcceptData<'a, P0, P1>(&self, lpdataobj: P0, lpcfformat: &mut u16, reco: u32, freally: P1, hmetapict: isize) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_SystemServices\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] + pub unsafe fn QueryAcceptData<'a, P0, P1>(&self, lpdataobj: P0, lpcfformat: &mut u16, reco: super::super::super::System::SystemServices::RECO_FLAGS, freally: P1, hmetapict: isize) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::IDataObject>>, P1: ::std::convert::Into, @@ -228,9 +228,9 @@ impl IRichEditOleCallback { pub unsafe fn GetClipboardData(&self, lpchrg: &mut CHARRANGE, reco: u32, lplpdataobj: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetClipboardData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(lpchrg), reco, ::core::mem::transmute(lplpdataobj)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_SystemServices\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemServices"))] - pub unsafe fn GetDragDropEffect<'a, P0>(&self, fdrag: P0, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: &mut u32) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`, `\"Win32_System_SystemServices\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_System_SystemServices"))] + pub unsafe fn GetDragDropEffect<'a, P0>(&self, fdrag: P0, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: &mut super::super::super::System::Ole::DROPEFFECT) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { @@ -289,7 +289,7 @@ pub struct IRichEditOleCallback_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] GetNewStorage: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] - pub GetInPlaceContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lplpframe: *mut *mut ::core::ffi::c_void, lplpdoc: *mut *mut ::core::ffi::c_void, lpframeinfo: *mut super::super::super::System::Ole::OIFI) -> ::windows::core::HRESULT, + pub GetInPlaceContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lplpframe: *mut *mut ::core::ffi::c_void, lplpdoc: *mut *mut ::core::ffi::c_void, lpframeinfo: *mut super::super::super::System::Ole::OLEINPLACEFRAMEINFO) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging")))] GetInPlaceContext: usize, #[cfg(feature = "Win32_Foundation")] @@ -304,9 +304,9 @@ pub struct IRichEditOleCallback_Vtbl { pub DeleteObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpoleobj: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] DeleteObject: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub QueryAcceptData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpdataobj: *mut ::core::ffi::c_void, lpcfformat: *mut u16, reco: u32, freally: super::super::super::Foundation::BOOL, hmetapict: isize) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] + pub QueryAcceptData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpdataobj: *mut ::core::ffi::c_void, lpcfformat: *mut u16, reco: super::super::super::System::SystemServices::RECO_FLAGS, freally: super::super::super::Foundation::BOOL, hmetapict: isize) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_SystemServices")))] QueryAcceptData: usize, #[cfg(feature = "Win32_Foundation")] pub ContextSensitiveHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fentermode: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -316,9 +316,9 @@ pub struct IRichEditOleCallback_Vtbl { pub GetClipboardData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpchrg: *mut CHARRANGE, reco: u32, lplpdataobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetClipboardData: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_SystemServices"))] - pub GetDragDropEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fdrag: super::super::super::Foundation::BOOL, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_SystemServices")))] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_System_SystemServices"))] + pub GetDragDropEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fdrag: super::super::super::Foundation::BOOL, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut super::super::super::System::Ole::DROPEFFECT) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_System_SystemServices")))] GetDragDropEffect: usize, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] pub GetContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, seltype: RICH_EDIT_GET_CONTEXT_MENU_SEL_TYPE, lpoleobj: *mut ::core::ffi::c_void, lpchrg: *mut CHARRANGE, lphmenu: *mut super::super::WindowsAndMessaging::HMENU) -> ::windows::core::HRESULT, @@ -497,12 +497,12 @@ impl ITextDocument { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Open(&self, pvar: &super::super::super::System::Com::VARIANT, flags: i32, codepage: i32) -> ::windows::core::Result<()> { + pub unsafe fn Open(&self, pvar: &super::super::super::System::Com::VARIANT, flags: tomConstants, codepage: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Open)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvar), flags, codepage).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Save(&self, pvar: &super::super::super::System::Com::VARIANT, flags: i32, codepage: i32) -> ::windows::core::Result<()> { + pub unsafe fn Save(&self, pvar: &super::super::super::System::Com::VARIANT, flags: tomConstants, codepage: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Save)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvar), flags, codepage).ok() } pub unsafe fn Freeze(&self) -> ::windows::core::Result { @@ -622,11 +622,11 @@ pub struct ITextDocument_Vtbl { pub SetDefaultTabStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows::core::HRESULT, pub New: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvar: *const super::super::super::System::Com::VARIANT, flags: i32, codepage: i32) -> ::windows::core::HRESULT, + pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvar: *const super::super::super::System::Com::VARIANT, flags: tomConstants, codepage: i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Open: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvar: *const super::super::super::System::Com::VARIANT, flags: i32, codepage: i32) -> ::windows::core::HRESULT, + pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvar: *const super::super::super::System::Com::VARIANT, flags: tomConstants, codepage: i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Save: usize, pub Freeze: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows::core::HRESULT, @@ -689,12 +689,12 @@ impl ITextDocument2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Open(&self, pvar: &super::super::super::System::Com::VARIANT, flags: i32, codepage: i32) -> ::windows::core::Result<()> { + pub unsafe fn Open(&self, pvar: &super::super::super::System::Com::VARIANT, flags: tomConstants, codepage: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Open)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvar), flags, codepage).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Save(&self, pvar: &super::super::super::System::Com::VARIANT, flags: i32, codepage: i32) -> ::windows::core::Result<()> { + pub unsafe fn Save(&self, pvar: &super::super::super::System::Com::VARIANT, flags: tomConstants, codepage: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Save)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvar), flags, codepage).ok() } pub unsafe fn Freeze(&self) -> ::windows::core::Result { @@ -1127,12 +1127,12 @@ impl ITextDocument2Old { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Open(&self, pvar: &super::super::super::System::Com::VARIANT, flags: i32, codepage: i32) -> ::windows::core::Result<()> { + pub unsafe fn Open(&self, pvar: &super::super::super::System::Com::VARIANT, flags: tomConstants, codepage: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Open)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvar), flags, codepage).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Save(&self, pvar: &super::super::super::System::Com::VARIANT, flags: i32, codepage: i32) -> ::windows::core::Result<()> { + pub unsafe fn Save(&self, pvar: &super::super::super::System::Com::VARIANT, flags: tomConstants, codepage: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Save)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvar), flags, codepage).ok() } pub unsafe fn Freeze(&self) -> ::windows::core::Result { @@ -2407,8 +2407,8 @@ impl ITextHost { pub unsafe fn TxGetViewInset(&self, prc: &mut super::super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TxGetViewInset)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] + #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn TxGetCharFormat(&self, ppcf: &*const CHARFORMATW) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TxGetCharFormat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppcf)).ok() } @@ -2441,8 +2441,8 @@ impl ITextHost { pub unsafe fn TxGetExtent(&self, lpextent: &mut super::super::super::Foundation::SIZE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TxGetExtent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(lpextent)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] + #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn OnTxCharFormatChange(&self, pcf: &CHARFORMATW) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).OnTxCharFormatChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcf)).ok() } @@ -2591,9 +2591,9 @@ pub struct ITextHost_Vtbl { pub TxGetViewInset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prc: *mut super::super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] TxGetViewInset: usize, - #[cfg(feature = "Win32_Foundation")] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub TxGetCharFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcf: *const *const CHARFORMATW) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] + #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] TxGetCharFormat: usize, pub TxGetParaFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppf: *const *const PARAFORMAT) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] @@ -2609,9 +2609,9 @@ pub struct ITextHost_Vtbl { pub TxGetExtent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpextent: *mut super::super::super::Foundation::SIZE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] TxGetExtent: usize, - #[cfg(feature = "Win32_Foundation")] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub OnTxCharFormatChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcf: *const CHARFORMATW) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] + #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] OnTxCharFormatChange: usize, pub OnTxParaFormatChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppf: *const PARAFORMAT) -> ::windows::core::HRESULT, pub TxGetPropertyBits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmask: u32, pdwbits: *mut u32) -> ::windows::core::HRESULT, @@ -2771,8 +2771,8 @@ impl ITextHost2 { pub unsafe fn TxGetViewInset(&self, prc: &mut super::super::super::Foundation::RECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.TxGetViewInset)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] + #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn TxGetCharFormat(&self, ppcf: &*const CHARFORMATW) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.TxGetCharFormat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppcf)).ok() } @@ -2805,8 +2805,8 @@ impl ITextHost2 { pub unsafe fn TxGetExtent(&self, lpextent: &mut super::super::super::Foundation::SIZE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.TxGetExtent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(lpextent)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] + #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub unsafe fn OnTxCharFormatChange(&self, pcf: &CHARFORMATW) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.OnTxCharFormatChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcf)).ok() } @@ -3841,15 +3841,15 @@ impl ITextRange { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).MoveEndUntil)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(cset), count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).FindText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).FindTextStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).FindTextEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } @@ -3884,13 +3884,13 @@ impl ITextRange { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CanEdit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn ChangeCase(&self, r#type: i32) -> ::windows::core::Result<()> { + pub unsafe fn ChangeCase(&self, r#type: tomConstants) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ChangeCase)(::windows::core::Interface::as_raw(self), r#type).ok() } - pub unsafe fn GetPoint(&self, r#type: i32, px: &mut i32, py: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetPoint(&self, r#type: tomConstants, px: &mut i32, py: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPoint)(::windows::core::Interface::as_raw(self), r#type, ::core::mem::transmute(px), ::core::mem::transmute(py)).ok() } - pub unsafe fn SetPoint(&self, x: i32, y: i32, r#type: i32, extend: i32) -> ::windows::core::Result<()> { + pub unsafe fn SetPoint(&self, x: i32, y: i32, r#type: tomConstants, extend: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetPoint)(::windows::core::Interface::as_raw(self), x, y, r#type, extend).ok() } pub unsafe fn ScrollIntoView(&self, value: i32) -> ::windows::core::Result<()> { @@ -4052,9 +4052,9 @@ pub struct ITextRange_Vtbl { pub MoveEndUntil: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cset: *const super::super::super::System::Com::VARIANT, count: i32, pdelta: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] MoveEndUntil: usize, - pub FindText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT, - pub FindTextStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT, - pub FindTextEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT, + pub FindText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: tomConstants, plength: *mut i32) -> ::windows::core::HRESULT, + pub FindTextStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: tomConstants, plength: *mut i32) -> ::windows::core::HRESULT, + pub FindTextEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: tomConstants, plength: *mut i32) -> ::windows::core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unit: i32, count: i32, pdelta: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Cut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvar: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -4073,9 +4073,9 @@ pub struct ITextRange_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CanPaste: usize, pub CanEdit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, - pub ChangeCase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: i32) -> ::windows::core::HRESULT, - pub GetPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: i32, px: *mut i32, py: *mut i32) -> ::windows::core::HRESULT, - pub SetPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: i32, y: i32, r#type: i32, extend: i32) -> ::windows::core::HRESULT, + pub ChangeCase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: tomConstants) -> ::windows::core::HRESULT, + pub GetPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: tomConstants, px: *mut i32, py: *mut i32) -> ::windows::core::HRESULT, + pub SetPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: i32, y: i32, r#type: tomConstants, extend: i32) -> ::windows::core::HRESULT, pub ScrollIntoView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, pub GetEmbeddedObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -4272,15 +4272,15 @@ impl ITextRange2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.MoveEndUntil)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(cset), count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.FindText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.FindTextStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.FindTextEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } @@ -4315,13 +4315,13 @@ impl ITextRange2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CanEdit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn ChangeCase(&self, r#type: i32) -> ::windows::core::Result<()> { + pub unsafe fn ChangeCase(&self, r#type: tomConstants) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.ChangeCase)(::windows::core::Interface::as_raw(self), r#type).ok() } - pub unsafe fn GetPoint(&self, r#type: i32, px: &mut i32, py: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetPoint(&self, r#type: tomConstants, px: &mut i32, py: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetPoint)(::windows::core::Interface::as_raw(self), r#type, ::core::mem::transmute(px), ::core::mem::transmute(py)).ok() } - pub unsafe fn SetPoint(&self, x: i32, y: i32, r#type: i32, extend: i32) -> ::windows::core::Result<()> { + pub unsafe fn SetPoint(&self, x: i32, y: i32, r#type: tomConstants, extend: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetPoint)(::windows::core::Interface::as_raw(self), x, y, r#type, extend).ok() } pub unsafe fn ScrollIntoView(&self, value: i32) -> ::windows::core::Result<()> { @@ -5195,15 +5195,15 @@ impl ITextSelection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.MoveEndUntil)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(cset), count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.FindText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.FindTextStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.FindTextEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } @@ -5238,13 +5238,13 @@ impl ITextSelection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CanEdit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn ChangeCase(&self, r#type: i32) -> ::windows::core::Result<()> { + pub unsafe fn ChangeCase(&self, r#type: tomConstants) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ChangeCase)(::windows::core::Interface::as_raw(self), r#type).ok() } - pub unsafe fn GetPoint(&self, r#type: i32, px: &mut i32, py: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetPoint(&self, r#type: tomConstants, px: &mut i32, py: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetPoint)(::windows::core::Interface::as_raw(self), r#type, ::core::mem::transmute(px), ::core::mem::transmute(py)).ok() } - pub unsafe fn SetPoint(&self, x: i32, y: i32, r#type: i32, extend: i32) -> ::windows::core::Result<()> { + pub unsafe fn SetPoint(&self, x: i32, y: i32, r#type: tomConstants, extend: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPoint)(::windows::core::Interface::as_raw(self), x, y, r#type, extend).ok() } pub unsafe fn ScrollIntoView(&self, value: i32) -> ::windows::core::Result<()> { @@ -5581,15 +5581,15 @@ impl ITextSelection2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.MoveEndUntil)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(cset), count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.FindText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.FindTextStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: tomConstants) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.FindTextEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } @@ -5624,13 +5624,13 @@ impl ITextSelection2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CanEdit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - pub unsafe fn ChangeCase(&self, r#type: i32) -> ::windows::core::Result<()> { + pub unsafe fn ChangeCase(&self, r#type: tomConstants) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.ChangeCase)(::windows::core::Interface::as_raw(self), r#type).ok() } - pub unsafe fn GetPoint(&self, r#type: i32, px: &mut i32, py: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetPoint(&self, r#type: tomConstants, px: &mut i32, py: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.GetPoint)(::windows::core::Interface::as_raw(self), r#type, ::core::mem::transmute(px), ::core::mem::transmute(py)).ok() } - pub unsafe fn SetPoint(&self, x: i32, y: i32, r#type: i32, extend: i32) -> ::windows::core::Result<()> { + pub unsafe fn SetPoint(&self, x: i32, y: i32, r#type: tomConstants, extend: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetPoint)(::windows::core::Interface::as_raw(self), x, y, r#type, extend).ok() } pub unsafe fn ScrollIntoView(&self, value: i32) -> ::windows::core::Result<()> { @@ -7479,28 +7479,6 @@ pub const PFM_TABLEROWDELIMITER: u32 = 268435456u32; #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub const PFM_TEXTWRAPPINGBREAK: u32 = 536870912u32; #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const PFN_ARABIC: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const PFN_BULLET: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const PFN_LCLETTER: u32 = 3u32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const PFN_LCROMAN: u32 = 5u32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const PFN_UCLETTER: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const PFN_UCROMAN: u32 = 6u32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const RECO_COPY: i32 = 2i32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const RECO_CUT: i32 = 3i32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const RECO_DRAG: i32 = 4i32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const RECO_DROP: i32 = 1i32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub const RECO_PASTE: i32 = 0i32; -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub const REO_NULL: i32 = 0i32; #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub const REO_READWRITEMASK: i32 = 2047i32; @@ -8565,6 +8543,69 @@ impl ::core::ops::Not for PARAFORMAT_MASK { #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct PARAFORMAT_NUMBERING(pub u16); +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub const PFN_BULLET: PARAFORMAT_NUMBERING = PARAFORMAT_NUMBERING(1u16); +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub const PFN_ARABIC: PARAFORMAT_NUMBERING = PARAFORMAT_NUMBERING(2u16); +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub const PFN_LCLETTER: PARAFORMAT_NUMBERING = PARAFORMAT_NUMBERING(3u16); +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub const PFN_UCLETTER: PARAFORMAT_NUMBERING = PARAFORMAT_NUMBERING(4u16); +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub const PFN_LCROMAN: PARAFORMAT_NUMBERING = PARAFORMAT_NUMBERING(5u16); +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub const PFN_UCROMAN: PARAFORMAT_NUMBERING = PARAFORMAT_NUMBERING(6u16); +impl ::core::marker::Copy for PARAFORMAT_NUMBERING {} +impl ::core::clone::Clone for PARAFORMAT_NUMBERING { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for PARAFORMAT_NUMBERING { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for PARAFORMAT_NUMBERING { + type Abi = Self; +} +impl ::core::fmt::Debug for PARAFORMAT_NUMBERING { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("PARAFORMAT_NUMBERING").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for PARAFORMAT_NUMBERING { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for PARAFORMAT_NUMBERING { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for PARAFORMAT_NUMBERING { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for PARAFORMAT_NUMBERING { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for PARAFORMAT_NUMBERING { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct PARAFORMAT_NUMBERING_STYLE(pub u16); #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub const PFNS_PAREN: PARAFORMAT_NUMBERING_STYLE = PARAFORMAT_NUMBERING_STYLE(0u16); @@ -10341,8 +10382,8 @@ impl ::core::default::Default for CHANGENOTIFY { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct CHARFORMAT2A { pub Base: CHARFORMATA, pub wWeight: u16, @@ -10357,68 +10398,68 @@ pub struct CHARFORMAT2A { pub bRevAuthor: u8, pub bUnderlineColor: u8, } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for CHARFORMAT2A {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for CHARFORMAT2A { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] unsafe impl ::windows::core::Abi for CHARFORMAT2A { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::PartialEq for CHARFORMAT2A { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::Eq for CHARFORMAT2A {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::default::Default for CHARFORMAT2A { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub union CHARFORMAT2A_0 { pub dwReserved: u32, pub dwCookie: u32, } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for CHARFORMAT2A_0 {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for CHARFORMAT2A_0 { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] unsafe impl ::windows::core::Abi for CHARFORMAT2A_0 { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::PartialEq for CHARFORMAT2A_0 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::Eq for CHARFORMAT2A_0 {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::default::Default for CHARFORMAT2A_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct CHARFORMAT2W { pub Base: CHARFORMATW, pub wWeight: u16, @@ -10433,68 +10474,68 @@ pub struct CHARFORMAT2W { pub bRevAuthor: u8, pub bUnderlineColor: u8, } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for CHARFORMAT2W {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for CHARFORMAT2W { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] unsafe impl ::windows::core::Abi for CHARFORMAT2W { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::PartialEq for CHARFORMAT2W { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::Eq for CHARFORMAT2W {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::default::Default for CHARFORMAT2W { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub union CHARFORMAT2W_0 { pub dwReserved: u32, pub dwCookie: u32, } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for CHARFORMAT2W_0 {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for CHARFORMAT2W_0 { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] unsafe impl ::windows::core::Abi for CHARFORMAT2W_0 { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::PartialEq for CHARFORMAT2W_0 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::Eq for CHARFORMAT2W_0 {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::default::Default for CHARFORMAT2W_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct CHARFORMATA { pub cbSize: u32, pub dwMask: CFM_MASK, @@ -10502,45 +10543,45 @@ pub struct CHARFORMATA { pub yHeight: i32, pub yOffset: i32, pub crTextColor: super::super::super::Foundation::COLORREF, - pub bCharSet: u8, - pub bPitchAndFamily: u8, + pub bCharSet: super::super::super::Graphics::Gdi::EMBED_FONT_CHARSET, + pub bPitchAndFamily: super::super::super::Graphics::Gdi::FONT_PITCH_AND_FAMILY, pub szFaceName: [super::super::super::Foundation::CHAR; 32], } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for CHARFORMATA {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for CHARFORMATA { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::fmt::Debug for CHARFORMATA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("CHARFORMATA").field("cbSize", &self.cbSize).field("dwMask", &self.dwMask).field("dwEffects", &self.dwEffects).field("yHeight", &self.yHeight).field("yOffset", &self.yOffset).field("crTextColor", &self.crTextColor).field("bCharSet", &self.bCharSet).field("bPitchAndFamily", &self.bPitchAndFamily).field("szFaceName", &self.szFaceName).finish() } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] unsafe impl ::windows::core::Abi for CHARFORMATA { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::PartialEq for CHARFORMATA { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::Eq for CHARFORMATA {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::default::Default for CHARFORMATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct CHARFORMATW { pub cbSize: u32, pub dwMask: CFM_MASK, @@ -10548,37 +10589,37 @@ pub struct CHARFORMATW { pub yHeight: i32, pub yOffset: i32, pub crTextColor: super::super::super::Foundation::COLORREF, - pub bCharSet: u8, - pub bPitchAndFamily: u8, + pub bCharSet: super::super::super::Graphics::Gdi::EMBED_FONT_CHARSET, + pub bPitchAndFamily: super::super::super::Graphics::Gdi::FONT_PITCH_AND_FAMILY, pub szFaceName: [u16; 32], } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for CHARFORMATW {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::clone::Clone for CHARFORMATW { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::fmt::Debug for CHARFORMATW { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("CHARFORMATW").field("cbSize", &self.cbSize).field("dwMask", &self.dwMask).field("dwEffects", &self.dwEffects).field("yHeight", &self.yHeight).field("yOffset", &self.yOffset).field("crTextColor", &self.crTextColor).field("bCharSet", &self.bCharSet).field("bPitchAndFamily", &self.bPitchAndFamily).field("szFaceName", &self.szFaceName).finish() } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] unsafe impl ::windows::core::Abi for CHARFORMATW { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::PartialEq for CHARFORMATW { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::cmp::Eq for CHARFORMATW {} -#[cfg(feature = "Win32_Foundation")] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::default::Default for CHARFORMATW { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -11229,6 +11270,39 @@ impl ::core::default::Default for GETTEXTLENGTHEX { } } #[repr(C, packed(4))] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct GROUPTYPINGCHANGE { + pub nmhdr: super::NMHDR, + pub fGroupTyping: super::super::super::Foundation::BOOL, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for GROUPTYPINGCHANGE {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for GROUPTYPINGCHANGE { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for GROUPTYPINGCHANGE { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for GROUPTYPINGCHANGE { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for GROUPTYPINGCHANGE {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for GROUPTYPINGCHANGE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C, packed(4))] #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub struct HYPHENATEINFO { pub cbSize: i16, @@ -11257,6 +11331,38 @@ impl ::core::default::Default for HYPHENATEINFO { } #[repr(C)] #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] +pub struct HYPHRESULT { + pub khyph: KHYPH, + pub ichHyph: i32, + pub chHyph: u16, +} +impl ::core::marker::Copy for HYPHRESULT {} +impl ::core::clone::Clone for HYPHRESULT { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for HYPHRESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("HYPHRESULT").field("khyph", &self.khyph).field("ichHyph", &self.ichHyph).field("chHyph", &self.chHyph).finish() + } +} +unsafe impl ::windows::core::Abi for HYPHRESULT { + type Abi = Self; +} +impl ::core::cmp::PartialEq for HYPHRESULT { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for HYPHRESULT {} +impl ::core::default::Default for HYPHRESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub struct IMECOMPTEXT { pub cb: i32, pub flags: IMECOMPTEXT_FLAGS, @@ -11360,7 +11466,7 @@ impl ::core::default::Default for OBJECTPOSITIONS { pub struct PARAFORMAT { pub cbSize: u32, pub dwMask: PARAFORMAT_MASK, - pub wNumbering: u16, + pub wNumbering: PARAFORMAT_NUMBERING, pub Anonymous: PARAFORMAT_0, pub dxStartIndent: i32, pub dxRightIndent: i32, @@ -11852,71 +11958,6 @@ impl ::core::default::Default for TEXTRANGEW { unsafe { ::core::mem::zeroed() } } } -#[repr(C, packed(4))] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct _grouptypingchange { - pub nmhdr: super::NMHDR, - pub fGroupTyping: super::super::super::Foundation::BOOL, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _grouptypingchange {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _grouptypingchange { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for _grouptypingchange { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for _grouptypingchange { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_grouptypingchange>()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for _grouptypingchange {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for _grouptypingchange { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] -pub struct hyphresult { - pub khyph: KHYPH, - pub ichHyph: i32, - pub chHyph: u16, -} -impl ::core::marker::Copy for hyphresult {} -impl ::core::clone::Clone for hyphresult { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for hyphresult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("hyphresult").field("khyph", &self.khyph).field("ichHyph", &self.ichHyph).field("chHyph", &self.chHyph).finish() - } -} -unsafe impl ::windows::core::Abi for hyphresult { - type Abi = Self; -} -impl ::core::cmp::PartialEq for hyphresult { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for hyphresult {} -impl ::core::default::Default for hyphresult { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] pub type AutoCorrectProc = ::core::option::Option i32>; #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs index 3695b7fb2a..84cd340ac1 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs @@ -2175,14 +2175,14 @@ where #[doc = "*Required features: `\"Win32_UI_Controls\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn ImageList_WriteEx<'a, P0, P1>(himl: P0, dwflags: u32, pstm: P1) -> ::windows::core::Result<()> +pub unsafe fn ImageList_WriteEx<'a, P0, P1>(himl: P0, dwflags: IMAGE_LIST_WRITE_STREAM_FLAGS, pstm: P1) -> ::windows::core::Result<()> where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IStream>>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn ImageList_WriteEx(himl: HIMAGELIST, dwflags: u32, pstm: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; + fn ImageList_WriteEx(himl: HIMAGELIST, dwflags: IMAGE_LIST_WRITE_STREAM_FLAGS, pstm: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } ImageList_WriteEx(himl.into(), dwflags, pstm.into().abi()).ok() } @@ -3467,32 +3467,6 @@ pub const CDDS_ITEM: u32 = 65536u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const CDDS_POSTERASE: u32 = 4u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_CHECKED: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_DEFAULT: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_DISABLED: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_DROPHILITED: u32 = 4096u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_FOCUS: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_GRAYED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_HOT: u32 = 64u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_INDETERMINATE: u32 = 256u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_MARKED: u32 = 128u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_NEARHOT: u32 = 1024u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_OTHERSIDEHOT: u32 = 2048u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_SELECTED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CDIS_SHOWKEYBOARDCUES: u32 = 512u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const CDRF_DODEFAULT: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const CDRF_DOERASE: u32 = 8u32; @@ -3797,56 +3771,10 @@ pub const GDTR_MIN: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const GDT_ERROR: i32 = -1i32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const GDT_NONE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const GDT_VALID: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const GMR_DAYSTATE: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const GMR_VISIBLE: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDFT_HASNOVALUE: u32 = 32768u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDFT_ISDATE: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDFT_ISNUMBER: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDFT_ISSTRING: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_BITMAP: u32 = 8192u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_BITMAP_ON_RIGHT: u32 = 4096u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_CENTER: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_CHECKBOX: u32 = 64u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_CHECKED: u32 = 128u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_FIXEDWIDTH: u32 = 256u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_IMAGE: u32 = 2048u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_JUSTIFYMASK: u32 = 3u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_LEFT: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_OWNERDRAW: u32 = 32768u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_RIGHT: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_RTLREADING: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_SORTDOWN: u32 = 512u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_SORTUP: u32 = 1024u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_SPLITBUTTON: u32 = 16777216u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDF_STRING: u32 = 16384u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HDIS_FOCUSED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HDM_CLEARFILTER: u32 = 4632u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HDM_CREATEDRAGIMAGE: u32 = 4624u32; @@ -3939,32 +3867,6 @@ pub const HDS_NOSIZING: u32 = 2048u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HDS_OVERFLOW: u32 = 4096u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ABOVE: u32 = 256u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_BELOW: u32 = 512u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_NOWHERE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONDIVIDER: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONDIVOPEN: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONDROPDOWN: u32 = 8192u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONFILTER: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONFILTERBUTTON: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONHEADER: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONITEMSTATEICON: u32 = 4096u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_ONOVERFLOW: u32 = 16384u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_TOLEFT: u32 = 2048u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HHT_TORIGHT: u32 = 1024u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HIST_ADDTOFAVORITES: u32 = 3u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const HIST_BACK: u32 = 0u32; @@ -4097,10 +3999,6 @@ pub const ILGT_ASYNC: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const ILGT_NORMAL: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const ILP_DOWNLEVEL: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const ILP_NORMAL: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const ILR_DEFAULT: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const ILR_HORIZONTAL_CENTER: u32 = 1u32; @@ -4152,24 +4050,6 @@ pub const I_IMAGENONE: i32 = -2i32; pub const I_INDENTCALLBACK: i32 = -1i32; pub const ImageList: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7c476ba2_02b1_48f4_8048_b24619ddc058); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIF_ITEMID: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIF_ITEMINDEX: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIF_STATE: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIF_URL: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIS_DEFAULTCOLORS: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIS_ENABLED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIS_FOCUSED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIS_HOTTRACK: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LIS_VISITED: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LM_GETIDEALHEIGHT: u32 = 1793u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LM_GETIDEALSIZE: u32 = 1793u32; @@ -4188,48 +4068,14 @@ pub const LVA_DEFAULT: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVA_SNAPTOGRID: u32 = 5u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_FLAG_ALPHABLEND: u32 = 536870912u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_FLAG_TILEOFFSET: u32 = 256u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_SOURCE_HBITMAP: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_SOURCE_MASK: u32 = 3u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_SOURCE_NONE: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_SOURCE_URL: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_STYLE_MASK: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_STYLE_NORMAL: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_STYLE_TILE: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVBKIF_TYPE_WATERMARK: u32 = 268435456u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVCDRF_NOGROUPFRAME: u32 = 131072u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVCDRF_NOSELECT: u32 = 65536u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVCFMT_FILL: u32 = 2097152u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVCFMT_LINE_BREAK: u32 = 1048576u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVCFMT_NO_TITLE: u32 = 8388608u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVCFMT_WRAP: u32 = 4194304u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVFF_ITEMCOUNT: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVFIS_FOCUSED: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGA_FOOTER_CENTER: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGA_FOOTER_LEFT: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGA_FOOTER_RIGHT: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVGF_ALIGN: u32 = 8u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVGF_DESCRIPTIONBOTTOM: u32 = 2048u32; @@ -4260,8 +4106,6 @@ pub const LVGGR_LABEL: u32 = 2u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVGGR_SUBSETLINK: u32 = 3u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGIT_UNFOLDED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVGMF_BORDERCOLOR: u32 = 2u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVGMF_BORDERSIZE: u32 = 1u32; @@ -4270,46 +4114,6 @@ pub const LVGMF_NONE: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVGMF_TEXTCOLOR: u32 = 4u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_COLLAPSED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_COLLAPSIBLE: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_FOCUSED: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_HIDDEN: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_NOHEADER: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_NORMAL: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_SELECTED: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_SUBSETED: u32 = 64u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGS_SUBSETLINKFOCUSED: u32 = 128u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_COLFMT: u32 = 65536u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_COLUMNS: u32 = 512u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_DI_SETITEM: u32 = 4096u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_GROUPID: u32 = 256u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_IMAGE: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_INDENT: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_NORECOMPUTE: u32 = 2048u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_PARAM: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_STATE: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIF_TEXT: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIM_AFTER: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVIR_BOUNDS: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVIR_ICON: u32 = 1u32; @@ -4318,22 +4122,6 @@ pub const LVIR_LABEL: u32 = 2u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVIR_SELECTBOUNDS: u32 = 3u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_ACTIVATING: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_CUT: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_DROPHILITED: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_FOCUSED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_GLOW: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_OVERLAYMASK: u32 = 3840u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_SELECTED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVIS_STATEIMAGEMASK: u32 = 61440u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVKF_ALT: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const LVKF_CONTROL: u32 = 2u32; @@ -4852,34 +4640,6 @@ pub const MAX_THEMECOLOR: u32 = 64u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const MAX_THEMESIZE: u32 = 64u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_CALENDAR: u32 = 131072u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_CALENDARBK: u32 = 131072u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_CALENDARCONTROL: u32 = 1048576u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_NEXT: u32 = 16777216u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_NOWHERE: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_PREV: u32 = 33554432u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_TITLE: u32 = 65536u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_TITLEBK: u32 = 65536u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCHT_TODAYLINK: u32 = 196608u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCMV_CENTURY: u32 = 3u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCMV_DECADE: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCMV_MAX: u32 = 3u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCMV_MONTH: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const MCMV_YEAR: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const MCM_FIRST: u32 = 4096u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const MCM_GETCALENDARBORDER: u32 = 4127u32; @@ -6112,10 +5872,6 @@ pub const TB_THUMBTRACK: u32 = 5u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TB_TOP: u32 = 6u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TCIS_BUTTONPRESSED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TCIS_HIGHLIGHTED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TCM_ADJUSTRECT: u32 = 4904u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TCM_DELETEALLITEMS: u32 = 4873u32; @@ -6270,8 +6026,6 @@ pub const TTDT_INITIAL: u32 = 3u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TTDT_RESHOW: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_DI_SETITEM: u32 = 32768u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TTM_ACTIVATE: u32 = 1025u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TTM_ADDTOOL: u32 = 1074u32; @@ -6400,22 +6154,6 @@ pub const TTS_USEVISUALSTYLE: u32 = 256u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TVCDRF_NOIMAGES: u32 = 65536u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVC_BYKEYBOARD: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVC_BYMOUSE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVC_UNKNOWN: u32 = 0u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVE_COLLAPSE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVE_COLLAPSERESET: u32 = 32768u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVE_EXPAND: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVE_EXPANDPARTIAL: u32 = 16384u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVE_TOGGLE: u32 = 3u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TVGN_CARET: u32 = 9u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TVGN_CHILD: u32 = 4u32; @@ -6440,32 +6178,6 @@ pub const TVGN_PREVIOUSVISIBLE: u32 = 7u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TVGN_ROOT: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_BOLD: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_CUT: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_DROPHILITED: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_EXPANDED: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_EXPANDEDONCE: u32 = 64u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_EXPANDPARTIAL: u32 = 128u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_EX_ALL: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_EX_DISABLED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_EX_FLAT: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_OVERLAYMASK: u32 = 3840u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_SELECTED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_STATEIMAGEMASK: u32 = 61440u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TVIS_USERMASK: u32 = 61440u32; -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TVI_FIRST: HTREEITEM = HTREEITEM(-65535i32 as _); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TVI_LAST: HTREEITEM = HTREEITEM(-65534i32 as _); @@ -11108,176 +10820,364 @@ impl ::core::fmt::Debug for HEADERSTYLESTATES { #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct HEADER_CONTROL_NOTIFICATION_BUTTON(pub u32); +pub struct HEADER_CONTROL_FORMAT_FLAGS(pub i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HEADER_CONTROL_NOTIFICATION_BUTTON_LEFT: HEADER_CONTROL_NOTIFICATION_BUTTON = HEADER_CONTROL_NOTIFICATION_BUTTON(0u32); +pub const HDF_LEFT: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(0i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HEADER_CONTROL_NOTIFICATION_BUTTON_RIGHT: HEADER_CONTROL_NOTIFICATION_BUTTON = HEADER_CONTROL_NOTIFICATION_BUTTON(1u32); +pub const HDF_RIGHT: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(1i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HEADER_CONTROL_NOTIFICATION_BUTTON_MIDDLE: HEADER_CONTROL_NOTIFICATION_BUTTON = HEADER_CONTROL_NOTIFICATION_BUTTON(2u32); -impl ::core::marker::Copy for HEADER_CONTROL_NOTIFICATION_BUTTON {} -impl ::core::clone::Clone for HEADER_CONTROL_NOTIFICATION_BUTTON { +pub const HDF_CENTER: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(2i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_JUSTIFYMASK: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(3i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_RTLREADING: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(4i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_BITMAP: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(8192i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_STRING: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(16384i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_OWNERDRAW: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(32768i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_IMAGE: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(2048i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_BITMAP_ON_RIGHT: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(4096i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_SORTUP: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(1024i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_SORTDOWN: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(512i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_CHECKBOX: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(64i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_CHECKED: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(128i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_FIXEDWIDTH: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(256i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HDF_SPLITBUTTON: HEADER_CONTROL_FORMAT_FLAGS = HEADER_CONTROL_FORMAT_FLAGS(16777216i32); +impl ::core::marker::Copy for HEADER_CONTROL_FORMAT_FLAGS {} +impl ::core::clone::Clone for HEADER_CONTROL_FORMAT_FLAGS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for HEADER_CONTROL_NOTIFICATION_BUTTON { +impl ::core::default::Default for HEADER_CONTROL_FORMAT_FLAGS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for HEADER_CONTROL_NOTIFICATION_BUTTON { +unsafe impl ::windows::core::Abi for HEADER_CONTROL_FORMAT_FLAGS { type Abi = Self; } -impl ::core::fmt::Debug for HEADER_CONTROL_NOTIFICATION_BUTTON { +impl ::core::fmt::Debug for HEADER_CONTROL_FORMAT_FLAGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("HEADER_CONTROL_NOTIFICATION_BUTTON").field(&self.0).finish() + f.debug_tuple("HEADER_CONTROL_FORMAT_FLAGS").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct HELPBUTTONSTATES(pub i32); +pub struct HEADER_CONTROL_FORMAT_STATE(pub u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HBS_NORMAL: HELPBUTTONSTATES = HELPBUTTONSTATES(1i32); -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HBS_HOT: HELPBUTTONSTATES = HELPBUTTONSTATES(2i32); -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HBS_PUSHED: HELPBUTTONSTATES = HELPBUTTONSTATES(3i32); -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HBS_DISABLED: HELPBUTTONSTATES = HELPBUTTONSTATES(4i32); -impl ::core::marker::Copy for HELPBUTTONSTATES {} -impl ::core::clone::Clone for HELPBUTTONSTATES { +pub const HDIS_FOCUSED: HEADER_CONTROL_FORMAT_STATE = HEADER_CONTROL_FORMAT_STATE(1u32); +impl ::core::marker::Copy for HEADER_CONTROL_FORMAT_STATE {} +impl ::core::clone::Clone for HEADER_CONTROL_FORMAT_STATE { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for HELPBUTTONSTATES { +impl ::core::default::Default for HEADER_CONTROL_FORMAT_STATE { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for HELPBUTTONSTATES { +unsafe impl ::windows::core::Abi for HEADER_CONTROL_FORMAT_STATE { type Abi = Self; } -impl ::core::fmt::Debug for HELPBUTTONSTATES { +impl ::core::fmt::Debug for HEADER_CONTROL_FORMAT_STATE { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("HELPBUTTONSTATES").field(&self.0).finish() + f.debug_tuple("HEADER_CONTROL_FORMAT_STATE").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct HELPLINKSTATES(pub i32); +pub struct HEADER_CONTROL_FORMAT_TYPE(pub u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CPHL_NORMAL: HELPLINKSTATES = HELPLINKSTATES(1i32); +pub const HDFT_ISSTRING: HEADER_CONTROL_FORMAT_TYPE = HEADER_CONTROL_FORMAT_TYPE(0u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CPHL_HOT: HELPLINKSTATES = HELPLINKSTATES(2i32); +pub const HDFT_ISNUMBER: HEADER_CONTROL_FORMAT_TYPE = HEADER_CONTROL_FORMAT_TYPE(1u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CPHL_PRESSED: HELPLINKSTATES = HELPLINKSTATES(3i32); +pub const HDFT_ISDATE: HEADER_CONTROL_FORMAT_TYPE = HEADER_CONTROL_FORMAT_TYPE(2u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const CPHL_DISABLED: HELPLINKSTATES = HELPLINKSTATES(4i32); -impl ::core::marker::Copy for HELPLINKSTATES {} -impl ::core::clone::Clone for HELPLINKSTATES { +pub const HDFT_HASNOVALUE: HEADER_CONTROL_FORMAT_TYPE = HEADER_CONTROL_FORMAT_TYPE(32768u32); +impl ::core::marker::Copy for HEADER_CONTROL_FORMAT_TYPE {} +impl ::core::clone::Clone for HEADER_CONTROL_FORMAT_TYPE { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for HELPLINKSTATES { +impl ::core::default::Default for HEADER_CONTROL_FORMAT_TYPE { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for HELPLINKSTATES { +unsafe impl ::windows::core::Abi for HEADER_CONTROL_FORMAT_TYPE { type Abi = Self; } -impl ::core::fmt::Debug for HELPLINKSTATES { +impl ::core::fmt::Debug for HEADER_CONTROL_FORMAT_TYPE { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("HELPLINKSTATES").field(&self.0).finish() + f.debug_tuple("HEADER_CONTROL_FORMAT_TYPE").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct HORZSCROLLSTATES(pub i32); -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HSS_NORMAL: HORZSCROLLSTATES = HORZSCROLLSTATES(1i32); +pub struct HEADER_CONTROL_NOTIFICATION_BUTTON(pub u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HSS_HOT: HORZSCROLLSTATES = HORZSCROLLSTATES(2i32); +pub const HEADER_CONTROL_NOTIFICATION_BUTTON_LEFT: HEADER_CONTROL_NOTIFICATION_BUTTON = HEADER_CONTROL_NOTIFICATION_BUTTON(0u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HSS_PUSHED: HORZSCROLLSTATES = HORZSCROLLSTATES(3i32); +pub const HEADER_CONTROL_NOTIFICATION_BUTTON_RIGHT: HEADER_CONTROL_NOTIFICATION_BUTTON = HEADER_CONTROL_NOTIFICATION_BUTTON(1u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HSS_DISABLED: HORZSCROLLSTATES = HORZSCROLLSTATES(4i32); -impl ::core::marker::Copy for HORZSCROLLSTATES {} -impl ::core::clone::Clone for HORZSCROLLSTATES { +pub const HEADER_CONTROL_NOTIFICATION_BUTTON_MIDDLE: HEADER_CONTROL_NOTIFICATION_BUTTON = HEADER_CONTROL_NOTIFICATION_BUTTON(2u32); +impl ::core::marker::Copy for HEADER_CONTROL_NOTIFICATION_BUTTON {} +impl ::core::clone::Clone for HEADER_CONTROL_NOTIFICATION_BUTTON { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for HORZSCROLLSTATES { +impl ::core::default::Default for HEADER_CONTROL_NOTIFICATION_BUTTON { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for HORZSCROLLSTATES { +unsafe impl ::windows::core::Abi for HEADER_CONTROL_NOTIFICATION_BUTTON { type Abi = Self; } -impl ::core::fmt::Debug for HORZSCROLLSTATES { +impl ::core::fmt::Debug for HEADER_CONTROL_NOTIFICATION_BUTTON { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("HORZSCROLLSTATES").field(&self.0).finish() + f.debug_tuple("HEADER_CONTROL_NOTIFICATION_BUTTON").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct HORZTHUMBSTATES(pub i32); +pub struct HEADER_HITTEST_INFO_FLAGS(pub u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HTS_NORMAL: HORZTHUMBSTATES = HORZTHUMBSTATES(1i32); +pub const HHT_NOWHERE: HEADER_HITTEST_INFO_FLAGS = HEADER_HITTEST_INFO_FLAGS(1u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HTS_HOT: HORZTHUMBSTATES = HORZTHUMBSTATES(2i32); +pub const HHT_ONHEADER: HEADER_HITTEST_INFO_FLAGS = HEADER_HITTEST_INFO_FLAGS(2u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HTS_PUSHED: HORZTHUMBSTATES = HORZTHUMBSTATES(3i32); +pub const HHT_ONDIVIDER: HEADER_HITTEST_INFO_FLAGS = HEADER_HITTEST_INFO_FLAGS(4u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HTS_DISABLED: HORZTHUMBSTATES = HORZTHUMBSTATES(4i32); -impl ::core::marker::Copy for HORZTHUMBSTATES {} -impl ::core::clone::Clone for HORZTHUMBSTATES { +pub const HHT_ONDIVOPEN: HEADER_HITTEST_INFO_FLAGS = HEADER_HITTEST_INFO_FLAGS(8u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ONFILTER: HEADER_HITTEST_INFO_FLAGS = HEADER_HITTEST_INFO_FLAGS(16u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ONFILTERBUTTON: HEADER_HITTEST_INFO_FLAGS = HEADER_HITTEST_INFO_FLAGS(32u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ABOVE: HEADER_HITTEST_INFO_FLAGS = HEADER_HITTEST_INFO_FLAGS(256u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_BELOW: HEADER_HITTEST_INFO_FLAGS = HEADER_HITTEST_INFO_FLAGS(512u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_TORIGHT: HEADER_HITTEST_INFO_FLAGS = HEADER_HITTEST_INFO_FLAGS(1024u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_TOLEFT: HEADER_HITTEST_INFO_FLAGS = HEADER_HITTEST_INFO_FLAGS(2048u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ONITEMSTATEICON: HEADER_HITTEST_INFO_FLAGS = HEADER_HITTEST_INFO_FLAGS(4096u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ONDROPDOWN: HEADER_HITTEST_INFO_FLAGS = HEADER_HITTEST_INFO_FLAGS(8192u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HHT_ONOVERFLOW: HEADER_HITTEST_INFO_FLAGS = HEADER_HITTEST_INFO_FLAGS(16384u32); +impl ::core::marker::Copy for HEADER_HITTEST_INFO_FLAGS {} +impl ::core::clone::Clone for HEADER_HITTEST_INFO_FLAGS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for HORZTHUMBSTATES { +impl ::core::default::Default for HEADER_HITTEST_INFO_FLAGS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for HORZTHUMBSTATES { +unsafe impl ::windows::core::Abi for HEADER_HITTEST_INFO_FLAGS { type Abi = Self; } -impl ::core::fmt::Debug for HORZTHUMBSTATES { +impl ::core::fmt::Debug for HEADER_HITTEST_INFO_FLAGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("HORZTHUMBSTATES").field(&self.0).finish() + f.debug_tuple("HEADER_HITTEST_INFO_FLAGS").field(&self.0).finish() } } -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct HOTGLYPHSTATES(pub i32); -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HGLPS_CLOSED: HOTGLYPHSTATES = HOTGLYPHSTATES(1i32); -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const HGLPS_OPENED: HOTGLYPHSTATES = HOTGLYPHSTATES(2i32); -impl ::core::marker::Copy for HOTGLYPHSTATES {} -impl ::core::clone::Clone for HOTGLYPHSTATES { - fn clone(&self) -> Self { - *self +impl ::core::ops::BitOr for HEADER_HITTEST_INFO_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) } } -impl ::core::default::Default for HOTGLYPHSTATES { - fn default() -> Self { - Self(0) +impl ::core::ops::BitAnd for HEADER_HITTEST_INFO_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) } } -unsafe impl ::windows::core::Abi for HOTGLYPHSTATES { +impl ::core::ops::BitOrAssign for HEADER_HITTEST_INFO_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for HEADER_HITTEST_INFO_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for HEADER_HITTEST_INFO_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct HELPBUTTONSTATES(pub i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HBS_NORMAL: HELPBUTTONSTATES = HELPBUTTONSTATES(1i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HBS_HOT: HELPBUTTONSTATES = HELPBUTTONSTATES(2i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HBS_PUSHED: HELPBUTTONSTATES = HELPBUTTONSTATES(3i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HBS_DISABLED: HELPBUTTONSTATES = HELPBUTTONSTATES(4i32); +impl ::core::marker::Copy for HELPBUTTONSTATES {} +impl ::core::clone::Clone for HELPBUTTONSTATES { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for HELPBUTTONSTATES { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for HELPBUTTONSTATES { + type Abi = Self; +} +impl ::core::fmt::Debug for HELPBUTTONSTATES { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("HELPBUTTONSTATES").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct HELPLINKSTATES(pub i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CPHL_NORMAL: HELPLINKSTATES = HELPLINKSTATES(1i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CPHL_HOT: HELPLINKSTATES = HELPLINKSTATES(2i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CPHL_PRESSED: HELPLINKSTATES = HELPLINKSTATES(3i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CPHL_DISABLED: HELPLINKSTATES = HELPLINKSTATES(4i32); +impl ::core::marker::Copy for HELPLINKSTATES {} +impl ::core::clone::Clone for HELPLINKSTATES { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for HELPLINKSTATES { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for HELPLINKSTATES { + type Abi = Self; +} +impl ::core::fmt::Debug for HELPLINKSTATES { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("HELPLINKSTATES").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct HORZSCROLLSTATES(pub i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HSS_NORMAL: HORZSCROLLSTATES = HORZSCROLLSTATES(1i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HSS_HOT: HORZSCROLLSTATES = HORZSCROLLSTATES(2i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HSS_PUSHED: HORZSCROLLSTATES = HORZSCROLLSTATES(3i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HSS_DISABLED: HORZSCROLLSTATES = HORZSCROLLSTATES(4i32); +impl ::core::marker::Copy for HORZSCROLLSTATES {} +impl ::core::clone::Clone for HORZSCROLLSTATES { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for HORZSCROLLSTATES { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for HORZSCROLLSTATES { + type Abi = Self; +} +impl ::core::fmt::Debug for HORZSCROLLSTATES { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("HORZSCROLLSTATES").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct HORZTHUMBSTATES(pub i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HTS_NORMAL: HORZTHUMBSTATES = HORZTHUMBSTATES(1i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HTS_HOT: HORZTHUMBSTATES = HORZTHUMBSTATES(2i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HTS_PUSHED: HORZTHUMBSTATES = HORZTHUMBSTATES(3i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HTS_DISABLED: HORZTHUMBSTATES = HORZTHUMBSTATES(4i32); +impl ::core::marker::Copy for HORZTHUMBSTATES {} +impl ::core::clone::Clone for HORZTHUMBSTATES { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for HORZTHUMBSTATES { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for HORZTHUMBSTATES { + type Abi = Self; +} +impl ::core::fmt::Debug for HORZTHUMBSTATES { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("HORZTHUMBSTATES").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct HOTGLYPHSTATES(pub i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HGLPS_CLOSED: HOTGLYPHSTATES = HOTGLYPHSTATES(1i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const HGLPS_OPENED: HOTGLYPHSTATES = HOTGLYPHSTATES(2i32); +impl ::core::marker::Copy for HOTGLYPHSTATES {} +impl ::core::clone::Clone for HOTGLYPHSTATES { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for HOTGLYPHSTATES { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for HOTGLYPHSTATES { type Abi = Self; } impl ::core::fmt::Debug for HOTGLYPHSTATES { @@ -11687,6 +11587,61 @@ impl ::core::fmt::Debug for IMAGE_LIST_ITEM_FLAGS { #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct IMAGE_LIST_WRITE_STREAM_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ILP_NORMAL: IMAGE_LIST_WRITE_STREAM_FLAGS = IMAGE_LIST_WRITE_STREAM_FLAGS(0u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ILP_DOWNLEVEL: IMAGE_LIST_WRITE_STREAM_FLAGS = IMAGE_LIST_WRITE_STREAM_FLAGS(1u32); +impl ::core::marker::Copy for IMAGE_LIST_WRITE_STREAM_FLAGS {} +impl ::core::clone::Clone for IMAGE_LIST_WRITE_STREAM_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for IMAGE_LIST_WRITE_STREAM_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for IMAGE_LIST_WRITE_STREAM_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for IMAGE_LIST_WRITE_STREAM_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IMAGE_LIST_WRITE_STREAM_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for IMAGE_LIST_WRITE_STREAM_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for IMAGE_LIST_WRITE_STREAM_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for IMAGE_LIST_WRITE_STREAM_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for IMAGE_LIST_WRITE_STREAM_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for IMAGE_LIST_WRITE_STREAM_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct INITCOMMONCONTROLSEX_ICC(pub u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const ICC_ANIMATE_CLASS: INITCOMMONCONTROLSEX_ICC = INITCOMMONCONTROLSEX_ICC(128u32); @@ -11905,120 +11860,667 @@ impl ::core::default::Default for LINKSTATES { unsafe impl ::windows::core::Abi for LINKSTATES { type Abi = Self; } -impl ::core::fmt::Debug for LINKSTATES { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("LINKSTATES").field(&self.0).finish() +impl ::core::fmt::Debug for LINKSTATES { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("LINKSTATES").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct LISTBOXPARTS(pub i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LBCP_BORDER_HSCROLL: LISTBOXPARTS = LISTBOXPARTS(1i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LBCP_BORDER_HVSCROLL: LISTBOXPARTS = LISTBOXPARTS(2i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LBCP_BORDER_NOSCROLL: LISTBOXPARTS = LISTBOXPARTS(3i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LBCP_BORDER_VSCROLL: LISTBOXPARTS = LISTBOXPARTS(4i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LBCP_ITEM: LISTBOXPARTS = LISTBOXPARTS(5i32); +impl ::core::marker::Copy for LISTBOXPARTS {} +impl ::core::clone::Clone for LISTBOXPARTS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for LISTBOXPARTS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for LISTBOXPARTS { + type Abi = Self; +} +impl ::core::fmt::Debug for LISTBOXPARTS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("LISTBOXPARTS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct LISTITEMSTATES(pub i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LISS_NORMAL: LISTITEMSTATES = LISTITEMSTATES(1i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LISS_HOT: LISTITEMSTATES = LISTITEMSTATES(2i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LISS_SELECTED: LISTITEMSTATES = LISTITEMSTATES(3i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LISS_DISABLED: LISTITEMSTATES = LISTITEMSTATES(4i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LISS_SELECTEDNOTFOCUS: LISTITEMSTATES = LISTITEMSTATES(5i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LISS_HOTSELECTED: LISTITEMSTATES = LISTITEMSTATES(6i32); +impl ::core::marker::Copy for LISTITEMSTATES {} +impl ::core::clone::Clone for LISTITEMSTATES { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for LISTITEMSTATES { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for LISTITEMSTATES { + type Abi = Self; +} +impl ::core::fmt::Debug for LISTITEMSTATES { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("LISTITEMSTATES").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct LISTVIEWPARTS(pub i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVP_LISTITEM: LISTVIEWPARTS = LISTVIEWPARTS(1i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVP_LISTGROUP: LISTVIEWPARTS = LISTVIEWPARTS(2i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVP_LISTDETAIL: LISTVIEWPARTS = LISTVIEWPARTS(3i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVP_LISTSORTEDDETAIL: LISTVIEWPARTS = LISTVIEWPARTS(4i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVP_EMPTYTEXT: LISTVIEWPARTS = LISTVIEWPARTS(5i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVP_GROUPHEADER: LISTVIEWPARTS = LISTVIEWPARTS(6i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVP_GROUPHEADERLINE: LISTVIEWPARTS = LISTVIEWPARTS(7i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVP_EXPANDBUTTON: LISTVIEWPARTS = LISTVIEWPARTS(8i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVP_COLLAPSEBUTTON: LISTVIEWPARTS = LISTVIEWPARTS(9i32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVP_COLUMNDETAIL: LISTVIEWPARTS = LISTVIEWPARTS(10i32); +impl ::core::marker::Copy for LISTVIEWPARTS {} +impl ::core::clone::Clone for LISTVIEWPARTS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for LISTVIEWPARTS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for LISTVIEWPARTS { + type Abi = Self; +} +impl ::core::fmt::Debug for LISTVIEWPARTS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("LISTVIEWPARTS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct LIST_ITEM_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIF_ITEMINDEX: LIST_ITEM_FLAGS = LIST_ITEM_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIF_STATE: LIST_ITEM_FLAGS = LIST_ITEM_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIF_ITEMID: LIST_ITEM_FLAGS = LIST_ITEM_FLAGS(4u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIF_URL: LIST_ITEM_FLAGS = LIST_ITEM_FLAGS(8u32); +impl ::core::marker::Copy for LIST_ITEM_FLAGS {} +impl ::core::clone::Clone for LIST_ITEM_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for LIST_ITEM_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for LIST_ITEM_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for LIST_ITEM_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("LIST_ITEM_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for LIST_ITEM_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for LIST_ITEM_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for LIST_ITEM_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for LIST_ITEM_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for LIST_ITEM_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct LIST_ITEM_STATE_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIS_FOCUSED: LIST_ITEM_STATE_FLAGS = LIST_ITEM_STATE_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIS_ENABLED: LIST_ITEM_STATE_FLAGS = LIST_ITEM_STATE_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIS_VISITED: LIST_ITEM_STATE_FLAGS = LIST_ITEM_STATE_FLAGS(4u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIS_HOTTRACK: LIST_ITEM_STATE_FLAGS = LIST_ITEM_STATE_FLAGS(8u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LIS_DEFAULTCOLORS: LIST_ITEM_STATE_FLAGS = LIST_ITEM_STATE_FLAGS(16u32); +impl ::core::marker::Copy for LIST_ITEM_STATE_FLAGS {} +impl ::core::clone::Clone for LIST_ITEM_STATE_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for LIST_ITEM_STATE_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for LIST_ITEM_STATE_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for LIST_ITEM_STATE_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("LIST_ITEM_STATE_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for LIST_ITEM_STATE_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for LIST_ITEM_STATE_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for LIST_ITEM_STATE_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for LIST_ITEM_STATE_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for LIST_ITEM_STATE_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct LIST_VIEW_BACKGROUND_IMAGE_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_SOURCE_NONE: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = LIST_VIEW_BACKGROUND_IMAGE_FLAGS(0u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_SOURCE_HBITMAP: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = LIST_VIEW_BACKGROUND_IMAGE_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_SOURCE_URL: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = LIST_VIEW_BACKGROUND_IMAGE_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_SOURCE_MASK: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = LIST_VIEW_BACKGROUND_IMAGE_FLAGS(3u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_STYLE_NORMAL: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = LIST_VIEW_BACKGROUND_IMAGE_FLAGS(0u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_STYLE_TILE: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = LIST_VIEW_BACKGROUND_IMAGE_FLAGS(16u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_STYLE_MASK: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = LIST_VIEW_BACKGROUND_IMAGE_FLAGS(16u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_FLAG_TILEOFFSET: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = LIST_VIEW_BACKGROUND_IMAGE_FLAGS(256u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_TYPE_WATERMARK: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = LIST_VIEW_BACKGROUND_IMAGE_FLAGS(268435456u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVBKIF_FLAG_ALPHABLEND: LIST_VIEW_BACKGROUND_IMAGE_FLAGS = LIST_VIEW_BACKGROUND_IMAGE_FLAGS(536870912u32); +impl ::core::marker::Copy for LIST_VIEW_BACKGROUND_IMAGE_FLAGS {} +impl ::core::clone::Clone for LIST_VIEW_BACKGROUND_IMAGE_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for LIST_VIEW_BACKGROUND_IMAGE_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for LIST_VIEW_BACKGROUND_IMAGE_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for LIST_VIEW_BACKGROUND_IMAGE_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("LIST_VIEW_BACKGROUND_IMAGE_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for LIST_VIEW_BACKGROUND_IMAGE_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for LIST_VIEW_BACKGROUND_IMAGE_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for LIST_VIEW_BACKGROUND_IMAGE_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for LIST_VIEW_BACKGROUND_IMAGE_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for LIST_VIEW_BACKGROUND_IMAGE_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct LIST_VIEW_GROUP_ALIGN_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGA_HEADER_LEFT: LIST_VIEW_GROUP_ALIGN_FLAGS = LIST_VIEW_GROUP_ALIGN_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGA_HEADER_CENTER: LIST_VIEW_GROUP_ALIGN_FLAGS = LIST_VIEW_GROUP_ALIGN_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGA_HEADER_RIGHT: LIST_VIEW_GROUP_ALIGN_FLAGS = LIST_VIEW_GROUP_ALIGN_FLAGS(4u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGA_FOOTER_LEFT: LIST_VIEW_GROUP_ALIGN_FLAGS = LIST_VIEW_GROUP_ALIGN_FLAGS(8u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGA_FOOTER_CENTER: LIST_VIEW_GROUP_ALIGN_FLAGS = LIST_VIEW_GROUP_ALIGN_FLAGS(16u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGA_FOOTER_RIGHT: LIST_VIEW_GROUP_ALIGN_FLAGS = LIST_VIEW_GROUP_ALIGN_FLAGS(32u32); +impl ::core::marker::Copy for LIST_VIEW_GROUP_ALIGN_FLAGS {} +impl ::core::clone::Clone for LIST_VIEW_GROUP_ALIGN_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for LIST_VIEW_GROUP_ALIGN_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for LIST_VIEW_GROUP_ALIGN_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for LIST_VIEW_GROUP_ALIGN_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("LIST_VIEW_GROUP_ALIGN_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for LIST_VIEW_GROUP_ALIGN_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for LIST_VIEW_GROUP_ALIGN_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for LIST_VIEW_GROUP_ALIGN_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for LIST_VIEW_GROUP_ALIGN_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for LIST_VIEW_GROUP_ALIGN_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct LIST_VIEW_GROUP_STATE_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_NORMAL: LIST_VIEW_GROUP_STATE_FLAGS = LIST_VIEW_GROUP_STATE_FLAGS(0u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_COLLAPSED: LIST_VIEW_GROUP_STATE_FLAGS = LIST_VIEW_GROUP_STATE_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_HIDDEN: LIST_VIEW_GROUP_STATE_FLAGS = LIST_VIEW_GROUP_STATE_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_NOHEADER: LIST_VIEW_GROUP_STATE_FLAGS = LIST_VIEW_GROUP_STATE_FLAGS(4u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_COLLAPSIBLE: LIST_VIEW_GROUP_STATE_FLAGS = LIST_VIEW_GROUP_STATE_FLAGS(8u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_FOCUSED: LIST_VIEW_GROUP_STATE_FLAGS = LIST_VIEW_GROUP_STATE_FLAGS(16u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_SELECTED: LIST_VIEW_GROUP_STATE_FLAGS = LIST_VIEW_GROUP_STATE_FLAGS(32u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_SUBSETED: LIST_VIEW_GROUP_STATE_FLAGS = LIST_VIEW_GROUP_STATE_FLAGS(64u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGS_SUBSETLINKFOCUSED: LIST_VIEW_GROUP_STATE_FLAGS = LIST_VIEW_GROUP_STATE_FLAGS(128u32); +impl ::core::marker::Copy for LIST_VIEW_GROUP_STATE_FLAGS {} +impl ::core::clone::Clone for LIST_VIEW_GROUP_STATE_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for LIST_VIEW_GROUP_STATE_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for LIST_VIEW_GROUP_STATE_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for LIST_VIEW_GROUP_STATE_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("LIST_VIEW_GROUP_STATE_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for LIST_VIEW_GROUP_STATE_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for LIST_VIEW_GROUP_STATE_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for LIST_VIEW_GROUP_STATE_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for LIST_VIEW_GROUP_STATE_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for LIST_VIEW_GROUP_STATE_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct LIST_VIEW_INSERT_MARK_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIM_AFTER: LIST_VIEW_INSERT_MARK_FLAGS = LIST_VIEW_INSERT_MARK_FLAGS(1u32); +impl ::core::marker::Copy for LIST_VIEW_INSERT_MARK_FLAGS {} +impl ::core::clone::Clone for LIST_VIEW_INSERT_MARK_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for LIST_VIEW_INSERT_MARK_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for LIST_VIEW_INSERT_MARK_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for LIST_VIEW_INSERT_MARK_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("LIST_VIEW_INSERT_MARK_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for LIST_VIEW_INSERT_MARK_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for LIST_VIEW_INSERT_MARK_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for LIST_VIEW_INSERT_MARK_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for LIST_VIEW_INSERT_MARK_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for LIST_VIEW_INSERT_MARK_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) } } #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct LISTBOXPARTS(pub i32); +pub struct LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS(pub i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LBCP_BORDER_HSCROLL: LISTBOXPARTS = LISTBOXPARTS(1i32); +pub const LVCFMT_LINE_BREAK: LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS = LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS(1048576i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LBCP_BORDER_HVSCROLL: LISTBOXPARTS = LISTBOXPARTS(2i32); +pub const LVCFMT_FILL: LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS = LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS(2097152i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LBCP_BORDER_NOSCROLL: LISTBOXPARTS = LISTBOXPARTS(3i32); +pub const LVCFMT_WRAP: LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS = LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS(4194304i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LBCP_BORDER_VSCROLL: LISTBOXPARTS = LISTBOXPARTS(4i32); +pub const LVCFMT_NO_TITLE: LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS = LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS(8388608i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LBCP_ITEM: LISTBOXPARTS = LISTBOXPARTS(5i32); -impl ::core::marker::Copy for LISTBOXPARTS {} -impl ::core::clone::Clone for LISTBOXPARTS { +pub const LVCFMT_TILE_PLACEMENTMASK: LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS = LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS(3145728i32); +impl ::core::marker::Copy for LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS {} +impl ::core::clone::Clone for LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for LISTBOXPARTS { +impl ::core::default::Default for LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for LISTBOXPARTS { +unsafe impl ::windows::core::Abi for LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS { type Abi = Self; } -impl ::core::fmt::Debug for LISTBOXPARTS { +impl ::core::fmt::Debug for LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("LISTBOXPARTS").field(&self.0).finish() + f.debug_tuple("LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) } } #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct LISTITEMSTATES(pub i32); +pub struct LIST_VIEW_ITEM_FLAGS(pub u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LISS_NORMAL: LISTITEMSTATES = LISTITEMSTATES(1i32); +pub const LVIF_TEXT: LIST_VIEW_ITEM_FLAGS = LIST_VIEW_ITEM_FLAGS(1u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LISS_HOT: LISTITEMSTATES = LISTITEMSTATES(2i32); +pub const LVIF_IMAGE: LIST_VIEW_ITEM_FLAGS = LIST_VIEW_ITEM_FLAGS(2u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LISS_SELECTED: LISTITEMSTATES = LISTITEMSTATES(3i32); +pub const LVIF_PARAM: LIST_VIEW_ITEM_FLAGS = LIST_VIEW_ITEM_FLAGS(4u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LISS_DISABLED: LISTITEMSTATES = LISTITEMSTATES(4i32); +pub const LVIF_STATE: LIST_VIEW_ITEM_FLAGS = LIST_VIEW_ITEM_FLAGS(8u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LISS_SELECTEDNOTFOCUS: LISTITEMSTATES = LISTITEMSTATES(5i32); +pub const LVIF_INDENT: LIST_VIEW_ITEM_FLAGS = LIST_VIEW_ITEM_FLAGS(16u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LISS_HOTSELECTED: LISTITEMSTATES = LISTITEMSTATES(6i32); -impl ::core::marker::Copy for LISTITEMSTATES {} -impl ::core::clone::Clone for LISTITEMSTATES { +pub const LVIF_NORECOMPUTE: LIST_VIEW_ITEM_FLAGS = LIST_VIEW_ITEM_FLAGS(2048u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_GROUPID: LIST_VIEW_ITEM_FLAGS = LIST_VIEW_ITEM_FLAGS(256u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_COLUMNS: LIST_VIEW_ITEM_FLAGS = LIST_VIEW_ITEM_FLAGS(512u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_COLFMT: LIST_VIEW_ITEM_FLAGS = LIST_VIEW_ITEM_FLAGS(65536u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVIF_DI_SETITEM: LIST_VIEW_ITEM_FLAGS = LIST_VIEW_ITEM_FLAGS(4096u32); +impl ::core::marker::Copy for LIST_VIEW_ITEM_FLAGS {} +impl ::core::clone::Clone for LIST_VIEW_ITEM_FLAGS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for LISTITEMSTATES { +impl ::core::default::Default for LIST_VIEW_ITEM_FLAGS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for LISTITEMSTATES { +unsafe impl ::windows::core::Abi for LIST_VIEW_ITEM_FLAGS { type Abi = Self; } -impl ::core::fmt::Debug for LISTITEMSTATES { +impl ::core::fmt::Debug for LIST_VIEW_ITEM_FLAGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("LISTITEMSTATES").field(&self.0).finish() + f.debug_tuple("LIST_VIEW_ITEM_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for LIST_VIEW_ITEM_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for LIST_VIEW_ITEM_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for LIST_VIEW_ITEM_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for LIST_VIEW_ITEM_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for LIST_VIEW_ITEM_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) } } #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct LISTVIEWPARTS(pub i32); -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVP_LISTITEM: LISTVIEWPARTS = LISTVIEWPARTS(1i32); -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVP_LISTGROUP: LISTVIEWPARTS = LISTVIEWPARTS(2i32); +pub struct LIST_VIEW_ITEM_STATE_FLAGS(pub u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVP_LISTDETAIL: LISTVIEWPARTS = LISTVIEWPARTS(3i32); +pub const LVIS_FOCUSED: LIST_VIEW_ITEM_STATE_FLAGS = LIST_VIEW_ITEM_STATE_FLAGS(1u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVP_LISTSORTEDDETAIL: LISTVIEWPARTS = LISTVIEWPARTS(4i32); +pub const LVIS_SELECTED: LIST_VIEW_ITEM_STATE_FLAGS = LIST_VIEW_ITEM_STATE_FLAGS(2u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVP_EMPTYTEXT: LISTVIEWPARTS = LISTVIEWPARTS(5i32); +pub const LVIS_CUT: LIST_VIEW_ITEM_STATE_FLAGS = LIST_VIEW_ITEM_STATE_FLAGS(4u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVP_GROUPHEADER: LISTVIEWPARTS = LISTVIEWPARTS(6i32); +pub const LVIS_DROPHILITED: LIST_VIEW_ITEM_STATE_FLAGS = LIST_VIEW_ITEM_STATE_FLAGS(8u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVP_GROUPHEADERLINE: LISTVIEWPARTS = LISTVIEWPARTS(7i32); +pub const LVIS_GLOW: LIST_VIEW_ITEM_STATE_FLAGS = LIST_VIEW_ITEM_STATE_FLAGS(16u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVP_EXPANDBUTTON: LISTVIEWPARTS = LISTVIEWPARTS(8i32); +pub const LVIS_ACTIVATING: LIST_VIEW_ITEM_STATE_FLAGS = LIST_VIEW_ITEM_STATE_FLAGS(32u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVP_COLLAPSEBUTTON: LISTVIEWPARTS = LISTVIEWPARTS(9i32); +pub const LVIS_OVERLAYMASK: LIST_VIEW_ITEM_STATE_FLAGS = LIST_VIEW_ITEM_STATE_FLAGS(3840u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVP_COLUMNDETAIL: LISTVIEWPARTS = LISTVIEWPARTS(10i32); -impl ::core::marker::Copy for LISTVIEWPARTS {} -impl ::core::clone::Clone for LISTVIEWPARTS { +pub const LVIS_STATEIMAGEMASK: LIST_VIEW_ITEM_STATE_FLAGS = LIST_VIEW_ITEM_STATE_FLAGS(61440u32); +impl ::core::marker::Copy for LIST_VIEW_ITEM_STATE_FLAGS {} +impl ::core::clone::Clone for LIST_VIEW_ITEM_STATE_FLAGS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for LISTVIEWPARTS { +impl ::core::default::Default for LIST_VIEW_ITEM_STATE_FLAGS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for LISTVIEWPARTS { +unsafe impl ::windows::core::Abi for LIST_VIEW_ITEM_STATE_FLAGS { type Abi = Self; } -impl ::core::fmt::Debug for LISTVIEWPARTS { +impl ::core::fmt::Debug for LIST_VIEW_ITEM_STATE_FLAGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("LISTVIEWPARTS").field(&self.0).finish() + f.debug_tuple("LIST_VIEW_ITEM_STATE_FLAGS").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] @@ -12666,6 +13168,97 @@ impl ::core::fmt::Debug for MCGRIDINFO_PART { #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct MCHITTESTINFO_HIT_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TITLE: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(65536u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDAR: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(131072u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TODAYLINK: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(196608u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARCONTROL: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(1048576u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_NEXT: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(16777216u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_PREV: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(33554432u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_NOWHERE: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(0u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TITLEBK: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(65536u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TITLEMONTH: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(65537u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TITLEYEAR: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(65538u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TITLEBTNNEXT: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(16842755u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_TITLEBTNPREV: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(33619971u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARBK: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(131072u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARDATE: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(131073u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARDATENEXT: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(16908289u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARDATEPREV: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(33685505u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARDAY: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(131074u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARWEEKNUM: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(131075u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARDATEMIN: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(131076u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCHT_CALENDARDATEMAX: MCHITTESTINFO_HIT_FLAGS = MCHITTESTINFO_HIT_FLAGS(131077u32); +impl ::core::marker::Copy for MCHITTESTINFO_HIT_FLAGS {} +impl ::core::clone::Clone for MCHITTESTINFO_HIT_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for MCHITTESTINFO_HIT_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for MCHITTESTINFO_HIT_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for MCHITTESTINFO_HIT_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("MCHITTESTINFO_HIT_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for MCHITTESTINFO_HIT_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for MCHITTESTINFO_HIT_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for MCHITTESTINFO_HIT_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for MCHITTESTINFO_HIT_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for MCHITTESTINFO_HIT_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct MDICLOSEBUTTONSTATES(pub i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const MDCL_NORMAL: MDICLOSEBUTTONSTATES = MDICLOSEBUTTONSTATES(1i32); @@ -12989,6 +13582,39 @@ impl ::core::fmt::Debug for MONTHCALPARTS { #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct MONTH_CALDENDAR_MESSAGES_VIEW(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCMV_MONTH: MONTH_CALDENDAR_MESSAGES_VIEW = MONTH_CALDENDAR_MESSAGES_VIEW(0u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCMV_YEAR: MONTH_CALDENDAR_MESSAGES_VIEW = MONTH_CALDENDAR_MESSAGES_VIEW(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCMV_DECADE: MONTH_CALDENDAR_MESSAGES_VIEW = MONTH_CALDENDAR_MESSAGES_VIEW(2u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCMV_CENTURY: MONTH_CALDENDAR_MESSAGES_VIEW = MONTH_CALDENDAR_MESSAGES_VIEW(3u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const MCMV_MAX: MONTH_CALDENDAR_MESSAGES_VIEW = MONTH_CALDENDAR_MESSAGES_VIEW(3u32); +impl ::core::marker::Copy for MONTH_CALDENDAR_MESSAGES_VIEW {} +impl ::core::clone::Clone for MONTH_CALDENDAR_MESSAGES_VIEW { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for MONTH_CALDENDAR_MESSAGES_VIEW { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for MONTH_CALDENDAR_MESSAGES_VIEW { + type Abi = Self; +} +impl ::core::fmt::Debug for MONTH_CALDENDAR_MESSAGES_VIEW { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("MONTH_CALDENDAR_MESSAGES_VIEW").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct MOREPROGRAMSARROWBACKSTATES(pub i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const SPSB_NORMAL: MOREPROGRAMSARROWBACKSTATES = MOREPROGRAMSARROWBACKSTATES(1i32); @@ -13330,30 +13956,105 @@ impl ::core::fmt::Debug for NMCUSTOMDRAW_DRAW_STAGE { #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct NMLVCUSTOMDRAW_ALIGN(pub u32); +pub struct NMCUSTOMDRAW_DRAW_STATE_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_SELECTED: NMCUSTOMDRAW_DRAW_STATE_FLAGS = NMCUSTOMDRAW_DRAW_STATE_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_GRAYED: NMCUSTOMDRAW_DRAW_STATE_FLAGS = NMCUSTOMDRAW_DRAW_STATE_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_DISABLED: NMCUSTOMDRAW_DRAW_STATE_FLAGS = NMCUSTOMDRAW_DRAW_STATE_FLAGS(4u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_CHECKED: NMCUSTOMDRAW_DRAW_STATE_FLAGS = NMCUSTOMDRAW_DRAW_STATE_FLAGS(8u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_FOCUS: NMCUSTOMDRAW_DRAW_STATE_FLAGS = NMCUSTOMDRAW_DRAW_STATE_FLAGS(16u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_DEFAULT: NMCUSTOMDRAW_DRAW_STATE_FLAGS = NMCUSTOMDRAW_DRAW_STATE_FLAGS(32u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_HOT: NMCUSTOMDRAW_DRAW_STATE_FLAGS = NMCUSTOMDRAW_DRAW_STATE_FLAGS(64u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_MARKED: NMCUSTOMDRAW_DRAW_STATE_FLAGS = NMCUSTOMDRAW_DRAW_STATE_FLAGS(128u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_INDETERMINATE: NMCUSTOMDRAW_DRAW_STATE_FLAGS = NMCUSTOMDRAW_DRAW_STATE_FLAGS(256u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_SHOWKEYBOARDCUES: NMCUSTOMDRAW_DRAW_STATE_FLAGS = NMCUSTOMDRAW_DRAW_STATE_FLAGS(512u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const CDIS_NEARHOT: NMCUSTOMDRAW_DRAW_STATE_FLAGS = NMCUSTOMDRAW_DRAW_STATE_FLAGS(1024u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGA_HEADER_CENTER: NMLVCUSTOMDRAW_ALIGN = NMLVCUSTOMDRAW_ALIGN(2u32); +pub const CDIS_OTHERSIDEHOT: NMCUSTOMDRAW_DRAW_STATE_FLAGS = NMCUSTOMDRAW_DRAW_STATE_FLAGS(2048u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGA_HEADER_LEFT: NMLVCUSTOMDRAW_ALIGN = NMLVCUSTOMDRAW_ALIGN(1u32); +pub const CDIS_DROPHILITED: NMCUSTOMDRAW_DRAW_STATE_FLAGS = NMCUSTOMDRAW_DRAW_STATE_FLAGS(4096u32); +impl ::core::marker::Copy for NMCUSTOMDRAW_DRAW_STATE_FLAGS {} +impl ::core::clone::Clone for NMCUSTOMDRAW_DRAW_STATE_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for NMCUSTOMDRAW_DRAW_STATE_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for NMCUSTOMDRAW_DRAW_STATE_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for NMCUSTOMDRAW_DRAW_STATE_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("NMCUSTOMDRAW_DRAW_STATE_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for NMCUSTOMDRAW_DRAW_STATE_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for NMCUSTOMDRAW_DRAW_STATE_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for NMCUSTOMDRAW_DRAW_STATE_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for NMCUSTOMDRAW_DRAW_STATE_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for NMCUSTOMDRAW_DRAW_STATE_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct NMDATETIMECHANGE_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const GDT_NONE: NMDATETIMECHANGE_FLAGS = NMDATETIMECHANGE_FLAGS(1u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const LVGA_HEADER_RIGHT: NMLVCUSTOMDRAW_ALIGN = NMLVCUSTOMDRAW_ALIGN(4u32); -impl ::core::marker::Copy for NMLVCUSTOMDRAW_ALIGN {} -impl ::core::clone::Clone for NMLVCUSTOMDRAW_ALIGN { +pub const GDT_VALID: NMDATETIMECHANGE_FLAGS = NMDATETIMECHANGE_FLAGS(0u32); +impl ::core::marker::Copy for NMDATETIMECHANGE_FLAGS {} +impl ::core::clone::Clone for NMDATETIMECHANGE_FLAGS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for NMLVCUSTOMDRAW_ALIGN { +impl ::core::default::Default for NMDATETIMECHANGE_FLAGS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for NMLVCUSTOMDRAW_ALIGN { +unsafe impl ::windows::core::Abi for NMDATETIMECHANGE_FLAGS { type Abi = Self; } -impl ::core::fmt::Debug for NMLVCUSTOMDRAW_ALIGN { +impl ::core::fmt::Debug for NMDATETIMECHANGE_FLAGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("NMLVCUSTOMDRAW_ALIGN").field(&self.0).finish() + f.debug_tuple("NMDATETIMECHANGE_FLAGS").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] @@ -13388,26 +14089,53 @@ impl ::core::fmt::Debug for NMLVCUSTOMDRAW_ITEM_TYPE { #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct NMLVEMPTYMARKUP_FLAGS(pub u32); +pub struct NMLVEMPTYMARKUP_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const EMF_CENTERED: NMLVEMPTYMARKUP_FLAGS = NMLVEMPTYMARKUP_FLAGS(1u32); +impl ::core::marker::Copy for NMLVEMPTYMARKUP_FLAGS {} +impl ::core::clone::Clone for NMLVEMPTYMARKUP_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for NMLVEMPTYMARKUP_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for NMLVEMPTYMARKUP_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for NMLVEMPTYMARKUP_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("NMLVEMPTYMARKUP_FLAGS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct NMLVGETINFOTIP_FLAGS(pub u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const EMF_CENTERED: NMLVEMPTYMARKUP_FLAGS = NMLVEMPTYMARKUP_FLAGS(1u32); -impl ::core::marker::Copy for NMLVEMPTYMARKUP_FLAGS {} -impl ::core::clone::Clone for NMLVEMPTYMARKUP_FLAGS { +pub const LVGIT_UNFOLDED: NMLVGETINFOTIP_FLAGS = NMLVGETINFOTIP_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const LVGIT_ZERO: NMLVGETINFOTIP_FLAGS = NMLVGETINFOTIP_FLAGS(0u32); +impl ::core::marker::Copy for NMLVGETINFOTIP_FLAGS {} +impl ::core::clone::Clone for NMLVGETINFOTIP_FLAGS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for NMLVEMPTYMARKUP_FLAGS { +impl ::core::default::Default for NMLVGETINFOTIP_FLAGS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for NMLVEMPTYMARKUP_FLAGS { +unsafe impl ::windows::core::Abi for NMLVGETINFOTIP_FLAGS { type Abi = Self; } -impl ::core::fmt::Debug for NMLVEMPTYMARKUP_FLAGS { +impl ::core::fmt::Debug for NMLVGETINFOTIP_FLAGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("NMLVEMPTYMARKUP_FLAGS").field(&self.0).finish() + f.debug_tuple("NMLVGETINFOTIP_FLAGS").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] @@ -13715,6 +14443,73 @@ impl ::core::ops::Not for NMTBHOTITEM_FLAGS { #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct NM_TREEVIEW_ACTION(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVE_COLLAPSE: NM_TREEVIEW_ACTION = NM_TREEVIEW_ACTION(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVE_EXPAND: NM_TREEVIEW_ACTION = NM_TREEVIEW_ACTION(2u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVE_TOGGLE: NM_TREEVIEW_ACTION = NM_TREEVIEW_ACTION(3u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVE_EXPANDPARTIAL: NM_TREEVIEW_ACTION = NM_TREEVIEW_ACTION(16384u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVE_COLLAPSERESET: NM_TREEVIEW_ACTION = NM_TREEVIEW_ACTION(32768u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVC_UNKNOWN: NM_TREEVIEW_ACTION = NM_TREEVIEW_ACTION(0u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVC_BYMOUSE: NM_TREEVIEW_ACTION = NM_TREEVIEW_ACTION(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVC_BYKEYBOARD: NM_TREEVIEW_ACTION = NM_TREEVIEW_ACTION(2u32); +impl ::core::marker::Copy for NM_TREEVIEW_ACTION {} +impl ::core::clone::Clone for NM_TREEVIEW_ACTION { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for NM_TREEVIEW_ACTION { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for NM_TREEVIEW_ACTION { + type Abi = Self; +} +impl ::core::fmt::Debug for NM_TREEVIEW_ACTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("NM_TREEVIEW_ACTION").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for NM_TREEVIEW_ACTION { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for NM_TREEVIEW_ACTION { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for NM_TREEVIEW_ACTION { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for NM_TREEVIEW_ACTION { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for NM_TREEVIEW_ACTION { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct NONESTATES(pub i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const DDNONE_HIGHLIGHT: NONESTATES = NONESTATES(1i32); @@ -13800,6 +14595,80 @@ impl ::core::fmt::Debug for NORMALGROUPEXPANDSTATES { #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct ODA_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODA_DRAWENTIRE: ODA_FLAGS = ODA_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODA_SELECT: ODA_FLAGS = ODA_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODA_FOCUS: ODA_FLAGS = ODA_FLAGS(4u32); +impl ::core::marker::Copy for ODA_FLAGS {} +impl ::core::clone::Clone for ODA_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for ODA_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for ODA_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for ODA_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("ODA_FLAGS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct ODS_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_SELECTED: ODS_FLAGS = ODS_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_GRAYED: ODS_FLAGS = ODS_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_DISABLED: ODS_FLAGS = ODS_FLAGS(4u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_CHECKED: ODS_FLAGS = ODS_FLAGS(8u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_FOCUS: ODS_FLAGS = ODS_FLAGS(16u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_DEFAULT: ODS_FLAGS = ODS_FLAGS(32u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_COMBOBOXEDIT: ODS_FLAGS = ODS_FLAGS(4096u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_HOTLIGHT: ODS_FLAGS = ODS_FLAGS(64u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_INACTIVE: ODS_FLAGS = ODS_FLAGS(128u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_NOACCEL: ODS_FLAGS = ODS_FLAGS(256u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const ODS_NOFOCUSRECT: ODS_FLAGS = ODS_FLAGS(512u32); +impl ::core::marker::Copy for ODS_FLAGS {} +impl ::core::clone::Clone for ODS_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for ODS_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for ODS_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for ODS_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("ODS_FLAGS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct OFFSETTYPE(pub i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const OT_TOPLEFT: OFFSETTYPE = OFFSETTYPE(0i32); @@ -15565,6 +16434,33 @@ impl ::core::fmt::Debug for TABSTATES { #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct TAB_CONTROL_ITEM_STATE(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TCIS_BUTTONPRESSED: TAB_CONTROL_ITEM_STATE = TAB_CONTROL_ITEM_STATE(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TCIS_HIGHLIGHTED: TAB_CONTROL_ITEM_STATE = TAB_CONTROL_ITEM_STATE(2u32); +impl ::core::marker::Copy for TAB_CONTROL_ITEM_STATE {} +impl ::core::clone::Clone for TAB_CONTROL_ITEM_STATE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for TAB_CONTROL_ITEM_STATE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for TAB_CONTROL_ITEM_STATE { + type Abi = Self; +} +impl ::core::fmt::Debug for TAB_CONTROL_ITEM_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("TAB_CONTROL_ITEM_STATE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct TASKBANDPARTS(pub i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TDP_GROUPCOUNT: TASKBANDPARTS = TASKBANDPARTS(1i32); @@ -17405,6 +18301,75 @@ impl ::core::fmt::Debug for TOOLTIPPARTS { #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct TOOLTIP_FLAGS(pub u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_IDISHWND: TOOLTIP_FLAGS = TOOLTIP_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_CENTERTIP: TOOLTIP_FLAGS = TOOLTIP_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_RTLREADING: TOOLTIP_FLAGS = TOOLTIP_FLAGS(4u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_SUBCLASS: TOOLTIP_FLAGS = TOOLTIP_FLAGS(16u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_TRACK: TOOLTIP_FLAGS = TOOLTIP_FLAGS(32u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_ABSOLUTE: TOOLTIP_FLAGS = TOOLTIP_FLAGS(128u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_TRANSPARENT: TOOLTIP_FLAGS = TOOLTIP_FLAGS(256u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_PARSELINKS: TOOLTIP_FLAGS = TOOLTIP_FLAGS(4096u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TTF_DI_SETITEM: TOOLTIP_FLAGS = TOOLTIP_FLAGS(32768u32); +impl ::core::marker::Copy for TOOLTIP_FLAGS {} +impl ::core::clone::Clone for TOOLTIP_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for TOOLTIP_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for TOOLTIP_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for TOOLTIP_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("TOOLTIP_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for TOOLTIP_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for TOOLTIP_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for TOOLTIP_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for TOOLTIP_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for TOOLTIP_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct TOPTABITEMBOTHEDGESTATES(pub i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub const TTIBES_NORMAL: TOPTABITEMBOTHEDGESTATES = TOPTABITEMBOTHEDGESTATES(1i32); @@ -17903,97 +18868,79 @@ impl ::core::fmt::Debug for TREEVIEWPARTS { #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct TRUESIZESCALINGTYPE(pub i32); +pub struct TREE_VIEW_ITEM_STATE_FLAGS(pub u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TSST_NONE: TRUESIZESCALINGTYPE = TRUESIZESCALINGTYPE(0i32); +pub const TVIS_SELECTED: TREE_VIEW_ITEM_STATE_FLAGS = TREE_VIEW_ITEM_STATE_FLAGS(2u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TSST_SIZE: TRUESIZESCALINGTYPE = TRUESIZESCALINGTYPE(1i32); +pub const TVIS_CUT: TREE_VIEW_ITEM_STATE_FLAGS = TREE_VIEW_ITEM_STATE_FLAGS(4u32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TSST_DPI: TRUESIZESCALINGTYPE = TRUESIZESCALINGTYPE(2i32); -impl ::core::marker::Copy for TRUESIZESCALINGTYPE {} -impl ::core::clone::Clone for TRUESIZESCALINGTYPE { +pub const TVIS_DROPHILITED: TREE_VIEW_ITEM_STATE_FLAGS = TREE_VIEW_ITEM_STATE_FLAGS(8u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVIS_BOLD: TREE_VIEW_ITEM_STATE_FLAGS = TREE_VIEW_ITEM_STATE_FLAGS(16u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVIS_EXPANDED: TREE_VIEW_ITEM_STATE_FLAGS = TREE_VIEW_ITEM_STATE_FLAGS(32u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVIS_EXPANDEDONCE: TREE_VIEW_ITEM_STATE_FLAGS = TREE_VIEW_ITEM_STATE_FLAGS(64u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVIS_EXPANDPARTIAL: TREE_VIEW_ITEM_STATE_FLAGS = TREE_VIEW_ITEM_STATE_FLAGS(128u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVIS_OVERLAYMASK: TREE_VIEW_ITEM_STATE_FLAGS = TREE_VIEW_ITEM_STATE_FLAGS(3840u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVIS_STATEIMAGEMASK: TREE_VIEW_ITEM_STATE_FLAGS = TREE_VIEW_ITEM_STATE_FLAGS(61440u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVIS_USERMASK: TREE_VIEW_ITEM_STATE_FLAGS = TREE_VIEW_ITEM_STATE_FLAGS(61440u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVIS_EX_FLAT: TREE_VIEW_ITEM_STATE_FLAGS = TREE_VIEW_ITEM_STATE_FLAGS(1u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVIS_EX_DISABLED: TREE_VIEW_ITEM_STATE_FLAGS = TREE_VIEW_ITEM_STATE_FLAGS(2u32); +#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] +pub const TVIS_EX_ALL: TREE_VIEW_ITEM_STATE_FLAGS = TREE_VIEW_ITEM_STATE_FLAGS(2u32); +impl ::core::marker::Copy for TREE_VIEW_ITEM_STATE_FLAGS {} +impl ::core::clone::Clone for TREE_VIEW_ITEM_STATE_FLAGS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for TRUESIZESCALINGTYPE { +impl ::core::default::Default for TREE_VIEW_ITEM_STATE_FLAGS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for TRUESIZESCALINGTYPE { +unsafe impl ::windows::core::Abi for TREE_VIEW_ITEM_STATE_FLAGS { type Abi = Self; } -impl ::core::fmt::Debug for TRUESIZESCALINGTYPE { +impl ::core::fmt::Debug for TREE_VIEW_ITEM_STATE_FLAGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TRUESIZESCALINGTYPE").field(&self.0).finish() + f.debug_tuple("TREE_VIEW_ITEM_STATE_FLAGS").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct TTTOOLINFO_FLAGS(pub u32); -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_ABSOLUTE: TTTOOLINFO_FLAGS = TTTOOLINFO_FLAGS(128u32); -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_CENTERTIP: TTTOOLINFO_FLAGS = TTTOOLINFO_FLAGS(2u32); -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_IDISHWND: TTTOOLINFO_FLAGS = TTTOOLINFO_FLAGS(1u32); -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_PARSELINKS: TTTOOLINFO_FLAGS = TTTOOLINFO_FLAGS(4096u32); -#[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_RTLREADING: TTTOOLINFO_FLAGS = TTTOOLINFO_FLAGS(4u32); +pub struct TRUESIZESCALINGTYPE(pub i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_SUBCLASS: TTTOOLINFO_FLAGS = TTTOOLINFO_FLAGS(16u32); +pub const TSST_NONE: TRUESIZESCALINGTYPE = TRUESIZESCALINGTYPE(0i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_TRACK: TTTOOLINFO_FLAGS = TTTOOLINFO_FLAGS(32u32); +pub const TSST_SIZE: TRUESIZESCALINGTYPE = TRUESIZESCALINGTYPE(1i32); #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] -pub const TTF_TRANSPARENT: TTTOOLINFO_FLAGS = TTTOOLINFO_FLAGS(256u32); -impl ::core::marker::Copy for TTTOOLINFO_FLAGS {} -impl ::core::clone::Clone for TTTOOLINFO_FLAGS { +pub const TSST_DPI: TRUESIZESCALINGTYPE = TRUESIZESCALINGTYPE(2i32); +impl ::core::marker::Copy for TRUESIZESCALINGTYPE {} +impl ::core::clone::Clone for TRUESIZESCALINGTYPE { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for TTTOOLINFO_FLAGS { +impl ::core::default::Default for TRUESIZESCALINGTYPE { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for TTTOOLINFO_FLAGS { +unsafe impl ::windows::core::Abi for TRUESIZESCALINGTYPE { type Abi = Self; } -impl ::core::fmt::Debug for TTTOOLINFO_FLAGS { +impl ::core::fmt::Debug for TRUESIZESCALINGTYPE { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TTTOOLINFO_FLAGS").field(&self.0).finish() - } -} -impl ::core::ops::BitOr for TTTOOLINFO_FLAGS { - type Output = Self; - fn bitor(self, other: Self) -> Self { - Self(self.0 | other.0) - } -} -impl ::core::ops::BitAnd for TTTOOLINFO_FLAGS { - type Output = Self; - fn bitand(self, other: Self) -> Self { - Self(self.0 & other.0) - } -} -impl ::core::ops::BitOrAssign for TTTOOLINFO_FLAGS { - fn bitor_assign(&mut self, other: Self) { - self.0.bitor_assign(other.0) - } -} -impl ::core::ops::BitAndAssign for TTTOOLINFO_FLAGS { - fn bitand_assign(&mut self, other: Self) { - self.0.bitand_assign(other.0) - } -} -impl ::core::ops::Not for TTTOOLINFO_FLAGS { - type Output = Self; - fn not(self) -> Self { - Self(self.0.not()) + f.debug_tuple("TRUESIZESCALINGTYPE").field(&self.0).finish() } } #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] @@ -19558,8 +20505,8 @@ pub struct DRAWITEMSTRUCT { pub CtlType: DRAWITEMSTRUCT_CTL_TYPE, pub CtlID: u32, pub itemID: u32, - pub itemAction: u32, - pub itemState: u32, + pub itemAction: ODA_FLAGS, + pub itemState: ODS_FLAGS, pub hwndItem: super::super::Foundation::HWND, pub hDC: super::super::Graphics::Gdi::HDC, pub rcItem: super::super::Foundation::RECT, @@ -19743,7 +20690,7 @@ impl ::core::default::Default for EDITBALLOONTIP { #[cfg(feature = "Win32_Foundation")] pub struct HDHITTESTINFO { pub pt: super::super::Foundation::POINT, - pub flags: u32, + pub flags: HEADER_HITTEST_INFO_FLAGS, pub iItem: i32, } #[cfg(feature = "Win32_Foundation")] @@ -19787,13 +20734,13 @@ pub struct HDITEMA { pub pszText: ::windows::core::PSTR, pub hbm: super::super::Graphics::Gdi::HBITMAP, pub cchTextMax: i32, - pub fmt: i32, + pub fmt: HEADER_CONTROL_FORMAT_FLAGS, pub lParam: super::super::Foundation::LPARAM, pub iImage: i32, pub iOrder: i32, - pub r#type: u32, + pub r#type: HEADER_CONTROL_FORMAT_TYPE, pub pvFilter: *mut ::core::ffi::c_void, - pub state: u32, + pub state: HEADER_CONTROL_FORMAT_STATE, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for HDITEMA {} @@ -19836,13 +20783,13 @@ pub struct HDITEMW { pub pszText: ::windows::core::PWSTR, pub hbm: super::super::Graphics::Gdi::HBITMAP, pub cchTextMax: i32, - pub fmt: i32, + pub fmt: HEADER_CONTROL_FORMAT_FLAGS, pub lParam: super::super::Foundation::LPARAM, pub iImage: i32, pub iOrder: i32, - pub r#type: u32, + pub r#type: HEADER_CONTROL_FORMAT_TYPE, pub pvFilter: *mut ::core::ffi::c_void, - pub state: u32, + pub state: HEADER_CONTROL_FORMAT_STATE, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for HDITEMW {} @@ -20415,10 +21362,10 @@ impl ::core::default::Default for LHITTESTINFO { #[repr(C)] #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub struct LITEM { - pub mask: u32, + pub mask: LIST_ITEM_FLAGS, pub iLink: i32, - pub state: u32, - pub stateMask: u32, + pub state: LIST_ITEM_STATE_FLAGS, + pub stateMask: LIST_ITEM_STATE_FLAGS, pub szID: [u16; 48], pub szUrl: [u16; 2084], } @@ -20451,7 +21398,7 @@ impl ::core::default::Default for LITEM { #[doc = "*Required features: `\"Win32_UI_Controls\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] pub struct LVBKIMAGEA { - pub ulFlags: u32, + pub ulFlags: LIST_VIEW_BACKGROUND_IMAGE_FLAGS, pub hbm: super::super::Graphics::Gdi::HBITMAP, pub pszImage: ::windows::core::PSTR, pub cchImageMax: u32, @@ -20494,7 +21441,7 @@ impl ::core::default::Default for LVBKIMAGEA { #[doc = "*Required features: `\"Win32_UI_Controls\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] pub struct LVBKIMAGEW { - pub ulFlags: u32, + pub ulFlags: LIST_VIEW_BACKGROUND_IMAGE_FLAGS, pub hbm: super::super::Graphics::Gdi::HBITMAP, pub pszImage: ::windows::core::PWSTR, pub cchImageMax: u32, @@ -20775,9 +21722,9 @@ pub struct LVGROUP { pub pszFooter: ::windows::core::PWSTR, pub cchFooter: i32, pub iGroupId: i32, - pub stateMask: u32, - pub state: u32, - pub uAlign: u32, + pub stateMask: LIST_VIEW_GROUP_STATE_FLAGS, + pub state: LIST_VIEW_GROUP_STATE_FLAGS, + pub uAlign: LIST_VIEW_GROUP_ALIGN_FLAGS, pub pszSubtitle: ::windows::core::PWSTR, pub cchSubtitle: u32, pub pszTask: ::windows::core::PWSTR, @@ -20970,7 +21917,7 @@ impl ::core::default::Default for LVINSERTGROUPSORTED { #[doc = "*Required features: `\"Win32_UI_Controls\"`*"] pub struct LVINSERTMARK { pub cbSize: u32, - pub dwFlags: u32, + pub dwFlags: LIST_VIEW_INSERT_MARK_FLAGS, pub iItem: i32, pub dwReserved: u32, } @@ -21003,11 +21950,11 @@ impl ::core::default::Default for LVINSERTMARK { #[doc = "*Required features: `\"Win32_UI_Controls\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct LVITEMA { - pub mask: u32, + pub mask: LIST_VIEW_ITEM_FLAGS, pub iItem: i32, pub iSubItem: i32, - pub state: u32, - pub stateMask: u32, + pub state: LIST_VIEW_ITEM_STATE_FLAGS, + pub stateMask: LIST_VIEW_ITEM_STATE_FLAGS, pub pszText: ::windows::core::PSTR, pub cchTextMax: i32, pub iImage: i32, @@ -21016,7 +21963,7 @@ pub struct LVITEMA { pub iGroupId: LVITEMA_GROUP_ID, pub cColumns: u32, pub puColumns: *mut u32, - pub piColFmt: *mut i32, + pub piColFmt: *mut LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS, pub iGroup: i32, } #[cfg(feature = "Win32_Foundation")] @@ -21102,11 +22049,11 @@ impl ::core::default::Default for LVITEMINDEX { #[doc = "*Required features: `\"Win32_UI_Controls\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct LVITEMW { - pub mask: u32, + pub mask: LIST_VIEW_ITEM_FLAGS, pub iItem: i32, pub iSubItem: i32, - pub state: u32, - pub stateMask: u32, + pub state: LIST_VIEW_ITEM_STATE_FLAGS, + pub stateMask: LIST_VIEW_ITEM_STATE_FLAGS, pub pszText: ::windows::core::PWSTR, pub cchTextMax: i32, pub iImage: i32, @@ -21115,7 +22062,7 @@ pub struct LVITEMW { pub iGroupId: LVITEMA_GROUP_ID, pub cColumns: u32, pub puColumns: *mut u32, - pub piColFmt: *mut i32, + pub piColFmt: *mut LIST_VIEW_ITEM_COLUMN_FORMAT_FLAGS, pub iGroup: i32, } #[cfg(feature = "Win32_Foundation")] @@ -21365,7 +22312,7 @@ impl ::core::default::Default for MCGRIDINFO { pub struct MCHITTESTINFO { pub cbSize: u32, pub pt: super::super::Foundation::POINT, - pub uHit: u32, + pub uHit: MCHITTESTINFO_HIT_FLAGS, pub st: super::super::Foundation::SYSTEMTIME, pub rc: super::super::Foundation::RECT, pub iOffset: i32, @@ -21809,7 +22756,7 @@ pub struct NMCUSTOMDRAW { pub hdc: super::super::Graphics::Gdi::HDC, pub rc: super::super::Foundation::RECT, pub dwItemSpec: usize, - pub uItemState: u32, + pub uItemState: NMCUSTOMDRAW_DRAW_STATE_FLAGS, pub lItemlParam: super::super::Foundation::LPARAM, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] @@ -21934,7 +22881,7 @@ impl ::core::default::Default for NMCUSTOMTEXT { #[cfg(feature = "Win32_Foundation")] pub struct NMDATETIMECHANGE { pub nmhdr: NMHDR, - pub dwFlags: u32, + pub dwFlags: NMDATETIMECHANGE_FLAGS, pub st: super::super::Foundation::SYSTEMTIME, } #[cfg(feature = "Win32_Foundation")] @@ -22762,7 +23709,7 @@ pub struct NMLISTVIEW { pub iSubItem: i32, pub uNewState: u32, pub uOldState: u32, - pub uChanged: u32, + pub uChanged: LIST_VIEW_ITEM_FLAGS, pub ptAction: super::super::Foundation::POINT, pub lParam: super::super::Foundation::LPARAM, } @@ -22853,7 +23800,7 @@ pub struct NMLVCUSTOMDRAW { pub iPartId: i32, pub iStateId: i32, pub rcText: super::super::Foundation::RECT, - pub uAlign: NMLVCUSTOMDRAW_ALIGN, + pub uAlign: LIST_VIEW_GROUP_ALIGN_FLAGS, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for NMLVCUSTOMDRAW {} @@ -23090,7 +24037,7 @@ impl ::core::default::Default for NMLVFINDITEMW { #[cfg(feature = "Win32_Foundation")] pub struct NMLVGETINFOTIPA { pub hdr: NMHDR, - pub dwFlags: u32, + pub dwFlags: NMLVGETINFOTIP_FLAGS, pub pszText: ::windows::core::PSTR, pub cchTextMax: i32, pub iItem: i32, @@ -23134,7 +24081,7 @@ impl ::core::default::Default for NMLVGETINFOTIPA { #[cfg(feature = "Win32_Foundation")] pub struct NMLVGETINFOTIPW { pub hdr: NMHDR, - pub dwFlags: u32, + pub dwFlags: NMLVGETINFOTIP_FLAGS, pub pszText: ::windows::core::PWSTR, pub cchTextMax: i32, pub iItem: i32, @@ -23255,8 +24202,8 @@ pub struct NMLVODSTATECHANGE { pub hdr: NMHDR, pub iFrom: i32, pub iTo: i32, - pub uNewState: u32, - pub uOldState: u32, + pub uNewState: LIST_VIEW_ITEM_STATE_FLAGS, + pub uOldState: LIST_VIEW_ITEM_STATE_FLAGS, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for NMLVODSTATECHANGE {} @@ -24440,7 +25387,7 @@ impl ::core::default::Default for NMTRBTHUMBPOSCHANGING { #[cfg(feature = "Win32_Foundation")] pub struct NMTREEVIEWA { pub hdr: NMHDR, - pub action: u32, + pub action: NM_TREEVIEW_ACTION, pub itemOld: TVITEMA, pub itemNew: TVITEMA, pub ptDrag: super::super::Foundation::POINT, @@ -24482,7 +25429,7 @@ impl ::core::default::Default for NMTREEVIEWA { #[cfg(feature = "Win32_Foundation")] pub struct NMTREEVIEWW { pub hdr: NMHDR, - pub action: u32, + pub action: NM_TREEVIEW_ACTION, pub itemOld: TVITEMW, pub itemNew: TVITEMW, pub ptDrag: super::super::Foundation::POINT, @@ -24566,7 +25513,7 @@ pub struct NMTTDISPINFOA { pub lpszText: ::windows::core::PSTR, pub szText: [super::super::Foundation::CHAR; 80], pub hinst: super::super::Foundation::HINSTANCE, - pub uFlags: u32, + pub uFlags: TOOLTIP_FLAGS, pub lParam: super::super::Foundation::LPARAM, } #[cfg(feature = "Win32_Foundation")] @@ -24609,7 +25556,7 @@ pub struct NMTTDISPINFOW { pub lpszText: ::windows::core::PWSTR, pub szText: [u16; 80], pub hinst: super::super::Foundation::HINSTANCE, - pub uFlags: u32, + pub uFlags: TOOLTIP_FLAGS, pub lParam: super::super::Foundation::LPARAM, } #[cfg(feature = "Win32_Foundation")] @@ -25132,8 +26079,8 @@ impl ::core::default::Default for NMUPDOWN { #[cfg(feature = "Win32_Foundation")] pub struct NMVIEWCHANGE { pub nmhdr: NMHDR, - pub dwOldView: u32, - pub dwNewView: u32, + pub dwOldView: MONTH_CALDENDAR_MESSAGES_VIEW, + pub dwNewView: MONTH_CALDENDAR_MESSAGES_VIEW, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for NMVIEWCHANGE {} @@ -28079,8 +29026,8 @@ impl ::core::default::Default for TCHITTESTINFO { #[cfg(feature = "Win32_Foundation")] pub struct TCITEMA { pub mask: TCITEMHEADERA_MASK, - pub dwState: u32, - pub dwStateMask: u32, + pub dwState: TAB_CONTROL_ITEM_STATE, + pub dwStateMask: TAB_CONTROL_ITEM_STATE, pub pszText: ::windows::core::PSTR, pub cchTextMax: i32, pub iImage: i32, @@ -28193,8 +29140,8 @@ impl ::core::default::Default for TCITEMHEADERW { #[cfg(feature = "Win32_Foundation")] pub struct TCITEMW { pub mask: TCITEMHEADERA_MASK, - pub dwState: u32, - pub dwStateMask: u32, + pub dwState: TAB_CONTROL_ITEM_STATE, + pub dwStateMask: TAB_CONTROL_ITEM_STATE, pub pszText: ::windows::core::PWSTR, pub cchTextMax: i32, pub iImage: i32, @@ -28431,7 +29378,7 @@ impl ::core::default::Default for TTHITTESTINFOW { #[cfg(feature = "Win32_Foundation")] pub struct TTTOOLINFOA { pub cbSize: u32, - pub uFlags: TTTOOLINFO_FLAGS, + pub uFlags: TOOLTIP_FLAGS, pub hwnd: super::super::Foundation::HWND, pub uId: usize, pub rect: super::super::Foundation::RECT, @@ -28477,7 +29424,7 @@ impl ::core::default::Default for TTTOOLINFOA { #[cfg(feature = "Win32_Foundation")] pub struct TTTOOLINFOW { pub cbSize: u32, - pub uFlags: TTTOOLINFO_FLAGS, + pub uFlags: TOOLTIP_FLAGS, pub hwnd: super::super::Foundation::HWND, pub uId: usize, pub rect: super::super::Foundation::RECT, @@ -28738,8 +29685,8 @@ impl ::core::default::Default for TVINSERTSTRUCTW_0 { pub struct TVITEMA { pub mask: TVITEM_MASK, pub hItem: HTREEITEM, - pub state: u32, - pub stateMask: u32, + pub state: TREE_VIEW_ITEM_STATE_FLAGS, + pub stateMask: TREE_VIEW_ITEM_STATE_FLAGS, pub pszText: ::windows::core::PSTR, pub cchTextMax: i32, pub iImage: i32, @@ -28921,8 +29868,8 @@ impl ::core::default::Default for TVITEMEXW { pub struct TVITEMW { pub mask: TVITEM_MASK, pub hItem: HTREEITEM, - pub state: u32, - pub stateMask: u32, + pub state: TREE_VIEW_ITEM_STATE_FLAGS, + pub stateMask: TREE_VIEW_ITEM_STATE_FLAGS, pub pszText: ::windows::core::PWSTR, pub cchTextMax: i32, pub iImage: i32, diff --git a/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs index 98409ab96c..5569f0fbae 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs @@ -163,12 +163,13 @@ where } GetSystemDpiForProcess(hprocess.into()) } -#[doc = "*Required features: `\"Win32_UI_HiDpi\"`*"] +#[doc = "*Required features: `\"Win32_UI_HiDpi\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] +#[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn GetSystemMetricsForDpi(nindex: i32, dpi: u32) -> i32 { +pub unsafe fn GetSystemMetricsForDpi(nindex: super::WindowsAndMessaging::SYSTEM_METRICS_INDEX, dpi: u32) -> i32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn GetSystemMetricsForDpi(nindex: i32, dpi: u32) -> i32; + fn GetSystemMetricsForDpi(nindex: super::WindowsAndMessaging::SYSTEM_METRICS_INDEX, dpi: u32) -> i32; } GetSystemMetricsForDpi(nindex, dpi) } diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs index ce179ede1e..3ef7f02065 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs @@ -6993,6 +6993,38 @@ impl ::core::default::Default for IMEDP { } #[repr(C)] #[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] +pub struct IMEFAREASTINFO { + pub dwSize: u32, + pub dwType: u32, + pub dwData: [u32; 1], +} +impl ::core::marker::Copy for IMEFAREASTINFO {} +impl ::core::clone::Clone for IMEFAREASTINFO { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for IMEFAREASTINFO { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("IMEFAREASTINFO").field("dwSize", &self.dwSize).field("dwType", &self.dwType).field("dwData", &self.dwData).finish() + } +} +unsafe impl ::windows::core::Abi for IMEFAREASTINFO { + type Abi = Self; +} +impl ::core::cmp::PartialEq for IMEFAREASTINFO { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for IMEFAREASTINFO {} +impl ::core::default::Default for IMEFAREASTINFO { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] pub struct IMEINFO { pub dwPrivateDataSize: u32, pub fdwProperty: u32, @@ -7536,7 +7568,7 @@ impl ::core::default::Default for IMESTRINGCANDIDATE { #[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] pub struct IMESTRINGCANDIDATEINFO { pub dwFarEastId: u32, - pub lpFarEastInfo: *mut tabIMEFAREASTINFO, + pub lpFarEastInfo: *mut IMEFAREASTINFO, pub fInfoMask: u32, pub iSelIndex: i32, pub uCount: u32, @@ -7567,6 +7599,37 @@ impl ::core::default::Default for IMESTRINGCANDIDATEINFO { unsafe { ::core::mem::zeroed() } } } +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] +pub struct IMESTRINGINFO { + pub dwFarEastId: u32, + pub lpwstr: ::windows::core::PWSTR, +} +impl ::core::marker::Copy for IMESTRINGINFO {} +impl ::core::clone::Clone for IMESTRINGINFO { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for IMESTRINGINFO { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("IMESTRINGINFO").field("dwFarEastId", &self.dwFarEastId).field("lpwstr", &self.lpwstr).finish() + } +} +unsafe impl ::windows::core::Abi for IMESTRINGINFO { + type Abi = Self; +} +impl ::core::cmp::PartialEq for IMESTRINGINFO { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for IMESTRINGINFO {} +impl ::core::default::Default for IMESTRINGINFO { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] pub struct IMEWRD { @@ -8235,69 +8298,6 @@ impl ::core::default::Default for WDD_1 { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] -pub struct tabIMEFAREASTINFO { - pub dwSize: u32, - pub dwType: u32, - pub dwData: [u32; 1], -} -impl ::core::marker::Copy for tabIMEFAREASTINFO {} -impl ::core::clone::Clone for tabIMEFAREASTINFO { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tabIMEFAREASTINFO { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tabIMEFAREASTINFO").field("dwSize", &self.dwSize).field("dwType", &self.dwType).field("dwData", &self.dwData).finish() - } -} -unsafe impl ::windows::core::Abi for tabIMEFAREASTINFO { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tabIMEFAREASTINFO { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tabIMEFAREASTINFO {} -impl ::core::default::Default for tabIMEFAREASTINFO { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] -pub struct tabIMESTRINGINFO { - pub dwFarEastId: u32, - pub lpwstr: ::windows::core::PWSTR, -} -impl ::core::marker::Copy for tabIMESTRINGINFO {} -impl ::core::clone::Clone for tabIMESTRINGINFO { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tabIMESTRINGINFO { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tabIMESTRINGINFO").field("dwFarEastId", &self.dwFarEastId).field("lpwstr", &self.lpwstr).finish() - } -} -unsafe impl ::windows::core::Abi for tabIMESTRINGINFO { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tabIMESTRINGINFO { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tabIMESTRINGINFO {} -impl ::core::default::Default for tabIMESTRINGINFO { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_UI_Input_Ime\"`, `\"Win32_Foundation\"`, `\"Win32_Globalization\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Globalization"))] pub type IMCENUMPROC = ::core::option::Option super::super::super::Foundation::BOOL>; diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs index 640781301b..6024c6342b 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs @@ -1826,6 +1826,103 @@ impl ::core::default::Default for INPUT_0 { } #[repr(C)] #[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] +pub struct KBDNLSTABLES { + pub OEMIdentifier: u16, + pub LayoutInformation: u16, + pub NumOfVkToF: u32, + pub pVkToF: *mut VK_F, + pub NumOfMouseVKey: i32, + pub pusMouseVKey: *mut u16, +} +impl ::core::marker::Copy for KBDNLSTABLES {} +impl ::core::clone::Clone for KBDNLSTABLES { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for KBDNLSTABLES { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("KBDNLSTABLES").field("OEMIdentifier", &self.OEMIdentifier).field("LayoutInformation", &self.LayoutInformation).field("NumOfVkToF", &self.NumOfVkToF).field("pVkToF", &self.pVkToF).field("NumOfMouseVKey", &self.NumOfMouseVKey).field("pusMouseVKey", &self.pusMouseVKey).finish() + } +} +unsafe impl ::windows::core::Abi for KBDNLSTABLES { + type Abi = Self; +} +impl ::core::cmp::PartialEq for KBDNLSTABLES { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for KBDNLSTABLES {} +impl ::core::default::Default for KBDNLSTABLES { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] +pub struct KBDTABLES { + pub pCharModifiers: *mut MODIFIERS, + pub pVkToWcharTable: *mut VK_TO_WCHAR_TABLE, + pub pDeadKey: *mut DEADKEY, + pub pKeyNames: *mut VSC_LPWSTR, + pub pKeyNamesExt: *mut VSC_LPWSTR, + pub pKeyNamesDead: *mut *mut u16, + pub pusVSCtoVK: *mut u16, + pub bMaxVSCtoVK: u8, + pub pVSCtoVK_E0: *mut VSC_VK, + pub pVSCtoVK_E1: *mut VSC_VK, + pub fLocaleFlags: u32, + pub nLgMax: u8, + pub cbLgEntry: u8, + pub pLigature: *mut LIGATURE1, + pub dwType: u32, + pub dwSubType: u32, +} +impl ::core::marker::Copy for KBDTABLES {} +impl ::core::clone::Clone for KBDTABLES { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for KBDTABLES { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("KBDTABLES") + .field("pCharModifiers", &self.pCharModifiers) + .field("pVkToWcharTable", &self.pVkToWcharTable) + .field("pDeadKey", &self.pDeadKey) + .field("pKeyNames", &self.pKeyNames) + .field("pKeyNamesExt", &self.pKeyNamesExt) + .field("pKeyNamesDead", &self.pKeyNamesDead) + .field("pusVSCtoVK", &self.pusVSCtoVK) + .field("bMaxVSCtoVK", &self.bMaxVSCtoVK) + .field("pVSCtoVK_E0", &self.pVSCtoVK_E0) + .field("pVSCtoVK_E1", &self.pVSCtoVK_E1) + .field("fLocaleFlags", &self.fLocaleFlags) + .field("nLgMax", &self.nLgMax) + .field("cbLgEntry", &self.cbLgEntry) + .field("pLigature", &self.pLigature) + .field("dwType", &self.dwType) + .field("dwSubType", &self.dwSubType) + .finish() + } +} +unsafe impl ::windows::core::Abi for KBDTABLES { + type Abi = Self; +} +impl ::core::cmp::PartialEq for KBDTABLES { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for KBDTABLES {} +impl ::core::default::Default for KBDTABLES { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] pub struct KBDTABLE_DESC { pub wszDllName: [u16; 32], pub dwType: u32, @@ -2287,6 +2384,72 @@ impl ::core::default::Default for TRACKMOUSEEVENT { } #[repr(C)] #[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] +pub struct VK_F { + pub Vk: u8, + pub NLSFEProcType: u8, + pub NLSFEProcCurrent: u8, + pub NLSFEProcSwitch: u8, + pub NLSFEProc: [VK_FPARAM; 8], + pub NLSFEProcAlt: [VK_FPARAM; 8], +} +impl ::core::marker::Copy for VK_F {} +impl ::core::clone::Clone for VK_F { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for VK_F { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("VK_F").field("Vk", &self.Vk).field("NLSFEProcType", &self.NLSFEProcType).field("NLSFEProcCurrent", &self.NLSFEProcCurrent).field("NLSFEProcSwitch", &self.NLSFEProcSwitch).field("NLSFEProc", &self.NLSFEProc).field("NLSFEProcAlt", &self.NLSFEProcAlt).finish() + } +} +unsafe impl ::windows::core::Abi for VK_F { + type Abi = Self; +} +impl ::core::cmp::PartialEq for VK_F { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for VK_F {} +impl ::core::default::Default for VK_F { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] +pub struct VK_FPARAM { + pub NLSFEProcIndex: u8, + pub NLSFEProcParam: u32, +} +impl ::core::marker::Copy for VK_FPARAM {} +impl ::core::clone::Clone for VK_FPARAM { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for VK_FPARAM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("VK_FPARAM").field("NLSFEProcIndex", &self.NLSFEProcIndex).field("NLSFEProcParam", &self.NLSFEProcParam).finish() + } +} +unsafe impl ::windows::core::Abi for VK_FPARAM { + type Abi = Self; +} +impl ::core::cmp::PartialEq for VK_FPARAM { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for VK_FPARAM {} +impl ::core::default::Default for VK_FPARAM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] pub struct VK_TO_BIT { pub Vk: u8, pub ModBits: u8, @@ -2761,168 +2924,5 @@ impl ::core::default::Default for VSC_VK { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] -pub struct _VK_FUNCTION_PARAM { - pub NLSFEProcIndex: u8, - pub NLSFEProcParam: u32, -} -impl ::core::marker::Copy for _VK_FUNCTION_PARAM {} -impl ::core::clone::Clone for _VK_FUNCTION_PARAM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _VK_FUNCTION_PARAM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_VK_FUNCTION_PARAM").field("NLSFEProcIndex", &self.NLSFEProcIndex).field("NLSFEProcParam", &self.NLSFEProcParam).finish() - } -} -unsafe impl ::windows::core::Abi for _VK_FUNCTION_PARAM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _VK_FUNCTION_PARAM { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_VK_FUNCTION_PARAM>()) == 0 } - } -} -impl ::core::cmp::Eq for _VK_FUNCTION_PARAM {} -impl ::core::default::Default for _VK_FUNCTION_PARAM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] -pub struct _VK_TO_FUNCTION_TABLE { - pub Vk: u8, - pub NLSFEProcType: u8, - pub NLSFEProcCurrent: u8, - pub NLSFEProcSwitch: u8, - pub NLSFEProc: [_VK_FUNCTION_PARAM; 8], - pub NLSFEProcAlt: [_VK_FUNCTION_PARAM; 8], -} -impl ::core::marker::Copy for _VK_TO_FUNCTION_TABLE {} -impl ::core::clone::Clone for _VK_TO_FUNCTION_TABLE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for _VK_TO_FUNCTION_TABLE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("_VK_TO_FUNCTION_TABLE").field("Vk", &self.Vk).field("NLSFEProcType", &self.NLSFEProcType).field("NLSFEProcCurrent", &self.NLSFEProcCurrent).field("NLSFEProcSwitch", &self.NLSFEProcSwitch).field("NLSFEProc", &self.NLSFEProc).field("NLSFEProcAlt", &self.NLSFEProcAlt).finish() - } -} -unsafe impl ::windows::core::Abi for _VK_TO_FUNCTION_TABLE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for _VK_TO_FUNCTION_TABLE { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<_VK_TO_FUNCTION_TABLE>()) == 0 } - } -} -impl ::core::cmp::Eq for _VK_TO_FUNCTION_TABLE {} -impl ::core::default::Default for _VK_TO_FUNCTION_TABLE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] -pub struct tagKbdLayer { - pub pCharModifiers: *mut MODIFIERS, - pub pVkToWcharTable: *mut VK_TO_WCHAR_TABLE, - pub pDeadKey: *mut DEADKEY, - pub pKeyNames: *mut VSC_LPWSTR, - pub pKeyNamesExt: *mut VSC_LPWSTR, - pub pKeyNamesDead: *mut *mut u16, - pub pusVSCtoVK: *mut u16, - pub bMaxVSCtoVK: u8, - pub pVSCtoVK_E0: *mut VSC_VK, - pub pVSCtoVK_E1: *mut VSC_VK, - pub fLocaleFlags: u32, - pub nLgMax: u8, - pub cbLgEntry: u8, - pub pLigature: *mut LIGATURE1, - pub dwType: u32, - pub dwSubType: u32, -} -impl ::core::marker::Copy for tagKbdLayer {} -impl ::core::clone::Clone for tagKbdLayer { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tagKbdLayer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tagKbdLayer") - .field("pCharModifiers", &self.pCharModifiers) - .field("pVkToWcharTable", &self.pVkToWcharTable) - .field("pDeadKey", &self.pDeadKey) - .field("pKeyNames", &self.pKeyNames) - .field("pKeyNamesExt", &self.pKeyNamesExt) - .field("pKeyNamesDead", &self.pKeyNamesDead) - .field("pusVSCtoVK", &self.pusVSCtoVK) - .field("bMaxVSCtoVK", &self.bMaxVSCtoVK) - .field("pVSCtoVK_E0", &self.pVSCtoVK_E0) - .field("pVSCtoVK_E1", &self.pVSCtoVK_E1) - .field("fLocaleFlags", &self.fLocaleFlags) - .field("nLgMax", &self.nLgMax) - .field("cbLgEntry", &self.cbLgEntry) - .field("pLigature", &self.pLigature) - .field("dwType", &self.dwType) - .field("dwSubType", &self.dwSubType) - .finish() - } -} -unsafe impl ::windows::core::Abi for tagKbdLayer { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tagKbdLayer { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tagKbdLayer {} -impl ::core::default::Default for tagKbdLayer { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Input_KeyboardAndMouse\"`*"] -pub struct tagKbdNlsLayer { - pub OEMIdentifier: u16, - pub LayoutInformation: u16, - pub NumOfVkToF: u32, - pub pVkToF: *mut _VK_TO_FUNCTION_TABLE, - pub NumOfMouseVKey: i32, - pub pusMouseVKey: *mut u16, -} -impl ::core::marker::Copy for tagKbdNlsLayer {} -impl ::core::clone::Clone for tagKbdNlsLayer { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for tagKbdNlsLayer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("tagKbdNlsLayer").field("OEMIdentifier", &self.OEMIdentifier).field("LayoutInformation", &self.LayoutInformation).field("NumOfVkToF", &self.NumOfVkToF).field("pVkToF", &self.pVkToF).field("NumOfMouseVKey", &self.NumOfMouseVKey).field("pusMouseVKey", &self.pusMouseVKey).finish() - } -} -unsafe impl ::windows::core::Abi for tagKbdNlsLayer { - type Abi = Self; -} -impl ::core::cmp::PartialEq for tagKbdNlsLayer { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for tagKbdNlsLayer {} -impl ::core::default::Default for tagKbdNlsLayer { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[cfg(feature = "implement")] ::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs index 857dc41390..710ac72b51 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs @@ -605,40 +605,40 @@ pub const STATEBITS_FLAT: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _reconcilef(pub i32); +pub struct RECONCILEF(pub i32); #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_MAYBOTHERUSER: _reconcilef = _reconcilef(1i32); +pub const RECONCILEF_MAYBOTHERUSER: RECONCILEF = RECONCILEF(1i32); #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_FEEDBACKWINDOWVALID: _reconcilef = _reconcilef(2i32); +pub const RECONCILEF_FEEDBACKWINDOWVALID: RECONCILEF = RECONCILEF(2i32); #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_NORESIDUESOK: _reconcilef = _reconcilef(4i32); +pub const RECONCILEF_NORESIDUESOK: RECONCILEF = RECONCILEF(4i32); #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_OMITSELFRESIDUE: _reconcilef = _reconcilef(8i32); +pub const RECONCILEF_OMITSELFRESIDUE: RECONCILEF = RECONCILEF(8i32); #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_RESUMERECONCILIATION: _reconcilef = _reconcilef(16i32); +pub const RECONCILEF_RESUMERECONCILIATION: RECONCILEF = RECONCILEF(16i32); #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_YOUMAYDOTHEUPDATES: _reconcilef = _reconcilef(32i32); +pub const RECONCILEF_YOUMAYDOTHEUPDATES: RECONCILEF = RECONCILEF(32i32); #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const RECONCILEF_ONLYYOUWERECHANGED: _reconcilef = _reconcilef(64i32); +pub const RECONCILEF_ONLYYOUWERECHANGED: RECONCILEF = RECONCILEF(64i32); #[doc = "*Required features: `\"Win32_UI_LegacyWindowsEnvironmentFeatures\"`*"] -pub const ALL_RECONCILE_FLAGS: _reconcilef = _reconcilef(127i32); -impl ::core::marker::Copy for _reconcilef {} -impl ::core::clone::Clone for _reconcilef { +pub const ALL_RECONCILE_FLAGS: RECONCILEF = RECONCILEF(127i32); +impl ::core::marker::Copy for RECONCILEF {} +impl ::core::clone::Clone for RECONCILEF { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for _reconcilef { +impl ::core::default::Default for RECONCILEF { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for _reconcilef { +unsafe impl ::windows::core::Abi for RECONCILEF { type Abi = Self; } -impl ::core::fmt::Debug for _reconcilef { +impl ::core::fmt::Debug for RECONCILEF { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_reconcilef").field(&self.0).finish() + f.debug_tuple("RECONCILEF").field(&self.0).finish() } } #[cfg(feature = "implement")] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/mod.rs index e128aad1dd..7243735772 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/mod.rs @@ -398,7 +398,7 @@ impl ::core::default::Default for COMDLG_FILTERSPEC { unsafe { ::core::mem::zeroed() } } } -#[repr(C)] +#[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_UI_Shell_Common\"`*"] pub struct ITEMIDLIST { pub mkid: SHITEMID, diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs index 388c6155c0..c9fb69cf3a 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs @@ -5419,20 +5419,20 @@ impl IDragSourceHelper2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IDropTargetHelper_Impl: Sized { - fn DragEnter(&self, hwndtarget: super::super::Foundation::HWND, pdataobject: &::core::option::Option, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::Result<()>; + fn DragEnter(&self, hwndtarget: super::super::Foundation::HWND, pdataobject: &::core::option::Option, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> ::windows::core::Result<()>; fn DragLeave(&self) -> ::windows::core::Result<()>; - fn DragOver(&self, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::Result<()>; - fn Drop(&self, pdataobject: &::core::option::Option, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::Result<()>; + fn DragOver(&self, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> ::windows::core::Result<()>; + fn Drop(&self, pdataobject: &::core::option::Option, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> ::windows::core::Result<()>; fn Show(&self, fshow: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IDropTargetHelper {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IDropTargetHelper_Vtbl { pub const fn new, Impl: IDropTargetHelper_Impl, const OFFSET: isize>() -> IDropTargetHelper_Vtbl { - unsafe extern "system" fn DragEnter, Impl: IDropTargetHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndtarget: super::super::Foundation::HWND, pdataobject: *mut ::core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn DragEnter, Impl: IDropTargetHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndtarget: super::super::Foundation::HWND, pdataobject: *mut ::core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DragEnter(::core::mem::transmute_copy(&hwndtarget), ::core::mem::transmute(&pdataobject), ::core::mem::transmute_copy(&ppt), ::core::mem::transmute_copy(&dweffect)).into() @@ -5442,12 +5442,12 @@ impl IDropTargetHelper_Vtbl { let this = (*this).get_impl(); this.DragLeave().into() } - unsafe extern "system" fn DragOver, Impl: IDropTargetHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn DragOver, Impl: IDropTargetHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DragOver(::core::mem::transmute_copy(&ppt), ::core::mem::transmute_copy(&dweffect)).into() } - unsafe extern "system" fn Drop, Impl: IDropTargetHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdataobject: *mut ::core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Drop, Impl: IDropTargetHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdataobject: *mut ::core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Drop(::core::mem::transmute(&pdataobject), ::core::mem::transmute_copy(&ppt), ::core::mem::transmute_copy(&dweffect)).into() @@ -13644,7 +13644,7 @@ impl IShellApp_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Controls", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub trait IShellBrowser_Impl: Sized + super::super::System::Ole::IOleWindow_Impl { - fn InsertMenusSB(&self, hmenushared: super::WindowsAndMessaging::HMENU, lpmenuwidths: *mut super::super::System::Ole::OleMenuGroupWidths) -> ::windows::core::Result<()>; + fn InsertMenusSB(&self, hmenushared: super::WindowsAndMessaging::HMENU, lpmenuwidths: *mut super::super::System::Ole::OLEMENUGROUPWIDTHS) -> ::windows::core::Result<()>; fn SetMenuSB(&self, hmenushared: super::WindowsAndMessaging::HMENU, holemenures: isize, hwndactiveobject: super::super::Foundation::HWND) -> ::windows::core::Result<()>; fn RemoveMenusSB(&self, hmenushared: super::WindowsAndMessaging::HMENU) -> ::windows::core::Result<()>; fn SetStatusTextSB(&self, pszstatustext: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; @@ -13663,7 +13663,7 @@ impl ::windows::core::RuntimeName for IShellBrowser {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Controls", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IShellBrowser_Vtbl { pub const fn new, Impl: IShellBrowser_Impl, const OFFSET: isize>() -> IShellBrowser_Vtbl { - unsafe extern "system" fn InsertMenusSB, Impl: IShellBrowser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hmenushared: super::WindowsAndMessaging::HMENU, lpmenuwidths: *mut super::super::System::Ole::OleMenuGroupWidths) -> ::windows::core::HRESULT { + unsafe extern "system" fn InsertMenusSB, Impl: IShellBrowser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hmenushared: super::WindowsAndMessaging::HMENU, lpmenuwidths: *mut super::super::System::Ole::OLEMENUGROUPWIDTHS) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InsertMenusSB(::core::mem::transmute_copy(&hmenushared), ::core::mem::transmute_copy(&lpmenuwidths)).into() @@ -15695,17 +15695,17 @@ impl IShellImageDataFactory_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_System_Com")] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] pub trait IShellItem_Impl: Sized { fn BindToHandler(&self, pbc: &::core::option::Option, bhid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn GetParent(&self) -> ::windows::core::Result; fn GetDisplayName(&self, sigdnname: SIGDN) -> ::windows::core::Result<::windows::core::PWSTR>; - fn GetAttributes(&self, sfgaomask: u32) -> ::windows::core::Result; + fn GetAttributes(&self, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS) -> ::windows::core::Result; fn Compare(&self, psi: &::core::option::Option, hint: u32) -> ::windows::core::Result; } -#[cfg(feature = "Win32_System_Com")] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] impl ::windows::core::RuntimeName for IShellItem {} -#[cfg(feature = "Win32_System_Com")] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] impl IShellItem_Vtbl { pub const fn new, Impl: IShellItem_Impl, const OFFSET: isize>() -> IShellItem_Vtbl { unsafe extern "system" fn BindToHandler, Impl: IShellItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbc: *mut ::core::ffi::c_void, bhid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -15735,7 +15735,7 @@ impl IShellItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributes, Impl: IShellItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sfgaomask: u32, psfgaoattribs: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAttributes, Impl: IShellItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS, psfgaoattribs: *mut super::super::System::SystemServices::SFGAO_FLAGS) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAttributes(::core::mem::transmute_copy(&sfgaomask)) { @@ -15770,7 +15770,7 @@ impl IShellItem_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_SystemServices", feature = "Win32_UI_Shell_PropertiesSystem"))] pub trait IShellItem2_Impl: Sized + IShellItem_Impl { fn GetPropertyStore(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn GetPropertyStoreWithCreateObject(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, punkcreateobject: &::core::option::Option<::windows::core::IUnknown>, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; @@ -15786,9 +15786,9 @@ pub trait IShellItem2_Impl: Sized + IShellItem_Impl { fn GetUInt64(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result; fn GetBool(&self, key: *const PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_SystemServices", feature = "Win32_UI_Shell_PropertiesSystem"))] impl ::windows::core::RuntimeName for IShellItem2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_SystemServices", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IShellItem2_Vtbl { pub const fn new, Impl: IShellItem2_Impl, const OFFSET: isize>() -> IShellItem2_Vtbl { unsafe extern "system" fn GetPropertyStore, Impl: IShellItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -15925,19 +15925,19 @@ impl IShellItem2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices", feature = "Win32_UI_Shell_PropertiesSystem"))] pub trait IShellItemArray_Impl: Sized { fn BindToHandler(&self, pbc: &::core::option::Option, bhid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppvout: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn GetPropertyStore(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn GetPropertyDescriptionList(&self, keytype: *const PropertiesSystem::PROPERTYKEY, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; - fn GetAttributes(&self, attribflags: SIATTRIBFLAGS, sfgaomask: u32) -> ::windows::core::Result; + fn GetAttributes(&self, attribflags: SIATTRIBFLAGS, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS) -> ::windows::core::Result; fn GetCount(&self) -> ::windows::core::Result; fn GetItemAt(&self, dwindex: u32) -> ::windows::core::Result; fn EnumItems(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices", feature = "Win32_UI_Shell_PropertiesSystem"))] impl ::windows::core::RuntimeName for IShellItemArray {} -#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IShellItemArray_Vtbl { pub const fn new, Impl: IShellItemArray_Impl, const OFFSET: isize>() -> IShellItemArray_Vtbl { unsafe extern "system" fn BindToHandler, Impl: IShellItemArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbc: *mut ::core::ffi::c_void, bhid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppvout: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -15955,7 +15955,7 @@ impl IShellItemArray_Vtbl { let this = (*this).get_impl(); this.GetPropertyDescriptionList(::core::mem::transmute_copy(&keytype), ::core::mem::transmute_copy(&riid), ::core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetAttributes, Impl: IShellItemArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, attribflags: SIATTRIBFLAGS, sfgaomask: u32, psfgaoattribs: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAttributes, Impl: IShellItemArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, attribflags: SIATTRIBFLAGS, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS, psfgaoattribs: *mut super::super::System::SystemServices::SFGAO_FLAGS) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAttributes(::core::mem::transmute_copy(&attribflags), ::core::mem::transmute_copy(&sfgaomask)) { @@ -21745,7 +21745,7 @@ impl IURLSearchHook2_Vtbl { pub trait IUniformResourceLocatorA_Impl: Sized { fn SetURL(&self, pcszurl: &::windows::core::PCSTR, dwinflags: u32) -> ::windows::core::Result<()>; fn GetURL(&self) -> ::windows::core::Result<::windows::core::PSTR>; - fn InvokeCommand(&self, purlici: *mut urlinvokecommandinfoA) -> ::windows::core::Result<()>; + fn InvokeCommand(&self, purlici: *mut URLINVOKECOMMANDINFOA) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUniformResourceLocatorA {} @@ -21768,7 +21768,7 @@ impl IUniformResourceLocatorA_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InvokeCommand, Impl: IUniformResourceLocatorA_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purlici: *mut urlinvokecommandinfoA) -> ::windows::core::HRESULT { + unsafe extern "system" fn InvokeCommand, Impl: IUniformResourceLocatorA_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purlici: *mut URLINVOKECOMMANDINFOA) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InvokeCommand(::core::mem::transmute_copy(&purlici)).into() @@ -21788,7 +21788,7 @@ impl IUniformResourceLocatorA_Vtbl { pub trait IUniformResourceLocatorW_Impl: Sized { fn SetURL(&self, pcszurl: &::windows::core::PCWSTR, dwinflags: u32) -> ::windows::core::Result<()>; fn GetURL(&self) -> ::windows::core::Result<::windows::core::PWSTR>; - fn InvokeCommand(&self, purlici: *mut urlinvokecommandinfoW) -> ::windows::core::Result<()>; + fn InvokeCommand(&self, purlici: *mut URLINVOKECOMMANDINFOW) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUniformResourceLocatorW {} @@ -21811,7 +21811,7 @@ impl IUniformResourceLocatorW_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InvokeCommand, Impl: IUniformResourceLocatorW_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purlici: *mut urlinvokecommandinfoW) -> ::windows::core::HRESULT { + unsafe extern "system" fn InvokeCommand, Impl: IUniformResourceLocatorW_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purlici: *mut URLINVOKECOMMANDINFOW) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InvokeCommand(::core::mem::transmute_copy(&purlici)).into() 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 f4c4c40720..a43f60f311 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs @@ -60,12 +60,16 @@ where } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn AssocCreate(clsid: ::windows::core::GUID, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { +pub unsafe fn AssocCreate(clsid: ::windows::core::GUID) -> ::windows::core::Result +where + T: ::windows::core::Interface, +{ #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn AssocCreate(clsid: ::windows::core::GUID, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - AssocCreate(::core::mem::transmute(clsid), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + AssocCreate(::core::mem::transmute(clsid), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Registry\"`*"] #[cfg(feature = "Win32_System_Registry")] @@ -985,7 +989,7 @@ pub unsafe fn HMONITOR_UserSize64(param0: &u32, param1: u32, param2: &super::sup #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn HMONITOR_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut super::super::Graphics::Gdi::HMONITOR) -> *mut u8 { +pub unsafe fn HMONITOR_UserUnmarshal(param0: &u32, param1: &u8, param2: &mut super::super::Graphics::Gdi::HMONITOR) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HMONITOR_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::Graphics::Gdi::HMONITOR) -> *mut u8; @@ -995,7 +999,7 @@ pub unsafe fn HMONITOR_UserUnmarshal(param0: &u32, param1: *const u8, param2: &m #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn HMONITOR_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut super::super::Graphics::Gdi::HMONITOR) -> *mut u8 { +pub unsafe fn HMONITOR_UserUnmarshal64(param0: &u32, param1: &u8, param2: &mut super::super::Graphics::Gdi::HMONITOR) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HMONITOR_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::Graphics::Gdi::HMONITOR) -> *mut u8; @@ -1013,93 +1017,105 @@ pub unsafe fn HashData(pbdata: &[u8], pbhash: &mut [u8]) -> ::windows::core::Res } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn HlinkClone<'a, P0, P1>(pihl: P0, riid: &::windows::core::GUID, pihlsiteforclone: P1, dwsitedata: u32, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn HlinkClone<'a, P0, P1, T>(pihl: P0, pihlsiteforclone: P1, dwsitedata: u32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, IHlink>>, P1: ::std::convert::Into<::windows::core::InParam<'a, IHlinkSite>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HlinkClone(pihl: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, pihlsiteforclone: *mut ::core::ffi::c_void, dwsitedata: u32, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - HlinkClone(pihl.into().abi(), ::core::mem::transmute(riid), pihlsiteforclone.into().abi(), dwsitedata, ::core::mem::transmute(ppvobj)).ok() + let mut result__ = ::core::option::Option::None; + HlinkClone(pihl.into().abi(), &::IID, pihlsiteforclone.into().abi(), dwsitedata, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn HlinkCreateBrowseContext<'a, P0>(piunkouter: P0, riid: &::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn HlinkCreateBrowseContext<'a, P0, T>(piunkouter: P0) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HlinkCreateBrowseContext(piunkouter: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - HlinkCreateBrowseContext(piunkouter.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvobj)).ok() + let mut result__ = ::core::option::Option::None; + HlinkCreateBrowseContext(piunkouter.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn HlinkCreateExtensionServices<'a, P0, P1, P2, P3, P4>(pwzadditionalheaders: P0, phwnd: P1, pszusername: P2, pszpassword: P3, piunkouter: P4, riid: &::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn HlinkCreateExtensionServices<'a, P0, P1, P2, P3, P4, T>(pwzadditionalheaders: P0, phwnd: P1, pszusername: P2, pszpassword: P3, piunkouter: P4) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into, P2: ::std::convert::Into<::windows::core::PCWSTR>, P3: ::std::convert::Into<::windows::core::PCWSTR>, P4: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HlinkCreateExtensionServices(pwzadditionalheaders: ::windows::core::PCWSTR, phwnd: super::super::Foundation::HWND, pszusername: ::windows::core::PCWSTR, pszpassword: ::windows::core::PCWSTR, piunkouter: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - HlinkCreateExtensionServices(pwzadditionalheaders.into(), phwnd.into(), pszusername.into(), pszpassword.into(), piunkouter.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvobj)).ok() + let mut result__ = ::core::option::Option::None; + HlinkCreateExtensionServices(pwzadditionalheaders.into(), phwnd.into(), pszusername.into(), pszpassword.into(), piunkouter.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn HlinkCreateFromData<'a, P0, P1, P2>(pidataobj: P0, pihlsite: P1, dwsitedata: u32, piunkouter: P2, riid: &::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn HlinkCreateFromData<'a, P0, P1, P2, T>(pidataobj: P0, pihlsite: P1, dwsitedata: u32, piunkouter: P2) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDataObject>>, P1: ::std::convert::Into<::windows::core::InParam<'a, IHlinkSite>>, P2: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HlinkCreateFromData(pidataobj: *mut ::core::ffi::c_void, pihlsite: *mut ::core::ffi::c_void, dwsitedata: u32, piunkouter: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - HlinkCreateFromData(pidataobj.into().abi(), pihlsite.into().abi(), dwsitedata, piunkouter.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvobj)).ok() + let mut result__ = ::core::option::Option::None; + HlinkCreateFromData(pidataobj.into().abi(), pihlsite.into().abi(), dwsitedata, piunkouter.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn HlinkCreateFromMoniker<'a, P0, P1, P2, P3, P4>(pimktrgt: P0, pwzlocation: P1, pwzfriendlyname: P2, pihlsite: P3, dwsitedata: u32, piunkouter: P4, riid: &::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn HlinkCreateFromMoniker<'a, P0, P1, P2, P3, P4, T>(pimktrgt: P0, pwzlocation: P1, pwzfriendlyname: P2, pihlsite: P3, dwsitedata: u32, piunkouter: P4) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IMoniker>>, P1: ::std::convert::Into<::windows::core::PCWSTR>, P2: ::std::convert::Into<::windows::core::PCWSTR>, P3: ::std::convert::Into<::windows::core::InParam<'a, IHlinkSite>>, P4: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HlinkCreateFromMoniker(pimktrgt: *mut ::core::ffi::c_void, pwzlocation: ::windows::core::PCWSTR, pwzfriendlyname: ::windows::core::PCWSTR, pihlsite: *mut ::core::ffi::c_void, dwsitedata: u32, piunkouter: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - HlinkCreateFromMoniker(pimktrgt.into().abi(), pwzlocation.into(), pwzfriendlyname.into(), pihlsite.into().abi(), dwsitedata, piunkouter.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvobj)).ok() + let mut result__ = ::core::option::Option::None; + HlinkCreateFromMoniker(pimktrgt.into().abi(), pwzlocation.into(), pwzfriendlyname.into(), pihlsite.into().abi(), dwsitedata, piunkouter.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn HlinkCreateFromString<'a, P0, P1, P2, P3, P4>(pwztarget: P0, pwzlocation: P1, pwzfriendlyname: P2, pihlsite: P3, dwsitedata: u32, piunkouter: P4, riid: &::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn HlinkCreateFromString<'a, P0, P1, P2, P3, P4, T>(pwztarget: P0, pwzlocation: P1, pwzfriendlyname: P2, pihlsite: P3, dwsitedata: u32, piunkouter: P4) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, P2: ::std::convert::Into<::windows::core::PCWSTR>, P3: ::std::convert::Into<::windows::core::InParam<'a, IHlinkSite>>, P4: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn HlinkCreateFromString(pwztarget: ::windows::core::PCWSTR, pwzlocation: ::windows::core::PCWSTR, pwzfriendlyname: ::windows::core::PCWSTR, pihlsite: *mut ::core::ffi::c_void, dwsitedata: u32, piunkouter: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - HlinkCreateFromString(pwztarget.into(), pwzlocation.into(), pwzfriendlyname.into(), pihlsite.into().abi(), dwsitedata, piunkouter.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppvobj)).ok() + let mut result__ = ::core::option::Option::None; + HlinkCreateFromString(pwztarget.into(), pwzlocation.into(), pwzfriendlyname.into(), pihlsite.into().abi(), dwsitedata, piunkouter.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] @@ -1718,15 +1734,17 @@ pub unsafe fn IUnknown_AtomicRelease(ppunk: *mut *mut ::core::ffi::c_void) { } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn IUnknown_GetSite<'a, P0>(punk: P0, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn IUnknown_GetSite<'a, P0, T>(punk: P0) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn IUnknown_GetSite(punk: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - IUnknown_GetSite(punk.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + IUnknown_GetSite(punk.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -3941,15 +3959,17 @@ where } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn SHAssocEnumHandlersForProtocolByApplication<'a, P0>(protocol: P0, riid: &::windows::core::GUID, enumhandlers: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn SHAssocEnumHandlersForProtocolByApplication<'a, P0, T>(protocol: P0) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHAssocEnumHandlersForProtocolByApplication(protocol: ::windows::core::PCWSTR, riid: *const ::windows::core::GUID, enumhandlers: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHAssocEnumHandlersForProtocolByApplication(protocol.into(), ::core::mem::transmute(riid), ::core::mem::transmute(enumhandlers)).ok() + let mut result__ = ::core::option::Option::None; + SHAssocEnumHandlersForProtocolByApplication(protocol.into(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -3967,53 +3987,63 @@ where #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn SHBindToFolderIDListParent<'a, P0>(psfroot: P0, pidl: &Common::ITEMIDLIST, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void, ppidllast: ::core::option::Option<&mut *mut Common::ITEMIDLIST>) -> ::windows::core::Result<()> +pub unsafe fn SHBindToFolderIDListParent<'a, P0, T>(psfroot: P0, pidl: &Common::ITEMIDLIST, ppidllast: ::core::option::Option<&mut *mut Common::ITEMIDLIST>) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, IShellFolder>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHBindToFolderIDListParent(psfroot: *mut ::core::ffi::c_void, pidl: *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void, ppidllast: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT; } - SHBindToFolderIDListParent(psfroot.into().abi(), ::core::mem::transmute(pidl), ::core::mem::transmute(riid), ::core::mem::transmute(ppv), ::core::mem::transmute(ppidllast)).ok() + let mut result__ = ::core::option::Option::None; + SHBindToFolderIDListParent(psfroot.into().abi(), ::core::mem::transmute(pidl), &::IID, &mut result__ as *mut _ as *mut _, ::core::mem::transmute(ppidllast)).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] -pub unsafe fn SHBindToFolderIDListParentEx<'a, P0, P1>(psfroot: P0, pidl: &Common::ITEMIDLIST, ppbc: P1, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void, ppidllast: ::core::option::Option<&mut *mut Common::ITEMIDLIST>) -> ::windows::core::Result<()> +pub unsafe fn SHBindToFolderIDListParentEx<'a, P0, P1, T>(psfroot: P0, pidl: &Common::ITEMIDLIST, ppbc: P1, ppidllast: ::core::option::Option<&mut *mut Common::ITEMIDLIST>) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, IShellFolder>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IBindCtx>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHBindToFolderIDListParentEx(psfroot: *mut ::core::ffi::c_void, pidl: *const Common::ITEMIDLIST, ppbc: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void, ppidllast: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT; } - SHBindToFolderIDListParentEx(psfroot.into().abi(), ::core::mem::transmute(pidl), ppbc.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv), ::core::mem::transmute(ppidllast)).ok() + let mut result__ = ::core::option::Option::None; + SHBindToFolderIDListParentEx(psfroot.into().abi(), ::core::mem::transmute(pidl), ppbc.into().abi(), &::IID, &mut result__ as *mut _ as *mut _, ::core::mem::transmute(ppidllast)).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] -pub unsafe fn SHBindToObject<'a, P0, P1>(psf: P0, pidl: &Common::ITEMIDLIST, pbc: P1, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn SHBindToObject<'a, P0, P1, T>(psf: P0, pidl: &Common::ITEMIDLIST, pbc: P1) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, IShellFolder>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IBindCtx>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHBindToObject(psf: *mut ::core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pbc: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHBindToObject(psf.into().abi(), ::core::mem::transmute(pidl), pbc.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHBindToObject(psf.into().abi(), ::core::mem::transmute(pidl), pbc.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn SHBindToParent(pidl: &Common::ITEMIDLIST, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void, ppidllast: ::core::option::Option<&mut *mut Common::ITEMIDLIST>) -> ::windows::core::Result<()> { +pub unsafe fn SHBindToParent(pidl: &Common::ITEMIDLIST, ppidllast: ::core::option::Option<&mut *mut Common::ITEMIDLIST>) -> ::windows::core::Result +where + T: ::windows::core::Interface, +{ #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHBindToParent(pidl: *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void, ppidllast: *mut *mut Common::ITEMIDLIST) -> ::windows::core::HRESULT; } - SHBindToParent(::core::mem::transmute(pidl), ::core::mem::transmute(riid), ::core::mem::transmute(ppv), ::core::mem::transmute(ppidllast)).ok() + let mut result__ = ::core::option::Option::None; + SHBindToParent(::core::mem::transmute(pidl), &::IID, &mut result__ as *mut _ as *mut _, ::core::mem::transmute(ppidllast)).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] @@ -4176,44 +4206,58 @@ where } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn SHCreateAssociationRegistration(riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { +pub unsafe fn SHCreateAssociationRegistration() -> ::windows::core::Result +where + T: ::windows::core::Interface, +{ #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHCreateAssociationRegistration(riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHCreateAssociationRegistration(::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHCreateAssociationRegistration(&::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] #[inline] -pub unsafe fn SHCreateDataObject<'a, P0>(pidlfolder: ::core::option::Option<&Common::ITEMIDLIST>, apidl: ::core::option::Option<&[*const Common::ITEMIDLIST]>, pdtinner: P0, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn SHCreateDataObject<'a, P0, T>(pidlfolder: ::core::option::Option<&Common::ITEMIDLIST>, apidl: ::core::option::Option<&[*const Common::ITEMIDLIST]>, pdtinner: P0) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDataObject>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHCreateDataObject(pidlfolder: *const Common::ITEMIDLIST, cidl: u32, apidl: *const *const Common::ITEMIDLIST, pdtinner: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHCreateDataObject(::core::mem::transmute(pidlfolder), apidl.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(apidl.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pdtinner.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHCreateDataObject(::core::mem::transmute(pidlfolder), apidl.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(apidl.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pdtinner.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] #[inline] -pub unsafe fn SHCreateDefaultContextMenu(pdcm: &DEFCONTEXTMENU, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { +pub unsafe fn SHCreateDefaultContextMenu(pdcm: &DEFCONTEXTMENU) -> ::windows::core::Result +where + T: ::windows::core::Interface, +{ #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHCreateDefaultContextMenu(pdcm: *const DEFCONTEXTMENU, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHCreateDefaultContextMenu(::core::mem::transmute(pdcm), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHCreateDefaultContextMenu(::core::mem::transmute(pdcm), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn SHCreateDefaultExtractIcon(riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { +pub unsafe fn SHCreateDefaultExtractIcon() -> ::windows::core::Result +where + T: ::windows::core::Interface, +{ #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHCreateDefaultExtractIcon(riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHCreateDefaultExtractIcon(::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHCreateDefaultExtractIcon(&::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] @@ -4272,25 +4316,31 @@ where } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn SHCreateFileExtractIconW<'a, P0>(pszfile: P0, dwfileattributes: u32, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn SHCreateFileExtractIconW<'a, P0, T>(pszfile: P0, dwfileattributes: u32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHCreateFileExtractIconW(pszfile: ::windows::core::PCWSTR, dwfileattributes: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHCreateFileExtractIconW(pszfile.into(), dwfileattributes, ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHCreateFileExtractIconW(pszfile.into(), dwfileattributes, &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn SHCreateItemFromIDList(pidl: &Common::ITEMIDLIST, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { +pub unsafe fn SHCreateItemFromIDList(pidl: &Common::ITEMIDLIST) -> ::windows::core::Result +where + T: ::windows::core::Interface, +{ #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHCreateItemFromIDList(pidl: *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHCreateItemFromIDList(::core::mem::transmute(pidl), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHCreateItemFromIDList(::core::mem::transmute(pidl), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4311,42 +4361,48 @@ where #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn SHCreateItemFromRelativeName<'a, P0, P1, P2>(psiparent: P0, pszname: P1, pbc: P2, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn SHCreateItemFromRelativeName<'a, P0, P1, P2, T>(psiparent: P0, pszname: P1, pbc: P2) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, IShellItem>>, P1: ::std::convert::Into<::windows::core::PCWSTR>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IBindCtx>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHCreateItemFromRelativeName(psiparent: *mut ::core::ffi::c_void, pszname: ::windows::core::PCWSTR, pbc: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHCreateItemFromRelativeName(psiparent.into().abi(), pszname.into(), pbc.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHCreateItemFromRelativeName(psiparent.into().abi(), pszname.into(), pbc.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn SHCreateItemInKnownFolder<'a, P0>(kfid: &::windows::core::GUID, dwkfflags: u32, pszitem: P0, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn SHCreateItemInKnownFolder<'a, P0, T>(kfid: &::windows::core::GUID, dwkfflags: u32, pszitem: P0) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHCreateItemInKnownFolder(kfid: *const ::windows::core::GUID, dwkfflags: u32, pszitem: ::windows::core::PCWSTR, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHCreateItemInKnownFolder(::core::mem::transmute(kfid), dwkfflags, pszitem.into(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHCreateItemInKnownFolder(::core::mem::transmute(kfid), dwkfflags, pszitem.into(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn SHCreateItemWithParent<'a, P0>(pidlparent: ::core::option::Option<&Common::ITEMIDLIST>, psfparent: P0, pidl: &Common::ITEMIDLIST, riid: &::windows::core::GUID, ppvitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn SHCreateItemWithParent<'a, P0, T>(pidlparent: ::core::option::Option<&Common::ITEMIDLIST>, psfparent: P0, pidl: &Common::ITEMIDLIST) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, IShellFolder>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHCreateItemWithParent(pidlparent: *const Common::ITEMIDLIST, psfparent: *mut ::core::ffi::c_void, pidl: *const Common::ITEMIDLIST, riid: *const ::windows::core::GUID, ppvitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHCreateItemWithParent(::core::mem::transmute(pidlparent), psfparent.into().abi(), ::core::mem::transmute(pidl), ::core::mem::transmute(riid), ::core::mem::transmute(ppvitem)).ok() + let mut result__ = ::core::option::Option::None; + SHCreateItemWithParent(::core::mem::transmute(pidlparent), psfparent.into().abi(), ::core::mem::transmute(pidl), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4446,15 +4502,17 @@ where #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn SHCreateShellItemArrayFromDataObject<'a, P0>(pdo: P0, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn SHCreateShellItemArrayFromDataObject<'a, P0, T>(pdo: P0) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDataObject>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHCreateShellItemArrayFromDataObject(pdo: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHCreateShellItemArrayFromDataObject(pdo.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHCreateShellItemArrayFromDataObject(pdo.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -4469,15 +4527,17 @@ pub unsafe fn SHCreateShellItemArrayFromIDLists(rgpidl: &[*const Common::ITEMIDL } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn SHCreateShellItemArrayFromShellItem<'a, P0>(psi: P0, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn SHCreateShellItemArrayFromShellItem<'a, P0, T>(psi: P0) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, IShellItem>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHCreateShellItemArrayFromShellItem(psi: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHCreateShellItemArrayFromShellItem(psi.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHCreateShellItemArrayFromShellItem(psi.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -5169,12 +5229,16 @@ where } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn SHGetImageList(iimagelist: i32, riid: &::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { +pub unsafe fn SHGetImageList(iimagelist: i32) -> ::windows::core::Result +where + T: ::windows::core::Interface, +{ #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHGetImageList(iimagelist: i32, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHGetImageList(iimagelist, ::core::mem::transmute(riid), ::core::mem::transmute(ppvobj)).ok() + let mut result__ = ::core::option::Option::None; + SHGetImageList(iimagelist, &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] @@ -5198,27 +5262,31 @@ pub unsafe fn SHGetInverseCMAP(pbmap: &mut [u8]) -> ::windows::core::Result<()> #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn SHGetItemFromDataObject<'a, P0>(pdtobj: P0, dwflags: DATAOBJ_GET_ITEM_FLAGS, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn SHGetItemFromDataObject<'a, P0, T>(pdtobj: P0, dwflags: DATAOBJ_GET_ITEM_FLAGS) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDataObject>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHGetItemFromDataObject(pdtobj: *mut ::core::ffi::c_void, dwflags: DATAOBJ_GET_ITEM_FLAGS, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHGetItemFromDataObject(pdtobj.into().abi(), dwflags, ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHGetItemFromDataObject(pdtobj.into().abi(), dwflags, &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] -pub unsafe fn SHGetItemFromObject<'a, P0>(punk: P0, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn SHGetItemFromObject<'a, P0, T>(punk: P0) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHGetItemFromObject(punk: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHGetItemFromObject(punk.into().abi(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHGetItemFromObject(punk.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] @@ -5237,15 +5305,17 @@ where #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn SHGetKnownFolderItem<'a, P0>(rfid: &::windows::core::GUID, flags: KNOWN_FOLDER_FLAG, htoken: P0, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn SHGetKnownFolderItem<'a, P0, T>(rfid: &::windows::core::GUID, flags: KNOWN_FOLDER_FLAG, htoken: P0) -> ::windows::core::Result where P0: ::std::convert::Into, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHGetKnownFolderItem(rfid: *const ::windows::core::GUID, flags: KNOWN_FOLDER_FLAG, htoken: super::super::Foundation::HANDLE, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHGetKnownFolderItem(::core::mem::transmute(rfid), flags, htoken.into(), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHGetKnownFolderItem(::core::mem::transmute(rfid), flags, htoken.into(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -5524,15 +5594,17 @@ where #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn SHGetViewStatePropertyBag<'a, P0>(pidl: ::core::option::Option<&Common::ITEMIDLIST>, pszbagname: P0, dwflags: u32, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn SHGetViewStatePropertyBag<'a, P0, T>(pidl: ::core::option::Option<&Common::ITEMIDLIST>, pszbagname: P0, dwflags: u32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::PCWSTR>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn SHGetViewStatePropertyBag(pidl: *const Common::ITEMIDLIST, pszbagname: ::windows::core::PCWSTR, dwflags: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - SHGetViewStatePropertyBag(::core::mem::transmute(pidl), pszbagname.into(), dwflags, ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + SHGetViewStatePropertyBag(::core::mem::transmute(pidl), pszbagname.into(), dwflags, &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] @@ -7141,16 +7213,18 @@ where #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] -pub unsafe fn StgMakeUniqueName<'a, P0, P1>(pstgparent: P0, pszfilespec: P1, grfmode: u32, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> +pub unsafe fn StgMakeUniqueName<'a, P0, P1, T>(pstgparent: P0, pszfilespec: P1, grfmode: u32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::StructuredStorage::IStorage>>, P1: ::std::convert::Into<::windows::core::PCWSTR>, + T: ::windows::core::Interface, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { fn StgMakeUniqueName(pstgparent: *mut ::core::ffi::c_void, pszfilespec: ::windows::core::PCWSTR, grfmode: u32, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT; } - StgMakeUniqueName(pstgparent.into().abi(), pszfilespec.into(), grfmode, ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() + let mut result__ = ::core::option::Option::None; + StgMakeUniqueName(pstgparent.into().abi(), pszfilespec.into(), grfmode, &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[inline] @@ -20093,9 +20167,9 @@ pub struct IDragSourceHelper2_Vtbl { #[repr(transparent)] pub struct IDropTargetHelper(::windows::core::IUnknown); impl IDropTargetHelper { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn DragEnter<'a, P0, P1>(&self, hwndtarget: P0, pdataobject: P1, ppt: &super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] + pub unsafe fn DragEnter<'a, P0, P1>(&self, hwndtarget: P0, pdataobject: P1, ppt: &super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> ::windows::core::Result<()> where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDataObject>>, @@ -20105,14 +20179,14 @@ impl IDropTargetHelper { pub unsafe fn DragLeave(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DragLeave)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DragOver(&self, ppt: &super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::Result<()> { + #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] + pub unsafe fn DragOver(&self, ppt: &super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DragOver)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppt), dweffect).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Drop<'a, P0>(&self, pdataobject: P0, ppt: &super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] + pub unsafe fn Drop<'a, P0>(&self, pdataobject: P0, ppt: &super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDataObject>>, { @@ -20166,18 +20240,18 @@ unsafe impl ::windows::core::Interface for IDropTargetHelper { #[doc(hidden)] pub struct IDropTargetHelper_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub DragEnter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndtarget: super::super::Foundation::HWND, pdataobject: *mut ::core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] + pub DragEnter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndtarget: super::super::Foundation::HWND, pdataobject: *mut ::core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DragEnter: usize, pub DragLeave: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DragOver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] + pub DragOver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] DragOver: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Drop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataobject: *mut ::core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: u32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] + pub Drop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataobject: *mut ::core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Drop: usize, #[cfg(feature = "Win32_Foundation")] pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -34513,7 +34587,7 @@ impl IShellBrowser { } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] - pub unsafe fn InsertMenusSB<'a, P0>(&self, hmenushared: P0, lpmenuwidths: &mut super::super::System::Ole::OleMenuGroupWidths) -> ::windows::core::Result<()> + pub unsafe fn InsertMenusSB<'a, P0>(&self, hmenushared: P0, lpmenuwidths: &mut super::super::System::Ole::OLEMENUGROUPWIDTHS) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { @@ -34669,7 +34743,7 @@ unsafe impl ::windows::core::Interface for IShellBrowser { pub struct IShellBrowser_Vtbl { pub base__: super::super::System::Ole::IOleWindow_Vtbl, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] - pub InsertMenusSB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hmenushared: super::WindowsAndMessaging::HMENU, lpmenuwidths: *mut super::super::System::Ole::OleMenuGroupWidths) -> ::windows::core::HRESULT, + pub InsertMenusSB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hmenushared: super::WindowsAndMessaging::HMENU, lpmenuwidths: *mut super::super::System::Ole::OLEMENUGROUPWIDTHS) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging")))] InsertMenusSB: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] @@ -38756,9 +38830,11 @@ impl IShellItem { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetDisplayName)(::windows::core::Interface::as_raw(self), sigdnname, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::PWSTR>(result__) } - pub unsafe fn GetAttributes(&self, sfgaomask: u32) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] + #[cfg(feature = "Win32_System_SystemServices")] + pub unsafe fn GetAttributes(&self, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAttributes)(::windows::core::Interface::as_raw(self), sfgaomask, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAttributes)(::windows::core::Interface::as_raw(self), sfgaomask, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Compare<'a, P0>(&self, psi: P0, hint: u32) -> ::windows::core::Result where @@ -38813,7 +38889,10 @@ pub struct IShellItem_Vtbl { BindToHandler: usize, pub GetParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sigdnname: SIGDN, ppszname: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, - pub GetAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sfgaomask: u32, psfgaoattribs: *mut u32) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_SystemServices")] + pub GetAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS, psfgaoattribs: *mut super::super::System::SystemServices::SFGAO_FLAGS) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_SystemServices"))] + GetAttributes: usize, pub Compare: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void, hint: u32, piorder: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] @@ -38838,9 +38917,11 @@ impl IShellItem2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), sigdnname, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::PWSTR>(result__) } - pub unsafe fn GetAttributes(&self, sfgaomask: u32) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] + #[cfg(feature = "Win32_System_SystemServices")] + pub unsafe fn GetAttributes(&self, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetAttributes)(::windows::core::Interface::as_raw(self), sfgaomask, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetAttributes)(::windows::core::Interface::as_raw(self), sfgaomask, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Compare<'a, P0>(&self, psi: P0, hint: u32) -> ::windows::core::Result where @@ -39082,9 +39163,11 @@ impl IShellItemArray { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).GetPropertyDescriptionList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(keytype), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } - pub unsafe fn GetAttributes(&self, attribflags: SIATTRIBFLAGS, sfgaomask: u32) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_SystemServices\"`*"] + #[cfg(feature = "Win32_System_SystemServices")] + pub unsafe fn GetAttributes(&self, attribflags: SIATTRIBFLAGS, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAttributes)(::windows::core::Interface::as_raw(self), attribflags, sfgaomask, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAttributes)(::windows::core::Interface::as_raw(self), attribflags, sfgaomask, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -39150,7 +39233,10 @@ pub struct IShellItemArray_Vtbl { pub GetPropertyDescriptionList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keytype: *const PropertiesSystem::PROPERTYKEY, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] GetPropertyDescriptionList: usize, - pub GetAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attribflags: SIATTRIBFLAGS, sfgaomask: u32, psfgaoattribs: *mut u32) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_SystemServices")] + pub GetAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attribflags: SIATTRIBFLAGS, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS, psfgaoattribs: *mut super::super::System::SystemServices::SFGAO_FLAGS) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_SystemServices"))] + GetAttributes: usize, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwnumitems: *mut u32) -> ::windows::core::HRESULT, pub GetItemAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppsi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumshellitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -45887,7 +45973,7 @@ impl IStreamAsync { } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] - pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows::core::Result<()> { + pub unsafe fn LockRegion(&self, liboffset: u64, cb: u64, dwlocktype: super::super::System::Com::LOCKTYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.LockRegion)(::windows::core::Interface::as_raw(self), liboffset, cb, dwlocktype).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -45897,7 +45983,7 @@ impl IStreamAsync { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: u32) -> ::windows::core::Result<()> { + pub unsafe fn Stat(&self, pstatstg: &mut super::super::System::Com::STATSTG, grfstatflag: super::super::System::Com::STATFLAG) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Stat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstatstg), grfstatflag).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -50740,7 +50826,7 @@ impl IUniformResourceLocatorA { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InvokeCommand(&self, purlici: &mut urlinvokecommandinfoA) -> ::windows::core::Result<()> { + pub unsafe fn InvokeCommand(&self, purlici: &mut URLINVOKECOMMANDINFOA) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InvokeCommand)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(purlici)).ok() } } @@ -50786,7 +50872,7 @@ pub struct IUniformResourceLocatorA_Vtbl { pub SetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcszurl: ::windows::core::PCSTR, dwinflags: u32) -> ::windows::core::HRESULT, pub GetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszurl: *mut ::windows::core::PSTR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub InvokeCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purlici: *mut urlinvokecommandinfoA) -> ::windows::core::HRESULT, + pub InvokeCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purlici: *mut URLINVOKECOMMANDINFOA) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] InvokeCommand: usize, } @@ -50806,7 +50892,7 @@ impl IUniformResourceLocatorW { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InvokeCommand(&self, purlici: &mut urlinvokecommandinfoW) -> ::windows::core::Result<()> { + pub unsafe fn InvokeCommand(&self, purlici: &mut URLINVOKECOMMANDINFOW) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InvokeCommand)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(purlici)).ok() } } @@ -50852,7 +50938,7 @@ pub struct IUniformResourceLocatorW_Vtbl { pub SetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcszurl: ::windows::core::PCWSTR, dwinflags: u32) -> ::windows::core::HRESULT, pub GetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszurl: *mut ::windows::core::PWSTR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub InvokeCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purlici: *mut urlinvokecommandinfoW) -> ::windows::core::HRESULT, + pub InvokeCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purlici: *mut URLINVOKECOMMANDINFOW) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] InvokeCommand: usize, } @@ -55314,72 +55400,6 @@ pub const SE_ERR_SHARE: u32 = 26u32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const SFBID_PIDLCHANGED: i32 = 0i32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_BROWSABLE: i32 = 134217728i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_CANDELETE: i32 = 32i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_CANMONIKER: i32 = 4194304i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_CANRENAME: i32 = 16i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_CAPABILITYMASK: i32 = 375i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_COMPRESSED: i32 = 67108864i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_CONTENTSMASK: i32 = -2147483648i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_DISPLAYATTRMASK: i32 = 1032192i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_DROPTARGET: i32 = 256i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_ENCRYPTED: i32 = 8192i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_FILESYSANCESTOR: i32 = 268435456i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_FILESYSTEM: i32 = 1073741824i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_FOLDER: i32 = 536870912i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_GHOSTED: i32 = 32768i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_HASPROPSHEET: i32 = 64i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_HASSTORAGE: i32 = 4194304i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_HASSUBFOLDER: i32 = -2147483648i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_HIDDEN: i32 = 524288i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_ISSLOW: i32 = 16384i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_LINK: i32 = 65536i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_NEWCONTENT: i32 = 2097152i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_NONENUMERATED: i32 = 1048576i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_PKEYSFGAOMASK: i32 = -2130427904i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_PLACEHOLDER: i32 = 2048i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_READONLY: i32 = 262144i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_REMOVABLE: i32 = 33554432i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_SHARE: i32 = 131072i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_STORAGE: i32 = 8i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_STORAGEANCESTOR: i32 = 8388608i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_STORAGECAPMASK: i32 = 1891958792i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_STREAM: i32 = 4194304i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_SYSTEM: i32 = 4096i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const SFGAO_VALIDATE: i32 = 16777216i32; -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const SFVM_ADDOBJECT: u32 = 3u32; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const SFVM_GETSELECTEDOBJECTS: u32 = 9u32; @@ -58983,6 +59003,33 @@ impl ::core::fmt::Debug for FVTEXTTYPE { #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct HELP_INFO_TYPE(pub i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HELPINFO_WINDOW: HELP_INFO_TYPE = HELP_INFO_TYPE(1i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HELPINFO_MENUITEM: HELP_INFO_TYPE = HELP_INFO_TYPE(2i32); +impl ::core::marker::Copy for HELP_INFO_TYPE {} +impl ::core::clone::Clone for HELP_INFO_TYPE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for HELP_INFO_TYPE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for HELP_INFO_TYPE { + type Abi = Self; +} +impl ::core::fmt::Debug for HELP_INFO_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("HELP_INFO_TYPE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct HLBWIF_FLAGS(pub u32); #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const HLBWIF_HASFRAMEWNDINFO: HLBWIF_FLAGS = HLBWIF_FLAGS(1u32); @@ -59340,6 +59387,68 @@ impl ::core::fmt::Debug for HLQF_INFO { #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct HLSHORTCUTF(pub i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSHORTCUTF_DEFAULT: HLSHORTCUTF = HLSHORTCUTF(0i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSHORTCUTF_DONTACTUALLYCREATE: HLSHORTCUTF = HLSHORTCUTF(1i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSHORTCUTF_USEFILENAMEFROMFRIENDLYNAME: HLSHORTCUTF = HLSHORTCUTF(2i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSHORTCUTF_USEUNIQUEFILENAME: HLSHORTCUTF = HLSHORTCUTF(4i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSHORTCUTF_MAYUSEEXISTINGSHORTCUT: HLSHORTCUTF = HLSHORTCUTF(8i32); +impl ::core::marker::Copy for HLSHORTCUTF {} +impl ::core::clone::Clone for HLSHORTCUTF { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for HLSHORTCUTF { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for HLSHORTCUTF { + type Abi = Self; +} +impl ::core::fmt::Debug for HLSHORTCUTF { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("HLSHORTCUTF").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct HLSR(pub i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSR_HOME: HLSR = HLSR(0i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSR_SEARCHPAGE: HLSR = HLSR(1i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLSR_HISTORYFOLDER: HLSR = HLSR(2i32); +impl ::core::marker::Copy for HLSR {} +impl ::core::clone::Clone for HLSR { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for HLSR { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for HLSR { + type Abi = Self; +} +impl ::core::fmt::Debug for HLSR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("HLSR").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct HLTB_INFO(pub i32); #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const HLTB_DOCKEDLEFT: HLTB_INFO = HLTB_INFO(0i32); @@ -59373,6 +59482,33 @@ impl ::core::fmt::Debug for HLTB_INFO { #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct HLTRANSLATEF(pub i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLTRANSLATEF_DEFAULT: HLTRANSLATEF = HLTRANSLATEF(0i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const HLTRANSLATEF_DONTAPPLYDEFAULTPREFIX: HLTRANSLATEF = HLTRANSLATEF(1i32); +impl ::core::marker::Copy for HLTRANSLATEF {} +impl ::core::clone::Clone for HLTRANSLATEF { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for HLTRANSLATEF { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for HLTRANSLATEF { + type Abi = Self; +} +impl ::core::fmt::Debug for HLTRANSLATEF { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("HLTRANSLATEF").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct HOMEGROUPSHARINGCHOICES(pub i32); #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const HGSC_NONE: HOMEGROUPSHARINGCHOICES = HOMEGROUPSHARINGCHOICES(0i32); @@ -59464,6 +59600,66 @@ impl ::core::fmt::Debug for IESHORTCUTFLAGS { #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct IURL_INVOKECOMMAND_FLAGS(pub i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_INVOKECOMMAND_FL_ALLOW_UI: IURL_INVOKECOMMAND_FLAGS = IURL_INVOKECOMMAND_FLAGS(1i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB: IURL_INVOKECOMMAND_FLAGS = IURL_INVOKECOMMAND_FLAGS(2i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_INVOKECOMMAND_FL_DDEWAIT: IURL_INVOKECOMMAND_FLAGS = IURL_INVOKECOMMAND_FLAGS(4i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_INVOKECOMMAND_FL_ASYNCOK: IURL_INVOKECOMMAND_FLAGS = IURL_INVOKECOMMAND_FLAGS(8i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_INVOKECOMMAND_FL_LOG_USAGE: IURL_INVOKECOMMAND_FLAGS = IURL_INVOKECOMMAND_FLAGS(16i32); +impl ::core::marker::Copy for IURL_INVOKECOMMAND_FLAGS {} +impl ::core::clone::Clone for IURL_INVOKECOMMAND_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for IURL_INVOKECOMMAND_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for IURL_INVOKECOMMAND_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for IURL_INVOKECOMMAND_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IURL_INVOKECOMMAND_FLAGS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct IURL_SETURL_FLAGS(pub i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_SETURL_FL_GUESS_PROTOCOL: IURL_SETURL_FLAGS = IURL_SETURL_FLAGS(1i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const IURL_SETURL_FL_USE_DEFAULT_PROTOCOL: IURL_SETURL_FLAGS = IURL_SETURL_FLAGS(2i32); +impl ::core::marker::Copy for IURL_SETURL_FLAGS {} +impl ::core::clone::Clone for IURL_SETURL_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for IURL_SETURL_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for IURL_SETURL_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for IURL_SETURL_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IURL_SETURL_FLAGS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct KF_CATEGORY(pub i32); #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const KF_CATEGORY_VIRTUAL: KF_CATEGORY = KF_CATEGORY(1i32); @@ -59831,6 +60027,31 @@ impl ::core::fmt::Debug for MERGE_UPDATE_STATUS { #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct MIMEASSOCIATIONDIALOG_IN_FLAGS(pub i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const MIMEASSOCDLG_FL_REGISTER_ASSOC: MIMEASSOCIATIONDIALOG_IN_FLAGS = MIMEASSOCIATIONDIALOG_IN_FLAGS(1i32); +impl ::core::marker::Copy for MIMEASSOCIATIONDIALOG_IN_FLAGS {} +impl ::core::clone::Clone for MIMEASSOCIATIONDIALOG_IN_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for MIMEASSOCIATIONDIALOG_IN_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for MIMEASSOCIATIONDIALOG_IN_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for MIMEASSOCIATIONDIALOG_IN_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("MIMEASSOCIATIONDIALOG_IN_FLAGS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct MM_FLAGS(pub u32); #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const MM_ADDSEPARATOR: MM_FLAGS = MM_FLAGS(1u32); @@ -65074,6 +65295,33 @@ impl ::core::fmt::Debug for TLENUMF { #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct TRANSLATEURL_IN_FLAGS(pub i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const TRANSLATEURL_FL_GUESS_PROTOCOL: TRANSLATEURL_IN_FLAGS = TRANSLATEURL_IN_FLAGS(1i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL: TRANSLATEURL_IN_FLAGS = TRANSLATEURL_IN_FLAGS(2i32); +impl ::core::marker::Copy for TRANSLATEURL_IN_FLAGS {} +impl ::core::clone::Clone for TRANSLATEURL_IN_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for TRANSLATEURL_IN_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for TRANSLATEURL_IN_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for TRANSLATEURL_IN_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("TRANSLATEURL_IN_FLAGS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct ThumbnailStreamCacheOptions(pub i32); #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const ExtractIfNotCached: ThumbnailStreamCacheOptions = ThumbnailStreamCacheOptions(0i32); @@ -65132,6 +65380,33 @@ impl ::core::fmt::Debug for UNDOCK_REASON { #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct URLASSOCIATIONDIALOG_IN_FLAGS(pub i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const URLASSOCDLG_FL_USE_DEFAULT_NAME: URLASSOCIATIONDIALOG_IN_FLAGS = URLASSOCIATIONDIALOG_IN_FLAGS(1i32); +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +pub const URLASSOCDLG_FL_REGISTER_ASSOC: URLASSOCIATIONDIALOG_IN_FLAGS = URLASSOCIATIONDIALOG_IN_FLAGS(2i32); +impl ::core::marker::Copy for URLASSOCIATIONDIALOG_IN_FLAGS {} +impl ::core::clone::Clone for URLASSOCIATIONDIALOG_IN_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for URLASSOCIATIONDIALOG_IN_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for URLASSOCIATIONDIALOG_IN_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for URLASSOCIATIONDIALOG_IN_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("URLASSOCIATIONDIALOG_IN_FLAGS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct URLIS(pub i32); #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const URLIS_URL: URLIS = URLIS(0i32); @@ -65788,95 +66063,6 @@ impl ::core::fmt::Debug for _EXPPS { #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _HLSHORTCUTF__NOREDEF10(pub i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSHORTCUTF_DEFAULT: _HLSHORTCUTF__NOREDEF10 = _HLSHORTCUTF__NOREDEF10(0i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSHORTCUTF_DONTACTUALLYCREATE: _HLSHORTCUTF__NOREDEF10 = _HLSHORTCUTF__NOREDEF10(1i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSHORTCUTF_USEFILENAMEFROMFRIENDLYNAME: _HLSHORTCUTF__NOREDEF10 = _HLSHORTCUTF__NOREDEF10(2i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSHORTCUTF_USEUNIQUEFILENAME: _HLSHORTCUTF__NOREDEF10 = _HLSHORTCUTF__NOREDEF10(4i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSHORTCUTF_MAYUSEEXISTINGSHORTCUT: _HLSHORTCUTF__NOREDEF10 = _HLSHORTCUTF__NOREDEF10(8i32); -impl ::core::marker::Copy for _HLSHORTCUTF__NOREDEF10 {} -impl ::core::clone::Clone for _HLSHORTCUTF__NOREDEF10 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _HLSHORTCUTF__NOREDEF10 { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _HLSHORTCUTF__NOREDEF10 { - type Abi = Self; -} -impl ::core::fmt::Debug for _HLSHORTCUTF__NOREDEF10 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_HLSHORTCUTF__NOREDEF10").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _HLSR_NOREDEF10(pub i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSR_HOME: _HLSR_NOREDEF10 = _HLSR_NOREDEF10(0i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSR_SEARCHPAGE: _HLSR_NOREDEF10 = _HLSR_NOREDEF10(1i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLSR_HISTORYFOLDER: _HLSR_NOREDEF10 = _HLSR_NOREDEF10(2i32); -impl ::core::marker::Copy for _HLSR_NOREDEF10 {} -impl ::core::clone::Clone for _HLSR_NOREDEF10 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _HLSR_NOREDEF10 { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _HLSR_NOREDEF10 { - type Abi = Self; -} -impl ::core::fmt::Debug for _HLSR_NOREDEF10 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_HLSR_NOREDEF10").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct _HLTRANSLATEF_NOREDEF10(pub i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLTRANSLATEF_DEFAULT: _HLTRANSLATEF_NOREDEF10 = _HLTRANSLATEF_NOREDEF10(0i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const HLTRANSLATEF_DONTAPPLYDEFAULTPREFIX: _HLTRANSLATEF_NOREDEF10 = _HLTRANSLATEF_NOREDEF10(1i32); -impl ::core::marker::Copy for _HLTRANSLATEF_NOREDEF10 {} -impl ::core::clone::Clone for _HLTRANSLATEF_NOREDEF10 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for _HLTRANSLATEF_NOREDEF10 { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for _HLTRANSLATEF_NOREDEF10 { - type Abi = Self; -} -impl ::core::fmt::Debug for _HLTRANSLATEF_NOREDEF10 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("_HLTRANSLATEF_NOREDEF10").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct _KF_DEFINITION_FLAGS(pub i32); #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub const KFDF_LOCAL_REDIRECT_ONLY: _KF_DEFINITION_FLAGS = _KF_DEFINITION_FLAGS(2i32); @@ -66677,145 +66863,6 @@ impl ::core::fmt::Debug for _TRANSFER_SOURCE_FLAGS { f.debug_tuple("_TRANSFER_SOURCE_FLAGS").field(&self.0).finish() } } -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct iurl_invokecommand_flags(pub i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_INVOKECOMMAND_FL_ALLOW_UI: iurl_invokecommand_flags = iurl_invokecommand_flags(1i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB: iurl_invokecommand_flags = iurl_invokecommand_flags(2i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_INVOKECOMMAND_FL_DDEWAIT: iurl_invokecommand_flags = iurl_invokecommand_flags(4i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_INVOKECOMMAND_FL_ASYNCOK: iurl_invokecommand_flags = iurl_invokecommand_flags(8i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_INVOKECOMMAND_FL_LOG_USAGE: iurl_invokecommand_flags = iurl_invokecommand_flags(16i32); -impl ::core::marker::Copy for iurl_invokecommand_flags {} -impl ::core::clone::Clone for iurl_invokecommand_flags { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for iurl_invokecommand_flags { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for iurl_invokecommand_flags { - type Abi = Self; -} -impl ::core::fmt::Debug for iurl_invokecommand_flags { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("iurl_invokecommand_flags").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct iurl_seturl_flags(pub i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_SETURL_FL_GUESS_PROTOCOL: iurl_seturl_flags = iurl_seturl_flags(1i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const IURL_SETURL_FL_USE_DEFAULT_PROTOCOL: iurl_seturl_flags = iurl_seturl_flags(2i32); -impl ::core::marker::Copy for iurl_seturl_flags {} -impl ::core::clone::Clone for iurl_seturl_flags { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for iurl_seturl_flags { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for iurl_seturl_flags { - type Abi = Self; -} -impl ::core::fmt::Debug for iurl_seturl_flags { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("iurl_seturl_flags").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct mimeassociationdialog_in_flags(pub i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const MIMEASSOCDLG_FL_REGISTER_ASSOC: mimeassociationdialog_in_flags = mimeassociationdialog_in_flags(1i32); -impl ::core::marker::Copy for mimeassociationdialog_in_flags {} -impl ::core::clone::Clone for mimeassociationdialog_in_flags { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for mimeassociationdialog_in_flags { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for mimeassociationdialog_in_flags { - type Abi = Self; -} -impl ::core::fmt::Debug for mimeassociationdialog_in_flags { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("mimeassociationdialog_in_flags").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct translateurl_in_flags(pub i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const TRANSLATEURL_FL_GUESS_PROTOCOL: translateurl_in_flags = translateurl_in_flags(1i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL: translateurl_in_flags = translateurl_in_flags(2i32); -impl ::core::marker::Copy for translateurl_in_flags {} -impl ::core::clone::Clone for translateurl_in_flags { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for translateurl_in_flags { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for translateurl_in_flags { - type Abi = Self; -} -impl ::core::fmt::Debug for translateurl_in_flags { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("translateurl_in_flags").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct urlassociationdialog_in_flags(pub i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const URLASSOCDLG_FL_USE_DEFAULT_NAME: urlassociationdialog_in_flags = urlassociationdialog_in_flags(1i32); -#[doc = "*Required features: `\"Win32_UI_Shell\"`*"] -pub const URLASSOCDLG_FL_REGISTER_ASSOC: urlassociationdialog_in_flags = urlassociationdialog_in_flags(2i32); -impl ::core::marker::Copy for urlassociationdialog_in_flags {} -impl ::core::clone::Clone for urlassociationdialog_in_flags { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for urlassociationdialog_in_flags { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for urlassociationdialog_in_flags { - type Abi = Self; -} -impl ::core::fmt::Debug for urlassociationdialog_in_flags { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("urlassociationdialog_in_flags").field(&self.0).finish() - } -} #[repr(C)] #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub struct AASHELLMENUFILENAME { @@ -69209,7 +69256,7 @@ unsafe impl ::windows::core::Abi for HDROP { #[cfg(feature = "Win32_Foundation")] pub struct HELPINFO { pub cbSize: u32, - pub iContextType: i32, + pub iContextType: HELP_INFO_TYPE, pub iCtrlId: i32, pub hItemHandle: super::super::Foundation::HANDLE, pub dwContextId: usize, @@ -73417,6 +73464,88 @@ impl ::core::default::Default for TOOLBARITEM { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct URLINVOKECOMMANDINFOA { + pub dwcbSize: u32, + pub dwFlags: u32, + pub hwndParent: super::super::Foundation::HWND, + pub pcszVerb: ::windows::core::PCSTR, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for URLINVOKECOMMANDINFOA {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for URLINVOKECOMMANDINFOA { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for URLINVOKECOMMANDINFOA { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("URLINVOKECOMMANDINFOA").field("dwcbSize", &self.dwcbSize).field("dwFlags", &self.dwFlags).field("hwndParent", &self.hwndParent).field("pcszVerb", &self.pcszVerb).finish() + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for URLINVOKECOMMANDINFOA { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for URLINVOKECOMMANDINFOA { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for URLINVOKECOMMANDINFOA {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for URLINVOKECOMMANDINFOA { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct URLINVOKECOMMANDINFOW { + pub dwcbSize: u32, + pub dwFlags: u32, + pub hwndParent: super::super::Foundation::HWND, + pub pcszVerb: ::windows::core::PCWSTR, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for URLINVOKECOMMANDINFOW {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for URLINVOKECOMMANDINFOW { + fn clone(&self) -> Self { + *self + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::fmt::Debug for URLINVOKECOMMANDINFOW { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("URLINVOKECOMMANDINFOW").field("dwcbSize", &self.dwcbSize).field("dwFlags", &self.dwFlags).field("hwndParent", &self.hwndParent).field("pcszVerb", &self.pcszVerb).finish() + } +} +#[cfg(feature = "Win32_Foundation")] +unsafe impl ::windows::core::Abi for URLINVOKECOMMANDINFOW { + type Abi = Self; +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::PartialEq for URLINVOKECOMMANDINFOW { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::cmp::Eq for URLINVOKECOMMANDINFOW {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::default::Default for URLINVOKECOMMANDINFOW { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(feature = "Win32_UI_Shell_Common")] pub struct WINDOWDATA { @@ -73493,88 +73622,6 @@ impl ::core::default::Default for WTS_THUMBNAILID { pub struct _APPCONSTRAIN_REGISTRATION(pub u8); #[repr(C)] pub struct _APPSTATE_REGISTRATION(pub u8); -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct urlinvokecommandinfoA { - pub dwcbSize: u32, - pub dwFlags: u32, - pub hwndParent: super::super::Foundation::HWND, - pub pcszVerb: ::windows::core::PCSTR, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for urlinvokecommandinfoA {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for urlinvokecommandinfoA { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for urlinvokecommandinfoA { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("urlinvokecommandinfoA").field("dwcbSize", &self.dwcbSize).field("dwFlags", &self.dwFlags).field("hwndParent", &self.hwndParent).field("pcszVerb", &self.pcszVerb).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for urlinvokecommandinfoA { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for urlinvokecommandinfoA { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for urlinvokecommandinfoA {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for urlinvokecommandinfoA { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] -pub struct urlinvokecommandinfoW { - pub dwcbSize: u32, - pub dwFlags: u32, - pub hwndParent: super::super::Foundation::HWND, - pub pcszVerb: ::windows::core::PCWSTR, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for urlinvokecommandinfoW {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for urlinvokecommandinfoW { - fn clone(&self) -> Self { - *self - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::fmt::Debug for urlinvokecommandinfoW { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("urlinvokecommandinfoW").field("dwcbSize", &self.dwcbSize).field("dwFlags", &self.dwFlags).field("hwndParent", &self.hwndParent).field("pcszVerb", &self.pcszVerb).finish() - } -} -#[cfg(feature = "Win32_Foundation")] -unsafe impl ::windows::core::Abi for urlinvokecommandinfoW { - type Abi = Self; -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::PartialEq for urlinvokecommandinfoW { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::cmp::Eq for urlinvokecommandinfoW {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::default::Default for urlinvokecommandinfoW { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub type APPLET_PROC = ::core::option::Option i32>; diff --git a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs index 4ca83338e9..1ea40017a1 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs @@ -13141,6 +13141,62 @@ impl ::core::fmt::Debug for FLICKMODE { #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct GET_DANDIDATE_FLAGS(pub i32); +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const TCF_ALLOW_RECOGNITION: GET_DANDIDATE_FLAGS = GET_DANDIDATE_FLAGS(1i32); +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const TCF_FORCE_RECOGNITION: GET_DANDIDATE_FLAGS = GET_DANDIDATE_FLAGS(2i32); +impl ::core::marker::Copy for GET_DANDIDATE_FLAGS {} +impl ::core::clone::Clone for GET_DANDIDATE_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for GET_DANDIDATE_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for GET_DANDIDATE_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for GET_DANDIDATE_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("GET_DANDIDATE_FLAGS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct INK_METRIC_FLAGS(pub i32); +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const IMF_FONT_SELECTED_IN_HDC: INK_METRIC_FLAGS = INK_METRIC_FLAGS(1i32); +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const IMF_ITALIC: INK_METRIC_FLAGS = INK_METRIC_FLAGS(2i32); +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const IMF_BOLD: INK_METRIC_FLAGS = INK_METRIC_FLAGS(4i32); +impl ::core::marker::Copy for INK_METRIC_FLAGS {} +impl ::core::clone::Clone for INK_METRIC_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for INK_METRIC_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for INK_METRIC_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for INK_METRIC_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("INK_METRIC_FLAGS").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct InPlaceDirection(pub i32); #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] pub const InPlaceDirection_Auto: InPlaceDirection = InPlaceDirection(0i32); @@ -14708,6 +14764,33 @@ impl ::core::fmt::Debug for PanelType { #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct RECO_TYPE(pub i32); +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const RECO_TYPE_WSTRING: RECO_TYPE = RECO_TYPE(0i32); +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +pub const RECO_TYPE_WCHAR: RECO_TYPE = RECO_TYPE(1i32); +impl ::core::marker::Copy for RECO_TYPE {} +impl ::core::clone::Clone for RECO_TYPE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for RECO_TYPE { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for RECO_TYPE { + type Abi = Self; +} +impl ::core::fmt::Debug for RECO_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("RECO_TYPE").field(&self.0).finish() + } +} +#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct RealTimeStylusDataInterest(pub i32); #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] pub const RTSDI_AllData: RealTimeStylusDataInterest = RealTimeStylusDataInterest(-1i32); @@ -15094,89 +15177,6 @@ impl ::core::fmt::Debug for VisualState { f.debug_tuple("VisualState").field(&self.0).finish() } } -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct enumGetCandidateFlags(pub i32); -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const TCF_ALLOW_RECOGNITION: enumGetCandidateFlags = enumGetCandidateFlags(1i32); -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const TCF_FORCE_RECOGNITION: enumGetCandidateFlags = enumGetCandidateFlags(2i32); -impl ::core::marker::Copy for enumGetCandidateFlags {} -impl ::core::clone::Clone for enumGetCandidateFlags { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for enumGetCandidateFlags { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for enumGetCandidateFlags { - type Abi = Self; -} -impl ::core::fmt::Debug for enumGetCandidateFlags { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("enumGetCandidateFlags").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct enumINKMETRIC_FLAGS(pub i32); -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const IMF_FONT_SELECTED_IN_HDC: enumINKMETRIC_FLAGS = enumINKMETRIC_FLAGS(1i32); -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const IMF_ITALIC: enumINKMETRIC_FLAGS = enumINKMETRIC_FLAGS(2i32); -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const IMF_BOLD: enumINKMETRIC_FLAGS = enumINKMETRIC_FLAGS(4i32); -impl ::core::marker::Copy for enumINKMETRIC_FLAGS {} -impl ::core::clone::Clone for enumINKMETRIC_FLAGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for enumINKMETRIC_FLAGS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for enumINKMETRIC_FLAGS { - type Abi = Self; -} -impl ::core::fmt::Debug for enumINKMETRIC_FLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("enumINKMETRIC_FLAGS").field(&self.0).finish() - } -} -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct enumRECO_TYPE(pub i32); -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const RECO_TYPE_WSTRING: enumRECO_TYPE = enumRECO_TYPE(0i32); -#[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] -pub const RECO_TYPE_WCHAR: enumRECO_TYPE = enumRECO_TYPE(1i32); -impl ::core::marker::Copy for enumRECO_TYPE {} -impl ::core::clone::Clone for enumRECO_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for enumRECO_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for enumRECO_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for enumRECO_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("enumRECO_TYPE").field(&self.0).finish() - } -} #[repr(C)] #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] pub struct CHARACTER_RANGE { 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 fff00dcffd..5feb36425d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs @@ -1,26 +1,5 @@ #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] #[inline] -pub unsafe fn DestroyIndexedResults<'a, P0>(resourceuri: P0, qualifiers: ::core::option::Option<&[IndexedResourceQualifier]>) -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DestroyIndexedResults(resourceuri: ::windows::core::PCWSTR, qualifiercount: u32, qualifiers: *const IndexedResourceQualifier); - } - DestroyIndexedResults(resourceuri.into(), qualifiers.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(qualifiers.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr()))) -} -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -#[inline] -pub unsafe fn DestroyResourceIndexer(resourceindexer: *const ::core::ffi::c_void) { - #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { - fn DestroyResourceIndexer(resourceindexer: *const ::core::ffi::c_void); - } - DestroyResourceIndexer(::core::mem::transmute(resourceindexer)) -} -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -#[inline] pub unsafe fn wsprintfA<'a, P0>(param0: ::windows::core::PSTR, param1: P0) -> i32 where P0: ::std::convert::Into<::windows::core::PCSTR>, @@ -1113,6 +1092,18 @@ where } DestroyIcon(hicon.into()) } +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +#[inline] +pub unsafe fn DestroyIndexedResults<'a, P0>(resourceuri: P0, qualifiers: ::core::option::Option<&[IndexedResourceQualifier]>) +where + P0: ::std::convert::Into<::windows::core::PCWSTR>, +{ + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DestroyIndexedResults(resourceuri: ::windows::core::PCWSTR, qualifiercount: u32, qualifiers: *const IndexedResourceQualifier); + } + DestroyIndexedResults(resourceuri.into(), qualifiers.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(qualifiers.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr()))) +} #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -1126,6 +1117,15 @@ where } DestroyMenu(hmenu.into()) } +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +#[inline] +pub unsafe fn DestroyResourceIndexer(resourceindexer: *const ::core::ffi::c_void) { + #[cfg_attr(windows, link(name = "windows"))] + extern "system" { + fn DestroyResourceIndexer(resourceindexer: *const ::core::ffi::c_void); + } + DestroyResourceIndexer(::core::mem::transmute(resourceindexer)) +} #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] @@ -5561,28 +5561,8 @@ pub const DCX_EXCLUDEUPDATE: i32 = 256i32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const DC_HASDEFID: u32 = 21323u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_CREATEMENU: i32 = 4i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_CREATEWINDOW: i32 = 2i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_ENUMERATE: i32 = 64i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_HOOKCONTROL: i32 = 8i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_JOURNALPLAYBACK: i32 = 32i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_JOURNALRECORD: i32 = 16i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_READOBJECTS: i32 = 1i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_SWITCHDESKTOP: i32 = 256i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DESKTOP_WRITEOBJECTS: i32 = 128i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const DEVICE_NOTIFY_ALL_INTERFACE_CLASSES: u32 = 4u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const DF_ALLOWOTHERACCOUNTHOOK: i32 = 1i32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const DIFFERENCE: u32 = 11u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const DLGC_BUTTON: u32 = 8192u32; @@ -5935,8 +5915,6 @@ pub const EWX_QUICKRESOLVE: u32 = 32u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const EWX_SYSTEM_INITIATED: u32 = 268435456u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const FALT: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const FAPPCOMMAND_KEY: u32 = 0u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const FAPPCOMMAND_MASK: u32 = 61440u32; @@ -5945,8 +5923,6 @@ pub const FAPPCOMMAND_MOUSE: u32 = 32768u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const FAPPCOMMAND_OEM: u32 = 4096u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const FCONTROL: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const FE_FONTSMOOTHINGCLEARTYPE: u32 = 2u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const FE_FONTSMOOTHINGORIENTATIONBGR: u32 = 0u32; @@ -5969,12 +5945,6 @@ pub const FKF_HOTKEYSOUND: u32 = 16u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const FKF_INDICATOR: u32 = 32u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const FNOINVERT: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const FSHIFT: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const FVIRTKEY: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const GCF_INCLUDE_ANCESTORS: u32 = 1u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const GESTURECONFIGMAXCOUNT: u32 = 256u32; @@ -6080,10 +6050,6 @@ pub const HC_SYSMODALOFF: u32 = 5u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const HC_SYSMODALON: u32 = 4u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const HELPINFO_MENUITEM: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const HELPINFO_WINDOW: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const HELP_COMMAND: i32 = 258i32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const HELP_CONTENTS: i32 = 3i32; @@ -6708,34 +6674,6 @@ pub const OCR_ICON: u32 = 32641u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const OCR_SIZE: u32 = 32640u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODA_DRAWENTIRE: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODA_FOCUS: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODA_SELECT: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_CHECKED: u32 = 8u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_COMBOBOXEDIT: u32 = 4096u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_DEFAULT: u32 = 32u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_DISABLED: u32 = 4u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_FOCUS: u32 = 16u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_GRAYED: u32 = 2u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_HOTLIGHT: u32 = 64u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_INACTIVE: u32 = 128u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_NOACCEL: u32 = 256u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_NOFOCUSRECT: u32 = 512u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub const ODS_SELECTED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const OIC_BANG: u32 = 32515u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const OIC_ERROR: u32 = 32513u32; @@ -8002,6 +7940,67 @@ pub const __WARNING_USING_UNINIT_VAR: u32 = 6001u32; #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct ACCEL_VIRT_FLAGS(pub u8); +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +pub const FVIRTKEY: ACCEL_VIRT_FLAGS = ACCEL_VIRT_FLAGS(1u8); +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +pub const FNOINVERT: ACCEL_VIRT_FLAGS = ACCEL_VIRT_FLAGS(2u8); +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +pub const FSHIFT: ACCEL_VIRT_FLAGS = ACCEL_VIRT_FLAGS(4u8); +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +pub const FCONTROL: ACCEL_VIRT_FLAGS = ACCEL_VIRT_FLAGS(8u8); +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +pub const FALT: ACCEL_VIRT_FLAGS = ACCEL_VIRT_FLAGS(16u8); +impl ::core::marker::Copy for ACCEL_VIRT_FLAGS {} +impl ::core::clone::Clone for ACCEL_VIRT_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for ACCEL_VIRT_FLAGS { + fn default() -> Self { + Self(0) + } +} +unsafe impl ::windows::core::Abi for ACCEL_VIRT_FLAGS { + type Abi = Self; +} +impl ::core::fmt::Debug for ACCEL_VIRT_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("ACCEL_VIRT_FLAGS").field(&self.0).finish() + } +} +impl ::core::ops::BitOr for ACCEL_VIRT_FLAGS { + type Output = Self; + fn bitor(self, other: Self) -> Self { + Self(self.0 | other.0) + } +} +impl ::core::ops::BitAnd for ACCEL_VIRT_FLAGS { + type Output = Self; + fn bitand(self, other: Self) -> Self { + Self(self.0 & other.0) + } +} +impl ::core::ops::BitOrAssign for ACCEL_VIRT_FLAGS { + fn bitor_assign(&mut self, other: Self) { + self.0.bitor_assign(other.0) + } +} +impl ::core::ops::BitAndAssign for ACCEL_VIRT_FLAGS { + fn bitand_assign(&mut self, other: Self) { + self.0.bitand_assign(other.0) + } +} +impl ::core::ops::Not for ACCEL_VIRT_FLAGS { + type Output = Self; + fn not(self) -> Self { + Self(self.0.not()) + } +} +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct ANIMATE_WINDOW_FLAGS(pub u32); #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub const AW_ACTIVATE: ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS(131072u32); @@ -12089,7 +12088,7 @@ impl ::core::ops::Not for WNDCLASS_STYLES { #[repr(C)] #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] pub struct ACCEL { - pub fVirt: u8, + pub fVirt: ACCEL_VIRT_FLAGS, pub key: u16, pub cmd: u16, } @@ -14762,6 +14761,39 @@ impl ::core::default::Default for TITLEBARINFOEX { } } #[repr(C)] +#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] +pub struct TOUCHPREDICTIONPARAMETERS { + pub cbSize: u32, + pub dwLatency: u32, + pub dwSampleTime: u32, + pub bUseHWTimeStamp: u32, +} +impl ::core::marker::Copy for TOUCHPREDICTIONPARAMETERS {} +impl ::core::clone::Clone for TOUCHPREDICTIONPARAMETERS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::fmt::Debug for TOUCHPREDICTIONPARAMETERS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TOUCHPREDICTIONPARAMETERS").field("cbSize", &self.cbSize).field("dwLatency", &self.dwLatency).field("dwSampleTime", &self.dwSampleTime).field("bUseHWTimeStamp", &self.bUseHWTimeStamp).finish() + } +} +unsafe impl ::windows::core::Abi for TOUCHPREDICTIONPARAMETERS { + type Abi = Self; +} +impl ::core::cmp::PartialEq for TOUCHPREDICTIONPARAMETERS { + fn eq(&self, other: &Self) -> bool { + unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } + } +} +impl ::core::cmp::Eq for TOUCHPREDICTIONPARAMETERS {} +impl ::core::default::Default for TOUCHPREDICTIONPARAMETERS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +#[repr(C)] #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub struct TPMPARAMS { @@ -14801,39 +14833,6 @@ impl ::core::default::Default for TPMPARAMS { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] -pub struct TouchPredictionParameters { - pub cbSize: u32, - pub dwLatency: u32, - pub dwSampleTime: u32, - pub bUseHWTimeStamp: u32, -} -impl ::core::marker::Copy for TouchPredictionParameters {} -impl ::core::clone::Clone for TouchPredictionParameters { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for TouchPredictionParameters { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("TouchPredictionParameters").field("cbSize", &self.cbSize).field("dwLatency", &self.dwLatency).field("dwSampleTime", &self.dwSampleTime).field("bUseHWTimeStamp", &self.bUseHWTimeStamp).finish() - } -} -unsafe impl ::windows::core::Abi for TouchPredictionParameters { - type Abi = Self; -} -impl ::core::cmp::PartialEq for TouchPredictionParameters { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for TouchPredictionParameters {} -impl ::core::default::Default for TouchPredictionParameters { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub struct UPDATELAYEREDWINDOWINFO { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs index a21d47fde7..cef4a073b1 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs @@ -7,7 +7,7 @@ where P2: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn InitializeXamlDiagnostic(endpointname: ::windows::core::PCWSTR, pid: u32, wszdllxamldiagnostics: ::windows::core::PCWSTR, wsztapdllname: ::windows::core::PCWSTR, tapclsid: ::windows::core::GUID) -> ::windows::core::HRESULT; } InitializeXamlDiagnostic(endpointname.into(), pid, wszdllxamldiagnostics.into(), wsztapdllname.into(), ::core::mem::transmute(tapclsid)).ok() @@ -22,7 +22,7 @@ where P3: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] - extern "cdecl" { + extern "system" { fn InitializeXamlDiagnosticsEx(endpointname: ::windows::core::PCWSTR, pid: u32, wszdllxamldiagnostics: ::windows::core::PCWSTR, wsztapdllname: ::windows::core::PCWSTR, tapclsid: ::windows::core::GUID, wszinitializationdata: ::windows::core::PCWSTR) -> ::windows::core::HRESULT; } InitializeXamlDiagnosticsEx(endpointname.into(), pid, wszdllxamldiagnostics.into(), wsztapdllname.into(), ::core::mem::transmute(tapclsid), wszinitializationdata.into()).ok() diff --git a/crates/targets/aarch64_msvc/lib/windows.lib b/crates/targets/aarch64_msvc/lib/windows.lib index 6bd084f9f0..97080851b1 100644 Binary files a/crates/targets/aarch64_msvc/lib/windows.lib and b/crates/targets/aarch64_msvc/lib/windows.lib differ diff --git a/crates/targets/i686_msvc/lib/windows.lib b/crates/targets/i686_msvc/lib/windows.lib index 199ebc4496..ea54ae1243 100644 Binary files a/crates/targets/i686_msvc/lib/windows.lib and b/crates/targets/i686_msvc/lib/windows.lib differ diff --git a/crates/targets/x86_64_msvc/lib/windows.lib b/crates/targets/x86_64_msvc/lib/windows.lib index 6749ed9655..f58bd692d6 100644 Binary files a/crates/targets/x86_64_msvc/lib/windows.lib and b/crates/targets/x86_64_msvc/lib/windows.lib differ diff --git a/crates/tests/drop_target/tests/test.rs b/crates/tests/drop_target/tests/test.rs index 9f6cc873bf..9f0c87f6cf 100644 --- a/crates/tests/drop_target/tests/test.rs +++ b/crates/tests/drop_target/tests/test.rs @@ -40,23 +40,23 @@ impl IDataObject_Impl for DataObject { struct DropTarget(); impl IDropTarget_Impl for DropTarget { - fn DragEnter(&self, object: &Option, state: MODIFIERKEYS_FLAGS, point: &POINTL, effect: *mut u32) -> Result<()> { + fn DragEnter(&self, object: &Option, state: MODIFIERKEYS_FLAGS, point: &POINTL, effect: *mut DROPEFFECT) -> Result<()> { unsafe { assert_eq!(object.as_ref().unwrap().DAdvise(&FORMATETC::default(), 789, None)?, 123); assert_eq!(state, MK_MBUTTON); - assert_eq!(*effect, 741); - *effect = 147; + assert_eq!(*effect, DROPEFFECT_LINK); + *effect = DROPEFFECT_MOVE; assert_eq!(*point, POINTL { x: 10, y: 20 }); Ok(()) } } - fn DragOver(&self, _: MODIFIERKEYS_FLAGS, _: &POINTL, _: *mut u32) -> Result<()> { + fn DragOver(&self, _: MODIFIERKEYS_FLAGS, _: &POINTL, _: *mut DROPEFFECT) -> Result<()> { todo!() } fn DragLeave(&self) -> Result<()> { Ok(()) } - fn Drop(&self, _: &Option, _: MODIFIERKEYS_FLAGS, _: &POINTL, _: *mut u32) -> Result<()> { + fn Drop(&self, _: &Option, _: MODIFIERKEYS_FLAGS, _: &POINTL, _: *mut DROPEFFECT) -> Result<()> { todo!() } } @@ -69,9 +69,9 @@ fn test() -> Result<()> { let target: IDropTarget = DropTarget().into(); target.DragLeave()?; - let mut effect = 741; + let mut effect = DROPEFFECT_LINK; target.DragEnter(&object, MK_MBUTTON, POINTL { x: 10, y: 20 }, &mut effect)?; - assert_eq!(effect, 147); + assert_eq!(effect, DROPEFFECT_MOVE); Ok(()) } diff --git a/crates/tests/metadata/tests/fn_call_size.rs b/crates/tests/metadata/tests/fn_call_size.rs index 5ab1211e32..87e5aced58 100644 --- a/crates/tests/metadata/tests/fn_call_size.rs +++ b/crates/tests/metadata/tests/fn_call_size.rs @@ -11,7 +11,35 @@ fn size() { assert_eq!(struct_size(reader, "Windows.Win32.Networking.WinSock", "IN6_ADDR"), 16); assert_eq!(struct_size(reader, "Windows.Win32.Devices.BiometricFramework", "WINBIO_IDENTITY"), 76); + assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_eql"), 32); + assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_getannotation"), 28); + assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_getannotationatindex"), 36); + assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_getannotationscount"), 16); + assert_eq!(function_size(reader, "Windows.Win32.Devices.BiometricFramework", "WinBioGetCredentialState"), 84); + assert_eq!(function_size(reader, "Windows.Win32.Devices.BiometricFramework", "WinBioRemoveCredential"), 80); assert_eq!(function_size(reader, "Windows.Win32.Graphics.Gdi", "AlphaBlend"), 44); + assert_eq!(function_size(reader, "Windows.Win32.Networking.Clustering", "RegisterClusterNotifyV2"), 28); + assert_eq!(function_size(reader, "Windows.Win32.NetworkManagement.Rras", "RtmConvertIpv6AddressAndLengthToNetAddress"), 28); + assert_eq!(function_size(reader, "Windows.Win32.NetworkManagement.WiFi", "WlanSetProfileEapUserData"), 44); + assert_eq!(function_size(reader, "Windows.Win32.Security.Authentication.Identity", "AcceptSecurityContext"), 36); + assert_eq!(function_size(reader, "Windows.Win32.Security.Authentication.Identity", "InitializeSecurityContextA"), 48); + assert_eq!(function_size(reader, "Windows.Win32.Security.Authentication.Identity", "InitializeSecurityContextW"), 48); + assert_eq!(function_size(reader, "Windows.Win32.Security.Authentication.Identity", "SaslAcceptSecurityContext"), 36); + assert_eq!(function_size(reader, "Windows.Win32.Security.Authentication.Identity", "SaslInitializeSecurityContextA"), 48); + assert_eq!(function_size(reader, "Windows.Win32.Security.Authentication.Identity", "SaslInitializeSecurityContextW"), 48); + assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerBeginSession"), 68); + assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerConfigBlob2Xml"), 36); + assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerGetIdentity"), 68); + assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerGetMethodProperties"), 52); + assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerInvokeConfigUI"), 44); + assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerInvokeIdentityUI"), 64); + assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerQueryCredentialInputFields"), 40); + assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerQueryUserBlobFromCredentialInputFields"), 48); + assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfDisconnectSyncRoot"), 8); + assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfQuerySyncProviderStatus"), 12); + assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfReportProviderProgress"), 32); + assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfReportProviderProgress2"), 44); + assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfUpdateSyncProviderStatus"), 12); assert_eq!(function_size(reader, "Windows.Win32.System.Com", "GetErrorInfo"), 8); assert_eq!(function_size(reader, "Windows.Win32.System.Console", "ReadConsoleOutputA"), 20); assert_eq!(function_size(reader, "Windows.Win32.System.Console", "ReadConsoleOutputAttribute"), 20); @@ -19,28 +47,6 @@ fn size() { assert_eq!(function_size(reader, "Windows.Win32.UI.Accessibility", "ItemContainerPattern_FindItemByProperty"), 32); assert_eq!(function_size(reader, "Windows.Win32.UI.Accessibility", "TextRange_FindAttribute"), 32); assert_eq!(function_size(reader, "Windows.Win32.UI.Accessibility", "UiaRaiseAutomationPropertyChangedEvent"), 40); - assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfDisconnectSyncRoot"), 8); - assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfQuerySyncProviderStatus"), 12); - assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfReportProviderProgress"), 32); - assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfReportProviderProgress2"), 44); - assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfUpdateSyncProviderStatus"), 12); - assert_eq!(function_size(reader, "Windows.Win32.Networking.Clustering", "RegisterClusterNotifyV2"), 28); - assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerQueryUserBlobFromCredentialInputFields"), 48); - assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerQueryCredentialInputFields"), 40); - assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerInvokeIdentityUI"), 64); - assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerInvokeConfigUI"), 44); - assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerGetMethodProperties"), 52); - assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerConfigBlob2Xml"), 36); - assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerGetIdentity"), 68); - assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerBeginSession"), 68); - assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_getannotationscount"), 16); - assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_getannotationatindex"), 36); - assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_getannotation"), 28); - assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_eql"), 32); - assert_eq!(function_size(reader, "Windows.Win32.NetworkManagement.WiFi", "WlanSetProfileEapUserData"), 44); - assert_eq!(function_size(reader, "Windows.Win32.NetworkManagement.Rras", "RtmConvertIpv6AddressAndLengthToNetAddress"), 28); - assert_eq!(function_size(reader, "Windows.Win32.Devices.BiometricFramework", "WinBioRemoveCredential"), 80); - assert_eq!(function_size(reader, "Windows.Win32.Devices.BiometricFramework", "WinBioGetCredentialState"), 84); } fn function_size(reader: &metadata::reader::Reader, namespace: &str, name: &str) -> usize { diff --git a/crates/tests/win32/tests/win32.rs b/crates/tests/win32/tests/win32.rs index f8fe5e2bce..390496b506 100644 --- a/crates/tests/win32/tests/win32.rs +++ b/crates/tests/win32/tests/win32.rs @@ -3,7 +3,7 @@ use windows::{ Win32::Foundation::{CloseHandle, BOOL, HANDLE, HWND, RECT, WAIT_OBJECT_0}, Win32::Gaming::HasExpandedResources, Win32::Graphics::{Direct2D::CLSID_D2D1Shadow, Direct3D11::D3DDisassemble11Trace, Direct3D12::D3D12_DEFAULT_BLEND_FACTOR_ALPHA, Dxgi::Common::*, Dxgi::*, Hlsl::D3DCOMPILER_DLL}, - Win32::Networking::Ldap::ldapsearch, + Win32::Networking::Ldap::LDAPSearch, Win32::Security::Authorization::*, Win32::System::Com::StructuredStorage::*, Win32::System::Com::*, @@ -225,9 +225,9 @@ extern "system" fn callback_w(param0: HWND, param1: PCWSTR, param2: HANDLE) -> B #[test] fn empty_struct() { - let ldap = ldapsearch(123); + let ldap = LDAPSearch(123); assert!(ldap.0 == 123); - assert!(core::mem::size_of::() == 1); + assert!(core::mem::size_of::() == 1); assert!(UIAnimationManager == GUID::from("4C1FC63A-695C-47E8-A339-1A194BE3D0B8")); }