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.

144 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. dhcpcli.h
  5. Abstract:
  6. This file is the central include file for the DHCP client service.
  7. Author:
  8. Manny Weiser (mannyw) 20-Oct-1992
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. Madan Appiah (madana) 21-Oct-1993
  13. --*/
  14. #ifndef _DHCPCLI_H_
  15. #define _DHCPCLI_H_
  16. //
  17. // NT public header files
  18. //
  19. #include <nt.h>
  20. #include <ntrtl.h>
  21. #include <nturtl.h>
  22. #include <windef.h>
  23. #include <winbase.h>
  24. #include <winsock2.h>
  25. #include <crypt.h>
  26. #include <ws2tcpip.h>
  27. #include <mstcpip.h>
  28. //
  29. // DHCP public header files
  30. //
  31. #include <dhcp.h>
  32. #include <dhcplib.h>
  33. #if !defined(VXD)
  34. #include <dhcpcapi.h>
  35. #endif
  36. //
  37. // C Runtime Lib.
  38. //
  39. #include <stdio.h>
  40. #include <stdlib.h>
  41. #include <time.h>
  42. #include <string.h>
  43. //
  44. // Local header files
  45. //
  46. #include <dhcpdef.h>
  47. #include <debug.h>
  48. #include <gmacros.h>
  49. #ifdef VXD
  50. #include <vxdmsg.h>
  51. #else
  52. #include <dhcpmsg.h>
  53. #endif
  54. #include <ipexport.h>
  55. #ifndef VXD
  56. #include <ntddip.h>
  57. #endif
  58. #include <proto.h>
  59. #ifdef VXD
  60. #include <vxdprocs.h>
  61. #endif
  62. //
  63. // debug heap
  64. //
  65. #include <heapx.h>
  66. #ifndef VXD
  67. #ifdef DBG
  68. #ifdef __DHCP_USE_DEBUG_HEAP__
  69. #pragma message ( "*** DHCP Client will use debug heap ***" )
  70. #define DhcpAllocateMemory(x) calloc(1,x)
  71. #define DhcpFreeMemory(x) free(x)
  72. #endif
  73. #endif
  74. #endif
  75. #ifdef CHICAGO
  76. #define _WINNT_
  77. #include <vmm.h>
  78. #endif // CHICAGO
  79. //
  80. // Macros for pageable code.
  81. //
  82. #define CTEMakePageable( _Page, _Routine ) \
  83. alloc_text(_Page,_Routine)
  84. #ifdef CHICAGO
  85. #define ALLOC_PRAGMA
  86. #undef INIT
  87. #define INIT _ITEXT
  88. #undef PAGE
  89. #define PAGE _PTEXT
  90. #define PAGEDHCP _PTEXT
  91. #endif // CHICAGO
  92. #if defined(CHICAGO) && defined(DEBUG)
  93. //
  94. // This is asserts when the pageable code is called at inappropriate time.
  95. // Since in reality all our pageable code is dynamically locked, there is no
  96. // need for this.
  97. //
  98. //#define CTEPagedCode() _Debug_Flags_Service(DFS_TEST_REENTER+DFS_TEST_BLOCK)
  99. #define CTEPagedCode()
  100. #else
  101. #define CTEPagedCode()
  102. #endif
  103. #include <options.h>
  104. #include <optreg.h>
  105. #include <stack.h>
  106. #endif //_DHCPCLI_H_