ReactOS  0.4.14-dev-552-g2fad488
scrnsave.c
Go to the documentation of this file.
1 /*
2  * Copyright 2003 J Brown
3  * Copyright 2006 Eric Kohl
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
18  */
19 
20 #include <windows.h>
21 #include <scrnsave.h>
22 #include "resource.h"
23 
25 {
26  return DefScreenSaverProc(hwnd, uMsg, wParam, lParam);
27 }
28 
30 {
31  return FALSE;
32 }
33 
34 // This function is only called one time before opening the configuration dialog.
35 // Use it to show a message that no configuration is necesssary and return FALSE to indicate that no configuration dialog shall be opened.
37 {
38  TCHAR szMessage[256];
39  TCHAR szTitle[25];
40 
41  LoadString(hInst, IDS_TEXT, szMessage, sizeof(szMessage) / sizeof(TCHAR));
42  LoadString(hInst, IDS_DESCRIPTION, szTitle, sizeof(szTitle) / sizeof(TCHAR));
43 
45 
46  return FALSE;
47 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define IDS_DESCRIPTION
Definition: resource.h:92
UINT_PTR WPARAM
Definition: windef.h:207
WPARAM wParam
Definition: combotst.c:138
#define MB_ICONEXCLAMATION
Definition: winuser.h:779
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL WINAPI ScreenSaverConfigureDialog(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: scrnsave.c:29
smooth NULL
Definition: ftsmooth.c:416
LONG_PTR LPARAM
Definition: windef.h:208
char TCHAR
Definition: xmlstorage.h:189
#define WINAPI
Definition: msvc.h:8
TCHAR szTitle[MAX_LOADSTRING]
Definition: magnifier.c:35
LRESULT WINAPI ScreenSaverProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: scrnsave.c:24
#define MessageBox
Definition: winuser.h:5797
HINSTANCE hInst
Definition: dxdiag.c:13
unsigned int UINT
Definition: ndis.h:50
#define MB_OK
Definition: winuser.h:784
#define IDS_TEXT
Definition: resource.h:3
LONG_PTR LRESULT
Definition: windef.h:209
LRESULT WINAPI DefScreenSaverProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: scrnsave.c:95
LPARAM lParam
Definition: combotst.c:139
#define LoadString
Definition: winuser.h:5794
BOOL WINAPI RegisterDialogClasses(HANDLE hInst)
Definition: scrnsave.c:36