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.

75 lines
1.8 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1992, Microsoft Corporation.
  4. //
  5. // File: dfslib.h
  6. //
  7. // Contents:
  8. //
  9. // Functions:
  10. //
  11. // History: 27 May 1992 PeterCo Created.
  12. //
  13. //-----------------------------------------------------------------------------
  14. #ifdef ExAllocatePool
  15. #undef ExAllocatePool
  16. #endif
  17. #define ExAllocatePool(pool, size) malloc(size)
  18. #define ExAllocatePoolWithTag(pool, size, tag) malloc(size)
  19. #if defined ExFreePool
  20. #undef ExFreePool
  21. #endif
  22. #define ExFreePool(ptr) free(ptr)
  23. #define ExRaiseStatus(sts) RtlRaiseStatus(sts)
  24. #ifdef DebugTrace
  25. #undef DebugTrace
  26. #endif
  27. #define DebugTrace(a, b, c, d)
  28. #define ZwCreateFile NtCreateFile
  29. #define ZwOpenFile NtOpenFile
  30. #define ZwFlushVirtualMemory NtFlushVirtualMemory
  31. #define ZwSetInformationFile NtSetInformationFile
  32. #define ZwQueryInformationFile NtQueryInformationFile
  33. #define ZwCreateSection NtCreateSection
  34. #define ZwClose NtClose
  35. #define ZwQuerySection NtQuerySection
  36. #define ZwMapViewOfSection NtMapViewOfSection
  37. #define ZwUnmapViewOfSection NtUnmapViewOfSection
  38. #define ZwReadFile NtReadFile
  39. #define ZwWriteFile NtWriteFile
  40. #define try_return(S) { S; goto try_exit; }
  41. //
  42. // These are from io.h
  43. //
  44. #define close _close
  45. #define creat _creat
  46. #define write _write
  47. int _close(int);
  48. int _creat(const char *, int);
  49. int _write(int, const void *, unsigned int);
  50. NTSTATUS
  51. DfsOpen(
  52. IN OUT PHANDLE DfsHandle,
  53. IN PUNICODE_STRING DfsName
  54. );
  55. NTSTATUS
  56. DfsFsctl(
  57. IN HANDLE DfsHandle,
  58. IN ULONG FsControlCode,
  59. IN PVOID InputBuffer OPTIONAL,
  60. IN ULONG InputBufferLength,
  61. OUT PVOID OutputBuffer OPTIONAL,
  62. IN ULONG OutputBufferLength
  63. );