Compartilhar via


_EFN_GetManagedObjectFieldInfo Function

Gets the offset from the start of an object to a field and the field's value, using the provided object pointer and field name.

HRESULT _EFN_GetManagedObjectFieldInfo(
    [in]  PDEBUG_CLIENT Client,
    [in]  ULONG64       objAddr,
    [in]  __out_ecount (mdNameLen) PSTR szFieldName,
    [out] PULONG64      pValue,
    [out] PULONG        pOffset
);

Parameters

  • Client
    [in] A pointer to the debug client.

  • objAddr
    [in] A managed object pointer.

  • szFieldName
    [in] A managed object pointer to the field name.

  • pValue
    [out] The field value. This parameter can be null.

  • pOffset
    [out] The offset from objAddr to the field. This parameter can be null.

Remarks

If the offset is 0, no offset is written.

If there is no managed code on the thread currently in context, the function returns HRESULT SOS_E_NOMANAGEDCODE with a facility value of 0xa0 and an error code of 0x1000.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: SOS_Stacktrace.h

.NET Framework Version: 2.0

See Also

Concepts

Debugging Global Static Functions