Debugging Tools for Windows |
The WinDbgExtensionDllInit callback function is used to load and initialize the extension module.
VOID
WinDbgExtensionDllInit(
PWINDBG_EXTENSION_APIS64 lpExtensionApis
USHORT MajorVersion
USHORT MinorVersion
);
None
You must define this function in your code using the prototype above. Include wdbgext.h.
WinDbgExtensionDllInit is called by the debugger when the extension DLL is loaded.
It is recommended that you always use 64-bit pointers in your code, since the debugger will automatically resize these pointers when necessary. See 32-Bit Pointers and 64-Bit Pointers for details. However, if you choose to use 32-bit pointers, the first parameter of WinDbgExtensionDllInit will have the type PWINDBG_EXTENSION_APIS instead of PWINDBG_EXTENSION_APIS64.
For more details, see Using WdbgExts Extension Callbacks.