Lines Matching refs:BytesNeeded
84 DWORD BytesNeeded = 0; in GetServices() local
104 …SS_INFO, SERVICE_WIN32, SERVICE_STATE_ALL, (LPBYTE)pServiceStatus, 0, &BytesNeeded, &NumServices, … in GetServices()
110 pServiceStatus = HeapAlloc(GetProcessHeap(), 0, BytesNeeded); in GetServices()
118 …INFO, SERVICE_WIN32, SERVICE_STATE_ALL, (LPBYTE)pServiceStatus, BytesNeeded, &BytesNeeded, &NumSer… in GetServices()
155 BytesNeeded = 0; in GetServices()
160 … if (!QueryServiceConfig2(hService, SERVICE_CONFIG_FAILURE_ACTIONS, (LPBYTE)NULL, 0, &BytesNeeded)) in GetServices()
164 pServiceFailureActions = HeapAlloc(GetProcessHeap(), 0, BytesNeeded); in GetServices()
173 …ervice, SERVICE_CONFIG_FAILURE_ACTIONS, (LPBYTE)pServiceFailureActions, BytesNeeded, &BytesNeeded)) in GetServices()
205 BytesNeeded = 0; in GetServices()
206 if (!QueryServiceConfig(hService, NULL, 0, &BytesNeeded)) in GetServices()
210 pServiceConfig = HeapAlloc(GetProcessHeap(), 0, BytesNeeded); in GetServices()
218 … if (!QueryServiceConfig(hService, pServiceConfig, BytesNeeded, &BytesNeeded)) in GetServices()