mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 12:23:29 +00:00
[SERVMAN]
GetServiceConfig: Use only the required access rights. Makes servman usable for non-admin users. svn path=/trunk/; revision=71408
This commit is contained in:
@@ -35,12 +35,12 @@ GetServiceConfig(LPWSTR lpServiceName)
|
||||
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user