reactos.git
18 years agoForgotten file in r13928
Gé van Geldorp [Tue, 22 Mar 2005 19:32:17 +0000 (19:32 +0000)]
Forgotten file in r13928

svn path=/trunk/; revision=14270

18 years agoforgot this file
Thomas Bluemel [Tue, 22 Mar 2005 17:46:44 +0000 (17:46 +0000)]
forgot this file

svn path=/trunk/; revision=14269

18 years agofixed a few race conditions during thread/process termination leading to dead-locks
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

18 years agoimprove readability by removing obsolete gotos and for loops where appropriate
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

18 years agoFix really really big Mutex/APC bug. Killing GUI Threads from taskmanager should...
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

18 years agoforgot to remove debug messages
Thomas Bluemel [Tue, 22 Mar 2005 03:05:46 +0000 (03:05 +0000)]
forgot to remove debug messages

svn path=/trunk/; revision=14263

18 years agosilence obsolete debug message
Thomas Bluemel [Tue, 22 Mar 2005 02:35:54 +0000 (02:35 +0000)]
silence obsolete debug message

svn path=/trunk/; revision=14262

18 years agofixed thread/process termination bugs that might have caused crashes. due to a apc...
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

18 years agoSylvain Petreolle <spetreolle@yahoo.fr>
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

18 years agoNice "About Explorer" icon, by Mindflyer.
Aleksey Bragin [Mon, 21 Mar 2005 22:10:10 +0000 (22:10 +0000)]
Nice "About Explorer" icon, by Mindflyer.

svn path=/trunk/; revision=14259

18 years agoChange REG_MULTI_SZ entry values to readable form.
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

