reactos.git
17 years agorevert 24179 it was bad idea. and wrong way todo it on
Magnus Olsen [Mon, 18 Sep 2006 05:13:17 +0000 (05:13 +0000)]
revert 24179 it was bad idea. and wrong way todo it on
See issue #21478 for more details.

svn path=/trunk/; revision=24188

17 years ago- Implement FPU Exception Handler.
Alex Ionescu [Mon, 18 Sep 2006 02:33:21 +0000 (02:33 +0000)]
- Implement FPU Exception Handler.
- We can now properly handle FPU faults (wrote a small test for invalid fpu precision).
- OpenGL probably still doesn't work, as there might be some bugs around the place. However, you should not see FPU Bugchecks anymore.

svn path=/trunk/; revision=24187

17 years ago- Implement Trap 16: Math Coprocessor Fault. Happens during Floating Point precision...
Alex Ionescu [Mon, 18 Sep 2006 01:07:13 +0000 (01:07 +0000)]
- Implement Trap 16: Math Coprocessor Fault. Happens during Floating Point precision error test that I wrote. Simply calls shared NPX handler in KiTrap7.
- Implement some extra checks in KiTrap7 and start coding the NPX shared handler. We *almost* have full FPU support now... (trying to get this done for tomorrow morning so that Greatlord can sent me the 15 000$ he promised...)

svn path=/trunk/; revision=24186

17 years ago- On SMP systems, update KPROCESS->ActiveProcessors and assert their validty. Needed...
Alex Ionescu [Mon, 18 Sep 2006 00:34:13 +0000 (00:34 +0000)]
- On SMP systems, update KPROCESS->ActiveProcessors and assert their validty. Needed for a similar assertion and check in KiSwapProcess which we already have.
- Also on SMP, make sure to clear the KTHREAD's swap-busy lock after the actual swap has been done.

svn path=/trunk/; revision=24185

17 years ago- Assert that the current CPU is the one the thread is supposed to be running on.
Alex Ionescu [Mon, 18 Sep 2006 00:30:30 +0000 (00:30 +0000)]
- Assert that the current CPU is the one the thread is supposed to be running on.
- Get CR0, read the KTHREAD NPX State, disable interrupts and verify if the NPX state is dirty. If it is, then reload CR0 with the new value. Re-enable interrupts. This sequence should make FPU work during context switching, but I haven't tested yet. At the very least, it should get rid of TRAP_FAULT_UNKNOWN blue screen.
- Set TEB in the same time as the selector is being configured, not way earlier.

svn path=/trunk/; revision=24184

17 years ago- Fix some bugs in LDT switch (EDI->EBP)
Alex Ionescu [Mon, 18 Sep 2006 00:17:53 +0000 (00:17 +0000)]
- Fix some bugs in LDT switch (EDI->EBP)
- Turn simple bugcheck into BugCheckEx with information that the helpfile says it should have.

svn path=/trunk/; revision=24183

17 years ago- Don't update CR3 in KTSS, it's not used.
Alex Ionescu [Mon, 18 Sep 2006 00:10:58 +0000 (00:10 +0000)]
- Don't update CR3 in KTSS, it's not used.
- Don't read a useless stack pointer anymore.
- Update KTSS_ESP0 near the end of context switching, not at the beginning anymore.
- Same for IOPM and I/O Redirection Map Base Address.

svn path=/trunk/; revision=24182

