Skip to content

Commit

Permalink
Upgrade winmd based on D3D12 Agility SDK 1.714.0-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Jun 14, 2024
1 parent 319f301 commit 96b9a27
Show file tree
Hide file tree
Showing 72 changed files with 3,672 additions and 1,644 deletions.
Binary file modified crates/libs/bindgen/default/Windows.Win32.winmd
Binary file not shown.
6 changes: 3 additions & 3 deletions crates/libs/core/src/imp/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ pub struct CLIPDATA {
pub ulClipFmt: i32,
pub pClipData: *mut u8,
}
pub type CO_MTA_USAGE_COOKIE = isize;
pub type CO_MTA_USAGE_COOKIE = *mut core::ffi::c_void;
#[repr(C)]
#[derive(Clone, Copy)]
pub union CY {
Expand Down Expand Up @@ -339,9 +339,9 @@ impl GUID {
}
}
}
pub type HANDLE = isize;
pub type HANDLE = *mut core::ffi::c_void;
pub type HEAP_FLAGS = u32;
pub type HMODULE = isize;
pub type HMODULE = *mut core::ffi::c_void;
pub type HRESULT = i32;
#[repr(C)]
#[derive(Clone, Copy)]
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/windows/features.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2026,10 +2026,10 @@ impl windows_core::TypeKind for HANDLE_SDP_TYPE {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HBLUETOOTH_DEVICE_FIND(pub isize);
pub struct HBLUETOOTH_DEVICE_FIND(pub *mut core::ffi::c_void);
impl HBLUETOOTH_DEVICE_FIND {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
self.0.is_null()
}
}
impl windows_core::Free for HBLUETOOTH_DEVICE_FIND {
Expand All @@ -2049,10 +2049,10 @@ impl windows_core::TypeKind for HBLUETOOTH_DEVICE_FIND {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HBLUETOOTH_RADIO_FIND(pub isize);
pub struct HBLUETOOTH_RADIO_FIND(pub *mut core::ffi::c_void);
impl HBLUETOOTH_RADIO_FIND {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
self.0.is_null()
}
}
impl windows_core::Free for HBLUETOOTH_RADIO_FIND {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8064,10 +8064,10 @@ impl Default for FILE_IN_CABINET_INFO_W {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HCMNOTIFICATION(pub isize);
pub struct HCMNOTIFICATION(pub *mut core::ffi::c_void);
impl HCMNOTIFICATION {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
self.0.is_null()
}
}
impl windows_core::Free for HCMNOTIFICATION {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,12 @@ impl Default for DEV_QUERY_RESULT_ACTION_DATA_0 {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HDEVQUERY(pub isize);
pub struct HDEVQUERY(pub *mut core::ffi::c_void);
impl HDEVQUERY {
pub fn is_invalid(&self) -> bool {
self.0.is_null()
}
}
impl Default for HDEVQUERY {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand Down
32 changes: 16 additions & 16 deletions crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2838,10 +2838,10 @@ impl Default for DEVINFO {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct DHPDEV(pub isize);
pub struct DHPDEV(pub *mut core::ffi::c_void);
impl DHPDEV {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
self.0.is_null()
}
}
impl Default for DHPDEV {
Expand All @@ -2854,10 +2854,10 @@ impl windows_core::TypeKind for DHPDEV {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct DHSURF(pub isize);
pub struct DHSURF(pub *mut core::ffi::c_void);
impl DHSURF {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
self.0.is_null()
}
}
impl Default for DHSURF {
Expand Down Expand Up @@ -4359,10 +4359,10 @@ impl Default for GLYPHPOS {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HBM(pub isize);
pub struct HBM(pub *mut core::ffi::c_void);
impl HBM {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
self.0.is_null()
}
}
impl Default for HBM {
Expand All @@ -4375,10 +4375,10 @@ impl windows_core::TypeKind for HBM {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HDEV(pub isize);
pub struct HDEV(pub *mut core::ffi::c_void);
impl HDEV {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
self.0.is_null()
}
}
impl Default for HDEV {
Expand All @@ -4391,10 +4391,10 @@ impl windows_core::TypeKind for HDEV {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HDRVOBJ(pub isize);
pub struct HDRVOBJ(pub *mut core::ffi::c_void);
impl HDRVOBJ {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
self.0.is_null()
}
}
impl Default for HDRVOBJ {
Expand All @@ -4407,10 +4407,10 @@ impl windows_core::TypeKind for HDRVOBJ {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HFASTMUTEX(pub isize);
pub struct HFASTMUTEX(pub *mut core::ffi::c_void);
impl HFASTMUTEX {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
self.0.is_null()
}
}
impl Default for HFASTMUTEX {
Expand All @@ -4423,10 +4423,10 @@ impl windows_core::TypeKind for HFASTMUTEX {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HSEMAPHORE(pub isize);
pub struct HSEMAPHORE(pub *mut core::ffi::c_void);
impl HSEMAPHORE {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
self.0.is_null()
}
}
impl windows_core::Free for HSEMAPHORE {
Expand All @@ -4446,10 +4446,10 @@ impl windows_core::TypeKind for HSEMAPHORE {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HSURF(pub isize);
pub struct HSURF(pub *mut core::ffi::c_void);
impl HSURF {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
self.0.is_null()
}
}
impl Default for HSURF {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1170,10 +1170,10 @@ impl core::fmt::Debug for SW_DEVICE_LIFETIME {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HSWDEVICE(pub isize);
pub struct HSWDEVICE(pub *mut core::ffi::c_void);
impl HSWDEVICE {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
self.0.is_null()
}
}
impl windows_core::Free for HSWDEVICE {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ impl core::fmt::Debug for SERENUM_PORTION {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HCOMDB(pub isize);
pub struct HCOMDB(pub *mut core::ffi::c_void);
impl HCOMDB {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
self.0.is_null()
}
}
impl windows_core::Free for HCOMDB {
Expand Down
63 changes: 54 additions & 9 deletions crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10010,7 +10010,12 @@ impl Default for DTR {
pub const DispatchMapper: windows_core::GUID = windows_core::GUID::from_u128(0xe9225296_c759_11d1_a02b_00c04fb6809f);
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HDRVCALL(pub isize);
pub struct HDRVCALL(pub *mut core::ffi::c_void);
impl HDRVCALL {
pub fn is_invalid(&self) -> bool {
self.0.is_null()
}
}
impl Default for HDRVCALL {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand All @@ -10021,7 +10026,12 @@ impl windows_core::TypeKind for HDRVCALL {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HDRVDIALOGINSTANCE(pub isize);
pub struct HDRVDIALOGINSTANCE(pub *mut core::ffi::c_void);
impl HDRVDIALOGINSTANCE {
pub fn is_invalid(&self) -> bool {
self.0.is_null()
}
}
impl Default for HDRVDIALOGINSTANCE {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand All @@ -10032,7 +10042,12 @@ impl windows_core::TypeKind for HDRVDIALOGINSTANCE {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HDRVLINE(pub isize);
pub struct HDRVLINE(pub *mut core::ffi::c_void);
impl HDRVLINE {
pub fn is_invalid(&self) -> bool {
self.0.is_null()
}
}
impl Default for HDRVLINE {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand All @@ -10043,7 +10058,12 @@ impl windows_core::TypeKind for HDRVLINE {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HDRVMSPLINE(pub isize);
pub struct HDRVMSPLINE(pub *mut core::ffi::c_void);
impl HDRVMSPLINE {
pub fn is_invalid(&self) -> bool {
self.0.is_null()
}
}
impl Default for HDRVMSPLINE {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand All @@ -10054,7 +10074,12 @@ impl windows_core::TypeKind for HDRVMSPLINE {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HDRVPHONE(pub isize);
pub struct HDRVPHONE(pub *mut core::ffi::c_void);
impl HDRVPHONE {
pub fn is_invalid(&self) -> bool {
self.0.is_null()
}
}
impl Default for HDRVPHONE {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand All @@ -10065,7 +10090,12 @@ impl windows_core::TypeKind for HDRVPHONE {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HPROVIDER(pub isize);
pub struct HPROVIDER(pub *mut core::ffi::c_void);
impl HPROVIDER {
pub fn is_invalid(&self) -> bool {
self.0.is_null()
}
}
impl Default for HPROVIDER {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand All @@ -10076,7 +10106,12 @@ impl windows_core::TypeKind for HPROVIDER {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HTAPICALL(pub isize);
pub struct HTAPICALL(pub *mut core::ffi::c_void);
impl HTAPICALL {
pub fn is_invalid(&self) -> bool {
self.0.is_null()
}
}
impl Default for HTAPICALL {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand All @@ -10087,7 +10122,12 @@ impl windows_core::TypeKind for HTAPICALL {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HTAPILINE(pub isize);
pub struct HTAPILINE(pub *mut core::ffi::c_void);
impl HTAPILINE {
pub fn is_invalid(&self) -> bool {
self.0.is_null()
}
}
impl Default for HTAPILINE {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand All @@ -10098,7 +10138,12 @@ impl windows_core::TypeKind for HTAPILINE {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct HTAPIPHONE(pub isize);
pub struct HTAPIPHONE(pub *mut core::ffi::c_void);
impl HTAPIPHONE {
pub fn is_invalid(&self) -> bool {
self.0.is_null()
}
}
impl Default for HTAPIPHONE {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand Down
11 changes: 8 additions & 3 deletions crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2375,7 +2375,12 @@ impl Default for USB_BUS_STATISTICS_0 {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct USB_CHANGE_REGISTRATION_HANDLE(pub isize);
pub struct USB_CHANGE_REGISTRATION_HANDLE(pub *mut core::ffi::c_void);
impl USB_CHANGE_REGISTRATION_HANDLE {
pub fn is_invalid(&self) -> bool {
self.0.is_null()
}
}
impl Default for USB_CHANGE_REGISTRATION_HANDLE {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand Down Expand Up @@ -4544,10 +4549,10 @@ impl Default for USB_USB2HW_VERSION_PARAMETERS {
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct WINUSB_INTERFACE_HANDLE(pub isize);
pub struct WINUSB_INTERFACE_HANDLE(pub *mut core::ffi::c_void);
impl WINUSB_INTERFACE_HANDLE {
pub fn is_invalid(&self) -> bool {
self.0 == 0
self.0.is_null()
}
}
impl windows_core::Free for WINUSB_INTERFACE_HANDLE {
Expand Down
Loading

0 comments on commit 96b9a27

Please sign in to comment.