1ae36d94870891bd6b02d2213483e09130fc9181
[reactos.git] / reactos / dll / cpl / intl / languages.c
1
2 #include "intl.h"
3
4 /* Property page dialog callback */
5 INT_PTR CALLBACK
6 LanguagesPageProc(HWND hwndDlg,
7 UINT uMsg,
8 WPARAM wParam,
9 LPARAM lParam)
10 {
11 SHELLEXECUTEINFO shInputDll;
12
13 switch (uMsg)
14 {
15 case WM_INITDIALOG:
16 break;
17
18 case WM_COMMAND:
19 switch (LOWORD(wParam))
20 {
21 /* If "detail" button pressed */
22 case IDC_DETAIL_BUTTON:
23 if (HIWORD(wParam) == BN_CLICKED)
24 {
25 memset(&shInputDll, 0x0, sizeof(SHELLEXECUTEINFO));
26 shInputDll.cbSize = sizeof(shInputDll);
27 shInputDll.hwnd = hwndDlg;
28 shInputDll.lpVerb = _T("open");
29 shInputDll.lpFile = _T("RunDll32.exe");
30 shInputDll.lpParameters = _T("shell32.dll,Control_RunDLL input.dll");
31 if (ShellExecuteEx(&shInputDll) == 0)
32 {
33 MessageBox(NULL,
34 _T("Can't start input.dll"),
35 _T("Error"),
36 MB_OK | MB_ICONERROR);
37 }
38 }
39 break;
40 }
41 break;
42 }
43
44 return FALSE;
45 }
46
47 /* EOF */