ITPhone::get_ButtonFunction méthode (tapi3if.h)

La méthode get_ButtonFunction récupère la fonction button associée à un bouton particulier.

L’application doit appeler la méthode ITPhone::Open avant d’appeler cette méthode ; sinon, la méthode échoue.

Syntaxe

HRESULT get_ButtonFunction(
  [in]  long                  lButtonID,
  [out] PHONE_BUTTON_FUNCTION *pButtonFunction
);

Paramètres

[in] lButtonID

Identificateur du bouton.

[out] pButtonFunction

Le descripteur PHONE_BUTTON_FUNCTION pour la fonction du bouton.

Valeur retournée

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Remarques

Consultez la description de l’énumération PHONE_BUTTON_FUNCTION pour obtenir la liste des fonctions de bouton possibles.

Configuration requise

   
Plateforme cible Windows
En-tête tapi3if.h (inclure Tapi3.h)
Bibliothèque Uuid.lib
DLL Tapi3.dll

Voir aussi

ITPhone

put_ButtonFunction