IDebugControl3::SetExceptionFilterSecondCommand method

The SetExceptionFilterSecondCommand method sets the command that will be executed by the debugger engine on the second chance of a specified exception.

Syntax

HRESULT SetExceptionFilterSecondCommand(
  ULONG Index,
  PCSTR Command
);

Parameters

Index

Specifies the index of the exception filter whose second-chance command will be set. Index must not refer to the specific event filters as these are not exception filters and only exception events get a second chance. If Index refers to the default exception filter, the second-chance command is set for all exceptions that do not have an exception filter.

Command

Receives the second-chance command for the exception filter.

Return Value

This method may also return error values. See Return Values for more details.

Return code Description
S_OK
The method was successful.

Remarks

For more information about event filters, see Event Filters.

Requirements

   
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)

See Also

GetExceptionFilterSecondCommand

IDebugControl

IDebugControl2

IDebugControl3

SetEventFilterCommand

sx, sxd, sxe, sxi, sxn (Set Exceptions)