Click to See Complete Forum and Search --> : NT Service?


dan gray
April 20th, 1999, 02:59 PM
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
dgray@syscom-inc.com

October 20th, 1999, 08:15 AM
Is your DLL in the path? Running it as a service does not make the directory where the service (exe file) is located the current directory. Just a thought...