ITcProjectArchive::AddFilesToArchive

Saves the project, including the associated files, as a ZIP archive at bstrArchivePath. ulFlags (ADD_FILES_TO_ARCHIVE_FLAGS) can be used to include nested projects (ADD_FILES_TO_ARCHIVE_INCLUDE_NESTED = 1) and remove source control information (ADD_FILES_TO_ARCHIVE_REMOVE_SCC = 2).

Signature

HRESULT AddFilesToArchive(BSTR bstrArchivePath, BSTR bstrRootFolder, ULONG ulFlags);

Parameter

Name

Type

Description

bstrArchivePath

BSTR

[in] Target path for the ZIP file.

bstrRootFolder

BSTR

[in] Root folder, stored relative to the path in the archive.

ulFlags

ULONG

[in] Bitmask from ADD_FILES_TO_ARCHIVE_FLAGS.

Return value

Name

Type

Description

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.