IWbemShutdown::Shutdown 方法 (wbemcli.h)

IWbemShutdown::Shutdown 方法會向提供者指出提供者服務並非必要。

語法

HRESULT Shutdown(
  [in] LONG         uReason,
  [in] ULONG        uMaxMilliseconds,
  [in] IWbemContext *pCtx
);

參數

[in] uReason

保留的。 這個值必須是零 (0) 。

[in] uMaxMilliseconds

保留的。 這個值必須是零 (0) 。

[in] pCtx

保留的。 此值必須是 NULL。

傳回值

這個方法會傳回 HRESULT,可識別方法呼叫的狀態。 下列清單列出 HRESULT 中包含的值。

規格需求

需求 值
最低支援的用戶端 Windows Vista
最低支援的伺服器 Windows Server 2008
目標平台 Windows
標頭 wbemcli.h (包含 Wbemidl.h)
程式庫 Wbemuuid.lib
Dll Fastprox.dll

另請參閱

IWbemShutdown