2 * PROJECT: ReactOS System Control Panel Applet
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: dll/cpl/sysdm/hardware.c
5 * PURPOSE: Hardware devices
6 * COPYRIGHT: Copyright Thomas Weidenmueller <w3seek@reactos.org>
7 * Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
13 typedef BOOL (WINAPI
*PDEVMGREXEC
)(HWND hWndParent
, HINSTANCE hInst
, PVOID Unknown
, int nCmdShow
);
16 LaunchDeviceManager(HWND hWndParent
)
18 /* hack for ROS to start our devmgmt until we have mmc */
20 return ((INT_PTR
)ShellExecuteW(NULL
, L
"open", L
"devmgmt.exe", NULL
, NULL
, SW_SHOWNORMAL
) > 32);
23 PDEVMGREXEC DevMgrExec
;
26 hDll
= LoadLibrary(_TEXT("devmgr.dll"));
30 DevMgrExec
= (PDEVMGREXEC
)GetProcAddress(hDll
, "DeviceManager_ExecuteW");
37 /* run the Device Manager */
38 Ret
= DevMgrExec(hWndParent
, hApplet
, NULL
/* ??? */, SW_SHOW
);
41 #endif /* __REACTOS__ */
44 /* Property page dialog callback */
46 HardwarePageProc(HWND hwndDlg
,
51 UNREFERENCED_PARAMETER(lParam
);
59 switch (LOWORD(wParam
))
61 case IDC_HARDWARE_DEVICE_MANAGER
:
62 if (!LaunchDeviceManager(hwndDlg
))
68 case IDC_HARDWARE_PROFILE
:
70 MAKEINTRESOURCE(IDD_HARDWAREPROFILES
),
72 (DLGPROC
)HardProfDlgProc
);