Solved

Query Service help experts!!

Posted on 2004-03-26
2
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 48

Accepted Solution

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

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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

623 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