5 /* Property page dialog callback */
7 LanguagesPageProc(HWND hwndDlg
,
12 SHELLEXECUTEINFOW shInputDll
;
13 PGLOBALDATA pGlobalData
;
15 pGlobalData
= (PGLOBALDATA
)GetWindowLongPtr(hwndDlg
, DWLP_USER
);
20 pGlobalData
= (PGLOBALDATA
)((LPPROPSHEETPAGE
)lParam
)->lParam
;
21 SetWindowLongPtr(hwndDlg
, DWLP_USER
, (LONG_PTR
)pGlobalData
);
23 if (!pGlobalData
->bIsUserAdmin
)
25 EnableWindow(GetDlgItem(hwndDlg
, IDC_INST_FILES_FOR_RTOL_LANG
), FALSE
);
26 EnableWindow(GetDlgItem(hwndDlg
, IDC_INST_FILES_FOR_ASIAN
), FALSE
);
31 switch (LOWORD(wParam
))
33 /* If "detail" button pressed */
34 case IDC_DETAIL_BUTTON
:
35 if (HIWORD(wParam
) == BN_CLICKED
)
37 memset(&shInputDll
, 0x0, sizeof(SHELLEXECUTEINFOW
));
38 shInputDll
.cbSize
= sizeof(shInputDll
);
39 shInputDll
.hwnd
= hwndDlg
;
40 shInputDll
.lpVerb
= L
"open";
41 shInputDll
.lpFile
= L
"RunDll32.exe";
42 shInputDll
.lpParameters
= L
"shell32.dll,Control_RunDLL input.dll";
43 if (ShellExecuteExW(&shInputDll
) == 0)
45 PrintErrorMsgBox(IDS_ERROR_INPUT_DLL
);