Export (0) Print
Expand All

IWbemProviderInitSink::SetStatus method

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

Syntax


HRESULT SetStatus(
  [in]  LONG lStatus,
  [in]  LONG lFlags
);

Parameters

lStatus [in]

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

ValueMeaning
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 [in]

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 2003

Header

Wbemprov.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

Wbemsvc.dll

See also

IWbemProviderInitSink
Initializing a Provider

 

 

Show:
© 2014 Microsoft