Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SDK and WDK metadata #2664

Merged
merged 7 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 53.0.14
- Version: 55.0.45

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

## Windows.winmd
- Source: https://www.nuget.org/packages/Microsoft.Windows.SDK.Contracts
Expand Down
2 changes: 2 additions & 0 deletions crates/libs/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Win32_Globalization = ["Win32"]
Win32_Graphics = ["Win32"]
Win32_Graphics_Dwm = ["Win32_Graphics"]
Win32_Graphics_Gdi = ["Win32_Graphics"]
Win32_Graphics_GdiPlus = ["Win32_Graphics"]
Win32_Graphics_Hlsl = ["Win32_Graphics"]
Win32_Graphics_OpenGL = ["Win32_Graphics"]
Win32_Graphics_Printing = ["Win32_Graphics"]
Expand Down Expand Up @@ -143,6 +144,7 @@ Win32_Storage_IndexServer = ["Win32_Storage"]
Win32_Storage_InstallableFileSystems = ["Win32_Storage"]
Win32_Storage_IscsiDisc = ["Win32_Storage"]
Win32_Storage_Jet = ["Win32_Storage"]
Win32_Storage_Nvme = ["Win32_Storage"]
Win32_Storage_OfflineFiles = ["Win32_Storage"]
Win32_Storage_OperationRecorder = ["Win32_Storage"]
Win32_Storage_Packaging = ["Win32_Storage"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@ pub const FACILITY_NONE: u32 = 0u32;
pub const FACILITY_WINBIO: u32 = 9u32;
pub const GUID_DEVINTERFACE_BIOMETRIC_READER: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xe2b5183a_99ea_4cc3_ad6b_80ca8d715b80);
pub const IOCTL_BIOMETRIC_VENDOR: u32 = 4464640u32;
pub const WINBIO_ANSI_381_IMG_BIT_PACKED: u16 = 1u16;
pub const WINBIO_ANSI_381_IMG_COMPRESSED_JPEG: u16 = 3u16;
pub const WINBIO_ANSI_381_IMG_COMPRESSED_JPEG2000: u16 = 4u16;
pub const WINBIO_ANSI_381_IMG_COMPRESSED_PNG: u16 = 5u16;
pub const WINBIO_ANSI_381_IMG_COMPRESSED_WSQ: u16 = 2u16;
pub const WINBIO_ANSI_381_IMG_UNCOMPRESSED: u16 = 0u16;
pub const WINBIO_ANSI_381_IMP_TYPE_LATENT: u16 = 7u16;
pub const WINBIO_ANSI_381_IMP_TYPE_LIVE_SCAN_CONTACTLESS: u16 = 9u16;
pub const WINBIO_ANSI_381_IMP_TYPE_LIVE_SCAN_PLAIN: u16 = 0u16;
pub const WINBIO_ANSI_381_IMP_TYPE_LIVE_SCAN_ROLLED: u16 = 1u16;
pub const WINBIO_ANSI_381_IMP_TYPE_NONLIVE_SCAN_PLAIN: u16 = 2u16;
pub const WINBIO_ANSI_381_IMP_TYPE_NONLIVE_SCAN_ROLLED: u16 = 3u16;
pub const WINBIO_ANSI_381_IMP_TYPE_SWIPE: u16 = 8u16;
pub const WINBIO_ANSI_381_PIXELS_PER_CM: u16 = 2u16;
pub const WINBIO_ANSI_381_PIXELS_PER_INCH: u16 = 1u16;
pub const WINBIO_ANTI_SPOOF_DISABLE: WINBIO_ANTI_SPOOF_POLICY_ACTION = 0i32;
pub const WINBIO_ANTI_SPOOF_ENABLE: WINBIO_ANTI_SPOOF_POLICY_ACTION = 1i32;
pub const WINBIO_ANTI_SPOOF_REMOVE: WINBIO_ANTI_SPOOF_POLICY_ACTION = 2i32;
Expand All @@ -75,6 +90,13 @@ pub const WINBIO_CREDENTIAL_ALL: WINBIO_CREDENTIAL_TYPE = -1i32;
pub const WINBIO_CREDENTIAL_NOT_SET: WINBIO_CREDENTIAL_STATE = 1i32;
pub const WINBIO_CREDENTIAL_PASSWORD: WINBIO_CREDENTIAL_TYPE = 1i32;
pub const WINBIO_CREDENTIAL_SET: WINBIO_CREDENTIAL_STATE = 2i32;
pub const WINBIO_DATA_FLAG_INTEGRITY: u16 = 1u16;
pub const WINBIO_DATA_FLAG_INTERMEDIATE: u16 = 64u16;
pub const WINBIO_DATA_FLAG_OPTION_MASK_PRESENT: u16 = 8u16;
pub const WINBIO_DATA_FLAG_PRIVACY: u16 = 2u16;
pub const WINBIO_DATA_FLAG_PROCESSED: u16 = 128u16;
pub const WINBIO_DATA_FLAG_RAW: u16 = 32u16;
pub const WINBIO_DATA_FLAG_SIGNED: u16 = 4u16;
pub const WINBIO_E_ADAPTER_INTEGRITY_FAILURE: ::windows_sys::core::HRESULT = -2146860995i32;
pub const WINBIO_E_AUTO_LOGON_DISABLED: ::windows_sys::core::HRESULT = -2146860989i32;
pub const WINBIO_E_BAD_CAPTURE: ::windows_sys::core::HRESULT = -2146861048i32;
Expand Down

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions crates/libs/sys/src/Windows/Win32/Devices/Properties/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,12 @@ pub const DEVPKEY_DrvPkg_Model: DEVPROPKEY = DEVPROPKEY { fmtid: ::windows_sys::
pub const DEVPKEY_DrvPkg_VendorWebSite: DEVPROPKEY = DEVPROPKEY { fmtid: ::windows_sys::core::GUID::from_u128(0xcf73bb51_3abf_44a2_85e0_9a3dc7a12132), pid: 3 };
pub const DEVPKEY_NAME: DEVPROPKEY = DEVPROPKEY { fmtid: ::windows_sys::core::GUID::from_u128(0xb725f130_47ef_101a_a5f1_02608c9eebac), pid: 10 };
pub const DEVPROPID_FIRST_USABLE: u32 = 2u32;
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: u32 = 4096u32;
pub const DEVPROP_TYPEMOD_LIST: u32 = 8192u32;
pub const DEVPROP_TYPE_BINARY: DEVPROPTYPE = 4099u32;
Expand Down Expand Up @@ -269,3 +271,4 @@ impl ::core::clone::Clone for DEVPROPKEY {
*self
}
}
pub type DEVPROP_BOOLEAN = u8;
295 changes: 295 additions & 0 deletions crates/libs/sys/src/Windows/Win32/Devices/SerialCommunication/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,299 @@ 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;
#[doc = "Required features: `Win32_Devices_Properties`"]
#[cfg(feature = "Win32_Devices_Properties")]
pub const DEVPKEY_DeviceInterface_Serial_PortName: super::Properties::DEVPROPKEY = super::Properties::DEVPROPKEY { fmtid: ::windows_sys::core::GUID::from_u128(0x4c6bf15c_4c03_4aac_91f5_64c0f852bcf4), pid: 4 };
#[doc = "Required features: `Win32_Devices_Properties`"]
#[cfg(feature = "Win32_Devices_Properties")]
pub const DEVPKEY_DeviceInterface_Serial_UsbProductId: super::Properties::DEVPROPKEY = super::Properties::DEVPROPKEY { fmtid: ::windows_sys::core::GUID::from_u128(0x4c6bf15c_4c03_4aac_91f5_64c0f852bcf4), pid: 3 };
#[doc = "Required features: `Win32_Devices_Properties`"]
#[cfg(feature = "Win32_Devices_Properties")]
pub const DEVPKEY_DeviceInterface_Serial_UsbVendorId: super::Properties::DEVPROPKEY = super::Properties::DEVPROPKEY { fmtid: ::windows_sys::core::GUID::from_u128(0x4c6bf15c_4c03_4aac_91f5_64c0f852bcf4), pid: 2 };
pub const EVEN_PARITY: u32 = 2u32;
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 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;
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;
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;
pub type SERENUM_PORTION = i32;
pub type HCOMDB = isize;
#[repr(C)]
pub struct SERENUM_PORT_DESC {
pub Size: u32,
pub PortHandle: *mut ::core::ffi::c_void,
pub PortAddress: i64,
pub Reserved: [u16; 1],
}
impl ::core::marker::Copy for SERENUM_PORT_DESC {}
impl ::core::clone::Clone for SERENUM_PORT_DESC {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
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 ::core::marker::Copy for SERENUM_PORT_PARAMETERS {}
impl ::core::clone::Clone for SERENUM_PORT_PARAMETERS {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct SERIALCONFIG {
pub Size: u32,
pub Version: u16,
pub SubType: u32,
pub ProvOffset: u32,
pub ProviderSize: u32,
pub ProviderData: [u16; 1],
}
impl ::core::marker::Copy for SERIALCONFIG {}
impl ::core::clone::Clone for SERIALCONFIG {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct SERIALPERF_STATS {
pub ReceivedCount: u32,
pub TransmittedCount: u32,
pub FrameErrorCount: u32,
pub SerialOverrunErrorCount: u32,
pub BufferOverrunErrorCount: u32,
pub ParityErrorCount: u32,
}
impl ::core::marker::Copy for SERIALPERF_STATS {}
impl ::core::clone::Clone for SERIALPERF_STATS {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct SERIAL_BASIC_SETTINGS {
pub Timeouts: SERIAL_TIMEOUTS,
pub HandFlow: SERIAL_HANDFLOW,
pub RxFifo: u32,
pub TxFifo: u32,
}
impl ::core::marker::Copy for SERIAL_BASIC_SETTINGS {}
impl ::core::clone::Clone for SERIAL_BASIC_SETTINGS {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct SERIAL_BAUD_RATE {
pub BaudRate: u32,
}
impl ::core::marker::Copy for SERIAL_BAUD_RATE {}
impl ::core::clone::Clone for SERIAL_BAUD_RATE {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct SERIAL_CHARS {
pub EofChar: u8,
pub ErrorChar: u8,
pub BreakChar: u8,
pub EventChar: u8,
pub XonChar: u8,
pub XoffChar: u8,
}
impl ::core::marker::Copy for SERIAL_CHARS {}
impl ::core::clone::Clone for SERIAL_CHARS {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
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 ::core::marker::Copy for SERIAL_COMMPROP {}
impl ::core::clone::Clone for SERIAL_COMMPROP {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct SERIAL_HANDFLOW {
pub ControlHandShake: u32,
pub FlowReplace: u32,
pub XonLimit: i32,
pub XoffLimit: i32,
}
impl ::core::marker::Copy for SERIAL_HANDFLOW {}
impl ::core::clone::Clone for SERIAL_HANDFLOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct SERIAL_LINE_CONTROL {
pub StopBits: u8,
pub Parity: u8,
pub WordLength: u8,
}
impl ::core::marker::Copy for SERIAL_LINE_CONTROL {}
impl ::core::clone::Clone for SERIAL_LINE_CONTROL {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct SERIAL_QUEUE_SIZE {
pub InSize: u32,
pub OutSize: u32,
}
impl ::core::marker::Copy for SERIAL_QUEUE_SIZE {}
impl ::core::clone::Clone for SERIAL_QUEUE_SIZE {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "Required features: `Win32_Foundation`"]
#[cfg(feature = "Win32_Foundation")]
pub struct SERIAL_STATUS {
pub Errors: u32,
pub HoldReasons: u32,
pub AmountInInQueue: u32,
pub AmountInOutQueue: u32,
pub EofReceived: super::super::Foundation::BOOLEAN,
pub WaitForImmediate: super::super::Foundation::BOOLEAN,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for SERIAL_STATUS {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for SERIAL_STATUS {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct SERIAL_TIMEOUTS {
pub ReadIntervalTimeout: u32,
pub ReadTotalTimeoutMultiplier: u32,
pub ReadTotalTimeoutConstant: u32,
pub WriteTotalTimeoutMultiplier: u32,
pub WriteTotalTimeoutConstant: u32,
}
impl ::core::marker::Copy for SERIAL_TIMEOUTS {}
impl ::core::clone::Clone for SERIAL_TIMEOUTS {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct SERIAL_XOFF_COUNTER {
pub Timeout: u32,
pub Counter: i32,
pub XoffChar: u8,
}
impl ::core::marker::Copy for SERIAL_XOFF_COUNTER {}
impl ::core::clone::Clone for SERIAL_XOFF_COUNTER {
fn clone(&self) -> Self {
*self
}
}
pub type PSERENUM_READPORT = ::core::option::Option<unsafe extern "system" fn(serportaddress: *const ::core::ffi::c_void) -> u8>;
pub type PSERENUM_WRITEPORT = ::core::option::Option<unsafe extern "system" fn(serportaddress: *const ::core::ffi::c_void, value: u8) -> ()>;
Loading