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. Question about controlling Windows Services

Question about controlling Windows Services

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionhelp
3 Posts 3 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.
  • S Offline
    S Offline
    softgrid
    wrote on last edited by
    #1

    The current header file i have (Winsvc.h) neither contain a definition of the structure "SERVICE_STATUS_PROCESS" nor the function "QueryServiceStatusEx(...)". I am using Visual C++ 6.0. Can any body help me with that? Best Regards, Simos

    N B 2 Replies Last reply
    0
    • S softgrid

      The current header file i have (Winsvc.h) neither contain a definition of the structure "SERVICE_STATUS_PROCESS" nor the function "QueryServiceStatusEx(...)". I am using Visual C++ 6.0. Can any body help me with that? Best Regards, Simos

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      softgrid wrote:

      The current header file i have (Winsvc.h) neither contain a definition of the structure "SERVICE_STATUS_PROCESS" nor the function "QueryServiceStatusEx(...)". I am using Visual C++ 6.0. Can any body help me with that?

      Well the documentation says this...

      Requirements
      Windows NT/2000/XP: Included in Windows 2000 and later.
      Header: Declared in Winsvc.h; include Windows.h.


      Nibu thomas A Developer Programming tips[^]  My site[^]

      1 Reply Last reply
      0
      • S softgrid

        The current header file i have (Winsvc.h) neither contain a definition of the structure "SERVICE_STATUS_PROCESS" nor the function "QueryServiceStatusEx(...)". I am using Visual C++ 6.0. Can any body help me with that? Best Regards, Simos

        B Offline
        B Offline
        Blake Miller
        wrote on last edited by
        #3

        Download and install a NEWER version of the Platform SDK and make VC point at the new libs and headers - your problem will be solved. The original VC++ headers and libs were out before some of these newer functions, so it is not found in the WinSvc.H that you posess. If you DO find it in your header, check for it bracketed by a WIN32 definition. You need to do something like #define _WIN32 0x0501 or some such value to make it visible. They did this so you could target backlevel versions of OS with a build and be warned if you were 'linking' to functions that did not exist at the time.

        Any sufficiently gross incompetence is nearly indistinguishable from malice.

        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