共用方式為


IDebugHostContextAlternator 介面 (dbgmodel.h)

這個 dbgmodel.h 介面允許變更調試程式 (IDebugHostContext) 的「目前」內容(內部狀態)。

內容變更可以是完整變更/參數(例如變更目前的進程/線程/etx。正在偵錯)或暫時切換。 調試程式內部狀態的暫時變更/切換可能會以不一致的狀態改變調試程式,而且除非還原變更/切換,否則所有調試程式功能都無法使用。

遺產

IDebugHostContextAlternator 繼承自 IUnknown。

方法

IDebugHostContextAlternator 介面具有這些方法。

 
IDebugHostContextAlternator::AddRef

AddRef 方法會遞增 對象的參考計數。
IDebugHostContextAlternator::QueryInterface

QueryInterface 方法會查詢目前內容上特定介面。
IDebugHostContextAlternator::Release

Release 方法會遞減 物件上介面的參考計數。
IDebugHostContextAlternator::SwitchBack

SwitchBack 方法會將調試程式引擎內容還原為其先前的狀態,並還原 SwitchTo 方法所做的任何暫時內容變更。
IDebugHostContextAlternator::SwitchTo

SwitchTo 方法會變更或將調試程式引擎內容切換至從中擷取 IDebugHostContextControl 的 IDebugHostContext。

要求

要求 價值
標頭 dbgmodel.h

另請參閱

調試程序數據模型C++概觀