Commit graph

57262 commits

Author SHA1 Message Date
Aleksandar Andrejevic 9eeef92b34 [BASESRV]
Don't accept NULL as a valid console handle.


svn path=/branches/ntvdm/; revision=63122
2014-05-02 23:00:10 +00:00
Aleksandar Andrejevic 9b7d069e2e [NTVDM][KERNEL32]
Send the specified task ID to CSRSS in GetNextVDMCommand.
In ntvdm, parse the command line parameters to find the session ID, and pass it in
every call to GetNextVDMCommand.


svn path=/branches/ntvdm/; revision=63121
2014-05-02 22:23:34 +00:00
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 fdf472cb6e [NTVDM]
Restore the console to normal size while no DOS task is running and keep track
of the cursor position.
Adapted from a patch by Hermès Bélusca-Maïto.


svn path=/branches/ntvdm/; revision=63119
2014-05-02 21:17:05 +00:00
Aleksandar Andrejevic accafb817a [NTVDM]
Initialize the reference counts of the DOS console handles.


svn path=/branches/ntvdm/; revision=63118
2014-05-02 18:49:15 +00:00
Aleksandar Andrejevic e53148d3f5 [NTVDM]
Use VdmRunning to keep the state of the whole VDM, not a VDM task.
Add an event whose signaled state determines the state of the VDM task.
Use FILE_SHARE_READ when opening executables.


svn path=/branches/ntvdm/; revision=63116
2014-05-02 18:24:40 +00:00
Hermès Bélusca-Maïto 0679e307e5 [KERNEL32]
Compare against "NE", not "N" only. Caught by Victor Martinez, thanks ;)
CORE-8159 #resolve

svn path=/branches/ntvdm/; revision=63113
2014-05-02 17:11:13 +00:00
Aleksandar Andrejevic 880d3c125f [NTVDM]
Set VdmRunning to TRUE in EmulatorSimulate.


svn path=/branches/ntvdm/; revision=63109
2014-05-02 15:44:47 +00:00
Aleksandar Andrejevic de02e868fc [NTOSKRNL]
Fix the previous fix. We must use STATUS_ROS_EXEFMT_UNKNOWN_FORMAT.


svn path=/branches/ntvdm/; revision=63107
2014-05-02 15:00:38 +00:00
Aleksandar Andrejevic a31666e4e2 [NTOSKRNL]
If we cannot read the file at offset e_lfanew, it means that the value of e_lfanew is invalid.


svn path=/branches/ntvdm/; revision=63105
2014-05-02 14:38:36 +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
Hermès Bélusca-Maïto 487d3f80bf [CSRSRV]
When the CsrProcessCreateNewGroup (~= CREATE_NEW_PROCESS_GROUP) flag is set, it means that we are creating a new process group leader, and not the reverse :P

svn path=/branches/ntvdm/; revision=63041
2014-04-28 23:09:09 +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 3031b351e8 [NTVDM]
Don't define STANDALONE by default.
Don't quit ntvdm after it becomes the last process on the console if a DOS app is still running.


svn path=/branches/ntvdm/; revision=63024
2014-04-27 22:38:54 +00:00
Aleksandar Andrejevic 2e1e346378 [NTVDM]
DPRINT1 the error code returned by DosLoadExecutable.


svn path=/branches/ntvdm/; revision=62973
2014-04-26 09:40:55 +00:00
Aleksandar Andrejevic e5df0c4dfe [NTVDM]
Rewrite DosCreateProcess, separating the loading code into DosLoadExecutable.
Implement INT 21h function AH = 0x4B (Create Process).


svn path=/branches/ntvdm/; revision=62972
2014-04-26 08:57:17 +00:00
Aleksandar Andrejevic a8caf51cd0 [NTVDM]
Quit when ntvdm becomes the last process attached to the console.


svn path=/branches/ntvdm/; revision=62892
2014-04-22 20:46:50 +00:00
Aleksandar Andrejevic 5b74bbc251 Fix broken merge.
svn path=/branches/ntvdm/; revision=62850
2014-04-21 01:51:27 +00:00
Aleksandar Andrejevic e2dbefc310 Sync with trunk.
svn path=/branches/ntvdm/; revision=62849
2014-04-21 01:45:58 +00:00
Hermès Bélusca-Maïto 6e8dcec9f7 [KERNEL32]
- Add a debug output to the default console dispatcher for the CTRL_LAST_CLOSE_EVENT code;
- hardcoded_value--;
Addendum to revision 62847.

