Skip to content

Commit

Permalink
Update Win32 and WDK metadata (#2724)
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar authored Dec 7, 2023
1 parent f94f03b commit 43bcb74
Show file tree
Hide file tree
Showing 53 changed files with 26,307 additions and 6,359 deletions.
Binary file modified crates/libs/bindgen/default/Windows.Wdk.winmd
Binary file not shown.
Binary file modified crates/libs/bindgen/default/Windows.Win32.winmd
Binary file not shown.
4 changes: 2 additions & 2 deletions crates/libs/bindgen/default/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ like [ILSpy](https://github.com/icsharpcode/ILSpy).

## Windows.Win32.winmd
- Source: https://www.nuget.org/packages/Microsoft.Windows.SDK.Win32Metadata/
- Version: 55.0.45
- Version: 56.0.13

## Windows.Wdk.winmd
- Source: https://www.nuget.org/packages/Microsoft.Windows.WDK.Win32Metadata/
- Version: 0.8.2
- Version: 0.9.9

## Windows.winmd
- Source: https://www.nuget.org/packages/Microsoft.Windows.SDK.Contracts
Expand Down
5 changes: 5 additions & 0 deletions crates/libs/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ default = []
docs = []
# generated features
Wdk = []
Wdk_Devices = ["Wdk"]
Wdk_Devices_HumanInterfaceDevice = ["Wdk_Devices"]
Wdk_Foundation = ["Wdk"]
Wdk_Graphics = ["Wdk"]
Wdk_Graphics_Direct3D = ["Wdk_Graphics"]
Wdk_NetworkManagement = ["Wdk"]
Wdk_NetworkManagement_Ndis = ["Wdk_NetworkManagement"]
Wdk_NetworkManagement_WindowsFilteringPlatform = ["Wdk_NetworkManagement"]
Wdk_Storage = ["Wdk"]
Wdk_Storage_FileSystem = ["Wdk_Storage"]
Wdk_Storage_FileSystem_Minifilters = ["Wdk_Storage_FileSystem"]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("vhfum.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn VhfAsyncOperationComplete(vhfoperationhandle : *const ::core::ffi::c_void, completionstatus : super::super::super::Win32::Foundation:: NTSTATUS) -> super::super::super::Win32::Foundation:: NTSTATUS);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("vhfum.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn VhfCreate(vhfconfig : *const VHF_CONFIG, vhfhandle : *mut *mut ::core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("vhfum.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn VhfDelete(vhfhandle : *const ::core::ffi::c_void, wait : super::super::super::Win32::Foundation:: BOOLEAN));
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("vhfum.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn VhfReadReportSubmit(vhfhandle : *const ::core::ffi::c_void, hidtransferpacket : *const HID_XFER_PACKET) -> super::super::super::Win32::Foundation:: NTSTATUS);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("vhfum.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn VhfStart(vhfhandle : *const ::core::ffi::c_void) -> super::super::super::Win32::Foundation:: NTSTATUS);
#[repr(C)]
pub struct HID_XFER_PACKET {
pub reportBuffer: *mut u8,
pub reportBufferLen: u32,
pub reportId: u8,
}
impl ::core::marker::Copy for HID_XFER_PACKET {}
impl ::core::clone::Clone for HID_XFER_PACKET {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "Required features: `\"Win32_Foundation\"`"]
#[cfg(feature = "Win32_Foundation")]
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: PEVT_VHF_READY_FOR_NEXT_READ_REPORT,
pub EvtVhfAsyncOperationGetFeature: PEVT_VHF_ASYNC_OPERATION,
pub EvtVhfAsyncOperationSetFeature: PEVT_VHF_ASYNC_OPERATION,
pub EvtVhfAsyncOperationWriteReport: PEVT_VHF_ASYNC_OPERATION,
pub EvtVhfAsyncOperationGetInputReport: PEVT_VHF_ASYNC_OPERATION,
pub EvtVhfCleanup: PEVT_VHF_CLEANUP,
pub HardwareIDsLength: u16,
pub HardwareIDs: ::windows_sys::core::PWSTR,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for VHF_CONFIG {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for VHF_CONFIG {
fn clone(&self) -> Self {
*self
}
}
pub type EVT_VHF_ASYNC_OPERATION = ::core::option::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 = ::core::option::Option<unsafe extern "system" fn(vhfclientcontext: *const ::core::ffi::c_void)>;
pub type EVT_VHF_READY_FOR_NEXT_READ_REPORT = ::core::option::Option<unsafe extern "system" fn(vhfclientcontext: *const ::core::ffi::c_void)>;
pub type PEVT_VHF_ASYNC_OPERATION = ::core::option::Option<unsafe extern "system" fn()>;
pub type PEVT_VHF_CLEANUP = ::core::option::Option<unsafe extern "system" fn()>;
pub type PEVT_VHF_READY_FOR_NEXT_READ_REPORT = ::core::option::Option<unsafe extern "system" fn()>;
3 changes: 3 additions & 0 deletions crates/libs/sys/src/Windows/Wdk/Devices/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#[cfg(feature = "Wdk_Devices_HumanInterfaceDevice")]
#[doc = "Required features: `\"Wdk_Devices_HumanInterfaceDevice\"`"]
pub mod HumanInterfaceDevice;
Loading

0 comments on commit 43bcb74

Please sign in to comment.