Share via


VSTADTEProviderClass.GetDTE Method

Starts the Visual Studio Tools for Applications integrated development environment (IDE) and obtains an instance of the DTE object for the host application specified by the bstrHostID parameter.

HRESULT GetDTE(
   [in] BSTR bstrHostID,
   [in] DWORD dwTimeout,
   [out,
   retval] _DTE** ppDTE
);

Parameters

  • bstrHostID
    The host ID of the host application.

  • dwTimeout
    The time in milliseconds to wait for the IDE to start before failing. Pass 0 (zero) to wait indefinitely.

  • ppDTE
    A pointer to the DTE object.

Return Value

An S_OK if the method succeeds; otherwise, an error code.

Remarks

E_FAIL is the generic failure code. A failure might also return any of the standard values returned from HRESULT_FROM_WIN32. If the BSTR is null, this method returns E_INVALIDARG.

See Also

Reference

VSTADTEProviderClass Class

Other Resources

IDE Automation Unmanaged Reference (Visual Studio Tools for Applications)