Solved

Query Service help experts!!

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error on moodle after upgrade 3 149
conditional code and condition difference 9 85
ShiftLeft challenge 21 89
sumHeights  challenge 17 79
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 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