Author: hbelusca Date: Tue Dec 24 15:52:31 2013 New Revision: 61374
URL: http://svn.reactos.org/svn/reactos?rev=61374&view=rev Log: [NTVDM]: Implement and export VDDTerminateVDM.
Modified: branches/ntvdm/include/ddk/nt_vdd.h branches/ntvdm/subsystems/ntvdm/dos.c branches/ntvdm/subsystems/ntvdm/emulator.c branches/ntvdm/subsystems/ntvdm/ntvdm.spec
Modified: branches/ntvdm/include/ddk/nt_vdd.h URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/include/ddk/nt_vdd.h?rev=6... ============================================================================== --- branches/ntvdm/include/ddk/nt_vdd.h [iso-8859-1] (original) +++ branches/ntvdm/include/ddk/nt_vdd.h [iso-8859-1] Tue Dec 24 15:52:31 2013 @@ -27,6 +27,14 @@ #ifdef __cplusplus extern "C" { #endif + +/* + * VDM Control + */ + +VOID +WINAPI +VDDTerminateVDM(VOID);
/* * I/O Port services
Modified: branches/ntvdm/subsystems/ntvdm/dos.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/dos.c?rev... ============================================================================== --- branches/ntvdm/subsystems/ntvdm/dos.c [iso-8859-1] (original) +++ branches/ntvdm/subsystems/ntvdm/dos.c [iso-8859-1] Tue Dec 24 15:52:31 2013 @@ -2572,6 +2572,7 @@ { UNREFERENCED_PARAMETER(Stack);
+ /* Stop the VDM */ VdmRunning = FALSE; }
Modified: branches/ntvdm/subsystems/ntvdm/emulator.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/emulator.... ============================================================================== --- branches/ntvdm/subsystems/ntvdm/emulator.c [iso-8859-1] (original) +++ branches/ntvdm/subsystems/ntvdm/emulator.c [iso-8859-1] Tue Dec 24 15:52:31 2013 @@ -181,6 +181,14 @@
+VOID +WINAPI +VDDTerminateVDM(VOID) +{ + /* Stop the VDM */ + VdmRunning = FALSE; +} + PBYTE WINAPI Sim32pGetVDMPointer(IN ULONG Address,
Modified: branches/ntvdm/subsystems/ntvdm/ntvdm.spec URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/ntvdm.spe... ============================================================================== --- branches/ntvdm/subsystems/ntvdm/ntvdm.spec [iso-8859-1] (original) +++ branches/ntvdm/subsystems/ntvdm/ntvdm.spec [iso-8859-1] Tue Dec 24 15:52:31 2013 @@ -185,3 +185,5 @@ @ stdcall call_ica_hw_interrupt(long long long) @ stdcall VDDInstallIOHook(long long ptr ptr) @ stdcall VDDDeInstallIOHook(long long ptr) + +@ stdcall VDDTerminateVDM()