IWbemProviderInitSink::SetStatus method

The IWbemProviderInitSink::SetStatus method indicates to Windows Management whether a provider is fully or partially initialized.

Syntax

HRESULT SetStatus(
  LONG lStatus,
  LONG lFlags
);

Parameters

lStatus

Indicates to Windows Management a provider's initialization status. One of the following values can be set.

WBEM_S_INITIALIZED

Indicates that the provider is fully initialized and ready to accept requests.

WBEM_E_FAILED

Indicates that the provider has failed to initialize and is not functional.

lFlags

Reserved. This parameter must be 0 (zero).

Return Value

This method always returns WBEM_S_NO_ERROR.

Remarks

All types of providers call IWbemProviderInitSink::SetStatus to indicate initialization status to Windows Management.

If lStatus is set to WBEM_S_INITIALIZED, Windows Management expects the provider to be fully capable of immediately servicing requests.

Requirements

   
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

IWbemProviderInitSink

Initializing a Provider