1 /* 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> 8 */ 9 10 #ifndef _SCRNSAVE_H 11 #define _SCRNSAVE_H 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 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 28 29 // If you add a configuration dialog for your screen saver, it must have this dialog ID. 30 #define DLG_SCRNSAVECONFIGURE 2003 31 32 #define IDS_DESCRIPTION 1 33 #define ID_APP 100 34 35 #define WS_GT (WS_GROUP | WS_TABSTOP) 36 #define MAXFILELEN 13 37 #define TITLEBARNAMELEN 40 38 #define APPNAMEBUFFERLEN 40 39 #define BUFFLEN 255 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); 44 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); 49 50 // The screen saver window procedure 51 LRESULT WINAPI ScreenSaverProc(HWND, UINT uMsg, WPARAM wParam, LPARAM lParam); 52 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); 56 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; 68 69 #ifdef __cplusplus 70 } 71 #endif 72 73 #endif /* _SCRNSAVE_H */ 74