예제 #1
0
        public static enum_DEBUG_REASON GetReason(this IDebugProcess3 process)
        {
            if (process == null)
            {
                return(enum_DEBUG_REASON.DEBUG_REASON_ERROR);
            }

            var reason = new enum_DEBUG_REASON[1];

            if (process.GetDebugReason(reason) != VSConstants.S_OK)
            {
                return(enum_DEBUG_REASON.DEBUG_REASON_ERROR);
            }

            return(reason[0]);
        }
예제 #2
0
        public static enum_DEBUG_REASON GetReason(this IDebugProcess3 process)
        {
            if (process == null)
            {
                return(enum_DEBUG_REASON.DEBUG_REASON_ERROR);
            }

            uint reason;

            if (process.GetDebugReason(out reason) != VSConstants.S_OK)
            {
                return(enum_DEBUG_REASON.DEBUG_REASON_ERROR);
            }

            return((enum_DEBUG_REASON)reason);
        }