reactos.git
17 years ago- More cleanup of wait.c
Alex Ionescu [Thu, 13 Jul 2006 22:19:57 +0000 (22:19 +0000)]
- More cleanup of wait.c
- Set the right wait status in KiAbortWaitThread.
- Don't ignore priority boost (increments) when aborting waits.
- When satisfying a mutant, insert if into the the head of the back-link, not the forward-link.

svn path=/trunk/; revision=23051

17 years ago- Cleanup + formatting fixes for wait.c
Alex Ionescu [Thu, 13 Jul 2006 21:48:45 +0000 (21:48 +0000)]
- Cleanup + formatting fixes for wait.c
- Move some inlined functions from ke.h to ke_x.h
- Add checks for special apc disabled (guarded regions) in wait code.

svn path=/trunk/; revision=23050

17 years agoImplement CM_Free_Log_Conf[_Ex] and add PNP_FreeLogConf stub.
Eric Kohl [Thu, 13 Jul 2006 21:28:01 +0000 (21:28 +0000)]
Implement CM_Free_Log_Conf[_Ex] and add PNP_FreeLogConf stub.

svn path=/trunk/; revision=23049

17 years ago1. Fixing so the screensaver only start one time when ReactOS starting.
Magnus Olsen [Thu, 13 Jul 2006 21:21:30 +0000 (21:21 +0000)]
1. Fixing so the screensaver only start one time when ReactOS starting.
2. Fixing so the screensaver do not restart it self.
Alesky here is the bugfix I promies, it will not longer see alot start screen msg.
One bug remains before the reg key will be adding as defualt for matrix.scr so it
can run from livecd as well

svn path=/trunk/; revision=23047

17 years agoAdded a check for a non-null WndProc into IntCallWndProcA/W. Instead of bugchecking...
Aleksey Bragin [Thu, 13 Jul 2006 20:47:59 +0000 (20:47 +0000)]
Added a check for a non-null WndProc into IntCallWndProcA/W. Instead of bugchecking, it shows a DPRINT1 now to inform about a bug.
As a side effect, mIRC now works in ReactOS.

svn path=/trunk/; revision=23046

17 years ago[FORMATTING] - Cleanup timer.c
Alex Ionescu [Thu, 13 Jul 2006 19:43:10 +0000 (19:43 +0000)]
[FORMATTING] - Cleanup timer.c

svn path=/trunk/; revision=23045

17 years ago- Don't make the timer signaled in KeSetTimerEx if it already expired.
Alex Ionescu [Thu, 13 Jul 2006 19:04:39 +0000 (19:04 +0000)]
- Don't make the timer signaled in KeSetTimerEx if it already expired.
- Only call KiWaitTest on timers if they have waiters.
- Fix list looping in KiExpireTimers.

svn path=/trunk/; revision=23044

17 years ago1. Remove guithreadinfo from the make file. for it not longer builds.
Magnus Olsen [Thu, 13 Jul 2006 19:00:05 +0000 (19:00 +0000)]
1. Remove guithreadinfo from the make file. for it not longer builds.

2. Adding a test apps for starting directdraw hal interface, that I have keep within few ros devs, and one wine devs,
   it also being using in 2-3 diffent company same code. I known which company that using it with my written premitions
   I give them on icq or email. But u need a document how to use kernel, d3d, mocomp interface,and some more how to access
   them. I only show how to start dx hal the interface and using so call IDrawDraw interface. in this apps.

svn path=/trunk/; revision=23043

17 years agopatch from w3seek :Bug #: 1667 : NTOSKRNL: Fix GCC4 warning and return correct...
Magnus Olsen [Thu, 13 Jul 2006 12:30:56 +0000 (12:30 +0000)]
patch from w3seek :Bug #:  1667  : NTOSKRNL: Fix GCC4 warning and return correct error code in NtSignalAndWaitForSingleObject

svn path=/trunk/; revision=23041

17 years agoFree the buffer as MSDN says
Aleksey Bragin [Thu, 13 Jul 2006 07:17:13 +0000 (07:17 +0000)]
Free the buffer as MSDN says

svn path=/trunk/; revision=23040

17 years ago- Add some TIMER values to the ddk.
Alex Ionescu [Thu, 13 Jul 2006 06:23:34 +0000 (06:23 +0000)]
- Add some TIMER values to the ddk.
- Add DPC Settings (Queue Depths, Rates, etc)
- Cleanup System/Run Time Update code.
- Always increase kernel time in PRCB when inside kernel-mode code.
- Get rid of superflous interlocked commands when not needed.
- Improve detection of DPC vs non-DPC time.
- Respect and apply DPC queue/rate rules.
- Allow future use of non-fulltick time increments.

svn path=/trunk/; revision=23039

