Files
AppInstallerForWin8/ToastNotification/ToastNotification.h
2025-02-19 21:09:40 +08:00

17 lines
734 B
C

#pragma once
#ifdef TOASTNOTICE_EXPORTS
#define TOASTNOTICE_API __declspec(dllexport)
#else
#define TOASTNOTICE_API __declspec(dllimport)
#endif
#include <windef.h>
typedef void (*_NOTICE_PRESS_CALLBACK) (void);
typedef _NOTICE_PRESS_CALLBACK NOTICE_PRESS_CALLBACK;
// ʹÓà COM ´´½¨µÄ IStream *
typedef HANDLE HISTREAM;
extern "C" TOASTNOTICE_API bool CreateToastNotification (LPCWSTR identityName, LPCWSTR title, LPCWSTR text, NOTICE_PRESS_CALLBACK callback, HISTREAM imgFile);
extern "C" TOASTNOTICE_API HRESULT CreateShortcutWithAppIdA (LPCSTR pszShortcutPath, LPCSTR pszTargetPath, LPCSTR pszAppId);
extern "C" TOASTNOTICE_API HRESULT CreateShortcutWithAppIdW (LPCWSTR pszShortcutPath, LPCWSTR pszTargetPath, LPCWSTR pszAppId);