| 1 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevCloseObjectQuery(hdevquery : HDEVQUERY) -> ()); |
| 2 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 3 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn DevCreateObjectQuery(objecttype : DEV_OBJECT_TYPE, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const ::core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> ::windows_sys::core::HRESULT); |
| 4 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 5 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-1.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn DevCreateObjectQueryEx(objecttype : DEV_OBJECT_TYPE, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, cextendedparametercount : u32, pextendedparameters : *const DEV_QUERY_PARAMETER, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const ::core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> ::windows_sys::core::HRESULT); |
| 6 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 7 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn DevCreateObjectQueryFromId(objecttype : DEV_OBJECT_TYPE, pszobjectid : ::windows_sys::core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const ::core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> ::windows_sys::core::HRESULT); |
| 8 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 9 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-1.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn DevCreateObjectQueryFromIdEx(objecttype : DEV_OBJECT_TYPE, pszobjectid : ::windows_sys::core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, cextendedparametercount : u32, pextendedparameters : *const DEV_QUERY_PARAMETER, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const ::core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> ::windows_sys::core::HRESULT); |
| 10 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 11 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn DevCreateObjectQueryFromIds(objecttype : DEV_OBJECT_TYPE, pszzobjectids : ::windows_sys::core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const ::core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> ::windows_sys::core::HRESULT); |
| 12 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 13 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-1.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn DevCreateObjectQueryFromIdsEx(objecttype : DEV_OBJECT_TYPE, pszzobjectids : ::windows_sys::core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, cextendedparametercount : u32, pextendedparameters : *const DEV_QUERY_PARAMETER, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const ::core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> ::windows_sys::core::HRESULT); |
| 14 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 15 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn DevFindProperty(pkey : *const super::Properties:: DEVPROPKEY, store : super::Properties:: DEVPROPSTORE, pszlocalename : ::windows_sys::core::PCWSTR, cproperties : u32, pproperties : *const super::Properties:: DEVPROPERTY) -> *mut super::Properties:: DEVPROPERTY); |
| 16 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 17 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn DevFreeObjectProperties(cpropertycount : u32, pproperties : *const super::Properties:: DEVPROPERTY) -> ()); |
| 18 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 19 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn DevFreeObjects(cobjectcount : u32, pobjects : *const DEV_OBJECT) -> ()); |
| 20 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 21 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn DevGetObjectProperties(objecttype : DEV_OBJECT_TYPE, pszobjectid : ::windows_sys::core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, pcpropertycount : *mut u32, ppproperties : *mut *mut super::Properties:: DEVPROPERTY) -> ::windows_sys::core::HRESULT); |
| 22 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 23 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-1.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn DevGetObjectPropertiesEx(objecttype : DEV_OBJECT_TYPE, pszobjectid : ::windows_sys::core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cextendedparametercount : u32, pextendedparameters : *const DEV_QUERY_PARAMETER, pcpropertycount : *mut u32, ppproperties : *mut *mut super::Properties:: DEVPROPERTY) -> ::windows_sys::core::HRESULT); |
| 24 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 25 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn DevGetObjects(objecttype : DEV_OBJECT_TYPE, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, pcobjectcount : *mut u32, ppobjects : *mut *mut DEV_OBJECT) -> ::windows_sys::core::HRESULT); |
| 26 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 27 |
::windows_targets::link!("api-ms-win-devices-query-l1-1-1.dll" "system" #[doc = "Required features: `\"Win32_Devices_Properties\"`"] fn DevGetObjectsEx(objecttype : DEV_OBJECT_TYPE, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, cextendedparametercount : u32, pextendedparameters : *const DEV_QUERY_PARAMETER, pcobjectcount : *mut u32, ppobjects : *mut *mut DEV_OBJECT) -> ::windows_sys::core::HRESULT); |
| 28 |
pub const DEVPROP_OPERATOR_AND_CLOSE: DEVPROP_OPERATOR = 2097152u32; |
| 29 |
pub const DEVPROP_OPERATOR_AND_OPEN: DEVPROP_OPERATOR = 1048576u32; |
| 30 |
pub const DEVPROP_OPERATOR_ARRAY_CONTAINS: DEVPROP_OPERATOR = 268435456u32; |
| 31 |
pub const DEVPROP_OPERATOR_BEGINS_WITH: DEVPROP_OPERATOR = 9u32; |
| 32 |
pub const DEVPROP_OPERATOR_BEGINS_WITH_IGNORE_CASE: DEVPROP_OPERATOR = 131081u32; |
| 33 |
pub const DEVPROP_OPERATOR_BITWISE_AND: DEVPROP_OPERATOR = 7u32; |
| 34 |
pub const DEVPROP_OPERATOR_BITWISE_OR: DEVPROP_OPERATOR = 8u32; |
| 35 |
pub const DEVPROP_OPERATOR_CONTAINS: DEVPROP_OPERATOR = 11u32; |
| 36 |
pub const DEVPROP_OPERATOR_CONTAINS_IGNORE_CASE: DEVPROP_OPERATOR = 131083u32; |
| 37 |
pub const DEVPROP_OPERATOR_ENDS_WITH: DEVPROP_OPERATOR = 10u32; |
| 38 |
pub const DEVPROP_OPERATOR_ENDS_WITH_IGNORE_CASE: DEVPROP_OPERATOR = 131082u32; |
| 39 |
pub const DEVPROP_OPERATOR_EQUALS: DEVPROP_OPERATOR = 2u32; |
| 40 |
pub const DEVPROP_OPERATOR_EQUALS_IGNORE_CASE: DEVPROP_OPERATOR = 131074u32; |
| 41 |
pub const DEVPROP_OPERATOR_EXISTS: DEVPROP_OPERATOR = 1u32; |
| 42 |
pub const DEVPROP_OPERATOR_GREATER_THAN: DEVPROP_OPERATOR = 3u32; |
| 43 |
pub const DEVPROP_OPERATOR_GREATER_THAN_EQUALS: DEVPROP_OPERATOR = 5u32; |
| 44 |
pub const DEVPROP_OPERATOR_LESS_THAN: DEVPROP_OPERATOR = 4u32; |
| 45 |
pub const DEVPROP_OPERATOR_LESS_THAN_EQUALS: DEVPROP_OPERATOR = 6u32; |
| 46 |
pub const DEVPROP_OPERATOR_LIST_CONTAINS: DEVPROP_OPERATOR = 4096u32; |
| 47 |
pub const DEVPROP_OPERATOR_LIST_CONTAINS_IGNORE_CASE: DEVPROP_OPERATOR = 135168u32; |
| 48 |
pub const DEVPROP_OPERATOR_LIST_ELEMENT_BEGINS_WITH: DEVPROP_OPERATOR = 8192u32; |
| 49 |
pub const DEVPROP_OPERATOR_LIST_ELEMENT_BEGINS_WITH_IGNORE_CASE: DEVPROP_OPERATOR = 139264u32; |
| 50 |
pub const DEVPROP_OPERATOR_LIST_ELEMENT_CONTAINS: DEVPROP_OPERATOR = 16384u32; |
| 51 |
pub const DEVPROP_OPERATOR_LIST_ELEMENT_CONTAINS_IGNORE_CASE: DEVPROP_OPERATOR = 147456u32; |
| 52 |
pub const DEVPROP_OPERATOR_LIST_ELEMENT_ENDS_WITH: DEVPROP_OPERATOR = 12288u32; |
| 53 |
pub const DEVPROP_OPERATOR_LIST_ELEMENT_ENDS_WITH_IGNORE_CASE: DEVPROP_OPERATOR = 143360u32; |
| 54 |
pub const DEVPROP_OPERATOR_MASK_ARRAY: DEVPROP_OPERATOR = 4026531840u32; |
| 55 |
pub const DEVPROP_OPERATOR_MASK_EVAL: DEVPROP_OPERATOR = 4095u32; |
| 56 |
pub const DEVPROP_OPERATOR_MASK_LIST: DEVPROP_OPERATOR = 61440u32; |
| 57 |
pub const DEVPROP_OPERATOR_MASK_LOGICAL: DEVPROP_OPERATOR = 267386880u32; |
| 58 |
pub const DEVPROP_OPERATOR_MASK_MODIFIER: DEVPROP_OPERATOR = 983040u32; |
| 59 |
pub const DEVPROP_OPERATOR_MASK_NOT_LOGICAL: DEVPROP_OPERATOR = 4027580415u32; |
| 60 |
pub const DEVPROP_OPERATOR_MODIFIER_IGNORE_CASE: DEVPROP_OPERATOR = 131072u32; |
| 61 |
pub const DEVPROP_OPERATOR_MODIFIER_NOT: DEVPROP_OPERATOR = 65536u32; |
| 62 |
pub const DEVPROP_OPERATOR_NONE: DEVPROP_OPERATOR = 0u32; |
| 63 |
pub const DEVPROP_OPERATOR_NOT_CLOSE: DEVPROP_OPERATOR = 6291456u32; |
| 64 |
pub const DEVPROP_OPERATOR_NOT_EQUALS: DEVPROP_OPERATOR = 65538u32; |
| 65 |
pub const DEVPROP_OPERATOR_NOT_EQUALS_IGNORE_CASE: DEVPROP_OPERATOR = 196610u32; |
| 66 |
pub const DEVPROP_OPERATOR_NOT_EXISTS: DEVPROP_OPERATOR = 65537u32; |
| 67 |
pub const DEVPROP_OPERATOR_NOT_OPEN: DEVPROP_OPERATOR = 5242880u32; |
| 68 |
pub const DEVPROP_OPERATOR_OR_CLOSE: DEVPROP_OPERATOR = 4194304u32; |
| 69 |
pub const DEVPROP_OPERATOR_OR_OPEN: DEVPROP_OPERATOR = 3145728u32; |
| 70 |
pub const DevObjectTypeAEP: DEV_OBJECT_TYPE = 5i32; |
| 71 |
pub const DevObjectTypeAEPContainer: DEV_OBJECT_TYPE = 6i32; |
| 72 |
pub const DevObjectTypeAEPService: DEV_OBJECT_TYPE = 10i32; |
| 73 |
pub const DevObjectTypeDevice: DEV_OBJECT_TYPE = 3i32; |
| 74 |
pub const DevObjectTypeDeviceContainer: DEV_OBJECT_TYPE = 2i32; |
| 75 |
pub const DevObjectTypeDeviceContainerDisplay: DEV_OBJECT_TYPE = 9i32; |
| 76 |
pub const DevObjectTypeDeviceInstallerClass: DEV_OBJECT_TYPE = 7i32; |
| 77 |
pub const DevObjectTypeDeviceInterface: DEV_OBJECT_TYPE = 1i32; |
| 78 |
pub const DevObjectTypeDeviceInterfaceClass: DEV_OBJECT_TYPE = 4i32; |
| 79 |
pub const DevObjectTypeDeviceInterfaceDisplay: DEV_OBJECT_TYPE = 8i32; |
| 80 |
pub const DevObjectTypeDevicePanel: DEV_OBJECT_TYPE = 11i32; |
| 81 |
pub const DevObjectTypeUnknown: DEV_OBJECT_TYPE = 0i32; |
| 82 |
pub const DevQueryFlagAllProperties: DEV_QUERY_FLAGS = 2i32; |
| 83 |
pub const DevQueryFlagAsyncClose: DEV_QUERY_FLAGS = 8i32; |
| 84 |
pub const DevQueryFlagLocalize: DEV_QUERY_FLAGS = 4i32; |
| 85 |
pub const DevQueryFlagNone: DEV_QUERY_FLAGS = 0i32; |
| 86 |
pub const DevQueryFlagUpdateResults: DEV_QUERY_FLAGS = 1i32; |
| 87 |
pub const DevQueryResultAdd: DEV_QUERY_RESULT_ACTION = 1i32; |
| 88 |
pub const DevQueryResultRemove: DEV_QUERY_RESULT_ACTION = 3i32; |
| 89 |
pub const DevQueryResultStateChange: DEV_QUERY_RESULT_ACTION = 0i32; |
| 90 |
pub const DevQueryResultUpdate: DEV_QUERY_RESULT_ACTION = 2i32; |
| 91 |
pub const DevQueryStateAborted: DEV_QUERY_STATE = 2i32; |
| 92 |
pub const DevQueryStateClosed: DEV_QUERY_STATE = 3i32; |
| 93 |
pub const DevQueryStateEnumCompleted: DEV_QUERY_STATE = 1i32; |
| 94 |
pub const DevQueryStateInitialized: DEV_QUERY_STATE = 0i32; |
| 95 |
pub type DEVPROP_OPERATOR = u32; |
| 96 |
pub type DEV_OBJECT_TYPE = i32; |
| 97 |
pub type DEV_QUERY_FLAGS = i32; |
| 98 |
pub type DEV_QUERY_RESULT_ACTION = i32; |
| 99 |
pub type DEV_QUERY_STATE = i32; |
| 100 |
#[repr(C)] |
| 101 |
#[doc = "Required features: `\"Win32_Devices_Properties\"`"] |
| 102 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 103 |
pub struct DEVPROP_FILTER_EXPRESSION { |
| 104 |
pub Operator: DEVPROP_OPERATOR, |
| 105 |
pub Property: super::Properties::DEVPROPERTY, |
| 106 |
} |
| 107 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 108 |
impl ::core::marker::Copy for DEVPROP_FILTER_EXPRESSION {} |
| 109 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 110 |
impl ::core::clone::Clone for DEVPROP_FILTER_EXPRESSION { |
| 111 |
fn clone(&self) -> Self { |
| 112 |
*self |
| 113 |
} |
| 114 |
} |
| 115 |
#[repr(C)] |
| 116 |
#[doc = "Required features: `\"Win32_Devices_Properties\"`"] |
| 117 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 118 |
pub struct DEV_OBJECT { |
| 119 |
pub ObjectType: DEV_OBJECT_TYPE, |
| 120 |
pub pszObjectId: ::windows_sys::core::PCWSTR, |
| 121 |
pub cPropertyCount: u32, |
| 122 |
pub pProperties: *const super::Properties::DEVPROPERTY, |
| 123 |
} |
| 124 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 125 |
impl ::core::marker::Copy for DEV_OBJECT {} |
| 126 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 127 |
impl ::core::clone::Clone for DEV_OBJECT { |
| 128 |
fn clone(&self) -> Self { |
| 129 |
*self |
| 130 |
} |
| 131 |
} |
| 132 |
#[repr(C)] |
| 133 |
#[doc = "Required features: `\"Win32_Devices_Properties\"`"] |
| 134 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 135 |
pub struct DEV_QUERY_PARAMETER { |
| 136 |
pub Key: super::Properties::DEVPROPKEY, |
| 137 |
pub Type: super::Properties::DEVPROPTYPE, |
| 138 |
pub BufferSize: u32, |
| 139 |
pub Buffer: *mut ::core::ffi::c_void, |
| 140 |
} |
| 141 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 142 |
impl ::core::marker::Copy for DEV_QUERY_PARAMETER {} |
| 143 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 144 |
impl ::core::clone::Clone for DEV_QUERY_PARAMETER { |
| 145 |
fn clone(&self) -> Self { |
| 146 |
*self |
| 147 |
} |
| 148 |
} |
| 149 |
#[repr(C)] |
| 150 |
#[doc = "Required features: `\"Win32_Devices_Properties\"`"] |
| 151 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 152 |
pub struct DEV_QUERY_RESULT_ACTION_DATA { |
| 153 |
pub Action: DEV_QUERY_RESULT_ACTION, |
| 154 |
pub Data: DEV_QUERY_RESULT_ACTION_DATA_0, |
| 155 |
} |
| 156 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 157 |
impl ::core::marker::Copy for DEV_QUERY_RESULT_ACTION_DATA {} |
| 158 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 159 |
impl ::core::clone::Clone for DEV_QUERY_RESULT_ACTION_DATA { |
| 160 |
fn clone(&self) -> Self { |
| 161 |
*self |
| 162 |
} |
| 163 |
} |
| 164 |
#[repr(C)] |
| 165 |
#[doc = "Required features: `\"Win32_Devices_Properties\"`"] |
| 166 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 167 |
pub union DEV_QUERY_RESULT_ACTION_DATA_0 { |
| 168 |
pub State: DEV_QUERY_STATE, |
| 169 |
pub DeviceObject: DEV_OBJECT, |
| 170 |
} |
| 171 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 172 |
impl ::core::marker::Copy for DEV_QUERY_RESULT_ACTION_DATA_0 {} |
| 173 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 174 |
impl ::core::clone::Clone for DEV_QUERY_RESULT_ACTION_DATA_0 { |
| 175 |
fn clone(&self) -> Self { |
| 176 |
*self |
| 177 |
} |
| 178 |
} |
| 179 |
pub type HDEVQUERY = isize; |
| 180 |
#[doc = "Required features: `\"Win32_Devices_Properties\"`"] |
| 181 |
#[cfg(feature = "Win32_Devices_Properties")] |
| 182 |
pub type PDEV_QUERY_RESULT_CALLBACK = ::core::option::Option<unsafe extern "system" fn(hdevquery: HDEVQUERY, pcontext: *const ::core::ffi::c_void, pactiondata: *const DEV_QUERY_RESULT_ACTION_DATA) -> ()>; |