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.

53 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-1999.
  5. //
  6. // File: N C D E F I N E . H
  7. //
  8. // Contents: Very generic defines for netcfg. Don't throw non-generic crap
  9. // in here! No iterators for NetCfgBindingPaths, etc. etc.
  10. //
  11. // Notes: Pollute this under penalty of death.
  12. //
  13. // Author: jeffspr 20 Sep 1997
  14. //
  15. //----------------------------------------------------------------------------
  16. #pragma once
  17. #ifndef _NCDEFINE_H_
  18. #define _NCDEFINE_H_
  19. #define BEGIN_CONST_SECTION data_seg(".rdata")
  20. #define END_CONST_SECTION data_seg()
  21. #define celems(_x) (sizeof(_x) / sizeof(_x[0]))
  22. #ifdef NOTHROW
  23. #undef NOTHROW
  24. #endif
  25. #define NOTHROW __declspec(nothrow)
  26. // Defines for C source files including us.
  27. //
  28. #ifndef __cplusplus
  29. #ifndef inline
  30. #define inline __inline
  31. #endif
  32. #endif
  33. // Generic flags used when inserting elements into collections.
  34. //
  35. enum INS_FLAGS
  36. {
  37. INS_ASSERT_IF_DUP = 0x00000100,
  38. INS_IGNORE_IF_DUP = 0x00000200,
  39. INS_APPEND = 0x00000400,
  40. INS_INSERT = 0x00000800,
  41. INS_SORTED = 0x00001000,
  42. INS_NON_SORTED = 0x00002000,
  43. };
  44. #endif // _NCDEFINE_H_