_EFN_GetManagedObjectName Function

Gets the name of a type using the provided managed object pointer.

Syntax

HRESULT _EFN_GetManagedObjectName(  
    [in]  PDEBUG_CLIENT  Client,  
    [in]  ULONG64        objAddr,  
    [out] __out_ecount(cbName) PSTR szName,  
    [out] ULONG          cbName  
);  

Parameters

Client
[in] A pointer to the debug client.

objAddr
[in] A managed object pointer.

szName
[out] The name of the type.

cbName
[out] The number of characters available in the string buffer.

Remarks

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: See System Requirements.

Header: SOS_Stacktrace.h

.NET Framework Versions: Available since 2.0

See Also

Debugging Global Static Functions