This is the easiest way to create your own true NT service. Just look at the testService project. This has all the code you need.
Instructions: Before opening the testService project you first need to compile or register EVICT_Service.dll and NTSVC.ocx. NTSVC.ocx is created by Microsoft and written in Visual C. Remember that you always run the compiled version (the testService recognizes this). Otherwise the VB IDE will be registered as the service.
If you run the test service with desktop interaction then you can see the status in the modified title in the task manager. Running the executable will start up the service setup. Also look what happens if you start the executable twice. If you look at the services (in computer management) then you must be aware that it needs a refresh for showing an changed state.
Click here to download the complete source code, the compiled DLL and the demo.






