ReactOS  0.4.15-dev-1392-g3014417
precomp.h
Go to the documentation of this file.
1 #ifndef _STOBJECT_PRECOMP_H_
2 #define _STOBJECT_PRECOMP_H_
3 
4 #define WIN32_NO_STATUS
5 #include <stdarg.h>
6 #include <tchar.h>
7 
8 #define COBJMACROS
9 #define WIN32_NO_STATUS
10 #define _INC_WINDOWS
11 #define COM_NO_WINDOWS_H
12 #define NTOS_MODE_USER
13 
14 #include <windef.h>
15 #include <winbase.h>
16 #include <shlguid_undoc.h>
17 #include <shlobj.h>
18 #include <strsafe.h>
19 #include <atlbase.h>
20 #include <atlcom.h>
21 #include <atlwin.h>
22 #include <atlstr.h>
23 #include <setupapi.h>
24 #include <shellapi.h>
25 
26 #include <wine/debug.h>
28 
29 #include "resource.h"
30 
31 extern HINSTANCE g_hInstance;
32 
33 #define ID_ICON_VOLUME (WM_APP + 0x4CB)
34 #define ID_ICON_HOTPLUG (WM_APP + 0x4CC)
35 #define ID_ICON_POWER (WM_APP + 0x4CD)
36 
37 #define POWER_SERVICE_FLAG 0x00000001
38 #define HOTPLUG_SERVICE_FLAG 0x00000002
39 #define VOLUME_SERVICE_FLAG 0x00000004
40 
41 #include "csystray.h"
42 
47 
49 {
55 };
56 
58 extern const int g_NumIcons;
59 
60 /* --------------- Icon callbacks ------------------------------ */
61 
66 
71 
76 
77 #define POWER_TIMER_ID 2
78 #define VOLUME_TIMER_ID 3
79 #define HOTPLUG_TIMER_ID 4
80 #define HOTPLUG_DEVICE_TIMER_ID 5
81 
82 #endif /* _STOBJECT_PRECOMP_H_ */
HRESULT(STDMETHODCALLTYPE * PFNSTUPDATE)(_In_ CSysTray *pSysTray)
Definition: precomp.h:45
HRESULT(STDMETHODCALLTYPE * PFNSTMESSAGE)(_In_ CSysTray *pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult)
Definition: precomp.h:46
HRESULT STDMETHODCALLTYPE Hotplug_Init(_In_ CSysTray *pSysTray)
Definition: hotplug.cpp:124
HRESULT STDMETHODCALLTYPE Volume_Message(_In_ CSysTray *pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult)
Definition: volume.cpp:261
UINT_PTR WPARAM
Definition: windef.h:207
SysTrayIconHandlers_t g_IconHandlers[]
Definition: csystray.cpp:15
WPARAM wParam
Definition: combotst.c:138
HRESULT(STDMETHODCALLTYPE * PFNSTSHUTDOWN)(_In_ CSysTray *pSysTray)
Definition: precomp.h:44
HRESULT STDMETHODCALLTYPE Power_Update(_In_ CSysTray *pSysTray)
Definition: power.cpp:123
const int g_NumIcons
Definition: csystray.cpp:20
HRESULT(STDMETHODCALLTYPE * PFNSTINIT)(_In_ CSysTray *pSysTray)
Definition: precomp.h:43
LONG_PTR LPARAM
Definition: windef.h:208
HRESULT STDMETHODCALLTYPE Hotplug_Message(_In_ CSysTray *pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult)
Definition: hotplug.cpp:258
WINE_DEFAULT_DEBUG_CHANNEL(cmd)
HRESULT STDMETHODCALLTYPE Hotplug_Shutdown(_In_ CSysTray *pSysTray)
Definition: hotplug.cpp:145
LONG HRESULT
Definition: typedefs.h:79
HRESULT STDMETHODCALLTYPE Power_Shutdown(_In_ CSysTray *pSysTray)
Definition: power.cpp:131
#define STDMETHODCALLTYPE
Definition: bdasup.h:9
unsigned long DWORD
Definition: ntddk_ex.h:95
PFNSTUPDATE pfnUpdate
Definition: precomp.h:53
HRESULT STDMETHODCALLTYPE Power_Message(_In_ CSysTray *pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult)
Definition: power.cpp:230
#define _In_
Definition: no_sal2.h:158
HINSTANCE g_hInstance
Definition: MainWindow.cpp:18
HRESULT STDMETHODCALLTYPE Volume_Update(_In_ CSysTray *pSysTray)
Definition: volume.cpp:168
HRESULT STDMETHODCALLTYPE Power_Init(_In_ CSysTray *pSysTray)
Definition: power.cpp:115
unsigned int UINT
Definition: ndis.h:50
PFNSTMESSAGE pfnMessage
Definition: precomp.h:54
HRESULT STDMETHODCALLTYPE Volume_Init(_In_ CSysTray *pSysTray)
Definition: volume.cpp:137
HRESULT STDMETHODCALLTYPE Volume_Shutdown(_In_ CSysTray *pSysTray)
Definition: volume.cpp:200
LONG_PTR LRESULT
Definition: windef.h:209
typedef HRESULT(CALLBACK *LPFNCREATEINSTANCE)(IUnknown *pUnkOuter
HRESULT STDMETHODCALLTYPE Hotplug_Update(_In_ CSysTray *pSysTray)
Definition: hotplug.cpp:139
LPARAM lParam
Definition: combotst.c:139
PFNSTINIT pfnInit
Definition: precomp.h:51
PFNSTSHUTDOWN pfnShutdown
Definition: precomp.h:52