About ATL Windows Service.

W

Wonlay

I created a new ATL project,
and choose Windows Service(EXE).
VS.Net generated the basic source for me.
I do not know how to make the 'module' a 'Service'(I cannot find any sample
of 'ATL Windows Service' in MSDN),

In Platform SDK,
I know i have to give a SERVICE_TABLE_ENTRY, then
StartServiceCtrlDispatcher(),
give the ServiceMain(), ServiceCtrlHandler()(SERVICE_CONTROL_PAUSE,
SERVICE_CONTROL_STOP....handler here),
install(), uninstall(), then over.

how can i do it now?
can any one give me a sample(just leave OnStart(), OnStop()...empty),
or give me an url where a sample is there(I am searching for it with Google
for many times, but nothing found).

Thanks very much.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top