I create my windows with CreateWindows() and it's work. But now, i have to create a "MSWindows service". Do you now how can I change my source for do that ?
I wouldn't trust a tool to convert your app to a service. They should developed quite differently.
Typically, the service object will spawn a thread that will contain your execution. It can then inject an exception within the thread when it needs the thread to stop/pause/continue etc. These are not typically thought about when designing an application.
@george135: how about your post the "associated kb". Otherwise your advice is completely useless.
You shouldn't change your app from a window to service just because it doesnt work. First, identify the problem; why doesnt it work? Then ask yourself, why do I need a Windows service?