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.

91 lines
1.8 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. NTSTATUS
  21. xFsOpenEx(HANDLE *fd, HANDLE root, LPWSTR buf, int n, UINT32 access,
  22. UINT32 share, UINT32 flags);
  23. #define xFsClose(fd) NtClose(fd)
  24. NTSTATUS
  25. xFsQueryObjectId(HANDLE fd, PVOID id);
  26. NTSTATUS
  27. xFsDelete(HANDLE root, LPWSTR name, int len);
  28. NTSTATUS
  29. xFsQueryObjectId(HANDLE fd, PVOID id);
  30. NTSTATUS
  31. xFsQueryAttrName(HANDLE root, LPWSTR name, int len, FILE_NETWORK_OPEN_INFORMATION *attr);
  32. NTSTATUS
  33. xFsRename(HANDLE fh, HANDLE root, LPWSTR dname, int dlen);
  34. NTSTATUS
  35. xFsDupFile(HANDLE mvfd, HANDLE tvfd, LPWSTR name, int len, BOOLEAN flag);
  36. NTSTATUS
  37. xFsSetAttr(HANDLE fd, FILE_BASIC_INFORMATION *attr);
  38. NTSTATUS
  39. xFsQueryAttr(HANDLE fd, FILE_NETWORK_OPEN_INFORMATION *attr);
  40. NTSTATUS
  41. xFsReadDir(HANDLE fd, PVOID buf, int *rlen, BOOLEAN flag);
  42. NTSTATUS
  43. xFsCopyTree(HANDLE mvfd, HANDLE vfd);
  44. NTSTATUS
  45. xFsDeleteTree(HANDLE vfd);
  46. NTSTATUS
  47. xFsTouchTree(HANDLE vfd);
  48. #ifdef FS_P_H
  49. extern
  50. LPWSTR
  51. xFsBuildRelativePath(VolInfo_t *vol, int nid, LPWSTR path);
  52. NTSTATUS
  53. xFsGetHandleById(HANDLE root, fs_id_t *id, UINT32 access, HANDLE *fhdl);
  54. DWORD
  55. xFsGetHandlePath(HANDLE fd, LPWSTR path, int *pathlen);
  56. NTSTATUS
  57. xFsGetPathById(HANDLE vfd, fs_id_t *id, LPWSTR name, int *name_len);
  58. #endif
  59. #endif