home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 4 Drivers / 04-Drivers.zip / scsiopt2.zip / scsioptpub.h < prev    next >
C/C++ Source or Header  |  1997-12-12  |  2KB  |  62 lines

  1. /*
  2.  * $Source: E:/source/driver/perf/RCS/scsioptpub.h,v $
  3.  * $Revision: 1.3 $
  4.  * $Date: 1997/12/11 01:50:53 $
  5.  * $Locker:  $
  6.  *
  7.  * Describes IOCtl interface to dskperf.flt (none)
  8.  *
  9.  * $Log: scsioptpub.h,v $
  10.  * Revision 1.3  1997/12/11 01:50:53  vitus
  11.  * - added IOCtl to query saved messages (so this header is now usefull)
  12.  *
  13.  * Revision 1.2  1997/12/06 01:03:52  vitus
  14.  * - clarified uselessness of this header
  15.  *
  16.  * Revision 1.1  1997/06/04 23:41:09  vitus
  17.  * Initial revision
  18.  * ----------------------------------------
  19.  * Author: Vitus Jensen, 2:2474/424, 1997
  20.  */
  21.  
  22. #if !defined(_DSKPFPUB_H)
  23. #define _DSKPFPUB_H
  24. #pragma pack(1)                    /* all structures packed */
  25.  
  26.  
  27. /*
  28.  * IOCtl category and function codes
  29.  */
  30. #define IOCTL_DSKPERF_CATEGORY    0xC0        /* a user-defined category */
  31. #define DSKPF_QUERY_VERSION    0x60        /* returns USHORT */
  32. #define DSKPF_READ_MSGS        0x63        /* read startup messages */
  33. #define DSKPF_CLEAR_MSGS    0x43        /* forget all messages */
  34.  
  35.  
  36.  
  37. /* Describes installed DSKPerf.flt */
  38. typedef struct _DSKPF_VER_DATA {
  39.     USHORT    version;            /* as in PC-DOS */
  40.     USHORT    flags;                /* currently undefined */
  41. } DSKPF_VER_DATA, NEAR * NPDSKPF_VER_DATA, FAR * PDSKPF_VER_DATA;
  42.  
  43.  
  44.  
  45. /* Returned by DSKPF_READ_MSGS
  46.  * 'msg' will contain a buffer filled with ASCIIZ strings.  Strings
  47.  * usually don't contain newlines.
  48.  * Some time in the future this buffer might even contain messages
  49.  * added after system startup.
  50.  * To clear the buffer just issue DSKPF_CLEAR_MSGS w/o parameter or
  51.  * data buffer. */
  52. typedef struct _DSKPF_MSGS_DATA {
  53.     USHORT    cb;                /* byte count driver wants
  54.                            to return */
  55.     char    msg[1];                /* some compiler don't
  56.                            support '[]' */
  57. } DSKPF_MSGS_DATA, NEAR * NPDSKPF_MSGS_DATA, FAR * PDSKPF_MSGS_DATA;
  58.  
  59.  
  60. #pragma pack()
  61. #endif /* _DSKPFPUB_H */
  62.