diff options
author | Valentin Popov <valentin@popov.link> | 2024-01-08 00:21:28 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-01-08 00:21:28 +0300 |
commit | 1b6a04ca5504955c571d1c97504fb45ea0befee4 (patch) | |
tree | 7579f518b23313e8a9748a88ab6173d5e030b227 /vendor/windows-sys/src/Windows/Win32/Devices/DeviceQuery/mod.rs | |
parent | 5ecd8cf2cba827454317368b68571df0d13d7842 (diff) | |
download | fparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.tar.xz fparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.zip |
Initial vendor packages
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/Devices/DeviceQuery/mod.rs')
-rw-r--r-- | vendor/windows-sys/src/Windows/Win32/Devices/DeviceQuery/mod.rs | 182 |
1 files changed, 182 insertions, 0 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/Devices/DeviceQuery/mod.rs b/vendor/windows-sys/src/Windows/Win32/Devices/DeviceQuery/mod.rs new file mode 100644 index 0000000..d944541 --- /dev/null +++ b/vendor/windows-sys/src/Windows/Win32/Devices/DeviceQuery/mod.rs @@ -0,0 +1,182 @@ +::windows_targets::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevCloseObjectQuery(hdevquery : HDEVQUERY) -> ()); +#[cfg(feature = "Win32_Devices_Properties")] +::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); +#[cfg(feature = "Win32_Devices_Properties")] +::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); +#[cfg(feature = "Win32_Devices_Properties")] +::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); +#[cfg(feature = "Win32_Devices_Properties")] +::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); +#[cfg(feature = "Win32_Devices_Properties")] +::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); +#[cfg(feature = "Win32_Devices_Properties")] +::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); +#[cfg(feature = "Win32_Devices_Properties")] +::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); +#[cfg(feature = "Win32_Devices_Properties")] +::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) -> ()); +#[cfg(feature = "Win32_Devices_Properties")] +::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) -> ()); +#[cfg(feature = "Win32_Devices_Properties")] +::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); +#[cfg(feature = "Win32_Devices_Properties")] +::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); +#[cfg(feature = "Win32_Devices_Properties")] +::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); +#[cfg(feature = "Win32_Devices_Properties")] +::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); +pub const DEVPROP_OPERATOR_AND_CLOSE: DEVPROP_OPERATOR = 2097152u32; +pub const DEVPROP_OPERATOR_AND_OPEN: DEVPROP_OPERATOR = 1048576u32; +pub const DEVPROP_OPERATOR_ARRAY_CONTAINS: DEVPROP_OPERATOR = 268435456u32; +pub const DEVPROP_OPERATOR_BEGINS_WITH: DEVPROP_OPERATOR = 9u32; +pub const DEVPROP_OPERATOR_BEGINS_WITH_IGNORE_CASE: DEVPROP_OPERATOR = 131081u32; +pub const DEVPROP_OPERATOR_BITWISE_AND: DEVPROP_OPERATOR = 7u32; +pub const DEVPROP_OPERATOR_BITWISE_OR: DEVPROP_OPERATOR = 8u32; +pub const DEVPROP_OPERATOR_CONTAINS: DEVPROP_OPERATOR = 11u32; +pub const DEVPROP_OPERATOR_CONTAINS_IGNORE_CASE: DEVPROP_OPERATOR = 131083u32; +pub const DEVPROP_OPERATOR_ENDS_WITH: DEVPROP_OPERATOR = 10u32; +pub const DEVPROP_OPERATOR_ENDS_WITH_IGNORE_CASE: DEVPROP_OPERATOR = 131082u32; +pub const DEVPROP_OPERATOR_EQUALS: DEVPROP_OPERATOR = 2u32; +pub const DEVPROP_OPERATOR_EQUALS_IGNORE_CASE: DEVPROP_OPERATOR = 131074u32; +pub const DEVPROP_OPERATOR_EXISTS: DEVPROP_OPERATOR = 1u32; +pub const DEVPROP_OPERATOR_GREATER_THAN: DEVPROP_OPERATOR = 3u32; +pub const DEVPROP_OPERATOR_GREATER_THAN_EQUALS: DEVPROP_OPERATOR = 5u32; +pub const DEVPROP_OPERATOR_LESS_THAN: DEVPROP_OPERATOR = 4u32; +pub const DEVPROP_OPERATOR_LESS_THAN_EQUALS: DEVPROP_OPERATOR = 6u32; +pub const DEVPROP_OPERATOR_LIST_CONTAINS: DEVPROP_OPERATOR = 4096u32; +pub const DEVPROP_OPERATOR_LIST_CONTAINS_IGNORE_CASE: DEVPROP_OPERATOR = 135168u32; +pub const DEVPROP_OPERATOR_LIST_ELEMENT_BEGINS_WITH: DEVPROP_OPERATOR = 8192u32; +pub const DEVPROP_OPERATOR_LIST_ELEMENT_BEGINS_WITH_IGNORE_CASE: DEVPROP_OPERATOR = 139264u32; +pub const DEVPROP_OPERATOR_LIST_ELEMENT_CONTAINS: DEVPROP_OPERATOR = 16384u32; +pub const DEVPROP_OPERATOR_LIST_ELEMENT_CONTAINS_IGNORE_CASE: DEVPROP_OPERATOR = 147456u32; +pub const DEVPROP_OPERATOR_LIST_ELEMENT_ENDS_WITH: DEVPROP_OPERATOR = 12288u32; +pub const DEVPROP_OPERATOR_LIST_ELEMENT_ENDS_WITH_IGNORE_CASE: DEVPROP_OPERATOR = 143360u32; +pub const DEVPROP_OPERATOR_MASK_ARRAY: DEVPROP_OPERATOR = 4026531840u32; +pub const DEVPROP_OPERATOR_MASK_EVAL: DEVPROP_OPERATOR = 4095u32; +pub const DEVPROP_OPERATOR_MASK_LIST: DEVPROP_OPERATOR = 61440u32; +pub const DEVPROP_OPERATOR_MASK_LOGICAL: DEVPROP_OPERATOR = 267386880u32; +pub const DEVPROP_OPERATOR_MASK_MODIFIER: DEVPROP_OPERATOR = 983040u32; +pub const DEVPROP_OPERATOR_MASK_NOT_LOGICAL: DEVPROP_OPERATOR = 4027580415u32; +pub const DEVPROP_OPERATOR_MODIFIER_IGNORE_CASE: DEVPROP_OPERATOR = 131072u32; +pub const DEVPROP_OPERATOR_MODIFIER_NOT: DEVPROP_OPERATOR = 65536u32; +pub const DEVPROP_OPERATOR_NONE: DEVPROP_OPERATOR = 0u32; +pub const DEVPROP_OPERATOR_NOT_CLOSE: DEVPROP_OPERATOR = 6291456u32; +pub const DEVPROP_OPERATOR_NOT_EQUALS: DEVPROP_OPERATOR = 65538u32; +pub const DEVPROP_OPERATOR_NOT_EQUALS_IGNORE_CASE: DEVPROP_OPERATOR = 196610u32; +pub const DEVPROP_OPERATOR_NOT_EXISTS: DEVPROP_OPERATOR = 65537u32; +pub const DEVPROP_OPERATOR_NOT_OPEN: DEVPROP_OPERATOR = 5242880u32; +pub const DEVPROP_OPERATOR_OR_CLOSE: DEVPROP_OPERATOR = 4194304u32; +pub const DEVPROP_OPERATOR_OR_OPEN: DEVPROP_OPERATOR = 3145728u32; +pub const DevObjectTypeAEP: DEV_OBJECT_TYPE = 5i32; +pub const DevObjectTypeAEPContainer: DEV_OBJECT_TYPE = 6i32; +pub const DevObjectTypeAEPService: DEV_OBJECT_TYPE = 10i32; +pub const DevObjectTypeDevice: DEV_OBJECT_TYPE = 3i32; +pub const DevObjectTypeDeviceContainer: DEV_OBJECT_TYPE = 2i32; +pub const DevObjectTypeDeviceContainerDisplay: DEV_OBJECT_TYPE = 9i32; +pub const DevObjectTypeDeviceInstallerClass: DEV_OBJECT_TYPE = 7i32; +pub const DevObjectTypeDeviceInterface: DEV_OBJECT_TYPE = 1i32; +pub const DevObjectTypeDeviceInterfaceClass: DEV_OBJECT_TYPE = 4i32; +pub const DevObjectTypeDeviceInterfaceDisplay: DEV_OBJECT_TYPE = 8i32; +pub const DevObjectTypeDevicePanel: DEV_OBJECT_TYPE = 11i32; +pub const DevObjectTypeUnknown: DEV_OBJECT_TYPE = 0i32; +pub const DevQueryFlagAllProperties: DEV_QUERY_FLAGS = 2i32; +pub const DevQueryFlagAsyncClose: DEV_QUERY_FLAGS = 8i32; +pub const DevQueryFlagLocalize: DEV_QUERY_FLAGS = 4i32; +pub const DevQueryFlagNone: DEV_QUERY_FLAGS = 0i32; +pub const DevQueryFlagUpdateResults: DEV_QUERY_FLAGS = 1i32; +pub const DevQueryResultAdd: DEV_QUERY_RESULT_ACTION = 1i32; +pub const DevQueryResultRemove: DEV_QUERY_RESULT_ACTION = 3i32; +pub const DevQueryResultStateChange: DEV_QUERY_RESULT_ACTION = 0i32; +pub const DevQueryResultUpdate: DEV_QUERY_RESULT_ACTION = 2i32; +pub const DevQueryStateAborted: DEV_QUERY_STATE = 2i32; +pub const DevQueryStateClosed: DEV_QUERY_STATE = 3i32; +pub const DevQueryStateEnumCompleted: DEV_QUERY_STATE = 1i32; +pub const DevQueryStateInitialized: DEV_QUERY_STATE = 0i32; +pub type DEVPROP_OPERATOR = u32; +pub type DEV_OBJECT_TYPE = i32; +pub type DEV_QUERY_FLAGS = i32; +pub type DEV_QUERY_RESULT_ACTION = i32; +pub type DEV_QUERY_STATE = i32; +#[repr(C)] +#[doc = "Required features: `\"Win32_Devices_Properties\"`"] +#[cfg(feature = "Win32_Devices_Properties")] +pub struct DEVPROP_FILTER_EXPRESSION { + pub Operator: DEVPROP_OPERATOR, + pub Property: super::Properties::DEVPROPERTY, +} +#[cfg(feature = "Win32_Devices_Properties")] +impl ::core::marker::Copy for DEVPROP_FILTER_EXPRESSION {} +#[cfg(feature = "Win32_Devices_Properties")] +impl ::core::clone::Clone for DEVPROP_FILTER_EXPRESSION { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "Required features: `\"Win32_Devices_Properties\"`"] +#[cfg(feature = "Win32_Devices_Properties")] +pub struct DEV_OBJECT { + pub ObjectType: DEV_OBJECT_TYPE, + pub pszObjectId: ::windows_sys::core::PCWSTR, + pub cPropertyCount: u32, + pub pProperties: *const super::Properties::DEVPROPERTY, +} +#[cfg(feature = "Win32_Devices_Properties")] +impl ::core::marker::Copy for DEV_OBJECT {} +#[cfg(feature = "Win32_Devices_Properties")] +impl ::core::clone::Clone for DEV_OBJECT { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "Required features: `\"Win32_Devices_Properties\"`"] +#[cfg(feature = "Win32_Devices_Properties")] +pub struct DEV_QUERY_PARAMETER { + pub Key: super::Properties::DEVPROPKEY, + pub Type: super::Properties::DEVPROPTYPE, + pub BufferSize: u32, + pub Buffer: *mut ::core::ffi::c_void, +} +#[cfg(feature = "Win32_Devices_Properties")] +impl ::core::marker::Copy for DEV_QUERY_PARAMETER {} +#[cfg(feature = "Win32_Devices_Properties")] +impl ::core::clone::Clone for DEV_QUERY_PARAMETER { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "Required features: `\"Win32_Devices_Properties\"`"] +#[cfg(feature = "Win32_Devices_Properties")] +pub struct DEV_QUERY_RESULT_ACTION_DATA { + pub Action: DEV_QUERY_RESULT_ACTION, + pub Data: DEV_QUERY_RESULT_ACTION_DATA_0, +} +#[cfg(feature = "Win32_Devices_Properties")] +impl ::core::marker::Copy for DEV_QUERY_RESULT_ACTION_DATA {} +#[cfg(feature = "Win32_Devices_Properties")] +impl ::core::clone::Clone for DEV_QUERY_RESULT_ACTION_DATA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "Required features: `\"Win32_Devices_Properties\"`"] +#[cfg(feature = "Win32_Devices_Properties")] +pub union DEV_QUERY_RESULT_ACTION_DATA_0 { + pub State: DEV_QUERY_STATE, + pub DeviceObject: DEV_OBJECT, +} +#[cfg(feature = "Win32_Devices_Properties")] +impl ::core::marker::Copy for DEV_QUERY_RESULT_ACTION_DATA_0 {} +#[cfg(feature = "Win32_Devices_Properties")] +impl ::core::clone::Clone for DEV_QUERY_RESULT_ACTION_DATA_0 { + fn clone(&self) -> Self { + *self + } +} +pub type HDEVQUERY = isize; +#[doc = "Required features: `\"Win32_Devices_Properties\"`"] +#[cfg(feature = "Win32_Devices_Properties")] +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) -> ()>; |