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.

41 lines
671 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. Win9xPath.h
  5. History:
  6. 10/20/2000 robkenny Created
  7. --*/
  8. #include <windows.h>
  9. namespace ShimLib
  10. {
  11. inline bool bIsPathSep(char ch)
  12. {
  13. return ch == '\\' || ch == '/';
  14. }
  15. inline bool bIsPathSep(WCHAR ch)
  16. {
  17. return ch == L'\\' || ch == L'/';
  18. }
  19. const WCHAR * GetDrivePortion(const WCHAR * uncorrected);
  20. // Non-const version of above routine.
  21. inline WCHAR * GetDrivePortion(WCHAR * uncorrected)
  22. {
  23. return (WCHAR *)GetDrivePortion((const WCHAR*)uncorrected);
  24. }
  25. WCHAR * W9xPathMassageW(const WCHAR * uncorrect);
  26. }; // end of namespace ShimLib