Ejemplo n.º 1
0
        public uint GetPointerSize()
        {
            SetClientInstance();
            int hr = _control.IsPointer64Bit();

            if (hr == 0)
            {
                return(8);
            }
            if (hr == 1)
            {
                return(4);
            }

            throw new ClrDiagnosticsException($"IsPointer64Bit failed, HRESULT: {hr:x8}", ClrDiagnosticsExceptionKind.DebuggerError, hr);
        }
Ejemplo n.º 2
0
        public uint GetPointerSize()
        {
            SetClientInstance();
            int hr = m_control.IsPointer64Bit();

            if (hr == 0)
            {
                return(8);
            }
            else if (hr == 1)
            {
                return(4);
            }

            throw new ClrDiagnosticsException(String.Format("IsPointer64Bit failed: {0:x8}", hr), ClrDiagnosticsException.HR.DebuggerError);
        }