Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.9 KiB

  1. /***************************************************************************
  2. Name : COMDEVI.H
  3. Comment : Controls Comm interface used by Fax Modem Driver. There are
  4. 4 choices.
  5. (a) If UCOM is defined, it uses the WIN16 Comm API as exported
  6. by USER.EXE (though eventually it gets to COMM.DRV)
  7. (b) If UCOM is not defined and VC is defined, it uses the
  8. COMM.DRV-like interface exported by DLLSCHED.DLL (which
  9. merely serves as a front for VCOMM.386)
  10. (c) If neither UCOM nor VC are defined, it uses Win3.1 COMM.DRV
  11. export directly.
  12. (d) If WIN32 is defined (neither UCOM or VC should be defined at
  13. the same time), it uses the WIN32 Comm API
  14. Functions: (see Prototypes just below)
  15. Revision Log
  16. Date Name Description
  17. -------- ----- ---------------------------------------------------------
  18. ***************************************************************************/
  19. #pragma optimize("e", off) // "e" is buggy
  20. // must be 8K or less, dues to DEADCOMMTIMEOUT. See fcom.c!!
  21. // maybe not...
  22. #define COM_INBUFSIZE 4096
  23. #define COM_OUTBUFSIZE 4096
  24. #define OVL_CLEAR(lpovl) \
  25. { \
  26. if (lpovl) \
  27. { \
  28. (lpovl)->Internal = (lpovl)->InternalHigh=\
  29. (lpovl)->Offset = (lpovl)->OffsetHigh=0; \
  30. if ((lpovl)->hEvent) ResetEvent((lpovl)->hEvent); \
  31. } \
  32. }