OSDN Git Service

* include/*: Add combined winsup/mingw and winsup/w32api include files.
[mingw/mingw-org-wsl.git] / include / scrnsave.h
1 /*
2   Screen saver library by Anders Norlander <anorland@hem2.passagen.se>
3
4   This library is (hopefully) compatible with Microsoft's
5   screen saver library.
6
7   This is public domain software.
8
9  */
10 #ifndef _SCRNSAVE_H
11 #define _SCRNSAVE_H
12 #if __GNUC__ >=3
13 #pragma GCC system_header
14 #endif
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 /* configure dialog identifier */
21 #define DLG_SCRNSAVECONFIGURE 2003
22
23 #define idsIsPassword           1000
24 #define idsIniFile              1001
25 #define idsScreenSaver          1002
26 #define idsPassword             1003
27 #define idsDifferentPW          1004
28 #define idsChangePW             1005
29 #define idsBadOldPW             1006
30 #define idsAppName              1007
31 #define idsNoHelpMemory         1008
32 #define idsHelpFile             1009
33 #define idsDefKeyword           1010
34
35 #define IDS_DESCRIPTION 1
36 #define ID_APP 100
37
38 #define WS_GT (WS_GROUP | WS_TABSTOP)
39 #define SCRM_VERIFYPW           WM_APP
40 #define MAXFILELEN              13
41 #define TITLEBARNAMELEN         40
42 #define APPNAMEBUFFERLEN        40
43 #define BUFFLEN                 255
44
45 #ifndef RC_INVOKED
46
47 /* functions provided by the aothor of the screen saver */
48 BOOL WINAPI ScreenSaverConfigureDialog(HWND,UINT,WPARAM,LPARAM);
49 BOOL WINAPI RegisterDialogClasses(HANDLE);
50 LONG WINAPI ScreenSaverProc(HWND,UINT,WPARAM,LPARAM);
51
52 /* Change name of function if we are using UNICODE */
53 #ifdef UNICODE
54 #define DefScreenSaverProc DefScreenSaverProcW
55 #endif
56
57 /* default screen saver proc; call instead of DefWindowProc */
58 LONG WINAPI DefScreenSaverProc(HWND,UINT,WPARAM,LPARAM);
59
60 /* change password */
61 void WINAPI ScreenSaverChangePassword(HWND);
62
63 /* globals that may be used by screen saver */
64 extern HINSTANCE        hMainInstance;
65 extern HWND             hMainWindow;
66 extern BOOL             fChildPreview;
67 extern TCHAR            szName[];
68 extern TCHAR            szAppName[];
69 extern TCHAR            szIniFile[];
70 extern TCHAR            szScreenSaver[];
71 extern TCHAR            szHelpFile[];
72 extern TCHAR            szNoHelpMemory[];
73 extern UINT             MyHelpMessage;
74
75 #endif /* RC_INVOKED */
76
77 #ifdef __cplusplus
78 }
79 #endif
80
81 #endif /* _SCRNSAVE_H */