From: Hartmut Birr Date: Mon, 24 Oct 2005 15:26:54 +0000 (+0000) Subject: Revert r18735 and add the missing definition to svcctl.idl. X-Git-Tag: backups/ros-branch-0_2_9@19949~1136 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=c078ce1a677cc3dd4823c7fb05df6c4eee533468;ds=inline Revert r18735 and add the missing definition to svcctl.idl. svn path=/trunk/; revision=18737 --- diff --git a/reactos/include/idl/svcctl.idl b/reactos/include/idl/svcctl.idl index 24436eae702..0327104e6c7 100644 --- a/reactos/include/idl/svcctl.idl +++ b/reactos/include/idl/svcctl.idl @@ -74,7 +74,21 @@ cpp_quote("#endif") /* Function 9 */ DWORD ScmrNotifyBootConfigStatus([in] handle_t BindingHandle, [in] BOOL BootAcceptable); - + /* Function 11 */ + DWORD ScmrChangeServiceConfigW([in] handle_t BiningHandle, + [in] SC_HANDLE hSCManager, + [in] DWORD dwServiceType, + [in] DWORD dwStartType, + [in] DWORD dwErrorControl, + [in, string, ref] LPCWSTR lpBinaryPathName, + [in, string, unique] LPCWSTR lpLoadOrderGroup, + [in, out, unique] LPDWORD lpdwTagId, + [in, size_is(dwDependenciesLength), unique] LPCWSTR lpDependencies, + [in] DWORD dwDependenciesLength, + [in, string, unique] LPCWSTR lpServiceStartName, + [in, size_is(dwPasswordLength), unique] LPCWSTR lpPassword, + [in] DWORD dwPasswordLength, + [in, string, unique] LPCWSTR lpDisplayName); /* Function 12 */ DWORD ScmrCreateServiceW([in] handle_t BindingHandle, diff --git a/reactos/lib/advapi32/service/scm.c b/reactos/lib/advapi32/service/scm.c index 61cad8b254b..36a9285a2d1 100644 --- a/reactos/lib/advapi32/service/scm.c +++ b/reactos/lib/advapi32/service/scm.c @@ -121,7 +121,6 @@ ChangeServiceConfigW(SC_HANDLE hService, LPCWSTR lpPassword, LPCWSTR lpDisplayName) { -#if 0 /* Temporarily deactivated to fix the build (ScmrChangeServiceConfigW is missing */ DWORD dwError; DWORD dwDependenciesLength = 0; DWORD dwLength; @@ -169,11 +168,6 @@ ChangeServiceConfigW(SC_HANDLE hService, } return TRUE; -#else - DPRINT1("ChangeServiceConfigW temporarily disabled\n"); - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return FALSE; -#endif }