PDA

View Full Version : MySeq Server running as a windows service



Razzle
10-31-2008, 04:31 PM
I started playing with windows services, and put together some code to get myseqserver.exe to run as a windows service.

I attached the source code of what I changed in the server, and a precompiled server. I based it on the 1.22 server code. The only file I changed was the MySEQ.server.cpp.

To run it as a service, you need to copy the myseqserver.ini to your system32 folder, which is often c:\windows\system32. The GetCurrentDirectory for a service will default here. I can probably get it to read the folder of the application from the registry, but I haven't gotten that far with playing with it.

To install the service use myseqserver -i
To delete the service use myseqserver -d

All other commands should work normally. But after installing as a service, you can manage it from the services control manager by running services.msc.

http://rapidshare.com/files/159464098/MySEQ.server.zip

http://rapidshare.com/files/159464290/myseqserver.zip

Enjoy,

Razzle

Carpathian
11-01-2008, 02:11 AM
Very cool, good work!