reactos.git
14 years agoAllow files other than C to be included in the projects
Ged Murphy [Mon, 2 Jan 2006 16:43:54 +0000 (16:43 +0000)]
Allow files other than C to be included in the projects
Patch by Brezenbak (IRC)

svn path=/trunk/; revision=20529

14 years agoReport current bus number during IRP_MN_QUERY_RESOURCES
Hervé Poussineau [Mon, 2 Jan 2006 11:39:15 +0000 (11:39 +0000)]
Report current bus number during IRP_MN_QUERY_RESOURCES
Child bus number is in u.type1.SecondaryBus field, not u.type1.SubordinateBus

svn path=/trunk/; revision=20528

14 years agoStart \\Device\\USBFDOx names at index 0.
Hervé Poussineau [Mon, 2 Jan 2006 11:37:00 +0000 (11:37 +0000)]
Start \\Device\\USBFDOx names at index 0.
Use the same index to create the symbolic link \\??\\HCDx
This should fix the handling of multiple USB controllers

svn path=/trunk/; revision=20527

14 years agoReplace STATUS_UNSUCCESSFUL by STATUS_TOO_MANY_NAMES
Hervé Poussineau [Mon, 2 Jan 2006 11:32:03 +0000 (11:32 +0000)]
Replace STATUS_UNSUCCESSFUL by STATUS_TOO_MANY_NAMES

svn path=/trunk/; revision=20526

14 years agoGenerate static MIDL_PROC_FORMAT_STRING, MIDL_TYPE_FORMAT_STRING and MIDL_STUB_DESC.
Eric Kohl [Sun, 1 Jan 2006 20:59:39 +0000 (20:59 +0000)]
Generate static MIDL_PROC_FORMAT_STRING, MIDL_TYPE_FORMAT_STRING and MIDL_STUB_DESC.

svn path=/trunk/; revision=20525

14 years agorevert 20523.
Ged Murphy [Sun, 1 Jan 2006 20:56:01 +0000 (20:56 +0000)]
revert 20523.
explorer and my computer are different animals

svn path=/trunk/; revision=20524

14 years agochange explorer quick launch icon to use default 'my computer' icon instead of a...
Ged Murphy [Sun, 1 Jan 2006 18:45:16 +0000 (18:45 +0000)]
change explorer quick launch icon to use default 'my computer' icon instead of a folder.

svn path=/trunk/; revision=20523

14 years ago- split logoff and shutdown resources
Ged Murphy [Sun, 1 Jan 2006 18:13:07 +0000 (18:13 +0000)]
- split logoff and shutdown resources
- add icons for each

svn path=/trunk/; revision=20522

14 years agofix some bugs wih org with strechblt.
Magnus Olsen [Sun, 1 Jan 2006 17:12:19 +0000 (17:12 +0000)]
fix some bugs wih org with strechblt.

svn path=/trunk/; revision=20521

14 years agoAdd missing processor architecture cases
Hervé Poussineau [Sun, 1 Jan 2006 16:49:53 +0000 (16:49 +0000)]
Add missing processor architecture cases

svn path=/trunk/; revision=20520

14 years agorevert 17709 for it break streach for windows mode. That why I did only got black...
Magnus Olsen [Sun, 1 Jan 2006 16:00:45 +0000 (16:00 +0000)]
revert 17709 for it break streach for windows mode. That why I did only got black windows in winquake with windows mode 640x480.

svn path=/trunk/; revision=20519

14 years agoeliminate GCC warning about initialization order
Martin Fuchs [Sun, 1 Jan 2006 15:44:46 +0000 (15:44 +0000)]
eliminate GCC warning about initialization order

svn path=/trunk/; revision=20517

14 years ago- Fix crashes in calls to ScmAssignNewTag.
Eric Kohl [Sun, 1 Jan 2006 15:32:40 +0000 (15:32 +0000)]
- Fix crashes in calls to ScmAssignNewTag.
- ScmrCreateServiceW: Assign a group to the service.

svn path=/trunk/; revision=20516

