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.

48 lines
677 B

  1. #define SZ_SIZE MAX_PATH
  2. BOOL
  3. wcs2ansi(
  4. const wchar_t *pwsz,
  5. char *psz,
  6. DWORD pszlen
  7. );
  8. BOOL
  9. ansi2wcs(
  10. const char *psz,
  11. wchar_t *pwsz,
  12. DWORD pwszlen
  13. );
  14. BOOL
  15. tchar2ansi(
  16. const TCHAR *tsz,
  17. char *psz,
  18. DWORD pszlen
  19. );
  20. BOOL
  21. ansi2tchar(
  22. const char *psz,
  23. TCHAR *tsz,
  24. DWORD tszlen
  25. );
  26. void EnsureTrailingBackslash(TCHAR *sz);
  27. void RemoveTrailingBackslash(TCHAR *sz);
  28. void getpath(TCHAR *fullpath, TCHAR *path, DWORD size);
  29. #ifndef DIMA
  30. #define DIMAT(Array, EltType) (sizeof(Array) / sizeof(EltType))
  31. #define DIMA(Array) DIMAT(Array, (Array)[0])
  32. #endif