Author: ekohl
Date: Thu May 26 15:48:46 2016
New Revision: 71408
URL:
http://svn.reactos.org/svn/reactos?rev=71408&view=rev
Log:
[SERVMAN]
GetServiceConfig: Use only the required access rights. Makes servman usable for non-admin
users.
Modified:
trunk/reactos/base/applications/mscutils/servman/query.c
Modified: trunk/reactos/base/applications/mscutils/servman/query.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/query.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/servman/query.c [iso-8859-1] Thu May 26
15:48:46 2016
@@ -35,12 +35,12 @@
hSCManager = OpenSCManagerW(NULL,
NULL,
- SC_MANAGER_ALL_ACCESS);
+ SC_MANAGER_CONNECT);
if (hSCManager)
{
hService = OpenServiceW(hSCManager,
lpServiceName,
- SERVICE_QUERY_STATUS | SERVICE_ENUMERATE_DEPENDENTS |
SERVICE_QUERY_CONFIG);
+ SERVICE_QUERY_CONFIG);
if (hService)
{
if (!QueryServiceConfigW(hService,