[ros-dev] [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

Alex Ionescu ionucu at videotron.ca
Tue May 1 18:45:11 CEST 2007


You don't run a software engineering project by user-based democracy.

Doing that is called Microsoft. Listening to your developers and internal vision while ignoring users is called Apple. Which makes the more user-friendly product?

Best regards,
Alex Ionescu

-----Original Message-----
From: ros-diffs-bounces at reactos.org [mailto:ros-diffs-bounces at reactos.org] On Behalf Of gedmurphy at svn.reactos.org
Sent: May-01-07 12:25 PM
To: ros-diffs at reactos.org
Subject: [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

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-dev mailing list