Source code of Windows XP (NT5)
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.

195 lines
7.5 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. adfext.h
  5. Abstract:
  6. This file contains all declarations
  7. used in handling NBF address files.
  8. Author:
  9. Chaitanya Kodeboyina
  10. Environment:
  11. User Mode
  12. --*/
  13. #ifndef __ADFEXT_H
  14. #define __ADFEXT_H
  15. //
  16. // Macros
  17. //
  18. #ifndef FIELD_OFFSET
  19. #define FIELD_OFFSET(type, field) ((LONG)&(((type *)0)->field))
  20. #endif//FIELD_OFFSET
  21. #define OFFSET(field) FIELD_OFFSET(TP_ADDRESS_FILE, field)
  22. //
  23. // Helper Prototypes
  24. //
  25. UINT ReadAddressFile(PTP_ADDRESS_FILE pAddrFile, ULONG proxyPtr);
  26. UINT PrintAddressFile(PTP_ADDRESS_FILE pAddrFile, ULONG proxyPtr, ULONG printDetail);
  27. UINT FreeAddressFile(PTP_ADDRESS_FILE pAddrFile);
  28. VOID PrintAddressFileList(PVOID ListEntryPointer, ULONG ListEntryProxy, ULONG printDetail);
  29. //
  30. // Constants
  31. //
  32. StructAccessInfo AddressFileInfo =
  33. {
  34. "AddressFile",
  35. {
  36. { "Type", OFFSET(Type), sizeof(CSHORT), NULL, LOW },
  37. { "Size", OFFSET(Size), sizeof(USHORT), NULL, LOW },
  38. { "Linkage", OFFSET(Linkage), sizeof(LIST_ENTRY), NULL, LOW },
  39. { "ReferenceCount",
  40. OFFSET(ReferenceCount), sizeof(ULONG), NULL, LOW },
  41. { "Address", OFFSET(Address), sizeof(PTP_ADDRESS), NULL, LOW },
  42. { "Device Context",
  43. OFFSET(Provider), sizeof(PDEVICE_CONTEXT),NULL, LOW },
  44. { "State", OFFSET(State), sizeof(UCHAR), NULL, LOW },
  45. { "@", 0, 0, NULL, LOW },
  46. { "FileObject", OFFSET(FileObject), sizeof(PFILE_OBJECT), NULL, LOW },
  47. { "CloseIrp",
  48. OFFSET(CloseIrp),
  49. sizeof(PIRP), NULL, LOW },
  50. { "@", 0, 0, NULL, LOW },
  51. { "ConnectIndicationInProgress",
  52. OFFSET(ConnectIndicationInProgress),
  53. sizeof(BOOLEAN), NULL, LOW },
  54. { "@", 0, 0, NULL, LOW },
  55. { "RegisteredConnectionHandler",
  56. OFFSET(RegisteredConnectionHandler),
  57. sizeof(BOOLEAN), NULL, LOW },
  58. { "ConnectionHandler",
  59. OFFSET(ConnectionHandler),
  60. sizeof(PTDI_IND_CONNECT),
  61. PrintClosestSymbol, LOW },
  62. { "ConnectionHandlerContext",
  63. OFFSET(ConnectionHandlerContext),
  64. sizeof(PVOID), NULL, LOW },
  65. { "@", 0, 0, NULL, LOW },
  66. { "RegisteredDisconnectHandler",
  67. OFFSET(RegisteredDisconnectHandler),
  68. sizeof(BOOLEAN), NULL, LOW },
  69. { "DisconnectHandler",
  70. OFFSET(DisconnectHandler),
  71. sizeof(PTDI_IND_DISCONNECT),
  72. PrintClosestSymbol, LOW },
  73. { "DisconnectHandlerContext",
  74. OFFSET(DisconnectHandlerContext),
  75. sizeof(PVOID), NULL, LOW },
  76. { "@", 0, 0, NULL, LOW },
  77. { "RegisteredReceiveHandler",
  78. OFFSET(RegisteredReceiveHandler),
  79. sizeof(BOOLEAN), NULL, LOW },
  80. { "ReceiveHandler",
  81. OFFSET(ReceiveHandler),
  82. sizeof(PTDI_IND_RECEIVE),
  83. PrintClosestSymbol, LOW },
  84. { "ReceiveHandlerContext",
  85. OFFSET(ReceiveHandlerContext),
  86. sizeof(PVOID), NULL, LOW },
  87. { "@", 0, 0, NULL, LOW },
  88. { "RegisteredReceiveDatagramHandler",
  89. OFFSET(RegisteredReceiveDatagramHandler),
  90. sizeof(BOOLEAN), NULL, LOW },
  91. { "ReceiveDatagramHandler",
  92. OFFSET(ReceiveDatagramHandler),
  93. sizeof(PTDI_IND_RECEIVE_DATAGRAM),
  94. PrintClosestSymbol, LOW },
  95. { "ReceiveDatagramHandlerContext",
  96. OFFSET(ReceiveDatagramHandlerContext),
  97. sizeof(PVOID), NULL, LOW },
  98. { "@", 0, 0, NULL, LOW },
  99. { "RegisteredExpeditedDataHandler",
  100. OFFSET(RegisteredExpeditedDataHandler),
  101. sizeof(BOOLEAN), NULL, LOW },
  102. { "ExpeditedDataHandler",
  103. OFFSET(ExpeditedDataHandler),
  104. sizeof(PTDI_IND_RECEIVE_EXPEDITED),
  105. PrintClosestSymbol, LOW },
  106. { "ExpeditedDataHandlerContext",
  107. OFFSET(ExpeditedDataHandlerContext),
  108. sizeof(PVOID), NULL, LOW },
  109. { "@", 0, 0, NULL, LOW },
  110. { "RegisteredErrorHandler",
  111. OFFSET(RegisteredErrorHandler),
  112. sizeof(BOOLEAN), NULL, LOW },
  113. { "ErrorHandler", OFFSET(ErrorHandler), sizeof(PTDI_IND_ERROR),
  114. PrintClosestSymbol, LOW },
  115. { "ErrorHandlerContext",
  116. OFFSET(ErrorHandlerContext),
  117. sizeof(PVOID), NULL, LOW },
  118. { "@", 0, 0, NULL, LOW },
  119. { "ConnectionDatabase",
  120. OFFSET(ConnectionDatabase),
  121. sizeof(LIST_ENTRY),
  122. PrintConnectionListOnAddrFile, NOR },
  123. { "@", 0, 0, NULL, LOW },
  124. { "ReceiveDatagramQueue",
  125. OFFSET(ReceiveDatagramQueue),
  126. sizeof(LIST_ENTRY),
  127. PrintIRPListFromListEntry, LOW },
  128. { "", 0, 0, NULL, LOW },
  129. 0
  130. }
  131. };
  132. #endif // __ADFEXT_H