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.

54 lines
1.4 KiB

  1. #ifndef _FILESHAR_H_
  2. #define _FILESHAR_H_
  3. #ifdef __cplusplus
  4. extern "C" { /* Assume C declarations for C++ */
  5. #endif /* __cplusplus */
  6. DECLARE_HANDLE(HSHFILE);
  7. #ifdef _WIN32
  8. #ifndef _huge
  9. #define _huge
  10. #endif
  11. #endif
  12. HSHFILE WINAPI shfileOpen(LPTSTR szFileName, MMIOINFO FAR* lpmmioinfo,
  13. DWORD dwOpenFlags);
  14. UINT WINAPI shfileClose(HSHFILE hsh, UINT uFlags);
  15. LONG WINAPI shfileRead(HSHFILE hsh, HPSTR pch, LONG cch);
  16. LONG WINAPI shfileWrite(HSHFILE hsh, const char _huge* pch, LONG cch);
  17. LONG WINAPI shfileSeek(HSHFILE hsh, LONG lOffset, int iOrigin);
  18. LONG WINAPI shfileFlush(HSHFILE hsh, UINT uFlags);
  19. LONG WINAPI shfileZero(HSHFILE hsh, LONG lBytes);
  20. LONG WINAPI shfileAddRef(HSHFILE hsh);
  21. LONG WINAPI shfileRelease(HSHFILE hsh);
  22. #ifdef USE_DIRECTIO
  23. BOOL shfileIsDirect(HSHFILE hsh);
  24. void shfileStreamStart(HSHFILE hsh);
  25. void shfileStreamStop(HSHFILE hsh);
  26. #endif
  27. #ifndef _MMRESULT_
  28. #define _MMRESULT_
  29. typedef UINT MMRESULT;
  30. #endif
  31. MMRESULT WINAPI
  32. shfileDescend(HSHFILE hshfile, LPMMCKINFO lpck, const LPMMCKINFO lpckParent, UINT wFlags);
  33. MMRESULT WINAPI
  34. shfileAscend(HSHFILE hshfile, LPMMCKINFO lpck, UINT wFlags);
  35. MMRESULT WINAPI
  36. shfileCreateChunk(HSHFILE hshfile, LPMMCKINFO lpck, UINT wFlags);
  37. #ifdef __cplusplus
  38. } /* End of extern "C" { */
  39. #endif /* __cplusplus */
  40. #endif // _FILESHAR_H_
  41.