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.

82 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_INCLUDED_
  13. #define _DNSADDDP_INCLUDED_
  14. #define _UNICODE
  15. #define UNICODE
  16. #pragma warning(disable:4214)
  17. #pragma warning(disable:4514)
  18. #pragma warning(disable:4152)
  19. #include <nt.h>
  20. #include <ntrtl.h>
  21. #include <nturtl.h>
  22. #include <windows.h>
  23. #include <windef.h>
  24. // headers are messed up
  25. // if you bring in nt.h, then don't bring in winnt.h and
  26. // then you miss these
  27. #ifndef MAXWORD
  28. #define MINCHAR 0x80
  29. #define MAXCHAR 0x7f
  30. #define MINSHORT 0x8000
  31. #define MAXSHORT 0x7fff
  32. #define MINLONG 0x80000000
  33. #define MAXLONG 0x7fffffff
  34. #define MAXBYTE 0xff
  35. #define MAXWORD 0xffff
  36. #define MAXDWORD 0xffffffff
  37. #endif
  38. #include <winsock2.h>
  39. #include "dnsrpc_c.h" // MIDL generated RPC interface definitions
  40. #include <dnsrpc.h>
  41. #include <stdio.h>
  42. #include <stdlib.h>
  43. #define NO_DNSAPI_DLL
  44. #include "dnslib.h"
  45. //
  46. // If you like having a local variable in functions to hold the function
  47. // name so that you can include it in debug logs without worrying about
  48. // changing all the occurences when the function is renamed, use this
  49. // at the top of the function:
  50. // DBG_FN( "MyFunction" ) <--- NOTE: no semi-colon!!
  51. //
  52. #if DBG
  53. #define DBG_FN( funcName ) static const char * fn = (funcName);
  54. #else
  55. #define DBG_FN( funcName )
  56. #endif
  57. #endif // _DNSADDDP_INCLUDED_