Ask the Expert

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?

    Requires Free Membership to View

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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: