Paste: Regular code
Author: | Dee |
Mode: | c++ |
Date: | Fri, 4 Sep 2009 16:50:04 |
Plain Text |
if( _Argc > 1 )
{
if( xr::service::global::Start = !strcmp( _Argv[1], "start" ) )
xr::service::main( _Argc, _Argv );
else if( xr::service::global::Config = !strcmp( _Argv[1], "configure" ) )
xr::service::main( _Argc, _Argv );
else if( !strcmp( _Argv[1], "install" ) )
xr::service::install();
else if( !strcmp( _Argv[1], "uninstall" ) )
xr::service::uninstall();
else
std::cout << "Usage: service.exe [option]\nOptions are:\n\tstart\n\tconfigure\n\tinstall\n\tuninstall" << std::endl;
return 0;
}
New Annotation