Implements a wrapper that allows you to execute a command on an OLE object using the IOleCommandTarget::Exec method.
Syntax
HRESULT ExecWB( OLECMDID cmdID, OLECMDEXECOPT cmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut );
Parameters
- cmdID
- [in] OLECMDID value that specifies the command to execute. For a discussion of command identifiers, see MSHTML Editing Command Identifiers.
- cmdexecopt
- [in] OLECMDEXECOPT value that specifies the command options.
- pvaIn
- [in] Address of a VARIANT structure that contains command input arguments. This argument can be NULL.
- pvaOut
- [out, in] Address of a VARIANT structure that receives command output. This argument can be NULL.
Return Value
Returns S_OK if successful, or an error code otherwise.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
See Also
IWebBrowser2::QueryStatusWB