[NTVDM]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 8 Apr 2014 14:35:35 +0000 (14:35 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 8 Apr 2014 14:35:35 +0000 (14:35 +0000)
- Just define GetNextVDMCommand and ExitVDM at their correct places.
- Code cleaning.

svn path=/branches/ntvdm/; revision=62687

dll/win32/kernel32/include/vdm.h
include/reactos/subsys/win/vdm.h
subsystems/ntvdm/CMakeLists.txt
subsystems/ntvdm/ntvdm.h

index 1b3e0fc..56e8726 100644 (file)
@@ -66,17 +66,4 @@ BaseCheckVDM(
     IN HANDLE hUserToken OPTIONAL
 );
 
-BOOL
-WINAPI
-GetNextVDMCommand(
-    IN OUT PVDM_COMMAND_INFO CommandData OPTIONAL
-);
-
-VOID
-WINAPI
-ExitVDM(
-    IN BOOL IsWow,
-    IN ULONG iWowTask
-);
-
 /* EOF */
index 037e571..5faa435 100644 (file)
@@ -12,7 +12,7 @@
 
 #pragma once
 
-/* CONSTANTS ******************************************************************/
+/* CONSTANTS & TYPES **********************************************************/
 
 typedef enum _VDM_ENTRY_CODE
 {
@@ -85,6 +85,22 @@ typedef struct
     BOOLEAN ComingFromBat;
 } VDM_COMMAND_INFO, *PVDM_COMMAND_INFO;
 
+
+/* FUNCTION PROTOTYPES ********************************************************/
+
+BOOL
+WINAPI
+GetNextVDMCommand(
+    IN OUT PVDM_COMMAND_INFO CommandData OPTIONAL
+);
+
+VOID
+WINAPI
+ExitVDM(
+    IN BOOL IsWow,
+    IN ULONG iWowTask
+);
+
 #endif // _VDM_H
 
 /* EOF */
index fed3b0b..80ab3e9 100644 (file)
@@ -36,7 +36,7 @@ list(APPEND SOURCE
 
 add_executable(ntvdm ${SOURCE})
 set_module_type(ntvdm win32cui UNICODE)
+set_image_base(ntvdm 0x0F000000)
 target_link_libraries(ntvdm fast486)
 add_importlibs(ntvdm user32 gdi32 advapi32 msvcrt kernel32 ntdll)
 add_cd_file(TARGET ntvdm DESTINATION reactos/system32 FOR all)
-set_image_base(ntvdm 0x0F000000)
index 3f02e21..8399ae7 100644 (file)
 
 #include <debug.h>
 
-/* PROTOTYPES *****************************************************************/
-
-BOOL
-WINAPI
-GetNextVDMCommand(
-    IN OUT PVDM_COMMAND_INFO CommandData OPTIONAL
-);
-
-VOID
-WINAPI
-ExitVDM(
-    IN BOOL IsWow,
-    IN ULONG iWowTask
-);
-
 /* FUNCTIONS ******************************************************************/
 
 VOID DisplayMessage(LPCWSTR Format, ...);