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