Commit graph

29 commits

Author SHA1 Message Date
Aleksandar Andrejevic 9c142126d3 [BASESRV]
In BaseSrvGetConsoleRecord and GetConsoleRecordBySessionId, check if the console record was not found instead
of returning the last one in the list.
In BaseSrvCheckVDM, return the session ID to the caller.


svn path=/branches/ntvdm/; revision=63120
2014-05-02 21:45:16 +00:00
Aleksandar Andrejevic 3a94de4a0e [BASESRV]
Fix the previous fix. It's not necessary to use a different status value from the one that was returned.


svn path=/branches/ntvdm/; revision=63100
2014-05-02 01:20:40 +00:00
Aleksandar Andrejevic 8be11a5989 [BASESRV]
Make sure that the console record exists before continuing.


svn path=/branches/ntvdm/; revision=63099
2014-05-02 01:18:46 +00:00
Aleksandar Andrejevic 47c1283bd2 [BASESRV][KERNEL32][NTVDM]
Make our BaseSrvGetNextVDMCommand and GetNextVDMCommand a bit more Windows-compatible,
and modify NTVDM accordingly.


svn path=/branches/ntvdm/; revision=63098
2014-05-01 23:52:36 +00:00
Aleksandar Andrejevic d0fad5273f [BASESRV]
Implement BaseSrvDisconnect and BaseSrvCleanupVdmRecords, which will remove VDM console and DOS records
which have been left behind by a terminated ntvdm process.
Implement the "VDM voodoo" in BaseSrvCreateProcess. It's supposed to store the process ID of the VDM
in the VDM console record.
Fix minor bugs.
Add function declarations to the header file.


svn path=/branches/ntvdm/; revision=63042
2014-04-29 00:41:48 +00:00
Aleksandar Andrejevic dd049f9da3 [BASESRV]
Don't update the state of the old DOS records if the DOS program executed another program.


svn path=/branches/ntvdm/; revision=63039
2014-04-28 20:51:59 +00:00
Aleksandar Andrejevic e2dbefc310 Sync with trunk.
svn path=/branches/ntvdm/; revision=62849
2014-04-21 01:45:58 +00:00
Aleksandar Andrejevic bd153df890 [BASESRV]
Fix BaseSrvCheckVDM - DOS records should be initialized with a state of VDM_NOT_LOADED.
Fix BaseSrvFillCommandInfo - Check the size of the buffers.
Start implementing BaseSrvGetNextVDMCommand.


svn path=/branches/ntvdm/; revision=62683
2014-04-07 23:16:22 +00:00
Aleksandar Andrejevic 6c0fe9b984 [BASESRV]
Implement BaseSrvFillCommandInfo, a function that fills a BASE_GET_NEXT_VDM_COMMAND
structure with command information.


svn path=/branches/ntvdm/; revision=62602
2014-04-02 21:29:44 +00:00
Aleksandar Andrejevic 0e0f35fea9 [BASESRV]
Add a pair of event handles to the console record.
Implement BaseSrvSetReenterCount.


svn path=/branches/ntvdm/; revision=62600
2014-04-02 01:29:50 +00:00
Aleksandar Andrejevic 9c283d7508 [BASESRV]
- Move more constants to the global header.
- Implement GetConsoleRecordBySessionId.
- Implement BaseSrvUpdateVDMEntry.
- Improve and fix bugs in the cleanup code.


svn path=/branches/ntvdm/; revision=62451
2014-03-07 23:46:43 +00:00
Aleksandar Andrejevic bdd88c2413 [BASESRV]
BaseSrvCopyCommand should return TRUE if it was successful.


svn path=/branches/ntvdm/; revision=62435
2014-03-05 20:01:57 +00:00
Aleksandar Andrejevic 8656d3a5f6 [BASESRV]
Move the GET_NEXT_VDM_COMMAND_DATA structure to a global header, and
rename it to VDM_COMMAND_INFO.
Implement BaseSrvCopyCommand, which moves the BASE_CHECK_VDM structure data
into a new VDM_COMMAND_INFO structure.
Implement BaseSrvFreeVDMInfo which frees a VDM_COMMAND_INFO structure and
everything in it.


