Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Starts the Visual Studio integrated development environment (IDE) and obtains an instance of the DTE object for the host application that is specified by the bstrHostID parameter.
HRESULT GetVSDTE(
[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
Other Resources
IDE Automation Unmanaged Reference (Visual Studio Tools for Applications)