mirror of
https://github.com/reactos/reactos.git
synced 2025-06-04 17:00:31 +00:00
- Launch hardware wizard on hardware page
svn path=/trunk/; revision=38817
This commit is contained in:
parent
1598a20490
commit
7c93f03dc7
1 changed files with 26 additions and 0 deletions
|
@ -41,6 +41,28 @@ LaunchDeviceManager(HWND hWndParent)
|
||||||
#endif /* __REACTOS__ */
|
#endif /* __REACTOS__ */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static VOID
|
||||||
|
LaunchHardwareWizard(HWND hWndParent)
|
||||||
|
{
|
||||||
|
SHELLEXECUTEINFO shInputDll;
|
||||||
|
|
||||||
|
memset(&shInputDll, 0x0, sizeof(SHELLEXECUTEINFO));
|
||||||
|
|
||||||
|
shInputDll.cbSize = sizeof(shInputDll);
|
||||||
|
shInputDll.hwnd = hWndParent;
|
||||||
|
shInputDll.lpVerb = _T("open");
|
||||||
|
shInputDll.lpFile = _T("rundll32.exe");
|
||||||
|
shInputDll.lpParameters = _T("shell32.dll,Control_RunDLL hdwwiz.cpl");
|
||||||
|
|
||||||
|
if (ShellExecuteEx(&shInputDll) == 0)
|
||||||
|
{
|
||||||
|
MessageBox(NULL,
|
||||||
|
_T("Can't start hdwwiz.cpl"),
|
||||||
|
NULL,
|
||||||
|
MB_OK | MB_ICONERROR);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Property page dialog callback */
|
/* Property page dialog callback */
|
||||||
INT_PTR CALLBACK
|
INT_PTR CALLBACK
|
||||||
HardwarePageProc(HWND hwndDlg,
|
HardwarePageProc(HWND hwndDlg,
|
||||||
|
@ -65,6 +87,10 @@ HardwarePageProc(HWND hwndDlg,
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
case IDC_HARDWARE_WIZARD:
|
||||||
|
LaunchHardwareWizard(hwndDlg);
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
case IDC_HARDWARE_PROFILE:
|
case IDC_HARDWARE_PROFILE:
|
||||||
DialogBox(hApplet,
|
DialogBox(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_HARDWAREPROFILES),
|
MAKEINTRESOURCE(IDD_HARDWAREPROFILES),
|
||||||
|
|
Loading…
Reference in a new issue