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.

67 lines
2.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,
  29. DWORD cchFile,
  30. LPCTSTR pszDirectory,
  31. LPCTSTR pszFilename,
  32. LPCTSTR pszNumberFormat,
  33. LPCTSTR pszExtension);
  34. int FindLowestAvailableFileSequence(LPCTSTR pszDirectory,
  35. LPCTSTR pszFilename,
  36. LPCTSTR pszNumberFormat,
  37. LPCTSTR pszExtension,
  38. bool bAllowUnnumberedFile,
  39. int nCount,
  40. int nStart);
  41. bool CreateNumberedFileName(DWORD dwFlags,
  42. LPTSTR pszPathName,
  43. DWORD cchPathName,
  44. LPCTSTR pszDirectory,
  45. LPCTSTR pszFilename,
  46. LPCTSTR pszNumberFormat,
  47. LPCTSTR pszExtension,
  48. int nNumber );
  49. int GenerateLowestAvailableNumberedFileName(DWORD dwFlags,
  50. LPTSTR pszPathName,
  51. DWORD cchPathName,
  52. LPCTSTR pszDirectory,
  53. LPCTSTR pszFilename,
  54. LPCTSTR pszNumberFormat,
  55. LPCTSTR pszExtension,
  56. bool bAllowUnnumberedFile,
  57. int nStart=1 );
  58. }
  59. #endif __FLNFILE_H_INCLUDED