#ifndef _TOAST_NOTIFICATION_H_ #define _TOAST_NOTIFICATION_H_ class ToastNotification { private: wchar_t* _text; wchar_t* _caption; wchar_t* _imagePath; EventRegistrationToken _ertActivated; EventRegistrationToken _ertDismissed; EventRegistrationToken _ertFailed; Microsoft::WRL::ComPtr notificationManager; Microsoft::WRL::ComPtr notifier; Microsoft::WRL::ComPtr notification; HRESULT CreateXml(_Outptr_ ABI::Windows::Data::Xml::Dom::IXmlDocument** xml); HRESULT Create(_Outptr_ ABI::Windows::UI::Notifications::IToastNotification** notification); public: ToastNotification(_In_ wchar_t* text, _In_ wchar_t* caption = nullptr, _In_ wchar_t* imagePath = nullptr); ~ToastNotification(); HRESULT Initialize(); HRESULT Show(_In_ ToastEventHandler* handler); HRESULT Hide(); }; #endif //_TOAST_NOTIFICATION_H_