reactos.git
16 years agoWe now report the correct sector start for the ramdisk -- the actual volume boot...
ReactOS Portable Systems Group [Wed, 6 Feb 2008 20:38:59 +0000 (20:38 +0000)]
We now report the correct sector start for the ramdisk -- the actual volume boot sector is at 0x63, not 0x00 which is the MBR.
FreeLDR now reads freeldr.ini correctly and continues all the way to hardware detection (ArmHwDetect)

svn path=/trunk/; revision=32170

16 years agoWe now enable ramdisk support by calling RamDiskSwitchFromBios() to allow the ramdisk...
ReactOS Portable Systems Group [Wed, 6 Feb 2008 19:15:46 +0000 (19:15 +0000)]
We now enable ramdisk support by calling RamDiskSwitchFromBios() to allow the ramdisk routines to take control of disk r/w.
Unlike the x86 virtual-ramdisk, the ramdisk here is also used as boot device, not only system device.
Current FreeLDR output:
    Booting FreeLDR...
    FreeLoader v3.0 for ARM
    Bootargs: rdbase=0x2000000 rdsize=0x1400000
    This file system has cluster sizes bigger than 64k.
    FreeLoader does not support this.
    Press any key

svn path=/trunk/; revision=32169

16 years ago- apply changes from prev rev
Johannes Anderwald [Wed, 6 Feb 2008 18:59:51 +0000 (18:59 +0000)]
- apply changes from prev rev

svn path=/trunk/; revision=32168

16 years ago- partly fix AddConsoleAlias/GetConsoleAlias
Johannes Anderwald [Wed, 6 Feb 2008 18:59:18 +0000 (18:59 +0000)]
- partly fix AddConsoleAlias/GetConsoleAlias
- add hack for GetConsoleAliasW to circumvent CsrCaptureMessageBuffer is not working

svn path=/trunk/; revision=32167

16 years ago- partly fix AddConsoleAlias/GetConsoleAlias
Johannes Anderwald [Wed, 6 Feb 2008 18:57:40 +0000 (18:57 +0000)]
- partly fix AddConsoleAlias/GetConsoleAlias
- add hack for GetConsoleAliasW to circumvent CsrCaptureMessageBuffer is not working

svn path=/trunk/; revision=32166

16 years ago- Cast the OutputBuffer to a byte (UCHAR) array, not a ULONG array, so adding a byte...
Colin Finck [Wed, 6 Feb 2008 18:30:15 +0000 (18:30 +0000)]
- Cast the OutputBuffer to a byte (UCHAR) array, not a ULONG array, so adding a byte offset to its address works as expected.
  This fixes the extraction of any file, which is not the first file in the cabinet.
- I don't see a reason for reading the file name in 32 byte chunks in ReadString() instead of reading it completely in one call.
  As the previous algorithm was buggy for files longer than 32 characters, I read the file name string completely now.
  Cabman is now able to extract the "reactos.cab" it created itself without any problems :-)
- Simplify CreateSimpleCabinet() a bit

svn path=/trunk/; revision=32165

16 years agoWe now support ArmDiskGetBootVolume for ramdisk only, later revisions will support...
ReactOS Portable Systems Group [Wed, 6 Feb 2008 18:27:53 +0000 (18:27 +0000)]
We now support ArmDiskGetBootVolume for ramdisk only, later revisions will support NAND boot as well.
The ramdisk parameter parsing had several bugs which were fixed, including support for hex parameters and using proper return values from strstr.
We also rewrote command line parsing to be much simpler. It was very broken, modifying the memory contents of the command line -- this wouldn't work on systems where the command line is stored in ROM unless a copy is first made. It also broke ram disk parameters by modifying whitespaces to NULL chars for purposes of reading its own parameters, but did not put the whitespace back, terminating the command line early.
Finally, we now have an integrated ramdisk parameter parsing with the new command line code.

svn path=/trunk/; revision=32164

16 years ago- Import atl.dll from Wine
Dmitry Chapyshev [Wed, 6 Feb 2008 17:29:28 +0000 (17:29 +0000)]
- Import atl.dll from Wine
- Add atl to bootcd

svn path=/trunk/; revision=32163

16 years agoWe now return memory map.
ReactOS Portable Systems Group [Wed, 6 Feb 2008 15:47:02 +0000 (15:47 +0000)]
We now return memory map.
We added a new member to the ARM board configuration block that specifies the number of memory map entries.
Board boot loaders are responsible for sending the base and size of all DRAM and FLASH banks. FLASH banks should be marked as Reserved so we don't try using them as RAM.

svn path=/trunk/; revision=32162

16 years ago- Add vga font for cp437
Dmitry Chapyshev [Wed, 6 Feb 2008 15:36:29 +0000 (15:36 +0000)]
- Add vga font for cp437

svn path=/trunk/; revision=32161

16 years ago- Fix formatting for ras.h, rasdlg.h and rasapi.h
Dmitry Chapyshev [Wed, 6 Feb 2008 15:29:45 +0000 (15:29 +0000)]
- Fix formatting for ras.h, rasdlg.h and rasapi.h
- Add raseapif.h header file

