KSC Open API
Kaspersky Security Center API description
HostTasks::SetTaskStartEvent ( wstring  strSrvObjId,
wstring  strTask,
params  pData 
)

Set task start event.

Sets which event should run the task

Parameters:
strSrvObjId(wstring) server object ID that got from HostGroup.GetHostTasks
strTask(wstring) "Tasks storage identifier of the task".
pData(params) parameters of the event, see Task event filter attributes