MÉTHODE ITPhone ::get_HookSwitchState (tapi3if.h)
La méthode get_HookSwitchState récupère l’état actuel de hookswitch pour un périphérique hookswitch particulier sur le téléphone.
L’application doit appeler ITPhone ::Open avant d’appeler cette méthode ; sinon, l’appel échoue.
Syntaxe
HRESULT get_HookSwitchState(
[in] PHONE_HOOK_SWITCH_DEVICE HookSwitchDevice,
[out] PHONE_HOOK_SWITCH_STATE *pHookSwitchState
);
Paramètres
[in] HookSwitchDevice
Le descripteur PHONE_HOOK_SWITCH_DEVICE pour le type hookswitch.
[out] pHookSwitchState
Descripteur PHONE_HOOK_SWITCH_STATE pour l’status hookswitch.
Valeur retournée
Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.
Spécifications
Condition requise | Valeur |
---|---|
Plateforme cible | Windows |
En-tête | tapi3if.h (inclure Tapi3.h) |
Bibliothèque | Uuid.lib |
DLL | Tapi3.dll |
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour