| #[doc = "*Required features: `\"Win32_UI_Notifications\"`*"] |
| #[repr(transparent)] |
| pub struct INotificationActivationCallback(::windows::core::IUnknown); |
| impl INotificationActivationCallback { |
| pub unsafe fn Activate<P0, P1>(&self, appusermodelid: P0, invokedargs: P1, data: &[NOTIFICATION_USER_INPUT_DATA]) -> ::windows::core::Result<()> |
| where |
| P0: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| P1: ::windows::core::IntoParam<::windows::core::PCWSTR>, |
| { |
| (::windows::core::Interface::vtable(self).Activate)(::windows::core::Interface::as_raw(self), appusermodelid.into_param().abi(), invokedargs.into_param().abi(), ::core::mem::transmute(data.as_ptr()), data.len() as _).ok() |
| } |
| } |
| ::windows::imp::interface_hierarchy!(INotificationActivationCallback, ::windows::core::IUnknown); |
| impl ::core::cmp::PartialEq for INotificationActivationCallback { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for INotificationActivationCallback {} |
| impl ::core::fmt::Debug for INotificationActivationCallback { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("INotificationActivationCallback").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::Interface for INotificationActivationCallback { |
| type Vtable = INotificationActivationCallback_Vtbl; |
| } |
| impl ::core::clone::Clone for INotificationActivationCallback { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| unsafe impl ::windows::core::ComInterface for INotificationActivationCallback { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x53e31837_6600_4a81_9395_75cffe746f94); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct INotificationActivationCallback_Vtbl { |
| pub base__: ::windows::core::IUnknown_Vtbl, |
| pub Activate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appusermodelid: ::windows::core::PCWSTR, invokedargs: ::windows::core::PCWSTR, data: *const NOTIFICATION_USER_INPUT_DATA, count: u32) -> ::windows::core::HRESULT, |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_UI_Notifications\"`*"] |
| pub struct NOTIFICATION_USER_INPUT_DATA { |
| pub Key: ::windows::core::PCWSTR, |
| pub Value: ::windows::core::PCWSTR, |
| } |
| impl ::core::marker::Copy for NOTIFICATION_USER_INPUT_DATA {} |
| impl ::core::clone::Clone for NOTIFICATION_USER_INPUT_DATA { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for NOTIFICATION_USER_INPUT_DATA { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("NOTIFICATION_USER_INPUT_DATA").field("Key", &self.Key).field("Value", &self.Value).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for NOTIFICATION_USER_INPUT_DATA { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for NOTIFICATION_USER_INPUT_DATA { |
| fn eq(&self, other: &Self) -> bool { |
| self.Key == other.Key && self.Value == other.Value |
| } |
| } |
| impl ::core::cmp::Eq for NOTIFICATION_USER_INPUT_DATA {} |
| impl ::core::default::Default for NOTIFICATION_USER_INPUT_DATA { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[cfg(feature = "implement")] |
| ::core::include!("impl.rs"); |