mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-10 21:33:38 +00:00
Fixed agent status when not administrator.
This commit is contained in:
@@ -497,7 +497,7 @@ int GetServiceState(LPCSTR servicename)
|
|||||||
|
|
||||||
if (serviceControlManager)
|
if (serviceControlManager)
|
||||||
{
|
{
|
||||||
SC_HANDLE service = OpenService( serviceControlManager, servicename, SERVICE_QUERY_STATUS | DELETE );
|
SC_HANDLE service = OpenService( serviceControlManager, servicename, SERVICE_QUERY_STATUS );
|
||||||
if (service)
|
if (service)
|
||||||
{
|
{
|
||||||
SERVICE_STATUS serviceStatusEx;
|
SERVICE_STATUS serviceStatusEx;
|
||||||
|
|||||||
Reference in New Issue
Block a user