fix: Problems when enum services #34

This commit is contained in:
yuanyuanxiang
2025-01-15 00:11:01 +08:00
parent 4a89c3fbed
commit 0ef817af9c

View File

@@ -56,7 +56,7 @@ LPBYTE CServicesManager::GetServicesList()
DWORD dwServicesCount = 0; DWORD dwServicesCount = 0;
DWORD dwResumeHandle = 0; DWORD dwResumeHandle = 0;
EnumServicesStatus(m_hscManager, EnumServicesStatus(m_hscManager,
SERVICE_TYPE_ALL, //CTL_FIX SERVICE_WIN32, //CTL_FIX
SERVICE_STATE_ALL, SERVICE_STATE_ALL,
(LPENUM_SERVICE_STATUS)ServicesStatus, (LPENUM_SERVICE_STATUS)ServicesStatus,
64 * 1024, 64 * 1024,