ReactOS 0.4.16-dev-340-g0540c21
memory.h
Go to the documentation of this file.
1/*
2 * COPYRIGHT: GPLv2+ - See COPYING in the top level directory
3 * PROJECT: ReactOS Virtual DOS Machine
4 * FILE: subsystems/mvdm/ntvdm/memory.h
5 * PURPOSE: Memory Management
6 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
7 */
8
9#ifndef _MEMORY_H_
10#define _MEMORY_H_
11
12/* DEFINITIONS ****************************************************************/
13
14#define TOTAL_PAGES (MAX_ADDRESS / PAGE_SIZE)
15
16typedef VOID
18(
22);
23
24typedef BOOLEAN
26(
30);
31
32/* FUNCTIONS ******************************************************************/
33
36VOID MemExceptionHandler(ULONG FaultAddress, BOOLEAN Writing);
37
38VOID
41(
42 PFAST486_STATE State,
46);
47
48VOID
51(
52 PFAST486_STATE State,
56);
57
58VOID
61(
62 PFAST486_STATE State,
63 ULONG DestAddress,
64 ULONG SrcAddress,
66);
67
70
71BOOL
73(
75 ULONG Size,
76 PMEMORY_READ_HANDLER ReadHandler,
77 PMEMORY_WRITE_HANDLER WriteHandler
78);
79
80BOOL
82(
85);
86
89(
90 ULONG StartAddress,
92 PBOOLEAN Hooked
93);
94
95#endif /* _MEMORY_H_ */
unsigned char BOOLEAN
#define VOID
Definition: acefi.h:82
Definition: bufpool.h:45
unsigned int BOOL
Definition: ntddk_ex.h:94
@ Enabled
Definition: mountmgr.h:179
#define FASTCALL
Definition: nt_native.h:50
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
#define BOOLEAN
Definition: pedump.c:73
static WCHAR Address[46]
Definition: ping.c:68
VOID FASTCALL EmulatorCopyMemory(PFAST486_STATE State, ULONG DestAddress, ULONG SrcAddress, ULONG Size)
Definition: memory.c:219
BOOLEAN(FASTCALL * PMEMORY_WRITE_HANDLER)(ULONG Address, PVOID Buffer, ULONG Size)
Definition: memory.h:26
VOID FASTCALL EmulatorReadMemory(PFAST486_STATE State, ULONG Address, PVOID Buffer, ULONG Size)
Definition: memory.c:142
BOOLEAN EmulatorGetA20(VOID)
Definition: memory.c:280
VOID MemCleanup(VOID)
Definition: memory.c:783
VOID EmulatorSetA20(BOOLEAN Enabled)
Definition: memory.c:275
BOOLEAN MemQueryMemoryZone(ULONG StartAddress, PULONG Length, PBOOLEAN Hooked)
Definition: memory.c:381
VOID(FASTCALL * PMEMORY_READ_HANDLER)(ULONG Address, PVOID Buffer, ULONG Size)
Definition: memory.h:18
BOOLEAN MemInitialize(VOID)
Definition: memory.c:723
VOID FASTCALL EmulatorWriteMemory(PFAST486_STATE State, ULONG Address, PVOID Buffer, ULONG Size)
Definition: memory.c:186
VOID MemExceptionHandler(ULONG FaultAddress, BOOLEAN Writing)
Definition: memory.c:286
BOOL MemRemoveFastMemoryHook(PVOID Address, ULONG Size)
Definition: memory.c:353
BOOL MemInstallFastMemoryHook(PVOID Address, ULONG Size, PMEMORY_READ_HANDLER ReadHandler, PMEMORY_WRITE_HANDLER WriteHandler)
Definition: memory.c:299
uint32_t * PULONG
Definition: typedefs.h:59
unsigned char * PBOOLEAN
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533