mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 05:55:45 +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)
|
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;
|
HMODULE hDll;
|
||||||
PDEVMGREXEC DevMgrExec;
|
PDEVMGREXEC DevMgrExec;
|
||||||
BOOL Ret;
|
BOOL Ret;
|
||||||
|
@ -33,6 +37,7 @@ BOOL LaunchDeviceManager(HWND hWndParent)
|
||||||
Ret = DevMgrExec(hWndParent, hApplet, NULL /* ??? */, SW_SHOW);
|
Ret = DevMgrExec(hWndParent, hApplet, NULL /* ??? */, SW_SHOW);
|
||||||
FreeLibrary(hDll);
|
FreeLibrary(hDll);
|
||||||
return Ret;
|
return Ret;
|
||||||
|
#endif /* __REACTOS__ */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Property page dialog callback */
|
/* Property page dialog callback */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue