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.

32 lines
933 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: N C F I L E . H
  7. //
  8. // Contents: Really useful file functions that are implemented in shlwapi
  9. // but which aren't exported.
  10. //
  11. // Notes: Stolen from shell32\path.c
  12. //
  13. //----------------------------------------------------------------------------
  14. #pragma once
  15. #ifndef _NCFILE_H_
  16. #define _NCFILE_H_
  17. STDAPI_(BOOL) PathTruncateKeepExtension( LPCTSTR pszDir, LPTSTR pszSpec, int iTruncLimit );
  18. STDAPI_(int) PathCleanupSpec2(LPCTSTR pszDir, LPTSTR pszSpec);
  19. // note: this is the stolen implementation of PathCleanupSpecEx, which is
  20. // defined in shlobjp.h but not exported in shell32...
  21. //
  22. STDAPI_(int) PathCleanupSpecEx2(LPCTSTR pszDir, LPTSTR pszSpec);
  23. BOOL fFileExistsAtPath(LPCTSTR pszFile, LPCTSTR pszPath);
  24. #endif // _NCFILE_H_