source: Daodan/MinGW/include/scrnsave.h@ 1131

Last change on this file since 1131 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 1.8 KB
Line 
1/*
2 Screen saver library by Anders Norlander <anorland@hem2.passagen.se>
3
4 This library is (hopefully) compatible with Microsoft's
5 screen saver library.
6
7 This is public domain software.
8
9 */
10#ifndef _SCRNSAVE_H
11#define _SCRNSAVE_H
12#if __GNUC__ >=3
13#pragma GCC system_header
14#endif
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20/* configure dialog identifier */
21#define DLG_SCRNSAVECONFIGURE 2003
22
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
34
35#define IDS_DESCRIPTION 1
36#define ID_APP 100
37
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
44
45#ifndef RC_INVOKED
46
47/* functions provided by the aothor of the screen saver */
48BOOL WINAPI ScreenSaverConfigureDialog(HWND,UINT,WPARAM,LPARAM);
49BOOL WINAPI RegisterDialogClasses(HANDLE);
50LONG WINAPI ScreenSaverProc(HWND,UINT,WPARAM,LPARAM);
51
52/* Change name of function if we are using UNICODE */
53#ifdef UNICODE
54#define DefScreenSaverProc DefScreenSaverProcW
55#endif
56
57/* default screen saver proc; call instead of DefWindowProc */
58LONG WINAPI DefScreenSaverProc(HWND,UINT,WPARAM,LPARAM);
59
60/* change password */
61void WINAPI ScreenSaverChangePassword(HWND);
62
63/* globals that may be used by screen saver */
64extern HINSTANCE hMainInstance;
65extern HWND hMainWindow;
66extern BOOL fChildPreview;
67extern TCHAR szName[];
68extern TCHAR szAppName[];
69extern TCHAR szIniFile[];
70extern TCHAR szScreenSaver[];
71extern TCHAR szHelpFile[];
72extern TCHAR szNoHelpMemory[];
73extern UINT MyHelpMessage;
74
75#endif /* RC_INVOKED */
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif /* _SCRNSAVE_H */
Note: See TracBrowser for help on using the repository browser.