reactos.git
19 years agoold Win9x drivers subsystem id
Emanuele Aliberti [Wed, 23 Mar 2005 21:51:08 +0000 (21:51 +0000)]
old Win9x drivers subsystem id

svn path=/trunk/; revision=14294

19 years agoSUBLANG_NEUTRAL -> SUBLANG_ENGLISH_US because ReactOS searches for english/US if...
Hervé Poussineau [Wed, 23 Mar 2005 21:06:02 +0000 (21:06 +0000)]
SUBLANG_NEUTRAL -> SUBLANG_ENGLISH_US because ReactOS searches for english/US if no more suitable langage is found

svn path=/trunk/; revision=14293

19 years agoFixed the calling convention of the cancel routine.
Hartmut Birr [Wed, 23 Mar 2005 19:05:42 +0000 (19:05 +0000)]
Fixed the calling convention of the cancel routine.

svn path=/trunk/; revision=14292

19 years agorevert my changes
Thomas Bluemel [Wed, 23 Mar 2005 13:26:38 +0000 (13:26 +0000)]
revert my changes

svn path=/trunk/; revision=14275

19 years agoupdated an absolete comment
Emanuele Aliberti [Tue, 22 Mar 2005 23:34:08 +0000 (23:34 +0000)]
updated an absolete comment

svn path=/trunk/; revision=14274

19 years ago- Implement IOCTL_SERIAL_GET_COMMSTATUS, IOCTL_SERIAL_PURGE, IOCTL_SET_QUEUE_SIZE
Hervé Poussineau [Tue, 22 Mar 2005 22:10:44 +0000 (22:10 +0000)]
- Implement IOCTL_SERIAL_GET_COMMSTATUS, IOCTL_SERIAL_PURGE, IOCTL_SET_QUEUE_SIZE
- Add a hack in IOCTL_SERIAL_GET_BAUD_RATE to get it working with mode.exe

svn path=/trunk/; revision=14273

19 years agoChristoph von Wittich <Christoph@ApiViewer.de>
Hervé Poussineau [Tue, 22 Mar 2005 20:16:41 +0000 (20:16 +0000)]
Christoph von Wittich <Christoph@ApiViewer.de>
- Extract hard-coded english sentences from settings.c and put them into resources
- Add corresponding german translations
- Correct some control locations in german and english resource files
- Show only resolutions >= 640x480

svn path=/trunk/; revision=14271

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

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

svn path=/trunk/; revision=14224

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

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

svn path=/trunk/; revision=14215

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

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

svn path=/trunk/; revision=14200

19 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

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

svn path=/trunk/; revision=14198

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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