Gé van Geldorp [Tue, 22 Mar 2005 19:32:17 +0000 (19:32 +0000)]
Forgotten file in r13928
svn path=/trunk/; revision=14270
Thomas Bluemel [Tue, 22 Mar 2005 17:46:44 +0000 (17:46 +0000)]
forgot this file
svn path=/trunk/; revision=14269
Thomas Bluemel [Tue, 22 Mar 2005 17:32:15 +0000 (17:32 +0000)]
fixed a few race conditions during thread/process termination leading to dead-locks
svn path=/trunk/; revision=14268
Thomas Bluemel [Tue, 22 Mar 2005 17:17:02 +0000 (17:17 +0000)]
improve readability by removing obsolete gotos and for loops where appropriate
svn path=/trunk/; revision=14267
Alex Ionescu [Tue, 22 Mar 2005 03:06:03 +0000 (03:06 +0000)]
Fix really really big Mutex/APC bug. Killing GUI Threads from taskmanager should now work flawlessly, and gui apps should work better; the bug had probably tiny important impact in them
svn path=/trunk/; revision=14264
Thomas Bluemel [Tue, 22 Mar 2005 03:05:46 +0000 (03:05 +0000)]
forgot to remove debug messages
svn path=/trunk/; revision=14263
Thomas Bluemel [Tue, 22 Mar 2005 02:35:54 +0000 (02:35 +0000)]
silence obsolete debug message
svn path=/trunk/; revision=14262
Thomas Bluemel [Tue, 22 Mar 2005 02:32:14 +0000 (02:32 +0000)]
fixed thread/process termination bugs that might have caused crashes. due to a apc bug gui threads terminating gui threads doesn't work. Alex is going to take care of it.
svn path=/trunk/; revision=14261
Hervé Poussineau [Mon, 21 Mar 2005 23:37:02 +0000 (23:37 +0000)]
Sylvain Petreolle <spetreolle@yahoo.fr>
- Translate sysdm.cpl into french
- Fix misplaced icons and text boxes
- Add default values into network identification
svn path=/trunk/; revision=14260
Aleksey Bragin [Mon, 21 Mar 2005 22:10:10 +0000 (22:10 +0000)]
Nice "About Explorer" icon, by Mindflyer.
svn path=/trunk/; revision=14259
Hervé Poussineau [Mon, 21 Mar 2005 22:07:06 +0000 (22:07 +0000)]
Change REG_MULTI_SZ entry values to readable form.
svn path=/trunk/; revision=14258
Filip Navara [Mon, 21 Mar 2005 21:33:31 +0000 (21:33 +0000)]
Move the process object dereference from NtTerminateProcess to PspExitProcess (comments inside).
svn path=/trunk/; revision=14257
Filip Navara [Mon, 21 Mar 2005 20:11:52 +0000 (20:11 +0000)]
- Advance the CurrentEntry pointer before terminating thread in PspTerminateProcessThreads.
- Lock the process in NtTerminateProcess to prevent race conditions.
svn path=/trunk/; revision=14256
Gunnar Dalsnes [Mon, 21 Mar 2005 17:13:55 +0000 (17:13 +0000)]
readd incorrectly removed access mapping
svn path=/trunk/; revision=14255
Gunnar Dalsnes [Mon, 21 Mar 2005 17:11:48 +0000 (17:11 +0000)]
CopyAcceleratorTableA: dont access lpAccelDst it its NULL (w3seek)
svn path=/trunk/; revision=14254
Gregor Anich [Mon, 21 Mar 2005 17:09:06 +0000 (17:09 +0000)]
Use a work item only for calling KdSystemDebugControl with code 10 (which is Tab + K, or "Enter Kernel Debugger") because sometimes when the system crashes work items do not work anymore. Thanks to Filip for pointing out the problem.
svn path=/trunk/; revision=14253
Hervé Poussineau [Mon, 21 Mar 2005 12:41:54 +0000 (12:41 +0000)]
Based on work by Saveliy Tretiakov (saveliyt@mail.ru)
Implement IOCTL_SERIAL_GET_PROPERTIES
svn path=/trunk/; revision=14252
Hervé Poussineau [Mon, 21 Mar 2005 10:32:15 +0000 (10:32 +0000)]
- Implement GetCommProperties (Saveliy Tretiakov <saveliyt@mail.ru>)
- Remove a test in GetCommState that shouldn't exist
svn path=/trunk/; revision=14251
Filip Navara [Mon, 21 Mar 2005 08:43:01 +0000 (08:43 +0000)]
Fix a typo in write_function_stubs.
svn path=/trunk/; revision=14250
Filip Navara [Mon, 21 Mar 2005 08:32:22 +0000 (08:32 +0000)]
Specify correct access rights in NtOpenProcess when sending control events.
svn path=/trunk/; revision=14249
Filip Navara [Mon, 21 Mar 2005 01:59:21 +0000 (01:59 +0000)]
Correctly draw the titlebar as active or inactive during the processing of WM_NCACTIVATE message.
svn path=/trunk/; revision=14248
Filip Navara [Mon, 21 Mar 2005 01:34:02 +0000 (01:34 +0000)]
- Cleanup DefWndDoButton function.
- Fix some loops where GetMessage was inadvertently used.
svn path=/trunk/; revision=14247
Filip Navara [Mon, 21 Mar 2005 00:55:16 +0000 (00:55 +0000)]
- Move WINDOWOBJECT_NEED_INTERNALPAINT flag handling to NtGdiBeginPaint.
- Fix IntGetPaintMessage to not return TRUE when no message was returned.
- IntIsWindowDirty shouldn't check for the WINDOWOBJECT_NEED_NCPAINT flag (at least not now).
svn path=/trunk/; revision=14246
Emanuele Aliberti [Sun, 20 Mar 2005 23:01:48 +0000 (23:01 +0000)]
cleaned a wrong comment (copy&paste)
svn path=/trunk/; revision=14245
Emanuele Aliberti [Sun, 20 Mar 2005 22:55:05 +0000 (22:55 +0000)]
SM: init system reading the registry
CSR: register with SM for IMAGE_SUBSYSTEM_WINDOWS_CUI
svn path=/trunk/; revision=14244
Filip Navara [Sun, 20 Mar 2005 21:44:58 +0000 (21:44 +0000)]
Minor correction to my r14237 commit. Forgot to delete "++".
svn path=/trunk/; revision=14239
Filip Navara [Sun, 20 Mar 2005 21:40:00 +0000 (21:40 +0000)]
Reorder the source file lists so we, lousy people, building with DEPENDENCIES=no can also enjoy the blessing of the PnP gods.
svn path=/trunk/; revision=14238
Filip Navara [Sun, 20 Mar 2005 21:35:12 +0000 (21:35 +0000)]
Generate code without L-value casts.
svn path=/trunk/; revision=14237
Thomas Bluemel [Sun, 20 Mar 2005 20:46:16 +0000 (20:46 +0000)]
revert changes from CreateFileA
svn path=/trunk/; revision=14236
Eric Kohl [Sun, 20 Mar 2005 20:43:46 +0000 (20:43 +0000)]
- Add stubs: CM_GetChild, CM_GetChild_Ex, CM_GetParent, CM_GetPaarent_Ex, CM_GetSibling, CM_GetSibling_Ex, CM_Locate_DevNodeA, CM_Locate_DevNodeW, CM_Locate_DevNode_ExA, CM_Locate_DevNode_ExW
- Implement: CM_GetVersion, CM_GetVersion_Ex, CM_Connect_MachineA, CM_Connect_MachineW, CM_Disconnect_Machine.
- Implement RPC server in umpnpmgr.dll to reply to calls to CM_GetVersion/CM_GetVersion_Ex.
svn path=/trunk/; revision=14235
Filip Navara [Sun, 20 Mar 2005 20:28:19 +0000 (20:28 +0000)]
There's no need to call PropertySheet twice.
svn path=/trunk/; revision=14234
Thomas Bluemel [Sun, 20 Mar 2005 20:27:56 +0000 (20:27 +0000)]
added support for template directories (copy ntfs extended attributes) to CreateDirectoryEx()
svn path=/trunk/; revision=14233
Filip Navara [Sun, 20 Mar 2005 19:11:52 +0000 (19:11 +0000)]
Initialize the "toc" field in the pdb_lookup structure in order
to prevent pdb_free_lookup from trying to delete invalid pointers.
svn path=/trunk/; revision=14232
Thomas Bluemel [Sun, 20 Mar 2005 18:55:54 +0000 (18:55 +0000)]
- added support for template files (copy ntfs extended attributes) to CreateFile()
- mask out file flags from dwFlagsAndAttributes before passing them to NtCreateFile as file attributes
svn path=/trunk/; revision=14231
Filip Navara [Sun, 20 Mar 2005 18:40:57 +0000 (18:40 +0000)]
Don't use uninitialized variable in _SHExpandEnvironmentStrings.
svn path=/trunk/; revision=14230
Hervé Poussineau [Sun, 20 Mar 2005 18:30:09 +0000 (18:30 +0000)]
Based on work by Mark Junker <mjscod@gmx.de>
- Detect UART type
- Clear transmit/receive FIFO if applicable
svn path=/trunk/; revision=14229
Magnus Olsen [Sun, 20 Mar 2005 18:20:59 +0000 (18:20 +0000)]
LPUNKNOWN pUnkOuter did check it was NULL and return
forget it should be not equal with NULL it return
thx to mifritscher did the first test to find my mistake
svn path=/trunk/; revision=14228
Gunnar Dalsnes [Sun, 20 Mar 2005 17:39:11 +0000 (17:39 +0000)]
GetBinaryTypeA, CopyFileExA, CreateFileA, DeleteFileA, MoveFileWithProgressA: Use common A2W conv. routines
svn path=/trunk/; revision=14227
Gunnar Dalsnes [Sun, 20 Mar 2005 17:26:58 +0000 (17:26 +0000)]
removed faulty FilenameA2U (returned ptr to stack var)
remove faulty init of StaticUnicodeString (now done in ntdll)
svn path=/trunk/; revision=14226
Magnus Olsen [Sun, 20 Mar 2005 17:24:11 +0000 (17:24 +0000)]
start add hardware interface to hal
we now map the hal to directdraw
follow api are implement in the ddraw for hal
but all hal api are not implement in the kernel
if you got louky it maby working with nvida driver now.
untested yet.
svn path=/trunk/; revision=14225
Gunnar Dalsnes [Sun, 20 Mar 2005 17:22:24 +0000 (17:22 +0000)]
init StaticUnicodeString
svn path=/trunk/; revision=14224
Thomas Bluemel [Sun, 20 Mar 2005 15:54:22 +0000 (15:54 +0000)]
- fixed access rights and shared access checks in IoSetShareAccess()
- remove obsolete checks in IoCheckShareAccess() and IoUpdateShareAccess() to simplify them
svn path=/trunk/; revision=14223
Thomas Bluemel [Sun, 20 Mar 2005 13:53:54 +0000 (13:53 +0000)]
- only mask out the generic rights flags in RtlMapGenericMask()
- only deny access when requested rights can't be granted in IoCheckDesiredAccess()
svn path=/trunk/; revision=14222
Magnus Olsen [Sun, 20 Mar 2005 13:32:27 +0000 (13:32 +0000)]
this waring break the head for me
pnp.c:141: warning: 'Affinity' might be used uninitialized in this function
{standard input}: Assembler messages:
initialized it with Affinity = 0;
svn path=/trunk/; revision=14221
Filip Navara [Sun, 20 Mar 2005 13:10:57 +0000 (13:10 +0000)]
Fix a cut & paste error.
svn path=/trunk/; revision=14220
Filip Navara [Sun, 20 Mar 2005 13:10:11 +0000 (13:10 +0000)]
Allow the lpTemplateDirectory parameter to be NULL in CreateDirectoryExA.
svn path=/trunk/; revision=14219
Eric Kohl [Sun, 20 Mar 2005 13:06:11 +0000 (13:06 +0000)]
Improve error messages.
Don't start counting the type_offset for each new fuction. It is a global offset.
Use only basic types in type- and proc-strings (e.g. unsigned long -> long).
svn path=/trunk/; revision=14218
Filip Navara [Sun, 20 Mar 2005 12:30:06 +0000 (12:30 +0000)]
- Rename bitblt.c to more generic bitmap.c.
- Normalize BITMAPINFO structure in CreateDIBSection before sending it to win32k.
svn path=/trunk/; revision=14217
Hervé Poussineau [Sun, 20 Mar 2005 12:15:51 +0000 (12:15 +0000)]
Add legacy detection of COM3 and COM4
Be ready for PnP serial ports
Don't hardcode base addresses and irq twice
svn path=/trunk/; revision=14216
Hervé Poussineau [Sun, 20 Mar 2005 12:15:33 +0000 (12:15 +0000)]
Implement IoReportDetectedDevice
svn path=/trunk/; revision=14215
Filip Navara [Sun, 20 Mar 2005 12:04:30 +0000 (12:04 +0000)]
Fix nasty condition when we were subtracting AlignedAddress (which happened to be aligned to 0x80000000) from HighestAddress (which is MmSystemRangeStart - 1 == 0x7fffffff) and then using it for length comparsion.
svn path=/trunk/; revision=14214
Filip Navara [Sun, 20 Mar 2005 11:35:39 +0000 (11:35 +0000)]
Fix the AdjustTokenPrivileges call once more.
svn path=/trunk/; revision=14213
Thomas Bluemel [Sun, 20 Mar 2005 11:22:50 +0000 (11:22 +0000)]
fixed AdjustTokenPrivileges() call
svn path=/trunk/; revision=14212
Magnus Olsen [Sun, 20 Mar 2005 09:58:10 +0000 (09:58 +0000)]
Complete the dummy of HAL.
CreateDirectDraw and CreateDirectDrawEx
will return a pointer of ddraw object.
only hardware acclration support are being add.
noting real working yet.
svn path=/trunk/; revision=14211
Hartmut Birr [Sun, 20 Mar 2005 09:46:13 +0000 (09:46 +0000)]
Fixed the required access rights for formating a disk.
svn path=/trunk/; revision=14210
Filip Navara [Sun, 20 Mar 2005 01:58:54 +0000 (01:58 +0000)]
Minor correction to NtAdjustPrivilegesToken to keep it from returning total junk.
svn path=/trunk/; revision=14209
Filip Navara [Sun, 20 Mar 2005 00:53:24 +0000 (00:53 +0000)]
Revert the last change to device stack attaching.
svn path=/trunk/; revision=14208
Filip Navara [Sun, 20 Mar 2005 00:33:36 +0000 (00:33 +0000)]
Attach the PDOs to device stack and report device unique IDs if available.
svn path=/trunk/; revision=14207
Magnus Olsen [Sat, 19 Mar 2005 23:52:04 +0000 (23:52 +0000)]
did forget these two file
svn path=/trunk/; revision=14206
Magnus Olsen [Sat, 19 Mar 2005 23:47:52 +0000 (23:47 +0000)]
update directx d3d and draw header to Wine-
20050310
so the work on ddraw dll can continue.
svn path=/trunk/; revision=14205
Filip Navara [Sat, 19 Mar 2005 22:50:11 +0000 (22:50 +0000)]
Forgot to add this file in revision 14203.
svn path=/trunk/; revision=14204
Filip Navara [Sat, 19 Mar 2005 22:15:02 +0000 (22:15 +0000)]
- Replace the ColorMap pointer in BITMAPOBJ with palette handle and
correctly free it when the bitmap is about to be destroyed. Also
get rid of some palette leaks when DIBs were selected into device
context.
- Refine GDI32 -> Win32k interface for creating and managing brushes.
Remove NtGdiCreateBrushIndirect, NtGdiCreateDIBPatternBrush,
NtGdiCreateDIBPatternBrushPt and NtGdiFixBrushOrgEx syscalls and
add NtGdiCreateDIBBrush.
- Implement basic support for DIB pattern brushes.
- Add user mode helper routine for "normalizing" BITMAPINFO structure.
- Add definition for BITMAPV5HEADER.
svn path=/trunk/; revision=14203
Filip Navara [Sat, 19 Mar 2005 21:48:33 +0000 (21:48 +0000)]
Specify correct buffer size in GetPrivateProfileStringW calls.
svn path=/trunk/; revision=14202
Magnus Olsen [Sat, 19 Mar 2005 20:39:25 +0000 (20:39 +0000)]
add more code.
start create a protype of hal, that can be use also for
software emulation mode.
svn path=/trunk/; revision=14201
Alex Ionescu [Sat, 19 Mar 2005 20:29:19 +0000 (20:29 +0000)]
Oops
svn path=/trunk/; revision=14200
Alex Ionescu [Sat, 19 Mar 2005 20:26:46 +0000 (20:26 +0000)]
Correct NtW32call to call correct kernel function, add placeholder for SEH, implement KeUserModeCallback (right now a copy of the old code). Part I of an incomplete W32Callback rewrite, just to set up the groundwork to make testing easier. Might look ugly/messy now but it'll be clean soon
svn path=/trunk/; revision=14199
Filip Navara [Sat, 19 Mar 2005 19:52:36 +0000 (19:52 +0000)]
Fix indentation.
svn path=/trunk/; revision=14198
Thomas Bluemel [Sat, 19 Mar 2005 19:13:01 +0000 (19:13 +0000)]
- correctly deny access to handles when rights requested can't be granted
- map generic rights correctly
- various fixes where handles with inappropriate access rights were created
svn path=/trunk/; revision=14197
Emanuele Aliberti [Sat, 19 Mar 2005 18:31:14 +0000 (18:31 +0000)]
winsta.dll raw stubs
svn path=/trunk/; revision=14196
Magnus Olsen [Sat, 19 Mar 2005 18:28:01 +0000 (18:28 +0000)]
geting update version of ddraw.h working with gdi32.h
thanks filip.
svn path=/trunk/; revision=14195
Magnus Olsen [Sat, 19 Mar 2005 18:26:45 +0000 (18:26 +0000)]
update the ddraw.h header ageinst Wine-
20050310
so the work on ddraw dll can continue.
this header file have been modify to geting reactos compile and add one struct and fix some protypes that was wrong.
svn path=/trunk/; revision=14194
Filip Navara [Sat, 19 Mar 2005 17:22:02 +0000 (17:22 +0000)]
Export the HOST variable even on Windows.
svn path=/trunk/; revision=14193
Aleksey Bragin [Sat, 19 Mar 2005 17:11:15 +0000 (17:11 +0000)]
Fix a very small typo - "VfatFormat() done" to "VfatxFormat() done"
svn path=/trunk/; revision=14192
Magnus Olsen [Sat, 19 Mar 2005 10:22:52 +0000 (10:22 +0000)]
lite more code.
nothing works yet.
add some check see if the parama are right.
svn path=/trunk/; revision=14191
Martin Fuchs [Sat, 19 Mar 2005 09:37:46 +0000 (09:37 +0000)]
- unregister task manager window at termination
svn path=/trunk/; revision=14190
Martin Fuchs [Sat, 19 Mar 2005 09:37:24 +0000 (09:37 +0000)]
- remove old experimental shell hook code
svn path=/trunk/; revision=14189
Hartmut Birr [Sat, 19 Mar 2005 09:18:58 +0000 (09:18 +0000)]
Added two missing dereferencing calls in ObReferenceObjectByHandle.
Checked also for NtCurrentThread in NtDuplicateObject.
Used the return value from InterlockedIncrement to check for a correct handle count.
svn path=/trunk/; revision=14188
Hartmut Birr [Sat, 19 Mar 2005 09:14:21 +0000 (09:14 +0000)]
Added two missing dereferencing calls in NtTerminateThread.
svn path=/trunk/; revision=14187
Filip Navara [Sat, 19 Mar 2005 02:18:49 +0000 (02:18 +0000)]
- Fix acpi_os_get_thread_id to return 1-based thread ids (instead of zero-based ones).
- Zero the owner_id field while initializing acpi_gbl_acpi_mutex_info.
svn path=/trunk/; revision=14186
Royce Mitchell III [Sat, 19 Mar 2005 01:37:47 +0000 (01:37 +0000)]
fix warning that is really a bug - from looking at the code, wDevID, is a UINT, not a UINT_16
svn path=/trunk/; revision=14185
Alex Ionescu [Fri, 18 Mar 2005 23:26:44 +0000 (23:26 +0000)]
Implement timer expiring too fast for KeDelayExecutionThread. Dedicated to filip
svn path=/trunk/; revision=14184
Martin Fuchs [Fri, 18 Mar 2005 23:00:54 +0000 (23:00 +0000)]
register ourselved as task manager window to make the RegisterShellHookWindow() call working [thanks to Filip :)]
svn path=/trunk/; revision=14183
Martin Fuchs [Fri, 18 Mar 2005 20:34:01 +0000 (20:34 +0000)]
cleanup of latest RegisterShellHookWindow() changes
svn path=/trunk/; revision=14182
Gunnar Dalsnes [Fri, 18 Mar 2005 19:36:36 +0000 (19:36 +0000)]
-remove incorrect handle count check when deleting files
-reformat code
svn path=/trunk/; revision=14181
Hervé Poussineau [Fri, 18 Mar 2005 19:00:48 +0000 (19:00 +0000)]
Fix a warning with some compilers about non-initialized variable.
This can't really happen in real execution, but let's be the compiler happy ;)
svn path=/trunk/; revision=14180
Hervé Poussineau [Fri, 18 Mar 2005 17:45:59 +0000 (17:45 +0000)]
Don't double-define STATUS_ARRAY_BOUNDS_EXCEEDED
svn path=/trunk/; revision=14179
Hervé Poussineau [Fri, 18 Mar 2005 16:51:39 +0000 (16:51 +0000)]
Implement partly IoReportResourceForDetection() and IoReportDetectedDevice(), just enough to support serial driver
svn path=/trunk/; revision=14178
Hervé Poussineau [Fri, 18 Mar 2005 16:01:35 +0000 (16:01 +0000)]
Implement legacy detection (it should be able to detect the first two serial ports)
Implement reading by polling (expect lots of bugs!)
Use receive and send queues
Better handling of some IRPs
Lots of small bugs fixes
svn path=/trunk/; revision=14177
Thomas Bluemel [Fri, 18 Mar 2005 13:52:21 +0000 (13:52 +0000)]
can't receive the cid from a KTHREAD structure, fixes compiling with debugging enabled
svn path=/trunk/; revision=14176
Alex Ionescu [Fri, 18 Mar 2005 07:19:30 +0000 (07:19 +0000)]
Update ETHREAD fields and termination port stucture to XP, and do necessary code changes. This makes reaping even faster. It's 2:30am, i hope there's no bugs ;-)
svn path=/trunk/; revision=14175
Alex Ionescu [Fri, 18 Mar 2005 05:53:04 +0000 (05:53 +0000)]
Thread/Process Termination/Repeaing Rewrite + Fixes
---------------------------------------------------
- ps/cid.c:
* Moved CID Lookup functions here
- ps/security.c:
* Moved all security related functions here. Makes other files neater and security functions
easier to locate.
- ps/thread.c:
* Moved most of the Thread Scheduling/Dispatching code that belongs in the Kernel to /ke and
renamed functions from Ps to Ki.
* Implemented PsIsSystemThread.
* Removed Reaper Thread Init (now obsolete).
* Renamed PiDeleteThread to PspDeleteThread.
* Moved Thread State functions from tinfo.c to here.
- ps/process.c:
* Removed Query/Set Process functions and moved to ps/query.c
* Renamed PiDeletePRocess to PspDeleteProcess
* Removed obsoleted Process Termination functions, moved persistent one to kill.c
- ps/create.c:
* Moved the security APIs to security.c
* Correctly implemented PsCreateSystemThread to actually create system threads.
- ps/suspend.c
* Rewrote Nt Executive functions to use Kernel functions.
* Moved Ps* Routines into ke/kthread.c and fixed them. The implementation was wrong in
some aspects, especially the issue of the APC looping around the KeWaitXxx call and the
fact that the routines excluded/ignored the FreezeCount.
- ps/debug.c
* Fixed completely broken implementation of Get/SetThreadContext. The old version crashed
when called and did not work at all. Suspend Regression test now works.
* Moved Context<->TrapFrame functions to ke/i386/
* Combined Set/GetThreadContext APCs into a single one, and used special context structure.
- ps/query.c:
* Moved Thread/Process Query/Set Routines here.
- ps/tinfo.c:
* Removed.
- ps/kill.c
* Removed complicated Process Termination semantics and useless Attach/Detach in favor for
a much more lightweight function which performs the same tasks as before and actually works.
TaskManager can now terminate foreign processes.
* Rewrote Thread Reaping to use the HyperCritical Work Queue instead of manually controlled
thread. This results in much less code as well as an increase in speed and less micro
management. The reaper is PspReapRoutine. Closing CMD.EXE now works properly without
requiring masks that were added as hacks to allow it.
* Renamed PiTerminateProcessThreads to PspTerminateProcessThreads. Fixed it to work with new
termination code.
* Added PspDeleteProcess to handle Process Object deletion. Kills the CID Handle here as done
by Hartmut.
* Added PspDeletethread here.
* Renamed and rewrote PsTerminateCurrentThread to PspExitThread. Used NT Implementation out-
lined in Windows Internals, Chapter 13. Uses less locks, a more concise order of actions,
actually parses the Termination Ports, handles Dbgk notification. Timers are now rundown,
and Mutex rundown is in a dedicated Kernel function. Final termination handled by KeTerminate
Thread as documented.
* Renamed PsTerminateOtherThread to PspTerminateThreadByPointer and modified implementation to
be compatible with the changes above.
* Renamed and regrouped Process Termination into PspExitProcess. Also implemented as described
above, and moved each subsystem specific termination helper into its own subsytem.
* Improved NtTerminateProcess and added more debugging messages.
* Improved NtTerminateThread and added check against System Thread and made it compatible with
new implementation.
* Corrected PsTerminateSystemThread now that we support System Threads.
* Corrected NtRegisterThreadTerminatePort to use same structure name as on windows for the
port, and added tag to pool allocation (documented in pooltag.txt)
include/internal/*.h:
* Defined Scheduler Functions and misc new functions or renamed functions.
ke/apc.c:
* Fixed critical bug where APCs were not delivered at all if the thread wastion and cancels any timers that are associated
to a thread, as well as their APCs and DPCs.
REGRESSIONS FOUND: NONE
BUGS/REGRESSIOSN FIXED:
* Thread/Get Set Context now works.
* Suspend Regression test now works.
* Task manager can now kill foreign processes, even hung ones (like it should).
* ExitProcess/closing cmd.exe with the 'x' button now works correctly without hacks.
KNOWN ISSUES: I left a bit of a mess in the headers and some stuff still needs to be moved into the right
places. I just wanted to have this first part ready first, so that it won't get too big.
svn path=/trunk/; revision=14174
Art Yerkes [Fri, 18 Mar 2005 03:26:12 +0000 (03:26 +0000)]
Added simple dword OID query to lan.
Correct oper status, admin status and type settings in iinfo.
Small fixes in lan.c for adapter name.
svn path=/trunk/; revision=14173
Art Yerkes [Fri, 18 Mar 2005 02:56:29 +0000 (02:56 +0000)]
Don't let sign extension mess us up here.
svn path=/trunk/; revision=14172
Filip Navara [Fri, 18 Mar 2005 02:10:50 +0000 (02:10 +0000)]
- Correctly initialize the standard handles for console-less applications.
- Simplify _isatty and fix it to not set the errno for "invalid" handles.
svn path=/trunk/; revision=14171
Steven Edwards [Fri, 18 Mar 2005 00:56:34 +0000 (00:56 +0000)]
Lined up Buttons.
Removed my broken attempt at understaind comboboxes.
Cleaned up WM_INITDIALOG.
svn path=/trunk/; revision=14170
Filip Navara [Thu, 17 Mar 2005 23:52:28 +0000 (23:52 +0000)]
It's not exactly wise to call GetFileTime and CloseHandle with invalid handle, so don't do it.
svn path=/trunk/; revision=14169
Filip Navara [Thu, 17 Mar 2005 23:16:12 +0000 (23:16 +0000)]
Don't try to release mutex with NULL handle. Also prevent releasing the same mutex twice.
svn path=/trunk/; revision=14168
Filip Navara [Thu, 17 Mar 2005 22:40:19 +0000 (22:40 +0000)]
Don't try to duplicate NULL handles.
svn path=/trunk/; revision=14167
Filip Navara [Thu, 17 Mar 2005 22:00:19 +0000 (22:00 +0000)]
(GDIOBJ_SetOwnership): Don't try to decrease the GDI object counter for global handles since they're not associated with process.
svn path=/trunk/; revision=14166
Magnus Olsen [Thu, 17 Mar 2005 20:15:44 +0000 (20:15 +0000)]
more stuff for ddraw.dll not tested yet.
svn path=/trunk/; revision=14165