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.

50 lines
814 B

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation. All Rights Reserved.
  3. Module Name:
  4. mapview.c
  5. Abstract:
  6. This header file contains the prototypes of functions for mapping and
  7. unmapping a contiguous kernel mode buffer to a read only buffer in a
  8. user mode process.
  9. Author:
  10. Joseph Ballantyne
  11. Environment:
  12. Kernel Mode
  13. Revision History:
  14. --*/
  15. // This is a handle to the process that successfully opened a section and also
  16. // successfully mapped a view of that section.
  17. // We only allow our section view to be unmapped, and the section handle closed
  18. // by that same process.
  19. extern HANDLE Process;
  20. NTSTATUS
  21. MapContiguousBufferToUserModeProcess (
  22. PVOID Buffer,
  23. PVOID *MappedBuffer
  24. );
  25. NTSTATUS
  26. UnMapContiguousBufferFromUserModeProcess (
  27. PVOID MappedBuffer
  28. );