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.

114 lines
3.3 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. Exchange.h
  5. Abstract:
  6. This module defines all of the objects exported by exchange.c in the
  7. NetWare redirector.
  8. Author:
  9. Colin Watson [ColinW] 1-Feb-1993
  10. Revision History:
  11. --*/
  12. #ifndef _NWEXCHANGE_
  13. #define _NWEXCHANGE_
  14. //
  15. // Define the prototype for post_exchange routines.
  16. //
  17. struct _IRP_CONTEXT;
  18. struct _NONPAGED_SCB;
  19. //
  20. // Prototype for the exchange routine which starts an NCB transmission
  21. //
  22. NTSTATUS
  23. _cdecl
  24. Exchange
  25. (
  26. struct _IRP_CONTEXT* pIrpC,
  27. PEX pEx,
  28. char* f,
  29. ...
  30. );
  31. //
  32. // Prototype of routine that can be used to process the response packet
  33. //
  34. NTSTATUS
  35. _cdecl
  36. ExchangeReply(
  37. IN PUCHAR RspData,
  38. IN ULONG BytesIndicated,
  39. char* f,
  40. ... // format specific parameters
  41. );
  42. USHORT
  43. NextSocket(
  44. IN USHORT OldValue
  45. );
  46. VOID
  47. KickQueue(
  48. struct _NONPAGED_SCB* pNpScb
  49. );
  50. NTSTATUS
  51. ServerDatagramHandler(
  52. IN PVOID TdiEventContext, // the event context - pNpScb
  53. IN int SourceAddressLength, // length of the originator of the datagram
  54. IN PVOID SourceAddress, // string describing the originator of the datagram
  55. IN int OptionsLength, // options for the receive
  56. IN PVOID Options, //
  57. IN ULONG ReceiveDatagramFlags, //
  58. IN ULONG BytesIndicated, // number of bytes this indication
  59. IN ULONG BytesAvailable, // number of bytes in complete Tsdu
  60. OUT ULONG *BytesTaken, // number of bytes used
  61. IN PVOID Tsdu, // pointer describing this TSDU, typically a lump of bytes
  62. OUT PIRP *IoRequestPacket // TdiReceive IRP if MORE_PROCESSING_REQUIRED.
  63. );
  64. NTSTATUS
  65. WatchDogDatagramHandler(
  66. IN PVOID TdiEventContext, // the event context - pNpScb
  67. IN int SourceAddressLength, // length of the originator of the datagram
  68. IN PVOID SourceAddress, // string describing the originator of the datagram
  69. IN int OptionsLength, // options for the receive
  70. IN PVOID Options, //
  71. IN ULONG ReceiveDatagramFlags, //
  72. IN ULONG BytesIndicated, // number of bytes this indication
  73. IN ULONG BytesAvailable, // number of bytes in complete Tsdu
  74. OUT ULONG *BytesTaken, // number of bytes used
  75. IN PVOID Tsdu, // pointer describing this TSDU, typically a lump of bytes
  76. OUT PIRP *IoRequestPacket // TdiReceive IRP if MORE_PROCESSING_REQUIRED.
  77. );
  78. NTSTATUS
  79. SendDatagramHandler(
  80. IN PVOID TdiEventContext, // the event context - pNpScb
  81. IN int SourceAddressLength, // length of the originator of the datagram
  82. IN PVOID SourceAddress, // string describing the originator of the datagram
  83. IN int OptionsLength, // options for the receive
  84. IN PVOID Options, //
  85. IN ULONG ReceiveDatagramFlags, //
  86. IN ULONG BytesIndicated, // number of bytes this indication
  87. IN ULONG BytesAvailable, // number of bytes in complete Tsdu
  88. OUT ULONG *BytesTaken, // number of bytes used
  89. IN PVOID Tsdu, // pointer describing this TSDU, typically a lump of bytes
  90. OUT PIRP *IoRequestPacket // TdiReceive IRP if MORE_PROCESSING_REQUIRED.
  91. );
  92. #endif // _NWEXCHANGE_