14 years agoexplorer:
Martin Fuchs [Sun, 1 Jan 2006 15:21:03 +0000 (15:21 +0000)]
explorer:
- simplify SCAN flags
- extend shell browser to use WINFS
- resolve a few FIXMEs
- simplify ShellBrowser initialization
- handle /root command line option

svn path=/trunk/; revision=20515

14 years agooptimize hide curs lite. so it does not tryung update the underlying surface hold...
Magnus Olsen [Sun, 1 Jan 2006 14:40:24 +0000 (14:40 +0000)]
optimize hide curs lite. so it does not tryung update the underlying surface hold time. and do not save the underlying surface in show when it is hide. all these save alot of cycles and winquake are bit faster.

svn path=/trunk/; revision=20514

14 years agoForward QueryServiceLockStatusA/W to services.exe.
Eric Kohl [Sun, 1 Jan 2006 14:26:25 +0000 (14:26 +0000)]
Forward QueryServiceLockStatusA/W to services.exe.

svn path=/trunk/; revision=20512

14 years agoFixed calculating the size of empty message boxes. Fixes bug 1224
Thomas Bluemel [Sun, 1 Jan 2006 13:45:09 +0000 (13:45 +0000)]
Fixed calculating the size of empty message boxes. Fixes bug 1224

svn path=/trunk/; revision=20511

14 years agoFixing a small bug for hide mouse. Save the current surface under the mouse. But...
Magnus Olsen [Sun, 1 Jan 2006 13:36:06 +0000 (13:36 +0000)]
Fixing a small bug for hide mouse. Save the current surface under the mouse. But do not blt the mouse pointer. it take care of small glict I have seen in winqauke.

svn path=/trunk/; revision=20510

14 years agofixed uninitialized variable warning
Thomas Bluemel [Sun, 1 Jan 2006 13:31:26 +0000 (13:31 +0000)]
fixed uninitialized variable warning

svn path=/trunk/; revision=20509

14 years agoForward EnumDependentServicesA/W to services.exe.
Eric Kohl [Sun, 1 Jan 2006 12:00:13 +0000 (12:00 +0000)]
Forward EnumDependentServicesA/W to services.exe.

svn path=/trunk/; revision=20508

14 years agoRevert accidental commit 20505
Gé van Geldorp [Sun, 1 Jan 2006 11:52:34 +0000 (11:52 +0000)]
Revert accidental commit 20505

svn path=/trunk/; revision=20507

14 years agoExiting the loop while someone else still might have a lock kind of defeats
Gé van Geldorp [Sun, 1 Jan 2006 11:50:54 +0000 (11:50 +0000)]
Exiting the loop while someone else still might have a lock kind of defeats
the purpose of acquiring the lock ourselves

svn path=/trunk/; revision=20506

14 years agoFix memory tracking
Gé van Geldorp [Sun, 1 Jan 2006 11:48:11 +0000 (11:48 +0000)]
Fix memory tracking

svn path=/trunk/; revision=20505

14 years agoMemory is properly released, no need to untrack it
Gé van Geldorp [Sun, 1 Jan 2006 11:44:55 +0000 (11:44 +0000)]
Memory is properly released, no need to untrack it

svn path=/trunk/; revision=20504

14 years agoFix a memory leak
Gé van Geldorp [Sun, 1 Jan 2006 11:41:05 +0000 (11:41 +0000)]
Fix a memory leak

svn path=/trunk/; revision=20503

14 years agoSilence debug message
Gé van Geldorp [Sun, 1 Jan 2006 11:34:59 +0000 (11:34 +0000)]
Silence debug message

svn path=/trunk/; revision=20502

