diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-27 15:18:58 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-27 15:18:58 +0100 |
commit | f83210c88e7376e12b5cf0e86a073c59e4185efb (patch) | |
tree | 43441baf7060b9385cc7b0316551e1aae21c9af0 /tests/service | |
parent | 1e30a5d2d995ab51cc27c00917cda37ef24295ff (diff) | |
download | wolfbones-f83210c88e7376e12b5cf0e86a073c59e4185efb.tar.gz wolfbones-f83210c88e7376e12b5cf0e86a073c59e4185efb.tar.bz2 |
started to add usefull Windows service documentation, started with wolf_service_start_console
Diffstat (limited to 'tests/service')
-rw-r--r-- | tests/service/testservice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/service/testservice.c b/tests/service/testservice.c index dd2cddd..896df51 100644 --- a/tests/service/testservice.c +++ b/tests/service/testservice.c @@ -23,7 +23,7 @@ #define SERVICE_NAME "testservice" #define SERVICE_NAME_DESCR "Wolf Test Service" -static void service_main( DWORD argc, LPTSTR *argv ) { +static void WINAPI service_main( DWORD argc, LPTSTR *argv ) { wolf_error_t error; wolf_service_event_t event = WOLF_SERVICE_NO_EVENT; @@ -88,7 +88,7 @@ void __cdecl _tmain( int argc, TCHAR *argv[] ) { } else if( strcasecmp( argv[1], "/remove" ) == 0 ) { (void)wolf_service_remove( SERVICE_NAME ); } else if( strcasecmp( argv[1], "/foreground" ) == 0 ) { - service_main( argc, argv ); + wolf_service_start_console( SERVICE_NAME, &service_main, argc, argv ); } else { fprintf( stderr, "Illegal option '%s'\r\n", argv[1] ); } |