How to find desktop name(User logged in) of Vista RRS feed

  • Question

  • Hi All,

    I have service code to get name of desktop.(Using GetUserObjectInformation) But its failed in vista os.

    My aim is to know whether user is logged in or not.

    So i check  logonUI.exe , if its
    not running , i assume  User is Logged on (Default desktop) otherwise i assume its winlogon desktop.

    my approach is correct or not.

    if any other way let me know.

    Any help will be appreciated.

    Thursday, September 18, 2008 2:15 PM

All replies

  • I don't want to know how you used GetUserObjectInformation to find out if a user was logged on or not...

    Using heuristics like this is bound to be unreliable and could break at any time.

    You're relying on whatever assumptions you've made about how the system works.


    Anyway, I suggest you use the WTS APIs to check the state of a session.


    Sunday, September 28, 2008 8:55 PM