3.2.4.2.5 IWbemServices::ExecMethod and IWbemServices::ExecMethodAsync

The client MUST create a CIM instance for the input parameter CIM class defined in [MS-WMIO] section 2.3.3. The values of the CIM instance properties MUST be set to the values of the input parameters of the method by matching the parameter name to the property name. This CIM instance MUST be passed to IWbemServices::ExecMethod (section 3.1.4.3.22) or IWbemServices::ExecMethodAsync (section 3.1.4.3.23) as pInParams.

The output parameters from the method invocation will be returned as an instance of output parameter CIM class as defined in [MS-WMIO] section 2.3.3. Depending on how the method is invoked, the resultant object is returned in one of the ways as described in sections 3.2.4.2.6, 3.2.4.2.7, or 3.2.4.2.9.