svn path=/trunk/; revision=32160

16 years ago- Import tapi32.dll from Wine
Dmitry Chapyshev [Wed, 6 Feb 2008 15:23:40 +0000 (15:23 +0000)]
- Import tapi32.dll from Wine
- Add more defines and structures to tapi.h
- Add tapi32 to bootcd

svn path=/trunk/; revision=32159

16 years agoUpdate German RC File
Daniel Reimer [Wed, 6 Feb 2008 12:20:34 +0000 (12:20 +0000)]
Update German RC File

svn path=/trunk/; revision=32158

16 years ago- Add more dialogs
Dmitry Chapyshev [Wed, 6 Feb 2008 11:36:37 +0000 (11:36 +0000)]
- Add more dialogs
- Add disable all controls functions
- Add icons

svn path=/trunk/; revision=32157

16 years agoFix typo
Hervé Poussineau [Wed, 6 Feb 2008 10:37:21 +0000 (10:37 +0000)]
Fix typo

svn path=/trunk/; revision=32155

16 years agofix indentation
Ged Murphy [Wed, 6 Feb 2008 10:34:03 +0000 (10:34 +0000)]
fix indentation

svn path=/trunk/; revision=32154

16 years ago- Make i8042Flush flush both output and input buffers.
Aleksey Bragin [Wed, 6 Feb 2008 09:46:38 +0000 (09:46 +0000)]
- Make i8042Flush flush both output and input buffers.
- Make i8042Flush apply only KBD_OBF flag (applying MOU_OBF leads to an infinite loop trying to flush the buffer).
- Fix a bug in i8042Write, where instead of waiting by polling a PollingIterations times (~10000), it was using ResendIterations (=3), thus giving 8042 very small chance of processing the data.
- Make i8042BasicDetect resend CTRL_SELF_TEST sequence, if controller asks so. Maximum resend iterations are limited by ResendIterations variable.
- Reinsert debug-messages hack, since this is an early-loading driver, and it's not possible to break in to KDBG to change debug filter values.
- As a result, keyboard and mouse work on real hardware again.
See issue #3036 for more details.

svn path=/trunk/; revision=32153

16 years agoWe implemented console support (through serial port), for the current board types...
ReactOS Portable Systems Group [Wed, 6 Feb 2008 07:32:47 +0000 (07:32 +0000)]
We implemented console support (through serial port), for the current board types supported (Feroceon, using UART 16550).
We added a new ClockRate member to the ARM Board Block structure.
We now print out the FreeLDR header after initialization to give some output to the user that we are alive.
Started putting shared stuff in headers.
Fixed copy/paste leftovers from file headers (wrong file names, implementation details, author).

svn path=/trunk/; revision=32151

16 years agoWe now make sure to build with the static version of libgcc. Previously, this resulte...
ReactOS Portable Systems Group [Wed, 6 Feb 2008 07:19:13 +0000 (07:19 +0000)]
We now make sure to build with the static version of libgcc. Previously, this resulted in FreeLDR having an import table and trying to import a .DLL file -- not a very wise attempt.

svn path=/trunk/; revision=32150

16 years ago- use intrinsic interlocked functions
Timo Kreuzer [Wed, 6 Feb 2008 05:09:26 +0000 (05:09 +0000)]
- use intrinsic interlocked functions
- add a function to get a full stackbacktrace including usermode

svn path=/trunk/; revision=32149

16 years agoImplement a proper ARM startup routine. We disable the FIQ and IRQ lines, then disabl...
ReactOS Portable Systems Group [Wed, 6 Feb 2008 04:48:22 +0000 (04:48 +0000)]
Implement a proper ARM startup routine. We disable the FIQ and IRQ lines, then disable and flush D and I caches, set up a temporary boot stack, and call ArmInit.
In ArmInit we define the structure that a compatible bootloader has to send us and currently make some assertions on it, before dropping into the common, portable, freeldr startup (BootMain).
This would be the place where we would want to setup UART0 for serial support later on, as well as TIMER0.
In MachInit, we now define the required ARM routines we'll need, all which simply loop for now.
Also fix a bug in RamDiskInit, which could do reads from NULL pointers.

svn path=/trunk/; revision=32148

16 years agoWindows doesn't store a hbrBack, when creating a window
Timo Kreuzer [Wed, 6 Feb 2008 04:01:02 +0000 (04:01 +0000)]
Windows doesn't store a hbrBack, when creating a window

svn path=/trunk/; revision=32147

16 years agouse syscolor brush for menu background, fixes a brush leak.
Timo Kreuzer [Wed, 6 Feb 2008 00:43:15 +0000 (00:43 +0000)]
use syscolor brush for menu background, fixes a brush leak.

svn path=/trunk/; revision=32146

