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.

62 lines
1.4 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. IoFileUtil.h
  5. Abstract:
  6. This header exposes various file utility functions for the Io subsystem.
  7. Author:
  8. Adrian J. Oney - April 4, 2000
  9. Revision History:
  10. --*/
  11. #define DIRWALK_INCLUDE_FILES 0x00000001
  12. #define DIRWALK_INCLUDE_DIRECTORIES 0x00000002
  13. #define DIRWALK_CULL_DOTPATHS 0x00000004
  14. #define DIRWALK_TRAVERSE 0x00000008
  15. #define DIRWALK_TRAVERSE_MOUNTPOINTS 0x00000010
  16. typedef NTSTATUS (*DIRWALK_CALLBACK)(
  17. IN PUNICODE_STRING FullPathName,
  18. IN PUNICODE_STRING FileName,
  19. IN ULONG FileAttributes,
  20. IN PVOID Context
  21. );
  22. NTSTATUS
  23. IopFileUtilWalkDirectoryTreeTopDown(
  24. IN PUNICODE_STRING Directory,
  25. IN ULONG Flags,
  26. IN DIRWALK_CALLBACK CallbackFunction,
  27. IN PVOID Context
  28. );
  29. NTSTATUS
  30. IopFileUtilWalkDirectoryTreeBottomUp(
  31. IN PUNICODE_STRING Directory,
  32. IN ULONG Flags,
  33. IN DIRWALK_CALLBACK CallbackFunction,
  34. IN PVOID Context
  35. );
  36. NTSTATUS
  37. IopFileUtilClearAttributes(
  38. IN PUNICODE_STRING FullPathName,
  39. IN ULONG FileAttributes
  40. );
  41. NTSTATUS
  42. IopFileUtilRename(
  43. IN PUNICODE_STRING SourcePathName,
  44. IN PUNICODE_STRING DestinationPathName,
  45. IN BOOLEAN ReplaceIfPresent
  46. );