home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / H / DEVCLASS.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  2KB  |  50 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  4. /*                                                                           */
  5. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  6. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  7. /*    drivers. You may use this code in accordance with the IBM License      */
  8. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  9. /*    Copyright statement may not be removed.                                */
  10. /*                                                                           */
  11. /*****************************************************************************/
  12. /*static char *SCCSID = "@(#)devclass.h    6.2 92/05/08";*/
  13.  
  14. /*
  15.  *
  16.  */
  17.  
  18. /*
  19.  * Device Class Structure -  returned by dh_GetDOSVar when
  20.  * AL=DHGETDOSV_DEVICECLASSTABLE and CX = device_class
  21.  *
  22.  */
  23.  
  24.  
  25. #define  MAXDEVCLASSNAMELEN 16     /*   Maximum length of the DevClass Name */
  26. #define  MAXDEVCLASSTABLES 2       /*   Maximum number of DevClass tables   */
  27.  
  28. #define  MAXDISKDCENTRIES 32   /*  Maximum number of entries in DISK table */
  29. #define  MAXMOUSEDCENTRIES 3   /*  Maximum number of entries in Mouse table */
  30.  
  31. /* structures for the DeviceClassTable  */
  32.  
  33. struct DevClassTableEntry {
  34.         USHORT   DCOffset;
  35.         USHORT   DCSelector;
  36.         USHORT   DCFlags;
  37.         UCHAR    DCName[MAXDEVCLASSNAMELEN];
  38. };
  39.  
  40.  
  41. struct DevClassTableStruc {
  42.    USHORT                     DCCount;
  43.    USHORT                     DCMaxCount;
  44.    struct DevClassTableEntry  DCTableEntries[1];
  45. };
  46.  
  47.  
  48.  
  49.  
  50.