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 (STDCALL
*PDEVMGREXEC
)(HWND hWndParent
, HINSTANCE hInst
, PVOID Unknown
, int nCmdShow
);
15 BOOL
LaunchDeviceManager(HWND hWndParent
)
18 PDEVMGREXEC DevMgrExec
;
21 hDll
= LoadLibrary(_TEXT("devmgr.dll"));
25 DevMgrExec
= (PDEVMGREXEC
)GetProcAddress(hDll
, "DeviceManager_ExecuteW");
32 /* run the Device Manager */
33 Ret
= DevMgrExec(hWndParent
, hApplet
, NULL
/* ??? */, SW_SHOW
);
38 /* Property page dialog callback */
40 HardwarePageProc(HWND hwndDlg
,
45 UNREFERENCED_PARAMETER(lParam
);
54 switch(LOWORD(wParam
))
56 case IDC_HARDWARE_DEVICE_MANAGER
:
58 if(!LaunchDeviceManager(hwndDlg
))
66 case IDC_HARDWARE_PROFILE
:
69 MAKEINTRESOURCE(IDD_HARDWAREPROFILES
),
71 (DLGPROC
)HardProfDlgProc
);