Source code of Windows XP (NT5)
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.

95 lines
2.6 KiB

  1. /*
  2. * project.h - Project header file for LinkInfo DLL.
  3. */
  4. /* System Headers
  5. *****************/
  6. #define BUILDDLL /* for windows.h */
  7. #define STRICT /* for windows.h (robustedness) */
  8. #if DBG
  9. #define DEBUG 1
  10. #endif
  11. /*
  12. * RAIDRAID: (16282) Get rid of warnings about unused Int64 inline
  13. * functions in winnt.h for all modules. Emasculate other warnings only for
  14. * windows.h.
  15. */
  16. #pragma warning(disable:4514) /* "unreferenced inline function" warning */
  17. #pragma warning(disable:4001) /* "single line comment" warning */
  18. #pragma warning(disable:4115) /* "named type definition in parentheses" warning */
  19. #pragma warning(disable:4201) /* "nameless struct/union" warning */
  20. #pragma warning(disable:4209) /* "benign typedef redefinition" warning */
  21. #pragma warning(disable:4214) /* "bit field types other than int" warning */
  22. #pragma warning(disable:4218) /* "must specify at least a storage class or type" warning */
  23. #include <windows.h>
  24. #pragma warning(default:4218) /* "must specify at least a storage class or type" warning */
  25. #pragma warning(default:4214) /* "bit field types other than int" warning */
  26. #pragma warning(default:4209) /* "benign typedef redefinition" warning */
  27. #pragma warning(default:4201) /* "nameless struct/union" warning */
  28. #pragma warning(default:4115) /* "named type definition in parentheses" warning */
  29. #pragma warning(default:4001) /* "single line comment" warning */
  30. #define ReinitializeCriticalSection NoThunkReinitializeCriticalSection
  31. VOID WINAPI NoThunkReinitializeCriticalSection(
  32. LPCRITICAL_SECTION lpCriticalSection
  33. );
  34. #define ALIGN_CNT(x,y) (((x)+(y)-1) & ~((y)-1))
  35. #define ALIGN_PTR(x,y) ALIGN_CNT((DWORD_PTR)(x),(y))
  36. #define ALIGN_DWORD_CNT(x) ALIGN_CNT((x),SIZEOF(DWORD))
  37. #define ALIGN_DWORD_PTR(x) ALIGN_PTR((x),SIZEOF(DWORD))
  38. #define ALIGN_WORD_CNT(x) ALIGN_CNT((x),SIZEOF(WORD))
  39. #define ALIGN_WORD_PTR(x) ALIGN_PTR((x),SIZEOF(WORD))
  40. #define IS_ALIGNED_CNT(x,y) (((x) & ((y)-1)) == 0)
  41. #define IS_ALIGNED_DWORD_CNT(x) IS_ALIGNED_CNT(x, sizeof(DWORD))
  42. #define IS_ALIGNED_WORD_CNT(x) IS_ALIGNED_CNT(x, sizeof(WORD))
  43. #include <limits.h>
  44. #define _LINKINFO_ /* for linkinfo.h */
  45. #include <linkinfo.h>
  46. /* Constants
  47. ************/
  48. #ifdef DEBUG
  49. #define INDENT_STRING " "
  50. #endif
  51. /* Project Headers
  52. ******************/
  53. /* The order of the following include files is significant. */
  54. #include "..\core\stock.h"
  55. #include "..\core\serial.h"
  56. #ifdef DEBUG
  57. #include "..\core\inifile.h"
  58. #include "..\core\resstr.h"
  59. #endif
  60. #include "..\core\debug.h"
  61. #include "..\core\valid.h"
  62. #include "..\core\memmgr.h"
  63. #include "..\core\comc.h"
  64. #include "util.h"
  65. #include "canon.h"