IWbemProviderIdentity::SetRegistrationObject method (wbemprov.h)

The IWbemProviderIdentity::SetRegistrationObject method is called by the Windows Management service prior to initializing an event provider (if the provider implements IWbemProviderIdentity). The method is used to pass to the provider the __Win32Provider instance by which the provider is being initialized. This method is only used if you have more than one provider sharing the same CLSID.

Syntax

HRESULT SetRegistrationObject(
  [in] long             lFlags,
  [in] IWbemClassObject *pProvReg
);

Parameters

[in] lFlags

Reserved. This parameter must be 0 (zero).

[in] pProvReg

Instance of __Win32Provider that announces the provider's name and CLSID.

Return value

This method returns an HRESULT with one of the following values.

Remarks

Any HRESULT return code other than WBEM_S_NO_ERROR indicates a provider failure.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wbemprov.h (include Wbemidl.h)
Library Wbemuuid.lib
DLL Wbemsvc.dll

See also

IWbemProviderIdentity