共用方式為


IDebugHostFunctionIntrospection::EnumerateLocalsDetails 方法 (dbgmodel.h)

EnumerateLocalsDetails 方法會列舉函式內所有局部變數和自變數的相關信息集。 它不會列舉指定函式內嵌的任何局部變數和函式自變數。 若要列舉內嵌函式,請使用 IDebugHostFunctionIntrospection2 介面上的 EnumerateLocalsDetailsEx 方法

語法

HRESULT EnumerateLocalsDetails(
  IDebugHostFunctionLocalDetailsEnumerator **localsEnum
);

參數

localsEnum

指標變數的指標,會接收列舉局部變數詳細數據 IDebugHostFunctionLocalDetailsEnumerator 介面。

傳回值

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

要求

要求 價值
標頭 dbgmodel.h

另請參閱

IDebugHostFunctionIntrospection 介面