[This is preliminary documentation and subject to change.]
The IWbemServices::QueryObjectSink method allows the caller to obtain a notification handler that is exported by CIMOM. This allows the caller to write notifications and events directly to CIMOM. The caller should only write Extrinsic Events to CIMOM. See WBEM Events.
HRESULT IWbemServices::QueryObjectSink(
[in] Long lFlags,
[out] IWbemObjectSink **ppResponseHandler
);
WBEM_E_ACCESS_DENIED | The caller does not have permission to provide notifications to CIMOM. |
WBEM_E_FAILED | Unspecified error. |
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_RPC_FAILURE | The RPC link between the current process and CIMOM has failed. |
WBEM_NO_ERROR | The call succeeded. |