ReactOS  0.4.15-dev-1068-g467feb9
languages.c File Reference
#include "intl.h"
#include <shellapi.h>
Include dependency graph for languages.c:

Go to the source code of this file.

Functions

INT_PTR CALLBACK LanguagesPageProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
 

Function Documentation

◆ LanguagesPageProc()

INT_PTR CALLBACK LanguagesPageProc ( HWND  hwndDlg,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 7 of file languages.c.

11 {
12  SHELLEXECUTEINFOW shInputDll;
13  PGLOBALDATA pGlobalData;
14 
15  pGlobalData = (PGLOBALDATA)GetWindowLongPtr(hwndDlg, DWLP_USER);
16 
17  switch (uMsg)
18  {
19  case WM_INITDIALOG:
20  pGlobalData = (PGLOBALDATA)((LPPROPSHEETPAGE)lParam)->lParam;
21  SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pGlobalData);
22 
23  if (!pGlobalData->bIsUserAdmin)
24  {
27  }
28  break;
29 
30  case WM_COMMAND:
31  switch (LOWORD(wParam))
32  {
33  /* If "detail" button pressed */
34  case IDC_DETAIL_BUTTON:
35  if (HIWORD(wParam) == BN_CLICKED)
36  {
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)
44  {
46  }
47  }
48  break;
49  }
50  break;
51  }
52  return FALSE;
53 }
struct _GLOBALDATA * PGLOBALDATA
#define IDS_ERROR_INPUT_DLL
Definition: resource.h:90
BOOL bIsUserAdmin
Definition: intl.h:122
GLint x0
Definition: linetemp.h:95
#define IDC_INST_FILES_FOR_RTOL_LANG
Definition: resource.h:66
#define SetWindowLongPtr
Definition: treelist.c:70
WPARAM wParam
Definition: combotst.c:138
#define FALSE
Definition: types.h:117
#define IDC_INST_FILES_FOR_ASIAN
Definition: resource.h:67
#define LPPROPSHEETPAGE
Definition: prsht.h:390
BOOL WINAPI DECLSPEC_HOTPATCH ShellExecuteExW(LPSHELLEXECUTEINFOW sei)
Definition: shlexec.cpp:2263
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define BN_CLICKED
Definition: winuser.h:1907
#define IDC_DETAIL_BUTTON
Definition: resource.h:52
static const WCHAR L[]
Definition: oid.c:1250
#define DWLP_USER
Definition: winuser.h:866
#define WM_COMMAND
Definition: winuser.h:1722
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
LPCWSTR lpParameters
Definition: shellapi.h:331
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
#define HIWORD(l)
Definition: typedefs.h:247
#define GetWindowLongPtr
Definition: treelist.c:73
VOID PrintErrorMsgBox(UINT msg)
Definition: intl.c:52
#define memset(x, y, z)
Definition: compat.h:39
#define WM_INITDIALOG
Definition: winuser.h:1721
LPARAM lParam
Definition: combotst.c:139
#define LOWORD(l)
Definition: pedump.c:82

Referenced by Applet().