Running a Cygwin compiled app as an NT service

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

Moderator: Supporters

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 []
-Denora Stats []
-Omerta []
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 ).