Register DLL as service

C

Craig Ferris

I'm trying to register a com object as an NT service,
under Win2000.
In windows XP once you have set up the Com+ Application
you can select Properties>Activation tab and select "Run
Application as an NT Service.
XP then adds to the registry a service using the
following "Image path"

C:\WINDOWS\System32\dllhost.exe /Processid:{19BDC202-E1C4-
4A3B-A973-E0E3AB7B2AC7}


Where the ProcessId is the Application ID as shown in the
Properties dialog in the COM+ Application in the Component
Services Manager.
I cant find this processID (AppID) anywhere in the
registry apart from in the services section, where is it
stored.

In Win2000 and NT you can add a service using such
programmes as Install shield or SRVANY.exe and then
change the image path to use the dllhost.exe and the
processid but it gives the error "The service did not
respond to the start or control request in a timely
fashion. 1053." when you try to run it .

Has anyone had any success in adding a dll as a service in
win2000 or NT
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top