Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Query Service help experts!!

Posted on 2004-03-26
2
Medium Priority
?
227 Views
Last Modified: 2013-11-20
Dear All,

I am developing an application for Windows 2000 NTFS file systems using VC++ MFC version 6.0. I need to query whether "Norton antivirus" is installed on a system or not.

We know that Norton Antivirus runs as a service. So to find its existence I suppose, I should query whether the service for norton exists of not in the system. So my query is that
"Is there any API provided to know existence of a service given its name. (in this case, navapscv is the name of the service, also we know its rest of parameters like display name,etc)"

Or, is there any alternate way to accomplish the same task ?

Please let me know if you need further clarification in this regards,

Regards,
Rohit
0
Comment
Question by:rohitdivas
2 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 150 total points
ID: 10685343
Use OpenService function. You need also OpenSCManager to get handler of service manager.
0
 
LVL 45

Expert Comment

by:AndyAinscow
ID: 10685377
Have a look in the registry
HKLM\software\microsoft\windows\current version\run
see if there is a key for norton anti-virus to be started when the OP sytem is started.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question