Results 1 to 2 of 2

Thread: How to detect if application was executed through RDP / RDC?

  1. #1
    Join Date
    Jul 2015
    Posts
    87
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default How to detect if application was executed through RDP / RDC?

    Hi,
    is it possible to detect if my application was started through a Remote Desktop Session?
    E.g. if a software was installed on a server. I want to know if my application was
    started directly on the server or if it was started from a workstation that has an active
    RDP session to the server.
    Thx

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to detect if application was executed through RDP / RDC?

    We are testing system variable CLIENTNAME. If it is empty or equal CONSOLE application is working localy.
    Otherwise, it is RDP session and CLIENTNAME is equal name of local computer.

Similar Threads

  1. Can QT application detect which type of connection is used?
    By satya@sipl in forum Qt Programming
    Replies: 1
    Last Post: 1st December 2012, 13:16
  2. Detect application idle
    By chris_helloworld in forum Qt Programming
    Replies: 1
    Last Post: 14th April 2011, 16:49
  3. detect which layer of the screen an application is on
    By solartic in forum Qt Programming
    Replies: 2
    Last Post: 22nd July 2009, 17:05
  4. How to detect a running application
    By yogesh in forum Qt Programming
    Replies: 4
    Last Post: 20th February 2009, 10:22
  5. Replies: 5
    Last Post: 9th June 2008, 11:21

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
  •  
Qt is a trademark of The Qt Company.