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.

58 lines
1.5 KiB

  1. /*
  2. * _ F S I M P L . H
  3. *
  4. * File System Implementation of DAV
  5. *
  6. * Copyright 1986-1997 Microsoft Corporation, All Rights Reserved
  7. */
  8. #ifndef __FSIMPL_H_
  9. #define __FSIMPL_H_
  10. extern const WCHAR gc_wszPathPrefix[];
  11. extern const UINT gc_cchwszPathPrefix;
  12. // Support functions ---------------------------------------------------------
  13. //
  14. #include <ex\rgiter.h>
  15. class auto_ref_handle;
  16. VOID TransmitFileRanges (LPMETHUTIL pmu,
  17. const auto_ref_handle& hf,
  18. DWORD dwSize,
  19. CRangeBase *priRanges,
  20. LPCWSTR pwszContent);
  21. // Tracing -------------------------------------------------------------------
  22. //
  23. #ifdef DBG
  24. extern BOOL g_fDavTrace;
  25. #define DavTrace !g_fDavTrace?0:DebugTraceFn
  26. #else
  27. #define DavTrace NOP_FUNCTION
  28. #endif
  29. // Instance ------------------------------------------------------------------
  30. //
  31. extern HINSTANCE g_hinst;
  32. extern CHAR gc_szVersion[];
  33. // Gives the count of elements in an array
  34. //
  35. #define CElems(_rg) (sizeof(_rg)/sizeof(_rg[0]))
  36. // free the global DBCreateCommand object
  37. //
  38. VOID ReleaseDBCreateCommandObject();
  39. // Locking support functions -------------------------------------------------
  40. // (Implemented in fslock.cpp)
  41. //
  42. BOOL FGetLockHandle (LPMETHUTIL pmu, LPCWSTR pwszPath,
  43. DWORD dwAccess, LPCWSTR pwszLockTokenHeader,
  44. auto_ref_handle * phandle);
  45. SCODE ScDoLockedCopy (LPMETHUTIL pmu, CParseLockTokenHeader * plth,
  46. LPCWSTR pwszSrc, LPCWSTR pwszDst);
  47. #endif // __FSIMPL_H_