KSC Open API  13.1
Kaspersky Security Center API description
FileCategorizer2::GetFilesMetadataFromMSI ( unsignedInt  ulFlag,
[out] wstring  wstrAsyncId 
)

Get files metadata from MSI.

Parameters:
ulFlag[in] (unsignedInt) Requested meta information. Use like a mask of flags. See File metadata flags.
wstrAsyncId[out] (wstring) Id of async operation.

To get action status use AsyncActionStateChecker.CheckActionState. When action is not finished and lStateCode equals 2 then task in progress and pStateData may contain attribute "Progress" (int). When action is successfully finished it returns pStateData with an array "FilesMetadata". Each element is a params with requested attributes. See list of attributes File metadata flags.

See also:
AsyncActionStateChecker