A simple note from "Write Pure Windows Service" and "How to debug Windows Service".
Write "Windows Service"
Windows Service is kind of application but it will start when system startup. Windows service will triggerd by "SMC"(System Managed Controller). There is some important note from my writing windows service experience.
Debugging "Windows Service"
There are two "easy" ways to debug your Windows service.
At finally, there is a best practice for you.
2006-03-20:(Update)
Please note:
1. VC7 or VC8 may have some problem when attach the VC6 debug version. (I think it is the pdb doesn't match).
2. To attach the thread. you may need to turn on the "Show system process", it will show the Windows Service process.
2006-04-12:(Update)
Download Beeper Service Simple Code