Tipro API
Communicate with Tipro devices
TiproTelephony.h
Go to the documentation of this file.
1 
17 #ifndef _TIPRO_TIPROHIDAPI_TIPROTELEPHONY_H_
18 #define _TIPRO_TIPROHIDAPI_TIPROTELEPHONY_H_
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 typedef unsigned short USHORT;
25 typedef void * PVOID;
26 typedef unsigned long ULONG;
27 
28 typedef int (*tfnCallback)(USHORT, USHORT, USHORT, USHORT, bool);
29 typedef int (*tfnThreadStatus)(USHORT, int, int, int);
30 
37 
43 
65 int TiproTelephony_RegisterCallback(USHORT hidIx, tfnCallback fnKeyCallback, tfnThreadStatus fnKeyStatusCallback);
66 
72 int TiproTelephony_Stop(const USHORT nLocalIx);
73 
79 
87 int TiproTelephony_GetDevicePath(USHORT hidIx, PVOID pString, ULONG lBufferLen);
88 
96 int TiproTelephony_GetDeviceProductString(USHORT hidIx, PVOID pString, ULONG lBufferLen);
97 
105 int TiproTelephony_GetDeviceVidPid(USHORT hidIx, USHORT *nVID, USHORT *nPID);
106 
114 int TiproTelephony_GetDeviceManufacturerString(USHORT hidIx, PVOID pString, ULONG lBufferLen);
115 
116 #ifdef __cplusplus
117 }
118 #endif
119 
120 #endif
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.