Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
CryptoAlgo Inc daad8a087a Add source files 4 years ago
..
phonemgr Add source files 4 years ago
audio.cpp Add source files 4 years ago
audio.h Add source files 4 years ago
hid.h Add source files 4 years ago
hidphone.c Add source files 4 years ago
hidphone.def Add source files 4 years ago
hidphone.h Add source files 4 years ago
hidphone.rc Add source files 4 years ago
makefile Add source files 4 years ago
mylog.c Add source files 4 years ago
mylog.h Add source files 4 years ago
mymem.c Add source files 4 years ago
mymem.h Add source files 4 years ago
pnp.c Add source files 4 years ago
readme.txt Add source files 4 years ago
report.c Add source files 4 years ago
resource.h Add source files 4 years ago
sources Add source files 4 years ago

readme.txt


Copyright (c) 1999 Microsoft Corporation


Phone TSP



Overview:
~~~~~~~~~
Hidphone is a TSP (telephony service provider) that implements support for
USB phone devices that are HID (human interface device) compliant.

The TSP communicates with the HID interface that provides abstraction for
the phone devices. The TSP enumerates the HID phone devices available on the
system and makes them available to TAPI applications. The TSP provides
thread-safe access to these phone devices. TAPISRV communicates with this TSP
when it needs access to these phone devices. The TSP provides
the TSP API functions that TAPISRV uses to call the TSP.



The following files implement the TSP
hidphone.h - this file contains all the variables used by the TSP
hidphone.c - this file contains the implementations of the TSPI functions


The following declare the main DLL exports:
hidphone.def


The following files declare all the strings used throughout the TSP:
hidphone.rc
resource.h

The following files provide functions to get the wave ids of the audio devices
associated with the phones:
audio.h
audio.cpp

The following file discovers the Hid phone devices on the system
pnp.c

The following file helps in sending and receiving reports from the HID device
report.c

The following define and implement the logging functionality:
mylog.h
mylog.c

The following define and implement the heap trace inorder to detect memory leaks:
mymem.h
mymem.c


How to use the TSP:
~~~~~~~~~~~~~~~~~~~~~~

Copy hidphone.tsp to the %windir%\winnt\system32 directory
Add the tsp in the control panel.

The tsp can now be accessed by TAPI applications


What functionality does this TSP show:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Enumerate the supported HID-compliant phone devices
* Negotiates TAPI version 2.0 - 3.0
* Discovers the capabilities of each phone device supported
* Provides information about the phones when requested
* Receive and send input, feature and output reports from and to the device.
* Send Phone state and Phone Button events to TAPISRV
* Plug and play capability