Changeset 101 for trunk/sources/win32service/win32service/src/svc/svc.cpp
- Timestamp:
- 08/24/10 15:00:17 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/win32service/win32service/src/svc/svc.cpp
r97 r101 28 28 if( lstrcmpi( argv[1], TEXT("installService")) == 0 ) 29 29 { 30 if( GetSvcRegistry() != REGIST_ERROR)30 if(SvcRegistry(ADD_KEY) != REGIST_ERROR) 31 31 SvcInstall(); 32 32 else … … 65 65 if ( argc == 1 ) //if no argument, assume that rtmpserver is started normally 66 66 { 67 if (!DoQuerySvc ){67 if (!DoQuerySvc()){ 68 68 printf("Server will start normally.\n\n"); 69 rtmpserver( GetSvcRegistry());69 rtmpserver(SvcRegistry(GET_KEY_VALUE)); 70 70 return; 71 71 }else{ 72 72 printf("\nERROR: Server cannot be started normally because the service described above is already installed. .\n\n"); 73 73 printf("Start/Stop the server by starting/stopping the service.\n\n"); 74 printf("To start server normally, enter 'uninstallService' command to delete the service.\n\n");75 74 return; 76 75 } … … 96 95 printf("\t stopService\n"); 97 96 printf("Run as stand-alone:\n"); 98 printf("\twin32service <configfile path>\n"); 99 printf("\twin32service --use-implicit-console-appender\n"); 97 printf("\twin32service\n"); 100 98 } 101 99 //
Note: See TracChangeset
for help on using the changeset viewer.
