Solved

Query Service help experts!!

Posted on 2004-03-26
2
181 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 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now