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.

80 lines
2.4 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1991-1993 Microsoft Corporation
  3. Module Name:
  4. tdint.h
  5. Abstract:
  6. This file defines TDI types specific to the NT environment.
  7. Author:
  8. Mike Massa (mikemas) August 13, 1993
  9. Revision History:
  10. --*/
  11. #ifndef _TDINT_
  12. #define _TDINT_
  13. #include <tdikrnl.h>
  14. typedef PTDI_IND_DISCONNECT PDisconnectEvent;
  15. typedef PTDI_IND_ERROR PErrorEvent;
  16. typedef PTDI_IND_ERROR_EX PErrorEx;
  17. typedef PTDI_IND_CHAINED_RECEIVE PChainedRcvEvent;
  18. #if MILLEN
  19. typedef struct _EventRcvBuffer {
  20. PNDIS_BUFFER erb_buffer;
  21. uint erb_size;
  22. CTEReqCmpltRtn erb_rtn;
  23. PVOID erb_context;
  24. ushort *erb_flags;
  25. } EventRcvBuffer;
  26. typedef struct _ConnectEventInfo {
  27. CTEReqCmpltRtn cei_rtn;
  28. PVOID cei_context;
  29. PTDI_CONNECTION_INFORMATION cei_acceptinfo;
  30. PTDI_CONNECTION_INFORMATION cei_conninfo;
  31. } ConnectEventInfo;
  32. typedef TDI_STATUS (*PRcvEvent)(PVOID EventContext, PVOID ConnectionContext,
  33. ulong Flags, uint Indicated, uint Available,
  34. uint *Taken, uchar *Data, EventRcvBuffer *Buffer);
  35. typedef TDI_STATUS (*PRcvDGEvent)(PVOID EventContext, uint AddressLength,
  36. PTRANSPORT_ADDRESS Address, uint OptionsLength, PVOID
  37. Options, uint Flags, uint Indicated, uint Available,
  38. uint *Taken, uchar *Data, EventRcvBuffer **Buffer);
  39. typedef TDI_STATUS (*PRcvExpEvent)(PVOID EventContext, PVOID ConnectionContext,
  40. ulong Flags, uint Indicated, uint Available,
  41. uint *Taken, uchar *Data, EventRcvBuffer *Buffer);
  42. typedef TDI_STATUS (*PConnectEvent)(PVOID EventContext, uint AddressLength,
  43. PTRANSPORT_ADDRESS Address, uint UserDataLength,
  44. PVOID UserData, uint OptionsLength, PVOID
  45. Options, PVOID *AcceptingID,
  46. ConnectEventInfo *EventInfo);
  47. #else // MILLEN
  48. typedef IRP EventRcvBuffer;
  49. typedef IRP ConnectEventInfo;
  50. typedef PTDI_IND_CONNECT PConnectEvent;
  51. typedef PTDI_IND_RECEIVE PRcvEvent;
  52. typedef PTDI_IND_RECEIVE_DATAGRAM PRcvDGEvent;
  53. typedef PTDI_IND_RECEIVE_EXPEDITED PRcvExpEvent;
  54. #endif // !MILLEN
  55. #endif // ifndef _TDINT_