16 years ago- Move each VGA font file to a new "media/vgafonts" directory and convert all PSF...
Colin Finck [Tue, 5 Feb 2008 19:31:05 +0000 (19:31 +0000)]
- Move each VGA font file to a new "media/vgafonts" directory and convert all PSF fonts to BIN files.
- Add a line to the autogenerated Makefile for Boot-CDs, which creates a "vgafonts.cab" file from the binary fonts at build time.
- Change blue.sys to read the fonts from the "vgafonts.cab" file instead of the "vgafont.bin" (ZIP format) file.
  I dropped support for PSF fonts in blue.sys, because with the vgafontedit app, we can easily convert PSF fonts to BIN fonts now.
  If someone still needs this format in blue.sys, I can reimplement it.

svn path=/trunk/; revision=32145

16 years ago- Fix typo
Dmitry Chapyshev [Tue, 5 Feb 2008 19:27:03 +0000 (19:27 +0000)]
- Fix typo

svn path=/trunk/; revision=32144

16 years agoFix the usetup text screen (broken in r32135)
Colin Finck [Tue, 5 Feb 2008 19:22:14 +0000 (19:22 +0000)]
Fix the usetup text screen (broken in r32135)

svn path=/trunk/; revision=32143

16 years agoMove and rename all rc files of rosapps according to our standards.
Daniel Reimer [Tue, 5 Feb 2008 17:00:30 +0000 (17:00 +0000)]
Move and rename all rc files of rosapps according to our standards.

svn path=/trunk/; revision=32142

16 years agoFix whatever TortoiseSVN made wrong here again... Build fixed
Daniel Reimer [Tue, 5 Feb 2008 16:33:47 +0000 (16:33 +0000)]
Fix whatever TortoiseSVN made wrong here again... Build fixed

svn path=/trunk/; revision=32141

16 years agoBug 3037: Rosapps polish translation patch (olaf_siejka@o2.pl)
Daniel Reimer [Tue, 5 Feb 2008 15:50:59 +0000 (15:50 +0000)]
Bug 3037: Rosapps polish translation patch (olaf_siejka@o2.pl)
Bug 3038: Ukrainian translation update (temarez@yandex.ru)
RC Files resorting like in the Bug reports before these will be done later this day.

svn path=/trunk/; revision=32140

16 years ago- Handle the different slashes correctly, also in combination (like "../..\*.txt...
Colin Finck [Tue, 5 Feb 2008 15:31:12 +0000 (15:31 +0000)]
- Handle the different slashes correctly, also in combination (like "../..\*.txt") by using the ConvertPath() function
- Only compare file names, not the whole pathes, in the Unix code path using MatchFileNamePattern
- Small change to the Usage text

svn path=/trunk/; revision=32139

16 years ago- Don't set a fixed size for the application name, allocate the needed memory dynamic...
Colin Finck [Tue, 5 Feb 2008 15:12:35 +0000 (15:12 +0000)]
- Don't set a fixed size for the application name, allocate the needed memory dynamically using AllocAndLoadString
- Small fixes to the german translation

svn path=/trunk/; revision=32138

16 years ago- Add Russian translation
Dmitry Chapyshev [Tue, 5 Feb 2008 14:50:02 +0000 (14:50 +0000)]
- Add Russian translation
- Move application title to resources

svn path=/trunk/; revision=32137

16 years agoOn ARM, it seems first = "true" parsing doesn't actually work in .rbuild files -...
ReactOS Portable Systems Group [Tue, 5 Feb 2008 11:15:59 +0000 (11:15 +0000)]
On ARM, it seems first = "true" parsing doesn't actually work in .rbuild files -- the object is not properly placed in the beginning of the FreeLDR text section.
As a workaround, a special "startup" section is now used to contain the boot.s code, and a linker flag is used to set this section as the entrypoint section at 0x8000.
FreeLDR for ARM now links properly, with _start at 0x8000.

svn path=/trunk/; revision=32136

16 years agoFix a couple of problems with FreeLDR portability.
ReactOS Portable Systems Group [Tue, 5 Feb 2008 11:13:17 +0000 (11:13 +0000)]
Fix a couple of problems with FreeLDR portability.
beep is now MachBeep since the code is not portable.
A variety of portable PE loading routines were in arch/loader.c for no reason. These are now in reactos/imageldr.c. arch/loader.c now only contains the architecture-specific ReactOS initialization code.
AcpiPresent was used on all builds, even though it's a non-portable x86-only flag. Now, ACPI detection itself, if present, will set the appropriate ACPI flag directly in the loader blog, so other architectures don't have to worry about exporting AcpiPresent;
DiskStopFloppyMotor is only relevant to x86, as is preparing for Video. MachVideoPrepareForReactOS has therefore been replaced by MachPrepareForReactOS as a generic pre-boot preparation routine.
Implemented MachPrepareForReactOS across current architectures to preserve functionality.

svn path=/trunk/; revision=32135

16 years agoImplement ARM version of DbgBreakPoint in the RTL. We do a bkpt with a special value...
ReactOS Portable Systems Group [Tue, 5 Feb 2008 11:08:34 +0000 (11:08 +0000)]
Implement ARM version of DbgBreakPoint in the RTL. We do a bkpt with a special value of 3 (to be as close as possible to x86 int 3).
Fix NtCurrentTeb definition for ARM. We will expose the KPCR to user-mode much like KUSER_SHARED_DATA on x86 (this is how ARM-CE and NT-MIPS do it) and link the TEB there.

svn path=/trunk/; revision=32134

16 years agoFixed an infinite loop in IDirect3D::GetAdapterIdentifier()
Gregor Brunmar [Tue, 5 Feb 2008 06:37:48 +0000 (06:37 +0000)]
Fixed an infinite loop in IDirect3D::GetAdapterIdentifier()

svn path=/trunk/; revision=32133

16 years agoBuild FreeLDR for ARM.
ReactOS Portable Systems Group [Tue, 5 Feb 2008 03:06:20 +0000 (03:06 +0000)]
Build FreeLDR for ARM.
We merely provide a _start entrypoint stub and two stub architecture files with no functions implemented.
We also supply the proper ARM configuration settings in the .rbuild files, and add the necessary headers.
FreeLDR can now be compiled (along with rossym, libcntptr, rtl and cmlib) but it will not link until the actual ARM code is implemented.

svn path=/trunk/; revision=32132

16 years agoAdd basic arm target support to the build system.
ReactOS Portable Systems Group [Tue, 5 Feb 2008 02:58:28 +0000 (02:58 +0000)]
Add basic arm target support to the build system.
Reactos-arm.rbuild uses the same settings as the x86 version, but defines _ARM_ and __arm__ instead. _M_ARM is already defined by the compiler.
Add ARM system call stub support to ncitool. We are currently using a SWI 0x2E to achieve this.
Add ARM support to winnt.h.
Add a preliminary intrin_arm.h
Add ketypes.h and mmtypes.h for ARM in the NDK. For now these are mostly stubs to allow compiling to work.
Add ARM support to winddk.h.
Fix some broken x86-only assumptions in the NDK.
Add config-arm-template.rbuild. By defauilt we build for armv5te (armv4 and v5 are supported, not v6).
Set ROS_ARCH=arm to switch to ARM. Set ROS_PREFIX to an appropriate MinGW-32 ARM PE crosscompiler.

svn path=/trunk/; revision=32131

16 years agoThe Windows headers include a file called ioaccess.h in the ddk folder, which exposes...
ReactOS Portable Systems Group [Tue, 5 Feb 2008 02:40:08 +0000 (02:40 +0000)]
The Windows headers include a file called ioaccess.h in the ddk folder, which exposes various READ/WRITE_PORT/REGISTER_ routines as inlined macros for various architectures (PPC, MIPS, AMD64, IA64, X86), making use of the MSVC compiler-intrinsics (inp, outp, etc). Since ReactOS already has those intrinscs implemented, we've also created an ioaccess.h w32api header file which makes use of them.
We can now remove the portio.h and portio.c files in FreeLDR, since there's no more need to duplicate this code.
Additionally, this can be also done with the PPC port of FreeLDR or any other architecture, since it doesn't require per-architecture support in FreeLDR anymore -- only the underlying intrinsics in intrin.h must be implemented (note that for PPC, MIPS and ARM, the notion of a port doesn't even exist -- those functions map to register-reading functions, where register basically means memory).

