KSC Open API
Kaspersky Security Center API description
wstring PackagesApi::RecordNewPackageAsync ( wstring  wstrName,
wstring  wstrFolder,
wstring  wstrProductName,
wstring  wstrProductVersion,
wstring  wstrProductDisplName,
wstring  wstrProductDisplVersion 
)

Creates a package (asynchronously) with the default settings based on the product, overwritten in the folder, the path to which was obtained by calling the PackagesApi::GetIntranetFolderForNewPackage.

Parameters:
wstrName(wstring) Package name.
wstrFolder(wstring) Product folder (obtained by calling the PackagesApi::GetIntranetFolderForNewPackage).
wstrProductName(wstring) Product name.
wstrProductVersion(wstring) Product version.
wstrProductDisplName(wstring) Product display name.
wstrProductDisplVersion(wstring) Product display version.
Returns:
(wstring) Request ID used to subscribe to the event that is triggered when operation is complete.
Remarks:
Check the operation state by calling AsyncActionStateChecker::CheckActionState periodically until it's finalized or cancel it by calling PackagesApi::CancelRecordNewPackage. If the operation succeeds then AsyncActionStateChecker::CheckActionState returns these attributes in pStateData container:
Exceptions:
Throwsexception in case of error.