MCPcopy Create free account
hub / github.com/3proxy/3proxy / ServiceMain

Function ServiceMain

src/3proxy.c:87–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86
87void __stdcall ServiceMain(int argc, unsigned char* argv[] )
88{
89
90 hSrv = RegisterServiceCtrlHandler((LPCSTR)conf.stringtable[1], (LPHANDLER_FUNCTION)CommandHandler);
91 if( hSrv == 0 ) return;
92
93 SetStatus( SERVICE_START_PENDING, 0, 1 );
94 SetStatus( SERVICE_RUNNING, 0, 0 );
95 cyclestep();
96}
97#endif
98
99#else

Callers

nothing calls this directly

Calls 2

SetStatusFunction · 0.85
cyclestepFunction · 0.85

Tested by

no test coverage detected