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.

145 lines
2.3 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. #ifdef VXD
  23. #define WIN32_LEAN_AND_MEAN // Don't include extraneous headers
  24. #endif
  25. #include <windows.h> // (spec. winsock.h)
  26. #include <winsock.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. #if defined(_PNP_POWER_)
  54. #include <ipexport.h>
  55. #ifndef VXD
  56. #include <ntddip.h>
  57. #endif
  58. #endif _PNP_POWER_
  59. #include <proto.h>
  60. #ifdef VXD
  61. #include <vxdprocs.h>
  62. #endif
  63. //
  64. // debug heap
  65. //
  66. #include <heapx.h>
  67. #ifndef VXD
  68. #ifdef DBG
  69. #ifdef __DHCP_USE_DEBUG_HEAP__
  70. #pragma message ( "*** DHCP Client will use debug heap ***" )
  71. #define DhcpAllocateMemory(x) ALLOCATE_MEMORY(LPTR,x)
  72. #define DhcpFreeMemory(x) FREE_MEMORY(x)
  73. #endif
  74. #endif
  75. #endif
  76. #ifdef CHICAGO
  77. #define _WINNT_
  78. #include <vmm.h>
  79. #endif // CHICAGO
  80. //
  81. // Macros for pageable code.
  82. //
  83. #define CTEMakePageable( _Page, _Routine ) \
  84. alloc_text(_Page,_Routine)
  85. #ifdef CHICAGO
  86. #define ALLOC_PRAGMA
  87. #undef INIT
  88. #define INIT _ITEXT
  89. #undef PAGE
  90. #define PAGE _PTEXT
  91. #define PAGEDHCP _PTEXT
  92. #endif // CHICAGO
  93. #if defined(CHICAGO) && defined(DEBUG)
  94. //
  95. // This is asserts when the pageable code is called at inappropriate time.
  96. // Since in reality all our pageable code is dynamically locked, there is no
  97. // need for this.
  98. //
  99. //#define CTEPagedCode() _Debug_Flags_Service(DFS_TEST_REENTER+DFS_TEST_BLOCK)
  100. #define CTEPagedCode()
  101. #else
  102. #define CTEPagedCode()
  103. #endif
  104. #include <options.h>
  105. #include <optreg.h>
  106. #include <stack.h>
  107. #endif //_DHCPCLI_H_