WTSQueryUserToken() failed on a remote desktop session
I need to get a user token on a session by calling WTSQueryUserToken(),but I found it failed on a remote desktop session, error code is 1008.This results in my application cannot run properly if it is launched onremote desktop. Any idea or solution? Thanks a lot!
February 29th, 2008 8:51am

Hi rajendersaini, Regarding the programming issues, I suggest submitting them to our MSDN forum. The support professionals at MSDN forum are better equipped to assist you. For your reference, Ive included the link of MSDN Forum: MSDN Forum http://forums.microsoft.com/msdn/default.aspx?siteid=1 In addition, Ive included the description of the Return Code 1008 for your reference: ============================================= The token query is for a session in which no user is logged-on. This occurs, for example, when the session is in the idle state or SessionId is zero. More Information: ============== WTSQueryUserToken Function http://msdn2.microsoft.com/en-us/library/aa383840(VS.85).aspx Hope it helps. Sincerely, Joson Zhou Microsoft Online Community Support
Free Windows Admin Tool Kit Click here and download it now
March 4th, 2008 10:12am

hi Joson Zhou Thanks for quick reply, will post my query to mentioned forum. -Rajender saini
March 4th, 2008 3:34pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics