Share via


VSTADTEProviderClass.GetProjectTemplatePath Method

Returns the path of a specific host application project template in the Visual Studio Tools for Applications project template cache.

HRESULT GetProjectTemplatePath(
   [in] BSTR bstrHostID,
   [in] BSTR bstrZipPath,
   [out,
   retval] BSTR* pbstrTemplatePath
);

Parameters

  • bstrHostID
    The host ID of the host application.

  • bstrZipPath
    The relative path of the template .zip file in the host application's project template folder.

  • pbstrTemplatePath
    The template path.

Property Value/Return Value

An E_POINTER if bstrHostID or bstrZipPath are null.

This method returns E_FAIL if the path is a directory, or if the file does not exist.

See Also

Reference

VSTADTEProviderClass Class

Other Resources

IDE Automation Unmanaged Reference (Visual Studio Tools for Applications)