|
|
|
|
|||||||||||||||||||||||||||||||||||||
Requirements |
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Using This Sample Program |
|||||||||||||||||||||||||||||||||||||
|
Click on one of the radio buttons at the top of the program. All devices of the selected type will be displayed in the text box. A small amount of information will be displayed for each device found. |
|||||||||||||||||||||||||||||||||||||
Download this Sample Program |
|||||||||||||||||||||||||||||||||||||
For use with TeleTools v3.7
|
|||||||||||||||||||||||||||||||||||||
How this Sample Program Works |
|||||||||||||||||||||||||||||||||||||
|
When one of the radio buttons is clicked the FillText routine is called. FillText loops through all of the TAPI line devices available on the computer. Using the bitmapped flags found in many of the TeleTools properties this routine searches for devices that match the selected type. If Voice is the selected type of device the FillText calls the FillVoiceDevices routine. This routine checks to see if the TAPI line device has associated TAPI Phone, wave audio play and wave audio record devices. If any of these devices are found then their information is also displayed. Bitmapped Flags Microsoft's Windows API's utilizes bitmapped flags in order to store a lot of information in a small amount of memory. For example an integer is made up of 4 bytes, each byte is 8 bits. Each bit my be turned on or off, one or zero. This allows one integer to store as many as 32 Boolean values! For example the property etLine1.DeviceCapabilitiesBearerModes may have the value decimal 73 which is hex 49 and binary 01001001. The binary representation of the number indicates that 3 flags are turned on, These are decimal 1, 8, and 64 which are hex 1, 8 and 40. These values are defined as constants in the etTTConst file supplied with TeleTools: Global Const LINEBEARERMODE_VOICE = &H1 To check to see if a device supports voice calls you could use the following Visual Basic "IF" statement: If (etLine1.DeviceCapabilitiesBearerModes And
LINEBEARERMODE_DATA) = _ or If (etLine1.DeviceCapabilitiesBearerModes And
LINEBEARERMODE_DATA) <> 0 then
|
|||||||||||||||||||||||||||||||||||||
Release Notes |
|||||||||||||||||||||||||||||||||||||
April 8Published |
|
|
||||
|
||||