When you write an Analysis Extension, you must implement and export an _EFN_Analyze function. When the !analyze debugger command runs, it calls your _EFN_Analyze so that you can participate in the analysis of a bug check or exception.
HRESULT _EFN_Analyze( _In_ PDEBUG_CLIENT4 Client, _In_ FA_EXTENSION_PLUGIN_PHASE CallPhase, _In_ PDEBUG_FAILURE_ANALYSIS2 pAnalysis );
- Client [in]
A pointer to an IDebugClient4 interface.
- CallPhase [in]
A value in the FA_EXTENSION_PLUGIN_PHASE enumeration that specifies which phase of the analysis is currently in progress. Analysis phases include initialization, stack analysis, prebucketing, and post bucketing.
- pAnalysis [in]
A pointer to a IDebugFailureAnalysis2 interface.
If the function succeeds, return S_OK.