Ask the Expert

Differences between Windows NT 4.0 and Win2k services

I wrote a service (ATL COM) program that works under Windows NT 4.0. By calling 'progname /regserver' and 'progname /service.' I am able to see the program in the services window. However, when I try the same thing in Win2k, I see nothing at all. However, if I create a new dummy service and register it on Win2k, I see it just fine. Are there any differences between Windows NT 4.0 and Win2k when it comes to services?

Requires Free Membership to View

There are no relative differences between Windows NT and Win2k. My bet is that you have done something to your CServiceModule::RegisterServer which is not properly registering the service. Use the Platform SDK's WinDiff file differencing program to compare your code against the dummy AppWizard generated code. Also, with Win2k, you need to refresh the services display manually in whatever Management Console you are using to view the services list. Press F5 or right click and select Refresh to get the list updated.

This was first published in June 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: