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.

71 lines
2.1 KiB

  1. /****************************************************************************************
  2. * *
  3. * Header: SPX_DEFS.H *
  4. * *
  5. * Creation: 15th October 1998 *
  6. * *
  7. * Author: Paul Smith *
  8. * *
  9. * Version: 1.0.0 *
  10. * *
  11. * Contains: Definitions for all the common PnP and power code. *
  12. * *
  13. ****************************************************************************************/
  14. #if !defined(SPX_DEFS_H)
  15. #define SPX_DEFS_H
  16. static const PHYSICAL_ADDRESS PhysicalZero = {0};
  17. #define DEVICE_OBJECT_NAME_LENGTH 128
  18. #define SYMBOLIC_NAME_LENGTH 128
  19. #define SERIAL_DEVICE_MAP L"SERIALCOMM"
  20. // This define gives the default Object directory
  21. // that we should use to insert the symbolic links
  22. // between the NT device name and namespace used by
  23. // that object directory.
  24. #define DEFAULT_DIRECTORY L"DosDevices"
  25. #define MAX_ERROR_LOG_INSERT 52
  26. // File IDs for Event Logging (top 8 bits only).
  27. #define SPX_INIT_C ((ULONG)0x01000000)
  28. #define SPX_PNP_C ((ULONG)0x02000000)
  29. #define SPX_POWR_C ((ULONG)0x03000000)
  30. #define SPX_DISP_C ((ULONG)0x04000000)
  31. #define SPX_UTILS_C ((ULONG)0x05000000)
  32. #define SPX_IIOC_C ((ULONG)0x06000000)
  33. // COMMON_OBJECT_DATA.PnpPowerFlags definitions...
  34. #define PPF_STARTED 0x00000001 // Device has been started
  35. #define PPF_STOP_PENDING 0x00000002 // Device stop is pending
  36. #define PPF_REMOVE_PENDING 0x00000004 // Device remove is pending
  37. #define PPF_REMOVED 0x00000008 // Device has been removed
  38. #define PPF_POWERED 0x00000010 // Device has been powered up
  39. typedef enum _SPX_MEM_COMPARES
  40. {
  41. AddressesAreEqual,
  42. AddressesOverlap,
  43. AddressesAreDisjoint
  44. }SPX_MEM_COMPARES, *PSPX_MEM_COMPARES;
  45. // IRP Counters
  46. #define IRP_SUBMITTED 0x00000001
  47. #define IRP_COMPLETED 0x00000002
  48. #define IRP_QUEUED 0x00000003
  49. #define IRP_DEQUEUED 0x00000004
  50. extern UNICODE_STRING SavedRegistryPath; // Driver Registry Path.
  51. #endif // End of SPX_DEFS.H