9e7fb0aebaa6b8ecdd275ed80e0c856fa4114d11
[reactos.git] / reactos / dll / cpl / sysdm / userprofile.c
1 /*
2 * PROJECT: ReactOS System Control Panel Applet
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: dll/cpl/sysdm/userprofile.c
5 * PURPOSE: Computer settings for networking
6 * COPYRIGHT: Copyright Thomas Weidenmueller <w3seek@reactos.org>
7 * Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
8 *
9 */
10
11 #include "precomp.h"
12
13 /* Property page dialog callback */
14 INT_PTR CALLBACK
15 UserProfileDlgProc(HWND hwndDlg,
16 UINT uMsg,
17 WPARAM wParam,
18 LPARAM lParam)
19 {
20 UNREFERENCED_PARAMETER(lParam);
21 UNREFERENCED_PARAMETER(wParam);
22 UNREFERENCED_PARAMETER(hwndDlg);
23
24 switch(uMsg)
25 {
26 case WM_INITDIALOG:
27 {
28 MessageBox(hwndDlg, _T("Dialog not yet implemented!"), NULL, 0);
29 }
30 break;
31
32 case WM_COMMAND:
33 {
34 if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
35 {
36 EndDialog(hwndDlg,
37 LOWORD(wParam));
38 return TRUE;
39 }
40 }
41 break;
42
43 case WM_NOTIFY:
44 {
45 NMHDR *nmhdr = (NMHDR *)lParam;
46
47 if (nmhdr->idFrom == IDC_USERACCOUNT_LINK && nmhdr->code == NM_CLICK)
48 {
49 ShellExecute(hwndDlg,
50 TEXT("open"),
51 TEXT("rundll32.exe"),
52 TEXT("shell32.dll, Control_RunDLL nusrmgr.cpl"),
53 NULL,
54 SW_SHOWNORMAL);
55 }
56 break;
57 }
58 }
59 return FALSE;
60 }