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 ).
ROM as an NT Service
Posted by DigitalSabre on Thu 04 Jul 2002 11:39 PM — 4 posts, 17,295 views.
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:
This is because "main" is really in services.c, and the original main is now called mainthread.
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.
Alternatively, run it under Cygwin and run it in the background, which amounts to the same thing, eg.
../src/rom &
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
Sincerely,
Akira