Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Query Service , Help required!!!!

Query Service , Help required!!!!

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsondatabasehelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rohit dhamija 0
    wrote on last edited by
    #1

    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

    2 1 Reply Last reply
    0
    • R rohit dhamija 0

      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

      2 Offline
      2 Offline
      224917
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups