开发者

Windbg - dumping System.Guid

When I use !do in windbg for System.Guid object I got list of fields for that GUID object. How can I see what is value of thi开发者_如何学Pythons GUID (string representation)?


Use dt nt!_GUID <@ofobject> +4


Guid is stored as ints and bytes. String representation is created when you call ToString(). You can not call methods if you analyzing a 'dead' dump file. So your best bet is to just copy the values and use this constructor and ToString() in a new console app or in a unit test:

public Guid(
    uint a,
    ushort b,
    ushort c,
    byte d,
    byte e,
    byte f,
    byte g,
    byte h,
    byte i,
    byte j,
    byte k
)

Not the answer you were looking for probably. Hope you only need to do it once.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