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.

38 lines
1.5 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORPORATION, 1998
  4. *
  5. * TITLE: FLNFILE.H
  6. *
  7. * VERSION: 1.0
  8. *
  9. * AUTHOR: ShaunIv
  10. *
  11. * DATE: 10/13/1999
  12. *
  13. * DESCRIPTION: Find the lowest numbered files in a given directory with a given
  14. * root filename.
  15. *
  16. *******************************************************************************/
  17. #ifndef __FLNFILE_H_INCLUDED
  18. #define __FLNFILE_H_INCLUDED
  19. #include <windows.h>
  20. namespace NumberedFileName
  21. {
  22. enum
  23. {
  24. FlagOmitDirectory = 0x0000001,
  25. FlagOmitExtension = 0x0000002
  26. };
  27. bool DoesFileExist( LPCTSTR pszFilename );
  28. bool ConstructFilename( LPTSTR szFile, LPCTSTR pszDirectory, LPCTSTR pszFilename, LPCTSTR pszNumberFormat, LPCTSTR pszExtension );
  29. int FindLowestAvailableFileSequence( LPCTSTR pszDirectory, LPCTSTR pszFilename, LPCTSTR pszNumberFormat, bool bAllowUnnumberedFile, int nCount, int nStart=1 );
  30. bool CreateNumberedFileName( DWORD dwFlags, LPTSTR pszPathName, LPCTSTR pszDirectory, LPCTSTR pszFilename, LPCTSTR pszNumberFormat, LPCTSTR pszExtension, int nNumber );
  31. int GenerateLowestAvailableNumberedFileName( DWORD dwFlags, LPTSTR pszPathName, LPCTSTR pszDirectory, LPCTSTR pszFilename, LPCTSTR pszNumberFormat, LPCTSTR pszExtension, bool bAllowUnnumberedFile, int nStart=1 );
  32. int FindHighestNumberedFile( LPCTSTR pszDirectory, LPCTSTR pszFilename );
  33. }
  34. #endif __FLNFILE_H_INCLUDED