| 1 |
::windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceClose(hswdevice : HSWDEVICE) -> ()); |
| 2 |
#[cfg(all(feature = "Win32_Devices_Properties", feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 3 |
::windows_targets::link!("cfgmgr32.dll" "system" #[doc = "Required features: `\"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 HSWDEVICE) -> ::windows_sys::core::HRESULT); |
| 4 |
::windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceGetLifetime(hswdevice : HSWDEVICE, plifetime : *mut SW_DEVICE_LIFETIME) -> ::windows_sys::core::HRESULT); |
| 5 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 6 |
::windows_targets::link!("cfgmgr32.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn SwDeviceInterfacePropertySet(hswdevice : HSWDEVICE, pszdeviceinterfaceid : ::windows_sys::core::PCWSTR, cpropertycount : u32, pproperties : *const super::super::Properties:: DEVPROPERTY) -> ::windows_sys::core::HRESULT); |
| 7 |
#[cfg(all(feature = "Win32_Devices_Properties", feature = "Win32_Foundation"))] |
| 8 |
::windows_targets::link!("cfgmgr32.dll" "system" #[doc = "Required features: `\"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); |
| 9 |
#[cfg(feature = "Win32_Foundation")] |
| 10 |
::windows_targets::link!("cfgmgr32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SwDeviceInterfaceSetState(hswdevice : HSWDEVICE, pszdeviceinterfaceid : ::windows_sys::core::PCWSTR, fenabled : super::super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT); |
| 11 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 12 |
::windows_targets::link!("cfgmgr32.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn SwDevicePropertySet(hswdevice : HSWDEVICE, cpropertycount : u32, pproperties : *const super::super::Properties:: DEVPROPERTY) -> ::windows_sys::core::HRESULT); |
| 13 |
::windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceSetLifetime(hswdevice : HSWDEVICE, lifetime : SW_DEVICE_LIFETIME) -> ::windows_sys::core::HRESULT); |
| 14 |
::windows_targets::link!("cfgmgr32.dll" "system" fn SwMemFree(pmem : *const ::core::ffi::c_void) -> ()); |
| 15 |
pub type IUPnPAddressFamilyControl = *mut ::core::ffi::c_void; |
| 16 |
pub type IUPnPAsyncResult = *mut ::core::ffi::c_void; |
| 17 |
pub type IUPnPDescriptionDocument = *mut ::core::ffi::c_void; |
| 18 |
pub type IUPnPDescriptionDocumentCallback = *mut ::core::ffi::c_void; |
| 19 |
pub type IUPnPDevice = *mut ::core::ffi::c_void; |
| 20 |
pub type IUPnPDeviceControl = *mut ::core::ffi::c_void; |
| 21 |
pub type IUPnPDeviceControlHttpHeaders = *mut ::core::ffi::c_void; |
| 22 |
pub type IUPnPDeviceDocumentAccess = *mut ::core::ffi::c_void; |
| 23 |
pub type IUPnPDeviceDocumentAccessEx = *mut ::core::ffi::c_void; |
| 24 |
pub type IUPnPDeviceFinder = *mut ::core::ffi::c_void; |
| 25 |
pub type IUPnPDeviceFinderAddCallbackWithInterface = *mut ::core::ffi::c_void; |
| 26 |
pub type IUPnPDeviceFinderCallback = *mut ::core::ffi::c_void; |
| 27 |
pub type IUPnPDeviceProvider = *mut ::core::ffi::c_void; |
| 28 |
pub type IUPnPDevices = *mut ::core::ffi::c_void; |
| 29 |
pub type IUPnPEventSink = *mut ::core::ffi::c_void; |
| 30 |
pub type IUPnPEventSource = *mut ::core::ffi::c_void; |
| 31 |
pub type IUPnPHttpHeaderControl = *mut ::core::ffi::c_void; |
| 32 |
pub type IUPnPRegistrar = *mut ::core::ffi::c_void; |
| 33 |
pub type IUPnPRemoteEndpointInfo = *mut ::core::ffi::c_void; |
| 34 |
pub type IUPnPReregistrar = *mut ::core::ffi::c_void; |
| 35 |
pub type IUPnPService = *mut ::core::ffi::c_void; |
| 36 |
pub type IUPnPServiceAsync = *mut ::core::ffi::c_void; |
| 37 |
pub type IUPnPServiceCallback = *mut ::core::ffi::c_void; |
| 38 |
pub type IUPnPServiceDocumentAccess = *mut ::core::ffi::c_void; |
| 39 |
pub type IUPnPServiceEnumProperty = *mut ::core::ffi::c_void; |
| 40 |
pub type IUPnPServices = *mut ::core::ffi::c_void; |
| 41 |
pub const ADDRESS_FAMILY_VALUE_NAME: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("AddressFamily"); |
| 42 |
pub const FAULT_ACTION_SPECIFIC_BASE: u32 = 600u32; |
| 43 |
pub const FAULT_ACTION_SPECIFIC_MAX: u32 = 899u32; |
| 44 |
pub const FAULT_DEVICE_INTERNAL_ERROR: u32 = 501u32; |
| 45 |
pub const FAULT_INVALID_ACTION: u32 = 401u32; |
| 46 |
pub const FAULT_INVALID_ARG: u32 = 402u32; |
| 47 |
pub const FAULT_INVALID_SEQUENCE_NUMBER: u32 = 403u32; |
| 48 |
pub const FAULT_INVALID_VARIABLE: u32 = 404u32; |
| 49 |
pub const REMOTE_ADDRESS_VALUE_NAME: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("RemoteAddress"); |
| 50 |
pub const SWDeviceCapabilitiesDriverRequired: SW_DEVICE_CAPABILITIES = 8i32; |
| 51 |
pub const SWDeviceCapabilitiesNoDisplayInUI: SW_DEVICE_CAPABILITIES = 4i32; |
| 52 |
pub const SWDeviceCapabilitiesNone: SW_DEVICE_CAPABILITIES = 0i32; |
| 53 |
pub const SWDeviceCapabilitiesRemovable: SW_DEVICE_CAPABILITIES = 1i32; |
| 54 |
pub const SWDeviceCapabilitiesSilentInstall: SW_DEVICE_CAPABILITIES = 2i32; |
| 55 |
pub const SWDeviceLifetimeHandle: SW_DEVICE_LIFETIME = 0i32; |
| 56 |
pub const SWDeviceLifetimeMax: SW_DEVICE_LIFETIME = 2i32; |
| 57 |
pub const SWDeviceLifetimeParentPresent: SW_DEVICE_LIFETIME = 1i32; |
| 58 |
pub const UPNP_ADDRESSFAMILY_BOTH: u32 = 3u32; |
| 59 |
pub const UPNP_ADDRESSFAMILY_IPv4: u32 = 1u32; |
| 60 |
pub const UPNP_ADDRESSFAMILY_IPv6: u32 = 2u32; |
| 61 |
pub const UPNP_E_ACTION_REQUEST_FAILED: ::windows_sys::core::HRESULT = -2147220976i32; |
| 62 |
pub const UPNP_E_ACTION_SPECIFIC_BASE: ::windows_sys::core::HRESULT = -2147220736i32; |
| 63 |
pub const UPNP_E_DEVICE_ELEMENT_EXPECTED: ::windows_sys::core::HRESULT = -2147220991i32; |
| 64 |
pub const UPNP_E_DEVICE_ERROR: ::windows_sys::core::HRESULT = -2147220972i32; |
| 65 |
pub const UPNP_E_DEVICE_NODE_INCOMPLETE: ::windows_sys::core::HRESULT = -2147220988i32; |
| 66 |
pub const UPNP_E_DEVICE_NOTREGISTERED: ::windows_sys::core::HRESULT = -2147180494i32; |
| 67 |
pub const UPNP_E_DEVICE_RUNNING: ::windows_sys::core::HRESULT = -2147180495i32; |
| 68 |
pub const UPNP_E_DEVICE_TIMEOUT: ::windows_sys::core::HRESULT = -2147220969i32; |
| 69 |
pub const UPNP_E_DUPLICATE_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2147180511i32; |
| 70 |
pub const UPNP_E_DUPLICATE_SERVICE_ID: ::windows_sys::core::HRESULT = -2147180510i32; |
| 71 |
pub const UPNP_E_ERROR_PROCESSING_RESPONSE: ::windows_sys::core::HRESULT = -2147220970i32; |
| 72 |
pub const UPNP_E_EVENT_SUBSCRIPTION_FAILED: ::windows_sys::core::HRESULT = -2147220223i32; |
| 73 |
pub const UPNP_E_ICON_ELEMENT_EXPECTED: ::windows_sys::core::HRESULT = -2147220987i32; |
| 74 |
pub const UPNP_E_ICON_NODE_INCOMPLETE: ::windows_sys::core::HRESULT = -2147220986i32; |
| 75 |
pub const UPNP_E_INVALID_ACTION: ::windows_sys::core::HRESULT = -2147220985i32; |
| 76 |
pub const UPNP_E_INVALID_ARGUMENTS: ::windows_sys::core::HRESULT = -2147220984i32; |
| 77 |
pub const UPNP_E_INVALID_DESCRIPTION: ::windows_sys::core::HRESULT = -2147180509i32; |
| 78 |
pub const UPNP_E_INVALID_DOCUMENT: ::windows_sys::core::HRESULT = -2147220224i32; |
| 79 |
pub const UPNP_E_INVALID_ICON: ::windows_sys::core::HRESULT = -2147180507i32; |
| 80 |
pub const UPNP_E_INVALID_ROOT_NAMESPACE: ::windows_sys::core::HRESULT = -2147180505i32; |
| 81 |
pub const UPNP_E_INVALID_SERVICE: ::windows_sys::core::HRESULT = -2147180508i32; |
| 82 |
pub const UPNP_E_INVALID_VARIABLE: ::windows_sys::core::HRESULT = -2147220973i32; |
| 83 |
pub const UPNP_E_INVALID_XML: ::windows_sys::core::HRESULT = -2147180506i32; |
| 84 |
pub const UPNP_E_OUT_OF_SYNC: ::windows_sys::core::HRESULT = -2147220983i32; |
| 85 |
pub const UPNP_E_PROTOCOL_ERROR: ::windows_sys::core::HRESULT = -2147220971i32; |
| 86 |
pub const UPNP_E_REQUIRED_ELEMENT_ERROR: ::windows_sys::core::HRESULT = -2147180512i32; |
| 87 |
pub const UPNP_E_ROOT_ELEMENT_EXPECTED: ::windows_sys::core::HRESULT = -2147220992i32; |
| 88 |
pub const UPNP_E_SERVICE_ELEMENT_EXPECTED: ::windows_sys::core::HRESULT = -2147220990i32; |
| 89 |
pub const UPNP_E_SERVICE_NODE_INCOMPLETE: ::windows_sys::core::HRESULT = -2147220989i32; |
| 90 |
pub const UPNP_E_SUFFIX_TOO_LONG: ::windows_sys::core::HRESULT = -2147180504i32; |
| 91 |
pub const UPNP_E_TRANSPORT_ERROR: ::windows_sys::core::HRESULT = -2147220975i32; |
| 92 |
pub const UPNP_E_URLBASE_PRESENT: ::windows_sys::core::HRESULT = -2147180503i32; |
| 93 |
pub const UPNP_E_VALUE_TOO_LONG: ::windows_sys::core::HRESULT = -2147180496i32; |
| 94 |
pub const UPNP_E_VARIABLE_VALUE_UNKNOWN: ::windows_sys::core::HRESULT = -2147220974i32; |
| 95 |
pub const UPNP_SERVICE_DELAY_SCPD_AND_SUBSCRIPTION: u32 = 1u32; |
| 96 |
pub const UPnPDescriptionDocument: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1d8a9b47_3a28_4ce2_8a4b_bd34e45bceeb); |
| 97 |
pub const UPnPDescriptionDocumentEx: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x33fd0563_d81a_4393_83cc_0195b1da2f91); |
| 98 |
pub const UPnPDevice: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa32552c5_ba61_457a_b59a_a2561e125e33); |
| 99 |
pub const UPnPDeviceFinder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xe2085f28_feb7_404a_b8e7_e659bdeaaa02); |
| 100 |
pub const UPnPDeviceFinderEx: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x181b54fc_380b_4a75_b3f1_4ac45e9605b0); |
| 101 |
pub const UPnPDevices: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb9e84ffd_ad3c_40a4_b835_0882ebcbaaa8); |
| 102 |
pub const UPnPRegistrar: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x204810b9_73b2_11d4_bf42_00b0d0118b56); |
| 103 |
pub const UPnPRemoteEndpointInfo: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2e5e84e9_4049_4244_b728_2d24227157c7); |
| 104 |
pub const UPnPService: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc624ba95_fbcb_4409_8c03_8cceec533ef1); |
| 105 |
pub const UPnPServices: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc0bc4b4a_a406_4efc_932f_b8546b8100cc); |
| 106 |
pub type SW_DEVICE_CAPABILITIES = i32; |
| 107 |
pub type SW_DEVICE_LIFETIME = i32; |
| 108 |
pub type HSWDEVICE = isize; |
| 109 |
#[repr(C)] |
| 110 |
#[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] |
| 111 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 112 |
pub struct SW_DEVICE_CREATE_INFO { |
| 113 |
pub cbSize: u32, |
| 114 |
pub pszInstanceId: ::windows_sys::core::PCWSTR, |
| 115 |
pub pszzHardwareIds: ::windows_sys::core::PCWSTR, |
| 116 |
pub pszzCompatibleIds: ::windows_sys::core::PCWSTR, |
| 117 |
pub pContainerId: *const ::windows_sys::core::GUID, |
| 118 |
pub CapabilityFlags: u32, |
| 119 |
pub pszDeviceDescription: ::windows_sys::core::PCWSTR, |
| 120 |
pub pszDeviceLocation: ::windows_sys::core::PCWSTR, |
| 121 |
pub pSecurityDescriptor: *const super::super::super::Security::SECURITY_DESCRIPTOR, |
| 122 |
} |
| 123 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 124 |
impl ::core::marker::Copy for SW_DEVICE_CREATE_INFO {} |
| 125 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 126 |
impl ::core::clone::Clone for SW_DEVICE_CREATE_INFO { |
| 127 |
fn clone(&self) -> Self { |
| 128 |
*self |
| 129 |
} |
| 130 |
} |
| 131 |
pub type SW_DEVICE_CREATE_CALLBACK = ::core::option::Option<unsafe extern "system" fn(hswdevice: HSWDEVICE, createresult: ::windows_sys::core::HRESULT, pcontext: *const ::core::ffi::c_void, pszdeviceinstanceid: ::windows_sys::core::PCWSTR) -> ()>; |