Windbg - dumping system .Guid

When i use! do in windbg for the System.Guid object, I got a list of fields for this GUID object. How can I find out what the value of this GUID (string representation) is?

+6
source share
2 answers

Use dt nt!_GUID <@ofobject> +4

+8
source

The manual is stored as ints and bytes. A string representation is created when ToString () is called. You cannot call methods if you are analyzing a dead dump file. Therefore, it is best to copy the values ​​and use this constructor and ToString () in a new console application or in 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 this once.

0
source

Source: https://habr.com/ru/post/897547/