IMsRdpClientTransportSettings2::GatewayPreAuthRequirement 屬性

指定或擷取是否啟用遠端桌面閘道 (RD 閘道) 一次性密碼 (OTP) 功能的設定。

啟用 OTP 時, GatewayPreAuthRequirement 會嘗試使用 GatewayPreAuthServerAddr 屬性從網際網路 Cookie 存放區查詢 OTP Cookie。 如果成功, GatewayPreAuthRequirement 會將 OTP Cookie 傳送至防火牆伺服器 (,例如 Microsoft 網際網路安全性和加速 [ISA] 伺服器) 以進行預先驗證。

這是可讀寫的屬性。

Syntax

HRESULT put_GatewayPreAuthRequirement(
  [in]  ULONG ulProxyPreAuthRequirement
);

HRESULT get_GatewayPreAuthRequirement(
  [out] ULONG *pulProxyPreAuthRequirement
);

屬性值

如果設定為 1,則會啟用 OTP 功能。 如果設定為 0,則會停用 OTP 功能。

錯誤碼

如果成功 則傳回S_OK。

規格需求

需求
最低支援的用戶端
Windows Vista SP1
最低支援的伺服器
Windows Server 2008
類型程式庫
MsTscAx.dll
DLL
MsTscAx.dll
IID
IID_IMsRdpClientTransportSettings2定義為 67341688-D606-4c73-A5D2-2E0489009319

另請參閱

IMsRdpClientTransportSettings

IMsRdpClientTransportSettings2