user10101
user10101

Reputation: 1764

Getting the type by address in WinDbg

Suppose I have an address of some object placed in unmanaged heap. How can I get the C++ type of the object in WinDbg?

Upvotes: 1

Views: 2989

Answers (1)

Steve Johnson
Steve Johnson

Reputation: 3017

This isn't foolproof, but it often works.

  1. Run !heap -x ADDR. This will provide the user pointer.
  2. Run dps USERPOINTER. For a C++ object, this will usually give you a vtable symbol name.

Upvotes: 4

Related Questions