svn path=/trunk/; revision=32130

16 years ago--- FIXED COMMIT LOG FOR r32128. NO CHANGES IN THIS REVISION ---
ReactOS Portable Systems Group [Tue, 5 Feb 2008 01:39:22 +0000 (01:39 +0000)]
--- FIXED COMMIT LOG FOR r32128. NO CHANGES IN THIS REVISION ---
Implement ramdisk support for FreeLDR (ramdisk.c and ramdisk.h). The implementation is portable across all architectures.
We also define a virual ramdisk file (hardcoded name is reactos.img, on the boot volume) for testing ramdisk support on architectures without native ramdisk support (such as x86). This could be further extended to allow network booting as a ramdisk at a later time, but is now primarly for test purposes.
We introduce two new FreeLDR command-line parameters that should be sent by non-x86 firmware: rdbase and rdsize, and a new freeldr.ini ARC path: ramdisk(0) -- this is compatible with Windows.
For compatibility and status output, we use 8MB chunks for reading virtual ramdisk files (a dot is displayed for each additional 8MB chunk).
Finally, for code-reuse, the ramdisk implementation will "steal" the BIOS support routines in the arch-vtable and replace them with simple memcpy wrappers. To the disk/filesystem routines in FreeLDR, they think they are reading from the BIOS (or other firmware), but instead, the sector reads are coming from memory).
For now, only FAT ramdisks have been tested, and a sector size of 512 bytes is implied. We also disable the FAT block cache since it wouldn't make much sense to cache RAM.
*** Note that kernel ramdisk support is missing, so once the kernel attempts to load drivers from the boot device (ramdisk(0)), it will panic. This is currently non an issue on non-x86 builds since the kernel won't get that far for a while.

svn path=/trunk/; revision=32129