17 years ago- Add ASSERT_QUEUE macro.
Alex Ionescu [Thu, 13 Jul 2006 05:20:43 +0000 (05:20 +0000)]
- Add ASSERT_QUEUE macro.
- Cleanup queue.c
- Add some ASSERTs
- Properly check for SPecialApcDisable before aborting a wait.
- Fix a bug in KiWaitQueue which was causing us not to remove the queue from the thread's wait list.

svn path=/trunk/; revision=23038

17 years ago- Fix KiAcquireMutexContended, it was broken in contended cases.
Alex Ionescu [Thu, 13 Jul 2006 04:20:18 +0000 (04:20 +0000)]
- Fix KiAcquireMutexContended, it was broken in contended cases.
- Inline Acquiring/Leaving guarded regions and the gmutex code, instead of going through 3-4 indirect calls.
- Add a mountain of ASSERTs to detect incorrect usage/state.
- Set ->SpecialApcDisable in the Guarded Mutex.
- Fix broken KTHREAD definition. SpecialApcDisable and KernelApcDisable were incorrectly marked as USHORT instead of SHORT, which could cause severe trouble under optimized builds (At least under MSVC, since MSVC wouldn't allow a negative number in an unsigned short).
- Use GM_LOCK_BIT_V.
- Fix broken KeTryToAcquireGuardedMutex prototype.
- Fix broken KGUARDED_MUTEX typedef and add bit values.
- Fix broken Interlocked* prototypes in regards to volatileness.

svn path=/trunk/; revision=23037

17 years ago-User32: Consolidated InsertMenu and ModifyMenu A&W flags processing. Misc changes...
James Tabor [Wed, 12 Jul 2006 22:43:45 +0000 (22:43 +0000)]
-User32: Consolidated InsertMenu and ModifyMenu A&W flags processing. Misc changes too, some based on wine.

svn path=/trunk/; revision=23036

17 years agoDIALOG -> DIALOGEX to correctly handle MS Shell Dlg
Ged Murphy [Wed, 12 Jul 2006 21:52:08 +0000 (21:52 +0000)]
DIALOG -> DIALOGEX to correctly handle MS Shell Dlg

svn path=/trunk/; revision=23035

17 years agopatch from w3seek :Bug #: 1669 : Probing macros improvements and fixes
Magnus Olsen [Wed, 12 Jul 2006 21:42:08 +0000 (21:42 +0000)]
patch from w3seek :Bug #:  1669  : Probing macros improvements and fixes

svn path=/trunk/; revision=23034

17 years agopatch from w3seek : Bug#: 1671 : RTL: Fix checking the SACL data area in the Win64...
Magnus Olsen [Wed, 12 Jul 2006 21:36:05 +0000 (21:36 +0000)]
patch from w3seek : Bug#:  1671  : RTL: Fix checking the SACL data area in the Win64 version of RtlSelfRelativeToAbsoluteSD2

svn path=/trunk/; revision=23033

17 years ago- Fix a mistake with outputting always non-initialized buffer in a DPRINT1
Aleksey Bragin [Wed, 12 Jul 2006 21:33:14 +0000 (21:33 +0000)]
- Fix a mistake with outputting always non-initialized buffer in a DPRINT1
- Add a branch for stopping the screensaver
- Prettify the tracing debug message (it shows now if it's a start or a stop request)
- Add a success-check for RegOpenKeyExW too

svn path=/trunk/; revision=23032

17 years agoconio.c:
Johannes Anderwald [Wed, 12 Jul 2006 21:06:21 +0000 (21:06 +0000)]
conio.c:
* create a CSRSS_SCREEN_BUFFER object before TuiInit/GuiInit
  -> required for variable screen buffer sizes
* improve error handling in CsrCreateScreenBuffer

guiconsole.c:
* directly store WindowSize in CSRSS_CONSOLE struct
* read ScreenBufferSize value from registry and store result in CSRSS_SCREEN_BUFFER
* use default values for ScreenBufferSize / WindowSize

tuiconsole.c:
* set screenbuffer size to size of physical console size in init

svn path=/trunk/; revision=23031

17 years agoSymbolic link should start with \??\, to be able to open the object from kernel mode
Hervé Poussineau [Wed, 12 Jul 2006 20:41:28 +0000 (20:41 +0000)]
Symbolic link should start with \??\, to be able to open the object from kernel mode

svn path=/trunk/; revision=23030

17 years ago* set FontName array to max of LF_FACESIZE
Johannes Anderwald [Wed, 12 Jul 2006 16:48:58 +0000 (16:48 +0000)]
* set FontName array to max of LF_FACESIZE
* read WindowSize from registry
* create GUI_CONSOLE_DATA directly in GuiInitConsole
* wait untill GuiWindow has been created (needed for synchronization with variable window sizes)

svn path=/trunk/; revision=23028

17 years agoImplement the 'You need to reboot' wizard page, and use it instead of the network...
Hervé Poussineau [Wed, 12 Jul 2006 15:30:09 +0000 (15:30 +0000)]
Implement the 'You need to reboot' wizard page, and use it instead of the network message box.
Main advantage is that the message box doesn't appear anymore during second stage setup.

svn path=/trunk/; revision=23027

17 years agoStub one more WMI api used by drivers. Kernel just ignores WMI information for now...
Aleksey Bragin [Wed, 12 Jul 2006 14:00:21 +0000 (14:00 +0000)]
Stub one more WMI api used by drivers. Kernel just ignores WMI information for now, but drivers are happy since they successfully submit it.

svn path=/trunk/; revision=23026

17 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Wed, 12 Jul 2006 12:40:40 +0000 (12:40 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=23024

17 years agorevert prev commit
Johannes Anderwald [Wed, 12 Jul 2006 12:36:31 +0000 (12:36 +0000)]
revert prev commit

svn path=/trunk/; revision=23023

17 years agoAdd flags for CryptAcquireCertificatePrivateKey() API
Aleksey Bragin [Wed, 12 Jul 2006 12:27:46 +0000 (12:27 +0000)]
Add flags for CryptAcquireCertificatePrivateKey() API

svn path=/trunk/; revision=23022

17 years ago* remove unused/unimplemented clb library
Johannes Anderwald [Wed, 12 Jul 2006 12:27:26 +0000 (12:27 +0000)]
* remove unused/unimplemented clb library
* you need to delete Makefile.auto after this commit

svn path=/trunk/; revision=23021

17 years ago* norwegian translation by LMH1 from bug(1645)
Johannes Anderwald [Wed, 12 Jul 2006 12:08:39 +0000 (12:08 +0000)]
* norwegian translation by LMH1 from bug(1645)

svn path=/trunk/; revision=23020

17 years ago* set svn:eolstyle native
Johannes Anderwald [Wed, 12 Jul 2006 12:00:34 +0000 (12:00 +0000)]
* set svn:eolstyle native

svn path=/trunk/; revision=23019

17 years ago* fix a typo
Johannes Anderwald [Wed, 12 Jul 2006 11:55:14 +0000 (11:55 +0000)]
* fix a typo
* fix identation
* bugreport & patch by Jones111
* fixes bug 1656

svn path=/trunk/; revision=23018

17 years agoEnable plug and play manager in livecd.
Hervé Poussineau [Wed, 12 Jul 2006 11:54:04 +0000 (11:54 +0000)]
Enable plug and play manager in livecd.

svn path=/trunk/; revision=23017

17 years agoLiveCD change: don't directly name the shell executable in SYSTEM\Setup key, but...
Hervé Poussineau [Wed, 12 Jul 2006 11:30:17 +0000 (11:30 +0000)]
LiveCD change: don't directly name the shell executable in SYSTEM\Setup key, but run setup.exe, which then loads syssetup.dll, which then runs the selected shell.
This is the first step to do custom operations when running the livecd.

svn path=/trunk/; revision=23016

17 years agoFix the RET insns for @InterlockedCompareExchange@12. Spotted by Alex & Aleksey.
Filip Navara [Tue, 11 Jul 2006 22:45:45 +0000 (22:45 +0000)]
Fix the RET insns for @InterlockedCompareExchange@12. Spotted by Alex & Aleksey.

svn path=/trunk/; revision=23015

17 years ago- Implement Fast Referencing and fix EX_FAST_REF definition.
Alex Ionescu [Tue, 11 Jul 2006 19:45:16 +0000 (19:45 +0000)]
- Implement Fast Referencing and fix EX_FAST_REF definition.
- Implement ObReferenceEx and ObDereferenceEx.
- Split off ObpDeferObjectCompletion. A new win2003/vista API requires direct acess to being able to defer deletes.
- Fix some bugs in Process Token management and make it all properly use Fast Referencing.
- When duplicating a token in a new process, don't de-reference it before it's even created, and also insert it.
- Change ExpChangeRundown macro to fix warnings in msvc.

svn path=/trunk/; revision=23013

17 years ago* fix typo
Johannes Anderwald [Tue, 11 Jul 2006 17:52:38 +0000 (17:52 +0000)]
* fix typo
* patch & bug report by Coviti
* fixes bug 1663
* set svn:eol-style native for other resource files

svn path=/trunk/; revision=23012

17 years ago- Fix up some stuff in Kernel Gates support.
Alex Ionescu [Tue, 11 Jul 2006 15:36:44 +0000 (15:36 +0000)]
- Fix up some stuff in Kernel Gates support.
- Fix up some implementation bugs in Executive Rundown support.

svn path=/trunk/; revision=23011

17 years agoDon't change PortData pointer, as it is allocated memory, and so, it is easier to...
Hervé Poussineau [Tue, 11 Jul 2006 13:38:59 +0000 (13:38 +0000)]
Don't change PortData pointer, as it is allocated memory, and so, it is easier to free it when needed.

svn path=/trunk/; revision=23010

17 years ago[FORMATTING] Replace tabs by spaces.
Hervé Poussineau [Tue, 11 Jul 2006 13:01:00 +0000 (13:01 +0000)]
[FORMATTING] Replace tabs by spaces.
No code change

svn path=/trunk/; revision=23009

17 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Mon, 10 Jul 2006 21:39:10 +0000 (21:39 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=23008

17 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Mon, 10 Jul 2006 21:32:49 +0000 (21:32 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=23007

17 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Mon, 10 Jul 2006 21:25:32 +0000 (21:25 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=23006

17 years ago[FORMATTING] / [AUDIT]
Aleksey Bragin [Mon, 10 Jul 2006 21:03:26 +0000 (21:03 +0000)]
[FORMATTING] / [AUDIT]
- Cleanup a big coding-style mess
- Add UNIMPLEMENTED macro in empty functions (otherwise we will never know if they are being called by a 3rd-party driver)
- Add proper debug headers inclusion in every file
- Add documentation headers into almost every file (except mcb.c and context.c - will be added later)
- Standardize per-file headers (some files still lack contributors names, they will be added later too)

No code change except for adding UNIMPLEMENTED macros in the code. Name.c unlocked because the implementations of functions are trivial and in fact could be derived from their names. Not documented functions will be further reviewed.

svn path=/trunk/; revision=23005

17 years agofixing broken asm code.
Magnus Olsen [Mon, 10 Jul 2006 20:02:12 +0000 (20:02 +0000)]
fixing broken asm code.
tcslen, wsclen did not check if the string was null or not.
Adding a NULL pointer check. This make user32 test working and alot other apps.

svn path=/trunk/; revision=23004

17 years agoFixing two user mode crash for menu.
Magnus Olsen [Mon, 10 Jul 2006 19:32:24 +0000 (19:32 +0000)]
Fixing two user mode crash for menu.
Do not try reading from NULL pointer and compare the value.
This let me come bit futer with user32_winetest.exe, but we still have some user mode crash with menu.

svn path=/trunk/; revision=23003

17 years ago-get rid of DllMain@12 because MSVC defaults to_DllMainCRTStartup@12 when using CRT
Christoph von Wittich [Mon, 10 Jul 2006 18:16:28 +0000 (18:16 +0000)]
-get rid of DllMain@12 because MSVC defaults to_DllMainCRTStartup@12 when using CRT

svn path=/trunk/; revision=23001

17 years ago* make resources compilable with msvc
Johannes Anderwald [Mon, 10 Jul 2006 16:22:03 +0000 (16:22 +0000)]
* make resources compilable with msvc

svn path=/trunk/; revision=23000

17 years agoFixing a small bug, value where never devliver from SPI and that did make screensaver...
Magnus Olsen [Mon, 10 Jul 2006 15:02:43 +0000 (15:02 +0000)]
Fixing a small bug, value where never devliver from SPI and that did make screensaver start direcky and start mulitetimes.

svn path=/trunk/; revision=22998

17 years ago* set svn:eol-style native
Johannes Anderwald [Mon, 10 Jul 2006 14:11:12 +0000 (14:11 +0000)]
* set svn:eol-style native

svn path=/trunk/; revision=22997

17 years ago* fix a few msvc compilation errors (MS powercfg.h does not use include guards)
Johannes Anderwald [Mon, 10 Jul 2006 13:47:11 +0000 (13:47 +0000)]
* fix a few msvc compilation errors (MS powercfg.h does not use include guards)

svn path=/trunk/; revision=22996

17 years ago* make resource files msvc compilable
Johannes Anderwald [Mon, 10 Jul 2006 13:30:17 +0000 (13:30 +0000)]
* make resource files msvc compilable
* fix size of text in various languages

svn path=/trunk/; revision=22995

17 years agoAdd DPRINT1s for failures, and added UNIMPLEMENTED macro in the unimplemented export...
Aleksey Bragin [Mon, 10 Jul 2006 13:10:22 +0000 (13:10 +0000)]
Add DPRINT1s for failures, and added UNIMPLEMENTED macro in the unimplemented export function

svn path=/trunk/; revision=22994

17 years agoThomas Weidenmueller: Fix GCC4 warnings
Aleksey Bragin [Mon, 10 Jul 2006 11:42:28 +0000 (11:42 +0000)]
Thomas Weidenmueller: Fix GCC4 warnings

svn path=/trunk/; revision=22993

17 years ago- Remove IopGetLowestDevice() call from IoRegisterDeviceInterface() (hpoussin approve...
Aleksey Bragin [Mon, 10 Jul 2006 09:54:50 +0000 (09:54 +0000)]
- Remove IopGetLowestDevice() call from IoRegisterDeviceInterface() (hpoussin approved this change)
- Add a few DPRINTs to easier see failures of exported APIs

svn path=/trunk/; revision=22992

17 years agoSync with Wine: Update EDIT_EM_SetMargins in EDIT control.
Aleksey Bragin [Mon, 10 Jul 2006 08:56:02 +0000 (08:56 +0000)]
Sync with Wine: Update EDIT_EM_SetMargins in EDIT control.

svn path=/trunk/; revision=22991

17 years agoDmitry Philippov: Fix a bug with firstly overwriting the value, and then trying to...
Aleksey Bragin [Mon, 10 Jul 2006 08:33:02 +0000 (08:33 +0000)]
Dmitry Philippov: Fix a bug with firstly overwriting the value, and then trying to use variable for comparation (should be vice-versa: firstly compared what was passed, then overwrite with a new value)

svn path=/trunk/; revision=22990

17 years ago- User32 menu
James Tabor [Mon, 10 Jul 2006 05:52:41 +0000 (05:52 +0000)]
- User32 menu
 - Fixed and modified MenuDrawBitmapItem, MenuGetBitmapItemSize and MenuCalcItemSize. Based on Wine ports.
 - Fixed menu bar drawing and maintained most callback changes (for Miranda). Implemented flat menu support. Some other misc changes. Owner drawing is still broken (Free pascal project Lazarus). Run user32_crosstest from Wine, still more rewriting is needed.

svn path=/trunk/; revision=22989

17 years agoImplement SPI_GETFLATMENU and SPI_SETFLATMENU after jimtabor request not tested if...
Magnus Olsen [Mon, 10 Jul 2006 01:48:46 +0000 (01:48 +0000)]
Implement SPI_GETFLATMENU and SPI_SETFLATMENU after jimtabor request not tested if it work

svn path=/trunk/; revision=22988

17 years agoputting back Christoph_vW patch that was revert by me
Magnus Olsen [Mon, 10 Jul 2006 01:45:03 +0000 (01:45 +0000)]
putting back Christoph_vW patch that was revert by me

svn path=/trunk/; revision=22987

17 years agoputting back Christoph_vW patch that was revert by me
Magnus Olsen [Mon, 10 Jul 2006 01:33:10 +0000 (01:33 +0000)]
putting back Christoph_vW patch that was revert by me

svn path=/trunk/; revision=22986

17 years agoChanges for Screen saver And implement
Magnus Olsen [Mon, 10 Jul 2006 00:26:56 +0000 (00:26 +0000)]
Changes for Screen saver And implement
1. Time value can be changes use SPI_SETSCREENSAVETIMEOUT to set the new value, current insate value are set to 30sec
2. SPI_GETSCREENSAVETIMEOUT Get the screen saver timeout value.
3. Dectect if screen saver is running with SPI_GETSCREENSAVERRUNNING
4. Set the state of screen saver with  SPI_SETSCREENSAVERRUNNING <- this is internal api see msdn

Implement for mouse
1. SPI_GETWHEELSCROLLLINES I am but unsure if win32k need more changes it seam like it is only a counter that should be set/get a value and user apps take care of the rest. Implement it for jimtabor did request it.
2. SPI_GETWHEELSCROLLCHARS  I am but unsure if win32k need more changes it seam like it is only a counter that should be set/get a value and user apps take care of the rest.

svn path=/trunk/; revision=22985

17 years agoadding #define SPI_GETWHEELSCROLLCHARS thanks alex for the value
Magnus Olsen [Mon, 10 Jul 2006 00:11:12 +0000 (00:11 +0000)]
adding #define SPI_GETWHEELSCROLLCHARS  thanks alex for the value

svn path=/trunk/; revision=22984

17 years agomodified rdesktop/channels.c
Michele Cicciotti [Sun, 9 Jul 2006 23:57:54 +0000 (23:57 +0000)]
modified   rdesktop/channels.c
modified   rdesktop/constants.h
modified   rdesktop/types.h
   Commented out definitions of standard Windows constants and types

modified   rdesktop/licence.c
modified   rdesktop/secure.c
   TODO annotations

modified   rdesktop/proto.h
   Commented out prototypes for rdpdr, rdpsnd, cliprdr, etc. functions that will be rewritten *and* use a new API

modified   rdesktop/rdesktop.h
modified   rdesktop/rdp.c
modified   rdesktop/tcp.c
   Big big mess, many temporary modifications to have a working prototype ASAP

added      MissTosca.sln
added      mstsc/mstsc.cpp
added      mstsc/mstsc.vcproj
added      mstsc/stdafx.cpp
added      mstsc/stdafx.h
added      mstscax/mstscax.cpp
added      mstscax/mstscax.vcproj
added      mstscax/stdafx.cpp
added      mstscax/stdafx.h
   Created skeleton project files for Visual C++ 2005

added      rdesktop/rdesktop-core.vcproj
   Isolated the bare core of rdesktop. Required little to no porting

added      porting-tools/rdesktop-core-tester
added      porting-tools/rdesktop-core-tester/rdesktop-core-tester.cpp
added      porting-tools/rdesktop-core-tester/rdesktop-core-tester.vcproj
added      porting-tools/rdesktop-core-tester/stdafx.cpp
added      porting-tools/rdesktop-core-tester/stdafx.h
   Tester application. The screenshots were made with this. Partial (buggy!) implementation of GUI and keyboard input

svn path=/trunk/; revision=22983

17 years agoFirst argument doesn't need to be a physical device object, it only needs to be in...
Hervé Poussineau [Sun, 9 Jul 2006 22:08:24 +0000 (22:08 +0000)]
First argument doesn't need to be a physical device object, it only needs to be in a PDO driver stack.

svn path=/trunk/; revision=22982

17 years agoImplement proper error-handling in IoRegisterDeviceInterface() (based on testing...
Aleksey Bragin [Sun, 9 Jul 2006 22:02:03 +0000 (22:02 +0000)]
Implement proper error-handling in IoRegisterDeviceInterface() (based on testing and MSDN documentation)

svn path=/trunk/; revision=22981

17 years agoAdd two simple tests for IoRegisterDeviceInterface() explaining which fields IoRegist...
Aleksey Bragin [Sun, 9 Jul 2006 21:39:49 +0000 (21:39 +0000)]
Add two simple tests for IoRegisterDeviceInterface() explaining which fields IoRegisterDeviceInterface() checks for mandatory presence (WDK is not clear about this)

svn path=/trunk/; revision=22980

17 years agoRe-apply fixes to CPL accidentally reverted by Magnus's reverting commit
Aleksey Bragin [Sun, 9 Jul 2006 21:10:40 +0000 (21:10 +0000)]
Re-apply fixes to CPL accidentally reverted by Magnus's reverting commit

svn path=/trunk/; revision=22979

17 years agoThanks for x person found a bug, he did not be mentor with name. One of our helper...
Magnus Olsen [Sun, 9 Jul 2006 20:28:30 +0000 (20:28 +0000)]
Thanks for x person found a bug, he did not be mentor with name. One of our helper with dx stuff that want be anonymous for now

svn path=/trunk/; revision=22978

17 years agoAdd comments from cc-branch headers to trunk to make the header patch smaller.
Maarten Bosma [Sun, 9 Jul 2006 19:37:39 +0000 (19:37 +0000)]
Add comments from cc-branch headers to trunk to make the header patch smaller.

svn path=/trunk/; revision=22977

17 years ago- Massive re-write of some parts of Ps, based on a patch I wrote almost a year ago...
Alex Ionescu [Sun, 9 Jul 2006 18:54:13 +0000 (18:54 +0000)]
- Massive re-write of some parts of Ps, based on a patch I wrote almost a year ago and peer-reviewed with Thomas and Filip. Causes some shutdown regressions and process leaks (will fix). Needs more work. Changelog:
    - Architectural changes to match information in Windows Internals 4 and other documented sources of information (Windows Internals II by Probert). Code should match Win2003 layout.
    - Handle almost any possible process/thread sub structure and add its cleanup code stubs, so that when we actually implement them, we won't forget to clean them up in the process code.
    - Add interlocked usage of process and thread flags in order to make everything more thread-safe.
    - Better handle cases where threads die instantly, race conditions, and other weird issues.
    - Better handle process termination and thread termination.
    - Implement NtCreateProcessEx and update PspCreateProcess/NtCreateProcess.
    - Improve cleanup of process object in PspProcessDelete.
    - Optimize some things like User Thread startup.
    - Add some extra asserts, paged_code checks and also user-mode security check.
    - Implement helper API PsGetNextProcessThread
    - Optimize thread reaper (thanks Filip)
    - Do proper referencing/dereferencing of thread/processes (thanks Thomas)
    - Document FIXMEs needed for Ps code to be up to standards and complete.

svn path=/trunk/; revision=22976

17 years agoreverting : revison 22930 to 22932, 22938 to 22940, 22943, 22945, 22950, 22953 to...
Magnus Olsen [Sun, 9 Jul 2006 16:25:25 +0000 (16:25 +0000)]
reverting : revison 22930 to 22932, 22938 to 22940, 22943, 22945, 22950, 22953 to 22954, 22959 to 22961, 22965

Reason : CRT/RTL/STRING are being static linkend into evething and cause CSR crash when it booting to GUI
         and some of the changes are wrong in rbuild as well. Do not hardcode example mingw32-ld name
         keep it to ld for it is the make file detmer the name of ld when it is building. and some other
         changes are also question about. It also fix so we can build ReactOS with MinGW 3.4.2 again and
         BinUtils 2.15.91, it was also other problem with this changes.

svn path=/trunk/; revision=22973

17 years agocheck reg for NTP setting
Ged Murphy [Sun, 9 Jul 2006 16:19:39 +0000 (16:19 +0000)]
check reg for NTP setting
fix a few typos and msvc warnings

svn path=/trunk/; revision=22972

17 years agolast patch Alex ask for this be revert for it should be fixed in another place.
Magnus Olsen [Sun, 9 Jul 2006 15:33:33 +0000 (15:33 +0000)]
last patch Alex ask for this be revert for it should be fixed in another place.

svn path=/trunk/; revision=22971

17 years ago- Small build fix
Alex Ionescu [Sun, 9 Jul 2006 15:25:14 +0000 (15:25 +0000)]
- Small build fix

svn path=/trunk/; revision=22970

17 years agoFix the build, thanks to Magnus Olsen
Aleksey Bragin [Sun, 9 Jul 2006 12:33:47 +0000 (12:33 +0000)]
Fix the build, thanks to Magnus Olsen

svn path=/trunk/; revision=22969

17 years ago- Separate functions that deal with driver-related registry code, grouping, tagging...
Alex Ionescu [Sun, 9 Jul 2006 02:34:32 +0000 (02:34 +0000)]
- Separate functions that deal with driver-related registry code, grouping, tagging, indexing, sorting into drvrlist.c... this code should eventually become part of Cm instead.

svn path=/trunk/; revision=22968

17 years ago- Simplify IopReinitializeBootDrivers and IopReinitializeDrivers.
Alex Ionescu [Sun, 9 Jul 2006 02:21:13 +0000 (02:21 +0000)]
- Simplify IopReinitializeBootDrivers and IopReinitializeDrivers.
- For some strange reason, boot drivers were re-initailized *after* system drivers.

svn path=/trunk/; revision=22967

17 years ago- Add a typedef for PFS_FILTER_CALLBACKS when the IFS isn't included.
Alex Ionescu [Sun, 9 Jul 2006 01:03:37 +0000 (01:03 +0000)]
- Add a typedef for PFS_FILTER_CALLBACKS when the IFS isn't included.

svn path=/trunk/; revision=22966

17 years ago-remove nostdlib from KernelModeDlls to fix linking of bzip2
Christoph von Wittich [Sun, 9 Jul 2006 00:56:23 +0000 (00:56 +0000)]
-remove nostdlib from KernelModeDlls to fix linking of bzip2

svn path=/trunk/; revision=22965

17 years agopatch from Vassily Tarasov bug 1658 : Implement GetUserObjectSecurity()and SetUserObj...
Magnus Olsen [Sun, 9 Jul 2006 00:16:51 +0000 (00:16 +0000)]
patch from Vassily Tarasov bug 1658 : Implement GetUserObjectSecurity()and SetUserObjectSecurity()

svn path=/trunk/; revision=22964

17 years ago* use font properties from registry when available
Johannes Anderwald [Sun, 9 Jul 2006 00:13:40 +0000 (00:13 +0000)]
* use font properties from registry when available

svn path=/trunk/; revision=22963

17 years ago- Allocate Re-Init entries with a tag
Alex Ionescu [Sun, 9 Jul 2006 00:01:31 +0000 (00:01 +0000)]
- Allocate Re-Init entries with a tag
- Fix IoAllocateDriverObjectExtension and IoGetDriverObjectExtension:
  - They were using the wrong structure (a made up one).
  - They were saving the extension where the Driver Object's base address should be.
  - Memory leaks.
  - Sometimes holding the lock too long.
- Created EXTENDED_DRIVER_OBJECT structure in NDK, since parts of the documented one are hidden (much like EXTENDED_DEVICE_OBJECT).
- Fixed IopDeleteDriver to free what it should.
- Fixed IoCreateDriver to handle more failure cases.

svn path=/trunk/; revision=22962

17 years ago-removed -nostdlib from kernel32
Christoph von Wittich [Sat, 8 Jul 2006 23:32:03 +0000 (23:32 +0000)]
-removed -nostdlib from kernel32
-fixed some msvc errors

svn path=/trunk/; revision=22961

17 years ago-use /noentry flag when entrypoint is set to "0"
Christoph von Wittich [Sat, 8 Jul 2006 23:23:08 +0000 (23:23 +0000)]
-use /noentry flag when entrypoint is set to "0"

svn path=/trunk/; revision=22960

17 years agofix compilation with msvc
Christoph von Wittich [Sat, 8 Jul 2006 23:12:51 +0000 (23:12 +0000)]
fix compilation with msvc

svn path=/trunk/; revision=22959

17 years ago- A long long time ago there was a stupid kernel that created MDLs for R/W requests...
Alex Ionescu [Sat, 8 Jul 2006 23:02:50 +0000 (23:02 +0000)]
- A long long time ago there was a stupid kernel that created MDLs for R/W requests even when the length of the buffer was 0. He had another stupid friend called CDFS which attempted to read the MDL before checking if the buffer size is also 0. When cdfs's friend, the kernel, grew smarter and stopped allocating MDLs, cdfs didn't catch on and cried every time this happened. CDFS now caught up. (thanks to Greatlord for finding the regression).

svn path=/trunk/; revision=22958

17 years agoremove -nostdlib
Christoph von Wittich [Sat, 8 Jul 2006 22:15:41 +0000 (22:15 +0000)]
remove -nostdlib

svn path=/trunk/; revision=22957

17 years agoImplement CM_Free_Log_Conf_Handle.
Eric Kohl [Sat, 8 Jul 2006 22:15:16 +0000 (22:15 +0000)]
Implement CM_Free_Log_Conf_Handle.

svn path=/trunk/; revision=22956

17 years agoRevert : small part from 22849 wine sync
Magnus Olsen [Sat, 8 Jul 2006 22:14:37 +0000 (22:14 +0000)]
Revert : small part from 22849 wine sync
Reason : put back ReactOS specify code, to make icon transplant.

svn path=/trunk/; revision=22955

17 years agoremove -nostdlib
Christoph von Wittich [Sat, 8 Jul 2006 22:13:10 +0000 (22:13 +0000)]
remove -nostdlib

svn path=/trunk/; revision=22954

17 years ago-remove -nostdlib to fix build of msvcrt
Christoph von Wittich [Sat, 8 Jul 2006 22:07:34 +0000 (22:07 +0000)]
-remove -nostdlib to fix build of msvcrt
-don't set --enable-stdcall-fixup twice

svn path=/trunk/; revision=22953

17 years ago* add missing string to stringtable -> now the menu fully works
Johannes Anderwald [Sat, 8 Jul 2006 22:06:54 +0000 (22:06 +0000)]
* add missing string to stringtable -> now the menu fully works
* spotted by Greatlord

svn path=/trunk/; revision=22952

17 years ago-link to opengl32 to fix build of glu32
Christoph von Wittich [Sat, 8 Jul 2006 22:04:57 +0000 (22:04 +0000)]
-link to opengl32 to fix build of glu32

svn path=/trunk/; revision=22951

17 years ago-removed -nostdlib to fix build
Christoph von Wittich [Sat, 8 Jul 2006 21:39:22 +0000 (21:39 +0000)]
-removed -nostdlib to fix build

svn path=/trunk/; revision=22950

17 years agoImplement CM_Add_Empty_Log_Conf[_Ex] and add PNP_AddEmptyLogConf stub.
Eric Kohl [Sat, 8 Jul 2006 21:37:32 +0000 (21:37 +0000)]
Implement CM_Add_Empty_Log_Conf[_Ex] and add PNP_AddEmptyLogConf stub.

svn path=/trunk/; revision=22949

17 years ago[AUDIT] + [FORMATTING]
Aleksey Bragin [Sat, 8 Jul 2006 21:33:25 +0000 (21:33 +0000)]
[AUDIT] + [FORMATTING]
- Coding style applied (make file's header proper, add headers for every function)
- All functions except one are documented in MSDN
- One undocumented function will undergo further examination and documentation

svn path=/trunk/; revision=22948

17 years agoInstall dejavu font on livecd and bootcd and
Magnus Olsen [Sat, 8 Jul 2006 20:49:55 +0000 (20:49 +0000)]
Install dejavu font on livecd and bootcd and
change everthing to dejavu fonts. Rember console apps can not use dejavu font for it will regress.
that is the reasson we keep old bitstream fonts for now. and another problem is bitstream font is
hardcode into console apps (example cmd), it have been hard code in csrss and maybe some more place.

svn path=/trunk/; revision=22947

17 years agofixing last bug for jolite file names. now we can use so long file name we like.
Magnus Olsen [Sat, 8 Jul 2006 20:45:33 +0000 (20:45 +0000)]
fixing last bug for jolite file names. now we can use so long file name we like.
I was force fixing this bug for getting dejavu font to be install on livecd
I was hopping some else have fixing this long standing bug.

svn path=/trunk/; revision=22946

17 years ago-fixed msvc errors
Christoph von Wittich [Sat, 8 Jul 2006 20:32:22 +0000 (20:32 +0000)]
-fixed msvc errors

svn path=/trunk/; revision=22945

17 years agocommit import Dejavu font to ReactOS, we need keep bitstream font for Console apps...
Magnus Olsen [Sat, 8 Jul 2006 20:05:44 +0000 (20:05 +0000)]
commit import Dejavu font to ReactOS, we need keep bitstream font for Console apps for it is hard code there and there, for console apps, example let cmd working without regress. Now we need change the reactos reg and to the packages.diff.

svn path=/trunk/; revision=22944

17 years ago-don't use PROJECT_LFLAGS for freeldr because ld != mingw32-ld
Christoph von Wittich [Sat, 8 Jul 2006 19:44:36 +0000 (19:44 +0000)]
-don't use PROJECT_LFLAGS for freeldr because ld != mingw32-ld

svn path=/trunk/; revision=22943