ReactOS 0.4.16-dev-340-g0540c21
gui.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS shutdown/logoff utility
4 * FILE: base/applications/shutdown/gui.c
5 * PURPOSE: Shows a GUI used for managing multiple remote shutdown/restarts
6 * PROGRAMMERS: Lee Schroeder
7 */
8
9#include "precomp.h"
10
12{
13 switch(msg)
14 {
15 case WM_INITDIALOG:
16 break;
17
18 case WM_COMMAND:
19 switch(LOWORD(wparam))
20 {
21 case IDC_OK:
23 break;
24 case IDC_CANCEL:
26 break;
27 }
28 break;
29
30 case WM_CLOSE:
31 EndDialog(hwnd, 0);
32 break;
33
34 default:
35 return FALSE;
36 }
37
38 return TRUE;
39}
40
41/*
42 * NOTE: Until the ability to shutdown computers remotely, the GUI feature
43 * can't be fully implemented.
44 */
46{
49 NULL,
51
52 switch (result)
53 {
54 case IDC_OK:
55 MessageBoxW(NULL, L"This function is unimplemented.", L"Unimplemented", MB_OK);
56 break;
57
58 case IDC_CANCEL:
59 /* Exits the program */
60 break;
61
62 default:
63 MessageBoxW(NULL, L"Dialog Error!", L"Message", MB_OK);
64 return FALSE;
65 }
66
67 return TRUE;
68}
69
70/* EOF */
@ lparam
Definition: SystemMenu.c:31
@ wparam
Definition: SystemMenu.c:30
#define msg(x)
Definition: auth_time.c:54
#define IDC_OK
Definition: resource.h:59
#define IDC_CANCEL
Definition: resource.h:60
INT_PTR CALLBACK ShutdownGuiProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
Definition: gui.c:11
BOOL ShutdownGuiMain(struct CommandLineOptions opts)
Definition: gui.c:45
#define IDD_GUI
Definition: resource.h:56
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
GLuint64EXT * result
Definition: glext.h:11304
unsigned int UINT
Definition: ndis.h:50
#define L(x)
Definition: ntvdm.h:50
#define LOWORD(l)
Definition: pedump.c:82
int32_t INT_PTR
Definition: typedefs.h:64
#define GetModuleHandle
Definition: winbase.h:3852
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
#define WM_CLOSE
Definition: winuser.h:1624
#define DialogBoxW(i, t, p, f)
Definition: winuser.h:4402
#define WM_COMMAND
Definition: winuser.h:1743
#define WM_INITDIALOG
Definition: winuser.h:1742
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
#define MB_OK
Definition: winuser.h:793
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)