ReactOS  r72796
scrnsave.h
Go to the documentation of this file.
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.
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.
49 
50 // The screen saver window procedure
52 
53 // The window procedure, which handles default tasks for screen savers.
54 // Use this instead of DefWindowProc.
56 
57 // These globals are defined in the screen saver library.
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 */
TCHAR szAppName[]
Definition: solitaire.cpp:16
HWND hWnd
Definition: settings.c:17
UINT uMsg
Definition: precomp.h:48
HANDLE HWND
Definition: compat.h:13
HINSTANCE hMainInstance
Definition: scrnsave.c:25
UINT_PTR WPARAM
Definition: windef.h:232
TCHAR szIniFile[]
Definition: scrnsave.c:28
TCHAR szName[]
Definition: fdi.c:112
LONG_PTR LPARAM
Definition: windef.h:233
TCHAR szNoHelpMemory[]
Definition: scrnsave.c:31
char TCHAR
Definition: xmlstorage.h:189
unsigned int BOOL
Definition: ntddk_ex.h:94
UINT MyHelpMessage
Definition: scrnsave.c:32
UINT WPARAM wParam
Definition: precomp.h:48
BOOL WINAPI RegisterDialogClasses(HANDLE hInst)
Definition: 3dtext.c:416
HANDLE HINSTANCE
Definition: typedefs.h:76
TCHAR szHelpFile[]
Definition: scrnsave.c:30
HWND hMainWindow
Definition: scrnsave.c:23
TCHAR szScreenSaver[]
Definition: scrnsave.c:29
#define WINAPI
Definition: msvc.h:20
LRESULT WINAPI ScreenSaverProc(HWND, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: 3dtext.c:256
DWORD *typedef HANDLE
Definition: winlogon.h:52
HINSTANCE hInst
Definition: dxdiag.c:13
BOOL fChildPreview
Definition: scrnsave.c:24
UINT WPARAM LPARAM lParam
Definition: precomp.h:48
unsigned int UINT
Definition: ndis.h:50
BOOL WINAPI ScreenSaverConfigureDialog(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: 3dtext.c:381
UINT msg
Definition: msvc.h:92
LRESULT WINAPI DefScreenSaverProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: scrnsave.c:95
LONG_PTR LRESULT
Definition: windef.h:234