BOOL SCPHOSTCLNT::AddEventHandler( |
|
LPCTSTR |
szItem, |
// Name of the item |
|
LPCTSTR |
szSubItem, |
// Name of the item - can be NULL - if code will sink events
from the Item |
|
LPCTSTR |
szEvent, |
// Event name - method form the event dispinterface |
|
LPCTSTR |
szCode |
// Script code that will handle the event |
); |
Adds a script code to handle events from the Item from the namespaces collection (or
SubItem)
Returns TRUE/FALSE for success/failure
Remarks:
See remarks for the Script Manager2 AddEventHandler
method
See also:
Script Manager2 AddEventHandler method
|