KSC Open API
Kaspersky Security Center API description
int ConEvents::Subscribe ( wstring  wstrEvent,
params  pFilter,
[out] int  nPeriod 
)

Subscribe on event.

Use this method to subscribe on events. Method returns period of polling. You should use it between retrieve calls. Also attribute pFilter allow you to cut off unnecessary events.

Parameters:
wstrEvent[in] (wstring) event type
pFilter[in] (params) event filter
nPeriod[out] (int) new value of polling period, milliseconds
Returns:
(int) subscription id
Exceptions:
STDE_TOOBIGtoo many subscriptions for one session.
See also:
Event polling usage