ITPhone::p ut_ButtonFunction 方法 (tapi3if.h)

put_ButtonFunction方法會設定按鈕函式。

語法

HRESULT put_ButtonFunction(
  [in] long                  lButtonID,
  [in] PHONE_BUTTON_FUNCTION ButtonFunction
);

參數

[in] lButtonID

按鈕標識碼。

[in] ButtonFunction

按鈕函式 PHONE_BUTTON_FUNCTION 描述項。

傳回值

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

規格需求

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

另請參閱

ITPhone

get_ButtonFunction