14 years agoexplorer: merge changes from lean explorer branch (shell namespace iteration, icon...
Martin Fuchs [Sun, 1 Jan 2006 10:40:23 +0000 (10:40 +0000)]
explorer: merge changes from lean explorer branch (shell namespace iteration, icon extraction)

svn path=/trunk/; revision=20501

14 years agoForward ChangeServiceConfig2A, QueryServiceConfig2A/W and EnumServicesStatusExA to...
Eric Kohl [Sun, 1 Jan 2006 10:31:35 +0000 (10:31 +0000)]
Forward ChangeServiceConfig2A, QueryServiceConfig2A/W and EnumServicesStatusExA to services.exe

svn path=/trunk/; revision=20500

14 years agoRevert part of r20493. Created bug 1229 to keep track of the issue.
Gé van Geldorp [Sun, 1 Jan 2006 10:24:27 +0000 (10:24 +0000)]
Revert part of r20493. Created bug 1229 to keep track of the issue.

svn path=/trunk/; revision=20499

14 years agoShowCursor, gott a internal count to show the mouse or not, and return that value...
Magnus Olsen [Sun, 1 Jan 2006 01:09:08 +0000 (01:09 +0000)]
ShowCursor, gott a internal count to show the mouse or not, and return that value. as msdn descripe.

svn path=/trunk/; revision=20498

14 years agoNew ibrowser icon by mf :P 4 mins late but still ;)
Gregor Anich [Sat, 31 Dec 2005 23:04:53 +0000 (23:04 +0000)]
New ibrowser icon by mf :P 4 mins late but still ;)

svn path=/trunk/; revision=20497

14 years ago- Service list entries use a pointer to a group list entry instead of the goup name.
Eric Kohl [Sat, 31 Dec 2005 22:42:41 +0000 (22:42 +0000)]
- Service list entries use a pointer to a group list entry instead of the goup name.
- New group list entries are created in the unknown-group-list for services of unknown groups.

svn path=/trunk/; revision=20496

14 years agoClose bug 1223.
James Tabor [Sat, 31 Dec 2005 21:37:52 +0000 (21:37 +0000)]
Close bug 1223.

svn path=/trunk/; revision=20495

14 years agoRegistry entries for shell folders
Martin Fuchs [Sat, 31 Dec 2005 20:49:43 +0000 (20:49 +0000)]
Registry entries for shell folders

svn path=/trunk/; revision=20494

14 years agoOn FAT16 partitions smaller than 128MB, the cluster size is 2048, which is
Gé van Geldorp [Sat, 31 Dec 2005 19:50:29 +0000 (19:50 +0000)]
On FAT16 partitions smaller than 128MB, the cluster size is 2048, which is
smaller than PAGE_SIZE. This caused creation of the paging file on such a
partition to fail, which in turn made SMSS fail, blocking the boot process.
Creation of paging file fixed, and failure to create it is no longer a blocker
for the boot process (just try to run without paging file).

svn path=/trunk/; revision=20493

14 years agoSVN maintenance
Eric Kohl [Sat, 31 Dec 2005 19:02:48 +0000 (19:02 +0000)]
SVN maintenance

svn path=/trunk/; revision=20492

14 years agoMove group-list related code to a separate file and keep the group name in the group...
Eric Kohl [Sat, 31 Dec 2005 18:56:34 +0000 (18:56 +0000)]
Move group-list related code to a separate file and keep the group name in the group record because it never changes.

svn path=/trunk/; revision=20491

14 years ago- Use a separate icon for minimizing windows.
Ged Murphy [Sat, 31 Dec 2005 17:27:25 +0000 (17:27 +0000)]
- Use a separate icon for minimizing windows.
- Add new icon

svn path=/trunk/; revision=20489

14 years agoImplement VideoPortGetAssociatedDeviceExtension and VideoPortCheckForDeviceExistence
Hervé Poussineau [Sat, 31 Dec 2005 16:01:02 +0000 (16:01 +0000)]
Implement VideoPortGetAssociatedDeviceExtension and VideoPortCheckForDeviceExistence

svn path=/trunk/; revision=20487

14 years agoset eol-style to native
Thomas Bluemel [Sat, 31 Dec 2005 15:47:15 +0000 (15:47 +0000)]
set eol-style to native

svn path=/trunk/; revision=20485

14 years agoAdd a tree file without subcategories.
Maarten Bosma [Sat, 31 Dec 2005 15:13:01 +0000 (15:13 +0000)]
Add a tree file without subcategories.

