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.

82 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. memapi.h
  5. Abstract:
  6. This header defines the function prototypes for the memory
  7. manipulation routines in the 486 emulator.
  8. Author:
  9. Neil Sandlin (neilsa)
  10. Notes:
  11. Revision History:
  12. --*/
  13. NTSTATUS
  14. VdmAllocateVirtualMemory(
  15. PULONG Address,
  16. ULONG Size,
  17. BOOLEAN Commit
  18. );
  19. NTSTATUS
  20. VdmFreeVirtualMemory(
  21. ULONG Address
  22. );
  23. NTSTATUS
  24. VdmCommitVirtualMemory(
  25. ULONG Address,
  26. ULONG Size
  27. );
  28. NTSTATUS
  29. VdmDeCommitVirtualMemory(
  30. ULONG Address,
  31. ULONG Size
  32. );
  33. NTSTATUS
  34. VdmQueryFreeVirtualMemory(
  35. PULONG FreeBytes,
  36. PULONG LargestFreeBlock
  37. );
  38. NTSTATUS
  39. VdmReallocateVirtualMemory(
  40. ULONG OldAddress,
  41. PULONG NewAddress,
  42. ULONG NewSize
  43. );
  44. NTSTATUS
  45. VdmAddVirtualMemory(
  46. ULONG HostAddress,
  47. ULONG Size,
  48. PULONG IntelAddress
  49. );
  50. NTSTATUS
  51. VdmRemoveVirtualMemory(
  52. ULONG IntelAddress
  53. );
  54. BOOL
  55. VdmAddDescriptorMapping(
  56. USHORT SelectorStart,
  57. USHORT SelectorCount,
  58. ULONG LdtBase,
  59. ULONG Flat
  60. );