16 years agoImplement ramdisk support for FreeLDR (ramdisk.c and ramdisk.h). The implementation...
ReactOS Portable Systems Group [Tue, 5 Feb 2008 01:29:49 +0000 (01:29 +0000)]
Implement ramdisk support for FreeLDR (ramdisk.c and ramdisk.h). The implementation is portable across all architectures.
We also define a virual ramdisk file (hardcoded name is reactos.img, on the boot volume) for testing ramdisk support on architectures without native ramdisk support (such as x86). This could be $
We introduce two new FreeLDR command-line parameters that should be sent by non-x86 firmware: rdbase and rdsize, and a new freeldr.ini ARC path: ramdisk(0) -- this is compatible with Windows.
For compatibility and status output, we use 8MB chunks for reading virtual ramdisk files (a dot is displayed for each additional 8MB chunk).
Finally, for code-reuse, the ramdisk implementation will "steal" the BIOS support routines in the arch-vtable and replace them with simple memcpy wrappers. To the disk/filesystem routines in Fre$
For now, only FAT ramdisks have been tested, and a sector size of 512 bytes is implied. We also disable the FAT block cache since it wouldn't make much sense to cache RAM.
$lds since the kernel won't get that far for a while.

svn path=/trunk/; revision=32128

16 years ago- Add a function MatchFileNamePattern for matching a file against a pattern (imported...
Colin Finck [Mon, 4 Feb 2008 22:48:42 +0000 (22:48 +0000)]
- Add a function MatchFileNamePattern for matching a file against a pattern (imported from Busybox under GPL2 or later license, heavily modified for our purposes, more information in the function comments)
- Add support for multiple search criterias, which are actually checked.
  This makes it possible to pass parameters like "*.rbuild *.txt" to the cabman command line for adding, displaying and extracting files in a cabinet.
- Overhaul CreateSimpleCabinet, make it able to add multiple files to the cabinet using the new search criteria functions.
- Fix some comments and indentation here and there.

svn path=/trunk/; revision=32127

16 years agoalways return Request->Status;
Christoph von Wittich [Mon, 4 Feb 2008 22:41:09 +0000 (22:41 +0000)]
always return Request->Status;

svn path=/trunk/; revision=32126

16 years ago- remove unused members
Johannes Anderwald [Mon, 4 Feb 2008 22:33:21 +0000 (22:33 +0000)]
- remove unused members

svn path=/trunk/; revision=32125

16 years ago- fix error status
Johannes Anderwald [Mon, 4 Feb 2008 22:32:37 +0000 (22:32 +0000)]
- fix error status

svn path=/trunk/; revision=32124

16 years agoreturn 0 when type is DWORD
Christoph von Wittich [Mon, 4 Feb 2008 22:11:56 +0000 (22:11 +0000)]
return 0 when type is DWORD
remove unused alias struct

svn path=/trunk/; revision=32123

16 years ago* Implemented IDirect3D9's GetAdapterCount() and GetAdapterIdentifier()
Gregor Brunmar [Mon, 4 Feb 2008 21:33:12 +0000 (21:33 +0000)]
* Implemented IDirect3D9's GetAdapterCount() and GetAdapterIdentifier()
* Made d3d9.dll compile with MSVC

svn path=/trunk/; revision=32122

16 years ago- insert new entry when required
Johannes Anderwald [Mon, 4 Feb 2008 21:24:09 +0000 (21:24 +0000)]
- insert new entry when required
- check for null

svn path=/trunk/; revision=32121

16 years ago- Build FreeLdr the same way other modules are built, by using gcc -Wl.
Aleksey Bragin [Mon, 4 Feb 2008 20:27:43 +0000 (20:27 +0000)]
- Build FreeLdr the same way other modules are built, by using gcc -Wl.
- This allows us to get rid of the /math directory and use -lgcc instead.
- Get rid of -ffreestanding, -fno-builtin and -O2. The former are not needed anymore since we're properly building a "freestanding" image anyway, just like the kernel. The latter is removed since optimization flags come from the project settings.
- Update code to fix warnings caused since we've removed -ffreestanding. GCC now warns about printf, sprintf and other C calls (including a change from %wZ to %S in winldr.c's sprintf calls).
- Don't use printf anymore -- rename freeldr's implementation to TuiPrintf. Just like in the kernel, you can't use printf in freeldr (since it's not running in a standard/full CRT environment).
- 124kb saved!

svn path=/trunk/; revision=32120

16 years ago- rename member
Johannes Anderwald [Mon, 4 Feb 2008 18:58:46 +0000 (18:58 +0000)]
- rename member

svn path=/trunk/; revision=32119

16 years ago- call csrss for Console alias related functions
Johannes Anderwald [Mon, 4 Feb 2008 18:58:17 +0000 (18:58 +0000)]
- call csrss for Console alias related functions

svn path=/trunk/; revision=32118

16 years ago- implement GetConsoleAlias* AddConsoleAlias function in csrss
Johannes Anderwald [Mon, 4 Feb 2008 18:57:19 +0000 (18:57 +0000)]
- implement GetConsoleAlias* AddConsoleAlias function in csrss
-

svn path=/trunk/; revision=32117

16 years ago- Add missing registry values.
Aleksey Bragin [Mon, 4 Feb 2008 17:10:01 +0000 (17:10 +0000)]
- Add missing registry values.

svn path=/trunk/; revision=32116