svn path=/trunk/; revision=20484

14 years agoForward StartServiceA/W to services.exe
Eric Kohl [Sat, 31 Dec 2005 11:33:46 +0000 (11:33 +0000)]
Forward StartServiceA/W to services.exe

svn path=/trunk/; revision=20480

14 years agoFix bugs in ChangeServiceConfig2W spotted by Casper and Royce
Hervé Poussineau [Sat, 31 Dec 2005 10:11:58 +0000 (10:11 +0000)]
Fix bugs in ChangeServiceConfig2W spotted by Casper and Royce

svn path=/trunk/; revision=20478

14 years agoRevert 20343, which puts the implementation of QueryServiceConfigW back into place...
Andrew Munger [Sat, 31 Dec 2005 01:38:59 +0000 (01:38 +0000)]
Revert 20343, which puts the implementation of QueryServiceConfigW back into place. (20255)

svn path=/trunk/; revision=20477

14 years ago- Cleanup assembly files and create a header for the macros added and new ones that...
Alex Ionescu [Sat, 31 Dec 2005 00:03:19 +0000 (00:03 +0000)]
- Cleanup assembly files and create a header for the macros added and new ones that will be added later for syscall.S & friends.

svn path=/trunk/; revision=20476

14 years agosolv the issue with mouse poiter is hide, do not show the mousepointer when you are...
Magnus Olsen [Fri, 30 Dec 2005 23:56:27 +0000 (23:56 +0000)]
solv the issue with mouse poiter is hide, do not show the mousepointer when you are moving the mouse. tested in winquake

svn path=/trunk/; revision=20475

14 years ago- Rewrite Executive Interlocked Functions to actually work as supposed and also immen...
Alex Ionescu [Fri, 30 Dec 2005 23:53:13 +0000 (23:53 +0000)]
- Rewrite Executive Interlocked Functions to actually work as supposed and also immensly increase their speed, most notably on non-SMP machines:
  * The functions now disable interrupts as they should. This is a core functionality of the ExInterlocked functions which we did not do.
  * The functions now preserve EFLAGS as they should. This is another core functionality and point of ExInterlocked functions, which we did not do.
  * Use KiAcquire/ReleaseSpinlock equivalents instead of going through HAL. Also make them macros which can be later used in other assembly files.
  * Write optimized versions for non-SMP machines. Namely, the spinlock macros are coded to be no-ops on UP machines, since they are not needed.
  * Write all functions in assembly, so we can cleanly optimize them and properly restore/save EFLAGS and use CLI.
- Use the right interlocked macro in guarded mutex implementation.
- Fix export of Exi386InterlockedExchangeUlong
- Use documented EFLAGS definition instead of hard-coded value in some interlocked functions.

svn path=/trunk/; revision=20474

14 years agoKaj Kaloinen <kkaloine@gmail.com>
Gé van Geldorp [Fri, 30 Dec 2005 23:50:05 +0000 (23:50 +0000)]
Kaj Kaloinen <kkaloine@gmail.com>
Finnish translation

svn path=/trunk/; revision=20473

14 years agoAllocate room for terminator. Fixes bug 1203, r20343 can be re-applied.
Gé van Geldorp [Fri, 30 Dec 2005 23:44:03 +0000 (23:44 +0000)]
Allocate room for terminator. Fixes bug 1203, r20343 can be re-applied.

svn path=/trunk/; revision=20472

14 years agoExpandEnvironmentStrings returns the number of TCHARs, not bytes
Gé van Geldorp [Fri, 30 Dec 2005 23:42:04 +0000 (23:42 +0000)]
ExpandEnvironmentStrings returns the number of TCHARs, not bytes

svn path=/trunk/; revision=20471

14 years agoImplement ShowCursor, it is a issue with quake when you moving the mouse, the mousepo...
Magnus Olsen [Fri, 30 Dec 2005 22:02:59 +0000 (22:02 +0000)]
Implement ShowCursor, it is a issue with quake when you moving the mouse, the mousepointer will show, when you stand still with the mouse it will not show the mousepointer.

