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.

36 lines
1.2 KiB

  1. #pragma once
  2. #include <ntverp.h>
  3. #define ARM_CHANGESCREEN WM_APP + 2
  4. // Forced to define these myself because they weren't on Win95.
  5. #define ARRAYSIZE(x) (sizeof(x)/sizeof(x[0]))
  6. // winver 0x0500 definition
  7. #ifndef NOMIRRORBITMAP
  8. #define NOMIRRORBITMAP (DWORD)0x80000000
  9. #endif // NOMIRRORBITMAP
  10. // Relative Version
  11. enum RELVER
  12. {
  13. VER_UNKNOWN, // we haven't checked the version yet
  14. VER_INCOMPATIBLE, // the current os cannot be upgraded using this CD (i.e. win32s)
  15. VER_OLDER, // current os is an older version on NT or is win9x
  16. VER_SAME, // current os is the same version as the CD
  17. VER_NEWER, // the CD contains a newer version of the OS
  18. };
  19. // LoadString from the correct resource
  20. // try to load in the system default language
  21. // fall back to english if fail
  22. int LoadStringAuto(HMODULE hModule, UINT wID, LPSTR lpBuffer, int cchBufferMax);
  23. BOOL Mirror_IsWindowMirroredRTL(HWND hWnd);
  24. BOOL LocalPathRemoveFileSpec(LPTSTR pszPath);
  25. LPSTR LocalStrCatBuffA(LPSTR pszDest, LPCSTR pszSrc, int cchDestBuffSize);
  26. BOOL LocalPathAppendA(LPTSTR pszPath, LPTSTR pszNew, UINT cchPath);
  27. BOOL SafeExpandEnvStringsA(LPSTR pszSource, LPSTR pszDest, UINT cchDest);