Ensure that the WM_ENTERIDLE message is not sent if the wake-up event
[wine] / include / monitor.h
1 /*
2  * Monitor definitions
3  *
4  */
5
6 #ifndef __WINE_MONITOR_H
7 #define __WINE_MONITOR_H
8
9 #include "windef.h"
10
11 struct tagMONITOR_DRIVER;
12
13 typedef struct tagMONITOR 
14 {
15   void *pDriverData;
16 } MONITOR;
17
18 typedef struct tagMONITOR_DRIVER {
19   void   (*pInitialize)(struct tagMONITOR *);
20   void   (*pFinalize)(struct tagMONITOR *);
21   BOOL   (*pIsSingleWindow)(struct tagMONITOR *);
22   int    (*pGetWidth)(struct tagMONITOR *);
23   int    (*pGetHeight)(struct tagMONITOR *);
24   int    (*pGetDepth)(struct tagMONITOR *);
25   BOOL   (*pGetScreenSaveActive)(struct tagMONITOR *);
26   void   (*pSetScreenSaveActive)(struct tagMONITOR *, BOOL);
27   int    (*pGetScreenSaveTimeout)(struct tagMONITOR *);
28   void   (*pSetScreenSaveTimeout)(struct tagMONITOR *, int);
29 } MONITOR_DRIVER;
30
31 extern MONITOR_DRIVER *MONITOR_Driver;
32
33 extern MONITOR MONITOR_PrimaryMonitor;
34
35 extern void MONITOR_Initialize(MONITOR *pMonitor);
36 extern void MONITOR_Finalize(MONITOR *pMonitor);
37 extern BOOL MONITOR_IsSingleWindow(MONITOR *pMonitor);
38 extern int MONITOR_GetWidth(MONITOR *pMonitor);
39 extern int MONITOR_GetHeight(MONITOR *pMonitor);
40 extern int MONITOR_GetDepth(MONITOR *pMonitor);
41 extern BOOL MONITOR_GetScreenSaveActive(MONITOR *pMonitor);
42 extern void MONITOR_SetScreenSaveActive(MONITOR *pMonitor, BOOL bActivate);
43 extern int MONITOR_GetScreenSaveTimeout(MONITOR *pMonitor);
44 extern void MONITOR_SetScreenSaveTimeout(MONITOR *pMonitor, int nTimeout);
45
46 #endif /* __WINE_MONITOR_H */
47