svn path=/trunk/; revision=20470

14 years agouse a .spec file and fix the export ordinals
Thomas Bluemel [Fri, 30 Dec 2005 21:18:25 +0000 (21:18 +0000)]
use a .spec file and fix the export ordinals

svn path=/trunk/; revision=20469

14 years agoMake sure compiler doesn't optimize our wait loop away. Patch by Thomas Weidenmueller
Alex Ionescu [Fri, 30 Dec 2005 20:31:11 +0000 (20:31 +0000)]
Make sure compiler doesn't optimize our wait loop away. Patch by Thomas Weidenmueller

svn path=/trunk/; revision=20468

14 years agolanguages file update for Hu.rc by Talley.
Magnus Olsen [Fri, 30 Dec 2005 20:28:35 +0000 (20:28 +0000)]
languages file update for Hu.rc by Talley.

svn path=/trunk/; revision=20467

14 years agoFix a mouse bug for hide the cursor. It is working now with my test code for ShowCurs...
Magnus Olsen [Fri, 30 Dec 2005 20:15:07 +0000 (20:15 +0000)]
Fix a mouse bug for hide the cursor. It is working now with my test code for ShowCursor and NtShowCursor. The code for it is not finish.
and it also working now hide the mouse with EngMovePointer(SurfObj,-1,-1,NULL); and that did not work before.

svn path=/trunk/; revision=20466

14 years agotemarez <temarez@yandex.ru>:
Gé van Geldorp [Fri, 30 Dec 2005 19:14:58 +0000 (19:14 +0000)]
temarez <temarez@yandex.ru>:
Ukrainian translation of notepad (from bug 1179)

svn path=/trunk/; revision=20465

14 years agoDJ_Smith <dj_smith_reactos@online.de>
Klemens Friedl [Fri, 30 Dec 2005 19:12:40 +0000 (19:12 +0000)]
DJ_Smith <dj_smith_reactos@online.de>
german language file updated

svn path=/trunk/; revision=20464

14 years agoAnother coordinate transformation change. Fixes final problem with bug 1201.
Gé van Geldorp [Fri, 30 Dec 2005 19:10:43 +0000 (19:10 +0000)]
Another coordinate transformation change. Fixes final problem with bug 1201.

svn path=/trunk/; revision=20463

14 years agoupdate all resource files. All need translating.
Ged Murphy [Fri, 30 Dec 2005 18:48:27 +0000 (18:48 +0000)]
update all resource files. All need translating.
info for translating purposes:
IDS_INETTIMESUCSYNC "The time has been successfully synchronized with <server> on <date> at <time>"
IDS_INETTIMENEXTSYNC "Next synchronization: <date> at <time>"

svn path=/trunk/; revision=20461

14 years ago- Detect end of chain
Gé van Geldorp [Fri, 30 Dec 2005 18:35:49 +0000 (18:35 +0000)]
- Detect end of chain
- Correct copy/paste error
Fixes bug 1212

svn path=/trunk/; revision=20460

14 years agoPut skeleton in place for 'internet time' tab in the 'date and time' control panel...
Ged Murphy [Fri, 30 Dec 2005 18:19:24 +0000 (18:19 +0000)]
Put skeleton in place for 'internet time' tab in the 'date and time' control panel applet

svn path=/trunk/; revision=20459

14 years agoUse the BSOD color that Cutler intended
Gé van Geldorp [Fri, 30 Dec 2005 15:28:43 +0000 (15:28 +0000)]
Use the BSOD color that Cutler intended

svn path=/trunk/; revision=20458

14 years agoModified rbuild to generate a map file of the boot loader
Nathan Woods [Fri, 30 Dec 2005 13:33:31 +0000 (13:33 +0000)]
Modified rbuild to generate a map file of the boot loader

svn path=/trunk/; revision=20457

14 years agoForward ChangeServiceConfig2W call to services.exe
Hervé Poussineau [Fri, 30 Dec 2005 10:29:07 +0000 (10:29 +0000)]
Forward ChangeServiceConfig2W call to services.exe

