From 1b6a04ca5504955c571d1c97504fb45ea0befee4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 8 Jan 2024 01:21:28 +0400 Subject: Initial vendor packages Signed-off-by: Valentin Popov --- .../Windows/Win32/Devices/Enumeration/Pnp/mod.rs | 199 +++++++++++++++++++++ .../src/Windows/Win32/Devices/Enumeration/mod.rs | 2 + 2 files changed, 201 insertions(+) create mode 100644 vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs create mode 100644 vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/Enumeration/mod.rs (limited to 'vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/Enumeration') diff --git a/vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs b/vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs new file mode 100644 index 0000000..3ee0082 --- /dev/null +++ b/vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs @@ -0,0 +1,199 @@ +::windows_sys::core::link ! ( "cfgmgr32.dll""system" #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] fn SwDeviceClose ( hswdevice : HSWDEVICE ) -> ( ) ); +#[cfg(all(feature = "Win32_Devices_Properties", feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "cfgmgr32.dll""system" #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`, `\"Win32_Devices_Properties\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn SwDeviceCreate ( pszenumeratorname : :: windows_sys::core::PCWSTR , pszparentdeviceinstance : :: windows_sys::core::PCWSTR , pcreateinfo : *const SW_DEVICE_CREATE_INFO , cpropertycount : u32 , pproperties : *const super::super::Properties:: DEVPROPERTY , pcallback : SW_DEVICE_CREATE_CALLBACK , pcontext : *const ::core::ffi::c_void , phswdevice : *mut isize ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "cfgmgr32.dll""system" #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] fn SwDeviceGetLifetime ( hswdevice : HSWDEVICE , plifetime : *mut SW_DEVICE_LIFETIME ) -> :: windows_sys::core::HRESULT ); +#[cfg(feature = "Win32_Devices_Properties")] +::windows_sys::core::link ! ( "cfgmgr32.dll""system" #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`, `\"Win32_Devices_Properties\"`*"] fn SwDeviceInterfacePropertySet ( hswdevice : HSWDEVICE , pszdeviceinterfaceid : :: windows_sys::core::PCWSTR , cpropertycount : u32 , pproperties : *const super::super::Properties:: DEVPROPERTY ) -> :: windows_sys::core::HRESULT ); +#[cfg(all(feature = "Win32_Devices_Properties", feature = "Win32_Foundation"))] +::windows_sys::core::link ! ( "cfgmgr32.dll""system" #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`, `\"Win32_Devices_Properties\"`, `\"Win32_Foundation\"`*"] fn SwDeviceInterfaceRegister ( hswdevice : HSWDEVICE , pinterfaceclassguid : *const :: windows_sys::core::GUID , pszreferencestring : :: windows_sys::core::PCWSTR , cpropertycount : u32 , pproperties : *const super::super::Properties:: DEVPROPERTY , fenabled : super::super::super::Foundation:: BOOL , ppszdeviceinterfaceid : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "cfgmgr32.dll""system" #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`, `\"Win32_Foundation\"`*"] fn SwDeviceInterfaceSetState ( hswdevice : HSWDEVICE , pszdeviceinterfaceid : :: windows_sys::core::PCWSTR , fenabled : super::super::super::Foundation:: BOOL ) -> :: windows_sys::core::HRESULT ); +#[cfg(feature = "Win32_Devices_Properties")] +::windows_sys::core::link ! ( "cfgmgr32.dll""system" #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`, `\"Win32_Devices_Properties\"`*"] fn SwDevicePropertySet ( hswdevice : HSWDEVICE , cpropertycount : u32 , pproperties : *const super::super::Properties:: DEVPROPERTY ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "cfgmgr32.dll""system" #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] fn SwDeviceSetLifetime ( hswdevice : HSWDEVICE , lifetime : SW_DEVICE_LIFETIME ) -> :: windows_sys::core::HRESULT ); +::windows_sys::core::link ! ( "cfgmgr32.dll""system" #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] fn SwMemFree ( pmem : *const ::core::ffi::c_void ) -> ( ) ); +pub type IUPnPAddressFamilyControl = *mut ::core::ffi::c_void; +pub type IUPnPAsyncResult = *mut ::core::ffi::c_void; +pub type IUPnPDescriptionDocument = *mut ::core::ffi::c_void; +pub type IUPnPDescriptionDocumentCallback = *mut ::core::ffi::c_void; +pub type IUPnPDevice = *mut ::core::ffi::c_void; +pub type IUPnPDeviceControl = *mut ::core::ffi::c_void; +pub type IUPnPDeviceControlHttpHeaders = *mut ::core::ffi::c_void; +pub type IUPnPDeviceDocumentAccess = *mut ::core::ffi::c_void; +pub type IUPnPDeviceDocumentAccessEx = *mut ::core::ffi::c_void; +pub type IUPnPDeviceFinder = *mut ::core::ffi::c_void; +pub type IUPnPDeviceFinderAddCallbackWithInterface = *mut ::core::ffi::c_void; +pub type IUPnPDeviceFinderCallback = *mut ::core::ffi::c_void; +pub type IUPnPDeviceProvider = *mut ::core::ffi::c_void; +pub type IUPnPDevices = *mut ::core::ffi::c_void; +pub type IUPnPEventSink = *mut ::core::ffi::c_void; +pub type IUPnPEventSource = *mut ::core::ffi::c_void; +pub type IUPnPHttpHeaderControl = *mut ::core::ffi::c_void; +pub type IUPnPRegistrar = *mut ::core::ffi::c_void; +pub type IUPnPRemoteEndpointInfo = *mut ::core::ffi::c_void; +pub type IUPnPReregistrar = *mut ::core::ffi::c_void; +pub type IUPnPService = *mut ::core::ffi::c_void; +pub type IUPnPServiceAsync = *mut ::core::ffi::c_void; +pub type IUPnPServiceCallback = *mut ::core::ffi::c_void; +pub type IUPnPServiceDocumentAccess = *mut ::core::ffi::c_void; +pub type IUPnPServiceEnumProperty = *mut ::core::ffi::c_void; +pub type IUPnPServices = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const ADDRESS_FAMILY_VALUE_NAME: ::windows_sys::core::PCWSTR = ::windows_sys::w!("AddressFamily"); +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const FAULT_ACTION_SPECIFIC_BASE: u32 = 600u32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const FAULT_ACTION_SPECIFIC_MAX: u32 = 899u32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const FAULT_DEVICE_INTERNAL_ERROR: u32 = 501u32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const FAULT_INVALID_ACTION: u32 = 401u32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const FAULT_INVALID_ARG: u32 = 402u32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const FAULT_INVALID_SEQUENCE_NUMBER: u32 = 403u32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const FAULT_INVALID_VARIABLE: u32 = 404u32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const REMOTE_ADDRESS_VALUE_NAME: ::windows_sys::core::PCWSTR = ::windows_sys::w!("RemoteAddress"); +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_ADDRESSFAMILY_BOTH: u32 = 3u32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_ADDRESSFAMILY_IPv4: u32 = 1u32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_ADDRESSFAMILY_IPv6: u32 = 2u32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_ACTION_REQUEST_FAILED: ::windows_sys::core::HRESULT = -2147220976i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_ACTION_SPECIFIC_BASE: ::windows_sys::core::HRESULT = -2147220736i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_DEVICE_ELEMENT_EXPECTED: ::windows_sys::core::HRESULT = -2147220991i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_DEVICE_ERROR: ::windows_sys::core::HRESULT = -2147220972i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_DEVICE_NODE_INCOMPLETE: ::windows_sys::core::HRESULT = -2147220988i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_DEVICE_NOTREGISTERED: ::windows_sys::core::HRESULT = -2147180494i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_DEVICE_RUNNING: ::windows_sys::core::HRESULT = -2147180495i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_DEVICE_TIMEOUT: ::windows_sys::core::HRESULT = -2147220969i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_DUPLICATE_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2147180511i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_DUPLICATE_SERVICE_ID: ::windows_sys::core::HRESULT = -2147180510i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_ERROR_PROCESSING_RESPONSE: ::windows_sys::core::HRESULT = -2147220970i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_EVENT_SUBSCRIPTION_FAILED: ::windows_sys::core::HRESULT = -2147220223i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_ICON_ELEMENT_EXPECTED: ::windows_sys::core::HRESULT = -2147220987i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_ICON_NODE_INCOMPLETE: ::windows_sys::core::HRESULT = -2147220986i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_INVALID_ACTION: ::windows_sys::core::HRESULT = -2147220985i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_INVALID_ARGUMENTS: ::windows_sys::core::HRESULT = -2147220984i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_INVALID_DESCRIPTION: ::windows_sys::core::HRESULT = -2147180509i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_INVALID_DOCUMENT: ::windows_sys::core::HRESULT = -2147220224i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_INVALID_ICON: ::windows_sys::core::HRESULT = -2147180507i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_INVALID_ROOT_NAMESPACE: ::windows_sys::core::HRESULT = -2147180505i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_INVALID_SERVICE: ::windows_sys::core::HRESULT = -2147180508i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_INVALID_VARIABLE: ::windows_sys::core::HRESULT = -2147220973i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_INVALID_XML: ::windows_sys::core::HRESULT = -2147180506i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_OUT_OF_SYNC: ::windows_sys::core::HRESULT = -2147220983i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_PROTOCOL_ERROR: ::windows_sys::core::HRESULT = -2147220971i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_REQUIRED_ELEMENT_ERROR: ::windows_sys::core::HRESULT = -2147180512i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_ROOT_ELEMENT_EXPECTED: ::windows_sys::core::HRESULT = -2147220992i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_SERVICE_ELEMENT_EXPECTED: ::windows_sys::core::HRESULT = -2147220990i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_SERVICE_NODE_INCOMPLETE: ::windows_sys::core::HRESULT = -2147220989i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_SUFFIX_TOO_LONG: ::windows_sys::core::HRESULT = -2147180504i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_TRANSPORT_ERROR: ::windows_sys::core::HRESULT = -2147220975i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_URLBASE_PRESENT: ::windows_sys::core::HRESULT = -2147180503i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_VALUE_TOO_LONG: ::windows_sys::core::HRESULT = -2147180496i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_E_VARIABLE_VALUE_UNKNOWN: ::windows_sys::core::HRESULT = -2147220974i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPNP_SERVICE_DELAY_SCPD_AND_SUBSCRIPTION: u32 = 1u32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPnPDescriptionDocument: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1d8a9b47_3a28_4ce2_8a4b_bd34e45bceeb); +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPnPDescriptionDocumentEx: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x33fd0563_d81a_4393_83cc_0195b1da2f91); +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPnPDevice: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa32552c5_ba61_457a_b59a_a2561e125e33); +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPnPDeviceFinder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xe2085f28_feb7_404a_b8e7_e659bdeaaa02); +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPnPDeviceFinderEx: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x181b54fc_380b_4a75_b3f1_4ac45e9605b0); +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPnPDevices: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb9e84ffd_ad3c_40a4_b835_0882ebcbaaa8); +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPnPRegistrar: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x204810b9_73b2_11d4_bf42_00b0d0118b56); +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPnPRemoteEndpointInfo: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2e5e84e9_4049_4244_b728_2d24227157c7); +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPnPService: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc624ba95_fbcb_4409_8c03_8cceec533ef1); +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const UPnPServices: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc0bc4b4a_a406_4efc_932f_b8546b8100cc); +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub type SW_DEVICE_CAPABILITIES = i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const SWDeviceCapabilitiesNone: SW_DEVICE_CAPABILITIES = 0i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const SWDeviceCapabilitiesRemovable: SW_DEVICE_CAPABILITIES = 1i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const SWDeviceCapabilitiesSilentInstall: SW_DEVICE_CAPABILITIES = 2i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const SWDeviceCapabilitiesNoDisplayInUI: SW_DEVICE_CAPABILITIES = 4i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const SWDeviceCapabilitiesDriverRequired: SW_DEVICE_CAPABILITIES = 8i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub type SW_DEVICE_LIFETIME = i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const SWDeviceLifetimeHandle: SW_DEVICE_LIFETIME = 0i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const SWDeviceLifetimeParentPresent: SW_DEVICE_LIFETIME = 1i32; +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub const SWDeviceLifetimeMax: SW_DEVICE_LIFETIME = 2i32; +pub type HSWDEVICE = isize; +#[repr(C)] +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +pub struct SW_DEVICE_CREATE_INFO { + pub cbSize: u32, + pub pszInstanceId: ::windows_sys::core::PCWSTR, + pub pszzHardwareIds: ::windows_sys::core::PCWSTR, + pub pszzCompatibleIds: ::windows_sys::core::PCWSTR, + pub pContainerId: *const ::windows_sys::core::GUID, + pub CapabilityFlags: u32, + pub pszDeviceDescription: ::windows_sys::core::PCWSTR, + pub pszDeviceLocation: ::windows_sys::core::PCWSTR, + pub pSecurityDescriptor: *const super::super::super::Security::SECURITY_DESCRIPTOR, +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +impl ::core::marker::Copy for SW_DEVICE_CREATE_INFO {} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +impl ::core::clone::Clone for SW_DEVICE_CREATE_INFO { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] +pub type SW_DEVICE_CREATE_CALLBACK = ::core::option::Option ()>; diff --git a/vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/Enumeration/mod.rs b/vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/Enumeration/mod.rs new file mode 100644 index 0000000..2d55870 --- /dev/null +++ b/vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/Enumeration/mod.rs @@ -0,0 +1,2 @@ +#[cfg(feature = "Win32_Devices_Enumeration_Pnp")] +pub mod Pnp; -- cgit v1.2.3