Windows Dev Center

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(
  [inlong             lFlags,
  [in] IWbemClassObject *pProvReg
);

Parameters

lFlags [in]

Reserved. This parameter must be 0 (zero).

pProvReg [in]

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

Return value

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

Return codeDescription
WBEM_S_NO_ERROR

Method succeeded.

 

Remarks

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

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Wbemprov.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

Wbemsvc.dll

See also

IWbemProviderIdentity

 

 

Show:
© 2015 Microsoft