svn path=/trunk/; revision=20456

14 years agoprotect access to buffers with SEH in NtSetSecurityObject and NtQuerySecurityObject...
Thomas Bluemel [Fri, 30 Dec 2005 01:41:02 +0000 (01:41 +0000)]
protect access to buffers with SEH in NtSetSecurityObject and NtQuerySecurityObject and ask for the proper access rights

svn path=/trunk/; revision=20455

14 years agoFix a cut & paste error.
Filip Navara [Fri, 30 Dec 2005 01:39:34 +0000 (01:39 +0000)]
Fix a cut & paste error.

svn path=/trunk/; revision=20454

14 years agoTransform correctly the coordinates.
Filip Navara [Fri, 30 Dec 2005 01:28:29 +0000 (01:28 +0000)]
Transform correctly the coordinates.

svn path=/trunk/; revision=20453

14 years agoTransform correctly the coordinates.
Filip Navara [Fri, 30 Dec 2005 01:19:41 +0000 (01:19 +0000)]
Transform correctly the coordinates.

svn path=/trunk/; revision=20452

14 years agofixed returned status code in RtlAnsiStringToUnicodeString and properly free allocate...
Thomas Bluemel [Fri, 30 Dec 2005 00:18:48 +0000 (00:18 +0000)]
fixed returned status code in RtlAnsiStringToUnicodeString and properly free allocated memory in case converting the string failed

svn path=/trunk/; revision=20449

14 years agoUse only NtCreateKey and better suited access rights.
Brandon Turner [Thu, 29 Dec 2005 22:54:24 +0000 (22:54 +0000)]
Use only NtCreateKey and better suited access rights.

svn path=/trunk/; revision=20448

14 years agoRelicence newdev.dll to LGPL. Christoph von Wittich and I both agree on this licence...
Hervé Poussineau [Thu, 29 Dec 2005 22:43:44 +0000 (22:43 +0000)]
Relicence newdev.dll to LGPL. Christoph von Wittich and I both agree on this licence change.
Do according changes in source to follow Wine way of code

svn path=/trunk/; revision=20447

14 years agosorry did commit debug on by mistake
Magnus Olsen [Thu, 29 Dec 2005 22:43:36 +0000 (22:43 +0000)]
sorry did commit debug on by mistake

svn path=/trunk/; revision=20446

14 years agonew icon from mf
Magnus Olsen [Thu, 29 Dec 2005 22:38:56 +0000 (22:38 +0000)]
new icon from mf

svn path=/trunk/; revision=20445

14 years agoCorrectly open the registry when using MOVEFILE_DELAY_UNTIL_REBOOT
Brandon Turner [Thu, 29 Dec 2005 22:24:19 +0000 (22:24 +0000)]
Correctly open the registry when using MOVEFILE_DELAY_UNTIL_REBOOT

svn path=/trunk/; revision=20444

14 years agoSet DI_FLAGSEX_ALLOWEXCLUDEDDRVS flag when searching a driver for a PnP device
Hervé Poussineau [Thu, 29 Dec 2005 22:02:14 +0000 (22:02 +0000)]
Set DI_FLAGSEX_ALLOWEXCLUDEDDRVS flag when searching a driver for a PnP device

svn path=/trunk/; revision=20443

14 years agoFix Bug 1217 with patch from bugzila by ravelo "If you type > or < in cmd and hit...
Magnus Olsen [Thu, 29 Dec 2005 21:46:40 +0000 (21:46 +0000)]
Fix Bug 1217 with patch from bugzila by  ravelo  "If you type > or < in cmd and hit ENTER, cmd.exe crashes"

svn path=/trunk/; revision=20442

14 years agoadd some missing constants
Thomas Bluemel [Thu, 29 Dec 2005 21:45:17 +0000 (21:45 +0000)]
add some missing constants

svn path=/trunk/; revision=20441

14 years agoadd the driver details dialog (not fully implemented)
Thomas Bluemel [Thu, 29 Dec 2005 21:43:21 +0000 (21:43 +0000)]
add the driver details dialog (not fully implemented)

