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

/*++
Copyright (c) 1992 Microsoft Corporation
Module Name:
memapi.h
Abstract:
This header defines the function prototypes for the memory
manipulation routines in the 486 emulator.
Author:
Neil Sandlin (neilsa)
Notes:
Revision History:
--*/
NTSTATUS
VdmAllocateVirtualMemory(
PULONG Address,
ULONG Size,
BOOLEAN Commit
);
NTSTATUS
VdmFreeVirtualMemory(
ULONG Address
);
NTSTATUS
VdmCommitVirtualMemory(
ULONG Address,
ULONG Size
);
NTSTATUS
VdmDeCommitVirtualMemory(
ULONG Address,
ULONG Size
);
NTSTATUS
VdmQueryFreeVirtualMemory(
PULONG FreeBytes,
PULONG LargestFreeBlock
);
NTSTATUS
VdmReallocateVirtualMemory(
ULONG OldAddress,
PULONG NewAddress,
ULONG NewSize
);
NTSTATUS
VdmAddVirtualMemory(
ULONG HostAddress,
ULONG Size,
PULONG IntelAddress
);
NTSTATUS
VdmRemoveVirtualMemory(
ULONG IntelAddress
);
BOOL
VdmAddDescriptorMapping(
USHORT SelectorStart,
USHORT SelectorCount,
ULONG LdtBase,
ULONG Flat
);