ReactOS 0.4.15-dev-7907-g95bf896
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
14extern "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.
59extern HWND hMainWindow;
60extern BOOL fChildPreview;
61extern TCHAR szName[];
62extern TCHAR szAppName[];
63extern TCHAR szIniFile[];
64extern TCHAR szScreenSaver[];
65extern TCHAR szHelpFile[];
66extern TCHAR szNoHelpMemory[];
67extern UINT MyHelpMessage;
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif /* _SCRNSAVE_H */
#define msg(x)
Definition: auth_time.c:54
HWND hWnd
Definition: settings.c:17
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
HINSTANCE hInst
Definition: dxdiag.c:13
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned int UINT
Definition: ndis.h:50
LRESULT WINAPI ScreenSaverProc(HWND, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: 3dtext.c:259
TCHAR szAppName[]
Definition: solitaire.cpp:18
TCHAR szIniFile[]
Definition: scrnsave.c:29
TCHAR szScreenSaver[]
Definition: scrnsave.c:30
TCHAR szNoHelpMemory[]
Definition: scrnsave.c:32
HWND hMainWindow
Definition: scrnsave.c:24
LRESULT WINAPI DefScreenSaverProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: scrnsave.c:92
HINSTANCE hMainInstance
Definition: scrnsave.c:26
TCHAR szHelpFile[]
Definition: scrnsave.c:31
BOOL fChildPreview
Definition: scrnsave.c:25
BOOL WINAPI ScreenSaverConfigureDialog(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: 3dtext.c:397
UINT MyHelpMessage
Definition: scrnsave.c:33
TCHAR szName[]
Definition: fdi.c:104
BOOL WINAPI RegisterDialogClasses(HANDLE hInst)
Definition: 3dtext.c:432
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
#define WINAPI
Definition: msvc.h:6
char TCHAR
Definition: xmlstorage.h:189