Commit graph

63619 commits

Author SHA1 Message Date
Amine Khaldi 0e960cab93 [NOTEPAD] Calculate the border around the printing area based on the margins the user has selected in the page setup dialog, instead of using a fixed size one. Brought to you by Ricardo Hanke with minor changes by me. CORE-10184
svn path=/trunk/; revision=69222
2015-09-14 09:32:57 +00:00
Pierre Schweitzer 06cad138ea [MOUNTMGR]
Implement the IOCTL IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_CREATED:
- Implement WriteRemoteDatabaseEntry() 
- Implement MountMgrVolumeMountPointCreated()

svn path=/trunk/; revision=69221
2015-09-13 22:52:07 +00:00
Stefan Ginsberg d320870f3f Stop using ATTRIB_NORETURN in hal and kernel, replace with the UNREACHABLE macro that both compilers can understand. Also fix up the UNREACHABLE def a bit.
svn path=/trunk/; revision=69220
2015-09-13 20:37:28 +00:00
Amine Khaldi 344dd926a5 [RPCRT4] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69219
2015-09-13 17:01:55 +00:00
Amine Khaldi 2added2367 [SETUP][USETUP][WELCOME] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69218
2015-09-13 16:40:36 +00:00
Amine Khaldi 828c1b5961 [NTDLL] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69217
2015-09-13 16:38:17 +00:00
Stefan Ginsberg c86151ca6b Hepp didn't work
svn path=/trunk/; revision=69216
2015-09-13 11:46:15 +00:00
Stefan Ginsberg eca683dd62 Give kernel32 a little bit of extra space to see if it makes the hybrid server not crash.
svn path=/trunk/; revision=69215
2015-09-13 11:40:12 +00:00
Stefan Ginsberg 967f47e576 Define __RELFILE__ the same for an -O0 build so the tests don't get edgy when comparing it to our optimized builds.
svn path=/trunk/; revision=69214
2015-09-13 11:08:16 +00:00
Thomas Faber ce9619abe7 [RAPPS][RAPPS_NEW]
- Don't redefine the default "Application" facility in the .mc file. Fixes MSVC warning

svn path=/trunk/; revision=69213
2015-09-13 06:34:23 +00:00
Thomas Faber a5ec9a07aa [MSVC]
- Silence warning LNK4104 (Export of symbol 'X' should be PRIVATE) where appropriate

svn path=/trunk/; revision=69212
2015-09-13 06:22:58 +00:00
Hermès Bélusca-Maïto f4d255aec6 [COMMAND]
- Fix the GCC macro for structure declaration, so that referencing an offset to the structure doesn't fail anymore (ie. doing "mov dx, offset MyStruct" doesn't assemble to "mov dx, 0x100").
This fixes NTVDM not being able to start any DOS app. Reported by Aleksander Rechitskiy.
CORE-9677 CORE-9679 #resolve
CORE-9678

[NTVDM]
- Fix newline in DPRINT.

svn path=/trunk/; revision=69211
2015-09-13 01:18:50 +00:00
Stefan Ginsberg 427c11919f [KDBG] Don't bring down the kernel either when int2c-ing from user mode
svn path=/trunk/; revision=69210
2015-09-12 22:01:10 +00:00
Stefan Ginsberg 2c81e1e2b1 - Make KDBG handle assertion failures/int2C the same way as breakpoints/int3 (that is, ignore them from user-mode by default) for the time being until an internal prompt-routine is implemented.
svn path=/trunk/; revision=69209
2015-09-12 21:44:48 +00:00
Hermès Bélusca-Maïto 0b875af84a [NTVDM]: Reenable the mouse driver that I disabled by error in my previous commit.
svn path=/trunk/; revision=69208
2015-09-12 20:25:45 +00:00
Eric Kohl 8a0491589a [INTL]
Set the system default language and codepages.
CORE-10075

