CAccessToken::GetTerminalServicesSessionId

Call this method to get the Terminal Services Session ID associated with the CAccessToken object.

bool GetTerminalServicesSessionId(
   DWORD* pdwSessionId
) const throw(...);

Parameters

  • pdwSessionId
    The Terminal Services Session ID.

Return Value

Returns true on success, false on failure.

Requirements

Header: atlsecurity.h

See Also

Concepts

CAccessToken Class

CAccessToken Members