KSC Open API
Kaspersky Security Center API description
FileCategorizer2::AddExpressions ( int  nCategoryId,
array  arrNewExpressions,
boolean  bInclusions,
[out] wstring  wstrAsyncId 
)

Add some expressions to category.

Parameters:
nCategoryId[in] (int) Category id
arrNewExpressions[in] (array) Array of new expressions. Max size is 100 elements. See Custom category format.
bInclusions[in] (boolean) If true then add to inclusions. Otherwise add to exclusions.
wstrAsyncId[out] (wstring) Id of async operation.
See also:
AsyncActionStateChecker