[NTVDM]: Implement and export VDDTerminateVDM.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 24 Dec 2013 15:52:31 +0000 (15:52 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 24 Dec 2013 15:52:31 +0000 (15:52 +0000)
svn path=/branches/ntvdm/; revision=61374

include/ddk/nt_vdd.h
subsystems/ntvdm/dos.c
subsystems/ntvdm/emulator.c
subsystems/ntvdm/ntvdm.spec

index 199c6c6..3f38386 100644 (file)
 extern "C" {
 #endif
 
+/*
+ * VDM Control
+ */
+
+VOID
+WINAPI
+VDDTerminateVDM(VOID);
+
 /*
  * I/O Port services
  */
index c871d3d..e478070 100644 (file)
@@ -2572,6 +2572,7 @@ VOID WINAPI DosBreakInterrupt(LPWORD Stack)
 {
     UNREFERENCED_PARAMETER(Stack);
 
+    /* Stop the VDM */
     VdmRunning = FALSE;
 }
 
index 71e2741..49a52fb 100644 (file)
@@ -181,6 +181,14 @@ VOID EmulatorSetA20(BOOLEAN Enabled)
 
 
 
+VOID
+WINAPI
+VDDTerminateVDM(VOID)
+{
+    /* Stop the VDM */
+    VdmRunning = FALSE;
+}
+
 PBYTE
 WINAPI
 Sim32pGetVDMPointer(IN ULONG   Address,
index 263e5a3..ceca023 100644 (file)
 @ stdcall call_ica_hw_interrupt(long long long)
 @ stdcall VDDInstallIOHook(long long ptr ptr)
 @ stdcall VDDDeInstallIOHook(long long ptr)
+
+@ stdcall VDDTerminateVDM()