ReactOS 0.4.15-dev-7897-g78dc504
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
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
59extern 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_ */
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
#define STDMETHODCALLTYPE
Definition: bdasup.h:9
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
HRESULT(STDMETHODCALLTYPE * PFNSTINIT)(_In_ CSysTray *pSysTray)
Definition: precomp.h:44
SysTrayIconHandlers_t g_IconHandlers[]
Definition: csystray.cpp:16
HRESULT STDMETHODCALLTYPE Hotplug_Init(_In_ CSysTray *pSysTray)
Definition: hotplug.cpp:124
HRESULT STDMETHODCALLTYPE Volume_Init(_In_ CSysTray *pSysTray)
Definition: volume.cpp:136
HRESULT STDMETHODCALLTYPE Hotplug_Shutdown(_In_ CSysTray *pSysTray)
Definition: hotplug.cpp:145
HRESULT STDMETHODCALLTYPE Power_Message(_In_ CSysTray *pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult)
Definition: power.cpp:230
HRESULT(STDMETHODCALLTYPE * PFNSTMESSAGE)(_In_ CSysTray *pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult)
Definition: precomp.h:47
HRESULT STDMETHODCALLTYPE Volume_Message(_In_ CSysTray *pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult)
Definition: volume.cpp:260
HRESULT STDMETHODCALLTYPE MouseKeys_Shutdown(_In_ CSysTray *pSysTray)
Definition: mouse.cpp:23
HRESULT STDMETHODCALLTYPE MouseKeys_Init(_In_ CSysTray *pSysTray)
Definition: mouse.cpp:15
HRESULT STDMETHODCALLTYPE Hotplug_Message(_In_ CSysTray *pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult)
Definition: hotplug.cpp:258
HRESULT STDMETHODCALLTYPE Power_Init(_In_ CSysTray *pSysTray)
Definition: power.cpp:115
HRESULT STDMETHODCALLTYPE Power_Shutdown(_In_ CSysTray *pSysTray)
Definition: power.cpp:131
HRESULT(STDMETHODCALLTYPE * PFNSTSHUTDOWN)(_In_ CSysTray *pSysTray)
Definition: precomp.h:45
HRESULT STDMETHODCALLTYPE MouseKeys_Update(_In_ CSysTray *pSysTray)
Definition: mouse.cpp:43
HRESULT STDMETHODCALLTYPE Volume_Shutdown(_In_ CSysTray *pSysTray)
Definition: volume.cpp:199
HRESULT STDMETHODCALLTYPE Hotplug_Update(_In_ CSysTray *pSysTray)
Definition: hotplug.cpp:139
HRESULT(STDMETHODCALLTYPE * PFNSTUPDATE)(_In_ CSysTray *pSysTray)
Definition: precomp.h:46
HRESULT STDMETHODCALLTYPE Power_Update(_In_ CSysTray *pSysTray)
Definition: power.cpp:123
const int g_NumIcons
Definition: csystray.cpp:21
HINSTANCE g_hInstance
Definition: MainWindow.cpp:18
HRESULT STDMETHODCALLTYPE Volume_Update(_In_ CSysTray *pSysTray)
Definition: volume.cpp:167
unsigned long DWORD
Definition: ntddk_ex.h:95
#define _In_
Definition: ms_sal.h:308
unsigned int UINT
Definition: ndis.h:50
PFNSTSHUTDOWN pfnShutdown
Definition: precomp.h:53
PFNSTMESSAGE pfnMessage
Definition: precomp.h:55
PFNSTUPDATE pfnUpdate
Definition: precomp.h:54
PFNSTINIT pfnInit
Definition: precomp.h:52
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207