Skip to content

Commit

Permalink
windows code gen
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Jan 8, 2025
1 parent 0ad7803 commit f5d3330
Show file tree
Hide file tree
Showing 47 changed files with 722 additions and 2,449 deletions.
84 changes: 25 additions & 59 deletions crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1678,23 +1678,20 @@ windows_core::imp::interface_hierarchy!(DeviceManufacturerNotificationTrigger, w
windows_core::imp::required_hierarchy!(DeviceManufacturerNotificationTrigger, IBackgroundTrigger);
#[cfg(feature = "deprecated")]
impl DeviceManufacturerNotificationTrigger {
#[cfg(feature = "deprecated")]
pub fn TriggerQualifier(&self) -> windows_core::Result<windows_core::HSTRING> {
let this = self;
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(this).TriggerQualifier)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__))
}
}
#[cfg(feature = "deprecated")]
pub fn OneShot(&self) -> windows_core::Result<bool> {
let this = self;
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(this).OneShot)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__)
}
}
#[cfg(feature = "deprecated")]
pub fn Create(triggerqualifier: &windows_core::HSTRING, oneshot: bool) -> windows_core::Result<DeviceManufacturerNotificationTrigger> {
Self::IDeviceManufacturerNotificationTriggerFactory(|this| unsafe {
let mut result__ = core::mem::zeroed();
Expand Down Expand Up @@ -3450,14 +3447,8 @@ impl windows_core::RuntimeType for IDeviceManufacturerNotificationTrigger {
#[repr(C)]
pub struct IDeviceManufacturerNotificationTrigger_Vtbl {
pub base__: windows_core::IInspectable_Vtbl,
#[cfg(feature = "deprecated")]
pub TriggerQualifier: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT,
#[cfg(not(feature = "deprecated"))]
TriggerQualifier: usize,
#[cfg(feature = "deprecated")]
pub OneShot: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT,
#[cfg(not(feature = "deprecated"))]
OneShot: usize,
}
#[cfg(feature = "deprecated")]
windows_core::imp::define_interface!(IDeviceManufacturerNotificationTriggerFactory, IDeviceManufacturerNotificationTriggerFactory_Vtbl, 0x7955de75_25bb_4153_a1a2_3029fcabb652);
Expand All @@ -3469,10 +3460,7 @@ impl windows_core::RuntimeType for IDeviceManufacturerNotificationTriggerFactory
#[repr(C)]
pub struct IDeviceManufacturerNotificationTriggerFactory_Vtbl {
pub base__: windows_core::IInspectable_Vtbl,
#[cfg(feature = "deprecated")]
pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT,
#[cfg(not(feature = "deprecated"))]
Create: usize,
}
windows_core::imp::define_interface!(IDeviceServicingTrigger, IDeviceServicingTrigger_Vtbl, 0x1ab217ad_6e34_49d3_9e6f_17f1b6dfa881);
impl windows_core::RuntimeType for IDeviceServicingTrigger {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,8 @@ impl windows_core::RuntimeType for IPhoneCallOriginDataRequestTriggerDetails {
#[repr(C)]
pub struct IPhoneCallOriginDataRequestTriggerDetails_Vtbl {
pub base__: windows_core::IInspectable_Vtbl,
#[cfg(feature = "deprecated")]
pub RequestId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT,
#[cfg(not(feature = "deprecated"))]
RequestId: usize,
#[cfg(feature = "deprecated")]
pub PhoneNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT,
#[cfg(not(feature = "deprecated"))]
PhoneNumber: usize,
}
#[cfg(feature = "deprecated")]
windows_core::imp::define_interface!(IPhoneIncomingCallDismissedTriggerDetails, IPhoneIncomingCallDismissedTriggerDetails_Vtbl, 0xbad30276_83b6_5732_9c38_0c206546196a);
Expand All @@ -38,30 +32,12 @@ impl windows_core::RuntimeType for IPhoneIncomingCallDismissedTriggerDetails {
#[repr(C)]
pub struct IPhoneIncomingCallDismissedTriggerDetails_Vtbl {
pub base__: windows_core::IInspectable_Vtbl,
#[cfg(feature = "deprecated")]
pub LineId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT,
#[cfg(not(feature = "deprecated"))]
LineId: usize,
#[cfg(feature = "deprecated")]
pub PhoneNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT,
#[cfg(not(feature = "deprecated"))]
PhoneNumber: usize,
#[cfg(feature = "deprecated")]
pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT,
#[cfg(not(feature = "deprecated"))]
DisplayName: usize,
#[cfg(feature = "deprecated")]
pub DismissalTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT,
#[cfg(not(feature = "deprecated"))]
DismissalTime: usize,
#[cfg(feature = "deprecated")]
pub TextReplyMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT,
#[cfg(not(feature = "deprecated"))]
TextReplyMessage: usize,
#[cfg(feature = "deprecated")]
pub Reason: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PhoneIncomingCallDismissedReason) -> windows_core::HRESULT,
#[cfg(not(feature = "deprecated"))]
Reason: usize,
}
windows_core::imp::define_interface!(IPhoneIncomingCallNotificationTriggerDetails, IPhoneIncomingCallNotificationTriggerDetails_Vtbl, 0x2b0e6044_9b32_5d42_8222_d2812e39fb21);
impl windows_core::RuntimeType for IPhoneIncomingCallNotificationTriggerDetails {
Expand Down Expand Up @@ -156,15 +132,13 @@ pub struct PhoneCallOriginDataRequestTriggerDetails(windows_core::IUnknown);
windows_core::imp::interface_hierarchy!(PhoneCallOriginDataRequestTriggerDetails, windows_core::IUnknown, windows_core::IInspectable);
#[cfg(feature = "deprecated")]
impl PhoneCallOriginDataRequestTriggerDetails {
#[cfg(feature = "deprecated")]
pub fn RequestId(&self) -> windows_core::Result<windows_core::GUID> {
let this = self;
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(this).RequestId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__))
}
}
#[cfg(feature = "deprecated")]
pub fn PhoneNumber(&self) -> windows_core::Result<windows_core::HSTRING> {
let this = self;
unsafe {
Expand Down Expand Up @@ -213,47 +187,41 @@ pub struct PhoneIncomingCallDismissedTriggerDetails(windows_core::IUnknown);
windows_core::imp::interface_hierarchy!(PhoneIncomingCallDismissedTriggerDetails, windows_core::IUnknown, windows_core::IInspectable);
#[cfg(feature = "deprecated")]
impl PhoneIncomingCallDismissedTriggerDetails {
#[cfg(feature = "deprecated")]
pub fn LineId(&self) -> windows_core::Result<windows_core::GUID> {
let this = self;
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(this).LineId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__))
}
}
#[cfg(feature = "deprecated")]
pub fn PhoneNumber(&self) -> windows_core::Result<windows_core::HSTRING> {
let this = self;
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(this).PhoneNumber)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__))
}
}
#[cfg(feature = "deprecated")]
pub fn DisplayName(&self) -> windows_core::Result<windows_core::HSTRING> {
let this = self;
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(this).DisplayName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__))
}
}
#[cfg(feature = "deprecated")]
pub fn DismissalTime(&self) -> windows_core::Result<super::super::super::Foundation::DateTime> {
let this = self;
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(this).DismissalTime)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__))
}
}
#[cfg(feature = "deprecated")]
pub fn TextReplyMessage(&self) -> windows_core::Result<windows_core::HSTRING> {
let this = self;
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(this).TextReplyMessage)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__))
}
}
#[cfg(feature = "deprecated")]
pub fn Reason(&self) -> windows_core::Result<PhoneIncomingCallDismissedReason> {
let this = self;
unsafe {
Expand Down
Loading

0 comments on commit f5d3330

Please sign in to comment.