次の方法で共有


How can I check the details about Process Token while debugging in Visual Studio?

Visual Studio 2005 onwards, watch window has got a pseudo register for investigating the details about process token. So, all you have to do is, just start debugging and write "$user" in watch window,

05-08-2008 (223012)

Its interesting to look at expanded view of privileges and groups sometimes!

Stay tuned.. Wave

Comments

  • Anonymous
    May 08, 2008
    Heh, must not be a commonly used feature if the misspelling of the LUID field as "Loggin Id" instead of "Login Id" made it into 2008 RTM. That aside, a great feature to take the mystery out of tokens and impersonation. Windbg provides a similar capability in the form of the !threadtoken extension command.