blob: fc75f68a15f0f988aa46dc099eec69939e92a63f [file] [log] [blame]
#[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_core::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");