NT System Service / MSDEV
Posted on 1999-07-07
this isn't a pure MFC question, but this was the closest place to it I could find.
I am trying to create an NT System Service. Since there doesn't seem to be any preset wizards to start this, I started an MFC regular application and then gutted all the files out of it. I kept the application.cpp and stdafx stuff so I could have precompiled headers etc.. I have so far moved only main() into the application, compiled and run it. It compiles fine but when I run it, it dies looking for winmain.
I did try starting this as a regular win32 application but it didn't offer me precompiled headers, and when I tried to add the precompiled headers, it refused to always compile the stdafx.cpp that I added first (if it needed recompiling).
My question has a few parts then.
First, is this the best way to go about starting an NT Service application?
Second, if not, what is? Should I start a console or win32 application and work from there?
Third, if I add precompiled headers to a project, how do I force it to check for update and compile it first always? Do I change the name of it to like aaaaaaaa.cpp so it would be the first to compile?
any help in this would be appreciated. Even some advice on where to look for more help would be greatly appreciated.