reactos.git
13 years agoSync to Wine-0_9_16:
Ged Murphy [Wed, 5 Jul 2006 22:48:31 +0000 (22:48 +0000)]
Sync to Wine-0_9_16:
*no changes since 0.9.11 ...

Sync to Wine-0_9_11:
Byeong-Sik Jeon <wjsqudtlr@gmail.com>
- commdlg: Updated Korean translation.
Ulrich Czekalla <ulrich@codeweavers.com>
- commdlg: Properly set and retrieve colour value from combo box .
Mike McCormack <mike@codeweavers.com>
- commdlg: Malformed filters are still added to the filter combo box.

Sync to Wine-0_9_10:
Mike McCormack <mike@codeweavers.com>
- comdlg32: Use a property for the color dialog's information.
- comdlg32: Remove the property when destroy the dialog box.

Sync to Wine-0_9_8:
Vitaliy Margolen <wine-patch@kievinfo.com>
- commdlg: Add font sizes 6 and 7 to font select dialog.
Henning Gerhardt <henning.gerhardt@web.de>
- commdlg: Update German resource.
Petr Tesarik <hat@tesarici.cz>
- commdlg: Czech language resources encoding fix.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Add support for CDM_HIDECONTROL message in the file open dialog.
Andrey Turkin <pancha@mail.nnov.ru>
- commdlg: IShellBrowser sets IShellView window's control id to 5002.
Fatih Ac <fasici@linux-sevenler.org>
- commdlg: Turkish translation.

Sync to Wine-0_9_7:
Michael Kaufmann <hallo@michael-kaufmann.ch>
- commdlg: File open dialog: Use the specified instance handle for
  custom dialog templates.

Sync to Wine-0_9_6:
YunSong Hwang <hys545@dreamwiz.com>
- commdlg: Updated Korean translation.
Ulrich Czekalla <ulrich@codeweavers.com>
- commdlg: If provided use and update hDevMode in the PAGESETUPDLG struct.
  Update the dmDefaultSourcea return value inside hDevMode.
Stefan Br¹ns <stefan.bruens@rwth-aachen.de>
- commdlg: Makes return value of FILEDLG95_SendFileOK dependent of
  return value, not of DWL_MSGRESULT.

Sync to Wine-0_9_5:
Dan Kegel <dank@kegel.com>
- commdlg: Let the color picker respond properly to keystrokes.

svn path=/trunk/; revision=22876

13 years ago- Begin attempt at usage of the OPEN_PACKET for I/O Create operations. Currently...
Alex Ionescu [Wed, 5 Jul 2006 20:56:03 +0000 (20:56 +0000)]
- Begin attempt at usage of the OPEN_PACKET for I/O Create operations. Currently we only build it and verify it, and I've fixed up IopCreateFile.

svn path=/trunk/; revision=22871

13 years ago- Silence TCP/IP.
Alex Ionescu [Wed, 5 Jul 2006 20:36:56 +0000 (20:36 +0000)]
- Silence TCP/IP.
- Prototye fix.

svn path=/trunk/; revision=22870

13 years ago- Simplify IopParseDevice by removing duplicate code.
Alex Ionescu [Wed, 5 Jul 2006 20:08:08 +0000 (20:08 +0000)]
- Simplify IopParseDevice by removing duplicate code.

svn path=/trunk/; revision=22869

13 years ago[FORMATTING] - Fix formatting in IoCreateFile
Alex Ionescu [Wed, 5 Jul 2006 19:55:25 +0000 (19:55 +0000)]
[FORMATTING] - Fix formatting in IoCreateFile

svn path=/trunk/; revision=22868

13 years ago[AUDIT] after looking through code no signs of reverse engineering were found. Almost...
Magnus Olsen [Wed, 5 Jul 2006 19:09:29 +0000 (19:09 +0000)]
[AUDIT] after looking through code no signs of reverse engineering were found. Almost ever thing is almost complete from djgpp, few funcion is writen by us

svn path=/trunk/; revision=22867

13 years ago[AUDIT] after looking through code no signs of reverse engineering were found.
Magnus Olsen [Wed, 5 Jul 2006 18:57:25 +0000 (18:57 +0000)]
[AUDIT] after looking through code no signs of reverse engineering were found.

1. Follow fix need be done remove hardcode exe, cmd extions in wstart* use PATHEXT to found right excutions.

svn path=/trunk/; revision=22866

13 years ago[AUDIT] after looking through code no signs of reverse engineering were found. Alot...
Magnus Olsen [Wed, 5 Jul 2006 18:49:03 +0000 (18:49 +0000)]
[AUDIT] after looking through code no signs of reverse engineering were found. Alot stuff taken from wine, it contain hard code string like date, contry names, that need to move to msvcrt dll rc file

svn path=/trunk/; revision=22865

13 years ago[AUDIT] after looking through code no signs of reverse engineering were found. Almost...
Magnus Olsen [Wed, 5 Jul 2006 18:43:17 +0000 (18:43 +0000)]
[AUDIT] after looking through code no signs of reverse engineering were found. Almost all code is from djgpp, few functions is from us.

