comparison libdha/dhahelperwin/dhasetup.c @ 12450:238820c0ee48

report if the service creation failed
author faust3
date Sun, 09 May 2004 14:03:10 +0000
parents 73ee9bd3b537
children fb34ae9a7d28
comparison
equal deleted inserted replaced
12449:44959468c64d 12450:238820c0ee48
36 NULL, 36 NULL,
37 NULL, 37 NULL,
38 NULL, 38 NULL,
39 NULL, 39 NULL,
40 NULL); 40 NULL);
41 if(!hService){
42 printf("unable to register DHAHELPER Service (0x%x)\n",GetLastError());
43 }
41 } 44 }
42 else if(!strcmp(argv[1],"remove")){ 45 else if(!strcmp(argv[1],"remove")){
43 SERVICE_STATUS ServiceStatus; 46 SERVICE_STATUS ServiceStatus;
44 printf("Removing dhahelper...\n"); 47 printf("Removing dhahelper...\n");
45 hService = OpenService(hSCManager, "DHAHELPER", SERVICE_ALL_ACCESS); 48 hService = OpenService(hSCManager, "DHAHELPER", SERVICE_ALL_ACCESS);