- Timestamp:
- Nov 17, 2017 7:30:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/win/VBoxProxyStub.c
r69727 r69728 2317 2317 2318 2318 2319 BOOL vbpsInstallWindowsService(const WCHAR *pwszVBoxDir, const WCHAR *pwszServiceModule, const WCHAR *pwszServiceName, 2320 const WCHAR *pwszServiceDisplayName, const WCHAR *pwszServiceDescription) 2319 /** 2320 * Worker for installing a SCM service. 2321 * 2322 * @returns Success indicator. 2323 * @param pwszVBoxDir The VirtualBox install directory (unicode), 2324 * trailing slash. 2325 * @param pwszModule The service module. 2326 * @param pwszServiceName The service name. 2327 * @param pwszDisplayName The service display name. 2328 * @param pwszDescription The service description. 2329 */ 2330 static BOOL vbpsInstallWindowsService(const WCHAR *pwszVBoxDir, const WCHAR *pwszModule, const WCHAR *pwszServiceName, 2331 const WCHAR *pwszDisplayName, const WCHAR *pwszDescription) 2321 2332 { 2322 2333 BOOL fRet = vbpsIsInstalledWindowsService(pwszServiceName); … … 2329 2340 rc = RTUtf16Cat(wszFilePath, RT_ELEMENTS(wszFilePath), pwszVBoxDir); 2330 2341 if (RT_SUCCESS(rc)) 2331 rc = RTUtf16Cat(wszFilePath, RT_ELEMENTS(wszFilePath), pwsz ServiceModule);2342 rc = RTUtf16Cat(wszFilePath, RT_ELEMENTS(wszFilePath), pwszModule); 2332 2343 if (RT_SUCCESS(rc)) 2333 2344 rc = RTUtf16CatAscii(wszFilePath, RT_ELEMENTS(wszFilePath), "\""); … … 2337 2348 if (hSCM != NULL) 2338 2349 { 2339 SC_HANDLE hService = CreateService(hSCM, pwszServiceName, pwsz ServiceDisplayName,2350 SC_HANDLE hService = CreateService(hSCM, pwszServiceName, pwszDisplayName, 2340 2351 SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS, 2341 2352 SERVICE_DEMAND_START, SERVICE_ERROR_NORMAL, … … 2344 2355 { 2345 2356 SERVICE_DESCRIPTION sd; 2346 sd.lpDescription = (WCHAR *)pwsz ServiceDescription;2357 sd.lpDescription = (WCHAR *)pwszDescription; 2347 2358 if (ChangeServiceConfig2(hService, SERVICE_CONFIG_DESCRIPTION, &sd)) 2348 2359 fRet = TRUE; … … 2365 2376 2366 2377 2367 BOOL vbpsUninstallWindowsService(const WCHAR *pwszServiceName) 2378 /** 2379 * Worker for uninstalling a SCM service. 2380 * 2381 * @returns Success indicator. 2382 * @param pwszServiceName The name of the SCM service. 2383 */ 2384 static BOOL vbpsUninstallWindowsService(const WCHAR *pwszServiceName) 2368 2385 { 2369 2386 BOOL fRet = !vbpsIsInstalledWindowsService(pwszServiceName); … … 2404 2421 2405 2422 2423 /** 2424 * Updates the VBoxSDS service with SCM. 2425 * 2426 * @param pState The registry modifier state. 2427 * @param pwszVBoxDir The VirtualBox install directory (unicode), 2428 * trailing slash. 2429 */ 2406 2430 static void vbpsUpdateVBoxSDSWindowsService(VBPSREGSTATE *pState, const WCHAR *pwszVBoxDir) 2407 2431 {
Note:
See TracChangeset
for help on using the changeset viewer.