svn path=/trunk/; revision=22864

13 years ago[AUDIT] after looking through code no signs of reverse engineering were found.
Magnus Olsen [Wed, 5 Jul 2006 18:36:44 +0000 (18:36 +0000)]
[AUDIT] after looking through code no signs of reverse engineering were found.

svn path=/trunk/; revision=22863

13 years ago[AUDIT] after looking through code no signs of reverse engineering were found, and...
Magnus Olsen [Wed, 5 Jul 2006 18:34:01 +0000 (18:34 +0000)]
[AUDIT] after looking through code no signs of reverse engineering were found, and most code is base on djgpp

svn path=/trunk/; revision=22862

13 years agoclean up code and use HeapAlloc + fix memory leaks
Ged Murphy [Wed, 5 Jul 2006 15:29:37 +0000 (15:29 +0000)]
clean up code and use HeapAlloc + fix memory leaks

svn path=/trunk/; revision=22861

13 years ago- Make IoCreateFile use deferred I/O completion.
Alex Ionescu [Wed, 5 Jul 2006 06:45:00 +0000 (06:45 +0000)]
- Make IoCreateFile use deferred I/O completion.
- Fixed a bug in TCP/IP that was making it complete IRP_MJ_CREATE with STATUS_SUCCESS yet with the IRP marked as pending.

svn path=/trunk/; revision=22859

