About ATL Windows Service.

  • Thread starter Thread starter Wonlay
  • Start date Start date
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.
 
Back
Top