svn path=/trunk/; revision=69207
2015-09-12 20:24:10 +00:00
Hermès Bélusca-Maïto a7e5f0c49e [NTVDM]: Fix parentheses. Thanks GCC.
svn path=/trunk/; revision=69206
2015-09-12 20:13:22 +00:00
Stefan Ginsberg 3cdcabd3c9 [KDBG]: Add new command "reboot" that does exactly what it says.
svn path=/trunk/; revision=69205
2015-09-12 20:10:43 +00:00
Hermès Bélusca-Maïto 1c51b39201 [NTVDM]
- Add support for DOS VDM reentry, i.e. the fact that a DOS app can start a 32-bit app, which in turn can start another DOS app, ad infinitum...
CORE-9711 CORE-9773 #resolve
- Add a small COMMAND.COM which is, for now, completely included in NTVDM. This COMMAND.COM is needed in order to support reentrancy. The fact that I chose to put it inside NTVDM is that any user can use instead his/her own COMMAND.COM, while retaining the possibility to perform VDM reentrancy (on Windows, if you remove the COMMAND.COM in windows\system32 and replace it with your own, you will break VDM reentrancy on windows' ntvdm).
CORE-5221 #resolve #comment I choose for the moment an internal COMMAND.COM, but you can recompile NTVDM to use it externally instead.

Global remarks:
- Quite a few DPRINTs were added for diagnostic purposes (since DOS reentrancy is a new feature), to be sure everything behaves as expected when being used with a large panel of applications. They will be removed when everything is OK.
- Support for current directories and 16/32-bit environment translation (in ntvdm + basevdm-side) remain to be implemented.

Other changes:
- Improve a bit the VDM shutdown code by gathering it at one place (there's still room for other improvements).
- Add suppport for properly pausing/resuming NTVDM.
- Bufferize some console events before dispatching.

Have fun ;^)

svn path=/trunk/; revision=69204
2015-09-12 20:09:25 +00:00
Hermès Bélusca-Maïto 4ad08f6ee4 [NTVDM]: Add a diagnostic dprint to check why some apps seem to fail allocating memory.
svn path=/trunk/; revision=69203
2015-09-12 18:13:53 +00:00
James Tabor 5547abd08e [Win32k]
- Fix Alpha Blending while using layered windows in lower bit modes. See CORE-10167.

svn path=/trunk/; revision=69202
2015-09-12 17:29:16 +00:00
Hermès Bélusca-Maïto 28b957e970 [KERNEL32]
GetNextVDMCommand function:
- Avoid using deep nested levels of indentation.
- Fix the error check conditions (+ status value) for the CsrClientCallServer call to make it compatible with what windows' basesrv can return to us.

[BASESRV]
- Remove some useless "NTAPI" from functions.
- Factor out some code used for creating and destroying console records, and for the destruction of the pair of event handles.
- Use "IsListEmpty" when needed.
- Fix BaseSrvFillCommandInfo so that it returns the needed lengths (even if the user-given lengths are zero) and set the expected status error in case the buffer lenghts are too small (not STATUS_BUFFER_TOO_SMALL but STATUS_INVALID_PARAMETER because it's what kernel32 error check expects, for windows compat; see above).
- Fix initialization of new DOS records: no need to create a new one if there is one already free (status VDM_READY).
- Fix the loop that searches for a valid DOS record containing command information available as well as the conditions in which case our caller needs to wait in GetNextVDMCommand call.

NOTE: The internal state flags of the DOS records have normally nothing to do with the VDM state flags we report back to the user.

CORE-8247 CORE-9711 CORE-9773

svn path=/trunk/; revision=69201
2015-09-12 16:23:32 +00:00
Hermès Bélusca-Maïto 38b81a6049 [KERNEL32]: Code formatting; use the real size of structure members when computing the needed buffer lengths.
svn path=/trunk/; revision=69200
2015-09-12 16:03:53 +00:00
Eric Kohl d53df6db90 [INTL]
- Read the current user locale when the CPL is created.
- Modify the user locale and update the examples when the user selects a new language.
- Save the user locale only if the user changed the settings.
CORE-10074

svn path=/trunk/; revision=69199
2015-09-12 15:25:36 +00:00
Hermès Bélusca-Maïto e709e70d0e [PEFILE:APITEST]: Validate IMAGE_SCN_MEM_NOT_PAGED flag for PE files. By Mark Jansen. CORE-10160
svn path=/trunk/; revision=69198
2015-09-12 13:08:47 +00:00
James Tabor 59b9ff5e23 [Win32k]
- Fix some composition drawing while using layered windows. See CORE-10155 and CORE-10157.

svn path=/trunk/; revision=69197
2015-09-12 12:54:05 +00:00
Daniel Reimer 393d90900e [NTOSKRNL]
Fix 1 unresolved external on ARM build.

svn path=/trunk/; revision=69196
2015-09-12 11:31:43 +00:00
Amine Khaldi 954c9da68c [ADVAPI32] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69195
2015-09-12 11:16:34 +00:00
Amine Khaldi 37b4177aee [SERVICES] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69194
2015-09-12 10:58:07 +00:00
Amine Khaldi 4932643114 [KERNEL32] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69193
2015-09-12 10:50:28 +00:00
Thomas Faber f016cbfce8 [FREELDR]
- Add missing asm dependency to freeldr_common

svn path=/trunk/; revision=69192
2015-09-12 10:06:39 +00:00
Daniel Reimer edca40a05a - "::" instead of "REM" inside a if () in batch is evil and can cause a really nice mess from time to time.
- Changing one "exit" to "exit /b" was not nice from me in the past.
ARM build now prepares host tools nicely again and you can build em. ARM build itself dies very early due to ..\..\boot\freeldr\freeldr\arch\arm\boot.S(9) : fatal error C1083: Cannot open include file: 'ksarm.h': No such file or directory

svn path=/trunk/; revision=69191
2015-09-12 09:51:25 +00:00
Pierre Schweitzer eb498f8e5d [MSGINA]
Addendum to r69186

svn path=/trunk/; revision=69190
2015-09-12 09:21:11 +00:00
Alex Ionescu feab49d6ab [BOOTMGFW]
- Additional El Torito support. We now parse the EFI, BOOT directories, and find/open the BCD file, and get a handle to it!

svn path=/trunk/; revision=69189
2015-09-12 08:57:42 +00:00
Stefan Ginsberg b1114c9e93 - Fix some broken stuff involving DPRINT. Thought I had tested this, sorry for build break!
svn path=/trunk/; revision=69188
2015-09-11 20:42:49 +00:00
Stefan Ginsberg 656e59a392 Fix over a hundred thousand warnings by:
- Disabling C4214 (nonstandard extension used : bit field types other than int), a somewhat overzealous warning for a "nonstandard" extension we rely on all over.
- Defining inactive DPRINT and friends for MSVC using __noop (no not __nop, __noop. See  https://msdn.microsoft.com/en-us/library/s6btaxcs.aspx) to get at a whole bunch of C4127 (conditional expression is constant).
- Remove the last of the exported DriverEntry from dxg and dxgthk. There is no need in anyw way to export them -- dxg exports DxDdStartupDxGraphics to Win32k for initialization purposes and dxgthk is just a forwarder. Linking to a DriverEntry is to begin with is a pretty bad idea. Say goodbye to the last of LNK4216.

svn path=/trunk/; revision=69187
2015-09-11 20:18:12 +00:00
Sylvain Petreolle 6ac7bdabc3 [TRANSLATIONS]
Translate remaining French strings in msgina.dll

svn path=/trunk/; revision=69186
2015-09-11 19:30:29 +00:00
Stefan Ginsberg e9950e5ef7 - Fix a thousand warnings
svn path=/trunk/; revision=69185
2015-09-11 18:02:58 +00:00
Amine Khaldi 8ce9283986 [USER32] Reorder the exports, add missing ones and make sure the list matches our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69184
2015-09-11 14:41:23 +00:00
Amine Khaldi b1e9a9d195 [GDI32] Order the exports and make sure they match our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69183
2015-09-11 13:29:37 +00:00
Thomas Faber 953771f506 [WIN32K:NTUSER]
- Probe parameters in NtUserGetLayeredWindowAttributes
- Don't call UserGetWindowObject without holding the user lock

svn path=/trunk/; revision=69182
2015-09-11 07:31:06 +00:00
Alex Ionescu e88843426b [BOOTMGFW]
- Hey Arch, your buddies gave you ETFS support for native EFI boot, of course reading sector 0 is all zeroes, you're not on FAT, you idiot! ETFS has data at sector 16 and 17.
- Implement beginning of ETFS support. We correctly mount the reactOS boot cd as ETFS and open the root directory entry!

svn path=/trunk/; revision=69181
2015-09-11 04:33:24 +00:00
Alex Ionescu 51d5eadd25 [CDFS_NEW]
- Resurrect back 7 years later (revert commit 34622).
- Add correct MS-PL (Public) License. Not added to build/used, but I need some of the headers/data structures in here.
- Source: https://github.com/Microsoft/Windows-driver-samples/blob/master/filesys/cdfs

svn path=/trunk/; revision=69180
2015-09-11 04:02:21 +00:00
James Tabor fca682a62e [Win32SS]
- Hackplement Layered Window Support from wine.
- See CORE-1576 for more information. Three days work, ReactOS needs more support for playing with GDI bits.

svn path=/trunk/; revision=69179
2015-09-11 02:34:11 +00:00
Alex Ionescu 884d17f9c0 [BOOTMGFW]
- Implement Block I/O read operations & related functions. Code needs cleanup, TBD.
- Unfortunately, I wish I could say it works, but it seems like all we get back are zeroes (from EFI itself). I suspect we are reading from the wrong device -- will have to investigate for a bit.

svn path=/trunk/; revision=69178
2015-09-10 23:13:31 +00:00
Sylvain Petreolle fe979cfbfb [MOUNTMGR]
Declare MountmgrReadNoAutoMount.

svn path=/trunk/; revision=69177
2015-09-10 22:06:10 +00:00
Pierre Schweitzer c0e3ff9c79 [MOUNTMGR]
Move DriverEntry() and MountmgrReadNoAutoMount() to INIT_SECTION

svn path=/trunk/; revision=69176
2015-09-10 21:41:20 +00:00
Pierre Schweitzer 7584156a40 [FASTFAT]
Move VfatInitFastIoRoutines to the INIT section

svn path=/trunk/; revision=69175
2015-09-10 21:35:15 +00:00
Eric Kohl 5dd06ab375 [USETUP]
Fix the GeoID for most languages.
CORE-10073 #resolve

svn path=/trunk/; revision=69174
2015-09-10 21:28:37 +00:00
Stefan Ginsberg b77dacb82b - Add some globals WinDbg expected to find when using !sysptes and !vm. Unused but makes the debugger happy
svn path=/trunk/; revision=69173
2015-09-10 19:47:45 +00:00