13 years ago[AUDIT] - Almost all the functions are stubs, except for some LSA functions which...
Alex Ionescu [Wed, 5 Jul 2006 06:43:46 +0000 (06:43 +0000)]
[AUDIT] - Almost all the functions are stubs, except for some LSA functions which merely seem to be wrappers that build LPC messages for the actual LSA Server to implement (which isn't part of these files).
- Add some stubs during my attempt to load Google Talk (forget about it!). However WINE implements all these functions entirely so maybe we should just sync with them?

svn path=/trunk/; revision=22858

13 years ago- Ongoing IoCreateFile fixes:
Alex Ionescu [Wed, 5 Jul 2006 04:16:37 +0000 (04:16 +0000)]
- Ongoing IoCreateFile fixes:
  - Start with empty object
  - Set the type/size in the object header
  - Don't rudely ignore the following flags: FILE_WRITE_THROUGH, FILE_SEQUENTIAL_ONLY, FILE_RANDOM_ACCESS, OBJ_CASE_INSENSITIVE; they are not merely decorative.
  - Set correct IRP flags for IRP_CREATE_OPERATION so that the I/O manager knows how to deal with the request (also set SYNCH_API flag).
  - Deferred mode not yet enabled.
  - Simplify the way we set the parameters for pipes/mailslots/files.
  - Don't close the handle of an invalid FO.

svn path=/trunk/; revision=22857

13 years ago- Fix IopcloseFile... I'm not sure it was working right after the Ob changes, so...
Alex Ionescu [Wed, 5 Jul 2006 02:02:44 +0000 (02:02 +0000)]
- Fix IopcloseFile... I'm not sure it was working right after the Ob changes, so it's possible some devices weren't getting IRP_MJ_CLEANUP... also made it lock the FO and detect malformed FOs (more spam for you on the debug logs!) -- but this is one problem I'm planning on fixing.

svn path=/trunk/; revision=22856

13 years ago- The FO's lock is a Synch event, not a notification event!
Alex Ionescu [Wed, 5 Jul 2006 00:22:09 +0000 (00:22 +0000)]
- The FO's lock is a Synch event, not a notification event!

svn path=/trunk/; revision=22855

13 years ago- Finally fix IoCreateStreamFileObject. I had fixed it a long time ago but back then...
Alex Ionescu [Wed, 5 Jul 2006 00:17:34 +0000 (00:17 +0000)]
- Finally fix IoCreateStreamFileObject. I had fixed it a long time ago but back then it was causing regressions. It now properly creates a handle for the FO and sets the right flags.

svn path=/trunk/; revision=22854

13 years ago- Fix IopQueryNameFile to properly validate and calculate lengths at each step of...
Alex Ionescu [Tue, 4 Jul 2006 23:31:42 +0000 (23:31 +0000)]
- Fix IopQueryNameFile to properly validate and calculate lengths at each step of the way and to support incomplete buffers. Previously, dangerous assumptions were made about the buffers and the actual required length was never returned.

svn path=/trunk/; revision=22853

13 years ago- Fix and combine the creation of I/O Object Types, it was a complete mess with missi...
Alex Ionescu [Tue, 4 Jul 2006 22:41:47 +0000 (22:41 +0000)]
- Fix and combine the creation of I/O Object Types, it was a complete mess with missing attributes and dangerous bugs (Adapters and Controllers had IopParseDevice as a parse routine and the same pool charge as a deivice object, etc.)

svn path=/trunk/; revision=22852

13 years ago- Add locking in IopDeleteFile, and only check for completion context or name if...
Alex Ionescu [Tue, 4 Jul 2006 22:28:23 +0000 (22:28 +0000)]
- Add locking in IopDeleteFile, and only check for completion context or name if the file has a DO, otherwise those shouldn't exist.
- Added support for device objects as well in IopSecurityFile, since the code is similar. Also fixed sync semantics for file objects, and made other little small fixes.

svn path=/trunk/; revision=22851

13 years agoupdate Wine doc
Ged Murphy [Tue, 4 Jul 2006 21:45:05 +0000 (21:45 +0000)]
update Wine doc

svn path=/trunk/; revision=22850

13 years agoSync to Wine-0_9_16:
Ged Murphy [Tue, 4 Jul 2006 21:33:34 +0000 (21:33 +0000)]
Sync to Wine-0_9_16:
Alexandre Julliard <julliard@winehq.org>
- comctl32: Don't use sizeof in traces to avoid printf format warnings.
Dmitry Timoshkov <dmitry@codeweavers.com>
- comctl32: Return FALSE in the WM_CLOSE PROPSHEET_DialogProc handler.
Mike McCormack <mike@codeweavers.com>
- comctl32: Use the listview's background colour when drawing with imagelist.
- comctl32: Arrange the listview after deleting all items so we will place iconsat the top again.

svn path=/trunk/; revision=22849

13 years agoupdate ROS code to call new tests
Ged Murphy [Tue, 4 Jul 2006 21:05:16 +0000 (21:05 +0000)]
update ROS code to call new tests

svn path=/trunk/; revision=22848

13 years agoupdate comctl32 regression tests to Wine-0_9_16, which now includes listview testing
Ged Murphy [Tue, 4 Jul 2006 20:58:29 +0000 (20:58 +0000)]
update comctl32 regression tests to Wine-0_9_16, which now includes listview testing

svn path=/trunk/; revision=22847

13 years agorevert r22824 as requested by Fireball.
Ged Murphy [Tue, 4 Jul 2006 19:27:14 +0000 (19:27 +0000)]
revert r22824 as requested by Fireball.
The auto sync didn't work as expected.

svn path=/trunk/; revision=22843

13 years agoRevert netapi and mpr winesyncs (needs to be re-applied correctly next time)
Aleksey Bragin [Tue, 4 Jul 2006 19:22:00 +0000 (19:22 +0000)]
Revert netapi and mpr winesyncs (needs to be re-applied correctly next time)

svn path=/trunk/; revision=22842

13 years agoRevert cards.dll and crypt32.dll autowinesync.
Aleksey Bragin [Tue, 4 Jul 2006 19:14:19 +0000 (19:14 +0000)]
Revert cards.dll and crypt32.dll autowinesync.

svn path=/trunk/; revision=22841

13 years ago- CreateWindowExa/W
James Tabor [Tue, 4 Jul 2006 18:26:49 +0000 (18:26 +0000)]
- CreateWindowExa/W

svn path=/trunk/; revision=22840

13 years agoROS-specific patch for autosyncing with Wine
Aleksey Bragin [Tue, 4 Jul 2006 17:33:54 +0000 (17:33 +0000)]
ROS-specific patch for autosyncing with Wine

svn path=/trunk/; revision=22839

13 years ago- Misc formatting fixes.
Alex Ionescu [Tue, 4 Jul 2006 16:53:29 +0000 (16:53 +0000)]
- Misc formatting fixes.

svn path=/trunk/; revision=22838

13 years ago- Fix NtSetInformationFile to use correct sync/async semantics and use deferred I...
Alex Ionescu [Tue, 4 Jul 2006 16:50:56 +0000 (16:50 +0000)]
- Fix NtSetInformationFile to use correct sync/async semantics and use deferred I/O completion. This routine doesn't use IopSyncronous/Asyncronous helper routines because it can be optimized to handle some Information classes in-line (not currently being done except for Completion Ports, like the previous code).

svn path=/trunk/; revision=22837

13 years ago- Fix NtQueryInformationFile to use correct sync/async semantics and use deferred...
Alex Ionescu [Tue, 4 Jul 2006 15:36:55 +0000 (15:36 +0000)]
- Fix NtQueryInformationFile to use correct sync/async semantics and use deferred I/O completion. This routine doesn't use IopSyncronous/Asyncronous helper routines because it can be optimized to handle some Information classes in-line (not currently being done).

svn path=/trunk/; revision=22836

13 years agofix build
Johannes Anderwald [Tue, 4 Jul 2006 15:15:45 +0000 (15:15 +0000)]
fix build

svn path=/trunk/; revision=22835

13 years agoAutosyncing with Wine
The Wine Synchronizer [Tue, 4 Jul 2006 14:20:20 +0000 (14:20 +0000)]
Autosyncing with Wine

svn path=/trunk/; revision=22834

13 years agoAutosyncing with Wine
The Wine Synchronizer [Tue, 4 Jul 2006 14:17:14 +0000 (14:17 +0000)]
Autosyncing with Wine

svn path=/trunk/; revision=22833

13 years agoAutosyncing with Wine
The Wine Synchronizer [Tue, 4 Jul 2006 14:14:41 +0000 (14:14 +0000)]
Autosyncing with Wine

svn path=/trunk/; revision=22832

13 years agoAutosyncing with Wine
The Wine Synchronizer [Tue, 4 Jul 2006 14:12:07 +0000 (14:12 +0000)]
Autosyncing with Wine

svn path=/trunk/; revision=22831

13 years agoAutosyncing with Wine
The Wine Synchronizer [Tue, 4 Jul 2006 14:09:35 +0000 (14:09 +0000)]
Autosyncing with Wine

svn path=/trunk/; revision=22830

13 years agoAutosyncing with Wine
The Wine Synchronizer [Tue, 4 Jul 2006 14:04:07 +0000 (14:04 +0000)]
Autosyncing with Wine

svn path=/trunk/; revision=22829

13 years agoAutosyncing with Wine
The Wine Synchronizer [Tue, 4 Jul 2006 13:58:40 +0000 (13:58 +0000)]
Autosyncing with Wine

svn path=/trunk/; revision=22828

13 years agoAutosyncing with Wine
The Wine Synchronizer [Tue, 4 Jul 2006 13:55:42 +0000 (13:55 +0000)]
Autosyncing with Wine

svn path=/trunk/; revision=22827

13 years agoAutosyncing with Wine
The Wine Synchronizer [Tue, 4 Jul 2006 13:51:21 +0000 (13:51 +0000)]
Autosyncing with Wine

svn path=/trunk/; revision=22826

13 years agoAutosyncing with Wine
The Wine Synchronizer [Tue, 4 Jul 2006 13:46:00 +0000 (13:46 +0000)]
Autosyncing with Wine

svn path=/trunk/; revision=22824

13 years agoAutosyncing with Wine
The Wine Synchronizer [Tue, 4 Jul 2006 13:41:25 +0000 (13:41 +0000)]
Autosyncing with Wine

svn path=/trunk/; revision=22823

13 years ago* halfplemented console system menu
Johannes Anderwald [Tue, 4 Jul 2006 13:36:57 +0000 (13:36 +0000)]
* halfplemented console system menu

svn path=/trunk/; revision=22822

13 years agoAutosyncing with Wine
The Wine Synchronizer [Tue, 4 Jul 2006 13:33:18 +0000 (13:33 +0000)]
Autosyncing with Wine

svn path=/trunk/; revision=22821

13 years ago* remove unreferenced parameters warning in font.c layout.c colors.c
Johannes Anderwald [Tue, 4 Jul 2006 13:22:05 +0000 (13:22 +0000)]
* remove unreferenced parameters warning in font.c layout.c colors.c
* remove global structure g_ConsoleInfo
* implemented reading/writing of options dialog settings
* added apply dialog
* thnx to w3seek for help

svn path=/trunk/; revision=22820

13 years agoAutosyncing with Wine
The Wine Synchronizer [Tue, 4 Jul 2006 12:05:13 +0000 (12:05 +0000)]
Autosyncing with Wine

svn path=/trunk/; revision=22819

13 years ago- NtUser/CreateWindowExA/W:
James Tabor [Tue, 4 Jul 2006 05:56:25 +0000 (05:56 +0000)]
- NtUser/CreateWindowExA/W:
  - During testing I found one application not working with the new mdi support changes. VIDE from the Vgui C++ project was creating a bugcheck trying to access kernel space. Just for precautions I moved the kernel code back into user32. After testing the application, it worked fine. So, I'm reordering the execution of CreateWindowEx. Keeping a small part in kernel space and the rest in user. This has caused code duplication in user32, but I want to set this straight first. I will sort out the code duplication later. Sorry for the mess.

svn path=/trunk/; revision=22818

13 years agoRestore tinus patches.
James Tabor [Tue, 4 Jul 2006 02:32:33 +0000 (02:32 +0000)]
Restore tinus patches.

svn path=/trunk/; revision=22817

13 years agoWine port for DefWindowProcAW WM_NCCREATE help SetText.
James Tabor [Mon, 3 Jul 2006 22:36:09 +0000 (22:36 +0000)]
Wine port for DefWindowProcAW WM_NCCREATE help SetText.

svn path=/trunk/; revision=22816

13 years agopatch from LMH1 : see bug 1606
Magnus Olsen [Mon, 3 Jul 2006 22:28:49 +0000 (22:28 +0000)]
patch from LMH1  : see bug 1606
NORWEGIAN translations

svn path=/trunk/; revision=22815

13 years ago[AUDIT]
Johannes Anderwald [Mon, 3 Jul 2006 22:08:47 +0000 (22:08 +0000)]
[AUDIT]
* unlock win32csr
* win32csr is totally different implemented from NT Version
* audit reviewed by Alex_Ionescu

svn path=/trunk/; revision=22814

13 years agoMove hBmpClose to the MDICLIENTINFO structure and modified MDI_RestoreFrameMenu to...
James Tabor [Mon, 3 Jul 2006 22:04:42 +0000 (22:04 +0000)]
Move hBmpClose to the MDICLIENTINFO structure and modified MDI_RestoreFrameMenu to support the change.

svn path=/trunk/; revision=22813

13 years agoCommit bug 1347, patch from w3seek
Magnus Olsen [Mon, 3 Jul 2006 21:43:04 +0000 (21:43 +0000)]
Commit bug 1347, patch from w3seek

This patch implements the function TreeResetNamedSecurityInfoA. However, as it's not even implemented in windows, the code is disabled by default.

svn path=/trunk/; revision=22812

13 years agoforget this file sorry
Magnus Olsen [Mon, 3 Jul 2006 21:40:20 +0000 (21:40 +0000)]
forget this file sorry

svn path=/trunk/; revision=22811

13 years agotest case for QueueUserWorkItem from bug 1609
Magnus Olsen [Mon, 3 Jul 2006 21:29:32 +0000 (21:29 +0000)]
test case for QueueUserWorkItem from bug 1609
by w3seek

svn path=/trunk/; revision=22810

13 years agoset svn:eol-style:native
Johannes Anderwald [Mon, 3 Jul 2006 20:27:46 +0000 (20:27 +0000)]
set svn:eol-style:native

svn path=/trunk/; revision=22809

13 years ago5 of 4 commit (sorry my svn clinet is crazy for moment)
Magnus Olsen [Mon, 3 Jul 2006 20:27:38 +0000 (20:27 +0000)]
5 of 4 commit (sorry my svn clinet is crazy for moment)
Commit w3seek patch from bug 1609 : file attachment (id=910)
The attached patch implements QueueUserWorkItem()/RtlQueueWorkItem() (lacks
optimizations!!!). WINE's latest rpcrt4 relies on it.

1. Implement QueueUserWorkItem()/RtlQueueWorkItem() :
2. A slightly optimized
3. Supports WT_TRANSFER_IMPERSONATION
4. Slightly improved handling of growing/shrinking the pool by assuming work items with WT_EXECUTELONGFUNCTION run longer
5. Fixes a hack that made a worker thread always terminate if there were at least one more thread available

svn path=/trunk/; revision=22808

13 years ago4 of 4 commit (sorry my svn clinet is crazy for moment)
Magnus Olsen [Mon, 3 Jul 2006 20:26:58 +0000 (20:26 +0000)]
4 of 4 commit (sorry my svn clinet is crazy for moment)
Commit w3seek patch from bug 1609 : file attachment (id=910)
The attached patch implements QueueUserWorkItem()/RtlQueueWorkItem() (lacks
optimizations!!!). WINE's latest rpcrt4 relies on it.

1. Implement QueueUserWorkItem()/RtlQueueWorkItem() :
2. A slightly optimized
3. Supports WT_TRANSFER_IMPERSONATION
4. Slightly improved handling of growing/shrinking the pool by assuming work items with WT_EXECUTELONGFUNCTION run longer
5. Fixes a hack that made a worker thread always terminate if there were at least one more thread available

svn path=/trunk/; revision=22807

13 years ago3 of 4 commit (sorry my svn clinet is crazy for moment)
Magnus Olsen [Mon, 3 Jul 2006 20:24:46 +0000 (20:24 +0000)]
3 of 4 commit (sorry my svn clinet is crazy for moment)
Commit w3seek patch from bug 1609 : file attachment (id=910)
The attached patch implements QueueUserWorkItem()/RtlQueueWorkItem() (lacks
optimizations!!!). WINE's latest rpcrt4 relies on it.

1. Implement QueueUserWorkItem()/RtlQueueWorkItem() :
2. A slightly optimized
3. Supports WT_TRANSFER_IMPERSONATION
4. Slightly improved handling of growing/shrinking the pool by assuming work items with WT_EXECUTELONGFUNCTION run longer
5. Fixes a hack that made a worker thread always terminate if there were at least one more thread available

svn path=/trunk/; revision=22806

13 years ago2 of 4 commit (sorry my svn clinet is crazy for moment)
Magnus Olsen [Mon, 3 Jul 2006 20:23:48 +0000 (20:23 +0000)]
2 of 4 commit (sorry my svn clinet is crazy for moment)
Commit w3seek patch from bug 1609 : file attachment (id=910)
The attached patch implements QueueUserWorkItem()/RtlQueueWorkItem() (lacks
optimizations!!!). WINE's latest rpcrt4 relies on it.

1. Implement QueueUserWorkItem()/RtlQueueWorkItem() :
2. A slightly optimized
3. Supports WT_TRANSFER_IMPERSONATION
4. Slightly improved handling of growing/shrinking the pool by assuming work items with WT_EXECUTELONGFUNCTION run longer
5. Fixes a hack that made a worker thread always terminate if there were at least one more thread available

svn path=/trunk/; revision=22805

13 years ago1 of 4 commit (sorry my svn clinet is crazy for moment)
Magnus Olsen [Mon, 3 Jul 2006 20:23:10 +0000 (20:23 +0000)]
1 of 4 commit (sorry my svn clinet is crazy for moment)
Commit w3seek patch from bug 1609 : file attachment (id=910)
The attached patch implements QueueUserWorkItem()/RtlQueueWorkItem() (lacks
optimizations!!!). WINE's latest rpcrt4 relies on it.

1. Implement QueueUserWorkItem()/RtlQueueWorkItem() :
2. A slightly optimized
3. Supports WT_TRANSFER_IMPERSONATION
4. Slightly improved handling of growing/shrinking the pool by assuming work items with WT_EXECUTELONGFUNCTION run longer
5. Fixes a hack that made a worker thread always terminate if there were at least one more thread available

svn path=/trunk/; revision=22804

13 years agoRestored sequence for setting WindowObject and callers styles.
James Tabor [Mon, 3 Jul 2006 20:04:17 +0000 (20:04 +0000)]
Restored sequence for setting WindowObject and callers styles.

svn path=/trunk/; revision=22803

13 years agowrong propyty on inlcude file it is not a executable format
Magnus Olsen [Mon, 3 Jul 2006 19:59:50 +0000 (19:59 +0000)]
wrong propyty on inlcude file it is not a executable format

svn path=/trunk/; revision=22802

13 years ago* dont perform IntValidateWindowStationHandle in UserCreateMenu when current process...
Johannes Anderwald [Mon, 3 Jul 2006 19:25:48 +0000 (19:25 +0000)]
* dont perform IntValidateWindowStationHandle in UserCreateMenu when current process is CsrProcess
* this makes system menu for cmd.exe display
* patch reviewed by w3seek and tested by me

svn path=/trunk/; revision=22801

13 years agoFix a typo (should have been commented from the beginning) in autochk: this removes...
Aleksey Bragin [Mon, 3 Jul 2006 16:51:19 +0000 (16:51 +0000)]
Fix a typo (should have been commented from the beginning) in autochk: this removes UM exception in autochk during bootup

svn path=/trunk/; revision=22800

13 years agoAdd a big warning about installing custom drivers
Hervé Poussineau [Mon, 3 Jul 2006 15:04:46 +0000 (15:04 +0000)]
Add a big warning about installing custom drivers

svn path=/trunk/; revision=22799

13 years agoDefine DLL_WINE_PREATTACH constant
Hervé Poussineau [Mon, 3 Jul 2006 14:00:16 +0000 (14:00 +0000)]
Define DLL_WINE_PREATTACH constant

svn path=/trunk/; revision=22798

13 years agoAdd missing constants
Hervé Poussineau [Mon, 3 Jul 2006 10:19:42 +0000 (10:19 +0000)]
Add missing constants

svn path=/trunk/; revision=22796

13 years ago-NtUserCreateWindowEx: Removed not about setting WS_CHILD.
James Tabor [Mon, 3 Jul 2006 07:54:45 +0000 (07:54 +0000)]
-NtUserCreateWindowEx: Removed not about setting WS_CHILD.

svn path=/trunk/; revision=22795

13 years ago-NtUserCreateWindowEx: Don't force WS_CHILD set, it could be WS_POPUP.
James Tabor [Mon, 3 Jul 2006 07:52:22 +0000 (07:52 +0000)]
-NtUserCreateWindowEx: Don't force WS_CHILD set, it could be WS_POPUP.

svn path=/trunk/; revision=22794

13 years agoAdd more defines for anonymous structure/union names
Hervé Poussineau [Mon, 3 Jul 2006 07:43:28 +0000 (07:43 +0000)]
Add more defines for anonymous structure/union names

svn path=/trunk/; revision=22793

13 years ago- NtUser/CreateWindowExA/W:
James Tabor [Mon, 3 Jul 2006 04:33:29 +0000 (04:33 +0000)]
- NtUser/CreateWindowExA/W:
  - Add support for WS_EX_MDICHILD. Reordered sequence for setting WindowObject and callers styles.
  - Synced mdi.c from Wine. Added support function MDI_GetId help return IDMenu.
  - Thanks to GreatLord for helping.

svn path=/trunk/; revision=22792

13 years ago- NtQueryDirectoryFile:
Alex Ionescu [Mon, 3 Jul 2006 02:50:16 +0000 (02:50 +0000)]
- NtQueryDirectoryFile:
  - Setup a buffer/MDL and the correct IRP flags so that that I/O manager can handle allocation, copy, free for us.
  - Setup the search pattern as an auxiliary buffer so that the I/O Mgr can track that one for us as well.
  - Update to use the correct sync semantics/routines.
  - Use deferred I/O completion.
- Outline TODOs and workplan for iofunc.c

svn path=/trunk/; revision=22791

13 years ago- NtWriteFile:
Alex Ionescu [Mon, 3 Jul 2006 01:17:14 +0000 (01:17 +0000)]
- NtWriteFile:
  - Allow async i/o access on mailslots, without a byte offset.
  - Fix sync semantics just like for the other functions until now.
  - Fix a potential object leak in  a failure case.
  - Don't call IoBuildSyncronousFsdRequest since we want to build the IRP ourselves.
  - Use deferred I/O as an optimization.

svn path=/trunk/; revision=22790

13 years ago- NtReadFile:
Alex Ionescu [Sun, 2 Jul 2006 23:02:38 +0000 (23:02 +0000)]
- NtReadFile:
  - Allow async i/o access on mailslots, without a byte offset.
  - Fix sync semantics just like for the other functions until now.
  - Fix a potential object leak in  a failure case.
  - Don't call IoBuildSyncronousFsdRequest since we want to build the IRP ourselves.
  - Use deferred I/O as an optimization.

svn path=/trunk/; revision=22789

13 years ago- Same sort of changes for NtSetVolumeInformationFile.
Alex Ionescu [Sun, 2 Jul 2006 22:19:29 +0000 (22:19 +0000)]
- Same sort of changes for NtSetVolumeInformationFile.

svn path=/trunk/; revision=22788

13 years ago- Fix sync usage in NtQueryVolumeInformationFile, set the right IRP flags so that...
Alex Ionescu [Sun, 2 Jul 2006 22:14:20 +0000 (22:14 +0000)]
- Fix sync usage in NtQueryVolumeInformationFile, set the right IRP flags so that the I/O manager can handle copying the data back and freeing the buffer, and enable deferred completion.

svn path=/trunk/; revision=22787

13 years ago- Add proper sync handling to NtUnlockFile.
Alex Ionescu [Sun, 2 Jul 2006 22:07:20 +0000 (22:07 +0000)]
- Add proper sync handling to NtUnlockFile.

svn path=/trunk/; revision=22786

13 years agoMikhail Zvyozdochkin: Fix compiling on linux (adding missing headers inclusion)
Aleksey Bragin [Sun, 2 Jul 2006 22:03:40 +0000 (22:03 +0000)]
Mikhail Zvyozdochkin: Fix compiling on linux (adding missing headers inclusion)

svn path=/trunk/; revision=22785

13 years agoMikhail Zvyozdochkin: Fix compiling on linux (adding proper include path for halxbox)
Aleksey Bragin [Sun, 2 Jul 2006 21:59:04 +0000 (21:59 +0000)]
Mikhail Zvyozdochkin: Fix compiling on linux (adding proper include path for halxbox)

svn path=/trunk/; revision=22784

13 years agoDelete now useless code
Hervé Poussineau [Sun, 2 Jul 2006 21:35:31 +0000 (21:35 +0000)]
Delete now useless code

svn path=/trunk/; revision=22782

13 years agoDelete now useless code
Hervé Poussineau [Sun, 2 Jul 2006 21:35:06 +0000 (21:35 +0000)]
Delete now useless code

svn path=/trunk/; revision=22781

13 years agoRename richedit to riched32 and lzexpand to lz32
Hervé Poussineau [Sun, 2 Jul 2006 21:33:02 +0000 (21:33 +0000)]
Rename richedit to riched32 and lzexpand to lz32

svn path=/trunk/; revision=22780

13 years agoImplement CM_Open_DevNode_Key and add CM_Open_DevNode_Key_Ex stub.
Eric Kohl [Sun, 2 Jul 2006 19:20:45 +0000 (19:20 +0000)]
Implement CM_Open_DevNode_Key and add CM_Open_DevNode_Key_Ex stub.

svn path=/trunk/; revision=22777

13 years ago- More of the same for NtNotifyChangeDirectoryFile.
Alex Ionescu [Sun, 2 Jul 2006 19:11:26 +0000 (19:11 +0000)]
- More of the same for NtNotifyChangeDirectoryFile.

svn path=/trunk/; revision=22776

13 years ago- NtLockFile:
Alex Ionescu [Sun, 2 Jul 2006 19:01:17 +0000 (19:01 +0000)]
- NtLockFile:
  - Add proper sync operation.
  - Set the APC Routine/Context in the IRP instead of ignoring them.
  - Dereference the event on failure.
  - Set the allocated buffer as AuxiliaryBuffer so the I/O manager fres it.

svn path=/trunk/; revision=22775

13 years ago- Temporarily disable queueing IRPs to their threads, since raising to APC_LEVEL...
Alex Ionescu [Sun, 2 Jul 2006 18:47:54 +0000 (18:47 +0000)]
- Temporarily disable queueing IRPs to their threads, since raising to APC_LEVEL seems to cause some weird user-mode exceptions.

svn path=/trunk/; revision=22774

13 years agoImplement IopReinitializeBootDrivers, on the model of IopReinitializeDrivers
Hervé Poussineau [Sun, 2 Jul 2006 18:34:21 +0000 (18:34 +0000)]
Implement IopReinitializeBootDrivers, on the model of IopReinitializeDrivers

svn path=/trunk/; revision=22773

13 years ago- Move NtCancelIoFile and NtDeleteFile to file.c, they don't deal with IRPs.
Alex Ionescu [Sun, 2 Jul 2006 18:20:37 +0000 (18:20 +0000)]
- Move NtCancelIoFile and NtDeleteFile to file.c, they don't deal with IRPs.
- Create IopFinalizeAsynchronousIo to deal with Sync APIs working on Async file objects, which need to be waited on differently and have the IOSB copied manually.
- Update NtFlushBuffersFile to new semantics (ie, usage of the new implemented functions).

svn path=/trunk/; revision=22772

13 years ago- Same changes for IoSertInformation: Lock the FO, queue the IRP, support alerted...
Alex Ionescu [Sun, 2 Jul 2006 16:41:49 +0000 (16:41 +0000)]
- Same changes for IoSertInformation: Lock the FO, queue the IRP, support alerted I/O, etc...

svn path=/trunk/; revision=22771

13 years ago- Combine IoQueryVolumeInformation and IoQueryFileInformation
Alex Ionescu [Sun, 2 Jul 2006 16:35:05 +0000 (16:35 +0000)]
- Combine IoQueryVolumeInformation and IoQueryFileInformation
- Fix them to lock the fileobject for synch operations, use IopCleanupFailedIrp, queue the IRP in the thread's list, support aborting the I/o operation through IopAbortInterruptedIrp, and properly wait for comlpetion.

svn path=/trunk/; revision=22770

13 years ago- Start of heavy work on iofunc.c:
Alex Ionescu [Sun, 2 Jul 2006 16:20:10 +0000 (16:20 +0000)]
- Start of heavy work on iofunc.c:
  - Created our new friends: IopCleanupFailedIrp, IopAbortInterruptedIrp, IopPerformSynchronousRequest, IopLockFileObject, IopUnlockFileObject, IopQueueIrpToThread, IopUpdateOperationCount.
  - What does this mean: We actually queue IRPs to their thread! We actually respect I/O transfers being interrupted/alerted! We actually respect I/O operation counts! We actually LOCK FILE OBJECTS instead of randomly using them! We now support Deferred (read: MUCH faster) I/O completion.
- First function blessed: IopDeviceFsIoControl.
- Also simplified access rights check and fixedup some formatting.

svn path=/trunk/; revision=22769

13 years ago- Fix formatting of some newly added functions before starting heavy work.
Alex Ionescu [Sun, 2 Jul 2006 14:26:25 +0000 (14:26 +0000)]
- Fix formatting of some newly added functions before starting heavy work.

svn path=/trunk/; revision=22768

13 years ago- Move IoGetBaseFileSystemDeviceObject to device.c and make it check for FO_DIRECT_DE...
Alex Ionescu [Sun, 2 Jul 2006 06:28:29 +0000 (06:28 +0000)]
- Move IoGetBaseFileSystemDeviceObject to device.c and make it check for FO_DIRECT_DEVICE_OPEN, which it wasn't before (and also code it in a less confusing way like the other IoGetXxxDeviceObject APIs)
- Mask out the DO_VERIFY_VOLUME flag when mounting a device.

svn path=/trunk/; revision=22767

13 years ago- Small optimization: don't bother to get the File System Listhead we'll parse if...
Alex Ionescu [Sun, 2 Jul 2006 06:18:55 +0000 (06:18 +0000)]
- Small optimization: don't bother to get the File System Listhead we'll parse if we're going to fail because of wrong VPB flags later... get the list only after we're sure we need it.

svn path=/trunk/; revision=22766

13 years ago- Use IoIsErrorUserInoduced to check if we couldn't mount the device because it was...
Alex Ionescu [Sun, 2 Jul 2006 06:15:52 +0000 (06:15 +0000)]
- Use IoIsErrorUserInoduced to check if we couldn't mount the device because it was not actually inserted, was unrocognized, write-protected, etc... and completely break out of the mounting procedure if so.
- Also use FsRtlIsTotalDeviceFailure to check if the error was a fatal device error (like a CRC error) and abandon mounting in this case as well.

svn path=/trunk/; revision=22765

13 years ago- Implement IopInitailizeVpbForMount for the purpose of setting up the VPB for a...
Alex Ionescu [Sun, 2 Jul 2006 06:11:19 +0000 (06:11 +0000)]
- Implement IopInitailizeVpbForMount for the purpose of setting up the VPB for a newly mounted DO. It properly references the VPB and sets up its stack size and flags, adding support for VPB_RAW_MOUNT. Also sets the VPB pointer in the DevObjExtension.
- Fix a bug which was causing us to incorrectly unlock the device if it was already locked by the caller isntead of by IopMountVolume.
- When loading the file system, make sure to unlock the device object if we had locked it in IopMountVolume, as well as to re-lock it afterwards. Also handle a potential race condition due to this unloacking, in which the VPB might've become mounted behind our back, and simply return success if this happened.

svn path=/trunk/; revision=22764