From 63cf84f51af64b49cc94e142108ca8c3b7c9e632 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Thu, 7 Dec 2023 11:17:28 -0600 Subject: [PATCH] bindings --- crates/libs/core/src/imp/com_bindings.rs | 4 ++-- crates/tests/component/src/bindings.rs | 8 +++----- crates/tests/component_client/src/bindings.rs | 8 +++----- crates/tests/standalone/src/b_calendar.rs | 4 +--- crates/tests/standalone/src/b_stringable.rs | 2 +- crates/tests/standalone/src/b_uri.rs | 12 ++++-------- 6 files changed, 14 insertions(+), 24 deletions(-) diff --git a/crates/libs/core/src/imp/com_bindings.rs b/crates/libs/core/src/imp/com_bindings.rs index 5a4c2bd15d..2afa4f9152 100644 --- a/crates/libs/core/src/imp/com_bindings.rs +++ b/crates/libs/core/src/imp/com_bindings.rs @@ -456,7 +456,7 @@ impl IPropertyValue { } ::windows_core::imp::interface_hierarchy!(IPropertyValue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPropertyValue { - const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"{4bd682dd-7554-40e9-9a9b-82654ede7e62}"); + const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } unsafe impl ::windows_core::Interface for IPropertyValue { type Vtable = IPropertyValue_Vtbl; @@ -856,7 +856,7 @@ impl IStringable { } ::windows_core::imp::interface_hierarchy!(IStringable, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStringable { - const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"{96369f54-8eb6-48f0-abce-c1b211e627c3}"); + const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } unsafe impl ::windows_core::Interface for IStringable { type Vtable = IStringable_Vtbl; diff --git a/crates/tests/component/src/bindings.rs b/crates/tests/component/src/bindings.rs index 42c8c03607..9406515091 100644 --- a/crates/tests/component/src/bindings.rs +++ b/crates/tests/component/src/bindings.rs @@ -29,7 +29,7 @@ pub mod Nested { ); impl ::windows_core::RuntimeType for IThing { const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice(b"{5448be22-9873-5ae6-9106-f6e8455d2fdd}"); + ::windows_core::imp::ConstBuffer::for_interface::(); } unsafe impl ::windows_core::Interface for IThing { type Vtable = IThing_Vtbl; @@ -256,9 +256,7 @@ impl Class { } impl ::windows_core::RuntimeType for Class { const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice( - b"rc(test_component.Class;{97540591-1323-59c0-9ae0-f510cae62e54})", - ); + ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for Class { type Vtable = IClass_Vtbl; @@ -440,7 +438,7 @@ unsafe impl ::windows_core::ComInterface for Callback { } impl ::windows_core::RuntimeType for Callback { const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice(b"{e39afc7e-93f1-5a1d-92ef-bd5f71c62cb8}"); + ::windows_core::imp::ConstBuffer::for_interface::(); } #[repr(C)] #[doc(hidden)] diff --git a/crates/tests/component_client/src/bindings.rs b/crates/tests/component_client/src/bindings.rs index efddb83234..84ab6f89bb 100644 --- a/crates/tests/component_client/src/bindings.rs +++ b/crates/tests/component_client/src/bindings.rs @@ -29,7 +29,7 @@ pub mod Nested { ); impl ::windows_core::RuntimeType for IThing { const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice(b"{5448be22-9873-5ae6-9106-f6e8455d2fdd}"); + ::windows_core::imp::ConstBuffer::for_interface::(); } unsafe impl ::windows_core::Interface for IThing { type Vtable = IThing_Vtbl; @@ -224,9 +224,7 @@ impl Class { } impl ::windows_core::RuntimeType for Class { const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice( - b"rc(test_component.Class;{97540591-1323-59c0-9ae0-f510cae62e54})", - ); + ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for Class { type Vtable = IClass_Vtbl; @@ -408,7 +406,7 @@ unsafe impl ::windows_core::ComInterface for Callback { } impl ::windows_core::RuntimeType for Callback { const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice(b"{e39afc7e-93f1-5a1d-92ef-bd5f71c62cb8}"); + ::windows_core::imp::ConstBuffer::for_interface::(); } #[repr(C)] #[doc(hidden)] diff --git a/crates/tests/standalone/src/b_calendar.rs b/crates/tests/standalone/src/b_calendar.rs index 07dba79d98..146ab962c4 100644 --- a/crates/tests/standalone/src/b_calendar.rs +++ b/crates/tests/standalone/src/b_calendar.rs @@ -1265,9 +1265,7 @@ impl Calendar { } impl ::windows_core::RuntimeType for Calendar { const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice( - b"rc(Windows.Globalization.Calendar;{ca30221d-86d9-40fb-a26b-d44eb7cf08ea})", - ); + ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for Calendar { type Vtable = ICalendar_Vtbl; diff --git a/crates/tests/standalone/src/b_stringable.rs b/crates/tests/standalone/src/b_stringable.rs index 61a9112c61..2870cd9b7e 100644 --- a/crates/tests/standalone/src/b_stringable.rs +++ b/crates/tests/standalone/src/b_stringable.rs @@ -30,7 +30,7 @@ impl IStringable { ); impl ::windows_core::RuntimeType for IStringable { const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice(b"{96369f54-8eb6-48f0-abce-c1b211e627c3}"); + ::windows_core::imp::ConstBuffer::for_interface::(); } unsafe impl ::windows_core::Interface for IStringable { type Vtable = IStringable_Vtbl; diff --git a/crates/tests/standalone/src/b_uri.rs b/crates/tests/standalone/src/b_uri.rs index c2b610a340..02e163f59c 100644 --- a/crates/tests/standalone/src/b_uri.rs +++ b/crates/tests/standalone/src/b_uri.rs @@ -222,7 +222,7 @@ impl IStringable { ); impl ::windows_core::RuntimeType for IStringable { const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice(b"{96369f54-8eb6-48f0-abce-c1b211e627c3}"); + ::windows_core::imp::ConstBuffer::for_interface::(); } unsafe impl ::windows_core::Interface for IStringable { type Vtable = IStringable_Vtbl; @@ -611,7 +611,7 @@ impl IWwwFormUrlDecoderEntry { ); impl ::windows_core::RuntimeType for IWwwFormUrlDecoderEntry { const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice(b"{125e7431-f678-4e8e-b670-20a9b06c512d}"); + ::windows_core::imp::ConstBuffer::for_interface::(); } unsafe impl ::windows_core::Interface for IWwwFormUrlDecoderEntry { type Vtable = IWwwFormUrlDecoderEntry_Vtbl; @@ -980,9 +980,7 @@ impl Uri { } impl ::windows_core::RuntimeType for Uri { const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice( - b"rc(Windows.Foundation.Uri;{9e365e57-48b2-4160-956f-c7385120bbfc})", - ); + ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for Uri { type Vtable = IUriRuntimeClass_Vtbl; @@ -1121,9 +1119,7 @@ impl WwwFormUrlDecoder { } impl ::windows_core::RuntimeType for WwwFormUrlDecoder { const SIGNATURE: ::windows_core::imp::ConstBuffer = - ::windows_core::imp::ConstBuffer::from_slice( - b"rc(Windows.Foundation.WwwFormUrlDecoder;{d45a0451-f225-4542-9296-0e1df5d254df})", - ); + ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for WwwFormUrlDecoder { type Vtable = IWwwFormUrlDecoderRuntimeClass_Vtbl;