MI_DestinationOptions_GetProxyType函式 (mi.h)

取得使用者所設定的 Proxy 類型。

語法

MI_INLINE MI_Result MI_DestinationOptions_GetProxyType(
  [in] MI_DestinationOptions *options,
       const MI_Char         **proxyType
);

參數

[in] options

從MI_Application_NewDestinationOptions傳回MI_DestinationOptions物件。

proxyType

包含傳回 Proxy 型別之 Null 終止字串的指標。 此字串可以是下列其中一個值:

MI_DESTINATIONOPTIONS_PROXY_TYPE_IE (「IE」)

預設的 IE 設定。

MI_DESTINATIONOPTIONS_PROXY_TYPE_WINHTTP (「WinHTTP」)

WinHTTP 設定。

MI_DESTINATIONOPTIONS_PROXY_TYPE_AUTO (「Auto」)

([預設] 設定) 提供者會選取最佳選項。

MI_DESTINATIONOPTIONS_PROXY_TYPE_NONE (「None」)

停用 Proxy 使用量。

傳回值

指定函式傳回碼 之MI_Result 列舉的值。 這可以是下列其中一個程式碼。

需求

   
最低支援的用戶端 Windows 8
最低支援的伺服器 Windows Server 2012
目標平台 Windows
標頭 mi.h
可轉散發套件 在 Windows Server 2008 R2 上Windows Management Framework 3.0 SP1、Windows 7 SP1 和 Windows Server 2008 SP2