예제 #1
0
 // Gets the name of the process hosting a program.
 int IDebugProgramNode2.GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string processName)
 {
     // Since we are using default transport and don't want to customize the process name, this method doesn't need
     // to be implemented.
     processName = null;
     return(VSConstants.E_NOTIMPL);
 }
예제 #2
0
 public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
 {
     DebugHelper.TraceEnteringMethod();
     pbstrHostName = null;
     _process.StartDebugging();
     return VSConstants.S_OK;
 }
예제 #3
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
        {
            //
            // Gets the name of the process hosting the program.
            //

            LoggingUtils.PrintFunction();

            try
            {
                if (dwHostNameType == enum_GETHOSTNAME_TYPE.GHN_FRIENDLY_NAME)
                {
                    LoggingUtils.RequireOk(DebugProcess.GetName(enum_GETNAME_TYPE.GN_MONIKERNAME, out pbstrHostName));
                }
                else if (dwHostNameType == enum_GETHOSTNAME_TYPE.GHN_FILE_NAME)
                {
                    LoggingUtils.RequireOk(DebugProcess.GetName(enum_GETNAME_TYPE.GN_FILENAME, out pbstrHostName));
                }
                else
                {
                    throw new NotImplementedException();
                }

                return(Constants.S_OK);
            }
            catch (Exception e)
            {
                LoggingUtils.HandleException(e);

                pbstrHostName = string.Empty;

                return(Constants.E_FAIL);
            }
        }
예제 #4
0
 public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
 {
     DebugHelper.TraceEnteringMethod();
     pbstrHostName = null;
     _process.StartDebugging();
     return(VSConstants.S_OK);
 }
예제 #5
0
 // Gets the name of the process hosting a program.
 int IDebugProgramNode2.GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string processName)
 {
     // Since we are using default transport and don't want to customize the process name, this method doesn't need
     // to be implemented.
     processName = null;
     return Constants.E_NOTIMPL;
 }
예제 #6
0
 int IDebugProgramNode2.GetHostName(
     enum_GETHOSTNAME_TYPE dwHostNameType,
     out string pbstrHostName)
 {
     pbstrHostName = string.Empty;
     return(VSConstants.E_NOTIMPL);
 }
예제 #7
0
 /// <summary>
 /// Gets the name of the process hosting a program. (http://msdn.microsoft.com/en-us/library/bb145135.aspx)
 /// </summary>
 /// <param name="dwHostNameType"> A value from the GETHOSTNAME_TYPE enumeration that specifies the type of name to return. </param>
 /// <param name="processName"> Returns the name of the hosting process. </param>
 /// <returns> VSConstants.S_OK. </returns>
 public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string processName)
 {
     if (dwHostNameType == enum_GETHOSTNAME_TYPE.GHN_FILE_NAME)
     {
         processName = "(BB-pid = " + m_programID + ") " + m_exePath;
     }
     else
     {
         processName = m_programName;
     }
     return(VSConstants.S_OK);
 }
        public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
        {
            if (_inGetHostName)
            {
                pbstrHostName = null;
                return(VSConstants.E_FAIL);
            }

            try
            {
                _inGetHostName = true;
                return(_process.GetName((enum_GETNAME_TYPE)dwHostNameType, out pbstrHostName));
            }
            finally
            {
                _inGetHostName = false;
            }
        }
예제 #9
0
        /// <summary>
        /// Gets the name of the process hosting the program.
        /// </summary>
        public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
        {
            DLog.Debug(DContext.VSDebuggerComCall, "IDebugProgramNode2.GetHostName");
            switch (dwHostNameType)
            {
            case enum_GETHOSTNAME_TYPE.GHN_FILE_NAME:
                pbstrHostName = apkPath;
                break;

            case enum_GETHOSTNAME_TYPE.GHN_FRIENDLY_NAME:
                pbstrHostName = Path.GetFileName(apkPath);
                break;

            default:
                pbstrHostName = null;
                return(VSConstants.E_INVALIDARG);
            }
            return(VSConstants.S_OK);
        }
예제 #10
0
 public int GetHostName(enum_GETHOSTNAME_TYPE hostNameType, out string hostName)
 {
     hostName = null;
     return(VSConstants.E_NOTIMPL);
 }
예제 #11
0
 public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
 {
     Log.Debug("ScriptProgramNode: Entering GetHostName");
     pbstrHostName = null;
     return(VSConstants.E_NOTIMPL);
 }
예제 #12
0
 // Token: 0x0600018F RID: 399 RVA: 0x00006225 File Offset: 0x00004425
 public int GetHostName(enum_GETHOSTNAME_TYPE host_name_type, out string process_name)
 {
     process_name = this.name;
     return(0);
 }
예제 #13
0
 int IDebugProgramNode2.GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string processName)
 {
     // We are using default transport and don't want to customize the process name
     processName = null;
     return(VSConstants.E_NOTIMPL);
 }
