This topic has not yet been rated - Rate this topic

IWbemDecoupledBasicEventProvider::GetSink method

The IWbemDecoupledBasicEventProvider::GetSink method retrieves an IWbemObjectSink object for event forwarding to WMI. This method provides for fully concurrent access.

Syntax


HRESULT GetSink(
  [in]   LONG lFlags,
  [in]   IWbemContext *pContext,
  [out]  IWbemObjectSink *pSink
);

Parameters

lFlags [in]

Reserved for future use.

pContext [in]

Reserved for future use.

pSink [out]

Pointer to an IWbemObjectSink instance used to forward events to WMI.

Return value

This method returns an HRESULT indicating the status of the method call. The following table lists the value contained within an HRESULT.

Return codeDescription
WBEM_E_ACCESS_DENIED

Access to the object is denied.

WBEM_E_CRITICAL_ERROR

An internal error has occurred.

WBEM_E_NOT_FOUND

The specified named context value does not exist.

WBEM_E_NOT_REGISTERED

The object is not registered.

WBEM_E_OUT_OF_MEMORY

The system has run out of memory.

WBEM_E_TIMED_OUT

System time out.

WBEM_S_NO_ERROR

The call succeeded.

 

Remarks

Windows 2000 and Windows NT:  Requires the WMI SDK Update or the Microsoft .NET Framework SDK. For more information about obtaining this SDK, see Windows Management Instrumentation.
Windows NT:  Requires the Microsoft .NET Framework SDK. For more information about obtaining this SDK, see Windows Management Instrumentation.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Redistributable

WMI Redistributable Components version 1.0 on Windows 2000.

Header

Wbemprov.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

Wmidcprv.dll

 

 

Send comments about this topic to Microsoft

Build date: 11/19/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.