locked
Why WTSEnumerateSessionsEx() fail only in windows xp, when terminal service stop ? RRS feed

  • Question

  • Hello Could i give my questions?


    I used 'WTS_CURRENT_SERVER_HANDLE' for the first parameter WTSEnumerateSessionsEx()

    I know that the parameter is the handle of RD session host Server on that the application is running.

    when I stoped Terminal Service( or Remote Desktop Service ) and then called WTSEnumerateSessionsEx(),
    - In Windows Xp
      WTSEnumerateSessionsEx()' s error code is 'RPC_S_INVALID_BINDING' (using GetLastError())
    - In Windows Vista or Windows 7
      WTSEnumerateSessionsEx() succeed.

    and
    when I stoped Terminal Service( or Remote Desktop Service ).
    - In Windows Xp (professional)
      fast user switching fail
    - In Windows Vista or Windows 7
      fast user switching succeed

    I don't know why there is difference.

    thank you for reading my question.



    Thursday, May 26, 2011 7:53 AM

Answers