ROM as an NT Service

Posted by DigitalSabre on Thu 04 Jul 2002 11:39 PM — 4 posts, 17,295 views.

#0
Is it possible to run ROM as an NT Service? If so, what software should I get to do it? And will it be implemented later directly in the code? ( I suppose I could look at how the creators of SMAUG did it ).
Australia Forum Administrator #1
I did the SMAUG service stuff, see the file services.c in the SMAUG download. You could use it virtually unchanged for ROM (search for the word SMAUG and change it to ROM should do the trick).

Also, change comm.c and a couple of other places where the services code hooks in. For instance, here is an important place:


#ifdef WIN32
  int mainthread( int argc, char **argv )
#else
  int main( int argc, char **argv )
#endif


This is because "main" is really in services.c, and the original main is now called mainthread.
Australia Forum Administrator #2
Alternatively, run it under Cygwin and run it in the background, which amounts to the same thing, eg.


../src/rom &
#3
Try firedaemon. Its a powerful tool for win2k, nt, and xp. You can create services and so on. The URL is http://www.firedaemon.com/

Sincerely,
Akira