OSDN Git Service

More on assuming GCC is greater than or equal to version 3.5.4 and that
[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 #pragma GCC system_header
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 /* configure dialog identifier */
19 #define DLG_SCRNSAVECONFIGURE 2003
20
21 #define idsIsPassword           1000
22 #define idsIniFile              1001
23 #define idsScreenSaver          1002
24 #define idsPassword             1003
25 #define idsDifferentPW          1004
26 #define idsChangePW             1005
27 #define idsBadOldPW             1006
28 #define idsAppName              1007
29 #define idsNoHelpMemory         1008
30 #define idsHelpFile             1009
31 #define idsDefKeyword           1010
32
33 #define IDS_DESCRIPTION 1
34 #define ID_APP 100
35
36 #define WS_GT (WS_GROUP | WS_TABSTOP)
37 #define SCRM_VERIFYPW           WM_APP
38 #define MAXFILELEN              13
39 #define TITLEBARNAMELEN         40
40 #define APPNAMEBUFFERLEN        40
41 #define BUFFLEN                 255
42
43 #ifndef RC_INVOKED
44
45 /* functions provided by the aothor of the screen saver */
46 BOOL WINAPI ScreenSaverConfigureDialog(HWND,UINT,WPARAM,LPARAM);
47 BOOL WINAPI RegisterDialogClasses(HANDLE);
48 LONG WINAPI ScreenSaverProc(HWND,UINT,WPARAM,LPARAM);
49
50 /* Change name of function if we are using UNICODE */
51 #ifdef UNICODE
52 #define DefScreenSaverProc DefScreenSaverProcW
53 #endif
54
55 /* default screen saver proc; call instead of DefWindowProc */
56 LONG WINAPI DefScreenSaverProc(HWND,UINT,WPARAM,LPARAM);
57
58 /* change password */
59 void WINAPI ScreenSaverChangePassword(HWND);
60
61 /* globals that may be used by screen saver */
62 extern HINSTANCE        hMainInstance;
63 extern HWND             hMainWindow;
64 extern BOOL             fChildPreview;
65 extern TCHAR            szName[];
66 extern TCHAR            szAppName[];
67 extern TCHAR            szIniFile[];
68 extern TCHAR            szScreenSaver[];
69 extern TCHAR            szHelpFile[];
70 extern TCHAR            szNoHelpMemory[];
71 extern UINT             MyHelpMessage;
72
73 #endif /* RC_INVOKED */
74
75 #ifdef __cplusplus
76 }
77 #endif
78
79 #endif /* _SCRNSAVE_H */