build(ariadne): vendor clap
This commit was merged in pull request #30.
This commit is contained in:
1 parent
e6af135702
commit
8855b6d379
681 files changed
+400416
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
pub const DEVPKEY_Bluetooth_ClassOfDevice: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 10 };
|
||||
pub const DEVPKEY_Bluetooth_ClassOfDevice_Deprecated: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 4 };
|
||||
pub const DEVPKEY_Bluetooth_DeviceAddress: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 1 };
|
||||
pub const DEVPKEY_Bluetooth_DeviceFlags: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 3 };
|
||||
pub const DEVPKEY_Bluetooth_DeviceManufacturer: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 4 };
|
||||
pub const DEVPKEY_Bluetooth_DeviceModelNumber: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 5 };
|
||||
pub const DEVPKEY_Bluetooth_DevicePID: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 8 };
|
||||
pub const DEVPKEY_Bluetooth_DeviceProductVersion: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 9 };
|
||||
pub const DEVPKEY_Bluetooth_DeviceVID: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 7 };
|
||||
pub const DEVPKEY_Bluetooth_DeviceVIDSource: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 6 };
|
||||
pub const DEVPKEY_Bluetooth_LastConnectedTime: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 11 };
|
||||
pub const DEVPKEY_Bluetooth_LastConnectedTime_Deprecated: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 5 };
|
||||
pub const DEVPKEY_Bluetooth_LastSeenTime: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 12 };
|
||||
pub const DEVPKEY_Bluetooth_ServiceGUID: super::super::super::Win32::Foundation::DEVPROPKEY = super::super::super::Win32::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x2bd67d8b_8beb_48d5_87e0_6cda3428040a), pid: 2 };
|
||||
pub const GUID_BTHDDI_PROFILE_DRIVER_INTERFACE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x94a59aa8_4383_4286_aa4f_34a160f40004);
|
||||
pub const GUID_BTHDDI_SDP_NODE_INTERFACE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x81a7fdf3_86c1_4be8_a8c8_2a6d188b4177);
|
||||
pub const GUID_BTHDDI_SDP_PARSE_INTERFACE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4e719439_9cf1_4bab_ac1d_3279865743d2);
|
||||
pub const GUID_BTH_DEVICE_INTERFACE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x00f40965_e89d_4487_9890_87c3abb211f4);
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
windows_link::link!("vhfum.dll" "system" fn VhfAsyncOperationComplete(vhfoperationhandle : *const core::ffi::c_void, completionstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("vhfum.dll" "system" fn VhfCreate(vhfconfig : *const VHF_CONFIG, vhfhandle : *mut *mut core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("vhfum.dll" "system" fn VhfDelete(vhfhandle : *const core::ffi::c_void, wait : bool));
|
||||
windows_link::link!("vhfum.dll" "system" fn VhfReadReportSubmit(vhfhandle : *const core::ffi::c_void, hidtransferpacket : *const HID_XFER_PACKET) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("vhfum.dll" "system" fn VhfStart(vhfhandle : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
pub type EVT_VHF_ASYNC_OPERATION = Option<unsafe extern "system" fn(vhfclientcontext: *const core::ffi::c_void, vhfoperationhandle: *const core::ffi::c_void, vhfoperationcontext: *const core::ffi::c_void, hidtransferpacket: *const HID_XFER_PACKET)>;
|
||||
pub type EVT_VHF_CLEANUP = Option<unsafe extern "system" fn(vhfclientcontext: *const core::ffi::c_void)>;
|
||||
pub type EVT_VHF_READY_FOR_NEXT_READ_REPORT = Option<unsafe extern "system" fn(vhfclientcontext: *const core::ffi::c_void)>;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HID_XFER_PACKET {
|
||||
pub reportBuffer: *mut u8,
|
||||
pub reportBufferLen: u32,
|
||||
pub reportId: u8,
|
||||
}
|
||||
impl Default for HID_XFER_PACKET {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct VHF_CONFIG {
|
||||
pub Size: u32,
|
||||
pub VhfClientContext: *mut core::ffi::c_void,
|
||||
pub OperationContextSize: u32,
|
||||
pub FileHandle: super::super::super::Win32::Foundation::HANDLE,
|
||||
pub VendorID: u16,
|
||||
pub ProductID: u16,
|
||||
pub VersionNumber: u16,
|
||||
pub ContainerID: windows_sys::core::GUID,
|
||||
pub InstanceIDLength: u16,
|
||||
pub InstanceID: windows_sys::core::PWSTR,
|
||||
pub ReportDescriptorLength: u16,
|
||||
pub ReportDescriptor: *mut u8,
|
||||
pub EvtVhfReadyForNextReadReport: EVT_VHF_READY_FOR_NEXT_READ_REPORT,
|
||||
pub EvtVhfAsyncOperationGetFeature: EVT_VHF_ASYNC_OPERATION,
|
||||
pub EvtVhfAsyncOperationSetFeature: EVT_VHF_ASYNC_OPERATION,
|
||||
pub EvtVhfAsyncOperationWriteReport: EVT_VHF_ASYNC_OPERATION,
|
||||
pub EvtVhfAsyncOperationGetInputReport: EVT_VHF_ASYNC_OPERATION,
|
||||
pub EvtVhfCleanup: EVT_VHF_CLEANUP,
|
||||
pub HardwareIDsLength: u16,
|
||||
pub HardwareIDs: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for VHF_CONFIG {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
#[cfg(feature = "Wdk_Devices_Bluetooth")]
|
||||
pub mod Bluetooth;
|
||||
#[cfg(feature = "Wdk_Devices_HumanInterfaceDevice")]
|
||||
pub mod HumanInterfaceDevice;
|
||||
File diff suppressed because it is too large.
Load diff
+11534
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,2 @@
|
||||
#[cfg(feature = "Wdk_Graphics_Direct3D")]
|
||||
pub mod Direct3D;
|
||||
+4258
File diff suppressed because it is too large.
Load diff
+269
@@ -0,0 +1,269 @@
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpkclnt.sys" "system" fn FwpmBfeStateGet0() -> super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SERVICE_STATE);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpkclnt.sys" "system" fn FwpmBfeStateSubscribeChanges0(deviceobject : *mut core::ffi::c_void, callback : FWPM_SERVICE_STATE_CHANGE_CALLBACK0, context : *const core::ffi::c_void, changehandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpkclnt.sys" "system" fn FwpmBfeStateUnsubscribeChanges0(changehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmCalloutAdd0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, callout : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CALLOUT0, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, id : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmCalloutCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CALLOUT_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmCalloutDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmCalloutDeleteByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmCalloutDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmCalloutEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CALLOUT0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmCalloutGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u32, callout : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CALLOUT0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmCalloutGetByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, callout : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CALLOUT0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmCalloutGetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmCalloutSetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmConnectionCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CONNECTION_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmConnectionDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmConnectionEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CONNECTION0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmConnectionGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, connection : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_CONNECTION0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmConnectionGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmConnectionSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmEngineClose0(enginehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmEngineGetOption0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, option : super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_ENGINE_OPTION, value : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWP_VALUE0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmEngineGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security", feature = "Win32_System_Rpc"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmEngineOpen0(servername : windows_sys::core::PCWSTR, authnservice : u32, authidentity : *const super::super::super::Win32::System::Rpc:: SEC_WINNT_AUTH_IDENTITY_W, session : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SESSION0, enginehandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmEngineSetOption0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, option : super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_ENGINE_OPTION, newvalue : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWP_VALUE0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmEngineSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmFilterAdd0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, filter : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER0, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmFilterCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmFilterDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmFilterDeleteByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmFilterDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmFilterEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmFilterGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, filter : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmFilterGetByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, filter : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmFilterGetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmFilterSetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmFreeMemory0(p : *mut *mut core::ffi::c_void));
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelAdd0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, mainmodepolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT0, tunnelpolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT0, numfilterconditions : u32, filterconditions : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER_CONDITION0, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelAdd1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, mainmodepolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT1, tunnelpolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT1, numfilterconditions : u32, filterconditions : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER_CONDITION0, keymodkey : *const windows_sys::core::GUID, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelAdd2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, mainmodepolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT2, tunnelpolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT2, numfilterconditions : u32, filterconditions : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER_CONDITION0, keymodkey : *const windows_sys::core::GUID, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelAdd3(enginehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32, mainmodepolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT3, tunnelpolicy : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT3, numfilterconditions : u32, filterconditions : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_FILTER_CONDITION0, keymodkey : *const windows_sys::core::GUID, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmIPsecTunnelDeleteByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmLayerCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_LAYER_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmLayerDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmLayerEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_LAYER0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmLayerGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u16, layer : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_LAYER0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmLayerGetByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, layer : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_LAYER0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmLayerGetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmLayerSetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmNetEventCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmNetEventDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT1, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT2, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum3(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT3, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum4(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT4, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmNetEventEnum5(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_NET_EVENT5, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmNetEventsGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmNetEventsSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderAdd0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, provider : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER0, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextAdd0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, providercontext : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT0, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextAdd1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, providercontext : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT1, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextAdd2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, providercontext : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT2, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextAdd3(enginehandle : super::super::super::Win32::Foundation:: HANDLE, providercontext : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT3, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextDeleteByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextEnum1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT1, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextEnum2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT2, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextEnum3(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT3, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT1) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT2) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetById3(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT3) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetByKey1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT1) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetByKey2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT2) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetByKey3(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, providercontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_CONTEXT3) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextGetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderContextSetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderDeleteByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderGetByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, provider : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_PROVIDER0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderGetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmProviderSetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmSessionCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SESSION_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmSessionDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmSessionEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SESSION0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmSubLayerAdd0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, sublayer : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SUBLAYER0, sd : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmSubLayerCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SUBLAYER_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmSubLayerDeleteByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmSubLayerDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmSubLayerEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SUBLAYER0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmSubLayerGetByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, sublayer : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: FWPM_SUBLAYER0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmSubLayerGetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmSubLayerSetSecurityInfoByKey0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, key : *const windows_sys::core::GUID, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmTransactionAbort0(enginehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmTransactionBegin0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmTransactionCommit0(enginehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmvSwitchEventsGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn FwpmvSwitchEventsSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecDospGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecDospGetStatistics0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, idpstatistics : *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_DOSP_STATISTICS0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecDospSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecDospStateCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_DOSP_STATE_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecDospStateDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecDospStateEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_DOSP_STATE0, numentries : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecGetStatistics0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, ipsecstatistics : *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_STATISTICS0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecGetStatistics1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, ipsecstatistics : *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_STATISTICS1) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddInbound0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, inboundbundle : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_BUNDLE0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddInbound1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, inboundbundle : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_BUNDLE1) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddOutbound0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, outboundbundle : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_BUNDLE0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextAddOutbound1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, outboundbundle : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_BUNDLE1) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextCreate0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, outboundtraffic : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_TRAFFIC0, inboundfilterid : *mut u64, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextCreate1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, outboundtraffic : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_TRAFFIC1, virtualiftunnelinfo : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_VIRTUAL_IF_TUNNEL_INFO0, inboundfilterid : *mut u64, id : *mut u64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_CONTEXT_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_CONTEXT0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextEnum1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_CONTEXT1, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextExpire0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, sacontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_CONTEXT0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetById1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, sacontext : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_CONTEXT1) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetSpi0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, getspi : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_GETSPI0, inboundspi : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextGetSpi1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, getspi : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_GETSPI1, inboundspi : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextSetSpi0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, getspi : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_GETSPI1, inboundspi : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaContextUpdate0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u64, newvalues : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_CONTEXT1) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaDbGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaDbSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_DETAILS0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IPsecSaEnum1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IPSEC_SA_DETAILS1, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IkeextGetStatistics0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, ikeextstatistics : *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_STATISTICS0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IkeextGetStatistics1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, ikeextstatistics : *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_STATISTICS1) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_NetworkManagement_WindowsFilteringPlatform", feature = "Win32_Security"))]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IkeextSaCreateEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumtemplate : *const super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_ENUM_TEMPLATE0, enumhandle : *mut super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IkeextSaDbGetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *mut super::super::super::Win32::Security:: PSID, sidgroup : *mut super::super::super::Win32::Security:: PSID, dacl : *mut *mut super::super::super::Win32::Security:: ACL, sacl : *mut *mut super::super::super::Win32::Security:: ACL, securitydescriptor : *mut super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IkeextSaDbSetSecurityInfo0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, securityinfo : u32, sidowner : *const super::super::super::Win32::Security:: SID, sidgroup : *const super::super::super::Win32::Security:: SID, dacl : *const super::super::super::Win32::Security:: ACL, sacl : *const super::super::super::Win32::Security:: ACL) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IkeextSaDeleteById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IkeextSaDestroyEnumHandle0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IkeextSaEnum0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_DETAILS0, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IkeextSaEnum1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_DETAILS1, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IkeextSaEnum2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, enumhandle : super::super::super::Win32::Foundation:: HANDLE, numentriesrequested : u32, entries : *mut *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_DETAILS2, numentriesreturned : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IkeextSaGetById0(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, sa : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_DETAILS0) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IkeextSaGetById1(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, salookupcontext : *const windows_sys::core::GUID, sa : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_DETAILS1) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
windows_link::link!("fwpuclnt.dll" "system" fn IkeextSaGetById2(enginehandle : super::super::super::Win32::Foundation:: HANDLE, id : u64, salookupcontext : *const windows_sys::core::GUID, sa : *mut *mut super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform:: IKEEXT_SA_DETAILS2) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
pub type FWPM_SERVICE_STATE_CHANGE_CALLBACK0 = Option<unsafe extern "system" fn(context: *mut core::ffi::c_void, newstate: super::super::super::Win32::NetworkManagement::WindowsFilteringPlatform::FWPM_SERVICE_STATE)>;
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
#[cfg(feature = "Wdk_NetworkManagement_Ndis")]
|
||||
pub mod Ndis;
|
||||
#[cfg(feature = "Wdk_NetworkManagement_WindowsFilteringPlatform")]
|
||||
pub mod WindowsFilteringPlatform;
|
||||
Vendored
+1785
File diff suppressed because it is too large.
Load diff
+5284
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,2 @@
|
||||
#[cfg(feature = "Wdk_Storage_FileSystem")]
|
||||
pub mod FileSystem;
|
||||
@@ -0,0 +1,2 @@
|
||||
#[cfg(feature = "Win32_System_IO")]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtDeviceIoControlFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, iocontrolcode : u32, inputbuffer : *const core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut core::ffi::c_void, outputbufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
@@ -0,0 +1,11 @@
|
||||
windows_link::link!("ntdll.dll" "system" fn NtMapViewOfSection(sectionhandle : super::super::super::Win32::Foundation:: HANDLE, processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, zerobits : usize, commitsize : usize, sectionoffset : *mut i64, viewsize : *mut usize, inheritdisposition : SECTION_INHERIT, allocationtype : u32, win32protect : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtOpenSection(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtUnmapViewOfSection(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwMapViewOfSection(sectionhandle : super::super::super::Win32::Foundation:: HANDLE, processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *mut *mut core::ffi::c_void, zerobits : usize, commitsize : usize, sectionoffset : *mut i64, viewsize : *mut usize, inheritdisposition : SECTION_INHERIT, allocationtype : u32, win32protect : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwOpenSection(sectionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwUnmapViewOfSection(processhandle : super::super::super::Win32::Foundation:: HANDLE, baseaddress : *const core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
pub type SECTION_INHERIT = i32;
|
||||
pub const ViewShare: SECTION_INHERIT = 1i32;
|
||||
pub const ViewUnmap: SECTION_INHERIT = 2i32;
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
windows_link::link!("offreg.dll" "system" fn ORCloseHive(handle : ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORCloseKey(keyhandle : ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORCreateHive(horkey : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("offreg.dll" "system" fn ORCreateKey(keyhandle : ORHKEY, lpsubkey : windows_sys::core::PCWSTR, lpclass : windows_sys::core::PCWSTR, dwoptions : u32, psecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, phkresult : *mut ORHKEY, pdwdisposition : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORDeleteKey(handle : ORHKEY, lpsubkey : windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORDeleteValue(handle : ORHKEY, lpvaluename : windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn OREnumKey(handle : ORHKEY, dwindex : u32, lpname : windows_sys::core::PWSTR, lpcname : *mut u32, lpclass : windows_sys::core::PWSTR, lpcclass : *mut u32, lpftlastwritetime : *mut super::super::super::Win32::Foundation:: FILETIME) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn OREnumValue(handle : ORHKEY, dwindex : u32, lpvaluename : windows_sys::core::PWSTR, lpcvaluename : *mut u32, lptype : *mut u32, lpdata : *mut u8, lpcbdata : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("offreg.dll" "system" fn ORGetKeySecurity(handle : ORHKEY, securityinformation : u32, psecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORGetValue(handle : ORHKEY, lpsubkey : windows_sys::core::PCWSTR, lpvalue : windows_sys::core::PCWSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORGetVersion(pdwmajorversion : *mut u32, pdwminorversion : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORGetVirtualFlags(handle : ORHKEY, pdwflags : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORMergeHives(hivehandles : *const ORHKEY, hivecount : u32, phkresult : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn OROpenHive(filepath : windows_sys::core::PCWSTR, horkey : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn OROpenHiveByHandle(filehandle : super::super::super::Win32::Foundation:: HANDLE, horkey : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn OROpenKey(handle : ORHKEY, lpsubkey : windows_sys::core::PCWSTR, phkresult : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORQueryInfoKey(handle : ORHKEY, lpclass : windows_sys::core::PWSTR, lpcclass : *mut u32, lpcsubkeys : *mut u32, lpcmaxsubkeylen : *mut u32, lpcmaxclasslen : *mut u32, lpcvalues : *mut u32, lpcmaxvaluenamelen : *mut u32, lpcmaxvaluelen : *mut u32, lpcbsecuritydescriptor : *mut u32, lpftlastwritetime : *mut super::super::super::Win32::Foundation:: FILETIME) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORRenameKey(handle : ORHKEY, lpnewname : windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORSaveHive(horkey : ORHKEY, hivepath : windows_sys::core::PCWSTR, osmajorversion : u32, osminorversion : u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("offreg.dll" "system" fn ORSetKeySecurity(handle : ORHKEY, securityinformation : u32, psecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORSetValue(handle : ORHKEY, lpvaluename : windows_sys::core::PCWSTR, dwtype : u32, lpdata : *const u8, cbdata : u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORSetVirtualFlags(handle : ORHKEY, dwflags : u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORShutdown() -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("offreg.dll" "system" fn ORStart() -> super::super::super::Win32::Foundation:: WIN32_ERROR);
|
||||
pub type ORHKEY = *mut core::ffi::c_void;
|
||||
+215
@@ -0,0 +1,215 @@
|
||||
windows_link::link!("ntdll.dll" "system" fn NtCommitRegistryTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtCreateKey(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, titleindex : u32, class : *const super::super::super::Win32::Foundation:: UNICODE_STRING, createoptions : u32, disposition : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtCreateKeyTransacted(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, titleindex : u32, class : *const super::super::super::Win32::Foundation:: UNICODE_STRING, createoptions : u32, transactionhandle : super::super::super::Win32::Foundation:: HANDLE, disposition : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtCreateRegistryTransaction(transactionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, createoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtDeleteKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtDeleteValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtEnumerateKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, index : u32, keyinformationclass : KEY_INFORMATION_CLASS, keyinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtEnumerateValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, index : u32, keyvalueinformationclass : KEY_VALUE_INFORMATION_CLASS, keyvalueinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtFlushKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtNotifyChangeMultipleKeys(masterkeyhandle : super::super::super::Win32::Foundation:: HANDLE, count : u32, subordinateobjects : *const super::super::Foundation:: OBJECT_ATTRIBUTES, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtOpenKey(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtOpenKeyEx(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, openoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtOpenKeyTransacted(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, transactionhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtOpenKeyTransactedEx(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, openoptions : u32, transactionhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtOpenRegistryTransaction(transactionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtQueryKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, keyinformationclass : KEY_INFORMATION_CLASS, keyinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtQueryMultipleValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valueentries : *mut KEY_VALUE_ENTRY, entrycount : u32, valuebuffer : *mut core::ffi::c_void, bufferlength : *mut u32, requiredbufferlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtQueryValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, keyvalueinformationclass : KEY_VALUE_INFORMATION_CLASS, keyvalueinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtRenameKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, newname : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtRestoreKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, filehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtRollbackRegistryTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtSaveKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, filehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtSaveKeyEx(keyhandle : super::super::super::Win32::Foundation:: HANDLE, filehandle : super::super::super::Win32::Foundation:: HANDLE, format : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtSetInformationKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, keysetinformationclass : KEY_SET_INFORMATION_CLASS, keysetinformation : *const core::ffi::c_void, keysetinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtSetValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, titleindex : u32, r#type : u32, data : *const core::ffi::c_void, datasize : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwCommitRegistryTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwCreateKey(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, titleindex : u32, class : *const super::super::super::Win32::Foundation:: UNICODE_STRING, createoptions : u32, disposition : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwCreateKeyTransacted(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, titleindex : u32, class : *const super::super::super::Win32::Foundation:: UNICODE_STRING, createoptions : u32, transactionhandle : super::super::super::Win32::Foundation:: HANDLE, disposition : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwCreateRegistryTransaction(transactionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, createoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwDeleteKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwDeleteValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwEnumerateKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, index : u32, keyinformationclass : KEY_INFORMATION_CLASS, keyinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwEnumerateValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, index : u32, keyvalueinformationclass : KEY_VALUE_INFORMATION_CLASS, keyvalueinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwFlushKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwNotifyChangeMultipleKeys(masterkeyhandle : super::super::super::Win32::Foundation:: HANDLE, count : u32, subordinateobjects : *const super::super::Foundation:: OBJECT_ATTRIBUTES, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, completionfilter : u32, watchtree : bool, buffer : *mut core::ffi::c_void, buffersize : u32, asynchronous : bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwOpenKey(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwOpenKeyEx(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, openoptions : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwOpenKeyTransacted(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, transactionhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwOpenKeyTransactedEx(keyhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, openoptions : u32, transactionhandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwOpenRegistryTransaction(transactionhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwQueryKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, keyinformationclass : KEY_INFORMATION_CLASS, keyinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwQueryMultipleValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valueentries : *mut KEY_VALUE_ENTRY, entrycount : u32, valuebuffer : *mut core::ffi::c_void, bufferlength : *mut u32, requiredbufferlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwQueryValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, keyvalueinformationclass : KEY_VALUE_INFORMATION_CLASS, keyvalueinformation : *mut core::ffi::c_void, length : u32, resultlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwRenameKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, newname : *const super::super::super::Win32::Foundation:: UNICODE_STRING) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwRestoreKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, filehandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwRollbackRegistryTransaction(transactionhandle : super::super::super::Win32::Foundation:: HANDLE, flags : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwSaveKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, filehandle : super::super::super::Win32::Foundation:: HANDLE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwSaveKeyEx(keyhandle : super::super::super::Win32::Foundation:: HANDLE, filehandle : super::super::super::Win32::Foundation:: HANDLE, format : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwSetInformationKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, keysetinformationclass : KEY_SET_INFORMATION_CLASS, keysetinformation : *const core::ffi::c_void, keysetinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwSetValueKey(keyhandle : super::super::super::Win32::Foundation:: HANDLE, valuename : *const super::super::super::Win32::Foundation:: UNICODE_STRING, titleindex : u32, r#type : u32, data : *const core::ffi::c_void, datasize : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
pub type KEY_INFORMATION_CLASS = i32;
|
||||
pub type KEY_SET_INFORMATION_CLASS = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct KEY_VALUE_ENTRY {
|
||||
pub ValueName: *mut super::super::super::Win32::Foundation::UNICODE_STRING,
|
||||
pub DataLength: u32,
|
||||
pub DataOffset: u32,
|
||||
pub Type: u32,
|
||||
}
|
||||
impl Default for KEY_VALUE_ENTRY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type KEY_VALUE_INFORMATION_CLASS = i32;
|
||||
pub const KeyBasicInformation: KEY_INFORMATION_CLASS = 0i32;
|
||||
pub const KeyCachedInformation: KEY_INFORMATION_CLASS = 4i32;
|
||||
pub const KeyControlFlagsInformation: KEY_SET_INFORMATION_CLASS = 2i32;
|
||||
pub const KeyFlagsInformation: KEY_INFORMATION_CLASS = 5i32;
|
||||
pub const KeyFullInformation: KEY_INFORMATION_CLASS = 2i32;
|
||||
pub const KeyHandleTagsInformation: KEY_INFORMATION_CLASS = 7i32;
|
||||
pub const KeyLayerInformation: KEY_INFORMATION_CLASS = 9i32;
|
||||
pub const KeyNameInformation: KEY_INFORMATION_CLASS = 3i32;
|
||||
pub const KeyNodeInformation: KEY_INFORMATION_CLASS = 1i32;
|
||||
pub const KeySetDebugInformation: KEY_SET_INFORMATION_CLASS = 4i32;
|
||||
pub const KeySetHandleTagsInformation: KEY_SET_INFORMATION_CLASS = 5i32;
|
||||
pub const KeySetLayerInformation: KEY_SET_INFORMATION_CLASS = 6i32;
|
||||
pub const KeySetVirtualizationInformation: KEY_SET_INFORMATION_CLASS = 3i32;
|
||||
pub const KeyTrustInformation: KEY_INFORMATION_CLASS = 8i32;
|
||||
pub const KeyValueBasicInformation: KEY_VALUE_INFORMATION_CLASS = 0i32;
|
||||
pub const KeyValueFullInformation: KEY_VALUE_INFORMATION_CLASS = 1i32;
|
||||
pub const KeyValueFullInformationAlign64: KEY_VALUE_INFORMATION_CLASS = 3i32;
|
||||
pub const KeyValueLayerInformation: KEY_VALUE_INFORMATION_CLASS = 5i32;
|
||||
pub const KeyValuePartialInformation: KEY_VALUE_INFORMATION_CLASS = 2i32;
|
||||
pub const KeyValuePartialInformationAlign64: KEY_VALUE_INFORMATION_CLASS = 4i32;
|
||||
pub const KeyVirtualizationInformation: KEY_INFORMATION_CLASS = 6i32;
|
||||
pub const KeyWow64FlagsInformation: KEY_SET_INFORMATION_CLASS = 1i32;
|
||||
pub const KeyWriteTimeInformation: KEY_SET_INFORMATION_CLASS = 0i32;
|
||||
pub const MaxKeyInfoClass: KEY_INFORMATION_CLASS = 10i32;
|
||||
pub const MaxKeySetInfoClass: KEY_SET_INFORMATION_CLASS = 7i32;
|
||||
pub const MaxKeyValueInfoClass: KEY_VALUE_INFORMATION_CLASS = 6i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct REG_ENUMERATE_KEY_INFORMATION {
|
||||
pub Object: *mut core::ffi::c_void,
|
||||
pub Index: u32,
|
||||
pub KeyInformationClass: KEY_INFORMATION_CLASS,
|
||||
pub KeyInformation: *mut core::ffi::c_void,
|
||||
pub Length: u32,
|
||||
pub ResultLength: *mut u32,
|
||||
pub CallContext: *mut core::ffi::c_void,
|
||||
pub ObjectContext: *mut core::ffi::c_void,
|
||||
pub Reserved: *mut core::ffi::c_void,
|
||||
}
|
||||
impl Default for REG_ENUMERATE_KEY_INFORMATION {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct REG_ENUMERATE_VALUE_KEY_INFORMATION {
|
||||
pub Object: *mut core::ffi::c_void,
|
||||
pub Index: u32,
|
||||
pub KeyValueInformationClass: KEY_VALUE_INFORMATION_CLASS,
|
||||
pub KeyValueInformation: *mut core::ffi::c_void,
|
||||
pub Length: u32,
|
||||
pub ResultLength: *mut u32,
|
||||
pub CallContext: *mut core::ffi::c_void,
|
||||
pub ObjectContext: *mut core::ffi::c_void,
|
||||
pub Reserved: *mut core::ffi::c_void,
|
||||
}
|
||||
impl Default for REG_ENUMERATE_VALUE_KEY_INFORMATION {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct REG_QUERY_KEY_INFORMATION {
|
||||
pub Object: *mut core::ffi::c_void,
|
||||
pub KeyInformationClass: KEY_INFORMATION_CLASS,
|
||||
pub KeyInformation: *mut core::ffi::c_void,
|
||||
pub Length: u32,
|
||||
pub ResultLength: *mut u32,
|
||||
pub CallContext: *mut core::ffi::c_void,
|
||||
pub ObjectContext: *mut core::ffi::c_void,
|
||||
pub Reserved: *mut core::ffi::c_void,
|
||||
}
|
||||
impl Default for REG_QUERY_KEY_INFORMATION {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct REG_QUERY_MULTIPLE_VALUE_KEY_INFORMATION {
|
||||
pub Object: *mut core::ffi::c_void,
|
||||
pub ValueEntries: *mut KEY_VALUE_ENTRY,
|
||||
pub EntryCount: u32,
|
||||
pub ValueBuffer: *mut core::ffi::c_void,
|
||||
pub BufferLength: *mut u32,
|
||||
pub RequiredBufferLength: *mut u32,
|
||||
pub CallContext: *mut core::ffi::c_void,
|
||||
pub ObjectContext: *mut core::ffi::c_void,
|
||||
pub Reserved: *mut core::ffi::c_void,
|
||||
}
|
||||
impl Default for REG_QUERY_MULTIPLE_VALUE_KEY_INFORMATION {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct REG_QUERY_VALUE_KEY_INFORMATION {
|
||||
pub Object: *mut core::ffi::c_void,
|
||||
pub ValueName: *mut super::super::super::Win32::Foundation::UNICODE_STRING,
|
||||
pub KeyValueInformationClass: KEY_VALUE_INFORMATION_CLASS,
|
||||
pub KeyValueInformation: *mut core::ffi::c_void,
|
||||
pub Length: u32,
|
||||
pub ResultLength: *mut u32,
|
||||
pub CallContext: *mut core::ffi::c_void,
|
||||
pub ObjectContext: *mut core::ffi::c_void,
|
||||
pub Reserved: *mut core::ffi::c_void,
|
||||
}
|
||||
impl Default for REG_QUERY_VALUE_KEY_INFORMATION {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct REG_SET_INFORMATION_KEY_INFORMATION {
|
||||
pub Object: *mut core::ffi::c_void,
|
||||
pub KeySetInformationClass: KEY_SET_INFORMATION_CLASS,
|
||||
pub KeySetInformation: *mut core::ffi::c_void,
|
||||
pub KeySetInformationLength: u32,
|
||||
pub CallContext: *mut core::ffi::c_void,
|
||||
pub ObjectContext: *mut core::ffi::c_void,
|
||||
pub Reserved: *mut core::ffi::c_void,
|
||||
}
|
||||
impl Default for REG_SET_INFORMATION_KEY_INFORMATION {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
windows_link::link!("ntdll.dll" "system" fn NtQuerySystemInformation(systeminformationclass : SYSTEM_INFORMATION_CLASS, systeminformation : *mut core::ffi::c_void, systeminformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtQuerySystemTime(systemtime : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtQueryTimerResolution(maximumtime : *mut u32, minimumtime : *mut u32, currenttime : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwQuerySystemInformation(systeminformationclass : SYSTEM_INFORMATION_CLASS, systeminformation : *mut core::ffi::c_void, systeminformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwQuerySystemTime(systemtime : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwQueryTimerResolution(maximumtime : *mut u32, minimumtime : *mut u32, currenttime : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
pub type SYSTEM_INFORMATION_CLASS = i32;
|
||||
pub const SystemBasicInformation: SYSTEM_INFORMATION_CLASS = 0i32;
|
||||
pub const SystemCodeIntegrityInformation: SYSTEM_INFORMATION_CLASS = 103i32;
|
||||
pub const SystemExceptionInformation: SYSTEM_INFORMATION_CLASS = 33i32;
|
||||
pub const SystemInterruptInformation: SYSTEM_INFORMATION_CLASS = 23i32;
|
||||
pub const SystemLookasideInformation: SYSTEM_INFORMATION_CLASS = 45i32;
|
||||
pub const SystemPerformanceInformation: SYSTEM_INFORMATION_CLASS = 2i32;
|
||||
pub const SystemPolicyInformation: SYSTEM_INFORMATION_CLASS = 134i32;
|
||||
pub const SystemProcessInformation: SYSTEM_INFORMATION_CLASS = 5i32;
|
||||
pub const SystemProcessorPerformanceInformation: SYSTEM_INFORMATION_CLASS = 8i32;
|
||||
pub const SystemRegistryQuotaInformation: SYSTEM_INFORMATION_CLASS = 37i32;
|
||||
pub const SystemTimeOfDayInformation: SYSTEM_INFORMATION_CLASS = 3i32;
|
||||
+16976
File diff suppressed because it is too large.
Load diff
+155
@@ -0,0 +1,155 @@
|
||||
windows_link::link!("ntdll.dll" "system" fn NtCancelTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, currentstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtCreateTimer(timerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, timertype : super::super::super::Win32::System::Kernel:: TIMER_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtOpenEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_WindowsProgramming"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtOpenProcess(processhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, clientid : *const super::super::super::Win32::System::WindowsProgramming:: CLIENT_ID) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtOpenTimer(timerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtQueryInformationProcess(processhandle : super::super::super::Win32::Foundation:: HANDLE, processinformationclass : PROCESSINFOCLASS, processinformation : *mut core::ffi::c_void, processinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtQueryInformationThread(threadhandle : super::super::super::Win32::Foundation:: HANDLE, threadinformationclass : THREADINFOCLASS, threadinformation : *mut core::ffi::c_void, threadinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtSetInformationThread(threadhandle : super::super::super::Win32::Foundation:: HANDLE, threadinformationclass : THREADINFOCLASS, threadinformation : *const core::ffi::c_void, threadinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Wdk_System_SystemServices")]
|
||||
windows_link::link!("ntdll.dll" "system" fn NtSetTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, duetime : *const i64, timerapcroutine : super::SystemServices:: PTIMER_APC_ROUTINE, timercontext : *const core::ffi::c_void, resumetimer : bool, period : i32, previousstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtSetTimerEx(timerhandle : super::super::super::Win32::Foundation:: HANDLE, timersetinformationclass : TIMER_SET_INFORMATION_CLASS, timersetinformation : *mut core::ffi::c_void, timersetinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtTerminateProcess(processhandle : super::super::super::Win32::Foundation:: HANDLE, exitstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn NtWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : bool, timeout : *mut i64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwCancelTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, currentstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_Kernel"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwCreateTimer(timerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, timertype : super::super::super::Win32::System::Kernel:: TIMER_TYPE) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwOpenEvent(eventhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security", feature = "Win32_System_WindowsProgramming"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwOpenProcess(processhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES, clientid : *const super::super::super::Win32::System::WindowsProgramming:: CLIENT_ID) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Wdk_Foundation", feature = "Win32_Security"))]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwOpenTimer(timerhandle : *mut super::super::super::Win32::Foundation:: HANDLE, desiredaccess : u32, objectattributes : *const super::super::Foundation:: OBJECT_ATTRIBUTES) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwQueryInformationProcess(processhandle : super::super::super::Win32::Foundation:: HANDLE, processinformationclass : PROCESSINFOCLASS, processinformation : *mut core::ffi::c_void, processinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwQueryInformationThread(threadhandle : super::super::super::Win32::Foundation:: HANDLE, threadinformationclass : THREADINFOCLASS, threadinformation : *mut core::ffi::c_void, threadinformationlength : u32, returnlength : *mut u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwSetInformationThread(threadhandle : super::super::super::Win32::Foundation:: HANDLE, threadinformationclass : THREADINFOCLASS, threadinformation : *const core::ffi::c_void, threadinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
#[cfg(feature = "Wdk_System_SystemServices")]
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwSetTimer(timerhandle : super::super::super::Win32::Foundation:: HANDLE, duetime : *const i64, timerapcroutine : super::SystemServices:: PTIMER_APC_ROUTINE, timercontext : *const core::ffi::c_void, resumetimer : bool, period : i32, previousstate : *mut bool) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwSetTimerEx(timerhandle : super::super::super::Win32::Foundation:: HANDLE, timersetinformationclass : TIMER_SET_INFORMATION_CLASS, timersetinformation : *mut core::ffi::c_void, timersetinformationlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwTerminateProcess(processhandle : super::super::super::Win32::Foundation:: HANDLE, exitstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
windows_link::link!("ntdll.dll" "system" fn ZwWaitForSingleObject(handle : super::super::super::Win32::Foundation:: HANDLE, alertable : bool, timeout : *const i64) -> super::super::super::Win32::Foundation:: NTSTATUS);
|
||||
pub const MaxProcessInfoClass: PROCESSINFOCLASS = 83i32;
|
||||
pub const MaxThreadInfoClass: THREADINFOCLASS = 56i32;
|
||||
pub const MaxTimerInfoClass: TIMER_SET_INFORMATION_CLASS = 1i32;
|
||||
pub type PROCESSINFOCLASS = i32;
|
||||
pub const ProcessAccessToken: PROCESSINFOCLASS = 9i32;
|
||||
pub const ProcessAffinityMask: PROCESSINFOCLASS = 21i32;
|
||||
pub const ProcessAffinityUpdateMode: PROCESSINFOCLASS = 45i32;
|
||||
pub const ProcessBasePriority: PROCESSINFOCLASS = 5i32;
|
||||
pub const ProcessBasicInformation: PROCESSINFOCLASS = 0i32;
|
||||
pub const ProcessBreakOnTermination: PROCESSINFOCLASS = 29i32;
|
||||
pub const ProcessCheckStackExtentsMode: PROCESSINFOCLASS = 59i32;
|
||||
pub const ProcessCommandLineInformation: PROCESSINFOCLASS = 60i32;
|
||||
pub const ProcessCommitReleaseInformation: PROCESSINFOCLASS = 65i32;
|
||||
pub const ProcessCookie: PROCESSINFOCLASS = 36i32;
|
||||
pub const ProcessCycleTime: PROCESSINFOCLASS = 38i32;
|
||||
pub const ProcessDebugFlags: PROCESSINFOCLASS = 31i32;
|
||||
pub const ProcessDebugObjectHandle: PROCESSINFOCLASS = 30i32;
|
||||
pub const ProcessDebugPort: PROCESSINFOCLASS = 7i32;
|
||||
pub const ProcessDefaultHardErrorMode: PROCESSINFOCLASS = 12i32;
|
||||
pub const ProcessDeviceMap: PROCESSINFOCLASS = 23i32;
|
||||
pub const ProcessDynamicFunctionTableInformation: PROCESSINFOCLASS = 53i32;
|
||||
pub const ProcessEnableAlignmentFaultFixup: PROCESSINFOCLASS = 17i32;
|
||||
pub const ProcessEnergyTrackingState: PROCESSINFOCLASS = 82i32;
|
||||
pub const ProcessExceptionPort: PROCESSINFOCLASS = 8i32;
|
||||
pub const ProcessExecuteFlags: PROCESSINFOCLASS = 34i32;
|
||||
pub const ProcessFaultInformation: PROCESSINFOCLASS = 63i32;
|
||||
pub const ProcessForegroundInformation: PROCESSINFOCLASS = 25i32;
|
||||
pub const ProcessGroupInformation: PROCESSINFOCLASS = 47i32;
|
||||
pub const ProcessHandleCheckingMode: PROCESSINFOCLASS = 54i32;
|
||||
pub const ProcessHandleCount: PROCESSINFOCLASS = 20i32;
|
||||
pub const ProcessHandleInformation: PROCESSINFOCLASS = 51i32;
|
||||
pub const ProcessHandleTable: PROCESSINFOCLASS = 58i32;
|
||||
pub const ProcessHandleTracing: PROCESSINFOCLASS = 32i32;
|
||||
pub const ProcessImageFileMapping: PROCESSINFOCLASS = 44i32;
|
||||
pub const ProcessImageFileName: PROCESSINFOCLASS = 27i32;
|
||||
pub const ProcessImageFileNameWin32: PROCESSINFOCLASS = 43i32;
|
||||
pub const ProcessImageInformation: PROCESSINFOCLASS = 37i32;
|
||||
pub const ProcessInPrivate: PROCESSINFOCLASS = 70i32;
|
||||
pub const ProcessInstrumentationCallback: PROCESSINFOCLASS = 40i32;
|
||||
pub const ProcessIoCounters: PROCESSINFOCLASS = 2i32;
|
||||
pub const ProcessIoPortHandlers: PROCESSINFOCLASS = 13i32;
|
||||
pub const ProcessIoPriority: PROCESSINFOCLASS = 33i32;
|
||||
pub const ProcessKeepAliveCount: PROCESSINFOCLASS = 55i32;
|
||||
pub const ProcessLUIDDeviceMapsEnabled: PROCESSINFOCLASS = 28i32;
|
||||
pub const ProcessLdtInformation: PROCESSINFOCLASS = 10i32;
|
||||
pub const ProcessLdtSize: PROCESSINFOCLASS = 11i32;
|
||||
pub const ProcessMemoryAllocationMode: PROCESSINFOCLASS = 46i32;
|
||||
pub const ProcessMemoryExhaustion: PROCESSINFOCLASS = 62i32;
|
||||
pub const ProcessMitigationPolicy: PROCESSINFOCLASS = 52i32;
|
||||
pub const ProcessOwnerInformation: PROCESSINFOCLASS = 49i32;
|
||||
pub const ProcessPagePriority: PROCESSINFOCLASS = 39i32;
|
||||
pub const ProcessPooledUsageAndLimits: PROCESSINFOCLASS = 14i32;
|
||||
pub const ProcessPriorityBoost: PROCESSINFOCLASS = 22i32;
|
||||
pub const ProcessPriorityClass: PROCESSINFOCLASS = 18i32;
|
||||
pub const ProcessProtectionInformation: PROCESSINFOCLASS = 61i32;
|
||||
pub const ProcessQuotaLimits: PROCESSINFOCLASS = 1i32;
|
||||
pub const ProcessRaisePriority: PROCESSINFOCLASS = 6i32;
|
||||
pub const ProcessRaiseUMExceptionOnInvalidHandleClose: PROCESSINFOCLASS = 71i32;
|
||||
pub const ProcessReserved1Information: PROCESSINFOCLASS = 66i32;
|
||||
pub const ProcessReserved2Information: PROCESSINFOCLASS = 67i32;
|
||||
pub const ProcessRevokeFileHandles: PROCESSINFOCLASS = 56i32;
|
||||
pub const ProcessSessionInformation: PROCESSINFOCLASS = 24i32;
|
||||
pub const ProcessSubsystemInformation: PROCESSINFOCLASS = 75i32;
|
||||
pub const ProcessSubsystemProcess: PROCESSINFOCLASS = 68i32;
|
||||
pub const ProcessTelemetryIdInformation: PROCESSINFOCLASS = 64i32;
|
||||
pub const ProcessThreadStackAllocation: PROCESSINFOCLASS = 41i32;
|
||||
pub const ProcessTimes: PROCESSINFOCLASS = 4i32;
|
||||
pub const ProcessTlsInformation: PROCESSINFOCLASS = 35i32;
|
||||
pub const ProcessTokenVirtualizationEnabled: PROCESSINFOCLASS = 48i32;
|
||||
pub const ProcessUserModeIOPL: PROCESSINFOCLASS = 16i32;
|
||||
pub const ProcessVmCounters: PROCESSINFOCLASS = 3i32;
|
||||
pub const ProcessWin32kSyscallFilterInformation: PROCESSINFOCLASS = 79i32;
|
||||
pub const ProcessWindowInformation: PROCESSINFOCLASS = 50i32;
|
||||
pub const ProcessWorkingSetControl: PROCESSINFOCLASS = 57i32;
|
||||
pub const ProcessWorkingSetWatch: PROCESSINFOCLASS = 15i32;
|
||||
pub const ProcessWorkingSetWatchEx: PROCESSINFOCLASS = 42i32;
|
||||
pub const ProcessWow64Information: PROCESSINFOCLASS = 26i32;
|
||||
pub const ProcessWx86Information: PROCESSINFOCLASS = 19i32;
|
||||
pub type THREADINFOCLASS = i32;
|
||||
pub type TIMER_SET_INFORMATION_CLASS = i32;
|
||||
pub const ThreadActualBasePriority: THREADINFOCLASS = 25i32;
|
||||
pub const ThreadActualGroupAffinity: THREADINFOCLASS = 41i32;
|
||||
pub const ThreadAffinityMask: THREADINFOCLASS = 4i32;
|
||||
pub const ThreadAmILastThread: THREADINFOCLASS = 12i32;
|
||||
pub const ThreadBasePriority: THREADINFOCLASS = 3i32;
|
||||
pub const ThreadBasicInformation: THREADINFOCLASS = 0i32;
|
||||
pub const ThreadBreakOnTermination: THREADINFOCLASS = 18i32;
|
||||
pub const ThreadCSwitchMon: THREADINFOCLASS = 27i32;
|
||||
pub const ThreadCSwitchPmu: THREADINFOCLASS = 28i32;
|
||||
pub const ThreadCounterProfiling: THREADINFOCLASS = 32i32;
|
||||
pub const ThreadCpuAccountingInformation: THREADINFOCLASS = 34i32;
|
||||
pub const ThreadCycleTime: THREADINFOCLASS = 23i32;
|
||||
pub const ThreadDescriptorTableEntry: THREADINFOCLASS = 6i32;
|
||||
pub const ThreadDynamicCodePolicyInfo: THREADINFOCLASS = 42i32;
|
||||
pub const ThreadEnableAlignmentFaultFixup: THREADINFOCLASS = 7i32;
|
||||
pub const ThreadEventPair_Reusable: THREADINFOCLASS = 8i32;
|
||||
pub const ThreadGroupInformation: THREADINFOCLASS = 30i32;
|
||||
pub const ThreadHideFromDebugger: THREADINFOCLASS = 17i32;
|
||||
pub const ThreadIdealProcessor: THREADINFOCLASS = 13i32;
|
||||
pub const ThreadIdealProcessorEx: THREADINFOCLASS = 33i32;
|
||||
pub const ThreadImpersonationToken: THREADINFOCLASS = 5i32;
|
||||
pub const ThreadIoPriority: THREADINFOCLASS = 22i32;
|
||||
pub const ThreadIsIoPending: THREADINFOCLASS = 16i32;
|
||||
pub const ThreadIsTerminated: THREADINFOCLASS = 20i32;
|
||||
pub const ThreadLastSystemCall: THREADINFOCLASS = 21i32;
|
||||
pub const ThreadNameInformation: THREADINFOCLASS = 38i32;
|
||||
pub const ThreadPagePriority: THREADINFOCLASS = 24i32;
|
||||
pub const ThreadPerformanceCount: THREADINFOCLASS = 11i32;
|
||||
pub const ThreadPriority: THREADINFOCLASS = 2i32;
|
||||
pub const ThreadPriorityBoost: THREADINFOCLASS = 14i32;
|
||||
pub const ThreadQuerySetWin32StartAddress: THREADINFOCLASS = 9i32;
|
||||
pub const ThreadSetTlsArrayAddress: THREADINFOCLASS = 15i32;
|
||||
pub const ThreadSubsystemInformation: THREADINFOCLASS = 45i32;
|
||||
pub const ThreadSuspendCount: THREADINFOCLASS = 35i32;
|
||||
pub const ThreadSwitchLegacyState: THREADINFOCLASS = 19i32;
|
||||
pub const ThreadTebInformation: THREADINFOCLASS = 26i32;
|
||||
pub const ThreadTimes: THREADINFOCLASS = 1i32;
|
||||
pub const ThreadUmsInformation: THREADINFOCLASS = 31i32;
|
||||
pub const ThreadWow64Context: THREADINFOCLASS = 29i32;
|
||||
pub const ThreadZeroTlsCell: THREADINFOCLASS = 10i32;
|
||||
pub const TimerSetCoalescableTimer: TIMER_SET_INFORMATION_CLASS = 0i32;
|
||||
@@ -0,0 +1,14 @@
|
||||
#[cfg(feature = "Wdk_System_IO")]
|
||||
pub mod IO;
|
||||
#[cfg(feature = "Wdk_System_Memory")]
|
||||
pub mod Memory;
|
||||
#[cfg(feature = "Wdk_System_OfflineRegistry")]
|
||||
pub mod OfflineRegistry;
|
||||
#[cfg(feature = "Wdk_System_Registry")]
|
||||
pub mod Registry;
|
||||
#[cfg(feature = "Wdk_System_SystemInformation")]
|
||||
pub mod SystemInformation;
|
||||
#[cfg(feature = "Wdk_System_SystemServices")]
|
||||
pub mod SystemServices;
|
||||
#[cfg(feature = "Wdk_System_Threading")]
|
||||
pub mod Threading;
|
||||
@@ -0,0 +1,12 @@
|
||||
#[cfg(feature = "Wdk_Devices")]
|
||||
pub mod Devices;
|
||||
#[cfg(feature = "Wdk_Foundation")]
|
||||
pub mod Foundation;
|
||||
#[cfg(feature = "Wdk_Graphics")]
|
||||
pub mod Graphics;
|
||||
#[cfg(feature = "Wdk_NetworkManagement")]
|
||||
pub mod NetworkManagement;
|
||||
#[cfg(feature = "Wdk_Storage")]
|
||||
pub mod Storage;
|
||||
#[cfg(feature = "Wdk_System")]
|
||||
pub mod System;
|
||||
+510
@@ -0,0 +1,510 @@
|
||||
windows_link::link!("hhctrl.ocx" "system" fn HtmlHelpA(hwndcaller : super::super::Foundation:: HWND, pszfile : windows_sys::core::PCSTR, ucommand : u32, dwdata : usize) -> super::super::Foundation:: HWND);
|
||||
windows_link::link!("hhctrl.ocx" "system" fn HtmlHelpW(hwndcaller : super::super::Foundation:: HWND, pszfile : windows_sys::core::PCWSTR, ucommand : u32, dwdata : usize) -> super::super::Foundation:: HWND);
|
||||
pub const CLSID_IITCmdInt: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4662daa2_d393_11d0_9a56_00c04fb68bf7);
|
||||
pub const CLSID_IITDatabase: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x66673452_8c23_11d0_a84e_00aa006c7d01);
|
||||
pub const CLSID_IITDatabaseLocal: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4662daa9_d393_11d0_9a56_00c04fb68bf7);
|
||||
pub const CLSID_IITGroupUpdate: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4662daa4_d393_11d0_9a56_00c04fb68bf7);
|
||||
pub const CLSID_IITIndexBuild: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x8fa0d5aa_dedf_11d0_9a61_00c04fb68bf7);
|
||||
pub const CLSID_IITPropList: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4662daae_d393_11d0_9a56_00c04fb68bf7);
|
||||
pub const CLSID_IITResultSet: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4662daa7_d393_11d0_9a56_00c04fb68bf7);
|
||||
pub const CLSID_IITSvMgr: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4662daa3_d393_11d0_9a56_00c04fb68bf7);
|
||||
pub const CLSID_IITWWFilterBuild: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x8fa0d5ab_dedf_11d0_9a61_00c04fb68bf7);
|
||||
pub const CLSID_IITWordWheel: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xd73725c2_8c12_11d0_a84e_00aa006c7d01);
|
||||
pub const CLSID_IITWordWheelLocal: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4662daa8_d393_11d0_9a56_00c04fb68bf7);
|
||||
pub const CLSID_IITWordWheelUpdate: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4662daa5_d393_11d0_9a56_00c04fb68bf7);
|
||||
pub const CLSID_ITEngStemmer: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x8fa0d5a8_dedf_11d0_9a61_00c04fb68bf7);
|
||||
pub const CLSID_ITStdBreaker: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4662daaf_d393_11d0_9a56_00c04fb68bf7);
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct COLUMNSTATUS {
|
||||
pub cPropCount: i32,
|
||||
pub cPropsLoaded: i32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CProperty {
|
||||
pub dwPropID: u32,
|
||||
pub cbData: u32,
|
||||
pub dwType: u32,
|
||||
pub Anonymous: CProperty_0,
|
||||
pub fPersist: windows_sys::core::BOOL,
|
||||
}
|
||||
impl Default for CProperty {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union CProperty_0 {
|
||||
pub lpszwData: windows_sys::core::PWSTR,
|
||||
pub lpvData: *mut core::ffi::c_void,
|
||||
pub dwValue: u32,
|
||||
}
|
||||
impl Default for CProperty_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const E_ALL_WILD: windows_sys::core::HRESULT = 0x80001055_u32 as _;
|
||||
pub const E_ALREADYINIT: windows_sys::core::HRESULT = 0x80001083_u32 as _;
|
||||
pub const E_ALREADYOPEN: windows_sys::core::HRESULT = 0x80001013_u32 as _;
|
||||
pub const E_ASSERT: windows_sys::core::HRESULT = 0x80001006_u32 as _;
|
||||
pub const E_BADBREAKER: windows_sys::core::HRESULT = 0x80001053_u32 as _;
|
||||
pub const E_BADFILE: windows_sys::core::HRESULT = 0x80001003_u32 as _;
|
||||
pub const E_BADFILTERSIZE: windows_sys::core::HRESULT = 0x80001018_u32 as _;
|
||||
pub const E_BADFORMAT: windows_sys::core::HRESULT = 0x80001004_u32 as _;
|
||||
pub const E_BADINDEXFLAGS: windows_sys::core::HRESULT = 0x80001060_u32 as _;
|
||||
pub const E_BADPARAM: windows_sys::core::HRESULT = 0x80001011_u32 as _;
|
||||
pub const E_BADRANGEOP: windows_sys::core::HRESULT = 0x8000105D_u32 as _;
|
||||
pub const E_BADVALUE: windows_sys::core::HRESULT = 0x80001054_u32 as _;
|
||||
pub const E_BADVERSION: windows_sys::core::HRESULT = 0x80001002_u32 as _;
|
||||
pub const E_CANTFINDDLL: windows_sys::core::HRESULT = 0x8000100E_u32 as _;
|
||||
pub const E_DISKFULL: windows_sys::core::HRESULT = 0x80001038_u32 as _;
|
||||
pub const E_DUPLICATE: windows_sys::core::HRESULT = 0x80001001_u32 as _;
|
||||
pub const E_EXPECTEDTERM: windows_sys::core::HRESULT = 0x80001057_u32 as _;
|
||||
pub const E_FILECLOSE: windows_sys::core::HRESULT = 0x80001031_u32 as _;
|
||||
pub const E_FILECREATE: windows_sys::core::HRESULT = 0x80001030_u32 as _;
|
||||
pub const E_FILEDELETE: windows_sys::core::HRESULT = 0x80001035_u32 as _;
|
||||
pub const E_FILEINVALID: windows_sys::core::HRESULT = 0x80001036_u32 as _;
|
||||
pub const E_FILENOTFOUND: windows_sys::core::HRESULT = 0x80001037_u32 as _;
|
||||
pub const E_FILEREAD: windows_sys::core::HRESULT = 0x80001032_u32 as _;
|
||||
pub const E_FILESEEK: windows_sys::core::HRESULT = 0x80001033_u32 as _;
|
||||
pub const E_FILEWRITE: windows_sys::core::HRESULT = 0x80001034_u32 as _;
|
||||
pub const E_GETLASTERROR: windows_sys::core::HRESULT = 0x80001010_u32 as _;
|
||||
pub const E_GROUPIDTOOBIG: windows_sys::core::HRESULT = 0x8000100A_u32 as _;
|
||||
pub const E_INTERRUPT: windows_sys::core::HRESULT = 0x80001007_u32 as _;
|
||||
pub const E_INVALIDSTATE: windows_sys::core::HRESULT = 0x80001012_u32 as _;
|
||||
pub const E_MISSINGPROP: windows_sys::core::HRESULT = 0x80001080_u32 as _;
|
||||
pub const E_MISSLPAREN: windows_sys::core::HRESULT = 0x80001058_u32 as _;
|
||||
pub const E_MISSQUOTE: windows_sys::core::HRESULT = 0x8000105A_u32 as _;
|
||||
pub const E_MISSRPAREN: windows_sys::core::HRESULT = 0x80001059_u32 as _;
|
||||
pub const E_NAMETOOLONG: windows_sys::core::HRESULT = 0x80001020_u32 as _;
|
||||
pub const E_NOHANDLE: windows_sys::core::HRESULT = 0x8000100F_u32 as _;
|
||||
pub const E_NOKEYPROP: windows_sys::core::HRESULT = 0x80001087_u32 as _;
|
||||
pub const E_NOMERGEDDATA: windows_sys::core::HRESULT = 0x8000100C_u32 as _;
|
||||
pub const E_NOPERMISSION: windows_sys::core::HRESULT = 0x80001005_u32 as _;
|
||||
pub const E_NOSTEMMER: windows_sys::core::HRESULT = 0x80001062_u32 as _;
|
||||
pub const E_NOTEXIST: windows_sys::core::HRESULT = 0x80001000_u32 as _;
|
||||
pub const E_NOTFOUND: windows_sys::core::HRESULT = 0x8000100D_u32 as _;
|
||||
pub const E_NOTINIT: windows_sys::core::HRESULT = 0x80001084_u32 as _;
|
||||
pub const E_NOTOPEN: windows_sys::core::HRESULT = 0x80001013_u32 as _;
|
||||
pub const E_NOTSUPPORTED: windows_sys::core::HRESULT = 0x80001008_u32 as _;
|
||||
pub const E_NULLQUERY: windows_sys::core::HRESULT = 0x8000105B_u32 as _;
|
||||
pub const E_OUTOFRANGE: windows_sys::core::HRESULT = 0x80001009_u32 as _;
|
||||
pub const E_PROPLISTEMPTY: windows_sys::core::HRESULT = 0x80001082_u32 as _;
|
||||
pub const E_PROPLISTNOTEMPTY: windows_sys::core::HRESULT = 0x80001081_u32 as _;
|
||||
pub const E_RESULTSETEMPTY: windows_sys::core::HRESULT = 0x80001085_u32 as _;
|
||||
pub const E_STOPWORD: windows_sys::core::HRESULT = 0x8000105C_u32 as _;
|
||||
pub const E_TOODEEP: windows_sys::core::HRESULT = 0x80001056_u32 as _;
|
||||
pub const E_TOOMANYCOLUMNS: windows_sys::core::HRESULT = 0x80001086_u32 as _;
|
||||
pub const E_TOOMANYDUPS: windows_sys::core::HRESULT = 0x80001051_u32 as _;
|
||||
pub const E_TOOMANYOBJECTS: windows_sys::core::HRESULT = 0x80001019_u32 as _;
|
||||
pub const E_TOOMANYTITLES: windows_sys::core::HRESULT = 0x8000100B_u32 as _;
|
||||
pub const E_TOOMANYTOPICS: windows_sys::core::HRESULT = 0x80001050_u32 as _;
|
||||
pub const E_TREETOOBIG: windows_sys::core::HRESULT = 0x80001052_u32 as _;
|
||||
pub const E_UNKNOWN_TRANSPORT: windows_sys::core::HRESULT = 0x80001016_u32 as _;
|
||||
pub const E_UNMATCHEDTYPE: windows_sys::core::HRESULT = 0x8000105E_u32 as _;
|
||||
pub const E_UNSUPPORTED_TRANSPORT: windows_sys::core::HRESULT = 0x80001017_u32 as _;
|
||||
pub const E_WILD_IN_DTYPE: windows_sys::core::HRESULT = 0x80001061_u32 as _;
|
||||
pub const E_WORDTOOLONG: windows_sys::core::HRESULT = 0x8000105F_u32 as _;
|
||||
pub const HHACT_BACK: i32 = 7i32;
|
||||
pub const HHACT_CONTRACT: i32 = 6i32;
|
||||
pub const HHACT_CUSTOMIZE: i32 = 16i32;
|
||||
pub const HHACT_EXPAND: i32 = 5i32;
|
||||
pub const HHACT_FORWARD: i32 = 8i32;
|
||||
pub const HHACT_HIGHLIGHT: i32 = 15i32;
|
||||
pub const HHACT_HOME: i32 = 11i32;
|
||||
pub const HHACT_JUMP1: i32 = 17i32;
|
||||
pub const HHACT_JUMP2: i32 = 18i32;
|
||||
pub const HHACT_LAST_ENUM: i32 = 23i32;
|
||||
pub const HHACT_NOTES: i32 = 22i32;
|
||||
pub const HHACT_OPTIONS: i32 = 13i32;
|
||||
pub const HHACT_PRINT: i32 = 14i32;
|
||||
pub const HHACT_REFRESH: i32 = 10i32;
|
||||
pub const HHACT_STOP: i32 = 9i32;
|
||||
pub const HHACT_SYNC: i32 = 12i32;
|
||||
pub const HHACT_TAB_CONTENTS: i32 = 0i32;
|
||||
pub const HHACT_TAB_FAVORITES: i32 = 4i32;
|
||||
pub const HHACT_TAB_HISTORY: i32 = 3i32;
|
||||
pub const HHACT_TAB_INDEX: i32 = 1i32;
|
||||
pub const HHACT_TAB_SEARCH: i32 = 2i32;
|
||||
pub const HHACT_TOC_NEXT: i32 = 20i32;
|
||||
pub const HHACT_TOC_PREV: i32 = 21i32;
|
||||
pub const HHACT_ZOOM: i32 = 19i32;
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_UI_Controls")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HHNTRACK {
|
||||
pub hdr: super::super::UI::Controls::NMHDR,
|
||||
pub pszCurUrl: windows_sys::core::PCSTR,
|
||||
pub idAction: i32,
|
||||
pub phhWinType: *mut HH_WINTYPE,
|
||||
}
|
||||
#[cfg(feature = "Win32_UI_Controls")]
|
||||
impl Default for HHNTRACK {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const HHN_FIRST: u32 = 4294966436u32;
|
||||
pub const HHN_LAST: u32 = 4294966417u32;
|
||||
pub const HHN_NAVCOMPLETE: u32 = 4294966436u32;
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_UI_Controls")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HHN_NOTIFY {
|
||||
pub hdr: super::super::UI::Controls::NMHDR,
|
||||
pub pszUrl: windows_sys::core::PCSTR,
|
||||
}
|
||||
#[cfg(feature = "Win32_UI_Controls")]
|
||||
impl Default for HHN_NOTIFY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const HHN_TRACK: u32 = 4294966435u32;
|
||||
pub const HHN_WINDOW_CREATE: u32 = 4294966434u32;
|
||||
pub const HHWIN_BUTTON_BACK: u32 = 4u32;
|
||||
pub const HHWIN_BUTTON_BROWSE_BCK: u32 = 256u32;
|
||||
pub const HHWIN_BUTTON_BROWSE_FWD: u32 = 128u32;
|
||||
pub const HHWIN_BUTTON_CONTENTS: u32 = 1024u32;
|
||||
pub const HHWIN_BUTTON_EXPAND: u32 = 2u32;
|
||||
pub const HHWIN_BUTTON_FAVORITES: u32 = 131072u32;
|
||||
pub const HHWIN_BUTTON_FORWARD: u32 = 8u32;
|
||||
pub const HHWIN_BUTTON_HISTORY: u32 = 65536u32;
|
||||
pub const HHWIN_BUTTON_HOME: u32 = 64u32;
|
||||
pub const HHWIN_BUTTON_INDEX: u32 = 16384u32;
|
||||
pub const HHWIN_BUTTON_JUMP1: u32 = 262144u32;
|
||||
pub const HHWIN_BUTTON_JUMP2: u32 = 524288u32;
|
||||
pub const HHWIN_BUTTON_NOTES: u32 = 512u32;
|
||||
pub const HHWIN_BUTTON_OPTIONS: u32 = 4096u32;
|
||||
pub const HHWIN_BUTTON_PRINT: u32 = 8192u32;
|
||||
pub const HHWIN_BUTTON_REFRESH: u32 = 32u32;
|
||||
pub const HHWIN_BUTTON_SEARCH: u32 = 32768u32;
|
||||
pub const HHWIN_BUTTON_STOP: u32 = 16u32;
|
||||
pub const HHWIN_BUTTON_SYNC: u32 = 2048u32;
|
||||
pub const HHWIN_BUTTON_TOC_NEXT: u32 = 2097152u32;
|
||||
pub const HHWIN_BUTTON_TOC_PREV: u32 = 4194304u32;
|
||||
pub const HHWIN_BUTTON_ZOOM: u32 = 1048576u32;
|
||||
pub const HHWIN_NAVTAB_BOTTOM: i32 = 2i32;
|
||||
pub const HHWIN_NAVTAB_LEFT: i32 = 1i32;
|
||||
pub const HHWIN_NAVTAB_TOP: i32 = 0i32;
|
||||
pub const HHWIN_NAVTYPE_AUTHOR: i32 = 5i32;
|
||||
pub const HHWIN_NAVTYPE_CUSTOM_FIRST: i32 = 11i32;
|
||||
pub const HHWIN_NAVTYPE_FAVORITES: i32 = 3i32;
|
||||
pub const HHWIN_NAVTYPE_HISTORY: i32 = 4i32;
|
||||
pub const HHWIN_NAVTYPE_INDEX: i32 = 1i32;
|
||||
pub const HHWIN_NAVTYPE_SEARCH: i32 = 2i32;
|
||||
pub const HHWIN_NAVTYPE_TOC: i32 = 0i32;
|
||||
pub const HHWIN_PARAM_CUR_TAB: u32 = 8192u32;
|
||||
pub const HHWIN_PARAM_EXPANSION: u32 = 512u32;
|
||||
pub const HHWIN_PARAM_EXSTYLES: u32 = 8u32;
|
||||
pub const HHWIN_PARAM_HISTORY_COUNT: u32 = 4096u32;
|
||||
pub const HHWIN_PARAM_INFOTYPES: u32 = 128u32;
|
||||
pub const HHWIN_PARAM_NAV_WIDTH: u32 = 32u32;
|
||||
pub const HHWIN_PARAM_PROPERTIES: u32 = 2u32;
|
||||
pub const HHWIN_PARAM_RECT: u32 = 16u32;
|
||||
pub const HHWIN_PARAM_SHOWSTATE: u32 = 64u32;
|
||||
pub const HHWIN_PARAM_STYLES: u32 = 4u32;
|
||||
pub const HHWIN_PARAM_TABORDER: u32 = 2048u32;
|
||||
pub const HHWIN_PARAM_TABPOS: u32 = 1024u32;
|
||||
pub const HHWIN_PARAM_TB_FLAGS: u32 = 256u32;
|
||||
pub const HHWIN_PROP_AUTO_SYNC: u32 = 256u32;
|
||||
pub const HHWIN_PROP_CHANGE_TITLE: u32 = 8192u32;
|
||||
pub const HHWIN_PROP_MENU: u32 = 65536u32;
|
||||
pub const HHWIN_PROP_NAV_ONLY_WIN: u32 = 16384u32;
|
||||
pub const HHWIN_PROP_NODEF_EXSTYLES: u32 = 16u32;
|
||||
pub const HHWIN_PROP_NODEF_STYLES: u32 = 8u32;
|
||||
pub const HHWIN_PROP_NOTB_TEXT: u32 = 64u32;
|
||||
pub const HHWIN_PROP_NOTITLEBAR: u32 = 4u32;
|
||||
pub const HHWIN_PROP_NO_TOOLBAR: u32 = 32768u32;
|
||||
pub const HHWIN_PROP_ONTOP: u32 = 2u32;
|
||||
pub const HHWIN_PROP_POST_QUIT: u32 = 128u32;
|
||||
pub const HHWIN_PROP_TAB_ADVSEARCH: u32 = 131072u32;
|
||||
pub const HHWIN_PROP_TAB_AUTOHIDESHOW: u32 = 1u32;
|
||||
pub const HHWIN_PROP_TAB_CUSTOM1: u32 = 524288u32;
|
||||
pub const HHWIN_PROP_TAB_CUSTOM2: u32 = 1048576u32;
|
||||
pub const HHWIN_PROP_TAB_CUSTOM3: u32 = 2097152u32;
|
||||
pub const HHWIN_PROP_TAB_CUSTOM4: u32 = 4194304u32;
|
||||
pub const HHWIN_PROP_TAB_CUSTOM5: u32 = 8388608u32;
|
||||
pub const HHWIN_PROP_TAB_CUSTOM6: u32 = 16777216u32;
|
||||
pub const HHWIN_PROP_TAB_CUSTOM7: u32 = 33554432u32;
|
||||
pub const HHWIN_PROP_TAB_CUSTOM8: u32 = 67108864u32;
|
||||
pub const HHWIN_PROP_TAB_CUSTOM9: u32 = 134217728u32;
|
||||
pub const HHWIN_PROP_TAB_FAVORITES: u32 = 4096u32;
|
||||
pub const HHWIN_PROP_TAB_HISTORY: u32 = 2048u32;
|
||||
pub const HHWIN_PROP_TAB_SEARCH: u32 = 1024u32;
|
||||
pub const HHWIN_PROP_TRACKING: u32 = 512u32;
|
||||
pub const HHWIN_PROP_TRI_PANE: u32 = 32u32;
|
||||
pub const HHWIN_PROP_USER_POS: u32 = 262144u32;
|
||||
pub const HHWIN_TB_MARGIN: u32 = 268435456u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HH_AKLINK {
|
||||
pub cbStruct: i32,
|
||||
pub fReserved: windows_sys::core::BOOL,
|
||||
pub pszKeywords: *mut i8,
|
||||
pub pszUrl: *mut i8,
|
||||
pub pszMsgText: *mut i8,
|
||||
pub pszMsgTitle: *mut i8,
|
||||
pub pszWindow: *mut i8,
|
||||
pub fIndexOnFail: windows_sys::core::BOOL,
|
||||
}
|
||||
impl Default for HH_AKLINK {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const HH_ALINK_LOOKUP: HTML_HELP_COMMAND = 19i32;
|
||||
pub const HH_CLOSE_ALL: HTML_HELP_COMMAND = 18i32;
|
||||
pub const HH_DISPLAY_INDEX: HTML_HELP_COMMAND = 2i32;
|
||||
pub const HH_DISPLAY_SEARCH: HTML_HELP_COMMAND = 3i32;
|
||||
pub const HH_DISPLAY_TEXT_POPUP: HTML_HELP_COMMAND = 14i32;
|
||||
pub const HH_DISPLAY_TOC: HTML_HELP_COMMAND = 1i32;
|
||||
pub const HH_DISPLAY_TOPIC: HTML_HELP_COMMAND = 0i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HH_ENUM_CAT {
|
||||
pub cbStruct: i32,
|
||||
pub pszCatName: windows_sys::core::PCSTR,
|
||||
pub pszCatDescription: windows_sys::core::PCSTR,
|
||||
}
|
||||
impl Default for HH_ENUM_CAT {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const HH_ENUM_CATEGORY: HTML_HELP_COMMAND = 21i32;
|
||||
pub const HH_ENUM_CATEGORY_IT: HTML_HELP_COMMAND = 22i32;
|
||||
pub const HH_ENUM_INFO_TYPE: HTML_HELP_COMMAND = 7i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HH_ENUM_IT {
|
||||
pub cbStruct: i32,
|
||||
pub iType: i32,
|
||||
pub pszCatName: windows_sys::core::PCSTR,
|
||||
pub pszITName: windows_sys::core::PCSTR,
|
||||
pub pszITDescription: windows_sys::core::PCSTR,
|
||||
}
|
||||
impl Default for HH_ENUM_IT {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const HH_FTS_DEFAULT_PROXIMITY: HTML_HELP_COMMAND = -1i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HH_FTS_QUERY {
|
||||
pub cbStruct: i32,
|
||||
pub fUniCodeStrings: windows_sys::core::BOOL,
|
||||
pub pszSearchQuery: *mut i8,
|
||||
pub iProximity: i32,
|
||||
pub fStemmedSearch: windows_sys::core::BOOL,
|
||||
pub fTitleOnly: windows_sys::core::BOOL,
|
||||
pub fExecute: windows_sys::core::BOOL,
|
||||
pub pszWindow: *mut i8,
|
||||
}
|
||||
impl Default for HH_FTS_QUERY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const HH_GET_LAST_ERROR: HTML_HELP_COMMAND = 20i32;
|
||||
pub const HH_GET_WIN_HANDLE: HTML_HELP_COMMAND = 6i32;
|
||||
pub const HH_GET_WIN_TYPE: HTML_HELP_COMMAND = 5i32;
|
||||
#[repr(C)]
|
||||
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HH_GLOBAL_PROPERTY {
|
||||
pub id: HH_GPROPID,
|
||||
pub var: super::super::System::Variant::VARIANT,
|
||||
}
|
||||
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))]
|
||||
impl Default for HH_GLOBAL_PROPERTY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type HH_GPROPID = i32;
|
||||
pub const HH_GPROPID_CONTENT_LANGUAGE: HH_GPROPID = 5i32;
|
||||
pub const HH_GPROPID_CURRENT_SUBSET: HH_GPROPID = 4i32;
|
||||
pub const HH_GPROPID_SINGLETHREAD: HH_GPROPID = 1i32;
|
||||
pub const HH_GPROPID_TOOLBAR_MARGIN: HH_GPROPID = 2i32;
|
||||
pub const HH_GPROPID_UI_LANGUAGE: HH_GPROPID = 3i32;
|
||||
pub const HH_HELP_CONTEXT: HTML_HELP_COMMAND = 15i32;
|
||||
pub const HH_HELP_FINDER: HTML_HELP_COMMAND = 0i32;
|
||||
pub const HH_INITIALIZE: HTML_HELP_COMMAND = 28i32;
|
||||
pub const HH_KEYWORD_LOOKUP: HTML_HELP_COMMAND = 13i32;
|
||||
pub const HH_MAX_TABS: HTML_HELP_COMMAND = 19i32;
|
||||
pub const HH_MAX_TABS_CUSTOM: HTML_HELP_COMMAND = 9i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HH_POPUP {
|
||||
pub cbStruct: i32,
|
||||
pub hinst: super::super::Foundation::HINSTANCE,
|
||||
pub idString: u32,
|
||||
pub pszText: *mut i8,
|
||||
pub pt: super::super::Foundation::POINT,
|
||||
pub clrForeground: super::super::Foundation::COLORREF,
|
||||
pub clrBackground: super::super::Foundation::COLORREF,
|
||||
pub rcMargins: super::super::Foundation::RECT,
|
||||
pub pszFont: *mut i8,
|
||||
}
|
||||
impl Default for HH_POPUP {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const HH_PRETRANSLATEMESSAGE: HTML_HELP_COMMAND = 253i32;
|
||||
pub const HH_RESERVED1: HTML_HELP_COMMAND = 10i32;
|
||||
pub const HH_RESERVED2: HTML_HELP_COMMAND = 11i32;
|
||||
pub const HH_RESERVED3: HTML_HELP_COMMAND = 12i32;
|
||||
pub const HH_RESET_IT_FILTER: HTML_HELP_COMMAND = 23i32;
|
||||
pub const HH_SAFE_DISPLAY_TOPIC: HTML_HELP_COMMAND = 32i32;
|
||||
pub const HH_SET_EXCLUSIVE_FILTER: HTML_HELP_COMMAND = 25i32;
|
||||
pub const HH_SET_GLOBAL_PROPERTY: HTML_HELP_COMMAND = 252i32;
|
||||
pub const HH_SET_INCLUSIVE_FILTER: HTML_HELP_COMMAND = 24i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HH_SET_INFOTYPE {
|
||||
pub cbStruct: i32,
|
||||
pub pszCatName: windows_sys::core::PCSTR,
|
||||
pub pszInfoTypeName: windows_sys::core::PCSTR,
|
||||
}
|
||||
impl Default for HH_SET_INFOTYPE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const HH_SET_INFO_TYPE: HTML_HELP_COMMAND = 8i32;
|
||||
pub const HH_SET_QUERYSERVICE: HTML_HELP_COMMAND = 30i32;
|
||||
pub const HH_SET_WIN_TYPE: HTML_HELP_COMMAND = 4i32;
|
||||
pub const HH_SYNC: HTML_HELP_COMMAND = 9i32;
|
||||
pub const HH_TAB_AUTHOR: i32 = 5i32;
|
||||
pub const HH_TAB_CONTENTS: i32 = 0i32;
|
||||
pub const HH_TAB_CUSTOM_FIRST: i32 = 11i32;
|
||||
pub const HH_TAB_CUSTOM_LAST: i32 = 19i32;
|
||||
pub const HH_TAB_FAVORITES: i32 = 3i32;
|
||||
pub const HH_TAB_HISTORY: i32 = 4i32;
|
||||
pub const HH_TAB_INDEX: i32 = 1i32;
|
||||
pub const HH_TAB_SEARCH: i32 = 2i32;
|
||||
pub const HH_TP_HELP_CONTEXTMENU: HTML_HELP_COMMAND = 16i32;
|
||||
pub const HH_TP_HELP_WM_HELP: HTML_HELP_COMMAND = 17i32;
|
||||
pub const HH_UNINITIALIZE: HTML_HELP_COMMAND = 29i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HH_WINTYPE {
|
||||
pub cbStruct: i32,
|
||||
pub fUniCodeStrings: windows_sys::core::BOOL,
|
||||
pub pszType: *mut i8,
|
||||
pub fsValidMembers: u32,
|
||||
pub fsWinProperties: u32,
|
||||
pub pszCaption: *mut i8,
|
||||
pub dwStyles: u32,
|
||||
pub dwExStyles: u32,
|
||||
pub rcWindowPos: super::super::Foundation::RECT,
|
||||
pub nShowState: i32,
|
||||
pub hwndHelp: super::super::Foundation::HWND,
|
||||
pub hwndCaller: super::super::Foundation::HWND,
|
||||
pub paInfoTypes: *mut u32,
|
||||
pub hwndToolBar: super::super::Foundation::HWND,
|
||||
pub hwndNavigation: super::super::Foundation::HWND,
|
||||
pub hwndHTML: super::super::Foundation::HWND,
|
||||
pub iNavWidth: i32,
|
||||
pub rcHTML: super::super::Foundation::RECT,
|
||||
pub pszToc: *mut i8,
|
||||
pub pszIndex: *mut i8,
|
||||
pub pszFile: *mut i8,
|
||||
pub pszHome: *mut i8,
|
||||
pub fsToolBarFlags: u32,
|
||||
pub fNotExpanded: windows_sys::core::BOOL,
|
||||
pub curNavType: i32,
|
||||
pub tabpos: i32,
|
||||
pub idNotify: i32,
|
||||
pub tabOrder: [u8; 20],
|
||||
pub cHistory: i32,
|
||||
pub pszJump1: *mut i8,
|
||||
pub pszJump2: *mut i8,
|
||||
pub pszUrlJump1: *mut i8,
|
||||
pub pszUrlJump2: *mut i8,
|
||||
pub rcMinSize: super::super::Foundation::RECT,
|
||||
pub cbInfoTypes: i32,
|
||||
pub pszCustomTabs: *mut i8,
|
||||
}
|
||||
impl Default for HH_WINTYPE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type HTML_HELP_COMMAND = i32;
|
||||
pub const IDTB_BACK: u32 = 204u32;
|
||||
pub const IDTB_BROWSE_BACK: u32 = 212u32;
|
||||
pub const IDTB_BROWSE_FWD: u32 = 211u32;
|
||||
pub const IDTB_CONTENTS: u32 = 213u32;
|
||||
pub const IDTB_CONTRACT: u32 = 201u32;
|
||||
pub const IDTB_CUSTOMIZE: u32 = 221u32;
|
||||
pub const IDTB_EXPAND: u32 = 200u32;
|
||||
pub const IDTB_FAVORITES: u32 = 217u32;
|
||||
pub const IDTB_FORWARD: u32 = 209u32;
|
||||
pub const IDTB_HISTORY: u32 = 216u32;
|
||||
pub const IDTB_HOME: u32 = 205u32;
|
||||
pub const IDTB_INDEX: u32 = 214u32;
|
||||
pub const IDTB_JUMP1: u32 = 218u32;
|
||||
pub const IDTB_JUMP2: u32 = 219u32;
|
||||
pub const IDTB_NOTES: u32 = 210u32;
|
||||
pub const IDTB_OPTIONS: u32 = 208u32;
|
||||
pub const IDTB_PRINT: u32 = 207u32;
|
||||
pub const IDTB_REFRESH: u32 = 203u32;
|
||||
pub const IDTB_SEARCH: u32 = 215u32;
|
||||
pub const IDTB_STOP: u32 = 202u32;
|
||||
pub const IDTB_SYNC: u32 = 206u32;
|
||||
pub const IDTB_TOC_NEXT: u32 = 223u32;
|
||||
pub const IDTB_TOC_PREV: u32 = 224u32;
|
||||
pub const IDTB_ZOOM: u32 = 222u32;
|
||||
pub const IITWBC_BREAK_ACCEPT_WILDCARDS: u32 = 1u32;
|
||||
pub const IITWBC_BREAK_AND_STEM: u32 = 2u32;
|
||||
pub const ITWW_CBKEY_MAX: u32 = 1024u32;
|
||||
pub const ITWW_OPEN_NOCONNECT: u32 = 1u32;
|
||||
pub const IT_EXCLUSIVE: i32 = 1i32;
|
||||
pub const IT_HIDDEN: i32 = 2i32;
|
||||
pub const IT_INCLUSIVE: i32 = 0i32;
|
||||
pub const MAX_COLUMNS: u32 = 256u32;
|
||||
pub type PFNCOLHEAPFREE = Option<unsafe extern "system" fn(param0: *mut core::ffi::c_void) -> i32>;
|
||||
pub type PRIORITY = i32;
|
||||
pub const PRIORITY_HIGH: PRIORITY = 2i32;
|
||||
pub const PRIORITY_LOW: PRIORITY = 0i32;
|
||||
pub const PRIORITY_NORMAL: PRIORITY = 1i32;
|
||||
pub const PROP_ADD: u32 = 0u32;
|
||||
pub const PROP_DELETE: u32 = 1u32;
|
||||
pub const PROP_UPDATE: u32 = 2u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct ROWSTATUS {
|
||||
pub lRowFirst: i32,
|
||||
pub cRows: i32,
|
||||
pub cProperties: i32,
|
||||
pub cRowsTotal: i32,
|
||||
}
|
||||
pub const STDPROP_DISPLAYKEY: u32 = 101u32;
|
||||
pub const STDPROP_INDEX_BREAK: u32 = 204u32;
|
||||
pub const STDPROP_INDEX_DTYPE: u32 = 202u32;
|
||||
pub const STDPROP_INDEX_LENGTH: u32 = 203u32;
|
||||
pub const STDPROP_INDEX_TERM: u32 = 210u32;
|
||||
pub const STDPROP_INDEX_TERM_RAW_LENGTH: u32 = 211u32;
|
||||
pub const STDPROP_INDEX_TEXT: u32 = 200u32;
|
||||
pub const STDPROP_INDEX_VFLD: u32 = 201u32;
|
||||
pub const STDPROP_KEY: u32 = 4u32;
|
||||
pub const STDPROP_SORTKEY: u32 = 100u32;
|
||||
pub const STDPROP_SORTORDINAL: u32 = 102u32;
|
||||
pub const STDPROP_TITLE: u32 = 2u32;
|
||||
pub const STDPROP_UID: u32 = 1u32;
|
||||
pub const STDPROP_USERDATA: u32 = 3u32;
|
||||
pub const STDPROP_USERPROP_BASE: u32 = 65536u32;
|
||||
pub const STDPROP_USERPROP_MAX: u32 = 2147483647u32;
|
||||
pub const SZ_WWDEST_GLOBAL: windows_sys::core::PCWSTR = windows_sys::core::w!("GLOBAL");
|
||||
pub const SZ_WWDEST_KEY: windows_sys::core::PCWSTR = windows_sys::core::w!("KEY");
|
||||
pub const SZ_WWDEST_OCC: windows_sys::core::PCWSTR = windows_sys::core::w!("OCC");
|
||||
pub const TYPE_POINTER: u32 = 1u32;
|
||||
pub const TYPE_STRING: u32 = 2u32;
|
||||
pub const TYPE_VALUE: u32 = 0u32;
|
||||
+262
@@ -0,0 +1,262 @@
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMAcquireAdvisories(hlicensestorage : u32, wszlicense : windows_sys::core::PCWSTR, wszurl : windows_sys::core::PCWSTR, pvcontext : *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMAcquireIssuanceLicenseTemplate(hclient : u32, uflags : u32, pvreserved : *mut core::ffi::c_void, ctemplates : u32, pwsztemplateids : *const windows_sys::core::PCWSTR, wszurl : windows_sys::core::PCWSTR, pvcontext : *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMAcquireLicense(hsession : u32, uflags : u32, wszgroupidentitycredential : windows_sys::core::PCWSTR, wszrequestedrights : windows_sys::core::PCWSTR, wszcustomdata : windows_sys::core::PCWSTR, wszurl : windows_sys::core::PCWSTR, pvcontext : *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMActivate(hclient : u32, uflags : u32, ulangid : u32, pactservinfo : *mut DRM_ACTSERV_INFO, pvcontext : *mut core::ffi::c_void, hparentwnd : super::super::Foundation:: HWND) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMAddLicense(hlicensestorage : u32, uflags : u32, wszlicense : windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMAddRightWithUser(hissuancelicense : u32, hright : u32, huser : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMAttest(henablingprincipal : u32, wszdata : windows_sys::core::PCWSTR, etype : DRMATTESTTYPE, pcattestedblob : *mut u32, wszattestedblob : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCheckSecurity(henv : u32, clevel : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMClearAllRights(hissuancelicense : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCloseEnvironmentHandle(henv : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCloseHandle(handle : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMClosePubHandle(hpub : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCloseQueryHandle(hquery : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCloseSession(hsession : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMConstructCertificateChain(ccertificates : u32, rgwszcertificates : *const windows_sys::core::PCWSTR, pcchain : *mut u32, wszchain : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCreateBoundLicense(henv : u32, pparams : *mut DRMBOUNDLICENSEPARAMS, wszlicensechain : windows_sys::core::PCWSTR, phboundlicense : *mut u32, pherrorlog : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCreateClientSession(pfncallback : DRMCALLBACK, ucallbackversion : u32, wszgroupidprovidertype : windows_sys::core::PCWSTR, wszgroupid : windows_sys::core::PCWSTR, phclient : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCreateEnablingBitsDecryptor(hboundlicense : u32, wszright : windows_sys::core::PCWSTR, hauxlib : u32, wszauxplug : windows_sys::core::PCWSTR, phdecryptor : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCreateEnablingBitsEncryptor(hboundlicense : u32, wszright : windows_sys::core::PCWSTR, hauxlib : u32, wszauxplug : windows_sys::core::PCWSTR, phencryptor : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCreateEnablingPrincipal(henv : u32, hlibrary : u32, wszobject : windows_sys::core::PCWSTR, pidprincipal : *mut DRMID, wszcredentials : windows_sys::core::PCWSTR, phenablingprincipal : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCreateIssuanceLicense(psttimefrom : *mut super::super::Foundation:: SYSTEMTIME, psttimeuntil : *mut super::super::Foundation:: SYSTEMTIME, wszreferralinfoname : windows_sys::core::PCWSTR, wszreferralinfourl : windows_sys::core::PCWSTR, howner : u32, wszissuancelicense : windows_sys::core::PCWSTR, hboundlicense : u32, phissuancelicense : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCreateLicenseStorageSession(henv : u32, hdefaultlibrary : u32, hclient : u32, uflags : u32, wszissuancelicense : windows_sys::core::PCWSTR, phlicensestorage : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCreateRight(wszrightname : windows_sys::core::PCWSTR, pstfrom : *mut super::super::Foundation:: SYSTEMTIME, pstuntil : *mut super::super::Foundation:: SYSTEMTIME, cextendedinfo : u32, pwszextendedinfoname : *const windows_sys::core::PCWSTR, pwszextendedinfovalue : *const windows_sys::core::PCWSTR, phright : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMCreateUser(wszusername : windows_sys::core::PCWSTR, wszuserid : windows_sys::core::PCWSTR, wszuseridtype : windows_sys::core::PCWSTR, phuser : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMDecode(wszalgid : windows_sys::core::PCWSTR, wszencodedstring : windows_sys::core::PCWSTR, pudecodeddatalen : *mut u32, pbdecodeddata : *mut u8) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMDeconstructCertificateChain(wszchain : windows_sys::core::PCWSTR, iwhich : u32, pccert : *mut u32, wszcert : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMDecrypt(hcryptoprovider : u32, iposition : u32, cnuminbytes : u32, pbindata : *mut u8, pcnumoutbytes : *mut u32, pboutdata : *mut u8) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMDeleteLicense(hsession : u32, wszlicenseid : windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMDuplicateEnvironmentHandle(htocopy : u32, phcopy : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMDuplicateHandle(htocopy : u32, phcopy : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMDuplicatePubHandle(hpubin : u32, phpubout : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMDuplicateSession(hsessionin : u32, phsessionout : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMEncode(wszalgid : windows_sys::core::PCWSTR, udatalen : u32, pbdecodeddata : *mut u8, puencodedstringlen : *mut u32, wszencodedstring : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMEncrypt(hcryptoprovider : u32, iposition : u32, cnuminbytes : u32, pbindata : *mut u8, pcnumoutbytes : *mut u32, pboutdata : *mut u8) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMEnumerateLicense(hsession : u32, uflags : u32, uindex : u32, pfsharedflag : *mut windows_sys::core::BOOL, pucertificatedatalen : *mut u32, wszcertificatedata : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetApplicationSpecificData(hissuancelicense : u32, uindex : u32, punamelength : *mut u32, wszname : windows_sys::core::PWSTR, puvaluelength : *mut u32, wszvalue : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetBoundLicenseAttribute(hqueryroot : u32, wszattribute : windows_sys::core::PCWSTR, iwhich : u32, peencoding : *mut DRMENCODINGTYPE, pcbuffer : *mut u32, pbbuffer : *mut u8) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetBoundLicenseAttributeCount(hqueryroot : u32, wszattribute : windows_sys::core::PCWSTR, pcattributes : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetBoundLicenseObject(hqueryroot : u32, wszsubobjecttype : windows_sys::core::PCWSTR, iwhich : u32, phsubobject : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetBoundLicenseObjectCount(hqueryroot : u32, wszsubobjecttype : windows_sys::core::PCWSTR, pcsubobjects : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetCertificateChainCount(wszchain : windows_sys::core::PCWSTR, pccertcount : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetClientVersion(pdrmclientversioninfo : *mut DRM_CLIENT_VERSION_INFO) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetEnvironmentInfo(handle : u32, wszattribute : windows_sys::core::PCWSTR, peencoding : *mut DRMENCODINGTYPE, pcbuffer : *mut u32, pbbuffer : *mut u8) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetInfo(handle : u32, wszattribute : windows_sys::core::PCWSTR, peencoding : *const DRMENCODINGTYPE, pcbuffer : *mut u32, pbbuffer : *mut u8) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetIntervalTime(hissuancelicense : u32, pcdays : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetIssuanceLicenseInfo(hissuancelicense : u32, psttimefrom : *mut super::super::Foundation:: SYSTEMTIME, psttimeuntil : *mut super::super::Foundation:: SYSTEMTIME, uflags : u32, pudistributionpointnamelength : *mut u32, wszdistributionpointname : windows_sys::core::PWSTR, pudistributionpointurllength : *mut u32, wszdistributionpointurl : windows_sys::core::PWSTR, phowner : *mut u32, pfofficial : *mut windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetIssuanceLicenseTemplate(hissuancelicense : u32, puissuancelicensetemplatelength : *mut u32, wszissuancelicensetemplate : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetMetaData(hissuancelicense : u32, pucontentidlength : *mut u32, wszcontentid : windows_sys::core::PWSTR, pucontentidtypelength : *mut u32, wszcontentidtype : windows_sys::core::PWSTR, puskuidlength : *mut u32, wszskuid : windows_sys::core::PWSTR, puskuidtypelength : *mut u32, wszskuidtype : windows_sys::core::PWSTR, pucontenttypelength : *mut u32, wszcontenttype : windows_sys::core::PWSTR, pucontentnamelength : *mut u32, wszcontentname : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetNameAndDescription(hissuancelicense : u32, uindex : u32, pulcid : *mut u32, punamelength : *mut u32, wszname : windows_sys::core::PWSTR, pudescriptionlength : *mut u32, wszdescription : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetOwnerLicense(hissuancelicense : u32, puownerlicenselength : *mut u32, wszownerlicense : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetProcAddress(hlibrary : u32, wszprocname : windows_sys::core::PCWSTR, ppfnprocaddress : *mut super::super::Foundation:: FARPROC) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetRevocationPoint(hissuancelicense : u32, puidlength : *mut u32, wszid : windows_sys::core::PWSTR, puidtypelength : *mut u32, wszidtype : windows_sys::core::PWSTR, puurllength : *mut u32, wszrl : windows_sys::core::PWSTR, pstfrequency : *mut super::super::Foundation:: SYSTEMTIME, punamelength : *mut u32, wszname : windows_sys::core::PWSTR, pupublickeylength : *mut u32, wszpublickey : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetRightExtendedInfo(hright : u32, uindex : u32, puextendedinfonamelength : *mut u32, wszextendedinfoname : windows_sys::core::PWSTR, puextendedinfovaluelength : *mut u32, wszextendedinfovalue : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetRightInfo(hright : u32, purightnamelength : *mut u32, wszrightname : windows_sys::core::PWSTR, pstfrom : *mut super::super::Foundation:: SYSTEMTIME, pstuntil : *mut super::super::Foundation:: SYSTEMTIME) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetSecurityProvider(uflags : u32, putypelen : *mut u32, wsztype : windows_sys::core::PWSTR, pupathlen : *mut u32, wszpath : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetServiceLocation(hclient : u32, uservicetype : u32, uservicelocation : u32, wszissuancelicense : windows_sys::core::PCWSTR, puserviceurllength : *mut u32, wszserviceurl : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetSignedIssuanceLicense(henv : u32, hissuancelicense : u32, uflags : u32, pbsymkey : *mut u8, cbsymkey : u32, wszsymkeytype : windows_sys::core::PCWSTR, wszclientlicensorcertificate : windows_sys::core::PCWSTR, pfncallback : DRMCALLBACK, wszurl : windows_sys::core::PCWSTR, pvcontext : *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetSignedIssuanceLicenseEx(henv : u32, hissuancelicense : u32, uflags : u32, pbsymkey : *const u8, cbsymkey : u32, wszsymkeytype : windows_sys::core::PCWSTR, pvreserved : *const core::ffi::c_void, henablingprincipal : u32, hboundlicenseclc : u32, pfncallback : DRMCALLBACK, pvcontext : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetTime(henv : u32, etimeridtype : DRMTIMETYPE, potimeobject : *mut super::super::Foundation:: SYSTEMTIME) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetUnboundLicenseAttribute(hqueryroot : u32, wszattributetype : windows_sys::core::PCWSTR, iwhich : u32, peencoding : *mut DRMENCODINGTYPE, pcbuffer : *mut u32, pbbuffer : *mut u8) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetUnboundLicenseAttributeCount(hqueryroot : u32, wszattributetype : windows_sys::core::PCWSTR, pcattributes : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetUnboundLicenseObject(hqueryroot : u32, wszsubobjecttype : windows_sys::core::PCWSTR, iindex : u32, phsubquery : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetUnboundLicenseObjectCount(hqueryroot : u32, wszsubobjecttype : windows_sys::core::PCWSTR, pcsubobjects : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetUsagePolicy(hissuancelicense : u32, uindex : u32, peusagepolicytype : *mut DRM_USAGEPOLICY_TYPE, pfexclusion : *mut windows_sys::core::BOOL, punamelength : *mut u32, wszname : windows_sys::core::PWSTR, puminversionlength : *mut u32, wszminversion : windows_sys::core::PWSTR, pumaxversionlength : *mut u32, wszmaxversion : windows_sys::core::PWSTR, pupublickeylength : *mut u32, wszpublickey : windows_sys::core::PWSTR, pudigestalgorithmlength : *mut u32, wszdigestalgorithm : windows_sys::core::PWSTR, pcbdigest : *mut u32, pbdigest : *mut u8) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetUserInfo(huser : u32, puusernamelength : *mut u32, wszusername : windows_sys::core::PWSTR, puuseridlength : *mut u32, wszuserid : windows_sys::core::PWSTR, puuseridtypelength : *mut u32, wszuseridtype : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetUserRights(hissuancelicense : u32, huser : u32, uindex : u32, phright : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMGetUsers(hissuancelicense : u32, uindex : u32, phuser : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMInitEnvironment(esecurityprovidertype : DRMSECURITYPROVIDERTYPE, especification : DRMSPECTYPE, wszsecurityprovider : windows_sys::core::PCWSTR, wszmanifestcredentials : windows_sys::core::PCWSTR, wszmachinecredentials : windows_sys::core::PCWSTR, phenv : *mut u32, phdefaultlibrary : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMIsActivated(hclient : u32, uflags : u32, pactservinfo : *mut DRM_ACTSERV_INFO) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMIsWindowProtected(hwnd : super::super::Foundation:: HWND, pfprotected : *mut windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMLoadLibrary(henv : u32, especification : DRMSPECTYPE, wszlibraryprovider : windows_sys::core::PCWSTR, wszcredentials : windows_sys::core::PCWSTR, phlibrary : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMParseUnboundLicense(wszcertificate : windows_sys::core::PCWSTR, phqueryroot : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMRegisterContent(fregister : windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMRegisterProtectedWindow(henv : u32, hwnd : super::super::Foundation:: HWND) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMRegisterRevocationList(henv : u32, wszrevocationlist : windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMRepair() -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMSetApplicationSpecificData(hissuancelicense : u32, fdelete : windows_sys::core::BOOL, wszname : windows_sys::core::PCWSTR, wszvalue : windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMSetGlobalOptions(eglobaloptions : DRMGLOBALOPTIONS, pvdata : *mut core::ffi::c_void, dwlen : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMSetIntervalTime(hissuancelicense : u32, cdays : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMSetMetaData(hissuancelicense : u32, wszcontentid : windows_sys::core::PCWSTR, wszcontentidtype : windows_sys::core::PCWSTR, wszskuid : windows_sys::core::PCWSTR, wszskuidtype : windows_sys::core::PCWSTR, wszcontenttype : windows_sys::core::PCWSTR, wszcontentname : windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMSetNameAndDescription(hissuancelicense : u32, fdelete : windows_sys::core::BOOL, lcid : u32, wszname : windows_sys::core::PCWSTR, wszdescription : windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMSetRevocationPoint(hissuancelicense : u32, fdelete : windows_sys::core::BOOL, wszid : windows_sys::core::PCWSTR, wszidtype : windows_sys::core::PCWSTR, wszurl : windows_sys::core::PCWSTR, pstfrequency : *mut super::super::Foundation:: SYSTEMTIME, wszname : windows_sys::core::PCWSTR, wszpublickey : windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMSetUsagePolicy(hissuancelicense : u32, eusagepolicytype : DRM_USAGEPOLICY_TYPE, fdelete : windows_sys::core::BOOL, fexclusion : windows_sys::core::BOOL, wszname : windows_sys::core::PCWSTR, wszminversion : windows_sys::core::PCWSTR, wszmaxversion : windows_sys::core::PCWSTR, wszpublickey : windows_sys::core::PCWSTR, wszdigestalgorithm : windows_sys::core::PCWSTR, pbdigest : *mut u8, cbdigest : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdrm.dll" "system" fn DRMVerify(wszdata : windows_sys::core::PCWSTR, pcattesteddata : *mut u32, wszattesteddata : windows_sys::core::PWSTR, petype : *mut DRMATTESTTYPE, pcprincipal : *mut u32, wszprincipal : windows_sys::core::PWSTR, pcmanifest : *mut u32, wszmanifest : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
pub const DRMACTSERVINFOVERSION: u32 = 0u32;
|
||||
pub type DRMATTESTTYPE = i32;
|
||||
pub const DRMATTESTTYPE_FULLENVIRONMENT: DRMATTESTTYPE = 0i32;
|
||||
pub const DRMATTESTTYPE_HASHONLY: DRMATTESTTYPE = 1i32;
|
||||
pub const DRMBINDINGFLAGS_IGNORE_VALIDITY_INTERVALS: u32 = 1u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DRMBOUNDLICENSEPARAMS {
|
||||
pub uVersion: u32,
|
||||
pub hEnablingPrincipal: u32,
|
||||
pub hSecureStore: u32,
|
||||
pub wszRightsRequested: windows_sys::core::PWSTR,
|
||||
pub wszRightsGroup: windows_sys::core::PWSTR,
|
||||
pub idResource: DRMID,
|
||||
pub cAuthenticatorCount: u32,
|
||||
pub rghAuthenticators: *mut u32,
|
||||
pub wszDefaultEnablingPrincipalCredentials: windows_sys::core::PWSTR,
|
||||
pub dwFlags: u32,
|
||||
}
|
||||
impl Default for DRMBOUNDLICENSEPARAMS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DRMBOUNDLICENSEPARAMSVERSION: u32 = 1u32;
|
||||
pub type DRMCALLBACK = Option<unsafe extern "system" fn(param0: DRM_STATUS_MSG, param1: windows_sys::core::HRESULT, param2: *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_sys::core::HRESULT>;
|
||||
pub const DRMCALLBACKVERSION: u32 = 1u32;
|
||||
pub const DRMCLIENTSTRUCTVERSION: u32 = 1u32;
|
||||
pub type DRMENCODINGTYPE = i32;
|
||||
pub const DRMENCODINGTYPE_BASE64: DRMENCODINGTYPE = 0i32;
|
||||
pub const DRMENCODINGTYPE_LONG: DRMENCODINGTYPE = 2i32;
|
||||
pub const DRMENCODINGTYPE_RAW: DRMENCODINGTYPE = 5i32;
|
||||
pub const DRMENCODINGTYPE_STRING: DRMENCODINGTYPE = 1i32;
|
||||
pub const DRMENCODINGTYPE_TIME: DRMENCODINGTYPE = 3i32;
|
||||
pub const DRMENCODINGTYPE_UINT: DRMENCODINGTYPE = 4i32;
|
||||
pub const DRMENVHANDLE_INVALID: u32 = 0u32;
|
||||
pub type DRMGLOBALOPTIONS = i32;
|
||||
pub const DRMGLOBALOPTIONS_USE_SERVERSECURITYPROCESSOR: DRMGLOBALOPTIONS = 1i32;
|
||||
pub const DRMGLOBALOPTIONS_USE_WINHTTP: DRMGLOBALOPTIONS = 0i32;
|
||||
pub const DRMHANDLE_INVALID: u32 = 0u32;
|
||||
pub const DRMHSESSION_INVALID: u32 = 0u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DRMID {
|
||||
pub uVersion: u32,
|
||||
pub wszIDType: windows_sys::core::PWSTR,
|
||||
pub wszID: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for DRMID {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DRMIDVERSION: u32 = 0u32;
|
||||
pub const DRMLICENSEACQDATAVERSION: u32 = 0u32;
|
||||
pub const DRMPUBHANDLE_INVALID: u32 = 0u32;
|
||||
pub const DRMQUERYHANDLE_INVALID: u32 = 0u32;
|
||||
pub type DRMSECURITYPROVIDERTYPE = i32;
|
||||
pub const DRMSECURITYPROVIDERTYPE_SOFTWARESECREP: DRMSECURITYPROVIDERTYPE = 0i32;
|
||||
pub type DRMSPECTYPE = i32;
|
||||
pub const DRMSPECTYPE_FILENAME: DRMSPECTYPE = 1i32;
|
||||
pub const DRMSPECTYPE_UNKNOWN: DRMSPECTYPE = 0i32;
|
||||
pub type DRMTIMETYPE = i32;
|
||||
pub const DRMTIMETYPE_SYSTEMLOCAL: DRMTIMETYPE = 1i32;
|
||||
pub const DRMTIMETYPE_SYSTEMUTC: DRMTIMETYPE = 0i32;
|
||||
pub const DRM_ACTIVATE_CANCEL: u32 = 8u32;
|
||||
pub const DRM_ACTIVATE_DELAYED: u32 = 64u32;
|
||||
pub const DRM_ACTIVATE_GROUPIDENTITY: u32 = 2u32;
|
||||
pub const DRM_ACTIVATE_MACHINE: u32 = 1u32;
|
||||
pub const DRM_ACTIVATE_SHARED_GROUPIDENTITY: u32 = 32u32;
|
||||
pub const DRM_ACTIVATE_SILENT: u32 = 16u32;
|
||||
pub const DRM_ACTIVATE_TEMPORARY: u32 = 4u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DRM_ACTSERV_INFO {
|
||||
pub uVersion: u32,
|
||||
pub wszPubKey: windows_sys::core::PWSTR,
|
||||
pub wszURL: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for DRM_ACTSERV_INFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DRM_ADD_LICENSE_NOPERSIST: u32 = 0u32;
|
||||
pub const DRM_ADD_LICENSE_PERSIST: u32 = 1u32;
|
||||
pub const DRM_AILT_CANCEL: u32 = 4u32;
|
||||
pub const DRM_AILT_NONSILENT: u32 = 1u32;
|
||||
pub const DRM_AILT_OBTAIN_ALL: u32 = 2u32;
|
||||
pub const DRM_AL_CANCEL: u32 = 4u32;
|
||||
pub const DRM_AL_FETCHNOADVISORY: u32 = 8u32;
|
||||
pub const DRM_AL_NONSILENT: u32 = 1u32;
|
||||
pub const DRM_AL_NOPERSIST: u32 = 2u32;
|
||||
pub const DRM_AL_NOUI: u32 = 16u32;
|
||||
pub const DRM_AUTO_GENERATE_KEY: u32 = 16u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DRM_CLIENT_VERSION_INFO {
|
||||
pub uStructVersion: u32,
|
||||
pub dwVersion: [u32; 4],
|
||||
pub wszHierarchy: [u16; 256],
|
||||
pub wszProductId: [u16; 256],
|
||||
pub wszProductDescription: [u16; 256],
|
||||
}
|
||||
impl Default for DRM_CLIENT_VERSION_INFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DRM_DEFAULTGROUPIDTYPE_PASSPORT: windows_sys::core::PCWSTR = windows_sys::core::w!("PassportAuthProvider");
|
||||
pub const DRM_DEFAULTGROUPIDTYPE_WINDOWSAUTH: windows_sys::core::PCWSTR = windows_sys::core::w!("WindowsAuthProvider");
|
||||
pub type DRM_DISTRIBUTION_POINT_INFO = i32;
|
||||
pub const DRM_DISTRIBUTION_POINT_LICENSE_ACQUISITION: DRM_DISTRIBUTION_POINT_INFO = 0i32;
|
||||
pub const DRM_DISTRIBUTION_POINT_PUBLISHING: DRM_DISTRIBUTION_POINT_INFO = 1i32;
|
||||
pub const DRM_DISTRIBUTION_POINT_REFERRAL_INFO: DRM_DISTRIBUTION_POINT_INFO = 2i32;
|
||||
pub const DRM_EL_CLIENTLICENSOR: u32 = 128u32;
|
||||
pub const DRM_EL_CLIENTLICENSOR_LID: u32 = 256u32;
|
||||
pub const DRM_EL_EUL: u32 = 32u32;
|
||||
pub const DRM_EL_EUL_LID: u32 = 64u32;
|
||||
pub const DRM_EL_EXPIRED: u32 = 4096u32;
|
||||
pub const DRM_EL_GROUPIDENTITY: u32 = 2u32;
|
||||
pub const DRM_EL_GROUPIDENTITY_LID: u32 = 8u32;
|
||||
pub const DRM_EL_GROUPIDENTITY_NAME: u32 = 4u32;
|
||||
pub const DRM_EL_ISSUANCELICENSE_TEMPLATE: u32 = 16384u32;
|
||||
pub const DRM_EL_ISSUANCELICENSE_TEMPLATE_LID: u32 = 32768u32;
|
||||
pub const DRM_EL_ISSUERNAME: u32 = 8192u32;
|
||||
pub const DRM_EL_MACHINE: u32 = 1u32;
|
||||
pub const DRM_EL_REVOCATIONLIST: u32 = 1024u32;
|
||||
pub const DRM_EL_REVOCATIONLIST_LID: u32 = 2048u32;
|
||||
pub const DRM_EL_SPECIFIED_CLIENTLICENSOR: u32 = 512u32;
|
||||
pub const DRM_EL_SPECIFIED_GROUPIDENTITY: u32 = 16u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DRM_LICENSE_ACQ_DATA {
|
||||
pub uVersion: u32,
|
||||
pub wszURL: windows_sys::core::PWSTR,
|
||||
pub wszLocalFilename: windows_sys::core::PWSTR,
|
||||
pub pbPostData: *mut u8,
|
||||
pub dwPostDataSize: u32,
|
||||
pub wszFriendlyName: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for DRM_LICENSE_ACQ_DATA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DRM_LOCKBOXTYPE_BLACKBOX: u32 = 2u32;
|
||||
pub const DRM_LOCKBOXTYPE_DEFAULT: u32 = 2u32;
|
||||
pub const DRM_LOCKBOXTYPE_NONE: u32 = 0u32;
|
||||
pub const DRM_LOCKBOXTYPE_WHITEBOX: u32 = 1u32;
|
||||
pub const DRM_MSG_ACQUIRE_ADVISORY: DRM_STATUS_MSG = 3i32;
|
||||
pub const DRM_MSG_ACQUIRE_CLIENTLICENSOR: DRM_STATUS_MSG = 5i32;
|
||||
pub const DRM_MSG_ACQUIRE_ISSUANCE_LICENSE_TEMPLATE: DRM_STATUS_MSG = 6i32;
|
||||
pub const DRM_MSG_ACQUIRE_LICENSE: DRM_STATUS_MSG = 2i32;
|
||||
pub const DRM_MSG_ACTIVATE_GROUPIDENTITY: DRM_STATUS_MSG = 1i32;
|
||||
pub const DRM_MSG_ACTIVATE_MACHINE: DRM_STATUS_MSG = 0i32;
|
||||
pub const DRM_MSG_SIGN_ISSUANCE_LICENSE: DRM_STATUS_MSG = 4i32;
|
||||
pub const DRM_OWNER_LICENSE_NOPERSIST: u32 = 32u32;
|
||||
pub const DRM_REUSE_KEY: u32 = 64u32;
|
||||
pub const DRM_SERVER_ISSUANCELICENSE: u32 = 8u32;
|
||||
pub const DRM_SERVICE_LOCATION_ENTERPRISE: u32 = 2u32;
|
||||
pub const DRM_SERVICE_LOCATION_INTERNET: u32 = 1u32;
|
||||
pub const DRM_SERVICE_TYPE_ACTIVATION: u32 = 1u32;
|
||||
pub const DRM_SERVICE_TYPE_CERTIFICATION: u32 = 2u32;
|
||||
pub const DRM_SERVICE_TYPE_CLIENTLICENSOR: u32 = 8u32;
|
||||
pub const DRM_SERVICE_TYPE_PUBLISHING: u32 = 4u32;
|
||||
pub const DRM_SERVICE_TYPE_SILENT: u32 = 16u32;
|
||||
pub const DRM_SIGN_CANCEL: u32 = 4u32;
|
||||
pub const DRM_SIGN_OFFLINE: u32 = 2u32;
|
||||
pub const DRM_SIGN_ONLINE: u32 = 1u32;
|
||||
pub type DRM_STATUS_MSG = i32;
|
||||
pub type DRM_USAGEPOLICY_TYPE = i32;
|
||||
pub const DRM_USAGEPOLICY_TYPE_BYDIGEST: DRM_USAGEPOLICY_TYPE = 2i32;
|
||||
pub const DRM_USAGEPOLICY_TYPE_BYNAME: DRM_USAGEPOLICY_TYPE = 0i32;
|
||||
pub const DRM_USAGEPOLICY_TYPE_BYPUBLICKEY: DRM_USAGEPOLICY_TYPE = 1i32;
|
||||
pub const DRM_USAGEPOLICY_TYPE_OSEXCLUSION: DRM_USAGEPOLICY_TYPE = 3i32;
|
||||
pub const MSDRM_CLIENT_ZONE: u32 = 52992u32;
|
||||
pub const MSDRM_POLICY_ZONE: u32 = 37632u32;
|
||||
@@ -0,0 +1,4 @@
|
||||
#[cfg(feature = "Win32_Data_HtmlHelp")]
|
||||
pub mod HtmlHelp;
|
||||
#[cfg(feature = "Win32_Data_RightsManagement")]
|
||||
pub mod RightsManagement;
|
||||
+1303
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,11 @@
|
||||
pub const BEEP_FREQUENCY_MAXIMUM: u32 = 32767u32;
|
||||
pub const BEEP_FREQUENCY_MINIMUM: u32 = 37u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct BEEP_SET_PARAMETERS {
|
||||
pub Frequency: u32,
|
||||
pub Duration: u32,
|
||||
}
|
||||
pub const DD_BEEP_DEVICE_NAME: windows_sys::core::PCSTR = windows_sys::core::s!("\\Device\\Beep");
|
||||
pub const DD_BEEP_DEVICE_NAME_U: windows_sys::core::PCWSTR = windows_sys::core::w!("\\Device\\Beep");
|
||||
pub const IOCTL_BEEP_SET: u32 = 65536u32;
|
||||
+1712
File diff suppressed because it is too large.
Load diff
+1629
File diff suppressed because it is too large.
Load diff
+539
@@ -0,0 +1,539 @@
|
||||
pub const ADR_ENCODES_CURRENT_POSITION: u32 = 1u32;
|
||||
pub const ADR_ENCODES_ISRC: u32 = 3u32;
|
||||
pub const ADR_ENCODES_MEDIA_CATALOG: u32 = 2u32;
|
||||
pub const ADR_NO_MODE_INFORMATION: u32 = 0u32;
|
||||
pub const AUDIO_DATA_TRACK: u32 = 4u32;
|
||||
pub const AUDIO_STATUS_IN_PROGRESS: u32 = 17u32;
|
||||
pub const AUDIO_STATUS_NOT_SUPPORTED: u32 = 0u32;
|
||||
pub const AUDIO_STATUS_NO_STATUS: u32 = 21u32;
|
||||
pub const AUDIO_STATUS_PAUSED: u32 = 18u32;
|
||||
pub const AUDIO_STATUS_PLAY_COMPLETE: u32 = 19u32;
|
||||
pub const AUDIO_STATUS_PLAY_ERROR: u32 = 20u32;
|
||||
pub const AUDIO_WITH_PREEMPHASIS: u32 = 1u32;
|
||||
pub const CDDA: TRACK_MODE_TYPE = 2i32;
|
||||
pub const CDROM_CD_TEXT_PACK_ALBUM_NAME: u32 = 128u32;
|
||||
pub const CDROM_CD_TEXT_PACK_ARRANGER: u32 = 132u32;
|
||||
pub const CDROM_CD_TEXT_PACK_COMPOSER: u32 = 131u32;
|
||||
pub const CDROM_CD_TEXT_PACK_DISC_ID: u32 = 134u32;
|
||||
pub const CDROM_CD_TEXT_PACK_GENRE: u32 = 135u32;
|
||||
pub const CDROM_CD_TEXT_PACK_MESSAGES: u32 = 133u32;
|
||||
pub const CDROM_CD_TEXT_PACK_PERFORMER: u32 = 129u32;
|
||||
pub const CDROM_CD_TEXT_PACK_SIZE_INFO: u32 = 143u32;
|
||||
pub const CDROM_CD_TEXT_PACK_SONGWRITER: u32 = 130u32;
|
||||
pub const CDROM_CD_TEXT_PACK_TOC_INFO: u32 = 136u32;
|
||||
pub const CDROM_CD_TEXT_PACK_TOC_INFO2: u32 = 137u32;
|
||||
pub const CDROM_CD_TEXT_PACK_UPC_EAN: u32 = 142u32;
|
||||
pub const CDROM_DISK_AUDIO_TRACK: u32 = 1u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CDROM_DISK_DATA {
|
||||
pub DiskData: u32,
|
||||
}
|
||||
pub const CDROM_DISK_DATA_TRACK: u32 = 2u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_EXCEPTION_PERFORMANCE_DESCRIPTOR {
|
||||
pub Lba: [u8; 4],
|
||||
pub Time: [u8; 2],
|
||||
}
|
||||
impl Default for CDROM_EXCEPTION_PERFORMANCE_DESCRIPTOR {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CDROM_EXCLUSIVE_ACCESS {
|
||||
pub RequestType: EXCLUSIVE_ACCESS_REQUEST_TYPE,
|
||||
pub Flags: u32,
|
||||
}
|
||||
pub const CDROM_EXCLUSIVE_CALLER_LENGTH: u32 = 64u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_EXCLUSIVE_LOCK {
|
||||
pub Access: CDROM_EXCLUSIVE_ACCESS,
|
||||
pub CallerName: [u8; 64],
|
||||
}
|
||||
impl Default for CDROM_EXCLUSIVE_LOCK {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_EXCLUSIVE_LOCK_STATE {
|
||||
pub LockState: bool,
|
||||
pub CallerName: [u8; 64],
|
||||
}
|
||||
impl Default for CDROM_EXCLUSIVE_LOCK_STATE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const CDROM_IN_EXCLUSIVE_MODE: u32 = 1u32;
|
||||
pub const CDROM_LOCK_IGNORE_VOLUME: u32 = 1u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_NOMINAL_PERFORMANCE_DESCRIPTOR {
|
||||
pub StartLba: [u8; 4],
|
||||
pub StartPerformance: [u8; 4],
|
||||
pub EndLba: [u8; 4],
|
||||
pub EndPerformance: [u8; 4],
|
||||
}
|
||||
impl Default for CDROM_NOMINAL_PERFORMANCE_DESCRIPTOR {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const CDROM_NOT_IN_EXCLUSIVE_MODE: u32 = 0u32;
|
||||
pub const CDROM_NO_MEDIA_NOTIFICATIONS: u32 = 2u32;
|
||||
pub type CDROM_OPC_INFO_TYPE = i32;
|
||||
pub type CDROM_PERFORMANCE_EXCEPTION_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_PERFORMANCE_HEADER {
|
||||
pub DataLength: [u8; 4],
|
||||
pub _bitfield: u8,
|
||||
pub Reserved2: [u8; 3],
|
||||
pub Data: [u8; 1],
|
||||
}
|
||||
impl Default for CDROM_PERFORMANCE_HEADER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CDROM_PERFORMANCE_REQUEST {
|
||||
pub RequestType: CDROM_PERFORMANCE_REQUEST_TYPE,
|
||||
pub PerformanceType: CDROM_PERFORMANCE_TYPE,
|
||||
pub Exceptions: CDROM_PERFORMANCE_EXCEPTION_TYPE,
|
||||
pub Tolerance: CDROM_PERFORMANCE_TOLERANCE_TYPE,
|
||||
pub StaringLba: u32,
|
||||
}
|
||||
pub type CDROM_PERFORMANCE_REQUEST_TYPE = i32;
|
||||
pub type CDROM_PERFORMANCE_TOLERANCE_TYPE = i32;
|
||||
pub type CDROM_PERFORMANCE_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CDROM_PLAY_AUDIO_MSF {
|
||||
pub StartingM: u8,
|
||||
pub StartingS: u8,
|
||||
pub StartingF: u8,
|
||||
pub EndingM: u8,
|
||||
pub EndingS: u8,
|
||||
pub EndingF: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CDROM_READ_TOC_EX {
|
||||
pub _bitfield: u8,
|
||||
pub SessionTrack: u8,
|
||||
pub Reserved2: u8,
|
||||
pub Reserved3: u8,
|
||||
}
|
||||
pub const CDROM_READ_TOC_EX_FORMAT_ATIP: u32 = 4u32;
|
||||
pub const CDROM_READ_TOC_EX_FORMAT_CDTEXT: u32 = 5u32;
|
||||
pub const CDROM_READ_TOC_EX_FORMAT_FULL_TOC: u32 = 2u32;
|
||||
pub const CDROM_READ_TOC_EX_FORMAT_PMA: u32 = 3u32;
|
||||
pub const CDROM_READ_TOC_EX_FORMAT_SESSION: u32 = 1u32;
|
||||
pub const CDROM_READ_TOC_EX_FORMAT_TOC: u32 = 0u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CDROM_SEEK_AUDIO_MSF {
|
||||
pub M: u8,
|
||||
pub S: u8,
|
||||
pub F: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CDROM_SET_SPEED {
|
||||
pub RequestType: CDROM_SPEED_REQUEST,
|
||||
pub ReadSpeed: u16,
|
||||
pub WriteSpeed: u16,
|
||||
pub RotationControl: WRITE_ROTATION,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CDROM_SET_STREAMING {
|
||||
pub RequestType: CDROM_SPEED_REQUEST,
|
||||
pub ReadSize: u32,
|
||||
pub ReadTime: u32,
|
||||
pub WriteSize: u32,
|
||||
pub WriteTime: u32,
|
||||
pub StartLba: u32,
|
||||
pub EndLba: u32,
|
||||
pub RotationControl: WRITE_ROTATION,
|
||||
pub RestoreDefaults: bool,
|
||||
pub SetExact: bool,
|
||||
pub RandomAccess: bool,
|
||||
pub Persistent: bool,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CDROM_SIMPLE_OPC_INFO {
|
||||
pub RequestType: CDROM_OPC_INFO_TYPE,
|
||||
pub Exclude0: bool,
|
||||
pub Exclude1: bool,
|
||||
}
|
||||
pub type CDROM_SPEED_REQUEST = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CDROM_STREAMING_CONTROL {
|
||||
pub RequestType: STREAMING_CONTROL_REQUEST_TYPE,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CDROM_SUB_Q_DATA_FORMAT {
|
||||
pub Format: u8,
|
||||
pub Track: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_TOC {
|
||||
pub Length: [u8; 2],
|
||||
pub FirstTrack: u8,
|
||||
pub LastTrack: u8,
|
||||
pub TrackData: [TRACK_DATA; 100],
|
||||
}
|
||||
impl Default for CDROM_TOC {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_TOC_ATIP_DATA {
|
||||
pub Length: [u8; 2],
|
||||
pub Reserved1: u8,
|
||||
pub Reserved2: u8,
|
||||
pub Descriptors: [CDROM_TOC_ATIP_DATA_BLOCK; 1],
|
||||
}
|
||||
impl Default for CDROM_TOC_ATIP_DATA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_TOC_ATIP_DATA_BLOCK {
|
||||
pub _bitfield1: u8,
|
||||
pub _bitfield2: u8,
|
||||
pub _bitfield3: u8,
|
||||
pub Reserved7: u8,
|
||||
pub LeadInMsf: [u8; 3],
|
||||
pub Reserved8: u8,
|
||||
pub LeadOutMsf: [u8; 3],
|
||||
pub Reserved9: u8,
|
||||
pub A1Values: [u8; 3],
|
||||
pub Reserved10: u8,
|
||||
pub A2Values: [u8; 3],
|
||||
pub Reserved11: u8,
|
||||
pub A3Values: [u8; 3],
|
||||
pub Reserved12: u8,
|
||||
}
|
||||
impl Default for CDROM_TOC_ATIP_DATA_BLOCK {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_TOC_CD_TEXT_DATA {
|
||||
pub Length: [u8; 2],
|
||||
pub Reserved1: u8,
|
||||
pub Reserved2: u8,
|
||||
pub Descriptors: [CDROM_TOC_CD_TEXT_DATA_BLOCK; 1],
|
||||
}
|
||||
impl Default for CDROM_TOC_CD_TEXT_DATA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_TOC_CD_TEXT_DATA_BLOCK {
|
||||
pub PackType: u8,
|
||||
pub _bitfield1: u8,
|
||||
pub SequenceNumber: u8,
|
||||
pub _bitfield2: u8,
|
||||
pub Anonymous: CDROM_TOC_CD_TEXT_DATA_BLOCK_0,
|
||||
pub CRC: [u8; 2],
|
||||
}
|
||||
impl Default for CDROM_TOC_CD_TEXT_DATA_BLOCK {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union CDROM_TOC_CD_TEXT_DATA_BLOCK_0 {
|
||||
pub Text: [u8; 12],
|
||||
pub WText: [u16; 6],
|
||||
}
|
||||
impl Default for CDROM_TOC_CD_TEXT_DATA_BLOCK_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_TOC_FULL_TOC_DATA {
|
||||
pub Length: [u8; 2],
|
||||
pub FirstCompleteSession: u8,
|
||||
pub LastCompleteSession: u8,
|
||||
pub Descriptors: [CDROM_TOC_FULL_TOC_DATA_BLOCK; 1],
|
||||
}
|
||||
impl Default for CDROM_TOC_FULL_TOC_DATA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_TOC_FULL_TOC_DATA_BLOCK {
|
||||
pub SessionNumber: u8,
|
||||
pub _bitfield: u8,
|
||||
pub Reserved1: u8,
|
||||
pub Point: u8,
|
||||
pub MsfExtra: [u8; 3],
|
||||
pub Zero: u8,
|
||||
pub Msf: [u8; 3],
|
||||
}
|
||||
impl Default for CDROM_TOC_FULL_TOC_DATA_BLOCK {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_TOC_PMA_DATA {
|
||||
pub Length: [u8; 2],
|
||||
pub Reserved1: u8,
|
||||
pub Reserved2: u8,
|
||||
pub Descriptors: [CDROM_TOC_FULL_TOC_DATA_BLOCK; 1],
|
||||
}
|
||||
impl Default for CDROM_TOC_PMA_DATA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_TOC_SESSION_DATA {
|
||||
pub Length: [u8; 2],
|
||||
pub FirstCompleteSession: u8,
|
||||
pub LastCompleteSession: u8,
|
||||
pub TrackData: [TRACK_DATA; 1],
|
||||
}
|
||||
impl Default for CDROM_TOC_SESSION_DATA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CDROM_WRITE_SPEED_DESCRIPTOR {
|
||||
pub _bitfield: u8,
|
||||
pub Reserved3: [u8; 3],
|
||||
pub EndLba: [u8; 4],
|
||||
pub ReadSpeed: [u8; 4],
|
||||
pub WriteSpeed: [u8; 4],
|
||||
}
|
||||
impl Default for CDROM_WRITE_SPEED_DESCRIPTOR {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CDROM_WRITE_SPEED_REQUEST {
|
||||
pub RequestType: CDROM_PERFORMANCE_REQUEST_TYPE,
|
||||
}
|
||||
pub const CD_RAW_READ_C2_SIZE: u32 = 296u32;
|
||||
pub const CD_RAW_READ_SUBCODE_SIZE: u32 = 96u32;
|
||||
pub const CD_RAW_SECTOR_WITH_C2_SIZE: u32 = 2648u32;
|
||||
pub const CD_RAW_SECTOR_WITH_SUBCODE_SIZE: u32 = 2448u32;
|
||||
pub const Cdrom10Nominal20Exceptions: CDROM_PERFORMANCE_TOLERANCE_TYPE = 1i32;
|
||||
pub const CdromCAVRotation: WRITE_ROTATION = 1i32;
|
||||
pub const CdromDefaultRotation: WRITE_ROTATION = 0i32;
|
||||
pub const CdromEntirePerformanceList: CDROM_PERFORMANCE_EXCEPTION_TYPE = 2i32;
|
||||
pub const CdromNominalPerformance: CDROM_PERFORMANCE_EXCEPTION_TYPE = 1i32;
|
||||
pub const CdromPerformanceExceptionsOnly: CDROM_PERFORMANCE_EXCEPTION_TYPE = 3i32;
|
||||
pub const CdromPerformanceRequest: CDROM_PERFORMANCE_REQUEST_TYPE = 1i32;
|
||||
pub const CdromReadPerformance: CDROM_PERFORMANCE_TYPE = 1i32;
|
||||
pub const CdromSetSpeed: CDROM_SPEED_REQUEST = 0i32;
|
||||
pub const CdromSetStreaming: CDROM_SPEED_REQUEST = 1i32;
|
||||
pub const CdromStreamingDisable: STREAMING_CONTROL_REQUEST_TYPE = 1i32;
|
||||
pub const CdromStreamingEnableForReadOnly: STREAMING_CONTROL_REQUEST_TYPE = 2i32;
|
||||
pub const CdromStreamingEnableForReadWrite: STREAMING_CONTROL_REQUEST_TYPE = 4i32;
|
||||
pub const CdromStreamingEnableForWriteOnly: STREAMING_CONTROL_REQUEST_TYPE = 3i32;
|
||||
pub const CdromWritePerformance: CDROM_PERFORMANCE_TYPE = 2i32;
|
||||
pub const CdromWriteSpeedRequest: CDROM_PERFORMANCE_REQUEST_TYPE = 2i32;
|
||||
pub const DIGITAL_COPY_PERMITTED: u32 = 2u32;
|
||||
pub type EXCLUSIVE_ACCESS_REQUEST_TYPE = i32;
|
||||
pub const ExclusiveAccessLockDevice: EXCLUSIVE_ACCESS_REQUEST_TYPE = 1i32;
|
||||
pub const ExclusiveAccessQueryState: EXCLUSIVE_ACCESS_REQUEST_TYPE = 0i32;
|
||||
pub const ExclusiveAccessUnlockDevice: EXCLUSIVE_ACCESS_REQUEST_TYPE = 2i32;
|
||||
pub const IOCTL_CDROM_BASE: i32 = 2i32;
|
||||
pub const IOCTL_CDROM_CHECK_VERIFY: u32 = 149504u32;
|
||||
pub const IOCTL_CDROM_CURRENT_POSITION: u32 = 1u32;
|
||||
pub const IOCTL_CDROM_DISK_TYPE: u32 = 131136u32;
|
||||
pub const IOCTL_CDROM_EJECT_MEDIA: u32 = 149512u32;
|
||||
pub const IOCTL_CDROM_ENABLE_STREAMING: u32 = 147560u32;
|
||||
pub const IOCTL_CDROM_EXCLUSIVE_ACCESS: u32 = 180316u32;
|
||||
pub const IOCTL_CDROM_FIND_NEW_DEVICES: u32 = 149528u32;
|
||||
pub const IOCTL_CDROM_GET_CONFIGURATION: u32 = 147544u32;
|
||||
pub const IOCTL_CDROM_GET_CONTROL: u32 = 147508u32;
|
||||
pub const IOCTL_CDROM_GET_DRIVE_GEOMETRY: u32 = 147532u32;
|
||||
pub const IOCTL_CDROM_GET_DRIVE_GEOMETRY_EX: u32 = 147536u32;
|
||||
pub const IOCTL_CDROM_GET_INQUIRY_DATA: u32 = 147556u32;
|
||||
pub const IOCTL_CDROM_GET_LAST_SESSION: u32 = 147512u32;
|
||||
pub const IOCTL_CDROM_GET_PERFORMANCE: u32 = 147568u32;
|
||||
pub const IOCTL_CDROM_GET_VOLUME: u32 = 147476u32;
|
||||
pub const IOCTL_CDROM_LOAD_MEDIA: u32 = 149516u32;
|
||||
pub const IOCTL_CDROM_MEDIA_CATALOG: u32 = 2u32;
|
||||
pub const IOCTL_CDROM_MEDIA_REMOVAL: u32 = 149508u32;
|
||||
pub const IOCTL_CDROM_PAUSE_AUDIO: u32 = 147468u32;
|
||||
pub const IOCTL_CDROM_PLAY_AUDIO_MSF: u32 = 147480u32;
|
||||
pub const IOCTL_CDROM_RAW_READ: u32 = 147518u32;
|
||||
pub const IOCTL_CDROM_READ_Q_CHANNEL: u32 = 147500u32;
|
||||
pub const IOCTL_CDROM_READ_TOC: u32 = 147456u32;
|
||||
pub const IOCTL_CDROM_READ_TOC_EX: u32 = 147540u32;
|
||||
pub const IOCTL_CDROM_RELEASE: u32 = 149524u32;
|
||||
pub const IOCTL_CDROM_RESERVE: u32 = 149520u32;
|
||||
pub const IOCTL_CDROM_RESUME_AUDIO: u32 = 147472u32;
|
||||
pub const IOCTL_CDROM_SEEK_AUDIO_MSF: u32 = 147460u32;
|
||||
pub const IOCTL_CDROM_SEND_OPC_INFORMATION: u32 = 180332u32;
|
||||
pub const IOCTL_CDROM_SET_SPEED: u32 = 147552u32;
|
||||
pub const IOCTL_CDROM_SET_VOLUME: u32 = 147496u32;
|
||||
pub const IOCTL_CDROM_SIMBAD: u32 = 147468u32;
|
||||
pub const IOCTL_CDROM_STOP_AUDIO: u32 = 147464u32;
|
||||
pub const IOCTL_CDROM_SUB_Q_CHANNEL: u32 = 0u32;
|
||||
pub const IOCTL_CDROM_TRACK_ISRC: u32 = 3u32;
|
||||
pub const IOCTL_CDROM_UNLOAD_DRIVER: u32 = 151560u32;
|
||||
pub const MAXIMUM_CDROM_INQUIRY_SIZE: u32 = 260u32;
|
||||
pub const MAXIMUM_CDROM_SIZE: u32 = 804u32;
|
||||
pub const MAXIMUM_NUMBER_TRACKS: u32 = 100u32;
|
||||
pub type MEDIA_BLANK_TYPE = i32;
|
||||
pub const MINIMUM_CDROM_INQUIRY_SIZE: u32 = 36u32;
|
||||
pub const MINIMUM_CDROM_READ_TOC_EX_SIZE: u32 = 2u32;
|
||||
pub const MediaBlankTypeEraseLastSession: MEDIA_BLANK_TYPE = 6i32;
|
||||
pub const MediaBlankTypeFull: MEDIA_BLANK_TYPE = 0i32;
|
||||
pub const MediaBlankTypeIncompleteTrack: MEDIA_BLANK_TYPE = 2i32;
|
||||
pub const MediaBlankTypeMinimal: MEDIA_BLANK_TYPE = 1i32;
|
||||
pub const MediaBlankTypeTrackTail: MEDIA_BLANK_TYPE = 4i32;
|
||||
pub const MediaBlankTypeUncloseLastSession: MEDIA_BLANK_TYPE = 5i32;
|
||||
pub const MediaBlankTypeUnreserveLastTrack: MEDIA_BLANK_TYPE = 3i32;
|
||||
pub const OBSOLETE_IOCTL_CDROM_GET_CONTROL: u32 = 147508u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct RAW_READ_INFO {
|
||||
pub DiskOffset: i64,
|
||||
pub SectorCount: u32,
|
||||
pub TrackMode: TRACK_MODE_TYPE,
|
||||
}
|
||||
pub const RawWithC2: TRACK_MODE_TYPE = 4i32;
|
||||
pub const RawWithC2AndSubCode: TRACK_MODE_TYPE = 3i32;
|
||||
pub const RawWithSubCode: TRACK_MODE_TYPE = 5i32;
|
||||
pub type STREAMING_CONTROL_REQUEST_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union SUB_Q_CHANNEL_DATA {
|
||||
pub CurrentPosition: SUB_Q_CURRENT_POSITION,
|
||||
pub MediaCatalog: SUB_Q_MEDIA_CATALOG_NUMBER,
|
||||
pub TrackIsrc: SUB_Q_TRACK_ISRC,
|
||||
}
|
||||
impl Default for SUB_Q_CHANNEL_DATA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SUB_Q_CURRENT_POSITION {
|
||||
pub Header: SUB_Q_HEADER,
|
||||
pub FormatCode: u8,
|
||||
pub _bitfield: u8,
|
||||
pub TrackNumber: u8,
|
||||
pub IndexNumber: u8,
|
||||
pub AbsoluteAddress: [u8; 4],
|
||||
pub TrackRelativeAddress: [u8; 4],
|
||||
}
|
||||
impl Default for SUB_Q_CURRENT_POSITION {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SUB_Q_HEADER {
|
||||
pub Reserved: u8,
|
||||
pub AudioStatus: u8,
|
||||
pub DataLength: [u8; 2],
|
||||
}
|
||||
impl Default for SUB_Q_HEADER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SUB_Q_MEDIA_CATALOG_NUMBER {
|
||||
pub Header: SUB_Q_HEADER,
|
||||
pub FormatCode: u8,
|
||||
pub Reserved: [u8; 3],
|
||||
pub _bitfield: u8,
|
||||
pub MediaCatalog: [u8; 15],
|
||||
}
|
||||
impl Default for SUB_Q_MEDIA_CATALOG_NUMBER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SUB_Q_TRACK_ISRC {
|
||||
pub Header: SUB_Q_HEADER,
|
||||
pub FormatCode: u8,
|
||||
pub Reserved0: u8,
|
||||
pub Track: u8,
|
||||
pub Reserved1: u8,
|
||||
pub _bitfield: u8,
|
||||
pub TrackIsrc: [u8; 15],
|
||||
}
|
||||
impl Default for SUB_Q_TRACK_ISRC {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const SimpleOpcInfo: CDROM_OPC_INFO_TYPE = 1i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct TRACK_DATA {
|
||||
pub Reserved: u8,
|
||||
pub _bitfield: u8,
|
||||
pub TrackNumber: u8,
|
||||
pub Reserved1: u8,
|
||||
pub Address: [u8; 4],
|
||||
}
|
||||
impl Default for TRACK_DATA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type TRACK_MODE_TYPE = i32;
|
||||
pub const TWO_FOUR_CHANNEL_AUDIO: u32 = 8u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct VOLUME_CONTROL {
|
||||
pub PortVolume: [u8; 4],
|
||||
}
|
||||
impl Default for VOLUME_CONTROL {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type WRITE_ROTATION = i32;
|
||||
pub const XAForm2: TRACK_MODE_TYPE = 1i32;
|
||||
pub const YellowMode2: TRACK_MODE_TYPE = 0i32;
|
||||
+332
@@ -0,0 +1,332 @@
|
||||
windows_link::link!("kernel32.dll" "system" fn BuildCommDCBA(lpdef : windows_sys::core::PCSTR, lpdcb : *mut DCB) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn BuildCommDCBAndTimeoutsA(lpdef : windows_sys::core::PCSTR, lpdcb : *mut DCB, lpcommtimeouts : *mut COMMTIMEOUTS) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn BuildCommDCBAndTimeoutsW(lpdef : windows_sys::core::PCWSTR, lpdcb : *mut DCB, lpcommtimeouts : *mut COMMTIMEOUTS) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn BuildCommDCBW(lpdef : windows_sys::core::PCWSTR, lpdcb : *mut DCB) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn ClearCommBreak(hfile : super::super::Foundation:: HANDLE) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn ClearCommError(hfile : super::super::Foundation:: HANDLE, lperrors : *mut CLEAR_COMM_ERROR_FLAGS, lpstat : *mut COMSTAT) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn CommConfigDialogA(lpszname : windows_sys::core::PCSTR, hwnd : super::super::Foundation:: HWND, lpcc : *mut COMMCONFIG) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn CommConfigDialogW(lpszname : windows_sys::core::PCWSTR, hwnd : super::super::Foundation:: HWND, lpcc : *mut COMMCONFIG) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn EscapeCommFunction(hfile : super::super::Foundation:: HANDLE, dwfunc : ESCAPE_COMM_FUNCTION) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn GetCommConfig(hcommdev : super::super::Foundation:: HANDLE, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn GetCommMask(hfile : super::super::Foundation:: HANDLE, lpevtmask : *mut COMM_EVENT_MASK) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn GetCommModemStatus(hfile : super::super::Foundation:: HANDLE, lpmodemstat : *mut MODEM_STATUS_FLAGS) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("api-ms-win-core-comm-l1-1-2.dll" "system" fn GetCommPorts(lpportnumbers : *mut u32, uportnumberscount : u32, puportnumbersfound : *mut u32) -> u32);
|
||||
windows_link::link!("kernel32.dll" "system" fn GetCommProperties(hfile : super::super::Foundation:: HANDLE, lpcommprop : *mut COMMPROP) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn GetCommState(hfile : super::super::Foundation:: HANDLE, lpdcb : *mut DCB) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn GetCommTimeouts(hfile : super::super::Foundation:: HANDLE, lpcommtimeouts : *mut COMMTIMEOUTS) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn GetDefaultCommConfigA(lpszname : windows_sys::core::PCSTR, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn GetDefaultCommConfigW(lpszname : windows_sys::core::PCWSTR, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("api-ms-win-core-comm-l1-1-1.dll" "system" fn OpenCommPort(uportnumber : u32, dwdesiredaccess : u32, dwflagsandattributes : u32) -> super::super::Foundation:: HANDLE);
|
||||
windows_link::link!("kernel32.dll" "system" fn PurgeComm(hfile : super::super::Foundation:: HANDLE, dwflags : PURGE_COMM_FLAGS) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn SetCommBreak(hfile : super::super::Foundation:: HANDLE) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn SetCommConfig(hcommdev : super::super::Foundation:: HANDLE, lpcc : *const COMMCONFIG, dwsize : u32) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn SetCommMask(hfile : super::super::Foundation:: HANDLE, dwevtmask : COMM_EVENT_MASK) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn SetCommState(hfile : super::super::Foundation:: HANDLE, lpdcb : *const DCB) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn SetCommTimeouts(hfile : super::super::Foundation:: HANDLE, lpcommtimeouts : *const COMMTIMEOUTS) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn SetDefaultCommConfigA(lpszname : windows_sys::core::PCSTR, lpcc : *const COMMCONFIG, dwsize : u32) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn SetDefaultCommConfigW(lpszname : windows_sys::core::PCWSTR, lpcc : *const COMMCONFIG, dwsize : u32) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn SetupComm(hfile : super::super::Foundation:: HANDLE, dwinqueue : u32, dwoutqueue : u32) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("kernel32.dll" "system" fn TransmitCommChar(hfile : super::super::Foundation:: HANDLE, cchar : i8) -> windows_sys::core::BOOL);
|
||||
#[cfg(feature = "Win32_System_IO")]
|
||||
windows_link::link!("kernel32.dll" "system" fn WaitCommEvent(hfile : super::super::Foundation:: HANDLE, lpevtmask : *mut COMM_EVENT_MASK, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_sys::core::BOOL);
|
||||
pub const CE_BREAK: CLEAR_COMM_ERROR_FLAGS = 16u32;
|
||||
pub const CE_FRAME: CLEAR_COMM_ERROR_FLAGS = 8u32;
|
||||
pub const CE_OVERRUN: CLEAR_COMM_ERROR_FLAGS = 2u32;
|
||||
pub const CE_RXOVER: CLEAR_COMM_ERROR_FLAGS = 1u32;
|
||||
pub const CE_RXPARITY: CLEAR_COMM_ERROR_FLAGS = 4u32;
|
||||
pub type CLEAR_COMM_ERROR_FLAGS = u32;
|
||||
pub const CLRBREAK: ESCAPE_COMM_FUNCTION = 9u32;
|
||||
pub const CLRDTR: ESCAPE_COMM_FUNCTION = 6u32;
|
||||
pub const CLRRTS: ESCAPE_COMM_FUNCTION = 4u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct COMMCONFIG {
|
||||
pub dwSize: u32,
|
||||
pub wVersion: u16,
|
||||
pub wReserved: u16,
|
||||
pub dcb: DCB,
|
||||
pub dwProviderSubType: u32,
|
||||
pub dwProviderOffset: u32,
|
||||
pub dwProviderSize: u32,
|
||||
pub wcProviderData: [u16; 1],
|
||||
}
|
||||
impl Default for COMMCONFIG {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct COMMPROP {
|
||||
pub wPacketLength: u16,
|
||||
pub wPacketVersion: u16,
|
||||
pub dwServiceMask: u32,
|
||||
pub dwReserved1: u32,
|
||||
pub dwMaxTxQueue: u32,
|
||||
pub dwMaxRxQueue: u32,
|
||||
pub dwMaxBaud: u32,
|
||||
pub dwProvSubType: u32,
|
||||
pub dwProvCapabilities: u32,
|
||||
pub dwSettableParams: u32,
|
||||
pub dwSettableBaud: u32,
|
||||
pub wSettableData: u16,
|
||||
pub wSettableStopParity: COMMPROP_STOP_PARITY,
|
||||
pub dwCurrentTxQueue: u32,
|
||||
pub dwCurrentRxQueue: u32,
|
||||
pub dwProvSpec1: u32,
|
||||
pub dwProvSpec2: u32,
|
||||
pub wcProvChar: [u16; 1],
|
||||
}
|
||||
impl Default for COMMPROP {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type COMMPROP_STOP_PARITY = u16;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct COMMTIMEOUTS {
|
||||
pub ReadIntervalTimeout: u32,
|
||||
pub ReadTotalTimeoutMultiplier: u32,
|
||||
pub ReadTotalTimeoutConstant: u32,
|
||||
pub WriteTotalTimeoutMultiplier: u32,
|
||||
pub WriteTotalTimeoutConstant: u32,
|
||||
}
|
||||
pub type COMM_EVENT_MASK = u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct COMSTAT {
|
||||
pub _bitfield: u32,
|
||||
pub cbInQue: u32,
|
||||
pub cbOutQue: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DCB {
|
||||
pub DCBlength: u32,
|
||||
pub BaudRate: u32,
|
||||
pub _bitfield: u32,
|
||||
pub wReserved: u16,
|
||||
pub XonLim: u16,
|
||||
pub XoffLim: u16,
|
||||
pub ByteSize: u8,
|
||||
pub Parity: DCB_PARITY,
|
||||
pub StopBits: DCB_STOP_BITS,
|
||||
pub XonChar: i8,
|
||||
pub XoffChar: i8,
|
||||
pub ErrorChar: i8,
|
||||
pub EofChar: i8,
|
||||
pub EvtChar: i8,
|
||||
pub wReserved1: u16,
|
||||
}
|
||||
pub type DCB_PARITY = u8;
|
||||
pub type DCB_STOP_BITS = u8;
|
||||
pub const DIALOPTION_BILLING: MODEMDEVCAPS_DIAL_OPTIONS = 64u32;
|
||||
pub const DIALOPTION_DIALTONE: MODEMDEVCAPS_DIAL_OPTIONS = 256u32;
|
||||
pub const DIALOPTION_QUIET: MODEMDEVCAPS_DIAL_OPTIONS = 128u32;
|
||||
pub type ESCAPE_COMM_FUNCTION = u32;
|
||||
pub const EVENPARITY: DCB_PARITY = 2u8;
|
||||
pub const EV_BREAK: COMM_EVENT_MASK = 64u32;
|
||||
pub const EV_CTS: COMM_EVENT_MASK = 8u32;
|
||||
pub const EV_DSR: COMM_EVENT_MASK = 16u32;
|
||||
pub const EV_ERR: COMM_EVENT_MASK = 128u32;
|
||||
pub const EV_EVENT1: COMM_EVENT_MASK = 2048u32;
|
||||
pub const EV_EVENT2: COMM_EVENT_MASK = 4096u32;
|
||||
pub const EV_PERR: COMM_EVENT_MASK = 512u32;
|
||||
pub const EV_RING: COMM_EVENT_MASK = 256u32;
|
||||
pub const EV_RLSD: COMM_EVENT_MASK = 32u32;
|
||||
pub const EV_RX80FULL: COMM_EVENT_MASK = 1024u32;
|
||||
pub const EV_RXCHAR: COMM_EVENT_MASK = 1u32;
|
||||
pub const EV_RXFLAG: COMM_EVENT_MASK = 2u32;
|
||||
pub const EV_TXEMPTY: COMM_EVENT_MASK = 4u32;
|
||||
pub const MARKPARITY: DCB_PARITY = 3u8;
|
||||
pub const MAXLENGTH_NAI: u32 = 72u32;
|
||||
pub const MAXLENGTH_UICCDATASTORE: u32 = 10u32;
|
||||
pub const MDMSPKRFLAG_CALLSETUP: MODEMDEVCAPS_SPEAKER_MODE = 8u32;
|
||||
pub const MDMSPKRFLAG_DIAL: MODEMDEVCAPS_SPEAKER_MODE = 2u32;
|
||||
pub const MDMSPKRFLAG_OFF: MODEMDEVCAPS_SPEAKER_MODE = 1u32;
|
||||
pub const MDMSPKRFLAG_ON: MODEMDEVCAPS_SPEAKER_MODE = 4u32;
|
||||
pub const MDMSPKR_CALLSETUP: MODEMSETTINGS_SPEAKER_MODE = 8u32;
|
||||
pub const MDMSPKR_DIAL: MODEMSETTINGS_SPEAKER_MODE = 2u32;
|
||||
pub const MDMSPKR_OFF: MODEMSETTINGS_SPEAKER_MODE = 1u32;
|
||||
pub const MDMSPKR_ON: MODEMSETTINGS_SPEAKER_MODE = 4u32;
|
||||
pub const MDMVOLFLAG_HIGH: MODEMDEVCAPS_SPEAKER_VOLUME = 4u32;
|
||||
pub const MDMVOLFLAG_LOW: MODEMDEVCAPS_SPEAKER_VOLUME = 1u32;
|
||||
pub const MDMVOLFLAG_MEDIUM: MODEMDEVCAPS_SPEAKER_VOLUME = 2u32;
|
||||
pub const MDMVOL_HIGH: MODEM_SPEAKER_VOLUME = 2u32;
|
||||
pub const MDMVOL_LOW: MODEM_SPEAKER_VOLUME = 0u32;
|
||||
pub const MDMVOL_MEDIUM: MODEM_SPEAKER_VOLUME = 1u32;
|
||||
pub const MDM_ANALOG_RLP_OFF: u32 = 1u32;
|
||||
pub const MDM_ANALOG_RLP_ON: u32 = 0u32;
|
||||
pub const MDM_ANALOG_V34: u32 = 2u32;
|
||||
pub const MDM_AUTO_ML_2: u32 = 2u32;
|
||||
pub const MDM_AUTO_ML_DEFAULT: u32 = 0u32;
|
||||
pub const MDM_AUTO_ML_NONE: u32 = 1u32;
|
||||
pub const MDM_AUTO_SPEED_DEFAULT: u32 = 0u32;
|
||||
pub const MDM_BEARERMODE_ANALOG: u32 = 0u32;
|
||||
pub const MDM_BEARERMODE_GSM: u32 = 2u32;
|
||||
pub const MDM_BEARERMODE_ISDN: u32 = 1u32;
|
||||
pub const MDM_BLIND_DIAL: u32 = 512u32;
|
||||
pub const MDM_CCITT_OVERRIDE: u32 = 64u32;
|
||||
pub const MDM_CELLULAR: u32 = 8u32;
|
||||
pub const MDM_COMPRESSION: u32 = 1u32;
|
||||
pub const MDM_DIAGNOSTICS: u32 = 2048u32;
|
||||
pub const MDM_ERROR_CONTROL: u32 = 2u32;
|
||||
pub const MDM_FLOWCONTROL_HARD: u32 = 16u32;
|
||||
pub const MDM_FLOWCONTROL_SOFT: u32 = 32u32;
|
||||
pub const MDM_FORCED_EC: u32 = 4u32;
|
||||
pub const MDM_HDLCPPP_AUTH_CHAP: u32 = 3u32;
|
||||
pub const MDM_HDLCPPP_AUTH_DEFAULT: u32 = 0u32;
|
||||
pub const MDM_HDLCPPP_AUTH_MSCHAP: u32 = 4u32;
|
||||
pub const MDM_HDLCPPP_AUTH_NONE: u32 = 1u32;
|
||||
pub const MDM_HDLCPPP_AUTH_PAP: u32 = 2u32;
|
||||
pub const MDM_HDLCPPP_ML_2: u32 = 2u32;
|
||||
pub const MDM_HDLCPPP_ML_DEFAULT: u32 = 0u32;
|
||||
pub const MDM_HDLCPPP_ML_NONE: u32 = 1u32;
|
||||
pub const MDM_HDLCPPP_SPEED_56K: u32 = 2u32;
|
||||
pub const MDM_HDLCPPP_SPEED_64K: u32 = 1u32;
|
||||
pub const MDM_HDLCPPP_SPEED_DEFAULT: u32 = 0u32;
|
||||
pub const MDM_MASK_AUTO_SPEED: u32 = 7u32;
|
||||
pub const MDM_MASK_BEARERMODE: u32 = 61440u32;
|
||||
pub const MDM_MASK_HDLCPPP_SPEED: u32 = 7u32;
|
||||
pub const MDM_MASK_PROTOCOLDATA: u32 = 267386880u32;
|
||||
pub const MDM_MASK_PROTOCOLID: u32 = 983040u32;
|
||||
pub const MDM_MASK_V110_SPEED: u32 = 15u32;
|
||||
pub const MDM_MASK_V120_SPEED: u32 = 7u32;
|
||||
pub const MDM_MASK_X75_DATA: u32 = 7u32;
|
||||
pub const MDM_PIAFS_INCOMING: u32 = 0u32;
|
||||
pub const MDM_PIAFS_OUTGOING: u32 = 1u32;
|
||||
pub const MDM_PROTOCOLID_ANALOG: u32 = 7u32;
|
||||
pub const MDM_PROTOCOLID_AUTO: u32 = 6u32;
|
||||
pub const MDM_PROTOCOLID_DEFAULT: u32 = 0u32;
|
||||
pub const MDM_PROTOCOLID_GPRS: u32 = 8u32;
|
||||
pub const MDM_PROTOCOLID_HDLCPPP: u32 = 1u32;
|
||||
pub const MDM_PROTOCOLID_PIAFS: u32 = 9u32;
|
||||
pub const MDM_PROTOCOLID_V110: u32 = 4u32;
|
||||
pub const MDM_PROTOCOLID_V120: u32 = 5u32;
|
||||
pub const MDM_PROTOCOLID_V128: u32 = 2u32;
|
||||
pub const MDM_PROTOCOLID_X75: u32 = 3u32;
|
||||
pub const MDM_SHIFT_AUTO_ML: u32 = 6u32;
|
||||
pub const MDM_SHIFT_AUTO_SPEED: u32 = 0u32;
|
||||
pub const MDM_SHIFT_BEARERMODE: u32 = 12u32;
|
||||
pub const MDM_SHIFT_EXTENDEDINFO: u32 = 12u32;
|
||||
pub const MDM_SHIFT_HDLCPPP_AUTH: u32 = 3u32;
|
||||
pub const MDM_SHIFT_HDLCPPP_ML: u32 = 6u32;
|
||||
pub const MDM_SHIFT_HDLCPPP_SPEED: u32 = 0u32;
|
||||
pub const MDM_SHIFT_PROTOCOLDATA: u32 = 20u32;
|
||||
pub const MDM_SHIFT_PROTOCOLID: u32 = 16u32;
|
||||
pub const MDM_SHIFT_PROTOCOLINFO: u32 = 16u32;
|
||||
pub const MDM_SHIFT_V110_SPEED: u32 = 0u32;
|
||||
pub const MDM_SHIFT_V120_ML: u32 = 6u32;
|
||||
pub const MDM_SHIFT_V120_SPEED: u32 = 0u32;
|
||||
pub const MDM_SHIFT_X75_DATA: u32 = 0u32;
|
||||
pub const MDM_SPEED_ADJUST: u32 = 128u32;
|
||||
pub const MDM_TONE_DIAL: u32 = 256u32;
|
||||
pub const MDM_V110_SPEED_12DOT0K: u32 = 5u32;
|
||||
pub const MDM_V110_SPEED_14DOT4K: u32 = 6u32;
|
||||
pub const MDM_V110_SPEED_19DOT2K: u32 = 7u32;
|
||||
pub const MDM_V110_SPEED_1DOT2K: u32 = 1u32;
|
||||
pub const MDM_V110_SPEED_28DOT8K: u32 = 8u32;
|
||||
pub const MDM_V110_SPEED_2DOT4K: u32 = 2u32;
|
||||
pub const MDM_V110_SPEED_38DOT4K: u32 = 9u32;
|
||||
pub const MDM_V110_SPEED_4DOT8K: u32 = 3u32;
|
||||
pub const MDM_V110_SPEED_57DOT6K: u32 = 10u32;
|
||||
pub const MDM_V110_SPEED_9DOT6K: u32 = 4u32;
|
||||
pub const MDM_V110_SPEED_DEFAULT: u32 = 0u32;
|
||||
pub const MDM_V120_ML_2: u32 = 2u32;
|
||||
pub const MDM_V120_ML_DEFAULT: u32 = 0u32;
|
||||
pub const MDM_V120_ML_NONE: u32 = 1u32;
|
||||
pub const MDM_V120_SPEED_56K: u32 = 2u32;
|
||||
pub const MDM_V120_SPEED_64K: u32 = 1u32;
|
||||
pub const MDM_V120_SPEED_DEFAULT: u32 = 0u32;
|
||||
pub const MDM_V23_OVERRIDE: u32 = 1024u32;
|
||||
pub const MDM_X75_DATA_128K: u32 = 2u32;
|
||||
pub const MDM_X75_DATA_64K: u32 = 1u32;
|
||||
pub const MDM_X75_DATA_BTX: u32 = 4u32;
|
||||
pub const MDM_X75_DATA_DEFAULT: u32 = 0u32;
|
||||
pub const MDM_X75_DATA_T_70: u32 = 3u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct MODEMDEVCAPS {
|
||||
pub dwActualSize: u32,
|
||||
pub dwRequiredSize: u32,
|
||||
pub dwDevSpecificOffset: u32,
|
||||
pub dwDevSpecificSize: u32,
|
||||
pub dwModemProviderVersion: u32,
|
||||
pub dwModemManufacturerOffset: u32,
|
||||
pub dwModemManufacturerSize: u32,
|
||||
pub dwModemModelOffset: u32,
|
||||
pub dwModemModelSize: u32,
|
||||
pub dwModemVersionOffset: u32,
|
||||
pub dwModemVersionSize: u32,
|
||||
pub dwDialOptions: MODEMDEVCAPS_DIAL_OPTIONS,
|
||||
pub dwCallSetupFailTimer: u32,
|
||||
pub dwInactivityTimeout: u32,
|
||||
pub dwSpeakerVolume: MODEMDEVCAPS_SPEAKER_VOLUME,
|
||||
pub dwSpeakerMode: MODEMDEVCAPS_SPEAKER_MODE,
|
||||
pub dwModemOptions: u32,
|
||||
pub dwMaxDTERate: u32,
|
||||
pub dwMaxDCERate: u32,
|
||||
pub abVariablePortion: [u8; 1],
|
||||
}
|
||||
impl Default for MODEMDEVCAPS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type MODEMDEVCAPS_DIAL_OPTIONS = u32;
|
||||
pub type MODEMDEVCAPS_SPEAKER_MODE = u32;
|
||||
pub type MODEMDEVCAPS_SPEAKER_VOLUME = u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct MODEMSETTINGS {
|
||||
pub dwActualSize: u32,
|
||||
pub dwRequiredSize: u32,
|
||||
pub dwDevSpecificOffset: u32,
|
||||
pub dwDevSpecificSize: u32,
|
||||
pub dwCallSetupFailTimer: u32,
|
||||
pub dwInactivityTimeout: u32,
|
||||
pub dwSpeakerVolume: MODEM_SPEAKER_VOLUME,
|
||||
pub dwSpeakerMode: MODEMSETTINGS_SPEAKER_MODE,
|
||||
pub dwPreferredModemOptions: u32,
|
||||
pub dwNegotiatedModemOptions: u32,
|
||||
pub dwNegotiatedDCERate: u32,
|
||||
pub abVariablePortion: [u8; 1],
|
||||
}
|
||||
impl Default for MODEMSETTINGS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type MODEMSETTINGS_SPEAKER_MODE = u32;
|
||||
pub type MODEM_SPEAKER_VOLUME = u32;
|
||||
pub type MODEM_STATUS_FLAGS = u32;
|
||||
pub const MS_CTS_ON: MODEM_STATUS_FLAGS = 16u32;
|
||||
pub const MS_DSR_ON: MODEM_STATUS_FLAGS = 32u32;
|
||||
pub const MS_RING_ON: MODEM_STATUS_FLAGS = 64u32;
|
||||
pub const MS_RLSD_ON: MODEM_STATUS_FLAGS = 128u32;
|
||||
pub const NOPARITY: DCB_PARITY = 0u8;
|
||||
pub const ODDPARITY: DCB_PARITY = 1u8;
|
||||
pub const ONE5STOPBITS: DCB_STOP_BITS = 1u8;
|
||||
pub const ONESTOPBIT: DCB_STOP_BITS = 0u8;
|
||||
pub const PARITY_EVEN: COMMPROP_STOP_PARITY = 1024u16;
|
||||
pub const PARITY_MARK: COMMPROP_STOP_PARITY = 2048u16;
|
||||
pub const PARITY_NONE: COMMPROP_STOP_PARITY = 256u16;
|
||||
pub const PARITY_ODD: COMMPROP_STOP_PARITY = 512u16;
|
||||
pub const PARITY_SPACE: COMMPROP_STOP_PARITY = 4096u16;
|
||||
pub type PURGE_COMM_FLAGS = u32;
|
||||
pub const PURGE_RXABORT: PURGE_COMM_FLAGS = 2u32;
|
||||
pub const PURGE_RXCLEAR: PURGE_COMM_FLAGS = 8u32;
|
||||
pub const PURGE_TXABORT: PURGE_COMM_FLAGS = 1u32;
|
||||
pub const PURGE_TXCLEAR: PURGE_COMM_FLAGS = 4u32;
|
||||
pub const SETBREAK: ESCAPE_COMM_FUNCTION = 8u32;
|
||||
pub const SETDTR: ESCAPE_COMM_FUNCTION = 5u32;
|
||||
pub const SETRTS: ESCAPE_COMM_FUNCTION = 3u32;
|
||||
pub const SETXOFF: ESCAPE_COMM_FUNCTION = 1u32;
|
||||
pub const SETXON: ESCAPE_COMM_FUNCTION = 2u32;
|
||||
pub const SID_3GPP_SUPSVCMODEL: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xd7d08e07_d767_4478_b14a_eecc87ea12f7);
|
||||
pub const SPACEPARITY: DCB_PARITY = 4u8;
|
||||
pub const STOPBITS_10: COMMPROP_STOP_PARITY = 1u16;
|
||||
pub const STOPBITS_15: COMMPROP_STOP_PARITY = 2u16;
|
||||
pub const STOPBITS_20: COMMPROP_STOP_PARITY = 4u16;
|
||||
pub const TWOSTOPBITS: DCB_STOP_BITS = 2u8;
|
||||
Vendored
+4702
File diff suppressed because it is too large.
Load diff
+165
@@ -0,0 +1,165 @@
|
||||
windows_link::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevCloseObjectQuery(hdevquery : HDEVQUERY));
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
windows_link::link!("api-ms-win-devices-query-l1-1-0.dll" "system" 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_link::link!("api-ms-win-devices-query-l1-1-1.dll" "system" 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_link::link!("api-ms-win-devices-query-l1-1-0.dll" "system" 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_link::link!("api-ms-win-devices-query-l1-1-1.dll" "system" 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_link::link!("api-ms-win-devices-query-l1-1-0.dll" "system" 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_link::link!("api-ms-win-devices-query-l1-1-1.dll" "system" 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_link::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevFindProperty(pkey : *const super::super::Foundation:: 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_link::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevFreeObjectProperties(cpropertycount : u32, pproperties : *const super::Properties:: DEVPROPERTY));
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
windows_link::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevFreeObjects(cobjectcount : u32, pobjects : *const DEV_OBJECT));
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
windows_link::link!("api-ms-win-devices-query-l1-1-0.dll" "system" 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_link::link!("api-ms-win-devices-query-l1-1-1.dll" "system" 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_link::link!("api-ms-win-devices-query-l1-1-0.dll" "system" 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_link::link!("api-ms-win-devices-query-l1-1-1.dll" "system" 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);
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DEVPROP_FILTER_EXPRESSION {
|
||||
pub Operator: DEVPROP_OPERATOR,
|
||||
pub Property: super::Properties::DEVPROPERTY,
|
||||
}
|
||||
pub type DEVPROP_OPERATOR = u32;
|
||||
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;
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
#[derive(Clone, Copy)]
|
||||
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 Default for DEV_OBJECT {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type DEV_OBJECT_TYPE = i32;
|
||||
pub type DEV_QUERY_FLAGS = i32;
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DEV_QUERY_PARAMETER {
|
||||
pub Key: super::super::Foundation::DEVPROPKEY,
|
||||
pub Type: super::Properties::DEVPROPTYPE,
|
||||
pub BufferSize: u32,
|
||||
pub Buffer: *mut core::ffi::c_void,
|
||||
}
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
impl Default for DEV_QUERY_PARAMETER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type DEV_QUERY_RESULT_ACTION = i32;
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
#[derive(Clone, Copy)]
|
||||
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 Default for DEV_QUERY_RESULT_ACTION_DATA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union DEV_QUERY_RESULT_ACTION_DATA_0 {
|
||||
pub State: DEV_QUERY_STATE,
|
||||
pub DeviceObject: DEV_OBJECT,
|
||||
}
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
impl Default for DEV_QUERY_RESULT_ACTION_DATA_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type DEV_QUERY_STATE = i32;
|
||||
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 HDEVQUERY = *mut core::ffi::c_void;
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
pub type PDEV_QUERY_RESULT_CALLBACK = Option<unsafe extern "system" fn(hdevquery: HDEVQUERY, pcontext: *const core::ffi::c_void, pactiondata: *const DEV_QUERY_RESULT_ACTION_DATA)>;
|
||||
+3822
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,717 @@
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct AACS_BINDING_NONCE {
|
||||
pub BindingNonce: [u8; 16],
|
||||
pub MAC: [u8; 16],
|
||||
}
|
||||
impl Default for AACS_BINDING_NONCE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct AACS_CERTIFICATE {
|
||||
pub Nonce: [u8; 20],
|
||||
pub Certificate: [u8; 92],
|
||||
}
|
||||
impl Default for AACS_CERTIFICATE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct AACS_CHALLENGE_KEY {
|
||||
pub EllipticCurvePoint: [u8; 40],
|
||||
pub Signature: [u8; 40],
|
||||
}
|
||||
impl Default for AACS_CHALLENGE_KEY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct AACS_MEDIA_ID {
|
||||
pub MediaID: [u8; 16],
|
||||
pub MAC: [u8; 16],
|
||||
}
|
||||
impl Default for AACS_MEDIA_ID {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct AACS_READ_BINDING_NONCE {
|
||||
pub SessionId: u32,
|
||||
pub NumberOfSectors: u32,
|
||||
pub StartLba: u64,
|
||||
pub Anonymous: AACS_READ_BINDING_NONCE_0,
|
||||
}
|
||||
impl Default for AACS_READ_BINDING_NONCE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union AACS_READ_BINDING_NONCE_0 {
|
||||
pub Handle: super::super::Foundation::HANDLE,
|
||||
pub ForceStructureLengthToMatch64bit: u64,
|
||||
}
|
||||
impl Default for AACS_READ_BINDING_NONCE_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct AACS_SEND_CERTIFICATE {
|
||||
pub SessionId: u32,
|
||||
pub Certificate: AACS_CERTIFICATE,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct AACS_SEND_CHALLENGE_KEY {
|
||||
pub SessionId: u32,
|
||||
pub ChallengeKey: AACS_CHALLENGE_KEY,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct AACS_SERIAL_NUMBER {
|
||||
pub PrerecordedSerialNumber: [u8; 16],
|
||||
pub MAC: [u8; 16],
|
||||
}
|
||||
impl Default for AACS_SERIAL_NUMBER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct AACS_VOLUME_ID {
|
||||
pub VolumeID: [u8; 16],
|
||||
pub MAC: [u8; 16],
|
||||
}
|
||||
impl Default for AACS_VOLUME_ID {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct BD_DISC_WRITE_PROTECT_PAC {
|
||||
pub Header: BD_PAC_HEADER,
|
||||
pub KnownPACEntireDiscFlags: u8,
|
||||
pub Reserved1: [u8; 3],
|
||||
pub WriteProtectControlByte: u8,
|
||||
pub Reserved2: [u8; 7],
|
||||
pub WriteProtectPassword: [u8; 32],
|
||||
}
|
||||
impl Default for BD_DISC_WRITE_PROTECT_PAC {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct BD_PAC_HEADER {
|
||||
pub PACId: [u8; 3],
|
||||
pub PACFormatNumber: u8,
|
||||
pub PACUpdateCount: [u8; 4],
|
||||
pub UnknownPACRules: [u8; 4],
|
||||
pub UnkownPACEntireDiscFlag: u8,
|
||||
pub Reserved1: [u8; 2],
|
||||
pub NumberOfSegments: u8,
|
||||
pub Segments: [u8; 256],
|
||||
pub Reserved2: [u8; 112],
|
||||
}
|
||||
impl Default for BD_PAC_HEADER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type DISC_CONTROL_BLOCK_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_ASF {
|
||||
pub Reserved0: [u8; 3],
|
||||
pub _bitfield: u8,
|
||||
}
|
||||
impl Default for DVD_ASF {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_BCA_DESCRIPTOR {
|
||||
pub BCAInformation: [u8; 1],
|
||||
}
|
||||
impl Default for DVD_BCA_DESCRIPTOR {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_BD_SPARE_AREA_INFORMATION {
|
||||
pub Reserved1: [u8; 4],
|
||||
pub NumberOfFreeSpareBlocks: [u8; 4],
|
||||
pub NumberOfAllocatedSpareBlocks: [u8; 4],
|
||||
}
|
||||
impl Default for DVD_BD_SPARE_AREA_INFORMATION {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DVD_CGMS_COPY_ONCE: u32 = 16u32;
|
||||
pub const DVD_CGMS_COPY_PERMITTED: u32 = 0u32;
|
||||
pub const DVD_CGMS_COPY_PROTECT_MASK: u32 = 24u32;
|
||||
pub const DVD_CGMS_NO_COPY: u32 = 24u32;
|
||||
pub const DVD_CGMS_RESERVED_MASK: u32 = 120u32;
|
||||
pub const DVD_COPYRIGHTED: u32 = 64u32;
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DVD_COPYRIGHT_DESCRIPTOR {
|
||||
pub CopyrightProtectionType: u8,
|
||||
pub RegionManagementInformation: u8,
|
||||
pub Reserved: u16,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR {
|
||||
pub Anonymous: DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR_0,
|
||||
pub Reserved0: [u8; 3],
|
||||
}
|
||||
impl Default for DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR_0 {
|
||||
pub Dvdrom: DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR_0_0,
|
||||
pub DvdRecordable_Version1: DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR_0_1,
|
||||
pub Dvdram: DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR_0_2,
|
||||
pub DvdRecordable: DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR_0_3,
|
||||
pub CPR_MAI: u8,
|
||||
}
|
||||
impl Default for DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR_0_1 {
|
||||
pub _bitfield: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR_0_3 {
|
||||
pub _bitfield: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR_0_2 {
|
||||
pub Reserved0003: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR_0_0 {
|
||||
pub _bitfield: u8,
|
||||
}
|
||||
pub const DVD_COPYRIGHT_MASK: u32 = 64u32;
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_COPY_PROTECT_KEY {
|
||||
pub KeyLength: u32,
|
||||
pub SessionId: u32,
|
||||
pub KeyType: DVD_KEY_TYPE,
|
||||
pub KeyFlags: u32,
|
||||
pub Parameters: DVD_COPY_PROTECT_KEY_0,
|
||||
pub KeyData: [u8; 1],
|
||||
}
|
||||
impl Default for DVD_COPY_PROTECT_KEY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union DVD_COPY_PROTECT_KEY_0 {
|
||||
pub FileHandle: super::super::Foundation::HANDLE,
|
||||
pub TitleOffset: i64,
|
||||
}
|
||||
impl Default for DVD_COPY_PROTECT_KEY_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DESCRIPTOR_HEADER {
|
||||
pub Length: u16,
|
||||
pub Reserved: [u8; 2],
|
||||
pub Data: [u8; 1],
|
||||
}
|
||||
impl Default for DVD_DESCRIPTOR_HEADER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DISC_CONTROL_BLOCK_HEADER {
|
||||
pub ContentDescriptor: [u8; 4],
|
||||
pub ProhibitedActions: DVD_DISC_CONTROL_BLOCK_HEADER_0,
|
||||
pub VendorId: [u8; 32],
|
||||
}
|
||||
impl Default for DVD_DISC_CONTROL_BLOCK_HEADER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union DVD_DISC_CONTROL_BLOCK_HEADER_0 {
|
||||
pub Anonymous: DVD_DISC_CONTROL_BLOCK_HEADER_0_0,
|
||||
pub AsByte: [u8; 4],
|
||||
}
|
||||
impl Default for DVD_DISC_CONTROL_BLOCK_HEADER_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DISC_CONTROL_BLOCK_HEADER_0_0 {
|
||||
pub ReservedDoNotUse_UseAsByteInstead_0: [u8; 3],
|
||||
pub _bitfield: u8,
|
||||
}
|
||||
impl Default for DVD_DISC_CONTROL_BLOCK_HEADER_0_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DISC_CONTROL_BLOCK_LIST {
|
||||
pub header: DVD_DISC_CONTROL_BLOCK_HEADER,
|
||||
pub Reserved0: u8,
|
||||
pub ReadabldDCBs: u8,
|
||||
pub Reserved1: u8,
|
||||
pub WritableDCBs: u8,
|
||||
pub Dcbs: [DVD_DISC_CONTROL_BLOCK_LIST_DCB; 1],
|
||||
}
|
||||
impl Default for DVD_DISC_CONTROL_BLOCK_LIST {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DISC_CONTROL_BLOCK_LIST_DCB {
|
||||
pub DcbIdentifier: [u8; 4],
|
||||
}
|
||||
impl Default for DVD_DISC_CONTROL_BLOCK_LIST_DCB {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DISC_CONTROL_BLOCK_SESSION {
|
||||
pub header: DVD_DISC_CONTROL_BLOCK_HEADER,
|
||||
pub SessionNumber: [u8; 2],
|
||||
pub Reserved0: [u8; 22],
|
||||
pub DiscID: [u8; 32],
|
||||
pub Reserved1: [u8; 32],
|
||||
pub SessionItem: [DVD_DISC_CONTROL_BLOCK_SESSION_ITEM; 504],
|
||||
pub Reserved2: [u8; 24576],
|
||||
}
|
||||
impl Default for DVD_DISC_CONTROL_BLOCK_SESSION {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DISC_CONTROL_BLOCK_SESSION_ITEM {
|
||||
pub AsByte: [u8; 16],
|
||||
}
|
||||
impl Default for DVD_DISC_CONTROL_BLOCK_SESSION_ITEM {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DISC_CONTROL_BLOCK_WRITE_INHIBIT {
|
||||
pub header: DVD_DISC_CONTROL_BLOCK_HEADER,
|
||||
pub UpdateCount: [u8; 4],
|
||||
pub WriteProtectActions: DVD_DISC_CONTROL_BLOCK_WRITE_INHIBIT_0,
|
||||
pub Reserved0: [u8; 16],
|
||||
pub UpdatePassword: [u8; 32],
|
||||
pub Reserved1: [u8; 32672],
|
||||
}
|
||||
impl Default for DVD_DISC_CONTROL_BLOCK_WRITE_INHIBIT {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union DVD_DISC_CONTROL_BLOCK_WRITE_INHIBIT_0 {
|
||||
pub Anonymous: DVD_DISC_CONTROL_BLOCK_WRITE_INHIBIT_0_0,
|
||||
pub AsByte: [u8; 4],
|
||||
}
|
||||
impl Default for DVD_DISC_CONTROL_BLOCK_WRITE_INHIBIT_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DISC_CONTROL_BLOCK_WRITE_INHIBIT_0_0 {
|
||||
pub ReservedDoNotUse_UseAsByteInstead_0: [u8; 3],
|
||||
pub _bitfield: u8,
|
||||
}
|
||||
impl Default for DVD_DISC_CONTROL_BLOCK_WRITE_INHIBIT_0_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DISK_KEY_DESCRIPTOR {
|
||||
pub DiskKeyData: [u8; 2048],
|
||||
}
|
||||
impl Default for DVD_DISK_KEY_DESCRIPTOR {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DUAL_LAYER_JUMP_INTERVAL_SIZE {
|
||||
pub Reserved1: [u8; 4],
|
||||
pub JumpIntervalSize: [u8; 4],
|
||||
}
|
||||
impl Default for DVD_DUAL_LAYER_JUMP_INTERVAL_SIZE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DUAL_LAYER_MANUAL_LAYER_JUMP {
|
||||
pub Reserved1: [u8; 4],
|
||||
pub ManualJumpLayerAddress: [u8; 4],
|
||||
}
|
||||
impl Default for DVD_DUAL_LAYER_MANUAL_LAYER_JUMP {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DUAL_LAYER_MIDDLE_ZONE_START_ADDRESS {
|
||||
pub _bitfield: u8,
|
||||
pub Reserved1: [u8; 3],
|
||||
pub ShiftedMiddleAreaStartAddress: [u8; 4],
|
||||
}
|
||||
impl Default for DVD_DUAL_LAYER_MIDDLE_ZONE_START_ADDRESS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DUAL_LAYER_RECORDING_INFORMATION {
|
||||
pub _bitfield: u8,
|
||||
pub Reserved1: [u8; 3],
|
||||
pub Layer0Sectors: [u8; 4],
|
||||
}
|
||||
impl Default for DVD_DUAL_LAYER_RECORDING_INFORMATION {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_DUAL_LAYER_REMAPPING_INFORMATION {
|
||||
pub Reserved1: [u8; 4],
|
||||
pub RemappingAddress: [u8; 4],
|
||||
}
|
||||
impl Default for DVD_DUAL_LAYER_REMAPPING_INFORMATION {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_FULL_LAYER_DESCRIPTOR {
|
||||
pub commonHeader: DVD_LAYER_DESCRIPTOR,
|
||||
pub MediaSpecific: [u8; 2031],
|
||||
}
|
||||
impl Default for DVD_FULL_LAYER_DESCRIPTOR {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type DVD_KEY_TYPE = i32;
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DVD_LAYER_DESCRIPTOR {
|
||||
pub _bitfield1: u8,
|
||||
pub _bitfield2: u8,
|
||||
pub _bitfield3: u8,
|
||||
pub _bitfield4: u8,
|
||||
pub StartingDataSector: u32,
|
||||
pub EndDataSector: u32,
|
||||
pub EndLayerZeroSector: u32,
|
||||
pub _bitfield5: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_LIST_OF_RECOGNIZED_FORMAT_LAYERS {
|
||||
pub TypeCodeOfFormatLayer: [u8; 2],
|
||||
}
|
||||
impl Default for DVD_LIST_OF_RECOGNIZED_FORMAT_LAYERS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DVD_LIST_OF_RECOGNIZED_FORMAT_LAYERS_TYPE_CODE {
|
||||
pub NumberOfRecognizedFormatLayers: u8,
|
||||
pub _bitfield: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_MANUFACTURER_DESCRIPTOR {
|
||||
pub ManufacturingInformation: [u8; 2048],
|
||||
}
|
||||
impl Default for DVD_MANUFACTURER_DESCRIPTOR {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DVD_NOT_COPYRIGHTED: u32 = 0u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_PRERECORDED_INFORMATION {
|
||||
pub FieldID_1: u8,
|
||||
pub DiscApplicationCode: u8,
|
||||
pub DiscPhysicalCode: u8,
|
||||
pub LastAddressOfDataRecordableArea: [u8; 3],
|
||||
pub _bitfield: u8,
|
||||
pub Reserved0: u8,
|
||||
pub FieldID_2: u8,
|
||||
pub OpcSuggestedCode: u8,
|
||||
pub WavelengthCode: u8,
|
||||
pub WriteStrategyCode: [u8; 4],
|
||||
pub Reserved2: u8,
|
||||
pub FieldID_3: u8,
|
||||
pub ManufacturerId_3: [u8; 6],
|
||||
pub Reserved3: u8,
|
||||
pub FieldID_4: u8,
|
||||
pub ManufacturerId_4: [u8; 6],
|
||||
pub Reserved4: u8,
|
||||
pub FieldID_5: u8,
|
||||
pub ManufacturerId_5: [u8; 6],
|
||||
pub Reserved5: u8,
|
||||
pub Reserved99: [u8; 24],
|
||||
}
|
||||
impl Default for DVD_PRERECORDED_INFORMATION {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DVD_RAM_MEDIUM_STATUS {
|
||||
pub _bitfield: u8,
|
||||
pub DiscTypeIdentification: u8,
|
||||
pub Reserved2: u8,
|
||||
pub MediaSpecificWriteInhibitInformation: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_RAM_RECORDING_TYPE {
|
||||
pub _bitfield: u8,
|
||||
pub Reserved2: [u8; 3],
|
||||
}
|
||||
impl Default for DVD_RAM_RECORDING_TYPE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_RAM_SPARE_AREA_INFORMATION {
|
||||
pub FreePrimarySpareSectors: [u8; 4],
|
||||
pub FreeSupplementalSpareSectors: [u8; 4],
|
||||
pub AllocatedSupplementalSpareSectors: [u8; 4],
|
||||
}
|
||||
impl Default for DVD_RAM_SPARE_AREA_INFORMATION {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DVD_READ_STRUCTURE {
|
||||
pub BlockByteOffset: i64,
|
||||
pub Format: DVD_STRUCTURE_FORMAT,
|
||||
pub SessionId: u32,
|
||||
pub LayerNumber: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_RECORDING_MANAGEMENT_AREA_DATA {
|
||||
pub LastRecordedRMASectorNumber: [u8; 4],
|
||||
pub RMDBytes: [u8; 1],
|
||||
}
|
||||
impl Default for DVD_RECORDING_MANAGEMENT_AREA_DATA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DVD_REGION {
|
||||
pub CopySystem: u8,
|
||||
pub RegionData: u8,
|
||||
pub SystemRegion: u8,
|
||||
pub ResetCount: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DVD_RPC_KEY {
|
||||
pub _bitfield: u8,
|
||||
pub RegionMask: u8,
|
||||
pub RpcScheme: u8,
|
||||
pub Reserved02: u8,
|
||||
}
|
||||
pub const DVD_SECTOR_NOT_PROTECTED: u32 = 0u32;
|
||||
pub const DVD_SECTOR_PROTECTED: u32 = 32u32;
|
||||
pub const DVD_SECTOR_PROTECT_MASK: u32 = 32u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_SET_RPC_KEY {
|
||||
pub PreferredDriveRegionCode: u8,
|
||||
pub Reserved: [u8; 3],
|
||||
}
|
||||
impl Default for DVD_SET_RPC_KEY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type DVD_STRUCTURE_FORMAT = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_STRUCTURE_LIST_ENTRY {
|
||||
pub FormatCode: u8,
|
||||
pub _bitfield: u8,
|
||||
pub FormatLength: [u8; 2],
|
||||
}
|
||||
impl Default for DVD_STRUCTURE_LIST_ENTRY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_UNIQUE_DISC_IDENTIFIER {
|
||||
pub Reserved0: [u8; 2],
|
||||
pub RandomNumber: [u8; 2],
|
||||
pub Year: [u8; 4],
|
||||
pub Month: [u8; 2],
|
||||
pub Day: [u8; 2],
|
||||
pub Hour: [u8; 2],
|
||||
pub Minute: [u8; 2],
|
||||
pub Second: [u8; 2],
|
||||
}
|
||||
impl Default for DVD_UNIQUE_DISC_IDENTIFIER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DVD_WRITE_PROTECTION_STATUS {
|
||||
pub _bitfield: u8,
|
||||
pub Reserved1: [u8; 3],
|
||||
}
|
||||
impl Default for DVD_WRITE_PROTECTION_STATUS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DiscControlBlockList: DISC_CONTROL_BLOCK_TYPE = -1i32;
|
||||
pub const DvdAsf: DVD_KEY_TYPE = 5i32;
|
||||
pub const DvdBCADescriptor: DVD_STRUCTURE_FORMAT = 3i32;
|
||||
pub const DvdBusKey1: DVD_KEY_TYPE = 2i32;
|
||||
pub const DvdBusKey2: DVD_KEY_TYPE = 3i32;
|
||||
pub const DvdChallengeKey: DVD_KEY_TYPE = 1i32;
|
||||
pub const DvdCopyrightDescriptor: DVD_STRUCTURE_FORMAT = 1i32;
|
||||
pub const DvdDiskKey: DVD_KEY_TYPE = 128i32;
|
||||
pub const DvdDiskKeyDescriptor: DVD_STRUCTURE_FORMAT = 2i32;
|
||||
pub const DvdGetRpcKey: DVD_KEY_TYPE = 8i32;
|
||||
pub const DvdInvalidateAGID: DVD_KEY_TYPE = 63i32;
|
||||
pub const DvdManufacturerDescriptor: DVD_STRUCTURE_FORMAT = 4i32;
|
||||
pub const DvdMaxDescriptor: DVD_STRUCTURE_FORMAT = 5i32;
|
||||
pub const DvdPhysicalDescriptor: DVD_STRUCTURE_FORMAT = 0i32;
|
||||
pub const DvdSetRpcKey: DVD_KEY_TYPE = 6i32;
|
||||
pub const DvdTitleKey: DVD_KEY_TYPE = 4i32;
|
||||
pub const FormattingDiscControlBlock: DISC_CONTROL_BLOCK_TYPE = 1178878720i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HD_DVD_R_MEDIUM_STATUS {
|
||||
pub _bitfield: u8,
|
||||
pub NumberOfRemainingRMDsInRDZ: u8,
|
||||
pub NumberOfRemainingRMDsInCurrentRMZ: [u8; 2],
|
||||
}
|
||||
impl Default for HD_DVD_R_MEDIUM_STATUS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const IOCTL_AACS_END_SESSION: u32 = 3363020u32;
|
||||
pub const IOCTL_AACS_GENERATE_BINDING_NONCE: u32 = 3395824u32;
|
||||
pub const IOCTL_AACS_GET_CERTIFICATE: u32 = 3363028u32;
|
||||
pub const IOCTL_AACS_GET_CHALLENGE_KEY: u32 = 3363032u32;
|
||||
pub const IOCTL_AACS_READ_BINDING_NONCE: u32 = 3363052u32;
|
||||
pub const IOCTL_AACS_READ_MEDIA_ID: u32 = 3363048u32;
|
||||
pub const IOCTL_AACS_READ_MEDIA_KEY_BLOCK: u32 = 3363012u32;
|
||||
pub const IOCTL_AACS_READ_MEDIA_KEY_BLOCK_SIZE: u32 = 3363008u32;
|
||||
pub const IOCTL_AACS_READ_SERIAL_NUMBER: u32 = 3363044u32;
|
||||
pub const IOCTL_AACS_READ_VOLUME_ID: u32 = 3363040u32;
|
||||
pub const IOCTL_AACS_SEND_CERTIFICATE: u32 = 3363024u32;
|
||||
pub const IOCTL_AACS_SEND_CHALLENGE_KEY: u32 = 3363036u32;
|
||||
pub const IOCTL_AACS_START_SESSION: u32 = 3363016u32;
|
||||
pub const IOCTL_DVD_BASE: i32 = 51i32;
|
||||
pub const IOCTL_DVD_END_SESSION: u32 = 3362828u32;
|
||||
pub const IOCTL_DVD_GET_REGION: u32 = 3362836u32;
|
||||
pub const IOCTL_DVD_READ_KEY: u32 = 3362820u32;
|
||||
pub const IOCTL_DVD_READ_STRUCTURE: u32 = 3363136u32;
|
||||
pub const IOCTL_DVD_SEND_KEY: u32 = 3362824u32;
|
||||
pub const IOCTL_DVD_SEND_KEY2: u32 = 3395608u32;
|
||||
pub const IOCTL_DVD_SET_READ_AHEAD: u32 = 3362832u32;
|
||||
pub const IOCTL_DVD_START_SESSION: u32 = 3362816u32;
|
||||
pub const IOCTL_STORAGE_SET_READ_AHEAD: u32 = 2966528u32;
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct STORAGE_SET_READ_AHEAD {
|
||||
pub TriggerAddress: i64,
|
||||
pub TargetAddress: i64,
|
||||
}
|
||||
pub const SessionInfoDiscControlBlock: DISC_CONTROL_BLOCK_TYPE = 1396982528i32;
|
||||
pub const WriteInhibitDiscControlBlock: DISC_CONTROL_BLOCK_TYPE = 1464091392i32;
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
windows_link::link!("cfgmgr32.dll" "system" fn SwDeviceClose(hswdevice : HSWDEVICE));
|
||||
#[cfg(all(feature = "Win32_Devices_Properties", feature = "Win32_Security"))]
|
||||
windows_link::link!("cfgmgr32.dll" "system" 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);
|
||||
windows_link::link!("cfgmgr32.dll" "system" fn SwDeviceGetLifetime(hswdevice : HSWDEVICE, plifetime : *mut SW_DEVICE_LIFETIME) -> windows_sys::core::HRESULT);
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
windows_link::link!("cfgmgr32.dll" "system" fn SwDeviceInterfacePropertySet(hswdevice : HSWDEVICE, pszdeviceinterfaceid : windows_sys::core::PCWSTR, cpropertycount : u32, pproperties : *const super::super::Properties:: DEVPROPERTY) -> windows_sys::core::HRESULT);
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
windows_link::link!("cfgmgr32.dll" "system" fn SwDeviceInterfaceRegister(hswdevice : HSWDEVICE, pinterfaceclassguid : *const windows_sys::core::GUID, pszreferencestring : windows_sys::core::PCWSTR, cpropertycount : u32, pproperties : *const super::super::Properties:: DEVPROPERTY, fenabled : windows_sys::core::BOOL, ppszdeviceinterfaceid : *mut windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("cfgmgr32.dll" "system" fn SwDeviceInterfaceSetState(hswdevice : HSWDEVICE, pszdeviceinterfaceid : windows_sys::core::PCWSTR, fenabled : windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
windows_link::link!("cfgmgr32.dll" "system" fn SwDevicePropertySet(hswdevice : HSWDEVICE, cpropertycount : u32, pproperties : *const super::super::Properties:: DEVPROPERTY) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("cfgmgr32.dll" "system" fn SwDeviceSetLifetime(hswdevice : HSWDEVICE, lifetime : SW_DEVICE_LIFETIME) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("cfgmgr32.dll" "system" fn SwMemFree(pmem : *const core::ffi::c_void));
|
||||
pub const ADDRESS_FAMILY_VALUE_NAME: windows_sys::core::PCWSTR = windows_sys::core::w!("AddressFamily");
|
||||
pub const FAULT_ACTION_SPECIFIC_BASE: u32 = 600u32;
|
||||
pub const FAULT_ACTION_SPECIFIC_MAX: u32 = 899u32;
|
||||
pub const FAULT_DEVICE_INTERNAL_ERROR: u32 = 501u32;
|
||||
pub const FAULT_INVALID_ACTION: u32 = 401u32;
|
||||
pub const FAULT_INVALID_ARG: u32 = 402u32;
|
||||
pub const FAULT_INVALID_SEQUENCE_NUMBER: u32 = 403u32;
|
||||
pub const FAULT_INVALID_VARIABLE: u32 = 404u32;
|
||||
pub type HSWDEVICE = *mut core::ffi::c_void;
|
||||
pub const REMOTE_ADDRESS_VALUE_NAME: windows_sys::core::PCWSTR = windows_sys::core::w!("RemoteAddress");
|
||||
pub const SWDeviceCapabilitiesDriverRequired: SW_DEVICE_CAPABILITIES = 8i32;
|
||||
pub const SWDeviceCapabilitiesNoDisplayInUI: SW_DEVICE_CAPABILITIES = 4i32;
|
||||
pub const SWDeviceCapabilitiesNone: SW_DEVICE_CAPABILITIES = 0i32;
|
||||
pub const SWDeviceCapabilitiesRemovable: SW_DEVICE_CAPABILITIES = 1i32;
|
||||
pub const SWDeviceCapabilitiesSilentInstall: SW_DEVICE_CAPABILITIES = 2i32;
|
||||
pub const SWDeviceLifetimeHandle: SW_DEVICE_LIFETIME = 0i32;
|
||||
pub const SWDeviceLifetimeMax: SW_DEVICE_LIFETIME = 2i32;
|
||||
pub const SWDeviceLifetimeParentPresent: SW_DEVICE_LIFETIME = 1i32;
|
||||
pub type SW_DEVICE_CAPABILITIES = i32;
|
||||
pub type SW_DEVICE_CREATE_CALLBACK = Option<unsafe extern "system" fn(hswdevice: HSWDEVICE, createresult: windows_sys::core::HRESULT, pcontext: *const core::ffi::c_void, pszdeviceinstanceid: windows_sys::core::PCWSTR)>;
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
#[derive(Clone, Copy)]
|
||||
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(feature = "Win32_Security")]
|
||||
impl Default for SW_DEVICE_CREATE_INFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type SW_DEVICE_LIFETIME = i32;
|
||||
pub const UPNP_ADDRESSFAMILY_BOTH: u32 = 3u32;
|
||||
pub const UPNP_ADDRESSFAMILY_IPv4: u32 = 1u32;
|
||||
pub const UPNP_ADDRESSFAMILY_IPv6: u32 = 2u32;
|
||||
pub const UPNP_E_ACTION_REQUEST_FAILED: windows_sys::core::HRESULT = 0x80040210_u32 as _;
|
||||
pub const UPNP_E_ACTION_SPECIFIC_BASE: windows_sys::core::HRESULT = 0x80040300_u32 as _;
|
||||
pub const UPNP_E_DEVICE_ELEMENT_EXPECTED: windows_sys::core::HRESULT = 0x80040201_u32 as _;
|
||||
pub const UPNP_E_DEVICE_ERROR: windows_sys::core::HRESULT = 0x80040214_u32 as _;
|
||||
pub const UPNP_E_DEVICE_NODE_INCOMPLETE: windows_sys::core::HRESULT = 0x80040204_u32 as _;
|
||||
pub const UPNP_E_DEVICE_NOTREGISTERED: windows_sys::core::HRESULT = 0x8004A032_u32 as _;
|
||||
pub const UPNP_E_DEVICE_RUNNING: windows_sys::core::HRESULT = 0x8004A031_u32 as _;
|
||||
pub const UPNP_E_DEVICE_TIMEOUT: windows_sys::core::HRESULT = 0x80040217_u32 as _;
|
||||
pub const UPNP_E_DUPLICATE_NOT_ALLOWED: windows_sys::core::HRESULT = 0x8004A021_u32 as _;
|
||||
pub const UPNP_E_DUPLICATE_SERVICE_ID: windows_sys::core::HRESULT = 0x8004A022_u32 as _;
|
||||
pub const UPNP_E_ERROR_PROCESSING_RESPONSE: windows_sys::core::HRESULT = 0x80040216_u32 as _;
|
||||
pub const UPNP_E_EVENT_SUBSCRIPTION_FAILED: windows_sys::core::HRESULT = 0x80040501_u32 as _;
|
||||
pub const UPNP_E_ICON_ELEMENT_EXPECTED: windows_sys::core::HRESULT = 0x80040205_u32 as _;
|
||||
pub const UPNP_E_ICON_NODE_INCOMPLETE: windows_sys::core::HRESULT = 0x80040206_u32 as _;
|
||||
pub const UPNP_E_INVALID_ACTION: windows_sys::core::HRESULT = 0x80040207_u32 as _;
|
||||
pub const UPNP_E_INVALID_ARGUMENTS: windows_sys::core::HRESULT = 0x80040208_u32 as _;
|
||||
pub const UPNP_E_INVALID_DESCRIPTION: windows_sys::core::HRESULT = 0x8004A023_u32 as _;
|
||||
pub const UPNP_E_INVALID_DOCUMENT: windows_sys::core::HRESULT = 0x80040500_u32 as _;
|
||||
pub const UPNP_E_INVALID_ICON: windows_sys::core::HRESULT = 0x8004A025_u32 as _;
|
||||
pub const UPNP_E_INVALID_ROOT_NAMESPACE: windows_sys::core::HRESULT = 0x8004A027_u32 as _;
|
||||
pub const UPNP_E_INVALID_SERVICE: windows_sys::core::HRESULT = 0x8004A024_u32 as _;
|
||||
pub const UPNP_E_INVALID_VARIABLE: windows_sys::core::HRESULT = 0x80040213_u32 as _;
|
||||
pub const UPNP_E_INVALID_XML: windows_sys::core::HRESULT = 0x8004A026_u32 as _;
|
||||
pub const UPNP_E_OUT_OF_SYNC: windows_sys::core::HRESULT = 0x80040209_u32 as _;
|
||||
pub const UPNP_E_PROTOCOL_ERROR: windows_sys::core::HRESULT = 0x80040215_u32 as _;
|
||||
pub const UPNP_E_REQUIRED_ELEMENT_ERROR: windows_sys::core::HRESULT = 0x8004A020_u32 as _;
|
||||
pub const UPNP_E_ROOT_ELEMENT_EXPECTED: windows_sys::core::HRESULT = 0x80040200_u32 as _;
|
||||
pub const UPNP_E_SERVICE_ELEMENT_EXPECTED: windows_sys::core::HRESULT = 0x80040202_u32 as _;
|
||||
pub const UPNP_E_SERVICE_NODE_INCOMPLETE: windows_sys::core::HRESULT = 0x80040203_u32 as _;
|
||||
pub const UPNP_E_SUFFIX_TOO_LONG: windows_sys::core::HRESULT = 0x8004A028_u32 as _;
|
||||
pub const UPNP_E_TRANSPORT_ERROR: windows_sys::core::HRESULT = 0x80040211_u32 as _;
|
||||
pub const UPNP_E_URLBASE_PRESENT: windows_sys::core::HRESULT = 0x8004A029_u32 as _;
|
||||
pub const UPNP_E_VALUE_TOO_LONG: windows_sys::core::HRESULT = 0x8004A030_u32 as _;
|
||||
pub const UPNP_E_VARIABLE_VALUE_UNKNOWN: windows_sys::core::HRESULT = 0x80040212_u32 as _;
|
||||
pub const UPNP_SERVICE_DELAY_SCPD_AND_SUBSCRIPTION: u32 = 1u32;
|
||||
pub const UPnPDescriptionDocument: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x1d8a9b47_3a28_4ce2_8a4b_bd34e45bceeb);
|
||||
pub const UPnPDescriptionDocumentEx: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x33fd0563_d81a_4393_83cc_0195b1da2f91);
|
||||
pub const UPnPDevice: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xa32552c5_ba61_457a_b59a_a2561e125e33);
|
||||
pub const UPnPDeviceFinder: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe2085f28_feb7_404a_b8e7_e659bdeaaa02);
|
||||
pub const UPnPDeviceFinderEx: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x181b54fc_380b_4a75_b3f1_4ac45e9605b0);
|
||||
pub const UPnPDevices: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xb9e84ffd_ad3c_40a4_b835_0882ebcbaaa8);
|
||||
pub const UPnPRegistrar: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x204810b9_73b2_11d4_bf42_00b0d0118b56);
|
||||
pub const UPnPRemoteEndpointInfo: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x2e5e84e9_4049_4244_b728_2d24227157c7);
|
||||
pub const UPnPService: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc624ba95_fbcb_4409_8c03_8cceec533ef1);
|
||||
pub const UPnPServices: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc0bc4b4a_a406_4efc_932f_b8546b8100cc);
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
#[cfg(feature = "Win32_Devices_Enumeration_Pnp")]
|
||||
pub mod Pnp;
|
||||
File diff suppressed because it is too large.
Load diff
Vendored
+3996
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,633 @@
|
||||
pub const ApplicationSelected: SECURE_ELEMENT_EVENT_TYPE = 2i32;
|
||||
pub const ConnectionOriented: NFC_LLCP_SOCKET_TYPE = 0i32;
|
||||
pub const Connectionless: NFC_LLCP_SOCKET_TYPE = 1i32;
|
||||
pub const DefaultSnepServer: NFC_SNEP_SERVER_TYPE = 0i32;
|
||||
pub const DeviceHost: SECURE_ELEMENT_TYPE = 2i32;
|
||||
pub const Discovery: NFC_RELEASE_TYPE = 2i32;
|
||||
pub const EVT_TRANSACTION_PARAMETER_MAX_LEN: u32 = 255u32;
|
||||
pub const EVT_TRANSACTION_TAG_AID: u32 = 129u32;
|
||||
pub const EVT_TRANSACTION_TAG_PARAMETERS: u32 = 130u32;
|
||||
pub const EmulationDisabled: NFC_SE_EMULATION_MODE = 0i32;
|
||||
pub const EmulationEnabled: NFC_SE_EMULATION_MODE = 1i32;
|
||||
pub const EmulationOff: SECURE_ELEMENT_CARD_EMULATION_MODE = 0i32;
|
||||
pub const EmulationOnPowerDependent: SECURE_ELEMENT_CARD_EMULATION_MODE = 2i32;
|
||||
pub const EmulationOnPowerIndependent: SECURE_ELEMENT_CARD_EMULATION_MODE = 1i32;
|
||||
pub const EmulationStealthListen: SECURE_ELEMENT_CARD_EMULATION_MODE = 3i32;
|
||||
pub const ExtendedSnepServer: NFC_SNEP_SERVER_TYPE = 1i32;
|
||||
pub const External: SECURE_ELEMENT_TYPE = 1i32;
|
||||
pub const ExternalFieldEnter: SECURE_ELEMENT_EVENT_TYPE = 6i32;
|
||||
pub const ExternalFieldExit: SECURE_ELEMENT_EVENT_TYPE = 7i32;
|
||||
pub const ExternalReaderArrival: SECURE_ELEMENT_EVENT_TYPE = 0i32;
|
||||
pub const ExternalReaderDeparture: SECURE_ELEMENT_EVENT_TYPE = 1i32;
|
||||
pub const GUID_DEVINTERFACE_NFCDTA: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x7fd3f30b_5e49_4be1_b3aa_af06260d236a);
|
||||
pub const GUID_DEVINTERFACE_NFCSE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x8dc7c854_f5e5_4bed_815d_0c85ad047725);
|
||||
pub const GUID_NFCSE_RADIO_MEDIA_DEVICE_INTERFACE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xef8ba08f_148d_4116_83ef_a2679dfc3fa5);
|
||||
pub const GUID_NFC_RADIO_MEDIA_DEVICE_INTERFACE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4d51e930_750d_4a36_a9f7_91dc540fcd30);
|
||||
pub const HceActivated: SECURE_ELEMENT_EVENT_TYPE = 4i32;
|
||||
pub const HceDeactivated: SECURE_ELEMENT_EVENT_TYPE = 5i32;
|
||||
pub const IOCTL_NFCDTA_CONFIG_P2P_PARAM: u32 = 2233376u32;
|
||||
pub const IOCTL_NFCDTA_CONFIG_RF_DISCOVERY: u32 = 2233344u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_ACTIVATE: u32 = 2233476u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_CONFIG: u32 = 2233472u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_DEACTIVATE: u32 = 2233480u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_DISCOVER_SERVICES: u32 = 2233484u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_GET_NEXT_LINK_STATUS: u32 = 2233492u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_LINK_STATUS_CHECK: u32 = 2233488u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_SOCKET_ACCEPT: u32 = 2233512u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_SOCKET_BIND: u32 = 2233504u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_SOCKET_CLOSE: u32 = 2233500u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_SOCKET_CONNECT: u32 = 2233516u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_SOCKET_CREATE: u32 = 2233496u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_SOCKET_DISCONNECT: u32 = 2233520u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_SOCKET_GET_NEXT_ERROR: u32 = 2233540u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_SOCKET_LISTEN: u32 = 2233508u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_SOCKET_RECV: u32 = 2233524u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_SOCKET_RECV_FROM: u32 = 2233528u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_SOCKET_SEND: u32 = 2233532u32;
|
||||
pub const IOCTL_NFCDTA_LLCP_SOCKET_SNED_TO: u32 = 2233536u32;
|
||||
pub const IOCTL_NFCDTA_REMOTE_DEV_CHECK_PRESENCE: u32 = 2233372u32;
|
||||
pub const IOCTL_NFCDTA_REMOTE_DEV_CONNECT: u32 = 2233352u32;
|
||||
pub const IOCTL_NFCDTA_REMOTE_DEV_DISCONNECT: u32 = 2233356u32;
|
||||
pub const IOCTL_NFCDTA_REMOTE_DEV_GET_NEXT: u32 = 2233348u32;
|
||||
pub const IOCTL_NFCDTA_REMOTE_DEV_NDEF_CHECK: u32 = 2233420u32;
|
||||
pub const IOCTL_NFCDTA_REMOTE_DEV_NDEF_CONVERT_READ_ONLY: u32 = 2233416u32;
|
||||
pub const IOCTL_NFCDTA_REMOTE_DEV_NDEF_READ: u32 = 2233412u32;
|
||||
pub const IOCTL_NFCDTA_REMOTE_DEV_NDEF_WRITE: u32 = 2233408u32;
|
||||
pub const IOCTL_NFCDTA_REMOTE_DEV_RECV: u32 = 2233364u32;
|
||||
pub const IOCTL_NFCDTA_REMOTE_DEV_SEND: u32 = 2233368u32;
|
||||
pub const IOCTL_NFCDTA_REMOTE_DEV_TRANSCEIVE: u32 = 2233360u32;
|
||||
pub const IOCTL_NFCDTA_SET_RF_CONFIG: u32 = 2233380u32;
|
||||
pub const IOCTL_NFCDTA_SE_ENUMERATE: u32 = 2233728u32;
|
||||
pub const IOCTL_NFCDTA_SE_GET_NEXT_EVENT: u32 = 2233740u32;
|
||||
pub const IOCTL_NFCDTA_SE_SET_EMULATION_MODE: u32 = 2233732u32;
|
||||
pub const IOCTL_NFCDTA_SE_SET_ROUTING_TABLE: u32 = 2233736u32;
|
||||
pub const IOCTL_NFCDTA_SNEP_CLIENT_GET: u32 = 2233676u32;
|
||||
pub const IOCTL_NFCDTA_SNEP_CLIENT_PUT: u32 = 2233672u32;
|
||||
pub const IOCTL_NFCDTA_SNEP_DEINIT_CLIENT: u32 = 2233668u32;
|
||||
pub const IOCTL_NFCDTA_SNEP_DEINIT_SERVER: u32 = 2233604u32;
|
||||
pub const IOCTL_NFCDTA_SNEP_INIT_CLIENT: u32 = 2233664u32;
|
||||
pub const IOCTL_NFCDTA_SNEP_INIT_SERVER: u32 = 2233600u32;
|
||||
pub const IOCTL_NFCDTA_SNEP_SERVER_ACCEPT: u32 = 2233612u32;
|
||||
pub const IOCTL_NFCDTA_SNEP_SERVER_GET_NEXT_CONNECTION: u32 = 2233608u32;
|
||||
pub const IOCTL_NFCDTA_SNEP_SERVER_GET_NEXT_REQUEST: u32 = 2233616u32;
|
||||
pub const IOCTL_NFCDTA_SNEP_SERVER_SEND_RESPONSE: u32 = 2233620u32;
|
||||
pub const IOCTL_NFCRM_QUERY_RADIO_STATE: u32 = 5308808u32;
|
||||
pub const IOCTL_NFCRM_SET_RADIO_STATE: u32 = 5308804u32;
|
||||
pub const IOCTL_NFCSERM_QUERY_RADIO_STATE: u32 = 5308816u32;
|
||||
pub const IOCTL_NFCSERM_SET_RADIO_STATE: u32 = 5308812u32;
|
||||
pub const IOCTL_NFCSE_ENUM_ENDPOINTS: u32 = 2230272u32;
|
||||
pub const IOCTL_NFCSE_GET_NEXT_EVENT: u32 = 2230280u32;
|
||||
pub const IOCTL_NFCSE_GET_NFCC_CAPABILITIES: u32 = 2230288u32;
|
||||
pub const IOCTL_NFCSE_GET_ROUTING_TABLE: u32 = 2230292u32;
|
||||
pub const IOCTL_NFCSE_HCE_REMOTE_RECV: u32 = 2230592u32;
|
||||
pub const IOCTL_NFCSE_HCE_REMOTE_SEND: u32 = 2230596u32;
|
||||
pub const IOCTL_NFCSE_SET_CARD_EMULATION_MODE: u32 = 2230284u32;
|
||||
pub const IOCTL_NFCSE_SET_POWER_MODE: u32 = 2230600u32;
|
||||
pub const IOCTL_NFCSE_SET_ROUTING_TABLE: u32 = 2230296u32;
|
||||
pub const IOCTL_NFCSE_SUBSCRIBE_FOR_EVENT: u32 = 2230276u32;
|
||||
pub const ISO_7816_MAXIMUM_AID_LENGTH: u32 = 16u32;
|
||||
pub const ISO_7816_MINIMUM_AID_LENGTH: u32 = 5u32;
|
||||
pub const IdleMode: NFC_RELEASE_TYPE = 0i32;
|
||||
pub const Integrated: SECURE_ELEMENT_TYPE = 0i32;
|
||||
pub const LinkActivated: NFC_LLCP_LINK_STATUS = 0i32;
|
||||
pub const LinkDeactivated: NFC_LLCP_LINK_STATUS = 1i32;
|
||||
pub const MAX_ATR_LENGTH: u32 = 48u32;
|
||||
pub const MAX_LLCP_SERVICE_NAME_SIZE: u32 = 256u32;
|
||||
pub const MAX_SNEP_SERVER_NAME_SIZE: u32 = 256u32;
|
||||
pub const MAX_UID_SIZE: u32 = 16u32;
|
||||
pub const NFCRMDDI_IOCTL_BASE: u32 = 80u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFCRM_RADIO_STATE {
|
||||
pub MediaRadioOn: bool,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFCRM_SET_RADIO_STATE {
|
||||
pub SystemStateUpdate: bool,
|
||||
pub MediaRadioOn: bool,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NFC_DATA_BUFFER {
|
||||
pub cbBuffer: u16,
|
||||
pub pbBuffer: [u8; 1],
|
||||
}
|
||||
impl Default for NFC_DATA_BUFFER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type NFC_DEVICE_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_LLCP_CONFIG {
|
||||
pub uMIU: u16,
|
||||
pub uWKS: u16,
|
||||
pub bLTO: u8,
|
||||
pub bOptions: u8,
|
||||
pub fAutoActivate: bool,
|
||||
}
|
||||
pub type NFC_LLCP_LINK_STATUS = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NFC_LLCP_SERVICE_DISCOVER_REQUEST {
|
||||
pub hRemoteDev: isize,
|
||||
pub NumberOfEntries: u32,
|
||||
pub ServiceNameEntries: [NFC_LLCP_SERVICE_NAME_ENTRY; 1],
|
||||
}
|
||||
impl Default for NFC_LLCP_SERVICE_DISCOVER_REQUEST {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NFC_LLCP_SERVICE_DISCOVER_SAP {
|
||||
pub NumberOfEntries: u32,
|
||||
pub SAPEntries: [u8; 1],
|
||||
}
|
||||
impl Default for NFC_LLCP_SERVICE_DISCOVER_SAP {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NFC_LLCP_SERVICE_NAME_ENTRY {
|
||||
pub cbServiceName: u32,
|
||||
pub pbServiceName: [u8; 1],
|
||||
}
|
||||
impl Default for NFC_LLCP_SERVICE_NAME_ENTRY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_LLCP_SOCKET_ACCEPT_INFO {
|
||||
pub hSocket: isize,
|
||||
pub sSocketOption: NFC_LLCP_SOCKET_OPTION,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_LLCP_SOCKET_CL_PAYLOAD {
|
||||
pub hSocket: isize,
|
||||
pub bSAP: u8,
|
||||
pub sPayload: NFC_DATA_BUFFER,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NFC_LLCP_SOCKET_CONNECT_INFO {
|
||||
pub hRemoteDev: isize,
|
||||
pub hSocket: isize,
|
||||
pub eConnectType: NFC_LLCP_SOCKET_CONNECT_TYPE,
|
||||
pub Anonymous: NFC_LLCP_SOCKET_CONNECT_INFO_0,
|
||||
}
|
||||
impl Default for NFC_LLCP_SOCKET_CONNECT_INFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union NFC_LLCP_SOCKET_CONNECT_INFO_0 {
|
||||
pub bSAP: u8,
|
||||
pub sServiceName: NFC_LLCP_SERVICE_NAME_ENTRY,
|
||||
}
|
||||
impl Default for NFC_LLCP_SOCKET_CONNECT_INFO_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type NFC_LLCP_SOCKET_CONNECT_TYPE = i32;
|
||||
pub type NFC_LLCP_SOCKET_ERROR = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_LLCP_SOCKET_ERROR_INFO {
|
||||
pub hSocket: isize,
|
||||
pub eSocketError: NFC_LLCP_SOCKET_ERROR,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_LLCP_SOCKET_INFO {
|
||||
pub eSocketType: NFC_LLCP_SOCKET_TYPE,
|
||||
pub sSocketOption: NFC_LLCP_SOCKET_OPTION,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_LLCP_SOCKET_OPTION {
|
||||
pub uMIUX: u16,
|
||||
pub bRW: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_LLCP_SOCKET_PAYLOAD {
|
||||
pub hSocket: isize,
|
||||
pub bSAP: u8,
|
||||
pub sPayload: NFC_DATA_BUFFER,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_LLCP_SOCKET_SERVICE_INFO {
|
||||
pub hSocket: isize,
|
||||
pub bSAP: u8,
|
||||
pub sServiceName: NFC_LLCP_SERVICE_NAME_ENTRY,
|
||||
}
|
||||
pub type NFC_LLCP_SOCKET_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_NDEF_INFO {
|
||||
pub fIsNdefFormatted: bool,
|
||||
pub fIsReadOnly: bool,
|
||||
pub dwActualMessageLength: u32,
|
||||
pub dwMaxMessageLength: u32,
|
||||
}
|
||||
pub type NFC_P2P_MODE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NFC_P2P_PARAM_CONFIG {
|
||||
pub eP2pMode: NFC_P2P_MODE,
|
||||
pub cbGeneralBytes: u8,
|
||||
pub pbGeneralBytes: [u8; 48],
|
||||
}
|
||||
impl Default for NFC_P2P_PARAM_CONFIG {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type NFC_RELEASE_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_REMOTE_DEVICE_DISCONNET {
|
||||
pub hRemoteDev: isize,
|
||||
pub eReleaseType: NFC_RELEASE_TYPE,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NFC_REMOTE_DEV_INFO {
|
||||
pub hRemoteDev: isize,
|
||||
pub eType: NFC_DEVICE_TYPE,
|
||||
pub eRFTech: u8,
|
||||
pub eProtocol: u8,
|
||||
pub cbUid: u8,
|
||||
pub pbUid: [u8; 16],
|
||||
}
|
||||
impl Default for NFC_REMOTE_DEV_INFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_REMOTE_DEV_RECV_INFO {
|
||||
pub hRemoteDev: isize,
|
||||
pub sRecvBuffer: NFC_DATA_BUFFER,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_REMOTE_DEV_SEND_INFO {
|
||||
pub hRemoteDev: isize,
|
||||
pub usTimeOut: u16,
|
||||
pub sSendBuffer: NFC_DATA_BUFFER,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NFC_RF_DISCOVERY_CONFIG {
|
||||
pub usTotalDuration: u16,
|
||||
pub ulPollConfig: u32,
|
||||
pub fDisableCardEmulation: bool,
|
||||
pub ucNfcIPMode: u8,
|
||||
pub fNfcIPTgtModeDisable: bool,
|
||||
pub ucNfcIPTgtMode: u8,
|
||||
pub ucNfcCEMode: u8,
|
||||
pub ucBailoutConfig: u8,
|
||||
pub ucSystemCode: [u8; 2],
|
||||
pub ucRequestCode: u8,
|
||||
pub ucTimeSlotNumber: u8,
|
||||
pub eRfDiscoveryMode: NFC_RF_DISCOVERY_MODE,
|
||||
}
|
||||
impl Default for NFC_RF_DISCOVERY_CONFIG {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type NFC_RF_DISCOVERY_MODE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NFC_SE_AID_ROUTING_INFO {
|
||||
pub hSecureElement: isize,
|
||||
pub bPowerState: u8,
|
||||
pub cbAid: u32,
|
||||
pub pbAid: [u8; 16],
|
||||
}
|
||||
impl Default for NFC_SE_AID_ROUTING_INFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type NFC_SE_EMULATION_MODE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_SE_EMULATION_MODE_INFO {
|
||||
pub hSecureElement: isize,
|
||||
pub eMode: NFC_SE_EMULATION_MODE,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NFC_SE_EVENT_INFO {
|
||||
pub hSecureElement: isize,
|
||||
pub eEventType: SECURE_ELEMENT_EVENT_TYPE,
|
||||
pub cbEventData: u32,
|
||||
pub pbEventData: [u8; 1],
|
||||
}
|
||||
impl Default for NFC_SE_EVENT_INFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_SE_INFO {
|
||||
pub hSecureElement: isize,
|
||||
pub eSecureElementType: SECURE_ELEMENT_TYPE,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NFC_SE_LIST {
|
||||
pub NumberOfEndpoints: u32,
|
||||
pub EndpointList: [NFC_SE_INFO; 1],
|
||||
}
|
||||
impl Default for NFC_SE_LIST {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_SE_PROTO_ROUTING_INFO {
|
||||
pub hSecureElement: isize,
|
||||
pub bPowerState: u8,
|
||||
pub eRfProtocolType: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NFC_SE_ROUTING_TABLE {
|
||||
pub NumberOfEntries: u32,
|
||||
pub TableEntries: [NFC_SE_ROUTING_TABLE_ENTRY; 1],
|
||||
}
|
||||
impl Default for NFC_SE_ROUTING_TABLE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NFC_SE_ROUTING_TABLE_ENTRY {
|
||||
pub eRoutingType: SECURE_ELEMENT_ROUTING_TYPE,
|
||||
pub Anonymous: NFC_SE_ROUTING_TABLE_ENTRY_0,
|
||||
}
|
||||
impl Default for NFC_SE_ROUTING_TABLE_ENTRY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union NFC_SE_ROUTING_TABLE_ENTRY_0 {
|
||||
pub TechRoutingInfo: NFC_SE_TECH_ROUTING_INFO,
|
||||
pub ProtoRoutingInfo: NFC_SE_PROTO_ROUTING_INFO,
|
||||
pub AidRoutingInfo: NFC_SE_AID_ROUTING_INFO,
|
||||
}
|
||||
impl Default for NFC_SE_ROUTING_TABLE_ENTRY_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_SE_TECH_ROUTING_INFO {
|
||||
pub hSecureElement: isize,
|
||||
pub bPowerState: u8,
|
||||
pub eRfTechType: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_SNEP_CLIENT_GET_INFO {
|
||||
pub hSnepClient: isize,
|
||||
pub sGetPayload: NFC_DATA_BUFFER,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_SNEP_CLIENT_INFO {
|
||||
pub hRemoteDev: isize,
|
||||
pub eServerType: NFC_SNEP_SERVER_TYPE,
|
||||
pub sSocketOption: NFC_LLCP_SOCKET_OPTION,
|
||||
pub sService: NFC_LLCP_SERVICE_NAME_ENTRY,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_SNEP_CLIENT_PUT_INFO {
|
||||
pub hSnepClient: isize,
|
||||
pub sPutPayload: NFC_DATA_BUFFER,
|
||||
}
|
||||
pub type NFC_SNEP_REQUEST_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_SNEP_SERVER_ACCEPT_INFO {
|
||||
pub hSnepServer: isize,
|
||||
pub hConnection: isize,
|
||||
pub sSocketOption: NFC_LLCP_SOCKET_OPTION,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_SNEP_SERVER_INFO {
|
||||
pub eServerType: NFC_SNEP_SERVER_TYPE,
|
||||
pub sSocketOption: NFC_LLCP_SOCKET_OPTION,
|
||||
pub usInboxSize: u16,
|
||||
pub bSAP: u8,
|
||||
pub sService: NFC_LLCP_SERVICE_NAME_ENTRY,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_SNEP_SERVER_REQUEST {
|
||||
pub hSnepServer: isize,
|
||||
pub hConnection: isize,
|
||||
pub eRequestType: NFC_SNEP_REQUEST_TYPE,
|
||||
pub sRequestPayload: NFC_DATA_BUFFER,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NFC_SNEP_SERVER_RESPONSE_INFO {
|
||||
pub hSnepServer: isize,
|
||||
pub hConnection: isize,
|
||||
pub dwResponseStatus: u32,
|
||||
pub sResponsePayload: NFC_DATA_BUFFER,
|
||||
}
|
||||
pub type NFC_SNEP_SERVER_TYPE = i32;
|
||||
pub const NfcConnectBySap: NFC_LLCP_SOCKET_CONNECT_TYPE = 0i32;
|
||||
pub const NfcConnectByUri: NFC_LLCP_SOCKET_CONNECT_TYPE = 1i32;
|
||||
pub const NfcDepDefault: NFC_P2P_MODE = 0i32;
|
||||
pub const NfcDepListen: NFC_P2P_MODE = 2i32;
|
||||
pub const NfcDepPoll: NFC_P2P_MODE = 1i32;
|
||||
pub const NfcIP1Initiator: NFC_DEVICE_TYPE = 5i32;
|
||||
pub const NfcIP1Target: NFC_DEVICE_TYPE = 4i32;
|
||||
pub const NfcLlcpErrorBusyCondition: NFC_LLCP_SOCKET_ERROR = 2i32;
|
||||
pub const NfcLlcpErrorDisconnected: NFC_LLCP_SOCKET_ERROR = 0i32;
|
||||
pub const NfcLlcpErrorFrameRejected: NFC_LLCP_SOCKET_ERROR = 1i32;
|
||||
pub const NfcLlcpErrorNotBusyCondition: NFC_LLCP_SOCKET_ERROR = 3i32;
|
||||
pub const NfcReader: NFC_DEVICE_TYPE = 6i32;
|
||||
pub const NfcType1Tag: NFC_DEVICE_TYPE = 0i32;
|
||||
pub const NfcType2Tag: NFC_DEVICE_TYPE = 1i32;
|
||||
pub const NfcType3Tag: NFC_DEVICE_TYPE = 2i32;
|
||||
pub const NfcType4Tag: NFC_DEVICE_TYPE = 3i32;
|
||||
pub const RFDiscoveryResume: NFC_RF_DISCOVERY_MODE = 2i32;
|
||||
pub const RfDiscoveryConfig: NFC_RF_DISCOVERY_MODE = 0i32;
|
||||
pub const RfDiscoveryStart: NFC_RF_DISCOVERY_MODE = 1i32;
|
||||
pub const RoutingTypeAid: SECURE_ELEMENT_ROUTING_TYPE = 2i32;
|
||||
pub const RoutingTypeProtocol: SECURE_ELEMENT_ROUTING_TYPE = 1i32;
|
||||
pub const RoutingTypeTech: SECURE_ELEMENT_ROUTING_TYPE = 0i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SECURE_ELEMENT_AID_ROUTING_INFO {
|
||||
pub guidSecureElementId: windows_sys::core::GUID,
|
||||
pub cbAid: u32,
|
||||
pub pbAid: [u8; 16],
|
||||
}
|
||||
impl Default for SECURE_ELEMENT_AID_ROUTING_INFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type SECURE_ELEMENT_CARD_EMULATION_MODE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SECURE_ELEMENT_ENDPOINT_INFO {
|
||||
pub guidSecureElementId: windows_sys::core::GUID,
|
||||
pub eSecureElementType: SECURE_ELEMENT_TYPE,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SECURE_ELEMENT_ENDPOINT_LIST {
|
||||
pub NumberOfEndpoints: u32,
|
||||
pub EndpointList: [SECURE_ELEMENT_ENDPOINT_INFO; 1],
|
||||
}
|
||||
impl Default for SECURE_ELEMENT_ENDPOINT_LIST {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SECURE_ELEMENT_EVENT_INFO {
|
||||
pub guidSecureElementId: windows_sys::core::GUID,
|
||||
pub eEventType: SECURE_ELEMENT_EVENT_TYPE,
|
||||
pub cbEventData: u32,
|
||||
pub pbEventData: [u8; 1],
|
||||
}
|
||||
impl Default for SECURE_ELEMENT_EVENT_INFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SECURE_ELEMENT_EVENT_SUBSCRIPTION_INFO {
|
||||
pub guidSecureElementId: windows_sys::core::GUID,
|
||||
pub eEventType: SECURE_ELEMENT_EVENT_TYPE,
|
||||
}
|
||||
pub type SECURE_ELEMENT_EVENT_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SECURE_ELEMENT_HCE_ACTIVATION_PAYLOAD {
|
||||
pub bConnectionId: u16,
|
||||
pub eRfTechType: u8,
|
||||
pub eRfProtocolType: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SECURE_ELEMENT_HCE_DATA_PACKET {
|
||||
pub bConnectionId: u16,
|
||||
pub cbPayload: u16,
|
||||
pub pbPayload: [u8; 1],
|
||||
}
|
||||
impl Default for SECURE_ELEMENT_HCE_DATA_PACKET {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SECURE_ELEMENT_NFCC_CAPABILITIES {
|
||||
pub cbMaxRoutingTableSize: u16,
|
||||
pub IsAidRoutingSupported: bool,
|
||||
pub IsProtocolRoutingSupported: bool,
|
||||
pub IsTechRoutingSupported: bool,
|
||||
}
|
||||
pub type SECURE_ELEMENT_POWER_MODE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SECURE_ELEMENT_PROTO_ROUTING_INFO {
|
||||
pub guidSecureElementId: windows_sys::core::GUID,
|
||||
pub eRfProtocolType: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SECURE_ELEMENT_ROUTING_TABLE {
|
||||
pub NumberOfEntries: u32,
|
||||
pub TableEntries: [SECURE_ELEMENT_ROUTING_TABLE_ENTRY; 1],
|
||||
}
|
||||
impl Default for SECURE_ELEMENT_ROUTING_TABLE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SECURE_ELEMENT_ROUTING_TABLE_ENTRY {
|
||||
pub eRoutingType: SECURE_ELEMENT_ROUTING_TYPE,
|
||||
pub Anonymous: SECURE_ELEMENT_ROUTING_TABLE_ENTRY_0,
|
||||
}
|
||||
impl Default for SECURE_ELEMENT_ROUTING_TABLE_ENTRY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union SECURE_ELEMENT_ROUTING_TABLE_ENTRY_0 {
|
||||
pub TechRoutingInfo: SECURE_ELEMENT_TECH_ROUTING_INFO,
|
||||
pub ProtoRoutingInfo: SECURE_ELEMENT_PROTO_ROUTING_INFO,
|
||||
pub AidRoutingInfo: SECURE_ELEMENT_AID_ROUTING_INFO,
|
||||
}
|
||||
impl Default for SECURE_ELEMENT_ROUTING_TABLE_ENTRY_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type SECURE_ELEMENT_ROUTING_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SECURE_ELEMENT_SET_CARD_EMULATION_MODE_INFO {
|
||||
pub guidSecureElementId: windows_sys::core::GUID,
|
||||
pub eMode: SECURE_ELEMENT_CARD_EMULATION_MODE,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SECURE_ELEMENT_SET_POWER_MODE_INFO {
|
||||
pub guidSecureElementId: windows_sys::core::GUID,
|
||||
pub powerMode: SECURE_ELEMENT_POWER_MODE,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SECURE_ELEMENT_TECH_ROUTING_INFO {
|
||||
pub guidSecureElementId: windows_sys::core::GUID,
|
||||
pub eRfTechType: u8,
|
||||
}
|
||||
pub type SECURE_ELEMENT_TYPE = i32;
|
||||
pub const SEPowerMode_AllowOff: SECURE_ELEMENT_POWER_MODE = 1i32;
|
||||
pub const SEPowerMode_ForceOn: SECURE_ELEMENT_POWER_MODE = 0i32;
|
||||
pub const SleepMode: NFC_RELEASE_TYPE = 1i32;
|
||||
pub const SnepRequestGet: NFC_SNEP_REQUEST_TYPE = 0i32;
|
||||
pub const SnepRequestPut: NFC_SNEP_REQUEST_TYPE = 1i32;
|
||||
pub const Transaction: SECURE_ELEMENT_EVENT_TYPE = 3i32;
|
||||
@@ -0,0 +1,20 @@
|
||||
pub const DEVPKEY_NFP_Capabilities: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xfb3842cd_9e2a_4f83_8fcc_4b0761139ae9), pid: 2 };
|
||||
pub const GUID_DEVINTERFACE_NFP: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xfb3842cd_9e2a_4f83_8fcc_4b0761139ae9);
|
||||
pub const IOCTL_NFP_DISABLE: u32 = 5308492u32;
|
||||
pub const IOCTL_NFP_ENABLE: u32 = 5308496u32;
|
||||
pub const IOCTL_NFP_GET_KILO_BYTES_PER_SECOND: u32 = 5308548u32;
|
||||
pub const IOCTL_NFP_GET_MAX_MESSAGE_BYTES: u32 = 5308544u32;
|
||||
pub const IOCTL_NFP_GET_NEXT_SUBSCRIBED_MESSAGE: u32 = 5308480u32;
|
||||
pub const IOCTL_NFP_GET_NEXT_TRANSMITTED_MESSAGE: u32 = 5308488u32;
|
||||
pub const IOCTL_NFP_SET_PAYLOAD: u32 = 5308484u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SUBSCRIBED_MESSAGE {
|
||||
pub cbPayloadHint: u32,
|
||||
pub payload: [u8; 1],
|
||||
}
|
||||
impl Default for SUBSCRIBED_MESSAGE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
+1422
File diff suppressed because it is too large.
Load diff
+265
@@ -0,0 +1,265 @@
|
||||
pub const DEVPKEY_DevQuery_ObjectType: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x13673f42_a3d6_49f6_b4da_ae46e0c5237c), pid: 2 };
|
||||
pub const DEVPKEY_DeviceClass_Characteristics: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4321918b_f69e_470d_a5de_4d88c75ad24b), pid: 29 };
|
||||
pub const DEVPKEY_DeviceClass_ClassCoInstallers: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x713d1703_a2e2_49f5_9214_56472ef3da5c), pid: 2 };
|
||||
pub const DEVPKEY_DeviceClass_ClassInstaller: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x259abffc_50a7_47ce_af08_68c9a7d73366), pid: 5 };
|
||||
pub const DEVPKEY_DeviceClass_ClassName: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x259abffc_50a7_47ce_af08_68c9a7d73366), pid: 3 };
|
||||
pub const DEVPKEY_DeviceClass_DHPRebalanceOptOut: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xd14d3ef3_66cf_4ba2_9d38_0ddb37ab4701), pid: 2 };
|
||||
pub const DEVPKEY_DeviceClass_DefaultService: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x259abffc_50a7_47ce_af08_68c9a7d73366), pid: 11 };
|
||||
pub const DEVPKEY_DeviceClass_DevType: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4321918b_f69e_470d_a5de_4d88c75ad24b), pid: 27 };
|
||||
pub const DEVPKEY_DeviceClass_Exclusive: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4321918b_f69e_470d_a5de_4d88c75ad24b), pid: 28 };
|
||||
pub const DEVPKEY_DeviceClass_Icon: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x259abffc_50a7_47ce_af08_68c9a7d73366), pid: 4 };
|
||||
pub const DEVPKEY_DeviceClass_IconPath: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x259abffc_50a7_47ce_af08_68c9a7d73366), pid: 12 };
|
||||
pub const DEVPKEY_DeviceClass_LowerFilters: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4321918b_f69e_470d_a5de_4d88c75ad24b), pid: 20 };
|
||||
pub const DEVPKEY_DeviceClass_Name: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x259abffc_50a7_47ce_af08_68c9a7d73366), pid: 2 };
|
||||
pub const DEVPKEY_DeviceClass_NoDisplayClass: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x259abffc_50a7_47ce_af08_68c9a7d73366), pid: 8 };
|
||||
pub const DEVPKEY_DeviceClass_NoInstallClass: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x259abffc_50a7_47ce_af08_68c9a7d73366), pid: 7 };
|
||||
pub const DEVPKEY_DeviceClass_NoUseClass: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x259abffc_50a7_47ce_af08_68c9a7d73366), pid: 10 };
|
||||
pub const DEVPKEY_DeviceClass_PropPageProvider: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x259abffc_50a7_47ce_af08_68c9a7d73366), pid: 6 };
|
||||
pub const DEVPKEY_DeviceClass_Security: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4321918b_f69e_470d_a5de_4d88c75ad24b), pid: 25 };
|
||||
pub const DEVPKEY_DeviceClass_SecuritySDS: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4321918b_f69e_470d_a5de_4d88c75ad24b), pid: 26 };
|
||||
pub const DEVPKEY_DeviceClass_SilentInstall: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x259abffc_50a7_47ce_af08_68c9a7d73366), pid: 9 };
|
||||
pub const DEVPKEY_DeviceClass_UpperFilters: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4321918b_f69e_470d_a5de_4d88c75ad24b), pid: 19 };
|
||||
pub const DEVPKEY_DeviceContainer_Address: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 51 };
|
||||
pub const DEVPKEY_DeviceContainer_AlwaysShowDeviceAsConnected: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 101 };
|
||||
pub const DEVPKEY_DeviceContainer_AssociationArray: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 80 };
|
||||
pub const DEVPKEY_DeviceContainer_BaselineExperienceId: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 78 };
|
||||
pub const DEVPKEY_DeviceContainer_Category: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 90 };
|
||||
pub const DEVPKEY_DeviceContainer_CategoryGroup_Desc: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 94 };
|
||||
pub const DEVPKEY_DeviceContainer_CategoryGroup_Icon: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 95 };
|
||||
pub const DEVPKEY_DeviceContainer_Category_Desc_Plural: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 92 };
|
||||
pub const DEVPKEY_DeviceContainer_Category_Desc_Singular: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 91 };
|
||||
pub const DEVPKEY_DeviceContainer_Category_Icon: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 93 };
|
||||
pub const DEVPKEY_DeviceContainer_ConfigFlags: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 105 };
|
||||
pub const DEVPKEY_DeviceContainer_CustomPrivilegedPackageFamilyNames: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 107 };
|
||||
pub const DEVPKEY_DeviceContainer_DeviceDescription1: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 81 };
|
||||
pub const DEVPKEY_DeviceContainer_DeviceDescription2: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 82 };
|
||||
pub const DEVPKEY_DeviceContainer_DeviceFunctionSubRank: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 100 };
|
||||
pub const DEVPKEY_DeviceContainer_DiscoveryMethod: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 52 };
|
||||
pub const DEVPKEY_DeviceContainer_ExperienceId: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 89 };
|
||||
pub const DEVPKEY_DeviceContainer_FriendlyName: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x656a3bb3_ecc0_43fd_8477_4ae0404a96cd), pid: 12288 };
|
||||
pub const DEVPKEY_DeviceContainer_HasProblem: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 83 };
|
||||
pub const DEVPKEY_DeviceContainer_Icon: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 57 };
|
||||
pub const DEVPKEY_DeviceContainer_InstallInProgress: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x83da6326_97a6_4088_9453_a1923f573b29), pid: 9 };
|
||||
pub const DEVPKEY_DeviceContainer_IsAuthenticated: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 54 };
|
||||
pub const DEVPKEY_DeviceContainer_IsConnected: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 55 };
|
||||
pub const DEVPKEY_DeviceContainer_IsDefaultDevice: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 86 };
|
||||
pub const DEVPKEY_DeviceContainer_IsDeviceUniquelyIdentifiable: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 79 };
|
||||
pub const DEVPKEY_DeviceContainer_IsEncrypted: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 53 };
|
||||
pub const DEVPKEY_DeviceContainer_IsLocalMachine: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 70 };
|
||||
pub const DEVPKEY_DeviceContainer_IsMetadataSearchInProgress: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 72 };
|
||||
pub const DEVPKEY_DeviceContainer_IsNetworkDevice: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 85 };
|
||||
pub const DEVPKEY_DeviceContainer_IsNotInterestingForDisplay: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 74 };
|
||||
pub const DEVPKEY_DeviceContainer_IsPaired: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 56 };
|
||||
pub const DEVPKEY_DeviceContainer_IsRebootRequired: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 108 };
|
||||
pub const DEVPKEY_DeviceContainer_IsSharedDevice: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 84 };
|
||||
pub const DEVPKEY_DeviceContainer_IsShowInDisconnectedState: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 68 };
|
||||
pub const DEVPKEY_DeviceContainer_Last_Connected: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 67 };
|
||||
pub const DEVPKEY_DeviceContainer_Last_Seen: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 66 };
|
||||
pub const DEVPKEY_DeviceContainer_LaunchDeviceStageFromExplorer: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 77 };
|
||||
pub const DEVPKEY_DeviceContainer_LaunchDeviceStageOnDeviceConnect: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 76 };
|
||||
pub const DEVPKEY_DeviceContainer_Manufacturer: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x656a3bb3_ecc0_43fd_8477_4ae0404a96cd), pid: 8192 };
|
||||
pub const DEVPKEY_DeviceContainer_MetadataCabinet: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 87 };
|
||||
pub const DEVPKEY_DeviceContainer_MetadataChecksum: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 73 };
|
||||
pub const DEVPKEY_DeviceContainer_MetadataPath: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 71 };
|
||||
pub const DEVPKEY_DeviceContainer_ModelName: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x656a3bb3_ecc0_43fd_8477_4ae0404a96cd), pid: 8194 };
|
||||
pub const DEVPKEY_DeviceContainer_ModelNumber: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x656a3bb3_ecc0_43fd_8477_4ae0404a96cd), pid: 8195 };
|
||||
pub const DEVPKEY_DeviceContainer_PrimaryCategory: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 97 };
|
||||
pub const DEVPKEY_DeviceContainer_PrivilegedPackageFamilyNames: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 106 };
|
||||
pub const DEVPKEY_DeviceContainer_RequiresPairingElevation: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 88 };
|
||||
pub const DEVPKEY_DeviceContainer_RequiresUninstallElevation: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 99 };
|
||||
pub const DEVPKEY_DeviceContainer_UnpairUninstall: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 98 };
|
||||
pub const DEVPKEY_DeviceContainer_Version: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 65 };
|
||||
pub const DEVPKEY_DeviceInterfaceClass_DefaultInterface: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x14c83a99_0b3f_44b7_be4c_a178d3990564), pid: 2 };
|
||||
pub const DEVPKEY_DeviceInterfaceClass_Name: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x14c83a99_0b3f_44b7_be4c_a178d3990564), pid: 3 };
|
||||
pub const DEVPKEY_DeviceInterface_Autoplay_Silent: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x434dd28f_9e75_450a_9ab9_ff61e618bad0), pid: 2 };
|
||||
pub const DEVPKEY_DeviceInterface_ClassGuid: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x026e516e_b814_414b_83cd_856d6fef4822), pid: 4 };
|
||||
pub const DEVPKEY_DeviceInterface_Enabled: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x026e516e_b814_414b_83cd_856d6fef4822), pid: 3 };
|
||||
pub const DEVPKEY_DeviceInterface_FriendlyName: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x026e516e_b814_414b_83cd_856d6fef4822), pid: 2 };
|
||||
pub const DEVPKEY_DeviceInterface_ReferenceString: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x026e516e_b814_414b_83cd_856d6fef4822), pid: 5 };
|
||||
pub const DEVPKEY_DeviceInterface_Restricted: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x026e516e_b814_414b_83cd_856d6fef4822), pid: 6 };
|
||||
pub const DEVPKEY_DeviceInterface_SchematicName: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x026e516e_b814_414b_83cd_856d6fef4822), pid: 9 };
|
||||
pub const DEVPKEY_DeviceInterface_UnrestrictedAppCapabilities: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x026e516e_b814_414b_83cd_856d6fef4822), pid: 8 };
|
||||
pub const DEVPKEY_Device_AdditionalSoftwareRequested: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 19 };
|
||||
pub const DEVPKEY_Device_Address: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 30 };
|
||||
pub const DEVPKEY_Device_AssignedToGuest: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 24 };
|
||||
pub const DEVPKEY_Device_BaseContainerId: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 38 };
|
||||
pub const DEVPKEY_Device_BiosDeviceName: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 10 };
|
||||
pub const DEVPKEY_Device_BusNumber: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 23 };
|
||||
pub const DEVPKEY_Device_BusRelations: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4340a6c5_93fa_4706_972c_7b648008a5a7), pid: 7 };
|
||||
pub const DEVPKEY_Device_BusReportedDeviceDesc: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 4 };
|
||||
pub const DEVPKEY_Device_BusTypeGuid: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 21 };
|
||||
pub const DEVPKEY_Device_Capabilities: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 17 };
|
||||
pub const DEVPKEY_Device_Characteristics: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 29 };
|
||||
pub const DEVPKEY_Device_Children: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4340a6c5_93fa_4706_972c_7b648008a5a7), pid: 9 };
|
||||
pub const DEVPKEY_Device_Class: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 9 };
|
||||
pub const DEVPKEY_Device_ClassGuid: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 10 };
|
||||
pub const DEVPKEY_Device_CompanionApps: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x6a742654_d0b2_4420_a523_e068352ac1df), pid: 2 };
|
||||
pub const DEVPKEY_Device_CompatibleIds: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 4 };
|
||||
pub const DEVPKEY_Device_ConfigFlags: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 12 };
|
||||
pub const DEVPKEY_Device_ConfigurationId: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 7 };
|
||||
pub const DEVPKEY_Device_ContainerId: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x8c7ed206_3f8a_4827_b3ab_ae9e1faefc6c), pid: 2 };
|
||||
pub const DEVPKEY_Device_CreatorProcessId: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 25 };
|
||||
pub const DEVPKEY_Device_DHP_Rebalance_Policy: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 2 };
|
||||
pub const DEVPKEY_Device_DebuggerSafe: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 12 };
|
||||
pub const DEVPKEY_Device_DependencyDependents: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 21 };
|
||||
pub const DEVPKEY_Device_DependencyProviders: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 20 };
|
||||
pub const DEVPKEY_Device_DevNodeStatus: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4340a6c5_93fa_4706_972c_7b648008a5a7), pid: 2 };
|
||||
pub const DEVPKEY_Device_DevType: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 27 };
|
||||
pub const DEVPKEY_Device_DeviceDesc: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 2 };
|
||||
pub const DEVPKEY_Device_Driver: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 11 };
|
||||
pub const DEVPKEY_Device_DriverCoInstallers: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 11 };
|
||||
pub const DEVPKEY_Device_DriverDate: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 2 };
|
||||
pub const DEVPKEY_Device_DriverDesc: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 4 };
|
||||
pub const DEVPKEY_Device_DriverInfPath: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 5 };
|
||||
pub const DEVPKEY_Device_DriverInfSection: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 6 };
|
||||
pub const DEVPKEY_Device_DriverInfSectionExt: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 7 };
|
||||
pub const DEVPKEY_Device_DriverLogoLevel: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 15 };
|
||||
pub const DEVPKEY_Device_DriverProblemDesc: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 11 };
|
||||
pub const DEVPKEY_Device_DriverPropPageProvider: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 10 };
|
||||
pub const DEVPKEY_Device_DriverProvider: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 9 };
|
||||
pub const DEVPKEY_Device_DriverRank: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 14 };
|
||||
pub const DEVPKEY_Device_DriverVersion: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 3 };
|
||||
pub const DEVPKEY_Device_EjectionRelations: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4340a6c5_93fa_4706_972c_7b648008a5a7), pid: 4 };
|
||||
pub const DEVPKEY_Device_EnumeratorName: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 24 };
|
||||
pub const DEVPKEY_Device_Exclusive: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 28 };
|
||||
pub const DEVPKEY_Device_ExtendedAddress: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 23 };
|
||||
pub const DEVPKEY_Device_ExtendedConfigurationIds: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 15 };
|
||||
pub const DEVPKEY_Device_FirmwareDate: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 17 };
|
||||
pub const DEVPKEY_Device_FirmwareRevision: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 19 };
|
||||
pub const DEVPKEY_Device_FirmwareVendor: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 26 };
|
||||
pub const DEVPKEY_Device_FirmwareVersion: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 18 };
|
||||
pub const DEVPKEY_Device_FirstInstallDate: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x83da6326_97a6_4088_9453_a1923f573b29), pid: 101 };
|
||||
pub const DEVPKEY_Device_FriendlyName: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 14 };
|
||||
pub const DEVPKEY_Device_FriendlyNameAttributes: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x80d81ea6_7473_4b0c_8216_efc11a2c4c8b), pid: 3 };
|
||||
pub const DEVPKEY_Device_GenericDriverInstalled: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 18 };
|
||||
pub const DEVPKEY_Device_HardwareIds: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 3 };
|
||||
pub const DEVPKEY_Device_HasProblem: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 6 };
|
||||
pub const DEVPKEY_Device_InLocalMachineContainer: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x8c7ed206_3f8a_4827_b3ab_ae9e1faefc6c), pid: 4 };
|
||||
pub const DEVPKEY_Device_InstallDate: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x83da6326_97a6_4088_9453_a1923f573b29), pid: 100 };
|
||||
pub const DEVPKEY_Device_InstallState: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 36 };
|
||||
pub const DEVPKEY_Device_InstanceId: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 256 };
|
||||
pub const DEVPKEY_Device_IsAssociateableByUserAction: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x80d81ea6_7473_4b0c_8216_efc11a2c4c8b), pid: 7 };
|
||||
pub const DEVPKEY_Device_IsPresent: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 5 };
|
||||
pub const DEVPKEY_Device_IsRebootRequired: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 16 };
|
||||
pub const DEVPKEY_Device_LastArrivalDate: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x83da6326_97a6_4088_9453_a1923f573b29), pid: 102 };
|
||||
pub const DEVPKEY_Device_LastRemovalDate: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x83da6326_97a6_4088_9453_a1923f573b29), pid: 103 };
|
||||
pub const DEVPKEY_Device_Legacy: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x80497100_8c73_48b9_aad9_ce387e19c56e), pid: 3 };
|
||||
pub const DEVPKEY_Device_LegacyBusType: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 22 };
|
||||
pub const DEVPKEY_Device_LocationInfo: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 15 };
|
||||
pub const DEVPKEY_Device_LocationPaths: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 37 };
|
||||
pub const DEVPKEY_Device_LowerFilters: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 20 };
|
||||
pub const DEVPKEY_Device_Manufacturer: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 13 };
|
||||
pub const DEVPKEY_Device_ManufacturerAttributes: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x80d81ea6_7473_4b0c_8216_efc11a2c4c8b), pid: 4 };
|
||||
pub const DEVPKEY_Device_MatchingDeviceId: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 8 };
|
||||
pub const DEVPKEY_Device_Model: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x78c34fc8_104a_4aca_9ea4_524d52996e57), pid: 39 };
|
||||
pub const DEVPKEY_Device_ModelId: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x80d81ea6_7473_4b0c_8216_efc11a2c4c8b), pid: 2 };
|
||||
pub const DEVPKEY_Device_NoConnectSound: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 17 };
|
||||
pub const DEVPKEY_Device_Numa_Node: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 3 };
|
||||
pub const DEVPKEY_Device_Numa_Proximity_Domain: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 1 };
|
||||
pub const DEVPKEY_Device_PDOName: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 16 };
|
||||
pub const DEVPKEY_Device_Parent: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4340a6c5_93fa_4706_972c_7b648008a5a7), pid: 8 };
|
||||
pub const DEVPKEY_Device_PhysicalDeviceLocation: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 9 };
|
||||
pub const DEVPKEY_Device_PostInstallInProgress: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 13 };
|
||||
pub const DEVPKEY_Device_PowerData: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 32 };
|
||||
pub const DEVPKEY_Device_PowerRelations: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4340a6c5_93fa_4706_972c_7b648008a5a7), pid: 6 };
|
||||
pub const DEVPKEY_Device_PresenceNotForDevice: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x80d81ea6_7473_4b0c_8216_efc11a2c4c8b), pid: 5 };
|
||||
pub const DEVPKEY_Device_PrimaryCompanionApp: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x6a742654_d0b2_4420_a523_e068352ac1df), pid: 3 };
|
||||
pub const DEVPKEY_Device_ProblemCode: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4340a6c5_93fa_4706_972c_7b648008a5a7), pid: 3 };
|
||||
pub const DEVPKEY_Device_ProblemStatus: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4340a6c5_93fa_4706_972c_7b648008a5a7), pid: 12 };
|
||||
pub const DEVPKEY_Device_RemovalPolicy: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 33 };
|
||||
pub const DEVPKEY_Device_RemovalPolicyDefault: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 34 };
|
||||
pub const DEVPKEY_Device_RemovalPolicyOverride: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 35 };
|
||||
pub const DEVPKEY_Device_RemovalRelations: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4340a6c5_93fa_4706_972c_7b648008a5a7), pid: 5 };
|
||||
pub const DEVPKEY_Device_Reported: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x80497100_8c73_48b9_aad9_ce387e19c56e), pid: 2 };
|
||||
pub const DEVPKEY_Device_ReportedDeviceIdsHash: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 8 };
|
||||
pub const DEVPKEY_Device_ResourcePickerExceptions: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 13 };
|
||||
pub const DEVPKEY_Device_ResourcePickerTags: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa8b865dd_2e3d_4094_ad97_e593a70c75d6), pid: 12 };
|
||||
pub const DEVPKEY_Device_SafeRemovalRequired: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xafd97640_86a3_4210_b67c_289c41aabe55), pid: 2 };
|
||||
pub const DEVPKEY_Device_SafeRemovalRequiredOverride: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xafd97640_86a3_4210_b67c_289c41aabe55), pid: 3 };
|
||||
pub const DEVPKEY_Device_Security: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 25 };
|
||||
pub const DEVPKEY_Device_SecuritySDS: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 26 };
|
||||
pub const DEVPKEY_Device_Service: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 6 };
|
||||
pub const DEVPKEY_Device_SessionId: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x83da6326_97a6_4088_9453_a1923f573b29), pid: 6 };
|
||||
pub const DEVPKEY_Device_ShowInUninstallUI: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x80d81ea6_7473_4b0c_8216_efc11a2c4c8b), pid: 8 };
|
||||
pub const DEVPKEY_Device_Siblings: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4340a6c5_93fa_4706_972c_7b648008a5a7), pid: 10 };
|
||||
pub const DEVPKEY_Device_SignalStrength: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x80d81ea6_7473_4b0c_8216_efc11a2c4c8b), pid: 6 };
|
||||
pub const DEVPKEY_Device_SoftRestartSupported: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 22 };
|
||||
pub const DEVPKEY_Device_Stack: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x540b947e_8b40_45bc_a8a2_6a0b894cbda2), pid: 14 };
|
||||
pub const DEVPKEY_Device_TransportRelations: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4340a6c5_93fa_4706_972c_7b648008a5a7), pid: 11 };
|
||||
pub const DEVPKEY_Device_UINumber: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 18 };
|
||||
pub const DEVPKEY_Device_UINumberDescFormat: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 31 };
|
||||
pub const DEVPKEY_Device_UpperFilters: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xa45c254e_df1c_4efd_8020_67d146a850e0), pid: 19 };
|
||||
pub const DEVPKEY_DrvPkg_BrandingIcon: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xcf73bb51_3abf_44a2_85e0_9a3dc7a12132), pid: 7 };
|
||||
pub const DEVPKEY_DrvPkg_DetailedDescription: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xcf73bb51_3abf_44a2_85e0_9a3dc7a12132), pid: 4 };
|
||||
pub const DEVPKEY_DrvPkg_DocumentationLink: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xcf73bb51_3abf_44a2_85e0_9a3dc7a12132), pid: 5 };
|
||||
pub const DEVPKEY_DrvPkg_Icon: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xcf73bb51_3abf_44a2_85e0_9a3dc7a12132), pid: 6 };
|
||||
pub const DEVPKEY_DrvPkg_Model: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xcf73bb51_3abf_44a2_85e0_9a3dc7a12132), pid: 2 };
|
||||
pub const DEVPKEY_DrvPkg_VendorWebSite: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xcf73bb51_3abf_44a2_85e0_9a3dc7a12132), pid: 3 };
|
||||
pub const DEVPKEY_NAME: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0xb725f130_47ef_101a_a5f1_02608c9eebac), pid: 10 };
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DEVPROPCOMPKEY {
|
||||
pub Key: super::super::Foundation::DEVPROPKEY,
|
||||
pub Store: DEVPROPSTORE,
|
||||
pub LocaleName: windows_sys::core::PCWSTR,
|
||||
}
|
||||
impl Default for DEVPROPCOMPKEY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DEVPROPERTY {
|
||||
pub CompKey: DEVPROPCOMPKEY,
|
||||
pub Type: DEVPROPTYPE,
|
||||
pub BufferSize: u32,
|
||||
pub Buffer: *mut core::ffi::c_void,
|
||||
}
|
||||
impl Default for DEVPROPERTY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DEVPROPID_FIRST_USABLE: u32 = 2u32;
|
||||
pub type DEVPROPSTORE = i32;
|
||||
pub type DEVPROPTYPE = u32;
|
||||
pub type DEVPROP_BOOLEAN = u8;
|
||||
pub const DEVPROP_FALSE: DEVPROP_BOOLEAN = 0u8;
|
||||
pub const DEVPROP_MASK_TYPE: u32 = 4095u32;
|
||||
pub const DEVPROP_MASK_TYPEMOD: u32 = 61440u32;
|
||||
pub const DEVPROP_STORE_SYSTEM: DEVPROPSTORE = 0i32;
|
||||
pub const DEVPROP_STORE_USER: DEVPROPSTORE = 1i32;
|
||||
pub const DEVPROP_TRUE: DEVPROP_BOOLEAN = 255u8;
|
||||
pub const DEVPROP_TYPEMOD_ARRAY: DEVPROPTYPE = 4096u32;
|
||||
pub const DEVPROP_TYPEMOD_LIST: DEVPROPTYPE = 8192u32;
|
||||
pub const DEVPROP_TYPE_BINARY: DEVPROPTYPE = 4099u32;
|
||||
pub const DEVPROP_TYPE_BOOLEAN: DEVPROPTYPE = 17u32;
|
||||
pub const DEVPROP_TYPE_BYTE: DEVPROPTYPE = 3u32;
|
||||
pub const DEVPROP_TYPE_CURRENCY: DEVPROPTYPE = 14u32;
|
||||
pub const DEVPROP_TYPE_DATE: DEVPROPTYPE = 15u32;
|
||||
pub const DEVPROP_TYPE_DECIMAL: DEVPROPTYPE = 12u32;
|
||||
pub const DEVPROP_TYPE_DEVPROPKEY: DEVPROPTYPE = 21u32;
|
||||
pub const DEVPROP_TYPE_DEVPROPTYPE: DEVPROPTYPE = 22u32;
|
||||
pub const DEVPROP_TYPE_DOUBLE: DEVPROPTYPE = 11u32;
|
||||
pub const DEVPROP_TYPE_EMPTY: DEVPROPTYPE = 0u32;
|
||||
pub const DEVPROP_TYPE_ERROR: DEVPROPTYPE = 23u32;
|
||||
pub const DEVPROP_TYPE_FILETIME: DEVPROPTYPE = 16u32;
|
||||
pub const DEVPROP_TYPE_FLOAT: DEVPROPTYPE = 10u32;
|
||||
pub const DEVPROP_TYPE_GUID: DEVPROPTYPE = 13u32;
|
||||
pub const DEVPROP_TYPE_INT16: DEVPROPTYPE = 4u32;
|
||||
pub const DEVPROP_TYPE_INT32: DEVPROPTYPE = 6u32;
|
||||
pub const DEVPROP_TYPE_INT64: DEVPROPTYPE = 8u32;
|
||||
pub const DEVPROP_TYPE_NTSTATUS: DEVPROPTYPE = 24u32;
|
||||
pub const DEVPROP_TYPE_NULL: DEVPROPTYPE = 1u32;
|
||||
pub const DEVPROP_TYPE_SBYTE: DEVPROPTYPE = 2u32;
|
||||
pub const DEVPROP_TYPE_SECURITY_DESCRIPTOR: DEVPROPTYPE = 19u32;
|
||||
pub const DEVPROP_TYPE_SECURITY_DESCRIPTOR_STRING: DEVPROPTYPE = 20u32;
|
||||
pub const DEVPROP_TYPE_STRING: DEVPROPTYPE = 18u32;
|
||||
pub const DEVPROP_TYPE_STRING_INDIRECT: DEVPROPTYPE = 25u32;
|
||||
pub const DEVPROP_TYPE_STRING_LIST: DEVPROPTYPE = 8210u32;
|
||||
pub const DEVPROP_TYPE_UINT16: DEVPROPTYPE = 5u32;
|
||||
pub const DEVPROP_TYPE_UINT32: DEVPROPTYPE = 7u32;
|
||||
pub const DEVPROP_TYPE_UINT64: DEVPROPTYPE = 9u32;
|
||||
pub const MAX_DEVPROP_TYPE: u32 = 25u32;
|
||||
pub const MAX_DEVPROP_TYPEMOD: u32 = 8192u32;
|
||||
@@ -0,0 +1,73 @@
|
||||
pub const GUID_DEVINTERFACE_PWM_CONTROLLER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x60824b4c_eed1_4c9c_b49c_1b961461a819);
|
||||
pub const GUID_DEVINTERFACE_PWM_CONTROLLER_WSZ: windows_sys::core::PCWSTR = windows_sys::core::w!("{60824B4C-EED1-4C9C-B49C-1B961461A819}");
|
||||
pub const IOCTL_PWM_CONTROLLER_GET_ACTUAL_PERIOD: u32 = 262148u32;
|
||||
pub const IOCTL_PWM_CONTROLLER_GET_INFO: u32 = 262144u32;
|
||||
pub const IOCTL_PWM_CONTROLLER_SET_DESIRED_PERIOD: u32 = 294920u32;
|
||||
pub const IOCTL_PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE: u32 = 262544u32;
|
||||
pub const IOCTL_PWM_PIN_GET_POLARITY: u32 = 262552u32;
|
||||
pub const IOCTL_PWM_PIN_IS_STARTED: u32 = 262568u32;
|
||||
pub const IOCTL_PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE: u32 = 295316u32;
|
||||
pub const IOCTL_PWM_PIN_SET_POLARITY: u32 = 295324u32;
|
||||
pub const IOCTL_PWM_PIN_START: u32 = 295331u32;
|
||||
pub const IOCTL_PWM_PIN_STOP: u32 = 295335u32;
|
||||
pub const PWM_ACTIVE_HIGH: PWM_POLARITY = 0i32;
|
||||
pub const PWM_ACTIVE_LOW: PWM_POLARITY = 1i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct PWM_CONTROLLER_GET_ACTUAL_PERIOD_OUTPUT {
|
||||
pub ActualPeriod: u64,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct PWM_CONTROLLER_INFO {
|
||||
pub Size: usize,
|
||||
pub PinCount: u32,
|
||||
pub MinimumPeriod: u64,
|
||||
pub MaximumPeriod: u64,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct PWM_CONTROLLER_SET_DESIRED_PERIOD_INPUT {
|
||||
pub DesiredPeriod: u64,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct PWM_CONTROLLER_SET_DESIRED_PERIOD_OUTPUT {
|
||||
pub ActualPeriod: u64,
|
||||
}
|
||||
pub const PWM_IOCTL_ID_CONTROLLER_GET_ACTUAL_PERIOD: i32 = 1i32;
|
||||
pub const PWM_IOCTL_ID_CONTROLLER_GET_INFO: i32 = 0i32;
|
||||
pub const PWM_IOCTL_ID_CONTROLLER_SET_DESIRED_PERIOD: i32 = 2i32;
|
||||
pub const PWM_IOCTL_ID_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE: i32 = 100i32;
|
||||
pub const PWM_IOCTL_ID_PIN_GET_POLARITY: i32 = 102i32;
|
||||
pub const PWM_IOCTL_ID_PIN_IS_STARTED: i32 = 106i32;
|
||||
pub const PWM_IOCTL_ID_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE: i32 = 101i32;
|
||||
pub const PWM_IOCTL_ID_PIN_SET_POLARITY: i32 = 103i32;
|
||||
pub const PWM_IOCTL_ID_PIN_START: i32 = 104i32;
|
||||
pub const PWM_IOCTL_ID_PIN_STOP: i32 = 105i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE_OUTPUT {
|
||||
pub Percentage: u64,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct PWM_PIN_GET_POLARITY_OUTPUT {
|
||||
pub Polarity: PWM_POLARITY,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct PWM_PIN_IS_STARTED_OUTPUT {
|
||||
pub IsStarted: bool,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE_INPUT {
|
||||
pub Percentage: u64,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct PWM_PIN_SET_POLARITY_INPUT {
|
||||
pub Polarity: PWM_POLARITY,
|
||||
}
|
||||
pub type PWM_POLARITY = i32;
|
||||
+554
@@ -0,0 +1,554 @@
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn CollectionsListAllocateBufferAndSerialize(sourcecollection : *const SENSOR_COLLECTION_LIST, ptargetbuffersizeinbytes : *mut u32, ptargetbuffer : *mut *mut u8) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn CollectionsListCopyAndMarshall(target : *mut SENSOR_COLLECTION_LIST, source : *const SENSOR_COLLECTION_LIST) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn CollectionsListDeserializeFromBuffer(sourcebuffersizeinbytes : u32, sourcebuffer : *const u8, targetcollection : *mut SENSOR_COLLECTION_LIST) -> super::super::Foundation:: NTSTATUS);
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn CollectionsListGetFillableCount(buffersizebytes : u32) -> u32);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn CollectionsListGetMarshalledSize(collection : *const SENSOR_COLLECTION_LIST) -> u32);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn CollectionsListGetMarshalledSizeWithoutSerialization(collection : *const SENSOR_COLLECTION_LIST) -> u32);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn CollectionsListGetSerializedSize(collection : *const SENSOR_COLLECTION_LIST) -> u32);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn CollectionsListMarshall(target : *mut SENSOR_COLLECTION_LIST) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn CollectionsListSerializeToBuffer(sourcecollection : *const SENSOR_COLLECTION_LIST, targetbuffersizeinbytes : u32, targetbuffer : *mut u8) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn CollectionsListSortSubscribedActivitiesByConfidence(thresholds : *const SENSOR_COLLECTION_LIST, pcollection : *mut SENSOR_COLLECTION_LIST) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn CollectionsListUpdateMarshalledPointer(collection : *mut SENSOR_COLLECTION_LIST) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn EvaluateActivityThresholds(newsample : *const SENSOR_COLLECTION_LIST, oldsample : *const SENSOR_COLLECTION_LIST, thresholds : *const SENSOR_COLLECTION_LIST) -> bool);
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn GetPerformanceTime(timems : *mut u32) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn InitPropVariantFromCLSIDArray(members : *const windows_sys::core::GUID, size : u32, ppropvar : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> windows_sys::core::HRESULT);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn InitPropVariantFromFloat(fltval : f32, ppropvar : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> windows_sys::core::HRESULT);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn IsCollectionListSame(lista : *const SENSOR_COLLECTION_LIST, listb : *const SENSOR_COLLECTION_LIST) -> bool);
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn IsGUIDPresentInList(guidarray : *const windows_sys::core::GUID, arraylength : u32, guidelem : *const windows_sys::core::GUID) -> bool);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn IsKeyPresentInCollectionList(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY) -> bool);
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn IsKeyPresentInPropertyList(plist : *const SENSOR_PROPERTY_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY) -> bool);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn IsSensorSubscribed(subscriptionlist : *const SENSOR_COLLECTION_LIST, currenttype : windows_sys::core::GUID) -> bool);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetBool(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut windows_sys::core::BOOL) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetDouble(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut f64) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetFileTime(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetFloat(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut f32) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetGuid(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut windows_sys::core::GUID) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetInt32(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut i32) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetInt64(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut i64) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetNthInt64(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, occurrence : u32, pretvalue : *mut i64) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetNthUlong(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, occurrence : u32, pretvalue : *mut u32) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetNthUshort(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, occurrence : u32, pretvalue : *mut u16) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetPropVariant(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, typecheck : bool, pvalue : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetUlong(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut u32) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetUshort(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut u16) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeySetPropVariant(plist : *mut SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, typecheck : bool, pvalue : *const super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS);
|
||||
#[cfg(all(feature = "Win32_Devices_Properties", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "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 super::Properties:: DEVPROPTYPE) -> super::super::Foundation:: NTSTATUS);
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropertiesListCopy(target : *mut SENSOR_PROPERTY_LIST, source : *const SENSOR_PROPERTY_LIST) -> super::super::Foundation:: NTSTATUS);
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn PropertiesListGetFillableCount(buffersizebytes : u32) -> u32);
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn SensorCollectionGetAt(index : u32, psensorslist : *const SENSOR_COLLECTION_LIST, pkey : *mut super::super::Foundation:: PROPERTYKEY, pvalue : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT) -> super::super::Foundation:: NTSTATUS);
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn SerializationBufferAllocate(sizeinbytes : u32, pbuffer : *mut *mut u8) -> super::super::Foundation:: NTSTATUS);
|
||||
windows_link::link!("sensorsutilsv2.dll" "system" fn SerializationBufferFree(buffer : *const u8));
|
||||
pub type ACTIVITY_STATE = i32;
|
||||
pub type ACTIVITY_STATE_COUNT = i32;
|
||||
pub type AXIS = i32;
|
||||
pub const AXIS_MAX: AXIS = 3i32;
|
||||
pub const AXIS_X: AXIS = 0i32;
|
||||
pub const AXIS_Y: AXIS = 1i32;
|
||||
pub const AXIS_Z: AXIS = 2i32;
|
||||
pub const ActivityStateCount: ACTIVITY_STATE_COUNT = 8i32;
|
||||
pub const ActivityState_Biking: ACTIVITY_STATE = 64i32;
|
||||
pub const ActivityState_Fidgeting: ACTIVITY_STATE = 4i32;
|
||||
pub const ActivityState_Force_Dword: ACTIVITY_STATE = -1i32;
|
||||
pub const ActivityState_Idle: ACTIVITY_STATE = 128i32;
|
||||
pub const ActivityState_InVehicle: ACTIVITY_STATE = 32i32;
|
||||
pub const ActivityState_Max: ACTIVITY_STATE = 256i32;
|
||||
pub const ActivityState_Running: ACTIVITY_STATE = 16i32;
|
||||
pub const ActivityState_Stationary: ACTIVITY_STATE = 2i32;
|
||||
pub const ActivityState_Unknown: ACTIVITY_STATE = 1i32;
|
||||
pub const ActivityState_Walking: ACTIVITY_STATE = 8i32;
|
||||
pub type ELEVATION_CHANGE_MODE = i32;
|
||||
pub const ElevationChangeMode_Elevator: ELEVATION_CHANGE_MODE = 1i32;
|
||||
pub const ElevationChangeMode_Force_Dword: ELEVATION_CHANGE_MODE = -1i32;
|
||||
pub const ElevationChangeMode_Max: ELEVATION_CHANGE_MODE = 3i32;
|
||||
pub const ElevationChangeMode_Stepping: ELEVATION_CHANGE_MODE = 2i32;
|
||||
pub const ElevationChangeMode_Unknown: ELEVATION_CHANGE_MODE = 0i32;
|
||||
pub const GNSS_CLEAR_ALL_ASSISTANCE_DATA: u32 = 1u32;
|
||||
pub const GUID_DEVINTERFACE_SENSOR: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xba1bb692_9b7a_4833_9a1e_525ed134e7e2);
|
||||
pub const GUID_SensorCategory_All: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc317c286_c468_4288_9975_d4c4587c442c);
|
||||
pub const GUID_SensorCategory_Biometric: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xca19690f_a2c7_477d_a99e_99ec6e2b5648);
|
||||
pub const GUID_SensorCategory_Electrical: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xfb73fcd8_fc4a_483c_ac58_27b691c6beff);
|
||||
pub const GUID_SensorCategory_Environmental: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x323439aa_7f66_492b_ba0c_73e9aa0a65d5);
|
||||
pub const GUID_SensorCategory_Light: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x17a665c0_9063_4216_b202_5c7a255e18ce);
|
||||
pub const GUID_SensorCategory_Location: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xbfa794e4_f964_4fdb_90f6_51056bfe4b44);
|
||||
pub const GUID_SensorCategory_Mechanical: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x8d131d68_8ef7_4656_80b5_cccbd93791c5);
|
||||
pub const GUID_SensorCategory_Motion: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xcd09daf1_3b2e_4c3d_b598_b5e5ff93fd46);
|
||||
pub const GUID_SensorCategory_Orientation: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x9e6c04b6_96fe_4954_b726_68682a473f69);
|
||||
pub const GUID_SensorCategory_Other: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x2c90e7a9_f4c9_4fa2_af37_56d471fe5a3d);
|
||||
pub const GUID_SensorCategory_PersonalActivity: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xf1609081_1e12_412b_a14d_cbb0e95bd2e5);
|
||||
pub const GUID_SensorCategory_Scanner: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xb000e77e_f5b5_420f_815d_0270a726f270);
|
||||
pub const GUID_SensorCategory_Unsupported: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x2beae7fa_19b0_48c5_a1f6_b5480dc206b0);
|
||||
pub const GUID_SensorType_Accelerometer3D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc2fb0f5f_e2d2_4c78_bcd0_352a9582819d);
|
||||
pub const GUID_SensorType_ActivityDetection: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x9d9e0118_1807_4f2e_96e4_2ce57142e196);
|
||||
pub const GUID_SensorType_AmbientLight: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x97f115c8_599a_4153_8894_d2d12899918a);
|
||||
pub const GUID_SensorType_Barometer: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x0e903829_ff8a_4a93_97df_3dcbde402288);
|
||||
pub const GUID_SensorType_Custom: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe83af229_8640_4d18_a213_e22675ebb2c3);
|
||||
pub const GUID_SensorType_FloorElevation: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xade4987f_7ac4_4dfa_9722_0a027181c747);
|
||||
pub const GUID_SensorType_GeomagneticOrientation: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe77195f8_2d1f_4823_971b_1c4467556c9d);
|
||||
pub const GUID_SensorType_GravityVector: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x03b52c73_bb76_463f_9524_38de76eb700b);
|
||||
pub const GUID_SensorType_Gyrometer3D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x09485f5a_759e_42c2_bd4b_a349b75c8643);
|
||||
pub const GUID_SensorType_HingeAngle: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x82358065_f4c4_4da1_b272_13c23332a207);
|
||||
pub const GUID_SensorType_Humidity: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5c72bf67_bd7e_4257_990b_98a3ba3b400a);
|
||||
pub const GUID_SensorType_LinearAccelerometer: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x038b0283_97b4_41c8_bc24_5ff1aa48fec7);
|
||||
pub const GUID_SensorType_Magnetometer3D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x55e5effb_15c7_40df_8698_a84b7c863c53);
|
||||
pub const GUID_SensorType_Orientation: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xcdb5d8f7_3cfd_41c8_8542_cce622cf5d6e);
|
||||
pub const GUID_SensorType_Pedometer: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xb19f89af_e3eb_444b_8dea_202575a71599);
|
||||
pub const GUID_SensorType_Proximity: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5220dae9_3179_4430_9f90_06266d2a34de);
|
||||
pub const GUID_SensorType_RelativeOrientation: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x40993b51_4706_44dc_98d5_c920c037ffab);
|
||||
pub const GUID_SensorType_SimpleDeviceOrientation: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x86a19291_0482_402c_bf4c_addac52b1c39);
|
||||
pub const GUID_SensorType_Temperature: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x04fd0ec4_d5da_45fa_95a9_5db38ee19306);
|
||||
pub type HUMAN_PRESENCE_DETECTION_TYPE = i32;
|
||||
pub type HUMAN_PRESENCE_DETECTION_TYPE_COUNT = i32;
|
||||
pub const HumanPresenceDetectionTypeCount: HUMAN_PRESENCE_DETECTION_TYPE_COUNT = 4i32;
|
||||
pub const HumanPresenceDetectionType_AudioBiometric: HUMAN_PRESENCE_DETECTION_TYPE = 8i32;
|
||||
pub const HumanPresenceDetectionType_FacialBiometric: HUMAN_PRESENCE_DETECTION_TYPE = 4i32;
|
||||
pub const HumanPresenceDetectionType_Force_Dword: HUMAN_PRESENCE_DETECTION_TYPE = -1i32;
|
||||
pub const HumanPresenceDetectionType_Undefined: HUMAN_PRESENCE_DETECTION_TYPE = 0i32;
|
||||
pub const HumanPresenceDetectionType_VendorDefinedBiometric: HUMAN_PRESENCE_DETECTION_TYPE = 2i32;
|
||||
pub const HumanPresenceDetectionType_VendorDefinedNonBiometric: HUMAN_PRESENCE_DETECTION_TYPE = 1i32;
|
||||
pub type LOCATION_DESIRED_ACCURACY = i32;
|
||||
pub const LOCATION_DESIRED_ACCURACY_DEFAULT: LOCATION_DESIRED_ACCURACY = 0i32;
|
||||
pub const LOCATION_DESIRED_ACCURACY_HIGH: LOCATION_DESIRED_ACCURACY = 1i32;
|
||||
pub type LOCATION_POSITION_SOURCE = i32;
|
||||
pub const LOCATION_POSITION_SOURCE_CELLULAR: LOCATION_POSITION_SOURCE = 0i32;
|
||||
pub const LOCATION_POSITION_SOURCE_IPADDRESS: LOCATION_POSITION_SOURCE = 3i32;
|
||||
pub const LOCATION_POSITION_SOURCE_SATELLITE: LOCATION_POSITION_SOURCE = 1i32;
|
||||
pub const LOCATION_POSITION_SOURCE_UNKNOWN: LOCATION_POSITION_SOURCE = 4i32;
|
||||
pub const LOCATION_POSITION_SOURCE_WIFI: LOCATION_POSITION_SOURCE = 2i32;
|
||||
pub type MAGNETOMETER_ACCURACY = i32;
|
||||
pub const MAGNETOMETER_ACCURACY_APPROXIMATE: MagnetometerAccuracy = 2i32;
|
||||
pub const MAGNETOMETER_ACCURACY_HIGH: MagnetometerAccuracy = 3i32;
|
||||
pub const MAGNETOMETER_ACCURACY_UNKNOWN: MagnetometerAccuracy = 0i32;
|
||||
pub const MAGNETOMETER_ACCURACY_UNRELIABLE: MagnetometerAccuracy = 1i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct MATRIX3X3 {
|
||||
pub Anonymous: MATRIX3X3_0,
|
||||
}
|
||||
impl Default for MATRIX3X3 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union MATRIX3X3_0 {
|
||||
pub Anonymous1: MATRIX3X3_0_0,
|
||||
pub Anonymous2: MATRIX3X3_0_1,
|
||||
pub M: [f32; 9],
|
||||
}
|
||||
impl Default for MATRIX3X3_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct MATRIX3X3_0_0 {
|
||||
pub A11: f32,
|
||||
pub A12: f32,
|
||||
pub A13: f32,
|
||||
pub A21: f32,
|
||||
pub A22: f32,
|
||||
pub A23: f32,
|
||||
pub A31: f32,
|
||||
pub A32: f32,
|
||||
pub A33: f32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct MATRIX3X3_0_1 {
|
||||
pub V1: VEC3D,
|
||||
pub V2: VEC3D,
|
||||
pub V3: VEC3D,
|
||||
}
|
||||
pub type MagnetometerAccuracy = i32;
|
||||
pub const MagnetometerAccuracy_Approximate: MAGNETOMETER_ACCURACY = 2i32;
|
||||
pub const MagnetometerAccuracy_High: MAGNETOMETER_ACCURACY = 3i32;
|
||||
pub const MagnetometerAccuracy_Unknown: MAGNETOMETER_ACCURACY = 0i32;
|
||||
pub const MagnetometerAccuracy_Unreliable: MAGNETOMETER_ACCURACY = 1i32;
|
||||
pub type PEDOMETER_STEP_TYPE = i32;
|
||||
pub type PEDOMETER_STEP_TYPE_COUNT = i32;
|
||||
pub type PROXIMITY_SENSOR_CAPABILITIES = i32;
|
||||
pub type PROXIMITY_TYPE = i32;
|
||||
pub const PedometerStepTypeCount: PEDOMETER_STEP_TYPE_COUNT = 3i32;
|
||||
pub const PedometerStepType_Force_Dword: PEDOMETER_STEP_TYPE = -1i32;
|
||||
pub const PedometerStepType_Max: PEDOMETER_STEP_TYPE = 8i32;
|
||||
pub const PedometerStepType_Running: PEDOMETER_STEP_TYPE = 4i32;
|
||||
pub const PedometerStepType_Unknown: PEDOMETER_STEP_TYPE = 1i32;
|
||||
pub const PedometerStepType_Walking: PEDOMETER_STEP_TYPE = 2i32;
|
||||
pub const ProximityType_Force_Dword: PROXIMITY_TYPE = -1i32;
|
||||
pub const ProximityType_HumanProximity: PROXIMITY_TYPE = 1i32;
|
||||
pub const ProximityType_ObjectProximity: PROXIMITY_TYPE = 0i32;
|
||||
pub const Proximity_Sensor_Human_Engagement_Capable: PROXIMITY_SENSOR_CAPABILITIES = 2i32;
|
||||
pub const Proximity_Sensor_Human_Presence_Capable: PROXIMITY_SENSOR_CAPABILITIES = 1i32;
|
||||
pub const Proximity_Sensor_Supported_Capabilities: PROXIMITY_SENSOR_CAPABILITIES = 3i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct QUATERNION {
|
||||
pub X: f32,
|
||||
pub Y: f32,
|
||||
pub Z: f32,
|
||||
pub W: f32,
|
||||
}
|
||||
pub const SENSOR_CATEGORY_ALL: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc317c286_c468_4288_9975_d4c4587c442c);
|
||||
pub const SENSOR_CATEGORY_BIOMETRIC: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xca19690f_a2c7_477d_a99e_99ec6e2b5648);
|
||||
pub const SENSOR_CATEGORY_ELECTRICAL: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xfb73fcd8_fc4a_483c_ac58_27b691c6beff);
|
||||
pub const SENSOR_CATEGORY_ENVIRONMENTAL: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x323439aa_7f66_492b_ba0c_73e9aa0a65d5);
|
||||
pub const SENSOR_CATEGORY_LIGHT: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x17a665c0_9063_4216_b202_5c7a255e18ce);
|
||||
pub const SENSOR_CATEGORY_LOCATION: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xbfa794e4_f964_4fdb_90f6_51056bfe4b44);
|
||||
pub const SENSOR_CATEGORY_MECHANICAL: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x8d131d68_8ef7_4656_80b5_cccbd93791c5);
|
||||
pub const SENSOR_CATEGORY_MOTION: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xcd09daf1_3b2e_4c3d_b598_b5e5ff93fd46);
|
||||
pub const SENSOR_CATEGORY_ORIENTATION: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x9e6c04b6_96fe_4954_b726_68682a473f69);
|
||||
pub const SENSOR_CATEGORY_OTHER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x2c90e7a9_f4c9_4fa2_af37_56d471fe5a3d);
|
||||
pub const SENSOR_CATEGORY_SCANNER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xb000e77e_f5b5_420f_815d_0270a726f270);
|
||||
pub const SENSOR_CATEGORY_UNSUPPORTED: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x2beae7fa_19b0_48c5_a1f6_b5480dc206b0);
|
||||
#[repr(C)]
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SENSOR_COLLECTION_LIST {
|
||||
pub AllocatedSizeInBytes: u32,
|
||||
pub Count: u32,
|
||||
pub List: [SENSOR_VALUE_PAIR; 1],
|
||||
}
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
impl Default for SENSOR_COLLECTION_LIST {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type SENSOR_CONNECTION_TYPES = i32;
|
||||
pub const SENSOR_CONNECTION_TYPE_PC_ATTACHED: SensorConnectionType = 1i32;
|
||||
pub const SENSOR_CONNECTION_TYPE_PC_EXTERNAL: SensorConnectionType = 2i32;
|
||||
pub const SENSOR_CONNECTION_TYPE_PC_INTEGRATED: SensorConnectionType = 0i32;
|
||||
pub const SENSOR_DATA_TYPE_ABSOLUTE_PRESSURE_PASCAL: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x38564a7c_f2f2_49bb_9b2b_ba60f66a58df), pid: 5 };
|
||||
pub const SENSOR_DATA_TYPE_ACCELERATION_X_G: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x3f8a69a2_07c5_4e48_a965_cd797aab56d5), pid: 2 };
|
||||
pub const SENSOR_DATA_TYPE_ACCELERATION_Y_G: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x3f8a69a2_07c5_4e48_a965_cd797aab56d5), pid: 3 };
|
||||
pub const SENSOR_DATA_TYPE_ACCELERATION_Z_G: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x3f8a69a2_07c5_4e48_a965_cd797aab56d5), pid: 4 };
|
||||
pub const SENSOR_DATA_TYPE_ADDRESS1: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 23 };
|
||||
pub const SENSOR_DATA_TYPE_ADDRESS2: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 24 };
|
||||
pub const SENSOR_DATA_TYPE_ALTITUDE_ANTENNA_SEALEVEL_METERS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 36 };
|
||||
pub const SENSOR_DATA_TYPE_ALTITUDE_ELLIPSOID_ERROR_METERS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 29 };
|
||||
pub const SENSOR_DATA_TYPE_ALTITUDE_ELLIPSOID_METERS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 5 };
|
||||
pub const SENSOR_DATA_TYPE_ALTITUDE_SEALEVEL_ERROR_METERS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 30 };
|
||||
pub const SENSOR_DATA_TYPE_ALTITUDE_SEALEVEL_METERS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 4 };
|
||||
pub const SENSOR_DATA_TYPE_ANGULAR_ACCELERATION_X_DEGREES_PER_SECOND_SQUARED: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x3f8a69a2_07c5_4e48_a965_cd797aab56d5), pid: 5 };
|
||||
pub const SENSOR_DATA_TYPE_ANGULAR_ACCELERATION_Y_DEGREES_PER_SECOND_SQUARED: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x3f8a69a2_07c5_4e48_a965_cd797aab56d5), pid: 6 };
|
||||
pub const SENSOR_DATA_TYPE_ANGULAR_ACCELERATION_Z_DEGREES_PER_SECOND_SQUARED: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x3f8a69a2_07c5_4e48_a965_cd797aab56d5), pid: 7 };
|
||||
pub const SENSOR_DATA_TYPE_ANGULAR_VELOCITY_X_DEGREES_PER_SECOND: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x3f8a69a2_07c5_4e48_a965_cd797aab56d5), pid: 10 };
|
||||
pub const SENSOR_DATA_TYPE_ANGULAR_VELOCITY_Y_DEGREES_PER_SECOND: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x3f8a69a2_07c5_4e48_a965_cd797aab56d5), pid: 11 };
|
||||
pub const SENSOR_DATA_TYPE_ANGULAR_VELOCITY_Z_DEGREES_PER_SECOND: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x3f8a69a2_07c5_4e48_a965_cd797aab56d5), pid: 12 };
|
||||
pub const SENSOR_DATA_TYPE_ATMOSPHERIC_PRESSURE_BAR: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x8b0aa2f1_2d57_42ee_8cc0_4d27622b46c4), pid: 4 };
|
||||
pub const SENSOR_DATA_TYPE_BIOMETRIC_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x2299288a_6d9e_4b0b_b7ec_3528f89e40af);
|
||||
pub const SENSOR_DATA_TYPE_BOOLEAN_SWITCH_ARRAY_STATES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x38564a7c_f2f2_49bb_9b2b_ba60f66a58df), pid: 10 };
|
||||
pub const SENSOR_DATA_TYPE_BOOLEAN_SWITCH_STATE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x38564a7c_f2f2_49bb_9b2b_ba60f66a58df), pid: 2 };
|
||||
pub const SENSOR_DATA_TYPE_CAPACITANCE_FARAD: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xbbb246d1_e242_4780_a2d3_cded84f35842), pid: 4 };
|
||||
pub const SENSOR_DATA_TYPE_CITY: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 25 };
|
||||
pub const SENSOR_DATA_TYPE_COMMON_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xdb5e0cf2_cf1f_4c18_b46c_d86011d62150);
|
||||
pub const SENSOR_DATA_TYPE_COUNTRY_REGION: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 28 };
|
||||
pub const SENSOR_DATA_TYPE_CURRENT_AMPS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xbbb246d1_e242_4780_a2d3_cded84f35842), pid: 3 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_BOOLEAN_ARRAY: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 6 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f);
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_USAGE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 5 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE1: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 7 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE10: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 16 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE11: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 17 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE12: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 18 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE13: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 19 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE14: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 20 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE15: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 21 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE16: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 22 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE17: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 23 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE18: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 24 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE19: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 25 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE2: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 8 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE20: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 26 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE21: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 27 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE22: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 28 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE23: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 29 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE24: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 30 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE25: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 31 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE26: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 32 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE27: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 33 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE28: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 34 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE3: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 9 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE4: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 10 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE5: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 11 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE6: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 12 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE7: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 13 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE8: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 14 };
|
||||
pub const SENSOR_DATA_TYPE_CUSTOM_VALUE9: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xb14c764f_07cf_41e8_9d82_ebe3d0776a6f), pid: 15 };
|
||||
pub const SENSOR_DATA_TYPE_DGPS_DATA_AGE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 35 };
|
||||
pub const SENSOR_DATA_TYPE_DIFFERENTIAL_REFERENCE_STATION_ID: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 37 };
|
||||
pub const SENSOR_DATA_TYPE_DISTANCE_X_METERS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 8 };
|
||||
pub const SENSOR_DATA_TYPE_DISTANCE_Y_METERS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 9 };
|
||||
pub const SENSOR_DATA_TYPE_DISTANCE_Z_METERS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 10 };
|
||||
pub const SENSOR_DATA_TYPE_ELECTRICAL_FREQUENCY_HERTZ: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xbbb246d1_e242_4780_a2d3_cded84f35842), pid: 9 };
|
||||
pub const SENSOR_DATA_TYPE_ELECTRICAL_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xbbb246d1_e242_4780_a2d3_cded84f35842);
|
||||
pub const SENSOR_DATA_TYPE_ELECTRICAL_PERCENT_OF_RANGE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xbbb246d1_e242_4780_a2d3_cded84f35842), pid: 8 };
|
||||
pub const SENSOR_DATA_TYPE_ELECTRICAL_POWER_WATTS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xbbb246d1_e242_4780_a2d3_cded84f35842), pid: 7 };
|
||||
pub const SENSOR_DATA_TYPE_ENVIRONMENTAL_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x8b0aa2f1_2d57_42ee_8cc0_4d27622b46c4);
|
||||
pub const SENSOR_DATA_TYPE_ERROR_RADIUS_METERS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 22 };
|
||||
pub const SENSOR_DATA_TYPE_FIX_QUALITY: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 10 };
|
||||
pub const SENSOR_DATA_TYPE_FIX_TYPE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 11 };
|
||||
pub const SENSOR_DATA_TYPE_FORCE_NEWTONS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x38564a7c_f2f2_49bb_9b2b_ba60f66a58df), pid: 4 };
|
||||
pub const SENSOR_DATA_TYPE_GAUGE_PRESSURE_PASCAL: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x38564a7c_f2f2_49bb_9b2b_ba60f66a58df), pid: 6 };
|
||||
pub const SENSOR_DATA_TYPE_GEOIDAL_SEPARATION: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 34 };
|
||||
pub const SENSOR_DATA_TYPE_GPS_OPERATION_MODE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 32 };
|
||||
pub const SENSOR_DATA_TYPE_GPS_SELECTION_MODE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 31 };
|
||||
pub const SENSOR_DATA_TYPE_GPS_STATUS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 33 };
|
||||
pub const SENSOR_DATA_TYPE_GUID_MECHANICAL_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x38564a7c_f2f2_49bb_9b2b_ba60f66a58df);
|
||||
pub const SENSOR_DATA_TYPE_HORIZONAL_DILUTION_OF_PRECISION: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 13 };
|
||||
pub const SENSOR_DATA_TYPE_HUMAN_PRESENCE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x2299288a_6d9e_4b0b_b7ec_3528f89e40af), pid: 2 };
|
||||
pub const SENSOR_DATA_TYPE_HUMAN_PROXIMITY_METERS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x2299288a_6d9e_4b0b_b7ec_3528f89e40af), pid: 3 };
|
||||
pub const SENSOR_DATA_TYPE_INDUCTANCE_HENRY: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xbbb246d1_e242_4780_a2d3_cded84f35842), pid: 6 };
|
||||
pub const SENSOR_DATA_TYPE_LATITUDE_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 2 };
|
||||
pub const SENSOR_DATA_TYPE_LIGHT_CHROMACITY: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xe4c77ce2_dcb7_46e9_8439_4fec548833a6), pid: 4 };
|
||||
pub const SENSOR_DATA_TYPE_LIGHT_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe4c77ce2_dcb7_46e9_8439_4fec548833a6);
|
||||
pub const SENSOR_DATA_TYPE_LIGHT_LEVEL_LUX: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xe4c77ce2_dcb7_46e9_8439_4fec548833a6), pid: 2 };
|
||||
pub const SENSOR_DATA_TYPE_LIGHT_TEMPERATURE_KELVIN: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xe4c77ce2_dcb7_46e9_8439_4fec548833a6), pid: 3 };
|
||||
pub const SENSOR_DATA_TYPE_LOCATION_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4);
|
||||
pub const SENSOR_DATA_TYPE_LOCATION_SOURCE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 40 };
|
||||
pub const SENSOR_DATA_TYPE_LONGITUDE_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 3 };
|
||||
pub const SENSOR_DATA_TYPE_MAGNETIC_FIELD_STRENGTH_X_MILLIGAUSS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 19 };
|
||||
pub const SENSOR_DATA_TYPE_MAGNETIC_FIELD_STRENGTH_Y_MILLIGAUSS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 20 };
|
||||
pub const SENSOR_DATA_TYPE_MAGNETIC_FIELD_STRENGTH_Z_MILLIGAUSS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 21 };
|
||||
pub const SENSOR_DATA_TYPE_MAGNETIC_HEADING_COMPENSATED_MAGNETIC_NORTH_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 11 };
|
||||
pub const SENSOR_DATA_TYPE_MAGNETIC_HEADING_COMPENSATED_TRUE_NORTH_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 12 };
|
||||
pub const SENSOR_DATA_TYPE_MAGNETIC_HEADING_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 8 };
|
||||
pub const SENSOR_DATA_TYPE_MAGNETIC_HEADING_MAGNETIC_NORTH_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 13 };
|
||||
pub const SENSOR_DATA_TYPE_MAGNETIC_HEADING_TRUE_NORTH_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 14 };
|
||||
pub const SENSOR_DATA_TYPE_MAGNETIC_HEADING_X_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 5 };
|
||||
pub const SENSOR_DATA_TYPE_MAGNETIC_HEADING_Y_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 6 };
|
||||
pub const SENSOR_DATA_TYPE_MAGNETIC_HEADING_Z_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 7 };
|
||||
pub const SENSOR_DATA_TYPE_MAGNETIC_VARIATION: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 9 };
|
||||
pub const SENSOR_DATA_TYPE_MAGNETOMETER_ACCURACY: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 22 };
|
||||
pub const SENSOR_DATA_TYPE_MOTION_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x3f8a69a2_07c5_4e48_a965_cd797aab56d5);
|
||||
pub const SENSOR_DATA_TYPE_MOTION_STATE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x3f8a69a2_07c5_4e48_a965_cd797aab56d5), pid: 9 };
|
||||
pub const SENSOR_DATA_TYPE_MULTIVALUE_SWITCH_STATE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x38564a7c_f2f2_49bb_9b2b_ba60f66a58df), pid: 3 };
|
||||
pub const SENSOR_DATA_TYPE_NMEA_SENTENCE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 38 };
|
||||
pub const SENSOR_DATA_TYPE_ORIENTATION_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd);
|
||||
pub const SENSOR_DATA_TYPE_POSITION_DILUTION_OF_PRECISION: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 12 };
|
||||
pub const SENSOR_DATA_TYPE_POSTALCODE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 27 };
|
||||
pub const SENSOR_DATA_TYPE_QUADRANT_ANGLE_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 15 };
|
||||
pub const SENSOR_DATA_TYPE_QUATERNION: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 17 };
|
||||
pub const SENSOR_DATA_TYPE_RELATIVE_HUMIDITY_PERCENT: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x8b0aa2f1_2d57_42ee_8cc0_4d27622b46c4), pid: 3 };
|
||||
pub const SENSOR_DATA_TYPE_RESISTANCE_OHMS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xbbb246d1_e242_4780_a2d3_cded84f35842), pid: 5 };
|
||||
pub const SENSOR_DATA_TYPE_RFID_TAG_40_BIT: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xd7a59a3c_3421_44ab_8d3a_9de8ab6c4cae), pid: 2 };
|
||||
pub const SENSOR_DATA_TYPE_ROTATION_MATRIX: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 16 };
|
||||
pub const SENSOR_DATA_TYPE_SATELLITES_IN_VIEW: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 17 };
|
||||
pub const SENSOR_DATA_TYPE_SATELLITES_IN_VIEW_AZIMUTH: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 20 };
|
||||
pub const SENSOR_DATA_TYPE_SATELLITES_IN_VIEW_ELEVATION: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 19 };
|
||||
pub const SENSOR_DATA_TYPE_SATELLITES_IN_VIEW_ID: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 39 };
|
||||
pub const SENSOR_DATA_TYPE_SATELLITES_IN_VIEW_PRNS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 18 };
|
||||
pub const SENSOR_DATA_TYPE_SATELLITES_IN_VIEW_STN_RATIO: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 21 };
|
||||
pub const SENSOR_DATA_TYPE_SATELLITES_USED_COUNT: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 15 };
|
||||
pub const SENSOR_DATA_TYPE_SATELLITES_USED_PRNS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 16 };
|
||||
pub const SENSOR_DATA_TYPE_SATELLITES_USED_PRNS_AND_CONSTELLATIONS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 41 };
|
||||
pub const SENSOR_DATA_TYPE_SCANNER_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xd7a59a3c_3421_44ab_8d3a_9de8ab6c4cae);
|
||||
pub const SENSOR_DATA_TYPE_SIMPLE_DEVICE_ORIENTATION: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 18 };
|
||||
pub const SENSOR_DATA_TYPE_SPEED_KNOTS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 6 };
|
||||
pub const SENSOR_DATA_TYPE_SPEED_METERS_PER_SECOND: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x3f8a69a2_07c5_4e48_a965_cd797aab56d5), pid: 8 };
|
||||
pub const SENSOR_DATA_TYPE_STATE_PROVINCE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 26 };
|
||||
pub const SENSOR_DATA_TYPE_STRAIN: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x38564a7c_f2f2_49bb_9b2b_ba60f66a58df), pid: 7 };
|
||||
pub const SENSOR_DATA_TYPE_TEMPERATURE_CELSIUS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x8b0aa2f1_2d57_42ee_8cc0_4d27622b46c4), pid: 2 };
|
||||
pub const SENSOR_DATA_TYPE_TILT_X_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 2 };
|
||||
pub const SENSOR_DATA_TYPE_TILT_Y_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 3 };
|
||||
pub const SENSOR_DATA_TYPE_TILT_Z_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x1637d8a2_4248_4275_865d_558de84aedfd), pid: 4 };
|
||||
pub const SENSOR_DATA_TYPE_TIMESTAMP: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xdb5e0cf2_cf1f_4c18_b46c_d86011d62150), pid: 2 };
|
||||
pub const SENSOR_DATA_TYPE_TOUCH_STATE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x2299288a_6d9e_4b0b_b7ec_3528f89e40af), pid: 4 };
|
||||
pub const SENSOR_DATA_TYPE_TRUE_HEADING_DEGREES: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 7 };
|
||||
pub const SENSOR_DATA_TYPE_VERTICAL_DILUTION_OF_PRECISION: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x055c74d8_ca6f_47d6_95c6_1ed3637a0ff4), pid: 14 };
|
||||
pub const SENSOR_DATA_TYPE_VOLTAGE_VOLTS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xbbb246d1_e242_4780_a2d3_cded84f35842), pid: 2 };
|
||||
pub const SENSOR_DATA_TYPE_WEIGHT_KILOGRAMS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x38564a7c_f2f2_49bb_9b2b_ba60f66a58df), pid: 8 };
|
||||
pub const SENSOR_DATA_TYPE_WIND_DIRECTION_DEGREES_ANTICLOCKWISE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x8b0aa2f1_2d57_42ee_8cc0_4d27622b46c4), pid: 5 };
|
||||
pub const SENSOR_DATA_TYPE_WIND_SPEED_METERS_PER_SECOND: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x8b0aa2f1_2d57_42ee_8cc0_4d27622b46c4), pid: 6 };
|
||||
pub const SENSOR_ERROR_PARAMETER_COMMON_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x77112bcd_fce1_4f43_b8b8_a88256adb4b3);
|
||||
pub const SENSOR_EVENT_ACCELEROMETER_SHAKE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x825f5a94_0f48_4396_9ca0_6ecb5c99d915);
|
||||
pub const SENSOR_EVENT_DATA_UPDATED: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x2ed0f2a4_0087_41d3_87db_6773370b3c88);
|
||||
pub const SENSOR_EVENT_PARAMETER_COMMON_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x64346e30_8728_4b34_bdf6_4f52442c5c28);
|
||||
pub const SENSOR_EVENT_PARAMETER_EVENT_ID: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x64346e30_8728_4b34_bdf6_4f52442c5c28), pid: 2 };
|
||||
pub const SENSOR_EVENT_PARAMETER_STATE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x64346e30_8728_4b34_bdf6_4f52442c5c28), pid: 3 };
|
||||
pub const SENSOR_EVENT_PROPERTY_CHANGED: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x2358f099_84c9_4d3d_90df_c2421e2b2045);
|
||||
pub const SENSOR_EVENT_STATE_CHANGED: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xbfd96016_6bd7_4560_ad34_f2f6607e8f81);
|
||||
pub const SENSOR_PROPERTY_ACCURACY: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 17 };
|
||||
pub const SENSOR_PROPERTY_CHANGE_SENSITIVITY: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 14 };
|
||||
pub const SENSOR_PROPERTY_CLEAR_ASSISTANCE_DATA: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xe1e962f4_6e65_45f7_9c36_d487b7b1bd34), pid: 2 };
|
||||
pub const SENSOR_PROPERTY_COMMON_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920);
|
||||
pub const SENSOR_PROPERTY_CONNECTION_TYPE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 11 };
|
||||
pub const SENSOR_PROPERTY_CURRENT_REPORT_INTERVAL: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 13 };
|
||||
pub const SENSOR_PROPERTY_DESCRIPTION: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 10 };
|
||||
pub const SENSOR_PROPERTY_DEVICE_PATH: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 15 };
|
||||
pub const SENSOR_PROPERTY_FRIENDLY_NAME: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 9 };
|
||||
pub const SENSOR_PROPERTY_HID_USAGE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 22 };
|
||||
pub const SENSOR_PROPERTY_LIGHT_RESPONSE_CURVE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 16 };
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SENSOR_PROPERTY_LIST {
|
||||
pub AllocatedSizeInBytes: u32,
|
||||
pub Count: u32,
|
||||
pub List: [super::super::Foundation::PROPERTYKEY; 1],
|
||||
}
|
||||
impl Default for SENSOR_PROPERTY_LIST {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const SENSOR_PROPERTY_LIST_HEADER_SIZE: u32 = 8u32;
|
||||
pub const SENSOR_PROPERTY_LOCATION_DESIRED_ACCURACY: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 19 };
|
||||
pub const SENSOR_PROPERTY_MANUFACTURER: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 6 };
|
||||
pub const SENSOR_PROPERTY_MIN_REPORT_INTERVAL: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 12 };
|
||||
pub const SENSOR_PROPERTY_MODEL: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 7 };
|
||||
pub const SENSOR_PROPERTY_PERSISTENT_UNIQUE_ID: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 5 };
|
||||
pub const SENSOR_PROPERTY_RADIO_STATE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 23 };
|
||||
pub const SENSOR_PROPERTY_RADIO_STATE_PREVIOUS: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 24 };
|
||||
pub const SENSOR_PROPERTY_RANGE_MAXIMUM: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 21 };
|
||||
pub const SENSOR_PROPERTY_RANGE_MINIMUM: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 20 };
|
||||
pub const SENSOR_PROPERTY_RESOLUTION: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 18 };
|
||||
pub const SENSOR_PROPERTY_SERIAL_NUMBER: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 8 };
|
||||
pub const SENSOR_PROPERTY_STATE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 3 };
|
||||
pub const SENSOR_PROPERTY_TEST_GUID: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe1e962f4_6e65_45f7_9c36_d487b7b1bd34);
|
||||
pub const SENSOR_PROPERTY_TURN_ON_OFF_NMEA: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0xe1e962f4_6e65_45f7_9c36_d487b7b1bd34), pid: 3 };
|
||||
pub const SENSOR_PROPERTY_TYPE: super::super::Foundation::PROPERTYKEY = super::super::Foundation::PROPERTYKEY { fmtid: windows_sys::core::GUID::from_u128(0x7f8383ec_d3ec_495c_a8cf_b8bbe85c2920), pid: 2 };
|
||||
pub type SENSOR_STATE = i32;
|
||||
pub const SENSOR_STATE_ACCESS_DENIED: SensorState = 4i32;
|
||||
pub const SENSOR_STATE_ERROR: SensorState = 5i32;
|
||||
pub const SENSOR_STATE_INITIALIZING: SensorState = 3i32;
|
||||
pub const SENSOR_STATE_MAX: SensorState = 5i32;
|
||||
pub const SENSOR_STATE_MIN: SensorState = 0i32;
|
||||
pub const SENSOR_STATE_NOT_AVAILABLE: SensorState = 1i32;
|
||||
pub const SENSOR_STATE_NO_DATA: SensorState = 2i32;
|
||||
pub const SENSOR_STATE_READY: SensorState = 0i32;
|
||||
pub const SENSOR_TYPE_ACCELEROMETER_1D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc04d2387_7340_4cc2_991e_3b18cb8ef2f4);
|
||||
pub const SENSOR_TYPE_ACCELEROMETER_2D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xb2c517a8_f6b5_4ba6_a423_5df560b4cc07);
|
||||
pub const SENSOR_TYPE_ACCELEROMETER_3D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc2fb0f5f_e2d2_4c78_bcd0_352a9582819d);
|
||||
pub const SENSOR_TYPE_AGGREGATED_DEVICE_ORIENTATION: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xcdb5d8f7_3cfd_41c8_8542_cce622cf5d6e);
|
||||
pub const SENSOR_TYPE_AGGREGATED_QUADRANT_ORIENTATION: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x9f81f1af_c4ab_4307_9904_c828bfb90829);
|
||||
pub const SENSOR_TYPE_AGGREGATED_SIMPLE_DEVICE_ORIENTATION: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x86a19291_0482_402c_bf4c_addac52b1c39);
|
||||
pub const SENSOR_TYPE_AMBIENT_LIGHT: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x97f115c8_599a_4153_8894_d2d12899918a);
|
||||
pub const SENSOR_TYPE_BARCODE_SCANNER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x990b3d8f_85bb_45ff_914d_998c04f372df);
|
||||
pub const SENSOR_TYPE_BOOLEAN_SWITCH: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x9c7e371f_1041_460b_8d5c_71e4752e350c);
|
||||
pub const SENSOR_TYPE_BOOLEAN_SWITCH_ARRAY: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x545c8ba5_b143_4545_868f_ca7fd986b4f6);
|
||||
pub const SENSOR_TYPE_CAPACITANCE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xca2ffb1c_2317_49c0_a0b4_b63ce63461a0);
|
||||
pub const SENSOR_TYPE_COMPASS_1D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xa415f6c5_cb50_49d0_8e62_a8270bd7a26c);
|
||||
pub const SENSOR_TYPE_COMPASS_2D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x15655cc0_997a_4d30_84db_57caba3648bb);
|
||||
pub const SENSOR_TYPE_COMPASS_3D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x76b5ce0d_17dd_414d_93a1_e127f40bdf6e);
|
||||
pub const SENSOR_TYPE_CURRENT: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5adc9fce_15a0_4bbe_a1ad_2d38a9ae831c);
|
||||
pub const SENSOR_TYPE_CUSTOM: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe83af229_8640_4d18_a213_e22675ebb2c3);
|
||||
pub const SENSOR_TYPE_DISTANCE_1D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5f14ab2f_1407_4306_a93f_b1dbabe4f9c0);
|
||||
pub const SENSOR_TYPE_DISTANCE_2D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5cf9a46c_a9a2_4e55_b6a1_a04aafa95a92);
|
||||
pub const SENSOR_TYPE_DISTANCE_3D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xa20cae31_0e25_4772_9fe5_96608a1354b2);
|
||||
pub const SENSOR_TYPE_ELECTRICAL_POWER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x212f10f5_14ab_4376_9a43_a7794098c2fe);
|
||||
pub const SENSOR_TYPE_ENVIRONMENTAL_ATMOSPHERIC_PRESSURE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x0e903829_ff8a_4a93_97df_3dcbde402288);
|
||||
pub const SENSOR_TYPE_ENVIRONMENTAL_HUMIDITY: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5c72bf67_bd7e_4257_990b_98a3ba3b400a);
|
||||
pub const SENSOR_TYPE_ENVIRONMENTAL_TEMPERATURE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x04fd0ec4_d5da_45fa_95a9_5db38ee19306);
|
||||
pub const SENSOR_TYPE_ENVIRONMENTAL_WIND_DIRECTION: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x9ef57a35_9306_434d_af09_37fa5a9c00bd);
|
||||
pub const SENSOR_TYPE_ENVIRONMENTAL_WIND_SPEED: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xdd50607b_a45f_42cd_8efd_ec61761c4226);
|
||||
pub const SENSOR_TYPE_FORCE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc2ab2b02_1a1c_4778_a81b_954a1788cc75);
|
||||
pub const SENSOR_TYPE_FREQUENCY: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x8cd2cbb6_73e6_4640_a709_72ae8fb60d7f);
|
||||
pub const SENSOR_TYPE_GYROMETER_1D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xfa088734_f552_4584_8324_edfaf649652c);
|
||||
pub const SENSOR_TYPE_GYROMETER_2D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x31ef4f83_919b_48bf_8de0_5d7a9d240556);
|
||||
pub const SENSOR_TYPE_GYROMETER_3D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x09485f5a_759e_42c2_bd4b_a349b75c8643);
|
||||
pub const SENSOR_TYPE_HUMAN_PRESENCE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc138c12b_ad52_451c_9375_87f518ff10c6);
|
||||
pub const SENSOR_TYPE_HUMAN_PROXIMITY: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5220dae9_3179_4430_9f90_06266d2a34de);
|
||||
pub const SENSOR_TYPE_INCLINOMETER_1D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xb96f98c5_7a75_4ba7_94e9_ac868c966dd8);
|
||||
pub const SENSOR_TYPE_INCLINOMETER_2D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xab140f6d_83eb_4264_b70b_b16a5b256a01);
|
||||
pub const SENSOR_TYPE_INCLINOMETER_3D: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xb84919fb_ea85_4976_8444_6f6f5c6d31db);
|
||||
pub const SENSOR_TYPE_INDUCTANCE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xdc1d933f_c435_4c7d_a2fe_607192a524d3);
|
||||
pub const SENSOR_TYPE_LOCATION_BROADCAST: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xd26988cf_5162_4039_bb17_4c58b698e44a);
|
||||
pub const SENSOR_TYPE_LOCATION_DEAD_RECKONING: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x1a37d538_f28b_42da_9fce_a9d0a2a6d829);
|
||||
pub const SENSOR_TYPE_LOCATION_GPS: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xed4ca589_327a_4ff9_a560_91da4b48275e);
|
||||
pub const SENSOR_TYPE_LOCATION_LOOKUP: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x3b2eae4a_72ce_436d_96d2_3c5b8570e987);
|
||||
pub const SENSOR_TYPE_LOCATION_OTHER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x9b2d0566_0368_4f71_b88d_533f132031de);
|
||||
pub const SENSOR_TYPE_LOCATION_STATIC: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x095f8184_0fa9_4445_8e6e_b70f320b6b4c);
|
||||
pub const SENSOR_TYPE_LOCATION_TRIANGULATION: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x691c341a_5406_4fe1_942f_2246cbeb39e0);
|
||||
pub const SENSOR_TYPE_MOTION_DETECTOR: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5c7c1a12_30a5_43b9_a4b2_cf09ec5b7be8);
|
||||
pub const SENSOR_TYPE_MULTIVALUE_SWITCH: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xb3ee4d76_37a4_4402_b25e_99c60a775fa1);
|
||||
pub const SENSOR_TYPE_POTENTIOMETER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x2b3681a9_cadc_45aa_a6ff_54957c8bb440);
|
||||
pub const SENSOR_TYPE_PRESSURE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x26d31f34_6352_41cf_b793_ea0713d53d77);
|
||||
pub const SENSOR_TYPE_RESISTANCE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x9993d2c8_c157_4a52_a7b5_195c76037231);
|
||||
pub const SENSOR_TYPE_RFID_SCANNER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x44328ef5_02dd_4e8d_ad5d_9249832b2eca);
|
||||
pub const SENSOR_TYPE_SCALE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc06dd92c_7feb_438e_9bf6_82207fff5bb8);
|
||||
pub const SENSOR_TYPE_SPEEDOMETER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x6bd73c1f_0bb4_4310_81b2_dfc18a52bf94);
|
||||
pub const SENSOR_TYPE_STRAIN: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc6d1ec0e_6803_4361_ad3d_85bcc58c6d29);
|
||||
pub const SENSOR_TYPE_TOUCH: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x17db3018_06c4_4f7d_81af_9274b7599c27);
|
||||
pub const SENSOR_TYPE_UNKNOWN: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x10ba83e3_ef4f_41ed_9885_a87d6435a8e1);
|
||||
pub const SENSOR_TYPE_VOLTAGE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc5484637_4fb7_4953_98b8_a56d8aa1fb1e);
|
||||
#[repr(C)]
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SENSOR_VALUE_PAIR {
|
||||
pub Key: super::super::Foundation::PROPERTYKEY,
|
||||
pub Value: super::super::System::Com::StructuredStorage::PROPVARIANT,
|
||||
}
|
||||
#[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))]
|
||||
impl Default for SENSOR_VALUE_PAIR {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type SIMPLE_DEVICE_ORIENTATION = i32;
|
||||
pub const SIMPLE_DEVICE_ORIENTATION_NOT_ROTATED: SimpleDeviceOrientation = 0i32;
|
||||
pub const SIMPLE_DEVICE_ORIENTATION_ROTATED_180: SimpleDeviceOrientation = 2i32;
|
||||
pub const SIMPLE_DEVICE_ORIENTATION_ROTATED_270: SimpleDeviceOrientation = 3i32;
|
||||
pub const SIMPLE_DEVICE_ORIENTATION_ROTATED_90: SimpleDeviceOrientation = 1i32;
|
||||
pub const SIMPLE_DEVICE_ORIENTATION_ROTATED_FACE_DOWN: SimpleDeviceOrientation = 5i32;
|
||||
pub const SIMPLE_DEVICE_ORIENTATION_ROTATED_FACE_UP: SimpleDeviceOrientation = 4i32;
|
||||
pub const Sensor: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe97ced00_523a_4133_bf6f_d3a2dae7f6ba);
|
||||
pub const SensorCollection: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x79c43adb_a429_469f_aa39_2f2b74b75937);
|
||||
pub type SensorConnectionType = i32;
|
||||
pub const SensorConnectionType_Attached: SENSOR_CONNECTION_TYPES = 1i32;
|
||||
pub const SensorConnectionType_External: SENSOR_CONNECTION_TYPES = 2i32;
|
||||
pub const SensorConnectionType_Integrated: SENSOR_CONNECTION_TYPES = 0i32;
|
||||
pub const SensorDataReport: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4ea9d6ef_694b_4218_8816_ccda8da74bba);
|
||||
pub const SensorManager: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x77a1c827_fcd2_4689_8915_9d613cc5fa3e);
|
||||
pub type SensorState = i32;
|
||||
pub const SensorState_Active: SENSOR_STATE = 2i32;
|
||||
pub const SensorState_Error: SENSOR_STATE = 3i32;
|
||||
pub const SensorState_Idle: SENSOR_STATE = 1i32;
|
||||
pub const SensorState_Initializing: SENSOR_STATE = 0i32;
|
||||
pub type SimpleDeviceOrientation = i32;
|
||||
pub const SimpleDeviceOrientation_Facedown: SIMPLE_DEVICE_ORIENTATION = 5i32;
|
||||
pub const SimpleDeviceOrientation_Faceup: SIMPLE_DEVICE_ORIENTATION = 4i32;
|
||||
pub const SimpleDeviceOrientation_NotRotated: SIMPLE_DEVICE_ORIENTATION = 0i32;
|
||||
pub const SimpleDeviceOrientation_Rotated180DegreesCounterclockwise: SIMPLE_DEVICE_ORIENTATION = 2i32;
|
||||
pub const SimpleDeviceOrientation_Rotated270DegreesCounterclockwise: SIMPLE_DEVICE_ORIENTATION = 3i32;
|
||||
pub const SimpleDeviceOrientation_Rotated90DegreesCounterclockwise: SIMPLE_DEVICE_ORIENTATION = 1i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct VEC3D {
|
||||
pub X: f32,
|
||||
pub Y: f32,
|
||||
pub Z: f32,
|
||||
}
|
||||
+247
@@ -0,0 +1,247 @@
|
||||
windows_link::link!("msports.dll" "system" fn ComDBClaimNextFreePort(hcomdb : HCOMDB, comnumber : *mut u32) -> i32);
|
||||
windows_link::link!("msports.dll" "system" fn ComDBClaimPort(hcomdb : HCOMDB, comnumber : u32, forceclaim : windows_sys::core::BOOL, forced : *mut windows_sys::core::BOOL) -> i32);
|
||||
windows_link::link!("msports.dll" "system" fn ComDBClose(hcomdb : HCOMDB) -> i32);
|
||||
windows_link::link!("msports.dll" "system" fn ComDBGetCurrentPortUsage(hcomdb : HCOMDB, buffer : *mut u8, buffersize : u32, reporttype : u32, maxportsreported : *mut u32) -> i32);
|
||||
windows_link::link!("msports.dll" "system" fn ComDBOpen(phcomdb : *mut HCOMDB) -> i32);
|
||||
windows_link::link!("msports.dll" "system" fn ComDBReleasePort(hcomdb : HCOMDB, comnumber : u32) -> i32);
|
||||
windows_link::link!("msports.dll" "system" fn ComDBResizeDatabase(hcomdb : HCOMDB, newsize : u32) -> i32);
|
||||
pub const CDB_REPORT_BITS: u32 = 0u32;
|
||||
pub const CDB_REPORT_BYTES: u32 = 1u32;
|
||||
pub const COMDB_MAX_PORTS_ARBITRATED: u32 = 4096u32;
|
||||
pub const COMDB_MIN_PORTS_ARBITRATED: u32 = 256u32;
|
||||
pub const DEVPKEY_DeviceInterface_Serial_PortName: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4c6bf15c_4c03_4aac_91f5_64c0f852bcf4), pid: 4 };
|
||||
pub const DEVPKEY_DeviceInterface_Serial_UsbProductId: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4c6bf15c_4c03_4aac_91f5_64c0f852bcf4), pid: 3 };
|
||||
pub const DEVPKEY_DeviceInterface_Serial_UsbVendorId: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x4c6bf15c_4c03_4aac_91f5_64c0f852bcf4), pid: 2 };
|
||||
pub const EVEN_PARITY: u32 = 2u32;
|
||||
pub type HCOMDB = *mut core::ffi::c_void;
|
||||
pub const IOCTL_INTERNAL_SERENUM_REMOVE_SELF: u32 = 3604999u32;
|
||||
pub const IOCTL_SERIAL_APPLY_DEFAULT_CONFIGURATION: u32 = 1769632u32;
|
||||
pub const IOCTL_SERIAL_CLEAR_STATS: u32 = 1769616u32;
|
||||
pub const IOCTL_SERIAL_CLR_DTR: u32 = 1769512u32;
|
||||
pub const IOCTL_SERIAL_CLR_RTS: u32 = 1769524u32;
|
||||
pub const IOCTL_SERIAL_CONFIG_SIZE: u32 = 1769600u32;
|
||||
pub const IOCTL_SERIAL_GET_BAUD_RATE: u32 = 1769552u32;
|
||||
pub const IOCTL_SERIAL_GET_CHARS: u32 = 1769560u32;
|
||||
pub const IOCTL_SERIAL_GET_COMMCONFIG: u32 = 1769604u32;
|
||||
pub const IOCTL_SERIAL_GET_COMMSTATUS: u32 = 1769580u32;
|
||||
pub const IOCTL_SERIAL_GET_DTRRTS: u32 = 1769592u32;
|
||||
pub const IOCTL_SERIAL_GET_HANDFLOW: u32 = 1769568u32;
|
||||
pub const IOCTL_SERIAL_GET_LINE_CONTROL: u32 = 1769556u32;
|
||||
pub const IOCTL_SERIAL_GET_MODEMSTATUS: u32 = 1769576u32;
|
||||
pub const IOCTL_SERIAL_GET_MODEM_CONTROL: u32 = 1769620u32;
|
||||
pub const IOCTL_SERIAL_GET_PROPERTIES: u32 = 1769588u32;
|
||||
pub const IOCTL_SERIAL_GET_STATS: u32 = 1769612u32;
|
||||
pub const IOCTL_SERIAL_GET_TIMEOUTS: u32 = 1769504u32;
|
||||
pub const IOCTL_SERIAL_GET_WAIT_MASK: u32 = 1769536u32;
|
||||
pub const IOCTL_SERIAL_IMMEDIATE_CHAR: u32 = 1769496u32;
|
||||
pub const IOCTL_SERIAL_INTERNAL_BASIC_SETTINGS: u32 = 1769484u32;
|
||||
pub const IOCTL_SERIAL_INTERNAL_CANCEL_WAIT_WAKE: u32 = 1769480u32;
|
||||
pub const IOCTL_SERIAL_INTERNAL_DO_WAIT_WAKE: u32 = 1769476u32;
|
||||
pub const IOCTL_SERIAL_INTERNAL_RESTORE_SETTINGS: u32 = 1769488u32;
|
||||
pub const IOCTL_SERIAL_PURGE: u32 = 1769548u32;
|
||||
pub const IOCTL_SERIAL_RESET_DEVICE: u32 = 1769516u32;
|
||||
pub const IOCTL_SERIAL_SET_BAUD_RATE: u32 = 1769476u32;
|
||||
pub const IOCTL_SERIAL_SET_BREAK_OFF: u32 = 1769492u32;
|
||||
pub const IOCTL_SERIAL_SET_BREAK_ON: u32 = 1769488u32;
|
||||
pub const IOCTL_SERIAL_SET_CHARS: u32 = 1769564u32;
|
||||
pub const IOCTL_SERIAL_SET_COMMCONFIG: u32 = 1769608u32;
|
||||
pub const IOCTL_SERIAL_SET_DTR: u32 = 1769508u32;
|
||||
pub const IOCTL_SERIAL_SET_FIFO_CONTROL: u32 = 1769628u32;
|
||||
pub const IOCTL_SERIAL_SET_HANDFLOW: u32 = 1769572u32;
|
||||
pub const IOCTL_SERIAL_SET_INTERVAL_TIMER_RESOLUTION: u32 = 1769636u32;
|
||||
pub const IOCTL_SERIAL_SET_LINE_CONTROL: u32 = 1769484u32;
|
||||
pub const IOCTL_SERIAL_SET_MODEM_CONTROL: u32 = 1769624u32;
|
||||
pub const IOCTL_SERIAL_SET_QUEUE_SIZE: u32 = 1769480u32;
|
||||
pub const IOCTL_SERIAL_SET_RTS: u32 = 1769520u32;
|
||||
pub const IOCTL_SERIAL_SET_TIMEOUTS: u32 = 1769500u32;
|
||||
pub const IOCTL_SERIAL_SET_WAIT_MASK: u32 = 1769540u32;
|
||||
pub const IOCTL_SERIAL_SET_XOFF: u32 = 1769528u32;
|
||||
pub const IOCTL_SERIAL_SET_XON: u32 = 1769532u32;
|
||||
pub const IOCTL_SERIAL_WAIT_ON_MASK: u32 = 1769544u32;
|
||||
pub const IOCTL_SERIAL_XOFF_COUNTER: u32 = 1769584u32;
|
||||
pub const MARK_PARITY: u32 = 3u32;
|
||||
pub const NO_PARITY: u32 = 0u32;
|
||||
pub const ODD_PARITY: u32 = 1u32;
|
||||
pub type PSERENUM_READPORT = Option<unsafe extern "system" fn(serportaddress: *const core::ffi::c_void) -> u8>;
|
||||
pub type PSERENUM_WRITEPORT = Option<unsafe extern "system" fn(serportaddress: *const core::ffi::c_void, value: u8)>;
|
||||
pub type SERENUM_PORTION = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SERENUM_PORT_DESC {
|
||||
pub Size: u32,
|
||||
pub PortHandle: *mut core::ffi::c_void,
|
||||
pub PortAddress: i64,
|
||||
pub Reserved: [u16; 1],
|
||||
}
|
||||
impl Default for SERENUM_PORT_DESC {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SERENUM_PORT_PARAMETERS {
|
||||
pub Size: u32,
|
||||
pub ReadAccessor: PSERENUM_READPORT,
|
||||
pub WriteAccessor: PSERENUM_WRITEPORT,
|
||||
pub SerPortAddress: *mut core::ffi::c_void,
|
||||
pub HardwareHandle: *mut core::ffi::c_void,
|
||||
pub Portion: SERENUM_PORTION,
|
||||
pub NumberAxis: u16,
|
||||
pub Reserved: [u16; 3],
|
||||
}
|
||||
impl Default for SERENUM_PORT_PARAMETERS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SERIALCONFIG {
|
||||
pub Size: u32,
|
||||
pub Version: u16,
|
||||
pub SubType: u32,
|
||||
pub ProvOffset: u32,
|
||||
pub ProviderSize: u32,
|
||||
pub ProviderData: [u16; 1],
|
||||
}
|
||||
impl Default for SERIALCONFIG {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SERIALPERF_STATS {
|
||||
pub ReceivedCount: u32,
|
||||
pub TransmittedCount: u32,
|
||||
pub FrameErrorCount: u32,
|
||||
pub SerialOverrunErrorCount: u32,
|
||||
pub BufferOverrunErrorCount: u32,
|
||||
pub ParityErrorCount: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SERIAL_BASIC_SETTINGS {
|
||||
pub Timeouts: SERIAL_TIMEOUTS,
|
||||
pub HandFlow: SERIAL_HANDFLOW,
|
||||
pub RxFifo: u32,
|
||||
pub TxFifo: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SERIAL_BAUD_RATE {
|
||||
pub BaudRate: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SERIAL_CHARS {
|
||||
pub EofChar: u8,
|
||||
pub ErrorChar: u8,
|
||||
pub BreakChar: u8,
|
||||
pub EventChar: u8,
|
||||
pub XonChar: u8,
|
||||
pub XoffChar: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SERIAL_COMMPROP {
|
||||
pub PacketLength: u16,
|
||||
pub PacketVersion: u16,
|
||||
pub ServiceMask: u32,
|
||||
pub Reserved1: u32,
|
||||
pub MaxTxQueue: u32,
|
||||
pub MaxRxQueue: u32,
|
||||
pub MaxBaud: u32,
|
||||
pub ProvSubType: u32,
|
||||
pub ProvCapabilities: u32,
|
||||
pub SettableParams: u32,
|
||||
pub SettableBaud: u32,
|
||||
pub SettableData: u16,
|
||||
pub SettableStopParity: u16,
|
||||
pub CurrentTxQueue: u32,
|
||||
pub CurrentRxQueue: u32,
|
||||
pub ProvSpec1: u32,
|
||||
pub ProvSpec2: u32,
|
||||
pub ProvChar: [u16; 1],
|
||||
}
|
||||
impl Default for SERIAL_COMMPROP {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const SERIAL_EV_BREAK: u32 = 64u32;
|
||||
pub const SERIAL_EV_CTS: u32 = 8u32;
|
||||
pub const SERIAL_EV_DSR: u32 = 16u32;
|
||||
pub const SERIAL_EV_ERR: u32 = 128u32;
|
||||
pub const SERIAL_EV_EVENT1: u32 = 2048u32;
|
||||
pub const SERIAL_EV_EVENT2: u32 = 4096u32;
|
||||
pub const SERIAL_EV_PERR: u32 = 512u32;
|
||||
pub const SERIAL_EV_RING: u32 = 256u32;
|
||||
pub const SERIAL_EV_RLSD: u32 = 32u32;
|
||||
pub const SERIAL_EV_RX80FULL: u32 = 1024u32;
|
||||
pub const SERIAL_EV_RXCHAR: u32 = 1u32;
|
||||
pub const SERIAL_EV_RXFLAG: u32 = 2u32;
|
||||
pub const SERIAL_EV_TXEMPTY: u32 = 4u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SERIAL_HANDFLOW {
|
||||
pub ControlHandShake: u32,
|
||||
pub FlowReplace: u32,
|
||||
pub XonLimit: i32,
|
||||
pub XoffLimit: i32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SERIAL_LINE_CONTROL {
|
||||
pub StopBits: u8,
|
||||
pub Parity: u8,
|
||||
pub WordLength: u8,
|
||||
}
|
||||
pub const SERIAL_LSRMST_ESCAPE: u16 = 0u16;
|
||||
pub const SERIAL_LSRMST_LSR_DATA: u16 = 1u16;
|
||||
pub const SERIAL_LSRMST_LSR_NODATA: u16 = 2u16;
|
||||
pub const SERIAL_LSRMST_MST: u16 = 3u16;
|
||||
pub const SERIAL_PURGE_RXABORT: u32 = 2u32;
|
||||
pub const SERIAL_PURGE_RXCLEAR: u32 = 8u32;
|
||||
pub const SERIAL_PURGE_TXABORT: u32 = 1u32;
|
||||
pub const SERIAL_PURGE_TXCLEAR: u32 = 4u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SERIAL_QUEUE_SIZE {
|
||||
pub InSize: u32,
|
||||
pub OutSize: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SERIAL_STATUS {
|
||||
pub Errors: u32,
|
||||
pub HoldReasons: u32,
|
||||
pub AmountInInQueue: u32,
|
||||
pub AmountInOutQueue: u32,
|
||||
pub EofReceived: bool,
|
||||
pub WaitForImmediate: bool,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SERIAL_TIMEOUTS {
|
||||
pub ReadIntervalTimeout: u32,
|
||||
pub ReadTotalTimeoutMultiplier: u32,
|
||||
pub ReadTotalTimeoutConstant: u32,
|
||||
pub WriteTotalTimeoutMultiplier: u32,
|
||||
pub WriteTotalTimeoutConstant: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SERIAL_XOFF_COUNTER {
|
||||
pub Timeout: u32,
|
||||
pub Counter: i32,
|
||||
pub XoffChar: u8,
|
||||
}
|
||||
pub const SPACE_PARITY: u32 = 4u32;
|
||||
pub const STOP_BITS_1_5: u32 = 1u32;
|
||||
pub const STOP_BITS_2: u32 = 2u32;
|
||||
pub const STOP_BIT_1: u32 = 0u32;
|
||||
pub const SerenumFirstHalf: SERENUM_PORTION = 0i32;
|
||||
pub const SerenumSecondHalf: SERENUM_PORTION = 1i32;
|
||||
pub const SerenumWhole: SERENUM_PORTION = 2i32;
|
||||
+3405
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Vendored
+1003
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,100 @@
|
||||
#[cfg(feature = "Win32_Devices_AllJoyn")]
|
||||
pub mod AllJoyn;
|
||||
#[cfg(feature = "Win32_Devices_Beep")]
|
||||
pub mod Beep;
|
||||
#[cfg(feature = "Win32_Devices_BiometricFramework")]
|
||||
pub mod BiometricFramework;
|
||||
#[cfg(feature = "Win32_Devices_Bluetooth")]
|
||||
pub mod Bluetooth;
|
||||
#[cfg(feature = "Win32_Devices_Cdrom")]
|
||||
pub mod Cdrom;
|
||||
#[cfg(feature = "Win32_Devices_Communication")]
|
||||
pub mod Communication;
|
||||
#[cfg(feature = "Win32_Devices_DeviceAndDriverInstallation")]
|
||||
pub mod DeviceAndDriverInstallation;
|
||||
#[cfg(feature = "Win32_Devices_DeviceQuery")]
|
||||
pub mod DeviceQuery;
|
||||
#[cfg(feature = "Win32_Devices_Display")]
|
||||
pub mod Display;
|
||||
#[cfg(feature = "Win32_Devices_Dvd")]
|
||||
pub mod Dvd;
|
||||
#[cfg(feature = "Win32_Devices_Enumeration")]
|
||||
pub mod Enumeration;
|
||||
#[cfg(feature = "Win32_Devices_Fax")]
|
||||
pub mod Fax;
|
||||
#[cfg(feature = "Win32_Devices_HumanInterfaceDevice")]
|
||||
pub mod HumanInterfaceDevice;
|
||||
#[cfg(feature = "Win32_Devices_Nfc")]
|
||||
pub mod Nfc;
|
||||
#[cfg(feature = "Win32_Devices_Nfp")]
|
||||
pub mod Nfp;
|
||||
#[cfg(feature = "Win32_Devices_PortableDevices")]
|
||||
pub mod PortableDevices;
|
||||
#[cfg(feature = "Win32_Devices_Properties")]
|
||||
pub mod Properties;
|
||||
#[cfg(feature = "Win32_Devices_Pwm")]
|
||||
pub mod Pwm;
|
||||
#[cfg(feature = "Win32_Devices_Sensors")]
|
||||
pub mod Sensors;
|
||||
#[cfg(feature = "Win32_Devices_SerialCommunication")]
|
||||
pub mod SerialCommunication;
|
||||
#[cfg(feature = "Win32_Devices_Tapi")]
|
||||
pub mod Tapi;
|
||||
#[cfg(feature = "Win32_Devices_Usb")]
|
||||
pub mod Usb;
|
||||
#[cfg(feature = "Win32_Devices_WebServicesOnDevices")]
|
||||
pub mod WebServicesOnDevices;
|
||||
pub const BUS1394_LOCAL_HOST_INSTANCE_KEY: windows_sys::core::PCWSTR = windows_sys::core::w!("LOCAL HOST EUI64");
|
||||
pub const BUS1394_VIRTUAL_DEVICE_LIST_KEY: windows_sys::core::PCWSTR = windows_sys::core::w!("Virtual Device List");
|
||||
pub const IEEE1394API_ACCESS_EXCLUSIVE: u32 = 64u32;
|
||||
pub const IEEE1394API_ACCESS_SHARED_READ: u32 = 16u32;
|
||||
pub const IEEE1394API_ACCESS_SHARED_WRITE: u32 = 32u32;
|
||||
pub const IEEE1394API_BUS_RESET_LOCAL_NODE_INITIATED: u32 = 4u32;
|
||||
pub const IEEE1394API_BUS_RESET_LOCAL_NODE_IS_IRM: u32 = 2u32;
|
||||
pub const IEEE1394API_BUS_RESET_LOCAL_NODE_IS_ROOT: u32 = 1u32;
|
||||
pub const IEEE1394API_DEVICE_OWNERSHIP_LOCAL_NODE: u32 = 1u32;
|
||||
pub const IEEE1394API_DEVICE_OWNERSHIP_REMOTE_NODE: u32 = 4u32;
|
||||
pub const IEEE1394API_NOTIFICATION_BUS_RESET: u32 = 2u32;
|
||||
pub const IEEE1394API_NOTIFICATION_DEVICE_ACCESS: u32 = 1u32;
|
||||
pub const IEEE1394API_REMOTE_ACCESS_TRANSFER_REQUEST: u32 = 1u32;
|
||||
pub const IEEE1394API_RESOURCE_OWNERSHIP_LOCAL_NODE: u32 = 2u32;
|
||||
pub const IEEE1394API_RESOURCE_OWNERSHIP_REMOTE_NODE: u32 = 8u32;
|
||||
pub const IEEE1394_API_ADD_VIRTUAL_DEVICE: u32 = 1u32;
|
||||
pub const IEEE1394_API_DEVICE_ACCESS_TRANSFER: u32 = 3u32;
|
||||
pub const IEEE1394_API_REMOVE_VIRTUAL_DEVICE: u32 = 2u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct IEEE1394_API_REQUEST {
|
||||
pub RequestNumber: u32,
|
||||
pub Flags: u32,
|
||||
pub u: IEEE1394_API_REQUEST_0,
|
||||
}
|
||||
impl Default for IEEE1394_API_REQUEST {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union IEEE1394_API_REQUEST_0 {
|
||||
pub AddVirtualDevice: IEEE1394_VDEV_PNP_REQUEST,
|
||||
pub RemoveVirtualDevice: IEEE1394_VDEV_PNP_REQUEST,
|
||||
}
|
||||
impl Default for IEEE1394_API_REQUEST_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const IEEE1394_API_SET_LOCAL_NODE_PROPERTIES: u32 = 4u32;
|
||||
pub const IEEE1394_REQUEST_FLAG_PERSISTENT: u32 = 2u32;
|
||||
pub const IEEE1394_REQUEST_FLAG_UNICODE: u32 = 1u32;
|
||||
pub const IEEE1394_REQUEST_FLAG_USE_LOCAL_HOST_EUI: u32 = 4u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct IEEE1394_VDEV_PNP_REQUEST {
|
||||
pub fulFlags: u32,
|
||||
pub Reserved: u32,
|
||||
pub InstanceId: u64,
|
||||
pub DeviceId: u8,
|
||||
}
|
||||
pub const IOCTL_IEEE1394_API_REQUEST: u32 = 2229248u32;
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,99 @@
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-1.dll" "system" fn CheckGamingPrivilegeSilently(privilegeid : u32, scope : windows_sys::core::HSTRING, policy : windows_sys::core::HSTRING, hasprivilege : *mut windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn CheckGamingPrivilegeSilentlyForUser(user : * mut core::ffi::c_void, privilegeid : u32, scope : windows_sys::core::HSTRING, policy : windows_sys::core::HSTRING, hasprivilege : *mut windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-1.dll" "system" fn CheckGamingPrivilegeWithUI(privilegeid : u32, scope : windows_sys::core::HSTRING, policy : windows_sys::core::HSTRING, friendlymessage : windows_sys::core::HSTRING, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn CheckGamingPrivilegeWithUIForUser(user : * mut core::ffi::c_void, privilegeid : u32, scope : windows_sys::core::HSTRING, policy : windows_sys::core::HSTRING, friendlymessage : windows_sys::core::HSTRING, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-expandedresources-l1-1-0.dll" "system" fn GetExpandedResourceExclusiveCpuCount(exclusivecpucount : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-deviceinformation-l1-1-0.dll" "system" fn GetGamingDeviceModelInformation(information : *mut GAMING_DEVICE_MODEL_INFORMATION) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-expandedresources-l1-1-0.dll" "system" fn HasExpandedResources(hasexpandedresources : *mut windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ProcessPendingGameUI(waitforcompletion : windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-expandedresources-l1-1-0.dll" "system" fn ReleaseExclusiveCpuSets() -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ShowChangeFriendRelationshipUI(targetuserxuid : windows_sys::core::HSTRING, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn ShowChangeFriendRelationshipUIForUser(user : * mut core::ffi::c_void, targetuserxuid : windows_sys::core::HSTRING, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowCustomizeUserProfileUI(completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowCustomizeUserProfileUIForUser(user : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowFindFriendsUI(completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowFindFriendsUIForUser(user : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowGameInfoUI(titleid : u32, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowGameInfoUIForUser(user : * mut core::ffi::c_void, titleid : u32, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ShowGameInviteUI(serviceconfigurationid : windows_sys::core::HSTRING, sessiontemplatename : windows_sys::core::HSTRING, sessionid : windows_sys::core::HSTRING, invitationdisplaytext : windows_sys::core::HSTRING, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn ShowGameInviteUIForUser(user : * mut core::ffi::c_void, serviceconfigurationid : windows_sys::core::HSTRING, sessiontemplatename : windows_sys::core::HSTRING, sessionid : windows_sys::core::HSTRING, invitationdisplaytext : windows_sys::core::HSTRING, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-3.dll" "system" fn ShowGameInviteUIWithContext(serviceconfigurationid : windows_sys::core::HSTRING, sessiontemplatename : windows_sys::core::HSTRING, sessionid : windows_sys::core::HSTRING, invitationdisplaytext : windows_sys::core::HSTRING, customactivationcontext : windows_sys::core::HSTRING, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-3.dll" "system" fn ShowGameInviteUIWithContextForUser(user : * mut core::ffi::c_void, serviceconfigurationid : windows_sys::core::HSTRING, sessiontemplatename : windows_sys::core::HSTRING, sessionid : windows_sys::core::HSTRING, invitationdisplaytext : windows_sys::core::HSTRING, customactivationcontext : windows_sys::core::HSTRING, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ShowPlayerPickerUI(promptdisplaytext : windows_sys::core::HSTRING, xuids : *const windows_sys::core::HSTRING, xuidscount : usize, preselectedxuids : *const windows_sys::core::HSTRING, preselectedxuidscount : usize, minselectioncount : usize, maxselectioncount : usize, completionroutine : PlayerPickerUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn ShowPlayerPickerUIForUser(user : * mut core::ffi::c_void, promptdisplaytext : windows_sys::core::HSTRING, xuids : *const windows_sys::core::HSTRING, xuidscount : usize, preselectedxuids : *const windows_sys::core::HSTRING, preselectedxuidscount : usize, minselectioncount : usize, maxselectioncount : usize, completionroutine : PlayerPickerUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ShowProfileCardUI(targetuserxuid : windows_sys::core::HSTRING, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn ShowProfileCardUIForUser(user : * mut core::ffi::c_void, targetuserxuid : windows_sys::core::HSTRING, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ShowTitleAchievementsUI(titleid : u32, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn ShowTitleAchievementsUIForUser(user : * mut core::ffi::c_void, titleid : u32, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowUserSettingsUI(completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-4.dll" "system" fn ShowUserSettingsUIForUser(user : * mut core::ffi::c_void, completionroutine : GameUICompletionRoutine, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn TryCancelPendingGameUI() -> windows_sys::core::BOOL);
|
||||
pub const GAMESTATS_OPEN_CREATED: GAMESTATS_OPEN_RESULT = 0i32;
|
||||
pub const GAMESTATS_OPEN_OPENED: GAMESTATS_OPEN_RESULT = 1i32;
|
||||
pub const GAMESTATS_OPEN_OPENONLY: GAMESTATS_OPEN_TYPE = 1i32;
|
||||
pub const GAMESTATS_OPEN_OPENORCREATE: GAMESTATS_OPEN_TYPE = 0i32;
|
||||
pub type GAMESTATS_OPEN_RESULT = i32;
|
||||
pub type GAMESTATS_OPEN_TYPE = i32;
|
||||
pub type GAME_INSTALL_SCOPE = i32;
|
||||
pub type GAMING_DEVICE_DEVICE_ID = i32;
|
||||
pub const GAMING_DEVICE_DEVICE_ID_NONE: GAMING_DEVICE_DEVICE_ID = 0i32;
|
||||
pub const GAMING_DEVICE_DEVICE_ID_XBOX_ONE: GAMING_DEVICE_DEVICE_ID = 1988865574i32;
|
||||
pub const GAMING_DEVICE_DEVICE_ID_XBOX_ONE_S: GAMING_DEVICE_DEVICE_ID = 712204761i32;
|
||||
pub const GAMING_DEVICE_DEVICE_ID_XBOX_ONE_X: GAMING_DEVICE_DEVICE_ID = 1523980231i32;
|
||||
pub const GAMING_DEVICE_DEVICE_ID_XBOX_ONE_X_DEVKIT: GAMING_DEVICE_DEVICE_ID = 284675555i32;
|
||||
pub const GAMING_DEVICE_DEVICE_ID_XBOX_SERIES_S: GAMING_DEVICE_DEVICE_ID = 489159355i32;
|
||||
pub const GAMING_DEVICE_DEVICE_ID_XBOX_SERIES_X: GAMING_DEVICE_DEVICE_ID = 796540415i32;
|
||||
pub const GAMING_DEVICE_DEVICE_ID_XBOX_SERIES_X_DEVKIT: GAMING_DEVICE_DEVICE_ID = -561359263i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct GAMING_DEVICE_MODEL_INFORMATION {
|
||||
pub vendorId: GAMING_DEVICE_VENDOR_ID,
|
||||
pub deviceId: GAMING_DEVICE_DEVICE_ID,
|
||||
}
|
||||
pub type GAMING_DEVICE_VENDOR_ID = i32;
|
||||
pub const GAMING_DEVICE_VENDOR_ID_MICROSOFT: GAMING_DEVICE_VENDOR_ID = -1024700366i32;
|
||||
pub const GAMING_DEVICE_VENDOR_ID_NONE: GAMING_DEVICE_VENDOR_ID = 0i32;
|
||||
pub const GIS_ALL_USERS: GAME_INSTALL_SCOPE = 3i32;
|
||||
pub const GIS_CURRENT_USER: GAME_INSTALL_SCOPE = 2i32;
|
||||
pub const GIS_NOT_INSTALLED: GAME_INSTALL_SCOPE = 1i32;
|
||||
pub const GameExplorer: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x9a5ea990_3034_4d6f_9128_01f3c61022bc);
|
||||
pub const GameStatistics: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xdbc85a2c_c0dc_4961_b6e2_d28b62c11ad4);
|
||||
pub type GameUICompletionRoutine = Option<unsafe extern "system" fn(returncode: windows_sys::core::HRESULT, context: *const core::ffi::c_void)>;
|
||||
pub const ID_GDF_THUMBNAIL_STR: windows_sys::core::PCWSTR = windows_sys::core::w!("__GDF_THUMBNAIL");
|
||||
pub const ID_GDF_XML_STR: windows_sys::core::PCWSTR = windows_sys::core::w!("__GDF_XML");
|
||||
pub type KnownGamingPrivileges = i32;
|
||||
pub type PlayerPickerUICompletionRoutine = Option<unsafe extern "system" fn(returncode: windows_sys::core::HRESULT, context: *const core::ffi::c_void, selectedxuids: *const windows_sys::core::HSTRING, selectedxuidscount: usize)>;
|
||||
pub type XBL_IDP_AUTH_TOKEN_STATUS = i32;
|
||||
pub const XBL_IDP_AUTH_TOKEN_STATUS_LOAD_MSA_ACCOUNT_FAILED: XBL_IDP_AUTH_TOKEN_STATUS = 3i32;
|
||||
pub const XBL_IDP_AUTH_TOKEN_STATUS_MSA_INTERRUPT: XBL_IDP_AUTH_TOKEN_STATUS = 5i32;
|
||||
pub const XBL_IDP_AUTH_TOKEN_STATUS_NO_ACCOUNT_SET: XBL_IDP_AUTH_TOKEN_STATUS = 2i32;
|
||||
pub const XBL_IDP_AUTH_TOKEN_STATUS_OFFLINE_NO_CONSENT: XBL_IDP_AUTH_TOKEN_STATUS = 6i32;
|
||||
pub const XBL_IDP_AUTH_TOKEN_STATUS_OFFLINE_SUCCESS: XBL_IDP_AUTH_TOKEN_STATUS = 1i32;
|
||||
pub const XBL_IDP_AUTH_TOKEN_STATUS_SUCCESS: XBL_IDP_AUTH_TOKEN_STATUS = 0i32;
|
||||
pub const XBL_IDP_AUTH_TOKEN_STATUS_UNKNOWN: XBL_IDP_AUTH_TOKEN_STATUS = -1i32;
|
||||
pub const XBL_IDP_AUTH_TOKEN_STATUS_VIEW_NOT_SET: XBL_IDP_AUTH_TOKEN_STATUS = 7i32;
|
||||
pub const XBL_IDP_AUTH_TOKEN_STATUS_XBOX_VETO: XBL_IDP_AUTH_TOKEN_STATUS = 4i32;
|
||||
pub const XPRIVILEGE_ADD_FRIEND: KnownGamingPrivileges = 255i32;
|
||||
pub const XPRIVILEGE_BROADCAST: KnownGamingPrivileges = 190i32;
|
||||
pub const XPRIVILEGE_CLOUD_GAMING_JOIN_SESSION: KnownGamingPrivileges = 208i32;
|
||||
pub const XPRIVILEGE_CLOUD_GAMING_MANAGE_SESSION: KnownGamingPrivileges = 207i32;
|
||||
pub const XPRIVILEGE_CLOUD_SAVED_GAMES: KnownGamingPrivileges = 209i32;
|
||||
pub const XPRIVILEGE_COMMUNICATIONS: KnownGamingPrivileges = 252i32;
|
||||
pub const XPRIVILEGE_COMMUNICATION_VOICE_INGAME: KnownGamingPrivileges = 205i32;
|
||||
pub const XPRIVILEGE_COMMUNICATION_VOICE_SKYPE: KnownGamingPrivileges = 206i32;
|
||||
pub const XPRIVILEGE_GAME_DVR: KnownGamingPrivileges = 198i32;
|
||||
pub const XPRIVILEGE_MULTIPLAYER_PARTIES: KnownGamingPrivileges = 203i32;
|
||||
pub const XPRIVILEGE_MULTIPLAYER_SESSIONS: KnownGamingPrivileges = 254i32;
|
||||
pub const XPRIVILEGE_PREMIUM_CONTENT: KnownGamingPrivileges = 214i32;
|
||||
pub const XPRIVILEGE_PREMIUM_VIDEO: KnownGamingPrivileges = 224i32;
|
||||
pub const XPRIVILEGE_PROFILE_VIEWING: KnownGamingPrivileges = 249i32;
|
||||
pub const XPRIVILEGE_PURCHASE_CONTENT: KnownGamingPrivileges = 245i32;
|
||||
pub const XPRIVILEGE_SHARE_CONTENT: KnownGamingPrivileges = 211i32;
|
||||
pub const XPRIVILEGE_SHARE_KINECT_CONTENT: KnownGamingPrivileges = 199i32;
|
||||
pub const XPRIVILEGE_SOCIAL_NETWORK_SHARING: KnownGamingPrivileges = 220i32;
|
||||
pub const XPRIVILEGE_SUBSCRIPTION_CONTENT: KnownGamingPrivileges = 219i32;
|
||||
pub const XPRIVILEGE_USER_CREATED_CONTENT: KnownGamingPrivileges = 247i32;
|
||||
pub const XPRIVILEGE_VIDEO_COMMUNICATIONS: KnownGamingPrivileges = 235i32;
|
||||
pub const XPRIVILEGE_VIEW_FRIENDS_LIST: KnownGamingPrivileges = 197i32;
|
||||
pub const XblIdpAuthManager: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xce23534b_56d8_4978_86a2_7ee570640468);
|
||||
pub const XblIdpAuthTokenResult: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x9f493441_744a_410c_ae2b_9a22f7c7731f);
|
||||
+5285
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,238 @@
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmAttachMilContent(hwnd : super::super::Foundation:: HWND) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmDefWindowProc(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, plresult : *mut super::super::Foundation:: LRESULT) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmDetachMilContent(hwnd : super::super::Foundation:: HWND) -> windows_sys::core::HRESULT);
|
||||
#[cfg(feature = "Win32_Graphics_Gdi")]
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmEnableBlurBehindWindow(hwnd : super::super::Foundation:: HWND, pblurbehind : *const DWM_BLURBEHIND) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmEnableComposition(ucompositionaction : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmEnableMMCSS(fenablemmcss : windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
#[cfg(feature = "Win32_UI_Controls")]
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmExtendFrameIntoClientArea(hwnd : super::super::Foundation:: HWND, pmarinset : *const super::super::UI::Controls:: MARGINS) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmFlush() -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmGetColorizationColor(pcrcolorization : *mut u32, pfopaqueblend : *mut windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmGetCompositionTimingInfo(hwnd : super::super::Foundation:: HWND, ptiminginfo : *mut DWM_TIMING_INFO) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmGetGraphicsStreamClient(uindex : u32, pclientuuid : *mut windows_sys::core::GUID) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmGetGraphicsStreamTransformHint(uindex : u32, ptransform : *mut MilMatrix3x2D) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmGetTransportAttributes(pfisremoting : *mut windows_sys::core::BOOL, pfisconnected : *mut windows_sys::core::BOOL, pdwgeneration : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmGetUnmetTabRequirements(appwindow : super::super::Foundation:: HWND, value : *mut DWM_TAB_WINDOW_REQUIREMENTS) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmGetWindowAttribute(hwnd : super::super::Foundation:: HWND, dwattribute : u32, pvattribute : *mut core::ffi::c_void, cbattribute : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmInvalidateIconicBitmaps(hwnd : super::super::Foundation:: HWND) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmIsCompositionEnabled(pfenabled : *mut windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmModifyPreviousDxFrameDuration(hwnd : super::super::Foundation:: HWND, crefreshes : i32, frelative : windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmQueryThumbnailSourceSize(hthumbnail : isize, psize : *mut super::super::Foundation:: SIZE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmRegisterThumbnail(hwnddestination : super::super::Foundation:: HWND, hwndsource : super::super::Foundation:: HWND, phthumbnailid : *mut isize) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmRenderGesture(gt : GESTURE_TYPE, ccontacts : u32, pdwpointerid : *const u32, ppoints : *const super::super::Foundation:: POINT) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmSetDxFrameDuration(hwnd : super::super::Foundation:: HWND, crefreshes : i32) -> windows_sys::core::HRESULT);
|
||||
#[cfg(feature = "Win32_Graphics_Gdi")]
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmSetIconicLivePreviewBitmap(hwnd : super::super::Foundation:: HWND, hbmp : super::Gdi:: HBITMAP, pptclient : *const super::super::Foundation:: POINT, dwsitflags : u32) -> windows_sys::core::HRESULT);
|
||||
#[cfg(feature = "Win32_Graphics_Gdi")]
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmSetIconicThumbnail(hwnd : super::super::Foundation:: HWND, hbmp : super::Gdi:: HBITMAP, dwsitflags : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmSetPresentParameters(hwnd : super::super::Foundation:: HWND, ppresentparams : *mut DWM_PRESENT_PARAMETERS) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmSetWindowAttribute(hwnd : super::super::Foundation:: HWND, dwattribute : u32, pvattribute : *const core::ffi::c_void, cbattribute : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmShowContact(dwpointerid : u32, eshowcontact : DWM_SHOWCONTACT) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmTetherContact(dwpointerid : u32, fenable : windows_sys::core::BOOL, pttether : super::super::Foundation:: POINT) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmTransitionOwnedWindow(hwnd : super::super::Foundation:: HWND, target : DWMTRANSITION_OWNEDWINDOW_TARGET) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmUnregisterThumbnail(hthumbnailid : isize) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("dwmapi.dll" "system" fn DwmUpdateThumbnailProperties(hthumbnailid : isize, ptnproperties : *const DWM_THUMBNAIL_PROPERTIES) -> windows_sys::core::HRESULT);
|
||||
pub type DWMFLIP3DWINDOWPOLICY = i32;
|
||||
pub const DWMFLIP3D_DEFAULT: DWMFLIP3DWINDOWPOLICY = 0i32;
|
||||
pub const DWMFLIP3D_EXCLUDEABOVE: DWMFLIP3DWINDOWPOLICY = 2i32;
|
||||
pub const DWMFLIP3D_EXCLUDEBELOW: DWMFLIP3DWINDOWPOLICY = 1i32;
|
||||
pub const DWMFLIP3D_LAST: DWMFLIP3DWINDOWPOLICY = 3i32;
|
||||
pub type DWMNCRENDERINGPOLICY = i32;
|
||||
pub const DWMNCRP_DISABLED: DWMNCRENDERINGPOLICY = 1i32;
|
||||
pub const DWMNCRP_ENABLED: DWMNCRENDERINGPOLICY = 2i32;
|
||||
pub const DWMNCRP_LAST: DWMNCRENDERINGPOLICY = 3i32;
|
||||
pub const DWMNCRP_USEWINDOWSTYLE: DWMNCRENDERINGPOLICY = 0i32;
|
||||
pub const DWMSBT_AUTO: DWM_SYSTEMBACKDROP_TYPE = 0i32;
|
||||
pub const DWMSBT_MAINWINDOW: DWM_SYSTEMBACKDROP_TYPE = 2i32;
|
||||
pub const DWMSBT_NONE: DWM_SYSTEMBACKDROP_TYPE = 1i32;
|
||||
pub const DWMSBT_TABBEDWINDOW: DWM_SYSTEMBACKDROP_TYPE = 4i32;
|
||||
pub const DWMSBT_TRANSIENTWINDOW: DWM_SYSTEMBACKDROP_TYPE = 3i32;
|
||||
pub const DWMSC_ALL: DWM_SHOWCONTACT = 4294967295u32;
|
||||
pub const DWMSC_DOWN: DWM_SHOWCONTACT = 1u32;
|
||||
pub const DWMSC_DRAG: DWM_SHOWCONTACT = 4u32;
|
||||
pub const DWMSC_HOLD: DWM_SHOWCONTACT = 8u32;
|
||||
pub const DWMSC_NONE: DWM_SHOWCONTACT = 0u32;
|
||||
pub const DWMSC_PENBARREL: DWM_SHOWCONTACT = 16u32;
|
||||
pub const DWMSC_UP: DWM_SHOWCONTACT = 2u32;
|
||||
pub const DWMTRANSITION_OWNEDWINDOW_NULL: DWMTRANSITION_OWNEDWINDOW_TARGET = -1i32;
|
||||
pub const DWMTRANSITION_OWNEDWINDOW_REPOSITION: DWMTRANSITION_OWNEDWINDOW_TARGET = 0i32;
|
||||
pub type DWMTRANSITION_OWNEDWINDOW_TARGET = i32;
|
||||
pub const DWMTWR_APP_COMPAT: DWM_TAB_WINDOW_REQUIREMENTS = 512i32;
|
||||
pub const DWMTWR_GROUP_POLICY: DWM_TAB_WINDOW_REQUIREMENTS = 256i32;
|
||||
pub const DWMTWR_IMPLEMENTED_BY_SYSTEM: DWM_TAB_WINDOW_REQUIREMENTS = 1i32;
|
||||
pub const DWMTWR_NONE: DWM_TAB_WINDOW_REQUIREMENTS = 0i32;
|
||||
pub const DWMTWR_TABBING_ENABLED: DWM_TAB_WINDOW_REQUIREMENTS = 64i32;
|
||||
pub const DWMTWR_USER_POLICY: DWM_TAB_WINDOW_REQUIREMENTS = 128i32;
|
||||
pub const DWMTWR_WINDOW_DWM_ATTRIBUTES: DWM_TAB_WINDOW_REQUIREMENTS = 16i32;
|
||||
pub const DWMTWR_WINDOW_MARGINS: DWM_TAB_WINDOW_REQUIREMENTS = 32i32;
|
||||
pub const DWMTWR_WINDOW_REGION: DWM_TAB_WINDOW_REQUIREMENTS = 8i32;
|
||||
pub const DWMTWR_WINDOW_RELATIONSHIP: DWM_TAB_WINDOW_REQUIREMENTS = 2i32;
|
||||
pub const DWMTWR_WINDOW_STYLES: DWM_TAB_WINDOW_REQUIREMENTS = 4i32;
|
||||
pub const DWMWA_ALLOW_NCPAINT: DWMWINDOWATTRIBUTE = 4i32;
|
||||
pub const DWMWA_BORDER_COLOR: DWMWINDOWATTRIBUTE = 34i32;
|
||||
pub const DWMWA_CAPTION_BUTTON_BOUNDS: DWMWINDOWATTRIBUTE = 5i32;
|
||||
pub const DWMWA_CAPTION_COLOR: DWMWINDOWATTRIBUTE = 35i32;
|
||||
pub const DWMWA_CLOAK: DWMWINDOWATTRIBUTE = 13i32;
|
||||
pub const DWMWA_CLOAKED: DWMWINDOWATTRIBUTE = 14i32;
|
||||
pub const DWMWA_COLOR_DEFAULT: u32 = 4294967295u32;
|
||||
pub const DWMWA_COLOR_NONE: u32 = 4294967294u32;
|
||||
pub const DWMWA_DISALLOW_PEEK: DWMWINDOWATTRIBUTE = 11i32;
|
||||
pub const DWMWA_EXCLUDED_FROM_PEEK: DWMWINDOWATTRIBUTE = 12i32;
|
||||
pub const DWMWA_EXTENDED_FRAME_BOUNDS: DWMWINDOWATTRIBUTE = 9i32;
|
||||
pub const DWMWA_FLIP3D_POLICY: DWMWINDOWATTRIBUTE = 8i32;
|
||||
pub const DWMWA_FORCE_ICONIC_REPRESENTATION: DWMWINDOWATTRIBUTE = 7i32;
|
||||
pub const DWMWA_FREEZE_REPRESENTATION: DWMWINDOWATTRIBUTE = 15i32;
|
||||
pub const DWMWA_HAS_ICONIC_BITMAP: DWMWINDOWATTRIBUTE = 10i32;
|
||||
pub const DWMWA_LAST: DWMWINDOWATTRIBUTE = 39i32;
|
||||
pub const DWMWA_NCRENDERING_ENABLED: DWMWINDOWATTRIBUTE = 1i32;
|
||||
pub const DWMWA_NCRENDERING_POLICY: DWMWINDOWATTRIBUTE = 2i32;
|
||||
pub const DWMWA_NONCLIENT_RTL_LAYOUT: DWMWINDOWATTRIBUTE = 6i32;
|
||||
pub const DWMWA_PASSIVE_UPDATE_MODE: DWMWINDOWATTRIBUTE = 16i32;
|
||||
pub const DWMWA_SYSTEMBACKDROP_TYPE: DWMWINDOWATTRIBUTE = 38i32;
|
||||
pub const DWMWA_TEXT_COLOR: DWMWINDOWATTRIBUTE = 36i32;
|
||||
pub const DWMWA_TRANSITIONS_FORCEDISABLED: DWMWINDOWATTRIBUTE = 3i32;
|
||||
pub const DWMWA_USE_HOSTBACKDROPBRUSH: DWMWINDOWATTRIBUTE = 17i32;
|
||||
pub const DWMWA_USE_IMMERSIVE_DARK_MODE: DWMWINDOWATTRIBUTE = 20i32;
|
||||
pub const DWMWA_VISIBLE_FRAME_BORDER_THICKNESS: DWMWINDOWATTRIBUTE = 37i32;
|
||||
pub const DWMWA_WINDOW_CORNER_PREFERENCE: DWMWINDOWATTRIBUTE = 33i32;
|
||||
pub const DWMWCP_DEFAULT: DWM_WINDOW_CORNER_PREFERENCE = 0i32;
|
||||
pub const DWMWCP_DONOTROUND: DWM_WINDOW_CORNER_PREFERENCE = 1i32;
|
||||
pub const DWMWCP_ROUND: DWM_WINDOW_CORNER_PREFERENCE = 2i32;
|
||||
pub const DWMWCP_ROUNDSMALL: DWM_WINDOW_CORNER_PREFERENCE = 3i32;
|
||||
pub type DWMWINDOWATTRIBUTE = i32;
|
||||
pub const DWM_BB_BLURREGION: u32 = 2u32;
|
||||
pub const DWM_BB_ENABLE: u32 = 1u32;
|
||||
pub const DWM_BB_TRANSITIONONMAXIMIZED: u32 = 4u32;
|
||||
#[repr(C, packed(1))]
|
||||
#[cfg(feature = "Win32_Graphics_Gdi")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DWM_BLURBEHIND {
|
||||
pub dwFlags: u32,
|
||||
pub fEnable: windows_sys::core::BOOL,
|
||||
pub hRgnBlur: super::Gdi::HRGN,
|
||||
pub fTransitionOnMaximized: windows_sys::core::BOOL,
|
||||
}
|
||||
#[cfg(feature = "Win32_Graphics_Gdi")]
|
||||
impl Default for DWM_BLURBEHIND {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DWM_CLOAKED_APP: u32 = 1u32;
|
||||
pub const DWM_CLOAKED_INHERITED: u32 = 4u32;
|
||||
pub const DWM_CLOAKED_SHELL: u32 = 2u32;
|
||||
pub const DWM_EC_DISABLECOMPOSITION: u32 = 0u32;
|
||||
pub const DWM_EC_ENABLECOMPOSITION: u32 = 1u32;
|
||||
pub const DWM_FRAME_DURATION_DEFAULT: i32 = -1i32;
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DWM_PRESENT_PARAMETERS {
|
||||
pub cbSize: u32,
|
||||
pub fQueue: windows_sys::core::BOOL,
|
||||
pub cRefreshStart: u64,
|
||||
pub cBuffer: u32,
|
||||
pub fUseSourceRate: windows_sys::core::BOOL,
|
||||
pub rateSource: UNSIGNED_RATIO,
|
||||
pub cRefreshesPerFrame: u32,
|
||||
pub eSampling: DWM_SOURCE_FRAME_SAMPLING,
|
||||
}
|
||||
pub type DWM_SHOWCONTACT = u32;
|
||||
pub const DWM_SIT_DISPLAYFRAME: u32 = 1u32;
|
||||
pub type DWM_SOURCE_FRAME_SAMPLING = i32;
|
||||
pub const DWM_SOURCE_FRAME_SAMPLING_COVERAGE: DWM_SOURCE_FRAME_SAMPLING = 1i32;
|
||||
pub const DWM_SOURCE_FRAME_SAMPLING_LAST: DWM_SOURCE_FRAME_SAMPLING = 2i32;
|
||||
pub const DWM_SOURCE_FRAME_SAMPLING_POINT: DWM_SOURCE_FRAME_SAMPLING = 0i32;
|
||||
pub type DWM_SYSTEMBACKDROP_TYPE = i32;
|
||||
pub type DWM_TAB_WINDOW_REQUIREMENTS = i32;
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DWM_THUMBNAIL_PROPERTIES {
|
||||
pub dwFlags: u32,
|
||||
pub rcDestination: super::super::Foundation::RECT,
|
||||
pub rcSource: super::super::Foundation::RECT,
|
||||
pub opacity: u8,
|
||||
pub fVisible: windows_sys::core::BOOL,
|
||||
pub fSourceClientAreaOnly: windows_sys::core::BOOL,
|
||||
}
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DWM_TIMING_INFO {
|
||||
pub cbSize: u32,
|
||||
pub rateRefresh: UNSIGNED_RATIO,
|
||||
pub qpcRefreshPeriod: u64,
|
||||
pub rateCompose: UNSIGNED_RATIO,
|
||||
pub qpcVBlank: u64,
|
||||
pub cRefresh: u64,
|
||||
pub cDXRefresh: u32,
|
||||
pub qpcCompose: u64,
|
||||
pub cFrame: u64,
|
||||
pub cDXPresent: u32,
|
||||
pub cRefreshFrame: u64,
|
||||
pub cFrameSubmitted: u64,
|
||||
pub cDXPresentSubmitted: u32,
|
||||
pub cFrameConfirmed: u64,
|
||||
pub cDXPresentConfirmed: u32,
|
||||
pub cRefreshConfirmed: u64,
|
||||
pub cDXRefreshConfirmed: u32,
|
||||
pub cFramesLate: u64,
|
||||
pub cFramesOutstanding: u32,
|
||||
pub cFrameDisplayed: u64,
|
||||
pub qpcFrameDisplayed: u64,
|
||||
pub cRefreshFrameDisplayed: u64,
|
||||
pub cFrameComplete: u64,
|
||||
pub qpcFrameComplete: u64,
|
||||
pub cFramePending: u64,
|
||||
pub qpcFramePending: u64,
|
||||
pub cFramesDisplayed: u64,
|
||||
pub cFramesComplete: u64,
|
||||
pub cFramesPending: u64,
|
||||
pub cFramesAvailable: u64,
|
||||
pub cFramesDropped: u64,
|
||||
pub cFramesMissed: u64,
|
||||
pub cRefreshNextDisplayed: u64,
|
||||
pub cRefreshNextPresented: u64,
|
||||
pub cRefreshesDisplayed: u64,
|
||||
pub cRefreshesPresented: u64,
|
||||
pub cRefreshStarted: u64,
|
||||
pub cPixelsReceived: u64,
|
||||
pub cPixelsDrawn: u64,
|
||||
pub cBuffersEmpty: u64,
|
||||
}
|
||||
pub const DWM_TNP_OPACITY: u32 = 4u32;
|
||||
pub const DWM_TNP_RECTDESTINATION: u32 = 1u32;
|
||||
pub const DWM_TNP_RECTSOURCE: u32 = 2u32;
|
||||
pub const DWM_TNP_SOURCECLIENTAREAONLY: u32 = 16u32;
|
||||
pub const DWM_TNP_VISIBLE: u32 = 8u32;
|
||||
pub type DWM_WINDOW_CORNER_PREFERENCE = i32;
|
||||
pub type GESTURE_TYPE = i32;
|
||||
pub const GT_PEN_DOUBLETAP: GESTURE_TYPE = 1i32;
|
||||
pub const GT_PEN_PRESSANDHOLD: GESTURE_TYPE = 3i32;
|
||||
pub const GT_PEN_PRESSANDHOLDABORT: GESTURE_TYPE = 4i32;
|
||||
pub const GT_PEN_RIGHTTAP: GESTURE_TYPE = 2i32;
|
||||
pub const GT_PEN_TAP: GESTURE_TYPE = 0i32;
|
||||
pub const GT_TOUCH_DOUBLETAP: GESTURE_TYPE = 6i32;
|
||||
pub const GT_TOUCH_PRESSANDHOLD: GESTURE_TYPE = 8i32;
|
||||
pub const GT_TOUCH_PRESSANDHOLDABORT: GESTURE_TYPE = 9i32;
|
||||
pub const GT_TOUCH_PRESSANDTAP: GESTURE_TYPE = 10i32;
|
||||
pub const GT_TOUCH_RIGHTTAP: GESTURE_TYPE = 7i32;
|
||||
pub const GT_TOUCH_TAP: GESTURE_TYPE = 5i32;
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct MilMatrix3x2D {
|
||||
pub S_11: f64,
|
||||
pub S_12: f64,
|
||||
pub S_21: f64,
|
||||
pub S_22: f64,
|
||||
pub DX: f64,
|
||||
pub DY: f64,
|
||||
}
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct UNSIGNED_RATIO {
|
||||
pub uiNumerator: u32,
|
||||
pub uiDenominator: u32,
|
||||
}
|
||||
pub const c_DwmMaxAdapters: u32 = 16u32;
|
||||
pub const c_DwmMaxMonitors: u32 = 16u32;
|
||||
pub const c_DwmMaxQueuedBuffers: u32 = 8u32;
|
||||
+4203
File diff suppressed because it is too large.
Load diff
+2381
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,2 @@
|
||||
pub const D3DCOMPILE_OPTIMIZATION_LEVEL2: u32 = 49152u32;
|
||||
pub const D3D_COMPILE_STANDARD_FILE_INCLUDE: u32 = 1u32;
|
||||
+1276
File diff suppressed because it is too large.
Load diff
Vendored
+32
@@ -0,0 +1,32 @@
|
||||
windows_link::link!("prntvpt.dll" "system" fn PTCloseProvider(hprovider : HPTPROVIDER) -> windows_sys::core::HRESULT);
|
||||
#[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))]
|
||||
windows_link::link!("prntvpt.dll" "system" fn PTConvertDevModeToPrintTicket(hprovider : HPTPROVIDER, cbdevmode : u32, pdevmode : *const super::super::Gdi:: DEVMODEA, scope : EPrintTicketScope, pprintticket : * mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
#[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))]
|
||||
windows_link::link!("prntvpt.dll" "system" fn PTConvertPrintTicketToDevMode(hprovider : HPTPROVIDER, pprintticket : * mut core::ffi::c_void, basedevmodetype : EDefaultDevmodeType, scope : EPrintTicketScope, pcbdevmode : *mut u32, ppdevmode : *mut *mut super::super::Gdi:: DEVMODEA, pbstrerrormessage : *mut windows_sys::core::BSTR) -> windows_sys::core::HRESULT);
|
||||
#[cfg(feature = "Win32_System_Com")]
|
||||
windows_link::link!("prntvpt.dll" "system" fn PTGetPrintCapabilities(hprovider : HPTPROVIDER, pprintticket : * mut core::ffi::c_void, pcapabilities : * mut core::ffi::c_void, pbstrerrormessage : *mut windows_sys::core::BSTR) -> windows_sys::core::HRESULT);
|
||||
#[cfg(feature = "Win32_System_Com")]
|
||||
windows_link::link!("prntvpt.dll" "system" fn PTGetPrintDeviceCapabilities(hprovider : HPTPROVIDER, pprintticket : * mut core::ffi::c_void, pdevicecapabilities : * mut core::ffi::c_void, pbstrerrormessage : *mut windows_sys::core::BSTR) -> windows_sys::core::HRESULT);
|
||||
#[cfg(feature = "Win32_System_Com")]
|
||||
windows_link::link!("prntvpt.dll" "system" fn PTGetPrintDeviceResources(hprovider : HPTPROVIDER, pszlocalename : windows_sys::core::PCWSTR, pprintticket : * mut core::ffi::c_void, pdeviceresources : * mut core::ffi::c_void, pbstrerrormessage : *mut windows_sys::core::BSTR) -> windows_sys::core::HRESULT);
|
||||
#[cfg(feature = "Win32_System_Com")]
|
||||
windows_link::link!("prntvpt.dll" "system" fn PTMergeAndValidatePrintTicket(hprovider : HPTPROVIDER, pbaseticket : * mut core::ffi::c_void, pdeltaticket : * mut core::ffi::c_void, scope : EPrintTicketScope, presultticket : * mut core::ffi::c_void, pbstrerrormessage : *mut windows_sys::core::BSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("prntvpt.dll" "system" fn PTOpenProvider(pszprintername : windows_sys::core::PCWSTR, dwversion : u32, phprovider : *mut HPTPROVIDER) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("prntvpt.dll" "system" fn PTOpenProviderEx(pszprintername : windows_sys::core::PCWSTR, dwmaxversion : u32, dwprefversion : u32, phprovider : *mut HPTPROVIDER, pusedversion : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("prntvpt.dll" "system" fn PTQuerySchemaVersionSupport(pszprintername : windows_sys::core::PCWSTR, pmaxversion : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("prntvpt.dll" "system" fn PTReleaseMemory(pbuffer : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
pub type EDefaultDevmodeType = i32;
|
||||
pub type EPrintTicketScope = i32;
|
||||
pub const E_DELTA_PRINTTICKET_FORMAT: u32 = 2147745797u32;
|
||||
pub const E_PRINTCAPABILITIES_FORMAT: u32 = 2147745796u32;
|
||||
pub const E_PRINTDEVICECAPABILITIES_FORMAT: u32 = 2147745798u32;
|
||||
pub const E_PRINTTICKET_FORMAT: u32 = 2147745795u32;
|
||||
pub type HPTPROVIDER = *mut core::ffi::c_void;
|
||||
pub const PRINTTICKET_ISTREAM_APIS: u32 = 1u32;
|
||||
pub const S_PT_CONFLICT_RESOLVED: u32 = 262146u32;
|
||||
pub const S_PT_NO_CONFLICT: u32 = 262145u32;
|
||||
pub const kPTDocumentScope: EPrintTicketScope = 1i32;
|
||||
pub const kPTJobScope: EPrintTicketScope = 2i32;
|
||||
pub const kPTPageScope: EPrintTicketScope = 0i32;
|
||||
pub const kPrinterDefaultDevmode: EDefaultDevmodeType = 1i32;
|
||||
pub const kUserDefaultDevmode: EDefaultDevmodeType = 0i32;
|
||||
+5024
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,12 @@
|
||||
#[cfg(feature = "Win32_Graphics_Dwm")]
|
||||
pub mod Dwm;
|
||||
#[cfg(feature = "Win32_Graphics_Gdi")]
|
||||
pub mod Gdi;
|
||||
#[cfg(feature = "Win32_Graphics_GdiPlus")]
|
||||
pub mod GdiPlus;
|
||||
#[cfg(feature = "Win32_Graphics_Hlsl")]
|
||||
pub mod Hlsl;
|
||||
#[cfg(feature = "Win32_Graphics_OpenGL")]
|
||||
pub mod OpenGL;
|
||||
#[cfg(feature = "Win32_Graphics_Printing")]
|
||||
pub mod Printing;
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
windows_link::link!("mdmlocalmanagement.dll" "system" fn ApplyLocalManagementSyncML(syncmlrequest : windows_sys::core::PCWSTR, syncmlresult : *mut windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn DiscoverManagementService(pszupn : windows_sys::core::PCWSTR, ppmgmtinfo : *mut *mut MANAGEMENT_SERVICE_INFO) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn DiscoverManagementServiceEx(pszupn : windows_sys::core::PCWSTR, pszdiscoveryservicecandidate : windows_sys::core::PCWSTR, ppmgmtinfo : *mut *mut MANAGEMENT_SERVICE_INFO) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn GetDeviceManagementConfigInfo(providerid : windows_sys::core::PCWSTR, configstringbufferlength : *mut u32, configstring : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn GetDeviceRegistrationInfo(deviceinformationclass : REGISTRATION_INFORMATION_CLASS, ppdeviceregistrationinfo : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn GetManagementAppHyperlink(cchhyperlink : u32, pszhyperlink : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn IsDeviceRegisteredWithManagement(pfisdeviceregisteredwithmanagement : *mut windows_sys::core::BOOL, cchupn : u32, pszupn : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn IsManagementRegistrationAllowed(pfismanagementregistrationallowed : *mut windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn IsMdmUxWithoutAadAllowed(isenrollmentallowed : *mut windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmlocalmanagement.dll" "system" fn RegisterDeviceWithLocalManagement(alreadyregistered : *mut windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn RegisterDeviceWithManagement(pszupn : windows_sys::core::PCWSTR, ppszmdmserviceuri : windows_sys::core::PCWSTR, ppzsaccesstoken : windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn RegisterDeviceWithManagementUsingAADCredentials(usertoken : super::super::Foundation:: HANDLE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn RegisterDeviceWithManagementUsingAADDeviceCredentials() -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn RegisterDeviceWithManagementUsingAADDeviceCredentials2(mdmapplicationid : windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn SetDeviceManagementConfigInfo(providerid : windows_sys::core::PCWSTR, configstring : windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn SetManagedExternally(ismanagedexternally : windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmlocalmanagement.dll" "system" fn UnregisterDeviceWithLocalManagement() -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("mdmregistration.dll" "system" fn UnregisterDeviceWithManagement(enrollmentid : windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT);
|
||||
pub const DEVICEREGISTRATIONTYPE_MAM: u32 = 5u32;
|
||||
pub const DEVICEREGISTRATIONTYPE_MDM_DEVICEWIDE_WITH_AAD: u32 = 6u32;
|
||||
pub const DEVICEREGISTRATIONTYPE_MDM_ONLY: u32 = 0u32;
|
||||
pub const DEVICEREGISTRATIONTYPE_MDM_USERSPECIFIC_WITH_AAD: u32 = 13u32;
|
||||
pub const DEVICE_ENROLLER_FACILITY_CODE: u32 = 24u32;
|
||||
pub const DeviceRegistrationBasicInfo: REGISTRATION_INFORMATION_CLASS = 1i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct MANAGEMENT_REGISTRATION_INFO {
|
||||
pub fDeviceRegisteredWithManagement: windows_sys::core::BOOL,
|
||||
pub dwDeviceRegistionKind: u32,
|
||||
pub pszUPN: windows_sys::core::PWSTR,
|
||||
pub pszMDMServiceUri: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for MANAGEMENT_REGISTRATION_INFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct MANAGEMENT_SERVICE_INFO {
|
||||
pub pszMDMServiceUri: windows_sys::core::PWSTR,
|
||||
pub pszAuthenticationUri: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for MANAGEMENT_SERVICE_INFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const MDM_REGISTRATION_FACILITY_CODE: u32 = 25u32;
|
||||
pub const MENROLL_E_CERTAUTH_FAILED_TO_FIND_CERT: windows_sys::core::HRESULT = 0x80180028_u32 as _;
|
||||
pub const MENROLL_E_CERTPOLICY_PRIVATEKEYCREATION_FAILED: windows_sys::core::HRESULT = 0x80180027_u32 as _;
|
||||
pub const MENROLL_E_CONNECTIVITY: windows_sys::core::HRESULT = 0x80180010_u32 as _;
|
||||
pub const MENROLL_E_CUSTOMSERVERERROR: windows_sys::core::HRESULT = 0x80180032_u32 as _;
|
||||
pub const MENROLL_E_DEVICECAPREACHED: windows_sys::core::HRESULT = 0x80180013_u32 as _;
|
||||
pub const MENROLL_E_DEVICENOTSUPPORTED: windows_sys::core::HRESULT = 0x80180014_u32 as _;
|
||||
pub const MENROLL_E_DEVICE_ALREADY_ENROLLED: windows_sys::core::HRESULT = 0x8018000A_u32 as _;
|
||||
pub const MENROLL_E_DEVICE_AUTHENTICATION_ERROR: windows_sys::core::HRESULT = 0x80180002_u32 as _;
|
||||
pub const MENROLL_E_DEVICE_AUTHORIZATION_ERROR: windows_sys::core::HRESULT = 0x80180003_u32 as _;
|
||||
pub const MENROLL_E_DEVICE_CERTIFCATEREQUEST_ERROR: windows_sys::core::HRESULT = 0x80180004_u32 as _;
|
||||
pub const MENROLL_E_DEVICE_CERTIFICATEREQUEST_ERROR: windows_sys::core::HRESULT = 0x80180004_u32 as _;
|
||||
pub const MENROLL_E_DEVICE_CONFIGMGRSERVER_ERROR: windows_sys::core::HRESULT = 0x80180005_u32 as _;
|
||||
pub const MENROLL_E_DEVICE_INTERNALSERVICE_ERROR: windows_sys::core::HRESULT = 0x80180006_u32 as _;
|
||||
pub const MENROLL_E_DEVICE_INVALIDSECURITY_ERROR: windows_sys::core::HRESULT = 0x80180007_u32 as _;
|
||||
pub const MENROLL_E_DEVICE_MANAGEMENT_BLOCKED: windows_sys::core::HRESULT = 0x80180026_u32 as _;
|
||||
pub const MENROLL_E_DEVICE_MESSAGE_FORMAT_ERROR: windows_sys::core::HRESULT = 0x80180001_u32 as _;
|
||||
pub const MENROLL_E_DEVICE_NOT_ENROLLED: windows_sys::core::HRESULT = 0x8018000B_u32 as _;
|
||||
pub const MENROLL_E_DEVICE_UNKNOWN_ERROR: windows_sys::core::HRESULT = 0x80180008_u32 as _;
|
||||
pub const MENROLL_E_DISCOVERY_SEC_CERT_DATE_INVALID: windows_sys::core::HRESULT = 0x8018000D_u32 as _;
|
||||
pub const MENROLL_E_EMPTY_MESSAGE: windows_sys::core::HRESULT = 0x80180029_u32 as _;
|
||||
pub const MENROLL_E_ENROLLMENTDATAINVALID: windows_sys::core::HRESULT = 0x80180019_u32 as _;
|
||||
pub const MENROLL_E_ENROLLMENT_IN_PROGRESS: windows_sys::core::HRESULT = 0x80180009_u32 as _;
|
||||
pub const MENROLL_E_INMAINTENANCE: windows_sys::core::HRESULT = 0x80180017_u32 as _;
|
||||
pub const MENROLL_E_INSECUREREDIRECT: windows_sys::core::HRESULT = 0x8018001A_u32 as _;
|
||||
pub const MENROLL_E_INVALIDSSLCERT: windows_sys::core::HRESULT = 0x80180012_u32 as _;
|
||||
pub const MENROLL_E_MDM_NOT_CONFIGURED: windows_sys::core::HRESULT = 0x80180031_u32 as _;
|
||||
pub const MENROLL_E_NOTELIGIBLETORENEW: windows_sys::core::HRESULT = 0x80180016_u32 as _;
|
||||
pub const MENROLL_E_NOTSUPPORTED: windows_sys::core::HRESULT = 0x80180015_u32 as _;
|
||||
pub const MENROLL_E_NOT_SUPPORTED: windows_sys::core::HRESULT = 0x80180015_u32 as _;
|
||||
pub const MENROLL_E_PASSWORD_NEEDED: windows_sys::core::HRESULT = 0x8018000E_u32 as _;
|
||||
pub const MENROLL_E_PLATFORM_LICENSE_ERROR: windows_sys::core::HRESULT = 0x8018001C_u32 as _;
|
||||
pub const MENROLL_E_PLATFORM_UNKNOWN_ERROR: windows_sys::core::HRESULT = 0x8018001D_u32 as _;
|
||||
pub const MENROLL_E_PLATFORM_WRONG_STATE: windows_sys::core::HRESULT = 0x8018001B_u32 as _;
|
||||
pub const MENROLL_E_PROV_CSP_APPMGMT: windows_sys::core::HRESULT = 0x80180025_u32 as _;
|
||||
pub const MENROLL_E_PROV_CSP_CERTSTORE: windows_sys::core::HRESULT = 0x8018001E_u32 as _;
|
||||
pub const MENROLL_E_PROV_CSP_DMCLIENT: windows_sys::core::HRESULT = 0x80180020_u32 as _;
|
||||
pub const MENROLL_E_PROV_CSP_MISC: windows_sys::core::HRESULT = 0x80180022_u32 as _;
|
||||
pub const MENROLL_E_PROV_CSP_PFW: windows_sys::core::HRESULT = 0x80180021_u32 as _;
|
||||
pub const MENROLL_E_PROV_CSP_W7: windows_sys::core::HRESULT = 0x8018001F_u32 as _;
|
||||
pub const MENROLL_E_PROV_SSLCERTNOTFOUND: windows_sys::core::HRESULT = 0x80180024_u32 as _;
|
||||
pub const MENROLL_E_PROV_UNKNOWN: windows_sys::core::HRESULT = 0x80180023_u32 as _;
|
||||
pub const MENROLL_E_USERLICENSE: windows_sys::core::HRESULT = 0x80180018_u32 as _;
|
||||
pub const MENROLL_E_USER_CANCELED: windows_sys::core::HRESULT = 0x8018002A_u32 as _;
|
||||
pub const MENROLL_E_USER_CANCELLED: windows_sys::core::HRESULT = 0x80180030_u32 as _;
|
||||
pub const MENROLL_E_USER_LICENSE: windows_sys::core::HRESULT = 0x80180018_u32 as _;
|
||||
pub const MENROLL_E_WAB_ERROR: windows_sys::core::HRESULT = 0x8018000F_u32 as _;
|
||||
pub const MREGISTER_E_DEVICE_ALREADY_REGISTERED: windows_sys::core::HRESULT = 0x8019000A_u32 as _;
|
||||
pub const MREGISTER_E_DEVICE_AUTHENTICATION_ERROR: windows_sys::core::HRESULT = 0x80190002_u32 as _;
|
||||
pub const MREGISTER_E_DEVICE_AUTHORIZATION_ERROR: windows_sys::core::HRESULT = 0x80190003_u32 as _;
|
||||
pub const MREGISTER_E_DEVICE_CERTIFCATEREQUEST_ERROR: windows_sys::core::HRESULT = 0x80190004_u32 as _;
|
||||
pub const MREGISTER_E_DEVICE_CONFIGMGRSERVER_ERROR: windows_sys::core::HRESULT = 0x80190005_u32 as _;
|
||||
pub const MREGISTER_E_DEVICE_INTERNALSERVICE_ERROR: windows_sys::core::HRESULT = 0x80190006_u32 as _;
|
||||
pub const MREGISTER_E_DEVICE_INVALIDSECURITY_ERROR: windows_sys::core::HRESULT = 0x80190007_u32 as _;
|
||||
pub const MREGISTER_E_DEVICE_MESSAGE_FORMAT_ERROR: windows_sys::core::HRESULT = 0x80190001_u32 as _;
|
||||
pub const MREGISTER_E_DEVICE_NOT_AD_REGISTERED_ERROR: windows_sys::core::HRESULT = 0x8019000D_u32 as _;
|
||||
pub const MREGISTER_E_DEVICE_NOT_REGISTERED: windows_sys::core::HRESULT = 0x8019000B_u32 as _;
|
||||
pub const MREGISTER_E_DEVICE_UNKNOWN_ERROR: windows_sys::core::HRESULT = 0x80190008_u32 as _;
|
||||
pub const MREGISTER_E_DISCOVERY_FAILED: windows_sys::core::HRESULT = 0x8019000E_u32 as _;
|
||||
pub const MREGISTER_E_DISCOVERY_REDIRECTED: windows_sys::core::HRESULT = 0x8019000C_u32 as _;
|
||||
pub const MREGISTER_E_REGISTRATION_IN_PROGRESS: windows_sys::core::HRESULT = 0x80190009_u32 as _;
|
||||
pub const MaxDeviceInfoClass: REGISTRATION_INFORMATION_CLASS = 2i32;
|
||||
pub type REGISTRATION_INFORMATION_CLASS = i32;
|
||||
@@ -0,0 +1,2 @@
|
||||
#[cfg(feature = "Win32_Management_MobileDeviceManagementRegistration")]
|
||||
pub mod MobileDeviceManagementRegistration;
|
||||
File diff suppressed because it is too large.
Load diff
+104
@@ -0,0 +1,104 @@
|
||||
windows_link::link!("msdmo.dll" "system" fn DMOEnum(guidcategory : *const windows_sys::core::GUID, dwflags : u32, cintypes : u32, pintypes : *const DMO_PARTIAL_MEDIATYPE, couttypes : u32, pouttypes : *const DMO_PARTIAL_MEDIATYPE, ppenum : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdmo.dll" "system" fn DMOGetName(clsiddmo : *const windows_sys::core::GUID, szname : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdmo.dll" "system" fn DMOGetTypes(clsiddmo : *const windows_sys::core::GUID, ulinputtypesrequested : u32, pulinputtypessupplied : *mut u32, pinputtypes : *mut DMO_PARTIAL_MEDIATYPE, uloutputtypesrequested : u32, puloutputtypessupplied : *mut u32, poutputtypes : *mut DMO_PARTIAL_MEDIATYPE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdmo.dll" "system" fn DMORegister(szname : windows_sys::core::PCWSTR, clsiddmo : *const windows_sys::core::GUID, guidcategory : *const windows_sys::core::GUID, dwflags : u32, cintypes : u32, pintypes : *const DMO_PARTIAL_MEDIATYPE, couttypes : u32, pouttypes : *const DMO_PARTIAL_MEDIATYPE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdmo.dll" "system" fn DMOUnregister(clsiddmo : *const windows_sys::core::GUID, guidcategory : *const windows_sys::core::GUID) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdmo.dll" "system" fn MoCopyMediaType(pmtdest : *mut DMO_MEDIA_TYPE, pmtsrc : *const DMO_MEDIA_TYPE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdmo.dll" "system" fn MoCreateMediaType(ppmt : *mut *mut DMO_MEDIA_TYPE, cbformat : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdmo.dll" "system" fn MoDeleteMediaType(pmt : *mut DMO_MEDIA_TYPE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdmo.dll" "system" fn MoDuplicateMediaType(ppmtdest : *mut *mut DMO_MEDIA_TYPE, pmtsrc : *const DMO_MEDIA_TYPE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdmo.dll" "system" fn MoFreeMediaType(pmt : *mut DMO_MEDIA_TYPE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("msdmo.dll" "system" fn MoInitMediaType(pmt : *mut DMO_MEDIA_TYPE, cbformat : u32) -> windows_sys::core::HRESULT);
|
||||
pub const DMOCATEGORY_ACOUSTIC_ECHO_CANCEL: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xbf963d80_c559_11d0_8a2b_00a0c9255ac1);
|
||||
pub const DMOCATEGORY_AGC: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe88c9ba0_c557_11d0_8a2b_00a0c9255ac1);
|
||||
pub const DMOCATEGORY_AUDIO_CAPTURE_EFFECT: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xf665aaba_3e09_4920_aa5f_219811148f09);
|
||||
pub const DMOCATEGORY_AUDIO_DECODER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x57f2db8b_e6bb_4513_9d43_dcd2a6593125);
|
||||
pub const DMOCATEGORY_AUDIO_EFFECT: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xf3602b3f_0592_48df_a4cd_674721e7ebeb);
|
||||
pub const DMOCATEGORY_AUDIO_ENCODER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x33d9a761_90c8_11d0_bd43_00a0c911ce86);
|
||||
pub const DMOCATEGORY_AUDIO_NOISE_SUPPRESS: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe07f903f_62fd_4e60_8cdd_dea7236665b5);
|
||||
pub const DMOCATEGORY_VIDEO_DECODER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4a69b442_28be_4991_969c_b500adf5d8a8);
|
||||
pub const DMOCATEGORY_VIDEO_EFFECT: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xd990ee14_776c_4723_be46_3da2f56f10b9);
|
||||
pub const DMOCATEGORY_VIDEO_ENCODER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x33d9a760_90c8_11d0_bd43_00a0c911ce86);
|
||||
pub const DMO_ENUMF_INCLUDE_KEYED: DMO_ENUM_FLAGS = 1i32;
|
||||
pub type DMO_ENUM_FLAGS = i32;
|
||||
pub const DMO_E_INVALIDSTREAMINDEX: windows_sys::core::HRESULT = 0x80040201_u32 as _;
|
||||
pub const DMO_E_INVALIDTYPE: windows_sys::core::HRESULT = 0x80040202_u32 as _;
|
||||
pub const DMO_E_NOTACCEPTING: windows_sys::core::HRESULT = 0x80040204_u32 as _;
|
||||
pub const DMO_E_NO_MORE_ITEMS: windows_sys::core::HRESULT = 0x80040206_u32 as _;
|
||||
pub const DMO_E_TYPE_NOT_ACCEPTED: windows_sys::core::HRESULT = 0x80040205_u32 as _;
|
||||
pub const DMO_E_TYPE_NOT_SET: windows_sys::core::HRESULT = 0x80040203_u32 as _;
|
||||
pub const DMO_INPLACE_NORMAL: _DMO_INPLACE_PROCESS_FLAGS = 0i32;
|
||||
pub const DMO_INPLACE_ZERO: _DMO_INPLACE_PROCESS_FLAGS = 1i32;
|
||||
pub const DMO_INPUT_DATA_BUFFERF_DISCONTINUITY: _DMO_INPUT_DATA_BUFFER_FLAGS = 8i32;
|
||||
pub const DMO_INPUT_DATA_BUFFERF_SYNCPOINT: _DMO_INPUT_DATA_BUFFER_FLAGS = 1i32;
|
||||
pub const DMO_INPUT_DATA_BUFFERF_TIME: _DMO_INPUT_DATA_BUFFER_FLAGS = 2i32;
|
||||
pub const DMO_INPUT_DATA_BUFFERF_TIMELENGTH: _DMO_INPUT_DATA_BUFFER_FLAGS = 4i32;
|
||||
pub const DMO_INPUT_STATUSF_ACCEPT_DATA: _DMO_INPUT_STATUS_FLAGS = 1i32;
|
||||
pub const DMO_INPUT_STREAMF_FIXED_SAMPLE_SIZE: _DMO_INPUT_STREAM_INFO_FLAGS = 4i32;
|
||||
pub const DMO_INPUT_STREAMF_HOLDS_BUFFERS: _DMO_INPUT_STREAM_INFO_FLAGS = 8i32;
|
||||
pub const DMO_INPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER: _DMO_INPUT_STREAM_INFO_FLAGS = 2i32;
|
||||
pub const DMO_INPUT_STREAMF_WHOLE_SAMPLES: _DMO_INPUT_STREAM_INFO_FLAGS = 1i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DMO_MEDIA_TYPE {
|
||||
pub majortype: windows_sys::core::GUID,
|
||||
pub subtype: windows_sys::core::GUID,
|
||||
pub bFixedSizeSamples: windows_sys::core::BOOL,
|
||||
pub bTemporalCompression: windows_sys::core::BOOL,
|
||||
pub lSampleSize: u32,
|
||||
pub formattype: windows_sys::core::GUID,
|
||||
pub pUnk: *mut core::ffi::c_void,
|
||||
pub cbFormat: u32,
|
||||
pub pbFormat: *mut u8,
|
||||
}
|
||||
impl Default for DMO_MEDIA_TYPE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DMO_OUTPUT_DATA_BUFFER {
|
||||
pub pBuffer: *mut core::ffi::c_void,
|
||||
pub dwStatus: u32,
|
||||
pub rtTimestamp: i64,
|
||||
pub rtTimelength: i64,
|
||||
}
|
||||
impl Default for DMO_OUTPUT_DATA_BUFFER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DMO_OUTPUT_DATA_BUFFERF_DISCONTINUITY: _DMO_OUTPUT_DATA_BUFFER_FLAGS = 8i32;
|
||||
pub const DMO_OUTPUT_DATA_BUFFERF_INCOMPLETE: _DMO_OUTPUT_DATA_BUFFER_FLAGS = 16777216i32;
|
||||
pub const DMO_OUTPUT_DATA_BUFFERF_SYNCPOINT: _DMO_OUTPUT_DATA_BUFFER_FLAGS = 1i32;
|
||||
pub const DMO_OUTPUT_DATA_BUFFERF_TIME: _DMO_OUTPUT_DATA_BUFFER_FLAGS = 2i32;
|
||||
pub const DMO_OUTPUT_DATA_BUFFERF_TIMELENGTH: _DMO_OUTPUT_DATA_BUFFER_FLAGS = 4i32;
|
||||
pub const DMO_OUTPUT_STREAMF_DISCARDABLE: _DMO_OUTPUT_STREAM_INFO_FLAGS = 8i32;
|
||||
pub const DMO_OUTPUT_STREAMF_FIXED_SAMPLE_SIZE: _DMO_OUTPUT_STREAM_INFO_FLAGS = 4i32;
|
||||
pub const DMO_OUTPUT_STREAMF_OPTIONAL: _DMO_OUTPUT_STREAM_INFO_FLAGS = 16i32;
|
||||
pub const DMO_OUTPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER: _DMO_OUTPUT_STREAM_INFO_FLAGS = 2i32;
|
||||
pub const DMO_OUTPUT_STREAMF_WHOLE_SAMPLES: _DMO_OUTPUT_STREAM_INFO_FLAGS = 1i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DMO_PARTIAL_MEDIATYPE {
|
||||
pub r#type: windows_sys::core::GUID,
|
||||
pub subtype: windows_sys::core::GUID,
|
||||
}
|
||||
pub const DMO_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER: _DMO_PROCESS_OUTPUT_FLAGS = 1i32;
|
||||
pub const DMO_QUALITY_STATUS_ENABLED: _DMO_QUALITY_STATUS_FLAGS = 1i32;
|
||||
pub const DMO_REGISTERF_IS_KEYED: DMO_REGISTER_FLAGS = 1i32;
|
||||
pub type DMO_REGISTER_FLAGS = i32;
|
||||
pub const DMO_SET_TYPEF_CLEAR: _DMO_SET_TYPE_FLAGS = 2i32;
|
||||
pub const DMO_SET_TYPEF_TEST_ONLY: _DMO_SET_TYPE_FLAGS = 1i32;
|
||||
pub const DMO_VOSF_NEEDS_PREVIOUS_SAMPLE: _DMO_VIDEO_OUTPUT_STREAM_FLAGS = 1i32;
|
||||
pub type _DMO_INPLACE_PROCESS_FLAGS = i32;
|
||||
pub type _DMO_INPUT_DATA_BUFFER_FLAGS = i32;
|
||||
pub type _DMO_INPUT_STATUS_FLAGS = i32;
|
||||
pub type _DMO_INPUT_STREAM_INFO_FLAGS = i32;
|
||||
pub type _DMO_OUTPUT_DATA_BUFFER_FLAGS = i32;
|
||||
pub type _DMO_OUTPUT_STREAM_INFO_FLAGS = i32;
|
||||
pub type _DMO_PROCESS_OUTPUT_FLAGS = i32;
|
||||
pub type _DMO_QUALITY_STATUS_FLAGS = i32;
|
||||
pub type _DMO_SET_TYPE_FLAGS = i32;
|
||||
pub type _DMO_VIDEO_OUTPUT_STREAM_FLAGS = i32;
|
||||
+6409
File diff suppressed because it is too large.
Load diff
+6882
File diff suppressed because it is too large.
Load diff
+104
@@ -0,0 +1,104 @@
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CapturedMetadataExposureCompensation {
|
||||
pub Flags: u64,
|
||||
pub Value: i32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CapturedMetadataISOGains {
|
||||
pub AnalogGain: f32,
|
||||
pub DigitalGain: f32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct CapturedMetadataWhiteBalanceGains {
|
||||
pub R: f32,
|
||||
pub G: f32,
|
||||
pub B: f32,
|
||||
}
|
||||
pub const DEVPKEY_Device_DLNACAP: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x88ad39db_0d0c_4a38_8435_4043826b5c91), pid: 16 };
|
||||
pub const DEVPKEY_Device_DLNADOC: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x88ad39db_0d0c_4a38_8435_4043826b5c91), pid: 15 };
|
||||
pub const DEVPKEY_Device_MaxVolume: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x88ad39db_0d0c_4a38_8435_4043826b5c91), pid: 19 };
|
||||
pub const DEVPKEY_Device_PacketWakeSupported: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x88ad39db_0d0c_4a38_8435_4043826b5c91), pid: 0 };
|
||||
pub const DEVPKEY_Device_SendPacketWakeSupported: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x88ad39db_0d0c_4a38_8435_4043826b5c91), pid: 1 };
|
||||
pub const DEVPKEY_Device_SinkProtocolInfo: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x88ad39db_0d0c_4a38_8435_4043826b5c91), pid: 14 };
|
||||
pub const DEVPKEY_Device_SupportsAudio: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x88ad39db_0d0c_4a38_8435_4043826b5c91), pid: 8 };
|
||||
pub const DEVPKEY_Device_SupportsImages: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x88ad39db_0d0c_4a38_8435_4043826b5c91), pid: 10 };
|
||||
pub const DEVPKEY_Device_SupportsMute: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x88ad39db_0d0c_4a38_8435_4043826b5c91), pid: 18 };
|
||||
pub const DEVPKEY_Device_SupportsSearch: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x88ad39db_0d0c_4a38_8435_4043826b5c91), pid: 17 };
|
||||
pub const DEVPKEY_Device_SupportsSetNextAVT: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x88ad39db_0d0c_4a38_8435_4043826b5c91), pid: 20 };
|
||||
pub const DEVPKEY_Device_SupportsVideo: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x88ad39db_0d0c_4a38_8435_4043826b5c91), pid: 9 };
|
||||
pub const DEVPKEY_Device_UDN: super::super::Foundation::DEVPROPKEY = super::super::Foundation::DEVPROPKEY { fmtid: windows_sys::core::GUID::from_u128(0x88ad39db_0d0c_4a38_8435_4043826b5c91), pid: 6 };
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct FaceCharacterization {
|
||||
pub BlinkScoreLeft: u32,
|
||||
pub BlinkScoreRight: u32,
|
||||
pub FacialExpression: u32,
|
||||
pub FacialExpressionScore: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct FaceCharacterizationBlobHeader {
|
||||
pub Size: u32,
|
||||
pub Count: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct FaceRectInfo {
|
||||
pub Region: super::super::Foundation::RECT,
|
||||
pub confidenceLevel: i32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct FaceRectInfoBlobHeader {
|
||||
pub Size: u32,
|
||||
pub Count: u32,
|
||||
}
|
||||
pub const GUID_DEVINTERFACE_DMP: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x25b4e268_2a05_496e_803b_266837fbda4b);
|
||||
pub const GUID_DEVINTERFACE_DMR: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xd0875fb4_2196_4c7a_a63d_e416addd60a1);
|
||||
pub const GUID_DEVINTERFACE_DMS: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc96037ae_a558_4470_b432_115a31b85553);
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct HistogramBlobHeader {
|
||||
pub Size: u32,
|
||||
pub Histograms: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct HistogramDataHeader {
|
||||
pub Size: u32,
|
||||
pub ChannelMask: u32,
|
||||
pub Linear: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct HistogramGrid {
|
||||
pub Width: u32,
|
||||
pub Height: u32,
|
||||
pub Region: super::super::Foundation::RECT,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct HistogramHeader {
|
||||
pub Size: u32,
|
||||
pub Bins: u32,
|
||||
pub FourCC: u32,
|
||||
pub ChannelMasks: u32,
|
||||
pub Grid: HistogramGrid,
|
||||
}
|
||||
pub type MF_MEDIASOURCE_STATUS_INFO = i32;
|
||||
pub const MF_MEDIASOURCE_STATUS_INFO_FULLYSUPPORTED: MF_MEDIASOURCE_STATUS_INFO = 0i32;
|
||||
pub const MF_MEDIASOURCE_STATUS_INFO_UNKNOWN: MF_MEDIASOURCE_STATUS_INFO = 1i32;
|
||||
pub const MF_TRANSFER_VIDEO_FRAME_DEFAULT: MF_TRANSFER_VIDEO_FRAME_FLAGS = 0i32;
|
||||
pub type MF_TRANSFER_VIDEO_FRAME_FLAGS = i32;
|
||||
pub const MF_TRANSFER_VIDEO_FRAME_IGNORE_PAR: MF_TRANSFER_VIDEO_FRAME_FLAGS = 2i32;
|
||||
pub const MF_TRANSFER_VIDEO_FRAME_STRETCH: MF_TRANSFER_VIDEO_FRAME_FLAGS = 1i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct MetadataTimeStamps {
|
||||
pub Flags: u32,
|
||||
pub Device: i64,
|
||||
pub Presentation: i64,
|
||||
}
|
||||
+996
@@ -0,0 +1,996 @@
|
||||
windows_link::link!("wmvcore.dll" "system" fn WMCreateBackupRestorer(pcallback : * mut core::ffi::c_void, ppbackup : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("wmvcore.dll" "system" fn WMCreateEditor(ppeditor : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("wmvcore.dll" "system" fn WMCreateIndexer(ppindexer : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("wmvcore.dll" "system" fn WMCreateProfileManager(ppprofilemanager : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("wmvcore.dll" "system" fn WMCreateReader(punkcert : * mut core::ffi::c_void, dwrights : u32, ppreader : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("wmvcore.dll" "system" fn WMCreateSyncReader(punkcert : * mut core::ffi::c_void, dwrights : u32, ppsyncreader : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("wmvcore.dll" "system" fn WMCreateWriter(punkcert : * mut core::ffi::c_void, ppwriter : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("wmvcore.dll" "system" fn WMCreateWriterFileSink(ppsink : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("wmvcore.dll" "system" fn WMCreateWriterNetworkSink(ppsink : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("wmvcore.dll" "system" fn WMCreateWriterPushSink(ppsink : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("wmvcore.dll" "system" fn WMIsContentProtected(pwszfilename : windows_sys::core::PCWSTR, pfisprotected : *mut windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
|
||||
pub const AM_CONFIGASFWRITER_PARAM_AUTOINDEX: _AM_ASFWRITERCONFIG_PARAM = 1i32;
|
||||
pub const AM_CONFIGASFWRITER_PARAM_DONTCOMPRESS: _AM_ASFWRITERCONFIG_PARAM = 3i32;
|
||||
pub const AM_CONFIGASFWRITER_PARAM_MULTIPASS: _AM_ASFWRITERCONFIG_PARAM = 2i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct AM_WMT_EVENT_DATA {
|
||||
pub hrStatus: windows_sys::core::HRESULT,
|
||||
pub pData: *mut core::ffi::c_void,
|
||||
}
|
||||
impl Default for AM_WMT_EVENT_DATA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const CLSID_ClientNetManager: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xcd12a3ce_9c42_11d2_beed_0060082f2054);
|
||||
pub const CLSID_WMBandwidthSharing_Exclusive: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xaf6060aa_5197_11d2_b6af_00c04fd908e9);
|
||||
pub const CLSID_WMBandwidthSharing_Partial: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xaf6060ab_5197_11d2_b6af_00c04fd908e9);
|
||||
pub const CLSID_WMMUTEX_Bitrate: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xd6e22a01_35da_11d1_9034_00a0c90349be);
|
||||
pub const CLSID_WMMUTEX_Language: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xd6e22a00_35da_11d1_9034_00a0c90349be);
|
||||
pub const CLSID_WMMUTEX_Presentation: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xd6e22a02_35da_11d1_9034_00a0c90349be);
|
||||
pub const CLSID_WMMUTEX_Unknown: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xd6e22a03_35da_11d1_9034_00a0c90349be);
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DRM_COPY_OPL {
|
||||
pub wMinimumCopyLevel: u16,
|
||||
pub oplIdIncludes: DRM_OPL_OUTPUT_IDS,
|
||||
pub oplIdExcludes: DRM_OPL_OUTPUT_IDS,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DRM_MINIMUM_OUTPUT_PROTECTION_LEVELS {
|
||||
pub wCompressedDigitalVideo: u16,
|
||||
pub wUncompressedDigitalVideo: u16,
|
||||
pub wAnalogVideo: u16,
|
||||
pub wCompressedDigitalAudio: u16,
|
||||
pub wUncompressedDigitalAudio: u16,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DRM_OPL_OUTPUT_IDS {
|
||||
pub cIds: u16,
|
||||
pub rgIds: *mut windows_sys::core::GUID,
|
||||
}
|
||||
impl Default for DRM_OPL_OUTPUT_IDS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DRM_OPL_TYPES: u32 = 1u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DRM_OUTPUT_PROTECTION {
|
||||
pub guidId: windows_sys::core::GUID,
|
||||
pub bConfigData: u8,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DRM_PLAY_OPL {
|
||||
pub minOPL: DRM_MINIMUM_OUTPUT_PROTECTION_LEVELS,
|
||||
pub oplIdReserved: DRM_OPL_OUTPUT_IDS,
|
||||
pub vopi: DRM_VIDEO_OUTPUT_PROTECTION_IDS,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DRM_VAL16 {
|
||||
pub val: [u8; 16],
|
||||
}
|
||||
impl Default for DRM_VAL16 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DRM_VIDEO_OUTPUT_PROTECTION_IDS {
|
||||
pub cEntries: u16,
|
||||
pub rgVop: *mut DRM_OUTPUT_PROTECTION,
|
||||
}
|
||||
impl Default for DRM_VIDEO_OUTPUT_PROTECTION_IDS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type NETSOURCE_URLCREDPOLICY_SETTINGS = i32;
|
||||
pub const NETSOURCE_URLCREDPOLICY_SETTING_ANONYMOUSONLY: NETSOURCE_URLCREDPOLICY_SETTINGS = 2i32;
|
||||
pub const NETSOURCE_URLCREDPOLICY_SETTING_MUSTPROMPTUSER: NETSOURCE_URLCREDPOLICY_SETTINGS = 1i32;
|
||||
pub const NETSOURCE_URLCREDPOLICY_SETTING_SILENTLOGONOK: NETSOURCE_URLCREDPOLICY_SETTINGS = 0i32;
|
||||
pub type WEBSTREAM_SAMPLE_TYPE = i32;
|
||||
pub const WEBSTREAM_SAMPLE_TYPE_FILE: WEBSTREAM_SAMPLE_TYPE = 1i32;
|
||||
pub const WEBSTREAM_SAMPLE_TYPE_RENDER: WEBSTREAM_SAMPLE_TYPE = 2i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WMDRM_IMPORT_INIT_STRUCT {
|
||||
pub dwVersion: u32,
|
||||
pub cbEncryptedSessionKeyMessage: u32,
|
||||
pub pbEncryptedSessionKeyMessage: *mut u8,
|
||||
pub cbEncryptedKeyMessage: u32,
|
||||
pub pbEncryptedKeyMessage: *mut u8,
|
||||
}
|
||||
impl Default for WMDRM_IMPORT_INIT_STRUCT {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const WMDRM_IMPORT_INIT_STRUCT_DEFINED: u32 = 1u32;
|
||||
pub const WMFORMAT_MPEG2Video: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe06d80e3_db46_11cf_b4d1_00805f6cbbea);
|
||||
pub const WMFORMAT_Script: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5c8510f2_debe_4ca7_bba5_f07a104f8dff);
|
||||
pub const WMFORMAT_VideoInfo: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x05589f80_c356_11ce_bf01_00aa0055595a);
|
||||
pub const WMFORMAT_WaveFormatEx: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x05589f81_c356_11ce_bf01_00aa0055595a);
|
||||
pub const WMFORMAT_WebStream: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xda1e6b13_8359_4050_b398_388e965bf00c);
|
||||
pub const WMMEDIASUBTYPE_ACELPnet: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x00000130_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_Base: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x00000000_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_DRM: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x00000009_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_I420: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x30323449_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_IYUV: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x56555949_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_M4S2: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x3253344d_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_MP3: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x00000055_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_MP43: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x3334504d_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_MP4S: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5334504d_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_MPEG2_VIDEO: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe06d8026_db46_11cf_b4d1_00805f6cbbea);
|
||||
pub const WMMEDIASUBTYPE_MSS1: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x3153534d_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_MSS2: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x3253534d_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_P422: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x32323450_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_PCM: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x00000001_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_RGB1: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe436eb78_524f_11ce_9f53_0020af0ba770);
|
||||
pub const WMMEDIASUBTYPE_RGB24: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe436eb7d_524f_11ce_9f53_0020af0ba770);
|
||||
pub const WMMEDIASUBTYPE_RGB32: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe436eb7e_524f_11ce_9f53_0020af0ba770);
|
||||
pub const WMMEDIASUBTYPE_RGB4: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe436eb79_524f_11ce_9f53_0020af0ba770);
|
||||
pub const WMMEDIASUBTYPE_RGB555: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe436eb7c_524f_11ce_9f53_0020af0ba770);
|
||||
pub const WMMEDIASUBTYPE_RGB565: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe436eb7b_524f_11ce_9f53_0020af0ba770);
|
||||
pub const WMMEDIASUBTYPE_RGB8: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe436eb7a_524f_11ce_9f53_0020af0ba770);
|
||||
pub const WMMEDIASUBTYPE_UYVY: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x59565955_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_VIDEOIMAGE: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x1d4a45f2_e5f6_4b44_8388_f0ae5c0e0c37);
|
||||
pub const WMMEDIASUBTYPE_WMAudioV2: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x00000161_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WMAudioV7: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x00000161_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WMAudioV8: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x00000161_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WMAudioV9: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x00000162_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WMAudio_Lossless: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x00000163_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WMSP1: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x0000000a_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WMSP2: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x0000000b_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WMV1: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x31564d57_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WMV2: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x32564d57_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WMV3: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x33564d57_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WMVA: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x41564d57_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WMVP: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x50564d57_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WVC1: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x31435657_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WVP2: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x32505657_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_WebStream: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x776257d4_c627_41cb_8f81_7ac7ff1c40cc);
|
||||
pub const WMMEDIASUBTYPE_YUY2: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x32595559_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_YV12: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x32315659_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_YVU9: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x39555659_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIASUBTYPE_YVYU: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x55595659_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIATYPE_Audio: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x73647561_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIATYPE_FileTransfer: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xd9e47579_930e_4427_adfc_ad80f290e470);
|
||||
pub const WMMEDIATYPE_Image: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x34a50fd8_8aa5_4386_81fe_a0efe0488e31);
|
||||
pub const WMMEDIATYPE_Script: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x73636d64_0000_0010_8000_00aa00389b71);
|
||||
pub const WMMEDIATYPE_Text: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x9bba1ea7_5ab2_4829_ba57_0940209bcf3e);
|
||||
pub const WMMEDIATYPE_Video: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x73646976_0000_0010_8000_00aa00389b71);
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Graphics_Gdi")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WMMPEG2VIDEOINFO {
|
||||
pub hdr: WMVIDEOINFOHEADER2,
|
||||
pub dwStartTimeCode: u32,
|
||||
pub cbSequenceHeader: u32,
|
||||
pub dwProfile: u32,
|
||||
pub dwLevel: u32,
|
||||
pub dwFlags: u32,
|
||||
pub dwSequenceHeader: [u32; 1],
|
||||
}
|
||||
#[cfg(feature = "Win32_Graphics_Gdi")]
|
||||
impl Default for WMMPEG2VIDEOINFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WMSCRIPTFORMAT {
|
||||
pub scriptType: windows_sys::core::GUID,
|
||||
}
|
||||
pub const WMSCRIPTTYPE_TwoStrings: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x82f38a70_c29f_11d1_97ad_00a0c95ea850);
|
||||
pub const WMT_ACQUIRE_LICENSE: WMT_STATUS = 23i32;
|
||||
pub type WMT_ATTR_DATATYPE = i32;
|
||||
pub type WMT_ATTR_IMAGETYPE = i32;
|
||||
pub const WMT_BACKUPRESTORE_BEGIN: WMT_STATUS = 21i32;
|
||||
pub const WMT_BACKUPRESTORE_CONNECTING: WMT_STATUS = 28i32;
|
||||
pub const WMT_BACKUPRESTORE_DISCONNECTING: WMT_STATUS = 29i32;
|
||||
pub const WMT_BACKUPRESTORE_END: WMT_STATUS = 27i32;
|
||||
pub const WMT_BUFFERING_START: WMT_STATUS = 2i32;
|
||||
pub const WMT_BUFFERING_STOP: WMT_STATUS = 3i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WMT_BUFFER_SEGMENT {
|
||||
pub pBuffer: *mut core::ffi::c_void,
|
||||
pub cbOffset: u32,
|
||||
pub cbLength: u32,
|
||||
}
|
||||
impl Default for WMT_BUFFER_SEGMENT {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const WMT_CLEANPOINT_ONLY: WMT_STREAM_SELECTION = 1i32;
|
||||
pub const WMT_CLIENT_CONNECT: WMT_STATUS = 32i32;
|
||||
pub const WMT_CLIENT_CONNECT_EX: WMT_STATUS = 37i32;
|
||||
pub const WMT_CLIENT_DISCONNECT: WMT_STATUS = 33i32;
|
||||
pub const WMT_CLIENT_DISCONNECT_EX: WMT_STATUS = 38i32;
|
||||
pub const WMT_CLIENT_PROPERTIES: WMT_STATUS = 42i32;
|
||||
pub const WMT_CLOSED: WMT_STATUS = 13i32;
|
||||
pub const WMT_CODECINFO_AUDIO: WMT_CODEC_INFO_TYPE = 0i32;
|
||||
pub const WMT_CODECINFO_UNKNOWN: WMT_CODEC_INFO_TYPE = -1i32;
|
||||
pub const WMT_CODECINFO_VIDEO: WMT_CODEC_INFO_TYPE = 1i32;
|
||||
pub type WMT_CODEC_INFO_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WMT_COLORSPACEINFO_EXTENSION_DATA {
|
||||
pub ucColorPrimaries: u8,
|
||||
pub ucColorTransferChar: u8,
|
||||
pub ucColorMatrixCoef: u8,
|
||||
}
|
||||
pub const WMT_CONNECTING: WMT_STATUS = 8i32;
|
||||
pub const WMT_CONTENT_ENABLER: WMT_STATUS = 51i32;
|
||||
pub const WMT_CREDENTIAL_CLEAR_TEXT: WMT_CREDENTIAL_FLAGS = 4i32;
|
||||
pub const WMT_CREDENTIAL_DONT_CACHE: WMT_CREDENTIAL_FLAGS = 2i32;
|
||||
pub const WMT_CREDENTIAL_ENCRYPT: WMT_CREDENTIAL_FLAGS = 16i32;
|
||||
pub type WMT_CREDENTIAL_FLAGS = i32;
|
||||
pub const WMT_CREDENTIAL_PROXY: WMT_CREDENTIAL_FLAGS = 8i32;
|
||||
pub const WMT_CREDENTIAL_SAVE: WMT_CREDENTIAL_FLAGS = 1i32;
|
||||
pub const WMT_DMOCATEGORY_AUDIO_WATERMARK: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x65221c5a_fa75_4b39_b50c_06c336b6a3ef);
|
||||
pub const WMT_DMOCATEGORY_VIDEO_WATERMARK: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x187cc922_8efc_4404_9daf_63f4830df1bc);
|
||||
pub const WMT_DRMLA_TAMPERED: WMT_DRMLA_TRUST = 2i32;
|
||||
pub type WMT_DRMLA_TRUST = i32;
|
||||
pub const WMT_DRMLA_TRUSTED: WMT_DRMLA_TRUST = 1i32;
|
||||
pub const WMT_DRMLA_UNTRUSTED: WMT_DRMLA_TRUST = 0i32;
|
||||
pub const WMT_END_OF_FILE: WMT_STATUS = 4i32;
|
||||
pub const WMT_END_OF_SEGMENT: WMT_STATUS = 5i32;
|
||||
pub const WMT_END_OF_STREAMING: WMT_STATUS = 6i32;
|
||||
pub const WMT_EOF: WMT_STATUS = 4i32;
|
||||
pub const WMT_ERROR: WMT_STATUS = 0i32;
|
||||
pub const WMT_ERROR_WITHURL: WMT_STATUS = 30i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WMT_FILESINK_DATA_UNIT {
|
||||
pub packetHeaderBuffer: WMT_BUFFER_SEGMENT,
|
||||
pub cPayloads: u32,
|
||||
pub pPayloadHeaderBuffers: *mut WMT_BUFFER_SEGMENT,
|
||||
pub cPayloadDataFragments: u32,
|
||||
pub pPayloadDataFragments: *mut WMT_PAYLOAD_FRAGMENT,
|
||||
}
|
||||
impl Default for WMT_FILESINK_DATA_UNIT {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type WMT_FILESINK_MODE = i32;
|
||||
pub const WMT_FM_FILESINK_DATA_UNITS: WMT_FILESINK_MODE = 2i32;
|
||||
pub const WMT_FM_FILESINK_UNBUFFERED: WMT_FILESINK_MODE = 4i32;
|
||||
pub const WMT_FM_SINGLE_BUFFERS: WMT_FILESINK_MODE = 1i32;
|
||||
pub const WMT_IMAGETYPE_BITMAP: WMT_ATTR_IMAGETYPE = 1i32;
|
||||
pub const WMT_IMAGETYPE_GIF: WMT_ATTR_IMAGETYPE = 3i32;
|
||||
pub const WMT_IMAGETYPE_JPEG: WMT_ATTR_IMAGETYPE = 2i32;
|
||||
pub type WMT_IMAGE_TYPE = i32;
|
||||
pub type WMT_INDEXER_TYPE = i32;
|
||||
pub const WMT_INDEX_PROGRESS: WMT_STATUS = 16i32;
|
||||
pub type WMT_INDEX_TYPE = i32;
|
||||
pub const WMT_INDIVIDUALIZE: WMT_STATUS = 24i32;
|
||||
pub const WMT_INIT_PLAYLIST_BURN: WMT_STATUS = 44i32;
|
||||
pub const WMT_IT_BITMAP: WMT_IMAGE_TYPE = 1i32;
|
||||
pub const WMT_IT_FRAME_NUMBERS: WMT_INDEXER_TYPE = 1i32;
|
||||
pub const WMT_IT_GIF: WMT_IMAGE_TYPE = 3i32;
|
||||
pub const WMT_IT_JPEG: WMT_IMAGE_TYPE = 2i32;
|
||||
pub const WMT_IT_NEAREST_CLEAN_POINT: WMT_INDEX_TYPE = 3i32;
|
||||
pub const WMT_IT_NEAREST_DATA_UNIT: WMT_INDEX_TYPE = 1i32;
|
||||
pub const WMT_IT_NEAREST_OBJECT: WMT_INDEX_TYPE = 2i32;
|
||||
pub const WMT_IT_NONE: WMT_IMAGE_TYPE = 0i32;
|
||||
pub const WMT_IT_PRESENTATION_TIME: WMT_INDEXER_TYPE = 0i32;
|
||||
pub const WMT_IT_TIMECODE: WMT_INDEXER_TYPE = 2i32;
|
||||
pub const WMT_LICENSEURL_SIGNATURE_STATE: WMT_STATUS = 43i32;
|
||||
pub const WMT_LOCATING: WMT_STATUS = 7i32;
|
||||
pub const WMT_MISSING_CODEC: WMT_STATUS = 10i32;
|
||||
pub const WMT_MS_CLASS_MIXED: WMT_MUSICSPEECH_CLASS_MODE = 2i32;
|
||||
pub const WMT_MS_CLASS_MUSIC: WMT_MUSICSPEECH_CLASS_MODE = 0i32;
|
||||
pub const WMT_MS_CLASS_SPEECH: WMT_MUSICSPEECH_CLASS_MODE = 1i32;
|
||||
pub type WMT_MUSICSPEECH_CLASS_MODE = i32;
|
||||
pub const WMT_NATIVE_OUTPUT_PROPS_CHANGED: WMT_STATUS = 34i32;
|
||||
pub const WMT_NEEDS_INDIVIDUALIZATION: WMT_STATUS = 25i32;
|
||||
pub type WMT_NET_PROTOCOL = i32;
|
||||
pub const WMT_NEW_METADATA: WMT_STATUS = 20i32;
|
||||
pub const WMT_NEW_SOURCEFLAGS: WMT_STATUS = 19i32;
|
||||
pub const WMT_NO_RIGHTS: WMT_STATUS = 9i32;
|
||||
pub const WMT_NO_RIGHTS_EX: WMT_STATUS = 26i32;
|
||||
pub const WMT_OFF: WMT_STREAM_SELECTION = 0i32;
|
||||
pub type WMT_OFFSET_FORMAT = i32;
|
||||
pub const WMT_OFFSET_FORMAT_100NS: WMT_OFFSET_FORMAT = 0i32;
|
||||
pub const WMT_OFFSET_FORMAT_100NS_APPROXIMATE: WMT_OFFSET_FORMAT = 4i32;
|
||||
pub const WMT_OFFSET_FORMAT_FRAME_NUMBERS: WMT_OFFSET_FORMAT = 1i32;
|
||||
pub const WMT_OFFSET_FORMAT_PLAYLIST_OFFSET: WMT_OFFSET_FORMAT = 2i32;
|
||||
pub const WMT_OFFSET_FORMAT_TIMECODE: WMT_OFFSET_FORMAT = 3i32;
|
||||
pub const WMT_ON: WMT_STREAM_SELECTION = 2i32;
|
||||
pub const WMT_OPENED: WMT_STATUS = 1i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WMT_PAYLOAD_FRAGMENT {
|
||||
pub dwPayloadIndex: u32,
|
||||
pub segmentData: WMT_BUFFER_SEGMENT,
|
||||
}
|
||||
pub type WMT_PLAY_MODE = i32;
|
||||
pub const WMT_PLAY_MODE_AUTOSELECT: WMT_PLAY_MODE = 0i32;
|
||||
pub const WMT_PLAY_MODE_DOWNLOAD: WMT_PLAY_MODE = 2i32;
|
||||
pub const WMT_PLAY_MODE_LOCAL: WMT_PLAY_MODE = 1i32;
|
||||
pub const WMT_PLAY_MODE_STREAMING: WMT_PLAY_MODE = 3i32;
|
||||
pub const WMT_PREROLL_COMPLETE: WMT_STATUS = 41i32;
|
||||
pub const WMT_PREROLL_READY: WMT_STATUS = 40i32;
|
||||
pub const WMT_PROTOCOL_HTTP: WMT_NET_PROTOCOL = 0i32;
|
||||
pub const WMT_PROXIMITY_COMPLETED: WMT_STATUS = 50i32;
|
||||
pub const WMT_PROXIMITY_RESULT: WMT_STATUS = 49i32;
|
||||
pub type WMT_PROXY_SETTINGS = i32;
|
||||
pub const WMT_PROXY_SETTING_AUTO: WMT_PROXY_SETTINGS = 2i32;
|
||||
pub const WMT_PROXY_SETTING_BROWSER: WMT_PROXY_SETTINGS = 3i32;
|
||||
pub const WMT_PROXY_SETTING_MANUAL: WMT_PROXY_SETTINGS = 1i32;
|
||||
pub const WMT_PROXY_SETTING_MAX: WMT_PROXY_SETTINGS = 4i32;
|
||||
pub const WMT_PROXY_SETTING_NONE: WMT_PROXY_SETTINGS = 0i32;
|
||||
pub const WMT_RECONNECT_END: WMT_STATUS = 36i32;
|
||||
pub const WMT_RECONNECT_START: WMT_STATUS = 35i32;
|
||||
pub const WMT_RESTRICTED_LICENSE: WMT_STATUS = 31i32;
|
||||
pub type WMT_RIGHTS = i32;
|
||||
pub const WMT_RIGHT_COLLABORATIVE_PLAY: WMT_RIGHTS = 256i32;
|
||||
pub const WMT_RIGHT_COPY: WMT_RIGHTS = 128i32;
|
||||
pub const WMT_RIGHT_COPY_TO_CD: WMT_RIGHTS = 8i32;
|
||||
pub const WMT_RIGHT_COPY_TO_NON_SDMI_DEVICE: WMT_RIGHTS = 2i32;
|
||||
pub const WMT_RIGHT_COPY_TO_SDMI_DEVICE: WMT_RIGHTS = 16i32;
|
||||
pub const WMT_RIGHT_ONE_TIME: WMT_RIGHTS = 32i32;
|
||||
pub const WMT_RIGHT_PLAYBACK: WMT_RIGHTS = 1i32;
|
||||
pub const WMT_RIGHT_SAVE_STREAM_PROTECTED: WMT_RIGHTS = 64i32;
|
||||
pub const WMT_RIGHT_SDMI_NOMORECOPIES: WMT_RIGHTS = 131072i32;
|
||||
pub const WMT_RIGHT_SDMI_TRIGGER: WMT_RIGHTS = 65536i32;
|
||||
pub const WMT_SAVEAS_START: WMT_STATUS = 17i32;
|
||||
pub const WMT_SAVEAS_STOP: WMT_STATUS = 18i32;
|
||||
pub const WMT_SET_FEC_SPAN: WMT_STATUS = 39i32;
|
||||
pub const WMT_SOURCE_SWITCH: WMT_STATUS = 22i32;
|
||||
pub const WMT_STARTED: WMT_STATUS = 11i32;
|
||||
pub type WMT_STATUS = i32;
|
||||
pub const WMT_STOPPED: WMT_STATUS = 12i32;
|
||||
pub type WMT_STORAGE_FORMAT = i32;
|
||||
pub type WMT_STREAM_SELECTION = i32;
|
||||
pub const WMT_STRIDING: WMT_STATUS = 14i32;
|
||||
pub const WMT_Storage_Format_MP3: WMT_STORAGE_FORMAT = 0i32;
|
||||
pub const WMT_Storage_Format_V1: WMT_STORAGE_FORMAT = 1i32;
|
||||
#[repr(C, packed(2))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WMT_TIMECODE_EXTENSION_DATA {
|
||||
pub wRange: u16,
|
||||
pub dwTimecode: u32,
|
||||
pub dwUserbits: u32,
|
||||
pub dwAmFlags: u32,
|
||||
}
|
||||
pub type WMT_TIMECODE_FRAMERATE = i32;
|
||||
pub const WMT_TIMECODE_FRAMERATE_24: WMT_TIMECODE_FRAMERATE = 3i32;
|
||||
pub const WMT_TIMECODE_FRAMERATE_25: WMT_TIMECODE_FRAMERATE = 2i32;
|
||||
pub const WMT_TIMECODE_FRAMERATE_30: WMT_TIMECODE_FRAMERATE = 0i32;
|
||||
pub const WMT_TIMECODE_FRAMERATE_30DROP: WMT_TIMECODE_FRAMERATE = 1i32;
|
||||
pub const WMT_TIMER: WMT_STATUS = 15i32;
|
||||
pub const WMT_TRANSCRYPTOR_CLOSED: WMT_STATUS = 48i32;
|
||||
pub const WMT_TRANSCRYPTOR_INIT: WMT_STATUS = 45i32;
|
||||
pub const WMT_TRANSCRYPTOR_READ: WMT_STATUS = 47i32;
|
||||
pub const WMT_TRANSCRYPTOR_SEEKED: WMT_STATUS = 46i32;
|
||||
pub type WMT_TRANSPORT_TYPE = i32;
|
||||
pub const WMT_TYPE_BINARY: WMT_ATTR_DATATYPE = 2i32;
|
||||
pub const WMT_TYPE_BOOL: WMT_ATTR_DATATYPE = 3i32;
|
||||
pub const WMT_TYPE_DWORD: WMT_ATTR_DATATYPE = 0i32;
|
||||
pub const WMT_TYPE_GUID: WMT_ATTR_DATATYPE = 6i32;
|
||||
pub const WMT_TYPE_QWORD: WMT_ATTR_DATATYPE = 4i32;
|
||||
pub const WMT_TYPE_STRING: WMT_ATTR_DATATYPE = 1i32;
|
||||
pub const WMT_TYPE_WORD: WMT_ATTR_DATATYPE = 5i32;
|
||||
pub const WMT_Transport_Type_Reliable: WMT_TRANSPORT_TYPE = 1i32;
|
||||
pub const WMT_Transport_Type_Unreliable: WMT_TRANSPORT_TYPE = 0i32;
|
||||
pub type WMT_VERSION = i32;
|
||||
pub const WMT_VER_4_0: WMT_VERSION = 262144i32;
|
||||
pub const WMT_VER_7_0: WMT_VERSION = 458752i32;
|
||||
pub const WMT_VER_8_0: WMT_VERSION = 524288i32;
|
||||
pub const WMT_VER_9_0: WMT_VERSION = 589824i32;
|
||||
pub const WMT_VIDEOIMAGE_INTEGER_DENOMINATOR: i32 = 65536i32;
|
||||
pub const WMT_VIDEOIMAGE_MAGIC_NUMBER: u32 = 491406834u32;
|
||||
pub const WMT_VIDEOIMAGE_MAGIC_NUMBER_2: u32 = 491406835u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WMT_VIDEOIMAGE_SAMPLE {
|
||||
pub dwMagic: u32,
|
||||
pub cbStruct: u32,
|
||||
pub dwControlFlags: u32,
|
||||
pub dwInputFlagsCur: u32,
|
||||
pub lCurMotionXtoX: i32,
|
||||
pub lCurMotionYtoX: i32,
|
||||
pub lCurMotionXoffset: i32,
|
||||
pub lCurMotionXtoY: i32,
|
||||
pub lCurMotionYtoY: i32,
|
||||
pub lCurMotionYoffset: i32,
|
||||
pub lCurBlendCoef1: i32,
|
||||
pub lCurBlendCoef2: i32,
|
||||
pub dwInputFlagsPrev: u32,
|
||||
pub lPrevMotionXtoX: i32,
|
||||
pub lPrevMotionYtoX: i32,
|
||||
pub lPrevMotionXoffset: i32,
|
||||
pub lPrevMotionXtoY: i32,
|
||||
pub lPrevMotionYtoY: i32,
|
||||
pub lPrevMotionYoffset: i32,
|
||||
pub lPrevBlendCoef1: i32,
|
||||
pub lPrevBlendCoef2: i32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WMT_VIDEOIMAGE_SAMPLE2 {
|
||||
pub dwMagic: u32,
|
||||
pub dwStructSize: u32,
|
||||
pub dwControlFlags: u32,
|
||||
pub dwViewportWidth: u32,
|
||||
pub dwViewportHeight: u32,
|
||||
pub dwCurrImageWidth: u32,
|
||||
pub dwCurrImageHeight: u32,
|
||||
pub fCurrRegionX0: f32,
|
||||
pub fCurrRegionY0: f32,
|
||||
pub fCurrRegionWidth: f32,
|
||||
pub fCurrRegionHeight: f32,
|
||||
pub fCurrBlendCoef: f32,
|
||||
pub dwPrevImageWidth: u32,
|
||||
pub dwPrevImageHeight: u32,
|
||||
pub fPrevRegionX0: f32,
|
||||
pub fPrevRegionY0: f32,
|
||||
pub fPrevRegionWidth: f32,
|
||||
pub fPrevRegionHeight: f32,
|
||||
pub fPrevBlendCoef: f32,
|
||||
pub dwEffectType: u32,
|
||||
pub dwNumEffectParas: u32,
|
||||
pub fEffectPara0: f32,
|
||||
pub fEffectPara1: f32,
|
||||
pub fEffectPara2: f32,
|
||||
pub fEffectPara3: f32,
|
||||
pub fEffectPara4: f32,
|
||||
pub bKeepPrevImage: windows_sys::core::BOOL,
|
||||
}
|
||||
pub const WMT_VIDEOIMAGE_SAMPLE_ADV_BLENDING: u32 = 8u32;
|
||||
pub const WMT_VIDEOIMAGE_SAMPLE_BLENDING: u32 = 4u32;
|
||||
pub const WMT_VIDEOIMAGE_SAMPLE_INPUT_FRAME: u32 = 1u32;
|
||||
pub const WMT_VIDEOIMAGE_SAMPLE_MOTION: u32 = 1u32;
|
||||
pub const WMT_VIDEOIMAGE_SAMPLE_OUTPUT_FRAME: u32 = 2u32;
|
||||
pub const WMT_VIDEOIMAGE_SAMPLE_ROTATION: u32 = 2u32;
|
||||
pub const WMT_VIDEOIMAGE_SAMPLE_USES_CURRENT_INPUT_FRAME: u32 = 4u32;
|
||||
pub const WMT_VIDEOIMAGE_SAMPLE_USES_PREVIOUS_INPUT_FRAME: u32 = 8u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_BOW_TIE: u32 = 11u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_CIRCLE: u32 = 12u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_CROSS_FADE: u32 = 13u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_DIAGONAL: u32 = 14u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_DIAMOND: u32 = 15u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_FADE_TO_COLOR: u32 = 16u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_FILLED_V: u32 = 17u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_FLIP: u32 = 18u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_INSET: u32 = 19u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_IRIS: u32 = 20u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_PAGE_ROLL: u32 = 21u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_RECTANGLE: u32 = 23u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_REVEAL: u32 = 24u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_SLIDE: u32 = 27u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_SPLIT: u32 = 29u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_STAR: u32 = 30u32;
|
||||
pub const WMT_VIDEOIMAGE_TRANSITION_WHEEL: u32 = 31u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WMT_WATERMARK_ENTRY {
|
||||
pub wmetType: WMT_WATERMARK_ENTRY_TYPE,
|
||||
pub clsid: windows_sys::core::GUID,
|
||||
pub cbDisplayName: u32,
|
||||
pub pwszDisplayName: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for WMT_WATERMARK_ENTRY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type WMT_WATERMARK_ENTRY_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WMT_WEBSTREAM_FORMAT {
|
||||
pub cbSize: u16,
|
||||
pub cbSampleHeaderFixedData: u16,
|
||||
pub wVersion: u16,
|
||||
pub wReserved: u16,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WMT_WEBSTREAM_SAMPLE_HEADER {
|
||||
pub cbLength: u16,
|
||||
pub wPart: u16,
|
||||
pub cTotalParts: u16,
|
||||
pub wSampleType: u16,
|
||||
pub wszURL: [u16; 1],
|
||||
}
|
||||
impl Default for WMT_WEBSTREAM_SAMPLE_HEADER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const WMT_WMETYPE_AUDIO: WMT_WATERMARK_ENTRY_TYPE = 1i32;
|
||||
pub const WMT_WMETYPE_VIDEO: WMT_WATERMARK_ENTRY_TYPE = 2i32;
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Graphics_Gdi")]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WMVIDEOINFOHEADER {
|
||||
pub rcSource: super::super::Foundation::RECT,
|
||||
pub rcTarget: super::super::Foundation::RECT,
|
||||
pub dwBitRate: u32,
|
||||
pub dwBitErrorRate: u32,
|
||||
pub AvgTimePerFrame: i64,
|
||||
pub bmiHeader: super::super::Graphics::Gdi::BITMAPINFOHEADER,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Graphics_Gdi")]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WMVIDEOINFOHEADER2 {
|
||||
pub rcSource: super::super::Foundation::RECT,
|
||||
pub rcTarget: super::super::Foundation::RECT,
|
||||
pub dwBitRate: u32,
|
||||
pub dwBitErrorRate: u32,
|
||||
pub AvgTimePerFrame: i64,
|
||||
pub dwInterlaceFlags: u32,
|
||||
pub dwCopyProtectFlags: u32,
|
||||
pub dwPictAspectRatioX: u32,
|
||||
pub dwPictAspectRatioY: u32,
|
||||
pub dwReserved1: u32,
|
||||
pub dwReserved2: u32,
|
||||
pub bmiHeader: super::super::Graphics::Gdi::BITMAPINFOHEADER,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WM_ADDRESS_ACCESSENTRY {
|
||||
pub dwIPAddress: u32,
|
||||
pub dwMask: u32,
|
||||
}
|
||||
pub type WM_AETYPE = i32;
|
||||
pub const WM_AETYPE_EXCLUDE: WM_AETYPE = 101i32;
|
||||
pub const WM_AETYPE_INCLUDE: WM_AETYPE = 105i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WM_CLIENT_PROPERTIES {
|
||||
pub dwIPAddress: u32,
|
||||
pub dwPort: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WM_CLIENT_PROPERTIES_EX {
|
||||
pub cbSize: u32,
|
||||
pub pwszIPAddress: windows_sys::core::PCWSTR,
|
||||
pub pwszPort: windows_sys::core::PCWSTR,
|
||||
pub pwszDNSName: windows_sys::core::PCWSTR,
|
||||
}
|
||||
impl Default for WM_CLIENT_PROPERTIES_EX {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const WM_CL_INTERLACED420: u32 = 0u32;
|
||||
pub const WM_CL_PROGRESSIVE420: u32 = 1u32;
|
||||
pub const WM_CT_BOTTOM_FIELD_FIRST: u32 = 32u32;
|
||||
pub const WM_CT_INTERLACED: u32 = 128u32;
|
||||
pub const WM_CT_REPEAT_FIRST_FIELD: u32 = 16u32;
|
||||
pub const WM_CT_TOP_FIELD_FIRST: u32 = 64u32;
|
||||
pub const WM_DM_DEINTERLACE_HALFSIZE: WM_DM_INTERLACED_TYPE = 2i32;
|
||||
pub const WM_DM_DEINTERLACE_HALFSIZEDOUBLERATE: WM_DM_INTERLACED_TYPE = 3i32;
|
||||
pub const WM_DM_DEINTERLACE_INVERSETELECINE: WM_DM_INTERLACED_TYPE = 4i32;
|
||||
pub const WM_DM_DEINTERLACE_NORMAL: WM_DM_INTERLACED_TYPE = 1i32;
|
||||
pub const WM_DM_DEINTERLACE_VERTICALHALFSIZEDOUBLERATE: WM_DM_INTERLACED_TYPE = 5i32;
|
||||
pub type WM_DM_INTERLACED_TYPE = i32;
|
||||
pub const WM_DM_IT_DISABLE_COHERENT_MODE: WM_DM_IT_FIRST_FRAME_COHERENCY = 0i32;
|
||||
pub type WM_DM_IT_FIRST_FRAME_COHERENCY = i32;
|
||||
pub const WM_DM_IT_FIRST_FRAME_IN_CLIP_IS_AA_BOTTOM: WM_DM_IT_FIRST_FRAME_COHERENCY = 6i32;
|
||||
pub const WM_DM_IT_FIRST_FRAME_IN_CLIP_IS_AA_TOP: WM_DM_IT_FIRST_FRAME_COHERENCY = 1i32;
|
||||
pub const WM_DM_IT_FIRST_FRAME_IN_CLIP_IS_BB_BOTTOM: WM_DM_IT_FIRST_FRAME_COHERENCY = 7i32;
|
||||
pub const WM_DM_IT_FIRST_FRAME_IN_CLIP_IS_BB_TOP: WM_DM_IT_FIRST_FRAME_COHERENCY = 2i32;
|
||||
pub const WM_DM_IT_FIRST_FRAME_IN_CLIP_IS_BC_BOTTOM: WM_DM_IT_FIRST_FRAME_COHERENCY = 8i32;
|
||||
pub const WM_DM_IT_FIRST_FRAME_IN_CLIP_IS_BC_TOP: WM_DM_IT_FIRST_FRAME_COHERENCY = 3i32;
|
||||
pub const WM_DM_IT_FIRST_FRAME_IN_CLIP_IS_CD_BOTTOM: WM_DM_IT_FIRST_FRAME_COHERENCY = 9i32;
|
||||
pub const WM_DM_IT_FIRST_FRAME_IN_CLIP_IS_CD_TOP: WM_DM_IT_FIRST_FRAME_COHERENCY = 4i32;
|
||||
pub const WM_DM_IT_FIRST_FRAME_IN_CLIP_IS_DD_BOTTOM: WM_DM_IT_FIRST_FRAME_COHERENCY = 10i32;
|
||||
pub const WM_DM_IT_FIRST_FRAME_IN_CLIP_IS_DD_TOP: WM_DM_IT_FIRST_FRAME_COHERENCY = 5i32;
|
||||
pub const WM_DM_NOTINTERLACED: WM_DM_INTERLACED_TYPE = 0i32;
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WM_LEAKY_BUCKET_PAIR {
|
||||
pub dwBitrate: u32,
|
||||
pub msBufferWindow: u32,
|
||||
}
|
||||
pub const WM_MAX_STREAMS: u32 = 63u32;
|
||||
pub const WM_MAX_VIDEO_STREAMS: u32 = 63u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WM_MEDIA_TYPE {
|
||||
pub majortype: windows_sys::core::GUID,
|
||||
pub subtype: windows_sys::core::GUID,
|
||||
pub bFixedSizeSamples: windows_sys::core::BOOL,
|
||||
pub bTemporalCompression: windows_sys::core::BOOL,
|
||||
pub lSampleSize: u32,
|
||||
pub formattype: windows_sys::core::GUID,
|
||||
pub pUnk: *mut core::ffi::c_void,
|
||||
pub cbFormat: u32,
|
||||
pub pbFormat: *mut u8,
|
||||
}
|
||||
impl Default for WM_MEDIA_TYPE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WM_PICTURE {
|
||||
pub pwszMIMEType: windows_sys::core::PWSTR,
|
||||
pub bPictureType: u8,
|
||||
pub pwszDescription: windows_sys::core::PWSTR,
|
||||
pub dwDataLen: u32,
|
||||
pub pbData: *mut u8,
|
||||
}
|
||||
impl Default for WM_PICTURE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const WM_PLAYBACK_DRC_HIGH: WM_PLAYBACK_DRC_LEVEL = 0i32;
|
||||
pub type WM_PLAYBACK_DRC_LEVEL = i32;
|
||||
pub const WM_PLAYBACK_DRC_LOW: WM_PLAYBACK_DRC_LEVEL = 2i32;
|
||||
pub const WM_PLAYBACK_DRC_MEDIUM: WM_PLAYBACK_DRC_LEVEL = 1i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WM_PORT_NUMBER_RANGE {
|
||||
pub wPortBegin: u16,
|
||||
pub wPortEnd: u16,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WM_READER_CLIENTINFO {
|
||||
pub cbSize: u32,
|
||||
pub wszLang: windows_sys::core::PWSTR,
|
||||
pub wszBrowserUserAgent: windows_sys::core::PWSTR,
|
||||
pub wszBrowserWebPage: windows_sys::core::PWSTR,
|
||||
pub qwReserved: u64,
|
||||
pub pReserved: *mut super::super::Foundation::LPARAM,
|
||||
pub wszHostExe: windows_sys::core::PWSTR,
|
||||
pub qwHostVersion: u64,
|
||||
pub wszPlayerUserAgent: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for WM_READER_CLIENTINFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WM_READER_STATISTICS {
|
||||
pub cbSize: u32,
|
||||
pub dwBandwidth: u32,
|
||||
pub cPacketsReceived: u32,
|
||||
pub cPacketsRecovered: u32,
|
||||
pub cPacketsLost: u32,
|
||||
pub wQuality: u16,
|
||||
}
|
||||
pub const WM_SFEX_DATALOSS: WM_SFEX_TYPE = 4i32;
|
||||
pub const WM_SFEX_NOTASYNCPOINT: WM_SFEX_TYPE = 2i32;
|
||||
pub type WM_SFEX_TYPE = i32;
|
||||
pub const WM_SF_CLEANPOINT: WM_SF_TYPE = 1i32;
|
||||
pub const WM_SF_DATALOSS: WM_SF_TYPE = 4i32;
|
||||
pub const WM_SF_DISCONTINUITY: WM_SF_TYPE = 2i32;
|
||||
pub type WM_SF_TYPE = i32;
|
||||
#[repr(C, packed(2))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WM_STREAM_PRIORITY_RECORD {
|
||||
pub wStreamNumber: u16,
|
||||
pub fMandatory: windows_sys::core::BOOL,
|
||||
}
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WM_STREAM_TYPE_INFO {
|
||||
pub guidMajorType: windows_sys::core::GUID,
|
||||
pub cbFormat: u32,
|
||||
}
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WM_SYNCHRONISED_LYRICS {
|
||||
pub bTimeStampFormat: u8,
|
||||
pub bContentType: u8,
|
||||
pub pwszContentDescriptor: windows_sys::core::PWSTR,
|
||||
pub dwLyricsLen: u32,
|
||||
pub pbLyrics: *mut u8,
|
||||
}
|
||||
impl Default for WM_SYNCHRONISED_LYRICS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const WM_SampleExtensionGUID_ChromaLocation: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4c5acca0_9276_4b2c_9e4c_a0edefdd217e);
|
||||
pub const WM_SampleExtensionGUID_ColorSpaceInfo: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xf79ada56_30eb_4f2b_9f7a_f24b139a1157);
|
||||
pub const WM_SampleExtensionGUID_ContentType: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xd590dc20_07bc_436c_9cf7_f3bbfbf1a4dc);
|
||||
pub const WM_SampleExtensionGUID_FileName: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe165ec0e_19ed_45d7_b4a7_25cbd1e28e9b);
|
||||
pub const WM_SampleExtensionGUID_OutputCleanPoint: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xf72a3c6f_6eb4_4ebc_b192_09ad9759e828);
|
||||
pub const WM_SampleExtensionGUID_PixelAspectRatio: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x1b1ee554_f9ea_4bc8_821a_376b74e4c4b8);
|
||||
pub const WM_SampleExtensionGUID_SampleDuration: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xc6bd9450_867f_4907_83a3_c77921b733ad);
|
||||
pub const WM_SampleExtensionGUID_SampleProtectionSalt: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5403deee_b9ee_438f_aa83_3804997e569d);
|
||||
pub const WM_SampleExtensionGUID_Timecode: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x399595ec_8667_4e2d_8fdb_98814ce76c1e);
|
||||
pub const WM_SampleExtensionGUID_UserDataInfo: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x732bb4fa_78be_4549_99bd_02db1a55b7a8);
|
||||
pub const WM_SampleExtension_ChromaLocation_Size: u32 = 1u32;
|
||||
pub const WM_SampleExtension_ColorSpaceInfo_Size: u32 = 3u32;
|
||||
pub const WM_SampleExtension_ContentType_Size: u32 = 1u32;
|
||||
pub const WM_SampleExtension_PixelAspectRatio_Size: u32 = 2u32;
|
||||
pub const WM_SampleExtension_SampleDuration_Size: u32 = 2u32;
|
||||
pub const WM_SampleExtension_Timecode_Size: u32 = 14u32;
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WM_USER_TEXT {
|
||||
pub pwszDescription: windows_sys::core::PWSTR,
|
||||
pub pwszText: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for WM_USER_TEXT {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WM_USER_WEB_URL {
|
||||
pub pwszDescription: windows_sys::core::PWSTR,
|
||||
pub pwszURL: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for WM_USER_WEB_URL {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WM_WRITER_STATISTICS {
|
||||
pub qwSampleCount: u64,
|
||||
pub qwByteCount: u64,
|
||||
pub qwDroppedSampleCount: u64,
|
||||
pub qwDroppedByteCount: u64,
|
||||
pub dwCurrentBitrate: u32,
|
||||
pub dwAverageBitrate: u32,
|
||||
pub dwExpectedBitrate: u32,
|
||||
pub dwCurrentSampleRate: u32,
|
||||
pub dwAverageSampleRate: u32,
|
||||
pub dwExpectedSampleRate: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WM_WRITER_STATISTICS_EX {
|
||||
pub dwBitratePlusOverhead: u32,
|
||||
pub dwCurrentSampleDropRateInQueue: u32,
|
||||
pub dwCurrentSampleDropRateInCodec: u32,
|
||||
pub dwCurrentSampleDropRateInMultiplexer: u32,
|
||||
pub dwTotalSampleDropsInQueue: u32,
|
||||
pub dwTotalSampleDropsInCodec: u32,
|
||||
pub dwTotalSampleDropsInMultiplexer: u32,
|
||||
}
|
||||
pub type _AM_ASFWRITERCONFIG_PARAM = i32;
|
||||
pub const g_dwWMContentAttributes: u32 = 5u32;
|
||||
pub const g_dwWMNSCAttributes: u32 = 5u32;
|
||||
pub const g_dwWMSpecialAttributes: u32 = 20u32;
|
||||
pub const g_wszASFLeakyBucketPairs: windows_sys::core::PCWSTR = windows_sys::core::w!("ASFLeakyBucketPairs");
|
||||
pub const g_wszAllowInterlacedOutput: windows_sys::core::PCWSTR = windows_sys::core::w!("AllowInterlacedOutput");
|
||||
pub const g_wszAverageLevel: windows_sys::core::PCWSTR = windows_sys::core::w!("AverageLevel");
|
||||
pub const g_wszBufferAverage: windows_sys::core::PCWSTR = windows_sys::core::w!("Buffer Average");
|
||||
pub const g_wszComplexity: windows_sys::core::PCWSTR = windows_sys::core::w!("_COMPLEXITYEX");
|
||||
pub const g_wszComplexityLive: windows_sys::core::PCWSTR = windows_sys::core::w!("_COMPLEXITYEXLIVE");
|
||||
pub const g_wszComplexityMax: windows_sys::core::PCWSTR = windows_sys::core::w!("_COMPLEXITYEXMAX");
|
||||
pub const g_wszComplexityOffline: windows_sys::core::PCWSTR = windows_sys::core::w!("_COMPLEXITYEXOFFLINE");
|
||||
pub const g_wszDecoderComplexityRequested: windows_sys::core::PCWSTR = windows_sys::core::w!("_DECODERCOMPLEXITYPROFILE");
|
||||
pub const g_wszDedicatedDeliveryThread: windows_sys::core::PCWSTR = windows_sys::core::w!("DedicatedDeliveryThread");
|
||||
pub const g_wszDeinterlaceMode: windows_sys::core::PCWSTR = windows_sys::core::w!("DeinterlaceMode");
|
||||
pub const g_wszDeliverOnReceive: windows_sys::core::PCWSTR = windows_sys::core::w!("DeliverOnReceive");
|
||||
pub const g_wszDeviceConformanceTemplate: windows_sys::core::PCWSTR = windows_sys::core::w!("DeviceConformanceTemplate");
|
||||
pub const g_wszDynamicRangeControl: windows_sys::core::PCWSTR = windows_sys::core::w!("DynamicRangeControl");
|
||||
pub const g_wszEDL: windows_sys::core::PCWSTR = windows_sys::core::w!("_EDL");
|
||||
pub const g_wszEarlyDataDelivery: windows_sys::core::PCWSTR = windows_sys::core::w!("EarlyDataDelivery");
|
||||
pub const g_wszEnableDiscreteOutput: windows_sys::core::PCWSTR = windows_sys::core::w!("EnableDiscreteOutput");
|
||||
pub const g_wszEnableFrameInterpolation: windows_sys::core::PCWSTR = windows_sys::core::w!("EnableFrameInterpolation");
|
||||
pub const g_wszEnableWMAProSPDIFOutput: windows_sys::core::PCWSTR = windows_sys::core::w!("EnableWMAProSPDIFOutput");
|
||||
pub const g_wszFailSeekOnError: windows_sys::core::PCWSTR = windows_sys::core::w!("FailSeekOnError");
|
||||
pub const g_wszFixedFrameRate: windows_sys::core::PCWSTR = windows_sys::core::w!("FixedFrameRate");
|
||||
pub const g_wszFold6To2Channels3: windows_sys::core::PCWSTR = windows_sys::core::w!("Fold6To2Channels3");
|
||||
pub const g_wszFoldToChannelsTemplate: windows_sys::core::PCWSTR = windows_sys::core::w!("Fold%luTo%luChannels%lu");
|
||||
pub const g_wszInitialPatternForInverseTelecine: windows_sys::core::PCWSTR = windows_sys::core::w!("InitialPatternForInverseTelecine");
|
||||
pub const g_wszInterlacedCoding: windows_sys::core::PCWSTR = windows_sys::core::w!("InterlacedCoding");
|
||||
pub const g_wszIsVBRSupported: windows_sys::core::PCWSTR = windows_sys::core::w!("_ISVBRSUPPORTED");
|
||||
pub const g_wszJPEGCompressionQuality: windows_sys::core::PCWSTR = windows_sys::core::w!("JPEGCompressionQuality");
|
||||
pub const g_wszJustInTimeDecode: windows_sys::core::PCWSTR = windows_sys::core::w!("JustInTimeDecode");
|
||||
pub const g_wszMixedClassMode: windows_sys::core::PCWSTR = windows_sys::core::w!("MixedClassMode");
|
||||
pub const g_wszMusicClassMode: windows_sys::core::PCWSTR = windows_sys::core::w!("MusicClassMode");
|
||||
pub const g_wszMusicSpeechClassMode: windows_sys::core::PCWSTR = windows_sys::core::w!("MusicSpeechClassMode");
|
||||
pub const g_wszNeedsPreviousSample: windows_sys::core::PCWSTR = windows_sys::core::w!("NeedsPreviousSample");
|
||||
pub const g_wszNumPasses: windows_sys::core::PCWSTR = windows_sys::core::w!("_PASSESUSED");
|
||||
pub const g_wszOriginalSourceFormatTag: windows_sys::core::PCWSTR = windows_sys::core::w!("_SOURCEFORMATTAG");
|
||||
pub const g_wszOriginalWaveFormat: windows_sys::core::PCWSTR = windows_sys::core::w!("_ORIGINALWAVEFORMAT");
|
||||
pub const g_wszPeakValue: windows_sys::core::PCWSTR = windows_sys::core::w!("PeakValue");
|
||||
pub const g_wszPermitSeeksBeyondEndOfStream: windows_sys::core::PCWSTR = windows_sys::core::w!("PermitSeeksBeyondEndOfStream");
|
||||
pub const g_wszReloadIndexOnSeek: windows_sys::core::PCWSTR = windows_sys::core::w!("ReloadIndexOnSeek");
|
||||
pub const g_wszScrambledAudio: windows_sys::core::PCWSTR = windows_sys::core::w!("ScrambledAudio");
|
||||
pub const g_wszSingleOutputBuffer: windows_sys::core::PCWSTR = windows_sys::core::w!("SingleOutputBuffer");
|
||||
pub const g_wszSoftwareScaling: windows_sys::core::PCWSTR = windows_sys::core::w!("SoftwareScaling");
|
||||
pub const g_wszSourceBufferTime: windows_sys::core::PCWSTR = windows_sys::core::w!("SourceBufferTime");
|
||||
pub const g_wszSourceMaxBytesAtOnce: windows_sys::core::PCWSTR = windows_sys::core::w!("SourceMaxBytesAtOnce");
|
||||
pub const g_wszSpeakerConfig: windows_sys::core::PCWSTR = windows_sys::core::w!("SpeakerConfig");
|
||||
pub const g_wszSpeechCaps: windows_sys::core::PCWSTR = windows_sys::core::w!("SpeechFormatCap");
|
||||
pub const g_wszSpeechClassMode: windows_sys::core::PCWSTR = windows_sys::core::w!("SpeechClassMode");
|
||||
pub const g_wszStreamLanguage: windows_sys::core::PCWSTR = windows_sys::core::w!("StreamLanguage");
|
||||
pub const g_wszStreamNumIndexObjects: windows_sys::core::PCWSTR = windows_sys::core::w!("StreamNumIndexObjects");
|
||||
pub const g_wszUsePacketAtSeekPoint: windows_sys::core::PCWSTR = windows_sys::core::w!("UsePacketAtSeekPoint");
|
||||
pub const g_wszVBRBitrateMax: windows_sys::core::PCWSTR = windows_sys::core::w!("_RMAX");
|
||||
pub const g_wszVBRBufferWindowMax: windows_sys::core::PCWSTR = windows_sys::core::w!("_BMAX");
|
||||
pub const g_wszVBREnabled: windows_sys::core::PCWSTR = windows_sys::core::w!("_VBRENABLED");
|
||||
pub const g_wszVBRPeak: windows_sys::core::PCWSTR = windows_sys::core::w!("VBR Peak");
|
||||
pub const g_wszVBRQuality: windows_sys::core::PCWSTR = windows_sys::core::w!("_VBRQUALITY");
|
||||
pub const g_wszVideoSampleDurations: windows_sys::core::PCWSTR = windows_sys::core::w!("VideoSampleDurations");
|
||||
pub const g_wszWMADID: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ADID");
|
||||
pub const g_wszWMASFPacketCount: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ASFPacketCount");
|
||||
pub const g_wszWMASFSecurityObjectsSize: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ASFSecurityObjectsSize");
|
||||
pub const g_wszWMAlbumArtist: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/AlbumArtist");
|
||||
pub const g_wszWMAlbumArtistSort: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/AlbumArtistSort");
|
||||
pub const g_wszWMAlbumCoverURL: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/AlbumCoverURL");
|
||||
pub const g_wszWMAlbumTitle: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/AlbumTitle");
|
||||
pub const g_wszWMAlbumTitleSort: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/AlbumTitleSort");
|
||||
pub const g_wszWMAspectRatioX: windows_sys::core::PCWSTR = windows_sys::core::w!("AspectRatioX");
|
||||
pub const g_wszWMAspectRatioY: windows_sys::core::PCWSTR = windows_sys::core::w!("AspectRatioY");
|
||||
pub const g_wszWMAudioFileURL: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/AudioFileURL");
|
||||
pub const g_wszWMAudioSourceURL: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/AudioSourceURL");
|
||||
pub const g_wszWMAuthor: windows_sys::core::PCWSTR = windows_sys::core::w!("Author");
|
||||
pub const g_wszWMAuthorSort: windows_sys::core::PCWSTR = windows_sys::core::w!("AuthorSort");
|
||||
pub const g_wszWMAuthorURL: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/AuthorURL");
|
||||
pub const g_wszWMBannerImageData: windows_sys::core::PCWSTR = windows_sys::core::w!("BannerImageData");
|
||||
pub const g_wszWMBannerImageType: windows_sys::core::PCWSTR = windows_sys::core::w!("BannerImageType");
|
||||
pub const g_wszWMBannerImageURL: windows_sys::core::PCWSTR = windows_sys::core::w!("BannerImageURL");
|
||||
pub const g_wszWMBeatsPerMinute: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/BeatsPerMinute");
|
||||
pub const g_wszWMBitrate: windows_sys::core::PCWSTR = windows_sys::core::w!("Bitrate");
|
||||
pub const g_wszWMBroadcast: windows_sys::core::PCWSTR = windows_sys::core::w!("Broadcast");
|
||||
pub const g_wszWMCategory: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Category");
|
||||
pub const g_wszWMCodec: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Codec");
|
||||
pub const g_wszWMComposer: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Composer");
|
||||
pub const g_wszWMComposerSort: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ComposerSort");
|
||||
pub const g_wszWMConductor: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Conductor");
|
||||
pub const g_wszWMContainerFormat: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ContainerFormat");
|
||||
pub const g_wszWMContentDistributor: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ContentDistributor");
|
||||
pub const g_wszWMContentGroupDescription: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ContentGroupDescription");
|
||||
pub const g_wszWMCopyright: windows_sys::core::PCWSTR = windows_sys::core::w!("Copyright");
|
||||
pub const g_wszWMCopyrightURL: windows_sys::core::PCWSTR = windows_sys::core::w!("CopyrightURL");
|
||||
pub const g_wszWMCurrentBitrate: windows_sys::core::PCWSTR = windows_sys::core::w!("CurrentBitrate");
|
||||
pub const g_wszWMDRM: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/DRM");
|
||||
pub const g_wszWMDRM_ContentID: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_ContentID");
|
||||
pub const g_wszWMDRM_Flags: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_Flags");
|
||||
pub const g_wszWMDRM_HeaderSignPrivKey: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_HeaderSignPrivKey");
|
||||
pub const g_wszWMDRM_IndividualizedVersion: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_IndividualizedVersion");
|
||||
pub const g_wszWMDRM_KeyID: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_KeyID");
|
||||
pub const g_wszWMDRM_KeySeed: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_KeySeed");
|
||||
pub const g_wszWMDRM_LASignatureCert: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_LASignatureCert");
|
||||
pub const g_wszWMDRM_LASignatureLicSrvCert: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_LASignatureLicSrvCert");
|
||||
pub const g_wszWMDRM_LASignaturePrivKey: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_LASignaturePrivKey");
|
||||
pub const g_wszWMDRM_LASignatureRootCert: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_LASignatureRootCert");
|
||||
pub const g_wszWMDRM_Level: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_Level");
|
||||
pub const g_wszWMDRM_LicenseAcqURL: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_LicenseAcqURL");
|
||||
pub const g_wszWMDRM_SourceID: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_SourceID");
|
||||
pub const g_wszWMDRM_V1LicenseAcqURL: windows_sys::core::PCWSTR = windows_sys::core::w!("DRM_V1LicenseAcqURL");
|
||||
pub const g_wszWMDVDID: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/DVDID");
|
||||
pub const g_wszWMDescription: windows_sys::core::PCWSTR = windows_sys::core::w!("Description");
|
||||
pub const g_wszWMDirector: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Director");
|
||||
pub const g_wszWMDuration: windows_sys::core::PCWSTR = windows_sys::core::w!("Duration");
|
||||
pub const g_wszWMEncodedBy: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/EncodedBy");
|
||||
pub const g_wszWMEncodingSettings: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/EncodingSettings");
|
||||
pub const g_wszWMEncodingTime: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/EncodingTime");
|
||||
pub const g_wszWMEpisodeNumber: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/EpisodeNumber");
|
||||
pub const g_wszWMFileSize: windows_sys::core::PCWSTR = windows_sys::core::w!("FileSize");
|
||||
pub const g_wszWMGenre: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Genre");
|
||||
pub const g_wszWMGenreID: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/GenreID");
|
||||
pub const g_wszWMHasArbitraryDataStream: windows_sys::core::PCWSTR = windows_sys::core::w!("HasArbitraryDataStream");
|
||||
pub const g_wszWMHasAttachedImages: windows_sys::core::PCWSTR = windows_sys::core::w!("HasAttachedImages");
|
||||
pub const g_wszWMHasAudio: windows_sys::core::PCWSTR = windows_sys::core::w!("HasAudio");
|
||||
pub const g_wszWMHasFileTransferStream: windows_sys::core::PCWSTR = windows_sys::core::w!("HasFileTransferStream");
|
||||
pub const g_wszWMHasImage: windows_sys::core::PCWSTR = windows_sys::core::w!("HasImage");
|
||||
pub const g_wszWMHasScript: windows_sys::core::PCWSTR = windows_sys::core::w!("HasScript");
|
||||
pub const g_wszWMHasVideo: windows_sys::core::PCWSTR = windows_sys::core::w!("HasVideo");
|
||||
pub const g_wszWMISAN: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ISAN");
|
||||
pub const g_wszWMISRC: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ISRC");
|
||||
pub const g_wszWMInitialKey: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/InitialKey");
|
||||
pub const g_wszWMIsCompilation: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/IsCompilation");
|
||||
pub const g_wszWMIsVBR: windows_sys::core::PCWSTR = windows_sys::core::w!("IsVBR");
|
||||
pub const g_wszWMLanguage: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Language");
|
||||
pub const g_wszWMLyrics: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Lyrics");
|
||||
pub const g_wszWMLyrics_Synchronised: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Lyrics_Synchronised");
|
||||
pub const g_wszWMMCDI: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MCDI");
|
||||
pub const g_wszWMMediaClassPrimaryID: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaClassPrimaryID");
|
||||
pub const g_wszWMMediaClassSecondaryID: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaClassSecondaryID");
|
||||
pub const g_wszWMMediaCredits: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaCredits");
|
||||
pub const g_wszWMMediaIsDelay: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaIsDelay");
|
||||
pub const g_wszWMMediaIsFinale: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaIsFinale");
|
||||
pub const g_wszWMMediaIsLive: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaIsLive");
|
||||
pub const g_wszWMMediaIsPremiere: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaIsPremiere");
|
||||
pub const g_wszWMMediaIsRepeat: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaIsRepeat");
|
||||
pub const g_wszWMMediaIsSAP: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaIsSAP");
|
||||
pub const g_wszWMMediaIsStereo: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaIsStereo");
|
||||
pub const g_wszWMMediaIsSubtitled: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaIsSubtitled");
|
||||
pub const g_wszWMMediaIsTape: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaIsTape");
|
||||
pub const g_wszWMMediaNetworkAffiliation: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaNetworkAffiliation");
|
||||
pub const g_wszWMMediaOriginalBroadcastDateTime: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaOriginalBroadcastDateTime");
|
||||
pub const g_wszWMMediaOriginalChannel: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaOriginalChannel");
|
||||
pub const g_wszWMMediaStationCallSign: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaStationCallSign");
|
||||
pub const g_wszWMMediaStationName: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/MediaStationName");
|
||||
pub const g_wszWMModifiedBy: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ModifiedBy");
|
||||
pub const g_wszWMMood: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Mood");
|
||||
pub const g_wszWMNSCAddress: windows_sys::core::PCWSTR = windows_sys::core::w!("NSC_Address");
|
||||
pub const g_wszWMNSCDescription: windows_sys::core::PCWSTR = windows_sys::core::w!("NSC_Description");
|
||||
pub const g_wszWMNSCEmail: windows_sys::core::PCWSTR = windows_sys::core::w!("NSC_Email");
|
||||
pub const g_wszWMNSCName: windows_sys::core::PCWSTR = windows_sys::core::w!("NSC_Name");
|
||||
pub const g_wszWMNSCPhone: windows_sys::core::PCWSTR = windows_sys::core::w!("NSC_Phone");
|
||||
pub const g_wszWMNumberOfFrames: windows_sys::core::PCWSTR = windows_sys::core::w!("NumberOfFrames");
|
||||
pub const g_wszWMOptimalBitrate: windows_sys::core::PCWSTR = windows_sys::core::w!("OptimalBitrate");
|
||||
pub const g_wszWMOriginalAlbumTitle: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/OriginalAlbumTitle");
|
||||
pub const g_wszWMOriginalArtist: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/OriginalArtist");
|
||||
pub const g_wszWMOriginalFilename: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/OriginalFilename");
|
||||
pub const g_wszWMOriginalLyricist: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/OriginalLyricist");
|
||||
pub const g_wszWMOriginalReleaseTime: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/OriginalReleaseTime");
|
||||
pub const g_wszWMOriginalReleaseYear: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/OriginalReleaseYear");
|
||||
pub const g_wszWMParentalRating: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ParentalRating");
|
||||
pub const g_wszWMParentalRatingReason: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ParentalRatingReason");
|
||||
pub const g_wszWMPartOfSet: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/PartOfSet");
|
||||
pub const g_wszWMPeakBitrate: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/PeakBitrate");
|
||||
pub const g_wszWMPeriod: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Period");
|
||||
pub const g_wszWMPicture: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Picture");
|
||||
pub const g_wszWMPlaylistDelay: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/PlaylistDelay");
|
||||
pub const g_wszWMProducer: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Producer");
|
||||
pub const g_wszWMPromotionURL: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/PromotionURL");
|
||||
pub const g_wszWMProtected: windows_sys::core::PCWSTR = windows_sys::core::w!("Is_Protected");
|
||||
pub const g_wszWMProtectionType: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ProtectionType");
|
||||
pub const g_wszWMProvider: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Provider");
|
||||
pub const g_wszWMProviderCopyright: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ProviderCopyright");
|
||||
pub const g_wszWMProviderRating: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ProviderRating");
|
||||
pub const g_wszWMProviderStyle: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ProviderStyle");
|
||||
pub const g_wszWMPublisher: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Publisher");
|
||||
pub const g_wszWMRadioStationName: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/RadioStationName");
|
||||
pub const g_wszWMRadioStationOwner: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/RadioStationOwner");
|
||||
pub const g_wszWMRating: windows_sys::core::PCWSTR = windows_sys::core::w!("Rating");
|
||||
pub const g_wszWMSeasonNumber: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/SeasonNumber");
|
||||
pub const g_wszWMSeekable: windows_sys::core::PCWSTR = windows_sys::core::w!("Seekable");
|
||||
pub const g_wszWMSharedUserRating: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/SharedUserRating");
|
||||
pub const g_wszWMSignature_Name: windows_sys::core::PCWSTR = windows_sys::core::w!("Signature_Name");
|
||||
pub const g_wszWMSkipBackward: windows_sys::core::PCWSTR = windows_sys::core::w!("Can_Skip_Backward");
|
||||
pub const g_wszWMSkipForward: windows_sys::core::PCWSTR = windows_sys::core::w!("Can_Skip_Forward");
|
||||
pub const g_wszWMStreamTypeInfo: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/StreamTypeInfo");
|
||||
pub const g_wszWMStridable: windows_sys::core::PCWSTR = windows_sys::core::w!("Stridable");
|
||||
pub const g_wszWMSubTitle: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/SubTitle");
|
||||
pub const g_wszWMSubTitleDescription: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/SubTitleDescription");
|
||||
pub const g_wszWMSubscriptionContentID: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/SubscriptionContentID");
|
||||
pub const g_wszWMText: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Text");
|
||||
pub const g_wszWMTitle: windows_sys::core::PCWSTR = windows_sys::core::w!("Title");
|
||||
pub const g_wszWMTitleSort: windows_sys::core::PCWSTR = windows_sys::core::w!("TitleSort");
|
||||
pub const g_wszWMToolName: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ToolName");
|
||||
pub const g_wszWMToolVersion: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/ToolVersion");
|
||||
pub const g_wszWMTrack: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Track");
|
||||
pub const g_wszWMTrackNumber: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/TrackNumber");
|
||||
pub const g_wszWMTrusted: windows_sys::core::PCWSTR = windows_sys::core::w!("Is_Trusted");
|
||||
pub const g_wszWMUniqueFileIdentifier: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/UniqueFileIdentifier");
|
||||
pub const g_wszWMUse_Advanced_DRM: windows_sys::core::PCWSTR = windows_sys::core::w!("Use_Advanced_DRM");
|
||||
pub const g_wszWMUse_DRM: windows_sys::core::PCWSTR = windows_sys::core::w!("Use_DRM");
|
||||
pub const g_wszWMUserWebURL: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/UserWebURL");
|
||||
pub const g_wszWMVideoClosedCaptioning: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/VideoClosedCaptioning");
|
||||
pub const g_wszWMVideoFrameRate: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/VideoFrameRate");
|
||||
pub const g_wszWMVideoHeight: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/VideoHeight");
|
||||
pub const g_wszWMVideoWidth: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/VideoWidth");
|
||||
pub const g_wszWMWMADRCAverageReference: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/WMADRCAverageReference");
|
||||
pub const g_wszWMWMADRCAverageTarget: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/WMADRCAverageTarget");
|
||||
pub const g_wszWMWMADRCPeakReference: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/WMADRCPeakReference");
|
||||
pub const g_wszWMWMADRCPeakTarget: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/WMADRCPeakTarget");
|
||||
pub const g_wszWMWMCPDistributor: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/WMCPDistributor");
|
||||
pub const g_wszWMWMCPDistributorID: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/WMCPDistributorID");
|
||||
pub const g_wszWMWMCollectionGroupID: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/WMCollectionGroupID");
|
||||
pub const g_wszWMWMCollectionID: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/WMCollectionID");
|
||||
pub const g_wszWMWMContentID: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/WMContentID");
|
||||
pub const g_wszWMWMShadowFileSourceDRMType: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/WMShadowFileSourceDRMType");
|
||||
pub const g_wszWMWMShadowFileSourceFileType: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/WMShadowFileSourceFileType");
|
||||
pub const g_wszWMWriter: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Writer");
|
||||
pub const g_wszWMYear: windows_sys::core::PCWSTR = windows_sys::core::w!("WM/Year");
|
||||
pub const g_wszWatermarkCLSID: windows_sys::core::PCWSTR = windows_sys::core::w!("WatermarkCLSID");
|
||||
pub const g_wszWatermarkConfig: windows_sys::core::PCWSTR = windows_sys::core::w!("WatermarkConfig");
|
||||
@@ -0,0 +1,212 @@
|
||||
#[cfg(feature = "Win32_Media_Audio")]
|
||||
pub mod Audio;
|
||||
#[cfg(feature = "Win32_Media_DxMediaObjects")]
|
||||
pub mod DxMediaObjects;
|
||||
#[cfg(feature = "Win32_Media_KernelStreaming")]
|
||||
pub mod KernelStreaming;
|
||||
#[cfg(feature = "Win32_Media_Multimedia")]
|
||||
pub mod Multimedia;
|
||||
#[cfg(feature = "Win32_Media_Streaming")]
|
||||
pub mod Streaming;
|
||||
#[cfg(feature = "Win32_Media_WindowsMediaFormat")]
|
||||
pub mod WindowsMediaFormat;
|
||||
windows_link::link!("winmm.dll" "system" fn timeBeginPeriod(uperiod : u32) -> u32);
|
||||
windows_link::link!("winmm.dll" "system" fn timeEndPeriod(uperiod : u32) -> u32);
|
||||
windows_link::link!("winmm.dll" "system" fn timeGetDevCaps(ptc : *mut TIMECAPS, cbtc : u32) -> u32);
|
||||
windows_link::link!("winmm.dll" "system" fn timeGetSystemTime(pmmt : *mut MMTIME, cbmmt : u32) -> u32);
|
||||
windows_link::link!("winmm.dll" "system" fn timeGetTime() -> u32);
|
||||
windows_link::link!("winmm.dll" "system" fn timeKillEvent(utimerid : u32) -> u32);
|
||||
windows_link::link!("winmm.dll" "system" fn timeSetEvent(udelay : u32, uresolution : u32, fptc : LPTIMECALLBACK, dwuser : usize, fuevent : u32) -> u32);
|
||||
pub const ED_DEVCAP_ATN_READ: TIMECODE_SAMPLE_FLAGS = 5047u32;
|
||||
pub const ED_DEVCAP_RTC_READ: TIMECODE_SAMPLE_FLAGS = 5050u32;
|
||||
pub const ED_DEVCAP_TIMECODE_READ: TIMECODE_SAMPLE_FLAGS = 4121u32;
|
||||
pub type HTASK = *mut core::ffi::c_void;
|
||||
pub const JOYERR_BASE: u32 = 160u32;
|
||||
#[cfg(feature = "Win32_Media_Multimedia")]
|
||||
pub type LPDRVCALLBACK = Option<unsafe extern "system" fn(hdrvr: Multimedia::HDRVR, umsg: u32, dwuser: usize, dw1: usize, dw2: usize)>;
|
||||
pub type LPTIMECALLBACK = Option<unsafe extern "system" fn(utimerid: u32, umsg: u32, dwuser: usize, dw1: usize, dw2: usize)>;
|
||||
pub const MAXERRORLENGTH: u32 = 256u32;
|
||||
pub const MAXPNAMELEN: u32 = 32u32;
|
||||
pub const MCIERR_BASE: u32 = 256u32;
|
||||
pub const MCI_CD_OFFSET: u32 = 1088u32;
|
||||
pub const MCI_SEQ_OFFSET: u32 = 1216u32;
|
||||
pub const MCI_STRING_OFFSET: u32 = 512u32;
|
||||
pub const MCI_VD_OFFSET: u32 = 1024u32;
|
||||
pub const MCI_WAVE_OFFSET: u32 = 1152u32;
|
||||
pub const MIDIERR_BASE: u32 = 64u32;
|
||||
pub const MIXERR_BASE: u32 = 1024u32;
|
||||
pub const MMSYSERR_ALLOCATED: u32 = 4u32;
|
||||
pub const MMSYSERR_BADDB: u32 = 14u32;
|
||||
pub const MMSYSERR_BADDEVICEID: u32 = 2u32;
|
||||
pub const MMSYSERR_BADERRNUM: u32 = 9u32;
|
||||
pub const MMSYSERR_BASE: u32 = 0u32;
|
||||
pub const MMSYSERR_DELETEERROR: u32 = 18u32;
|
||||
pub const MMSYSERR_ERROR: u32 = 1u32;
|
||||
pub const MMSYSERR_HANDLEBUSY: u32 = 12u32;
|
||||
pub const MMSYSERR_INVALFLAG: u32 = 10u32;
|
||||
pub const MMSYSERR_INVALHANDLE: u32 = 5u32;
|
||||
pub const MMSYSERR_INVALIDALIAS: u32 = 13u32;
|
||||
pub const MMSYSERR_INVALPARAM: u32 = 11u32;
|
||||
pub const MMSYSERR_KEYNOTFOUND: u32 = 15u32;
|
||||
pub const MMSYSERR_LASTERROR: u32 = 21u32;
|
||||
pub const MMSYSERR_MOREDATA: u32 = 21u32;
|
||||
pub const MMSYSERR_NODRIVER: u32 = 6u32;
|
||||
pub const MMSYSERR_NODRIVERCB: u32 = 20u32;
|
||||
pub const MMSYSERR_NOERROR: u32 = 0u32;
|
||||
pub const MMSYSERR_NOMEM: u32 = 7u32;
|
||||
pub const MMSYSERR_NOTENABLED: u32 = 3u32;
|
||||
pub const MMSYSERR_NOTSUPPORTED: u32 = 8u32;
|
||||
pub const MMSYSERR_READERROR: u32 = 16u32;
|
||||
pub const MMSYSERR_VALNOTFOUND: u32 = 19u32;
|
||||
pub const MMSYSERR_WRITEERROR: u32 = 17u32;
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct MMTIME {
|
||||
pub wType: u32,
|
||||
pub u: MMTIME_0,
|
||||
}
|
||||
impl Default for MMTIME {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union MMTIME_0 {
|
||||
pub ms: u32,
|
||||
pub sample: u32,
|
||||
pub cb: u32,
|
||||
pub ticks: u32,
|
||||
pub smpte: MMTIME_0_0,
|
||||
pub midi: MMTIME_0_1,
|
||||
}
|
||||
impl Default for MMTIME_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C, packed(1))]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct MMTIME_0_1 {
|
||||
pub songptrpos: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct MMTIME_0_0 {
|
||||
pub hour: u8,
|
||||
pub min: u8,
|
||||
pub sec: u8,
|
||||
pub frame: u8,
|
||||
pub fps: u8,
|
||||
pub dummy: u8,
|
||||
pub pad: [u8; 2],
|
||||
}
|
||||
impl Default for MMTIME_0_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const MM_ADLIB: u32 = 9u32;
|
||||
pub const MM_DRVM_CLOSE: u32 = 977u32;
|
||||
pub const MM_DRVM_DATA: u32 = 978u32;
|
||||
pub const MM_DRVM_ERROR: u32 = 979u32;
|
||||
pub const MM_DRVM_OPEN: u32 = 976u32;
|
||||
pub const MM_JOY1BUTTONDOWN: u32 = 949u32;
|
||||
pub const MM_JOY1BUTTONUP: u32 = 951u32;
|
||||
pub const MM_JOY1MOVE: u32 = 928u32;
|
||||
pub const MM_JOY1ZMOVE: u32 = 930u32;
|
||||
pub const MM_JOY2BUTTONDOWN: u32 = 950u32;
|
||||
pub const MM_JOY2BUTTONUP: u32 = 952u32;
|
||||
pub const MM_JOY2MOVE: u32 = 929u32;
|
||||
pub const MM_JOY2ZMOVE: u32 = 931u32;
|
||||
pub const MM_MCINOTIFY: u32 = 953u32;
|
||||
pub const MM_MCISIGNAL: u32 = 971u32;
|
||||
pub const MM_MICROSOFT: u32 = 1u32;
|
||||
pub const MM_MIDI_MAPPER: u32 = 1u32;
|
||||
pub const MM_MIM_CLOSE: u32 = 962u32;
|
||||
pub const MM_MIM_DATA: u32 = 963u32;
|
||||
pub const MM_MIM_ERROR: u32 = 965u32;
|
||||
pub const MM_MIM_LONGDATA: u32 = 964u32;
|
||||
pub const MM_MIM_LONGERROR: u32 = 966u32;
|
||||
pub const MM_MIM_MOREDATA: u32 = 972u32;
|
||||
pub const MM_MIM_OPEN: u32 = 961u32;
|
||||
pub const MM_MIXM_CONTROL_CHANGE: u32 = 977u32;
|
||||
pub const MM_MIXM_LINE_CHANGE: u32 = 976u32;
|
||||
pub const MM_MOM_CLOSE: u32 = 968u32;
|
||||
pub const MM_MOM_DONE: u32 = 969u32;
|
||||
pub const MM_MOM_OPEN: u32 = 967u32;
|
||||
pub const MM_MOM_POSITIONCB: u32 = 970u32;
|
||||
pub const MM_MPU401_MIDIIN: u32 = 11u32;
|
||||
pub const MM_MPU401_MIDIOUT: u32 = 10u32;
|
||||
pub const MM_PC_JOYSTICK: u32 = 12u32;
|
||||
pub const MM_SNDBLST_MIDIIN: u32 = 4u32;
|
||||
pub const MM_SNDBLST_MIDIOUT: u32 = 3u32;
|
||||
pub const MM_SNDBLST_SYNTH: u32 = 5u32;
|
||||
pub const MM_SNDBLST_WAVEIN: u32 = 7u32;
|
||||
pub const MM_SNDBLST_WAVEOUT: u32 = 6u32;
|
||||
pub const MM_STREAM_CLOSE: u32 = 981u32;
|
||||
pub const MM_STREAM_DONE: u32 = 982u32;
|
||||
pub const MM_STREAM_ERROR: u32 = 983u32;
|
||||
pub const MM_STREAM_OPEN: u32 = 980u32;
|
||||
pub const MM_WAVE_MAPPER: u32 = 2u32;
|
||||
pub const MM_WIM_CLOSE: u32 = 959u32;
|
||||
pub const MM_WIM_DATA: u32 = 960u32;
|
||||
pub const MM_WIM_OPEN: u32 = 958u32;
|
||||
pub const MM_WOM_CLOSE: u32 = 956u32;
|
||||
pub const MM_WOM_DONE: u32 = 957u32;
|
||||
pub const MM_WOM_OPEN: u32 = 955u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct TIMECAPS {
|
||||
pub wPeriodMin: u32,
|
||||
pub wPeriodMax: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union TIMECODE {
|
||||
pub Anonymous: TIMECODE_0,
|
||||
pub qw: u64,
|
||||
}
|
||||
impl Default for TIMECODE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct TIMECODE_0 {
|
||||
pub wFrameRate: u16,
|
||||
pub wFrameFract: u16,
|
||||
pub dwFrames: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct TIMECODE_SAMPLE {
|
||||
pub qwTick: i64,
|
||||
pub timecode: TIMECODE,
|
||||
pub dwUser: u32,
|
||||
pub dwFlags: TIMECODE_SAMPLE_FLAGS,
|
||||
}
|
||||
impl Default for TIMECODE_SAMPLE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type TIMECODE_SAMPLE_FLAGS = u32;
|
||||
pub const TIMERR_BASE: u32 = 96u32;
|
||||
pub const TIMERR_NOCANDO: u32 = 97u32;
|
||||
pub const TIMERR_NOERROR: u32 = 0u32;
|
||||
pub const TIMERR_STRUCT: u32 = 129u32;
|
||||
pub const TIME_BYTES: u32 = 4u32;
|
||||
pub const TIME_CALLBACK_EVENT_PULSE: u32 = 32u32;
|
||||
pub const TIME_CALLBACK_EVENT_SET: u32 = 16u32;
|
||||
pub const TIME_CALLBACK_FUNCTION: u32 = 0u32;
|
||||
pub const TIME_KILL_SYNCHRONOUS: u32 = 256u32;
|
||||
pub const TIME_MIDI: u32 = 16u32;
|
||||
pub const TIME_MS: u32 = 1u32;
|
||||
pub const TIME_ONESHOT: u32 = 0u32;
|
||||
pub const TIME_PERIODIC: u32 = 1u32;
|
||||
pub const TIME_SAMPLES: u32 = 2u32;
|
||||
pub const TIME_SMPTE: u32 = 8u32;
|
||||
pub const TIME_TICKS: u32 = 32u32;
|
||||
pub const WAVERR_BASE: u32 = 32u32;
|
||||
+2511
File diff suppressed because it is too large.
Load diff
+2076
File diff suppressed because it is too large.
Load diff
+22
@@ -0,0 +1,22 @@
|
||||
pub const ICW_ALREADYRUN: u32 = 4u32;
|
||||
pub const ICW_CHECKSTATUS: u32 = 1u32;
|
||||
pub const ICW_FULLPRESENT: u32 = 1u32;
|
||||
pub const ICW_FULL_SMARTSTART: u32 = 2048u32;
|
||||
pub const ICW_LAUNCHEDFULL: u32 = 256u32;
|
||||
pub const ICW_LAUNCHEDMANUAL: u32 = 512u32;
|
||||
pub const ICW_LAUNCHFULL: u32 = 256u32;
|
||||
pub const ICW_LAUNCHMANUAL: u32 = 512u32;
|
||||
pub const ICW_MANUALPRESENT: u32 = 2u32;
|
||||
pub const ICW_MAX_ACCTNAME: u32 = 256u32;
|
||||
pub const ICW_MAX_EMAILADDR: u32 = 128u32;
|
||||
pub const ICW_MAX_EMAILNAME: u32 = 64u32;
|
||||
pub const ICW_MAX_LOGONNAME: u32 = 256u32;
|
||||
pub const ICW_MAX_PASSWORD: u32 = 256u32;
|
||||
pub const ICW_MAX_RASNAME: u32 = 256u32;
|
||||
pub const ICW_MAX_SERVERNAME: u32 = 64u32;
|
||||
pub const ICW_REGKEYCOMPLETED: windows_sys::core::PCSTR = windows_sys::core::s!("Completed");
|
||||
pub const ICW_REGPATHSETTINGS: windows_sys::core::PCSTR = windows_sys::core::s!("Software\\Microsoft\\Internet Connection Wizard");
|
||||
pub const ICW_USEDEFAULTS: u32 = 1u32;
|
||||
pub const ICW_USE_SHELLNEXT: u32 = 1024u32;
|
||||
pub type PFNCHECKCONNECTIONWIZARD = Option<unsafe extern "system" fn(param0: u32, param1: *mut u32) -> u32>;
|
||||
pub type PFNSETSHELLNEXT = Option<unsafe extern "system" fn(param0: windows_sys::core::PCSTR) -> u32>;
|
||||
+3771
File diff suppressed because it is too large.
Load diff
+89
@@ -0,0 +1,89 @@
|
||||
windows_link::link!("dhcpcsvc.dll" "system" fn McastApiCleanup());
|
||||
windows_link::link!("dhcpcsvc.dll" "system" fn McastApiStartup(version : *mut u32) -> u32);
|
||||
windows_link::link!("dhcpcsvc.dll" "system" fn McastEnumerateScopes(addrfamily : u16, requery : windows_sys::core::BOOL, pscopelist : *mut MCAST_SCOPE_ENTRY, pscopelen : *mut u32, pscopecount : *mut u32) -> u32);
|
||||
windows_link::link!("dhcpcsvc.dll" "system" fn McastGenUID(prequestid : *mut MCAST_CLIENT_UID) -> u32);
|
||||
windows_link::link!("dhcpcsvc.dll" "system" fn McastReleaseAddress(addrfamily : u16, prequestid : *mut MCAST_CLIENT_UID, preleaserequest : *mut MCAST_LEASE_REQUEST) -> u32);
|
||||
windows_link::link!("dhcpcsvc.dll" "system" fn McastRenewAddress(addrfamily : u16, prequestid : *mut MCAST_CLIENT_UID, prenewrequest : *mut MCAST_LEASE_REQUEST, prenewresponse : *mut MCAST_LEASE_RESPONSE) -> u32);
|
||||
windows_link::link!("dhcpcsvc.dll" "system" fn McastRequestAddress(addrfamily : u16, prequestid : *mut MCAST_CLIENT_UID, pscopectx : *mut MCAST_SCOPE_CTX, paddrrequest : *mut MCAST_LEASE_REQUEST, paddrresponse : *mut MCAST_LEASE_RESPONSE) -> u32);
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union IPNG_ADDRESS {
|
||||
pub IpAddrV4: u32,
|
||||
pub IpAddrV6: [u8; 16],
|
||||
}
|
||||
impl Default for IPNG_ADDRESS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const MCAST_API_CURRENT_VERSION: i32 = 1i32;
|
||||
pub const MCAST_API_VERSION_0: i32 = 0i32;
|
||||
pub const MCAST_API_VERSION_1: i32 = 1i32;
|
||||
pub const MCAST_CLIENT_ID_LEN: u32 = 17u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct MCAST_CLIENT_UID {
|
||||
pub ClientUID: *mut u8,
|
||||
pub ClientUIDLength: u32,
|
||||
}
|
||||
impl Default for MCAST_CLIENT_UID {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct MCAST_LEASE_REQUEST {
|
||||
pub LeaseStartTime: i32,
|
||||
pub MaxLeaseStartTime: i32,
|
||||
pub LeaseDuration: u32,
|
||||
pub MinLeaseDuration: u32,
|
||||
pub ServerAddress: IPNG_ADDRESS,
|
||||
pub MinAddrCount: u16,
|
||||
pub AddrCount: u16,
|
||||
pub pAddrBuf: *mut u8,
|
||||
}
|
||||
impl Default for MCAST_LEASE_REQUEST {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct MCAST_LEASE_RESPONSE {
|
||||
pub LeaseStartTime: i32,
|
||||
pub LeaseEndTime: i32,
|
||||
pub ServerAddress: IPNG_ADDRESS,
|
||||
pub AddrCount: u16,
|
||||
pub pAddrBuf: *mut u8,
|
||||
}
|
||||
impl Default for MCAST_LEASE_RESPONSE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct MCAST_SCOPE_CTX {
|
||||
pub ScopeID: IPNG_ADDRESS,
|
||||
pub Interface: IPNG_ADDRESS,
|
||||
pub ServerID: IPNG_ADDRESS,
|
||||
}
|
||||
impl Default for MCAST_SCOPE_CTX {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct MCAST_SCOPE_ENTRY {
|
||||
pub ScopeCtx: MCAST_SCOPE_CTX,
|
||||
pub LastAddr: IPNG_ADDRESS,
|
||||
pub TTL: u32,
|
||||
pub ScopeDesc: super::super::Foundation::UNICODE_STRING,
|
||||
}
|
||||
impl Default for MCAST_SCOPE_ENTRY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
+3567
File diff suppressed because it is too large.
Load diff
+248
@@ -0,0 +1,248 @@
|
||||
windows_link::link!("netapi32.dll" "system" fn Netbios(pncb : *mut NCB) -> u8);
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct ACTION_HEADER {
|
||||
pub transport_id: u32,
|
||||
pub action_code: u16,
|
||||
pub reserved: u16,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct ADAPTER_STATUS {
|
||||
pub adapter_address: [u8; 6],
|
||||
pub rev_major: u8,
|
||||
pub reserved0: u8,
|
||||
pub adapter_type: u8,
|
||||
pub rev_minor: u8,
|
||||
pub duration: u16,
|
||||
pub frmr_recv: u16,
|
||||
pub frmr_xmit: u16,
|
||||
pub iframe_recv_err: u16,
|
||||
pub xmit_aborts: u16,
|
||||
pub xmit_success: u32,
|
||||
pub recv_success: u32,
|
||||
pub iframe_xmit_err: u16,
|
||||
pub recv_buff_unavail: u16,
|
||||
pub t1_timeouts: u16,
|
||||
pub ti_timeouts: u16,
|
||||
pub reserved1: u32,
|
||||
pub free_ncbs: u16,
|
||||
pub max_cfg_ncbs: u16,
|
||||
pub max_ncbs: u16,
|
||||
pub xmit_buf_unavail: u16,
|
||||
pub max_dgram_size: u16,
|
||||
pub pending_sess: u16,
|
||||
pub max_cfg_sess: u16,
|
||||
pub max_sess: u16,
|
||||
pub max_sess_pkt_size: u16,
|
||||
pub name_count: u16,
|
||||
}
|
||||
impl Default for ADAPTER_STATUS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const ALL_TRANSPORTS: windows_sys::core::PCSTR = windows_sys::core::s!("M\u{0}\u{0}\u{0}");
|
||||
pub const ASYNCH: u32 = 128u32;
|
||||
pub const CALL_PENDING: u32 = 2u32;
|
||||
pub const DEREGISTERED: u32 = 5u32;
|
||||
pub const DUPLICATE: u32 = 6u32;
|
||||
pub const DUPLICATE_DEREG: u32 = 7u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct FIND_NAME_BUFFER {
|
||||
pub length: u8,
|
||||
pub access_control: u8,
|
||||
pub frame_control: u8,
|
||||
pub destination_addr: [u8; 6],
|
||||
pub source_addr: [u8; 6],
|
||||
pub routing_info: [u8; 18],
|
||||
}
|
||||
impl Default for FIND_NAME_BUFFER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct FIND_NAME_HEADER {
|
||||
pub node_count: u16,
|
||||
pub reserved: u8,
|
||||
pub unique_group: u8,
|
||||
}
|
||||
pub const GROUP_NAME: u32 = 128u32;
|
||||
pub const HANGUP_COMPLETE: u32 = 5u32;
|
||||
pub const HANGUP_PENDING: u32 = 4u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LANA_ENUM {
|
||||
pub length: u8,
|
||||
pub lana: [u8; 255],
|
||||
}
|
||||
impl Default for LANA_ENUM {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const LISTEN_OUTSTANDING: u32 = 1u32;
|
||||
pub const MAX_LANA: u32 = 254u32;
|
||||
pub const MS_NBF: windows_sys::core::PCSTR = windows_sys::core::s!("MNBF");
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NAME_BUFFER {
|
||||
pub name: [u8; 16],
|
||||
pub name_num: u8,
|
||||
pub name_flags: u8,
|
||||
}
|
||||
impl Default for NAME_BUFFER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const NAME_FLAGS_MASK: u32 = 135u32;
|
||||
#[repr(C)]
|
||||
#[cfg(target_arch = "x86")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NCB {
|
||||
pub ncb_command: u8,
|
||||
pub ncb_retcode: u8,
|
||||
pub ncb_lsn: u8,
|
||||
pub ncb_num: u8,
|
||||
pub ncb_buffer: *mut u8,
|
||||
pub ncb_length: u16,
|
||||
pub ncb_callname: [u8; 16],
|
||||
pub ncb_name: [u8; 16],
|
||||
pub ncb_rto: u8,
|
||||
pub ncb_sto: u8,
|
||||
pub ncb_post: isize,
|
||||
pub ncb_lana_num: u8,
|
||||
pub ncb_cmd_cplt: u8,
|
||||
pub ncb_reserve: [u8; 10],
|
||||
pub ncb_event: super::super::Foundation::HANDLE,
|
||||
}
|
||||
#[cfg(target_arch = "x86")]
|
||||
impl Default for NCB {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NCB {
|
||||
pub ncb_command: u8,
|
||||
pub ncb_retcode: u8,
|
||||
pub ncb_lsn: u8,
|
||||
pub ncb_num: u8,
|
||||
pub ncb_buffer: *mut u8,
|
||||
pub ncb_length: u16,
|
||||
pub ncb_callname: [u8; 16],
|
||||
pub ncb_name: [u8; 16],
|
||||
pub ncb_rto: u8,
|
||||
pub ncb_sto: u8,
|
||||
pub ncb_post: isize,
|
||||
pub ncb_lana_num: u8,
|
||||
pub ncb_cmd_cplt: u8,
|
||||
pub ncb_reserve: [u8; 18],
|
||||
pub ncb_event: super::super::Foundation::HANDLE,
|
||||
}
|
||||
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))]
|
||||
impl Default for NCB {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const NCBACTION: u32 = 119u32;
|
||||
pub const NCBADDGRNAME: u32 = 54u32;
|
||||
pub const NCBADDNAME: u32 = 48u32;
|
||||
pub const NCBASTAT: u32 = 51u32;
|
||||
pub const NCBCALL: u32 = 16u32;
|
||||
pub const NCBCANCEL: u32 = 53u32;
|
||||
pub const NCBCHAINSEND: u32 = 23u32;
|
||||
pub const NCBCHAINSENDNA: u32 = 114u32;
|
||||
pub const NCBDELNAME: u32 = 49u32;
|
||||
pub const NCBDGRECV: u32 = 33u32;
|
||||
pub const NCBDGRECVBC: u32 = 35u32;
|
||||
pub const NCBDGSEND: u32 = 32u32;
|
||||
pub const NCBDGSENDBC: u32 = 34u32;
|
||||
pub const NCBENUM: u32 = 55u32;
|
||||
pub const NCBFINDNAME: u32 = 120u32;
|
||||
pub const NCBHANGUP: u32 = 18u32;
|
||||
pub const NCBLANSTALERT: u32 = 115u32;
|
||||
pub const NCBLISTEN: u32 = 17u32;
|
||||
pub const NCBNAMSZ: u32 = 16u32;
|
||||
pub const NCBRECV: u32 = 21u32;
|
||||
pub const NCBRECVANY: u32 = 22u32;
|
||||
pub const NCBRESET: u32 = 50u32;
|
||||
pub const NCBSEND: u32 = 20u32;
|
||||
pub const NCBSENDNA: u32 = 113u32;
|
||||
pub const NCBSSTAT: u32 = 52u32;
|
||||
pub const NCBTRACE: u32 = 121u32;
|
||||
pub const NCBUNLINK: u32 = 112u32;
|
||||
pub const NRC_ACTSES: u32 = 15u32;
|
||||
pub const NRC_BADDR: u32 = 7u32;
|
||||
pub const NRC_BRIDGE: u32 = 35u32;
|
||||
pub const NRC_BUFLEN: u32 = 1u32;
|
||||
pub const NRC_CANCEL: u32 = 38u32;
|
||||
pub const NRC_CANOCCR: u32 = 36u32;
|
||||
pub const NRC_CMDCAN: u32 = 11u32;
|
||||
pub const NRC_CMDTMO: u32 = 5u32;
|
||||
pub const NRC_DUPENV: u32 = 48u32;
|
||||
pub const NRC_DUPNAME: u32 = 13u32;
|
||||
pub const NRC_ENVNOTDEF: u32 = 52u32;
|
||||
pub const NRC_GOODRET: u32 = 0u32;
|
||||
pub const NRC_IFBUSY: u32 = 33u32;
|
||||
pub const NRC_ILLCMD: u32 = 3u32;
|
||||
pub const NRC_ILLNN: u32 = 19u32;
|
||||
pub const NRC_INCOMP: u32 = 6u32;
|
||||
pub const NRC_INUSE: u32 = 22u32;
|
||||
pub const NRC_INVADDRESS: u32 = 57u32;
|
||||
pub const NRC_INVDDID: u32 = 59u32;
|
||||
pub const NRC_LOCKFAIL: u32 = 60u32;
|
||||
pub const NRC_LOCTFUL: u32 = 17u32;
|
||||
pub const NRC_MAXAPPS: u32 = 54u32;
|
||||
pub const NRC_NAMCONF: u32 = 25u32;
|
||||
pub const NRC_NAMERR: u32 = 23u32;
|
||||
pub const NRC_NAMTFUL: u32 = 14u32;
|
||||
pub const NRC_NOCALL: u32 = 20u32;
|
||||
pub const NRC_NORES: u32 = 9u32;
|
||||
pub const NRC_NORESOURCES: u32 = 56u32;
|
||||
pub const NRC_NOSAPS: u32 = 55u32;
|
||||
pub const NRC_NOWILD: u32 = 21u32;
|
||||
pub const NRC_OPENERR: u32 = 63u32;
|
||||
pub const NRC_OSRESNOTAV: u32 = 53u32;
|
||||
pub const NRC_PENDING: u32 = 255u32;
|
||||
pub const NRC_REMTFUL: u32 = 18u32;
|
||||
pub const NRC_SABORT: u32 = 24u32;
|
||||
pub const NRC_SCLOSED: u32 = 10u32;
|
||||
pub const NRC_SNUMOUT: u32 = 8u32;
|
||||
pub const NRC_SYSTEM: u32 = 64u32;
|
||||
pub const NRC_TOOMANY: u32 = 34u32;
|
||||
pub const REGISTERED: u32 = 4u32;
|
||||
pub const REGISTERING: u32 = 0u32;
|
||||
pub const SESSION_ABORTED: u32 = 6u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SESSION_BUFFER {
|
||||
pub lsn: u8,
|
||||
pub state: u8,
|
||||
pub local_name: [u8; 16],
|
||||
pub remote_name: [u8; 16],
|
||||
pub rcvs_outstanding: u8,
|
||||
pub sends_outstanding: u8,
|
||||
}
|
||||
impl Default for SESSION_BUFFER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const SESSION_ESTABLISHED: u32 = 3u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct SESSION_HEADER {
|
||||
pub sess_name: u8,
|
||||
pub num_sess: u8,
|
||||
pub rcv_dg_outstanding: u8,
|
||||
pub rcv_any_outstanding: u8,
|
||||
}
|
||||
pub const UNIQUE_NAME: u32 = 0u32;
|
||||
Vendored
+5358
File diff suppressed because it is too large.
Load diff
+200
@@ -0,0 +1,200 @@
|
||||
windows_link::link!("netsh.dll" "system" fn MatchEnumTag(hmodule : super::super::Foundation:: HANDLE, pwcarg : windows_sys::core::PCWSTR, dwnumarg : u32, penumtable : *const TOKEN_VALUE, pdwvalue : *mut u32) -> u32);
|
||||
windows_link::link!("netsh.dll" "system" fn MatchToken(pwszusertoken : windows_sys::core::PCWSTR, pwszcmdtoken : windows_sys::core::PCWSTR) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("netsh.dll" "system" fn PreprocessCommand(hmodule : super::super::Foundation:: HANDLE, ppwcarguments : *mut windows_sys::core::PWSTR, dwcurrentindex : u32, dwargcount : u32, ptttags : *mut TAG_TYPE, dwtagcount : u32, dwminargs : u32, dwmaxargs : u32, pdwtagtype : *mut u32) -> u32);
|
||||
windows_link::link!("netsh.dll" "C" fn PrintError(hmodule : super::super::Foundation:: HANDLE, dwerrid : u32, ...) -> u32);
|
||||
windows_link::link!("netsh.dll" "C" fn PrintMessage(pwszformat : windows_sys::core::PCWSTR, ...) -> u32);
|
||||
windows_link::link!("netsh.dll" "C" fn PrintMessageFromModule(hmodule : super::super::Foundation:: HANDLE, dwmsgid : u32, ...) -> u32);
|
||||
windows_link::link!("netsh.dll" "system" fn RegisterContext(pchildcontext : *const NS_CONTEXT_ATTRIBUTES) -> u32);
|
||||
windows_link::link!("netsh.dll" "system" fn RegisterHelper(pguidparentcontext : *const windows_sys::core::GUID, pfnregistersubcontext : *const NS_HELPER_ATTRIBUTES) -> u32);
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CMD_ENTRY {
|
||||
pub pwszCmdToken: windows_sys::core::PCWSTR,
|
||||
pub pfnCmdHandler: PFN_HANDLE_CMD,
|
||||
pub dwShortCmdHelpToken: u32,
|
||||
pub dwCmdHlpToken: u32,
|
||||
pub dwFlags: u32,
|
||||
pub pOsVersionCheck: PNS_OSVERSIONCHECK,
|
||||
pub pfnCustomHelpFn: PFN_CUSTOM_HELP,
|
||||
}
|
||||
impl Default for CMD_ENTRY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const CMD_FLAG_HIDDEN: NS_CMD_FLAGS = 32i32;
|
||||
pub const CMD_FLAG_INTERACTIVE: NS_CMD_FLAGS = 2i32;
|
||||
pub const CMD_FLAG_LIMIT_MASK: NS_CMD_FLAGS = 65535i32;
|
||||
pub const CMD_FLAG_LOCAL: NS_CMD_FLAGS = 8i32;
|
||||
pub const CMD_FLAG_ONLINE: NS_CMD_FLAGS = 16i32;
|
||||
pub const CMD_FLAG_PRIORITY: NS_CMD_FLAGS = -2147483648i32;
|
||||
pub const CMD_FLAG_PRIVATE: NS_CMD_FLAGS = 1i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CMD_GROUP_ENTRY {
|
||||
pub pwszCmdGroupToken: windows_sys::core::PCWSTR,
|
||||
pub dwShortCmdHelpToken: u32,
|
||||
pub ulCmdGroupSize: u32,
|
||||
pub dwFlags: u32,
|
||||
pub pCmdGroup: *mut CMD_ENTRY,
|
||||
pub pOsVersionCheck: PNS_OSVERSIONCHECK,
|
||||
}
|
||||
impl Default for CMD_GROUP_ENTRY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DEFAULT_CONTEXT_PRIORITY: u32 = 100u32;
|
||||
pub const ERROR_CMD_NOT_FOUND: u32 = 15004u32;
|
||||
pub const ERROR_CONTEXT_ALREADY_REGISTERED: u32 = 15019u32;
|
||||
pub const ERROR_CONTINUE_IN_PARENT_CONTEXT: u32 = 15016u32;
|
||||
pub const ERROR_DLL_LOAD_FAILED: u32 = 15006u32;
|
||||
pub const ERROR_ENTRY_PT_NOT_FOUND: u32 = 15005u32;
|
||||
pub const ERROR_HELPER_ALREADY_REGISTERED: u32 = 15018u32;
|
||||
pub const ERROR_INIT_DISPLAY: u32 = 15007u32;
|
||||
pub const ERROR_INVALID_OPTION_TAG: u32 = 15009u32;
|
||||
pub const ERROR_INVALID_OPTION_VALUE: u32 = 15014u32;
|
||||
pub const ERROR_INVALID_SYNTAX: u32 = 15001u32;
|
||||
pub const ERROR_MISSING_OPTION: u32 = 15011u32;
|
||||
pub const ERROR_NO_CHANGE: u32 = 15003u32;
|
||||
pub const ERROR_NO_ENTRIES: u32 = 15000u32;
|
||||
pub const ERROR_NO_TAG: u32 = 15010u32;
|
||||
pub const ERROR_OKAY: u32 = 15015u32;
|
||||
pub const ERROR_PARSING_FAILURE: u32 = 15020u32;
|
||||
pub const ERROR_PROTOCOL_NOT_IN_TRANSPORT: u32 = 15002u32;
|
||||
pub const ERROR_SHOW_USAGE: u32 = 15013u32;
|
||||
pub const ERROR_SUPPRESS_OUTPUT: u32 = 15017u32;
|
||||
pub const ERROR_TAG_ALREADY_PRESENT: u32 = 15008u32;
|
||||
pub const ERROR_TRANSPORT_NOT_PRESENT: u32 = 15012u32;
|
||||
pub const GET_RESOURCE_STRING_FN_NAME: windows_sys::core::PCSTR = windows_sys::core::s!("GetResourceString");
|
||||
pub const MAX_NAME_LEN: u32 = 48u32;
|
||||
pub const NETSH_ARG_DELIMITER: windows_sys::core::PCWSTR = windows_sys::core::w!("=");
|
||||
pub const NETSH_CMD_DELIMITER: windows_sys::core::PCWSTR = windows_sys::core::w!(" ");
|
||||
pub const NETSH_COMMIT: NS_MODE_CHANGE = 0i32;
|
||||
pub const NETSH_COMMIT_STATE: NS_MODE_CHANGE = 3i32;
|
||||
pub const NETSH_ERROR_BASE: u32 = 15000u32;
|
||||
pub const NETSH_ERROR_END: u32 = 15019u32;
|
||||
pub const NETSH_FLUSH: NS_MODE_CHANGE = 2i32;
|
||||
pub const NETSH_MAX_CMD_TOKEN_LENGTH: u32 = 128u32;
|
||||
pub const NETSH_MAX_TOKEN_LENGTH: u32 = 64u32;
|
||||
pub const NETSH_SAVE: NS_MODE_CHANGE = 4i32;
|
||||
pub const NETSH_UNCOMMIT: NS_MODE_CHANGE = 1i32;
|
||||
pub const NETSH_VERSION_50: u32 = 20480u32;
|
||||
pub type NS_CMD_FLAGS = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NS_CONTEXT_ATTRIBUTES {
|
||||
pub Anonymous: NS_CONTEXT_ATTRIBUTES_0,
|
||||
pub pwszContext: windows_sys::core::PWSTR,
|
||||
pub guidHelper: windows_sys::core::GUID,
|
||||
pub dwFlags: u32,
|
||||
pub ulPriority: u32,
|
||||
pub ulNumTopCmds: u32,
|
||||
pub pTopCmds: *mut CMD_ENTRY,
|
||||
pub ulNumGroups: u32,
|
||||
pub pCmdGroups: *mut CMD_GROUP_ENTRY,
|
||||
pub pfnCommitFn: PNS_CONTEXT_COMMIT_FN,
|
||||
pub pfnDumpFn: PNS_CONTEXT_DUMP_FN,
|
||||
pub pfnConnectFn: PNS_CONTEXT_CONNECT_FN,
|
||||
pub pReserved: *mut core::ffi::c_void,
|
||||
pub pfnOsVersionCheck: PNS_OSVERSIONCHECK,
|
||||
}
|
||||
impl Default for NS_CONTEXT_ATTRIBUTES {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union NS_CONTEXT_ATTRIBUTES_0 {
|
||||
pub Anonymous: NS_CONTEXT_ATTRIBUTES_0_0,
|
||||
pub _ullAlign: u64,
|
||||
}
|
||||
impl Default for NS_CONTEXT_ATTRIBUTES_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NS_CONTEXT_ATTRIBUTES_0_0 {
|
||||
pub dwVersion: u32,
|
||||
pub dwReserved: u32,
|
||||
}
|
||||
pub type NS_EVENTS = i32;
|
||||
pub const NS_EVENT_FROM_N: NS_EVENTS = 4i32;
|
||||
pub const NS_EVENT_FROM_START: NS_EVENTS = 8i32;
|
||||
pub const NS_EVENT_LAST_N: NS_EVENTS = 1i32;
|
||||
pub const NS_EVENT_LAST_SECS: NS_EVENTS = 2i32;
|
||||
pub const NS_EVENT_LOOP: NS_EVENTS = 65536i32;
|
||||
pub const NS_GET_EVENT_IDS_FN_NAME: windows_sys::core::PCSTR = windows_sys::core::s!("GetEventIds");
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NS_HELPER_ATTRIBUTES {
|
||||
pub Anonymous: NS_HELPER_ATTRIBUTES_0,
|
||||
pub guidHelper: windows_sys::core::GUID,
|
||||
pub pfnStart: PNS_HELPER_START_FN,
|
||||
pub pfnStop: PNS_HELPER_STOP_FN,
|
||||
}
|
||||
impl Default for NS_HELPER_ATTRIBUTES {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union NS_HELPER_ATTRIBUTES_0 {
|
||||
pub Anonymous: NS_HELPER_ATTRIBUTES_0_0,
|
||||
pub _ullAlign: u64,
|
||||
}
|
||||
impl Default for NS_HELPER_ATTRIBUTES_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NS_HELPER_ATTRIBUTES_0_0 {
|
||||
pub dwVersion: u32,
|
||||
pub dwReserved: u32,
|
||||
}
|
||||
pub type NS_MODE_CHANGE = i32;
|
||||
pub type NS_REQS = i32;
|
||||
pub const NS_REQ_ALLOW_MULTIPLE: NS_REQS = 2i32;
|
||||
pub const NS_REQ_ONE_OR_MORE: NS_REQS = 3i32;
|
||||
pub const NS_REQ_PRESENT: NS_REQS = 1i32;
|
||||
pub const NS_REQ_ZERO: NS_REQS = 0i32;
|
||||
pub type PFN_CUSTOM_HELP = Option<unsafe extern "system" fn(hmodule: super::super::Foundation::HANDLE, pwszcmdtoken: windows_sys::core::PCWSTR)>;
|
||||
pub type PFN_HANDLE_CMD = Option<unsafe extern "system" fn(pwszmachine: windows_sys::core::PCWSTR, ppwcarguments: *mut windows_sys::core::PWSTR, dwcurrentindex: u32, dwargcount: u32, dwflags: u32, pvdata: *const core::ffi::c_void, pbdone: *mut windows_sys::core::BOOL) -> u32>;
|
||||
pub type PGET_RESOURCE_STRING_FN = Option<unsafe extern "system" fn(dwmsgid: u32, lpbuffer: windows_sys::core::PCWSTR, nbuffermax: u32) -> u32>;
|
||||
pub type PNS_CONTEXT_COMMIT_FN = Option<unsafe extern "system" fn(dwaction: u32) -> u32>;
|
||||
pub type PNS_CONTEXT_CONNECT_FN = Option<unsafe extern "system" fn(pwszmachine: windows_sys::core::PCWSTR) -> u32>;
|
||||
pub type PNS_CONTEXT_DUMP_FN = Option<unsafe extern "system" fn(pwszrouter: windows_sys::core::PCWSTR, ppwcarguments: *const windows_sys::core::PCWSTR, dwargcount: u32, pvdata: *const core::ffi::c_void) -> u32>;
|
||||
pub type PNS_DLL_INIT_FN = Option<unsafe extern "system" fn(dwnetshversion: u32, preserved: *mut core::ffi::c_void) -> u32>;
|
||||
pub type PNS_DLL_STOP_FN = Option<unsafe extern "system" fn(dwreserved: u32) -> u32>;
|
||||
pub type PNS_HELPER_START_FN = Option<unsafe extern "system" fn(pguidparent: *const windows_sys::core::GUID, dwversion: u32) -> u32>;
|
||||
pub type PNS_HELPER_STOP_FN = Option<unsafe extern "system" fn(dwreserved: u32) -> u32>;
|
||||
pub type PNS_OSVERSIONCHECK = Option<unsafe extern "system" fn(cimostype: u32, cimosproductsuite: u32, cimosversion: windows_sys::core::PCWSTR, cimosbuildnumber: windows_sys::core::PCWSTR, cimservicepackmajorversion: windows_sys::core::PCWSTR, cimservicepackminorversion: windows_sys::core::PCWSTR, uireserved: u32, dwreserved: u32) -> windows_sys::core::BOOL>;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct TAG_TYPE {
|
||||
pub pwszTag: windows_sys::core::PCWSTR,
|
||||
pub dwRequired: u32,
|
||||
pub bPresent: windows_sys::core::BOOL,
|
||||
}
|
||||
impl Default for TAG_TYPE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct TOKEN_VALUE {
|
||||
pub pwszToken: windows_sys::core::PCWSTR,
|
||||
pub dwValue: u32,
|
||||
}
|
||||
impl Default for TOKEN_VALUE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
+282
@@ -0,0 +1,282 @@
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfCancelIncident(handle : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfCloseIncident(handle : *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfCreateConnectivityIncident(handle : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfCreateDNSIncident(hostname : windows_sys::core::PCWSTR, querytype : u16, handle : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfCreateGroupingIncident(cloudname : windows_sys::core::PCWSTR, groupname : windows_sys::core::PCWSTR, identity : windows_sys::core::PCWSTR, invitation : windows_sys::core::PCWSTR, addresses : *const super::super::Networking::WinSock:: SOCKET_ADDRESS_LIST, appid : windows_sys::core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfCreateIncident(helperclassname : windows_sys::core::PCWSTR, celt : u32, attributes : *const HELPER_ATTRIBUTE, handle : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfCreateNetConnectionIncident(handle : *mut *mut core::ffi::c_void, id : windows_sys::core::GUID) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfCreatePnrpIncident(cloudname : windows_sys::core::PCWSTR, peername : windows_sys::core::PCWSTR, diagnosepublish : windows_sys::core::BOOL, appid : windows_sys::core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfCreateSharingIncident(uncpath : windows_sys::core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfCreateWebIncident(url : windows_sys::core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfCreateWebIncidentEx(url : windows_sys::core::PCWSTR, usewinhttp : windows_sys::core::BOOL, modulename : windows_sys::core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
#[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_Security"))]
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfCreateWinSockIncident(sock : super::super::Networking::WinSock:: SOCKET, host : windows_sys::core::PCWSTR, port : u16, appid : windows_sys::core::PCWSTR, userid : *const super::super::Security:: SID, handle : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfDiagnoseIncident(handle : *const core::ffi::c_void, rootcausecount : *mut u32, rootcauses : *mut *mut RootCauseInfo, dwwait : u32, dwflags : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfExecuteDiagnosis(handle : *const core::ffi::c_void, hwnd : super::super::Foundation:: HWND) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfGetTraceFile(handle : *const core::ffi::c_void, tracefilelocation : *mut windows_sys::core::PCWSTR) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ndfapi.dll" "system" fn NdfRepairIncident(handle : *const core::ffi::c_void, repairex : *const RepairInfoEx, dwwait : u32) -> windows_sys::core::HRESULT);
|
||||
pub type ATTRIBUTE_TYPE = i32;
|
||||
pub const AT_BOOLEAN: ATTRIBUTE_TYPE = 1i32;
|
||||
pub const AT_GUID: ATTRIBUTE_TYPE = 11i32;
|
||||
pub const AT_INT16: ATTRIBUTE_TYPE = 4i32;
|
||||
pub const AT_INT32: ATTRIBUTE_TYPE = 6i32;
|
||||
pub const AT_INT64: ATTRIBUTE_TYPE = 8i32;
|
||||
pub const AT_INT8: ATTRIBUTE_TYPE = 2i32;
|
||||
pub const AT_INVALID: ATTRIBUTE_TYPE = 0i32;
|
||||
pub const AT_LIFE_TIME: ATTRIBUTE_TYPE = 12i32;
|
||||
pub const AT_OCTET_STRING: ATTRIBUTE_TYPE = 14i32;
|
||||
pub const AT_SOCKADDR: ATTRIBUTE_TYPE = 13i32;
|
||||
pub const AT_STRING: ATTRIBUTE_TYPE = 10i32;
|
||||
pub const AT_UINT16: ATTRIBUTE_TYPE = 5i32;
|
||||
pub const AT_UINT32: ATTRIBUTE_TYPE = 7i32;
|
||||
pub const AT_UINT64: ATTRIBUTE_TYPE = 9i32;
|
||||
pub const AT_UINT8: ATTRIBUTE_TYPE = 3i32;
|
||||
pub const DF_IMPERSONATION: u32 = 2147483648u32;
|
||||
pub const DF_TRACELESS: u32 = 1073741824u32;
|
||||
pub type DIAGNOSIS_STATUS = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DIAG_SOCKADDR {
|
||||
pub family: u16,
|
||||
pub data: [i8; 126],
|
||||
}
|
||||
impl Default for DIAG_SOCKADDR {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DS_CONFIRMED: DIAGNOSIS_STATUS = 1i32;
|
||||
pub const DS_DEFERRED: DIAGNOSIS_STATUS = 4i32;
|
||||
pub const DS_INDETERMINATE: DIAGNOSIS_STATUS = 3i32;
|
||||
pub const DS_NOT_IMPLEMENTED: DIAGNOSIS_STATUS = 0i32;
|
||||
pub const DS_PASSTHROUGH: DIAGNOSIS_STATUS = 5i32;
|
||||
pub const DS_REJECTED: DIAGNOSIS_STATUS = 2i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DiagnosticsInfo {
|
||||
pub cost: i32,
|
||||
pub flags: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HELPER_ATTRIBUTE {
|
||||
pub pwszName: windows_sys::core::PWSTR,
|
||||
pub r#type: ATTRIBUTE_TYPE,
|
||||
pub Anonymous: HELPER_ATTRIBUTE_0,
|
||||
}
|
||||
impl Default for HELPER_ATTRIBUTE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union HELPER_ATTRIBUTE_0 {
|
||||
pub Boolean: windows_sys::core::BOOL,
|
||||
pub Char: u8,
|
||||
pub Byte: u8,
|
||||
pub Short: i16,
|
||||
pub Word: u16,
|
||||
pub Int: i32,
|
||||
pub DWord: u32,
|
||||
pub Int64: i64,
|
||||
pub UInt64: u64,
|
||||
pub PWStr: windows_sys::core::PWSTR,
|
||||
pub Guid: windows_sys::core::GUID,
|
||||
pub LifeTime: LIFE_TIME,
|
||||
pub Address: DIAG_SOCKADDR,
|
||||
pub OctetString: OCTET_STRING,
|
||||
}
|
||||
impl Default for HELPER_ATTRIBUTE_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HYPOTHESIS {
|
||||
pub pwszClassName: windows_sys::core::PWSTR,
|
||||
pub pwszDescription: windows_sys::core::PWSTR,
|
||||
pub celt: u32,
|
||||
pub rgAttributes: *mut HELPER_ATTRIBUTE,
|
||||
}
|
||||
impl Default for HYPOTHESIS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct HelperAttributeInfo {
|
||||
pub pwszName: windows_sys::core::PWSTR,
|
||||
pub r#type: ATTRIBUTE_TYPE,
|
||||
}
|
||||
impl Default for HelperAttributeInfo {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct HypothesisResult {
|
||||
pub hypothesis: HYPOTHESIS,
|
||||
pub pathStatus: DIAGNOSIS_STATUS,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct LIFE_TIME {
|
||||
pub startTime: super::super::Foundation::FILETIME,
|
||||
pub endTime: super::super::Foundation::FILETIME,
|
||||
}
|
||||
pub const NDF_ADD_CAPTURE_TRACE: u32 = 1u32;
|
||||
pub const NDF_APPLY_INCLUSION_LIST_FILTER: u32 = 2u32;
|
||||
pub const NDF_ERROR_START: u32 = 63744u32;
|
||||
pub const NDF_E_BAD_PARAM: windows_sys::core::HRESULT = 0x8008F905_u32 as _;
|
||||
pub const NDF_E_CANCELLED: windows_sys::core::HRESULT = 0x8008F902_u32 as _;
|
||||
pub const NDF_E_DISABLED: windows_sys::core::HRESULT = 0x8008F904_u32 as _;
|
||||
pub const NDF_E_LENGTH_EXCEEDED: windows_sys::core::HRESULT = 0x8008F900_u32 as _;
|
||||
pub const NDF_E_NOHELPERCLASS: windows_sys::core::HRESULT = 0x8008F901_u32 as _;
|
||||
pub const NDF_E_PROBLEM_PRESENT: windows_sys::core::HRESULT = 0x8008F908_u32 as _;
|
||||
pub const NDF_E_UNKNOWN: windows_sys::core::HRESULT = 0x8008F907_u32 as _;
|
||||
pub const NDF_E_VALIDATION: windows_sys::core::HRESULT = 0x8008F906_u32 as _;
|
||||
pub const NDF_INBOUND_FLAG_EDGETRAVERSAL: u32 = 1u32;
|
||||
pub const NDF_INBOUND_FLAG_HEALTHCHECK: u32 = 2u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct OCTET_STRING {
|
||||
pub dwLength: u32,
|
||||
pub lpValue: *mut u8,
|
||||
}
|
||||
impl Default for OCTET_STRING {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type PROBLEM_TYPE = i32;
|
||||
pub const PT_DOWN_STREAM_HEALTH: PROBLEM_TYPE = 4i32;
|
||||
pub const PT_HIGHER_UTILIZATION: PROBLEM_TYPE = 16i32;
|
||||
pub const PT_HIGH_UTILIZATION: PROBLEM_TYPE = 8i32;
|
||||
pub const PT_INVALID: PROBLEM_TYPE = 0i32;
|
||||
pub const PT_LOWER_HEALTH: PROBLEM_TYPE = 2i32;
|
||||
pub const PT_LOW_HEALTH: PROBLEM_TYPE = 1i32;
|
||||
pub const PT_UP_STREAM_UTILIZATION: PROBLEM_TYPE = 32i32;
|
||||
pub const RCF_ISCONFIRMED: u32 = 2u32;
|
||||
pub const RCF_ISLEAF: u32 = 1u32;
|
||||
pub const RCF_ISTHIRDPARTY: u32 = 4u32;
|
||||
pub type REPAIR_RISK = i32;
|
||||
pub type REPAIR_SCOPE = i32;
|
||||
pub type REPAIR_STATUS = i32;
|
||||
pub const RF_CONTACT_ADMIN: u32 = 131072u32;
|
||||
pub const RF_INFORMATION_ONLY: u32 = 33554432u32;
|
||||
pub const RF_REPRO: u32 = 2097152u32;
|
||||
pub const RF_RESERVED: u32 = 1073741824u32;
|
||||
pub const RF_RESERVED_CA: u32 = 2147483648u32;
|
||||
pub const RF_RESERVED_LNI: u32 = 65536u32;
|
||||
pub const RF_SHOW_EVENTS: u32 = 8388608u32;
|
||||
pub const RF_UI_ONLY: u32 = 16777216u32;
|
||||
pub const RF_USER_ACTION: u32 = 268435456u32;
|
||||
pub const RF_USER_CONFIRMATION: u32 = 134217728u32;
|
||||
pub const RF_VALIDATE_HELPTOPIC: u32 = 4194304u32;
|
||||
pub const RF_WORKAROUND: u32 = 536870912u32;
|
||||
pub const RR_NORISK: REPAIR_RISK = 2i32;
|
||||
pub const RR_NOROLLBACK: REPAIR_RISK = 0i32;
|
||||
pub const RR_ROLLBACK: REPAIR_RISK = 1i32;
|
||||
pub const RS_APPLICATION: REPAIR_SCOPE = 2i32;
|
||||
pub const RS_DEFERRED: REPAIR_STATUS = 3i32;
|
||||
pub const RS_NOT_IMPLEMENTED: REPAIR_STATUS = 0i32;
|
||||
pub const RS_PROCESS: REPAIR_SCOPE = 3i32;
|
||||
pub const RS_REPAIRED: REPAIR_STATUS = 1i32;
|
||||
pub const RS_SYSTEM: REPAIR_SCOPE = 0i32;
|
||||
pub const RS_UNREPAIRED: REPAIR_STATUS = 2i32;
|
||||
pub const RS_USER: REPAIR_SCOPE = 1i32;
|
||||
pub const RS_USER_ACTION: REPAIR_STATUS = 4i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct RepairInfo {
|
||||
pub guid: windows_sys::core::GUID,
|
||||
pub pwszClassName: windows_sys::core::PWSTR,
|
||||
pub pwszDescription: windows_sys::core::PWSTR,
|
||||
pub sidType: u32,
|
||||
pub cost: i32,
|
||||
pub flags: u32,
|
||||
pub scope: REPAIR_SCOPE,
|
||||
pub risk: REPAIR_RISK,
|
||||
pub UiInfo: UiInfo,
|
||||
pub rootCauseIndex: i32,
|
||||
}
|
||||
impl Default for RepairInfo {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct RepairInfoEx {
|
||||
pub repair: RepairInfo,
|
||||
pub repairRank: u16,
|
||||
}
|
||||
impl Default for RepairInfoEx {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct RootCauseInfo {
|
||||
pub pwszDescription: windows_sys::core::PWSTR,
|
||||
pub rootCauseID: windows_sys::core::GUID,
|
||||
pub rootCauseFlags: u32,
|
||||
pub networkInterfaceID: windows_sys::core::GUID,
|
||||
pub pRepairs: *mut RepairInfoEx,
|
||||
pub repairCount: u16,
|
||||
}
|
||||
impl Default for RootCauseInfo {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct ShellCommandInfo {
|
||||
pub pwszOperation: windows_sys::core::PWSTR,
|
||||
pub pwszFile: windows_sys::core::PWSTR,
|
||||
pub pwszParameters: windows_sys::core::PWSTR,
|
||||
pub pwszDirectory: windows_sys::core::PWSTR,
|
||||
pub nShowCmd: u32,
|
||||
}
|
||||
impl Default for ShellCommandInfo {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const UIT_DUI: UI_INFO_TYPE = 4i32;
|
||||
pub const UIT_HELP_PANE: UI_INFO_TYPE = 3i32;
|
||||
pub const UIT_INVALID: UI_INFO_TYPE = 0i32;
|
||||
pub const UIT_NONE: UI_INFO_TYPE = 1i32;
|
||||
pub const UIT_SHELL_COMMAND: UI_INFO_TYPE = 2i32;
|
||||
pub type UI_INFO_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct UiInfo {
|
||||
pub r#type: UI_INFO_TYPE,
|
||||
pub Anonymous: UiInfo_0,
|
||||
}
|
||||
impl Default for UiInfo {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union UiInfo_0 {
|
||||
pub pwzNull: windows_sys::core::PWSTR,
|
||||
pub ShellInfo: ShellCommandInfo,
|
||||
pub pwzHelpUrl: windows_sys::core::PWSTR,
|
||||
pub pwzDui: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for UiInfo_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
+1502
File diff suppressed because it is too large.
Load diff
+1810
File diff suppressed because it is too large.
Load diff
+3870
File diff suppressed because it is too large.
Load diff
+457
@@ -0,0 +1,457 @@
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpCancelMsg(session : isize, reqid : i32) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpCleanup() -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpCleanupEx() -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpClose(session : isize) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpContextToStr(context : isize, string : *mut smiOCTETS) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpCountVbl(vbl : isize) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpCreatePdu(session : isize, pdu_type : SNMP_PDU_TYPE, request_id : i32, error_status : i32, error_index : i32, varbindlist : isize) -> isize);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpCreateSession(hwnd : super::super::Foundation:: HWND, wmsg : u32, fcallback : SNMPAPI_CALLBACK, lpclientdata : *mut core::ffi::c_void) -> isize);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpCreateVbl(session : isize, name : *mut smiOID, value : *mut smiVALUE) -> isize);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpDecodeMsg(session : isize, srcentity : *mut isize, dstentity : *mut isize, context : *mut isize, pdu : *mut isize, msgbufdesc : *mut smiOCTETS) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpDeleteVb(vbl : isize, index : u32) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpDuplicatePdu(session : isize, pdu : isize) -> isize);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpDuplicateVbl(session : isize, vbl : isize) -> isize);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpEncodeMsg(session : isize, srcentity : isize, dstentity : isize, context : isize, pdu : isize, msgbufdesc : *mut smiOCTETS) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpEntityToStr(entity : isize, size : u32, string : windows_sys::core::PSTR) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpFreeContext(context : isize) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpFreeDescriptor(syntax : u32, descriptor : *mut smiOCTETS) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpFreeEntity(entity : isize) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpFreePdu(pdu : isize) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpFreeVbl(vbl : isize) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpGetLastError(session : isize) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpGetPduData(pdu : isize, pdu_type : *mut SNMP_PDU_TYPE, request_id : *mut i32, error_status : *mut SNMP_ERROR, error_index : *mut i32, varbindlist : *mut isize) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpGetRetransmitMode(nretransmitmode : *mut SNMP_STATUS) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpGetRetry(hentity : isize, npolicyretry : *mut u32, nactualretry : *mut u32) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpGetTimeout(hentity : isize, npolicytimeout : *mut u32, nactualtimeout : *mut u32) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpGetTranslateMode(ntranslatemode : *mut SNMP_API_TRANSLATE_MODE) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpGetVb(vbl : isize, index : u32, name : *mut smiOID, value : *mut smiVALUE) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpGetVendorInfo(vendorinfo : *mut smiVENDORINFO) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpListen(hentity : isize, lstatus : SNMP_STATUS) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpListenEx(hentity : isize, lstatus : u32, nuseentityaddr : u32) -> u32);
|
||||
windows_link::link!("mgmtapi.dll" "system" fn SnmpMgrClose(session : *mut core::ffi::c_void) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("mgmtapi.dll" "system" fn SnmpMgrCtl(session : *mut core::ffi::c_void, dwctlcode : u32, lpvinbuffer : *mut core::ffi::c_void, cbinbuffer : u32, lpvoutbuffer : *mut core::ffi::c_void, cboutbuffer : u32, lpcbbytesreturned : *mut u32) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("mgmtapi.dll" "system" fn SnmpMgrGetTrap(enterprise : *mut AsnObjectIdentifier, ipaddress : *mut AsnOctetString, generictrap : *mut SNMP_GENERICTRAP, specifictrap : *mut i32, timestamp : *mut u32, variablebindings : *mut SnmpVarBindList) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("mgmtapi.dll" "system" fn SnmpMgrGetTrapEx(enterprise : *mut AsnObjectIdentifier, agentaddress : *mut AsnOctetString, sourceaddress : *mut AsnOctetString, generictrap : *mut SNMP_GENERICTRAP, specifictrap : *mut i32, community : *mut AsnOctetString, timestamp : *mut u32, variablebindings : *mut SnmpVarBindList) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("mgmtapi.dll" "system" fn SnmpMgrOidToStr(oid : *mut AsnObjectIdentifier, string : *mut windows_sys::core::PSTR) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("mgmtapi.dll" "system" fn SnmpMgrOpen(lpagentaddress : windows_sys::core::PCSTR, lpagentcommunity : windows_sys::core::PCSTR, ntimeout : i32, nretries : i32) -> *mut core::ffi::c_void);
|
||||
windows_link::link!("mgmtapi.dll" "system" fn SnmpMgrRequest(session : *mut core::ffi::c_void, requesttype : u8, variablebindings : *mut SnmpVarBindList, errorstatus : *mut SNMP_ERROR_STATUS, errorindex : *mut i32) -> i32);
|
||||
windows_link::link!("mgmtapi.dll" "system" fn SnmpMgrStrToOid(string : windows_sys::core::PCSTR, oid : *mut AsnObjectIdentifier) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("mgmtapi.dll" "system" fn SnmpMgrTrapListen(phtrapavailable : *mut super::super::Foundation:: HANDLE) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpOidCompare(xoid : *mut smiOID, yoid : *mut smiOID, maxlen : u32, result : *mut i32) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpOidCopy(srcoid : *mut smiOID, dstoid : *mut smiOID) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpOidToStr(srcoid : *const smiOID, size : u32, string : windows_sys::core::PSTR) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpOpen(hwnd : super::super::Foundation:: HWND, wmsg : u32) -> isize);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpRecvMsg(session : isize, srcentity : *mut isize, dstentity : *mut isize, context : *mut isize, pdu : *mut isize) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpRegister(session : isize, srcentity : isize, dstentity : isize, context : isize, notification : *mut smiOID, state : SNMP_STATUS) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpSendMsg(session : isize, srcentity : isize, dstentity : isize, context : isize, pdu : isize) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpSetPduData(pdu : isize, pdu_type : *const i32, request_id : *const i32, non_repeaters : *const i32, max_repetitions : *const i32, varbindlist : *const isize) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpSetPort(hentity : isize, nport : u32) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpSetRetransmitMode(nretransmitmode : SNMP_STATUS) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpSetRetry(hentity : isize, npolicyretry : u32) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpSetTimeout(hentity : isize, npolicytimeout : u32) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpSetTranslateMode(ntranslatemode : SNMP_API_TRANSLATE_MODE) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpSetVb(vbl : isize, index : u32, name : *mut smiOID, value : *mut smiVALUE) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpStartup(nmajorversion : *mut u32, nminorversion : *mut u32, nlevel : *mut u32, ntranslatemode : *mut SNMP_API_TRANSLATE_MODE, nretransmitmode : *mut SNMP_STATUS) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpStartupEx(nmajorversion : *mut u32, nminorversion : *mut u32, nlevel : *mut u32, ntranslatemode : *mut SNMP_API_TRANSLATE_MODE, nretransmitmode : *mut SNMP_STATUS) -> u32);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpStrToContext(session : isize, string : *mut smiOCTETS) -> isize);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpStrToEntity(session : isize, string : windows_sys::core::PCSTR) -> isize);
|
||||
windows_link::link!("wsnmp32.dll" "system" fn SnmpStrToOid(string : windows_sys::core::PCSTR, dstoid : *mut smiOID) -> u32);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpSvcGetUptime() -> u32);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpSvcSetLogLevel(nloglevel : SNMP_LOG));
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpSvcSetLogType(nlogtype : i32));
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilAsnAnyCpy(panydst : *mut AsnAny, panysrc : *mut AsnAny) -> i32);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilAsnAnyFree(pany : *mut AsnAny));
|
||||
windows_link::link!("snmpapi.dll" "C" fn SnmpUtilDbgPrint(nloglevel : SNMP_LOG, szformat : windows_sys::core::PCSTR, ...));
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilIdsToA(ids : *mut u32, idlength : u32) -> windows_sys::core::PSTR);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilMemAlloc(nbytes : u32) -> *mut core::ffi::c_void);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilMemFree(pmem : *mut core::ffi::c_void));
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilMemReAlloc(pmem : *mut core::ffi::c_void, nbytes : u32) -> *mut core::ffi::c_void);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilOctetsCmp(poctets1 : *mut AsnOctetString, poctets2 : *mut AsnOctetString) -> i32);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilOctetsCpy(poctetsdst : *mut AsnOctetString, poctetssrc : *mut AsnOctetString) -> i32);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilOctetsFree(poctets : *mut AsnOctetString));
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilOctetsNCmp(poctets1 : *mut AsnOctetString, poctets2 : *mut AsnOctetString, nchars : u32) -> i32);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilOidAppend(poiddst : *mut AsnObjectIdentifier, poidsrc : *mut AsnObjectIdentifier) -> i32);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilOidCmp(poid1 : *mut AsnObjectIdentifier, poid2 : *mut AsnObjectIdentifier) -> i32);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilOidCpy(poiddst : *mut AsnObjectIdentifier, poidsrc : *mut AsnObjectIdentifier) -> i32);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilOidFree(poid : *mut AsnObjectIdentifier));
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilOidNCmp(poid1 : *mut AsnObjectIdentifier, poid2 : *mut AsnObjectIdentifier, nsubids : u32) -> i32);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilOidToA(oid : *mut AsnObjectIdentifier) -> windows_sys::core::PSTR);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilPrintAsnAny(pany : *mut AsnAny));
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilPrintOid(oid : *mut AsnObjectIdentifier));
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilVarBindCpy(pvbdst : *mut SnmpVarBind, pvbsrc : *mut SnmpVarBind) -> i32);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilVarBindFree(pvb : *mut SnmpVarBind));
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilVarBindListCpy(pvbldst : *mut SnmpVarBindList, pvblsrc : *mut SnmpVarBindList) -> i32);
|
||||
windows_link::link!("snmpapi.dll" "system" fn SnmpUtilVarBindListFree(pvbl : *mut SnmpVarBindList));
|
||||
pub const ASN_APPLICATION: u32 = 64u32;
|
||||
pub const ASN_CONSTRUCTOR: u32 = 32u32;
|
||||
pub const ASN_CONTEXT: u32 = 128u32;
|
||||
pub const ASN_CONTEXTSPECIFIC: u32 = 128u32;
|
||||
pub const ASN_PRIMATIVE: u32 = 0u32;
|
||||
pub const ASN_PRIMITIVE: u32 = 0u32;
|
||||
pub const ASN_PRIVATE: u32 = 192u32;
|
||||
pub const ASN_UNIVERSAL: u32 = 0u32;
|
||||
#[repr(C, packed(4))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct AsnAny {
|
||||
pub asnType: u8,
|
||||
pub asnValue: AsnAny_0,
|
||||
}
|
||||
impl Default for AsnAny {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C, packed(4))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union AsnAny_0 {
|
||||
pub number: i32,
|
||||
pub unsigned32: u32,
|
||||
pub counter64: u64,
|
||||
pub string: AsnOctetString,
|
||||
pub bits: AsnOctetString,
|
||||
pub object: AsnObjectIdentifier,
|
||||
pub sequence: AsnOctetString,
|
||||
pub address: AsnOctetString,
|
||||
pub counter: u32,
|
||||
pub gauge: u32,
|
||||
pub ticks: u32,
|
||||
pub arbitrary: AsnOctetString,
|
||||
}
|
||||
impl Default for AsnAny_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[cfg(target_arch = "x86")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct AsnObjectIdentifier {
|
||||
pub idLength: u32,
|
||||
pub ids: *mut u32,
|
||||
}
|
||||
#[cfg(target_arch = "x86")]
|
||||
impl Default for AsnObjectIdentifier {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C, packed(4))]
|
||||
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct AsnObjectIdentifier {
|
||||
pub idLength: u32,
|
||||
pub ids: *mut u32,
|
||||
}
|
||||
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))]
|
||||
impl Default for AsnObjectIdentifier {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[cfg(target_arch = "x86")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct AsnOctetString {
|
||||
pub stream: *mut u8,
|
||||
pub length: u32,
|
||||
pub dynamic: windows_sys::core::BOOL,
|
||||
}
|
||||
#[cfg(target_arch = "x86")]
|
||||
impl Default for AsnOctetString {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C, packed(4))]
|
||||
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct AsnOctetString {
|
||||
pub stream: *mut u8,
|
||||
pub length: u32,
|
||||
pub dynamic: windows_sys::core::BOOL,
|
||||
}
|
||||
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))]
|
||||
impl Default for AsnOctetString {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const DEFAULT_SNMPTRAP_PORT_IPX: u32 = 36880u32;
|
||||
pub const DEFAULT_SNMPTRAP_PORT_UDP: u32 = 162u32;
|
||||
pub const DEFAULT_SNMP_PORT_IPX: u32 = 36879u32;
|
||||
pub const DEFAULT_SNMP_PORT_UDP: u32 = 161u32;
|
||||
pub const MAXOBJIDSIZE: u32 = 128u32;
|
||||
pub const MAXOBJIDSTRSIZE: u32 = 1408u32;
|
||||
pub const MAXVENDORINFO: u32 = 32u32;
|
||||
pub const MGMCTL_SETAGENTPORT: u32 = 1u32;
|
||||
pub type PFNSNMPCLEANUPEX = Option<unsafe extern "system" fn() -> u32>;
|
||||
pub type PFNSNMPEXTENSIONCLOSE = Option<unsafe extern "system" fn()>;
|
||||
pub type PFNSNMPEXTENSIONINIT = Option<unsafe extern "system" fn(dwuptimereference: u32, phsubagenttrapevent: *mut super::super::Foundation::HANDLE, pfirstsupportedregion: *mut AsnObjectIdentifier) -> windows_sys::core::BOOL>;
|
||||
pub type PFNSNMPEXTENSIONINITEX = Option<unsafe extern "system" fn(pnextsupportedregion: *mut AsnObjectIdentifier) -> windows_sys::core::BOOL>;
|
||||
pub type PFNSNMPEXTENSIONMONITOR = Option<unsafe extern "system" fn(pagentmgmtdata: *mut core::ffi::c_void) -> windows_sys::core::BOOL>;
|
||||
pub type PFNSNMPEXTENSIONQUERY = Option<unsafe extern "system" fn(bpdutype: u8, pvarbindlist: *mut SnmpVarBindList, perrorstatus: *mut i32, perrorindex: *mut i32) -> windows_sys::core::BOOL>;
|
||||
pub type PFNSNMPEXTENSIONQUERYEX = Option<unsafe extern "system" fn(nrequesttype: u32, ntransactionid: u32, pvarbindlist: *mut SnmpVarBindList, pcontextinfo: *mut AsnOctetString, perrorstatus: *mut i32, perrorindex: *mut i32) -> windows_sys::core::BOOL>;
|
||||
pub type PFNSNMPEXTENSIONTRAP = Option<unsafe extern "system" fn(penterpriseoid: *mut AsnObjectIdentifier, pgenerictrapid: *mut i32, pspecifictrapid: *mut i32, ptimestamp: *mut u32, pvarbindlist: *mut SnmpVarBindList) -> windows_sys::core::BOOL>;
|
||||
pub type PFNSNMPSTARTUPEX = Option<unsafe extern "system" fn(param0: *mut u32, param1: *mut u32, param2: *mut u32, param3: *mut u32, param4: *mut u32) -> u32>;
|
||||
pub const SNMPAPI_ALLOC_ERROR: u32 = 2u32;
|
||||
pub type SNMPAPI_CALLBACK = Option<unsafe extern "system" fn(hsession: isize, hwnd: super::super::Foundation::HWND, wmsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, lpclientdata: *mut core::ffi::c_void) -> u32>;
|
||||
pub const SNMPAPI_CONTEXT_INVALID: u32 = 3u32;
|
||||
pub const SNMPAPI_CONTEXT_UNKNOWN: u32 = 4u32;
|
||||
pub const SNMPAPI_ENTITY_INVALID: u32 = 5u32;
|
||||
pub const SNMPAPI_ENTITY_UNKNOWN: u32 = 6u32;
|
||||
pub const SNMPAPI_ERROR: u32 = 0u32;
|
||||
pub const SNMPAPI_FAILURE: u32 = 0u32;
|
||||
pub const SNMPAPI_HWND_INVALID: u32 = 20u32;
|
||||
pub const SNMPAPI_INDEX_INVALID: u32 = 7u32;
|
||||
pub const SNMPAPI_M2M_SUPPORT: u32 = 3u32;
|
||||
pub const SNMPAPI_MESSAGE_INVALID: u32 = 19u32;
|
||||
pub const SNMPAPI_MODE_INVALID: u32 = 16u32;
|
||||
pub const SNMPAPI_NOERROR: u32 = 1u32;
|
||||
pub const SNMPAPI_NOOP: u32 = 8u32;
|
||||
pub const SNMPAPI_NOT_INITIALIZED: u32 = 18u32;
|
||||
pub const SNMPAPI_NO_SUPPORT: u32 = 0u32;
|
||||
pub const SNMPAPI_OFF: SNMP_STATUS = 0u32;
|
||||
pub const SNMPAPI_OID_INVALID: u32 = 9u32;
|
||||
pub const SNMPAPI_ON: SNMP_STATUS = 1u32;
|
||||
pub const SNMPAPI_OPERATION_INVALID: u32 = 10u32;
|
||||
pub const SNMPAPI_OTHER_ERROR: u32 = 99u32;
|
||||
pub const SNMPAPI_OUTPUT_TRUNCATED: u32 = 11u32;
|
||||
pub const SNMPAPI_PDU_INVALID: u32 = 12u32;
|
||||
pub const SNMPAPI_SESSION_INVALID: u32 = 13u32;
|
||||
pub const SNMPAPI_SIZE_INVALID: u32 = 17u32;
|
||||
pub const SNMPAPI_SUCCESS: u32 = 1u32;
|
||||
pub const SNMPAPI_SYNTAX_INVALID: u32 = 14u32;
|
||||
pub const SNMPAPI_TL_INVALID_PARAM: u32 = 106u32;
|
||||
pub const SNMPAPI_TL_IN_USE: u32 = 107u32;
|
||||
pub const SNMPAPI_TL_NOT_AVAILABLE: u32 = 102u32;
|
||||
pub const SNMPAPI_TL_NOT_INITIALIZED: u32 = 100u32;
|
||||
pub const SNMPAPI_TL_NOT_SUPPORTED: u32 = 101u32;
|
||||
pub const SNMPAPI_TL_OTHER: u32 = 199u32;
|
||||
pub const SNMPAPI_TL_PDU_TOO_BIG: u32 = 109u32;
|
||||
pub const SNMPAPI_TL_RESOURCE_ERROR: u32 = 103u32;
|
||||
pub const SNMPAPI_TL_SRC_INVALID: u32 = 105u32;
|
||||
pub const SNMPAPI_TL_TIMEOUT: u32 = 108u32;
|
||||
pub const SNMPAPI_TL_UNDELIVERABLE: u32 = 104u32;
|
||||
pub const SNMPAPI_TRANSLATED: SNMP_API_TRANSLATE_MODE = 0u32;
|
||||
pub const SNMPAPI_UNTRANSLATED_V1: SNMP_API_TRANSLATE_MODE = 1u32;
|
||||
pub const SNMPAPI_UNTRANSLATED_V2: SNMP_API_TRANSLATE_MODE = 2u32;
|
||||
pub const SNMPAPI_V1_SUPPORT: u32 = 1u32;
|
||||
pub const SNMPAPI_V2_SUPPORT: u32 = 2u32;
|
||||
pub const SNMPAPI_VBL_INVALID: u32 = 15u32;
|
||||
pub const SNMPLISTEN_ALL_ADDR: u32 = 1u32;
|
||||
pub const SNMPLISTEN_USEENTITY_ADDR: u32 = 0u32;
|
||||
pub const SNMP_ACCESS_NONE: u32 = 0u32;
|
||||
pub const SNMP_ACCESS_NOTIFY: u32 = 1u32;
|
||||
pub const SNMP_ACCESS_READ_CREATE: u32 = 4u32;
|
||||
pub const SNMP_ACCESS_READ_ONLY: u32 = 2u32;
|
||||
pub const SNMP_ACCESS_READ_WRITE: u32 = 3u32;
|
||||
pub type SNMP_API_TRANSLATE_MODE = u32;
|
||||
pub const SNMP_AUTHAPI_INVALID_MSG_TYPE: u32 = 31u32;
|
||||
pub const SNMP_AUTHAPI_INVALID_VERSION: u32 = 30u32;
|
||||
pub const SNMP_AUTHAPI_TRIV_AUTH_FAILED: u32 = 32u32;
|
||||
pub const SNMP_BERAPI_INVALID_LENGTH: u32 = 10u32;
|
||||
pub const SNMP_BERAPI_INVALID_OBJELEM: u32 = 14u32;
|
||||
pub const SNMP_BERAPI_INVALID_TAG: u32 = 11u32;
|
||||
pub const SNMP_BERAPI_OVERFLOW: u32 = 12u32;
|
||||
pub const SNMP_BERAPI_SHORT_BUFFER: u32 = 13u32;
|
||||
pub type SNMP_ERROR = u32;
|
||||
pub const SNMP_ERRORSTATUS_AUTHORIZATIONERROR: SNMP_ERROR_STATUS = 16u32;
|
||||
pub const SNMP_ERRORSTATUS_BADVALUE: SNMP_ERROR_STATUS = 3u32;
|
||||
pub const SNMP_ERRORSTATUS_COMMITFAILED: SNMP_ERROR_STATUS = 14u32;
|
||||
pub const SNMP_ERRORSTATUS_GENERR: SNMP_ERROR_STATUS = 5u32;
|
||||
pub const SNMP_ERRORSTATUS_INCONSISTENTNAME: SNMP_ERROR_STATUS = 18u32;
|
||||
pub const SNMP_ERRORSTATUS_INCONSISTENTVALUE: SNMP_ERROR_STATUS = 12u32;
|
||||
pub const SNMP_ERRORSTATUS_NOACCESS: SNMP_ERROR_STATUS = 6u32;
|
||||
pub const SNMP_ERRORSTATUS_NOCREATION: SNMP_ERROR_STATUS = 11u32;
|
||||
pub const SNMP_ERRORSTATUS_NOERROR: SNMP_ERROR_STATUS = 0u32;
|
||||
pub const SNMP_ERRORSTATUS_NOSUCHNAME: SNMP_ERROR_STATUS = 2u32;
|
||||
pub const SNMP_ERRORSTATUS_NOTWRITABLE: SNMP_ERROR_STATUS = 17u32;
|
||||
pub const SNMP_ERRORSTATUS_READONLY: SNMP_ERROR_STATUS = 4u32;
|
||||
pub const SNMP_ERRORSTATUS_RESOURCEUNAVAILABLE: SNMP_ERROR_STATUS = 13u32;
|
||||
pub const SNMP_ERRORSTATUS_TOOBIG: SNMP_ERROR_STATUS = 1u32;
|
||||
pub const SNMP_ERRORSTATUS_UNDOFAILED: SNMP_ERROR_STATUS = 15u32;
|
||||
pub const SNMP_ERRORSTATUS_WRONGENCODING: SNMP_ERROR_STATUS = 9u32;
|
||||
pub const SNMP_ERRORSTATUS_WRONGLENGTH: SNMP_ERROR_STATUS = 8u32;
|
||||
pub const SNMP_ERRORSTATUS_WRONGTYPE: SNMP_ERROR_STATUS = 7u32;
|
||||
pub const SNMP_ERRORSTATUS_WRONGVALUE: SNMP_ERROR_STATUS = 10u32;
|
||||
pub const SNMP_ERROR_AUTHORIZATIONERROR: SNMP_ERROR = 16u32;
|
||||
pub const SNMP_ERROR_BADVALUE: SNMP_ERROR = 3u32;
|
||||
pub const SNMP_ERROR_COMMITFAILED: SNMP_ERROR = 14u32;
|
||||
pub const SNMP_ERROR_GENERR: SNMP_ERROR = 5u32;
|
||||
pub const SNMP_ERROR_INCONSISTENTNAME: SNMP_ERROR = 18u32;
|
||||
pub const SNMP_ERROR_INCONSISTENTVALUE: SNMP_ERROR = 12u32;
|
||||
pub const SNMP_ERROR_NOACCESS: SNMP_ERROR = 6u32;
|
||||
pub const SNMP_ERROR_NOCREATION: SNMP_ERROR = 11u32;
|
||||
pub const SNMP_ERROR_NOERROR: SNMP_ERROR = 0u32;
|
||||
pub const SNMP_ERROR_NOSUCHNAME: SNMP_ERROR = 2u32;
|
||||
pub const SNMP_ERROR_NOTWRITABLE: SNMP_ERROR = 17u32;
|
||||
pub const SNMP_ERROR_READONLY: SNMP_ERROR = 4u32;
|
||||
pub const SNMP_ERROR_RESOURCEUNAVAILABLE: SNMP_ERROR = 13u32;
|
||||
pub type SNMP_ERROR_STATUS = u32;
|
||||
pub const SNMP_ERROR_TOOBIG: SNMP_ERROR = 1u32;
|
||||
pub const SNMP_ERROR_UNDOFAILED: SNMP_ERROR = 15u32;
|
||||
pub const SNMP_ERROR_WRONGENCODING: SNMP_ERROR = 9u32;
|
||||
pub const SNMP_ERROR_WRONGLENGTH: SNMP_ERROR = 8u32;
|
||||
pub const SNMP_ERROR_WRONGTYPE: SNMP_ERROR = 7u32;
|
||||
pub const SNMP_ERROR_WRONGVALUE: SNMP_ERROR = 10u32;
|
||||
pub const SNMP_EXTENSION_GET: SNMP_EXTENSION_REQUEST_TYPE = 160u32;
|
||||
pub const SNMP_EXTENSION_GET_NEXT: SNMP_EXTENSION_REQUEST_TYPE = 161u32;
|
||||
pub type SNMP_EXTENSION_REQUEST_TYPE = u32;
|
||||
pub const SNMP_EXTENSION_SET_CLEANUP: SNMP_EXTENSION_REQUEST_TYPE = 226u32;
|
||||
pub const SNMP_EXTENSION_SET_COMMIT: SNMP_EXTENSION_REQUEST_TYPE = 163u32;
|
||||
pub const SNMP_EXTENSION_SET_TEST: SNMP_EXTENSION_REQUEST_TYPE = 224u32;
|
||||
pub const SNMP_EXTENSION_SET_UNDO: SNMP_EXTENSION_REQUEST_TYPE = 225u32;
|
||||
pub type SNMP_GENERICTRAP = u32;
|
||||
pub const SNMP_GENERICTRAP_AUTHFAILURE: SNMP_GENERICTRAP = 4u32;
|
||||
pub const SNMP_GENERICTRAP_COLDSTART: SNMP_GENERICTRAP = 0u32;
|
||||
pub const SNMP_GENERICTRAP_EGPNEIGHLOSS: SNMP_GENERICTRAP = 5u32;
|
||||
pub const SNMP_GENERICTRAP_ENTERSPECIFIC: SNMP_GENERICTRAP = 6u32;
|
||||
pub const SNMP_GENERICTRAP_LINKDOWN: SNMP_GENERICTRAP = 2u32;
|
||||
pub const SNMP_GENERICTRAP_LINKUP: SNMP_GENERICTRAP = 3u32;
|
||||
pub const SNMP_GENERICTRAP_WARMSTART: SNMP_GENERICTRAP = 1u32;
|
||||
pub type SNMP_LOG = i32;
|
||||
pub const SNMP_LOG_ERROR: SNMP_LOG = 2i32;
|
||||
pub const SNMP_LOG_FATAL: SNMP_LOG = 1i32;
|
||||
pub const SNMP_LOG_SILENT: SNMP_LOG = 0i32;
|
||||
pub const SNMP_LOG_TRACE: SNMP_LOG = 4i32;
|
||||
pub const SNMP_LOG_VERBOSE: SNMP_LOG = 5i32;
|
||||
pub const SNMP_LOG_WARNING: SNMP_LOG = 3i32;
|
||||
pub const SNMP_MAX_OID_LEN: u32 = 128u32;
|
||||
pub const SNMP_MEM_ALLOC_ERROR: u32 = 1u32;
|
||||
pub const SNMP_MGMTAPI_AGAIN: u32 = 45u32;
|
||||
pub const SNMP_MGMTAPI_INVALID_BUFFER: u32 = 48u32;
|
||||
pub const SNMP_MGMTAPI_INVALID_CTL: u32 = 46u32;
|
||||
pub const SNMP_MGMTAPI_INVALID_SESSION: u32 = 47u32;
|
||||
pub const SNMP_MGMTAPI_NOTRAPS: u32 = 44u32;
|
||||
pub const SNMP_MGMTAPI_SELECT_FDERRORS: u32 = 41u32;
|
||||
pub const SNMP_MGMTAPI_TIMEOUT: u32 = 40u32;
|
||||
pub const SNMP_MGMTAPI_TRAP_DUPINIT: u32 = 43u32;
|
||||
pub const SNMP_MGMTAPI_TRAP_ERRORS: u32 = 42u32;
|
||||
pub type SNMP_OUTPUT_LOG_TYPE = u32;
|
||||
pub const SNMP_OUTPUT_TO_CONSOLE: SNMP_OUTPUT_LOG_TYPE = 1u32;
|
||||
pub const SNMP_OUTPUT_TO_DEBUGGER: SNMP_OUTPUT_LOG_TYPE = 8u32;
|
||||
pub const SNMP_OUTPUT_TO_EVENTLOG: u32 = 4u32;
|
||||
pub const SNMP_OUTPUT_TO_LOGFILE: SNMP_OUTPUT_LOG_TYPE = 2u32;
|
||||
pub const SNMP_PDUAPI_INVALID_ES: u32 = 21u32;
|
||||
pub const SNMP_PDUAPI_INVALID_GT: u32 = 22u32;
|
||||
pub const SNMP_PDUAPI_UNRECOGNIZED_PDU: u32 = 20u32;
|
||||
pub const SNMP_PDU_GET: SNMP_PDU_TYPE = 160u32;
|
||||
pub const SNMP_PDU_GETBULK: SNMP_PDU_TYPE = 165u32;
|
||||
pub const SNMP_PDU_GETNEXT: SNMP_PDU_TYPE = 161u32;
|
||||
pub const SNMP_PDU_RESPONSE: SNMP_PDU_TYPE = 162u32;
|
||||
pub const SNMP_PDU_SET: SNMP_PDU_TYPE = 163u32;
|
||||
pub const SNMP_PDU_TRAP: SNMP_PDU_TYPE = 167u32;
|
||||
pub type SNMP_PDU_TYPE = u32;
|
||||
pub type SNMP_STATUS = u32;
|
||||
pub const SNMP_TRAP_AUTHFAIL: u32 = 4u32;
|
||||
pub const SNMP_TRAP_COLDSTART: u32 = 0u32;
|
||||
pub const SNMP_TRAP_EGPNEIGHBORLOSS: u32 = 5u32;
|
||||
pub const SNMP_TRAP_ENTERPRISESPECIFIC: u32 = 6u32;
|
||||
pub const SNMP_TRAP_LINKDOWN: u32 = 2u32;
|
||||
pub const SNMP_TRAP_LINKUP: u32 = 3u32;
|
||||
pub const SNMP_TRAP_WARMSTART: u32 = 1u32;
|
||||
#[repr(C, packed(4))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SnmpVarBind {
|
||||
pub name: AsnObjectIdentifier,
|
||||
pub value: AsnAny,
|
||||
}
|
||||
impl Default for SnmpVarBind {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[cfg(target_arch = "x86")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SnmpVarBindList {
|
||||
pub list: *mut SnmpVarBind,
|
||||
pub len: u32,
|
||||
}
|
||||
#[cfg(target_arch = "x86")]
|
||||
impl Default for SnmpVarBindList {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C, packed(4))]
|
||||
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct SnmpVarBindList {
|
||||
pub list: *mut SnmpVarBind,
|
||||
pub len: u32,
|
||||
}
|
||||
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))]
|
||||
impl Default for SnmpVarBindList {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct smiCNTR64 {
|
||||
pub hipart: u32,
|
||||
pub lopart: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct smiOCTETS {
|
||||
pub len: u32,
|
||||
pub ptr: *mut u8,
|
||||
}
|
||||
impl Default for smiOCTETS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct smiOID {
|
||||
pub len: u32,
|
||||
pub ptr: *mut u32,
|
||||
}
|
||||
impl Default for smiOID {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct smiVALUE {
|
||||
pub syntax: u32,
|
||||
pub value: smiVALUE_0,
|
||||
}
|
||||
impl Default for smiVALUE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union smiVALUE_0 {
|
||||
pub sNumber: i32,
|
||||
pub uNumber: u32,
|
||||
pub hNumber: smiCNTR64,
|
||||
pub string: smiOCTETS,
|
||||
pub oid: smiOID,
|
||||
pub empty: u8,
|
||||
}
|
||||
impl Default for smiVALUE_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct smiVENDORINFO {
|
||||
pub vendorName: [i8; 64],
|
||||
pub vendorContact: [i8; 64],
|
||||
pub vendorVersionId: [i8; 32],
|
||||
pub vendorVersionDate: [i8; 32],
|
||||
pub vendorEnterprise: u32,
|
||||
}
|
||||
impl Default for smiVENDORINFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
+428
@@ -0,0 +1,428 @@
|
||||
windows_link::link!("mpr.dll" "system" fn MultinetGetConnectionPerformanceA(lpnetresource : *const NETRESOURCEA, lpnetconnectinfostruct : *mut NETCONNECTINFOSTRUCT) -> u32);
|
||||
windows_link::link!("mpr.dll" "system" fn MultinetGetConnectionPerformanceW(lpnetresource : *const NETRESOURCEW, lpnetconnectinfostruct : *mut NETCONNECTINFOSTRUCT) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn NPAddConnection(lpnetresource : *const NETRESOURCEW, lppassword : windows_sys::core::PCWSTR, lpusername : windows_sys::core::PCWSTR) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn NPAddConnection3(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEW, lppassword : windows_sys::core::PCWSTR, lpusername : windows_sys::core::PCWSTR, dwflags : NET_CONNECT_FLAGS) -> u32);
|
||||
windows_link::link!("ntlanman.dll" "system" fn NPAddConnection4(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEW, lpauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, dwflags : u32, lpuseoptions : *const u8, cbuseoptions : u32) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn NPCancelConnection(lpname : windows_sys::core::PCWSTR, fforce : windows_sys::core::BOOL) -> u32);
|
||||
windows_link::link!("ntlanman.dll" "system" fn NPCancelConnection2(lpname : windows_sys::core::PCWSTR, fforce : windows_sys::core::BOOL, dwflags : u32) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn NPCloseEnum(henum : super::super::Foundation:: HANDLE) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn NPEnumResource(henum : super::super::Foundation:: HANDLE, lpccount : *mut u32, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn NPFormatNetworkName(lpremotename : windows_sys::core::PCWSTR, lpformattedname : windows_sys::core::PWSTR, lpnlength : *mut u32, dwflags : NETWORK_NAME_FORMAT_FLAGS, dwavecharperline : u32) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn NPGetCaps(ndex : u32) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn NPGetConnection(lplocalname : windows_sys::core::PCWSTR, lpremotename : windows_sys::core::PWSTR, lpnbufferlen : *mut u32) -> u32);
|
||||
windows_link::link!("ntlanman.dll" "system" fn NPGetConnection3(lplocalname : windows_sys::core::PCWSTR, dwlevel : u32, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> u32);
|
||||
windows_link::link!("ntlanman.dll" "system" fn NPGetConnectionPerformance(lpremotename : windows_sys::core::PCWSTR, lpnetconnectinfo : *mut NETCONNECTINFOSTRUCT) -> u32);
|
||||
windows_link::link!("ntlanman.dll" "system" fn NPGetPersistentUseOptionsForConnection(lpremotepath : windows_sys::core::PCWSTR, lpreaduseoptions : *const u8, cbreaduseoptions : u32, lpwriteuseoptions : *mut u8, lpsizewriteuseoptions : *mut u32) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn NPGetResourceInformation(lpnetresource : *const NETRESOURCEW, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32, lplpsystem : *mut windows_sys::core::PWSTR) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn NPGetResourceParent(lpnetresource : *const NETRESOURCEW, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn NPGetUniversalName(lplocalpath : windows_sys::core::PCWSTR, dwinfolevel : UNC_INFO_LEVEL, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn NPGetUser(lpname : windows_sys::core::PCWSTR, lpusername : windows_sys::core::PWSTR, lpnbufferlen : *mut u32) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn NPOpenEnum(dwscope : u32, dwtype : u32, dwusage : u32, lpnetresource : *const NETRESOURCEW, lphenum : *mut super::super::Foundation:: HANDLE) -> u32);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetAddConnection2A(lpnetresource : *const NETRESOURCEA, lppassword : windows_sys::core::PCSTR, lpusername : windows_sys::core::PCSTR, dwflags : NET_CONNECT_FLAGS) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetAddConnection2W(lpnetresource : *const NETRESOURCEW, lppassword : windows_sys::core::PCWSTR, lpusername : windows_sys::core::PCWSTR, dwflags : NET_CONNECT_FLAGS) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetAddConnection3A(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEA, lppassword : windows_sys::core::PCSTR, lpusername : windows_sys::core::PCSTR, dwflags : NET_CONNECT_FLAGS) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetAddConnection3W(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEW, lppassword : windows_sys::core::PCWSTR, lpusername : windows_sys::core::PCWSTR, dwflags : NET_CONNECT_FLAGS) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetAddConnection4A(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEA, pauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, dwflags : NET_CONNECT_FLAGS, lpuseoptions : *const u8, cbuseoptions : u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetAddConnection4W(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEW, pauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, dwflags : NET_CONNECT_FLAGS, lpuseoptions : *const u8, cbuseoptions : u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetAddConnectionA(lpremotename : windows_sys::core::PCSTR, lppassword : windows_sys::core::PCSTR, lplocalname : windows_sys::core::PCSTR) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetAddConnectionW(lpremotename : windows_sys::core::PCWSTR, lppassword : windows_sys::core::PCWSTR, lplocalname : windows_sys::core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetCancelConnection2A(lpname : windows_sys::core::PCSTR, dwflags : NET_CONNECT_FLAGS, fforce : windows_sys::core::BOOL) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetCancelConnection2W(lpname : windows_sys::core::PCWSTR, dwflags : NET_CONNECT_FLAGS, fforce : windows_sys::core::BOOL) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetCancelConnectionA(lpname : windows_sys::core::PCSTR, fforce : windows_sys::core::BOOL) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetCancelConnectionW(lpname : windows_sys::core::PCWSTR, fforce : windows_sys::core::BOOL) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetCloseEnum(henum : super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetConnectionDialog(hwnd : super::super::Foundation:: HWND, dwtype : u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetConnectionDialog1A(lpconndlgstruct : *mut CONNECTDLGSTRUCTA) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetConnectionDialog1W(lpconndlgstruct : *mut CONNECTDLGSTRUCTW) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetDisconnectDialog(hwnd : super::super::Foundation:: HWND, dwtype : u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetDisconnectDialog1A(lpconndlgstruct : *const DISCDLGSTRUCTA) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetDisconnectDialog1W(lpconndlgstruct : *const DISCDLGSTRUCTW) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetEnumResourceA(henum : super::super::Foundation:: HANDLE, lpccount : *mut u32, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetEnumResourceW(henum : super::super::Foundation:: HANDLE, lpccount : *mut u32, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetConnectionA(lplocalname : windows_sys::core::PCSTR, lpremotename : windows_sys::core::PSTR, lpnlength : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetConnectionW(lplocalname : windows_sys::core::PCWSTR, lpremotename : windows_sys::core::PWSTR, lpnlength : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetLastErrorA(lperror : *mut u32, lperrorbuf : windows_sys::core::PSTR, nerrorbufsize : u32, lpnamebuf : windows_sys::core::PSTR, nnamebufsize : u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetLastErrorW(lperror : *mut u32, lperrorbuf : windows_sys::core::PWSTR, nerrorbufsize : u32, lpnamebuf : windows_sys::core::PWSTR, nnamebufsize : u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetNetworkInformationA(lpprovider : windows_sys::core::PCSTR, lpnetinfostruct : *mut NETINFOSTRUCT) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetNetworkInformationW(lpprovider : windows_sys::core::PCWSTR, lpnetinfostruct : *mut NETINFOSTRUCT) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetProviderNameA(dwnettype : u32, lpprovidername : windows_sys::core::PSTR, lpbuffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetProviderNameW(dwnettype : u32, lpprovidername : windows_sys::core::PWSTR, lpbuffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetResourceInformationA(lpnetresource : *const NETRESOURCEA, lpbuffer : *mut core::ffi::c_void, lpcbbuffer : *mut u32, lplpsystem : *mut windows_sys::core::PSTR) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetResourceInformationW(lpnetresource : *const NETRESOURCEW, lpbuffer : *mut core::ffi::c_void, lpcbbuffer : *mut u32, lplpsystem : *mut windows_sys::core::PWSTR) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetResourceParentA(lpnetresource : *const NETRESOURCEA, lpbuffer : *mut core::ffi::c_void, lpcbbuffer : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetResourceParentW(lpnetresource : *const NETRESOURCEW, lpbuffer : *mut core::ffi::c_void, lpcbbuffer : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetUniversalNameA(lplocalpath : windows_sys::core::PCSTR, dwinfolevel : UNC_INFO_LEVEL, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetUniversalNameW(lplocalpath : windows_sys::core::PCWSTR, dwinfolevel : UNC_INFO_LEVEL, lpbuffer : *mut core::ffi::c_void, lpbuffersize : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetUserA(lpname : windows_sys::core::PCSTR, lpusername : windows_sys::core::PSTR, lpnlength : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetGetUserW(lpname : windows_sys::core::PCWSTR, lpusername : windows_sys::core::PWSTR, lpnlength : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetOpenEnumA(dwscope : NET_RESOURCE_SCOPE, dwtype : NET_RESOURCE_TYPE, dwusage : WNET_OPEN_ENUM_USAGE, lpnetresource : *const NETRESOURCEA, lphenum : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetOpenEnumW(dwscope : NET_RESOURCE_SCOPE, dwtype : NET_RESOURCE_TYPE, dwusage : WNET_OPEN_ENUM_USAGE, lpnetresource : *const NETRESOURCEW, lphenum : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetSetLastErrorA(err : u32, lperror : windows_sys::core::PCSTR, lpproviders : windows_sys::core::PCSTR));
|
||||
windows_link::link!("mpr.dll" "system" fn WNetSetLastErrorW(err : u32, lperror : windows_sys::core::PCWSTR, lpproviders : windows_sys::core::PCWSTR));
|
||||
windows_link::link!("mpr.dll" "system" 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) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetUseConnection4W(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEW, pauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, dwflags : u32, lpuseoptions : *const u8, cbuseoptions : u32, lpaccessname : windows_sys::core::PWSTR, lpbuffersize : *mut u32, lpresult : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetUseConnectionA(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEA, lppassword : windows_sys::core::PCSTR, lpuserid : windows_sys::core::PCSTR, dwflags : NET_CONNECT_FLAGS, lpaccessname : windows_sys::core::PSTR, lpbuffersize : *mut u32, lpresult : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("mpr.dll" "system" fn WNetUseConnectionW(hwndowner : super::super::Foundation:: HWND, lpnetresource : *const NETRESOURCEW, lppassword : windows_sys::core::PCWSTR, lpuserid : windows_sys::core::PCWSTR, dwflags : NET_CONNECT_FLAGS, lpaccessname : windows_sys::core::PWSTR, lpbuffersize : *mut u32, lpresult : *mut u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
pub const CONNDLG_CONN_POINT: CONNECTDLGSTRUCT_FLAGS = 2u32;
|
||||
pub const CONNDLG_HIDE_BOX: CONNECTDLGSTRUCT_FLAGS = 8u32;
|
||||
pub const CONNDLG_NOT_PERSIST: CONNECTDLGSTRUCT_FLAGS = 32u32;
|
||||
pub const CONNDLG_PERSIST: CONNECTDLGSTRUCT_FLAGS = 16u32;
|
||||
pub const CONNDLG_RO_PATH: CONNECTDLGSTRUCT_FLAGS = 1u32;
|
||||
pub const CONNDLG_USE_MRU: CONNECTDLGSTRUCT_FLAGS = 4u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CONNECTDLGSTRUCTA {
|
||||
pub cbStructure: u32,
|
||||
pub hwndOwner: super::super::Foundation::HWND,
|
||||
pub lpConnRes: *mut NETRESOURCEA,
|
||||
pub dwFlags: CONNECTDLGSTRUCT_FLAGS,
|
||||
pub dwDevNum: u32,
|
||||
}
|
||||
impl Default for CONNECTDLGSTRUCTA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct CONNECTDLGSTRUCTW {
|
||||
pub cbStructure: u32,
|
||||
pub hwndOwner: super::super::Foundation::HWND,
|
||||
pub lpConnRes: *mut NETRESOURCEW,
|
||||
pub dwFlags: CONNECTDLGSTRUCT_FLAGS,
|
||||
pub dwDevNum: u32,
|
||||
}
|
||||
impl Default for CONNECTDLGSTRUCTW {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type CONNECTDLGSTRUCT_FLAGS = u32;
|
||||
pub const CONNECT_CMD_SAVECRED: NET_CONNECT_FLAGS = 4096u32;
|
||||
pub const CONNECT_COMMANDLINE: NET_CONNECT_FLAGS = 2048u32;
|
||||
pub const CONNECT_CRED_RESET: NET_CONNECT_FLAGS = 8192u32;
|
||||
pub const CONNECT_CURRENT_MEDIA: NET_CONNECT_FLAGS = 512u32;
|
||||
pub const CONNECT_DEFERRED: NET_CONNECT_FLAGS = 1024u32;
|
||||
pub const CONNECT_GLOBAL_MAPPING: NET_CONNECT_FLAGS = 262144u32;
|
||||
pub const CONNECT_INTERACTIVE: NET_CONNECT_FLAGS = 8u32;
|
||||
pub const CONNECT_LOCALDRIVE: NET_CONNECT_FLAGS = 256u32;
|
||||
pub const CONNECT_NEED_DRIVE: NET_CONNECT_FLAGS = 32u32;
|
||||
pub const CONNECT_PROMPT: NET_CONNECT_FLAGS = 16u32;
|
||||
pub const CONNECT_REDIRECT: NET_CONNECT_FLAGS = 128u32;
|
||||
pub const CONNECT_REFCOUNT: NET_CONNECT_FLAGS = 64u32;
|
||||
pub const CONNECT_REQUIRE_INTEGRITY: NET_CONNECT_FLAGS = 16384u32;
|
||||
pub const CONNECT_REQUIRE_PRIVACY: NET_CONNECT_FLAGS = 32768u32;
|
||||
pub const CONNECT_RESERVED: NET_CONNECT_FLAGS = 4278190080u32;
|
||||
pub const CONNECT_TEMPORARY: NET_CONNECT_FLAGS = 4u32;
|
||||
pub const CONNECT_UPDATE_PROFILE: NET_CONNECT_FLAGS = 1u32;
|
||||
pub const CONNECT_UPDATE_RECENT: NET_CONNECT_FLAGS = 2u32;
|
||||
pub const CONNECT_WRITE_THROUGH_SEMANTICS: NET_CONNECT_FLAGS = 65536u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DISCDLGSTRUCTA {
|
||||
pub cbStructure: u32,
|
||||
pub hwndOwner: super::super::Foundation::HWND,
|
||||
pub lpLocalName: windows_sys::core::PSTR,
|
||||
pub lpRemoteName: windows_sys::core::PSTR,
|
||||
pub dwFlags: DISCDLGSTRUCT_FLAGS,
|
||||
}
|
||||
impl Default for DISCDLGSTRUCTA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DISCDLGSTRUCTW {
|
||||
pub cbStructure: u32,
|
||||
pub hwndOwner: super::super::Foundation::HWND,
|
||||
pub lpLocalName: windows_sys::core::PWSTR,
|
||||
pub lpRemoteName: windows_sys::core::PWSTR,
|
||||
pub dwFlags: DISCDLGSTRUCT_FLAGS,
|
||||
}
|
||||
impl Default for DISCDLGSTRUCTW {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type DISCDLGSTRUCT_FLAGS = u32;
|
||||
pub const DISC_NO_FORCE: DISCDLGSTRUCT_FLAGS = 64u32;
|
||||
pub const DISC_UPDATE_PROFILE: DISCDLGSTRUCT_FLAGS = 1u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NETCONNECTINFOSTRUCT {
|
||||
pub cbStructure: u32,
|
||||
pub dwFlags: u32,
|
||||
pub dwSpeed: u32,
|
||||
pub dwDelay: u32,
|
||||
pub dwOptDataSize: u32,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct NETINFOSTRUCT {
|
||||
pub cbStructure: u32,
|
||||
pub dwProviderVersion: u32,
|
||||
pub dwStatus: super::super::Foundation::WIN32_ERROR,
|
||||
pub dwCharacteristics: NETINFOSTRUCT_CHARACTERISTICS,
|
||||
pub dwHandle: usize,
|
||||
pub wNetType: u16,
|
||||
pub dwPrinters: u32,
|
||||
pub dwDrives: u32,
|
||||
}
|
||||
pub type NETINFOSTRUCT_CHARACTERISTICS = u32;
|
||||
pub const NETINFO_DISKRED: NETINFOSTRUCT_CHARACTERISTICS = 4u32;
|
||||
pub const NETINFO_DLL16: NETINFOSTRUCT_CHARACTERISTICS = 1u32;
|
||||
pub const NETINFO_PRINTERRED: NETINFOSTRUCT_CHARACTERISTICS = 8u32;
|
||||
pub const NETPROPERTY_PERSISTENT: u32 = 1u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NETRESOURCEA {
|
||||
pub dwScope: NET_RESOURCE_SCOPE,
|
||||
pub dwType: NET_RESOURCE_TYPE,
|
||||
pub dwDisplayType: u32,
|
||||
pub dwUsage: u32,
|
||||
pub lpLocalName: windows_sys::core::PSTR,
|
||||
pub lpRemoteName: windows_sys::core::PSTR,
|
||||
pub lpComment: windows_sys::core::PSTR,
|
||||
pub lpProvider: windows_sys::core::PSTR,
|
||||
}
|
||||
impl Default for NETRESOURCEA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NETRESOURCEW {
|
||||
pub dwScope: NET_RESOURCE_SCOPE,
|
||||
pub dwType: NET_RESOURCE_TYPE,
|
||||
pub dwDisplayType: u32,
|
||||
pub dwUsage: u32,
|
||||
pub lpLocalName: windows_sys::core::PWSTR,
|
||||
pub lpRemoteName: windows_sys::core::PWSTR,
|
||||
pub lpComment: windows_sys::core::PWSTR,
|
||||
pub lpProvider: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for NETRESOURCEW {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type NETWORK_NAME_FORMAT_FLAGS = u32;
|
||||
pub type NET_CONNECT_FLAGS = u32;
|
||||
pub type NET_RESOURCE_SCOPE = u32;
|
||||
pub type NET_RESOURCE_TYPE = u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NOTIFYADD {
|
||||
pub hwndOwner: super::super::Foundation::HWND,
|
||||
pub NetResource: NETRESOURCEA,
|
||||
pub dwAddFlags: NET_CONNECT_FLAGS,
|
||||
}
|
||||
impl Default for NOTIFYADD {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NOTIFYCANCEL {
|
||||
pub lpName: windows_sys::core::PWSTR,
|
||||
pub lpProvider: windows_sys::core::PWSTR,
|
||||
pub dwFlags: u32,
|
||||
pub fForce: windows_sys::core::BOOL,
|
||||
}
|
||||
impl Default for NOTIFYCANCEL {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NOTIFYINFO {
|
||||
pub dwNotifyStatus: u32,
|
||||
pub dwOperationStatus: u32,
|
||||
pub lpContext: *mut core::ffi::c_void,
|
||||
}
|
||||
impl Default for NOTIFYINFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const NOTIFY_POST: u32 = 2u32;
|
||||
pub const NOTIFY_PRE: u32 = 1u32;
|
||||
pub type NPDIRECTORY_NOTIFY_OPERATION = u32;
|
||||
pub type NP_PROPERTY_DIALOG_SELECTION = u32;
|
||||
pub type PF_AddConnectNotify = Option<unsafe extern "system" fn(lpnotifyinfo: *mut NOTIFYINFO, lpaddinfo: *const NOTIFYADD) -> u32>;
|
||||
pub type PF_CancelConnectNotify = Option<unsafe extern "system" fn(lpnotifyinfo: *mut NOTIFYINFO, lpcancelinfo: *const NOTIFYCANCEL) -> u32>;
|
||||
pub type PF_NPAddConnection = Option<unsafe extern "system" fn(lpnetresource: *const NETRESOURCEW, lppassword: windows_sys::core::PCWSTR, lpusername: windows_sys::core::PCWSTR) -> u32>;
|
||||
pub type PF_NPAddConnection3 = Option<unsafe extern "system" fn(hwndowner: super::super::Foundation::HWND, lpnetresource: *const NETRESOURCEW, lppassword: windows_sys::core::PCWSTR, lpusername: windows_sys::core::PCWSTR, dwflags: u32) -> u32>;
|
||||
pub type PF_NPAddConnection4 = Option<unsafe extern "system" fn(hwndowner: super::super::Foundation::HWND, lpnetresource: *const NETRESOURCEW, lpauthbuffer: *const core::ffi::c_void, cbauthbuffer: u32, dwflags: u32, lpuseoptions: *const u8, cbuseoptions: u32) -> u32>;
|
||||
pub type PF_NPCancelConnection = Option<unsafe extern "system" fn(lpname: windows_sys::core::PCWSTR, fforce: windows_sys::core::BOOL) -> u32>;
|
||||
pub type PF_NPCancelConnection2 = Option<unsafe extern "system" fn(lpname: windows_sys::core::PCWSTR, fforce: windows_sys::core::BOOL, dwflags: u32) -> u32>;
|
||||
pub type PF_NPCloseEnum = Option<unsafe extern "system" fn(henum: super::super::Foundation::HANDLE) -> u32>;
|
||||
pub type PF_NPDeviceMode = Option<unsafe extern "system" fn(hparent: super::super::Foundation::HWND) -> u32>;
|
||||
pub type PF_NPDirectoryNotify = Option<unsafe extern "system" fn(hwnd: super::super::Foundation::HWND, lpdir: windows_sys::core::PCWSTR, dwoper: u32) -> u32>;
|
||||
pub type PF_NPEnumResource = Option<unsafe extern "system" fn(henum: super::super::Foundation::HANDLE, lpccount: *mut u32, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> u32>;
|
||||
pub type PF_NPFMXEditPerm = Option<unsafe extern "system" fn(lpdrivename: windows_sys::core::PCWSTR, hwndfmx: super::super::Foundation::HWND, ndialogtype: u32) -> u32>;
|
||||
pub type PF_NPFMXGetPermCaps = Option<unsafe extern "system" fn(lpdrivename: windows_sys::core::PCWSTR) -> u32>;
|
||||
pub type PF_NPFMXGetPermHelp = Option<unsafe extern "system" fn(lpdrivename: windows_sys::core::PCWSTR, ndialogtype: u32, fdirectory: windows_sys::core::BOOL, lpfilenamebuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32, lpnhelpcontext: *mut u32) -> u32>;
|
||||
pub type PF_NPFormatNetworkName = Option<unsafe extern "system" fn(lpremotename: windows_sys::core::PCWSTR, lpformattedname: windows_sys::core::PWSTR, lpnlength: *mut u32, dwflags: u32, dwavecharperline: u32) -> u32>;
|
||||
pub type PF_NPGetCaps = Option<unsafe extern "system" fn(ndex: u32) -> u32>;
|
||||
pub type PF_NPGetConnection = Option<unsafe extern "system" fn(lplocalname: windows_sys::core::PCWSTR, lpremotename: windows_sys::core::PWSTR, lpnbufferlen: *mut u32) -> u32>;
|
||||
pub type PF_NPGetConnection3 = Option<unsafe extern "system" fn(lplocalname: windows_sys::core::PCWSTR, dwlevel: u32, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> u32>;
|
||||
pub type PF_NPGetConnectionPerformance = Option<unsafe extern "system" fn(lpremotename: windows_sys::core::PCWSTR, lpnetconnectinfo: *mut NETCONNECTINFOSTRUCT) -> u32>;
|
||||
pub type PF_NPGetDirectoryType = Option<unsafe extern "system" fn(lpname: windows_sys::core::PCWSTR, lptype: *const i32, bflushcache: windows_sys::core::BOOL) -> u32>;
|
||||
pub type PF_NPGetPersistentUseOptionsForConnection = Option<unsafe extern "system" fn(lpremotepath: windows_sys::core::PCWSTR, lpreaduseoptions: *const u8, cbreaduseoptions: u32, lpwriteuseoptions: *mut u8, lpsizewriteuseoptions: *mut u32) -> u32>;
|
||||
pub type PF_NPGetPropertyText = Option<unsafe extern "system" fn(ibutton: u32, npropsel: u32, lpname: windows_sys::core::PCWSTR, lpbuttonname: windows_sys::core::PWSTR, nbuttonnamelen: u32, ntype: u32) -> u32>;
|
||||
pub type PF_NPGetResourceInformation = Option<unsafe extern "system" fn(lpnetresource: *const NETRESOURCEW, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32, lplpsystem: *mut windows_sys::core::PWSTR) -> u32>;
|
||||
pub type PF_NPGetResourceParent = Option<unsafe extern "system" fn(lpnetresource: *const NETRESOURCEW, lpbuffer: *mut core::ffi::c_void, lpbuffersize: *mut u32) -> u32>;
|
||||
pub type PF_NPGetUniversalName = Option<unsafe extern "system" fn(lplocalpath: windows_sys::core::PCWSTR, dwinfolevel: u32, lpbuffer: *mut core::ffi::c_void, lpnbuffersize: *mut u32) -> u32>;
|
||||
pub type PF_NPGetUser = Option<unsafe extern "system" fn(lpname: windows_sys::core::PCWSTR, lpusername: windows_sys::core::PWSTR, lpnbufferlen: *mut u32) -> u32>;
|
||||
pub type PF_NPLogonNotify = Option<unsafe extern "system" fn(lplogonid: *const super::super::Foundation::LUID, lpauthentinfotype: windows_sys::core::PCWSTR, lpauthentinfo: *const core::ffi::c_void, lppreviousauthentinfotype: windows_sys::core::PCWSTR, lppreviousauthentinfo: *const core::ffi::c_void, lpstationname: windows_sys::core::PCWSTR, stationhandle: *const core::ffi::c_void, lplogonscript: *mut windows_sys::core::PWSTR) -> u32>;
|
||||
pub type PF_NPOpenEnum = Option<unsafe extern "system" fn(dwscope: u32, dwtype: u32, dwusage: u32, lpnetresource: *const NETRESOURCEW, lphenum: *mut super::super::Foundation::HANDLE) -> u32>;
|
||||
pub type PF_NPPasswordChangeNotify = Option<unsafe extern "system" fn(lpauthentinfotype: windows_sys::core::PCWSTR, lpauthentinfo: *const core::ffi::c_void, lppreviousauthentinfotype: windows_sys::core::PCWSTR, lppreviousauthentinfo: *const core::ffi::c_void, lpstationname: windows_sys::core::PCWSTR, stationhandle: *const core::ffi::c_void, dwchangeinfo: u32) -> u32>;
|
||||
pub type PF_NPPropertyDialog = Option<unsafe extern "system" fn(hwndparent: super::super::Foundation::HWND, ibuttondlg: u32, npropsel: u32, lpfilename: windows_sys::core::PCWSTR, ntype: u32) -> u32>;
|
||||
pub type PF_NPSearchDialog = Option<unsafe extern "system" fn(hwndparent: super::super::Foundation::HWND, lpnetresource: *const NETRESOURCEW, lpbuffer: *mut core::ffi::c_void, cbbuffer: u32, lpnflags: *mut u32) -> u32>;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct REMOTE_NAME_INFOA {
|
||||
pub lpUniversalName: windows_sys::core::PSTR,
|
||||
pub lpConnectionName: windows_sys::core::PSTR,
|
||||
pub lpRemainingPath: windows_sys::core::PSTR,
|
||||
}
|
||||
impl Default for REMOTE_NAME_INFOA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct REMOTE_NAME_INFOW {
|
||||
pub lpUniversalName: windows_sys::core::PWSTR,
|
||||
pub lpConnectionName: windows_sys::core::PWSTR,
|
||||
pub lpRemainingPath: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for REMOTE_NAME_INFOW {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const REMOTE_NAME_INFO_LEVEL: UNC_INFO_LEVEL = 2u32;
|
||||
pub const RESOURCEDISPLAYTYPE_DIRECTORY: u32 = 9u32;
|
||||
pub const RESOURCEDISPLAYTYPE_NDSCONTAINER: u32 = 11u32;
|
||||
pub const RESOURCEDISPLAYTYPE_NETWORK: u32 = 6u32;
|
||||
pub const RESOURCEDISPLAYTYPE_ROOT: u32 = 7u32;
|
||||
pub const RESOURCEDISPLAYTYPE_SHAREADMIN: u32 = 8u32;
|
||||
pub const RESOURCETYPE_ANY: NET_RESOURCE_TYPE = 0u32;
|
||||
pub const RESOURCETYPE_DISK: NET_RESOURCE_TYPE = 1u32;
|
||||
pub const RESOURCETYPE_PRINT: NET_RESOURCE_TYPE = 2u32;
|
||||
pub const RESOURCETYPE_RESERVED: u32 = 8u32;
|
||||
pub const RESOURCETYPE_UNKNOWN: u32 = 4294967295u32;
|
||||
pub const RESOURCEUSAGE_ALL: WNET_OPEN_ENUM_USAGE = 19u32;
|
||||
pub const RESOURCEUSAGE_ATTACHED: WNET_OPEN_ENUM_USAGE = 16u32;
|
||||
pub const RESOURCEUSAGE_CONNECTABLE: WNET_OPEN_ENUM_USAGE = 1u32;
|
||||
pub const RESOURCEUSAGE_CONTAINER: WNET_OPEN_ENUM_USAGE = 2u32;
|
||||
pub const RESOURCEUSAGE_NOLOCALDEVICE: u32 = 4u32;
|
||||
pub const RESOURCEUSAGE_NONE: WNET_OPEN_ENUM_USAGE = 0u32;
|
||||
pub const RESOURCEUSAGE_RESERVED: u32 = 2147483648u32;
|
||||
pub const RESOURCEUSAGE_SIBLING: u32 = 8u32;
|
||||
pub const RESOURCE_CONNECTED: NET_RESOURCE_SCOPE = 1u32;
|
||||
pub const RESOURCE_CONTEXT: NET_RESOURCE_SCOPE = 5u32;
|
||||
pub const RESOURCE_GLOBALNET: NET_RESOURCE_SCOPE = 2u32;
|
||||
pub const RESOURCE_RECENT: u32 = 4u32;
|
||||
pub const RESOURCE_REMEMBERED: NET_RESOURCE_SCOPE = 3u32;
|
||||
pub type UNC_INFO_LEVEL = u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct UNIVERSAL_NAME_INFOA {
|
||||
pub lpUniversalName: windows_sys::core::PSTR,
|
||||
}
|
||||
impl Default for UNIVERSAL_NAME_INFOA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct UNIVERSAL_NAME_INFOW {
|
||||
pub lpUniversalName: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for UNIVERSAL_NAME_INFOW {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const UNIVERSAL_NAME_INFO_LEVEL: UNC_INFO_LEVEL = 1u32;
|
||||
pub const WNCON_DYNAMIC: u32 = 8u32;
|
||||
pub const WNCON_FORNETCARD: u32 = 1u32;
|
||||
pub const WNCON_NOTROUTED: u32 = 2u32;
|
||||
pub const WNCON_SLOWLINK: u32 = 4u32;
|
||||
pub const WNDN_MKDIR: NPDIRECTORY_NOTIFY_OPERATION = 1u32;
|
||||
pub const WNDN_MVDIR: NPDIRECTORY_NOTIFY_OPERATION = 3u32;
|
||||
pub const WNDN_RMDIR: NPDIRECTORY_NOTIFY_OPERATION = 2u32;
|
||||
pub const WNDT_NETWORK: u32 = 1u32;
|
||||
pub const WNDT_NORMAL: u32 = 0u32;
|
||||
pub type WNET_OPEN_ENUM_USAGE = u32;
|
||||
pub const WNFMT_ABBREVIATED: NETWORK_NAME_FORMAT_FLAGS = 2u32;
|
||||
pub const WNFMT_CONNECTION: u32 = 32u32;
|
||||
pub const WNFMT_INENUM: u32 = 16u32;
|
||||
pub const WNFMT_MULTILINE: NETWORK_NAME_FORMAT_FLAGS = 1u32;
|
||||
pub const WNGETCON_CONNECTED: u32 = 0u32;
|
||||
pub const WNGETCON_DISCONNECTED: u32 = 1u32;
|
||||
pub const WNNC_ADMIN: u32 = 9u32;
|
||||
pub const WNNC_ADM_DIRECTORYNOTIFY: u32 = 2u32;
|
||||
pub const WNNC_ADM_GETDIRECTORYTYPE: u32 = 1u32;
|
||||
pub const WNNC_CONNECTION: u32 = 6u32;
|
||||
pub const WNNC_CONNECTION_FLAGS: u32 = 13u32;
|
||||
pub const WNNC_CON_ADDCONNECTION: u32 = 1u32;
|
||||
pub const WNNC_CON_ADDCONNECTION3: u32 = 8u32;
|
||||
pub const WNNC_CON_ADDCONNECTION4: u32 = 16u32;
|
||||
pub const WNNC_CON_CANCELCONNECTION: u32 = 2u32;
|
||||
pub const WNNC_CON_CANCELCONNECTION2: u32 = 32u32;
|
||||
pub const WNNC_CON_DEFER: u32 = 128u32;
|
||||
pub const WNNC_CON_GETCONNECTIONS: u32 = 4u32;
|
||||
pub const WNNC_CON_GETPERFORMANCE: u32 = 64u32;
|
||||
pub const WNNC_DIALOG: u32 = 8u32;
|
||||
pub const WNNC_DLG_DEVICEMODE: u32 = 1u32;
|
||||
pub const WNNC_DLG_FORMATNETWORKNAME: u32 = 128u32;
|
||||
pub const WNNC_DLG_GETRESOURCEINFORMATION: u32 = 2048u32;
|
||||
pub const WNNC_DLG_GETRESOURCEPARENT: u32 = 512u32;
|
||||
pub const WNNC_DLG_PERMISSIONEDITOR: u32 = 256u32;
|
||||
pub const WNNC_DLG_PROPERTYDIALOG: u32 = 32u32;
|
||||
pub const WNNC_DLG_SEARCHDIALOG: u32 = 64u32;
|
||||
pub const WNNC_DRIVER_VERSION: u32 = 3u32;
|
||||
pub const WNNC_ENUMERATION: u32 = 11u32;
|
||||
pub const WNNC_ENUM_CONTEXT: u32 = 4u32;
|
||||
pub const WNNC_ENUM_GLOBAL: u32 = 1u32;
|
||||
pub const WNNC_ENUM_LOCAL: u32 = 2u32;
|
||||
pub const WNNC_ENUM_SHAREABLE: u32 = 8u32;
|
||||
pub const WNNC_NET_NONE: u32 = 0u32;
|
||||
pub const WNNC_NET_TYPE: u32 = 2u32;
|
||||
pub const WNNC_SPEC_VERSION: u32 = 1u32;
|
||||
pub const WNNC_SPEC_VERSION51: u32 = 327681u32;
|
||||
pub const WNNC_START: u32 = 12u32;
|
||||
pub const WNNC_USER: u32 = 4u32;
|
||||
pub const WNNC_USR_GETUSER: u32 = 1u32;
|
||||
pub const WNNC_WAIT_FOR_START: u32 = 1u32;
|
||||
pub const WNPERMC_AUDIT: u32 = 2u32;
|
||||
pub const WNPERMC_OWNER: u32 = 4u32;
|
||||
pub const WNPERMC_PERM: u32 = 1u32;
|
||||
pub type WNPERM_DLG = u32;
|
||||
pub const WNPERM_DLG_AUDIT: WNPERM_DLG = 1u32;
|
||||
pub const WNPERM_DLG_OWNER: WNPERM_DLG = 2u32;
|
||||
pub const WNPERM_DLG_PERM: WNPERM_DLG = 0u32;
|
||||
pub const WNPS_DIR: NP_PROPERTY_DIALOG_SELECTION = 1u32;
|
||||
pub const WNPS_FILE: NP_PROPERTY_DIALOG_SELECTION = 0u32;
|
||||
pub const WNPS_MULT: NP_PROPERTY_DIALOG_SELECTION = 2u32;
|
||||
pub const WNSRCH_REFRESH_FIRST_LEVEL: u32 = 1u32;
|
||||
pub const WNTYPE_COMM: u32 = 4u32;
|
||||
pub const WNTYPE_DRIVE: u32 = 1u32;
|
||||
pub const WNTYPE_FILE: u32 = 2u32;
|
||||
pub const WNTYPE_PRINTER: u32 = 3u32;
|
||||
pub const WN_CREDENTIAL_CLASS: u32 = 2u32;
|
||||
pub const WN_NETWORK_CLASS: u32 = 1u32;
|
||||
pub const WN_NT_PASSWORD_CHANGED: u32 = 2u32;
|
||||
pub const WN_PRIMARY_AUTHENT_CLASS: u32 = 4u32;
|
||||
pub const WN_SERVICE_CLASS: u32 = 8u32;
|
||||
pub const WN_VALID_LOGON_ACCOUNT: u32 = 1u32;
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
windows_link::link!("netapi32.dll" "system" fn DavAddConnection(connectionhandle : *mut super::super::Foundation:: HANDLE, remotename : windows_sys::core::PCWSTR, username : windows_sys::core::PCWSTR, password : windows_sys::core::PCWSTR, clientcert : *const u8, certsize : u32) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn DavCancelConnectionsToServer(lpname : windows_sys::core::PCWSTR, fforce : windows_sys::core::BOOL) -> u32);
|
||||
windows_link::link!("netapi32.dll" "system" fn DavDeleteConnection(connectionhandle : super::super::Foundation:: HANDLE) -> u32);
|
||||
windows_link::link!("netapi32.dll" "system" fn DavFlushFile(hfile : super::super::Foundation:: HANDLE) -> u32);
|
||||
windows_link::link!("netapi32.dll" "system" fn DavGetExtendedError(hfile : super::super::Foundation:: HANDLE, exterror : *mut u32, exterrorstring : windows_sys::core::PWSTR, cchsize : *mut u32) -> u32);
|
||||
windows_link::link!("netapi32.dll" "system" fn DavGetHTTPFromUNCPath(uncpath : windows_sys::core::PCWSTR, url : windows_sys::core::PWSTR, lpsize : *mut u32) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn DavGetTheLockOwnerOfTheFile(filename : windows_sys::core::PCWSTR, lockownername : windows_sys::core::PWSTR, lockownernamelengthinbytes : *mut u32) -> u32);
|
||||
windows_link::link!("netapi32.dll" "system" fn DavGetUNCFromHTTPPath(url : windows_sys::core::PCWSTR, uncpath : windows_sys::core::PWSTR, lpsize : *mut u32) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn DavInvalidateCache(urlname : windows_sys::core::PCWSTR) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn DavRegisterAuthCallback(callback : PFNDAVAUTHCALLBACK, version : u32) -> u32);
|
||||
windows_link::link!("davclnt.dll" "system" fn DavUnregisterAuthCallback(hcallback : u32));
|
||||
pub type AUTHNEXTSTEP = i32;
|
||||
pub const CancelRequest: AUTHNEXTSTEP = 2i32;
|
||||
pub const DAV_AUTHN_SCHEME_BASIC: u32 = 1u32;
|
||||
pub const DAV_AUTHN_SCHEME_CERT: u32 = 65536u32;
|
||||
pub const DAV_AUTHN_SCHEME_DIGEST: u32 = 8u32;
|
||||
pub const DAV_AUTHN_SCHEME_FBA: u32 = 1048576u32;
|
||||
pub const DAV_AUTHN_SCHEME_NEGOTIATE: u32 = 16u32;
|
||||
pub const DAV_AUTHN_SCHEME_NTLM: u32 = 2u32;
|
||||
pub const DAV_AUTHN_SCHEME_PASSPORT: u32 = 4u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DAV_CALLBACK_AUTH_BLOB {
|
||||
pub pBuffer: *mut core::ffi::c_void,
|
||||
pub ulSize: u32,
|
||||
pub ulType: u32,
|
||||
}
|
||||
impl Default for DAV_CALLBACK_AUTH_BLOB {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DAV_CALLBACK_AUTH_UNP {
|
||||
pub pszUserName: windows_sys::core::PWSTR,
|
||||
pub ulUserNameLength: u32,
|
||||
pub pszPassword: windows_sys::core::PWSTR,
|
||||
pub ulPasswordLength: u32,
|
||||
}
|
||||
impl Default for DAV_CALLBACK_AUTH_UNP {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct DAV_CALLBACK_CRED {
|
||||
pub AuthBlob: DAV_CALLBACK_AUTH_BLOB,
|
||||
pub UNPBlob: DAV_CALLBACK_AUTH_UNP,
|
||||
pub bAuthBlobValid: windows_sys::core::BOOL,
|
||||
pub bSave: windows_sys::core::BOOL,
|
||||
}
|
||||
pub const DefaultBehavior: AUTHNEXTSTEP = 0i32;
|
||||
pub type PFNDAVAUTHCALLBACK = Option<unsafe extern "system" fn(lpwzservername: windows_sys::core::PCWSTR, lpwzremotename: windows_sys::core::PCWSTR, dwauthscheme: u32, dwflags: u32, pcallbackcred: *mut DAV_CALLBACK_CRED, nextstep: *mut AUTHNEXTSTEP, pfreecred: *mut PFNDAVAUTHCALLBACK_FREECRED) -> u32>;
|
||||
pub type PFNDAVAUTHCALLBACK_FREECRED = Option<unsafe extern "system" fn(pbuffer: *const core::ffi::c_void) -> u32>;
|
||||
pub const RetryRequest: AUTHNEXTSTEP = 1i32;
|
||||
+5206
File diff suppressed because it is too large.
Load diff
+139
@@ -0,0 +1,139 @@
|
||||
windows_link::link!("ondemandconnroutehelper.dll" "system" fn FreeInterfaceContextTable(interfacecontexttable : *const NET_INTERFACE_CONTEXT_TABLE));
|
||||
windows_link::link!("ondemandconnroutehelper.dll" "system" fn GetInterfaceContextTableForHostName(hostname : windows_sys::core::PCWSTR, proxyname : windows_sys::core::PCWSTR, flags : u32, connectionprofilefilterrawdata : *const u8, connectionprofilefilterrawdatasize : u32, interfacecontexttable : *mut *mut NET_INTERFACE_CONTEXT_TABLE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ondemandconnroutehelper.dll" "system" fn OnDemandGetRoutingHint(destinationhostname : windows_sys::core::PCWSTR, interfaceindex : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ondemandconnroutehelper.dll" "system" fn OnDemandRegisterNotification(callback : ONDEMAND_NOTIFICATION_CALLBACK, callbackcontext : *const core::ffi::c_void, registrationhandle : *mut super::super::Foundation:: HANDLE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("ondemandconnroutehelper.dll" "system" fn OnDemandUnRegisterNotification(registrationhandle : super::super::Foundation:: HANDLE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("wcmapi.dll" "system" fn WcmFreeMemory(pmemory : *mut core::ffi::c_void));
|
||||
windows_link::link!("wcmapi.dll" "system" fn WcmGetProfileList(preserved : *const core::ffi::c_void, ppprofilelist : *mut *mut WCM_PROFILE_INFO_LIST) -> u32);
|
||||
windows_link::link!("wcmapi.dll" "system" fn WcmQueryProperty(pinterface : *const windows_sys::core::GUID, strprofilename : windows_sys::core::PCWSTR, property : WCM_PROPERTY, preserved : *const core::ffi::c_void, pdwdatasize : *mut u32, ppdata : *mut *mut u8) -> u32);
|
||||
windows_link::link!("wcmapi.dll" "system" fn WcmSetProfileList(pprofilelist : *const WCM_PROFILE_INFO_LIST, dwposition : u32, fignoreunknownprofiles : windows_sys::core::BOOL, preserved : *const core::ffi::c_void) -> u32);
|
||||
windows_link::link!("wcmapi.dll" "system" fn WcmSetProperty(pinterface : *const windows_sys::core::GUID, strprofilename : windows_sys::core::PCWSTR, property : WCM_PROPERTY, preserved : *const core::ffi::c_void, dwdatasize : u32, pbdata : *const u8) -> u32);
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NET_INTERFACE_CONTEXT {
|
||||
pub InterfaceIndex: u32,
|
||||
pub ConfigurationName: windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for NET_INTERFACE_CONTEXT {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NET_INTERFACE_CONTEXT_TABLE {
|
||||
pub InterfaceContextHandle: super::super::Foundation::HANDLE,
|
||||
pub NumberOfEntries: u32,
|
||||
pub InterfaceContextArray: *mut NET_INTERFACE_CONTEXT,
|
||||
}
|
||||
impl Default for NET_INTERFACE_CONTEXT_TABLE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const NET_INTERFACE_FLAG_CONNECT_IF_NEEDED: u32 = 1u32;
|
||||
pub const NET_INTERFACE_FLAG_NONE: u32 = 0u32;
|
||||
pub type ONDEMAND_NOTIFICATION_CALLBACK = Option<unsafe extern "system" fn(param0: *const core::ffi::c_void)>;
|
||||
pub const WCM_API_VERSION: u32 = 1u32;
|
||||
pub const WCM_API_VERSION_1_0: u32 = 1u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WCM_BILLING_CYCLE_INFO {
|
||||
pub StartDate: super::super::Foundation::FILETIME,
|
||||
pub Duration: WCM_TIME_INTERVAL,
|
||||
pub Reset: windows_sys::core::BOOL,
|
||||
}
|
||||
pub type WCM_CONNECTION_COST = i32;
|
||||
pub const WCM_CONNECTION_COST_APPROACHINGDATALIMIT: WCM_CONNECTION_COST = 524288i32;
|
||||
pub const WCM_CONNECTION_COST_CONGESTED: WCM_CONNECTION_COST = 131072i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WCM_CONNECTION_COST_DATA {
|
||||
pub ConnectionCost: u32,
|
||||
pub CostSource: WCM_CONNECTION_COST_SOURCE,
|
||||
}
|
||||
pub const WCM_CONNECTION_COST_FIXED: WCM_CONNECTION_COST = 2i32;
|
||||
pub const WCM_CONNECTION_COST_OVERDATALIMIT: WCM_CONNECTION_COST = 65536i32;
|
||||
pub const WCM_CONNECTION_COST_ROAMING: WCM_CONNECTION_COST = 262144i32;
|
||||
pub type WCM_CONNECTION_COST_SOURCE = i32;
|
||||
pub const WCM_CONNECTION_COST_SOURCE_DEFAULT: WCM_CONNECTION_COST_SOURCE = 0i32;
|
||||
pub const WCM_CONNECTION_COST_SOURCE_GP: WCM_CONNECTION_COST_SOURCE = 1i32;
|
||||
pub const WCM_CONNECTION_COST_SOURCE_OPERATOR: WCM_CONNECTION_COST_SOURCE = 3i32;
|
||||
pub const WCM_CONNECTION_COST_SOURCE_USER: WCM_CONNECTION_COST_SOURCE = 2i32;
|
||||
pub const WCM_CONNECTION_COST_UNKNOWN: WCM_CONNECTION_COST = 0i32;
|
||||
pub const WCM_CONNECTION_COST_UNRESTRICTED: WCM_CONNECTION_COST = 1i32;
|
||||
pub const WCM_CONNECTION_COST_VARIABLE: WCM_CONNECTION_COST = 4i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WCM_DATAPLAN_STATUS {
|
||||
pub UsageData: WCM_USAGE_DATA,
|
||||
pub DataLimitInMegabytes: u32,
|
||||
pub InboundBandwidthInKbps: u32,
|
||||
pub OutboundBandwidthInKbps: u32,
|
||||
pub BillingCycle: WCM_BILLING_CYCLE_INFO,
|
||||
pub MaxTransferSizeInMegabytes: u32,
|
||||
pub Reserved: u32,
|
||||
}
|
||||
pub const WCM_MAX_PROFILE_NAME: u32 = 256u32;
|
||||
pub type WCM_MEDIA_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WCM_POLICY_VALUE {
|
||||
pub fValue: windows_sys::core::BOOL,
|
||||
pub fIsGroupPolicy: windows_sys::core::BOOL,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WCM_PROFILE_INFO {
|
||||
pub strProfileName: [u16; 256],
|
||||
pub AdapterGUID: windows_sys::core::GUID,
|
||||
pub Media: WCM_MEDIA_TYPE,
|
||||
}
|
||||
impl Default for WCM_PROFILE_INFO {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WCM_PROFILE_INFO_LIST {
|
||||
pub dwNumberOfItems: u32,
|
||||
pub ProfileInfo: [WCM_PROFILE_INFO; 1],
|
||||
}
|
||||
impl Default for WCM_PROFILE_INFO_LIST {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type WCM_PROPERTY = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WCM_TIME_INTERVAL {
|
||||
pub wYear: u16,
|
||||
pub wMonth: u16,
|
||||
pub wDay: u16,
|
||||
pub wHour: u16,
|
||||
pub wMinute: u16,
|
||||
pub wSecond: u16,
|
||||
pub wMilliseconds: u16,
|
||||
}
|
||||
pub const WCM_UNKNOWN_DATAPLAN_STATUS: u32 = 4294967295u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WCM_USAGE_DATA {
|
||||
pub UsageInMegabytes: u32,
|
||||
pub LastSyncTime: super::super::Foundation::FILETIME,
|
||||
}
|
||||
pub const wcm_global_property_domain_policy: WCM_PROPERTY = 0i32;
|
||||
pub const wcm_global_property_minimize_policy: WCM_PROPERTY = 1i32;
|
||||
pub const wcm_global_property_powermanagement_policy: WCM_PROPERTY = 3i32;
|
||||
pub const wcm_global_property_roaming_policy: WCM_PROPERTY = 2i32;
|
||||
pub const wcm_intf_property_connection_cost: WCM_PROPERTY = 4i32;
|
||||
pub const wcm_intf_property_dataplan_status: WCM_PROPERTY = 5i32;
|
||||
pub const wcm_intf_property_hotspot_profile: WCM_PROPERTY = 6i32;
|
||||
pub const wcm_media_ethernet: WCM_MEDIA_TYPE = 1i32;
|
||||
pub const wcm_media_invalid: WCM_MEDIA_TYPE = 4i32;
|
||||
pub const wcm_media_max: WCM_MEDIA_TYPE = 5i32;
|
||||
pub const wcm_media_mbn: WCM_MEDIA_TYPE = 3i32;
|
||||
pub const wcm_media_unknown: WCM_MEDIA_TYPE = 0i32;
|
||||
pub const wcm_media_wlan: WCM_MEDIA_TYPE = 2i32;
|
||||
+4971
File diff suppressed because it is too large.
Load diff
Vendored
+326
@@ -0,0 +1,326 @@
|
||||
windows_link::link!("netshell.dll" "system" fn NcFreeNetconProperties(pprops : *mut NETCON_PROPERTIES));
|
||||
windows_link::link!("netshell.dll" "system" fn NcIsValidConnectionName(pszwname : windows_sys::core::PCWSTR) -> windows_sys::core::BOOL);
|
||||
windows_link::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationDiagnoseConnectFailureAndGetInfo(wszservername : windows_sys::core::PCWSTR, netisoerror : *mut NETISO_ERROR_TYPE) -> u32);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationEnumAppContainers(flags : u32, pdwnumpublicappcs : *mut u32, pppublicappcs : *mut *mut INET_FIREWALL_APP_CONTAINER) -> u32);
|
||||
#[cfg(feature = "Win32_System_Ole")]
|
||||
windows_link::link!("firewallapi.dll" "system" fn NetworkIsolationEnumerateAppContainerRules(newenum : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationFreeAppContainers(ppublicappcs : *const INET_FIREWALL_APP_CONTAINER) -> u32);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationGetAppContainerConfig(pdwnumpublicappcs : *mut u32, appcontainersids : *mut *mut super::super::Security:: SID_AND_ATTRIBUTES) -> u32);
|
||||
windows_link::link!("firewallapi.dll" "system" fn NetworkIsolationGetEnterpriseIdAsync(wszservername : windows_sys::core::PCWSTR, dwflags : u32, context : *const core::ffi::c_void, callback : PNETISO_EDP_ID_CALLBACK_FN, hoperation : *mut super::super::Foundation:: HANDLE) -> u32);
|
||||
windows_link::link!("firewallapi.dll" "system" fn NetworkIsolationGetEnterpriseIdClose(hoperation : super::super::Foundation:: HANDLE, bwaitforoperation : windows_sys::core::BOOL) -> u32);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationRegisterForAppContainerChanges(flags : u32, callback : PAC_CHANGES_CALLBACK_FN, context : *const core::ffi::c_void, registrationobject : *mut super::super::Foundation:: HANDLE) -> u32);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationSetAppContainerConfig(dwnumpublicappcs : u32, appcontainersids : *const super::super::Security:: SID_AND_ATTRIBUTES) -> u32);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
windows_link::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationSetupAppContainerBinaries(applicationcontainersid : super::super::Security:: PSID, packagefullname : windows_sys::core::PCWSTR, packagefolder : windows_sys::core::PCWSTR, displayname : windows_sys::core::PCWSTR, bbinariesfullycomputed : windows_sys::core::BOOL, binaries : *const windows_sys::core::PCWSTR, binariescount : u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationUnregisterForAppContainerChanges(registrationobject : super::super::Foundation:: HANDLE) -> u32);
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
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 Default for FW_DYNAMIC_KEYWORD_ADDRESS0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
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 Default for FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = i32;
|
||||
pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_ALL: FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = 3i32;
|
||||
pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_AUTO_RESOLVE: FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = 1i32;
|
||||
pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_NON_AUTO_RESOLVE: FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = 2i32;
|
||||
pub type FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS = i32;
|
||||
pub const FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS_AUTO_RESOLVE: FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS = 1i32;
|
||||
pub const FW_DYNAMIC_KEYWORD_ORIGIN_INVALID: FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = 0i32;
|
||||
pub const FW_DYNAMIC_KEYWORD_ORIGIN_LOCAL: FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = 1i32;
|
||||
pub const FW_DYNAMIC_KEYWORD_ORIGIN_MDM: FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = 2i32;
|
||||
pub type FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = i32;
|
||||
pub const ICSSC_DEFAULT: SHARINGCONNECTION_ENUM_FLAGS = 0i32;
|
||||
pub const ICSSC_ENABLED: SHARINGCONNECTION_ENUM_FLAGS = 1i32;
|
||||
pub const ICSSHARINGTYPE_PRIVATE: SHARINGCONNECTIONTYPE = 1i32;
|
||||
pub const ICSSHARINGTYPE_PUBLIC: SHARINGCONNECTIONTYPE = 0i32;
|
||||
pub const ICSTT_IPADDRESS: ICS_TARGETTYPE = 1i32;
|
||||
pub const ICSTT_NAME: ICS_TARGETTYPE = 0i32;
|
||||
pub type ICS_TARGETTYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct INET_FIREWALL_AC_BINARIES {
|
||||
pub count: u32,
|
||||
pub binaries: *mut windows_sys::core::PWSTR,
|
||||
}
|
||||
impl Default for INET_FIREWALL_AC_BINARIES {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const INET_FIREWALL_AC_BINARY: INET_FIREWALL_AC_CREATION_TYPE = 2i32;
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct INET_FIREWALL_AC_CAPABILITIES {
|
||||
pub count: u32,
|
||||
pub capabilities: *mut super::super::Security::SID_AND_ATTRIBUTES,
|
||||
}
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
impl Default for INET_FIREWALL_AC_CAPABILITIES {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct INET_FIREWALL_AC_CHANGE {
|
||||
pub changeType: INET_FIREWALL_AC_CHANGE_TYPE,
|
||||
pub createType: INET_FIREWALL_AC_CREATION_TYPE,
|
||||
pub appContainerSid: *mut super::super::Security::SID,
|
||||
pub userSid: *mut super::super::Security::SID,
|
||||
pub displayName: windows_sys::core::PWSTR,
|
||||
pub Anonymous: INET_FIREWALL_AC_CHANGE_0,
|
||||
}
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
impl Default for INET_FIREWALL_AC_CHANGE {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union INET_FIREWALL_AC_CHANGE_0 {
|
||||
pub capabilities: INET_FIREWALL_AC_CAPABILITIES,
|
||||
pub binaries: INET_FIREWALL_AC_BINARIES,
|
||||
}
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
impl Default for INET_FIREWALL_AC_CHANGE_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const INET_FIREWALL_AC_CHANGE_CREATE: INET_FIREWALL_AC_CHANGE_TYPE = 1i32;
|
||||
pub const INET_FIREWALL_AC_CHANGE_DELETE: INET_FIREWALL_AC_CHANGE_TYPE = 2i32;
|
||||
pub const INET_FIREWALL_AC_CHANGE_INVALID: INET_FIREWALL_AC_CHANGE_TYPE = 0i32;
|
||||
pub const INET_FIREWALL_AC_CHANGE_MAX: INET_FIREWALL_AC_CHANGE_TYPE = 3i32;
|
||||
pub type INET_FIREWALL_AC_CHANGE_TYPE = i32;
|
||||
pub type INET_FIREWALL_AC_CREATION_TYPE = i32;
|
||||
pub const INET_FIREWALL_AC_MAX: INET_FIREWALL_AC_CREATION_TYPE = 4i32;
|
||||
pub const INET_FIREWALL_AC_NONE: INET_FIREWALL_AC_CREATION_TYPE = 0i32;
|
||||
pub const INET_FIREWALL_AC_PACKAGE_ID_ONLY: INET_FIREWALL_AC_CREATION_TYPE = 1i32;
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct INET_FIREWALL_APP_CONTAINER {
|
||||
pub appContainerSid: *mut super::super::Security::SID,
|
||||
pub userSid: *mut super::super::Security::SID,
|
||||
pub appContainerName: windows_sys::core::PWSTR,
|
||||
pub displayName: windows_sys::core::PWSTR,
|
||||
pub description: windows_sys::core::PWSTR,
|
||||
pub capabilities: INET_FIREWALL_AC_CAPABILITIES,
|
||||
pub binaries: INET_FIREWALL_AC_BINARIES,
|
||||
pub workingDirectory: windows_sys::core::PWSTR,
|
||||
pub packageFullName: windows_sys::core::PWSTR,
|
||||
}
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
impl Default for INET_FIREWALL_APP_CONTAINER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const NCCF_ALLOW_DUPLICATION: NETCON_CHARACTERISTIC_FLAGS = 2i32;
|
||||
pub const NCCF_ALLOW_REMOVAL: NETCON_CHARACTERISTIC_FLAGS = 4i32;
|
||||
pub const NCCF_ALLOW_RENAME: NETCON_CHARACTERISTIC_FLAGS = 8i32;
|
||||
pub const NCCF_ALL_USERS: NETCON_CHARACTERISTIC_FLAGS = 1i32;
|
||||
pub const NCCF_BLUETOOTH_MASK: NETCON_CHARACTERISTIC_FLAGS = 983040i32;
|
||||
pub const NCCF_BRANDED: NETCON_CHARACTERISTIC_FLAGS = 128i32;
|
||||
pub const NCCF_BRIDGED: NETCON_CHARACTERISTIC_FLAGS = 512i32;
|
||||
pub const NCCF_DEFAULT: NETCON_CHARACTERISTIC_FLAGS = 2048i32;
|
||||
pub const NCCF_FIREWALLED: NETCON_CHARACTERISTIC_FLAGS = 1024i32;
|
||||
pub const NCCF_HOMENET_CAPABLE: NETCON_CHARACTERISTIC_FLAGS = 4096i32;
|
||||
pub const NCCF_HOSTED_NETWORK: NETCON_CHARACTERISTIC_FLAGS = 65536i32;
|
||||
pub const NCCF_INCOMING_ONLY: NETCON_CHARACTERISTIC_FLAGS = 32i32;
|
||||
pub const NCCF_LAN_MASK: NETCON_CHARACTERISTIC_FLAGS = 15728640i32;
|
||||
pub const NCCF_NONE: NETCON_CHARACTERISTIC_FLAGS = 0i32;
|
||||
pub const NCCF_OUTGOING_ONLY: NETCON_CHARACTERISTIC_FLAGS = 64i32;
|
||||
pub const NCCF_QUARANTINED: NETCON_CHARACTERISTIC_FLAGS = 16384i32;
|
||||
pub const NCCF_RESERVED: NETCON_CHARACTERISTIC_FLAGS = 32768i32;
|
||||
pub const NCCF_SHARED: NETCON_CHARACTERISTIC_FLAGS = 256i32;
|
||||
pub const NCCF_SHARED_PRIVATE: NETCON_CHARACTERISTIC_FLAGS = 8192i32;
|
||||
pub const NCCF_VIRTUAL_STATION: NETCON_CHARACTERISTIC_FLAGS = 131072i32;
|
||||
pub const NCCF_WIFI_DIRECT: NETCON_CHARACTERISTIC_FLAGS = 262144i32;
|
||||
pub const NCME_DEFAULT: NETCONMGR_ENUM_FLAGS = 0i32;
|
||||
pub const NCME_HIDDEN: NETCONMGR_ENUM_FLAGS = 1i32;
|
||||
pub const NCM_BRIDGE: NETCON_MEDIATYPE = 7i32;
|
||||
pub const NCM_DIRECT: NETCON_MEDIATYPE = 1i32;
|
||||
pub const NCM_ISDN: NETCON_MEDIATYPE = 2i32;
|
||||
pub const NCM_LAN: NETCON_MEDIATYPE = 3i32;
|
||||
pub const NCM_NONE: NETCON_MEDIATYPE = 0i32;
|
||||
pub const NCM_PHONE: NETCON_MEDIATYPE = 4i32;
|
||||
pub const NCM_PPPOE: NETCON_MEDIATYPE = 6i32;
|
||||
pub const NCM_SHAREDACCESSHOST_LAN: NETCON_MEDIATYPE = 8i32;
|
||||
pub const NCM_SHAREDACCESSHOST_RAS: NETCON_MEDIATYPE = 9i32;
|
||||
pub const NCM_TUNNEL: NETCON_MEDIATYPE = 5i32;
|
||||
pub const NCS_ACTION_REQUIRED: NETCON_STATUS = 13i32;
|
||||
pub const NCS_ACTION_REQUIRED_RETRY: NETCON_STATUS = 14i32;
|
||||
pub const NCS_AUTHENTICATING: NETCON_STATUS = 8i32;
|
||||
pub const NCS_AUTHENTICATION_FAILED: NETCON_STATUS = 10i32;
|
||||
pub const NCS_AUTHENTICATION_SUCCEEDED: NETCON_STATUS = 9i32;
|
||||
pub const NCS_CONNECTED: NETCON_STATUS = 2i32;
|
||||
pub const NCS_CONNECTING: NETCON_STATUS = 1i32;
|
||||
pub const NCS_CONNECT_FAILED: NETCON_STATUS = 15i32;
|
||||
pub const NCS_CREDENTIALS_REQUIRED: NETCON_STATUS = 12i32;
|
||||
pub const NCS_DISCONNECTED: NETCON_STATUS = 0i32;
|
||||
pub const NCS_DISCONNECTING: NETCON_STATUS = 3i32;
|
||||
pub const NCS_HARDWARE_DISABLED: NETCON_STATUS = 5i32;
|
||||
pub const NCS_HARDWARE_MALFUNCTION: NETCON_STATUS = 6i32;
|
||||
pub const NCS_HARDWARE_NOT_PRESENT: NETCON_STATUS = 4i32;
|
||||
pub const NCS_INVALID_ADDRESS: NETCON_STATUS = 11i32;
|
||||
pub const NCS_MEDIA_DISCONNECTED: NETCON_STATUS = 7i32;
|
||||
pub const NCT_BRIDGE: NETCON_TYPE = 6i32;
|
||||
pub const NCT_DIRECT_CONNECT: NETCON_TYPE = 0i32;
|
||||
pub const NCT_INBOUND: NETCON_TYPE = 1i32;
|
||||
pub const NCT_INTERNET: NETCON_TYPE = 2i32;
|
||||
pub const NCT_LAN: NETCON_TYPE = 3i32;
|
||||
pub const NCT_PHONE: NETCON_TYPE = 4i32;
|
||||
pub const NCT_TUNNEL: NETCON_TYPE = 5i32;
|
||||
pub const NCUC_DEFAULT: NETCONUI_CONNECT_FLAGS = 0i32;
|
||||
pub const NCUC_ENABLE_DISABLE: NETCONUI_CONNECT_FLAGS = 2i32;
|
||||
pub const NCUC_NO_UI: NETCONUI_CONNECT_FLAGS = 1i32;
|
||||
pub type NETCONMGR_ENUM_FLAGS = i32;
|
||||
pub type NETCONUI_CONNECT_FLAGS = i32;
|
||||
pub type NETCON_CHARACTERISTIC_FLAGS = i32;
|
||||
pub const NETCON_MAX_NAME_LEN: u32 = 256u32;
|
||||
pub type NETCON_MEDIATYPE = i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct NETCON_PROPERTIES {
|
||||
pub guidId: windows_sys::core::GUID,
|
||||
pub pszwName: windows_sys::core::PWSTR,
|
||||
pub pszwDeviceName: windows_sys::core::PWSTR,
|
||||
pub Status: NETCON_STATUS,
|
||||
pub MediaType: NETCON_MEDIATYPE,
|
||||
pub dwCharacter: u32,
|
||||
pub clsidThisObject: windows_sys::core::GUID,
|
||||
pub clsidUiObject: windows_sys::core::GUID,
|
||||
}
|
||||
impl Default for NETCON_PROPERTIES {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type NETCON_STATUS = i32;
|
||||
pub type NETCON_TYPE = i32;
|
||||
pub type NETISO_ERROR_TYPE = i32;
|
||||
pub const NETISO_ERROR_TYPE_INTERNET_CLIENT: NETISO_ERROR_TYPE = 2i32;
|
||||
pub const NETISO_ERROR_TYPE_INTERNET_CLIENT_SERVER: NETISO_ERROR_TYPE = 3i32;
|
||||
pub const NETISO_ERROR_TYPE_MAX: NETISO_ERROR_TYPE = 4i32;
|
||||
pub const NETISO_ERROR_TYPE_NONE: NETISO_ERROR_TYPE = 0i32;
|
||||
pub const NETISO_ERROR_TYPE_PRIVATE_NETWORK: NETISO_ERROR_TYPE = 1i32;
|
||||
pub type NETISO_FLAG = i32;
|
||||
pub const NETISO_FLAG_FORCE_COMPUTE_BINARIES: NETISO_FLAG = 1i32;
|
||||
pub const NETISO_FLAG_MAX: NETISO_FLAG = 2i32;
|
||||
pub const NETISO_GEID_FOR_NEUTRAL_AWARE: u32 = 2u32;
|
||||
pub const NETISO_GEID_FOR_WDAG: u32 = 1u32;
|
||||
pub type NET_FW_ACTION = i32;
|
||||
pub const NET_FW_ACTION_ALLOW: NET_FW_ACTION = 1i32;
|
||||
pub const NET_FW_ACTION_BLOCK: NET_FW_ACTION = 0i32;
|
||||
pub const NET_FW_ACTION_MAX: NET_FW_ACTION = 2i32;
|
||||
pub const NET_FW_AUTHENTICATE_AND_ENCRYPT: NET_FW_AUTHENTICATE_TYPE = 4i32;
|
||||
pub const NET_FW_AUTHENTICATE_AND_NEGOTIATE_ENCRYPTION: NET_FW_AUTHENTICATE_TYPE = 3i32;
|
||||
pub const NET_FW_AUTHENTICATE_NONE: NET_FW_AUTHENTICATE_TYPE = 0i32;
|
||||
pub const NET_FW_AUTHENTICATE_NO_ENCAPSULATION: NET_FW_AUTHENTICATE_TYPE = 1i32;
|
||||
pub type NET_FW_AUTHENTICATE_TYPE = i32;
|
||||
pub const NET_FW_AUTHENTICATE_WITH_INTEGRITY: NET_FW_AUTHENTICATE_TYPE = 2i32;
|
||||
pub type NET_FW_EDGE_TRAVERSAL_TYPE = i32;
|
||||
pub const NET_FW_EDGE_TRAVERSAL_TYPE_ALLOW: NET_FW_EDGE_TRAVERSAL_TYPE = 1i32;
|
||||
pub const NET_FW_EDGE_TRAVERSAL_TYPE_DEFER_TO_APP: NET_FW_EDGE_TRAVERSAL_TYPE = 2i32;
|
||||
pub const NET_FW_EDGE_TRAVERSAL_TYPE_DEFER_TO_USER: NET_FW_EDGE_TRAVERSAL_TYPE = 3i32;
|
||||
pub const NET_FW_EDGE_TRAVERSAL_TYPE_DENY: NET_FW_EDGE_TRAVERSAL_TYPE = 0i32;
|
||||
pub type NET_FW_IP_PROTOCOL = i32;
|
||||
pub const NET_FW_IP_PROTOCOL_ANY: NET_FW_IP_PROTOCOL = 256i32;
|
||||
pub const NET_FW_IP_PROTOCOL_TCP: NET_FW_IP_PROTOCOL = 6i32;
|
||||
pub const NET_FW_IP_PROTOCOL_UDP: NET_FW_IP_PROTOCOL = 17i32;
|
||||
pub type NET_FW_IP_VERSION = i32;
|
||||
pub const NET_FW_IP_VERSION_ANY: NET_FW_IP_VERSION = 2i32;
|
||||
pub const NET_FW_IP_VERSION_MAX: NET_FW_IP_VERSION = 3i32;
|
||||
pub const NET_FW_IP_VERSION_V4: NET_FW_IP_VERSION = 0i32;
|
||||
pub const NET_FW_IP_VERSION_V6: NET_FW_IP_VERSION = 1i32;
|
||||
pub type NET_FW_MODIFY_STATE = i32;
|
||||
pub const NET_FW_MODIFY_STATE_GP_OVERRIDE: NET_FW_MODIFY_STATE = 1i32;
|
||||
pub const NET_FW_MODIFY_STATE_INBOUND_BLOCKED: NET_FW_MODIFY_STATE = 2i32;
|
||||
pub const NET_FW_MODIFY_STATE_OK: NET_FW_MODIFY_STATE = 0i32;
|
||||
pub const NET_FW_POLICY_EFFECTIVE: NET_FW_POLICY_TYPE = 2i32;
|
||||
pub const NET_FW_POLICY_GROUP: NET_FW_POLICY_TYPE = 0i32;
|
||||
pub const NET_FW_POLICY_LOCAL: NET_FW_POLICY_TYPE = 1i32;
|
||||
pub type NET_FW_POLICY_TYPE = i32;
|
||||
pub const NET_FW_POLICY_TYPE_MAX: NET_FW_POLICY_TYPE = 3i32;
|
||||
pub const NET_FW_PROFILE2_ALL: NET_FW_PROFILE_TYPE2 = 2147483647i32;
|
||||
pub const NET_FW_PROFILE2_DOMAIN: NET_FW_PROFILE_TYPE2 = 1i32;
|
||||
pub const NET_FW_PROFILE2_PRIVATE: NET_FW_PROFILE_TYPE2 = 2i32;
|
||||
pub const NET_FW_PROFILE2_PUBLIC: NET_FW_PROFILE_TYPE2 = 4i32;
|
||||
pub const NET_FW_PROFILE_CURRENT: NET_FW_PROFILE_TYPE = 2i32;
|
||||
pub const NET_FW_PROFILE_DOMAIN: NET_FW_PROFILE_TYPE = 0i32;
|
||||
pub const NET_FW_PROFILE_STANDARD: NET_FW_PROFILE_TYPE = 1i32;
|
||||
pub type NET_FW_PROFILE_TYPE = i32;
|
||||
pub type NET_FW_PROFILE_TYPE2 = i32;
|
||||
pub const NET_FW_PROFILE_TYPE_MAX: NET_FW_PROFILE_TYPE = 3i32;
|
||||
pub type NET_FW_RULE_CATEGORY = i32;
|
||||
pub const NET_FW_RULE_CATEGORY_BOOT: NET_FW_RULE_CATEGORY = 0i32;
|
||||
pub const NET_FW_RULE_CATEGORY_CONSEC: NET_FW_RULE_CATEGORY = 3i32;
|
||||
pub const NET_FW_RULE_CATEGORY_FIREWALL: NET_FW_RULE_CATEGORY = 2i32;
|
||||
pub const NET_FW_RULE_CATEGORY_MAX: NET_FW_RULE_CATEGORY = 4i32;
|
||||
pub const NET_FW_RULE_CATEGORY_STEALTH: NET_FW_RULE_CATEGORY = 1i32;
|
||||
pub type NET_FW_RULE_DIRECTION = i32;
|
||||
pub const NET_FW_RULE_DIR_IN: NET_FW_RULE_DIRECTION = 1i32;
|
||||
pub const NET_FW_RULE_DIR_MAX: NET_FW_RULE_DIRECTION = 3i32;
|
||||
pub const NET_FW_RULE_DIR_OUT: NET_FW_RULE_DIRECTION = 2i32;
|
||||
pub type NET_FW_SCOPE = i32;
|
||||
pub const NET_FW_SCOPE_ALL: NET_FW_SCOPE = 0i32;
|
||||
pub const NET_FW_SCOPE_CUSTOM: NET_FW_SCOPE = 2i32;
|
||||
pub const NET_FW_SCOPE_LOCAL_SUBNET: NET_FW_SCOPE = 1i32;
|
||||
pub const NET_FW_SCOPE_MAX: NET_FW_SCOPE = 3i32;
|
||||
pub const NET_FW_SERVICE_FILE_AND_PRINT: NET_FW_SERVICE_TYPE = 0i32;
|
||||
pub const NET_FW_SERVICE_NONE: NET_FW_SERVICE_TYPE = 3i32;
|
||||
pub const NET_FW_SERVICE_REMOTE_DESKTOP: NET_FW_SERVICE_TYPE = 2i32;
|
||||
pub type NET_FW_SERVICE_TYPE = i32;
|
||||
pub const NET_FW_SERVICE_TYPE_MAX: NET_FW_SERVICE_TYPE = 4i32;
|
||||
pub const NET_FW_SERVICE_UPNP: NET_FW_SERVICE_TYPE = 1i32;
|
||||
pub const NetFwAuthorizedApplication: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xec9846b3_2762_4a6b_a214_6acb603462d2);
|
||||
pub const NetFwMgr: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x304ce942_6e39_40d8_943a_b913c40c9cd4);
|
||||
pub const NetFwOpenPort: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x0ca545c6_37ad_4a6c_bf92_9f7610067ef5);
|
||||
pub const NetFwPolicy2: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe2b3c97f_6ae1_41ac_817a_f6f92166d7dd);
|
||||
pub const NetFwProduct: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x9d745ed8_c514_4d1d_bf42_751fed2d5ac7);
|
||||
pub const NetFwProducts: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xcc19079b_8272_4d73_bb70_cdb533527b61);
|
||||
pub const NetFwRule: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x2c5bc43e_3369_4c33_ab0c_be9469677af4);
|
||||
pub const NetSharingManager: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5c63c1ad_3956_4ff8_8486_40034758315b);
|
||||
#[cfg(feature = "Win32_Security")]
|
||||
pub type PAC_CHANGES_CALLBACK_FN = Option<unsafe extern "system" fn(context: *const core::ffi::c_void, pchange: *const INET_FIREWALL_AC_CHANGE)>;
|
||||
pub type PFN_FWADDDYNAMICKEYWORDADDRESS0 = Option<unsafe extern "system" fn(dynamickeywordaddress: *const FW_DYNAMIC_KEYWORD_ADDRESS0) -> u32>;
|
||||
pub type PFN_FWDELETEDYNAMICKEYWORDADDRESS0 = Option<unsafe extern "system" fn(dynamickeywordaddressid: windows_sys::core::GUID) -> u32>;
|
||||
pub type PFN_FWENUMDYNAMICKEYWORDADDRESSBYID0 = Option<unsafe extern "system" fn(dynamickeywordaddressid: windows_sys::core::GUID, dynamickeywordaddressdata: *mut *mut FW_DYNAMIC_KEYWORD_ADDRESS_DATA0) -> u32>;
|
||||
pub type PFN_FWENUMDYNAMICKEYWORDADDRESSESBYTYPE0 = Option<unsafe extern "system" fn(flags: u32, dynamickeywordaddressdata: *mut *mut FW_DYNAMIC_KEYWORD_ADDRESS_DATA0) -> u32>;
|
||||
pub type PFN_FWFREEDYNAMICKEYWORDADDRESSDATA0 = Option<unsafe extern "system" fn(dynamickeywordaddressdata: *const FW_DYNAMIC_KEYWORD_ADDRESS_DATA0) -> u32>;
|
||||
pub type PFN_FWUPDATEDYNAMICKEYWORDADDRESS0 = Option<unsafe extern "system" fn(dynamickeywordaddressid: windows_sys::core::GUID, updatedaddresses: windows_sys::core::PCWSTR, append: windows_sys::core::BOOL) -> u32>;
|
||||
pub type PNETISO_EDP_ID_CALLBACK_FN = Option<unsafe extern "system" fn(context: *mut core::ffi::c_void, wszenterpriseid: windows_sys::core::PCWSTR, dwerr: u32)>;
|
||||
pub type SHARINGCONNECTIONTYPE = i32;
|
||||
pub type SHARINGCONNECTION_ENUM_FLAGS = i32;
|
||||
pub const S_OBJECT_NO_LONGER_VALID: windows_sys::core::HRESULT = 0x2_u32 as _;
|
||||
pub const UPnPNAT: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xae1e00aa_3fd5_403c_8a27_2bbdc30cd0e1);
|
||||
+157
@@ -0,0 +1,157 @@
|
||||
windows_link::link!("wnvapi.dll" "system" fn WnvOpen() -> super::super::Foundation:: HANDLE);
|
||||
#[cfg(feature = "Win32_System_IO")]
|
||||
windows_link::link!("wnvapi.dll" "system" fn WnvRequestNotification(wnvhandle : super::super::Foundation:: HANDLE, notificationparam : *mut WNV_NOTIFICATION_PARAM, overlapped : *mut super::super::System::IO:: OVERLAPPED, bytestransferred : *mut u32) -> u32);
|
||||
pub const WNV_API_MAJOR_VERSION_1: u32 = 1u32;
|
||||
pub const WNV_API_MINOR_VERSION_0: u32 = 0u32;
|
||||
pub type WNV_CA_NOTIFICATION_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WNV_CUSTOMER_ADDRESS_CHANGE_PARAM {
|
||||
pub MACAddress: super::super::Networking::WinSock::DL_EUI48,
|
||||
pub CAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
|
||||
pub CA: WNV_IP_ADDRESS,
|
||||
pub VirtualSubnetId: u32,
|
||||
pub PAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
|
||||
pub PA: WNV_IP_ADDRESS,
|
||||
pub NotificationReason: WNV_CA_NOTIFICATION_TYPE,
|
||||
}
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
impl Default for WNV_CUSTOMER_ADDRESS_CHANGE_PARAM {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WNV_IP_ADDRESS {
|
||||
pub IP: WNV_IP_ADDRESS_0,
|
||||
}
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
impl Default for WNV_IP_ADDRESS {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union WNV_IP_ADDRESS_0 {
|
||||
pub v4: super::super::Networking::WinSock::IN_ADDR,
|
||||
pub v6: super::super::Networking::WinSock::IN6_ADDR,
|
||||
pub Addr: [u8; 16],
|
||||
}
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
impl Default for WNV_IP_ADDRESS_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WNV_NOTIFICATION_PARAM {
|
||||
pub Header: WNV_OBJECT_HEADER,
|
||||
pub NotificationType: WNV_NOTIFICATION_TYPE,
|
||||
pub PendingNotifications: u32,
|
||||
pub Buffer: *mut u8,
|
||||
}
|
||||
impl Default for WNV_NOTIFICATION_PARAM {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type WNV_NOTIFICATION_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WNV_OBJECT_CHANGE_PARAM {
|
||||
pub ObjectType: WNV_OBJECT_TYPE,
|
||||
pub ObjectParam: WNV_OBJECT_CHANGE_PARAM_0,
|
||||
}
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
impl Default for WNV_OBJECT_CHANGE_PARAM {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union WNV_OBJECT_CHANGE_PARAM_0 {
|
||||
pub ProviderAddressChange: WNV_PROVIDER_ADDRESS_CHANGE_PARAM,
|
||||
pub CustomerAddressChange: WNV_CUSTOMER_ADDRESS_CHANGE_PARAM,
|
||||
}
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
impl Default for WNV_OBJECT_CHANGE_PARAM_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct WNV_OBJECT_HEADER {
|
||||
pub MajorVersion: u8,
|
||||
pub MinorVersion: u8,
|
||||
pub Size: u32,
|
||||
}
|
||||
pub type WNV_OBJECT_TYPE = i32;
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WNV_POLICY_MISMATCH_PARAM {
|
||||
pub CAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
|
||||
pub PAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
|
||||
pub VirtualSubnetId: u32,
|
||||
pub CA: WNV_IP_ADDRESS,
|
||||
pub PA: WNV_IP_ADDRESS,
|
||||
}
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
impl Default for WNV_POLICY_MISMATCH_PARAM {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WNV_PROVIDER_ADDRESS_CHANGE_PARAM {
|
||||
pub PAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
|
||||
pub PA: WNV_IP_ADDRESS,
|
||||
pub AddressState: super::super::Networking::WinSock::NL_DAD_STATE,
|
||||
}
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
impl Default for WNV_PROVIDER_ADDRESS_CHANGE_PARAM {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WNV_REDIRECT_PARAM {
|
||||
pub CAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
|
||||
pub PAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
|
||||
pub NewPAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
|
||||
pub VirtualSubnetId: u32,
|
||||
pub CA: WNV_IP_ADDRESS,
|
||||
pub PA: WNV_IP_ADDRESS,
|
||||
pub NewPA: WNV_IP_ADDRESS,
|
||||
}
|
||||
#[cfg(feature = "Win32_Networking_WinSock")]
|
||||
impl Default for WNV_REDIRECT_PARAM {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const WnvCustomerAddressAdded: WNV_CA_NOTIFICATION_TYPE = 0i32;
|
||||
pub const WnvCustomerAddressDeleted: WNV_CA_NOTIFICATION_TYPE = 1i32;
|
||||
pub const WnvCustomerAddressMax: WNV_CA_NOTIFICATION_TYPE = 3i32;
|
||||
pub const WnvCustomerAddressMoved: WNV_CA_NOTIFICATION_TYPE = 2i32;
|
||||
pub const WnvCustomerAddressType: WNV_OBJECT_TYPE = 1i32;
|
||||
pub const WnvNotificationTypeMax: WNV_NOTIFICATION_TYPE = 3i32;
|
||||
pub const WnvObjectChangeType: WNV_NOTIFICATION_TYPE = 2i32;
|
||||
pub const WnvObjectTypeMax: WNV_OBJECT_TYPE = 2i32;
|
||||
pub const WnvPolicyMismatchType: WNV_NOTIFICATION_TYPE = 0i32;
|
||||
pub const WnvProviderAddressType: WNV_OBJECT_TYPE = 0i32;
|
||||
pub const WnvRedirectType: WNV_NOTIFICATION_TYPE = 1i32;
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
#[cfg(feature = "Win32_NetworkManagement_Dhcp")]
|
||||
pub mod Dhcp;
|
||||
#[cfg(feature = "Win32_NetworkManagement_Dns")]
|
||||
pub mod Dns;
|
||||
#[cfg(feature = "Win32_NetworkManagement_InternetConnectionWizard")]
|
||||
pub mod InternetConnectionWizard;
|
||||
#[cfg(feature = "Win32_NetworkManagement_IpHelper")]
|
||||
pub mod IpHelper;
|
||||
#[cfg(feature = "Win32_NetworkManagement_Multicast")]
|
||||
pub mod Multicast;
|
||||
#[cfg(feature = "Win32_NetworkManagement_Ndis")]
|
||||
pub mod Ndis;
|
||||
#[cfg(feature = "Win32_NetworkManagement_NetBios")]
|
||||
pub mod NetBios;
|
||||
#[cfg(feature = "Win32_NetworkManagement_NetManagement")]
|
||||
pub mod NetManagement;
|
||||
#[cfg(feature = "Win32_NetworkManagement_NetShell")]
|
||||
pub mod NetShell;
|
||||
#[cfg(feature = "Win32_NetworkManagement_NetworkDiagnosticsFramework")]
|
||||
pub mod NetworkDiagnosticsFramework;
|
||||
#[cfg(feature = "Win32_NetworkManagement_P2P")]
|
||||
pub mod P2P;
|
||||
#[cfg(feature = "Win32_NetworkManagement_QoS")]
|
||||
pub mod QoS;
|
||||
#[cfg(feature = "Win32_NetworkManagement_Rras")]
|
||||
pub mod Rras;
|
||||
#[cfg(feature = "Win32_NetworkManagement_Snmp")]
|
||||
pub mod Snmp;
|
||||
#[cfg(feature = "Win32_NetworkManagement_WNet")]
|
||||
pub mod WNet;
|
||||
#[cfg(feature = "Win32_NetworkManagement_WebDav")]
|
||||
pub mod WebDav;
|
||||
#[cfg(feature = "Win32_NetworkManagement_WiFi")]
|
||||
pub mod WiFi;
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsConnectionManager")]
|
||||
pub mod WindowsConnectionManager;
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFilteringPlatform")]
|
||||
pub mod WindowsFilteringPlatform;
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsFirewall")]
|
||||
pub mod WindowsFirewall;
|
||||
#[cfg(feature = "Win32_NetworkManagement_WindowsNetworkVirtualization")]
|
||||
pub mod WindowsNetworkVirtualization;
|
||||
+2859
File diff suppressed because it is too large.
Load diff
+4340
File diff suppressed because it is too large.
Load diff
+1525
File diff suppressed because it is too large.
Load diff
+907
@@ -0,0 +1,907 @@
|
||||
windows_link::link!("wldap32.dll" "C" fn LdapGetLastError() -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn LdapMapErrorToWin32(ldaperror : u32) -> super::super::Foundation:: WIN32_ERROR);
|
||||
windows_link::link!("wldap32.dll" "C" fn LdapUTF8ToUnicode(lpsrcstr : windows_sys::core::PCSTR, cchsrc : i32, lpdeststr : windows_sys::core::PWSTR, cchdest : i32) -> i32);
|
||||
windows_link::link!("wldap32.dll" "C" fn LdapUnicodeToUTF8(lpsrcstr : windows_sys::core::PCWSTR, cchsrc : i32, lpdeststr : windows_sys::core::PSTR, cchdest : i32) -> i32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ber_alloc_t(options : i32) -> *mut BerElement);
|
||||
windows_link::link!("wldap32.dll" "C" fn ber_bvdup(pberval : *mut LDAP_BERVAL) -> *mut LDAP_BERVAL);
|
||||
windows_link::link!("wldap32.dll" "C" fn ber_bvecfree(pberval : *mut *mut LDAP_BERVAL));
|
||||
windows_link::link!("wldap32.dll" "C" fn ber_bvfree(bv : *mut LDAP_BERVAL));
|
||||
windows_link::link!("wldap32.dll" "C" fn ber_first_element(pberelement : *mut BerElement, plen : *mut u32, ppopaque : *mut *mut i8) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ber_flatten(pberelement : *mut BerElement, pberval : *mut *mut LDAP_BERVAL) -> i32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ber_free(pberelement : *mut BerElement, fbuf : i32));
|
||||
windows_link::link!("wldap32.dll" "C" fn ber_init(pberval : *mut LDAP_BERVAL) -> *mut BerElement);
|
||||
windows_link::link!("wldap32.dll" "C" fn ber_next_element(pberelement : *mut BerElement, plen : *mut u32, opaque : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ber_peek_tag(pberelement : *mut BerElement, plen : *mut u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ber_printf(pberelement : *mut BerElement, fmt : windows_sys::core::PCSTR, ...) -> i32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ber_scanf(pberelement : *mut BerElement, fmt : windows_sys::core::PCSTR, ...) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ber_skip_tag(pberelement : *mut BerElement, plen : *mut u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn cldap_open(hostname : windows_sys::core::PCSTR, portnumber : u32) -> *mut LDAP);
|
||||
windows_link::link!("wldap32.dll" "C" fn cldap_openA(hostname : windows_sys::core::PCSTR, portnumber : u32) -> *mut LDAP);
|
||||
windows_link::link!("wldap32.dll" "C" fn cldap_openW(hostname : windows_sys::core::PCWSTR, portnumber : u32) -> *mut LDAP);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_abandon(ld : *mut LDAP, msgid : u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_add(ld : *mut LDAP, dn : windows_sys::core::PCSTR, attrs : *mut *mut LDAPModA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_addA(ld : *mut LDAP, dn : windows_sys::core::PCSTR, attrs : *mut *mut LDAPModA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_addW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR, attrs : *mut *mut LDAPModW) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_add_s(ld : *mut LDAP, dn : windows_sys::core::PCSTR, attrs : *mut *mut LDAPModA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_add_sA(ld : *mut LDAP, dn : windows_sys::core::PCSTR, attrs : *mut *mut LDAPModA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_add_sW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR, attrs : *mut *mut LDAPModW) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_bind(ld : *mut LDAP, dn : windows_sys::core::PCSTR, cred : windows_sys::core::PCSTR, method : u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_bindA(ld : *mut LDAP, dn : windows_sys::core::PCSTR, cred : windows_sys::core::PCSTR, method : u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_bindW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR, cred : windows_sys::core::PCWSTR, method : u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_bind_s(ld : *mut LDAP, dn : windows_sys::core::PCSTR, cred : windows_sys::core::PCSTR, method : u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_bind_sA(ld : *mut LDAP, dn : windows_sys::core::PCSTR, cred : windows_sys::core::PCSTR, method : u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_bind_sW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR, cred : windows_sys::core::PCWSTR, method : u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_check_filterA(ld : *mut LDAP, searchfilter : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_check_filterW(ld : *mut LDAP, searchfilter : windows_sys::core::PCWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_cleanup(hinstance : super::super::Foundation:: HANDLE) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_close_extended_op(ld : *mut LDAP, messagenumber : u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_compare(ld : *mut LDAP, dn : windows_sys::core::PCSTR, attr : windows_sys::core::PCSTR, value : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_compareA(ld : *mut LDAP, dn : windows_sys::core::PCSTR, attr : windows_sys::core::PCSTR, value : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_compareW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR, attr : windows_sys::core::PCWSTR, value : windows_sys::core::PCWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_compare_s(ld : *mut LDAP, dn : windows_sys::core::PCSTR, attr : windows_sys::core::PCSTR, value : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_compare_sA(ld : *mut LDAP, dn : windows_sys::core::PCSTR, attr : windows_sys::core::PCSTR, value : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_compare_sW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR, attr : windows_sys::core::PCWSTR, value : windows_sys::core::PCWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_conn_from_msg(primaryconn : *mut LDAP, res : *mut LDAPMessage) -> *mut LDAP);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_connect(ld : *mut LDAP, timeout : *mut LDAP_TIMEVAL) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_control_free(control : *mut LDAPControlA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_control_freeA(controls : *mut LDAPControlA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_control_freeW(control : *mut LDAPControlW) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_controls_free(controls : *mut *mut LDAPControlA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_controls_freeA(controls : *mut *mut LDAPControlA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_controls_freeW(control : *mut *mut LDAPControlW) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_count_entries(ld : *mut LDAP, res : *mut LDAPMessage) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_count_references(ld : *mut LDAP, res : *mut LDAPMessage) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_count_values(vals : *const windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_count_valuesA(vals : *const windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_count_valuesW(vals : *const windows_sys::core::PCWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_count_values_len(vals : *mut *mut LDAP_BERVAL) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_create_page_control(externalhandle : *mut LDAP, pagesize : u32, cookie : *mut LDAP_BERVAL, iscritical : u8, control : *mut *mut LDAPControlA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_create_page_controlA(externalhandle : *mut LDAP, pagesize : u32, cookie : *mut LDAP_BERVAL, iscritical : u8, control : *mut *mut LDAPControlA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_create_page_controlW(externalhandle : *mut LDAP, pagesize : u32, cookie : *mut LDAP_BERVAL, iscritical : u8, control : *mut *mut LDAPControlW) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_create_sort_control(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyA, iscritical : u8, control : *mut *mut LDAPControlA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_create_sort_controlA(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyA, iscritical : u8, control : *mut *mut LDAPControlA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_create_sort_controlW(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyW, iscritical : u8, control : *mut *mut LDAPControlW) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_create_vlv_controlA(externalhandle : *mut LDAP, vlvinfo : *mut LDAPVLVInfo, iscritical : u8, control : *mut *mut LDAPControlA) -> i32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_create_vlv_controlW(externalhandle : *mut LDAP, vlvinfo : *mut LDAPVLVInfo, iscritical : u8, control : *mut *mut LDAPControlW) -> i32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_delete(ld : *mut LDAP, dn : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_deleteA(ld : *mut LDAP, dn : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_deleteW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_delete_ext(ld : *mut LDAP, dn : windows_sys::core::PCSTR, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_delete_extA(ld : *mut LDAP, dn : windows_sys::core::PCSTR, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA, messagenumber : *mut u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_delete_extW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW, messagenumber : *mut u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_delete_ext_s(ld : *mut LDAP, dn : windows_sys::core::PCSTR, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_delete_ext_sA(ld : *mut LDAP, dn : windows_sys::core::PCSTR, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_delete_ext_sW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_delete_s(ld : *mut LDAP, dn : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_delete_sA(ld : *mut LDAP, dn : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_delete_sW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_dn2ufn(dn : windows_sys::core::PCSTR) -> windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_dn2ufnA(dn : windows_sys::core::PCSTR) -> windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_dn2ufnW(dn : windows_sys::core::PCWSTR) -> windows_sys::core::PWSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_encode_sort_controlA(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyA, control : *mut LDAPControlA, criticality : bool) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_encode_sort_controlW(externalhandle : *mut LDAP, sortkeys : *mut *mut LDAPSortKeyW, control : *mut LDAPControlW, criticality : bool) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_err2string(err : u32) -> windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_err2stringA(err : u32) -> windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_err2stringW(err : u32) -> windows_sys::core::PWSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_escape_filter_element(sourcefilterelement : windows_sys::core::PCSTR, sourcelength : u32, destfilterelement : windows_sys::core::PSTR, destlength : u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_escape_filter_elementA(sourcefilterelement : windows_sys::core::PCSTR, sourcelength : u32, destfilterelement : windows_sys::core::PSTR, destlength : u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_escape_filter_elementW(sourcefilterelement : windows_sys::core::PCSTR, sourcelength : u32, destfilterelement : windows_sys::core::PWSTR, destlength : u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_explode_dn(dn : windows_sys::core::PCSTR, notypes : u32) -> *mut windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_explode_dnA(dn : windows_sys::core::PCSTR, notypes : u32) -> *mut windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_explode_dnW(dn : windows_sys::core::PCWSTR, notypes : u32) -> *mut windows_sys::core::PWSTR);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_first_attribute(ld : *mut LDAP, entry : *mut LDAPMessage, ptr : *mut *mut BerElement) -> windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_first_attributeA(ld : *mut LDAP, entry : *mut LDAPMessage, ptr : *mut *mut BerElement) -> windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_first_attributeW(ld : *mut LDAP, entry : *mut LDAPMessage, ptr : *mut *mut BerElement) -> windows_sys::core::PWSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_first_entry(ld : *mut LDAP, res : *mut LDAPMessage) -> *mut LDAPMessage);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_first_reference(ld : *mut LDAP, res : *mut LDAPMessage) -> *mut LDAPMessage);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_free_controls(controls : *mut *mut LDAPControlA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_free_controlsA(controls : *mut *mut LDAPControlA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_free_controlsW(controls : *mut *mut LDAPControlW) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_dn(ld : *mut LDAP, entry : *mut LDAPMessage) -> windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_dnA(ld : *mut LDAP, entry : *mut LDAPMessage) -> windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_dnW(ld : *mut LDAP, entry : *mut LDAPMessage) -> windows_sys::core::PWSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_next_page(externalhandle : *mut LDAP, searchhandle : PLDAPSearch, pagesize : u32, messagenumber : *mut u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_next_page_s(externalhandle : *mut LDAP, searchhandle : PLDAPSearch, timeout : *mut LDAP_TIMEVAL, pagesize : u32, totalcount : *mut u32, results : *mut *mut LDAPMessage) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_option(ld : *mut LDAP, option : i32, outvalue : *mut core::ffi::c_void) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_optionW(ld : *mut LDAP, option : i32, outvalue : *mut core::ffi::c_void) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_paged_count(externalhandle : *mut LDAP, searchblock : PLDAPSearch, totalcount : *mut u32, results : *mut LDAPMessage) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_values(ld : *mut LDAP, entry : *mut LDAPMessage, attr : windows_sys::core::PCSTR) -> *mut windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_valuesA(ld : *mut LDAP, entry : *mut LDAPMessage, attr : windows_sys::core::PCSTR) -> *mut windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_valuesW(ld : *mut LDAP, entry : *mut LDAPMessage, attr : windows_sys::core::PCWSTR) -> *mut windows_sys::core::PWSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_values_len(externalhandle : *mut LDAP, message : *mut LDAPMessage, attr : windows_sys::core::PCSTR) -> *mut *mut LDAP_BERVAL);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_values_lenA(externalhandle : *mut LDAP, message : *mut LDAPMessage, attr : windows_sys::core::PCSTR) -> *mut *mut LDAP_BERVAL);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_get_values_lenW(externalhandle : *mut LDAP, message : *mut LDAPMessage, attr : windows_sys::core::PCWSTR) -> *mut *mut LDAP_BERVAL);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_init(hostname : windows_sys::core::PCSTR, portnumber : u32) -> *mut LDAP);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_initA(hostname : windows_sys::core::PCSTR, portnumber : u32) -> *mut LDAP);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_initW(hostname : windows_sys::core::PCWSTR, portnumber : u32) -> *mut LDAP);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_memfree(block : windows_sys::core::PCSTR));
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_memfreeA(block : windows_sys::core::PCSTR));
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_memfreeW(block : windows_sys::core::PCWSTR));
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modify(ld : *mut LDAP, dn : windows_sys::core::PCSTR, mods : *mut *mut LDAPModA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modifyA(ld : *mut LDAP, dn : windows_sys::core::PCSTR, mods : *mut *mut LDAPModA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modifyW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR, mods : *mut *mut LDAPModW) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modify_s(ld : *mut LDAP, dn : windows_sys::core::PCSTR, mods : *mut *mut LDAPModA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modify_sA(ld : *mut LDAP, dn : windows_sys::core::PCSTR, mods : *mut *mut LDAPModA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modify_sW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR, mods : *mut *mut LDAPModW) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modrdn(externalhandle : *mut LDAP, distinguishedname : windows_sys::core::PCSTR, newdistinguishedname : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modrdn2(externalhandle : *mut LDAP, distinguishedname : windows_sys::core::PCSTR, newdistinguishedname : windows_sys::core::PCSTR, deleteoldrdn : i32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modrdn2A(externalhandle : *mut LDAP, distinguishedname : windows_sys::core::PCSTR, newdistinguishedname : windows_sys::core::PCSTR, deleteoldrdn : i32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modrdn2W(externalhandle : *mut LDAP, distinguishedname : windows_sys::core::PCWSTR, newdistinguishedname : windows_sys::core::PCWSTR, deleteoldrdn : i32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modrdn2_s(externalhandle : *mut LDAP, distinguishedname : windows_sys::core::PCSTR, newdistinguishedname : windows_sys::core::PCSTR, deleteoldrdn : i32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modrdn2_sA(externalhandle : *mut LDAP, distinguishedname : windows_sys::core::PCSTR, newdistinguishedname : windows_sys::core::PCSTR, deleteoldrdn : i32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modrdn2_sW(externalhandle : *mut LDAP, distinguishedname : windows_sys::core::PCWSTR, newdistinguishedname : windows_sys::core::PCWSTR, deleteoldrdn : i32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modrdnA(externalhandle : *mut LDAP, distinguishedname : windows_sys::core::PCSTR, newdistinguishedname : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modrdnW(externalhandle : *mut LDAP, distinguishedname : windows_sys::core::PCWSTR, newdistinguishedname : windows_sys::core::PCWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modrdn_s(externalhandle : *mut LDAP, distinguishedname : windows_sys::core::PCSTR, newdistinguishedname : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modrdn_sA(externalhandle : *mut LDAP, distinguishedname : windows_sys::core::PCSTR, newdistinguishedname : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_modrdn_sW(externalhandle : *mut LDAP, distinguishedname : windows_sys::core::PCWSTR, newdistinguishedname : windows_sys::core::PCWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_msgfree(res : *mut LDAPMessage) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_next_attribute(ld : *mut LDAP, entry : *mut LDAPMessage, ptr : *mut BerElement) -> windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_next_attributeA(ld : *mut LDAP, entry : *mut LDAPMessage, ptr : *mut BerElement) -> windows_sys::core::PSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_next_attributeW(ld : *mut LDAP, entry : *mut LDAPMessage, ptr : *mut BerElement) -> windows_sys::core::PWSTR);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_next_entry(ld : *mut LDAP, entry : *mut LDAPMessage) -> *mut LDAPMessage);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_next_reference(ld : *mut LDAP, entry : *mut LDAPMessage) -> *mut LDAPMessage);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_open(hostname : windows_sys::core::PCSTR, portnumber : u32) -> *mut LDAP);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_openA(hostname : windows_sys::core::PCSTR, portnumber : u32) -> *mut LDAP);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_openW(hostname : windows_sys::core::PCWSTR, portnumber : u32) -> *mut LDAP);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_parse_extended_resultA(connection : *mut LDAP, resultmessage : *mut LDAPMessage, resultoid : *mut windows_sys::core::PSTR, resultdata : *mut *mut LDAP_BERVAL, freeit : bool) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_parse_extended_resultW(connection : *mut LDAP, resultmessage : *mut LDAPMessage, resultoid : *mut windows_sys::core::PWSTR, resultdata : *mut *mut LDAP_BERVAL, freeit : bool) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_parse_page_control(externalhandle : *mut LDAP, servercontrols : *mut *mut LDAPControlA, totalcount : *mut u32, cookie : *mut *mut LDAP_BERVAL) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_parse_page_controlA(externalhandle : *mut LDAP, servercontrols : *mut *mut LDAPControlA, totalcount : *mut u32, cookie : *mut *mut LDAP_BERVAL) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_parse_page_controlW(externalhandle : *mut LDAP, servercontrols : *mut *mut LDAPControlW, totalcount : *mut u32, cookie : *mut *mut LDAP_BERVAL) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_parse_reference(connection : *mut LDAP, resultmessage : *mut LDAPMessage, referrals : *mut *mut windows_sys::core::PSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_parse_referenceA(connection : *mut LDAP, resultmessage : *mut LDAPMessage, referrals : *mut *mut windows_sys::core::PSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_parse_referenceW(connection : *mut LDAP, resultmessage : *mut LDAPMessage, referrals : *mut *mut windows_sys::core::PWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" 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 : bool) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" 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 : bool) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" 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 : bool) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_parse_sort_control(externalhandle : *mut LDAP, control : *mut *mut LDAPControlA, result : *mut u32, attribute : *mut windows_sys::core::PSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_parse_sort_controlA(externalhandle : *mut LDAP, control : *mut *mut LDAPControlA, result : *mut u32, attribute : *mut windows_sys::core::PSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_parse_sort_controlW(externalhandle : *mut LDAP, control : *mut *mut LDAPControlW, result : *mut u32, attribute : *mut windows_sys::core::PWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_perror(ld : *mut LDAP, msg : windows_sys::core::PCSTR));
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_result(ld : *mut LDAP, msgid : u32, all : u32, timeout : *const LDAP_TIMEVAL, res : *mut *mut LDAPMessage) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_result2error(ld : *mut LDAP, res : *mut LDAPMessage, freeit : u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_search_abandon_page(externalhandle : *mut LDAP, searchblock : PLDAPSearch) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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) -> PLDAPSearch);
|
||||
windows_link::link!("wldap32.dll" "C" 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) -> PLDAPSearch);
|
||||
windows_link::link!("wldap32.dll" "C" 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) -> PLDAPSearch);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" 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);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_set_dbg_flags(newflags : u32) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_set_dbg_routine(debugprintroutine : DBGPRINT));
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_set_option(ld : *mut LDAP, option : i32, invalue : *const core::ffi::c_void) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_set_optionW(ld : *mut LDAP, option : i32, invalue : *const core::ffi::c_void) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_simple_bind(ld : *mut LDAP, dn : windows_sys::core::PCSTR, passwd : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_simple_bindA(ld : *mut LDAP, dn : windows_sys::core::PCSTR, passwd : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_simple_bindW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR, passwd : windows_sys::core::PCWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_simple_bind_s(ld : *mut LDAP, dn : windows_sys::core::PCSTR, passwd : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_simple_bind_sA(ld : *mut LDAP, dn : windows_sys::core::PCSTR, passwd : windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_simple_bind_sW(ld : *mut LDAP, dn : windows_sys::core::PCWSTR, passwd : windows_sys::core::PCWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_sslinit(hostname : windows_sys::core::PCSTR, portnumber : u32, secure : i32) -> *mut LDAP);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_sslinitA(hostname : windows_sys::core::PCSTR, portnumber : u32, secure : i32) -> *mut LDAP);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_sslinitW(hostname : windows_sys::core::PCWSTR, portnumber : u32, secure : i32) -> *mut LDAP);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_start_tls_sA(externalhandle : *mut LDAP, serverreturnvalue : *mut u32, result : *mut *mut LDAPMessage, servercontrols : *mut *mut LDAPControlA, clientcontrols : *mut *mut LDAPControlA) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_start_tls_sW(externalhandle : *mut LDAP, serverreturnvalue : *mut u32, result : *mut *mut LDAPMessage, servercontrols : *mut *mut LDAPControlW, clientcontrols : *mut *mut LDAPControlW) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_startup(version : *mut LDAP_VERSION_INFO, instance : *mut super::super::Foundation:: HANDLE) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_stop_tls_s(externalhandle : *mut LDAP) -> bool);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_ufn2dn(ufn : windows_sys::core::PCSTR, pdn : *mut windows_sys::core::PSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_ufn2dnA(ufn : windows_sys::core::PCSTR, pdn : *mut windows_sys::core::PSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_ufn2dnW(ufn : windows_sys::core::PCWSTR, pdn : *mut windows_sys::core::PWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_unbind(ld : *mut LDAP) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_unbind_s(ld : *mut LDAP) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_value_free(vals : *const windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_value_freeA(vals : *const windows_sys::core::PCSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_value_freeW(vals : *const windows_sys::core::PCWSTR) -> u32);
|
||||
windows_link::link!("wldap32.dll" "C" fn ldap_value_free_len(vals : *mut *mut LDAP_BERVAL) -> u32);
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct BerElement {
|
||||
pub opaque: windows_sys::core::PSTR,
|
||||
}
|
||||
impl Default for BerElement {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type DBGPRINT = Option<unsafe extern "system" fn(format: windows_sys::core::PCSTR) -> u32>;
|
||||
pub type DEREFERENCECONNECTION = Option<unsafe extern "system" fn(primaryconnection: *mut LDAP, connectiontodereference: *mut LDAP) -> u32>;
|
||||
pub const LAPI_MAJOR_VER1: u32 = 1u32;
|
||||
pub const LAPI_MINOR_VER1: u32 = 1u32;
|
||||
pub const LBER_DEFAULT: i32 = -1i32;
|
||||
pub const LBER_ERROR: i32 = -1i32;
|
||||
pub const LBER_TRANSLATE_STRINGS: u32 = 4u32;
|
||||
pub const LBER_USE_DER: u32 = 1u32;
|
||||
pub const LBER_USE_INDEFINITE_LEN: u32 = 2u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAP {
|
||||
pub ld_sb: LDAP_0,
|
||||
pub ld_host: windows_sys::core::PSTR,
|
||||
pub ld_version: u32,
|
||||
pub ld_lberoptions: u8,
|
||||
pub ld_deref: u32,
|
||||
pub ld_timelimit: u32,
|
||||
pub ld_sizelimit: u32,
|
||||
pub ld_errno: u32,
|
||||
pub ld_matched: windows_sys::core::PSTR,
|
||||
pub ld_error: windows_sys::core::PSTR,
|
||||
pub ld_msgid: u32,
|
||||
pub Reserved3: [u8; 25],
|
||||
pub ld_cldaptries: u32,
|
||||
pub ld_cldaptimeout: u32,
|
||||
pub ld_refhoplimit: u32,
|
||||
pub ld_options: u32,
|
||||
}
|
||||
impl Default for LDAP {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAP_0 {
|
||||
pub sb_sd: usize,
|
||||
pub Reserved1: [u8; 41],
|
||||
pub sb_naddr: usize,
|
||||
pub Reserved2: [u8; 24],
|
||||
}
|
||||
impl Default for LDAP_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAPAPIFeatureInfoA {
|
||||
pub ldapaif_info_version: i32,
|
||||
pub ldapaif_name: windows_sys::core::PSTR,
|
||||
pub ldapaif_version: i32,
|
||||
}
|
||||
impl Default for LDAPAPIFeatureInfoA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAPAPIFeatureInfoW {
|
||||
pub ldapaif_info_version: i32,
|
||||
pub ldapaif_name: windows_sys::core::PWSTR,
|
||||
pub ldapaif_version: i32,
|
||||
}
|
||||
impl Default for LDAPAPIFeatureInfoW {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAPAPIInfoA {
|
||||
pub ldapai_info_version: i32,
|
||||
pub ldapai_api_version: i32,
|
||||
pub ldapai_protocol_version: i32,
|
||||
pub ldapai_extensions: *mut *mut i8,
|
||||
pub ldapai_vendor_name: windows_sys::core::PSTR,
|
||||
pub ldapai_vendor_version: i32,
|
||||
}
|
||||
impl Default for LDAPAPIInfoA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAPAPIInfoW {
|
||||
pub ldapai_info_version: i32,
|
||||
pub ldapai_api_version: i32,
|
||||
pub ldapai_protocol_version: i32,
|
||||
pub ldapai_extensions: *mut windows_sys::core::PWSTR,
|
||||
pub ldapai_vendor_name: windows_sys::core::PWSTR,
|
||||
pub ldapai_vendor_version: i32,
|
||||
}
|
||||
impl Default for LDAPAPIInfoW {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAPControlA {
|
||||
pub ldctl_oid: windows_sys::core::PSTR,
|
||||
pub ldctl_value: LDAP_BERVAL,
|
||||
pub ldctl_iscritical: bool,
|
||||
}
|
||||
impl Default for LDAPControlA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAPControlW {
|
||||
pub ldctl_oid: windows_sys::core::PWSTR,
|
||||
pub ldctl_value: LDAP_BERVAL,
|
||||
pub ldctl_iscritical: bool,
|
||||
}
|
||||
impl Default for LDAPControlW {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
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: bool,
|
||||
pub lm_eom: bool,
|
||||
pub ConnectionReferenced: bool,
|
||||
}
|
||||
impl Default for LDAPMessage {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAPModA {
|
||||
pub mod_op: u32,
|
||||
pub mod_type: windows_sys::core::PSTR,
|
||||
pub mod_vals: LDAPModA_0,
|
||||
}
|
||||
impl Default for LDAPModA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union LDAPModA_0 {
|
||||
pub modv_strvals: *mut windows_sys::core::PSTR,
|
||||
pub modv_bvals: *mut *mut LDAP_BERVAL,
|
||||
}
|
||||
impl Default for LDAPModA_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAPModW {
|
||||
pub mod_op: u32,
|
||||
pub mod_type: windows_sys::core::PWSTR,
|
||||
pub mod_vals: LDAPModW_0,
|
||||
}
|
||||
impl Default for LDAPModW {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union LDAPModW_0 {
|
||||
pub modv_strvals: *mut windows_sys::core::PWSTR,
|
||||
pub modv_bvals: *mut *mut LDAP_BERVAL,
|
||||
}
|
||||
impl Default for LDAPModW_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAPSortKeyA {
|
||||
pub sk_attrtype: windows_sys::core::PSTR,
|
||||
pub sk_matchruleoid: windows_sys::core::PSTR,
|
||||
pub sk_reverseorder: bool,
|
||||
}
|
||||
impl Default for LDAPSortKeyA {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAPSortKeyW {
|
||||
pub sk_attrtype: windows_sys::core::PWSTR,
|
||||
pub sk_matchruleoid: windows_sys::core::PWSTR,
|
||||
pub sk_reverseorder: bool,
|
||||
}
|
||||
impl Default for LDAPSortKeyW {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAPVLVInfo {
|
||||
pub ldvlv_version: i32,
|
||||
pub ldvlv_before_count: u32,
|
||||
pub ldvlv_after_count: u32,
|
||||
pub ldvlv_offset: u32,
|
||||
pub ldvlv_count: u32,
|
||||
pub ldvlv_attrvalue: *mut LDAP_BERVAL,
|
||||
pub ldvlv_context: *mut LDAP_BERVAL,
|
||||
pub ldvlv_extradata: *mut core::ffi::c_void,
|
||||
}
|
||||
impl Default for LDAPVLVInfo {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const LDAP_ABANDON_CMD: i32 = 80i32;
|
||||
pub const LDAP_ADD_CMD: i32 = 104i32;
|
||||
pub const LDAP_ADMIN_LIMIT_EXCEEDED: LDAP_RETCODE = 11i32;
|
||||
pub const LDAP_AFFECTS_MULTIPLE_DSAS: LDAP_RETCODE = 71i32;
|
||||
pub const LDAP_ALIAS_DEREF_PROBLEM: LDAP_RETCODE = 36i32;
|
||||
pub const LDAP_ALIAS_PROBLEM: LDAP_RETCODE = 33i32;
|
||||
pub const LDAP_ALREADY_EXISTS: LDAP_RETCODE = 68i32;
|
||||
pub const LDAP_API_FEATURE_VIRTUAL_LIST_VIEW: u32 = 1001u32;
|
||||
pub const LDAP_API_INFO_VERSION: u32 = 1u32;
|
||||
pub const LDAP_API_VERSION: u32 = 2004u32;
|
||||
pub const LDAP_ATTRIBUTE_OR_VALUE_EXISTS: LDAP_RETCODE = 20i32;
|
||||
pub const LDAP_AUTH_METHOD_NOT_SUPPORTED: LDAP_RETCODE = 7i32;
|
||||
pub const LDAP_AUTH_OTHERKIND: i32 = 134i32;
|
||||
pub const LDAP_AUTH_SASL: i32 = 131i32;
|
||||
pub const LDAP_AUTH_SIMPLE: i32 = 128i32;
|
||||
pub const LDAP_AUTH_UNKNOWN: LDAP_RETCODE = 86i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct LDAP_BERVAL {
|
||||
pub bv_len: u32,
|
||||
pub bv_val: windows_sys::core::PSTR,
|
||||
}
|
||||
impl Default for LDAP_BERVAL {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const LDAP_BIND_CMD: i32 = 96i32;
|
||||
pub const LDAP_BUSY: LDAP_RETCODE = 51i32;
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_ADAM_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1851");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_ADAM_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1851");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_LDAP_INTEG_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1791");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_LDAP_INTEG_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1791");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.800");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.800");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_PARTIAL_SECRETS_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1920");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_PARTIAL_SECRETS_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1920");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_V51_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1670");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_V51_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1670");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_V60_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1935");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_V60_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1935");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_V61_OID: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1935");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_V61_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1935");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_V61_R2_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2080");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_V61_R2_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2080");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_W8_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2237");
|
||||
pub const LDAP_CAP_ACTIVE_DIRECTORY_W8_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2237");
|
||||
pub const LDAP_CHASE_EXTERNAL_REFERRALS: u32 = 64u32;
|
||||
pub const LDAP_CHASE_SUBORDINATE_REFERRALS: u32 = 32u32;
|
||||
pub const LDAP_CLIENT_LOOP: LDAP_RETCODE = 96i32;
|
||||
pub const LDAP_COMPARE_CMD: i32 = 110i32;
|
||||
pub const LDAP_COMPARE_FALSE: LDAP_RETCODE = 5i32;
|
||||
pub const LDAP_COMPARE_TRUE: LDAP_RETCODE = 6i32;
|
||||
pub const LDAP_CONFIDENTIALITY_REQUIRED: LDAP_RETCODE = 13i32;
|
||||
pub const LDAP_CONNECT_ERROR: LDAP_RETCODE = 91i32;
|
||||
pub const LDAP_CONSTRAINT_VIOLATION: LDAP_RETCODE = 19i32;
|
||||
pub const LDAP_CONTROL_NOT_FOUND: LDAP_RETCODE = 93i32;
|
||||
pub const LDAP_CONTROL_REFERRALS: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.616");
|
||||
pub const LDAP_CONTROL_REFERRALS_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.616");
|
||||
pub const LDAP_CONTROL_VLVREQUEST: windows_sys::core::PCSTR = windows_sys::core::s!("2.16.840.1.113730.3.4.9");
|
||||
pub const LDAP_CONTROL_VLVREQUEST_W: windows_sys::core::PCWSTR = windows_sys::core::w!("2.16.840.1.113730.3.4.9");
|
||||
pub const LDAP_CONTROL_VLVRESPONSE: windows_sys::core::PCSTR = windows_sys::core::s!("2.16.840.1.113730.3.4.10");
|
||||
pub const LDAP_CONTROL_VLVRESPONSE_W: windows_sys::core::PCWSTR = windows_sys::core::w!("2.16.840.1.113730.3.4.10");
|
||||
pub const LDAP_DECODING_ERROR: LDAP_RETCODE = 84i32;
|
||||
pub const LDAP_DELETE_CMD: i32 = 74i32;
|
||||
pub const LDAP_DEREF_ALWAYS: u32 = 3u32;
|
||||
pub const LDAP_DEREF_FINDING: u32 = 2u32;
|
||||
pub const LDAP_DEREF_NEVER: u32 = 0u32;
|
||||
pub const LDAP_DEREF_SEARCHING: u32 = 1u32;
|
||||
pub const LDAP_DIRSYNC_ANCESTORS_FIRST_ORDER: u32 = 2048u32;
|
||||
pub const LDAP_DIRSYNC_INCREMENTAL_VALUES: u32 = 2147483648u32;
|
||||
pub const LDAP_DIRSYNC_OBJECT_SECURITY: u32 = 1u32;
|
||||
pub const LDAP_DIRSYNC_PUBLIC_DATA_ONLY: u32 = 8192u32;
|
||||
pub const LDAP_DIRSYNC_ROPAS_DATA_ONLY: u32 = 1073741824u32;
|
||||
pub const LDAP_ENCODING_ERROR: LDAP_RETCODE = 83i32;
|
||||
pub const LDAP_EXTENDED_CMD: i32 = 119i32;
|
||||
pub const LDAP_FEATURE_INFO_VERSION: u32 = 1u32;
|
||||
pub const LDAP_FILTER_AND: u32 = 160u32;
|
||||
pub const LDAP_FILTER_APPROX: u32 = 168u32;
|
||||
pub const LDAP_FILTER_EQUALITY: u32 = 163u32;
|
||||
pub const LDAP_FILTER_ERROR: LDAP_RETCODE = 87i32;
|
||||
pub const LDAP_FILTER_EXTENSIBLE: u32 = 169u32;
|
||||
pub const LDAP_FILTER_GE: u32 = 165u32;
|
||||
pub const LDAP_FILTER_LE: u32 = 166u32;
|
||||
pub const LDAP_FILTER_NOT: u32 = 162u32;
|
||||
pub const LDAP_FILTER_OR: u32 = 161u32;
|
||||
pub const LDAP_FILTER_PRESENT: u32 = 135u32;
|
||||
pub const LDAP_FILTER_SUBSTRINGS: u32 = 164u32;
|
||||
pub const LDAP_GC_PORT: u32 = 3268u32;
|
||||
pub const LDAP_INAPPROPRIATE_AUTH: LDAP_RETCODE = 48i32;
|
||||
pub const LDAP_INAPPROPRIATE_MATCHING: LDAP_RETCODE = 18i32;
|
||||
pub const LDAP_INSUFFICIENT_RIGHTS: LDAP_RETCODE = 50i32;
|
||||
pub const LDAP_INVALID_CMD: u32 = 255u32;
|
||||
pub const LDAP_INVALID_CREDENTIALS: LDAP_RETCODE = 49i32;
|
||||
pub const LDAP_INVALID_DN_SYNTAX: LDAP_RETCODE = 34i32;
|
||||
pub const LDAP_INVALID_RES: u32 = 255u32;
|
||||
pub const LDAP_INVALID_SYNTAX: LDAP_RETCODE = 21i32;
|
||||
pub const LDAP_IS_LEAF: LDAP_RETCODE = 35i32;
|
||||
pub const LDAP_LOCAL_ERROR: LDAP_RETCODE = 82i32;
|
||||
pub const LDAP_LOOP_DETECT: LDAP_RETCODE = 54i32;
|
||||
pub const LDAP_MATCHING_RULE_BIT_AND: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.803");
|
||||
pub const LDAP_MATCHING_RULE_BIT_AND_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.803");
|
||||
pub const LDAP_MATCHING_RULE_BIT_OR: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.804");
|
||||
pub const LDAP_MATCHING_RULE_BIT_OR_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.804");
|
||||
pub const LDAP_MATCHING_RULE_DN_BINARY_COMPLEX: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2253");
|
||||
pub const LDAP_MATCHING_RULE_DN_BINARY_COMPLEX_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2253");
|
||||
pub const LDAP_MATCHING_RULE_TRANSITIVE_EVALUATION: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1941");
|
||||
pub const LDAP_MATCHING_RULE_TRANSITIVE_EVALUATION_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1941");
|
||||
pub const LDAP_MODIFY_CMD: i32 = 102i32;
|
||||
pub const LDAP_MODRDN_CMD: i32 = 108i32;
|
||||
pub const LDAP_MOD_ADD: u32 = 0u32;
|
||||
pub const LDAP_MOD_BVALUES: u32 = 128u32;
|
||||
pub const LDAP_MOD_DELETE: u32 = 1u32;
|
||||
pub const LDAP_MOD_REPLACE: u32 = 2u32;
|
||||
pub const LDAP_MORE_RESULTS_TO_RETURN: LDAP_RETCODE = 95i32;
|
||||
pub const LDAP_MSG_ALL: u32 = 1u32;
|
||||
pub const LDAP_MSG_ONE: u32 = 0u32;
|
||||
pub const LDAP_MSG_RECEIVED: u32 = 2u32;
|
||||
pub const LDAP_NAMING_VIOLATION: LDAP_RETCODE = 64i32;
|
||||
pub const LDAP_NOT_ALLOWED_ON_NONLEAF: LDAP_RETCODE = 66i32;
|
||||
pub const LDAP_NOT_ALLOWED_ON_RDN: LDAP_RETCODE = 67i32;
|
||||
pub const LDAP_NOT_SUPPORTED: LDAP_RETCODE = 92i32;
|
||||
pub const LDAP_NO_LIMIT: u32 = 0u32;
|
||||
pub const LDAP_NO_MEMORY: LDAP_RETCODE = 90i32;
|
||||
pub const LDAP_NO_OBJECT_CLASS_MODS: LDAP_RETCODE = 69i32;
|
||||
pub const LDAP_NO_RESULTS_RETURNED: LDAP_RETCODE = 94i32;
|
||||
pub const LDAP_NO_SUCH_ATTRIBUTE: LDAP_RETCODE = 16i32;
|
||||
pub const LDAP_NO_SUCH_OBJECT: LDAP_RETCODE = 32i32;
|
||||
pub const LDAP_OBJECT_CLASS_VIOLATION: LDAP_RETCODE = 65i32;
|
||||
pub const LDAP_OFFSET_RANGE_ERROR: LDAP_RETCODE = 61i32;
|
||||
pub const LDAP_OPATT_ABANDON_REPL: windows_sys::core::PCSTR = windows_sys::core::s!("abandonReplication");
|
||||
pub const LDAP_OPATT_ABANDON_REPL_W: windows_sys::core::PCWSTR = windows_sys::core::w!("abandonReplication");
|
||||
pub const LDAP_OPATT_BECOME_DOM_MASTER: windows_sys::core::PCSTR = windows_sys::core::s!("becomeDomainMaster");
|
||||
pub const LDAP_OPATT_BECOME_DOM_MASTER_W: windows_sys::core::PCWSTR = windows_sys::core::w!("becomeDomainMaster");
|
||||
pub const LDAP_OPATT_BECOME_PDC: windows_sys::core::PCSTR = windows_sys::core::s!("becomePdc");
|
||||
pub const LDAP_OPATT_BECOME_PDC_W: windows_sys::core::PCWSTR = windows_sys::core::w!("becomePdc");
|
||||
pub const LDAP_OPATT_BECOME_RID_MASTER: windows_sys::core::PCSTR = windows_sys::core::s!("becomeRidMaster");
|
||||
pub const LDAP_OPATT_BECOME_RID_MASTER_W: windows_sys::core::PCWSTR = windows_sys::core::w!("becomeRidMaster");
|
||||
pub const LDAP_OPATT_BECOME_SCHEMA_MASTER: windows_sys::core::PCSTR = windows_sys::core::s!("becomeSchemaMaster");
|
||||
pub const LDAP_OPATT_BECOME_SCHEMA_MASTER_W: windows_sys::core::PCWSTR = windows_sys::core::w!("becomeSchemaMaster");
|
||||
pub const LDAP_OPATT_CONFIG_NAMING_CONTEXT: windows_sys::core::PCSTR = windows_sys::core::s!("configurationNamingContext");
|
||||
pub const LDAP_OPATT_CONFIG_NAMING_CONTEXT_W: windows_sys::core::PCWSTR = windows_sys::core::w!("configurationNamingContext");
|
||||
pub const LDAP_OPATT_CURRENT_TIME: windows_sys::core::PCSTR = windows_sys::core::s!("currentTime");
|
||||
pub const LDAP_OPATT_CURRENT_TIME_W: windows_sys::core::PCWSTR = windows_sys::core::w!("currentTime");
|
||||
pub const LDAP_OPATT_DEFAULT_NAMING_CONTEXT: windows_sys::core::PCSTR = windows_sys::core::s!("defaultNamingContext");
|
||||
pub const LDAP_OPATT_DEFAULT_NAMING_CONTEXT_W: windows_sys::core::PCWSTR = windows_sys::core::w!("defaultNamingContext");
|
||||
pub const LDAP_OPATT_DNS_HOST_NAME: windows_sys::core::PCSTR = windows_sys::core::s!("dnsHostName");
|
||||
pub const LDAP_OPATT_DNS_HOST_NAME_W: windows_sys::core::PCWSTR = windows_sys::core::w!("dnsHostName");
|
||||
pub const LDAP_OPATT_DO_GARBAGE_COLLECTION: windows_sys::core::PCSTR = windows_sys::core::s!("doGarbageCollection");
|
||||
pub const LDAP_OPATT_DO_GARBAGE_COLLECTION_W: windows_sys::core::PCWSTR = windows_sys::core::w!("doGarbageCollection");
|
||||
pub const LDAP_OPATT_DS_SERVICE_NAME: windows_sys::core::PCSTR = windows_sys::core::s!("dsServiceName");
|
||||
pub const LDAP_OPATT_DS_SERVICE_NAME_W: windows_sys::core::PCWSTR = windows_sys::core::w!("dsServiceName");
|
||||
pub const LDAP_OPATT_FIXUP_INHERITANCE: windows_sys::core::PCSTR = windows_sys::core::s!("fixupInheritance");
|
||||
pub const LDAP_OPATT_FIXUP_INHERITANCE_W: windows_sys::core::PCWSTR = windows_sys::core::w!("fixupInheritance");
|
||||
pub const LDAP_OPATT_HIGHEST_COMMITTED_USN: windows_sys::core::PCSTR = windows_sys::core::s!("highestCommitedUSN");
|
||||
pub const LDAP_OPATT_HIGHEST_COMMITTED_USN_W: windows_sys::core::PCWSTR = windows_sys::core::w!("highestCommitedUSN");
|
||||
pub const LDAP_OPATT_INVALIDATE_RID_POOL: windows_sys::core::PCSTR = windows_sys::core::s!("invalidateRidPool");
|
||||
pub const LDAP_OPATT_INVALIDATE_RID_POOL_W: windows_sys::core::PCWSTR = windows_sys::core::w!("invalidateRidPool");
|
||||
pub const LDAP_OPATT_LDAP_SERVICE_NAME: windows_sys::core::PCSTR = windows_sys::core::s!("ldapServiceName");
|
||||
pub const LDAP_OPATT_LDAP_SERVICE_NAME_W: windows_sys::core::PCWSTR = windows_sys::core::w!("ldapServiceName");
|
||||
pub const LDAP_OPATT_NAMING_CONTEXTS: windows_sys::core::PCSTR = windows_sys::core::s!("namingContexts");
|
||||
pub const LDAP_OPATT_NAMING_CONTEXTS_W: windows_sys::core::PCWSTR = windows_sys::core::w!("namingContexts");
|
||||
pub const LDAP_OPATT_RECALC_HIERARCHY: windows_sys::core::PCSTR = windows_sys::core::s!("recalcHierarchy");
|
||||
pub const LDAP_OPATT_RECALC_HIERARCHY_W: windows_sys::core::PCWSTR = windows_sys::core::w!("recalcHierarchy");
|
||||
pub const LDAP_OPATT_ROOT_DOMAIN_NAMING_CONTEXT: windows_sys::core::PCSTR = windows_sys::core::s!("rootDomainNamingContext");
|
||||
pub const LDAP_OPATT_ROOT_DOMAIN_NAMING_CONTEXT_W: windows_sys::core::PCWSTR = windows_sys::core::w!("rootDomainNamingContext");
|
||||
pub const LDAP_OPATT_SCHEMA_NAMING_CONTEXT: windows_sys::core::PCSTR = windows_sys::core::s!("schemaNamingContext");
|
||||
pub const LDAP_OPATT_SCHEMA_NAMING_CONTEXT_W: windows_sys::core::PCWSTR = windows_sys::core::w!("schemaNamingContext");
|
||||
pub const LDAP_OPATT_SCHEMA_UPDATE_NOW: windows_sys::core::PCSTR = windows_sys::core::s!("schemaUpdateNow");
|
||||
pub const LDAP_OPATT_SCHEMA_UPDATE_NOW_W: windows_sys::core::PCWSTR = windows_sys::core::w!("schemaUpdateNow");
|
||||
pub const LDAP_OPATT_SERVER_NAME: windows_sys::core::PCSTR = windows_sys::core::s!("serverName");
|
||||
pub const LDAP_OPATT_SERVER_NAME_W: windows_sys::core::PCWSTR = windows_sys::core::w!("serverName");
|
||||
pub const LDAP_OPATT_SUBSCHEMA_SUBENTRY: windows_sys::core::PCSTR = windows_sys::core::s!("subschemaSubentry");
|
||||
pub const LDAP_OPATT_SUBSCHEMA_SUBENTRY_W: windows_sys::core::PCWSTR = windows_sys::core::w!("subschemaSubentry");
|
||||
pub const LDAP_OPATT_SUPPORTED_CAPABILITIES: windows_sys::core::PCSTR = windows_sys::core::s!("supportedCapabilities");
|
||||
pub const LDAP_OPATT_SUPPORTED_CAPABILITIES_W: windows_sys::core::PCWSTR = windows_sys::core::w!("supportedCapabilities");
|
||||
pub const LDAP_OPATT_SUPPORTED_CONTROL: windows_sys::core::PCSTR = windows_sys::core::s!("supportedControl");
|
||||
pub const LDAP_OPATT_SUPPORTED_CONTROL_W: windows_sys::core::PCWSTR = windows_sys::core::w!("supportedControl");
|
||||
pub const LDAP_OPATT_SUPPORTED_LDAP_POLICIES: windows_sys::core::PCSTR = windows_sys::core::s!("supportedLDAPPolicies");
|
||||
pub const LDAP_OPATT_SUPPORTED_LDAP_POLICIES_W: windows_sys::core::PCWSTR = windows_sys::core::w!("supportedLDAPPolicies");
|
||||
pub const LDAP_OPATT_SUPPORTED_LDAP_VERSION: windows_sys::core::PCSTR = windows_sys::core::s!("supportedLDAPVersion");
|
||||
pub const LDAP_OPATT_SUPPORTED_LDAP_VERSION_W: windows_sys::core::PCWSTR = windows_sys::core::w!("supportedLDAPVersion");
|
||||
pub const LDAP_OPATT_SUPPORTED_SASL_MECHANISM: windows_sys::core::PCSTR = windows_sys::core::s!("supportedSASLMechanisms");
|
||||
pub const LDAP_OPATT_SUPPORTED_SASL_MECHANISM_W: windows_sys::core::PCWSTR = windows_sys::core::w!("supportedSASLMechanisms");
|
||||
pub const LDAP_OPERATIONS_ERROR: LDAP_RETCODE = 1i32;
|
||||
pub const LDAP_OPT_API_FEATURE_INFO: u32 = 21u32;
|
||||
pub const LDAP_OPT_API_INFO: u32 = 0u32;
|
||||
pub const LDAP_OPT_AREC_EXCLUSIVE: u32 = 152u32;
|
||||
pub const LDAP_OPT_AUTO_RECONNECT: u32 = 145u32;
|
||||
pub const LDAP_OPT_CACHE_ENABLE: u32 = 15u32;
|
||||
pub const LDAP_OPT_CACHE_FN_PTRS: u32 = 13u32;
|
||||
pub const LDAP_OPT_CACHE_STRATEGY: u32 = 14u32;
|
||||
pub const LDAP_OPT_CHASE_REFERRALS: u32 = 2u32;
|
||||
pub const LDAP_OPT_CLDAP_TIMEOUT: u32 = 69u32;
|
||||
pub const LDAP_OPT_CLDAP_TRIES: u32 = 70u32;
|
||||
pub const LDAP_OPT_CLIENT_CERTIFICATE: u32 = 128u32;
|
||||
pub const LDAP_OPT_DEREF: u32 = 2u32;
|
||||
pub const LDAP_OPT_DESC: u32 = 1u32;
|
||||
pub const LDAP_OPT_DNS: u32 = 1u32;
|
||||
pub const LDAP_OPT_DNSDOMAIN_NAME: u32 = 59u32;
|
||||
pub const LDAP_OPT_ENCRYPT: u32 = 150u32;
|
||||
pub const LDAP_OPT_ERROR_NUMBER: u32 = 49u32;
|
||||
pub const LDAP_OPT_ERROR_STRING: u32 = 50u32;
|
||||
pub const LDAP_OPT_FAST_CONCURRENT_BIND: u32 = 65u32;
|
||||
pub const LDAP_OPT_GETDSNAME_FLAGS: u32 = 61u32;
|
||||
pub const LDAP_OPT_HOST_NAME: u32 = 48u32;
|
||||
pub const LDAP_OPT_HOST_REACHABLE: u32 = 62u32;
|
||||
pub const LDAP_OPT_IO_FN_PTRS: u32 = 11u32;
|
||||
pub const LDAP_OPT_PING_KEEP_ALIVE: u32 = 54u32;
|
||||
pub const LDAP_OPT_PING_LIMIT: u32 = 56u32;
|
||||
pub const LDAP_OPT_PING_WAIT_TIME: u32 = 55u32;
|
||||
pub const LDAP_OPT_PROMPT_CREDENTIALS: u32 = 63u32;
|
||||
pub const LDAP_OPT_PROTOCOL_VERSION: u32 = 17u32;
|
||||
pub const LDAP_OPT_REBIND_ARG: u32 = 7u32;
|
||||
pub const LDAP_OPT_REBIND_FN: u32 = 6u32;
|
||||
pub const LDAP_OPT_REFERRALS: u32 = 8u32;
|
||||
pub const LDAP_OPT_REFERRAL_CALLBACK: u32 = 112u32;
|
||||
pub const LDAP_OPT_REFERRAL_HOP_LIMIT: u32 = 16u32;
|
||||
pub const LDAP_OPT_REF_DEREF_CONN_PER_MSG: u32 = 148u32;
|
||||
pub const LDAP_OPT_RESTART: u32 = 9u32;
|
||||
pub const LDAP_OPT_RETURN_REFS: u32 = 4u32;
|
||||
pub const LDAP_OPT_ROOTDSE_CACHE: u32 = 154u32;
|
||||
pub const LDAP_OPT_SASL_METHOD: u32 = 151u32;
|
||||
pub const LDAP_OPT_SCH_FLAGS: u32 = 67u32;
|
||||
pub const LDAP_OPT_SECURITY_CONTEXT: u32 = 153u32;
|
||||
pub const LDAP_OPT_SEND_TIMEOUT: u32 = 66u32;
|
||||
pub const LDAP_OPT_SERVER_CERTIFICATE: u32 = 129u32;
|
||||
pub const LDAP_OPT_SERVER_ERROR: u32 = 51u32;
|
||||
pub const LDAP_OPT_SERVER_EXT_ERROR: u32 = 52u32;
|
||||
pub const LDAP_OPT_SIGN: u32 = 149u32;
|
||||
pub const LDAP_OPT_SIZELIMIT: u32 = 3u32;
|
||||
pub const LDAP_OPT_SOCKET_BIND_ADDRESSES: u32 = 68u32;
|
||||
pub const LDAP_OPT_SSL: u32 = 10u32;
|
||||
pub const LDAP_OPT_SSL_INFO: u32 = 147u32;
|
||||
pub const LDAP_OPT_SSPI_FLAGS: u32 = 146u32;
|
||||
pub const LDAP_OPT_TCP_KEEPALIVE: u32 = 64u32;
|
||||
pub const LDAP_OPT_THREAD_FN_PTRS: u32 = 5u32;
|
||||
pub const LDAP_OPT_TIMELIMIT: u32 = 4u32;
|
||||
pub const LDAP_OPT_TLS: u32 = 10u32;
|
||||
pub const LDAP_OPT_TLS_INFO: u32 = 147u32;
|
||||
pub const LDAP_OPT_VERSION: u32 = 17u32;
|
||||
pub const LDAP_OTHER: LDAP_RETCODE = 80i32;
|
||||
pub const LDAP_PAGED_RESULT_OID_STRING: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.319");
|
||||
pub const LDAP_PAGED_RESULT_OID_STRING_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.319");
|
||||
pub const LDAP_PARAM_ERROR: LDAP_RETCODE = 89i32;
|
||||
pub const LDAP_PARTIAL_RESULTS: LDAP_RETCODE = 9i32;
|
||||
pub const LDAP_POLICYHINT_APPLY_FULLPWDPOLICY: u32 = 1u32;
|
||||
pub const LDAP_PORT: u32 = 389u32;
|
||||
pub const LDAP_PROTOCOL_ERROR: LDAP_RETCODE = 2i32;
|
||||
pub const LDAP_REFERRAL: LDAP_RETCODE = 10i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct LDAP_REFERRAL_CALLBACK {
|
||||
pub SizeOfCallbacks: u32,
|
||||
pub QueryForConnection: QUERYFORCONNECTION,
|
||||
pub NotifyRoutine: NOTIFYOFNEWCONNECTION,
|
||||
pub DereferenceRoutine: DEREFERENCECONNECTION,
|
||||
}
|
||||
pub const LDAP_REFERRAL_LIMIT_EXCEEDED: LDAP_RETCODE = 97i32;
|
||||
pub const LDAP_REFERRAL_V2: LDAP_RETCODE = 9i32;
|
||||
pub const LDAP_RESULTS_TOO_LARGE: LDAP_RETCODE = 70i32;
|
||||
pub const LDAP_RES_ADD: i32 = 105i32;
|
||||
pub const LDAP_RES_ANY: i32 = -1i32;
|
||||
pub const LDAP_RES_BIND: i32 = 97i32;
|
||||
pub const LDAP_RES_COMPARE: i32 = 111i32;
|
||||
pub const LDAP_RES_DELETE: i32 = 107i32;
|
||||
pub const LDAP_RES_EXTENDED: i32 = 120i32;
|
||||
pub const LDAP_RES_MODIFY: i32 = 103i32;
|
||||
pub const LDAP_RES_MODRDN: i32 = 109i32;
|
||||
pub const LDAP_RES_REFERRAL: i32 = 115i32;
|
||||
pub const LDAP_RES_SEARCH_ENTRY: i32 = 100i32;
|
||||
pub const LDAP_RES_SEARCH_RESULT: i32 = 101i32;
|
||||
pub const LDAP_RES_SESSION: i32 = 114i32;
|
||||
pub type LDAP_RETCODE = i32;
|
||||
pub const LDAP_SASL_BIND_IN_PROGRESS: LDAP_RETCODE = 14i32;
|
||||
pub const LDAP_SCOPE_BASE: u32 = 0u32;
|
||||
pub const LDAP_SCOPE_ONELEVEL: u32 = 1u32;
|
||||
pub const LDAP_SCOPE_SUBTREE: u32 = 2u32;
|
||||
pub const LDAP_SEARCH_CMD: i32 = 99i32;
|
||||
pub const LDAP_SEARCH_HINT_INDEX_ONLY_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2207");
|
||||
pub const LDAP_SEARCH_HINT_INDEX_ONLY_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2207");
|
||||
pub const LDAP_SEARCH_HINT_REQUIRED_INDEX_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2306");
|
||||
pub const LDAP_SEARCH_HINT_REQUIRED_INDEX_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2306");
|
||||
pub const LDAP_SEARCH_HINT_SOFT_SIZE_LIMIT_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2210");
|
||||
pub const LDAP_SEARCH_HINT_SOFT_SIZE_LIMIT_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2210");
|
||||
pub const LDAP_SERVER_ASQ_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1504");
|
||||
pub const LDAP_SERVER_ASQ_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1504");
|
||||
pub const LDAP_SERVER_BATCH_REQUEST_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2212");
|
||||
pub const LDAP_SERVER_BATCH_REQUEST_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2212");
|
||||
pub const LDAP_SERVER_BYPASS_QUOTA_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2256");
|
||||
pub const LDAP_SERVER_BYPASS_QUOTA_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2256");
|
||||
pub const LDAP_SERVER_CROSSDOM_MOVE_TARGET_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.521");
|
||||
pub const LDAP_SERVER_CROSSDOM_MOVE_TARGET_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.521");
|
||||
pub const LDAP_SERVER_DIRSYNC_EX_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2090");
|
||||
pub const LDAP_SERVER_DIRSYNC_EX_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2090");
|
||||
pub const LDAP_SERVER_DIRSYNC_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.841");
|
||||
pub const LDAP_SERVER_DIRSYNC_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.841");
|
||||
pub const LDAP_SERVER_DN_INPUT_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2026");
|
||||
pub const LDAP_SERVER_DN_INPUT_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2026");
|
||||
pub const LDAP_SERVER_DOMAIN_SCOPE_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1339");
|
||||
pub const LDAP_SERVER_DOMAIN_SCOPE_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1339");
|
||||
pub const LDAP_SERVER_DOWN: LDAP_RETCODE = 81i32;
|
||||
pub const LDAP_SERVER_EXPECTED_ENTRY_COUNT_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2211");
|
||||
pub const LDAP_SERVER_EXPECTED_ENTRY_COUNT_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2211");
|
||||
pub const LDAP_SERVER_EXTENDED_DN_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.529");
|
||||
pub const LDAP_SERVER_EXTENDED_DN_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.529");
|
||||
pub const LDAP_SERVER_FAST_BIND_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1781");
|
||||
pub const LDAP_SERVER_FAST_BIND_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1781");
|
||||
pub const LDAP_SERVER_FORCE_UPDATE_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1974");
|
||||
pub const LDAP_SERVER_FORCE_UPDATE_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1974");
|
||||
pub const LDAP_SERVER_GET_STATS_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.970");
|
||||
pub const LDAP_SERVER_GET_STATS_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.970");
|
||||
pub const LDAP_SERVER_LAZY_COMMIT_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.619");
|
||||
pub const LDAP_SERVER_LAZY_COMMIT_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.619");
|
||||
pub const LDAP_SERVER_LINK_TTL_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2309");
|
||||
pub const LDAP_SERVER_LINK_TTL_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2309");
|
||||
pub const LDAP_SERVER_NOTIFICATION_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.528");
|
||||
pub const LDAP_SERVER_NOTIFICATION_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.528");
|
||||
pub const LDAP_SERVER_PERMISSIVE_MODIFY_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1413");
|
||||
pub const LDAP_SERVER_PERMISSIVE_MODIFY_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1413");
|
||||
pub const LDAP_SERVER_POLICY_HINTS_DEPRECATED_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2066");
|
||||
pub const LDAP_SERVER_POLICY_HINTS_DEPRECATED_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2066");
|
||||
pub const LDAP_SERVER_POLICY_HINTS_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2239");
|
||||
pub const LDAP_SERVER_POLICY_HINTS_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2239");
|
||||
pub const LDAP_SERVER_QUOTA_CONTROL_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1852");
|
||||
pub const LDAP_SERVER_QUOTA_CONTROL_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1852");
|
||||
pub const LDAP_SERVER_RANGE_OPTION_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.802");
|
||||
pub const LDAP_SERVER_RANGE_OPTION_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.802");
|
||||
pub const LDAP_SERVER_RANGE_RETRIEVAL_NOERR_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1948");
|
||||
pub const LDAP_SERVER_RANGE_RETRIEVAL_NOERR_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1948");
|
||||
pub const LDAP_SERVER_RESP_SORT_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.474");
|
||||
pub const LDAP_SERVER_RESP_SORT_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.474");
|
||||
pub const LDAP_SERVER_SD_FLAGS_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.801");
|
||||
pub const LDAP_SERVER_SD_FLAGS_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.801");
|
||||
pub const LDAP_SERVER_SEARCH_HINTS_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2206");
|
||||
pub const LDAP_SERVER_SEARCH_HINTS_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2206");
|
||||
pub const LDAP_SERVER_SEARCH_OPTIONS_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1340");
|
||||
pub const LDAP_SERVER_SEARCH_OPTIONS_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1340");
|
||||
pub const LDAP_SERVER_SET_OWNER_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2255");
|
||||
pub const LDAP_SERVER_SET_OWNER_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2255");
|
||||
pub const LDAP_SERVER_SHOW_DEACTIVATED_LINK_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2065");
|
||||
pub const LDAP_SERVER_SHOW_DEACTIVATED_LINK_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2065");
|
||||
pub const LDAP_SERVER_SHOW_DELETED_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.417");
|
||||
pub const LDAP_SERVER_SHOW_DELETED_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.417");
|
||||
pub const LDAP_SERVER_SHOW_RECYCLED_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2064");
|
||||
pub const LDAP_SERVER_SHOW_RECYCLED_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2064");
|
||||
pub const LDAP_SERVER_SHUTDOWN_NOTIFY_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1907");
|
||||
pub const LDAP_SERVER_SHUTDOWN_NOTIFY_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1907");
|
||||
pub const LDAP_SERVER_SORT_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.473");
|
||||
pub const LDAP_SERVER_SORT_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.473");
|
||||
pub const LDAP_SERVER_TREE_DELETE_EX_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2204");
|
||||
pub const LDAP_SERVER_TREE_DELETE_EX_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2204");
|
||||
pub const LDAP_SERVER_TREE_DELETE_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.805");
|
||||
pub const LDAP_SERVER_TREE_DELETE_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.805");
|
||||
pub const LDAP_SERVER_UPDATE_STATS_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2205");
|
||||
pub const LDAP_SERVER_UPDATE_STATS_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2205");
|
||||
pub const LDAP_SERVER_VERIFY_NAME_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.1338");
|
||||
pub const LDAP_SERVER_VERIFY_NAME_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.1338");
|
||||
pub const LDAP_SERVER_WHO_AM_I_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.3.6.1.4.1.4203.1.11.3");
|
||||
pub const LDAP_SERVER_WHO_AM_I_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.3.6.1.4.1.4203.1.11.3");
|
||||
pub const LDAP_SESSION_CMD: i32 = 113i32;
|
||||
pub const LDAP_SIZELIMIT_EXCEEDED: LDAP_RETCODE = 4i32;
|
||||
pub const LDAP_SORT_CONTROL_MISSING: LDAP_RETCODE = 60i32;
|
||||
pub const LDAP_SSL_GC_PORT: u32 = 3269u32;
|
||||
pub const LDAP_SSL_PORT: u32 = 636u32;
|
||||
pub const LDAP_START_TLS_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.3.6.1.4.1.1466.20037");
|
||||
pub const LDAP_START_TLS_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.3.6.1.4.1.1466.20037");
|
||||
pub const LDAP_STRONG_AUTH_REQUIRED: LDAP_RETCODE = 8i32;
|
||||
pub const LDAP_SUBSTRING_ANY: i32 = 129i32;
|
||||
pub const LDAP_SUBSTRING_FINAL: i32 = 130i32;
|
||||
pub const LDAP_SUBSTRING_INITIAL: i32 = 128i32;
|
||||
pub const LDAP_SUCCESS: LDAP_RETCODE = 0i32;
|
||||
pub const LDAP_TIMELIMIT_EXCEEDED: LDAP_RETCODE = 3i32;
|
||||
pub const LDAP_TIMEOUT: LDAP_RETCODE = 85i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct LDAP_TIMEVAL {
|
||||
pub tv_sec: i32,
|
||||
pub tv_usec: i32,
|
||||
}
|
||||
pub const LDAP_TTL_EXTENDED_OP_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.3.6.1.4.1.1466.101.119.1");
|
||||
pub const LDAP_TTL_EXTENDED_OP_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.3.6.1.4.1.1466.101.119.1");
|
||||
pub const LDAP_UNAVAILABLE: LDAP_RETCODE = 52i32;
|
||||
pub const LDAP_UNAVAILABLE_CRIT_EXTENSION: LDAP_RETCODE = 12i32;
|
||||
pub const LDAP_UNBIND_CMD: i32 = 66i32;
|
||||
pub const LDAP_UNDEFINED_TYPE: LDAP_RETCODE = 17i32;
|
||||
pub const LDAP_UNICODE: u32 = 1u32;
|
||||
pub const LDAP_UNWILLING_TO_PERFORM: LDAP_RETCODE = 53i32;
|
||||
pub const LDAP_UPDATE_STATS_INVOCATIONID_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2209");
|
||||
pub const LDAP_UPDATE_STATS_INVOCATIONID_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2209");
|
||||
pub const LDAP_UPDATE_STATS_USN_OID: windows_sys::core::PCSTR = windows_sys::core::s!("1.2.840.113556.1.4.2208");
|
||||
pub const LDAP_UPDATE_STATS_USN_OID_W: windows_sys::core::PCWSTR = windows_sys::core::w!("1.2.840.113556.1.4.2208");
|
||||
pub const LDAP_USER_CANCELLED: LDAP_RETCODE = 88i32;
|
||||
pub const LDAP_VENDOR_NAME: windows_sys::core::PCSTR = windows_sys::core::s!("Microsoft Corporation.");
|
||||
pub const LDAP_VENDOR_NAME_W: windows_sys::core::PCWSTR = windows_sys::core::w!("Microsoft Corporation.");
|
||||
pub const LDAP_VENDOR_VERSION: u32 = 510u32;
|
||||
pub const LDAP_VERSION: u32 = 2u32;
|
||||
pub const LDAP_VERSION1: u32 = 1u32;
|
||||
pub const LDAP_VERSION2: u32 = 2u32;
|
||||
pub const LDAP_VERSION3: u32 = 3u32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct LDAP_VERSION_INFO {
|
||||
pub lv_size: u32,
|
||||
pub lv_major: u32,
|
||||
pub lv_minor: u32,
|
||||
}
|
||||
pub const LDAP_VERSION_MAX: u32 = 3u32;
|
||||
pub const LDAP_VERSION_MIN: u32 = 2u32;
|
||||
pub const LDAP_VIRTUAL_LIST_VIEW_ERROR: LDAP_RETCODE = 76i32;
|
||||
pub const LDAP_VLVINFO_VERSION: u32 = 1u32;
|
||||
pub type NOTIFYOFNEWCONNECTION = Option<unsafe extern "system" fn(primaryconnection: *mut LDAP, referralfromconnection: *mut LDAP, newdn: windows_sys::core::PCWSTR, hostname: windows_sys::core::PCSTR, newconnection: *mut LDAP, portnumber: u32, secauthidentity: *mut core::ffi::c_void, currentuser: *mut core::ffi::c_void, errorcodefrombind: u32) -> bool>;
|
||||
pub type PLDAPSearch = isize;
|
||||
#[cfg(all(feature = "Win32_Security_Authentication_Identity", feature = "Win32_Security_Cryptography"))]
|
||||
pub type QUERYCLIENTCERT = Option<unsafe extern "system" fn(connection: *mut LDAP, trusted_cas: *mut super::super::Security::Authentication::Identity::SecPkgContext_IssuerListInfoEx, ppcertificate: *mut *mut super::super::Security::Cryptography::CERT_CONTEXT) -> bool>;
|
||||
pub type QUERYFORCONNECTION = Option<unsafe extern "system" fn(primaryconnection: *mut LDAP, referralfromconnection: *mut LDAP, newdn: windows_sys::core::PCWSTR, hostname: windows_sys::core::PCSTR, portnumber: u32, secauthidentity: *mut core::ffi::c_void, currentusertoken: *mut core::ffi::c_void, connectiontouse: *mut *mut LDAP) -> u32>;
|
||||
pub const SERVER_SEARCH_FLAG_DOMAIN_SCOPE: u32 = 1u32;
|
||||
pub const SERVER_SEARCH_FLAG_PHANTOM_ROOT: u32 = 2u32;
|
||||
#[cfg(feature = "Win32_Security_Cryptography")]
|
||||
pub type VERIFYSERVERCERT = Option<unsafe extern "system" fn(connection: *mut LDAP, pservercert: *mut *mut super::super::Security::Cryptography::CERT_CONTEXT) -> bool>;
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
windows_link::link!("websocket.dll" "system" fn WebSocketAbortHandle(hwebsocket : WEB_SOCKET_HANDLE));
|
||||
windows_link::link!("websocket.dll" "system" fn WebSocketBeginClientHandshake(hwebsocket : WEB_SOCKET_HANDLE, pszsubprotocols : *const windows_sys::core::PCSTR, ulsubprotocolcount : u32, pszextensions : *const windows_sys::core::PCSTR, ulextensioncount : u32, pinitialheaders : *const WEB_SOCKET_HTTP_HEADER, ulinitialheadercount : u32, padditionalheaders : *mut *mut WEB_SOCKET_HTTP_HEADER, puladditionalheadercount : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("websocket.dll" "system" fn WebSocketBeginServerHandshake(hwebsocket : WEB_SOCKET_HANDLE, pszsubprotocolselected : windows_sys::core::PCSTR, pszextensionselected : *const windows_sys::core::PCSTR, ulextensionselectedcount : u32, prequestheaders : *const WEB_SOCKET_HTTP_HEADER, ulrequestheadercount : u32, presponseheaders : *mut *mut WEB_SOCKET_HTTP_HEADER, pulresponseheadercount : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("websocket.dll" "system" fn WebSocketCompleteAction(hwebsocket : WEB_SOCKET_HANDLE, pvactioncontext : *const core::ffi::c_void, ulbytestransferred : u32));
|
||||
windows_link::link!("websocket.dll" "system" fn WebSocketCreateClientHandle(pproperties : *const WEB_SOCKET_PROPERTY, ulpropertycount : u32, phwebsocket : *mut WEB_SOCKET_HANDLE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("websocket.dll" "system" fn WebSocketCreateServerHandle(pproperties : *const WEB_SOCKET_PROPERTY, ulpropertycount : u32, phwebsocket : *mut WEB_SOCKET_HANDLE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("websocket.dll" "system" fn WebSocketDeleteHandle(hwebsocket : WEB_SOCKET_HANDLE));
|
||||
windows_link::link!("websocket.dll" "system" fn WebSocketEndClientHandshake(hwebsocket : WEB_SOCKET_HANDLE, presponseheaders : *const WEB_SOCKET_HTTP_HEADER, ulreponseheadercount : u32, pulselectedextensions : *mut u32, pulselectedextensioncount : *mut u32, pulselectedsubprotocol : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("websocket.dll" "system" fn WebSocketEndServerHandshake(hwebsocket : WEB_SOCKET_HANDLE) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("websocket.dll" "system" fn WebSocketGetAction(hwebsocket : WEB_SOCKET_HANDLE, eactionqueue : WEB_SOCKET_ACTION_QUEUE, pdatabuffers : *mut WEB_SOCKET_BUFFER, puldatabuffercount : *mut u32, paction : *mut WEB_SOCKET_ACTION, pbuffertype : *mut WEB_SOCKET_BUFFER_TYPE, pvapplicationcontext : *mut *mut core::ffi::c_void, pvactioncontext : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("websocket.dll" "system" fn WebSocketGetGlobalProperty(etype : WEB_SOCKET_PROPERTY_TYPE, pvvalue : *mut core::ffi::c_void, ulsize : *mut u32) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("websocket.dll" "system" fn WebSocketReceive(hwebsocket : WEB_SOCKET_HANDLE, pbuffer : *const WEB_SOCKET_BUFFER, pvcontext : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
windows_link::link!("websocket.dll" "system" fn WebSocketSend(hwebsocket : WEB_SOCKET_HANDLE, buffertype : WEB_SOCKET_BUFFER_TYPE, pbuffer : *const WEB_SOCKET_BUFFER, context : *const core::ffi::c_void) -> windows_sys::core::HRESULT);
|
||||
pub const WEB_SOCKET_ABORTED_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = 1006i32;
|
||||
pub type WEB_SOCKET_ACTION = i32;
|
||||
pub type WEB_SOCKET_ACTION_QUEUE = i32;
|
||||
pub const WEB_SOCKET_ALLOCATED_BUFFER_PROPERTY_TYPE: WEB_SOCKET_PROPERTY_TYPE = 3i32;
|
||||
pub const WEB_SOCKET_ALL_ACTION_QUEUE: WEB_SOCKET_ACTION_QUEUE = 3i32;
|
||||
pub const WEB_SOCKET_BINARY_FRAGMENT_BUFFER_TYPE: WEB_SOCKET_BUFFER_TYPE = -2147483645i32;
|
||||
pub const WEB_SOCKET_BINARY_MESSAGE_BUFFER_TYPE: WEB_SOCKET_BUFFER_TYPE = -2147483646i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub union WEB_SOCKET_BUFFER {
|
||||
pub Data: WEB_SOCKET_BUFFER_0,
|
||||
pub CloseStatus: WEB_SOCKET_BUFFER_1,
|
||||
}
|
||||
impl Default for WEB_SOCKET_BUFFER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WEB_SOCKET_BUFFER_1 {
|
||||
pub pbReason: *mut u8,
|
||||
pub ulReasonLength: u32,
|
||||
pub usStatus: u16,
|
||||
}
|
||||
impl Default for WEB_SOCKET_BUFFER_1 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WEB_SOCKET_BUFFER_0 {
|
||||
pub pbBuffer: *mut u8,
|
||||
pub ulBufferLength: u32,
|
||||
}
|
||||
impl Default for WEB_SOCKET_BUFFER_0 {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type WEB_SOCKET_BUFFER_TYPE = i32;
|
||||
pub const WEB_SOCKET_CLOSE_BUFFER_TYPE: WEB_SOCKET_BUFFER_TYPE = -2147483644i32;
|
||||
pub type WEB_SOCKET_CLOSE_STATUS = i32;
|
||||
pub const WEB_SOCKET_DISABLE_MASKING_PROPERTY_TYPE: WEB_SOCKET_PROPERTY_TYPE = 2i32;
|
||||
pub const WEB_SOCKET_DISABLE_UTF8_VERIFICATION_PROPERTY_TYPE: WEB_SOCKET_PROPERTY_TYPE = 4i32;
|
||||
pub const WEB_SOCKET_EMPTY_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = 1005i32;
|
||||
pub const WEB_SOCKET_ENDPOINT_UNAVAILABLE_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = 1001i32;
|
||||
pub type WEB_SOCKET_HANDLE = *mut core::ffi::c_void;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WEB_SOCKET_HTTP_HEADER {
|
||||
pub pcName: windows_sys::core::PSTR,
|
||||
pub ulNameLength: u32,
|
||||
pub pcValue: windows_sys::core::PSTR,
|
||||
pub ulValueLength: u32,
|
||||
}
|
||||
impl Default for WEB_SOCKET_HTTP_HEADER {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub const WEB_SOCKET_INDICATE_RECEIVE_COMPLETE_ACTION: WEB_SOCKET_ACTION = 4i32;
|
||||
pub const WEB_SOCKET_INDICATE_SEND_COMPLETE_ACTION: WEB_SOCKET_ACTION = 2i32;
|
||||
pub const WEB_SOCKET_INVALID_DATA_TYPE_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = 1003i32;
|
||||
pub const WEB_SOCKET_INVALID_PAYLOAD_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = 1007i32;
|
||||
pub const WEB_SOCKET_KEEPALIVE_INTERVAL_PROPERTY_TYPE: WEB_SOCKET_PROPERTY_TYPE = 5i32;
|
||||
pub const WEB_SOCKET_MAX_CLOSE_REASON_LENGTH: u32 = 123u32;
|
||||
pub const WEB_SOCKET_MESSAGE_TOO_BIG_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = 1009i32;
|
||||
pub const WEB_SOCKET_NO_ACTION: WEB_SOCKET_ACTION = 0i32;
|
||||
pub const WEB_SOCKET_PING_PONG_BUFFER_TYPE: WEB_SOCKET_BUFFER_TYPE = -2147483643i32;
|
||||
pub const WEB_SOCKET_POLICY_VIOLATION_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = 1008i32;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct WEB_SOCKET_PROPERTY {
|
||||
pub Type: WEB_SOCKET_PROPERTY_TYPE,
|
||||
pub pvValue: *mut core::ffi::c_void,
|
||||
pub ulValueSize: u32,
|
||||
}
|
||||
impl Default for WEB_SOCKET_PROPERTY {
|
||||
fn default() -> Self {
|
||||
unsafe { core::mem::zeroed() }
|
||||
}
|
||||
}
|
||||
pub type WEB_SOCKET_PROPERTY_TYPE = i32;
|
||||
pub const WEB_SOCKET_PROTOCOL_ERROR_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = 1002i32;
|
||||
pub const WEB_SOCKET_RECEIVE_ACTION_QUEUE: WEB_SOCKET_ACTION_QUEUE = 2i32;
|
||||
pub const WEB_SOCKET_RECEIVE_BUFFER_SIZE_PROPERTY_TYPE: WEB_SOCKET_PROPERTY_TYPE = 0i32;
|
||||
pub const WEB_SOCKET_RECEIVE_FROM_NETWORK_ACTION: WEB_SOCKET_ACTION = 3i32;
|
||||
pub const WEB_SOCKET_SECURE_HANDSHAKE_ERROR_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = 1015i32;
|
||||
pub const WEB_SOCKET_SEND_ACTION_QUEUE: WEB_SOCKET_ACTION_QUEUE = 1i32;
|
||||
pub const WEB_SOCKET_SEND_BUFFER_SIZE_PROPERTY_TYPE: WEB_SOCKET_PROPERTY_TYPE = 1i32;
|
||||
pub const WEB_SOCKET_SEND_TO_NETWORK_ACTION: WEB_SOCKET_ACTION = 1i32;
|
||||
pub const WEB_SOCKET_SERVER_ERROR_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = 1011i32;
|
||||
pub const WEB_SOCKET_SUCCESS_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = 1000i32;
|
||||
pub const WEB_SOCKET_SUPPORTED_VERSIONS_PROPERTY_TYPE: WEB_SOCKET_PROPERTY_TYPE = 6i32;
|
||||
pub const WEB_SOCKET_UNSOLICITED_PONG_BUFFER_TYPE: WEB_SOCKET_BUFFER_TYPE = -2147483642i32;
|
||||
pub const WEB_SOCKET_UNSUPPORTED_EXTENSIONS_CLOSE_STATUS: WEB_SOCKET_CLOSE_STATUS = 1010i32;
|
||||
pub const WEB_SOCKET_UTF8_FRAGMENT_BUFFER_TYPE: WEB_SOCKET_BUFFER_TYPE = -2147483647i32;
|
||||
pub const WEB_SOCKET_UTF8_MESSAGE_BUFFER_TYPE: WEB_SOCKET_BUFFER_TYPE = -2147483648i32;
|
||||
+1247
File diff suppressed because it is too large.
Load diff
+2499
File diff suppressed because it is too large.
Load diff
+5891
File diff suppressed because it is too large.
Load diff
Vendored
+4218
File diff suppressed because it is too large.
Load diff
Loaded 100 of 681 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user