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.

55 lines
1.3 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1992 **/
  4. /**********************************************************************/
  5. /*
  6. MPRDev.hxx
  7. Contains MPR constants
  8. FILE HISTORY:
  9. Johnl 08-Jan-1992 Commented
  10. Chuckc 09-Feb-1992 Cleaned up, added MPR_DEVICE class
  11. */
  12. #ifndef _MPRDEV_HXX_
  13. #define _MPRDEV_HXX_
  14. #define DEVICE_FIRST 0
  15. #define DRIVE_FIRST (DEVICE_FIRST)
  16. #define DRIVE_LAST (DRIVE_FIRST+25)
  17. #define LPT_FIRST (DRIVE_LAST+1)
  18. #define LPT_LAST (LPT_FIRST+8)
  19. #define COMM_FIRST (LPT_LAST+1)
  20. #define COMM_LAST (COMM_FIRST+8)
  21. #define DEVICE_LAST (COMM_LAST)
  22. #define DEV_MASK_UNUSED 0x0001
  23. #define DEV_MASK_REMOTE 0x0002
  24. #define DEV_MASK_REMEMBERED 0x0004
  25. #define IsUnavailMask(f) (f & DEV_MASK_UNUSED && f & DEV_MASK_REMEMBERED)
  26. #undef DEVICE_TYPE // DEVICE_TYPE is defined as ULONG in nt.h
  27. enum DEVICE_TYPE
  28. {
  29. DEV_TYPE_ERROR,
  30. DEV_TYPE_DISK,
  31. DEV_TYPE_PRINT,
  32. DEV_TYPE_COMM,
  33. DEV_TYPE_ANY,
  34. DEV_TYPE_UNKNOWN
  35. };
  36. enum DEVICE_USAGE
  37. {
  38. DEV_USAGE_CANCONNECT,
  39. DEV_USAGE_CANDISCONNECT,
  40. DEV_USAGE_ISCONNECTED,
  41. DEV_USAGE_CANDISCONNECTBUTUNUSED
  42. };
  43. #endif // _MPRDEV_HXX_