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

Set task start event.

Sets which event should run the task

Parameters:
strTask(wstring) task id in digital representation, like "1" or "45" and etc.
pData(params) parameters of the event, see Task event filter attributes