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.

44 lines
1.3 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1990-1996 Microsoft Corporation
  3. Module Name:
  4. ntddvdm.h
  5. Abstract:
  6. This is the include file that defines all constants and types for
  7. accessing the NTVDM kernel mode virtual devices.
  8. Author:
  9. William Hsieh (williamh) 31-May-1996
  10. Revision History:
  11. --*/
  12. //
  13. // NtDeviceIoControlFile IoControlCode values for this device.
  14. //
  15. // Warning: Remember that the low two bits of the code specify how the
  16. // buffers are passed to the driver!
  17. //
  18. //
  19. #define IOCTL_VDM_BASE FILE_DEVICE_VDM
  20. //
  21. // 32 VDDs. Each VDD has possible 127 private ioctl code
  22. // These values are based on the fact that there are 12 bits reserved
  23. // for function id in each IOCTL code.
  24. //
  25. #define IOCTL_VDM_GROUP_MASK 0xF80
  26. #define IOCTL_VDM_GROUP_SIZE 127
  27. #define IOCTL_VDM_PARALLEL_GROUP 0
  28. #define IOCTL_VDM_PARALLEL_BASE IOCTL_VDM_BASE + IOCTL_VDM_PARALLEL_GROUP * IOCTL_VDM_GROUP_SIZE
  29. #define IOCTL_VDM_PAR_WRITE_DATA_PORT CTL_CODE(IOCTL_VDM_PARALLEL_BASE, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)
  30. #define IOCTL_VDM_PAR_WRITE_CONTROL_PORT CTL_CODE(IOCTL_VDM_PARALLEL_BASE, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)
  31. #define IOCTL_VDM_PAR_READ_STATUS_PORT CTL_CODE(IOCTL_VDM_PARALLEL_BASE, 3, METHOD_BUFFERED, FILE_ANY_ACCESS)