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

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.