[This is preliminary documentation and subject to change.]
The IWbemServices::ExecMethodAsync method asynchronously executes a method exported by a CIM object. The call immediately returns to the client while the inbound parameters are forwarded to the appropriate provider where it executes. Information and status are returned to the caller through the supplied object sink.
Methods are not directly implemented by CIMOM, but are exported by method providers. For any given CIM class, the available methods and their parameters are part of the documentation for the provider in question.
HRESULT IWbemServices::ExecMethodAsync(
[in] BSTR bstrObjectPath,
[in] BSTR bstrMethodName,
[in] LONG lFlags,
[in] IWbemContext *pCtx,
[in] IWbemClassObject *pInParams,
[in] CALLBACK *pResponseHandler
);
WBEM_E_FAILED | Other unspecified errors. |
WBEM_E_INVALID_PARAMETER | An invalid parameter was specified, or the namespace could not be parsed. |
WBEM_E_OUT_OF_MEMORY | There was not enough memory to complete the operation. |
WBEM_E_TRANSPORT_FAILURE | The communications link between the client and CIMOM has failed. |
WBEM_E_ACCESS_DENIED | The current user was not authorized to execute the method. |
WBEM_NO_ERROR | The call succeeded. |
On failure, you can obtain any available information from the COM function GetErrorInfo.
Other errors will be reported asynchronously to the object sink supplied in the pReponseHandler parameter
IWbemServices::ExecMethod