Disable ControlService() because of a bug in WIDL.
Modified: trunk/reactos/include/idl/svcctl.idl
Modified: trunk/reactos/lib/advapi32/service/scm.c
Modified: trunk/reactos/subsys/system/services/rpcserver.c
_____
Modified: trunk/reactos/include/idl/svcctl.idl
--- trunk/reactos/include/idl/svcctl.idl 2005-04-18 21:03:33 UTC
(rev 14682)
+++ trunk/reactos/include/idl/svcctl.idl 2005-04-18 21:34:11 UTC
(rev 14683)
@@ -39,10 +39,10 @@
[in] SC_HANDLE hSCObject);
/* Function 1 */
- BOOL ScmrControlService([in] handle_t BindingHandle,
- [in] SC_HANDLE hService,
- [in] DWORD dwControl,
- [out] LPSERVICE_STATUS lpServiceStatus);
+// BOOL ScmrControlService([in] handle_t BindingHandle,
+// [in] SC_HANDLE hService,
+// [in] DWORD dwControl,
+// [out] LPSERVICE_STATUS lpServiceStatus);
/* Function 2 */
DWORD ScmrDeleteService([in] handle_t BindingHandle,
_____
Modified: trunk/reactos/lib/advapi32/service/scm.c
--- trunk/reactos/lib/advapi32/service/scm.c 2005-04-18 21:03:33 UTC
(rev 14682)
+++ trunk/reactos/lib/advapi32/service/scm.c 2005-04-18 21:34:11 UTC
(rev 14683)
@@ -169,6 +169,7 @@
DWORD dwControl,
LPSERVICE_STATUS lpServiceStatus)
{
+#if 0
DWORD dwError;
DPRINT("ControlService(%x, %x, %p)\n",
@@ -191,6 +192,10 @@
DPRINT("ControlService() done\n");
return TRUE;
+#endif
+ DPRINT1("ControlService is unimplemented\n");
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return FALSE;
}
_____
Modified: trunk/reactos/subsys/system/services/rpcserver.c
--- trunk/reactos/subsys/system/services/rpcserver.c 2005-04-18
21:03:33 UTC (rev 14682)
+++ trunk/reactos/subsys/system/services/rpcserver.c 2005-04-18
21:34:11 UTC (rev 14683)
@@ -272,6 +272,7 @@
/* Function 1 */
+#if 0
unsigned long
ScmrControlService(handle_t BindingHandle,
unsigned int hService,
@@ -295,6 +296,7 @@
return ERROR_SUCCESS;
}
+#endif
/* Function 2 */
Show replies by date