Welcome to MSDN Blogs Sign in | Join | Help

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

Published Thursday, May 08, 2008 11:04 PM by Jigar Mehta
Filed under:

Comments

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

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.

Thursday, May 08, 2008 1:37 PM by Koby Kahane
Anonymous comments are disabled
 
Page view tracker