Freigeben über


createEventObject method

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

Syntax

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

Parameters

  • 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

Type: HRESULT

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

Standards information

There are no standards that apply here.