home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / AutoPC / apcsdk10.exe / data1.cab / Emulation_Include_Files / tapidev.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-13  |  1.6 KB  |  52 lines

  1. #ifndef _TAPIDEVICE_H_
  2. #define _TAPIDEVICE_H_
  3.  
  4.  
  5.  
  6. // DeviceType defines -    Compatible w/ Unimodem device definitions but
  7. //                        extended to cover voice capable devices    
  8. //
  9. #define TD_NULL_MODEM                        0
  10. #define TD_EXTERNAL_MODEM                    1
  11. #define TD_INTERNAL_MODEM                    2
  12. #define TD_PCMCIA_MODEM                        3
  13. #define TD_PARALLEL_PORT                    4
  14. #define TD_PARALLEL_MODEM                    5
  15. #define TD_IRCOMM_MODEM                        6
  16. #define TD_EXTERNAL_VOICE_MODEM                7
  17. #define TD_EXTERNAL_VOICE_AND_DATA_MODEM    8
  18. #define TD_INVALID                          9
  19.  
  20. // The following info is returned from the lineGetDevCaps call as the
  21. // device specific data.  The wDeviceType indicates the type of device on
  22. // the port, and the wActive field indicates if the port is currently active.
  23. // This field will normally be 1 for all TAPi device except PCMCIA cards which
  24. // have been removed from the system.
  25.  
  26.     typedef 
  27.     struct
  28.     {
  29.         WORD        wDeviceType;
  30.         WORD        wActive;
  31.  
  32.         //  Oem's may extend this structure with their own device specific
  33.         //  data.  The recommended method would be to define a new structure
  34.         //  that contains this structure as it's first element.  It is critical
  35.         //  that the above fields retain their position in the structure in
  36.         //  order for basic functionality to work.
  37.  
  38.         //  NOTE:   STRUCTURE ALIGNMENT AND PACKING IS VERY IMPORTANT BECAUSE
  39.         //          THE APC BASE CODE RELIES ON THE ALIGNMENT OF THE TWO FIELDS
  40.         //          LISTED ABOVE.  TAKE CARE TO PRESERVE THIS IN YOUR STRUCTURE.
  41.  
  42.     } TD_INFORMATION, *PTD_INFORMATION;
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52. #endif