共用方式為


ITConnection::SetEncryptionKey 方法

[ Rendezvous IP Telephony Conferencing Controls and interface not available for use in Windows Vista, Windows Server 2008, and subsequent versions of the operating system. RTC 用戶端 API 提供類似的功能。]

SetEncryptionKey方法會設定解密會話所需的加密金鑰,或透過外部方式取得可用金鑰的機制指示。

語法

HRESULT SetEncryptionKey(
  [in] BSTR pKeyType,
  [in] BSTR *ppKeyData
);

參數

pKeyType [in]

包含加密金鑰類型的 BSTR 指標。

ppKeyData [in]

包含加密金鑰資訊的 BSTR 指標。

傳回值

這個方法可以傳回下列其中一個值。

傳回碼 描述
S_OK
方法成功。

備註

應用程式必須使用 SysAllocStringpKeyTypeppKeyData 參數配置記憶體。 當不再需要變數時,應用程式必須使用 SysFreeString 釋放記憶體。

規格需求

需求
TAPI 版本
需要 TAPI 3.0 或更新版本
標頭
Sdpblb.h
程式庫
Uuid.lib
DLL
Sdpblb.dll

另請參閱

ITConnection