IWbemProviderIdentity::SetRegistrationObject method

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(
  long             lFlags,
  IWbemClassObject *pProvReg
);

Parameters

lFlags

Reserved. This parameter must be 0 (zero).

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

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header wbemprov.h (include Wbemidl.h)
Library Wbemuuid.lib
DLL Wbemsvc.dll

See Also

IWbemProviderIdentity