IOleCommandTarget.Exec(Guid, UInt32, UInt32, Object[], Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes the specified command or displays help for the command.
public:
int Exec(Guid % pguidCmdGroup, System::UInt32 nCmdID, System::UInt32 nCmdExecOpt, cli::array <System::Object ^> ^ pvaIn, cli::array <System::Object ^> ^ pvaOut);
public int Exec (ref Guid pguidCmdGroup, uint nCmdID, uint nCmdExecOpt, object[] pvaIn, object[] pvaOut);
abstract member Exec : Guid * uint32 * uint32 * obj[] * obj[] -> int
Public Function Exec (ByRef pguidCmdGroup As Guid, nCmdID As UInteger, nCmdExecOpt As UInteger, pvaIn As Object(), pvaOut As Object()) As Integer
Parameters
- pguidCmdGroup
- Guid
Specifies the unique identifier of the command group; can be NULL to specify the standard group.
- nCmdID
- UInt32
Specifies the command to be executed. This command must belong to the group specified with pguidCmdGroup
- nCmdExecOpt
- UInt32
Specifies how the object should execute the command. Possible values are taken from the OLECMDEXECOPT and OLECMDID_WINDOWSTATE_FLAG enumerations.
- pvaIn
- Object[]
Specifies a pointer to a VARIANTARG structure containing input arguments. This parameter can be NULL.
- pvaOut
- Object[]
Pointer to a VARIANTARG structure to receive command output. This parameter can be NULL.