How to Write a WinDbg Extension
一个很优秀的扩展编写的工程
https://github.com/0cch/0cchext/tree/master?tab=readme-ov-file
1 // 定义一个扩展类 2 class EXT_CLASS : public ExtExtension 3 { 4 public: 5 EXT_COMMAND_METHOD(a64); /* Defined a command method*/ 6 } 7 8 EXT_DECLARE_GLOBALS(); /* Must appear once */ 9 10 // 定义一个命令 11 EXT_COMMAND(a64, /* Command */ 12 "Input x64 asm code.", /* Comments */ 13 "{;ed,r;Address;Begin address}") /* Argument*/ 14 { 15 }
官方文档参考
https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/engextcpp-extension-libraries
Microsoft Sample Code
WinDbg(x64)\sdk\samples