16 years ago- add api message structs / constants for doskey
Johannes Anderwald [Mon, 4 Feb 2008 15:06:09 +0000 (15:06 +0000)]
- add api message structs / constants for doskey

svn path=/trunk/; revision=32115

16 years ago- Sync RPC headers with Wine.
Aleksey Bragin [Mon, 4 Feb 2008 13:15:01 +0000 (13:15 +0000)]
- Sync RPC headers with Wine.

svn path=/trunk/; revision=32114

16 years ago- Make Mm allocation strategy low->high by default.
Aleksey Bragin [Mon, 4 Feb 2008 10:45:55 +0000 (10:45 +0000)]
- Make Mm allocation strategy low->high by default.
- Clean up Mm APIs which are not needed anymore.
- Get rid of the LOADER_HIGH_ZONE definition, now the real LoaderPagesSpanned value is calculated and used. As a result, minimum memory requirement (which was >= LOADER_HIGH_ZONE) is gone, and a maximum amount of memory which could be allocated is also gone (previously, not more that the LOADER_HIGH_ZONE).
- IMPORTANT: The FAT filesystem caching is disabled by default now due strange problems in 3rd boot stage, after switching the cache to use heap routines. Cache can't use non-heap routines anymore, since the memory will overlap the contigious modules memory space which ReactOS needs.
- More cleanup and more usage of the heap routines for temporary buffers.
- Fix a bug in MmAllocateMemoryWithType, where result of MmFindAvailablePages was checked against -1 in error case, when in reality it's 0 (spotted by Alex). NB: 0 page is marked as a reserved in x86 arch, so it's never going to be returned as an available.

svn path=/trunk/; revision=32113

16 years ago- Make other filesystems use the new heap mm routines.
Aleksey Bragin [Mon, 4 Feb 2008 09:37:59 +0000 (09:37 +0000)]
- Make other filesystems use the new heap mm routines.

svn path=/trunk/; revision=32112

16 years ago- recurse into IntGdiDeleteDC directly, instead of going back to NtGdiDeleteObjectApp...
Timo Kreuzer [Mon, 4 Feb 2008 03:31:09 +0000 (03:31 +0000)]
- recurse into IntGdiDeleteDC directly, instead of going back to NtGdiDeleteObjectApp and pass Force parameter on.
- add a FIXME for dangerous code

svn path=/trunk/; revision=32111

16 years ago- simplify a check
Timo Kreuzer [Mon, 4 Feb 2008 03:22:27 +0000 (03:22 +0000)]
- simplify a check
- fix a check
- fix a region leak
- don't abuse GDIOBJ_LockObj to validate a handle, use GDIOBJ_ValidateHandle instead
- add some additional debug output

svn path=/trunk/; revision=32110

16 years ago- remove GDIOB_XxxDbg functions
Timo Kreuzer [Mon, 4 Feb 2008 03:17:37 +0000 (03:17 +0000)]
- remove GDIOB_XxxDbg functions
- enhance backtracing and debug output for GDI_DEBUG
- implement GDIOBJ_ValidateHandle()
Stack record dumping is commented out atm due to missing support from ntoskrnl

svn path=/trunk/; revision=32109

16 years ago- Revert 32105 to make trunk bootable, as agreed with Colin.
Aleksey Bragin [Sun, 3 Feb 2008 21:47:35 +0000 (21:47 +0000)]
- Revert 32105 to make trunk bootable, as agreed with Colin.

svn path=/trunk/; revision=32108

16 years ago- Make caching enable/disable a runtime switch instead of a compile time one.
Aleksey Bragin [Sun, 3 Feb 2008 18:51:48 +0000 (18:51 +0000)]
- Make caching enable/disable a runtime switch instead of a compile time one.

svn path=/trunk/; revision=32107

16 years agofix a DC handle leak
Timo Kreuzer [Sun, 3 Feb 2008 14:26:52 +0000 (14:26 +0000)]
fix a DC handle leak

svn path=/trunk/; revision=32106

16 years ago- Use host/typedefs.h for rsym instead of reinventing the wheel for host types
Colin Finck [Sun, 3 Feb 2008 13:53:27 +0000 (13:53 +0000)]
- Use host/typedefs.h for rsym instead of reinventing the wheel for host types
- Get rsym to compile warning-free under any host

svn path=/trunk/; revision=32105

16 years agoGet inflib_host to build warning-free
Colin Finck [Sun, 3 Feb 2008 13:36:10 +0000 (13:36 +0000)]
Get inflib_host to build warning-free

svn path=/trunk/; revision=32104

16 years agoFinally fix all cabman warnings and the 64-bit build
Colin Finck [Sun, 3 Feb 2008 11:52:42 +0000 (11:52 +0000)]
Finally fix all cabman warnings and the 64-bit build

svn path=/trunk/; revision=32103

16 years ago- Remove accidentally committed stuff, noticed by Stefan.
Aleksey Bragin [Sun, 3 Feb 2008 11:50:26 +0000 (11:50 +0000)]
- Remove accidentally committed stuff, noticed by Stefan.

svn path=/trunk/; revision=32102

