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.

70 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name:
  4. common.h
  5. Abstract:
  6. Contains all includes, definitions, types, prototypes for ipconfig
  7. Author:
  8. Richard L Firth (rfirth) 20-May-1994
  9. Revision History:
  10. 20-May-1994 rfirth Created
  11. 20-May-97 MohsinA NT50 PNP.
  12. 31-Jul-97 MohsinA Patterns.
  13. 10-Mar-98 chunye Renamed as common.h for ipcfgdll support.
  14. --*/
  15. #ifndef _COMMON_H_
  16. #define _COMMON_H_ 1
  17. #include <nt.h>
  18. #include <ntrtl.h>
  19. #include <nturtl.h>
  20. #include <ntddtcp.h>
  21. #include <stdio.h>
  22. #include <stdlib.h>
  23. #include <winsock2.h>
  24. #include <ws2tcpip.h>
  25. #include <tdistat.h>
  26. #include <tdiinfo.h>
  27. #include <llinfo.h>
  28. #include <ipinfo.h>
  29. #include <dhcpcapi.h>
  30. #include <wscntl.h>
  31. #include <assert.h>
  32. #include <ipexport.h>
  33. #include "debug.h"
  34. //
  35. // manifests
  36. //
  37. #define MAX_ALLOWED_ADAPTER_NAME_LENGTH (MAX_ADAPTER_NAME_LENGTH + 256)
  38. #define STRLEN strlen
  39. #define STRICMP _stricmp
  40. #define STRNICMP _strnicmp
  41. //
  42. // macros
  43. //
  44. #define NEW_MEMORY(size) LocalAlloc(LMEM_FIXED, size)
  45. #define NEW(thing) (thing *)LocalAlloc(LPTR, sizeof(thing))
  46. #define ReleaseMemory(p) LocalFree((HLOCAL)(p))
  47. #endif