18 years agoMove the process object dereference from NtTerminateProcess to PspExitProcess (commen...
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

18 years ago- Advance the CurrentEntry pointer before terminating thread in PspTerminateProcessTh...
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

18 years agoreadd incorrectly removed access mapping
Gunnar Dalsnes [Mon, 21 Mar 2005 17:13:55 +0000 (17:13 +0000)]
readd incorrectly removed access mapping

svn path=/trunk/; revision=14255

18 years agoCopyAcceleratorTableA: dont access lpAccelDst it its NULL (w3seek)
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

18 years agoUse a work item only for calling KdSystemDebugControl with code 10 (which is Tab...
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

18 years agoBased on work by Saveliy Tretiakov (saveliyt@mail.ru)
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

18 years ago- Implement GetCommProperties (Saveliy Tretiakov <saveliyt@mail.ru>)
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

18 years agoFix a typo in write_function_stubs.
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

18 years agoSpecify correct access rights in NtOpenProcess when sending control events.
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

18 years agoCorrectly draw the titlebar as active or inactive during the processing of WM_NCACTIV...
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

18 years ago- Cleanup DefWndDoButton function.
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

18 years ago- Move WINDOWOBJECT_NEED_INTERNALPAINT flag handling to NtGdiBeginPaint.
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

18 years agocleaned a wrong comment (copy&paste)
Emanuele Aliberti [Sun, 20 Mar 2005 23:01:48 +0000 (23:01 +0000)]
cleaned a wrong comment (copy&paste)

svn path=/trunk/; revision=14245

18 years agoSM: init system reading the registry
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

18 years agoMinor correction to my r14237 commit. Forgot to delete "++".
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

18 years agoReorder the source file lists so we, lousy people, building with DEPENDENCIES=no...
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

18 years agoGenerate code without L-value casts.
Filip Navara [Sun, 20 Mar 2005 21:35:12 +0000 (21:35 +0000)]
Generate code without L-value casts.

svn path=/trunk/; revision=14237

18 years agorevert changes from CreateFileA
Thomas Bluemel [Sun, 20 Mar 2005 20:46:16 +0000 (20:46 +0000)]
revert changes from CreateFileA

svn path=/trunk/; revision=14236

18 years ago- Add stubs: CM_GetChild, CM_GetChild_Ex, CM_GetParent, CM_GetPaarent_Ex, CM_GetSibli...
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

18 years agoThere's no need to call PropertySheet twice.
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

18 years agoadded support for template directories (copy ntfs extended attributes) to CreateDirec...
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

18 years agoInitialize the "toc" field in the pdb_lookup structure in order
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

18 years ago- added support for template files (copy ntfs extended attributes) to CreateFile()
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

18 years agoDon't use uninitialized variable in _SHExpandEnvironmentStrings.
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

18 years agoBased on work by Mark Junker <mjscod@gmx.de>
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

18 years ago LPUNKNOWN pUnkOuter did check it was NULL and return
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

18 years agoGetBinaryTypeA, CopyFileExA, CreateFileA, DeleteFileA, MoveFileWithProgressA: Use...
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

18 years agoremoved faulty FilenameA2U (returned ptr to stack var)
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

18 years agostart add hardware interface to hal
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

18 years agoinit StaticUnicodeString
Gunnar Dalsnes [Sun, 20 Mar 2005 17:22:24 +0000 (17:22 +0000)]
init StaticUnicodeString

svn path=/trunk/; revision=14224

18 years ago- fixed access rights and shared access checks in IoSetShareAccess()
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

18 years ago- only mask out the generic rights flags in RtlMapGenericMask()
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

18 years agothis waring break the head for me
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

18 years agoFix a cut & paste error.
Filip Navara [Sun, 20 Mar 2005 13:10:57 +0000 (13:10 +0000)]
Fix a cut & paste error.

svn path=/trunk/; revision=14220

18 years agoAllow the lpTemplateDirectory parameter to be NULL in CreateDirectoryExA.
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

18 years agoImprove error messages.
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

18 years ago- Rename bitblt.c to more generic bitmap.c.
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

18 years agoAdd legacy detection of COM3 and COM4
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

18 years agoImplement IoReportDetectedDevice
Hervé Poussineau [Sun, 20 Mar 2005 12:15:33 +0000 (12:15 +0000)]
Implement IoReportDetectedDevice

svn path=/trunk/; revision=14215

18 years agoFix nasty condition when we were subtracting AlignedAddress (which happened to be...
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

18 years agoFix the AdjustTokenPrivileges call once more.
Filip Navara [Sun, 20 Mar 2005 11:35:39 +0000 (11:35 +0000)]
Fix the AdjustTokenPrivileges call once more.

svn path=/trunk/; revision=14213

18 years agofixed AdjustTokenPrivileges() call
Thomas Bluemel [Sun, 20 Mar 2005 11:22:50 +0000 (11:22 +0000)]
fixed AdjustTokenPrivileges() call

svn path=/trunk/; revision=14212

18 years agoComplete the dummy of HAL.
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

18 years agoFixed the required access rights for formating a disk.
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

18 years agoMinor correction to NtAdjustPrivilegesToken to keep it from returning total junk.
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

18 years agoRevert the last change to device stack attaching.
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

18 years agoAttach the PDOs to device stack and report device unique IDs if available.
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

18 years agodid forget these two file
Magnus Olsen [Sat, 19 Mar 2005 23:52:04 +0000 (23:52 +0000)]
did forget these two file

svn path=/trunk/; revision=14206

18 years agoupdate directx d3d and draw header to Wine-20050310
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

18 years agoForgot to add this file in revision 14203.
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

18 years ago- Replace the ColorMap pointer in BITMAPOBJ with palette handle and
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

18 years agoSpecify correct buffer size in GetPrivateProfileStringW calls.
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

18 years agoadd more code.
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

18 years agoOops
Alex Ionescu [Sat, 19 Mar 2005 20:29:19 +0000 (20:29 +0000)]
Oops

svn path=/trunk/; revision=14200

18 years agoCorrect NtW32call to call correct kernel function, add placeholder for SEH, implement...
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

18 years agoFix indentation.
Filip Navara [Sat, 19 Mar 2005 19:52:36 +0000 (19:52 +0000)]
Fix indentation.

svn path=/trunk/; revision=14198

18 years ago- correctly deny access to handles when rights requested can't be granted
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

18 years agowinsta.dll raw stubs
Emanuele Aliberti [Sat, 19 Mar 2005 18:31:14 +0000 (18:31 +0000)]
winsta.dll raw stubs

svn path=/trunk/; revision=14196

18 years agogeting update version of ddraw.h working with gdi32.h
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

18 years agoupdate the ddraw.h header ageinst Wine-20050310
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

18 years agoExport the HOST variable even on Windows.
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

18 years agoFix a very small typo - "VfatFormat() done" to "VfatxFormat() done"
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

18 years agolite more code.
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

18 years ago- unregister task manager window at termination
Martin Fuchs [Sat, 19 Mar 2005 09:37:46 +0000 (09:37 +0000)]
- unregister task manager window at termination

svn path=/trunk/; revision=14190

18 years ago- remove old experimental shell hook code
Martin Fuchs [Sat, 19 Mar 2005 09:37:24 +0000 (09:37 +0000)]
- remove old experimental shell hook code

svn path=/trunk/; revision=14189

18 years agoAdded two missing dereferencing calls in ObReferenceObjectByHandle.
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

18 years agoAdded two missing dereferencing calls in NtTerminateThread.
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

18 years ago- Fix acpi_os_get_thread_id to return 1-based thread ids (instead of zero-based ones).
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

18 years agofix warning that is really a bug - from looking at the code, wDevID, is a UINT, not...
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

18 years agoImplement timer expiring too fast for KeDelayExecutionThread. Dedicated to filip
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

18 years agoregister ourselved as task manager window to make the RegisterShellHookWindow() call...
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

18 years agocleanup of latest RegisterShellHookWindow() changes
Martin Fuchs [Fri, 18 Mar 2005 20:34:01 +0000 (20:34 +0000)]
cleanup of latest RegisterShellHookWindow() changes

svn path=/trunk/; revision=14182

18 years ago-remove incorrect handle count check when deleting files
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

18 years agoFix a warning with some compilers about non-initialized variable.
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

18 years agoDon't double-define STATUS_ARRAY_BOUNDS_EXCEEDED
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

18 years agoImplement partly IoReportResourceForDetection() and IoReportDetectedDevice(), just...
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

18 years agoImplement legacy detection (it should be able to detect the first two serial ports)
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

18 years agocan't receive the cid from a KTHREAD structure, fixes compiling with debugging enabled
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

18 years agoUpdate ETHREAD fields and termination port stucture to XP, and do necessary code...
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

18 years agoThread/Process Termination/Repeaing Rewrite + Fixes
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

18 years agoAdded simple dword OID query to lan.
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

18 years agoDon't let sign extension mess us up here.
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

18 years ago- Correctly initialize the standard handles for console-less applications.
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

18 years agoLined up Buttons.
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

18 years agoIt's not exactly wise to call GetFileTime and CloseHandle with invalid handle, so...
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

18 years agoDon't try to release mutex with NULL handle. Also prevent releasing the same mutex...
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

18 years agoDon't try to duplicate NULL handles.
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

18 years ago(GDIOBJ_SetOwnership): Don't try to decrease the GDI object counter for global handle...
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

18 years agomore stuff for ddraw.dll not tested yet.
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