mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
quick hack to make sysdm.cpl open our standalone device manager
it's a democracy : http://www.reactos.org/forum/viewtopic.php?t=3835 svn path=/trunk/; revision=26616
This commit is contained in:
parent
219c4c8eb7
commit
983ad60182
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,10 @@ typedef BOOL (STDCALL *PDEVMGREXEC)(HWND hWndParent, HINSTANCE hInst, PVOID Unkn
|
|||
|
||||
BOOL LaunchDeviceManager(HWND hWndParent)
|
||||
{
|
||||
/* hack for ROS to start our devmgmt until we have mmc */
|
||||
#ifdef __REACTOS__
|
||||
return ((INT)ShellExecuteW(NULL, L"open", L"devmgmt.exe", NULL, NULL, SW_SHOWNORMAL) > 32);
|
||||
#else
|
||||
HMODULE hDll;
|
||||
PDEVMGREXEC DevMgrExec;
|
||||
BOOL Ret;
|
||||
|
@ -33,6 +37,7 @@ BOOL LaunchDeviceManager(HWND hWndParent)
|
|||
Ret = DevMgrExec(hWndParent, hApplet, NULL /* ??? */, SW_SHOW);
|
||||
FreeLibrary(hDll);
|
||||
return Ret;
|
||||
#endif /* __REACTOS__ */
|
||||
}
|
||||
|
||||
/* Property page dialog callback */
|
||||
|
|
Loading…
Reference in a new issue