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.

143 lines
2.0 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 <ws2tcpip.h>
  26. #include <mstcpip.h>
  27. //
  28. // DHCP public header files
  29. //
  30. #include <dhcp.h>
  31. #include <dhcplib.h>
  32. #if !defined(VXD)
  33. #include <dhcpcapi.h>
  34. #endif
  35. //
  36. // C Runtime Lib.
  37. //
  38. #include <stdio.h>
  39. #include <stdlib.h>
  40. #include <time.h>
  41. #include <string.h>
  42. //
  43. // Local header files
  44. //
  45. #include <dhcpdef.h>
  46. #include <debug.h>
  47. #include <gmacros.h>
  48. #ifdef VXD
  49. #include <vxdmsg.h>
  50. #else
  51. #include <dhcpmsg.h>
  52. #endif
  53. #include <ipexport.h>
  54. #ifndef VXD
  55. #include <ntddip.h>
  56. #endif
  57. #include <proto.h>
  58. #ifdef VXD
  59. #include <vxdprocs.h>
  60. #endif
  61. //
  62. // debug heap
  63. //
  64. #include <heapx.h>
  65. #ifndef VXD
  66. #ifdef DBG
  67. #ifdef __DHCP_USE_DEBUG_HEAP__
  68. #pragma message ( "*** DHCP Client will use debug heap ***" )
  69. #define DhcpAllocateMemory(x) calloc(1,x)
  70. #define DhcpFreeMemory(x) free(x)
  71. #endif
  72. #endif
  73. #endif
  74. #ifdef CHICAGO
  75. #define _WINNT_
  76. #include <vmm.h>
  77. #endif // CHICAGO
  78. //
  79. // Macros for pageable code.
  80. //
  81. #define CTEMakePageable( _Page, _Routine ) \
  82. alloc_text(_Page,_Routine)
  83. #ifdef CHICAGO
  84. #define ALLOC_PRAGMA
  85. #undef INIT
  86. #define INIT _ITEXT
  87. #undef PAGE
  88. #define PAGE _PTEXT
  89. #define PAGEDHCP _PTEXT
  90. #endif // CHICAGO
  91. #if defined(CHICAGO) && defined(DEBUG)
  92. //
  93. // This is asserts when the pageable code is called at inappropriate time.
  94. // Since in reality all our pageable code is dynamically locked, there is no
  95. // need for this.
  96. //
  97. //#define CTEPagedCode() _Debug_Flags_Service(DFS_TEST_REENTER+DFS_TEST_BLOCK)
  98. #define CTEPagedCode()
  99. #else
  100. #define CTEPagedCode()
  101. #endif
  102. #include <options.h>
  103. #include <optreg.h>
  104. #include <stack.h>
  105. #endif //_DHCPCLI_H_