I can dump types from an arbitrary module using
dt modulename!type
In some cases I saw e.g.
dt nt!_TEB
(and it works) although the module is called ntdll
:
0:001> lm m nt
start end module name
0:001> lm m ntdll
start end module name
00000000`76e00000 00000000`76fa9000 ntdll (pdb symbols) d:\...\ntdll.pdb
As you can see above, ntdll
cannot always be replaced by nt
.
Is there a difference in dt nt!type
versus dt ntdll!type
or can it always be used in its shortcut form? I'm looking for a credible answer with sources, not just "Yes".
I have tried:
- reading WinDbg help
.hh dt
Bonus questions if you have some background knowledge you'd like to share:
- are there other commands where
nt
can be used instead ofntdll
or is thisdt
-specific? - are there other modules which have a shortcut form?
- where does this come from (e.g. is there some historical background for this behavior)?