Q

How do you install and uninstall ALT Services in the services control panel?

How do you install and uninstall ALT Services in the services control panel? I have created an ATL Service and put some code in the run procedure but when I start the service from the control panel it is not calling run apparently. Also is there a way for a ALT service to receive parameter from the command line?
ATL should already be doing all of this for you in the generated WinMain. To register an ATL server, run your program from a CMD box with "-Service" as the command line. ATL will take care of getting everything register with the SCM (Service Control Manager). To run the ATL project as a regular COM local server for debugging purposes, pass "-RegServer" on the command line. To unregister, pass "-UnRegServer"
This was first published in October 2001

Dig deeper on Microsoft Systems and Network Troubleshooting

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close