2017-12-08 22:15:31 +00:00
|
|
|
#ifndef _STOBJECT_PRECOMP_H_
|
|
|
|
#define _STOBJECT_PRECOMP_H_
|
2014-07-23 18:00:36 +00:00
|
|
|
|
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <tchar.h>
|
|
|
|
|
|
|
|
#define COBJMACROS
|
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#define NTOS_MODE_USER
|
|
|
|
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <shlguid_undoc.h>
|
|
|
|
#include <shlobj.h>
|
|
|
|
#include <strsafe.h>
|
|
|
|
#include <atlbase.h>
|
|
|
|
#include <atlcom.h>
|
2014-07-28 13:18:57 +00:00
|
|
|
#include <atlwin.h>
|
2017-12-08 22:15:31 +00:00
|
|
|
#include <atlstr.h>
|
|
|
|
#include <setupapi.h>
|
2014-07-28 13:18:57 +00:00
|
|
|
#include <shellapi.h>
|
2014-07-23 18:00:36 +00:00
|
|
|
|
|
|
|
#include <wine/debug.h>
|
2017-12-08 22:15:31 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(stobject);
|
2014-07-23 18:00:36 +00:00
|
|
|
|
2014-07-28 13:18:57 +00:00
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
extern HINSTANCE g_hInstance;
|
|
|
|
|
2017-08-18 14:49:11 +00:00
|
|
|
#define ID_ICON_VOLUME (WM_APP + 0x4CB)
|
|
|
|
#define ID_ICON_HOTPLUG (WM_APP + 0x4CC)
|
|
|
|
#define ID_ICON_POWER (WM_APP + 0x4CD)
|
2022-06-18 19:24:41 +00:00
|
|
|
#define ID_ICON_MOUSE (WM_APP + 0x4CE)
|
2017-08-18 14:49:11 +00:00
|
|
|
|
2019-04-22 22:12:23 +00:00
|
|
|
#define POWER_SERVICE_FLAG 0x00000001
|
|
|
|
#define HOTPLUG_SERVICE_FLAG 0x00000002
|
|
|
|
#define VOLUME_SERVICE_FLAG 0x00000004
|
|
|
|
|
2014-07-30 22:08:05 +00:00
|
|
|
#include "csystray.h"
|
2014-07-28 13:18:57 +00:00
|
|
|
|
2014-07-30 22:08:05 +00:00
|
|
|
typedef HRESULT(STDMETHODCALLTYPE * PFNSTINIT) (_In_ CSysTray * pSysTray);
|
|
|
|
typedef HRESULT(STDMETHODCALLTYPE * PFNSTSHUTDOWN) (_In_ CSysTray * pSysTray);
|
|
|
|
typedef HRESULT(STDMETHODCALLTYPE * PFNSTUPDATE) (_In_ CSysTray * pSysTray);
|
2017-03-23 19:51:53 +00:00
|
|
|
typedef HRESULT(STDMETHODCALLTYPE * PFNSTMESSAGE) (_In_ CSysTray * pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult);
|
2014-07-28 13:18:57 +00:00
|
|
|
|
2014-07-30 22:08:05 +00:00
|
|
|
struct SysTrayIconHandlers_t
|
2014-07-28 13:18:57 +00:00
|
|
|
{
|
2019-04-22 22:12:23 +00:00
|
|
|
DWORD dwServiceFlag;
|
2014-07-30 22:08:05 +00:00
|
|
|
PFNSTINIT pfnInit;
|
|
|
|
PFNSTSHUTDOWN pfnShutdown;
|
|
|
|
PFNSTUPDATE pfnUpdate;
|
|
|
|
PFNSTMESSAGE pfnMessage;
|
2014-07-28 13:18:57 +00:00
|
|
|
};
|
|
|
|
|
2014-07-30 22:08:05 +00:00
|
|
|
extern SysTrayIconHandlers_t g_IconHandlers[];
|
|
|
|
extern const int g_NumIcons;
|
|
|
|
|
2014-07-28 13:18:57 +00:00
|
|
|
/* --------------- Icon callbacks ------------------------------ */
|
|
|
|
|
|
|
|
extern HRESULT STDMETHODCALLTYPE Volume_Init(_In_ CSysTray * pSysTray);
|
|
|
|
extern HRESULT STDMETHODCALLTYPE Volume_Shutdown(_In_ CSysTray * pSysTray);
|
|
|
|
extern HRESULT STDMETHODCALLTYPE Volume_Update(_In_ CSysTray * pSysTray);
|
2017-03-23 19:51:53 +00:00
|
|
|
extern HRESULT STDMETHODCALLTYPE Volume_Message(_In_ CSysTray * pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult);
|
2017-08-18 14:49:11 +00:00
|
|
|
|
|
|
|
extern HRESULT STDMETHODCALLTYPE Hotplug_Init(_In_ CSysTray * pSysTray);
|
|
|
|
extern HRESULT STDMETHODCALLTYPE Hotplug_Shutdown(_In_ CSysTray * pSysTray);
|
|
|
|
extern HRESULT STDMETHODCALLTYPE Hotplug_Update(_In_ CSysTray * pSysTray);
|
|
|
|
extern HRESULT STDMETHODCALLTYPE Hotplug_Message(_In_ CSysTray * pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult);
|
2017-03-23 19:51:53 +00:00
|
|
|
|
|
|
|
extern HRESULT STDMETHODCALLTYPE Power_Init(_In_ CSysTray * pSysTray);
|
|
|
|
extern HRESULT STDMETHODCALLTYPE Power_Shutdown(_In_ CSysTray * pSysTray);
|
|
|
|
extern HRESULT STDMETHODCALLTYPE Power_Update(_In_ CSysTray * pSysTray);
|
|
|
|
extern HRESULT STDMETHODCALLTYPE Power_Message(_In_ CSysTray * pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult);
|
2017-08-18 14:49:11 +00:00
|
|
|
|
2022-06-18 19:24:41 +00:00
|
|
|
extern HRESULT STDMETHODCALLTYPE MouseKeys_Init(_In_ CSysTray * pSysTray);
|
|
|
|
extern HRESULT STDMETHODCALLTYPE MouseKeys_Shutdown(_In_ CSysTray * pSysTray);
|
|
|
|
extern HRESULT STDMETHODCALLTYPE MouseKeys_Update(_In_ CSysTray * pSysTray);
|
|
|
|
|
|
|
|
|
2017-08-18 14:49:11 +00:00
|
|
|
#define POWER_TIMER_ID 2
|
|
|
|
#define VOLUME_TIMER_ID 3
|
2017-12-08 22:15:31 +00:00
|
|
|
#define HOTPLUG_TIMER_ID 4
|
2020-03-21 22:46:24 +00:00
|
|
|
#define HOTPLUG_DEVICE_TIMER_ID 5
|
2017-12-08 22:15:31 +00:00
|
|
|
|
|
|
|
#endif /* _STOBJECT_PRECOMP_H_ */
|