svn path=/trunk/; revision=62848
2014-04-21 01:36:00 +00:00
Hermès Bélusca-Maïto 286ee4b8b1 [KERNEL32][CONSRV]
Implement (undocumented) SetLastConsoleEventActive API.
Patch by Alexander Andrejevic, with a minor modification by me concerning the addition of a NotifiedLastCloseProcess member to the CONSOLE structure and a check that makes sure that only the app that asked for the notification, receives it (and so that we don't call the console control dispatcher for nothing).
This API is used by ntvdm to be sure that it gets killed when all other console apps attached to the ntvdm's console are away.
CORE-7250

svn path=/trunk/; revision=62847
2014-04-21 01:22:17 +00:00
Hermès Bélusca-Maïto 38be5bceff [KERNEL32][CONSRV]
Make kernel32 / winsrv console CSR structures Win2k3-compliant for CreateConsoleScreenBuffer.
The aim is to be able to put our kernel32.dll or winsrv.dll on win2k3, and vice-versa.

Because of that, we need to introduce and use the redundant hMutex and lpBitMap in the CONSOLE_CREATESCREENBUFFER structure, instead of the ones that are already present in its CONSOLE_GRAPHICS_BUFFER_INFO member ...
Isn't MS dumb sometimes?

I also homogeneize some variable names wrt. equivalent ones that I use elsewhere, and I fix a broken return value in the case the API fails.

Part 3/X

CORE-7931

svn path=/trunk/; revision=62846
2014-04-20 22:40:39 +00:00
Thomas Faber 0238322066 [NTDLL_APITEST]
- Add test for NtQueryVolumeInformationFile. Patch by Víctor Martínez.
ROSTESTS-134 #resolve

svn path=/trunk/; revision=62844
2014-04-20 18:15:41 +00:00
Hermès Bélusca-Maïto 9a08d0b7dc [KERNEL32][CONSRV]
Implement console part of Get/SetHandleInformation, needed by msvcrt / cmd.exe (at least the windows version) and other console apps...

svn path=/trunk/; revision=62843
2014-04-20 14:39:38 +00:00
Amine Khaldi cd9c73cf39 [NTDLL_WINETEST]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62842
2014-04-20 13:44:55 +00:00
Amine Khaldi 05557a4614 [PSDK]
* Add some missing LDR_ADDREF_DLL_PIN definition.

svn path=/trunk/; revision=62841
2014-04-20 13:42:12 +00:00
Amine Khaldi 1ba0dbbee8 [PSDK]
* Add some missing definitions.

svn path=/trunk/; revision=62840
2014-04-20 13:34:54 +00:00
Kamil Hornicek cc3fcbf96f [WIN32K]
- apply r61265 for win32k, for consistency

svn path=/trunk/; revision=62839
2014-04-20 13:29:53 +00:00
Amine Khaldi aa2170e490 [SHELL32_WINETEST]
* Sync with Wine 1.7.17.
* Speedup build.
CORE-8080

svn path=/trunk/; revision=62838
2014-04-20 13:19:24 +00:00
Amine Khaldi 842c3e00d0 [MSVCRT_WINETEST]
* Fix *nix build.

svn path=/trunk/; revision=62837
2014-04-20 13:14:11 +00:00
Amine Khaldi 6937da105c [MSVCRT_WINETEST]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62836
2014-04-20 13:10:24 +00:00
Amine Khaldi 52a7f09dd3 [GDI32_WINETEST]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62835
2014-04-20 13:01:01 +00:00
Amine Khaldi ca20207552 [SETUPAPI_WINETEST]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62834
2014-04-20 12:37:05 +00:00
Hermès Bélusca-Maïto 5188874df0 [KERNEL32][CONSRV]
Make kernel32 / winsrv console CSR structures Win2k3-compliant.
The aim is to be able to put our kernel32.dll or winsrv.dll on win2k3, and vice-versa.

Part 2/X

CORE-7931

svn path=/trunk/; revision=62833
2014-04-20 11:25:38 +00:00
Amine Khaldi 53976acc22 [ACTXPRXY]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62832
2014-04-20 00:25:16 +00:00
Amine Khaldi b84bae0819 [DXDIAGN_WINETEST]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62831
2014-04-20 00:20:32 +00:00
Amine Khaldi 56f1ee3f9a [DXDIAGN]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62830
2014-04-20 00:20:21 +00:00
Amine Khaldi ccad9a3981 [DPLAYX_WINETEST]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62829
2014-04-20 00:08:29 +00:00
Amine Khaldi 28f0d85f48 [DPLAYX]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62828
2014-04-20 00:08:13 +00:00
Amine Khaldi 98bf344a4b [DMUSIC]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62827
2014-04-20 00:00:52 +00:00
Amine Khaldi 70cf88624c [DINPUT8]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62826
2014-04-19 23:50:01 +00:00
Amine Khaldi d9b7959228 [DINPUT_WINETEST]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62825
2014-04-19 23:44:04 +00:00
Amine Khaldi 66d0027638 [DINPUT]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62824
2014-04-19 23:43:51 +00:00
Hermès Bélusca-Maïto a5b446bbaa [SOLITAIRE][RAPPS][MSGINA]
Polish translation of solitaire, rapps and msgina
Patch by Wojciech Kozłowski and Adam Stachowicz. Thanks a lot!
CORE-8068 #resolve #comment Second patch committed in revision 62823, thanks ;)

svn path=/trunk/; revision=62823
2014-04-19 23:18:29 +00:00
Amine Khaldi 117d0c43e7 [DEVENUM_WINETEST]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62822
2014-04-19 19:30:34 +00:00
Amine Khaldi c5a095eadb [DEVENUM]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62821
2014-04-19 19:30:15 +00:00
Amine Khaldi 67996b30a4 [D3DXOF]
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62820
2014-04-19 19:13:01 +00:00