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 last published in October 2001

Dig Deeper on Microsoft Systems and Network Troubleshooting

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close