16 years agoFix many warnings (hopefully all) in cabman under different hosts.
Colin Finck [Sun, 3 Feb 2008 11:23:31 +0000 (11:23 +0000)]
Fix many warnings (hopefully all) in cabman under different hosts.

We cast all ULONG's to UINT's here, because this is the only type for which we can be sure that it defines to "unsigned int".
ULONG is "unsigned long" with the Windows headers and "unsigned int" with the host headers (for 64-bit compatibility), therefore we need the casts.

svn path=/trunk/; revision=32101

16 years agoGerman Translations by Dark_Shadow@gmx.at
Daniel Reimer [Sun, 3 Feb 2008 08:34:44 +0000 (08:34 +0000)]
German Translations by Dark_Shadow@gmx.at

svn path=/trunk/; revision=32100

16 years agoGerman RC File Updates by (Dark_Shadow@gmx.at)
Daniel Reimer [Sun, 3 Feb 2008 08:21:00 +0000 (08:21 +0000)]
German RC File Updates by (Dark_Shadow@gmx.at)

svn path=/trunk/; revision=32099

16 years agobuild unicode version
Christoph von Wittich [Sat, 2 Feb 2008 22:49:24 +0000 (22:49 +0000)]
build unicode version

svn path=/trunk/; revision=32098

16 years agoadd support for /macrofile (bit hacky - but it should work for RosBE)
Christoph von Wittich [Sat, 2 Feb 2008 21:52:46 +0000 (21:52 +0000)]
add support for /macrofile (bit hacky - but it should work for RosBE)

svn path=/trunk/; revision=32097

16 years agosupport for adding and deleting macros
Christoph von Wittich [Sat, 2 Feb 2008 21:32:11 +0000 (21:32 +0000)]
support for adding and deleting macros
doskey macroname=command
doskey macroname=

svn path=/trunk/; revision=32096

16 years agoadd doskey to bootcd
Christoph von Wittich [Sat, 2 Feb 2008 21:26:26 +0000 (21:26 +0000)]
add doskey to bootcd

svn path=/trunk/; revision=32095

16 years agoadd doskey (not finished yet)
Christoph von Wittich [Sat, 2 Feb 2008 21:23:38 +0000 (21:23 +0000)]
add doskey (not finished yet)

svn path=/trunk/; revision=32094

16 years agorewrote alias handling in cmd for doskey compatibility
Christoph von Wittich [Sat, 2 Feb 2008 21:06:53 +0000 (21:06 +0000)]
rewrote alias handling in cmd for doskey compatibility
implemented AddConsoleAliasA, GetConsoleAliasesLengthA, GetConsoleAliasesLengthW
halfplemented: AddConsoleAliasW, GetConsoleAliasW, GetConsoleAliasesW

svn path=/trunk/; revision=32093

16 years ago- Fix funky ways of checking for success, when calling SetFilePointer.
Colin Finck [Sat, 2 Feb 2008 19:21:35 +0000 (19:21 +0000)]
- Fix funky ways of checking for success, when calling SetFilePointer.
  The only correct and always working way is checking for INVALID_SET_FILE_POINTER.
- Fix setting the file attributes.
  We didn't pass the destination directory before, so if the user specified another destination directory, the SetFileAttributes call failed.
- Simplify GetAttributesOnFile and SetAttributesOnFile

svn path=/trunk/; revision=32092

16 years ago- Mark APIC's memory as WriteThrough / CacheDisabled.
Aleksey Bragin [Sat, 2 Feb 2008 15:15:41 +0000 (15:15 +0000)]
- Mark APIC's memory as WriteThrough / CacheDisabled.

svn path=/trunk/; revision=32090

