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.

60 lines
1.3 KiB

  1. //
  2. // proj.h: Main header
  3. //
  4. //
  5. #ifndef __PROJ_H__
  6. #define __PROJ_H__
  7. #ifndef STRICT
  8. #define STRICT
  9. #endif
  10. #if defined(WINNT) || defined(WINNT_ENV)
  11. //
  12. // NT uses DBG=1 for its debug builds, but the Win95 shell uses
  13. // DEBUG. Do the appropriate mapping here.
  14. //
  15. #if DBG
  16. #define DEBUG 1
  17. #endif
  18. #endif // WINNT
  19. #include <windows.h>
  20. #include <commctrl.h>
  21. #include <shlobj.h>
  22. #include <debug.h>
  23. //#include <port32.h>
  24. #include <ccstock.h>
  25. //#include <shsemip.h> // for _ILNext
  26. // Some files are compiled twice: once for unicode and once for ansi.
  27. // There are some functions which do not want to be declared twice
  28. // (the ones which don't use string parameters). Otherwise we'd get
  29. // duplicate redefinitions.
  30. //
  31. // These are wrapped with #ifdef DECLARE_ONCE.
  32. #ifdef UNICODE
  33. #define DECLARE_ONCE
  34. #else
  35. #undef DECLARE_ONCE
  36. #endif
  37. // Note that CharNext is not supported on win95. Normally we would
  38. // include w95wraps.h, but comctl does not link to shlwapi and
  39. // we don't want to add this dependency.
  40. #ifdef UNICODE
  41. // Note that this will still break if we ever go back to non-unicode
  42. __inline LPWSTR CharNextWrapW_(LPWSTR psz) {return ++psz;}
  43. #undef CharNext
  44. #define CharNext CharNextWrapW_
  45. #endif
  46. #endif // __PROJ_H__