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.

46 lines
1.5 KiB

  1. #pragma once
  2. #include <ntverp.h>
  3. #define ARM_CHANGESCREEN WM_USER + 2
  4. // Forced to define these myself because they weren't on Win95.
  5. #undef StrRChr
  6. #undef StrChr
  7. #define ARRAYSIZE(x) (sizeof(x)/sizeof(x[0]))
  8. #define MAJOR (VER_PRODUCTMAJORVERSION) // defined in ntverp.h
  9. #define MINOR (VER_PRODUCTMINORVERSION) // defined in ntverp.h
  10. #define BUILD (VER_PRODUCTBUILD) // defined in ntverp.h
  11. // winver 0x0500 definition
  12. #ifndef NOMIRRORBITMAP
  13. #define NOMIRRORBITMAP (DWORD)0x80000000
  14. #endif // NOMIRRORBITMAP
  15. // Relative Version
  16. enum RELVER
  17. {
  18. VER_UNKNOWN, // we haven't checked the version yet
  19. VER_INCOMPATIBLE, // the current os cannot be upgraded using this CD (i.e. win32s)
  20. VER_OLDER, // current os is an older version on NT or is win9x
  21. VER_SAME, // current os is the same version as the CD
  22. VER_NEWER, // the CD contains a newer version of the OS
  23. };
  24. LPSTR StrRChr(LPCSTR lpStart, LPCSTR lpEnd, WORD wMatch);
  25. LPSTR StrChr(LPCSTR lpStart, WORD wMatch);
  26. // LoadString from the correct resource
  27. // try to load in the system default language
  28. // fall back to english if fail
  29. int LoadStringAuto(HMODULE hModule, UINT wID, LPSTR lpBuffer, int cchBufferMax);
  30. BOOL Mirror_IsWindowMirroredRTL(HWND hWnd);
  31. BOOL _PathRemoveFileSpec(LPTSTR psz);
  32. void PathAppend(LPTSTR pszPath, LPTSTR pMore);
  33. BOOL PathFileExists(LPTSTR pszPath);
  34. BOOL IsUserRestricted();
  35. BOOL IsCheckableOS();