Fires a specified event on the object.
HRESULT fireEvent( BSTR bstrEventName, VARIANT *pvarEventObject, VARIANT_BOOL *pfCancelled );
- [in] BSTR that specifies the name of the event to fire.
- [in] Pointer to a VARIANT that specifies the IHTMLEventObj interface from which the event properties are obtained.
- [out, retval] VARIANT_BOOL that receives one of the following values:
- Event fired successfully.
- Event was canceled.
Returns S_OK if successful, or an error value otherwise.
If the event being fired cannot be canceled, IHTMLDocument4::fireEvent always returns