예제 #14
0
 // Gets the name of the process hosting a program.
 int IDebugProgramNode2.GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string processName)
 {
     //??            // Since we are using default transport and don't want to customize the process name, this method doesn't need
     //??            // to be implemented.
     //            processName = null;
     //            return VSConstants.E_NOTIMPL;
     if (dwHostNameType == enum_GETHOSTNAME_TYPE.GHN_FILE_NAME)
     //                processName = m_exePath;
         processName = "(BB-pid = " + m_programID + ") " + m_exePath;
     else
         processName = m_programName;
     return VSConstants.S_OK;
 }
예제 #15
0
 public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
 {
     Log.Debug("ScriptProgramNode: Entering GetHostName");
     pbstrHostName = null;
     return VSConstants.E_NOTIMPL;
 }
예제 #16
0
 /// <summary>
 /// Gets the name of the process hosting the program.
 /// </summary>
 /// <param name="dwHostNameType">A value from the GETHOSTNAME_TYPE enumeration that specifies the type of name to return.</param>
 /// <param name="pbstrHostName">Returns the name of the hosting process.</param>
 /// <returns>If successful, returns S_OK; otherwise, returns an error code.</returns>
 public virtual int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
 {
     Logger.Debug(string.Empty);
     pbstrHostName = null;
     return(VSConstants.E_NOTIMPL);
 }
예제 #17
0
 /// <summary>
 /// Gets the name of the process hosting the program.
 /// </summary>
 /// <param name="dwHostNameType">A value from the GETHOSTNAME_TYPE enumeration that specifies the type of name to return.</param>
 /// <param name="pbstrHostName">Returns the name of the hosting process.</param>
 /// <returns>If successful, returns S_OK; otherwise, returns an error code.</returns>
 public virtual int GetHostName( enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName )
 {
     Logger.Debug( string.Empty );
     pbstrHostName = null;
     return VSConstants.E_NOTIMPL;
 }
예제 #18
0
 int IDebugProgramNode2.GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
 {
     Debug.WriteLine("AD7ProgramNode: Entering GetHostName");
     pbstrHostName = null;
     return(VSConstants.E_NOTIMPL);
 }
예제 #19
0
 /// <summary>
 ///     Gets the name of the process hosting a program.
 /// </summary>
 /// <param name="hostNameType">Type of the host name.</param>
 /// <param name="hostName">Name of the host.</param>
 /// <returns>If successful, returns S_OK; otherwise, returns an error code.</returns>
 public int GetHostName(enum_GETHOSTNAME_TYPE hostNameType, out string hostName)
 {
     hostName = null;
     return(S_OK);
 }
예제 #20
0
 /// <summary>
 /// Gets the name of the process hosting the program.
 /// </summary>
 public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
 {
     DLog.Debug(DContext.VSDebuggerComCall, "IDebugProgramNode2.GetHostName");
     switch (dwHostNameType)
     {
         case enum_GETHOSTNAME_TYPE.GHN_FILE_NAME:
             pbstrHostName = apkPath;
             break;
         case enum_GETHOSTNAME_TYPE.GHN_FRIENDLY_NAME:
             pbstrHostName = Path.GetFileName(apkPath);
             break;
         default:
             pbstrHostName = null;
             return VSConstants.E_INVALIDARG;
     }
     return VSConstants.S_OK;
 }
 int Microsoft.VisualStudio.Debugger.Interop.IDebugProgramNode2.GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
 {
     pbstrHostName = null;
     return(COM_HResults.S_OK);
 }
예제 #22
0
 /// <summary>
 /// Gets the name of the process hosting a program. (http://msdn.microsoft.com/en-us/library/bb145135.aspx)
 /// </summary>
 /// <param name="dwHostNameType"> A value from the GETHOSTNAME_TYPE enumeration that specifies the type of name to return. </param>
 /// <param name="processName"> Returns the name of the hosting process. </param>
 /// <returns> VSConstants.S_OK. </returns>
 public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string processName)
 {
     if (dwHostNameType == enum_GETHOSTNAME_TYPE.GHN_FILE_NAME)
         processName = "(BB-pid = " + m_programID + ") " + m_exePath;
     else
         processName = m_programName;
     return VSConstants.S_OK;
 }
 int IDebugProgramNode2.GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
 {
   Debug.WriteLine("AD7ProgramNode: Entering GetHostName");
   pbstrHostName = null;
   return VSConstants.E_NOTIMPL;
 }
예제 #24
0
        public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
        {
            if (_inGetHostName)
            {
                pbstrHostName = null;
                return VSConstants.E_FAIL;
            }

            try
            {
                _inGetHostName = true;
                return _process.GetName((enum_GETNAME_TYPE)dwHostNameType, out pbstrHostName);
            }
            finally
            {
                _inGetHostName = false;
            }
        }
예제 #25
0
        public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
        {
            pbstrHostName = null;

            return(Constants.S_OK);
        }