Running a Cygwin compiled app as an NT service

Talk about pretty much anything here, but DO NOT USE FOR SUPPORT.

Moderator: Supporters

w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

My emphasis was on either, or

I understand how to do it, but do both?
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

I think Unreal's standard WinMain simply checks if the service is installed and if so sends itself an SCM Start, and if not, start the GUI. Not 100% sure on this.

Of course, starting via SCM goes straight to ServiceMain() (as codemastr mentioned ;p ).
Locked