DIWbemServices.QueryObjectSink

[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
 

Parameters

lFlags
Reserved. It must be zero.
ppResponseHandler
Receives DIWbemObjectSink type object that is the notification handler. On error, this is set to NOTHING. A value of NOTHING can be returned if no notification handler is available. This is not an error.

Return Values

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.

See Also

WBEM Events, DIWbemObjectSink