ReactOS  0.4.15-dev-5500-g82cf6c2
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 #define ID_ICON_MOUSE (WM_APP + 0x4CE)
37 
38 #define POWER_SERVICE_FLAG 0x00000001
39 #define HOTPLUG_SERVICE_FLAG 0x00000002
40 #define VOLUME_SERVICE_FLAG 0x00000004
41 
42 #include "csystray.h"
43 
48 
50 {
56 };
57 
59 extern const int g_NumIcons;
60 
61 /* --------------- Icon callbacks ------------------------------ */
62 
67 
72 
77 
81 
82 
83 #define POWER_TIMER_ID 2
84 #define VOLUME_TIMER_ID 3
85 #define HOTPLUG_TIMER_ID 4
86 #define HOTPLUG_DEVICE_TIMER_ID 5
87 
88 #endif /* _STOBJECT_PRECOMP_H_ */
HRESULT(STDMETHODCALLTYPE * PFNSTUPDATE)(_In_ CSysTray *pSysTray)
Definition: precomp.h:46
HRESULT STDMETHODCALLTYPE MouseKeys_Update(_In_ CSysTray *pSysTray)
Definition: mouse.cpp:43
HRESULT(STDMETHODCALLTYPE * PFNSTMESSAGE)(_In_ CSysTray *pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult)
Definition: precomp.h:47
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:16
WPARAM wParam
Definition: combotst.c:138
HRESULT(STDMETHODCALLTYPE * PFNSTSHUTDOWN)(_In_ CSysTray *pSysTray)
Definition: precomp.h:45
HRESULT STDMETHODCALLTYPE Power_Update(_In_ CSysTray *pSysTray)
Definition: power.cpp:123
const int g_NumIcons
Definition: csystray.cpp:21
HRESULT STDMETHODCALLTYPE MouseKeys_Shutdown(_In_ CSysTray *pSysTray)
Definition: mouse.cpp:23
#define _In_
Definition: ms_sal.h:308
HRESULT(STDMETHODCALLTYPE * PFNSTINIT)(_In_ CSysTray *pSysTray)
Definition: precomp.h:44
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
HRESULT STDMETHODCALLTYPE MouseKeys_Init(_In_ CSysTray *pSysTray)
Definition: mouse.cpp:15
unsigned long DWORD
Definition: ntddk_ex.h:95
PFNSTUPDATE pfnUpdate
Definition: precomp.h:54
HRESULT STDMETHODCALLTYPE Power_Message(_In_ CSysTray *pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult)
Definition: power.cpp:230
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:55
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:52
PFNSTSHUTDOWN pfnShutdown
Definition: precomp.h:53