Ejemplo n.º 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]);
        }
Ejemplo n.º 2
0
 public int GetDebugReason(enum_DEBUG_REASON[] pReason)
 {
   throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// This method returns the reason that the process was launched for debugging.
 /// </summary>
 /// <param name="pReason">Returns a value from the DEBUG_REASON enumeration.</param>
 /// <returns>If successful, returns S_OK; otherwise, returns error code.</returns>
 public virtual int GetDebugReason( enum_DEBUG_REASON[] pReason )
 {
     Logger.Debug( string.Empty );
     return VSConstants.E_NOTIMPL;
 }
Ejemplo n.º 4
0
 public int GetDebugReason(enum_DEBUG_REASON[] pReason)
 {
     DebugHelper.TraceEnteringMethod();
     throw new NotImplementedException();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Gets the reason that the process was launched for debugging.
 /// </summary>
 int IDebugProcess3.GetDebugReason(enum_DEBUG_REASON[] pReason)
 {
     DLog.Debug(DContext.VSDebuggerComCall, "IDebugProcess2.GetDebugReason");
     pReason[0] = enum_DEBUG_REASON.DEBUG_REASON_USER_LAUNCHED;
     return VSConstants.S_OK;
 }