IDebugControl4::SetExceptionFilterSecondCommandWide method (dbgeng.h)

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

Syntax

HRESULT SetExceptionFilterSecondCommandWide(
  [in] ULONG  Index,
  [in] PCWSTR Command
);

Parameters

[in] 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.

[in] 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

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

See also

GetExceptionFilterSecondCommand

IDebugControl4

SetEventFilterCommand

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