In the past I have implemented NT Services using Microsoft's sample service code. Now I am trying to implement a service that uses a DLL that I have created. The program works fine without the service code, but when I try to start it as a service using the service code, the service fails with this message "The application failed to initialize properly (0xc0000022).".

What is my problem?

Thanks,
Dan
[email protected]