display 'nth' element of array in locals windows

How do I display the nth element in an array. I have a
TOKEN_GROUPS_STRUCT and I’d like to see the 3rd element (PISID) in it.
The line in the locals window of Windbg shows:

struct _SID_AND_ATTRIBUTES [1]

In the value field. I tried modifying the “[1]” to “[3]”, but it wont
take.

Please advise.

Thanks

Add “_SID_AND_ATTRIBUTES[3]” to the Watch Window.

…John

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.com
Sent: Friday, October 18, 2002 1:19 PM
To: Kernel Debugging Interest List
Subject: [windbg] display ‘nth’ element of array in locals windows

How do I display the nth element in an array. I have a
TOKEN_GROUPS_STRUCT and I’d like to see the 3rd element (PISID) in it.
The line in the locals window of Windbg shows:

struct _SID_AND_ATTRIBUTES [1]

In the value field. I tried modifying the “[1]” to “[3]”, but it wont
take.

Please advise.

Thanks


You are currently subscribed to windbg as: xxxxx@msn.com
To unsubscribe send a blank email to %%email.unsub%%

Thanks for the prompt reply! That works!

Thanks again - Greg