Solved

Query Service help experts!!

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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 …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

840 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