Skip to content

Commit

Permalink
code gen
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Sep 14, 2023
1 parent ca2169f commit b675223
Show file tree
Hide file tree
Showing 305 changed files with 14,640 additions and 14,640 deletions.
16 changes: 8 additions & 8 deletions crates/libs/windows/src/Windows/AI/MachineLearning/impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ impl ILearningModelFeatureDescriptor_Vtbl {
IsRequired: IsRequired::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<ILearningModelFeatureDescriptor as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <ILearningModelFeatureDescriptor as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"AI_MachineLearning\"`, `\"implement\"`*"]
Expand All @@ -90,8 +90,8 @@ impl ILearningModelFeatureValue_Vtbl {
}
Self { base__: ::windows_core::IInspectable_Vtbl::new::<Identity, ILearningModelFeatureValue, OFFSET>(), Kind: Kind::<Identity, Impl, OFFSET> }
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<ILearningModelFeatureValue as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <ILearningModelFeatureValue as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"AI_MachineLearning\"`, `\"implement\"`*"]
Expand All @@ -103,8 +103,8 @@ impl ILearningModelOperatorProvider_Vtbl {
pub const fn new<Identity: ::windows_core::IUnknownImpl<Impl = Impl>, Impl: ILearningModelOperatorProvider_Impl, const OFFSET: isize>() -> ILearningModelOperatorProvider_Vtbl {
Self { base__: ::windows_core::IInspectable_Vtbl::new::<Identity, ILearningModelOperatorProvider, OFFSET>() }
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<ILearningModelOperatorProvider as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <ILearningModelOperatorProvider as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"AI_MachineLearning\"`, `\"Foundation_Collections\"`, `\"implement\"`*"]
Expand Down Expand Up @@ -149,7 +149,7 @@ impl ITensor_Vtbl {
Shape: Shape::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<ITensor as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <ITensor as ::windows_core::ComInterface>::IID
}
}
244 changes: 122 additions & 122 deletions crates/libs/windows/src/Windows/ApplicationModel/Activation/impl.rs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl IAppointmentParticipant_Vtbl {
SetAddress: SetAddress::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IAppointmentParticipant as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IAppointmentParticipant as ::windows_core::ComInterface>::IID
}
}
36 changes: 18 additions & 18 deletions crates/libs/windows/src/Windows/ApplicationModel/Background/impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ impl IBackgroundCondition_Vtbl {
pub const fn new<Identity: ::windows_core::IUnknownImpl<Impl = Impl>, Impl: IBackgroundCondition_Impl, const OFFSET: isize>() -> IBackgroundCondition_Vtbl {
Self { base__: ::windows_core::IInspectable_Vtbl::new::<Identity, IBackgroundCondition, OFFSET>() }
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IBackgroundCondition as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IBackgroundCondition as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"ApplicationModel_Background\"`, `\"implement\"`*"]
Expand All @@ -27,8 +27,8 @@ impl IBackgroundTask_Vtbl {
}
Self { base__: ::windows_core::IInspectable_Vtbl::new::<Identity, IBackgroundTask, OFFSET>(), Run: Run::<Identity, Impl, OFFSET> }
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IBackgroundTask as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IBackgroundTask as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"ApplicationModel_Background\"`, `\"Foundation\"`, `\"implement\"`*"]
Expand Down Expand Up @@ -154,8 +154,8 @@ impl IBackgroundTaskInstance_Vtbl {
GetDeferral: GetDeferral::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IBackgroundTaskInstance as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IBackgroundTaskInstance as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"ApplicationModel_Background\"`, `\"Foundation\"`, `\"implement\"`*"]
Expand Down Expand Up @@ -186,8 +186,8 @@ impl IBackgroundTaskInstance2_Vtbl {
GetThrottleCount: GetThrottleCount::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IBackgroundTaskInstance2 as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IBackgroundTaskInstance2 as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"ApplicationModel_Background\"`, `\"Foundation\"`, `\"System\"`, `\"implement\"`*"]
Expand Down Expand Up @@ -216,8 +216,8 @@ impl IBackgroundTaskInstance4_Vtbl {
}
Self { base__: ::windows_core::IInspectable_Vtbl::new::<Identity, IBackgroundTaskInstance4, OFFSET>(), User: User::<Identity, Impl, OFFSET> }
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IBackgroundTaskInstance4 as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IBackgroundTaskInstance4 as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"ApplicationModel_Background\"`, `\"Foundation\"`, `\"implement\"`*"]
Expand Down Expand Up @@ -309,8 +309,8 @@ impl IBackgroundTaskRegistration_Vtbl {
Unregister: Unregister::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IBackgroundTaskRegistration as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IBackgroundTaskRegistration as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"ApplicationModel_Background\"`, `\"Foundation\"`, `\"implement\"`*"]
Expand Down Expand Up @@ -339,8 +339,8 @@ impl IBackgroundTaskRegistration2_Vtbl {
}
Self { base__: ::windows_core::IInspectable_Vtbl::new::<Identity, IBackgroundTaskRegistration2, OFFSET>(), Trigger: Trigger::<Identity, Impl, OFFSET> }
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IBackgroundTaskRegistration2 as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IBackgroundTaskRegistration2 as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"ApplicationModel_Background\"`, `\"Foundation\"`, `\"implement\"`*"]
Expand Down Expand Up @@ -372,8 +372,8 @@ impl IBackgroundTaskRegistration3_Vtbl {
TaskGroup: TaskGroup::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IBackgroundTaskRegistration3 as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IBackgroundTaskRegistration3 as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"ApplicationModel_Background\"`, `\"implement\"`*"]
Expand All @@ -385,7 +385,7 @@ impl IBackgroundTrigger_Vtbl {
pub const fn new<Identity: ::windows_core::IUnknownImpl<Impl = Impl>, Impl: IBackgroundTrigger_Impl, const OFFSET: isize>() -> IBackgroundTrigger_Vtbl {
Self { base__: ::windows_core::IInspectable_Vtbl::new::<Identity, IBackgroundTrigger, OFFSET>() }
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IBackgroundTrigger as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IBackgroundTrigger as ::windows_core::ComInterface>::IID
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5824,9 +5824,9 @@ impl<F: FnMut(::core::option::Option<&IBackgroundTaskInstance>, BackgroundTaskCa
base__: ::windows_core::IUnknown_Vtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release },
Invoke: Self::Invoke,
};
unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: &::windows_core::GUID, interface: *mut *const ::core::ffi::c_void) -> ::windows_core::HRESULT {
unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: *const ::windows_core::GUID, interface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT {
let this = this as *mut *mut ::core::ffi::c_void as *mut Self;
*interface = if iid == &<BackgroundTaskCanceledEventHandler as ::windows_core::ComInterface>::IID || iid == &<::windows_core::IUnknown as ::windows_core::ComInterface>::IID || iid == &<::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() };
*interface = if *iid == <BackgroundTaskCanceledEventHandler as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() };
if (*interface).is_null() {
::windows_core::HRESULT(-2147467262)
} else {
Expand Down Expand Up @@ -5895,9 +5895,9 @@ impl<F: FnMut(::core::option::Option<&BackgroundTaskRegistration>, ::core::optio
base__: ::windows_core::IUnknown_Vtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release },
Invoke: Self::Invoke,
};
unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: &::windows_core::GUID, interface: *mut *const ::core::ffi::c_void) -> ::windows_core::HRESULT {
unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: *const ::windows_core::GUID, interface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT {
let this = this as *mut *mut ::core::ffi::c_void as *mut Self;
*interface = if iid == &<BackgroundTaskCompletedEventHandler as ::windows_core::ComInterface>::IID || iid == &<::windows_core::IUnknown as ::windows_core::ComInterface>::IID || iid == &<::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() };
*interface = if *iid == <BackgroundTaskCompletedEventHandler as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() };
if (*interface).is_null() {
::windows_core::HRESULT(-2147467262)
} else {
Expand Down Expand Up @@ -5966,9 +5966,9 @@ impl<F: FnMut(::core::option::Option<&BackgroundTaskRegistration>, ::core::optio
base__: ::windows_core::IUnknown_Vtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release },
Invoke: Self::Invoke,
};
unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: &::windows_core::GUID, interface: *mut *const ::core::ffi::c_void) -> ::windows_core::HRESULT {
unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: *const ::windows_core::GUID, interface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT {
let this = this as *mut *mut ::core::ffi::c_void as *mut Self;
*interface = if iid == &<BackgroundTaskProgressEventHandler as ::windows_core::ComInterface>::IID || iid == &<::windows_core::IUnknown as ::windows_core::ComInterface>::IID || iid == &<::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() };
*interface = if *iid == <BackgroundTaskProgressEventHandler as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() };
if (*interface).is_null() {
::windows_core::HRESULT(-2147467262)
} else {
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/windows/src/Windows/ApplicationModel/Chat/impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl IChatItem_Vtbl {
}
Self { base__: ::windows_core::IInspectable_Vtbl::new::<Identity, IChatItem, OFFSET>(), ItemKind: ItemKind::<Identity, Impl, OFFSET> }
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IChatItem as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IChatItem as ::windows_core::ComInterface>::IID
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ impl IContactField_Vtbl {
Value: Value::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IContactField as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IContactField as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"ApplicationModel_Contacts\"`, `\"implement\"`*"]
Expand Down Expand Up @@ -122,8 +122,8 @@ impl IContactFieldFactory_Vtbl {
CreateField_Custom: CreateField_Custom::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IContactFieldFactory as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IContactFieldFactory as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"ApplicationModel_Contacts\"`, `\"Foundation\"`, `\"implement\"`*"]
Expand Down Expand Up @@ -183,8 +183,8 @@ impl IContactInstantMessageFieldFactory_Vtbl {
CreateInstantMessage_All: CreateInstantMessage_All::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IContactInstantMessageFieldFactory as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IContactInstantMessageFieldFactory as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"ApplicationModel_Contacts\"`, `\"implement\"`*"]
Expand Down Expand Up @@ -241,7 +241,7 @@ impl IContactLocationFieldFactory_Vtbl {
CreateLocation_All: CreateLocation_All::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IContactLocationFieldFactory as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IContactLocationFieldFactory as ::windows_core::ComInterface>::IID
}
}
12 changes: 6 additions & 6 deletions crates/libs/windows/src/Windows/ApplicationModel/Core/impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ impl ICoreApplicationUnhandledError_Vtbl {
RemoveUnhandledErrorDetected: RemoveUnhandledErrorDetected::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<ICoreApplicationUnhandledError as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <ICoreApplicationUnhandledError as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"ApplicationModel_Core\"`, `\"UI_Core\"`, `\"implement\"`*"]
Expand Down Expand Up @@ -87,8 +87,8 @@ impl IFrameworkView_Vtbl {
Uninitialize: Uninitialize::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IFrameworkView as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IFrameworkView as ::windows_core::ComInterface>::IID
}
}
#[doc = "*Required features: `\"ApplicationModel_Core\"`, `\"implement\"`*"]
Expand All @@ -114,7 +114,7 @@ impl IFrameworkViewSource_Vtbl {
}
Self { base__: ::windows_core::IInspectable_Vtbl::new::<Identity, IFrameworkViewSource, OFFSET>(), CreateView: CreateView::<Identity, Impl, OFFSET> }
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<IFrameworkViewSource as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <IFrameworkViewSource as ::windows_core::ComInterface>::IID
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl ICoreDropOperationTarget_Vtbl {
DropAsync: DropAsync::<Identity, Impl, OFFSET>,
}
}
pub fn matches(iid: &::windows_core::GUID) -> bool {
iid == &<ICoreDropOperationTarget as ::windows_core::ComInterface>::IID
pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool {
*iid == <ICoreDropOperationTarget as ::windows_core::ComInterface>::IID
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3302,9 +3302,9 @@ impl<F: FnMut(::core::option::Option<&DataProviderRequest>) -> ::windows_core::R
base__: ::windows_core::IUnknown_Vtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release },
Invoke: Self::Invoke,
};
unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: &::windows_core::GUID, interface: *mut *const ::core::ffi::c_void) -> ::windows_core::HRESULT {
unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: *const ::windows_core::GUID, interface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT {
let this = this as *mut *mut ::core::ffi::c_void as *mut Self;
*interface = if iid == &<DataProviderHandler as ::windows_core::ComInterface>::IID || iid == &<::windows_core::IUnknown as ::windows_core::ComInterface>::IID || iid == &<::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() };
*interface = if *iid == <DataProviderHandler as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() };
if (*interface).is_null() {
::windows_core::HRESULT(-2147467262)
} else {
Expand Down Expand Up @@ -3372,9 +3372,9 @@ impl<F: FnMut(::core::option::Option<&ShareProviderOperation>) -> ::windows_core
base__: ::windows_core::IUnknown_Vtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release },
Invoke: Self::Invoke,
};
unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: &::windows_core::GUID, interface: *mut *const ::core::ffi::c_void) -> ::windows_core::HRESULT {
unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: *const ::windows_core::GUID, interface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT {
let this = this as *mut *mut ::core::ffi::c_void as *mut Self;
*interface = if iid == &<ShareProviderHandler as ::windows_core::ComInterface>::IID || iid == &<::windows_core::IUnknown as ::windows_core::ComInterface>::IID || iid == &<::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() };
*interface = if *iid == <ShareProviderHandler as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() };
if (*interface).is_null() {
::windows_core::HRESULT(-2147467262)
} else {
Expand Down
Loading

0 comments on commit b675223

Please sign in to comment.