Query Service , Help required!!!!
-
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 antiviral" 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 nameless)" 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
-
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 antiviral" 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 nameless)" 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
try to open the service SC_HANDLE OpenService( SC_HANDLE hSCManager, // handle to SCM database LPCTSTR lpServiceName, // service name DWORD dwDesiredAccess // access ); this function returns ERROR_INVALID_NAME ERROR_SERVICE_DOES_NOT_EXIST not sure which one exactly
greatest thing is to do wot others think you cant
suhredayan@omniquad.com>messenger :suhredayan@hotmail.com