IDebugControl::SetEventFilterCommand method (dbgeng.h)

The SetEventFilterCommand method sets a debugger command for the engine to execute when a specified event occurs.

Syntax

HRESULT SetEventFilterCommand(
  [in] ULONG Index,
  [in] PCSTR Command
);

Parameters

[in] Index

Specifies the index of the event filter. Index can take any value between zero and one less than the total number of event filters returned by GetNumberEventFilters (inclusive). For more information about the index of the filters, see Index and Exception Code.

[in] Command

Specifies the debugger command for the engine to execute when the event occurs.

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

GetEventFilterCommand

IDebugControl

IDebugControl2

IDebugControl3

SetExceptionFilterSecondCommand

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