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.

143 lines
3.3 KiB

  1. /***************************************************************************
  2. *
  3. * Copyright (C) 2001-2002 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: dnwsocki.h
  6. * Content: DirectPlay Winsock SP master internal header file.
  7. * History:
  8. * Date By Reason
  9. * ==== == ======
  10. * 03/28/01 masonb Created.
  11. *
  12. ***************************************************************************/
  13. #ifndef __DNWSOCKI_H__
  14. #define __DNWSOCKI_H__
  15. //
  16. // Build configuration include
  17. //
  18. #include "dpnbuild.h"
  19. //
  20. // Public includes
  21. //
  22. #if ((defined(_XBOX)) && (! defined(XBOX_ON_DESKTOP)))
  23. #include <xtl.h>
  24. #include <winsockx.h>
  25. #else // ! _XBOX or XBOX_ON_DESKTOP
  26. #define INCL_WINSOCK_API_TYPEDEFS 1
  27. #ifndef DPNBUILD_NOWINSOCK2
  28. #include <Winsock2.h>
  29. #include <IPHlpApi.h>
  30. #include <WS2TCPIP.h>
  31. #include <mstcpip.h>
  32. #else
  33. #include <winsock.h>
  34. #endif // DPNBUILD_NOWINSOCK2
  35. #include <windows.h>
  36. #ifndef DPNBUILD_NOIPX
  37. #include <WSIPX.h>
  38. #endif // DPNBUILD_NOIPX
  39. #include <mmsystem.h>
  40. #endif // ! _XBOX or XBOX_ON_DESKTOP
  41. #include <tchar.h>
  42. #if ((defined(WINNT)) && (! defined(DPNBUILD_NOMULTICAST)))
  43. #include <ntsecapi.h> // for UNICODE_STRING
  44. #include <madcapcl.h>
  45. #endif // WINNT and ! DPNBUILD_NOMULTICAST
  46. #ifndef DPNBUILD_NOIPV6
  47. #include <wspiapi.h> // avoids hard linking to IPv6 functions, for Win2K support
  48. #endif // ! DPNBUILD_NOIPV6
  49. #ifndef _XBOX
  50. #include <wincrypt.h>
  51. #endif
  52. //
  53. // DirectPlay public includes
  54. //
  55. #include "dplay8.h"
  56. #include "dpaddr.h"
  57. #include "dpsp8.h"
  58. #ifdef UNICODE
  59. #define IDirectPlay8Address_GetURL IDirectPlay8Address_GetURLW
  60. #else
  61. #define IDirectPlay8Address_GetURL IDirectPlay8Address_GetURLA
  62. #endif // UNICODE
  63. //
  64. // DirectPlay private includes
  65. //
  66. #include "osind.h"
  67. #include "dndbg.h"
  68. #include "classbilink.h"
  69. #include "fixedpool.h"
  70. #include "dneterrors.h"
  71. #include "PackBuff.h"
  72. #include "comutil.h"
  73. #include "creg.h"
  74. #include "strutils.h"
  75. #include "createin.h"
  76. #include "HandleTable.h"
  77. #include "ClassFactory.h"
  78. #include "HashTable.h"
  79. #include "ReadWriteLock.h"
  80. #ifndef DPNBUILD_NONATHELP
  81. #include "dpnathlp.h"
  82. #endif // ! DPNBUILD_NONATHELP
  83. #ifdef DPNBUILD_LIBINTERFACE
  84. #include "threadpoolclassfac.h"
  85. #include "dpnaddrextern.h"
  86. #endif // DPNBUILD_LIBINTERFACE
  87. //
  88. // Wsock private includes
  89. //
  90. #undef DPF_SUBCOMP
  91. #define DPF_SUBCOMP DN_SUBCOMP_WSOCK
  92. #include "dpnwsockextern.h"
  93. #include "Pools.h"
  94. #include "Locals.h"
  95. #include "MessageStructures.h"
  96. #include "AdapterEntry.h"
  97. #include "CMDData.h"
  98. #include "DebugUtils.h"
  99. #include "dwinsock.h"
  100. #include "SPAddress.h"
  101. #include "SPData.h"
  102. #include "Utils.h"
  103. #include "WSockSP.h"
  104. #include "ThreadPool.h"
  105. #include "SocketData.h"
  106. #include "IOData.h"
  107. #include "SocketPort.h"
  108. #include "Endpoint.h"
  109. #ifndef DPNBUILD_NOWINSOCK2
  110. // provides us winsock2 support
  111. #define DWINSOCK_EXTERN
  112. #include "dwnsock2.inc"
  113. #undef DWINSOCK_EXTERN
  114. #endif // ! DPNBUILD_NOWINSOCK2
  115. #ifndef DPNBUILD_NOSPUI
  116. #include "IPUI.h"
  117. #endif // !DPNBUILD_NOSPUI
  118. #ifndef DPNBUILD_LIBINTERFACE
  119. #include "Resource.h"
  120. #endif // ! DPNBUILD_LIBINTERFACE
  121. #ifndef HasOverlappedIoCompleted
  122. #define HasOverlappedIoCompleted(lpOverlapped) ((lpOverlapped)->Internal != STATUS_PENDING)
  123. #endif // HasOverlappedIoCompleted
  124. #endif // __DNWSOCKI_H__