共用方式為


IDebugClient6::SetEventContextCallbacks 方法 (dbgeng.h)

向這個客戶端註冊事件回呼物件。

語法

HRESULT SetEventContextCallbacks(
  [in, optional] PDEBUG_EVENT_CONTEXT_CALLBACKS Callbacks
);

參數

[in, optional] Callbacks

事件回呼對象的介面指標。

傳回值

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

此事件介面會取代使用 IDebugClient::SetEventCallbacks

要求

要求 價值
目標平臺 窗戶
標頭 dbgeng.h (include Dbgeng.h)

另請參閱

IDebugClient6

IDebugClient::SetEventCallbacks