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.

79 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1995-2000 Microsoft Corporation
  3. Module Name:
  4. DnsAddDp.h
  5. Abstract:
  6. Domain Name System (DNS)
  7. DNS Directory Partition Creation Utility
  8. Author:
  9. Jeff Westhead (jwesth) April 2001
  10. Revision History:
  11. --*/
  12. #ifndef _DNSADDDP_PRECOMP_INCLUDED_
  13. #define _DNSADDDP_PRECOMP_INCLUDED_
  14. #pragma warning(disable:4214)
  15. #pragma warning(disable:4514)
  16. #pragma warning(disable:4152)
  17. #include <nt.h>
  18. #include <ntrtl.h>
  19. #include <nturtl.h>
  20. #include <windows.h>
  21. #include <windef.h>
  22. // headers are messed up
  23. // if you bring in nt.h, then don't bring in winnt.h and
  24. // then you miss these
  25. #ifndef MAXWORD
  26. #define MINCHAR 0x80
  27. #define MAXCHAR 0x7f
  28. #define MINSHORT 0x8000
  29. #define MAXSHORT 0x7fff
  30. #define MINLONG 0x80000000
  31. #define MAXLONG 0x7fffffff
  32. #define MAXBYTE 0xff
  33. #define MAXWORD 0xffff
  34. #define MAXDWORD 0xffffffff
  35. #endif
  36. #include <winsock2.h>
  37. #include "dnsrpc_c.h" // MIDL generated RPC interface definitions
  38. #include <dnsrpc.h>
  39. #include <stdio.h>
  40. #include <stdlib.h>
  41. #define NO_DNSAPI_DLL
  42. #include "dnslib.h"
  43. //
  44. // If you like having a local variable in functions to hold the function
  45. // name so that you can include it in debug logs without worrying about
  46. // changing all the occurences when the function is renamed, use this
  47. // at the top of the function:
  48. // DBG_FN( "MyFunction" ) <--- NOTE: no semi-colon!!
  49. //
  50. #if DBG
  51. #define DBG_FN( funcName ) static const char * fn = (funcName);
  52. #else
  53. #define DBG_FN( funcName )
  54. #endif
  55. #endif // _DNSADDDP_PRECOMP_INCLUDED_