CreateStorageFromTemplateStream Method
Creates a new IProjectStorage Interface using the template bstrTemplateName
contained in pProjectTemplatesStream
.
Syntax
HRESULT CreateStorageFromTemplatePath(IStream* pProjectTemplatesStream,BSTR bstrTemplateName,BSTR bstrProjectName,IOptions* pCustomParameters,IProjectStorage** ppProjectStorage);
Parameters
pProjectTemplatesStream
[in] Stream containing the bytes for a vstax file.
bstrTemplateName
[in] The name of the template inside the vstax file from which IProjectStorage will be created.
bstrProjectName
[in] The name for the new project.
pCustomParameters
[in] A pointer to a collection pairs of template parameters and their values. Inside the created project, the values will be substituted in place of the corresponding template parameters.
ppProjectStorage
[out, retval] A new IProjectStorage based on the template bstrProjectName.
Remarks
This method is defined in the file vsta.h.
Return Value
One of the standard HRESULT
values.
Requirements
DLL | VstaCore.dll |
Library | VstaCore.lib |
Header | Vsta.h |