16 years ago- Add an -M option to specify, which compression codec shall be used (either "raw...
Colin Finck [Sat, 2 Feb 2008 14:32:44 +0000 (14:32 +0000)]
- Add an -M option to specify, which compression codec shall be used (either "raw" or "mszip")
- Enable the RAW codec in the SelectCodec() function
- Don't initialize a codec in the CCabinet constructor, this will be done by the ParseCmdline() function
- Fix parsing the -L and -P parameters, when there's no whitespace between the parameter and the value
- Remove some unneeded casts
- Remove the cabman vesion number, it was never updated, although there were many changes since the first version

svn path=/trunk/; revision=32089

16 years agoGet it to compile warning-free under MSVC (at /W3)
Colin Finck [Sat, 2 Feb 2008 12:05:05 +0000 (12:05 +0000)]
Get it to compile warning-free under MSVC (at /W3)

svn path=/trunk/; revision=32087

16 years ago[FORMATTING] TABs -> 4 spaces
Colin Finck [Sat, 2 Feb 2008 11:57:16 +0000 (11:57 +0000)]
[FORMATTING] TABs -> 4 spaces

svn path=/trunk/; revision=32086

16 years agodisplay short version info for "ver" as default
Christoph von Wittich [Sat, 2 Feb 2008 11:03:43 +0000 (11:03 +0000)]
display short version info for "ver" as default
use /c, /r or /w to get more details

svn path=/trunk/; revision=32085

16 years agomove code to the correct position to handle all cases in 'if'
Christoph von Wittich [Sat, 2 Feb 2008 10:52:29 +0000 (10:52 +0000)]
move code to the correct position to handle all cases in 'if'

svn path=/trunk/; revision=32084

16 years agodon't overwrite terminating \0 char
Christoph von Wittich [Sat, 2 Feb 2008 10:38:37 +0000 (10:38 +0000)]
don't overwrite terminating \0 char
some code cleanup

svn path=/trunk/; revision=32083

16 years agofix length calculation for :~
Christoph von Wittich [Sat, 2 Feb 2008 09:29:42 +0000 (09:29 +0000)]
fix length calculation for :~

svn path=/trunk/; revision=32082

16 years agoset correct varNameLen for %~dp0
Christoph von Wittich [Sat, 2 Feb 2008 09:21:22 +0000 (09:21 +0000)]
set correct varNameLen for %~dp0

svn path=/trunk/; revision=32081

16 years agofix formatting
Christoph von Wittich [Fri, 1 Feb 2008 23:27:27 +0000 (23:27 +0000)]
fix formatting

svn path=/trunk/; revision=32080

16 years agoWrote a Win32 Font Editor for our VGA Fonts used in blue.sys.
Colin Finck [Fri, 1 Feb 2008 21:40:18 +0000 (21:40 +0000)]
Wrote a Win32 Font Editor for our VGA Fonts used in blue.sys.

It has a MDI user interface, imports binary fonts (.bin) and PC Screen Fonts (.psf) and exports .bin fonts.
Compiles without any warnings with GCC and MSVC (at /W3).

The "misc.c" file was taken from devmgmt (thanks Ged!) and modified.
The used bitmaps and icons were all done myself, but partly consist of characters of the cp737 font we have in media/vgafont.

svn path=/trunk/; revision=32079

16 years agofix a problem with length calculation
Christoph von Wittich [Fri, 1 Feb 2008 21:25:21 +0000 (21:25 +0000)]
fix a problem with length calculation
handle vars with exclamation marks instead of %
like !errorlevel!

svn path=/trunk/; revision=32078

16 years agoRemove some redefined macros from "winnls.h"
Colin Finck [Fri, 1 Feb 2008 21:22:02 +0000 (21:22 +0000)]
Remove some redefined macros from "winnls.h"
As we set #pragma GCC system_header, all warnings are suppressed for that header, but in MSVC they are shown again.

svn path=/trunk/; revision=32077

16 years agoZeroMemory the batchfile path
Christoph von Wittich [Fri, 1 Feb 2008 20:30:51 +0000 (20:30 +0000)]
ZeroMemory the batchfile path

svn path=/trunk/; revision=32076

16 years ago- Filip Navara: Take into account non-fast/non-hash indices in CmPrepareHive.
Aleksey Bragin [Fri, 1 Feb 2008 18:53:43 +0000 (18:53 +0000)]
- Filip Navara: Take into account non-fast/non-hash indices in CmPrepareHive.
- Apply similar changes to freeldr's registry importing function.

svn path=/trunk/; revision=32075

16 years ago- Make dp0 give the directory the batch was run from instead of the current directory.
Peter Ward [Fri, 1 Feb 2008 14:15:41 +0000 (14:15 +0000)]
- Make dp0 give the directory the batch was run from instead of the current directory.

svn path=/trunk/; revision=32074

16 years agofix a bug in goto
Christoph von Wittich [Fri, 1 Feb 2008 09:49:58 +0000 (09:49 +0000)]
fix a bug in goto
a stubs for setlocal and endlocal (our default is delayed expansion)

svn path=/trunk/; revision=32073

16 years agoPolish resource changes:
Sebastian Gasiorek [Thu, 31 Jan 2008 23:17:24 +0000 (23:17 +0000)]
Polish resource changes:
- change Wine to ReactOS in "Run" dialog
- insert and translate IDS_RESTART

svn path=/trunk/; revision=32072

16 years agofix definitions of WM_MOUSEWHEEL and WM_MOUSELAST
Timo Kreuzer [Thu, 31 Jan 2008 21:29:03 +0000 (21:29 +0000)]
fix definitions of WM_MOUSEWHEEL and WM_MOUSELAST

svn path=/trunk/; revision=32071

16 years agohandle call :Label
Christoph von Wittich [Thu, 31 Jan 2008 20:55:05 +0000 (20:55 +0000)]
handle call :Label
fix goto :Label

svn path=/trunk/; revision=32070

16 years agohandle %dp0
Christoph von Wittich [Thu, 31 Jan 2008 19:01:23 +0000 (19:01 +0000)]
handle %dp0

svn path=/trunk/; revision=32069

16 years agosupport else
Christoph von Wittich [Thu, 31 Jan 2008 17:59:02 +0000 (17:59 +0000)]
support else
handle negative values in special envvars
stdin,out,err can't be redirected for windows gui apps

svn path=/trunk/; revision=32068

16 years agodon't print the new color value when echo is off
Christoph von Wittich [Thu, 31 Jan 2008 17:26:57 +0000 (17:26 +0000)]
don't print the new color value when echo is off

svn path=/trunk/; revision=32067