Commit graph

21569 commits

Author SHA1 Message Date
Alex Ionescu
9170a29ef7 [AUDIT] - State.c is clean, it is merely a collection of trivial ~10 line wrappers around the actual kernel (Ke) functions which do the work.
- Rename suspend.c to state.c (since it also had resume APIs) and add alert APIs from kthread to it too.
- Fix a bug in one of the alert APIs which was probing for a valid pointer even if the caller had given NULL (which is valid if the caller doesn't want the previous state returned).

svn path=/trunk/; revision=23146
2006-07-18 14:34:06 +00:00
Hervé Poussineau
d9f7a999cf Fix some 'unreferenced variable' warnings
svn path=/trunk/; revision=23145
2006-07-18 13:56:00 +00:00
Hervé Poussineau
1a781d5bf4 Fix a warning (unused variable)
svn path=/trunk/; revision=23144
2006-07-18 13:55:22 +00:00
Johannes Anderwald
72301905a6 * check parameters
svn path=/trunk/; revision=23143
2006-07-18 13:45:37 +00:00
Johannes Anderwald
78bc2ae282 * check parameters in CreateAcceleratorTableA/W and DestroyAcceleratorTable
svn path=/trunk/; revision=23142
2006-07-18 13:44:39 +00:00
Magnus Olsen
adbc8e954a fill the DDHALINFO almost to 100% now, we are mising the rops table.
Almost all info that need be send back for frist call is done, 

svn path=/trunk/; revision=23141
2006-07-18 13:23:38 +00:00
Saveliy Tretiakov
a55aa2f49f Revert 21223 (was not good idea...)
svn path=/trunk/; revision=23140
2006-07-18 13:14:12 +00:00
Saveliy Tretiakov
5f77e6ae34 Add Andrew Munger (waxdragon) to credits.
svn path=/trunk/; revision=23139
2006-07-18 12:33:30 +00:00
Saveliy Tretiakov
ba51348c89 Add missing return value checks. Finally fix bug #1526
svn path=/trunk/; revision=23138
2006-07-18 12:19:07 +00:00
Saveliy Tretiakov
6a97df1eec Testapps for NtUserDrawCaption. (I sent the patch to ros-dev for review)
svn path=/trunk/; revision=23137
2006-07-18 11:59:22 +00:00
Hervé Poussineau
f0e080241f Correctly return information to caller
svn path=/trunk/; revision=23136
2006-07-18 11:55:40 +00:00
Saveliy Tretiakov
073eaa0b04 Make guiconsole window movable and respond to minimize and close buttons (regression caused by r22822)
svn path=/trunk/; revision=23135
2006-07-18 11:45:28 +00:00
Magnus Olsen
380d90d8a1 adding NULL pointer check for ppdev, pHalInfo, pdwNumHeaps, pdwNumFourCCCodes
fill in more info for DDHALINFO it is not complete yet.

svn path=/trunk/; revision=23134
2006-07-18 08:54:32 +00:00
Alex Ionescu
6cf95d5263 - Move ps/locale.c to ex/locale.c, since it has nothing to do with Process/Thread management (locale settings are part of the executive).
- Cleanup formatting in the file and add proper credits (Thomas and Eric).
- Create internal Exp* functions for Setting/Getting the user langid, since they need to be called 2, 3 times by other code and thus shared.
- Remove some deprecated code, make the functions themselves initialize the default ID when called for the first time (which should be done by winlogon --> it seems this isn't done yet?).
- Set default locale to 0x409 instead of 0x0.

svn path=/trunk/; revision=23133
2006-07-18 01:58:10 +00:00
Alex Ionescu
26331352ea - Kernel Fun
svn path=/trunk/; revision=23132
2006-07-18 00:51:09 +00:00
Alex Ionescu
a9bcf7b487 [AUDIT] - notify.c contains trivial (3 or 4 lines of code) implementations of adding a pointer to an array, and then looping said array and calling a pointer. Your grandmother could code this.
- Cleanup notify.c and fix the return value of PsSetCreateProcessNotifyRoutine.
- Create ps_x.h for inlined Ps routines and put the internal routines which call the registered callbacks in it.

svn path=/trunk/; revision=23131
2006-07-17 22:18:44 +00:00
Magnus Olsen
65316d9faa start implement DrvGetDirectDrawInfo it is not complete only around 1/3 is done
svn path=/trunk/; revision=23130
2006-07-17 22:14:58 +00:00
Hervé Poussineau
2c59aa9330 - kbdclass/mouclass should be able to return more than one keystroke/mouse move during a IRP_MJ_READ.
- Better cleanup in case of error in ClassAddDevice
- Registering the interface is optional. Don't fail in case of error.

svn path=/trunk/; revision=23129
2006-07-17 22:13:40 +00:00
Johannes Anderwald
de3f42794a * unlink menu object from window object on destroy
svn path=/trunk/; revision=23128
2006-07-17 19:16:30 +00:00
Alex Ionescu
7ddd4aa708 [FORMATTING] - Cleanup win32.c
[AUDIT] - Only function of interest is PsConverToGuiThread, heavily documented at:
http://www.windowsitlibrary.com/Content/356/07/1.html
http://www.osronline.com/lists_archive/ntdev/thread4614.html
http://www.i.u-tokyo.ac.jp/edu/training/ss/lecture/new-documents/Lectures/17-Win32K/Win32K.ppt

svn path=/trunk/; revision=23127
2006-07-17 17:32:58 +00:00
Magnus Olsen
d0ba1357ee more code, from alex patch I got over one year ago, thanks alex for all help and for all code he wrote.
and sorry for the mess at moment in the file. it will be pretty large update to this file, for the patch have been lying on my 
harddisk for some time. 



svn path=/trunk/; revision=23126
2006-07-17 16:27:13 +00:00
Alex Ionescu
e0dbaebab5 - Export Ps(S)GetContextThread
svn path=/trunk/; revision=23125
2006-07-17 14:31:15 +00:00
Alex Ionescu
1ee9504d8d - Factor out NtSet/GetContextThread implementation into PsGet/SetContexThread, new exported kernel APIs available to drivers, and export them.
- If the caller didn't request extended registers, don't probe the full CONTEXT structure.
- Use the proper trap frame in the kernel APC responsible for the context read/write.
- Always go through the APC instead of directly calling the Ke routine.
- Cleanup the code.
[AUDIT] - Mark file as clean. The NT APIs are stubs around the Ps APIs which simply setup an APC and stack context to an APC function that is again, merely a wrapper around the Ke function (which is not in this file).

svn path=/trunk/; revision=23124
2006-07-17 14:30:53 +00:00
Magnus Olsen
e1a8b7eeff patch from LMH1 : Bug#: 1674 : Norwegian translation
svn path=/trunk/; revision=23122
2006-07-17 08:20:16 +00:00
Magnus Olsen
445d240e4b patch from LMH1 : Bug#: 1644 : Norwegian translation
svn path=/trunk/; revision=23121
2006-07-17 08:14:27 +00:00
Magnus Olsen
1cb4e18908 patch from Apal : bug 1429 : greek translation
svn path=/trunk/; revision=23120
2006-07-17 07:53:10 +00:00
Magnus Olsen
7fef6a44ac patch from Apal : bug 1429 : greek translation
svn path=/trunk/; revision=23119
2006-07-17 07:49:42 +00:00
Magnus Olsen
00298de6bc patch from Apal : bug 1429 : greek translation
svn path=/trunk/; revision=23118
2006-07-17 07:38:53 +00:00
Magnus Olsen
5cb7a4f594 patch from Apal : bug 1429 : greek translation
svn path=/trunk/; revision=23117
2006-07-17 07:35:06 +00:00
Magnus Olsen
74bd4ace29 patch from LMH1 : Bug#: 1643 : Norwegian translation
svn path=/trunk/; revision=23116
2006-07-17 07:23:27 +00:00
Magnus Olsen
6924da266a patch from LMH1 : Bug#: 1642 : Norwegian translation
svn path=/trunk/; revision=23115
2006-07-17 07:18:36 +00:00
Alex Ionescu
8db06b0b73 - Fix two small bugs in NtQueryDirectoryObject.
- RDISK Count, Windowstation list enumeration now work on startup.
- Explorer's object viewer now works again.

svn path=/trunk/; revision=23114
2006-07-17 03:49:40 +00:00
Alex Ionescu
0957e22a49 - Finish up implementation of NtQueryDirectoryObject by doing the final conversion.
svn path=/trunk/; revision=23113
2006-07-17 03:24:41 +00:00
Alex Ionescu
96722f7c02 - Fix definition of OBJECT_DIRECTORY_INFORMATION
- Implement most of NtQueryDirectoryObject. It lacks the last step of converting the absolute buffer to a relative one. I have no idea why the old code was re-implemented in a recent commit when I clearly said I would fix this tonight.

svn path=/trunk/; revision=23112
2006-07-17 03:16:15 +00:00
Alex Ionescu
8baa71bb63 - Added another MSVC intrinsic to gcc (BitScanReverse). Thanks to Vampyre.
- Added very basic and skeletal NUMA code when creating a thread and process, currently only does some basic affinity checks and settings.
- Added a table and helper function (KeFindNextRightSetAffinity) for calculating affinity masks and sets.
- Split KeInitailizeThread into KeStartThread and KeInitThread, and modified Ps code to use the calls. Now added a failure case where Init fails, but we don't have to backout the entire effects of a "Start".
- Changes based on WI4 and Windows Internals II.

svn path=/trunk/; revision=23111
2006-07-17 01:40:10 +00:00
Magnus Olsen
7c1513c7eb patch from LMH1 : Bug#: 1641 : Norwegian translation
svn path=/trunk/; revision=23110
2006-07-17 01:15:56 +00:00
Magnus Olsen
2a8df0cc3d patch from LMH1 : Bug#: 1637 : Norwegian translation
svn path=/trunk/; revision=23109
2006-07-17 01:10:56 +00:00
Magnus Olsen
e5278ff085 patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23108
2006-07-17 00:51:49 +00:00
Magnus Olsen
3774cda832 patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23107
2006-07-17 00:49:43 +00:00
Magnus Olsen
d96e5ccf7b patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23106
2006-07-17 00:49:01 +00:00
Magnus Olsen
61883a6c33 patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23105
2006-07-17 00:48:07 +00:00
Magnus Olsen
1743dd24ee patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23104
2006-07-17 00:47:19 +00:00
Magnus Olsen
2258ebff5f patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23103
2006-07-17 00:46:30 +00:00
Magnus Olsen
1ffbaf7d4a patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23102
2006-07-17 00:45:10 +00:00
Magnus Olsen
539e91e037 patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23101
2006-07-17 00:42:34 +00:00
Magnus Olsen
69c0fb3bfc patch from : Fork : Bug#: 1633 : Norwegian translation
svn path=/trunk/; revision=23100
2006-07-17 00:36:20 +00:00
Magnus Olsen
5b8262fc5d patch from : Fork : Bug#: 1633 : Norwegian translation
svn path=/trunk/; revision=23099
2006-07-17 00:33:59 +00:00
Magnus Olsen
243cd7fe80 patch from : Fork : Bug#: 1633 : Norwegian translation
svn path=/trunk/; revision=23098
2006-07-17 00:31:16 +00:00
Magnus Olsen
c1bf3efbbe patch from : Fork : Bug#: 1633 : Norwegian translation
svn path=/trunk/; revision=23097
2006-07-17 00:27:59 +00:00
Magnus Olsen
fddc4b77ba patch from Apal : Bug#: 1630 : Greek Translation files for explorer
svn path=/trunk/; revision=23096
2006-07-17 00:04:45 +00:00