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.

68 lines
980 B

  1. /*++
  2. Copyright (c) 1999-2001 Microsoft Corporation
  3. Module Name:
  4. mmap.h
  5. Abstract:
  6. Public header for memmory map class.
  7. Author:
  8. Matthew D Hendel (math) 16-Sept-1999
  9. Revision History:
  10. --*/
  11. #define HR_REGION_CONFLICT HRESULT_FROM_NT(STATUS_CONFLICTING_ADDRESSES)
  12. BOOL
  13. MemoryMap_Create(
  14. VOID
  15. );
  16. BOOL
  17. MemoryMap_Destroy(
  18. VOID
  19. );
  20. HRESULT
  21. MemoryMap_AddRegion(
  22. ULONG64 BaseOfRegion,
  23. ULONG SizeOfRegion,
  24. PVOID Buffer,
  25. PVOID UserData,
  26. BOOL AllowOverlap
  27. );
  28. BOOL
  29. MemoryMap_ReadMemory(
  30. ULONG64 BaseOfRange,
  31. OUT PVOID Buffer,
  32. ULONG SizeOfRange,
  33. PULONG BytesRead
  34. );
  35. BOOL
  36. MemoryMap_CheckMap(
  37. IN PVOID Map
  38. );
  39. BOOL
  40. MemoryMap_GetRegionInfo(
  41. IN ULONG64 Addr,
  42. OUT ULONG64* BaseOfRegion, OPTIONAL
  43. OUT ULONG* SizeOfRegion, OPTIONAL
  44. OUT PVOID* Buffer, OPTIONAL
  45. OUT PVOID* UserData OPTIONAL
  46. );
  47. BOOL
  48. MemoryMap_RemoveRegion(
  49. IN ULONG64 BaseOfRegion,
  50. IN ULONG SizeOfRegion
  51. );