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.

54 lines
970 B

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. spudp.h
  5. Abstract:
  6. Public header file for supporting UDP conversations during setup
  7. Author:
  8. Sean Selitrennikoff (v-seasel) 16-Jun-1998
  9. Revision History:
  10. --*/
  11. #ifndef _SPUDP_DEFN_
  12. #define _SPUDP_DEFN_
  13. #define BINL_DEFAULT_PORT 4011
  14. extern ULONG RemoteServerIpAddress;
  15. extern ULONG SpUdpSendSequenceNumber;
  16. extern KSPIN_LOCK SpUdpLock;
  17. extern KIRQL SpUdpOldIrql;
  18. typedef NTSTATUS (CALLBACK * SPUDP_RECEIVE_FN)(PVOID DataBuffer, ULONG DataBufferLength);
  19. NTSTATUS
  20. SpUdpConnect(
  21. VOID
  22. );
  23. NTSTATUS
  24. SpUdpDisconnect(
  25. VOID
  26. );
  27. NTSTATUS
  28. SpUdpSendAndReceiveDatagram(
  29. IN PVOID SendBuffer,
  30. IN ULONG SendBufferLength,
  31. IN ULONG RemoteHostAddress,
  32. IN USHORT RemoteHostPort,
  33. IN SPUDP_RECEIVE_FN SpUdpReceiveFunc
  34. );
  35. #endif // _SPUDP_DEFN_