17 #ifndef _TIPRO_TIPROHIDAPI_TIPROTELEPHONY_H_ 18 #define _TIPRO_TIPROHIDAPI_TIPROTELEPHONY_H_ 24 typedef unsigned short USHORT;
26 typedef unsigned long ULONG;
28 typedef int (*tfnCallback)(USHORT, USHORT, USHORT, USHORT, bool);
29 typedef int (*tfnThreadStatus)(USHORT, int, int, int);
int TiproTelephony_StopAll()
Stops reporting keys of all telephony devices.
int TiproTelephony_DetectDevices()
Scans all USB ports and updates the list of connected telephony devices. This function should be call...
int TiproTelephony_GetDeviceProductString(USHORT hidIx, PVOID pString, ULONG lBufferLen)
Returns telephony device product string.
int TiproTelephony_RegisterCallback(USHORT hidIx, tfnCallback fnKeyCallback, tfnThreadStatus fnKeyStatusCallback)
Register callback function for returning pressed/released keys and status of the thread.
int TiproTelephony_GetNumOfDetectedDevices()
Returns number of connected telephony devices.
int TiproTelephony_GetDeviceVidPid(USHORT hidIx, USHORT *nVID, USHORT *nPID)
Returns telephony device vendor ID and product ID.
int TiproTelephony_Stop(const USHORT nLocalIx)
Stops reporting keys of telephony device.
int TiproTelephony_GetDeviceManufacturerString(USHORT hidIx, PVOID pString, ULONG lBufferLen)
Returns telephony device manufacturer string.
int TiproTelephony_GetDevicePath(USHORT hidIx, PVOID pString, ULONG lBufferLen)
Returns telephony device path that can be used to access the device directly.