Updated for Git 1.7.3.2
[msysgit/mtrensch.git] / mingw / include / scrnsave.h
blob5cee4b66e712329f801a26a0865773992cb5a4a3
1 /*
2 Screen saver library by Anders Norlander <anorland@hem2.passagen.se>
4 This library is (hopefully) compatible with Microsoft's
5 screen saver library.
7 This is public domain software.
9 */
10 #ifndef _SCRNSAVE_H
11 #define _SCRNSAVE_H
12 #if __GNUC__ >=3
13 #pragma GCC system_header
14 #endif
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
20 /* configure dialog identifier */
21 #define DLG_SCRNSAVECONFIGURE 2003
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
35 #define IDS_DESCRIPTION 1
36 #define ID_APP 100
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
45 #ifndef RC_INVOKED
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);
52 /* Change name of function if we are using UNICODE */
53 #ifdef UNICODE
54 #define DefScreenSaverProc DefScreenSaverProcW
55 #endif
57 /* default screen saver proc; call instead of DefWindowProc */
58 LONG WINAPI DefScreenSaverProc(HWND,UINT,WPARAM,LPARAM);
60 /* change password */
61 void WINAPI ScreenSaverChangePassword(HWND);
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;
75 #endif /* RC_INVOKED */
77 #ifdef __cplusplus
79 #endif
81 #endif /* _SCRNSAVE_H */