Share via


IDiaStackFrame::get_lVarInstanceLocation

Retrieves the location of the specified variable.

HRESULT get_lVarInstanceLocation(
   IDiaLVarInstance* pInstance,
   BOOL*             pfLocInRegister,
   DWORD*            pdwRegId,
   ULONGLONG*        pva
);

Parameters

  • pInstance
    [in] Instance of the local variable to get location of.

  • pfLocInRegister
    [out] Returns nonzero (TRUE) if the variable is stored in a register; otherwise, returns zero (FALSE) if variable is stored in memory.

  • pdwRegId
    [out] Returns the register index if the variable is stored in a register (see the CV_HREG_e enumeration for possible values). Returns CV_REG_NONE if the variable is not in a register.

  • pva
    [out] Returns the virtual address of the variable if it is stored in memory.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

See Also

Reference

IDiaStackFrame

CV_HREG_e