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.

114 lines
3.0 KiB

  1. /*++ BUILD Version: 0001
  2. Copyright (c) 1992-1997 Microsoft Corporation
  3. Module Name:
  4. rwanuser.h
  5. Abstract:
  6. This header file defines constants and types for accessing the NT
  7. RAW WAN driver. Based on ntddtcp.h
  8. Author:
  9. ArvindM October 13, 1997
  10. Revision History:
  11. --*/
  12. #ifndef _RWANUSER__H
  13. #define _RWANUSER__H
  14. #define FSCTL_RAWWAN_BASE FILE_DEVICE_NETWORK
  15. #define _RAWWAN_CTL_CODE(function, method, access) \
  16. CTL_CODE(FSCTL_RAWWAN_BASE, function, method, access)
  17. #define IOCTL_RWAN_MEDIA_SPECIFIC_GLOBAL_QUERY \
  18. _RAWWAN_CTL_CODE(0, METHOD_BUFFERED, FILE_ANY_ACCESS)
  19. #define IOCTL_RWAN_MEDIA_SPECIFIC_GLOBAL_SET \
  20. _RAWWAN_CTL_CODE(1, METHOD_BUFFERED, FILE_ANY_ACCESS)
  21. #define IOCTL_RWAN_MEDIA_SPECIFIC_CONN_HANDLE_QUERY \
  22. _RAWWAN_CTL_CODE(2, METHOD_BUFFERED, FILE_ANY_ACCESS)
  23. #define IOCTL_RWAN_MEDIA_SPECIFIC_CONN_HANDLE_SET \
  24. _RAWWAN_CTL_CODE(3, METHOD_BUFFERED, FILE_ANY_ACCESS)
  25. #define IOCTL_RWAN_MEDIA_SPECIFIC_ADDR_HANDLE_QUERY \
  26. _RAWWAN_CTL_CODE(4, METHOD_BUFFERED, FILE_ANY_ACCESS)
  27. #define IOCTL_RWAN_MEDIA_SPECIFIC_ADDR_HANDLE_SET \
  28. _RAWWAN_CTL_CODE(5, METHOD_BUFFERED, FILE_ANY_ACCESS)
  29. #define IOCTL_RWAN_GENERIC_GLOBAL_QUERY \
  30. _RAWWAN_CTL_CODE(10, METHOD_BUFFERED, FILE_ANY_ACCESS)
  31. #define IOCTL_RWAN_GENERIC_GLOBAL_SET \
  32. _RAWWAN_CTL_CODE(11, METHOD_BUFFERED, FILE_ANY_ACCESS)
  33. #define IOCTL_RWAN_GENERIC_CONN_HANDLE_QUERY \
  34. _RAWWAN_CTL_CODE(12, METHOD_BUFFERED, FILE_ANY_ACCESS)
  35. #define IOCTL_RWAN_GENERIC_CONN_HANDLE_SET \
  36. _RAWWAN_CTL_CODE(13, METHOD_BUFFERED, FILE_ANY_ACCESS)
  37. #define IOCTL_RWAN_GENERIC_ADDR_HANDLE_QUERY \
  38. _RAWWAN_CTL_CODE(14, METHOD_BUFFERED, FILE_ANY_ACCESS)
  39. #define IOCTL_RWAN_GENERIC_ADDR_HANDLE_SET \
  40. _RAWWAN_CTL_CODE(15, METHOD_BUFFERED, FILE_ANY_ACCESS)
  41. typedef UINT RWAN_OBJECT_ID;
  42. //
  43. // Query Information structure. This is passed in as the InputBuffer in
  44. // the DeviceIoControl. The return information is to be filled into the
  45. // OutputBuffer.
  46. //
  47. typedef struct _RWAN_QUERY_INFORMATION_EX
  48. {
  49. RWAN_OBJECT_ID ObjectId;
  50. INT ContextLength;
  51. UCHAR Context[1];
  52. } RWAN_QUERY_INFORMATION_EX, *PRWAN_QUERY_INFORMATION_EX;
  53. //
  54. // Set Information structure. This is passed in as the InputBuffer to
  55. // the DeviceIoControl. There is no OutputBuffer.
  56. //
  57. typedef struct _RWAN_SET_INFORMATION_EX
  58. {
  59. RWAN_OBJECT_ID ObjectId;
  60. INT BufferSize;
  61. UCHAR Buffer[1];
  62. } RWAN_SET_INFORMATION_EX, *PRWAN_SET_INFORMATION_EX;
  63. //
  64. // Raw WAN Object IDs
  65. //
  66. #define RWAN_OID_ADDRESS_OBJECT_FLAGS ((RWAN_OBJECT_ID)1)
  67. #define RWAN_OID_CONN_OBJECT_MAX_MSG_SIZE ((RWAN_OBJECT_ID)2)
  68. //
  69. // Bit definitions for Address Object Flags
  70. //
  71. #define RWAN_AOFLAG_C_ROOT ((ULONG)0x00000001)
  72. #define RWAN_AOFLAG_C_LEAF ((ULONG)0x00000002)
  73. #define RWAN_AOFLAG_D_ROOT ((ULONG)0x00000004)
  74. #define RWAN_AOFLAG_D_LEAF ((ULONG)0x00000008)
  75. #endif // _RWANUSER__H