Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 51 of file config.c.
Referenced by RCreateServiceW().
{ HKEY hServicesKey = NULL; DWORD dwDisposition; DWORD dwError; *phKey = NULL; dwError = RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"System\\CurrentControlSet\\Services", 0, KEY_READ | KEY_CREATE_SUB_KEY, &hServicesKey); if (dwError != ERROR_SUCCESS) return dwError; dwError = RegCreateKeyExW(hServicesKey, lpServiceName, 0, NULL, REG_OPTION_NON_VOLATILE, samDesired, NULL, phKey, &dwDisposition); #if 0 if ((dwError == ERROR_SUCCESS) && (dwDisposition == REG_OPENED_EXISTING_KEY)) { RegCloseKey(*phKey); *phKey = NULL; dwError = ERROR_SERVICE_EXISTS; } #endif RegCloseKey(hServicesKey); return dwError; }