[This is preliminary documentation and subject to change.]
The DIWbemServices.QueryObjectSink method allows you to obtain a notification handler that is exported by CIMOM. This allows you to write notifications and events directly to CIMOM. You should write Extrinsic Events only to CIMOM. See WBEM Events.
DIWbemServices.QueryObjectSink( [in] lFlags
As Long, [out] DIWbemObjectSink ppResponseHandler ) As Long
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 | Success. |