svn path=/trunk/; revision=20440

14 years agodo not call on NtQuerySecurityObject in RegGetKeySecurity for it will always fail...
Magnus Olsen [Thu, 29 Dec 2005 21:01:51 +0000 (21:01 +0000)]
do not call on  NtQuerySecurityObject in RegGetKeySecurity for it will always fail on reactos.
adding #ifndef __REACTOS__ around that code and should be remove when we have that call implement in reactos.

svn path=/trunk/; revision=20439

14 years agofixed uninitialized variable error
Thomas Bluemel [Thu, 29 Dec 2005 20:51:14 +0000 (20:51 +0000)]
fixed uninitialized variable error

svn path=/trunk/; revision=20438

14 years agodo not call on NtQuerySecurityObject in RegQueryInfoKey for it will always fail...
Magnus Olsen [Thu, 29 Dec 2005 20:31:22 +0000 (20:31 +0000)]
do not call on  NtQuerySecurityObject in RegQueryInfoKey for it will always fail on reactos.
adding #ifndef __REACTOS__ around that code and should be remove when we have that call implement in reactos.

svn path=/trunk/; revision=20437

14 years ago- Fix InterlockedBitTestAndReset and InterlockedBitTestAndSet
Alex Ionescu [Thu, 29 Dec 2005 19:54:42 +0000 (19:54 +0000)]
- Fix InterlockedBitTestAndReset and InterlockedBitTestAndSet
- Implement YieldProcessor
- Fix formatting in spinlock.c
- KiAcquireSpinlock and KiReleaseSpinLock should be no-op functions on uniprocessor machines.
- KiReleaseSpinLock does not need interlocked access to release the lock.
- Use portable code for KiAcquireSpinLock. Also use interlocked bit operations since they are faster.

svn path=/trunk/; revision=20436

14 years ago- Implemented InterlockedBitTestAndReset, InterlockedBitTestAndSet, InterlockedExchan...
Alex Ionescu [Thu, 29 Dec 2005 19:12:09 +0000 (19:12 +0000)]
- Implemented InterlockedBitTestAndReset, InterlockedBitTestAndSet, InterlockedExchangeAddSizeT.
- Rundown re-implementation:

* Added inlined functions for internal system use for quickest path.
* Correctly named all functions Exf instead of Ex.
* Removed PAGED_CODE(); macro where it shouldn't be used.
* Addded multiple ASSERTS for sanity checks.
* Used macros for win64/32 portability.
* Fixed the following bugs/features:
    * ExfAcquireRundownProtection:
        ** Added specific code instead of calling the generic function. Rundown locks are
           performance critical and a dedicated path is prefered.
    * ExfAcquireRundownProtectionEx:
        ** Added a quick immediate check to see if the rundown is active.
    * ExfReleaseRundownProtection:
        ** Added specific code instead of calling the generic function. Rundown locks are
           performance critical and a dedicated path is prefered.
    * ExfReleaseRundownProtectionEx:
        ** Simplified the loop code.
        ** Fixed a bug in signaling of the event during waitblock count removal
    * ExfWaitForRundownProtectionRelease:
        ** Add quick case when we don't actually need a full wait.
        ** Simplified loop code.
* Added stubs for cache-aware implementation.
* Documented the functions.

svn path=/trunk/; revision=20435

14 years ago- Fix formatting and a bug in NtSetSystemTime.
Alex Ionescu [Thu, 29 Dec 2005 19:02:06 +0000 (19:02 +0000)]
- Fix formatting and a bug in NtSetSystemTime.

svn path=/trunk/; revision=20434

14 years agoForgot to commit this file
Alex Ionescu [Thu, 29 Dec 2005 18:56:09 +0000 (18:56 +0000)]
Forgot to commit this file

svn path=/trunk/; revision=20433

14 years ago- Fix some small formatting issues.
Alex Ionescu [Thu, 29 Dec 2005 18:47:14 +0000 (18:47 +0000)]
- Fix some small formatting issues.

svn path=/trunk/; revision=20432

