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.

55 lines
1.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997 - 1998.
  5. //
  6. // File: fullpath.hxx
  7. //
  8. // Contents: Full path manipulation
  9. //
  10. // Classes: CFullPath
  11. //
  12. // History: 2-18-97 srikants Created
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. //+---------------------------------------------------------------------------
  17. //
  18. // Class: CFullPath
  19. //
  20. // Purpose: Keeps track of full path names for files.
  21. //
  22. // Interface:
  23. //
  24. // History: 27-Mar-92 AmyA Created
  25. //
  26. //----------------------------------------------------------------------------
  27. class CFullPath
  28. {
  29. public:
  30. CFullPath ( WCHAR const * pwszPath );
  31. CFullPath ( WCHAR const * pwszPath, unsigned ccPath );
  32. void MakePath( WCHAR const * pFileName );
  33. void MakePath( WCHAR const * pFileName, unsigned ccFileName );
  34. const WCHAR * GetBuf() { return _lcaseFunnyPath.GetActualPath(); }
  35. const CLowerFunnyPath & GetFunnyPath()
  36. {
  37. return _lcaseFunnyPath;
  38. }
  39. private:
  40. unsigned _ccActualPathLength;
  41. CLowerFunnyPath _lcaseFunnyPath;
  42. };