Esempio n. 1
0
        public static EXCEPTION_INFO150[] ToArray(this IEnumDebugExceptionInfo150 enumerator)
        {
            uint num   = 0;
            uint count = default(uint);

            enumerator.GetCount(out count);
            var array = (EXCEPTION_INFO150[])new EXCEPTION_INFO150[count];

            enumerator.Next(count, array, ref num);
            return(array);
        }
Esempio n. 2
0
        EXCEPTION_INFO150[] GetSetExceptions(EXCEPTION_INFO150 parent)
        {
            IEnumDebugExceptionInfo150 enumerator = default(IEnumDebugExceptionInfo150);

            if (Session.EnumSetExceptions(parent.guidType, out enumerator) == 0 && enumerator != null)
            {
                return(enumerator.ToArray());
            }
            else
            {
                return(new EXCEPTION_INFO150[] { });
            }
        }
Esempio n. 3
0
        EXCEPTION_INFO150[] GetDefaultExceptions(EXCEPTION_INFO150?parent)
        {
            var parentArray = (!parent.HasValue) ? null : new EXCEPTION_INFO150[]
            {
                parent.Value
            };

            IEnumDebugExceptionInfo150 val = default(IEnumDebugExceptionInfo150);

            if (Session.EnumDefaultExceptions(parentArray, out val) == 0 && val != null)
            {
                return(val.ToArray());
            }
            else
            {
                return(new EXCEPTION_INFO150[] { });
            }
        }
Esempio n. 4
0
        private EXCEPTION_INFO150[] GetExceptions(EXCEPTION_INFO150?parent, IDebugSession150 session)
        {
            uint num = 0u;

            EXCEPTION_INFO150[] array = (EXCEPTION_INFO150[])((!parent.HasValue) ? null : new EXCEPTION_INFO150[1]
            {
                parent.Value
            });
            IEnumDebugExceptionInfo150 val = default(IEnumDebugExceptionInfo150);

            EXCEPTION_INFO150[] array2;
            if (session.EnumDefaultExceptions(array, out val) == 0 && val != null)
            {
                uint num2 = default(uint);
                val.GetCount(out num2);
                array2 = (EXCEPTION_INFO150[])new EXCEPTION_INFO150[num2];
                val.Next(num2, array2, ref num);
            }
            else
            {
                array2 = (EXCEPTION_INFO150[])new EXCEPTION_INFO150[0];
            }
            return(array2);
        }
Esempio n. 5
0
 public int Clone(out IEnumDebugExceptionInfo150 ppEnum)
 {
     ppEnum = null;
     return(-2147467263);
 }