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.

62 lines
975 B

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation
  6. //
  7. // File: ktsock.h
  8. //
  9. // Contents: Kerberos Tunneller, socket operations
  10. // Entrypoint prototypes and shared struct/enum defs.
  11. //
  12. // History: 28-Jun-2001 t-ryanj Created
  13. //
  14. //------------------------------------------------------------------------
  15. #ifndef __KTSOCK_H__
  16. #define __KTSOCK_H__
  17. #include <windows.h>
  18. #include <tchar.h>
  19. #include "ktcontext.h"
  20. BOOL
  21. KtInitWinsock(
  22. VOID
  23. );
  24. VOID
  25. KtCleanupWinsock(
  26. VOID
  27. );
  28. BOOL
  29. KtStartListening(
  30. VOID
  31. );
  32. VOID
  33. KtStopListening(
  34. VOID
  35. );
  36. BOOL
  37. KtSockAccept(
  38. VOID
  39. );
  40. BOOL
  41. KtSockCompleteAccept(
  42. IN PKTCONTEXT pContext
  43. );
  44. BOOL
  45. KtSockRead(
  46. IN PKTCONTEXT pContext
  47. );
  48. BOOL
  49. KtSockWrite(
  50. IN PKTCONTEXT pContext
  51. );
  52. #endif // __KTSOCK_H__