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.

85 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. irioctl.h
  5. Abstract:
  6. Contains definitions for private ioctls for the IrDA TDI driver used
  7. by irmon and the IrDA winsock helper dll.
  8. Author:
  9. mbert 9-98
  10. --*/
  11. typedef struct
  12. {
  13. ULONG Flags;
  14. #define LF_CONNECTED 0x00000001
  15. #define LF_TX 0x00000002
  16. #define LF_RX 0x00000004
  17. #define LF_INTERRUPTED 0x00000008
  18. #define LF_NO_UI 0x80000000
  19. ULONG ConnectSpeed;
  20. CHAR ConnectedDeviceId[4];
  21. } IRLINK_STATUS, *PIRLINK_STATUS;
  22. #define FSCTL_IRDA_BASE FILE_DEVICE_NETWORK
  23. #define _IRDA_CTL_CODE(function, method, access) \
  24. CTL_CODE(FSCTL_IRDA_BASE, function, method, access)
  25. #define IOCTL_IRDA_GET_INFO_ENUM_DEV \
  26. _IRDA_CTL_CODE(0, METHOD_BUFFERED, FILE_ANY_ACCESS)
  27. #define IOCTL_IRDA_SET_OPTIONS \
  28. _IRDA_CTL_CODE(1, METHOD_BUFFERED, FILE_ANY_ACCESS)
  29. #define IOCTL_IRDA_GET_SEND_PDU_LEN \
  30. _IRDA_CTL_CODE(2, METHOD_BUFFERED, FILE_ANY_ACCESS)
  31. #define IOCTL_IRDA_QUERY_IAS \
  32. _IRDA_CTL_CODE(3, METHOD_BUFFERED, FILE_ANY_ACCESS)
  33. #define IOCTL_IRDA_SET_IAS \
  34. _IRDA_CTL_CODE(4, METHOD_BUFFERED, FILE_ANY_ACCESS)
  35. #define IOCTL_IRDA_DEL_IAS_ATTRIB \
  36. _IRDA_CTL_CODE(5, METHOD_BUFFERED, FILE_ANY_ACCESS)
  37. #define IOCTL_IRDA_LAZY_DISCOVERY \
  38. _IRDA_CTL_CODE(6, METHOD_BUFFERED, FILE_ANY_ACCESS)
  39. #define IOCTL_IRDA_LINK_STATUS \
  40. _IRDA_CTL_CODE(10, METHOD_BUFFERED, FILE_ANY_ACCESS)
  41. #define IOCTL_IRDA_SET_LAZY_DISCOVERY_INTERVAL \
  42. _IRDA_CTL_CODE(11, METHOD_BUFFERED, FILE_ANY_ACCESS)
  43. #define IOCTL_IRDA_LINK_STATUS_NB \
  44. _IRDA_CTL_CODE(12, METHOD_BUFFERED, FILE_ANY_ACCESS)
  45. #define IOCTL_IRDA_FLUSH_DISCOVERY_CACHE \
  46. _IRDA_CTL_CODE(13, METHOD_BUFFERED, FILE_ANY_ACCESS)
  47. #define IOCTL_IRDA_GET_DBG_MSGS \
  48. _IRDA_CTL_CODE(20, METHOD_BUFFERED, FILE_ANY_ACCESS)
  49. #define IOCTL_IRDA_GET_DBG_SETTINGS \
  50. _IRDA_CTL_CODE(21, METHOD_BUFFERED, FILE_ANY_ACCESS)
  51. #define IOCTL_IRDA_SET_DBG_SETTINGS \
  52. _IRDA_CTL_CODE(22, METHOD_BUFFERED, FILE_ANY_ACCESS)
  53. #define OPT_IRLPT_MODE 0x01
  54. #define OPT_9WIRE_MODE 0x02
  55. #define LINK_STATUS_IDLE 0
  56. #define LINK_STATUS_DISCOVERING 1
  57. #define LINK_STATUS_CONNECTED 2
  58. #define LINK_STATUS_INTERRUPTED 3