14 years agoFix build
Alex Ionescu [Thu, 29 Dec 2005 18:45:16 +0000 (18:45 +0000)]
Fix build

svn path=/trunk/; revision=20431

14 years agoMove pushlock definition. It is gone from MS headers now.
Alex Ionescu [Thu, 29 Dec 2005 18:45:00 +0000 (18:45 +0000)]
Move pushlock definition. It is gone from MS headers now.

svn path=/trunk/; revision=20430

14 years ago- Formatting fixes
Alex Ionescu [Thu, 29 Dec 2005 18:28:05 +0000 (18:28 +0000)]
- Formatting fixes
- Add SEH to NtRaiseHardError.

svn path=/trunk/; revision=20429

14 years ago- Fix some formatting.
Alex Ionescu [Thu, 29 Dec 2005 18:03:24 +0000 (18:03 +0000)]
- Fix some formatting.

svn path=/trunk/; revision=20428

14 years ago- Fix some small formatting issues.
Alex Ionescu [Thu, 29 Dec 2005 17:57:11 +0000 (17:57 +0000)]
- Fix some small formatting issues.

svn path=/trunk/; revision=20427

14 years agoMove some profile stuff to NDK and fix some bugs in the executive implementation...
Alex Ionescu [Thu, 29 Dec 2005 17:55:31 +0000 (17:55 +0000)]
Move some profile stuff to NDK and fix some bugs in the executive implementation, as well as support segmented profile objects

svn path=/trunk/; revision=20426

14 years agorevert my last change to RtlClearAllBits for win32k do handle all case with NULL...
Magnus Olsen [Thu, 29 Dec 2005 15:14:50 +0000 (15:14 +0000)]
revert my last change to RtlClearAllBits for win32k do handle all case with NULL to it now.

svn path=/trunk/; revision=20425

14 years agoPALETTE_SetMapping do not write the palette color to NULL pointer.
Magnus Olsen [Thu, 29 Dec 2005 14:15:36 +0000 (14:15 +0000)]
PALETTE_SetMapping do not write the palette color to NULL pointer.

svn path=/trunk/; revision=20424

14 years agoNtGdiCreatePalette did not check for NULL pointer when it alloc memory.
Magnus Olsen [Thu, 29 Dec 2005 14:00:12 +0000 (14:00 +0000)]
NtGdiCreatePalette did not check for NULL pointer when it alloc memory.

svn path=/trunk/; revision=20423

14 years agoInitTimerImpl did not check for NULL pointer when it alloc memory.
Magnus Olsen [Thu, 29 Dec 2005 13:53:35 +0000 (13:53 +0000)]
InitTimerImpl did not check for NULL pointer when it alloc memory.

svn path=/trunk/; revision=20422

14 years agosome case from win32k can call to RtlClearAllBits with NULL pointer. and check for...
Magnus Olsen [Thu, 29 Dec 2005 13:43:25 +0000 (13:43 +0000)]
some case from win32k can call to RtlClearAllBits with NULL pointer. and check for null pointer after RtlClearAllBits. This take care of those case for moment.

svn path=/trunk/; revision=20421

14 years agoFix memory leak in NtUserMonitorFromRect when it return in one case.
Magnus Olsen [Thu, 29 Dec 2005 13:13:14 +0000 (13:13 +0000)]
Fix memory leak in NtUserMonitorFromRect when it return in one case.

svn path=/trunk/; revision=20420

14 years agoIntRegisterClass did not check for NULL pointer when it alloc memory.
Magnus Olsen [Thu, 29 Dec 2005 12:40:31 +0000 (12:40 +0000)]
IntRegisterClass did not check for NULL pointer when it alloc memory.

svn path=/trunk/; revision=20419

14 years agoDRIVER_RegisterDriver did not check for NULL pointer when it alloc memory.
Magnus Olsen [Thu, 29 Dec 2005 12:13:02 +0000 (12:13 +0000)]
DRIVER_RegisterDriver did not check for NULL pointer when it alloc memory.

svn path=/trunk/; revision=20418