home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / devnews / vol2 / sample3 / common.h next >
Encoding:
C/C++ Source or Header  |  1994-03-05  |  848 b   |  42 lines

  1.  
  2. #define VDDNAME   "VDD.SYS"
  3.  
  4. /*
  5.  *the commands that get passed back and forth between the
  6.  *vdd and the processes
  7.  */
  8.  
  9. #define INIT_COMMAND        0
  10. #define POST_MESSAGE        1
  11. #define READ_QUEUE          2
  12. #define TERMINATE_COMMAND   3
  13.  
  14. /*
  15.  *message types that are currently supported
  16.  */
  17. #define TEXT_MESSAGE        0
  18. #define BINARY              1
  19. #define ENCRYPTED           3
  20.  
  21. #define SIZ_COMMAND_BUF  256
  22. #define ONCE            while(0)
  23.  
  24. typedef struct _message
  25. {
  26.      SGID  SrcSessionIdentifier;
  27.      SGID  DstSessionIdentifier;
  28.      ULONG ulMessageType;
  29.      ULONG ulMessageSubCommand;
  30.      ULONG ulBufferSize;
  31.      PVOID pvMessageData;
  32.      PVOID pvNextMessage;
  33. }MESSAGE,*PMESSAGE;
  34.  
  35. typedef struct _messagelist
  36. {
  37.      PMESSAGE  pHeadList;
  38.      PMESSAGE  pHeadNext;
  39. }MESSAGELIST,*PMESSAGELIST;
  40.  
  41.  
  42.