Source code of Windows XP (NT5)
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.

87 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. fsutil.h
  5. Abstract:
  6. Forward declarations
  7. Author:
  8. Ahmed Mohamed (ahmedm) 1-Feb-2000
  9. Revision History:
  10. --*/
  11. #ifndef _FS_UTIL_H
  12. #define _FS_UTIL_H
  13. NTSTATUS
  14. xFsCreate(HANDLE *fd, HANDLE root, LPWSTR name, int len, UINT32 flag,
  15. UINT32 attrib, UINT32 share, UINT32 *disp, UINT32 access,
  16. PVOID eabuf, int easz);
  17. NTSTATUS
  18. xFsOpen(HANDLE *fd, HANDLE root, LPWSTR name, int len, UINT32 access,
  19. UINT32 share, UINT32 flags);
  20. #define xFsClose(fd) NtClose(fd)
  21. NTSTATUS
  22. xFsQueryObjectId(HANDLE fd, PVOID id);
  23. NTSTATUS
  24. xFsDelete(HANDLE root, LPWSTR name, int len);
  25. NTSTATUS
  26. xFsQueryObjectId(HANDLE fd, PVOID id);
  27. NTSTATUS
  28. xFsQueryAttrName(HANDLE root, LPWSTR name, int len, FILE_NETWORK_OPEN_INFORMATION *attr);
  29. NTSTATUS
  30. xFsRename(HANDLE fh, HANDLE root, LPWSTR dname, int dlen);
  31. NTSTATUS
  32. xFsDupFile(HANDLE mvfd, HANDLE tvfd, LPWSTR name, int len, BOOLEAN flag);
  33. NTSTATUS
  34. xFsSetAttr(HANDLE fd, FILE_BASIC_INFORMATION *attr);
  35. NTSTATUS
  36. xFsQueryAttr(HANDLE fd, FILE_NETWORK_OPEN_INFORMATION *attr);
  37. NTSTATUS
  38. xFsReadDir(HANDLE fd, PVOID buf, int *rlen, BOOLEAN flag);
  39. NTSTATUS
  40. xFsCopyTree(HANDLE mvfd, HANDLE vfd);
  41. NTSTATUS
  42. xFsDeleteTree(HANDLE vfd);
  43. NTSTATUS
  44. xFsTouchTree(HANDLE vfd);
  45. #ifdef FS_P_H
  46. extern
  47. LPWSTR
  48. xFsBuildRelativePath(VolInfo_t *vol, int nid, LPWSTR path);
  49. NTSTATUS
  50. xFsGetHandleById(HANDLE root, fs_id_t *id, UINT32 access, HANDLE *fhdl);
  51. DWORD
  52. xFsGetHandlePath(HANDLE fd, LPWSTR path, int *pathlen);
  53. NTSTATUS
  54. xFsGetPathById(HANDLE vfd, fs_id_t *id, LPWSTR name, int *name_len);
  55. #endif
  56. #endif