IDebugStackFrame2:: EnumProperties

创建特性的枚举数与堆栈帧,例如局部变量。

HRESULT EnumProperties ( 
   DEBUGPROP_INFO_FLAGS      dwFieldSpec,
   UINT                      nRadix,
   REFIID                    refiid,
   DWORD                     dwTimeout,
   ULONG*                    pcelt,
   IEnumDebugPropertyInfo2** ppEnum
);
int EnumProperties ( 
   enum_DEBUGPROP_INFO_FLAGS   dwFieldSpec,
   uint                        nRadix,
   ref Guid                    refiid,
   uint                        dwTimeout,
   out uint                    pcelt,
   out IEnumDebugPropertyInfo2 ppEnum
);

参数

  • dwFieldSpec
    [in] 标志的组合从指定的 DEBUGPROP_INFO_FLAGS 枚举在枚举的 DEBUG_PROPERTY_INFO 结构的哪些字段将填充。

  • nRadix
    [in] 格式化任何数值信息基数。

  • refiid
    [in] DEBUG_PROPERTY_INFO 结构将使用枚举筛选器的 GUID 选择,例如 guidFilterLocals。

  • dwTimeout
    [in] 最长时间,以毫秒为单位,在返回等待来自此方法。 使用 INFINITE 会无限期地等待。

  • pcelt
    [out] 返回枚举的属性数。 这与调用 IEnumDebugPropertyInfo2:: GetCount 方法。

  • ppEnum
    [out] 返回包含所需的属性的列表 IEnumDebugPropertyInfo2 对象。

返回值

如果成功,则返回; S_OK否则,返回错误代码。

备注

此方法允许将检索的所有选定的属性与次调用,所以它比按顺序调用 IDebugStackFrame2:: GetDebugPropertyIDebugProperty2:: EnumChildren 方法更快。

请参见

参考

IDebugStackFrame2

DEBUGPROP_INFO_FLAGS

IEnumDebugPropertyInfo2

IEnumDebugPropertyInfo2:: GetCount

IDebugStackFrame2:: GetDebugProperty

IDebugProperty2:: EnumChildren