Results 1 to 2 of 2

Thread: How to check the current status of a service

  1. #1
    Join Date
    Oct 2006
    Location
    Bangalore
    Posts
    32
    Qt products
    Qt4
    Platforms
    Windows

    Question How to check the current status of a service

    Hi,

    How can I check the status of the particular service using Qt?

    Basically, I want to find out whether some service say "My Service" is running currently in the system or not. If yes, I need to enable some options in my GUI.

    Note that I can not make use of MFC routines as I am porting the code from MFC to Qt and the project is cross-platform.

    Any information would be helpful.

    /Ankitha Varsha

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to check the current status of a service

    When you are talking about system level things, your code does become system dependent.
    It is service in Windows and daemons in Linux. You will need #ifdef to code for each platform. How do you think Qt does it ? You can dig into the Qt source code and see yourself. You get a better idea.

Similar Threads

  1. Qt designer plugin errors on OSX Leopard
    By mpotocnik in forum Qt Tools
    Replies: 10
    Last Post: 21st January 2008, 09:45
  2. Distributing QT application for Mac OS
    By mb0 in forum Qt Programming
    Replies: 1
    Last Post: 31st May 2007, 18:59
  3. Replies: 15
    Last Post: 21st April 2007, 17:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.