// 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); }
public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName) { DebugHelper.TraceEnteringMethod(); pbstrHostName = null; _process.StartDebugging(); return VSConstants.S_OK; }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 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); } }
public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName) { DebugHelper.TraceEnteringMethod(); pbstrHostName = null; _process.StartDebugging(); return(VSConstants.S_OK); }
// 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; }
int IDebugProgramNode2.GetHostName( enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName) { pbstrHostName = string.Empty; return(VSConstants.E_NOTIMPL); }
/// <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; } }
/// <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); }
public int GetHostName(enum_GETHOSTNAME_TYPE hostNameType, out string hostName) { hostName = null; return(VSConstants.E_NOTIMPL); }
public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName) { Log.Debug("ScriptProgramNode: Entering GetHostName"); pbstrHostName = null; return(VSConstants.E_NOTIMPL); }
// 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); }
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); }
// 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; }
public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName) { Log.Debug("ScriptProgramNode: Entering GetHostName"); pbstrHostName = null; return VSConstants.E_NOTIMPL; }
/// <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); }
/// <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; }
int IDebugProgramNode2.GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName) { Debug.WriteLine("AD7ProgramNode: Entering GetHostName"); pbstrHostName = null; return(VSConstants.E_NOTIMPL); }
/// <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); }
/// <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); }
/// <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; }
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; } }
public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName) { pbstrHostName = null; return(Constants.S_OK); }