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.

69 lines
1008 B

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. simptcp.h
  5. Abstract:
  6. Main header file for simple TCP/IP services.
  7. Author:
  8. David Treadwell (davidtr) 02-Aug-1993
  9. Revision History:
  10. --*/
  11. #pragma once
  12. #define FD_SETSIZE 65536
  13. #define LISTEN_BACKLOG 5
  14. #include <stdio.h>
  15. #include <stdlib.h>
  16. #include <nt.h>
  17. #include <ntrtl.h>
  18. #include <nturtl.h>
  19. #include <windef.h>
  20. #include <winbase.h>
  21. #include <winsock2.h>
  22. #include <ws2tcpip.h>
  23. #include "tcpsvcs.h"
  24. #include "simpmsg.h"
  25. #include "time.h"
  26. #include "winnls.h"
  27. #define ALLOCATE_HEAP(a) RtlAllocateHeap( RtlProcessHeap( ), 0, a )
  28. #define FREE_HEAP(p) RtlFreeHeap( RtlProcessHeap( ), 0, p )
  29. INT
  30. SimpInitializeEventLog (
  31. VOID
  32. );
  33. VOID
  34. SimpTerminateEventLog(
  35. VOID
  36. );
  37. VOID
  38. SimpLogEvent(
  39. DWORD Message,
  40. WORD SubStringCount,
  41. CHAR *SubStrings[],
  42. DWORD ErrorCode
  43. );
  44. #ifdef DBG
  45. #define DEBUG_PRINT(X) DbgPrint X
  46. #else
  47. #define DEBUG_PRINT(X) /* Nothing */
  48. #endif
  49. #pragma hdrstop