ITPhone::get_HookSwitchState-Methode (tapi3if.h)

Die get_HookSwitchState-Methode ruft den aktuellen Hookswitch-Zustand für ein bestimmtes Hookswitch-Gerät auf dem Telefon ab.

Die Anwendung muss ITPhone::Open aufrufen, bevor diese Methode aufgerufen wird. andernfalls schlägt der Aufruf fehl.

Syntax

HRESULT get_HookSwitchState(
  [in]  PHONE_HOOK_SWITCH_DEVICE HookSwitchDevice,
  [out] PHONE_HOOK_SWITCH_STATE  *pHookSwitchState
);

Parameter

[in] HookSwitchDevice

Der PHONE_HOOK_SWITCH_DEVICE Deskriptor für den Hookswitch-Typ.

[out] pHookSwitchState

Der PHONE_HOOK_SWITCH_STATE Deskriptor für den Hookswitch-status.

Rückgabewert

Wenn diese Methode erfolgreich ist, wird S_OK zurückgegeben. Andernfalls wird ein Fehlercode HRESULT zurückgegeben.

Anforderungen

Anforderung Wert
Zielplattform Windows
Kopfzeile tapi3if.h (einschließlich Tapi3.h)
Bibliothek Uuid.lib
DLL Tapi3.dll

Weitere Informationen

ITPhone

put_HookSwitchState