mirror of
https://github.com/modernw/AppInstallerForWin8.git
synced 2026-04-11 16:57:18 +10:00
17 lines
734 B
C
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); |