set most of trunk svn property eol-style:native
[reactos.git] / reactos / dll / cpl / sysdm / hardprof.c
1 /*
2 * PROJECT: ReactOS System Control Panel Applet
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: dll/cpl/sysdm/hardprof.c
5 * PURPOSE: Modify hardware profiles
6 * COPYRIGHT: Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
7 *
8 */
9
10 #include "precomp.h"
11
12 /* Property page dialog callback */
13 static INT_PTR CALLBACK
14 RenameProfDlgProc(HWND hwndDlg,
15 UINT uMsg,
16 WPARAM wParam,
17 LPARAM lParam)
18 {
19 UNREFERENCED_PARAMETER(lParam);
20 UNREFERENCED_PARAMETER(wParam);
21 UNREFERENCED_PARAMETER(hwndDlg);
22 switch(uMsg)
23 {
24 case WM_INITDIALOG:
25 {
26 MessageBox(hwndDlg, _T("Dialog not yet implemented!"), NULL, 0);
27 }
28 break;
29
30 case WM_COMMAND:
31 {
32 if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
33 {
34 EndDialog(hwndDlg,
35 LOWORD(wParam));
36 return TRUE;
37 }
38 }
39 break;
40 }
41 return FALSE;
42 }
43
44
45 /* Property page dialog callback */
46 INT_PTR CALLBACK
47 HardProfDlgProc(HWND hwndDlg,
48 UINT uMsg,
49 WPARAM wParam,
50 LPARAM lParam)
51 {
52 UNREFERENCED_PARAMETER(lParam);
53 UNREFERENCED_PARAMETER(wParam);
54 UNREFERENCED_PARAMETER(hwndDlg);
55 switch(uMsg)
56 {
57 case WM_INITDIALOG:
58 {
59 MessageBox(hwndDlg, _T("Dialog not yet implemented!"), NULL, 0);
60 }
61 break;
62
63 case WM_COMMAND:
64 {
65 switch (LOWORD(wParam))
66 {
67 case IDC_HRDPROFRENAME:
68 {
69 DialogBox(hApplet,
70 MAKEINTRESOURCE(IDD_RENAMEPROFILE),
71 hwndDlg,
72 (DLGPROC)RenameProfDlgProc);
73 }
74
75 case IDOK:
76 case IDCANCEL:
77 {
78 EndDialog(hwndDlg,
79 LOWORD(wParam));
80 return TRUE;
81 }
82 }
83
84 }
85 break;
86 }
87 return FALSE;
88 }