Debugging Tools for Windows |
The GetWindbgExtensionApis64 method returns a structure that facilitates using the WdbgExts API.
HRESULT
IDebugControl::GetWindbgExtensionApis64(
IN OUT WINDBG_EXTENSION_APIS64 * Api
);
This method may also return other error values. See Return Values for more details.
GetWindbgExtensionApis64 is available in all versions of IDebugControl.
If you are including Wdbgexts.h in your extension code, you should call this method during the initialization of the extension DLL (see DebugExtensionInitialize).
Many WdbgExts functions are really macros. To ensure that these macros work correctly, the structure received by the Api parameter should be stored in a global variable named ExtensionApis.
The WINDBG_EXTENSION_APIS64 structure returned by this method serves the same purpose as the one provided to the callback function WinDbgExtensionDllInit (used by WdbgExts extensions).
For a list of the functions provided by the WdbgExts API, see WdbgExts Functions.
Headers: Defined in Dbgeng.h. WINDBG_EXTENSION_APIS64 is defined in Wdbgexts.h. Include Dbgeng.h and Wdbgexts.h.