17 years ago- Stop doing cli/sti doing context switching (For now, since it's only needed for...
Alex Ionescu [Mon, 18 Sep 2006 00:02:46 +0000 (00:02 +0000)]
- Stop doing cli/sti doing context switching (For now, since it's only needed for FPU, which isn't yet done).
- Stop using XP KPCR fields for storing stack values, they're not used inside the kernel anymore and now have 2003 values (WMI tracing, etc).
- Move parts of the process switch (LDT reload) out-of-line.

svn path=/trunk/; revision=24181

17 years ago- Add func.endfunc decoration.
Alex Ionescu [Sun, 17 Sep 2006 23:17:07 +0000 (23:17 +0000)]
- Add func.endfunc decoration.
- Add code to wait for SwapBusy == FALSE on SMP.
- Add stub code to check for new PCR fields in 2003. Currently disabled because thread swap code still uses XP fields.
- Check for active DPCs at the end of thread swap, not at the beginning.
- Set PRCB->IdleThread outside of the thread swap routine.
- Don't set the thread state to running inside the swap routine, we already do it outside.

svn path=/trunk/; revision=24180

17 years agoimplemet GdiReleaseDC it redirect to NtUserReleaseDC(HWD hwd, HDC hdc) now
Magnus Olsen [Sun, 17 Sep 2006 22:10:24 +0000 (22:10 +0000)]
implemet GdiReleaseDC  it redirect to NtUserReleaseDC(HWD hwd, HDC hdc) now

svn path=/trunk/; revision=24179

17 years ago- Fix some insidious bugs in exception handling, mostly related to the art of unwindi...
Alex Ionescu [Sun, 17 Sep 2006 21:09:10 +0000 (21:09 +0000)]
- Fix some insidious bugs in exception handling, mostly related to the art of unwinding (RtlUnwind).
- Can't name specifics, but probably fixes multiple SEH/application bugs/regressions since about 6-8 months ago. Fixes my personal SEH test from 22 failures/crashes/BSODs to 22 succeesses...
- Also fixes some crashes in kernel-kqemu mode.

svn path=/trunk/; revision=24178

17 years agodid delete NtGdiDeleteObjectApp at end of NtGdiCloseEnhMetaFile by mistake. radding it
Magnus Olsen [Sun, 17 Sep 2006 20:42:59 +0000 (20:42 +0000)]
did delete NtGdiDeleteObjectApp at end of NtGdiCloseEnhMetaFile by mistake. radding it

svn path=/trunk/; revision=24177

17 years agoActivate CloseEnhMetaFile in gdi32.
Magnus Olsen [Sun, 17 Sep 2006 20:22:27 +0000 (20:22 +0000)]
Activate CloseEnhMetaFile in gdi32.
We do not leak memory from CreateEnhMetaFile.

svn path=/trunk/; revision=24176

17 years agoNtGdiCloseEnhMetaFile
Magnus Olsen [Sun, 17 Sep 2006 20:21:01 +0000 (20:21 +0000)]
NtGdiCloseEnhMetaFile
1. translate EMF_Create_HENHMETAFILE to reactos
2. Delete hdc.

NtGdiCreateEnhMetaFile
1. Set hdc ownership.

svn path=/trunk/; revision=24175

17 years ago- Cleanup except_asm.s and add .func/.endfunc and fix some double definitions.
Alex Ionescu [Sun, 17 Sep 2006 18:44:52 +0000 (18:44 +0000)]
- Cleanup except_asm.s and add .func/.endfunc and fix some double definitions.

svn path=/trunk/; revision=24174

17 years ago- Fix a bug in KeRaiseUserExceptionDispatcher which was causing us not to set the...
Alex Ionescu [Sun, 17 Sep 2006 17:31:52 +0000 (17:31 +0000)]
- Fix a bug in KeRaiseUserExceptionDispatcher which was causing us not to set the Exception Address (EIP) in the EH record.
- Fix a terrible stack corruption bug in KeRaiseUserExceptionDispatcher which was causing us to eventually fuck up the stack in user mode (0x14 bytes instead of 0x50 bytes were reserved).
- Protect User-mode Callbacks with SEH, and use STATUS_POP_CALLBACK_STACK.
- Fix another nasty stack corruption bug in user-mode APC delivery.
- Protect User-mode APC delivery with SEH.
- Fix SEH handlers to return EXCEPTION_EXECUTE_HANDLER isntead of ExceptionContinueSearch.

svn path=/trunk/; revision=24173

17 years agofast implemet of NtGdiCloseEnhMetaFile
Magnus Olsen [Sun, 17 Sep 2006 15:47:29 +0000 (15:47 +0000)]
fast implemet of NtGdiCloseEnhMetaFile
follow thing need be done before it is finish but it will slov leaked memory and filehandle from NtGdiCreateEnhMetaFile
for we have NtGdiCreateEnhMetaFile implement. NtGdiCloseEnhMetaFile is base on wine cvs 15/9-2006
Todo
1. Rewrite it to own api call IntGdiCloseEmhMetaFile
2. Use Zw and Int direcly so we do not need todo  context swith each call
3. Translate follow api to kernel api
   // hMapping = CreateFileMappingW(Dc->hFile, NULL, PAGE_READONLY, 0, 0, NULL);
   // Dc->emh = MapViewOfFile(hMapping, FILE_MAP_READ, 0, 0, 0);
   // hmf = EMF_Create_HENHMETAFILE( Dc->emh, (Dc->hFile != 0) );

svn path=/trunk/; revision=24172

17 years agoDefine some registry entries as not volatile, to prevent new installation of device...
Hervé Poussineau [Sun, 17 Sep 2006 15:42:50 +0000 (15:42 +0000)]
Define some registry entries as not volatile, to prevent new installation of device at each boot

svn path=/trunk/; revision=24171

17 years agoDeviceNode->ResourceList and DeviceNode->ResourceListTranslated should not share...
Hervé Poussineau [Sun, 17 Sep 2006 15:24:55 +0000 (15:24 +0000)]
DeviceNode->ResourceList and DeviceNode->ResourceListTranslated should not share memory with DeviceNode->BootResources

svn path=/trunk/; revision=24170

17 years ago- A missing "return" statement to KiDispatchException which was causing all user...
Alex Ionescu [Sun, 17 Sep 2006 15:01:57 +0000 (15:01 +0000)]
- A missing "return" statement to KiDispatchException which was causing all user-mode exceptions to become second-chance and thus crash the app. mIRC works again, and probably numerous other apps (mozilla as well i think, since it had the same issue)

svn path=/trunk/; revision=24169

17 years agoDisable some code I did during the last day to repair ReactOS boot. Let's hope it...
Hervé Poussineau [Sun, 17 Sep 2006 14:27:17 +0000 (14:27 +0000)]
Disable some code I did during the last day to repair ReactOS boot. Let's hope it is enough

svn path=/trunk/; revision=24168

17 years agoUpgrade from dejavu font 2.9 to 2.10
Magnus Olsen [Sun, 17 Sep 2006 13:37:59 +0000 (13:37 +0000)]
Upgrade from dejavu font 2.9 to 2.10
reason
1. Bugfix some charters that did not show in Windows/ReactOS
2. Fixing space between some charters
3. Dejvau san font support 100% folllow Latin Extended-B, Latin Extended-C, Greek and Coptic, Superscripts and Subscripts, Currency Symbols.
4. and allot more new charters

svn path=/trunk/; revision=24167

17 years agoDon't go further than end of string when writing value to registry
Hervé Poussineau [Sun, 17 Sep 2006 12:20:44 +0000 (12:20 +0000)]
Don't go further than end of string when writing value to registry

svn path=/trunk/; revision=24166

17 years agoDon't enable acpi service by default, it would be automatically installed if necessary
Hervé Poussineau [Sun, 17 Sep 2006 12:17:44 +0000 (12:17 +0000)]
Don't enable acpi service by default, it would be automatically installed if necessary

svn path=/trunk/; revision=24165

17 years agoimplement last part of NtGdiCreateEnhMetaFile
Magnus Olsen [Sun, 17 Sep 2006 10:56:13 +0000 (10:56 +0000)]
implement last part of NtGdiCreateEnhMetaFile
it can now create file.  (add ntdll.a to rbuild need RtlDosPathNameToNtPathName_U api)

svn path=/trunk/; revision=24164

17 years agoMerge from Wine:
Hervé Poussineau [Sun, 17 Sep 2006 10:34:51 +0000 (10:34 +0000)]
Merge from Wine:
James Hawkins <truiken@gmail.com>
- Add stubs for SetupOpenLog, SetupCloseLog, and SetupLogError
- Implement pSetupGetField, with tests.

svn path=/trunk/; revision=24162

17 years agoI don't know how to save REG_LINK info on disk, so ignore them. Incidently, fixes...
Hervé Poussineau [Sun, 17 Sep 2006 08:44:17 +0000 (08:44 +0000)]
I don't know how to save REG_LINK info on disk, so ignore them. Incidently, fixes "make install_registry"

svn path=/trunk/; revision=24156

17 years ago- Create a KD-compatible KiDebugRoutine and piggyback KDBG on it.
Alex Ionescu [Sun, 17 Sep 2006 07:06:35 +0000 (07:06 +0000)]
- Create a KD-compatible KiDebugRoutine and piggyback KDBG on it.
- Create separate GDB entry hack routine.
- Fix booting with /BREAK and continuing after an INT3/ASSERTion.

svn path=/trunk/; revision=24155

17 years ago- Large cleanup of psmgr.c. Move all externs and prototype, into headers, reformat...
Alex Ionescu [Sun, 17 Sep 2006 05:20:24 +0000 (05:20 +0000)]
- Large cleanup of psmgr.c. Move all externs and prototype, into headers, reformat and re-arrange the code.
- Optimize PspLookupUserEntrypoints to use static ANSI_STRINGs instead of building them at runtime.
- Fix mapping/loading of the System DLL so that it's loaded as executable code, not read-only code. Also fix a handle leak of the section, and re-factor some code into smaller shared functions to reduce code duplication.

svn path=/trunk/; revision=24154

17 years agoInstall VMware driver using UpdateDriverForPlugAndPlayDevicesW function.
Hervé Poussineau [Sun, 17 Sep 2006 00:28:19 +0000 (00:28 +0000)]
Install VMware driver using UpdateDriverForPlugAndPlayDevicesW function.
Installing a driver is not as easy as copying files and adding some registry entries, especially when autogenerated PnP ids change...

svn path=/trunk/; revision=24153

17 years agoMake IoInvalidateDeviceRelations really asynchronous
Hervé Poussineau [Sat, 16 Sep 2006 23:30:57 +0000 (23:30 +0000)]
Make IoInvalidateDeviceRelations really asynchronous
Implement IoSynchronousInvalidateDeviceRelations

svn path=/trunk/; revision=24152

17 years ago* update comments
Johannes Anderwald [Sat, 16 Sep 2006 21:41:57 +0000 (21:41 +0000)]
* update comments
* remove unused members in ConsoleInfo struct
* update global struct on UDN_DELTAPOS events
* update WindowSize ScreenBuffer member when bigger / smaller on scroll events

svn path=/trunk/; revision=24151

17 years agoFix compilation (3 variables were unused)
Hervé Poussineau [Sat, 16 Sep 2006 21:21:05 +0000 (21:21 +0000)]
Fix compilation (3 variables were unused)

svn path=/trunk/; revision=24150

17 years agoChange detection method to see if a driver is a legacy one
Hervé Poussineau [Sat, 16 Sep 2006 20:53:27 +0000 (20:53 +0000)]
Change detection method to see if a driver is a legacy one
Fix last issues with PCI driver

svn path=/trunk/; revision=24149

17 years ago- Fix one of the oldest hacks in ReactOS: KeGetCurrentThread() and PsGetcurrentProces...
Alex Ionescu [Sat, 16 Sep 2006 20:37:49 +0000 (20:37 +0000)]
- Fix one of the oldest hacks in ReactOS: KeGetCurrentThread() and PsGetcurrentProcess used to be NULL during early boot stage. We also didn't have an official idle therad/process. Also system intialization was not in its sepearte thread. Changes:
   - Implemented SeAssignPrimaryToken.
   - Setup Boot/System Token for Idle Process in SeInit2.
   - Remove ROS hack in SeCaptureSubjectContextEx.
   - Call SeAssignPrimaryToken in PspInitializeProcessSecurty when called for the Initial Process creation.
   - Implement PsInitiailizeQuotaSystem and set PspDefauptQuotaBlock for the idle process so that it can be used for the initial process.
   - Rewrite Process Manager Phase 0 initialization from scratch, to create a new initial system process and thread which will be used for Phase 1 (in ROS, phase 2) initialization of the executive.
   - Fix a bug in PspCreateProcess which was using an uninitialized value of SectionObject in some cases, instead of NULL.
   - Call PsInitailizeQuotaSystem from ObInit, and also create the system handle table inside the idle process, and make it the ObpKernelHandleTable.
   - Do Executive Phase 0 Initialization at APC_LEVEL.
   - Start idle thread at HIGH_PRIORITY then lower it to 0 once the Initial Thread is setup, so that it can run, then keep priority to 0 at DISPATCH_LEVEL and jump into idle loop code.
   - Add NtYieldExecution to idle loop code since it's now being used.
   - Fix IoGetCurrentProcess which was previously hacked.
   - Remove some checks for Thread == NULL in ke_x.h, since this is now impossible.
   - Split Phase 0/1 initialization in ex\init.c, since one runs in a separate thread now. Also don't lower IRQL to PASSIVE_LEVEL anymore (run at APC_LEVEL).

svn path=/trunk/; revision=24148

17 years ago- Revert part of 24108 which was scanning the process's thread ready list and making...
Alex Ionescu [Sat, 16 Sep 2006 20:27:53 +0000 (20:27 +0000)]
- Revert part of 24108 which was scanning the process's thread ready list and making the threads ready. This shouldn't currently happen on ReactOS but it seems that happens on Fireball's machine and crashes it, so I'm reverting it.

svn path=/trunk/; revision=24147

17 years agoDon't crash if PCI AddDevice is called with a NULL Pdo (happens if pci.sys is conside...
Hervé Poussineau [Sat, 16 Sep 2006 20:22:54 +0000 (20:22 +0000)]
Don't crash if PCI AddDevice is called with a NULL Pdo (happens if pci.sys is considered as a legacy driver)

svn path=/trunk/; revision=24146

17 years agoexplorer: minor code cleanup
Martin Fuchs [Sat, 16 Sep 2006 15:41:17 +0000 (15:41 +0000)]
explorer: minor code cleanup

svn path=/trunk/; revision=24145

17 years ago"Debug Release" mix configuration for notifyhook project file
Martin Fuchs [Sat, 16 Sep 2006 15:40:24 +0000 (15:40 +0000)]
"Debug Release" mix configuration for notifyhook project file

svn path=/trunk/; revision=24144

17 years agoexplorer: handle child window creation errors
Martin Fuchs [Sat, 16 Sep 2006 15:39:07 +0000 (15:39 +0000)]
explorer: handle child window creation errors

svn path=/trunk/; revision=24143

17 years agofixed a memory I accident created when to free a hdc
Magnus Olsen [Sat, 16 Sep 2006 06:40:37 +0000 (06:40 +0000)]
fixed a memory I accident created when to free a hdc

svn path=/trunk/; revision=24142

17 years ago- Implement most of the Ring 3/0 Invalid Opcode handler. Stops apps like mIRC from...
Alex Ionescu [Sat, 16 Sep 2006 06:03:04 +0000 (06:03 +0000)]
- Implement most of the Ring 3/0 Invalid Opcode handler. Stops apps like mIRC from BSODing the system anymore.

svn path=/trunk/; revision=24141

17 years agoI think this was on Ged mind.
James Tabor [Sat, 16 Sep 2006 05:29:25 +0000 (05:29 +0000)]
I think this was on Ged mind.

svn path=/trunk/; revision=24140

17 years agoNot sure where LicenseDialogProc is supposed to come from. For now, we'll
Art Yerkes [Sat, 16 Sep 2006 01:56:51 +0000 (01:56 +0000)]
Not sure where LicenseDialogProc is supposed to come from.  For now, we'll
disable it until it gets fixed.

svn path=/trunk/; revision=24139

17 years ago- Merge in my latest Dispatcher changes for KeWaitForMultipleObject, which are basica...
Alex Ionescu [Sat, 16 Sep 2006 00:07:02 +0000 (00:07 +0000)]
- Merge in my latest Dispatcher changes for KeWaitForMultipleObject, which are basically the same kind of changes as have been done for KeDelay/KeWaitForSingle. (Optimizations and readability improvements).
- Also fixed a previous bug where we didn't respect alertable waits anymore for KeWaitForMultiple...
- Remove krnlfun entry, the rest of dispatcher changes are tied to the new timer implementation for later.

svn path=/trunk/; revision=24138

17 years agoImplement NtGdiCreateEnhMetaFile it is base on wine cvs 15/9-2006 version of CreateEn...
Magnus Olsen [Fri, 15 Sep 2006 23:24:04 +0000 (23:24 +0000)]
Implement NtGdiCreateEnhMetaFile it is base on wine cvs 15/9-2006 version of CreateEnhMetaFileW in wine gdi32.dll
Our are not complete it can not create the file.
But we parseing now some NULL pointer test and some other test in winetest for gdi32.

svn path=/trunk/; revision=24137

17 years agoFix "normal" formatting, by removing differences between quick and normal formatting.
Hervé Poussineau [Fri, 15 Sep 2006 17:04:18 +0000 (17:04 +0000)]
Fix "normal" formatting, by removing differences between quick and normal formatting.
Normal formatting is quick formatting + fill sectors with 0 (not done yet)

svn path=/trunk/; revision=24136

17 years agoenable system info (again)
Ged Murphy [Fri, 15 Sep 2006 16:45:00 +0000 (16:45 +0000)]
enable system info (again)

svn path=/trunk/; revision=24135

17 years ago- add hardware profile and start and recovery dialogs
Ged Murphy [Fri, 15 Sep 2006 16:37:26 +0000 (16:37 +0000)]
- add hardware profile and start and recovery dialogs
- popup a message box for dialogs not yet implemented

svn path=/trunk/; revision=24134

17 years agoFix typos in comments
Aleksey Bragin [Fri, 15 Sep 2006 16:07:11 +0000 (16:07 +0000)]
Fix typos in comments

svn path=/trunk/; revision=24133

17 years agoAdd missing "NTAPI"
Aleksey Bragin [Fri, 15 Sep 2006 16:01:50 +0000 (16:01 +0000)]
Add missing "NTAPI"

svn path=/trunk/; revision=24132

17 years agoRevert a change in debug.h introduced in 19329 by Hartmut Birr. Freeldr's debug outpu...
Aleksey Bragin [Fri, 15 Sep 2006 10:45:53 +0000 (10:45 +0000)]
Revert a change in debug.h introduced in 19329 by Hartmut Birr. Freeldr's debug output doesn't expect any DbgPrint call to result in a "__FILE__:__LINE__ output_string" substitution.
Now FreeLdr's debug output looks good again.

svn path=/trunk/; revision=24131

17 years agoarcoding winetest CreateEnhMetaFileA all param can be NULL
Magnus Olsen [Fri, 15 Sep 2006 10:36:50 +0000 (10:36 +0000)]
arcoding winetest CreateEnhMetaFileA all param can be NULL
and we fail on this. But this is only one bugfix, We need bugfix win32k now. To completed the bugfix

svn path=/trunk/; revision=24130

17 years agoAssume bus number #0 if not specified in resource list
Hervé Poussineau [Fri, 15 Sep 2006 09:09:18 +0000 (09:09 +0000)]
Assume bus number #0 if not specified in resource list

svn path=/trunk/; revision=24129

17 years ago- Fix Freeldr to correctly send reported resources (at least PCI buses and PS/2 devices)
Hervé Poussineau [Fri, 15 Sep 2006 06:48:01 +0000 (06:48 +0000)]
- Fix Freeldr to correctly send reported resources (at least PCI buses and PS/2 devices)
- Let Root bus report BootResources
- If no resource requirement are found, use the boot resource list (not sure of this one)

svn path=/trunk/; revision=24128

17 years agoCheck for ACPI BIOS identifier, to prevent double enumeration of devices
Hervé Poussineau [Thu, 14 Sep 2006 22:29:07 +0000 (22:29 +0000)]
Check for ACPI BIOS identifier, to prevent double enumeration of devices
Move boot resource informations to Root\ key (if available)
Add a missing \0 at the end of hardwareId list

svn path=/trunk/; revision=24127

17 years agofix a few dialog asthetics
Ged Murphy [Thu, 14 Sep 2006 21:51:56 +0000 (21:51 +0000)]
fix a few dialog asthetics

svn path=/trunk/; revision=24126

17 years agoput system info back in
Ged Murphy [Thu, 14 Sep 2006 20:46:06 +0000 (20:46 +0000)]
put system info back in

svn path=/trunk/; revision=24125

17 years agoReport to registry hardware found by Freeloader.
Hervé Poussineau [Thu, 14 Sep 2006 20:30:35 +0000 (20:30 +0000)]
Report to registry hardware found by Freeloader.
See issue #645 for more details.

svn path=/trunk/; revision=24124

17 years agothx fireball fixing a spelling fault
Magnus Olsen [Thu, 14 Sep 2006 20:00:28 +0000 (20:00 +0000)]
thx fireball fixing a spelling fault

svn path=/trunk/; revision=24123

17 years agosneaky little blighter
Ged Murphy [Thu, 14 Sep 2006 19:12:48 +0000 (19:12 +0000)]
sneaky little blighter

svn path=/trunk/; revision=24122

17 years agostart to overhaul sysdm.cpl and make it more like XP's, which is much more user friendly
Ged Murphy [Thu, 14 Sep 2006 19:09:56 +0000 (19:09 +0000)]
start to overhaul sysdm.cpl and make it more like XP's, which is much more user friendly
- completely rewrite the resource file to make it readable and logical
- do the same with the resource.h file (I'll cry if anyone messes these 2 up, it's mega neat now ... ;p)
- add the ReactOS logo to the first page (general tab)
- move the licence to it's own dialog accessable from the general tab
- rearrange the computer name and hardware pages
- delete the user profile page and add it as a separate dialog accessable from the advanced page
- add an error reporting button (as per XP) which opens a web browser directly to bugzilla.
- loads of other little alterations.
*note, I've dissabled language files until I've finished messing with the resources*

svn path=/trunk/; revision=24121

17 years agoforget this file thx Quip at irc
Magnus Olsen [Thu, 14 Sep 2006 19:02:56 +0000 (19:02 +0000)]
forget this file thx Quip at irc

svn path=/trunk/; revision=24120

17 years ago1. move all languages to own folder
Magnus Olsen [Thu, 14 Sep 2006 17:33:25 +0000 (17:33 +0000)]
1. move all languages to own folder
2. accepted LMH1 languages patch (with small modification)

See issue #1696 for more details.

svn path=/trunk/; revision=24119

17 years agotranslations patch accepted from LMH1 (with small modification from me)
Magnus Olsen [Thu, 14 Sep 2006 17:26:08 +0000 (17:26 +0000)]
translations patch accepted  from LMH1  (with small modification from me)
See issue #1695 for more details.

svn path=/trunk/; revision=24118

17 years ago1. move all languages to own folder
Magnus Olsen [Thu, 14 Sep 2006 17:17:51 +0000 (17:17 +0000)]
1. move all languages to own folder
2. accepted LMH1 languages patch (with small modification)
3. fixed right sublang on few languages rc files
See issue #1685 for more details.

svn path=/trunk/; revision=24117

17 years agotranslations patch accepted from LMH1 (with small modification from me)
Magnus Olsen [Thu, 14 Sep 2006 16:53:53 +0000 (16:53 +0000)]
translations patch accepted  from LMH1  (with small modification from me)
See issue #1679 for more details.

svn path=/trunk/; revision=24116

17 years agostart to rewrite the virtmem code to remove many bugs and make it more readable.
Ged Murphy [Thu, 14 Sep 2006 16:49:11 +0000 (16:49 +0000)]
start to rewrite the virtmem code to remove many bugs and make it more readable.
I'm currently working on enhancements to sysdm, but it's probably better to commit this separately

svn path=/trunk/; revision=24115

17 years agoadding Japanese keyboard to reactos installer
Magnus Olsen [Thu, 14 Sep 2006 16:40:40 +0000 (16:40 +0000)]
adding Japanese keyboard to reactos installer

svn path=/trunk/; revision=24114

17 years agoadding Japanese keyboard drv patch from ja731j (real name : Simon Hanae mail : ja731j...
Magnus Olsen [Thu, 14 Sep 2006 16:39:35 +0000 (16:39 +0000)]
adding Japanese keyboard drv patch from ja731j (real name : Simon Hanae mail : ja731j at ja731j dot homeip dot net
See issue #1795 for more details.

svn path=/trunk/; revision=24113

17 years agoReapply fixed half of 24020 (relocation update in rtl). Tested on vmware and real...
Aleksey Bragin [Thu, 14 Sep 2006 16:37:05 +0000 (16:37 +0000)]
Reapply fixed half of 24020 (relocation update in rtl). Tested on vmware and real hardware.

svn path=/trunk/; revision=24112

17 years agoFix typo. palate -> pallete
Saveliy Tretiakov [Thu, 14 Sep 2006 16:04:08 +0000 (16:04 +0000)]
Fix typo. palate -> pallete

svn path=/trunk/; revision=24111

17 years ago- Converted some macros to inlined functions.
Alex Ionescu [Thu, 14 Sep 2006 15:48:02 +0000 (15:48 +0000)]
- Converted some macros to inlined functions.
- Modified KeDelayExecutionThread and KeWaitForSingleObject to be much simpler and readable, reducing some of the loops and continues, and 4th-level indentation. Also packed up common wait initialization at the beginning of the function, and into two new inline functions: KxDelayThreadWait and KxSingleThreadWait. No actual semantic changes, just re-ordering.
- Rename KiUnwakeQueue to KiActivateWaiterQueue.

svn path=/trunk/; revision=24110

17 years agoSylvain Petreolle: Fix a typo in the code (palGDI -> sysGDI)
Aleksey Bragin [Thu, 14 Sep 2006 15:40:16 +0000 (15:40 +0000)]
Sylvain Petreolle: Fix a typo in the code (palGDI -> sysGDI)

svn path=/trunk/; revision=24109

17 years ago- Implement KeReadyThread that wraps KiReadyThread so that \ps doesn't have to worry...
Alex Ionescu [Thu, 14 Sep 2006 12:13:32 +0000 (12:13 +0000)]
- Implement KeReadyThread that wraps KiReadyThread so that \ps doesn't have to worry about dispatcher lock.
- Make sure all a process's threads are ready if they're on the ready queue, during attachment.
- Merge in KiReadyThread from scheduler code, with a small code change to keep working with ROS's scheduler lists instead.

svn path=/trunk/; revision=24108

17 years agoremove entrypoint in rbuild files.
Magnus Olsen [Thu, 14 Sep 2006 09:10:13 +0000 (09:10 +0000)]
remove entrypoint in rbuild files.
1. This change are right but binutils setting
   PE header flags wrongs for cpl/dll wrong

2. Remove entrypoint for cpl until this bug have
   been fixed in binutils.

svn path=/trunk/; revision=24107

17 years agoShow the value, not the address in memory! (Thanks to Dmitry Philippov)
Aleksey Bragin [Thu, 14 Sep 2006 08:27:08 +0000 (08:27 +0000)]
Show the value, not the address in memory! (Thanks to Dmitry Philippov)

svn path=/trunk/; revision=24106

17 years agoMikhail Zvyozdochkin: If I enter directly DNS server address in TCP/IP properties...
Aleksey Bragin [Thu, 14 Sep 2006 08:20:50 +0000 (08:20 +0000)]
Mikhail Zvyozdochkin: If I enter directly DNS server address in TCP/IP properties window, and after it open this window again, DNS server address is not retrieved to text field.

Patch 1746

svn path=/trunk/; revision=24105

17 years agoFixing two NULL pointer crash in win32k.
Magnus Olsen [Thu, 14 Sep 2006 07:43:20 +0000 (07:43 +0000)]
Fixing two NULL pointer crash in win32k.
I do not known if I done right in NtGdiRealizePalette step2, step2 is not tested.

svn path=/trunk/; revision=24104

17 years ago- Implement KiAcquireDispatcherObject, KiReleaseDispatcherObject, used on SMP for...
Alex Ionescu [Thu, 14 Sep 2006 05:53:51 +0000 (05:53 +0000)]
- Implement KiAcquireDispatcherObject, KiReleaseDispatcherObject, used on SMP for dispatcher objects which use the volatile long member in the dispatcher header (such as gates).
- Implement KiTryThreadLock which tries to acquire the lock but exits if it can't, isntead of looping.
- Re-factor KeWaitForGate to make it SMP-safe by acquiring various locks when required.
- Fixed up KeSignalGateBoostPriority so it can also be SMP-safe, and also fix what exactly happens when the gate is signaled (directly make the other thread ready instead of doing a KiUnwaitThread on it).
- Split KxAcquireSpinLock/KxReleaseSpinLock into SMP vs UP like the other routines.

svn path=/trunk/; revision=24103

17 years ago- Implement KiUnlinkThread to unlink a thread from its wait blocks, handle queue...
Alex Ionescu [Thu, 14 Sep 2006 03:49:20 +0000 (03:49 +0000)]
- Implement KiUnlinkThread to unlink a thread from its wait blocks, handle queue and timer activation/removal.
- Don't play with priorities in KiAbortWaitThread anymore, since we'll soon support Win2003 delayed "adjust increment" functionality, so that the code is not repeated many times.
- Rename KiAbortWaitThread to KiUnwaitThread, make it use KiUnlinkThread and delayed adjustment.
- Implement KxUnwaitThread and KxUnwaitThreadForEvent, optimized versions of KiWaitTest that can be used in special circumstances (notification events, thread termination, process signalling).
- Optimize KeSetEvent by handling signaled notification events without acquiring the dispatcher lock, and by using new inlined routines described above.
- Reimplement KeSetEventBoostPriority properly to actually do boosting.
- Fixup KeRundownQueue with a more typical/proper LIST_ENTRY loop.
- Let me know if you see regressions...

svn path=/trunk/; revision=24102

17 years ago- Update Kernel Fun.
Alex Ionescu [Wed, 13 Sep 2006 21:46:32 +0000 (21:46 +0000)]
- Update Kernel Fun.

svn path=/trunk/; revision=24101

17 years agoGreek keyboard layout changes by Apal
Magnus Olsen [Wed, 13 Sep 2006 19:08:41 +0000 (19:08 +0000)]
Greek keyboard layout changes by Apal
See issue #1631 for more details.

svn path=/trunk/; revision=24100

17 years agoSeparate NtGdiModifyWorldTransform and IntGdiModifyWorldTransform for internal usage.
Saveliy Tretiakov [Wed, 13 Sep 2006 16:50:19 +0000 (16:50 +0000)]
Separate NtGdiModifyWorldTransform and IntGdiModifyWorldTransform for internal usage.

svn path=/trunk/; revision=24099

17 years ago<intrin.h> compatibility header. Implements Visual C++ intrinsics in GCC. Licensed...
KJK::Hyperion [Wed, 13 Sep 2006 14:07:41 +0000 (14:07 +0000)]
<intrin.h> compatibility header. Implements Visual C++ intrinsics in GCC. Licensed very liberally, please keep it that way

svn path=/trunk/; revision=24098

17 years agoMove IntGdiGradientFill and IntSystemParametersInfo prototypes to header files.
Saveliy Tretiakov [Wed, 13 Sep 2006 13:43:39 +0000 (13:43 +0000)]
Move IntGdiGradientFill and IntSystemParametersInfo prototypes to header files.
Delete DestroyThreadWindows prototype (function does not exist).

svn path=/trunk/; revision=24097

17 years agoMove UserDrawIconEx and UserGetCurIconObject prototyepes to header file.
Saveliy Tretiakov [Wed, 13 Sep 2006 13:03:17 +0000 (13:03 +0000)]
Move UserDrawIconEx and UserGetCurIconObject prototyepes to header file.

svn path=/trunk/; revision=24096

17 years agoAdd UnattendSetupEnabled key for enabling\disabling unattended setup without editing...
Saveliy Tretiakov [Wed, 13 Sep 2006 12:33:59 +0000 (12:33 +0000)]
Add UnattendSetupEnabled key for enabling\disabling unattended setup without editing rbuild files.
Modifing rbuild files all the time is not handy and slows down build process.

svn path=/trunk/; revision=24095

17 years ago- Rename kqueue.c to devque. KQUEUE (kernel queues) are implemented in queue.c, and...
Alex Ionescu [Wed, 13 Sep 2006 03:02:40 +0000 (03:02 +0000)]
- Rename kqueue.c to devque. KQUEUE (kernel queues) are implemented in queue.c, and this filename always confused me. Why would you name KDEVICE_QUEUE into kqueue.c, when you already have KQUEUE in queue.c?!
- Rename exception.c to except.c, mostly due to MSVC's incompatibility with multiple identically named files.
- SVN delete usercall.c leftover.
- Fix KeSetPriorityAndQuantumProcess to use Queued Spinlocks and KiAcquireProcess/ThreadLock when needed.

svn path=/trunk/; revision=24094

17 years ago- Cleanup ipi.c, reformat, and re-organize.
Alex Ionescu [Wed, 13 Sep 2006 02:25:32 +0000 (02:25 +0000)]
- Cleanup ipi.c, reformat, and re-organize.
- Undefine all functions for UP builds, except KeIpiGenericCall.
- Implement KeIpiGenericCall for UP builds and add @implemented tag.

svn path=/trunk/; revision=24093

17 years ago- Renamed device.c to config.c and removed all irrelevant code from it, leaving only...
Alex Ionescu [Wed, 13 Sep 2006 02:08:22 +0000 (02:08 +0000)]
- Renamed device.c to config.c and removed all irrelevant code from it, leaving only the two KeFindConfigurationEntry*** functions in it.
- Also fixed the above for incorrect formatting/excessive whitespace.
- The other routines in device.c were moved to cpu.c, since they deal with CPU-specific things.
- Cleaned up KeFlushEntireTb.
- Added inlined routines for setting/getting CR, and also getting GDTR, IDTR, LDTR, TR. Used to implement KiSaveProcessorControlState.
- Implemented KeSaveStateForHibernate.

svn path=/trunk/; revision=24092

17 years ago- Fix a typo that happened after-the-fact.
Alex Ionescu [Wed, 13 Sep 2006 02:04:33 +0000 (02:04 +0000)]
- Fix a typo that happened after-the-fact.

svn path=/trunk/; revision=24091

17 years ago- Implement KxAcquireSpinLock/KxReleaseSpinLock for inline acquisition of spinlocks...
Alex Ionescu [Wed, 13 Sep 2006 01:41:17 +0000 (01:41 +0000)]
- Implement KxAcquireSpinLock/KxReleaseSpinLock for inline acquisition of spinlocks, SMP, UP and DBG. (on DBG builds, we OR the spinlock value with the KTHREAD address, then compare on release.)
- Make In-Stack QSLs a complete no-op in UP, we were still touching some fields.
- Cleanup and re-organize spinlock.c

svn path=/trunk/; revision=24090

17 years ago- Remove usercall.c from portable part of Ke and add it to ke\i386. The implementatio...
Alex Ionescu [Wed, 13 Sep 2006 01:00:50 +0000 (01:00 +0000)]
- Remove usercall.c from portable part of Ke and add it to ke\i386. The implementation is slightly arch-specific.
- Remove code in userapc.c and move it into usercall.c, since both functions basically deal with user-mode callouts.
- Handle STATUS_CALLBACK_POP_STACK and add the status to ntstatus.h
- Also handle future support for GDI Batch flushing.

svn path=/trunk/; revision=24089

17 years ago- Use inlined guarded region routines instead of duplicating code.
Alex Ionescu [Wed, 13 Sep 2006 00:35:56 +0000 (00:35 +0000)]
- Use inlined guarded region routines instead of duplicating code.
- Add @implemented tags.

svn path=/trunk/; revision=24088

17 years ago- Implement KiAcquireDeviceQueueLock/KiReleaseDeviceQueueLock for locking KDEVICE_QUE...
Alex Ionescu [Wed, 13 Sep 2006 00:20:46 +0000 (00:20 +0000)]
- Implement KiAcquireDeviceQueueLock/KiReleaseDeviceQueueLock for locking KDEVICE_QUEUEs, since they can be used from Threaded DPCs which don't execute at DISPATCH_LEVEL, so the lock needs to be acquired differently.
- Add ASSERT_DEVICE_QUEUE and ASSERTify + reformat kqueue.c.
- Implement KeRemoveByKeyDeviceQueueIfBusy.
- Cleanup exception.c
- Remove dangerous/broken KeGetCurrentIrql() define.

svn path=/trunk/; revision=24087

17 years agoJust one entrypoint="0" is enough
Aleksey Bragin [Tue, 12 Sep 2006 21:33:56 +0000 (21:33 +0000)]
Just one entrypoint="0" is enough

svn path=/trunk/; revision=24086

17 years agoDon't call notification procedures with APC disabled, it may lead to some strange...
Hervé Poussineau [Tue, 12 Sep 2006 21:18:22 +0000 (21:18 +0000)]
Don't call notification procedures with APC disabled, it may lead to some strange results.
Thanks Alex for the time he took to help me to debug this issue

svn path=/trunk/; revision=24085

17 years agoRevert changes from r23620 until a better solution can be found as it breaks opening...
Ged Murphy [Tue, 12 Sep 2006 21:02:39 +0000 (21:02 +0000)]
Revert changes from r23620 until a better solution can be found as it breaks opening of cpl applets with VS.
The 'DebugSettings' should be stored in the .user file.

svn path=/trunk/; revision=24084

17 years agoFix last things preventing me from compiling the tree:
Aleksey Bragin [Tue, 12 Sep 2006 18:51:05 +0000 (18:51 +0000)]
Fix last things preventing me from compiling the tree:
vsnprintt -> _vsnprintf in the wine/unicode.h and in riched20

svn path=/trunk/; revision=24083