Microsoft SDK for Java

IRemoteStackFrame::
GetPC

The GetPC method of the IRemoteStackFrame interface returns the bytecode offset from the start of the method executing in this stack frame of the next instruction to be executed. In non-topmost stack frames, GetPC returns the bytecode offset of the invoke instruction that is being executed, not the bytecode offset of the return location.

Syntax

HRESULT GetPC(ULONG *offPC)

Parameters

[out] *offPC Returns the instruction’s bytecode offset. 

Return Value

S_OK Success. 

E_FAIL Failure.

E_NOLONGERVALID The underlying stack frame is no longer valid.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.