The ExecWB method executes a command on an OLE object and returns the status of the command execution using the IOleCommandTarget::Exec method.
HRESULT ExecWB( OLECMDID cmdID, OLECMDEXECOPT cmdexecopt, VARIANT* pvaIn, VARIANT* pvaOut );
[in] Variable specifies the command to execute.
[in] Variable specifies the command options.
[in, optional] Pointer to a VARIANT structure that specifies the command input arguments. This variable can be set to NULL.
[out, in, optional] Pointer to a VARIANT structure that specifies the command output arguments. This variable can be set to NULL.
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:
The method completed successfully.
DISPID_WEBBROWSER_EXECWB
The DISPID is defined in piedocvw.h. Use this value to identify the event handler when implementing IDispatch::Invoke.