itPhone::get_ButtonFunction 方法, (tapi3if.h)
get_ButtonFunction方法會擷取與特定按鈕相關聯的按鈕函式。
應用程式必須在叫用此方法之前呼叫 ITPhone::Open 方法;否則,方法會失敗。
語法
HRESULT get_ButtonFunction(
[in] long lButtonID,
[out] PHONE_BUTTON_FUNCTION *pButtonFunction
);
參數
[in] lButtonID
按鈕識別碼。
[out] pButtonFunction
按鈕函式 PHONE_BUTTON_FUNCTION 描述項。
傳回值
如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。
備註
如需可能的按鈕函式清單 ,請參閱PHONE_BUTTON_FUNCTION 列舉的描述。
規格需求
目標平台 | Windows |
標頭 | tapi3if.h (包括 Tapi3.h) |
程式庫 | Uuid.lib |
Dll | Tapi3.dll |