14 years agoMove itss.idl to the place it belongs
Hervé Poussineau [Sun, 13 May 2007 14:38:27 +0000 (14:38 +0000)]
Move itss.idl to the place it belongs

svn path=/trunk/; revision=26754

14 years agoadding more check
Magnus Olsen [Sun, 13 May 2007 13:14:54 +0000 (13:14 +0000)]
adding more check

svn path=/trunk/; revision=26753

14 years agofixing two return code thx Ventron for the info for one of the return code
Magnus Olsen [Sun, 13 May 2007 12:43:51 +0000 (12:43 +0000)]
fixing two return code thx Ventron for the info for one of the return code

svn path=/trunk/; revision=26752

14 years agoadding smore check for createsurface, (still does not create a surface)
Magnus Olsen [Sun, 13 May 2007 12:11:41 +0000 (12:11 +0000)]
adding smore check for createsurface, (still does not create a surface)

svn path=/trunk/; revision=26751

14 years agoAdd debugging macro to get error code and test for display modes (commented out becau...
Maarten Bosma [Sun, 13 May 2007 12:09:44 +0000 (12:09 +0000)]
Add debugging macro to get error code and test for display modes (commented out because it checks every single display mode and thus takes fairly long).

svn path=/trunk/; revision=26750

14 years agoSetCooperativeLevel Test
Maarten Bosma [Sun, 13 May 2007 09:58:47 +0000 (09:58 +0000)]
SetCooperativeLevel Test

svn path=/trunk/; revision=26749

14 years agofixing more linux build issue
Magnus Olsen [Sun, 13 May 2007 08:47:35 +0000 (08:47 +0000)]
fixing more linux build issue

svn path=/trunk/; revision=26748

14 years agoUpdate Polish translation. Patch by Caemyr. Bug report #2249.
Dmitry Gorbachev [Sun, 13 May 2007 08:46:14 +0000 (08:46 +0000)]
Update Polish translation. Patch by Caemyr. Bug report #2249.

svn path=/trunk/; revision=26747

14 years agofixing a path issue so it is compatible with linux
Magnus Olsen [Sun, 13 May 2007 08:38:22 +0000 (08:38 +0000)]
fixing a path issue so it is compatible with linux

svn path=/trunk/; revision=26746

14 years agohandle FW_DONTCARE in GetFontScore. Fixes gray/thin display of dialogbox elements...
Timo Kreuzer [Sun, 13 May 2007 02:31:00 +0000 (02:31 +0000)]
handle FW_DONTCARE in GetFontScore. Fixes gray/thin display of dialogbox elements' text.

svn path=/trunk/; revision=26743

14 years agoOn win XP the gdi handle index can be > 0x3fff, so change GDI_HANDLE_INDEX_MASK to...
Timo Kreuzer [Sun, 13 May 2007 00:57:09 +0000 (00:57 +0000)]
On win XP the gdi handle index can be > 0x3fff, so change GDI_HANDLE_INDEX_MASK to 0x0000ffff to not fail on win XP on higher handle index.

svn path=/trunk/; revision=26742

14 years agoCheck result of ANSI -> Unicode conversion, which can fail in the case of
Dmitry Gorbachev [Sat, 12 May 2007 22:54:58 +0000 (22:54 +0000)]
Check result of ANSI -> Unicode conversion, which can fail in the case of
memory shortage.

svn path=/trunk/; revision=26741

14 years agoAdd it to build.
Maarten Bosma [Sat, 12 May 2007 19:43:23 +0000 (19:43 +0000)]
Add it to build.

svn path=/trunk/; revision=26740

14 years agoStart of ddraw test case.
Maarten Bosma [Sat, 12 May 2007 19:43:01 +0000 (19:43 +0000)]
Start of ddraw test case.

svn path=/trunk/; revision=26739

14 years agocommit some bugfix for ddraw createsurface, fixing comping as well
Magnus Olsen [Sat, 12 May 2007 19:20:54 +0000 (19:20 +0000)]
commit some bugfix for ddraw createsurface, fixing comping as well

svn path=/trunk/; revision=26738

14 years agofixing smaller bugs
Magnus Olsen [Sat, 12 May 2007 18:33:28 +0000 (18:33 +0000)]
fixing smaller bugs

svn path=/trunk/; revision=26737

14 years agoCreate Internal_CreateSurface stub.
Maarten Bosma [Sat, 12 May 2007 17:50:09 +0000 (17:50 +0000)]
Create Internal_CreateSurface stub.

svn path=/trunk/; revision=26736

14 years agoimplement internal api CopyDDSurfDescToDDSurfDesc2
Magnus Olsen [Sat, 12 May 2007 17:48:27 +0000 (17:48 +0000)]
implement internal api CopyDDSurfDescToDDSurfDesc2

svn path=/trunk/; revision=26735

14 years ago- outsourced DirectDraw_SetCooperativeLevel
Maarten Bosma [Sat, 12 May 2007 17:30:37 +0000 (17:30 +0000)]
- outsourced DirectDraw_SetCooperativeLevel
- adjusted .c file headers

svn path=/trunk/; revision=26734

14 years agostart implement Main_DirectDraw_CreateSurface
Magnus Olsen [Sat, 12 May 2007 17:23:48 +0000 (17:23 +0000)]
start implement Main_DirectDraw_CreateSurface
we need now finish  internal_CreateSurface and  CopyDDSurfDescToDDSurfDesc2

svn path=/trunk/; revision=26733

14 years agoReformating
Maarten Bosma [Sat, 12 May 2007 16:37:17 +0000 (16:37 +0000)]

svn path=/trunk/; revision=26732

14 years agoSorry, just noticed that I forgot to commit this one.
Maarten Bosma [Sat, 12 May 2007 16:29:58 +0000 (16:29 +0000)]
Sorry, just noticed that I forgot to commit this one.

svn path=/trunk/; revision=26731

14 years agoFormating
Maarten Bosma [Sat, 12 May 2007 16:28:54 +0000 (16:28 +0000)]

svn path=/trunk/; revision=26730

14 years agosplitted rosdraw.h; outsourced big comment into text file.
Maarten Bosma [Sat, 12 May 2007 16:21:50 +0000 (16:21 +0000)]
splitted rosdraw.h; outsourced big comment into text file.

svn path=/trunk/; revision=26729

14 years agoforget this change, did think it still was in svn.
Magnus Olsen [Sat, 12 May 2007 15:52:09 +0000 (15:52 +0000)]
forget this change, did think it still was in svn.

svn path=/trunk/; revision=26728

14 years agostart reimplement createsurface
Magnus Olsen [Sat, 12 May 2007 15:50:26 +0000 (15:50 +0000)]
start reimplement createsurface

svn path=/trunk/; revision=26727

14 years agoFix warning.
Maarten Bosma [Sat, 12 May 2007 15:45:54 +0000 (15:45 +0000)]
Fix warning.

svn path=/trunk/; revision=26726

14 years agoForgot to include surface_main.c in ddraw.rbuild.
Maarten Bosma [Sat, 12 May 2007 15:24:54 +0000 (15:24 +0000)]
Forgot to include surface_main.c in ddraw.rbuild.

svn path=/trunk/; revision=26725

14 years agoDirectDraw rearrangement. (part 2/2)
Maarten Bosma [Sat, 12 May 2007 14:58:26 +0000 (14:58 +0000)]
DirectDraw rearrangement. (part 2/2)

svn path=/trunk/; revision=26724

14 years agoDirectDraw rearrangement. (part 1/2)
Maarten Bosma [Sat, 12 May 2007 14:20:12 +0000 (14:20 +0000)]
DirectDraw rearrangement. (part 1/2)

svn path=/trunk/; revision=26723

14 years agosorry did use some private headers that are not commited yet, here is win32kdxtest...
Magnus Olsen [Sat, 12 May 2007 13:58:27 +0000 (13:58 +0000)]
sorry did use some private headers that are not commited yet, here is win32kdxtest comping fix.

svn path=/trunk/; revision=26722

14 years agoDeactivate a check.
Maarten Bosma [Sat, 12 May 2007 13:17:01 +0000 (13:17 +0000)]
Deactivate a check.

svn path=/trunk/; revision=26721

14 years ago- Attach clock specific data to the window instead of storing them in global variables.
Eric Kohl [Sat, 12 May 2007 12:37:23 +0000 (12:37 +0000)]
- Attach clock specific data to the window instead of storing them in global variables.
- Stop the clock and show the system time when the user changes the system time.

See issue #2241 for more details.

svn path=/trunk/; revision=26720

14 years ago- Add winhelp based on Wine.
Ged Murphy [Sat, 12 May 2007 10:14:45 +0000 (10:14 +0000)]
- Add winhelp based on Wine.
- Not fully complete and has some bugs.
- go to help -> help on help for a preview

svn path=/trunk/; revision=26719

14 years agoupdate dxhaltest with some new test, Thuse test are not 100% correct in all case...
Magnus Olsen [Sat, 12 May 2007 10:14:22 +0000 (10:14 +0000)]
update dxhaltest with some new test, Thuse test are not 100% correct in all case. some error should be supress when it been run in vmware with windows or reactos

svn path=/trunk/; revision=26718

14 years agoUndo last change, since it's an index in an array of TCHARs, so "1" is correct.
Aleksey Bragin [Sat, 12 May 2007 08:44:49 +0000 (08:44 +0000)]
Undo last change, since it's an index in an array of TCHARs, so "1" is correct.

svn path=/trunk/; revision=26717

14 years ago- Rename CmiInitNonVolatileRegistryHive to CmiInitHiveFromFile.
Alex Ionescu [Sat, 12 May 2007 08:27:28 +0000 (08:27 +0000)]
- Rename CmiInitNonVolatileRegistryHive to CmiInitHiveFromFile.
- Remove CmiCreateNewRegFile and the way new hives were created, saved, then re-reloded. Instead initialize a new hive only once.
- Add support for calling either HINIT_FILE or HINIT_CREATE with a hive, and support log file hives now.
- Make hacks/oldcm differences smoother, and copy routine to cmsysini.c, since it's now compatible with the rewrite. This is probably the last function that was easily convertible/modifiable.

svn path=/trunk/; revision=26716

14 years agodid see a small mistake use sizeof(TCHAR) for adding NULL termeting of string for...
Magnus Olsen [Sat, 12 May 2007 08:27:00 +0000 (08:27 +0000)]
did see a small mistake use sizeof(TCHAR) for adding NULL termeting of string for u do not known if we switch compile regedit as unicode-16 or ANSI.

svn path=/trunk/; revision=26715

14 years ago- Change CmiInitNonVolatileRegistry hive to use CmpOpenHiveFiles and CmpInitializeHiv...
Alex Ionescu [Sat, 12 May 2007 06:47:39 +0000 (06:47 +0000)]
- Change CmiInitNonVolatileRegistry hive to use CmpOpenHiveFiles and CmpInitializeHive. Required a lot of hacking to get to work right, but at least it does, and uses our new code paths.
- Update CmpInitializeHive with the HINIT_FILE hack required for current cmlib functionality.

svn path=/trunk/; revision=26714

14 years agoMoving FLOATOBJ code in preparations of implementation of basic float storage emulati...
James Tabor [Sat, 12 May 2007 04:48:40 +0000 (04:48 +0000)]
Moving FLOATOBJ code in preparations of implementation of basic float storage emulation and float code processing.

svn path=/trunk/; revision=26713

14 years ago- Get rid of CmiCopyKey since it was dead code. Make CmiScanKeyForValue and CmiScanFo...
Alex Ionescu [Sat, 12 May 2007 03:28:04 +0000 (03:28 +0000)]
- Get rid of CmiCopyKey since it was dead code. Make CmiScanKeyForValue and CmiScanForSubKey simple wrappers around the newer CmpFindSubKeyByName and CmpFindValueByName routines.
- Allow cmlib to support HINIT_FILE flag for HvInitializeHive. This means the kernel doesn't need to create a section for the hive, then call HvInitializeHive with HINIT_MEMORY anymore, and can simply send the file handle. I wrote a sneaky little hack in cmlib which actually ends up doing the same idea, albeit not by using a section, making it portable.
- Fix a serious bug in CmpFindSubKeyInLeaf affected by our lack of alphabetically-sorted cells; the linear search I hacked was slightly broken.
- Remove the need to hold a LogFileName in the hive structure, since we generate it dynamically now.

svn path=/trunk/; revision=26712

14 years ago- Move CmInitSystem1 to cmsysini.c and merge in existing code from Cm rewrite branch.
Alex Ionescu [Fri, 11 May 2007 23:35:19 +0000 (23:35 +0000)]
- Move CmInitSystem1 to cmsysini.c and merge in existing code from Cm rewrite branch.
- Merge code into cmkcbncb.c related to KCB/Cache initialization (This is "Dead" code for now, since it's not used, just initailized.)
- Rename CmiRegistryLock to CmpRegistryLock.
- The new /config registry code is now totally isolated from the old /cm code, although some of the old structures are still used until the actual rewrite is fully merged/finished.

svn path=/trunk/; revision=26710

14 years agoDo not write beyond the buffer.
Dmitry Gorbachev [Fri, 11 May 2007 23:17:44 +0000 (23:17 +0000)]
Do not write beyond the buffer.

svn path=/trunk/; revision=26709

14 years agoDo not write beyond the buffer.
Dmitry Gorbachev [Fri, 11 May 2007 23:15:53 +0000 (23:15 +0000)]
Do not write beyond the buffer.

svn path=/trunk/; revision=26708

14 years agoDo not fail with less then two arguments.
Dmitry Gorbachev [Fri, 11 May 2007 23:12:49 +0000 (23:12 +0000)]
Do not fail with less then two arguments.

svn path=/trunk/; revision=26707

14 years agomake caption font bold again
Timo Kreuzer [Fri, 11 May 2007 22:57:21 +0000 (22:57 +0000)]
make caption font bold again

svn path=/trunk/; revision=26706

14 years ago- Copy CmOpenHiveFiles to cminit.c and rename to CmpOpenHiveFiles. Extend the functio...
Alex Ionescu [Fri, 11 May 2007 22:51:11 +0000 (22:51 +0000)]
- Copy CmOpenHiveFiles to cminit.c and rename to CmpOpenHiveFiles. Extend the functionality of the routine:
  - Allow caller to have full power over handles and filenames being used instead of hard-coding a pointer to the registry hive.
  - Setup proper I/O flags to disable compression and open for random access, backup-intent and allow disabling buffering.
  - Allow proper access mask/share mode when booting off read-only media.
  - Call the FS driver with FSCTL_MARK_AS_SYSTEM_HIVE if instructed.
  - Call with FSCTL_SET_COMPRESSION to make sure compression is off.
  - Allow creating the hive if it doesn't exist already.
  - Consider 0-byte opened hives as new hives.
  - Allow caller to request volume sector size and validate with hive cluster size.
  - Make .log hives hidden.
- Implemement CmpCreateEvent to allowed for overlapped I/O registry operations.
- Move more globals to cmdata.c.

svn path=/trunk/; revision=26705

14 years ago- Move Cmlib wrapper functions to cmwraprs.c and add the file -- no code change.
Alex Ionescu [Fri, 11 May 2007 21:35:56 +0000 (21:35 +0000)]
- Move Cmlib wrapper functions to cmwraprs.c and add the file -- no code change.
- Move CmCheckRegistry stub to cmcheck.c and add the file.
- Move CmpInitializeHive to cminit.c and add the file. Modify it to add Cm-rewrite compatible code (but #ifed out).
- Change the HiveList lock to a pushlock instead of an ERESOURCE. Rename CmiHiveListHead to CmpHiveListHead.
- Get rid of Cm security functions and stub the CmpSecurityMethod in cmse.c to always return success. Key security was never really working anyway, this just removes more code.

svn path=/trunk/; revision=26704

14 years ago- Move CmpCreateRootNode and CmpCreateRegistryRoot to cmsysini.c as well, and add...
Alex Ionescu [Fri, 11 May 2007 19:34:11 +0000 (19:34 +0000)]
- Move CmpCreateRootNode and CmpCreateRegistryRoot to cmsysini.c as well, and add some fixes to CmpCreateRegistryRoot to make it compatible with the Cm Rewrite when it's done.
- Initialize some stuff that wasn't being initialized in CmpCreateRootNode.
- Use CmpHiveRootSecurityDescriptor in CmpCreateRegistryRoot to protect the key.
- Save the root handle globally so we can close it during shutdown.
- Add cmkcbncb.c with an empty stub for CmpCreateKeyControlBlock. Will copy from Cm rewrite branch later.
- Properly name fields of CM_KEY_NODE in the headers of the /config tree.

svn path=/trunk/; revision=26703

14 years ago- Move CmpInitializeSystemHive and CmpCreateObjectTypes to cmsysini.c since they...
Alex Ionescu [Fri, 11 May 2007 18:58:34 +0000 (18:58 +0000)]
- Move CmpInitializeSystemHive and CmpCreateObjectTypes to cmsysini.c since they're almost identical to the Cm rewrite and compatible, so they're considered "new" code (although they still use EREGISTRY_HIVE).
- Add code missing in CmpInitializeSystemHive from Cm Rewrite (mainly detecting boot type and self-healing settings).
- Free a memory leak.
- Enable security for key objects.
- Rename CmiKeyType to CmpKeyObjectType.

svn path=/trunk/; revision=26702

14 years ago- Add missing ACE structures to ntifs.h.
Alex Ionescu [Fri, 11 May 2007 18:15:13 +0000 (18:15 +0000)]
- Add missing ACE structures to ntifs.h.
- Add missing SeLengthSid to ntifs.h.
- Implement CmpHiveRootSecurityDescriptor and use it in CmpInitializeSystemHive and CmInitSystem1 to properly secure system-created hives.
- Implement CmpInitializeHardwareConfiguration and call it. Its job is to populate the hardware hive, but FreeLDR already does this, so it doesn't do much at the moment.

svn path=/trunk/; revision=26701

14 years ago- Terminate the string. NtUserMenuItemInfo() sometimes returns no string.
Dmitry Gorbachev [Fri, 11 May 2007 14:12:57 +0000 (14:12 +0000)]
- Terminate the string. NtUserMenuItemInfo() sometimes returns no string.
- Check if NtUserBuildMenuItemList() returns negative result.

svn path=/trunk/; revision=26700

14 years agoCheck result of DRIVER_FindFromHDrvr().
Dmitry Gorbachev [Fri, 11 May 2007 14:12:40 +0000 (14:12 +0000)]
Check result of DRIVER_FindFromHDrvr().

svn path=/trunk/; revision=26699

14 years agoFix (partially) bug #2243.
Dmitry Gorbachev [Fri, 11 May 2007 14:12:21 +0000 (14:12 +0000)]
Fix (partially) bug #2243.

svn path=/trunk/; revision=26698

14 years agoFix for linux build (#include "..\ -> #include "../).
Aleksey Bragin [Fri, 11 May 2007 13:07:54 +0000 (13:07 +0000)]
Fix for linux build (#include "..\ -> #include "../).

svn path=/trunk/; revision=26696

14 years ago- More simplification: Get rid of CmImportBinaryHive, CmpImportSystemHive, CmpImportH...
Alex Ionescu [Fri, 11 May 2007 06:24:00 +0000 (06:24 +0000)]
- More simplification: Get rid of CmImportBinaryHive, CmpImportSystemHive, CmpImportHardwareHive and all of import.c!
- Fix CmpInitializeHive to set any flags that are passed, not assume HIVE_NO_FILE by default.
- "Import" the system and hardware hives using CmpInitializeHive instead of the cmimport.c routines which are gone.
- Get rid of old/unused cmdata.c in /cm.

svn path=/trunk/; revision=26693

14 years ago- Remove unusued, complex hive checking code from regfile.c.
Alex Ionescu [Fri, 11 May 2007 04:59:38 +0000 (04:59 +0000)]
- Remove unusued, complex hive checking code from regfile.c.
- Implement CmpInitializeHive based on Cm Rewrite but keep code compatible with the current EREGISTRY_HIVE structure in the current Cm.
- Remove CmiCreateVolatileHive and CmiCreateTemp since they're unused.
- Implement CmpCreateRootNode based on CmRewrite and CmCreateRootNode in cmlib, CmpCopyName and CmpNameSize from Cm Rewrite and use them.
- Use CmpInitializeHive + CmpCreateRootNode for the master volatile hive.

svn path=/trunk/; revision=26692

14 years ago- CmpInitializeMachineDependentConfiguration: Finish up by using the same code as...
Alex Ionescu [Thu, 10 May 2007 21:40:39 +0000 (21:40 +0000)]
- CmpInitializeMachineDependentConfiguration: Finish up by using the same code as for System BIOS Version detection for the Video BIOS Detection. This routine should be pretty much finished now since all required hardware keys are created.

svn path=/trunk/; revision=26686

14 years ago- Add code to detect and save the BIOS Version string to the registry. We use the...
Alex Ionescu [Thu, 10 May 2007 21:36:24 +0000 (21:36 +0000)]
- Add code to detect and save the BIOS Version string to the registry. We use the same detection patterns as Windows for now (Ver, Rev, Rel, v0-9).
- All BIOS Version strings are scanned and saved in a REG_MULTI_SZ key, as on Windows. QEMU BIOS Version String is correctly detected as the CVS/SVN $ID tag, which is good enough.

svn path=/trunk/; revision=26685

14 years ago- Remove CPU Detection code from FreeLDR (hwcpu.c) since our kernel properly does...
Alex Ionescu [Thu, 10 May 2007 20:51:50 +0000 (20:51 +0000)]
- Remove CPU Detection code from FreeLDR (hwcpu.c) since our kernel properly does the same job now (and better).
- Remove ReactOS hacks from recent code due to FreeLDR, since it doesn't conflict with us anymore.

svn path=/trunk/; revision=26684

14 years ago- CmpInitializeMachineDependentConfiguration: Use the same strategy as for the BIOS...
Alex Ionescu [Thu, 10 May 2007 20:43:40 +0000 (20:43 +0000)]
- CmpInitializeMachineDependentConfiguration: Use the same strategy as for the BIOS to get the Video ROM BIOS Date as well and save it into VideoBiosDate.

svn path=/trunk/; revision=26683

14 years ago- Create \Device\PhysicalMemory in Phase 1 instead of Phase 2, since CmInit needs it.
Alex Ionescu [Thu, 10 May 2007 20:36:15 +0000 (20:36 +0000)]
- Create \Device\PhysicalMemory in Phase 1 instead of Phase 2, since CmInit needs it.
- CmpInitializeMachineDependentConfiguration: Map the IVT to detect the Video ROM Area and save it (corretly detected on QEMU at 0xC000). Then map the BIOS at 0xF0000 and scan it for the newest BIOS Date.
- Save detected BIOS date in the System Node's SystemBiosVersion, and save BIOS-default date (11 bytes before the ROM end) in Control\BIOSINFO.

svn path=/trunk/; revision=26682

14 years ago- CmpInitializeMachineDependentConfiguration: Add Processor Name and Vendor ID as...
Alex Ionescu [Thu, 10 May 2007 19:06:52 +0000 (19:06 +0000)]
- CmpInitializeMachineDependentConfiguration: Add Processor Name and Vendor ID as well (the former doesnt' work on QEMU because QEMU desn't support CPUID-EX, but on VMWare, I get: Dual Core AMD Opteron(tm) Processor 185.

svn path=/trunk/; revision=26681

14 years ago- CmpInitializeMachineDependentConfiguration: Write FeatureSet, MHZ and Update Signat...
Alex Ionescu [Thu, 10 May 2007 18:11:11 +0000 (18:11 +0000)]
- CmpInitializeMachineDependentConfiguration: Write FeatureSet, MHZ and Update Signature to registry CentralProcessor node.

svn path=/trunk/; revision=26680

14 years ago- Make CmpInitializeMachineDependentConfiguration create the FloatingPointProcessor...
Alex Ionescu [Thu, 10 May 2007 18:04:41 +0000 (18:04 +0000)]
- Make CmpInitializeMachineDependentConfiguration create the FloatingPointProcessor hardware key/ARC node.

svn path=/trunk/; revision=26678

14 years ago- Add more code to CmpInitializeMachineDependentConfiguration to create the BIOSINFO...
Alex Ionescu [Thu, 10 May 2007 17:52:09 +0000 (17:52 +0000)]
- Add more code to CmpInitializeMachineDependentConfiguration to create the BIOSINFO key and to start working on the CentralProcessor key (which, in ReactOS, FreeLDR creates when it shouldn't). Creates the basic CentralProcessor nodes for now.
- Add cmconfig.c and implement a helper routine that converts from ARC CONFIGURATION_COMPONENT_DATA to a Hardware Description entry and resource descriptor.
- Fix outdated _CONFIGURATION_TYPE definition in our DDK.

svn path=/trunk/; revision=26677

14 years ago- Add i386/cmhardwr.c and start implementing CmpInitializeMachineDependentConfigurati...
Alex Ionescu [Thu, 10 May 2007 16:42:24 +0000 (16:42 +0000)]
- Add i386/cmhardwr.c and start implementing CmpInitializeMachineDependentConfiguration. Currently it only detects and writes the key for PAE.
- Call the API from CmInitSystem1.

svn path=/trunk/; revision=26675

14 years agoFix a bug in ScServiceMainStub(), add more checks.
Dmitry Gorbachev [Thu, 10 May 2007 10:13:01 +0000 (10:13 +0000)]
Fix a bug in ScServiceMainStub(), add more checks.

svn path=/trunk/; revision=26672

14 years ago- Remove/deprecate some certain chunks of Cm which are not critical to booting and...
Alex Ionescu [Thu, 10 May 2007 09:14:15 +0000 (09:14 +0000)]
- Remove/deprecate some certain chunks of Cm which are not critical to booting and not even to applications (such as NtSaveKey, which didn't even have NtRestoreKey) and mark them as unimplemented functions.
- This doesn't do much but clean up some of our code to make it easier to see what the critical parts are and reduce bug surface exposure.
- Move and slightly reformat (without touching any of the actual code) registry callback/notification code to cmhook.c.

svn path=/trunk/; revision=26671

14 years ago- Move CmpSetSystemValues to cmsysini.c
Alex Ionescu [Thu, 10 May 2007 01:48:54 +0000 (01:48 +0000)]
- Move CmpSetSystemValues to cmsysini.c
- Remove all NTLDR-style profile code from cmsysini.c, since ReactOS doesn't support it, and there's no use lugging that code around.
- Rename CmpCreateCurrentControlSetLink to CmpCreateControlSet.
- Get rid of CmiCreateCuttenControlSetLink and use the new version instead, which also supports setting the right current Hardware Profile ID.

svn path=/trunk/; revision=26670

14 years ago- Refactor the registry initialization code to be somewhat closer to the Cm rewrite...
Alex Ionescu [Thu, 10 May 2007 00:02:04 +0000 (00:02 +0000)]
- Refactor the registry initialization code to be somewhat closer to the Cm rewrite branch.
- No actual code/implementation changes per-se, simply moved code into new routines, deleted old routines, renamed some routines and added more error-checking.
- Also performed registry initialization in an order more analogous to Windows.
- Added cmsysini.c from the branch, but it's not used at the moment.

svn path=/trunk/; revision=26669

14 years ago- Fix crash in Install CD introduced in 26666, with a ludicrious hack for FreeLDR
Alex Ionescu [Wed, 9 May 2007 21:15:52 +0000 (21:15 +0000)]
- Fix crash in Install CD introduced in 26666, with a ludicrious hack for FreeLDR

svn path=/trunk/; revision=26668

14 years ago- Add error messages to prevent silent failing, no functionality change.
Aleksey Bragin [Wed, 9 May 2007 20:52:08 +0000 (20:52 +0000)]
- Add error messages to prevent silent failing, no functionality change.

svn path=/trunk/; revision=26667

14 years ago- Implement CmGetSystemControlValues and all related low-level Cm functionality requi...
Alex Ionescu [Wed, 9 May 2007 18:30:21 +0000 (18:30 +0000)]
- Implement CmGetSystemControlValues and all related low-level Cm functionality required to select the proper control set and read all the kernel variables during Phase 0 initialization. We can now read time-zone data, version, suite, language IDs and other important kernel variables in the lowest-level boot phase.
- New code uses cmlib from Filip Navara without any modification, and is fully compatible with reading Windows hives as well except XP's "Big value cells" (cells with > 2GB data) which aren't supported.
- Create /config directory where the new Configuration Manager code lies.

svn path=/trunk/; revision=26666

14 years ago1) Update KiPcToFileHeader to work in early-boot stage by looking through the KeLoade...
Alex Ionescu [Wed, 9 May 2007 16:15:22 +0000 (16:15 +0000)]
1) Update KiPcToFileHeader to work in early-boot stage by looking through the KeLoaderBlock instead.
2) Make KeRosDumpStrackFrames use KiPcToFileHeader instead of KiRosPrintAddress. The end result is the same but we don't recursively bugcheck anymore during Phase 0 bugchecks :)

svn path=/trunk/; revision=26665

14 years ago- Add km regtests to build.
Aleksey Bragin [Wed, 9 May 2007 11:55:19 +0000 (11:55 +0000)]
- Add km regtests to build.
- Add a very simple memory monitor (to be improved later).

svn path=/trunk/; revision=26664

14 years ago- Move tests from trunk.
Aleksey Bragin [Wed, 9 May 2007 11:18:34 +0000 (11:18 +0000)]
- Move tests from trunk.

svn path=/trunk/; revision=26663

14 years ago- Delete /drivers dir (it's gonna be created by svn copy commit)
Aleksey Bragin [Wed, 9 May 2007 11:17:46 +0000 (11:17 +0000)]
- Delete /drivers dir (it's gonna be created by svn copy commit)

svn path=/trunk/; revision=26662

14 years ago- Create a place for kernel-mode regression testing drivers.
Aleksey Bragin [Wed, 9 May 2007 11:13:20 +0000 (11:13 +0000)]
- Create a place for kernel-mode regression testing drivers.

svn path=/trunk/; revision=26661

14 years ago- Fix line endings.
Alex Ionescu [Wed, 9 May 2007 04:55:24 +0000 (04:55 +0000)]
- Fix line endings.

svn path=/trunk/; revision=26660

14 years ago- Added more improvements/fixes to the Executive Initialization code:
Alex Ionescu [Wed, 9 May 2007 00:44:45 +0000 (00:44 +0000)]
- Added more improvements/fixes to the Executive Initialization code:
  - We now print out error messages at each SESSIONX_INITIALIZATION_FAILURE directly on the screen.
  - Build CmNtCSDVersion to include SP1 and our SVN Revision number.
  - Build CmNtSpBuildNumber with the actual SP1 build number.
  - Detect Headless Terminal usage.
  - Build and create the CmVersionString.
  - Display a startup banner similar to Windows based on the CmVersionString, also indicating the SVN revision.
  - Fix some bugs in the timezone code.
  - Display a second startup banner like Windows's, displaying memory and CPU counts.
  - Add calls to initialize RANGE_LISTs, the Prefetecher, XIP Support and Phase 2 Executive Initialization.
  - Parse the command line to detect /SAFEBOOT: switch and which type of safe mode boot this is.
  - Display an optional third startup banner showing which safemode boot type this is.
  - Detect /BOOTLOG switch and display a fourth startup banner if it's enabled, but don't initialize boot logging yet.
  - Don't allow driver loading to push the progress bar beyond 75%.
  - Write safe-boot type to registry, detect AlternateShell mode and validate that one is configured.
  - Write MININT key to registry if booting in WinPE (LiveCD) mode.
  - Don't leak smss environment and parameters anymore.
  - Cleanup and reformat some code, use VER_ constants instead of magic numbers.

svn path=/trunk/; revision=26659

14 years ago- Add CcPf (Cache Manager PreFetcher) structures and add a stub function to initailiz...
Alex Ionescu [Wed, 9 May 2007 00:29:38 +0000 (00:29 +0000)]
- Add CcPf (Cache Manager PreFetcher) structures and add a stub function to initailize the global settings for the pre-fetcher (only a lock and list for now).
- Add hdlsterm.c for Headless Terminal Support and a stub function to detect if anyone is trying to do this.
- Add xipdisp.c for eXecute-In-Place Support and add a stub function to detect if anyone is trying this, as well as get various supported command line settings.
- Try to find XIP Memory Descriptor if one was given.
- Get Power Event callback from Win32k in PsEstablishWin32Callouts.
- Notifiy System Time Change callback with PoNotifySystemTimeSet.
- Add safemode and bootlog Message IDs.

svn path=/trunk/; revision=26658

14 years ago- Stripped down ntstrafe.h routines required for a future patch, and for basic functi...
Alex Ionescu [Wed, 9 May 2007 00:06:18 +0000 (00:06 +0000)]
- Stripped down ntstrafe.h routines required for a future patch, and for basic functionality. Do not support any flags yet (and will ASSERT if attempt is made): RtlStringCbCopyA, RtlStringCbCatExA, RtlStringCbCopyExA, RtlStringCbPrintfExA, RtlStringCbPrintfA.

svn path=/trunk/; revision=26657

14 years ago- Buildno now generates a KERNEL_VERSION_BUILD_HEX ULONG containing the SVN revision.
Alex Ionescu [Tue, 8 May 2007 23:00:35 +0000 (23:00 +0000)]
- Buildno now generates a KERNEL_VERSION_BUILD_HEX ULONG containing the SVN revision.

svn path=/trunk/; revision=26656

14 years agoSave user cursor schemes using the environment variables SystemRoot, USERPROFILE...
Eric Kohl [Tue, 8 May 2007 22:13:18 +0000 (22:13 +0000)]
Save user cursor schemes using the environment variables SystemRoot, USERPROFILE or ProgramFiles in the cursor paths instead of absolute paths.

svn path=/trunk/; revision=26655

14 years ago- Fix broken definition of IsBoostAllowed which would cause ERESOURCE boosts to be...
Alex Ionescu [Tue, 8 May 2007 21:35:10 +0000 (21:35 +0000)]
- Fix broken definition of IsBoostAllowed which would cause ERESOURCE boosts to be applied backwards.
- Use cleaner, inlined definitions for ExAcquire/ReleaseResourceLock.
- Convert ERESOURCE code to use a Queued In-Stack Spinlock instead of a regular spinlock.
- Force usage of the spinlock instead of cli/sti for DBG builds, and enable strict sanity checks.
- Fix incorrect check in ExpCheckForApcsDisabled.
- Properly handle memory starvation in the contended path.
- Make sure to allocate a semaphore if needed during ExAcquireSharedStarveExclusive.
- Fix multiple bugs in ExIsResourceAcquiredSharedLite.
- ExReleaseResourceForThreadLite didn't always properly set the ResourceOwnedExclusive flag, and didn't validate ownership.
- ExSetResourceOwnerPointer wouldn't set the owner if there wasn't one already.

svn path=/trunk/; revision=26654

14 years ago- Fix unshielded "return"s inside PSEH blocks, in the kernel.
Aleksey Bragin [Tue, 8 May 2007 10:32:16 +0000 (10:32 +0000)]
- Fix unshielded "return"s inside PSEH blocks, in the kernel.
- Fix formatting of a couple of lines.

svn path=/trunk/; revision=26653

14 years ago- Fix an unshielded "return" inside a PSEH block.
Aleksey Bragin [Tue, 8 May 2007 09:01:39 +0000 (09:01 +0000)]
- Fix an unshielded "return" inside a PSEH block.

svn path=/trunk/; revision=26652

14 years ago- fix resources
Timo Kreuzer [Mon, 7 May 2007 09:27:43 +0000 (09:27 +0000)]
- fix resources

svn path=/trunk/; revision=26651

14 years agoFix memory corruption in freeldr
Hervé Poussineau [Sun, 6 May 2007 07:35:57 +0000 (07:35 +0000)]
Fix memory corruption in freeldr

svn path=/trunk/; revision=26650

14 years agoThe current cursor scheme will now be loaded correctly and the scheme list will displ...
Eric Kohl [Sun, 6 May 2007 02:06:30 +0000 (02:06 +0000)]
The current cursor scheme will now be loaded correctly and the scheme list will display the correct name of the cursor scheme.

svn path=/trunk/; revision=26649

14 years agoRemove outdated email addresses.
Eric Kohl [Sat, 5 May 2007 11:32:25 +0000 (11:32 +0000)]
Remove outdated email addresses.

svn path=/trunk/; revision=26648

14 years agoUpdate Polish translation (bug #2233).
Dmitry Gorbachev [Sat, 5 May 2007 08:16:59 +0000 (08:16 +0000)]
Update Polish translation (bug #2233).

svn path=/trunk/; revision=26647

14 years agoupdate to XMLStorage version 1.2
Martin Fuchs [Sat, 5 May 2007 07:30:20 +0000 (07:30 +0000)]
update to XMLStorage version 1.2

svn path=/trunk/; revision=26646

14 years agoFix a bug in stub generation code. There are some other lesser bugs.
Dmitry Gorbachev [Sat, 5 May 2007 03:48:20 +0000 (03:48 +0000)]
Fix a bug in stub generation code. There are some other lesser bugs.

svn path=/trunk/; revision=26645

14 years agoChinese translation (bug report #2221).
Dmitry Gorbachev [Fri, 4 May 2007 23:31:08 +0000 (23:31 +0000)]
Chinese translation (bug report #2221).

svn path=/trunk/; revision=26644

14 years agoChinese translation by Zhangbing (bug #2222).
Dmitry Gorbachev [Fri, 4 May 2007 23:30:48 +0000 (23:30 +0000)]
Chinese translation by Zhangbing (bug #2222).

svn path=/trunk/; revision=26643

14 years agoFix a typo in translation. Bug report #2233.
Dmitry Gorbachev [Fri, 4 May 2007 23:27:54 +0000 (23:27 +0000)]
Fix a typo in translation. Bug report #2233.

svn path=/trunk/; revision=26642

14 years agoUpdate Polish translation. Patch by Lech Groblewicz
Dmitry Gorbachev [Fri, 4 May 2007 23:27:28 +0000 (23:27 +0000)]
Update Polish translation. Patch by Lech Groblewicz
<xrogers'at'gmail'dot'com> and Olaf Siejka. Bug #2233.

svn path=/trunk/; revision=26641

14 years agoPatch for reformatting the cabman code, Colin Finck, see bug report #2234.
Dmitry Gorbachev [Fri, 4 May 2007 22:21:55 +0000 (22:21 +0000)]
Patch for reformatting the cabman code, Colin Finck, see bug report #2234.

svn path=/trunk/; revision=26640