ITPhone::get_ButtonText 方法 (tapi3if.h)

get_ButtonText方法會擷取與特定按鈕相關聯的按鈕文字。

應用程式必須在叫用此方法之前呼叫 ITPhone::Open ;否則,叫用會失敗。 請參閱 TAPI 2。x 檔,以取得按鈕文字概念的詳細資訊。

語法

HRESULT get_ButtonText(
  [in]  long lButtonID,
  [out] BSTR *ppButtonText
);

參數

[in] lButtonID

按鈕標識碼。

[out] ppButtonText

按鈕文字的 BSTR 表示。 BSTR 是使用 SysAllocString 來配置。 BSTR 自變數應該由用戶端解除分配。

傳回值

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

規格需求

需求
目標平台 Windows
標頭 tapi3if.h (包括 Tapi3.h)
程式庫 Uuid.lib
Dll Tapi3.dll

另請參閱

ITPhone

put_ButtonText