[ros-diffs] [gedmurphy] 26616: quick hack to make sysdm.cpl open our standalone device manager it's a democracy : http://www.reactos.org/forum/viewtopic.php?t=3835

gedmurphy at svn.reactos.org gedmurphy at svn.reactos.org
Tue May 1 18:25:26 CEST 2007


Author: gedmurphy
Date: Tue May  1 20:25:26 2007
New Revision: 26616

URL: http://svn.reactos.org/svn/reactos?rev=26616&view=rev
Log:
quick hack to make sysdm.cpl open our standalone device manager
it's a democracy : http://www.reactos.org/forum/viewtopic.php?t=3835

Modified:
    trunk/reactos/dll/cpl/sysdm/hardware.c

Modified: trunk/reactos/dll/cpl/sysdm/hardware.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/hardware.c?rev=26616&r1=26615&r2=26616&view=diff
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/hardware.c (original)
+++ trunk/reactos/dll/cpl/sysdm/hardware.c Tue May  1 20:25:26 2007
@@ -14,6 +14,10 @@
 
 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 @@
     Ret = DevMgrExec(hWndParent, hApplet, NULL /* ??? */, SW_SHOW);
     FreeLibrary(hDll);
     return Ret;
+#endif /* __REACTOS__ */
 }
 
 /* Property page dialog callback */




More information about the Ros-diffs mailing list