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.

76 lines
2.0 KiB

  1. /* File: D:\WACKER\tdll\file_msc.h (Created: 26-Dec-1993)
  2. *
  3. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  4. * All rights reserved
  5. *
  6. * $Revision: 2 $
  7. * $Date: 5/21/02 8:40a $
  8. */
  9. /*
  10. * Error codes
  11. */
  12. #define FM_ERR_BASE 0x400
  13. #define FM_ERR_NO_MEM FM_ERR_BASE+1
  14. #define FM_ERR_BAD_HANDLE FM_ERR_BASE+1
  15. /*
  16. * Constants
  17. */
  18. #define FM_CHUNK_SIZE 64
  19. extern HFILES CreateFilesDirsHdl(const HSESSION hSession);
  20. extern INT InitializeFilesDirsHdl(const HSESSION hSession, HFILES hFile);
  21. extern INT LoadFilesDirsHdl(HFILES hFile);
  22. extern INT DestroyFilesDirsHdl(const HFILES hFile);
  23. extern INT SaveFilesDirsHdl(const HFILES hFile);
  24. extern LPCTSTR filesQuerySendDirectory(HFILES hFile);
  25. extern LPCTSTR filesQueryRecvDirectory(HFILES hFile);
  26. extern VOID filesSetRecvDirectory(HFILES hFile, LPCTSTR pszDir);
  27. extern VOID filesSetSendDirectory(HFILES hFile, LPCTSTR pszDir);
  28. extern HBITMAP fileReadBitmapFromFile(HDC hDC, LPTSTR pszName, int fCmp);
  29. /*
  30. * The following function returns data in the following format:
  31. *
  32. * An array of pointers to strings is alocated. As file names are found, a
  33. * new string is allocated and the pointer to the string is put in the array.
  34. * The array is expanded as needed. Freeing memory is the responsiblity of
  35. * the caller.
  36. */
  37. extern int fileBuildFileList(void **pData,
  38. int *pCnt,
  39. LPCTSTR pszName,
  40. int nSubdir,
  41. LPCTSTR pszDirectory);
  42. extern int fileFinalizeName(LPTSTR pszOldname,
  43. LPTSTR pszOlddir,
  44. LPTSTR pszNewname,
  45. const size_t cb);
  46. extern int fileFinalizeDIR(HSESSION hSession,
  47. LPTSTR pszOldname,
  48. LPTSTR pszNewname);
  49. /*
  50. * The following are generic functions that an operating system SHOULD have.
  51. */
  52. extern int GetFileSizeFromName(TCHAR *pszName,
  53. unsigned long * const pulFileSize);
  54. int SetFileSize(const TCHAR *pszName, unsigned long ulFileSize);
  55. extern int IsValidDirectory(LPCTSTR pszName);
  56. extern int ValidateFileName(LPSTR pszName);