Muokkaa

Jaa


ICorDebugNativeFrame2::GetStackParameterSize Method

Returns the cumulative size of the parameters on the stack on x86 operating systems.

Syntax

HRESULT GetStackParameterSize([out] ULONG32 * pSize)

Parameters

pSize [out] A pointer to the cumulative size of the parameters on the stack.

Return Value

This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.

HRESULT Description
S_OK The stack size was successfully returned.
S_FALSE GetStackParameterSize was called on a non-x86 platform.
E_FAIL The size of the parameters could not be returned.
E_INVALIDARG pSize Is null.

Exceptions

Remarks

The ICorDebugStackWalk methods do not adjust the stack pointer for parameters that are pushed on the stack. Instead, you can use the value returned by GetStackParameterSize to adjust the stack pointer to seed a native unwinder, which does adjust for the parameters.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4

See also