Debugging Tools for Windows |
The GetExceptionFilterSecondCommand and GetExceptionFilterSecondCommandWide methods return the command that will be executed by the debugger engine upon the second chance of a specified exception.
HRESULT
IDebugControl::GetExceptionFilterSecondCommand(
IN ULONG Index,
OUT PSTR Buffer,
IN ULONG BufferSize,
OUT OPTIONAL PULONG CommandSize
);
HRESULT
IDebugControl3::GetExceptionFilterSecondCommandWide(
IN ULONG Index,
OUT PWSTR Buffer,
IN ULONG BufferSize,
OUT OPTIONAL PULONG CommandSize
);
#ifdef UNICODE
#define GetExceptionFilterSecondCommandT GetExceptionFilterSecondCommandWide
#else
#define GetExceptionFilterSecondCommandT GetExceptionFilterSecondCommand
#endif
This method may also return error values. See Return Values for more details.
GetExceptionFilterSecondCommand is available in all versions of IDebugControl. GetExceptionFilterSecondCommandWide is available in IDebugControl3 and later versions.
Only exception filters support a second-chance command. If Index refers to a specific event filter, the command returned to Buffer will be empty. The returned command will also be empty if no second-chance command has been set for the specified exception.
For more information about event filters, see Event Filters.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.
sx, sxd, sxe, sxi, sxn (Set Exceptions), SetExceptionFilterSecondCommand, GetEventFilterCommand