Author: hbelusca
Date: Fri Mar 13 23:26:33 2015
New Revision: 66670
URL:
http://svn.reactos.org/svn/reactos?rev=66670&view=rev
Log:
[NTVDM]
- Export VDDInstallMemoryHook and VDDDeInstallMemoryHook.
- Stubplement and export VDDAllocMem, VDDFreeMem, VDDIncludeMem and VDDExcludeMem
(undocumented).
Modified:
trunk/reactos/include/ddk/nt_vdd.h
trunk/reactos/subsystems/mvdm/ntvdm/memory.c
trunk/reactos/subsystems/mvdm/ntvdm/ntvdm.h
trunk/reactos/subsystems/mvdm/ntvdm/ntvdm.spec
Modified: trunk/reactos/include/ddk/nt_vdd.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/nt_vdd.h?rev=6…
==============================================================================
--- trunk/reactos/include/ddk/nt_vdd.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/nt_vdd.h [iso-8859-1] Fri Mar 13 23:26:33 2015
@@ -251,6 +251,42 @@
IN DWORD dwCount
);
+BOOL
+WINAPI
+VDDAllocMem
+(
+ IN HANDLE hVdd,
+ IN PVOID Address,
+ IN ULONG Size
+);
+
+BOOL
+WINAPI
+VDDFreeMem
+(
+ IN HANDLE hVdd,
+ IN PVOID Address,
+ IN ULONG Size
+);
+
+BOOL
+WINAPI
+VDDIncludeMem
+(
+ IN HANDLE hVdd,
+ IN PVOID Address,
+ IN ULONG Size
+);
+
+BOOL
+WINAPI
+VDDExcludeMem
+(
+ IN HANDLE hVdd,
+ IN PVOID Address,
+ IN ULONG Size
+);
+
#ifdef __cplusplus
}
#endif
Modified: trunk/reactos/subsystems/mvdm/ntvdm/memory.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/memo…
==============================================================================
--- trunk/reactos/subsystems/mvdm/ntvdm/memory.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/mvdm/ntvdm/memory.c [iso-8859-1] Fri Mar 13 23:26:33 2015
@@ -423,6 +423,50 @@
}
return TRUE;
+}
+
+BOOL
+WINAPI
+VDDAllocMem(IN HANDLE hVdd,
+ IN PVOID Address,
+ IN ULONG Size)
+{
+ // FIXME
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL
+WINAPI
+VDDFreeMem(IN HANDLE hVdd,
+ IN PVOID Address,
+ IN ULONG Size)
+{
+ // FIXME
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL
+WINAPI
+VDDIncludeMem(IN HANDLE hVdd,
+ IN PVOID Address,
+ IN ULONG Size)
+{
+ // FIXME
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL
+WINAPI
+VDDExcludeMem(IN HANDLE hVdd,
+ IN PVOID Address,
+ IN ULONG Size)
+{
+ // FIXME
+ UNIMPLEMENTED;
+ return FALSE;
}
@@ -494,7 +538,8 @@
SIZE_T MemorySize = MAX_ADDRESS;
PLIST_ENTRY Pointer;
- while (!IsListEmpty(&HookList))
+ // while (!IsListEmpty(&HookList))
+ while (HookList.Flink != &HookList)
{
Pointer = RemoveHeadList(&HookList);
RtlFreeHeap(RtlGetProcessHeap(), 0, CONTAINING_RECORD(Pointer, MEM_HOOK,
Entry));
Modified: trunk/reactos/subsystems/mvdm/ntvdm/ntvdm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/ntvd…
==============================================================================
--- trunk/reactos/subsystems/mvdm/ntvdm/ntvdm.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/mvdm/ntvdm/ntvdm.h [iso-8859-1] Fri Mar 13 23:26:33 2015
@@ -38,6 +38,11 @@
*/
// #define STANDALONE
+/*
+ * Activate this line for Win2k compliancy
+ */
+// #define WIN2K_COMPLIANT
+
/* FUNCTIONS ******************************************************************/
#ifndef STANDALONE
Modified: trunk/reactos/subsystems/mvdm/ntvdm/ntvdm.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/ntvd…
==============================================================================
--- trunk/reactos/subsystems/mvdm/ntvdm/ntvdm.spec [iso-8859-1] (original)
+++ trunk/reactos/subsystems/mvdm/ntvdm/ntvdm.spec [iso-8859-1] Fri Mar 13 23:26:33 2015
@@ -211,6 +211,14 @@
@ stdcall VdmMapFlat(long long long)
;@ stdcall VdmUnmapFlat(long long ptr long) ; Not exported on x86
+@ stdcall VDDInstallMemoryHook(long ptr long ptr)
+@ stdcall VDDDeInstallMemoryHook(long ptr long)
+
+@ stdcall VDDAllocMem(long ptr long)
+@ stdcall VDDFreeMem(long ptr long)
+@ stdcall VDDIncludeMem(long ptr long)
+@ stdcall VDDExcludeMem(long ptr long)
+
@ stdcall call_ica_hw_interrupt(long long long)
@ stdcall VDDReserveIrqLine(long long)
@ stdcall VDDReleaseIrqLine(long long)