ASSERT(lpService->dwRefCount > 0);
lpService->dwRefCount--;
- DPRINT1("CloseServiceHandle - lpService->dwRefCount %u\n",
- lpService->dwRefCount);
+ DPRINT("CloseServiceHandle - lpService->dwRefCount %u\n",
+ lpService->dwRefCount);
if (lpService->dwRefCount == 0)
{
/* if pcbBytesNeeded returned a value then there are services running that are dependent on this service*/
if (pcbBytesNeeded)
{
- DPRINT1("Deletion failed due to running dependencies.\n",
- lpService->lpServiceName);
+ DPRINT1("Deletion failed due to running dependencies.\n");
RegCloseKey(hServicesKey);
return ERROR_SUCCESS;
}
goto done;
lpService->dwRefCount = 1;
- DPRINT1("CreateService - lpService->dwRefCount %u\n", lpService->dwRefCount);
+ DPRINT("CreateService - lpService->dwRefCount %u\n", lpService->dwRefCount);
done:;
if (hServiceKey != NULL)
}
lpService->dwRefCount++;
- DPRINT1("OpenService - lpService->dwRefCount %u\n",lpService->dwRefCount);
+ DPRINT("OpenService - lpService->dwRefCount %u\n",lpService->dwRefCount);
*lpServiceHandle = (SC_RPC_HANDLE)hHandle;
DPRINT("*hService = %p\n", *lpServiceHandle);
lpDisplayName,
-1,
lpDisplayNameW,
- (wcslen(lpDisplayNameW) + 1) * sizeof(WCHAR));
+ wcslen(lpDisplayNameW) + 1);
RegSetValueExW(hServiceKey,
L"DisplayName",
if (lpBinaryPathName != NULL && *lpBinaryPathName != 0)
{
lpBinaryPathNameW=HeapAlloc(GetProcessHeap(),0, (strlen(lpBinaryPathName)+1) * sizeof(WCHAR));
- MultiByteToWideChar(CP_ACP, 0, lpBinaryPathName, -1, lpBinaryPathNameW, (wcslen(lpBinaryPathNameW)+1) * sizeof(WCHAR));
+ MultiByteToWideChar(CP_ACP, 0, lpBinaryPathName, -1, lpBinaryPathNameW, wcslen(lpBinaryPathNameW)+1);
dwError = RegSetValueExW(hServiceKey,
L"ImagePath",
0,
lpLoadOrderGroup,
-1,
lpLoadOrderGroupW,
- (wcslen(lpLoadOrderGroupW) + 1) * sizeof(WCHAR));
+ wcslen(lpLoadOrderGroupW) + 1);
dwError = RegSetValueExW(hServiceKey,
L"Group",
lpDependencies,
dwDependSize,
lpDependenciesW,
- (wcslen(lpDependenciesW)+1) * sizeof(WCHAR));
+ wcslen(lpDependenciesW)+1);
dwError = ScmWriteDependencies(hServiceKey,
(LPWSTR)lpDependenciesW,
/* Function 34 */
-DWORD RGetCurrentGroupStateW(
- handle_t BindingHandle)
+DWORD RI_ScGetCurrentGroupStateW(
+ handle_t BindingHandle,
+ SC_RPC_HANDLE hSCManager,
+ LPWSTR lpLoadOrderGroup,
+ LPDWORD lpState)
{
UNIMPLEMENTED;
return ERROR_CALL_NOT_IMPLEMENTED;