2 * PROJECT: ReactOS Screen Saver Library
3 * LICENSE: GPL v2 or any later version
4 * FILE: include/psdk/scrnsave.h
5 * PURPOSE: Header file for the library
6 * PROGRAMMERS: Anders Norlander <anorland@hem2.passagen.se>
7 * Colin Finck <mail@colinfinck.de>
17 #define idsIsPassword 1000
18 #define idsIniFile 1001
19 #define idsScreenSaver 1002
20 #define idsPassword 1003
21 #define idsDifferentPW 1004
22 #define idsChangePW 1005
23 #define idsBadOldPW 1006
24 #define idsAppName 1007
25 #define idsNoHelpMemory 1008
26 #define idsHelpFile 1009
27 #define idsDefKeyword 1010
29 // If you add a configuration dialog for your screen saver, it must have this dialog ID.
30 #define DLG_SCRNSAVECONFIGURE 2003
32 #define IDS_DESCRIPTION 1
35 #define WS_GT (WS_GROUP | WS_TABSTOP)
37 #define TITLEBARNAMELEN 40
38 #define APPNAMEBUFFERLEN 40
41 // The dialog procedure of the screen saver configure dialog (if any)
42 // If you don't have a configuration dialog, just implement a procedure that always returns FALSE.
43 BOOL WINAPI
ScreenSaverConfigureDialog(HWND hDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
45 // Use this function if you want to register special classes before opening the configuration dialog.
46 // Return TRUE here if the classes were registered successfully and the configuration dialog shall be opened.
47 // If you return FALSE, no configuration dialog will be opened.
48 BOOL WINAPI
RegisterDialogClasses(HANDLE hInst
);
50 // The screen saver window procedure
51 LRESULT WINAPI
ScreenSaverProc(HWND
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
53 // The window procedure, which handles default tasks for screen savers.
54 // Use this instead of DefWindowProc.
55 LRESULT WINAPI
DefScreenSaverProc(HWND hWnd
, UINT msg
, WPARAM wParam
, LPARAM lParam
);
57 // These globals are defined in the screen saver library.
58 extern HINSTANCE hMainInstance
;
59 extern HWND hMainWindow
;
60 extern BOOL fChildPreview
;
61 extern TCHAR szName
[];
62 extern TCHAR szAppName
[];
63 extern TCHAR szIniFile
[];
64 extern TCHAR szScreenSaver
[];
65 extern TCHAR szHelpFile
[];
66 extern TCHAR szNoHelpMemory
[];
67 extern UINT MyHelpMessage
;
73 #endif /* _SCRNSAVE_H */