createEventObject method

Generates an event object to pass event context information when you use the IHTMLDocument4::fireEvent method.


HRESULT retVal = object.createEventObject(pvarEventObject, ppEventObj);


  • pvarEventObject [in, optional]
    Type: VARIANT

    A pointer to a VARIANT that specifies an existing event object on which to base the new object. Set pvarEventObject to NULL to specify a new, blank event object.

  • ppEventObj [out, retval]
    Type: IHTMLEventObj

    A pointer to an IHTMLEventObj interface that receives the event object that is created.

Return value


If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

There are no standards that apply here.