Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Register method
Collapse the table of content
Expand the table of content

IWbemDecoupledBasicEventProvider::Register method

The IWbemDecoupledBasicEventProvider::Register method registers an object interface with WMI, indicating the registration object that applies to the object interface. Fully concurrent access to WMI is permitted.

Syntax


HRESULT Register(
  [in] LONG         lFlags,
  [in] IWbemContext *pContext,
  [in] LPCWSTR      strUser,
  [in] LPCWSTR      strLocal,
  [in] LPCWSTR      strScope,
  [in] LPCWSTR      strRegistration,
  [in] IUnknown     *pUnknown
);

Parameters

lFlags [in]

Reserved for future use.

pContext [in]

Reserved for future use.

strUser [in]

String identifying the user for this specific registration.

strLocal [in]

String identifying the locale for this specific registration.

strScope [in]

Object path representing the binding to a WMI provider registration object in a specified namespace. The scope object path can be NULL, indicating that the provider will support all namespaces.

strRegistration [in]

Name of the provider being registered.

pUnknown [in]

Pointer to an object for particular registration. This interface will be queried to determined the support that the object is capable of servicing.

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_ALREADY_REGISTERED

The object has already been registered.

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_OUT_OF_MEMORY

The system has run out of memory.

WBEM_E_TIMED_OUT

System time out.

WBEM_S_NO_ERROR

The call succeeded.

 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Wbemprov.h (include Wbemidl.h)

IDL

Wbemprov.idl

Library

Wbemuuid.lib

DLL

Wmidcprv.dll

CLSID

CLSID_WbemDecoupledBasicEventProvider is defined as f5f75737-2843-4f22-933d-c76a97cda62f

IID

IID_IWbemDecoupledBasicEventProvider is defined as 86336d20-ca11-4786-9ef1-bc8a946b42fc

 

 

Show:
© 2015 Microsoft