svn path=/branches/ntvdm/; revision=62374
2014-03-02 02:50:40 +00:00
Aleksandar Andrejevic d01148ac9b [BASESRV]
Implement a function that creates a pair of event handles - BaseSrvCreatePairWaitHandles.
As already explained in the comments of BaseCheckForVDM (in kernel32), the hParent parameter
is actually an event handle (or more precisely, the client event handle), not a process handle.


svn path=/branches/ntvdm/; revision=62367
2014-03-01 15:13:54 +00:00
Aleksandar Andrejevic f488f7003e [BASESRV]
Continue implementing BaseSrvCheckVDM.


svn path=/branches/ntvdm/; revision=62363
2014-03-01 04:37:01 +00:00
Aleksandar Andrejevic bde24e0bb4 [BASESRV]
Implement BaseSrvIsVdmAllowed.


svn path=/branches/ntvdm/; revision=62349
2014-02-27 22:44:56 +00:00
Aleksandar Andrejevic 5036028dd4 [BASESRV]
Implement BaseSrvExitVDM.


svn path=/branches/ntvdm/; revision=62315
2014-02-24 03:51:49 +00:00
Amine Khaldi 121bde3b83 * Sync up to trunk HEAD (r62286).
svn path=/branches/ntvdm/; revision=62287
2014-02-22 10:50:51 +00:00
Aleksandar Andrejevic 60dd86e7ac [BASESRV]
Implement BaseSrvGetVDMExitCode.


svn path=/branches/ntvdm/; revision=62237
2014-02-18 02:15:33 +00:00
Aleksandar Andrejevic c64a03a80f [BASESRV]
Move the VDM states and binary types to a public header file.
Implement GetNextDosSesId.
Continue implementing BaseSrvCheckVDM.


svn path=/branches/ntvdm/; revision=62200
2014-02-16 00:09:27 +00:00
Aleksandar Andrejevic 5a678ff4e0 [KERNEL32]
Implement GetVDMCurrentDirectories.
[BASESRV]
Fix a bug in BaseSrvGetVDMCurDirs.


svn path=/branches/ntvdm/; revision=62097
2014-02-10 13:56:55 +00:00
Aleksandar Andrejevic 158d2645a5 [BASESRV]
Implement BaseSrvSetVDMCurDirs.


svn path=/branches/ntvdm/; revision=62091
2014-02-10 00:37:06 +00:00
Aleksandar Andrejevic d0176d9ee8 [BASESRV]
Implement BaseSrvGetVDMCurDirs.
The current directory information is stored in the console record,
and it applies to all DOS records within it.


svn path=/branches/ntvdm/; revision=62086
2014-02-09 22:26:13 +00:00
Aleksandar Andrejevic 884d0853f8 [BASESRV]
Add an (incomplete) definition for VDM console records and VDM DOS records.
Implement BaseSrvIsFirstVDM.
Start implementing BaseSrvCheckVDM.


svn path=/branches/ntvdm/; revision=62078
2014-02-09 17:37:35 +00:00
Hermès Bélusca-Maïto 49ab546ac3 Sync up with trunk r61578.
svn path=/branches/ntvdm/; revision=61579
2014-01-11 00:00:10 +00:00
Amine Khaldi 25445ea35f * Sync up to trunk head (r60691).
svn path=/branches/ntvdm/; revision=60692
2013-10-17 11:19:05 +00:00
Hermès Bélusca-Maïto 8e37700e5c Synchronize with trunk revision 59781.
svn path=/branches/ntvdm/; revision=59784
2013-08-19 18:55:28 +00:00
Hermès Bélusca-Maïto f66525ee02 Synchronize with trunk revision 59636 (just before Alex's CreateProcess revamp).
svn path=/branches/ntvdm/; revision=59665
2013-08-07 14:57:30 +00:00
Hermès Bélusca-Maïto 4f0b8d3db0 Create a branch for Aleksandar Andrejevic for his work on NTVDM. See http://jira.reactos.org/browse/CORE-7250 for more details.
svn path=/branches/ntvdm/; revision=59241
2013-06-16 22:01:41 +00:00