Compare commits

...

6405 Commits

Author SHA1 Message Date
Ziliang Guo
d39dd8a4b8 Fix bad revert of wininet wine sync and remove the actual sync.
See issue #5663 for more details.

svn path=/branches/ros-branch-0_3_12/; revision=49121
2010-10-11 20:21:12 +00:00
Ziliang Guo
0fac188072 Revert wininet sync take two. Hopefully caught all of the changes this in winnet folder this time.
See issue #5663 for more details.

svn path=/branches/ros-branch-0_3_12/; revision=49120
2010-10-11 19:57:17 +00:00
Ziliang Guo
bb273dbd90 Revert wininet Wine 1.2RC sync for release. Resource file left intact.
See issue #5663 for more details.

svn path=/branches/ros-branch-0_3_12/; revision=49119
2010-10-11 19:19:48 +00:00
Colin Finck
3290c44dfa Remove the entries for the old boot method.
If the old boot method is finally obsolete, this should go to Trunk as well along with removing the old boot method entirely from Freeloader.

svn path=/branches/ros-branch-0_3_12/; revision=49052
2010-10-08 14:53:51 +00:00
Colin Finck
8c9ff4bab8 Hack: Hackfix the HitTest problem in mstsc as it was done for previous releases
svn path=/branches/ros-branch-0_3_12/; revision=49051
2010-10-08 14:33:49 +00:00
Colin Finck
37144b8145 - Change the version to 0.3.12
- Set "Angelus_02_ROSWP.bmp" as the default wallpaper
- Add a shortcut to RApps to the Desktop

svn path=/branches/ros-branch-0_3_12/; revision=49038
2010-10-07 18:31:36 +00:00
Kamil Hornicek
3e286e5559 Don't deny people their bugchecks. Merge r49031.
svn path=/branches/ros-branch-0_3_12/; revision=49032
2010-10-07 14:07:45 +00:00
Sylvain Petreolle
ca3ffb137e Merge 48968 to 0.3.12 branch.
svn path=/branches/ros-branch-0_3_12/; revision=48971
2010-10-03 21:33:31 +00:00
Daniel Reimer
256b84b2b9 Merge 48915 and 48923 to 0.3.12 branch.
svn path=/branches/ros-branch-0_3_12/; revision=48969
2010-10-03 17:02:54 +00:00
Kamil Hornicek
37a0f9ada3 Merge 48917
svn path=/branches/ros-branch-0_3_12/; revision=48920
2010-09-28 14:41:18 +00:00
Kamil Hornicek
ae25ba5bad Fixes for bugs: 5591, 5482, 5517, 5472, 5554 and 5567
These issues are either already fixed in the yarotows branch or will be solved with next sync of corresponding libs. Merging or doing full syncs before release could cause more troubles so I hope these (hack)fixes are justified.

svn path=/branches/ros-branch-0_3_12/; revision=48911
2010-09-27 21:12:09 +00:00
Amine Khaldi
9b07516436 - Bugs 5536, 5614, 5604, 5617 and 5540: Apply translation patches provided by Mario Kacmar, Marcelo Zamperetti, Igor Paliychuk, Paolo Devoti and seven_ro.
svn path=/trunk/; revision=48847
2010-09-22 19:29:20 +00:00
Sir Richard
409884a7ce [FREELDR]: Fix the last remaining build issue. Libgcc needs to be linked to provide umovsi/udivsi, etc (same fix as for setupldr).
svn path=/trunk/; revision=48846
2010-09-21 17:50:01 +00:00
Amine Khaldi
d09d10d12d [KERNEL32]
- Sylvain Petreolle: Fix debug channels for release builds.

svn path=/trunk/; revision=48845
2010-09-21 17:14:22 +00:00
Sir Richard
b60395bc25 [HAL]: Partly implement HalpAdjustPCIResourceList required for legacy HAL. No actual adjustment is done yet, since the Range package is not implemented.
[HAL]: Implement most of HalpGetISAFixedPCIIrq, other than the legacy PCI IRQ Routing Miniport callbacks, which aren't yet implemented by ReactOS.
The Windows PCI Bus Driver seems to work now.

svn path=/trunk/; revision=48844
2010-09-21 17:07:40 +00:00
Aleksey Bragin
7e91f6cbe7 - Update 3rd Party Files.txt To Current 3rd Party Releases.
See issue #5603 for more details.

svn path=/trunk/; revision=48843
2010-09-21 08:30:56 +00:00
Sir Richard
88e1640ef7 Patches to allow Windows PCI Bus Driver to start working somewhat (need to implement HalAdjustResourceList for PCI to make it go further):
[BOOTDATA]: Windows Bus Drivers/HAL/Kernel require Arbiter data in the registry placed by the installer, otherwise they will not load. Add this Arbiter data.
[NTOS]: Add support for KeyValueFullInformationAlign64, used by some Windows drivers (as a bonus, support Win64). PartialInformationAlign64 is a different beast -- warn when a driver attempts to use it, instead of silent failure.
[NTOS]: Export VfFailSystemBIOS and stub it.
[NTOS]: Warn when a driver fails to load due to a missing dependency and print the name and/or missing module, instead of silently failing.
[NTOS]: Due to a bug in the ReactOS PnP manager, Windows PCI Driver hits an internal pseudo-assert. Hack KeBugCheckEx to ignore this pseudo-assert and continue executing normally.

svn path=/trunk/; revision=48839
2010-09-21 05:34:05 +00:00
Cameron Gutman
12d05b7eb8 [TCPIP]
- Process the timer event directly from the DPC instead of queuing a work item then raising to DISPATCH_LEVEL later when acquiring a spin lock
- Optimize the spin lock operations in NBTimeout and IPDatagramReassemblyTimeout for being called at DISPATCH_LEVEL

svn path=/trunk/; revision=48833
2010-09-20 19:08:40 +00:00
Michael Martin
a5a6cf644d [usb/usbhub]
- WaitForUsbDeviceArrivalNotification: Dont use IoBuildDeviceIoControlRequest to create the IRP as we dont wait for the IRP to complete in the current thread. It must be built using IoAllocateIrp.
- DeviceArrivalCompletion: Allocate the WorkItem from NonPagedPool vice using one in the DeviceExtension. Free the Irp and return STATUS_MORE_PROCESSING_REQUIRED so the IO Manager doesnt try to do anything more with the now freed Irp.
- When selecting the Interface use the routines in USBD library now that they are implemented correctly.
- More fixes for passing the correct DeviceObject when calling QueryRootHub.


svn path=/trunk/; revision=48826
2010-09-20 06:55:54 +00:00
Sir Richard
56738210e7 [MISC]: Fix several compiler issues on my main build box. Some of the Unicode translations in kernel32 fail to compile, while other libraries don't build because old C library names (without the underscore) are used.
[SETUPLDR]: Unify the old setupldr settings with more recent freeldr ones. Also fixes missing _udiv/mod functions on my build.

svn path=/trunk/; revision=48825
2010-09-20 06:30:21 +00:00
Eric Kohl
9c6c2c7c45 [USETUP]
Add Brazilian portuguese USETUP localization patch by Edison Henrique Andreassy.


See issue #5313 for more details.

svn path=/trunk/; revision=48813
2010-09-19 12:46:54 +00:00
Aleksey Bragin
0dc63433f9 [DESK.CPL]
Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
- Renamed GLOBAL_DATA structures to DATA.
- Added real GLOBAL_DATA in background.c, that manages the background color.
- Resolved conflict of background colors in background.c and appearance.c.
- Fixed drawing the menu in draw.c.
See issue #5620 for more details.

svn path=/trunk/; revision=48812
2010-09-19 11:54:33 +00:00
Michael Martin
3a615a70fb [usb/usbd]
- Fix calculation bug in USBD_ParseDescriptors which caused descriptors to be skipped and all Parse functions to return bad information.
- USBD_CreateConfigurationRequestEx: Fix calculation for the size of the URB.
Dont copy the InterfaceList to the Urbs Interface member as they are not the same structures.  Instead loop through each interface and endpoint to get the data needed for the Interface member of URB.
- USBD_GetInterfaceLength: Add missing brackets for the FOR LOOP. The first descriptors length is part of the Length regardless of what it is.
If bDescriptorType of USB_INTERFACE_DESCRIPTOR_TYPE is reached a second time then break from the loop, as the length calculation is done.

svn path=/trunk/; revision=48810
2010-09-19 00:30:49 +00:00
Cameron Gutman
cf913565c0 [IP]
- Fix a reference leak when aborting a listen request

svn path=/trunk/; revision=48806
2010-09-18 15:50:56 +00:00
Aleksey Bragin
41106fa541 [NTOS]
- Add support for Cyrix CPUs by checking and applying a workaround for the Cyrix 6x COMA bug (description here: http://gwyn.tux.org/~balsa/linux/cyrix/p11.html).
See issue #5610 for more details.

svn path=/trunk/; revision=48801
2010-09-18 09:14:45 +00:00
Aleksey Bragin
becc9ed282 [SC]
- Roel Messiant: Fix a crash when running some operations in sc without providing arguments. Also, provide usage information for the control and unknown commands.
- Aleksey Bragin: Take Ged Murphy's comments into account and change pointer arithmetic to a convenient style.
See issue #5611 for more details.

svn path=/trunk/; revision=48800
2010-09-18 08:41:06 +00:00
Aleksey Bragin
2c10fb5d07 [OLE32]
- Sync to Wine-20100918.
See issue #5592 for more details.

svn path=/trunk/; revision=48795
2010-09-17 20:13:28 +00:00
Timo Kreuzer
2cc0f42e45 [SHELL32]
Johannes Anderwald:
- Partly revert 48786
- Use existing sLinkPath instead of own grown sCurFile
- Fixes 6 more winetest failures, 4 to go for shellink test

svn path=/trunk/; revision=48792
2010-09-17 19:00:12 +00:00
Amine Khaldi
c8d65c59a4 [SHELL32]
Johannes Anderwald:
- Improve parameter checks for IShellLinkA interface.
- Fix heap corruption when an invalid pointer is passed.
- Implement IPersistFile_fnGetCurFile.
- TODO: Add same checks to IShellLinkW interface and fix IShellLink[A|W]::GetPath / SetPath / SetIdList / GetIdList logic.

svn path=/trunk/; revision=48786
2010-09-17 10:26:17 +00:00
Timo Kreuzer
253e949e7a [WIN32K]
Fix a bug, where a failure to allocate the kernel mode WINDOW_OBJECT would cause a page fault, because the WND was still allocated, but never initialized, and Wnd->rpdesktop was then dereferenced to free the WND again.

svn path=/trunk/; revision=48785
2010-09-17 01:34:50 +00:00
Timo Kreuzer
30fad2a263 [NTOS]
- More fixes to VDM PUSH/POPF code: 
- When doing a 32bit push, don't store the flags 2 bytes off
- Recalculate HardwareEsp, by substracting the segment part, instead of truncating the flat pointer to 16 bit.

svn path=/trunk/; revision=48781
2010-09-16 19:21:20 +00:00
Sir Richard
cdebe5691a Patch by Anton Yarotsky:
[NTOSKRNL]: Fix support for non Headless scenarios as well.

svn path=/trunk/; revision=48780
2010-09-16 02:22:10 +00:00
Timo Kreuzer
c2e13c8c49 Fix arm build a bit.
svn path=/trunk/; revision=48779
2010-09-15 23:48:38 +00:00
Sir Richard
af197a47b2 Patch by Anton Yarotsky:
[NTOSKRNL]: Implement CmdPutString command, and add log message types. Kernel version/build, processor, and RAM, now appear on EMS screen (due to InbvDisplayString), as well as loaded drivers. Next steps are to support log entries and a flag to route debug output (a ReactOS-specific feature request).

svn path=/trunk/; revision=48778
2010-09-15 18:30:06 +00:00
Michael Martin
0b77725d6e [usb/usbehci]
- Change email address to one that actually works.

svn path=/trunk/; revision=48777
2010-09-15 13:16:59 +00:00
Amine Khaldi
61ae4ea31c [DDK]
- Define DECLSPEC_EXPORT when it's not already defined.

svn path=/trunk/; revision=48774
2010-09-15 09:03:57 +00:00
Sir Richard
b52bd79196 Patch by Anton Yarotsky:
[NTOSKRNL]: Implement basic Headless support in the kernel. Implement missing InbvPort routines based on WinLdrPort (using cportlib). Add header for Hdl. Terminal initializes now on COM2. Added misisng code to InbvDisplayString to also display on Headless Terminal (requires unimplemented HeadlessDispatch). Next steps are to implement the kernel log buffer, and HeadlessCmdPutString to see boot strings.

svn path=/trunk/; revision=48773
2010-09-15 07:46:28 +00:00
Sir Richard
c806e95592 Patch by Anton Yarotsky:
[FREELDR]: Fix Headless support.

svn path=/trunk/; revision=48772
2010-09-15 07:40:50 +00:00
Michael Martin
7a26c678b7 [usb/usbhub]
- On completion of SCE request, create and queue a workitem to handle:
Clearing the connection flag and reset the port. 
Create and initialize the USB device by calling the appropriate roothubs Direct Call Interface.
Create the device object, get the device descriptors and the serial and product strings of the USB device to be used for creating the deviceid and instanceid.
- Format code and misc changes.
- Together with the usbehci driver, ReactOS at least runs the device installation wizard with the correct device description.

svn path=/trunk/; revision=48771
2010-09-14 12:04:15 +00:00
Michael Martin
45bd4d8031 [usb/usbehci]
- Dont reset the port in the DPC after device is connected, the usbhub driver will do that later.
- Implement ResetPort and create a timer to call a DPC to coplete the SCE request.
- Dont queue all URBs and have seperate thread complete them as other URBs may still need to be completed.
Instead only queue the SCE request and complete it when a usb device is connected or reset.
- Implement RemoveURBRequest and fix bugs in URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE.
- For IOCTL_INTERNAL_USB_GET_ROOTHUB_PDO dont return the FDO in Argument2 as no upper level driver should be communicating with the FDO of the roothub.
- Dont assign the usb device an address when initialized as the hub driver will do it later.

svn path=/trunk/; revision=48770
2010-09-14 09:46:28 +00:00
Sir Richard
ef0d280232 Patch by Anton Yarotsky:
[FREELDR]: Implement support for /redirect=comX (usebiossettings not yet supported) and /redirectbaudrate. Uses cportlib. Tested, serial output works and kernel reports "Headless support is not yet implemented". Future revisions should support ACPI SRT for PCI-based serial ports on server systems.

svn path=/trunk/; revision=48768
2010-09-13 20:36:49 +00:00
Amine Khaldi
1a554af4a0 [USETUP]
- Sylvain Petreolle: Improve debug prints for disk space check.

svn path=/trunk/; revision=48767
2010-09-13 17:25:00 +00:00
Amine Khaldi
9c827ade73 [USETUP]
- Christoph von Wittich: Add a debug print, and improve an existing one.

svn path=/trunk/; revision=48766
2010-09-13 16:34:15 +00:00
Eric Kohl
cab60ab876 [BATT]
Add missing 4th parameter to BatteryClassCoInstaller.

svn path=/trunk/; revision=48764
2010-09-13 11:48:59 +00:00
Cameron Gutman
b4473ff304 [DESK]
- "repair DragFullWindows setting"
- Patch by Matthias Kupfer

svn path=/trunk/; revision=48761
2010-09-12 20:10:27 +00:00
Sir Richard
903bb1c887 Likely fix for bug 5600:
[NTOS]: Using IsBadRead/CodePtr, it's possible for user-mode code to generate cases where we *think* this is an ARM3-managed piece of VA, which will always have a VAD (Since we only manage the PEB/TEB), but actually it's a bogus VA-looking address that is actually invalid. We didn't consider this case. We now implement the same code Windows normally would also handle, when the VA is bogus, and accept that no VAD might be found, so MM_NOACCESS is returned and thus an access violation sent to the caller. In the case of the IsBad...Ptr, this function would then return TRUE, as the caller expects.

svn path=/trunk/; revision=48759
2010-09-12 19:10:27 +00:00
Sir Richard
3f003e294e [NTOS]: Move the fix for pool corruption due to dangling MmProcessLinks pointer into its correct location. Thanks again to Martin for the fix.
svn path=/trunk/; revision=48758
2010-09-12 19:02:39 +00:00
Eric Kohl
46d89d3a50 Make Services.exe and Winlogon.exe wait for the LSA server to be up and running. Otherwise calls to any LSA function might fail.
Thanks to Roel Messiant for testing and analyzing the debug logs.

See issue #5497 for more details.

svn path=/trunk/; revision=48757
2010-09-12 16:29:43 +00:00
Amine Khaldi
2270e330b0 [PSDK]
- Properly guard d3d9types.h and d3dtypes.h against DIRECT3D_VERSION versions.

svn path=/trunk/; revision=48754
2010-09-12 14:51:32 +00:00
Aleksey Bragin
078476414c - Revert 48750, I was misinformed.
svn path=/trunk/; revision=48753
2010-09-12 12:14:46 +00:00
Cameron Gutman
804899ffc6 [NDIS]
- Fix timer queuing
- See issue #5461 for details

svn path=/trunk/; revision=48752
2010-09-12 11:57:55 +00:00
Aleksey Bragin
8fcb361453 [PCIX]
- Stefan Ginsberg: Fix a typo in the if expression.

svn path=/trunk/; revision=48751
2010-09-12 10:35:01 +00:00
Aleksey Bragin
5bb5788d76 [NTOS]
- Add CmRegistryMachineSystemName to the internal header file, needed for Pierre's further work.

svn path=/trunk/; revision=48750
2010-09-12 10:29:35 +00:00
Aleksey Bragin
526130ba91 [FREETYPE]
- Fix FT_Get_CID_Is_Internally_CID_Keyed export name to match source code.

svn path=/trunk/; revision=48749
2010-09-12 10:11:55 +00:00
Sir Richard
6575a83c33 - Fix the ChangeResourceSetting and the Reset configurator callback parameter names
- Part support for resource change with PciComputeNewCurrentSettings... full support for PciSetResources, PciUpdateHardware, PcipUpdateHardare
- IRP_MN_START_DEVICE for PDO (PciPdoIrpStartDevice) implement 
- PciNextPartialDescriptor, PciDebugPrintCmResList, PciDebugPrintPartialResource helpers implement
- Now full PDO support almost done, PCIX driver ready for test
- Thanks to cgoodman assert fix
- PnP forever recursion in enumerate, must fix to finish
- Goodbye sir_richard, nice to have you

svn path=/trunk/; revision=48748
2010-09-12 06:03:12 +00:00
Cameron Gutman
a0b7f0f4b9 [USETUP]
- Update the Polish translation
- Patch by Olaf Siejka

svn path=/trunk/; revision=48747
2010-09-12 00:47:07 +00:00
Aleksey Bragin
a14482e225 [WINLOGON]
- Fix comments copypasta.

svn path=/trunk/; revision=48746
2010-09-11 21:16:41 +00:00
Aleksey Bragin
a5c563dfdb [NTOS]
- Daniel Zimmermann: Fix POPF bugs in VDM mode, namely truncation of the stackpointer to 16 bit and setting proper flags in the trapframe eflags register. This fixes problems with videocards calling int 0x10 VESA BIOS extension.
See issue #5608 for more details.

svn path=/trunk/; revision=48745
2010-09-11 09:20:26 +00:00
Aleksey Bragin
b8cbac25c2 - Fix build, sorry.
svn path=/trunk/; revision=48744
2010-09-11 09:01:58 +00:00
Aleksey Bragin
c9888046ef [HAL]
- Don't include PCI IDs database into mini-HAL.

svn path=/trunk/; revision=48743
2010-09-10 21:57:46 +00:00
Eric Kohl
c3c0a62855 [DESK.CPL]
Fix client font in the advanced appearance dialog. Patch by Katayama Hirofumi.
See issue #5552 for more details.

svn path=/trunk/; revision=48742
2010-09-10 21:57:36 +00:00
Aleksey Bragin
9488b4aab6 [FORMATTING]
- Fix indentation.

svn path=/trunk/; revision=48741
2010-09-10 21:51:32 +00:00
Aleksey Bragin
2d246e918e [HAL]
- Add missing call to HalInitPnpDriver during I/O manager initialization. The HAL PnP driver was never getting initialized.
- Add HAL callback for HalInitPnpDriver. It's going to be needed in future for eVb's PCI driver to fully work (interrupt translation, among other things).

svn path=/trunk/; revision=48740
2010-09-10 21:46:13 +00:00
Aleksey Bragin
1a029a622d [NTOS]
- Fix several bugs in Inbv (busted locking code, useless variables, magic initializers).

svn path=/trunk/; revision=48739
2010-09-10 21:28:24 +00:00
Michael Martin
bd0767f9fd [ntoskrnl/io]
- Modify IopCreateDriver to accept the PLDR_DATA_TABLE_ENTRY instead of the DllBase and SizeOfImage from this structure.
- Set the DriverObject->DriverSection before calling the DriverEntry routine.
- If the DriverEntry routine fails then set the DriverObject->DriverSection back to NULL so that IopDeleteDriver doesnt attempt to unload the ModuleObject, after it was already unloaded by the caller.

svn path=/trunk/; revision=48738
2010-09-10 21:25:53 +00:00
Aleksey Bragin
0daaf9da75 [NTOS]
- Fix a code typo which led to a security issue when the XOR algorithm for the system cookie might actually yield zero. Now it's going to loop as long as the cookie is 0, attempting to generate a non-zero one.

svn path=/trunk/; revision=48737
2010-09-10 21:13:06 +00:00
Aleksey Bragin
9b12a8c1d7 [NDK]
- Remove deprecated KV86M structures and files.

svn path=/trunk/; revision=48736
2010-09-10 21:08:38 +00:00
Aleksey Bragin
1f4771d41b [NTOS]
- Fix a strange bug where we were only setting SharedUserData->TestRetInstruction conditionally only if lookup failed - it should be set on success. Also, bail out if the lookups failed.

svn path=/trunk/; revision=48735
2010-09-10 21:01:59 +00:00
Michael Martin
dee985f9c6 [ntoskrnl/io/pnpmgr]
- Fix incorrect POOL_TYPE allocation in IoInvalidateDeviceRelations. This function can be called at DISPATCH_LEVEL, which requires NonPagedPool POOL_TYPE.

svn path=/trunk/; revision=48734
2010-09-10 19:45:01 +00:00
Aleksey Bragin
1355a06e32 [NDK]
- Fix KiBugCheckData declaration.

svn path=/trunk/; revision=48733
2010-09-10 18:20:37 +00:00
Aleksey Bragin
0955523e4f [WIN32K]
- Giannis Adamopoulos: Only dereference a class if it's valid, should fix Heroes 3 crash.
See issue #5606 for more details.

svn path=/trunk/; revision=48732
2010-09-10 18:13:02 +00:00
Aleksey Bragin
cacc80ae3e [HAL]
- Stub support for future timer latency watchdog.
- Change older-style comments to standard ReactOS commenting style.

svn path=/trunk/; revision=48731
2010-09-10 13:15:51 +00:00
Aleksey Bragin
b84512b555 [NTOS]
- Rename KINTERRUPT_DISPATCH_CODES to DISPATCH_LENGTH, as it is in PSDK.
- Enhance NMI debug support.
- Change some comments to standard ReactOS commenting style.

svn path=/trunk/; revision=48730
2010-09-10 09:54:30 +00:00
Aleksey Bragin
7a9bd9ccea [KERNEL32]
- Fix release build, part 2. Further improvement to gDebugChannels would be to convert them to a DECLARE_DEBUG_CHANNEL-alike macro.

svn path=/trunk/; revision=48729
2010-09-10 09:04:25 +00:00
Aleksey Bragin
60bb233f46 - Fix typos in the description of serial port defines.
svn path=/trunk/; revision=48728
2010-09-10 08:30:13 +00:00
Sir Richard
c27087c0e6 Patch by Anton Yarotsky:
[CPORTLIB]: Implement Windows' Cp (ComPort) library. See Notes in C file. Not yet used. Based on MS Whitepaper: Building Hardware and Firmware to Complement Microsoft Windows Headless Operation.

svn path=/trunk/; revision=48727
2010-09-10 05:22:48 +00:00
Aleksey Bragin
228af0c797 [NTOS]
- Fix release build, leftover from 48692.

svn path=/trunk/; revision=48726
2010-09-09 21:06:13 +00:00
Michael Martin
322032192b [ntoskrnl/po]
- Fix typo.

svn path=/trunk/; revision=48725
2010-09-09 09:22:49 +00:00
Michael Martin
573715a9fe [ntoskrnl/po]
- When an IRP is freed in a Completion routine the return Status is STATUS_MORE_PROCESSING_REQUIRED to let IoCompleteRequest know not to do anything further with the IRP.

svn path=/trunk/; revision=48724
2010-09-08 21:30:40 +00:00
Eric Kohl
db5ca64e4e [SCSIPORT]
Implement RequestTimerCall-Notification. This is used by uniata.

svn path=/trunk/; revision=48723
2010-09-08 10:39:37 +00:00
Eric Kohl
3100fc8995 [USETUP]
Allocate a drive layout buffer that is large enough to keep a primary partition table (4 partition entries) plus 26 logical drives (2 partition entries each). Total 56 partition entries. This should be enough for everybody until we support GPT partition tables. ;-)
See issue #5270 for more details.

svn path=/trunk/; revision=48722
2010-09-07 15:21:06 +00:00
Eric Kohl
340a34cec4 Improvements to NtAdjustPrivilegesToken part 4 (last one):
- SEH-protect all code that writes to PreviousState as it cannot be captured.
- Add a missing ObDereferenceObject and SeReleaseLuidAndAttributesArray.

svn path=/trunk/; revision=48721
2010-09-07 15:08:29 +00:00
Michael Martin
e851b3ba21 [usb/usbhub]
- Add function for dumping the Device and Configuration Descriptors.
- Implement WaitForUsbDeviceArrivalNotification, used to send a URB transaction to the Status Change Endpoint of the RootHubs pdo. The RootHubs pdo will queue this request until a new usb device connects.
- Call above function at the end of UsbhubFdoQueryBusRelations, which will be called by the pnp manager after the hub driver creates a new child device.
- Change the URB to be allocated from the pool at IRP_MN_START_DEVICE.
- Call QueryRootHub with the RootHub Pdo and not the hub drivers DeviceObject.
- Implement selecting a configuration for the RootHub.

svn path=/trunk/; revision=48719
2010-09-07 11:44:03 +00:00
Michael Martin
b43cf6c771 [USETUP]
- Translation updates by Pierre Schweitzer.

svn path=/trunk/; revision=48718
2010-09-07 09:40:53 +00:00
Eric Kohl
6153f47739 Improvements to NtAdjustPrivilegesToken part 3:
- Simplify the privilege modification code.

svn path=/trunk/; revision=48717
2010-09-07 09:32:30 +00:00
Sir Richard
b96cb710f4 [GDI32]: Don't destroy the heap when calling GetSystemPaletteEntries. Note to whoever wrote "//make this work": (&array[x]) is defintely not equal to (&array + x). This is why we don't use pointers-to-arrays, among other reasons.
[GDI32]: Reformat GetSystemPaletteEntries away from grotesque 5-space identation (who does that?).
[GDI32]: Optimize GetSystemPaletteEntries by not zeroing over fields that get overwritten anyway.
[GDI32]: Simplify loop control, remove not-needed local variable in GetSystemPaletteEntries.

svn path=/trunk/; revision=48716
2010-09-07 07:50:51 +00:00
Sir Richard
65fc01dc92 [PSDK]: Get rid of unused variable.
svn path=/trunk/; revision=48715
2010-09-07 05:22:13 +00:00
Cameron Gutman
70e3baab3e [FREELOADER]
- Don't zero the target of an uninitialized pointer
- Thanks to arty for finding the issue

svn path=/trunk/; revision=48713
2010-09-07 01:31:24 +00:00
Sir Richard
b0e67ed0fb [WIN32K]: Fix large amount of set-but-unused variables. Most of these seemed to be old/unfinished code, however in IntGdiPaintRgn an actual bug seems to have been found.
[WIN32K]: Make IntGdiPaintRgn return the status of the operation, not always TRUE.

svn path=/trunk/; revision=48712
2010-09-06 23:55:53 +00:00
Timo Kreuzer
b687dc9462 [USETUP]
- When creating fresh partitions, set the HiddenSectors mamber. Fixes fat32 installation.

svn path=/trunk/; revision=48711
2010-09-06 17:02:47 +00:00
Eric Kohl
9ba0d09d90 Improvements to NtAdjustPrivilegesToken part 2:
- Check for invalid parameter combinations.
- Count privileges that will be changed before changing them.
- Return required buffer size.
- Fail if the provided buffer is too small.
See issue #5497 for more details.

svn path=/trunk/; revision=48710
2010-09-06 15:26:12 +00:00
Eric Kohl
1e34ad4d19 Translated new boot loader options and fixed a typo.
svn path=/trunk/; revision=48709
2010-09-06 10:24:50 +00:00
Eric Kohl
fd61ebc8bb fdc.inf: Fix a typo in the class guid.
hdc.inf: Add missing manufacturer string.

svn path=/trunk/; revision=48708
2010-09-06 09:53:36 +00:00
Eric Kohl
b9159984e7 NtAdjustPrivilegesToken: Probe and capture parameters before use.
See issue #5497 for more details.

svn path=/trunk/; revision=48707
2010-09-06 09:51:46 +00:00
Timo Kreuzer
3995cce1ba [USETUP]
The VBR (volume boot sector) contains a structure called BPB (bios parameter block) that describes the disk and the partition. The HiddenSectors member contains the number of the first sector of the partition. This is used by the VBR code to load the secondary sector containing additional boot code that is located at secor 14 relative to the partition start. Previously we were copying the BPB (plus additionally the OemName, which makes no sense) from the old VBR. Now Linux is a bit lame and doesn't put the correct value into the HiddenSectors field. Instead it sets it to the number of sectors per track which seems to be the default value. When now the linux partition manager decides to do a non standard partitioning, aligning the partition to 0x800, then the VBR fails to load it's 2nd sector. Fix this by correcting the value in the BPB with the value from the partition info.

See issue #2733 for more details.

svn path=/trunk/; revision=48706
2010-09-06 01:46:06 +00:00
Michael Martin
74d5088c7d [usb/usbhub]
- Start rewrite of usbhub driver using the old and dead usbhub driver in trunk.
- Implement QueryRootHub for sending USB request to miniport driver.
- Implement new IRP_MN_START_DEVICE.  
Get the roothubs PDO and FDO and forward the start device down to start the PDO.
Get USBDI and HUB interfaces. Set all ports as returned by DCI GetExtendedHubInformation to powered and reset.
- Temporary add some usb specific defines until header is fixed.
- Fix Formatting.



svn path=/trunk/; revision=48705
2010-09-05 19:00:37 +00:00
Michael Martin
639f26f1b5 [usb/usbehci]
- Fix flags settings for PortStatus and PortChange so that the correct flags are set when hub driver sets/requests them.
- Use FastMutex to protect access to async queue and frame list.
- For USB CONFIG DESC, Check the output buffer size before attempting to write all configuration descriptors.
- Fix a bug that caused bmRequestType to be incorret value when requesting configuration and string descriptors.
- Modify some debugging to make it easier to see debug messages from usbhub driver.

svn path=/trunk/; revision=48704
2010-09-05 18:43:17 +00:00
Cameron Gutman
38a87f0176 [USETUP]
- Add the option to write only the VBR so FreeLoader can easily be chain loaded by GRUB or another boot loader
- Dedicated to James Tabor :)

svn path=/trunk/; revision=48703
2010-09-05 17:09:18 +00:00
Timo Kreuzer
113c47805c Update the GAS compatible fathelp.S file to reflect the latest changes to the original file (freeldr PE conversion). This version is tested and works.
svn path=/trunk/; revision=48701
2010-09-05 16:03:08 +00:00
Cameron Gutman
f276fcd056 [USETUP]
- Remove code that was corrupting disk data and causing setup to fail in rare cases
- Write the MBR in all cases (Windows setup behavior too)
- We can overwrite GRUB and LILO now but we still can't boot because we have trouble reading the partition table if it was made in Linux

svn path=/trunk/; revision=48700
2010-09-04 20:56:19 +00:00
Sir Richard
edfb344c53 [NTOS]: Remove useless variables in kernel code that were set, but never actually used (dead code, tests, copy/pasters). If a variable was set but not used because of missing/#if'ed out code, a note was added instead.
[NTOS]: In the process, fix bugs in the Event dispatcher code that used Win32 EVENT_TYPE instead of NT KOBJECTS enumeration.
[NTOS]: Fix a bug in ObpInsertHandleCount, where the object access check was being done with the previous mode, instead of honoring the probe mode, which is defined by OBJ_FORCE_ACCESS_CHECK.
[NTOS]: Fix a bug in a section function which was always returning STATUS_SUCCESS, now it returns the result of the previous Status = function assignment. If this isn't desired, then don't check for the Status anymore.
[NTOS]: Note that MDL code does not support SkipBytes argument. If it is used, MDL could be invalid.
[NTOS]: Add checks for VerifierAllocation and set it when needed (WIP).
[NTOS]: Clarify what _WORKING_LINKER_ is, and the legal risks in continuing to use a linker that builds non-Microsoft drivers when used with headers whose EULA specify that they can only be used for Microsoft drivers.

svn path=/trunk/; revision=48692
2010-09-04 08:17:17 +00:00
Cameron Gutman
93ae36ab99 [OSKITTCP]
- Check for a shutdown connection that we missed a few times
- Remove some junk and stop playing with flags behind oskit's back
- Fix an invalid parameter check
- Enable a check to ensure that accept doesn't get called for a socket that isn't listening
- Use the queue manipulation function instead of manually changing the queue
- Signal that we accepted/connected a socket
[IP]
- Set the network mask and destination address in TCPGetInterfaceData

svn path=/trunk/; revision=48686
2010-09-02 04:18:17 +00:00
Aleksey Bragin
33fffd0b38 [PSDK]
- Add BS_TYPEMASK definition.

svn path=/trunk/; revision=48678
2010-09-01 13:40:35 +00:00
Amine Khaldi
ef43524fff [CRT]
- Fix __MINGW_MSC_PREREQ logic.

svn path=/trunk/; revision=48657
2010-08-30 13:48:40 +00:00
Michael Martin
9b7e628d96 Patch by Pierre Schweitzer.
[CDFS]
- Several fixes for directory information query.
- Fixed a null access memory under certain circumstances.
- Added support for media ejection.
[FASTFAT]
- Fixed calls to CcMapData(), CcPinRead().
- Fixed an endless loop in FCB management under certain circumstances.
[NTOSKRNL]
- Fixed wrong prototype for IopParseDevice().

svn path=/trunk/; revision=48654
2010-08-30 11:51:17 +00:00
Sir Richard
c574f50663 [NTOS]: Add an extra layer of protection for freed nonpaged pool: write a 4-byte signature on freed blocks, and assert its valid on checked builds. Use a slightly less egocentric ASCII value than on Windows (name of the developer who wrote the first memory manager).
svn path=/trunk/; revision=48651
2010-08-29 19:32:25 +00:00
Sir Richard
b85ab20f13 [NTOS]: Missed a bunch of codepaths, protected pool "should" work now.
svn path=/trunk/; revision=48650
2010-08-29 19:27:58 +00:00
Sir Richard
cf28a01e5e [NTOS]: Add DRIVER_CAUGHT_MODIFYING_FREED_POOL bugcheck code.
[NTOS]: Add support for protected freed nonpaged pool. This is controlled through MmProtectFreedNonPagedPool, which is initialized based on a registry value (see cmdata.c). This is not "Special Pool", but a useful debugging feature Windows implements that we now have too, since I noticed a lot of mj's work was with freed pool access.
NB. It's 3AM and I have not tested this, it should be off in trunk by default, you'll need to try turning it on and testing it. Hope it helps.
--This line, and those low, will be ignored--

M    ntoskrnl/mm/ARM3/pagfault.c
M    ntoskrnl/mm/ARM3/pool.c
M    include/reactos/mc/bugcodes.mc

svn path=/trunk/; revision=48649
2010-08-29 19:13:08 +00:00
Cameron Gutman
1afef0ace6 [ACPI]
- Read and report ACPI_RESOURCE_TYPE_FIXED_MEMORY32

svn path=/trunk/; revision=48648
2010-08-29 18:40:33 +00:00
Michael Martin
52929981d9 [cdfs]
- Working with Pierre Schweitzer for yet another NonPaged Pool corruption fix. When copying VolumeLabel the VolumeLabelLength is in Unicode, so theres no need to mulitply it by size of WCHAR. 

svn path=/trunk/; revision=48646
2010-08-29 17:46:18 +00:00
Timo Kreuzer
69814e0c5b [NTOSKRNL]
Modified version of r48640: 
- update the NodeHint to the root node when deleting a node
- remove this code from MmCleanProcessAddressSpace

svn path=/trunk/; revision=48642
2010-08-29 08:35:54 +00:00
Michael Martin
fbf071095a [ntoskrnl]
- Revert 48640, as it was incorrect.

svn path=/trunk/; revision=48641
2010-08-29 07:18:47 +00:00
Michael Martin
690399c881 [ntoskrnl]
- When a node is removed, check the NodeHint of the table to see if it matches the one being removed. If so update the NodeHint to the PreviousNode. FIxes VAD corruption messages.

svn path=/trunk/; revision=48640
2010-08-29 07:00:52 +00:00
Cameron Gutman
73e641d29b - Disable ACPI again
svn path=/trunk/; revision=48639
2010-08-29 03:51:21 +00:00
Cameron Gutman
2450e46a56 [NTOSKRNL]
- Fix a regression in ACPI function from r48581
- Enable ACPI for testing purposes (will be disabled next commit)

svn path=/trunk/; revision=48638
2010-08-29 03:48:59 +00:00
Cameron Gutman
c8ff03d682 [TCPIP]
- Don't allocate pool if there is nothing in the route table
- Fixes bug 5493

svn path=/trunk/; revision=48637
2010-08-29 02:29:10 +00:00
Michael Martin
a3370efc0a [win32k]
- Mouse messages can be sent before the desktop is initialized. Check for this and return false if its not. FIxes assert when moving mouse before desktop is up.

svn path=/trunk/; revision=48636
2010-08-28 23:55:27 +00:00
Michael Martin
a5bab7504e [input/i8042prt]
- Fix a check when queuing the mouse packet. Check that the buffer size (MouseInBuffer) is not greater or equal to MouseDataQueueSize. Fixes a NonPagedPool corruption that occurs when the mouse is moved before the desktop window is up and running.

svn path=/trunk/; revision=48635
2010-08-28 23:23:43 +00:00
Michael Martin
87e8d75f00 [ntoskrnl/ps]
- When deleting a Process remove the Process from the MmProcessList. Fixes random NonPaged Pool corruptions.  Thanks aicom for assistance.

svn path=/trunk/; revision=48632
2010-08-28 00:26:02 +00:00
Michael Martin
a9e0dc23a4 [ntoskrnl/ps]
- Acquire and Release RundownProtection on the Parent Pocess not the newly created Pcess when setting the SectionObject.

svn path=/trunk/; revision=48631
2010-08-27 22:18:10 +00:00
Timo Kreuzer
3a325683bc [WIN32K]
- Rework EngSetPointerShape, to first allocate the neccessary surfaces, before deleting the old ones. Also check in IntShowMousePointer if a saving surface is present. This way a failure to allocate a surface will not result in a crash, but keep the old mouse pointer.

See issue #5402 for more details.

svn path=/trunk/; revision=48630
2010-08-27 10:57:54 +00:00
Timo Kreuzer
cb6ae2faab [USER32]
- Revert r47238 as requested by Giannis: "this commit breaks any program that wants to subclass mdi client windows"

svn path=/trunk/; revision=48629
2010-08-27 10:20:25 +00:00
Cameron Gutman
b0a5ac396e [OSKITTCP]
- Only tell the caller how much we sent/received if it completed successfully
- Set SO_DONTROUTE on accepted sockets too
- Disable the core routing code
- Make our MSS calculation much better by sharing the existing code

svn path=/trunk/; revision=48628
2010-08-27 04:46:04 +00:00
Colin Finck
9f187ad465 Fix building on newer Linux systems (particularly Fedora 13)
Thanks to James, Sylvain and ErVito for testing!

See http://reactos.org/pipermail/ros-dev/2010-August/013338.html for more details

svn path=/trunk/; revision=48627
2010-08-26 18:33:46 +00:00
Timo Kreuzer
e04ebf1980 [NTOSKRNL]
- Fix to PpSetCustomTargetEvent(), not to make caller wait forever in case it provided an event it waits for
- Patch by Pierre Schweitzer

svn path=/trunk/; revision=48626
2010-08-26 15:25:33 +00:00
Timo Kreuzer
6ddec3f063 Fix build
svn path=/trunk/; revision=48625
2010-08-26 02:48:03 +00:00
Cameron Gutman
0553d5160c [OSKITTCP]
- Prevent multiple wakeups for the same event which caused nasty problems for the SEL_FIN event because we dereferenced our connection context 3 times which not only caused the connection endpoint to be freed while holding its spin lock but made the reference count negative
[TCPIP]
- Disassociate the address file from the connection endpoint before dereferencing/closing it to avoid a double dereference of the address file (not as harmful in this case as in the connection endpoint case)
[IP]
- Dereference the connection endpoint again if it was associated with an address file as the connection endpoint to fix a reference leak

svn path=/trunk/; revision=48624
2010-08-26 02:29:38 +00:00
Timo Kreuzer
1b2ab4ce31 [NTDLL_APITEST]
- Add a test for RtlInitializeBitMap.

svn path=/trunk/; revision=48623
2010-08-26 02:29:19 +00:00
Timo Kreuzer
da3e12b450 delete old Zwcontinue test
svn path=/trunk/; revision=48622
2010-08-25 10:15:34 +00:00
Timo Kreuzer
14d5a266b3 [ROSTESTS]
- Add wine style ntdll_apitest and move test for ZwContinue there

svn path=/trunk/; revision=48621
2010-08-25 10:15:01 +00:00
Timo Kreuzer
57434c8ebf Add missing files
svn path=/trunk/; revision=48620
2010-08-25 08:50:10 +00:00
Timo Kreuzer
ecc6804976 [APITESTS]
Convert dciman32api, user32api and wa2_32 into wine style tests

svn path=/trunk/; revision=48619
2010-08-25 08:48:55 +00:00
Timo Kreuzer
967f731f6a [FASTFAT]
- "Fix for a stupid mistake"
- patch by Pierre Schweitzer

svn path=/trunk/; revision=48618
2010-08-25 08:29:52 +00:00
Timo Kreuzer
e3a2103631 Convert gdi32api into wine style test
svn path=/trunk/; revision=48617
2010-08-24 13:54:10 +00:00
Timo Kreuzer
bc064d7ed4 Fix copy paste error in file header
svn path=/trunk/; revision=48616
2010-08-24 05:27:39 +00:00
Timo Kreuzer
fdd4f2b50b [REGTESTS]
Add bugs_regtest. This can be used to create testcases / regression tests for already fixed bugs. I added a first test for bug 3481

svn path=/trunk/; revision=48615
2010-08-24 05:20:16 +00:00
Timo Kreuzer
337a1faad6 [WINGDI.H]
Add missing GetCharWidthI, GetTextExtentExPointI, GetTextExtentPointI

svn path=/trunk/; revision=48614
2010-08-24 05:19:31 +00:00
Cameron Gutman
0ea1a11d0d - Revert the change from REG_SZ to REG_MULTI_SZ because it turns out that Windows does it this same way (research fail?)
svn path=/trunk/; revision=48611
2010-08-23 21:11:01 +00:00
Timo Kreuzer
2ddee30677 [NTOSKRNL]
- Rewrite MiFindEmptyAddressRangeDownTree. The old implementation's "most awesome loop" duplicated both the initialization and the interation steps. It was also overcomplicated. The new implementation additionally returns the parent for the following table insertion, so this doesnt need to be done in an extra search. The return value is changed from NTSTATUS to TABLE_SEARCH_RESULT
- Modify MiInsertNode to accept a parent and TABLE_SEARCH_RESULT instead of searching for a free location.
- Modify MiCreatePebOrTeb to make use of the new features
- Handle failed allocation of the PEB/TEB
- Fixes a failed assertion that Olaf got
- I tested this code quite some time and no problems were found

svn path=/trunk/; revision=48606
2010-08-23 03:00:03 +00:00
Timo Kreuzer
b8e0dc9948 [WIN32K]
Seperate DC_vSetLayout from NtGdiSetLayout and save the old value before setting the new one.

svn path=/trunk/; revision=48605
2010-08-23 01:41:56 +00:00
Timo Kreuzer
7aa6c115ea [WIN32K]
Move the allocation of the vis region of the DC to a later position, so that all mandatory fields are initialized before we try to delete the DC in failure case. Fixes yet another possible crash.

svn path=/trunk/; revision=48604
2010-08-23 01:39:28 +00:00
Timo Kreuzer
35eedf6749 [NDK]
Add LdrProcessRelocationBlockLongLong. Fixes build, sorry.


svn path=/trunk/; revision=48603
2010-08-23 01:18:09 +00:00
Cameron Gutman
8d77a3fe00 [TCPIP]
- Read the IP information from the interface key inside the Tcpip service key (confirmed on XP)
- Fix a logic error in my code (no idea how I missed it)
- Restores static IP functionality (still waiting on janderwald to fix netcfgx's DNS value writing)

svn path=/trunk/; revision=48602
2010-08-23 01:17:41 +00:00
Timo Kreuzer
ca6ff51038 [NTDLL]
- Call LdrProcessRelocationBlockLongLong from LdrProcessRelocationBlock instead of duplicating the code

svn path=/trunk/; revision=48601
2010-08-23 01:16:42 +00:00
Amine Khaldi
3957ae1572 [FAULTREP]
- Fix a typo.

svn path=/trunk/; revision=48600
2010-08-23 00:02:06 +00:00
Timo Kreuzer
314e02e2f0 [WIN32K] / [GDI32]
- GetTextExtentExPointI and GetTextExtentPointI take an array of glyph indices, not characters. Pass a flag GTEF_INDICES (This is a reactos specific definition and not exactly like on Windows XP, but the real names/values are undocumented and this is the easiest way.) to NtGdiGetTextExtent/NtGdiGetTextExtentExW and handle this flag in TextIntGetTextExtentPoint to account for this.
Fixes bug 3481

svn path=/trunk/; revision=48597
2010-08-22 23:38:02 +00:00
Timo Kreuzer
dfce6bb843 [WIN32K]
- When doing a cleanup for a DC, check, if the default brushes are set, before dereferencing them. Fixes a possible kernel mode crash.
- Remove some obsolete casts

svn path=/trunk/; revision=48595
2010-08-22 22:44:36 +00:00
Cameron Gutman
617f243c3f [DHCPCSVC]
- Write the DNS servers in a REG_MULTI_SZ value
[IPHLPAPI]
- Rewrite the registry reading code
- Use HeapFree to free memory from the allocated from heap

svn path=/trunk/; revision=48593
2010-08-22 22:22:27 +00:00
Amine Khaldi
f8199cb9e0 [PSDK]
- Improve _MSC_VER related conditions.
- Comment on #endif (for readability).
- DECLSPEC_ALIGN : moar underscores !
- Apply a consistent formatting.

svn path=/trunk/; revision=48590
2010-08-22 13:25:10 +00:00
Cameron Gutman
7f865763fa [NTOSKRNL]
- Fix a typo that broke handling of DevicePropertyEnumeratorName inside IoGetDeviceProperty

svn path=/trunk/; revision=48583
2010-08-21 22:08:00 +00:00
Timo Kreuzer
9280f1e1c3 [WIN32K]
Use the object type index, not the shifted full object type to decide what to do with an object in NtGdiDeleteObjectApp. Fixes leaking derived types such as pens.

svn path=/trunk/; revision=48582
2010-08-21 22:00:50 +00:00
Cameron Gutman
0d3516871b [NTOSKRNL]
- Don't overwrite the ACPI hardware key on every boot

svn path=/trunk/; revision=48581
2010-08-21 21:39:53 +00:00
Cameron Gutman
68eef5481f [NTOSKRNL]
- Append the DLL name and NULL terminate the string more nicely

svn path=/trunk/; revision=48580
2010-08-21 21:25:07 +00:00
Timo Kreuzer
80cc3a0e88 [WIN32K]
- Allocate the DCs prgnVis in DC_AllocDC, instead of "on demand" in GdiSelectVisRgn and properly handle failure case. This fixes a possible crash, when running out of gdi handles.

svn path=/trunk/; revision=48579
2010-08-21 19:55:09 +00:00
Timo Kreuzer
02cb45ab9c [WIN32K]
- co_IntTranslateMouseMessage: properly initialize *HitTest and only send WM_NCHITTEST when the message is going to be removed
- co_IntPeekMessage: Prevent possible use of uninitialized HitTest by ProcessMouseMessage()
- Patch by Jan Roeloffzen [jroeloffzen at hotmail dot com]
- Fixes bug 2139

svn path=/trunk/; revision=48576
2010-08-20 19:24:48 +00:00
Amine Khaldi
ca4003c9f8 [PSDK]
- Add missing DISPLAY_BRIGHTNESS and some related definitions.

svn path=/trunk/; revision=48575
2010-08-20 16:55:33 +00:00
Cameron Gutman
5122323eb8 [NTOSKRNL]
- The trailing NULL is NOT included in the string length
- IopNotifyPlugPlayNotification needs a pointer to an actual GUID not a UNICODE_STRING
- The Power Manager can now see ACPI power devices again
- ROS will now do a graceful shutdown and power off if the power button is pressed and ACPI is enabled

svn path=/trunk/; revision=48574
2010-08-20 04:45:25 +00:00
Cameron Gutman
1883a6f208 [ACPI]
- Do all of the work inside the DPC so we don't have IRQL issues when entering the memory manager
- This is a slight hack but we can be assured that data won't be over 24 bits unless somebody wants to push the power/sleep button over 16 million times

svn path=/trunk/; revision=48573
2010-08-20 03:08:50 +00:00
Cameron Gutman
62f520433c [NTOSKRNL]
- Shutdown the system if we receive a SYS_BUTTON_POWER event
- Register for GUID_DEVICE_LID arrival events so we can receive lid events

svn path=/trunk/; revision=48572
2010-08-20 02:27:05 +00:00
Cameron Gutman
ab9dae987d [NTOSKRNL]
- Add a special case to IopInitializeDevice for raw devices
- Call IopInitializeDevice to set up our device node and ready it to start
- Fixes assertions hit by ACPI and PCIX

svn path=/trunk/; revision=48570
2010-08-19 23:26:44 +00:00
Cameron Gutman
8d8399c2e5 [OSKITTCP]
- Disable routing because oskit needs to let our code do that
- Comment out the ACK hack and restore the default BSD behavior

svn path=/trunk/; revision=48569
2010-08-19 22:15:58 +00:00
Michael Martin
6a0074f795 [Win32k]
- For SetTimer nIDEvent can be 0 in which case return 1. Zero still needs to be used for nIDEvent when killing the timer. Fixes bug 5553.
- Modify windowless timers to use IDEvent values decrementing from the max number of windowless timers vice incrementing from 1. Done to match windows behavior.


svn path=/trunk/; revision=48568
2010-08-19 10:52:36 +00:00
Timo Kreuzer
f87ad01e1a [NTOSKRNL]
- Add missing parentheses. Fixes "cont"

svn path=/trunk/; revision=48567
2010-08-19 10:03:03 +00:00
Timo Kreuzer
681307ff21 [NTOSKRNL]
Fix handling of next instruction in kdbg.
Patch by Daniel Zimmermann, modified by Aleksey Bragin

See issue #4457 for more details.

svn path=/trunk/; revision=48566
2010-08-19 09:03:36 +00:00
Timo Kreuzer
6fb40574c2 [NTOSKRNL]
- Implement support for /BURNMEMORY option.
- Don't stop boot on bad memory type
Patch by Jay Smith, modified by Aleksey, even more modified by me.

See issue #4957 for more details.

svn path=/trunk/; revision=48565
2010-08-19 08:50:23 +00:00
Cameron Gutman
44e8a7f7b6 [NETSTAT]
- Allocate memory for the TCP table properly
- Only netstat -a should show UDP connections
- Patch by Jan Roeloffzen [jroeloffzen at hotmail dot com]

svn path=/trunk/; revision=48564
2010-08-19 06:25:20 +00:00
Cameron Gutman
f2d4e1a828 [IPHLPAPI]
- Copy our TCP table into the caller's buffer if we actually get one (not yet!)
- Return ERROR_NO_DATA if we fail to get anything from TCP/IP
- Fixes bug #4185

svn path=/trunk/; revision=48563
2010-08-19 06:05:35 +00:00
Timo Kreuzer
5ae5a35726 [NTOSKRNL]
- Initialize the Parent member of the new Vad to NULL. This also initializes the Balance to 0 aka RtlBalancedAvlTree
Should fix the failed assertion that randomly occurs.

svn path=/trunk/; revision=48562
2010-08-19 05:10:16 +00:00
Cameron Gutman
8f474295b5 [IP]
- Fix a major bug in socket closure. Prior to this, a socket with pending IRPs that could not be satisfied when the socket was closed would be destroyed without completing the pending requests. Now, we check all of our IRP queues if we get a SEL_FIN signal and kill all the requests that cannot be satisfied immediately.
- Maybe it's just me but Firefox 2 seems much more responsive after this fix (like actually usable!)

svn path=/trunk/; revision=48561
2010-08-19 02:41:54 +00:00
Timo Kreuzer
1cbf4c4057 [FASTFAT]
Make our FAT driver PNP aware.
On PNP requests it should handle, it will return STATUS_NOT_IMPLEMENTED.
On the others, it will pass them to lower driver.
This is the first step outside the kernel into getting IoGetRelatedTargetDevice (and so notifications) working.
It doesn't work at the moment, as class2 doesn't handle PNP.

[NTOSKRNL]
Some fixes to IRP cancelation process:
- Renamed IopRemoveThreadIrp() to IopDisassociateThreadIrp() to match Windows 2k3
- Made dead IRP global, to make its debug easier.
- IopDisassociateThreadIrp(), Handle dead IRP at dispatch level, using IoCompletionLock.
- IopDisassociateThreadIrp(), Use the proper error code to write the entry to logs.
- IoCancelIrp(), removed non needed ASSERT, which is even not present on Windows, removed corresponding var as well.
- IoCancelIrp(), fixed parameters to KeBugCheckEx() call.
- IoCancelThreadIo() is pageable.
- IoCancelThreadIo() under Windows isn't using given thread, but using current. Do the same here.
All that stuff doesn't fix bug #5550, it comes from outside.

Patch by Pierre Schweitzer, modified by me to make it compile. If it breaks anything, don't blame me!

svn path=/trunk/; revision=48560
2010-08-18 23:21:15 +00:00
Timo Kreuzer
3d5db91752 [NTOSKRNL]
- Simplified IopGetRelatedTargetDevice implementation
- Added notification in case of success in NtSetVolumeInformationFile()
Patch by Pierre Schweitzer

svn path=/trunk/; revision=48559
2010-08-17 16:04:46 +00:00
Timo Kreuzer
2ded5adf7c [NTOSKRNL]
- Fixed IoGetRequestorProcess, IoGetRequestorProcessId, IoGetRequestorSessionId
- Pass user buffer in NtNotifyChangeDirectoryFile
- Fixed magic value in IoGetPagingIoPriority
Patch by Pierre Schweitzer

svn path=/trunk/; revision=48557
2010-08-16 20:18:25 +00:00
Timo Kreuzer
49a96cdea9 [NTDLL]
LdrPerformRelocations: Delta is a LONG_PTR rather than ULONG_PTR

See issue #5577 for more details.

svn path=/trunk/; revision=48556
2010-08-16 01:57:09 +00:00
Timo Kreuzer
40f30e9422 [WIN32K]
- Remove IntEngExtEscape stub. This function is completely useless. If the driver doesn't provide a DrvEscape, the function should simply fail and must return 0, not -1.
- If a NULL surface is passed, pass on NULL pso to the driver function

See issue #4563 for more details.

svn path=/trunk/; revision=48555
2010-08-16 01:29:13 +00:00
Timo Kreuzer
d35828af5a [user32_winetest]
Skip 2 tests that hang on reactos. Patch by Giannis Adamopoulos

svn path=/trunk/; revision=48554
2010-08-16 00:06:55 +00:00
Aleksey Bragin
a81b1fdd76 [NTOSKRNL]
- Revert 48546. The code was correct, and there is more of same code in other places which firstly cancels the IRP and then moves to the next entry. The actual bug is somewhere else.
See issue #5550 for more details.

svn path=/trunk/; revision=48551
2010-08-15 08:48:03 +00:00
evb
fd24107d7d - IRP_MN_QUERY_RESOURCE_REQUIREMENTS half support now, PciQueryRequirements, PciAllocateIoRequrementsList, full implement, but PciBuildRequirementsList return 0 always for now
- Debug helpers: PciDebugPrintIoResReqList, PciDebugPrintIoResource, PciDebugCmResourceTypeToText
Now hit assert Assertion '(DeviceNode->Flags & DNF_ADDED)' failed at ntoskrnl/io/pnpmgr/pnpmgr.c line 201, too night to debug, maybe tomorow

svn path=/trunk/; revision=48550
2010-08-14 18:06:19 +00:00
evb
d9bd0072a1 - IRP_MN_QUERY_RESOURCES support for PDO (PciQueryResources, PciAllocateCmResourceList), now remain IRP_MN_QUERY_RESOURCE_REQUIREMENTS to last device stack interogration from PNPMGR
svn path=/trunk/; revision=48549
2010-08-14 17:33:10 +00:00
evb
af01479fbf - Add support for PnP IRP to PDO: IRP_MN_QUERY_BUS_INFORMATION (PciQueryBusInformation), IRP_MN_QUERY_ID (PciQueryId), IRP_MN_QUERY_DEVICE_TEXT (PciQueryDeviceText), IRP_MN_QUERY_CAPABILITIES (PciQueryCapabilities), IRP_MN_QUERY_DEVICE_RELATIONS (PciQueryTargetDeviceRelations implement, PciQueryEjectionRelations, stub)
- Stub support for PnP IRP to PDO: IRP_MN_QUERY_RESOURCE_REQUIREMENTS (PciQueryRequirements), IRP_MN_QUERY_RESOURCES(PciQueryResources)
- Add support for PnP IRP to FDO: IRP_MN_QUERY_CAPABILITIES (handle in PciFdoIrpQueryDeviceCapabilities)
- Build device capability UI number (PciDetermineSlotNumber), use PIR$ (seem support broken, need to check loader) or device property for bus not root
- Use parent attachee device and this PDO for build device/system wake states, latency, device/system power mappings
- PCI-ID manage support: PciInitIdBuffer, PciIdPrintf, PciIdPrintfAppend
- Debug helper: PciDebugDumpQueryCapabilities
- Thanks richard for advise + beer
PCI-X driver now pass 10000 codes lines!

svn path=/trunk/; revision=48548
2010-08-14 17:09:20 +00:00
Cameron Gutman
912704ceb8 [NTOSKRNL]
- Move to the next entry in the thread IRP list before calling IoCancelIrp because if everything works as expected and IoCompleteRequest is called, we could end up with the IRP ripped out from under us before can move to the next element
- See issue #5550 for details.

svn path=/trunk/; revision=48546
2010-08-14 14:55:12 +00:00
Cameron Gutman
ccfa72f607 [WS2_32]
- Create a temporary variable and pass that to WSAIoctl for the bytes returned value instead of passing argp and corrupting the value we just retrieved

svn path=/trunk/; revision=48545
2010-08-14 13:48:31 +00:00
Aleksey Bragin
0be662421f [WINLOGON]
- NtInitializeRegistry expects not just CM_BOOT_FLAG_ACCEPTED, but a number of the accepted control set to be added to it. After fixing this, NtInitializeRegistry won't fail with STATUS_INVALID_PARAMETER (someone should check return status for errors...) anymore. As a result lazy flushing is enabled.

svn path=/trunk/; revision=48536
2010-08-13 22:02:17 +00:00
Aleksey Bragin
e68f31b46a [FASTFAT_NEW]
- Implement asynchronous and delayed close operations.
- Fix a logical bug in FatiClose code, which led to always closing the file object (and freeing respective FCB/VCB/CCB), and then checking flags and queuing a delayed close. Instead, it should only try to close if it's not marked as a delayed close.
- Support stuff added (queues, mutex for closing lists, etc).
- Misc cleanup, debug silencing.

svn path=/trunk/; revision=48525
2010-08-12 21:59:22 +00:00
Cameron Gutman
8d3e4feb39 - I hate catching these things as the commit is going out
svn path=/trunk/; revision=48523
2010-08-12 13:15:35 +00:00
Cameron Gutman
17e0e75eb5 [MSAFD]
- Update lpcbBytesReturned when FIONREAD is called
- Fix the value inside lpErrno when XxxSocketInformation() fails
- Pass the unrecognized IOCTLs to the winsock helper (no behavior change for this yet because wshtcpip's WSHIoctl is unimplemented)

svn path=/trunk/; revision=48522
2010-08-12 13:13:19 +00:00
Aleksey Bragin
11f2175562 [FASTFAT_NEW]
- Plug in a commented out notification call in case of cleanup.
- Implement a case of device info query.
- Implement lock control.

svn path=/trunk/; revision=48518
2010-08-11 12:18:24 +00:00
Timo Kreuzer
aac1625f1f [NTOSKRNL]
Stop using the new paged pool code, before ExpLoadInitialProcess is called. For so far unknown reasons, it causes evil things to happen. Fixes "Assertion NewSize < pool->UserSize failed"
See issue #5551 for more details.

svn path=/trunk/; revision=48517
2010-08-11 01:22:06 +00:00
Amine Khaldi
da140c1ba3 [DDK]
- De-duplicate __GNU_EXTENSION.
- Apply a consistent formatting.

svn path=/trunk/; revision=48514
2010-08-10 20:50:55 +00:00
Aleksey Bragin
94c9f4008f [FASTFAT]
Pierre Schweitzer
- Fix volume opening on FAT volume. Commented out a directory check as it doesn't match realized tests, in spite of what's in WDK.

svn path=/trunk/; revision=48513
2010-08-10 20:08:31 +00:00
Amine Khaldi
0fb515fa5b [XDK]
- Introduce some _ANONYMOUS_STRUCT and NONAMELESSUNION based definitions.
[DDK]
- Update XDK generated headers to reflect the recent changes.
- Update some header guards.
- Add some missing new lines at the end of files.
- Fix PUSB_DEVICE_HANDLE guard.
- Introduce some _ANONYMOUS_STRUCT and NONAMELESSUNION based definitions.
[PSDK]
- Update some header guards.
- Add missing new line at the end of driverspecs.h
[NDIS]
- Update the ndis header guard.

svn path=/trunk/; revision=48511
2010-08-10 13:53:10 +00:00
Amine Khaldi
07bb7dd863 [PSDK]
- Add some missing headers' headers.

svn path=/trunk/; revision=48510
2010-08-10 11:27:27 +00:00
Amine Khaldi
3e2e35f5db [PSDK]
- Add WINELIB_NAME_AW and DECL_WINELIB_TYPE_AW to the wine specific imm.h.

svn path=/trunk/; revision=48509
2010-08-10 10:25:10 +00:00
Cameron Gutman
1fde230130 [WS2_32]
- Fix a crash when running with ws2_32 debugging on

svn path=/trunk/; revision=48507
2010-08-10 07:14:42 +00:00
Timo Kreuzer
713d12fd47 Add include guards in wine/ddk/imm.h and inlude it from wine/imm.h
svn path=/trunk/; revision=48503
2010-08-10 01:08:03 +00:00
Amine Khaldi
a334719f12 [PSDK]
- Move INPUTCONTEXT and ImmLockIMC to the wine imm.h
- Add wingdi.h inclusion.

svn path=/trunk/; revision=48502
2010-08-10 00:46:27 +00:00
Timo Kreuzer
2bf65890b7 [WIN32K] Fix NtGdiMaskBlt to handle patterns correctly, use SRCAND, which is more optimized, instead of DSTERASE, and set fore and background colors correctly to not destroy alpha channel.
[SHELL32] Use MaskBlt to draw the shortcut overlay
Finally fixes bug 5455. Forever. (I hope.)

svn path=/trunk/; revision=48501
2010-08-09 23:28:19 +00:00
Amine Khaldi
329c3e4970 [PSDK]
- Add some missing imm.h definitions.
[IMM32]
- Fix imm.h inclusion.
[IPHLPAPI]
- Fix tdiinfo.h inclusion.

svn path=/trunk/; revision=48500
2010-08-09 22:53:07 +00:00
Amine Khaldi
7e8308d2f2 [DDK]
- Move several headers to PSDK where they belong.
[PSDK]
- ddrawi.h : Fix pUnkOuter.

svn path=/trunk/; revision=48499
2010-08-09 22:20:05 +00:00
Aleksey Bragin
03d3e84856 [FASTFAT_NEW]
- Implement opening an existing DCB.
- Add a bunch of useful macros and helper functions and use them throughout the code.
- Implement in-memory setendoffile set information class. On-disk to be done.
- Implement user fs ctrl wrapper with stubs.
- Fill up QueryVolumeInfo with classes it should handle. Silence up a warning about classes it should reject.

svn path=/trunk/; revision=48498
2010-08-09 21:33:17 +00:00
Amine Khaldi
e787f57ee7 [DDK]
- Move several headers to PSDK where they belong.
- Add _ANONYMOUS_UNION.
- De-duplicate __GNU_EXTENSION definition from several headers.
- Remove semicolons after the closing bracket of extern "C"
- Add a missing one in ioaccess.h
- Apply a consistent formatting.
[PSDK]
- De-duplicate __GNU_EXTENSION definition from several headers.
- Add missing extern "C" opening bracket in ddkernel.h and remove the semicolon from the closing one.
- Add __GNU_EXTENSION definition to ddraw.h and remove the semicolon after the closing bracket of extern "C"
- Add missing extern "C" closing bracket in ddrawi.h
- Remove semicolons after the closing brackets of extern "C" in dinput.h, dmemmgr.h and sti.h
- Apply a consistent formatting.
[DXSDK]
- Move ddraw.h to PSDK.

svn path=/trunk/; revision=48497
2010-08-09 20:58:47 +00:00
Aleksey Bragin
07a6bcfb57 Carlo Bramix
- Prevent possible out-of-bounds access.
See issue #5505 for more details.

svn path=/trunk/; revision=48495
2010-08-09 20:41:41 +00:00
Aleksey Bragin
9d1462a2b7 Pierre Schweitzer
- A better fix for CdfsIsNameLegalDOS8Dot3.

See issue #2404 for more details.

svn path=/trunk/; revision=48494
2010-08-09 20:38:12 +00:00
Cameron Gutman
6cb85c8ae3 [DHCPCSVC]
- Set the SO_BROADCAST option to 1 before we send data to the broadcast address so we don't get stonewalled by mswsock
- DHCP is now compatible with mswsock_new

svn path=/trunk/; revision=48493
2010-08-09 20:37:32 +00:00
evb
55f39ef1a3 Support PCI device resource dicsovery for limit and current now, so bridge + device BAR functionning
PciScanBus second pass enabled: PciProcessBus, most stubs now until VGA/ISA system tested
PciClassifyDeviceType implement as helper function
PCI Enumeration 100% complete!

svn path=/trunk/; revision=48492
2010-08-09 19:07:52 +00:00
Cameron Gutman
f83e778875 [WS2_32]
- Check the return value of WSPSelect instead of the error number because the error number doesn't have to be initialized if the function doesn't return SOCKET_ERROR

svn path=/trunk/; revision=48491
2010-08-09 15:42:51 +00:00
Aleksey Bragin
f1a6ba977a [FASTFAT_NEW]
- Implement close and cleanup infrastructure.
- Add necessary FCB and VCB counters.
- Add missing op and file locks initialization.
- A lot of small cleanups, improvements, and other things, bringing fastfat_new much closer to a minimally working state.

svn path=/trunk/; revision=48487
2010-08-08 10:43:28 +00:00
Aleksey Bragin
1dac3daaa1 Pierre Schweitzer
- Implemented CdfsIsNameLegalDOS8Dot3 and use it to check filenames. It avoids
calling Rtl* functions that need NLS. (Modified merge of 35501).
See issue #2404 for more details.

svn path=/trunk/; revision=48486
2010-08-08 08:24:19 +00:00
Timo Kreuzer
7dc11f26bf [TASKMGR]
- Use messages instead of events to notify the update threads
- Fixes a handle leak
- Fix some typos
- Patch by Carlo Bramini (carlo.bramix at libero dot it)

See issue #3104 for more details.

svn path=/trunk/; revision=48484
2010-08-08 03:41:33 +00:00
Timo Kreuzer
9caaf3d69c [KERNEL32] Convert default locales to actual locale identifiers, before passing to IsValidLocale(). Fixes corrupted file size strings in explorer.
[SHLWAPI] Fix some comments (As usual: "should be sent to wine")
Patch by Rafal Harabień, <rafalh1992 AT o2 DOT pl>

See issue #5557 for more details.

svn path=/trunk/; revision=48482
2010-08-07 22:41:23 +00:00
Timo Kreuzer
dfe0f8a1a1 [DDK]
Make functions in ntstrsafe.h static, so they can be used in more than one file. Maybe that encourages people using it instead of unsafe and banned apis.

svn path=/trunk/; revision=48481
2010-08-07 21:29:00 +00:00
Timo Kreuzer
0156668176 [NTOSKRNL]
Deferred success...

svn path=/trunk/; revision=48480
2010-08-07 21:22:00 +00:00
Sir Richard
c444de303a [NTOS]: Aleksey wants an easy way to see debug messages coming from one process vs. another, which is an obvious idea that should've done a long time ago. Now you can see who is generating a given debug message (including the thread).
svn path=/trunk/; revision=48479
2010-08-07 16:16:17 +00:00
Timo Kreuzer
4adeefec39 [KERNEL32]
Go back to spec file. Don't worry it's fixed.

svn path=/trunk/; revision=48478
2010-08-07 16:07:13 +00:00
Sir Richard
0be9ddc03e [KERNEL32]: Aleksey wants debug channels, I agree this is the way forward. Leverage existing NT infrastructure to enable Windows-compatible debug channel support, instead of using a UNIX-based 3rd party library. Same debug channel names as before have been re-added, but using NT Debug Filters.
svn path=/trunk/; revision=48477
2010-08-07 16:01:30 +00:00
Aleksey Bragin
4e45370f82 [KERNEL32]
- That's what happens when most of the commit's changes are not related to most of the commit message. Fixes build.

svn path=/trunk/; revision=48476
2010-08-07 09:10:06 +00:00
Sir Richard
e4d5c13a6b [KERNEL32]: While working on the CMAKE branch, Amine and myself discovered a rather serious issue in kernel32 (and perhaps other libraries as well). Unlike rbuild, CMake does not allow you to export non-existant DLL functions (try it: add "poopyhead" in kernel32's exports under RBuild, and will it export "poopyhead", God knowing what that will actually link to).
As an additional feature on top of the "allow non-existing functions to be exported" "feature", because rbuild generates and links STDCALL function names without the proper decoration (vs. enforcing decoration at linking, but only removing it at export-time), this allows the definition (as an export) of a STDCALL function that is completely different from the actual function itself.
            For example, the 5-parameter Foo function is normally Foo@20, while the 3-parameter Foo function woudl be Foo@12. Linking one against the other would fail (say, 2 parameters were added to Foo in a newer version). However, under RBUILD, both of these would appear as "Foo", and the linker/compiler would happilly connect the caller of Foo@3 (that has pushed 3 parameters) to the receiving side of Foo@5 (that is about to pop 5 parameters).
            Even -if- decorations WERE to be applied, Foo@12 would STILL succeed, because of the first feature, which would enable the export of Foo@12 even though no such function exist.
            In a further, bizare, twist of fate, the behavior of this RBUILD "feature", when the target function is not found, is to link the exported DLL TO ITSELF.
            Therefore, one can see how, previously to this patch, kernel32.dll would import a dozen functions from itself (all the non-existing functions).
            To really seal the deal, the behavior of exported functions used by kernel32, but that are actually forwarded to another DLL deserves a special mention.
            GetLastError, for example, merely forwards to RtlGetLastWin32Error, so it is normal behavior to use a #define in the C code so that all internal calls to the function are routed correctly.
            This did not happen, so instead, kernel32 tried importing/linking/exporting GetLastError, but this symbol is not found in the binary, because it is only a forwarder.
            This caused kernel32 to import from itself (the behavior when an exported symbol is not found). When importing from itself, the loader would now find the _forwarded_ for GetLastError, and correctly link with ntdll.
            What should be a one-liner of assembly (inline TEB access) thus became a triple-call indirection (GetLastError@0->StubLastError@0->__impGetLastError@0->__impRtlGetLastWin32Error->RtlGetLastWin32Error.
            While analyzing these issues, we also realized a strange macro SetLastErrorByStatus that manually tried to perform what there already exists a function for: RtlSetLastNtStatusFromWin32Error.
	    And, in an exciting coda, we also realized that our Server 2003 Kernel32 exports more than a dozen Windows 95 APIs, through an auto-stub generation mechanism within winebuild, that gets linked as an object behind the scenes.
[KERNEL32]: Removed all Win95 exports, cleaned up exports.
[KERNEL32]: Fixed up set/get error macros by making them inline and/or calling the correct ntdll function.
[KERNEL32]: Removed bizare calls to Wine-internal/specific APIs from our core Win32 DLL.
[KERNEL32]: Wrote stubs for all functions which should be exported, and set the correct number of parameters for them.
[KERNEL32]: Kernel32 is smaller, loads faster, does not export Windows 95 functions, does not export non-existing functions, and does not import from itself anymore.
Note: This is one of the many failings of RBUILD the CMAKE system has helped us discover. I believe these issues are serious enough to warrant an immediate sync with trunk, but rest assured, there are many more completely broken, infinitely-regressing things that we discovered while switching to CMAKE.


svn path=/trunk/; revision=48475
2010-08-07 05:02:58 +00:00
Cameron Gutman
9ce4714f6b [IPHLPAPI]
- Comment out the GetAdaptersAddresses code and add the stub back
- Fixes Firefox 3.x (bug 5399)

svn path=/trunk/; revision=48474
2010-08-06 23:01:10 +00:00
Timo Kreuzer
003e0bb556 [CRT]
- Remove "implementations" of __lc_collate_cp, __lc_handle and __lc_codepage. These are not functions, but varuables, implemented as MSVCRT_*
- add ___lc_codepage_func and ___lc_handle_func taken from wine
- Fix msvcrt spec file
- Fixes compilation with gcc 4.5.1

svn path=/trunk/; revision=48473
2010-08-06 22:42:07 +00:00
Aleksey Bragin
d521bf4480 - (Hack)fix build.
svn path=/trunk/; revision=48469
2010-08-06 12:04:12 +00:00
Aleksey Bragin
50a341134c [CDFS]
- MAXIMUM_VOLUME_LABEL_LENGTH is in bytes, not in characters. Fix struct definition and access beyond the buffer. Spotted by Carlo Bramini.
- Trim trailing spaces from the volume label name, instead of stopping at the first encountered space. Fix by Carlo Bramini.
See issue #5505 for more details.

svn path=/trunk/; revision=48468
2010-08-05 21:57:02 +00:00
Aleksey Bragin
cf3a6fe7c5 - Sync ole32 and oleaut32 regtests to Wine-1.3.
svn path=/trunk/; revision=48467
2010-08-05 21:28:34 +00:00
Aleksey Bragin
c2ead94de7 - Sync ole32 and oleaut32 to Wine-1.3.
svn path=/trunk/; revision=48466
2010-08-05 21:19:46 +00:00
Timo Kreuzer
b51cf52307 [SHELL32]
When creating a shortcut icon and we have 32 bpp, use GdiAlphaBlend to create the final bitmap. This is neccessary, since we want to support alpha channels and those are destroyed when using SRCPAINT or any similar ROPs on the alpha bitmap (not a bug, Windows works like that, too). We could use MaskBlt, if it would work correctly, but on reactos it destroys the alpha channel as well (bug!), it's also most likely slower then the current solution.
Fixes broken overlay icons.
See issue #5455 for more details.

svn path=/trunk/; revision=48463
2010-08-05 14:42:56 +00:00
Timo Kreuzer
1eac149580 [WIN32K]
- Copy the alpha channel as well when doing RGB<->BGR color translations.

svn path=/trunk/; revision=48462
2010-08-05 14:32:30 +00:00
Timo Kreuzer
589577fe34 [NTOSKRNL]
- Fixed FsRtlIsNameInExpression to make it properly handle * in expressions
- Fix formatting
- Patch by Pierre Schweitzer
- Fixes everything

See issue #5541 for more details.

svn path=/trunk/; revision=48461
2010-08-05 12:23:23 +00:00
Timo Kreuzer
e715956b80 [KERNEL32]
Fix a check in ContainsPath. Patch by Gabriel Ilardi. 

See issue #5478 for more details.

svn path=/trunk/; revision=48456
2010-08-04 13:33:37 +00:00
Timo Kreuzer
692801bff2 [FASTFAT]
- Fix a check in VfatCreateFile. Patch by Pierre Schweitzer.

See issue #4571 for more details.

svn path=/trunk/; revision=48453
2010-08-04 13:06:47 +00:00
Timo Kreuzer
9fd87c4954 [GDI32]
Fix parameter check in GetTextExtentExPointA/W. Patch by Kamil Hornicek. Fixes bug 5486, bug 5507 and bug 5511

svn path=/trunk/; revision=48446
2010-08-04 00:01:30 +00:00
Timo Kreuzer
e3736b149a Add some tests for GetTextExtentExPoint. Dedicated to Pigglesworth
svn path=/trunk/; revision=48445
2010-08-03 23:15:20 +00:00
Timo Kreuzer
9c9f4cb9e9 [WIN32K]
Protect access to the result pointer from KeUserModeCallback with SEH. Fixes a possible kernel mode crash.

svn path=/trunk/; revision=48437
2010-08-03 21:36:39 +00:00
Aleksey Bragin
f986e82a8d [KERNEL32]
- Sync lcformat.c to Wine-1.3. This fixes (a number of potential) problems introduced by new nls data files being synced recently and led to crashes on locales having different months genitives. Original issue confirmed by Sergey Gusev <evilslon@mail.ru> and Igor Paliychuk.

svn path=/trunk/; revision=48433
2010-08-03 20:23:43 +00:00
Timo Kreuzer
cf02088179 [CRT]
Implement a proper version of _assert. It nows shows a message box with the details and let's the user choose to either abort, debug or ignore the assertion.
See bug 5486, bug 5507, bug 5511

svn path=/trunk/; revision=48432
2010-08-03 16:09:33 +00:00
Cameron Gutman
75f1ada3df [WS2_32]: Fix buffer overrun in getservbyname. Patch by Alexander Yastrebov - menone7 at gmail dot com
svn path=/trunk/; revision=48424
2010-08-02 21:31:50 +00:00
Cameron Gutman
18bc5a24b5 Xcode....
svn path=/trunk/; revision=48423
2010-08-02 21:26:12 +00:00
Cameron Gutman
db0f412b3e [NTOS]: Fix kernel memory corruption when dequeuing a PnP event
svn path=/trunk/; revision=48422
2010-08-02 21:22:34 +00:00
Timo Kreuzer
917fbfd1ea [PSDK]
add missing LPCOLORREF to windef.h

svn path=/trunk/; revision=48414
2010-08-02 14:29:09 +00:00
Cameron Gutman
9088c79a22 There is nothing to say about this...
svn path=/trunk/; revision=48410
2010-08-02 03:52:52 +00:00
Cameron Gutman
caa555a453 [AFD]: BytesAvailable needs to be updated even when peeking so we don't run off the end of our buffer
svn path=/trunk/; revision=48405
2010-08-01 23:52:23 +00:00
Cameron Gutman
a7c693ea78 Forgetting to save really sucks. Sorry again for the wasted commit.
svn path=/trunk/; revision=48404
2010-08-01 23:46:57 +00:00
Cameron Gutman
e98fc993d1 [AFD]: Fix read data corruption when peeking at network data (TDI_RECEIVE_PEEK is specified for a stream socket)
svn path=/trunk/; revision=48403
2010-08-01 23:42:33 +00:00
Cameron Gutman
be40e4a043 Fix a typo
svn path=/trunk/; revision=48402
2010-08-01 23:20:31 +00:00
Cameron Gutman
4e63fd0e5a Fix a copy-paste mistake and remove an unused variable
svn path=/trunk/; revision=48401
2010-08-01 21:08:53 +00:00
Cameron Gutman
14fc97df0c [AFD]: Revert r42674 and part of r47156
svn path=/trunk/; revision=48400
2010-08-01 21:00:40 +00:00
Cameron Gutman
57eed17e05 [DHCPCSVC]: Revert part of r48215
svn path=/trunk/; revision=48399
2010-08-01 20:34:10 +00:00
Giannis Adamopoulos
716e283fb3 [rtl]
- Use __inline instead of __inline__ to fix compilation with msvc

svn path=/trunk/; revision=48398
2010-08-01 16:34:22 +00:00
Giannis Adamopoulos
84d8b7850d [hal]
- define REGISTERCALL in order to replace __attribute__((regparm(3))) and fix compilation with msvc. It was used only as an optimization so it is safe to be defined as FASTCALL for msvc. For gcc it is still defined as __attribute__((regparm(3)))

svn path=/trunk/; revision=48397
2010-08-01 16:27:48 +00:00
Aleksey Bragin
071e036cb8 [INCLUDE/WINE]
- Update Wine-specific headers to Wine-1.3.
- Remove unneeded 16 bit header, and add a bit of stuff into another legacy header.
- Indicate in config.h that there is a freetype library present.

svn path=/trunk/; revision=48388
2010-07-31 22:39:22 +00:00
Aleksey Bragin
9746a25057 [PSDK]
- Make some winuser.h functions conforming to MS PSDK.

svn path=/trunk/; revision=48387
2010-07-31 22:36:22 +00:00
Aleksey Bragin
9d5dfb1c1c - Fix build, sorry.
svn path=/trunk/; revision=48386
2010-07-31 22:20:34 +00:00
Eric Kohl
aacfe3956c [LSASRV]
Add more well known sids to the lookup list.

svn path=/trunk/; revision=48385
2010-07-31 22:02:13 +00:00
Aleksey Bragin
cb3bc802c8 [PSDK]
- Get back to old/compatible way of declaring dummy unions and structs for IMAGE_RESOURCE_DIRECTORY_ENTRY. Also, second nameless structure is called DUMMYSTRUCTNAME3 to be compatible with Wine's code which, for some reason, expects WORD Id wrapped into yet another struct, depending on endiannes.

svn path=/trunk/; revision=48384
2010-07-31 21:40:40 +00:00
Gabriel Ilardi
04dc5e3fce [freeldr]
- Patch by Carlo Bramini reviewed by lassy:
The CF must be tested when reading time because the legacy DS12x87
chip shows a condition where it's updating its time registers and if it's the
case then the call should be retried later. Now the time is valid when both CF flags for date and time are good at the same time.
It's better to send the correct value of CF with the proper field to the REGS structure instead of hoping that the flag won't be changed by compiled code.
In the Int386() function I did the fix for acquiring the status flags to send to the software interrupt.
I also think it is also a good idea to always clear the direction flag before
doing movsb/movsw/movsd in this function. Since we are working with DOS stuff,
the state of the direction register could be unknown, who knows what happens
after those INT opcodes. Afterall I don't think that adding these two "cld"
would be a big problem.
See issue #2786 for more details.

svn path=/trunk/; revision=48383
2010-07-31 21:00:40 +00:00
Giannis Adamopoulos
a5101cce25 [explorer]
- Using msvc doesn't mean using ms sdks

svn path=/trunk/; revision=48381
2010-07-31 12:16:03 +00:00
Aleksey Bragin
74ff3ad0d7 [PSDK]
- Fix GetTextCharsetInfo prototype according to MS Platform SDK.

svn path=/trunk/; revision=48379
2010-07-31 12:02:46 +00:00
Eric Kohl
ad21f9ddae [LSASRV]
- Move all includes into a common header file.
- Create a (still incomplete) well-known-sid lookup table and use it in LsarLookupSids.
- Add missing file headers.

svn path=/trunk/; revision=48378
2010-07-31 11:24:16 +00:00
Eric Kohl
d3111f1e5b [LSASRV]
Replace hard-coded privilege names by privilege names from the PSDK.

svn path=/trunk/; revision=48377
2010-07-31 09:06:42 +00:00
Giannis Adamopoulos
7d1896ae99 [browseui]
- keep the hacky declaration of SHANDLE_PTR and make it work with msvc as well
- Make BEGIN_MSG_MAP compatible with msvc

svn path=/trunk/; revision=48376
2010-07-31 07:53:06 +00:00
Eric Kohl
f271e405f4 [PSDK]
Add missing privilege names.

svn path=/trunk/; revision=48375
2010-07-31 07:09:40 +00:00
Giannis Adamopoulos
8fd2068781 [shell32]
- Fix a compilation error with msvc

svn path=/trunk/; revision=48371
2010-07-30 18:37:51 +00:00
Giannis Adamopoulos
d2a89a0c29 [ndis.h]
- Fix compilation with msvc

svn path=/trunk/; revision=48370
2010-07-30 17:05:17 +00:00
Gabriel Ilardi
395c797826 [TASKMGR]
- Make the caption the same as the app title so that bring to focus can work as expected in Slovak and other languages as well. Add a note for translators. 
See issue #5533 for more details.

svn path=/trunk/; revision=48367
2010-07-29 20:17:09 +00:00
Amine Khaldi
8e9eff5518 [DXSDK]
- Define STATIC_KSMETHODSETID_BdaChangeSync without braces.
[PSDK]
- _ANONYMOUS_UNION/_ANONYMOUS_STRUCT -> __MINGW_EXTENSION
- usbuser.h : Add missing #endif

svn path=/trunk/; revision=48361
2010-07-29 16:42:00 +00:00
Giannis Adamopoulos
dd08ddbbe9 Revert 48355
svn path=/trunk/; revision=48358
2010-07-29 16:05:54 +00:00
Giannis Adamopoulos
101767d1e6 [basetsd.h]
-define SHANDLE_PTR

[browseui]
-do not define SHANDLE_PTR locally. Using ms psdk isn't the same with compiling with msvc

svn path=/trunk/; revision=48355
2010-07-29 14:40:21 +00:00
Giannis Adamopoulos
b3bd25a0cd - Fix setjmp for msvc
svn path=/trunk/; revision=48352
2010-07-29 12:23:03 +00:00
Giannis Adamopoulos
77d4142d6d [win32csr]
- Fix compilation with msvc

svn path=/trunk/; revision=48349
2010-07-29 10:20:41 +00:00
Daniel Reimer
1a92fc2831 Bug 5531: [PATCH] regedit: cut, copy, paste, etc. on hexedit by Katayama Hirofumi
svn path=/trunk/; revision=48334
2010-07-28 19:13:24 +00:00
Amine Khaldi
35efa046d1 [DXSDK]
- atsmedia.h : Add proper header inclusion and apply a consistent formatting.
- bdamedia.h : Rename BDAMEDIA_H__ to _BDAMEDIA_, add some missing inclusions, add __MINGW_EXTENSION and apply a consistent formatting.
- bdatypes.h : Apply a consistent formatting.

svn path=/trunk/; revision=48330
2010-07-28 13:59:28 +00:00
Amine Khaldi
80a061f01c [DXSDK]
- Add some headers to some headers.

svn path=/trunk/; revision=48328
2010-07-28 12:52:04 +00:00
Amine Khaldi
978a651ccf - Delete ppcdevtree.
svn path=/trunk/; revision=48327
2010-07-28 10:45:51 +00:00
Timo Kreuzer
c2fe1ade3c [WIN32CSR]
- Fix array subscript out of bounds error
- Fix a cast

svn path=/trunk/; revision=48322
2010-07-28 01:17:23 +00:00
Timo Kreuzer
055b4d4b12 [NDK]
Merge r41483 from amd64 branch:
- Fix definition of HARDERROR_MSG

svn path=/trunk/; revision=48321
2010-07-28 00:26:43 +00:00
Timo Kreuzer
129a5cbbea [DBGHELP]
Define UNW_FLAG_* in the rbuild file, since we don't have them in winnt.h where wine has them.

svn path=/trunk/; revision=48315
2010-07-27 17:02:06 +00:00
Timo Kreuzer
711796acd9 [GDI32API]
- fix some 64 bit warnings

svn path=/trunk/; revision=48314
2010-07-27 16:24:31 +00:00
Timo Kreuzer
0739761488 [FREELDR]
Don't redefine _NTSYSTEM_

svn path=/trunk/; revision=48313
2010-07-27 16:21:20 +00:00
Timo Kreuzer
59b1059723 [BATTC]
Fix a warning

svn path=/trunk/; revision=48312
2010-07-27 16:09:15 +00:00
Timo Kreuzer
eba4c7f302 [winnt.h]
Remove definition of UNW_FLAG* constants. They don't belong here.

svn path=/trunk/; revision=48308
2010-07-27 15:58:53 +00:00
Timo Kreuzer
32c8cb0448 [UNICODE]
include string.h, for memcpy

svn path=/trunk/; revision=48307
2010-07-27 15:47:04 +00:00
Timo Kreuzer
64cf51962c [dbghelp.h] / [imagehlp.h]
- fix LOADED_IMAGE, UpdateDebugInfoFile, UpdateDebugInfoFileEx, ReBaseImage

svn path=/trunk/; revision=48306
2010-07-27 14:08:36 +00:00
Amine Khaldi
ff9c2c0033 [PSDK]
- Mark TraceMessageVa as WMIAPI.

svn path=/trunk/; revision=48300
2010-07-27 09:56:21 +00:00
Amine Khaldi
012c09c954 [XDK]
- WmiTraceMessageVa is NTAPI, not __cdecl.
[DDK]
- Update wdm.h to reflect XDK changes.

svn path=/trunk/; revision=48299
2010-07-27 09:14:13 +00:00
evb
bf7de6528b Add all pci bridge control function (PciBridgeIoBase, PciBridgeIoLimit, PciBridgeMemoryBase, PciBridgeMemoryLimit, PciBridgePrefetchMemoryBase, PciBridgePrefetchMemoryLimit, PciBridgeMemoryWorstCasealignment, PciBridgeIsPositiveDecode, PciBridgeIsSubtractiveDecode)
More support ICH0/1/2/3/4 hub
Add all PCI2PCI bridge limit/current resource codes (PPBridge_*), now is BAR setup okay, and Device_* must be implement
Support ISA+VGA legacy decode, 20+64-bit decode, ROM BAR, prefetch BAR

svn path=/trunk/; revision=48298
2010-07-27 03:24:24 +00:00
Daniel Reimer
8458508701 Maybe fix dbghelp build on 64 bit.
svn path=/trunk/; revision=48292
2010-07-26 23:48:15 +00:00
Timo Kreuzer
ac342cea5f [NTOSKRNL]
◙ Fix MiInitializePageTable
◙ Comment out some more code for amd64

svn path=/trunk/; revision=48291
2010-07-26 23:09:17 +00:00
Daniel Reimer
7d17455cc4 Sync dbghelp and imagehlp to Wine 1.2
Winhttp and Wininet don't like me and so I skip them for now.

svn path=/trunk/; revision=48290
2010-07-26 22:33:59 +00:00
Giannis Adamopoulos
e3b6d0cea7 Revert a part of my previous commit
svn path=/trunk/; revision=48289
2010-07-26 21:48:52 +00:00
Sir Richard
a9fb81cbae [NTOS]: Another long-lost-promised straggler for Timo. There may be more of these needed, this is what I had done on my disk.
svn path=/trunk/; revision=48288
2010-07-26 21:45:42 +00:00
Giannis Adamopoulos
91f37cae9a [ntos]
- Fix several issues with msvc in ntoskrnl
- Add ATTRIB_NORETURN definition which will be used by function pointers because msvc doesn't like DECLSPEC_NORETURN in function pointers

svn path=/trunk/; revision=48287
2010-07-26 21:32:38 +00:00
Daniel Reimer
f126b1d282 Sync winemp3.acm with Wine HEAD. This one uses libmpg123 which was added in Version 1.12.3. Thx to Timo Kreuzer for telling me the magics of the crt="dll" switch.
svn path=/trunk/; revision=48279
2010-07-26 15:04:32 +00:00
Timo Kreuzer
deaaddddb6 [reactos.dff]
make explorer.exe and ntvdm optional

svn path=/trunk/; revision=48278
2010-07-26 14:01:57 +00:00
Amine Khaldi
6e64b7602b [PSDK]
- Rename _WINIOCTL_H to _WINIOCTL_

svn path=/trunk/; revision=48277
2010-07-26 13:49:12 +00:00
Timo Kreuzer
79de2377a7 Add hivecls_amd64.inf
svn path=/trunk/; revision=48276
2010-07-26 13:43:40 +00:00
Sylvain Petreolle
602ffa4c9a Add diffs for msimtf and atl.
svn path=/trunk/; revision=48275
2010-07-26 09:13:50 +00:00
Pierre Schweitzer
41c67f722a Get back r47063 & r47960 reverted by r48273
svn path=/trunk/; revision=48274
2010-07-26 08:54:26 +00:00
Daniel Reimer
6170959bce Finish the Wine sync. These components are not just rc file changes
atl, comctl32, comdlg32, dwmapi, fusion, gdiplus, jscript, mpr, mshtml, msi, msimtf, msxml3, ole32, oleaut32, riched20, shdocvw, shlwapi, urlmon, usp10, version and windowscodecs
Seems to build and boot. /me hides

svn path=/trunk/; revision=48273
2010-07-26 02:26:04 +00:00
Timo Kreuzer
032f133284 Add amd64 inf files
svn path=/trunk/; revision=48272
2010-07-26 01:42:31 +00:00
Timo Kreuzer
0e58e11548 [CRT]
Add logf wrapper

svn path=/trunk/; revision=48271
2010-07-26 01:10:20 +00:00
Daniel Reimer
8a3289ed5c Wine dll sync commit 1 of 2.
This one syncs all dlls which only have resource file changes.
avifil32, credui, crypt32, cryptdlg, cryptui, iccvid, kernel32, localspl, localui, mapi32, msacm32, msrle32, msvfw32, msvidc32, oleacc, oledlg, pstorec, shdoclc, wldap32

svn path=/trunk/; revision=48269
2010-07-26 00:12:22 +00:00
Timo Kreuzer
1c9a033a6c [MSVCRT]
Add exports for ceilf, cosf, logf

svn path=/trunk/; revision=48265
2010-07-25 21:58:08 +00:00
Sylvain Petreolle
949283de1e [TOUCH]
Remove ntdll library and link to getopt.

svn path=/trunk/; revision=48263
2010-07-25 20:57:38 +00:00
Amine Khaldi
d713d0e533 Ukrainian translation patch for taskmgr, explorer and shell32. By Igor Paliychuk.
svn path=/trunk/; revision=48254
2010-07-25 16:15:27 +00:00
Amine Khaldi
79fc59a054 Fix build.
svn path=/trunk/; revision=48253
2010-07-25 14:20:03 +00:00
Timo Kreuzer
461b4ab969 [NEWINFLIB]
PINT -> INT*

svn path=/trunk/; revision=48252
2010-07-25 14:09:08 +00:00
Timo Kreuzer
371d1d1546 [USETUP] / [INFLIB]
Merge r36443 from amd64 branch:
Remove references to Infp Functions that collide with inflib names, call the actual functions instead of making small functions that shared the same parameters and just called into inflib anyway, with no changes whatsoever.
Make InfpGetIntField's 3rd parameter an INT* (Samuel Serapion)

svn path=/trunk/; revision=48251
2010-07-25 13:46:54 +00:00
Timo Kreuzer
b2b385e9a8 [OSKITTCP]
Don't add leading underscores to symbols on amd64 builds

svn path=/trunk/; revision=48250
2010-07-25 12:34:56 +00:00
Timo Kreuzer
592b4de3ba [NTOSKRNL]
- Fix MiAddressToPti and implement MiAddressToPxi for amd64
- Replace #error with DPRINT and ASSERT(FALSE) in MiInitializeLargePageSupport
- Implement amd64 specific MmCreateProcessAddressSpace
- Add MmProtectToPteMask for amd64 (copied from x86)
- Remove amd64 version of MmInitializeHandBuiltProcess

svn path=/trunk/; revision=48249
2010-07-25 12:00:26 +00:00
Timo Kreuzer
2d50d1e044 [MINGW]
Add a temporary hack to fix amd64 compilation for some modules.

svn path=/trunk/; revision=48241
2010-07-25 03:08:53 +00:00
Cameron Gutman
d1cca9ae42 [IPCONFIG]
- Fix the media detection code in ipconfig

svn path=/trunk/; revision=48240
2010-07-25 03:02:01 +00:00
Amine Khaldi
fbdc7009aa [PSDK]
- Make FORCEINLINE extern (not static)
- Declare WspiapiLegacyFreeAddrInfo, WspiapiLegacyGetAddrInfo and WspiapiLegacyGetNameInfo as static __inline.
[CRT]
- Convert FillBuf to static __inline.
[NTOS]
- Convert MmProtectToPteMask to extern.
- Convert LpcpAllocateFromPortZone to static __inline.

svn path=/trunk/; revision=48239
2010-07-25 01:22:15 +00:00
Timo Kreuzer
0bbdcf4d8b [NTOSKRNL]
Make MmIsAddressValid portable by using _MI_PAGING_LEVELS macro.

svn path=/trunk/; revision=48238
2010-07-25 00:50:03 +00:00
Sir Richard
a28e798006 [NTOS]: Implement MmDeleteTeb, VADs are now deleted/freed on thread exit as well (but the underlying page is still leaked). Should fix the advapi32 security crash.
[NTOS]: Sometimes it seems we hit some bad VADs due to bugs? in the AVL tree implementation. I'm going on vacation for a month and can't look at this, so I've hacked the code to ignore such VADs for now, in the interest of fixing the winetest regression.

svn path=/trunk/; revision=48235
2010-07-24 16:28:51 +00:00
Sir Richard
2384532846 [NTOS]: Implement MmCleanProcessAddressSpace in ARM3, now the PEB/TEB VADs are removed when the process exits (although the pages are still leaking, for now), and the pool allocation for the VAD is also freed.
[NTOS]: Use ARM3 paged pool up until smss.exe starts. There's a last bug in the expansion code before we can get rid of the old paged pool.

svn path=/trunk/; revision=48234
2010-07-24 16:12:39 +00:00
Sir Richard
3ec9a11a16 [NTOS]: Reimplement MmCreateProcessAddressSpace in ARM3. Basically the same as before but using the ARM3 PFN list APIs, the ARM3 macros, etc. Once change is processes are now populating the MmProcessList, and the "MmGlobalKernelPageTable" isn't used anymore for new processes. Also the mappings come from SysPTE space, not hyperspace.
[NTOS]: More work will be needed in this area, but this gets rid of another ReactOS dinosaur.

svn path=/trunk/; revision=48233
2010-07-24 15:30:24 +00:00
Cameron Gutman
ecd26cf41a [DHCPCSVC]
- Initialize length to prevent a possible buffer overflow
- Thanks to janderwald for finding my mistake

svn path=/trunk/; revision=48232
2010-07-24 15:04:24 +00:00
Sir Richard
7ea7b76e51 [NTOS]: Take over MmInitializeProcessAddressSpace, MmInitializeHandBuiltProcess, MmInitializeHandBuiltProcess2 into ARM3, and cleanup the code.
[NTOS]: Prepare to take over MmCreateProcessAddressSpace.

svn path=/trunk/; revision=48231
2010-07-24 15:01:05 +00:00
Amine Khaldi
3bb2ea0d09 [KMIXER]
- Remove memset and memcpy implementations from pin.c

svn path=/trunk/; revision=48230
2010-07-24 14:49:46 +00:00
Amine Khaldi
e297cfa306 [NDIS]
- Move NDIS_HARDWARE_STATUS, GEN_GET_TIME_CAPS, GEN_GET_NETCARD_TIME, NDIS_MEDIA_STATE, NDIS_GUID, NDIS_PM_PACKET_PATTERN, NETWORK_ADDRESS, NETWORK_ADDRESS_LIST, TRANSPORT_HEADER_OFFSET and NDIS_CO_LINK_SPEED from ndis.h to ntddndis.h (where they should belong).
- typedef NDIS_STATUS for ntddndis.h
- Group some related definitions in ndis.h
- Some _ANONYMOUS_* -> __MINGW_EXTENSION conversions.
- Guard some definitions against NDIS_LEGACY_DRIVER.
- Add some missing definitions.
- NDIS_MINIPORT_BLOCK : PVOID  Signature; -> NDIS_OBJECT_HEADER Header;
- Add missing xfilter.h inclusion.
- Add some missing function declarations.
- Convert some function declarations into macros.
- Guard some definitions against NDIS_LEGACY_MINIPORT.

svn path=/trunk/; revision=48229
2010-07-24 13:47:41 +00:00
Amine Khaldi
39cec38832 [XDK]
- Missed this one (FORCEINLINE)
[DDK]
- Update DDK to reflect the XDK changes.

svn path=/trunk/; revision=48228
2010-07-24 10:51:22 +00:00
Amine Khaldi
e1e0ed63e2 [[MINGW-W64]
- Tighten up reactos.diff now that we have all those diffs (except one) committed upstream.

svn path=/trunk/; revision=48227
2010-07-24 10:10:15 +00:00
Amine Khaldi
0e192aab81 [MINGW-W64]
- Sync gs_support.c now that our patches are committed upstream.

svn path=/trunk/; revision=48226
2010-07-24 09:59:34 +00:00
Amine Khaldi
e7cebee706 [CRT]
- Add __MINGW_ATTRIB_UNUSED macro.

svn path=/trunk/; revision=48225
2010-07-24 09:52:46 +00:00
Amine Khaldi
74f12eeaf7 [XDK]
- Make sure FORCEINLINE comes as first in declarations.
[DDK]
- Update DDK to reflect the XDK changes.

svn path=/trunk/; revision=48224
2010-07-24 09:20:56 +00:00
Sir Richard
be9e04b5cb [NTOS]: Implement an AVL node deletion algorithm (RtlpDeleteAvlTreeNode). Use it in MiRemoveNode, now implemeneted, and RtlDeleteElementGenericTableAvl, also now implemented. It hopefully works.
svn path=/trunk/; revision=48223
2010-07-24 04:00:22 +00:00
Timo Kreuzer
bfc2638590 [NTOSKRNL]
Bring over all current amd64 specific code from the amd64 branch

svn path=/trunk/; revision=48222
2010-07-24 01:12:13 +00:00
Cameron Gutman
869cdbce37 - Fix epic naming fail (DhcpEnabled -> EnableDHCP
[DHCPCSVC]: Verify that the length is correct
[TCPIP]: Make sure DHCP is enabled before reading IP information

svn path=/trunk/; revision=48221
2010-07-24 00:25:59 +00:00
Timo Kreuzer
66b4c2ff3e [NTOSKRNL]
Add missing declarations

svn path=/trunk/; revision=48220
2010-07-23 23:50:26 +00:00
Timo Kreuzer
19540dcad5 [NTOSKRNL]
- Add KiGetLinkedTrapFrame for amd64
- Add MiAddressToPti
- Fix MmCreateProcessAddressSpace, MmInitializeHandBuiltProcess prototype (ULONG -> ULONG_PTR)
- #if out some C_ASSERTs for other architectures than x86
- #define InitializeSListHead to RtlInitializeSListHead on amd64
- Don't implement MiSyncARM3WithROS on amd64
- Implement RtlPcToFileHeader, RtlpGetStackLimits

svn path=/trunk/; revision=48219
2010-07-23 23:30:00 +00:00
Timo Kreuzer
c168961990 [NDK]
Update amd64/asm.h to MSVC compatible format

svn path=/trunk/; revision=48218
2010-07-23 23:23:51 +00:00
Timo Kreuzer
56f8b1717a [NTOSKRNL]
Don't use freeldrhack on amd64

svn path=/trunk/; revision=48217
2010-07-23 22:40:13 +00:00
Cameron Gutman
59081046c2 - Remove some debug info that I forgot about
svn path=/trunk/; revision=48216
2010-07-23 22:33:09 +00:00
Cameron Gutman
63dfd0ccaa [NETCFGX]
- Create the DhcpEnabled value in the registry
[TCPIP]
- Apply the static IP address configuration data
[DHCPCSVC]
- Remove the static IP address code

svn path=/trunk/; revision=48215
2010-07-23 22:30:27 +00:00
Cameron Gutman
00e8981795 [DHCPCSVC]
- Generate a link-local IP address if DHCP fails
- Don't destroy the IP addresses in the registry

svn path=/trunk/; revision=48213
2010-07-23 21:57:08 +00:00
Cameron Gutman
3d5cb94c4a [NDIS]
- Verify that each adapter has been initialized before passing it to the protocol's BindAdapter function
- Also verify that each adapter has not already been bound to the protocol
- Miniport drivers can now function without a reboot (needed to use 3rd-party NIC drivers on the live CD)

svn path=/trunk/; revision=48212
2010-07-23 16:34:35 +00:00
Amine Khaldi
e814e6afe8 [NDIS]
- Guard several definitions against NDIS_SUPPORT_60_COMPATIBLE_API.
- __GNU_EXTENSION -> __MINGW_EXTENSION conversions.
- Group some related definitions.
- Update NDIS_RW_LOCK.
- Improve NDIS_TIMER_FUNCTION.
- Add several missing Ndis* function declarations.
- Guard several definitions against NDIS_LEGACY_DRIVER and NDIS_LEGACY_MINIPORT.
- Convert some function declarations into macros.

svn path=/trunk/; revision=48211
2010-07-23 15:51:54 +00:00
Daniel Reimer
87b3292e96 Sync reg, xcopy, winhlp32, wordpad with Wine 1.2
svn path=/trunk/; revision=48210
2010-07-23 08:36:51 +00:00
Daniel Reimer
1048fa4974 Sync Winefile with Wine 1.2
svn path=/trunk/; revision=48209
2010-07-23 08:34:57 +00:00
Timo Kreuzer
88499392ee [PSEH]
Stub amd64 functions and remove leading underscores from symbols

svn path=/trunk/; revision=48207
2010-07-23 02:18:30 +00:00
Timo Kreuzer
66365c895c [PSEH]
Add (non working) 64bit code

svn path=/trunk/; revision=48206
2010-07-23 01:36:44 +00:00
Amine Khaldi
2aa6e09c17 [NDIS]
- Convert NDIS_ERROR_CODE from a typedef to a define.
- Add some missing NDIS_STATUS_* definitions.
- Some _ANONYMOUS_UNION/_ANONYMOUS_STRUCT/__GNU_EXTENSION -> __MINGW_EXTENSION conversions.
- Update NDIS_REQUEST_TYPE and NDIS_PER_PACKET_INFO.
- Guard several definitions against NDIS_LEGACY_DRIVER.
- Improve NDIS_REQUEST.
- Add missing CO_ADDRESS_FAMILY_INFINIBAND, Ndis{Set,Get}PacketCancelId, NDIS_PACKET_{FIRST,LAST}_NDIS_BUFFER and NDIS_PACKET_VALID_COUNTS.
- Group related definitions.
- Update several Ndis* function declarations.
- Add missing NdisInterlocked{Push,Pop}EntryList and NdisGetCurrentSystemTime macros.

svn path=/trunk/; revision=48205
2010-07-23 00:20:13 +00:00
Timo Kreuzer
7feaf99fb1 [NTOSKRNL]
- Add some missing constants for amd64
- Fix compilation of kd64
- Make MmAllocationFragment a SIZE_T

svn path=/trunk/; revision=48204
2010-07-22 23:22:57 +00:00
Daniel Reimer
60082fb243 Update FireFox, KDE, MirandaIM, Mono, Opera, RosBE64, SeaMonkey, ThunderBird, uTorrent, VLC in rapps.
svn path=/trunk/; revision=48203
2010-07-22 22:01:58 +00:00
Sir Richard
89acc3113a [NTOS]: Stop creating a memory area for the shared user data page.
[NTOS]: Also stop creating a memory area for the illegal user-mode parts of address space.
[NTOS]: Instead, mark the area between MM_HIGHEST_VAD_ADDRESS and MM_HIGHEST_USER_ADDRESS as being ARM3 as well: this way, ARM3 will get the illegal access (and fault), and it will also get the shared user data page access.
[NTOS]: With the previous commit, ARM3 knows how to handle the shared user data page access, and does so succesfully. End result: two more MAREA types have been removed, and the address space setup code is now much simpler.

svn path=/trunk/; revision=48202
2010-07-22 20:54:37 +00:00
Sir Richard
da305551a9 Note: this patch only implements the code paths, they are not excercised yet.
[NTOS]: Implement handling a very special case of "prototype PTE", the one used to map the shared user data for user-mode applications.
[NTOS]: MiCheckVirtualAddress detects this (Windows behavior) and returns a prototype PTE that's marked MM_READONLY. This is our MmSharedUserDataPte from before. This gets sent to MiDispatchFault which calls MiResolveProtoPteFault to handle it. In turn, this calls MiCompleteProtoPteFault. All these code paths have heavy ASSERTions to only allow them to be hit for the shared user data page, however, in the far distant future when prototype PTEs are used for section objects, we'll at least have the right checks and code flow (many of these ASSERTions will then have to be removed).
[NTOS]: The end result is that we also now have STATUS_PAGE_FAULT_TRANSITION, not just STATUS_PAGE_FAULT_DEMAND_ZERO, and that prototype PTEs are somewhat understood and some assumptions have been removed.

svn path=/trunk/; revision=48201
2010-07-22 20:52:23 +00:00
Sir Richard
dd68882cd0 [NTOS]: Stop handling PEB/TEB MAREAs since they're not used anymore.
svn path=/trunk/; revision=48200
2010-07-22 20:48:04 +00:00
Sir Richard
9e489a9b8e [NTOS]: Define the template prototype PTE.
svn path=/trunk/; revision=48199
2010-07-22 20:47:28 +00:00
Sir Richard
155c1e701b [NTOS]: Stop handling a bunch of MEMORY_AREA_TYPEs that aren't used anymore.
svn path=/trunk/; revision=48198
2010-07-22 20:46:49 +00:00
Sir Richard
f907eeb4f9 [NTOS]: Antique leftover, initialize the shared user data page with MI_MAKE_HARDWARE_PTE_KERNEL
svn path=/trunk/; revision=48197
2010-07-22 20:46:19 +00:00
Cameron Gutman
cee7a2a71e [DHCPCSVC]
- Add a hack so we wait for TCP/IP to get ready and bind to adapters instead of failing immediately after the first probe
- Live CD and 2nd stage setup now have fully functional networking :)

svn path=/trunk/; revision=48195
2010-07-22 19:37:33 +00:00
Sir Richard
128fd3ca92 [NTOS]: Allocate the PEB at a pseudo-random address just like Windows XP SP2 and later, to prevent certain kinds of exploits.
[NTOS]: Allocate PEB and TEB using VADs! The user-mode fault handler seems to work fine, and I could find no regressions. This is the beginning of the end for MAREAs for VM allocations (they will remain for sections).

svn path=/trunk/; revision=48194
2010-07-22 19:08:45 +00:00
Cameron Gutman
92d6d7210c [NDIS]
- Refresh the protocol bindings after a new miniport is added
- Adapters added after boot work now
- One step closer to Live CD networking

svn path=/trunk/; revision=48193
2010-07-22 19:01:49 +00:00
Sir Richard
135986ec2e [NTOS]: To Timo, with Love (make System PTEs work on x64).
svn path=/trunk/; revision=48192
2010-07-22 18:55:36 +00:00
Sir Richard
7fa909a601 [NTOS]: Add support for handling a very specific type of user-fault on ARM3 memory: memory belonging to a VAD allocation made for a PEB/TEB (read-write) that hasn't yet been allocated.
[NTOS]: Define the demand-zero PDE template.

svn path=/trunk/; revision=48190
2010-07-22 18:37:27 +00:00
Cameron Gutman
9a28440154 [NETCFGX]
- Start the TCP/IP driver after we install a network adapter
- This fixes the major bug that blocks Live CD networking but we still have some DHCP issues (DHCP starts and fails before the NIC and TCP/IP has been installed) and some other adapter detection issues that I need to look into but this is a good first step

svn path=/trunk/; revision=48188
2010-07-22 18:29:35 +00:00
Sir Richard
23c3e742d9 [NTOS]: Fix a very stupid bug which made any machine with less than 52GB of RAM appear as a "Small memory machine" (instead of 13MB).
[NTOS]: Initialize MmTotalCommitLimit, MmTotalCommitLimitMaximum for consistency.
[NTOS]: Initialize and honor MmAllocationFragment value from registry, or from defaults.
[NTOS]: Initialize the system cache working set pushlock.
[NTOS]: Implement Mi(Un)Lock(Process)WorkingSet inlines to handle the various scenarios. Replace broken/hacky code that was in the system loader, fault handler, and VM deletion paths with the correct macros. No locking is done yet as ReactOS' MAREA implementation overloads the Vm field in EPROCESS, but the correct APC blockings and state transitions are done.
[NTOS]: Add another helper from symbols, MI_IS_PAGE_TABLE_OR_HYPER_ADDRESS, and use it instead of the math-by-hand.
[NTOS]: Add MM_IS_ANY_LOCK_HELD and MI_WS_OWNER to help out the new working let locking inlines (names taken from symbols).
[NTOS]: Add _1GB helper for large-memory checks. Also define _1KB as "1024u". The "u" makes GCC not complain when sizes reach >= 2GB, because GCC will interpret the integer literals as "signed", even if the final calculated value is in an unsigned variable.

svn path=/trunk/; revision=48187
2010-07-22 18:26:04 +00:00
Timo Kreuzer
4ae7219e5c [NDK]
Include the correct mmtypes.h for amd64

svn path=/trunk/; revision=48186
2010-07-22 15:18:55 +00:00
Timo Kreuzer
6c1aa302b3 [NTDLL]
- Add amd64 stubs for LdrInitializeThunk and KiUserApcDispatcher

svn path=/trunk/; revision=48185
2010-07-22 14:49:42 +00:00
Timo Kreuzer
5544c14ffb [NTDLL]
- Comment out RtlWalkFrameChain for amd64

svn path=/trunk/; revision=48184
2010-07-22 14:44:27 +00:00
Timo Kreuzer
3c4ff1e189 [MSVCRT]
- export _ftol only on i386
- fix _setjmp (2nd argument) and redirect setjmp

svn path=/trunk/; revision=48183
2010-07-22 10:23:52 +00:00
Timo Kreuzer
ecc9ac8278 [TLIST]
link to getopt library

svn path=/trunk/; revision=48182
2010-07-22 09:20:35 +00:00
Timo Kreuzer
ca9e196050 [MINGW]
- Remove getopt from mingw lib and put it into it's own static library
- change crt="dll" to crt="static" for the mingw startup libs, to avoid things like importing from itself.

svn path=/trunk/; revision=48181
2010-07-22 09:20:03 +00:00
Sir Richard
ba1b8c6dad [NTOS]: Fix "fail". Dedicated to Timo.
svn path=/trunk/; revision=48180
2010-07-22 05:22:26 +00:00
Timo Kreuzer
3ea611401e [NTOSKRL]
Add missing MI_LOWEST_VAD_ADDRESS for amd64

svn path=/trunk/; revision=48179
2010-07-22 04:19:27 +00:00
Timo Kreuzer
541d2436cd [NDK]
Fix MMADDRESS_NODE and MM_AVL_TABLE

svn path=/trunk/; revision=48178
2010-07-22 04:08:57 +00:00
Timo Kreuzer
5dd4d18e01 [FREELDR]
- In the fat bootsector, don't clobber ax, it contains the number of first cluster of freeldr.sys and is used by the fathelper code.
- Fix jump code in the fathelper code, like in the other bootsectors.
- Now booting from fat partitions (looks like that's what sysreg does) works again. It's safe under the condition that the cluster size is at least 4352 bytes, which is true for harddisks of sizes bigger than 272MB. Booting from smaller fat disks, like floppy breaks when freeldr.sys gets fragmented, which should rarely happen.

svn path=/trunk/; revision=48177
2010-07-22 03:29:25 +00:00
Sir Richard
c30930d3ec [NTOS]: MiRosTakeOverPebTebRanges now creates a small ~1MB ARM3 memory range on top of the ReactOS per-process VA. This does a couple of things: First of all, it changes the default PEB address to another static address. Still not dynamic like it will be soon, but at least it changes it a bit so we can test if anything breaks due to that. It also likewise changes the addresses of the TEBs (Shifted down by 1MB, basically). Finally, it blocks off that part of address space, which nobody should be using now, to see if anyone does indeed touch it.
[NTOS]: Knowing if this change causes issues will help later in determining regressions due to TEB/PEBs mapped as VADs by ARM3, and regressions simply due to the change in VA layout.
[NTOS]: When implemented, the VAD mapping for PEB/TEB will only use that ~1MB, which yes, will limit ReactOS processes to each have only 256 threads. That is obviously a temporary limitation, one I doubt we'll even hit, but I'm putting it out here so you know.

svn path=/trunk/; revision=48176
2010-07-22 03:22:43 +00:00
Sir Richard
d403f0ffd4 [NTOS]: Learn to build User PTEs as well, with MI_MAKE_HARDWARE_PTE_USER.
[NTOS]: MI_MAKE_HARDWARE_PTE becomes MI_MAKE_HARDWARE_PTE_KERNEL, since it assumed this. MI_MAKE_HARDWARE_PTE is now a "generic" you can use when you don't know what the PTE should be. It uses MiDetermineUserGlobalMask to set the right bits.
[NTOS]: Add two more helpers: MI_IS_PAGE_TABLE_ADDRESS and MI_IS_SYSTEM_PAGE_TABLE_ADDDRESS. One is in the symbols, the other I made up to make things clearer.
[NTOS]: MiResolveDemandZeroFault now knnows how to resolve user-demand-zero-faults.
[NTOS]: Implement MiZeroPfn to do the actual zeroing during user-demand-zero-faults (also later for VAD faults).

svn path=/trunk/; revision=48175
2010-07-22 02:20:27 +00:00
Sir Richard
7c3bc09fa1 [NTOS]: Add missing definitions, should fix build.
svn path=/trunk/; revision=48174
2010-07-22 02:10:43 +00:00
Sir Richard
40e4bc04b5 This patch introduces a highly-shareable version of AVL trees both for RTL usage and for ARM3's MM_AVL_TABLE/MMADDRESS_NODE structures used by VADs on Windows (and soon, ReactOS):
[RTL]: Uncouple generic table from AVL table implementation into its own avltable.c
[RTL]: Get rid of "Austin" and fix prototypes of AVL table functions.
[RTL]: Re-implement AVL table functions, sharing as much code as possible with the SPLAY tree implementation which is pretty decent. Lookup, insert, enumeration are implemented, but not delete.
[RTL]: Make large part of the RTL AVL package into its own "support" file that can work both with MMADDRESS_NODE and RTL_BALANCED_LINKS structures. The former is used by ARM3 for VADs.
[NTOS]: Implement basic VAD AVL tree routines (Insert, LookupEmpty, GetPrevious, CheckForConflict, Locate). This is enough to insert VADs, find a free address range, and locate a VAD by address. No delete yet
Thanks to Timo Kreuzer for some clever definitions, Knuth for his genius, several online C implementations for ideas, the HPI kernel blog for insight on how Windows does it, and others.

svn path=/trunk/; revision=48173
2010-07-22 01:41:45 +00:00
Sir Richard
23e18538f1 [NDK]: Add all the definitions regarding VADs.
svn path=/trunk/; revision=48172
2010-07-22 01:41:20 +00:00
Sir Richard
1ceb6d5850 [NDK]: Add missing RTL AVL Tree definitions, when used by user-mode applications.
svn path=/trunk/; revision=48171
2010-07-22 01:09:43 +00:00
Amine Khaldi
94896e3157 [PSDK]
- Forgot to commit this.

svn path=/trunk/; revision=48170
2010-07-21 23:47:33 +00:00
Amine Khaldi
281e92894d [DDK/NDIS]
- Group some related definitions.
- Remove some duplicated NDIS_MINIPORT_MAJOR_VERSION/NDIS_MINIPORT_MINOR_VERSION combinations.
- Add some missing NDIS_LEGACY_DRIVER guards.
- _ANONYMOUS_UNION -> __MINGW_EXTENSION
- Update NDIS_PROCESSOR_TYPE and NDIS_INTERFACE_TYPE.
- Guard NDIS_GENERIC_OBJECT with NDIS_SUPPORT_NDIS6.
- Add missing NDIS_WAN_GET_STATS, NdisAllocateGenericObject, NdisFreeGenericObject, fPACKET_WRAPPER_RESERVED and NDIS_FLAGS_* definitions.
- PNDIS_PACKET_POOL : HANDLE -> NDIS_HANDLE.
- Improve MEDIA_SPECIFIC_INFORMATION
- Some minor formatting.

svn path=/trunk/; revision=48169
2010-07-21 23:32:51 +00:00
Timo Kreuzer
b03d6b06cd [RBUILD]
Generate an RSP rule for the bootloader, this fixes "input line too long" error reported by tower.

svn path=/trunk/; revision=48168
2010-07-21 23:17:12 +00:00
Jérôme Gardou
efc09eb443 update README.WINE
svn path=/trunk/; revision=48167
2010-07-21 21:28:31 +00:00
Amine Khaldi
ec46e3cec9 [DDK/NDIS]
- Add missing ntstatus.h inclusion.
- Group some related definitions.
- Add several missing ones.

svn path=/trunk/; revision=48165
2010-07-21 19:12:14 +00:00
Sir Richard
f9444f0c52 [NTOS]: Handle faults on user-mode addresses, from user-mode processes, if they are owned by ARM3, so they can be forwarded to the VAD fault handler.
svn path=/trunk/; revision=48164
2010-07-21 18:09:31 +00:00
Sir Richard
e6cdd4d0fd [NTOS]: If the memory area is owned by ARM3, and it's being freed, don't touch the pages, just unlink it and free the memory. This is useful for MAREAs being used by ARM3 to protect pieces of address space from the Ros Mm Allocator, but when we don't want it to start playing with our pages. When we do free those MAREAs, keep it away!
svn path=/trunk/; revision=48163
2010-07-21 17:58:09 +00:00
Amine Khaldi
ce8b9f4fcb [CRT]
- Improve NULL definition.

svn path=/trunk/; revision=48162
2010-07-21 17:26:00 +00:00
Timo Kreuzer
f0daba18dd [CRT]
- Add a number of amd64 specific math functions
- add generic c versions of cos and sin
- Remove leading underscores from amd64 symbols

svn path=/trunk/; revision=48161
2010-07-21 16:03:44 +00:00
Timo Kreuzer
6c98c1057f [GDIPLUS]
On amd64 builds link gdiplus to crt

svn path=/trunk/; revision=48160
2010-07-21 15:55:51 +00:00
Gabriel Ilardi
11a32bcc42 [DESK]
- Implement theme quick preview. Patch by Katayama Hirofumi.

See issue #5525 for more details.

svn path=/trunk/; revision=48159
2010-07-21 12:20:18 +00:00
Timo Kreuzer
8d8f884623 [MINGW]
Remove broken _fmode declaration

svn path=/trunk/; revision=48158
2010-07-21 03:22:27 +00:00
Timo Kreuzer
147a7b6fc9 [stdlib.h]
- Improve definition of __mb_cur_max and related
- properly handle _M_CEE_PURE

svn path=/trunk/; revision=48157
2010-07-21 02:55:59 +00:00
Timo Kreuzer
398f20dacd [NTDLL]
Add _setjmp, _setjmpex and longjmp exports on amd64

svn path=/trunk/; revision=48156
2010-07-21 02:53:24 +00:00
Timo Kreuzer
240c411b7d [RSYM64]
Silence annoying error messages

svn path=/trunk/; revision=48155
2010-07-21 02:52:37 +00:00
Timo Kreuzer
0b2826db83 [MINGW]
link mingw_common to oldnames and ntdll

svn path=/trunk/; revision=48154
2010-07-21 02:04:49 +00:00
Timo Kreuzer
0bb23409ed [ATAPI]
Link to libcntpr to resolve memmove

svn path=/trunk/; revision=48153
2010-07-21 01:07:19 +00:00
Timo Kreuzer
d7f170a4ee [setjmp.h]
Add mingw_getsp as inline function

svn path=/trunk/; revision=48152
2010-07-21 00:31:14 +00:00
Timo Kreuzer
0711c75539 [CRT]
- Add amd64 versions of setjmp / longjmp
- Add amd64 versions of chkstk_asm.s, seh.s to libcntpr

svn path=/trunk/; revision=48151
2010-07-21 00:26:51 +00:00
Timo Kreuzer
d7e775596d [FREELDR]
- Unify rbuild rule for freeldr, except for ppc, which uses elfexecutable

svn path=/trunk/; revision=48149
2010-07-20 21:38:58 +00:00
Timo Kreuzer
6e137a3c50 [BZIP2]
- remove hal from libs
- convert to spec

svn path=/trunk/; revision=48148
2010-07-20 21:29:48 +00:00
Eric Kohl
924ee8d9ef [FORMATTING]
No code changes.

svn path=/trunk/; revision=48146
2010-07-20 20:48:11 +00:00
Timo Kreuzer
a9b1042fdf [NTOSKRNL/FREELDR]
Add amd64 linker scripts

svn path=/trunk/; revision=48144
2010-07-20 19:38:22 +00:00
Amine Khaldi
3f25e73244 [MINGW-W64]
- Wrap MSVC intrinsics onto GCC builtins.
- Mark 'cookie' as an __UNUSED_PARAM.
- Tighten up _WIN64 conditioning.

svn path=/trunk/; revision=48143
2010-07-20 19:20:37 +00:00
Amine Khaldi
d0588d0064 [MINGW-W64]
- MSVC compatibility fixes.

svn path=/trunk/; revision=48142
2010-07-20 19:18:03 +00:00
Amine Khaldi
fc502885bc [FORMATTING]
- No functionality change.

svn path=/trunk/; revision=48141
2010-07-20 19:15:30 +00:00
Timo Kreuzer
154520a060 [ACCESS]
WRC doesn't like (x+x+x+2+x+x+x+x+x+x), use (x+x+x+x+x+x+x+x+x+2) instead. To figure out the reason is left as an exercise for the reader.

svn path=/trunk/; revision=48140
2010-07-20 19:10:02 +00:00
Timo Kreuzer
bd8190afa7 [EVENTVWR]
Add missing newline at end of file

svn path=/trunk/; revision=48139
2010-07-20 18:32:28 +00:00
Sylvain Petreolle
2bb936ad97 Remove BOM from UTF-8 rc files.
svn path=/trunk/; revision=48138
2010-07-20 16:37:22 +00:00
Amine Khaldi
88db16e943 [HEADERS]
- Make the header inclusion MSVC compatible.
- compstui now compiles with MSVC.

svn path=/trunk/; revision=48137
2010-07-20 15:51:44 +00:00
Timo Kreuzer
96353a5721 [FREELDR]
- Update isobtrt.asm to handle new PE bootloader, should fix bootcdregtest
- Disable debugging in isoboot.asm

svn path=/trunk/; revision=48136
2010-07-20 15:45:53 +00:00
Amine Khaldi
bc9f1e46f1 [HEADERS]
- Make the header inclusion MSVC compatible.
- localspl now compiles with MSVC.

svn path=/trunk/; revision=48135
2010-07-20 14:15:51 +00:00
Amine Khaldi
357f79fba6 [HEADERS]
- Make the header inclusion MSVC compatible.

svn path=/trunk/; revision=48134
2010-07-20 14:11:43 +00:00
Amine Khaldi
a92f03aea3 [MINGW-W64]
- Group MSVC related definitions.

svn path=/trunk/; revision=48133
2010-07-20 13:04:56 +00:00
Amine Khaldi
8d15da936a [ACPI]
- Define WIN32 when compiling with MSVC

svn path=/trunk/; revision=48132
2010-07-20 12:11:17 +00:00
Amine Khaldi
5be505d1b4 [MINGW-W64]
- Define WIN32_LEAN_AND_MEAN.
- Include stdlib.h for _winmajor.

svn path=/trunk/; revision=48131
2010-07-20 12:10:10 +00:00
Amine Khaldi
dfd1480154 [MINGW-W64]
- reactos.diff was pushed upstream, so it's not needed anymore.
- Add a missing section.
- Include sect_attribs.h into tlssup.c

svn path=/trunk/; revision=48130
2010-07-20 10:14:07 +00:00
Timo Kreuzer
280df5a49b [CMD]
Remove BOMs from rc files. Let me know if something's wrong with that.

svn path=/trunk/; revision=48129
2010-07-20 04:22:04 +00:00
Timo Kreuzer
ba97a937c2 [RBUILD]
For amd64 builds, invoke wrc directly, instead of using gcc to preprocess the files. The reason is that newer gcc versions (like 4.5.0) don't support multiline continuation  (backslash-newline) except for preprocessor directives, but that breaks wine resource strings. This might have to be done for i386 builds too, sooner or later.

svn path=/trunk/; revision=48128
2010-07-20 03:01:57 +00:00
Timo Kreuzer
0228d0009e [wine/commctrl.h]
Don't use #include_next, instead imclude psdk/commctrl.h

svn path=/trunk/; revision=48127
2010-07-20 02:53:55 +00:00
Timo Kreuzer
d2f3e93b11 [sdkddkver.h]
Add UL suffix to some constants.

svn path=/trunk/; revision=48126
2010-07-20 02:52:40 +00:00
Timo Kreuzer
a3d974ee28 [rpcndr.h]
Add a tag to NDR_SCONTEXT struct. MS headers don't have it, but gcc 4.5.x requires it, because without the tag, the struct would be from an unnamed namespace and can't be shared by different compilation units in C++. Yeah whatever...

svn path=/trunk/; revision=48125
2010-07-19 23:47:00 +00:00
Timo Kreuzer
2a5f6261a5 [FREELDR]
Convert freeldr and setupldr to PE format.
Previously freeldr was a raw binary file, which made handling by the bootsector very easy, but it disqualified it from proper debugging with gdb using symbols. This is possible with having unstripped PE files.
As we don't have any space to do proper PE loading from the bootsector (I already had to trim some strings to get enough space for the new jump code), we need to make sure, that the PE file doesn't contain a .bss section, which is achieved by a linker script. The next thing is to make sure, we don't have any symbols in the output file, because they would make freeldr too big to be loaded into memory and they are useless anyway. On the other hand we like to keep the symbols in the .nostrip.sys files if requested, as this is the primary purpose. This is in theory not a problem, as we could simply strip the file at the end, but binutils throw a monkey wrench in our plans: both strip and objcopy disrespect the file alignment and create unaligned sections, that don't naturally match their VAs. This is solved by hacking rbuild to do invoke ld 2 times, one time without and one time with the symbols (if requested).
Now the bootsectors also got some changes: instead of jumping to the loading address (0x8000) they get the address of the entry point from the image optional header. This is slightly simplified, by assuming the NtHeader begins at offset 0xE0. This finally allows source level debugging of freeldr with gdb.

svn path=/trunk/; revision=48124
2010-07-19 23:18:31 +00:00
Jérôme Gardou
de85efc5ed [WIN32K]
- rewrite UserDrawIconEx, taken from yarotows, with same small modifications.
Fixes a whole bunch of user32:cursoricon tests


svn path=/trunk/; revision=48123
2010-07-19 22:41:35 +00:00
Timo Kreuzer
76d0b0da01 [RTL]
- Update amd64 specific code to be MSVC compatible
- Remove Leading underscores from symbols

svn path=/trunk/; revision=48122
2010-07-19 21:18:33 +00:00
Eric Kohl
d4353528e6 [ADVAPI32]
LookupAccountSidA:
- Change variable prefixes according to the variable type.
- Initialize Unicode strings after the call to LookupAccountSidW because the string length is not set properly otherwise.

svn path=/trunk/; revision=48121
2010-07-19 20:27:36 +00:00
Timo Kreuzer
4ea3ee5cd7 [NDK]
Protect LDT_ENTRY from redefinition

svn path=/trunk/; revision=48120
2010-07-19 19:43:09 +00:00
Timo Kreuzer
24480b9b7d [KERNEL32]
Merge r34770, r36475, r36990, r37019, r43852, r43952, r43954, r43979, r43981, r46868 from amd64 branch:
- Multiple ULONG / SIZE_T fixes
- Use UlongToHandle / HandleToUlong to convert between DWORD ProcessId and ClientId.UniqueProcess
- implement amd64 version of _dump_context
- Make IsConsoleHandle 64bit safe
- Update kernel32.pspec with a lot of Win7 (commented out) and some amd64 specific exports, add some more comments and fix sorting
- Implement amd64 version of BaseThreadStartupThunk and BaseProcessStartThunk
- Stub amd64 version of SwitchToFiber
- Implement amd64 version of BasepInitializeContext

svn path=/trunk/; revision=48119
2010-07-19 18:52:18 +00:00
evb
0b09093a76 Last code in PciScanBus: call to PciGetfunctionLimits now implement (call PcipGetfunctionLimits if PciSkipThisFunction say no)
PcipGetfunctionLimits support PCI_HACK_CRITICAL_DEVICE and PCI Debug Device by use IPI code (PciExecuteCriticalSystemRoutine implement)
PciConfigurators table define for Device, PCI-to-PCI (PP) Bridge plus CardBus Bridge but all configurator stub now
Configurator chain: Init (Massage) -> [WRITE INIT] (PciWriteLimitsAndRestoreCurrent) -> Restore -> SaveLimit -> SaveCurrent
Support ExpectedWritebackFailure
Fix bug in PciApplyHacks (found by me testing sir_richard code)
Now pass 7000 SLOC ^_^;~ Good night!

svn path=/trunk/; revision=48118
2010-07-19 16:35:52 +00:00
Sir Richard
c4c9522794 [HALACPI]: Wherever I(?) copy pasted the original HalAdjustResourceList from, in the ACPI HAL, I have no idea, but the definition was totally wrong. Should fix the build.
svn path=/trunk/; revision=48117
2010-07-19 15:32:13 +00:00
Sir Richard
0e248c787d Joint patch
By sir_richard: [PCIX]: - Implement PciIsSlotPresentInParentMethod for ACPI query, and PcoDecodeEnable utility function.
                	- Implement PciConfigureIdeController based on WDHC Whitepaper "How Windows Switches a Controller to Native Mode". Check for PciEanbleNativeModeATA in registry, InitSafeBootMode, and call the ACPI driver to evaluate if NATA is present on the slot. Only configure the controller if both channels support native mode, as this is a Windows restriction.
                        - Implement PciApplyHacks for enumeration and resource update cases. In the first case, we handle legacy DEC Alpha Intel i82375 and i82378 PCI-to-(E)ISA bridges with invalid class codes. In the second, we configure IDE controllers for Native mode, except the OPTi Viper-M, which is known to cause issues. We also support cards with legacy VGA decodes by telling the arbiter to enable full access to the rangesm and finally we completely disable the decodes on Compaq PCI Hotplug Controllers (Revision 17) on PAE systems, as they have bugs handling 64-bit addresses. Finally, on resource updates, we apply a vendor-specific errata to the IBM 20H2999 PCI Docking Bridge (Hotplug) used on Thinkpad 600 Series laptops, and we attempt to avoid issues that can happen on certain devices that are plugged into an ICH1/2/3/4 Intel Hub when it has been configured to do subtractive decode. Full information on these workarounds can be seen in the comments. Finally, we also enable CardBUS devices for ACPI-compliant mode, by crossing out the LegacyBaseAddress in the CardBUS Type 2 PCI Configuration Header.
			- Miscelleaneous code cleanups.
By eVb: More PciScanBus support, for debug PCI caps that driver use are dump, and detect nonBIOS configure device (spec is said that CacheLineSize != 0, LatencyTimer != 0 (on PCI-X, != 64)), if found NeedsHotPlugConfiguration to be set
By eVb: Support PCI_HACK_VIDEO_LEGACY_DECODE (call ario_ApplyBrokenVideoHack, but no arb support to do work)

svn path=/trunk/; revision=48116
2010-07-19 15:15:39 +00:00
Sir Richard
422f215958 [NDK]: Add a missing HAL function.
[PCI]: Update hack flags.

svn path=/trunk/; revision=48115
2010-07-19 15:14:34 +00:00
Amine Khaldi
fc8c4be858 [MINGW]
- __attribute__ ((__unused__)) -> __UNUSED_PARAM, which is MSVC compatible.

svn path=/trunk/; revision=48114
2010-07-19 09:58:51 +00:00
Amine Khaldi
693a016f71 [PSDK]
- Fix IOCTL_STORAGE_* redefinitions.

svn path=/trunk/; revision=48112
2010-07-19 01:06:32 +00:00
Amine Khaldi
72268d0e17 [CRT]
- Fix the double use of _CRTIMP.

svn path=/trunk/; revision=48111
2010-07-19 00:25:54 +00:00
Amine Khaldi
853b658b58 - Fix _InterlockedExchangeAdd16, _InterlockedCompareExchangePointer and _InterlockedExchangePointer intrinsics.
svn path=/trunk/; revision=48110
2010-07-18 22:43:04 +00:00
Amine Khaldi
5c0e7d3b75 Merge r45430 from amd64-bringup : Add #pragma intrinsic for msvc intrinsics.
svn path=/trunk/; revision=48109
2010-07-18 21:55:54 +00:00
Eric Kohl
5ef81f0fae [ADVAPI32/LSASRV]
- LookupAccountNameW: Call LsaLookupNames instead of returning a dummy name.
- Implement LsaLookupNames. Calls LsarLookupNames.
- LsarLookupNames: return dummy names.

svn path=/trunk/; revision=48108
2010-07-18 20:34:34 +00:00
evb
8091e98e96 Can't sleep so write more source codes! add scan bus functions to get power caps (PciGetEnhancedCapabilities) and AGP caps, use PciReadDeviceCapability util function, now can get wake levels, PCI power state plus target AGP ID. Now can find PCI Device that can't sleep neither! Ha-ha!
Support PCI_HACK_NO_PM_CAPS, PCI_HACK_PRESERVE_COMMAND, PCI_HACK_DONT_DISABLE_DECOES
Add scan bus function to set power for PCI, for now to power up (PciSetPowerManagedDevicePowerState), with support for device that is critical/broken (PciCanDisableDecodes)
Check spec-correct with PciStallForPowerChange after define PciPowerDelayTable for D0<->D3 crossmatrix spec timings (add PciReadDeviceConfig for support)
If bad spec timing use PCI verifier support (PciVerifierRetrieveFailureData) + STATUS_DEVICE_PROTOCOL_ERROR
Add PciVerifierFailureTable with all failure type
Almost the time for resource discovery of BARs!


svn path=/trunk/; revision=48107
2010-07-18 18:58:33 +00:00
Jérôme Gardou
a6017cd9b2 [W32KNAPI] - More tests to NtUserGetIconInfo
svn path=/trunk/; revision=48106
2010-07-18 16:57:32 +00:00
Jérôme Gardou
2946af0b8e Fix my grotesque mistake of r48104
svn path=/trunk/; revision=48105
2010-07-18 16:45:05 +00:00
Jérôme Gardou
0f1aba925e [W32KNAPI] - Add some more NtUserGetIconInfo tests
svn path=/trunk/; revision=48104
2010-07-18 16:40:15 +00:00
Jérôme Gardou
ec5e0ea56a [W32KNAPI] - Add some more NtUserGetIconInfo tests
svn path=/trunk/; revision=48103
2010-07-18 16:34:14 +00:00
Amine Khaldi
715a75ef6b [PSDK]
- Fix a couple of FIXMEs : UNALIGNED and RESTRICTED_POINTER definitions

svn path=/trunk/; revision=48102
2010-07-17 21:19:38 +00:00
Eric Kohl
faf61e4427 [LSASRV]
LsarLookupSids: Return ReferencedDomains information.

svn path=/trunk/; revision=48101
2010-07-17 18:15:34 +00:00
evb
54dcdffd9e More PciScanBus codes now to check saved PCI BIOS config header saved in registry (PciGetBiosConfig, PciSaveBiosConfig) and support load save compare (PcipIsSameDevice) if change in interrupt line
Also for interrupt line use HAL to get parent bus IRQ# if device connected (PciGetAdjustedInterruptLine)
For PCI debug HW PciIsDeviceOnDebugPath to detect, but have not real machine with this kind of device to test
Support PCI_HACK_NO_SUBSYSTEM and PCI_HACK_NO_SUBSYSTEM/REVISION_AFTER_D3 for when compareing
New config function required PciWriteDeviceConfig to update IRQ line from BIOS registry data
Save initial, current Command enables to PDO extension, interrupt data too

svn path=/trunk/; revision=48100
2010-07-17 16:53:18 +00:00
evb
693551c36a Implement PciPdoCreate and add all PDO IRP stub functions, set dispatch table for major/minor command, add PciIrpInvalidDeviceRequest
Fix bug in PciFindPdoByFunction should check device slot info too
Add more enumeration codes in PciScanBus to create PDO
PCI_HACK_FAKE_CLASS_CODE support
Build PDO extension, set ready for PnP manger, now 41 QDR returned
Add PCI/CardBus Bridge to list
Detect bridge/IDE controller with no power down support, hack for Intel 82375 PCI to EISA bridge for Alpha thanks to sir_richard
QUERY_ID is sent to PDOs now!

svn path=/trunk/; revision=48099
2010-07-17 15:59:09 +00:00
evb
7ebde38343 More implement of PciScanBus, now read hack flags from table (PciGetHAckFlags), and check for critical device (PciIsCriticalDeviceClass) and VGA device on PCI bridge
Do check for skipping some function (double decker ghost, Intel Alder SMP Pentium Pro machine, hacl flag, more), PciSkipThisfunction
Do check for PDO already exist for function (PciFindPdoByFunction)
Finish impement PciFindParentPciFdoExtension

svn path=/trunk/; revision=48098
2010-07-17 15:09:19 +00:00
Amine Khaldi
11006f580c [PSDK]
- Add missing netevent.h definitions.

svn path=/trunk/; revision=48097
2010-07-17 13:13:18 +00:00
Amine Khaldi
0fc10b9203 [DDK]
- Move netevent.h to PSDK.

svn path=/trunk/; revision=48096
2010-07-17 10:09:09 +00:00
Amine Khaldi
76fab2e228 [DDK]
- Move ntddndis.h to PSDK.

svn path=/trunk/; revision=48095
2010-07-17 09:42:56 +00:00
Amine Khaldi
8cf2899a61 [PSDK]
- Fix a couple of typos

svn path=/trunk/; revision=48094
2010-07-17 09:01:00 +00:00
Eric Kohl
dfa8e56472 [LSASRV]
Use a single table for mapping privilege names to values and values to names.

svn path=/trunk/; revision=48093
2010-07-17 07:37:47 +00:00
Timo Kreuzer
ac595f39c9 [KERNEL32]
DWORD -> SIZE_T in ReadProcessMemory

svn path=/trunk/; revision=48092
2010-07-17 05:18:31 +00:00
evb
f43651e238 Add config interface start (PciReadWriteConfigSpace, PciReadSlotConfig)
Add PDO_EXTENSION structure and PCI_FUNCTION_RESOURCES, now delete #if0 in old code since PDO_EXTENSION is now exist defintion
Add ID Class/Subclass to description functions (PciGetDeviceDescriptionMessage, PciGetDescriptionMessage), use pciclass.mc from sir_richard
New debug: PciDebugDumpCommonConfig
Implement IRP_MN_QUERY_DEVICE_RELATIONS with PciFdoIrpQueryDeviceRelations and PciQueryDeviceRelations
Begin PciScanBus, now just dump all found device with no more work (0 QDR return)

svn path=/trunk/; revision=48091
2010-07-17 01:31:26 +00:00
Timo Kreuzer
4234345b03 Fix CryptReleaseContext parameter, wine uses an outdated version (< NTDDI_WINXP)
svn path=/trunk/; revision=48090
2010-07-16 21:30:29 +00:00
Timo Kreuzer
623cc2e0dd [WS2_32]
DWORD -> DWORD_PTR

svn path=/trunk/; revision=48089
2010-07-16 20:24:32 +00:00
Timo Kreuzer
9908019e62 [VIDEOPRT]
Merge r40926 from amd64 branch:
return ERROR_INVALID_FUNCTION on amd64, not ERROR_INVALID_ACCESS from VideoPortEn/DisableInterrupt. Fixes compilation of videoprt for amd64.

svn path=/trunk/; revision=48088
2010-07-16 19:20:49 +00:00
Timo Kreuzer
677bd3c418 [NTOSKRNL]
- #if out RtlpCaptureStackLimits on amd64 as well

svn path=/trunk/; revision=48087
2010-07-16 17:53:00 +00:00
Timo Kreuzer
d2c2d5b635 [NDK]
Merge r44053 from amd64 branch:
- Add KEXCEPTION_FRAME

svn path=/trunk/; revision=48086
2010-07-16 17:20:46 +00:00
Timo Kreuzer
3c70caa7e3 [NTOSKRNL]
Add MM_HIGHEST_VAD_ADDRESS for amd64

svn path=/trunk/; revision=48085
2010-07-16 17:14:53 +00:00
Timo Kreuzer
ef44812048 [NTOSKRNL]
#if out another broken C_ASSERT on amd64

svn path=/trunk/; revision=48084
2010-07-16 16:30:05 +00:00
Timo Kreuzer
36fa896cff [NTOSKRNL]
Comment out a broken C_ASSERT on amd64 to make it compile.

svn path=/trunk/; revision=48083
2010-07-16 15:11:44 +00:00
Timo Kreuzer
2faf924bad [CRT]
Move #include <precomp.h> to the top, as precompiled headers must be the first thing that is included or it won't take advantage of being precompiled

svn path=/trunk/; revision=48082
2010-07-16 15:08:03 +00:00
Timo Kreuzer
f01fb95ae9 [NTOSKRNL]
ULONG -> SIZE_T

svn path=/trunk/; revision=48081
2010-07-16 14:56:36 +00:00
Gabriel Ilardi
386c15f491 Fix build, sorry. Thanks Timo.
svn path=/trunk/; revision=48080
2010-07-16 13:37:29 +00:00
Timo Kreuzer
e6d5126886 Merge r44143 from amd64 branch
Initialize MmDebugPte from MiDebugMapping variable instead of using MiAddressToPte for a constant initializer. This way the page can be set dynamically. Use MmDebugPte to determine if ready for mapping physical pages.

svn path=/trunk/; revision=48079
2010-07-16 13:23:43 +00:00
Gabriel Ilardi
f9dc8f0766 [CRT]
Add a debug print to help bugs like 5486.

svn path=/trunk/; revision=48078
2010-07-16 13:00:02 +00:00
Daniel Reimer
d17757a733 [PATCH] user32: DrawText: CJK and Thai line-wrapping
[PATCH] appwiz: check if path is valid
Both by Katayama Hirofumi

svn path=/trunk/; revision=48077
2010-07-16 12:52:37 +00:00
Timo Kreuzer
3421c58c28 [NTOSKRNL]
ULONG -> ULONG_PTR

svn path=/trunk/; revision=48076
2010-07-16 12:27:40 +00:00
evb
2261af5265 IRP_MN_START_DEVICE implement for ROOT FDO (PciFdoStartDevice)
PciInitializeArbiterRanges implement to scan arbiter   not yet construct since Arb library missing
Add PCI state machine (PciBeginStateTransition, PciCancelStateTransition, PciCommitStateTransition) andtransition array (PnpStateTransitionArray) to check if valid
Now IRP_MN_QUERY_DEVICE_RELATIONS sent to ROOT FDO means time to enumerate bus!

svn path=/trunk/; revision=48075
2010-07-16 01:14:52 +00:00
evb
add164dcfa Fix for code to handle IRP dispatching when unrecognized IRP (Thanks you sir_richard)
Add FDO IRP_MN_QUERY_INTERFACE support (it calls PciQueryInterface)
Add all PCI interface descriptor: PciLocationInterface (GUID_PNP_LOCATION_INTERFACE), PciPmeInterface (GUID_PCI_PME_INTERFACE), PciCardbusPrivateInterface (GUID_PCI_CARDBUS_INTERFACE_PRIVATE), PciLegacyDeviceDetectionInterface (GUID_LEGACY_DEVICE_DETECTION_STANDARD), AgpTargetInterface (GUID_AGP_TARGET_BUS_INTERFACE_STANDARD), PciRoutingInterface (GUID_INT_ROUTE_INTERFACE_STANDARD), BusHandlerInterface (GUID_BUS_INTERFACE_STANDARD) and stub initializer and constructor.
Add missing devhere.c interface file
Add all PCI arbiter descritptor: ArbiterInterfaceBusNumber, ArbiterInterfaceMemory, ArbiterInterfaceIo. Write constructor stub but not handled ArbitersInitialized == TRUE
Also add last-resort PCI interface: TranslatorInterfaceInterrupt (GUID_TRANSLATOR_INTERFACE_STANDARD) and part implement tranirq_Constructor
Add PciQueryInterface to find correct FDO/PDO/ROOT interface for a request and call interface constructor
Fix interface signatures, fix interface constructor type and PCI_INTERFACE, add interface flags (Thanks sir_richard)
Fix Aribtriter code (Thanks sir_richard)
Now another 1200 codes added, soon time for enumeration code!

svn path=/trunk/; revision=48074
2010-07-16 00:39:54 +00:00
Timo Kreuzer
d80d59dbff Merge 36852, 37322, 37333, 37334, 43428, 43451, 44259, 46404 from amd64 branch.
- Multiple ULONG/ULONG_PTR/SIZE_T issues
- Use SLIST_ENTRY instead of SINGLE_LIST_ENTRY with InterlockedPushEntrySList
- Use %p to print pointer sized values


svn path=/trunk/; revision=48073
2010-07-16 00:34:26 +00:00
Timo Kreuzer
8e13b57dcf Add MI_MIN_SECONDARY_COLORS, MI_SECONDARY_COLORS and MI_MAX_SECONDARY_COLORS for amd64
svn path=/trunk/; revision=48072
2010-07-16 00:03:03 +00:00
Timo Kreuzer
72053553f4 [NTOSKRNL]
Some ULONG vs SIZE_T fixes

svn path=/trunk/; revision=48071
2010-07-15 23:56:53 +00:00
Timo Kreuzer
820d3edcb0 Merge 44257 from amd64 branch:
PFN_TYPE -> PFN_NUMBER

svn path=/trunk/; revision=48070
2010-07-15 22:50:12 +00:00
Timo Kreuzer
70103e0a78 Remove svn:mergeinfo property
svn path=/trunk/; revision=48069
2010-07-15 22:43:13 +00:00
Amine Khaldi
b22a3883dc [PSDK]
- Fix WS2TCPIP_INLINE : extern inline -> static inline

svn path=/trunk/; revision=48067
2010-07-15 19:34:21 +00:00
Jérôme Gardou
9889c134f2 SVN wins again... What's that?
Revert everything that's not related to 48064 of 48065.

svn path=/trunk/; revision=48066
2010-07-15 19:29:45 +00:00
Jérôme Gardou
af95756f02 Merge 48064 from yarotows
This had nothing to do in yarotows in the first place

svn path=/trunk/; revision=48065
2010-07-15 19:19:48 +00:00
Timo Kreuzer
060168268f [NTOSKRNL]
Fix some amd64 KGDT constant names

svn path=/trunk/; revision=48063
2010-07-15 11:24:17 +00:00
Timo Kreuzer
11d95dfa7e [NTOSKNL]
#undef IoAllocateAdapterChannel before implementing it

svn path=/trunk/; revision=48062
2010-07-15 11:20:22 +00:00
Gabriel Ilardi
87bf4616fb [shellapi.h] Fix build copy pasta spotted by encoded
svn path=/trunk/; revision=48061
2010-07-15 07:16:08 +00:00
Timo Kreuzer
0d37dab9f3 [NTOSKRNL]
Fix ExInitializeRundownProtectionCacheAware parameter (ULONG -> SIZE_T)

svn path=/trunk/; revision=48060
2010-07-15 01:34:50 +00:00
Timo Kreuzer
f08b9d1821 [NTOSKRNL]
- Define PD_COUNT, PDE_COUNT, PTE_COUNT for amd64, we should probably use PTE_PER_PAGE... instead
- Fix incompatible declaration of MmResidentAvailablePages
- Prevent duplicate definitions

svn path=/trunk/; revision=48059
2010-07-15 01:10:18 +00:00
Timo Kreuzer
0f9bd40ee3 [NTOSKRNL]
Remove the old amd64 compilation hack

svn path=/trunk/; revision=48058
2010-07-15 00:42:26 +00:00
Timo Kreuzer
8518877b95 [NTOSKRNL]
Apply a workaround for WDK headers

svn path=/trunk/; revision=48057
2010-07-15 00:24:38 +00:00
Timo Kreuzer
20b79b0029 [NTOSKRNL]
KeQuerySystemTime and KeQueryInterruptTime are not implemenetd on amd64

svn path=/trunk/; revision=48056
2010-07-15 00:07:31 +00:00
Timo Kreuzer
50e511c01d [shellapi.h]
fix inclusion of pshpack / poppack (global and not for _WIN64)

svn path=/trunk/; revision=48055
2010-07-14 23:52:48 +00:00
Timo Kreuzer
6ae7a76cda [ntdll_winetest]
Comment out some tests for WIN64 builds (wine headers are broken)

svn path=/trunk/; revision=48054
2010-07-14 23:13:31 +00:00
Timo Kreuzer
58358394d6 Fix build
svn path=/trunk/; revision=48053
2010-07-14 22:32:06 +00:00
Sylvain Petreolle
2500a82fc2 gdi32:generated should now build on x64.
svn path=/trunk/; revision=48052
2010-07-14 22:08:19 +00:00
Sylvain Petreolle
34316a4b6a A little closer to x64 compat in GDI headers.
Patch by Samuel Serapion.


svn path=/trunk/; revision=48051
2010-07-14 22:02:51 +00:00
Timo Kreuzer
b90cf1a22e [GDI32_WINETEST]
Don't compile generated.c on amd64

svn path=/trunk/; revision=48050
2010-07-14 21:36:24 +00:00
Cameron Gutman
79e8db1b56 [PING]
- Fix a bug in the lost packet counter code which could result in a negative received value

svn path=/trunk/; revision=48046
2010-07-14 19:32:03 +00:00
Daniel Reimer
7fe1842203 Bug 5413: [PATCH] regedit: app key on treeview/listview
Bug 5473: [PATCH] regedit: selection on hexedit
Both from Katayama Hirofumi

svn path=/trunk/; revision=48045
2010-07-14 18:15:43 +00:00
Daniel Reimer
585c3a511e Fix setupapi setupcab winetest. (Samuel Serapion)
svn path=/trunk/; revision=48044
2010-07-14 17:18:49 +00:00
Daniel Reimer
a67f202e5e Fix libtiff's external functions.
svn path=/trunk/; revision=48043
2010-07-14 17:12:22 +00:00
Jérôme Gardou
1954fd59da [WIN32K]
- Properly initialize hVisRgn in CLIPPING_UpdateGCRegion
This fixes a whole bunch of "IntGdiCombineRgn requires hSrc2 != NULL for combine mode 1!", and probably some bugs.
Dedicated to encod3d.

svn path=/trunk/; revision=48042
2010-07-14 16:12:32 +00:00
Jérôme Gardou
746e0c9afd [USER32]
- WINE creates an alpha bitmap on icon creation, we do it when drawing it, so we need to create a bitmap which holds alpha information.
  - Add error handling to CreateIconIndirect.

svn path=/trunk/; revision=48041
2010-07-14 15:42:44 +00:00
Jérôme Gardou
d61b5efe6c [WIN32K, USER32]
- Get rid of ONEPARAM_ROUTINE_CREATECURICONHANDLE

svn path=/trunk/; revision=48040
2010-07-14 15:01:02 +00:00
Jérôme Gardou
8ad729230c [W32KNAPI]
- Test ONE_PARAM_ROUTINE_CREATEEMPTYCUROBJECT
  - Test NtUserGetIconInfo

svn path=/trunk/; revision=48039
2010-07-14 14:56:53 +00:00
Daniel Reimer
f4769202d7 Reapply some Win32 specific magic to properly build a Windows DLL of libjpeg. (Samuel Serapion)
svn path=/trunk/; revision=48038
2010-07-14 14:53:35 +00:00
Daniel Reimer
89324d2493 Bye, old Downloader.
svn path=/trunk/; revision=48037
2010-07-14 11:00:31 +00:00
Daniel Reimer
06f1bc2133 Bug 5501: [PATCH] Adding Wing32 support by Carlo Bramini
svn path=/trunk/; revision=48036
2010-07-14 10:59:32 +00:00
Jérôme Gardou
98b46cd0c4 Bye bye NtUserCreateCursorHandle.
Thanks GedMurphy for explaining me how to suppress that.
Please clean win32k after this commit.

svn path=/trunk/; revision=48035
2010-07-14 10:23:13 +00:00
Jérôme Gardou
4cc98d4c14 [USER32]
- There is no exported "CopyCursor", it's a macro.
  - There is no "NtUserCreateCursorIconHandle" function in win32k. Use correct functions to create a cursorIcon handle.
  - Bring in WINE's CreateIconIndirect
[WIN32K]
  - Dereference CursorIcon Object in NtUserCallOneParam
  - Shared Icons need their bitmaps to be unowned

svn path=/trunk/; revision=48034
2010-07-14 09:54:44 +00:00
Jérôme Gardou
e393257fc3 [USER32]
- Partly merge 48026

svn path=/trunk/; revision=48031
2010-07-13 21:38:34 +00:00
Cameron Gutman
17f5ddd1e0 [WS2_32]
- Update the catalog ID when we locate the matching provider
- mswsock from aicom-network-branch can successfully create sockets now

svn path=/trunk/; revision=48023
2010-07-13 00:54:52 +00:00
Cameron Gutman
a37a8bfe92 [AFD]
- Implement IOCTL_AFD_GET_TDI_HANDLES

svn path=/trunk/; revision=48020
2010-07-12 22:56:37 +00:00
Daniel Reimer
c88bff245c Thanks to Samuel Serapion and his trout, explaining me my fault.
svn path=/trunk/; revision=48019
2010-07-12 19:55:52 +00:00
Cameron Gutman
6ce27e86b9 [DNSAPI]
- Merge r45450 from aicom-network-branch

svn path=/trunk/; revision=48018
2010-07-12 19:36:42 +00:00
Daniel Reimer
795f1b72e1 Tidy up tree from duplicate files.
svn path=/trunk/; revision=48017
2010-07-12 19:25:20 +00:00
Cameron Gutman
67f5ef564f [PSDK]
- Add the missing WSANO_ADDRESS definition

svn path=/trunk/; revision=48016
2010-07-12 19:21:11 +00:00
Daniel Reimer
a71a4c7943 Forgot to remove the old libpng.
svn path=/trunk/; revision=48015
2010-07-12 19:07:39 +00:00
Daniel Reimer
812e29c75a Update libjpeg from 6b to 8b.
Add a new libpng 1.4.3 to main tree, linked dynamically, as libjpeg is, too.
Add libtiff 3.9.4, linked dynamically, too.
Enable both libs in wine/config.h which results in working png and tiff support in windowscodecs.dll

svn path=/trunk/; revision=48014
2010-07-12 19:05:15 +00:00
Daniel Reimer
7e93e6537f remove the old and static linked libpng. A new one will follow into the main tree, linked as dll for windowscodecs.dll.
svn path=/trunk/; revision=48013
2010-07-12 19:02:47 +00:00
Cameron Gutman
2d0076856f [WINSOCK]
- Merge r48011 from aicom-network-branch

svn path=/trunk/; revision=48012
2010-07-12 18:58:17 +00:00
Cameron Gutman
5ed63500c2 [MSAFD, PSDK]
- Merge part of r45435

svn path=/trunk/; revision=48010
2010-07-12 18:41:41 +00:00
Cameron Gutman
525e7111c4 [WINSOCK]
- Add winsock headers required for the new mswsock code

svn path=/trunk/; revision=48009
2010-07-12 18:31:45 +00:00
Jérôme Gardou
0b5d0c20e8 [USER32]
- Rewrite support of cursors, icons and bitmaps in user32.dll, based from WINE implementation.
One file to rule them all.
Now user32::cursoricon winetests don't crash anymore.

svn path=/trunk/; revision=48008
2010-07-12 17:49:59 +00:00
Jérôme Gardou
74cae57136 [WIN32K]
- Get rid of rosdc::hVisRgn, as in yarotows (r46372)

svn path=/trunk/; revision=48007
2010-07-12 16:52:10 +00:00
Daniel Reimer
13ef18576c Forgot one kernel32 include.
svn path=/trunk/; revision=48006
2010-07-12 15:31:49 +00:00
Amine Khaldi
cd21d25fc7 [LIB/RTL]
- Get rid of some unneeded assignment, cast and a variable.

svn path=/trunk/; revision=48005
2010-07-12 14:50:31 +00:00
Daniel Reimer
1aa82b4f2c Reapply the idea of r44368. Remove the "kernel32" library reference in all .rbuild files of user-mode modules, because this one is already added by "mingw_common".
Add SuperFinder XT to rapps.

svn path=/trunk/; revision=48004
2010-07-12 10:35:11 +00:00
Pierre Schweitzer
17458060a5 [NTOSKRNL]
Merging some stuff from pierre-fsd/arty-newcc branches:
- Implemented FsRtlDissectDbcs(), FsRtlIsDbcsInExpression(), FsRtlIsFatDbcsLegal(), FsRtlIsHpfsDbcsLegal()
- Implemented FsRtlIsNameInExpressionPrivate()
- Rewritten FsRtlIsNameInExpression()
- Updated comments
About FsRtlIsNameInExpressionPrivate(), it comes with a fix there isn't in branch, which avoids reading string more than its own length, and this helps getting rid of a workaround later in code.

svn path=/trunk/; revision=48002
2010-07-11 21:31:14 +00:00
Sylvain Petreolle
604a7a51ed Properly skip known crasher in gdi32:metafile test.
Commit 48k dedicated to dreimer

svn path=/trunk/; revision=48000
2010-07-11 19:11:51 +00:00
Sylvain Petreolle
cbc71e8180 Implement _osplatform
Import _makepath_s and _wmakepath_s from Wine.
Passes msvcrt data and dir tests.

svn path=/trunk/; revision=47999
2010-07-11 16:25:30 +00:00
Eric Kohl
b7bf7335b9 [ADVAPI32]
Move event tracing functions to the proper file.

svn path=/trunk/; revision=47998
2010-07-11 12:05:35 +00:00
Eric Kohl
98e2b9fe96 [ADVAPI32]
Remove unused code.

svn path=/trunk/; revision=47997
2010-07-11 09:45:54 +00:00
Eric Kohl
abed1067fc [ADVAPI32/LSASRV]
- Export LsaLookupPrivilegeName.
- Move mockup code from advapi32 to lsasrv (LsaLookupSids --> LsarLookupSids).
- Make LsaLookupSids call the server function LsarLookupSids.

svn path=/trunk/; revision=47996
2010-07-11 09:33:44 +00:00
Aleksey Bragin
2d3333aa11 [WINLOGON]
- Create window station with all access rights.

svn path=/trunk/; revision=47992
2010-07-11 08:07:52 +00:00
Aleksey Bragin
bc5435e23f - Fix a typo.
svn path=/trunk/; revision=47991
2010-07-10 21:39:55 +00:00
Sylvain Petreolle
e2a0a87a41 Revert rpcrt4 to 99% previous state :
-keep out unix functions
-keep checks that prevent crashes in rpc cstub and rpc winetests

Patch By Samuel Serapion.


svn path=/trunk/; revision=47990
2010-07-10 19:31:06 +00:00
Sylvain Petreolle
b3d626d1bd Fixup some base address after mshtml growup.
svn path=/trunk/; revision=47989
2010-07-10 18:47:45 +00:00
Sylvain Petreolle
9b2895628c Also update comdlg32 address.
svn path=/trunk/; revision=47988
2010-07-10 14:34:20 +00:00
Sylvain Petreolle
5bd00143b5 Update comctl32 base address.
Avoids inetcomm related comctl32 relocations.

svn path=/trunk/; revision=47986
2010-07-10 13:11:28 +00:00
Amine Khaldi
baea2e4b5c [NTOS]
PnpBusTypeGuidGet : Really return status.
Dedicated to Richard ;)

svn path=/trunk/; revision=47985
2010-07-10 10:34:45 +00:00
Sylvain Petreolle
01e297699a Forgot to svn add this in previous commit, my bad.
svn path=/trunk/; revision=47983
2010-07-09 21:05:01 +00:00
Sylvain Petreolle
850598a5f5 Import DnsNameCompare, DnsValidateName, DnsRecord* functions from Wine.
Fixes dnsapi:name tests.
Patch by Samuel Serapion.


svn path=/trunk/; revision=47982
2010-07-09 20:56:12 +00:00
Pierre Schweitzer
b50d23da11 [FASTFAT]
Check PathName length before accessing it. This fixes ntdll_winetest file test BSOD. But the test crashes a bit farther.

svn path=/trunk/; revision=47981
2010-07-09 19:39:55 +00:00
Amine Khaldi
ac309351d3 [DDK]
- Remove ntddscsi.h
[PSDK]
- Import ntddscsi.h from mingw-w64.

svn path=/trunk/; revision=47979
2010-07-09 14:39:28 +00:00
Sylvain Petreolle
697fc48c13 Sync __crtGetStringTypeW from Wine.
Fixes msvcrt:locale crash.


svn path=/trunk/; revision=47978
2010-07-09 14:33:03 +00:00
Aleksey Bragin
52ee3d51b4 [FORMATTING]
- Fix wrong indentation.

svn path=/trunk/; revision=47977
2010-07-09 13:04:33 +00:00
Amine Khaldi
3d25efc5cf Ukrainian translation patch for mstsc, notepad, paint, regedit, cmd, aclui, newdev and syssetup. By Igor Paliychuk (Igor-hkr[at]mail.ru)
svn path=/trunk/; revision=47974
2010-07-08 22:07:23 +00:00
Gabriel Ilardi
2c261ebb98 [NTOSKRNL]
- Warn only once about FsRtlPrivateLock and FsRtlFastUnlockSingle being stubplemented.

svn path=/trunk/; revision=47972
2010-07-08 19:28:25 +00:00
Daniel Reimer
87ae6722bb Forgot to remove some now useless header
svn path=/trunk/; revision=47971
2010-07-08 18:44:59 +00:00
Daniel Reimer
ba086d41dd Sync rpcrt4 to Wine 1.2rc6 (Samuel Serapion)
http transport support commented out.
Remove unix functions that are no longer needed.
Comment out check in cpsf.c that caused 2nd stage dll registrations to fail.
All rpcrt4 tests no longer crash.

svn path=/trunk/; revision=47970
2010-07-08 18:39:18 +00:00
Gabriel Ilardi
9919e408d5 [MSIMTF]
- Silence debug spam again, lost after syncing.

svn path=/trunk/; revision=47969
2010-07-08 15:34:30 +00:00
Daniel Reimer
0c6baa560c Sync format_msg from kernel32 (Samuel Serapion)
Winetest now passes with 0 errors.

svn path=/trunk/; revision=47968
2010-07-08 15:20:46 +00:00
Amine Khaldi
aae7364207 [PSDK]
- Update DPFLTR_TYPE enum.
[NTOSKRNL]
- Update kdbg/kdb_cli.c accordingly.

svn path=/trunk/; revision=47967
2010-07-07 22:29:21 +00:00
Pierre Schweitzer
1781e13d31 [NTOSKRNL]
Implement volume mount notification in RawFS

svn path=/trunk/; revision=47965
2010-07-07 20:27:04 +00:00
Sylvain Petreolle
358331354d [CRT]
-Export memmove_s and memcpy_s
-Implement rnd_s


svn path=/trunk/; revision=47964
2010-07-07 20:05:47 +00:00
Daniel Reimer
5fd439a72e Ukrainian translation Update for taskmgr (Igor Paliychuk)
svn path=/trunk/; revision=47963
2010-07-07 17:45:49 +00:00
Daniel Reimer
d2c167121b This was not meant to be committed at all. the recent resources were much better and should stay
svn path=/trunk/; revision=47962
2010-07-07 14:10:19 +00:00
Daniel Reimer
6e4a54d5b5 Sync devenum, atl, comctl32, comdlg32, cryptdlg, cryptui, hhctrl, itss, jscript, mapi32, msacm32, mshtml, msi, msimtf, oleacc, pstorec, shdoclc, shdocvw, shlwapi, snmpapi, urlmon, usp10, uxtheme, windowscodecs, wldap32, wtsapi32, wuapi, xinput1_3
svn path=/trunk/; revision=47961
2010-07-06 23:29:26 +00:00
Sylvain Petreolle
baeea629ab sysreg doesn't like rain of SEMI-STUB debug
svn path=/trunk/; revision=47960
2010-07-06 20:01:55 +00:00
Pierre Schweitzer
0a78b4958c Fix a FIXME in fastfat driver which also fixes a BSOD in kernel32 path winetest
svn path=/trunk/; revision=47959
2010-07-06 18:39:09 +00:00
Michael Martin
df7159d459 - Implement DeviceHandleToUsbDevice and remove IsHandleValid.
- Add call to DeviceHandleToUsbDevice for all Direct Call functions that pass DeviceHandle.
- Stop the processing of Asynchronous List after the Control Request has been processed by controller.
- Misc changes.

svn path=/trunk/; revision=47958
2010-07-06 12:02:33 +00:00
Daniel Reimer
f1023cae8f Update package database to contain all winetests. This makes it possible to even use them in testman.
svn path=/trunk/; revision=47957
2010-07-06 10:31:24 +00:00
Daniel Reimer
1a0a71b131 Add amstream, atl and avifil32 winetests.
Sync opengl32, powrprof and fix quartz's testlist

svn path=/trunk/; revision=47956
2010-07-06 09:44:43 +00:00
Daniel Reimer
1538f60ca3 Reenable a disabled feature of actxprxy which builds now with the new shell32 headers
svn path=/trunk/; revision=47955
2010-07-06 09:40:55 +00:00
Daniel Reimer
ef1db99fd9 Sync shell32 and mshtml winetests (this time with modified testlist.c). This will unbreak build again :-P
svn path=/trunk/; revision=47954
2010-07-05 23:00:52 +00:00
Daniel Reimer
d848c9746e Sync most idl files with Wine head. (Samuel Serapion)
Modify shell32 and uuid to work with the new idls.
This will break build till next commit.

svn path=/trunk/; revision=47953
2010-07-05 23:00:19 +00:00
Daniel Reimer
e96b3a5001 Next try, this time not converted to utf-8 and it seems to work.
svn path=/trunk/; revision=47952
2010-07-05 21:22:50 +00:00
Daniel Reimer
a16e12a7f5 Revert the cmd Translation on demand of the author.
svn path=/trunk/; revision=47951
2010-07-05 21:10:08 +00:00
Cameron Gutman
5b40543137 [QMGR]
- Reapply r47268 to fix DHCP

svn path=/trunk/; revision=47950
2010-07-05 16:19:14 +00:00
Sylvain Petreolle
23caea8334 unix has no io.h.
move its include to a _WIN32 block.

svn path=/trunk/; revision=47948
2010-07-05 12:43:09 +00:00
Daniel Reimer
007f159c23 /me hides deep in the dark of loong warning messages
svn path=/trunk/; revision=47946
2010-07-05 11:39:50 +00:00
Daniel Reimer
63ab1f1ca4 update wine's unicode app to 1.2rc6. (Samuel Serapion)
update kernel32 nls files to be able to build it with the new unicode tool.
convert the cmd rc files to utf-8 to fix building.
Apply Igor Paliychuk's Ukrainian translation Patch.

svn path=/trunk/; revision=47945
2010-07-05 11:36:22 +00:00
Daniel Reimer
b09b99163c Silence zlibs warnings (Samuel Serapion)
Update eeadme.wine

svn path=/trunk/; revision=47944
2010-07-05 11:29:24 +00:00
Daniel Reimer
9575756595 Remove one leftover which is not really needed. Thx to Samuel for kicking me to get my attention ;-)
svn path=/trunk/; revision=47943
2010-07-04 20:27:45 +00:00
Sylvain Petreolle
a4f8711e85 fix widl unix build.
svn path=/trunk/; revision=47942
2010-07-04 20:20:10 +00:00
Kamil Hornicek
273ff27b45 Update test lists for winetests too.
svn path=/trunk/; revision=47941
2010-07-04 19:57:31 +00:00
Daniel Reimer
35ea427b73 Update WIDL to Wine 1.2 rc6 + sync/modify two idl files making problems with the new widl. Patch by Samuel Serapion, tested by me
svn path=/trunk/; revision=47940
2010-07-04 19:52:38 +00:00
Daniel Reimer
29257b1ed2 Sync advapi32, gdi32, gdiplus, inetmib1, kernel32, mlang, msi, msvcrt, ntdll, oleaut32, rpcrt4, secur32, setupapi, shdocvw, shlwapi, snmpapi, twain_32, urlmon, user32, userenv, usp10, winhttp, wininet, wintrust, ws2_32 winetests to Wine 1.2rc6
svn path=/trunk/; revision=47939
2010-07-04 19:08:47 +00:00
Daniel Reimer
7177af5502 Another updated wine header to fix some synched winetest's build process.
svn path=/trunk/; revision=47938
2010-07-04 19:06:38 +00:00
Matthias Kupfer
c7119e7226 Katayama Hirofumi MZ <katayama DOT hirofumi DOT mz AT gmail DOT com>
- Preperation of quick preview für themes.
- See issue #5487 for details.

svn path=/trunk/; revision=47937
2010-07-04 16:40:03 +00:00
Eric Kohl
d9e47e9039 [ADVAPI32/LSASRV]
- Implement LookupPrivilegeNameW and LsaLookupPrivilegeName.
- Move lookup code from LookupPrivilegeNameW and LsarLookupPrivilegeValue into a separate file.

svn path=/trunk/; revision=47936
2010-07-04 12:51:39 +00:00
Daniel Reimer
d757f2ea25 Some more psdk updates needed for winetests.
svn path=/trunk/; revision=47935
2010-07-04 00:30:37 +00:00
Eric Kohl
66f17acd8f [ADVAPI32/LSASRV]
- Implement LookupPrivilegeValueW and LsaLookupPrivilegeValue.
- Move lookup code from LookupPrivilegeValueW to LsarLookupPrivilegeValue.

svn path=/trunk/; revision=47934
2010-07-03 22:51:44 +00:00
Daniel Reimer
35deb4dbb9 Update libxml to 2.7.7
Resync zlib to 1.2.5.
Patch by Samuel Serapion and some lil includes cleanup by me.

svn path=/trunk/; revision=47933
2010-07-03 22:34:05 +00:00
Daniel Reimer
a15dcc4250 Sync advapi32, comctl32, crypt32, cryptui, cryptnet, fusion, gdi32, gdiplus, hlink, imm32, jscript, kernel32, localspl, msacm32, mscms, msi, mstask, msvcrtd, msxml3, ntdll, ole32, pdh, psapi, quartz, rasapi32, riched20 AND rsaenh Winetests.
TBD mshtml, shell32, oleaut32 which still fail to build here

svn path=/trunk/; revision=47931
2010-07-03 12:45:23 +00:00
Daniel Reimer
74b08b2f54 Sync aclui, advapi32, atl, authz, kernel32, msi, oledlg, powrprof, qmgr, riched20, samlib to Wine 1.2rc5
Update some psdk Headers to get some more synched winetests build

svn path=/trunk/; revision=47930
2010-07-03 12:42:55 +00:00
Michael Martin
c11b4add2f [win32k]
- Remove old win32k timer code.

svn path=/trunk/; revision=47929
2010-07-03 12:37:51 +00:00
Michael Martin
6027c26e60 [win32k]
- Forgotten in r47924. Change name of BOOL parameter for UserSetCursorPos to better describe its purpose as done in c source.

svn path=/trunk/; revision=47927
2010-07-03 11:46:08 +00:00
Michael Martin
cfc7748e23 [usb/usbehci]
- Implement FdoDispatchInternalDeviceControl and remove IrpStub as its no longer needed.
- Implement Direct Call RemoveUsbDevice.
- Implement URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE.
- Use the port parameter in ExecuteControlRequest.
- Windows now identifies my thumb drive as a mass storage device.

svn path=/trunk/; revision=47926
2010-07-03 11:40:58 +00:00
Michael Martin
e769090231 [win32k]
- Revert changes done in 47325 which partially broke mouse hooks.
- If the UserSetCursorPos is reached due to SetCursorPos, dont generate a mouse move message or call mouse hooks.

svn path=/trunk/; revision=47924
2010-07-02 10:49:11 +00:00
Daniel Reimer
f403974604 Partially revert dnsapi changes as demanded by Samuel Serapion.
Update the banner.bmp in credui.

svn path=/trunk/; revision=47922
2010-07-01 14:00:03 +00:00
Johannes Anderwald
f2d29b70d7 [KS]
- Fix bogus debug print leading to buffer overflow

svn path=/trunk/; revision=47921
2010-07-01 11:59:42 +00:00
Daniel Reimer
913e2d6b7f Sync avifil, credui, crypt32, cryptdlg, cryptui, dnsapi, gdiplus, hhctrl, hnetcfg, iccvid, imaadp32, imm32, jscript, localspl, localui, mapi32, mciavi32, mcicda, mciqtz32, mciseq, mciwave, mshtml, msrle32, msvfw32, msvidc32, msxml3, oleacc, oleaut32 to Wine 1.2rc5 (Samuel Serapion, small changes by me)
Remove Esperanto and Walon languages from comctl32, comdlg32, mpr, msi, shlwapi, wininet

svn path=/trunk/; revision=47920
2010-07-01 11:09:47 +00:00
Daniel Reimer
247f3945f9 Ukrainian translation Updates (Igor Paliychuk)
svn path=/trunk/; revision=47919
2010-07-01 08:08:04 +00:00
Amine Khaldi
5a8354d8ed [PSDK]
- Fix EVENT_FILTER_DESCRIPTOR redefinition.

svn path=/trunk/; revision=47918
2010-06-30 19:36:36 +00:00
Matthias Kupfer
dd54fd1837 - move set of msg-time (for messages) back to msg queue (msg time is needed for all mouse events not only mouse move)
- ClickLock will work again

svn path=/trunk/; revision=47917
2010-06-30 18:40:20 +00:00
Sylvain Petreolle
576026667c Fix typo.
Dedicated to Physicus

svn path=/trunk/; revision=47916
2010-06-30 17:19:23 +00:00
Michael Martin
ba87cb4d4d [win32k]
- Remove dead code as in the old SetTimer and KillTimer functions.

svn path=/trunk/; revision=47915
2010-06-30 11:00:21 +00:00
Daniel Reimer
c533c98d1c Added Fox Audio Player to rapps and some more fixes. (Igor Paliychuk, myself)
svn path=/trunk/; revision=47914
2010-06-30 10:19:30 +00:00
Daniel Reimer
e0887a8e63 Add Visual C++ 2008 SP1 runtime to rapps and rename the others correctly.
svn path=/trunk/; revision=47913
2010-06-30 07:15:16 +00:00
evb
23b4ebaf89 Implemented IRP dispatch to work in new PCI driver (PciDispatchIrp), fill out FDO IRP handlers which all stubs now, make up/down-call work (PciPassIrpFromFdoToPdo, PciPassDownIrp)
Added the helper debug routines
PCI driver receive IRP_QUERY_INTERFACE now and hit stub


svn path=/trunk/; revision=47912
2010-06-30 01:39:21 +00:00
James Tabor
0a31855a87 [Win32k]
- Set caret blink rate for global server information too.

svn path=/trunk/; revision=47911
2010-06-29 22:13:13 +00:00
Johannes Anderwald
e8f968cbaa [PORTCLS]
- Check if there is a silence buffer available when there is no audio mapping available
- ignore failure for allocation requirements

svn path=/trunk/; revision=47909
2010-06-29 21:14:09 +00:00
Sir Richard
1ebaa1cc0b [PCIX]: Fix 17 different bugs in the new PCI driver. ACPI and PCI IRQ Routing table detection now works, ACPI table mapping doesn't crash anymore, PciGetRegistryValue doens't always fail, some DPRINTs fixed, added missing "continues", "breaks", and early-"returns". Fixed missing, or extra "!"s. If you're going to try being clever with do while FALSE loops, get 'em right!
The driver now works up to the point where eVb has last committed his code.

svn path=/trunk/; revision=47908
2010-06-29 20:21:45 +00:00
Sir Richard
ec783fe1df [RTL]: RangeList APIs should not be allocating pool with a tag of 0, since this makes the checked kernel ASSERT. Good thing nobody used these APIs (I wonder if they even work), but eVb's PCI driver now does.
svn path=/trunk/; revision=47907
2010-06-29 19:23:16 +00:00
Michael Martin
c95cec3745 [win32k]
- Change percision of win32k timers to 0.5 miliseconds.
- Remove Destroy parameter from FindTimer as it is just odd and call RemoveTimer where needed.
- PostTimerMessages: No need to continue looping the remainder of the timers once the target timer has been found and message posted to message queue.

svn path=/trunk/; revision=47906
2010-06-29 14:37:52 +00:00
Gabriel Ilardi
23e550f75e [EVENTVWR]
- Polish update by Maciej Bialas.

svn path=/trunk/; revision=47905
2010-06-29 10:29:30 +00:00
Daniel Reimer
a1b90e2497 Update Thunderbird and FireFox in rapps.
svn path=/trunk/; revision=47902
2010-06-29 06:31:00 +00:00
Timo Kreuzer
f2d9480a4f [WS2_32_NEW]
Fix WSAAccept parameter (DWORD -> DWORD_PTR)

svn path=/trunk/; revision=47901
2010-06-28 21:36:28 +00:00
Timo Kreuzer
b40e7f0e03 [WINMM]
Fix a number of 64bit issues, add some comments where the code is not 64 bit safe. This module should be synced with wine, but this still causes a problem with Flash videos on FF2 (likely another timer problem)

svn path=/trunk/; revision=47900
2010-06-28 20:58:30 +00:00
Cameron Gutman
e49b6bfe34 [DHCPCSVC]
- Discover adapters synchronously again until a bug (possibly a race condition) is fixed
- DHCP failure in certain situations is fixed now

svn path=/trunk/; revision=47899
2010-06-28 18:50:19 +00:00
evb
6d5d099e85 Implement Root Bus FDO AddDevice codes, get boot config, connect to HAL or ACPI config handlers (PciQueryForPciBusInterface, PciGetConfigHandlers), read BUS FDO hack flag, get _HPP HotPlug PCI ACPI data and initialize arbiter support.
PciGetHotPlugParameters work but no PCI HotPlug support on my machines, so cannot test ACPI data, that part stub now
Add PciFdoDispatchTable, PciFdoDispatchPnpTable, PciFdoDispatchPowerTable but all stub to PciIrpNotSupported however set correct IRP Dispatch Style for the IRPS
Arbiter support in PciInitializeARbiters done, but PciInterfaces array is NULL (stub) at moment
Add PCI_SIGNATURE, PCI_STATE, PCI_DISAPTCH_STYLE type, add PciInitializeState to begin the state support
Add structure for PCI_FDO_EXTENSION, PCI_SECONDARY_EXTENSION, PCI_INTERFACE, PCI_ARBITER_INSTANCE, PCI_DISPATCH_TABLE
PCI utility functions added: PciFindParentPciFdoExtension, PciInsertEntryAtTail, PciInsertEntryAtHead, PcipLinkSecondaryExtension, PciGetDeviceProperty, PciSendIoctl
Need sir_richard to add arbiter.h header to define ARBITER_INSTANCE for finish support
This 1000 more codes done now~

svn path=/trunk/; revision=47898
2010-06-28 17:30:35 +00:00
evb
ce6c5dd121 Missing PCI_BUS_DRIVER_INTERNAL added to bugcodes. Thx for sir_richard to show me how to add.
svn path=/trunk/; revision=47897
2010-06-28 17:21:16 +00:00
Sylvain Petreolle
f5a06bcb50 Fix midiOutOpen and midiInOpen prototypes.
svn path=/trunk/; revision=47896
2010-06-28 16:59:17 +00:00
Michael Martin
c4915f13f1 [win32k]
- Only the CompletionCallback member determines if a callback is needed. Checking the SenderReturn is unwanted and this variable was never initialized which could cause bogus callback attempts. Just remove the BOOL variable SenderReturned and directly check if Message->DispatchingListEntry.Flink is NULL before attempting to remove the message from senders queue.  Noticed by Timo.

svn path=/trunk/; revision=47895
2010-06-28 12:05:49 +00:00
evb
1d4fa18cdc Begin implement full PCI Bus Driver. code by me comments by sir_richard to avoid Engrish
DriverEntry full 100% implemented, ACPI WatchDog detect, PCI IRQ Routing detect, PCI errata/hackflag detect (PciGetDebugPorts not support, need PCI Debug Device to test)
Native (S)ATA, PCI BIOS Resource Lock, System Errata/Hackflag also is detect
HAL Hoooking enabled, callbacks stub
Stub PnP Interfaces: PciAddDevice, PciDriverUnload, PciDispatchIrp
PCI utility routines: PciUnicodeStringStrStr, PciStringToUSHORT, PciIsSuiteVersion, PciIsDatacenter, PciOpenKey, PciGetRegistryValue, PciBuildDefaultExclusionList done
PCI Verifier Support for future: PciVerifierInit/PciVerifierProfileChangeCallback (stub)
Thank you for much patience~ This 1200 first codes, have 12000 codes more to come!~~


svn path=/trunk/; revision=47894
2010-06-28 05:23:31 +00:00
Sir Richard
e1b8cfb906 [NDK]: Add some missing RTL Range Functions needed by eVb.
svn path=/trunk/; revision=47893
2010-06-28 04:26:18 +00:00
Sir Richard
2f23c40c67 [ACPI]: Share ACPI table structures and NT-specific registry data in a shared, internal ACPI header, instead of HAL's internal headers, because FreeLDR, the kernel's PnP Manager, the PCI Bus Driver and the ACPI Driver all need access to these types as well.
svn path=/trunk/; revision=47892
2010-06-28 04:25:38 +00:00
Timo Kreuzer
641c5d6ab8 [WINEMP§.ACM]
Define WIN32 to fix compilation for anything else than x86

svn path=/trunk/; revision=47891
2010-06-28 02:56:08 +00:00
Timo Kreuzer
e1ba256aed [WINED3D]
Fix prototype of wined3d_event_query_supported (BOOL != HRESULT)

svn path=/trunk/; revision=47890
2010-06-28 02:27:53 +00:00
Timo Kreuzer
c2da054c20 usurp: Physicus: better use </if> in .rbuild ;)
So be it.

svn path=/trunk/; revision=47889
2010-06-28 01:29:27 +00:00
Timo Kreuzer
c0cf67d988 build w32knapi only for x86
svn path=/trunk/; revision=47888
2010-06-28 00:32:35 +00:00
Sir Richard
55c95b78f9 [PCI]: Add pciclass.rc to use the pciclass.mc/res-generated file by MC. eVb can now start committing his driver.
svn path=/trunk/; revision=47887
2010-06-28 00:02:20 +00:00
Sir Richard
079e15a99e [PCI]: Add PCI IRQ Routing Table structure to Shared, Internal PCI Header (based off the Microsoft Spec and the Apple SMBIOS Header).
[PCI]: Remove HAL-internal PCI definitions from the existing "Shared/Internal" PCI Header which existed in NTOS's private include directory, and move them to HAL-internal headers.
[PCI]: Remove remaining shared PCI definitions from that same header, and put them in the new Shared/Internal PCI Header.
[PCI]: Remove duplicated PCI definitions from FreeLDR, and use thw new Shared/Internal PCI Header.

svn path=/trunk/; revision=47886
2010-06-27 23:54:47 +00:00
Sir Richard
cdbd59e260 [PCI]: Add the PCI_ENABLE_BRIDGE definitions that can be present in PCI_COMMON_CONFIG/type1/BridgeControl. Microsoft does not document these in the public PCI headers, but the definitions were found in the Singularity headers. eVb's PCI driver uses these.
svn path=/trunk/; revision=47885
2010-06-27 22:22:34 +00:00
Timo Kreuzer
9322109bcf [USER32]
Merge from amd64 branch:

36987:
- Fix user32 compilation errors. (Samuel Serapion)
36988:
- Make user32 compile and link by defining Get/SetClass/WindowLongPtrA/W (Stefan Ginsberg)
41480:
- Fix 64bit issues, add a wine compatibility hack (Timo Kreuzer)
41540:
- Make parameters for NtUserCallOneParam and NtUserCallTwoParam DWORD_PTR instead of DWORD (Timo Kreuzer)
43965:  (Samuel Serapion)
- Fix several user32 warnings.
- Sync GetWindow*A/W with wine and unify all versions, commenting out a wine hack.
- As a bonus implement GetWindowLongPtrA/W.
- Tested to work in trunk.
43992:
- Fix user32 build.  (Samuel Serapion)
45124:
- Fix user32 build. (Samuel Serapion)
47472:
- Remove wine hack and allow user32 to compile again. (Samuel Serapion)
47878: (Timo Kreuzer)
- Use UlongToHandle instead of LongToHandle
- case to ULONG_PTR instead of using HandleToUlong
- SetSysColorsTemp: don't truncate the pointer sized n value, remove a comment
- IntGetClsWndProc: fix a bug
- IntGetWindowLong: pass !unicode to IntGetWndProc
47882:
- Make the uiLo and uiHi members of the KMDDELPARAM structure UINT_PTRs (Timo Kreuzer)

svn path=/trunk/; revision=47884
2010-06-27 22:19:17 +00:00
Sir Richard
66bec4f5b8 [PCI]: Add the 40 different PCI erratas ("hack flags") that Windows can apply to broken PCI devices. eVb's driver knowss to apply these by parsing the PCI\Parameters list. These are the actual internal symbolic names used by Microsoft, which accidentally leaked out in the Vista Errata Manager .INF file.
svn path=/trunk/; revision=47883
2010-06-27 22:17:37 +00:00
Sir Richard
495536ab69 [BOOTDATA]: Add the 176 different PCI devices that Windows knows about, and the erratas that need to be applied to make those devices work correctly. This information is processed by eVb's PCI Bus driver. 3rd-party device manufacturers, as well as Microsoft online support pages, sometimes instruct users to add new entries to this list as well, and new entries are also added by 3rd-party driver .INF files. Probably 30% of computers in the world have at least one of these devices installed.
svn path=/trunk/; revision=47881
2010-06-27 22:12:00 +00:00
Amine Khaldi
b3d42ba099 Fix a warning (treated as an error).
svn path=/trunk/; revision=47879
2010-06-27 21:37:42 +00:00
Sir Richard
12d80eeec0 [NDK]: Not Alex, not 2006, not February (27th, though), not Power Management.
svn path=/trunk/; revision=47876
2010-06-27 21:19:46 +00:00
Aleksey Bragin
5794cf44f1 [NTOS]
- Warn only once in MmSecureVirtualMemory/MmUnsecureVirtualMemory, like it was done in 47864.

svn path=/trunk/; revision=47875
2010-06-27 21:18:59 +00:00
Amine Khaldi
e53a466981 Fix Build. Seriously this time ;)
svn path=/trunk/; revision=47874
2010-06-27 21:11:57 +00:00
Sir Richard
86f4c22185 [NTOS]: VfFailDeviceNode is actuall __cdecl.
[NTOS]: Sort, update, clean-up, and add descriptions to bugcodes.mc.

svn path=/trunk/; revision=47873
2010-06-27 21:02:20 +00:00
Sir Richard
2ab1f8b0d4 [NTOS]: Add "vf" NTOS component, required NDK headers, and enable exports required for PCI driver to load.
svn path=/trunk/; revision=47872
2010-06-27 20:47:52 +00:00
Sir Richard
26f62038b8 [NTOS]: I am sorry, this is embarssing. Fix build again.
svn path=/trunk/; revision=47871
2010-06-27 20:45:15 +00:00
Pierre Schweitzer
d80d711832 Fix ARM build
svn path=/trunk/; revision=47870
2010-06-27 20:44:47 +00:00
Sir Richard
dca7e2a102 [NTOS]: My SVN is haunted. Commit missing changes?
svn path=/trunk/; revision=47869
2010-06-27 20:38:12 +00:00
Eric Kohl
4c932f1485 [NTOSKRNL]
NtDuplicateToken: Fail, if TokenType is neither TokenImpersonation nor TokenPrimary.

svn path=/trunk/; revision=47868
2010-06-27 20:13:44 +00:00
Sir Richard
9d9fede96c [MC]: Add pciclass.mc required for eVb's PCI driver. Matches resource data in Windows driver, minus typos.
svn path=/trunk/; revision=47867
2010-06-27 20:08:38 +00:00
Cameron Gutman
f4530b30f2 [DHCPCSVC]
- Use an event to signal when an adapter has been added

svn path=/trunk/; revision=47866
2010-06-27 20:05:52 +00:00
Sir Richard
763a24d9d7 - There's no such thing as PRTL_MESSAGE_RESOURCE_ENTRY, use PMESSAGE_RESOURCE_ENTRY instead.
svn path=/trunk/; revision=47865
2010-06-27 19:56:57 +00:00
Sir Richard
626e3e7295 [NTOS]: Warn only once about MmLockPageableImageSection being unimplemented.
svn path=/trunk/; revision=47864
2010-06-27 19:55:36 +00:00
Cameron Gutman
91aa625c40 [MSAFD]
- Handle the case (again) where we get passed an invalid lpErrno pointer to a WSP function
- Fixes some crashes I encountered when running Opera 9

svn path=/trunk/; revision=47863
2010-06-27 17:21:03 +00:00
Timo Kreuzer
b51143af5f The Win32ClientInfo TEB field can be bigger than the CLIENTINFO structure.
svn path=/trunk/; revision=47862
2010-06-27 15:20:34 +00:00
Sylvain Petreolle
0cd695d643 update olepro32 base address.
svn path=/trunk/; revision=47860
2010-06-27 13:26:22 +00:00
Michael Martin
429fe0b64c [win32k]
- Add Check for spwndNext being null before accessing any of the members. Fixes bugcheck when using cubicexplorer.

svn path=/trunk/; revision=47859
2010-06-27 12:36:23 +00:00
Gabriel Ilardi
4203b20f25 [EVENTVWR]
- Update Italian and Spanish translations

svn path=/trunk/; revision=47858
2010-06-26 22:14:07 +00:00
Sylvain Petreolle
9b17ccc624 french translation for eventvwr
svn path=/trunk/; revision=47857
2010-06-26 21:51:29 +00:00
Eric Kohl
e946994785 [EVENTVWR]
- Replace hard-coded column names by string resources.

svn path=/trunk/; revision=47856
2010-06-26 19:55:05 +00:00
Daniel Reimer
fe430b6d23 Update WineFile to Wine 1.2rc5
svn path=/trunk/; revision=47855
2010-06-26 14:07:37 +00:00
Daniel Reimer
195cab6a79 Update reg, xcopy, winhlp32, wordpad to Wine 1.2rc5
svn path=/trunk/; revision=47854
2010-06-26 13:56:41 +00:00
Timo Kreuzer
3be89c6184 [USER32]
ntstatus.h is in psdk, not in ddk folder.
(How did this work?)

svn path=/trunk/; revision=47853
2010-06-26 11:03:09 +00:00
Timo Kreuzer
6965f5f1f5 [DDK/XDK]
Don't auto define NO_LEGACY_DRIVERS on reactos x64 builds.

svn path=/trunk/; revision=47852
2010-06-26 10:27:25 +00:00
Eric Kohl
3c656ee009 [FORMATTING]
- Fix indentation.

svn path=/trunk/; revision=47851
2010-06-26 09:50:41 +00:00
Eric Kohl
84ab81fe4b [NTDLL]
- Add RtlCreateBootStatusDataFile() stub.

svn path=/trunk/; revision=47850
2010-06-26 09:49:31 +00:00
Michael Martin
bc5e79f42d [win32k]
- co_IntSendMessageWithCallBack is called for two reasons; for messages that originate from win32k and from user mode when using Callbacks.
For both cases do not do anything with the sendqueue member of message struct and do not add the message to the senders dispatch message list.
- In msgqueue related functions, check if the message is a nowait messages before attempting to remove and entry from the dispatch message list as it doesnt exist.
- Fixes a NonPagedPool corruption that was occurring on regtest bootcd. Thanks Caemyr for testing.

svn path=/trunk/; revision=47849
2010-06-26 09:15:32 +00:00
Timo Kreuzer
5b46128dfb [UNIATA]
Merge from amd64 branch:
44634: Make x86 specific optimizations x86 specific, use macros otherwise. (Samuel Serapion)
44639: Try to fix numerous pointer to ULONG casts. (Samuel Serapion)
47846/47847: Remove all the byteswap "optimisations" and use portable RTL byteswap functions (Timo Kreuzer)

svn path=/trunk/; revision=47848
2010-06-26 00:15:24 +00:00
Michael Martin
f4962e7c69 [usbehci]
- Use the correct offset of ROOTHUB2_CONFIGURATION_DESCRIPTOR and ROOTHUB2_INTERFACE_DESCRIPTOR to calculate needed buffer sizes. Fixes a buffer overflow crash.

svn path=/trunk/; revision=47845
2010-06-25 15:50:26 +00:00
Timo Kreuzer
c3b4cac97a [SUSPEND]
Fix compilation for amd64

svn path=/trunk/; revision=47844
2010-06-25 01:37:58 +00:00
Amine Khaldi
4f5e43f00e [PSDK]
- Add several missing VER_* definitions.

svn path=/trunk/; revision=47843
2010-06-24 22:23:02 +00:00
Johannes Anderwald
e4ee2cb533 [WDMAUD.DRV]
- Fix initialization of mmixer library

svn path=/trunk/; revision=47842
2010-06-24 11:18:16 +00:00
Johannes Anderwald
83357c470d [WDMAUD.DRV]
- Fix compilation when using USE_MMIXER_LIB #2

svn path=/trunk/; revision=47841
2010-06-24 10:54:58 +00:00
Johannes Anderwald
6aa532398f [WDMAUD.DRV]
- Fix compilation when using USE_MMIXER_LIB

svn path=/trunk/; revision=47840
2010-06-24 10:52:46 +00:00
Daniel Reimer
b8fd2e11e1 Ukrainian translation updates for usetup by Igor Paliychuk.
svn path=/trunk/; revision=47839
2010-06-23 22:38:12 +00:00
Timo Kreuzer
5e4ab4ede7 [SCSIPORT]
- undefine macros that are defined by DDK headers, before implementing the functions
- add missing definitions for amd64

svn path=/trunk/; revision=47838
2010-06-23 21:06:00 +00:00
Pierre Schweitzer
22576dee05 [IOEVENT]
Added a library containing GUIDs for PnP notifications

[BUGCODES]
Added missing bugcheck code for PnP manager

[NTOSKRNL]
- Implemented FsRtlNotifyVolumeEvent()
- Implemented IoReportTargetDeviceChange(), IoReportTargetDeviceChangeAsynchronous()
- Craplemented PpSetCustomTargetEvent() to match our actual PnP manager notifications system. This is to be rewritten
- Added support for custom notifications in IopNotifyPlugPlayNotification()
- Added use of FsRtlNotifyVolumeEvent() in RawUserFsCtrl() to notify volume state changes
- Added use of IoEvent library to ntoskrnl

[FASTFAT]
- Added use of FsRtlNotifyVolumeEvent() when successfully mounting a volume

Finally, purpose of that patch is to implement volumes events notifications. Behaviour and implementation is correct till PpSetCustomTargetEvent(). The PnP notifications manager should be rewritten to match Microsoft's one. Furthermore, it appears that in Windows, those notifications are asynchronous.

svn path=/trunk/; revision=47837
2010-06-23 19:37:22 +00:00
Timo Kreuzer
bbbbb74fd5 [PRIMITIVES]
- use pointer sized integers when converting handles

svn path=/trunk/; revision=47832
2010-06-23 12:40:55 +00:00
Timo Kreuzer
0959625c7e [OSKITTCP]
Use RtlUlongByteSwap / RtlUshortByteSwap for byte swapping. They are portable and intrinsics on x86.

svn path=/trunk/; revision=47831
2010-06-23 11:37:39 +00:00
Daniel Reimer
6b1edeb54a Add Ukrainian Translations to rapps by Igor Paliychuk.
Update VLC to 1.1.0

svn path=/trunk/; revision=47830
2010-06-22 21:02:37 +00:00
Pierre Schweitzer
bbb19308ea [NTOSKRNL]
Move the PDO check in IoOpenDeviceRegistryKey() to the function begin.
Requested by sir_richard.

svn path=/trunk/; revision=47829
2010-06-22 18:51:22 +00:00
Pierre Schweitzer
0ad7647067 [NTOSKRNL]
Add a macro to check for a valid PDO and use it in IoOpenDeviceRegistryKey().
Requested by sir_richard.

svn path=/trunk/; revision=47828
2010-06-22 18:47:22 +00:00
Cameron Gutman
b362a62a7e [NTOSKRNL]
- Check that the caller passed a valid PDO pointer to IoOpenDeviceRegistryKey

svn path=/trunk/; revision=47827
2010-06-22 15:53:52 +00:00
Daniel Reimer
6d3e9528cf Added comctl32.ocx, KDEWin, Mono, .net, Media Player Classic, Python, Steam, Tahoma Font and Windows Media Encoder 9 to rapps.
Updated VB6, VC2005, VC2008 links according to winetricks.

svn path=/trunk/; revision=47826
2010-06-22 07:27:43 +00:00
Cameron Gutman
f840fe0a50 [NDIS]
- Dequeue the timer earlier so the timer queue will be in a valid state if any timers are modified during the miniport's timer callback

svn path=/trunk/; revision=47825
2010-06-22 05:37:31 +00:00
Timo Kreuzer
34b41a733c [ODBC32]
Merge 41027, 41028, 44611 from amd64 branch
Update odbc32 to Wine-1.1.21.

svn path=/trunk/; revision=47824
2010-06-21 23:14:01 +00:00
Kamil Hornicek
1890649387 [NTOSKRNL]
Remove a superfluous assert (requested by sir_richard).

svn path=/trunk/; revision=47823
2010-06-21 21:42:12 +00:00
Timo Kreuzer
cfb8a35516 [CRT]
- Stubplement _controlfp_s, rand_s
- Implement _invalid_parameter, _get_invalid_parameter_handler, _set_invalid_parameter_handler
- Implement memmove_s, strncpy_s
- sync heap.c with wine
Patch by Samuel Serapion

svn path=/trunk/; revision=47822
2010-06-21 19:57:36 +00:00
Timo Kreuzer
dc9cecc4cd [NTOSKRNL]
Apply compilation fix for amd64

svn path=/trunk/; revision=47821
2010-06-21 19:15:21 +00:00
Daniel Reimer
98ba13ab43 Update the rapps download list.
Fix the SeaMonkey Mirror.

svn path=/trunk/; revision=47820
2010-06-21 19:04:09 +00:00
Johannes Anderwald
3da5d96351 [PORTCLS]
- Use FreeItem function for freeing memory instead of doing it directly

svn path=/trunk/; revision=47819
2010-06-21 18:56:30 +00:00
Johannes Anderwald
4186c83e7b [PORTCLS]
- Add sanity checks

svn path=/trunk/; revision=47817
2010-06-21 14:25:44 +00:00
Sylvain Petreolle
fa19c99aca Update base address of comdlg32.
svn path=/trunk/; revision=47816
2010-06-21 14:00:55 +00:00
Cameron Gutman
e36497a708 [NTOSKRNL]
- Resource translation isn't very effective when we don't store the translated value in the translated descriptor (Fix a typo)

svn path=/trunk/; revision=47815
2010-06-21 04:36:32 +00:00
Johannes Anderwald
b1560aa3f4 [PORTCLS]
- Fix bug in the resource list object

svn path=/trunk/; revision=47814
2010-06-20 21:17:43 +00:00
Johannes Anderwald
47904efaa6 [PORTCLS]
- Support IDrmPort / IDrmPort2 for IPortWavePci driver

svn path=/trunk/; revision=47813
2010-06-20 20:58:24 +00:00
Timo Kreuzer
1a1f6cb2d4 [MSVCRT]
bring back _swprintf export

svn path=/trunk/; revision=47812
2010-06-20 19:20:55 +00:00
Timo Kreuzer
72ad57b2de [MSVCRT]
Convert to spec. Patch by Samuel Serapion.

svn path=/trunk/; revision=47811
2010-06-20 18:04:49 +00:00
Eric Kohl
317e5d113f [NETEVENT]
- Add new netevent.dll. It is a resource dll that will be used by the event log viewer.

svn path=/trunk/; revision=47810
2010-06-20 14:58:29 +00:00
Jérôme Gardou
6b0ac7a880 apply 46848 from yarotows
[WIN32K]
    - get rid of ROS_DC::BitsPerPixel.
1 - It was a hack.
2 - Its use was inconsistent.

svn path=/trunk/; revision=47809
2010-06-20 13:11:23 +00:00
Kamil Hornicek
e87aee9b6c Reshuffle .rbuild entries so we have all files grouped by directories and in alphabetical order.
svn path=/trunk/; revision=47808
2010-06-20 12:37:12 +00:00
Johannes Anderwald
b723c54434 [PORTCLS]
- Check if resource list is provided
- Fixes a crash for irc:igorko

svn path=/trunk/; revision=47807
2010-06-19 15:56:09 +00:00
Johannes Anderwald
bb28f2cb1a [PORTCLS]
- Fix buffer overflow

svn path=/trunk/; revision=47805
2010-06-19 07:43:45 +00:00
Johannes Anderwald
4da45c3ff1 [SYSAUDIO]
- Perform all allocations / frees in dedicated alloc / free function

svn path=/trunk/; revision=47804
2010-06-19 07:26:20 +00:00
Cameron Gutman
135340e065 [MSAFD]
- Add locking to protect the socket list

svn path=/trunk/; revision=47803
2010-06-19 05:04:40 +00:00
Jérôme Gardou
a8c547f091 Merge 47800 from yarotows branch.
Changelog should have been:
[GDI32]
  - Use default LOGFONT in EnumFontFamilies if none is given.
+ ~3000 gdi32:font winetests

svn path=/trunk/; revision=47802
2010-06-18 22:46:34 +00:00
Cameron Gutman
b00db8b8a6 [NTOSKRNL]
- Fix a string termination bug in the device interface code
- Thanks to janderwald for spotting the bug

svn path=/trunk/; revision=47801
2010-06-18 21:57:07 +00:00
Eric Kohl
e5bc385e89 [NTOSKRNL]
- Use the current partition descriptor to check for container partitions. Logical units in extended partitions become visible again but you cannot access them yet.
This fixes the first half of bug #2564.

svn path=/trunk/; revision=47799
2010-06-17 19:41:52 +00:00
Jérôme Gardou
57d80a50d5 [WIN32k]
- Chek if there is something to do in GDIOBJ_SetOwnership before doing it

svn path=/trunk/; revision=47788
2010-06-16 18:47:04 +00:00
Jérôme Gardou
1a601ba9e5 [WIN32K]
- Set DC_DIBSECTION dirty flag when a DIB section is selected, not when one is created.

svn path=/trunk/; revision=47787
2010-06-16 16:59:29 +00:00
Johannes Anderwald
e3b34383eb [PORTCLS]
- Fix infinite loop
- Should fix gabriel_it and igorko1 problem with KsStudio
- Add more debugging code to DumpFilterDescriptor

svn path=/trunk/; revision=47786
2010-06-16 15:41:41 +00:00
Johannes Anderwald
3c7fdc3dfa [PORTCLS]
- Return better return code for unimplemented feature

svn path=/trunk/; revision=47785
2010-06-16 14:14:33 +00:00
Eric Kohl
ca3bc68834 [SYSSETUP]
Set registry values 'PathName' and 'SystemRoot' in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion.
This fixes bug #4414.

svn path=/trunk/; revision=47784
2010-06-15 19:31:19 +00:00
Johannes Anderwald
3072b5dec6 [PORTCLS]
- Add sanity check

svn path=/trunk/; revision=47783
2010-06-15 17:29:43 +00:00
Johannes Anderwald
d6f80bd4d4 [MMIXER]
- Fix buffer overflow
- Dedicated to irc:igorko

svn path=/trunk/; revision=47782
2010-06-15 14:04:19 +00:00
Gabriel Ilardi
981690481a [REGEDIT]
- Implement hex editing. Patch by Katayama Hirofumi.
See issue #5447 for more details.

svn path=/trunk/; revision=47781
2010-06-15 10:28:01 +00:00
Kamil Hornicek
b20e4f29cd [OPENGL32]
Fixes for ICD reference counting. By Jerome Gardou
See issue #5257 for more details.

svn path=/trunk/; revision=47780
2010-06-14 13:11:51 +00:00
Kamil Hornicek
8563362b72 [OPENGL32_WINETEST]
Add opengl32 winetest, patch by Jerome Gardou.
Not used for now.

svn path=/trunk/; revision=47779
2010-06-14 12:41:15 +00:00
Daniel Reimer
59ed163b9e Sync winefile to Wine 1.2 RC3
svn path=/trunk/; revision=47778
2010-06-14 10:49:56 +00:00
Daniel Reimer
5dbfbb5201 Sync reg, xcopy, iexplore, winhlp32, wordpad, write, msiexec with Wine 1.3 RC3
svn path=/trunk/; revision=47776
2010-06-13 23:05:40 +00:00
Amine Khaldi
efa449d6f5 [XDK]
- Deduplicate FSRTL_COMMON_FCB_HEADER_LAYOUT in ntifs.h
- Move ECP_HEADER from the ntifs template to fsrtltypes.h
[DDK]
- Update ntifs.h to reflect XDK changes.

svn path=/trunk/; revision=47775
2010-06-13 13:55:30 +00:00
Johannes Anderwald
ca3e5d2a88 [BDAPLGIN, MSDVBNP, MSVIDCTL, BDASUP]
- Disable building dvb stack untill ks has the required functionality

svn path=/trunk/; revision=47774
2010-06-13 13:08:15 +00:00
Johannes Anderwald
8a5845eee6 [SNDBLST_SYS]
- Disable building

svn path=/trunk/; revision=47773
2010-06-13 12:54:16 +00:00
Johannes Anderwald
f4c57cadb5 [DRIVERS]
- Disable building of SWENUM, MPU401, CMIDriver, SPLITTER, STREAM to reduce build time
- Those modules are either unused or don't work yet due to missing functionality



svn path=/trunk/; revision=47772
2010-06-13 12:49:04 +00:00
Timo Kreuzer
226e9212dd Add missing file
svn path=/trunk/; revision=47771
2010-06-13 01:32:13 +00:00
Timo Kreuzer
ec1169363d [CRT]
- CRT update part 1/x
- sync C++ / exception related CRT code with wine
- add support for non-underscored symbols
- Patch by Samuel Serapion, slightly modified by me

svn path=/trunk/; revision=47770
2010-06-13 01:24:42 +00:00
Sylvain Petreolle
828838704e [fbtusb]
Fix include casing.


svn path=/trunk/; revision=47769
2010-06-12 20:08:29 +00:00
Timo Kreuzer
17d39f4f25 [PSDK]
- ntstatus.h: add STATUS_INVALID_CRUNTIME_PARAMETER
- winnt.h: fix 64 bit definition of SLIST_ENTRY

svn path=/trunk/; revision=47768
2010-06-12 15:09:34 +00:00
Amine Khaldi
6d224b0735 - Add some missing file-headers.
svn path=/trunk/; revision=47767
2010-06-12 14:55:02 +00:00
Eric Kohl
212d2915d2 [USBD]
Replace DWORD by ULONG to make usbd.sys build without errors.

svn path=/trunk/; revision=47766
2010-06-12 12:20:41 +00:00
Eric Kohl
9cf8c2c8da [VFATLIB]
- Get rid of the hard-coded sector size as large sector (4KB) harddisks are already available.
- When a partition is formatted, choose the FAT type according to the partition type. The size of the partition does not matter here as it is up to the caller to set the right partition type according to its size.

svn path=/trunk/; revision=47765
2010-06-12 11:20:58 +00:00
Eric Kohl
0c8457631d [FORMATTING]
Fix indentation. No code changes.

svn path=/trunk/; revision=47764
2010-06-12 10:25:18 +00:00
Johannes Anderwald
78b0fb4a21 [WDMAUD_KERNEL]
- Fix possible buffer overflow
[MMIXER]
- Add sanity checks

svn path=/trunk/; revision=47763
2010-06-12 10:21:03 +00:00
Daniel Reimer
6688715df4 Bug 5457: updated slovak translations by Mario Kacmar.
svn path=/trunk/; revision=47762
2010-06-12 09:58:22 +00:00
Cameron Gutman
37323a84c9 [FBTUSB]
- Import the FreeBT USB generic bluetooth driver (abandoned)
- Some slight modifications to make it build
- WMI is currently commented out because our WMI headers are lacking (particularly wmistr.h)
- Not building by default for now

svn path=/trunk/; revision=47761
2010-06-12 00:29:09 +00:00
Cameron Gutman
f073c977ef [USBD]
- Fix the spec file
- Fixes usbd build

svn path=/trunk/; revision=47760
2010-06-12 00:23:18 +00:00
Timo Kreuzer
c9ac3e0337 [PSDK]
Fix a typo (_AMD64 -> _AMD64_)

svn path=/trunk/; revision=47759
2010-06-11 21:48:13 +00:00
Eric Kohl
91b72f72dc [FORMATTING]
Fix indentation. No code changes.

svn path=/trunk/; revision=47758
2010-06-11 21:21:27 +00:00
Amine Khaldi
750d89765c [XDK/DDK]
- Relax INTERLOCKED_RESULT inclusion guard.

svn path=/trunk/; revision=47756
2010-06-11 17:00:49 +00:00
Amine Khaldi
42d943893a [PSDK]
- Add some missing file-headers.

svn path=/trunk/; revision=47755
2010-06-11 13:52:46 +00:00
Johannes Anderwald
2c589bd133 [WDMAUD_KERNEL]
- Perform all allocations / frees in dedicated alloc / free function

svn path=/trunk/; revision=47754
2010-06-11 12:28:10 +00:00
Amine Khaldi
af25a406cf [PSDK]
- Copy atsmedia.h from our dxsdk to our psdk (replacing the one that's already there)
- Add some missing file-headers.

svn path=/trunk/; revision=47753
2010-06-11 12:10:58 +00:00
Gabriel Ilardi
1c5a1d20a1 [SHELL32]
- Correctly show accessed and modified times in file properties dialog (they were exchanged).

svn path=/trunk/; revision=47752
2010-06-11 09:13:49 +00:00
Eric Kohl
9291284ade [USETUP]
- Set the type of the install partition even if it was not created by usetup.
This fixes bug #4368.

svn path=/trunk/; revision=47751
2010-06-11 04:13:29 +00:00
Amine Khaldi
09d662004d [FRAGINATOR]
- Add Ukrainian translation.

Patch by Igor Paliychuk - igor-hkr[at]mail[dot]ru

svn path=/trunk/; revision=47750
2010-06-10 23:29:42 +00:00
Amine Khaldi
87c3d876c8 [BROWSEUI]
- Add Ukrainian translation.
[KERNEL32]
- Add Ukrainian translation.

Patch by Igor Paliychuk - igor-hkr[at]mail[dot]ru

svn path=/trunk/; revision=47749
2010-06-10 23:28:50 +00:00
Jérôme Gardou
03eab2765a [WIN32K]
Merge GDIOBJ related changes from yarotows
  - GDIOBJ_(Share)LockObj : return NULL on NULL input, avoiding debug spew
  - Set NULL process owner when setting READY_TO_DIE flag of a gdiobj
  - So now GDIOBJ_ShareUnlockObj can claim ownership before trying to delete the object

svn path=/trunk/; revision=47748
2010-06-10 22:15:05 +00:00
Gregor Schneider
14ccdeece6 [WIN32K] Use GDITAG_RBRUSH instead of hardcoding the tag
svn path=/trunk/; revision=47745
2010-06-10 20:45:58 +00:00
Amine Khaldi
a47afb4b46 [PSDK]
- Move the amd64 check before the i386 one, and also check for __i386__

svn path=/trunk/; revision=47744
2010-06-10 20:31:21 +00:00
Gregor Schneider
ae1afc8ba7 [WIN32K] Tag the remaining untagged pool allocations
svn path=/trunk/; revision=47743
2010-06-10 19:58:39 +00:00
Gregor Schneider
31de1284d4 [WIN32K]
- Tag even more pool allocations
- Remove dead code, adjust comments

svn path=/trunk/; revision=47742
2010-06-10 19:33:04 +00:00
Gregor Schneider
fdec1db734 [WIN32K] Tag more pool allocations
svn path=/trunk/; revision=47741
2010-06-10 19:20:57 +00:00
Pierre Schweitzer
80722c4d1f [NETSHELL]
Updated French translation

[PAINT]
Updated French translation

[SHELL32]
Updated French translation

[SPIDER]
Added French translation

[SYSSETUP]
Updated French translation

svn path=/trunk/; revision=47740
2010-06-10 18:58:46 +00:00
Amine Khaldi
ef171ff013 [USER32_WINETEST]
- Re-enable generated.c tests.
This commit (the previous one too) is a result of the header work reintegration.

svn path=/trunk/; revision=47738
2010-06-10 16:06:10 +00:00
Amine Khaldi
6802044fdd [NTDLL_WINETEST]
- Re-enable generated.c tests.

svn path=/trunk/; revision=47737
2010-06-10 15:55:07 +00:00
Amine Khaldi
eb3a7eb1a4 [PSDK]
- Deduplicate/improve architecture related definitions.

svn path=/trunk/; revision=47736
2010-06-10 15:35:16 +00:00
Cameron Gutman
ec000c8544 [DHCPCSVC]
- Implement adapter discovery after startup (currently does not work because the iphlpapi code is not implemented)

svn path=/trunk/; revision=47732
2010-06-10 04:38:04 +00:00
Jérôme Gardou
937d830410 [ROSTESTS]
test what happens when a DC is saved and a bitmap is selected into it.

svn path=/trunk/; revision=47730
2010-06-10 00:17:06 +00:00
Cameron Gutman
8be9465a83 [ACPI]
- Create a resource list for the PCI root bus (even though it doesn't use any resources according to ACPI) and fill it with a bus number resource descriptor
- Fixes PCI device detection with ACPI enabled

svn path=/trunk/; revision=47729
2010-06-09 23:02:34 +00:00
Amine Khaldi
2d489373f9 - Fix localspl and localui build.
svn path=/trunk/; revision=47728
2010-06-09 22:28:14 +00:00
Amine Khaldi
b02092777f Reintegrate header-work branch. Important changes include continued work on headers and progress on compiling for ARM.
svn path=/trunk/; revision=47727
2010-06-09 22:24:32 +00:00
Cameron Gutman
594306cee5 [ACPI]
- Store the interrupt data as the vector and level
- Fixes resource conflict issues

svn path=/trunk/; revision=47726
2010-06-09 22:15:17 +00:00
Cameron Gutman
16f616a8de [NTOSKRNL]
- Set the resource list pointer to NULL after we free it
- Fixes a double-free issue in the resource conflict resolution code

svn path=/trunk/; revision=47725
2010-06-09 21:53:42 +00:00
Cameron Gutman
186dc06a99 [PCI]
- Implement IRP_MN_REMOVE_DEVICE handling for FDOs

svn path=/trunk/; revision=47723
2010-06-09 20:12:27 +00:00
Cameron Gutman
8ebc45f80b [NTOSKRNL]
- Implement IRP_MN_REMOVE_DEVICE handling for PnP root PDOs

svn path=/trunk/; revision=47722
2010-06-09 20:04:39 +00:00
Amine Khaldi
9767b4ca2c Sync uo to HEAD (r47720).
svn path=/branches/header-work/; revision=47721
2010-06-09 18:58:14 +00:00
Amine Khaldi
fab6b4c37c - Add some header guards.
svn path=/branches/header-work/; revision=47720
2010-06-09 18:30:37 +00:00
Amine Khaldi
8338472430 - Temporarily move those headers from PSDK to DDK (due to svn awesomeness).
svn path=/branches/header-work/; revision=47718
2010-06-09 17:33:59 +00:00
Amine Khaldi
0e546b8516 - Update ReactOS-amd64.rbuild
svn path=/branches/header-work/; revision=47717
2010-06-09 17:22:54 +00:00
Amine Khaldi
a8cc636ac7 [DDK]
- Replace dciddi.h with the one from mingw-w64
[PSDK]
- Get rid of duplicate dciddi.h

svn path=/branches/header-work/; revision=47716
2010-06-09 17:19:06 +00:00
Johannes Anderwald
a7e58af961 [MMIXER]
- Handle failure of device enumeration
- Add sanity check

svn path=/trunk/; revision=47715
2010-06-09 16:51:16 +00:00
Johannes Anderwald
1bb04a5142 [KS]
- Perform all allocations / frees in dedicated alloc / free function

svn path=/trunk/; revision=47714
2010-06-09 14:44:46 +00:00
Johannes Anderwald
db5472b519 [KS]
- Fix memory leak

svn path=/trunk/; revision=47713
2010-06-09 14:16:05 +00:00
Ged Murphy
85b59ff6ce I don't like this, but add the treeview refresh hack.
I don't see this bug on my (windows) build but others are reporting it still happens on the (linux) build machine iso.
Maybe it's because linux is akin to the devil? Yes, I like this, let's blame linux!

svn path=/trunk/; revision=47712
2010-06-09 13:31:02 +00:00
Johannes Anderwald
a1979b8e2d [PORTCLS]
- Check if resource list has been allocated

svn path=/trunk/; revision=47711
2010-06-09 13:27:19 +00:00
Amine Khaldi
513fbfa56f - Leftover from the sync.
svn path=/branches/header-work/; revision=47710
2010-06-09 12:07:22 +00:00
Aleksey Bragin
a24aedc9d1 - Add "bootcdregtest" in the list of well-known targets.
svn path=/trunk/; revision=47708
2010-06-09 10:34:35 +00:00
Ged Murphy
6df5db960f This bug seems to have gone now. Tried to replicate it the devmgmt treeview.
svn path=/trunk/; revision=47706
2010-06-09 08:09:35 +00:00
Ged Murphy
b589f99b78 Merge second part of the comctl32 Wine 1.2 sync.
All code currently omits the reactos specific patches. It's been a long time since we synched this lib so it's possible we no longer need them. Time will tell.

svn path=/trunk/; revision=47705
2010-06-09 08:04:35 +00:00
Cameron Gutman
4829efbb66 [IP]
- Handle socket operations that can be completed immediately before terminating the socket to avoid losing data sitting in the receive buffer

svn path=/trunk/; revision=47704
2010-06-09 04:45:17 +00:00
Timo Kreuzer
14725d6e20 Sync trunk (r47699)
svn path=/branches/header-work/; revision=47700
2010-06-08 22:20:26 +00:00
Sylvain Petreolle
82cd2aad07 Merge RtlIpv4StringToAddressW fix from network branch.
svn path=/trunk/; revision=47699
2010-06-08 20:24:15 +00:00
Amine Khaldi
e47de493b4 Sync trunk head (r47697).
svn path=/branches/header-work/; revision=47698
2010-06-08 20:04:37 +00:00
Timo Kreuzer
74e0c79a8d [PSDK]
Merge 47681 and 47682 from header branch
- Add missing file headers
- Fix defintition of POINTER_64
- by Amine Khaldi

svn path=/trunk/; revision=47697
2010-06-08 14:31:31 +00:00
Ged Murphy
883961ce2c Move UTF8 to the bottom of the file. Thanks to Christoph for the tip
svn path=/trunk/; revision=47696
2010-06-08 11:09:32 +00:00
Ged Murphy
94fa5d4e23 Part 1 of the comctl32 sync. I'll do it in 2 stages for testing purposes as it's a very large patch.
This part includes alpha support for imagelists and tango icons for the common toolbars
I'll do the second part later today. It has a propsheet bug and I'm a bit busy at the mo.

svn path=/trunk/; revision=47695
2010-06-08 10:21:26 +00:00
Ged Murphy
e5239a070c Add missing info needed for the comctl32 sync
svn path=/trunk/; revision=47694
2010-06-08 10:16:34 +00:00
Jeffrey Morlan
9f7057e9f2 [KERNEL32], [WIN32CSR]
- Implement ReadConsoleW's CONSOLE_READCONSOLE_CONTROL structure.
- Make pressing Insert during line input work

svn path=/trunk/; revision=47693
2010-06-08 06:38:14 +00:00
Timo Kreuzer
4625d1efa0 revert 47688 and 47689
svn path=/trunk/; revision=47691
2010-06-08 01:37:58 +00:00
Timo Kreuzer
de7cdd5617 [BOOTCD]
Add cabman to bootcd. This is for diagnostic purposes.

svn path=/trunk/; revision=47689
2010-06-08 00:19:34 +00:00
Timo Kreuzer
9b4daa14f8 [ZLIB]
Revert r47411. This is a test to see if it fixes the sysreg crash in 1st stage.

svn path=/trunk/; revision=47688
2010-06-07 23:39:37 +00:00
Johannes Anderwald
65169e1f54 [WDMAUD_KERNEL]
- Extend the mdl hack

svn path=/trunk/; revision=47687
2010-06-07 23:00:04 +00:00
Sylvain Petreolle
5b8ed5479f Revert 47685.
svn path=/trunk/; revision=47686
2010-06-07 21:38:49 +00:00
Sylvain Petreolle
03b31fbc3f Enable debug in usetup. This will be reverted in next commit.
svn path=/trunk/; revision=47685
2010-06-07 21:36:37 +00:00
Sir Richard
90d92560f4 [HAL]: Use Bus Handler support for HalFindBusAddressTranslation. Implement HalpContextToBusHandler to support this. Seems to work fine with bootvid (only user).
All the HAL's bus functions now use Bus Handlers on Legacy systems. There are still big issues with PCI cards.
       eVb: PCI-x should work now.
       More PCI-related HAL patches may follow later.

svn path=/trunk/; revision=47684
2010-06-07 21:36:31 +00:00
Sir Richard
a37a4a9e07 [HAL]: Use Bus Handlers for HalpAssignSlotResources. Warn that current PCI Slot assignment code is frelled.
[HAL]: Add PAGED_CODE();
[HAL]: Fix HALACPI build break.

svn path=/trunk/; revision=47683
2010-06-07 21:26:09 +00:00
Amine Khaldi
9ca3ec1085 [PSDK]
- Update/improve some usb related headers' headers.

svn path=/branches/header-work/; revision=47682
2010-06-07 21:19:24 +00:00
Amine Khaldi
f19e851716 [PSDK]
- Fix a "FIXME! HACK!!!"

svn path=/branches/header-work/; revision=47681
2010-06-07 21:15:05 +00:00
Sir Richard
1491820d8d [HAL]: Implement HalAdjustResourceList using Bus Handler support. Previous HAL said this was "deprecated" and faked success. Although correct on ACPI HALs, this is a legacy HALs, so Bus Handlers have a chance to do ajdustment.
svn path=/trunk/; revision=47680
2010-06-07 21:06:16 +00:00
Sir Richard
28bde112e1 [HAL]: Implement HalTranslateBusAddress using Bus Handler support. The old HAL would just return whatever the caller gave (no translation was done). For example, with the new HAL, this now results in the translation of 0xCF800 in I/O space to fail (not sure which driver requests this), because this is not a valid I/O address on PC/AT systems (highest is 0xFFFF).
This change also allows for the PCI driver to override the translation mechanism (which will piggy-back to the system bus translator) with its own. Please test.

svn path=/trunk/; revision=47679
2010-06-07 21:01:53 +00:00
Sir Richard
0ae7a75158 [HAL]: Implement ISA BUS address translation.
svn path=/trunk/; revision=47678
2010-06-07 20:59:46 +00:00
Sir Richard
fc0a9b1bef [HAL]: Implement system bus address translation.
svn path=/trunk/; revision=47677
2010-06-07 20:59:00 +00:00
Sir Richard
7ebba8b83c [HAL]: Implement Bus Handler support for HalGetInterruptVector too. The new functionality now includes support for checking against reserved HAL vectors instead of blindling assining IRQLs/Vectors to callers. A warning is printed on the debug log when the old HAL would've returned different values. Please test. If you have issues, the problem is in the DRIVERS, not this code.
svn path=/trunk/; revision=47676
2010-06-07 20:39:11 +00:00
Sir Richard
566408b2d9 [HAL]: Implement PCI Vector/IRQL translation too.
svn path=/trunk/; revision=47675
2010-06-07 20:37:45 +00:00
Sir Richard
6bbba6481b [HALMP]: MP HAL should have HalpDefaultInterruptAffinity too.
svn path=/trunk/; revision=47674
2010-06-07 20:37:19 +00:00
Sir Richard
edda414937 [HAL]: Forgot file.
svn path=/trunk/; revision=47673
2010-06-07 20:35:02 +00:00
Sir Richard
1b1d03c8a0 [HAL]: Implement system bus (and ISA) vector/interrupt translation.
svn path=/trunk/; revision=47672
2010-06-07 20:34:41 +00:00
Sir Richard
dcde6d79da [HAL]: Use Bus Handler support for HalSetBusDataByOffset. Please report any problems.
svn path=/trunk/; revision=47671
2010-06-07 20:13:05 +00:00
Sir Richard
cc500cbf5c [HAL]: First use of bus handler support: HalGetBusDataByOffset now uses bus handlers. Please report any problems.
svn path=/trunk/; revision=47670
2010-06-07 20:10:53 +00:00
Sir Richard
e8040d911e [HAL]: I don't like to swear, but F*CK this MiniHAL bullsh*t!
svn path=/trunk/; revision=47668
2010-06-07 18:30:20 +00:00
Amine Khaldi
4edc0517fc Sync up to trunk head (r47666)
svn path=/branches/header-work/; revision=47667
2010-06-07 17:15:29 +00:00
Sir Richard
c2677cf238 [HAL]: Plug in the data from pcidata.c that was committed months ago to display a beautiful enumeration of all PCI devices on the machine. This will allow debug logs not only to contain nearly full hardware information, but also identify the VM the tester/reporter is using (based on the device's subsystem ID).
[HAL]: Display all the warning DPRINTs in-line with the PCI enumeration code, resulting in a much easier to read and comprehensive review of the machine.

svn path=/trunk/; revision=47666
2010-06-07 17:01:56 +00:00
Sir Richard
bf8a146243 [HAL]: Implement HalpGetPciBridgeConfig to detect PCI-to-PCI/CardBus bridges, warn if they are found.
[HAL]: Modify the debug messages to be more accurate as to what exactly is unsupported.

svn path=/trunk/; revision=47665
2010-06-07 16:44:12 +00:00
Sir Richard
f098f2ae2b [HAL]: Implement partly HalpFixupPciSupportedRanges to detect PCI Bridges, and PCI-to-PCI Bridges. The point is we want buses to be cramped down to the addresses supported by the parent bus/bridge. This is NOT currently done, so we warn users of these systems.
svn path=/trunk/; revision=47664
2010-06-07 16:15:01 +00:00
Sir Richard
9ef2a02386 [HAL]: Detect, check for, and warn about, chipset hacks that need to be applied for the machine.
svn path=/trunk/; revision=47662
2010-06-07 15:34:35 +00:00
Amine Khaldi
6bc4e97d08 Sync trunk.
svn path=/branches/header-work/; revision=47661
2010-06-07 15:30:17 +00:00
Sir Richard
2031c565df [NTOS]: Check registry for our CardList, check if the PCI hardware matches any entry in there that specifies it has full/extended address decoding, and write the registry flag for it.
svn path=/trunk/; revision=47660
2010-06-07 15:09:44 +00:00
Sir Richard
83c3c7abb2 [HAL]: Detect IDE controllers. Their interrupts should not be masked.
svn path=/trunk/; revision=47659
2010-06-07 15:02:49 +00:00
Michael Martin
7c5fd856ee [win32k]
- Change the number of windowless timers from 1024 to 32768.
- When destroying windowless timers, clear the bit number (IDEvent) in the bitmap so the bit number can be reused.
- Only create a windowless timer if there is no windowless timer matching IDEvent.
- Fixes case where applications create too many windowless timers and/or run out of windowless timers.

svn path=/trunk/; revision=47658
2010-06-07 13:37:43 +00:00
Cameron Gutman
b2c96e402d [MSAFD]
- Fix a bug in GetSocketStructure that resulted in us missing the last entry of the list
- Remove an "optimization" which was supposed to find an unused socket entry (which it almost never did) but now just corrupts the linked list by trashing our NextSocket pointer

svn path=/trunk/; revision=47656
2010-06-07 05:40:08 +00:00
Sir Richard
adc324f5c9 [HAL]: Detect, initialize, and create bus handlers for, all PCI buses that are found on the machine.
[HAL]: Detect PCI-to-PCI Bridges, Extended CardBus Addressing, read Chipset Hacks from Registry, and scan for IRQ lines used by PCI Devices. Scan for PCI-IDE controllers, broken Intel PCI Bridges/Controllers. Scan for OHCI and UHCI USB controllers. Warn the user that if any of these are found, the current HAL does not handle certain types of these devices (these checks are based on the ones the Legacy Windows HAL makes).

svn path=/trunk/; revision=47655
2010-06-07 03:23:48 +00:00
Sir Richard
07b14e926d [HAL]: Add missing PCI Bus Handler support functions, used on non-ACPI systems (ISA-PCI support and such).
svn path=/trunk/; revision=47654
2010-06-07 03:19:20 +00:00
Sir Richard
e2d5c9d92b [HAL]: Kill debug spew.
svn path=/trunk/; revision=47653
2010-06-07 03:18:51 +00:00
Cameron Gutman
e91cc9349b [MSAFD]
- Fix 2 more callers who don't pass a valid lpErrno pointer
- Check the return value of WSPSocket
- Return WSAEWOULDBLOCK if there are no connections that can be accepted instead of silently returning 0 which is not INVALID_SOCKET so the caller treats it as a valid socket pointer and passes it to other functions which caused wide-spread mayhem since we never checked whether the socket handle the caller passed was valid until my last commit

svn path=/trunk/; revision=47652
2010-06-07 01:50:26 +00:00
Cameron Gutman
d19620d1ab [AFD]
- It is legal to send a NULL event object pointer to AFD (this is sent by msafd to cancel an existing event select)

svn path=/trunk/; revision=47651
2010-06-07 01:38:15 +00:00
Cameron Gutman
88c29ff4f2 [MSAFD]
- Validate that we found the corresponding socket information in our socket information list
- Fixes a crash in Firefox 2 when it tries to call accept() with a closed socket

svn path=/trunk/; revision=47650
2010-06-07 01:24:15 +00:00
Sir Richard
ad1721c016 [HAL]: Bus support in the HAL actually creates a further wedge between the different x86 HALs: There are actually two dinstinct implementations. On the ACPI HAL, the system is assumed not to have things like special ISA, MCA, EISA buses, and a PCI driver is used in combination with the ACPI Interface for PCI Bus support. On non-ACPI systems, the legacy "Bus Handler" library is used, and the HAL provides a core set of CMOS, EISA, ISA, MCA and PCI bus handlers, each with their own routines and specific code. Additionally, PCI IRQ Routing and other PCI bus internals are handled directly by the HAL -- on the ACPI HAL, the PCI Bus support is implemented through a "Fake"/static bus handler, just to keep the functions shared. On ReactOS, both the ACPI and non-ACPI HAL were currently using a mix of both HAL bus handling types, mostly implemented the "ACPI way" (with a fake PCI bus handler and such).
As a result, none of the Hal*Bus HALDISPATCH routines were implemented, which bus drivers expect to find when they're not on ACPI systems (ReactOS today). eVb's new PCI driver was crashing, for example.
       Furthermore, legacy systems suffer, because the ACPI HAL Bus routines (that we currently have) expect perfect ACPI-style-compliant systems, not the legacy crap from the early 90ies. This works fine in VMs and new hardware, but old hardware is left behind.
       This patch basically corrects the first part of the problem, by making the bus handling support separate between ACPI and non-ACPI HALs. For now, the code remains 100% the same in functionality between both.
       However, I have started adding the first few elements:
[HAL]: Implement HalRegisterBusHandler HALDISPATCH routine.
[HAL]: On legacy HALs, register the CMOS, ISA, SYSTEM handlers.
[HAL]: Add cmosbus.c. Stub all bus-specific bus handler routines in the xxxbus.c files.
No real functionality change occurs with this patch, yet.

svn path=/trunk/; revision=47649
2010-06-07 01:09:41 +00:00
Sir Richard
af870b6e47 [DHCP/FTP]: Fix building on OS X hosts.
svn path=/trunk/; revision=47648
2010-06-07 00:58:55 +00:00
Cameron Gutman
9cf2124763 I hate making the same mistake twice in one day
svn path=/trunk/; revision=47647
2010-06-07 00:44:00 +00:00
Cameron Gutman
e0549f6100 [MSAFD]
- Use a linked list to store the socket information instead of allocating a massive array (1024 elements!) for each process in DllMain to hold all of the pointers
- Fix a massive memory leak (free the socket information which we leaked for every socket we allocated)
- This improves performance because we don't have to look through an array of stale socket information pointers (which we never actually removed from the socket information array in the old code) and the new code queues the socket information at the head of the list which makes newer sockets faster to access

svn path=/trunk/; revision=47646
2010-06-07 00:24:27 +00:00
Cameron Gutman
0b3f90dce4 Remove an unintended change
svn path=/trunk/; revision=47645
2010-06-06 23:49:27 +00:00
Daniel Reimer
8404cbb540 Add Opera 9 to rapps.
Update OOo to 3.2.1 and the last time... fix the FF2 link.

svn path=/trunk/; revision=47644
2010-06-06 23:45:20 +00:00
Cameron Gutman
fbc1db9487 [MSAFD]
- Fix many times where we wait for an operation but don't update our status and return if it failed
- Fix the overlapped pending case in writing which was completely broken (callers would detect an error but GetLastError would return 0 because we didn't store the error in the lpErrno variable)
- Fix many times where we pass a pointer to an event that we close without waiting
- Fix a bug in WSPEnumNetworkEvents when we would set WSAEINVAL in the lpErrno variable but not return SOCKET_ERROR so the error got ignored

svn path=/trunk/; revision=47643
2010-06-06 23:07:26 +00:00
Cameron Gutman
444eec4511 [NDIS]
- Hold the miniport lock when we work with the timer queue
- Use the return value of KeSetTimer(Ex) to determine whether we need to queue the timer in our queue, otherwise we just use the entry that is already there
- Add more assertions

svn path=/trunk/; revision=47642
2010-06-06 22:08:40 +00:00
Cameron Gutman
6e1d1db7af Forgot to remove this ASSERT for r47636
svn path=/trunk/; revision=47639
2010-06-06 21:31:58 +00:00
Gregor Schneider
928accdc2c [WIN32K]
- Use TAG_KEYBOARD for keyboard layouts
- Free TAG_ACCEL and TAG_DRIVER allocations with their tags

svn path=/trunk/; revision=47637
2010-06-06 19:29:20 +00:00
Cameron Gutman
c01132e4ff [NDIS]
- Only dequeue the timer in the DPC if the Period is 0 (which means that it's NOT a periodic timer so we only get called once)
- Attempt to dequeue the timer before inserting it so we don't end up with multiple copies of the same timer on the timer queue if somebody calls NdisMSet(Periodic)Timer twice

svn path=/trunk/; revision=47636
2010-06-06 19:18:19 +00:00
Gregor Schneider
a4aeb090df [WIN32K]
- Use TAG_PALETTE for palette entries
- Remove mapping codes, the functions from pre r9000 don't even exist anymore

svn path=/trunk/; revision=47635
2010-06-06 19:11:52 +00:00
Gregor Schneider
218cfae51d [WIN32K] Use TAG_GDIICM tag for ICM allocations
svn path=/trunk/; revision=47634
2010-06-06 18:51:43 +00:00
Stefan Ginsberg
622c4a0919 [NTOS] Inline writing to PTEs through MI_WRITE_VALID/INVALID_PTE.
svn path=/trunk/; revision=47633
2010-06-06 18:45:46 +00:00
Gregor Schneider
d607e811d9 [WIN32K] Free allocations with the tag that was used to allocate them
svn path=/trunk/; revision=47632
2010-06-06 18:34:57 +00:00
Gregor Schneider
dd3d52b5ed [WIN32K] assert -> ASSERT
svn path=/trunk/; revision=47631
2010-06-06 18:32:57 +00:00
Cameron Gutman
f44eee190b [NDIS]
- Implement miniport timer queuing
- Add some BUGCODE_ID_DRIVER bug check cases for missing interrupt deregistration, missing timer cancellation, and invalid IRQL when calling NdisMAllocateSharedMemory

svn path=/trunk/; revision=47630
2010-06-06 18:09:25 +00:00
Sylvain Petreolle
6dd30b1f3a Forgotten in previous commit.
svn path=/branches/aicom-network-branch/; revision=47629
2010-06-06 16:46:25 +00:00
Sylvain Petreolle
bb72205f9f Fix RtlIpv4StringToAddressW prototype and its caller in ws2_32.
Fixes crash in GetAddrInfoW on xp sp3.

svn path=/branches/aicom-network-branch/; revision=47628
2010-06-06 16:33:17 +00:00
Sir Richard
d7372c2dc4 [NTOS]: Enable usage of ARM3 paged pool, up until Mm Phase 2.
[NTOS]: Re-arrange some of the init code, now that we have access to ARM3 paged pool early-on. Move more code to ARM3::INIT in its right place.
[NTOS]: Enable using the ARM3 PFN Database, getting rid of the old ReactOS PFN database. Should reduce physical memory usage now that we don't have two copies anymore.
[NTOS]: Fix the ARM3 PFN Datbase initialization code.
[NTOS]: Get rid of MiInitializePageList, use MiGetPfnEntryOffset instead of hard-coded pointer math in freelist.c.
This is the last big low-level Mm/ARM3 patch for a long, long time.

svn path=/trunk/; revision=47627
2010-06-06 15:59:42 +00:00
Sir Richard
55e7a4b5bf [COMPBATT]: Remove useless function.
svn path=/trunk/; revision=47626
2010-06-06 15:49:54 +00:00
Stefan Ginsberg
8e367dfc1b - Fix a comment and remove a superfluous extern.
svn path=/trunk/; revision=47625
2010-06-06 14:42:03 +00:00
Sir Richard
5867b89ee6 [NTOS]: Another one bites the dust, another one bites the dust. And another one gone and another one gone. Another one bites the dust, yeah. Out of the doorway the bullets rip, Repeating to the sound of the beat.
svn path=/trunk/; revision=47624
2010-06-06 14:24:18 +00:00
Sir Richard
aa574a3c90 [NTOS]: A PFN entry is not necessarily physical only if it is higher than MmHighestPhysicalPage. It can also be physical if it lies in a memory hole within the min-max physical page range. We can detect this by using our PFN Bitmap. So replace all "Is this an I/O mapping?" checks with a check on whether or not the PFN Database entry is NULL (which will check for us both of these statements). This ought to be a macro...
svn path=/trunk/; revision=47623
2010-06-06 14:15:18 +00:00
Sir Richard
abefb827e7 [NTOS]: Don't use MmAllocPage for the first paged pool PDE, instead, use MiRemoveZeroPage.
[NTOS]: Use MiInitializePfnForOtherProcess to setup the first paged pool PDE.

svn path=/trunk/; revision=47622
2010-06-06 14:13:35 +00:00
Sir Richard
49448736a2 [NTOS]: Implement MiRemoveZeroPage and MiZeroPhysicalPage.
Not yet used.

svn path=/trunk/; revision=47621
2010-06-06 14:12:28 +00:00
Sir Richard
08b2876a25 [NTOS]: Fix a loop off-by-one when saving the page table index in contigious memory allocation PFNs. Spotted by Stefan100.
svn path=/trunk/; revision=47620
2010-06-06 13:42:19 +00:00
Timo Kreuzer
ebd10beb1f Add /KDSERIAL to the command line, to make sysreg able to bt in first stage.
svn path=/trunk/; revision=47615
2010-06-06 07:52:32 +00:00
Timo Kreuzer
f301a8c2d3 [NTOSKNRL]
Add the possibility to break on all first chance exceptions, by passing /FIRSTCHANCE on the command line. Enable it temporary to get some more information from the sysreg crash.

svn path=/trunk/; revision=47614
2010-06-06 07:35:21 +00:00
Michael Martin
5e130771e7 [rtl]
- Fix a overlooked change needed due to mbstowcs fix. Use the number of WCHARs vice number of bytes to calculate end of xmlbuf. 


svn path=/trunk/; revision=47613
2010-06-06 07:21:53 +00:00
Sir Richard
854ff3471b [NTOS]: Clean up /mm a bit, move sysldr.c into ARM3.
svn path=/trunk/; revision=47608
2010-06-06 04:38:51 +00:00
Sir Richard
01194e41b9 [NTOS]: Silence more debug spew.
svn path=/trunk/; revision=47607
2010-06-06 04:37:53 +00:00
Sir Richard
143221853b [NTOS]: Fix for the the bug that broke ARM3 paged pool (and has been corrupting ReactOS paged pool behind the scenes for years):
When a KCB (key stuff) is allocated, the key name associated with it receives an NCB (name stuff). In case this name is already used, a cache exists, and an existing NCB is grabbed, and its reference count is increased. When the KCB goes away, its NCB loses a reference. When all references are gone, the NCB is destroyed. Simple enough.
        It turns out that what was currently happening is that an NCB would get dereferenced to 0, deleted, but still remained attached to a valid KCB (shouldn't happen). When that KCB went away, the NCB's reference count was dropped to... -1, and then -2, -3, -4, etc. Remember this is a FREED NCB. In other words, freed pool, that might now belong to someone else, was getting "-1" operations on it. So any value stored in that freed pool would get decremented by one. In ARM3 paged pool, because the allocator keeps a linked list, what would happen is that the FLINK pointer would be 0xE0F01234 instead of 0xE1A01234. What happened is that "0xE1A0" was treated as the reference count of the freed NCB, and it kept getting dereferenced down to 0xE0F0.
        Proving this was easy, by adding an ASSERT(Ncb->RefCount >= 1) to the routine that dereferences NCBs. Obviously, we should not try to dereference an NCB that has a reference count of 0, because that NCB is now gone. Adding this ASSERT immediately caught the error, regardless of which pool implementation was being used, so this was a problem in ReactOS today, right now.
        My first thought was that we were taking references to NCBs without incrementing the reference count. The NCB gets referenced in two places: when it gets created, and everytime a cached NCB is re-used for a new KCB (all this in CmpGetNameControlBlock).
	After adding some tracing code, I discovered that CmpGetNameControlBlock would sometimes return an NCB that was cached, but without referencing it. I did not understand why, since the code says "if (Found) Ncb->RefCount++".
        Further analysis showed that what would happen, on this particular instance, is that NCB "Foo" was being Found, but NCB "Bar" was returned instead. Therefore, causing some serious issues: First, NCB Foo was receiving too many references. Secondly, NCB Bar was not being referenced.
        Worse though, it turns out this would happen when "Foo" was the CORRECT NCB, and "Bar" was an INCORRECT NCB. What do we mean by correct and incorrect? Well, because NCBs are hashed, it's possible for two NCB hashes to be VERY SIMILAR, but only ONE OF THOSE NCBs will be the right one -- for example, HKLM\Software\Hello vs HKLM\Software\Hell.
        In our case, when a KCB for "Hello" was searching for the "Hello" NCB, the "Hello NCB would get a reference, but the "Hell" NCB would be returned. In other words, whenever a HASH COLLISION happened, the incorrect NCB was returned, probably messing up registry code in the process. Subsequently, when the KCB was dereferneced, it was attached to this incorrect, under-referenced NCB.
        Since in ANY hash collision with "Hell", in our example, the "Hell" NCB would come first, subsequent searches for "Hellmaster", "Hellboy", "Hello World" would all still return "Hell". Eventually when all these KCBs would go away, the "Hell" NCB would reach even -18 references.
        The simple solution? When the CORRECT NCB is found, STOP SEARCHING! By adding a simple "break" statement. Otherwise, even after the correct NCB is found, further, incorrect, collided NCBs are found, and eventually the last one ("Hell", in our example) got returned, and under-referenced, while "Hellmaster" and "Hellboy" were not returned, but LEAKED REFERENCES.
        There you have it folks, MEMORY CORRUPTION (USE-AFTER-FREE), INCORRECT REGISTRY NAME PARSHING, REFERENCE LEAKS and REFERENCE UNDERRUNS, all due to ONE missing "break;".
        -r

svn path=/trunk/; revision=47605
2010-06-06 01:04:03 +00:00
Sir Richard
570567b87e [NTOS]: Kill some debug spew.
svn path=/trunk/; revision=47604
2010-06-06 00:49:26 +00:00
Sir Richard
c28fc63bf4 [NTOS]: Even after allowing ARM3 paged pool, we should still use the old allocator to free allocations made by the old allocator!
svn path=/trunk/; revision=47601
2010-06-05 19:32:46 +00:00
Sir Richard
5f1255ce5b [NTOS]: Fix up POOL_PREV_BLOCK based on suggestion by hpoussin.
[NTOS]: Fix up NTAPI location in function definition.
[NTOS]: Implement even more stringent header checks: ExpCheckPoolHeader and ExpCheckPoolBlocks. Normally we would only want this on a DBG build, but I am enabling them for now until I can fix paged pool. If your machine crashes, reverting this commit is NOT the solution (boots for me).
[NTOS]: Add a AllowPagedPool BOOLEAN that will allow us to selectively enable when the ARM3 pool can be used, playing around with the situation that causes the corruption, and perhaps making it easier to find/fix.

svn path=/trunk/; revision=47600
2010-06-05 19:19:28 +00:00
Sir Richard
ed9f4ad2de [NTOS]: Kill debug spew.
svn path=/trunk/; revision=47599
2010-06-05 19:17:21 +00:00
Sir Richard
5d77839f4f [NTOS]: Fix Exp*PoolList macros. Also make then non-inlined, so we can see who called them in a stack trace.
[NTOS]: Enable them.
This boots on my system -- if it doesn't boot on yours, someone is corrupting your nonpaged pool. Reverting this patch is NOT the solution to your woes.

svn path=/trunk/; revision=47598
2010-06-05 18:26:15 +00:00
Jeffrey Morlan
ffce25e515 [WIN32CSR]
- Implement basic support for history in line editing
- Reorganize code to reflect that line input is more coupled to history than it is to character input

svn path=/trunk/; revision=47597
2010-06-05 18:17:42 +00:00
Sir Richard
745031cf0b [NTOS]: Add some paranoid-invariant list access checks to the pool code. They serve a dual purpose: catch pool corruption by broken drivers/kernel code, as well as catch malicious modification of the pool links as part of a kernel-mode exploit.
[NTOS]: Not yet used, thanks to Arthur for the idea.
See comment for more information.

svn path=/trunk/; revision=47596
2010-06-05 18:02:45 +00:00
Sir Richard
81589f83ca [NTOS]: Defensive programming on the pool macros.
svn path=/trunk/; revision=47595
2010-06-05 17:54:19 +00:00
Sir Richard
fc1ffb8a44 [NTOS]: Use logical math operations on the various block<->entry<->free_list_head operations in the pool code, instead of works-by-chance-and-assumption pointer math operations. This will now allow pool implementations where the pool header is not the size of a pool block (and the size of a LIST_ENTRY, by definition, although, even that, could change, if we choose to implement a cache-aligned overhead).
svn path=/trunk/; revision=47594
2010-06-05 17:53:17 +00:00
Cameron Gutman
e8b356d800 [NTOSKRNL]
- Print the base address of the process that we killed to make debugging much easier

svn path=/trunk/; revision=47593
2010-06-05 17:51:12 +00:00
Sir Richard
cb9c4019bb [NTOS]: Define the POOL_HEADER for x64.
[NTOS]: Define POOL_BLOCK_SIZE definition to set the minimum pool block size. In NT, this is equal to a LIST_ENTRY structure, because the Pool Allocator must be able to store a LIST_ENTRY into a freed pool block. This also determines the alignment of pool allocations. So 8 on x86, 16 on x64.
[NTOS]: Don't depend on LIST_ENTRY, but use POOL_BLOCK_SIZE instead (on IA64, if we ever want to support this, the pool block size is different from a LIST_ENTRY/POOL_HEADER).
[NTOS]: The following ASSERTs must hold: the POOL_HEADER must be as big as the the smallest pool block (POOL_BLOCK_SIZE), which must be at least as big as a LIST_ENTRY structure. 8 == 8 == 8 on x86, 16 == 16 == 16 on x64.

svn path=/trunk/; revision=47592
2010-06-05 16:53:54 +00:00
Sir Richard
6aad48190c [NTOS]: Don't assume that ANY fault in the system address range, not associated to a memory area, might be ARM3. Instead, since this hack only exists for early boot page pool support, make only treat this as an ARM3 fault when it happens in the paged pool area or higher. Leads to more direct Mm crashes when invalid page access happens, instead of infinite "PAGE FAULT ON PAGE TABLES".
svn path=/trunk/; revision=47589
2010-06-05 14:59:50 +00:00
Sir Richard
549eedeeb4 [NTOS]: In MiInitializePfnForOtherProcess, should increment the sharecount of the page table PFN entry, not the PFN entry of the PTE itself. Spotted by Stefan100.
svn path=/trunk/; revision=47588
2010-06-05 14:55:17 +00:00
Sir Richard
a2a190f44b [NTOS]: In MiDeleteSystemPageableVm, should also handle the case where the PTE is demand-zero. This can happen if the caller allocated, say, 12KB (3 pages) of paged pool, only touched 4KB (1 page), and then frees the allocation -- the other 2 pages will still be demand-zero at this point.
svn path=/trunk/; revision=47587
2010-06-05 14:54:26 +00:00
Eric Kohl
89c8d4178c [NTOSKRNL]
NtDuplicateToken: Fail, if a primary token is to be created from an impersonation token and and the impersonation level of the impersonation token is below SecurityImpersonation.

svn path=/trunk/; revision=47586
2010-06-05 12:20:53 +00:00
Jeffrey Morlan
7da6d0a6e2 [WIN32CSR] Implement some basic line editing capability
svn path=/trunk/; revision=47584
2010-06-05 06:10:53 +00:00
Sir Richard
f4f8ee78d1 [NTOS]: Implement MiDeleteSystemPageableVm.
[NTOS]: The paged pool free code was behaving incorrectly, assuming that paged pool was "locked down" and never paged out/reused (a valid NT operation mode), while the allocation code was assuming paged pool was a volatile, reusable, pageable resource (normal NT operation mode). The free code now assumes normal operation mode, and actually frees the freed paged pool pages, by using MiDeleteSystemPageableVm.
I have a feeling this will make ARM3 paged pool work.

svn path=/trunk/; revision=47582
2010-06-05 04:16:46 +00:00
Jeffrey Morlan
9ef0181983 add missing file
svn path=/trunk/; revision=47581
2010-06-05 03:12:51 +00:00
Jeffrey Morlan
ffcb1445f7 [KERNEL32], [WIN32CSR]
- Implement console history (note: not too useful yet without any way to recall it)
- Implement APIs GetConsoleCommandHistoryLength, GetConsoleCommandHistory, ExpungeConsoleCommandHistory, SetConsoleNumberOfCommands, GetConsoleHistoryInfo, SetConsoleHistoryInfo.
- Remove stub of obsolete function SetConsoleCommandHistoryMode, which no longer exists in Windows.

svn path=/trunk/; revision=47580
2010-06-05 00:45:08 +00:00
Sir Richard
25bf23bfc1 [NTOS]: When expanding paged pool, use MiRemoveAnyPage, not MmAllocPage.
[NTOS]: When expanding paged pool, initialize the PFN entry for the allocated page. Note we might be in arbitrary process space, so the PTE is not necessary valid for the process causing the expansion.
[NTOS]: Implement MiInitializePfnForOtherProcess to handle the case above.
[NTOS]: Change two static ASSERTs into C_ASSERTs. Might break non-x86 builds for a bit (vs breaking them at boot, which is worse).
Paged pool should start working soon.

svn path=/trunk/; revision=47579
2010-06-04 22:08:40 +00:00
Timo Kreuzer
c25fc39e6f [winnt.h]
Fix definition of KNONVOLATILE_CONTEXT_POINTERS for amd64

svn path=/trunk/; revision=47578
2010-06-04 21:50:06 +00:00
Cameron Gutman
682cf08ee8 [FREELOADER]
- Use the old method for identifying the drive type (based on partition number) which actually works for floppies now because I changed the DrivePartition value returned (floppy = 0, cdrom = 0xFF) in a previous commit
- Fixes bug 5233

svn path=/trunk/; revision=47577
2010-06-04 20:36:48 +00:00
Cameron Gutman
fc022a8506 [FREELOADER]
- Remove duplicated code
- Add back the Mac hack but use 0x8A for the lowest CD-ROM drive number instead of 0x90

svn path=/trunk/; revision=47576
2010-06-04 20:22:29 +00:00
Sir Richard
63ce635b0f [NTOS]: Build paged pool demand-zero PTE with MI_MAKE_SOFTWARE_PTE macro.
[NTOS]: Handle paged pool demand-zero fault fulfillment with MI_MAKE_HARDWARE_PTE macro.
[NTOS]: Use MiRemoveAnyPage instead of MmAllocPage, in paged pool demand-zero fault fulfillment.
These changes affect code paths that are not currently in-use.

svn path=/trunk/; revision=47575
2010-06-04 20:18:27 +00:00
Timo Kreuzer
f150c299f2 [DDK]
Fix definition of USE_DMA_MACROS

svn path=/trunk/; revision=47574
2010-06-04 20:16:26 +00:00
Timo Kreuzer
ffc6aac247 [MMEBUDDY]
Make mmebuddy more 64bit compliant. Based on r40127 by Samuel Serapion with some modifications by me.

svn path=/trunk/; revision=47573
2010-06-04 18:37:14 +00:00
Jeffrey Morlan
6659ae1d98 [WIN32CSR] Console input simplification:
- Put code for processing events for line input in one place, instead of duplicating it everywhere
- Remove "Fake" and "NotChar" fields from ConsoleInput struct. ConioProcessKey didn't actually add Fake events; they were used for the \n when converting \r to \r\n, but this is better done by the line input code.
- Build an input line completely on the server side; this will make it practical to add history and more sophisticated editing later

svn path=/trunk/; revision=47572
2010-06-04 18:26:22 +00:00
Sir Richard
d3c4ade827 Testers: Please test this build.
[NTOS]: Implement a MI_MAKE_HARDWARE_PTE macro for the generation of valid kernel PTEs instead of always taking the ValidKernelPte and changing its flags. This macro will take into account the protection mask (up until now ignored) and use the array previously implemented to determine the correct hardware PTE settings. Assertions are also added to validate correct usage of the macro, and later revisions will fill out NT-specific fields to help deal with transition PTEs, page faults, etc.
[NTOS]: Make the stack code the first user of this macro, for the stack PTEs. Good testing base as we create kernel stacks very often.
[NTOS]: The NT MM ABI specifies that in between the allocation of a new PTE and its initialization as a valid PFN, the PTE entry should be an invalid PTE, and should only be marked valid after the PFN has been initialized. For stack PTEs, do this -- first allocating the page, making it invalid, then initializing the PFN, and then writing the valid page.

svn path=/trunk/; revision=47571
2010-06-04 17:49:36 +00:00
Sir Richard
1c28c16dfe [NTOS]: Allocate non-paged pool pages with MiRemoveAnyPage instead of MmAllocPage.
svn path=/trunk/; revision=47570
2010-06-04 17:40:11 +00:00
Timo Kreuzer
86ed4d64b5 [HAL]
Delete empty folder

svn path=/trunk/; revision=47569
2010-06-04 16:56:14 +00:00
Jeffrey Morlan
05740b5556 [WIN32CSR] Consistently store console input events internally as unicode.
svn path=/trunk/; revision=47568
2010-06-04 16:31:56 +00:00
Timo Kreuzer
3c5af5bea1 [KS]
- KSSTREAM_POINTER_OFFSET doesn't have an Alignment member on 64 bit systems. Comment the use out in these cases. It should probably be removed completely, as it's only an alignment / dummy value, but I leave this to the expert in this field.
- ULONG -> ULONG_PTR for pointer casts

svn path=/trunk/; revision=47567
2010-06-04 15:58:43 +00:00
Giannis Adamopoulos
eca252dba7 [win32k]
- CreateWindow: initialize window position after sending WM_GETMINMAXINFO message

svn path=/trunk/; revision=47566
2010-06-04 11:30:14 +00:00
Timo Kreuzer
2b0533a1b0 [HAL]
- Move all amd64 specific files to one amd64 folder
- Compile x86 specific timer code only on x86
- Use KeRegisterInterruptHandler instead of manual idt manipulation
- add missing stubs for amd64

svn path=/trunk/; revision=47565
2010-06-04 10:59:19 +00:00
Timo Kreuzer
a95f10c476 [NTOSKRNL]
Implement KeRegisterInterruptHandler and KeQueryInterruptHandler for amd64

svn path=/trunk/; revision=47564
2010-06-04 10:51:44 +00:00
Timo Kreuzer
32f5fc6eab [HAL]
- Move memory functions from halinit.c to new memory.c
- HalpAllocPhysicalMemory: MemoryFirmwareTemporary -> LoaderFirmwareTemporary (same value, different enum)

svn path=/trunk/; revision=47563
2010-06-04 10:17:55 +00:00
Jeffrey Morlan
0d06145871 [KERNEL32], [WIN32CSR]
- Make Get/SetConsoleTitle more compatible with windows; in particular, transfer title via capture buffer to allow for longer titles.
- Tighten up capture buffer validation in win32csr.

svn path=/trunk/; revision=47562
2010-06-04 06:36:12 +00:00
Timo Kreuzer
591e5017e9 revert 47559 and 47560 (once again... sigh)
svn path=/trunk/; revision=47561
2010-06-04 00:49:33 +00:00
Timo Kreuzer
38717f6840 try to fix build
svn path=/trunk/; revision=47560
2010-06-04 00:26:49 +00:00
Timo Kreuzer
babe335c71 [DDK]
Merge the rest of the old header-branch version of ntddk.h, but with a large number of additional types #if 0'ed out

svn path=/trunk/; revision=47559
2010-06-04 00:19:39 +00:00
Timo Kreuzer
a9cf165e5f [DDK]
try to work around the testbot brokenness with an #if 0"

svn path=/trunk/; revision=47558
2010-06-03 23:40:33 +00:00
Timo Kreuzer
a8d609e19d [HAL]
Include the correct headers for amd64 vs i386

svn path=/trunk/; revision=47557
2010-06-03 23:18:20 +00:00
Timo Kreuzer
9bbc1250d2 [DDK]
In an incredibly daring move, add even more types to ntddk.h

svn path=/trunk/; revision=47556
2010-06-03 23:08:40 +00:00
Timo Kreuzer
3cbb0a3c40 [DDK]
2nd try, this time adding half of the structures.

svn path=/trunk/; revision=47555
2010-06-03 22:25:25 +00:00
Timo Kreuzer
da7f98efe8 Revert r47553 because testbot doesn't like it
svn path=/trunk/; revision=47554
2010-06-03 22:15:54 +00:00
Timo Kreuzer
c3179d84ef [DDK}
Add a number of PCI related types to ntddk.h

svn path=/trunk/; revision=47553
2010-06-03 21:55:57 +00:00
Timo Kreuzer
9d059198bb [ReactOS-amd64.rbuild]
The old explorer won't compile for amd64 without massive hacking, so remove it from the build.

svn path=/trunk/; revision=47552
2010-06-03 20:57:25 +00:00
Timo Kreuzer
5cede710e0 [ROSTESTS]
Fix 64 bit build of some modules (Samuel Serapion, modified by me)

svn path=/trunk/; revision=47551
2010-06-03 20:08:26 +00:00
Timo Kreuzer
859c81ee74 [W32KNAPI]
Add few more tests for NtGdiCreateBitmap

svn path=/trunk/; revision=47550
2010-06-03 19:39:28 +00:00
Timo Kreuzer
4e381837a0 [GDI32API]
add IsHandleValid and use it SelectObject test

svn path=/trunk/; revision=47549
2010-06-03 19:35:05 +00:00
Gregor Schneider
10dc21e801 [DESK]
- Rearrange screensaver wait codes around the MsgWaitForMultipleObjects function
- Fixes screensaver configuration windows blocking the control panel
- Refs: http://blogs.msdn.com/b/oldnewthing/archive/2005/02/17/375307.aspx and http://codereflect.com/2008/09/19/when-and-how-should-we-use-msgwaitformultipleobjects/

See issue #4213 for more details.

svn path=/trunk/; revision=47548
2010-06-03 18:47:37 +00:00
Timo Kreuzer
42667f14a0 [COMCTRL32]
Sync listview.c with wine 1.2 rc2


svn path=/trunk/; revision=47547
2010-06-03 17:56:15 +00:00
Timo Kreuzer
279fb08907 [PSDK]
add LVSIL_GROUPHEADER definition to commctrl.h

svn path=/trunk/; revision=47546
2010-06-03 17:52:23 +00:00
Timo Kreuzer
fbb71f36dc [BROWSEUI]
merge r44391 from amd64 branch
fix 64bit build


svn path=/trunk/; revision=47545
2010-06-03 17:44:52 +00:00
Giannis Adamopoulos
5ec9991072 [user32]
- Remove a reactos only export (PrivateCsrssInitialized)
- Don't call NtUserGetClassLong
- Move implementation of AnyPopup to user mode
- Fix a small bug in GetParent and in IsChild

[csrss]
- Don't call PrivateCsrssInitialized

[win32k]
- Call CsrInit in NtUserInitialize so we can remove PrivateCsrssInitialized
- Romove a reactos only syscall (NtUserGetClassLong)
- Remove UserGetClassLongPtr, UserGetWindow, UserGetWindowLong, IntGetOwner. Instead access objects directly
- In WINDOW_OBJECT store pointer to the ownder window instead of a handle

svn path=/trunk/; revision=47544
2010-06-03 16:12:43 +00:00
Timo Kreuzer
a101fb3029 [DDK]
Make RtlLargeIntegerDivide FORCEINLINE instead of __inline to avoid multiple definitions

svn path=/trunk/; revision=47543
2010-06-03 15:57:52 +00:00
Timo Kreuzer
33b6671aa1 [rbuild]
- cleanup obsolete rbuild flags for amd64
- undefine WIN32 for amd64, only _WIN32 should be defined

svn path=/trunk/; revision=47542
2010-06-03 15:50:19 +00:00
Gabriel Ilardi
54a043669e [SYSDM]
- Update Italian and Spanish translations.
- Add untranslated strings to the rest of the languages.

svn path=/trunk/; revision=47541
2010-06-03 15:09:08 +00:00
Timo Kreuzer
cce23ec5f3 [ACPICA]
- Hack acwin64.h, don't assume msvc for win64

svn path=/trunk/; revision=47540
2010-06-03 14:55:25 +00:00
Timo Kreuzer
997911a7be [RBUILD]
- append stdcall decoration only for i386 target

svn path=/trunk/; revision=47539
2010-06-03 14:49:47 +00:00
Timo Kreuzer
489842b382 merge 46805 from amd64 branch:
[RBUILD]
Fix some parameters (starting with --, not with -)

svn path=/trunk/; revision=47538
2010-06-03 14:19:18 +00:00
Eric Kohl
fc20aaf185 [NTOSKRNL]
NtDuplicateToken: If the called does not provide any desired access rights the duplicate token will inherit the granted rights of the original token.

svn path=/trunk/; revision=47535
2010-06-03 13:36:50 +00:00
Eric Kohl
65435e1b84 [SYSDM]
- Check the custom paging file sizes for being within useful limits and display warnings if these limit were exceeded.
- Translators: Please translate the message strings!

svn path=/trunk/; revision=47534
2010-06-03 13:17:33 +00:00
Timo Kreuzer
447be42c33 Merge 46523 from amd64 branch:
- Fix assert macro
- Add crt="MSVC" to a number of modules to resolve _assert

svn path=/trunk/; revision=47533
2010-06-03 12:47:40 +00:00
Cameron Gutman
520f691995 [FREELDR]
- Remove an overzealous API check and the work-around for it

svn path=/trunk/; revision=47531
2010-06-03 08:09:42 +00:00
Cameron Gutman
0f49f63b63 [FREELDR]
- Verify that Int 13 extensions are supported before trying to use them

svn path=/trunk/; revision=47530
2010-06-03 07:48:35 +00:00
Michael Martin
be344838ef [rtl]
- len returned from mbstowcs is the required size of the destination string, so only allocate the needed size.
- When doing the actual conversion pass in the size of the ansi string not the needed size of destination.
- These changes were missed in 47527.

svn path=/trunk/; revision=47529
2010-06-03 07:08:07 +00:00
Michael Martin
f6d5918b31 [crt]
- mbstowcs: Fix incorrect size passed as the second parameter for call to RtlMultiByteToUnicodeN.
Fixes loading assemblies when manifest is in a manifest file due to parsing failure.

svn path=/trunk/; revision=47527
2010-06-02 23:58:28 +00:00
Gabriel Ilardi
8f37e32fd6 [SYSDM]
- Update Italian and Spanish translations.

svn path=/trunk/; revision=47526
2010-06-02 22:49:27 +00:00
Eric Kohl
23e08cb25e [SYSDM]
- Fix a bug in the creation of the 'PagingFiles' registry value.
- Set paging file sizes only if both user defined sizes are valid numerical values and display a warning otherwise.
- Translators: Please translate the message strings!

svn path=/trunk/; revision=47525
2010-06-02 22:29:19 +00:00
Gabriel Ilardi
4fad7fd616 [usetup]
- The last error messages were swapped in some languages, spotted by Paolo Devoti.
- Added the minimum required disk space also in the debug print.
See issue #5440 for more details.

svn path=/trunk/; revision=47524
2010-06-02 22:28:37 +00:00
Giannis Adamopoulos
40ff1fac4b [win32k]
- Fix detection of file type while generating vcxproj files

svn path=/trunk/; revision=47523
2010-06-02 18:14:53 +00:00
Giannis Adamopoulos
4f491e282e [win32k[win32k]
-Allow menus to be shown over the taskbar
See issue #5415 for more details.

svn path=/trunk/; revision=47522
2010-06-02 16:55:21 +00:00
Gabriel Ilardi
c1de13be76 [netshell]
- Improve current network connection status icons.

svn path=/trunk/; revision=47521
2010-06-02 15:43:07 +00:00
Gabriel Ilardi
ee7e83a4cd Several Italian translation updates by Paolo Devoti.
See issue #5438 for more details.

svn path=/trunk/; revision=47520
2010-06-02 14:04:07 +00:00
Stefan Ginsberg
f1f3d045d4 [HAL] Fix compiler preprocessor checks for the IRQL masks so other compilers than GCC get proper entries too.
[HAL] Define the HalpHardwareInterrupt macro for MSVC too.
[HAL] Replace IRQL_DEBUG with DBG so we always check for incorrect IRQL on debug. I believe incorrect IRQL raise/lower is a common and serious enough error to always be checked for on debug builds without defining some special debug option.

svn path=/trunk/; revision=47519
2010-06-02 13:59:47 +00:00
Daniel Reimer
ebed05d2d4 Polish Translation Updates by Maciej Bialas.
svn path=/trunk/; revision=47518
2010-06-02 11:34:56 +00:00
Aleksey Bragin
840624212a [HAL]
- Fix a typo.

svn path=/trunk/; revision=47517
2010-06-02 11:26:19 +00:00
Cameron Gutman
59aacb176f [NTOSKRNL]
- Revert the hack in r47514
- The ASSERT is there to make sure the PFN lock is held
- Fix the issue properly by holding the PFN lock while initializing

svn path=/trunk/; revision=47516
2010-06-01 20:06:53 +00:00
Gregor Schneider
b5781444a5 [FONTVIEW] Select the oldest font back into the DC, leftover from bug #5182
svn path=/trunk/; revision=47515
2010-06-01 19:36:43 +00:00
Johannes Anderwald
2acf45f081 [NTOS]
- Fix assertion hit during install
- Fix identation
- Remove superflous spaces

svn path=/trunk/; revision=47514
2010-06-01 15:08:14 +00:00
Johannes Anderwald
ba2a17a2ef [NPFS]
- Fix 2 memory leaks when creating a pipe fails
- Fix minor style issue

svn path=/trunk/; revision=47513
2010-06-01 10:57:26 +00:00
Johannes Anderwald
e2be367887 [NPFS]
- Check if MmGetSystemAddressForMdlSafe failed

svn path=/trunk/; revision=47512
2010-06-01 09:52:16 +00:00
Giannis Adamopoulos
9598f59dec [rbuild]
msvc backend:
- Start implementing real support for vcxproj files
- Fix generating sln files
- Move msvc rules in a separate folder
- Various fixes

svn path=/trunk/; revision=47511
2010-06-01 09:31:24 +00:00
Art Yerkes
5fafb51079 Add invariant checks and fix a bug: Copy+Paste error misusing OldFlink
svn path=/trunk/; revision=47510
2010-06-01 09:22:10 +00:00
Johannes Anderwald
5e80db9d5e [NPFS]
- Add more buffer checks
- Clear DO_DEVICE_INITIALIZING flag

svn path=/trunk/; revision=47509
2010-06-01 09:12:32 +00:00
Johannes Anderwald
f346021e6c [NPFS]
- Return buffer size if the buffer is too small

svn path=/trunk/; revision=47508
2010-06-01 08:43:50 +00:00
Daniel Reimer
cfc0d726f2 Add the non yet working FF 3.6 and AbiWord 2.8.5 to rapps to simplify testing.
Sync the rest

svn path=/trunk/; revision=47507
2010-06-01 06:43:47 +00:00
Cameron Gutman
85c99c26cb [NPFS]
- Acquire the cancel spin lock before calling IoSetCancelRoutine
- Remove the old cancellation code
- Don't use the CCB stored in the IRP because it could be invalid depending on the state of the IRP
- Simplify thread termination
- Fixes random crash during rpcrt4:ndr_marshall test

svn path=/trunk/; revision=47506
2010-06-01 02:44:15 +00:00
Eric Kohl
f4d415767d [SMSS]
- Create a new default paging file if no paging files exist.
- Set the calculated paging file sizes in the registry.
- Remove predefined paging file name from the hivesys*.inf files.
Fixes bug #4048.

svn path=/trunk/; revision=47505
2010-05-31 22:34:16 +00:00
Gregor Schneider
19d33c5dc1 [RAPPS] Create a new download directory if the user agrees to do so, based on a patch by Seungju Kim. Translations except German and English should be updated to reflect the changed intention.
See issue #5196 for more details.

svn path=/trunk/; revision=47504
2010-05-31 20:09:13 +00:00
Gregor Schneider
86140dbf5a [EXPLORER_NEW] Display a message box if the explorer registry key cannot be loaded, patch by Katayama Hirofumi
See issue #5407 for more details.

svn path=/trunk/; revision=47503
2010-05-31 19:16:14 +00:00
Gregor Schneider
bd17e097fa [CMD] Protect certain actions with a critical section, patch by Katayama Hirofumi
See issue #5406 for more details.

svn path=/trunk/; revision=47502
2010-05-31 18:38:48 +00:00
Cameron Gutman
343454be2f [MSAFD]
- Msafd is really just a stub that points to mswsock

svn path=/branches/aicom-network-branch/; revision=47501
2010-05-31 18:17:05 +00:00
Giannis Adamopoulos
b95825c931 [win32k]
- Rename co_IntCreateWindowEx to co_UserCreateWindowEx and refactor it to make it readable
- Also fix the sequence of messages in co_UserCreateWindowEx

svn path=/trunk/; revision=47500
2010-05-31 17:58:05 +00:00
Timo Kreuzer
72cb5886ab [MMENT4]
Fix warning about uninitialized variable

svn path=/trunk/; revision=47499
2010-05-31 15:27:14 +00:00
Timo Kreuzer
c6de042447 [PSDK]
Fix braces around initializers for GUIDs
Patch by Love Nystrom

See issue #5336 for more details.

svn path=/trunk/; revision=47498
2010-05-31 15:10:25 +00:00
Timo Kreuzer
fa63efd411 [ntstrsafe.h]
- Fix a number of parameter types (LPSTR/LPCSTR instead of PCHAR, PCCHAR) This is not the same, PCCHAR is a char * not a const char *

svn path=/trunk/; revision=47497
2010-05-31 15:07:19 +00:00
Timo Kreuzer
76a1e465ea [CMIDRIVER]
- Fix a number of warnings, no actual code change
- Patch by Love Nystrom, improvements by me

See issue #5336 for more details.

svn path=/trunk/; revision=47496
2010-05-31 14:58:43 +00:00
Timo Kreuzer
f9639de590 [MMENT4]
Remove a ";" after an if (), that makes no sense and caused GetNt4SoundDeviceCapabilities to always return without doing anything.

svn path=/trunk/; revision=47494
2010-05-31 14:11:10 +00:00
Timo Kreuzer
aa42ebb18f [OSKITTCP]
Improve the reactos-hack, by changing the ";" after an "if (...)" to "(void)0;" to tell the compiler that we intentionally do nothing in the if body.

svn path=/trunk/; revision=47493
2010-05-31 14:04:24 +00:00
Timo Kreuzer
336bd01387 [LIBJPEG]
Instead of disabling a warning when using "main" as something else then the main function, define it to mainptr (it's used as a pointer variable) globally, this approach is portable.

svn path=/trunk/; revision=47492
2010-05-31 14:00:50 +00:00
Timo Kreuzer
633c71de4e [BATTC]
- define _BATTERYCLASS_ to not get dllimport specifiers

svn path=/trunk/; revision=47491
2010-05-31 13:57:33 +00:00
Timo Kreuzer
e9f941b00b [FORMAT]
Fix "potentially insecure" usage of non-string-literals in printf.

svn path=/trunk/; revision=47490
2010-05-31 13:56:29 +00:00
Timo Kreuzer
e5b901a419 [ACPI]
- Add some missing NTAPI
- Fix AcpiInterfaceConnectVector and AcpiInterfaceDisconnectVector parameters (ACPI_INTERFACE_STANDARD version 1 not version 2)
- Patch by Amine Khaldi

svn path=/trunk/; revision=47489
2010-05-31 13:54:38 +00:00
Timo Kreuzer
5168fe0e80 [MSCONFIG]
Add header guards. They are not neccessary in this case, but better to have them, especially since it uses a compilation unit.

svn path=/trunk/; revision=47488
2010-05-31 13:45:29 +00:00
Stefan Ginsberg
98ca38a88c [NTOS] Re-enable the APC debug check in the system call exit code that somehow got removed in 46247.
[NTOS] Use an inline for emitting the iret instruction in C code for portability.
[NTOS] Simplify the MSC assembly in KiSwitchToBootStack.

svn path=/trunk/; revision=47487
2010-05-31 12:52:16 +00:00
Michael Martin
11f78560e8 [win32k]
- When processing and deleting timers use a seperate timer lock instead of using the global user lock.

svn path=/trunk/; revision=47486
2010-05-31 12:36:40 +00:00
Jeffrey Morlan
46e34b5640 [WIN32CSR] Split up excessively large and disorganized conio.c into 3 separate files: one for input-related functions, one for output-related functions, and one for general/miscellaneous functions.
svn path=/trunk/; revision=47485
2010-05-31 06:28:55 +00:00
Timo Kreuzer
d3d2badfac - add explicit braces to avoid ambiguous 'else'
- fix deprecated conversion from string constant to 'char*'

svn path=/trunk/; revision=47484
2010-05-31 04:13:40 +00:00
Timo Kreuzer
b6e7912492 remove WTIME_S_DEFINED guard and move the functions from wchar_s to wchar.h (like in MS headers)
svn path=/trunk/; revision=47483
2010-05-31 03:32:51 +00:00
Timo Kreuzer
8cab5daeec [IPHLPAPI]
- remove unused variable

svn path=/trunk/; revision=47482
2010-05-31 02:29:36 +00:00
Timo Kreuzer
8deca41d3f Fix build (don't redefine structures)
svn path=/trunk/; revision=47481
2010-05-31 02:23:30 +00:00
Timo Kreuzer
62327e715f [DDK/XDK]
- Use PCI_COMMON_HEADER_LAYOUT for C, too, place it where it belongs

svn path=/trunk/; revision=47480
2010-05-31 02:15:15 +00:00
Timo Kreuzer
f0c2cec9d5 [CRT]
- add clang compatible asm version of ldexp and make the code more readable
- constify strndup parameter to match standard
- fix broken pointer comparison in signal()

svn path=/trunk/; revision=47479
2010-05-31 01:50:09 +00:00
Timo Kreuzer
1db109e182 [time.h]
Add missing asctime_s and localtime_s, don't include time_s.h anymore

svn path=/trunk/; revision=47478
2010-05-31 01:49:22 +00:00
Timo Kreuzer
2991d5eb42 [CRT]
- Don't define __int64 for clang (patch by Amine Khaldi)
- Fix file and purpose in the header

svn path=/trunk/; revision=47471
2010-05-30 22:28:00 +00:00
Cameron Gutman
5de258d708 [NPFS]
- Fix race conditions in read IRP cancellation that resulting in random crashes and hangs
- Fixes MULTIPLE_IRP_COMPLETE_REQUESTS bug checks and failed cancellations resulting in hangs during ntdll:file test

svn path=/trunk/; revision=47470
2010-05-30 22:18:50 +00:00
Timo Kreuzer
da9ba65945 [DDK/XDK]
Merge recent header changes

svn path=/branches/header-work/; revision=47467
2010-05-30 22:03:16 +00:00
Timo Kreuzer
1c2429510e [NTIFS]
Use a preprocessor definition for FSRTL_COMMON_FCB_HEADER instead of using an ms extension, that wouldn't work for ISO C

svn path=/trunk/; revision=47466
2010-05-30 22:02:42 +00:00
Timo Kreuzer
08d4b579ab [lib/3rdparty]
Disable unused value warning here, too

svn path=/trunk/; revision=47465
2010-05-30 21:32:28 +00:00
Gregor Schneider
744022564b [KERNEL32] Return nothing from InternalCopyDeviceFindDataA/W functions
svn path=/trunk/; revision=47464
2010-05-30 21:19:26 +00:00
Timo Kreuzer
06a6306fa8 [WINETESTS]
Disable unused value warnings

svn path=/trunk/; revision=47463
2010-05-30 21:01:52 +00:00
Timo Kreuzer
8da06df010 [PSEH]
Use dummy pseh for clang

svn path=/trunk/; revision=47462
2010-05-30 20:57:02 +00:00
Gregor Schneider
8117e46131 Various application fixes by Jan Roeloffzen, bug #5182, part 4/4
dxdiag: tabs -> spaces, UINT -> UINT_PTR, remove unused assignments, simplify code, fix compiler warnings

svn path=/trunk/; revision=47461
2010-05-30 20:36:20 +00:00
Gregor Schneider
ad964bddb1 Various application fixes by Jan Roeloffzen, bug #5182, part 3
arp: Remove unused variables
ftp: tabs->spaces, remove unused variables
nslookup: Remove unused variables

svn path=/trunk/; revision=47460
2010-05-30 20:31:58 +00:00
Gregor Schneider
81d25d5267 Various application fixes by Jan Roeloffzen, bug #5182, part 2
fontview: remove unused variable
kbswitch: remove unused variables
magnify: remove unused variable
mplay32: DWORD -> MCIERROR, tabs -> spaces
eventvwr: remove unused variable

svn path=/trunk/; revision=47459
2010-05-30 20:25:46 +00:00
Gregor Schneider
63313191f0 Various application fixes by Jan Roeloffzen, bug #5182, part 1
Notepad: remove unused variable, tabs -> spaces
Regedit: remove unused variable
Calc: dword->bool, remove unused variables, tabs -> spaces

svn path=/trunk/; revision=47458
2010-05-30 20:19:21 +00:00
Jeffrey Morlan
d27f068a19 [FORMATTING] Standardize win32csr to 4-space indents. Based on a patch by Adam Kachwalla [Bug 5380]. No code changes.
svn path=/trunk/; revision=47457
2010-05-30 20:00:17 +00:00
Eric Kohl
dfc4dcb9b5 [NTOSKRNL]
Make NtDuplicateToken fail if the caller tries to create a new impersonation token with a raised impersonation level. This fixes a winetest.

svn path=/trunk/; revision=47456
2010-05-30 19:46:02 +00:00
Christoph von Wittich
2e0bbab8ca [KMTEST]
cast the unused 0 in the ok macro to void to make clang happy as done for wine test.h

svn path=/trunk/; revision=47455
2010-05-30 19:37:27 +00:00
Gregor Schneider
3f536523c1 [CALC] Add units and conversion factors, patch by Andrea Maiani; nanoseconds entry added to resource files
See issue #5340 for more details.

svn path=/trunk/; revision=47454
2010-05-30 18:55:28 +00:00
Timo Kreuzer
b99bfa42f2 - partly revert r47442 and apply a working fix by guarding some prototypes of functions that exist as intrinsics in #ifdefs, so we don't use them for gcc/clang
- remove duplicated prototypes, when an inline function exists already

svn path=/trunk/; revision=47453
2010-05-30 18:46:02 +00:00
Gregor Schneider
cbb1f9480b [KBDLV] Latvian keyboard fixes by Arturs B., <mad_alchemist AT mail DOT ru>
See issue #5385 for more details.

svn path=/trunk/; revision=47452
2010-05-30 18:34:29 +00:00
Timo Kreuzer
25b2c670c4 [WINE]
Cast the unused 0 in the ok macro to void to make clang happy

svn path=/trunk/; revision=47450
2010-05-30 16:24:51 +00:00
Christoph von Wittich
8e44cb3688 [WINE]
partial sync of test.h

svn path=/trunk/; revision=47449
2010-05-30 15:37:32 +00:00
Christoph von Wittich
d6fb44f0d7 [COMCTL32_WINETEST]
sync to wine 1.2 RC2

svn path=/trunk/; revision=47448
2010-05-30 15:19:09 +00:00
Christoph von Wittich
769948f75a [PSDK]
add missing definitions

svn path=/trunk/; revision=47447
2010-05-30 15:18:08 +00:00
Gregor Schneider
5df0484c21 [MMSYS] Load the no sound item in the shared buffer before preparing the reactos/media path for loading individual files
See issue #5436 for more details.

svn path=/trunk/; revision=47446
2010-05-30 15:13:04 +00:00
Gregor Schneider
306e2ff6f2 [MMSYS] Adjust German dialog item positions and sizes
svn path=/trunk/; revision=47445
2010-05-30 15:09:25 +00:00
Christoph von Wittich
065ed554be [PSDK]
add missing definitions

svn path=/trunk/; revision=47444
2010-05-30 15:00:04 +00:00
Timo Kreuzer
76dc595732 [DDK]
Cast the string parameter of ASSERTMSG to PCHAR to allow passing string constants which are PCCHAR without a warning.

svn path=/trunk/; revision=47443
2010-05-30 14:02:47 +00:00
Timo Kreuzer
4af7c48119 [intrin_x86.h]
- cast return value of __sync_val_compare_and_swap to make clang happy
- add __cdecl to a number of intrinsics to make them (hopefully) compatible with crt header declarations.

svn path=/trunk/; revision=47442
2010-05-30 13:02:29 +00:00
Timo Kreuzer
64fc3cd5d7 [NTDDK]
Protect IoMapTransfer from incompatible redefinition. Patch by AmineKhaldi.

svn path=/trunk/; revision=47441
2010-05-30 12:21:21 +00:00
Christoph von Wittich
07f8aeb0e8 [WS2_32]
set LastError to 0 when WSASendTo was successful

svn path=/trunk/; revision=47440
2010-05-30 11:25:21 +00:00
Christoph von Wittich
aa5ababad0 [SHDOCVW]
sync to wine 1.2 RC2

svn path=/trunk/; revision=47439
2010-05-30 10:25:19 +00:00
Christoph von Wittich
41cf6b121f [URLMON]
sync to wine 1.2 RC2

svn path=/trunk/; revision=47438
2010-05-30 10:20:31 +00:00
Michael Martin
7774953380 [user32]
- Pass a pointer to a structure, that holds the CallBack procedure and data, as the 5th parameter to NtUserMessageCall.
- Fix a bug In User32CallSendAsyncProcForKernel, the ArgumentLength is the size of SENDASYNCPROC_CALLBACK_ARGUMENTS.
[win32k]
- For types FNID_SENDMESSAGECALLBACK call co_IntSendMessageWithCallBack to put the message in the send queue.
- Rewrite code for when messages have a completioncallback

svn path=/trunk/; revision=47434
2010-05-30 06:23:41 +00:00
Sir Richard
c816943def [NTOS]: Implement MiAllocatePfn, it is a simpler wrapper that grabs a page, sets its protection, and initializes its PFN entry.
[NTOS]: Use MiAllocatePfn in MiLoadImageSection instead of MmAllocPage. Other than doing a better job at initializing the page, it creates our first caller of this function, great for testing, since this is a rather high-demand function, especially at boot.
Please test.

svn path=/trunk/; revision=47432
2010-05-30 03:02:39 +00:00
Gregor Schneider
a77d6480a6 [BOOTVID] Dramatically simplify 4bpp blitting routine
See issue #5103 for more details.

svn path=/trunk/; revision=47431
2010-05-29 23:54:47 +00:00
Timo Kreuzer
554237576f [_mingw.h]
Help compilation with clang. Patch by Amine Khaldi.

svn path=/trunk/; revision=47430
2010-05-29 21:48:32 +00:00
Eric Kohl
d259616ce4 [RTL]
Implement RtlEncodeSystemPointer using the user shared data cookie.

svn path=/trunk/; revision=47429
2010-05-29 21:15:48 +00:00
Eric Kohl
6af485d3aa [FORMATTING]
No code changes.

svn path=/trunk/; revision=47428
2010-05-29 20:40:28 +00:00
Sir Richard
fa9cd08b02 Timo/Physicus: Please validate for AMD64.
[NTOS]: Write down the PTE attribute flags for X86/AMD64. Timo/Physicus: Please double-check.
[NTOS]: Write down the array that converts from the MM_ protection flags arleady defined, into the appropriate PTE attribute flags that are architecture-specific.
[NTOS]: This will allow constant-time conversion of NT attributes into PTE attributes. Win32 attributes to NT attributes conversion won't be needed until VAD support.

svn path=/trunk/; revision=47427
2010-05-29 19:27:32 +00:00
Sir Richard
27957c2212 [NTOS]: Fix Implementation of BreakOnTermination -- Process Flags should be accessed with interlocked bit semantics, not through C bitfield extension.
[NTOS]: Revert 47425 and apply a better fix.

svn path=/trunk/; revision=47426
2010-05-29 19:21:08 +00:00
Eric Kohl
c5cc4a4bd7 [NTOSKRNL]
Do not use _SEH2_YIELD in NtSetInformationProcess, NtQueryInformationThread and NtSetInformationThread while a thread or process is still being referenced.

svn path=/trunk/; revision=47425
2010-05-29 19:13:19 +00:00
Sir Richard
c916ce9d20 Testers: Please pay attention to this build and test it fully:
[NTOS]: Implement MiDecrementShareCount (to start replacing MmReleasePageMemoryConsumer calls for pages that were grabbed through ARM3, not Mm).
[NTOS]: Implement MiInitializePfn (to initialize pages grabbed through ARM3/MiRemoveAnyPage instead of Mm/MmAllocPage).
[NTOS]: For stack pages, use new ARM3 PFN alloc/free routines, as a first test/beginning of the new ARM3 ABI.
[NTOS]: Implement and start using the Pending-Deletion PFN flag.
[NTOS]: As a result, for stack pages, the Transition page state will now be seen, and the new routine for re-inserting pages into the free list will now be used. Tracking of page table references is also done now for these pages (but we don't free the PT since this doesn't seem safe yet).


svn path=/trunk/; revision=47424
2010-05-29 18:33:50 +00:00
Eric Kohl
00fbba2fb4 [NTOSKRNL / RTL]
- Implement BreakOnTermination case for NtQueryInformationProcess and NtSetInformationProcess.
- Implement RtlSetProcessIsCritical.

svn path=/trunk/; revision=47423
2010-05-29 18:22:47 +00:00
Christoph von Wittich
5e8f4e5fd6 [MSHTML_WINETEST]
sync to wine 1.2 RC2

svn path=/trunk/; revision=47422
2010-05-29 18:04:05 +00:00
Gregor Schneider
fcb1ce77af [CMD] File completion
- Don't pass device paths to FindFirstFile (similar to r47418)
- Allows to complete files, whose names start like DOS devices (COMx, LPTx. AUX, NUL, CON, etc)
See issue #4848 for more details.

svn path=/trunk/; revision=47421
2010-05-29 18:01:20 +00:00
Christoph von Wittich
4141772cae [SHLWAPI]
sync to wine 1.2 RC2

svn path=/trunk/; revision=47420
2010-05-29 17:47:03 +00:00
Christoph von Wittich
2489a60f61 [WS2_32]
implement WSAAddressToStringA/W (taken from wine)

svn path=/trunk/; revision=47419
2010-05-29 17:33:37 +00:00
Gregor Schneider
08ca572fc4 [CMD] copy command:
- Don't pass device path to FindFirstFile, use short path instead
- Join duplicate code to simplify processing
See issue #3575 for more details.

svn path=/trunk/; revision=47418
2010-05-29 16:49:23 +00:00
Cameron Gutman
04c946cecc [NTOSKRNL]
- Fix stack skipping logic in IofCompleteRequest
- Fixes displaying MULTIPLE_IRP_COMPLETE_REQUESTS bug check
- Patch by lassy with a typo fix by me

svn path=/trunk/; revision=47417
2010-05-29 16:00:43 +00:00
Christoph von Wittich
7f10ebad54 [MSHTML]
-sync to wine 1.2 RC2
-add ros_diff.patch

svn path=/trunk/; revision=47416
2010-05-29 14:54:55 +00:00
Christoph von Wittich
bc9b61ca21 [MSHTML]
restore local mshtml changes lost by last wine sync

svn path=/trunk/; revision=47415
2010-05-29 14:44:13 +00:00
Christoph von Wittich
da3904b159 [BOOTDATA]
revert 47055

svn path=/trunk/; revision=47414
2010-05-29 14:42:39 +00:00
Christoph von Wittich
b2caf487ee [JSCRIPT]
sync to wine 1.2 RC2

svn path=/trunk/; revision=47413
2010-05-29 14:21:43 +00:00
Christoph von Wittich
e2a40983d0 [WININET]
-sync to wine 1.2 RC2
-enable http compression with zlib

svn path=/trunk/; revision=47412
2010-05-29 13:41:35 +00:00
Daniel Reimer
85122dfdc4 Update zlib from 1.2.3 to 1.2.5
svn path=/trunk/; revision=47411
2010-05-29 13:22:48 +00:00
Christoph von Wittich
c5d6cf73b0 [CRYPT32]
sync to wine 1.2 RC2

svn path=/trunk/; revision=47410
2010-05-29 13:14:05 +00:00
Gregor Schneider
c60e69763c [BOOTVID] Don't increment an uninitialized and unused variable, bug #5103
svn path=/trunk/; revision=47409
2010-05-29 12:57:29 +00:00
Daniel Reimer
f435dab493 Update:
DejaVu Fonts 2.30 -> 2.31
Liberation Fonts 1.04 -> 1.05.2

svn path=/trunk/; revision=47408
2010-05-29 12:47:30 +00:00
Gregor Schneider
c8e90e9d05 [KERNEL32] ReplaceFileW:
- Initialize Unicode string structure, so that only allocated buffers are freed when leaving the function
- Fixes several heap warnings in kernel32:file test

svn path=/trunk/; revision=47407
2010-05-29 12:31:48 +00:00
Gregor Schneider
24dd4301ad [KERNEL32] WaitNamedPipeW: Free Unicode buffer when leaving the function
svn path=/trunk/; revision=47406
2010-05-29 12:29:26 +00:00
Christoph von Wittich
c48e118c70 [OLE32]
sync to wine 1.2 RC2

svn path=/trunk/; revision=47405
2010-05-29 11:34:57 +00:00
Christoph von Wittich
1d5afb8039 [CRT]
fix behavior of _system (fixes msvcrt environ winetest)

svn path=/trunk/; revision=47403
2010-05-29 09:23:23 +00:00
Christoph von Wittich
e701f228c2 [MSVCRT_WINETEST]
partial sync to wine 1.2 RC2

svn path=/trunk/; revision=47402
2010-05-29 09:22:07 +00:00
Christoph von Wittich
b6ed2f2fbf [QUARTZ]
sync to wine 1.2 RC2

svn path=/trunk/; revision=47401
2010-05-29 09:07:32 +00:00
Christoph von Wittich
cdabe0cf21 [QEDIT]
sync to wine 1.2 RC2

svn path=/trunk/; revision=47400
2010-05-29 09:05:43 +00:00
Christoph von Wittich
def4a5f1f5 [RSAENH]
sync to wine 1.2 RC2

svn path=/trunk/; revision=47399
2010-05-29 09:03:59 +00:00
Christoph von Wittich
bc732ca2d3 [MSXML3]
sync to wine 1.2 RC2

svn path=/trunk/; revision=47398
2010-05-29 09:02:25 +00:00
Christoph von Wittich
348790ffe6 [MSI]
sync to wine 1.2 RC2

svn path=/trunk/; revision=47397
2010-05-29 08:55:43 +00:00
Christoph von Wittich
11ebf0a0dc [MSI]
delete msi_ros.diff

svn path=/trunk/; revision=47394
2010-05-29 08:01:25 +00:00
Michael Martin
a8a65751a3 [win32k]
- The timer is created usingUserCreateObject. It may be a good idea to save the handle in the timer object so that it can be deleted later.
- Dereference the object before attempting to delete it.

svn path=/trunk/; revision=47393
2010-05-29 06:51:03 +00:00
Amine Khaldi
9c2f5ba446 [XDK]
- Add some missing definitions.
[DDK]
- Update ntddk.h to reflect recent XDK changes.

svn path=/branches/header-work/; revision=47392
2010-05-29 00:30:18 +00:00
Cameron Gutman
61325bb279 [NTOSKRNL]
- Set the Status variable to STATUS_SUCCESS in PIP_RETURN_DATA
- Fixes testbot

svn path=/trunk/; revision=47391
2010-05-29 00:29:12 +00:00
Cameron Gutman
848f77424e [NTOSKRNL]
- Use PnpDetermineResourceListSize to determine the resource list size and remove the broken IopCalculateResourceListSize function

svn path=/trunk/; revision=47390
2010-05-28 23:17:59 +00:00
Sir Richard
58055397a5 [NTOS]: Root Bus PDO should not override Status with STATUS_NOT_IMPLEMENTED and instead use the current IRP status (which drivers/PnP will typically set to STATUS_NOT_SUPPORTED). Found by testing the new PCIx driver (probably fixes other bus drivers too).
svn path=/trunk/; revision=47389
2010-05-28 23:08:41 +00:00
Sir Richard
6b6a3291e8 [NTOS]: Re-implement IoGetDeviceProperty. Main changes are usage of existing (and new) helper functions for registry/IRP access, much better factored code, correct implementation of DevicePropertyPhysicalDeviceObjectName, fixed implementation of DevicePropertyBootConfigurationTranslated and DevicePropertyBootConfiguration (do not crash the system anymore), and support for more device properties.
[NTOS]: Fix caller of IoGetDeviceProperty in pnpres.c to work with new function behavior (which matches WDK documentation and test cases).
[NTOS]: Implement helper function PnpBusTypeGuidGet, should be used later in other PnP code, but now used only for this patch.
[NTOS]: Implement helper function PnpDetermineResourceListSize, ditto. N.B. Current IopCalculateResourceListSize function is broken and callers should use this one instead.
[NTOS]: Implement helper function PpIrpQueryCapabilities, should be used later in device node code, but now only used for this patch.
[NTOS]: Implement helper function PnpDeviceObjectToDeviceInstance, ditto.
Main purpose of this patch is to unblock the new PCIx driver.

svn path=/trunk/; revision=47388
2010-05-28 23:03:27 +00:00
Cameron Gutman
799b6ad5b8 [FREELOADER]
- Fix DoOptionsMenu and implement AppendBootOptions to support F8 boot options
- Fixes bug 5363

svn path=/trunk/; revision=47387
2010-05-28 22:54:27 +00:00
Michael Martin
18c065e00d [win32k]
- Remove use of TMRF_DELETEPENDING for deleting timers as this was a bad idea. 
Timers need to be deleted immediately as waiting for them to be deleted resulted in some processes running out of handles.
Fixes richedit winetest for editor.
- Add flag TMRF_TIFROMWND for timers created from user mode so the thread stored in the timer object is from the window and not caller.
Fixes an issue where FireFox would not show any of its windows and looked dead.
- When creating and deleting timers, If the window is non null and IDEvent is 0 then the IDEvent is changed to 1.
- When modifying timer list use UserEnter and Leave instead of a Critical Region only.

svn path=/trunk/; revision=47385
2010-05-28 20:35:30 +00:00
Eric Kohl
f9cd9b9a5b [NTOSKRNL]
- Implement SeAppendPrivileges().

svn path=/trunk/; revision=47384
2010-05-28 19:36:57 +00:00
Eric Kohl
f0910f33d3 [FORMATTING]
No code changes.

svn path=/trunk/; revision=47383
2010-05-28 16:28:27 +00:00
Eric Kohl
4e25539b71 [NTOSKRNL]
Implement SeFreePrivileges().

svn path=/trunk/; revision=47382
2010-05-28 15:03:09 +00:00
Cameron Gutman
d30c42f367 [MSAFD]
- Fix a broken call to WSPBind that I missed in r47378

svn path=/trunk/; revision=47380
2010-05-28 05:15:42 +00:00
Cameron Gutman
d36292eecf [TCPIP]
- Return STATUS_INVALID_ADDRESS if the caller tries to get a non-local address
- Return STATUS_ADDRESS_ALREADY_EXISTS if the caller uses an address that is in use
[MSAFD]
- Translate STATUS_ADDRESS_ALREADY_EXISTS -> WSAEADDRINUSE, STATUS_LOCAL_DISCONNECT -> WSAECONNABORTED, and STATUS_REMOTE_DISCONNECT -> WSAECONNRESET
[IP]
- Translate OSK_EADDRINUSE -> STATUS_ADDRESS_ALREADY_EXISTS, OSK_ECONNABORTED -> STATUS_LOCAL_DISCONNECT, and OSK_ECONNRESET -> STATUS_REMOTE_DISCONNECT
- Fixes waiting for binding during ws2_32 sock winetest

svn path=/trunk/; revision=47379
2010-05-28 04:39:49 +00:00
Cameron Gutman
54b6aff827 [MSAFD]
- Pass a valid pointer for lpErrno to WSPBind when performing an implicit bind
- Remove the hack in MsafdReturnWithErrno for dealing with stupid callers that provide don't provide a valid Errno pointer

svn path=/trunk/; revision=47378
2010-05-28 04:07:39 +00:00
Cameron Gutman
219cc11d6a [MSAFD]
- Remove an incorrect change
- Create a new function called TranslateNtStatusError to translate NTSTATUS to winsock error codes
- Call the TranslateNtStatusError in MsafdReturnWithErrno and also use it to translate AFD's poll event error codes
[AFD]
- Track the status for each poll event in our FCB and copy it back when we get an IOCTL_AFD_ENUM_NETWORK_EVENTS IRP
- Remove some useless PollReeval calls

svn path=/trunk/; revision=47377
2010-05-28 03:55:50 +00:00
Cameron Gutman
f06be4552d [MSAFD]
- Zero the entire struct not just the lpNetworkEvents member
- Write the error codes returned from AFD to the iErrorCode array
- Fixes hundreds of ws2_32_winetest sock failures (only 104 failures now)
- Dedicated to Physicus

svn path=/trunk/; revision=47376
2010-05-28 02:25:56 +00:00
Cameron Gutman
f73d8199f7 [NPFS]
- Partially revert r47370 and apply a better patch
- Change ReadEvent and WriteEvent to notification events because we reset those events manually when we run out of buffer space

svn path=/trunk/; revision=47375
2010-05-27 23:52:32 +00:00
Eric Kohl
b85a7deb22 The global flag FLG_HEAP_ENABLE_CALL_TRACING has been replaced by FLG_ENABLE_SYSTEM_CRIT_BREAKS in Windows XP and above.
svn path=/trunk/; revision=47374
2010-05-27 20:15:35 +00:00
Benedikt Freisen
011d911b66 [PAINT]
- After clearing a new selection and creating an undo-step, draw selection contents
- Fixes bug #5246

svn path=/trunk/; revision=47373
2010-05-27 14:53:53 +00:00
Benedikt Freisen
c63cf6931f [PAINT]
- Improvements by Black_Fox, see bug #5418
- Readability improvement, patch by Katayama Hirofumi, see  bug #5420

svn path=/trunk/; revision=47372
2010-05-27 12:21:50 +00:00
Kamil Hornicek
5989fa66dd - Sync wined3d, ddraw, d3d8, d3d9 with Wine
svn path=/trunk/; revision=47371
2010-05-27 10:25:14 +00:00
Cameron Gutman
7c79933df4 [NPFS]
- Change the other side's to PIPE_STATUS_CLOSING_STATE in NpfsCleanup and NpfsClose so the reading/writing thread knows that the pipe is dead when we signal its event
- Fixes iphlpapi_winetest hang and possibly bug #4689

svn path=/trunk/; revision=47370
2010-05-27 00:26:34 +00:00
Timo Kreuzer
5faac22844 [WIN32K]
GreGradientFill: don't forget to unlock the DC

svn path=/trunk/; revision=47367
2010-05-26 22:33:10 +00:00
Hervé Poussineau
24c7a10807 [freeldr] Repair NTFS driver. ReactOS is now able to boot (again) from NTFS partitions
svn path=/trunk/; revision=47365
2010-05-26 19:58:54 +00:00
Hervé Poussineau
82c609eda0 [freeldr] Disable NTFS cache because it gives wrong results
svn path=/trunk/; revision=47364
2010-05-26 19:56:07 +00:00
Timo Kreuzer
21e28a541f [FREETYPE]
Update to 2.3.12, conversion patch already applied

svn path=/trunk/; revision=47363
2010-05-26 11:30:35 +00:00
Gabriel Ilardi
7dc83b2932 [USETUP]
- Spanish translation update by Javier Remacha. Fixes bug 4367.
- Fixed a typo in Italian and English.

- Some other Spanish and Italian translation updates by Javier and me.

svn path=/trunk/; revision=47362
2010-05-26 11:28:02 +00:00
Timo Kreuzer
66aae4c0fa [FREETYPE]
- Cleanup old files
- Remove setjmplongjmp.s
- Correction to last commit message: the conversion patch was already applied

svn path=/trunk/; revision=47361
2010-05-26 11:07:12 +00:00
Timo Kreuzer
7c79bc896d [FREETYPE]
Patch by Jerome Gardou: Update freetype to 2.3.9
The FT_MulFix patch is not neccessary anymore, the 1BPP -> 8BPP conversion patch will be applied again right after this.
See issue #4537 for more details.

svn path=/trunk/; revision=47360
2010-05-26 10:40:15 +00:00
Jeffrey Morlan
1594c9f594 [WIN32CSR] Implement console pausing. [Bug 4739]
svn path=/trunk/; revision=47359
2010-05-26 04:57:45 +00:00
Michael Martin
bbe7ec53c5 [win32k]
- Implement DestroyTimersForWindow and call it instead of MsqRemoveTimersWindow when destroying a window.
- Fire NewMessages event when cleaning up thread so that threads dont wait for new messages that will never be received. Fixes a problem where some application that use timers dont completly exit.
- IntSetTimer: Dont try to raise a timer from the dead. Once the TMRF_DELETEPENDING flag is set, let it be destroyed.
- co_MsqWaitForNewMessages: Call the wait without a timeout value as now when the timer expires the NewMessages event will be set to exit the wait.
- Message Queue specific timer code and old time queuing code is now dead. It will be removed later when we are happy with new timer implementation.

svn path=/trunk/; revision=47358
2010-05-26 02:04:09 +00:00
Gabriel Ilardi
7f82a194fa [USETUP]
- Estonian translation of minimum disk space required by Andres Traks #3302.
[USERENV]
- Fix mistakenly translated strings "recent" and "sendto" in Italian and Spanish resources, plus another Spanish fix.
Several Czech translation updates by Radek Liska #5429.

svn path=/trunk/; revision=47351
2010-05-25 13:42:30 +00:00
Timo Kreuzer
714a181969 [WIN32K]
Refactor NtGdiGradientFill, use 1 SEH block instead of 2, replace IntGdiGradientFill with GreGradientFill, don't lock the DC in UserDrawCaption.

svn path=/trunk/; revision=47350
2010-05-25 11:55:04 +00:00
Timo Kreuzer
71d693cef0 [WIN32K]
Delete old clipregion only and set a new one, if it could be created already, to avoid setting a NULL region.

See issue #4431 for more details.

svn path=/trunk/; revision=47349
2010-05-25 11:41:29 +00:00
Michael Martin
bb079cacb0 [win32k]
- Minor revert of 47281 to fix OO installer textboxes.

svn path=/trunk/; revision=47348
2010-05-25 10:33:13 +00:00
Gabriel Ilardi
d514045177 [USETUP]
- Polish and Czech (#5429) translations of required disk space by Maciej Bialas and Radek Liska
- Some fixes and updates to Italian and Spanish resources

svn path=/trunk/; revision=47346
2010-05-25 08:16:09 +00:00
Eric Kohl
1605abd1bc [USETUP]
Make the required minimum disk space configurable from the txtsetup.sif file.

svn path=/trunk/; revision=47345
2010-05-24 22:32:23 +00:00
Eric Kohl
bd925f8147 [USETUP]
Made the 'Copying file...' status line message left aligned like all the other status line messages.

svn path=/trunk/; revision=47343
2010-05-24 21:43:51 +00:00
Eric Kohl
6ed709da3d [USETUP]
- Add german translation of required minimum disk space warning.

svn path=/trunk/; revision=47342
2010-05-24 21:08:06 +00:00
Gabriel Ilardi
d1f4ced4ab [USETUP]
- Check for required minimum disk space eventually warn the user.
- Added Italian and Spanish warnings, the other languages need translation.
- Patch by R.T.Sivakumar modified by me.
See issue #3302 for more details.

svn path=/trunk/; revision=47341
2010-05-24 20:53:32 +00:00
Timo Kreuzer
8a591ca9df [WIN32K / WIN32CSR]
Get rid of FASTCALL specifier for static functions and functions with no parameters.

svn path=/trunk/; revision=47340
2010-05-24 13:34:08 +00:00
Timo Kreuzer
c970cbb191 [WIN32K]
When destroying a window, generate a mouse move message, so that the underlying window is notified about the mouse position and can update the pointer if neccessary. Fixes bug #4499 and bug #3893

See issue #4499 for more details.

svn path=/trunk/; revision=47339
2010-05-24 12:57:03 +00:00
Aleksey Bragin
c386b1ee3b - Revert 47310. Please find a way to enable kmtest only when building the testing cd image, not the installation/live one.
svn path=/trunk/; revision=47338
2010-05-24 08:51:52 +00:00
Jeffrey Morlan
975502bb74 [WIN32CSR] fix tuiconsole
svn path=/trunk/; revision=47337
2010-05-24 00:04:56 +00:00
Eric Kohl
4841dde246 [SMSS]
- Add the system environment variables PROCESSOR_LEVEL and PROCESSOR_REVISION.

svn path=/trunk/; revision=47336
2010-05-23 23:41:16 +00:00
Jeffrey Morlan
7fa77031b0 [WIN32CSR]
- Make consistent use of RECT/SMALL_RECT structures: a RECT uses pixel coordinates relative to the window client area and is endpoint-exclusive; a SMALL_RECT uses character coordinates relative to the screen buffer and is endpoint-inclusive.
- Allow text selections outside of the visible window
- Implement GetConsoleSelectionInfo

svn path=/trunk/; revision=47335
2010-05-23 22:38:16 +00:00
Eric Kohl
8f6739ed2e [REGEDIT]
Ignore the case when sorting value names.

svn path=/trunk/; revision=47334
2010-05-23 20:41:03 +00:00
Eric Kohl
88637f32f5 [SMSS]
- Remove the system environment variable OS from the hivesys*.inf files.
- Change the type of the system environment variable PATHEXT in the hivesys*.inf files from REG_EXPAND_SZ to REG_SZ.
- Let SMSS add the system environment variables OS and NUMBER_OF_PROCESSORS to the registry.

svn path=/trunk/; revision=47333
2010-05-23 19:27:04 +00:00
Jeffrey Morlan
4b687b2792 [KERNEL32], [WIN32CSR] More fixes for console winetest
- BasepInitConsole: Initialize console input EXE name
- GetConsoleProcessList: Use capture buffer; only copy IDs if buffer has enough room for all of them; return total number of processes.

svn path=/trunk/; revision=47331
2010-05-23 17:40:54 +00:00
Eric Kohl
4bba2335c0 [SMSS]
- Remove the system environment variable PROCESSOR_ARCHITECTURE from the hivesys*.inf files.
- Let SMSS add the system environment variables PROCESSOR_ARCHITECTURE and PROCESSOR_IDENTIFIER to the registry.

svn path=/trunk/; revision=47330
2010-05-23 17:28:06 +00:00
Gabriel Ilardi
7a2b3d46d3 [INTL]
- Polish translation of Metric and Imperial by Olaf Siejka.

svn path=/trunk/; revision=47329
2010-05-23 17:07:56 +00:00
Gabriel Ilardi
fd303a1a46 [REGEDIT]
- Don't display "finished" message if search is aborted.
Patch by Katayama Hirofumi.
See issue #5421 for more details.

svn path=/trunk/; revision=47328
2010-05-23 17:01:06 +00:00
Sylvain Petreolle
772c56e48d Perform case insensitive comparison against the selected language id.
svn path=/trunk/; revision=47327
2010-05-23 16:26:11 +00:00
Jeffrey Morlan
44ce7e4f55 [KERNEL32], [WIN32CSR] Implement the CREATE_NO_WINDOW flag which creates a console with an invisible window.
svn path=/trunk/; revision=47326
2010-05-23 15:56:37 +00:00
Michael Martin
38734242d5 [win32k]
- For the Low Level Mouse Hook (WH_MOUSE_LL), input can come from the mouse driver or mouse_event. Both of which result in a call to UserSetCursorPos.
UserMode SetCursorPos API also ends up here. Add BOOL parameter that can be used to determine if hooks are to be called.
- Move the code related to calling the hook procedure from MsqInsertSystemMessage into UserSetCursorPos and call the hook procedure here if needed.
If hook procedure returns non 0 value. Dont insert the system message.
- Fixes a recursive call to the hook procedure resulting thread using to much stack exposed by user32 winetest for input.

svn path=/trunk/; revision=47325
2010-05-23 11:53:01 +00:00
Eric Kohl
dcc025f6e3 [WINLOGON]
- Set the APPDATA environment variable without loading shell32.dll.
This should fix bug #5398.

svn path=/trunk/; revision=47324
2010-05-23 11:35:08 +00:00
Giannis Adamopoulos
89b45a7e71 [kernel32_winetest]
- kernel32 tests need a resource file

svn path=/trunk/; revision=47322
2010-05-23 10:59:41 +00:00
Jeffrey Morlan
0b077c2961 [WIN32CSR] Implement FILE_SHARE_* flags for console handles. Fixes some more winetests.
svn path=/trunk/; revision=47319
2010-05-23 09:10:02 +00:00
Jeffrey Morlan
85b0f2bc12 [WIN32CSR] Delete even the active screen buffer when all handles are closed. Fixes a winetest.
svn path=/trunk/; revision=47318
2010-05-23 06:04:15 +00:00
Jeffrey Morlan
3c777cde9c [WIN32CSR]
- Simplify locking: having a lock for each screen buffer is overkill since most programs only use one screen buffer at a time. (besides, almost all APIs were taking the console lock anyway) Reduce to just having one lock for a console.
- Instead of keeping track of how many references a screen buffer has, keep track of handles only.  When all handles to a screen buffer are closed, it should be deleted even if it's the active buffer (not yet implemented).

svn path=/trunk/; revision=47317
2010-05-23 05:33:21 +00:00
Jeffrey Morlan
ff2f27f29b [WIN32CSR] Protect ProcessData->Console with the HandleTableLock.
svn path=/trunk/; revision=47316
2010-05-23 02:58:23 +00:00
Jeffrey Morlan
8686d42f93 [WIN32CSR] Clean up the debris from r47314: Removed some redundant code, reorganized headers, fixed win32csr.rbuild indentation
svn path=/trunk/; revision=47315
2010-05-23 00:51:29 +00:00
Jeffrey Morlan
7d27afbe96 [CSRSRV], [WIN32CSR]
- Move code for managing console handles from csrsrv to win32csr, where the rest of the console code is. No changes in functionality intended.
- Unify the csrsrv->win32csr callbacks (now numbering 4) into one table to avoid excessive code duplication.

svn path=/trunk/; revision=47314
2010-05-22 23:47:54 +00:00
Jeffrey Morlan
a2c5273653 [WIN32CSR] Make CsrFreeConsole close the process's console handles.
svn path=/trunk/; revision=47313
2010-05-22 21:40:20 +00:00
Eric Kohl
6a0342f830 [INTL]
Translation for entries added by r47298.
Patch by Radek Liska. Fixes bug #5416.

svn path=/trunk/; revision=47312
2010-05-22 20:27:14 +00:00
Eric Kohl
dc17a010c9 [DEVMGR]
devman.dll improvements by Viliam Lejcik:

- display version info for selected driver file in 'Driver File Details' dialog
- resource modification - changed some labels to read-only editboxes

Fixes bug #4875.

svn path=/trunk/; revision=47311
2010-05-22 20:10:52 +00:00
Cameron Gutman
9b0af1861b [HIVESYS.INF]
- Enable kmtest

svn path=/trunk/; revision=47310
2010-05-22 18:34:54 +00:00
Cameron Gutman
afcd401a32 [KMTEST]
- Add support for recovering from crashed tests
- Add check to prevent us from running the test every boot
- Delete some useless code
- Record test result information in the registry
- Under the Kmtest\Parameters key, you will find CurrentStage which is the stage that testing is on (almost always 8 if it boots). You will also find <Test Name>SuccessCount which is the number of successful tests, <Test Name>FailureCount which is the number of failed tests, <Test Name>TotalCount which is the total number of tests, and <Test Name>SkippedCount which is the number of tests that have been skipped
- Enjoy your reg testing! :)

svn path=/trunk/; revision=47309
2010-05-22 18:34:01 +00:00
Cameron Gutman
d7bbeaed19 [NTOSKRNL]
- Print a warning instead of crashing when a driver provides a NULL pointer in the MajorFunction array

svn path=/trunk/; revision=47308
2010-05-22 16:12:59 +00:00
Cameron Gutman
df9115f1d2 [NTOSKRNL]
- Free the string buffer after the DPRINT1 that prints the contents of the string
- Fixes debug print corruption found by kmtest

svn path=/trunk/; revision=47307
2010-05-22 16:03:25 +00:00
Cameron Gutman
fdbfc02407 [REACTOS.DFF]
- Add kmtest.sys and kmtestassist.sys to bootcd (optional)

svn path=/trunk/; revision=47306
2010-05-22 15:28:23 +00:00
Gregor Schneider
be753549c2 [SHELL32]
- Duplicate the string instead of freeing the memory twice at two different positions
- Fixes a heap warning when stating cmd from the desktop
See issue #4924 for more details.

svn path=/trunk/; revision=47305
2010-05-22 15:16:14 +00:00
Amine Khaldi
19ed67279d [NTOSKRNL]
- Use MiGetPdeOffset macro instead of ADDR_TO_PDE_OFFSET.

svn path=/branches/header-work/; revision=47303
2010-05-22 14:24:06 +00:00
Amine Khaldi
cde2dc6dc4 [NTOSKRNL]
- Add missing PDE_MAPPED_VA definition from the sync.

svn path=/branches/header-work/; revision=47302
2010-05-22 13:53:20 +00:00
Amine Khaldi
b1dae6b379 Sync up to trunk head.
svn path=/branches/header-work/; revision=47301
2010-05-22 13:41:48 +00:00
Gabriel Ilardi
8762a0ee20 [INTL]
Translate 'Metric' and 'Imperial' strings into Italian and Spanish.

svn path=/trunk/; revision=47299
2010-05-22 10:49:28 +00:00
Eric Kohl
8c14d43819 [INTL]
- Replace hard-coded unit strings ('Metric' and 'Imperial') by resource strings.
- Add the required resource strings to all supported languages.
- Translators: Please translate these strings.

svn path=/trunk/; revision=47298
2010-05-22 10:20:56 +00:00
Timo Kreuzer
654ef19f70 [WIN32K]
Remove WS_EX_SETANSICREATOR from Ex style in co_IntCreateWindowEx

svn path=/trunk/; revision=47297
2010-05-22 02:42:38 +00:00
Timo Kreuzer
411d634720 [USER32]
Fix uninitialized variable

svn path=/trunk/; revision=47296
2010-05-22 02:32:28 +00:00
Timo Kreuzer
709fe1efef [WIN32K / USER32]
Convert the window text string from UNICODE_STRING to LARGE_STRING and fix NtUserCreateWindowEx parameters. We currently still pass UNICODE only LARGE_STRINGs, as the rest of the code in win32k expects this.
Fixes display of large text windows, like the winzip license.
See issue #2900 for more details.

svn path=/trunk/; revision=47295
2010-05-22 01:05:31 +00:00
Cameron Gutman
c7ae2ad589 [IPHLPAPI]
- Fix some code left over from a previous attempt

svn path=/trunk/; revision=47294
2010-05-21 20:17:35 +00:00
Cameron Gutman
763cb9ff23 [DHCPCSVC]
- Remove the unused include folder

svn path=/trunk/; revision=47293
2010-05-21 20:16:48 +00:00
Cameron Gutman
0a0e20e1bd [DHCP/DHCPCSVC]
- Restore the SVN history
- Part 3 of 3 (hopefully)

svn path=/trunk/; revision=47292
2010-05-21 20:14:56 +00:00
Cameron Gutman
2835ee84ed [DHCP]
- Restore SVN history
- Part 2 of x

svn path=/trunk/; revision=47291
2010-05-21 19:30:13 +00:00
Cameron Gutman
6236312734 [DHCPCSVC]
- Restore SVN history
- Part 1 of x

svn path=/trunk/; revision=47290
2010-05-21 19:22:09 +00:00
Cameron Gutman
2b3f32398d DHCPCSVC]
- Move code from dhcp to dhcpcsvc
- Export ServiceMain from dhcpcsvc
- Now our DHCP service is compatible with the Windows architecture
[DHCP]
- Remove dhcp from build
[IPHLPAPI]
- Use dhcpcsvc APIs to control the DHCP service
- Add a missing DhcpCApiInitialize
- Fix include path in the rbuild file
[BOOTDATA]
- Add DHCP to the service list to be loaded by svchost in the netsvcs group
- Add the correct registry keys in the DHCP service key for loading by svchost
- Remove dhcp.exe from bootcd

- Part 3 of 3

svn path=/trunk/; revision=47288
2010-05-21 06:08:15 +00:00
Cameron Gutman
83add143de [DHCP]
- Delete the old DHCP service
- Part 2 of x

svn path=/trunk/; revision=47287
2010-05-21 05:57:05 +00:00
Cameron Gutman
5ef4b66b1a [DHCP]
- Delete the old dhcp service
- Part 1 of x

svn path=/trunk/; revision=47286
2010-05-21 05:44:35 +00:00
Michael Martin
a8e5ba3485 [win32k]
- Move the initialization of MasterTimer into InitInputImp which is called from win32k DriverEntry routine instead of initializing it in the secondary thread RawInputThreadMain.


svn path=/trunk/; revision=47285
2010-05-20 21:45:15 +00:00
Michael Martin
c88634cff4 [win32k]
- Set MasterTimer initial value to NULL and Initialize MasterTimer at the beginning of RawInputThreadMain before doing anything else.
- Add ASSERTs to catch if MasterTimer is NULL.


svn path=/trunk/; revision=47284
2010-05-20 21:07:53 +00:00
Giannis Adamopoulos
8576b9c8e0 [win32k]
-Remove an incorrect debug message and silence one

svn path=/trunk/; revision=47283
2010-05-20 12:25:50 +00:00
Timo Kreuzer
8064ef2967 [WIN32CSR]
Silence a debugprint

svn path=/trunk/; revision=47282
2010-05-19 22:15:49 +00:00
Giannis Adamopoulos
1e017bbd40 [win32k]
-Correctly adjust values returned from co_WinPosGetMinMaxInfo

svn path=/trunk/; revision=47281
2010-05-19 19:08:25 +00:00
Giannis Adamopoulos
3bafe5c68b [win32k]
-Sync co_WinPosGetMinMaxInfo with wine

svn path=/trunk/; revision=47280
2010-05-19 18:47:39 +00:00
Gabriel Ilardi
2d1481080b [userenv]
german translation of sendto
Patch by Egon Ashrafinia
See issue #5411 for more details.

svn path=/trunk/; revision=47277
2010-05-19 12:53:03 +00:00
Gabriel Ilardi
6f63efe38d [userenv]
- Fix Italian commonfiles
- Fix a typo and some Spanish environment variables

svn path=/trunk/; revision=47276
2010-05-19 12:03:41 +00:00
Giannis Adamopoulos
1cb77963b2 [win32k]
-Store the monitor work area in the monitor and not in the desktop

svn path=/trunk/; revision=47275
2010-05-19 11:50:21 +00:00
Giannis Adamopoulos
0a81d8d27b [win32k]
-WM_WINDOWPOSCHANGED should contain the final window position

svn path=/trunk/; revision=47273
2010-05-19 09:18:24 +00:00
Cameron Gutman
4b41a0b347 [QMGR]
- Add the FLG_ADDREG_APPEND flag when writing the netsvcs value because, unlike WINE, we are actually going to have values in there

svn path=/trunk/; revision=47268
2010-05-18 22:48:09 +00:00
Cameron Gutman
43d6b32a83 [SETUPAPI]
- Fix an incorrect length value that corrupted REG_MULTI_SZ values when they had strings appended
- I'm not sure if this is synced with WINE, but if it is, they need this patch too

svn path=/trunk/; revision=47267
2010-05-18 22:43:02 +00:00
Sylvain Petreolle
430ba4ba96 Add SvcHost registry entries.
svn path=/trunk/; revision=47266
2010-05-18 22:35:00 +00:00
Gregor Schneider
aa35f26fa9 [REGEDIT]
- Japanese resource fix by Katayama Hirofumi
- Adopt making the abort search button default for all languages
See issue #5409 for more details.

svn path=/trunk/; revision=47265
2010-05-18 17:40:38 +00:00
Giannis Adamopoulos
0ac861114e [Win32k]
- Rename co_InflateRect to RECTL_vInflateRect and move it to rect.c
- Sync WinPosFillMinMaxInfoStruct with wine
Fixes some user32:win tests

svn path=/trunk/; revision=47264
2010-05-18 09:01:08 +00:00
Michael Martin
9a41b998c7 [Kernel32]
- Implement UTF7 Support. Patch by Katayama Hirofumi.

svn path=/trunk/; revision=47263
2010-05-18 06:34:48 +00:00
Cameron Gutman
4ffa471abf [QMGR]
- Don't bulldoze our netsvcs key to install a service that doesn't even work yet

svn path=/trunk/; revision=47262
2010-05-18 01:23:57 +00:00
Timo Kreuzer
eaa70d8318 [USER32]
Patch by Benedikt Freisen: Fix wrong vertical position when painting 3D bottom line in menus.

See issue #4906 for more details.

svn path=/trunk/; revision=47260
2010-05-17 22:56:24 +00:00
Timo Kreuzer
d30bfb803d [USER32_WINETEST]
skip TrackPopupMenu, which leads to a hang on reactos

See issue #5405 for more details.

svn path=/trunk/; revision=47259
2010-05-17 22:45:28 +00:00
Amine Khaldi
e83facdb84 [NTOSKRNL]
- Add KiGetSecondLevelDCacheSize (for all the available architectures) and MiGetPdeOffset macros.
- Remove conflicting PDE_SIZE definitions (both aren't used anywhere).
- Fix ValidKernelPde, PointerPte and PointerPde types and correct their use (mminit.c).
- Thanks to the work that was done over the recent commits (in the header branch) and this one, the kernel now builds (but doesn't link yet) for ARM.

svn path=/branches/header-work/; revision=47258
2010-05-17 21:26:51 +00:00
Eric Kohl
ba5f9da4a0 Assign remaining services to the LocalSystem account.
svn path=/trunk/; revision=47256
2010-05-17 20:21:27 +00:00
Gregor Schneider
d5ebb5d18d [WIN32CSR]
- Fix a FIXME: convert ASCII char to Unicode char with input codepage
- Rename define parameters to make sense (prefix s - source, d - destination)

svn path=/trunk/; revision=47255
2010-05-17 18:43:21 +00:00
Timo Kreuzer
1b8056c3a3 [HAL]
comment out some amd64 specific stuff from rbuild files.

svn path=/trunk/; revision=47254
2010-05-17 14:52:00 +00:00
Michael Martin
e7a46576e2 [regedit]
- Woops, forgot to change the messages to use resource files instead. Thanks Gregor Schneider.

svn path=/trunk/; revision=47252
2010-05-17 12:31:06 +00:00
Michael Martin
1503e2b8c9 [regedit]
- If a search was never done, show the find dialog when pressing F3. Patch by Radek Liska.  See Bug #5391.
- Return the result of the FindNext and if it is false inform the user that search is complete.

svn path=/trunk/; revision=47251
2010-05-17 02:15:50 +00:00
Michael Martin
6666b6b68b [win32k]
- Check that the thread is not in cleanup before attempting to do anything related to it. Add a couple asserts for sanity.

svn path=/trunk/; revision=47249
2010-05-17 00:01:26 +00:00
Timo Kreuzer
39c39d457f [ReactOS-arm.rbuild]
- add newinflib to arm builds

svn path=/trunk/; revision=47248
2010-05-16 23:07:44 +00:00
Amine Khaldi
995ef3a334 [VERSION]
- Update the referencing of IMAGE_RESOURCE_DIRECTORY_ENTRY fields (the structure was updated in the previous commit).

svn path=/branches/header-work/; revision=47247
2010-05-16 22:39:59 +00:00
Timo Kreuzer
4833210740 [KERNEL32]
Protect GlobalLock, GlobalUnlock and GlobalSize with SEH, use IsBadReadPtr in GlobalLock. Inspired by wine code. Fixes user32_winetest dde crash.

svn path=/trunk/; revision=47246
2010-05-16 22:24:26 +00:00
Amine Khaldi
ac05d7c73c [PSDK]
- winnt.h : ULONG -> DWORD and UCHAR-> BYTE in several structures, update SLIST_HEADER and co, add proper packing of RTL_CRITICAL_SECTION, update IMAGE_AUX_SYMBOL, ReplacesCorHdrNumericDefines, IMAGE_COR20_HEADER, IMAGE_RESOURCE_DIRECTORY_ENTRY, IMAGE_RUNTIME_FUNCTION_ENTRY, SYSTEM_POWER_CAPABILITIES, ACTIVATION_CONTEXT_INFO_CLASS and HEAP_INFORMATION_CLASS, replace IMAGE_LOAD_CONFIG_DIRECTORY with IMAGE_LOAD_CONFIG_DIRECTORY{32,64} with the appropriate conditional and apply consistent formatting for the rest.

svn path=/branches/header-work/; revision=47245
2010-05-16 22:15:24 +00:00
Sylvain Petreolle
46b55c3dc2 Translate Common files for french as well.
svn path=/trunk/; revision=47243
2010-05-16 14:08:04 +00:00
Eric Kohl
ddf4c022d0 Translate "Common Files" string. Fixes a partially translated environment variable.
svn path=/trunk/; revision=47242
2010-05-16 13:57:04 +00:00
Christoph von Wittich
f01aef274d [RBUILD]
close <Project> tag in generated vcxproj files
(VS2010 support still incomplete)
See issue #5199 for more details.

svn path=/trunk/; revision=47241
2010-05-16 13:33:52 +00:00
Daniel Reimer
110f06f6c0 Update:
DosBox to 0.74, Mirror of FireFox 2, IrfanView to 4.27, RosBE to 1.5.1, uTorrent to 2.0.2.

svn path=/trunk/; revision=47240
2010-05-16 12:44:22 +00:00
Amine Khaldi
615d59ca2e [PSDK]
- batclass.h : Introduce pragma once, apply a consistent formatting, apply appropriate conditionals, add some missing definitions and group related ones.
- winnt.h : Update JOBOBJECTINFOCLASS, BATTERY_REPORTING_SCALE and POWER_INFORMATION_LEVEL, introduce _ANONYMOUS_UNION in SYSTEM_LOGICAL_PROCESSOR_INFORMATION, and apply a consistent formatting for the rest.

svn path=/branches/header-work/; revision=47239
2010-05-16 12:23:45 +00:00
Giannis Adamopoulos
2dde7c6713 [user32]
-CreateWindow should fail when called with WS_EX_MDICHILD and the specified parent is not an mdiclient

svn path=/trunk/; revision=47238
2010-05-16 09:32:51 +00:00
Giannis Adamopoulos
089c4ecbb9 [win32]
-Call HCBT_CREATEWND, WM_NCCREATE and WM_CREATE with correct style and position
-Fixes some user32:win tests

svn path=/trunk/; revision=47237
2010-05-16 09:26:35 +00:00
Giannis Adamopoulos
250427a4d1 [user32_winetest]
-deactivate a test that hangs

svn path=/trunk/; revision=47236
2010-05-16 08:09:19 +00:00
Giannis Adamopoulos
9271a5bcb0 [kernel32]
-OpenConsoleW: Don't crash when wsName is null

svn path=/trunk/; revision=47235
2010-05-16 07:03:03 +00:00
Cameron Gutman
5ea607ab59 [AFD]
- Fix a typo in r47156
- Fixes Firefox regression (bug 5384)
- Thanks to mjmartin for testing

svn path=/trunk/; revision=47234
2010-05-16 05:22:51 +00:00
Michael Martin
5ab3830ab5 [regedit]
- Implement RegFindRecurse, RegFindWalk and helpers to find registry keys. Remove RegNextKey as its no longer used. Other misc fixes. Fixes searching in regedit. Patch by Katayama_Hirofumi.

svn path=/trunk/; revision=47233
2010-05-16 04:57:24 +00:00
Timo Kreuzer
fa5c83b451 [KERNEL32]
- SwitchToFiber: instead of doing a ret to the return address on the stack (which wouldn't work for a newly created fiber) store the returnaddress in the Eip field old fiber context and do a jmp to the Eip of the new fiber.
- BasepInitializeContext: set the Eip member of the Context to BaseFiberStartup for fibers
CreateFiberEx: initialize the fiber context, instead of an unused context on the stack.
- BaseFiberStartup: Use GetCurrentFiber, not GetFiberData to get the current fiber.
Fixes kernel32_wintest fiber

svn path=/trunk/; revision=47232
2010-05-16 00:30:11 +00:00
Timo Kreuzer
de96a18171 [NDK]
Add FIBER_CONTEXT_EIP constant

svn path=/trunk/; revision=47231
2010-05-16 00:24:07 +00:00
Amine Khaldi
077ed6cb51 [PSDK]
- Bring back TOKEN_STATISTICS alignment inclusions.

svn path=/branches/header-work/; revision=47230
2010-05-15 22:50:07 +00:00
Sylvain Petreolle
b9c51834ec Remove incorrect reference to winsock.h.
svn path=/trunk/; revision=47229
2010-05-15 22:44:31 +00:00
Christoph von Wittich
5e38f41aae [RBUILD]
delete outdated codeblocks backend (codeblocks does not support all features needed to build ros)

See issue #5381 for more details.

svn path=/trunk/; revision=47227
2010-05-15 20:37:24 +00:00
Michael Martin
9e2710ab67 [win32k]
- Change the first parameter type from HWND to PWINDOW_OBJECT for IntKillTimer as it makes more sense.
Activate IntSetTimer, already done by James.
- Add flag TMRF_DELETEPENDING. Destroy timers when this flag is set in ProcessTimers to allow any timers that have expired to have the WM_SYSTIMER/WM_TIMER messages posted to message queue before being destroyed.
- Fix error in FindTimer, it was always returning a Timer and it needed to return NULL if the specified timer did not exist.
- Fix error in PostTimerMessages, need to handle cases where the Window object is NULL which occurs when requesting messages for any window belonging to the thread. 
- In co_IntPeekMessage, simply call PostTimerMessages to have WM_SYSTIMER/WM_TIMER messages posted for expired timers. Remove call to old timer message handling.
- TODO: Code using the old timer implementation needs removed.
- Fixes bugs #2393, #3634, #2835. Commit dedicated to JT and Mr. Roboto.

svn path=/trunk/; revision=47226
2010-05-15 19:40:33 +00:00
Johannes Anderwald
0e5b61c534 [SYSAUDIO]
- Don't build the pin descriptor as this will make problems with dynamic audio devices which dynamically adjust their audio pins
- Remove dead code

svn path=/trunk/; revision=47225
2010-05-15 19:05:58 +00:00
Michael Martin
33284498ec [win32k]
- The description and changes made regarding WM_ACTIVATEAPP messages in r47126 were partially incorrect, the code was mostly correct.



svn path=/trunk/; revision=47224
2010-05-15 18:30:05 +00:00
Johannes Anderwald
425201146c [PORTCLS]
- Disable debugging

svn path=/trunk/; revision=47223
2010-05-15 17:57:09 +00:00
Johannes Anderwald
94c135b485 [PORTCLS]
- Pass subdevice interface to PcNewRegistryKey
- Fix multiple bugs in PcNewRegistryKey such as
- If key type is GeneralRegistryKey, the function is supposed to create a new key
- If key type is HwProfileRegistryKey, the type must be or'd with PLUGPLAY_REGKEY_DEVICE
- Implement opening keys of type DeviceInterfaceRegistryKey
- Free key handle if there is not enough memory to create a registry key object
- Add more comments

svn path=/trunk/; revision=47222
2010-05-15 17:17:05 +00:00
Amine Khaldi
fc4066c4cc [PSDK]
- ntsecpkg.h : merge recent changes from trunk.
- winnt.h : Add missing PROCESSOR_NUMBER, introduce _ANONYMOUS_UNION in NT_TIB{32,64}, update WELL_KNOWN_SID_TYPE & SID_NAME_USE, ULONG -> DWORD in LDT_ENTRY and TOKEN_GROUPS_AND_PRIVILEGES and a consistent formatting for the rest.
[FREELDR]
- setupldr.rbuild : merge recent changes from trunk.

svn path=/branches/header-work/; revision=47221
2010-05-15 16:53:39 +00:00
Eric Kohl
e5b5b48170 [WINLOGON]
- Add a hack to fix the APPDATA environment variable. This hack will be removed after bug #5372 has been fixed. Fixes bug #4102.

svn path=/trunk/; revision=47220
2010-05-15 16:02:14 +00:00
Jérôme Gardou
31dfebe9a7 Revert part of 47209. Hope this time is the good one
svn path=/trunk/; revision=47218
2010-05-15 09:59:42 +00:00
Cameron Gutman
ad9cb3cc34 [NTOSKRNL]
- Fix a bug that broke /NODEBUG and /CRASHDEBUG

svn path=/trunk/; revision=47216
2010-05-15 03:21:54 +00:00
Timo Kreuzer
d3f8544eca [NTOSKRNL]
Fix paramter parsing in KdbpGetCommandLineSettings. Fixes KDSERIAL

svn path=/trunk/; revision=47215
2010-05-15 03:02:10 +00:00
Timo Kreuzer
8653f56515 [OLEAUT32_WINETEST]
Skip crashing tests test_apm and test_enhmetafile

See issue #5396 for more details.

svn path=/trunk/; revision=47214
2010-05-15 01:30:24 +00:00
Timo Kreuzer
1e9beb6809 [WIN32CSR]
Fix display of harderror message box for STATUS_UNHANDLED_EXCEPTION

svn path=/trunk/; revision=47213
2010-05-15 01:05:09 +00:00
Timo Kreuzer
e093be6897 [GDIPLUS_WINETEST]
Comment out GdipDisposeImage in 3 places, where it was crashing

See issue #5395 for more details.

svn path=/trunk/; revision=47212
2010-05-15 00:12:14 +00:00
Jérôme Gardou
9993f9c793 [ROSTESTS]
- something went wrong with previous commit...


svn path=/trunk/; revision=47211
2010-05-14 23:21:04 +00:00
Jérôme Gardou
e23160a43c [ROSTESTS]
- more tests for direct DC creation/deletion

svn path=/trunk/; revision=47210
2010-05-14 23:19:16 +00:00
Timo Kreuzer
88e3cf6fbe [GDI32_WINETEST]
Skip test in gdi32_winetest metafile, that crashes

See issue #5392 for more details.

svn path=/trunk/; revision=47209
2010-05-14 23:13:13 +00:00
Gregor Schneider
9863fd3445 [NEWINFLIB] Fix an off-by-one bug, which lead to the crash of mkhive after parsing ~3 files on Windows or ~5 files on Linux
See issue #5338 for more details.

svn path=/trunk/; revision=47208
2010-05-14 21:20:40 +00:00
Gregor Schneider
c7721ce942 [MKHIVE]
- Active the planned cleanup function to motivate people to actually free resources: mkhive currently leaks ~500kb of memory after a usual run
- Improve debug print

svn path=/trunk/; revision=47207
2010-05-14 21:13:33 +00:00
Gregor Schneider
d28f0be86e [INFLIBNEW] Free allocated memory on error
svn path=/trunk/; revision=47206
2010-05-14 20:56:43 +00:00
Amine Khaldi
eeb2e93d2d [ARMDDK]
- We don't really need ExiTryToAcquireFastMutex declaration here.
[HAL]
- Fix export for ExTryToAcquireFastMutex. On x86 builds it should forward to ntoskrnl's ExiTryToAcquireFastMutex, arm has it's own implementation. Patch by Timo.

svn path=/branches/header-work/; revision=47204
2010-05-14 20:15:25 +00:00
Amine Khaldi
0756bc5fd0 [FREELDR]
- freeldr.rbuild : Apply a consistent formatting.
- Add the missing AcpiPresent variable to macharm.c
- Exclude a couple of code paths when building for ARM.
[ARMDDK]
- Add missing ExiTryToAcquireFastMutex declaration.

svn path=/branches/header-work/; revision=47202
2010-05-14 18:49:42 +00:00
Amine Khaldi
5b939ffc3c [NTOSKRNL]
- Fix ExInterlockedPopEntryList and ExInterlockedPushEntryList, they were not working at all. Brought to you by Timo ;)

svn path=/branches/header-work/; revision=47201
2010-05-14 18:40:23 +00:00
Gregor Schneider
12eb6e6cba [MKHIVE] Check parameters before accessing them, update usage information
svn path=/trunk/; revision=47200
2010-05-14 17:46:14 +00:00
Eric Kohl
449bd3cb85 [MSGINA]
- Fix the order of controls to match the expected tab order. This makes the focus stop jumping around like crazy when you press the Tab key.

svn path=/trunk/; revision=47199
2010-05-14 17:12:35 +00:00
Eric Kohl
029c6e67a9 [WINLOGON]
- Store all environment variables that were passed from msgina.dll in the volatile environment key.
- Add the APPDATA environment variable to the volatile environment. Unfortunately SHGetFolderPath does not seem to expand the appdata path. Bug or Feature??
- Create the environment block for the shell process after the volatile environment key has been filled, so its variables are included.
- Yet another step to fixing bug #4102.

svn path=/trunk/; revision=47198
2010-05-14 17:08:20 +00:00
Johannes Anderwald
0801068a35 [PORTCLS]
- Don't request initializing delayed service request as this is the task of the miniport driver
- Reimplement the service group object:
- Use the initialized timer object when RequestService is called
- Fix possible race conditions when adding / removing a service sink by protecting it with a lock
- Acquire the service group list lock when executing the shared dpc routine

svn path=/trunk/; revision=47197
2010-05-14 15:47:00 +00:00
Amine Khaldi
d052e38953 [INTRIN_ARM]
- Implement __yield and __break arm intrinsics.
[DDK]
- Relax INTERLOCKED_RESULT conditional definition.
[PSDK]
- Fix some nasty structure misalignments.
- Fix YieldProcessor definition for ARM.
[ARMDDK]
- Add several missing definitions.

svn path=/branches/header-work/; revision=47196
2010-05-14 11:45:14 +00:00
Cameron Gutman
ebb491824a [IPHLPAPI]
- Implement GetAdaptersAddresses
- Fixes the last iphlpapi winetest

svn path=/trunk/; revision=47195
2010-05-14 01:30:37 +00:00
Eric Kohl
0ca885a586 [USERENV]
CreateEnvironmentBlock: Also add the volatile environment values to the users environment block.

svn path=/trunk/; revision=47194
2010-05-13 20:38:16 +00:00
Sir Richard
df33b38ed0 [NTOS]: Fix definition of unused MI_MAKE_SOFTWARE_PTE macro.
[NTOS]: Correctly setup the PFN entries for freshly allocated paged pool pages. Fixes a problem where the page could've still had stale/garbage data.
[NTOS]: Add some extra assertions in the code to catch memory corruption and detect invalid logic.
[NTOS]: Fix some typos in the code (comments/whitespace).
[NTOS]: Make the dreaded page fault message that breaks paged pool on some systems more verbose for future debugging.

svn path=/trunk/; revision=47189
2010-05-12 22:47:46 +00:00
Eric Kohl
931fc122a0 [MSGINA]
Use WLX_PROFILE_V2_0 instead of WLX_PROFILE_V1_0 and create an environment string that is filled with a single environment variable. WIP for bug #4102.

svn path=/trunk/; revision=47187
2010-05-12 22:10:07 +00:00
Sir Richard
3a80da9a3e [NTOS]: When grabbing physically contigous pages from the zero or free list, make sure to re-initialize their PFN entries correctly, since their data might be stale. Fixes potential weird memory corruption bugs.
[NTOS]: Physically contiguous memory allocations are not guaranteed to be zeroed, so do not zero the pages.
[NTOS]: When allocating contigous memory, mark the PFN entries appropriately after mapping the I/O ranges.
[NTOS]: When freeing contiguous memory, assert that all the freed pages correspond to PFN entries that we expect to have allocated for this purpose. Detects (not neccessarily fixes) memory corruption issues in contiguous memory allocations.
[NTOS]: These changes mostly affect certain network card and sound card systems/real hardware, they fix possible bugs and detect corruption that was otherwise going by unnoticed.

svn path=/trunk/; revision=47186
2010-05-12 21:37:19 +00:00
Gregor Schneider
b320b4bcb1 [SHELL32] Amendment to r47182: GetAsyncKeyState -> GetKeyState (thanks to Giannis), simplify
svn path=/trunk/; revision=47185
2010-05-12 21:11:24 +00:00
Sir Richard
547dbfc5cf [NTOS]: Move MiFindContiguousPages to ARM3/contmem.c since I don't know what it was doing in freelist.c. No code change.
svn path=/trunk/; revision=47184
2010-05-12 20:57:21 +00:00
Sir Richard
11453cf565 [NTOS]: Add assertions to the paged pool and demand zero page faults, to catch possible errors and corruptions. These paths are not yet taken in today's builds, so they do not affect any runtime code.
[NTOS]: Add assertions regarding the portability of certain code, which will need changes on ARM/x64. These should probably be C_ASSERT's but I don't want to break Timo's build.
[NTOS]: Define MM_NOIRQL (found in assertions) instead of magical -1.
[NTOS]: Add MI_IS_SESSION_PTE macro.
[NTOS]: Export the MiXxxPte variables.
[NTOS]: Fix some typos in comments.


svn path=/trunk/; revision=47183
2010-05-12 20:48:15 +00:00
Gregor Schneider
77bbb3cacb [SHELL32] Add initial ctrl+c/v handling (WIP for bug #4850)
svn path=/trunk/; revision=47182
2010-05-12 20:41:55 +00:00
Gregor Schneider
0c0d737b5d [SHELL32] Remove misplaced function header
svn path=/trunk/; revision=47181
2010-05-12 20:37:48 +00:00
Gregor Schneider
7b762e3b4e [SHELL32] Improve debug print by printing text
svn path=/trunk/; revision=47180
2010-05-12 19:54:02 +00:00
Gregor Schneider
0b2f076246 [USRMGR]
- Fix the friends of the bug of the month

svn path=/trunk/; revision=47179
2010-05-12 19:19:44 +00:00
Sir Richard
47b27e38f3 [NTOS]: Fix MiInsertPageInFreeList, it was using the ARM3 PFN Database macro, even though we are still using the Mm PFN Database. Also, it was lacking the code to notify the zero-page thread, and to increase available pages.
svn path=/trunk/; revision=47178
2010-05-12 19:11:49 +00:00
Eric Kohl
6899eeb7b6 [WINLOGON]
Fixed bug of the month. I'm surprised that winlogon worked at all.

svn path=/trunk/; revision=47177
2010-05-12 19:10:04 +00:00
Amine Khaldi
b596fbada4 [XDK]
- Add RESULT_ZERO, RESULT_NEGATIVE and RESULT_POSITIVE definitions for other architectures than X86
[DDK]
- Update ntddk.h to reflect XDK changes.

svn path=/branches/header-work/; revision=47176
2010-05-12 18:43:23 +00:00
Sir Richard
291fb765f3 [NTOS]: Fix 4MB assumptions and use PDE_MAPPED_VA instead, which accurately describes the address space mapped by a PDE (which is different on PAE, x64, ARM, etc).
svn path=/trunk/; revision=47175
2010-05-12 18:42:05 +00:00
Sir Richard
944fe46d70 [NTOS]: User pages are not used until Phase 1, they should not be setup in Phase 0. Fixes premature initalization.
svn path=/trunk/; revision=47174
2010-05-12 18:39:09 +00:00
Sir Richard
926bd0522f [NTOS]: Compute MiHighestUserPte, MiHighestUserPde, MiSessionImagePteStart, MiSessionImagePteEnd, MiSessionBasePte, MiSessionLastPte since these internal variables did not exit yet. Useful for debugging and also future PFN support. Just computes some values, no behavior changes.
svn path=/trunk/; revision=47173
2010-05-12 18:36:15 +00:00
Sir Richard
133872d3e7 [NTOS]: MmSystemPageDirectory is an array of page directories, not just a value. On x86 there's just one page directory, but that's not the case on other architectures/PAE, so fix this bug.
svn path=/trunk/; revision=47172
2010-05-12 18:33:18 +00:00
Amine Khaldi
1f071790b9 [KDCOM]
- Include ntifs.h instead of ntddk.h (and don't include both at the same time).

svn path=/branches/header-work/; revision=47171
2010-05-12 18:19:05 +00:00
Amine Khaldi
e360db369f [XDK]
- Remove RESULT_NEGATIVE, RESULT_ZERO and RESULT_POSITIVE from amd64/ke.h
- INTERLOCKED_RESULT isn't x86 only.
[DDK]
- Update wdm.h and ntddk.h to reflect the XDK changes.

svn path=/branches/header-work/; revision=47170
2010-05-12 13:02:44 +00:00
Aleksey Bragin
c6ddd201c7 [HALX86]
- Revert changes to HalpGetPCIData made in r47162. There is no need to introduce ReactOS-specific behavior of this function. It's much better to aim real NT compatibility, and develop your drivers against NT first and only then hack ReactOS.
- Changes to buses scanning are left as they are.

svn path=/trunk/; revision=47169
2010-05-12 09:45:43 +00:00
Aleksey Bragin
cdf0478255 [USBDRIVER]
- Implement deregistering HCD in a device manager. Now, the HCI which failed to initialize will be properly freed without calling NULL pointer or crashing with freed memory access.
See issue #4813 for more details.

svn path=/trunk/; revision=47168
2010-05-12 09:42:07 +00:00
Aleksey Bragin
e4dec4c4cb - Revert 47139 by cgutman: Don't try to be smarter than usbdriver's author. He especially put registering HCD interface before so that any error handling function would work correctly and free up allocated resources. Fixes one crash in VMWare. A proper solution for the problem which 47139 tried to "fix" will be committed next.
svn path=/trunk/; revision=47167
2010-05-12 09:34:36 +00:00
Jeffrey Morlan
cdc3b26818 commit file missing from r47165
svn path=/trunk/; revision=47166
2010-05-12 04:01:16 +00:00
Jeffrey Morlan
630ecdce7c [KERNEL32] [WIN32CSR] Implement SetConsoleScreenBufferSize. FAR Manager now works again.
svn path=/trunk/; revision=47165
2010-05-12 03:34:02 +00:00
Timo Kreuzer
acb61e7d31 [FREELDR] Fix uninitialized variable warning. (Does anyone know why the warning isn't treated as an error?)
[SETUPLDR] Use mini_hal only on i386 builds

svn path=/trunk/; revision=47164
2010-05-12 03:29:08 +00:00
Jeffrey Morlan
3ffc64878c [WIN32CSR] Get rid of dynamic "LineBuffer": it wasn't being resized properly in all cases, causing corruption of Win32CsrApiHeap. Replaced with fixed buffer (painting a line with multiple TextOutW calls if necessary).
svn path=/trunk/; revision=47163
2010-05-12 03:03:12 +00:00
Cameron Gutman
0a6ca40598 [HAL]
- Return the correct value if the PCI slot number is invalid
- Use the bus number from the PCI BIOS instead of doing a manual probe if we can because it is much more accurate (our probing code doesn't detect buses without devices present)
- Don't probe for devices at invalid locations on PCI type 2 buses
- Check for a valid bus number so we don't return the wrong value

svn path=/trunk/; revision=47162
2010-05-12 02:34:04 +00:00
Sir Richard
c5e12bcf40 [NTOS]: We might get page faults before memory areas are setup, since so much ARM3 work now gets done before the memory areas are ready to go. Since obviously these faults cannot be caused by non-ARM3 Mm, we assume them to be ARM3 faults (as long as they happened in KSEG0_BASE). Fixes a bug where early page faults in ARM3 PTEs would get treated as non-ARM3 faults and fail.
svn path=/trunk/; revision=47161
2010-05-12 00:40:23 +00:00
Sir Richard
f61cf60f1b [NTOS]: HEADERS: Add PDE_TOP. It is defined for IA64/AMD64 but not for i386 (in the public headers). Add a note that these addresses are bogus on PAE systems.
svn path=/trunk/; revision=47160
2010-05-12 00:38:46 +00:00
Sir Richard
b5a09b26c2 [NTOS]: Restore previous correct ASM behavior of checking for success codes, not only STATUS_SUCCESS, after a page fault. For example, a demand zero fault returns STATUS_PAGE_FAULT_DEMAND_ZERO upon success, and the new C code would treat it as a failure. Fixes a bug.
svn path=/trunk/; revision=47159
2010-05-12 00:36:52 +00:00
Cameron Gutman
449b78ccc5 [NTOSKRNL]
- Fix a typo 
- Safe mode with networking has an OptionValue of 2 not 1
- Currently unused (for now ;))

svn path=/trunk/; revision=47157
2010-05-11 00:36:56 +00:00
Cameron Gutman
609171f4ac [AFD]
- Fix signaling socket termination events on disconnect
- Fixes bug 4951

svn path=/trunk/; revision=47156
2010-05-10 21:14:26 +00:00
Amine Khaldi
cf73dc7621 - Sync with trunk up to r46941.
[VMWINST]
- Rename FileExists() to DoesFileExist() to avoid clashing with the real API.

svn path=/branches/header-work/; revision=47155
2010-05-10 19:04:41 +00:00
Daniel Reimer
7335bf8947 Update the rapps Database to a valid FireFox Link once more...
+ update all apps to the recent versions

svn path=/trunk/; revision=47154
2010-05-10 18:27:07 +00:00
Amine Khaldi
f14be1ee47 [PSDK]
- Fix PREVENT_MEDIA_REMOVAL redefinition.
- Add some missing winnt.h and winuser.h definitions.
[NDK]
- Remove some redundant definitions (that now exist in winnt.h)
[KERNEL32]
- Remove a useless undef (although the hack above it still remains for now)
[ADVAPI32]
- Fix some TraceMessage params types.

svn path=/branches/header-work/; revision=47153
2010-05-09 22:53:41 +00:00
Eric Kohl
76a4723fa9 [INF]
- Add 'PortSubClass' values for serial and parallel ports.

svn path=/trunk/; revision=47152
2010-05-09 21:58:04 +00:00
Daniel Reimer
2699cdc3de Update WinFile to Wine 1.1.44
svn path=/trunk/; revision=47151
2010-05-09 20:23:07 +00:00
Sir Richard
eaaf713f3d [NTOS]: Acquire PFN lock before setting up hyperspace PTE/page.
[NTOS]: Flush TLB after setting up hyperspace.
[NTOS]: Use new MiRemoveAnyPage interface instead of MmAllocPage(MC_SYSTEM), as the first test of the new Page API/ABI.
[NTOS]: Add support for creating software PTEs.

svn path=/trunk/; revision=47150
2010-05-09 18:17:53 +00:00
Sir Richard
af06182171 [NTOS]: Implement MiRemoveAnyPage and MiRemovePageByColor, but only using the list heads, and not the color list heads. Unused.
[NTOS]: Fixup unused MiInsertPageInFreeList variables ot match the other functions (ColorTable vs ColorHead).

svn path=/trunk/; revision=47149
2010-05-09 18:12:50 +00:00
Sir Richard
a38d98d504 [NTOS]: At times, pages may be removed from the zero or free page list, but without being initialized as part of the PFN database, such that their PageLocation has not changed. However, we can detect these pages because their link pointers will be NULL, meaning they're not _really_ free or zeroed. Use this enhanced check when verifying if a page is in use or not, and additionally triple-check by making sure the reference count is zero. This now matches the Windows checks. We also consider Standby pages (not yet implemented) as usable, since we can always steal them.
svn path=/trunk/; revision=47148
2010-05-09 18:06:38 +00:00
Gregor Schneider
b6b00740ca [INPUT]
- Reorder keyboard layouts in the registry after one was deleted
- Fixes changing keyboard layouts from regional options
See issue #3317 for more details.

svn path=/trunk/; revision=47147
2010-05-09 15:02:58 +00:00
Johannes Anderwald
9cb27f40af [WIN32CSR]
- Add primitive resizing support and automatic scrolling support
- Patch by Adam Kachwalla (IRC:Crocodile)

See issue #2622 for more details.

svn path=/trunk/; revision=47146
2010-05-09 13:39:48 +00:00
Johannes Anderwald
28f11ad5f1 [CONSOLE]
- Store console changes when screen buffer / window size changes
- Mark property sheet as changed when color control changes

svn path=/trunk/; revision=47144
2010-05-09 13:12:21 +00:00
Michael Martin
786f5a19d7 [win32k]
- When message are sent without waiting a reply (non-queued messages) the message queues are referenced and dereferenced in the call. 
Message removal and cleanup functions for queues expected a reference on the queue. Add checks to determine if the message is a non-queued message and if so release memory for those that had pointers and more importantly skip dereferencing the queues. Possibly fixes random crashes and memory leaks.

svn path=/trunk/; revision=47142
2010-05-09 12:27:57 +00:00
Daniel Reimer
330de811a7 Bug 5355: [PATCH] cacls: Add Japanese resource by Katayama Hirofumi
Bug 5371: TRANSLATION: Italian translation updates by Paolo Devoti
Bug 5337: PATCH: Some kernel32 lang updates (de-DE updated, others fixed) by forenkrams@tuxproject.de
Bug 5366: TRANSLATION: Czech translation update by Radek Liska

svn path=/trunk/; revision=47141
2010-05-09 12:14:25 +00:00
Cameron Gutman
e47ef16223 [USBDRIVER]
- Register the device with the device manager only after it has been successfully allocated to avoid a crash
- A device that failed in xhci_alloc would never get deregistered from the device manager so it would crash when it entered xhci_start with a partially set up device extension
- Define release_adapter to HalPutDmaAdapter to fix a DMA adapter leak
[HAL]
- Export HalPutDmaAdapter

svn path=/trunk/; revision=47139
2010-05-09 11:18:16 +00:00
Gregor Schneider
428dff1a79 [WIN32K]
- Check the supplied scancode instead of the state buffer whether a key is up
- Fixes the calculator keyboard input regression introduced with r35117
- Ref: http://www.osronline.com/ddkx/w98ddk/keycnt_4ilz.htm and wine implementation
See issue #3727 for more details.

svn path=/trunk/; revision=47138
2010-05-08 22:26:48 +00:00
Cameron Gutman
1bd675f802 [USBDRIVER]
- Fix an off-by-one error in the probing code
- Scan all PCI buses instead of just the first two
- Fix a horrible bug that resulted in reinitializing EHCI controllers as UHCI controllers which caused a crash on VirtualBox (with _MULTI_UHCI)
- Implement support for multiple EHCI controllers and enable support for multiple UHCI controllers (greatly increases compatibility with real hardware because the first controller detected is often internal)

svn path=/trunk/; revision=47136
2010-05-08 21:53:57 +00:00
Aleksey Bragin
438916ee96 - Fix release build.
svn path=/trunk/; revision=47135
2010-05-08 20:38:58 +00:00
Kamil Hornicek
006a12e270 [WIN32K]
- Bring back support for RLE compressed bitmaps.
- Merge the decompress functions for 4bb and 8bpp bitmaps to one generic function.
- Simplify SURFMEM_bCreateDib a bit by not allowing PNG/JPEG compression at all.
See issue #5276 for more details.

svn path=/trunk/; revision=47134
2010-05-08 18:09:45 +00:00
Timo Kreuzer
bfe6479cf7 Revert r47130, it was already comitted.
svn path=/trunk/; revision=47132
2010-05-08 16:42:03 +00:00
Timo Kreuzer
2545e83084 [w32knapi}
Patch by Jerome Gardou: add some more tests for NtGdiDeleteObjectApp

svn path=/trunk/; revision=47130
2010-05-08 16:38:05 +00:00
Eric Kohl
e03efb63b2 [WINLOGON]
- Move environment creation to a separate file.
- Impersonate the new user and create the 'Volatile Environment' key for the new user.

svn path=/trunk/; revision=47129
2010-05-08 16:30:56 +00:00
Gregor Schneider
0963ef8f61 Add some win32k/gdi DC tests created by Jerome Gardou
svn path=/trunk/; revision=47128
2010-05-08 16:27:36 +00:00
Sylvain Petreolle
4545e038a2 Disable test_GetLongPathNameW() in kernel32:path test for now.
Fixes testbot crash, bug 5370


svn path=/trunk/; revision=47127
2010-05-08 16:27:15 +00:00
Michael Martin
5678dca446 [win32k]
- Modify how non-queued messages are send that originate from the Win23k subsystem. 
Non-queued messages must go directly to the windows WNDPROC and not through the message pump (previews ROS behavior). 
More importantly sending these messages must not cause the sending thread to block waiting for a reply.
- Add a messaging handling function that always sends message from Win32k to the windows thread without waiting. 
This will also allow the implementation of message call back later.
- Modify PackParam and UnpackParam to accept a BOOL value to determine whether LParam needs to be allocated from NonPagedPool. 
Use with new message handling as if message sent to another thread have any pointers they must be allocated from NonPagedPool.
- Fixed broken logic in can_active_window function and co_WinPosShowWindow.
- Fixed broken logic in co_IntSendActivateMessages. 
The WM_ACTIVATEAPP message was being sent to every window belonging to the desktop twice.
Once with flag saying window was activated and again with deactivated.
- These changes should fix bugs #969, #3171, #4501, #4676, #4677, #4948.

svn path=/trunk/; revision=47126
2010-05-08 15:49:02 +00:00
Gregor Schneider
4b9b7d580f [EXPLORER]
- Use proper buffer size, font type and an arbitrary high system time to create the size of the systray clock window
- Fixes clock clipping
See issue #2320 for more details.

svn path=/trunk/; revision=47125
2010-05-08 15:33:40 +00:00
Timo Kreuzer
f820fe7a43 [WIN32K]
Fix broken parameter passing from EngMaskBitBlt to (Alpha)BltMask. It was passing the wrong surface and the wrong point. Rename some parameters to reflect what their usage is. Add ASSERTs to make sure noone passes useless parameters. Fixes crippled text in startmenu.
The whole code is broken by design, anyway it will go away, once the new text rendering code is done.
See issue #4379 for more details.

svn path=/trunk/; revision=47124
2010-05-08 15:30:59 +00:00
Cameron Gutman
f0d7ecd148 [PSDK]
- Replace WINE's commctrl.h with mingw-w64's commctrl.h
- Move WINE-specific hacks to reactos/wine/commctrl.h
- Patch by Timo Kreuzer
- Fixes bug 4958

svn path=/trunk/; revision=47123
2010-05-08 14:47:42 +00:00
Eric Kohl
3c586a19b2 [WINLOGON]
Add missing newline to a TRACE message.

svn path=/trunk/; revision=47122
2010-05-08 13:07:40 +00:00
Timo Kreuzer
4c417355a6 Disable GDI batch code for regions. "Fixes" broken drawing for AcrobatReader. Yes, it's a "band aid over a bullet wound". I hope the man with the gun is a surgeon, too.
svn path=/trunk/; revision=47121
2010-05-08 01:17:46 +00:00
Eric Kohl
3f5ef48069 [USERENV]
- Create the environment variables 'ProgramFiles' and 'CommonProgramFiles' from the registry.

Fixes bug #4008.
See issue #2972 for more details.

svn path=/trunk/; revision=47116
2010-05-07 00:17:04 +00:00
Aleksey Bragin
a2464ecca7 [KERNEL32]
- Code committed in revision 846 was lazily initializing command line options with a first call to GetCommandLine. However, this is not really thread-safe. Move initialization to DLL_PROCESS_ATTACH, where it should actually happen.
See issue #5347 for more details.

svn path=/trunk/; revision=47113
2010-05-06 10:50:26 +00:00
Aleksey Bragin
c47421927e [ADVAPI32]
- Katayama Hirofumi: Use a real computer name instead of an empty string when reporting events in ReportEventA and W.
See issue #5358 for more details.

svn path=/trunk/; revision=47112
2010-05-06 10:09:33 +00:00
Aleksey Bragin
50367b3dac [ADVAPI32]
- Katayama Hirofumi: Create GUID instead of hardcoding to 0 every time.
See issue #5364 for more details.

svn path=/trunk/; revision=47111
2010-05-06 09:44:59 +00:00
Cameron Gutman
6b6c137341 [NTOSKRNL]
- Don't enable the kernel debugger if the DEBUG option was not set
- Fixes displaying the BSOD when not booting in debug mode (broken in r41534)

svn path=/trunk/; revision=47110
2010-05-06 01:45:10 +00:00
Cameron Gutman
a9e356ef1d [VIDEOPRT]
- Also check for the BASEVIDEO option set and return true in that case also
- Fixes a bug with boot time (F8) options on my WC

svn path=/trunk/; revision=47109
2010-05-05 23:16:17 +00:00
Cameron Gutman
8481a4f1b9 [NTOSKRNL]
- Implement Ke386IoSetAccessProcess, Ke386SetIoAccessMap, and Ke386QueryIoAccessMap
[NDK]
- Add definition of KIO_ACCESS_MAP

- Patch by Samuel Serapion
- Fixes bug 2641

svn path=/trunk/; revision=47108
2010-05-05 23:06:32 +00:00
Eric Kohl
ac293dd5d6 [FORMATTING]
No code changes.

svn path=/trunk/; revision=47107
2010-05-05 22:53:01 +00:00
Eric Kohl
51e6829b67 [USERENV]
- Create 'Default User' and 'All Users' directories without postfix and append a postfix only if they already exist.
- Create the user account directory without a prefix and append a prefix if the directory already exists.
- Acquire the restore privilege before unloading a hive and remove it after unloading the hive.

Patch is based on Gabriel Ilardi's patch. Fixes bug #2972.

svn path=/trunk/; revision=47106
2010-05-05 22:30:14 +00:00
Aleksey Bragin
751c365e6e [MSTSC]
- Katayama Hirofumi: Remove temporary tchar.h inclusion and usage of _tcslen (replaced with lstrlen).

See issue #5360 for more details.

svn path=/trunk/; revision=47105
2010-05-05 19:00:13 +00:00
Aleksey Bragin
4b382e5846 [FONTVIEW]
- Katayama Hirofumi: Redraw the window when string is set.
See issue #5357 for more details.

svn path=/trunk/; revision=47104
2010-05-05 18:54:36 +00:00
Giannis Adamopoulos
e3ce00b76b [win32k]
-Fix sending WM_KILLFOCUS when we give focus to a window of a different thread

Fixes bugs 1546 and 1603

svn path=/trunk/; revision=47103
2010-05-05 10:08:23 +00:00
Jeffrey Morlan
79121eccea [NTOSKRNL] In kdbg 'thread list', don't try to read from the kernel stack if there isn't one. (Bug 5318)
svn path=/trunk/; revision=47102
2010-05-04 23:17:30 +00:00
Johannes Anderwald
950bbde105 [SHELL32]
- Use target path when there is no icon path specified

svn path=/trunk/; revision=47100
2010-05-04 08:28:42 +00:00
Eric Kohl
dbfa8cfb54 [SETUP]
- Don't call InitializeProfiles() twice. This is one part of the fix for bug 2972. Patch by Gabriel Ilardi.

svn path=/trunk/; revision=47099
2010-05-03 22:15:53 +00:00
Cameron Gutman
c751f4300a [NTOSKRNL]
- Fix a typo that results in ISRs being called at an unsafe IRQL (Interrupt->Irql instead of Interrupt->SynchronizeIrql) in certain situations (when Interrupt->Irql < Interrupt->SynchronizeIrql) that can result in ISR synchronization issues

svn path=/trunk/; revision=47098
2010-05-03 22:03:15 +00:00
Johannes Anderwald
4b714650f4 [SHELL32]
- Show icons / folders from AllUsers\Desktop directory
- Fixes bug 4289

svn path=/trunk/; revision=47097
2010-05-03 19:26:12 +00:00
Amine Khaldi
cd5c660bf9 Revert the sync.
We only can safely sync up to r46941.

svn path=/branches/header-work/; revision=47096
2010-05-03 16:42:07 +00:00
Amine Khaldi
69b36d050f Sync with trunk head (part 1 of 2)
svn path=/branches/header-work/; revision=47094
2010-05-03 12:54:59 +00:00
Amine Khaldi
daef20d74b - DriverEntry is ULONG.
svn path=/branches/header-work/; revision=47092
2010-05-03 11:22:34 +00:00
Cameron Gutman
66482fa4f3 - Remove a forgotten debug print
svn path=/trunk/; revision=47091
2010-05-03 00:30:49 +00:00
Cameron Gutman
c55eb25c06 [NDIS]
- Provide a IRP_MJ_CREATE and IRP_MJ_CLOSE handler for miniport drivers so IoGetDeviceObjectPointer doesn't fail (and consequently, IoSetDeviceInterfaceState)

svn path=/trunk/; revision=47090
2010-05-03 00:28:29 +00:00
Cameron Gutman
2fce2d1d8f [NETCFGX]
- Remove the hack that set DI_NEEDRESTART for all network adapters which prevented us from starting the miniport driver
- Part of the fix for bug 3716

svn path=/trunk/; revision=47089
2010-05-03 00:06:31 +00:00
Timo Kreuzer
567bf0c188 [NTDLL]
The harderror message for STATUS_DLL_NOT_FOUND expects an ANSI dll name.

svn path=/trunk/; revision=47088
2010-05-02 23:26:06 +00:00
Cameron Gutman
31c846d674 [VGA]
- Return SPS_ACCEPT_NOEXCLUDE from DrvSetPointerShape because we completed the requested operation successfully
- Patch by Daniel Zimmermann
- Fixes bug 4347

svn path=/trunk/; revision=47087
2010-05-02 21:04:47 +00:00
Sylvain Petreolle
f2f1c844d9 Fix merge artifact.
svn path=/branches/aicom-network-branch/; revision=47086
2010-05-02 19:25:50 +00:00
Johannes Anderwald
dc3a34f70b [SETUPAPI]
- Store device settings in the "Device Parameters" key, as the kernel now does it too
- Fixes display of AC97 device in audio cpl

svn path=/trunk/; revision=47084
2010-05-02 19:19:28 +00:00
Michael Martin
91e196a64f [win32k]
- co_UserDestroyWindow: ThreadInfo->pDeskInfo->hShell holds the hWnd of the Shells Desktop Window. Set it to NULL if that windows is being destroyed. Fixes bug #4902.

svn path=/trunk/; revision=47082
2010-05-02 16:40:05 +00:00
Aleksey Bragin
2b896af128 Gabriel Ilardi:
- Update spanish %temp% path, part of bug 2482.

svn path=/trunk/; revision=47081
2010-05-02 11:47:19 +00:00
Michael Martin
d94aa6cafd [win32k]
- IntMouseInput: Add the state of virtual keys to wParam before calling MsqInsertSystemMessage. Fixes bug #5066.
- Add and Remove MK_XBUTTON1/2 flags to CurInfo->ButtonsDown vice XBUTTON1/2.
- Code based on patches in bug #5066.

svn path=/trunk/; revision=47080
2010-05-02 11:34:13 +00:00
Eric Kohl
2d25ad0d85 - Convert hivedef_i386.inf to Unicode.
- Add Strings-Sections for several languages and add TEMP_DIR string.

Please translate the TEMP_DIR string as this is the sollution for bug #2482.

svn path=/trunk/; revision=47079
2010-05-01 22:17:34 +00:00
Eric Kohl
1f235be55f Delete ANSI version.
svn path=/trunk/; revision=47078
2010-05-01 22:16:44 +00:00
Eric Kohl
f6cb22d04e Remove duplicate line. WRC complains about the control id already being in use.
svn path=/trunk/; revision=47077
2010-05-01 22:00:09 +00:00
Eric Kohl
4f7643e5b3 [CMLIB/NEWINFLIB/MKHIVE]
- Make cmlib, newinflib and mkhive use the Wine unicode lib instead of the host_wcsfuncs lib.
- Only the header file include/host/wcsfuncs.h is still used to map str*W functions to wcs* functions in WIN32 builds.
- Remove obsolete rtl functions.
- Make mkhive use the newinflib instead of inflib.

ATTENTION: This might break the build bot although it has been tested on Windows and Linux!!!

svn path=/trunk/; revision=47076
2010-05-01 20:17:11 +00:00
Michael Martin
35ff67b13e [win32k]
- Only call ExFreePool.. if Buffer is not NULL, which can occur if the Unicode String MessageNameUnsafe coming from user mode is incorrect. Fixes a bugcheck when using OllyDbg V2.0.

svn path=/trunk/; revision=47075
2010-05-01 13:32:38 +00:00
Timo Kreuzer
f4fd1abac0 [GDI32]
- Fix pointer arithmetics in the gdi batch code (&pTeb->GdiTebBatch.Buffer[0] is a PULONG, but pTeb->GdiTebBatch.Offset is a byte offset)
- To prevent this from happening again, refactor the code to use one common routine GdiAllocBatchCommand to do most of the stuff.
- Reenable gdi batch for SelectObject
- Fixes gdi handle leak, causes some drawing problems in Acrobat reader, but those are less critical and I'll investigate those.

svn path=/trunk/; revision=47074
2010-05-01 13:02:46 +00:00
Michael Martin
18af76559c [win32k]
- Revert the hack done in 47059 to apply a better solution. 
- co_IntCreateWindowEx: Add the WNDS2_WMCREATEMSGPROCESSED flag to state2 member of WND after sending the WM_CREATE message.
- By setting this flag it can be examined elsewhere to determine if the window was created successfully.
- co_UserDestroyWindow: Examine above mentioned flag to make sure the windows was created before calling hook procedure to inform of destroying window.

svn path=/trunk/; revision=47073
2010-05-01 12:02:23 +00:00
Johannes Anderwald
daff774a1a - Partly revert 470470
svn path=/trunk/; revision=47072
2010-05-01 10:47:23 +00:00
Eric Kohl
d771ba8ec6 [NEWINFLIB]
- Change Unicode string functions from wcs* to str*W because glibc (Linux build) provides the wcs* functions but they use a wchar_t size of 32 bits instead of the required 16 bits.
- Add a str*W to wcs* wrapper (infrosrtl.c) in order to use the wcs* function for the WIN32 build.
- Add required str*W functions to the host library.

ATTENTION: This might break the build bot although it has been tested on Windows and Linux!!!

svn path=/trunk/; revision=47071
2010-05-01 10:43:39 +00:00
Johannes Anderwald
06ef98d273 [WIN32K]
- Add an assert to PostTimerMessages to catch null pointer windows
- Add another assert to catch special windows (Window == 1)
- Improve check if the window is '1'

svn path=/trunk/; revision=47070
2010-05-01 10:42:45 +00:00
Johannes Anderwald
a0790104cc [WIN32K]
<bug>
- The timer implementation uses a bitmap to store window-less timers. As an optimization to find the first free index, it uses the variable "HintIndex" which points to the first timer index. In order to find the next free index, the RtlFindClearBitsAndSet function is used. When a new timer is allocated, the "HintIndex" variable is increased, which increases the search offset. Now if more than NUM_WINDOW_LESS_TIMERS (1024) timers are allocated, no more timers can be allocated because RtlFindClearBitsAndSet will claim no more index are available, because the free indexes are below the search offset. 
</bug>
<fix>
Everytime a timer gets freed, store the freed index in "HintIndex". As a result the timer implementation will always find a free timer index (when there is one)
</fix>

svn path=/trunk/; revision=47069
2010-05-01 09:55:16 +00:00
Cameron Gutman
e66431b123 [PCI]
- Store correct bus and slot information in resource lists that we give in response to IRP_MN_QUERY_RESOURCES and IRP_MN_QUERY_RESOURCE_REQUIREMENTS
- Fixes bug 4354

svn path=/trunk/; revision=47068
2010-05-01 01:52:47 +00:00
Timo Kreuzer
9bb0bed655 [WIN32K]
- Fix IntDumpHandleTable, it was very broken.

svn path=/trunk/; revision=47067
2010-04-30 22:48:43 +00:00
Timo Kreuzer
8dc269c258 [NTOSKRNL]
- Fix RtlWalkFrameChain to do usermode back traces for threads that are not system threads. Also use _SEH2_YIELD when leaving the SEH block.

svn path=/trunk/; revision=47066
2010-04-30 22:47:44 +00:00
Michael Martin
0409ef75e8 [win32k]
- When calling NtUserCallNextHookEx check that the current hook is not the first in the chain. If so don't call the hook proc and just return, as it has already been called and it makes no sense for the NextHook function to call the first hook proc. Fixes bugs #4461 and #4407.
- The previous commit claiming to fix bug #4461 was incorrect, it may have actually fixed bug #5320. Testers please test.

svn path=/trunk/; revision=47065
2010-04-30 11:23:17 +00:00
Cameron Gutman
174a4670ea [NTOSKRNL]
- Fix a horrible casting bug
- EventCategoryData1 is a pointer to a GUID not a pointer to a UNICODE_STRING
- Convert the GUID into a UNICODE_STRING properly by using RtlStringFromGUID and pass that string to RtlCompareUnicodeString
- Fix another bug which results in us sending EventCategoryHardwareProfileChange and EventCategoryTargetDeviceChange events to everyone registered for PnP notifications
- Fixes sending EventCategoryDeviceInterfaceChange notifications that happen after calling IoRegisterPlugPlayNotification

svn path=/trunk/; revision=47064
2010-04-29 22:35:49 +00:00
Timo Kreuzer
04c6b45023 [MSIMTF]
Silence debug spam

svn path=/trunk/; revision=47063
2010-04-29 20:51:28 +00:00
Benedikt Freisen
93baff6f05 [PAINT]
- angle rounding for lines and polygons when SHIFT key is pressed
- equal width and height for (rounded) rectangles and ellipses when SHIFT key is pressed
Based on a patch by Katayama Hirofumi, see #5285

svn path=/trunk/; revision=47062
2010-04-29 19:56:18 +00:00
Cameron Gutman
8e5ba15296 [INF]
- Comment out the service installation for VBE and VGA so the configuration set in first-stage won't get overwritten
- Nasty graphical glitches still remain in VGA mode
- Fixes bug 2073 and bug 4192

svn path=/trunk/; revision=47061
2010-04-29 19:20:32 +00:00
Timo Kreuzer
91a35b7ec1 [NTOSKRNL]
- On backtraces, print the address of the call instruction (assumed 5 bytes lentgh) instead of the return address, which in many cases does not make sense. (WinDbg does it this way, too)
- Fix Ke386SaveFpuState to store the fpu state in the buffer, but in the pointer to the buffer
- Anable Ke386SaveFpuState to save the floating point state in KiNpxHandler and KiTrap13Handler, so we know what error we got.
- Disable saving debug registers in the trap frame, as long as the kernel doesn't support this
- Fixes ntdll_winetest exception / OllyDbg freeze/reboot

See issue #5301 for more details.

svn path=/trunk/; revision=47060
2010-04-29 16:39:52 +00:00
Michael Martin
d34a8d86bc [win32k]
- Fix a problem where application that used WH_CBT hook procedures were receiving destroy window notification on windows that were never created. The window was never created because the application had returned a non zero value when it was notified of window creation, which effectively destroys the window and returns failure for window creation. See CBTProc Function on MSDN. Fixes bug #4461.

svn path=/trunk/; revision=47059
2010-04-29 13:41:32 +00:00
Giannis Adamopoulos
0ec839d544 [win32k]
- Do not do callbacks to user mode while holding a lock
- Fix when WH_MOUSE_LL and WH_JOURNALRECORD are called
See issue #4926 for more details.

svn path=/trunk/; revision=47058
2010-04-29 07:48:43 +00:00
Cameron Gutman
3ec3baec08 [NTOSKRNL]
- Rewrite IoOpenDeviceInterfaceRegistryKey using the same helper function that is used in IoGetDeviceInterfaces and IoSetDeviceInterfaceState to reduce complexity and chance of bugs (tested and confirmed working)
- Revert r46748
- Fixes bug #5321 (AC97)

svn path=/trunk/; revision=47057
2010-04-29 01:44:20 +00:00
Cameron Gutman
62b639c945 [NTOSKRNL]
- Fix length calculation of symbolic links with reference strings attached
- Fixes opening registry keys for symbolic links with reference strings (such as audio devices)

svn path=/trunk/; revision=47056
2010-04-28 20:06:28 +00:00
Sylvain Petreolle
0ddb991b14 Hardcode GeckoCabDir to C:\ReactOS.
the mshtml installer now wants a REG_SZ string for it, which excludes using %SystemRoot%.

Fixes bootcdregtest.

svn path=/trunk/; revision=47055
2010-04-28 19:15:17 +00:00
Eric Kohl
1a9d9f441c [MKHIVE/USETUP]
- Fix buffer size calculation for the parser.
- Do not try to execute an empty registry instruction
Patches by Roel Messiant.

- Stop the parser at the first NULL character.
Patch by me.

svn path=/trunk/; revision=47053
2010-04-28 11:35:34 +00:00
Cameron Gutman
9adb79a0d9 [FREELDR]
- Remove the useless function MachDiskNormalizeSystemPath
- Rewrite DiskGetBootPath to be much less hacky (but still not hack free)
- Freeloader doesn't have to be installed on multi(0)disk(0)rdisk(0)partition(1) (IDE primary master) anymore :)
- Freeloader successfully booted ROS after loading itself from multi(0)disk(0)rdisk(1)partition(1)

svn path=/trunk/; revision=47052
2010-04-28 03:07:21 +00:00
Cameron Gutman
5f783c4e2d [FREELDR]
- Set the partition count to 0 for a floppy drive so it can be told apart from a cd-rom drive
- Add a last-chance sector size detection algorithm based on the partition number
- Add the same detection code to the xbox code too (it is essentially the same as what was already there just with more comments)
- Change DiskNormalizeSystemPath so it doesn't try to "normalize" a floppy boot path
- Fixes bug #5233

svn path=/trunk/; revision=47051
2010-04-27 22:12:11 +00:00
Eric Kohl
d39102cd83 [MKHIVE]
- Add RegDeleteKeyW stub.
- Implement RegDeleteKeyA so that it calls RegDeleteKeyW.

svn path=/trunk/; revision=47050
2010-04-27 21:47:54 +00:00
Michael Martin
02c3f0fa12 [ntoskrnl/io]
- Check for null pointers before attempting to copy or free memory.

svn path=/trunk/; revision=47049
2010-04-27 13:41:37 +00:00
Michael Martin
60eddf5657 [ntoskrnl\mm]
- Fix a continuous loop bug in MiWriteProtectSystemImage.

svn path=/trunk/; revision=47048
2010-04-27 13:35:52 +00:00
Aleksey Bragin
e2463c955c [KMTEST]
- Add KeStallExecutionProcessor test.

svn path=/trunk/; revision=47047
2010-04-27 13:06:42 +00:00
Daniel Reimer
2e62657924 Update rapps Database to recent Versions.
svn path=/trunk/; revision=47046
2010-04-27 06:31:32 +00:00
Johannes Anderwald
42c28cc44f [SHELL32]
- Start implementing file copy / move / delete dialog
- Not yet enabled

svn path=/trunk/; revision=47043
2010-04-26 19:50:11 +00:00
Gregor Schneider
0554e844fc [EXPLORER] Add missing 24bpp start menu icon, created by Gabriel Ilardi
See issue #5007 for more details.

svn path=/trunk/; revision=47042
2010-04-26 19:01:37 +00:00
Gregor Schneider
5d4a67e625 [NETSHELL] Fix LAN status icon resource
See issue #3813 for more details.

svn path=/trunk/; revision=47041
2010-04-26 18:30:08 +00:00
Eric Kohl
93b98b3f84 [MKHIVE]
Revert remaining changes of r47019.

svn path=/trunk/; revision=47040
2010-04-26 16:06:17 +00:00
Timo Kreuzer
cc87229eb8 Comment out an ASSERT that gets trigged frequently.
See issue #5320 for more details.

svn path=/trunk/; revision=47039
2010-04-26 15:46:16 +00:00
Eric Kohl
3a0805b27a [MKHIVE]
Partial revert of r47019 because mkhive failed on Linux machines.

svn path=/trunk/; revision=47038
2010-04-26 15:35:57 +00:00
Eric Kohl
9721d8084b [USETUP]
- Use newinflib instead of inflib.
- Pass the user-selected language to the inf parser.
- Convert registry code from ANSI APIs to UNICODE APIs.
ATTENTION: This commit might break the build bot because it was not tested on a Linux system.

svn path=/trunk/; revision=47037
2010-04-26 15:10:23 +00:00
Giannis Adamopoulos
17557bfabd [win32k]
-rename w32k.h to win32k.h and win32k.h to win32kp.h

svn path=/trunk/; revision=47036
2010-04-26 13:58:46 +00:00
Johannes Anderwald
5fb94ed717 [USERINIT]
- Fix Startup Folder
- ShellExecuteEx needs lots of work
See issue #4568 for more details.

svn path=/trunk/; revision=47035
2010-04-26 13:58:09 +00:00
Johannes Anderwald
3c0e9dffbc [SHELL32]
- Assume it is an empty cdrom drive when there is no root mounted

See issue #2977 for more details.

svn path=/trunk/; revision=47033
2010-04-26 12:56:32 +00:00
Johannes Anderwald
5367720c46 [SHELL32]
- Let explorer open control panel class folder when there is no default action

See issue #4916 for more details.

svn path=/trunk/; revision=47032
2010-04-26 12:26:31 +00:00
Johannes Anderwald
dd0a9f5d5f [SHELL32]
- Rewrite enumerating folder options file type dialog

svn path=/trunk/; revision=47031
2010-04-26 10:38:15 +00:00
Johannes Anderwald
224b244395 - Fix file type description
svn path=/trunk/; revision=47030
2010-04-26 09:37:08 +00:00
Cameron Gutman
540e5b6f31 [NTOSKRNL]
- Create a helper function named OpenRegistryHandlesFromSymbolicLink which opens handles to various paths associated with a symbolic link
- Store the Linked value in IoSetDeviceInterfaceState
- Implement checking if an interface is enabled by reading the Linked value
- Interfaces reported from IoGetDeviceInterfaces are only active ones now (unless the caller explicitly says that they want disabled ones too)

svn path=/trunk/; revision=47029
2010-04-26 04:54:25 +00:00
Cameron Gutman
770cc844b0 [NTOSKRNL]
- Revert r46682
- The NULL terminator is not supposed to be included in the length
- Fixes corruption when printing the symbolic link

svn path=/trunk/; revision=47028
2010-04-26 04:18:11 +00:00
Timo Kreuzer
b5a39d6dd1 [WIN32CSR]
- Rewrite harderror handling.
The old code was a monster function, leaking memory, using ansi rather than unicode strings and not getting this right. It was also vulnerable to attacks, making csrss crash, when corrupt parameters were sent.

svn path=/trunk/; revision=47027
2010-04-26 01:23:21 +00:00
Timo Kreuzer
89a4d76d9d [STRSAFE]
Add strsafe.h from amd64 branch.

svn path=/trunk/; revision=47026
2010-04-26 00:41:09 +00:00
Cameron Gutman
9bab4055b3 [OSKITTCP]
- Add a sanity check
- Dedicated to Caemyr

svn path=/trunk/; revision=47024
2010-04-25 21:00:04 +00:00
Cameron Gutman
fd9406974e [AFD]
- Add some sanity checks

svn path=/trunk/; revision=47023
2010-04-25 20:51:07 +00:00
Eric Kohl
79b5a24bd4 [MKHIVE]
Fix a buggy format string (%s --> %S).
Add _wcsicmp to rtl.c.

svn path=/trunk/; revision=47022
2010-04-25 20:49:29 +00:00
Gregor Schneider
3bb199b692 [MKHIVE] wcsicmp -> _wcsicmp, should fix buildbot build
svn path=/trunk/; revision=47021
2010-04-25 20:26:37 +00:00
Cameron Gutman
98acf217f9 [WS2_32]
- Add support for reading the hosts file
- Fix an off-by-one error which prevented reading the last value in the services file
- Fixes bug 4410 and bug 4880

svn path=/trunk/; revision=47020
2010-04-25 20:01:59 +00:00
Eric Kohl
318eee8241 [MKHIVE]
- Use newinflib instead of inflib.
- Add RegDeleteKeyW stub.
- Convert registry generation code from ANSI APIs to UNICODE APIs.
ATTENTION: This commit might break the build bot because it was not tested on a Linux system.

svn path=/trunk/; revision=47019
2010-04-25 19:54:57 +00:00
Eric Kohl
f995cc4ea6 [NEWINFLIB]
- Use LANGID instead of LCID.
- Move LANGID and language macros into the host typedefs header.
- Remove dead code.

svn path=/trunk/; revision=47018
2010-04-25 19:20:59 +00:00
Cameron Gutman
6ebb4c8c3b [HOSTS]
- Add a simple hosts file
- Not used yet

svn path=/trunk/; revision=47017
2010-04-25 18:36:15 +00:00
Eric Kohl
0225b59c2d [NEWINFLIB]
Add a UNICODE-aware version of the inflib library.
It is not used by other components yet but usetup and mkhive will use it in the future.
ATTENTION: This commit might break the build bot because I could not test a build on a Linux system.

svn path=/trunk/; revision=47016
2010-04-25 15:58:34 +00:00
Gregor Schneider
49496ddec6 [SYSSETUP]
- Create a modeless syssetup dialog so we can explicitly ignore intermediate WM_CLOSE messages (modal property sheets handle them automatically)
See issue #4960 for more details.

svn path=/trunk/; revision=47011
2010-04-25 12:13:01 +00:00
Gregor Schneider
b8998128ea [NETCFGX]
- Save DHCP and DNS settings from the basic TCP/IP panel independently of each other
See issue #5193 for more details.

svn path=/trunk/; revision=47010
2010-04-25 10:47:10 +00:00
Gregor Schneider
8ba6c78a50 [NETCFGX]
- Improve the DNS data exchange between the basic IP settings and the advanced DNS panel
- Simplify LaunchAdvancedTcpipSettings

svn path=/trunk/; revision=47009
2010-04-25 10:45:06 +00:00
Cameron Gutman
740cd5ef90 [IP]
- Don't try to close the connection again if it has already been terminated by the remote peer

svn path=/trunk/; revision=47007
2010-04-24 22:37:45 +00:00
Gregor Schneider
d35aa96218 [NETSHELL]
- Load all LAN status icons with the same size
- Only set the status icon if the icon occurred, don't set NULL icons (properties of LAN adapter window)
See issue #3813 for more details.

svn path=/trunk/; revision=47006
2010-04-24 18:12:31 +00:00
Gregor Schneider
9986cfddd8 [NETSHELL] Fix some German resources:
- Use BS_MULTILINE instead of embedding newline characters into text
- Make groupboxes and text fit into the window

svn path=/trunk/; revision=47005
2010-04-24 18:08:11 +00:00
Johannes Anderwald
16910e9140 [RBUILD]
- Fix cleaning of msvc 10 project files

svn path=/trunk/; revision=47004
2010-04-24 08:51:07 +00:00
Timo Kreuzer
ee1d26e73c [FORMATTING]
- Apply consistent indentation

svn path=/trunk/; revision=47003
2010-04-23 22:16:59 +00:00
Amine Khaldi
f98870a07c [XDK]
- Apply _ANONYMOUS_UNION/_ANONYMOUS_STRUCT where it's missing, and get rid of __GNU_EXTENSION.
- Some minor formatting consistencies.
[DDK]
- Update wdm.h, ntifs.h and ntddk.h to reflect the recent XDK changes.

svn path=/branches/header-work/; revision=47000
2010-04-23 10:50:19 +00:00
Timo Kreuzer
14347c75ad Disable gdi batch for SelectObject with fonts. Fixes font regression.
svn path=/trunk/; revision=46998
2010-04-22 22:28:49 +00:00
Cameron Gutman
1e1d4a34ac [NTOSKRNL]
- Add a stub for IRP_MN_REMOVE_DEVICE in PnpRoot
- Revert 2 incorrect changes from r46983 (DNF_ENUMERATED added to the DNF_ADDED assertion and setting the DNF_RESOURCE_REPORTED flag in IopStartDevice2)
- Set the DNF_LEGACY_DRIVER flag if the AddDevice handler is missing
- Add a helper function called IopSendRemoveDevice which sends IRP_MN_REMOVE_DEVICE to a device object
- Call IopSendRemoveDevice if IRP_MN_START_DEVICE fails
- Set the DNF_STARTED and DNF_ADDED flags for legacy drivers
- Enable the DNF_ADDED assertion in IopStartDevice2

svn path=/trunk/; revision=46997
2010-04-22 21:07:46 +00:00
Cameron Gutman
c0d168b15a [PCI]
- Forward IRPs to our PDO instead of just completing them
- Handle IRP_MN_START_DEVICE on the way back up the stack (allows the PDO code to assign resources to the bus)
- Add some synchronous IRP forwarding copied from i8042prt

svn path=/trunk/; revision=46996
2010-04-22 20:35:58 +00:00
Gregor Schneider
af6172876c [REGEDIT]
- Don't assign an uninitialized custom filter buffer to the OPENFILENAME structure, clean up commented out code
- Allows standard file type filters to show up
See issue #5307 for more details.

svn path=/trunk/; revision=46992
2010-04-22 12:49:20 +00:00
Gregor Schneider
07d8f76a27 [REGEDIT] Only set a registry path if the root node is not selected, adjust checks
See issue #5297 for more details.

svn path=/trunk/; revision=46991
2010-04-22 11:25:56 +00:00
Aleksey Bragin
2ea442a9df [KERNEL32]
- Update kernel32_winetests to Wine-1.1.43.

svn path=/trunk/; revision=46990
2010-04-22 08:47:47 +00:00
Sir Richard
2c0c247cc7 [NTOS]: Implement and call MiBuildImportsForBootDrivers. We now have full dependency tracking for correct unloading.
[NTOS]: Implement and call MiLocateKernelSections. Pool code and paging paths will require this information later. Loader work done for now.

svn path=/trunk/; revision=46989
2010-04-22 08:13:56 +00:00
Sir Richard
0e419c8771 [NTOS]: Implement and call MiUseLargeDriverPage.
[NTOS]: MmCheckSystemImage: Check for 32-bit/64-bit image/OS mismatch.
[NTOS]: MmCheckSystemImage: Return invalid checksum if couldn't get the NT header from the image.
[NTOS]: MmCheckSystemImage: Map images as SEC_IMAGE instead of SEC_COMMIT, and simply read the size off that way.

svn path=/trunk/; revision=46988
2010-04-22 08:04:57 +00:00
Sir Richard
0f570fe34c [NTOS]: MiFindExportedRoutineByName should validate the ordinal to make sure it's not higher than the function count.
[NTOS]: Use MM_SYSLDR_ defines instead of magic pointer casts. Use appropriate pool tags.
[NTOS]: Set the LoadedImport count early-on during image referencing, so that failure will correctly de-reference the imports. By setting it to zero, failures would've leaked driver-dependent DLLs already loaded but now useless.
[NTOS]: Do the same checks as Windows to avoid drivers linked with user-mode DLLs.
[NTOS]: Allow "coverage" and "irt" to be linked with Win32K drivers as well.
[NTOS]: When the linker is fixed not to generate corrupt drivers, add the appropriate code to scan IMAGE_DIRECTORY_ENTRY_IAT for updating thunks. A hack exists in ReactOS now to permit loading these hacked drivers, but Windows is not so generous and will crash with a ReactOS driver.

svn path=/trunk/; revision=46987
2010-04-22 03:54:09 +00:00
Cameron Gutman
6463764d66 [PCI]
- Don't set DO_BUS_ENUMERATED_DEVICE on child PDOs because the PnP manager does it for us

svn path=/trunk/; revision=46985
2010-04-21 23:19:12 +00:00
Cameron Gutman
2fa4179cf2 - Missed this from my last commit
svn path=/trunk/; revision=46984
2010-04-21 22:42:21 +00:00
Cameron Gutman
a31725e572 [NTOSKRNL]
- Replace the broken CM_RESOURCE_LIST_SIZE with a better function that actually works with resource lists that have device-specific data in them (fixes missing device specific data when resources are retrieved with IoGetDeviceProperty)
- Separate the resource code out of pnpmgr.c and into pnpres.c
- Simplify resource assigning to simply calling one function, IopAssignDeviceResources, which takes care of the registry configuration, translation, etc.
- Set the DNF_NEED_ENUMERATION_ONLY flag only AFTER the device is actually started not before
- Set DNF_START_FAILED if IRP_MN_START_DEVICE fails
- Fix a bug in IoReportDetectedDevice that wrote the AllocConfig value to wrong place

svn path=/trunk/; revision=46983
2010-04-21 22:33:11 +00:00
Aleksey Bragin
577625f6f8 [WINESYNC]
- Sync comdlg32, crypt32, gdiplus, inetcomm, jscript, msctf, mshtml, msxml3, rsaenh, schannel, shlwapi, urlmon, usp10, wininet winetests.

svn path=/trunk/; revision=46982
2010-04-21 20:35:09 +00:00
Timo Kreuzer
e20b4df9ef [WIN32K]
Update text and background brush properly. Fixes wrong colors in radio buttons in Firefox. Fix by Jerome Gardou.

See issue #5311 for more details.

svn path=/trunk/; revision=46980
2010-04-21 15:15:57 +00:00
Timo Kreuzer
8a0f9ea1b4 remove svn:mergeinfo
svn path=/trunk/; revision=46979
2010-04-21 15:12:58 +00:00
Sir Richard
1400882dda [NTOS]: Support unload of system modules by parsing the LoadedImports (implement MiDereferenceImports which was just a stub) and calling MiCallDllUnloadAndUnloadDll.
[NTOS]: Fix a bug in MiClearImports.

svn path=/trunk/; revision=46978
2010-04-21 14:14:45 +00:00
Sir Richard
73b2dc4317 [NTOS]: Enable MmPageEntireDriver by implementing MiSetPagingOfDriver.
[NTOS]: Call MiEnablePagingOfDriver from MmLoadSystemImage and implement it. All the work is done other than actually enabling paging, which requires system working set support.
[NTOS]: Implement MiWriteProtectSystemImage and MiComputeDriverProtection. All the work is done other than actually setting the bits on the pages, since I wanted to avoid too many changes.
[NTOS]: MmCheckSystemImage returns STATUS_INVALID_IMAGE_PROTECT, not STATUS_INVALID_IMAGE_FORMAT, so the branch in MmLoadSystemImage needs to check for the correct status code.
[NTOS]: Support FLG_SHOW_LDR_SNAPS for the kernel loader.

svn path=/trunk/; revision=46977
2010-04-21 14:06:01 +00:00
Amine Khaldi
dde9ac5d8a [DDK]
- miniport.h : Remove VIDEO_ACCESS_RANGE definition.
- ntagp.h : Introduce pragma once, apply a consistent formatting and add some missing definitions.
- video.h : Introduce pragma once, apply a consistent formatting, remove _WINDDI_ guard, group related definitions and add some missing ones.
- videoagp.h : Introduce pragma once and apply a consistent formatting.

svn path=/branches/header-work/; revision=46973
2010-04-21 01:33:08 +00:00
Timo Kreuzer
90b9c29f62 Recommit rest of ntifs.h and wdm.h from header merge revert
svn path=/trunk/; revision=46972
2010-04-21 01:12:04 +00:00
Sir Richard
f90e9cc903 [NTOS]: Read almost all the Memory Management variables into the system configuration vector. These includes pool limits, percentages, debugging flags, behavioral changes, and others.
[NTOS]: Minimal stubbed support for some large page functionality in case it gets implemented later and these things would've been ignored. One critical change is that now the MmProcessList is initialized, and the system process is added to it. Other processes should be added later.
[NTOS]: Add stubbed support for parsing the registry list of drivers that should have large pages enabled.
[NTOS]: Initialize the loaded module list before working set work.
[NTOS]: Reload the boot drivers much earlier, as part of ARM3 initialization.
[NTOS]: Start doing some minor MmResidentAvailablePages accounting during bootup.
[NTOS]: Start doing the math required for computing the appropriate MmSystemCacheWsMinimum on the booting system (based on RAM).
[NTOS]: Now that we use the HAL heap, add the code to scan it for I/O mappings. These are dangerous because we need to sync up caching attributes (not yet used in ReactOS, so not a problem for now).
[NTOS]: Add more header definitions, and helper definitions such as PDE_MAPPED_VA instead of doing the math by hand.
[NTOS]: Move MmPageEntireDriver and MmResetDriverPaging to sysldr.c since drvmgmt.c is more for Driver Verifier-style functionality.

svn path=/trunk/; revision=46971
2010-04-20 22:47:51 +00:00
Aleksey Bragin
34b02b74ca - Sync rsaenh, schannel, shlwapi, sti, urlmon, usp10, version, windowscodecs, wininet, wintrust to Wine-1.1.43.
- Update README.WINE.

svn path=/trunk/; revision=46967
2010-04-20 21:18:54 +00:00
Gregor Schneider
b423af097f [NTVDM] Load resource strings in Unicode when printing them in Unicode
svn path=/trunk/; revision=46963
2010-04-20 18:59:58 +00:00
Aleksey Bragin
1aa7aa1be5 - If MSDN says "BOOLEAN", let it be "BOOLEAN". Fixes build.
svn path=/trunk/; revision=46962
2010-04-20 18:55:05 +00:00
James Tabor
b88a39e105 [User32]
- Dmitry Timoshkov : Do not ask DrawFrameControl() to modify the passed in rectangle.
- Nikolay Sivov : Set WM_EXITMENULOOP wParam same way as for WM_ENTERMENULOOP.

svn path=/trunk/; revision=46961
2010-04-20 18:36:39 +00:00
Aleksey Bragin
590cff7bd1 - Add Wow64* functions declarations to winbase.h
- Export Wow64* functions in kernel32, because 32bit Windows also exports them.
- Sync ole32, oleaut32 with Wine-1.1.43.

svn path=/trunk/; revision=46959
2010-04-20 17:36:44 +00:00
Aleksey Bragin
fd7bc65588 - Sync msimtf, msvfw32, msvidc32, msxml3 to Wine-1.1.43.
svn path=/trunk/; revision=46958
2010-04-20 17:24:00 +00:00
Aleksey Bragin
4a1f6e12e3 - Sync localspl, mciavi32, mcicda, mciqtz32, mciseq, mciwave, mscoree, msctf, msgsm32.acm, mshtml to Wine-1.1.43.
svn path=/trunk/; revision=46957
2010-04-20 17:16:57 +00:00
Aleksey Bragin
79c442dc8f - Sync inetcomm, inseng, jscript to Wine-1.1.43.
svn path=/trunk/; revision=46956
2010-04-20 16:42:47 +00:00
Aleksey Bragin
0cb69766f3 - Sync comdlg32, crypt32, gdiplus, hhctrl.ocx to Wine-1.1.43.
svn path=/trunk/; revision=46955
2010-04-20 08:30:10 +00:00
Timo Kreuzer
85c5177ec9 Merge back most changes to ntifs.h from lastt revert
svn path=/trunk/; revision=46949
2010-04-19 21:40:23 +00:00
Timo Kreuzer
c31fcaaae7 [W32KNAPI]
Patch by Jerome Gardou: more tests for NtGdiBitBlt

svn path=/trunk/; revision=46948
2010-04-19 19:45:10 +00:00
Timo Kreuzer
d39e608d4d [NTDLL_WINETEST]
- Skip broken tests

svn path=/trunk/; revision=46947
2010-04-19 19:43:18 +00:00
Timo Kreuzer
c99e966e79 Patch by Jerome Gardou: add a bunch of tests for NtGdiBitBlt
svn path=/trunk/; revision=46946
2010-04-19 17:52:56 +00:00
Timo Kreuzer
d26ada0639 Merge changes to ketypes.h and ntimage.h from the last revert back.
svn path=/trunk/; revision=46945
2010-04-19 17:30:34 +00:00
Amine Khaldi
8bb6364e53 [DDK]
- Move nettypes.h to PSDK, introduce pragma once and apply a consistent formatting.
- Remove newdev.h from DDK (it's already in PSDK).
- ndisguid.h and ndiswan.h : Introduce pragma once, apply a consistent formatting and add some missing definitions.
- netpnp.h : Introduce pragma once, apply a consistent formatting and mark NDIS_DEVICE_PNP_EVENT with a FIXME indicating that it belongs to ndis.h
[PSDK]
- newdev.h : Introduce pragma once, apply a consistent formatting, add missing setupapi.h inclusion along with some missing definitions and guard them with the appropriate WINVER.

svn path=/branches/header-work/; revision=46944
2010-04-19 16:18:04 +00:00
Timo Kreuzer
7c4b750a57 Revert r46582, to see if it fixes the regtests
svn path=/trunk/; revision=46942
2010-04-19 15:41:21 +00:00
Aleksey Bragin
9403f80947 - Sync activeds, atl, avifil32, cabinet to Wine-1.1.43.
svn path=/trunk/; revision=46938
2010-04-19 14:03:42 +00:00
Amine Khaldi
1feb14570e [DDK]
- mountdev.h : Guards definition with the appropriate NTDDI_VERSION, and apply a consistent formatting.
- mountmgr.h : Guards definition with the appropriate NTDDI_VERSION, apply a consistent formatting and add some missing definitions.

svn path=/branches/header-work/; revision=46936
2010-04-19 10:31:22 +00:00
Daniel Reimer
cab24c4645 Update winhlp32 to Wine 1.1.43
svn path=/trunk/; revision=46931
2010-04-18 23:16:10 +00:00
Matthias Kupfer
57020ab2e3 - Once again, fix INF files
svn path=/trunk/; revision=46929
2010-04-18 23:02:14 +00:00
Aleksey Bragin
a3e472b248 Samuel Serapion
- Add IdlInterface module type.

svn path=/trunk/; revision=46928
2010-04-18 18:22:29 +00:00
Aleksey Bragin
250867ddb3 Samuel Serapion
- Assorted rbuild syntax fixes.

svn path=/trunk/; revision=46927
2010-04-18 18:20:33 +00:00
Aleksey Bragin
e5a3966fdd [USER32]
- Fix SetSysColorTemps prototype and implementation for 64 bit compatibility, part 2/2.

svn path=/trunk/; revision=46918
2010-04-18 12:46:53 +00:00
Aleksey Bragin
f272498345 [USER32]
- Fix SetSysColorTemps prototype and implementation for 64 bit compatibility.

svn path=/trunk/; revision=46917
2010-04-18 12:42:28 +00:00
Michael Martin
78db5f0d71 [NTMARTA]
- AccRewriteSetEntriesInAcl: Fix a bug that caused the for loop never to complete due to reuse of same variable.

svn path=/trunk/; revision=46916
2010-04-18 12:06:29 +00:00
Cameron Gutman
b3be7aba54 [PCMCIA]
- Check if the IOCTL interface should be enabled (not used yet)

svn path=/trunk/; revision=46913
2010-04-17 23:32:29 +00:00
Cameron Gutman
9ce679f7cf [NTOSKRNL]
- Hackfix the device manager issue

svn path=/trunk/; revision=46912
2010-04-17 23:13:07 +00:00
Gregor Schneider
cb8592ebd4 [GDI32] GetFontUnicodeRanges was introduced in Windows 2000, patch by Love Nystrom
See issue #5031 for more details.

svn path=/trunk/; revision=46910
2010-04-17 20:59:59 +00:00
Gregor Schneider
22fbcbfd91 [SHELL32]
- Simplify checks for success of ShellExecuteEx, field hInst may be an unreliable indicator according to http://msdn.microsoft.com/en-us/library/bb759784%28v=VS.85%29.aspx
- Fixes folder options control panel opening twice
See issue #4910 for more details.

svn path=/trunk/; revision=46907
2010-04-17 20:02:12 +00:00
Sir Richard
03eaad9b13 [NTOS]: 1MB is not 1000 * 1KB...
svn path=/trunk/; revision=46904
2010-04-17 14:28:15 +00:00
Amine Khaldi
701e3bf14a [DDK]
- Move ntddchgr.h and ntddstor.h to PSDK, apply a consistent formatting, group related definitions, add some missing definitions and improve several existing ones.
- scsi.h : Add missing srb.h inclusion, group related definitions, apply a consistent formatting, add several missing definitions and improve a couple of existing ones.
- srb.h : Group related definitions, apply a consistent formatting, add several missing definitions and improve some existing ones.

svn path=/branches/header-work/; revision=46901
2010-04-16 21:43:38 +00:00
Gregor Schneider
a40f637b41 [SHELL32]
- Add support for deleting multiple files from the context menu
- Fix error debug print
See issue #4383 for more details.

svn path=/trunk/; revision=46900
2010-04-16 21:22:06 +00:00
Gregor Schneider
76e18f2271 [PING]
- Skip the last unnecessary wait in a series of pings
- Patch by Rafal Harabien, <rafalh1992 AT o2 DOT pl>
See issue #5300 for more details.

svn path=/trunk/; revision=46898
2010-04-16 14:47:46 +00:00
Gregor Schneider
2dba0d9347 [NOTEPAD]
- Create a font even if no registry settings were loaded
- Patch by Rafal Harabien, <rafalh1992 AT o2 DOT pl>
See issue #4066 for more details.

svn path=/trunk/; revision=46897
2010-04-16 14:30:40 +00:00
Amine Khaldi
c7a0a39963 [DDK]
- Move lmon.h to PSDK and apply a consistent formatting.

svn path=/branches/header-work/; revision=46896
2010-04-16 13:42:34 +00:00
Amine Khaldi
b9fa9ff882 [DDK]
- Move ksuuids.h to PSDK, apply a consistent formatting, add some missing definitions and guard some with the appropriate NTDDI_VERSION.

svn path=/branches/header-work/; revision=46895
2010-04-16 13:38:34 +00:00
Amine Khaldi
bed405a92a [DDK]
- Move ksdebug.h to PSDK, apply a consistent formatting, add missing evntrace.h inclusion and improve a couple of definitions.
[PSDK]
evntrace.h : Introduce pragma once, apply a consistent formatting and add several missing definitions.

svn path=/branches/header-work/; revision=46894
2010-04-16 13:19:55 +00:00
Ged Murphy
d6c85206c0 Fix the make path.
Should fix building using the RosBuild config in Visual Studio

svn path=/trunk/; revision=46893
2010-04-16 10:48:02 +00:00
Amine Khaldi
2b0248408a [DDK]
- Move kcom.h to PSDK and apply a consistent formatting.

svn path=/branches/header-work/; revision=46890
2010-04-15 22:28:50 +00:00
Amine Khaldi
3ba7cea0e7 [DDK]
- d4drvif.h : Introduce pragma once, apply a consistent formatting, group related definitions and add several missing ones.
- d4iface.h : Introduce pragma once, apply a consistent formatting and group related definitions.
- dderror.h : Introduce pragma once and apply a consistent formatting.
- dxapi.h : Apply consistent formatting.
- fltsafe.h : Guard FLOATSAFE inside the proper NTDDI_VERSION and apply a consistent formatting.
- kbdmou.h : Introduce pragma once, apply a consistent formatting and add a missing wmidata.h inclusion.
- ntddmou.h : Move to PSDK, introduce pragma once, apply a consistent formatting and add several missing definitions.
[PSDK]
- ntddkbd.h : Introduce pragma once, apply a consistent formatting and add several missing definitions.

svn path=/branches/header-work/; revision=46889
2010-04-15 21:56:39 +00:00
Amine Khaldi
3e032a1c42 [DDK]
- Add missing wmidata.h definitions.

svn path=/branches/header-work/; revision=46888
2010-04-15 21:40:44 +00:00
Gregor Schneider
3e8240e837 [DESK]
- Don't autoequip listview item selections upon item creation
- Handle selections via SetItemState, select newly added items that way
- Fixes current background wallpaper item not being selected initially and selection being ignored later
See issue #5030,5116 for more details.

svn path=/trunk/; revision=46887
2010-04-15 21:01:12 +00:00
Timo Kreuzer
1bb3aa8239 [MSIMTF]
Silence debug flood

svn path=/trunk/; revision=46886
2010-04-15 20:07:18 +00:00
Timo Kreuzer
2899a12647 [RBUILD]
- Link C++ apps to libsupc++.a, needed for recent versions of gcc
- remove amd64 hack

svn path=/trunk/; revision=46884
2010-04-15 18:47:44 +00:00
Timo Kreuzer
cf40c11ad3 [GENINC]
Add some more constants

svn path=/trunk/; revision=46883
2010-04-15 18:42:48 +00:00
Gregor Schneider
e44ad6135e [SHELL32]
- Use the default action when starting processes from the run dialog (r29143, lost due to a sync)
- Control panels can be launched from run again
- Display localized error text as messagebox caption instead of "Nix"
See issue #4026 for more details.

svn path=/trunk/; revision=46882
2010-04-15 16:33:25 +00:00
Johannes Anderwald
602b920bdd [BDASUP]
- Fix build

svn path=/trunk/; revision=46881
2010-04-15 14:09:38 +00:00
Johannes Anderwald
1aa1aee11c [PSDK]
- Add KS_DATARANGE_BDA_TRANSPORT Type
- Fix build

svn path=/trunk/; revision=46880
2010-04-15 12:54:04 +00:00
Johannes Anderwald
8b9a3d51b9 [MSDVBNP]
- Fix category description
[KSPROXY]
- Create pin handle when other pin is connecting to the output pin
- Defer loading proxy plugins when the pin is about to connect

svn path=/trunk/; revision=46879
2010-04-15 11:08:19 +00:00
Johannes Anderwald
99db21ebb0 [KS]
- Fix typo
- Store object interface functions in KSBASIC_HEADER OuterUnknown
- Implement KsDeviceRegisterAdapterObject, KsRegisterAggregatedClientUnknown, KsGetOuterUnknown
- Partly implement clock property functions
- Rewrite KsValidateConnectRequest, KsPinPropertyHandler to handle KSPIN_DESCRIPTOR_EX, which is used by IKsFilter implementation
- Dispatch unsupported interface requests to the clients registered inner aggregate (device / filter factory / filter / pin)
- Rewrite filter functions which deal with KSPIN_DESCRIPTO, as the client can dynamically modify the PinDescriptors array
- Handle matching create requests which differentiate in case
- Implement pin allocator framing property handler


svn path=/trunk/; revision=46878
2010-04-15 10:07:38 +00:00
Johannes Anderwald
cfe909e6a4 [PSDK]
- Add clock property handler prototypes

svn path=/trunk/; revision=46877
2010-04-15 09:44:03 +00:00
Cameron Gutman
6654252a3d [PCMCIA]
- Add a mostly stubbed PCMCIA driver
- pcmcia.c is complete but fdo.c and pdo.c are completely unimplemented

svn path=/trunk/; revision=46876
2010-04-15 01:59:15 +00:00
Jeffrey Morlan
8886915477 [WIN32K] Since r43772 we now normalize VK_LCONTROL/VK_RCONTROL to VK_CONTROL rather than VK_LCONTROL (and ditto for shift/alt), so update SetKeyState to handle this. Fixes bug 4945.
svn path=/trunk/; revision=46875
2010-04-15 00:25:30 +00:00
Gregor Schneider
76a82f0995 [NOTEPAD] Convert NULL characters to spaces when reading binary files
See issue #3573 for more details.

svn path=/trunk/; revision=46873
2010-04-14 20:43:23 +00:00
Gregor Schneider
640fb7d222 [DESK]
- Create a function for updating the currently selected theme id
- Call this function before saving theme data to the registry, fixes saving invalid theme indexes
- Remove unnecessary header tags
See issue #5016 for more details.

svn path=/trunk/; revision=46870
2010-04-14 19:08:27 +00:00
Timo Kreuzer
0e2cdc86f2 [NDIS]
Fix build

svn path=/branches/header-work/; revision=46869
2010-04-14 19:01:16 +00:00
Michael Martin
cebadab3ab [usb/usbehci]
- Remove WorkItem code yet again as its not needed.
- Set Ports PortChange to STATUS_CONNECTED when detecting insertion of new usb device.
- Change UrbWorkerThread to use timer and wait so we dont waste cpu cycles.
- Implement IOCTL_INTERNAL_USB_SUBMIT_IDLE_NOTIFICATION.
- Upon receiving the IRP_MN_QUERY_DEVICE_RELATIONS with type BusRelation, stop processing the root hub IRPs, 
as at this point the hub driver has been informed of everything it needs to know about the device.
The next SCE request will remain pending until another devices is connected.
- Implement ExecuteControlRequest for all control related communications to/from usb devices.
- Remove GetDeviceDescriptor and GetDeviceStringDescriptor as no longer needed. 
- Fix implementation of Direct Call function CreateUsbDevice.
- Implement Direct Call functions InitializeUsbDevice and GetUsbDescriptors.
- Misc rearranging and clean up.




svn path=/trunk/; revision=46867
2010-04-14 14:46:10 +00:00
Amine Khaldi
1698f62b8d [DDK]
ndis.h : Group related definitions, add missing PROTOCOL_RESERVED_SIZE_IN_PACKET, NdisGetFirstBufferFromPacketSafe, NdisSetPacketPoolProtocolId and use _ANONYMOUS_UNION/_ANONYMOUS_STRUCT.

svn path=/branches/header-work/; revision=46866
2010-04-14 13:40:55 +00:00
Amine Khaldi
7927a9d7b6 [DDK]
scsi.h : Add missing READ_TOC formats definitions.

svn path=/branches/header-work/; revision=46865
2010-04-14 12:02:41 +00:00
Timo Kreuzer
4c7d318d09 [TDI]
Convert to spec. Taken from amd64 branch (by Samuel Serapión)

svn path=/trunk/; revision=46864
2010-04-14 00:03:21 +00:00
Timo Kreuzer
e47129e41e [NDIS]
Convert to spec

svn path=/trunk/; revision=46863
2010-04-13 23:48:25 +00:00
Marc Piulachs
9032acdcf8 My first commit in a very long time. I'm releasing the source code of my C# implementation of Rbuild by popular demand :) I would have preferred to release the code under a BSD licence but there is a small portion of ancient Nant GPL code that would have been to be rewritten first.
There are two executables (SysGen.Designer) and (SysGen.Make)

SysGen.Designer is a windows forms tool that allows to generate customized reactos images, it is similar in concept to Windows CE Platfom Builder. SysGen.Make is the actual Rbuild clone, It has three main parts, the .rbuild file parser + in-memory tree representation, the backends , and the auto generated files. The Mingw backend used to work 1'5 years ago and produced a 100% valid makefile.auto but have to be updated to be able to build a recent revision. Rewriting parts of it to take advantage of C# 3.5 extension methods would probably reduce the code by 50%. The other two parts are quite stable.

This code was only a proof of concept and was never intended to be released so there is a ton of unpolished code and hacks required by the current C++ implementation that should be removed.

How to test it:

Select SysGen.Make as the Start-up Project in Visual Studio and edit Program.cs to point to the correct path to ReactOS-i386.rbuild Edit SysGenEngine.cs:639 to enable/disable specific backends, The HtmlBackend in \SysGen.BuildEngine\Backends\Html\HtmlBackend.cs is a very simple illustration of how powerful this framework is.

Happy hacking!

svn path=/trunk/; revision=46862
2010-04-13 21:59:21 +00:00
Timo Kreuzer
c100c972c1 [HAL]
- Give mini-hal it's own rbuild file
- fix amd64 rbuild

svn path=/trunk/; revision=46860
2010-04-13 16:26:48 +00:00
Timo Kreuzer
f6c641bb39 [NTOSKRNL]
Add back FASTCALL macro in the pspec file for amd64 builds

svn path=/trunk/; revision=46859
2010-04-13 15:19:35 +00:00
Timo Kreuzer
e24364da67 [NDK]
- Fix KGDT64 selector names

svn path=/trunk/; revision=46857
2010-04-12 22:31:42 +00:00
Timo Kreuzer
de40f8d7d7 [FREELDR]
- Don't prefix amd64 symbol names with underscores
- Cleanup unused amd64 functions
- Fix amd64 GDT entries
- Fix amd64 APIC_BASE

svn path=/trunk/; revision=46856
2010-04-12 22:28:22 +00:00
Gregor Schneider
31515fdd20 [RTL] Revert s(w)printf changes of r44970
See issue #5125 for more details.

svn path=/trunk/; revision=46855
2010-04-12 20:45:38 +00:00
Gregor Schneider
79fef6c915 [USERENV] Revert r43057: setting environment variables per process is not useful here, a higher authority has to do this globally
See issue #4008 for more details.

svn path=/trunk/; revision=46853
2010-04-12 20:13:39 +00:00
Sir Richard
195355c7fa [NTOS]: Try moving towards new ABI. Lots of debug spam will be generated by various device node flags in incorrect states, and hacks that had to be made to maintain current functionality. Also document things being done at the wrong place. One small step...
svn path=/trunk/; revision=46852
2010-04-12 19:49:32 +00:00
Gregor Schneider
846afbdef5 [SHELL32]
- Add prepared file association failure text plus some translations from Wine
- Prevents completely empty message boxes
See issue #4572 for more details.

svn path=/trunk/; revision=46851
2010-04-12 19:47:09 +00:00
Gregor Schneider
c85b9b7fad [KERNEL32]
Daniel Zimmerman: Update GetShortPathNameW to Wine
See issue #4553 for more details.

svn path=/trunk/; revision=46850
2010-04-12 19:43:07 +00:00
Timo Kreuzer
8b6a58978f [HAL]
Fix a possible overflow of the hal heap in HalpMapPhysicalMemory64 and simplify the code.

svn path=/trunk/; revision=46849
2010-04-12 19:39:50 +00:00
Sir Richard
ec9ebec239 [NTOS]: Rename IopBusTypeGuidList to PnpBusTypeGuidList to match Windows 2003 PnP Namespace instead of Windows 2000.
[NTOS]: Use PnpBusTypeGuidList->Lock instead of PnpBusTypeGuidListLock.
[NTOS]: Implement PipAllocateDeviceNode for setting up device nodes and linking them to a PDO. Only used for Root PnP now. Main ABI change is that allocate in ReactOS right now includes "insert". These will be seperate in the new PnP ABI.
[NTOS]: Implement IopInitializePnpServices to replace PnpInit. Mostly the same work is done, but using new PnP ABI.
[NTOS]: Implement new helper: IopCreateRegistryKeyEx.

svn path=/trunk/; revision=46845
2010-04-11 21:25:50 +00:00
Cameron Gutman
d568475220 [NTOSKRNL]
- Use IopDeviceNodeSetFlag to set the DNF_HAS_BOOT_CONFIG flag
- Set DNF_START_FAILED and print a warning if we fail to start a device
- Clear the DNF_ASSIGNING_RESOURCES flag before failing
- TODO: Release device resources when start fails

svn path=/trunk/; revision=46844
2010-04-11 17:31:17 +00:00
Cameron Gutman
e511742ca6 [NTOSKRNL]
- Don't set the DNF_STARTED flag before calling IopStartDevice

svn path=/trunk/; revision=46843
2010-04-11 16:23:57 +00:00
Cameron Gutman
5d6b19c9a0 [NTOSKRNL]
- Store the allocated resources for reported devices

svn path=/trunk/; revision=46842
2010-04-11 16:21:29 +00:00
Sir Richard
26d1db9190 [NTOS]: Some PnP ABI refactoring for future patches/work.
[NTOS]: Switch to PnP Add Device routine, currently mostly a copy of the original ReactOS code. However, PnP now tries to open all the required registry keys before attempting to start the device. Failures are reported and load cancelled. More work TBD.

svn path=/trunk/; revision=46841
2010-04-11 16:10:49 +00:00
Cameron Gutman
5d13bbcc06 [NTOSKRNL]
- Make legacy device keys volatile

svn path=/trunk/; revision=46840
2010-04-11 16:08:20 +00:00
Aleksey Bragin
a4f5e7b912 [ISAPNP]
- Comment it out from the bootloader.
- Remove it from machine.inf.
- This "driver" introduces significant delay at every boot due to i/o space scanning every time at every boot, however there is no real benefit (it always fails). Inclusion of this driver into default boot process might be reconsidered only after it starts providing some advantages. For now please test this driver in your own working copies.

svn path=/trunk/; revision=46837
2010-04-11 12:18:27 +00:00
Gregor Schneider
91d15df7c5 [WIN32K]
- Handle keyboard input when no windows are present
- Patch by Andrey Ivanov with changes suggested in the bug report
See issue #3560 for more details.

svn path=/trunk/; revision=46836
2010-04-11 10:39:20 +00:00
Timo Kreuzer
386c534e6c [CDROM]
- ULONG -> ULONG_PTR

svn path=/trunk/; revision=46834
2010-04-11 01:40:15 +00:00
Gregor Schneider
a16ef45831 [USETUP] Switch KDSERIAL debug builds to new boot method, old boot method tends to bugcheck
svn path=/trunk/; revision=46826
2010-04-10 19:24:21 +00:00
Daniel Reimer
232f47a639 Bug 5217: Italian translation updates by Paolo Devoti
Bug 5282: Czech translation update by Radek Liska

svn path=/trunk/; revision=46825
2010-04-10 18:38:02 +00:00
Johannes Anderwald
5444105397 [KS]
- Implement dispatching of enable/disable event properties for filters/pins
- Add new pins to list of instantiated pins when a new pin is created
- Remove pin on close and decrement instance count. Fixes instantiating pin for 2nd time
- Rewrite handling of pin property/method/events
- ks is now able to deliver signal statistics in XP SP3

svn path=/trunk/; revision=46824
2010-04-10 18:00:17 +00:00
Gregor Schneider
d31ce0d47b [TASKMGR] Handle icon list checks after enumerating windows, instead of doing them per window
Patch by Timo Kreuzer, bug #1940

svn path=/trunk/; revision=46818
2010-04-10 16:19:30 +00:00
Gregor Schneider
eea4d66908 [TASKMGR]
- Implement a SID to user name cache, patch by Timo Kreuzer with some changes by me
See issue #4844 for more details.

svn path=/trunk/; revision=46816
2010-04-10 15:51:31 +00:00
Gregor Schneider
7759232bf5 [SHELL32] Handle WM_CLOSE instead of WM_DESTROY to close the dialog
See issue #4226 for more details.

svn path=/trunk/; revision=46814
2010-04-10 14:58:31 +00:00
Sylvain Petreolle
6fb8027ffd Add declaration for PerfDataGetProcessIndex.
Fixes taskmgr build without compilation units.

svn path=/trunk/; revision=46813
2010-04-10 14:12:54 +00:00
Gregor Schneider
66425524ea [TASKMGR]
- Add routine to query process index from performance data
- Remove process page index caching, query the index using the new routine
- Fixes "ghost processes" in the task manager, which were shown due to data access with invalid indexes
- Some changes for improved performance: use local process id's where suitable, only start checking for new processes if the item performance data and listview counts differ
See issue #4661 for more details.

svn path=/trunk/; revision=46812
2010-04-10 12:49:41 +00:00
Eric Kohl
c1a9403d49 Enable old access check code until the bug that keeps the device installer from working has been fixed.
svn path=/trunk/; revision=46811
2010-04-10 11:44:57 +00:00
Timo Kreuzer
3e3a1652c1 [XDK]
- Move WDM version defines to wdm.template.h
- Move USE_DMA_MACROS / NO_LEGACY_DRIVERS to wdm.template.h, remove duplicate

svn path=/branches/header-work/; revision=46810
2010-04-10 11:32:36 +00:00
Giannis Adamopoulos
109f0d331a [rbuild]
MSVC backend:
- Fix compilation when using paths with spaces
- Fix spec and pspec rules to generate correctly the def and stubs file
- Group auto-generated files together
- Rename some user macros to more appropriate names
- Some cleanup

svn path=/trunk/; revision=46809
2010-04-10 09:14:18 +00:00
Cameron Gutman
f3683186aa [NTOSKRNL]
- Cache the next instance value in the the registry so we don't have to go searching for an unused instance number every time we add a new device

svn path=/trunk/; revision=46808
2010-04-10 04:11:45 +00:00
Amine Khaldi
f0e3db2b34 [DDK]
- atm.h : Introduce pragma once, apply consistent formatting and add some missing definitions.

svn path=/branches/header-work/; revision=46799
2010-04-09 21:41:00 +00:00
Cameron Gutman
aca1c8384f [NTOSKRNL]
- Create registry values for legacy drivers
- Handle raw devices properly
- Don't set DNF_STARTED before actually calling IopStartDevice
- Don't set DNF_STARTED for legacy drivers inside IopCreateDeviceNode
- Fixes missing entries in Device Manager for raw devices

svn path=/trunk/; revision=46798
2010-04-09 21:11:32 +00:00
Timo Kreuzer
7bfc8fa8ea [NTOSKRNL]
Fix msvc versions of Ke386GetGlobalDescriptorTable and Ke386SetGlobalDescriptorTable. Patch by Jose Catena.

See issue #5071 for more details.

svn path=/trunk/; revision=46797
2010-04-09 21:10:13 +00:00
Johannes Anderwald
1528c1220d [KS]
- Return status success from unimplemented IKsClock_DispatchClose
- Implement handling of KSPROPERTY_PIN_CONSTRAINEDDATARANGES property
- Forward unhandled irps to lower device object
- Fix asserts in KspHandleDataIntersection. The function is still a grotesk hack
- Simply handling of property requests by merging filter properties into filter descriptor
- Implement KsMethodHandler, KsMethodHandlerWithAllocator, KsFastMethodHandler
- Fix a bug in KsPinGetFirstCloneStreamPointer
- Implement handling of KSPROPSETID_Topology (KspTopologyHandler)

svn path=/trunk/; revision=46794
2010-04-09 18:31:53 +00:00
Amine Khaldi
3d615f92df - Fix WmiFireEvent Guid type.
- Define WINSOCK_API_LINKAGE in ws2_32
- Remove winsock.h inclusion from ws2_32/misc/async.c

svn path=/branches/header-work/; revision=46793
2010-04-09 15:35:53 +00:00
Timo Kreuzer
b1675d448b [RPCRT4]
Remove some definitions from unix_func.h, as we have them in our public headers now. This file is not wine synced.

svn path=/branches/header-work/; revision=46790
2010-04-09 13:06:30 +00:00
Timo Kreuzer
8a7d6a9a0f Don't define u_int64 in wine/dcetypes.idl
svn path=/branches/header-work/; revision=46789
2010-04-09 13:05:00 +00:00
Giannis Adamopoulos
190d0acef7 asm.h: fix definition of HEX macro
svn path=/trunk/; revision=46786
2010-04-09 11:14:56 +00:00
Cameron Gutman
cbbd840d2a [NTOSKRNL]
- Write the assigned resources to the registry

svn path=/trunk/; revision=46784
2010-04-09 01:10:34 +00:00
Gregor Schneider
56b6100451 [TASKMGR] Remove temp debug output related to another problem
svn path=/trunk/; revision=46783
2010-04-08 22:21:17 +00:00
Gregor Schneider
13478858b7 [TASKMGR]
- Don't try to query a performance index when switching from application to process tab
- Query a process index instead: "go to process" works now

svn path=/trunk/; revision=46782
2010-04-08 22:10:45 +00:00
Gregor Schneider
d20419ee58 [SHELL32] Add missing format specifier, switch parameters as advertised
svn path=/trunk/; revision=46781
2010-04-08 21:25:02 +00:00
Johannes Anderwald
0d672ad7cd [KS]
- Fix tons of bugs in KsMergeAutomationTable
- Implement removing instantiated filter from filter factory when filter is about to be closed
- Fix a memory corrupion bug in KspHandleDataIntersection

svn path=/trunk/; revision=46780
2010-04-08 20:14:38 +00:00
Aleksey Bragin
169a95782a [DRIVERS/GREEN]
- Includes cleanup, fix NDK inclusion.

svn path=/trunk/; revision=46779
2010-04-08 09:39:24 +00:00
Johannes Anderwald
fc4cd6d714 [KS]
- Disable debugging traces

svn path=/trunk/; revision=46777
2010-04-08 08:38:50 +00:00
Cameron Gutman
ba87c15658 [TXTSETUP.SIF]
- Add PnP information for isapnp
[REACTOS.DFF]
- Remove isapnp

svn path=/trunk/; revision=46776
2010-04-08 02:18:27 +00:00
Cameron Gutman
5fcb03c68d [ISAPNP]
- Fix a typo

svn path=/trunk/; revision=46775
2010-04-07 23:03:59 +00:00
Johannes Anderwald
07e1066306 [KS]
- Implement IKsDevice::GetAdapterObject, IKsDevice::ArbitrateAdapterChannel
- Store device interface guid in the symbolic link list entry, which is used by KsFilterFactoryUpdateCacheData
- Implement KsFilterFactoryUpdateCacheData, which is used to dynamically propagate format / medium changes to directshow components
- Move stream pointer preparation to an own function, which is called by KsPinGetLeadingEdgeStreamPointer / KsStreamPointerClone / KsStreamPointerAdvanceOffsets
- Fix locating correct offset in KsStreamPointerScheduleTimeout, KsStreamPointerCancelTimeout, KsStreamPointerGetNextClone
- Further BDA support is on hold until ReactOS supports s/g in hal

svn path=/trunk/; revision=46774
2010-04-07 21:45:25 +00:00
Cameron Gutman
8cc9a982b5 [RAMDISK]
- Remove another unnecessary hack

svn path=/trunk/; revision=46771
2010-04-07 21:04:41 +00:00
Cameron Gutman
b270d2cf88 [HAL]
- Remove an unnecessary hack now that PnP manager doesn't suck (as much ;))

svn path=/trunk/; revision=46770
2010-04-07 20:37:13 +00:00
Cameron Gutman
2f488e4755 [INF]
- Reenable isapnp

svn path=/trunk/; revision=46769
2010-04-07 20:20:22 +00:00
Cameron Gutman
d9face83c6 [ISAPNP]
- Rewrite the ISAPnP driver based off EtherBoot source
- TODO: Resource stuff

svn path=/trunk/; revision=46768
2010-04-07 20:19:29 +00:00
Cameron Gutman
da1fa61cf0 [PCI]
- Fix a crash that occurs when a device is started which requires no resources

svn path=/trunk/; revision=46767
2010-04-07 20:18:44 +00:00
Gregor Schneider
2d3b57377f [SHELL32]
- Change "open with" dialog type to allow aborting, add code to handle WM_DESTROY messages
- Change full blue selection color to standard background blue, set selection background non white correctly
- Adjust German resource fields to make texts fit
See issue #4226 for more details.

svn path=/trunk/; revision=46766
2010-04-07 19:11:56 +00:00
Gregor Schneider
b800febcd7 [SHELL] Increase field width in German resources so the drive text can fit
svn path=/trunk/; revision=46765
2010-04-07 17:42:43 +00:00
Gregor Schneider
2052c57785 [SHELL32]
- Portuguese translation by Manuel Silva
See issue #1494 for more details.

svn path=/trunk/; revision=46764
2010-04-07 17:41:38 +00:00
Amine Khaldi
4e795c1f4c - Fix netstat build.
- Improve WSPSelect declarations in msafd.
- Include the correct wmilib header in wmi.
- Remove a commented out inclusion in ws2san.h

svn path=/branches/header-work/; revision=46763
2010-04-07 15:16:21 +00:00
Daniel Reimer
779a3240de Update all rapps entries.
svn path=/trunk/; revision=46762
2010-04-07 14:35:04 +00:00
Michael Martin
f1c016d7cd [usb/usbehci]
- Instead of converting GUID to UNICODE_STRING and comparing, use IsEqualGUIDAligned. Thanks Ged.
- Remove a unneeded header.

svn path=/trunk/; revision=46761
2010-04-07 11:09:36 +00:00
Michael Martin
56eef6c56d [usb/usbehci]
- Check the Interface GUID instead of only the version and size.
- Handle up to USB_BUS_INTERFACE_USBDI_V2 and USB_BUS_INTERFACE_HUB_V5. Driver gets further in win2k.
- Basic implementation of Direct Call Function CreateUsbDevice.
- Fix GetRootHubSymbolicName to return RootHub20.
- Change return status to not supported for functions not implemented yet.

svn path=/trunk/; revision=46760
2010-04-07 10:25:36 +00:00
James Tabor
01f84db1d4 [Win32k|Gdi32]
- Enable font batch and fixed setting brush origion. Use the new delete object functions in win32k.

svn path=/trunk/; revision=46758
2010-04-07 00:46:16 +00:00
Amine Khaldi
15ca120bcc - Move winsplp.h to PSDK and improve it.
- wspiapi.h : __inline -> FORCEINLINE, alter _WSPIAPI_STRNCPY_S and _WSPIAPI_SPRINTF_S_1
- winspool.h : Add missing PRINTER_NOTIFY_OPTIONS(_TYPE)
- ws2spi.h and also compstui.h : Group some related definitions.
- Add wine/ddk/winsplp.h and winddiui.h wrappers around our files, as wine code wants them in ddk.

svn path=/branches/header-work/; revision=46757
2010-04-07 00:02:57 +00:00
Gregor Schneider
06ad53455e [SHELL32]
- Updated Italian translation by Gabriel Ilardi
See issue #1494 for more details.

svn path=/trunk/; revision=46754
2010-04-06 18:51:13 +00:00
Johannes Anderwald
716555b739 [MSDVBNP]
- Register BDA Filter components

svn path=/trunk/; revision=46751
2010-04-06 15:47:15 +00:00
Johannes Anderwald
9b8546277a [MSDVBNP]
- Dynamically register DVB network provider categories

svn path=/trunk/; revision=46750
2010-04-06 15:08:16 +00:00
Johannes Anderwald
35ac4e1e92 [KSPROXY]
- Implement sending multiple media samples to tv tuner at once in order to avoid the kernel irp queue running out

svn path=/trunk/; revision=46749
2010-04-06 14:32:35 +00:00
Johannes Anderwald
f9e0e0d0b3 [NTOS]
- Device interface strings are null terminated

svn path=/trunk/; revision=46748
2010-04-06 14:00:02 +00:00
Michael Martin
2d1579957b [DDK]
- A better fix for r46738. Patch by Amine Khaidi.

svn path=/trunk/; revision=46747
2010-04-06 13:23:33 +00:00
Timo Kreuzer
22d1e6dc9e [LIBXML2]
revert last changes to 3rd party code and hack the config  file a bit more instead.

svn path=/branches/header-work/; revision=46746
2010-04-06 12:04:47 +00:00
Timo Kreuzer
195d698a9d [LIBXML2]
Don't define _WINSOCKAPI_

svn path=/branches/header-work/; revision=46745
2010-04-06 11:44:35 +00:00
Timo Kreuzer
a2ac545098 revert r46742
svn path=/trunk/; revision=46744
2010-04-06 00:20:53 +00:00
Timo Kreuzer
ce7c240a5e Compile scsiport.c for freeldr only on x86 builds
svn path=/trunk/; revision=46743
2010-04-06 00:19:48 +00:00
Timo Kreuzer
93be8ad5ab remove scsiport from arm build
svn path=/trunk/; revision=46742
2010-04-06 00:10:46 +00:00
Timo Kreuzer
84f23f68d1 - Add -fms-extensions for arm build
- Add _NT_TIB_KPCR to compensate for a missing NT_TIB (hackfix)
- add KERNEL_STACK_SIZE & co for arm
- Add missing KeGetCurrentThread prototype for arm
- define INTERLOCKED_RESULT for X86 only
- Add _CONTEXT and _EXCEPTION_RECORD forward declarations

svn path=/trunk/; revision=46741
2010-04-06 00:00:00 +00:00
Cameron Gutman
c96838e350 [INF]
- Fix the class GUID so devices appear in the correct category in device manager
- Remove trailing spaces on some device descriptions
- Remove the "(UniATA)" at the end of some device descriptions

svn path=/trunk/; revision=46740
2010-04-05 23:35:44 +00:00
Gregor Schneider
cf01e4674e [SHELL32]
- Updated polish translation by Olaf Siejka
See issue #1494 for more details.

svn path=/trunk/; revision=46739
2010-04-05 16:00:49 +00:00
Michael Martin
939ddddd64 [DDK]
- Remove PUSB_DEVICE_HANDLE as its not used in this header. Its defined in hubbusif.

svn path=/trunk/; revision=46738
2010-04-05 12:56:09 +00:00
Daniel Reimer
60ff1b6f80 Fix typo in FDC.inf.
svn path=/trunk/; revision=46737
2010-04-05 12:55:00 +00:00
Michael Martin
931c1f3776 [DDK]
- Add missing include.

svn path=/trunk/; revision=46736
2010-04-05 12:46:05 +00:00
Michael Martin
222e4f03b9 [usb/usbehci]
- Modify UsbDevice structure to hold all the device's configurations vice only the active one.
- Change code to handle new UsbDevice structure and data.
- Add missing Status assignment for IOCTLs get device handle and get hub count.
- When checking port status in deffered routine continue looping through the ports if the device is not high speed.
- Implement direct call functions InitializeUsbDevice, QueryDeviceInformation and GetControllerInformation.
- Fix incorrect return type for direct call function GetUSBDIVersion.
- Remove no longer needed structures from usbiffn.h as they are now in usbbusif.h and hubbusif.h.
- Code based on XEN PV Drivers by James Harper.

svn path=/trunk/; revision=46735
2010-04-05 12:23:30 +00:00
Gregor Schneider
817ca6d3d7 [SHELL]
- Updated Spanish translation by Javier Fernandéz
See issue #1494 for more details.

svn path=/trunk/; revision=46731
2010-04-05 09:51:49 +00:00
Christoph von Wittich
56ab20eda4 [quartz]
sync quartz to wine 1.1.42

svn path=/trunk/; revision=46730
2010-04-05 09:44:43 +00:00
Christoph von Wittich
59929a1790 [qedit]
sync qedit to wine 1.1.42

svn path=/trunk/; revision=46729
2010-04-05 09:40:24 +00:00
Christoph von Wittich
c174a972b4 [mscoree]
sync mscoree to wine 1.1.42

svn path=/trunk/; revision=46728
2010-04-05 09:39:06 +00:00
Christoph von Wittich
215581f39f [crypt32]
sync crypt32 to wine 1.1.42

svn path=/trunk/; revision=46727
2010-04-05 09:29:01 +00:00
Cameron Gutman
dfb82f3856 [NTOSKRNL]
- Revert r46720 and fix the issue properly

svn path=/trunk/; revision=46724
2010-04-04 21:43:51 +00:00
Johannes Anderwald
6141336a78 [KS]
- Add hack to IKsClock_DispatchDeviceIoControl
- Store device state before calling SetDeviceState
- Partly implement KsPinGetLeadingEdgeStreamPointer, KsStreamPointerDelete, KsStreamPointerClone, KsStreamPointerAdvanceOffsets
- Implement a worker routine to dispatch read/write stream requests for pin centric filters
- Tv tuner is now able to transfer MPEG2 TS to user mode, WIP, needs more testing

svn path=/trunk/; revision=46723
2010-04-04 21:27:07 +00:00
Gregor Schneider
7988cc7cad [SHELL32]
- Add a confirmation dialog for logoff operation
- English and German translation included
See issue #1494 for more details.

svn path=/trunk/; revision=46722
2010-04-04 18:37:39 +00:00
Gregor Schneider
a842dbcce0 [FORMAT] - Bail out when detecting invalid root path, instead of asking to insert a disk
See issue #4067 for more details.

svn path=/trunk/; revision=46721
2010-04-04 18:24:28 +00:00
Cameron Gutman
7be442943e - Move the code from my previous commit before signalling the user event
- Sorry for the wasted commit number

svn path=/trunk/; revision=46720
2010-04-04 18:22:54 +00:00
Cameron Gutman
2f22a7d7f8 [NTOSKRNL]
- Fix a case where we miss copying back the IO_STATUS_BLOCK into the UserIosb buffer
- Fixes the registry corruption caused when PnP wrote an invalid resource list (passed back via UserIosb->Information) to the registry
- Hopefully this also fixes a few other nasty bugs in other areas related to this issue

svn path=/trunk/; revision=46719
2010-04-04 18:17:51 +00:00
Gregor Schneider
4525984fb0 [CMD]
- Don't prefix double quotation marks during file completion
See issue #4491 for more details.

svn path=/trunk/; revision=46718
2010-04-04 14:04:24 +00:00
Aleksey Bragin
08f73a5234 - Sync user32 and gdi32 winetests to Wine-1.1.42.
svn path=/trunk/; revision=46717
2010-04-04 13:47:45 +00:00
Aleksey Bragin
917fa8ad14 [UNIATA]
- Adjust timings in WaitOnBaseBusy, WaitForDrq, WaitShortForDrq to match old atapi driver. Thanks Caemyr for testing and finding optimal values (which are slightly below the values used in this commit). The proper solution would be to implement adaptive delays scaling.
See issue #4995 for more details.

svn path=/trunk/; revision=46716
2010-04-04 13:43:56 +00:00
Eric Kohl
2af6abad95 [NTOSKRNL]
Ignore inherit only ACEs in a DACL.

svn path=/trunk/; revision=46714
2010-04-04 12:34:53 +00:00
Cameron Gutman
141ca81c82 [NTOSKRNL]
- Fix the type passed to ZwSetValueKey

svn path=/trunk/; revision=46712
2010-04-04 05:17:29 +00:00
Cameron Gutman
38bae887c2 [NTOSKRNL]
- Don't manually write a device description for detected devices
- Instead, let PnpRoot report it in response to IRP_MN_QUERY_DEVICE_TEXT

svn path=/trunk/; revision=46711
2010-04-04 04:39:56 +00:00
Cameron Gutman
93c0c968c0 [NTOSKRNL]
- Remove an unused member from PNPROOT_DEVICE
- Don't build a bogus resource list if no resources are required
- Fixes a crash during resource arbitration because the created resource requirements list was malformed

svn path=/trunk/; revision=46710
2010-04-04 02:59:31 +00:00
Cameron Gutman
e0b95b05b0 - Remove a leftover debug print
svn path=/trunk/; revision=46709
2010-04-04 01:34:33 +00:00
Cameron Gutman
e90ce939a6 [NTOSKRNL]
- Revert part of r46707
- Remove a hack in PnpRoot that assembled a CM_RESOURCE_LIST from a CM_PARTIAL_RESOURCE_DESCRIPTOR but also corrupted proper resource lists (such as from detected devices in IoReportDetectedDevice)
- Add a simple resource arbiter that finds an unused resource in the range provided in the resource requirements list. It's not perfect but it's a start.
- Start enforcing resource conflicts
- Fix incorrect code that was writing a CM_PARTIAL_RESOURCE_DESCRIPTOR instead of a CM_RESOURCE_LIST (the hack above was compensating for this) which result in BootConfig being a REG_PARTIAL_RESOURCE_DESCRIPTOR type on certain devices and a REG_RESOURCE_LIST on others
- Fix a broken check for no partial resource descriptors

svn path=/trunk/; revision=46708
2010-04-04 01:18:41 +00:00
Cameron Gutman
28971e63f3 [NTOSKRNL]
- Pass IRPs down to the root PDO if we don't handle it
- Don't complain if we get an IRP that we don't expect. We are the parent bus driver for the device so we are responsible for completing those IRPs.

svn path=/trunk/; revision=46707
2010-04-04 00:33:19 +00:00
Cameron Gutman
d6d462f203 [PCI]
- Handle IRP_MN_QUERY_DEVICE_RELATIONS for TargetDeviceRelation for PCI's child PDOs

svn path=/trunk/; revision=46706
2010-04-04 00:00:21 +00:00
James Tabor
05799d4a57 [Gdi32]
- Adding batch support for ExtSelectClipRgn and update to the batch object structure.

svn path=/trunk/; revision=46705
2010-04-03 22:05:03 +00:00
Eric Kohl
2b4f3854dd [NTOSKRNL]
- Check access rights according to the DACL. Granted rights are removed from the remaining rights variable.
- Return success only if there are no more remaining rights. Return failure otherwise.
- Remove outdated code.

svn path=/trunk/; revision=46703
2010-04-03 21:21:52 +00:00
Aleksey Bragin
71d61c9c59 [NTOSKRNL/CONFIG]
- Flusher lock fixes: wrong kind of lock,total mess (and the wrong kind of lock). Properly fixed throughout cmapi.c, but still missing in many other places.
- Add support for detecting loading of an already loaded hive.
- Start adding calls to CmpReportNotify to support registry callbacks.
- Do work needed to flush notifications for a deleted node (but CmpFlushNotify not yet implemented).
- Add support for adding each newly loaded hive to the HiveList key in the registry (but CmpAddHiveToFileList not yet implemented).
- Add some ViewLock acquire/releases where needed.
- Load the key in a faster way (Ob vs Zw)
- Add checks everywhere for HvMarkCellDirty success. In future (when log/backup file is enabled), it can return FALSE (e.g. when we are out of space).
- Change logic in CmpDoFlushAll to only flush a hive if it won't shrink (in the future, flushing may lead to hive shrinkage for efficiency).
- Add SEH2 protection to all CmApis that may deal with user-mode data.
- Add HvTrackCellRef/HvReleaseCellRef for tracking cell references in scenarios where we might need many GetCell/ReleaseCell calls. For now stubbed to only work with up to 4 static references.
- Properly unlock/free in some failure paths in some of the CM APIs.
- Add some missing HvReleaseCell in paths where it was missing.
- Try to fix hack in enumerate key.
- Fix wrong usage of KeQuerySystemTime. It was called twice to save it in 2 different places. Instead, there should be only one call, and then duplicate the value across.
- Fix logic in CmpSetValueExistingData/Key.

Tested with winetests and .NET framework 1.1 installation which fully completes.

svn path=/trunk/; revision=46702
2010-04-03 20:22:32 +00:00
Gregor Schneider
eb82a3b915 [cmd] Emit line breaks DOS/Windows style (CRLF), instead of Linux style (LF only)
See issue #4509 for more details.

svn path=/trunk/; revision=46700
2010-04-03 17:24:10 +00:00
Gregor Schneider
e9a0761db9 [taskmgr] Hide CPU graph options on single CPU systems
See issue #2144 for more details.

svn path=/trunk/; revision=46699
2010-04-03 17:23:27 +00:00
Eric Kohl
d384dbd46a [NTOSKRNL]
- Implement the calculation of access rights for the MAXIMUM_ALLOWED case.

svn path=/trunk/; revision=46695
2010-04-03 10:52:17 +00:00
Timo Kreuzer
24fc3ac27d Remove svn:mergeinfo property from several files
svn path=/branches/header-work/; revision=46694
2010-04-03 08:03:17 +00:00
Sir Richard
959116f521 [NTOS]: Implement Configuration Manager routines for building a driver list, sorting it, detecting circular dependencies and ordering, combining groups, tags, group orders and tag orders, etc. Replaces the "drvrlist" I/O interface currently in ReactOS.
[NTOS]: Use the new Cm interface in IopInitializeSystemDrivers to parse the ordered list of system drivers to load. Make it use ZwLoadDriver directly instead of having a hacked IopLoadDriver function.
[NTOS]: Drivers should not show up loading n times a reboot now (some drivers seemed to do this in the past when they failed to load).
[NTOS]: The system driver code could be further improved by checknig if the driver has already been loaded, or attempted and failed to load, but it is already much better now than in the past.
[PERF]: Boot-time improvement since the new system driver loading code uses low-level Cm interfaces (portability side-effect: can be shared with FreeLDR) instead of the complex parse-based object-manager-based system-calls.

svn path=/trunk/; revision=46693
2010-04-03 07:44:38 +00:00
James Tabor
d7c28ad92a - Simplifying MakeInfoDC.
svn path=/trunk/; revision=46692
2010-04-02 23:52:38 +00:00
Sylvain Petreolle
066b696c33 Fix MP install.
svn path=/trunk/; revision=46691
2010-04-02 19:52:03 +00:00
Sir Richard
6075ae9a8f [NTOS]: Rewrite boot driver loading code (not the driver code itself) to use the boot loader's BootDriverListHead, instead of parsing InOrderListHead and cherry-picking ".sys" files. This is the last incompatibility with Windows.
[NTOS]: Use group prioritiy, tag numbers, and tag priority to determine the correct loading order for boot drivers, instead of just parsing the linked list. Dependencies work now!
[NTOS]: Load any DLLs that are driver-dependent with MmCallDllInitialize. Previously, these .DLLS were ignored and drivers could lose dependencies.

svn path=/trunk/; revision=46690
2010-04-02 17:57:33 +00:00
Eric Kohl
74e30b9093 [NTOSKRNL]
- Add the check for ACESSS_SYSTEM_SECURITY.
- Keep the desired access rights that have not been granted yet in the variable RemainingAccess.
- Handle the MAXIMUM_ALLOWED case if the DACL is empty.

svn path=/trunk/; revision=46689
2010-04-02 17:46:24 +00:00
Johannes Anderwald
809944b668 [PSDK]
- Fix build

svn path=/trunk/; revision=46688
2010-04-02 17:19:57 +00:00
Cameron Gutman
3d1eaacc72 [PCI]
- Fix the Vector value of the interrupt resource
- Actually set the device to use the interrupt that the PnP manager gave us

svn path=/trunk/; revision=46687
2010-04-02 17:07:38 +00:00
Cameron Gutman
d214e12390 [FREELOADER]
- Fix the ShareDisposition value of COM port interrupts 
- Fix the Vector value of the interrupt resources

svn path=/trunk/; revision=46686
2010-04-02 17:05:39 +00:00
Johannes Anderwald
215e199219 [KS]
- Instantiated pins use as the control mutex the mutex from the filter
- Fix KsAcquireControl & KsReleaseControl
- Fix handling of IRP_MN_QUERY_INTERFACE
- Filter centric ks filters expect an array of KSPROCESSPIN_INDEXENTRY. Allocate array when intializing filter / new pin factory is added
- Store result of pin intersection handler when result is STATUS_BUFFER_OVERFLOW
- Implement setting / retrieving of master clock
- Implement setting / retrieving pin state
- Partly implement setting pin data format
- Implement IKsReferenceClock interface
- Implement KsPinGetReferenceClockInterface
- Add sanity checks to KsGetPinFromIrp
- Partly implement handling IOCTL_KS_READ_STREAM / IOCTL_KS_WRITE_STREAM
- Supply filter property sets when an IOCTL_KS_PROPERTY request arrives
- Release again filter mutex when closing the pin
- Implement allocating a clock
- Tuner pin fails with STATUS_IO_DEVICE_ERROR when set to KSSTATE_RUN, needs more investigation

svn path=/trunk/; revision=46685
2010-04-02 16:38:48 +00:00
Johannes Anderwald
b4a44e7a78 [KSPROXY, MSDVBNP]
- Remove remaining DebugBreak
- Add debug traces

svn path=/trunk/; revision=46684
2010-04-02 16:25:18 +00:00
Eric Kohl
249d39c17a [NTOSKRNL]
- Check the SeTakeOwnership privilege only if WRITE_OWNER access is desired.
- Move the check for token ownership from SepAccessCheck because this check grants access rights rather than checking them.

svn path=/trunk/; revision=46683
2010-04-02 15:13:24 +00:00
Johannes Anderwald
8051b8115a [NTOS]
- Make sure SymbolicLink is null terminated

svn path=/trunk/; revision=46682
2010-04-02 14:21:15 +00:00
Johannes Anderwald
95650313d9 [NTOS]
- Add support for reference strings in IoOpenDeviceInterfaceRegistryKey

svn path=/trunk/; revision=46681
2010-04-02 14:01:55 +00:00
Johannes Anderwald
90a11f48e9 [MMIXER]
- Copy device name when initializing WAVEINCAPS / WAVEOUTCAPS
- Fixes display wave device name in cpl / waveInGetDevCaps / waveOutGetDevCaps

svn path=/trunk/; revision=46680
2010-04-02 13:49:10 +00:00
James Tabor
9e92286f5c [Win32k]
- Implement MakeInfoDC and support functions. Dedicated to Timo.

svn path=/trunk/; revision=46679
2010-04-02 11:53:14 +00:00
Amine Khaldi
85da9e3592 Forgot this one.
svn path=/branches/header-work/; revision=46678
2010-04-02 11:44:39 +00:00
Timo Kreuzer
b81a016b9e Remove svn:mergeinfo property from several files
svn path=/trunk/; revision=46677
2010-04-02 11:35:58 +00:00
Amine Khaldi
1a094fe2b7 [PSDK]
- Fix a couple of macro names.

svn path=/branches/header-work/; revision=46676
2010-04-02 11:32:01 +00:00
Timo Kreuzer
6c59bab9ba fix macro name in iptypes.h
svn path=/branches/header-work/; revision=46675
2010-04-02 11:25:29 +00:00
Amine Khaldi
f14dc8bd4e [PSDK]
- winddiui.h : Fix compstui.h inclusion.

svn path=/branches/header-work/; revision=46674
2010-04-02 11:03:53 +00:00
Amine Khaldi
e33f57dc6a [DDK]
- Move winddi.h and winddiui.h to PSDK.

svn path=/branches/header-work/; revision=46673
2010-04-02 11:00:45 +00:00
Amine Khaldi
350280885d [PSDK]
- winsock.h : Fix a typo, and remove some duplicate definitions.

svn path=/branches/header-work/; revision=46672
2010-04-02 10:59:35 +00:00
Timo Kreuzer
c3f04c87e0 - fix _EXTPUSH (DUMMYUNIONNAME was used twice, like in the broken ms headers)
- add wine/ddk/compstui.h wrapper around our file, as wine code wants it in ddk

svn path=/branches/header-work/; revision=46671
2010-04-02 10:45:00 +00:00
Timo Kreuzer
d12179e0ef fix mingw.rbuild
svn path=/branches/header-work/; revision=46670
2010-04-02 10:19:13 +00:00
Timo Kreuzer
9f70bfed41 fix rbuild file
svn path=/branches/header-work/; revision=46669
2010-04-02 10:18:35 +00:00
Amine Khaldi
e06395dacf Sync with trunk head (part 1 or 2)
svn path=/branches/header-work/; revision=46667
2010-04-02 10:03:25 +00:00
Amine Khaldi
e998dec477 [PSDK]
- Add missing mstcpip.h, wsipv6ok.h and wspiapi.h definitions.

svn path=/branches/header-work/; revision=46666
2010-04-02 09:14:55 +00:00
Cameron Gutman
66c160f1d6 [NTOSKRNL]
- Implement IoOpenDeviceInterfaceRegistryKey
- Dedicated to Janderwald

svn path=/trunk/; revision=46665
2010-04-02 07:29:54 +00:00
Sir Richard
2f60720f98 [HALACPI]: Implement HalpQueryResources: We take the resource requirements, find the SCI requirement, and convert it into a resource. The ACPI HAL should now report its resoures once the PnP HAL driver model is enabled.
svn path=/trunk/; revision=46664
2010-04-02 06:46:33 +00:00
Sir Richard
cbc12bf14d [HALACPI]: Implement querying HALACPI resource requirements. If it exists, the SCI Vector is added to the list as a requirement.
svn path=/trunk/; revision=46663
2010-04-02 06:28:43 +00:00
Cameron Gutman
c61b788c62 - Forgot this file
svn path=/trunk/; revision=46661
2010-04-02 04:58:41 +00:00
Michael Martin
44cbfd23f2 [usb/usbehci]
- Implement tracking port status and change status.
- When device has connected on port, set the port status. For now assume high speed device.
- Fix returning root hubs Status Change Endpoint for URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER.
- Implement USB_REQUEST_GET_STATUS for functions URB_FUNCTION_GET_STATUS_FROM_DEVICE and URB_FUNCTION_CLASS_OTHER. Implement USB_REQUEST_CLEAR_FEATURE and USB_REQUEST_SET_FEATURE.
- Implement IOCTL_INTERNAL_USB_GET_DEVICE_HANDLE to return the root hubs device handle, fix IOCTL_INTERNAL_USB_GET_HUB_COUNT to return 1 vice 0 as the root hub must be accounted for.
- Code based on XEN PV Drivers by James Harper.

svn path=/trunk/; revision=46660
2010-04-02 04:49:01 +00:00
Cameron Gutman
b121447744 [NTOSKRNL]
- Fix certain scenarios in which a device node can have a NULL instance path which causes registry corruption when we try to write registry keys for that device node
- Create the 'Control' subkey and add the ActiveService value inside it
- Fix a memory leak
- TODO: Fill AllocConfig and FilteredConfigVector

svn path=/trunk/; revision=46659
2010-04-02 03:47:14 +00:00
Cameron Gutman
623bc96350 - Fix the cmbatt.sys path
- Add compbatt.sys

svn path=/trunk/; revision=46656
2010-04-01 22:28:35 +00:00
Cameron Gutman
77d4bd5cd3 [CMBATT]
- Remove my cmbatt driver and use lassy's cmbatt driver instead

svn path=/trunk/; revision=46655
2010-04-01 22:24:34 +00:00
Cameron Gutman
633c67bdbf [NTOSKRNL]
- Add 2 parameters to IopUpdateResourceMap to allows for updating different keys
- Implement IopDetectResourceConflict and IopCheckForResourceConflict but don't report the conflicts until we get a resource arbiter
- Halfplement IoReportResourceForDetection

svn path=/trunk/; revision=46654
2010-04-01 22:10:38 +00:00
Sir Richard
a22393f57a [HAL]: Whoever came up with this MINIHAL idea...
svn path=/trunk/; revision=46653
2010-04-01 20:54:12 +00:00
Sir Richard
881284946b [HAL]: Move all HAL-specific names to halacpi.c and halpcat.c. This includes the PnP Device Name (e_isa_up vs acpipic_up", the HAL Name, and whether or not the firmware mapper should be disabled (tells I/O Manager to skip legacy detection).
[HAL]: Implement HalpReportUsage! On ACPI, all is implemented, on PC/AT, we don't yet parse the ROM blocks in the registry (but does FreeLDR even put them in?), and I don't think we'll ever enable 16-bit port decoding since FreeLDR never detects ISA vs EISA machines (so we always run as ISA).
[HAL]: Fill out the "????" entries in HalpDefaultIoSpace... more typical Alex "I copied something without knowing what it meant"-magic.


svn path=/trunk/; revision=46652
2010-04-01 20:46:55 +00:00
Sir Richard
87c7a8930b [HAL]: HalpActiveProcessors is KAFFINITY, not LONG. Also, MP HAL lacked it.
svn path=/trunk/; revision=46651
2010-04-01 20:42:43 +00:00
Sir Richard
a7d94d59ba [HAL]: Fucken' A, I knew I'd forget one.
svn path=/trunk/; revision=46650
2010-04-01 20:41:46 +00:00
Sir Richard
dae14f1215 [HAL]: Smarter .rbuild separation so that ACPI and PC/AT hal don't rebuild the generic library twice. Now generic stays generic, and generic_pcat/acpi are add-on libaries just like generic_up and generic_mp.
svn path=/trunk/; revision=46649
2010-04-01 20:41:04 +00:00
Johannes Anderwald
d80fb80a07 [DEVENUM]
- Extend device enumerator to support class enumerators of device interfaces

svn path=/trunk/; revision=46648
2010-04-01 19:48:49 +00:00
Sir Richard
111a56f09b [HAL]: Split HalReportResouceUsage into per-platform function, since PC/AT HAL and ACPI HAL have different requirements. As a bonus, the ACPI HAL now identifies itself as ACPI Compatible, instead of using the "PC Compatible" moniker.
[HAL]: Implement HalpGetNMICrashFlag so you can do NMI crashes now.
[HAL]: Implement basic HalpRegistryPciDebuggingDeviceInfo for the day someone implements the Kd routines.
[HAL]: HalpInitializePciBus needs to be different between "Bus Handler HALs" (non-ACPI/embedded) and "Non-Bus Handler HALs" (ACPI/x64). On ACPI, all we do is setup the raw PCI Stubs and NMI crashing. PC/AT will need more involved code.

svn path=/trunk/; revision=46647
2010-04-01 19:42:07 +00:00
Johannes Anderwald
b021015c8f [MSDVBNP]
- Remove DebugBreak
- Implement IPin::Connect, IPin::ReceiveConnection, IPin::Disconnect, IPin::ConnectedTo
- Remove spaces
- DVBT Network Provider can now connect tv tuner in ReactOS

svn path=/trunk/; revision=46646
2010-04-01 19:20:12 +00:00
Sir Richard
3ab04b5faa [PCI]: New PCI driver, for the future. Needed for embedded support (ARM/etc) and anything other than your 3 emulators and neighboor's custom-made-to-barely-boot-your-OS machine.
svn path=/trunk/; revision=46645
2010-04-01 19:07:40 +00:00
Cameron Gutman
ccc358b878 [NTOSKRNL]
- Store the device's assigned resources (raw and translated) in the RESOURCEMAP key
- Implement IopUpdateResourceMap which is responsible for updating the key with new resource information and setting the DNF_RESOURCE_ASSIGNED flag
- Fix IoGetDeviceProperty which was returning incorrect information for DevicePropertyPhysicalDeviceObjectName
- Take a look at HKLM\Hardware\ResourceMap\PnP Manager\PnpManager and see the beautiful resource lists ;)
- NOTE: Regedit has a bug so the "\Device\" prefix is hidden but you will see that it is there if you look with explorer's NT object viewer

svn path=/trunk/; revision=46644
2010-04-01 18:17:25 +00:00
Johannes Anderwald
d66a0171a1 [KS]
- Partly implement pin property handling by using supplied pin descriptor properties
- Dynamically allocate connection format and put in pin's object bag
- Remove bogus assert as pins don't have to provide a PinDispatchCreate function
- Tuner device filter and capture device filter now successfully connect and instantiate corresponding input / output pins

svn path=/trunk/; revision=46643
2010-04-01 17:22:21 +00:00
Johannes Anderwald
c44cdc2405 [BDASUP]
- Register an empty filter descriptor as pins, nodes, connections will be added later dynamically
- Fixes the duplicate input / output pins visible with graphedt
- Add the filter automation table to the object bag so it gets deleted when filter factory is destroyed

svn path=/trunk/; revision=46642
2010-04-01 17:18:13 +00:00
Johannes Anderwald
59ba9ccd77 [KS]
- Refactor & bugfix handling of KSPROPERTY_PIN_INTERFACES
- Refactor & bugfix IKsFilter_fnAddProcessPin for filter centric pins
- Fix handling of filter pin property sets
- Copy filter pin templates when filter is initialized.
- Pins are now able to instantiated but processing is pin requests is not yet implemented

svn path=/trunk/; revision=46640
2010-04-01 14:53:16 +00:00
Cameron Gutman
4c9fecffae [NTOSKRNL]
- Change PnpRootCreateDevice's ServiceName parameter to be a full service name so it can be used by IoReportDetectedDevice (for reporting devices without the "LEGACY_" prefix) and change all of its callers accordingly
- Remove the broken implementation of IoReportDetectedDevice and replace it with a fully working implementation
- There is still a bug that it creates a new device instance every boot, but unlike the previous code, at least it creates one ;-)

svn path=/trunk/; revision=46639
2010-04-01 06:58:32 +00:00
Timo Kreuzer
4ee89fa8f2 [HAL]
Try to fix build

svn path=/trunk/; revision=46636
2010-04-01 04:19:12 +00:00
Johannes Anderwald
453f43bf77 [KS]
- Fix a bad cast in KsGetDevice which led to a crash
- Store IKsFilter in create item storage which is needed later by the pin property handler
- There is no need to copy the existing pin factories, just add pin factories which are added dynamically
- Handle possible null values for node types & names
- Put allocated objects into object bags which can be released later automatically
- Fix access IKsFilterFactory interface in IKsFilterFactory_Create
- graphedt can now 'open' tv tuner and enumerate pins / communication / interface. Code required for devenum not yet commited

svn path=/trunk/; revision=46634
2010-04-01 03:14:45 +00:00
Johannes Anderwald
40c15eccb7 [BDASUP]
- Allocate KSFILTER_DESCRIPTOR before passing to KsCreateFilterFactory
- Allocate KSPIN_DESCRIPTOR_EX before passing to KsFilterCreatePinFactory
- Use stored BDA_FILTER_TEMPLATE when caller doesnt pass any

svn path=/trunk/; revision=46632
2010-04-01 02:35:37 +00:00
Johannes Anderwald
f8ed547043 [PSDK]
- Fix _KSNODE_DESCRIPTOR definition

svn path=/trunk/; revision=46631
2010-04-01 00:41:09 +00:00
Eric Kohl
baeb295134 [NTORKRNL]
SepAccessCheck: Deny access if the DACL is is empty (but not NULL).

svn path=/trunk/; revision=46629
2010-03-31 21:02:38 +00:00
Sir Richard
9e478e990f [HALACPI]: Begin rough implementation of the Hal ACPI PnP Driver. Will probably need some changes to the ReactOS PnP Manager to work properly (it is not initialized yet).
[HAL]: Implement helper registry routine.
[HAL]: Implement function to set ACPI mode the "Windows way", which is to enable/disable the firmware mapper. PnP Manager should probably check this in the future.

svn path=/trunk/; revision=46628
2010-03-31 20:58:42 +00:00
Sir Richard
44c2da0137 [NDK]: Add missing Io functions.
svn path=/trunk/; revision=46627
2010-03-31 20:54:22 +00:00
Eric Kohl
abf91accdb [NTOSKRNL]
- Move subject context locking to SeAccessCheck because NtAccessCheck already locks it.
- Do not use the captured security descriptor in NtAccessCheck yet, because SeCaptureSecurityDescriptor seems to create broken SDs.

svn path=/trunk/; revision=46626
2010-03-31 19:53:19 +00:00
Johannes Anderwald
f33278167e [KS]
- Enable registered device interfaces when device successfully initializes
- Fix totally broken KsFilterFactorySetDeviceClassesState implementation

svn path=/trunk/; revision=46625
2010-03-31 17:33:49 +00:00
Johannes Anderwald
a22801fd63 [PSDK]
- Add KsFilterFactorySetDeviceClassesState prototype

svn path=/trunk/; revision=46624
2010-03-31 17:13:41 +00:00
Johannes Anderwald
9974fe1a9c [KS]
- Fix a malicous bug in KsAddItemToObjectBag which caused inifite loops while iterating through object bags
- Use a different mutex than the device mutex for object bags
- Initialize device / object bag mutex when initializing the device
- Initialize object bag lists when initializing the device
- Set device / system power state before calling device Add's routine
- Check if object driver extension has already been allocated in KsInitializeDevice
- Hack KsFilterFactoryUpdateCacheData to return STATUS_SUCCESS
- PinnacleSys PCTV DVB-T tv tuner now successfully initializes and registers its device interfaces

svn path=/trunk/; revision=46623
2010-03-31 16:12:02 +00:00
Johannes Anderwald
af6dcb5bf0 [BDASUP]
- Fix initialization of filter /  pin automation table
- Add debug traces

svn path=/trunk/; revision=46622
2010-03-31 15:37:36 +00:00
Timo Kreuzer
1d4dbb9cb7 [KDCOM]
Include ntifs, instead of ntddk, needed by NDK

svn path=/trunk/; revision=46621
2010-03-31 15:19:01 +00:00
Timo Kreuzer
99e6ad789f [NTOS]
Add internal amd64 headers.

svn path=/trunk/; revision=46620
2010-03-31 15:11:20 +00:00
Aleksey Bragin
fbf4909187 [NTOSKRNL/CONFIG]
- Implement new (correct) hive flusher lock/release routines, unused right now.

svn path=/trunk/; revision=46619
2010-03-31 14:27:11 +00:00
Aleksey Bragin
3b722382ee [NTOSKRNL/CONFIG]
- Stub support for global quota enable.
- Stub support for notifications.
- Add a source file for a future HiveList implementation.

svn path=/trunk/; revision=46618
2010-03-31 14:10:24 +00:00
Aleksey Bragin
0254cbbcf9 [NTOSKRNL/CONFIG]
- Add more assert macros for registry operations: locked or loading, exclusively locked or loading, hash and KCB locks, locked for flushing.
- Add macros for getting alloc page from KCB and delay alloc item.

svn path=/trunk/; revision=46617
2010-03-31 13:25:51 +00:00
Timo Kreuzer
0e774b5a9b [tchar.h]
enable _tcsnlen definition

svn path=/trunk/; revision=46616
2010-03-31 12:16:42 +00:00
Timo Kreuzer
572aa7509d [RBUILD]
- Don't link to RosBE's ofmt_stub.a, as we have our own version now.
- Don't link to libcoldname.a on amd64, instead link to libgcc_eh.a

svn path=/trunk/; revision=46615
2010-03-31 11:57:21 +00:00
Timo Kreuzer
3cedfaae34 [KERNEL32]
Add RtlAddFunctionTable export for amd64

svn path=/trunk/; revision=46614
2010-03-31 10:21:14 +00:00
Sir Richard
d623299da0 [HALACPI]: Implement beginning of HAL ACPI support (HalpSetupAcpiPhase0). Tested on VMWare, where it found the FACP, SRAT, RSDT and MCFG and the ACPI Timer at 1008H. BOOT and DBGP are not found (optional features).
[HALACPI]: Support depends on boot loader creating the ACPI BIOS Multi Node structure in MultiFunctionAdapter in the hardware tree. It seems that FreeLdr does this (wow!) correctly!
[HALACPI]: Implement HAL ACPI Table Cache.
[HALACPI]: HAL ACPI Table Overrides from the boot loader are not supported (doubt FreeLdr does this).
[HALACPI]: The next steps are to write the HAL ACPI PnP Driver and HAL ACPI Power Driver.

svn path=/trunk/; revision=46613
2010-03-31 04:43:39 +00:00
Sir Richard
53b637ba7e [HAL]: Add Phase 0 HAL Heap Allocation/Mapping/Unmapping APIs, remove current broken APIs that depend on Mm having been initialized. These APIs use the HAL Heap that's typically at 0xFFC00000. FreeLDR seems to map this region correctly.
[HAL]: Although currently implemented for ACPI support (to come), these APIs can now also be used to enable DMA in Phase 0 like NT, instead of only in Phase 1 like ReactOS.

svn path=/trunk/; revision=46612
2010-03-31 04:38:20 +00:00
Sir Richard
bd4c20220d [HALACPI]: Add some missing signatures.
svn path=/trunk/; revision=46611
2010-03-31 04:34:26 +00:00
Sir Richard
03317815a6 [HALACPI]: Add HAL ACPI header.
svn path=/trunk/; revision=46610
2010-03-31 04:26:04 +00:00
Johannes Anderwald
0225179140 [SETUPAPI]
- Implement SetupDiOpenDeviceInterfaceW

svn path=/trunk/; revision=46609
2010-03-31 02:43:57 +00:00
Amine Khaldi
ea7077c9db [BATTC]
- Correct the inclusion of wmilib
[PSDK]
- ws2tcpip.h improvements, some formatting fixes, remove some duplicate definitions between winsock2.h and ws2def.h
[XDK]
- Move some definitions from ntifs.template.h to more appropriate places.
[NTIFS]
- Reflect XDK changes.

svn path=/branches/header-work/; revision=46608
2010-03-30 21:50:05 +00:00
Timo Kreuzer
d0747d85c1 fix a typo
svn path=/trunk/; revision=46607
2010-03-30 21:35:52 +00:00
Timo Kreuzer
26109e48de [MINGW]
- add back getopt.c (needed by rosapps)
- add ofmt_stub.c and cx_pure_virtual.c


svn path=/trunk/; revision=46606
2010-03-30 21:28:38 +00:00
Eric Kohl
d69c4c5248 [NTOSKRNL]
- Capture the security descriptor before passing it to SepAccessCheck.
- Move the security descriptor check and the impersonation level check from SepAccessCheck to SeAccessCheck.

svn path=/trunk/; revision=46605
2010-03-30 20:16:26 +00:00
Timo Kreuzer
ffd48df713 [WINE]
define interlocked_xchg_add to InterlockedExchangeAdd

svn path=/trunk/; revision=46604
2010-03-30 19:59:29 +00:00
Johannes Anderwald
ebf3dfc568 [SETUPAPI]
- Open Device Class with desired access

svn path=/trunk/; revision=46603
2010-03-30 19:43:09 +00:00
Eric Kohl
e3949430d7 [NTOSKRNL]
- Move kernel-mode check around, so we won't run it twice when calling NtAccessCheck.
- Fix a wrong check for security descriptors with a NULL-DACL.

svn path=/trunk/; revision=46602
2010-03-30 17:01:23 +00:00
Timo Kreuzer
4c530b8f2a [NTOS]
Update pspec file with amd64 exports, use -arch= where appropriate

svn path=/trunk/; revision=46601
2010-03-30 16:59:52 +00:00
Cameron Gutman
9dfa15a2cd [NTOSKRNL]
- Disable ACPI until the resource detection problems are resolved

svn path=/trunk/; revision=46600
2010-03-30 16:34:17 +00:00
Timo Kreuzer
5ee8d1be0d merge from amd64 branch:
38333
[INTRIN_X86]
#define _alloca() to __builtin_alloca() on amd64

46388
[INTRIN_X86]
- Add __stosq, __movsq, _bittest64

svn path=/trunk/; revision=46599
2010-03-30 16:25:51 +00:00
Timo Kreuzer
018a23596b [KERNEL32]
Add some amd64 exports

svn path=/trunk/; revision=46598
2010-03-30 16:17:48 +00:00
Timo Kreuzer
794e740131 Merge from amd64 branch:
46478
[CRT]
- define _CRTBLD
- rename float_t/double_t/long_double_t to float_s/double_s/long_double_s to avoid name conflicts

46511
[FREELDR]
snprintf -> _snprintf

46534
[CRT]
- Set crt="static" in freeldr, rtl, bmfs, ftfd, rtl, mini_hal
- define "CRTDLL" in ntdll, crtdll, msvcrt, msvcrt20, msvcrt40

46535
[CRT HEADERS]
- add _mingw_mac.h from ming-w64 and include it into _mingw.h
- Update _CRTIMP definition
- Fix definition of _wctype
- onexit is not _CRTIMP

46537
[MINGW]
Update mingw library to mingw-w64 trunk (mingw-w64-src_20100325)

46538
Apply MSVC compilation fix.

46539
[MINGW]
Apply MSVC compilation fixes

svn path=/trunk/; revision=46597
2010-03-30 13:30:36 +00:00
Amine Khaldi
05b6c7f4c9 [PSDK]
- Improve ws2spi.h

svn path=/branches/header-work/; revision=46596
2010-03-30 13:24:23 +00:00
Johannes Anderwald
c78ad5ef45 [BDAPLGIN, KSPROXY, MSDVBNP, MSVIDCTL]
- Register DLLs when ReactOS is installed

svn path=/trunk/; revision=46594
2010-03-30 11:52:50 +00:00
Johannes Anderwald
b884e9009c - Add bdasup to bootcd
svn path=/trunk/; revision=46593
2010-03-30 11:28:10 +00:00
Timo Kreuzer
8627f5ae27 Merge from amd64-branch:
44467, 44468, 44470, 44471, 46524
[OLDNAMES]
Update moldname-msvcrt.def
Add a proper oldnames lib, instead of implicitly including it with mingw.

46526
[FTP/DHCP]
- remove the oldnames hack, as we now have a proper oldnames lib (included in mingw_common)
- protect struct timezone from redefinition

svn path=/trunk/; revision=46592
2010-03-30 11:09:21 +00:00
Amine Khaldi
e6d8f850c7 [PSDK]
- Add missing ws2ipdef.h definitions.
- Group related definitions.

svn path=/branches/header-work/; revision=46591
2010-03-30 10:39:52 +00:00
Amine Khaldi
106198108d [PSDK]
- ws2bth.h and ws2def.h : Introduce pragma once and add several missing definitions.
[DDK]
- Improve csq.h

svn path=/branches/header-work/; revision=46590
2010-03-30 09:52:11 +00:00
Timo Kreuzer
a5bffa5902 Don't add underscore prefix to amd64 symbols
svn path=/trunk/; revision=46588
2010-03-30 07:56:58 +00:00
Timo Kreuzer
7809161280 Merge the rest from header branch.
svn path=/trunk/; revision=46582
2010-03-30 05:34:20 +00:00
Timo Kreuzer
ad81859d64 Simplify definition of PIMAGE_NT_HEADERS
svn path=/branches/header-work/; revision=46581
2010-03-30 05:22:15 +00:00
Timo Kreuzer
ce874eb1b4 add PIO_CSQ_INSERT_IRP_EX to wdm.h
svn path=/trunk/; revision=46580
2010-03-30 05:09:48 +00:00
Cameron Gutman
c0add4aee8 [RTL]
- Fall back to the default user key if RtlFormatCurrentUserKeyPath fails (perhaps we are in a system process)

svn path=/trunk/; revision=46578
2010-03-30 03:26:35 +00:00
Amine Khaldi
f7e10df004 [PSDK]
inaddr.h : Fix formatting.
qos.h : Introduce pragma once along with several missing definitions.
winsock(2).h : Introduce pragma once, apply consistent formatting, add so many missing definitions and remove several unrelated ones.

svn path=/branches/header-work/; revision=46577
2010-03-29 23:58:01 +00:00
Johannes Anderwald
98782624bf - Fix trunk installation breakage introduced in 46570
svn path=/trunk/; revision=46576
2010-03-29 23:08:29 +00:00
Sir Richard
d42e771516 [HALACPI]: Add project, right now it just builds the normal HAL. The idea is to split the generic HAL into legacy (x86 only) and ACPI (x86+ACPI, or x64). Bus handling, reboot/shutdown, PnP, power management (sleep/resume/hibernate), timer, environment variable, debugging, and initialization code is expected to differ between legacy and ACPI, if not more.
svn path=/trunk/; revision=46574
2010-03-29 21:35:31 +00:00
Cameron Gutman
4102dbabef [NTOSKRNL]
- Don't try to detect ACPI in IopEnumerateDetectedDevices because the only reason we got there is because ACPI is NOT present (as reported by IopIsAcpiComputer)

svn path=/trunk/; revision=46571
2010-03-29 16:56:42 +00:00
Johannes Anderwald
a2645d72f7 - Add bda.inf, kscaptur.inf
svn path=/trunk/; revision=46570
2010-03-29 15:18:50 +00:00
Johannes Anderwald
b44642d7fd [MSDVBNP]
- Implement IBDA_EthernetFilter, IBDA_IPV4Filter, IBDA_IPV6Filter

svn path=/trunk/; revision=46569
2010-03-29 13:12:16 +00:00
Timo Kreuzer
6a86d097cb Define PPEB in ntddk.h
svn path=/trunk/; revision=46568
2010-03-29 11:40:06 +00:00
Timo Kreuzer
f3e748eef0 Merge winnt.h
svn path=/trunk/; revision=46567
2010-03-29 11:23:09 +00:00
Timo Kreuzer
9ff08ac905 Merge ntdef.h
svn path=/trunk/; revision=46566
2010-03-29 10:35:31 +00:00
Timo Kreuzer
a5f7b08edf Move IoAttachDeviceToDeviceStackSafe to ntddk.h
svn path=/trunk/; revision=46565
2010-03-29 09:15:47 +00:00
Timo Kreuzer
b8778948ce merge wdm.h second attempt. This time taking more care of vista definitions.
svn path=/trunk/; revision=46564
2010-03-29 08:57:45 +00:00
Aleksey Bragin
09ab0eb733 [NTOSKRNL]
. Revert 46550: Windows does not set this flag. ReactOS shouldn't either. Setting UserEvent is already enough in this case.

svn path=/trunk/; revision=46563
2010-03-29 08:51:12 +00:00
Timo Kreuzer
c5e2c557f7 revert r46561
svn path=/trunk/; revision=46562
2010-03-29 07:37:26 +00:00
Timo Kreuzer
423f6985b2 merge part of the wdm changes. Mostly formatting and adding a few definitions.
svn path=/trunk/; revision=46561
2010-03-29 07:28:03 +00:00
Timo Kreuzer
65e1cafd2a Add RtlLargeInteger macros to wdm.h
svn path=/trunk/; revision=46560
2010-03-29 05:48:15 +00:00
Timo Kreuzer
2076e91e49 merge ntdef.h formatting changes
svn path=/trunk/; revision=46559
2010-03-29 05:28:59 +00:00
Timo Kreuzer
e6421edfc9 Merge bdasup.h
svn path=/trunk/; revision=46558
2010-03-29 05:17:15 +00:00
Timo Kreuzer
10ba115855 Add definition of PUOW to wdm.h
svn path=/trunk/; revision=46557
2010-03-29 05:03:20 +00:00
Timo Kreuzer
77d69ff4d9 Fix Mm64BitPhysicalAddress
svn path=/trunk/; revision=46556
2010-03-29 04:49:07 +00:00
Timo Kreuzer
07c9b89e48 Move SINGLE_GROUP_LEGACY_API definition to wdm.h
svn path=/trunk/; revision=46555
2010-03-29 04:28:32 +00:00
Timo Kreuzer
59f2edfce7 revert r46552 and r46553
svn path=/trunk/; revision=46554
2010-03-29 04:14:34 +00:00
Timo Kreuzer
b359df2f32 Reintegrate header branch part 7/x
Merge the rest and see what happens....

svn path=/trunk/; revision=46553
2010-03-29 03:52:10 +00:00
Timo Kreuzer
dabbfbee68 Reintegrate header branch part 6/x
ntdef.h and winnt.h: add GROUP_AFFINITY, formatting


svn path=/trunk/; revision=46552
2010-03-29 03:49:11 +00:00
Timo Kreuzer
1a929a8b21 Reintegrate header branch part 5/x
- Formatting and properties
- delete xmldsodid.h

svn path=/trunk/; revision=46551
2010-03-29 03:16:25 +00:00
Cameron Gutman
acc9e3e78a [NTOSKRNL]
- Set the IRP_SYNCHRONOUS_API flag on IRPs created by IoBuildSynchronousFsdRequest

svn path=/trunk/; revision=46550
2010-03-29 02:59:44 +00:00
Timo Kreuzer
d16419c3da fix build
svn path=/trunk/; revision=46549
2010-03-29 02:51:02 +00:00
Timo Kreuzer
4656583b21 Reintegrate header branch part 4/x
- don't prepend ddk/ before the header includes
- move atsmedia.h to psdk
- add mce.h, devpropdef.h, evntprov.h, ntiologc.h to psdk
- replace ntstatus.h

svn path=/trunk/; revision=46548
2010-03-29 02:48:28 +00:00
Timo Kreuzer
6a40b4927e Reintegrate header-branch 3/x
- Add XDK

svn path=/trunk/; revision=46547
2010-03-29 02:38:12 +00:00
Sir Richard
f903a6242e [COMPBATT]: More miniclass driver interface work: CompBattQueryInformation and CompBattGetBatteryGranularity.
svn path=/trunk/; revision=46546
2010-03-29 02:27:41 +00:00
Timo Kreuzer
fa60118aec Fix build
svn path=/trunk/; revision=46545
2010-03-29 02:15:21 +00:00
Timo Kreuzer
041aa4c728 Reintegrate header-branch 2/x
- PCVOID -> LPCVOID / CONST VOID *
- move cfgmgr32.h and cfg.h to psdk
- remove wine/cfgmgr32.h make setupapi use the proper header

svn path=/trunk/; revision=46544
2010-03-29 02:03:41 +00:00
Sir Richard
9f04906510 [COMPBATT]: Mini-class driver interface work: CompBattDisableStatusNotify, CompBattQueryTag, CompBattRecalculateTag, CompBattGetBatteryInformation.
svn path=/trunk/; revision=46543
2010-03-29 02:02:07 +00:00
Timo Kreuzer
dd1c6f7b06 Reintegrate header branch part 1/x
DDKAPI -> NTAPI

svn path=/trunk/; revision=46542
2010-03-29 01:51:11 +00:00
Sir Richard
123bf68a1a [COMPBATT]: Helper code, CompBattGetDeviceObjectPointer and BatteryIoctl.
svn path=/trunk/; revision=46541
2010-03-29 00:10:56 +00:00
Sir Richard
bf6ce4779e [COMPBATT]: Main battery detection/PnP notification logic: CompBattAddNewBattery, CompBattRemoveBattery, IsBatteryAlreadyOnList, RemoveBatteryFromList, CompBattGetBatteries, CompBattPnpEventHandler.
svn path=/trunk/; revision=46540
2010-03-29 00:02:05 +00:00
Timo Kreuzer
8236cf6a81 [MINGW]
Update mingw library to mingw-w64 trunk (mingw-w64-src_20100325)

svn path=/branches/ros-amd64-bringup/; revision=46537
2010-03-28 23:27:01 +00:00
Timo Kreuzer
b8a5d2b45c [CRT]
- Implement x86 ceilf, floorf, fmodf (taken from mingw-w64)
- Implement cosf, sinf, sqrtf (simply wrappers)
- Fix missing definitions

svn path=/branches/ros-amd64-bringup/; revision=46536
2010-03-28 23:18:31 +00:00
Timo Kreuzer
ed6508cf95 [CRT HEADERS]
- add _mingw_mac.h from ming-w64 and include it into _mingw.h
- Update _CRTIMP definition
- Fix definition of _wctype
- onexit is not _CRTIMP

svn path=/branches/ros-amd64-bringup/; revision=46535
2010-03-28 23:12:46 +00:00
Timo Kreuzer
173013b4d4 [CRT]
- Set crt="static" in freeldr, rtl, bmfs, ftfd, rtl, mini_hal
- define "CRTDLL" in ntdll, crtdll, msvcrt, msvcrt20, msvcrt40

svn path=/branches/ros-amd64-bringup/; revision=46534
2010-03-28 23:06:36 +00:00
Cameron Gutman
3bb7bcab09 [NTOSKRNL]
- Fix a nasty bug that discarded any response to IRP_MN_FILTER_RESOURCE_REQUIREMENTS so drivers never got the resources they needed

svn path=/trunk/; revision=46533
2010-03-28 22:59:38 +00:00
Timo Kreuzer
6f805c852b [NTOS]
Some freelist.c fixes, to make it compile

svn path=/branches/ros-amd64-bringup/; revision=46532
2010-03-28 22:51:39 +00:00
Timo Kreuzer
7aab8a308b [HAL]
Update from trunk

svn path=/branches/ros-amd64-bringup/; revision=46531
2010-03-28 22:50:04 +00:00
Timo Kreuzer
3479ab1925 [FTP/DHCP]
- remove the oldnames hack, as we now have a proper oldnames lib (included in mingw_common)
- protect struct timezone from redefinition

svn path=/branches/ros-amd64-bringup/; revision=46526
2010-03-28 21:01:25 +00:00
Cameron Gutman
12f66ee7b9 [NTOSKRNL]
- Don't use REG_OPTION_VOLATILE because it causes ACPI to be reinstalled after every boot

svn path=/trunk/; revision=46525
2010-03-28 20:23:30 +00:00
Timo Kreuzer
0e76e9857c [LIBOLDNAMES]
- add snprintf

svn path=/branches/ros-amd64-bringup/; revision=46524
2010-03-28 20:11:55 +00:00
Timo Kreuzer
7558e99439 - Fix assert macro
- Add crt="MSVC" to a number of modules to resolve _assert

svn path=/branches/ros-amd64-bringup/; revision=46523
2010-03-28 19:56:11 +00:00
Timo Kreuzer
9b445221d8 Fix 32bit RtlInitializeSListHead
svn path=/branches/ros-amd64-bringup/; revision=46522
2010-03-28 19:46:29 +00:00
Timo Kreuzer
c2fb167d36 [SCSIPORT]
DDKAPI -> NTAPI

svn path=/branches/ros-amd64-bringup/; revision=46521
2010-03-28 19:30:58 +00:00
Timo Kreuzer
ccc4a57c6f update asm.h from trunk
svn path=/branches/ros-amd64-bringup/; revision=46520
2010-03-28 19:25:40 +00:00
Cameron Gutman
a81b14171e [NTOSKRNL]
- Revert part of r46495 and replace it with much better code

svn path=/trunk/; revision=46519
2010-03-28 19:22:28 +00:00
Johannes Anderwald
6b4dc6c7db [KSPROXY, MSDVBNP, MSVIDCTL, BDAPLGIN]
- Implement DllRegisterServer, DllUnregisterServer for those components
- Add msdvbnp, msvidctl to build
- Add msdvbnp, bdaplgin, msvidctl to bootcd

svn path=/trunk/; revision=46518
2010-03-28 19:06:48 +00:00
Cameron Gutman
973ecf7e61 [NTOSKRNL]
- Add a missing OBJ_CASE_INSENSITIVE attribute so IopIsAcpiComputer doesn't always fail

svn path=/trunk/; revision=46517
2010-03-28 19:02:07 +00:00
Aleksey Bragin
7b864dca95 [PSDK]
- Manually merge header changes from arwinss branch. Undocumented values are wrapped into #ifdef _WINE so they don't affect non-Wine code.
- Undocumented flags shouldn't be defined multiple times in user32 and win32k. Put them in winuser.h for now, should be factored out into a separate file later.
- Shouldn't break build this time.

svn path=/trunk/; revision=46516
2010-03-28 15:32:23 +00:00
Sylvain Petreolle
9859090ba2 Revert 46514, fixes build.
svn path=/trunk/; revision=46515
2010-03-28 10:54:44 +00:00
Aleksey Bragin
7c2c99f92e [PSDK]
- Manually merge header changes from arwinss branch.

svn path=/trunk/; revision=46514
2010-03-28 09:32:27 +00:00
Timo Kreuzer
17d56ed0b9 [NTOS]
Add KiEoiHelper export for x86 like in trunk

svn path=/branches/ros-amd64-bringup/; revision=46513
2010-03-28 07:09:13 +00:00
Timo Kreuzer
63cf51be08 [FREETYPE]
- Don't include setjmp/longjmp, we have our own

svn path=/branches/ros-amd64-bringup/; revision=46512
2010-03-28 05:20:27 +00:00
Timo Kreuzer
f42510da3b [FREELDR]
snprintf -> _snprintf

svn path=/branches/ros-amd64-bringup/; revision=46511
2010-03-28 04:52:19 +00:00
Timo Kreuzer
55e794943f [FREELDR]
- Add a missing cast

svn path=/branches/ros-amd64-bringup/; revision=46510
2010-03-28 03:06:50 +00:00
Timo Kreuzer
772682da0e [DHCP]
define NO_OLDNAMES to prevent redefinition

svn path=/branches/ros-amd64-bringup/; revision=46509
2010-03-28 01:25:22 +00:00
Timo Kreuzer
a26b8712a8 Merge from amd64-branch:
46483 (tkreuzer)
[CRT]
- add _wctype table, it's not identical to _ctype as assumed before
- point _pwctype to _wctype instead of _ctype
- implement __pctype_func and __pwctype_func

46502 (tkreuzer)
[MSVCRT]
- enable exports for __pctype_func, __pwctype_func, _wctype

svn path=/trunk/; revision=46504
2010-03-27 23:01:05 +00:00
Timo Kreuzer
8492ce3f39 Fix definition of _wctype
svn path=/trunk/; revision=46503
2010-03-27 22:58:37 +00:00
Timo Kreuzer
b3349e95bc [MSVCRT]
- enable exports for __pctype_func, __pwctype_func, _wctype

svn path=/branches/ros-amd64-bringup/; revision=46502
2010-03-27 22:38:22 +00:00
Amine Khaldi
fd317aa03e [PSDK]
- Add several missing mswsockdef.h definitions.
- mswsock.h : Introduce pragma once, apply consistent formatting, improve several existing definitions, remove some unrelated ones and add several missing ones.

svn path=/branches/header-work/; revision=46501
2010-03-27 22:06:39 +00:00
Cameron Gutman
fd3fa1abb6 [NTOSKRNL]
- Don't always use the value name as the device description
- Fixes bug 3416

svn path=/trunk/; revision=46500
2010-03-27 21:45:35 +00:00
Cameron Gutman
79cb786ef5 [INF]
- Add a device description for PNP0A00

svn path=/trunk/; revision=46499
2010-03-27 21:42:52 +00:00
Sir Richard
48b9dc33d5 [COMPBATT]: Main driver skeleton: CompBattAddDevice, DriverEntry, CompBattSystemControl, CompBattIoct, CompBattOpenClose, CompBattPowerDispatch, CompBattPnpDispatch.
svn path=/trunk/; revision=46498
2010-03-27 21:34:06 +00:00
Sir Richard
18c595da66 [CMBATT]: Fix wrong DO flags.
svn path=/trunk/; revision=46497
2010-03-27 21:33:07 +00:00
Amine Khaldi
025ff7f69d [DDK]
ws2san.h :
- Introduce pragma once.
- Apply consistent formatting.
- Improve several existing definitions.
- Add several missing ones.

svn path=/branches/header-work/; revision=46496
2010-03-27 21:27:37 +00:00
Cameron Gutman
d188708a4d [NTOSKRNL]
- Detect floppy controllers, parallel ports, and the ISA bus
- Dedicated to dreimer

svn path=/trunk/; revision=46495
2010-03-27 21:26:24 +00:00
Timo Kreuzer
719200874a Revert r46466 this time for real
svn path=/trunk/; revision=46493
2010-03-27 18:57:56 +00:00
Timo Kreuzer
579ef7b3cb Revert r46466
svn path=/trunk/; revision=46492
2010-03-27 18:29:08 +00:00
Eric Kohl
2ce28dacb7 [NTOSKRNL]
NtAccessCheck: Check for a valid security descriptor.

svn path=/trunk/; revision=46491
2010-03-27 16:54:02 +00:00
Amine Khaldi
736107dd68 [XDK]
- Autogenerate ntifs.h based on ntifs.template.h
- Remove some duplicate definitions between WDM and NTDDK.

[DDK]
- Remove wmlib.h
- Reflect the recent XDK changes.

svn path=/branches/header-work/; revision=46490
2010-03-27 15:31:25 +00:00
Timo Kreuzer
884cba10ef [CMPBATT]
reduce diff to trunk

svn path=/branches/ros-amd64-bringup/; revision=46489
2010-03-27 14:54:55 +00:00
Cameron Gutman
6e6623f762 [ACPI]
- Fix a typo

svn path=/trunk/; revision=46488
2010-03-27 14:40:36 +00:00
Timo Kreuzer
87ac6e3504 More formatting fixe
svn path=/branches/header-work/; revision=46487
2010-03-27 10:45:04 +00:00
Timo Kreuzer
53972f4c24 Formatting fix
svn path=/branches/header-work/; revision=46486
2010-03-27 10:34:55 +00:00
James Tabor
474bc78d7d [Win32k]
- Kill debug warnings of dc ownership.

svn path=/trunk/; revision=46485
2010-03-27 04:45:31 +00:00
James Tabor
3ae7b85b5a [User32]
- Sébastien Ramage : End scrollbar tracking if the mouse capture is lost.
- Reduce diff to wine.

svn path=/trunk/; revision=46484
2010-03-27 04:20:07 +00:00
Timo Kreuzer
d134d80d0b [CRT]
- add _wctype table, it's not identical to _ctype as assumed before
- point _pwctype to _wctype instead of _ctype
- implement __pctype_func and __pwctype_func

svn path=/branches/ros-amd64-bringup/; revision=46483
2010-03-27 01:14:24 +00:00
Amine Khaldi
636b46506f [DDK]
- Move devioctl.h to PSDK, introduce pragma once, apply consistent formatting and add several missing definitions.
[XDK]
- Autogenerate devioctl.h based on devioctl.template.h

svn path=/branches/header-work/; revision=46482
2010-03-27 01:12:23 +00:00
Amine Khaldi
dbe15d6293 [DDK]
dciddi.h :
- Introduce pragma once, apply consistent formatting, add missing definitions and improve several existing ones.

svn path=/branches/header-work/; revision=46481
2010-03-27 00:32:37 +00:00
Amine Khaldi
aa5f7dabb5 [DDK]
- Move compstui.h to PSDK, introduce pragma once, apply consistent formatting, add missing definitions and improve several existing ones.

svn path=/branches/header-work/; revision=46480
2010-03-27 00:08:19 +00:00
Cameron Gutman
c0ce6da513 [AFD]
- Allow connection requests for connectionless sockets (they associate a default remote address with the socket required for use in AfdConnectedSocketWriteData and AfdConnectedSocketReadData)
- Add a check for a disconnected socket

svn path=/trunk/; revision=46479
2010-03-27 00:00:21 +00:00
Timo Kreuzer
c57a8df416 [CRT]
- define _CRTBLD
- rename float_t/double_t/long_double_t to float_s/double_s/long_double_s to avoid name conflicts

svn path=/branches/ros-amd64-bringup/; revision=46478
2010-03-26 23:41:53 +00:00
Timo Kreuzer
f8b4d53d3c revert r39331
svn path=/branches/ros-amd64-bringup/; revision=46477
2010-03-26 23:39:12 +00:00
Matthias Kupfer
e8ce733165 - two small fixes (freeing resources on error)
svn path=/trunk/; revision=46476
2010-03-26 20:27:21 +00:00
Matthias Kupfer
c566b7baea - fix encoding
- change size of dialog entry for fitting text

svn path=/trunk/; revision=46475
2010-03-26 20:26:01 +00:00
Timo Kreuzer
faffa5519c [LIBJPG]
Comment out libjpg for now. It fails badly. Maybe we need a spec file or something.

svn path=/branches/ros-amd64-bringup/; revision=46473
2010-03-26 19:01:21 +00:00
Timo Kreuzer
14d311ab86 [ACPI]
Add amd64 stubs for ACPI_ACQUIRE_GLOBAL_LOCK and ACPI_RELEASE_GLOBAL_LOCK

svn path=/branches/ros-amd64-bringup/; revision=46472
2010-03-26 19:00:34 +00:00
Johannes Anderwald
833d3c5b7f [BDAPLGIN]
- Enhance debug traces
[KSPROXY]
- Check if the input / output pin has any methods while enumerating them
[MSDVBNP]
- Implement IBaseFilter::Stop, IBaseFilter::Run, IBaseFilter::Pause
- Fix missing AddRef in IBaseFilter::QueryFilterInfo
- Implement IBDA_NetworkProvider::RegisterDeviceFilter, IBDA_NetworkProvider::UnRegisterDeviceFilter
- Partly implement ITuner::put_TuneRequest
- ReactOS DVBT Network Provider is now able to tune a channel, though sound is missing

svn path=/trunk/; revision=46471
2010-03-26 17:51:54 +00:00
Timo Kreuzer
67e1375139 [HAL]
Fix rbuild files

svn path=/branches/ros-amd64-bringup/; revision=46469
2010-03-26 16:03:03 +00:00
Timo Kreuzer
42f403f39d Merge trunk head (46467)
svn path=/branches/ros-amd64-bringup/; revision=46468
2010-03-26 15:47:53 +00:00
Daniel Reimer
7456c01cae Generalize some lines to be used for a whole bunch of models.
Reduced size about 10kb that way. As long as we don't have a CPU driver I will keep it that way its now, because now it at least shows a approximate CPU Title in Devmgr.

svn path=/trunk/; revision=46467
2010-03-26 14:57:35 +00:00
Timo Kreuzer
d0701d72b7 Reintegrate header branch
- DDKAPI -> NTAPI
- delete duplicate definitions
- move files to right locations
- Fix Mm64BitPhysicalAddress definition
- Add a number of missing definitions
- add XDK

svn path=/trunk/; revision=46466
2010-03-26 13:50:02 +00:00
Daniel Reimer
3509318521 Add Cyrix, Pentium MMX, Pro, II, M, 4, Core Solo/Duo/Extreme/i*, Atom, AMD K6, K6-3, Via Nehemiah, Esther, Nano and a big bunch of Family 15 (1st gen Athlon64, Turion64, Sempron Series) AMD CPUs to cpu.inf
These should be all CPUs out there we support....

svn path=/trunk/; revision=46465
2010-03-26 12:59:02 +00:00
Johannes Anderwald
5dc1068022 [BDAPLGIN]
- Perform property request by passing the request through IKsPropertySet interface. This is necessary as the pin handle might not have been created at the time the proxy plugin has been loaded
- Set Reserved of KSP_NODE request to zero as required by the documentation

svn path=/trunk/; revision=46464
2010-03-26 11:43:52 +00:00
Amine Khaldi
7a3aaf62ee Sync with trunk head (part 1 of x)
svn path=/branches/header-work/; revision=46461
2010-03-26 09:25:42 +00:00
Timo Kreuzer
cb29f7174b Looks like ld doesn't like specifying "-fno-leading-underscore" for anything else then shared modules (aka dlls). Therefore specify "-shared" for apps, too (Should hopefully not make a difference), making them link again.
Since we have switched to non-prefixed symbols, we need to deal with 2 kinds of symbols that the compiler doesn't handle for us. 1.) __image_base__ is still defined the same way by ld, but since gcc doesn't give us an underscore anymore, we need to specify it on our own. 2.) __MINGW_IMP_SYMBOL, which is a hacky way of declaring a symbol dllimport, by prefixing it with __imp_ also needs special treatment. Fix these issues by adding appropriate macros to _mingw.h and removing the broken and duplicate definitions from multiple .c files.

svn path=/branches/ros-amd64-bringup/; revision=46460
2010-03-26 08:58:45 +00:00
Aleksey Bragin
938600f750 [NTOSKRNL/CONFIG]
- Add a macro for asserting hash lock ownership.
- Add a macro for getting an alloc page from KCB / delay alloc item.
- Add a newly allocated KCB to the tail of CmpFreeKCBList, not to its head.

svn path=/trunk/; revision=46459
2010-03-26 08:39:27 +00:00
Cameron Gutman
443b32a725 [NTOSKRNL]
- Construct a valid device path for ZwOpenFile
- Button events are now recognized by the power manager (tested on VirtualBox)

svn path=/trunk/; revision=46458
2010-03-26 02:41:08 +00:00
Cameron Gutman
937d6233d7 [ACPI]
- Implement IOCTL_GET_SYS_BUTTON_EVENT
- Add the device event to the event list in a DPC instead of an ISR

svn path=/trunk/; revision=46457
2010-03-26 02:33:28 +00:00
Timo Kreuzer
518b7b47b4 reduce diff to trunk
svn path=/branches/ros-amd64-bringup/; revision=46456
2010-03-26 00:25:40 +00:00
Timo Kreuzer
deac9bacde [HAL]
Add some files for amd64, just enough to make compilation start.

svn path=/trunk/; revision=46455
2010-03-26 00:21:45 +00:00
James Tabor
760e2b7930 - Fix warning.
svn path=/trunk/; revision=46454
2010-03-26 00:20:14 +00:00
Amine Khaldi
d134425466 Fix build.
Dedicated to Timo ;)

svn path=/branches/header-work/; revision=46453
2010-03-25 23:40:31 +00:00
Timo Kreuzer
b67e6b206a Merge from amd64 branch:
44762 (sserapion)
[rbuild]
- Automatically generate reactos.dff using the installfile and installbase attributes found in rbuild files.
-- Fixes race to grab reactos.dff on concurrent builds in the same tree.
-- Makes the result of make install, make livecd and make bootcd the same(some modules arent in reactos.dff but have installfile/base attributes, which means they got intto livecd/install but not bootcd!)

44763 (sserapion)
[rbuild]
Really fix mkhive command.

44764 (sserapion)
[rbuild]
- fix mkhive command try 2. 

svn path=/trunk/; revision=46452
2010-03-25 23:16:12 +00:00
Timo Kreuzer
6965a0af8a - Reduce diff to trunk
svn path=/branches/ros-amd64-bringup/; revision=46451
2010-03-25 21:29:59 +00:00
Johannes Anderwald
d3ab548697 [DXSDK]
- Implement bdatif.h

svn path=/trunk/; revision=46450
2010-03-25 20:51:54 +00:00
Timo Kreuzer
13aa4a3d04 [RBUILD]
instead of defining -fno-set-stack-executable and -fno-optimize-sibling-calls in gcc.mak file, do it in ReactOS-i386.rbuild

svn path=/trunk/; revision=46449
2010-03-25 19:55:28 +00:00
Timo Kreuzer
c20a4b4bb5 fix build
svn path=/trunk/; revision=46448
2010-03-25 19:32:45 +00:00
Timo Kreuzer
bcd0ad3405 [HAL]
- Move architecture specific files into appropriate folders
- Move UP specific files into up folder

svn path=/trunk/; revision=46447
2010-03-25 19:23:09 +00:00
Timo Kreuzer
929bbc7b7c [HAL]
UP/MP cleanup:
- remove KxAcquireSpinLock from halp.h, use the one from ntoskrnl instead
- Use generic/spinlock.c in hal_generic_up and hal_generic_mp
- Delete mp/spinlock.c
- Move cmos spinlock functions to spinlock.c to make sure they are compiled for both up and mp
- Move wrappers around fastcall functions to misc.c, as they are identical on up/mp.

svn path=/trunk/; revision=46446
2010-03-25 18:37:59 +00:00
Amine Khaldi
2bce4e0e52 Sync with trunk head.
svn path=/branches/header-work/; revision=46444
2010-03-25 18:04:58 +00:00
Sir Richard
e928936a69 [COMPBATT]: Composite Battery Driver Stub Interface to keep Mr. Gutman happy.
svn path=/trunk/; revision=46443
2010-03-25 14:26:04 +00:00
Cameron Gutman
da0c010307 [ACPI]
- Add support for fixed power buttons
- Cleanup some extra junk
- Add a hack to prevent acquiring the mutex while in an ISR or DPC
- Button events are received now and "acpi_bus_generate_event" will appear in the debug log when a power/sleep button is pressed
- TODO: Implement IOCTL_GET_SYS_BUTTON_EVENT support so the power manager can recognize our button presses

svn path=/trunk/; revision=46442
2010-03-25 14:19:54 +00:00
Sir Richard
497c878f97 [CMBATT]: Use PCH.
svn path=/trunk/; revision=46441
2010-03-25 14:05:03 +00:00
Timo Kreuzer
d488d92ff8 [BOOTCD/LIVECD]
Add -$(ARCH) to non-x86 bootcd and livecd image names.

svn path=/trunk/; revision=46440
2010-03-25 13:55:00 +00:00
Timo Kreuzer
077f0d7c3c [IDNDL]
Convert to spec

svn path=/trunk/; revision=46439
2010-03-25 13:15:37 +00:00
Timo Kreuzer
3c7051eca2 fix build
svn path=/trunk/; revision=46438
2010-03-25 13:09:43 +00:00
Timo Kreuzer
28e1c9e1c5 [NTVDM]
Only compile on x86 builds

svn path=/trunk/; revision=46437
2010-03-25 12:52:00 +00:00
Timo Kreuzer
a80a2887aa Merge from amd64 branch:
45124
[USER32]
NtUserTranslateMessage: HKL -> UINT in 2nd parameter

45126 (tkreuzer)
[WIN32k] Fix build

45127 (sserapion)
[WIN32k] Fix build

svn path=/trunk/; revision=46436
2010-03-25 12:48:03 +00:00
Amine Khaldi
0474c721c7 [DDK]
- Move tvout.h to PSDK.

svn path=/branches/header-work/; revision=46435
2010-03-25 12:37:44 +00:00
Timo Kreuzer
fb69e522da Merge from amd64-branch:
44501 (tkreuzer)
[NDK]
- Add CLIENT_ID32/64
- Create explicit 32/64 bit versions of PEB, GDI_TEB_BATCH and TEB, using macros.
- Fix some member names.


44503 (tkreuzer)
[CMD]
Fix a teb member name

44504 (tkreuzer)
[NTSOKRNL]
Fix a teb member name

44506 (tkreuzer)
[NDK]
fix a typo in the TEB definition

44511 (tkreuzer)
[NDK]
- Add Wx86ThreadState
- Add WinXP version of ACTIVATION_CONTEXT_STACK
- rtltypes doesn't depend on pstypes, but the opposite way around now

44512 (tkreuzer)
[NDK]
Fix some dependencies

44521 (tkreuzer)
[NTDKK]
- Don't use PEB::FastPeb(Un)LockRoutine, these members are deprecated since Windows 2003, use RtlEnter/LeaveCriticalSection instead.

44523 (tkreuzer)
[NTDLL]
Fix usage of PEB::KernelCallbacktable. It's a PVOID.

44524 (tkreuzer)
NDK]
- Add missing TEB member for Vista

44525 (tkreuzer)
[NDK]
Fix a TEB array size.

44526 (tkreuzer)
[USER32]
More fix of TEB::KernelCallbackTable usage

svn path=/trunk/; revision=46434
2010-03-25 12:22:59 +00:00
Amine Khaldi
9ac94def32 [DDK]
- Remove duplicate xmldsodid.h

svn path=/branches/header-work/; revision=46433
2010-03-25 12:07:42 +00:00
Timo Kreuzer
e13ac2cb13 merge from amd64 branch:
34741 (tkreuzer)
[BOOTVID]
- make bootvid build for PLATFORM=PC instead of ARCH=i386 to share the files between i386 and amd64
- fix ULONG <-> pointer casts

svn path=/trunk/; revision=46432
2010-03-25 05:25:07 +00:00
Cameron Gutman
67c1ce90bd [NTOSKRNL]
- Handle devices that are run by their own bus drivers
- This could be done a bit nicer but it works

svn path=/trunk/; revision=46431
2010-03-25 05:16:31 +00:00
Timo Kreuzer
82569185be revert the changes to the old kdcom
svn path=/branches/ros-amd64-bringup/; revision=46430
2010-03-25 05:12:42 +00:00
Cameron Gutman
0bd14e99b4 [ACPI]
- Implement IOCTL_GET_SYS_BUTTON_CAPS
- Register and maintain PnP interfaces for thermal zones, buttons, lids, and processors

svn path=/trunk/; revision=46429
2010-03-25 05:11:24 +00:00
Timo Kreuzer
0750573b4e reduce diff to trunk
svn path=/branches/ros-amd64-bringup/; revision=46428
2010-03-25 05:09:09 +00:00
Timo Kreuzer
fe68057a58 Merge from amd64-branch:
46394 (tkreuzer)
[FRAMEBUF_NEW]
- use compiler flags for x86 only

36969 (sginsberg)
[VIDEOPRT]
- Make videoprt compile for 64-bit
- Disable Int10 support as it uses x86 specific structures (is this support still available on amd64?)
- Disable VideoPortEnable/DisableInterrupt -- HalEnable/DisableSystemInterrupt are not apparently present on NT AMD64, so need to figure out what else to use (and if these routine are still present on amd64 videoprt)

The following this time for real:

40927 (tkreuzer)
[BMFD]
HGLYPH is an ULONG. Use offset to glyph entry as HGLYPH instead of the pointer to fix 64bit build.

41070 (tkreuzer)
[TCPIP]
fix a pointer to ULONG cast

41500 (tkreuzer)
[NDIS]
Pass ULONG* to MiniQueryInformation for the number of written bytes instead of ULONG_PTR*

41502 (tkreuzer)
[WDMAUD]
Make DeviceIndex a ULONG_PTR

44339 (sserapion)
[NDIS]
Fix ndis build.

svn path=/trunk/; revision=46427
2010-03-25 05:03:29 +00:00
Timo Kreuzer
5ddd37a1ec reduce diff to trunk
svn path=/branches/ros-amd64-bringup/; revision=46426
2010-03-25 04:22:20 +00:00
Cameron Gutman
a00ac160d5 [NTOSKRNL]
- Fix an incorrect assumption which led to ACPI's enumerated buttons not being recognized by the power manager

svn path=/trunk/; revision=46425
2010-03-25 04:05:33 +00:00
Timo Kreuzer
eb884f4969 Merge from amd64-branch:
36380 (tkreuzer)
[SCSIPORT]
Implement some functions that are forwarded to HAL on x86 build, but not on x64. Modify spec file (use preprocessor macro).

36397 (tkreuzer)
[SCSIPORT]
rename .spec to .pspec

36949 (sginsberg)
- Fix NTFS FSD compilation

36951 (sginsgerb)
[NE2000]
- Fix ne2000 compilation (treat pointer size as ULONG_PTR, correct function prototypes)

36958 (sginsberg)
[ISAPNP]
- Fix isapnp compilation for 64-bit

36961 (sginsberg)
[SERIAL]
- Make serial build for 64 bit -- explicitly cast first parameter to InterlockedCompareExchangePointer
to PVOID

36964 (sginsberg)
- Fix DXG 64-bit compilation

36972 (sserapion)
[VGA]
- When doing pointer arithmetic, ULONG_PTR is your friend

37234 (tkreuzer)
[SCSIPORT]
Fix scsiport, by using pspec again.

40927 (tkreuzer)
[BMFD]
HGLYPH is an ULONG. Use offset to glyph entry as HGLYPH instead of the pointer to fix 64bit build.

41070 (tkreuzer)
[TCPIP]
fix a pointer to ULONG cast

41500 (tkreuzer)
[NDIS]
Pass ULONG* to MiniQueryInformation for the number of written bytes instead of ULONG_PTR*

41502 (tkreuzer)
[WDMAUD]
Make DeviceIndex a ULONG_PTR

44339 (sserapion)
[NDIS]
Fix ndis build.

svn path=/trunk/; revision=46424
2010-03-25 03:50:46 +00:00
Cameron Gutman
bec2c26ca3 [ACPI]
- Implement a DispatchCreateClose handler

svn path=/trunk/; revision=46423
2010-03-25 03:40:41 +00:00
Timo Kreuzer
2a334428fc Merge from amd64-branch:
34803 (sserapion)
Fix more warnings.
Convert pciidex to use spec file.

34864 (tkreuzer) // checkme vielleicht schon gemerged?
[NDIS]
fix some ULONG to pointer casts

34870 (tkreuzer)
[TCPIP]
- fix some pointer to ULONG casts

34874 (tkreuzer)
class2: fix ULONG to pointer cast

34877 (tkreuzer)
- fix LARGE_INTEGER to pointer cast

35781 (tkreuzer)
[NDIS]
define some fastcall functions to the normal functions on amd64

36011 (tkreuzer)
[NDIS]
Fix a ULONG to pointer cast.

36012 (tkreuzer)
[SCSIPORT]
more ulong <-> pointer fixes

svn path=/trunk/; revision=46422
2010-03-25 03:24:44 +00:00
Timo Kreuzer
0fc116b80c reduce diff to trunk
svn path=/branches/ros-amd64-bringup/; revision=46421
2010-03-25 02:58:46 +00:00
Timo Kreuzer
4a02701022 [ACPI]
Add back to build

svn path=/branches/ros-amd64-bringup/; revision=46420
2010-03-25 02:04:41 +00:00
Timo Kreuzer
7be6452a51 Merge from amd64-branch:
44036 (sserapion)
Seems that windows cares about manifests and a mismatched processor architecture is not good. Fix amd64 paint in windows.

44772 (sserapion)
Fix warning cast to 'unsigned int' loses precision.

svn path=/trunk/; revision=46419
2010-03-25 01:59:02 +00:00
Timo Kreuzer
720c15e46d Merge from amd64-branch:
36898 (sserapion)
- Fix 64bit advapi32 build.

35655 (sserapion)
Misc WIN64 fixes.
Implement InitializeCriticalSectionEx

43836 (sserapion)
Fix avicap32 build.

44510 (tkreuzer)
[IPHLPAPI]
Don't redefine _WIN32_WINNT to 0x500. When using the NDK we need at least 0x503 when compiling for 64 bit (XP64 is 502)

39335 (tkreuzer)
[IPHLPAPI]
Fix prototype of RtlAllocateHeap

38092 (sserapion)
[RPCRT4]
Fix 64bit-warnings.

44499 (sserapion)
[SYSSETUP]
Eliminate warning.

38100 (sserapion)
[ADVAPI32]
ULONG -> ULONG_PTR

svn path=/trunk/; revision=46418
2010-03-25 01:06:20 +00:00
Cameron Gutman
e10113d22d [ACPI]
- Don't attempt to parse output arguments if none were returned

svn path=/trunk/; revision=46417
2010-03-25 00:35:36 +00:00
Cameron Gutman
25b4bd1bff [ACPI]
* Add support for ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER_SIGNATURE and ACPI_EVAL_INPUT_BUFFER_SIMPLE_STRING_SIGNATURE
 * Cmbatt is able to set the battery trip point now

svn path=/trunk/; revision=46416
2010-03-25 00:23:41 +00:00
Timo Kreuzer
8208ffdfed [MSVCRT]
Enable exports for _gmtime64, _localtime64, _time64

svn path=/trunk/; revision=46415
2010-03-25 00:04:00 +00:00
James Tabor
6d03f87e81 - Fix for gdibatch, does not help Acrobat reader 7.
svn path=/trunk/; revision=46414
2010-03-24 23:35:23 +00:00
Cameron Gutman
c289730700 [ACPI]
- Fix a warning
 - Implement some IOCTL_ACPI_EVAL_METHOD handling (no input parameters are supported yet but it should be enough for what cmbatt needs it to do)

svn path=/trunk/; revision=46413
2010-03-24 23:13:51 +00:00
Timo Kreuzer
91796fd6b5 [BEEPMIDI]
Fix 64bit compilation

svn path=/trunk/; revision=46412
2010-03-24 23:12:31 +00:00
Amine Khaldi
15ada14c57 [DDK]
- Bring in the signedness warning fix by aicom.

svn path=/branches/header-work/; revision=46411
2010-03-24 23:04:11 +00:00
Timo Kreuzer
bdc2ba7816 [NCI]
- Fix 64bit stubs
[RSYM64]
- fix linux compilation

svn path=/trunk/; revision=46410
2010-03-24 23:03:33 +00:00
Amine Khaldi
0f7b50812f [DDK]
- Move cfg.h and cfgmgr32.h to PSDK, introduce pragma once, apply consistent formatting, add missing definitions and improve several existing ones.
[UNIATA]
- DDKAPI -> NTAPI.

svn path=/branches/header-work/; revision=46409
2010-03-24 22:56:18 +00:00
Cameron Gutman
63dd61cc3d [DDK]
- Fix a signedness warning

svn path=/trunk/; revision=46408
2010-03-24 22:56:16 +00:00
Timo Kreuzer
670842fb2d [ACLEDIT]
remove $Id fields

svn path=/trunk/; revision=46407
2010-03-24 22:56:12 +00:00
Timo Kreuzer
36146b651f [NTOS]
- remove KeGetCurrentThread inline function, it's already in the wdm.h, reenable the exported function
- Add InitializeSListHead export
- Use RtlInitializeSListHead for InititializeSListHead
- Add hacks for WDK compilation
- Add ValidKernelPte/Pde
- Comment out MiSyncARM3WithROS, add a stub instead

svn path=/branches/ros-amd64-bringup/; revision=46406
2010-03-24 22:02:26 +00:00
Timo Kreuzer
b6fae9f55b [RTL]
Fix RtlInitializeSListHead and RtlQueryDepthSList


svn path=/branches/ros-amd64-bringup/; revision=46405
2010-03-24 21:56:24 +00:00
Timo Kreuzer
55648f149b [NTOS]
- Multiple ULONG -> SIZE_T fixes
- Use SLIST_ENTRY, not SINGLE_LIST_ENTRY in InterlockedPushEntrySList, they are not the same!
- Fix InterlockedCompareExchangePointer usage
- _1MB is 1024 KB, not 1000
- Rename PDE_SIZE to PD_SIZE to reflect it's purpose (size of a page directory, not a page directory entry)
- Add PD_COUNT, PDE_COUNT and PTE_COUNT for amd64 (should rather use PTE_PER_PAGE etc and move them to arch specific files.
- Some more PFN_TYPE -> PFN_NUMBER

svn path=/branches/ros-amd64-bringup/; revision=46404
2010-03-24 20:36:12 +00:00
Timo Kreuzer
84e3ee3768 [NTOS]
- fix ExInterlockedPopEntryList and ExInterlockedPushEntryList
- Update amd64/mm.h and mm/amd64/init.c to reflect latest trunk changes
- make freelist.c compile again

svn path=/branches/ros-amd64-bringup/; revision=46403
2010-03-24 20:26:54 +00:00
Timo Kreuzer
5e7490747c [DDK/PSDK]
- Update changes from header branch
[NDK]
- add KeTickCount for amd64 (HACK)

svn path=/branches/ros-amd64-bringup/; revision=46402
2010-03-24 20:22:20 +00:00
Timo Kreuzer
f71e0e99fd [NTIFS]
- KeReleaseQueuedSpinLock
[XDK]
- reorder some #if's
- fix Mm64BitPhysicalAddress

svn path=/branches/header-work/; revision=46401
2010-03-24 20:19:04 +00:00
Johannes Anderwald
79f7266fc6 [KSPROXY]
- Load ksproxy plugins for input / output pins

svn path=/trunk/; revision=46400
2010-03-24 20:05:43 +00:00
Johannes Anderwald
015687d53a [KSPROXY]
- Silent traces

svn path=/trunk/; revision=46399
2010-03-24 17:30:43 +00:00
Johannes Anderwald
4dffda6162 [BDAPLGIN]
- Fix compilation with msvc
- Implement IBDA_PinControl::RegistrationContext
- Register filter with IBDA_NetworkProvider when it is an input pin
- IBDA_PinControl is now working

svn path=/trunk/; revision=46398
2010-03-24 16:04:44 +00:00
Johannes Anderwald
7feccc0f73 [KSPROXY]
- Add support for IKsClockForward interface which is an alias for IKsObject
- CKsClockForwarder is now functional

svn path=/trunk/; revision=46397
2010-03-24 14:03:40 +00:00
Johannes Anderwald
6dc21eed48 [KSPROXY]
- Check in IMemAllocator::GetBuffer if the allocator is commited
- Silence debug prints in IMediaSample
- Implement IBaseFilter::Stop
- Fix race conditions in IBaseFilter::Run, IBaseFilter::Run, IBaseFilter::Stop
- Check for invalid argument in IBaseFilter::Stop
- Call InitializeIOThread when pin state is set to acquired
- Grab current filter handle by obtaining IKsObject interface of the parent filter. Required as the filter handle might be closed by using IAMDeviceRemoval interface
- CLSID_Filter is now fully functional (Windows XP SP3)

svn path=/trunk/; revision=46396
2010-03-24 13:12:34 +00:00
Christoph von Wittich
c58da0629e [CMBATT]
fix build

svn path=/trunk/; revision=46395
2010-03-24 11:10:24 +00:00
Timo Kreuzer
0e42f72853 [ACPI] Comment out for now
[FRAMEBUF_NEW] compiler flags are for x86 only

svn path=/branches/ros-amd64-bringup/; revision=46394
2010-03-24 05:24:00 +00:00
Timo Kreuzer
42bdd9f0f4 [NTOS]
- Fix ExInitializeRundownProtectionCacheAware prototype
- uncomment KeGetCurrentThread for amd64
- Don't redefine SINGLE_GROUP_LEGACY_API

svn path=/branches/ros-amd64-bringup/; revision=46393
2010-03-24 05:22:21 +00:00
Timo Kreuzer
f743212592 [XDK]
- Add some amd64 related Mm variables
- Fix some _WIN2K_COMPAT_SLIST_USAGE definitions
- Add non-x86 spinlock functions

svn path=/branches/header-work/; revision=46392
2010-03-24 05:20:22 +00:00
Timo Kreuzer
20745aaad7 Add ntiologc.h
svn path=/branches/ros-amd64-bringup/; revision=46391
2010-03-24 03:41:53 +00:00
Timo Kreuzer
eb0e6e515d [DDK]
Merge changes from header branch
[NDK]
- Prevent PPEB from being redefined

svn path=/branches/ros-amd64-bringup/; revision=46390
2010-03-24 03:32:38 +00:00
Timo Kreuzer
10100513f3 [NDK]
- Move RtlFillMemoryUlong into user mode only area
[XDK]
- Add KeFlushIoBuffers for amd64

svn path=/branches/header-work/; revision=46389
2010-03-24 03:21:51 +00:00
Timo Kreuzer
a9fd1700ff [INTRIN_X86]
- Add __stosq, __movsq, _bittest64

svn path=/branches/ros-amd64-bringup/; revision=46388
2010-03-24 02:23:27 +00:00
Timo Kreuzer
36a64ffd5c [RBUILD]
- Don't use -fno-set-stack-executable on amd64

svn path=/branches/ros-amd64-bringup/; revision=46387
2010-03-24 02:21:59 +00:00
Timo Kreuzer
4e669a2682 [XDK]
- Add amd64 KeAcquireSpinLock
- move KeGetCurrentIrql prototype to x86 specific file

svn path=/branches/header-work/; revision=46386
2010-03-24 02:20:51 +00:00
Timo Kreuzer
73c134f384 [XDK]
- Fix and update some amd64 definitions

svn path=/branches/header-work/; revision=46385
2010-03-24 01:39:36 +00:00
Timo Kreuzer
6fdf4de02b Fix build (1/x)
svn path=/branches/ros-amd64-bringup/; revision=46384
2010-03-24 00:59:16 +00:00
Sir Richard
e3bb4c900f [CMBATT]: Implement _UID and _BTP ACPI method calls.
svn path=/trunk/; revision=46383
2010-03-24 00:33:50 +00:00
Timo Kreuzer
0908342a7b Add back acpi
svn path=/branches/ros-amd64-bringup/; revision=46382
2010-03-24 00:33:22 +00:00
Sir Richard
3890d249d5 [CMBATT]: Implement ACPI _STA and _PSR method calls.
svn path=/trunk/; revision=46381
2010-03-24 00:24:24 +00:00
Timo Kreuzer
9df4519b79 Merge trunk HEAD (r46369)
(part 6/6)

svn path=/branches/ros-amd64-bringup/; revision=46380
2010-03-24 00:03:54 +00:00
Timo Kreuzer
af2f84a5ea Merge trunk HEAD (r46369)
(part 5/x)

svn path=/branches/ros-amd64-bringup/; revision=46379
2010-03-24 00:00:51 +00:00
Timo Kreuzer
9ae0c01261 Merge trunk HEAD (r46369)
(part 4/x)

svn path=/branches/ros-amd64-bringup/; revision=46378
2010-03-23 23:59:58 +00:00
Timo Kreuzer
d99dcece8a Merge trunk HEAD (r46369)
(part 3/x)

svn path=/branches/ros-amd64-bringup/; revision=46377
2010-03-23 23:57:55 +00:00
Timo Kreuzer
cdd97bbca7 Merge trunk HEAD (r46369)
(part 2/x)

svn path=/branches/ros-amd64-bringup/; revision=46376
2010-03-23 23:56:31 +00:00
Timo Kreuzer
a86904e856 Merge trunk HEAD (r46369)
(part 1/x)

svn path=/branches/ros-amd64-bringup/; revision=46375
2010-03-23 23:45:57 +00:00
Sir Richard
5bf71f83d8 [CMBATT]: Implement ACPI package extraction routines, and CmBattSendDownStreamIrp to send ACPI IOCTLs.
svn path=/trunk/; revision=46374
2010-03-23 23:33:58 +00:00
Sir Richard
d94632570f [DDK]: There should not be a DDK-specific ntstatus.h. This is a PSDK header file ("api") in WDK lingo. Overwrite the current outdated PSDK ntstatus.h (which was actually getting used even by drivers due to build system intelligence, so the ddk ntstatus.h was being ignored) with the new DDK ntstatus.h.
svn path=/trunk/; revision=46373
2010-03-23 23:21:29 +00:00
Sir Richard
1e516d2aa8 [CMBATT]: Implement PnP handling. Only the ACPI-facing interface needs to be written now.
svn path=/trunk/; revision=46371
2010-03-23 22:18:04 +00:00
Eric Kohl
d9e2cd3c53 [NTOSKRNL]
Fail if you query a primary token for its impersonation level.

svn path=/trunk/; revision=46370
2010-03-23 21:53:19 +00:00
Timo Kreuzer
15e28917ea fix a typo
svn path=/branches/ros-amd64-bringup/; revision=46369
2010-03-23 21:38:52 +00:00
Timo Kreuzer
f56486bc20 [wingdi]
GetFontUnicodeRanges is _WIN32_WINNT >= 0x0500

svn path=/branches/ros-amd64-bringup/; revision=46368
2010-03-23 21:38:25 +00:00
Timo Kreuzer
4cc2109701 Fix a typo
svn path=/branches/ros-amd64-bringup/; revision=46367
2010-03-23 21:32:01 +00:00
Timo Kreuzer
6716492137 Fix some MSC intrinsics
svn path=/branches/ros-amd64-bringup/; revision=46366
2010-03-23 21:31:39 +00:00
Timo Kreuzer
1be8cd9ee4 [XDK] Move more stuff from ntddk.template.h into appropriate headers
svn path=/branches/header-work/; revision=46365
2010-03-23 21:04:48 +00:00
Timo Kreuzer
83fc2214b9 [XDK]
- add x86/ke.h(mm.h and amd64/mm.h
- cleanup ntddk.template.h, moving stuff into approproate headers

svn path=/branches/header-work/; revision=46364
2010-03-23 20:18:51 +00:00
Timo Kreuzer
0ce290c185 [XDK]
- cleanup wdm.template.h, move to appropriate headers
- move ntddk stuff after wdm stuff in extypes.h
[NTDDK/WDM]
- Regenerate headers

svn path=/branches/header-work/; revision=46363
2010-03-23 19:24:29 +00:00
Amine Khaldi
52281dc572 - Move atsmedia.h to PSDK, introduce pragma once and remove the comments block and the header guard.
- NTDDK -> NTAPI
- DDKCDECLAPI -> __cdecl
- Update wdm.h to reflect the recent XDK changes
- Improve bdasup.h, apply a consistent formatting, introduce pragma once and add the missing BDA_TOPOLOGY_JOINT and KSM_PIN_PAIR definitions

svn path=/branches/header-work/; revision=46362
2010-03-23 18:38:46 +00:00
Timo Kreuzer
47b1e82248 [WDM] Disable some warnings on MSVC
svn path=/branches/header-work/; revision=46361
2010-03-23 18:34:15 +00:00
Timo Kreuzer
6f88dd3240 [XDK]
Improve BYTES_TO_PAGES macro

svn path=/branches/header-work/; revision=46360
2010-03-23 17:09:17 +00:00
Timo Kreuzer
6fae56fbbb [NTIFS]
- Don't check for non existing NTDDI_NT4 (MS typo)
[XDK] 
- Fix PGPE_CONNECT_VECTOR2
- Don't check for non existing NTDDI_WIN2003 (MS typo)

svn path=/branches/header-work/; revision=46359
2010-03-23 16:58:28 +00:00
Timo Kreuzer
5bfe925b10 [XDK]
- Reorder iotypes, putting wdm stuff before ntddk stuff (dependencies)
- Update wdm.h and ntddk.h
- cleanup ntdef.h, use C-style comments

svn path=/branches/header-work/; revision=46358
2010-03-23 16:42:06 +00:00
Timo Kreuzer
f36be5691c DDKAPI -> NTAPI
svn path=/branches/header-work/; revision=46357
2010-03-23 16:38:10 +00:00
Cameron Gutman
fc1acf8469 [ACPI]
- Add stubs for ACPI_INTERFACE_STANDARD and write all of the glue code for IRP_MN_QUERY_INTERFACE

svn path=/trunk/; revision=46353
2010-03-23 03:05:57 +00:00
Cameron Gutman
b52502476e [DDK]
- Fix a typo

svn path=/trunk/; revision=46352
2010-03-23 02:59:50 +00:00
James Tabor
a2ea38d3cc [Win32k|User32]
- Start Menu and Item structure migration.

svn path=/trunk/; revision=46351
2010-03-23 02:42:11 +00:00
Cameron Gutman
d4aa71ff39 [BATTC]
- Remove the incorrect stub from BatteryClassSystemControl

svn path=/trunk/; revision=46350
2010-03-23 02:02:13 +00:00
James Tabor
440c35e960 - Hack fix for gdibatch, please retest Acrobat reader 7.
svn path=/trunk/; revision=46349
2010-03-23 01:34:30 +00:00
Amine Khaldi
9219be6631 [XDK]
- Add the missing definitions needed to autogenerate ntddk.h
- Add ntddk.template.h as a template for autogenerating ntddk.h
- Adjust generate.bat to generate ntddk.h too.
[DDK]
- Introduce the autogenerated ntddk.h into DDK.

svn path=/branches/header-work/; revision=46348
2010-03-23 00:27:32 +00:00
Eric Kohl
0a82f829ed [NTOSKRNL]
NtAccessCheck:
- Fix returned status if the token is not an impersonation token.
- Add a check for the token impersonation level.

svn path=/trunk/; revision=46347
2010-03-23 00:16:14 +00:00
Johannes Anderwald
89cff88aa2 [KSPROXY]
- HACK: Return the oldest used sample when the allocator runs out of samples. Fixes playback as the render does not seem to release the media samples
- Start implementing IKsClockForwarder interface
- Fix a few bugs in KsOpenDefaultDevice
- Implement IMediaSample::GetMediaType
- Always use the CKsAllocator interface for allocating samples

svn path=/trunk/; revision=46346
2010-03-22 21:40:29 +00:00
Christoph von Wittich
f93825c2b2 [RICHED20_WINETEST]
sync riched20_winetest to wine 1.1.41

svn path=/trunk/; revision=46345
2010-03-22 20:50:32 +00:00
Daniel Reimer
fba0e60d98 Update rapps database to most recent Versions of all apps.
svn path=/trunk/; revision=46344
2010-03-22 19:41:28 +00:00
Christoph von Wittich
bddd636721 [OLEDLG]
reduce diff to wine

svn path=/trunk/; revision=46343
2010-03-22 16:02:32 +00:00
James Tabor
c571d594bd - [USER32] reduce diff to wine
svn path=/trunk/; revision=46342
2010-03-22 15:23:37 +00:00
Dmitry Gorbachev
5f337ddbcf Fix debug prints.
svn path=/trunk/; revision=46341
2010-03-22 14:22:46 +00:00
Amine Khaldi
378b31381a [DDK]
- Remove some duplicated definitions.

svn path=/branches/header-work/; revision=46340
2010-03-22 12:54:34 +00:00
Johannes Anderwald
15a94d994c [KSPROXY]
- Implement IKsAllocator interface
- Implement IMediaSample interface
- Implement querying the output pin for IMemInputPin and determine allocator properties. Currently the allocation strategy is limited to 16 Buffers with a size of 2048 * 188 (MPEG2 TS Payload size). Needs more work to determine a reasonable value
- Implement overriding allocator if properties are not matching
- Implement IPin::BeginFlush, IPin::EndFlush, IPin::EndOfStream, IPin::NewSegment for the OutputPin
- Implement a I/O thread which queues the media sample to the kernel pin via IKsInterfaceHandler and then transmitts it to the connected input pin via IMemInputPin interface.
- Implement setting pin state via a friend function, in order to synchronize the starting / stopping of the I/O thread
- Fix a bug in IAMFilterMiscFlags::GetMiscFlags function
- ksproxy (CLSID_Proxy) is now able to connect to MPEG-2 splitter and deliver samples. Needs more investigation why the render filter is not releasing the samples back to allocator, which causes the I/O thread to hang. WIP

svn path=/trunk/; revision=46339
2010-03-22 05:03:50 +00:00
Sir Richard
db734f6736 [CMBATT]: CmBattIoctl: Add handling for the direct-access undocumented IOCTLs. Some PnP glue remains, as well as the ACPI routines, and the driver is done.
svn path=/trunk/; revision=46338
2010-03-22 04:12:02 +00:00
Sir Richard
9cb5d1c622 [CMBATT]: Implement CmBattPowerDispatch for power requests.
svn path=/trunk/; revision=46337
2010-03-22 02:18:28 +00:00
Sir Richard
4d0856dffe [CMBATT]: Implement CmBattSystemControl to parse WMI requests.
svn path=/trunk/; revision=46336
2010-03-22 02:11:16 +00:00
Sir Richard
2e83cf2b10 [CMBATT]: Fix typo in CmBattPowerCallBack caught by aicom.
svn path=/trunk/; revision=46335
2010-03-22 01:57:11 +00:00
Sir Richard
6bd098b58b [CMBATT]: CmBattIoctl: Batteries are very hot-pluggable, so we need to do all the work under our remove lock. Add the logic for it.
[CMBATT]: CmBattIoctl: If the request was for the AC adapter, pass it down to ACPI.

svn path=/trunk/; revision=46334
2010-03-22 01:56:20 +00:00
Sir Richard
01e54afe0a [CMBATT]: Implement CmBattGetAcpiInterfaces and CmBattIoCompletion to get the ACPI interface.
[CMBATT]: Implement CmBattWmiRegistration and CmBattWmiDeRegistration to initialize the WMILIB and register with the I/O WMI routines.
[DDK]: Add missing IoWMIRegistrationControl flags.

svn path=/trunk/; revision=46333
2010-03-22 01:47:40 +00:00
Cameron Gutman
2edf3c4c34 [CMBATT]
- Implement CmBattIoctl

svn path=/trunk/; revision=46332
2010-03-22 01:41:17 +00:00
Cameron Gutman
a1d37edf49 [CMBATT]
- Replace magic numbers with IRP_MJ_* constants

svn path=/trunk/; revision=46331
2010-03-22 01:25:48 +00:00
Sir Richard
d90af61d6f [CMBATT]: Implement PnP side: CmBattDestroyFdo, CmBattRemoveDevice, CmBattCreateFdo, CmBattAddBattery, CmBattAddAcAdapter, CmBattAddDevice.
[DDK]: Add ACPI_INTERFACE_STANDARD.

svn path=/trunk/; revision=46330
2010-03-22 01:14:50 +00:00
Amine Khaldi
b5c5fd533b [PSDK]
- Add devpropdef.h and evntprov.h
- Fix UOW redefinition.
[DDK]
- Fix PGUID redefinition.
[XDK]
- Add wmitypes.h and include it in wdm.h autogeneration template.
- Move several definitions to their appropriate places.
- Add HalGetDmaAlignment, LEGACY_BUS_INFORMATION, IO_DEVICE_EJECT_CALLBACK, PLUGPLAY_PROPERTY_PERSISTENT, and several missing Io*, DEVICE_*, REENUMERATE_*, PCI_*, PNP_*, Ob*, OB_*, PO_*, Wmi*, Etw* and ACPI related definitions.
- Add CmKeyObjectType to exported object types.
- Fix UOW redefinition.
- Group some related definitions.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46329
2010-03-22 01:00:05 +00:00
Aleksey Bragin
79a14dac68 [RICHED20]
- Sync riched20 with Wine-1.1.41.

svn path=/trunk/; revision=46328
2010-03-21 22:44:26 +00:00
Aleksey Bragin
11604ef89b [WINE]
- Move and update assembler functions definition macros from port.h (added by Steven around revision 7000) to config.h as it is now in Wine.
- Update related __ASM macros.

svn path=/trunk/; revision=46327
2010-03-21 22:27:26 +00:00
Sir Richard
9657b28db9 [DDK]: Fix build, sorry.
svn path=/trunk/; revision=46326
2010-03-21 22:09:29 +00:00
Christoph von Wittich
2bdad0ba67 [DBGHELP]
sync dbghelp with wine 1.1.41

svn path=/trunk/; revision=46325
2010-03-21 21:08:48 +00:00
Sir Richard
3e76f1bac8 [CMBATT]: Implement CmBattPowerCallback and CmBattWakeDpc to handle S0 entry/exit transitions which determine if we delay ACPI battery notifications to avoid wake, and the queuing of a DPC to handle processing the delayed ARs when we return to S0.
svn path=/trunk/; revision=46324
2010-03-21 21:07:01 +00:00
Christoph von Wittich
37d10b143e [VERSION]
sync version with wine 1.1.41

svn path=/trunk/; revision=46323
2010-03-21 21:02:06 +00:00
Sir Richard
1c53a1fd45 [CMBATT]; Implement CmBattSetStatusNotify and CmBattDisableStatusNotify for setting/clearing the current trip point (at the Windows layer). Actual ACPI work in CmBattSetTripPpoint not done.
svn path=/trunk/; revision=46321
2010-03-21 20:38:43 +00:00
Christoph von Wittich
c379601527 [USP10]
sync usp10 with wine 1.1.41

svn path=/trunk/; revision=46320
2010-03-21 20:26:32 +00:00
Christoph von Wittich
465e002842 [HLINK]
sync hlink with wine 1.1.41

svn path=/trunk/; revision=46319
2010-03-21 19:28:13 +00:00
Christoph von Wittich
57d67500da [PSDK]
sync wincodec.idl with wine 1.1.41

svn path=/trunk/; revision=46318
2010-03-21 19:23:25 +00:00
Christoph von Wittich
518193eb0a [GDIPLUS]
sync gdiplus with wine 1.1.41

svn path=/trunk/; revision=46317
2010-03-21 19:20:42 +00:00
Christoph von Wittich
335d8b61b1 [FUSION]
sync fusion with wine 1.1.41

svn path=/trunk/; revision=46316
2010-03-21 19:19:12 +00:00
Christoph von Wittich
f3df4840c9 [AVIFIL32]
sync avifil32 with wine 1.1.41

svn path=/trunk/; revision=46315
2010-03-21 19:17:10 +00:00
Christoph von Wittich
f5e7692926 [WINDOWSCODECS]
sync windowscodecs with wine 1.1.41

svn path=/trunk/; revision=46313
2010-03-21 19:14:16 +00:00
Christoph von Wittich
b0d8fe0832 [QEDIT]
sync qedit with wine 1.1.41

svn path=/trunk/; revision=46312
2010-03-21 19:07:07 +00:00
Christoph von Wittich
f8e7a6dbaf [QUARTZ]
sync quartz with wine 1.1.41

svn path=/trunk/; revision=46311
2010-03-21 19:02:37 +00:00
Sir Richard
22bb1901b6 [CMBATT]: Implement CmBattQueryTag and CmBattNotifyHandler for getting ACPI Battery notifications, as per ACPI Spec and http://www.microsoft.com/whdc/archive/ACPInotify.mspx.
svn path=/trunk/; revision=46309
2010-03-21 18:04:08 +00:00
Christoph von Wittich
c825e8a684 [URLMON]
sync urlmon with wine 1.1.41

svn path=/trunk/; revision=46308
2010-03-21 17:43:25 +00:00
Daniel Reimer
9fc5887492 Add more HIDs for other CPUs and Manufacturers like VIA and AMD into cpu.inf to make it show the real CPU name in the Device Manager. This does not work yet, because our ACPI always returns the Default CPU HID right now.
svn path=/trunk/; revision=46306
2010-03-21 15:47:41 +00:00
Christoph von Wittich
5b9666d6ad [MSI]
sync msi with wine 1.1.41

svn path=/trunk/; revision=46305
2010-03-21 15:18:13 +00:00
Christoph von Wittich
b7cad37389 [SHLWAPI]
sync shlwapi with wine 1.1.41

svn path=/trunk/; revision=46304
2010-03-21 15:14:34 +00:00
Christoph von Wittich
a209a984ba [MSHTML]
sync mshtml with wine 1.1.41

svn path=/trunk/; revision=46303
2010-03-21 15:12:30 +00:00
Christoph von Wittich
154813b443 [SHDOCVW]
sync shdocvw with wine 1.1.41

svn path=/trunk/; revision=46302
2010-03-21 15:08:31 +00:00
Christoph von Wittich
4bf2ced778 [RSAENH]
sync rsaenh with wine 1.1.41

svn path=/trunk/; revision=46301
2010-03-21 15:03:19 +00:00
Christoph von Wittich
78e9a12f0a [CRYPT32]
sync crypt32 with wine 1.1.41

svn path=/trunk/; revision=46300
2010-03-21 14:58:20 +00:00
Christoph von Wittich
a0b4b96d75 [RPCRT4]
partial rpcrt4 sync to wine 1.1.41

svn path=/trunk/; revision=46299
2010-03-21 14:53:49 +00:00
Christoph von Wittich
583156b208 [WININET]
sync wininet with wine 1.1.41

svn path=/trunk/; revision=46298
2010-03-21 14:53:28 +00:00
Eric Kohl
1b3286b8e0 [NTOSKRNL]
NtAccessCheck
- Probe parameters.
- Fail if generic access rights have not been mapped.

svn path=/trunk/; revision=46297
2010-03-21 14:10:50 +00:00
Christoph von Wittich
1436e51e2a [OLEAUT32]
sync oleaut32 with wine 1.1.41

svn path=/trunk/; revision=46296
2010-03-21 13:04:42 +00:00
Christoph von Wittich
1a25e4b86d [OLE32]
sync ole32 with wine 1.1.41

svn path=/trunk/; revision=46295
2010-03-21 13:00:22 +00:00
Christoph von Wittich
2e3fc85b22 [WIDL]
sync widl with wine 1.1.41

svn path=/trunk/; revision=46294
2010-03-21 12:47:24 +00:00
Christoph von Wittich
2daeb4ca5a [MSXML3]
sync msxml3 to wine 1.1.41

svn path=/trunk/; revision=46293
2010-03-21 11:14:47 +00:00
Christoph von Wittich
69ced963a6 [RPCRT4]
partial rpcrt4 sync to wine 1.1.40 (fixes crashing cstub test)

svn path=/trunk/; revision=46292
2010-03-21 10:53:17 +00:00
Sir Richard
7356746408 [CMBATT]: Implement CmBattGetBatteryStatus. See ACPI Specification 4.0B (10.2 Control Method Batteries, P.383).
svn path=/trunk/; revision=46291
2010-03-21 03:14:12 +00:00
Amine Khaldi
e9047cd524 [DDK]
- Fix PIO_CSQ_INSERT_IRP_EX redefinition.
[NTDDK]
- Remove a couple of duplicate definitions.
[XDK]
- Move several definitions to their appropriate places.
- Add COMPUTE_PAGES_SPANNED, NODE_REQUIREMENT, MM_ANY_NODE_OK, PNTFS_DEREF_EXPORTED_SECURITY_DESCRIPTOR, PsWrapApcWow64Thread, IRP_MN_DEVICE_ENUMERATED, USE_DMA_MACROS, NO_LEGACY_DRIVERS, FO_FLAGS_VALID_ONLY_DURING_CREATE, LOADER_PARTITION_INFORMATION_EX, BOOTDISK_INFORMATION_LITE, IO_CSQ_INSERT_IRP_EX, STATUS_CONTINUE_COMPLETION and several missing Ex*, REG_*, Cm*, Mm*, SL_*, Io*, IO_*, CONNECT_*, WDM_* and WMI* definitions.
- Update ExGetCurrentResourceThread and PADAPTER_OBJECT.
- Group some related definitions.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46290
2010-03-20 23:01:57 +00:00
Timo Kreuzer
532150345c [NTOS]
NtOpenThreadTokenEx: Initialize NewToken with NULL, so it doesn't get wrongly dereferenced. Fixes advapi32:security winetest crash.

svn path=/trunk/; revision=46289
2010-03-20 22:05:01 +00:00
Sir Richard
9f21a824cb [CMBATT]: Implement CmBattQueryInformation and CmBattQueryStatus.
svn path=/trunk/; revision=46288
2010-03-20 21:25:40 +00:00
Amine Khaldi
a896fedfea [NTOSKRNL]
- Remove duplicate SINGLE_GROUP_LEGACY_API definition.
[PSDK]
- Add missing GROUP_AFFINITY structure.
[NTDDK]
- Remove ExFreePool definition.
[NDK]
- Remove duplicate PROCESSOR_CACHE_TYPE and CACHE_DESCRIPTOR definitions (they now exist in wdm.h).
[XDK]
- Move several definitions to their appropriate places.
- Add PROCESSOR_CALLBACK_FUNCTION, INVALID_PROCESSOR_INDEX, XSTATE_SAVE, LOOKASIDE_MINIMUM_BLOCK_SIZE and several missing Ke*, KBUGCHECK_*, KB_ADD_PAGES_FLAG_*, EXCEPTION_*, KE_PROCESSOR_CHANGE_*, Ex*, FirstEntrySList, and EX_*, RESOURCE_* definitions.
- Update ExAllocateFromNPagedLookasideList, ExAllocateFromPagedLookasideList, ExFreeToPagedLookasideList, OWNER_ENTRY and ERESOURCE.
- Group some related definitions.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46287
2010-03-20 16:58:43 +00:00
Cameron Gutman
84d900acb3 - Fix build
svn path=/trunk/; revision=46286
2010-03-20 16:49:50 +00:00
Cameron Gutman
7d83ca07e8 [NTOSKRNL]
- Fix a memory leak of the allocated IO_STATUS_BLOCK
 - Don't free unallocated memory
 - Send the IRP with the correct MajorFunction
 - Use IoBuildAsynchronousFsdRequest instead of IoBuildSynchronousFsdRequest (fixes potiential null pointer access when attempting to set the wait event which is NULL)
 - Set the correct stack parameters for the IRPs

svn path=/trunk/; revision=46285
2010-03-20 16:48:00 +00:00
Amine Khaldi
ea3378dc87 [XDK]
- Move several definitions to their appropriate places.
- Add FIELD_OFFSET, FIELD_SIZE, POOL_TAGGING, IF_DEBUG, IF_NTOS_DEBUG, LOOKASIDE_CHECK, KIPI_COUNTS, KTIMER_ACTUAL_LENGTH, LOGICAL_PROCESSOR_RELATIONSHIP, LTP_PC_SMT, SYSTEM_LOGICAL_PROCESSOR_INFORMATION, NUMA_NODE_RELATIONSHIP, GROUP_RELATIONSHIP, SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, SINGLE_GROUP_LEGACY_API, KMESSAGE_SERVICE_ROUTINE, KSEMAPHORE_ACTUAL_LENGTH and several missing CACHE_*, PROCESSOR_* and KAPC_* definitions.
- Group some related definitions.
- Base several ASSERT_* macros on NT_ASSERT instead of ASSERT.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46284
2010-03-20 11:47:30 +00:00
Timo Kreuzer
b751e1e10b [CRT]
Import x87 asm version of pow() from glibc. Replaces our broken implementation, fixing a bunch of winetests (oleaut32 vartest)

svn path=/trunk/; revision=46283
2010-03-20 00:49:30 +00:00
Timo Kreuzer
26a974f2a0 [FREELDR]
Make the char buffer in KeBugCheckEx big enough for the output string. Spottet by Russel.

svn path=/trunk/; revision=46282
2010-03-20 00:41:46 +00:00
Cameron Gutman
8a6dda0909 - Add cpu.inf and usb.inf to inf.rbuild
svn path=/trunk/; revision=46281
2010-03-19 22:45:25 +00:00
Eric Kohl
05bc282aa8 - Add german translation.
- Install class installer DLL.
- Register class installer.
- Register class icon. The Device Manager does not recognize it yet.

svn path=/trunk/; revision=46280
2010-03-19 21:19:35 +00:00
Johannes Anderwald
333598b9c0 [KSPROXY]
- Fix build for XXX time because of me

svn path=/trunk/; revision=46278
2010-03-19 21:07:23 +00:00
Eric Kohl
7f270c0bd9 [BATT]
Add battery class installer dll.

svn path=/trunk/; revision=46277
2010-03-19 20:55:09 +00:00
Amine Khaldi
34c17935e0 [EXT2FSD]
- Remove a couple of duplicate definitions (that exist now in wdm.h).
[XDK]
- Move several definitions to their appropriate places.
- Group some related definitions.
- Add vKdPrintEx, DEFINE_GUIDEX, STATICGUIDOF, RTLVERLIB_DDI, LOWBYTE_MASK, FIRSTBYTE, SECONDBYTE, THIRDBYTE, FOURTHBYTE and several missing TRANSACTIONMANAGER_*, TRANSACTION_*, RESOURCEMANAGER_*, ENLISTMENT_*, PFN_NT_*, Nt*, SHORT_*, LONG_*, PFN_RTL_*, LONGLONG_* and Rtl* definitions.
- Fix RtlCheckBit definition.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46276
2010-03-19 20:01:04 +00:00
Sir Richard
dd3eb6e798 [CMBATT]: Driver Entrypoint, Create/Close handler, and Unload handler.
svn path=/trunk/; revision=46275
2010-03-19 18:17:32 +00:00
Johannes Anderwald
c56e31c044 [KSPROXY]
- Start implementing IKsAllocator interface
- Retrieve the default format for the input and output pin
- Instantiate the kernel pin when an interface request for IMemInputPin / IKsPropertySet / IKsObject request arrives 
- Implement IKsPin::KsCreateSinkPinHandle for the input pin
- Partly implement IKsPin::KsPropagateAcquire for input / output pin
- Fix asserts in IKsControl::KsProperty, IKsControl::KsMethod, IKsControl::KsEvent
- Simplify CInputPin::CheckFormat
- Store the currently used pin medium / interface and connection format
- Implement IAMBufferNegotiation::SuggestAllocatorProperties, IAMBufferNegotiation::GetAllocatorProperties for the output pin
- Pass pin's communication to output pin
- Implement IMediaFilter::Pause, IMediaFilter::Run for CKsProxy
- CKsProxy is now able to deliver signal statistics for BDA devices (app: SageDvbRecorder, OS: WinXP SP3)

svn path=/trunk/; revision=46274
2010-03-19 15:39:08 +00:00
Amine Khaldi
9c676e382b [XDK]
- Move several definitions to their appropriate places.
- Add DEVICE_FLAGS, InitializeListHead32, AppendTailList, RTL_QUERY_REGISTRY_NOSTRING, NT_VERIFY, NT_VERIFYMSG, NT_VERIFYMSGW, SLIST_ENTRY32, SLIST_HEADER32 and several missing SERVICE_*, CM_*, EISA_* and IRQ_*.
- Update SLIST_HEADER.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46273
2010-03-19 14:10:13 +00:00
Amine Khaldi
de2aade285 [XDK]
- Move several definitions to their appropriate places.
- Add MONITOR_DISPLAY_STATE, COUNTED_REASON_CONTEXT, PowerRequestMaximum, SET_POWER_SETTING_VALUE, NOTIFY_USER_POWER_SETTING and several missing GUIDs, APPLICATIONLAUNCH_SETTING_VALUEKEY_*, PERFSTATE_POLICY_CHANGE_*, PROCESSOR_PERF_BOOST_POLICY_*, CORE_PARKING_POLICY_CHANGE_*, POWER_*, SYSTEM_POWER_*, IOCTL_* and DIAGNOSTIC_REASON_*
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46272
2010-03-19 12:47:29 +00:00
Amine Khaldi
79bd72fbf8 [XDK]
- Move PORT_MAXIMUM_MESSAGE_LENGTH, INTERFACE_TYPE and guiddef.h inclusion to their appropriate places.
- Add PIO_APC_ROUTINE_DEFINED and several missing FILE_*, IO_* and REG_* definitions.
- Remove pshpack8 inclusion around FILE_BASIC_INFORMATION.
- Update KEY_INFORMATION_CLASS.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46271
2010-03-19 11:36:36 +00:00
Cameron Gutman
ba2554d6f4 [NTOSKRNL]
- Use the correct file name for services which have differing service and image names
 - Fixes the file name of the display miniports on the SOS screen (VGA.SYS -> VGAMP.SYS and VBE.SYS -> VBEMP.SYS)

svn path=/trunk/; revision=46270
2010-03-19 03:14:33 +00:00
Amine Khaldi
9c88f9fb2b [XDK]
- DDKAPI -> NTAPI
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46268
2010-03-18 22:48:53 +00:00
Amine Khaldi
b6fa074a1c [XDK]
- Apply a consistent formatting.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46267
2010-03-18 22:45:30 +00:00
Kamil Hornicek
70e434adea [WIN32K]
Remove a pedantic assert to allow compressed bitmaps.
See issue #5255 for more details.

svn path=/trunk/; revision=46266
2010-03-18 18:55:48 +00:00
Amine Khaldi
aa1d8ab8bc [XDK]
- Add KeNumberProcessors, XSTATE_CONTEXT, MINIMAL_XSTATE_AREA_LENGTH, LOCK_QUEUE_WAIT_BIT, LOCK_QUEUE_OWNER_BIT and some missing XSAVE_*, CONTEXT_* and RTL_CONTEXT_* definitions
- PKINTERRUPT_ROUTINE : DDKAPI -> NTAPI
- Add some C_ASSERTs
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46265
2010-03-18 17:16:54 +00:00
Timo Kreuzer
5024944fa7 [NTOS]
Fix compilation with MSVC. Dedicated to Stefan.

svn path=/trunk/; revision=46264
2010-03-18 16:30:54 +00:00
Amine Khaldi
b797eef5ea Sync with trunk head (part 1 of 2)
svn path=/branches/header-work/; revision=46262
2010-03-18 15:37:13 +00:00
Amine Khaldi
b2c1de9860 [PSDK]
- Add several missing ntiologc.h definitions.
[XDK]
- Include ntiologc.h in wdm.h
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46261
2010-03-18 14:14:27 +00:00
Amine Khaldi
0d6a8c1681 [NTDDK]
- Group related definitions.
[XDK]
- Add PCI_CAPABILITIES_HEADER.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46260
2010-03-18 13:37:50 +00:00
Amine Khaldi
0c6a2ac923 [NTDDK]
- Group some related definitions.

svn path=/branches/header-work/; revision=46259
2010-03-18 13:19:50 +00:00
Amine Khaldi
8885f260b3 [NTDDK]
- Group related definitions.
- Add EXTENDED_AGP_REGISTER and several missing PCI_*, PCIX_*, and OSC_* definitions

svn path=/branches/header-work/; revision=46258
2010-03-18 12:54:44 +00:00
Amine Khaldi
6084e62d15 [NTDDK]
- Group related definitions.
- Add missing NTAPI attribute to IoCreateFileSpecifyDeviceObjectHint and IoCreateFileEx.
- Fix a FIXME.
[SERIAL]
- Remove redundant IoAttachDeviceToDeviceStackSafe definition.
[MCE]
- Add mce.h definitions.

svn path=/branches/header-work/; revision=46256
2010-03-18 00:36:45 +00:00
Amine Khaldi
e5aff20503 [NTDDK]
- Group related definitions.
- Add PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR_TYPE, PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR, PHYSICAL_COUNTER_RESOURCE_LIST and several missing Hal*, pHal* and HAL_* definitions.

svn path=/branches/header-work/; revision=46255
2010-03-17 22:44:46 +00:00
Timo Kreuzer
814940c42b [NTOS]
Add DPRINTs to tell if SYSENTER is detected. Requested by Christoph for testing the test machine.

svn path=/trunk/; revision=46253
2010-03-17 21:26:04 +00:00
Amine Khaldi
a141adc1a5 [NTDDK]
- Group related definitions.
- Update ARBITER_PARAMETERS.
- Add PS_CREATE_NOTIFY_INFO, PCREATE_PROCESS_NOTIFY_ROUTINE_EX, IMAGE_INFO_EX, TXN_PARAMETER_BLOCK, TXF_MINIVERSION_DEFAULT_VIEW, AGP_TARGET_BUS_INTERFACE_STANDARD, PNP_LOCATION_INTERFACE, and several missing Ps*, IO_*, DO_*, ARBITER_* and Io*.
- IMAGE_INFO : ULONG Reserved:22 -> ULONG Reserved:21.

svn path=/branches/header-work/; revision=46252
2010-03-17 16:25:03 +00:00
Christoph von Wittich
f891c7f43b [USER32]
reduce diff to wine

svn path=/trunk/; revision=46251
2010-03-17 16:20:55 +00:00
Timo Kreuzer
1dd7c3a8e0 [NTOS]
I forgot to set the exit function for systems without sysenter/sysexit support. Should fix sysreg.

svn path=/trunk/; revision=46250
2010-03-17 16:17:16 +00:00
Amine Khaldi
32537e4bce [NTDDK]
- Fix PIMAGE_NT_HEADERS{32,64} and PCONTEXT redefinitions
- Remove duplicate SINGLE_GROUP_LEGACY_API
[NTIFS]
- Remove several duplicate definitions
[NTIMAGE]
- Fix PIMAGE_NT_HEADERS{32,64} redefinitions
[NDK]
- Fix PPEB redefinition
[XDK]
- Go back to the previous PEPROCESS and PETHREAD definitions
[WDM]
- Update wdm.h (to reflect xdk changes)

svn path=/branches/header-work/; revision=46248
2010-03-17 14:55:23 +00:00
Timo Kreuzer
69330a5795 [NTOS]
Rewrite Trap exits stubs in raw assembly (2nd try) and remove inline assembly. Bugcheck in KiTrap0DHandler, when the fault was not handled. Replace code patching for sysexit vs iret with a function pointer. Slightly refactor KiSystemServiceHandler/KiFastCallEntryHanlder. Unroll the loop in the systemcall handler and use volatile keyword when reloading TrapFrame and DescriptorTable from the new stack after converting to gui thread to prevent the compiler from optimizing it away (or moving it out of the loop). Add an asm macro KiCallHandler, which expands to call on debug builds to make sure backtraces work as expected and to jmp on release builds for improved performance. Modify KiExitV86Trap to always exit and add DECLSPEC_NORETURN. Use __debugbreak() instead of while(TRUE) on errors in KiExitTrapDebugChecks.
The old code hat 2 issues: one was restoring segments in KiExitV86Trap when they shouldn't be, leading to a bugcheck. And the other was a long hang (5 mintes or more) in 3rd stage on qemu when selecting RosDbg, caused by the KiFastCallExitHandler function pointer being initialized with a pointer to the iret handler. Initializing it in code solved the issue. To figure out why is left as an exercise to the reader.

svn path=/trunk/; revision=46247
2010-03-17 13:12:46 +00:00
Kamil Hornicek
b6e52b15e3 [WIN32K]
When adding new glyph cache entry convert the glyph bitmap with proper alignment to comply with the new code in EngCreateBitmap and remove the corresponding hack from SURFMEM_bCreateDib.

[FREETYPE]
When doing 1BPP -> 8BPP conversion set all 8 bits not only the LSB. (Freetype devs were notified of this issue)
See issue #5244 for more details.

svn path=/trunk/; revision=46246
2010-03-17 12:11:55 +00:00
Amine Khaldi
e78ab7139d [XDK]
- Improve PEPROCESS and PETHREAD definitions
- Remove PDEVICE_HANDLER_OBJECT
[WDM]
- Update wdm.h to reflect the changes to XDK
[NTDDK]
- Remove some duplicates and group some related definitions

svn path=/branches/header-work/; revision=46245
2010-03-17 11:07:59 +00:00
Amine Khaldi
463f7f48ab [XDK]
- Remove duplicate QUOTA_LIMITS
[WDM]
- Update wdm.h with the recent changes to XDK

svn path=/branches/header-work/; revision=46244
2010-03-17 10:16:54 +00:00
Cameron Gutman
cc5a045b54 - Enable ACPI
- Please send all complaints to roswarrior ;)

svn path=/trunk/; revision=46243
2010-03-17 09:25:55 +00:00
Cameron Gutman
2545746a80 - Set the resource pointer back to the start of the list before looping a second time
- Remove the duplicate OSL
 - Disable more debug prints
 - ROS with ACPI has been booted successfully on VirtualBox (with additions), QEMU, and VMware

svn path=/trunk/; revision=46242
2010-03-17 09:25:07 +00:00
Cameron Gutman
44b4c1e7d1 - Check that the memory location that we are trying to read is valid
- Remove the VMware hack
 - ACPI works on all tested VMs now (QEMU, VirtualBox, and VMware)
 - Just a resource code issue remains and prevents us from enabling ACPI by default

svn path=/trunk/; revision=46241
2010-03-17 08:48:57 +00:00
Cameron Gutman
82b8272584 - Check that the device number is not invalid
- ACPI now crashes later on VMware

svn path=/trunk/; revision=46240
2010-03-17 07:16:08 +00:00
Cameron Gutman
fa481444a7 - Don't acquire the mutex in the ISR handler because we're at a raised IRQL
- Fixes VirtualBox Additions with ACPI enabled

svn path=/trunk/; revision=46239
2010-03-17 06:19:01 +00:00
Cameron Gutman
e77675a0a9 - Define NDEBUG and demote several non-critical debug prints to DPRINT
svn path=/trunk/; revision=46238
2010-03-17 05:30:22 +00:00
Cameron Gutman
6c45294b53 - Add a hack to disable ACPI if VMware is detected
- This hack circumvents the main blocker that prevents enabling ACPI in trunk

svn path=/trunk/; revision=46237
2010-03-17 05:02:06 +00:00
Christoph von Wittich
85b127e4c1 [USER32]
reduce diff to wine

svn path=/trunk/; revision=46236
2010-03-17 00:11:31 +00:00
Amine Khaldi
a60d4bd207 [NTDDK]
- Group related definitions
- Add several missing Mm* and Se*

svn path=/branches/header-work/; revision=46235
2010-03-17 00:01:55 +00:00
Amine Khaldi
f5ebdf4dd3 [NTDDK]
- Group related definitions
- Add CmResourceTypeMaximum, SINGLE_GROUP_LEGACY_API, MAXIMUM_EXPANSION_SIZE, EXPAND_STACK_CALLOUT and several SYSTEM_*, TIMER_SET_*, XSTATE_*, SHARED_*, EX_*, PCCARD_*, PAUSE_PROCESSOR and Ke*

svn path=/branches/header-work/; revision=46234
2010-03-16 23:33:28 +00:00
Eric Kohl
174145f20c [ADVAPI32]
- Create a service status handle when a service starts and destroy it after it has been stopped.

svn path=/trunk/; revision=46233
2010-03-16 23:10:03 +00:00
Daniel Reimer
4670adcf35 Update some more apps. (OpenOffice 3.2.0, SciTE 2.03)
svn path=/trunk/; revision=46232
2010-03-16 22:37:53 +00:00
Christoph von Wittich
8e9189e36e [USER32]
reduce diff to wine

svn path=/trunk/; revision=46231
2010-03-16 22:21:20 +00:00
Daniel Reimer
a32c56c9bd Update openoffice 2.4 Links to a new and working mirror
svn path=/trunk/; revision=46230
2010-03-16 22:08:44 +00:00
Christoph von Wittich
251f0e96d8 [KERNEL32]
reduce diff to wine

svn path=/trunk/; revision=46229
2010-03-16 17:50:04 +00:00
Amine Khaldi
278d73b6cf [NTDDK]
- Group related definitions
- Add PAGE_PRIORITY_INFORMATION, PROCESS_*, RATE_QUOTA_LIMIT, QUOTA_LIMITS_*, MAX_HW_COUNTERS, THREAD_PROFILING_FLAG_DISPATCH and HARDWARE_COUNTER(_TYPE)

svn path=/branches/header-work/; revision=46227
2010-03-16 14:15:22 +00:00
Amine Khaldi
85d13f68f7 [XDK]
- Add METHOD_FROM_CTL_CODE, METHOD_DIRECT_TO_HARDWARE and METHOD_DIRECT_FROM_HARDWARE definitions
[NTDDK]
- Add RtlGetProductInfo, VER_*, FILE_CHARACTERISTICS_*, IOCTL_AVIO_* and THREAD_CSWITCH_*
- Add FILE_FS_* and KEY_* structures

svn path=/branches/header-work/; revision=46226
2010-03-16 13:40:22 +00:00
Christoph von Wittich
bdbfaa6b19 [SHELL32]
reduce diffs to wine

svn path=/trunk/; revision=46225
2010-03-16 12:26:49 +00:00
Christoph von Wittich
65a79a863e [KSPROXY]
fix file headers

svn path=/trunk/; revision=46224
2010-03-16 12:11:39 +00:00
Christoph von Wittich
8d09720a18 [SHELL32]
sync SHNotifyCopyFileW to wine 1.1.40

svn path=/trunk/; revision=46223
2010-03-16 12:02:45 +00:00
Johannes Anderwald
8012adb803 [KSPROXY]
- Implement IKsPinPipe for CInputPin & COutputPin
- Implement IKsPinFactory, IStreamBuilder for CInputPin
- Implement IKsAggregateControl, IQualityControl stub for CInputPin & COutputPin

svn path=/trunk/; revision=46222
2010-03-16 11:12:19 +00:00
Johannes Anderwald
76e59af897 [DXSDK]
- Add IAMBufferNegotiation interface

svn path=/trunk/; revision=46221
2010-03-16 11:09:19 +00:00
Christoph von Wittich
fcec48b05b [DXDIAG]
get next button to work

svn path=/trunk/; revision=46220
2010-03-16 10:47:04 +00:00
Christoph von Wittich
c1e3362f03 [ADVAPI32]
sync RegpApplyRestrictions to wine 1.1.40

svn path=/trunk/; revision=46219
2010-03-16 09:29:28 +00:00
Amine Khaldi
99e1ded6f8 [NTDDK]
- Group related definitions
- Add several missing RTL related definitions

svn path=/branches/header-work/; revision=46218
2010-03-15 23:41:04 +00:00
Dmitry Gorbachev
96ae173fea Link buslogic.sys against libcntpr. This should fix "undefined reference" errors reported on the forum.
svn path=/trunk/; revision=46217
2010-03-15 22:54:09 +00:00
Christoph von Wittich
f64f8479d9 [PSDK]
fix callback definition

svn path=/trunk/; revision=46216
2010-03-15 22:21:34 +00:00
Christoph von Wittich
d9f9773b77 [NTDLL_WINETEST]
sync ntdll_winetest to wine 1.1.40

svn path=/trunk/; revision=46215
2010-03-15 22:13:19 +00:00
Christoph von Wittich
5ca64ba60f [KERNEL32]
sync parameter validation for SearchPath with wine 1.1.40

svn path=/trunk/; revision=46214
2010-03-15 22:04:15 +00:00
Christoph von Wittich
d70bf73ec1 [NTDLL_WINETEST]
partial sync of ntdll_winetest to match newer structs in winternl

svn path=/trunk/; revision=46213
2010-03-15 17:59:46 +00:00
Christoph von Wittich
920b13160c [DBGHELP]
sync dbghelp with wine 1.1.40

svn path=/trunk/; revision=46212
2010-03-15 17:58:48 +00:00
Dmitry Gorbachev
48cc443d59 Update log2lines to ver. 2.2. Jan Roeloffzen, bug #4342.
svn path=/trunk/; revision=46211
2010-03-15 17:03:37 +00:00
Amine Khaldi
23e598d8ee [NTIFS]
- Move some definition to ntddk.h
[NTDDK]
- Add several missing Rtl* definitions

svn path=/branches/header-work/; revision=46210
2010-03-15 16:32:59 +00:00
Johannes Anderwald
34d9c5fc14 - Fix build
svn path=/trunk/; revision=46209
2010-03-15 16:23:45 +00:00
Johannes Anderwald
531fab28a4 [KSPROXY]
- Implement IKsDataTypeHandler::KsIsMediaTypeInRanges, IKsDataTypeHandler::KsSetMediaType
- Instantiate the IKsInterfaceHandler for the CInputPin 


svn path=/trunk/; revision=46208
2010-03-15 16:22:41 +00:00
Christoph von Wittich
7a57ed5819 [ADVAPI32]
sync ParseStringSidToSid with wine 1.1.40

svn path=/trunk/; revision=46207
2010-03-15 15:44:35 +00:00
Amine Khaldi
14fed7ef31 [NTDDK]
- Introduce pragma once
- Group related definitions
- Add some missing define types
- Add several CONTEXT_*, KERNEL_* and RTL_* definitions
- Add INITIAL_MXCSR and INITIAL_FPCSR
- Add WELL_KNOWN_SID_TYPE and TABLE_SEARCH_RESULT enumerations
- Add several missing Rtl* functions

svn path=/branches/header-work/; revision=46206
2010-03-15 14:02:59 +00:00
Johannes Anderwald
59b9f20eee [KSPROXY]
- Implement ISpecifyPropertyPages interface for CInputPin
- Implement IKsInterfaceHandler::KsSetPin, IKsInterfaceHandler::KsProcessMediaSamples, IKsInterfaceHandler::KsCompleteIo

svn path=/trunk/; revision=46205
2010-03-15 13:11:31 +00:00
Dmitry Gorbachev
7754d319f3 Update Firefox 3 URLs. Maciej Białas, bug #5251.
svn path=/trunk/; revision=46204
2010-03-15 12:40:57 +00:00
Christoph von Wittich
e5956bc693 [FAULTREP]
import faultrep.dll from wine 1.1.40

svn path=/trunk/; revision=46203
2010-03-15 11:45:17 +00:00
Christoph von Wittich
3e4b8ea4f1 [WININET]
sync wininet with wine 1.1.40

svn path=/trunk/; revision=46202
2010-03-15 11:35:51 +00:00
Hervé Poussineau
f9d9302445 [ntoskrnl] Better fix for correct display of loaded drivers
svn path=/trunk/; revision=46200
2010-03-14 19:21:38 +00:00
Eric Kohl
ee46cddad7 [EVENTLOG]
- Set the current service status from the service control handler.
- Fix type declarations.
- ElfrOpenELA/ElfrRegisterEventSourceA: Do not call the Unicode functions because in this case it is easier to do things yourself.
- Implement ElfrGetLogInformation partially.
- Bind client to the EventLog Pipe.
- Use RtlInitAnsiString and RtlInitUnicodeString instead of building strings manually.
- GetEventLogInformation: Check for valid dwInfoLevel.

svn path=/trunk/; revision=46199
2010-03-14 12:26:49 +00:00
Amine Khaldi
2c3eaf3a0f [NTDDK]
- Remove duplicate definitions (wdm)

svn path=/branches/header-work/; revision=46198
2010-03-14 00:25:46 +00:00
Timo Kreuzer
8092586943 [NTIFS] fix NlsMbOemCodePageTag, NlsOemLeadByteInfo, FsRtlLegalAnsiCharacterArray
[XDK] Add IO_PRIORITY_HINT, fix NlsMbCodePageTag, NlsMbOemCodePageTag
- Update wdm.h based on xdk

svn path=/branches/header-work/; revision=46197
2010-03-14 00:22:25 +00:00
Amine Khaldi
3d575fe920 [NTIFS]
- Remove duplicate definitions (wdm)

svn path=/branches/header-work/; revision=46196
2010-03-14 00:16:47 +00:00
Amine Khaldi
eb25bd4350 [NTIFS]
- Remove duplicate definitions (wdm)

svn path=/branches/header-work/; revision=46195
2010-03-13 23:55:57 +00:00
Amine Khaldi
87551abebf [NTIFS]
- Group some related definitions

svn path=/branches/header-work/; revision=46194
2010-03-13 23:23:24 +00:00
Hervé Poussineau
c39812d1b6 [ntoskrnl] Never suppose that buffer in UNICODE_STRING is null terminated. Fixes display artifacts on list of loaded drivers
svn path=/trunk/; revision=46193
2010-03-13 23:19:05 +00:00
Cameron Gutman
c709d2abc9 - Fix a typo in AcpiOsReadPciConfiguration and AcpiOsWritePciConfiguration
- May fix ACPI on VMware

svn path=/trunk/; revision=46192
2010-03-13 23:01:58 +00:00
Amine Khaldi
e6e5ef672b [NTIFS]
- Group related definitions
Add IOCTL_REDIR_QUERY_PATH_EX, QUERY_PATH_REQUEST_EX, VOLSNAPCONTROLTYPE, IOCTL_VOLSNAP_FLUSH_AND_HOLD_WRITES, and some missing Zw*
- ZwFlushVirtualMemory : PULONG FlushSize -> PSIZE_T RegionSize

svn path=/branches/header-work/; revision=46191
2010-03-13 23:01:42 +00:00
Hervé Poussineau
9a46a46011 [freeldr] Never suppose that buffer in UNICODE_STRING is null terminated. Fixes some random failures when loading drivers
svn path=/trunk/; revision=46190
2010-03-13 22:56:41 +00:00
Amine Khaldi
4a64c8b9f0 [NTIFS]
- Group related definitions
- Add some missing Cc*, PIN_* and MAP_* definitions
- Update CcCopyWriteWontFlush and CcMapData

svn path=/branches/header-work/; revision=46189
2010-03-13 22:20:18 +00:00
Sir Richard
78f8948c0f [CMBATT]: ACPI-compliant. WMI-managed Control Method Battery Driver. Step 1: Define the interface and ACPI/PnP structures.
The rest of the code is in my WC but needs ACPI Eval IOCTL support in ReactOS before it'll work.

svn path=/trunk/; revision=46188
2010-03-13 21:06:22 +00:00
Sir Richard
08213e98d4 [DDK]: Add ACPI_INTERFACE_STANDARD2. ACPI_INTERFACE_STANDARD is left as an excercise to the reader.
svn path=/trunk/; revision=46187
2010-03-13 20:49:13 +00:00
Amine Khaldi
df603c19d8 [DDK]
- Fix wmilib.h

svn path=/branches/header-work/; revision=46186
2010-03-13 20:47:12 +00:00
Sir Richard
a7ed29ec5a [DDK]: Fix Wmilib.h.
svn path=/trunk/; revision=46185
2010-03-13 20:42:53 +00:00
Sir Richard
eddd84cbce [DDK]: Merge 46183 from header-branch.
svn path=/trunk/; revision=46184
2010-03-13 20:37:31 +00:00
Amine Khaldi
d8a6ad0f81 [DDK]
- Add acpiioct.h and wmilib.h
- Dedicated to sir_richard ;)

svn path=/branches/header-work/; revision=46183
2010-03-13 20:24:46 +00:00
Cameron Gutman
1c571af17a [NTOSKRNL]
- Don't set the RTL_QUERY_REGISTRY_REQUIRED flag for the Service key entry of the query table because it will cause RtlQueryRegistryValues to fail if the service key is absent which we don't want because we handle that case later

svn path=/trunk/; revision=46182
2010-03-13 19:38:49 +00:00
Cameron Gutman
9b5054f453 - Handle ACPI_RESOURCE_TYPE_EXTENDED_IRQ and ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64
svn path=/trunk/; revision=46181
2010-03-13 19:19:24 +00:00
Johannes Anderwald
aaea6f034c [KSPROXY]
- Add support for IPersist interface
- Create clock handle when request for IKsClockPropertySet / IReferenceClock arrives
- Print out requested format
- Implement IPersist::GetClassID, IBaseFilter::QueryVendorInfo for CKsProxy

svn path=/trunk/; revision=46180
2010-03-13 18:45:51 +00:00
Amine Khaldi
34c6db5955 [WDM]
Add missing IO_PRIORITY_HINT enum

svn path=/branches/header-work/; revision=46179
2010-03-13 18:30:43 +00:00
Amine Khaldi
b1745e1a08 [NTIFS]
- Group related definitions
- Remove redundant PoRegisterPowerSettingCallback and PoUnregisterPowerSettingCallback (they exist in wdm.h)

svn path=/branches/header-work/; revision=46178
2010-03-13 18:12:08 +00:00
Sylvain Petreolle
347927735d [ROSAPPS]
Fix green build.

svn path=/trunk/; revision=46177
2010-03-13 18:07:56 +00:00
Johannes Anderwald
472db0e74d [PSDK]
- Fix KSPROPSETID_Stream definition
[KSPROXY]
- Implement IKsClockPropertySet, IReferenceClock, IMediaSeeking, IKsTopology interface for CKsProxy
- Implement more of IBaseFilter::SetSyncSource for CKsProxy
- Add missing AddRef to IBaseFilter::QueryFilterInfo for CKsProxy

svn path=/trunk/; revision=46176
2010-03-13 17:36:30 +00:00
Amine Khaldi
d1c9ef597a [NTIFS]
- Group related definitions
- Add several missing FsRtl* and FSRTL_* definitions
- Add some missing NETWORK_OPEN_*, PREFETCH_OPEN_ECP_CONTEXT, sockaddr_storage, NFS_OPEN_ECP_CONTEXT and  SRV_OPEN_ECP_CONTEXT

svn path=/branches/header-work/; revision=46175
2010-03-13 17:29:43 +00:00
Cameron Gutman
3e3e531b53 - Let the ACPI driver handle fixed feature buttons
svn path=/trunk/; revision=46174
2010-03-13 17:07:00 +00:00
Cameron Gutman
38f7f2fe05 - Don't enumerate the ACPI root device
svn path=/trunk/; revision=46171
2010-03-13 16:31:53 +00:00
Hervé Poussineau
422b433150 [csrss] Don't expect ReactOS to always boot from C:\ReactOS (that's not the case for LiveCD)
svn path=/trunk/; revision=46170
2010-03-13 15:59:12 +00:00
Amine Khaldi
a2c12aa203 [NTIFS]
- Group related definitions
- Add several missing FsRtl* and FSRTL_* definitions

svn path=/branches/header-work/; revision=46169
2010-03-13 15:44:53 +00:00
Amine Khaldi
5afc04be5a [NTIFS]
- Group related definitions
- Add several missing FsRtl*
- Convert FsRtlSetupAdvancedHeader macro to an inline function
- Add ECP_HEADER and ECP_LIST structures

svn path=/branches/header-work/; revision=46168
2010-03-13 15:22:32 +00:00
Johannes Anderwald
268cdeec5f [PSDK]
- Fix build #2

svn path=/trunk/; revision=46167
2010-03-13 14:56:52 +00:00
Johannes Anderwald
4ac83b10d1 [KSUSER]
- Fix KsCreateAllocator, KsCreateClock, KsCreateTopologyNode function type

svn path=/trunk/; revision=46166
2010-03-13 14:15:56 +00:00
Amine Khaldi
b51716d233 [NTIFS]
- Group related definitions
- Add OPLOCK_KEY_ECP_CONTEXT, OPLOCK_KEY_ECP_CONTEXT and several missing FsRtl*
- Add missing FSRTL_* definitions
- Add FSRTL_PER_FILE_CONTEXT and FSRTL_MUP_PROVIDER_INFO_LEVEL_* structures

svn path=/branches/header-work/; revision=46164
2010-03-13 13:54:24 +00:00
Amine Khaldi
d61c8a9d77 [PSDK]
Really fix usbioctl.h

svn path=/branches/header-work/; revision=46163
2010-03-13 13:19:18 +00:00
Amine Khaldi
a921cae33f [PSDK]
Fix usbioctl.h

svn path=/branches/header-work/; revision=46162
2010-03-13 13:15:47 +00:00
Amine Khaldi
cc8ed6fc52 [NTIFS]
- Group related definitions
- Add several missing FsRtl* and OPLOCK_*
- Add LEGAL_ANSI_CHARACTER_ARRAY and NLS_MB_CODE_PAGE_TAG
- FsRtlRemoveBaseMcbEntry : VOID -> BOOLEAN

svn path=/branches/header-work/; revision=46161
2010-03-13 13:02:34 +00:00
Johannes Anderwald
3218673a8e [PSDK]
- A few more types for ks.h needed for ksproxy

svn path=/trunk/; revision=46160
2010-03-13 12:09:24 +00:00
Johannes Anderwald
c8974c6651 [PSDK]
- Add missing function declarations

svn path=/trunk/; revision=46159
2010-03-13 10:36:46 +00:00
Amine Khaldi
c50973ffa4 [PSDK]
Move NTSTATUS codes from DDK to PSDK, removing all the duplicated ones (and adding a couple of missing ones).

Dedicated to arty

svn path=/branches/header-work/; revision=46158
2010-03-13 01:18:58 +00:00
Timo Kreuzer
479c28b333 [HEADERS]
Say hello to the "XDK" (preliminary name). A set of headers from wich certain other headers (wdm, ntifs, ntddk, winnt) shall one day be autogenerated. I added a .bat file that autogenerates wdn.h from wdm.template.h and the headers. Others will follow.

svn path=/branches/header-work/; revision=46157
2010-03-13 00:34:48 +00:00
Timo Kreuzer
5efb575dfb [KMTEST]
Try to fix rostests build

svn path=/trunk/; revision=46156
2010-03-13 00:01:01 +00:00
Timo Kreuzer
cbdf28bb6a [HEADERS]
Reintegrate header-work branch. Thanks to hours of boring work on the ddk headers (Most of it done by Amine Khaldi), we have now a decent set, which is still incomplete but already relatively close to latest WDK. A clean rebuild is recommended.

svn path=/trunk/; revision=46155
2010-03-12 23:16:29 +00:00
Cameron Gutman
347f68539b - Handle ACPI_RESOURCE_TYPE_ADDRESS16, ACPI_RESOURCE_TYPE_ADDRESS32, ACPI_RESOURCE_TYPE_ADDRESS64, ACPI_RESOURCE_TYPE_MEMORY24, and ACPI_RESOURCE_TYPE_MEMORY32 for IRP_MN_QUERY_RESOURCES and IRP_MN_QUERY_RESOURCE_REQUIREMENTS
svn path=/trunk/; revision=46154
2010-03-12 23:00:18 +00:00
Timo Kreuzer
de906c441a Merge trunk HEAD (46152)
svn path=/branches/header-work/; revision=46153
2010-03-12 21:42:11 +00:00
Timo Kreuzer
83d81567a2 Revert 45697:
"* Disable compiling usermode components for now."

svn path=/branches/header-work/; revision=46151
2010-03-12 21:28:06 +00:00
Amine Khaldi
350dfd1b9d Sync with trunk head
svn path=/branches/header-work/; revision=46148
2010-03-12 20:08:06 +00:00
Amine Khaldi
6335684dde Forgot to add this in the previous commit
svn path=/branches/header-work/; revision=46147
2010-03-12 18:59:49 +00:00
Amine Khaldi
d9dd5c1f32 Fix (USERMODE=0) build :
[WMILIB]
- Add WmiSystemControl
[NDK]
- KeGetPcr : Correct KPCR member name

svn path=/branches/header-work/; revision=46146
2010-03-12 18:45:59 +00:00
Amine Khaldi
b5e6da689b [PSDK]
- Move ntddkbd.h to PSDK
- Add several missing KEYBOARD_* definitions

svn path=/branches/header-work/; revision=46145
2010-03-12 18:32:40 +00:00
Amine Khaldi
97378505bd [BATTC]
- Correct BatteryClassSystemControl params
- Include wmlib.h
[WMLIB]
- Add WMIENABLEDISABLECONTROL and SYSCTL_IRP_DISPOSITION

svn path=/branches/header-work/; revision=46144
2010-03-12 18:25:50 +00:00
Timo Kreuzer
38b3788cbc [WDM]
- fix definition of KeTickCount
- Add KeQueryTickCount (note: MS version is very hacky. Someone tell them how to use DECLSPEC_IMPORT)

svn path=/branches/header-work/; revision=46143
2010-03-12 17:48:50 +00:00
Amine Khaldi
fc648d6443 [NTIFS]
- Remove some redundant definitions (that exist in wdm.h)

svn path=/branches/header-work/; revision=46142
2010-03-12 17:17:51 +00:00
Timo Kreuzer
657d7f12da [NTOS] Fix WmiTraceMessageVa export, the first parameter (TRACEHANDLE) is 64 bits wide.
svn path=/branches/header-work/; revision=46141
2010-03-12 17:17:27 +00:00
Timo Kreuzer
2bd64c4f15 Add a missing NTAPI
svn path=/branches/header-work/; revision=46140
2010-03-12 17:01:13 +00:00
Amine Khaldi
401b11a24d [NTIFS]
- Remove redundant IoSizeOfIrp, PoSetDeviceBusy and PPOWER_SETTING_CALLBACK definitions (They exist in wdm.h)

svn path=/branches/header-work/; revision=46139
2010-03-12 16:55:09 +00:00
Amine Khaldi
d418c3b59e [WDM]
- Remove NTKERNELAPI from IoSetStartIoAttributes
[NTIFS]
- Group some related definitions

svn path=/branches/header-work/; revision=46138
2010-03-12 16:43:17 +00:00
Timo Kreuzer
16e291bd53 [PSDK]
- Add dpfilter.h
- batclass.h: Fix BatteryClassSystemControl
- ntdef.h: add ARGUMENT_PRESENT and PEXCEPTION_ROUTINE
[NDK]
- Add some ob functions
[DDK]
- add wmlib.h
- remove winddk.h
[WDM]
- include dpfilter.h
- Add ASSERT_GATE, ASSERT_TIMER, ASSERT_MUTANT, ASSERT_SEMAPHORE, ASSERT_EVENT, TIMER_TABLE_SIZE, TIMER_TABLE_SHIFT, ADDRESS_AND_SIZE_TO_SPAN_PAGES, PoRequestShutdownEvent
- Group architecture specific definitions (currently only x86)
- uncomment some _DECL_HAL_KE_IMPORT


svn path=/branches/header-work/; revision=46137
2010-03-12 16:37:33 +00:00
Timo Kreuzer
89a27c5264 [NTOS]
- KPCR::Tib -> NtTib, KPCR::Self -> SelfPcr
- Rename ExInitializePushLock inline function to _ExInitializePushLock and use a define, as in newer versions of windows the function exists as export and is in the WDK

svn path=/branches/header-work/; revision=46136
2010-03-12 16:28:04 +00:00
Timo Kreuzer
7553ab8b16 {HAL] Add PCI_ADDRESS_MEMORY_SPACE definition. It's not part of DDK/WDK
svn path=/branches/header-work/; revision=46135
2010-03-12 16:25:36 +00:00
James Tabor
d647d02aa4 - Update more menu types and flags.
svn path=/trunk/; revision=46134
2010-03-12 16:11:28 +00:00
Sylvain Petreolle
fcf8a0b515 [KSPROXY]
Comment out a reference to non existent "resource." file
in the visual studio generated resource file.
This issue was likely ignored by the buildbot.


svn path=/trunk/; revision=46133
2010-03-12 15:33:10 +00:00
Amine Khaldi
d663a6400c [NTIFS]
- Group related definitions
- Add FSRTL_AUXILIARY_BUFFER, FSRTL_AUXILIARY_FLAG_DEALLOCATE and several FsRtl*
- Update FILE_LOCK
- Missed FSRTL_COMMON_FCB_HEADER in my previous commit

svn path=/branches/header-work/; revision=46132
2010-03-12 14:39:26 +00:00
Amine Khaldi
cff140ca5c [NTIFS]
- Group related definitions
- Add HalGetDmaAlignmentRequirement, MM_PREFETCH_FLAGS, MM_PREFETCH_FLAGS_MASK, EOF_WAIT_BLOCK and several FSRTL_*, Mm*, Ob*
- Update MmIsRecursiveIoFault, FSRTL_COMMON_FCB_HEADER and FSRTL_ADVANCED_FCB_HEADER

svn path=/branches/header-work/; revision=46131
2010-03-12 13:33:25 +00:00
Amine Khaldi
b322069b82 [NTIFS]
- Add several missing Po* definitions

svn path=/branches/header-work/; revision=46130
2010-03-12 11:54:56 +00:00
Amine Khaldi
748cc2a52e [NTIFS]
- Group related definitions
- Add several Io* definitions
- Add IO_PRIORITY_INFO structure

svn path=/branches/header-work/; revision=46129
2010-03-12 11:40:01 +00:00
Amine Khaldi
c08fe21411 [NTIFS]
- Group related definitions
- Add several Fs*, Io* and DO_* definitions

svn path=/branches/header-work/; revision=46128
2010-03-12 11:18:35 +00:00
Cameron Gutman
bcf41654ca - Fix acpi_bus_receive_event and acpi_bus_generate_event which will be used for button events later
- Uncomment and fix the locking code that protects the event queue and driver list

svn path=/trunk/; revision=46127
2010-03-12 04:42:23 +00:00
Amine Khaldi
b0425c73c7 [NTIFS]
- Group related definitions
- Update PsDereferencePrimaryToken and PsDereferenceImpersonationToken
- PsChargePoolQuota, PsReturnPoolQuota and PsChargeProcessPoolQuota : SIZE_T Amount -> ULONG_PTR Amount
- Add several missing IO_* and FS_FILTER_* definitions
- DRIVER_FS_NOTIFICATION : DriverActive -> FsActive

svn path=/branches/header-work/; revision=46126
2010-03-12 00:08:20 +00:00
Timo Kreuzer
8f6f02163e [NTDDK]
- move pHalGetAcpiTable, PCI_ERROR_HANDLER_CALLBACK, pHalSetPciErrorHandlerCallback, pHalIoAssignDriveLetters
- Add HAL_DISPATCH::pHalIoAssignDriveLetters
- add pre vista versions of pKdMapPhysicalMemory64 and pKdUnmapVirtualAddress
- Fix definition of HalDispatchTable

svn path=/branches/header-work/; revision=46125
2010-03-11 23:54:57 +00:00
Amine Khaldi
00c46ec5fd [NTIFS]
- Group related definitions
- SeSetSecurityDescriptorInfo : SecurityDescriptor -> ModificationDescriptor
- SeAuditingFileOrGlobalEvents : SubjectContext -> SubjectSecurityContext
- Add SeAuditHardLinkCreation, SeAuditHardLinkCreationWithTransaction, SeAuditTransactionStateChange, SeAuditingFileEventsWithContext, SeAuditingAnyFileEventsWithContext, SeAuditingHardLinkEvents, SeAuditingHardLinkEventsWithContext, SeExamineGlobalSacl and SeMaximumAuditMaskFromGlobalSacl

svn path=/branches/header-work/; revision=46124
2010-03-11 23:36:06 +00:00
Kamil Hornicek
c23fd826c4 [WIN32K]
Prevent a possible memory leak.
Use SURFACE_FreeSurfaceByHandle so we don't hit the "Object must not have a handle!" assert in GDIOBJ_FreeObj.

svn path=/trunk/; revision=46123
2010-03-11 23:11:00 +00:00
Amine Khaldi
6ba208564c [NTIFS]
- Group related definitions
- Add SeOpenObjectAuditAlarmWithTransaction, SeOpenObjectForDeleteAuditAlarmWithTransaction, SeExamineSacl, SeDeleteObjectAuditAlarmWithTransaction, SeTokenIsWriteRestricted, SeFilterToken, SeQueryTokenIntegrity and SeSetSessionIdToken
- SeQueryAuthenticationIdToken : LogonId -> AuthenticationId
- SeCreateClientSecurity : Fix parameters' names
- SeCreateClientSecurityFromSubjectContext : QualityOfService -> ClientSecurityQos

svn path=/branches/header-work/; revision=46122
2010-03-11 23:07:52 +00:00
Cameron Gutman
1f5e020800 - Use the possible resources not the current resources for IRP_MN_QUERY_RESOURCE_REQUIREMENTS
- Initialize MaximumVector for IRQs, MaximumChannel for DMA, and Alignment for Port

svn path=/trunk/; revision=46121
2010-03-11 22:36:22 +00:00
Amine Khaldi
5c43a755d3 [NTIFS]
- Group related definitions
- Add ExInitializePushLock, SeReportSecurityEventWithSubCategory, SeAccessCheckFromState, SeStopImpersonatingClient and TOKEN_* definitions
- Update SE_EXPORTS

svn path=/branches/header-work/; revision=46120
2010-03-11 22:33:08 +00:00
Cameron Gutman
75c500f4b0 - Fix the resource parsing loops to correct a memory corruption issue
- Return the correct failure status if ExAllocatePool fails

svn path=/trunk/; revision=46119
2010-03-11 22:15:21 +00:00
Johannes Anderwald
661dc42775 [KSPROXY]
- Fix trunk

svn path=/trunk/; revision=46118
2010-03-11 21:52:15 +00:00
Sir Richard
6cc3c9cd47 [WIN32K]: Enable the alignment code and reduce the number of hacks, leaving only one for 1bpp top-down output (Freetype?) which doesn't seem to like when the lDelta is aligned to the correct bit-boundary. This should fix the crashes and graphic cltches recently introduced.
svn path=/trunk/; revision=46117
2010-03-11 21:41:19 +00:00
Johannes Anderwald
718fb52625 [KSPROXY]
- Recreate resource file with visual studio
- Fix compilation with msvc
- Copy extra format buffer in IEnumMediaTypes::Next
- Create the pin handle in IPin::ReceiveConnection
- Implement IPin::Disconnect for the input pin
- Enumerate media formats and pass it to constructor of CEnumMediaTypes
- Check if the passed format is null in CInputPin::CheckFormat
- Copy extra format buffer after KSDATAFORMAT in the pin connection request
- Implement KsGetMediaType function
- Implement ISpecifyPropertyPages, IKsPropertySet, IKsControl, IStreamBuilder, IKsPinFactory for the output pin
- Implement IPin::ReceiveConnection, IPin::EnumMediaTypes for output pin
- Stub interfaces for IReferenceClock, IMediaSeeking, IKsTopology, IKsAggregateControl, IKsClockPropertySet, ISpecifyPropertyPages, IPersistStream for proxy filter
- Implement IAMDeviceRemoval, IKsControl, IAMFilterMiscFlags, IKsPropertySet interface for proxy filter

svn path=/trunk/; revision=46116
2010-03-11 21:38:13 +00:00
Johannes Anderwald
c506f7fd79 [PSDK]
- Add a few types required for ksproxy

svn path=/trunk/; revision=46115
2010-03-11 21:15:46 +00:00
Dmitry Gorbachev
c785457a1b Comment out RegisterServiceProcess' stub.
svn path=/trunk/; revision=46114
2010-03-11 20:59:47 +00:00
Dmitry Gorbachev
05c5b82a0a Output PCH even when full dependencies are enabled.
svn path=/trunk/; revision=46113
2010-03-11 20:59:24 +00:00
Kamil Hornicek
3666415400 [SHELL32]
- according to msdn ppidl should be set to NULL if an error occurs
- fixes shlfolder winetest crash

svn path=/trunk/; revision=46112
2010-03-11 19:42:59 +00:00
Sir Richard
a17ba7f9af [WIN32K]: Revert accidental changes to IntCreateBitmap.
svn path=/trunk/; revision=46111
2010-03-11 19:26:00 +00:00
Kamil Hornicek
7d54007084 - missed this one.. fix build?
svn path=/trunk/; revision=46110
2010-03-11 18:48:46 +00:00
Kamil Hornicek
c97215f5d4 - fix build
svn path=/trunk/; revision=46109
2010-03-11 18:40:26 +00:00
evb
f34091b0e8 - Remove bits saying dithering supported, since code patented and removed (also, ReactOS win32k not support dithering calls!).
svn path=/trunk/; revision=46108
2010-03-11 18:19:58 +00:00
Sir Richard
24d4f279bf [FRAMEBUF]: Use precompiled header.
svn path=/trunk/; revision=46107
2010-03-11 18:19:02 +00:00
evb
ceb6085aa0 - Added support IOCTRL_QUERY_PUBLIC_ACCESS_RANGES, IOCTRL_SET_PALETTE_REGISTERS, IOCTRL_QUERY_CURRENT_MODE, used by test Standard VGA-only display driver.
- Code from NT4 DDK Cirrus miniport with some mods by me.


svn path=/trunk/; revision=46106
2010-03-11 17:56:27 +00:00
Amine Khaldi
e99a9f8435 [NTIFS]
- Group related definitions
- Add InterlockedPushListSList, ExAdjustLookasideDepth and ExDisableResourceBoost
- Add some asserts

svn path=/branches/header-work/; revision=46105
2010-03-11 17:51:43 +00:00
Sir Richard
db54713b73 [WIN32K]: EngCreateBitmap/IntCreateBitmap don't make much sense (code written back in 2004...). RLEs don't have scanlines by definitions, bit depth alignments and sizing is not done, newer display formats (compressed) are not supported correctly, zero-width surfaces fail because the size is ignored during scanline calculation, etc. These bugs caused eVb's test VGA display driver to fail as it needs to create a zero-depth shadow surface, which would end up with pv0Bits == NULL in the current implementation (and crash during ROPs/BitBLTs). Attempted to rewrite as much of it to 1) make Windows drivers work with it 2) continue the current hacks needed for ReactOS drawing. Note that the broken IntCreateBitmap is still used by non EngXXX interfaces to reduce the change of breakage, but keep in mind the function is entirely wrong.
svn path=/trunk/; revision=46104
2010-03-11 17:49:44 +00:00
Sir Richard
4e765c2350 [WIN32K]: Stop memory corruption when InstalledDisplayDrivers has more than one driver in the list. Note that driver loading is inherently broken right now, as the list of drivers is not parsed properly (this breaks eVb's VGA/VBE driver).
svn path=/trunk/; revision=46103
2010-03-11 17:46:15 +00:00
Aleksey Bragin
260b4a396b [COMDLG32]
- Sync to Wine-1.1.40.

svn path=/trunk/; revision=46102
2010-03-11 17:37:30 +00:00
Aleksey Bragin
ec3193bd42 [PSDK]
- Add GdiConvertToDevmodeW declaration (needed for comdlg32). Arwinss PSDK changes should really be merged in.

svn path=/trunk/; revision=46101
2010-03-11 17:32:43 +00:00
Amine Khaldi
64b41a347e [NTDDK]
- Continue moving ntddk related definitions from winddk.h, fixing the conflicts caused by r46097
- pKdUnmapVirtualAddress and pKdMapPhysicalMemory64 : Add missing FlushCurrentTLB
- Update HAL_DISPATCH and HalDispatchTable definitions
- DDKAPI -> NTAPI
- IMAGE_INFO : Add missing ExtendedInfoPresent
- Update (X86) KPCR definition

svn path=/branches/header-work/; revision=46100
2010-03-11 17:27:44 +00:00
Sylvain Petreolle
f4e17f00cb [WLANSVC]
Correctly start and report status to the service manager.


svn path=/trunk/; revision=46099
2010-03-11 16:36:11 +00:00
Kamil Hornicek
8e7d72058b [SHELL32]
- partial Wine sync, fixes crashing shlfileop winetest:
Use the current directory when copying to an empty destination. 
Fix a memory leak in SHFileOperationW.
Vincent Povirk <vincent at codeweavers dot com>

svn path=/trunk/; revision=46098
2010-03-11 14:57:05 +00:00
Timo Kreuzer
1524d1f1f6 [FREELDR] Include ntddk.h instead of winddk.h
[RAMDISK] Add missing DO_XIP definition (not in WDK/DDK)
[FASTFAT] Remove duplicate VOLUME_IS_DIRTY definition 
[HAL] Add case stubs for missing HAL_QUERY_INFORMATION_CLASS members
[NDK] Fix DbgPrompt prototype
[NTDDK] 
- Move from winddk.h: _KUSER_SHARED_DATA (updated), pHalIoAssignDriveLetters, PHAL_RESET_DISPLAY_PARAMETERS, HAL_DISPATCH, HalDispatchTable, PCREATE_PROCESS_NOTIFY_ROUTINE, PCREATE_THREAD_NOTIFY_ROUTINE, IMAGE_INFO, PLOAD_IMAGE_NOTIFY_ROUTINE, BUS_DATA_TYPE (updated), PROCESSINFOCLASS (updated), THREADINFOCLASS (updated), DISK_SIGNATURE, PTIMER_APC_ROUTINE, Exfi386InterlockedIncrementLong, Exfi386InterlockedDecrementLong, Exfi386InterlockedExchangeUlong
- Add pHalGetAcpiTable, PCI_ERROR_HANDLER_CALLBACK, pHalSetPciErrorHandlerCallback
[WDM] Add _DECL_HAL_KE_IMPORT, Reorder sections (types before functions)

svn path=/branches/header-work/; revision=46097
2010-03-11 14:49:41 +00:00
Kamil Hornicek
e277aa50f4 fix build?
svn path=/trunk/; revision=46096
2010-03-11 11:47:13 +00:00
Kamil Hornicek
fdf2da655e [KERNEL32] GetConsoleProcessList is implemented, this prevents the console winetest from crashing
svn path=/trunk/; revision=46095
2010-03-11 11:34:29 +00:00
Timo Kreuzer
7494f42e77 [KTMTYPES]
Fix the UOW hack, use special case for C++
Thanks to Dmitry Gorbachev for the solution.

svn path=/branches/header-work/; revision=46094
2010-03-11 11:32:54 +00:00
Aleksey Bragin
3b52f6a934 [OLEAUT32]
- Sync to Wine-1.1.40.

svn path=/trunk/; revision=46093
2010-03-11 10:28:34 +00:00
James Tabor
0b49f57301 - Fix test build!
svn path=/trunk/; revision=46092
2010-03-11 03:29:01 +00:00
James Tabor
e04c0cda3e - Fix build!
svn path=/trunk/; revision=46091
2010-03-11 03:28:32 +00:00
James Tabor
a6789f1431 - Add new menu structures.
svn path=/trunk/; revision=46090
2010-03-11 02:43:51 +00:00
Timo Kreuzer
1f40221394 [KMTYPES]
Add a compilation hack for gcc

svn path=/branches/header-work/; revision=46089
2010-03-11 00:47:36 +00:00
Amine Khaldi
c057c45008 [NTDDK]
- Move several ntddk.h related definition from winddk.h
- Add IRP_MN_FLUSH_AND_PURGE and several DO_* definition
- Update HAL_QUERY_INFORMATION_CLASS and HAL_SET_INFORMATION_CLASS members
- Fix DEBUG_DEVICE_DESCRIPTOR structure definition

svn path=/branches/header-work/; revision=46088
2010-03-11 00:35:13 +00:00
Amine Khaldi
adfb80dce0 [NTDDK]
- Move several ntddk.h related definition from winddk.h
- Group related definitions

svn path=/branches/header-work/; revision=46086
2010-03-10 23:49:42 +00:00
Amine Khaldi
6d8d8bb4ab [NTDDK]
- Move several ntddk.h related definition from winddk.h
- Group related definitions
- MmAllocateNonCachedMemory : ULONG NumberOfBytes -> SIZE_T NumberOfBytes
- DbgPrompt : Add NTSYSAPI and MaximumResponseLength -> Length
- RtlLargeIntegerDivide : static __inline -> __inline

svn path=/branches/header-work/; revision=46085
2010-03-10 23:45:06 +00:00
Amine Khaldi
4da3dca56f [NTDDK]
- Move several ntddk.h related definition from winddk.h
- Group related definitions
- ZwSetTimer : BOOLEAN WakeTimer -> BOOLEAN ResumeTimer
- IoWritePartitionTableEx : *PartitionBuffer -> *DriveLayout
- HalPutDmaAdapter : AdapterObject -> DmaAdapter
- MmAllocateNonCachedMemory : ULONG NumberOfBytes -> SIZE_T NumberOfBytes

svn path=/branches/header-work/; revision=46083
2010-03-10 23:09:27 +00:00
Cameron Gutman
1733eb0a2f - We forget that AE_BUFFER_OVERFLOW is normal and expected since our buffer length is 0 so don't fail if that status is returned
- For any device that actually had resources we would return STATUS_SUCCESS without building a resource list and if the device didn't have resources we would end up freeing a NULL pointer, storing stack trash in Irp->IoStatus.Information, and then returning STATUS_SUCCESS
 - Fixes reporting device resources (and possibly the VBox additions crash with ACPI enabled)

svn path=/trunk/; revision=46080
2010-03-10 22:25:40 +00:00
Timo Kreuzer
5158e51619 [NTIFS] Add back some members of OBJECT_INFORMATION_CLASS, with a comment that they are missing in WDK
svn path=/branches/header-work/; revision=46079
2010-03-10 22:23:12 +00:00
Timo Kreuzer
d76f9f9a36 Add extern "C"
svn path=/branches/header-work/; revision=46078
2010-03-10 22:05:56 +00:00
Christoph von Wittich
418f2cc0e1 [OLE32_WINETEST]
sync OLE32_WINETEST with wine 1.1.40

svn path=/trunk/; revision=46077
2010-03-10 21:52:40 +00:00
Christoph von Wittich
f0a96d12a1 [PSDK]
add extern GUID_NULL

svn path=/trunk/; revision=46076
2010-03-10 21:52:00 +00:00
Sylvain Petreolle
cd65ed5bdb [ACPI]
Fix implicit declaration warnings

svn path=/trunk/; revision=46075
2010-03-10 21:49:42 +00:00
Timo Kreuzer
25bb3c834b Add kmtypes.h
svn path=/branches/header-work/; revision=46074
2010-03-10 21:44:50 +00:00
Cameron Gutman
ae6e63592d - Quit building a useless IO_RESOURCE_REQUIREMENTS_LIST (and leaking memory) in response to IRP_MN_QUERY_RESOURCES
- Actually store the IO_RESOURCE_REQUIREMENTS_LIST in Irp->IoStatus.Information in response to IRP_MN_QUERY_RESOURCE_REQUIREMENTS so the PnP manager can use it (and fixes another memory leak)

svn path=/trunk/; revision=46073
2010-03-10 21:11:23 +00:00
Daniel Reimer
da63b1ca50 Sync sccbase, slbcsp, usp10, wldap32, wuapi and xinput1_3 to Wine 1.1.40
Theres more, like: comctl32, comdlg32, oleaut32, riched20, sti, version, winemp3.acm, wininet and winhttp which is above my skills or looks strange, like its not really synched (winemp3.acm!!) Feel free to play with them.

svn path=/trunk/; revision=46072
2010-03-10 20:44:19 +00:00
Timo Kreuzer
5116769c9b [NTDEF] Add PROCESSOR_NUMBER
[NTDDK] Define only CONTEXT, not PCONTEXT, it is already defined by wdm.h, add missing #endif, move OSVERSIONINFO*, CONFIGURATION_TYPE, CONFIGURATION_INFORMATION,PIO_QUERY_DEVICE_ROUTINE, DRIVER_REINITIALIZE and PHYSICAL_MEMORY_RANGE from winddk, add RTL_SPLAY_LINKS

svn path=/branches/header-work/; revision=46071
2010-03-10 20:41:13 +00:00
Sir Richard
c7dbb1670a [NTOS]: List still-running processes at kernel shutdown. Useful for debugging shutdown code later.
svn path=/trunk/; revision=46069
2010-03-10 18:29:10 +00:00
Sir Richard
c240396ad5 [SCM]: Fix SCM shutdown. Now all services are stopped (in my working copy with the CSRSS shutdown code).
svn path=/trunk/; revision=46068
2010-03-10 18:28:45 +00:00
Sir Richard
30cee65672 [DDK]: Add MEMORY_BARRIER missing from ioaccess.h.
svn path=/trunk/; revision=46067
2010-03-10 18:28:03 +00:00
Amine Khaldi
ba51f319e5 [NTDDK]
- Move several ntddk.h related definition from winddk.h
- Group related definitions
- Add CONTEXT_XSTATE definition
- RtlUpperString and RtlCopyString : constify SourceString
- RtlCompareString and RtlEqualString : constify the first two params
- Update guards around IoAllocateAdapterChannel
- Remove duplicate IoRegisterBootDriverReinitialization

svn path=/branches/header-work/; revision=46064
2010-03-10 17:42:51 +00:00
Daniel Reimer
1511347fdc Sync mscms, msg711.acm, msgm32.acm, msimtf. msnet32, msrle32, mssip32, msvcrt20, msvfw32, msvidc32 and nddeapi to Wine 1.1.40
Even more will come.

svn path=/trunk/; revision=46063
2010-03-10 17:03:25 +00:00
Daniel Reimer
94e01c6025 Sync avifil32, hnetcfg, initpki, localspl, localui, mciavi32, mciqtz32, mciseq and mlang to Wine 1.1.40
More will come.

svn path=/trunk/; revision=46062
2010-03-10 16:21:22 +00:00
Sylvain Petreolle
5e3123f80a [WLANSVC]
- Add required libary iphlpapi

svn path=/trunk/; revision=46061
2010-03-10 16:18:32 +00:00
Amine Khaldi
48343bce8c [NTIFS]
Remove RTL_SPLAY_LINKS definition

svn path=/branches/header-work/; revision=46060
2010-03-10 16:10:32 +00:00
Daniel Reimer
9334360266 Updated README.WINE.
Additionally I added a * to all Autosyncs which lie a bit back already. Will look through them and check which are still recent.

svn path=/trunk/; revision=46058
2010-03-10 15:00:25 +00:00
Aleksey Bragin
f4fa6270ae [OLE32]
- Sync to Wine-1.1.40. Along with improvements, it provides many memory corruption fixes.

svn path=/trunk/; revision=46056
2010-03-10 14:28:56 +00:00
James Tabor
5d434b2f15 - [User32] Send WM_CANCELMODE in EnableWindow.
svn path=/trunk/; revision=46054
2010-03-10 10:19:49 +00:00
Sir Richard
f94bebf2d0 [KERNEL32]: Remove debug output.
svn path=/trunk/; revision=46053
2010-03-10 06:50:15 +00:00
Sir Richard
34fa6fb97b [CSRSRV]: Move the new process/thread management functions into new, dedicated files. Export some of the functions, so that win32csr can use them by linking to csrsrv. Last change needed for barebones user-mode shutdown support.
svn path=/trunk/; revision=46052
2010-03-10 06:49:53 +00:00
Sir Richard
1cd9cb22ef [CSRSS]: Split off CSRSS into a more Windows-friendly model. CSRSS.EXE is simply a stub which loads CSRSRV.DLL, where all the actual code is present.
[CSRSRV]: Mostly moved all the current CSRSS code into CSRSRV, with some very minor changes to get it workking.
[CSRSRV]: Add some more code from Alex's CSRSRV, such as thread dereferencing/deallocation, hacked to work.
[CSRSRV]: Make CsrTerminateProcess destroy each CSR thread in that process, otherwise we were always leaking a handle, so processes never died. Because of this, primary tokens would remain "in use", and when umpnpmgr attempted to do a "Create Process as User" for the second+ time, the call would fail since the token from the first process was still around. This fixed that regression from the mailing list.

svn path=/trunk/; revision=46051
2010-03-10 04:59:39 +00:00
Timo Kreuzer
e0c972bf4e [FREELDR] Define _BLDR_ for WDK header compatibility
[HAL] Define _NTHALDLL_ for WDK header compatibility, get rif of DECLSPEC_IMPORT header hack
[NDK/RTL] Fix some Rtl prototypes (PCHAR -> PCCH)
[NDK] Fix ZwOpenEvent prototype
[NTIFS] Fix definition of NTKERNELAPI, move some types, fix PRTL_ALLOCATE_STRING_ROUTINE, PRTL_REALLOCATE_STRING_ROUTINE, PRTL_FREE_STRING_ROUTINE, define CTL_CODE, DEVICE_TYPE_FROM_CTL_CODE, FILE_ANY_ACCESS, FILE_SPECIAL_ACCESS, FILE_READ_ACCESS, FILE_WRITE_ACCESS identical to wdm.h, remove duplicate RtlGenerate8dot3Name, remove ZwOpenEvent
[NTPOAPI] Guard some types with #ifndef _PO_DDK_
[WDM] Create reactos compatible definition of NTKERNELAPI, add KDPC_WATCHDOG_INFORMATION, BATTERY_REPORTING_SCALE, fix ALIGN_UP_POINTER_BY, guard some types with #ifndef _PO_DDK_, update POWER_INFORMATION_LEVEL, make some FILE_DEVICE_ definitions identical to ntifs.h, fix HalAllocateCommonBuffer

svn path=/branches/header-work/; revision=46050
2010-03-10 04:16:52 +00:00
Sir Richard
fc4574d166 [NTOS]: No good deed goes unpunished. Continuing the novel/saga from a couple of days ago, it seems that now that impersonation works, various code paths are being tickled into existence. For example, it would seem parts of the system now attempt setting primary tokens. This would cause an assertion, since PspAssignPrimaryToken incorrectly dereferenced the token (leading to a double-dereference) due to an off-by-! mistake.
svn path=/trunk/; revision=46049
2010-03-10 04:12:25 +00:00
Sir Richard
90fa1d0343 [CSRSS]: Differentiate between first-try and second-try shutdown. In the first try, the console server should defer to the user/win32k server to attempt shutdown for a non-console app. However, if we end up with a second try because this did not happen, then the console server takes matters in its own hands and calls the CTRL-C handler (with some exceptions, such as system/service apps, or apps not belonging to the LUID).
svn path=/trunk/; revision=46048
2010-03-10 03:35:18 +00:00
Sir Richard
cbe3e09f61 [KERNEL32]: As indicated by the comment, kernel32 should always connect to the console server, even for non-console apps (the latter will just basically ignore the request). This is needed to (at minimum) setup the Ctrl-C handler, as otherwise, only "true console" apps will have a handler, even though internally, all apps have such a handler. This is what CSRSS needs to call internally for shutting down non-GUI apps, for example. (The default CTRL-C handler will just call ExitProcess).
svn path=/trunk/; revision=46047
2010-03-10 03:32:17 +00:00
Timo Kreuzer
e6baa6f072 merge r46045
svn path=/trunk/; revision=46046
2010-03-10 00:56:07 +00:00
Timo Kreuzer
ce0d1d6fe7 [ASM]
Don't check for _MSC_VER to decide if the assembly source is going to be compiled with ML or AS, instead check for _USE_ML
Fixes compiling .S files with AS, when using MSVC

svn path=/branches/header-work/; revision=46045
2010-03-10 00:31:06 +00:00
Hervé Poussineau
4c956b83a7 Link SCSI miniport drivers only to scsiport
svn path=/trunk/; revision=46044
2010-03-09 22:36:52 +00:00
James Tabor
2d2f8b9404 - [User32] sync spy to wine 1.1.40
svn path=/trunk/; revision=46043
2010-03-09 21:14:52 +00:00
Sir Richard
4f05a88e82 [KERNEL32/CSRSS]: Register new Win32 threads with CSRSS. Add a bunch of lookup, creation, allocation, hashing and CSR thread management routines from the unused CSRSRV in trunk.
[CSRSS]: Bang in the new thread support in a bunch of places, including creating static server threads. It's very hacked and handle duplication doesn't work 100% reliably, but it gets the job done.
[CSRSS]: Add CsrGetProcessLuid, CsrImpersonateClient, CsrRevertToSelf, CsrShutdownProcesses, CsrFindProcessForShutdown required for user-mode shutdown. Right now we are able to reliably enumerate user apps (in the user LUID) and then service/system apps (in the LOCAL SYSTEM LUID).

svn path=/trunk/; revision=46042
2010-03-09 20:23:22 +00:00
Sir Richard
e2d31e88e4 [KERNEL32]: Bug fix CTRL-C handler registration/deregistration/notification, needed for correct console shutdown behavior.
svn path=/trunk/; revision=46041
2010-03-09 20:13:19 +00:00
Sir Richard
9c91a4dc46 [CSRSS]: Fix yet another bug in the unused csrss code.
svn path=/trunk/; revision=46040
2010-03-09 18:22:25 +00:00
Amine Khaldi
c7dddd299d [NTIFS]
- Group related definitions
- Add missing *_INCREMENT, SYSTEM_PAGE_PRIORITY_BITS, SYSTEM_PAGE_PRIORITY_LEVELS and INVALID_PROCESSOR_INDEX definitions
- KAPC_STATE : ApcListHead[2] -> ApcListHead[MaximumMode]
- KQUEUE : make CurrentCount volatile
- Add several missing Ke* functions declarations

svn path=/branches/header-work/; revision=46039
2010-03-09 18:03:40 +00:00
Sylvain Petreolle
f316f00072 Convert battery.inf to UTF-16
Add French translation.
Add battery.inf and fdc.inf to syssetup process.

Floppy disk controllers and batteries now appear correctly in device manager.
Dedicated to aicom ;)

svn path=/trunk/; revision=46038
2010-03-09 17:21:29 +00:00
Amine Khaldi
f731de8f45 [NTIFS]
- Group related definitions
- Add REPARSE_*, FILE_PIPE_CLIENT_PROCESS_BUFFER_EX, VIRTUAL_STORAGE_TYPE, STORAGE_QUERY_DEPENDENT_VOLUME_* and PUBLIC_OBJECT_* structures
- Add LINK_TRACKING_INFORMATION_TYPE, LINK_TRACKING_INFORMATION and REMOTE_LINK_TRACKING_INFORMATION enums
- Update OBJECT_INFORMATION_CLASS and FILE_PIPE_CLIENT_PROCESS_BUFFER definitions
- Add REPARSE_GUID_DATA_BUFFER_HEADER_SIZE, IsReparseTag*, FSCTL_LMR_* and FSCTL_PIPE_* macros
- Add missing MAXIMUM_REPARSE_DATA_BUFFER_SIZE, IO_REPARSE_TAG_*, FILE_PIPE_COMPUTER_NAME_LENGTH and QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_* definitions

svn path=/branches/header-work/; revision=46037
2010-03-09 17:12:58 +00:00
Amine Khaldi
bbd3c8b4e0 [NTIFS]
- More work on FS related structures and definitions

svn path=/branches/header-work/; revision=46036
2010-03-09 16:31:24 +00:00
Amine Khaldi
11dd9b69ab [NTIFS]
- Add several missing FS related enums, structures and definitions

svn path=/branches/header-work/; revision=46035
2010-03-09 16:02:52 +00:00
Amine Khaldi
62a30e7a24 [NTIFS]
- Group related definitions
- Add CSV_NAMESPACE_INFO, FSCTL_QUERY_FAT_BPB_BUFFER and several missing FS related structures and definitions
- Add a bunch of FSCTL_* macros

svn path=/branches/header-work/; revision=46034
2010-03-09 15:06:29 +00:00
Amine Khaldi
eef0d5c8c9 [NTIFS]
- Group related definitions
- Add several missing Nt* function declarations
- Add REMOTE_PROTOCOL_FLAG_LOOPBACK, REMOTE_PROTOCOL_FLAG_OFFLINEseveral and several FILE_* definitions
- Add missing FILE_* structures

svn path=/branches/header-work/; revision=46033
2010-03-09 13:53:15 +00:00
Amine Khaldi
626fe6be42 - Add a couple of Lsa* function declarations
- Add missing MSV1_0* related definitions, enums, structs and macros

svn path=/branches/header-work/; revision=46030
2010-03-09 13:11:21 +00:00
Sir Richard
6b007be4cd [NTOS]: While attempting to ressucitate the user-mode shutdown code in CSRSS (disabled since 2006), it seemed clear that one of the main steps is to obtain the caller's LUID in order to kill the right processes. This LUID is obtained from the current thread's token, and we know it's the callers since we're supposed to impersonate the caller. Unfortunately, impersonation failed, making the whole process fail.
Impersonation failed because NtImpersonateThread was actually inverting the THREAD_IMPERSONATE rights, asking the client thread for the server's permissions, and vice versa. Fixing this resulted in yet another failure.
        Analysis of this failure showed that even opening the server (ie: current) thread for THREAD_DIRECT_IMPERSONATION failed, which is unusual since the current thread should have access to all its rights. This is determined in PspCreateThread when the ETHREAD->GrantedAccess field is set.
        Continuing onto this path, tracing revealed that GrantedAccess was merely 0x1607F and not 0x1F3FF as expected, meaning that not all rights were given, including the impersonate right (0x200), explaining the failure, but not the deeper reason behind it.
        Attempting to identify which code path set this GrantedAccess, the SepAccessCheck routine came to light. A bug there caused MAXIMUM_ALLOWED accesses to fail in certain scenarios, such as when the object had no security descriptor, because MAXIMUM_ALLOWED would be granted as an absolute value, when instead of it is a flag that should grant GENERIC_ALL. Fixing that bug, the failure continued.
        Further analysis identified that the Administrators SID was being found with GENERIC_READ + WRITE + EXECUTE access, and no SID was found for GENERIC_ALL access. This happened when searching the system token's default DACL, which is assigned to the kernel (but for kernel-mode callers, this check was skipped), smss, winlogon, etc.
        The code for creating this system token was heavily hacked, so the function to create the system token, as well as NtCreateToken were refactored to use a common piece of token-creating code. Furthermode, the system token was correctly created with Local System as the user, and Administrators as one of the groups. Finally, SeDefaultDacl was used (already setup properly) instead of a badly configured Default DACL. The new shared code also correctly sets the SE_GROUP_ENABLED flag on all SE_GROUP_MANDATORY groups, and scans tokens to set the TOKEN_HAS_ADMIN_GROUP and TOKEN_HAS_TRAVERSE_PRIVILEGE flags which were not previously set.
        With the correct system token and default DACL, the Local System SID was now found, but the failure continued. This was revealed to be due to an even deeper rooted problem, as the SepIsSidInToken routine checked for SE_GROUP_ENABLED before listing a SID as "present". Although this is correct for actual groups, the User SID will never have the SE_GROUP_ENABLED flag as it is not a group. This caused any granted access ACE belonging to a user (instead of a group) to be ignored, causing either access check failures, or limited rights returned (in the MAXIMUM_ALLOWED case).
        Upon fixing this bug, the NtImpersonateThread call finally returned success, since the rights were now correct. Promptly upon calling NtOpenThreadToken to query the LUID however, the system ASSERTED with FALSE.
        The code at fault was a line in NtOpenThreadTokenEx which forcefully ASSERTed if the impersonation code path was taken, presumably because this was never tested, and ReactOS would actually always fail impersonation attempts due to the bugs fixed above. This routine was thus quickly reworked to fix some mistakes (such as forgetting to actually impersonate the client, incorrect referencing/dereferencing of thread/tokens, and assumptions about DACL creation success).
        Having fixed the NtOpenThreadTokenEx routine, the LUID query now went through for the impersonated token, but soon causing a user-mode crash, due to an incorrect parameter reference in the CsrGetProcessLuid function in the csrsrv code by Alex (which I copy/pasted to reduce code duplication).
        Fixing this final bug finally allowed the correct LUID to be queried and I was able to continue development of not-yet-commited user-mode shutdown code.

svn path=/trunk/; revision=46028
2010-03-09 10:35:58 +00:00
Sir Richard
b36899aa50 [WIN32K]: Stub-plement NtUserSetInformationThread for UserInitiateShutdown and UserEndShutdown. I think we're supposed to notify Winlogon at some point, and check for races. Part of new shutdown code.
svn path=/trunk/; revision=46027
2010-03-09 09:26:46 +00:00
James Tabor
d5c439798c - [User32_winetest] Restore Timer test.
svn path=/trunk/; revision=46026
2010-03-09 03:48:43 +00:00
James Tabor
c03ec91188 - [User32] Fix timer crash when calling proc.
svn path=/trunk/; revision=46025
2010-03-09 03:48:05 +00:00
Timo Kreuzer
5277616bbf merge r46023
svn path=/branches/header-work/; revision=46024
2010-03-09 03:00:48 +00:00
Sir Richard
7a43a3001f [SETUPLDR]: Fix build breakage caused by hpoussin, by linking minihal into setupldr as well.
svn path=/trunk/; revision=46023
2010-03-09 02:29:25 +00:00
Timo Kreuzer
a93c72eafc revert part of 46020, adding back po types
svn path=/branches/header-work/; revision=46022
2010-03-09 00:45:15 +00:00
Amine Khaldi
a00acb2a1b Sync with trunk head
svn path=/branches/header-work/; revision=46021
2010-03-09 00:19:55 +00:00
Timo Kreuzer
68ea0b876e - Move some definitions from wdm.h to ntpoapi.h
- Add ALIGN_DOWN_BY, ALIGN_UP_BY, ALIGN_DOWN_POINTER_BY, ALIGN_UP_POINTER_BY
- fix pshpack1.h inclusion
- PCHAR -> PSTR in RtlAssert

svn path=/branches/header-work/; revision=46020
2010-03-09 00:17:56 +00:00
Amine Khaldi
eb68457183 [NTIFS]
- Group related definitions
- Add NtSetInformationThread function declaration
- Add SE_ADT_PARAMETER_TYPE enum
- Add SE_ADT_OBJECT_TYPE, SE_ADT_PARAMETER_ARRAY_ENTRY, SE_ADT_ACCESS_REASON and SE_ADT_PARAMETER_ARRAY structures
- Add SE_MAX_AUDIT_PARAMETERS, SE_MAX_GENERIC_AUDIT_PARAMETERS, SE_ADT_PARAMETERS_* and SE_ADT_PARAMETER_* definitions
- Add LSAP_SE_ADT_PARAMETER_ARRAY_TRUE_SIZE macro

svn path=/branches/header-work/; revision=46019
2010-03-08 23:02:39 +00:00
Amine Khaldi
79a0a4193d [NTIFS]
- Group related definitions
- Add several Rtl* function declarations
- Add RTL_SYSTEM_VOLUME_INFORMATION_FOLDER, DEVICE_TYPE, FILE_DEVICE_*, METHOD_* and FILE_*_ACCESS definitions
- Add CTL_CODE, DEVICE_TYPE_FROM_CTL_CODE and METHOD_FROM_CTL_CODE macros

svn path=/branches/header-work/; revision=46018
2010-03-08 22:30:14 +00:00
Hervé Poussineau
61fef12a72 [freeldr] Load an additional SCSI driver if present (NTBOOTSYS.SYS on boot partition), to increase number of known storage devices.
Works only with very simple miniport drivers.

svn path=/trunk/; revision=46017
2010-03-08 22:04:38 +00:00
Hervé Poussineau
e10fbe352c [headers] Fix type of PRTL_HEAP_PARAMETERS in ifssupp.h. Will be required soon
svn path=/trunk/; revision=46016
2010-03-08 21:42:18 +00:00
Hervé Poussineau
37d9cf31a4 Fix include directories
svn path=/trunk/; revision=46015
2010-03-08 21:40:29 +00:00
Amine Khaldi
302f7374fa [NTIFS]
- Group related definitions
- Add several Rtl* function declarations (See diff for details)
- Add MAX_UNICODE_STACK_BUFFER_LENGTH definition
- RtlConvertSidToUnicodeString : DestinationString -> UnicodeString

svn path=/branches/header-work/; revision=46014
2010-03-08 21:38:43 +00:00
James Tabor
d89923519b [User32]
- David Hedberg Fix return value for EDIT_EM_Scroll and case where EM_SCROLL with page down results in trying to scroll up past the beginning. Sync to wine 1.1.40.

svn path=/trunk/; revision=46013
2010-03-08 21:24:47 +00:00
James Tabor
8b48dd5b7c - [User32_winetest]
- Msg : Remove more tests from service. test_timers crashed on a callback which passed months ago. The rest are related to TrackMouseEvent and capture.

svn path=/trunk/; revision=46012
2010-03-08 21:20:18 +00:00
Cameron Gutman
be17352b40 [CMBATT]
- Add initial cmbatt driver which mostly stubs
 - All it does right now is register a battery device with the battc driver
[BATTC]
 - Add a nearly complete battc driver (the only stuff missing is WMI)
 - Tested with our stubbed cmbatt driver but testing on Windows would be nice too
[BATTERY.INF]
 - Added battery.inf to install battery devices
[MISC]
 - Add cmbatt.sys, battc.sys, and battery.inf to bootcd
 - We still need to implement compbatt.sys
 - PS: Janderwald, you stole my commit number ;)

svn path=/trunk/; revision=46011
2010-03-08 21:09:25 +00:00
Daniel Reimer
f780908ae4 Polish translation update by Maciej Bialas.
svn path=/trunk/; revision=46010
2010-03-08 21:08:20 +00:00
James Tabor
6e96e3015c - Fix a crash in user32 winetest msg.
svn path=/trunk/; revision=46009
2010-03-08 21:04:00 +00:00
Timo Kreuzer
dfe13ea582 Add some types and contants to ntpoapi.h
svn path=/branches/header-work/; revision=46008
2010-03-08 21:00:56 +00:00
James Tabor
f8fced000d [User32]
- Andrew Nguyen : Ensure That WM_INITDIALOG passes the first tabstop control handle to the dialog procedure.
- Henri Verbeet : Also show dialogs right after a WM_TIMER message.

svn path=/trunk/; revision=46007
2010-03-08 20:57:24 +00:00
James Tabor
63f9072074 - [User32_winetest]
- Win : Remove test_capture from service. This is related to TrackMouseEvent issues which use SetCapture.

svn path=/trunk/; revision=46006
2010-03-08 20:52:04 +00:00
Aleksey Bragin
f5a35ee9b2 [PSDK]
- Update all IDLs to Wine-1.1.40. If you feel some of your change was lost, it wasn't needed for building. Please recommit if you still think it's of a high value.

svn path=/trunk/; revision=46005
2010-03-08 20:51:33 +00:00
Sir Richard
8a4845b409 [NTOS]: Have I/O Manager Volume Device Objects register with the Power Manager so that they can receive dope.
[NTOS]: Reimplement NtShutdownSystem.
[NTOS]: Implement NtSetSystemPowerState for the shutdown/reboot cases.
[NTOS]: Use the dope from the volume device objects to flush all writeable (non-floppy) devices. Pending hard-disk changes are now flushed to disks before shutdown.
[NTOS]: Flush \\REGISTRY during shutdown. This flushes all pending changes.
[NTOS]: Call into Cc to flush lazy writer during shutdown.
[NTOS]: Stop killing processes on shutdown. The kernel should not be doing this.
[NTOS]: Don't only shutdown disk file systems, but also cdrom and tape.
[NTOS]: Don't only notify drivers of first-chance shutdown -- also parse the last-change shutdown list.
[NTOS]: Reference drivers registering for shutdown notifications so that they remain loaded for them to get the notification at shutdown.
[NTOS]: Notify drivers that have registered/opened the Power State callback.
[NTOS]: A lot of the Po* power state code is highly simplified, but provides a good roadmap to anyone interested in this functionality long-term.

svn path=/trunk/; revision=46004
2010-03-08 20:47:10 +00:00
Sir Richard
c14fc3dc56 [CMLIB]: Just use UNIMPLEMENTED.
svn path=/trunk/; revision=46003
2010-03-08 20:46:53 +00:00
Eric Kohl
02f2e242ff SEH-Protect the call to RSetServiceStatus in SetServiceStatus. This keeps services from crashing when the connection to the service manager fails.
svn path=/trunk/; revision=46002
2010-03-08 20:42:48 +00:00
Sir Richard
a15d2634ea [NTOS]: Implement CmSetLazyFlushState to disable lazy writing in the Cm.
[NTOS]: Implement ExSwapInWorkerThreads to in-swap any worker threads when needed.
[NTOS]: Add HAL stubs for HalEndOfBoot and HalSetWakeEnable since most HALs set this to NULL.
[DDK]: Add some missing definitions.

svn path=/trunk/; revision=46001
2010-03-08 20:37:24 +00:00
Johannes Anderwald
95a13b7f8f - Silent traces
svn path=/trunk/; revision=46000
2010-03-08 20:30:51 +00:00
Timo Kreuzer
414f53a790 Add a bunch of Zw apis. (see diff for more details)
svn path=/branches/header-work/; revision=45999
2010-03-08 20:26:45 +00:00
Amine Khaldi
e9165db831 [NTIFS]
- Group related definitions
- Add Nt{Open,Privilege,Close,Delete}ObjectAuditAlarm, NtPrivilegedServiceAuditAlarm, RtlRandom(Ex), RtlCaptureContext, RtlInit{Ansi,Unicode}StringEx, RtlUpcaseUnicodeStringTo(Counted)OemString, 
RtlIdnTo(Nameprep)Unicode, RtlValidateUnicodeString, RtlUnicodeStringToOemSize, RtlMultiByteToUnicodeN, RtlMultiByteToUnicodeSize, RtlUnicodeToMultiByteSize, RtlUnicodeToUTF8N, RtlUTF8ToUnicodeN, RtlUpcaseUnicodeToMultiByteN, RtlUnicodeToOemN, RtlUpcaseUnicodeToOemN, RtlNormalizeString, RtlIsNormalizedString, RtlIsValidOemCharacter, PfxInitialize, PfxInsertPrefix, RtlEqualPrefixSid, RtlFreeSid, RtlAllocateAndInitializeSid and RtlIdentifierAuthoritySid function declarations
- Add RTL_ALLOCATE_STRING_ROUTINE, RTL_REALLOCATE_STRING_ROUTINE and RTL_FREE_STRING_ROUTINE type definitions
- Add PREFIX_TABLE_ENTRY and PREFIX_TABLE structures
- Improve RtlGenerate8dot3Name definition
- Improve RtlFillMemoryUlong and add RtlFillMemoryUlonglong
- Add HEAP_SETTABLE_USER_{VALUE,FLAG1,FLAG2,FLAG3,FLAGS}, HEAP_CLASS_{0-8,MASK}, HEAP_MAXIMUM_TAG, HEAP_GLOBAL_TAG, HEAP_PSEUDO_TAG_FLAG, HEAP_TAG_SHIFT, HEAP_TAG_MASK and HEAP_CREATE_VALID_MASK definitions
- Add HEAP_MAKE_TAG_FLAGS inline function
- RtlAllocateHeap : HANDLE HeapHandle -> PVOID HeapHandle
- RtlFreeHeap : HANDLE HeapHandle -> PVOID HeapHandle and P -> BaseAddress
- RtlOemToUnicodeN : PCH OemString -> PCCH OemString
- Add RtlOffsetToPointer and RtlPointerToOffset macros

Dedicated to arty ;)

svn path=/branches/header-work/; revision=45998
2010-03-08 17:07:52 +00:00
Timo Kreuzer
de77c58d94 [WDM]
reenable the ASSERT in IoSkipCurrentIrpStackLocation

svn path=/branches/header-work/; revision=45997
2010-03-08 05:00:38 +00:00
Timo Kreuzer
31638dffc7 [NTOS]
IofCompleteRequest: Skip the stack location at the beginning of the loop instead of before and at the end to avoid double skipping of the last valid stack location in certain cases. This prevents the ASSERT in IoSkipCurrentIrpStackLocation to be hit. Note: this leads to a different value of Irp->CurrentLocation and Irp->Tail.Overlay.CurrentStackLocation after the last completion routine has been called. But that should hopefully not make a difference.

svn path=/branches/header-work/; revision=45996
2010-03-08 04:58:49 +00:00
James Tabor
3812c4f83c - [User32] Sync Mdi to wine 1.1.40.
svn path=/trunk/; revision=45995
2010-03-07 21:18:52 +00:00
Hervé Poussineau
19b65ab3fe [freeldr] Add SCSIPORT category to debug messages
Add missing PELOADER entry + fix one debug message

svn path=/trunk/; revision=45994
2010-03-07 20:12:28 +00:00
Amine Khaldi
b9ef6c177a [NTIFS]
- Group related definitions
- Add POLICY_AUDIT_SUBCATEGORY_COUNT, _TOKEN_AUDIT_POLICY, _MANDATORY_LEVEL definitions
- Add NtOpen{Thread,Process}Token(Ex), NtOpenJobObjectToken, NtDuplicateToken, NtImpersonateAnonymousToken, Nt{Query,Set}InformationToken, NtAdjustPrivilegesToken, NtAdjustGroupsToken, NtPrivilegeCheck and NtAccessCheckAndAuditAlarm declarations
- Add NTSYSCALLAPI to NtFilterToken
- NtAccessCheckByType(ResultList)AndAuditAlarm(ByHandle) : Add NTSYSCALLAPI and HANDLE HandleId -> PVOID HandleId

svn path=/branches/header-work/; revision=45993
2010-03-07 15:37:53 +00:00
Daniel Reimer
fa403d4bf1 Update reg and msiexec to Wine 1.1.40.
svn path=/trunk/; revision=45992
2010-03-07 14:59:15 +00:00
Sylvain Petreolle
223c0fbbfc [HHCTRL.OCX]
fix build

svn path=/trunk/; revision=45991
2010-03-07 13:26:27 +00:00
Christoph von Wittich
96363863d3 [HHCTRL.OCX]
sync hhctrl.ocx to wine 1.1.40

svn path=/trunk/; revision=45990
2010-03-07 12:48:05 +00:00
Daniel Reimer
fcaa30c541 Polish translation update by Maciej Bialas.
svn path=/trunk/; revision=45988
2010-03-07 11:51:02 +00:00
Christoph von Wittich
aeda2ffa10 [IMM32]
sync imm32 to wine 1.1.40

svn path=/trunk/; revision=45987
2010-03-07 11:27:14 +00:00
Christoph von Wittich
aa25097d0d [ITIRCL]
sync itircl to wine 1.1.40

svn path=/trunk/; revision=45986
2010-03-07 11:21:31 +00:00
Christoph von Wittich
0245cc9535 [ICCVID]
sync iccvid to wine 1.1.40

svn path=/trunk/; revision=45985
2010-03-07 11:20:29 +00:00
Christoph von Wittich
799cad4cd0 [CLUSAPI]
sync clusapi to wine 1.1.40

svn path=/trunk/; revision=45984
2010-03-07 11:15:16 +00:00
Christoph von Wittich
5aded0fba9 [PSDK]
sync xmldom.idl to wine 1.1.40

svn path=/trunk/; revision=45983
2010-03-07 11:10:18 +00:00
Christoph von Wittich
c666e0e3e7 [MSCTF]
sync msctf to wine 1.1.40

svn path=/trunk/; revision=45982
2010-03-07 09:48:42 +00:00
Christoph von Wittich
ec5cdce304 [PSAPI_WINETEST]
sync psapi_winetest to wine 1.1.40

svn path=/trunk/; revision=45980
2010-03-07 09:34:40 +00:00
Christoph von Wittich
6534ce1c51 [ITSS]
sync itss to wine 1.1.40

svn path=/trunk/; revision=45979
2010-03-07 09:32:58 +00:00
Christoph von Wittich
314b9e10be [OBJSEL]
sync objsel to wine 1.1.40

svn path=/trunk/; revision=45978
2010-03-07 09:29:02 +00:00
Christoph von Wittich
fbff905ed2 [SHELL32_WINETEST]
sync shell32_winetest to wine 1.1.40

svn path=/trunk/; revision=45977
2010-03-07 07:34:02 +00:00
Christoph von Wittich
2b61353ce2 [USER32_WINETEST]
sync user32_winetest to wine 1.1.40

svn path=/trunk/; revision=45976
2010-03-07 07:32:14 +00:00
Christoph von Wittich
08898832d7 [GDI32_WINETEST]
sync gdi32_winetest to wine 1.1.40

svn path=/trunk/; revision=45975
2010-03-07 07:29:40 +00:00
Christoph von Wittich
8bae50b033 [ADVAPI32_WINETEST]
sync advapi32_winetest to wine 1.1.40

svn path=/trunk/; revision=45974
2010-03-07 07:27:57 +00:00
Timo Kreuzer
334def37f4 - comment out an ASSERT in IoSkipCurrentIrpStackLocation, because our kernel is broken
- Add a header to wdm.h
- add _NTLSA_IFS defines
- add NTAPI to SeLockSubjectContext
- add back CONST in ProbeForRead

svn path=/branches/header-work/; revision=45973
2010-03-07 03:53:47 +00:00
Timo Kreuzer
b832dcf394 revert the change to ProbeForRead
svn path=/branches/header-work/; revision=45972
2010-03-07 03:44:18 +00:00
Timo Kreuzer
92474b296d [NTOS]
- use NTDDI_VERSION 0x05020400 (2k3, SP4)
- fix ProbeForRead parameters
- remove a hack

svn path=/branches/header-work/; revision=45971
2010-03-07 02:55:13 +00:00
Timo Kreuzer
500d425261 Add KeRemoveByKeyDeviceQueueIfBusy, KeReleaseInStackQueuedSpinLock, KeDeregisterBugCheckReasonCallback, KeRegisterBugCheckReasonCallback, KeInitializeThreadedDpc, KeAcquireSpinLockForDpc, KeReleaseSpinLockForDpc, KeAcquireInStackQueuedSpinLockForDpc, KeReleaseInStackQueuedSpinLockForDpc, KeQueryDpcWatchdogInformation, KeSetSystemAffinityThreadEx, KeQueryActiveProcessorCount, KeQueryMaximumProcessorCount, KeRegisterProcessorChangeCallback, KeDeregisterProcessorChangeCallback, KeQueryTotalCycleTimeProcess, KeQueryTotalCycleTimeThread, KeSetTargetProcessorDpcEx, KeSetSystemGroupAffinityThread, KeRevertToUserGroupAffinityThread, KeSetCoalescableTimer, KeQueryUnbiasedInterruptTime, KeQueryActiveProcessorCountEx, KeQueryMaximumProcessorCountEx, KeQueryActiveGroupCount, KeQueryMaximumGroupCount, KeQueryGroupAffinity, KeGetCurrentProcessorNumberEx, KeQueryNodeActiveAffinity, KeQueryNodeMaximumProcessorCount, KeQueryHighestNodeNumber, KeGetCurrentNodeNumber, KeQueryLogicalProcessorRelationship, KeSaveExtendedProcessorState, KeRestoreExtendedProcessorState, SeObjectCreateSaclAccessBits, SeReleaseSubjectContext, SeUnlockSubjectContext, SeCaptureSubjectContext, SeLockSubjectContext, SeSetAuditParameter, SeReportSecurityEvent, SeComputeAutoInheritByObjectType, SeGetWorldRights, PoSetSystemWake, PoGetSystemWake, PoRegisterPowerSettingCallback, PoUnregisterPowerSettingCallback, PoSetDeviceBusyEx, PoStartDeviceBusy, PoEndDeviceBusy, PoQueryWatchdogTime, PoDeletePowerRequest, PoSetPowerRequest, PoClearPowerRequest, PoCreatePowerRequest
- add NTAPI to KeEnterGuardedRegion

svn path=/branches/header-work/; revision=45970
2010-03-07 01:05:54 +00:00
Sylvain Petreolle
8cc8a06a88 Stubplement WTSQueryUserToken.
Patch by Olaf Siejka.


svn path=/trunk/; revision=45969
2010-03-06 23:14:36 +00:00
Timo Kreuzer
c924e7681c Add some Win7 version defines
svn path=/branches/header-work/; revision=45968
2010-03-06 22:50:52 +00:00
Sylvain Petreolle
8eca3e0dcd Make the shutdown with ACPI enabled actually work.
Patch by Samuel Serapion.

svn path=/trunk/; revision=45967
2010-03-06 22:22:28 +00:00
Matthias Kupfer
77013ae0dd - fix palette index for the progress bar
svn path=/trunk/; revision=45966
2010-03-06 22:14:46 +00:00
Timo Kreuzer
9ed3649c24 [WDM]
- Update DISPATCHER_HEADER, based on latest WDK, with "in2003 compatibility fixes
- add Vmcs to INTERFACE_TYPE enum

svn path=/branches/header-work/; revision=45965
2010-03-06 21:52:34 +00:00
Amine Khaldi
faa0a7047f [NTIFS]
- Group related definitions
- Add _SE_SECURITY_DESCRIPTOR, _SE_ACCESS_REQUEST, _SE_ACCESS_REPLY, _SE_AUDIT_OPERATION, _SE_AUDIT_INFO, _TOKEN_LINKED_TOKEN, _TOKEN_ELEVATION, _TOKEN_MANDATORY_LABEL, TOKEN_MANDATORY_POLICY_OFF, TOKEN_MANDATORY_POLICY_NO_WRITE_UP, TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN, TOKEN_MANDATORY_POLICY_VALID_MASK, _TOKEN_MANDATORY_POLICY and  _TOKEN_ACCESS_INFORMATION definitions
- Introduce TOKEN_ALL_ACCESS_P definition and use it to improve TOKEN_ALL_ACCESS definition
- Add missing _TOKEN_INFORMATION_CLASS members

svn path=/branches/header-work/; revision=45964
2010-03-06 19:56:40 +00:00
Amine Khaldi
e69c87c63e [NTIFS]
Actually add the definitions mentioned in the previous commit

svn path=/branches/header-work/; revision=45963
2010-03-06 19:31:27 +00:00
Amine Khaldi
4535940119 [NTIFS]
- Group related definitions
- Add ACCESS_OBJECT_GUID, ACCESS_PROPERTY_SET_GUID, ACCESS_PROPERTY_GUID, ACCESS_MAX_LEVEL, ACCESS_DS_SOURCE_A, ACCESS_DS_SOURCE_W, ACCESS_DS_OBJECT_TYPE_NAME_A, ACCESS_DS_OBJECT_TYPE_NAME_W, ACCESS_REASON_TYPE_MASK, ACCESS_REASON_DATA_MASK, _ACCESS_REASON_TYPE, ACCESS_REASON, _ACCESS_REASONS, SE_SECURITY_DESCRIPTOR_FLAG_NO_OWNER_ACE, SE_SECURITY_DESCRIPTOR_FLAG_NO_LABEL_ACE and SE_SECURITY_DESCRIPTOR_VALID_FLAGS
- Remove _AUDIT_EVENT_TYPE_HACK == 0 condition around _AUDIT_EVENT_TYPE

svn path=/branches/header-work/; revision=45962
2010-03-06 19:26:30 +00:00
Timo Kreuzer
26d4a0c37d - globally disable warnings for char array subscripts
- include ntifs.h in bootvid, kdcom, ramdisk, freeldr
- define SINGLE_GROUP_LEGACY_API for the kernel
- Add back missing prototypes: IoFreeAdapterChannel, IoMapTransfer, IoFlushAdapterBuffers, IoFreeMapRegisters, HalAllocateCommonBuffer, HalFreeCommonBuffer, HalReadDmaCounter
- add missing NTAPI to KeQueryActiveProcessors

svn path=/branches/header-work/; revision=45961
2010-03-06 18:55:27 +00:00
Cameron Gutman
f6b997c0d2 - Add a stub for GetOwnerModuleFromTcpEntry
- Patch by Olaf Siejka

svn path=/trunk/; revision=45960
2010-03-06 18:30:55 +00:00
Cameron Gutman
53a7ff99b9 - Call acpi_bus_set_power instead of acpi_power_transition
- Make sure the device has power management capabilities before calling acpi_bus_set_power
 - Report the new power state with PoSetPowerState
 - Initialize PDOs with the correct device power state (Patch by Samuel Serapion)
 - Initialze PDOs with the correct system power state

svn path=/trunk/; revision=45959
2010-03-06 18:15:56 +00:00
Christoph von Wittich
daa14c5f08 add dsound_winetest to bootcd
svn path=/trunk/; revision=45958
2010-03-06 16:27:51 +00:00
Christoph von Wittich
055cd4a61f [GDIPLUS_WINETEST]
sync gdiplus_winetest to wine 1.1.40

svn path=/trunk/; revision=45957
2010-03-06 16:24:37 +00:00
Christoph von Wittich
9f04416452 sync RtlCreateActivationContext with wine 1.1.40
svn path=/trunk/; revision=45956
2010-03-06 16:19:07 +00:00
Daniel Reimer
93d7c1ee9f Add extrac32 from Wine 1.1.40
svn path=/trunk/; revision=45955
2010-03-06 16:18:09 +00:00
Daniel Reimer
a4aa7d5b7e Sync xcopy, winhlp32, wordpad, write and d3dx9_36 to Wine 1.1.40
svn path=/trunk/; revision=45954
2010-03-06 16:04:27 +00:00
Daniel Reimer
e739983b34 Sync Winfile to Wine 1.1.40
svn path=/trunk/; revision=45953
2010-03-06 16:00:22 +00:00
Christoph von Wittich
2097d927f1 [CRT]
sync fseek with wine 1.1.40 (all msvcrt file tests pass now)

svn path=/trunk/; revision=45952
2010-03-06 15:51:12 +00:00
Kamil Hornicek
3ddf1ab66f - revert the last wined3d.idl changes
svn path=/trunk/; revision=45951
2010-03-06 15:28:23 +00:00
Kamil Hornicek
b77357dff8 - fix build
svn path=/trunk/; revision=45950
2010-03-06 15:10:46 +00:00
Christoph von Wittich
dd3fc3f8e7 [CRT]
sync read_i with wine 1.1.40

svn path=/trunk/; revision=45948
2010-03-06 14:53:55 +00:00
Kamil Hornicek
b7fbeda3eb - sync wined3d, ddraw, d3d8 and d3d9 with Wine 1.1.40
svn path=/trunk/; revision=45947
2010-03-06 14:49:14 +00:00
Christoph von Wittich
7632ce84a0 [CRT]
add TrailBytes-info for codepage 1361
<david dot hedberg at gmail dot com>

svn path=/trunk/; revision=45946
2010-03-06 14:40:19 +00:00
Christoph von Wittich
8592512f2f [RTL]
sync find_query_actctx with wine 1.1.40

svn path=/trunk/; revision=45945
2010-03-06 14:29:56 +00:00
Christoph von Wittich
002ea545f9 add xmllite_winetest to bootcd
svn path=/trunk/; revision=45944
2010-03-06 14:18:56 +00:00
Christoph von Wittich
5a9ef42d46 [XMLLITE_WINETEST]
add xmllite_winetest from wine 1.1.40

svn path=/trunk/; revision=45943
2010-03-06 14:12:31 +00:00
Christoph von Wittich
f24740da76 [WINTRUST]
sync wintrust to wine 1.1.40

svn path=/trunk/; revision=45942
2010-03-06 14:06:19 +00:00
Sylvain Petreolle
e89f7e5a12 [framebuf_new]
Attempt to fix release build.

svn path=/trunk/; revision=45941
2010-03-06 14:06:08 +00:00
Christoph von Wittich
2088d65d5e [WINDOWSCODECS]
sync windowscodecs to wine 1.1.40

svn path=/trunk/; revision=45940
2010-03-06 14:04:11 +00:00
Christoph von Wittich
b0254b03ef [MPR]
partial sync to wine 1.1.40

svn path=/trunk/; revision=45939
2010-03-06 13:42:21 +00:00
Christoph von Wittich
ad6f164929 [KERNEL32_WINETEST]
sync kernel32_winetest to wine 1.1.40

svn path=/trunk/; revision=45938
2010-03-06 13:36:22 +00:00
Christoph von Wittich
a609bd9f70 [SHDOCLC]
reduce diff to wine

svn path=/trunk/; revision=45937
2010-03-06 13:32:24 +00:00
Christoph von Wittich
cd689e02df [QUERY]
sync query to wine 1.1.40

svn path=/trunk/; revision=45936
2010-03-06 13:27:36 +00:00
Christoph von Wittich
be0dd1fa5c [OLEACC]
sync oleacc to wine 1.1.40

svn path=/trunk/; revision=45935
2010-03-06 13:26:12 +00:00
Christoph von Wittich
3ee840b902 [MSXML3_WINETEST]
sync msxml3_winetest to wine 1.1.40

svn path=/trunk/; revision=45934
2010-03-06 13:22:03 +00:00
Christoph von Wittich
3bdf74f576 [MSVCRT_WINETEST]
sync msvcrt_winetest to wine 1.1.40

svn path=/trunk/; revision=45933
2010-03-06 13:20:39 +00:00
Christoph von Wittich
8fc089778a [UXTHEME]
sync uxtheme to wine 1.1.40

svn path=/trunk/; revision=45932
2010-03-06 12:53:36 +00:00
Christoph von Wittich
feebaff19f [WIDL]
sync widl to wine 1.1.40

svn path=/trunk/; revision=45931
2010-03-06 12:53:26 +00:00
Christoph von Wittich
750f99a535 [URLMON]
sync urlmon to wine 1.1.40

svn path=/trunk/; revision=45930
2010-03-06 12:48:13 +00:00
Christoph von Wittich
cc1ac86805 [TAPI32]
sync tapi32 to wine 1.1.40

svn path=/trunk/; revision=45929
2010-03-06 12:46:57 +00:00
Christoph von Wittich
57aba9879a [MCIWAVE]
sync mciwave to wine 1.1.40

svn path=/trunk/; revision=45928
2010-03-06 12:31:57 +00:00
Christoph von Wittich
bb43ba6b4f [HLINK_WINETEST]
sync hlink_winetest to wine 1.1.40

svn path=/trunk/; revision=45927
2010-03-06 12:27:21 +00:00
Christoph von Wittich
dce2b34982 [CABINET_WINETEST]
sync cabinet_winetest to wine 1.1.40

svn path=/trunk/; revision=45926
2010-03-06 12:26:31 +00:00
Christoph von Wittich
0c34c5a6ec [AMSTREAM]
sync amstream to wine 1.1.40

svn path=/trunk/; revision=45925
2010-03-06 12:23:59 +00:00
Christoph von Wittich
640aaf3a2e [GDIPLUS]
sync gdiplus to wine 1.1.40

svn path=/trunk/; revision=45924
2010-03-06 12:15:38 +00:00
Christoph von Wittich
e162d33ac4 [SHLWAPI]
sync shlwapi to wine 1.1.40

svn path=/trunk/; revision=45923
2010-03-06 12:08:51 +00:00
Christoph von Wittich
a107cd5ed2 [ACTXPRXY]
partially sync actxprxy to wine 1.1.40
(shlobjidl.idl needs fixing!!!)

svn path=/trunk/; revision=45922
2010-03-06 12:05:00 +00:00
Christoph von Wittich
60da8fe576 [PSTOREC]
sync pstorec to wine 1.1.40

svn path=/trunk/; revision=45921
2010-03-06 11:53:27 +00:00
Christoph von Wittich
ecd20ad2a1 [SHDOCVW]
sync shdocvw to wine 1.1.40

svn path=/trunk/; revision=45920
2010-03-06 11:44:48 +00:00
Christoph von Wittich
bd5eff9b85 [MSHTML_WINETEST]
sync mshtml_winetest to wine 1.1.40

svn path=/trunk/; revision=45919
2010-03-06 11:43:08 +00:00
Christoph von Wittich
d25edac691 [MSHTML]
sync mshtml to wine 1.1.40

svn path=/trunk/; revision=45918
2010-03-06 11:42:03 +00:00
Christoph von Wittich
701bf7b07f [OLEDLG]
sync oledlg to wine 1.1.40

svn path=/trunk/; revision=45917
2010-03-06 11:21:01 +00:00
Christoph von Wittich
435ed8ec60 [OLEPRO32]
sync olepro32 to wine 1.1.40

svn path=/trunk/; revision=45916
2010-03-06 11:15:39 +00:00
Christoph von Wittich
464cdf7f1c [ATL]
sync atl to wine 1.1.40

svn path=/trunk/; revision=45915
2010-03-06 11:14:00 +00:00
Christoph von Wittich
06ef1d70d8 [QUARTZ]
sync quartz to wine 1.1.40

svn path=/trunk/; revision=45914
2010-03-06 11:12:11 +00:00
Christoph von Wittich
4a6951f870 [QEDIT]
sync qedit to wine 1.1.40

svn path=/trunk/; revision=45913
2010-03-06 11:10:27 +00:00
Christoph von Wittich
03db5f23db [DWMAPI]
sync dwmapi to wine 1.1.40

svn path=/trunk/; revision=45912
2010-03-06 11:08:56 +00:00
Christoph von Wittich
f4c2a120ef [CRYPT32]
sync crypt32 to wine 1.1.40

svn path=/trunk/; revision=45911
2010-03-06 11:06:56 +00:00
Christoph von Wittich
67aebd5a4f [MSI]
sync msi to wine 1.1.40

svn path=/trunk/; revision=45909
2010-03-06 09:05:09 +00:00
Christoph von Wittich
812fcd6a3e [MSXML3]
sync msxml3 to wine 1.1.40

svn path=/trunk/; revision=45908
2010-03-06 08:56:21 +00:00
Cameron Gutman
5d4d3fd694 - Transition the physical device into D0 state when we receive IRP_MN_START_DEVICE
- Actually do the power state transtion when a PDO receives IRP_MN_SET_POWER for DevicePowerState
 - Fill the DEVICE_CHARACTERISTICS struct based on values in the acpi_device struct
 - Lots of unhacking

svn path=/trunk/; revision=45907
2010-03-06 06:03:04 +00:00
James Tabor
c628a16ac8 - [User32 Wine Test] Disable cancel mode test.
svn path=/trunk/; revision=45906
2010-03-06 02:52:25 +00:00
Timo Kreuzer
d29802813d - Add PMDLX
- MmProbeAndLockProcessPages is win2k, not XP
- update CM_PARTIAL_RESOURCE_DESCRIPTOR
- comment out some ExInterlocked functions for x86

svn path=/branches/header-work/; revision=45905
2010-03-06 02:21:20 +00:00
Timo Kreuzer
3416602d2f [WDM]
- KPROCESSOR_MODE is CCHAR
- add PF_XSAVE_ENABLED, SEC_COMMIT
- KeSaveFloatingPointState and KeRestoreFloatingPointState are x86 only

svn path=/branches/header-work/; revision=45904
2010-03-06 01:07:32 +00:00
Amine Khaldi
5748c28965 - Remove ntddk include from ntoskrnl.h
- NTIFS : tagTOKEN_TYPE -> _TOKEN_TYPE
- Remove redundant MmFlushImageSection definition from winddk
- Add _BUS_HANDLER struct forwarder
- Guard ifssupp.h with #ifndef _NTIFS_ condition
- Add WAIT_TYPE, LOGICAL and PLOGICAL definitions to ntdef.h and get rid of the incorrect ones in winddk.h
- Group related *_POWER_* definitions 
- Move PKSYNCHRONIZE_ROUTINE and POOL_TYPE to the kernel types section
- PDEVICE_OBJECT  DeviceObject -> struct _DEVICE_OBJECT  *DeviceObject in some cases
- PIRP Irp -> struct _IRP  *Irp in some cases

svn path=/branches/header-work/; revision=45903
2010-03-06 00:59:29 +00:00
Amine Khaldi
9a06fb6a0d [NTIFS]
- Group related definitions
- Correct ACCESS_MAX_MS_V5_ACE_TYPE definition
- Add SYSTEM_MANDATORY_LABEL_ACE_TYPE, SUCCESSFUL_ACCESS_ACE_FLAG, FAILED_ACCESS_ACE_FLAG, SYSTEM_MANDATORY_LABEL_NO_WRITE_UP, SYSTEM_MANDATORY_LABEL_NO_READ_UP, SYSTEM_MANDATORY_LABEL_NO_EXECUTE_UP and SYSTEM_MANDATORY_LABEL_VALID_MASK definitions

svn path=/branches/header-work/; revision=45902
2010-03-05 23:11:56 +00:00
James Tabor
04f1825bfb - [Win32k] Fix DrawMenuBar.
svn path=/trunk/; revision=45901
2010-03-05 23:10:16 +00:00
Amine Khaldi
01815bddf0 [NTIFS]
- Group related definitions
- Add SID_AND_ATTRIBUTES_HASH struct
- Add SID_HASH_SIZE, SID_HASH_ENTRY, *PSID_HASH_ENTRY, SECURITY_LOCAL_LOGON_RID, SECURITY_CRED_TYPE_BASE_RID, SECURITY_CRED_TYPE_RID_COUNT, SECURITY_CRED_TYPE_THIS_ORG_CERT_RID, SECURITY_USERMODEDRIVERHOST_ID_BASE_RID, SECURITY_USERMODEDRIVERHOST_ID_RID_COUNT, SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_BASE_RID, SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_RID_COUNT, SECURITY_WMIHOST_ID_BASE_RID, SECURITY_WMIHOST_ID_RID_COUNT, SECURITY_TASK_ID_BASE_RID, SECURITY_NFS_ID_BASE_RID, SECURITY_COM_ID_BASE_RID, SECURITY_VIRTUALACCOUNT_ID_RID_COUNT and SECURITY_WINDOWSMOBILE_ID_BASE_RID definitions

svn path=/branches/header-work/; revision=45900
2010-03-05 22:51:28 +00:00
Timo Kreuzer
7bf74e86d2 add _WDMDDK_ include guard
svn path=/branches/header-work/; revision=45899
2010-03-05 22:50:11 +00:00
Amine Khaldi
6f5be9aba2 [NTIFS]
- Introduce #pragma once
- Add missing includes
- Add some struct forwarders
- Add PsGetCurrentProcess, KeNumberProcessors, LSA_UNICODE_STRING, *PLSA_UNICODE_STRING, LSA_OBJECT_ATTRIBUTES and *PLSA_OBJECT_ATTRIBUTES definitions
- Add SID_NAME_USE enum
- Group related definitions

svn path=/branches/header-work/; revision=45898
2010-03-05 22:36:10 +00:00
Amine Khaldi
142386dd70 - Move MMFLUSH_TYPE enum from winddk.h to ntifs.h
- Remove redundant definitions from winddk.h : ObInsertObject, ObMakeTemporaryObject, ObOpenObjectByPointer, ObQueryObjectAuditingByHandle, ZwDeviceIoControlFile and ZwWaitForSingleObject
- ObInsertObject : AdditionalReferences -> ObjectPointerBias and ReferencedObject -> NewObject

Happy birthday Andy ! :)

svn path=/branches/header-work/; revision=45897
2010-03-05 21:51:34 +00:00
Amine Khaldi
3dab427010 HalFreeCommonBuffer and HalReadDmaCounter :
- Move them from winddk.h to wdm.h and make them inline functions
- NTHALAPI -> FORCEINLINE
- PADAPTER_OBJECT  AdapterObject -> PDMA_ADAPTER DmaAdapter

svn path=/branches/header-work/; revision=45896
2010-03-05 21:03:42 +00:00
Amine Khaldi
76bb478173 HalAllocateCommonBuffer :
- Move it from winddk.h to wdm.h and make it an inline function
- NTHALAPI -> FORCEINLINE
- PADAPTER_OBJECT  AdapterObject -> PDMA_ADAPTER DmaAdapter

svn path=/branches/header-work/; revision=45895
2010-03-05 20:57:21 +00:00
Amine Khaldi
b7de91f3bf - Move more stuff to wdm.h
- Add NTAPI back to some Io* definitions
- Remove some redundant Io* definitions

svn path=/branches/header-work/; revision=45894
2010-03-05 20:40:37 +00:00
Sylvain Petreolle
e9231d6824 Obvious one, add back framebuff as well.
svn path=/trunk/; revision=45893
2010-03-05 20:37:34 +00:00
Sylvain Petreolle
de3f446023 Add back vgaddi to the build.
svn path=/trunk/; revision=45892
2010-03-05 20:12:37 +00:00
Timo Kreuzer
0c0b65082e Attempt to fix build of bootcd, by adding back vga and vbe miniport drivers.
svn path=/trunk/; revision=45891
2010-03-05 19:57:53 +00:00
Amine Khaldi
f7910da58e - Move more stuff to wdm.h
- DbgPrint(Ex) : PCCH  Format -> PCSTR  Format
- Add NTSYSAPI to vDbgPrintEx(WithPrefix)
- DbgPrintReturnControlC and Dbg{Set,Query}DebugFilterState : NTKERNELAPI -> NTSYSAPI
- Add vKdPrintExWithPrefix definition
- Improve the conditions around KdDebuggerEnabled and KdDebuggerNotPresent definitions

svn path=/branches/header-work/; revision=45890
2010-03-05 19:56:44 +00:00
Christoph von Wittich
6063b53ab2 [KERNEL32_WINETEST]
sync kernel32_winetest to wine 1.1.39

svn path=/trunk/; revision=45889
2010-03-05 19:01:21 +00:00
Amine Khaldi
775b7007f8 - Move more stuff to wdm.h
- Improve more Po* and Zw* definitions

svn path=/branches/header-work/; revision=45888
2010-03-05 18:56:48 +00:00
Christoph von Wittich
4731484299 [RICHED32_WINETEST]
sync riched32_winetest to wine 1.1.39

svn path=/trunk/; revision=45887
2010-03-05 18:50:02 +00:00
Christoph von Wittich
b13dd36a83 [RICHED20_WINETEST]
sync riched20_winetest to wine 1.1.39

svn path=/trunk/; revision=45886
2010-03-05 18:49:06 +00:00
Christoph von Wittich
38a74f7e1e [URLMON_WINETEST]
sync urlmon_winetest to wine 1.1.39

svn path=/trunk/; revision=45885
2010-03-05 18:47:06 +00:00
Christoph von Wittich
5df3fe3f82 add dsound_winetest to build
svn path=/trunk/; revision=45884
2010-03-05 18:45:24 +00:00
Christoph von Wittich
71ca03ec6a [DSOUND_WINETEST]
sync dsound_winetest to wine 1.1.39

svn path=/trunk/; revision=45883
2010-03-05 18:44:59 +00:00
Christoph von Wittich
257289fd89 [MAPI32_WINETEST]
sync mapi32_winetest to wine 1.1.39

svn path=/trunk/; revision=45882
2010-03-05 18:41:30 +00:00
Christoph von Wittich
7249fc91c0 [MAPI32]
sync mapi32 to wine 1.1.39

svn path=/trunk/; revision=45881
2010-03-05 18:40:20 +00:00
Christoph von Wittich
1a12523fbe [INETMIB1]
sync inetmib1 to wine 1.1.39

svn path=/trunk/; revision=45880
2010-03-05 18:34:19 +00:00
Christoph von Wittich
ddc822b8bb [INETCOMM]
sync inetcomm to wine 1.1.39

svn path=/trunk/; revision=45879
2010-03-05 18:32:19 +00:00
Christoph von Wittich
a5b6995391 [FUSION]
sync fusion to wine 1.1.39

svn path=/trunk/; revision=45878
2010-03-05 18:30:07 +00:00
Amine Khaldi
d1a7b6136c - Move more stuff to wdm.h
- Improve more Ps* and Se* definitions

svn path=/branches/header-work/; revision=45877
2010-03-05 18:20:08 +00:00
Amine Khaldi
a8a908e214 - Move more stuff to wdm.h
- Improve more Ob* definitions

svn path=/branches/header-work/; revision=45876
2010-03-05 18:06:58 +00:00
Amine Khaldi
ce32e52bfc - Move more stuff to wdm.h
- Improve more Mm* definitions

svn path=/branches/header-work/; revision=45875
2010-03-05 17:41:41 +00:00
evb
d1efdcf9df - New Framebuffer (Linear) Display Driver to support new unified VGA/VBE miniport. Based on NT4 DDK Sample, with modifications by me (marked with // eVb) to support new functionality needed for 2003-era driver.
- Also used Virtual Box Display Driver as sample, which is based on "GPL" Windows 2003 DDK sample driver. Could not use 2003 DDK sample directly because of licensing issues, and feel unsafe about VirtualBox "GPL" driver that says "PATENTED AND ONLY FOR USE IN MICROSOFT PRODUCTS".
- Note that old driver was based off DDK sample too, but with variables renamed (some comments identical!) and code reformatted, then marked as "GPL". This is not very good way to share/use code... one day someone can teach you lesson.


svn path=/trunk/; revision=45874
2010-03-05 17:29:51 +00:00
evb
5ba4b4bbeb - Add new unified VGA/VBE miniport driver. Based on NT4 DDK Cirrus Miniport Driver Sample with my modifications (marked with // eVb) to change Cirrus parts to VGA parts if needed. Also add VBE suppor which is not in Cirrus driver, but exists in Windows VGA miniport.
- Work-in-progress, can boot to GUI with VMWare, but banked modes not yet supported, no VDM, no Mode-X, etc...
- Thanks to sir_richard for help with headers, comments and other English stuff.
- Driver is only built, not yet used.
- NOTE: Some parts of BootVid seem to use functions copied from this sample (VgaInterpretCmdStream) but under "GPL", and also buggy (Chain4 Mode test will not work on most cards and VgaIsPresent == FALSE). Someone should fix.

svn path=/trunk/; revision=45873
2010-03-05 17:22:18 +00:00
Cameron Gutman
4834e2c3d5 - Detach the device object from the stack before deleting it
- Add a hack that selects the correct display number to use which allows other drivers to take over if one driver's HwFindAdapter fails
 - This allows ROS to work on non-VESA 2.0 compliant video cards if /NOVESA is specified
 - NOTE: VGA seems to have regressed quite a bit. The mouse doesn't show up but still works.

svn path=/trunk/; revision=45872
2010-03-05 16:40:40 +00:00
Amine Khaldi
42fde03fe1 - Move more stuff to wdm.h
- Improve more Ke* definitions

svn path=/branches/header-work/; revision=45871
2010-03-05 16:18:23 +00:00
Amine Khaldi
2c852bf801 More work on USB related definitions
svn path=/branches/header-work/; revision=45870
2010-03-05 13:32:58 +00:00
Aleksey Bragin
eb6bae0c08 [UNIATA]
- Really perform a controller hard-reset if it can't recover from a soft reset. Fixes VirtualBox one IDE controller configuration (master - IDE, slave - ATAPI).
See issue #5145 for more details.

svn path=/trunk/; revision=45869
2010-03-05 13:23:43 +00:00
Aleksey Bragin
ebfc115694 [UNIATA]
- Reduce pause between SelectDrive and ATAPI_RESET from 10000 to 500 (as it is in the old ATAPI driver).

svn path=/trunk/; revision=45868
2010-03-05 13:16:52 +00:00
Amine Khaldi
e488e6e43c More work on USB related definitions
svn path=/branches/header-work/; revision=45867
2010-03-05 12:25:38 +00:00
Amine Khaldi
78a63975f8 More work on USB related definitions
svn path=/branches/header-work/; revision=45866
2010-03-05 12:07:35 +00:00
Amine Khaldi
749428da20 More work on USB related definitions
svn path=/branches/header-work/; revision=45865
2010-03-05 11:58:34 +00:00
Amine Khaldi
73cc29ce32 More work on USB related definitions
svn path=/branches/header-work/; revision=45864
2010-03-05 11:44:11 +00:00
Amine Khaldi
97e7fd6cb6 More work on USB related definitions
svn path=/branches/header-work/; revision=45863
2010-03-05 11:12:29 +00:00
Johannes Anderwald
309fb1c02a [PORTCLS]
- Implement a function to retrieve the current acquired mapping tag range of the miniport driver
- Call RevokeMappings when audio pin is stopped

svn path=/trunk/; revision=45862
2010-03-05 10:11:54 +00:00
Amine Khaldi
a7ffadade2 More work on USB related definitions
svn path=/branches/header-work/; revision=45861
2010-03-05 09:56:28 +00:00
Johannes Anderwald
95f5adb673 [PORTCLS]
- More cleanup
- Only copy audio bytes to common buffer when the audio pin is in the running state
- Only notify miniport when the audio pin is in the running state

svn path=/trunk/; revision=45860
2010-03-05 09:43:42 +00:00
Johannes Anderwald
e3fb834a19 [PORTCLS]
- Remove dead code
- Disable last mapping failed status when a new mapping is inserted
- Notify IMiniportWavePciStream::MappingAvailable when a new mapping has arrived and the last one has failed
- Return STATUS_NOT_FOUND in IPortWavePciStream::GetMapping when no mapping is available
- Don't stop stream when no mapping is currently available 

svn path=/trunk/; revision=45859
2010-03-05 09:09:14 +00:00
Timo Kreuzer
c76dfd5cb8 - Convert the members of PCI_COMMON_HEADER into a #define to avoid inheritance on C++, which would render the type a non-POD, causing compilation errors.
- IoInitializeDpcRequest expects PIO_DPC_ROUTINE as 2nd parameter, fix callers.
- While FILE_CHARACTERISTIC_PNP_DEVICE is defined in the DDK/WDK, _SYSTEM_INFORMATION_CLASS is not, fix include guards in ntddk_ex.h
- add InterlockedBitTestAndSet64 and InterlockedBitTestAndReset64 for amd64
- Fix definition of NLS_MB_CODE_PAGE_TAG for gcc
- Fix parameters of DMA inline functions
- remove duplicate IoAllocateAdapterChannel
- Everything compiles again -> Amine, your turn :)

svn path=/branches/header-work/; revision=45858
2010-03-05 04:03:34 +00:00
Sir Richard
ea5024f932 [DDK]: Add missing video IOCTLs.
svn path=/trunk/; revision=45857
2010-03-05 01:27:43 +00:00
Amine Khaldi
7ff52a15bf More work on USB related definitions
svn path=/branches/header-work/; revision=45856
2010-03-05 01:12:11 +00:00
Cameron Gutman
858705878a - Fail HwFindAdapter if VESA is disabled
- This should allow VGA to take over but it doesn't work due to a bug in videoprt

svn path=/trunk/; revision=45855
2010-03-05 01:09:24 +00:00
Amine Khaldi
9605671f96 More work on USB related definitions
svn path=/branches/header-work/; revision=45854
2010-03-05 01:07:08 +00:00
Amine Khaldi
846448c7ab More work on USB related definitions
svn path=/branches/header-work/; revision=45853
2010-03-05 00:54:36 +00:00
Timo Kreuzer
0651773e46 Fix TdiBuildBaseIrp by adding the missing ;
svn path=/branches/header-work/; revision=45852
2010-03-05 00:34:26 +00:00
Timo Kreuzer
9a46e3d7d6 add back missing IoAllocateAdapterChannel
svn path=/branches/header-work/; revision=45851
2010-03-05 00:31:37 +00:00
Amine Khaldi
4a9a65ab2a More work on USB related definitions
svn path=/branches/header-work/; revision=45850
2010-03-05 00:15:36 +00:00
Amine Khaldi
1ff2c4916b More work on USB related definitions
svn path=/branches/header-work/; revision=45849
2010-03-05 00:08:17 +00:00
Amine Khaldi
19adca9597 More work on USB related definitions
svn path=/branches/header-work/; revision=45848
2010-03-04 23:57:29 +00:00
James Tabor
ea385f2fe4 - [User32] Sync controls to wine 1.1.39.
svn path=/trunk/; revision=45847
2010-03-04 23:25:30 +00:00
Amine Khaldi
5fbb30c493 More work on USB related definitions
svn path=/branches/header-work/; revision=45846
2010-03-04 22:58:41 +00:00
Aleksey Bragin
69f20a953b [RTL]
- Fix Samuel's mistake of assuming that xmlstrs are zero-terminated by adding a xmlstr2unicode function, which returns a UNICODE_STRING representation of xmlstr suitable for printing. No debug log garbage now (disadvantage: more code changes compared to the original code).

svn path=/trunk/; revision=45845
2010-03-04 22:05:34 +00:00
Cameron Gutman
3a4617cfcb - Implement VideoPortIsNoVesa
svn path=/trunk/; revision=45844
2010-03-04 21:53:12 +00:00
Aleksey Bragin
78dce7419f [PSDK]
- Update RPC includes to Wine-1.1.39.

svn path=/trunk/; revision=45843
2010-03-04 21:16:09 +00:00
Christoph von Wittich
56ea0194bb [SHELL32_WINETEST]
sync shell32_winetest to wine 1.1.39

svn path=/trunk/; revision=45842
2010-03-04 20:55:58 +00:00
Christoph von Wittich
f793b1390f [IPHLPAPI_WINETEST]
sync iphlpapi_winetest to wine 1.1.39

svn path=/trunk/; revision=45841
2010-03-04 20:55:41 +00:00
Christoph von Wittich
a327cb39e8 [WINTRUST_WINETEST]
sync wintrust_winetest to wine 1.1.39

svn path=/trunk/; revision=45840
2010-03-04 20:46:06 +00:00
Christoph von Wittich
789a1e0a2b [WINDOWSCODECS]
sync windowscodecs to wine 1.1.39

svn path=/trunk/; revision=45839
2010-03-04 20:42:21 +00:00
Christoph von Wittich
d873071376 [WINTRUST]
sync wintrust to wine 1.1.39

svn path=/trunk/; revision=45838
2010-03-04 20:39:41 +00:00
Sylvain Petreolle
f7539495dc [URLMON]
Fix build.

svn path=/trunk/; revision=45837
2010-03-04 18:50:24 +00:00
Johannes Anderwald
57103f1233 [KSPROXY]
- Silence traces in IEnumPins interface
- Partly implement IKsObject interface for COutputPin
- Retrieve pin communication and pass it to constructor of CInputPin
- Implement IKsPinEx and IMemInputPin interface for CInputPin
- The DVBT network provider can now connect to the BDA Source Filter

svn path=/trunk/; revision=45836
2010-03-04 17:34:22 +00:00
Christoph von Wittich
eb4f41f03b [ATL]
sync atl to wine 1.1.39

svn path=/trunk/; revision=45835
2010-03-04 15:28:42 +00:00
Christoph von Wittich
266a9a6369 [URLMON]
sync urlmon to wine 1.1.39

svn path=/trunk/; revision=45834
2010-03-04 15:24:17 +00:00
Aleksey Bragin
7473d1aab3 [WIDL]
- Sync to Wine-1.1.39

svn path=/trunk/; revision=45833
2010-03-04 13:46:14 +00:00
Christoph von Wittich
71c6a8c283 [RSAENH]
sync rsaenh to wine 1.1.39

svn path=/trunk/; revision=45832
2010-03-04 13:36:55 +00:00
Christoph von Wittich
93656a0095 [GDIPLUS]
sync gdiplus to wine 1.1.39

svn path=/trunk/; revision=45831
2010-03-04 13:34:05 +00:00
Christoph von Wittich
efe0d1d255 [GDIPLUS_WINETEST]
sync gdiplus_winetest to wine 1.1.39

svn path=/trunk/; revision=45830
2010-03-04 13:32:28 +00:00
Christoph von Wittich
d8bd52c185 [MSVCRT_WINETEST]
sync msvcrt_winetest to wine 1.1.39

svn path=/trunk/; revision=45829
2010-03-04 13:28:33 +00:00
Christoph von Wittich
a9dc9cbcfb [BROWSEUI_WINETEST]
sync browseui_winetest to wine 1.1.39

svn path=/trunk/; revision=45828
2010-03-04 12:52:23 +00:00
Christoph von Wittich
a3e5a3750d [SHELL32]
Fix length parameter for ZeroMemory
Paul Vriens <Paul dot Vriens dot Wine at gmail dot com>

svn path=/trunk/; revision=45827
2010-03-04 12:35:02 +00:00
Christoph von Wittich
d15639dbe3 [MSCOREE]
sync mscoree to wine 1.1.39

svn path=/trunk/; revision=45826
2010-03-04 12:29:46 +00:00
Christoph von Wittich
4e6b09ae72 [NETAPI32]
sync netapi32 to wine 1.1.39

svn path=/trunk/; revision=45825
2010-03-04 12:28:24 +00:00
Christoph von Wittich
666d517053 [PDH]
sync pdh to wine 1.1.39

svn path=/trunk/; revision=45824
2010-03-04 12:21:55 +00:00
Hervé Poussineau
97f9d48ec3 Revert part of r45817 to try to fix build
svn path=/trunk/; revision=45823
2010-03-04 06:32:13 +00:00
Sir Richard
12d0dbfe9e Patch for better boot logo/progress bar, fixed /SOS (debug) boot screen/output, removal of "funny" shutdown messages, addition of shutdown logo/screen, and misc:
[NTOS]: Add missing InbvIndicateProgress routine to update the progress bar while drivers are loading. Make boot and system driver initialization call it for each new driver. This updates the progress bar in the 25-75% range which was defined prior to IoInitSystem.
[NTOS]: Fix InbvUpdateProgressBar code to correctly handle the floor and ceiling.
[NTOS]: Remove shutdown "funny messages", do correct shutdown (should fix the ACPI shutdown issues) procedure. Display the shutdown screen on systems without ACPI (just like Windows does).
[NTOS]: Add a resource header with IDB_ definitions for all the embedded bitmaps, instead of using magic numbers and guessing which is which.
[NTOS]: Fix the boot logo initialization code as it was all wrong. 5 is the logo to be used during shutdown, for example, not the full logo background (which is supposed to be in 1, with a special palette that's faded in). Also handle server vs workstation scenarios.
[NTOS]: Booting in the new WinNT mode now correctly displays the blue background screen when in debug (/SOS) mode, and the header/footer also has the correct color, as does the separator band.
[DDK]: Add missing SUITE_TYPE definitions.
[NTOS]: Remove logo files that are simply not needed for ReactOS (Compute Cluster Edition, Tablet PC, etc...)
[NTOS]: Fix logo files (mostly) to have correct palettes. Note that 1.bmp is still quite different from Windows (no fade).

svn path=/trunk/; revision=45822
2010-03-04 06:26:11 +00:00
Timo Kreuzer
dc0ed8a742 A bit more cleanup and sorting
svn path=/branches/header-work/; revision=45818
2010-03-03 23:48:30 +00:00
Hervé Poussineau
8cbf93f23d [freeldr] Don't write twice the delay method and how to read the RTC. Use those in the HAL
svn path=/trunk/; revision=45817
2010-03-03 23:13:06 +00:00
Timo Kreuzer
38322160da - sort wdm.h a bit more
- add missing NTAPI
- move TIMER_TYPE to ntdef.h
- remove duplicate port and register functions
- add volatile keyword where appropriate to register access inline functions
- Use result variable in IoGetRemainingStackSize inline function to avoid a warning

svn path=/branches/header-work/; revision=45816
2010-03-03 23:02:02 +00:00
Hervé Poussineau
e1e7f82deb [freeldr] Add some functions to read partition tables
Add some stubs, link to mini-HAL

svn path=/trunk/; revision=45815
2010-03-03 22:59:32 +00:00
Hervé Poussineau
c1f8063dc7 [freeldr] Add KeBugCheckEx
svn path=/trunk/; revision=45814
2010-03-03 22:54:51 +00:00
Timo Kreuzer
c621463e40 revert change to IoCreateFile
svn path=/branches/header-work/; revision=45813
2010-03-03 22:48:21 +00:00
Hervé Poussineau
4f1c346e27 [freeldr] Allow opening of the raw device
svn path=/trunk/; revision=45812
2010-03-03 22:39:32 +00:00
Hervé Poussineau
3ddda873f8 [freeldr] Add some more memory management functions
svn path=/trunk/; revision=45811
2010-03-03 22:35:10 +00:00
Hervé Poussineau
02f31de4d1 [hal] Add a mini-HAL static library
Mostly the same thing as the real one, except interrupts and DMA

svn path=/trunk/; revision=45809
2010-03-03 21:56:52 +00:00
Amine Khaldi
a8a844c5e5 - Move more stuff to wdm.h
- Improve more Io* and Ke* definitions

svn path=/branches/header-work/; revision=45807
2010-03-03 21:06:23 +00:00
Christoph von Wittich
ba539d0eb0 [XMLLITE]
sync xmllite to wine 1.1.39

svn path=/trunk/; revision=45806
2010-03-03 21:02:05 +00:00
Christoph von Wittich
424ee134e0 [PSDK]
add xmllite.idl from wine 1.1.39

svn path=/trunk/; revision=45805
2010-03-03 21:01:57 +00:00
Christoph von Wittich
97708b8409 [CRYPTNET]
sync cryptnet to wine 1.1.39

svn path=/trunk/; revision=45804
2010-03-03 20:55:41 +00:00
Christoph von Wittich
9373ee891d [CRYPTUI]
sync cryptui to wine 1.1.39

svn path=/trunk/; revision=45803
2010-03-03 20:55:29 +00:00
Christoph von Wittich
900f917844 [CRYPT32]
sync crypt32 to wine 1.1.39

svn path=/trunk/; revision=45802
2010-03-03 20:55:13 +00:00
Christoph von Wittich
37f36cd583 [CRYPTDLG]
sync cryptdlg to wine 1.1.39

svn path=/trunk/; revision=45801
2010-03-03 20:42:01 +00:00
Christoph von Wittich
072bfa4745 [CREDUI]
sync credui to wine 1.1.39

svn path=/trunk/; revision=45800
2010-03-03 20:37:28 +00:00
Christoph von Wittich
36d6872c29 [HLINK_WINETEST]
sync hlink_winetest to wine 1.1.39

svn path=/trunk/; revision=45799
2010-03-03 19:44:02 +00:00
Christoph von Wittich
63163950a1 [SHLWAPI_WINETEST]
sync shlwapi_winetest to wine 1.1.39

svn path=/trunk/; revision=45798
2010-03-03 19:40:55 +00:00
Christoph von Wittich
4e6908db0b [PSDK]
sync shlwapi.h to wine 1.1.39

svn path=/trunk/; revision=45797
2010-03-03 19:40:51 +00:00
Amine Khaldi
1f96c47edf - Move more stuff to wdm.h
- Improve more Io* definitions
- Convert IoSetCompletionRoutine, IoSetNextIrpStackLocation and IoSkipCurrentIrpStackLocation to inline functions

svn path=/branches/header-work/; revision=45796
2010-03-03 19:24:25 +00:00
Amine Khaldi
60f9f52f92 - Move more stuff to wdm.h
- Improve IoIs32bitProcess and more Io* definitions
- Convert IoMarkIrpPending to an inline function- Move more stuff to wdm.h

svn path=/branches/header-work/; revision=45795
2010-03-03 18:30:50 +00:00
Amine Khaldi
6c5abe74d3 - Move more stuff to wdm.h
- Improve more Io* definitions
- Fix KeInitializeDpc
- IoCreateFile and everywhere related : ExtraCreateParameters -> InternalParameters
- IoQueueWorkItem and everywhere related : Routine -> WorkerRoutine and pIoWorkItem -> IoWorkItem

svn path=/branches/header-work/; revision=45794
2010-03-03 18:01:23 +00:00
Amine Khaldi
e4fb241c6b - Move more stuff to wdm.h
- Improve IoAcquireRemoveLock(EX) and several Io*
- Convert some macros to inline functions

svn path=/branches/header-work/; revision=45793
2010-03-03 16:55:25 +00:00
Timo Kreuzer
ddf5c06d6f Revert r45774 until I know why qemu is broken
svn path=/trunk/; revision=45792
2010-03-03 16:30:56 +00:00
Christoph von Wittich
96b0a44c36 [SHLWAPI]
sync shlwapi to wine 1.1.39

svn path=/trunk/; revision=45791
2010-03-03 16:21:34 +00:00
Christoph von Wittich
822bfb7915 [HLINK]
sync hlink to wine 1.1.39

svn path=/trunk/; revision=45790
2010-03-03 16:14:25 +00:00
Amine Khaldi
d944603372 - Move ntdef.h from ddk to psdk
- Move EVENT_TYPE to ntdef.h
- Introduce pragma once to wdm.h
- Fix FAST_MUTEX
- FastMutex->Gate => FastMutex->Event
- Improve KeInitializeEvent
- Improve InitializeSListHead

svn path=/branches/header-work/; revision=45789
2010-03-03 16:03:14 +00:00
Timo Kreuzer
243e8910fa Fix some pshpack / poppack includes
svn path=/branches/header-work/; revision=45788
2010-03-03 13:38:45 +00:00
Amine Khaldi
7a1c60b909 - Move more stuff to wdm.h
- Improve PAGED_CODE, ProbeFor{Read,Write} and Cm(UN)RegisterCallback
- Group some related definitions.


svn path=/branches/header-work/; revision=45787
2010-03-03 13:33:58 +00:00
Amine Khaldi
f9ac88867c - Move more stuff to wdm.h
- Fix/Improve InitializeSListHead
- Convert some macros into inline functions

svn path=/branches/header-work/; revision=45786
2010-03-03 13:02:26 +00:00
Amine Khaldi
7c79de7f48 - Move more stuff to wdm.h
- Fix RTL_VERIFYMSG
- Improve NLS_MB_CODE_PAGE_TAG and NLS_MB_OEM_CODE_PAGE_TAG
- Fix/Improve some RTL and Guarded Mutex routines

svn path=/branches/header-work/; revision=45785
2010-03-03 12:39:52 +00:00
Amine Khaldi
3906d78bd2 Add several missing USB related definitions
svn path=/branches/header-work/; revision=45783
2010-03-03 11:42:20 +00:00
Amine Khaldi
db8a0b34de - Move more stuff to wdm.h
- Add missing MM_ALLOCATE_* definitions
- Improve KeTryToAcquireSpinLockAtDpcLevel and KeTestSpinLock
- Fix a typo in BYTES_TO_PAGES definition
- Remove a useless #if block
- Add missing ntddk.h include in ntoskrnl.h

svn path=/branches/header-work/; revision=45782
2010-03-03 11:38:57 +00:00
evb
b7458a6c94 - Fix includes in richard's driver.
- Fix wrong calling to VideoPortCreateEvent. He got parameters all mixed up~


svn path=/trunk/; revision=45781
2010-03-03 08:08:07 +00:00
evb
7dc9efe808 - Video Miniport driver not use ntddk.h, but miniport.h. But, Reactos miniport.h is empty! Add some definitions to miniport.h to get simple drivers to compile, so now can remove ntddk.h from VGA/VBE/XBOX miniports!
- Video Port driver should not use either, but too many changes required. So, define __BROKEN__ to allow ntddk + miniport together.
- Add VideoPortIsNoVesa API definition. Not implemented in ReactOS, used to disable VESA in F8 "Standard VGA Mode". Should implement for VGA-only support on broken VESA machine, and for test.


svn path=/trunk/; revision=45780
2010-03-03 07:09:09 +00:00
Sir Richard
4c15f8900e [VIDEOPRT]: <Committing on behalf of eVb> - Patch to make VideoPort INT10 Services return VP_STATUS instead of NT_STATUS. It is not the same thing.
svn path=/trunk/; revision=45779
2010-03-03 05:22:45 +00:00
Sir Richard
486e587cca [VMX-SVGA]: Some work in progress from my tree. Abandonning this for now due to work reasons, but will likely have eVb hacking on it as some future time. The point of this driver was to expose Mm/VideoPrt issues AND support Qemu hosts with the VMX-SVGA driver option which do not have a way to obtain the driver itself but would still benefit from the acceleration. It was mostly just an experiment.
svn path=/trunk/; revision=45778
2010-03-03 05:21:00 +00:00
Sir Richard
52d93be892 [NTOS]: Do the "funny message" (not really funny, my apologies) shenanigans after the system components have shutdown, and reset the display and call the HAL at least at DPC level (should probably do it at HIGH IRQL, really). This way, we can avoid the context switch to another process while the HAL is executing the BIOS reset display call (done solely for the benefit of the "funny messages", as the video card driver usually resets the display) and thus avoid the "invalid V86 opcode" message sometimes appearing on shutdown. Did you know the "funny messages" take up more storage space than an average embedded micro-controller OS?
svn path=/trunk/; revision=45777
2010-03-03 05:10:38 +00:00
Johannes Anderwald
7cdbb11c87 [KSPROXY]
- Implement IEnumMediaTypes interface
- Implement IKsObject, IKsPropertySet, IKsControl interface for CInputPin
- Verify connection format for CInputPin
- Delegate interface requests to ksproxy plugins
- Implement CKsProxy::FindPin
[MSDVBNP]
- Use FORMAT_None as format specifier

svn path=/trunk/; revision=45776
2010-03-03 03:27:25 +00:00
Cameron Gutman
a3c1764e42 - Initialize the ACPI table (the exact same we do it in KiRosFrldrLpbToNtLpb)
- Fixes ACPI detection when booted in Windows-compatible mode

svn path=/trunk/; revision=45775
2010-03-03 02:38:56 +00:00
Timo Kreuzer
7b6dfd6be4 [NTOS]
- Rewrite trap handler exit stubs in pure assembly, remove gcc inline assembly.
- Replace jmp to C handler with KiCallHandler macro, that expands to jmp on release builds for speed and call on debug builds to fix backtraces.
- Unroll the Syscall handler loop and use volatile keyword when reloading TrapFrame and DescriptorTable from the new stack to prevent the compiler from optimizing it away / moving it out of the loop.
- Bugcheck in KiTrap0DHandler, if the fault couldn't be resolved.
- Remove handling of V86 traps and edited traps in KiServiceExit, ASSERT to make sure they never happen.
- Replace code patching of the syscall exit handler with a function pointer.
- Use __debugbreak() instead of while(TRUE) in KiExitTrapDebugChecks

svn path=/trunk/; revision=45774
2010-03-03 02:27:14 +00:00
Cameron Gutman
85f84b8eb3 - Handle the special case of ACPI device, the fixed feature button, which is not given a handle because it is the direct child of the ACPI root device and is not handled by acpi_bus_get_device (see FIXME in that function). Fortunately, this is not a problem for us since we don't need to differentiate between different "features" of each fixed feature button. We can simply enumerate it as "ACPI\FixedButton" based on its NULL handle.
- Strange registry corruption bug on QEMU is gone now

svn path=/trunk/; revision=45773
2010-03-03 01:40:04 +00:00
Cameron Gutman
426585e336 - Add an entry for the high precision event timer
svn path=/trunk/; revision=45772
2010-03-03 01:02:12 +00:00
Cameron Gutman
ed57cdcfde - Stub GetExtendedTcpTable
- Fixes bug 5201
 - Patch by Olaf Siejka

svn path=/trunk/; revision=45771
2010-03-03 00:05:17 +00:00
Johannes Anderwald
b5b3b3702f [PORTCLS]
- Don't free stream header as wdmaud.sys mmaps it

svn path=/trunk/; revision=45770
2010-03-02 22:37:43 +00:00
Cameron Gutman
d3e6d12585 - Fix some missing strings in cpu.inf
- Add it to build

svn path=/trunk/; revision=45769
2010-03-02 21:10:35 +00:00
Johannes Anderwald
7fc6b68491 [BDAPLGIN]
- Set output variable to null to fixup lazy callers
[KSPROXY]
- Enumerate input / output pins and their names
- Start implementing input / output pin
- Implement IEnumPins interface for CKsProxy filter
[MSDVBNP]
- Fix a bug (IEnumPins::Next should increase reference count on pin)
- Fix a bug (IPin::QueryFilterInfo should increase reference count on parent filter)
- Reference leakage is now fixed

svn path=/trunk/; revision=45768
2010-03-02 20:18:29 +00:00
Christoph von Wittich
c6658bfc85 [JSCRIPT_WINETEST]
sync jscript_winetest to wine 1.1.39

svn path=/trunk/; revision=45767
2010-03-02 19:52:22 +00:00
Christoph von Wittich
86405be2d6 [PSDK]
sync dispex.idl to wine 1.1.39

svn path=/trunk/; revision=45766
2010-03-02 19:50:41 +00:00
Christoph von Wittich
8c353150ee [JSCRIPT]
sync jscript to wine 1.1.39

svn path=/trunk/; revision=45765
2010-03-02 19:46:01 +00:00
Christoph von Wittich
72a689d62e [SHDOCVW]
sync shdocvw to wine 1.1.39

svn path=/trunk/; revision=45764
2010-03-02 19:38:02 +00:00
Christoph von Wittich
6ce96bebac [SHDOCLC]
sync shdoclc to wine 1.1.39

svn path=/trunk/; revision=45763
2010-03-02 19:37:13 +00:00
Timo Kreuzer
79d110cf1c [KDBG]
- Fix attaching to processes (registers / backtraces)

svn path=/trunk/; revision=45762
2010-03-02 19:04:15 +00:00
Dmitry Gorbachev
675322f7bd [Kernel32] Print maximum 128 frames. Some formatting changes.
svn path=/trunk/; revision=45761
2010-03-02 18:16:21 +00:00
Johannes Anderwald
5b5ab3b51f [PORTCLS]
- Add support for IPort interface

svn path=/trunk/; revision=45760
2010-03-02 16:48:28 +00:00
Johannes Anderwald
26a4722d68 [KSPROXY]
- Implement IPersistPropertyBag interface
- Implement IKsObject interface
- Implement enumerating supported property/method/event set from driver and loading the corresponding ksproxy plugins

svn path=/trunk/; revision=45759
2010-03-02 16:27:50 +00:00
Amine Khaldi
f6682d44d2 - Move more stuff to wdm.h
- Fix XMM_SAVE_AREA32
- Fix *PFN_* definitions

svn path=/branches/header-work/; revision=45758
2010-03-02 16:14:22 +00:00
Amine Khaldi
8eb606c117 - Move more stuff to wdm.h
- Improve Interrupt Request Level definitions
- KeGetCurrentIrql : DDKAPI -> NTAPI
- KeGetCurrentThread : Fix the definition, remove a redundant one and NTKERNELAPI -> NTSYSAPI

svn path=/branches/header-work/; revision=45757
2010-03-02 15:49:27 +00:00
Amine Khaldi
7e19d52e3d - Move more stuff to wdm.h
- Fix REG_SET_VALUE_KEY_INFORMATION, REG_DELETE_VALUE_KEY_INFORMATION, REG_SET_INFORMATION_KEY_INFORMATION,  REG_ENUMERATE_KEY_INFORMATION, REG_ENUMERATE_VALUE_KEY_INFORMATION, REG_PRE_CREATE_KEY_INFORMATION, 
REG_POST_CREATE_KEY_INFORMATION, REG_POST_OPERATION_INFORMATION and REG_KEY_HANDLE_CLOSE_INFORMATION definitions.

svn path=/branches/header-work/; revision=45756
2010-03-02 14:53:28 +00:00
Amine Khaldi
144f595dde - Move more stuff to wdm.h
- Group some related definitions
- Add missing TRACE_INFORMATION_CLASS members
- Improve REG_NOTIFY_CLASS
- Fix REG_DELETE_KEY_INFORMATION

svn path=/branches/header-work/; revision=45755
2010-03-02 14:32:50 +00:00
Christoph von Wittich
715db25ce6 [MSHTML]
sync mshtml to wine 1.1.39

svn path=/trunk/; revision=45754
2010-03-02 14:08:15 +00:00
Christoph von Wittich
d64433b26d [QUARTZ]
sync quartz to wine 1.1.39

svn path=/trunk/; revision=45753
2010-03-02 11:38:50 +00:00
Christoph von Wittich
746a027977 [QEDIT]
sync qedit to wine 1.1.39

svn path=/trunk/; revision=45752
2010-03-02 11:28:12 +00:00
Amine Khaldi
74f31b099a - Move more stuff to wdm.h
- Fix KBUGCHECK_CALLBACK_REASON
- Add missing KDPC_IMPORTANCE member

svn path=/branches/header-work/; revision=45751
2010-03-01 21:46:34 +00:00
Amine Khaldi
5bf6e1937a - Move more stuff to wdm.h
- Add _PCI_COMMON_HEADER
- Improve _PCI_COMMON_CONFIG
- Enable msc extensions

svn path=/branches/header-work/; revision=45750
2010-03-01 21:24:36 +00:00
Johannes Anderwald
f374476e03 [MSDVBNP]
- Fix crash when instantiating the filter with graphedt

svn path=/trunk/; revision=45749
2010-03-01 20:00:26 +00:00
Johannes Anderwald
97ba4cfa7e [MSDVBNP]
- Implement IEnumMediaTypes interface
- Implement IEnumPins interface
- Partly implement output pin (IPin interface) for the network provider
- Implement CNetworkProvider::GetState, CNetworkProvider::SetSyncSource, CNetworkProvider::GetSyncSource, CNetworkProvider::EnumPins, CNetworkProvider::QueryFilterInfo
- HACK: comment out deletion of object until reference counting has been fixed

svn path=/trunk/; revision=45748
2010-03-01 18:59:42 +00:00
Johannes Anderwald
23aa06ffce [DXSDK]
- Add BDA types

svn path=/trunk/; revision=45747
2010-03-01 18:55:11 +00:00
Johannes Anderwald
04fdf4b562 [BDAPLGIN]
- Implement IBDA_PinControl::GetPinID, IBDA_PinControl::GetPinType
- Comment out enumeration of IBDA_NetworkProvider
[MSDVBNP]
- Start implementing Network Provider for MPEG-2 based Networks
[MSVIDCTL]
- Start implementing ActiveX Control for Streaming Video

svn path=/trunk/; revision=45746
2010-03-01 15:28:28 +00:00
Amine Khaldi
706a8e639a - Move more stuff to wdm.h
- Improve KWAIT_REASON
- Group related definitions

svn path=/branches/header-work/; revision=45745
2010-03-01 14:32:44 +00:00
Amine Khaldi
15be67bafc - Move more stuff to wdm.h
- Add PCI_DISABLE_LEVEL_INTERRUPT, PCI_STATUS_DETECTED_PARITY_ERROR, PCI_SUBCLASS_NET_ISDN_CTLR, PCI_SUBCLASS_BR_RACEWAY and several missing PCI_CLASS_* definitions

svn path=/branches/header-work/; revision=45744
2010-03-01 14:15:43 +00:00
Christoph von Wittich
3970017d64 [MSI]
hackfix ITERATE_SelfRegModules not to hang on error

svn path=/trunk/; revision=45743
2010-03-01 13:53:34 +00:00
Christoph von Wittich
7d4885984e [MSIEXEC]
sync msiexec to wine 1.1.39

svn path=/trunk/; revision=45742
2010-03-01 13:42:52 +00:00
Amine Khaldi
44e57fdff5 - Move more stuff to wdm.h
- Group some related definitions
- Add IO_TYPE_CSQ_EX
- Add some missing _KEY_SET_INFORMATION_CLASS members
- KeyUserFlagsInformation -> KeyWow64FlagsInformation

svn path=/branches/header-work/; revision=45741
2010-03-01 13:26:33 +00:00
Johannes Anderwald
86a010102c [MMIXER]
- Silence warning for Christoph

svn path=/trunk/; revision=45740
2010-03-01 12:08:36 +00:00
Christoph von Wittich
d11c861ed1 [MSI_WINETEST]
sync msi_winetest to wine 1.1.39

svn path=/trunk/; revision=45739
2010-03-01 12:03:29 +00:00
Christoph von Wittich
b7a1c59029 [MSI]
sync msi to wine 1.1.39

svn path=/trunk/; revision=45738
2010-03-01 12:01:30 +00:00
Christoph von Wittich
764beadd15 [MSXML3_WINETEST]
sync msxml3_winetest to wine 1.1.39

svn path=/trunk/; revision=45737
2010-03-01 11:10:21 +00:00
Christoph von Wittich
3aefe22629 [MSXML3]
sync msxml3 to wine 1.1.39

svn path=/trunk/; revision=45736
2010-03-01 11:10:15 +00:00
Johannes Anderwald
993e2a396d [PORTCLS]
- Revert to broken IID_IUnknown definition

svn path=/trunk/; revision=45735
2010-03-01 09:32:35 +00:00
Amine Khaldi
f3ace5a587 - Group some related definitions
- Fix build

svn path=/branches/header-work/; revision=45734
2010-03-01 00:59:20 +00:00
Cameron Gutman
3b5a836e9e - Update to new ACPI driver by Samuel Serapion (and fixes by me)
- Part 2 of 2

svn path=/trunk/; revision=45733
2010-03-01 00:44:33 +00:00
Cameron Gutman
602acabdf9 - Update to new ACPI driver by Samuel Serapion (and fixes by me)
- Part 1 of 2

svn path=/trunk/; revision=45732
2010-03-01 00:16:13 +00:00
Cameron Gutman
e21af25d53 - Send the SCM reply packet with the final status after completing the requested actions
- Fixes the hang during 2nd stage setup

svn path=/trunk/; revision=45731
2010-02-28 18:20:17 +00:00
Cameron Gutman
dc4048eeea - Use the rappmgr.cab located on our server
- Fixes rapps cab download

svn path=/trunk/; revision=45730
2010-02-28 17:24:02 +00:00
Sylvain Petreolle
141b8fafca [RTL]
Use %S for unicode traces.

svn path=/trunk/; revision=45729
2010-02-28 13:18:23 +00:00
Johannes Anderwald
f63c52ccf0 [PSDK]
- Add axextendenums.h header
- Add TVAudioMode enumeration
- Add tuner.idl

svn path=/trunk/; revision=45728
2010-02-28 12:57:59 +00:00
Amine Khaldi
531a7adb72 Fix KSPIN_LOCK_QUEUE_NUMBER
svn path=/branches/header-work/; revision=45727
2010-02-28 12:50:39 +00:00
Amine Khaldi
820ea55592 - Move more stuff to wdm.h
- Add missing SE_* defines
- Fix SE_MAX_WELL_KNOWN_PRIVILEGE define

svn path=/branches/header-work/; revision=45726
2010-02-28 11:43:01 +00:00
Amine Khaldi
e9fc612764 - Move more stuff to wdm.h
- Add several missing FO_* flags

svn path=/branches/header-work/; revision=45725
2010-02-28 10:42:29 +00:00
Amine Khaldi
106dc08bed - Move more stuff to wdm.h
- Add several missing _FILE_INFORMATION_CLASS members
- Add a missing _FSINFOCLASS member

svn path=/branches/header-work/; revision=45724
2010-02-28 10:19:57 +00:00
Amine Khaldi
6bab8c7b64 - Move more stuff to wdm.h
- Add VPB_DIRECT_WRITES_ALLOWED, several missing FILE_CHARACTERISTIC_* and several missing FILE_DEVICE_*
- Fix _DEVICE_RELATION_TYPE
- Improve _DEVICE_OBJECT and _SCATTER_GATHER_LIST

svn path=/branches/header-work/; revision=45723
2010-02-28 09:46:46 +00:00
Kai Tietz
fd0d53d19d Make sure that __int64/long long types in crt don't produce warnings in ISO-C/C++ mode.
svn path=/branches/header-work/; revision=45722
2010-02-28 09:37:57 +00:00
Amine Khaldi
98cde9a0b4 - Move more stuff to wdm.h
- CmResourceTypeMaximum -> CmResourceTypeMemoryLarge
- Add some missing CM_RESOURCE_* defines
- Fix CM_Power_Data_s

svn path=/branches/header-work/; revision=45721
2010-02-28 09:19:00 +00:00
Kai Tietz
b249cfa837 Merge version with mingw-w64 trunk version.
svn path=/branches/header-work/; revision=45720
2010-02-28 09:17:39 +00:00
Kai Tietz
6153abb607 Add __MINGW_EXTENSION to _mingw.h to suppress warnings for unnamed struct/union and the use of 'long long' in ISO C/C++.
svn path=/branches/header-work/; revision=45719
2010-02-28 09:12:16 +00:00
Kai Tietz
520bd868e4 Fix crt definition of TCHAR, ...
svn path=/branches/header-work/; revision=45718
2010-02-28 08:29:07 +00:00
Michael Martin
f22ab97f8e [lib/rtl]
- Replace commented out try block with SEH2. Patch by Samuel Serapion.

svn path=/trunk/; revision=45717
2010-02-28 00:53:59 +00:00
Eric Kohl
398f34f8cb [SERVICES]
- Copy service status only once after a control packet has been sent to a service.
- Send a reply packet to the service manager after a control packet has been sent to a service.

svn path=/trunk/; revision=45716
2010-02-28 00:50:47 +00:00
Eric Kohl
38e5930305 [SERVICES]
- Copy service status only once after a control packet has been sent to a service.
- Send a reply packet to the service manager after a control packet has been sent to a service.

svn path=/trunk/; revision=45715
2010-02-28 00:27:28 +00:00
Eric Kohl
420940d94d Report service status to the service manager.
svn path=/trunk/; revision=45714
2010-02-28 00:14:15 +00:00
Amine Khaldi
1a9142015a - Move more stuff to wdm.h
- Improve _IRP, (_)KSPIN_LOCK_QUEUE_NUMBER, _KDEVICE_QUEUE, _KTIMER and layout some IRP flags.

svn path=/branches/header-work/; revision=45713
2010-02-28 00:00:57 +00:00
Amine Khaldi
b3c8d392e9 Move more stuff to wdm.h fixing what needed to be fixed.
svn path=/branches/header-work/; revision=45712
2010-02-27 22:25:01 +00:00
Eric Kohl
9e6714ef3b [SERVICES]
- Generate unique service status handles. Services could set the status information of another service because the status handles were not guaranteed to be unique for all services.
- Lock and unlock the service database when getting or setting service status information.

svn path=/trunk/; revision=45711
2010-02-27 21:47:59 +00:00
Sylvain Petreolle
763962665e Don't use #pragma once for pch files. Fixes build.
svn path=/trunk/; revision=45710
2010-02-27 19:51:54 +00:00
Amine Khaldi
f2ebc0340a Move more stuff to wdm.h
svn path=/branches/header-work/; revision=45709
2010-02-27 18:55:11 +00:00
Kai Tietz
8099cb0496 Guard IN, OUT, and OPTIONAL by guards to prevent double definition warning.
svn path=/branches/header-work/; revision=45708
2010-02-27 18:34:13 +00:00
Amine Khaldi
27b53c01f0 Move more stuff to wdm.h
svn path=/branches/header-work/; revision=45707
2010-02-27 17:52:27 +00:00
Eric Kohl
d816c7617c Report service status to the service manager.
Patch is partially based on code by Dmitry Gorbachev.

svn path=/trunk/; revision=45706
2010-02-27 17:15:49 +00:00
Amine Khaldi
092583168e - Move more stuff to wdm.h
- FILE_OPEN_FOR_RECOVERY should be FILE_OPEN_REMOTE_INSTANCE

svn path=/branches/header-work/; revision=45705
2010-02-27 16:35:54 +00:00
Amine Khaldi
b2d9b6ba98 Move more stuff to wdm.h
svn path=/branches/header-work/; revision=45704
2010-02-27 16:16:32 +00:00
Amine Khaldi
1394a5a5e7 Move more stuff to wdm.h
svn path=/branches/header-work/; revision=45703
2010-02-27 15:47:38 +00:00
Amine Khaldi
a8e2d9b747 Move GUID comparison macro to wdm.h
svn path=/branches/header-work/; revision=45700
2010-02-27 15:09:59 +00:00
Amine Khaldi
a642218a45 Move alignment macros to wdm.h
svn path=/branches/header-work/; revision=45699
2010-02-27 14:59:20 +00:00
Kai Tietz
a61593425b Guard ANONYMOUS defines by __ANONYMOUS_DEFINED guard to prevent double definitions. Additional synchronize amount of DUMMYSTRUCTNAME defines.
svn path=/branches/header-work/; revision=45698
2010-02-27 14:43:32 +00:00
Amine Khaldi
2a50af3a8e * Disable compiling usermode components for now.
svn path=/branches/header-work/; revision=45697
2010-02-27 14:22:19 +00:00
Kai Tietz
2f0658a0d4 Drop special treating of gcc version < 2.95.
svn path=/branches/header-work/; revision=45696
2010-02-27 14:15:11 +00:00
Kai Tietz
8a7f4a428a Make sure that __int64 is getting prefix by __GCC_EXTENSION to avoid warnings for x64 gcc and the use of long long type in ISO-C/C++.
svn path=/branches/header-work/; revision=45695
2010-02-27 14:01:48 +00:00
Kai Tietz
9d6a449a8f Make sure that unnamed union/struct are prefix by __GCC_EXTENSION.
svn path=/branches/header-work/; revision=45694
2010-02-27 13:53:12 +00:00
Kai Tietz
9c22184e3c Extend unnamed union/struct by __GNU_EXTENSION in wdm.h
svn path=/branches/header-work/; revision=45693
2010-02-27 12:04:42 +00:00
Kai Tietz
05754bfdfe Add __GNU_EXTENSION macro for enabling gcc's extension on demand.
svn path=/branches/header-work/; revision=45692
2010-02-27 10:31:01 +00:00
Timo Kreuzer
9ea495ba33 Create a branch for header work.
svn path=/branches/header-work/; revision=45691
2010-02-26 22:57:55 +00:00
Aleksey Bragin
14fe274b1c [NTDLL]
- LdrpProcessImportDirectoryEntry: Don't try to fixup functions if an import address table is empty. Fixes Panzer General 2. Most of the work of discovering, fixing and testing this problem was performed by Olaf Siejka.

svn path=/trunk/; revision=45690
2010-02-26 22:52:55 +00:00
Aleksey Bragin
83038a06e3 Maarten Kroese
- SHELL_MergeMenus: Don't skip higher IDs if uIDAdjustMax is set to 0xFFFF (according to MSDN).

svn path=/trunk/; revision=45688
2010-02-26 19:09:43 +00:00
Aleksey Bragin
1aed20b05d - Merge Wine-1.1.39 changes to shlmenu.c.
svn path=/trunk/; revision=45687
2010-02-26 18:58:21 +00:00
Colin Finck
aaaa6b759a We don't need "csq.h" twice in our tree.
This ancient version didn't even receive the GCC 4.1 compatibility update from years ago, so it's safe to remove it.

svn path=/trunk/; revision=45686
2010-02-26 15:22:39 +00:00
Ged Murphy
c5b25b8e9b - Move from using include guards to pragma once.
- Whilst this is non-standard and potentially makes the code less portable, it's supported by both gcc and msvc and should bringg increased compilation speed due to its optimized behaviour (doesn't need to invoke the preprocessor)
- Patch by Amine Khaldi [amine.khaldi@reactos.org]

svn path=/trunk/; revision=45685
2010-02-26 11:43:19 +00:00
Johannes Anderwald
e9e9e2bd0e [BDAPLGIN]
- Add macro to enable/disable debug output 
- Query the BaseFilter for the target control pin in order to query for IKsObject interface, which is used to retrieve the real pin handle.
- Pass the NodeId to constructors of IBDA_FrequencyFilter, IBDA_SignalStatistics, IBDA_LNBInfo, IBDA_DigitalDemodulator
- Implement IBDA_DigitalDemodulator::put_ModulationType, IBDA_DigitalDemodulator::put_InnerFECMethod, IBDADigitalDemodulator::put_InnerFECRate, IBDADigitalDemodulator::put_OuterFECMethod, IBDADigitalDemodulator::put_OuterFECRate, IBDADigitalDemodulator::put_SymbolRate, IBDADigitalDemodulator::put_SpectralInversion
- Implement IBDAFrequencyFilter::put_Frequency, IBDAFrequencyFilter::put_Polarity, IBDAFrequencyFilter::put_Range, IBDAFrequencyFilter::put_Bandwidth, IBDAFrequencyFilter::put_FrequencyMultiplier
- Implement IBDALNBInfo::put_LocalOscilatorFrequencyLowBand, IBDALNBInfo::put_LocalOscilatorFrequencyHighBand, IBDALNBInfo::put_HighLowSwitchFrequency
- Implement IBDASignalStatistics::get_SignalStrength, IBDASignalStatistics::get_SignalQuality, IBDASignalStatistics::get_SignalPresent, IBDASignalStatistics::get_SignalLocked, IBDASignalStatistics::put_SampleTime, IBDASignalStatistics::get_SampleTime
- Implement IBDA_DeviceControl::StartChanges, IBDA_DeviceControl::CheckChanges, IBDA_DeviceControl::CommitChanges, IBDA_DeviceControl::GetChangeState
- IBDA_DeviceControl interface now works with SageDvbRecorder(Windows XP SP3)

svn path=/trunk/; revision=45684
2010-02-26 01:53:48 +00:00
Timo Kreuzer
b69e24713a [HAL]
- Replace the inline assembly for entering V86 and the actual V86 stub with real assembly. This is neccesary for compiler portability. Also creating 16 bit V86 assembly using 32 bit inline assembly is rather hackish.

svn path=/trunk/; revision=45683
2010-02-26 00:07:22 +00:00
Johannes Anderwald
d58b589596 [PSDK]
- Add KSPROPERTY_BDA_FREQUENCY_FILTER, KSPROPERTY_BDA_DIGITAL_DEMODULATOR, KSPROPERTY_BDA_LNB_INFO, KSPROPERTY_BDA_SIGNAL_STATS properties for BDAPLGIN

svn path=/trunk/; revision=45682
2010-02-25 22:31:02 +00:00
Johannes Anderwald
2896cc1cf3 [BDAPLGIN]
- Simply construction of CBDAFrequencyFilter, CBDALNBInfo, CBDASignalStatistics
- Find IBDA_NetworkProvider in filter graph
- Check for IBaseFilter interface when constructing the CBDADeviceControl object

svn path=/trunk/; revision=45681
2010-02-25 16:14:54 +00:00
Johannes Anderwald
04cd460d80 [BDAPLGIN]
- Implement IBDA_Topology::GetNodeTypes, IBDA_Topology::GetNodeDescriptors, IBDA_Topology::GetNodeInterfaces, IBDA_Topology::GetPinTypes, IBDA_Topology::CreateTopology, IBDA_Topology::GetControlNode
- Implement stub interfaces for control node, IBDA_DigitalDemodulator, IBDA_FrequencyFilter, IBDA_LNBInfo, IBDA_SignalStatistics

svn path=/trunk/; revision=45680
2010-02-24 18:37:07 +00:00
Johannes Anderwald
97adef8cb9 [BDAPLGIN]
- Try fix build
- Sorry folks

svn path=/trunk/; revision=45679
2010-02-23 21:28:51 +00:00
Johannes Anderwald
f4ef4493d0 [DXSDK]
- Add BDA Change Sync Method Set
[BDAPLGIN]
- Add "BDA Device Control Plug-in for MPEG2 based networks" stub

svn path=/trunk/; revision=45677
2010-02-23 17:40:34 +00:00
Johannes Anderwald
07e5b173eb [DDK]
- Fix IID_IUnknown definition 3/X

svn path=/trunk/; revision=45676
2010-02-23 17:25:46 +00:00
Johannes Anderwald
10544bcd64 [KSPROXY]
- Fix IID_IUnknown definition 3/X

svn path=/trunk/; revision=45675
2010-02-23 17:19:45 +00:00
Johannes Anderwald
e9e38d03e3 [KS]
- Fix IID_IUnknown definition 2/X

svn path=/trunk/; revision=45674
2010-02-23 17:18:07 +00:00
Johannes Anderwald
3028423932 [PORTCLS]
- Fix IID_IUnknown definition 1/X

svn path=/trunk/; revision=45673
2010-02-23 17:16:56 +00:00
Ged Murphy
09c19796c9 remove unused library
svn path=/trunk/; revision=45672
2010-02-23 16:00:02 +00:00
James Tabor
2afc207a55 [Win32k]
- If dc is window owned and not class owned do not set class if null pdce. Added debug prints to locate reentrancy issues due to a race condition.
- Add more checks to find dead windows.

svn path=/trunk/; revision=45671
2010-02-23 15:42:08 +00:00
James Tabor
e09b719f49 [User32]
- Remove 16 bit'isms. Added back removed code and commented it out with added notes.
- Jason Edmeades : Combo should preselect all text on first WM_SETFOCUS.
- Kusanagi Kouichi : Consolidate empty string.
- Alexandre Julliard : Don' t forward WM_SETCURSOR to the desktop window. Modified.
- Dmitry Timoshkov : In a DLGTEMPLATEEX resource dialog version goes before signature.
- Due to truck freeze, there might have slipped in miscellaneous patches.

svn path=/trunk/; revision=45670
2010-02-23 15:28:45 +00:00
Johannes Anderwald
9a8b7304ea [KSPROXY]
- Fix file headers for Christoph
- Add debug spam
- IsEqualIID uses REFIID

svn path=/trunk/; revision=45669
2010-02-23 15:25:59 +00:00
Michael Martin
04c5c8fb69 [usb/usbehci]
- Add back WorkItem code but use it for calling the hub drivers callback routine (telling hub driver it needs check port status).
- Add missing break for case URB_FUNCTION_GET_STATUS_FROM_DEVICE.
- RootHubInitNotification: BusContext is the Device Object not the Device Objects Extensions.
- UsbEhci now receives URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER IN requests,
 which is where we want to be for informing hub driver which port a device has been connected.

svn path=/trunk/; revision=45668
2010-02-23 11:20:15 +00:00
James Tabor
713671e519 [Win32k|Gdi32]
- Fix GdiBatch, the limit is for user space not system. Revert 45659.

svn path=/trunk/; revision=45667
2010-02-23 04:18:24 +00:00
James Tabor
478e25e9c8 [Win32k]
- Fix the new GetClipRgn clipping wine test for EqualRgn and clip region note.

svn path=/trunk/; revision=45666
2010-02-23 03:17:37 +00:00
James Tabor
b86b56905f [User32]
- ReactOS uses DCX_KEEPCLIPRGN to prevent the deletion of regions so user support can manage them. Comctl32 depends on this since it does not delete the regions after calling DefWindowProc.

svn path=/trunk/; revision=45665
2010-02-23 03:14:09 +00:00
James Tabor
1441c052a2 [Win32k]
- Properly assign error code when a real status error occurred.
- Free the non user event container for WaitForInputIdle.

svn path=/trunk/; revision=45664
2010-02-23 03:08:16 +00:00
Eric Kohl
b37ba9e7e6 Split the initial status code for drivers and services.
You can easily test services by uncommenting '#define USE_SERVICE_STATUS_PENDING'.

svn path=/trunk/; revision=45663
2010-02-22 23:17:03 +00:00
Colin Finck
606504c918 Put Vizzini's "csq.h" in the Public Domain with permission from the author:
<sedwards>    I talked to vizini
<sedwards>    it's public domain
<sedwards>    do what you will
<sedwards>    slap your name on it
<sedwards>    and submit it
<Colin_Finck> I can just do a commit to put it under PD now and everything will be alright?
<sedwards>    yes, the author who wishes to remain anonymous is quite fine with that

svn path=/trunk/; revision=45662
2010-02-22 22:00:00 +00:00
Dmitry Gorbachev
41e49f062c Clean up RPCSS.
svn path=/trunk/; revision=45661
2010-02-22 21:36:07 +00:00
Christoph von Wittich
3d06ca1682 fix build
svn path=/trunk/; revision=45660
2010-02-22 19:49:58 +00:00
Timo Kreuzer
0500f8535d [GDI32]
- Quickfix the region leak, by commenting out the user mode part in DeleteRegion. Thanks to Caemyr for finding the guilty revision.

svn path=/trunk/; revision=45659
2010-02-22 19:27:35 +00:00
Eric Kohl
a634cc3aa5 Revert remaining parts of patches 45626 and 45633.
svn path=/trunk/; revision=45658
2010-02-22 19:26:54 +00:00
Johannes Anderwald
5254d0720d [PSDK]
- Add BDA interfaces

svn path=/trunk/; revision=45657
2010-02-22 19:03:09 +00:00
Eric Kohl
1f5ef200f3 Reenable critical debug messages.
svn path=/trunk/; revision=45656
2010-02-22 18:56:51 +00:00
Aleksey Bragin
03e2179298 [NTOS]: Enable high/low memory events notifications.
svn path=/trunk/; revision=45655
2010-02-22 16:44:13 +00:00
Aleksey Bragin
e843ac6cde [NTOS]: Temporarily disable last part of MiInsertZeroListAtBack which seems to cause issues in the 1st stage.
svn path=/trunk/; revision=45654
2010-02-22 13:39:30 +00:00
Aleksey Bragin
8ab9b6b233 - Buildbot defibrillation attempt 2/2.
svn path=/trunk/; revision=45653
2010-02-21 22:38:08 +00:00
Aleksey Bragin
e2d2bf1c73 - Buildbot defibrillation attempt 1/2 (proposed by Colin).
svn path=/trunk/; revision=45652
2010-02-21 22:26:07 +00:00
James Tabor
eda3a3cf5b - Add patch back after sync with force.
svn path=/trunk/; revision=45650
2010-02-21 12:47:07 +00:00
James Tabor
3cb2ec9044 - Add patch back after sync.
svn path=/trunk/; revision=45649
2010-02-21 12:35:18 +00:00
Colin Finck
438e9f0fde Use the most probable cabman and rapps path to get this batch file to work for most people.
svn path=/trunk/; revision=45648
2010-02-21 12:03:45 +00:00
Michael Martin
c12f915d85 [usb/usbehci]
- Add missing break's in CompletePendingURBRequest that caused crashes.- Add some debugging for Urb Function URB_FUNCTION_CLASS_OTHER.
- Implement IOCTL_INTERNAL_USB_GET_HUB_COUNT returning only 0 Hubs for now.
- Implement RootHubInitNotification.
- Misc cleanup.


svn path=/trunk/; revision=45647
2010-02-21 11:34:54 +00:00
Sir Richard
4556434fc8 [NTOS]: Insert pages into zero list with specific MiInsertZeroListAtBack function instead of generic MiInsertInTailList. Allows us to handle insertion into colored page lists (not yet used) correctly, as well as update the page location to ZeroedPageList automatically (so don't let the callers do this anymore). Also handle memory threshold accounting.
svn path=/trunk/; revision=45645
2010-02-21 03:52:22 +00:00
James Tabor
d1b13d0054 - Add patch back after sync.
svn path=/trunk/; revision=45644
2010-02-21 03:18:19 +00:00
James Tabor
13150d138f - Sync to wine release 1.1.39.
svn path=/trunk/; revision=45643
2010-02-21 03:11:32 +00:00
James Tabor
ee963f5cdc - Sync to wine release 1.1.39.
svn path=/trunk/; revision=45642
2010-02-21 03:00:07 +00:00
Sir Richard
662fe5030b [NTOS]: Use system PTEs for drivers, both boot drivers and system-loaded drivers. This removes the last user of the deprecated MmAllocateSection internal API. Another side-effect is that drivers will now have much higher load addresses (in the 0xF0000000 and higher range), as you would expect on Windows, plus increasing coverage and usage of system PTEs (which can still be optimized).
[NTOS]: Do not "copy" boot drivers from one set of pages to another set of pages. Instead, use system PTEs to map the boot drivers to a new VA, and set the PFNs to the original PFNs that the loader had obtained (and don't free that memory). This avoids some overhead.
[NTOS]: Now the only user of MmMapMemoryArea is the caching code, which I won't touch.

svn path=/trunk/; revision=45641
2010-02-21 02:13:20 +00:00
Eric Kohl
2445098aef Partially revert patches 45626 and 45633.
Several services do not report their status to the service manager properly. Therefore we must not use any code that relies on service status information as part of the setup and boot processes as long as these issues have not been fixed. The service manager still needs to provide fake information about the service status.

svn path=/trunk/; revision=45640
2010-02-20 23:10:53 +00:00
Aleksey Bragin
3d83b18cf3 - Don't prepend fastcall forward's target with @. Fixes binding issues in videoprt, thanks to Olaf Siejka for identifying the issue.
svn path=/trunk/; revision=45639
2010-02-20 22:53:11 +00:00
Sir Richard
23323a7250 [NTOS]: Make MM init read MmProductType to determine what SKU of ReactOS this is, instead of assuming Server. If you want to go back to the old behavior, you need to change "WinNT" to "ServerNT" in the hivesys under Product Type.
[NTOS]: Configure the MmSystemSize variable properly based on SKU and RAM. Previously, ReactOS told all drivers and applications you were running on a system with < 13MB RAM.
[NTOS]: Initialize thresholds for low and high memory (in pages), low and high paged pool memory, and low and high nonpaged pool memory. These are described in the source.
[NTOS]: Initialize events for each of those thresholds, and populate the \KernelObject\xxxCondition events that are documented in MSDN for driver and app developers.
[NTOS]: Define some internal thresholds to use later, representing the minimum number of free pages under we go berserk, and the minimum number of free pages that we consider "plenty".
[NTOS]: Rename MiRemoveFromList to MiUnlinkFreeOrZeroedPage (Windows name). Make the function handle MmAvailablePages decrement, instead of having the caller do it.
[NTOS]: Remove run-time initialization of the PFN lists, just initialize them statically (also fixes the fact we forgot to initialize their names).
[NTOS]: Move some more initialization code to ARM3 instead of mm.
[NTOS]: Read ProductType from registry into MmProductType instead of dummy value. Remove duplicate "Mirroring" variable read.

svn path=/trunk/; revision=45638
2010-02-20 21:48:36 +00:00
Eric Kohl
697374c8e1 [SERVICES]
Disable a number of debug messages in the service manager.

svn path=/trunk/; revision=45637
2010-02-20 20:52:14 +00:00
Eric Kohl
c6d4485959 [ADVAPI32]
Silence a lot of non-critical service manager error messages (ERR->TRACE).

svn path=/trunk/; revision=45636
2010-02-20 16:33:28 +00:00
Sir Richard
60f00192eb [NTOS]: Remove SwapEntry parameter from MmAllocPage since it was always zero.
[NTOS]: Store SwapEntry as WsIndex. We can do this now since Flink is only used when the page is in a list (meaning it's not active, ie. free or zero), and non-active pages don't have a swap entry.

svn path=/trunk/; revision=45635
2010-02-20 14:47:23 +00:00
Sir Richard
6118ff6a3c [NTOS]: Manage the PFN lists using the correct Flink/Blink semantics of the MMPFN structure, instead of typecasting a LIST_ENTRY on top of Flink and PteAddress. This allows PteAddress to be used now, and minimizes the number of differences between MMPFN and the ReactOS PHYSICAL_PAGE.
[NTOS]: Zero pages starting at the head of the free list, insert them at the back.
[NTOS]: Add MiInsertPageInFreeList to build the colored lists (not yet used) in the ARM3 PFN database.
[NTOS]: Rename the ReactOS PFN lists for free/zero to their real names as used in Windows.

svn path=/trunk/; revision=45634
2010-02-20 14:40:21 +00:00
Eric Kohl
ad0ec3b76b [SERVICES] When autostart services are up, signal an event.
[SYSSETUP] Wait until all autostart services are up. Bug #4194.

Patches by Dmitry Gorbachev.
See issue #4142 for more details.

svn path=/trunk/; revision=45633
2010-02-20 13:04:56 +00:00
Eric Kohl
8ab0f28658 Make EventLog and Spooler services report their status to the SCM.
svn path=/trunk/; revision=45632
2010-02-20 12:59:53 +00:00
Daniel Reimer
90ce7d8b37 XML Compliance Patch for the RBUILD Files. By Samuel Serapion
svn path=/trunk/; revision=45631
2010-02-20 12:41:24 +00:00
Sir Richard
3bdd2efbc3 [NTOS]: Disable support for global pages since it does not seem to work right on real hardware. Additionally, the code had been previously enabling global pages before the variable determining the support for such pages was even enabled, causing non-global pages to be used initially, followed later by global pages once the variable had been setup. To fix this mess, remove all global page support for now. Fixes booting on certain real hardware (or fixes other random memory corruptions).
Thanks to Caemyr.

svn path=/trunk/; revision=45627
2010-02-19 22:43:34 +00:00
Eric Kohl
69a020df26 [SERVICES] Set default status to SERVICE_START_PENDING when starting a service.
[SYSSETUP] Wait until PlugPlay service is up. Bug #4142.
[UMPNPMGR] Update the service control manager's status information.

Patches by Dmitry Gorbachev.

svn path=/trunk/; revision=45626
2010-02-19 20:03:11 +00:00
Sir Richard
84f7b6a683 [NTOS]: Fix premature setting of the page location of a newly allocated MDL page. Because the zeroing of non-zeroed pages is done after the initial page allocation loop (and by checking which list the page was on), setting the page location as ActiveAndValid made the zero loop believe the page was unzeroed (even though it could've come from the zeroed list), causing a superflous second zero operation.
svn path=/trunk/; revision=45625
2010-02-19 18:29:29 +00:00
Sir Richard
8f421a2ad0 [NTOS]: Fix a logic error which could cause pages on the free list which failed to be zeroed out due to running out of hyperspace mappings to appear as being on the zero page list even though they were inserted back on the free page list.
svn path=/trunk/; revision=45624
2010-02-19 18:25:29 +00:00
Sir Richard
0eb260e7ea [NTOS]: Fix an off-by-! error which caused MDL page allocation to use used pages instead of free pages.
svn path=/trunk/; revision=45623
2010-02-19 18:23:07 +00:00
Sir Richard
6bde649d94 [NTOS]: It seems the code to release a page was not properly removing a page from the working set bitmap/list in one scenario, so I added the call here too.
svn path=/trunk/; revision=45622
2010-02-19 17:55:22 +00:00
Sir Richard
d68a820d81 [NTOS]: Fix an off-by-one-error which incorrectly causes GUI promotion to fail if the first GUI call is "0", since the limit on the GUI descriptor table will also be "0". We should check if the limit is equal to or lower, not just if it's lower.
Thanks to Physicus and Fireball for reporting and working this out. Should fix the "ArwinSS" problem.

svn path=/trunk/; revision=45621
2010-02-19 17:54:16 +00:00
Sir Richard
de9a1c0bd4 [NTOS]: Fix off-by-one error in MDL locking which caused the last PFN not to be referenced if it was part of a locked MDL, because it was assumed to be "higher than the last PFN". This further caused the entire MDL to be incorrectly treated as an I/O space mapping. Later, when unlocked, the last PFN's reference count would drop to 0, and the virtual memory range that had been locked would now be using a freed page, that would get re-used later. Noticed this bug because my WC changes allocation strategies to increase the chance of pages at the end to be used, ans the last PFN was being used a lot due to this.
svn path=/trunk/; revision=45620
2010-02-19 17:45:10 +00:00
Cameron Gutman
b05284ba36 [NTOSKRNL]
- Update boot logo copyright year
 - Patch by Gabriel Ilardi

svn path=/trunk/; revision=45619
2010-02-19 10:30:01 +00:00
Cameron Gutman
8679825696 [NTOSKRNL]
- Put back the boot logo from the old bootvid
 - Rewrite the old broken progress bar code and enable the progress bar
 - The progress bar works now :)
 - NOTE: Someone should fix the copyright year on the boot logo

svn path=/trunk/; revision=45618
2010-02-19 03:16:04 +00:00
Sir Richard
320d8bf5c9 [NTOS]: Stop storing the consumer in the PFN, as this value is never actually checked. Clears up yet another misuse of the "real" PFN structure.
svn path=/trunk/; revision=45617
2010-02-19 01:58:48 +00:00
Sir Richard
37aa114310 [NTOS]: Instead of having an LRU linked list of working set pages, we instead have a bitmap.
Advantage: Pages are only in a linked list when they are NOT active (free/zeroed, for now). This makes the LIST_ENTRY fields usable when a page is active, so we can store data in there. This will make it easier to sync our PFN format with Windows.
    Advantage: It's a lot faster to set/clear bits than to do list operations (both still O1 though). Scanning for the bit is a bit slower than parsing a list, on the other hand, so it's a toss.
    Disadvantage: We lose LRU, which in theory makes us cannibalize working sets randomly instead of by-usage. However, considering the speed of ReactOS paging, and the effects of canabalizing the WS in the first place, I doubt this is really a problem.
The main point of this is advantage #1 -- making used pages not be on any lists. This will allow us to almost 100% sync the PFN layouts, which will lead to the eventual negation of any temporary disavantages.

svn path=/trunk/; revision=45616
2010-02-19 00:46:35 +00:00
Dmitry Gorbachev
1337cbf945 [NTOSKRNL] KiConvertToGuiThread() "accesses memory in an unpredictable fashion".
svn path=/trunk/; revision=45615
2010-02-18 23:25:12 +00:00
Dmitry Gorbachev
3d50158647 [BOOTVID] Initialize VgaAddress.HighPart
svn path=/trunk/; revision=45614
2010-02-18 23:25:05 +00:00
Eric Kohl
1d99f1321b [DEVMGR]
Display some more device properties.

svn path=/trunk/; revision=45613
2010-02-18 20:18:24 +00:00
Sir Richard
19e144b8b3 [NTOS]: Fix build, my bad (missing file).
svn path=/trunk/; revision=45612
2010-02-18 17:13:37 +00:00
Sir Richard
de3d0b9d0c Patch by Daniel Zimmermann <netzimme@aim.com>:
[DDK]: Add PCI_ADDRESS_MEMORY_SPACE.
[HAL]: Use it in HalpAssignPCISlotResources.

svn path=/trunk/; revision=45611
2010-02-18 17:00:09 +00:00
Sir Richard
be43595873 [NTOS]: Build the actual ARM3 PFN database.
svn path=/trunk/; revision=45610
2010-02-18 16:56:54 +00:00
Sir Richard
da398fe2c4 [NTOS]: Remove unused code.
svn path=/trunk/; revision=45609
2010-02-18 16:50:55 +00:00
Johannes Anderwald
774ed64bf2 [KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject

svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
Johannes Anderwald
aeb669a3de [PSDK]
- KSM_PIN is defined in bdasup.h not bdatypes.h
- Add IReferenceClockTimerControl, IAMDeviceRemoval. IDistributorNotify, IAMClockAdjust, IAMStreamControl, IDeferredCommand interface
- Add AM_STREAM_INFO_FLAGS, AM_STREAM_INFO struct
- Modify VMRGUID struct so that gnu compilers can digest it too
- Remove useless KSINTERFACESETID_Standard define from ks.h
- Define LOCALE_INVARIANT macro


svn path=/trunk/; revision=45607
2010-02-18 15:04:54 +00:00
Cameron Gutman
3874d4ff4e - Fix incorrect sector size detection which caused seeking to fail when booting from a floppy
- FreeLoader can load from a floppy disk now

svn path=/trunk/; revision=45602
2010-02-16 20:32:58 +00:00
Timo Kreuzer
690fd6eb6d [NTOS] Allocate the trap frame on the stack by decreasing esp before modifying any members.
While doing it after is a tiny optimization (no need to wait for esp to be ready) and would work with all real traps (which clear cli), it doesn't work with Zw calls that directly call KiSystemService with interrupts enabled. This caused random trap frame corruption when an interrupt fired after members of the trap frame have been set but before esp was adjusted. Should hopefully fix most random failures on real hardware and qemu.

svn path=/trunk/; revision=45598
2010-02-15 20:16:15 +00:00
Samuel Serapion
b0222f605b forgot this file
svn path=/branches/ros-amd64-bringup/; revision=45597
2010-02-15 16:23:55 +00:00
Samuel Serapion
27d9c840b8 Reduce diferences with trunk.
svn path=/branches/ros-amd64-bringup/; revision=45596
2010-02-15 06:14:17 +00:00
Samuel Serapion
4aaa2220cc Sync tools to 45592
svn path=/branches/ros-amd64-bringup/; revision=45595
2010-02-15 06:02:48 +00:00
Timo Kreuzer
a7994c98a5 [NTOS] Push vector as error code on the stack in KiUnexpectedInterrupt* instead of putting it into eax, because we must not clobber it. Spotted by jcatena.
svn path=/trunk/; revision=45590
2010-02-13 02:01:33 +00:00
Johannes Anderwald
1ce3458da7 [PSDK]
- Work on ksproxy.h, WIP

svn path=/trunk/; revision=45586
2010-02-12 13:46:53 +00:00
Johannes Anderwald
ff9fdc8259 [PORTCLS]
- Reset play position when an audio stream is stopped
-- Fixes playback in looped mode (DirectSound) when a buffer is played&stopped more than once

svn path=/trunk/; revision=45585
2010-02-12 10:12:46 +00:00
Johannes Anderwald
5974fe1781 [DSOUND_NEW]
- Setup a default format for the primary sound buffer
- Store last used write position and use it when checking current position
- Check if the buffer has already started to play
- Fill audio buffer with silence bytes when initializing the secondary sound buffer
-- Partialy makes graphedit work when building a simple render graph(FileAsync->WaveParser->AudioRenderer). 

svn path=/trunk/; revision=45584
2010-02-12 09:54:56 +00:00
Christoph von Wittich
082d9c9fe7 [MSDMO]
sync msdmo with wine 1.1.38

svn path=/trunk/; revision=45583
2010-02-12 09:20:35 +00:00
Johannes Anderwald
dd15553124 [MMIXER, WDMAUD_KERNEL]
- Implement retrieving device path

svn path=/trunk/; revision=45582
2010-02-12 06:18:31 +00:00
Johannes Anderwald
97db4c1d16 - Revert 44564
svn path=/trunk/; revision=45580
2010-02-11 21:19:35 +00:00
Johannes Anderwald
a19cbab2fc [WDMAUD_KERNEL]
- Replace mixer / wave support code by mmixer library
[MMIXER]
- Compare device name from 2 character onwards as there are difference in paths in user mode / kernel mode
- Invoke create pin callback if the caller provides it
[WDMAUD.DRV]
- Apply changes from mmixer library

-- Tested in Vbox with Winamp / ReactOS mplay32

svn path=/trunk/; revision=45579
2010-02-11 21:04:57 +00:00
Eric Kohl
bfa7d233cd [DEVMGR]
Display Matching Device ID.

svn path=/trunk/; revision=45578
2010-02-11 20:23:48 +00:00
Sir Richard
7872be6071 [NTOS]: Remove many hacks in freelist.c regarding the differences between PHYSICAL_PAGE and MMPFN. ReferenceCount field is now accessed directly. LockCount is gone. Type is gone: if a page is used, it has a consumer and is in the ActiveAndValid state, if it's free, it's on the free or zero page list. Get rid of Zero, if a page is zeroed, it is on the zero page list.
[NTOS]: These changes will allow a smoother migration to MMPFN later on.

svn path=/trunk/; revision=45577
2010-02-11 18:44:28 +00:00
Sir Richard
27494e478b [NTOS]: Get rid of page locking mechanism for MDL since I can't see a reason this would make sense, since these pages won't be scheduled for page out anyway, and that is the only code that looked at this value.
svn path=/trunk/; revision=45576
2010-02-11 18:41:45 +00:00
Sir Richard
2cd1a22f66 [NTOS]: Remove bogus assertion.
svn path=/trunk/; revision=45575
2010-02-11 18:33:52 +00:00
Sir Richard
a2fa6b804c [NTOS]: Fix broken MI_PFNENTRY_TO_PFN macro.
svn path=/trunk/; revision=45574
2010-02-11 18:31:54 +00:00
Timo Kreuzer
43108b2dd0 [HAL]
Restore fs in HalpTrap06. Should fix crash on 1st stage with VBox.

svn path=/trunk/; revision=45573
2010-02-11 17:36:57 +00:00
Sir Richard
6adba76502 [NTOS]: Fix a stupid bug: x86 has 1024 PDEs, and ARM has 4096 PDEs, not the other way around.
[NTOS]: Map the ARM3 PFN database as well, now.
[NTOS]: Start initializing the ARM3 PFN database entries, right now for pages that have been mapped directly through PTE/PDE manipulation.

svn path=/trunk/; revision=45569
2010-02-11 09:15:50 +00:00
Cameron Gutman
aa9a3648eb - Fix floppy controller detection
- Simplify waiting in Get_Byte and Send_Byte
 - See issue #4391 for details

svn path=/trunk/; revision=45568
2010-02-11 02:22:34 +00:00
Sir Richard
c7f7e3bac7 [NTOS]: Move more functions from the i386 ARM3 directory to the portable/shared directory, since they apply to all architectures.
[NTOS]: Refactor the mapping of the PTEs for the PFN database into MiMapPfnDatabase and move the code to portable directory.
[NTOS]: Move and refactor some other definitions, and make some numbers more portable by defining arch-specific subvalues.
[NTOS]: Make the PFN database actually 2 PFN Databases: MmPfnDatabase[0] which is the ReactOS mapping of PHYSICAL_PAGE structures, and MmPfnDatabase[1] which will be the ARM3 mapping of MMPFN structures. The latter is as-of-yet unused, but memory for it is now being reserved.

svn path=/trunk/; revision=45566
2010-02-11 00:01:32 +00:00
Timo Kreuzer
dd6b443e89 [REACTOS] Add asm.h containing macros to make assembly code both GAS and ML compatible at the same time.
[NTOS/HAL] Move trap entry points from C into a GAS/ML compatile assembly file (might need fine tuning for ML). The entries are generated by a shared assembly macro TRAP_ENTRY. Removed KiTrapStub, KiIsV8086TrapSafe, KiIsUserTrapSafe, KiSetSaneSegments, removed segment handling from KiEnter*Trap.
[NTOS] Make KiFastCallEntryHandler and KiSystemServiceHandler FASTCALL and pass the systemcall number in TrapFrame->Eax
[HAL] Use _setjmp/longjmp instead of saving a trapframe in HalpBiosCall

svn path=/trunk/; revision=45565
2010-02-10 23:24:59 +00:00
Giannis Adamopoulos
de233c67ef [rbuild]
- Major improvements in the msvc backend
- Create a .vsprops file for every configuration in the root folder. This lets us make vcproj files a lot smaller
- When building with our headers actually use all of our headers and not a mix of our sdks and the headers of the crt that comes with msvc
- Add a rule to build .s files based on the idea by jcatena
- Add a rule for .spec and .pspec files. pspec doesn't work well yet
- Various fixes
- Please note the the above are aplied only to the vcproj files and not to the vcxrpoj files

The above let us compile large parts of trunk with the generated visual studio projects

svn path=/trunk/; revision=45564
2010-02-10 21:55:51 +00:00
Sylvain Petreolle
0903c90702 Add french translations for location overrides.
svn path=/trunk/; revision=45563
2010-02-10 20:11:13 +00:00
Christoph von Wittich
1d7c77f2a7 partially revert changes from 45560
svn path=/trunk/; revision=45562
2010-02-10 19:56:27 +00:00
Daniel Reimer
1a83ffb12e Experimental try to get Itunes Setup start. By Samuel Serapion
svn path=/trunk/; revision=45561
2010-02-10 19:50:30 +00:00
Eric Kohl
350a658937 Add device location information override PS/2 keyboards.
Please translate the location override string.

svn path=/trunk/; revision=45560
2010-02-10 19:35:13 +00:00
Daniel Reimer
35ebed7670 Update Rapps Links and add the two RosBE Addons.
svn path=/trunk/; revision=45559
2010-02-10 19:33:10 +00:00
Sir Richard
88d67c0d34 [NTOS]: Allocate and initialize color tables based on MmSecondaryColors (MiInitializeColorTables).
[NTOS]: These come after the PFN database, so modify the MmPfnAllocation to account for them.

svn path=/trunk/; revision=45558
2010-02-10 18:44:30 +00:00
Sir Richard
1711020a43 [NTOS]: Factor out SecondaryColor computations into MiComputeColorInformation.
[NTOS]: Fix SecondaryColor computations. If the KPCR has no deta, use the default colors of 8, not just 1. Also handle cases where there is more L2 cache than we'd like -- set the secondary colors to a maximum of 1024 in that case. Finally, if the colors are not a power of two, or there are not enough (due to a registry setting), use the default of 8.

svn path=/trunk/; revision=45557
2010-02-10 18:10:04 +00:00
Sir Richard
4e061e178b [NTOS]: MxGetNextPage is not platform-specific, so share it.
[NTOS]: Factor out computations of NP sizes and limits into MiComputeNonPagedPoolVa.
[NTOS]: Fix NP size/limit calculations to use the amount of FREE RAM, not the amount of INSTALLED RAM.
[NTOS]: Use Windows 2003's algorithm for NP size on machines with more than 512MB of FREE RAM.
[NTOS]: Partly handle the case of machines with NP over 128MB.

svn path=/trunk/; revision=45556
2010-02-10 17:42:07 +00:00
Dmitry Gorbachev
b7b948cff5 Do not crash, use valid kernel PTE.
svn path=/trunk/; revision=45555
2010-02-10 13:56:54 +00:00
Michael Martin
3c1ec16123 [usb/usbehci]
- Remove WorkItem code as its not needed. UsbHub driver polls the hubs for device connects.
- Register USB Host Controller Device Interface during AddDevice.- Implement more URB's USB_DEVICE_DESCRIPTOR_TYPE, USB_CONFIGURATION_DESCRIPTOR_TYPE, URB_FUNCTION_SELECT_CONFIGURATION, URB_FUNCTION_CLASS_DEVICE/USB_DEVICE_CLASS_HUB.
- Implement returning generic UsbdDeviceHandle in URB struct.

svn path=/trunk/; revision=45554
2010-02-10 12:38:18 +00:00
Christoph von Wittich
a884062bc9 [usb/usbehci]
fix typo

svn path=/trunk/; revision=45553
2010-02-10 12:25:35 +00:00
Michael Martin
b028cb1e4e [usb/usbehci]
- Define Device and Configuration Descriptors for RootHub20.
- Queue all USB_SUBMIT_URBs and create a separate thread to handle them.
- For PNP START_DEVICE, Create the internal RootHub usb device and register usb hub device interface.
- Fill in direct call interface for USB_BUS_INTERFACE_USBDI_V2 and USB_BUS_INTERFACE_HUB_V5.
- Implement Direct Call Interface function GetExtendedHubInformation.
- Remove duplicate structures that are already defined in USB Headers. Some reorganization.

svn path=/trunk/; revision=45552
2010-02-10 12:21:23 +00:00
Dmitry Gorbachev
909e0c1b43 Update log2lines to ver. 2.1. Jan Roeloffzen, bug #4342.
svn path=/trunk/; revision=45551
2010-02-10 12:10:23 +00:00
Ged Murphy
9709c3dfb9 Found a leak fix patch from years ago
svn path=/trunk/; revision=45550
2010-02-10 08:24:34 +00:00
Sir Richard
8e0c1b2fb4 [NTOS]: Actually use calculated kernel stack size value.
[NTOS]: Define the template PTE/PDE statically, instead of doing it in code. It's faster, and saves us the trouble of not being able to use the template from point 0. Move the template setup into ARM3 instead of page.c.

svn path=/trunk/; revision=45549
2010-02-10 04:12:23 +00:00
Sir Richard
9f67c34652 [NTOS]: Allow registry configuration of large kernel stack size, with proper checks.
svn path=/trunk/; revision=45548
2010-02-10 03:59:17 +00:00
Sir Richard
3caee550bc [NTOS]: Combine ARM3 phase 0 and 1 even it means calling back into TurdMM for one function call.
[NTOS]: Separate out platform-specific parts of ARM3 initialization instead of having everything in an arch-specific file.
No functional code changes.

svn path=/trunk/; revision=45547
2010-02-10 02:00:56 +00:00
Cameron Gutman
f11ee9cfaf - Merge r45531 and r45545 from aicom-network-branch
svn path=/trunk/; revision=45546
2010-02-10 00:55:58 +00:00
Cameron Gutman
22e3000143 - Fix comments related to r45531
svn path=/branches/aicom-network-branch/; revision=45545
2010-02-10 00:53:03 +00:00
Cameron Gutman
e4a060ead4 - Merge from trunk up to r45543
svn path=/branches/aicom-network-branch/; revision=45544
2010-02-10 00:42:46 +00:00
Sir Richard
3a6220a5f0 [NDK]: Add MMPDE structure for ARM.
svn path=/trunk/; revision=45543
2010-02-09 22:57:14 +00:00
Sir Richard
bf310b5d1a [NTOS]: Implement new and correct MiAddressToPte, ToPde, ToPdeOffset, and MiPdeToAddres and MiAddressToPte on ARM. Remove deprecated ARM page definitions.
[NTOS]: Move HYPER_SPACE to 0xC0500000 since it must be on its own PDE. We need to revisit some FreeLDR Mm decisions later.
[NTOS]: Move certain arch-specific definitions from mm.h to the arch-specific mm.h
[NTOS]: Fix certain parts of ARM3 which made the assumption that a PDE shares the same structure as a PTE. This is true on all architectures except ARM. We now define a new MMPDE type specifically for PDEs. On x86 it is defined to MMPTE with no changes.

svn path=/trunk/; revision=45542
2010-02-09 22:56:21 +00:00
Eric Kohl
5095fd3746 Implement device location information override support and add the location override value for PS/2 mice. PS/2 keyboards be added next.
Please translate the location override string.

svn path=/trunk/; revision=45541
2010-02-09 22:54:02 +00:00
Sir Richard
29200c4aa6 [NTOS]: Setup the template PTE and PDE used on ARM.
svn path=/trunk/; revision=45540
2010-02-09 22:53:41 +00:00
Dmitry Gorbachev
e815fe376b Fix REL build, part 2.
svn path=/trunk/; revision=45539
2010-02-09 20:21:54 +00:00
Dmitry Gorbachev
cca78c7b11 Fix REL build.
svn path=/trunk/; revision=45538
2010-02-09 20:08:06 +00:00
Dmitry Gorbachev
d4cca547fc Demote "may be used uninitialized" errors into warnings again.
svn path=/trunk/; revision=45536
2010-02-09 19:02:56 +00:00
Colin Finck
75538f4c0a The big RosBE 1.5 compatibility patch. You will need RosBE 1.5 from this point!
- Set the minimum GCC version to 4.4.0 and minimum Binutils version to 20091016.
- Remove the -fno-unit-at-a-time hacks.
- Remove dgorbachev's temporary hacks for user-mode C++ applications.
- Merge ntoskrnl's "precomp.h" and "ntoskrnl.h" again, the PCH issues have been fixed.
- Use our "ofmt_stub.a" to be compatible with newer MinGW Runtime versions.
- Use LD's new -exclude-all-symbols option to not auto-export all symbols in case no DEF file or __declspec(dllexport) was specified.
  We used to patch our LD version to work around this problem.
- Use LD's --start-group and --end-group parameters to allow a more flexible linking order.
- Use GCC's -fno-set-stack-executable for amd64 and i386 targets to disable adding the __enable_execute_stack code.
- Change the makefile's name to "makefile-$(ARCH).auto" for all architectures.
- Remove some -Wno-error flags.

See issue #4810 for more details.

svn path=/trunk/; revision=45535
2010-02-09 18:14:58 +00:00
evb
1bfa0a72c8 - Make KeFlushProcessTb work. Since no MPCore support, CPU TLB is flushed instead. Maybe should use ASIDs later.
svn path=/trunk/; revision=45534
2010-02-09 18:06:26 +00:00
Benedikt Freisen
c7fe125d08 [paint] fix rectangular selection tool
svn path=/trunk/; revision=45533
2010-02-09 18:06:18 +00:00
evb
8aff466da3 - Fix wrong initialization of different modes and stacks.
svn path=/trunk/; revision=45532
2010-02-09 18:05:01 +00:00
Cameron Gutman
2597cfe258 - Fix the LARGE_SIZE constant so it uses the lookaside list for mbuf ext buffers allocations again
- We added one byte to each ext buffer as a ref count for oskit_buffer_* functions so we need to compensate for that by adding one byte to the LARGE_SIZE constant
 - This should boost performance too because we allocate one ext buffer for each incoming and outgoing TCP packet

svn path=/branches/aicom-network-branch/; revision=45531
2010-02-09 17:58:11 +00:00
Johannes Anderwald
05051294e4 [DSOUND_NEW]
- Add more parameter checks
- Implement a few more functions for the primary sound buffer

svn path=/trunk/; revision=45530
2010-02-09 14:24:50 +00:00
Johannes Anderwald
d1a6561178 [DSOUND_NEW]
- Implement getting volume, volume pan, and frequency for secondary sound buffer
- Semi-stub setting volume, volume pan and frequency for secondary...

svn path=/trunk/; revision=45529
2010-02-09 13:14:19 +00:00
Johannes Anderwald
a12bfcf5d5 [DSOUND_NEW]
- Implement starting / stopping primary sound buffer
- Implement retrieving capabilities for secondary sound buffer
- Import sound mixing routines from wine, not yet used

svn path=/trunk/; revision=45527
2010-02-09 12:03:59 +00:00
Sir Richard
8c8041b1d6 [FREELDR]: Use WinLDR-style booting exclusively for ARM. Remove thousands of lines of old code where we basically did the same thing.
[FREELDR]: Build WinLDR for ARM too, and implement the required portability functions to get it working. Don't build "ros-style" loading on ARM.
[FREELDR]: Redo from scratch the entire paging setup for ARM. Instead of using 20MB of physical RAM, we now only use 1MB that's passed on to the kernel.
[FREELDR]: Fix loads of bugs in the ARM loader code (ha-ha!).
[FREELDR]: Cleanup compiler and linker flags in the rbuild files.
[ARMLLB]: Remove all deprecated video machine routines that are not used anymore.
If all went well, the ARM port should now boot on Versatile platforms up until the ARM3 initialization code.

svn path=/trunk/; revision=45526
2010-02-09 03:10:07 +00:00
Sir Richard
7cd39aa34b [MISC]: Build fixes to sync up with latest changes.
[SETUPLDR]: Do not build on ARM. On a side note, I offer a bountry for "if ARCH != ARM" support in .rbuild files, instead of only allowing ==.

svn path=/trunk/; revision=45525
2010-02-09 03:05:49 +00:00
Sir Richard
ba9fe881da [FREELDR]: Remove C++ style indirected "UI" component from FreeLDR ARM, for several reasons that ought to be considered on x86 too:
- It redraws the screen in two different ways (zero memory and character-by-character fill) over 15 times for a single boot. You notice these things on a little ARM chip!
    - It keeps coping data from/to an "off-screen buffer" way too much, instead of only when the video needs to be synced.
    - It makes assumptions about all Video Buffers supporting Character-Mode VGA.
    - It can be configured to draw cyan/yellow ponies, instead of a normal NT boot menu.
    The ARM build now uses a "directui.c" implementation which fixes all these issues and is efficient and to the point. It presents a normal Windows boot selection menu on ARM.
[FREELDR]: Do not build any of the video routines, or the UI routines, on ARM.

svn path=/trunk/; revision=45524
2010-02-09 02:53:45 +00:00
Sir Richard
f0a8153aec [FREELDR]: No Linux support for ARM, no RS232 support for ARM, and no complex debug infrastructure for ARM either.
svn path=/trunk/; revision=45523
2010-02-09 02:38:23 +00:00
Timo Kreuzer
2e97a01a5d add setjmp/longjmp to libcntpr, just like in ms sdks
svn path=/trunk/; revision=45522
2010-02-09 02:34:42 +00:00
Sir Richard
85446d50ca [FREELDR]: Do not build Disk/Partition support for ARM, we use ram disks.
svn path=/trunk/; revision=45521
2010-02-09 02:33:31 +00:00
Sir Richard
7d76dde312 [FREELDR]: Do not build EXT2, ISO or NTFS support for ARM targets.
svn path=/trunk/; revision=45520
2010-02-09 02:32:59 +00:00
Sir Richard
9eea228a7d [FREELDR]: The WinLDR code forgot to update the File Path of boot driver entries from PA to VA as well, not just the registry path. It also tried to touch the PA LoaderBlock right after enabling the MMU. It should touch the VA LoaderBlock instead, since there is no guarantee that the address has been identity mapped (and hence the PA address interpreted as a VA address by the MMU is bogus).
svn path=/trunk/; revision=45519
2010-02-09 02:26:46 +00:00
evb
8e6d54f4b8 - New ARM HAL after 2 nights in the company of a madman.
- Many fixes, more implemented routines, support for ARMv7.
- Some Linux code, marked as GPL, from ARM Ltd in cache.s. All OS use this code.

svn path=/trunk/; revision=45518
2010-02-09 02:26:28 +00:00
Sir Richard
62cb7586f3 [FREELDR]: The hack to set pages from 0x100 to 0x1FF as busy so that the heap allocator wouldn't use them always restored the pages back to Free (since they usually were free on x86). However, if the pages were already being used in the first place, this made them appear free and corrupted existing memory. Fixed the hack so that it restores the previous state of the memory pages.
svn path=/trunk/; revision=45517
2010-02-09 02:22:08 +00:00
Sir Richard
f44cf3f702 [NDK]: Use new ARMv6 PTE structures.
svn path=/trunk/; revision=45516
2010-02-09 02:14:58 +00:00
Sir Richard
92f6dfd7d4 [NTOS]: Tabula rasa (clean slate) on the old-MM page routines for ARM. Get rid of all of them for now.
[NTOS]: Implement MmInitGlobalKernelPageDirectory as the first ARM page function in the new file.
That's it for the kernel.

svn path=/trunk/; revision=45515
2010-02-09 02:14:20 +00:00
Sir Richard
9a43c209d4 [NTOS]: All calls to DbgPrint will go to DbgPrintEarly for now.
[NTOS]: More header fixes to match new definitions.

svn path=/trunk/; revision=45514
2010-02-09 02:12:27 +00:00
Sir Richard
16ab546411 [NTOS]: Make system startup match x86 code as closely as possible, instead of mixing MIPS/PPC code. Only rip out parts that are obviously x86-specific. Also fix code to use new KPCR definitions.
[NTOS]: Implement a DbgPrintEarly function that directly uses KDCOM to print to the serial console, instead of going through the Debug Service Interrupt.

svn path=/trunk/; revision=45513
2010-02-09 02:11:18 +00:00
Sir Richard
6995f3fca6 [NTOS]: Update code to use new KPCR structure.
[NTOS]: Make all trap code currently spin forever, because it has not been reviewed yet.

svn path=/trunk/; revision=45512
2010-02-09 02:09:34 +00:00
Sir Richard
ba3bc4340e [ARMDDK]: Use the same KPCR structure on ARM as on x86.
[ARMDDK]: Use the same addresses for KPCR and KUSER_SHARED_DATA on ARM as on x86. On ARM however, since there are no "segments", the KPCR is also mapped in user-mode, read-only, to have a static structure that can point to the current TEB.

svn path=/trunk/; revision=45511
2010-02-09 02:08:24 +00:00
Sir Richard
4deb6d8bf4 [ARM DDK]: Use the closest possible approximation to the x86 KPCR/KPRCB (in fact, the public KPCR is identical, just the KIPCR is different, internally), instead of a mashup of PPC and MIPS structures.
svn path=/trunk/; revision=45510
2010-02-09 02:06:29 +00:00
Sir Richard
bf39d09670 [NTOS]: Sync up KiDispatchException with x86 code (and going back to C comment formatting).
svn path=/trunk/; revision=45509
2010-02-09 02:00:52 +00:00
Sir Richard
d685272dc0 [NTOS]: Get rid of fixed TLB entries on ARM, I don't think that idea makes sense (unlike IA64 or MIPS where they are lot more flexible), since they only allow 1MB sections, not pages.
svn path=/trunk/; revision=45508
2010-02-09 02:00:15 +00:00
Sir Richard
60fd785e82 [NTOS]: Forgot to setup an IRQ stack, the kernel was working by magic since in previous incarnations of the ARM port, 0xFFFFyyyy was mapped, so a stack of 0 worked (going downwards).
[NTOS]: Now FreeLDR just calls the KiSystemStartup routine correctly, without any "magic", so fix the code to use a1 instead of a2 (argument 1/2).

svn path=/trunk/; revision=45507
2010-02-09 01:54:14 +00:00
Sir Richard
acb344ee2a [ARM SDK]: Use real Versatile base addresses instead of the old hacked FreeLDR base addresses.
svn path=/trunk/; revision=45506
2010-02-09 01:47:54 +00:00
Sir Richard
68410c584a [ARMLLB]: PutChar should be a UCHAR routine, this way we can print characters above 127 (extended ASCII). This is needed for the progress bar, for example.
svn path=/trunk/; revision=45505
2010-02-09 01:46:01 +00:00
Sir Richard
fa51458191 [ARMLLB]: Fix typo.
svn path=/trunk/; revision=45504
2010-02-09 01:44:26 +00:00
Daniel Reimer
016d82736c Giant German Language Fix Patch by "tux."
I skipped xcopy, winhlp32 and wordpad because they are wine synched and expand, because its not translated anymore.
Fix some BOMs i did not see at wine synching.

svn path=/trunk/; revision=45501
2010-02-08 19:35:26 +00:00
Daniel Reimer
61cfcb1f24 Fix build breakage
svn path=/trunk/; revision=45500
2010-02-08 16:38:41 +00:00
Timo Kreuzer
2a4563b90d [HAL]
Add a file, I forgot

svn path=/branches/ros-amd64-bringup/; revision=45499
2010-02-08 15:50:27 +00:00
Daniel Reimer
c6af848c9e Sync winfile to Wine 1.1.38
svn path=/trunk/; revision=45496
2010-02-08 10:49:41 +00:00
Daniel Reimer
6c51c54b09 Sync wordpad, write and xcopy to Wine 1.1.38
svn path=/trunk/; revision=45495
2010-02-08 10:49:03 +00:00
Dmitry Gorbachev
8dd5d145e5 Simplify a bit, remove unused macros.
svn path=/trunk/; revision=45492
2010-02-07 19:56:49 +00:00
Dmitry Gorbachev
6fe7914710 Fix bug #5156.
svn path=/trunk/; revision=45491
2010-02-07 19:56:06 +00:00
Dmitry Gorbachev
33a4dde3d1 Fix formatting.
svn path=/trunk/; revision=45490
2010-02-07 19:52:10 +00:00
Eric Kohl
3b550eb81b Fix LSAPR_POLICY_INFORMATION and associated types.
svn path=/trunk/; revision=45489
2010-02-07 17:01:57 +00:00
Johannes Anderwald
11c549d526 [DSOUND]
- Fix broken assert 
- Fix calculation of length for the first locked audio buffer

svn path=/trunk/; revision=45488
2010-02-07 15:57:25 +00:00
Johannes Anderwald
f326fb3cb3 [PORTCLS]
- Reset number of mappings and available data when a reset request arrives
- Handle case where a get position request appears before an audio buffer arrives which results in divide by zero exception

svn path=/trunk/; revision=45487
2010-02-07 15:35:00 +00:00
Eric Kohl
e2214c16ef Implement LsaEnumerateAccountRights.
svn path=/trunk/; revision=45484
2010-02-07 13:51:25 +00:00
Sir Richard
5786bc7b81 [NTOS]: Add a branch-to-self to start testing kernel code.
[ARMLLB]: Fix incorrect frame buffer size calculation.
[FREELDR]: Finish paging setup. Now we're able to boot to the kernel entrypoint at 0x808D3000, but I'm not happy with the memory descriptors.

svn path=/trunk/; revision=45480
2010-02-07 03:01:19 +00:00
Christoph von Wittich
f39b10c917 [AVIFIL32]
sync avifil32 to wine 1.1.38

svn path=/trunk/; revision=45479
2010-02-07 00:28:22 +00:00
Christoph von Wittich
345b28b73a [MSVCRT_WINETEST]
sync msvcrt_winetest to wine 1.1.38

svn path=/trunk/; revision=45478
2010-02-07 00:13:49 +00:00
Sir Richard
996267a6ff [FREELDR]: Start rewrite of eVb's messed up FreeLDR paging code. The new code is all dynamic and makes much better decisions as to the layout of the address space and how things will be implemented. Already, we are saving 16MB of VA. For now we still consume a large (1 MB) page for simplicity for the page directory, but that can go away later. I will post a diagram later if time permits. We get to MMU enabled and the PDE_BASE mapping works.
[NTOS]: Start redefining ARMv6 paging structures.

svn path=/trunk/; revision=45477
2010-02-07 00:09:10 +00:00
Christoph von Wittich
4225cee026 [SHELL32]
fix debug channel (merge from wine)

svn path=/trunk/; revision=45476
2010-02-07 00:07:07 +00:00
Christoph von Wittich
bd9978270a [SHELL32]
don't print the function name twice in ERR (merge from wine)

svn path=/trunk/; revision=45475
2010-02-07 00:06:04 +00:00
Eric Kohl
534f9adf45 Simplify the policy handle creation and destruction. This fixes two winetest failures.
svn path=/trunk/; revision=45473
2010-02-06 23:06:57 +00:00
Christoph von Wittich
28dd879706 [QEDIT]
sync qedit to wine 1.1.38

svn path=/trunk/; revision=45472
2010-02-06 21:46:26 +00:00
Christoph von Wittich
1829c939ad [MSXML3_WINETEST]
sync msxml3_winetest to wine 1.1.38

svn path=/trunk/; revision=45471
2010-02-06 21:35:37 +00:00
Christoph von Wittich
6f10f0d34b [MSXML3]
sync msxml3 to wine 1.1.38

svn path=/trunk/; revision=45470
2010-02-06 21:34:28 +00:00
Christoph von Wittich
4cead51c5f [MSI_WINETEST]
sync msi_winetest to wine 1.1.38

svn path=/trunk/; revision=45469
2010-02-06 21:29:15 +00:00
Christoph von Wittich
a1608caf31 [MSI]
sync msi to wine 1.1.38

svn path=/trunk/; revision=45468
2010-02-06 21:28:28 +00:00
Timo Kreuzer
eb35955f30 Merge trunk head (r45466)
svn path=/branches/ros-amd64-bringup/; revision=45467
2010-02-06 20:36:45 +00:00
Timo Kreuzer
ae3d0930ce [HAL]
Add the x86 emulator to x86BiosCall. It can call into int 10 and executes a few instructions.

svn path=/branches/ros-amd64-bringup/; revision=45466
2010-02-06 19:16:23 +00:00
Timo Kreuzer
077f4e3c79 Add x86emu to build
svn path=/branches/ros-amd64-bringup/; revision=45465
2010-02-06 19:14:12 +00:00
Timo Kreuzer
b63bed2d38 [X86EMU]
Beginning of a real mode x86 emulator for BIOS calls.

svn path=/branches/ros-amd64-bringup/; revision=45464
2010-02-06 19:13:54 +00:00
Timo Kreuzer
6bfc56886a [RTL]
Prevent RtlLargeInteger functions to be "occupied" by inline functions.

svn path=/branches/ros-amd64-bringup/; revision=45463
2010-02-06 19:12:02 +00:00
Sir Richard
a5996ad2bf [NTOS]: Combine all exit trap stubs into a single function with flags (same thing we did for the entry stub). Now there are only 15 lines of ASM instead of 60.
svn path=/trunk/; revision=45462
2010-02-06 14:58:23 +00:00
Cameron Gutman
9e677d15e1 - Forgot this file (sorry)
- mswsock.dll compiles and links now :)

svn path=/branches/aicom-network-branch/; revision=45461
2010-02-06 14:29:09 +00:00
Cameron Gutman
f57e5b6562 - Build fixes
- For some reason when I applied the patch from my other WC to this one, I ended up with 2-3 copies of the same code in each file

svn path=/branches/aicom-network-branch/; revision=45460
2010-02-06 14:24:55 +00:00
Eric Kohl
b5f68e4981 Convert offset to pointers when enumeration functions return ERROR_SUCCESS or ERROR_MORE_DATA because there is something to convert in both cases.
svn path=/trunk/; revision=45459
2010-02-06 14:10:18 +00:00
Cameron Gutman
9b6310f09a - Forgot this file
svn path=/branches/aicom-network-branch/; revision=45454
2010-02-06 03:10:25 +00:00
Cameron Gutman
503fdfb059 - New winsock (part 6 of x)
- Remove old dnslib

svn path=/branches/aicom-network-branch/; revision=45453
2010-02-06 03:01:51 +00:00
Cameron Gutman
eb3569ff5b - New winsock (part 5 of x)
- Add winsock headers

svn path=/branches/aicom-network-branch/; revision=45452
2010-02-06 03:00:31 +00:00
Cameron Gutman
d5fa02d2c3 - New winsock (part 4 of x)
- Rename ws2_32_new to ws2_32

svn path=/branches/aicom-network-branch/; revision=45451
2010-02-06 02:58:47 +00:00
Cameron Gutman
f21110d99f - New winsock (part 3 of x)
- Implement DnsApiAlloc and DnsApiFree

svn path=/branches/aicom-network-branch/; revision=45450
2010-02-06 02:56:20 +00:00
Cameron Gutman
fd2b0ac47d - New winsock (part 2 of x)
- Replace the old mswsock with the new one

svn path=/branches/aicom-network-branch/; revision=45449
2010-02-06 02:40:26 +00:00
Cameron Gutman
ff2d0c4e3a - New winsock (part 1 of x)
- Remove the old ws2_32

svn path=/branches/aicom-network-branch/; revision=45448
2010-02-06 02:32:13 +00:00
Timo Kreuzer
add3de6c67 Add missing _PTRSIZEOF
svn path=/branches/ros-amd64-bringup/; revision=45447
2010-02-06 01:39:31 +00:00
Timo Kreuzer
2b502990b8 [NTOS]
- Move DECLSPEC_ALIGN before the variable name

svn path=/branches/ros-amd64-bringup/; revision=45446
2010-02-06 01:31:38 +00:00
Timo Kreuzer
88e4860fb6 [RTL]
__inline__ -> __inline

svn path=/branches/ros-amd64-bringup/; revision=45445
2010-02-06 01:29:37 +00:00
Timo Kreuzer
0e4459beb1 [CRT]
- Remove underscore from _MsgUnimplemented

svn path=/branches/ros-amd64-bringup/; revision=45444
2010-02-06 01:28:58 +00:00
Timo Kreuzer
cb79d231d7 [HAL]
- Simplify check for matching kernel/hal
- Remove underscore from _MsgUnimplemented

svn path=/branches/ros-amd64-bringup/; revision=45443
2010-02-06 01:26:52 +00:00
Timo Kreuzer
548ef27d5c Add _crt_va_start, _crt_va_arg, _crt_va_end and __va_copy definitions for (MSVC & AMD64)
svn path=/branches/ros-amd64-bringup/; revision=45442
2010-02-06 01:24:30 +00:00
Timo Kreuzer
066e30ede1 Move definitinf of BitScanforward and BitScanReverse out of gcc specific area
svn path=/branches/ros-amd64-bringup/; revision=45441
2010-02-06 01:22:07 +00:00
evb
fb88430110 - Make boot.s just stub to force load address, since ARM LLB already does setup. Will get rid of later.
- Get rid of all .pagedata stuff from boot.s. Now define simpler static page tables. Will probably get rid of later.
- Fix memory map to include framebuffer, had forgotten about it. Moved framebuffer to the nearest hole found. It happens to be 0xA0000, nice coincidence (matches x86!).
- Switch to nicer 8x16 font instead of 8x13. Now FreeLDR UI looks 99% identical to real PC.
- Start writing new ARMv6 Paging Code. Enable extended page tables and access bit, redefine structures, only for OS Loader for now.
- Identity map low-memory 1MB and MMIO 2MB space at 0x10000000 for Versatile. Need to make this board-specific later.
- Need to investigate sharing code with WinLDR.
- MMU enabled and Printf/LCD output works!.


svn path=/trunk/; revision=45440
2010-02-06 00:49:30 +00:00
Timo Kreuzer
0ddbbb06b6 Use .asciz instead of .ascii, because ML doesn't understand "\0"
svn path=/branches/ros-amd64-bringup/; revision=45439
2010-02-06 00:05:48 +00:00
Cameron Gutman
166bc10af9 - Fix some epic fail in NdisMRegisterMiniport
- We were checking to see if there were valid NDIS 5.1-specific characteristics if 5.1 was specified as the version but we didn't actually copy them into our local buffer
 - Now NdisCancelPackets will actually do something if the miniport implements a MiniportCancelSendPackets handler and PnP event notifications will get through to the miniport if it implements a MiniportPnPEventNotify handler

svn path=/branches/aicom-network-branch/; revision=45437
2010-02-05 08:33:48 +00:00
Cameron Gutman
fdd91bc7e8 [NDIS]
- Fix buffer length passed to KeRegisterBugCheckCallback

svn path=/branches/aicom-network-branch/; revision=45436
2010-02-05 07:35:04 +00:00
Cameron Gutman
833baf1715 [PSDK, MSAFD]
- Fix a typo
[NETSTAT]
 - Uncomment and fix displaying successful fragmentation data
 - Fix a typo


svn path=/branches/aicom-network-branch/; revision=45435
2010-02-05 07:16:50 +00:00
Timo Kreuzer
046981b86f [NTOS]
On MSVC implement _lgdt, __sgdt, __lldt, __sldt, __ltr and __str as assembly functions, because there is no inline assembly.
The MSVC/ML64 built kernel now boots and WinDbg connects.

svn path=/branches/ros-amd64-bringup/; revision=45433
2010-02-05 03:05:51 +00:00
Timo Kreuzer
2e6b7c8bf1 - comment out an #error, looks like we don't need this
- comment out MINGW_ATTRIB_DEPRECATED definition

svn path=/branches/ros-amd64-bringup/; revision=45432
2010-02-05 03:04:18 +00:00
Timo Kreuzer
4088be01fe [FREELDR]
- Add DPRINT_WINDOWS DPRINT_PELOADER (the only useful) to DEBUG_ALL and DEBUG_CUSTOM
- Enable a few useful DPRINTs

svn path=/branches/ros-amd64-bringup/; revision=45431
2010-02-05 03:03:38 +00:00
Timo Kreuzer
3e8181cc61 - Add #pragma intrinsic for msvc intrinsics
svn path=/branches/ros-amd64-bringup/; revision=45430
2010-02-05 02:56:55 +00:00
Timo Kreuzer
a43ba572f3 fix UNIMPLEMENTED macro yet another time
svn path=/branches/ros-amd64-bringup/; revision=45429
2010-02-05 02:53:23 +00:00
Timo Kreuzer
7e65e8ce41 [RTL]
Make slist.S ML64 compatible

svn path=/branches/ros-amd64-bringup/; revision=45428
2010-02-05 02:51:38 +00:00
Timo Kreuzer
bf7d707939 [NTOS]
- Make assembly ML64 safe
- remove 2 stubs, add 2 others

svn path=/branches/ros-amd64-bringup/; revision=45427
2010-02-05 01:39:05 +00:00
Timo Kreuzer
139c298d14 [RTL]
MSVC compatibility fixes: inline -> __inline

svn path=/branches/ros-amd64-bringup/; revision=45426
2010-02-05 01:36:20 +00:00
evb
f00336e8df - Reading MBR from RAMDISK does not work since RAMDISK starts at BootSector (rdoffset) and disk sector functions are NULL. Build bogus signature/checksum for now, unless MBR really needed later.
- Now FreeLDR crashes no more and arrives at FrLdrStartup to boot kernel and setup paging.


svn path=/trunk/; revision=45425
2010-02-04 20:11:48 +00:00
evb
466a1c65ee - Define memory map structure for Versatile board/QEMU and send to OS Loader.
- Many hack removed.
- Better efficency use of memory layout.
- Region at 0x800000 now available for FreeLDR use to load kernel files.
- Implement simple ArmDiskNormalizeSystemPath so boot is allowed to happen.
- Use better stack address as defined in memory map.
- Now FreeLDR loads all files correctly from disk and is ready to jump to kernel. ARMv5 paging code must be rewritten before that can happen.


svn path=/trunk/; revision=45424
2010-02-04 19:52:13 +00:00
evb
724f076f8a - Change NANDFlash again for Versatile support. Now the LLB and OS Loader are created in one binary blob (loaded with -kernel), while the RAMDISK is loaded with -initrd.
- Now the only complication is that RAMDISK loaded at 0x80000 which will conflict with the 0x800000 range where kernel loads. Could move RAMDISK in code through LLB, but that would be very expensive (shift by 16MB up). Instead, NANDflash creates ramdisk image starting at offset 16MB. This way, emulator thinks it's loading at 0x80000, but actually loads at 0x1800000. Would be better if QEMU not hardcoded the INITRD_LOAD_ADDR...

svn path=/trunk/; revision=45423
2010-02-04 19:49:25 +00:00
Sir Richard
59842d0e20 [RBUILD]: Fix make install and make install_registry. mkhive command was wrong (MKHIVE_TARGET instead of mkhive_TARGET) and so the executable was never launched.
svn path=/trunk/; revision=45422
2010-02-04 16:47:23 +00:00
evb
d8dbcc153f - Fix text output
- Allow for more than just one parameter on the bootROM command line (sepearate with commas).
- Rdoffset is not hardcoded anymore, but passed on cmdline. Allows using images with different partition offsets.

svn path=/trunk/; revision=45420
2010-02-04 15:59:22 +00:00
Aleksey Bragin
fa8448cfec - Update README.WINE.
svn path=/trunk/; revision=45419
2010-02-04 14:49:40 +00:00
Aleksey Bragin
c2c6cc65aa [base/system/expand]
- Update expand utility to Wine-1.1.37. Last update happened 7 years ago and since then it was translated into 20 languages. Sorry to all the translators but the preference is given to a working untranslated version rather than a non-working localized one.
See issue #4637 for more details.

svn path=/trunk/; revision=45418
2010-02-04 14:40:36 +00:00
evb
ff14d245dd - Refactor keyboard support to match serial. Now reading a key and waiting for a key are two things.
- Implement KbHit Firmware routine.
- It is now possible to interact with FreeLDR using the keyboard.


svn path=/trunk/; revision=45416
2010-02-04 08:02:30 +00:00
evb
57a1c9dbbf - Switch to bootvid 8x13 font (closer to PC/VGA experience).
- Fix LlbFwVideoGetDisplaySize return characters X/Y, not pixels. Now "Press F8 for advanced menu" shows".


svn path=/trunk/; revision=45415
2010-02-04 07:55:26 +00:00
evb
d598e90edb - Add PL031 RTC code for Versatile.
- Add RTC time to TimeInfo convert.
- Implement FirmWare GetTime function. Countdown in FreeLDR now working.


svn path=/trunk/; revision=45414
2010-02-04 07:22:03 +00:00
evb
1dc4d1bc2e - Add GetTime stub, bump version to 1.4.
- Implement function for drawing character on the screen when request come from firmware.
- Tui.c assumes all screens are x86 VGA Consoles with 8-bit character and 8-bit attribute. On ARM, call Mach function to draw character instead of drawing into ScreenMemory off-screen buffer.
- FreeLDR menu now appears, need GetTime for counter.


svn path=/trunk/; revision=45413
2010-02-04 06:44:06 +00:00
evb
ee2e3391be - Implement some simple video routines.
- Fix usable RAM not to include loader code and ram disk (up to 32MB).


svn path=/trunk/; revision=45412
2010-02-04 06:09:03 +00:00
evb
509e67f84f - Add stubs for video mach functions and update minor to 1.3.
svn path=/trunk/; revision=45411
2010-02-04 05:43:02 +00:00
Timo Kreuzer
28c8b7fbec [AMD64]
Switch from underscore prefixed symbols to unprefixed symbols. (MSVC compatibility)

svn path=/branches/ros-amd64-bringup/; revision=45410
2010-02-04 04:58:09 +00:00
Timo Kreuzer
cb076d0fef [CRT]
Add back sin and cos to libcntpr, as they are needed by win32k atm ...

svn path=/branches/ros-amd64-bringup/; revision=45409
2010-02-04 04:45:58 +00:00
Timo Kreuzer
ad67929566 [NDK]
- fix KGDT64 names
- make asm.h masm/ml compatible by using a HEX macro, that converts constants into either 0xAA or 0AAh format


svn path=/branches/ros-amd64-bringup/; revision=45408
2010-02-04 04:31:02 +00:00
Timo Kreuzer
e817db75e4 [HAL]
Fix KGDT64 macro name

svn path=/branches/ros-amd64-bringup/; revision=45407
2010-02-04 04:22:58 +00:00
Timo Kreuzer
9a5b1e6a62 [FREELDR]
Remove Ke386SetXx, we don't need them and we don't have anymore.


svn path=/branches/ros-amd64-bringup/; revision=45406
2010-02-04 04:21:38 +00:00
evb
c478b48128 - Add support for ram disk offset (.IMG file is a RAW image, partition starts later...)
- Fix ram disk support in FreeLDR, ARC changes had broken support for booting FreeLDR (not just the Windows) from a ram disk. ARM port now initializes ramdisk as an FS device.
- Fix hardcoded DISKREADBUFFER and FILESYSBUFFER values. On ARM these will be dynamically selected for each board (need to improve this through LLB).
- Now FreeLDR.ini is read, and crash happens because UI routines are all NULL.


svn path=/trunk/; revision=45405
2010-02-04 01:24:45 +00:00
Cameron Gutman
4f21767b6a - Merge r45400 from aicom-network-branch to fix the crash that occurs when Steam starts
svn path=/trunk/; revision=45404
2010-02-04 00:02:45 +00:00
evb
09504f4242 - Enable RAMDISK support in LLB.
- Build commandline for OS Loader (FreeLDR).
- Now ready to start loading freeldr.ini


svn path=/trunk/; revision=45403
2010-02-03 23:17:16 +00:00
evb
8649bab99c - Fix bugs.
- Enable non-OOB mode for Versatile.


svn path=/trunk/; revision=45402
2010-02-03 23:16:26 +00:00
Eric Kohl
5e9564ed2d - Implement GetEventLogInformation.
- OpenBackupEventLogA, OpenEventLogA, RegisterEventSourceA and ReportEventA: Call the ANSI RPC-Server Function directly instead of converting arguments to Unicode and calling the matching Unicode Function.
- OpenEventLogW: Fix argument checks.

svn path=/trunk/; revision=45401
2010-02-03 20:46:21 +00:00
Cameron Gutman
bd7ffd61fd [AFD]
- Add more cases to TdiAddressSizeFromType
 - Return STATUS_INVALID_PARAMETER instead of bugchecking if somebody gives us a bad address type
 - Fixes Steam (confirmed by Geoz)
 - Will also be merged to trunk soon

svn path=/branches/aicom-network-branch/; revision=45400
2010-02-03 20:02:39 +00:00
Timo Kreuzer
025e922f69 [NTOS]
- Get rid of all Ke386* inline functions for amd64
- add some stubs for msvc

svn path=/branches/ros-amd64-bringup/; revision=45399
2010-02-03 18:53:41 +00:00
Timo Kreuzer
7f625e9e03 Add some EXTERNs and use OR instead of | for MASM/ML compatibility
svn path=/branches/ros-amd64-bringup/; revision=45398
2010-02-03 18:49:44 +00:00
Timo Kreuzer
f495eb586a Fix setjmp based on the new syntax
svn path=/branches/ros-amd64-bringup/; revision=45397
2010-02-03 18:47:30 +00:00
Sir Richard
b4da1d81d9 [VMX_SVGA]: Begin implementation of VMWARE SVGA-II Video Card Driver.
svn path=/trunk/; revision=45396
2010-02-03 17:47:41 +00:00
Timo Kreuzer
0efb2e9187 Improve the UNIMPLEMENTED macro. Dedicated to aicom.
svn path=/branches/ros-amd64-bringup/; revision=45394
2010-02-03 16:57:14 +00:00
Timo Kreuzer
da4f165f23 inline -> __inline
svn path=/branches/ros-amd64-bringup/; revision=45393
2010-02-03 16:50:34 +00:00
Johannes Anderwald
2f8f2409dd [WDMAUD.DRV]
- Cleanup code
- Fix a bug which made the caller assume that a wave handle has already been open.
- define a macro which appends a postfix depending on wether USE_MMIXER_LIB has been defined

svn path=/trunk/; revision=45390
2010-02-03 12:48:27 +00:00
Ged Murphy
ce1b8768d1 Fix typo in vcproj generator code
svn path=/trunk/; revision=45389
2010-02-03 11:36:49 +00:00
Daniel Reimer
6ae884e3c9 Bug 4342: Update log2lines to Version 1.12b. (Jan Roeloffzen)
svn path=/trunk/; revision=45387
2010-02-03 07:34:59 +00:00
evb
59e8be0b65 - Flesh out more code.
- Support ATAG Linux/ARMBoot architecture defined-structures. These are used by all ARMBoot-compatible loaders (QEmu, U-boot, etc).
- Read RAMDisk, RAM, Command Line from ATAGs (use -append boot-device=RAMDISK).
- Make environment-get function read command-line.
- Allocate RAM memory structure portably.
- Validate board info on boot.


svn path=/trunk/; revision=45386
2010-02-03 03:14:59 +00:00
evb
e7ff33a8bc - Implement logical keyboard interface. Converts scan code to ASCII codes (just ok).
- Implement firmware ConsGetCh based on keyboard interface.
- Implement KMI (Keyboard & Mouse Interface) PL050 driver for Versatile to init PS/2 and read keyboard scancodes. Can now press ENTER/whatever when FreeLDR gives "Cannot find freeldr.ini" error.
- More fixes


svn path=/trunk/; revision=45385
2010-02-03 01:19:26 +00:00
Timo Kreuzer
832d8290c8 [NTOS]
- Fix KGDT64 names, 
- Add missing .ALLOCSTACK

svn path=/branches/ros-amd64-bringup/; revision=45384
2010-02-03 00:18:24 +00:00
Timo Kreuzer
c8f9aa3f4b [FREELDR]
Fix KGDT64 names, initialize KGDT64_NULL and KGDT64_R3_CMCODE

svn path=/branches/ros-amd64-bringup/; revision=45383
2010-02-03 00:04:27 +00:00
Timo Kreuzer
a5e16bf6a6 Fix the UNIMPLEMENTED macro
svn path=/branches/ros-amd64-bringup/; revision=45382
2010-02-02 23:48:03 +00:00
Sir Richard
66bdab40af [NTOS]: Yet another fix for KiEnterInterruptTrap: Set correct DS/ES before touching the TrapFrame.
[NTOS]: Make this operation an inline so any possible future code will not make this mistake twice.
Thanks to Physicus for the bug report.

svn path=/trunk/; revision=45381
2010-02-02 22:56:13 +00:00
Christoph von Wittich
d25de563d3 [FREELDR]
fix a typo

svn path=/trunk/; revision=45380
2010-02-02 17:28:10 +00:00
evb
2ce8b56e7c - Change ARM loading architecture to match EFI/Firmware model. LLB provides "firmware" routines, FreeLDR obtains "firmware" routines from the ARM block, and sets them as the Machine VTable. All board-specific FreeLDR code gone now.
- Start work on UI. Serial output is now only for debugging, not usual console.
- Need PL045 Keyboard code to handle KbHit/GetCh.
- Have PL011 code ready for MachVideo routines, coming soon...
- Start stub of environment functions.


svn path=/trunk/; revision=45379
2010-02-02 17:21:19 +00:00
Timo Kreuzer
28bb8f1a56 Update Doxyfile to version 1.6.2 with the following changes:
- INHERIT_DOCS enabled
- SEPARATE_MEMBER_PAGES enabled: will prevent incredible huge html files generated from large headers.
- Add *.cc and *.hxx extensions
- REFERENCED_BY_RELATION enabled
- VERBATIM_HEADERS disabled
- ENABLE_PREPROCESSING enabled, so we can see macros, too

svn path=/trunk/; revision=45378
2010-02-02 00:23:59 +00:00
evb
10d18dcf41 - More fixes
- Plugin support for booting FreeLDR when used as initrd on QEMU command-line.


svn path=/trunk/; revision=45377
2010-02-02 00:14:14 +00:00
evb
0e650cc897 - Forgot to change SARCH back to Versatile.
svn path=/trunk/; revision=45376
2010-02-01 21:07:03 +00:00
Danny Götte
47c3e2e09b acivate server based search for doxygen
svn path=/trunk/; revision=45375
2010-02-01 20:16:42 +00:00
Eric Kohl
5499d3c924 Reset a services thread and process ids when the service has been stopped. Fixes one more test.
svn path=/trunk/; revision=45374
2010-02-01 19:45:50 +00:00
evb
5024029061 - Fix bugs.
- Enable serial output.


svn path=/trunk/; revision=45373
2010-02-01 19:28:40 +00:00
evb
fc22be1381 - ARM LLB for OMAP3/Beagle (test with QEMU-Maemo) and Versatile (test with QEMU).
- Boots to blue screen with white text to indicate checkpoint.
- More cleanup/work needed.
- Will post Wiki on testing info soon.

svn path=/trunk/; revision=45372
2010-02-01 18:33:24 +00:00
evb
aea2ffe8bd - NANDFlash tool for building OMAP3 FLASH Images for DevBoard and QEMU-Maemo.
svn path=/trunk/; revision=45371
2010-02-01 18:29:19 +00:00
James Tabor
25ba7f4f8b [Gdi32]
- Miscellaneous implementations and forwards.

svn path=/trunk/; revision=45370
2010-02-01 15:13:35 +00:00
Sir Richard
02c2d27111 [ARM]: Fix the ARM build, hopefully without breaking the x86 build in the process. Sorry buds!
svn path=/trunk/; revision=45368
2010-02-01 03:51:45 +00:00
Sir Richard
6aa9cce4bb [NTOS]: Try to fix KiEnterInterrupt once and for all. Only set segments for V8086 or user traps.
[NTOS]: Rework the way traps with possibly dirty DS/ES segments are handled. The FAST V86 hack is gone. Intead, created a "safe" version of IsTrapV86 and IsTrapUser that does an SS segment dereference (known good). The condition is then based on this, and the segments are saved and loaded safely. Note that for GCC 4.5 the ASM can be improved to directly branch or not to a label, instead of returning a boolean that is then further compared before branching.
This will fix certain exceptions that were seen in KeUpdateSystemTime, and might fix the sneaking HalpTrap0D while not in V86 mode (no promises).

svn path=/trunk/; revision=45367
2010-02-01 03:47:42 +00:00
Eric Kohl
a6d399d000 GetServiceDisplayNameA/W and GetServiceKeyNameA/W must return an empty String if the given Buffer is too small. This fixes 6 tests.
svn path=/trunk/; revision=45366
2010-01-31 22:22:50 +00:00
Eric Kohl
661d200caa [FORMATTING]
- Fix indentation. No code changes.

svn path=/trunk/; revision=45364
2010-01-31 21:00:45 +00:00
Aleksey Bragin
da2a2649db [FORMATTING]
- Reformat dma.c, no code change.

svn path=/trunk/; revision=45363
2010-01-31 20:35:06 +00:00
Eric Kohl
d7117cdb17 - Implement RCreateServiceA.
- Make CreateServiceA call RCreateServiceA instead of CreateServiceW.

svn path=/trunk/; revision=45362
2010-01-31 20:28:04 +00:00
Eric Kohl
1cca0351e1 Implement basic version of PNP_CreateKey.
svn path=/trunk/; revision=45361
2010-01-31 19:44:02 +00:00
Johannes Anderwald
6c11399f0a [MMEBUDDY]
- Hackfix corruption of audio buffer list which made the playback thread spin forever on an already played buffer.
- Tested with Winamp / VLC / mplay32 with Vbox 3.1.2

svn path=/trunk/; revision=45360
2010-01-31 19:09:30 +00:00
James Tabor
2afb0124d2 [Win32k|User32]
- Updated DrawIconEx information for Meta support.

svn path=/trunk/; revision=45359
2010-01-31 18:38:45 +00:00
Johannes Anderwald
6fd5a51915 [PORTCLS]
- Use silence buffer when no audio buffers are available. Replaces the endless disturbing sound loop.
- Sound still broken

svn path=/trunk/; revision=45358
2010-01-31 15:32:31 +00:00
Sir Richard
c40a4a58a0 [NTOS]: Always set correct segments; the if/else branch should decide which segments to save, not whether or not to set the sane ones. Fixes boot on VirtualBox and real hardware.
svn path=/trunk/; revision=45357
2010-01-31 15:22:55 +00:00
Cameron Gutman
95b2e7519e - Merge some small changes from aicom-network-branch to fix potential memory corruption and remove unused code in oskittcp
- Add a hack to WSHSetSocketInformation so we don't fail with options that aren't implemented yet
 - Fixes bug #5131

svn path=/trunk/; revision=45356
2010-01-31 02:07:23 +00:00
Sir Richard
5a20627609 [NTOS]: Simplify KiTrapStub and write registers in order.
[PERF]: Change instructions used to save registers on the trap frame to fix some WaW and RaW hazards.

svn path=/trunk/; revision=45354
2010-01-30 19:10:22 +00:00
Sir Richard
ed3b520c7b [PERF]: Omit setting certain useless trap frame fields.
[NTOS]: Fix KiEnterInterruptFrame. In the case of a V86 trap, the segments were overriden because this wasn't a kernel trap (missing if/elseif).

svn path=/trunk/; revision=45353
2010-01-30 18:25:30 +00:00
Sylvain Petreolle
607494ed1c Move Reactos logon sound to WindowsLogon sound scheme.
Fixes bug 5002.

svn path=/trunk/; revision=45350
2010-01-30 17:07:33 +00:00
Cameron Gutman
29589c0449 - Remove some unused junk code
svn path=/branches/aicom-network-branch/; revision=45349
2010-01-30 16:45:22 +00:00
Sir Richard
0eef75a032 [HAL]: Add debugging feature to HalpTrap06 error that sometimes happen. Please post/email/IM your trap frame should you see this error.
svn path=/trunk/; revision=45348
2010-01-30 16:40:57 +00:00
Cameron Gutman
a0090f038d - ovbcopy is used when the source address and destination address overlap so defining it to memcpy was a horrible idea
svn path=/branches/aicom-network-branch/; revision=45347
2010-01-30 15:18:21 +00:00
Timo Kreuzer
34ef1bef80 [NTOS]
- Implement KiSystemFatalException, stubplement KiGeneralProtectionFaultHandler and KiXmmExceptionHandler, KiNpxNotAvailableFaultHandler in C
- Implement KiDivideErrorFault, KiOverflowTrap, KiBoundFault, KiInvalidOpcodeFault, KiNpxNotAvailableFault, KiNpxSegmentOverrunAbort, KiInvalidTssFault, KiSegmentNotPresentFault, KiStackFault, KiAlignmentFault, KiMcheckAbort, KiXmmException, KiRaiseAssertion in assembler
- Modify rsp instead of pushing a pseudo error code
- Move all unwind ops into ENTER_TRAP_FRAME macro

svn path=/branches/ros-amd64-bringup/; revision=45344
2010-01-30 13:35:46 +00:00
Timo Kreuzer
f155d17a5a Add exception codes for asm
svn path=/branches/ros-amd64-bringup/; revision=45343
2010-01-30 13:21:28 +00:00
James Tabor
4206bf49f4 [User32]
- More movement to WND support.

svn path=/trunk/; revision=45341
2010-01-30 06:41:39 +00:00
Timo Kreuzer
086a6f0140 add else
svn path=/branches/ros-amd64-bringup/; revision=45340
2010-01-30 04:27:17 +00:00
James Tabor
1263c98dae [Win32k|User32]
- Updated paint functions to use one calls.
- Found one leak in engwindow.c and monitor.c, not the big one.

svn path=/trunk/; revision=45339
2010-01-30 04:23:58 +00:00
Timo Kreuzer
49da6c12d8 and the same for trap.S
svn path=/branches/ros-amd64-bringup/; revision=45338
2010-01-30 03:18:20 +00:00
Timo Kreuzer
2306a5788f remove the RIP() hack, instead use a constant rip=0 for MASM/ML
svn path=/branches/ros-amd64-bringup/; revision=45337
2010-01-30 03:17:11 +00:00
Timo Kreuzer
752c8aead9 trap.S is now fully MASM/ML compatible
svn path=/branches/ros-amd64-bringup/; revision=45336
2010-01-30 03:12:26 +00:00
Timo Kreuzer
bfd0e180c3 use .altmacro for gas and hack the UNIMPLEMENTED macro
svn path=/branches/ros-amd64-bringup/; revision=45335
2010-01-30 03:11:39 +00:00
Timo Kreuzer
fcd9ab3f50 fix macros...
svn path=/branches/ros-amd64-bringup/; revision=45334
2010-01-30 01:46:16 +00:00
Timo Kreuzer
f0c278391b fixup trap.S. Almost there...
svn path=/branches/ros-amd64-bringup/; revision=45333
2010-01-30 01:17:06 +00:00
Timo Kreuzer
e2151932e4 More macros and fixes
svn path=/branches/ros-amd64-bringup/; revision=45332
2010-01-30 01:16:42 +00:00
Timo Kreuzer
cf3c481035 And once again fix trap.S
svn path=/branches/ros-amd64-bringup/; revision=45331
2010-01-30 00:53:01 +00:00
Timo Kreuzer
5698669639 Update macros a bit more
svn path=/branches/ros-amd64-bringup/; revision=45330
2010-01-30 00:52:23 +00:00
Timo Kreuzer
fbe7bbfcdb Update trap.S to conform
svn path=/branches/ros-amd64-bringup/; revision=45329
2010-01-30 00:30:08 +00:00
Timo Kreuzer
459f389307 Update some asm macros, partly adding MASM/ML support
svn path=/branches/ros-amd64-bringup/; revision=45328
2010-01-30 00:22:03 +00:00
Timo Kreuzer
fde64b37c3 make use of the new file
svn path=/branches/ros-amd64-bringup/; revision=45327
2010-01-29 23:41:52 +00:00
Timo Kreuzer
5a811f8ce2 Add include/reactos/asm.h
This file replaces asmmacro.S and shall provide GAS/ML64 compatibility definitions

svn path=/branches/ros-amd64-bringup/; revision=45326
2010-01-29 23:29:58 +00:00
Timo Kreuzer
6b38c83e7a [NTOS]
MSVC compatibility fix: use DECLSPEC_ALIGN and remove inline asm (it was testcode anyway)

svn path=/branches/ros-amd64-bringup/; revision=45325
2010-01-29 23:25:05 +00:00
Sylvain Petreolle
4d1da2ea5c [HAL]
fix HalEndSystemInterrupt prototype.

svn path=/trunk/; revision=45324
2010-01-29 22:08:09 +00:00
Sylvain Petreolle
26dab4c37d add missing delimiters
svn path=/trunk/; revision=45323
2010-01-29 22:03:56 +00:00
Sir Richard
4e16ca56ce [HAL]: Rewrite IRQL handling. Alex's original code (lately translated to C) was a copy of the MicroChannel (MCA), Checked-Build HAL, an unexplained choice considering MCA is not supported or even available anymore. Windows, on machines with a PIC, uses a mechanism called Lazy IRQL, in which the PIC is only programmed "lazily", meaning that lowering and raising the IRQL does not actually change the interrupt mask. Therefore, lower priority interrupts will still come in at high IRQL. At this point, the HAL will detect this, only now mask the PICs, and lie that the lower interrupt was "spurious", while setting a pending bit. When the IRQL is lowered, the bit is detected, and a software/delayed "INT" is done with the correct IRQ vector number. More details are available in the typical resources.
[HAL]: Implement support for Level interrupts, which are used by certain EISA cards, and more particularly, all PCI hardware. Level interrupts were not previously handled correctly, being treated as edge/latched interrupts instead.
[NTOS/HAL]: Remove VDM Alert KPCR hack (which was buggy). Now the PKTRAP_FRAME is passed as a parameter to HalpEndSoftwareInterrupt/HalEndSystemInterrupt. This also removes the HalpNestedTrap ASM hack, since the call can now be done in C.
[PERF]: On real machines, writing the PIC mask is a relatively expensive I/O operation, and IRQL lower/raise can happen hundreds of times a second. Lazy IRQL provides an important optimization.
[PERF]: Correctly handling level interrupts as level interrupts allows for faster, and more efficient, IRQ handling.

svn path=/trunk/; revision=45320
2010-01-29 21:10:33 +00:00
Aleksey Bragin
1e19f89dbf [CSR]
- DejaVu Sans Mono seems to have a bug which makes Windows and Arwinss report double max char width as compared to a real char width. Since only a monospace font could be used, measure exact char width using GetTextExtentPoint32W and use that value.

svn path=/trunk/; revision=45319
2010-01-29 21:02:00 +00:00
Timo Kreuzer
ef3224edab Fix parameters of KeUpdateSystemTime, make it regparm only for X86 ans remove the now deprecated stub.
Add a few stubs for MSVC

svn path=/branches/ros-amd64-bringup/; revision=45318
2010-01-29 13:23:00 +00:00
Sir Richard
38668a867a [HAL]: Mark ECX as clobbered in HalpNestedTrap, otherwise if the compiler decides to store IRQL in ECX, it will then be overriden with our ECX parameter. With this clobber, the compiler will use another register, such as EAX, to hold the IRQL.
svn path=/trunk/; revision=45316
2010-01-29 08:14:51 +00:00
Sir Richard
4fa5e49fa3 [NTOS]: Return correct IRQ 0 vector instead of IRQL, when the timer interrupt ends.
svn path=/trunk/; revision=45315
2010-01-29 07:27:55 +00:00
Timo Kreuzer
a0055ff789 Use __inline instead of inline
svn path=/branches/ros-amd64-bringup/; revision=45314
2010-01-29 05:25:26 +00:00
Timo Kreuzer
b4c3b1e6f6 unimplement a bunch or intrinsics for msc, as we cannot use inline asm.
svn path=/branches/ros-amd64-bringup/; revision=45313
2010-01-29 05:23:59 +00:00
Sir Richard
76e22a7c62 [NTOS]: Another try at the chained interrupt dispatch problem...
svn path=/trunk/; revision=45312
2010-01-29 02:25:30 +00:00
James Tabor
80e31b74bc - Fix recursion when sweeping the DCE list.
svn path=/trunk/; revision=45311
2010-01-29 02:07:31 +00:00
Sir Richard
3d6e5848c1 [NTOS]: Implement chained interrupt dispatch. For level interrupts, the first interrupt handler should process the interrupt and no other handlers are called. Edge interrupts are another matter, but since they aren't yet supported, I haven't implemented that code path (it wasn't implemented previously). I seriously hope we don't have edge/chained interrupts because the HAL/NTOS could never handle this!
svn path=/trunk/; revision=45310
2010-01-29 01:37:25 +00:00
Sir Richard
614734706d [NTOS]: Implement the KiInterruptTemplate in C since we now have a C entrry macro. Add a new KI_HARDWARE_INT flag for the C entry macro to generate the appropriate labels for runtime patching of the KINTERRUPT pointer to work, and issue an absolute instead of relative jmp.
[NTOS]: Remove thousands of lines of assembly that are not needed anymore.
[NTOS]: Put all interrupt code in irqobj.c (platform-specific).
[NTOS]: DPC Interrupt is really the thread scheduler interrupt (DPC work happens in C), which mostly does contexts switching and scheduling decisions, so move it to ctxswitch.S

svn path=/trunk/; revision=45309
2010-01-29 01:12:08 +00:00
James Tabor
3b6e1e135b - Remove WINDOWOBJECT_NEED_INTERNALPAINT from service.
svn path=/trunk/; revision=45308
2010-01-29 00:59:20 +00:00
James Tabor
49439aff5f [User32]
- Make ValidateRect a direct call, update related. Update UpdateWindow and some code sorting. Getting ready for WND switch.

svn path=/trunk/; revision=45307
2010-01-29 00:58:19 +00:00
James Tabor
69ae9c4e57 - Wrong commit msg, removed debug prints and fixed RedrawWindow. This fix one part of the leak.
svn path=/trunk/; revision=45306
2010-01-28 23:45:22 +00:00
James Tabor
21032e02d1 [Win32k]
- Add back removed window dce support routine. Fixed list handling and implemented thread cleanup for dces.

svn path=/trunk/; revision=45305
2010-01-28 23:34:57 +00:00
Sir Richard
5b14ade9f8 [NTOS]: The last big step. Now that the HAL is in C, we can handle interrupts in C. Do so using the proposed model that was #if'ed out, but with some improvements.
[NTOS]: Implement KiUnexpectedInterruptTail and KiUnexpectedInterrupt in C as well.
This is [PERF] too since the C interrupt handling code is a lot more efficient than the ASM one. Numbers look good here.

svn path=/trunk/; revision=45304
2010-01-28 23:18:53 +00:00
Sir Richard
ac9c20ac0f [HAL]: Fix HalpFlushTlb. Thanks to Stefan Ginsberg <stefan100@reactos.org>
svn path=/trunk/; revision=45303
2010-01-28 23:08:04 +00:00
Matthias Kupfer
b847e553ef this log message left intentionally non-descriptive
svn path=/trunk/; revision=45302
2010-01-28 22:18:31 +00:00
Sir Richard
7509f62a3b [PERF]: Optimize nested interrupt cases (where a pending interrupt exists at the end of a software or system interrupt) just like the old HAL did, by jumping into a second-level handler and completing the outer trap frame instead of the nested trap frame. This saves a lot of cycles in those cases, and they do happen quite often (pending DPC at the end of an interrupt, for example).
[NTOS/HAL]: Rework respective code to handle this by using the VDM Alert field in the KPCR.

svn path=/trunk/; revision=45301
2010-01-28 20:45:45 +00:00
Sir Richard
55c5579b1d [NTOS]: Fix L1/L2 cache detection and write out the size and associativity. Now that KeGetCurrentProcessorNumber doesn't think your L2 cache is the number of CPUs, this can be safely done.
svn path=/trunk/; revision=45300
2010-01-28 20:43:25 +00:00
Sir Richard
8ae0ebe9dd [NDK]: Fix KPCR definition.
[DDK]: KeGetCurrentProcessorNumber should not return a 32-bit DWORD combined of "ProcessorNumer", "VdmAlert" and "SecondLevelCacheAssociativity" because those 3 fields are probably not equal to a processor number. Having an L2 Cache will no longer result in ReactOS believing you have a 32000 core CPU.

svn path=/trunk/; revision=45299
2010-01-28 16:05:54 +00:00
Sir Richard
08d30b3abb [NTOS]: Remove checks for VDM alert during GPF. This is a Windows-specific hack for VDM, which isn't implemented.
svn path=/trunk/; revision=45298
2010-01-28 16:01:43 +00:00
Sir Richard
da7d769c43 [PERF]: Not in any way a scientific number you should bet the farm on, but we do now count the number of cycles at the very first instruction of kernel initialization, at the moment SMSS initializes the registry (when we call kernel initialization complete), and at the moment there have been 12 processes created (10 without counting idle/system), which is a bit less than a normal GUI boot. We also display the number if interrupts, system calls, and context switches it took to get us there. A purely comparative number, perhaps worthy for inclusion in testman/regression tests?
svn path=/trunk/; revision=45297
2010-01-28 15:51:18 +00:00
Timo Kreuzer
9943d23d5d fix the same typo once more
svn path=/branches/ros-amd64-bringup/; revision=45295
2010-01-28 02:37:28 +00:00
Timo Kreuzer
01afdbbe91 [CRT]
Implement sin() in C. Code is actually 99% identical to cos.
Note: We are using even exponents for sin, too, as this results in higher precision than using uneven exponents.

svn path=/branches/ros-amd64-bringup/; revision=45294
2010-01-28 01:18:12 +00:00
James Tabor
5147b861f3 [Win32k]
- Add back removed window dce support routine. Fixed list handling and implemented thread cleanup for dces.

svn path=/trunk/; revision=45293
2010-01-28 01:00:09 +00:00
Timo Kreuzer
80be387663 fix a typo
svn path=/branches/ros-amd64-bringup/; revision=45292
2010-01-28 00:59:40 +00:00
Cameron Gutman
6fcc316845 - Merge aicom-network-branch (still without the NDIS stuff)
- Fixes some nasty bugs and hacks in our TCP implementation

svn path=/trunk/; revision=45291
2010-01-28 00:24:00 +00:00
Timo Kreuzer
c21ada51d6 [CRT]
- implement generic C version of cos(). On amd64 machines it will compile into very optimized SSE2 code. No need to use assembly.

svn path=/branches/ros-amd64-bringup/; revision=45290
2010-01-27 23:42:34 +00:00
Daniel Reimer
b76d8cf17a Update piperead to Version 0.3 (Jan Roeloffzen)
svn path=/trunk/; revision=45288
2010-01-27 22:13:26 +00:00
Daniel Reimer
166fa77176 Update log2lines to Version 1.11 (Jan Roeloffzen) Bug 4342
- Added -P Pipeline option for Powershell support, see below
- Renaming some structs to avoid potential naming conflicts with windows.h
- stdin/out -> stdIn/Out for redirecting
- Fixed potential mem leak
- A little more tracing and cleanup
Updated piperead (Jan Roeloffzen) Bug 5146
- Added Pipe client function, based on msdn example
- Improved option handling (try piperead -h)
- logging, error handling
- Integrated in build (pipetools.mak)

svn path=/trunk/; revision=45287
2010-01-27 19:03:52 +00:00
Cameron Gutman
57b3f4582a - Fix a potential buffer overrun and null pointer dereference
svn path=/branches/aicom-network-branch/; revision=45284
2010-01-27 08:49:48 +00:00
Cameron Gutman
79c35d419a - Handle the case where a socket sends an event notification without being accepted first
svn path=/branches/aicom-network-branch/; revision=45283
2010-01-27 07:44:42 +00:00
Sir Richard
532aff4429 [NTOS/PERF]: Enable VME support. VME stands for Virtual 8086 Mode Extensions, and it's an Intel optimization that makes changes to the IF bit in EFLAGS (CLI, STI, INT, IRETD, PUSHF, POPF) completely transprent: instead of changing the real (protected) bit, which requires the OS to trap and emulate the behavior, the CPU sets a "Fake" IF bit instead. When you're dong in V8086 mode, you simply update your real flag with whatever the fake flag says.
[NTOS]: Enable V8086 Fast-V86 Trap mode for Trap 6 (Invalid Opcode). Because we are now taking zero traps during V8086 mode, we can't do the "BOP lookahead", so the only trap we do get is when we hit the BOP/invalid opcode itself.
[NTOS]: Multiple fixes to V8086 opcode emulation code that I noticed while looking through the source. Also multiple fixes to VDM code.
This change will only impact real hardware and VMWare, since QEMU does not support VME. On VMWare, performance increased up to 400% during bootup (80 million cycles instead of 300 million, in one test).

svn path=/trunk/; revision=45282
2010-01-27 05:34:38 +00:00
Sir Richard
0aaa1fd765 [NTOS]: Trunk boots now (interesting that buildbot's QEMU does not support SYSENTER, as newer versions do), so remove the test DPRINTs.
svn path=/trunk/; revision=45281
2010-01-27 03:36:18 +00:00
Sir Richard
90e0457d60 [NTOS]: Rework the trap macros again. This time we needed some added complexity because of the need for runtime patching at boot. We got away with it nicely and basically implement a simple "if" in ASM, which gives us a deterministic set of instructions (vs the compiler). We then patch if if needed (see next bullet).
[NTOS]: Support systems without SYSENTER. Nothing was actually disabling the SYSEXIT mechanism recently enabled. Now IRET is always used unless a SYSENTER machine is discovered, in which case the jmp to the IRET code is patched with a jmp to SYSEXIT code.
[PERF]: Set WP0 bit in CR0 later, thus allowing the existing runtime patches (and this new one) to function without requiring MmSetPageProtect. Saves TLB flushes and page table walking/mapping on boot.
Left in some debug prints to see what buildbot reports...will remove if it survives.

svn path=/trunk/; revision=45280
2010-01-27 03:05:10 +00:00
Dmitry Gorbachev
e6111d4302 Output PCH, not dependencies.
svn path=/trunk/; revision=45279
2010-01-27 02:29:36 +00:00
James Tabor
502cd1c9c9 - Turn off debug print outs.
svn path=/trunk/; revision=45278
2010-01-27 00:06:48 +00:00
Sir Richard
49ca1be9f3 [HAL]: Implement the profile and clock interrupt trap/handlers in C instead of ASM. This allows the kernel to remove the ugly hacks based on internal knowledge of how the assembly/stack of the HAL is supposed to look like. Everything is now done through a clean C interface.
[NTOS]: Remove said hacks and have a normal C implementation of KeUpdateSystemTime. It exits the interrupt through a soft interrupt exit.
[NTOS]: Implement 4 lines of support code needed to handle interrupts during V8086 mode, which were lacking since we weren't hitting this case yet.
Note that now the KeUpdateSystemTime interface is not "compatible" with Windows anymore. This does not matter, since the only possible caller of KeUpdateSystemTime is a very specific HAL routine that needs a very specific stack layout to actually work, so the chance of anyone calling this API is absolutely zero (no, not even some experimental driver. It's absolutely impossible).

svn path=/trunk/; revision=45276
2010-01-26 21:41:05 +00:00
Sir Richard
92df9a6434 [HAL]: Rewrite all V8086-related code in C instead of ASM. Delete v86.s. Makes uses of new macros and developments in NTOS, but should now only end up getting called at shutdown and for bugchecks.
svn path=/trunk/; revision=45272
2010-01-26 19:41:31 +00:00
Sir Richard
842d2aa5f9 [PERF]: What to do when your SYSEXIT code has a bug? Set KiFastSystemCallDisable to TRUE so it never gets used. Now, for the first time in 3 years and 3 months (not giving a specific revision # to protect the 'innocent'), ReactOS actually fully uses the SYSENTER/SYSEXIT instructions isntead of IRETD, since my code doesn't exhibit the bug and SYSEXIT is safe to use. This should save a good hundred cycles or more per system call.
svn path=/trunk/; revision=45271
2010-01-26 19:39:21 +00:00
Sir Richard
dd14b916ff [PERF]: After spending the better part of the last two days rewriting the HAL V8086 code (used for BIOS Display Reset) in C, it dawned upon me that it shouldn't even be used during bootup in the first place! The boot loader, running in real-mode, already sets video mode 12 when starting ReactOS. We then repeat the operation, but since we're in protected mode, we have to emulate the whole sheebang with V8086 mode. We now initialize bootvid without requesting a mode switch (which was broken up until a commit ago). This gives us a dirty palette and VGA state. We then call VidResetDisplay to clean up the palette and setup the VGA registers correctly, but we only reset the screen if a custom /BOOTLOGO command is used (which isn't supported yet). We therefore don't need to enter V8086 mode at all up until the switch to graphics mode from the video card driver. Note that Windows doesn't do this (Win7 might due to the new Boot Graphics Library), so we're actually booting faster!
svn path=/trunk/; revision=45270
2010-01-26 19:29:37 +00:00
Sir Richard
590b4a4093 [BOOTVID]: Fix completely broken VidInitialize routine. I have no idea what the original code was trying to accomplish.
svn path=/trunk/; revision=45269
2010-01-26 19:21:41 +00:00
Sir Richard
71162a52f5 [NTOS]: Refactor some stub code and add a couple of more possible trap exit mechanisms (needed for HAL). Later we should really combine all the exit macros into one, as we've done for the entry macro.
svn path=/trunk/; revision=45268
2010-01-26 17:54:50 +00:00
Sir Richard
66a3a56604 [HAL]: Move the HalpApcInterrupt and HalpDispatchInterrupt to pic.c now that there is a C-macro to generate such stubs. Remove irq.S from build/sources.
svn path=/trunk/; revision=45267
2010-01-26 16:31:32 +00:00
Sir Richard
12a31f1df7 [NTOS]: Implement a C/Extended ASM macro for generating trap stubs, removing the need to do this in ASM. The macro covers all possible entries, from SYSENTER to a fake sotware interrupt (needed for HAL changes later). By being somewhat in C, it makes the code cleaner to read and uses C expressions to make its decisions, making the code more maintanable as well. It also removes the need for separate assembly files.
[NTOS]: Modify the semantics of how a fast system call (SYSENTER) is processed in the stub, by moving more work in the C handler, such as setting up FS and getting the correct argument stack. Saves us some cycles too (and allows the trap stub macro to be more generic).

svn path=/trunk/; revision=45266
2010-01-26 15:43:13 +00:00
Dmitry Chapyshev
102c63a3b6 - Update Ukrainian translation by Igor Paliychuk (igor-hkr[at]mail[dot]ru)
svn path=/trunk/; revision=45260
2010-01-26 10:23:30 +00:00
Cameron Gutman
e2aa2958fa - Define OSKIT so we can use special oskit functions
- Implement oskit buffer functions to track references and allocate buffers
 - Remove unneeded mbuf freeing hacks now that we track references (fixes random crashes would occur when an mbuf was freed inside ip_output)
 - Remove the "ACK hack" that we used to hack around our loopback implementation
 - Remove unneeded mbuf pool initialization
 - Remove unused code in sleep.c

svn path=/branches/aicom-network-branch/; revision=45257
2010-01-26 04:20:06 +00:00
Timo Kreuzer
9c9f4a9fd7 Revert r45245 - r45247
Although the idea of using mingw-w64's routines is good, we can't because it's using x87. We need SSE2.

svn path=/branches/ros-amd64-bringup/; revision=45255
2010-01-25 22:01:02 +00:00
Samuel Serapion
3ec17c4a18 Fix amd64 libcntpr.
svn path=/branches/ros-amd64-bringup/; revision=45247
2010-01-25 11:54:37 +00:00
Samuel Serapion
835a07e605 Forgot to svn add spec file.
svn path=/branches/ros-amd64-bringup/; revision=45246
2010-01-25 11:19:50 +00:00
Samuel Serapion
2ce7897109 [MSVCRT]
- Convert to spec, based on wine. Tons of stuff missing but compiles, links and runs abiword and firefox.
- Export floating point functions.
[CRT]
- Implement acosf, asinf, atanf, atan2f, copysign, copysignf, exp, expf, fabs, fmod, fmodf, hypotf, ceil, ceilf, cos, cosf, floor, floorf, log, log10, sin, sinf, tan, tanf, ldexp, log10f, logb, logbf, logf, modff, nextafter, nextafterf, powf, sinhf, sqrt, sqrtf, tanf, tanhf in amd64 compatible way. Made possible by mingw-w64.

svn path=/branches/ros-amd64-bringup/; revision=45245
2010-01-25 11:10:06 +00:00
Sir Richard
219e108e3c [NTOS]: Split the GENERATE_TRAP_HANDLER in two separate macros. The original builds the name of the function (and makes it global), while the TRAP_HANDLER_PROLOG is actually the code.
[NTOS]: Make TRAP_HANDLER_PROLOG handle software traps, in which the interrupt stack must be faked.
[NTOS]: Optimize TRAP_HANDLER_PROLOG by not pushing an error code and then making space on the stack without the error code -- just make space with the error code in the first place (nobody reads the value, so having it zero or garbage isn't important).
[HAL]:  Implement the APC and DPC software interrupt traps in C instead of ASM. Delete all contents of irq.S except the two GENERATE_TRAP_HANDLER stubs.

svn path=/trunk/; revision=45244
2010-01-25 03:00:01 +00:00
Sir Richard
ef75d24bac [HAL]: Implement HalEndSystemInterrupt and HalpEndSoftwareInterrupt. Remove more ASM code/tables that aren't unused anymore.
svn path=/trunk/; revision=45243
2010-01-25 01:51:47 +00:00
James Tabor
501fcfdd81 [Win32k|Ggi32]
- Diagnostic commit used for troubleshooting leaking region handles.
- Updates to headers and experimental code added for regions.

svn path=/trunk/; revision=45242
2010-01-25 01:33:01 +00:00
Sir Richard
461a068032 [HAL]: Implement HalRequestSoftwareInterrupt in C instead of ASM. Remove deprecated ASM code that was unused.
svn path=/trunk/; revision=45241
2010-01-25 01:26:53 +00:00
Sir Richard
fdae8b5c9c [HAL]: KfLowerIrql in C instead of ASM. Add the SWInterruptLookUpTable and SWInterruptHandlerTable to the code and keep the same mechanism as the ASM code used.
svn path=/trunk/; revision=45240
2010-01-25 01:20:43 +00:00
Sir Richard
8e91a3a3f9 [HAL]: Okay, this one was my fault, forgot to built the nasty-ass HALMPS. Move the CMOS lock routines to the shared CMOS file.
svn path=/trunk/; revision=45239
2010-01-24 23:57:09 +00:00
Sir Richard
44b79bf92f You really need to get your compiler version shit together. I was told GCC 4.4 is what's used in ReactOS, yet the build server insists on using an old and broken version of GCC that doesn't support half the things we're trying to do here! Hackfix the Mask Table by providing ugly and incomprehensible hex magic numbers for the mappings, if a GCC older than 4.4 is used.
svn path=/trunk/; revision=45238
2010-01-24 23:35:07 +00:00
Sir Richard
1215f71ed8 [HAL]: Implement and document the HalpSpecialDismissTable. Explain how each IRQ should be handled and what the special cases are. Implement said special cases (based on ISA System Architecture, 3rd Edition).
[HAL]: Implement HalBeginSystemInterrupt in C instead of ASM, it jumps into one of the IRQ handlers registered in the HalpSpecialDismissTable.

svn path=/trunk/; revision=45237
2010-01-24 23:30:43 +00:00
Sir Richard
f79bc2e7f0 [HAL]: Implement HalEnableSystemInterrupt and HalDisableSystemInterrupt in C instead of ASM.
svn path=/trunk/; revision=45236
2010-01-24 23:21:36 +00:00
Sir Richard
9c976d58e7 [HAL]: Document and implement KiI8259MaskTable in C using actual bit positions. Each mapping is best to the best of my ability.
[HAL]: Implement KfRaiseIrql in C, remove ASM version.

svn path=/trunk/; revision=45235
2010-01-24 23:19:40 +00:00
Sir Richard
575fd458f2 [HAL]: Implement KeGetCurrentIrql, KeRaiseIrqlToDpcLevel, KeRaiseIrqlToSynchLevel, HalClearSoftwareInterrupt in C instead of ASM.
svn path=/trunk/; revision=45234
2010-01-24 23:14:08 +00:00
Sir Richard
ab8a8ee784 [HAL] Merge HalpAcquireSystemHardwareSpinLock and HalpReleaseCmosSpinLock from Timo's AMD64 branch, and delete ASM implementations.
svn path=/trunk/; revision=45233
2010-01-24 23:12:30 +00:00
Dmitry Gorbachev
47d6a16b10 - Use __builtin_trap for old GCC, too.
- KiEoiHelper, KiDispatchExceptionFromTrapFrame: mark noreturn.
- Return DECLSPEC_NORETURNs.

svn path=/trunk/; revision=45232
2010-01-24 15:18:50 +00:00
Sir Richard
b4d77b18a8 [PERF]: Make the trap entry/exit macros inlined, just as they used to be before in their pure-assembly forms. This should boost performance quite a bit by avoiding 2-3 extra calls during traps and system calls.
[NTOS]: Cleanup the traphdlr.c vs. trap_x.h mess into something much more structured. trap_x.h is now all inlined C functions which pretty much replace the asmmacros.S file. It is meant to be used outside the kernel as well (such as by the HAL, which requires trap entry/exit too).
[PERF]: Give UNREACHABLE another try, this time with GCC 4.5+, 4.4+, 4.4- and MSVC support.
[PERF]: Remove ABIOS checks since ReactOS does not support this, and since it doesn't look like the target kernel actually does either, we can remove this vestigal/unsupported code, saving some extra branches and checks.

svn path=/trunk/; revision=45231
2010-01-24 05:40:04 +00:00
Dmitry Gorbachev
b743407fd6 Comment out DECLSPEC_NORETURN for now.
svn path=/trunk/; revision=45230
2010-01-24 02:25:20 +00:00
Dmitry Gorbachev
bb62cd780b Use for GCC before 4.5, too...
svn path=/trunk/; revision=45229
2010-01-24 02:07:40 +00:00
Dmitry Gorbachev
8e4230d981 Trying r45222 hack again...
svn path=/trunk/; revision=45228
2010-01-24 01:58:20 +00:00
Dmitry Gorbachev
a79f0c18c8 Put #endif where it should be.
svn path=/trunk/; revision=45227
2010-01-24 01:47:27 +00:00
Dmitry Gorbachev
5811cad11d Forgot ntdef.h
svn path=/trunk/; revision=45226
2010-01-24 01:37:13 +00:00
Dmitry Gorbachev
601c4ee420 Trying to fix build...
svn path=/trunk/; revision=45225
2010-01-24 01:35:25 +00:00
Dmitry Gorbachev
8b7f482f2a Fix vmwinst.exe crash (bug #5134).
svn path=/trunk/; revision=45224
2010-01-24 00:50:54 +00:00
Sir Richard
280c5bef1e [PERF]: Make all trap handlers, trap exit code, fatal exit code, and exception dispatch code "no return" since it always leads to an iret or other kind of non-directly-returning mechanism. This allows the compiler to optimize better and also remove useless code at the bottom of the functions. Since __builtin_unreachable is only for GCC 4.5, we use exit(0) for now (it will never be reached) to trick GCC.
svn path=/trunk/; revision=45223
2010-01-23 23:59:59 +00:00
Sir Richard
f4cdf7ef0f [PSDK]: Define DECLSPEC_NORETURN for MSVC and GCC.
svn path=/trunk/; revision=45222
2010-01-23 23:58:29 +00:00
James Tabor
98006d367a [Win32k]
- Fixed DCE masks, clipping and added support for mirror and process owned dce.
- Reference: http://www.reactos.org/archives/public/ros-dev/2008-July/010498.html http://www.reactos.org/archives/public/ros-dev/2008-July/010499.html

svn path=/trunk/; revision=45221
2010-01-23 23:55:32 +00:00
Dmitry Gorbachev
24c017fb93 Fix initialization of PICs.
svn path=/trunk/; revision=45220
2010-01-23 23:39:43 +00:00
Dmitry Gorbachev
c88ec84439 Fix build.
svn path=/trunk/; revision=45218
2010-01-23 21:57:15 +00:00
Sir Richard
cdb563f380 [PERF]: Replace early ZwClose system calls with ObCloseHandle(KernelMode). This avoids taking a system call for those cases and gives a slight perf boost to booting up the system. It also pushes the first system call somewhat later in the boot process, allowing for easier debugging should the interface have issues/need tracing.
[NTOS]: Do not attempt querying the Registry Primary Handle for the Backing Hive File Size in the case where there is no actual Primary! There was no error checking so nobody noticed this happens -- it also probably resets Cluster to 0 (instead of 1), which can cause corruption in some cases.
[NTOS]: Make KiUserTrap use the MODE_MASK instead of hard-coding a check for Ring 0 CS (which is slower and not as correct).

svn path=/trunk/; revision=45217
2010-01-23 21:27:26 +00:00
Dmitry Gorbachev
89f8b943b1 Remove duplicate definitions (now in time.c).
svn path=/trunk/; revision=45216
2010-01-23 21:24:36 +00:00
Matthias Kupfer
4edc99f6d0 - fix and add German translations
svn path=/trunk/; revision=45215
2010-01-23 20:18:23 +00:00
Sir Richard
0cae32e094 [NTOS]: Export the C KiEoiHelper alongside the ASM Ke386EoiHelper. Yes, this is a "ReactOS-only" export, but really this interface is reserved for the HAL, and as long as we keep Ke386EoiHelper, the NT HAL should still work.
Need to revisit/finalize this decision and whether or not we can emulate the C-interface with Ke386EoiHelper somehow (reliably).

svn path=/trunk/; revision=45214
2010-01-23 19:31:54 +00:00
Sir Richard
84a02b856b [NDK]: Some prototype fixes.
svn path=/trunk/; revision=45213
2010-01-23 19:29:33 +00:00
Sir Richard
e18680bb11 [NTOS]: KiDispatchInterrupt crushes EBX, so maybe it should preserve it first? This only worked because KiDispatchInterrupt was only called by ASM code that already was magically aware of this fact, and preserved (or didn't use) EBX before making the call. Yuck!
svn path=/trunk/; revision=45212
2010-01-23 19:28:26 +00:00
Aleksey Bragin
5c2e1ab00c Jose Catena <jc1@diwaves.com>
- Fix a typo in aulldvrm (one of the dividends was always wrong).
See issue #5139 for more details.

svn path=/trunk/; revision=45211
2010-01-23 19:26:06 +00:00
Sir Richard
c030074001 [PERF]: Do not declare the PCR in KeGetPcr as volatile. It is only volatile as in "if there is a context switch, the PCR is different". You are in a LOT of trouble if the thread switches while your code is running in the first place, and your code is somehow running as a different thread!
This change makes C code a lot neater, especially during PCR access, because it doesn't force reloading the PCR each time. For example, Read-Modify-Operations on the PCR, such as AND are 1 line of assembly instead of 3.
This helps and will help further with the C HAL, as well as the C trap handlers.

svn path=/trunk/; revision=45210
2010-01-23 18:28:14 +00:00
Dmitry Gorbachev
41563f3396 Fix English translation of RApps. Andrew Faulds (ajfweb =at= googlemail =dot= com), bug #5138.
svn path=/trunk/; revision=45209
2010-01-23 17:26:30 +00:00
Samuel Serapion
1ac4e0fac7 - commctrl.h: revert a change from 45098 which is incorrect.
- make some floating point math available on x64
- build fixes.

svn path=/branches/ros-amd64-bringup/; revision=45208
2010-01-23 04:18:57 +00:00
Dmitry Chapyshev
1c1c72324a - Add/update Ukrainian translation by Sakara Yevhen (eresid[at]gmail[dot]com) and Igor Paliychuk (igor-hkr[at]mail[dot]ru)
- Update Russian translation for sysdm

svn path=/trunk/; revision=45205
2010-01-22 17:03:08 +00:00
Dmitry Chapyshev
aa2498046e - Add/update Ukrainian translation by Sakara Yevhen (eresid[at]gmail[dot]com) and Igor Paliychuk (igor-hkr[at]mail[dot]ru)
- Update Russian translation for spider

svn path=/trunk/; revision=45204
2010-01-22 16:53:12 +00:00
James Tabor
94298228e1 [Win32k]
- Remove CriticalRegion calls.

svn path=/trunk/; revision=45198
2010-01-22 01:29:21 +00:00
James Tabor
be48e3ae53 [Win32k]
- Remove CriticalRegion calls.

svn path=/trunk/; revision=45197
2010-01-22 01:12:06 +00:00
Timo Kreuzer
f4519c0c43 Merge from amd64-branch:
44886 KxAcquireSpinLock: check for already owned lock only on debug builds, fix check in inner loop, don't call Kii386SpinOnSpinLock inside the inner loop, but instead of it, simplify the code. Stubplement Kii386SpinOnSpinLock in C
44893 Move spinlock inline functions into their own header, so they can be shared with hal.

svn path=/trunk/; revision=45196
2010-01-21 22:34:01 +00:00
Timo Kreuzer
36d8d87a11 [HAL]
Cleanup part 1/x
- Rename each architectures default hal to "hal" and delete the stubbed "hal" module.
- Delete halamd64 (will later reuse the x86 hal)
- Rename "halmp" to "halmps" as it's called on windows
- Set HalInitSystem as entry point
- Move pcibus.c into hal_generic.rbuild
- Use a common .pspec file
- Use a directory.rbuild for halx86 as it was done for the other architectures already
- Move some code from hal_generic to hal_generic_up
- No code change

svn path=/trunk/; revision=45195
2010-01-21 21:05:45 +00:00
Samuel Serapion
351f173762 Fix build.
svn path=/branches/ros-amd64-bringup/; revision=45193
2010-01-21 19:54:40 +00:00
Timo Kreuzer
ed70a6466b fix build with USERMODE = 1
svn path=/branches/ros-amd64-bringup/; revision=45192
2010-01-21 19:48:38 +00:00
Timo Kreuzer
9034baffe6 [FREELDR]
Remove deprecated reactos loader code

svn path=/branches/ros-amd64-bringup/; revision=45191
2010-01-21 19:43:08 +00:00
Samuel Serapion
d16e5ecdca - Remove old HalpInitPICs
svn path=/branches/ros-amd64-bringup/; revision=45190
2010-01-21 19:40:32 +00:00
Timo Kreuzer
663e3ac4c2 [HAL]
Fix build

svn path=/branches/ros-amd64-bringup/; revision=45189
2010-01-21 19:34:30 +00:00
Timo Kreuzer
f7a3094ecc [NTOS]
Fixup code based on recent changes

svn path=/branches/ros-amd64-bringup/; revision=45188
2010-01-21 19:33:47 +00:00
Timo Kreuzer
4409da3038 [NTOS]
- Comment out NtRaiseException and NtContinue for now
- Use TrapFrame->PreviousMode like done for arm

svn path=/branches/ros-amd64-bringup/; revision=45187
2010-01-21 19:32:39 +00:00
Timo Kreuzer
5f457606f3 Merge trunk r45185
svn path=/branches/ros-amd64-bringup/; revision=45186
2010-01-21 18:34:48 +00:00
Timo Kreuzer
b9ebd4c107 [NTOS]
- Fix bugcheck paramters in KiGeneralProtectionFault
- Disable x87 fpu exceptions

svn path=/branches/ros-amd64-bringup/; revision=45185
2010-01-21 18:00:23 +00:00
Timo Kreuzer
bc00bfdb25 reduce difference to trunk
svn path=/branches/ros-amd64-bringup/; revision=45184
2010-01-21 17:58:38 +00:00
Christoph von Wittich
051cf08911 [HAL]
-header cleanup
-spaces -> tabs in rbuild file

svn path=/trunk/; revision=45183
2010-01-21 13:43:49 +00:00
Sir Richard
819e842b8e [HAL]: The HAL is a mess. Fix build.
svn path=/trunk/; revision=45182
2010-01-21 13:36:30 +00:00
James Tabor
890497afd7 [Win32k]
- Fixes to region support code. See bug 5124. 

svn path=/trunk/; revision=45181
2010-01-21 13:18:33 +00:00
Sir Richard
202f931c4e [HAL]: Initialize the i8259A PIC controllers in C, and add register structures and enumerations to document the bits. These were taken from ISA System Architecture 3rd Edition and EISA System Architecture 2nd Edition by Mindshare.
[HAL]: Add code to detect EISA systems with ELCR (Edge/Level Control Register). Since the current HAL does not support these, warn users about any level/shared interrupts, since they are likely to cause trouble.

svn path=/trunk/; revision=45180
2010-01-21 12:51:13 +00:00
Cameron Gutman
ffdab4c2f5 Merge aicom-network-branch (without NDIS changes for now)
New noteworthy improvements include (in addition to the other improvements made in the commits that were reverted in trunk):
 - Support for sending/receiving packets > 16KB in size
 - Samba-tng works
 - Tracert works
 - Major speed and stability improvements (especially for TCP connections)
 - Use ExAllocatePoolWithTag/ExFreePoolWithTag instead of memtrack

svn path=/trunk/; revision=45172
2010-01-21 03:48:10 +00:00
James Tabor
1964950642 [Win32k]
- Add system region support functions.

svn path=/trunk/; revision=45171
2010-01-21 02:58:52 +00:00
James Tabor
d0d7c7c47f [Win32k]
- Implement IntGdiSetBrushOwner for bug 5124. 

svn path=/trunk/; revision=45170
2010-01-21 01:39:19 +00:00
James Tabor
2899820ed5 [User32]
- Revert 44988, fix crash in win user32 wine test.

svn path=/trunk/; revision=45169
2010-01-21 00:49:25 +00:00
James Tabor
25b52444b5 [Win32k]
- System regions do not possess user attribute sections. See bug 5124.
- Read the patch for more information.

svn path=/trunk/; revision=45168
2010-01-21 00:14:06 +00:00
Timo Kreuzer
801f2e9f36 [RTL]
Fix a bug in RtlFindNextForwardRunSet, that was returning the wrong bit position. Found by Amine Khaldi.

svn path=/trunk/; revision=45167
2010-01-20 23:34:21 +00:00
Daniel Reimer
6519a78fee Try to fix FF2 Download.
svn path=/trunk/; revision=45166
2010-01-20 23:19:22 +00:00
Timo Kreuzer
74cd1f3fa7 [CRT]
Remove unused variables. Patch by Amine Khaldi.

svn path=/trunk/; revision=45165
2010-01-20 22:56:01 +00:00
Sir Richard
fc405bb3c2 [RBUILD]: Use correct kernel entrypoint symbol name. Forgot to commit this earlier.
Please, next time before you harass us with e-mails, try to read your logs. LD choses a random entrypoint if the symbol cannot be found.

svn path=/trunk/; revision=45162
2010-01-20 14:09:50 +00:00
Dmitry Gorbachev
d6fa8735be Fix build-2.
svn path=/trunk/; revision=45161
2010-01-20 10:59:39 +00:00
Dmitry Gorbachev
274f2bcdb3 Fix build.
svn path=/trunk/; revision=45160
2010-01-20 10:38:40 +00:00
Sir Richard
01d2a95033 [NTOS]: Implement KiSwapProcess in C.
[NTOS]: Implement KiIsNpxPresent and KiIsNpxErrataPresent in C. It's much clearer what these are doing now.
[NTOS]: Implement KiFlushNPXState and fix some bugs that were present in the ASM version, such as a wrong NPX state check.
[NTOS]: Implement working intrinsics for fxrstor, fxsave, fnsave and enable them for flushing. We'll update the FPU trap code to use these later.

svn path=/trunk/; revision=45156
2010-01-20 04:05:08 +00:00
James Tabor
04a018d92b - Add dclevel flags.
svn path=/trunk/; revision=45155
2010-01-20 01:40:27 +00:00
Sir Richard
fdc6352f10 [NTOS]: Workaround for GCC 4.4.x bug reported by Dmitry.
svn path=/trunk/; revision=45154
2010-01-19 22:21:12 +00:00
Kamil Hornicek
6a901b0a67 - fix build, thanks Black_Fox
svn path=/trunk/; revision=45153
2010-01-19 21:19:56 +00:00
Sir Richard
2b21bf41f4 [FREELDR]: Jump to a standard 1-parameter STDCALL kernel entrypoint instead of a FASTCALL double-parameter entrypoint.
[NTOS]: Make KiSystemStartup the real C entrypoint of the kernel, and move the "Am I being booted by FreeLDR" logic inside it -- it will then call KiRosPrepareForSystemStartup as earlier.
[NTOS]: Move the Double Fault and Boot Stack declaration in C code, with the proper alignment attribute.
[NTOS]: Although the concern that KiSystemStartup cannot be 100% C since it modifies ESP is real (Thomas' original fix of Alex's code), we don't need that much of it in assembly. Instead, write a simple trampoline (KiSwitchToBootStack) inline which switches stacks and jumps to a second-stage C function.
[NTOS]: Completely remove boot.S as it isn't needed anymore, ReactOS startup is back to being (nearly) 100% C.

svn path=/trunk/; revision=45152
2010-01-19 18:27:24 +00:00
Sir Richard
b5b72b8be6 [NTOS]: Try backing out a change to see if thix fixes BuildBot.
svn path=/trunk/; revision=45150
2010-01-19 15:26:16 +00:00
Daniel Reimer
87ee3e1f91 Update the d3dx9_XX.dll files to the recent wine release version. Mostly stubs, but many games appreciate their existance.
svn path=/trunk/; revision=45149
2010-01-19 10:09:33 +00:00
Sir Richard
bb3df24b50 [NTOS]: Implement GUI thread promotion during the first GUI system call in C. This is tricky due to EBP, and actually requires some tiny inline ASM magic to make it work right.
[NTOS]: Implement SYSENTER system calls in C as well.

All system calls are now handled in C. This code will be further optimized/refined soon.

svn path=/trunk/; revision=45148
2010-01-19 09:45:30 +00:00
Sir Richard
d4efc1a06c [NTOS]: Convert system call handling to C. Only kernel system calls are done this way for now, not SYSENTER calls from user-mode. A small ASM trampoline is used inline for the call itself.
svn path=/trunk/; revision=45147
2010-01-19 09:20:40 +00:00
Sir Richard
9ef69503ed [NTOS]: Fix build.
svn path=/trunk/; revision=45146
2010-01-19 08:51:37 +00:00
Sir Richard
7bd79bce9e [NTOS]: We don't actually need wrappers for NtContinue/NtRaiseException. These are now fully portable C code, so move them appropriately.
svn path=/trunk/; revision=45145
2010-01-19 08:41:03 +00:00
Sir Richard
94d748c642 [NTOS]: Kei386EoiHelper now jumps into the C KiEoiHelper. All interrupt exit is now done through the C trap exit code.
[NTOS]: The ASM KiServiceExit/KiServiceExit2 are no more. All system call exit is now done through the C trap exit code.

svn path=/trunk/; revision=45144
2010-01-19 08:35:37 +00:00
Sir Richard
b6fb14da50 [NTOS]: Implement the special NtRaiseException in C as well, just like we did for NtContinue.
svn path=/trunk/; revision=45143
2010-01-19 08:26:25 +00:00
Sir Richard
e8437a07f6 [NTOS]: Implement "Edited Trap Frame" exit. This funky trick is actually how NT emulates longjmp/setjmp when doing an NtContinue: it allows arbitrary return with a new CS/ESP.
[NTOS]: Implement C version of KiServiceExit, the second system call exit routine. This one sets a new EAX value to be returned to the caller and is used by system calls.
[NTOS]: Implement NtContinue in C instead of ASM. Due to the changes above, this can now be done in C and use the new KiServiceExit.

svn path=/trunk/; revision=45142
2010-01-19 08:20:12 +00:00
Sir Richard
aba18024bd [NTOS]: Implement KiServiceExit2, C Version. This is used for exiting to user-mode with full state restore (as in NtContinue, thread startup, NtRaiseException...).
[NTOS]: Implement system service exit (for system calls or KiServiceExit2) in KiExitTrap. Both iret (for user calls), jmp (for kernel calls) and sysexit (for user fast calls) are implemented.
[NTOS]: Implement KiThreadStartup in C instead of ASM. It is the first caller of the new KiServiceExit2. Threads now start up in C!

svn path=/trunk/; revision=45141
2010-01-19 06:34:15 +00:00
Sir Richard
bf8b9467dc [NTOS]: Implement KeUpdateSystemTime and KeUpdateRunTime in C instead of ASM. Based off eVb's ARM implementation, with multiple bugs fixed (incorrect update of system counters, incorrect expiration of timers, remove non-used debug features, use locks when needed).
[NTOS]: Implement KiComputeTimerTableIndex in C instead of ASM. Based off eVb's ARM implementation, bugfixed to do correct math instead.

As a side effect, this should fix timers on ARM ;-)

svn path=/trunk/; revision=45140
2010-01-19 06:16:47 +00:00
Christoph von Wittich
d6b8e75c83 [WINDOWSCODECS]
update wincodec.idl to wine 1.1.36

svn path=/trunk/; revision=45139
2010-01-18 20:39:30 +00:00
Christoph von Wittich
4762ec5ea0 [WINDOWSCODECS]
update windowscodecs to wine 1.1.36

svn path=/trunk/; revision=45138
2010-01-18 20:36:58 +00:00
Timo Kreuzer
1108cf10b1 [NTOS]
Fix possible NULL pointer dereference. Spotted by Amine Khaldi.

svn path=/trunk/; revision=45137
2010-01-18 17:24:28 +00:00
Christoph von Wittich
27a2254546 [MSHTML_WINETEST]
update mshtml winetest to wine 1.1.36

svn path=/trunk/; revision=45136
2010-01-18 16:59:11 +00:00
Christoph von Wittich
24cd3eb4cb [MSXML3]
update msxml3 to wine 1.1.36

svn path=/trunk/; revision=45135
2010-01-18 16:53:59 +00:00
Timo Kreuzer
b90d243037 [NTOS]
Fix buffer overrun in ExFreePoolWithTag when dealing with a PoolType other than NonPagedPool and PagedPool. Spotted by Amine Khaldi.

svn path=/trunk/; revision=45134
2010-01-18 16:43:58 +00:00
Christoph von Wittich
29193e1051 [MSHTML]
update mshtml to wine 1.1.36

svn path=/trunk/; revision=45133
2010-01-18 16:27:14 +00:00
Timo Kreuzer
31842662a8 [NTOS]
KiTrap0DHandler: fix buffer overrun (Spotted by Amine Khaldi) and optimize the code by checking the counter variable, instead of Instruction, this works the same, but the compiler can make sense of it and safe one comparison.

svn path=/trunk/; revision=45132
2010-01-18 16:16:59 +00:00
Sylvain Petreolle
f783339b11 [ADVAPI]
Sync OpenEventLogA with wine.
RtlCreateUnicodeStringFromAsciiz breaks null checks.

svn path=/trunk/; revision=45131
2010-01-18 16:03:30 +00:00
Christoph von Wittich
ebaf29efc8 [QUARTZ]
update quartz to wine 1.1.36

svn path=/trunk/; revision=45130
2010-01-18 14:28:36 +00:00
Cameron Gutman
eaf8ca78e4 - Fix calculation of the maximum data size (it previously calculated 65519 (0xFFFF - sizeof(ICMPv4Header) - sizeof(LARGE_INTEGER)) which was wrong because the real maximum was 65499 (0xFFFF - sizeof(IPv4Header) - sizeof(ICMPv4Header) - sizeof(LARGE_INTEGER)))
- Implement -f and -i options
 - Note: This raises our max ping data size to 65507 (0xFFFF - sizeof(IPv4Header) - sizeof(ICMPv4Header)) so we match linux's (iputils) ping max size but Windows' max is 65500 and I'm not sure if we should change our code to match Windows or not

svn path=/branches/aicom-network-branch/; revision=45129
2010-01-18 00:52:31 +00:00
Matthias Kupfer
cea3c125e2 - fix file path in header
- add German translation

svn path=/trunk/; revision=45128
2010-01-17 22:37:09 +00:00
Samuel Serapion
9e33320c2a Try fix build again
svn path=/branches/ros-amd64-bringup/; revision=45127
2010-01-17 22:36:11 +00:00
Samuel Serapion
dccc119ded Fix win32k build
svn path=/branches/ros-amd64-bringup/; revision=45126
2010-01-17 22:02:50 +00:00
Sylvain Petreolle
20e9adf489 Add parameters check to ReadEventLog.
Fixes last advapi32:eventlog crash

svn path=/trunk/; revision=45125
2010-01-17 21:40:39 +00:00
Samuel Serapion
682ff1ba02 Fix user32 build.
svn path=/branches/ros-amd64-bringup/; revision=45124
2010-01-17 21:38:25 +00:00
Eric Kohl
734debd8dc Implement ElfrRegisterEventSourceA.
svn path=/trunk/; revision=45123
2010-01-17 15:16:26 +00:00
Eric Kohl
a811921d8e Empty the card stacks before showing the win message box.
svn path=/trunk/; revision=45122
2010-01-17 12:51:16 +00:00
Matthias Kupfer
929ff6e2ac - fix and add several German and English translations
svn path=/trunk/; revision=45121
2010-01-17 12:51:08 +00:00
Timo Kreuzer
2c0ce1ef8f [KE]
- Fix setting of fs in KeContextToTrapFrame and comparison in KiGeneralProtectionFault

svn path=/branches/ros-amd64-bringup/; revision=45120
2010-01-17 09:38:11 +00:00
Christoph von Wittich
b7cfbffd76 [advpack]
update advpack to wine 1.1.36

svn path=/trunk/; revision=45119
2010-01-17 08:29:56 +00:00
Christoph von Wittich
3afb71110b [cabinet_winetest]
update cabinet winetest to wine 1.1.36

svn path=/trunk/; revision=45118
2010-01-17 08:23:35 +00:00
Samuel Serapion
4411501d4e [KDBG]
- Make backtrace addresses also print correctly.

svn path=/branches/ros-amd64-bringup/; revision=45117
2010-01-17 08:02:52 +00:00
Samuel Serapion
6e80066aad [HAL]
Fix mp and mps builds.

svn path=/branches/ros-amd64-bringup/; revision=45116
2010-01-17 07:56:11 +00:00
Samuel Serapion
adc81bcec9 Fix building in compilers without __int64
svn path=/branches/ros-amd64-bringup/; revision=45115
2010-01-17 07:31:35 +00:00
Samuel Serapion
66062a3d7f [KDBG]
- Fix issue were prompt was unresponsive after first command.
- Enable x86_64 disassembly and default to intel syntax
- Print addresses with %p so that their full 64bit glory is shown.
- Fix a warning.

svn path=/branches/ros-amd64-bringup/; revision=45114
2010-01-17 07:20:26 +00:00
Benedikt Freisen
d84c76f347 [Paint] Initial support for free selections, resizing selections and experimental selection transparency
svn path=/trunk/; revision=45113
2010-01-16 23:21:45 +00:00
Timo Kreuzer
f1ca0f6da8 [KE]
- Save extended xmm registers and in the ExceptionFrame
- Restore registeres from the ExceptionFrame

svn path=/branches/ros-amd64-bringup/; revision=45112
2010-01-16 19:21:37 +00:00
Sylvain Petreolle
d005d3aaa4 silence wdmaud debug
svn path=/trunk/; revision=45110
2010-01-16 18:54:31 +00:00
Sylvain Petreolle
39b6e96497 Assign rpcss to its actual group.
Fixes rpcss/spooler load order.

svn path=/trunk/; revision=45109
2010-01-16 18:44:17 +00:00
Eric Kohl
b58a692add Display CSConfigFlags.
svn path=/trunk/; revision=45108
2010-01-16 17:07:41 +00:00
Eric Kohl
b060fb3ebf Implement CM_Set_HW_Prof[_Ex].
svn path=/trunk/; revision=45107
2010-01-16 16:31:58 +00:00
Eric Kohl
24d37d7161 Implement PNP_HwProfFlags.
svn path=/trunk/; revision=45106
2010-01-16 16:18:00 +00:00
Cameron Gutman
3a3d5b8571 - Fix a null-pointer dereference crash that happens when we complete a queued NDIS_REQUEST in MiniportWorker
svn path=/branches/aicom-network-branch/; revision=45102
2010-01-16 14:59:54 +00:00
Aleksey Bragin
13f71da4f1 [SDK]
- Add missing IIDs to UUID.

svn path=/trunk/; revision=45099
2010-01-16 13:52:51 +00:00
Aleksey Bragin
163e1d6d27 [PSDK]
- Merge Wine-1.1.36 changes to commctrl.h.

svn path=/trunk/; revision=45098
2010-01-16 13:40:30 +00:00
Aleksey Bragin
1727d02629 [PSDK]
- Add commoncontrols.idl from Wine-1.1.36 (needed for newer comctl32).

svn path=/trunk/; revision=45097
2010-01-16 12:39:44 +00:00
James Tabor
95f100163d [Win32k]
- Fix the window handle De/Reference throttler issue. Used mIrc.

svn path=/trunk/; revision=45096
2010-01-16 05:56:22 +00:00
Timo Kreuzer
8a429f3d78 [NTOS]
- Implement KiInitializeCpuFeatures amd call it early in the boot process
- fix KeProcessorArchitecture
- sumplify KiGetCpuVendor
- fix and enable __lldt
- remove some legacy code

svn path=/branches/ros-amd64-bringup/; revision=45095
2010-01-16 04:36:56 +00:00
Cameron Gutman
58f686f670 - Fix ECHO_REPLY_HEADER which was corrupting incoming packets (fixes displaying reply time)
- Fix a bug in the packet waiting code
 - Display the IP address if getnameinfo fails
 - tracert is actually useful now

svn path=/branches/aicom-network-branch/; revision=45094
2010-01-16 03:30:10 +00:00
Cameron Gutman
3f6a56fa36 [TDILIB, IPHLPAPI, WSHTCPIP]
- Move the TDI stuff from iphlpapi to a shared library called tdilib
[IP]
 - Implement tcpip side of IP_HDRINCL
[PSDK, WSHTCPIP, WSHIRDA]
 - Fix definition of WSHGetSocketInformation
[PSDK]
 - Add AO_OPTION_* defines
[WSHTCPIP]
 - Request notifications for bind also
 - Implement WSHSetSocketInformation
[MSAFD]
 - Implement event notifications (bonus: fixes a memory leak on socket closure due to unfreed helper context)
 - Store TdiConnectionHandle the same way we store TdiAddressHandle
 - Half-plement WSPSetSockOpt
 - Fix WSPGetSockOpt
[TCPIP]
 - Handle AO_OPTION_TTL, AO_OPTION_IP_DONTFRAGMENT (not working yet), AO_OPTION_BROADCAST (not working yet), and AO_OPTION_IP_HDRINCL
 - Add new members of ADDRESS_FILE for the preceding AO options
[AFD]
 - Return the connection handle in the Information of the IOSB (same as we do with the address file handle)
[GENERAL]
 - Tracert works now

svn path=/branches/aicom-network-branch/; revision=45093
2010-01-16 00:05:15 +00:00
James Tabor
683078276e [User32]
- Patch by Kusanagi Kouichi : Make DefWindowProc handle Shift+F10.
- Keyboard hotkey issues need looking after. See bug 642, 1009, 3560 and 4609.
- Input.c header modified.

svn path=/trunk/; revision=45092
2010-01-15 23:51:41 +00:00
Sylvain Petreolle
7f3c71e5ea Disable spooler service.
This allows bootcdregtest to start here under qemu-kvm.

svn path=/trunk/; revision=45091
2010-01-15 22:17:16 +00:00
Cameron Gutman
2522eb7b9b - Fix a bug with our tei_instance selection (we could end up with the same tei_instance value on different entities of the same type if an entity of our type in the middle of the list was deleted previously)
svn path=/branches/aicom-network-branch/; revision=45090
2010-01-15 21:00:50 +00:00
Timo Kreuzer
46d47eb029 [CRT]
Patch by Jose Catena:
vsnprintf: added support for ll size specifier

See issue #5122 for more details.

svn path=/trunk/; revision=45089
2010-01-15 21:00:20 +00:00
Timo Kreuzer
59e66ba7e8 [CRT]
Patch by Jose Catena:
allmul produced wrong results when the higher 32 bits of any of the 64 bit operands are not zero. As the comment correctly said the definition of param locations must change
since esp was altered, but the definitions were not actually changed

See issue #5121 for more details.

svn path=/trunk/; revision=45088
2010-01-15 20:45:36 +00:00
Cameron Gutman
b7457ec3d8 - Restore the worker in the loopback code because we can enter the loopback code from TCPPacketSend at a raised IRQL
- Fixes a crash with TCP over loopback

svn path=/branches/aicom-network-branch/; revision=45087
2010-01-15 18:01:52 +00:00
James Tabor
fc70f9c60c [Win32k|User32]
- Switch to the new user handle manager. Added more handle types to win32k. One or two step to WND, desktop heap supported.
- Test with every application in my test suite. Needs more testing and clean up. Bleeding edge!

svn path=/trunk/; revision=45085
2010-01-15 13:47:25 +00:00
Timo Kreuzer
7185241ed4 Reduce difference to trunk
svn path=/branches/ros-amd64-bringup/; revision=45084
2010-01-15 13:09:00 +00:00
Timo Kreuzer
d7a1041c8c [NTOS]
Enable fx save restore support earlier and uncomment it in trap handlers.

svn path=/branches/ros-amd64-bringup/; revision=45083
2010-01-15 11:27:54 +00:00
Timo Kreuzer
b2e87768af [NTOS]
Implement InterruptDispatchTable, containing 256 dispatch stubs, that push the Vector on the stack and then jump to KiUnexpectedInterrupt. This way we have the vector as ErrorCode on the stack and we can report it with KeBugCheckWithTf.

svn path=/branches/ros-amd64-bringup/; revision=45082
2010-01-15 00:13:38 +00:00
Aleksey Bragin
44648580d7 [winetests]
- Sync gdi32 and user32 winetests to Wine-1.1.36.

svn path=/trunk/; revision=45081
2010-01-14 22:35:53 +00:00
Aleksey Bragin
cd4b708596 [PSDK]
- Add WM_DWM* message defines.

svn path=/trunk/; revision=45080
2010-01-14 22:33:25 +00:00
James Tabor
2a2bb84b32 [Win32k|User32]
- Started the user handle rewrite.

svn path=/trunk/; revision=45079
2010-01-14 13:33:04 +00:00
Timo Kreuzer
52c5ac7be7 Fix merge artifacts
svn path=/branches/ros-amd64-bringup/; revision=45078
2010-01-14 09:53:02 +00:00
Timo Kreuzer
7af355b0e9 reduce difference to trunk
svn path=/branches/ros-amd64-bringup/; revision=45077
2010-01-14 09:47:01 +00:00
Timo Kreuzer
06eb4351b2 [MESA32]
Add amd64 specific rbuild entries

svn path=/trunk/; revision=45076
2010-01-14 09:42:17 +00:00
Timo Kreuzer
55dd5f17c9 [MESA32]
- define GL_NO_STDCALL for non-x86 builds

svn path=/branches/ros-amd64-bringup/; revision=45075
2010-01-14 09:36:06 +00:00
Timo Kreuzer
5e5df9a707 Sync to trunk HEAD (r45072)
svn path=/branches/ros-amd64-bringup/; revision=45074
2010-01-14 08:53:42 +00:00
Timo Kreuzer
3f1658e744 [NTOS]
Add KeGetContextSwitches macro for amd64

svn path=/branches/ros-amd64-bringup/; revision=45073
2010-01-14 08:40:16 +00:00
Timo Kreuzer
df461e55cc [HAL]
add HalInitializeBios to amd64 exports

svn path=/branches/ros-amd64-bringup/; revision=45072
2010-01-14 07:56:34 +00:00
Timo Kreuzer
e76849d9af reduce differences to trunk
svn path=/branches/ros-amd64-bringup/; revision=45071
2010-01-14 07:53:23 +00:00
James Tabor
1e2a5d67cd [Win32k]
- Updated headers and related files.

svn path=/trunk/; revision=45070
2010-01-14 02:52:12 +00:00
Timo Kreuzer
85441000ae Fix wrong positioned #else
svn path=/branches/ros-amd64-bringup/; revision=45069
2010-01-14 00:45:11 +00:00
James Tabor
058c21696d [Win32k|User32]
- Updated headers for the next round of changes.

svn path=/trunk/; revision=45068
2010-01-14 00:43:54 +00:00
Timo Kreuzer
49c5dfc4fe remove diff to trunk
svn path=/branches/ros-amd64-bringup/; revision=45067
2010-01-13 23:05:26 +00:00
Timo Kreuzer
f9868fc771 Merge from amd64-branch:
34969 Some ULONG / SIZE_T fixes, handle amd64 in PspCreateThread
34986 Fix several 64 bit issues
35968 Fix Size parameter of CmpAllpcate (ULONG->SIZE_T).
35970 Fix pointer <-> ULONG cast
35971 Fix pointer <-> ULONG cast fixes
36332 fix 64 bit warnings
37435 Fix several ULONG/ULONG_PTR issues. Add a parameter to DefaultQueryInfoBufferCheck for ULONG_PTR/SIZE_T ResultLength
39522 ExInitializeSystemlookasideList: Use InitializeSListHead instead of directly accessing the members. ExpAllocateLocallyUniqueId: use InterlockedCompareExchange64 instead of non-portable ExfInterlockedCompareExchange64
37433 fix InterlockedExchangePointer usage
38105 Use KeGetCurrentPrcb() instead of KeGetPcr()->Prcb / KeGetPcr()->CurrentPrcb
39160 Use wbinvd instruction for amd64, too.

svn path=/trunk/; revision=45066
2010-01-13 22:35:43 +00:00
Sir Richard
0206768d44 [NTOS]: Fix bug in illegal instruction trap handling. Patch by Timo Kreuzer <physicus@reactos.org>.
svn path=/trunk/; revision=45065
2010-01-13 22:06:48 +00:00
Sir Richard
03b23a2450 Perf improvements:
[NTOS]: Optimize trap entry/exit by manually copying registers to the trap frame the correct way from the first time. Avoids conversion between PUSHA and KTRAP_FRAMEs and makes trap frames compatible the whole time (other than being slightly faster).
    [NTOS]: Provide compiler with hints on likely code paths during trap entry and exit, which makes the code more linear and improves performance. The following assumptions (known to be true) are made: (1) Interrupts happen more often than system calls (per unit of time), so prioritize paths we take during interrupts. (2) The CPU spends most of its time in Ring 3, so prioritize traps from user-mode. (3) V8086 mode, debugging, 16-bit stacks, are uncommon, so de-prioritize them.
    [NTOS]: Use KTRAP_FRAME offset names recommended by Timo instead of substraction which was confusing some people (still seems clearer to me).

svn path=/trunk/; revision=45064
2010-01-13 22:01:20 +00:00
Sir Richard
1cb5c9f019 [NTOS]: Remove debug spew (but keep Flag macros and fixes which fixed other bugs), thanks Timo.
svn path=/trunk/; revision=45063
2010-01-13 21:56:14 +00:00
Timo Kreuzer
a12f63e380 [NTOS]
KiExitV86Mode is supposed to return a pointer to the protected mode KTRAP_FRAME. Instead it was returning the value of TrapFrame->Edi, which would be identical to PmTrapFrame->Ebp, which doesn't have any particular meaning. Fix it by returning PmTrapFrame directly. Fixes 2nd stage boot.

svn path=/trunk/; revision=45062
2010-01-13 21:31:55 +00:00
Daniel Reimer
8e24e6be5e Update the Rapps Entries to up to date Versions.
svn path=/trunk/; revision=45061
2010-01-13 16:48:13 +00:00
Daniel Reimer
f142f6802c Bug 5072: PATCH: Add ReMooD to ReactOS Application Downloader. (by GhostlyDeath)
Added a German translation myself.

svn path=/trunk/; revision=45060
2010-01-13 15:46:00 +00:00
Sir Richard
de10db923c [NTOS]: Fix some bugs and cleanup V8086 code in regards to flags usage.
[NTOS]: Add VDM debug spew to see why there's now an invalid opcode on Windows builds of VMWare and certain QEmu combinations. (Note: the double fault issue is fixed, this is a new issue).

svn path=/trunk/; revision=45057
2010-01-13 03:43:03 +00:00
Timo Kreuzer
b4707f7f79 Update file from trunk
svn path=/branches/ros-amd64-bringup/; revision=45056
2010-01-13 01:10:36 +00:00
Timo Kreuzer
1697ed0f17 Add a dummy PSEH2 for amd64
svn path=/trunk/; revision=45055
2010-01-12 23:15:23 +00:00
Timo Kreuzer
40a5eb2996 Enable a few definitions for amd64, too
svn path=/trunk/; revision=45054
2010-01-12 20:30:43 +00:00
Timo Kreuzer
cffde6eb86 [CRT]
__wine_push_frame and __wine_pop_frame are only used in x86 specific code in cppexcept.c. Move them there instead of trying to implement them for other architectures.

svn path=/branches/ros-amd64-bringup/; revision=45053
2010-01-12 20:09:38 +00:00
Sir Richard
68ca27a00d Patch that fixes VMWare boot (and should fix QEMu/KVM boot on the testbot):
[NTOS]: A trap can get us into a state where DS/ES are invalid, making any pointer dereference (on DS/ES segmented memory, not SS, the stack) crash (and probably double-fault). Therefore, we have to be careful to switch to a good DS/ES before touching the TrapFrame pointer, which we don't have in ESP like the ASM code, but in a DS/ES-segmented register. For V8086 traps we can switch to the good DS/ES immediately, but for other kinds of traps, we actually need to save the current (bad) segments first. So we save them on the stack now, then switch to the good ones, then store the stack values into the trap frame. This is what happens on a non-optimized (-O0) build. On an optimized build, the segments will end up in registers instead, which is fine too (they'll be direct values). The order of instructions is guaranteed since the segment macros are volatile.
[NTOS]: The GPF and Invalid Opcode handlers are performance critical when talking about V8086 traps, because they control the main flow of execution during that mode (GPFs will be issued for any privileged instruction we need to emulate, and invalid opcode might be generated for BOPs). Because of this, we employ a fast entry/exit macro into V8086 mode since we can make certain assumptions. We detect, and use, such scenarios when the V8086 flag is enabled in EFLAGS. However, because we can land in a GPF handler with an invalid DS/ES, as some V8086 code could trample this during BIOS calls for example, we must make sure that we are on a valid DS/ES before dereferencing any pointer. We fixup DS/ES either in KiEnterTrap (for normal entry/exit) or, for V86, in KiEnterV86Trap. Notice the problem: we need to detect which of these to use early on but we can't touch the EFLAGS in the frame because DS/ES could be invalid. Thankfully SS is always guaranteed valid, so stack dereferences are game! We therefore read the EFLAGS here, in assembly, where we can touch ESP as we please. We save this in EDX, which will be used as the second argument for the FASTCALL C trap entry. When we make the fast V86 check, we use the parameter instead of the trap frame, leading us to using the correct trap entry function, which fixes up DS/ES and lets us go on our merry way...
[NTOS]: Make appropriate changes to GENERATE_TRAP_HANDLERS macro.
[NTOS]: Switch to using well-known NT trap handler names (hex-based, double-zeroed) instead of decimal-based trap handler names which are confusing.
[NTOS]: Clean up some debug spew.

svn path=/trunk/; revision=45052
2010-01-12 05:50:45 +00:00
James Tabor
66c33fe237 [Win32k]
- More movement to WND with updates to related files. Removed unused code rewritten others. Review patch.

svn path=/trunk/; revision=45051
2010-01-12 05:25:22 +00:00
Sir Richard
1f21afc098 [NTOS]: Bring back a simplified GPF handler just for V8086 opcode detection and V8086 exit, to see if this resolves testbot booting.
svn path=/trunk/; revision=45048
2010-01-11 19:41:50 +00:00
Timo Kreuzer
4f3a2dfc7e [HAL]
- Move x86 emulator definitions into their own header
- Fix handling of the real mode IDT in x86BiosCall
- Implement HalpBiosDisplayReset
- Fix a copy paste error

svn path=/branches/ros-amd64-bringup/; revision=45047
2010-01-11 19:29:16 +00:00
Sir Richard
0feb759f62 [NTOS]: Switch to a slightly (perhaps, hopefully?) safer version of V86 entry/exit to see if this fixes the buildbot boot (suffice it to say, the original code works fine on my test machine, but since half the developers seem to be using GCC 4.4 and the others GCC 4.1, I wouldn't be surprised if there's compiler subtleties involved).
svn path=/trunk/; revision=45046
2010-01-11 18:26:46 +00:00
Sir Richard
f81a3c4918 Trap Handlers in C Patch 9 of 12:
[NTOS]: Fix a logic bug in KiExitTrap: Always only restore segments if we came from user-mode (since they might be bogus on a kernel transition as they're not always saved), even if the caller wants segment restore.
    [NTOS]: Small perf boot: do a JMP, not a CALL into C handling code.
    [NTOS]: Make KiGetTickCount/KiCallbackReturn handled in C (as stubs).
    [NTOS]: Implement KeSynchronizeExecution in C. Move Kei386SpinOnSpinLock to C stub.
    [NTOS]: Implement overall architecture for handling hardware interrupts in C. Not used yet, since it needs C code in HAL.

svn path=/trunk/; revision=45045
2010-01-11 17:44:09 +00:00
Michael Martin
166f26af89 [usb/usbehci]
- EhciDefferedRoutine: Fix late night brain fart by filling the members of the WorkItemData before queuing the work item.

svn path=/trunk/; revision=45043
2010-01-11 08:36:12 +00:00
James Tabor
24533102e6 [Win32k]
- More movement to WND with updates to related files. Added new scroll and get/post message routines. In the mix we did moved to the MONITOR structure.

svn path=/trunk/; revision=45042
2010-01-11 07:36:48 +00:00
Sir Richard
9da88c7fda [NTOS]: Put ASM macros back since the HAL also uses them.
svn path=/trunk/; revision=45041
2010-01-11 06:41:19 +00:00
Sir Richard
2efed8ef89 Trap Handlers in C Patch 8 of X:
[NTOS]: Implement KiCoprocessorError in C.
   [NTOS]: Make NMI handler fully C, now that the other parts are C too.
   [NTOS]: Delete more ASM macros and code that are now unused.

svn path=/trunk/; revision=45040
2010-01-11 06:08:11 +00:00
Steven Edwards
2eab477b33 my once a year commit, update email address
svn path=/trunk/; revision=45039
2010-01-11 05:58:59 +00:00
Sir Richard
0fc870d7d9 Trap handlers in C patch 7 of X:
[NTOS]: Implement GPF handler (trap 13) in C. This was by far the most complex one of them, since it also servces two complex purposes: to handle V86 emulation since the real-mode code will generate GPFs during privileged instructions, and it will detect an illegal IRET, check if it's the known V8086 Exit IRET, and then jump to V86 exit code.
    [NTOS]: Get rid of even more V8086 assembly since the GPF handler is now C. Deleted the entire V8086 assembly file.
    [NTOS]: Get rid of a bunch of helper ASM functions that nobody is using anymore since almost all the trap handlers are in C.

svn path=/trunk/; revision=45038
2010-01-11 05:53:57 +00:00
Sir Richard
38de4a0a1c [NTOS]: Rewrite BIOS Call (V8086) Entry/Exit routines in C. Only 4 lines of ASM stub remain. This wasn't fun... the stack dancing alone gives you headaches. Who ever thought of dynamically sized trap frames!
svn path=/trunk/; revision=45037
2010-01-11 03:47:17 +00:00
Matthias Kupfer
2741b8149a - fixes issue with cancel button
- fixes problems with unattended mode
- temporarily enable device listing (setupapi)

svn path=/trunk/; revision=45036
2010-01-10 23:22:01 +00:00
Matthias Kupfer
36ecaaeee0 -set fix line endings to preserve windows line endings
svn path=/trunk/; revision=45035
2010-01-10 20:43:27 +00:00
James Tabor
88855c3acd [Win32k]
- When locking and unlocking regions, no need to use probe to check attribute space first before read or write access. The exception handling is a feature.

svn path=/trunk/; revision=45034
2010-01-10 19:06:07 +00:00
James Tabor
30dc8768b1 - Update credits.
svn path=/trunk/; revision=45033
2010-01-10 18:52:17 +00:00
Sylvain Petreolle
8ced7ca170 unbreak build
svn path=/trunk/; revision=45032
2010-01-10 17:50:50 +00:00
Sir Richard
15b66143d6 [NTOS]: Implement all V8086 Opcode emulation in C instead of ASM.
svn path=/trunk/; revision=45029
2010-01-10 15:40:00 +00:00
Sir Richard
ff8920ffc1 [NTOS]: Simplify trap exit code.
[NTOS]: Move some stuff in appropriate headers.
[NTOS]: Write V86 fast entry/exit traps, needed for later.

svn path=/trunk/; revision=45028
2010-01-10 15:00:44 +00:00
Sir Richard
f61b9c9113 [NTOS]: Implement KiAdjustEsp0 in C.
[NTOS]: Temporarily remove FPU save/restore instructions since they seem to be smashing the stack and breaking boot.

svn path=/trunk/; revision=45027
2010-01-10 14:32:19 +00:00
Matthias Kupfer
1ab6f5ad16 - fixes damaged format of comment
svn path=/trunk/; revision=45026
2010-01-10 13:54:14 +00:00
Matthias Kupfer
5682230cf2 - Fixes a hidden pointer/reference problem with LoadGenentry function, which causes the crash at this point
svn path=/trunk/; revision=45025
2010-01-10 13:38:46 +00:00
Michael Martin
433baa7b5e [usb/usbehci]
- Fix WorkItem Context to pass in Device Extension and the IoWorkItem so it may be freed.

svn path=/trunk/; revision=45024
2010-01-10 12:24:01 +00:00
Michael Martin
72ed9b6854 [usb/usbehci]
- DeviceArrivalWorkItem: Check the device object returned from IoGetAttachedDeviceReference. if its the PDO, deref and return.
- Pass upper attached device object pointer to the completion routine.
- ArrivalNotificationCompletion: Dereference the upper attached device object before returning.

svn path=/trunk/; revision=45023
2010-01-10 11:08:51 +00:00
Michael Martin
f579412d32 [usb/usbehci]
- StartDevice: Remove ASSERT for unhanded resource types. 
- Add case for CmResourceTypeDevicePrivate, and do nothing for it for now, will fix later if needed.
- Fixes crash on windows.

svn path=/trunk/; revision=45022
2010-01-10 09:03:53 +00:00
James Tabor
3d60e751ce [Win32k]
- Removed NtUserGetScrollInfo and replaced it, move more type names in window object to WND.

svn path=/trunk/; revision=45021
2010-01-10 07:50:57 +00:00
Eric Kohl
ba16f69763 Removed outdated email addresses.
svn path=/trunk/; revision=45020
2010-01-09 22:43:16 +00:00
Eric Kohl
b4f5a3e1a1 Reverted some coding-style changes as per Alekseys request.
svn path=/trunk/; revision=45019
2010-01-09 21:57:00 +00:00
Eric Kohl
1145a26d92 Fix indentation and coding style. No code changes.
svn path=/trunk/; revision=45018
2010-01-09 20:51:33 +00:00
Michael Martin
ce0ab52c93 [usb/usbehci]
- Added numerous structures required for Asynchronous Lists used to communicate with controller. Needs much more work.
- Implement initial retrieving Device and String Descriptors from USB devices.
- Fixed improper handling of Queued IRPs that was causing crashes.
- For now, always queue the Irp if the request is a Urb of type Get Descriptor.
- Reorganized code to trim down source files.

svn path=/trunk/; revision=45017
2010-01-09 19:28:29 +00:00
Cameron Gutman
f22efa9fe8 - Unlock the address file before calling IPSendDatagram
- We don't need to be locked anymore at that point and it also causes problems with loopback packets
 - Use the TTL value stored in the address file for ICMP packets

svn path=/branches/aicom-network-branch/; revision=45016
2010-01-09 16:25:11 +00:00
Cameron Gutman
e8f652b985 - Store the address file handle in the IOSB
- MSAFD relies on this behavior to store the address file handle

svn path=/branches/aicom-network-branch/; revision=45015
2010-01-09 15:49:39 +00:00
Sir Richard
f1e6ecbc60 Trap handlers in C patch 6 of X:
[NTOS]: Implement Trap 7 and 16 in C. These are the last two FPU/NPX traps. Not really good with x86 FPU stuff, so there might be some mistakes to look over later.
    [NTOS]: Fixed a bug in Trap 19 handler (forgot to write CR0 back).

svn path=/trunk/; revision=45014
2010-01-09 15:07:44 +00:00
James Tabor
1b346fdad3 [User32]
- Add corrected behavior for SetWindowRgn, delete region object after setting windows region. See bug 4980.
- After a successful call to SetWindowRgn, the system owns the region specified by the region handle hRgn. The system does not make a copy of the region. Thus, you should not make any further function calls with this region handle. In particular, do not delete this region handle. The system deletes the region handle when it no longer needed.
- References : http://msdn.microsoft.com/en-us/library/dd145102(VS.85).aspx

svn path=/trunk/; revision=45013
2010-01-09 06:16:51 +00:00
Martin Fuchs
34689ba8c7 avoid warning messages on Explorer startup when missing configuration files
svn path=/trunk/; revision=45011
2010-01-08 21:51:43 +00:00
Sir Richard
8d89e2b027 Trap handlers in C Patch 5 of X:
[NDK]:  Add FSW defines for FPU exception bits.
    [NTOS]: Convert trap 19 (XMMI exception) to C.

svn path=/trunk/; revision=45010
2010-01-08 19:24:10 +00:00
Cameron Gutman
b9ab91bd82 - Rewrite request queuing
- We now use the documented members of NDIS_MINIPORT_BLOCK
 - It also fixes the issue of determining if the miniport is currently processing a request
 - Remove unneeded IRQL raises
 - Half-plement MiniSendResourcesAvailable (NdisMSendResourcesAvailable)
 - Comment out the code inside ProSendPackets (only used by protocols, not miniports)

svn path=/branches/aicom-network-branch/; revision=45009
2010-01-08 19:15:03 +00:00
Sir Richard
733c152673 Trap handlers in C Patch 4 of X:
[NTOS]: Implement trap 6 (invalid opcode) in C.

svn path=/trunk/; revision=45008
2010-01-08 18:45:04 +00:00
Cameron Gutman
e7f721b01f - Remove some incorrect IRQL checks (needed for the NDIS fixes coming soon)
- Change some NdisDprAcquireSpinLock/NdisDprReleaseSpinLock calls to NdisAcquireSpinLock/NdisReleaseSpinLock

svn path=/branches/aicom-network-branch/; revision=45007
2010-01-08 18:36:59 +00:00
Cameron Gutman
7457359d5d - Use a spin lock to protect the port bitmap instead of a fast mutex
svn path=/branches/aicom-network-branch/; revision=45006
2010-01-08 18:21:52 +00:00
Sir Richard
8323208ddf Trap Handlers in C Patch 3 of X (Patch by Sir_Richard <ros.arm@reactos.org>):
[NTOS]: Fix a bug in the assertion handler.
    [NTOS]: Implement page fault trap (14) in C instead of ASM.
    [NTOS]: Implement V8086 trap entry/exit, we were hitting these during page faults in Ke386CallBios for video reset during GUI boot.

svn path=/trunk/; revision=45005
2010-01-08 18:21:47 +00:00
Cameron Gutman
05a505aac8 - Add locking to ICMPSendDatagram
svn path=/branches/aicom-network-branch/; revision=45004
2010-01-08 18:10:05 +00:00
Kamil Hornicek
b308ece644 - fix build, spotted by Stefan
svn path=/trunk/; revision=45003
2010-01-08 16:06:33 +00:00
ReactOS Portable Systems Group
0940d6e34a Trap Handlers in C Patch 2 of X (Patch by Sir_Richard <ros.arm@reactos.org>):
[NTOS]: Convert Trap 0, 1, 3, 4, 5, 8, 10, 11, 12, 15, 17, 2C (Assertion) and 2D (Debug) to C. Tested INT3 and still works as expected, and obviously DbgPrint is still functionning (0x2D). The other traps are mainly programming errors such as bound overflow or integer overflow, so we need some test cases, but they should work. Note the 3-4 lines of C for what used to be dozens of ASM lines.
    [NTOS]: Fix infinite loop in KiCheckForApcDelivery.

Stefan Ginsberg: Could you please implement the relevant Extended GCC ASM into MSVC?
   

svn path=/trunk/; revision=45002
2010-01-08 15:16:00 +00:00
Martin Fuchs
34ad648d58 define _tcscpy_s and _tsplitpath_s again for native VC++ builds
svn path=/trunk/; revision=45001
2010-01-08 15:10:50 +00:00
ReactOS Portable Systems Group
ba415f6e7b Trap Handlers in C Patch 1 of X (Patch by Sir_Richard <ros.arm@reactos.org>):
[NTOS]: The kernel normally does not save FPU state during Ring 0 transitions since the FPU should not be used. The one exception is when a kernel debugger is attached. Unfortunately, the latter check in ReactOS results in even "print on the serial line" to count as "debugger attached", and thus FPU state was almost always saved, slowing down traps significantly.
    [NTOS]: The kernel also does not typically save DRx (debug) registers unless they were in use. During an exception dispatch, they are zeroed out, and later during trap exit, if any debug register is set, DR7 is updated to enable that hardware breakpoint. Unfortunately, the code to clear the debug registers had a bug: DR2 was never cleared. Because DR2 ended up being a random stack value during trap frame generation, this caused a bogus address to be added to DR2, and DR7 would then enable the 2nd hardware breakpoint. This caused the kernel to always save DRx state, which is slow, and worse, could cause random hardware breakpoints to fire.
    [NTOS]: Start implementing trap handling in C. ASM trap handlers will now only be 5 lines of assembly including a function call to a C handler. All C handling code uses maximum two arguments and is all FASTCALL for efficiency.
    [NTOS]: Implement C versions of TRAP_PROLOG and TRAP_EPILOG. Implement C version of Ki386EoiHelper. Implement C version of CommonDispatchException (and helper) and KiFatalSystemException. Implement C version of CHECK_FOR_APC_DELIVER. Implement trap debugging checks as a separate entity instead of always doing them.
    [NTOS]: Add missing intrinsics for DS/ES/GS segment query.

The kernel is now ready for some trap handling to be done in C. Due to the FPU/Debug fixes and relaxation of paranoid debug checks, the C code will likely be faster than the original assembly.

svn path=/trunk/; revision=45000
2010-01-08 15:04:19 +00:00
Martin Fuchs
873a68e758 temporarily revert to query "defined(__STDC_WANT_SECURE_LIB__) && defined(_MS_VER)"
svn path=/trunk/; revision=44999
2010-01-08 14:48:22 +00:00
Martin Fuchs
e09bb852c0 update XMLStorage to 2010 version
svn path=/trunk/; revision=44998
2010-01-08 13:59:15 +00:00
Martin Fuchs
449aa18843 fix TCHAR array initialization
svn path=/trunk/; revision=44996
2010-01-08 13:19:48 +00:00
Michael Martin
2aac7f8c6a [usb/usbehci]
- CompletePendingRequest: Release the spinlock before and reacquire it after calling IoCallDriver

svn path=/trunk/; revision=44994
2010-01-08 09:55:18 +00:00
Michael Martin
86cc8888f0 [usb/usbehci]
- Initial implementation of usbehci, aka USB 2.0.
- Implement AddDevice, StartDevice, InterruptService and DPC Routines.
- Implement basic IRP queuing and handling.
- Implement starting, stopping of EHCI controller and querying port capabilities. 
- Implement PNP for Query Relations, Query ID, Query BusInfo.
- Implement finding the active ports when USB devices are attached and releasing control to companion controller if devices is not a high speed devices.
- Implement reporting devices connects to upper Pdo (hub) driver.
- Hub driver attaches successfully and sends URBs to query descriptors from USB devices on Windows.
- Currently not build enabled as it will cause problems with current UsbDriver in trunk.
- Code heavily based on current PCI drivers and UsbDriver from trunk.

svn path=/trunk/; revision=44993
2010-01-08 09:34:36 +00:00
Michael Martin
4a5921d8fa [include/usb200.h]
- Fix two unions, make text after last #endif a comment as it should be, and add newline at end of file.

svn path=/trunk/; revision=44992
2010-01-08 09:00:53 +00:00
ReactOS Portable Systems Group
6ce614c110 - Document and define Timer and System Control Ports (0x43, 0x61) as defined in ISA System Architecture 3rd Edition and The Undocumented PC.
- Document PIT access modes, channels and operating modes.
- Rewrite HalHandleNMI to use the System Control Port definitions instead of magic values that were never explained.
- Rewrite HalMakeBeep not to program the PIT with magic hexadecimal values that were not explained anywhere and seem dubious.
- Fix the PIT frequency to match its correct value of ~1.19318MHz which is what every x86 book states and what Linux and all other operating systems use. This is equivalent to one third of the NTSC color burst (subcarrier frequency) used on CGA computers for video output. Previously, the HAL used 1.193167MHz, which is only used by NT and isn't documented anywhere, and in fact appears to be a typo in the NT sources (a less accurate way of dividing the NTSC color burst gives 1.19318167MHz). Somehow, the ReactOS developer of this function must have made the same "typo", by complete coincidence, of course.
- Rewrite part of HalpInitializeClock to use the new definitions. This function was at least somewhat documenting the magic values.


svn path=/trunk/; revision=44991
2010-01-08 04:31:19 +00:00
ReactOS Portable Systems Group
53236395a1 - Restore PROGRAMMER's field correctly.
svn path=/trunk/; revision=44990
2010-01-07 19:08:11 +00:00
James Tabor
337d120ece [User32]
- Patch by James Hawkins : Don't try to free a handle with a value of 1, which is the dde handle value for asynchronous operations.
- Will sync to wine after a review of new WOW implementation.

svn path=/trunk/; revision=44989
2010-01-07 19:05:57 +00:00
James Tabor
d688d91275 [User32]
- Patch by Marcus Meissner : Remove useless NULL check (Coverity).
- Will sync to wine after a review of new WOW implementation.

svn path=/trunk/; revision=44988
2010-01-07 18:59:13 +00:00
James Tabor
432bd7570f [User32]
- Patch by Marcus Meissner : EM_REPLACESEL Handle OOM error.
- Will sync to wine after a review of new WOW implementation.

svn path=/trunk/; revision=44987
2010-01-07 18:55:24 +00:00
Timo Kreuzer
f6bd1f70d8 [HAL]
- comment out an ASSERT for now
- add Mdl flag MDL_PAGES_LOCKED
- remove obsolete DriverEntry

svn path=/branches/ros-amd64-bringup/; revision=44983
2010-01-06 23:03:19 +00:00
Timo Kreuzer
042bc809cf Some work on Mm initialization, added a call to HalInitializeBios, so we have a mapped bios now.
svn path=/branches/ros-amd64-bringup/; revision=44982
2010-01-06 22:53:31 +00:00
Eric Kohl
4c9596a9ad [umpnpmgr]
Silence device arrival debug messages.

svn path=/trunk/; revision=44981
2010-01-06 21:14:13 +00:00
Eric Kohl
ffab3fc13c Fix PNP_DeviceInstanceAction prototype.
svn path=/trunk/; revision=44980
2010-01-06 18:58:10 +00:00
Kamil Hornicek
241b55764e - missed this one, sorry
svn path=/trunk/; revision=44979
2010-01-06 15:05:25 +00:00
Kamil Hornicek
721e80ba4d - sync wined3d, ddraw, d3d8 and d3d9 with Wine 1.1.35
svn path=/trunk/; revision=44978
2010-01-06 14:59:04 +00:00
Kamil Hornicek
39095e89ae - fix definition of ComposeRects
svn path=/trunk/; revision=44977
2010-01-06 14:19:58 +00:00
Ged Murphy
0c02d2184e Fix pause / resume code. The buttons need fixing yet so it still won't work, although the menu items probably will.
svn path=/trunk/; revision=44976
2010-01-06 13:10:09 +00:00
Giannis Adamopoulos
b8882998c7 [win32k]
- Rewrite SetCursorPos and ShowCursror
- Store coursor show count in SYSTEM_CURSORINFO and not in GDIPOINTER
- Fix broken behaviour in ClipCursor

svn path=/trunk/; revision=44975
2010-01-06 12:44:31 +00:00
Dmitry Gorbachev
15269e4b77 [freeldr]
- Do not use GetSystemMemorySize(), which truncates size to 32 bit.
- Other minor changes.

svn path=/trunk/; revision=44974
2010-01-06 11:44:54 +00:00
Dmitry Gorbachev
a71c3f0d12 Check if MmHeapAlloc() failed.
svn path=/trunk/; revision=44972
2010-01-06 01:28:23 +00:00
ReactOS Portable Systems Group
4b9333f4a1 - Implement NMI handler in C instead of ASM.
- Tested with the "nmi 0" command in QEMU and NmiDbg.sys.


svn path=/trunk/; revision=44971
2010-01-06 00:40:07 +00:00
Timo Kreuzer
2736e830ea [RTL]
Merge from amd64 branch
35738,37004,37308,37324,37330,37331,37332,37370,37419,37424,37425,37428,37473,37492,37844,37911,37987,40604,41006,43686,43951,43953,43980,43993,44001,44289,44295,44296,44428,44966,44967,44968

- Implement amd64 specific RTL functions: RtlLookupFunctionTable, RtlLookupFunctionEntry, RtlCaptureContext, RtlVirtualUnwind, RtlWalkFrameChain, RtlGetCallersAddress, RtlRaiseException (Timo Kreuzer)
- Implement amd64 asm functions: RtlCompareMemory, DebugService, RtlInterlockedPopEntrySList, RtlInterlockedPushEntrySList and RtlInterlockedFlushSList (Timo Kreuzer)
- Don't use double in rtl's sprintf / swprintf, use double_t union instead. (Stefan Ginsberg)

svn path=/trunk/; revision=44970
2010-01-06 00:39:07 +00:00
Dmitry Gorbachev
0c5fed9d71 Fix memory leak in CreateToolhelp32Snapshot(). Bug #5096.
svn path=/trunk/; revision=44969
2010-01-05 23:28:16 +00:00
Timo Kreuzer
ef9b8f7942 [RTL]
Patch by Stefan Ginsberg:
Don't use double in rtl's sprintf / swprintf, use double_t union instead. Minor modifications by me.

svn path=/branches/ros-amd64-bringup/; revision=44968
2010-01-05 23:02:08 +00:00
Timo Kreuzer
7894b5b522 revert changes to exception.x from 44966
svn path=/branches/ros-amd64-bringup/; revision=44967
2010-01-05 22:58:45 +00:00
Timo Kreuzer
51a5da9298 [RTL]
Reduce difference to trunk (wtf happened to actctx.c?)

svn path=/branches/ros-amd64-bringup/; revision=44966
2010-01-05 22:12:20 +00:00
Ged Murphy
d4aca75523 Clean up the pause and resume code and a few other bits and bobs
svn path=/trunk/; revision=44965
2010-01-05 21:43:00 +00:00
Timo Kreuzer
519d3fe61a add global allowwarning="true" and unhack the other rbuild files
svn path=/branches/ros-amd64-bringup/; revision=44964
2010-01-05 21:18:17 +00:00
Ged Murphy
5dfb2cc0c3 Clean up the start code
svn path=/trunk/; revision=44963
2010-01-05 21:14:10 +00:00
Timo Kreuzer
74f902bf27 Reduce differences to trunk
svn path=/branches/ros-amd64-bringup/; revision=44962
2010-01-05 20:42:07 +00:00
Ged Murphy
d5bc8625fb [SERVMAN]
- Fully implement stopping all dependent services
- When stopping a service, only list other running services which require stopping
- Use the same progress dialog for stopping multiple services and make it smoother

svn path=/trunk/; revision=44961
2010-01-05 20:41:14 +00:00
Eric Kohl
ef88ea7724 [spoolsv]
- Switch to wine debug macros. Add new debug channel spoolsv.
- Update service status when the service receives a control message.

svn path=/trunk/; revision=44960
2010-01-05 20:32:02 +00:00
Eric Kohl
9fb7195e8e [umpnpmgr]
PNP_DeviceInstanceAction: Call a separate function for each action.

svn path=/trunk/; revision=44959
2010-01-05 20:26:31 +00:00
Timo Kreuzer
b473a12aff [WIN32k]
Fix some 64 bit issues.

svn path=/trunk/; revision=44958
2010-01-05 20:06:33 +00:00
Ged Murphy
bb5ea9e289 Make the logic easier to read
svn path=/trunk/; revision=44957
2010-01-05 19:27:14 +00:00
Timo Kreuzer
dfe969ab14 [win32k] / [user32]
Merge from amd64 branch:
34780 some DWORD -> DWORD_PTR (Timo Kreuzer)
34781 fix usage of InterlockedCompareExchangePointer (Timo Kreuzer)
34782 fix usage of InterlockedCompareExchangePointer (Timo Kreuzer)
34908 some 64 bit fixes in win32k (Timo Kreuzer)
34909 some more win32k 64 bit fixes (Timo Kreuzer)
34965 Fix typos. (Samuel Serapión)
41479 Remove usage of RETURN() macro (Timo Kreuzer)
41540 Make parameters for NtUserCallOneParam and NtUserCallTwoParam DWORD_PTR instead of DWORD (Timo Kreuzer)
41546 Add _FLOATOBJ_GetFix for non-x86 (Timo Kreuzer)
41547 Only export FLOATOBJ_* api on x86 (Timo Kreuzer)
44238 Fix some 64 bit isues. (Timo Kreuzer)
43969 undefine i386 in the pspec file (Timo Kreuzer)

svn path=/trunk/; revision=44956
2010-01-05 19:26:32 +00:00
Ged Murphy
24e15791e0 Display all service dependants which need stopping
svn path=/trunk/; revision=44955
2010-01-05 19:19:06 +00:00
Ged Murphy
8320c599d1 Switch to crt string safe functions. Remove some commented code
svn path=/trunk/; revision=44954
2010-01-05 18:39:47 +00:00
Ged Murphy
a854583327 Forgot the comments in this file
svn path=/trunk/; revision=44953
2010-01-05 18:16:43 +00:00
Timo Kreuzer
927ff64dae [CSRSS]
Merge from ams64 branch:
35805 remove unneeded msvcrt dependency (all win32 projects already depend on it) (Samuel Serapión)
36992 - Fix csrss compilation (treat handles as pointer sized, use SIZE_T where appropriate) (Stefan Ginsberg)
41485 Fix 64bit issues. (Timo Kreuzer)
41531 fix pointer <-> DWORD casts (Timo Kreuzer)
41536 win32csr: convert to spec (Timo Kreuzer)
43838 Fix csrss build. (Samuel Serapión)

svn path=/trunk/; revision=44952
2010-01-05 18:13:00 +00:00
Ged Murphy
40d9015811 - Reimplement service stop routines.
- Stopping single services should now work again, full dependency trees won't yet.

svn path=/trunk/; revision=44951
2010-01-05 18:08:41 +00:00
Timo Kreuzer
05c33f5b6b [ATL]
Merged from amd64 branch:
- add amd64 specific thunkCode
- get rid of a cast

svn path=/trunk/; revision=44950
2010-01-05 17:38:03 +00:00
Ged Murphy
bbf8c31b35 More code towards getting servman to stop services again, etc...
(clearly not a message for the changelog)

svn path=/trunk/; revision=44949
2010-01-05 17:14:08 +00:00
Aleksey Bragin
887a166980 Daniel Zimmermann <netzimme@aim.com>
- Implement RtlDnsHostNameToComputerName.
See issue #5092 for more details.

svn path=/trunk/; revision=44948
2010-01-05 16:37:32 +00:00
Aleksey Bragin
bb93e5e242 - Implement SystemException and SystemContextSwitch information cases in NtQuerySystemInformation by Samuel Serapion, modified by me (comments, coding style).
See issue #5054 for more details.

svn path=/trunk/; revision=44947
2010-01-05 16:28:47 +00:00
Aleksey Bragin
a5a0bfbeb2 Marcus Boillat <ka6602-280@online.de>
- ipconfig should also parse parameters starting with "-" (undocumented feature, tested on Windows XP, Vista and Windows 7).
See issue #5067 for more details.

svn path=/trunk/; revision=44946
2010-01-05 16:18:35 +00:00
James Tabor
c2773414b9 [gdi32]
- Run full Attribute and GdiBatch for Region support. Leaving Enh/Meta and mirroring support for regions.

svn path=/trunk/; revision=44943
2010-01-05 03:05:50 +00:00
Timo Kreuzer
4289213dc7 [HAL]
Move x86bios.c into amd64 folder

svn path=/branches/ros-amd64-bringup/; revision=44942
2010-01-05 00:59:00 +00:00
Timo Kreuzer
1f27265ceb [LSALIB]
Fix ULONG -> pointer cast

svn path=/branches/ros-amd64-bringup/; revision=44941
2010-01-05 00:26:54 +00:00
Timo Kreuzer
d79f73c174 [MM]
Add missing MmHyperspaceEnd, remove some unused variables

svn path=/branches/ros-amd64-bringup/; revision=44940
2010-01-05 00:24:03 +00:00
Timo Kreuzer
0926f419e7 [HAL]
Include the correct architecture specific headers

svn path=/branches/ros-amd64-bringup/; revision=44939
2010-01-05 00:14:07 +00:00
Timo Kreuzer
c6f200a18b Sync to trunk (r44933)
svn path=/branches/ros-amd64-bringup/; revision=44938
2010-01-05 00:11:08 +00:00
Timo Kreuzer
bcc7857700 [KE]
Improve KiDoubleFaultAbort

svn path=/branches/ros-amd64-bringup/; revision=44937
2010-01-04 23:00:35 +00:00
Timo Kreuzer
ff2823e543 [HAL]
Remove hacks

svn path=/branches/ros-amd64-bringup/; revision=44936
2010-01-04 22:54:12 +00:00
Timo Kreuzer
77c52a8a4b compile x86Bios functions only for amd64
svn path=/branches/ros-amd64-bringup/; revision=44935
2010-01-04 22:51:34 +00:00
Timo Kreuzer
1ee5ad30ab [HAL]
Implement HalInitializeBios, x86BiosAllocateBuffer, x86BiosFreeBuffer, x86BiosReadMemory and x86BiosWriteMemory
Halfplement x86BiosCall (We don't have the necessary emulator yet)

svn path=/branches/ros-amd64-bringup/; revision=44934
2010-01-04 22:12:18 +00:00
James Tabor
e94d3dc399 - Revert changes in font.
svn path=/trunk/; revision=44933
2010-01-04 20:48:31 +00:00
James Tabor
ae0d45f91c - Sorry I thought I turn the debug off.region.c
svn path=/trunk/; revision=44932
2010-01-04 20:44:48 +00:00
Sylvain Petreolle
09bf249e9d Hackfix wdmaud.drv for now (Johannes Anderwald)
svn path=/trunk/; revision=44931
2010-01-04 18:07:27 +00:00
Dmitry Gorbachev
ba52cb038d Chinese translations of NTVDM by Samuel Lee. Bug #5087.
svn path=/trunk/; revision=44930
2010-01-04 16:39:38 +00:00
Ged Murphy
e46aff6e85 Rehack the explorer hack for secure CRT usage.
This should fix the build, unless there are any more oddities in our tree.

svn path=/trunk/; revision=44929
2010-01-04 16:10:33 +00:00
Ged Murphy
b19ad21200 Fix __STDC_WANT_SECURE_LIB__ redefinition
svn path=/trunk/; revision=44928
2010-01-04 14:02:49 +00:00
Ged Murphy
9282abf812 Add wcsncat back, it was removed accidentally
svn path=/trunk/; revision=44927
2010-01-04 13:47:19 +00:00
Ged Murphy
4afc049223 Add some of the string safe stuff to the headers.
svn path=/trunk/; revision=44926
2010-01-04 13:36:59 +00:00
Aleksey Bragin
f727da1fb2 - Remove unnecessary line from FreeEnvironmentStringsW.
See issue #5073 for more details.

svn path=/trunk/; revision=44925
2010-01-04 11:17:57 +00:00
Aleksey Bragin
bcfb4adf08 Daniel Zimmermann <netzimme@aim.com>
- Fix missing arguments for the call KdbpPrint() in
differents places in kdbg_cli.c.
See issue #5089 for more details.

svn path=/trunk/; revision=44924
2010-01-04 11:03:23 +00:00
James Tabor
98ba6e212e - Another attempt to fix RGNOBJAPI_Un/Lock SEH issue. Resort code.
svn path=/trunk/; revision=44923
2010-01-04 01:36:24 +00:00
Eric Kohl
7c4d4664f7 Coding-style fixes. No code changes.
svn path=/trunk/; revision=44922
2010-01-03 22:44:10 +00:00
Eric Kohl
c5577e9149 [devmgr]
- Display the 'Enumerator' property.

svn path=/trunk/; revision=44921
2010-01-03 22:41:13 +00:00
Dmitry Gorbachev
2f017b2356 - Remove duplicate definitions of context flags (which are already present in NDK);
- combine them using bitwise or (as in CreateFiberEx and ConvertThreadToFiberEx).

svn path=/trunk/; revision=44920
2010-01-03 20:12:56 +00:00
Dmitry Gorbachev
5e3adf9d47 Fix GCC 4.5.0 "operation may be undefined" warning.
svn path=/trunk/; revision=44919
2010-01-03 20:12:43 +00:00
Aleksey Bragin
40da0785e9 Samuel Serapion
- Implement ExSetTimerResolution, tested with a VirtualBox driver.
- Rewrite comments in TimeRefresh lock/unlock functions.

svn path=/trunk/; revision=44918
2010-01-03 18:29:30 +00:00
Aleksey Bragin
56a385c064 [NDK]
- Add forgotten HalSetTimeIncrement prototype to NDK.

svn path=/trunk/; revision=44917
2010-01-03 18:17:21 +00:00
Aleksey Bragin
b5bf3cb572 [ntoskrnl/cm]
- advapi32 winetest registry tries to create a non-volatile child of a volatile parent. Comment out the warning ASSERT to let testman pass through this condition.

svn path=/trunk/; revision=44916
2010-01-03 18:14:34 +00:00
Dmitry Gorbachev
92a0a3cda8 Add / update Japanese translations. Patch by Tomoya Kitagawa. Bug #5024.
svn path=/trunk/; revision=44915
2010-01-03 15:53:21 +00:00
Dmitry Gorbachev
dfd961974f Traditional and simplified Chinese translations of CSRSS by Samuel Lee (samuel_lee_1991 =AT= hotmail =DOT= com), bug #5082.
svn path=/trunk/; revision=44914
2010-01-03 15:24:58 +00:00
Eric Kohl
7536c9f6ec - Copy property data to the user-mode buffer.
- Return the enumerator name without trailing backslash.

svn path=/trunk/; revision=44913
2010-01-03 15:24:16 +00:00
Eric Kohl
d9a4e205a7 Fix indentation. No code changes.
svn path=/trunk/; revision=44912
2010-01-03 15:20:09 +00:00
Matthias Kupfer
302578ff72 - add some German translations
svn path=/trunk/; revision=44911
2010-01-03 13:34:20 +00:00
Christoph von Wittich
4961211732 [crypt32_winetest]
sync crypt32_winetest to wine 1.1.35

svn path=/trunk/; revision=44910
2010-01-03 11:59:59 +00:00
Christoph von Wittich
869db84457 [crypt32]
sync crypt32 to wine 1.1.35

svn path=/trunk/; revision=44909
2010-01-03 11:59:38 +00:00
Christoph von Wittich
009c692de8 [cabinet]
sync cabinet to wine 1.1.35

svn path=/trunk/; revision=44908
2010-01-03 11:51:39 +00:00
Christoph von Wittich
525a6fd682 [advapi32]
reorder functions in cred.c to match wine code for easier syncing

svn path=/trunk/; revision=44907
2010-01-03 11:20:54 +00:00
Christoph von Wittich
d8530b148b [gdiplus_winetest]
sync gdiplus_winetest with wine 1.1.35

svn path=/trunk/; revision=44906
2010-01-03 10:54:40 +00:00
Christoph von Wittich
65abaf1120 sync gdiplus with wine 1.1.35
svn path=/trunk/; revision=44905
2010-01-03 10:54:14 +00:00
ReactOS Portable Systems Group
8113195f32 - Bring back old paged pool allocator and use it for paged pool, until ARM3 pool issues are solved.
- Should fix recent regressions.


svn path=/trunk/; revision=44904
2010-01-03 05:24:30 +00:00
ReactOS Portable Systems Group
342f38623c - Fix some pool calculations.
- Check for some untested pool calculations.
- Handle paging-in the page tables when needed.
- Setup paging colors based on L2 cache size/associativity.
- Setup system PTE size earlier. 


svn path=/trunk/; revision=44903
2010-01-03 05:10:09 +00:00
James Tabor
1f8e0c8569 [Win32k]
- Patch by Dan Kegel: Fix minor read buffer overrun in CombineRgn. http://bugs.winehq.org/show_bug.cgi?id=20851
- When locking and unlocking regions, use probe to check attribute space first before read or write access.

svn path=/trunk/; revision=44902
2010-01-03 00:05:15 +00:00
Johannes Anderwald
241aaf9d5b [WDMAUD.DRV]
- Partly revert 44873

svn path=/trunk/; revision=44901
2010-01-02 22:04:35 +00:00
Dmitry Gorbachev
b21404e711 Silence old GCC warning.
svn path=/trunk/; revision=44900
2010-01-02 20:49:59 +00:00
Dmitry Gorbachev
d31a1e2703 Compensate for continuous memory usage decrease (bug #4835).
svn path=/trunk/; revision=44899
2010-01-02 20:41:04 +00:00
Gregor Schneider
4bd7acbe8c [MSAFD] Only free if memory was allocated, fixes build
svn path=/trunk/; revision=44898
2010-01-02 20:26:36 +00:00
Dmitry Gorbachev
79e7254fc7 Change base addresses of devenum.dll, inetcomm.dll, mshtml.dll.
svn path=/trunk/; revision=44897
2010-01-02 20:09:28 +00:00
Dmitry Gorbachev
644e38dc54 Fix buffer overflow in WSPSendTo(), bug #5070.
svn path=/trunk/; revision=44896
2010-01-02 20:09:16 +00:00
Timo Kreuzer
3db737a298 [KE]
Add a comment to Kii386SpinOnSpinLock that it might be called from HAL with interrupts disabled

svn path=/branches/ros-amd64-bringup/; revision=44895
2010-01-02 20:07:14 +00:00
Timo Kreuzer
909e90aceb [HAL]
- Use spinlock.h from ntoskrnl, instead of duplicating the definitions
- Use one spinlock.c, but compiled for 2 static libs (hal_generic_up and hal_generic_mp)
- Move HalpAcquireSystemHardwareSpinLock and HalpReleaseCmosSpinLock to spinlock.c and use the inline functions for the kernel to make Arch happy.

svn path=/branches/ros-amd64-bringup/; revision=44894
2010-01-02 20:03:49 +00:00
Timo Kreuzer
3a0ef6c524 [NTOS]
Move spinlock inline functions into their own header, so they can be shared with hal.

svn path=/branches/ros-amd64-bringup/; revision=44893
2010-01-02 19:41:03 +00:00
James Tabor
7d508e7938 - Update region.c from wine head. This is needed for region testing of GetRegionData and related code.
svn path=/trunk/; revision=44892
2010-01-02 19:18:44 +00:00
Timo Kreuzer
040c065208 [NTDLL]
- Add back missing exports
See issue #5078 for more details.

svn path=/trunk/; revision=44891
2010-01-02 17:55:17 +00:00
Dmitry Gorbachev
03a24bcc1c Change base addresses of shlwapi.dll, syssetup.dll. Fix formatting.
svn path=/trunk/; revision=44890
2010-01-02 17:07:46 +00:00
Eric Kohl
e1c0b7d02b [devmgr]
Display 'Devnode Flags' property.

svn path=/trunk/; revision=44889
2010-01-02 16:59:54 +00:00
Timo Kreuzer
78490595ed [KD64]
- Remove unused variable

svn path=/branches/ros-amd64-bringup/; revision=44888
2010-01-02 16:32:20 +00:00
Timo Kreuzer
d9cec98933 [KE]
Move the .text and .code64 tag before all functions in trap.S

svn path=/branches/ros-amd64-bringup/; revision=44887
2010-01-02 16:31:41 +00:00
Timo Kreuzer
27d2ac3ad6 [KE]
- KxAcquireSpinLock: check for already owned lock only on debug builds, fix check in inner loop, don't call Kii386SpinOnSpinLock inside the inner loop, but instead of it, simplify the code
- stubplement Kii386SpinOnSpinLock in C

svn path=/branches/ros-amd64-bringup/; revision=44886
2010-01-02 16:22:43 +00:00
ReactOS Portable Systems Group
3c027e728c - Switch to using ARM3 paged pool -- all pool allocations are now handled by ARM3, which should be much more efficient, and combines both NP and P code together.
svn path=/trunk/; revision=44885
2010-01-02 16:17:48 +00:00
ReactOS Portable Systems Group
b69d9da41a Implement paged pool expansion. We are now ready to switch to ARM pool 100%.
svn path=/trunk/; revision=44884
2010-01-02 16:10:11 +00:00
Eric Kohl
e7c10484b8 Add missing device node flags.
svn path=/trunk/; revision=44883
2010-01-02 15:55:03 +00:00
Sylvain Petreolle
7271e0a85a Polish devmgr translation udates by Olaf Siejka
svn path=/trunk/; revision=44882
2010-01-02 13:29:19 +00:00
Ged Murphy
53281cd601 [SERVMAN]
Quick fix for bug 5076, this should stop if from crashing.
Stopping services is disabled at the moment

svn path=/trunk/; revision=44881
2010-01-02 12:10:14 +00:00
ReactOS Portable Systems Group
2c793a902d [NTOS]: Build fixer.
svn path=/trunk/; revision=44880
2010-01-02 05:12:29 +00:00
ReactOS Portable Systems Group
785d4328db NMI Support Patch 14:
[BOOTDATA]: Add NMIDEBUG.SYS to the BOM and registry hive.

This is the last patch for NMI support. It is up to you to leverage this feature as needed through the NMIDEBUG.SYS driver.

svn path=/trunk/; revision=44879
2010-01-02 04:51:23 +00:00
ReactOS Portable Systems Group
475b0fd7cb NMI Support Patch 13:
[NMIDEBUG]: Add new NMI Debug driver. It registers an NMI callback on startup. The callback does nothing useful at the moment, but you can enhance it to add all sorts of debugging information that would otherwise be unavailable in situations such as an interrupt storm, IRQL hang, etc. When you send an NMI, such as by using QEMU, you should see the driver print a string.

svn path=/trunk/; revision=44878
2010-01-02 04:50:08 +00:00
ReactOS Portable Systems Group
91636ec6ed NMI Support Patch 12:
[NTOS]: Implement KeRegisterNMICallback.
    [NTOS]: Call and implement KiHandleNMI to call all registered NMI callbacks and potentially resume from the NMI if handled.

svn path=/trunk/; revision=44877
2010-01-02 04:48:22 +00:00
ReactOS Portable Systems Group
f9762a47d5 [NTOS]: Fix stdCall macro to work with functions of zero parameters.
svn path=/trunk/; revision=44876
2010-01-02 04:46:23 +00:00
ReactOS Portable Systems Group
4247babde3 NMI Support Patch 11:
[PSDK]: Add definitions for public NMI callback registration functions.


svn path=/trunk/; revision=44875
2010-01-02 04:44:58 +00:00
Johannes Anderwald
318229f03f [MMIXER_TEST]
- Implement AllocEventData, FreeEventData for mmixer library

svn path=/trunk/; revision=44874
2010-01-02 01:54:09 +00:00
Johannes Anderwald
70d4997811 [WDMAUD.DRV]
- Implement AllocEventData, FreeEventData for mmixer library

svn path=/trunk/; revision=44873
2010-01-02 01:53:22 +00:00
Johannes Anderwald
c42d9f27cc [MMIXER]
- Implement registering hardware events (volume / mute control changes)
- Fix a bug when querying a source mixer line. The wrong line id was passed which caused the call to fail.

svn path=/trunk/; revision=44872
2010-01-02 01:52:12 +00:00
ReactOS Portable Systems Group
0926ed6652 NMI Support Patch 10:
[NTOS]: Write barebones NMI Trap handler which does a TSS context switch to the NMI TSS and then calls the HAL NMI handler.
    [NTOS]: Implement KiSaveProcessorState for doing a PRCB context save/restore.

You should now be able to test the new NMI functionality by either building the circuit referenced in my e-mail and attaching it to your PCI bus, or by using "nmi 0" in the QEMU stdio console.

svn path=/trunk/; revision=44871
2010-01-02 01:34:27 +00:00
Cameron Gutman
b1e02d2174 [NTOSKRNL]
- Fake success from the MmSecureVirtualMemory stub
 - See issue #4996 for details

svn path=/trunk/; revision=44870
2010-01-02 01:32:43 +00:00
ReactOS Portable Systems Group
cbcf12257d NMI Support Patch 9:
[NDK]: Add missing KTSS ASM offsets.
    [NDK]: Add missing EXCEPTION_ codes.

svn path=/trunk/; revision=44869
2010-01-02 01:32:34 +00:00
ReactOS Portable Systems Group
0396096bd1 NMI Support Patch 8:
[NTOS]: Implement a GNU Assembler version of the Windows SDK ASM calling convention macros. Only stdCall and its helpers have been written -- feel free to write the rest. Based on callconv.inc from Microsoft). SUGGESTION: Slowly start rewriting current code to use calling convention macros as it is much cleaner.


svn path=/trunk/; revision=44868
2010-01-02 01:28:36 +00:00
Johannes Anderwald
e40621ab44 [KS]
- Return correct error code

svn path=/trunk/; revision=44867
2010-01-02 01:22:38 +00:00
Dmitry Gorbachev
3b558d84dd Lift a protection (forgotten in 44842).
svn path=/trunk/; revision=44866
2010-01-02 00:17:37 +00:00
Johannes Anderwald
02a81d4d07 [SETUPAPI]
- Implement SetupInitializeFileLogA, SetupInitializeFileLogW, SetupTerminateFileLog

svn path=/trunk/; revision=44865
2010-01-01 23:44:41 +00:00
Dmitry Gorbachev
756859265d Fix parameter type of NtQueryInformationThread; do not call ExitThread from itself. Bug #5076.
svn path=/trunk/; revision=44864
2010-01-01 23:14:10 +00:00
ReactOS Portable Systems Group
126c7209ac NMI Support Patch 7 Build Fixer:
[HAL]: Define HalpNMIInProgress as an external in the HAL private headers.

svn path=/trunk/; revision=44863
2010-01-01 21:07:22 +00:00
ReactOS Portable Systems Group
9e858a7261 NMI Support Patch 7 Straggler:
[HAL]: Piggyback on V8086 handler (don't restore kernel GPF handler) during an NMI, so that we don't enter another fault context during a recursive NMI after display reset. If another NMI does happen, the V8086 GPF handler will just spin.


svn path=/trunk/; revision=44862
2010-01-01 21:05:41 +00:00
ReactOS Portable Systems Group
1b1c2360bb NMI Support Patch 7:
[NTOS]: Improve UNHANDLED_PATH macro with a new "Reason" parameter which displays why the path is unhandled (ie: what the unexpected/unlikely/untested scenario is). This is better than just displaying the current PC which is typically useless.
    [NTOS]: Separate UNHANDLED_PATH from UNHANDLED_V86_PATH which is specifically for paths that are unimplemented due to lack of VDM support.
    [HAL]:  Update to new macros in V8086 support, and handle invalid opcode errors with a debug print (I encountered these when the NMI TSS was being used, since the IOPM was invalid).
    [HAL]:  If the V8086 GPF handler is called outside of V8086 mode, assume an NMI happened around the BIOS Call and just spin forever. We'll piggyback on the V8086 GPF handler during an NMI, in order to avoid the kernel's GPF handler which would attempt to panic/reset the display again (and cause endless NMI recursion/corruption).


svn path=/trunk/; revision=44861
2010-01-01 21:03:22 +00:00
ReactOS Portable Systems Group
6f0ef76efe NMI Support Patch 6:
[HAL]: Fix NMI recursion issues.
    [HAL]: Reset the display during NMI and paint the NMI Screen of Death.

svn path=/trunk/; revision=44860
2010-01-01 20:55:15 +00:00
Dmitry Chapyshev
a9786a898d - Update Russian translation
svn path=/trunk/; revision=44859
2010-01-01 19:09:55 +00:00
Eric Kohl
9bcb086ea2 [devmgr]
- Display 'Capabilities' and 'Config Flags' flags separately.

svn path=/trunk/; revision=44858
2010-01-01 17:23:40 +00:00
Eric Kohl
13e0ad9b55 Add missing device capabilities flags.
svn path=/trunk/; revision=44857
2010-01-01 17:02:37 +00:00
ReactOS Portable Systems Group
8266b754b6 NMI Support Patch 5:
[HAL]: Do correct TLB flushing for systems with global page support.
    [HAL]: Clean leading whitespace and comments.


svn path=/trunk/; revision=44856
2010-01-01 16:37:34 +00:00
ReactOS Portable Systems Group
61df639e4a NMI Support Patch 4:
[HAL]:  Use Mm headers to support PTE/PDE address translation instead of a hardcoded, homegrown macro. WARNING: The current HAL code is not PAE compatible (as it already wasn't).
    [NTOS]: Define an inline function to set and query an interrupt handler associated with a given IDT vector. This results in much cleaner code as the uglyness of manually setting up an IDT handler isn't duplicated 10 times. Additionally, it fixes some callers which had not been using HalVectorToIDTEntry to make the initial translation.

svn path=/trunk/; revision=44855
2010-01-01 15:09:14 +00:00
Eric Kohl
45316fbf63 [devmgr]
- Add missing string resources and translate the german ones.
- Set the focus to the combobox when the details page is opened.
- Don't display an error message when a property is not set for the selected device.
- Display 'Capabilities' and 'Config Flags' as DWORD values.

Ooops! These should have been committed as well.

svn path=/trunk/; revision=44854
2010-01-01 14:44:06 +00:00
Eric Kohl
3637a51c29 [devmgr]
- Add missing string resources and translate the german ones.
- Set the focus to the combobox when the details page is opened.
- Don't display an error message when a property is not set for the selected device.
- Display 'Capabilities' and 'Config Flags' as DWORD values.

svn path=/trunk/; revision=44853
2010-01-01 14:42:49 +00:00
Sylvain Petreolle
d9c6ea2fbf Add GetEventLogInformation stub.
Add parameter checks for GetNumberOfEventLogRecords and GetOldestEventLogRecord.

Fixes 3 crashes for advapi32:eventlog winetest.

svn path=/trunk/; revision=44852
2010-01-01 14:41:44 +00:00
Dmitry Chapyshev
7b84f181bc - Update Russian translation
svn path=/trunk/; revision=44851
2010-01-01 14:35:01 +00:00
Daniel Reimer
13fc70da4e German translation of Eric's changes + fixed some bad language.
svn path=/trunk/; revision=44850
2010-01-01 12:40:23 +00:00
Timo Kreuzer
d786ac57d2 [HAL]
Don't spin with an interlocked operation.

svn path=/branches/ros-amd64-bringup/; revision=44849
2010-01-01 12:17:24 +00:00
Colin Finck
7e0605b6a2 Happy New Year!
svn path=/trunk/; revision=44848
2010-01-01 12:10:13 +00:00
Cameron Gutman
fb4eec0d30 [IP]
- Fix a small locking issue in TCPClose

svn path=/branches/aicom-network-branch/; revision=44845
2010-01-01 05:58:37 +00:00
Sylvain Petreolle
599f3e27e8 Arch, why are you removing </module> tags ?
Happy new  year :)

svn path=/trunk/; revision=44844
2010-01-01 01:41:39 +00:00
ReactOS Portable Systems Group
040c742cac NMI Support Patch 3:
[HAL]: If the current TSS does not have enough space for an I/O Privilege Map then "borrow" the default TSS while the BIOS Call is in-flight. "Return" it when the BIOS call has ended. Fixes panics during a double fault (since the double fault handler will attempt to clear the display through a Video ROM BIOS Interrupt 10h). Allows NMI panics to do BIOS calls as well (for later).


svn path=/trunk/; revision=44843
2010-01-01 00:03:52 +00:00
ReactOS Portable Systems Group
fd1ccbe10c NMI Support Patch 2:
[HAL]: Simplify IDT write-protection handling (always make it R/W and restore it to previous state).
    [HAL]: Avoid two superflous TLB flushes.


svn path=/trunk/; revision=44842
2009-12-31 23:56:40 +00:00
ReactOS Portable Systems Group
2e1b82cf72 NMI Support Patch 1:
[HAL]:  The I/O Permissions Map on a typical Privileged Mode x86 OS is all 0xFF's, so it's quite wasteful to copy-in/out the entire map each single BIOS Call. As an optimization, only save and restore non-0xFF entries.
    [NTOS]: Define and use constants for different IOPM values, instead of using hardcoded values.


svn path=/trunk/; revision=44841
2009-12-31 23:51:26 +00:00
Timo Kreuzer
a1bc42e31a [HAL]
Replace the asm implementations of HalpAcquireSystemHardwareSpinLock and HalpReleaseCmosSpinLock with C implementations. The old ones didn't work on SMP, as they were only compiled once as UP.

svn path=/branches/ros-amd64-bringup/; revision=44840
2009-12-31 23:45:36 +00:00
Cameron Gutman
8dd3966ba9 [TCPIP, IP]
- Completely rewrite (again) the locking code and use references to ensure that the connection doesn't get freed while completing requests (the most frequent cause of crashes)
 - Remove DrainSignals and complete requests inside HandleSignalledConnection instead of doing them in a separate thread (increases speed a lot)
[OSKITTCP]
 - Don't clear the socket context in OskitTCPClose because we would end up in HandleSignalledConnection without a connection (which we don't support anymore after eliminating DrainSignals)
 - Change the check performed to see if a socket is dying so we support connection dying after calling OskitTCPClose
[AFD]
 - Remove leftover ASSERTs which fail after the changes to tcpip (they were wrong in the first place because we call into tcpip at DISPATCH_LEVEL sometimes)

svn path=/branches/aicom-network-branch/; revision=44839
2009-12-31 23:33:24 +00:00
Eric Kohl
e426bf896f [devmgr]
Implement the details page and add dialogs for the resources and power pages. Some of the code is not final yet as I don't have a clean way of retrieving the required information. Some required stuff in setupapi or umpnpmgr is still incomplete too.

I wish you a happy and successful 2010!
Eric.

svn path=/trunk/; revision=44838
2009-12-31 22:10:41 +00:00
Timo Kreuzer
a4123875f0 fix build of halxbox
svn path=/branches/ros-amd64-bringup/; revision=44837
2009-12-31 21:43:20 +00:00
Timo Kreuzer
e609c18651 fix spec file for x86
svn path=/branches/ros-amd64-bringup/; revision=44836
2009-12-31 21:31:14 +00:00
Timo Kreuzer
5ec7192b66 [HAL]
- Move the rest from halamd64 to halx86

svn path=/branches/ros-amd64-bringup/; revision=44835
2009-12-31 21:23:01 +00:00
Timo Kreuzer
2a0c1bf649 [HAL]
- rename halmp to halmps
- remove hal_generic_pc
- remove some stuff from halamd64

svn path=/branches/ros-amd64-bringup/; revision=44834
2009-12-31 20:46:45 +00:00
Timo Kreuzer
b40509f919 use a directory.rbuild for halx86
svn path=/branches/ros-amd64-bringup/; revision=44833
2009-12-31 19:46:47 +00:00
Timo Kreuzer
bda3767dfb [HAL]
some improvements

svn path=/branches/ros-amd64-bringup/; revision=44832
2009-12-31 19:26:37 +00:00
Timo Kreuzer
6d68ae384a [HAL]
- begin integrating halamd64 into halx86
- Move some amd64 specific stuff into halx86
- use hal_generic for amd64, too

svn path=/branches/ros-amd64-bringup/; revision=44831
2009-12-31 16:51:05 +00:00
Timo Kreuzer
18534cb3b7 [HAL]
- fix indentation
- add HalDisableSystemInterrupt and HalEnableSystemInterrupt stubs

svn path=/branches/ros-amd64-bringup/; revision=44830
2009-12-31 16:47:09 +00:00
Timo Kreuzer
54dd2d3fd6 [HAL]
- fix pspec
- entrypoint should be HalInitSystem

svn path=/branches/ros-amd64-bringup/; revision=44829
2009-12-31 15:38:34 +00:00
Timo Kreuzer
773fab1b92 [HAL]
use the pspec for amd64, too

svn path=/branches/ros-amd64-bringup/; revision=44828
2009-12-31 15:31:20 +00:00
Timo Kreuzer
216f7788eb [HAL]
- Raname each architecture's default hal (halup) to "hal" (Windows does that, too) and get rid of the duplicated stub hal.

svn path=/branches/ros-amd64-bringup/; revision=44827
2009-12-31 15:19:17 +00:00
Timo Kreuzer
7e2711ef2a fix a typo
svn path=/branches/ros-amd64-bringup/; revision=44826
2009-12-31 15:12:16 +00:00
Timo Kreuzer
3d53481c23 [HAL]
- Move i386 specific code into i386 folder
- Move up specific code into up folder

svn path=/branches/ros-amd64-bringup/; revision=44825
2009-12-31 14:57:24 +00:00
Timo Kreuzer
4080cc2e20 Patch by Amine Khaldi: Fix buffer length check
svn path=/trunk/; revision=44824
2009-12-31 14:44:33 +00:00
Timo Kreuzer
2a7cba77ee [HAL]
- Implement architecture specific HalpSetInterruptGate, replacing SetInterruptGate

svn path=/branches/ros-amd64-bringup/; revision=44823
2009-12-31 14:29:50 +00:00
Samuel Serapion
aebe86c109 Fix Property USERMODE on x86
svn path=/branches/ros-amd64-bringup/; revision=44821
2009-12-31 07:42:39 +00:00
Samuel Serapion
534bb7e966 Fix build after r44818
svn path=/branches/ros-amd64-bringup/; revision=44820
2009-12-31 07:26:46 +00:00
James Tabor
a586dab9f9 [User32]
- Patch modified by Dmitry Timoshkov : Handle virtual key codes only in the WM_KEYDOWN case. See bug 5063. Reported by David Quintana.

svn path=/trunk/; revision=44819
2009-12-31 02:41:57 +00:00
Timo Kreuzer
d457242a5d - mciGetCreatorTask returns HTASK not HANDLE
- remove broken LargeInteger functions from wintrnl.h

svn path=/branches/ros-amd64-bringup/; revision=44818
2009-12-31 01:56:39 +00:00
James Tabor
098407e9ce [Win32k]
- Plugged in region attribute support and added the PEB cache for it as well.

[Gdi32]
- Using CreateRectRgn only with attribute and PEB cache support.

[Testing]
- Wine tests: gdi32; clipping and dc. gdiplus; region. user32; dce. Same results.
- Applications, AbiWord 2.6.8, FF 3.5, miranda 0.7.19 unicode, putty, SeaMonkey 2.0, WinMerge 2.12.4 and winamp 2.95 rc std. Same results.

svn path=/trunk/; revision=44817
2009-12-30 22:56:09 +00:00
Eric Kohl
a7b546562e [services] Set the given service start name or LocalSystem for a new service.
svn path=/trunk/; revision=44816
2009-12-30 17:17:58 +00:00
Eric Kohl
5ad3e6fe72 [umpnpmgr]
Move device instance action constants into the idf file and use them instead of hardcoded values.

svn path=/trunk/; revision=44813
2009-12-30 13:57:47 +00:00
Cameron Gutman
175500c30b - Forgot this file
svn path=/branches/aicom-network-branch/; revision=44811
2009-12-30 12:53:47 +00:00
Cameron Gutman
2caa9c0981 [IP]
- Bind to the address specified in AddressFile instead of always binding to the outgoing interface's unicast address
 - Get the NCE using the local address (if specified) so we don't end up sending from one interface using another interface's  address as the source

svn path=/branches/aicom-network-branch/; revision=44810
2009-12-30 12:46:14 +00:00
Gregor Schneider
cf30e24abd [win32k] Add support for mask offsets in IntEngStretchBlt
svn path=/trunk/; revision=44809
2009-12-30 12:42:48 +00:00
Gregor Schneider
9ba0500088 [user32] Set the number of colors correctly when creating a monochrome bitmap
svn path=/trunk/; revision=44808
2009-12-30 12:39:19 +00:00
Samuel Serapion
8403dd605f Add definitions for the x86bios emulator.
http://www.geoffchappell.com/viewer.htm?doc=studies/windows/km/hal/api/x86bios/index.htm

svn path=/branches/ros-amd64-bringup/; revision=44807
2009-12-30 07:53:02 +00:00
James Tabor
9b791c7be9 [Win32k]
- Setting up for region attribute support.
- Removed old code and use GreDeleteObject for dc and region types.

svn path=/trunk/; revision=44806
2009-12-29 21:07:04 +00:00
Hervé Poussineau
9d97bda0a9 [freeldr] Never unmap hyperspace or HAL entries. Fixes boot problems with more than 1GB of RAM
svn path=/trunk/; revision=44805
2009-12-29 20:43:01 +00:00
Gregor Schneider
b13b720381 [win32k]
- Add mask offset coordinates to GreStretchBltMask parameters, add code to handle a mask offset
- Only fail if the mask is smaller than the color bitmap, print sizes in this case
- Adapt callers to GreStretchBltMask changes
- DrawIcon: use new features to combine mask and color images
- Mouse control panel now shows cursors again (masks still need some work), fixes ~15 user32:cursoricon tests

svn path=/trunk/; revision=44803
2009-12-29 18:21:00 +00:00
Gregor Schneider
f8e8de57e0 [user32]
- Merge icon and cursor creation into one function, fix height assumptions
- Remove code preventing color cursors to be selected
- Winamp cursor is now shown correctly, bug #4370

svn path=/trunk/; revision=44802
2009-12-29 18:03:16 +00:00
Gregor Schneider
ff89b8ac95 [taskmgr]
- Allow task manager to activate and restore a previous instance when the mutex already exists
- Make application title identical to the window title for languages where it wasn't

svn path=/trunk/; revision=44801
2009-12-29 17:55:44 +00:00
Aleksey Bragin
e30be53d56 Cameron Gutman
- Add the ability to install SMBus controllers automatically.
See issue #3361 for more details.

svn path=/trunk/; revision=44799
2009-12-29 13:53:28 +00:00
Timo Kreuzer
1a46e2dfde Add ksamd64.h. This is a temporary solution until it's autogenerated. Note to self: veryfy offsets before using them!
svn path=/branches/ros-amd64-bringup/; revision=44798
2009-12-28 20:03:17 +00:00
James Tabor
926a83116a - Fix regressions in FF and OOo.
svn path=/trunk/; revision=44797
2009-12-28 18:41:31 +00:00
James Tabor
91cbcdc152 [Win32k]
- Plug in the new dc attribute support and add the brush pen and region attribute support.

svn path=/trunk/; revision=44796
2009-12-28 18:10:03 +00:00
Timo Kreuzer
0752824a4b Remove the totally broken asm implementation of KeQueryPerformanceCounter and replace it with a much simpler C version using __rdtsc().
svn path=/branches/ros-amd64-bringup/; revision=44795
2009-12-28 17:53:26 +00:00
Eric Kohl
a22d21e20c spaces -> tabs
svn path=/trunk/; revision=44794
2009-12-28 12:02:32 +00:00
Eric Kohl
b837d58c19 - Lsasrv: Create the LsaAuthenticationPort and add a basic server loop that listens to incoming requests.
- Lsalib: Combine request and reply data of the register request into a connection info struct.

My test application can now connect to the LsaAuthenticationPort.

svn path=/trunk/; revision=44793
2009-12-28 11:59:20 +00:00
James Tabor
050435c284 [Win32k]
- Added two new function's to support thread and process information free attribute list support.

svn path=/trunk/; revision=44792
2009-12-28 07:02:32 +00:00
Samuel Serapion
aea03eb5bf Implement HalpInitPICs
svn path=/branches/ros-amd64-bringup/; revision=44791
2009-12-28 06:38:19 +00:00
Samuel Serapion
6d502c6def Sync to trunk (r44789)
svn path=/branches/ros-amd64-bringup/; revision=44790
2009-12-28 04:55:58 +00:00
Samuel Serapion
11bbb46220 ignore some warnings by gcc 4.4.2
svn path=/branches/ros-amd64-bringup/; revision=44789
2009-12-28 04:46:04 +00:00
Timo Kreuzer
88449605d9 Implement KiGeneralProtectionFault a bit
svn path=/branches/ros-amd64-bringup/; revision=44788
2009-12-28 04:39:02 +00:00
Samuel Serapion
c48d677ecb Fix Build.
svn path=/branches/ros-amd64-bringup/; revision=44787
2009-12-28 03:09:37 +00:00
Samuel Serapion
6fa94d46fb Fix broken merge
svn path=/branches/ros-amd64-bringup/; revision=44786
2009-12-28 03:02:12 +00:00
Samuel Serapion
5327273136 Unhack ntoskrnl, fixes many x86 regressions.
svn path=/branches/ros-amd64-bringup/; revision=44785
2009-12-28 01:37:31 +00:00
Timo Kreuzer
648db9116c remove unneded parameter
svn path=/branches/ros-amd64-bringup/; revision=44784
2009-12-28 01:28:29 +00:00
Samuel Serapion
214120100d - Fix LPBLOCKINGCALLBACK
- Don't use size_t for string sizes.
- Fixes warnings.

svn path=/branches/ros-amd64-bringup/; revision=44783
2009-12-28 01:07:10 +00:00
Timo Kreuzer
c5a84e9af7 reduce diff to trunk
svn path=/branches/ros-amd64-bringup/; revision=44782
2009-12-28 00:51:53 +00:00
Timo Kreuzer
c8743e677e [KE]
Make trap handling cleaner / simplify stack layout by using the P1Home ... P5 members of KTRAP_FRAME and KEXCEPTION_FRAME as save area for function parameters.

svn path=/branches/ros-amd64-bringup/; revision=44781
2009-12-28 00:37:29 +00:00
Timo Kreuzer
7781a0c84e spaces -> tabs in rbuild file
svn path=/trunk/; revision=44780
2009-12-27 23:54:01 +00:00
Timo Kreuzer
ea9bdd25e8 reduce differences to trunk
svn path=/branches/ros-amd64-bringup/; revision=44779
2009-12-27 22:06:48 +00:00
Timo Kreuzer
5f039ce636 fix USERMODE=0 compilation
svn path=/branches/ros-amd64-bringup/; revision=44778
2009-12-27 21:30:36 +00:00
Benedikt Freisen
d90303c704 Tool box, color palette and status bar can be hidden and shown using menu entry and/or shortcut.
svn path=/trunk/; revision=44777
2009-12-27 21:15:08 +00:00
Eric Kohl
2db30d58d2 [lsalib]
Fix indentation. No code changes.

svn path=/trunk/; revision=44776
2009-12-27 19:46:13 +00:00
James Tabor
e50eff1409 [gdi32]
- Add notes, fix CombineRgn and cleanup.

svn path=/trunk/; revision=44775
2009-12-27 19:43:46 +00:00
Eric Kohl
fc5a89cd69 Move the client-side LSA functions from secur32.dll to the new static library lsalib because these functions will be shared between ntoskrnl.exe, advapi32.dll and secur32.dll.
svn path=/trunk/; revision=44774
2009-12-27 19:10:30 +00:00
Samuel Serapion
948f940cd9 Implement KeGetTrapFrame and KeGetExceptionFrame macros.
svn path=/branches/ros-amd64-bringup/; revision=44773
2009-12-27 18:19:20 +00:00
Samuel Serapion
4c27361c3b Fix warning cast to 'unsigned int' loses precision.
svn path=/branches/ros-amd64-bringup/; revision=44772
2009-12-27 18:03:16 +00:00
Samuel Serapion
6d3684469e sync to trunk (44770)
svn path=/branches/ros-amd64-bringup/; revision=44771
2009-12-27 17:55:04 +00:00
Gregor Schneider
f8329e21a6 [win32k] Handle invalid palette index by using the first palette entry
svn path=/trunk/; revision=44770
2009-12-27 15:43:48 +00:00
Gregor Schneider
8600c8e72b [win32k]
- Set the number of mapped colors depending on the usage parameter
- Use pure PALETTERGB color values when no palette is selected
- Fixes true color issue mentioned in r44712

svn path=/trunk/; revision=44769
2009-12-27 15:08:41 +00:00
Gregor Schneider
5e86753986 [win32k]
- Create DIB section palettes with the number of colors mapped from the logical palette
- Validate logical palette access, set to black for invalid indices
- gdi32:palette test now succeeds

svn path=/trunk/; revision=44768
2009-12-27 13:02:19 +00:00
Timo Kreuzer
edd63ea0b7 [GENINC]
Lots of fixes and updates.

svn path=/trunk/; revision=44767
2009-12-26 22:55:53 +00:00
Timo Kreuzer
c300719e77 [KDBG]
Hackfix the problem with attaching to processes introduced in r44743, by lowering IRQL to passive level, although interrupts are off. Needed because KDBG calls pageable code.

svn path=/trunk/; revision=44766
2009-12-26 19:36:24 +00:00
James Tabor
be29496e50 [Win32k]
- Rewritten NtGdiCombineRgn.
- Add two function's to support locking and Rgn attributes. These function's will replace all the normal Rgn locking ones.

svn path=/trunk/; revision=44765
2009-12-26 19:19:33 +00:00
Samuel Serapion
56fd28cbe8 [rbuild]
- fix mkhive command try 2. 
- 100% tested

svn path=/branches/ros-amd64-bringup/; revision=44764
2009-12-26 06:40:23 +00:00
Samuel Serapion
46b765a5fa [rbuild]
Really fix mkhive command.

svn path=/branches/ros-amd64-bringup/; revision=44763
2009-12-26 06:23:47 +00:00
Samuel Serapion
d2c55015f1 [rbuild]
- Fix make install.
- Fix mkhive command.
- Automatically generate reactos.dff using the installfile and installbase attributes found in rbuild files.
-- Fixes race to grab reactos.dff on concurrent builds in the same tree.
-- Makes the result of make install, make livecd and make bootcd the same(some modules arent in reactos.dff but have installfile/base attributes, which means they got intto livecd/install but not bootcd!)
-- Works really great with rosapps/rostests.
-- Downside is some files now exist inside and outside the generated cab file, maybe this could be useful if we wanted to have a package that contained reactos and an app that installed it from livecd... just thinking out loud...

svn path=/branches/ros-amd64-bringup/; revision=44762
2009-12-26 06:07:38 +00:00
Gregor Schneider
ade1987d18 [win32k]
- IntGetDIBColorTable: return the number of actually copied color table entries
- DIB_CreateDIBSection: simplify calculation of palette entry count
- IntHandleSpecialColorType: remove leftover debug print

svn path=/trunk/; revision=44761
2009-12-25 17:54:41 +00:00
Eric Kohl
185c716bb3 The service thread must receive all commands.
svn path=/trunk/; revision=44760
2009-12-25 16:41:06 +00:00
Eric Kohl
d1ffae9c3b RQueryServiceConfigA/W: Add missing dependency information.
svn path=/trunk/; revision=44759
2009-12-25 15:08:03 +00:00
Johannes Anderwald
1015293df7 [PORTCLS]
- Return status code of operation
- Cancel all irps when pin state is set to stop. Fixes ReactOS portcls regression under WindowsXP
- Handle IRP_MN_READ_CONFIG

svn path=/trunk/; revision=44758
2009-12-25 12:24:42 +00:00
Johannes Anderwald
122dbfc23f [PSDK]
- Fix KSEVENTSETID_AudioControlChange definition

svn path=/trunk/; revision=44757
2009-12-25 02:54:24 +00:00
Johannes Anderwald
3a6c7402a5 [MMIXER]
- Store correct mixer handle in the mixer info
- mmixer can now handle set / get volume and on-off (mute) requests

svn path=/trunk/; revision=44756
2009-12-25 01:21:29 +00:00
Johannes Anderwald
5231279bee [KS]
- Store missing result of operation
- Fixes a regression of KsStudio

svn path=/trunk/; revision=44755
2009-12-25 01:17:39 +00:00
Timo Kreuzer
086ab61bfa [freeldr]
Fix apic base

svn path=/branches/ros-amd64-bringup/; revision=44754
2009-12-24 23:17:18 +00:00
Christoph von Wittich
b5f2a44d75 [gdi32]
fix typo in comment

svn path=/trunk/; revision=44753
2009-12-24 09:01:43 +00:00
James Tabor
72d95b99f9 [gdi32]
- Enable and fix more region user code.


svn path=/trunk/; revision=44752
2009-12-24 07:42:38 +00:00
James Tabor
c61c751b19 [gdi32]
- Set the last arg to 1 for GetTextExtentPoint support mode.

svn path=/trunk/; revision=44751
2009-12-24 07:03:46 +00:00
James Tabor
093456d1b0 [gdi32] - Move OpenPrinterW out from static.
svn path=/trunk/; revision=44750
2009-12-24 06:57:48 +00:00
Samuel Serapion
928e636341 [ntoskrnl]
- enable KdpEnableSafeMem for amd64
- unhack ExInitPoolLookasidePointers
- hackplement KiInitializeContextThread
- Remove extended eflag code from kdb, its useless.
- Rewrite KdbpCmdGdtLdtIdt
- Enable KdbpCmdTss
- misc kdb fixes.

svn path=/branches/ros-amd64-bringup/; revision=44749
2009-12-24 04:12:02 +00:00
Timo Kreuzer
6e3e947a79 [GENINC]
This is going to be a host tool that autogenerates assembly definitions from the target headers. This is done in two steps: 1) a raw data file is compiled with the target compiler using the target headers 2) The host tool parses this data file and creates an appropriate .h or .inc file.
So far there's only the source for the data file, which is halfway complete and currently compiled as bootloader type, as we don't seem to have raw binary target.
WIP

svn path=/trunk/; revision=44748
2009-12-24 03:45:21 +00:00
James Tabor
a73299ffde [gdi32]
- Move more region code from stubs into the appropriate file.
- Enable and fix more user code.


svn path=/trunk/; revision=44747
2009-12-23 23:30:26 +00:00
James Tabor
3180f15b3d [gdi32]
- Move region code from stubs into the appropriate file.
- Enable and fix SetRectRgn user code.


svn path=/trunk/; revision=44746
2009-12-23 23:10:32 +00:00
James Tabor
35f89c78de [Win32k]
- Set error if no handle is provided.

svn path=/trunk/; revision=44745
2009-12-23 20:12:28 +00:00
Timo Kreuzer
cba6f25d3d [i8042prt]
- Fix Ctrl-Scroll key combination, by ignoring ACK codes and not relying on a 0xe0 sequence code, which is not being sent at least on VBox.
- Fix Tab-K handling at high irql, by moving it out of the DPC routine into the ISR.

svn path=/trunk/; revision=44743
2009-12-23 18:43:27 +00:00
Gregor Schneider
0567d77694 [msvcrt] Update c++ symbol demangling to Wine 1.1.35 (msvcrt:cpp test buffer overrun)
svn path=/trunk/; revision=44742
2009-12-23 17:48:27 +00:00
Gregor Schneider
1cb2122720 [win32k] NtGdiSetDIBitsToDeviceInternal:
- Choose the number of scan lines from the parameter and the bitmap size
- Add scan line offset to the destination rectangle top left corner (fixes drawing images line by line)
- Add debug print for further problem solving (deactivated)

svn path=/trunk/; revision=44741
2009-12-23 17:41:20 +00:00
Christoph von Wittich
900787a278 [winmm_winetest]
sync winmm_winetest to wine 1.1.35

svn path=/trunk/; revision=44740
2009-12-23 16:02:37 +00:00
Christoph von Wittich
fb2407c104 [wldap32_winetest]
sync wldap32_winetest to wine 1.1.35

svn path=/trunk/; revision=44739
2009-12-23 15:58:59 +00:00
Christoph von Wittich
f521358b5c [advapi32_winetest]
add eventlog tests to build

svn path=/trunk/; revision=44738
2009-12-23 15:57:45 +00:00
Timo Kreuzer
f40fe21109 Fix release builds
svn path=/trunk/; revision=44737
2009-12-23 15:32:54 +00:00
Christoph von Wittich
1c1ceaa277 [advapi32_winetest]
sync advapi32_winetest with wine 1.1.35

svn path=/trunk/; revision=44736
2009-12-23 15:15:54 +00:00
Christoph von Wittich
a059004e99 [psdk]
add EVENTLOG_FULL_INFORMATION structure (from wine)

svn path=/trunk/; revision=44735
2009-12-23 15:15:21 +00:00
Eric Kohl
83c4eea575 Assign the services Dhcp, EventLog, PlugPlay and RpcSs to the LocalSystem account.
svn path=/trunk/; revision=44734
2009-12-23 14:59:47 +00:00
Eric Kohl
211c79ac94 - RChangeServiceConfigA/W: Update the service group properly and fix the ANSI to Unicode string conversion.
This fixes one winetest.

svn path=/trunk/; revision=44733
2009-12-23 14:32:15 +00:00
Christoph von Wittich
05ea3194c6 [kernel32]
fix typos in comments (as in wine 1.1.35)

svn path=/trunk/; revision=44732
2009-12-23 12:10:58 +00:00
Christoph von Wittich
2ee611e9c9 [netapi32]
sync netapi32 with wine 1.1.35

svn path=/trunk/; revision=44731
2009-12-23 11:36:17 +00:00
Christoph von Wittich
e2af57a32d [inetcomm]
sync inetcomm with wine 1.1.35

svn path=/trunk/; revision=44730
2009-12-23 11:32:32 +00:00
Christoph von Wittich
39a8faa3dc [shell32]
partial shlview winesync to wine 1.1.35

svn path=/trunk/; revision=44729
2009-12-23 11:28:12 +00:00
Christoph von Wittich
f89743a362 [shell32]
partial SHGetFileInfoW winesync to wine 1.1.35 (fixes uninitialized memory access)

svn path=/trunk/; revision=44728
2009-12-23 11:21:41 +00:00
Christoph von Wittich
16efd1a5a0 [shell32]
partial shelllink winesync to wine 1.1.35 (fixes a memory leak)

svn path=/trunk/; revision=44727
2009-12-23 11:17:00 +00:00
Christoph von Wittich
859058ed4b [kernel32]
sync enumerate_mapped_resources and update_add_resource to wine 1.1.35

svn path=/trunk/; revision=44726
2009-12-23 11:13:35 +00:00
Christoph von Wittich
322ce004ae [crt]
import _wcsupr_s from wine 1.1.35

svn path=/trunk/; revision=44725
2009-12-23 10:56:54 +00:00
Christoph von Wittich
17fdbfeb72 [crt]
sync wcscpy_s with wine 1.1.35

svn path=/trunk/; revision=44724
2009-12-23 10:44:24 +00:00
Johannes Anderwald
16bb7edce3 [WDMAUD.DRV]
- Fix build

svn path=/trunk/; revision=44723
2009-12-23 10:43:17 +00:00
Samuel Serapion
0cb1aea701 Lazy port of kdbg to AMD64. Kdbg is very x86 specific but thankfully amd64 isn't that diferent. It can query register values, list modules, and dump PCR. Other stuff is broken and needs further debugging such as KdpSafe API, IDT, GDT, LDT offsets and disasm code. Backtraces not available because of missing unwind data. Special thanks to Physicus for making this commit possible.
svn path=/branches/ros-amd64-bringup/; revision=44722
2009-12-23 03:36:40 +00:00
Johannes Anderwald
4b9731d0db [WDMAUD.DRV]
- Move the routines which interact wdmaud.sys to legacy.c
- Implement opening / closing of audio pins as well as writing / reading audio bytes from / to it
- By defining USE_MMIXER_LIB, wdmaud.drv bypasses wdmaud+sysaudio and directly writes/reads the audio bytes to portcls.


svn path=/trunk/; revision=44721
2009-12-23 03:05:11 +00:00
Johannes Anderwald
86558f7d81 [MMIXER]
- Implement a function for controlling the wave pin state

svn path=/trunk/; revision=44720
2009-12-23 02:49:18 +00:00
Johannes Anderwald
43fd6670e8 [MMIXER]
- Fix a bug in the file header

svn path=/trunk/; revision=44717
2009-12-22 18:08:51 +00:00
Eric Kohl
1686070199 If the user doubleclicked a treeview item, make sure the doubleclicked item has already been selected. Otherwise the user can expand or collapse a treeview iten and a previously selected item get opened. That's not what we want.
svn path=/trunk/; revision=44716
2009-12-22 17:00:45 +00:00
Eric Kohl
18df79a3ba Fix a typo. Use lpStartServiceName instead of lpServiceName.
This fixes two winetests. 

svn path=/trunk/; revision=44714
2009-12-22 16:57:27 +00:00
Eric Kohl
fa1f780dfb - Remove unused variable
- Get rid of those ugly single line if-statements.
- No code changes

svn path=/trunk/; revision=44713
2009-12-22 16:51:33 +00:00
Gregor Schneider
9212e559dc [win32k]
- Add support for DIBINDEX, PALETTERGB, PALETTEINDEX macros in SetPixel(V)
- Before it did just take every COLORREF as a RGB color, while it could also mean (dib-)palette indices
- Fixes several gdi32 bitmap winetests (depending on bit depth between 2 and ~500), 2 palette tests and some palette drawing issues
- One problem with palette indices remains in true color bit modes (see bitmap test)

svn path=/trunk/; revision=44712
2009-12-22 16:17:44 +00:00
Gregor Schneider
322a77fc09 [win32k] Remove palette flag validation for get/setPaletteEntries
svn path=/trunk/; revision=44711
2009-12-22 16:02:49 +00:00
Christoph von Wittich
4c1be6442f sync netapi32_winetest with wine 1.1.35
svn path=/trunk/; revision=44710
2009-12-22 11:51:26 +00:00
Christoph von Wittich
616f139bc2 sync msvcrtd_winetest with wine 1.1.35
svn path=/trunk/; revision=44709
2009-12-22 11:50:11 +00:00
Christoph von Wittich
6387acbd9a sync msacm32_winetest with wine 1.1.35
svn path=/trunk/; revision=44708
2009-12-22 11:48:05 +00:00
Christoph von Wittich
5f66dfaf10 sync msvcrt_winetest with wine 1.1.35
svn path=/trunk/; revision=44707
2009-12-22 11:46:36 +00:00
Christoph von Wittich
ca97d9f41d sync lz32_winetest with wine 1.1.35
svn path=/trunk/; revision=44706
2009-12-22 11:42:28 +00:00
Christoph von Wittich
f46012e33b sync mstask_winetest with wine 1.1.35
svn path=/trunk/; revision=44705
2009-12-22 11:41:32 +00:00
Christoph von Wittich
7a93748222 sync hlink_winetest with wine 1.1.35
svn path=/trunk/; revision=44704
2009-12-22 11:40:11 +00:00
Christoph von Wittich
8303785901 sync fusion_winetest with wine 1.1.35
svn path=/trunk/; revision=44703
2009-12-22 11:38:45 +00:00
Gregor Schneider
ba525d1a0f Add diff file for r44691 (dll/win32/lpk needs LpkPresent), thanks Jim
svn path=/trunk/; revision=44702
2009-12-22 11:11:16 +00:00
Christoph von Wittich
1b914ccf6e add progman_dde to testlist
svn path=/trunk/; revision=44701
2009-12-22 11:05:33 +00:00
Christoph von Wittich
5cb5ab9870 sync msxml3_winetest with wine 1.1.35
svn path=/trunk/; revision=44700
2009-12-22 10:11:44 +00:00
Christoph von Wittich
b38cabca31 sync setupapi_winetest with wine 1.1.35
svn path=/trunk/; revision=44699
2009-12-22 10:08:01 +00:00
Christoph von Wittich
f295e17dd7 sync rsaenh_winetest with wine 1.1.35
svn path=/trunk/; revision=44698
2009-12-22 10:04:58 +00:00
Christoph von Wittich
1ee40f1b4a partial ntdll_winetest sync to wine 1.1.35
svn path=/trunk/; revision=44697
2009-12-22 09:57:33 +00:00
Christoph von Wittich
aa9ea8d7b3 add some missing structures and enumerations
svn path=/trunk/; revision=44696
2009-12-22 09:54:13 +00:00
Christoph von Wittich
d427e980ca sync kernel32_winetest with wine 1.1.35
svn path=/trunk/; revision=44695
2009-12-22 09:43:11 +00:00
Christoph von Wittich
bd1b9a331b sync shell32_winetest with wine 1.1.35
svn path=/trunk/; revision=44694
2009-12-22 09:35:12 +00:00
Christoph von Wittich
67cca04bc0 sync msi with wine 1.1.35
svn path=/trunk/; revision=44693
2009-12-22 09:28:03 +00:00
Christoph von Wittich
917a4bead6 sync msi_winetest with wine 1.1.35
svn path=/trunk/; revision=44692
2009-12-22 09:14:17 +00:00
James Tabor
0b5066e17b - [usp10] Fix build. Wine is out of control...
svn path=/trunk/; revision=44691
2009-12-22 05:53:11 +00:00
Gregor Schneider
b4a961e151 Sync usp10 test to Wine 1.1.35
svn path=/trunk/; revision=44690
2009-12-22 00:29:15 +00:00
Gregor Schneider
4f31279e0f Sync usp10 with Wine 1.1.35, remove diff
svn path=/trunk/; revision=44689
2009-12-22 00:27:48 +00:00
Timo Kreuzer
6134ac2619 try to fix build
svn path=/branches/ros-amd64-bringup/; revision=44686
2009-12-21 19:46:40 +00:00
Matthias Kupfer
498f09f92e - new icon for sndrec32
- remove empty and unused icons

svn path=/trunk/; revision=44685
2009-12-21 19:27:22 +00:00
Daniel Reimer
1505f03630 Sync reg, xcopy, wordpad and winhlp32 to Wine 1.1.35.
Add recent rc file changes in servman to all languages.

svn path=/trunk/; revision=44684
2009-12-21 16:40:25 +00:00
Ged Murphy
de4b8e65b8 fix paste error. ros-diffs yet again proves its worth
svn path=/trunk/; revision=44683
2009-12-21 16:20:08 +00:00
Ged Murphy
be248aceed Don't re-add the dependants
svn path=/trunk/; revision=44682
2009-12-21 16:17:18 +00:00
Ged Murphy
41cc052638 Recurse the tree and clean up all the strings tagged to the items. Servman now has working dependency tracking
svn path=/trunk/; revision=44681
2009-12-21 14:25:54 +00:00
Ged Murphy
1ebe1b0e18 Add full depth of dependencies for the first tree view
svn path=/trunk/; revision=44680
2009-12-21 13:42:29 +00:00
Ged Murphy
710b5b318b Implement the first level of service dependants
svn path=/trunk/; revision=44679
2009-12-21 11:57:58 +00:00
Gregor Schneider
92e5eddefb [win32k] Rename windowToViewPort to IntWindowToViewPort
svn path=/trunk/; revision=44678
2009-12-20 22:46:22 +00:00
Gregor Schneider
bd574fdd85 [win32k]
- Make DC_UpdateXforms update DeviceToWorld conversion matrix as well
- Fixes four gdi32 mapping tests and drawing in applications that use DPtoLP (Yuan's coordinate space test for example)

svn path=/trunk/; revision=44677
2009-12-20 22:35:16 +00:00
Gregor Schneider
f51abbcf0c [win32k] Reuse existing code to support page to device space transformations, fixes 4 gdi32 mapping tests
svn path=/trunk/; revision=44676
2009-12-20 18:59:10 +00:00
Matthias Kupfer
85bc5f7dc1 - remove SmallDiam for check boxes and radio butttons
- TODO: needs some fixes to adjust the checkmark vertically

svn path=/trunk/; revision=44675
2009-12-20 18:48:34 +00:00
Matthias Kupfer
14b73017ae - reenable KeyboardCues-value
svn path=/trunk/; revision=44674
2009-12-20 18:45:49 +00:00
Matthias Kupfer
bd09226085 - Add some German translations
- Add About-Dialog-Proc

svn path=/trunk/; revision=44673
2009-12-20 18:44:29 +00:00
Gregor Schneider
3d372532cc [win32k] Initialize Information contexts too, fixes eight more mapping tests
svn path=/trunk/; revision=44672
2009-12-20 17:18:36 +00:00
Gregor Schneider
c2896a6434 [win32k]
- Mapping mode works with the virtual device resolution
- Initialize virtual resolution when initializing the DC
- Fixes ~30 gdi32 mapping tests

svn path=/trunk/; revision=44671
2009-12-20 13:55:45 +00:00
Gregor Schneider
60f61011e7 [userenv] Print the directory name when GetShortPathNameW fails
svn path=/trunk/; revision=44670
2009-12-20 13:47:20 +00:00
Timo Kreuzer
114bcb2c56 Merge from amd64 branch:
[NTOSKRNL]
44415 Move architecture specific inline functions in into the respective headers.

[FREELDR]
39639 Fix 2 small typos.
40247 Fix a number of ULONG / ULONG_PTR issues, remove LoadReactOSSetup2 for non-x86 builds.
40324 Fix switching from long mode to real mode, by jumping into a compatibility segment first.
43566 move wlmemory.c into arch specific folder. add wlmemory.c and ntsetup.c for amd64 (stubbed)
43574 Enable winldr style boot for amd64
43598 Split wlmemory into portable and arch specific code. Partly implement amd64 version.
43600 Fix a bug.
43601 Move definition of KIP0PCRADDRESS into arch specific header. Implement WinLdrSetupForNt for amd64. Fix mapping of PCR and KI_USER_SHARED_DATA. Don't enable paging again on amd64. Fix WinLdrSetProcessorContext to take a ULONG_PTR not ULONG for Pcr and Tss
43602 Round up to pages when updating LoaderPagesSpanned to avoid a bug when the last memory region is not mapped.
43604 Add MempIsPageMapped for debugging puposes. Map pages for kernel, too in amd64 version of MempSetupPaging.
43605 Include the intrinsics from the kernel. Set segement selectors
43757 Pass pointer to debugprint function to the kernel in LoaderBlock->u.I386.CommonDataArea. Comment out __lldt
43775 Fixed build with MinGW-w64 4.4.3
44065 Use LoaderMemoryData instead of LoaderSpecialMemory for page tables
44095 Use the kernel mode address for the gdt/idt
44123 Fix a typo
44144 Share some more inline functions between the kernel and freeldr. Use __ltr instead of Ke386SetTr. refactor KiInitializeTss. Update some Mm constants. Halfplement KeFlushEntireTb. Clean the mapping of page 0 in KiSystemStartup, as long as we don't clean mappings in freeldr. Fix a bug in KiPageFault, where ebp was used instead of rbp. Refactor MmArmInitSystem and related.
44205 Improve the code in wlmemory.c, no real functional change.
44426 remove unused variables.
44530 Don't include i386/ke.h from ntoskrnl.
44540 Detect if this is a amd64 CPU before attempting to boot. (Basil Gello)

svn path=/trunk/; revision=44669
2009-12-20 13:30:35 +00:00
Dmitry Gorbachev
21ddc44f8f Update log2lines to the latest version. Jan Roeloffzen, bug #4342.
svn path=/trunk/; revision=44668
2009-12-20 12:36:26 +00:00
Johannes Anderwald
1ec212dc22 - Fix broken check for storing the number of transferred bytes.
- Fix broken logic in GetOverlappedResult
- Patch by Alex

svn path=/trunk/; revision=44667
2009-12-20 11:57:21 +00:00
Johannes Anderwald
f3968e086c [SETUPAPI]
- Add SetupSetNonInteractiveMode stub

svn path=/trunk/; revision=44666
2009-12-20 11:43:58 +00:00
Johannes Anderwald
5b92c7b167 [KS]
- Return correct error code in KsPinPropertyHandler, when buffer is too small
- Refactor KsTopologyPropertyHandler to make use of KsHandleSizedListQuery function which makes the function a lot smaller
- Fix totally broken KsHandleSizedListQuery

svn path=/trunk/; revision=44665
2009-12-20 11:17:02 +00:00
Johannes Anderwald
f45bd7617a [MMIXER]
- Add support for enumerating wave in/out devices. Based on the wdmaud driver code

svn path=/trunk/; revision=44664
2009-12-20 00:55:55 +00:00
Johannes Anderwald
20608aeb5a [WDMAUD.DRV]
- Implement support of using mmixer wave in/out library functions (not yet used)
- Not yet used
- Remove DIGCF_PRESENT flag from device list as setupapi cannot handle this yet properly

svn path=/trunk/; revision=44663
2009-12-20 00:55:52 +00:00
Johannes Anderwald
7615ef446e [MMIXER_TEST]
- Allocate the unicode version of LPMIXERCONTROL as mmixer api expects those
- Fix building of mmixer_test as mmixer now uses KsCreatePin

svn path=/trunk/; revision=44662
2009-12-20 00:55:50 +00:00
Johannes Anderwald
98485b0feb [SETUPAPI]
- Implement SetupDiOpenDeviceInterfaceRegKey

svn path=/trunk/; revision=44661
2009-12-20 00:53:21 +00:00
Johannes Anderwald
cf7f39eaba [MMIXER]
- Fix buffer overflow

svn path=/trunk/; revision=44660
2009-12-19 21:44:39 +00:00
Johannes Anderwald
cce0070699 [MMIXER]
- Fix broken check in MMixerAddMixerControl, which only copied the node name on failure
- Add initialization of LineControlsExtraDat LIST_ENTRY type, which resulted in a crash

svn path=/trunk/; revision=44659
2009-12-19 20:45:29 +00:00
Johannes Anderwald
5440b0612a [KS]
- Return correct status code

svn path=/trunk/; revision=44658
2009-12-19 20:42:48 +00:00
Gregor Schneider
28c158a870 [gdi32] Use predefined unimplemented macro for stubs, correct header paths
svn path=/trunk/; revision=44657
2009-12-19 19:07:36 +00:00
Gregor Schneider
f9d540f20b [win32k] Add parameter checks for NtGdiSetVirtualResolution
svn path=/trunk/; revision=44656
2009-12-19 18:57:27 +00:00
Giannis Adamopoulos
5416a90f26 [win32k]
- Don't store SYSTEM_CURSORINFO inside WINSTATION_OBJECT. Use a global variable instead
- Remove IntGetCursorLocation. Use directly gpsi->ptCursor

svn path=/trunk/; revision=44655
2009-12-19 16:23:05 +00:00
Gregor Schneider
3fc3ac5c8c [win32k]
- Simplify GdiExtSelectClipRgn slightly
- Add missing line break

svn path=/trunk/; revision=44654
2009-12-19 13:08:53 +00:00
Timo Kreuzer
ffe14b3dae [MM]
- Improve MiGetPteForProcess
Implement MiGetPteProtection, MiSetPteProtection, MmCreateVirtualMappingUnsafe, MmCreateVirtualMapping

svn path=/branches/ros-amd64-bringup/; revision=44653
2009-12-19 03:43:33 +00:00
Timo Kreuzer
14ce443d0a [KDBG]
Port KdbEnter to amd64 assembly. Untested.

svn path=/branches/ros-amd64-bringup/; revision=44652
2009-12-19 00:04:37 +00:00
Gregor Schneider
077c75ad65 [paint]
Andrew Faulds <ajfweb AT googlemail DOT com>: Add support for deletion of rectangular selections
See issue #5043 for more details.

svn path=/trunk/; revision=44651
2009-12-18 20:33:22 +00:00
Gregor Schneider
6ceb354c5c [kernel32]
Viliam Lejcik (lejcik AT gmail DOT com>: Various locale fixes (missing checks, wrong or no errors set etc.)
See issue #4898 for more details.

svn path=/trunk/; revision=44650
2009-12-18 19:54:43 +00:00
Johannes Anderwald
98423a8531 [SETUPAPI]
- Don't store deleted pointers in a list 
- Found by Hervé Poussineau (hpoussin at reactos dot org)

svn path=/trunk/; revision=44649
2009-12-18 10:49:25 +00:00
Johannes Anderwald
ebf5483364 [MMIXER_TEST
- Add support for Opening/Querying/Closing registry keys within the mmixer library

svn path=/trunk/; revision=44648
2009-12-18 10:42:57 +00:00
Johannes Anderwald
af23bde581 [WDMAUD.DRV]
- Add support for Opening/Querying/Closing registry keys within the mmixer library

svn path=/trunk/; revision=44647
2009-12-18 10:42:29 +00:00
Johannes Anderwald
82dfe03d66 [MMIXER]
- Open all filters before starting enumeration. The advantage is that some filters are not opened twice
- Query the Mixer Name from Registry by opening the device interface registry key and querying for the value of FriendlyName. If it cannot be found, try to find the key under the sub key 'Device Parameters'

svn path=/trunk/; revision=44646
2009-12-18 10:25:41 +00:00
Johannes Anderwald
f814e48ad5 [SETUPAPI]
- Implement SetupDiInstallDeviceInterfaces, SetupDiCreateDeviceInterfaceRegKeyW which are required to store device specific information

svn path=/trunk/; revision=44644
2009-12-18 04:37:15 +00:00
Timo Kreuzer
9eb97bd05d Add service table definitions. They are only used for arm atm, because we have them asm.h, too and include that file on x86. Patch by Alex, fixed by me.
svn path=/trunk/; revision=44643
2009-12-18 00:11:11 +00:00
Daniel Reimer
400e405bbc Fix a redefinition error on ARM Build. By teh omnipotent Alex
svn path=/trunk/; revision=44642
2009-12-17 23:07:19 +00:00
Timo Kreuzer
dfd84b1ca4 Add the missing KeContextSwitches to the PRCB.
svn path=/trunk/; revision=44641
2009-12-17 22:38:54 +00:00
Timo Kreuzer
32014b63b8 [NTOSKRNL]
"Fix things": Add architecture specific macros KeGetTrapFrame, KeGetExceptionFrame and KeGetContextSwitches. Should fix kernel build on arm. Patch by Alex, modified by me.

svn path=/trunk/; revision=44640
2009-12-17 20:58:58 +00:00
Samuel Serapion
fb0bd4efd9 [UniAta]
- Coding late at night can cloud your judgment. 
- Better fix for pointer truncation(just don't do it.)
- Todo send patch upstream

svn path=/branches/ros-amd64-bringup/; revision=44639
2009-12-17 14:35:25 +00:00
Timo Kreuzer
26c9ccdb64 Hey Arch, next time you mess with code specific for an architecture you know nothing about, try to get at least the portable stuff right.
Fix _byteswap_ushort.

svn path=/trunk/; revision=44637
2009-12-17 13:41:06 +00:00
Samuel Serapion
885969b80a remove debugging code
svn path=/branches/ros-amd64-bringup/; revision=44635
2009-12-17 06:40:37 +00:00
Samuel Serapion
6e87c96393 [uniata]
- Make x86 specific optimizations x86 specific, use macros otherwise.
- Try to fix numerous pointer to ULONG casts.
- Now Builds for amd64.

svn path=/branches/ros-amd64-bringup/; revision=44634
2009-12-17 05:55:53 +00:00
Samuel Serapion
9fb1e72a87 Eliminate differences with trunk.
svn path=/branches/ros-amd64-bringup/; revision=44633
2009-12-17 02:52:24 +00:00
Timo Kreuzer
f8e59069e2 Merge from amd64 branch
37868 Add CONTEXT flags for x64.
39347 Move rtl byteswap functions to wdm.h and add intrinsic definitions.
41030 fix definition of 64bit SLIST_HEADER. winnt.h: add 64bit SLIST_HEADER.
41071 Fix definition of NdisQueryPacketLength.
43447 Fix MmSizeOfMdl prototype.
43777 Fix definition of KdDebuggerNotPresent for gcc, the MS definition is broken, don't know if it's needed that way for msvc.
44178 Fix definition of _CONTEXT.
44491 Add LIST_ENTRY32/64, STRING32/64
44500 Add NT_TIB32/64.
44623 New definition of C_ASSERT and _STATIC_ASSERT using a function prototype. This way we avoid duplicate definition errors like with a typedef and unused function warning like with the extern.
44631 Fix C_ASSERT yet another time.

svn path=/trunk/; revision=44632
2009-12-16 23:39:20 +00:00
Timo Kreuzer
1c964da618 Fix C_ASSERT yet another time.
svn path=/branches/ros-amd64-bringup/; revision=44631
2009-12-16 23:37:18 +00:00
Timo Kreuzer
dd8d39902e fix _byteswap_ushort for old gccs
svn path=/trunk/; revision=44630
2009-12-16 22:46:32 +00:00
Timo Kreuzer
8fbe2b1bf2 Use C_ASSERTS only for X86 and AMD64
svn path=/trunk/; revision=44629
2009-12-16 22:06:25 +00:00
Timo Kreuzer
440decaae9 implement _byteswap_ushort for arm
svn path=/trunk/; revision=44628
2009-12-16 21:58:31 +00:00
Timo Kreuzer
6ececd457f Make some ntdll exports architecture specific, as they are not exported by arm. Use pspec for ARM, too.
svn path=/trunk/; revision=44627
2009-12-16 21:41:18 +00:00
Timo Kreuzer
ddb427f402 Fix prototype of MmSetAddressRangeModified
svn path=/trunk/; revision=44626
2009-12-16 21:12:54 +00:00
Daniel Reimer
702301aa40 Some build fixes for ReactOS ARM. Credits go to Alex Ionescu and Timo Kreuzer while I just tried to keep up. :-P
- Undefine Unicode which is defined by default in cegcc.
- Add a missing include in ke.h
- Implement _CountLeadingZeros, _CountTrailingZeros, _BitScanForward for ARM.

svn path=/trunk/; revision=44625
2009-12-16 20:59:06 +00:00
Timo Kreuzer
d2a094f50f revert 44509.
not needed anymore.

svn path=/branches/ros-amd64-bringup/; revision=44624
2009-12-16 20:52:53 +00:00
Timo Kreuzer
f73d776d30 New definition of C_ASSERT and _STATIC_ASSERT using a function prototype. This way we avoid duplicate definition errors like with a typedef and unused function warning like with the extern.
svn path=/branches/ros-amd64-bringup/; revision=44623
2009-12-16 20:45:02 +00:00
Gregor Schneider
1c23c0f872 [advapi32]
- Extend LsaLookupNames2 stub, fix file header
- Should prevent the advapi32 lsa test crash

svn path=/trunk/; revision=44622
2009-12-16 20:26:18 +00:00
Timo Kreuzer
a95def3ad0 [NTDLL]
Convert to spec. Taken from wine with massive changes by me.

@ ros-arm-bringup: I couldn't verify it works for arm, so I kept the arm def file.

svn path=/trunk/; revision=44621
2009-12-16 17:32:30 +00:00
Samuel Serapion
e87ff42eea Revert unnecessary hack/fix.
svn path=/branches/ros-amd64-bringup/; revision=44620
2009-12-16 17:01:24 +00:00
Cameron Gutman
94b49d77a3 [OSKITTCP]
- Add ROS-specific MSS code
 - We don't mirror our route cache with oskittcp so we can't rely on routes to get the MTU

svn path=/branches/aicom-network-branch/; revision=44619
2009-12-16 04:45:43 +00:00
Cameron Gutman
ce98e6522f [OSKITTCP]
- Fix broken MTU code (MTU was assumed to always be 1500)

svn path=/branches/aicom-network-branch/; revision=44618
2009-12-16 02:41:39 +00:00
Timo Kreuzer
e8ff2953e4 Copy from trunk
svn path=/branches/ros-amd64-bringup/; revision=44617
2009-12-16 01:06:10 +00:00
Timo Kreuzer
2df288b441 Fix built a bit more.
svn path=/trunk/; revision=44616
2009-12-15 23:49:10 +00:00
Johannes Anderwald
1d90d9e296 fix build
svn path=/trunk/; revision=44615
2009-12-15 23:28:54 +00:00
Timo Kreuzer
e3fd4c3421 Merge from amd64 branch:
40122 mmsystem.h: 64bit build fixes. (Samuel Serapión)
40123 mmsystem.h: Even more 64bit fixes.  (Samuel Serapión)
40155 mmddk.h/mmsystem.h: Fix ACMDRVSTREAMINSTANCE, ACMDRVSTREAMHEADER, PORTALLOC, WAVEOPENDESC, MIDIOPENDESC, MIXEROPENDESC structures. Fix ACMFILTERENUMCBA/W, ACMFILTERTAGENUMCBA/W, ACMFORMATENUMCA/W, ACMFORMATTAGENUMCBA/W callbacks. Fix acmDriverEnum, acmFilterEnumA/W, acmFormatEnumA/W, acmFormatTagEnumA/W, acmStreamOpen, CloseDriver, OpenDriver, SendDriverMessage, mmTaskSignal, mmGetCurrentTask (Samuel Serapión)
40995 sqltypes.h: 64bit fixes for sqltype.h, also resort and cleanup (Timo Kreuzer)
40996 msacm.h: Fix tag of ACMFILTERCHOOSEA (Timo Kreuzer)
41029 sql.h: Fix SQLFetchScroll prototype. (Timo Kreuzer)
41045 commdlg.h: fix and update definition of OPENFILENAMEAW (Timo Kreuzer)
41449 basetsd.h: Disable wine hack for amd64 (Timo Kreuzer)
43506 wincrypt.h: Fix definition of CryptReleaseContext (Timo Kreuzer)
43840 wingdi.h: Fix LOGBRUSH definition. (Samuel Serapión)
43907 commctrl.h: Fix bad cast. (Timo Kreuzer)
44039 mmddk.h: Fix mmTaskCreate and mciGetDriverData prototypes per MSDN (Timo Kreuzer)
44040 windef.h/winsock.h/winsock2.h: Fix 32bit build. (Samuel Serapión)
44044 ws2spi.h: Fix ws2_32 64bit build (Samuel Serapión)
44294 winnt.h: Fix SLIST_ENTRY for WIN64 (Timo Kreuzer)
44338 winnt.h: fix build. (Samuel Serapión)
44460 winuser.h: Define PHDEVNOTIFY, PDLGITEMTEMPLATEA/W, LPDLGITEMTEMPLATEA/W, PPAINTSTRUCT, PMENUITEMTEMPLATE, PUSEROBJECTFLAGS, PMINIMIZEDMETRICS, PNONCLIENTMETRICSA/W, LPMOUSEINPUT, LPKEYBDINPUT, LPHARDWAREINPUT. Add HARDWAREHOOKSTRUCT structure. (Samuel Serapión)

svn path=/trunk/; revision=44614
2009-12-15 23:23:01 +00:00
Johannes Anderwald
ddda0278b0 * Added wavebar
* Added format, duration, buffer, position labels
- Now wave_in/out objects are opened only when pressed rec/play buttons.
- The slider bar now real points to audio samples in the buffer
- Some other little Gui changes
- by Marco Pagliaricci (IRC: rendar)


svn path=/trunk/; revision=44613
2009-12-15 22:39:18 +00:00
Timo Kreuzer
168700b492 remove old hacks
svn path=/branches/ros-amd64-bringup/; revision=44612
2009-12-15 22:08:38 +00:00
Timo Kreuzer
d894a2459f shuffle headers, add #undef, helps with wine macros.
svn path=/branches/ros-amd64-bringup/; revision=44611
2009-12-15 21:53:29 +00:00
Timo Kreuzer
50a510c96d [MAIN]
Use UlongToPtr instead of casting.

svn path=/trunk/; revision=44608
2009-12-15 19:06:23 +00:00
Gregor Schneider
068b10820f Jerome Gardou <jerome DOT gardou AT laposte DOT net>:
[kernel32] Set the SYNCHRONIZE access mask when using FILE_SYNCHRONOUS_IO options

svn path=/trunk/; revision=44607
2009-12-15 18:39:13 +00:00
Timo Kreuzer
c5916ca7c4 [MSVCRT20]
Fix _getmainargs params in spec file

svn path=/trunk/; revision=44606
2009-12-15 17:51:31 +00:00
Timo Kreuzer
7861b97392 Copy crypt32 from trunk, fixing more merge fail.
svn path=/branches/ros-amd64-bringup/; revision=44605
2009-12-15 17:17:03 +00:00
Timo Kreuzer
1aa21a6a95 Fix a whole lot of merge artifacts or whatever that was that changed indentation here and there.
svn path=/branches/ros-amd64-bringup/; revision=44604
2009-12-15 16:33:41 +00:00
Timo Kreuzer
6bba9dc9a1 Merge from amd64 branch:
[SPIDER]
44002 Fix 64 bit build. (Samuel Serapión)

[PAINT]
43858 Fix 64 bit warnings. (Samuel Serapión)

[RAPPS]
43906 Fix 64 bit build. (Samuel Serapión)

[SNDREC32]
44389 Fix 64 bit build. (Samuel Serapión)

[TFTP]
41097 Fix pointer to DWORD cast. (Timo Kreuzer)

[COMCTL32]
36172 Build as unicode. (Samuel Serapión)

[USERMGR]
41098 Fix 2 POINTER<->DWORD casts. (Timo Kreuzer)

[d3d9]
38149 Fix pointer<->ULONG cast. (Timo Kreuzer)
43839 Fix 64 bit Build. (Samuel Serapión)

[DSOUND]
40753 Make DSDRIVERDESC.dnDevNode a DWORD_PTR and DSPROPERTY.InstanceId a ULONG_PTR. (Timo Kreuzer)

[LSASRV]
44037 Fix 64 bit Build. (Samuel Serapión)

[MMDRV]
40125 Fix 64bit build. (Samuel Serapión)

[MSGINA]
40993 fix 64bit build (Timo Kreuzer)

[NETSHELL]
41001 Don't cast the 1st parameter of InterlockedExchange to volatile void **, but to void ** (Timo Kreuzer)

[OPENGL32]
36502 No need to assert an offset thats only used in i386 specific code. (Samuel Serapión)

[POWRPROF]
41044 Don't cast NULL to DWORD. (Timo Kreuzer)
43860 Don't cast NULL to an integer type. (Samuel Serapión)

[PSAPI]
38150 Fix a cast (Timo Kreuzer)

[SHELL32]
38355 Use Get/SetWindowLongPtr (Samuel Serapión)
41047 Get rid of deprecated LargeInteger functions and use native int64 math instead. (Timo Kreuzer)
41048 DialogProc returns INT_PTR and not BOOL. Don't cast a pointer to LONG. Use INT_PTR instead of int for pointer math. (Timo Kreuzer)
41049 Change return type of OpenMRUListW and CreateMRUListW to HANDLE, add a comment that CREATEMRULISTW is already defined differently in explorer_new/undoc.h (Timo Kreuzer)
44601 Fix a prototype. Convert RtlLargeInteger to native int64. Fixes 64bit built. (Timo Kreuzer)

[WDMAUD.DRV]
41101 Don't cast DWORD to PVOID, use UlongToPtr instead. (Timo Kreuzer)

[WS2_32]
35777 fix ws2_32 spec file (Timo kreuzer)
44044 Fix ws2_32 64bit build (1 of 2) (Samuel Serapión)
44045 Fix ws2_32 64bit build (2 of 2) (Samuel Serapión)

[WS2_32_NEW]
44389 Fix 64 bit built. (Samuel Serapión)

svn path=/trunk/; revision=44602
2009-12-15 15:16:01 +00:00
Timo Kreuzer
305d8331b2 [SHELL32]
Fix a prototype. Convert RtlLargeInteger to native int64. Fixes 64bit built.

svn path=/branches/ros-amd64-bringup/; revision=44601
2009-12-15 13:01:55 +00:00
Timo Kreuzer
fa0c6f588d [MSACM32]
Copy from trunk

svn path=/branches/ros-amd64-bringup/; revision=44598
2009-12-15 04:25:05 +00:00
James Tabor
64d1ab613b [Win32k]
- Remove LastChild.

svn path=/trunk/; revision=44597
2009-12-15 01:11:46 +00:00
Timo Kreuzer
2468cb96ed [IMAGEHLP]
Don't use explicit 32 bit version of IMAGE_OPTIONAL_HEADER

svn path=/trunk/; revision=44596
2009-12-14 23:35:40 +00:00
KJK::Hyperion
8e60110bef modified Makefile
New ${checkpoint} command to create an empty "checkpoint" file, to store the last modified date of a make target

modified   tools/rbuild/backend/mingw/rules.mak
   Rules that output more than one file at once don't mix well with parallel builds: serialize dependency checks through the use of checkpoint files. Fixes intermittent widl issues in highly parallel builds
   Bonus internal rbuild function that I had to commit one day or another

See issue #4994 for more details.

svn path=/trunk/; revision=44594
2009-12-14 23:02:28 +00:00
Timo Kreuzer
4cba4fc3cb use tabs in rbuild file (copied from trunk)
svn path=/branches/ros-amd64-bringup/; revision=44593
2009-12-14 22:59:38 +00:00
Timo Kreuzer
6dae590c90 revert last commit (sorry, wrong direction)
svn path=/trunk/; revision=44592
2009-12-14 22:58:51 +00:00
Giannis Adamopoulos
196021c276 [win32k]
- Don't store LastChild in WINDOW_OBJECT

svn path=/trunk/; revision=44591
2009-12-14 22:58:03 +00:00
Timo Kreuzer
7a9ae1c567 use tabs in rbuild file (copied from trunk)
svn path=/trunk/; revision=44590
2009-12-14 22:57:33 +00:00
Timo Kreuzer
b1d866fc48 [KSUSER]
Remove broken HeapAlloc prototype

svn path=/trunk/; revision=44589
2009-12-14 22:52:08 +00:00
Timo Kreuzer
60574f15b9 copy from trunk
svn path=/branches/ros-amd64-bringup/; revision=44588
2009-12-14 22:44:39 +00:00
Timo Kreuzer
284d0cb033 remove unneccessary file entry for spec file
svn path=/trunk/; revision=44587
2009-12-14 22:29:15 +00:00
Timo Kreuzer
e1f86bf08f Copy file from trunk. Only formatting fixes.
svn path=/branches/ros-amd64-bringup/; revision=44586
2009-12-14 20:31:24 +00:00
Timo Kreuzer
4a5b4c2097 reduce differences to trunk
svn path=/branches/ros-amd64-bringup/; revision=44585
2009-12-14 20:15:56 +00:00
Timo Kreuzer
ff716ba92c remove unneccessary change from wine code
svn path=/branches/ros-amd64-bringup/; revision=44584
2009-12-14 20:03:59 +00:00
Timo Kreuzer
f7cfe73eaf [LIBXSLT]
Add HAVE_STAT definition. fixes a warning.

svn path=/trunk/; revision=44583
2009-12-14 19:47:13 +00:00
Johannes Anderwald
9ada735e65 - Setup registry entries for the default user shell
- May fix bug 5020

svn path=/trunk/; revision=44582
2009-12-14 19:36:22 +00:00
Samuel Serapion
be486cc570 fix build 2.
svn path=/branches/ros-amd64-bringup/; revision=44581
2009-12-14 19:12:05 +00:00
Samuel Serapion
c4a74680e2 fix build.
svn path=/branches/ros-amd64-bringup/; revision=44580
2009-12-14 19:01:42 +00:00
Samuel Serapion
7b5e8cc133 Try to fix IDL compilation race condition with patch from bug #4994
svn path=/branches/ros-amd64-bringup/; revision=44579
2009-12-14 18:55:32 +00:00
Samuel Serapion
1cc5650297 Try to fix build with rosbe 1.5 x86
svn path=/branches/ros-amd64-bringup/; revision=44578
2009-12-14 18:42:30 +00:00
Giannis Adamopoulos
e88d19a769 [user32]
SetClipboardData: fix return value
Fixes one user32:clipbloard test

svn path=/trunk/; revision=44577
2009-12-14 15:41:58 +00:00
James Tabor
f755214f06 [Win32k]
- Continuing the moving into WND structure with minor desktop structure changes.
- Tested: wine user32 tests, AbiWord 2.6.8, FF 3.5, OOo 2.4.3 and Seamonkey 2.0.

svn path=/trunk/; revision=44576
2009-12-14 06:48:40 +00:00
James Tabor
d51b4d5202 [Win32k]
- Michael Martin found a create window and crash exit issue by testing programs from http://www.magma.ca/~wjr/ PEview. Fixed by replacing UserFreeWindowInfo with co_UserDestroyWindow at cleanup exit.
- Added more window death and thread checks.
- Started the morphing into WND structure from window object.
- Tested: wine user32 tests, AbiWord 2.6.8, Seamonkey 2.0, FF 3.5 and OOo 2.4.3.

svn path=/trunk/; revision=44575
2009-12-14 05:02:56 +00:00
James Tabor
21818f4e90 - Silence debug prints.
svn path=/trunk/; revision=44574
2009-12-13 21:55:06 +00:00
Giannis Adamopoulos
25dc69e9d5 [win32k]
- Remove an unused reactos only syscall

svn path=/trunk/; revision=44573
2009-12-13 20:57:03 +00:00
Johannes Anderwald
0b560ed72b - Fix build
svn path=/trunk/; revision=44572
2009-12-13 20:11:11 +00:00
Giannis Adamopoulos
6d3bb6bc5c [user32]
Optimize GetWindow by moving it completely to user mode

[win32k]
Remove reactos only syscall NtUserGetWindow

svn path=/trunk/; revision=44571
2009-12-13 20:01:21 +00:00
Dmitry Gorbachev
ba9cfc5c6d Slovak translations by Mario Kacmar. Added: SndRec32, RunOnce. Updated: Paint. Bug #5021.
svn path=/trunk/; revision=44570
2009-12-13 18:09:08 +00:00
Gregor Schneider
2d5fcc0429 [reg] Update reg.c to current Wine
svn path=/trunk/; revision=44569
2009-12-13 17:27:13 +00:00
Dmitry Gorbachev
524995a566 Show respect to Romanian language. (Encoding: UTF-8, with no byte order mark.)
svn path=/trunk/; revision=44568
2009-12-13 16:54:23 +00:00
Johannes Anderwald
44830beb93 - Create a startmenu entry for sndrec32
- Add resource string for all languages except rumanian (encoding issue)

svn path=/trunk/; revision=44567
2009-12-13 16:31:01 +00:00
Gregor Schneider
190d075d21 Alexander Yastrebov <menone7 AT gmail DOT com>:
- Simplify and fix error checking in RegQuery/SetEx functions
- Add handling for missing termination characters
- Fixes one advapi32 winetest
See issue #4993 for more details.

svn path=/trunk/; revision=44566
2009-12-13 16:25:50 +00:00
Cameron Gutman
12127c7eeb - Use RouteGetRouteToDestination instead of FindOnLinkInterface so we can get an interface for remote addresses
svn path=/branches/aicom-network-branch/; revision=44565
2009-12-13 16:22:17 +00:00
Johannes Anderwald
5aadce5c22 - Add sndrec32 to bootcd 1/2
svn path=/trunk/; revision=44564
2009-12-13 16:09:14 +00:00
Johannes Anderwald
73c9bff8cc [REG]
- Fix a memory leak and bug in the deletion routine. If the buffer value_name was had been smaller than the longest key, then deletion of all values would have failed.
- Fixed by Amine Khaldi
[XCOPY]
- Remove unnecessary assignment
- By Amine Khaldi

svn path=/trunk/; revision=44563
2009-12-13 16:05:15 +00:00
Johannes Anderwald
98826b3fe1 [WDMAUD.DRV]
- Integrate mmixer library into wdmaud.drv
- Library is not yet used

svn path=/trunk/; revision=44562
2009-12-13 15:36:19 +00:00
James Tabor
bc65426abe [Win32k]
- Class.c: Restore module address from cloned class if it is a default user class. See bug 4778
- Remove unneeded debug prints.
- Tested: wine user32 class test, AbiWord 2.6.8, FF 3.5 and OOo 2.4.3.

svn path=/trunk/; revision=44561
2009-12-13 13:14:45 +00:00
Johannes Anderwald
3efe83afa3 - Add mmixer to build
svn path=/trunk/; revision=44560
2009-12-13 11:33:23 +00:00
Johannes Anderwald
a20e1844ce [MMIXER]
- Add more error checks
- Fix a bug MMixerGetControlsFromPinByConnectionIndex which pre-early stopped the enumeration of mixer controls
- Only add guids which can be later be resolved to mixer control
- Check if no a topology connection has no links connected

svn path=/trunk/; revision=44559
2009-12-13 11:32:44 +00:00
Gregor Schneider
5ed5d97905 [regedit] Amine Khaldi: Remove unused variables
svn path=/trunk/; revision=44557
2009-12-12 22:09:05 +00:00
Dmitry Gorbachev
d65cf93246 Patch for LdrFixupImports() by Alexander Yastrebov, bug #4954.
svn path=/trunk/; revision=44556
2009-12-12 20:53:23 +00:00
Colin Finck
a9c37bad74 Document what r44552 is all about.
svn path=/trunk/; revision=44555
2009-12-12 19:38:03 +00:00
Colin Finck
63953fddce Add missing dependencies.
Found out using "make -j 70" :-)

svn path=/trunk/; revision=44554
2009-12-12 18:51:16 +00:00
Colin Finck
c42afd308e Set a lower maximum number of iterations in AtapiSoftReset.
This reduces the UniATA bootup time in VMware (which doesn't seem to clear the IDE_STATUS_BUSY flag) from 70 seconds to around 8.

Tested successfully under QEMU, VBox, VMware and an Athlon XP-based system.

svn path=/trunk/; revision=44552
2009-12-12 17:14:26 +00:00
Johannes Anderwald
aad3e1c393 [PORTCLS]
- Return correct status code from InterruptSync::CallSynchronizedRoutine

svn path=/trunk/; revision=44551
2009-12-12 16:27:17 +00:00
Samuel Serapion
42610c6d93 -Remove hacks for older gcc versions.
-Black list gcc below 4.4.2
-Black list ld below 20091119.
-99.99% Based on bug 4810
-Speeds up my build by 3 minutes

svn path=/branches/ros-amd64-bringup/; revision=44550
2009-12-12 15:41:43 +00:00
Gregor Schneider
b8d2bb2058 [ntoskrnl]
- Use the PORT_MESSAGE ZeroInit and Type fields the way they are supposed to be used
- Ref: http://www.reactos.org/archives/public/ros-dev/2009-December/012466.html

svn path=/trunk/; revision=44549
2009-12-12 15:21:56 +00:00
Dmitry Gorbachev
6b2612bba2 Fix typo in _aullrem(), reported by zhangbonian (zhangbonian17*at*163*dot*com), bug #5015.
svn path=/trunk/; revision=44548
2009-12-12 14:28:45 +00:00
Johannes Anderwald
d392dcd679 [PORTCLS]
- Fix a bug
- Found by Amine Khaldi

svn path=/trunk/; revision=44547
2009-12-12 13:51:11 +00:00
Johannes Anderwald
35f22b3c5c [MMIXER_TEST]
- Commit a simple test application to test the mmixer library
- Debug Outputs are appreciated

svn path=/trunk/; revision=44546
2009-12-12 13:40:54 +00:00
Johannes Anderwald
1caea1d387 [PORTCLS]
- Fix possible dereferencing of null pointer
- Found by Amine Khaldi

svn path=/trunk/; revision=44545
2009-12-12 13:27:05 +00:00
Gregor Schneider
c0d4619777 [advapi32] Print the used name when failing to open a control pipe
svn path=/trunk/; revision=44544
2009-12-12 12:57:46 +00:00
Gregor Schneider
c7e5f8e26f [ntoskrnl]
- The field ZeroInit should be initialized to zero - do that by assigning the message type directly
- Fixes the hanging ntdll port winetest (it didn't get a CLIENT_DIED notification because the call to LpcRequestPort failed)

svn path=/trunk/; revision=44543
2009-12-12 12:32:09 +00:00
Gregor Schneider
0cc971dfd5 [ntoskrnl/lpc] - Fix a typo, correct paths
svn path=/trunk/; revision=44542
2009-12-12 12:23:55 +00:00
James Tabor
e3ba837e2e [Win32k]
- Create a Gre function for GetKerningPairs.

svn path=/trunk/; revision=44541
2009-12-12 00:19:37 +00:00
Samuel Serapion
17360de0ad -Detect if this is a amd64 CPU before attempting to boot.
Patch by Basil Gello (gellmar at yahoo dot com).

svn path=/branches/ros-amd64-bringup/; revision=44540
2009-12-11 19:01:45 +00:00
Gregor Schneider
68a499842a [videoprt] Split complicated asserts for easier problem understanding as seen in bug #4354
svn path=/trunk/; revision=44539
2009-12-11 16:09:01 +00:00
Johannes Anderwald
c9c03a799f [MMIXER]
- Add mixerline for audio filters which expose their topology on the same filter such as usb audio cards
- Retrieve pin name of the target pin in order to display the correct name for the destination audio mixer line

svn path=/trunk/; revision=44538
2009-12-11 14:01:39 +00:00
Samuel Serapion
304829a946 Fix i386 build
svn path=/branches/ros-amd64-bringup/; revision=44537
2009-12-11 12:29:05 +00:00
Samuel Serapion
6397d5d0a2 Fix i386 build
svn path=/branches/ros-amd64-bringup/; revision=44536
2009-12-11 12:15:23 +00:00
Gregor Schneider
e7d4a5ccc7 [msfs] Silence debug print
svn path=/trunk/; revision=44535
2009-12-11 10:45:27 +00:00
Gregor Schneider
f2c17ae4f5 Jan Roeloffzen <jroeloffzen AT hotmail DOT com>: Change "MBR" to "bootsector" (nl)
See issue #5011 for more details.

svn path=/trunk/; revision=44534
2009-12-11 10:06:04 +00:00
Gregor Schneider
174afbb80c [msfs] Mail slot file system driver bring up 2/2:
- Don't allow to create two mail slots with the same name
- Pass a timeout return status when no message are found after waiting
- Clients aren't allowed to query mail slot info, this works now - add the code back

svn path=/trunk/; revision=44533
2009-12-11 09:45:07 +00:00
James Tabor
6a29ad7b49 [Win32k]
- Message.c: Formating, filter out the noise from the ambient.
- Message.c:co_IntDoSendMessage: Fix return if no WND structure was allocated for window object. Add check if window exiting. Add Hook and message type checks.

svn path=/trunk/; revision=44532
2009-12-11 00:33:59 +00:00
Timo Kreuzer
f2e27ac975 Don't include i386/ke.h from ntoskrnl, it's not needed
svn path=/branches/ros-amd64-bringup/; revision=44530
2009-12-10 21:04:15 +00:00
Gregor Schneider
765abc4bbb [msfs] Mail slot file system driver bring up 1/x:
- Allow clients to query mail slot info
- Read the size of the first message in the slot
- Update headers, some cleanup
- Fixes 11 kernel32 mail slot test failures

svn path=/trunk/; revision=44529
2009-12-10 20:26:58 +00:00
Dmitry Gorbachev
a9580d9762 Bulgarian translations by CCTAHEB (sstpr/AT/narod/DOT/ru).
Newly translated: doskey, spider.
Updated: winemine, servman, ipconfig, rapps, 3dtext, shutdown, usetup, explorer.

svn path=/trunk/; revision=44528
2009-12-10 19:36:33 +00:00
Gregor Schneider
8b437dd7b2 [kernel32]
- Passing 0 flags to EnumSystemLocales behaves like passing LCID_SUPPORTED, so be it
- Ref: http://msdn.microsoft.com/en-us/library/dd317828%28VS.85%29.aspx
- Fixes mlang winetest crash, now it hangs after executing some hundred tests, bug #4999

svn path=/trunk/; revision=44527
2009-12-10 15:50:07 +00:00
Timo Kreuzer
19829753fd More fix of TEB::KernelCallbackTable usage
svn path=/branches/ros-amd64-bringup/; revision=44526
2009-12-10 13:40:05 +00:00
Timo Kreuzer
5c58ca4af8 [NDK]
Fix a TEB array size.

svn path=/branches/ros-amd64-bringup/; revision=44525
2009-12-10 13:33:57 +00:00
Timo Kreuzer
07d56c3f54 [NDK]
- Add missing TEB member for Vista

svn path=/branches/ros-amd64-bringup/; revision=44524
2009-12-10 13:04:36 +00:00
Timo Kreuzer
fbb3b9e1a8 Fix usage of PEB::KernelCallbacktable. It's a PVOID.
svn path=/branches/ros-amd64-bringup/; revision=44523
2009-12-10 12:39:54 +00:00
Johannes Anderwald
3953b7855d [MMIXER]
- Store MixerList in MixerContext member
- Fix a lot of bugs
- MMixer is now able to enumerate mixers and their associated controls

svn path=/trunk/; revision=44522
2009-12-10 12:27:16 +00:00
Timo Kreuzer
cda052bdd5 [NTDKK]
- Don't use PEB::FastPeb(Un)LockRoutine, these members are deprecated since Windows 2003, use RtlEnter/LeaveCriticalSection instead.

svn path=/branches/ros-amd64-bringup/; revision=44521
2009-12-10 11:54:17 +00:00
Gregor Schneider
e60dc4ed94 Amendment to r44518: changing a debug print in LdrpGetOrLoadModule wasn't part of the plan
svn path=/trunk/; revision=44519
2009-12-10 11:07:23 +00:00
Gregor Schneider
dba413c7b7 [ntdll] Fix debug print, output the flags if available
svn path=/trunk/; revision=44518
2009-12-10 11:02:45 +00:00
Dmitry Gorbachev
e5672aaeca [RApps]
- Convert all 'Eurocentrist' files from a variety of Windows encodings to one multicultural UTF-8.
- Add missing "stupid BOMs".
- Sort records according to their locale IDs.
- Fix Russian grammar / spellings, add two translations.
- Other minor style / typo fixes.

Dear RApps translators and committers, please keep these (and future) *.txt 
files (which describe available to download programs in different languages) 
in UTF-8. Otherwise, soon it will be hard to maintain files with a mixture of 
different encodings in them. Also, don't forget about the byte order mark at 
the beginning.

svn path=/trunk/; revision=44517
2009-12-10 10:16:21 +00:00
Ged Murphy
db5227b47d Add VER_SET_CONDITION macro
svn path=/trunk/; revision=44516
2009-12-10 09:28:48 +00:00
Dmitry Gorbachev
c194b44a25 Apply r44496 change to raddr2line, too. Remove unused argument.
svn path=/trunk/; revision=44515
2009-12-10 08:55:11 +00:00
Dmitry Gorbachev
19b6017a4d Uncomment SYSTEM_THREAD_EXCEPTION_NOT_HANDLED case.
svn path=/trunk/; revision=44514
2009-12-10 08:54:53 +00:00
Daniel Reimer
04815eab49 Simplified and Traditional Chinese Updates by Elton Chung. (MANY fixes by me and still have to skip dxdiag zh-TW.rc due to codepage 950 errors!)
Updated the style and fixed some typos in the rapps texts.
Bug 4968: spanish files by Javier Remacha. (Almost the same number of fixes by me.)
NOTE: I will not commit any untested Translations anymore!

svn path=/trunk/; revision=44513
2009-12-10 08:49:25 +00:00
Timo Kreuzer
d7c4b1608d [NDK]
Fix some dependencies

svn path=/branches/ros-amd64-bringup/; revision=44512
2009-12-10 03:07:30 +00:00
Timo Kreuzer
ee49fa9c0f [NDK]
- Add Wx86ThreadState
- Add WinXP version of ACTIVATION_CONTEXT_STACK
- rtltypes doesn't depend on pstypes, but the opposite way around now

svn path=/branches/ros-amd64-bringup/; revision=44511
2009-12-10 02:30:09 +00:00
Timo Kreuzer
3f4e4492cd [IPHLPAPI]
Don't redefine _WIN32_WINNT to 0x500. When using the NDK we need at least 0x503 when compiling for 64 bit (XP64 is 502)

svn path=/branches/ros-amd64-bringup/; revision=44510
2009-12-10 02:17:54 +00:00
Timo Kreuzer
74ce61800e Don't C_ASSERT inside a function body. The new definition causes a warning with this.
svn path=/branches/ros-amd64-bringup/; revision=44509
2009-12-10 01:48:07 +00:00
Timo Kreuzer
ec3e6b9382 updates EFLAGS definitions
svn path=/branches/ros-amd64-bringup/; revision=44508
2009-12-10 01:44:42 +00:00
James Tabor
ae95dea153 [Win32k]
- Add a bypass flag to skip the Path support in IntGdiMoveToEx. See bug report 4364. This fixes 11 gdi path wine tests.

svn path=/trunk/; revision=44507
2009-12-10 01:18:26 +00:00
Timo Kreuzer
bcd5ab1175 fix a typo
svn path=/branches/ros-amd64-bringup/; revision=44506
2009-12-10 01:09:51 +00:00
Timo Kreuzer
5fae13a4ff Add MmFreeSection prototype
svn path=/branches/ros-amd64-bringup/; revision=44505
2009-12-10 01:06:30 +00:00
Timo Kreuzer
c7b2342d5c Fix number 2
svn path=/branches/ros-amd64-bringup/; revision=44504
2009-12-10 00:51:35 +00:00
Timo Kreuzer
9a8e8247d8 Fix number 1
svn path=/branches/ros-amd64-bringup/; revision=44503
2009-12-10 00:51:14 +00:00
Timo Kreuzer
2e2e7009ab Add PDE_TOP for x86
svn path=/branches/ros-amd64-bringup/; revision=44502
2009-12-10 00:39:03 +00:00
Timo Kreuzer
c5a2bbe739 [NDK]
- Add CLIENT_ID32/64
- Create explicit 32/64 bit versions of PEB, GDI_TEB_BATCH and TEB, using macros. Thanks to Alex for feedback and suggestions.
- Fix some member names.
- Note to self: fix rostests, too!

svn path=/branches/ros-amd64-bringup/; revision=44501
2009-12-10 00:35:12 +00:00
Timo Kreuzer
8c8c4fcf16 Add NT_TIB32/64
svn path=/branches/ros-amd64-bringup/; revision=44500
2009-12-09 23:58:31 +00:00
Samuel Serapion
f657f33288 Eliminate warning.
svn path=/branches/ros-amd64-bringup/; revision=44499
2009-12-09 22:12:41 +00:00
Hervé Poussineau
9dae13cb9a [freeldr] Rework operating system menu, by storing each selection in a structure instead of distinct arrays.
As a bonus, entries like LiveCD\reactos="ReactOS" /DEBUGPORT=COM1 /SOS /MININT now work

svn path=/trunk/; revision=44498
2009-12-09 22:03:39 +00:00
Kamil Hornicek
3eb7ba30ee - remove leftover
svn path=/trunk/; revision=44497
2009-12-09 21:53:49 +00:00
Dmitry Gorbachev
d23c07b141 Update log2lines to the latest version. Jan Roeloffzen, bug #4342.
svn path=/trunk/; revision=44496
2009-12-09 21:51:19 +00:00
Gregor Schneider
9709983e45 [kernel32] UnhandledExceptionFilter:
- Print the exception address in the same style the stack frames are printed: module start offset and address separated
- Print CPU registers before starting over with trace addresses

svn path=/trunk/; revision=44495
2009-12-09 21:48:09 +00:00
Daniel Reimer
e1e3a08fbf Make the text box a bit bigger for languages which are less short than English :-P
Add a German Translation by me and a Polish one by niski.

svn path=/trunk/; revision=44494
2009-12-09 21:30:05 +00:00
Timo Kreuzer
b27b55f1c1 [SNDREC32]
Make resources MUI ready.

svn path=/trunk/; revision=44493
2009-12-09 21:25:39 +00:00
Timo Kreuzer
30acfd955e Add sndrec32 to build
svn path=/trunk/; revision=44492
2009-12-09 17:52:20 +00:00
Timo Kreuzer
5a6e9037ae - add LIST_ENTRY32/64, STRING32/64
- change C_ASSERT in winnt.h, too

svn path=/branches/ros-amd64-bringup/; revision=44491
2009-12-09 17:48:56 +00:00
Timo Kreuzer
6d466854ff [WINEBUILD]
Sync winebuild to Wine_1_1_34
Lots of reactos hacks are gone now. ARM is natively supported now. Windows headers are no longer included, winglue.h is gone, the code that was previously removed is back again, there is no point in removing unused features. still there: the fastcall and pedll modifications. Added a ros-diff.

svn path=/trunk/; revision=44490
2009-12-09 17:01:35 +00:00
Ged Murphy
0cbf682dc2 Missed resource cleanup. I'm clearly out of practice
svn path=/trunk/; revision=44489
2009-12-09 16:44:10 +00:00
Ged Murphy
3a03a5662b - Add the version dialog to the remaining lang resources
svn path=/trunk/; revision=44488
2009-12-09 16:38:30 +00:00
Ged Murphy
23294457ab [SYSDM]
- Add a setting to the system control panel applet which allows users to force reactos to report as a workstation.
- This is a usermode change only, it will not alter the kernel nor anything calling kernel apis (e.g. RtlGetVersion)
- This change should allow applications which don't allow installation on non-workstation version to install.
See issue #5003 for more details.

svn path=/trunk/; revision=44487
2009-12-09 16:34:05 +00:00
Johannes Anderwald
bc8c3e9a2d [MMIXER]
- Define all used node types and property guids

svn path=/trunk/; revision=44486
2009-12-09 16:28:12 +00:00
Ged Murphy
1bcf7ab2f5 Switch to Wine debuging
svn path=/trunk/; revision=44485
2009-12-09 16:12:10 +00:00
Ged Murphy
73c2744aad damn winmerge ... adding the devil's spacing instead of angel's spacing
svn path=/trunk/; revision=44484
2009-12-09 16:07:45 +00:00
Ged Murphy
d285414016 [kernel32]
- Modify reactos version APIs to report as a workstation instead of a server upon request.
- Currently controlled via a system setting, cpl mod to follow.
- Note: The kernel still reports as NtProductServer, as indeed it should.
See issue #5003 for more details.

svn path=/trunk/; revision=44483
2009-12-09 16:02:46 +00:00
Johannes Anderwald
91b69c9d1d [MMIXER]
- Implement MMixerGetLineInfo, MMixerGetLineControls, MMixerSetControlDetails, MMixerGetControlDetails, MMixerOpen
- MMixer library is now ready for testing

svn path=/trunk/; revision=44482
2009-12-09 16:00:28 +00:00
Michael Martin
81125deea0 [ntoskrnl\config]
- Description of what previous code was doing in commit r44469 was completely incorrect. Source prior to r44469 was only missing parentheses. 
- CmpSplitLeaf: Revert back to previous code with correct fix. Fireballs code was correct, and because I found it before him I save myself from a severe lashing.

svn path=/trunk/; revision=44481
2009-12-09 14:15:11 +00:00
Ged Murphy
970b46f977 Standardize code formating. No code change
svn path=/trunk/; revision=44480
2009-12-09 13:15:47 +00:00
Johannes Anderwald
757fd23400 [MMIXER]
- Store initialized mixers in a struct MIXER_LIST
- Implement MMixerGetCapabilities

svn path=/trunk/; revision=44479
2009-12-09 09:51:39 +00:00
Timo Kreuzer
3af3194bbc Add syscall lists for x86
svn path=/trunk/; revision=44478
2009-12-09 01:50:38 +00:00
Samuel Serapion
9ed44b0a95 commit stragglers from main tree
svn path=/branches/ros-amd64-bringup/; revision=44477
2009-12-09 01:20:38 +00:00
Samuel Serapion
fee45191b7 Fix building all rosapps modules
svn path=/branches/ros-amd64-bringup/; revision=44476
2009-12-09 01:15:20 +00:00
Samuel Serapion
ad9860b254 - Create some stubs for some w32kdll api tests. Someone please verify and complete the job.
- Fix building all rostests for amd64. No guarantee anything works now, or ever did...

svn path=/branches/ros-amd64-bringup/; revision=44475
2009-12-09 01:14:28 +00:00
Dmitry Gorbachev
ae89fc3761 Cleanup in desktopbg.c, inspired by BeastL (slyhome|AT|ipnet|DOT|ua), bug #4985.
svn path=/trunk/; revision=44474
2009-12-08 21:57:27 +00:00
Johannes Anderwald
b1e100ebd8 [MMIXER]
- Finish porting of code from wdmaud

svn path=/trunk/; revision=44473
2009-12-08 21:10:02 +00:00
Dmitry Gorbachev
d2ae0ff3bf Update log2lines to the latest version. Jan Roeloffzen, bug #4342.
svn path=/trunk/; revision=44472
2009-12-08 20:13:22 +00:00
Timo Kreuzer
ca0ebabfdd Update moldname-msvcrt.def
svn path=/branches/ros-amd64-bringup/; revision=44471
2009-12-08 17:14:33 +00:00
Timo Kreuzer
be39596e77 Thanks to ktietz for his awesome dlltool patch!
Will require dlltool 2.20.51.20091118


svn path=/branches/ros-amd64-bringup/; revision=44470
2009-12-08 16:41:01 +00:00
Michael Martin
35d2322f26 [ntoskrnl\config]
- CmpSplitLeaf: When the leaf to insert is not the last leaf: Don't copy the leaf data from the location where the new leaf will be inserted to the next leaf. 
There may be more leafs following (registry corruption), the leafs may be different sizes (memory corruption) and a simpler solution exists.
- Just shift all the indexes of the root to the right of the insertion point.
- Fixes bug check when leafs are split more than once.

svn path=/trunk/; revision=44469
2009-12-08 16:04:03 +00:00
Timo Kreuzer
c2d98129d6 Fix 2nd try.
svn path=/branches/ros-amd64-bringup/; revision=44468
2009-12-08 14:32:39 +00:00
Timo Kreuzer
d070fd9f2f Try to fix encoded's broken apps.
svn path=/branches/ros-amd64-bringup/; revision=44467
2009-12-08 14:00:42 +00:00
Timo Kreuzer
8d819f40bb Fix regressions.
svn path=/trunk/; revision=44466
2009-12-08 03:06:40 +00:00
Timo Kreuzer
4e6d2d7136 Cleanup test code, improve comments.
svn path=/trunk/; revision=44465
2009-12-08 02:18:42 +00:00
Timo Kreuzer
66fe9a0793 [RTL]
Rewrite the rtl bitmap implementation.
The old one was a little .... suboptimal. The new one should outperform the old one by several orders of magnitude, especially RtlFindClearBits that was literally searching bit by bit.

svn path=/trunk/; revision=44464
2009-12-08 01:02:36 +00:00
Samuel Serapion
20a05a760b Fix building some modules.
svn path=/branches/ros-amd64-bringup/; revision=44463
2009-12-07 23:11:49 +00:00
Samuel Serapion
0d2d36c7de Fix building some modules. special thanks to Basil Gello.
svn path=/branches/ros-amd64-bringup/; revision=44462
2009-12-07 23:09:35 +00:00
Samuel Serapion
5fc07e5280 enable user32 generated winetest.
svn path=/branches/ros-amd64-bringup/; revision=44461
2009-12-07 22:30:42 +00:00
Samuel Serapion
4cf93165be Define PHDEVNOTIFY, PDLGITEMTEMPLATEA/W, LPDLGITEMTEMPLATEA/W, PPAINTSTRUCT, PMENUITEMTEMPLATE, PUSEROBJECTFLAGS, PMINIMIZEDMETRICS, PNONCLIENTMETRICSA/W, LPMOUSEINPUT, LPKEYBDINPUT, LPHARDWAREINPUT.
Add HARDWAREHOOKSTRUCT structure.

svn path=/branches/ros-amd64-bringup/; revision=44460
2009-12-07 22:29:45 +00:00
Samuel Serapion
57f3a21c86 Fix some modules
svn path=/branches/ros-amd64-bringup/; revision=44459
2009-12-07 20:01:50 +00:00
Samuel Serapion
1bd3f2e4b8 Add mysteriously missing files
Fix some builds

svn path=/branches/ros-amd64-bringup/; revision=44458
2009-12-07 19:36:36 +00:00
Samuel Serapion
af9094fe39 Add mysteriously missing file
svn path=/branches/ros-amd64-bringup/; revision=44457
2009-12-07 18:41:34 +00:00
Samuel Serapion
e2226bdaec sync rostests to r44455
svn path=/branches/ros-amd64-bringup/; revision=44456
2009-12-07 18:40:32 +00:00
Samuel Serapion
17b396a6d2 sync rosapps to r44454
svn path=/branches/ros-amd64-bringup/; revision=44455
2009-12-07 18:24:19 +00:00
Michael Martin
e7ff40f1e3 [dll/ntdll]
- LdrFixupImports: Unload modules import modules on LdrFixupImports failure to.
-LdrpLoadModule: Free resources and memory on LdrFixupImports failure.
Patch by Alexander Yastrebov. See #4954

svn path=/trunk/; revision=44453
2009-12-07 13:06:08 +00:00
Johannes Anderwald
2ddde07951 - Start implementing a mixer library. The mixer library is based directly on the code in the wdmaud driver. The purpose is to provide a generic library which can be used in usermode (wdmaud.drv (Vista Driver Model)/ dsound) or in kernel mode. In addition, it can be used to test mixer implementation.
svn path=/trunk/; revision=44452
2009-12-07 10:28:49 +00:00
Michael Martin
376921465e [dll/ntdll]
- LdrpMapDllImageFile: Supported finding and loading dlls from the path environment variable as needed. See MSDN for details. OO 3.0 no longer warns of dlls not found (sal3.dll) and at least allows configuration dialog to work.

svn path=/trunk/; revision=44451
2009-12-07 03:50:26 +00:00
Michael Martin
4ed40feb22 [dll/ntdll]
- LdrLoadDll: Create a module activation context for modules when loaded by LoadLibrary and friends. Fixes loading assemblies of modules when loaded from threads.
- find_actctx_dll: Silence debugging.
[dll/kernel32]
- CreateRemoteThread: Do not try to activate the processes default activation context, as the processes default activation context is not created properly yet. Will be fixed in near future.
Several application broken by recent SXS commit are now back to working, including Media Player Class 6.4.9 and Opera 9.64. OO 3.0 install no longer errors on loading ms runtime.

svn path=/trunk/; revision=44450
2009-12-07 03:34:25 +00:00
Dmitry Gorbachev
a80552f8a9 Avoid buffer overflow (bug #4693).
svn path=/trunk/; revision=44449
2009-12-07 01:30:32 +00:00
James Tabor
ae13f265c6 - [WineTests] User32: Skip test_shell_window, not sure if it is a user32 bug or not.
svn path=/trunk/; revision=44448
2009-12-07 01:21:23 +00:00
James Tabor
8b6f274b1b [Win32k]
- Add debug printout to show post thread message stall when posting hook messages to another thread. See bug 4926.
- Do not set current thread client hook flags, set only the requested client thread hook flag data.
- Initialize Hook head structure with thread info and desktop pointers.

svn path=/trunk/; revision=44447
2009-12-06 23:37:09 +00:00
Christoph von Wittich
6e365041b7 sync msxml3 with wine 1.1.34
svn path=/trunk/; revision=44446
2009-12-06 23:32:04 +00:00
James Tabor
03a7d800be [User32]
- Patch by Nikolay Sivov bunglehead@gmail.com : Check for edit window to be here in case of destruction during handler execution.
- Edit wine sync.

svn path=/trunk/; revision=44445
2009-12-06 22:52:51 +00:00
James Tabor
d75d23721e - [Win32k] Missed this one for rev 44423. Return invalid index not invalid parameter. No pass all SetWindowLongPtr wine tests.
svn path=/trunk/; revision=44444
2009-12-06 22:41:53 +00:00
James Tabor
b806aed1e1 - [Win32k] If Proc is null, use original one and perform processing.
svn path=/trunk/; revision=44443
2009-12-06 19:22:29 +00:00
Sylvain Petreolle
bbcb38b968 Set filesystem characteristics.
Floppy disks and cdroms are now reported as removable.

svn path=/trunk/; revision=44442
2009-12-06 18:49:19 +00:00
Christoph von Wittich
b0bec1e996 sync shlwapi with wine 1.1.34
svn path=/trunk/; revision=44441
2009-12-06 15:38:07 +00:00
Christoph von Wittich
f0c623ad45 sync msi with wine 1.1.34
svn path=/trunk/; revision=44440
2009-12-06 14:55:00 +00:00
Christoph von Wittich
88f7d4c1bb sync msi_winetest with wine 1.1.34
svn path=/trunk/; revision=44439
2009-12-06 14:46:53 +00:00
Timo Kreuzer
51d9a767a7 copy widl from trunk
svn path=/branches/ros-amd64-bringup/; revision=44438
2009-12-06 14:44:33 +00:00
Johannes Anderwald
00ba19e9a8 Return correct error code
svn path=/trunk/; revision=44437
2009-12-06 10:37:23 +00:00
Christoph von Wittich
0835abcb21 sync netapi32_winetest with wine 1.1.34
svn path=/trunk/; revision=44436
2009-12-06 09:50:53 +00:00
Christoph von Wittich
d829b5a270 sync msxml3_winetest with wine 1.1.34
svn path=/trunk/; revision=44435
2009-12-06 09:48:52 +00:00
Christoph von Wittich
01be408c18 sync rsaenh with wine 1.1.34
svn path=/trunk/; revision=44434
2009-12-06 09:41:08 +00:00
Christoph von Wittich
163ce9095f sync rsaenh_winetest with wine 1.1.34
svn path=/trunk/; revision=44433
2009-12-06 09:40:22 +00:00
Christoph von Wittich
87465c2280 sync crypt32_winetest with wine 1.1.34
svn path=/trunk/; revision=44432
2009-12-06 09:36:50 +00:00
Timo Kreuzer
79690d04fa Merge from amd64 branch:
- 34939 fix several ULONG / ULONG_PTR / SIZE_T issues (Timo Kreuzer)
- 40088 implement __mulh and __umulh (Timo Kreuzer)

svn path=/trunk/; revision=44431
2009-12-06 03:24:18 +00:00
Timo Kreuzer
3ab9af72ac - merge r44429
- fix hal_generic_amd64.rbuild
- add missing files

svn path=/trunk/; revision=44430
2009-12-06 02:44:06 +00:00
Timo Kreuzer
85cc9dffaa - unhack the rbuild file
- move some architecture specific stuff out of ReactOS-generic.rbuild

svn path=/branches/ros-amd64-bringup/; revision=44429
2009-12-06 01:11:32 +00:00
Timo Kreuzer
7fc8065685 Fix uninitialized variable
svn path=/branches/ros-amd64-bringup/; revision=44428
2009-12-05 22:48:43 +00:00
Timo Kreuzer
3422ff6695 Fix a typo
svn path=/branches/ros-amd64-bringup/; revision=44427
2009-12-05 22:40:03 +00:00
Timo Kreuzer
dca92a4d37 remove unused variables
svn path=/branches/ros-amd64-bringup/; revision=44426
2009-12-05 22:39:17 +00:00
Gregor Schneider
c0df1554da [rapps] Radek Liška <radekliska AT gmail DOT com>: Fix Czech sections for FF2 and 3
See issue #4991 for more details.

svn path=/trunk/; revision=44425
2009-12-05 21:36:51 +00:00
Timo Kreuzer
cef0db194e [EX]
- Fix calculation of PCR pointer from PRCB pointer

svn path=/trunk/; revision=44424
2009-12-05 21:33:31 +00:00
James Tabor
7bc1b745e3 - [Win32k] Return invalid index.
svn path=/trunk/; revision=44423
2009-12-05 20:45:07 +00:00
Christoph von Wittich
13c03eb48b sync crypt32 to wine 1.1.34
svn path=/trunk/; revision=44422
2009-12-05 20:37:08 +00:00
Christoph von Wittich
ef635964be sync dde.c to wine 1.1.34
svn path=/trunk/; revision=44421
2009-12-05 20:04:54 +00:00
Christoph von Wittich
0f9bc5c1a4 sync mapi32 with wine 1.1.34
svn path=/trunk/; revision=44420
2009-12-05 19:47:30 +00:00
Giannis Adamopoulos
8cf6e9f84e [kernel32]
Enable code to initialize the activation context when calling CreateThread
See issue #4983 for more details.

svn path=/trunk/; revision=44419
2009-12-05 19:46:33 +00:00
Christoph von Wittich
260fadf65d sync netapi32 with wine 1.1.34
svn path=/trunk/; revision=44418
2009-12-05 19:41:56 +00:00
Christoph von Wittich
1e17486780 sync kernel32/misc/profile.c to wine
kernel32: Fix uninitialised memory read in GetPrivateProfileStringA 	if GetPrivateProfileStringW returns 0.  <robertshearman at gmail dot com>

svn path=/trunk/; revision=44417
2009-12-05 19:35:03 +00:00
Christoph von Wittich
77cae0674b sync user32_winetest with wine 1.1.34
svn path=/trunk/; revision=44416
2009-12-05 19:25:28 +00:00
Timo Kreuzer
db10ad1090 Move architecture specific inline functions in into the respective headers. Remove some unused definitions from amd64 header.
svn path=/branches/ros-amd64-bringup/; revision=44415
2009-12-05 18:46:22 +00:00
Timo Kreuzer
a52c17e747 [KE]
Don't use fastcall functions

svn path=/branches/ros-amd64-bringup/; revision=44414
2009-12-05 18:17:59 +00:00
Dmitry Gorbachev
323a6f6137 Fix a potential buffer owerflow. Noticed by Martin Ettl with cppcheck. Bug #4987.
svn path=/trunk/; revision=44413
2009-12-05 17:35:54 +00:00
Cameron Gutman
ab7bd8eb08 [TCPIP]
- Implement TDI_QUERY_MAX_DATAGRAM_INFO

[AFD]
 - Send TDI_QUERY_MAX_DATAGRAM_INFO to set our send/receive windows properly
 - Don't create a send window for a datagram socket because it is never used
 - Fixes dropping all packets with length > 16384

svn path=/branches/aicom-network-branch/; revision=44412
2009-12-05 16:29:41 +00:00
Timo Kreuzer
77bf990378 [DDK]
Add MmAllocatePagesForMdlEx

svn path=/trunk/; revision=44411
2009-12-05 13:48:50 +00:00
Gregor Schneider
246ae043bc [rtl]
- Update status to error mapping tables and functions to current Wine sources
- Needed to for ERROR_TIMEOUT, ERROR_SXS_CANT_GEN_ACTCTX, ERROR_MR_MID_NOT_FOUND and several others
- Remove RtlNtStatusToPsxErrno - nobody will miss it
- Fixes ~20 kernel32 actctx winetests

svn path=/trunk/; revision=44410
2009-12-05 13:07:02 +00:00
Samuel Serapion
17e075c784 wined3d.dll - Missing floating point math operations.
ddraw.dll - depends on wined3d
    d3d8.dll - depends on wined3d
    d3d9.dll - depends on wined3d
usbdriver.sys - numerous build errors
ntvdm.exe - not built

svn path=/branches/ros-amd64-bringup/; revision=44409
2009-12-04 22:32:35 +00:00
Timo Kreuzer
ca9707ca00 [MM]
Don't create a memory area for the PCR on amd64, as we use our own from the kernel mapping instead of a hardcoded address mapped by the loader. Skip initializing the old page pool. It will probably not live on long enough to deserve any 64 bit fixing.

svn path=/branches/ros-amd64-bringup/; revision=44408
2009-12-04 21:42:40 +00:00
Timo Kreuzer
6578ba71c1 fix a debugprint
svn path=/branches/ros-amd64-bringup/; revision=44407
2009-12-04 21:36:43 +00:00
Ged Murphy
ca6850941c Start implementing Visual Studio 2010 support.
This is seriously boring, don't expect it anytime soon :(

svn path=/trunk/; revision=44406
2009-12-04 16:15:08 +00:00
Timo Kreuzer
2bd0dde813 Add some msr constants
svn path=/branches/ros-amd64-bringup/; revision=44405
2009-12-04 15:50:55 +00:00
Ged Murphy
0f11aa37e2 Remove perf test code I accidentally committed
svn path=/trunk/; revision=44404
2009-12-04 15:22:13 +00:00
Ged Murphy
628ba3758a Remove the devcpp backend.
svn path=/trunk/; revision=44403
2009-12-04 15:09:44 +00:00
Timo Kreuzer
4d8e5b9b6e [MM]
Rewrite MmAllocateSection to use system PTEs. Store the MDL pointer in the first PFN, to avoid allocating an additional PTE. Implement MmFreeSection. Now the bootdrivers go where they should go, freeing up lower system memory, and unloaded drivers actually get their memory freed (saving us 188 KB each boot).

svn path=/branches/ros-amd64-bringup/; revision=44402
2009-12-04 13:06:00 +00:00
Ged Murphy
bb32402355 - Don't listen to me, my 99.9% assurance that the new backend architecture wouldn't work was wrong. Who'd have thunk it??
- Remove the 'test' file name bug I put in to stop people overwriting their vcproj files.
- Don't forget object cleanup Ged ... this isn't .NET.
- 'make msvc#' is now working again.

svn path=/trunk/; revision=44401
2009-12-04 11:33:17 +00:00
Michael Martin
649c865a46 [ntoskrnl/config]
- CmpFindSubKeyByName: Remove the check for (Found) when checking if SubKey is valid as index can be 0.

svn path=/trunk/; revision=44400
2009-12-04 08:11:59 +00:00
Michael Martin
7103686e15 [kernel32]
- GetProcessVersion: Assign ProcessHandle to NULL to prevent closing an invalid handle. Patch by Alexander Yastrebov. See #4967.

svn path=/trunk/; revision=44398
2009-12-04 08:03:19 +00:00
James Tabor
3d166388d3 [Win32k]
- Patch by Huw Davies huw@codeweavers.com : Fix incorrect initialization of path array.
- Patch was modified from wine. Tested with Area.exe path test, still fails.

svn path=/trunk/; revision=44397
2009-12-04 06:47:23 +00:00
Samuel Serapion
8744e698e9 Remove broken definitions from oskit bsd headers. Fixes numerous warnings.
svn path=/branches/ros-amd64-bringup/; revision=44396
2009-12-04 00:12:31 +00:00
Dmitry Gorbachev
9e98fb7c05 Bitmap files for SndRec32. Marco Pagliaricci, bug #4978.
svn path=/trunk/; revision=44395
2009-12-03 22:12:29 +00:00
Gregor Schneider
5b3aa0ee80 [kernel32]
- OpenFile: set the structure size after doing basic parameter checks
- Fixes two kernel32 file tests

svn path=/trunk/; revision=44394
2009-12-03 21:50:52 +00:00
James Tabor
17c8128475 [Win32k]
- Reformat message.c
- [Start] Re-implement Get/PeekMessage support.

svn path=/trunk/; revision=44393
2009-12-03 20:09:42 +00:00
James Tabor
3d7e8046ed - [Win32k] Create a Gre function for GetGlyphIndicesW.
svn path=/trunk/; revision=44392
2009-12-03 20:07:44 +00:00
Samuel Serapion
bd9dc6c5fb fix 32bit build
svn path=/branches/ros-amd64-bringup/; revision=44391
2009-12-03 20:02:52 +00:00
Samuel Serapion
9fd420498d Unhack bootcd file list
svn path=/branches/ros-amd64-bringup/; revision=44390
2009-12-03 19:51:31 +00:00
Samuel Serapion
8f51e0fb9d Fix build and enable building usermode components, since they all build.
svn path=/branches/ros-amd64-bringup/; revision=44389
2009-12-03 19:40:01 +00:00
Samuel Serapion
0d9a397e30 - Allow warnings in gdi32
- Fix ntdll build
- Fix mysteriously broken (in last sync) obdc32

svn path=/branches/ros-amd64-bringup/; revision=44388
2009-12-03 19:03:25 +00:00
Dmitry Gorbachev
99f27439b5 [FORMATTING] SndRec32 patch by Marco Pagliaricci, bug #4978.
svn path=/trunk/; revision=44387
2009-12-03 19:00:41 +00:00
Gregor Schneider
f558c83b1c [kernel32]
- Update FormatMessageA/W to current Wine sources, rename the file to better reflect the content
- Fixes the failing kernel32 format_msg tests

svn path=/trunk/; revision=44386
2009-12-03 18:57:57 +00:00
Samuel Serapion
460cdf8351 Fix midimap build.
svn path=/branches/ros-amd64-bringup/; revision=44385
2009-12-03 18:46:04 +00:00
Dmitry Gorbachev
64c6953516 SndRec32 patch by Marco Pagliaricci, bug #4978.
svn path=/trunk/; revision=44384
2009-12-03 18:44:27 +00:00
Gregor Schneider
76e69bee97 [kernel32]
- Jerome Gardou <jerome DOT gardou AT laposte DOT net>: Implement missing ReplaceFileW functionality
- Fixes six kernel32 file winetests, bug #4827

svn path=/trunk/; revision=44383
2009-12-03 18:41:53 +00:00
Samuel Serapion
3c616c6610 fix copy/paste mistake.
svn path=/branches/ros-amd64-bringup/; revision=44382
2009-12-03 18:26:55 +00:00
Samuel Serapion
5da523a6b0 Don't use calloc, fixes building even more modules.
svn path=/branches/ros-amd64-bringup/; revision=44381
2009-12-03 18:10:08 +00:00
Samuel Serapion
fe58a95923 Re-add old name hack, fixes building some modules
svn path=/branches/ros-amd64-bringup/; revision=44380
2009-12-03 18:03:22 +00:00
Sylvain Petreolle
9b49e5e810 msimtf: remove unneeded ntdll dependancy
svn path=/trunk/; revision=44379
2009-12-03 17:36:15 +00:00
Timo Kreuzer
072306f953 Fix a bug in MiAllocatePagesForMdl that made it loop forever on the 1st page.
svn path=/trunk/; revision=44378
2009-12-03 17:02:34 +00:00
Ged Murphy
b9e2cd6419 - Initial re-architecture of the msvc backend.
- Split the MSVCBackend class into it's respective worker objects :
- * Use an abstract ProjMaker base class which we can now use to better implement support for future VS releases
- * Move sln creation into its own class
- Don't create the .user files anymore, they're not required for our use.
- Remove support for Visual Studio 6, Visual Studio 2002 and Visual Studio 2003
Although I haven't tested it, I'm 99.9% sure this breaks 'make msvc#' so DON'T RUN IT yet unless you want your vcproj files destroyed.

svn path=/trunk/; revision=44377
2009-12-03 16:09:09 +00:00
Daniel Reimer
c02b01ff32 Add DosBlaster 2.5 to rapps. This tool installs a shell extension which makes it possible to start any executable in DOSBox via right click.
svn path=/trunk/; revision=44376
2009-12-03 09:54:10 +00:00
Samuel Serapion
f94596c837 Fix msvcrt build
svn path=/branches/ros-amd64-bringup/; revision=44375
2009-12-03 09:20:03 +00:00
Samuel Serapion
e7c948033c Attempt to fix building some modules.
svn path=/branches/ros-amd64-bringup/; revision=44374
2009-12-03 08:56:36 +00:00
Samuel Serapion
f364e33219 Sync to trunk (r44371)
svn path=/branches/ros-amd64-bringup/; revision=44373
2009-12-03 07:28:23 +00:00
Samuel Serapion
07bd1f96bd Sync to trunk (r44371)
svn path=/branches/ros-amd64-bringup/; revision=44372
2009-12-03 07:26:32 +00:00
Michael Martin
7dc08676d7 SXS Support Part 2 of 2.
[dll/ntdll]
- Import find_actctx_dll from WINE. Add create_module_activation_context based on WINE.
- Search for an active context dlls during mapping dll's in LdrpMapDllImageFile.
- Allocate memory for the ActivationContextStackPointer when loading the executable image in LdrPEStartup.
[dll/kernel32]
- Import kernel32 ActCtx related apis from WINE.
Now active.

svn path=/trunk/; revision=44371
2009-12-03 05:42:58 +00:00
Cameron Gutman
117c56eef3 - Implement IOCTL_AFD_GET_CONNECT_DATA, IOCTL_AFD_SET_CONNECT_DATA, IOCTL_AFD_SET_CONNECT_DATA_SIZE, IOCTL_AFD_GET_DISCONNECT_DATA, IOCTL_AFD_SET_DISCONNECT_DATA, IOCTL_AFD_SET_DISCONNECT_DATA_SIZE, IOCTL_AFD_SET_CONNECT_OPTIONS, IOCTL_AFD_GET_CONNECT_OPTIONS, IOCTL_AFD_SET_CONNECT_OPTIONS_SIZE, IOCTL_AFD_SET_DISCONNECT_OPTIONS, IOCTL_AFD_GET_DISCONNECT_OPTIONS, IOCTL_AFD_SET_DISCONNECT_OPTIONS_SIZE
- Check that the socket allows connections in AfdDisconnect and AfdStreamSocketConnect
 - Allocate the receive window in connectionless sockets when the socket is bound instead of at FCB creation
 - Remove a horrible hack in UnlockRequest
 - Remove an incorrect call to MmUnmapLockedPages (the pages aren't mapped!)
 - Replace the recursive mutex with a KMUTEX for now (eventually I want to move to a fast mutex)
 - Fix a leak in LockRequest in failure case

svn path=/branches/aicom-network-branch/; revision=44370
2009-12-02 23:57:57 +00:00
Cameron Gutman
cf3234d59c - Allocate send and receive buffers from paged pool (saves 32KB of non-paged pool per socket)
svn path=/branches/aicom-network-branch/; revision=44369
2009-12-02 22:38:10 +00:00
Colin Finck
dfa9eb6204 [General]
- Remove the "kernel32" library reference in all .rbuild files of user-mode modules, because this one is already added by "mingw_common". Also fix the indentation in some files.

svn path=/trunk/; revision=44368
2009-12-02 20:32:16 +00:00
Gregor Schneider
c77da60dbc Move tsclient to rosapps [2/2]
svn path=/trunk/; revision=44366
2009-12-02 18:58:51 +00:00
Gregor Schneider
23df1a2f4b Move tsclient to rosapps (not included in build process and superseded by Geds mstsc implementation) [1/2]
svn path=/trunk/; revision=44365
2009-12-02 18:58:05 +00:00
Gregor Schneider
93d086d81a Martin Ettl <ettl DOT martin AT gmx DOT de>: Fix various resource and memory leaks
See issue #4974 for more details.

svn path=/trunk/; revision=44364
2009-12-02 18:28:52 +00:00
Dmitry Gorbachev
0c2fe0a124 Update log2lines to version 1.5. Jan Roeloffzen, bug #4342.
svn path=/trunk/; revision=44363
2009-12-02 17:11:32 +00:00
Michael Martin
e2e8b52413 SXS Support Part 1 of 2. All import work done by Samuel Serapión with some small changes my me.
[lib/rtl]
- Import Rtlxx and related functions for Activation Context Support from WINE.
- Implement RtlAllocateActivationContextStack.
- Modify get_manifest_in_manifest_file function to use FileStandardInformation vice FileEndOfFileInformation (currently unsupported) in call to NtQueryInformationFile.
- Add structs RTL_ACTIVATION_CONTEXT_STACK_FRAME and ACTIVATION_CONTEXT_STACK from WINE.
- Add ActivationContextStackPointer to TEB.
- Define QUERY_ACTCTX_FLAG_NO_ADDREF.Will become active with changes to ntdll loader in Part 2.

svn path=/trunk/; revision=44359
2009-12-02 09:43:35 +00:00
Ged Murphy
c259bdb773 Handle the upcoming name change from mingw32-make.exe to make.exe in the next version of RosBE.
svn path=/trunk/; revision=44358
2009-12-02 09:16:10 +00:00
Daniel Reimer
f6dd1109f6 Bug 4970: PATCH: Dutch translation for newdev by Maikel Wever
Bug 4971: PATCH: Dutch translation for regsvr32 by Maikel Wever
Bug 4972: PATCH: Dutch translation of Calc - UPDATE by Maikel Wever

svn path=/trunk/; revision=44355
2009-12-02 08:22:35 +00:00
Cameron Gutman
2cb569197b - Revert 44301
svn path=/branches/aicom-network-branch/; revision=44354
2009-12-02 03:29:17 +00:00
Cameron Gutman
29fa274d6d - Create another branch for networking fixes
- TSVN choked repeatedly when attempting to merge ~9000 revs into the branch (tried 3 times on 2 different computers)
 - If someone wants to delete aicom-network-fixes, they are welcome to
 - Lesson learned: Letting a branch get thousands of revs out of date is a horrible idea

svn path=/branches/aicom-network-branch/; revision=44353
2009-12-02 03:23:19 +00:00
Samuel Serapion
d2a93c234a fix warning about no newline at end of file
svn path=/branches/ros-amd64-bringup/; revision=44352
2009-12-02 02:50:16 +00:00
Aleksey Bragin
6bc24c2625 [ntoskrnl/cc]
- Don't create zero sized cache segments. By Dmitry Gorbachev.
See issue #4100 for more details.

svn path=/trunk/; revision=44349
2009-12-01 21:32:50 +00:00
Aleksey Bragin
88e41959e1 [ntoskrnl/se]
- Add a hack which prints an annoying message and grants access when it should not be. Callers/bugs should be fixed and this commit reverted after that.
See issue #4169 for more details.

svn path=/trunk/; revision=44348
2009-12-01 21:26:40 +00:00
Gregor Schneider
979696d87d [inf] Fix fdc driver version entry (highlighted by bug #4917)
svn path=/trunk/; revision=44347
2009-12-01 19:51:51 +00:00
Ged Murphy
e1176344d4 Add the msvc10 makefile changes
svn path=/trunk/; revision=44346
2009-12-01 18:56:05 +00:00
Gregor Schneider
fb3101148f [kernel]
- Fail in DosDateTimeToFileTime if prior time conversion was unsuccessful
- Should fix the NetStats installation, bug #4917, part 2

svn path=/trunk/; revision=44345
2009-12-01 18:53:01 +00:00
Gregor Schneider
09bdd4ffa0 [ntdll]
- Logic change of r37554 is correct, RtlTimeFieldsToTime doesn't normalize invalid input values - remove these codes
- Related to bug #4917, part 1

svn path=/trunk/; revision=44344
2009-12-01 18:46:13 +00:00
Ged Murphy
9d7f91d6ca - Include support for makefile configurations.
- Add a new makefile config to the global configuration called RosBuild
- Use the new makefile config to process and external batch file which make use of rbuild.
- Split and partially rewrite _generate_vcproj. Configurations are now written in support functions. 
- Remove the creation of .vcproj.user files. They're rather pointless for our needs
- Start to add support for VS2010 (make msvc10), it's very incomplete at the moment so don't bother trying it.

After this commit, you can now use Visual Studio to build individual reactos components. Run 'make msvc9', open up any vcproj file, select the RosBuild config and hit the build/rebuild button. Working build features are 'build', 'rebuild' and 'clean'

svn path=/trunk/; revision=44343
2009-12-01 18:44:16 +00:00
Ged Murphy
26b1e5ce54 Add a root level batch file which allows building reactos without invoking RosBE.
It won't currently work without RosBE as it relies in the gcc toolset installed along with RosBE to go about its business.
It currently checks for RosBE existence with a rather hackish ^H^H^H^H ... elaborate string parser using the 'reg' command line util output. I'd be happy for anyone to improve on this.

svn path=/trunk/; revision=44342
2009-12-01 18:39:49 +00:00
Michael Martin
db4cbee9dc [kernel32]
- Fix broken code inside SXS_SUPPORT_ENABLED define and add some DPRINTs. Still unused.

svn path=/trunk/; revision=44341
2009-12-01 11:48:06 +00:00
James Tabor
4a32024814 - [Win32k] Make DispatchMessage call direct to WinProc callback. Add more thread death checks.
svn path=/trunk/; revision=44340
2009-12-01 05:35:05 +00:00
Samuel Serapion
3619d4c3e9 Hack fix ndis build.
svn path=/branches/ros-amd64-bringup/; revision=44339
2009-12-01 03:36:35 +00:00
Samuel Serapion
071909e1df fix build.
svn path=/branches/ros-amd64-bringup/; revision=44338
2009-12-01 03:17:54 +00:00
Timo Kreuzer
b2bc2c64b7 fix build
svn path=/branches/ros-amd64-bringup/; revision=44337
2009-12-01 02:03:34 +00:00
Dmitry Gorbachev
378568a6d9 Update log2lines to version 1.4. Jan Roeloffzen, bug #4342.
svn path=/trunk/; revision=44335
2009-11-30 21:49:18 +00:00
James Tabor
4b9396cef9 - [Win32k] Test thread death before posting to queue.
svn path=/trunk/; revision=44334
2009-11-30 20:13:05 +00:00
James Tabor
c4e84dd682 - [Win32k] Remove debug prints from classes.
svn path=/trunk/; revision=44333
2009-11-30 19:24:23 +00:00
James Tabor
78365fd832 - [Win32k] Use PostMessage to send broadcast messages to the queues. co_IntPostOrSendMessage does not support it.
svn path=/trunk/; revision=44332
2009-11-30 19:21:27 +00:00
Johannes Anderwald
e3e3b99e8e - First version of ReactOS Sound Record Application by Marco Pagliaricci (IRC: rendar)
svn path=/trunk/; revision=44331
2009-11-30 18:54:41 +00:00
Dmitry Gorbachev
8a06fa021a Apply font changes from r44305 to mainline.
svn path=/trunk/; revision=44330
2009-11-30 17:00:12 +00:00
Johannes Anderwald
bb403d5976 Fix build breakage
svn path=/trunk/; revision=44329
2009-11-30 14:55:20 +00:00
Daniel Reimer
ced89bf1a1 Updated the rapps Software list.
AbiWord from 2.6.4 to 2.6.8
MinGW from 5.1.4 to 5.1.6
MirandaIM from 0.8.9 to 0.8.10
Opera from 9.6.4 to 10.10 (YES, this works!)
SDL Mixer from 1.2.9 to 1.2.11
SeaMonkey from 1.1.18 to 2.0 (YES, that too!)
UltraVNC from 1.0.6.5 to 1.0.8.0
uTorrent from 1.8.4 to 1.8.5
vlc from 1.0.2 to 1.0.3

svn path=/trunk/; revision=44328
2009-11-30 01:50:47 +00:00
Timo Kreuzer
2fdf38accf [MM]
Rewrite the broken MmFindGap* functions. They were first searching for a gap between the already allocated memory areas and only after that trying to find a gap below or above these areas. This bug helped with 2 things. 1. Not overwriting the kernel mapping, because no memory area was defined for it and 2. allow csrss to map video memory at virtual adress 0x000a0000. The former is fixed by adding the appropriate memory area, the latter is hacked away, by making the addressing range start at 0x00100000. Also use MmHighestUserAddress instead of MmSystemRangestart - 1. Simplyfy overcomplicated code. Fix a DPRINT

svn path=/branches/ros-amd64-bringup/; revision=44327
2009-11-30 00:24:55 +00:00
Johannes Anderwald
7759e8983b [WDMAUD.DRV]
- Implement support for resetting a stream (not yet used)
- Don't translate the error again in QueryMixerInfo as SyncOverlappedDeviceIoControl has already translated the error
- Don't touch the cbSize member when opening a wave device, as the caller might have passed a WAVEFORMAT struct instead a WAVEFORMATEX struct. Fixes winmm_winetest wave / mixer crashs
- Query all available events when an mixer event is fired

svn path=/trunk/; revision=44326
2009-11-29 22:58:33 +00:00
Johannes Anderwald
647f63f881 [MMEBUDDY]
- Return correct error code
- Fixes last 4 four winmm_winetest mixer test failures

svn path=/trunk/; revision=44325
2009-11-29 21:17:15 +00:00
Johannes Anderwald
e4abf36dc6 - Partly revert 44309 as it sometimes causes problems
svn path=/trunk/; revision=44324
2009-11-29 19:29:52 +00:00
Johannes Anderwald
f21af7347f [WDMAUD_KERNEL]
- Always set Mute control on first channel
[PORTCLS]
- Rewrite node property handling. Fixes lots of bugs and fixes all winmm_winetest mixer failures

svn path=/trunk/; revision=44323
2009-11-29 18:56:56 +00:00
Gregor Schneider
eeba3408b2 [setupapi] Sync SetupGetIntField to Wine, fixes six setupapi:parser tests
svn path=/trunk/; revision=44322
2009-11-29 18:07:14 +00:00
Timo Kreuzer
8a4f13825c [MM]
- Fix calculation of MemoryArea size for the Page tables
- Fix debug output for page table and hyperspace addresses

svn path=/branches/ros-amd64-bringup/; revision=44321
2009-11-29 15:55:46 +00:00
Timo Kreuzer
43eaa8106d [MM]
MiReloadBootLoadedDrivers:
- Allow images with relocations stripped.
- Make sure NumberOfRvaAndSizes is *>* IMAGE_DIRECTORY_ENTRY_BASERELOC (== is not enough)
- Move one ASSERT, remove a useless ASSERT

svn path=/branches/ros-amd64-bringup/; revision=44320
2009-11-29 15:51:46 +00:00
Timo Kreuzer
1e3affa73f [MM]
MmCreateMemoryArea: Make tmpLength an ULONG_PTR, so it dowsn't overflow on 64 bit

svn path=/branches/ros-amd64-bringup/; revision=44319
2009-11-29 15:26:31 +00:00
Michael Martin
15fff6abae [ntdll]
- Implement LdrLockLoaderLock and LdrUnlockLoaderLock.

svn path=/trunk/; revision=44318
2009-11-29 10:53:39 +00:00
Johannes Anderwald
637f171861 - Try fix increase of winmm:mixer tests failure
- Found by Gregor Schneider (DosX)

svn path=/trunk/; revision=44315
2009-11-28 22:15:20 +00:00
KJK::Hyperion
43cd83d781 Nevermind.
svn path=/trunk/; revision=44314
2009-11-28 20:09:07 +00:00
Gregor Schneider
9560d47053 [msvcrt]
- Validate the process heap 
- Remove validation as soon as this function is tested

svn path=/trunk/; revision=44313
2009-11-28 19:35:47 +00:00
James Tabor
41cbf8aa2b - [Win32k] Add comments to text functions.
svn path=/trunk/; revision=44312
2009-11-28 19:34:45 +00:00
Johannes Anderwald
7d4a441c15 - Implement IOCTL_RESET_STREAM which is required for waveInReset waveOutReset
svn path=/trunk/; revision=44311
2009-11-28 17:06:22 +00:00
Johannes Anderwald
1ea59d6a62 - Silence debug print
svn path=/trunk/; revision=44310
2009-11-28 17:05:06 +00:00
Johannes Anderwald
f45f63e7c2 [PORTCLS]
- Store KSOBJECT_HEADER as the first member in a struct, which ks can use to access object header. Fixes initialization of ReactOS portcls in WinXP
- Partly implement power querying / setting. Fixes bsod when shutting down the system in WinXP with ReactOS portcls
- Change the pin state at PASSIVE_LEVEL
- Implement IOCTL_KS_RESET for CPinWaveCyclic

svn path=/trunk/; revision=44309
2009-11-28 17:01:46 +00:00
Gregor Schneider
7171029029 [gdiplus]
- Update to current Wine sources
- Now routes BMP drawing to gdi instead of doing ole32 magic (bug #3412)

svn path=/trunk/; revision=44308
2009-11-28 15:26:02 +00:00
Gregor Schneider
8e09c97596 [msvcrt]
- Fix buffer calculation in argvtoW, missed unicode character size
- Fixes another crash during GIMP startup, now GIMP starts (bug #3503, part 2)
- Fix same problem in valisttoA/W

svn path=/trunk/; revision=44307
2009-11-28 15:16:36 +00:00
Gregor Schneider
b06cec2ffd [msvcrt]
- Use the process heap for malloc and friends
- Fixes a crash during GIMP startup (bug #3503, part 1)

svn path=/trunk/; revision=44306
2009-11-28 15:13:18 +00:00
Gregor Schneider
91523d7181 [msvcrt] Update scanf family with a patch that also went to Wine (http://source.winehq.org/git/wine.git/?a=commit;h=2043035e1749e40e23853d751ac1410d39fc8d27):
Calculate floating point decimals in internally used long double precision.
Fixes bug #4092 (calculator imprecision)

svn path=/trunk/; revision=44304
2009-11-28 15:01:40 +00:00
Michael Martin
3ba0c60504 [ntoskrnl/config]
- CmpFindSubKeyInName: CmpFindSubKeyInRoot is useless in finding the correct leaf with the key name that is being searched for when keys are not sorted. Loop and search each leaf of the root index for the key name. See bug #4895 for more info.

svn path=/trunk/; revision=44303
2009-11-28 14:54:34 +00:00
KJK::Hyperion
911304e174 Removed documentation about a build system feature that's no longer supported
I give thanks for the opportunity to improve ReactOS by removing, instead of adding code

svn path=/trunk/; revision=44302
2009-11-28 14:51:52 +00:00
Aleksey Bragin
212d5ee24e - Revert the oskit locking rewrite in trunk, it's better to test/debug it in the branch first. Reverted revisions numbers: 44268, 44267, 44266, 44250, 44199, 44166-163, 44021, 44010, 43926, 43922, 43883.
svn path=/trunk/; revision=44301
2009-11-28 14:45:21 +00:00
Timo Kreuzer
60bf8d9cd4 Implement "portable" SList code for 64 bit
svn path=/branches/ros-amd64-bringup/; revision=44296
2009-11-27 17:37:07 +00:00
Timo Kreuzer
a3ec73cfaf Some more fixes for RtlInterlockedPopEntrySList and RtlInterlockedPushEntrySList
svn path=/branches/ros-amd64-bringup/; revision=44295
2009-11-27 17:30:25 +00:00
Timo Kreuzer
892c213bdc Fix SLIST_ENTRY for WIN64
svn path=/branches/ros-amd64-bringup/; revision=44294
2009-11-27 17:23:05 +00:00
Timo Kreuzer
644d3aee30 - Don't use a pointer to SINGLE_LIST_ENTRY as parameter for InterlockedPushEntrySList. It's not the same as SLIST_ENTRY!
svn path=/branches/ros-amd64-bringup/; revision=44293
2009-11-27 17:06:54 +00:00
Timo Kreuzer
ba13b6786a - rewrite the completely broken RtlInterlockedPopEntrySList, implement RtlInterlockedPushEntrySList, RtlInterlockedFlushSList
- use these for ExpInterlocked*
- remove a bunch of Interlocked* functions from amd64 kernel exports

svn path=/branches/ros-amd64-bringup/; revision=44289
2009-11-26 22:40:07 +00:00
Aleksey Bragin
f41f818156 [rpcrt4]
- Revert rpcrt4 back to 1.1.31-partial. Fixes various RPC related regressions.

svn path=/trunk/; revision=44287
2009-11-25 19:36:10 +00:00
Cameron Gutman
3384debaf5 - Initialize SocketError to 0 to prevent a bogus error from GCC
svn path=/trunk/; revision=44286
2009-11-25 18:08:43 +00:00
Aleksey Bragin
d1aeb20e33 [ntoskrnl/cm]
- CmpSelectLeaf fixes: looking into an incorrect cell, returning wrong cell, slightly simplify code and add more comments for clarity. Thanks to Michael Martin for spotting these bugs.

svn path=/trunk/; revision=44285
2009-11-24 22:56:43 +00:00
Aleksey Bragin
5040fe13f1 [WIDL]
- Update widl to Wine-1.1.33.

svn path=/trunk/; revision=44284
2009-11-24 22:42:40 +00:00
Aleksey Bragin
1d110c440a [IDL]
- Make our IDLs files to not specify a [range] tag for string datatypes, and 0,256 range for an unsigned type. Fixes compiling with newer WIDL and (probably) MIDL.

svn path=/trunk/; revision=44283
2009-11-24 22:39:25 +00:00
Gregor Schneider
70dc807bf2 [rosautotest]: Find the last underscore instead of the first one when building a module name, hurray for twain_32_winetest and ws2_32_winetest
See issue #4929 for more details.

svn path=/trunk/; revision=44282
2009-11-24 20:36:53 +00:00
Timo Kreuzer
a78c631dcd SeCaptureSecurityDescriptor: instead of first copying the relative offsets of a SECURITY_DESCRIPTOR_RELATIVE into the pointer fields of a SECURITY_DESCRIPTOR and later adding the base pointer, do it directly as the code already needs to handle relative and absolute structures differently before.
svn path=/branches/ros-amd64-bringup/; revision=44276
2009-11-23 21:52:18 +00:00
Timo Kreuzer
c6aa60e093 Mm64BitPhysicalAddress is a BOOLEAN, not a PBOOLEAN
svn path=/branches/ros-amd64-bringup/; revision=44274
2009-11-23 20:44:21 +00:00
Timo Kreuzer
7ccba78dc7 Remove some useless code.
svn path=/branches/ros-amd64-bringup/; revision=44270
2009-11-22 21:10:06 +00:00
Timo Kreuzer
aae3e9fba5 [MM]
Don't acquire the pfn lock before calling MmReleasePageMemoryConsumer. The function acquires it already and before that it acquires a different spinlock, leading to a race condition on SMP systems.

svn path=/branches/ros-amd64-bringup/; revision=44269
2009-11-22 20:33:49 +00:00
Timo Kreuzer
a504eda297 [MM]
Use an array of PFN_NUMBER to pass to MiMapPagesToZeroInHyperSpace instead of MMPFNs which were then converted to PFN_NUMBERs.

svn path=/branches/ros-amd64-bringup/; revision=44268
2009-11-22 19:16:50 +00:00
Cameron Gutman
e016a230af - Fix a race condition that occurs when an IRP gets cancelled after it is inserted into the completion queue but before it is completed
svn path=/trunk/; revision=44267
2009-11-22 02:32:47 +00:00
Cameron Gutman
83bc88465f - Remove memtrack and use tags instead (ExAllocatePoolWithTag/ExFreePoolWithTag)
- Cleanup DriverEntry
 - Remove DEFINE_TAG
 - Remove checkpoints in TiCreateFileObject

svn path=/trunk/; revision=44266
2009-11-21 23:53:43 +00:00
Aleksey Bragin
f94c2c5f75 [kernel32]
- Don't export unnecessary stub. Fixes Firefox 3.5.5 startup.

svn path=/trunk/; revision=44261
2009-11-21 20:41:24 +00:00
Aleksey Bragin
78b292be2c [ntoskrnl/se]
- Factor out working code from SeAccessCheck into SepAccessCheck, taking out addition parameter - LowerImpersonationLevel. The lowest level for SeAccessCheck remains SecurityImpersonation, but for NtAccessCheck it's lowered to SecurityIdentification. Name of this patch's author has been lost.
See issue #4169 for more details.

svn path=/trunk/; revision=44260
2009-11-21 17:58:33 +00:00
Timo Kreuzer
7ae6f1e2be ULONG -> ULONG_PTR
svn path=/branches/ros-amd64-bringup/; revision=44259
2009-11-21 15:56:05 +00:00
Timo Kreuzer
66fbb30e23 - MmArmAccessFault: Don't assume that PDE's are accessible, instead use MiIsPdeForAddressValid
- Use HYPER_SPACE_END / MI_PFN_DATABASE constants instead of hardcoded values
- Remove the MmAccessFault hack, it works now.

svn path=/branches/ros-amd64-bringup/; revision=44258
2009-11-21 15:52:28 +00:00
Timo Kreuzer
5374d2c307 PFN_TYPE -> PFN_NUMBER
svn path=/branches/ros-amd64-bringup/; revision=44257
2009-11-21 15:43:26 +00:00
Timo Kreuzer
22b47450d3 - Update MMPFN for WIN64
svn path=/branches/ros-amd64-bringup/; revision=44256
2009-11-21 15:28:14 +00:00
Cameron Gutman
c71cdeb49d - Disassociate the socket context before closing so we don't get signalled with a freed context (major cause of crashes)
- Signal the connection directly from TCPSocketState
 - Remove some unused code
 - Queue completion requests on a separate list so we don't have to keep locking and unlocking while completing
 - Add better locking to tcpip (not the lib)
 - Remove some unused variables
 - Don't hold the cancel spin lock longer than necessary
 - Check that we successfully got the device description

svn path=/trunk/; revision=44250
2009-11-21 13:00:37 +00:00
Aleksey Bragin
fda7cf929a [wininet]
- Revert 44236 (sync wininet to Wine-1.1.33) and 43948 (sync wininet to Wine-1.1.32). Part 1/3 of rapps unregressing.
See issue #4934 for more details.

svn path=/trunk/; revision=44239
2009-11-20 16:50:05 +00:00
Aleksey Bragin
ad2dffe030 [wininet]
- Update wininet to Wine-1.1.33.

svn path=/trunk/; revision=44236
2009-11-20 14:22:05 +00:00
Timo Kreuzer
84c2495bb9 [MM]
Implement MiBuildPagedPool. Refactor MmArmInitSystem. Use a hardcoded address for the PFN database, this might not be identical to windows, but it makes things simpler and there's no real point in dynamically putting it below the non paged pool. Use a global MxPhase to decide whether to do early page allocations using MxAllocEarlyPage or use MmAllocPage in phase 1. Paged pool allocations work now, but the page fault isn't handled yet.

svn path=/branches/ros-amd64-bringup/; revision=44229
2009-11-18 21:35:14 +00:00
Timo Kreuzer
84c574f9fe [MM]
Don't assume 1024 PTEs per page, instead use PTE_PER_PAGE constant.

svn path=/branches/ros-amd64-bringup/; revision=44228
2009-11-18 21:20:09 +00:00
Pierre Schweitzer
d6c7749eba Fixed typo
(lost patch found in the dust)

svn path=/trunk/; revision=44227
2009-11-18 18:15:49 +00:00
Aleksey Bragin
f0fa2f117f [rapps]
Andrey Yastrebov <menone7@gmail.com>
- Fix app uninstallation feature (wrong lparam usage - it's pointer to PINSTALLED_INFO and not an hkey).
See issue #4961 for more details.

svn path=/trunk/; revision=44225
2009-11-18 14:37:31 +00:00
Aleksey Bragin
b5a0cbacfb - Properly convert mswsock.def to mswsock.spec (we have all functions properly stubbed).
- Remove WSPStartup from ws2_32, it doesn't belong there. Spotted by Gabriel Ilardi.
See issue #4956 for more details.

svn path=/trunk/; revision=44224
2009-11-18 14:16:34 +00:00
Timo Kreuzer
d4bcf7f0d7 [MM]
Overall code improvements.

svn path=/branches/ros-amd64-bringup/; revision=44222
2009-11-17 19:30:35 +00:00
Timo Kreuzer
7ee161e3b5 Ammendment to r44220
svn path=/branches/ros-amd64-bringup/; revision=44221
2009-11-17 19:25:19 +00:00
Timo Kreuzer
4c52a315f1 [MM]
- MmCreateMemoryArea: the area type is a bitfield rather than an enum so use %lx instead of %ld to DPRINT it, add 2 more DPRINTs on failure
- MiInitSystemMemoryAreas: fix calculation of memory area sizes for 64 bit

svn path=/branches/ros-amd64-bringup/; revision=44220
2009-11-17 19:22:55 +00:00
Timo Kreuzer
94571497d9 Remove unused variable.
svn path=/branches/ros-amd64-bringup/; revision=44219
2009-11-17 19:11:12 +00:00
Timo Kreuzer
85a6488b56 Create a better definition of C_ASSERT to avoid multiple definition errors caused by included files.
svn path=/branches/ros-amd64-bringup/; revision=44218
2009-11-17 19:09:38 +00:00
KJK::Hyperion
4e2f21b12b Goodbye win32k_base, you won't be missed
svn path=/trunk/; revision=44216
2009-11-17 17:00:01 +00:00
KJK::Hyperion
590c766281 Reapplying r44182. Thanks to r44208, it should actually work this time
svn path=/trunk/; revision=44215
2009-11-17 16:18:34 +00:00
KJK::Hyperion
70faa1388d modified Makefile
$(ECHO_DLLTOOL) -> $(ECHO_IMPLIB)
   New status line ECHO_RSP for built-in response file generator rule
   $(NL) variable that expands to a newline -- only known way to escape the newline character in GNU make

modified   tools/rbuild/backend/mingw/linkers/ld.mak
   $(ECHO DLLTOOL) -> $(ECHO_DLLTOOL) -> $(ECHO_IMPLIB)
   Generate a response file with the list of object files, instead of passing every single object file on the linker command line. Our really long linker command lines should no longer be an issue

modified   tools/rbuild/backend/mingw/modulehandler.cpp
   Clean files generated by externally-defined rules

Build issues fix 1/2 (1/3?)

svn path=/trunk/; revision=44208
2009-11-17 02:54:29 +00:00
Timo Kreuzer
584007b6f6 [MM]
- Implement the rest of MmArmInitSystem phase 1 except MiBuildPagedPool

svn path=/branches/ros-amd64-bringup/; revision=44207
2009-11-16 22:12:36 +00:00
Timo Kreuzer
60e68cd411 add 64 bit POOL_HEADER, to make pool allocations work here, too
svn path=/branches/ros-amd64-bringup/; revision=44206
2009-11-16 22:03:30 +00:00
Timo Kreuzer
78ea6134bb - add BAUDRATE=115000 to boot command line
- Improve the code in wlmemory.c, no real functional change


svn path=/branches/ros-amd64-bringup/; revision=44205
2009-11-16 21:56:29 +00:00
Timo Kreuzer
bbc5790f22 On amd64 the NextEntry member of MMPTE_LIST has 32 bits, but 36 would be required to cover the whole pte space. Therefore use MmSystemPtesStart[SystemPtePoolType] as base for the pfn linked list instead of MmSystemPteBase, which is set to PTE_BASE.
svn path=/branches/ros-amd64-bringup/; revision=44204
2009-11-16 19:35:36 +00:00
Daniel Reimer
84e0310943 Revert yesterday's fix for now.
svn path=/trunk/; revision=44203
2009-11-16 18:32:30 +00:00
Johannes Anderwald
9d604a73e1 - Build fix by Pigglesworth
svn path=/trunk/; revision=44202
2009-11-16 18:24:36 +00:00
Johannes Anderwald
8e33ff3436 - Various bugfixes found by Amine48rz
svn path=/trunk/; revision=44201
2009-11-16 18:13:56 +00:00
Cameron Gutman
a2350b62d8 - Implement OskitTCPGetSocketError which retreives so->so_error
- Use OskitTCPGetSocketError to get the actual socket error which occurred when get SEL_FIN
 - Add more cases to TCPTranslateError

svn path=/trunk/; revision=44199
2009-11-16 07:39:52 +00:00
Dmitry Gorbachev
55d1ffb642 Remove MmVerifierData.
svn path=/trunk/; revision=44198
2009-11-16 01:57:59 +00:00
Dmitry Gorbachev
e31f753c70 Fix a bug, silence GCC 4.5.x warnings.
svn path=/trunk/; revision=44197
2009-11-16 01:57:24 +00:00
Dmitry Gorbachev
aa317c6f63 Break long expressions, fix formatting.
svn path=/trunk/; revision=44196
2009-11-16 01:56:48 +00:00
Christoph von Wittich
acbe9adac1 sync kernel32 winetest with wine 1.1.33
svn path=/trunk/; revision=44195
2009-11-16 01:37:38 +00:00
Christoph von Wittich
073d07ac36 partial FormatMessage wine sync
svn path=/trunk/; revision=44194
2009-11-16 01:37:12 +00:00
Christoph von Wittich
0b4a63a920 add MUI error codes from wine
svn path=/trunk/; revision=44193
2009-11-16 01:23:20 +00:00
Christoph von Wittich
4df398e191 sync msi winetest to wine 1.1.33
svn path=/trunk/; revision=44192
2009-11-16 01:15:54 +00:00
Christoph von Wittich
fe383756c1 sync msi to wine 1.1.33
svn path=/trunk/; revision=44191
2009-11-16 01:13:42 +00:00
Daniel Reimer
5bc70bf808 Update ScummVM Link to the Version 1.0.0.
Congrats to the ScummVM Team reaching Final State after 8 years of work.
Best wishes for the future from us.

svn path=/trunk/; revision=44190
2009-11-16 00:26:56 +00:00
Christoph von Wittich
f12b3f3e8d sync mshtml to wine 1.1.33
svn path=/trunk/; revision=44189
2009-11-15 23:44:20 +00:00
Christoph von Wittich
20028cfb2f sync rsaenh with wine 1.1.33
svn path=/trunk/; revision=44188
2009-11-15 23:28:15 +00:00
Christoph von Wittich
25f74e7771 sync rsaenh winetest with wine 1.1.33
svn path=/trunk/; revision=44187
2009-11-15 23:25:01 +00:00
Christoph von Wittich
767e2566ff partial shell32 sync
svn path=/trunk/; revision=44186
2009-11-15 23:19:33 +00:00
Christoph von Wittich
9cd4c81c17 sync crypt32 winetest with wine 1.1.33
svn path=/trunk/; revision=44185
2009-11-15 23:04:51 +00:00
Christoph von Wittich
86d5f9981c sync crypt32 with wine 1.1.33
svn path=/trunk/; revision=44184
2009-11-15 22:58:08 +00:00
Christoph von Wittich
5db2650780 sync dde with wine 1.1.33
svn path=/trunk/; revision=44183
2009-11-15 22:45:31 +00:00
Daniel Reimer
f3e43b25a8 kjk_hyperion: "Gross hack. People with RosBE installed to a path with spaces can now compile again. Emergency over."
svn path=/trunk/; revision=44182
2009-11-15 22:29:08 +00:00
Timo Kreuzer
a6656cbfae Add some debugging code
svn path=/branches/ros-amd64-bringup/; revision=44179
2009-11-15 20:28:38 +00:00
Timo Kreuzer
a5a0c47af3 Fix definition of _CONTEXT. It was defining EFlags as USHORT, this caused the upper 2 bytes being left randomly when the context was initialized from the trap frame on exceptions. And as soon as the VM bits was set, everything went nots.
svn path=/branches/ros-amd64-bringup/; revision=44178
2009-11-15 20:18:34 +00:00
Johannes Anderwald
94307ac7ec - Implement reading user shell folders from registry
See issue #4206 for more details.

svn path=/trunk/; revision=44177
2009-11-15 19:08:27 +00:00
Timo Kreuzer
5eb72addd0 - Get rid of the MmGlobalKernelPageDirectory hack. It's not going to be used on amd64. Instead set up a total of 256 (1MB) shared PDPs in the PML4.
- Partly implement phase 1 of MmArmInitSystem
- Fix MiPteToAddress
- Fix MmSystemRangeStart

svn path=/branches/ros-amd64-bringup/; revision=44174
2009-11-15 16:10:52 +00:00
Cameron Gutman
f0680faa1a - Fix build (try 3)
- I have no idea how this built for me

svn path=/trunk/; revision=44166
2009-11-14 19:03:37 +00:00
Cameron Gutman
2781609339 - Fix build (try 2)
svn path=/trunk/; revision=44165
2009-11-14 18:52:33 +00:00
Cameron Gutman
4d5c7b23b2 - Fix build
svn path=/trunk/; revision=44164
2009-11-14 18:48:07 +00:00
Cameron Gutman
f3d4211e56 - Use a spin lock to protect OSKit instead of a recursive mutex
- Remove the now unused recursive mutex code
 - Don't clear the SS_ISCONNECTING flag when soconnect returns EINPROGRESS because it causes a crash during soreceive
 - Lock CONNECTION_ENDPOINT and ADDRESS_FILE structs better
 - Remove incorrect IoMarkIrpPending calls
 - Remove useless ASSERT_LOCKED
 - Don't destroy so_connection when we close a connection
 - Remove useless FileFindConnectionByContext
 - Remove SignalledConnectionsList and SignalledConnectionsLock and simply loop through ConnectionEndpointList for signalled connections
 - Add connections to ConnectionEndpointList in TCPAllocateConnectionEndpoint instead of FileOpenConnection so we don't miss listeners
 - Remove connections from ConnectionEndpointList in TCPFreeConnectionEndpoint instead of FileCloseConnection so we don't miss listeners
 - Use ExInterlockedRemoveHeadList to remove entries in the address file's request lists
 - Remove useless members, flags, and variables in titypes.h and tcp.h
 - Fixes bug 4955 and 4434

svn path=/trunk/; revision=44163
2009-11-14 18:38:02 +00:00
Sylvain Petreolle
283fdbd510 GetCurrencyFormatW() formatting bug fix by Viliam Lejcik <lejcik at host dot sk>
svn path=/trunk/; revision=44158
2009-11-14 15:44:27 +00:00
Pierre Schweitzer
960d3e56d4 Forgotten French translation for Fraginator lost on my HD
svn path=/trunk/; revision=44157
2009-11-14 15:44:02 +00:00
Timo Kreuzer
36c73e8aee Don't truncate MI_MAPPING_RANGE_START to ULONG
svn path=/branches/ros-amd64-bringup/; revision=44156
2009-11-14 14:49:50 +00:00
Timo Kreuzer
a181e0135a Pass pointers to MiAddressToPte instead of integer
svn path=/branches/ros-amd64-bringup/; revision=44155
2009-11-14 14:45:30 +00:00
Aleksey Bragin
f0816148d1 - Add VK_ICO_* codes.
svn path=/trunk/; revision=44153
2009-11-14 11:22:29 +00:00
Timo Kreuzer
09feec648d - Remove old debugging code from MiArmInitializePageTable
- Fix mapping in MiArmPreparePfnDatabse
We now reach phase 1 of MmArmInitSystem

svn path=/branches/ros-amd64-bringup/; revision=44148
2009-11-14 04:15:21 +00:00
Timo Kreuzer
aa646f4618 The freelist code is an increadible hack. It #defines structure members to other structure members and misuses them. Try to improve the hack by declaring PHYSICAL_PAGE as a unioun of MMPFN and the stuff that is used in the freelist code. Exchange the positions of RmapListHead with MapCount as the former must be pointer sized. More work is required here.
svn path=/branches/ros-amd64-bringup/; revision=44147
2009-11-14 04:08:54 +00:00
Timo Kreuzer
d25b422abb fix x86 build
svn path=/branches/ros-amd64-bringup/; revision=44146
2009-11-14 02:11:01 +00:00
Timo Kreuzer
dd9ed9ea92 - Share some more inline functions between the kernel and freeldr
- Use __ltr instead of Ke386SetTr
- refactor KiInitializeTss
- Update some Mm conatnts
- Halfplement KeFlushEntireTb
- Clean the mapping of page 0 in KiSystemStartup, as long as we don't clean mappings in freeldr
- Fix a serious bug in KiPageFault, where ebp was used instead of rbp, resulting in recursive page faults as soon as usermode mappings were cleared
- Refactor MmArmInitSystem and related. Pahse 0 initialisation completes here now. we fail later in freelist setup code, which is not 64 bit safe.

svn path=/branches/ros-amd64-bringup/; revision=44144
2009-11-13 23:30:44 +00:00
Timo Kreuzer
bb7f766eff Initialize MmDebugPte from MiDebugMapping variable instead of using MiAddressToPte for a constant initializer. This way the page can be set dynamically. Use MmDebugPte to determine if ready for mapping physical pages.
svn path=/branches/ros-amd64-bringup/; revision=44143
2009-11-13 23:23:53 +00:00
Johannes Anderwald
6db29a3b51 [CMIDRIVER]
- Fix build breakage by Sylvain Petreolle

svn path=/trunk/; revision=44142
2009-11-13 17:47:03 +00:00
Johannes Anderwald
5a56a7c2da [KERNEL32]
- Don't access freed memory in GetVolumeNameForVolumeMountPointW

svn path=/trunk/; revision=44141
2009-11-13 17:31:02 +00:00
Johannes Anderwald
165c423eed Silence for Christoph & buildbot
svn path=/trunk/; revision=44137
2009-11-13 15:08:00 +00:00
Johannes Anderwald
17dd5fb45c - Silence (on request of Christoph)
svn path=/trunk/; revision=44136
2009-11-13 15:04:19 +00:00
Johannes Anderwald
955b60c3ad - Silence
svn path=/trunk/; revision=44135
2009-11-13 15:00:33 +00:00
Timo Kreuzer
e9a4673307 Convert KdpDprintf to conditional KDDBGPRINT macros to stop spamming WinDbg on invalid addresses.
svn path=/branches/ros-amd64-bringup/; revision=44134
2009-11-13 14:29:39 +00:00
Johannes Anderwald
ccc63ddced [PSDK]
- Fix MIXEROPENDESC struct(x64 compability issue)
[MMEBUDDY]
- Fix usage of MIXEROPENDESC
[WDMAUD.DRV]
- Implement a listening thread which waits for volume level / mute control changes

svn path=/trunk/; revision=44133
2009-11-13 14:22:11 +00:00
Johannes Anderwald
052e7f5106 [KS]
- Silent debug traces on request of Christoph
[CMIDRIVER]
- Remove link hacks
[WDMAUD_KERNEL]
- Silent debug traces on request of Christoph
- Reference notification event when the mixer is openend
- Fix a bug in the notification handler (double free due entry not removed from list)


svn path=/trunk/; revision=44132
2009-11-13 14:13:22 +00:00
Aleksey Bragin
8d0de240d5 - Sync rpcrt4 with Wine-1.1.32. ReactOS-specific changes are:
* Use overlapped named pipes access mode, and use GetOverlappedResult for reading/writing too.
 * Add patch for waiting for server calls in RpcMgmtWaitServerListen (not fully correct one, but enough for now).
 * Hacks around ntsecapi.h inclusion (it can't be used properly with winternl.h).
 * Total removal of HTTP transport. Could be enabled when dynamic linking to wininet.dll will be possible.
- Change config.h to include new ASM macros. This is not platform independent.

svn path=/trunk/; revision=44130
2009-11-13 13:26:54 +00:00
Christoph von Wittich
08a2fdadeb sync dde with wine 1.1.32
svn path=/trunk/; revision=44129
2009-11-13 12:40:20 +00:00
Christoph von Wittich
f54043e5ae sync dwmapi with wine 1.1.32
svn path=/trunk/; revision=44128
2009-11-13 11:47:11 +00:00
Johannes Anderwald
e113d59df6 - Implement updating volume position / mute state after receiving a notification
svn path=/trunk/; revision=44127
2009-11-13 11:42:23 +00:00
Samuel Serapion
db4d913635 - Enable telnet, and tftpd.
- re-add some missing ntdll exports.
- export ctime64, its available.

svn path=/branches/ros-amd64-bringup/; revision=44125
2009-11-13 09:30:39 +00:00
Samuel Serapion
321196255a - re-add explorer (old one) to build, it builds.
- use amd64 specific manifest file.
- still not a valid exe according to windows 7

svn path=/branches/ros-amd64-bringup/; revision=44124
2009-11-13 09:24:35 +00:00
Timo Kreuzer
2c2f893be1 fix a typo
svn path=/branches/ros-amd64-bringup/; revision=44123
2009-11-13 02:16:15 +00:00
Johannes Anderwald
61887111ab [WDMAUD_KERNEL]
- Implement kernel side of notifying clients of volume / mute control changes

svn path=/trunk/; revision=44122
2009-11-13 01:48:28 +00:00
Stefan Ginsberg
a8286c3821 - Documentative amendment to 44115: It incorrectly stated that the commit added "init(i)al support for PCI and ISA interrupts". What was added is (disabled) initial support for ISA, EISA and PCI configurations that require level-triggered interrupts (we only support edge-triggered interrupts right now) and PCI IRQ routing, along with proper handling of IRQ13.
svn path=/trunk/; revision=44121
2009-11-12 21:46:52 +00:00
Stefan Ginsberg
69b02e1155 - Win32k doesn't know what "opaque" means. Store the module base address in the structure too for the code that relied on the handle being the base address.
svn path=/trunk/; revision=44120
2009-11-12 20:41:12 +00:00
Stefan Ginsberg
141ef5cfc3 - Add missing synchronization for access to PsLoadedModuleList. Inserting and removing entries to the list was protected by a spinlock, but some places didn't acquire the lock before looping the list when searching for module information. For efficiency, use an executive resource for other access than inserting/removing entries so we can have shared locking in some common cases (spinlock stays so access can be synchronized with DPCs).
- Make SystemUnloadGdiDriverInformation take the opaque SectionPointer (which is really the Loader Entry) from the SYSTEM_GDI_DRIVER_INFORMATION structure returned in SystemLoadGdiDriverInformation so it doesn't need to loop the loaded module list to find it.
- Fix EngLoad/UnloadImage to do this. Also make EngLoadImage return the pointer to the internal structure as the "handle" so EngUnloadImage doesn't need to loop the driver list to find it. The code is still extremely broken and needs a rewrite.
- Remove some externs from related variables in the code -- we use something called "headers".

svn path=/trunk/; revision=44119
2009-11-12 19:41:39 +00:00
Aleksey Bragin
14442c0a34 [advapi32]
Alexander Yastrebov <menone7@gmail.com>
- Return proper lengths of required buffer sizes in characters (including the termination NULL character) in LookupAccountSid. Fixes 4 "advapi32_winetest security" failures.
See issue #4904 for more details.

svn path=/trunk/; revision=44117
2009-11-12 13:55:51 +00:00
Aleksey Bragin
ba319b373f [Unused ReactOS setup]
- Move duplicate code from LoadSetupData to a separate function
- Fix a bug on line 1054 of the original file: SetupData.LangCount should be SetupData.KbLayoutCount (copy-paste mistake). This would have probably gone unnoticed if SetupData.LangCount > SetupData.KbLayoutCount due to other end of section checking.
- Based on a patch from bug 4933.

svn path=/trunk/; revision=44116
2009-11-12 12:35:01 +00:00
Stefan Ginsberg
c02b96254e - Add inital support for PCI and ISA interrupts.
- Use different register allocation to be more efficient on certain systems.
- Add tables and initial code for Lazy IRQL support.

svn path=/trunk/; revision=44115
2009-11-11 22:29:16 +00:00
Johannes Anderwald
8e510a0ea2 - Fix building of cmidriver
- Required a few hacks, which were documented as //HACK

svn path=/trunk/; revision=44113
2009-11-11 20:43:58 +00:00
Aleksey Bragin
effa38586c [rosapps]
- Avoid old crt names usage, by Caemyr/kjk_hyperion.

svn path=/trunk/; revision=44107
2009-11-11 18:19:42 +00:00
Sylvain Petreolle
94d60cdacc forgot that one
svn path=/trunk/; revision=44105
2009-11-11 13:02:13 +00:00
Sylvain Petreolle
aafb387b32 [12:14] <Usurp> kjk_hyperion: i dont understand where msvcrt is linked twice in crt_regtest ?
[12:14] <kjk_hyperion> Usurp: that's right, you don't understand


svn path=/trunk/; revision=44104
2009-11-11 12:51:03 +00:00
KJK::Hyperion
8667b162b1 modified regtests/crt/crt_regtest.rbuild
Don't link msvcrt twice, bad things happen

modified   tests/dirdlg/dirdlg.rbuild
modified   winetests/msvcrt/msvcrt.rbuild
   More oldnames hacks

modified   tests/tcpsvr/tcpsvr.c
   Don't use close on sockets, use closesocket

svn path=/trunk/; revision=44103
2009-11-11 11:12:55 +00:00
KJK::Hyperion
42f5d69bb4 More _CRTIMP love for non-ANSI symbols
svn path=/trunk/; revision=44102
2009-11-11 11:11:58 +00:00
Johannes Anderwald
844a591298 - Fix problem with ASSERT & ASSERTMSG when compiled with g++
svn path=/trunk/; revision=44101
2009-11-11 10:53:52 +00:00
Johannes Anderwald
7d088d0725 [KS]
- Implement KsEnableEvent, KsEnableEventWithAllocator, KsDiscardEvent
[PORTCLS]
- Fix signalling the event
- DirectSound clients can now use IDirectSoundNotify interface to be notified of a position change

svn path=/trunk/; revision=44100
2009-11-11 09:04:42 +00:00
Christoph von Wittich
008929cd36 return TRUE in ReadFile if there is nothing to read
svn path=/trunk/; revision=44099
2009-11-11 08:29:08 +00:00
Christoph von Wittich
4574bb5be8 sync shell32 winetest to wine 1.1.32
svn path=/trunk/; revision=44098
2009-11-11 07:36:49 +00:00
Timo Kreuzer
2e92cb2a4c Use the kernel mode address for the gdt/idt
svn path=/branches/ros-amd64-bringup/; revision=44095
2009-11-11 04:29:05 +00:00
KJK::Hyperion
7f4bf6c490 modified Makefile
Give poor pefixup its own echo line

modified   ReactOS-amd64.rbuild
modified   ReactOS-arm.rbuild
modified   ReactOS-i386.rbuild
   Set global linker flags globally
   Goodbye NTOSKRNL_SHARED

modified   tools/rbuild/backend/codeblocks/codeblocks.cpp
modified   tools/rbuild/backend/msvc/vcprojmaker.cpp
   Build fixes. I really want to delete these dead backends

modified   tools/rbuild/backend/mingw/linkers/ld.mak
   Makefile rule for the linker. Also generates the .lib and .exp for DLLs, and obsoletes a whole lot of shitty rbuild code

modified   tools/rbuild/backend/mingw/mingw.cpp
modified   tools/rbuild/backend/mingw/mingw.h
   Specify module type-specific linker flags... in the specification of flags for module types, instead of wherever
   Fix generation of project-global linker and NASM flags
   Give better names to the variables that contain names of BE-provided libraries
   Don't put quotes around the names of BE-provided libraries, GNU make doesn't support quoting in any way, shape or form and quotes around filenames actually break shit on Windows (see <http://reactos-blog.blogspot.com/2009/11/gnu-make-fails-on-windows-with-multiple.html>). Just install the BE in a path without spaces in it
   Typo: LFLAGS is the flags for lex, flags for linker come from LDFLAGS

modified   tools/rbuild/backend/mingw/modulehandler.cpp
modified   tools/rbuild/backend/mingw/modulehandler.h
modified   tools/rbuild/module.cpp
modified   tools/rbuild/rbuild.h
   Moved generation of linker and import library generation rules out of rbuild and into sub-makefiles. A lot of code deleted, nothing of value was lost
   More LFLAGS -> LDFLAGS
   Goodbye mangledsymbols and underscoresymbols attributes, they don't do shit other than complicating my life
   If we have to add an underscore in front of the entry point name for some architectures, how about we do it in a single place?

modified   tools/rbuild/backend/mingw/rules.mak
   Minor cosmetic change

svn path=/trunk/; revision=44091
2009-11-11 03:41:14 +00:00
KJK::Hyperion
18d9f647bc modified lib/3rdparty/mingw/mingw.rbuild
oldnames is not an import library and dlltool --add-underscore is not an appropriate way to build it. Delete it for now

modified   base/applications/network/ftp/ftp.rbuild
modified   base/applications/winhlp32/winhlp32.rbuild
modified   base/services/dhcp/dhcp.rbuild
modified   dll/win32/crypt32/crypt32.rbuild
modified   dll/win32/mshtml/mshtml.rbuild
modified   dll/win32/setupapi/setupapi.rbuild
modified   dll/win32/wininet/wininet.rbuild
modified   lib/3rdparty/libxml2/libxml2.rbuild
   Workarounds for the removal of oldnames

modified   dll/directx/d3d8/d3d8.rbuild
   Use a file that actually exists

modified   dll/win32/crtdll/crtdll.rbuild
modified   dll/win32/msvcrt/msvcrt.rbuild
   "mangledsymbols" never did anything: remove it

modified   dll/win32/msvcrt/msvcrt.def
modified   lib/sdk/crt/crt.rbuild
   We don't actually implement j0/j1/jn/y0/y1/yn: _j0 calls __imp__j0, which is an alias for __imp___j0, which redirects back to _j0 in a perfect loop. Remove them for the time being

modified   lib/3rdparty/bzip2/bzip2.rbuild
   This was actually called unbzip2.dll. Who knew

svn path=/trunk/; revision=44090
2009-11-11 03:21:16 +00:00
KJK::Hyperion
49ce5d1d63 Non-ANSI names need _CRTIMP too
svn path=/trunk/; revision=44089
2009-11-11 03:09:42 +00:00
Timo Kreuzer
d3d5631e62 - Correct implementations of MiAddressToP*e() would help a bit... implement them as inline functions.
svn path=/branches/ros-amd64-bringup/; revision=44088
2009-11-11 01:53:48 +00:00
Stefan Ginsberg
0c19771290 - Missed in previous commit: Fix VideoPortEnable/DisableInterrupt -- they should only fail if the driver didn't provide an ISR (documented).
svn path=/trunk/; revision=44086
2009-11-10 23:01:42 +00:00
Stefan Ginsberg
662ba31e98 - Fix HalDisableSystemInterrupt -- it doesn't return anything.
- Fix VideoPortEnable/DisableInterrupt -- they should only fail if the driver didn't provide an ISR (documented).

svn path=/trunk/; revision=44085
2009-11-10 23:00:51 +00:00
Dmitry Gorbachev
a6c89f30fa Fix Japanese bug #4776.
svn path=/trunk/; revision=44084
2009-11-10 22:52:41 +00:00
Christoph von Wittich
a72dd3434c sync shlwapi to wine 1.1.32
svn path=/trunk/; revision=44083
2009-11-10 21:36:55 +00:00
Christoph von Wittich
2afeb94e20 sync SHGetFileInfo and CommandLineToArgvW to wine 1.1.32
svn path=/trunk/; revision=44082
2009-11-10 21:31:37 +00:00
Christoph von Wittich
e8c61b4a52 partial shell32 sync to wine 1.1.32
svn path=/trunk/; revision=44081
2009-11-10 21:29:56 +00:00
Christoph von Wittich
8f8f2a36c0 fix ILCreateControlPanel and ILCreatePrinters
svn path=/trunk/; revision=44080
2009-11-10 20:35:07 +00:00
Christoph von Wittich
1526c2358d sync shell32/shelllink to wine 1.1.32
svn path=/trunk/; revision=44079
2009-11-10 20:09:00 +00:00
Stefan Ginsberg
31baf39ed3 - Correct author of freeze.c (code was copied from cpu.c).
svn path=/trunk/; revision=44078
2009-11-10 16:42:31 +00:00
Stefan Ginsberg
ee750905e9 - Fix missing initialization of KdComPortInUse, containing the base address of the port used by kdcom. The serial driver checks this variable to determine if it can use the port or if it should stay (the fuck) off. KdCom no longer hangs after serial driver initialization in second stage.
svn path=/trunk/; revision=44077
2009-11-10 14:23:44 +00:00
Johannes Anderwald
9a2bba4740 [KS]
- Implement KsGenerateEvent 

svn path=/trunk/; revision=44076
2009-11-10 10:50:57 +00:00
Johannes Anderwald
c3eaa577c4 - Remove ASSERT && add param checks
svn path=/trunk/; revision=44075
2009-11-10 10:04:33 +00:00
Johannes Anderwald
dcb1336203 [PORTCLS]
- Implement handling of enabling / disabling events
- Implement firing of events when certain position is reached
- Code not yet used as ks needs more work

svn path=/trunk/; revision=44074
2009-11-10 10:01:25 +00:00
Timo Kreuzer
a501510763 [MM]
Implement MmIsAddressValid for amd64.

svn path=/branches/ros-amd64-bringup/; revision=44073
2009-11-10 04:19:43 +00:00
Timo Kreuzer
81a17fc8f4 add missing file
svn path=/branches/ros-amd64-bringup/; revision=44072
2009-11-10 03:36:57 +00:00
Timo Kreuzer
14914c99db fix build of ntoskrnl
svn path=/branches/ros-amd64-bringup/; revision=44071
2009-11-10 03:30:58 +00:00
Timo Kreuzer
843b9ee1eb Merge trunk HEAD (r44067)
svn path=/branches/ros-amd64-bringup/; revision=44069
2009-11-10 02:40:48 +00:00
Timo Kreuzer
d129a33bad fix a preprocessor bug
svn path=/trunk/; revision=44068
2009-11-10 01:47:09 +00:00
Timo Kreuzer
82c97ac922 [MM]
- Fix MiAddressToP*e macros
- move miarm constants
- set MmPfnDatabase address
- fix PageCount for pfn database mapping (round up)

svn path=/branches/ros-amd64-bringup/; revision=44067
2009-11-10 00:54:46 +00:00
Timo Kreuzer
c203c7f36c don't anable interrupts as long as that's all broken, this way we make it a bit further...
svn path=/branches/ros-amd64-bringup/; revision=44066
2009-11-10 00:50:27 +00:00
Timo Kreuzer
c9f7c2317c Use LoaderMemoryData instead of LoaderSpecialMemory for page tables
svn path=/branches/ros-amd64-bringup/; revision=44065
2009-11-10 00:48:09 +00:00
Timo Kreuzer
67918b7bd5 [KE]
- implement KiPageFault

svn path=/branches/ros-amd64-bringup/; revision=44064
2009-11-09 23:37:54 +00:00
Stefan Ginsberg
b4835e6bad - Add KCALLOUT_FRAME to define the kernel callback stack layout during user mode callbacks. Define the NextCallback and FramePointer members of the debugger data block more portably with this.
- AMD64's is a copy of x86's to match asm.h's the assembly offsets. ARM's is a stub containing two necessary members to have some offsets for the debugger data block.
- Add ARM stub for KiCallUserMode as this is referenced from the debugger data block.

svn path=/trunk/; revision=44063
2009-11-09 23:19:03 +00:00
Stefan Ginsberg
ccd3b00fd2 - Fix unsigned/signed compare, spotted by Christoph
svn path=/trunk/; revision=44062
2009-11-09 23:07:04 +00:00
Stefan Ginsberg
a9f0dd5a8d - Implement the generic bus handler support and initialization.
- Add missing hack flags for ACPI hacks.
- Add the hack flags to the registry.

svn path=/trunk/; revision=44061
2009-11-09 22:59:49 +00:00
KJK::Hyperion
652e881f54 ... on the other hand, O_BINARY is a Win32 thing
svn path=/trunk/; revision=44060
2009-11-09 22:56:06 +00:00
KJK::Hyperion
f93a056987 modified base/shell/explorer/notifyhook/notifyhook.def
modified   dll/3rdparty/mesa32/src/drivers/windows/icd/mesa.def
modified   dll/nls/idndl/idndl.def
modified   dll/nls/normaliz/normaliz.def
modified   drivers/video/font/ftfd/freetype.def
   Soon, the rbuild "dllname" attribute will have no effect for .def files (only .spec/.pspec): prepare the sources for it by specifying the DLL name in the .def files themselves with the LIBRARY directory

svn path=/trunk/; revision=44059
2009-11-09 22:49:18 +00:00
KJK::Hyperion
34cce6f897 modified tools/pefixup.c
MinGW provides a good enough POSIX-like environment to do away with a couple platform checks/hacks
   Print error messages on stderr instead of stdout
   Don't print anything when pefixup does nothing - "no news is good news"

svn path=/trunk/; revision=44058
2009-11-09 22:42:17 +00:00
Stefan Ginsberg
6fcf0fd7b8 - Set and check for the correct PTE write bits on x86 SMP. The MP kernel is now functional again.
svn path=/trunk/; revision=44057
2009-11-09 22:05:36 +00:00
Timo Kreuzer
9edbc02f78 Fix my broken copy pasta, spotted by talley
svn path=/branches/ros-amd64-bringup/; revision=44056
2009-11-09 21:49:56 +00:00
Timo Kreuzer
906cec399e [KE]
- Fix KeContextToTrapFrame and KeTrapFrameToContext to use the ExceptionFrame and set CS/SS for CONTEXT_CONTROL flag
- Implement _InternalDispatchException, that sets up the ExceptionRecord and ExceptionFrame and calls KiDispatchException
This fixes wrong register value display in WinDbg

svn path=/branches/ros-amd64-bringup/; revision=44055
2009-11-09 21:44:29 +00:00
Stefan Ginsberg
1a3c56692d - Fix build with neither KDBG or _WINKD_ defined -- ReactOS KD wrapper uses the safe memory routines too, so only skip kdmemsup.c if compiling for _WINKD_.
svn path=/trunk/; revision=44054
2009-11-09 21:38:26 +00:00
Timo Kreuzer
b291738862 [NDK]
- Add KEXCEPTION_FRAME

svn path=/branches/ros-amd64-bringup/; revision=44053
2009-11-09 21:03:57 +00:00
Timo Kreuzer
ca606032fe [NDK]
- Add KEXCEPTION_FRAME offsets

svn path=/branches/ros-amd64-bringup/; revision=44052
2009-11-09 19:49:47 +00:00
Johannes Anderwald
43a6379cc0 - Fix bug introduced 18942 revisions ago
svn path=/trunk/; revision=44050
2009-11-09 17:43:12 +00:00
Dmitry Gorbachev
db62b33f92 Simple optimization in RApps. Patch by Love Nystrom. Bug #4952.
svn path=/trunk/; revision=44049
2009-11-09 15:34:18 +00:00
Timo Kreuzer
8413bc04b7 fix build of ntoskrnl
svn path=/branches/ros-amd64-bringup/; revision=44047
2009-11-09 13:42:36 +00:00
Samuel Serapion
4e273afd0f Fix ws2_32 64bit build (2 of 2)
svn path=/branches/ros-amd64-bringup/; revision=44045
2009-11-09 08:57:37 +00:00
Samuel Serapion
c2da24df73 Fix ws2_32 64bit build (1 of 2)
svn path=/branches/ros-amd64-bringup/; revision=44044
2009-11-09 08:56:59 +00:00
Samuel Serapion
bc8ddc9638 Sync with trunk and additional 64bit build hacks^H^H^H^H^H fixes.
svn path=/branches/ros-amd64-bringup/; revision=44041
2009-11-09 08:31:11 +00:00
Samuel Serapion
23f1416f6e Fix 32bit build.
svn path=/branches/ros-amd64-bringup/; revision=44040
2009-11-09 08:28:59 +00:00
Samuel Serapion
1f946323bb Fix mmTaskCreate and mciGetDriverData prototypes per MSDN
svn path=/branches/ros-amd64-bringup/; revision=44039
2009-11-09 08:27:48 +00:00
Samuel Serapion
c465970ad0 Fix Build.
svn path=/branches/ros-amd64-bringup/; revision=44037
2009-11-09 07:17:03 +00:00
Samuel Serapion
5ad4bf2911 Seems that windows cares about manifests and a mismatched processor architecture is not good. Fix amd64 paint in windows.
svn path=/branches/ros-amd64-bringup/; revision=44036
2009-11-09 07:13:48 +00:00
Timo Kreuzer
2e7b3fde50 [MM]
- Halfplement MmArmInitSystem, it's broken atm
- Update some variable drfinitions from ULONG to ULONG_PTR
- Add some amd64 specific constants

svn path=/branches/ros-amd64-bringup/; revision=44035
2009-11-09 06:46:31 +00:00
Timo Kreuzer
256a3cb5cc - Move the hack for MmUpdatePageDir before KeInitializeThread where it belongs.
svn path=/branches/ros-amd64-bringup/; revision=44034
2009-11-09 06:29:46 +00:00
Stefan Ginsberg
afd1ab1b6d - HAL uses HARDWARE_PTE, not MMPTE_HARDWARE, so remove broken SMP fix
svn path=/trunk/; revision=44033
2009-11-08 22:17:05 +00:00
Stefan Ginsberg
aaad231bf1 - Fix work around for the cmpxchg8b lock errata work around -- don't set write protection if the kernel hasn't set it yet. Move the code out to HalpBiosDisplayReset so we can keep track of this. Also set the correct bit on SMP systems.
svn path=/trunk/; revision=44032
2009-11-08 21:42:28 +00:00
Stefan Ginsberg
a3012cacae - Add freeze.c to the build too
svn path=/trunk/; revision=44031
2009-11-08 21:22:24 +00:00
Stefan Ginsberg
4e140f4d79 - Move processor freeze support out from x86 cpu.c to new generic freeze.c as these routines are quite generic.
svn path=/trunk/; revision=44030
2009-11-08 21:10:23 +00:00
Stefan Ginsberg
9475cf4cbc - Make WinLdr's loading screen display the boot method (NT) instead of operating system name (Windows).
svn path=/trunk/; revision=44027
2009-11-08 11:52:23 +00:00
Stefan Ginsberg
335f8ac467 - Fix _WINKD_ build breakage from 44023 -- missed to commit the .rbuild change for the renamed kdsup.c files
svn path=/trunk/; revision=44026
2009-11-08 11:41:35 +00:00
Timo Kreuzer
a97697982b [MM]
- implement MmInitGlobalKernelPageDirectory, MmInitializeHandBuiltProcess
- fix MmUpdatePageDir

svn path=/branches/ros-amd64-bringup/; revision=44025
2009-11-08 03:49:08 +00:00
Timo Kreuzer
a1908d10b4 [MM]
Implement amd64 versions for MiIsHyperspaceAddress, MiFlushTlb, MiGetPteForProcess, MiGetPteValueForProcess, MmGetPfnForProcess, MmGetPhysicalAddress, MmIsPagePresent, MmIsPageSwapEntry, MmIsDirtyPage, MmGetPageProtect, MmSetPageProtect, MmSetCleanPage, MmSetDirtyPage, MmDeleteVirtualMapping

svn path=/branches/ros-amd64-bringup/; revision=44024
2009-11-08 02:39:47 +00:00
Stefan Ginsberg
ef21516cc4 - Disable the MiCacheImageSymbols call in MmLoadSystemImage for KD too as this hack is required for rossym rather than KDBG. Fixes detection of non-boot driver images by WinDbg.
- Add another hack to freeldr.c to make sure that HAL is the second entry in the Load Order list -- detect if it isn't and insert it as the second entry manually if it isn't.
- KdbInitialize can now assume that the 2nd entry in the Load Order list is HAL, just like ExpLoadBootSymbols and KD does, so get the Loader Entry directly instead of searching for it.
- Move KiBootTss and KiBootGdt to freeldr.c as this is where they belong -- they are not required for NTLDR/WINLDR boot style and are only used directly in freeldr.c.
- Get rid of the AcpiTableDetected variable from freeldr.c. Instead, set the AcpiTable entry to something and make PoInitSystem check for that instead to preserve the old behavior.
- Implement KdpGetFirstParameter and KdpGetSecondParameter for ARM too -- just retrieve R3/R4 here. Also rename those macros to clarify what parameters we are retrieving.
- Add MmIsSessionAddress stub and use it from KD handle session space properly in the Memory Query API, and ASSERT that we are not trying to do a copy to/from session space in MmDbgCopyMemory as we don't handle it properly. Put this in mmdbg.c for now as we don't implement session space, and it is only called from KD right now.
- Rename the 3 kdsup.c files to kdx86.c, kdx64.c and kdarm.c to differ them from each other.
- Implement KdpAllowDisable -- just check if any processor breakpoints are set on any processor in the system and disallow the disable if so. The routine is now architecture dependant, so move it to the appropriate files.
- Get rid of the MmFreeLdr* variables too. These have been deprecated for some time now.
- The ModuleObject and ImageBaseAddress parameters of MmLoadSystemImage are not optional so don't treat them as such, and don't zero initialize them as callers shouldn't rely on this.
- Set LDRP_ENTRY_NATIVE instead of LDRP_COMPAT_DATABASE_PROCESSED to mark the image as a native image. Also fix the value of LDRP_ENTRY_NATIVE.
- Fix definition of LDR_DATA_TABLE_ENTRY -- the Checksum member should be in the union too.
- Remove some unnecessary externs for stuff we now define globally in the kernel headers.
- Rename some variables in KD to better match the logic.
- Move some x86 only stuff from global ke.h and ke_x.h to the x86 dependent ke.h. Remove DR_ACTIVE_MASK as it has been deprecated/unused for a while now.

svn path=/trunk/; revision=44023
2009-11-08 01:13:49 +00:00
Stefan Ginsberg
65ebf6adac - Add HAL PCI tables required for future work.
svn path=/trunk/; revision=44022
2009-11-08 00:22:29 +00:00
Cameron Gutman
024d413ccb - Stop using the TCPLock to protect all entries into the IP lib
- Instead use TCPLock only to protect entries into oskittcp

svn path=/trunk/; revision=44021
2009-11-07 20:41:57 +00:00
Aleksey Bragin
4983e19cca - Add defines needed by explorer-new. Fixes build.
svn path=/trunk/; revision=44019
2009-11-07 20:18:04 +00:00
Timo Kreuzer
aa636e0ec3 cleanup amd64 specific Mm stubs
svn path=/branches/ros-amd64-bringup/; revision=44018
2009-11-07 20:06:33 +00:00
Aleksey Bragin
1baf1655f4 - Remove accidentally committed Wineisms. Build is fixed.
svn path=/trunk/; revision=44015
2009-11-07 19:53:41 +00:00
Aleksey Bragin
9fd4efa3e3 [comctl32]
- Fix a critical bug in TOOLTIPS_NotifyFormat. Its first parameter changed from HWND to infoPtr pointer, however the function was not updated accordingly.

svn path=/trunk/; revision=44014
2009-11-07 19:42:57 +00:00
Aleksey Bragin
f7b4286b58 - Update commctrl.h to Wine-1.1.31.
svn path=/trunk/; revision=44013
2009-11-07 19:34:59 +00:00
KJK::Hyperion
53c5d2f826 Fix keyboard navigation of menus (up/down keys)
Patch by IJM <mailnew2ster AT mail.ru>

svn path=/trunk/; revision=44012
2009-11-07 19:21:13 +00:00
Cameron Gutman
290a30a5cb - Remove TCPSleep and TCPWakeup (we make all oskittcp sockets non-blocking)
- Crash ROS better in oskittcp_die

svn path=/trunk/; revision=44010
2009-11-07 18:12:58 +00:00
Timo Kreuzer
543b305ef4 Fix KiDoubleFaultAbort
svn path=/branches/ros-amd64-bringup/; revision=44009
2009-11-07 18:11:35 +00:00
Timo Kreuzer
4d631cc0ab - Remove useless check in KeInvalidateAllCaches
- implement KiDoubleFaultAbort

svn path=/branches/ros-amd64-bringup/; revision=44008
2009-11-07 17:43:55 +00:00
Timo Kreuzer
624fb936cf revert r43841
svn path=/branches/ros-amd64-bringup/; revision=44007
2009-11-07 17:36:39 +00:00
KJK::Hyperion
fe8ac71a7b Unbreak build
svn path=/trunk/; revision=44006
2009-11-07 17:24:06 +00:00
KJK::Hyperion
a44d06892b globally-defined CFLAGS, CXXFLAGS, etc. will now work, and override C compiler flags, C++ compiler flags, etc. for all modules. Our makefile build system now a little closer to a real makefile build system
svn path=/trunk/; revision=44003
2009-11-07 16:56:52 +00:00
Samuel Serapion
de18093426 Fix spider build.
svn path=/branches/ros-amd64-bringup/; revision=44002
2009-11-07 16:39:44 +00:00
Timo Kreuzer
666dea45e0 [RTL]
- Implement RtlRaiseException

svn path=/branches/ros-amd64-bringup/; revision=44001
2009-11-07 15:26:12 +00:00
KJK::Hyperion
d4fe05f452 Don't uppercase module name in _TARGET macros. This commit will amazingly not trigger a full rebuild
svn path=/trunk/; revision=44000
2009-11-07 15:20:45 +00:00
Johannes Anderwald
0abe48a157 [DSOUND]
- Add more checks IDirectSoundCapture::CreateCaptureBuffer
- Implement IDirectSoundNotify interface
- Needs work from ks / portcls to work on formats supported natively by the driver

svn path=/trunk/; revision=43997
2009-11-07 13:49:01 +00:00
Johannes Anderwald
c20bd4216f - Add a few constants and types required event handling
svn path=/trunk/; revision=43996
2009-11-07 12:57:07 +00:00
Sylvain Petreolle
fe7390f136 Report spoolsv service status at startup.
this fixes 1 advapi32:service test.

svn path=/trunk/; revision=43995
2009-11-07 11:43:06 +00:00
Johannes Anderwald
4bd3460f8a [DSOUND_NEW]
- Implement stereo to mono channel conversion
- Create a thread which performs the mixing
- Fixes messed up voice recording in Skype 3.6

svn path=/trunk/; revision=43994
2009-11-07 03:43:56 +00:00
Timo Kreuzer
033911d0ff [RTL]
Simplify RtlLookupFunctionTable

svn path=/branches/ros-amd64-bringup/; revision=43993
2009-11-07 03:33:00 +00:00
Samuel Serapion
32acc78401 Fix user32 build mostly tested in trunk. Some local changes still not committed.
svn path=/branches/ros-amd64-bringup/; revision=43992
2009-11-07 00:10:56 +00:00
Stefan Ginsberg
c74f994e2f - Refactor stubbed HAL resource report slightly.
- Move the resource routines to their own file instead of sysinfo.c.
- Add missing members to PCIPBUSDATA.
- Kill old, unused generic.rbuild.

svn path=/trunk/; revision=43991
2009-11-06 23:55:08 +00:00
Arch Blackmann
0324a3e3bb Whiners...
svn path=/trunk/; revision=43990
2009-11-06 23:35:28 +00:00
Arch Blackmann
d23204652e Implement printout the the state tables. It seems to work fine, but the tool doesn't yet generate the modified keys (shift+, ctrl+, etc) for each virtual key. This is the last thing that remains.
svn path=/trunk/; revision=43989
2009-11-06 22:42:26 +00:00
Johannes Anderwald
ee8a3fcc0b - Fix check
svn path=/trunk/; revision=43988
2009-11-06 17:00:20 +00:00
Arch Blackmann
4a61562491 Implement support for writing the virtual key to WCHAR translation for different shift states.
Only 2 shift states are supported for now, I have to add a lot more output generation code to get at least 3 states up and running.


svn path=/trunk/; revision=43985
2009-11-06 00:38:04 +00:00
Arch Blackmann
374c1a0142 Add table of shift state combinations, and add table of shift state types.
svn path=/trunk/; revision=43984
2009-11-06 00:37:06 +00:00
Arch Blackmann
bb5b97e281 Print out more state-related tables and information (still missing one large chunk of data). Print out the key and extended key tables for the layout. Fix up some more code.
The C source is almost fully complete for the English US test layout KLC!


svn path=/trunk/; revision=43983
2009-11-05 23:58:38 +00:00
Michael Martin
3b6b3c96d5 [cdfs]
- CdfsVerifyVolume: Disable the delivery of normal Kernel APC's before acquiring resource and re-enable APC's after releasing resource. Fixes ASSERT from ntoskrnl/ex/resource.c. Noticed by Stefan.

svn path=/trunk/; revision=43982
2009-11-05 23:43:57 +00:00
Timo Kreuzer
37df53da63 Update forwarder entries in kernel32.pspec
svn path=/branches/ros-amd64-bringup/; revision=43981
2009-11-05 22:04:28 +00:00
Timo Kreuzer
4896a4fbb2 use RtlPcToFileHeader instead of RtlpLookupModuleBase
svn path=/branches/ros-amd64-bringup/; revision=43980
2009-11-05 20:57:53 +00:00
Timo Kreuzer
d5e954a17d Update kernel32.pspec based on Win7 32 and 64 bit, most stuff commented out so far.
svn path=/branches/ros-amd64-bringup/; revision=43979
2009-11-05 20:35:08 +00:00
Arch Blackmann
51050d323b Add more support for shift state output. The tool now updates CharModifiers table based on the shift states present in the layout, building both the modification number and the key name based on the virtual key-> name table.
svn path=/trunk/; revision=43978
2009-11-05 19:55:57 +00:00
Arch Blackmann
44487b2614 Generate modifier table. Generate extended scancode table X. Generate extended scancode table Y.
svn path=/trunk/; revision=43977
2009-11-05 19:25:41 +00:00
Arch Blackmann
75cba8f7ab Add table of modifiers.
svn path=/trunk/; revision=43976
2009-11-05 19:24:47 +00:00
Arch Blackmann
43ea0e72e4 Create layout entries for built-in non-redefined scancodes as well, based on the 110-key table (mostly things like the extended keys/SpeedRacer/MediaButtons, etc).
svn path=/trunk/; revision=43975
2009-11-05 19:24:24 +00:00
Aleksey Bragin
8420a2199f [shell32]
- Remove extra semicolon, spotted by Gabriel.

svn path=/trunk/; revision=43973
2009-11-05 13:27:52 +00:00
Timo Kreuzer
2ba5d7773f [KDCOM] add a few dbgprints
svn path=/branches/ros-amd64-bringup/; revision=43972
2009-11-05 12:18:16 +00:00
Aleksey Bragin
0a9bdf2bf0 [shell32]
Gabriel Ilardi
- Properly stub SHSetUnreadMailCountW and SHGetUnreadMailCountW to unregress Thunderbird and possibly other email clients.
See issue #4940 for more details.

svn path=/trunk/; revision=43971
2009-11-05 10:07:16 +00:00
Arch Blackmann
9ba6ecc44b The tool now generates 75% of a typical keyboard layout C file. Lots of stuff still missing, but most of the annoying work is done now... it just has to start filling in the dynamic data.
A full-fledged file will have ligature data, up to 8 shift states, dead keys, etc, but that's not stuff we'll have to deal with at first for simple layouts.
By tomorrow we should be able to fully process and generate latin-alphabet-based language keyboard layouts.


svn path=/trunk/; revision=43970
2009-11-05 05:20:01 +00:00
Timo Kreuzer
f3575b3a3a undefine i386 in the pspec file
svn path=/branches/ros-amd64-bringup/; revision=43969
2009-11-05 03:25:46 +00:00
Timo Kreuzer
78f7d3afa4 add memcpy symbol, to resolve references created by the compiler
svn path=/branches/ros-amd64-bringup/; revision=43968
2009-11-05 03:24:40 +00:00
Arch Blackmann
ce3c33cc9f Now write out the DEF file (okay that was too easy).
svn path=/trunk/; revision=43967
2009-11-05 02:04:04 +00:00
Arch Blackmann
e430f44387 Kbdtool can now create the resource (RC) file as well!
svn path=/trunk/; revision=43966
2009-11-05 01:57:08 +00:00
Samuel Serapion
d10c7dea84 [USER32]
- Fix several user32 warnings.
- Sync GetWindow*A/W with wine and unify all versions, commenting out a wine hack.
- As a bonus implement GetWindowLongPtrA/W.
- Tested to work in trunk.

svn path=/branches/ros-amd64-bringup/; revision=43965
2009-11-05 01:56:29 +00:00
Timo Kreuzer
1dac06d95f Hey Arch, next time you change 3rdparty code, either make sure, it's merged upstream or provide a diff, please.
Adding back MSVC fixes.

svn path=/branches/ros-amd64-bringup/; revision=43964
2009-11-04 23:15:07 +00:00
Stefan Ginsberg
61c7c70c34 - Convert one more __invlpg to KeInvalidateTlbEntry
svn path=/trunk/; revision=43963
2009-11-04 22:51:00 +00:00
Stefan Ginsberg
76a638d6cf - Oh snap. KDBG is not dead yet.
svn path=/trunk/; revision=43962
2009-11-04 22:49:46 +00:00
Arch Blackmann
6191f04a40 Holy shit Batman! KbdTool can now write out the keyboard layout header file! You should get a Layout01.h if you run it on test.klc (in your current working directory).
svn path=/trunk/; revision=43961
2009-11-04 22:48:55 +00:00
Stefan Ginsberg
1d161cccdd - Implement support for reading and writing physical memory for KD. The implementation uses a reserved mapping page to map the target physical address to. On x86 this page is located at virtual address 0xFFBFF000, and the PTE for this page is the last PTE of the nonpaged pool's PDE. Other architectures may need to reserve the PTE elsewhere.
- The physical memory support relies on several Mm variables and structures to be properly set up. Add a new flag, MiDbgReadyForPhysical, and set it when the debugger support can handle physical memory requests.
- Protect this page with a Memory Area to make the old Mm keep its dirty hands off it.
- Does not support I/O space or cache flags yet.
- Add generic KeInvalidateTlbEntry to invalidate a single TLB entry for a given address instead of flushing the whole TLB. Used by the debugger physical memory support as invalidating the whole TLB for every map and unmap of its debug PTE would incur significant overhead for large copies. Replace direct usage of __invlpg() with this in x86 code too.
- Fix incorrect cache flag check and set in KdpRead/WritePhysicalmemory for write combined requests. The debugger's Uncached flag was checked instead of the Write Combined flag, and the debuggers Write Combine number (0x3) was set instead of Mm's flag (0x20).
- Fix implementation of MmIsAddressValid (at least for x86; other architectures will need more checks). Just check the Address' PDE and PTE valid bits instead of using Memory Areas.
- Add missing ASSERTs to ensure the Memory Areas for paged pool, the PCR page, and the Shared User Data page are created.
- Add missing Memory Area for the 2 pages HAL currently uses for its own mappings on x86 -- previously, those pages could have been allocated by other parts of the OS, which would have resulted in serious corruptions.

svn path=/trunk/; revision=43960
2009-11-04 22:40:18 +00:00
Arch Blackmann
7909bd0733 Refactoring and cleanup. Start fleshing out the output phase. Start handling exit correctly. Fix a bug in DoLAYOUT. Nothing new to see here...
svn path=/trunk/; revision=43959
2009-11-04 22:07:29 +00:00
Stefan Ginsberg
422721748d - Finish the work around for the Pentium cmpxchg8b lock errata: We detected the errata and allocated the 7 first IDT entries on a write protected page, but the final piece of the work around, detecting the write fault ti the Invalid Opcode handler, was missing. Implemented this in the page fault handler to detect and dispatch the write fault to the Invalid Opcode handler.
- Fix the "fix" of un-protecting the 7 IDT entries on P5 in HAL's BIOS call code when setting the custom Invalid Opcode handler. The IDT was unprotected but the write protection wasn't reapplied after the BIOS call, breaking the work around.

Other:
- KdDebuggerEnabled is a BOOLEAN, so don't do a dword compare in KeUpdateSystemTime.
- Use better comment for the hack where we always allow page faults to be handled, even if they the fault occured with interrupts disabled.

svn path=/trunk/; revision=43958
2009-11-04 21:57:32 +00:00
Timo Kreuzer
0252732c7f Fix rbuild file
svn path=/branches/ros-amd64-bringup/; revision=43957
2009-11-04 21:34:46 +00:00
Timo Kreuzer
61675d02e0 Sync mingw lib to version 4.4.1-1a
svn path=/branches/ros-amd64-bringup/; revision=43956
2009-11-04 21:22:53 +00:00
Timo Kreuzer
4f7bc08216 revert r43851
svn path=/branches/ros-amd64-bringup/; revision=43955
2009-11-04 21:08:42 +00:00
Timo Kreuzer
adfbc64284 fix the pspec, too
svn path=/branches/ros-amd64-bringup/; revision=43954
2009-11-04 21:05:47 +00:00
Timo Kreuzer
b6c42c50a3 fix RtlAddFunctionTable
svn path=/branches/ros-amd64-bringup/; revision=43953
2009-11-04 21:05:16 +00:00
Timo Kreuzer
fb8ef9a874 Add some amd64 specific exports to kernel32
svn path=/branches/ros-amd64-bringup/; revision=43952
2009-11-04 20:39:05 +00:00
Timo Kreuzer
3bc05c77d1 Add RtlAddFunctionTable, RtlDeleteFunctionTable, RtlInstallFunctionTableCallback stubs
svn path=/branches/ros-amd64-bringup/; revision=43951
2009-11-04 20:38:19 +00:00
Arch Blackmann
66afccbaeb Add some helpful debug output to LAYOUT parsing, and enable DoLAYOUT code. The tool is able to fully decode/parse the test.klc English US layout file!
svn path=/trunk/; revision=43950
2009-11-04 19:52:36 +00:00
Arch Blackmann
7662e72971 Implement getCharacterInfo so the tool can now handle most LAYOUT entries, but not complicated ligature entries (dead keys are fine though). Also cleaned up the parsing loop of DoLAYOUT to avoid a goto, and finally added detection of SGCAP entries (in which case the tool will fail, since these are complex and not needed for now).
The main parsing loop is pretty much done, now the tool "just" has to merge the states and perform a check for duplicate entries. Then it'll be ready to generate the output files.


svn path=/trunk/; revision=43949
2009-11-04 19:38:21 +00:00
Christoph von Wittich
650e86a2df sync wininet with wine 1.1.32
svn path=/trunk/; revision=43948
2009-11-04 11:16:25 +00:00
Arch Blackmann
b8b4a4efec Started adding support for reading the different character states and the cap data (including detecting SGCAP). Now the tool has to determine the type of each character defined at every stage (dead, valid, invalid, ligature, etc...) and save the character in the appropriate slot. Dead and other keys are currently handled, as are undefined keys.
Major work remains to be done...


svn path=/trunk/; revision=43947
2009-11-04 04:49:00 +00:00
Johannes Anderwald
b8fc27d6a3 - Add sanity checks
- Implement IDirectSoundCaptureBuffer8::Stop
- Implement changing the stream format for secondary buffers
- Silence debug flood


svn path=/trunk/; revision=43946
2009-11-04 02:16:49 +00:00
Johannes Anderwald
c5fab80345 [KS]
- Fix a bug in KsCancelIo which accessed already freed memory
[PORTCLS]
- Cancel all audio stream irps when the it is used in looped stream mode. Fixes re-opening of playback / capture devices in DSound.
- Remove dead code

svn path=/trunk/; revision=43945
2009-11-04 01:54:19 +00:00
Arch Blackmann
420a4f5f4b Start implementing the long task of DoLAYOUT to process the big "meat" of a KLC file: the keyboard layout. Implement the table of recognized virtual keys (and the translation matrix). Add support for hex-entered keys (0x...).
The tool does some minimal error checking for now, and attempts to begin parsing the LAYOUT section, but fails miserably and the code won't execute unless you've enabled verbose mode. I'm just using this commit as a checkpoint for now.
Also fixed SCVK structure to use the last member as a state flag.
Finally, added definitions for LAYOUTENTRY which will keep track of each row's column's values in the LAYOUT.

svn path=/trunk/; revision=43944
2009-11-03 22:57:26 +00:00
Johannes Anderwald
8bd2cfb3ab - Fix checking of flags found by Ged
- Remove unsupported DSBLOCK_FROMWRITECURSOR

svn path=/trunk/; revision=43942
2009-11-03 22:30:36 +00:00
Johannes Anderwald
c1198f3164 - Implement IDirectSoundCaptureBuffer8::Lock, IDirectSoundCaptureBuffer8::Unlock
- Fix pin handle leakage

svn path=/trunk/; revision=43941
2009-11-03 22:11:43 +00:00
Johannes Anderwald
f2a66752bc - Fix one more dsound_winetest dsound8 failure
- Register IDirectSound8, IDirectSoundCapture8 with COM

svn path=/trunk/; revision=43936
2009-11-03 19:20:59 +00:00
Aleksey Bragin
a63e388f53 [csrss]
- Route unhandled messages to DefWndProc, as it's usually done for every window proc.

svn path=/trunk/; revision=43935
2009-11-03 19:18:39 +00:00
Aleksey Bragin
006d77b16b [csrss]
- Paint the desktop only when getting WM_ERASEBKGND message, and do nothing in WM_PAINT. This is the behavior Windows and Wine implement.
- Add WM_CLOSE stub-handler, though it doesn't change much now - all messages unhandled by the switch are going to return "0" since this proc doesn't call DefWndProcHandler.

svn path=/trunk/; revision=43934
2009-11-03 19:03:11 +00:00
Johannes Anderwald
e788e7f084 [DSOUND]
- Partly implement IDirectSound8::GetCaps
- Implement IDirectSound8::Compact
- Verify if wrong guid is passed in IDirectSound8::Initialize
- Allow construction of IDirectSound8 object via CoCreateInstance
- Fix more dsound_winetest failures
- dsound_winetest dsound is now down to 31 / 178 failures

svn path=/trunk/; revision=43933
2009-11-03 18:54:52 +00:00
Johannes Anderwald
489e5eb856 - Partially revert 43747
See issue #4936 for more details.

svn path=/trunk/; revision=43931
2009-11-03 11:47:06 +00:00
Johannes Anderwald
7b50f75936 - Add a few sanity checks
- Check for invalid guids passed to IDirectSoundCapture::Initialize
- Add support for creating IDirectSoundCapture object via CoCreateInstance
- Close pin handle when the capture buffer is released
- Implement IDirectSoundCaptureBuffer::GetCaps, IDirectSoundCaptureBuffer::GetCurrentPosition, IDirectSoundCaptureBuffer::GetFormat, IDirectSoundCaptureBuffer::GetStatus, IDirectSoundCaptureBuffer::Start
- Compute a compatible pin format when the format is not supported natively by the driver
- Fix shadowing of global variable (Usurp)
- Verify that directsound global info has already initialized in IDirectSound8::Initialize
- dsound now fails 49/650 on dsound_winetest test:capture (mixing needs to implemented) The remaining tests fail due to unimplemented functionality in portcls / ks / dsound

svn path=/trunk/; revision=43930
2009-11-03 11:43:33 +00:00
Stefan Ginsberg
56a64b9357 - There is no reason to use the Kf* routines for IRQL and Spinlocks directly in HAL -- they are defined to the Kf* versions on x86 anyway, so use the Ke* equivalents exclusively.
svn path=/trunk/; revision=43929
2009-11-02 22:54:02 +00:00
Stefan Ginsberg
df4086b261 - Document what the 'NoBuses' member in the PCI_REGISTRY_INFO and PCI_REGISTRY_INFO_INTERNAL structures means to avoid confusion.
svn path=/trunk/; revision=43928
2009-11-02 21:46:41 +00:00
Cameron Gutman
99fec75b6f - Rework our oskittcp signalling
- SignalledConnectionsList is now only used for connections that have pending requests
 - Remove another unused member from CONNECTION_ENDPOINT

svn path=/trunk/; revision=43926
2009-11-02 21:28:25 +00:00
Michael Martin
78ce662964 [user32]
- Reapply changes from 40677 as the edit control does not receive the WM_COMMAND message from its context menu when doing clipboard ops. 
- Fixes crashes in applications created with visual basic when using edit controls context menu.
- If we lose this in next sync, ill grovel and beg.

svn path=/trunk/; revision=43925
2009-11-02 21:17:50 +00:00
Stefan Ginsberg
ae81274578 - Fix a FreeLdr PCI detection bug introduced in revision 10742 5 years ago when PCI detection was added. FindPciBios was setting the HardwareMechanism entry in the PCI_REGISTRY_INFO structure (then called CM_PCI_BUS_DATA) to the wrong register returned from the PCI BIOS: CL instead of AL. CL is the number of the last PCI bus in the system (0 if you only have 1 bus, 1 if you have 2 buses). AL contains bit-fields for PCI characteristics, and HAL checks the 2 first bits to determine the type of the BUS. My VMWare test environment has 2 PCI buses, so the number happened to be correct. This doesn't work if there is only 1 PCI bus, such as in QEMU and Vbox, as we then get an invalid PCI type of 0. Fix this and re-enable the PCI detection in HAL to properly detect the PCI type instead of assuming type 1.
svn path=/trunk/; revision=43924
2009-11-02 21:13:45 +00:00
Michael Martin
3afb2efd4a [User32]
- menu.c: Fix a typo.

svn path=/trunk/; revision=43923
2009-11-02 20:38:53 +00:00
Cameron Gutman
97d6fbe737 - Fix some confusion between SignalState and State which resulted in queued IRPs being lost on socket closure
- Call HandleSignalledConnection directly because the connection may not be in the signalled connections list
 - Remove State from CONNECTION_ENDPOINT to prevent this from happening again

svn path=/trunk/; revision=43922
2009-11-02 20:26:29 +00:00
Aleksey Bragin
162a9238f2 [uniata]
- Revert 40896, uniata is back to "amazingly fast" mode.

svn path=/trunk/; revision=43921
2009-11-02 20:18:24 +00:00
Aleksey Bragin
451776ec01 [uniata]
- Don't wait so long for drive reset. Reapplying r26470 by Dmitriy Gorbachev.

svn path=/trunk/; revision=43920
2009-11-02 20:12:19 +00:00
Sylvain Petreolle
9d9af14d23 add missing newlines
svn path=/trunk/; revision=43919
2009-11-02 20:09:00 +00:00
Kamil Hornicek
12c4f5f3e4 - add dsound winetest
svn path=/trunk/; revision=43918
2009-11-02 19:19:39 +00:00
Stefan Ginsberg
7e3ee3137a - Temporarily disable the new HAL PCI detection code since it fails miserably on the build server.
svn path=/trunk/; revision=43917
2009-11-02 19:03:01 +00:00
Stefan Ginsberg
6f5f925851 - Commit something to get build server building -- Revert 20763: "Older binutils don't understand qword ptr", use a newer binutils then.
svn path=/trunk/; revision=43916
2009-11-02 18:40:24 +00:00
Stefan Ginsberg
7249a7574f - Fix leftover from 43912: Add KdRefreshDebuggerNotPresent to DDK.
svn path=/trunk/; revision=43915
2009-11-02 18:16:12 +00:00
Stefan Ginsberg
dede0fa637 - Fix incorrect comment, spotted by Timo.
- Purpouses -> Purposes.

svn path=/trunk/; revision=43914
2009-11-02 18:08:49 +00:00
Stefan Ginsberg
602db5f2d1 - Fix broken HalpQueryPciRegistryInfo: If it wasn't for the fact that it queried a subkey incorrectly ('ConfigurationData' instead of 'Configuration Data') it was setting up the basic structure correctly but forgot to RETURN IT TO THE CALLER.
- Fixes PCI detection detection as HalpInitializePciStubs no longer has to rely on a 'no info = PCI 1' assumption, making PCI 2 detection possible.
- Add support for querying the CurrentControlSet\Control\PnP\PCI\CardList key and retrieving the card list entries (not used yet). Also add the related keys to hivesys.inf so there is something to query.

svn path=/trunk/; revision=43913
2009-11-02 18:05:07 +00:00
Stefan Ginsberg
f84d5a02f4 - Fix support for /CRASHDEBUG and /NODEBUG; we didn't respect those settings properly and would initialize KD at boot even if they were set.
- Re-enable the breakpoint in vDbgPrintExWithPrefixInternal() as this works properly now. Without this breakpoint some break-in requests got lost if the break-in occurred when handling a debug print (happened a lot at boot).
- Implement Command String support for DbgCommandString() -- we now handle every debug service call.
- Implement NtSetDebugFilterState() and NtQueryDebugFilterState() for KD, meaning we now support debug filters properly.
- Implement KdRefreshDebuggerNotPresent(), KdChangeOption() and KdPowerTransition(). Stub KdSystemDebugControl() to return error status instead of hanging the system.
- Stub the rest of the KD API to print a warning and return a failure packet instead of hanging.
- Set and respect KdpContextSent when getting and setting the thread context -- WinDbg doesn't seem to rely on this, but better safe than sorry.
- Support MP when getting and setting the thread context too -- if the context is operation is for another processor than the current, just get it through the KiProcessorBlock array.
- Initialize the MajorVersion in the KD version block more properly -- the high byte is the major identifier (0 for NT). Add the required DBGKD_MAJOR_TYPES enumeration to wdbgexts.h.
- Simplify setting and clearing the InDbgPrint flag in the TEB to minimize the impact on kernel execution; use 2 dedicated routines instead of a generic one.
- KdpSymbol doesn't return anything, so don't return an ignore status from KdpReportLoadSymbolsStateChange.
- Expose the KdpDefaultRetries and Kd_WIN2000_Mask variables to the registry and add them to KDBG too (unused there).
- No reason to implement KdpSysGetVersion per architecture; move it back to the generic code.
- Add some ARM offsets to the debugger data block that (N/A on other architectures).
- Fix the default size of the DbgPrint log buffer for free builds to save some space. It should be 4 KB for a free build and 32 KB for a checked build.
- Move KeDisableInterrupts to cpu.c as it fits here more than in the IRQ support code in irqobj.c.
- Use KeDisableInterrupts in KeFreezeExecution instead of checking the x86 EFLAG directly.

svn path=/trunk/; revision=43912
2009-11-02 17:45:51 +00:00
Timo Kreuzer
1859ef4ec9 [OPENGL32]
fix TessVertexOutData callback, too.

svn path=/trunk/; revision=43911
2009-11-02 16:16:09 +00:00
Kamil Hornicek
adfd84da55 - get rid of some cast frenzy, by Physicus
svn path=/trunk/; revision=43910
2009-11-02 14:00:47 +00:00
Samuel Serapion
2adcfc995d Fix bad cast.
svn path=/branches/ros-amd64-bringup/; revision=43907
2009-11-02 01:34:52 +00:00
Samuel Serapion
e0ad35f1c3 Fix rapps build.
svn path=/branches/ros-amd64-bringup/; revision=43906
2009-11-02 01:30:09 +00:00
Samuel Serapion
9a7cac1ed0 Revert wrong fix with correct one.
svn path=/branches/ros-amd64-bringup/; revision=43905
2009-11-02 01:23:29 +00:00
Daniel Reimer
303db2db11 Bug 4893: Dutch translation for Spider Solitaire by Wouter De Vlieger
Bug 4900: slovak for spider and some updates by Mario Kacmar
Bug 4928: Hungarian translation of 3 apps by Gábor Balogh

Update README.WINE

svn path=/trunk/; revision=43904
2009-11-01 21:31:21 +00:00
Arch Blackmann
5167151ae0 Implement the standard ISO 110-key scancode to virtual key conversion table for decoding the LAYOUT section. God that was tedious...
svn path=/trunk/; revision=43903
2009-11-01 19:04:42 +00:00
Arch Blackmann
190498ae3a Make some printfs DPRINT1s since they are only for debugging, and also mark LIGATURE, MODIFIERS, ATTRIBUTES and DEADKEY as sections that I don't yet intend to support for now (they're not required for most layouts).
svn path=/trunk/; revision=43902
2009-11-01 18:30:57 +00:00
Arch Blackmann
0bce60efe8 Implement DoKEYNAME (again, very similar to the previous two). Fixup KEYNAME structure once more to make the field names portable accross different usages (LanguageCode becomes Code). The tool now supports KEYNAME, KEYNAME_EXT and KEYNAME_DEAD sections in the layout file.
svn path=/trunk/; revision=43901
2009-11-01 18:26:53 +00:00
Arch Blackmann
2fb987f2cc Implement LANGUAGENAMES parsing (very similar to DESCRIPTIONS). Make KEYNAME structure portable accross other parsers, not just DESCRIPTIONS.
svn path=/trunk/; revision=43900
2009-11-01 18:17:30 +00:00
Arch Blackmann
165528760c Add support for DESCRIPTIONS section (tested on test.klc). Add KEYNAME structure. Fixup some of the code in the SHIFTSTATES implementation.
svn path=/trunk/; revision=43899
2009-11-01 17:43:51 +00:00
Arch Blackmann
2f450d2aa0 Implement support for parsing shift states. Seems to work fine on the test.klc.
svn path=/trunk/; revision=43898
2009-11-01 15:46:36 +00:00
Daniel Reimer
87e0a216c9 did put 7-zip in the wrong category, sry
svn path=/trunk/; revision=43897
2009-11-01 12:47:06 +00:00
Hervé Poussineau
7cf2619a06 [freeldr] Fix typos introduced in r43875
svn path=/trunk/; revision=43896
2009-11-01 12:19:37 +00:00
Andrew Hill
8c1263797d [browseui]
- The global class instance _AtlComModule needs to be constructed with placement new also

svn path=/trunk/; revision=43892
2009-11-01 02:26:24 +00:00
Andrew Hill
5a9218f54f [atlnew]
- RosBE doesn't support __ImageBase, so use GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS) instead.
- Implement CAtlBaseModule constructor.
[browseui]
- Since RosBE built DLLs don't run global constructors, use placement new to construct them in DllMain. This is a *HACK* and a better solution should be found.
- Change DllMain be be extern C so it actually gets used.

svn path=/trunk/; revision=43890
2009-10-31 23:40:09 +00:00
Arch Blackmann
3915dba574 Implement DoCOMPANY, DoCOPYRIGHT, DoVERSION and DoLOCALENAME... that was the easy part.
Happy Halloween everybody!

svn path=/trunk/; revision=43889
2009-10-31 22:18:28 +00:00
Arch Blackmann
b793fbd5d7 Implement DoKBD. The tool can now handle the KBD section of a .klc layout.
svn path=/trunk/; revision=43888
2009-10-31 21:54:26 +00:00
Arch Blackmann
eeeb4634bf Implement stubs for all the different keyword stub-parsers.
svn path=/trunk/; revision=43886
2009-10-31 20:24:33 +00:00
Arch Blackmann
a68c7af143 Start implementing the main parser loop. The tool detects the keywords in the test.klc layout... and that's about all it does for now.
svn path=/trunk/; revision=43885
2009-10-31 20:03:43 +00:00
Arch Blackmann
05e5d17012 Add sample US layout keyboard layout file. Generated with MSKLC by loading the US layout in Windows 7.
svn path=/trunk/; revision=43884
2009-10-31 19:51:27 +00:00
Cameron Gutman
e0cc495270 - Don't disconnect the same socket multiple times (once per TDI_SEND IRP cancelled, once per TDI_RECEIVE IRP cancelled, once per TDI_SEND IRP on a closing socket, and once per TDI_RECEIVE IRP on a closing socket)
- Implement support for graceful socket closure
 - Fix some memory leaks

svn path=/trunk/; revision=43883
2009-10-31 18:46:08 +00:00
Arch Blackmann
932d609e6b Implement opening the layout file and printing out the target DLL architecture. Add missing exit(0).
svn path=/trunk/; revision=43882
2009-10-31 18:43:15 +00:00
Cameron Gutman
fcec7e501b - Implement OskitTCPDisconnect
svn path=/trunk/; revision=43881
2009-10-31 18:15:23 +00:00
Arch Blackmann
8a28e9ff5e Begin implementing Keyboard Layout Compiler Tool, as requested by KJK::Hyperion. This is a UNIX-style (Win32-compatible) command-line tool that will take a standard keyboard layout file (in text) and generate the source, defininition, header and resource data for it. The second part of the tool will spawn off the compiler to build the keyboard DLL, or perhaps generate an .rbuild file to perform the work.
svn path=/trunk/; revision=43880
2009-10-31 18:13:26 +00:00
Johannes Anderwald
514a0e7f08 [KS]
- Add comment for using ms portcls in ReactOS
[WDMAUD_KERNEL]
- Handle error
[SYSAUDIO]
- Fix several bugs in the mixer handling code
- Disable kmixer untill all issues are resolved

svn path=/trunk/; revision=43879
2009-10-31 18:00:05 +00:00
Andrew Hill
24c6ff3165 [includes]
- Fix TestCD
- IDeskBar is only defined when WIN32_IE >= _WIN32_IE_IE60, so ITrackShellMenu should also be defined only when WIN32_IE >= _WIN32_IE_IE60

svn path=/trunk/; revision=43878
2009-10-31 16:59:33 +00:00
Cameron Gutman
05e33d82e8 - Fix translation for OSK_EAGAIN/OSK_EWOULDBLOCK
- Don't clear other socket state flags when enabling non-blocking mode
 - Remove some incorrect code that plays tricks on oskittcp

svn path=/trunk/; revision=43877
2009-10-31 15:53:19 +00:00
Gregor Schneider
03f75c77ed [usetup] Update Italian and Spanish resources too, translations by Gabriel ilardi
svn path=/trunk/; revision=43876
2009-10-31 15:24:00 +00:00
Hervé Poussineau
370e856450 [freeldr/WINLDR] Simplify freeldr.ini syntax for common cases
- If boot type is not specified, autodetect bootsector and Windows types
- Try to automatically detect version of loaded Windows
- Accept boot options after name of OS
- Separate loading and scanning of system hive
As a result, lines like "multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT4" /DEBUG /BREAK" work

svn path=/trunk/; revision=43875
2009-10-31 15:09:03 +00:00
Johannes Anderwald
e65de6eda6 - Start rewrite of DirectSound
- Implemented DirectSoundEnumerateA, DirectSoundEnumerateW, DirectSoundCaptureEnumerateA, DirectSoundCaptureEnumerateW, GetDeviceID
- Partly implemented IDirectSound8 / IDirectSoundCapture8, IDirectSoundCaptureBuffer, primary / secondary IDirectSoundBuffer8 interfaces
- DllRegisterServer / DllUnregisterServer are taken from Wine DSound implementation (John K. Hohm)
- Currently only one primary + secondary buffer are supported for playback
- Mixing of IDirectSoundBuffer is not implemented
- Capture mode isnt yet supported
- Vlc now can use dsound for playback, though stutters in low quality streams are present
- Dsound is not yet added to build untill it has stabilized more

svn path=/trunk/; revision=43874
2009-10-31 14:53:06 +00:00
Gregor Schneider
9a5b0ce12b [usetup] Apply r43870 for German resource file, fix boot loader vs boot sector confusion
svn path=/trunk/; revision=43873
2009-10-31 14:29:38 +00:00
Andrew Hill
8266299b0e [browseui, shell32, explorer_new, include]
- Convert browseui to C++/ATL. As part of this, classes in browseui and now registered with .rgs files.
- Add AddressBand, AddressEditBox, BandProxy, BaseBar, BaseBarSite, BrandBand, InternetToolbar, ShellBrowser, ToolsBand, and TravelLog.
- Add stub implementations of commonbrowser, globalfoldersettings, and regtreeoptions.
- Clean up some msvc compile problems in a few files.
- Reorganize some headers to make them better match the Platform SDK.
- Move InlineIsEqualGUID to guiddef.h.
- Create new header files shlguid_undoc.h, shlobj_undoc.h, and shlwapi_undoc.h to hold undocumented types, functions, and GUIDs.
- Move some undocumented definitions declared in explorer_new/todo.h and undoc.h to new headers.
- Rename a few interfaces in explorer_new to the correct name
- Add definition of RBSTR_CHANGERECT to commctrl.h
- IDeskBarClient inherits from IOleWindow, not IUnknown
- HMONITOR was declared in both dxsdk/axextend.idl and wine/wined3d.idl, but not in wtypes.idl where it belongs
- Added Init and Term to CComModule
- Thanks to encoded for solving the browseui linking problem!

svn path=/trunk/; revision=43872
2009-10-31 14:25:45 +00:00
Stefan Ginsberg
f0b7ff43ff - Don't define the SizePcr entry to the size of the PCR PLUS the PRCB SIZE! The PRCB size is already defined in the SizePrcb entry.
- Likewise, the OffsetPrcbProcStateSpecialReg entry defines the offset to the special registers in the PRCB, not a PCR + PRCB offset + special registers offset! This can only have worked on x86 and AMD64 if WinDbg uses a hard coded offset, but define it correctly anyway.
- The OffsetPcrSelfPcr and OffsetPcrContainedPrcb entries are not applicable for ARM, so define them to 0 for it.

svn path=/trunk/; revision=43871
2009-10-31 13:46:16 +00:00
Aleksey Bragin
8d6e247698 [usetup]
- Change "MBR" to "bootsector", as proposed in bug 4356 by Michael Trausch. Changed languages are English and Russian.

svn path=/trunk/; revision=43870
2009-10-31 13:31:28 +00:00
Johannes Anderwald
650fc71047 - Fix retrieving audio position
svn path=/trunk/; revision=43869
2009-10-31 10:38:25 +00:00
Johannes Anderwald
46c8396918 - Implement looped streaming (needed for dsound bringup)
- Implement GetPosition handler for looped streaming, WIP

svn path=/trunk/; revision=43868
2009-10-31 08:26:26 +00:00
Cameron Gutman
a51c149046 - Add more cases to TCPTranslateError
- Fix a header typo

svn path=/trunk/; revision=43867
2009-10-31 07:34:27 +00:00
Timo Kreuzer
7e2be021f2 Add a number of official win32k pool tags, taken from https://blogs.technet.com/yongrhee/archive/2009/06/24/pool-tag-list.aspx
svn path=/trunk/; revision=43866
2009-10-31 02:10:51 +00:00
Stefan Ginsberg
c32d2da078 ...and fix non-KD build for the rest of you.
svn path=/trunk/; revision=43865
2009-10-31 01:11:43 +00:00
Cameron Gutman
a06fc827da - Make sure the socket is still open before entering oskittcp
- Remove an unused parameter from OskitTCPBind
 - Return a status value from OskitTCPGetAddress
 - Add debug print for unhandled error codes

svn path=/trunk/; revision=43864
2009-10-31 01:05:31 +00:00
Stefan Ginsberg
82bd7858d1 - Add 'simple' implementation of MmDbgCopyMemory to read/write virtual memory in a somewhat safe way (still no support for physical memory). Properly implement KdpCopyMemoryChunks as a wrapper around MmDbgCopyMemory and make most of the remaining unsafe copies use it instead of RtlCopyMemory. This fixes most of the remaining crashes during KD debugging as WinDbg/KD relies on the kernel support to handle bad addresses.
- Stub out the remaining missing global variables for the debugger data block -- fixes some cases of WinDbg failures and gives it a chance to handle errors instead of failing on a NULL read. Several of these variables are for functionality we don't yet implement, so I tried to put them where they are "least wrong". Everything besides the MmLoadedUserImageList variable is left unitialized -- KD should mostly be able to handle this properly.
- Define correctly sized KDDEBUGGER_DATA64 for our kernel (needs to be done in a better way).

svn path=/trunk/; revision=43863
2009-10-31 01:02:35 +00:00
Stefan Ginsberg
c4d8068980 - Clarify a check and don't cast KPCR->GDT to PKIPCR (spotted by Timo).
svn path=/trunk/; revision=43862
2009-10-31 00:39:16 +00:00
Cameron Gutman
43e17b4127 - Implement OskitTCPSetSockOpt and OskitTCPGetSockOpt (currently unused)
svn path=/trunk/; revision=43861
2009-10-31 00:24:38 +00:00
Samuel Serapion
67a2948647 Please don't cast NULL to an integer type. Fixes building this module.
svn path=/branches/ros-amd64-bringup/; revision=43860
2009-10-30 23:51:29 +00:00
Cameron Gutman
f28d99cab1 - Remove some junk code which does nothing but crash
svn path=/trunk/; revision=43859
2009-10-30 23:39:13 +00:00
Samuel Serapion
c3c5459ccf Fix warnings.
svn path=/branches/ros-amd64-bringup/; revision=43858
2009-10-30 23:02:03 +00:00
Samuel Serapion
45b0f2f1ec Remove unneeded casts. Fix build.
svn path=/branches/ros-amd64-bringup/; revision=43857
2009-10-30 22:47:30 +00:00
Stefan Ginsberg
bb55e9c572 - Fix leftover
svn path=/trunk/; revision=43856
2009-10-30 22:15:50 +00:00
Stefan Ginsberg
e90168e57e - Restructure HAL bus routines a bit.
- Fix some incorrect HAL types and add some that were missing.

svn path=/trunk/; revision=43855
2009-10-30 22:07:26 +00:00
Hervé Poussineau
36c3408fb1 [freeldr] Move custom.c, drivemap.c/h, miscboot.c/h to i386 directories
svn path=/trunk/; revision=43854
2009-10-30 21:48:21 +00:00
Johannes Anderwald
3fa52b7b78 - Check Input Parameter (fixes a skype crash)
svn path=/trunk/; revision=43853
2009-10-30 18:51:40 +00:00
Samuel Serapion
5844aa887a Add missing files. Kernel32 now links.
svn path=/branches/ros-amd64-bringup/; revision=43852
2009-10-30 18:48:45 +00:00
Samuel Serapion
79c15bb270 Work around broken linker by putting mingw support libs before module library dependencies.
svn path=/branches/ros-amd64-bringup/; revision=43851
2009-10-30 17:19:56 +00:00
Johannes Anderwald
71c02de01b - Fix a broken cast (x64 compability)
svn path=/trunk/; revision=43850
2009-10-30 15:36:55 +00:00
Timo Kreuzer
e72570afce [WIN32K]
EngCopyBits: Use goto cleanup / break instead of code duplication, fix leaking a bits lock, if the rect function fails, remove abundant MouseSafetyOnDrawEnd

svn path=/trunk/; revision=43849
2009-10-30 15:22:57 +00:00
Timo Kreuzer
38a5ae755f [FORMATTING]
- apply consistent indentattion of 4 spaces
- remove () from return statements

svn path=/trunk/; revision=43848
2009-10-30 15:00:08 +00:00
Samuel Serapion
dd7147de04 Fix gdi32 build for real.
svn path=/branches/ros-amd64-bringup/; revision=43847
2009-10-30 14:24:42 +00:00
Timo Kreuzer
0fcc297839 [WIN32K]
Lock the DIB palette in NtGdiSetDIBitsToDeviceInternal instead of passing NULL to EXLATEOBJ_vInitialize. Fixes LightBox Editor regression (bug 4913 )

svn path=/trunk/; revision=43846
2009-10-30 14:02:42 +00:00
Michael Martin
95e552de39 [msi]
- Schedule a rename operation also for ERROR_USER_MAPPED_FILE. Prevents msi from aborting an install when attempting to overwrite font files. Open Office should now install successfully.

svn path=/trunk/; revision=43845
2009-10-30 12:53:19 +00:00
Cameron Gutman
dbd53d6738 - Don't convert the host name to lower case
svn path=/trunk/; revision=43844
2009-10-30 04:29:38 +00:00
Samuel Serapion
ed369f42b2 Temporarily remove mmebuddy dependencies.
svn path=/branches/ros-amd64-bringup/; revision=43843
2009-10-30 00:36:40 +00:00
Samuel Serapion
af0a5ed498 Fix gdi32 build.
svn path=/branches/ros-amd64-bringup/; revision=43842
2009-10-30 00:24:32 +00:00
Samuel Serapion
6a8b16a69b Fix some prototypes.
svn path=/branches/ros-amd64-bringup/; revision=43841
2009-10-30 00:22:42 +00:00
Samuel Serapion
b6656a39dd Fix LOGBRUSH definition.
svn path=/branches/ros-amd64-bringup/; revision=43840
2009-10-29 23:25:11 +00:00
Samuel Serapion
c7675b0cac Fix Build.
svn path=/branches/ros-amd64-bringup/; revision=43839
2009-10-29 22:44:55 +00:00
Samuel Serapion
926bcb9721 Fix csrss build.
svn path=/branches/ros-amd64-bringup/; revision=43838
2009-10-29 22:41:26 +00:00
Samuel Serapion
5c63222d8a Fix comctl32 build and potential bug.
svn path=/branches/ros-amd64-bringup/; revision=43837
2009-10-29 22:36:15 +00:00
Samuel Serapion
b7aa79a898 Fix avicap32 build.
svn path=/branches/ros-amd64-bringup/; revision=43836
2009-10-29 22:15:19 +00:00
Timo Kreuzer
c9514d7561 Fix merge artifact, spotted by encoded
svn path=/branches/ros-amd64-bringup/; revision=43835
2009-10-29 21:49:28 +00:00
Cameron Gutman
92f8240011 - Header updates for winsock rewrite
svn path=/trunk/; revision=43834
2009-10-29 20:56:47 +00:00
Stefan Ginsberg
9f6cba21d3 - Missed this file
svn path=/trunk/; revision=43833
2009-10-29 20:10:29 +00:00
Stefan Ginsberg
be8d9f285f - INITIAL_STALL_COUNT makes more sense in decimal (100) than hex (0x64) so define it that way.
- Protect CMOS access with the CMOS spinlock.
- Add CMOS initialization to set up the default value of the CMOS century byte offset (not used yet).
- Stub out profile interrupt support in HAL. Register and stub out the profile interrupt handler, but don't handle it yet as vital parts of the rest of the implementation is missing.
- Fix several bugs in the kernel profile implementation:
  - Don't hardcode to PROFILE_LEVEL when raising IRQL : HAL can override this, so use KiProfileIrql. Also, starting/stopping profile interrupts must be done at the profile IRQL, so don't lower it back before calling HAL, which is now enabled.
  - Fix KeSet/QueryIntervalProfile to properly set/query profile intervals through HAL -- pass the correct structures and handle the ProfileAlignmentFixup case properly, and call HAL when setting the timer interval as the interval may be overridden by it.
  - KeStartProfile returns BOOLEAN to tell if the profile was started or not, just like KeStopProfile.
- Make the interrupt implementation more portable for non-PIC architectures.
- Fix HalSystemVectorDispatchEntry; it returns a type (UCHAR), not TRUE/FALSE (BOOLEAN).
- Begin implementing the framework for querying HAL resource usage (keeping track of internal address space and vector registrations/usage).

svn path=/trunk/; revision=43832
2009-10-29 19:58:41 +00:00
Ged Murphy
dca090ba4c undef min & max so they don't override the numeric_limits template methods
svn path=/trunk/; revision=43831
2009-10-29 18:54:21 +00:00
Sylvain Petreolle
9127411fdf silence debug
svn path=/trunk/; revision=43830
2009-10-29 18:28:27 +00:00
Stefan Ginsberg
24bb32e038 - Re-enable some debug prints for unsupported hardware features and make them consistent.
svn path=/trunk/; revision=43829
2009-10-29 18:26:22 +00:00
Stefan Ginsberg
bec72fa6a7 - Implement the ThreadDescriptorTableEntry case for NtQueryInformationThread. This is required for the GetThreadSelectorEntry routine used by user mode debuggers.
- #if out some x86-only LDT code from PS and move it to psldt.c.

svn path=/trunk/; revision=43827
2009-10-29 10:04:15 +00:00
Johannes Anderwald
7590cdb16d - Silence debug garbage
svn path=/trunk/; revision=43826
2009-10-29 08:28:03 +00:00
Timo Kreuzer
0998c5e4ff Partly implement KiDebugTrapOrFault. Single stepping now works.
svn path=/branches/ros-amd64-bringup/; revision=43824
2009-10-28 23:54:07 +00:00
Dmitry Gorbachev
e5ca9dd8e3 Remove byte order mark.
svn path=/trunk/; revision=43823
2009-10-28 23:53:50 +00:00
Timo Kreuzer
31d9db9bf3 Comment out __ldmxcsr in KiRestoreProcessorControlState, as it results in a GPF. Continuing now works again.
svn path=/branches/ros-amd64-bringup/; revision=43822
2009-10-28 23:21:13 +00:00
Dmitry Gorbachev
f2e942714d Patch for Regional Settings applet by Viliam Lejcik (lejcik/at/gmail/com) with some changes. Bug #4898.
svn path=/trunk/; revision=43821
2009-10-28 23:20:28 +00:00
Timo Kreuzer
39f6b5c9d3 partly implement KdpSysWriteControlSpace
svn path=/branches/ros-amd64-bringup/; revision=43820
2009-10-28 22:38:42 +00:00
Stefan Ginsberg
b0688f07ec - Merge 43818 to trunk.
- Don't return any data for DbgKdSetBusDataApi either. 

svn path=/trunk/; revision=43819
2009-10-28 21:49:58 +00:00
Timo Kreuzer
daab9e149d [KD64]
- KdpSetContext: don't include the CONTEXT data in the reply. WinDbg doesn't like that.

svn path=/branches/ros-amd64-bringup/; revision=43818
2009-10-28 21:36:00 +00:00
Dmitry Gorbachev
c9c4571300 - Add missing svn:eol-style properties.
- Use consistent newline style.
- Update file COPYING.

svn path=/trunk/; revision=43817
2009-10-28 20:13:23 +00:00
Sylvain Petreolle
008b7c72d8 forgot to include winmm winetest on testcd
svn path=/trunk/; revision=43816
2009-10-28 18:51:17 +00:00
Johannes Anderwald
ad29b7974d - Silence wdmaud.drv
svn path=/trunk/; revision=43815
2009-10-28 18:42:24 +00:00
Sylvain Petreolle
c021918e36 add winmm winetest
svn path=/trunk/; revision=43811
2009-10-28 15:15:59 +00:00
Aleksey Bragin
41b71cf811 [fastfat_new]
- Implement overwrite/supersede operations on an existing FCB, no on-disk writing yet.

svn path=/trunk/; revision=43809
2009-10-28 11:29:34 +00:00
Christoph von Wittich
d3b074aa2c sync widl to wine 1.1.32
svn path=/trunk/; revision=43808
2009-10-28 11:28:26 +00:00
Johannes Anderwald
1f28d44b07 Add StringFromIID prototype
svn path=/trunk/; revision=43807
2009-10-28 11:19:25 +00:00
Aleksey Bragin
5275a28717 [fastfat_new]
- FatCreateCcb takes no parameters, so don't pass any. Spotted by Stefan's msvc.

svn path=/trunk/; revision=43806
2009-10-28 10:18:57 +00:00
Christoph von Wittich
3df137895d add ac97 as optional
svn path=/trunk/; revision=43805
2009-10-28 10:16:17 +00:00
Johannes Anderwald
6208fa37f3 The winner of the 1st ReactOS Logon Sound contest has been elected. It is irc:LoneRifle (alwyn-dot-tan-at-gmail-dot-com) Congratulations
- See http://www.reactos.org/forum/viewtopic.php?f=2&t=7339 for more details

svn path=/trunk/; revision=43804
2009-10-28 09:21:18 +00:00
James Tabor
8a57208aae - [User32] Update MenuShowPopup with wine and add menu check for MenuTrackMenu. MenuTrackMenu menu check fixed the first stop with wine menu test.
svn path=/trunk/; revision=43803
2009-10-28 01:43:59 +00:00
Daniel Reimer
7fcc966e35 A dozen of Rapps Updates. Thx to Victor Martinez for fixing many dl links..
svn path=/trunk/; revision=43802
2009-10-28 00:18:45 +00:00
Timo Kreuzer
4869ba0006 Sync kdcom from amd64 branch
svn path=/trunk/; revision=43801
2009-10-27 23:38:56 +00:00
Timo Kreuzer
0cf8717f6d merge r43777 from amd64 branch
svn path=/trunk/; revision=43800
2009-10-27 23:28:17 +00:00
Johannes Anderwald
b53f1051ec [WDMAUD.DRV][MMEBUDDY]
- Implement support for DRV_QUERYDEVICEINTERFACESIZE, DRV_QUERYDEVICEINTERFACE for recording / mixer / midi-in midi-out


svn path=/trunk/; revision=43799
2009-10-27 23:28:09 +00:00
Timo Kreuzer
8c70b1e730 Remove fail point support from swprintf, too. Yay boot!
svn path=/branches/ros-amd64-bringup/; revision=43797
2009-10-27 22:56:22 +00:00
James Tabor
6185365441 - Move TI flages to main header file.
svn path=/trunk/; revision=43796
2009-10-27 19:02:02 +00:00
Christoph von Wittich
d12cc30898 [rapps]
install Firefox 3.0.15 instead of 3.0.13

svn path=/trunk/; revision=43795
2009-10-27 18:45:58 +00:00
Stefan Ginsberg
3cc202c54d Release atsmedia.h, ddkernel.h, dmemmgr.h, dvp.h, ntstrsafe.h, objerror.h and polarity.h into the public domain -- Alex (ntstrsafe.h) and Magnus (the other headers) have agreed to this.
svn path=/trunk/; revision=43794
2009-10-27 16:27:33 +00:00
Johannes Anderwald
3557056c44 - Add missing types
svn path=/trunk/; revision=43793
2009-10-27 15:33:58 +00:00
Timo Kreuzer
c9c20c50ef Kill floating point from RTL sprintf. It was leading to crashing freeldr when compiled with never gccs.
svn path=/branches/ros-amd64-bringup/; revision=43792
2009-10-27 14:31:16 +00:00
Johannes Anderwald
d42f65b7f8 - Fix a heap corruption at process shutdown
- Found by irc:encoded

svn path=/trunk/; revision=43791
2009-10-27 12:19:33 +00:00
Dmitry Gorbachev
145fbbd116 - Update address of Free Software Foundation.
- Update obsolete LGPL v2 to LGPL v2.1.

svn path=/trunk/; revision=43790
2009-10-27 10:34:16 +00:00
Stefan Ginsberg
838ed7f31a - Replace broken implementation of HalpCalibrateStallExecution with a new implementation by a mysterious HAL ninja and myself. The old implementation calculated the stall count factor incorrectly and produced bogus results that were off by several thousand, and varied by as much for each boot, and can best be described as "rand() made complicated". The new implementation installs its own RTC interrupt handler to accurately calculate the stall scale factor, all done in assembler instead of broken C. Fixes the hang at boot when initializing Uniata as stalls no longer takes 10 times or more as long to execute then they should.
svn path=/trunk/; revision=43789
2009-10-27 01:03:41 +00:00
Johannes Anderwald
47b50e1e0b [WDMAUD.DRV][WDMAUD_KERNEL][MMEBUDDY]
- Implement support for DRV_QUERYDEVICEINTERFACESIZE, DRV_QUERYDEVICEINTERFACE
- Required for DSound support

svn path=/trunk/; revision=43788
2009-10-26 23:10:05 +00:00
Cameron Gutman
48c283f6e6 - Add UltraVNC to the rapps list
- The VNC client works very well in ROS

svn path=/trunk/; revision=43787
2009-10-26 21:39:00 +00:00
Johannes Anderwald
1211cabfad - Implement reading preferred playback / record device
svn path=/trunk/; revision=43784
2009-10-26 19:40:21 +00:00
Johannes Anderwald
96323feab4 - Revert 43774
svn path=/trunk/; revision=43783
2009-10-26 19:32:25 +00:00
James Tabor
d2d4152255 - Fix wine class test with a sync with wine edit.c.
svn path=/trunk/; revision=43782
2009-10-26 18:26:48 +00:00
Sylvain Petreolle
8214c072df fix wavemapper path
svn path=/trunk/; revision=43780
2009-10-26 13:54:46 +00:00
Timo Kreuzer
1e6d45e036 [KDCOM]
- In case of failing to receive a part of the packet, return the status to the caller instead of continuing.

svn path=/branches/ros-amd64-bringup/; revision=43779
2009-10-26 12:51:26 +00:00
Timo Kreuzer
e4ccd93037 - Fix definition of KdDebuggerNotPresent for gcc, the MS definition is broken, don't know if it's needed that way for msvc.
svn path=/branches/ros-amd64-bringup/; revision=43777
2009-10-26 12:22:32 +00:00
Timo Kreuzer
d65a5407b5 [KDCOM]
- take the MessageHeader length from MaximumLength field instead of depending on the packet type
- Context -> KdContext
- remove redundant return

svn path=/branches/ros-amd64-bringup/; revision=43776
2009-10-26 12:09:05 +00:00
Daniel Reimer
0abf32cea7 Fixed build with MinGW-w64 4.4.3
svn path=/branches/ros-amd64-bringup/; revision=43775
2009-10-26 12:07:33 +00:00
Johannes Anderwald
faf5c1a06b - Add an initial stub of DSound
svn path=/trunk/; revision=43774
2009-10-26 10:54:05 +00:00
Giannis Adamopoulos
0a1284cd40 We should send WM_SYSCOMMAND when we get a WM_SYSKEYUP , not when we get a WM_SYSKEYDOWN message
svn path=/trunk/; revision=43773
2009-10-26 08:53:47 +00:00
Christoph von Wittich
a186a11520 implement IntKeyboardInput based on wine
svn path=/trunk/; revision=43772
2009-10-26 08:50:00 +00:00
Cameron Gutman
ddeb261349 - Comment out this unused code until I can get the headers sorted out in my WC
svn path=/trunk/; revision=43771
2009-10-26 03:28:43 +00:00
Timo Kreuzer
6b92b26b8e [KDCOM]
For unknown reasons it's not enough to check LSR if the port is ready to receive or not. Adding additional port reads improves the reliability of the data massively. Now it's possible to use kdcom on windows XP!

svn path=/branches/ros-amd64-bringup/; revision=43770
2009-10-26 03:24:03 +00:00
Cameron Gutman
5a3d389400 - Forgot this file
svn path=/trunk/; revision=43769
2009-10-26 03:19:30 +00:00
Timo Kreuzer
7be05b3ec6 [KDCOM]
- Check the received PacketId
- Add retry count to KdSendPacket
- instantly return resend packets

svn path=/branches/ros-amd64-bringup/; revision=43768
2009-10-26 03:16:46 +00:00
Cameron Gutman
79e704337b - Update AFD's shared header
- Add entity type check for IF_MIB_STATS_ID
 - Sort out some confusion with TDI entities
 - Implement IOCTL_AFD_GET_CONTEXT_SIZE
 - Enable debug prints for unimplemented ioctls
 - Add kernel-mode support for setting TTL

svn path=/trunk/; revision=43767
2009-10-26 03:11:44 +00:00
Timo Kreuzer
39dcdc086e [KDCOM]
- KdpDbgPrint -> KDDBGPRINT
- enable KdDebuggerNotPresent change

svn path=/branches/ros-amd64-bringup/; revision=43766
2009-10-26 02:11:03 +00:00
Johannes Anderwald
85cbe2887b [WDMAUD.DRV]
- Set the audio pin to KSSTATE_RUN if it is wave-out pin
- Implement support for manually starting / stopping a pin, which is used for recording
[WINMM]
- Add a hack for handling requests with WAVE_MAPPER
[PORTCLS]
- Pass correct flags to KsProbeStreamIrp when the irp has not already been probed (DirectKs)
[WDMAUD]
- Set correct irp dispatch code
[SYSAUDIO]
- Remove a hack
[MMEBUDDY]
- Return no error for MXDM_INIT message
- Add support for completing multiple wave headers at once
- Use new functions to implement WIDM_START / WIDM_STOP
- ReactOS now "supports" wave in recording. Tested with Audacity / sndrec32 @ XP, WIP


svn path=/trunk/; revision=43765
2009-10-26 00:15:22 +00:00
Dmitry Gorbachev
fe966a972d Japanese font. Based on Misaki font by Num Kadoma (num_kadoma/at/yahoo/co/jp).
Copyright (C) 2002-2008 Num Kadoma

This font is free software.

Unlimited permission is granted to use, copy, and distribute it, with
or without modification, either commercially or noncommercially.

THIS FONT IS PROVIDED "AS IS" WITHOUT WARRANTY.

svn path=/trunk/; revision=43764
2009-10-25 23:46:45 +00:00
Timo Kreuzer
0076b6520b revert 43682, fix kdcom build
svn path=/branches/ros-amd64-bringup/; revision=43763
2009-10-25 23:28:26 +00:00
Sylvain Petreolle
81530ee244 fix "no newline at end of file" errors
svn path=/trunk/; revision=43762
2009-10-25 23:10:28 +00:00
Timo Kreuzer
cc5c0a0816 Merge trunk head (r43756)
svn path=/branches/ros-amd64-bringup/; revision=43759
2009-10-25 22:13:11 +00:00
Timo Kreuzer
51afa0b7be remove unused file
svn path=/trunk/; revision=43758
2009-10-25 22:04:32 +00:00
Timo Kreuzer
87ab5d0e6d - Pass pointer to debugprint function to the kernel in LoaderBlock->u.I386.CommonDataArea
- comment out __lldt

svn path=/branches/ros-amd64-bringup/; revision=43757
2009-10-25 21:47:53 +00:00
Christoph von Wittich
e818f18502 -sync rsaenh_winetest with wine 1.1.32
svn path=/trunk/; revision=43756
2009-10-25 21:16:33 +00:00
Christoph von Wittich
a0951dacc4 -sync rsaenh with wine 1.1.32
svn path=/trunk/; revision=43755
2009-10-25 21:16:15 +00:00
Christoph von Wittich
14c61c9004 partial kernel32 GetLocaleInfo sync to wine 1.1.32
svn path=/trunk/; revision=43754
2009-10-25 21:02:58 +00:00
Christoph von Wittich
cec5cdfa8d -sync user32_winetest with wine 1.1.32
svn path=/trunk/; revision=43752
2009-10-25 20:32:13 +00:00
Christoph von Wittich
0ed9c0cca3 -sync msxml3 with wine 1.1.32
svn path=/trunk/; revision=43751
2009-10-25 20:21:51 +00:00
Christoph von Wittich
c7b2548293 -sync netapi32 with wine 1.1.32
svn path=/trunk/; revision=43750
2009-10-25 19:24:08 +00:00
Gregor Schneider
5b1a765b54 [win32k] Stub out page to device space conversion, fixes three more gdi32 mapping winetests
svn path=/trunk/; revision=43749
2009-10-25 18:49:08 +00:00
Johannes Anderwald
77c67054c7 - Make sure that no duplicate wdmaud.drv audio drivers exists as winmm currently not recognizes duplicate audio driver entries
svn path=/trunk/; revision=43748
2009-10-25 18:22:03 +00:00
Johannes Anderwald
acd8b06824 - Partially sync winmm
- Remove unused code
- Fix function headers

svn path=/trunk/; revision=43747
2009-10-25 17:54:50 +00:00
Christoph von Wittich
8fd3137277 partially sync kernel32 profile to wine 1.1.32
svn path=/trunk/; revision=43746
2009-10-25 17:28:35 +00:00
Gregor Schneider
cae8c23a9f [win32k] GetTransform:
- Add support for more transforms
- Fix return value for invalid/unsupported transform types
- Fixes 10 gdi32 mapping winetests

svn path=/trunk/; revision=43745
2009-10-25 17:23:19 +00:00
Christoph von Wittich
abc34f7dad -sync kernel32_winetest with wine 1.1.32
svn path=/trunk/; revision=43744
2009-10-25 16:21:40 +00:00
Christoph von Wittich
01a9e7493e add define for LOCALE_RETURN_GENITIVE_NAMES
svn path=/trunk/; revision=43743
2009-10-25 16:20:45 +00:00
Christoph von Wittich
b882f99c77 better stub for RtlQueryHeapInformation (taken from wine)
svn path=/trunk/; revision=43742
2009-10-25 16:20:00 +00:00
Stefan Ginsberg
eae6521fb2 - DBGKD_WAIT_STATE_CHANGE64 is used in KD protocol 5, not number 6 that we use. Protocol 6 uses the DBGKD_ANY_WAIT_STATE_CHANGE structure which is sized according to the largest control-report structure (AMD64_DBGKD_CONTROL_REPORT currently), and is larger than DBGKD_WAIT_STATE_CHANGE64 on x86. This worked because our DBGKD_WAIT_STATE_CHANGE32/64 structures contained incorrect DBGKD_CONTROL_REPORT (used) and CONTEXT (unused) members that sized up the wait-state structure to pass WinDbg's length verification! It actually becomes larger than DBGKD_ANY_WAIT_STATE_CHANGE, but WinDbg only seems bail out only if the structure is too small. Remove the incorrect members from the protocol 5 structures and change to DBGKD_ANY_WAIT_STATE_CHANGE everywhere.
- Correct the value of SIZE_OF_FX_REGISTERS -- it was 4 times too low which resulted in KeContextToTrapFrame not properly clearing out the XMM register area. Correct the define and move it out from ke.h to x86's ketypes.h and use it in the FXSAVE format structure. Also remove the IOPM definitions from ke.h as they have been in the NDK for a while.
- KD uses STRINGs, not ANSI_STRINGs -- they are the same thing, but let's be consistent.
- ExceptionRecord32To64 should be available for both 32 and 64 bit builds (and it shouldn't be a forceinline). Get rid of CopyExceptionRecord and determine if we need to convert or can just copy it directly instead.
- Use _WIN64 instead of _M_AMD64 when determining if we need to set the DBGKD_VERS_FLAG_PTR64 flag.
- Don't check Nt/DbgQueryDebugFilterState for zero or nonzero -- it actually returns TRUE, FALSE or STATUS_INVALID_PARAMETER_1! Check for != TRUE in preparation for proper implementation of NtSet/QueryDebugFilterState.
- Fix Format parameter of DbgPrintReturnControlC -- it is const like the other DbgPrint* routines.
- Be consistent with the types used in debug.c and don't set local variables to zero if we are going to return to caller -- this doesn't seem to be required anymore. 
- Fix DebugService and DebugService2: DebugService should take a ULONG followed by 4 pointers and DebugService2 doesn't return anything.
- Use ZwCurrentProcess() instead of -1 or 0xFFFFFFFF (which is incorrect for 64-bit) for the ProcessId parameter of DbgLoad/UnloadImageSymbols to clarify what is being passed. Don't use ZwCurrentProcess() in KeBugCheckWithTf for the pointer parameter of DbgUnLoadImageSymbols either. Use MAXULONG_PTR casted to PVOID instead.
- Use better named and sized variables in KdpTrap for setting the "return register" in the caller's CONTEXT.
- Correct and clarify the comment documenting under what conditions we pass user mode exceptions to the kernel debugger.

svn path=/trunk/; revision=43741
2009-10-25 15:56:38 +00:00
Christoph von Wittich
522564186c -sync cabinet with wine 1.1.32
svn path=/trunk/; revision=43740
2009-10-25 13:45:15 +00:00
Timo Kreuzer
067454570d [KDCOM]
- Compare checksum after retreiving the full packet
- simplify code

svn path=/branches/ros-amd64-bringup/; revision=43739
2009-10-25 11:55:04 +00:00
Timo Kreuzer
1987b47110 [KDCOM]
- Check the PacketType only after the whole message was received and just skip the message and restart when it's not what we wanted.

svn path=/branches/ros-amd64-bringup/; revision=43738
2009-10-25 11:37:17 +00:00
Christoph von Wittich
206c0a4f49 don't crash in msi install winetest
svn path=/trunk/; revision=43737
2009-10-25 11:14:03 +00:00
Christoph von Wittich
83e2004b73 -sync msi_winetest with wine 1.1.32
svn path=/trunk/; revision=43736
2009-10-25 11:06:38 +00:00
Christoph von Wittich
b7a13d7347 -sync msi with wine 1.1.32
svn path=/trunk/; revision=43735
2009-10-25 11:06:09 +00:00
Giannis Adamopoulos
6562d206a7 Sync DrawText funtions with wine 1.1.32
Fixes all user32 text tests

svn path=/trunk/; revision=43734
2009-10-25 09:32:01 +00:00
Christoph von Wittich
88d1bac025 partial wine sync to 1.1.32:
wininet: Avoid accessing uninitialized memory.

svn path=/trunk/; revision=43733
2009-10-25 08:52:54 +00:00
Cameron Gutman
6d9bb99627 - Fix sending malformed ICMP packets because we read the wrong length from the wrong address in the buffer
- Fix the sequence number stored in the packet
 - Fix potential null pointer freeing
 - tracert partially works now (Setting TTL isn't implemented yet)

svn path=/trunk/; revision=43732
2009-10-25 04:30:28 +00:00
Cameron Gutman
fcb80fec6e - Start the sequence number at 1 instead of 0
svn path=/trunk/; revision=43731
2009-10-25 03:48:15 +00:00
Aleksey Bragin
0f288316c0 [fastfat_new]
- Fix FF_Free warning.

svn path=/trunk/; revision=43725
2009-10-24 21:05:42 +00:00
Stefan Ginsberg
f8fd318e35 - Fix a sneaky breakage of MSVC built kernels. "i386" is a gcc define and we don't define it in the makefiles.
svn path=/trunk/; revision=43724
2009-10-24 20:44:43 +00:00
Cameron Gutman
ebaa2b818d - Implement SetIpNetEntry in iphlpapi and InfoTdiSetArptableMIB in tcpip
- Added buffer size checks for InfoTdiSetRoute
 - "arp -s" works now

svn path=/trunk/; revision=43723
2009-10-24 20:39:41 +00:00
Stefan Ginsberg
ff318c3207 - Don't put PAGED_CODE() before variable declarations -- this makes MSVC very, very sad. Reformat and clean up the code a bit too.
svn path=/trunk/; revision=43722
2009-10-24 20:35:10 +00:00
Daniel Reimer
425c1da665 chinese Translations by Elton Chung.
svn path=/trunk/; revision=43721
2009-10-24 19:27:51 +00:00
Daniel Reimer
9848a8409d Sync wordpad and winhlp32 to Wine 1.1.31
Update 3rd Party Files.txt

svn path=/trunk/; revision=43719
2009-10-24 17:23:52 +00:00
Sylvain Petreolle
cba092a5a3 - Add reg.exe from Wine 1.1.31
svn path=/trunk/; revision=43718
2009-10-24 15:23:45 +00:00
Sylvain Petreolle
3a8773297f add missing checks
fixes winmm:mixer crash

svn path=/trunk/; revision=43717
2009-10-24 15:13:30 +00:00
Dmitry Chapyshev
e7fe9eb96e - Fix Russian translation
svn path=/trunk/; revision=43716
2009-10-24 14:34:11 +00:00
Kamil Hornicek
0601bc5633 - merge some of the more meaningful stuff from the reactx branch
svn path=/trunk/; revision=43715
2009-10-24 14:09:48 +00:00
Dmitry Chapyshev
580d28894c - Add reg.exe from Wine 1.1.31
svn path=/trunk/; revision=43714
2009-10-24 13:32:45 +00:00
Dmitry Chapyshev
51a5e344d6 - Add runonce.exe to bootcd
svn path=/trunk/; revision=43712
2009-10-24 13:15:38 +00:00
Dmitry Chapyshev
a7ebc6bd5c - Add some registry keys (like in Windows)
svn path=/trunk/; revision=43711
2009-10-24 13:13:20 +00:00
Dmitry Chapyshev
5325ee5eee - Add samplify runonce.exe utility
svn path=/trunk/; revision=43710
2009-10-24 12:58:07 +00:00
Gregor Schneider
5cb190acc6 [kernel32] Check for valid atom, fixes the remaining eight kernel32 atom winetests
svn path=/trunk/; revision=43709
2009-10-24 11:51:33 +00:00
Sylvain Petreolle
0b487b45aa "<@Christoph_vW> please commit something" -- aye sir
svn path=/trunk/; revision=43707
2009-10-24 09:57:37 +00:00
Stefan Ginsberg
0cc20f2021 "<@Christoph_vW> please commit something" -- aye sir
svn path=/trunk/; revision=43706
2009-10-23 23:29:49 +00:00
Stefan Ginsberg
10bbe664b7 - Replace RtlpGetExceptionAddress by the _ReturnAddress intrinsic and add it to ARM intrin.h as it was missing.
- Simplify RtlpCheckForActiveDebugger: Remove the BOOLEAN parameter as we would always pass it FALSE. Always return FALSE false from kernel mode for simplicity.
- Fix a critical flaw in our exception support: RtlRaiseException and RtlRaiseStatus were implemented in C on x86. This lead to unpredictable register corruption because the compiler could not know that it had to preserve non-volatile registers before calling RtlCaptureContext as the saved context is later used to restore the caller in case the exception is handled and execution is continued. This made the functions unsafe to return from as any non-volatile register could be corrupted. Implement them in assembly for x86 to safely capture the context using only EBP and ESP. The C versions of those routines are still used and shared for the other architectures we support -- needs to be determined if this is safe and correct for those architectures.
- The ntdll exception Wine exposed this issue, and all tests now pass. The remaining failures on the build server are caused by missing or incomplete debug register support in KVM/QEMU. Run the test in another VM or on real hardware and all the tests will pass.
- Implement Debug Prompt (DbgPrompt) support for KD and KDBG. The KDBG implementation reads the prompt from keyboard or serial depending on the mode so that sysreg and rosdbg can support it too.
- Properly implement RtlAssert using DbgPrompt to prompt for the action to take instead of always doing a breakpoint. The new implementation is disabled until sysreg can support this. Also move RtlAssert to its own file as it has nothing to do with the error routines (nor does it belong in exception.c).
- Note that DbgPrompt was already used in PspCatchCriticalBreak, and this would have resulted in a silent hang as BREAKPOINT_PROMPT wasn't handled at all by KDBG.
- Implement KiRaiseAssertion (10 lines of code with the trap macros) and thus support NT_ASSERT. Add partial support for it to KDBG to print out a warning and the address of the failure, but don't do anything else. Also add NT_ASSERT to the DDK headers so that we can use it, but don't use it yet as the ARM method of performing this has not been decided nor implemented.
- KiTrap3 doesn't set STATUS_SUCCESS but BREAKPOINT_BREAK. They have the same numerical value but very different meaning -- BREAKPOINT_BREAK means that the exception is a software breakpoint and not a debug service call. Fix some comments to document that this is what is checked for.
- Fix inverted and broken logic in KdpReport. It would never pass second chance exceptions to the debugger, didn't respect the stop-on-exception flag properly and would always fail to handle some special exceptions in both first and second chance instead of just failing to handle it in first chance. Clean up, reformat and document what is going on.
- The DebugPrint and DebugPrompt support routines only perform a 2D interrupt on x86; use more portable comments.
- Add Alex to the programmer section of x86's kdsup.c -- he wrote KdpGetStateChange, KdpSetContextState and the code that was previously in KdpRead/WriteControlSpace.
- Add my name to the parts of KD where I have made significant work on getting KD/WinDbg support up and running.
- KD debugging is now quite functional and stable. Some bugs and stubs remain to be flushed out, but overall KD is now much better and easier to use than KDBG.

svn path=/trunk/; revision=43705
2009-10-23 22:51:39 +00:00
Johannes Anderwald
9ca2385ce2 - Fix build
- Found by Christoph

svn path=/trunk/; revision=43704
2009-10-23 22:21:03 +00:00
Johannes Anderwald
b4018f21e9 - Make sure string is null terminated
- Copy all required fields for WaveIn devices
- Use double of the reported FrameSize to increase audio playback performance

svn path=/trunk/; revision=43703
2009-10-23 21:53:25 +00:00
Timo Kreuzer
3e678b588b Fix and simplify KdpSysReadControlSpace, hint by Stefan
svn path=/branches/ros-amd64-bringup/; revision=43702
2009-10-23 21:46:49 +00:00
Christoph von Wittich
75b317922f update kvm virtio driver filenames
svn path=/trunk/; revision=43701
2009-10-23 21:15:55 +00:00
Lucas Suggs
148016a73d First push of nslookup implementation.
svn path=/trunk/; revision=43700
2009-10-23 17:25:05 +00:00
Aleksey Bragin
1e7aa70379 [rtl]
- Fix incorrect leap year days checking condition, spotted by Gabriel Iliardi.
See issue #4917 for more details.

svn path=/trunk/; revision=43698
2009-10-23 13:19:36 +00:00
Sylvain Petreolle
62047d7163 comment out svchost.exe, fixes make bootcd.
svn path=/branches/ros-amd64-bringup/; revision=43695
2009-10-23 09:02:21 +00:00
Sylvain Petreolle
6977519692 fix build
svn path=/branches/ros-amd64-bringup/; revision=43694
2009-10-23 08:25:26 +00:00
Cameron Gutman
612660aeee - Limit the number of interrupts that are handled per call to MiniportHandleInterrupt to prevent us from staying at DISPATCH_LEVEL for too long
svn path=/trunk/; revision=43693
2009-10-23 00:27:00 +00:00
Cameron Gutman
0fba4d8f11 - Move the DstAddress check above the NCE modification code so we don't use ARP requests that aren't addressed to us
- Fixes bug 4879

svn path=/trunk/; revision=43692
2009-10-22 19:08:02 +00:00
Stefan Ginsberg
80078ade2b - Fix 43192 -- MAXUINT and MAXULONGLONG are only defined for Vista and later.
- Add some leftover MAXULONG.

svn path=/trunk/; revision=43691
2009-10-22 18:27:17 +00:00
Timo Kreuzer
aa43316443 revert the KD_CONTEXT change
svn path=/trunk/; revision=43690
2009-10-22 15:25:37 +00:00
Timo Kreuzer
8e9a646867 fix build
svn path=/trunk/; revision=43689
2009-10-22 15:15:07 +00:00
Timo Kreuzer
4d06b94a31 [KDCOM]
- Merge r43682
- Copy new kdcom from amd64 branch. It's only built when _WINKD_ is set to 1 in the config file.
Happy testing.

svn path=/trunk/; revision=43688
2009-10-22 14:58:33 +00:00
Timo Kreuzer
e7dd98607a [KDCOM]
- only build it when _WINKD_ is set to 1 in the config file
- remove DriverEntry

svn path=/branches/ros-amd64-bringup/; revision=43687
2009-10-22 14:55:26 +00:00
Timo Kreuzer
3958fdef23 Don't truncate Processid to ULONG, spotted by Stefan.
svn path=/branches/ros-amd64-bringup/; revision=43686
2009-10-22 14:08:11 +00:00
Timo Kreuzer
d060a35c58 [KDCOM]
- replace KdpDbgPrint with a macro
- remove COM port hack

svn path=/branches/ros-amd64-bringup/; revision=43685
2009-10-22 13:37:01 +00:00
Timo Kreuzer
6887126ab0 use COM2 as DEBUGPORT, COM1 is for plain text debuglog
svn path=/branches/ros-amd64-bringup/; revision=43684
2009-10-22 13:21:50 +00:00
Timo Kreuzer
7b3ff15e56 [KDCOM]
Better handling for breakin packets

svn path=/branches/ros-amd64-bringup/; revision=43683
2009-10-22 11:49:52 +00:00
Timo Kreuzer
77fa09edbe Fix KD_CONTEXT member names.
svn path=/branches/ros-amd64-bringup/; revision=43682
2009-10-22 11:45:49 +00:00
Andrew Hill
7a50eb63fc [shell32]
- hKey is already properly closed, don't close it again.

svn path=/trunk/; revision=43679
2009-10-22 02:29:01 +00:00
Cameron Gutman
ce81b8dba4 - Send DHCP discover after loading the configuration so we have valid options
- Fixes erratic behavior with certain DHCP servers

svn path=/trunk/; revision=43678
2009-10-22 00:55:45 +00:00
Timo Kreuzer
dc3965426c [NTOSKRNL]
- Comment out some instructions in KiRestoreProcessorControlState for now
- move the FreeLdr debugprint hack
- Don't increment RIP on an int3
- improve debugprint for KiInvalidOpcodeFault

svn path=/branches/ros-amd64-bringup/; revision=43677
2009-10-21 23:22:46 +00:00
Timo Kreuzer
9bdbbfde2f [KDCOM]
- send a PACKET_TYPE_KD_RESEND in some more failure cases
- return DataLength in KdReceivePacket
- check the trailing byte
- move some code out of the loop in KdSendPacket
- add a few debugprints, remove some others

svn path=/branches/ros-amd64-bringup/; revision=43676
2009-10-21 21:58:30 +00:00
Timo Kreuzer
8964d1b90e Rework kdcom, try to make it "portable", now in kddll folder, where other versions like kdusb and kd1394 can have a warm place, too. It still has issues.
svn path=/branches/ros-amd64-bringup/; revision=43674
2009-10-21 20:03:27 +00:00
Stefan Ginsberg
3a16c5a061 - Don't use KeBugCheck(0) -- 0 is an invalid bugcode. Use a proper bugcode, DbgBreakPoint or UNIMPLEMENTED instead depending on how the old call was used.
- Remove some unused and deprecated macros from the network stack that did this.
- fastfat_new: Use FAT_FILE_SYSTEM instead of magic 0x23.

svn path=/trunk/; revision=43673
2009-10-21 17:52:11 +00:00
Benedikt Freisen
f2e66d0408 [PAINT] cleanup:
- formatting for enhanced readability
- removal of superfluous variables/assignments
- corrected or added header comment in all files
- change if ... else ... to ?-operator where sensible and readable
- small bugfix in mouse.c concerning rectangle drawing
- fixed some possible string buffer overruns

svn path=/trunk/; revision=43671
2009-10-21 15:44:31 +00:00
Johannes Anderwald
9647ae1f0c - Fix download path as file system doesnt support '?' and rapps isnt checking for this
svn path=/trunk/; revision=43670
2009-10-21 10:25:28 +00:00
Johannes Anderwald
67128c15bc - Fix downloard url
svn path=/trunk/; revision=43669
2009-10-21 10:13:23 +00:00
Johannes Anderwald
f04194f791 [NTOSKNRL]
- Enhance DebugPrint by Stefan Ginsberg

svn path=/trunk/; revision=43668
2009-10-21 09:11:36 +00:00
Johannes Anderwald
f3111fdafd - Fix building on linux
- Patch by Filip Navara

svn path=/trunk/; revision=43667
2009-10-21 07:55:11 +00:00
Johannes Anderwald
ad561fc082 - Fix a lock release leak
- By Russel Rice (IRC: Russel) rtc _ marine /@\ hotmail -dot- -com-

svn path=/trunk/; revision=43666
2009-10-21 07:45:33 +00:00
Johannes Anderwald
6793ef9a7c [PORTCLS]
- Implement support for submitting multiple stream headers at once
- Return correct status code on error
[WDMAUD_KERNEL]
- Save correct length

svn path=/trunk/; revision=43665
2009-10-21 06:34:24 +00:00
Cameron Gutman
a5f9cb6d11 - Don't allocate a buffer if we don't have any neighbors
svn path=/trunk/; revision=43664
2009-10-21 03:49:44 +00:00
Cameron Gutman
9eeae0e826 - Fix an issue that broke ARP replies because we compared the source address with our address instead of the destination address with our address
- What ended up happening was the router saved our gratuitous ARP hw address which allowed communication until it sent an ARP request which we would discard instead of replying to it, so the network connection would drop unexpectedly. "ipconfig /renew" was a temporary fix because it caused another gratuitous ARP packet to be sent and readded our hw address to the router's cache
 - This should be the last major issue with running in bridged mode

svn path=/trunk/; revision=43663
2009-10-21 02:16:03 +00:00
James Tabor
3d8adae467 - [User32] Rein Klazes : Handle MN_GETHMENU in PopupMenuWndProc.
- [PSDK] Add MN_GETHMENU.

svn path=/trunk/; revision=43661
2009-10-21 00:20:00 +00:00
Christoph von Wittich
7ed3595ed8 -sync mapi32 with wine 1.1.31
svn path=/trunk/; revision=43660
2009-10-20 21:40:47 +00:00
Christoph von Wittich
84b898626f -sync mapi32_winetest with wine 1.1.31
svn path=/trunk/; revision=43659
2009-10-20 21:40:20 +00:00
Dmitry Gorbachev
78fe075215 Change base address of User32 DLL to avoid bug #4908.
svn path=/trunk/; revision=43658
2009-10-20 21:03:47 +00:00
Christoph von Wittich
75b56cce43 -sync mshtml_winetest with wine 1.1.31
svn path=/trunk/; revision=43657
2009-10-20 19:28:26 +00:00
Christoph von Wittich
ed7ac63c3c -sync mshtml with wine 1.1.31
svn path=/trunk/; revision=43656
2009-10-20 19:28:02 +00:00
Gregor Schneider
59245c6725 [gdi32] Prevent possible buffer overrun in TranslateCharsetInfo, see wine bug 19819 for more info
svn path=/trunk/; revision=43655
2009-10-20 18:34:22 +00:00
Aleksey Bragin
64b8e965ef [fastfat_new]
- Increase FCB's OpenCount when opening existing FCB too.
- Properly compare prefixes in FatInsertName.
- Fix a copypaste bug which resulted in an infinite loop while traversing a splay tree of FCB names.
- Implement FatiQueryFsSizeInfo.

svn path=/trunk/; revision=43654
2009-10-20 17:45:59 +00:00
Stefan Ginsberg
ca9d484be7 - Add several missing assertions documented on the MSDN page "Checked Build ASSERTs"
- Fix a typo in MmProbeAndLockPages; assignment within an ASSERT isn't such a good idea! (was harmless though)

svn path=/trunk/; revision=43653
2009-10-20 16:47:01 +00:00
Dmitry Gorbachev
fd33db1896 Fix deprecated conversion from string constant to 'wchar_t*'
svn path=/trunk/; revision=43652
2009-10-20 16:37:51 +00:00
Dmitry Gorbachev
30370a4ecf Move the sacred texts of (L)GPL to the proper place.
svn path=/trunk/; revision=43650
2009-10-20 15:19:34 +00:00
Aleksey Bragin
fbdbf9adb7 - Fix dgorbachev's copypasta.
svn path=/trunk/; revision=43649
2009-10-20 14:46:02 +00:00
Giannis Adamopoulos
d3b95aa689 Fix two user32 resource tests
svn path=/trunk/; revision=43648
2009-10-20 14:42:08 +00:00
Dmitry Gorbachev
d1fe1b42ec Fix build.
svn path=/trunk/; revision=43647
2009-10-20 14:33:31 +00:00
Aleksey Bragin
c013577df5 [fastfat_new]
- Implement root directory open operation.
- Add OpenCount counter to FCB.

svn path=/trunk/; revision=43646
2009-10-20 12:51:13 +00:00
Andrew Hill
dc333c6ad4 [atlnew]
- Initial checkin of minimal atl library
- To prevent conflicts with wine atl dll, this library is named atlnew

svn path=/trunk/; revision=43645
2009-10-20 12:26:51 +00:00
Aleksey Bragin
eb5cc63a28 [fastfat_new]
- Fix an incorrectly placed closing bracket which resulted in ignoring almost all actions when performing relative open. This results in a massive reformatting of FatiCreate.

svn path=/trunk/; revision=43644
2009-10-20 12:03:51 +00:00
Aleksey Bragin
108af8baae [fastfat_new]
- When creating a DCB with a known file handle, always build a full file name, because FullFAT opening code always needs a full name.
- Fix debug prints (%Z -> %wZ).

svn path=/trunk/; revision=43643
2009-10-20 10:32:37 +00:00
Aleksey Bragin
dc040195a0 [fastfat_new]
- From the moment of statically linking to FullFAT library this driver is infected by GPLv3. Fix headers accordingly.

svn path=/trunk/; revision=43642
2009-10-20 10:12:49 +00:00
Aleksey Bragin
4f4bec88a5 [fastfat_new]
- Cleanup the source code from parts which aren't needed anymore (after switching to FullFAT library usage). About 40kb of source code removed.

svn path=/trunk/; revision=43641
2009-10-20 10:02:27 +00:00
Aleksey Bragin
87f0ae4ac5 [ntoskrnl/mm/ARM3]
- Rewrite MmPageEntireDriver in a better way, fix bugs.

svn path=/trunk/; revision=43640
2009-10-20 09:53:29 +00:00
Michael Martin
65aa515215 ehci_alloc, ohci_alloc, uhci_alloc: Initialize DPC before connecting interrupt as the driver has to already be prepared to handle interrupts when calling IoConnectInterrupt.
svn path=/trunk/; revision=43639
2009-10-20 09:17:09 +00:00
Cameron Gutman
13c453792d - Fix a typo in checksum calculation for datagrams with an odd number of octets
- Allow packets with no checksum
 - Remove debug prints that got left behind

svn path=/trunk/; revision=43638
2009-10-20 06:07:34 +00:00
Cameron Gutman
31ba6d7556 - Implement UDP checksum calculation
- Fixes issues with DHCP (and any other UDP traffic) over bridged networking on vbox and issues with other hardware that doesn't like a checksum of 0
 - See bug #4754

svn path=/trunk/; revision=43637
2009-10-20 05:24:37 +00:00
Cameron Gutman
6f08578e3c - Don't set AT_ARP for the loopback interface
- Remove hacks in iphlpapi that hid this bug

svn path=/trunk/; revision=43636
2009-10-20 03:54:27 +00:00
Cameron Gutman
5635553281 - Copy correct data to our lookahead buffer. It was previously missing the media header which messed up the lookahead buffer size passed to ProtocolReceive
- Fix the check for loopback indication. It was previously checking whether the source and destination packets were the same which makes no sense at all
 - Correct the offset and length passed to NdisCopyFromPacketToPacket. The caller's values of these don't include the header size but the packet does
 - Fixes a crash when running "ping 10.0.2.15 -l 1800" on vbox with NAT

svn path=/trunk/; revision=43635
2009-10-20 02:30:05 +00:00
Cameron Gutman
e31be82be3 - Store the indicated packet so NdisTransferData can copy data from it when the caller requests data beyond our allocated lookahead buffer
svn path=/trunk/; revision=43634
2009-10-20 01:35:37 +00:00
James Tabor
15f63b0f9d - Add more information for support with function MmPageEntireDriver. Not sure where to place the function since it uses numbers for IX86/AMD and not ARM. Enable MmDisablePagingExecutive without the register entry to support it.
svn path=/trunk/; revision=43633
2009-10-19 23:04:50 +00:00
Timo Kreuzer
a54b094b78 [NTOSKRNKL]
- add Ke386SetGs, Ke386SetSs macros for amd64
- fix IMAGE_FILE_MACHINE_ARCHITECTURE for amd64, fixes WinDbg kernel version detection
- goto KiSystemStartupReal from KiSystemStartup directly, old boot method is now deprecated

svn path=/branches/ros-amd64-bringup/; revision=43632
2009-10-19 22:49:04 +00:00
Timo Kreuzer
dce6e0a371 - use tabs in rbuild file
- comment out mmebuddy for amd64

svn path=/branches/ros-amd64-bringup/; revision=43631
2009-10-19 22:43:14 +00:00
Timo Kreuzer
6478473436 Add midl compiler flags
svn path=/branches/ros-amd64-bringup/; revision=43630
2009-10-19 22:39:23 +00:00
Aleksey Bragin
3fcf38a55e Daniel Zimmermann <netzimme@aim.com>
- Print module and function name when a wine unimplemented function exception is raised.
See issue #4546 for more details.

svn path=/trunk/; revision=43629
2009-10-19 21:42:27 +00:00
Christoph von Wittich
40ee8ac836 sync widl to wine 1.1.31
svn path=/trunk/; revision=43628
2009-10-19 21:30:54 +00:00
Christoph von Wittich
25d647719b move widl compilerflags to ReactOS-i386.rbuild
svn path=/trunk/; revision=43627
2009-10-19 21:30:34 +00:00
Christoph von Wittich
7f6058b7f6 partial rpcrt4 sync to wine 1.1.31
svn path=/trunk/; revision=43626
2009-10-19 21:18:07 +00:00
Christoph von Wittich
d091e2ea6c -sync msi_winetest with wine 1.1.31
svn path=/trunk/; revision=43625
2009-10-19 21:11:46 +00:00
Christoph von Wittich
82e600f4fe update libxml2 to version 2.7.6
svn path=/trunk/; revision=43624
2009-10-19 19:59:37 +00:00
Aleksey Bragin
751ac9df16 - Add VLC to rapps.
See issue #4882 for more details.

svn path=/trunk/; revision=43623
2009-10-19 19:38:57 +00:00
Christoph von Wittich
da55336659 update libxslt headers as well
svn path=/trunk/; revision=43622
2009-10-19 19:28:32 +00:00
Aleksey Bragin
6fb025f72f - Revert 43599: "Temporarily disable hanging gdi32:metafile test."
svn path=/trunk/; revision=43621
2009-10-19 19:24:39 +00:00
Christoph von Wittich
5923afe8fe update libxslt to version 1.1.26
svn path=/trunk/; revision=43620
2009-10-19 19:11:29 +00:00
Christoph von Wittich
3d8e1d4e02 -sync msxml3 with wine 1.1.31
svn path=/trunk/; revision=43619
2009-10-19 18:58:31 +00:00
Johannes Anderwald
25db485c93 [PORTCLS]
- Silence most dprints of portcls
- Remove dead code
- Fix a bug in PcCreateSubdeviceDescriptor

svn path=/trunk/; revision=43618
2009-10-19 18:54:01 +00:00
Christoph von Wittich
8869f7edc2 -sync msxml3_winetest with wine 1.1.31
svn path=/trunk/; revision=43617
2009-10-19 18:53:22 +00:00
Christoph von Wittich
64c401dd10 -sync atl with wine 1.1.31
svn path=/trunk/; revision=43616
2009-10-19 18:50:02 +00:00
Benedikt Freisen
9b45c01052 [PAINT] rearranging variable declarations for better MSVC compatiblity
svn path=/trunk/; revision=43615
2009-10-19 17:46:29 +00:00
Christoph von Wittich
56d94b0f4e -sync wintrust_winetest with wine 1.1.31
svn path=/trunk/; revision=43614
2009-10-19 17:31:03 +00:00
Christoph von Wittich
75d8628bc1 -sync wintrust with wine 1.1.31
svn path=/trunk/; revision=43613
2009-10-19 17:29:28 +00:00
Christoph von Wittich
cd6b288377 -sync urlmon_winetest with wine 1.1.31
svn path=/trunk/; revision=43612
2009-10-19 17:22:45 +00:00
Christoph von Wittich
3d31b24600 -sync urlmon with wine 1.1.31
svn path=/trunk/; revision=43611
2009-10-19 17:22:21 +00:00
Timo Kreuzer
77bdbbd450 Comment out uniata.sys
svn path=/branches/ros-amd64-bringup/; revision=43610
2009-10-19 17:11:44 +00:00
Timo Kreuzer
1ef46e41d2 add AMD64_LOADER_BLOCK, it currently contains a pointer to freeldrs debugprint function for early debugging
svn path=/branches/ros-amd64-bringup/; revision=43609
2009-10-19 17:06:24 +00:00
Christoph von Wittich
502388c635 -sync jscript_winetest with wine 1.1.31
svn path=/trunk/; revision=43608
2009-10-19 17:03:40 +00:00
Christoph von Wittich
ed2ac13f03 -sync jscript with wine 1.1.31
svn path=/trunk/; revision=43607
2009-10-19 17:03:21 +00:00
Aleksey Bragin
e182f235a1 [ntoskrnl/lpc]
- Mark NtRequestPort/NtReplyPort as implemented.

svn path=/trunk/; revision=43606
2009-10-19 16:37:12 +00:00
Timo Kreuzer
33020c2291 [FREELDR]
- include the intrinsics from the kernel
- set segement selectors

svn path=/branches/ros-amd64-bringup/; revision=43605
2009-10-19 16:19:29 +00:00
Timo Kreuzer
3e799d97d5 [FREELDR]
- Add MempIsPageMapped for debugging puposes
- Map pages for kernel, too in MempSetupPaging
Now we reach the kernel's entry point again.

svn path=/branches/ros-amd64-bringup/; revision=43604
2009-10-19 15:51:57 +00:00
Aleksey Bragin
884aa8948f [ntoskrnl/lpc]
- Implement NtReplyPort based on NtReplyWaitReceivePortEx and LpcReplyPort.
- Implement NtRequestPort based on NtRequestWaitReplyPort and LpcRequestPort.

svn path=/trunk/; revision=43603
2009-10-19 15:49:29 +00:00
Timo Kreuzer
208a01bc0c [FREELDR]
Round up to pages when updating LoaderPagesSpanned to avoid a bug when the last memory region is not mapped.

svn path=/branches/ros-amd64-bringup/; revision=43602
2009-10-19 15:39:16 +00:00
Timo Kreuzer
6de6d2406a [FREELDR]
- Move definition of KIP0PCRADDRESS into arch specific header
- Implement WinLdrSetupForNt for amd64 (copied x86 version)
- Fix mapping of PCR and KI_USER_SHARED_DATA
- Don't enable paging again, it is already enabled on amd64
- Fix WinLdrSetProcessorContext to take a ULONG_PTR not ULONG for Pcr and Tss

svn path=/branches/ros-amd64-bringup/; revision=43601
2009-10-19 12:50:36 +00:00
Timo Kreuzer
679d356bf3 Fix a bug :D
svn path=/branches/ros-amd64-bringup/; revision=43600
2009-10-19 12:36:10 +00:00
Aleksey Bragin
b8f74a1482 - Temporarily disable hanging gdi32:metafile test.
svn path=/trunk/; revision=43599
2009-10-19 11:39:16 +00:00
Timo Kreuzer
2a3e82aae5 [FREELDR]
- Split wlmemory into portable and arch specific code
- Partly implement amd64 version, doesn't work correctly yet

svn path=/branches/ros-amd64-bringup/; revision=43598
2009-10-19 11:29:10 +00:00
Hervé Poussineau
035a83011e Ok, reverting r43565. Someone will have to tell me why it works for me but not for buildbot
svn path=/trunk/; revision=43576
2009-10-18 20:06:09 +00:00
Hervé Poussineau
2d7ba2275a [freeldr] Limit disk read buffer size to 512 bytes
svn path=/trunk/; revision=43575
2009-10-18 19:53:12 +00:00
Timo Kreuzer
9e1db2627d enable winldr style boot
svn path=/branches/ros-amd64-bringup/; revision=43574
2009-10-18 18:54:40 +00:00
Dmitry Gorbachev
dba912455e [HAL, WIN32K] Add typedef.
svn path=/trunk/; revision=43573
2009-10-18 18:53:13 +00:00
Dmitry Gorbachev
112bc907de [3DTEXT, FREELDR, HAL, MINGW_COMMON, MMDRV, MSGINA, NTOSKRNL] Add extern.
svn path=/trunk/; revision=43572
2009-10-18 18:52:56 +00:00
Dmitry Gorbachev
417b31c079 Fix double definition of a variable, add extern.
svn path=/trunk/; revision=43571
2009-10-18 18:52:15 +00:00
Dmitry Gorbachev
9698fa5426 Remove a definition of a variable from a header file.
svn path=/trunk/; revision=43570
2009-10-18 18:52:12 +00:00
Dmitry Gorbachev
d2b83e9175 Update cvconst.h file, from Wine.
svn path=/trunk/; revision=43569
2009-10-18 18:52:08 +00:00
Benedikt Freisen
df983244a3 [PAINT]
- opening files via command line
- file date, time, size and paper resolution (pix. per meter) in attributes dialog
- loading/saving PpM resolution from/to file
- zoom tool shows and zooms to target rectangle
- implemented missing scroll bar functionality
- hiding status bar via menu item prepared

svn path=/trunk/; revision=43567
2009-10-18 18:36:46 +00:00
Timo Kreuzer
5fb8f749c4 [FREELDR]
- move wlmemory.c into arch specific folder
- add elmemory.c and ntsetup.c for amd64 (stubbed)

svn path=/branches/ros-amd64-bringup/; revision=43566
2009-10-18 18:29:25 +00:00
Hervé Poussineau
9c62b2152a [freeldr/i386] Read up to 128 sectors at once
svn path=/trunk/; revision=43565
2009-10-18 18:24:35 +00:00
Timo Kreuzer
3405cb4728 Add HYPER_SPACE, MI_MAKE_OWNER_PAGE, MI_MAKE_WRITE_PAGE and some globals
svn path=/branches/ros-amd64-bringup/; revision=43564
2009-10-18 18:15:52 +00:00
Timo Kreuzer
29106f47ec fix MmSetAddressRangeModified prototype
svn path=/branches/ros-amd64-bringup/; revision=43563
2009-10-18 17:25:59 +00:00
Timo Kreuzer
dfb17b5cd9 Merge trunk (r43561)
svn path=/branches/ros-amd64-bringup/; revision=43562
2009-10-18 17:24:21 +00:00
Timo Kreuzer
125296305f Fix parameters of ExAllocatePoolWithQuota and ExAllocatePoolWithQuotaTag
svn path=/trunk/; revision=43561
2009-10-18 17:12:19 +00:00
Timo Kreuzer
b6930d4c8d ULONG -> ULONG_PTR
svn path=/branches/ros-amd64-bringup/; revision=43560
2009-10-18 16:39:24 +00:00
Timo Kreuzer
cadb3cfe49 Comment out mmebuddy, I currently see no chance compiling this for 64 bit. Please someone fix this.
svn path=/branches/ros-amd64-bringup/; revision=43559
2009-10-18 16:08:31 +00:00
Timo Kreuzer
16ab8ad03b build cardlib only if USERMODE = 1
svn path=/branches/ros-amd64-bringup/; revision=43558
2009-10-18 15:52:07 +00:00
Timo Kreuzer
3213daec4a comment out audio_test for now
svn path=/branches/ros-amd64-bringup/; revision=43557
2009-10-18 15:47:57 +00:00
Christoph von Wittich
c3565096d4 sync advapi32 winetest to wine 1.1.31
svn path=/trunk/; revision=43556
2009-10-18 14:57:22 +00:00
Christoph von Wittich
58a1fb8784 add some NULL checks
svn path=/trunk/; revision=43555
2009-10-18 14:47:16 +00:00
Timo Kreuzer
d901cd4fbe Add alignment checks to KdpSysReadIoSpace and KdpSysWriteIoSpace
svn path=/branches/ros-amd64-bringup/; revision=43554
2009-10-18 14:36:03 +00:00
Johannes Anderwald
37a6c638aa - Partly revert 43533
svn path=/trunk/; revision=43553
2009-10-18 14:22:00 +00:00
Timo Kreuzer
0fb6c8265c Cleanup kernel init code a bit
svn path=/branches/ros-amd64-bringup/; revision=43552
2009-10-18 14:18:42 +00:00
Stefan Ginsberg
4373ffc102 - Fix error return of EnumPrinterKeyA/W, spotted by janderwald
svn path=/trunk/; revision=43551
2009-10-18 14:04:59 +00:00
Stefan Ginsberg
253122a239 Get rid of MmStats -- most of the fields weren't used anymore and we have duplicates for most of the ones that are still in use;
NrTotalPages -> MmNumberOfPhysicalPages
NrFreePages -> MmAvailablePages (new)
Get rid of NrSystemPages. Its value was only respected in MmInitializePageList at boot, even though it got updated later. Use a local variable in MmInitializePageList instead.

Fix SystemBasicInformation to use the correct variables for physical page information. Also, don't set ResidentSystemCodePage in the SystemPerformanceInformation query to some random incorrect Mm value. We don't depend this value anywhere in ReactOS currently, so just set it to 0.

svn path=/trunk/; revision=43550
2009-10-18 13:55:44 +00:00
Stefan Ginsberg
144f1bc166 - Use DBG_STATUS_CONTROL_C instead of magic "1"
- Add missing KdPollBreakIn + DbgBreakPointWithStatus to ARM initialization
- Fix initialization of the D and I cache fields in the PCR -- it was always setting the second level

svn path=/trunk/; revision=43549
2009-10-18 11:50:34 +00:00
Stefan Ginsberg
7eb77b7780 Patch from David "gigaherz" Quintana: Stub out EnumPrinterKeyA/W, minor fixes by me.
svn path=/trunk/; revision=43548
2009-10-18 01:48:30 +00:00
KJK::Hyperion
f0eec39ba8 Update rbuild project file
Fix linker flags

svn path=/trunk/; revision=43547
2009-10-17 21:30:01 +00:00
Christoph von Wittich
002073c923 sync msi to wine 1.1.31
svn path=/trunk/; revision=43546
2009-10-17 21:16:57 +00:00
Christoph von Wittich
72a954c01c fix all gdi32 gdiobj winetests
svn path=/trunk/; revision=43545
2009-10-17 21:04:04 +00:00
Christoph von Wittich
e3d7acd1d3 sync shlwapi to wine 1.1.31
svn path=/trunk/; revision=43544
2009-10-17 20:45:32 +00:00
Timo Kreuzer
f130d66bcd Add some structure offset macros to asm.h for amd64
svn path=/trunk/; revision=43543
2009-10-17 20:19:42 +00:00
Stefan Ginsberg
f38bd8e550 - Fix msvc build broken in 43466 -- please stop hurting msvc, it just wants to be loved (and wants __declspec placed first).
svn path=/trunk/; revision=43542
2009-10-17 20:01:58 +00:00
Christoph von Wittich
f4cc76248f sync dialog to wine 1.1.31 (fixes one dialog winetest)
svn path=/trunk/; revision=43541
2009-10-17 20:00:54 +00:00
Christoph von Wittich
f4eecb6b90 sync edit to wine 1.1.31
svn path=/trunk/; revision=43539
2009-10-17 19:35:42 +00:00
Timo Kreuzer
0ea1ccb49d disable ROS_LONG64 hack for amd64
svn path=/trunk/; revision=43538
2009-10-17 19:19:22 +00:00
Timo Kreuzer
20a908383b Merge 41030 from amd64 branch
svn path=/trunk/; revision=43537
2009-10-17 19:16:01 +00:00
Christoph von Wittich
f9fd097505 [Shell32]: in shell view, use the expected value for the effect in Drag & Drop operation
patch by <eric dot pouech at orange dot fr>

svn path=/trunk/; revision=43536
2009-10-17 19:15:04 +00:00
Timo Kreuzer
a9d250c6a6 build kdcom for amd64, too
svn path=/trunk/; revision=43534
2009-10-17 16:34:07 +00:00
Johannes Anderwald
ba91ff3d49 - Quick & dirty implementation of WIDM_RESET / WODM_RESET
svn path=/trunk/; revision=43533
2009-10-17 15:08:01 +00:00
Stefan Ginsberg
4bbe9c3785 - ntdll: Remove deprecated LdrpLoadUserModuleSymbols that doesn't actually do anything since the hack in NtSystemDebugControl was removed almost 3 years ago.
- Cc: Remove weird check for DBG or KDBG -- debug code should always be wrapped under #if DBG.

svn path=/trunk/; revision=43532
2009-10-17 15:03:54 +00:00
Hervé Poussineau
1943fae14f Fix warning
svn path=/trunk/; revision=43531
2009-10-17 14:55:50 +00:00
Stefan Ginsberg
9a713108ad - Add STATUS_SUCCESS to asm.h and make use of it.
- Implement Bus and I/O space read and write support.
- Implement support for AUTOENABLE, DISABLE and NOUMEX subparameters to /debug. Add the missing string scan and set and respect the related globals properly. Add support for disabling the debugger and suspending breakpoints.
- Add and implement KdIsThisAKdTrap to determine if the kernel debugger can't ignore a particular trap -- returns true for software breakpoints and debug service calls (DbgPrint for example). Called from KiDispatchException to determine whether to override NOUMEX (otherwise, DbgPrint and friends will kill user mode applications). Stub this for KDBG as it implements its own scheme for ignoring user mode.
- KiDispatchException: Clean up some goto and support NOUMEX. Also don't check if KiDebugRoutine is NULL -- it will never be.
- KdEnableDebuggerWithLock should initialize the debugger even if KdDisableCount is 0 (but only if called internally) as this means that the debugger was never initialized in the first place. Required for AUTOENABLE and for enabling the debugger during a bugcheck. Add the globals to kdbg too but don't set or respect them there as kdbg does not support it.
- Enable KdEnableDebugger and implement KdDisableDebugger for KD as KdDisableDebuggerWithLock is now implemented.
- Only build kdmemsup.c if KDBG is defined.

svn path=/trunk/; revision=43530
2009-10-17 14:31:38 +00:00
Hervé Poussineau
494daf26e9 [freeldr] FAT driver: check for directory attribute before parsing the next part of filename
Implement OpenDirectory mode in FAT driver

svn path=/trunk/; revision=43529
2009-10-17 14:05:34 +00:00
Aleksey Bragin
b9e1012f27 [fastfat_new]
- Implement FatiOpenExistingFcb.
- Make FatGetFcbUnicodeName supporting DCBs.
- Implement FF_OpenW wrapper around FullFAT to support opening files/dirs using a unicode name.

svn path=/trunk/; revision=43528
2009-10-17 13:18:29 +00:00
Aleksey Bragin
fdaf0acd73 [fastfat_new]
- Search FCBs with unicode name too, besides of OEM.
- Create an infrastructure for opening existing FCB/DCBs.

svn path=/trunk/; revision=43527
2009-10-17 10:57:48 +00:00
Daniel Reimer
efa205834d Added 11 new Backs for my bavarian cards dll. Way better than 12 times the same ;-)
svn path=/trunk/; revision=43525
2009-10-17 00:09:51 +00:00
Timo Kreuzer
3a1ea98678 ULONG -> ULONG_PTR when casting handles
svn path=/trunk/; revision=43524
2009-10-16 23:11:28 +00:00
Stefan Ginsberg
b3f7a6bd5f Downgrade various debug prints from DPRINT1 to DPRINT, ranging from "useless" to "pretty useless".
svn path=/trunk/; revision=43523
2009-10-16 22:03:38 +00:00
Christoph von Wittich
2def6506a9 fix all msvcrt file winetests
svn path=/trunk/; revision=43522
2009-10-16 21:43:28 +00:00
Christoph von Wittich
821924adcb don't set errno for libcnt
svn path=/trunk/; revision=43521
2009-10-16 21:29:27 +00:00
Christoph von Wittich
59ee8d397a -sync msvcrt_init_io to wine 1.1.31
fixes 12 msvcrt file winetests

svn path=/trunk/; revision=43520
2009-10-16 20:57:00 +00:00
Christoph von Wittich
030837bb5e -fix some msvcrt string winetests
svn path=/trunk/; revision=43519
2009-10-16 20:40:41 +00:00
Christoph von Wittich
0428782362 sync msvcrt winetest with wine 1.1.31
svn path=/trunk/; revision=43518
2009-10-16 20:32:42 +00:00
Aleksey Bragin
9c31ef3801 [fastfat_new]
- Improve FatCreateDcb so that it sets the dir name.
- Implement relative file object open.

svn path=/trunk/; revision=43517
2009-10-16 18:39:38 +00:00
Aleksey Bragin
021a16cdd7 [fastfat_new]
- Implement FatiOpenExistingDir.

svn path=/trunk/; revision=43516
2009-10-16 17:10:12 +00:00
Cameron Gutman
228c572a3f - Add rasadhlp to build and bootcd
svn path=/trunk/; revision=43515
2009-10-16 14:51:35 +00:00
Aleksey Bragin
f00df42b5f [fastfat_new]
- Add a function to read the dirent and return status of that object - does it exist, is it a file or a directory.
- Branch according to this in FatiCreate and try to open either an existing file or an existing directory. Directory open is stubbed.

svn path=/trunk/; revision=43513
2009-10-16 13:11:05 +00:00
Aleksey Bragin
18857bc6be [fastfat_new]
- Minor comments/TODO improvement in FatiCreate.

svn path=/trunk/; revision=43512
2009-10-16 12:29:34 +00:00
Cameron Gutman
c53695755d - Fix build
svn path=/trunk/; revision=43511
2009-10-16 04:41:40 +00:00
Cameron Gutman
181002e46e - Add Alex's rasadhlp
- It builds on my WC but it may not build on trunk (because of our lacking headers)

svn path=/trunk/; revision=43510
2009-10-16 04:33:22 +00:00
Cameron Gutman
6a80145ce3 - Define GUIDs correctly to prevent "multiple definition" errors
svn path=/trunk/; revision=43509
2009-10-16 04:20:34 +00:00
ReactOS Portable Systems Group
d37d315a7e - Move some unimplemented Ex* Pool routines into ARM3's expool.c.
- Move some unimplemented Mm* Pool routines into ARM3's pool.c.


svn path=/trunk/; revision=43508
2009-10-16 00:28:33 +00:00
ReactOS Portable Systems Group
c0bb477b78 - Implement ARM3 page fault handling.
- Paged pool PTEs are demand zero PTEs while the memory hasn't been accessed -- this is the only type of fault supported.
- Because paged pool PDEs are also demand-paged, added code to handle demand paging of PDEs as well.
- Also, because paged pool is non-resident, but can be accessed from any process, we need a mechanism to sync up the kernel's page directory with the per-process one, on demand. This is done at startup, but other processes may have paged in paged pool that another process knows nothing about when he faults.
  - Similar to the hack ReactOS Mm uses, but done properly.
  - This is what that shadow system page directory is finally being used for.
- Assert if we get a user-mode fault, a transition fault, or a soft fault, since these shouldn't happen.
- Disable APCs while dispatching faults, and pseudo-use the working set lock.
- Assert if we get write errors on read-only pages, since we don't use those in ARM3 yet.
- Assert if we have a paged out PTE, this shouldn't happen yet.
- Enable test to see if we can touch a paged pool allocation.


svn path=/trunk/; revision=43507
2009-10-15 22:08:26 +00:00
Timo Kreuzer
036ea51418 Fix definition of CryptReleaseContext
svn path=/branches/ros-amd64-bringup/; revision=43506
2009-10-15 21:54:39 +00:00
Timo Kreuzer
97750a3d39 Update MMPTE
svn path=/branches/ros-amd64-bringup/; revision=43505
2009-10-15 21:50:51 +00:00
Timo Kreuzer
c269c1f512 [HAL]
- Implement HalpQuery8254Counter
- replace Ke386HaltProcessor() with __halt()
- remove excess #endif

svn path=/branches/ros-amd64-bringup/; revision=43504
2009-10-15 21:40:00 +00:00
ReactOS Portable Systems Group
5ac42f871f - Add some simple code to handle paged pool page allocation and freeing in MiAllocatePoolPages and MiFreePoolPages.
- Allocation does not support paged pool expansion yet, so we're limited to the initial 4MB that are initialized on startup.
- This only tests the raw page allocation routines so touching memory will fail as we don't handle paged pool faults yet.
- Nothing excercises this code path other than some simple tests while booting.


svn path=/trunk/; revision=43503
2009-10-15 21:23:24 +00:00
Johannes Anderwald
ac9e8c032c - Revert accidental change
svn path=/trunk/; revision=43502
2009-10-15 20:29:04 +00:00
Timo Kreuzer
d9f7e0d792 The SessionId is not the same as the session pointer. Add fixed code for PsGetThreadSessionId, commented out as we don't have support for Sessions anyway.
svn path=/branches/ros-amd64-bringup/; revision=43501
2009-10-15 20:07:47 +00:00
Timo Kreuzer
5b70ecbdd3 Fix a typo
svn path=/branches/ros-amd64-bringup/; revision=43500
2009-10-15 20:02:41 +00:00
Aleksey Bragin
b2a0c58433 - Update user32_winetest to Wine-1.1.31.
svn path=/trunk/; revision=43499
2009-10-15 20:00:27 +00:00
Timo Kreuzer
d8aabb38fb add init.c to the build
svn path=/branches/ros-amd64-bringup/; revision=43498
2009-10-15 19:58:43 +00:00
Timo Kreuzer
3458af75ee EPROCESS.Session is a PVOID not an ULONG
svn path=/branches/ros-amd64-bringup/; revision=43497
2009-10-15 19:55:06 +00:00
Aleksey Bragin
a96cc21b73 - Update gdi32_winetest to Wine-1.1.31 keeping a bitmap font test skipping hack.
svn path=/trunk/; revision=43496
2009-10-15 19:50:01 +00:00
Aleksey Bragin
637fc75ac0 [PSDK]
- Add MM_MIN / MM_MAX definitions.

svn path=/trunk/; revision=43495
2009-10-15 19:49:10 +00:00
Gregor Schneider
c7d855690a Amendment to r43487: check last character as well
svn path=/trunk/; revision=43494
2009-10-15 19:28:11 +00:00
Timo Kreuzer
dbdde58dae reenable some spinlock code
svn path=/branches/ros-amd64-bringup/; revision=43493
2009-10-15 19:24:21 +00:00
Timo Kreuzer
7c5c4c6f3b - Add CPUID
- rename Ke386InitThreadWithContext to KiInitializeContextThread

svn path=/branches/ros-amd64-bringup/; revision=43492
2009-10-15 19:23:49 +00:00
Timo Kreuzer
2ead68a924 Add some missing macros
svn path=/branches/ros-amd64-bringup/; revision=43491
2009-10-15 19:22:09 +00:00
Timo Kreuzer
0d7713ac09 Add some stuff needed for the ARM3 code
svn path=/branches/ros-amd64-bringup/; revision=43490
2009-10-15 19:20:57 +00:00
ReactOS Portable Systems Group
657da0b009 - Fix comments.
- Fix reading the incorrect pool type when freeing pool. The PoolType in the entry is offset by 1, so it can be either 1 for NonPaged or 2 for paged. This used to give us index 0 for nonpaged (correct), and index -1 for paged (oops!). Mask by 3 instead, so we get 0 and 1.


svn path=/trunk/; revision=43489
2009-10-15 19:19:40 +00:00
ReactOS Portable Systems Group
3b34847f3e - Collapse MmInit1 into MmInitSystem.
- Check for ARM3-owned memory areas during a page fault, and crash the system as this shouldn't happen yet.
- Use portable PTE macro instead of setting the owner bit directly, fixing an ARM port build issue.


svn path=/trunk/; revision=43488
2009-10-15 19:12:43 +00:00
Gregor Schneider
b452b0b30a [kernel32] IsBadStringPtrA/W:
- Remove overflow failure case, this isn't checked for string validation
- Adapt page check to let the full string be checked in case of overflow
See issue #4861 for more details.

svn path=/trunk/; revision=43487
2009-10-15 19:12:37 +00:00
ReactOS Portable Systems Group
071a297838 - Fix a bug in memory area creation: Static memory areas had the static flag embedded in their type, so code that was switch()ing on the type would fail to recognize the actual type, because MEMORY_AREA_STATIC was ORed in.
- Add a new memory area type: MEMORY_AREA_OWNED_BY_ARM3. This will allow us to instruct the ReactOS Memory MAnager to "Back. The Fuck. Off."  during page faults and such, so we can handle page faults inside ARM3-owned PTEs ourselves.
  - Right now, all ARM3 PTEs and data is nonpaged, so no page faults should happen, but this may change in the future.
  - Also will allow us to manage our own PDEs so we can do on-demand inpage instead of syncing with the ReactOS Mm hack cache.
- Create all memory areas in one shot in MmCreateSystemMemoryAreas (get rid of MiInitPageDirectoryMap and MiInitPagedPool memory area creation).
  - Mark all of ours as owned by ARM3.
  - Make them all static.
  - The only non-ARM3 one right now is paged pool, we own all the other static areas.
  - Move this code into mm, instead of mm/ARM3, since memory areas are not an ARM3 concept.
  - Also create memory areas for session space, session view, and other ARM3 memory ranges, so nobody touches those ranges.
- Dump the kernel address space after all this is done, in a MmDbg function in mm.
- This cleans up ARM3 of some ROS-specific code, and also collapses Phase 1 and 2 into a single phase.


svn path=/trunk/; revision=43486
2009-10-15 18:54:35 +00:00
Aleksey Bragin
8774094ea9 [kernel32]
- Initialize PreviousStackBase/Limit to NULL in BasepCreateStack. Previously this bug was hidden because those values were ignored by the kernel.

svn path=/trunk/; revision=43485
2009-10-15 18:36:35 +00:00
Stefan Ginsberg
c199e1e3ee - MiReserveAlignedSystemPtes: Add missing lock release, spotted by janderwald
svn path=/trunk/; revision=43484
2009-10-15 18:34:21 +00:00
ReactOS Portable Systems Group
e233c46dec - Add required globals for the ARM port.
svn path=/trunk/; revision=43483
2009-10-15 17:41:09 +00:00
ReactOS Portable Systems Group
b20ae45a3f - Fix calculations error in the setup of the paged pool bitmap.
- Initialize the paged pool guarded mutex.
- Add helper routines ExLock/UnlockPool to either acquire the NPP QSL or the PP GM depending on the pool descriptor, instead of hardcoding the NPP QSL.
- Implement InitializePool for the PagedPool case.
- Now call InitializePool for PagedPool as well.


svn path=/trunk/; revision=43482
2009-10-15 17:23:21 +00:00
ReactOS Portable Systems Group
331debbeec - Get rid of mm/mmsup.c and move some of the ROS-internal functions better where they belong.
- Add ARM3/mmsup.c for miscellaneous function helper functions.
  - Implemented:
  - Move MmIsRecursiveIoFault, MmIsThisanNtAsSystem and MmQuerySystemSize. These belong here.
  - Unimplemented:
  - Move MmSetBankedSection and fix the prototype. This should probably go somewhere else later.
  - Move MmAdjustWorkingSetSize and fix the prototype. This should probably go in procsup.c later.
  - Move MmMapUserAddressesToPage. This should also probably go in procsup.c later.
  - Move MmSetAddressrangeModified and MmIsNonPagedsystemAddressValid. These should probably go somewhere else later.

svn path=/trunk/; revision=43481
2009-10-15 17:01:31 +00:00
ReactOS Portable Systems Group
c04d1d038e - Multiple Virtual Memory API fixes:
- MiDoMappedcopy: The MDL should have 16 pages total, so MI_MAPPED_COPY_PAGES should be 14, not 16, to account for the MDL page itself, and the extra add-on page.
  - MiDoMappedCopy: Check for working set quota exception.
  - NtRead/WriteVirtualMemory: Do not attempt to do any work if the size is 0.
  - NtRead/WriteVirtualMemory: Do not return SEH status if we fail to write the number of bytes read/written -- return the function status.
  - NtProtectVirtualMemory: Protect the memory while attached to the target process.
  - NtProtectVirtualMemory: Do not return SEH status if we fail to write the number of bytes protected -- return the function status.
  - NtLock/UnlockVirtualMemory: Fix incorrect function definition. The last parameter is a bitfield. The middle two parameters are pointers, not values.
  - VirtualLock/Unlock: Fix calling NtLock/UnlockVirtualMemory with new correct function definitions. Call with MAP_PROCESS.
  - NtLock/UnlockVirtualMemory: Apply SEH. Validate flags. Validate parameters.
  - NtLock/UnlockVirtualMemory: Attach to the process while doing the operation. Reference the process.
  - NtLock/UnlockVirtualMemory: Check for SE_LOCK_MEMORY_PRIVILEGE if MAP_SYSTEM is specified.
  - Move MAP_SYSTEM and MAP_PROCESS from ntifs.h to mmtypes.h in NDK.
  - NtLock/UnlockVirtualMemory: Return success and semi-legitimate return values saying nothing was actually done.
  - NtFlushVirtualMemory: Apply SEH. Validate flags. Validate parameters. Call MmFlushVirtualMemory.
  - NtFlushVirtualMemory: Reference the process.
  - NtFlushVirtualMemory: Return success and semi-legitimate return values indicating nothing was flushed.
  - NtGetWriteWatch: Fix function prototype.
  - NtGet/ResetWriteWatch: Apply SEH instead of hacked parameter checks. Validate parameters.
  - NtGet/ResetWriteWatch: Reference the process.
  - NtGet/ResetWriteWatch: Return semi-legitimate return values indicating nothing was written to.
- These APIs are now owned by ARM3.


svn path=/trunk/; revision=43480
2009-10-15 16:50:49 +00:00
Aleksey Bragin
e3d56ce220 - Fix inverted if condition in TEB initialization, spotted by Stefan.
svn path=/trunk/; revision=43479
2009-10-15 16:47:26 +00:00
Gregor Schneider
1eebc8c0cf Remove duplicate libjpeg from rosapps, used one is in trunk
svn path=/trunk/; revision=43478
2009-10-15 15:19:58 +00:00
Aleksey Bragin
c3e1235c5a [fastfat_new]
- Add a helper function for reading (mapping) volume's stream file object.
- Read a boot sector during volume mounting, unpack it and store values in Vcb->Bpb for later usage. In particular, a volume's serial number being empty problem is fixed now. Volume label is still empty.
- Silence more non-important debug prints.

svn path=/trunk/; revision=43477
2009-10-15 10:50:12 +00:00
ReactOS Portable Systems Group
1ea8fff57a - Multiple PEB/TEB creation fixes:
- Set up PEB and TEB under SEH to handle possible paging errors (which are legitimate).
  - Also touch the image under SEH to handle image paging errors (also legitimate).
  - Should avoid kernel panics in cases where the executable is damaged, invalid, or impossible to page in.
  - Initialize more PEB fields.
  - Add new INITIAL_PEB structure to support fork() in the future. Also fixes the fact we don't create a PEB for the system process anymore.
  - Create PEB while attached to the process.
  - Handle UP-only images, and set correct affinity mask in the PEB.
  - Set session ID instead of session structure (currently zero).
  - Set correct TIB version in the TEB. Due to a historical oddity, the NT TIB identifies itself as '0x1e00', which is 30 shifted 8 bits. 30 is the version identifier of OS/2 3.0, the original 32-bit target of the Windows NT effort.
  - Handle initial TEB correctly for fork().
  - Move AWE APIs to procsup.c instea of section.c since they are unrelated.
  - Move the rewritten PEB/TEB functions to ARM3's procsup.c.

svn path=/trunk/; revision=43476
2009-10-15 05:56:41 +00:00
James Tabor
0387f3045a - Revert 43470.
svn path=/trunk/; revision=43475
2009-10-15 05:23:06 +00:00
ReactOS Portable Systems Group
649c4322fc - unix is one of many platforms that use LP64, so instead of defining every single possible OS which uses LP64, how about we define the *only* OS that uses LLP64: Win64.
- Fixes building on BSD and Solaris.


svn path=/trunk/; revision=43474
2009-10-15 04:34:47 +00:00
ReactOS Portable Systems Group
d2b61cb87e - Define KeInitializeSpinLock for ARM to unbreak build.
svn path=/trunk/; revision=43473
2009-10-15 04:24:13 +00:00
ReactOS Portable Systems Group
b938d88b35 - Add some more PTE field macros for portability.
- Define PTE_TOP.


svn path=/trunk/; revision=43472
2009-10-15 04:09:36 +00:00
ReactOS Portable Systems Group
a97e4c52ab - Remove calls to MmMarkPageMapped/UnMapped -- these APIs don't exist anymore.
- Unbreaks part of kernel ARM build.


svn path=/trunk/; revision=43471
2009-10-15 04:03:37 +00:00
Cameron Gutman
b8d2774f7e - Fix a typo
svn path=/trunk/; revision=43470
2009-10-15 02:26:16 +00:00
Cameron Gutman
45c5b396f7 - Import Alex's dnslib
- Add headers and definitions needed for dnslib to build
 - Part 2 of 2

svn path=/trunk/; revision=43469
2009-10-15 01:23:39 +00:00
Cameron Gutman
d7ac1e87e8 - Import Alex's dnslib
- Part 1 of 2

svn path=/trunk/; revision=43468
2009-10-15 01:04:39 +00:00
Hervé Poussineau
7b529de220 [freeldr] List in menu all entries from [Operating Systems] section, even if they don't have an associated section
Try to infer the boot type if not specified
See issue #4455 for more details.

svn path=/trunk/; revision=43467
2009-10-14 21:04:44 +00:00
Timo Kreuzer
9fcbb3422d Some 64 bit heap fixes by encoded, merged from amd64 branch
svn path=/trunk/; revision=43466
2009-10-14 20:46:58 +00:00
Timo Kreuzer
bb2982398a Define __unaligned to nothing on gcc, we don't need it for amd64, and the old definition was wrong anyway.
Fix definition of UNALIGNED for amd64.

svn path=/trunk/; revision=43465
2009-10-14 20:09:13 +00:00
Sylvain Petreolle
d123d28729 fix typo
svn path=/trunk/; revision=43464
2009-10-14 19:44:23 +00:00
Johannes Anderwald
d97059c731 - Fix debugging flood
- Pass correct flags to KsProbeStreamIrp
- Remove dead code

svn path=/trunk/; revision=43463
2009-10-14 18:09:28 +00:00
Stefan Ginsberg
f1d4f68d22 - Remove a hack from KiGetMachineBootPointers and set the TSS selector properly in KiRosPrepareForSystemStartup instead.
- Use KGDT_TSS in WinLdrSetProcessorContext instead of a hardcoded value.

svn path=/trunk/; revision=43462
2009-10-14 18:07:29 +00:00
Stefan Ginsberg
e5604f31b1 Move x86 assembly macros into the x86 directory.
svn path=/trunk/; revision=43461
2009-10-14 17:21:56 +00:00
Timo Kreuzer
c236dd31f9 Fix definition of PORT_MAXIMUM_MESSAGE_LENGTH for 64 bit
svn path=/trunk/; revision=43460
2009-10-14 17:05:51 +00:00
Johannes Anderwald
a299db4e69 - Fix debugging flood #2
svn path=/trunk/; revision=43459
2009-10-14 17:04:08 +00:00
Timo Kreuzer
e34f5ea80b Add back PORT_MAXIMUM_MESSAGE_LENGTH for user mode, thanks Stefan
svn path=/trunk/; revision=43458
2009-10-14 17:03:41 +00:00
Johannes Anderwald
c2f2fe2649 - Fix debugging flood
svn path=/trunk/; revision=43457
2009-10-14 16:59:07 +00:00
Timo Kreuzer
b40f0f355b [NDK] remove PORT_MAXIMUM_MESSAGE_LENGTH, it's defined in wdm.h
svn path=/trunk/; revision=43456
2009-10-14 16:56:54 +00:00
Timo Kreuzer
af3f2d5454 Merge amd64 NDK from amd64 branch:
34711, 34712, 34842, 34925, 34967, 34970, 35323, 35324, 35347, 35348, 35361, 35436, 35509, 35588, 35739, 35823, 35952, 35966, 36360, 37323, 37434, 37472, 37536, 37820, 37821, 37869, 37990, 38013, 38014, 43426, 43454

svn path=/trunk/; revision=43455
2009-10-14 16:45:35 +00:00
Timo Kreuzer
fccc4f0a40 Update MMPTE_HARDWARE
svn path=/branches/ros-amd64-bringup/; revision=43454
2009-10-14 16:32:41 +00:00
Aleksey Bragin
fd5c075531 [fastfat_new]
- Implement shared VCB locking.
- Implement QueryVolumeInfo common handler, and a handler of QueryFsVolumeInfo class. Doesn't currently work due to missing VPB.

svn path=/trunk/; revision=43453
2009-10-14 15:59:14 +00:00
Timo Kreuzer
91984711f0 Update ReactOS-amd64.rbuild
svn path=/trunk/; revision=43452
2009-10-14 14:29:32 +00:00
Timo Kreuzer
84770fa03a Fix NtGetWriteWatch and NtResetWriteWatch parameters
svn path=/branches/ros-amd64-bringup/; revision=43451
2009-10-14 13:25:30 +00:00
Timo Kreuzer
0239d1ae85 fix copy paste error
svn path=/branches/ros-amd64-bringup/; revision=43450
2009-10-14 11:56:36 +00:00
Timo Kreuzer
c321e57645 prefix DEBUG_CONTROL constants with AMD64 as they are architecture specific
svn path=/branches/ros-amd64-bringup/; revision=43449
2009-10-14 11:53:30 +00:00
Timo Kreuzer
b29a47bfdf [KD64]
- use SEH in KdpSysReadMsr
- use constants for KdpSysReadControlSpace cases (DEBUG_CONTROL_SPACE_KSPECIAL taken from singularity)
- implement case DEBUG_CONTROL_SPACE_KTHREAD returning a pointer to the current thread
- Implement KdpSysReadIoSpace, KdpSysWriteIoSpace for amd64, can be used for x86, too

svn path=/branches/ros-amd64-bringup/; revision=43448
2009-10-14 11:39:59 +00:00
Timo Kreuzer
3c1b6d34c0 [DDK] Fix MmSizeOfMdl prototype
svn path=/branches/ros-amd64-bringup/; revision=43447
2009-10-14 11:23:57 +00:00
Johannes Anderwald
7f2ba55772 - Implement KSPROPERTY_CONNECTION_ALLOCATORFRAMING for CPortPinWaveCyclic + CPortPinWavePci
svn path=/trunk/; revision=43446
2009-10-14 10:24:19 +00:00
Michael Martin
a9b7f4cd7a - CmpPrepareKey: If cell signature is CM_KEY_NODE_SIGNATURE, the KeyCell is index leaf, handle it properly by calling CmpPrepareKey vice CmpPrepareIndexOfKeys. Fixes ASSERT in cminit.c that occurs on reboot after installing some applications.
svn path=/trunk/; revision=43445
2009-10-14 09:50:31 +00:00
Christoph von Wittich
7143b94c1b -revert accidental change
svn path=/trunk/; revision=43444
2009-10-13 21:51:16 +00:00
Christoph von Wittich
688c43c992 [BDASUP]
-fix some function declarations

svn path=/trunk/; revision=43443
2009-10-13 21:49:36 +00:00
Christoph von Wittich
df9eccd994 partial sync to wine 1.1.31
svn path=/trunk/; revision=43442
2009-10-13 21:09:08 +00:00
Gregor Schneider
3a38bb048a [spider]
- Check for completed stack after dealing cards by installing one function to do this in call three cases, bug #4886
- Fix and simplify drop rules (only by number) and validation rules (by number and type) for two and four color games
- Fix typo in Polish Translation

svn path=/trunk/; revision=43441
2009-10-13 20:34:05 +00:00
Stefan Ginsberg
26a8c4b69a - Add the MMDBG_COPY_* flags and MmDbgCopyMemory's prototype.
- Add KdpCopyMemoryChunks and use it to handle virtual memory read/write (physical memory support still stubbed). The actual copy is still a hack and its only safeguard against invalid memory is still a simple check for NULL.
- Properly implement KdpReadVirtualMemory, KdpWriteVirtualMemory, KdpReadPhysicalmemory and KdpWritePhysicalmemory using KdpCopyMemoryChunks.
- Merge Timo's ReportFlags fix from the AMD64 branch.
- Implement KdpSysWriteMsr and KdpSysReadMsr for x86. SEH is commented as our GPF handler seems to swallow exceptions caused by accessing invalid MSRs.
- Change DataValue parameter of KdpSysReadIoSpace and KdpSysWriteIoSpace to PVOID to better match how it is used.

svn path=/trunk/; revision=43440
2009-10-13 19:45:40 +00:00
Dmitry Gorbachev
bfb5499f5c - See if it is a multibyte code page.
- Remove check against zero.
- Fix comments, formatting.

svn path=/trunk/; revision=43439
2009-10-13 18:43:42 +00:00
Aleksey Bragin
352dfbf644 [rtl]
- Fix an out-of-bounds read in RtlpDidUnicodeToOemWorked.
See issue #4888 for more details.

svn path=/trunk/; revision=43438
2009-10-13 18:01:55 +00:00
Johannes Anderwald
89bda0c12e - Fix various bugs such as wrong function definitions, using of uninitialized variables
- Add macros which are not present in the WDK
- Check return type of synchronized interrupt routine
- Use PcHandlePropertyWithTable IPortPinWavePci
- Remove IServiceSink implementation from IPortWaveRt as it is a hack
- Add a small hack to IResource list implementation as prefast doesnt find decl of NumberOfEntries
- Fix build

svn path=/trunk/; revision=43437
2009-10-13 12:29:41 +00:00
Johannes Anderwald
09ef80af6b - Fix interface definition
svn path=/trunk/; revision=43436
2009-10-13 12:25:10 +00:00
Timo Kreuzer
6ed81cbca1 [Kd64] Copy KdVersionBlock like for x86, fix Value of ReportFlags member in KdpSetContextState for both x86 and amd64
svn path=/branches/ros-amd64-bringup/; revision=43435
2009-10-13 11:19:07 +00:00
Dmitry Gorbachev
05f6ac1ea8 Temporary hack to avoid linker errors when building with RosBE 1.5B1.
svn path=/trunk/; revision=43434
2009-10-13 03:34:29 +00:00
Timo Kreuzer
8b716f4e2d Implement KdpSysGetVersion, KdpGetStateChange, KdpSetContextState, KdpSysReadMsr, KdpSysWriteMsr, KdpSysReadControlSpace for amd64
svn path=/branches/ros-amd64-bringup/; revision=43433
2009-10-13 00:52:45 +00:00
Timo Kreuzer
c615edc822 Add back some stuff that got lost in syncing
svn path=/branches/ros-amd64-bringup/; revision=43432
2009-10-13 00:33:04 +00:00
Dmitry Gorbachev
dd487188b9 Check for error.
svn path=/trunk/; revision=43431
2009-10-12 23:52:56 +00:00
Dmitry Gorbachev
bb99554339 Fix "array subscript is above array bounds" bug.
svn path=/trunk/; revision=43430
2009-10-12 23:52:33 +00:00
Timo Kreuzer
55f70cb149 On 64 bit sizeof(POOL_HEADER) != sizeof(LIST_ENTRY)! I have not checked how this stuff works, but this way it's not portable. Comment out the C_ASSERT to make it at least compile on 64 bit.
svn path=/branches/ros-amd64-bringup/; revision=43429
2009-10-12 23:32:44 +00:00
Timo Kreuzer
ce254278da ARM3 64bit portability fixes.
svn path=/branches/ros-amd64-bringup/; revision=43428
2009-10-12 23:29:14 +00:00
Timo Kreuzer
bb37e77d20 Implement/fix some amd64 Mm macros
svn path=/branches/ros-amd64-bringup/; revision=43427
2009-10-12 23:26:12 +00:00
Timo Kreuzer
c2cbb8cae7 [NDK] add CBSTACK_FRAME_POINTER for amd64
svn path=/branches/ros-amd64-bringup/; revision=43426
2009-10-12 23:10:43 +00:00
Johannes Anderwald
ce7bb91b16 - Add more types
svn path=/trunk/; revision=43425
2009-10-12 22:44:17 +00:00
Johannes Anderwald
303bae9dcb - Pointer / handle values should be printed with %p. Found by Christoph
- Add the sum / mixer node to the destination pin
- Only create MIXERVOLUME_DATA when there is an actual range
- Use unsigned members to calculate the range

svn path=/trunk/; revision=43424
2009-10-12 22:36:10 +00:00
Timo Kreuzer
e98b824556 fix the kernel's rbuild file
svn path=/branches/ros-amd64-bringup/; revision=43423
2009-10-12 22:16:52 +00:00
Timo Kreuzer
cb662b3fc9 Sync to trunk HEAD (r43416)
svn path=/branches/ros-amd64-bringup/; revision=43422
2009-10-12 22:00:47 +00:00
Timo Kreuzer
9e839804df svn repair attempt
svn path=/branches/ros-amd64-bringup/; revision=43421
2009-10-12 21:58:04 +00:00
Matthias Kupfer
d5a7f4b694 experimental mouse click lock feature
svn path=/trunk/; revision=43420
2009-10-12 21:08:35 +00:00
Gregor Schneider
9928349968 [spider] Polish translation by Maciej Białas
svn path=/trunk/; revision=43419
2009-10-12 21:07:19 +00:00
Christoph von Wittich
b4053fedd1 [SYSAUDIO]
-pass the correct amount of parameters to DPRINT

svn path=/trunk/; revision=43418
2009-10-12 21:06:21 +00:00
Matthias Kupfer
750be30cc9 - small fix for SystemParametersInfo-call for DragFullWindows
- disable incomplete UserPref settings

svn path=/trunk/; revision=43417
2009-10-12 21:02:25 +00:00
Aleksey Bragin
101f8fcb31 [kernel32]
- Remove incorrect null-termination of a string. Thanks to Russel for spotting.
See issue #4820 for more details.

svn path=/trunk/; revision=43416
2009-10-12 19:45:12 +00:00
Johannes Anderwald
417ebeb75f - Add missing types
svn path=/trunk/; revision=43415
2009-10-12 19:21:10 +00:00
Johannes Anderwald
0aa48e9268 [PORTCLS]
- Store MiniportStream & pin instance in subdevice descriptor
- Simplify irp handling code in class IIrpStream
- Rewrite CPortPinWaveCyclic code to handle property request. It now uses PcHandlePropertyWithTable, which calls the supported property request handlers via a callback. The code is now a lot cleaner as KsPropertyHandler peforms input & output length checks and also handles basic support requests
- Implement a Audio position handler for CPortPinWaveCyclic
- Use the IDmaChannel::CopyFrom when copying sound bytes from an dma buffer. Fixes recording of sound with KsStudio
- Make sure that the GUID_NULL handler only adds guid which are not already present in the guid array. Fixes duplicate entries of properties of Nodes in KsStudio
- Handle Basic Support requests in a default way when the driver doesnt provide a BasicSupport handler

svn path=/trunk/; revision=43414
2009-10-12 19:20:33 +00:00
Gregor Schneider
c15e161f91 [sol], [spider]
- Allow to select a card back from all twelve possibilities (instead of four), related to bug #2535
[spider]
- Fix encoding of the Spanish resource file, thanks elhoir and gabriel_it

svn path=/trunk/; revision=43413
2009-10-12 18:52:44 +00:00
Stefan Ginsberg
ed7f3daf87 - Fix usbdlib.h -- don't assume that the basic calling convention is stdcall.
svn path=/trunk/; revision=43412
2009-10-12 18:40:18 +00:00
Johannes Anderwald
d6c99976ac - Revert 43410
svn path=/trunk/; revision=43411
2009-10-12 18:27:00 +00:00
Johannes Anderwald
9b46acbff0 - Fix typo
svn path=/trunk/; revision=43410
2009-10-12 18:20:23 +00:00
Gregor Schneider
a3615254ed [spider]
- Increase dialog width for German, increase "four card difficulty" label width for Spanish
- Compile as Unicode, misc typos

svn path=/trunk/; revision=43408
2009-10-12 17:37:42 +00:00
Johannes Anderwald
54d11c96f0 [KS]
- Activate handling of requests of type KSPROPERTY_TYPE_BASICSUPPORT
- Return correct status code in the GUID_NULL handler

svn path=/trunk/; revision=43407
2009-10-12 17:04:15 +00:00
Johannes Anderwald
3c2e2137ce [WDMAUD.DR>V]
- Use default of 100 audio buffers if there are no prefered frame size available

svn path=/trunk/; revision=43406
2009-10-12 16:58:46 +00:00
Daniel Reimer
c41c8bf584 - Updated DejaVu Fonts to Version 2.30
- Updated 3rd Party Files Document

svn path=/trunk/; revision=43400
2009-10-12 14:10:57 +00:00
Aleksey Bragin
0f711aae4c [fastfat_new]
- Start implementing volume open requests.

svn path=/trunk/; revision=43397
2009-10-12 13:17:56 +00:00
Michael Martin
6be2aea1b3 - Change DIALOG_CreateIndirect location in source to make DEFDLG_SaveFocus available for use.
- DIALOG_CreateIndirect: The current window with focus could have been set in the dialog's procedure, so save the current focused window after sending WM_INITDIALOG and before any other message are sent that modify focus.
- Fixes setting focus on Open and Close dialogs to the FileName edit control in OpenOffice.

svn path=/trunk/; revision=43396
2009-10-12 12:47:54 +00:00
Dmitry Chapyshev
6eb3586017 - Add some structures
svn path=/trunk/; revision=43395
2009-10-12 12:28:22 +00:00
Dmitry Chapyshev
3ed9870bca - Stub implement SfcGetNextProtectedFile
svn path=/trunk/; revision=43394
2009-10-12 12:25:02 +00:00
Aleksey Bragin
0a427ec6b6 [fastfat_new]
- Implement a stub version of basic information query. Fixes an "autochk.exe" not found problem.

svn path=/trunk/; revision=43393
2009-10-12 10:22:32 +00:00
Michael Martin
25a93ac224 GetDlgItem: Change to WINE's implementation as ours was incorrect. Remove function GetDlgItemEnumProc and struct GETDLGITEMINFO as they are no longer needed. Fixes drawing issues in Open and Save dialogs for OpenOffice.
svn path=/trunk/; revision=43392
2009-10-12 09:50:57 +00:00
Aleksey Bragin
978aff9a6e [fastfat_new]
- Downgrade most of file info debug prints.

svn path=/trunk/; revision=43391
2009-10-12 09:37:07 +00:00
Aleksey Bragin
388ffabace [fastfat_new]
- Implement all infrastructue for constructing filenames in FCBs, and use it to build full file names. Every FCB has four names: a short upcased name in ANSI, a long upcased name in Unicode, a name in exact case in Unicode, and finally a full file name including all path up to the root.
- FatiQueryFileNameInformation now returns correct file name, and other places relying on presence of a correct name work now.

svn path=/trunk/; revision=43390
2009-10-12 09:30:41 +00:00
Dmitry Gorbachev
ab802377c7 - Remove svn:needs-lock, svn:eol-type, and svn:eol-tyle properties.
- Add missing svn:eol-style properties.

svn path=/trunk/; revision=43389
2009-10-12 03:35:35 +00:00
Dmitry Gorbachev
854ec39df3 Use consistent newline style.
svn path=/trunk/; revision=43388
2009-10-12 03:28:57 +00:00
Dmitry Gorbachev
e29cd23a7e Remove allowwarnings="true" from rbuild file. Fixed in r42970.
svn path=/trunk/; revision=43387
2009-10-12 03:28:19 +00:00
Dmitry Gorbachev
27f05c27a8 [CHEW]
- Fix formatting, comments.
- Delete an empty directory.

svn path=/trunk/; revision=43386
2009-10-12 03:27:45 +00:00
Dmitry Chapyshev
ac4cdf694c - Add Russian translation
svn path=/trunk/; revision=43385
2009-10-12 02:28:37 +00:00
Dmitry Gorbachev
fe9f54902e Update / add Japanese translations. Tomoya Kitagawa, bug #4884.
svn path=/trunk/; revision=43384
2009-10-11 23:23:34 +00:00
Dmitry Gorbachev
77ded269ca Update Japanese translations. Tomoya Kitagawa, bug #4884.
svn path=/trunk/; revision=43383
2009-10-11 23:23:30 +00:00
Stefan Ginsberg
3a58832c04 - Fix a critical bug in KeFindConfigurationEntry; it passed NULL to KeFindConfigurationNextEntry instead of passing a pointer containing NULL. KeFindConfigurationNextEntry dereferenced this and, because the old bootloader maps NULL, read some bogus value. KeFindConfigurationNextEntry would then try to find something in the configuration tree that matched this, but failed. This was no problem because we currently have no callers of those routines in ReactOS. However, the kdcom.dll from Windows 2003 calls KeFindConfigurationEntry to find COM port entries, and this would have crashed if FreeLdr hadn't mapped it. As it is, it didn't, and kdcom fell back to default values for the COM port (which worked). WinLdr doesn't map NULL and this resulted in a crash during kdcom initialization. Bug introduced in revision 15911 over 4 years ago. KD64 now works when booting with the new boot method.
svn path=/trunk/; revision=43382
2009-10-11 21:57:52 +00:00
Stefan Ginsberg
5d5e6d95d9 - Woooops, fix MP hal build.
svn path=/trunk/; revision=43381
2009-10-11 20:40:19 +00:00
Stefan Ginsberg
31c45b85d7 - Stub out DbgKdWriteVirtualMemoryApi, DbgKdReadPhysicalMemoryApi, DbgKdWritePhysicalMemoryApi, DbgKdWriteBreakPointExApi, DbgKdRestoreBreakPointExApi, DbgKdSearchMemoryApi and DbgKdFillMemoryApi cases more properly.
- Fail on physical memory write like we do for read too.
- Don't handle OldVlm1/2 as they appear to be deprecated and unhandled in Windows.
- Implement HalHaltSystem to halt execution in a portable way. Default to xHalHaltSystem, a simple infinite loop, if we get called before HAL has initialized. Use this in KiBugCheckDebugBreak and the system shutdown handler instead of x86/AMD64/ARM intrinsics.
- Don't try to halt the CPU if KeBugCheck has been called 3 times or more -- if this happens, something has gone very wrong, and we shouldn't try to do anything special. Just loop infinitely.
- Fix KiBugCheckDebugBreak -- it shouldn't halt execution when called for the first chance as bugcheck callbacks have not been invoked at this point (nor has the BSOD been displayed). Use SEH to protect against a crash instead of checking KdDebuggerNotPresent as the debugger, if it is present, *could* disconnect while the trap is being handled. Also, don't halt execution if the debugger handled the breakpoint, just break again.
- Don't call MmMapIoSpace from HalpReboot! The reboot might take place at elevated IRQL (as high as HIGH_LEVEL if called from KeBugCheck), and thus can't use any Mm support routines. Use a PTE from the reserved HAL region and map it ourselves instead as done in the BIOS call code.
- Acquire the display ownership in HalReturnToFirmware in case the caller hasn't done so (as done in the KD reboot routine, for example).
- Just include ntndk.h in hal.h instead of including 6 NDK headers (which turns into more than half of the NDK anyway since those headers include other NDK headers).
- Crashing and rebooting from KD now works properly.

svn path=/trunk/; revision=43380
2009-10-11 20:16:45 +00:00
Gregor Schneider
d00f6c4b5c [spider] Address two more gcc 4.4 parenthesis warnings
svn path=/trunk/; revision=43379
2009-10-11 18:10:48 +00:00
Hervé Poussineau
9b1f5baa24 [freeldr] Fix typo: REGISTER -> REGISTRY
svn path=/trunk/; revision=43378
2009-10-11 17:10:32 +00:00
Hervé Poussineau
02db465a10 [freeldr] Rework the ramdisk driver to let it be a full device, instead of a deprecated harddisk which was only available once real harddisks were disabled
Add support for /RDPATH switch in WINLDR boot style

svn path=/trunk/; revision=43377
2009-10-11 17:08:33 +00:00
Gregor Schneider
84625e3ee4 [spider]
- Spanish and Italian translations by Javier Agustìn Fernàndez Arroyo and Gabriel Ilardi
- Rename Programmer to Translator in existing resource files, remove Programmer in new ones
See issue #4885 for more details.

svn path=/trunk/; revision=43376
2009-10-11 16:00:07 +00:00
Gregor Schneider
5fad423e37 [cardlib] Re-add changes that got lost due to an old version being used as base
svn path=/trunk/; revision=43375
2009-10-11 14:15:02 +00:00
Dmitry Chapyshev
3002382fb4 - Add spider.exe to bootcd
- Add shortcut for spider

svn path=/trunk/; revision=43374
2009-10-11 14:00:18 +00:00
Gregor Schneider
804567c4c8 Remove solitaires local cardlib copy
svn path=/trunk/; revision=43373
2009-10-11 12:10:57 +00:00
Gregor Schneider
84e271496c [spider]
- Add a spider solitaire clone
- Relies on the Catch22 cardlib
- Supports all three playing modes and full game play
- English and German resources included, own work
- Icon origin: tango solitaire icon with a self drawn spider on top
[cardlib]
- Convert to a static library as suggested in the comments, move to 3rdparty directory
- Allow to modify dragged card stacks (needed for spider)
[solitaire]
- Adapt to cardlib changes, delete local cardlib copy

svn path=/trunk/; revision=43372
2009-10-11 12:07:11 +00:00
Aleksey Bragin
be31446a2e - Implement pool corruption tests for testing pool overrun/underrun detectors. Tests invocation is commented out by default.
svn path=/trunk/; revision=43371
2009-10-11 10:00:56 +00:00
Aleksey Bragin
4ff9e0a85e [powrprof]
- Implement some powrprof.dll according to regression tests committed in r43368, by Alexander Wurzinger <lohnegrim@gmx.net>.
- Minor bugfix by me.
See issue #3381 for more details.

svn path=/trunk/; revision=43370
2009-10-11 09:54:41 +00:00
Johannes Anderwald
aacb520dac - Store KSPROPERTY_SET in Irp when using KsPropertyHandler
- Fix a bug in KsPinDataIntersection

svn path=/trunk/; revision=43369
2009-10-11 09:49:10 +00:00
Aleksey Bragin
8512a881b0 [powrprof]
- Add more powrprof.dll tests, by Alexander Wurzinger <lohnegrim@gmx.net>.
- Some cleanup and code typo fixes by me.
See issue #3381 for more details.

svn path=/trunk/; revision=43368
2009-10-11 09:49:09 +00:00
Dmitry Gorbachev
8f4f21679d Fix English resource file. Patch by Joshua Rice, bug #4763.
svn path=/trunk/; revision=43367
2009-10-11 00:09:41 +00:00
James Tabor
25d4d83e6b - Fix exception. Spotted by Stefan Ginsberg.
svn path=/trunk/; revision=43366
2009-10-10 21:51:24 +00:00
Stefan Ginsberg
ca6fbc0be9 KD64 Compatibility Bringup:
- Add some missing control set structures to windbgkd.h from Singularity and fix some x86 assumptions.
- Use CopyExceptionRecord instead of ExceptionRecord32To64 as we can just copy directly on 64-bit.
- Add KeGetTrapFrameInterruptState macro to retrieve the interrupt state (ON/OFF) from a trap frame.
- Use macros for retrieving certain parameters from CONTEXT in KdpTrap instead of hardcoding x86.
- Add kdsup.c for x86/AMD64/ARM and move certain architecture dependent routines in here.
- Stub out MSR, Bus and I/O Space read/write support and use KdpSys* for Control Space as it is architecture dependent. Also stub out low memory check (for x86 PAE).
- Fix assumptions in the break point code that a breakpoint is 1 byte long (it is 4 byte on ARM, for example). Define the type required to contain a breakpoint per architecture and use KD_BREAKPOINT_SIZE when copying.
- KD supports 32 breakpoints, not 20.
- Be portable when initializing members of the KD version and debugger data block.
- Pointers in the debugger data block should not be sign extended as done in the version block -- fix KdInitSystem and KdUpdateDataBlock that did this.
- Fix some comments that were x86 specific and use more generic terms instead.
- Fix a cast in KeBugCheckWithTf.

svn path=/trunk/; revision=43365
2009-10-10 19:27:54 +00:00
Aleksey Bragin
3f7bed2eae [ntoskrnl]
- Reimplement HalpCalibrateStallExecution which was removed in r24964. Real Windows uses a different algorithm, however existing one seems to work acceptably. This patch is critical for devices support on real hardware. The only downside is that uniata initialization takes a substantial amount of time now, this is going to be investigated. Patch by Daniel Zimmermann.
See issue #4600 for more details.

svn path=/trunk/; revision=43364
2009-10-10 18:22:56 +00:00
Aleksey Bragin
fcd17ff4fb - Implement RtlpDidUnicodeToOemWork to check for unmapped characters. Based on a patch by Daniel Zimmerman.
See issue #4548 for more details.

svn path=/trunk/; revision=43363
2009-10-10 13:22:41 +00:00
Aleksey Bragin
1ac07cde09 [freeldr]
Andrew Steinborn <asteinborn78@gmail.com>
- Display error message when boot sector reading fails.
See issue #4641 for more details.

svn path=/trunk/; revision=43362
2009-10-10 13:05:02 +00:00
Aleksey Bragin
e93efe68d0 - Mark wtsapi32 as forked.
svn path=/trunk/; revision=43361
2009-10-10 12:56:02 +00:00
Aleksey Bragin
dfa73d9163 [wtsapi32]
Andrey Ivanov <andrey.v.ivanov@gmail.com>
- Implement WTSEnumerateProcessesA and WTSEnumerateProcessesW.
See issue #4658 for more details.

svn path=/trunk/; revision=43360
2009-10-10 12:55:34 +00:00
Aleksey Bragin
d605c0c30a [fastfat_new]
- Actually add short and long names to splay tree when setting up FCB's names.

svn path=/trunk/; revision=43359
2009-10-10 12:40:20 +00:00
Aleksey Bragin
0bf0c0acf7 [fastfat_new]
- Add two functions for adding/removing name links from splay trees.
- Cleanup Fati8dot3ToString function from testing code.
- Add FCB states, so far just two: has names, and has unicode name.

svn path=/trunk/; revision=43358
2009-10-10 12:34:02 +00:00
Aleksey Bragin
c6895f22d4 Alexander Yastrebov <menone7@gmail.com>
- SetDllDirectory should add a directory to the search path used to locate DLLs for the application.

See issue #4820 for more details.

svn path=/trunk/; revision=43357
2009-10-10 09:16:34 +00:00
Aleksey Bragin
2e0924d6af [fastfat_new]
- Manually fetch a short name entry in FatSetFcbNames and process it.
- Get a long name and process it too (though right now there is problem, FullFAT returns a short name instead of a true long name).
- Silence debug prints in FatiRead.

svn path=/trunk/; revision=43356
2009-10-10 09:13:39 +00:00
Cameron Gutman
25b4b890e3 - Small fix for 43354
- Only pass the physical address if we have it

svn path=/trunk/; revision=43355
2009-10-10 08:26:20 +00:00
Cameron Gutman
05c582bcbd - Fix timeout values
- Don't reply to ARP requests unless they are address to us
 - We now reset the NCE timeout if we receive a packet from the neighbor
 - Fixes ARP flooding (bug 4879)

svn path=/trunk/; revision=43354
2009-10-10 07:43:39 +00:00
James Tabor
6e2700c9e9 - Do not test for IMM start up from client info, instead do not attach to system threads. Thanks Tommy Ward.
svn path=/trunk/; revision=43353
2009-10-10 05:15:43 +00:00
James Tabor
2a76c1a5a0 - [Win32k] Implement AttachThreadInput, not yet connected to the thread message queue, update related.
- See http://www.codeproject.com/KB/cpp/onscreenkeyboard.aspx for test program.

svn path=/trunk/; revision=43352
2009-10-10 04:40:36 +00:00
Johannes Anderwald
2be81fb4fb - Map STATUS_NOT_FOUND to ERROR_NOT_FOUND
svn path=/trunk/; revision=43351
2009-10-10 03:45:57 +00:00
Cameron Gutman
85a6f2a081 - Specify the interface index so the route won't get added to interface 0 (loopback)
- Warn if something tries to add a route to the loopback adapter
 - Fixes routing issues some people were having

svn path=/trunk/; revision=43350
2009-10-10 02:04:13 +00:00
Michael Martin
3ff3c916b3 - KeyboardThreadMain: Set RepeatRate to 1 vice 0. Fixes text input in OpenOffice Writer.
svn path=/trunk/; revision=43349
2009-10-10 01:13:17 +00:00
Timo Kreuzer
543c259ae7 Fix SECURITY_DESCRIPTOR_RELATIVE that I broke, spotted by Stefan
svn path=/trunk/; revision=43348
2009-10-09 22:52:39 +00:00
Gregor Schneider
ce47d4b62f - Various resource fixes (unclosed files, unchecked memory allocations, missing destructor, not freed memory)
- Patch by Russell with some modifications by myself
See issue #4662 for more details.

svn path=/trunk/; revision=43347
2009-10-09 21:02:44 +00:00
Stefan Ginsberg
ef0f96e223 - Hey, you know what? Dbg/NtQueryDebugFilterState returns TRUE/FALSE after all.
svn path=/trunk/; revision=43346
2009-10-09 19:54:07 +00:00
Gregor Schneider
386bd6ace8 Correct MPEG1/2 video decoder filename, patch by Russell
See issue #4878 for more details.

svn path=/trunk/; revision=43345
2009-10-09 18:45:24 +00:00
Johannes Anderwald
0a8a0cd78d [KS]
- Fix a bug when canceling irps

svn path=/trunk/; revision=43344
2009-10-09 16:48:41 +00:00
Aleksey Bragin
d64568f5ff [fastfat_new]
- Add two names to an FCB - a short name, and a long name.
- Start implementing FatSetFcbNames, currently deals with short names only.
- Implement Fati8dot3ToString, with most of the code actually #if0ed, because FullFAT already does this conversion.

svn path=/trunk/; revision=43343
2009-10-09 14:20:33 +00:00
Johannes Anderwald
415b1f1591 [PORTLCS]
- KSCATEGORY_AUDIO should be the first device category so that wdmaud can correctly assign virtual device ids

svn path=/trunk/; revision=43342
2009-10-09 12:36:26 +00:00
Stefan Ginsberg
de4df47aec - Fix DbgLoadImageSymbols -- it doesn't return anything.
- Fix DbgQueryDebugFilterState -- it returns NTSTATUS, not BOOLEAN! Also fix the callers that depended on this.

svn path=/trunk/; revision=43341
2009-10-09 11:51:07 +00:00
Stefan Ginsberg
d3d2be7aa1 Actually define STATUS_ASSERTION_FAILURE (missed in 43291).
svn path=/trunk/; revision=43340
2009-10-09 11:27:41 +00:00
Cameron Gutman
1f7271bf91 - Fix some typos from my last commit
- Remove more hacks from iphlpapi

svn path=/trunk/; revision=43339
2009-10-09 05:18:35 +00:00
Cameron Gutman
a3ab545150 - Rewrite IOCTL_TCP_QUERY_INFORMATION_EX/IOCTL_TCP_SET_INFORMATION_EX handling
- Remove duplicate defines for the same IOCTL
 - Remove unneeded code
 - Fix a completely wrong implementation of ENTITY_TYPE_ID
 - Perform parameter checking
 - Remove several hacks in iphlpapi that worked around bugs in the previous implementation
 - We now support retrieving interface-specific routing tables and ARP tables

svn path=/trunk/; revision=43338
2009-10-09 02:40:38 +00:00
Stefan Ginsberg
8a1b2b51be - Stub out ExpSystemErrorHandler more properly.
svn path=/trunk/; revision=43337
2009-10-08 20:06:37 +00:00
Dmitry Chapyshev
7ae4b30b8e - Partially revert r42993 for imagelist
See issue #4304 for more details.

svn path=/trunk/; revision=43336
2009-10-08 11:18:34 +00:00
Johannes Anderwald
e7e971167b - When enumerating controls, cControls *tells* the number of controls not *cConnections*. Fix a crash in XP sndvol32
- Clear the entire struct, not just part of it
- WdmAudMixerCapabilities just provides the index of a device, not its handle. Fixes displaying of duplicate mixer name in sndvol32
- Verify that a mixer line exists

svn path=/trunk/; revision=43335
2009-10-08 07:25:26 +00:00
Stefan Ginsberg
60a2ad65bb MiReserveSystemPtes: Don't assert that allocation succeeded, just warn if we failed. All callers of the function handle allocation failure properly.
svn path=/trunk/; revision=43334
2009-10-07 20:14:01 +00:00
Dmitry Gorbachev
c64b032e93 Fix GCC 4.1.3 warning.
svn path=/trunk/; revision=43333
2009-10-07 20:04:17 +00:00
Dmitry Gorbachev
9ac33d6fbe Happy testing.
svn path=/trunk/; revision=43332
2009-10-07 19:58:15 +00:00
Dmitry Gorbachev
07dc415f89 Fix logging to a file.
In spite of limitations, it remains the only way to obtain desired logs for some people.

svn path=/trunk/; revision=43331
2009-10-07 19:57:40 +00:00
Dmitry Gorbachev
ffbb3fd184 Delete unused copy of GPL.
svn path=/trunk/; revision=43330
2009-10-07 19:56:35 +00:00
Dmitry Gorbachev
3da2eea23c Fix FreeLDR bug #4877. Patch by Gabriel.
svn path=/trunk/; revision=43329
2009-10-07 19:55:44 +00:00
Matthias Kupfer
85a206d9b2 - replace dropshadow from mouse settings by cursor shadow
- bind cursor shadow to registry via sysparams
- rename variable names and identifiers

svn path=/trunk/; revision=43328
2009-10-07 19:42:02 +00:00
Matthias Kupfer
f894aea679 - revert SPI_SETCLICKLOCK
- small optimization in mgsqueue

svn path=/trunk/; revision=43327
2009-10-07 18:22:25 +00:00
Timo Kreuzer
cfff690aae Add test for NtUserSystemParametersInfo case SPI_SETMOUSECLICKLOCK
svn path=/trunk/; revision=43326
2009-10-07 16:58:53 +00:00
Matthias Kupfer
4da1dafa69 - some preparation for ClickLock implementation
svn path=/trunk/; revision=43325
2009-10-07 14:25:52 +00:00
Aleksey Bragin
f637e66227 [fastfat_new]
- Implement FatiQueryNameInformation. It doesn't work right now due to missing file names in the FCB record.
- Make a stub for FatSetFcbNames.

svn path=/trunk/; revision=43324
2009-10-07 12:21:13 +00:00
Matthias Kupfer
0b89e7b0eb - load UserPreferencesMask from registry
svn path=/trunk/; revision=43323
2009-10-07 11:17:11 +00:00
Aleksey Bragin
c66ee08233 [fastfat_new]
- Lower importance of some debug messages.
- Add FCB locking routines.
- Lock VCB and FCB in QueryInformation.

svn path=/trunk/; revision=43322
2009-10-07 10:45:45 +00:00
Johannes Anderwald
5cb9dffd80 [WDMAUD]
- Use KsProbeStreamIrp in wdmaud to probe user buffers
- Remove a few hacks which were required to pass down irps to portcls
[PORTCLS]
- Check if there is an automation table
[SYSAUDIO]
- Release file object of pin to prevent reference leak
--
- Audio stack now reacts faster as it now longer copies audio buffers in kernel mode and instead locks down the user buffers. In addition it uses less memory to do the same work.


svn path=/trunk/; revision=43321
2009-10-07 10:41:34 +00:00
Johannes Anderwald
c959b785e7 - Fix building of ReactOS
svn path=/trunk/; revision=43320
2009-10-07 09:43:30 +00:00
Aleksey Bragin
abc450dbf0 [fastfat_new]
- Properly complete non-implemented volume open requests.

svn path=/trunk/; revision=43319
2009-10-07 09:27:03 +00:00
Johannes Anderwald
9da043a395 - Implement support for reading from waveIn devices
svn path=/trunk/; revision=43318
2009-10-07 09:10:00 +00:00
Dmitry Gorbachev
f80452789c Fix my stupid mistake, made in r43169. Bug #4863. Thanks to Gabriel & Victor.
svn path=/trunk/; revision=43317
2009-10-07 01:41:53 +00:00
Matthias Kupfer
54dec94b16 - fix typo in registry key name
- fix wrong argument order in SystemParametersInfo call
- use static variables instead of multiple strings
- fix wrong pointer access in sysparams

svn path=/trunk/; revision=43316
2009-10-07 00:07:30 +00:00
Johannes Anderwald
88c42f36e6 - Implement MIXER_GETLINEINFOF_COMPONENTTYPE for WdmAudGetLineInfo
- Implement MIXER_GETLINECONTROLSF_ONEBYID for WdmAudGetLineControls
- Clear MIXER_OBJECTF_HMIXER from Flags
- Fix a bug SetGetVolumeControlDetails which fixes retrieving current volume level (verified by sndvol32.exe from XP / mmsys.cpl ReactOS)

svn path=/trunk/; revision=43315
2009-10-06 18:16:21 +00:00
Johannes Anderwald
d4e6ed42ab - Fix creation of mixer pin
svn path=/trunk/; revision=43314
2009-10-06 09:55:19 +00:00
Johannes Anderwald
167a790409 - Partly implement WIDM_ADDBUFFER
svn path=/trunk/; revision=43313
2009-10-06 09:54:10 +00:00
Matthias Kupfer
91e81e3263 - bind (almost all) mouse settings to system and registry and fixup sysparams
svn path=/trunk/; revision=43312
2009-10-06 09:02:31 +00:00
Johannes Anderwald
89c0cc229a - Implement WIDM_OPEN, WIDM_CLOSE, WIDM_PREPARE, WIDM_UNPREPARE, WIDM_RESET for wave in devices
- Original code by Silverblade

svn path=/trunk/; revision=43311
2009-10-06 08:47:27 +00:00
James Tabor
ac17b39707 - Remove Thread from event structure and substitute with thread info from head structure.
svn path=/trunk/; revision=43310
2009-10-06 04:22:11 +00:00
James Tabor
6d29703714 - Set Process, pass keyboard handle and enable check for user hooks.
svn path=/trunk/; revision=43309
2009-10-06 03:38:23 +00:00
Matthias Kupfer
b63d2987f3 - use static variables instead of multiple strings
svn path=/trunk/; revision=43308
2009-10-05 21:00:44 +00:00
Matthias Kupfer
fca0dabc2d - add new desktop and mouse property keys to registry
- disable global settings from _SYSTEM_CURSORINFO and change files accordingly
- bind and load added registry keys for SystemParametersInfo
- TODO: read and set via SystemParametersInfo still incomplete

svn path=/trunk/; revision=43307
2009-10-05 19:53:15 +00:00
Johannes Anderwald
cf3f78eddf - Fix a critical bug in the counted worker implementation
svn path=/trunk/; revision=43306
2009-10-05 19:15:04 +00:00
Johannes Anderwald
9114169b5e - Implement setting / getting volume level
svn path=/trunk/; revision=43305
2009-10-05 17:00:59 +00:00
Matthias Kupfer
fb725bd122 - partly revert 43298
- fix the mouse swap button issue
- cleanup loading mouse properties
- change reg key types for mouse values like windows

svn path=/trunk/; revision=43304
2009-10-05 14:13:29 +00:00
Dmitry Gorbachev
6c43b7b64f select: change it to be more readable, avoid a spurious compiler warning.
svn path=/trunk/; revision=43303
2009-10-05 14:13:15 +00:00
Dmitry Gorbachev
9c974bb786 Avoid GCC warnings: deprecated conversion from string constant to 'WCHAR*'.
svn path=/trunk/; revision=43302
2009-10-05 14:13:09 +00:00
Dmitry Gorbachev
ea12565cf4 Document ROS_GENERATE_RSYM environment variable.
svn path=/trunk/; revision=43301
2009-10-05 14:13:01 +00:00
Dmitry Gorbachev
c2448f19d9 Modify DPRINT / DRPINT1 macros, check if DbgPrint crashed. Bug #4420.
svn path=/trunk/; revision=43300
2009-10-05 14:12:49 +00:00
Dmitry Gorbachev
69d7cf729d Fix internal name of ntkrnlmp.exe. Alexander Yastrebov (menone7 ~at~ gmail com), bug #4821.
svn path=/trunk/; revision=43299
2009-10-05 14:12:33 +00:00
Matthias Kupfer
8c914a280c - fix the mouse swap button issue
- cleanup loading mouse properties
- add function to load and store DWORD for sysparams registry keys
- TODO: check and fix the get and set cases for sysparams for the right registry key type

svn path=/trunk/; revision=43298
2009-10-05 11:35:06 +00:00
Cameron Gutman
605efdf3f2 - Remove the STATUS_PENDING case in UnlockAndMaybeComplete so we can catch pending IRPs which didn't get queued in the PendingIrpList
svn path=/trunk/; revision=43297
2009-10-05 02:31:16 +00:00
Cameron Gutman
29eda3e5dc - Cancel pending user IRPs when we get a IRP_MJ_CLEANUP request
- Previously there was some confusion between IRPs in PendingIrpList and InFlightRequest, InFlightRequest IRPs go from AFD to a TDI transport driver (tcpip) which are sent on behalf of AFD and are cancelled upon socket destruction (IRP_MJ_CLOSE) vs. IRPs in the PendingIrpList which go from user-mode to AFD which are sent of behalf of the user and should be cancelled when handling IRP_MJ_CLEANUP

svn path=/trunk/; revision=43296
2009-10-05 01:44:17 +00:00
Dmitry Gorbachev
2f4399ff41 Add "#pragma code_page(...)" again to fix compilation.
svn path=/trunk/; revision=43295
2009-10-04 22:40:01 +00:00
Daniel Reimer
555b27970e Update German NLS Files in Kernel32
svn path=/trunk/; revision=43294
2009-10-04 22:32:07 +00:00
Dmitry Gorbachev
5ea6a97c68 Add Spanish translation of Kernel32, fix translation of ServMan. Javier Remacha, bug #4872.
svn path=/trunk/; revision=43293
2009-10-04 22:03:21 +00:00
Matthias Kupfer
d358de8a0f temporarily workaround for swap mouse buttons feature
svn path=/trunk/; revision=43292
2009-10-04 20:45:51 +00:00
Stefan Ginsberg
1c3808ef76 - Add STATUS_ASSERTION_FAILURE status code required for NT_ASSERT.
- Check KdReceivePacket return for KdPacketReceived instead of 0 for correctness.
- Use KdpDprintf instead of setting CR2 for unhandled cases.
- Add more variables to KdDebuggerDataBlock.

svn path=/trunk/; revision=43291
2009-10-04 20:19:43 +00:00
Johannes Anderwald
8d668541e1 - Return correct status code
svn path=/trunk/; revision=43290
2009-10-04 20:14:09 +00:00
Johannes Anderwald
87d50197d2 - Implement Un-Muting of audio lines
- TBD: SEH probing

svn path=/trunk/; revision=43289
2009-10-04 19:45:16 +00:00
Matthias Kupfer
374363363d - remove double entry in inf
- load mouse settings
- TODO: mouse settings doesn't work properly, but read and set works

svn path=/trunk/; revision=43288
2009-10-04 19:28:52 +00:00
Cameron Gutman
6f249378c9 - Don't add the media-specific header until right before transmission
- Previously we would store the largest media-specific header size and add that value when creating a packet
 - Makes loopback packets smaller because they have no need for a media-specific header
 - Would fix packet corruption if interfaces with different media-specific headers were installed (if we supported that)
 - Makes adding support for other media types easier

svn path=/trunk/; revision=43287
2009-10-04 19:23:53 +00:00
Dmitry Gorbachev
698c0e253d Update Spanish translations. Javier Remacha, bug #4872.
svn path=/trunk/; revision=43286
2009-10-04 18:12:14 +00:00
Johannes Anderwald
f04d450f1f - Don't call ExFreePool for null pointers
svn path=/trunk/; revision=43285
2009-10-04 17:39:26 +00:00
Benedikt Freisen
3c4ec53672 corrected magnifying glass cursor
svn path=/trunk/; revision=43284
2009-10-04 17:25:55 +00:00
Stefan Ginsberg
3c5b2d9a61 Mega KD64 revival patch:
KD64
- Fix some 64-bit issues and some x86 specificness.
- Sub out some KdpTrap cases more properly.
- Implement support for .crash and .reboot. Does not seem to work currently because of weird issues.
- Implement KdpDprintf to send strings directly to the debugger from inside of KD64. Use it in KdEnterDebugger instead of DbgPrint so we won't try to enter the debugger recursively.
- Implement KdUpdateDataBlock to set the KeUserCallbackDispatcher pointer in the debugger block after its address is retrieved from ntdll.
- Don't assume breakpoints are 1 byte long in portable code -- use KD_BREAKPOINT_SIZE and define it per architecture.
- KdpStub: KdEnableDebugger returns NTSTATUS, not TRUE/FALSE.

Other
- wdbgexts.h: Properly define CURRENT_KD_SECONDARY_VERSION for AMD64.
- Make PsNtosImageBase pointer-sized as it should be.
- Change the definition of KDSTATUS so it is guaranteed to be 32-bit.
- Fix a critical bug in KiRestoreProcessorControlState: it didn't clear the busy flag in the TSS before reloading the task register, resulting in a GPF if we tried to reload the same register.
- Add macros for getting and setting special purpose registers (the Program Counter and the "return register") in portable code instead of using #ifdef every time. Do likewise for setting IMAGE_FILE_MACHINE_XXX, using a new IMAGE_FILE_MACHINE_ARCHITECTURE macro.
- Don't refer to the Program Counter as "Eip" in portable code.
- Define DBG_STATUS_CONTROL_C for assembly code and use it in KeUpdateSystemTime.

svn path=/trunk/; revision=43283
2009-10-04 16:53:15 +00:00
Stefan Ginsberg
f0c0e70c05 - Convert remaining KEBUGCHECK to KeBugCheck.
- Add HAL_MEMORY_ALLOCATION bug code and use it.

svn path=/trunk/; revision=43282
2009-10-04 14:48:18 +00:00
Matthias Kupfer
eb721653ab - DragFullWindow property changable via desktop settings / effects
- TODO: adapt desk.cpl to new sysparams implementation

svn path=/trunk/; revision=43281
2009-10-04 10:50:18 +00:00
Michael Martin
b7725b3fcc edit.c: Remove TPM_RETURNCMD flag from TrackPopupMenu missed during a recent WINE sync. Most apps that use edit control context menus are back to working. VB apps still crashes as the context menu implementation for edit controls is slightly wrong.
svn path=/trunk/; revision=43280
2009-10-04 07:26:23 +00:00
Cameron Gutman
fe8bd01634 - Put some code back which was removed in r43270
svn path=/trunk/; revision=43279
2009-10-04 03:55:34 +00:00
Timo Kreuzer
d6a01aca0e use __debugbreak() insetad of EngDebugBreak()
dedicated to Alex

svn path=/trunk/; revision=43278
2009-10-04 00:04:38 +00:00
James Tabor
62444813bb - Dont need this then.
svn path=/trunk/; revision=43277
2009-10-03 23:42:06 +00:00
James Tabor
a466f21e52 - Use TIF in cleanup flag.
svn path=/trunk/; revision=43276
2009-10-03 23:39:30 +00:00
Cameron Gutman
6ad0121a58 - Add cancellation support for IOCTL_AFD_SELECT
- Fix release build

svn path=/trunk/; revision=43275
2009-10-03 21:34:34 +00:00
Cameron Gutman
5920b78ec2 - Implement IRP cancellation for AFD
- Fixes "Broken driver did not complete!" showing up in the debug log (especially during winetests)

svn path=/trunk/; revision=43274
2009-10-03 20:52:54 +00:00
Hervé Poussineau
b809cead05 WINLDR: Finally, set Windows boot style as default
Many thanks to Fireball and Alex for your hard work on Windows boot style

svn path=/trunk/; revision=43273
2009-10-03 20:09:57 +00:00
Hervé Poussineau
9e7fc1c095 [usetup] Simplify creation of entries in freeldr.ini
svn path=/trunk/; revision=43272
2009-10-03 19:43:29 +00:00
Hervé Poussineau
b150069433 [freeldr] Remove MachDiskGetPartitionEntry, and directly use the correct one
Remove PpcDiskNormalizeSystemPath(), it was the same as DiskNormalizeSystemPath()

svn path=/trunk/; revision=43271
2009-10-03 18:41:10 +00:00
Cameron Gutman
94b78efb6a - Fix the crash in ws2_32_winetest during the ioctlsocket test
- Pass the blocking mode down to AFD
 - Dedicated to encoded

svn path=/trunk/; revision=43270
2009-10-03 18:21:14 +00:00
Matthias Kupfer
88b8d24b6f - consider DragFullWindows-value from Registry
svn path=/trunk/; revision=43269
2009-10-03 17:13:02 +00:00
Hervé Poussineau
f501c2bcb5 [freeldr] Remove (Mach)DiskGetBootDevice, DiskGetBootVolume, DiskGetSystemVolume, FsRecognizeVolume
This commit breaks ext2 driver in freeldr, which needs to use ArcSeek/ArcRead/Arc* instead of DiskGetBootVolume/MachDiskReadLogicalSectors

svn path=/trunk/; revision=43268
2009-10-03 17:00:29 +00:00
Hervé Poussineau
c599bd7dc0 Rework FAT filesystem to not be tied to boot filesystem
svn path=/trunk/; revision=43267
2009-10-03 16:47:54 +00:00
Benedikt Freisen
8ccb271064 * only show message box on exit if the image has not been saved and is not blank
* set as wallpaper: now working, setting wallpaper style: not yet
* made number of undo-steps changeable through define-statement; increased to 10 (see original)
* zoom tool got its track bar (see original)

svn path=/trunk/; revision=43266
2009-10-03 16:33:41 +00:00
Stefan Ginsberg
5b8c2418b7 - Replace some x86 assembly in drivers with portable breakpoint support.
svn path=/trunk/; revision=43265
2009-10-03 14:15:46 +00:00
Hervé Poussineau
80611d5a1d [freeldr] Fix warning on recent GCC versions
svn path=/trunk/; revision=43264
2009-10-03 13:29:41 +00:00
Hervé Poussineau
9c3b85b7d0 [freeldr] Code code specific to ARC emulation to its own directory
svn path=/trunk/; revision=43263
2009-10-03 13:11:22 +00:00
Hervé Poussineau
d9b6d51218 [freeldr] It's easy to check if we booted from a floppy thanks to boot path. No need to maintain a machine callback for that
svn path=/trunk/; revision=43262
2009-10-03 12:49:14 +00:00
Hervé Poussineau
7f2d93fde9 WINLDR: Move i386 specific code to its own file
svn path=/trunk/; revision=43261
2009-10-03 12:36:52 +00:00
Dmitry Chapyshev
aa4379b267 - Implement delete of the program information from the registry
- Store settings information in HKEY_LOCAL_MACHINE instead HKEY_CURRENT_USER

svn path=/trunk/; revision=43260
2009-10-03 09:34:19 +00:00
James Tabor
68180a507a - Prevent kernel bug check in win32k when calling a hook proc when thread is in cleanup.
- This is not a hack and not a fix. Please retest related bug report applications. Tested Firefox 3.5 and the new putty. Need new debug print outs. ATM Ff 3.5 send out WH_JOURNALRECORD hook calls when the thread is in cleanup. Look like this: Thread is in cleanup and trying to call hook 0
- Reference bug 4298.

svn path=/trunk/; revision=43259
2009-10-03 02:30:47 +00:00
Johannes Anderwald
f187acf5ef - Add KSPROPSETID_Audio guid
- Allocate data format after successful initialization of IPinWaveCyclic
- Store Miniport Adapter in subdevice descriptor
- Implement GUID_NULL handler for topology nodes 
- Implement setting / retrieving properties for topology nodes

svn path=/trunk/; revision=43258
2009-10-02 21:55:53 +00:00
Aleksey Bragin
58df56f2c5 [fastfat_new]
- Don't leak VCB lock, prevents hang when trying to open another file.

svn path=/trunk/; revision=43257
2009-10-02 17:07:37 +00:00
Aleksey Bragin
11361e2730 [fastfat_new]
- Fail with an error if file can't be opened.
- Implement FatCreateDcb, actually create DCBs for all parsed directories in the path.
- Set file size in an advanced FSRTL header for a file.
- Implement a small helper function for setting full names in FCB/DCB like it's done in the reference driver.

svn path=/trunk/; revision=43256
2009-10-02 13:59:51 +00:00
Aleksey Bragin
4e2fe08c74 [fullfat]
- Substitute more "free" to FF_Free function.

svn path=/trunk/; revision=43255
2009-10-02 11:56:03 +00:00
Johannes Anderwald
347609e691 - Rewrite Wave API to enumerate wave out / in devices at startup
- Improves speedup of application minus short delay in system boot
- Enumerate controls for source and destination lines

svn path=/trunk/; revision=43254
2009-10-02 10:57:24 +00:00
Johannes Anderwald
2f541881a8 - Check if NodeId is out of bounds
- Return correct status code

svn path=/trunk/; revision=43253
2009-10-02 10:53:36 +00:00
Aleksey Bragin
9ef3f7c1a2 [fastfat_new]
- Implement querying standard information (important for getting correct file size).
- Substitute CcMap/copy/Unpin by CcCopyRead in FatReadBlocks.
- Take offset into account (seek) in file read operation. Fixes always reading files from the beginning.

svn path=/trunk/; revision=43252
2009-10-02 10:49:57 +00:00
Cameron Gutman
7fe54dcf63 - Get the length from each packet header instead of assuming that all packets will be the length of the first one
svn path=/trunk/; revision=43251
2009-10-01 21:00:41 +00:00
Aleksey Bragin
43ef29d7ef [fastfat_new]
- Implement simple read support.
- Rewrite FatMapUserBuffer, no exception raising necessary at this stage.
- Silence FatReadBlocks dbgprint.

svn path=/trunk/; revision=43250
2009-10-01 16:08:11 +00:00
Stefan Ginsberg
c57385622a - Fix MSVC YieldProcessor macro
svn path=/trunk/; revision=43249
2009-10-01 14:18:54 +00:00
Stefan Ginsberg
fa46654ee8 - Kill leftover __USE_W32API
svn path=/trunk/; revision=43248
2009-10-01 14:18:18 +00:00
Aleksey Bragin
8f8f77367c [fastfat_new]
- Open a file in FatiOpenExistingFile by means of FullFAT library.
- Fix incorrect fullfat placement in fasfat.rbuild.
- Hack StreamFileObject to be 5Gb in length instead of 512 bytes. It'll be set to the size of an underlying physical device later.
- Add FF file handle to FCB structure.

svn path=/trunk/; revision=43247
2009-10-01 13:21:28 +00:00
Johannes Anderwald
4a81976dfd - Add usbdlib.h
svn path=/trunk/; revision=43246
2009-09-30 23:58:04 +00:00
Dmitry Gorbachev
d99cbc1ee2 Patch by Viliam Lejcik (lejcik =at= gmail com). Fixes bug #4858. With the blessing of Ged Murphy.
svn path=/trunk/; revision=43245
2009-09-30 20:59:21 +00:00
Stefan Ginsberg
9fdf04b17c ReactOS SMP Bringup Lite:
- Add simple and hacky spinlock implementation to HAL and kernel. It treats queued spinlocks as normal spinlocks and does not support debug timeout, but works well enough to expose bugs in spinlock usage.
- Implement KiProcessDeferredReadyList, a simple wrapper around KiDeferredReadyThread.
- Add missing PRCB locking in KiDeferredReadyThread.
- Implement SMP handling in KiRetireDpcList.
- Acquire the spinlock in KeSynchronizeExecution for SMP.
- Stub and export Kii386SpinOnSpinLock -- not used yet.
- Fix locking in KiAcquire/ReleaseDispatcherLockAtDpcLevel -- KeAcquireQueuedSpinLockAtDpcLevel takes the lock queue pointer, not the index.
- "Implement" KiRundownThread for SMP.
- Fix some sanity checks in the SMP context switch code and implement a stubbed SMP case.
- Define SYNCH_LEVEL in asm.h and use it in HAL's KeRaiseIrqlToSynchLevel.

To try the MP kernel on UP (it does not work on multiple processors yet) compile ntkrnlmp, rename it to ntoskrnl and add it to your installation. This requires a HAL with CONFIG_SMP enabled in HAL's spinlock.c and irq.S. Booting with the MP kernel does not work because of a weird regression introduced sometime in the last few months --  it appears MmProbeAndLockPages fails for a user mode stack pointer (no, I have no idea why).

svn path=/trunk/; revision=43244
2009-09-30 20:30:57 +00:00
Stefan Ginsberg
56bc75a184 - ASSERT on NULL-frees
svn path=/trunk/; revision=43243
2009-09-30 19:29:08 +00:00
Johannes Anderwald
17c528d7c3 - Several bugfixes for mixer source / destination line detection code
- Fix a memory leak

svn path=/trunk/; revision=43242
2009-09-30 18:58:52 +00:00
Stefan Ginsberg
b3e77ecf83 - KeBugCheckEx expects BugCheckParameter2 to point to an array when the bug code is FATAL_UNHANDLED_HARD_ERROR -- properly stub out ExpSystemErrorHandler so we don't crash in KeBugCheckEx.
svn path=/trunk/; revision=43241
2009-09-30 18:31:26 +00:00
Stefan Ginsberg
b42aaf88bb - Fix recursive spinlock acquisition in Mm caused by locking inconsistency between ARM3 and the old ReactOS Mm. The old Mm calls certain routines to modify PFN entries (lock, unlock, reference, dereference, etc) and acquires/releases the PFN lock inside those functions (which is extremely inefficient as you can't, for example, have to acquire/release the PFN lock twice to reference and lock the same page), while ARM3 synchronizes differently and holds the lock while calling those routines, resulting in a recursive lock attempt on MP (which works on UP because spinlocks are just IRQL raise/lower there). Move out locking from MmAllocPage, MmReference/DereferencePage and MmLock/UnlockPage to the callers to be consistent with ARM3.
- Add missing PFN locking to MmFreePagesFromMdl and MiAllocatePoolPages.
- Get rid of MmLockPageUnsafe and MmReferencePageUnsafe. The "safe" routines just forwarded to the unsafe versions -- call them directly instead. Remove unused MmAcquirePageListLock/MmReleasePageListLock.

svn path=/trunk/; revision=43240
2009-09-30 18:24:00 +00:00
Aleksey Bragin
4f128a3206 [fastfat_new]
- Partially implement a codepath for opening an existing file.
- Implement simple FCB and CCB creation.
- Correctly set FILE_OBJECT fields.
- Allocate space for SECTION_POINTERS.
- Implement some misc in FatQueryInformation.
- The driver goes up to getting a read request for ntdll.dll.

svn path=/trunk/; revision=43239
2009-09-30 16:16:18 +00:00
Stefan Ginsberg
eb89b6ac85 - ...and this one.
svn path=/trunk/; revision=43238
2009-09-30 13:43:55 +00:00
Stefan Ginsberg
e909d6a542 - Missed this one
svn path=/trunk/; revision=43237
2009-09-30 13:33:48 +00:00
Stefan Ginsberg
df3bf0c83a - Goodbye __USE_W32API
svn path=/trunk/; revision=43236
2009-09-30 13:32:05 +00:00
Stefan Ginsberg
56aba98ca8 - Good bye __USE_W32API, _DISABLE_TIDENTS
svn path=/trunk/; revision=43235
2009-09-30 13:31:50 +00:00
Stefan Ginsberg
bfc7376cd9 - Remove the remaining __USE_W32API, deprecated for ages.
- Remove _SEH_NO_NATIVE_NLG from msvcrt.rbuild, deprecated long ago.
- Get rid of __NO_CTYPE_INLINES for everything but host tools, deprecated since revision 38052.
- Deprecate and remove _DISABLE_TIDENTS.

svn path=/trunk/; revision=43234
2009-09-30 13:28:51 +00:00
Kamil Hornicek
ebe5bb75c0 - simplify the code a bit
svn path=/trunk/; revision=43233
2009-09-30 12:59:06 +00:00
Kamil Hornicek
6f17454af4 - add wglUseFontOutlines, wglUseFontBitmaps
- code ported (rearranged, simplified, fixed memory leaks, removed unneeded variables) from Mesa3D glDirect driver (c) SciTech Software, Inc
- more work needed but 3D text screen saver finally renders at least something

svn path=/trunk/; revision=43232
2009-09-30 12:12:56 +00:00
Johannes Anderwald
4127b55a9e - Store destination line in LineList
- Implement WdmAudGetLineInfo for MIXER_GETLINEINFOF_LINEID
- Add a hack for WdmAudGetLineControls for MIXER_GETLINECONTROLSF_ONEBYTYPE

svn path=/trunk/; revision=43231
2009-09-30 10:32:15 +00:00
Cameron Gutman
ac42df0ca7 - Uncomment some SYN handling code
- Enable a ROS-specific hack because oskittcp doesn't know about all interfaces in the system
 - Small cleanup of code

svn path=/trunk/; revision=43230
2009-09-30 03:44:44 +00:00
Cameron Gutman
1118959561 - Fix a nasty bug that caused us to exit the loop before sending all the data
svn path=/trunk/; revision=43229
2009-09-30 01:30:45 +00:00
Cameron Gutman
63fbb744f3 - Sync the ACK hack with the last oskit release
svn path=/trunk/; revision=43228
2009-09-29 23:14:21 +00:00
Hervé Poussineau
a471bf9bb0 Reapply r43141: Remove now unneeded ARC cdrom hack in NTLDR boot-style. We're now able to boot from a LiveCD, even if ReactOS directory is not "reactos"
Keep the existing hack for FreeLdr boot-style, which should be removed one day

svn path=/trunk/; revision=43227
2009-09-29 20:01:20 +00:00
Johannes Anderwald
ac2285ed31 - Italian & english translation of ks.inf
- Patch by Gabriel Ilardi (gabriel_it)

svn path=/trunk/; revision=43226
2009-09-29 18:03:41 +00:00
Aleksey Bragin
a7532a398b [fastfat_new]
- Add directory path parsing which tries to find existing FCBs for path names.
- Add a framework for creating DCBs during path dissection. Currently just prints out path names.
- Cleanup fcb.c, Alexey Vlasov's version was great, but it is a bit different from what I want to implement now.

svn path=/trunk/; revision=43225
2009-09-29 13:09:16 +00:00
Johannes Anderwald
83836038f7 - Implement enumerating mixer source and destination lines
svn path=/trunk/; revision=43224
2009-09-29 12:26:48 +00:00
Johannes Anderwald
3f5443deba - Implement PcHandlePropertyWithTable
- Use PcHandlePropertyWithTable to handle IOCTL_KS_PROPERTY requests
- Remove dead code

svn path=/trunk/; revision=43223
2009-09-29 10:46:30 +00:00
Aleksey Bragin
5f9e1cd8f9 [fastfat_new]
- Start integrating FullFAT library.
- Current state is that it's able to mount a FAT volume.

svn path=/trunk/; revision=43222
2009-09-29 10:08:43 +00:00
Aleksey Bragin
f1ee7979a1 [fullfat]
- Remove all malloc/free usage in the library and substitute them by user-provided FF_Malloc and FF_Free functions.
- Cleanup fullfat.rbuild.

svn path=/trunk/; revision=43221
2009-09-29 09:14:08 +00:00
James Tabor
f74bae6d05 - Add GraphApp, Ext2 and X to the list of acknowledged projects.
svn path=/trunk/; revision=43220
2009-09-29 04:01:30 +00:00
Johannes Anderwald
dfeea3b92e - Retrieve the correct pin name
svn path=/trunk/; revision=43219
2009-09-29 00:25:05 +00:00
Dmitry Gorbachev
1265b9904e Add 1152x864, 1280x1024, and 1600x1200 modes.
svn path=/trunk/; revision=43218
2009-09-28 20:46:44 +00:00
Dmitry Gorbachev
e654206923 Fix some bugs.
svn path=/trunk/; revision=43217
2009-09-28 20:46:30 +00:00
Dmitry Gorbachev
2b337a70b8 Do not copy those structures twice.
svn path=/trunk/; revision=43216
2009-09-28 20:46:19 +00:00
Stefan Ginsberg
9ea93e00f3 Erm, thanks Timo...
svn path=/trunk/; revision=43215
2009-09-28 20:34:11 +00:00
Stefan Ginsberg
1634f12c5e - Fix Winetests build after sddkver.h update (and why the hell isn't the build server building the tests anymore???)
svn path=/trunk/; revision=43214
2009-09-28 20:25:30 +00:00
Aleksey Bragin
b9b9f5e614 - Thanks Stefan.
svn path=/trunk/; revision=43213
2009-09-28 18:43:27 +00:00
Aleksey Bragin
77655e13d6 - Import FullFAT and add it to build.
svn path=/trunk/; revision=43212
2009-09-28 18:41:51 +00:00
Stefan Ginsberg
b97f271601 Correction to 36917: EPROFILE/KPROFILE.Segment is pointer sized, not a pointer.
svn path=/trunk/; revision=43211
2009-09-28 18:27:06 +00:00
Johannes Anderwald
59278a8c6d - Add ks.inf
- ATM, only german is available, and is also the default

svn path=/trunk/; revision=43209
2009-09-28 18:12:40 +00:00
Aleksey Bragin
c1d76231a4 [fastfat_new]
- Create root DCB when mounting a volume.

svn path=/trunk/; revision=43207
2009-09-28 18:04:31 +00:00
Stefan Ginsberg
79fe13f7e8 - Comment fixes
svn path=/trunk/; revision=43206
2009-09-28 18:02:45 +00:00
Stefan Ginsberg
87db0af5db Hey Arch, how do you expect kernel32 to build with Microsoft's headers if you define a NTDDI_VERSION that conflicts with _WIN32_WINNT and makes sdkddkver.h cry? Remove the conflicting define from the .rbuild and redefine it in the header before including the NDK (this is needed because we need Vista types from the PSDK but require 2003 types from the NDK -- glorious, eh?).
Prepare sddkver.h for mingw-w64 import:
- Point out the fact that the header is in the public domain.
- Add some missing stuff, including a NTDDI_VERSION sanity check.
- Format fixes, add some comments

svn path=/trunk/; revision=43205
2009-09-28 17:45:23 +00:00
Johannes Anderwald
1130b7dee4 - Implement KSPROPERTY_PIN_NAME properly
- KsPinPropertyHandler does *NOT* set Status in the IRP

svn path=/trunk/; revision=43204
2009-09-28 13:33:17 +00:00
Aleksey Bragin
6c1fab522b [fastfat_new]
- Add an internal routine for opening root DCB (a stub for now).
- Add code for checking if this is a relative or absolute open. Start implementing absolute opening part.

svn path=/trunk/; revision=43203
2009-09-28 11:02:34 +00:00
Aleksey Bragin
dfe3bd48b3 [fastfat_new]
- Fix wrong comment in FatiCreate, spotted by Ged Murphy.
- Add some parameters validation to FatiCreate, and a check for volume open request.
- Add node types and a decoding routine.
- Implement VCB locking/unlocking.

svn path=/trunk/; revision=43202
2009-09-28 10:43:27 +00:00
Johannes Anderwald
eaf6203af2 - Fix 2 bugs:
- The Category member is LPGUID not GUID
- Check if there is a category member

svn path=/trunk/; revision=43201
2009-09-28 10:38:23 +00:00
Johannes Anderwald
6dbd846a42 - Handle variable sized PCPIN_DESCRIPTORs
svn path=/trunk/; revision=43200
2009-09-28 10:30:34 +00:00
Aleksey Bragin
5fced5449b [fastfat_new]
- Start implementing one of the most massive IFS driver routines - IRP_MJ_CREATE handler. Right now it just does some preliminary work, deciphers all options, prepares all variables, prints out debug stuff.

svn path=/trunk/; revision=43199
2009-09-28 09:49:16 +00:00
Hervé Poussineau
e19fb94e99 bootvid.dll is in system32, not system32\drivers
svn path=/trunk/; revision=43198
2009-09-28 09:36:02 +00:00
Hervé Poussineau
04b1587c63 Fix debug message
svn path=/trunk/; revision=43197
2009-09-28 09:30:27 +00:00
Stefan Ginsberg
e97d4af887 - Remove superfluous VOID casts from 42314.
svn path=/trunk/; revision=43196
2009-09-27 20:34:40 +00:00
Stefan Ginsberg
a857ca2b6a - "Worked for me!"
svn path=/trunk/; revision=43195
2009-09-27 20:28:33 +00:00
Aleksey Bragin
7245b3c04b [fastfat_new]
- Acquire global lock before touching FatGlobalData structure.
- Initialize global VCB list, fixes a crash at volume mounting.
- Loading goes up to volume mounting, an attempt to query information and open a file.

svn path=/trunk/; revision=43194
2009-09-27 20:24:22 +00:00
Stefan Ginsberg
ef64669349 - Add more padding so our gcc compatible C_ASSERT doesn't conflict with ntoskrnl.h
svn path=/trunk/; revision=43193
2009-09-27 20:17:52 +00:00
Stefan Ginsberg
e7e6699ae1 - Use MAXUINT, MAXULONG, MAXDWORD, MAXULONGLONG and MAXULONGLONG instead of ~0 or casting -1 to unsigned.
- bintype.c: Use INVALID_SET_FILE_POINTER instead of (DWORD)-1.
- irp.c: KsGetNodeIdFromIrp returns KSFILTER_NODE (which is -1).
- basetsd.h: Add missing MAXUINT and MAXULONGLONG.
- typedefs.h: Add MAXULONG for mkhive.
- elf.inc.h and pe.c: Remove incorrect and unneeded MAXULONG define.

svn path=/trunk/; revision=43192
2009-09-27 20:07:43 +00:00
Daniel Reimer
d9fe1b8579 Synched the UniATA Inf to the internal support list. Now ROS can detect all supported SATA Controller even after 1st stage and properly shows them in the HW Wizard.
svn path=/trunk/; revision=43191
2009-09-27 14:21:47 +00:00
Sylvain Petreolle
10a06cc8a3 remove BOM
svn path=/trunk/; revision=43190
2009-09-27 13:44:37 +00:00
Daniel Reimer
18cf3ddaa4 Bug 4854: slovak updates by Mario Kacmar
Bug 4864: Bulgarian translation update for ReactOS.by CCTAHEB

svn path=/trunk/; revision=43189
2009-09-27 13:28:08 +00:00
Sylvain Petreolle
039e34f08c Arch, why are you using Unicode BOM ?
svn path=/trunk/; revision=43188
2009-09-27 13:27:36 +00:00
Stefan Ginsberg
0e4aca0ab4 - Remove deprecated GCC 4.4 hack
svn path=/trunk/; revision=43187
2009-09-27 13:20:44 +00:00
Kamil Hornicek
dc0fc114d6 - remove wgl* stubs added in r512, they don't belong here
svn path=/trunk/; revision=43186
2009-09-27 12:41:16 +00:00
Daniel Reimer
c4214a9722 Sync WinFile to Wine 1.1.30
svn path=/trunk/; revision=43185
2009-09-27 12:09:24 +00:00
Daniel Reimer
ae1fbc5ade Sync xcopy, winhlp32 and wordpad to Wine 1.1.30
svn path=/trunk/; revision=43184
2009-09-27 12:09:18 +00:00
Dmitry Gorbachev
4e0e2244b3 Fix undefined behavior, already fixed in Wine.
svn path=/trunk/; revision=43183
2009-09-27 11:56:35 +00:00
Dmitry Gorbachev
49cd47f946 Kill goto, avoid compiler warnings.
svn path=/trunk/; revision=43182
2009-09-27 11:56:16 +00:00
Dmitry Gorbachev
d9a760415b Give a name to a structure.
svn path=/trunk/; revision=43181
2009-09-27 11:55:47 +00:00
Stefan Ginsberg
8fa95b6a9c - Change CPUID to match the old Ki386Cpuid and take 4 output arguments instead of an array. This way we save some stack when using a dummy cpuid for synchronization and can query only the registers we want in the case we don't want all 4.
- Simplify Ke386GetTr and Ke386GetLocalDescriptorTable to return by value instead of reference.
- Make RDMSR smaller by making it fastcall as rdmsr takes its argument in ecx.
- Fix KiGetCacheInformation -- it only handled the Intel and AMD case.
- Replace Ke386HaltProcessor with __halt.
- KiHaltProcessorDpcRoutine: Always halt the processor for the architectures we support for consistency.
- Clean up x86 and PPC headers from deprecated stuff.
- Fix broken LOCK undefine in v86m_sup.S -- LOCK is used both in a macro and the code, so only undefine it where required and redefine it after it is used (this worked because LOCK was interpreted as lock).

Get rid of KeArch*:
- Rename KeArchInitThreadWithContext to KiInitializeContextThread and use the same name for all architectures.
- Kill KeArchHaltProcessor. Use __halt and KeArmHaltProcessor directly instead.
- Use Ke386FnInit instead of KeArchFnInit -- it is only used for x86.

svn path=/trunk/; revision=43180
2009-09-27 10:09:38 +00:00
Aleksey Bragin
733f6cb89b [uniata]
- Revert most of the 41684: "-fix support for ICH7,ICH7M,ICH8,ICH8M,ICH9,ICH9R,ICH9M and ICH10 in compat mode". Those controllers should be supported now, and when set to compat mode the driver falls back to UDMA automatically.
- ICH7 real hw testing is required. ICH9 doesn't work in Enhanced mode, works in Compat mode.

svn path=/trunk/; revision=43179
2009-09-27 10:04:21 +00:00
Johannes Anderwald
1c464b19ec - Add a few nodetypes
svn path=/trunk/; revision=43178
2009-09-27 09:56:14 +00:00
Aleksey Bragin
36bc68e508 - Add more supported ICH/PCH ids, confirmed by bearwindows.
svn path=/trunk/; revision=43177
2009-09-27 09:26:59 +00:00
James Tabor
91faf8f601 - [NtDDraw]
- Export global DD context size. Create a container for both PDev and EDDG structures. When allocating PDev and add the DD context size if not zero.

svn path=/trunk/; revision=43176
2009-09-27 03:12:02 +00:00
Johannes Anderwald
efc1228ec6 - Rewrite registering physical connection handling to support KSPROPERTY_PIN_PHYSICALCONNECTION
svn path=/trunk/; revision=43175
2009-09-27 00:50:06 +00:00
Timo Kreuzer
307f8beca8 Add rbuild files for x64 build. Dedicated to encoded.
svn path=/trunk/; revision=43174
2009-09-26 21:52:00 +00:00
Timo Kreuzer
f57f4193e5 Merge HAL changes 34743, 34812, 34839, 34917, 35515, 35771, 35902, 35904,
35905, 35906, 35942, 35947, 35948, 35949, 35953, 36013, 36388, 36389, 36570, 37873, 37991, 39151 from amd64 branch

svn path=/trunk/; revision=43173
2009-09-26 21:32:53 +00:00
Johannes Anderwald
40e44f56e1 - Add macros
svn path=/trunk/; revision=43172
2009-09-26 20:19:28 +00:00
Timo Kreuzer
e4eb3929f7 Add global compilerflag to ignore format warnings
svn path=/branches/ros-amd64-bringup/; revision=43171
2009-09-26 19:54:59 +00:00
Gregor Schneider
b96785f363 Don't add quick launch icon copies after showing a context menu
See issue #2453 for more details.

svn path=/trunk/; revision=43170
2009-09-26 19:24:39 +00:00
Dmitry Gorbachev
ad3b46fccd - Import Breton, Romansh, and Welsh NLS files from Wine.
- Sync locale RC files.
- Move language-specific stuff to more visible to translators place. ;)

svn path=/trunk/; revision=43169
2009-09-26 17:37:25 +00:00
Stefan Ginsberg
4c53cb03cc Fix one of the most awesome "_MSC_VER means compiling with Microsoft's header set" assumptions, revision 30728. Instead of breaking linking for user mode CRT to hide header incompatibilities we now use a less exciting solution; do not include the incompatible headers when implementing the affected functions -- abs.c and labs.c don't need anything at all, and strset.c only needs size_t, so define it there.
svn path=/trunk/; revision=43168
2009-09-26 15:42:34 +00:00
Stefan Ginsberg
7e11f6d4bc - HAL: Make /W3 friendly
- Everywhere else: Use casts instead of -1U to fix C4146 (this is compatible with both compilers)

svn path=/trunk/; revision=43167
2009-09-26 13:41:57 +00:00
Kamil Hornicek
53240a7115 - sync d3d8, d3d9, ddraw, wined3d with Wine 1.1.30
svn path=/trunk/; revision=43166
2009-09-26 11:13:40 +00:00
Dmitry Chapyshev
0e0e175f8d - Sync winhlp32 with Wine 1.1.30
svn path=/trunk/; revision=43165
2009-09-26 10:49:56 +00:00
Dmitry Chapyshev
2545051fec - Fix building of tests
svn path=/trunk/; revision=43164
2009-09-26 10:49:05 +00:00
Dmitry Chapyshev
ee67b18306 - Sync shlwapi, msxml3 and windowscodecs with Wine 1.1.30
svn path=/trunk/; revision=43163
2009-09-26 10:48:07 +00:00
Dmitry Chapyshev
92fb419193 - Sync crypt32 with Wine 1.1.30
svn path=/trunk/; revision=43162
2009-09-26 10:46:37 +00:00
Dmitry Chapyshev
e1fe6ab26d - Sync comctl32/comdlg32 with Wine 1.1.30
svn path=/trunk/; revision=43161
2009-09-26 10:45:59 +00:00
Dmitry Chapyshev
22db57dbe1 - Sync headers with Wine 1.1.30
svn path=/trunk/; revision=43160
2009-09-26 10:45:05 +00:00
Cameron Gutman
fcc4a34712 - Don't modify the size for now until I figure out where the incorrect code is
svn path=/trunk/; revision=43159
2009-09-26 06:50:06 +00:00
James Tabor
af4d2d6928 - Ilya Shpigor: User32: Skip STM_SETIMAGE message if the static control style does not match.
- Enable EnhMeta functions.

svn path=/trunk/; revision=43158
2009-09-26 05:36:10 +00:00
James Tabor
8d1578aa14 - Alexandre Julliard : kernel32: Cope with an empty resource section in UpdateResource.
- Wine Bug 19783 : http://bugs.winehq.org/show_bug.cgi?id=19783

svn path=/trunk/; revision=43157
2009-09-26 05:25:52 +00:00
Cameron Gutman
40d2ff91c9 - Add debug prints in failure cases
- Replace 0 with NO_ERROR

svn path=/trunk/; revision=43156
2009-09-26 01:05:45 +00:00
Johannes Anderwald
35d71447e0 - Enable building a bootcd
svn path=/trunk/; revision=43155
2009-09-26 00:57:22 +00:00
Cameron Gutman
6494e99ae8 - We want socket closure notification so we don't leak our socket context when the socket is destroyed
- Free socket context in WSHNotify

svn path=/trunk/; revision=43154
2009-09-25 23:44:51 +00:00
Cameron Gutman
dc5a52bb5a - Fix implementation of WSHGetWildcardSockaddr
- Implement WSHGetBroadcastSockaddr

svn path=/trunk/; revision=43153
2009-09-25 23:27:44 +00:00
Cameron Gutman
fe5958dbfe - Fix parameter checking in WSHGetSockaddrType
- Implement WSHGetWinsockMapping

svn path=/trunk/; revision=43152
2009-09-25 21:46:18 +00:00
Johannes Anderwald
48cb334fca [WDMAUD.DRV]
- Forward mixer control requests to wdmaud driver 
[MMEBUDDY]
- Handle MXDM_GETCONTROLDETAILS, MXDM_SETCONTROLDETAILS, MXDM_GETLINECONTROLS, MXDM_GETLINEINFO
[WDMAUD_KERNEL]
- Add stubs for mixer api

svn path=/trunk/; revision=43147
2009-09-25 18:06:13 +00:00
Johannes Anderwald
502edb2c1e [KS]
- Silent debug traces
- Try fix 'Assertion 'WorkItem->List.Flink == NULL' failed at ntoskrnl\ex\work.c'

svn path=/trunk/; revision=43146
2009-09-25 17:26:33 +00:00
Hervé Poussineau
897feb5b15 Revert r43141 to try to fix ReactOS boot style...
svn path=/trunk/; revision=43145
2009-09-25 15:10:28 +00:00
Cameron Gutman
a7a1d470fe - Fix a bug which causes port 0 to be classified as reserved instead of wildcard
svn path=/trunk/; revision=43144
2009-09-25 13:39:36 +00:00
Aleksey Bragin
02b0f9d055 [winldr]
- Fix release build.

svn path=/trunk/; revision=43143
2009-09-25 13:03:42 +00:00
Aleksey Bragin
f57d3a98b7 [winldr]
- Load and use debug boot options if built with DBG (mimics old reactos setupldr behaviour).

svn path=/trunk/; revision=43142
2009-09-25 09:28:37 +00:00
Hervé Poussineau
5519bfc73a Remove now unneeded ARC cdrom hack. We're now able to boot from a LiveCD, even if ReactOS directory is not "reactos"
svn path=/trunk/; revision=43141
2009-09-24 22:05:10 +00:00
Hervé Poussineau
757788da16 [freeldr] Put cdrom information in block list information
svn path=/trunk/; revision=43140
2009-09-24 21:29:31 +00:00
Johannes Anderwald
d3716d892e - Fix derefercing of null pointer
- Brought to you by Amine Khaldi (amine48rz)

svn path=/trunk/; revision=43139
2009-09-24 20:32:31 +00:00
Johannes Anderwald
0cb3d8ff11 [WDMAUD.DRV]
- Implement copying mixer capabilities
[WDMAUD_KERNEL]
- Partly implement retrieving mixer capabilties
- Implement retrieving mixer name

svn path=/trunk/; revision=43138
2009-09-24 19:24:22 +00:00
Johannes Anderwald
c17e7adfbd [WDMAUD.DRV]
- Implement opening / closing of mixer devices
[AUDIO_TEST]
- Add DirectKs sample test function
[WDMAUD_KERNEL]
- Use KSSTREAM header of the changed interface

svn path=/trunk/; revision=43133
2009-09-24 18:11:22 +00:00
Stefan Ginsberg
bea4561694 - msctf: Define function calling convention compatibly for MSVC. Patch sent to and accepted by Wine.
svn path=/trunk/; revision=43132
2009-09-24 18:01:03 +00:00
Kamil Hornicek
28f4e36884 - handle WGL_SWAP_MAIN_PLANE flag in rosglSwapLayerBuffers
svn path=/trunk/; revision=43131
2009-09-24 16:35:20 +00:00
Johannes Anderwald
a05d1166e2 - Implement CPortFilterWaveCyclic::FastDeviceIoControl
svn path=/trunk/; revision=43130
2009-09-24 15:07:29 +00:00
Johannes Anderwald
fee01ee6d4 - Rewrite mixer enumeration functions
- WDMAUD should reports a mixer device each time it sees a KSNODETYPE_ADC / KSNODETYPE_DAC

svn path=/trunk/; revision=43129
2009-09-24 14:54:58 +00:00
Hervé Poussineau
5a4647d276 Put bootvid.dll in system32 directory
svn path=/trunk/; revision=43127
2009-09-24 11:58:06 +00:00
Hervé Poussineau
2432b60a2e WINLDR: Don't hardcode filesystem driver name
Instead, use the one of the system partition

svn path=/trunk/; revision=43126
2009-09-24 08:15:13 +00:00
Timo Kreuzer
bb296ffa81 Sync with trunk r43123
svn path=/branches/ros-amd64-bringup/; revision=43125
2009-09-23 21:01:57 +00:00
Hervé Poussineau
d338a87238 Partly unregress Xbox 1 port. It now fails with INACCESSIBLE_BOOT_DEVICE bugcheck
svn path=/trunk/; revision=43124
2009-09-23 20:59:08 +00:00
Hervé Poussineau
3287d9f0c1 [freeldr] Partition numbers are 1 based
svn path=/trunk/; revision=43123
2009-09-23 19:07:49 +00:00
Dmitry Gorbachev
ac46db36ce Update log2lines to version 1.1. Patch by Jan Roeloffzen. Bug #4342.
svn path=/trunk/; revision=43122
2009-09-23 10:33:11 +00:00
Cameron Gutman
992ce2eedd - Comment out RegNotifyChangeKeyValue call until it gets implemented
- WSAStartup succeeds now

svn path=/trunk/; revision=43121
2009-09-23 01:17:14 +00:00
Art Yerkes
f0b6797aad Allocate a TLS slot once at process join and treat TlsIndex as an alias to it.
svn path=/trunk/; revision=43120
2009-09-23 00:45:19 +00:00
Aleksey Bragin
dacdbb5e50 [win32k]
- Giannis Adamopoulos: Don't do callbacks to usermode when holding the lock. Fixes the famous "VMWare video driver installer 2nd stage hang" bug. Signed off by James Tabor.
See issue #2666 for more details.

svn path=/trunk/; revision=43119
2009-09-22 21:50:33 +00:00
Colin Finck
4842b49169 - Get rid of the KDB_MODULE_INFO and operate with LDR_DATA_TABLE_ENTRYs directly.
This saves us from some copy steps and unneeded search operations.
- Fix loading HAL.DLL symbols.
  This module is not guaranteed to be the second one in PsLoadedModuleList due to the kernel loading bootvid.dll.
- Don't duplicate code in KdbpSymFindModule and KdbpSymFindUserModule. Use a helper function instead and call it twice from KdbpSymFindModule.
- Get rid of KdbpSymFindModuleByAddress, KdbpSymFindModuleByName and KdbpSymFindModuleByIndex. Instead use a single KdbpSymFindModule for all three variants.
- Remove some unused functions and defines.

svn path=/trunk/; revision=43118
2009-09-22 21:31:55 +00:00
Hervé Poussineau
7f582de62c [freeldr] Never ever define a macro as multiple instructions. It may lead to subtle bugs
svn path=/trunk/; revision=43117
2009-09-22 20:33:56 +00:00
Johannes Anderwald
39b702d16e - Fix memory leak
- Fix displaying of random characters if there is no device name

svn path=/trunk/; revision=43116
2009-09-22 20:09:11 +00:00
Hervé Poussineau
4648a3e59d [freeldr] Rework NTFS filesystem to not be tied to boot filesystem
svn path=/trunk/; revision=43115
2009-09-22 19:37:11 +00:00
Hervé Poussineau
9b86293dce [freeldr] Move definition of maximum number of available file descriptors to fs.h
Fix typos

svn path=/trunk/; revision=43114
2009-09-22 19:33:34 +00:00
Hervé Poussineau
16c6a54da7 [freeldr] Accept to read blocks whose size is not a multiple of device sector size
svn path=/trunk/; revision=43113
2009-09-22 19:32:35 +00:00
Johannes Anderwald
f03906b449 - Partly implement IBandSite, IMenuBand
svn path=/trunk/; revision=43112
2009-09-22 18:30:39 +00:00
Johannes Anderwald
2be3bf200c - Fix a bug spotted by Timo
svn path=/trunk/; revision=43111
2009-09-22 13:54:33 +00:00
Johannes Anderwald
58184d639d - Stubplement IBandSite interface
svn path=/trunk/; revision=43110
2009-09-22 13:52:54 +00:00
Kamil Hornicek
4dc423f636 - don't return false on success
svn path=/trunk/; revision=43109
2009-09-22 10:29:27 +00:00
Stefan Ginsberg
aaff3e2d56 - Use __writeeflags instead of clc to clear the carry flag.
svn path=/trunk/; revision=43108
2009-09-21 22:08:44 +00:00
Johannes Anderwald
9422016556 - Fix up-down control spinning
See issue #3390 for more details.

svn path=/trunk/; revision=43107
2009-09-21 19:31:19 +00:00
Johannes Anderwald
c0a4a591d8 - Fix playing global thermo nuclear war in ReactOS
- Found by encoded

svn path=/trunk/; revision=43105
2009-09-21 18:11:52 +00:00
James Tabor
13aafd8c95 - Add the missing Result return pointed out by Michael Martin.
svn path=/trunk/; revision=43104
2009-09-21 17:29:26 +00:00
Stefan Ginsberg
53231784a0 Mega compiler intrinsics patch:
FreeLdr
- Goodbye Ke386EraseFlags & KeAmd64EraseFlags. Welcome __writeeflags.
- Respect MSVC when generating clc (clear carry flag) instruction in PcGetTime.
- Use portable __wbinvd instead of __asm__ in XboxMemInit.
- Replace broken gcc assembly by portable intrinsics in WinLdrpMapApic.
- Use portable Ke386SetSs and Ke386SetGs (new) in WinLdrSetProcessorContext.
- The far jump in WinLdrSetProcessorContext can not be expressed in masm, so we use a (untested) far return instead.

Kernel
- Replace Ke386Set/GetInterruptDescriptorTable, Ke386Save/RestoreFlags, Ke386Set/GetDr, Ki386Cpuid, Ke386Rdmsr and Ke386Wrmsr by MSVC alternatives present in intrin.h.
- Fixed Ke386Get/SetGlobalDescriptorTable, Ke386GetLocalDescriptorTable and Ke386GetTr -- the intrinsics were completely broken for MSVC and generated bogus code. Moreover, Ke386Set/GetInterruptDescriptorTable and Ke386Rdmsr were also affected. This lets us (in addition to having a bootable, working msvc compiled kernel) get rid of several hacky variable zero-initializations that hid this bug -- the way MSVC interpreted the inlined assembly resulted in uninitialized variable usage.
- Implement Ke386SetGs and add missing Ke386SetGs for gcc.
- KdPollBreakIn: Use portable KeDisableInterrupts instead of x86 intrinsics and flags.

svn path=/trunk/; revision=43103
2009-09-21 15:20:18 +00:00
Michael Martin
302ad7c74f LogfWriteData: Add missing LeaveCriticalSection before returning from function. Found by Amine Khaldi
svn path=/trunk/; revision=43102
2009-09-21 12:49:25 +00:00
James Tabor
1ebd555855 - Working with Michael Martin to fix the LoadMenu callback bug. MenuName is a variable string buffer and not a pointer. The minimum size is always four bytes. Initialization of the structure, zero out the memory, allowing Intersource check to function as it should. To make it Intersource, use the first word character in the buffer.
svn path=/trunk/; revision=43101
2009-09-21 01:22:32 +00:00
Cameron Gutman
bd6fba2037 - Stub and export GetAddrInfoW
svn path=/trunk/; revision=43100
2009-09-20 22:20:16 +00:00
Cameron Gutman
4d2e0e023f - Simplify and fix a few bugs in datagram reassembly
- Implement reassembly timeout

svn path=/trunk/; revision=43099
2009-09-20 21:07:45 +00:00
Dmitry Gorbachev
5ec7ec1632 Update / add Japanese translations. Tomoya Kitagawa, bug #4852.
svn path=/trunk/; revision=43098
2009-09-20 19:35:23 +00:00
Johannes Anderwald
a1aecae7e1 - Fix a crash when an application hasnt defined a event label
svn path=/trunk/; revision=43097
2009-09-20 17:44:52 +00:00
Johannes Anderwald
8694a0d2e3 - Rewrite sound scheme handling
- Implement changing sound scheme & sound action

svn path=/trunk/; revision=43096
2009-09-20 15:47:32 +00:00
Cameron Gutman
4834de3328 - Partial rewrite of dispatch()
- Header cleanup
 - Fix several bugs related to null pointer access and out-of-bounds array access
 - Found by Amine Khaldi
 - This should fix the issue with dhcp crashing and hogging tons of cpu time

svn path=/trunk/; revision=43095
2009-09-20 15:00:08 +00:00
Johannes Anderwald
ba7067eafa - Fix several bugs in printer ' IShellFolder implementation
- Partly implement IShellFolder::GetAttributesOf
- Implement IShellFolder::GetDisplayNameOf for root pidl
- Implement ISF_ControlPanel_fnParseDisplayName to parse display names
<spoiler>Gets rid of the annoying message box when clicking on the printer folder in the start menu</spoiler>

svn path=/trunk/; revision=43094
2009-09-20 04:21:29 +00:00
Cameron Gutman
3aee3165e0 - Remove a DbgPrint that was forgotten
svn path=/trunk/; revision=43093
2009-09-20 01:58:06 +00:00
Cameron Gutman
c1769578ac - Fix GetIpNetTable
- Arp -a will now show a complete list of ARP information

svn path=/trunk/; revision=43092
2009-09-20 01:37:40 +00:00
James Tabor
bc07b8444d - Update Edit wine tests.
svn path=/trunk/; revision=43090
2009-09-19 23:37:32 +00:00
James Tabor
ea148f5053 - Wine sync up to 1.1.29 Edit controls.
svn path=/trunk/; revision=43089
2009-09-19 23:31:17 +00:00
James Tabor
bbbab20bda - Header cleanup +1.
svn path=/trunk/; revision=43088
2009-09-19 22:21:12 +00:00
James Tabor
9df47abb4d - Header cleanup.
svn path=/trunk/; revision=43087
2009-09-19 22:20:43 +00:00
James Tabor
3cb48f661e - Two bugs found by Michael Martin.
svn path=/trunk/; revision=43086
2009-09-19 22:17:25 +00:00
Timo Kreuzer
4dfeddc69f Merge from amd64 branch:
35746 sserapion Convert crtdll to WINE's spec file.
35789 sserapion re-add missing api, remove unneded file
36614 sserapion convert d3d8 to spec
36930 sserapion Fix more rbuild files and fix up gdi32 and glu32 spec files.
38148 tkreuzer convert d3d8thk to spec
38151 tkreuzer convert ddraw to spec
38265 sserapion devcpux:- Fix ProcessorDlgProc definition - Convert to spec.
      slayer:- Convert to spec.
38268 sserapion devcpux:- Fix ProcessorDlgProc definition
39333 tkreuzer hid: convert to spec (taken from wine)
39345 tkreuzer ksuser: convert to spec, don't allow warnings
40991 tkreuzer msafd: convert to spec / fix 64bit build
41000 tkreuzer mswsock: convert to spec, taken from wine
41050 tkreuzer sndblast: convert to spec
43080 tkreuzer winsta: convert to spec and fix duplicate definition
41082 tkreuzer twaain_32: convert to spec
41083 tkreuzer uext: convert to spec
41084 tkreuzer ufat: convert to spec
41085 tkreuzer ufatx: convert to spec
41086 tkreuzer untfs: convert to spec
41549 tkreuzer winfax: covert to spec

svn path=/trunk/; revision=43085
2009-09-19 22:16:27 +00:00
Timo Kreuzer
500fbf596b winsta: fix spec file
svn path=/branches/ros-amd64-bringup/; revision=43084
2009-09-19 21:21:08 +00:00
Timo Kreuzer
a88e28262c update syssetup.spec from trunk
svn path=/branches/ros-amd64-bringup/; revision=43083
2009-09-19 20:25:10 +00:00
Timo Kreuzer
db120f8686 merge from amd-64 branch:
r40992: msconfig: don't use inline functions as case labels [[Timo Kreuzer]]

svn path=/trunk/; revision=43082
2009-09-19 16:13:34 +00:00
Dmitry Chapyshev
6ca1f0de19 - Implement "Settings" dialog.
- Implement save of position of a window
- Implement installation/deinstallation logs
- Implement auto updating programs list at start
- Remove unused code from loaddlg.c
- Some small changes bug fixes

svn path=/trunk/; revision=43081
2009-09-19 16:04:38 +00:00
Timo Kreuzer
bd754cd1f3 convert to spec and fix duplicate definition
svn path=/branches/ros-amd64-bringup/; revision=43080
2009-09-19 14:06:47 +00:00
Timo Kreuzer
f9c2afd00a Sync with trunk r43000
svn path=/branches/ros-amd64-bringup/; revision=43079
2009-09-19 13:58:16 +00:00
Cameron Gutman
8f5ae98c4f - Fix a small bug in the route selection code
svn path=/trunk/; revision=43078
2009-09-19 03:22:26 +00:00
Cameron Gutman
9ccce3d818 - Changed some behavior from the last neighbor cache rewrite
- NCEs are no longer destroyed when they become stale so the hardware address can be saved for direct communication
 - The route selection code has been changed to choose against stale NCEs if possible

svn path=/trunk/; revision=43077
2009-09-19 01:39:16 +00:00
Cameron Gutman
3db65819eb - Partial rewrite of CHEW
- Remove some unneeded work item usage
 - Remove an unused member of DISCONNECT_TYPE

svn path=/trunk/; revision=43076
2009-09-19 00:58:36 +00:00
Aleksey Bragin
13ebb47cf4 - Fix a couple of bugs in the uniata ATA code spotted by bearwindows. ICH8/ICH9/ICH10 should be supported now.
svn path=/trunk/; revision=43075
2009-09-18 22:25:34 +00:00
Stefan Ginsberg
056eed5ceb - Use msvc intrinsics in HAL instead of Ke386*
svn path=/trunk/; revision=43074
2009-09-18 20:56:49 +00:00
Stefan Ginsberg
baf7d1b796 - _mingw.h: Don't define __attribute__ to nothing -- this is only good for creating bugs.
- sect_attribs.h: Define _CRTALLOC for msvc. Enable #pragma section and add missing .tls and .tls$ZZZ.
- mingw runtime: Only use __attribute__((weak)) for gcc.
- freeldr: Use #pragma pack instead of __attribute__((packed)).
- kernel32: Only alias __cxa_pure_virtual to _purecall for gcc.

svn path=/trunk/; revision=43073
2009-09-18 15:22:28 +00:00
Johannes Anderwald
36e9913408 - Fix a bug which broke build
svn path=/trunk/; revision=43072
2009-09-18 09:29:39 +00:00
Johannes Anderwald
8c36300c0b - Allow creating a copy of a file residing in the same directory
- Free the correct the buffer 
- Romanian language needs to be updated
See issue #4846 for more details.

svn path=/trunk/; revision=43070
2009-09-18 00:48:47 +00:00
Cameron Gutman
885d8e0656 - Use proper object attributes and share access when opening the file object
- Fixes a rare INVALID_KERNEL_HANDLE BSOD and debug log handle warnings from AFD when using Firefox
 - See bug #4796

svn path=/trunk/; revision=43069
2009-09-17 23:09:16 +00:00
Johannes Anderwald
6049b93ebc - Implement ISFHelper_fnCopyItems for desktop shellfolder
- Check if the target folder desktop
- Fixes copying of files to desktop

See issue #4845 for more details.

svn path=/trunk/; revision=43068
2009-09-17 22:57:50 +00:00
Stefan Ginsberg
699f0baa21 - Fix kernel build regression for MSVC from 43014
svn path=/trunk/; revision=43067
2009-09-17 18:28:26 +00:00
Art Yerkes
ac0cfa98e2 Patch by maxime vernier (bugzilla bug 4661).
Fix the ghost bug and the graphical glitch with process id 0

svn path=/trunk/; revision=43066
2009-09-17 16:07:37 +00:00
Stefan Ginsberg
1b035b748d - Use __MINGW_NOTHROW instead of __attribute__
svn path=/trunk/; revision=43065
2009-09-17 15:47:35 +00:00
Stefan Ginsberg
066451d087 - Fix uninitialized variable usage in DefWindowProcA/W
- Don't inline EnableScrollBar as a forwarder for NtUserEnableScrollBar when it is implemented differently. Also define EXTINLINE compatibly for MSVC.

svn path=/trunk/; revision=43064
2009-09-17 15:46:24 +00:00
Johannes Anderwald
64b23aea12 - Fix 2 user32 winstation test failures (patch by Giannis Adamopoulos johnyadams (_AT_)hotmail (D-O-T) com
- Test results verified by Amine Khaldi

svn path=/trunk/; revision=43063
2009-09-17 15:25:36 +00:00
Johannes Anderwald
172097561a - Fix 2 user32 winstation test failures (patch by Giannis Adamopoulos johnyadams (_AT_)hotmail (D-O-T) com
- Revert hack from 43061 and fix it properly
- Test results verified by Amine Khaldi

svn path=/trunk/; revision=43062
2009-09-17 15:20:24 +00:00
Johannes Anderwald
9d87a14a91 - Fix copying of files / directories in explorer view
- Part 2/2

svn path=/trunk/; revision=43061
2009-09-17 13:45:08 +00:00
Johannes Anderwald
49f6944ab0 - Fix copying of files / directories in explorer view
- Part 1/2

svn path=/trunk/; revision=43060
2009-09-17 13:44:34 +00:00
Cameron Gutman
de538d3fb3 - Call SetLastError/GetLastError to do our work for WSASetLastError/WSAGetLastError
- This will help find regressions before moving to ws2_32_new (ws2_32_new uses this method)

svn path=/trunk/; revision=43058
2009-09-15 22:21:27 +00:00
Johannes Anderwald
62d4dce686 - Set ProgramFiles, CommonProgramFiles environment variable
See issue #4008 for more details.

svn path=/trunk/; revision=43057
2009-09-15 22:14:12 +00:00
James Tabor
148f6d7472 - Patch by Smiley <johnyadams@hotmail.com>: remove redundant system calls when window structure is available to user space.
svn path=/trunk/; revision=43056
2009-09-15 22:13:16 +00:00
Dmitry Chapyshev
b30e6874f7 - Add validation a computer name
- Set limit for computer name length

svn path=/trunk/; revision=43055
2009-09-15 15:36:35 +00:00
James Tabor
e3083bb86d - Update win32k tests.
svn path=/trunk/; revision=43054
2009-09-15 15:25:37 +00:00
James Tabor
b5f5703c66 [User32] Theme Support Interface
- This is part 1, Tested with Wine user32 tests, Seamonkey, FireFox and AbiWord.
[References:]
- http://www.reactos.org/wiki/RegisterUserApiHook
- http://www.codeproject.com/KB/miscctrl/uxtheme.aspx
- http://opcode0x90.wordpress.com/2007/05/11/user32__clientloadlibraryx/
- US Patent 6992681 and 6762767 - Theme aware management using fusion

svn path=/trunk/; revision=43053
2009-09-15 15:24:09 +00:00
Dmitry Chapyshev
b8395bbb78 - Partially implement "Computer Name Changes" dialog. Computer name can be changed now.
See issue #3304 for more details.

svn path=/trunk/; revision=43052
2009-09-15 13:45:34 +00:00
Johannes Anderwald
d794889e14 - Check if a shortcut to shortcut is made and resolve it in that case
- Fixes bug 4720

svn path=/trunk/; revision=43051
2009-09-14 22:55:44 +00:00
Dmitry Chapyshev
75b7890a52 - Handle potential null-pointer access. Found by Amine Khaldi.
svn path=/trunk/; revision=43050
2009-09-14 11:13:54 +00:00
Michael Martin
398838e6c3 NtAllocateVirtualMemory: Add check to make sure that BaseAddress + RegionSize is inside MemoryArea.
For AllocationType of MEM_RESET add FIXME's and return STATUS_SUCCESS, without modifying attributes of region. Fixes 2 virtual tests for kernel32_winetest.

svn path=/trunk/; revision=43049
2009-09-14 09:21:05 +00:00
Cameron Gutman
89975fc479 - Rework our aging neighbor cache system that never quite worked correctly
- Fixes several memory leaks
 - Fix the event timer and NCE timeouts
 - We now keep our neighbor cache updated and remove stale entries

svn path=/trunk/; revision=43048
2009-09-14 04:20:05 +00:00
Dmitry Chapyshev
9422642223 - Fix starting Imdisk applet. Patch by Johnny Adams (johnyadams[at]hotmail[dot]com)
See issue #4481 for more details.

svn path=/trunk/; revision=43047
2009-09-14 02:28:50 +00:00
James Tabor
e30c013155 - Remove redundant null check. Spotted by Amine Khaldi.
svn path=/trunk/; revision=43046
2009-09-14 00:36:08 +00:00
Johannes Anderwald
0a2995d3a6 - Remove obsolete code
- Fix closing of virtual audio devices introduced 43035

svn path=/trunk/; revision=43045
2009-09-13 22:26:59 +00:00
Johannes Anderwald
71333f2f32 - Add back PHYSICAL_ADDRESS workarround for IDmaChannel::PhysicalAddress
- Only define guids for gcc
- Add missing PURE interface function definitions
- Silence debug spam
- Initialize ResourceList members
- Fix calculation when allocating new resources entries
- Fix building of portcls with msvc

svn path=/trunk/; revision=43044
2009-09-13 22:13:48 +00:00
James Tabor
848f926415 - Add query window for real process Id.
svn path=/trunk/; revision=43043
2009-09-13 22:06:58 +00:00
Dmitry Gorbachev
1977bb8a55 Fix r43040 mistake.
svn path=/trunk/; revision=43042
2009-09-13 21:26:46 +00:00
Stefan Ginsberg
5de8f359fe - Fix some redefinition warnings caused by our headers' suckyness
svn path=/trunk/; revision=43041
2009-09-13 21:23:54 +00:00
Dmitry Gorbachev
92b08a01ef Fix GCC detection in RBuild (first check TARGET_CC).
svn path=/trunk/; revision=43040
2009-09-13 21:18:21 +00:00
Johannes Anderwald
739a12f946 - Fix typo
svn path=/trunk/; revision=43039
2009-09-13 21:10:33 +00:00
Dmitry Gorbachev
89246ee4ec Silence compiler warnings for all GCC 4.4.x versions.
svn path=/trunk/; revision=43038
2009-09-13 18:51:44 +00:00
Dmitry Chapyshev
7cf92c45bd - Fix cursor position bug after turn off word wrap. Patch by Alexey Komarov
See issue #3702 for more details.

svn path=/trunk/; revision=43037
2009-09-13 05:36:24 +00:00
Johannes Anderwald
6fd2ea71d2 [KS]
- Store Object Header in FsContext2
- Fix allocation of create item entry in KsAllocateObjectCreateItem
- Fix de-referencing in Ks[De]ReferenceSoftwareBusObject & Ks[De]ReferenceBusObject
- Fake success in KsEnableEvent
- Check if the list empty in KspFreeEventList
- Handle GUID_NULL in KspPropertyHandler
- Return STATUS_MORE_ENTRIES if outputbuffer is too small
- Zero struct in KsRegisterWorker
[PORTCLS]
- Store dispatch context in FsContext
- Ignore return value in interrupt sync routine [[Amine Khaldi]]
- Disable assert for frame size check for now
- Free buffer only if the irp was from kernel mode(hack 2 be removed)
- remove unused includes [[Amine Khaldi]]
- Don't attempt copying an empty resource list [[Amine Khaldi]]
[WDMAUD_KERNEL]
- Check if allocation succeeded [[Amine Khaldi]]
[SYSAUDIO]
- Store dispatch context in FsContext2


svn path=/trunk/; revision=43035
2009-09-12 14:35:27 +00:00
Dmitry Chapyshev
d34f9b2919 - Remove unused variable. Found by Amine Khaldi.
svn path=/trunk/; revision=43034
2009-09-12 12:14:21 +00:00
Dmitry Chapyshev
2ff9fd5fcf - Add NULL pointer check. Found by Amine Khaldi.
svn path=/trunk/; revision=43033
2009-09-12 12:04:39 +00:00
Cameron Gutman
6672b72619 - Fix memory leaks when reading strings and binary values from the registry
- Fix list manipulation

svn path=/trunk/; revision=43032
2009-09-12 02:26:33 +00:00
Stefan Ginsberg
172aed5aa9 - ObpCreateDosDevicesDirectory: Check that allocation succeeded before dereference
svn path=/trunk/; revision=43031
2009-09-11 22:31:46 +00:00
Stefan Ginsberg
5c57066048 - Remove accidental change from 42918
svn path=/trunk/; revision=43030
2009-09-11 18:18:21 +00:00
James Tabor
7cdc0d481a - Quick implementation of RtlIsThreadWithinLoaderCallout.
svn path=/trunk/; revision=43029
2009-09-11 07:12:30 +00:00
Johannes Anderwald
f889dc273c - Fix build #2
svn path=/trunk/; revision=43028
2009-09-11 06:53:50 +00:00
Johannes Anderwald
fb611f08d0 - Fix build
svn path=/trunk/; revision=43027
2009-09-11 06:45:30 +00:00
Johannes Anderwald
ad2cf72549 - Convert portcls to a C++ driver
- Tested with Vbox 2.2.4 + AC97 with Winamp
- WIP, Testing recommended

svn path=/trunk/; revision=43026
2009-09-11 06:33:55 +00:00
Johannes Anderwald
82376f839e - Remove dead code
svn path=/trunk/; revision=43025
2009-09-11 06:33:01 +00:00
Stefan Ginsberg
6469ecfb2b - Fix various warnings in inflib (thanks to Ged for help with what appears to be a gcc bug in push_token)
- Disable useless gcc warning in libjpeg
- Fix a 64-bit warning in pefixup

svn path=/trunk/; revision=43024
2009-09-10 17:41:44 +00:00
Johannes Anderwald
fece42a150 - A few header updates
svn path=/trunk/; revision=43023
2009-09-10 09:52:40 +00:00
Dmitry Gorbachev
c89668ac36 Correct the terms for measurement systems.
Love Nystrom (lovenystrom]at[hotmail]dot[com), bug #4838.

svn path=/trunk/; revision=43022
2009-09-10 05:11:55 +00:00
Dmitry Gorbachev
2d133c5a5f Sync translations with English file. Javier Remacha. Bug #4731.
svn path=/trunk/; revision=43021
2009-09-10 04:49:19 +00:00
Dmitry Gorbachev
761c741815 Update/add Spanish and Basque translations. Javier Remacha. Bug #4731. (2/2)
svn path=/trunk/; revision=43020
2009-09-10 04:02:33 +00:00
Dmitry Gorbachev
b810a5f55a Update/add Spanish and Basque translations. Javier Remacha. Bug #4731. (1/2)
svn path=/trunk/; revision=43019
2009-09-10 04:02:22 +00:00
Dmitry Gorbachev
5b1957fe6d Japanese translations by Tomoya Kitagawa. Bug #4840. (2/2)
svn path=/trunk/; revision=43018
2009-09-09 23:43:37 +00:00
Dmitry Gorbachev
30afc678b7 Japanese translations by Tomoya Kitagawa. Bug #4840. (1/2)
svn path=/trunk/; revision=43017
2009-09-09 23:43:32 +00:00
Dmitry Gorbachev
e95d84f203 Update Slovak translation. Mario Kacmar. Bug #4839.
svn path=/trunk/; revision=43016
2009-09-09 23:43:22 +00:00
Dmitry Gorbachev
67e6ee1fc2 Spanish translation of RApps by Javier Remacha. Bug #4731.
svn path=/trunk/; revision=43015
2009-09-09 23:43:16 +00:00
Colin Finck
3e4016ea24 [FORMATTING] Fix the indentation mess in KDBG and use a consistent 4 spaces indentation.
svn path=/trunk/; revision=43014
2009-09-09 13:49:04 +00:00
James Tabor
5221d11896 - [Win32k] Class rewrite
- This is part 1, tested with Wine user32 class, Seamonkey, FireFox and AbiWord.
- Please refer to bug report 4778.

svn path=/trunk/; revision=43010
2009-09-07 04:55:00 +00:00
James Tabor
f5617658a3 Patch by johnyadams@hotmail.com: Some applications try to set a child as a parent. See bug 4789.
svn path=/trunk/; revision=43009
2009-09-06 22:20:34 +00:00
Hervé Poussineau
d67020065f Revert r43007 to try to please buildbot
svn path=/trunk/; revision=43008
2009-09-06 21:33:27 +00:00
Hervé Poussineau
bc1ef0f290 Rework FAT filesystem to not be tied to boot filesystem
svn path=/trunk/; revision=43007
2009-09-06 20:02:22 +00:00
Hervé Poussineau
0472f141b8 Implement GetFileInformation() on disks for i386 architecture
svn path=/trunk/; revision=43006
2009-09-06 20:00:23 +00:00
Hervé Poussineau
e6aa81a105 Remove code dealing with FAT cache. It is never used
svn path=/trunk/; revision=43005
2009-09-06 16:43:03 +00:00
Hervé Poussineau
8803ca6791 For now, some filesystems still need to use DiskGetBootVolume()...
svn path=/trunk/; revision=43004
2009-09-06 16:07:08 +00:00
Hervé Poussineau
86500a05fc Remove support for machine specific versions of DiskGetBootVolume and DiskGetSystemVolume
svn path=/trunk/; revision=43003
2009-09-06 15:59:16 +00:00
Hervé Poussineau
f0d54803ce Do not leak device descriptors in case of error
svn path=/trunk/; revision=43002
2009-09-06 14:21:00 +00:00
Sylvain Petreolle
fdc770befb reenable kernel32:pipe test
try and comment out test_read_write() in kernel32:file test,
it causes MDL PROBE FAILED errors

svn path=/trunk/; revision=43001
2009-09-06 13:11:11 +00:00
Sylvain Petreolle
144e14b5de forgot the header update part.
svn path=/trunk/; revision=43000
2009-09-06 11:22:47 +00:00
Sylvain Petreolle
217abe07bc sync mlang winetest with wine 1.1.29
svn path=/trunk/; revision=42999
2009-09-06 11:05:14 +00:00
Sylvain Petreolle
7659b1a778 - Sync mlang with Wine 1.1.29
svn path=/trunk/; revision=42998
2009-09-06 11:05:11 +00:00
Dmitry Chapyshev
e5bda864f3 - Handle memory allocation failures. Found by Amine Khaldi
svn path=/trunk/; revision=42997
2009-09-05 15:07:13 +00:00
Dmitry Chapyshev
9edf823a23 - Sync sti with Wine 1.1.29
svn path=/trunk/; revision=42996
2009-09-05 15:04:13 +00:00
Dmitry Chapyshev
1405554792 - Sync ole32 and oleaut32 with Wine 1.1.29
svn path=/trunk/; revision=42995
2009-09-05 15:03:37 +00:00
Dmitry Chapyshev
4480f2ca35 - Sync msctf, mshtml and msxml3 with Wine 1.1.29
svn path=/trunk/; revision=42994
2009-09-05 15:02:49 +00:00
Dmitry Chapyshev
fb3ef650c9 - Sync comctl32 and comdlg32 with Wine 1.1.29
svn path=/trunk/; revision=42993
2009-09-05 15:01:30 +00:00
Dmitry Chapyshev
cc90d205cc - Sync headers with Wine 1.1.29
svn path=/trunk/; revision=42992
2009-09-05 15:00:41 +00:00
Kamil Hornicek
7a390b0142 - update wined3d to Wine 1.1.29
- reapply our hack for releasing fake GL context, fixes bug 4836
See issue #4836 for more details.

svn path=/trunk/; revision=42991
2009-09-04 09:38:44 +00:00
Dmitry Chapyshev
95776aba48 - Handle memory allocation failure. Found by amine48rz
svn path=/trunk/; revision=42990
2009-09-03 15:30:38 +00:00
Dmitry Chapyshev
5a6e6bdf2a - Sync gdiplus with Wine 1.1.29
svn path=/trunk/; revision=42989
2009-09-03 15:07:25 +00:00
Daniel Reimer
2b26c07762 Bug 4795: Japanese translation for paint by pcds90net, Tomoya Kitagawa
Bug 4828: updates for slovak and translation for rapps by Mario Kacmar

svn path=/trunk/; revision=42988
2009-09-03 15:05:10 +00:00
Dmitry Chapyshev
e6c21517ae - Sync shdocvw with Wine 1.1.29
svn path=/trunk/; revision=42987
2009-09-03 14:59:32 +00:00
Dmitry Chapyshev
953707a174 - Sync windowscodecs with Wine 1.1.29
svn path=/trunk/; revision=42986
2009-09-03 14:54:19 +00:00
Kamil Hornicek
509c6dadc2 - update wined3d, d3d8, d3d9, ddraw to Wine 1.1.28
svn path=/trunk/; revision=42983
2009-09-03 09:18:38 +00:00
Dmitry Chapyshev
0b70fb9114 - Update applications information. Patch by Maciej Bialas (bjauy[at]tlen[dot]pl)
svn path=/trunk/; revision=42982
2009-09-02 14:59:50 +00:00
Dmitry Chapyshev
631c081835 - Free memory at initialization failure
svn path=/trunk/; revision=42981
2009-09-02 13:07:12 +00:00
Dmitry Chapyshev
8954edb33c - Add missed checks of memory allocation failures
svn path=/trunk/; revision=42980
2009-09-02 13:02:30 +00:00
Colin Finck
733c8b092d Michael Bruestle (michael_bruestle@yahoo.com)
- Properly handle multiple monitors in the screensavers (expand the screensaver window to all monitors)

svn path=/trunk/; revision=42979
2009-09-01 18:48:36 +00:00
Dmitry Chapyshev
61722a34c0 - Update applications information. Patch by Maciej Bialas (bjauy[at]tlen[dot]pl)
See issue #4818,4807 for more details.

svn path=/trunk/; revision=42978
2009-09-01 15:12:35 +00:00
Cameron Gutman
b464adfcbe - Send NetEventBindsComplete when binding has completed (required for the WDK example ndis protocol driver to work)
svn path=/trunk/; revision=42977
2009-09-01 00:15:30 +00:00
Stefan Ginsberg
4cb0bbe32f - Fix a valid gcc 4.4.0 uninitialized variable warning
svn path=/trunk/; revision=42976
2009-08-31 20:40:02 +00:00
Stefan Ginsberg
125b919b06 - Partial revert of 42973 for the systeminfo utility -- the issue was fixed in 42930
- GCC 4.1.3 doesn't support %I64 -- compile the code conditionally

svn path=/trunk/; revision=42975
2009-08-31 14:37:54 +00:00
Hervé Poussineau
6ca346d8d4 Use memory wrappers instead of ExAllocatePool/ExFreePool directly
svn path=/trunk/; revision=42974
2009-08-30 19:20:30 +00:00
Stefan Ginsberg
e6097bec74 - %llx -> %I64x
- Don't pass a string literal to strcmp

svn path=/trunk/; revision=42973
2009-08-30 18:40:58 +00:00
Stefan Ginsberg
8d854b2802 - Add missing prototype
svn path=/trunk/; revision=42972
2009-08-30 18:25:38 +00:00
Stefan Ginsberg
a8206018e6 - Fix some inflib warnings
svn path=/trunk/; revision=42971
2009-08-30 18:11:09 +00:00
Stefan Ginsberg
b0f1241ccb - gcc 4.4.0 bringup 1 of ?:
- servman: Disable unused, static function
- explorer, mpu401: Fix "deprecated conversion from string constant to 'xxx'" under
- ws2_32_new, portcls: Hack around bogus uninitialized variable usage warning for
- glu32: Fix various warnings and errors

svn path=/trunk/; revision=42970
2009-08-30 15:53:16 +00:00
Stefan Ginsberg
07d6ee8ed5 - Make ddraw test compile warning free under gcc 4.4.0
svn path=/trunk/; revision=42969
2009-08-30 15:36:37 +00:00
Stefan Ginsberg
a557cda82c - Fix gdb2 and regexpl warnings under gcc 4.4.0
svn path=/trunk/; revision=42968
2009-08-30 15:35:14 +00:00
Daniel Reimer
a8d673a487 OK, I give up. Pigglesworth, HAALP. What do I do wrong??!
svn path=/trunk/; revision=42967
2009-08-30 11:35:28 +00:00
Daniel Reimer
ed373a444a Next try. This time I reverted most of my header changes and just needed to add some and edit two of them.
svn path=/trunk/; revision=42966
2009-08-30 00:12:52 +00:00
Timo Kreuzer
2441eec072 Update DM_XXX constants and move some from winuser.h to wingdi.h where they belong, sort COLOR_XXX constants by number
svn path=/trunk/; revision=42965
2009-08-30 00:08:21 +00:00
Cameron Gutman
be53da4398 - Implement AFD_INFO_GROUP_ID_TYPE
svn path=/trunk/; revision=42964
2009-08-29 17:53:45 +00:00
Daniel Reimer
7a6738ff89 Revert my recent changes.
svn path=/trunk/; revision=42963
2009-08-29 17:01:29 +00:00
Daniel Reimer
18a7c5443a Sync ddraw, d3d8 and d3d9 + wined3d to wine 1.1.28
Succesfully builds warning free under GCC 4.1 and 4.4

svn path=/trunk/; revision=42961
2009-08-29 14:24:48 +00:00
Hervé Poussineau
b6f0ced7a5 [ntoskrnl] Check if caller has valid access before opening a registry key
Assign security descriptor to new keys we're creating

svn path=/trunk/; revision=42960
2009-08-29 10:35:30 +00:00
Cameron Gutman
291b697b95 - Check that AFD succeeded the create request
- Use NtCreateFile instead of ZwCreateFile

svn path=/trunk/; revision=42959
2009-08-27 22:25:59 +00:00
Cameron Gutman
0ea9c96b9c - Check that we got a valid socket before trying to bind
svn path=/trunk/; revision=42958
2009-08-27 21:31:49 +00:00
KJK::Hyperion
895075e99c Add a missing include
"msc_helper" -> "rbuild_helper" in error messages

svn path=/trunk/; revision=42957
2009-08-27 19:34:19 +00:00
Matthias Kupfer
1abc5e10f8 - revert change from revision 41251, because it introduce more problems then it fixes
- basic problem still unsolved, window z-ordering doesn't work properly

svn path=/trunk/; revision=42956
2009-08-27 14:55:54 +00:00
Daniel Reimer
e75fc4e648 forgot these
svn path=/trunk/; revision=42949
2009-08-27 00:15:47 +00:00
Daniel Reimer
7b0250f20b Bug 4805: Bulgarian translation update by CCTAHEB (except the wine synced files)
Bug 4081: Japanese translation for ReactOS Application Manager by pcds90net
Bug 4797: Norwegian translate update (17.08.09) by Lars Martin Hambro
Bug 4786: Translation patch, Dutch for usetup by Jan Roeloffzen

svn path=/trunk/; revision=42948
2009-08-27 00:11:01 +00:00
Dmitry Chapyshev
d3bda8e821 - Fix problem with uTorrent deinstallation
- Closing of keys at list updating

svn path=/trunk/; revision=42946
2009-08-26 19:03:32 +00:00
Dmitry Chapyshev
e7f2c45f58 - Fix typo in Russian translation
svn path=/trunk/; revision=42944
2009-08-26 17:46:48 +00:00
Stefan Ginsberg
ff4df4d6b2 - Fix a typo -- check if memory allocation failed instead of checking if a variable's stack address is NULL.
svn path=/trunk/; revision=42943
2009-08-26 17:41:01 +00:00
Stefan Ginsberg
f11466d9c0 - Make use of _SEH2_YIELD in Ex, Io, Ob, Ps and Se.
- Don't call ExSystemExceptionFilter() if we know the caller is user mode.
- Get rid of a couple of dependencies on the NTSTATUS being initialized with STATUS_SUCCESS -- indicate success where properly instead.

svn path=/trunk/; revision=42942
2009-08-26 17:31:02 +00:00
Stefan Ginsberg
08db367162 - Fix a bug in KiRaiseException from 42923 -- a _SEH2_LEAVE wasn't converted to _SEH2_YIELD
svn path=/trunk/; revision=42937
2009-08-26 14:52:00 +00:00
James Tabor
6d8d6a8fc5 - Fix a crash in SetMenuInfo.
svn path=/trunk/; revision=42934
2009-08-26 01:07:32 +00:00
Dmitry Chapyshev
a5e2e10413 - Use iswspace instead isspace. Patch by Alexander Yastrebov (menone7[at]gmail[dot]com)
svn path=/trunk/; revision=42933
2009-08-25 09:45:07 +00:00
Gregor Schneider
b6cecfd934 chklib: print function pointer as a pointer, gcc 4.4 warning
svn path=/trunk/; revision=42932
2009-08-25 00:31:45 +00:00
Gregor Schneider
e45de08eec tftpd: add parenthesis around AND statements embedded in OR statements, use const char* for string constants (gcc 4.4 warnings)
svn path=/trunk/; revision=42931
2009-08-25 00:13:15 +00:00
Gregor Schneider
32f5ad4ca6 systeminfo: use strcmp to compare strings, gcc 4.4 warning
svn path=/trunk/; revision=42930
2009-08-24 23:48:57 +00:00
Stefan Ginsberg
9b25f7a883 - Make use of _SEH2_YIELD in Mm
svn path=/trunk/; revision=42929
2009-08-24 20:39:23 +00:00
Dmitry Gorbachev
0811de4790 ... and kernel32, too.
svn path=/trunk/; revision=42928
2009-08-24 20:10:05 +00:00
Dmitry Gorbachev
3d0a8cc2a9 ... and dxg,
svn path=/trunk/; revision=42927
2009-08-24 20:10:03 +00:00
Dmitry Gorbachev
d412903cb1 Sprinkle win32k with some explicit voids,
svn path=/trunk/; revision=42926
2009-08-24 20:09:58 +00:00
Stefan Ginsberg
4a1bc02d08 - ...fix typo
svn path=/trunk/; revision=42925
2009-08-24 20:08:45 +00:00
Stefan Ginsberg
9bf4e79360 - Add a comment and debug print
svn path=/trunk/; revision=42924
2009-08-24 20:07:12 +00:00
Stefan Ginsberg
f022f9092b - Use _SEH2_YIELD when returning from an exception instead of returning outside the SEH block. Avoids unnecessary status checks for the most common case (no exception). Move the cleanup code into the handler too in favor of the no-exception case. Futhermore, don't call ExSystemExceptionFilter when we know we are called from user mode. Finally, only enter SEH if we need to do any probing.
- Re-enable user mode probes in KiRaiseException; they do not seem to be an issue anymore -- booting and running the ntdll exception Winetest didn't reveal any issue. Put a breakpoint there in case this code is ever hit (unlikely).

svn path=/trunk/; revision=42923
2009-08-24 19:58:15 +00:00
Stefan Ginsberg
87db4c425c - "BIG0" isn't a reserved tag, but "BIG " is.
svn path=/trunk/; revision=42922
2009-08-24 18:36:03 +00:00
Dmitry Gorbachev
59c14c8c0f Fix Czech file.
svn path=/trunk/; revision=42921
2009-08-24 18:21:48 +00:00
Stefan Ginsberg
beba1269e6 - Get rid of TAG() from the kernel
- mmtypes.h: Goodbye TAG(), you won't be missed

svn path=/trunk/; revision=42920
2009-08-24 18:19:53 +00:00
Stefan Ginsberg
77fc26f56a - Deprecate TAG() in rostests
svn path=/trunk/; revision=42918
2009-08-24 17:41:36 +00:00
Stefan Ginsberg
53cbc6c4a3 - Missed these in 42915
svn path=/trunk/; revision=42917
2009-08-24 17:38:50 +00:00
Stefan Ginsberg
67e0101546 - Actually commit prntfont.h change (leftover from 42915)
svn path=/trunk/; revision=42916
2009-08-24 17:36:23 +00:00
Stefan Ginsberg
ea23cd10c2 - Start deprecating TAG()
- Fix inverted tags in prntfont.h, stdunk.h and win32k/objects/font.c

svn path=/trunk/; revision=42915
2009-08-24 17:12:25 +00:00
Johannes Anderwald
7776fec6ce - Check that all pins have been closed when the last filter reference is gone
- Fix freeing of stream data (hacked atm)
- Implement retrieving of all property items for PinWaveCyclic

svn path=/trunk/; revision=42913
2009-08-24 13:00:14 +00:00
Sylvain Petreolle
ae0ddccd63 temporarily disable kernel32:pipe tests.
the testing process seems to go further if this test crashes,
looking at testman output.

svn path=/trunk/; revision=42912
2009-08-24 12:57:34 +00:00
Christoph von Wittich
694741e9f9 sync user32 winetest with wine 1.1.28
svn path=/trunk/; revision=42911
2009-08-24 12:42:47 +00:00
Johannes Anderwald
63b3ed6d1e - Fix calling property handler in IKsFilter_DispatchDeviceIoControl
- Found by [[Amine Khaldi]]
- Implement handling of KSPROPERTY_TYPE_BASICSUPPORT

svn path=/trunk/; revision=42910
2009-08-24 12:21:20 +00:00
Christoph von Wittich
e080831a72 sync kernel32 profile with wine 1.1.28
svn path=/trunk/; revision=42909
2009-08-24 12:17:02 +00:00
Gregor Schneider
2296d0a5dd gdb2: Use const char* for string constants, gcc 4.4 warnings
svn path=/trunk/; revision=42908
2009-08-24 12:06:53 +00:00
Gregor Schneider
aab0f77c13 netreg: include stdio.h for fprintf, sprintf and sscanf; gcc 4.4 warnings
svn path=/trunk/; revision=42907
2009-08-24 12:01:38 +00:00
Gregor Schneider
b84ac6c703 ddraw_test: Use const char* for string constants, gcc 4.4 warning
svn path=/trunk/; revision=42906
2009-08-24 11:50:37 +00:00
Christoph von Wittich
eb65544870 sync ole32 with wine 1.1.28
svn path=/trunk/; revision=42905
2009-08-24 10:51:15 +00:00
Christoph von Wittich
c0755ff4f4 define USE_COM_CONTEXT_DEF
svn path=/trunk/; revision=42904
2009-08-24 10:48:24 +00:00
James Tabor
e83ca9a324 - Patch by Dmitry Timoshkov : user32: Return 0 from DefDlgProc and dialog loop for invalid dialog handles. Need to update user32 wine tests.
svn path=/trunk/; revision=42903
2009-08-24 06:10:52 +00:00
James Tabor
ddd06401af - Patch by Rein Klazes : user32: Handle WM_PRINTCLIENT message in PopupMenuWndProc().
svn path=/trunk/; revision=42902
2009-08-24 06:09:01 +00:00
James Tabor
69dffc5810 - Gdi32: Update metafile structure.
svn path=/trunk/; revision=42901
2009-08-24 06:06:05 +00:00
Johannes Anderwald
c1854b985e - Fix broken check
- Enables Ks Studio to instantiate audio pins

svn path=/trunk/; revision=42900
2009-08-24 02:54:53 +00:00
Gregor Schneider
8e0dd42d55 GetCharacterPlacementA: check FONT_mbtowc return value for validity
svn path=/trunk/; revision=42899
2009-08-24 00:00:06 +00:00
Gregor Schneider
eda170fe74 GetCharacterPlacementA: Free memory on error
svn path=/trunk/; revision=42898
2009-08-23 23:51:09 +00:00
Gregor Schneider
aa38bf2535 CreateMetaFileW: WriteFile returns the number of bytes written for synchronous operations
svn path=/trunk/; revision=42897
2009-08-23 23:40:48 +00:00
Gregor Schneider
c3d83ebfa9 CreateMetaFileW: Free memory on error
svn path=/trunk/; revision=42896
2009-08-23 23:09:55 +00:00
Johannes Anderwald
91ae05b80d - fix build #2
svn path=/trunk/; revision=42895
2009-08-23 23:05:23 +00:00
Gregor Schneider
2785ec2386 Handle failed memory allocation
svn path=/trunk/; revision=42894
2009-08-23 23:03:55 +00:00
Johannes Anderwald
97d1a131cc - try fix build
svn path=/trunk/; revision=42893
2009-08-23 22:56:06 +00:00
Johannes Anderwald
d3f226afd5 [KS]
- Fix a few bugs in KsPinPropertyHandler & KsTopologyPropertyHandler
[PORTCLS]
- Implement retrieving KSPROPSETID's
- Register KSCATEGORY_AUDIO_DEVICE as a temporary hack untill sysaudio is able to register device interfaces (bug 4556)
Ks Studio is now able to instantiate audio filters on ReactOS

svn path=/trunk/; revision=42892
2009-08-23 22:50:09 +00:00
Gregor Schneider
9ef29fde4b Pass a zero instead of dereferencing a null pointer when copying one region
svn path=/trunk/; revision=42891
2009-08-23 22:47:32 +00:00
Johannes Anderwald
331c3994d5 - Fix KSPROPERTY_TOPOLOGY enumeration
svn path=/trunk/; revision=42890
2009-08-23 22:31:30 +00:00
Gregor Schneider
4a61832f36 - Fix two inverted pointer checks, found by Amine Khaldi
- Add, correct implemented comment

svn path=/trunk/; revision=42889
2009-08-23 21:55:24 +00:00
Dmitry Gorbachev
687189aaaf A consistent indentation style is the hobgoblin of little minds.
svn path=/trunk/; revision=42888
2009-08-23 21:45:41 +00:00
Dmitry Gorbachev
be9c72f1ad - Remove wrong "m" constraints from some places;
- relax constraints ("q" -> "r") when possible;
- remove "memory" clobbers from __readfsXXX functions, probably shouldn't be there;
- no movq instruction on x86_32;
- bswap's operand must be a register.

svn path=/trunk/; revision=42887
2009-08-23 21:41:05 +00:00
Johannes Anderwald
394ad9b83e - Add SetupDiGetDeviceInterfaceAlias, SetupDiOpenDeviceInterfaceRegKey stubs
svn path=/trunk/; revision=42885
2009-08-23 18:14:39 +00:00
Stefan Ginsberg
9f8b94600e - copy.c, view.c: malloc.h now properly implements alloca/_alloca, so remove #ifdef hacks
- main.c: Change bogus #ifdef _MSC_VER to #if 0 -- it seems this is another instance of "MSVC = MS' headers". The code compiles fine with our headers now and should probably be enabled.
- debug.h: Define non-NDEBUG DPRINT the same way for GCC and MSVC. The MSVC version was never inlined because the function has a variable argument list. The GCC version works fine under MSVC so use it instead. Results in neater code in object files.

svn path=/trunk/; revision=42884
2009-08-23 15:49:43 +00:00
Stefan Ginsberg
ccbdde9482 - wdm.h: Define ALLOC_PRAGMA and ALLOC_DATA_PRAGMA for MSVC.
- marea.c: MmInitMemoryAreas doesn't exist anymore so don't try to put it in .INIT.

svn path=/trunk/; revision=42883
2009-08-23 15:14:13 +00:00
Stefan Ginsberg
faf3bb5778 - Remove deprecated _NTDDK_ hacks from winnt.h -- these are no longer needed as ntddk.h no longer includes winnt.h. Also fix the way the PowerPC version of NtCurrentTeb was defined -- it was only defined if ntddk.h was included prior to winnt.h.
svn path=/trunk/; revision=42882
2009-08-23 14:46:41 +00:00
Matthias Kupfer
9e652d5604 - Remove tailing separator in explorer quicklaunch area.
- Fix some values for rebarband.
- See issue #3771 for details.
- TODO: fix rebar (comctl32) itself, because it's not working properly.

svn path=/trunk/; revision=42881
2009-08-23 13:39:47 +00:00
Johannes Anderwald
612682d56c - Code polishing
svn path=/trunk/; revision=42880
2009-08-23 13:08:28 +00:00
Johannes Anderwald
8e1d22f818 - Fix exporting of CBaseUnknown
svn path=/trunk/; revision=42879
2009-08-23 13:00:09 +00:00
Johannes Anderwald
9b074f69c7 - Implement CBaseUnknown class functions in C!
- Thanks To KJK::Hyperion for helping
- Function are not yet exported

svn path=/trunk/; revision=42878
2009-08-23 12:50:02 +00:00
Hervé Poussineau
8a5ac3eb85 [freeldr] When creating a component, provide at the same time its configuration data
svn path=/trunk/; revision=42875
2009-08-23 08:34:20 +00:00
Hervé Poussineau
9feee2204c Limit usage of KEY_ALL_ACCESS when opening registry keys
svn path=/trunk/; revision=42874
2009-08-23 08:29:23 +00:00
Hervé Poussineau
413dcab765 [freeldr] When creating a component, provide at the same time its configuration data
svn path=/trunk/; revision=42873
2009-08-23 08:25:52 +00:00
Dmitry Chapyshev
4abf644be8 - Add enumeration user keys
svn path=/trunk/; revision=42872
2009-08-23 07:40:23 +00:00
James Tabor
f6d5c06f8c - Syncing up with current revision of Defdlg.c and Dialog.c from wine. Critical update for class rewrite.
svn path=/trunk/; revision=42871
2009-08-23 07:12:58 +00:00
Gregor Schneider
030d5a52f3 Handle failed memory allocations
svn path=/trunk/; revision=42870
2009-08-22 19:37:31 +00:00
Dmitry Chapyshev
79c1f38e87 - Sync winemp3.acm and hhctrl.ocx with Wine 1.1.28
- Delete unneeded .diff file

svn path=/trunk/; revision=42869
2009-08-22 19:13:32 +00:00
Dmitry Chapyshev
9319924669 - Fully sync oleaut32 with Wine 1.1.28
svn path=/trunk/; revision=42868
2009-08-22 19:07:35 +00:00
Dmitry Chapyshev
fcf26f3471 - Add windowscodecs.dll from Wine 1.1.28
svn path=/trunk/; revision=42867
2009-08-22 19:03:09 +00:00
Gregor Schneider
9d4ec238ee Check the surface pointer before accessing it to get a handle
svn path=/trunk/; revision=42866
2009-08-22 18:44:17 +00:00
Gregor Schneider
6be4617f84 - Free global surface memory on error, found by Amine Khaldi
- Translate some comments for better understanding

svn path=/trunk/; revision=42865
2009-08-22 18:21:37 +00:00
Christoph von Wittich
86a4498283 sync objidl with wine 1.1.28
svn path=/trunk/; revision=42864
2009-08-22 18:08:57 +00:00
Christoph von Wittich
9596ede35f sync shlwapi to wine 1.1.28
svn path=/trunk/; revision=42862
2009-08-22 17:36:24 +00:00
Christoph von Wittich
fa3224d6d5 partial sync of oleaut32 to wine 1.1.28
svn path=/trunk/; revision=42861
2009-08-22 17:29:38 +00:00
Christoph von Wittich
ac215ed75c partial rpcrt4 sync with wine 1.1.28
svn path=/trunk/; revision=42860
2009-08-22 17:23:43 +00:00
Christoph von Wittich
898e09db4d sync widl with wine 1.1.28
svn path=/trunk/; revision=42859
2009-08-22 17:21:33 +00:00
Christoph von Wittich
c7b2857e8e sync userenv winetest with wine 1.1.28
svn path=/trunk/; revision=42858
2009-08-22 17:12:01 +00:00
Christoph von Wittich
9ed4628b97 sync oleaut32 winetest with wine 1.1.28
svn path=/trunk/; revision=42857
2009-08-22 17:05:58 +00:00
Gregor Schneider
5420cabe1a - Handle failed memory allocation in CreateDIBitmap, check initialize option before allocating and copying
svn path=/trunk/; revision=42856
2009-08-22 16:56:28 +00:00
Christoph von Wittich
aa5af3351e sync shell32 winetest with wine 1.1.28
svn path=/trunk/; revision=42855
2009-08-22 16:56:26 +00:00
Christoph von Wittich
196b3efac7 sync ntdsapi winetest with wine 1.1.28
svn path=/trunk/; revision=42854
2009-08-22 16:50:50 +00:00
Christoph von Wittich
58a23ff44c sync kernel32_winetest with wine 1.1.28
svn path=/trunk/; revision=42853
2009-08-22 16:42:11 +00:00
Gregor Schneider
7980badf18 Polish translation for rapps, translation fixes for mmsys and syssetup by Olaf Siejka
svn path=/trunk/; revision=42852
2009-08-22 16:42:01 +00:00
Christoph von Wittich
1a7345771f sync wrc to wine 1.1.28
svn path=/trunk/; revision=42851
2009-08-22 15:35:17 +00:00
Christoph von Wittich
a41cdb8eae sync jscript winetest with wine 1.1.28
svn path=/trunk/; revision=42850
2009-08-22 15:26:35 +00:00
Christoph von Wittich
d125c45fff sync jscript with wine 1.1.28
svn path=/trunk/; revision=42849
2009-08-22 15:25:26 +00:00
Christoph von Wittich
3fd2c631b4 sync msxml3 winetest with wine 1.1.28
svn path=/trunk/; revision=42848
2009-08-22 15:18:26 +00:00
Christoph von Wittich
fb79881787 sync test.h with wine 1.1.28
svn path=/trunk/; revision=42847
2009-08-22 15:18:03 +00:00
Christoph von Wittich
e6ac1a3fa7 sync msxml3 with wine 1.1.28
svn path=/trunk/; revision=42846
2009-08-22 15:10:54 +00:00
Stefan Ginsberg
3a85cbb4da - combotst: Fix uninitialized variable usage spotted by MSVC
- tmrqueue: Don't use empty structures, MSVC doe
- w32knapi: Implement IntSyscall in MSVC assembly, be compatible with C89 variable initialization and use '%' instead of '\%' to avoid a msvc warning.

svn path=/trunk/; revision=42845
2009-08-22 14:40:56 +00:00
Gregor Brunmar
e85cc27f88 - Implemented MSVC version of fmod
svn path=/trunk/; revision=42844
2009-08-22 13:21:01 +00:00
Gregor Brunmar
ecc5d7ef19 - Implemented MSVC version of exp
svn path=/trunk/; revision=42843
2009-08-22 13:06:11 +00:00
Gregor Brunmar
9a06e2badb - Implemented MSVC version of ldexp
svn path=/trunk/; revision=42842
2009-08-22 10:16:11 +00:00
Gregor Brunmar
a68ce7a4e3 - Implemented MSVC version of atan2
svn path=/trunk/; revision=42841
2009-08-22 10:07:25 +00:00
Matthias Kupfer
c98133c6af - halve and round up (improved version) ;-)
svn path=/trunk/; revision=42838
2009-08-22 09:26:13 +00:00
Johannes Anderwald
0248a689e4 [KS]
- Store input buffer in Irp->AssociatedIrp.SystemBuffer
- Add check
[PORTCLS]
- Add support for DirectKs

svn path=/trunk/; revision=42837
2009-08-21 22:46:18 +00:00
Matthias Kupfer
b728102816 Fix redraw bug by correcting nonclient region calculation. (Window->UpdateRegion has no proper values)
TODO: calculate and/or update  Window->UpdateRegion properly
See issue #4181 for details.

svn path=/trunk/; revision=42836
2009-08-21 22:23:22 +00:00
Johannes Anderwald
5ad980f439 - IOCTL_KS_WRITE_STREAM passes the data in the OutputBuffer, not InputBuffer
svn path=/trunk/; revision=42834
2009-08-21 19:38:45 +00:00
Johannes Anderwald
6f2463f07d - Fix a few bugs
- Bug1 - BufferOverflow
- Bug2 - ks expects a '\\' for each pin creation request
- Bug3 - ObjectLength was not correctly set, thus truncating the request
- Bug4 - Zero byte was not set at correct offset, potentialy leading to a heap overflow

svn path=/trunk/; revision=42832
2009-08-21 18:36:43 +00:00
Stefan Ginsberg
cd731afde1 - Fix EXT2 IFS for msvc:
- Fix SEH for MSVC
  - Disable C4003 (caused by the try_return mess)
  - Add missing NTAPI to Ext2GetCurrentTime

svn path=/trunk/; revision=42831
2009-08-21 17:39:37 +00:00
Matthias Kupfer
4b9ecd6c5c fixed typo in German translation
svn path=/trunk/; revision=42830
2009-08-21 17:27:28 +00:00
Stefan Ginsberg
43b07d3f6a - svchost: #ifdef _MSC_VER doesn't mean "using Microsoft's headers" anymore
- ddraw, imm32, msxml3, oleaut32, riched20: Include typeof.h for typeof emulation when compiling under MSVC and remove from ReactOS-generic.rbuild (this can't go to port.h as the modules do not include it).
- TCPIP: Fix a check for MSVC.
- NDIS: Don't use floating point arithmetics in kernel mode -- spotted by MSVC trying to link to ftol (gcc inlined the operation).
- SAMLIB: Use __VA_ARGS__ instead of gcc-specific macro manipulation.
- WIN32CSR: Don't use gcc-specific \% if you want % in the string -- this is incorrect and will pass a broken string to swprintf (the code seems to be uncalled though, so this shouldn't change anything). Use %% instead.
- Error out on MSVC implementation of logb -- it doesn't produce the same code as the gcc version.
- Rename gcc's float.h to gcc_float.h and use #include instead of #include_next for consistency.
- Remove leftover header guard from types.h
- Remove superfluous brackets from PSEH2->MSVC defines -- this isn't necessary anymore after 41597
- Correction to 42216: MSVC *does* let you define types in a function, but only at the top of scope. Move back the C_ASSERT into KiAcquireGuardedMutex.
- Simplify definition of alloca
- scripts.cpp: Silence unavoidable warning.
- Remove compile time warning from Uniata -- the code has been unused for 1 1/2 years and will probably remain so.

svn path=/trunk/; revision=42829
2009-08-21 15:57:26 +00:00
Johannes Anderwald
fb91ab63f5 - Kernel is not yet writing the Control key when activating a device interface
svn path=/trunk/; revision=42828
2009-08-21 15:08:46 +00:00
Johannes Anderwald
785ccb4938 - RegQueryValueExW returns ERRROR_SUCCESS
svn path=/trunk/; revision=42827
2009-08-21 14:53:04 +00:00
Gregor Schneider
2922b635c3 Remove glyph guard (bug #933): there is no way to such an exclusion properly without working GetCharPlacement, every font engine handles glyphed output slightly different. Fixes Abiword text regression
svn path=/trunk/; revision=42826
2009-08-21 14:35:48 +00:00
Johannes Anderwald
a39871ddb2 - Remove test code
svn path=/trunk/; revision=42825
2009-08-21 13:15:38 +00:00
Aleksey Bragin
f6df5d0f26 - Convert a wrong macro to an inlined function.
svn path=/trunk/; revision=42824
2009-08-21 13:01:27 +00:00
Johannes Anderwald
a6407bcf60 - Partly implement KsCreateBusEnumObject
svn path=/trunk/; revision=42823
2009-08-21 12:58:20 +00:00
Gregor Schneider
d93536f7a1 - co_IntLoadSysMenuTemplate: only copy buffer if prior operation succeeded, bug #4803
- co_IntLoadDefaultCursors: result is not used, no need to copy it

svn path=/trunk/; revision=42822
2009-08-21 11:27:24 +00:00
Johannes Anderwald
f5396c2fb8 - Don't touch the freed buffer in case of an error
- Found by Amine Khaldi

svn path=/trunk/; revision=42821
2009-08-21 10:30:05 +00:00
Johannes Anderwald
67d71e67d5 - Remove hacks for bug 4566
svn path=/trunk/; revision=42820
2009-08-21 10:06:29 +00:00
Johannes Anderwald
5fb02a865b - Reference strings are not part of the symbolic link. Therefore don't include them when creating the symbolic link (IoCreateSymbolicLink)
- Reference strings are used by the kernel streaming system to distinguish kernel streaming filters. As it is perfectly possible, to provide more than one filter with same guid but different reference string, ignore the failure for now if IoCreateSymbolicLink fails


See issue #4566 for more details.

svn path=/trunk/; revision=42819
2009-08-21 10:02:25 +00:00
Matthias Kupfer
97ebb9ee91 Alexander Yastrebov <menone7 AT gmail DOT com>
- Russian translation and update of utorrent added.
- see issue #4762 for details.
- stupid BOM for compatibility added.

svn path=/trunk/; revision=42818
2009-08-21 09:00:54 +00:00
Stefan Ginsberg
eae44a3cfd - Include windef.h so CDECL gets declared for msvc's version of DEFINE_GUIDEX in ks.h
svn path=/trunk/; revision=42817
2009-08-20 20:02:19 +00:00
Christoph von Wittich
abb53b3db4 revert 41654
svn path=/trunk/; revision=42816
2009-08-20 18:16:35 +00:00
Christoph von Wittich
0fdef256ff sync mlang winetest with wine 1.1.27
svn path=/trunk/; revision=42815
2009-08-20 18:11:21 +00:00
Christoph von Wittich
9324b6140d advapi32: fix parameter types of CreateServiceA/W in spec file
patch by Stefan Leichter <Stefan dot Leichter at camline dot com>

svn path=/trunk/; revision=42814
2009-08-20 18:08:05 +00:00
Christoph von Wittich
7f4bc6c2db sync wintrust with wine 1.1.27
svn path=/trunk/; revision=42813
2009-08-20 17:39:08 +00:00
Cameron Gutman
a2e0b86cd0 - Forgot to change debug print
svn path=/trunk/; revision=42812
2009-08-20 17:33:22 +00:00
Cameron Gutman
da1fa88e1c - Fix receiving packets on an interface's broadcast address while bound to an undefined address
- Simplify binding to a certain interface

svn path=/trunk/; revision=42811
2009-08-20 17:25:39 +00:00
Stefan Ginsberg
b1c4f00121 - Fix some C4115 in typeof.h
svn path=/trunk/; revision=42810
2009-08-20 17:15:46 +00:00
Matthias Kupfer
484cbc2b77 - 4th part of German translation of rapps entries.
- change some entries to proper values

svn path=/trunk/; revision=42809
2009-08-20 16:40:57 +00:00
Stefan Ginsberg
165dc7a512 - Get rid of some more assumptions that the default calling convention is stdcall
svn path=/trunk/; revision=42808
2009-08-20 14:45:32 +00:00
Stefan Ginsberg
4705fbc38a - Get rid of DECLSPEC_EXPORT from DDK
- "Isolate Hal* #defines, which are absent in WDK, they should not be used in kernel development." No, exactly, and they shouldn't be used in Xbox HAL either

svn path=/trunk/; revision=42807
2009-08-20 13:57:16 +00:00
Stefan Ginsberg
ce5adcdab2 - Remove usage of dllexport for most dlls and drivers -- we use .def/.spec instead.
svn path=/trunk/; revision=42806
2009-08-20 13:45:01 +00:00
Johannes Anderwald
0d280a8bde - Implement KsCopyObjectBagItems
svn path=/trunk/; revision=42805
2009-08-20 13:21:24 +00:00
Johannes Anderwald
bfe81917e0 - Implement DllInitialize
svn path=/trunk/; revision=42804
2009-08-20 12:38:52 +00:00
Stefan Ginsberg
e64b6077f6 - Release ntddsnd.h, portcls.h. punknown.h and stdunk.h to the public domain (silverblade and janderwald have agreed to this).
svn path=/trunk/; revision=42803
2009-08-20 12:27:08 +00:00
Johannes Anderwald
1e7c4cb0cc - Define automation tables for Filter & Pin
- Plug in automation tables when creating a new filter factory / pin

svn path=/trunk/; revision=42802
2009-08-20 12:26:09 +00:00
Johannes Anderwald
bb8ff85531 - Add KsMergeAutomationTables
svn path=/trunk/; revision=42801
2009-08-20 12:11:36 +00:00
Stefan Ginsberg
71820568a2 - Remove several assumptions that the default calling convention is stdcall (it isn't under gcc)
- Fix even more definitions of function pointer protypes to define the calling convention compatibly for MSVC
- Don't use dllexport in scsiport -- fixes linking under msvc

svn path=/trunk/; revision=42800
2009-08-20 12:09:16 +00:00
Johannes Anderwald
7a862d7907 - Add types for bda driver
svn path=/trunk/; revision=42799
2009-08-20 11:55:42 +00:00
Christoph von Wittich
5a25dd682a sync credui with wine 1.1.27
svn path=/trunk/; revision=42798
2009-08-20 11:41:11 +00:00
Johannes Anderwald
43eae548e0 - Add types for bda driver
svn path=/trunk/; revision=42797
2009-08-20 11:39:54 +00:00
Christoph von Wittich
743c591273 sync oledlg with wine 1.1.27
svn path=/trunk/; revision=42796
2009-08-20 10:36:10 +00:00
Stefan Ginsberg
047dc08ea4 Don't use dllexport for videoprt; we use a .spec. Also, don't use DDKAPI as it is a w32api/ReactOS define.
We welcome videoprt into the club of modules compiling *and* linking under msvc.

svn path=/trunk/; revision=42795
2009-08-20 10:29:54 +00:00
Christoph von Wittich
fed70152bf sync cryptui with wine 1.1.27
svn path=/trunk/; revision=42794
2009-08-20 10:22:38 +00:00
Christoph von Wittich
6d951b54a6 sync cryptnet with wine 1.1.27
svn path=/trunk/; revision=42793
2009-08-20 10:19:17 +00:00
Christoph von Wittich
0fd54d3881 sync cryptdlg with wine 1.1.27
svn path=/trunk/; revision=42792
2009-08-20 10:06:41 +00:00
Christoph von Wittich
da29fff769 sync crypt32 with wine 1.1.27
svn path=/trunk/; revision=42791
2009-08-20 10:03:19 +00:00
Christoph von Wittich
4d55416f67 sync cabinet winetest with wine 1.1.27
svn path=/trunk/; revision=42790
2009-08-20 09:41:42 +00:00
Dmitry Gorbachev
db5b8e29f7 No bug is too trivial to report:
- remove a stray semicolon (bug #4804).

svn path=/trunk/; revision=42789
2009-08-20 06:54:44 +00:00
James Tabor
5e29da18bf - Implement window message is active icon.
svn path=/trunk/; revision=42788
2009-08-20 01:49:25 +00:00
Cameron Gutman
9757ce3f97 - Allow binding to an interface's broadcast address
- Set address type

svn path=/trunk/; revision=42787
2009-08-20 00:54:27 +00:00
Johannes Anderwald
023b3bfa2a - Add bda driver
svn path=/trunk/; revision=42786
2009-08-19 12:40:02 +00:00
Johannes Anderwald
35ab9f725a - Arch should learn english first before bashing gcc
svn path=/trunk/; revision=42785
2009-08-19 12:32:56 +00:00
Johannes Anderwald
9d6768ef65 - Implement KsProbeStreamIrp
- Currently commented out as gcc finds it hard to find a member in a struct

svn path=/trunk/; revision=42784
2009-08-19 12:24:28 +00:00
Johannes Anderwald
9639b5995d - fix check
svn path=/trunk/; revision=42783
2009-08-19 12:19:56 +00:00
Johannes Anderwald
3a360ecf29 - Add flags
svn path=/trunk/; revision=42782
2009-08-19 12:14:42 +00:00
Matthias Kupfer
79d5c915fe - third part of German translation of rapps entries.
- change some entries to proper values

svn path=/trunk/; revision=42781
2009-08-19 11:28:00 +00:00
Gregor Schneider
e5d8f301db - GetGlyphOutline: fail if output or transformation matrix buffers are not passed
- Fixes three gdi32 font winetests

svn path=/trunk/; revision=42780
2009-08-19 11:23:31 +00:00
Gregor Schneider
ea488d3a60 - Sync and adapt Wine font metric code for setting first, last, default and break characters
- Fixes approx 80 gdi32 font winetests

svn path=/trunk/; revision=42779
2009-08-19 11:02:10 +00:00
Cameron Gutman
183b90d2c6 - Fix release build
svn path=/trunk/; revision=42778
2009-08-18 22:15:06 +00:00
Cameron Gutman
ce8c9c4122 - I guess kdesvn didn't realize that when I check the box for include/reactos/winsock that I actually wanted the files in it to be committed also
svn path=/trunk/; revision=42777
2009-08-18 21:54:55 +00:00
Cameron Gutman
ad72be7f7f - Fix ws2_32_new's build problems
- ws2_32_new is now included in build (output file is ws2_32_new.dll for any curious testers :P)

svn path=/trunk/; revision=42776
2009-08-18 21:40:20 +00:00
Cameron Gutman
ca5c8b53bf - Print a message to the debug log if ZwClose returns STATUS_INVALID_HANDLE
- This message will only after "cont"ing past the bugcheck and will hopefully help me track down bug 4796

svn path=/trunk/; revision=42775
2009-08-18 20:43:13 +00:00
Cameron Gutman
3263e1f67a - Fix null pointer dereferences
- Fix out of bounds array access
 - Check that we got a valid pointer from HeapAlloc
 - Don't close the caller's handle when we fail
 - Fix a memory leak
 - Found by Amine Khaldi

svn path=/trunk/; revision=42774
2009-08-18 20:30:58 +00:00
Gregor Schneider
e74d2c5ce4 - Improve glyph guard from r42749: allow displaying glyphs if the application knows the character placements
- Some rendering engines (like FF3) do the conversion without using GetCharacterPlacementA/W

svn path=/trunk/; revision=42773
2009-08-18 19:51:32 +00:00
Cameron Gutman
4e9ecfe8a7 - Fix dereference of freed memory
svn path=/trunk/; revision=42772
2009-08-18 19:06:52 +00:00
Cameron Gutman
1361a97afb - Fix a typo
svn path=/trunk/; revision=42771
2009-08-18 19:04:51 +00:00
Cameron Gutman
5b91c1a754 - Make sure HeapAlloc returned a valid pointer
- Fix some memory leaks
 - Return a better status for STATUS_INSUFFICIENT_RESOURCES and STATUS_NO_MEMORY
 - Fix a potential null pointer dereference in SetSocketInformation and GetSocketInformation
 - Initialize RemoteAddress so we aren't trying to copy the remote address to 0
 - Found by Amine Khaldi

svn path=/trunk/; revision=42770
2009-08-18 18:53:10 +00:00
Cameron Gutman
ab9f22b2e8 - Handle failure of NdisMInitializeWrapper
- Found by Amine Khaldi

svn path=/trunk/; revision=42769
2009-08-18 18:01:26 +00:00
Cameron Gutman
38a3ccc3fd - Verify that we got a handle to a file object
svn path=/trunk/; revision=42768
2009-08-18 16:23:31 +00:00
Gregor Schneider
6af2bfe3c7 Check the correct buffer for failed memory allocation, found by Amine Khaldi
svn path=/trunk/; revision=42767
2009-08-18 14:43:47 +00:00
Gregor Schneider
332c985b52 Sync scanf to current wine sources, correct msvcrt cpp sync date
svn path=/trunk/; revision=42766
2009-08-18 14:23:51 +00:00
Gregor Schneider
d2fa38f67a - GetConsoleAliasW: Check for invalid target buffer, failed memory allocation + set last error
svn path=/trunk/; revision=42765
2009-08-18 13:47:02 +00:00
Gregor Schneider
9f218a3f22 - GetConsoleAliasA: Check for invalid target buffer, failed memory allocations (3x)
- Found by Amine Khaldi 

svn path=/trunk/; revision=42764
2009-08-18 13:39:28 +00:00
Johannes Anderwald
8739063551 - Implement IPortEvents interface for IPortTopology
- Fix a bug in the IPortEvents::QueryInterface handler of IPortWaveCyclic & IPortWavePci 

svn path=/trunk/; revision=42762
2009-08-18 08:24:09 +00:00
Johannes Anderwald
f886c8a5b0 - Increment reference count only if resource list was passed
- May fix A.8738-4C

svn path=/trunk/; revision=42761
2009-08-18 08:03:12 +00:00
Sylvain Petreolle
dbc071c121 Move IF_OPER_STATUS enum to ifdef.h
svn path=/trunk/; revision=42760
2009-08-17 19:46:30 +00:00
Johannes Anderwald
bc5b55fb73 [WDMAUD.DRV]
- Disable traces
- Use device name from IOCTL
[WDMAUD_KERNEL]
- Implement retrieving devicename by looking up in the registry
[SYSAUDIO]
- Implement KSPROPERTY_SYSAUDIO_DEVICE_INTERFACE_NAME
- Audio CPL should now show correct audio device name

svn path=/trunk/; revision=42759
2009-08-17 17:23:35 +00:00
Gregor Schneider
e453915908 - Remove duplicate WToA conversion routine, update the kept version to current Wine
- Adapt calling functions from BOOL to VOID since they can't fail
- Fixes ~two font tests

svn path=/trunk/; revision=42758
2009-08-17 17:03:55 +00:00
Johannes Anderwald
915aebab36 - Implement usermode mixing support
- To enable, see wdmaud rbuild

svn path=/trunk/; revision=42757
2009-08-17 13:49:19 +00:00
Johannes Anderwald
fd6d123510 - Fix a big bug in the samplerate conversion routine
svn path=/trunk/; revision=42756
2009-08-17 13:39:20 +00:00
Johannes Anderwald
53a7643988 - Add members required for usermode-mixing support
svn path=/trunk/; revision=42755
2009-08-17 13:37:57 +00:00
James Tabor
78741d32c5 - Add win32k support functions for GetCharacterPlacement.
svn path=/trunk/; revision=42754
2009-08-17 05:46:57 +00:00
Daniel Reimer
5a32565702 Sync all apps with wine 1.1.27. (reactos)
This is not a 1:1 sync anymore, because Wine adds all single rc files into the makefile now and we don't support this right now.
-> Reverted to old behavior and added a pragma revert line to all rc files which change the pragma for UTF8 Support.
Now all Wine apps properly work again.

svn path=/trunk/; revision=42753
2009-08-17 01:42:32 +00:00
Daniel Reimer
b58cef33fa Sync all apps with wine 1.1.27. (rosapps)
This is not a 1:1 sync anymore, because Wine adds all single rc files into the makefile now and we dont support this right now.
-> Reverted to old behavior and added a pragma revert line to all rc files which change the pragma for UTF8 Support.

svn path=/trunk/; revision=42752
2009-08-17 01:37:17 +00:00
James Tabor
2594a8fbef - Move GetCharacterPlacement functions into new locations. Implemented GetCharacterPlacementA from wine port.
- Port from wine, original authors: Juergen Schmied <juergen.schmied@metronet.de>, Peter Oberndorfer <kumbayo84@arcor.de>

svn path=/trunk/; revision=42751
2009-08-17 01:34:20 +00:00
James Tabor
2e771a7968 - Add callback for client side thread startup. This is for bug 4785.
svn path=/trunk/; revision=42750
2009-08-17 00:30:25 +00:00
Gregor Schneider
96e5d9e878 - Don't allow glyph indices (ETO_GLYPH_INDEX) in ExtTextOut as long as they are not created properly
- GetCharacterPlacementA/W has to work to allow this, currently broken/stubbed
- Switch to full text processing mode so that those texts are shown
- Fixes garbled text in OpenOffice 1.14/1.15 installers, bug #933

svn path=/trunk/; revision=42749
2009-08-17 00:24:46 +00:00
Gregor Schneider
a7c654b075 Handle a missing output buffer in NtGdiGetCharABCWidthsW
svn path=/trunk/; revision=42748
2009-08-17 00:13:44 +00:00
Dmitry Gorbachev
39980608f8 Add an assertion. See bug #4785.
svn path=/trunk/; revision=42747
2009-08-16 22:52:05 +00:00
James Tabor
46af179093 - [Win32k] Removed W32THREADINFO.
- Tested AbiWord, User32 wine tests. Yes, of course, this needs more testing.


svn path=/trunk/; revision=42746
2009-08-16 21:44:59 +00:00
Gregor Schneider
c365f1c1bb Handle failure of EngLockSurface as well
svn path=/trunk/; revision=42745
2009-08-16 20:11:31 +00:00
Stefan Ginsberg
ac35e87724 - Revert 32309 -- instead of removing FORCEINLINE to make GCC happy (it can't inline functions using va_list), use __inline to merely hint that the function should be inlined. This lets you use RtlStringCbPrintfA and RtlStringCbPrintfExA in multiple source files as the functions aren't static.
- Moreover, there is no reason to forceinline all the RtlString* routines -- they are quite big and the compiler should be allowed to optimize here as it likes, so just use __inline. Also add RtlStringCchCopyA and re-enable ASSERTMSG and use it for the stubs.
- Add missing GUID_CLASS_COMPORT and GUID_SERENUM_BUS_ENUMERATOR to ntddser.h
- Add driverspecs.h to stub out Driver Verifier annotations
- The WDK serenum source sample now compiles with our header set.

svn path=/trunk/; revision=42744
2009-08-16 20:08:48 +00:00
Gregor Schneider
f145632ab6 Handle failure of EngCreateClip, spotted by Amine Khaldi
svn path=/trunk/; revision=42743
2009-08-16 19:56:40 +00:00
Gregor Schneider
ea7be198c3 - Copy the source rectangle after checking it
- Create input rectangle from destination size if source is not used

svn path=/trunk/; revision=42742
2009-08-16 19:43:58 +00:00
Gregor Schneider
d9bc76c65a Allocate span memory for every clipping type, not only for one
svn path=/trunk/; revision=42741
2009-08-16 19:20:50 +00:00
Gregor Schneider
9a8137bdd5 Add some useful information to the popen header
svn path=/trunk/; revision=42740
2009-08-16 18:58:25 +00:00
Gregor Schneider
1aebf2497e Only set the pattern function pointer if the pattern surface is valid, spotted by Amine Khaldi
svn path=/trunk/; revision=42739
2009-08-16 18:52:06 +00:00
KJK::Hyperion
f5828613f7 Tests to exercise support for calling stack-allocated trampolines. All three tests pass
svn path=/trunk/; revision=42738
2009-08-16 16:50:35 +00:00
KJK::Hyperion
9aacc392d5 modified include/reactos/libs/pseh/pseh2.h
Trampoline-related definitions are no longer necessary in the public header

modified   lib/pseh/i386/framebased-gcchack.c
   Don't use byte arrays when you mean unaligned field, Arch: use __attribute__((packed)) instead, and gcc will thank you for not violating strong aliasing

svn path=/trunk/; revision=42737
2009-08-16 16:40:52 +00:00
Stefan Ginsberg
e3e940dcc6 - Remove incorrect #pragma pack/pop
svn path=/trunk/; revision=42736
2009-08-16 13:20:19 +00:00
Timo Kreuzer
074f29786e Update PDEVOBJ and GRAPHICS_DEVICE fields
svn path=/trunk/; revision=42735
2009-08-16 12:57:41 +00:00
Stefan Ginsberg
c13c6c8daa - Woops, NDIS_PHYSICAL_MEDIUM got lost somehow... and NDIS_MEDIUM belongs in ntddndis.h too
svn path=/trunk/; revision=42734
2009-08-16 12:53:31 +00:00
Stefan Ginsberg
49d9ff57e9 - Fix ntstrsafe.h's dependency on debug.h
svn path=/trunk/; revision=42733
2009-08-16 12:42:18 +00:00
Stefan Ginsberg
78d31c85a0 - Remove duplicate ntddndis.h in /psdk/ -- we already have it in /ddk/. Add the duplicated types to the DDK version. Also move NDIS_OBJECT_HEADER over to ntddndis.h from ndis.h as this is where it belongs.
- Remove "ntdd1934.h" -- this header should be named ntdd1394.h. We already have a copy named so, but the old incompatible header wasn't removed.

svn path=/trunk/; revision=42732
2009-08-16 12:37:44 +00:00
Matthias Kupfer
48ba688d46 fix German translation of ReactOS Applications Manager
svn path=/trunk/; revision=42731
2009-08-16 12:31:54 +00:00
Matthias Kupfer
b788aceff0 fix some typos
svn path=/trunk/; revision=42730
2009-08-16 12:28:17 +00:00
Matthias Kupfer
9fd24347d5 - second part of German translation of rapps entries.
- change some entries to proper values

svn path=/trunk/; revision=42729
2009-08-16 12:23:01 +00:00
Sylvain Petreolle
8181199496 fix tditest build
svn path=/trunk/; revision=42728
2009-08-16 11:04:42 +00:00
James Tabor
977596b2e5 - Use correct head structure for event hooks.
svn path=/trunk/; revision=42727
2009-08-16 06:41:18 +00:00
James Tabor
7b35054d70 - Move inline function to local header.
svn path=/trunk/; revision=42726
2009-08-16 01:48:35 +00:00
Dmitry Gorbachev
36512fc9c3 Revert r42569.
svn path=/trunk/; revision=42725
2009-08-16 01:21:20 +00:00
Dmitry Gorbachev
3f11239846 Synchronize with paging I/O.
svn path=/trunk/; revision=42724
2009-08-16 01:20:50 +00:00
Dmitry Gorbachev
2a60b44d65 Take inode size from Ext2 superblock.
svn path=/trunk/; revision=42723
2009-08-16 01:20:22 +00:00
Dmitry Gorbachev
961afecdd8 Fix FsRtlDissectName(). Pierre Schweitzer.
svn path=/trunk/; revision=42722
2009-08-16 01:20:15 +00:00
James Tabor
bc80314293 - Rename pointer to server information structure.
svn path=/trunk/; revision=42721
2009-08-15 22:57:32 +00:00
James Tabor
8e0b4f441a - Use the correct flag for hidden popup actions.
svn path=/trunk/; revision=42720
2009-08-15 22:24:26 +00:00
Matthias Kupfer
b8000cd776 first part of German translation of rapps entries.
svn path=/trunk/; revision=42719
2009-08-15 22:17:30 +00:00
Gregor Schneider
8130a946d5 Apply changes from r42521 to DefWndProcW as well
See issue #4791 for more details.

svn path=/trunk/; revision=42718
2009-08-15 22:06:09 +00:00
James Tabor
20237183e5 - Fix define types.
svn path=/trunk/; revision=42716
2009-08-15 21:28:02 +00:00
Hervé Poussineau
1ad7b1fe0a Try to fix build after r42706
svn path=/trunk/; revision=42715
2009-08-15 20:47:58 +00:00
Stefan Ginsberg
e75501547e - Attempt to fix user32 build after 42706 -- user32 needs those undocumented TB_* too
svn path=/trunk/; revision=42714
2009-08-15 20:11:04 +00:00
Matthias Kupfer
2288be170e German translation of ReactOS Applications Manager
svn path=/trunk/; revision=42713
2009-08-15 19:42:57 +00:00
Stefan Ginsberg
c163eb9dc9 - Convert tditest to PSEH instead of a broken MSVC SEH attempt
- Teach man how to use "subroutines"

svn path=/trunk/; revision=42709
2009-08-15 16:40:51 +00:00
Aleksey Bragin
fad9449b5f - Fix a typo.
svn path=/trunk/; revision=42708
2009-08-15 16:32:20 +00:00
Dmitry Chapyshev
f23c70c56e - Sync comctl32 with Wine 1.1.27 (without imagelist.c)
- Sync comdlg32 with Wine 1.1.27

svn path=/trunk/; revision=42706
2009-08-15 16:15:43 +00:00
Dmitry Chapyshev
88aad4cf0b - Fix Russian translation
svn path=/trunk/; revision=42705
2009-08-15 15:50:29 +00:00
Dmitry Chapyshev
1483089019 - Set mute icon if sound unavailable
- Set "No devices" if device unavailable
- Disable controls after dialog initialization

svn path=/trunk/; revision=42704
2009-08-15 15:38:40 +00:00
Dmitry Chapyshev
4936fdb9db - Add some resources
- Disable controls after dialog initialization

svn path=/trunk/; revision=42703
2009-08-15 14:49:44 +00:00
Dmitry Chapyshev
dd24853598 - Add EventLabels keys
svn path=/trunk/; revision=42702
2009-08-15 14:46:24 +00:00
Dmitry Chapyshev
5e783b4337 - Add sound schemes keys
svn path=/trunk/; revision=42701
2009-08-15 14:16:08 +00:00
Dmitry Chapyshev
eb312a8fb0 - Add bcrypt, xmllite and hnetcfg from Wine
svn path=/trunk/; revision=42700
2009-08-15 13:55:40 +00:00
Johannes Anderwald
d1ff4911cb - Implement KsGetFirstChild, KsGetNextSibling
- Implement IKsFilter_fnAddProcessPin, IKsFilter_fnRemoveProcessPin
- Remove old code for attaching so that it works with KsGetFirstChild
- Implement attach of filter factories to the device header
- Unimplement a few functions which were wrong
- Implement KsDispatchSpecificProperty

svn path=/trunk/; revision=42699
2009-08-15 13:45:06 +00:00
Johannes Anderwald
bde6b65191 - Add dmksctrl.h
- Add KsPinGetNextSiblingPin prototype

svn path=/trunk/; revision=42698
2009-08-15 13:38:15 +00:00
Dmitry Chapyshev
5efe007aeb - Define APPLICATION_DATEBASE_URL
svn path=/trunk/; revision=42695
2009-08-15 11:41:56 +00:00
Dmitry Chapyshev
e9dbd473eb - Add README.ENG
- Change rapps.cab to rappmgr.cab (in CreateCabFile.bat)

svn path=/trunk/; revision=42694
2009-08-15 11:36:44 +00:00
Dmitry Chapyshev
cc9b9024e7 - Remove appwiz-new
- Simplify appwiz (appwiz now starts rapps.exe)

svn path=/trunk/; revision=42693
2009-08-15 11:14:07 +00:00
Dmitry Chapyshev
4acd389821 - Add rapps.exe to bootcd
- Add msgsm32.acm to bootcd
- Add some optional modules
- Remove downloader.exe and downloader.xml

svn path=/trunk/; revision=42692
2009-08-15 10:19:50 +00:00
Dmitry Chapyshev
e8f0dc48e9 - Change downloader.exe to rapps.exe
svn path=/trunk/; revision=42691
2009-08-15 10:17:48 +00:00
Dmitry Chapyshev
c50287c843 - Returns TRUE in AttachConsole (like in Wine)
svn path=/trunk/; revision=42690
2009-08-15 10:04:45 +00:00
Dmitry Chapyshev
16992e50bd - Partially sync locale.c with Wine
svn path=/trunk/; revision=42689
2009-08-15 10:01:28 +00:00
Dmitry Chapyshev
8d16b803eb - Add debug print for unimplemented function
svn path=/trunk/; revision=42688
2009-08-15 10:00:15 +00:00
Dmitry Chapyshev
419b58e7fc - Implement EnumObjects (untested)
- Implement PolyTextOutA/W (from Wine)
- Implement GetICMProfileA (from Wine)
- Stub-implement CreateScalableFontResourceW (from Wine)

svn path=/trunk/; revision=42687
2009-08-15 09:56:22 +00:00
Dmitry Chapyshev
432c08cdc0 - Add some defines
svn path=/trunk/; revision=42686
2009-08-15 09:49:01 +00:00
Dmitry Chapyshev
a3baeefe3a - Add debug print for unimplemented function
svn path=/trunk/; revision=42685
2009-08-15 09:42:14 +00:00
Dmitry Chapyshev
a70df9a883 - Handle query security descriptor
- Add SEH protection

svn path=/trunk/; revision=42684
2009-08-15 09:39:56 +00:00
Dmitry Chapyshev
b0922201e8 - Add msgsm32.acm from Wine
- Add some MCI Extensions to registry

svn path=/trunk/; revision=42683
2009-08-15 09:34:24 +00:00
Dmitry Chapyshev
3631591a72 - Sync oleacc, oleaut32, olesvr32 with Wine 1.1.27
svn path=/trunk/; revision=42681
2009-08-15 09:29:45 +00:00
Dmitry Chapyshev
76426a56bd - Add Russian translation
svn path=/trunk/; revision=42680
2009-08-15 09:25:32 +00:00
Johannes Anderwald
620bcc8996 - Include splitter in build
svn path=/trunk/; revision=42678
2009-08-15 08:07:06 +00:00
Dmitry Chapyshev
3fd366e5b2 - Add/update Ukrainian translation by Yevhen Sakara <eresid@gmail.com>
svn path=/trunk/; revision=42676
2009-08-15 05:28:45 +00:00
Cameron Gutman
44b841683d - Actually zero the select events in ZeroEvents
- Part 3 of 3 (hopefully :P)

svn path=/trunk/; revision=42675
2009-08-15 02:48:59 +00:00
Cameron Gutman
79bc2a1d7d - Fix more select bugs related to the disconnect event
- Part 2 of x

svn path=/trunk/; revision=42674
2009-08-15 02:27:02 +00:00
Cameron Gutman
b12ea8a99d - Fix several bugs in select code and remove some dead code
- Fix a typo
 - Part 1 of x

svn path=/trunk/; revision=42673
2009-08-15 02:09:23 +00:00
Timo Kreuzer
987115d431 Fix screwed logic in LIST_FOR_EACH and LIST_FOR_EACH_SAFE. They were 1. using inverse logic and entering the loop when elem was NULL, 2. checking elem, whick is the result of CONTAINING_RECORD on the Flink pointer that should be checked for NULL. Anyway these macros are ugly and shouldn't be used, they only obfuscate the code.
svn path=/trunk/; revision=42672
2009-08-15 00:40:09 +00:00
Timo Kreuzer
ea8e3db781 [win32k] EngCreateDeviceBitmap: handle failure of EngLockSurface. Found by Amine.
svn path=/trunk/; revision=42671
2009-08-14 22:08:15 +00:00
Johannes Anderwald
74bd2a036d - Implement KsPropertyHandler, KsPropertyHandlerWithAllocator, KsFastPropertyHandler
svn path=/trunk/; revision=42669
2009-08-14 19:44:01 +00:00
Johannes Anderwald
11a3ac6f28 [KS]
- Proper implement KsValidateConnectRequest
- Dataformat isnt not yet checked

svn path=/trunk/; revision=42664
2009-08-14 09:27:24 +00:00
Johannes Anderwald
9a7221dc8b - A few header updates
svn path=/trunk/; revision=42663
2009-08-14 09:26:05 +00:00
Timo Kreuzer
2ecb57cb19 More fix NtUserSetWindowContextHelpId. Spotted by Cameron.
svn path=/trunk/; revision=42662
2009-08-14 01:37:28 +00:00
Cameron Gutman
a1a8e7a706 - Fix several bugs so select() will now recognize when a connection gets closed
svn path=/trunk/; revision=42661
2009-08-14 00:09:59 +00:00
Cameron Gutman
e90b905e0b - Fix a NULL pointer dereference if ExAllocatePool fails
- Move some sanity checks into the right location
 - Fix another NULL pointer dereference if there is not a socket on the queue
 - Also spotted by Amine Khaldi

svn path=/trunk/; revision=42660
2009-08-13 23:42:21 +00:00
Cameron Gutman
42e498c4b0 - Fix a handle leak
- Fix a potential NULL pointer dereference if ExAllocatePool fails
 - Fix a potential NULL pointer dereference that causes AFD to crash when the socket is closed with waiting send IRPs
 - Fix another NULL pointer dereference if NdisOpenConfiguration fails
 - Move ASSERT before accessing Status
 - Add some sanity checks
 - Most of these were found by Amine Khaldi

svn path=/trunk/; revision=42659
2009-08-13 23:38:57 +00:00
Johannes Anderwald
2bddd27873 [SPLITTER]
- Implement Splitter (WIP)

svn path=/trunk/; revision=42650
2009-08-13 10:05:42 +00:00
Johannes Anderwald
d8fa27fec7 [KS]
- Check if irp was allocated
- Unimplement KsPinGetConnectedPinFileObject

svn path=/trunk/; revision=42649
2009-08-13 09:54:51 +00:00
Johannes Anderwald
3f99bec9f5 - Implement IPortDMus_fnNewRegistryKey
svn path=/trunk/; revision=42648
2009-08-13 09:53:13 +00:00
Stefan Ginsberg
538f32f9ba - Re-disallow warnings for gdi32, user32 and lsasrv
svn path=/trunk/; revision=42647
2009-08-13 09:34:37 +00:00
Stefan Ginsberg
ea8bcfbef4 - Make gdi32 compile warning free under msvc
svn path=/trunk/; revision=42646
2009-08-13 09:29:48 +00:00
James Tabor
5ece4e88fa - Fix SetWndContextHlpId call.
svn path=/trunk/; revision=42645
2009-08-13 05:18:18 +00:00
James Tabor
f0f7e2d2dd - Fix another NULL Wnd crash.
svn path=/trunk/; revision=42644
2009-08-13 04:17:23 +00:00
James Tabor
904739a70b - Fix menu window callback. Only use it when the menu name is not null.
svn path=/trunk/; revision=42643
2009-08-12 23:37:26 +00:00
Cameron Gutman
10b13ed7c9 - Don't access an uninitialized variable
- Initialize the unicode string at the start of the function
 - Spotted by Amine Khaldi

svn path=/trunk/; revision=42642
2009-08-12 23:14:49 +00:00
James Tabor
09286edbce - Move GetWindowInfo support into user32. Use HWNDPARAM for SetWindowContextHelpId.
svn path=/trunk/; revision=42637
2009-08-12 18:46:34 +00:00
Aleksey Bragin
9e804e5230 - Rewrite RtlpCreateAtomHandle to readable code and fix a problem spotted in bug 4788.
svn path=/trunk/; revision=42635
2009-08-12 11:42:34 +00:00
James Tabor
f529b441b2 - Check if server side window proc is set when clearing or setting dialog window flag.
svn path=/trunk/; revision=42633
2009-08-12 07:42:30 +00:00
James Tabor
b51adaebd8 Rewrite NtUserGetCPD to correctly return the callproc handle pointer.
svn path=/trunk/; revision=42632
2009-08-12 07:35:15 +00:00
James Tabor
c85e511160 Properly set the active window frame flag. Add missing file header. Add a note in defwnd.c.
svn path=/trunk/; revision=42631
2009-08-12 07:03:58 +00:00
James Tabor
9d2a032c20 - Move W32 Process flags to the proper place.
svn path=/trunk/; revision=42630
2009-08-12 06:54:31 +00:00
James Tabor
0fa041c7b4 Properly set and clear the dialog window flag.
svn path=/trunk/; revision=42629
2009-08-12 06:41:20 +00:00
Timo Kreuzer
fbe691dd9b Make the tui console background black instead of blue.
svn path=/trunk/; revision=42628
2009-08-11 20:23:18 +00:00
Gregor Schneider
864fd31512 Amendment to r42615: add the check in the correct line
svn path=/trunk/; revision=42627
2009-08-11 19:50:42 +00:00
Timo Kreuzer
abc65bc027 [win32k]
- EngSetPointerShape: Don't dereference psoMask without checking it

svn path=/trunk/; revision=42626
2009-08-11 19:03:51 +00:00
Timo Kreuzer
f928fd8906 [win32k]
- GreSetPointerShape: Don't cleanup the XLATEOBJ when it wasn't initialized.
- Found by Amine Khaldi

svn path=/trunk/; revision=42625
2009-08-11 18:42:30 +00:00
Jeffrey Morlan
d05d3811ed Fix a buffer overflow in ConvertULargeInteger
svn path=/trunk/; revision=42623
2009-08-11 16:21:46 +00:00
Johannes Anderwald
555a242381 - Filter dispatch is optional, handle it when creating new filters
svn path=/trunk/; revision=42622
2009-08-11 15:22:06 +00:00
Gregor Schneider
15900e1f91 Re-add r42536, it didn't break the build server
svn path=/trunk/; revision=42621
2009-08-11 15:03:41 +00:00
Johannes Anderwald
faf651d298 - Start implementing splitter
- Add a device descriptor

svn path=/trunk/; revision=42620
2009-08-11 15:03:33 +00:00
Johannes Anderwald
4e8ace35ed - Add few macros, constants for splitter
svn path=/trunk/; revision=42619
2009-08-11 14:52:22 +00:00
Gregor Schneider
d2c4562d5b Free memory on error
svn path=/trunk/; revision=42618
2009-08-11 14:37:52 +00:00
Gregor Schneider
d6e84af5f7 Return INVALID_FILE_ATTRIBUTES when no filename is passed
svn path=/trunk/; revision=42617
2009-08-11 14:19:43 +00:00
Gregor Schneider
dd9eabe375 Fix memory allocation for small number of digits
svn path=/trunk/; revision=42616
2009-08-11 14:01:44 +00:00
Gregor Schneider
85fc2afbaa Don't access the pattern GetPixel function pointer if it hasn't been set
svn path=/trunk/; revision=42615
2009-08-11 13:39:40 +00:00
Aleksey Bragin
f0dc2c14f3 - Get NtUnloadKey2 back to old behavior until its caller learns to properly handle various error codes.
See issue #4787 for more details.

svn path=/trunk/; revision=42612
2009-08-11 13:01:42 +00:00
Johannes Anderwald
fb04896e11 - Check if allocation succeeded
- Wait untill each audio service has been started
- May now fix randomly playing logon sound

svn path=/trunk/; revision=42611
2009-08-11 10:37:40 +00:00
Johannes Anderwald
ca039fbfa9 - Audiosrv first starts sysaudio and then wdmaud. It is more clever to wait untill the latter is started
svn path=/trunk/; revision=42610
2009-08-11 10:36:25 +00:00
Johannes Anderwald
37a75e27df - Add sanity checks
svn path=/trunk/; revision=42609
2009-08-11 09:41:33 +00:00
Johannes Anderwald
20a819d000 - Fix allocation check
- Found by Amine Khaldi

svn path=/trunk/; revision=42608
2009-08-11 09:36:41 +00:00
Johannes Anderwald
fad9ff3860 [KS]
- Fix uninitialized return value when the list is empty
- Fix a horrible bug where the end of the list wasnt checked by the source list but the destination list 
- Found by Amine Khaldi

svn path=/trunk/; revision=42607
2009-08-11 09:20:15 +00:00
Johannes Anderwald
85543388b1 - Remove superflouous checks
- Found by amine48rz

svn path=/trunk/; revision=42606
2009-08-11 08:49:30 +00:00
Timo Kreuzer
11caab78fd Move stubs for user mode printer drivers from stubs.c into umpdstubs.c. Unimplement some of them, as they were wrong.
svn path=/trunk/; revision=42605
2009-08-10 22:20:28 +00:00
Cameron Gutman
7c78a42816 - Make Connect IRPs cancellable (should fix some deadlock issues)
- Fix a bug which could result in a Listen IRP being unable to be cancelled

svn path=/trunk/; revision=42604
2009-08-10 21:21:50 +00:00
Johannes Anderwald
4ffba4e3e3 - Implement swenum
svn path=/trunk/; revision=42603
2009-08-10 21:10:03 +00:00
Timo Kreuzer
fc40a70945 Revert part of my last commit, this was testcode not meant to be committed.
svn path=/trunk/; revision=42602
2009-08-10 20:22:11 +00:00
Timo Kreuzer
344e472e73 - Move some functions from stubs.c to new file eng/mapping.c
- Move EngSetPointerTag to mouse.c
- Move EngQuerySystemAttribute and EngGetTickCount to engmisc.c
- Unimplement EngLoadModule as it was wrong
- FLOATOBJ_XxxFloatObj are duplicated from FLOATOBJ_Xxx, remove the stubs and redirect in the pspec.
- Redirect EngGetCurrentProcessId and EngGetcurrentThreadId to ntoskrnl

svn path=/trunk/; revision=42601
2009-08-10 20:19:33 +00:00
Timo Kreuzer
de2b47bdf6 Fix return value. Thanks to Hervé for noticing.
svn path=/trunk/; revision=42600
2009-08-10 19:26:53 +00:00
Johannes Anderwald
da8d2f0bd8 - Implement BdaPropertyGetPinControl
svn path=/trunk/; revision=42599
2009-08-10 16:10:26 +00:00
Johannes Anderwald
dd5e13f449 - A few updates from Archwald
svn path=/trunk/; revision=42598
2009-08-10 16:09:45 +00:00
Johannes Anderwald
be6d957131 - Implement BdaPropertyNodeTypes, BdaPropertyPinTypes
svn path=/trunk/; revision=42597
2009-08-10 15:18:48 +00:00
Timo Kreuzer
15e8102344 Implement EngFileIoControl and EngFileWrite
svn path=/trunk/; revision=42596
2009-08-10 15:09:14 +00:00
Johannes Anderwald
0b1191a6d8 - Implement BdaInitFilter, BdaCreateTopology
svn path=/trunk/; revision=42594
2009-08-10 14:18:51 +00:00
Johannes Anderwald
b25a3f93ea - Add macros for bda
svn path=/trunk/; revision=42593
2009-08-10 14:03:16 +00:00
Aleksey Bragin
df38911464 - Rewrite failure branch of IopLoadUnloadDriver to return a real status code instead of always hardcoding it to STATUS_IMAGE_ALREADY_LOADED (r42473) and remove unneeded code duplication.
svn path=/trunk/; revision=42592
2009-08-10 14:03:01 +00:00
Aleksey Bragin
158a642e6b - Make NtUnloadKey call a newer version of the NTAPI - NtUnloadKey2.
- Implement NtUnloadKey2 as a wrapper around internal CM API - CmUnloadKey.
- Stub CmUnloadKey.
- Fix a typo in ps/process.c comments.

svn path=/trunk/; revision=42591
2009-08-10 13:44:54 +00:00
Johannes Anderwald
f82ee64534 - Arch broke it
svn path=/trunk/; revision=42590
2009-08-10 13:07:05 +00:00
Johannes Anderwald
22769d6876 - Add BDA filter context to object bag, so that it gets freed automatically later
svn path=/trunk/; revision=42588
2009-08-10 11:28:25 +00:00
Johannes Anderwald
c4ba7bb1d8 - Add KsFilterFactoryGetParentDevice macro
- Fix inline function for msvc compability

svn path=/trunk/; revision=42587
2009-08-10 11:27:23 +00:00
Johannes Anderwald
5292ae1686 [BDASUP]
- Start implementing BDASup
- Implement BdaCheckChanges, BdaCommitChanges, BdaCreateFilterFactory, BdaCreateFilterFactoryEx, BdaCreatePin, BdaMethodCreatePin, BdaFilterFactoryUpdateCacheData, BdaGetChangeState, BdaMethodCreateTopology, BdaMethodDeletePin, BdaPropertyTemplateConnections, BdaStartChanges, BdaUninitFilter, BdaValidateNodeProperty

svn path=/trunk/; revision=42586
2009-08-10 11:13:43 +00:00
Johannes Anderwald
f85104f4a1 - Add include guards
- Add KSM_PIN
- Add a few function prototypes

svn path=/trunk/; revision=42585
2009-08-10 11:10:37 +00:00
Stefan Ginsberg
ecf94cf3ae - Remove duplicate MmHighestPhysicalPage (the other being in init.c) -- we still ended up with only 1 global however, so this doesn't really change anything
svn path=/trunk/; revision=42584
2009-08-10 09:54:29 +00:00
Aleksey Bragin
305ee59bac - Update commctrl.h.
svn path=/trunk/; revision=42583
2009-08-10 09:47:17 +00:00
Johannes Anderwald
732ce0ed84 [WDMAUD]
- Remove ReactOS specific pin creation hack
[SYSAUDIO]
- Refactor sysaudio pin creation
- Remove ReactOS specific pin creation hack
- Remove unused functions

svn path=/trunk/; revision=42580
2009-08-10 07:14:04 +00:00
James Tabor
2aa4d40fff - Changes to file header.
svn path=/trunk/; revision=42579
2009-08-10 04:57:22 +00:00
Cameron Gutman
347e34f1b4 - Rewrite most of the loopback code
- The new code is faster, uses less memory, and is less complex than the previous code
 - Add a NULL check to fix a potential crash

svn path=/trunk/; revision=42578
2009-08-10 03:27:39 +00:00
Cameron Gutman
d398d00ca8 - Fix a bug which resulted in the first letter of each quote (except the first one) being skipped
- Fix some quote typos

svn path=/trunk/; revision=42577
2009-08-09 22:53:26 +00:00
Hervé Poussineau
10692515b0 [rbuild] Remove distinction between Iso/IsoRegTest, and LiveIso/LiveIsoRegTest module types
Better dependency tracking for iso module type

svn path=/trunk/; revision=42575
2009-08-09 22:03:04 +00:00
Gregor Schneider
17db8cf603 Revert r42536 for build server diagnosis
svn path=/trunk/; revision=42571
2009-08-09 19:30:35 +00:00
Dmitry Gorbachev
f2a7907cb7 Do not call CcUnpinData() with NULL PtrBCB.
svn path=/trunk/; revision=42569
2009-08-09 17:26:10 +00:00
Dmitry Gorbachev
5f73e1c2bc Fix IDT limit.
svn path=/trunk/; revision=42566
2009-08-09 14:40:05 +00:00
Dmitry Gorbachev
46ad3be153 Add padding to ext2 superblock structure (to 512 bytes).
svn path=/trunk/; revision=42565
2009-08-09 14:39:44 +00:00
Christoph von Wittich
b14357b82c partial rpcrt4 sync to wine 1.1.27 (fixes ~180 rpcrt4 winetests)
svn path=/trunk/; revision=42564
2009-08-09 14:28:07 +00:00
Stefan Ginsberg
aa8b33601d - ne2000: Don't assume stdcall is default for MSVC
- snmpapi: Define SNMP_FUNC_TYPE for MSVC too
- rasman: Compatibly define function pointer prototype
- vbe/vga/xboxvmp: Fix assumption that _MSC_VER means "compiling with Microsoft's headers"

svn path=/trunk/; revision=42563
2009-08-09 14:18:01 +00:00
Christoph von Wittich
a8fca73ae8 partial sync to wine 1.1.27
svn path=/trunk/; revision=42562
2009-08-09 13:56:25 +00:00
Christoph von Wittich
2127bca655 sync shell32_winetest with wine 1.1.27
svn path=/trunk/; revision=42559
2009-08-09 12:49:55 +00:00
Gregor Schneider
a5dfb6bd53 Even without a CMINVOKECOMMANDINFOEX structure a link should be executed with the supplied parameters
See issue #4323 for more details.

svn path=/trunk/; revision=42557
2009-08-09 12:07:21 +00:00
Christoph von Wittich
216c94033d fix build
svn path=/trunk/; revision=42556
2009-08-09 12:06:07 +00:00
Christoph von Wittich
ec56eb048b sync shdocvw and mshtml with wine 1.1.27 and add missing translations to avifil32
svn path=/trunk/; revision=42555
2009-08-09 12:00:11 +00:00
Timo Kreuzer
665c8196de Add lmissing file
svn path=/trunk/; revision=42553
2009-08-09 11:38:53 +00:00
Timo Kreuzer
3979f7432d win32knapi: More / improved tests for NtUserSystemParametersInfo, NtGdiSelectBrush, NtGdiSelectBitmap, NtGdiGetFontResourceInfoInternalW, NtGdiDoPalette
svn path=/trunk/; revision=42552
2009-08-09 11:27:25 +00:00
Timo Kreuzer
823cea3689 Change xlate tests a bit.
svn path=/trunk/; revision=42551
2009-08-09 11:05:54 +00:00
Stefan Ginsberg
98e84293c7 - Fix intrinsics for MSVC -- just include intrin.h instead of duplicating the definitions.
svn path=/trunk/; revision=42550
2009-08-09 09:58:07 +00:00
Hervé Poussineau
afceb3314e Fix compilation #2
svn path=/trunk/; revision=42546
2009-08-09 08:24:22 +00:00
Hervé Poussineau
e9eadcc168 Fix compilation
svn path=/trunk/; revision=42545
2009-08-09 08:13:17 +00:00
Hervé Poussineau
661239c67e Merge FldrCreateComponentKey and FldrSetIdentifier
svn path=/trunk/; revision=42544
2009-08-09 08:11:52 +00:00
Hervé Poussineau
d7ca524325 Merge FldrCreateComponentKey and FldrSetComponentInformation
Remove unneeded parameters in FldrCreateComponentKey

svn path=/trunk/; revision=42543
2009-08-09 07:45:41 +00:00
Cameron Gutman
bfe9c97ce3 - Return the correct value for AFD_INFO_BLOCKING_MODE
- Implement AFD_INFO_SENDS_IN_PROGRESS (SO_LINGER should work now)

svn path=/trunk/; revision=42542
2009-08-09 03:57:29 +00:00
Dmitry Gorbachev
7c7fefd8d3 Fix issue #4673 ("Misrepresented license in FreeLDR"), Robert Millan (rmh.reactos at aybabtu.com).
svn path=/trunk/; revision=42541
2009-08-08 22:39:04 +00:00
Hervé Poussineau
3e5c0bc6aa Remove dead code
svn path=/trunk/; revision=42540
2009-08-08 21:50:15 +00:00
Hervé Poussineau
945b08e99d Use Arc* infrastructure to read the .inf file
svn path=/trunk/; revision=42539
2009-08-08 21:23:23 +00:00
Hervé Poussineau
c2b74e4921 Fix some typos and make PFILE a ULONG
svn path=/trunk/; revision=42538
2009-08-08 21:11:40 +00:00
Hervé Poussineau
28bf1f3b71 - Half-convert FAT, Ext2 and NTFS filesytems to provide new ARC file infrastructure. This allows removing some compatibility code in fs.c
- Remove use of FsOpenBootVolume() and FsOpenSystemVolume(). If callers don't want a file on boot volume, they need to use the new ArcOpen/ArcSeek/ArcRead/ArcClose functions instead of the old FsOpenFile/FsSetFilePointer/FsReadFile/FsCloseFile

svn path=/trunk/; revision=42537
2009-08-08 20:53:10 +00:00
Gregor Schneider
ee30838ad7 Supply default ansi codepage when converting from unicode, fixes 365 kernel32 comm winetests
svn path=/trunk/; revision=42536
2009-08-08 20:20:16 +00:00
Timo Kreuzer
ee9e10c750 [FORMATTING]
4 spaces indentation, no code change

svn path=/trunk/; revision=42535
2009-08-08 19:53:21 +00:00
Dmitry Gorbachev
4edf4a5d67 - Do not compare an ULONG variable with -1 in DbgPrint().
- Simplify TuiPrintf().

svn path=/trunk/; revision=42534
2009-08-08 19:34:21 +00:00
Hervé Poussineau
1af46d7aa4 HACK FIX DiskGetBootPath() method to return something meaningful when booting from hard disk
svn path=/trunk/; revision=42533
2009-08-08 19:33:08 +00:00
Stefan Ginsberg
fa657e7e29 Fix Uniata for msvc:
- Add missing msvc intrinsics to winddk.h
- Don't assume compiler means a specific header set, and don't rely on the default calling convention being stdcall.
- Disable a warning spotted by MSVC -- requesting anyone with understanding of the code to have a look.

svn path=/trunk/; revision=42531
2009-08-08 18:27:01 +00:00
KJK::Hyperion
b7cb2a38aa modified base/setup/vmwinst/vmwinst.c
modified   base/setup/vmwinst/vmwinst.rbuild
   Implement VMWare detection for Visual C++ as well
   For cleaner code, use SEH instead of VEH, even if it means losing this pearl of ReactOS wisdom:

       /* Setup a vectored exception handler to protect the detection. Don't use SEH
       here so we notice the next time someone removes support for vectored
       exception handling from ros... */

   (www.passiveaggressivecommits.com, brought to you by Arch Blackmann!)
   Of course, it also means trading our VEH bugs for our SEH bugs, so I'm not sure if it was worth changing

svn path=/trunk/; revision=42530
2009-08-08 18:03:48 +00:00
KJK::Hyperion
e50fa1e50e modified dll/3rdparty/mesa32/src/main/imports.c
We don't have _aligned_malloc in our CRT, whatever compiler we use

modified   dll/3rdparty/mesa32/src/main/imports.h
   The mysterious MESA compilation bug has been found: seems the Visual C++ preprocessor doesn't know about the "F" number suffix

modified   dll/3rdparty/mesa32/reactos.diff
   Updated the diff

svn path=/trunk/; revision=42529
2009-08-08 17:18:34 +00:00
Hervé Poussineau
e307cb2881 Rework ISO9660 filesystem to use ARC file architecture.
ISO filesystem doesn't depend anymore of boot volume/system volume

svn path=/trunk/; revision=42528
2009-08-08 17:13:14 +00:00
Hervé Poussineau
20c8af6fef Read freeldr.ini file using ARC file infrastructure
svn path=/trunk/; revision=42527
2009-08-08 17:08:51 +00:00
Hervé Poussineau
9f71bce6b4 Improve ARC file infrastructure, by adding a compatibility layer from old to new system (new to old already exists)
i386: when reading sectors, use dedicated scratch area
Increase number of available open files to 60, because something seems to leak file descriptors

svn path=/trunk/; revision=42526
2009-08-08 17:04:53 +00:00
Stefan Ginsberg
79c9204f9e - Fix compilation of csrsrv:
- helper.h does not exist anymore, so define what was used in srv.h instead
- Complete migration to PSEH2
- TEB's Cid was renamed to ClientId -- update the code
- Rename DllMain to DllMainCRTStartup as this is what we link a native dll to
- Fix some incorrect entries in the .spec
- Also fix some /W4 warnings. Add a note to CsrPopulateDosDevicesDirectory that the code is incomplete and will never stop looping (spotted by /W4).
- Does not link completely yet due to some missing function stubs.

svn path=/trunk/; revision=42525
2009-08-08 16:50:27 +00:00
Gregor Schneider
6ff2cad0ff Remove temporary debug code, crash was fixed by r42506 and r42517
svn path=/trunk/; revision=42523
2009-08-08 16:24:22 +00:00
Christoph von Wittich
24c3dd1abc sync msacm with wine 1.1.27
svn path=/trunk/; revision=42522
2009-08-08 16:14:46 +00:00
Gregor Schneider
0656aaaacd Only set text resource in DefWndProcA on WM_NCCREATE if passed and exists
See issue #4766 for more details.

svn path=/trunk/; revision=42521
2009-08-08 16:14:43 +00:00
Gregor Schneider
3786d6dd01 Don't access the device mode if it is not passed (user32 monitor crash)
svn path=/trunk/; revision=42520
2009-08-08 16:01:24 +00:00
Gregor Schneider
4413118e20 Revert r42518: no user mode types in DDK
svn path=/trunk/; revision=42519
2009-08-08 15:10:01 +00:00
Gregor Schneider
5dfa2c31de ULONG->DWORD as seen on MSDN for (U)LARGE_INTEGER
svn path=/trunk/; revision=42518
2009-08-08 15:01:38 +00:00
Gregor Schneider
7b6de8b1d4 -Use correct conversion factors in FileTimeToUnixTime (increased by factor 1000)
-Prefer time_t to arch specific __time64_t
-Assumption from r42506 was wrong: GetSystemTimeAsFileTime supplies good values

svn path=/trunk/; revision=42517
2009-08-08 14:55:25 +00:00
Stefan Ginsberg
e8aa4b4280 - Silence a soundblaster warning on release build
svn path=/trunk/; revision=42516
2009-08-08 14:41:50 +00:00
Stefan Ginsberg
c5045dd4e7 - Undefine __ROS_LONG64__ for ReactOS' extensions to kernel32 and setupapi Winetests -- fixes even more warnings
svn path=/trunk/; revision=42514
2009-08-08 13:34:12 +00:00
Stefan Ginsberg
988ffc77d4 - Correct the RegionSize member of MEMORY_BASIC_INFORMATION -- it is pointer sized.
- Make RPC_STATUS respect __ROS_LONG64__ -- fixes a bunch of format warnings in the rpcrt4 Winetest.

svn path=/trunk/; revision=42513
2009-08-08 13:32:15 +00:00
Christoph von Wittich
b9ad186036 sync msi winetest with wine 1.1.27
svn path=/trunk/; revision=42511
2009-08-08 12:48:20 +00:00
Christoph von Wittich
4c4e558887 sync widl to wine 1.1.27
svn path=/trunk/; revision=42510
2009-08-08 12:40:21 +00:00
Christoph von Wittich
220177d4de always build 32 bit typelibs
svn path=/trunk/; revision=42509
2009-08-08 12:37:01 +00:00
Christoph von Wittich
50ba99e99c sync msi with wine 1.1.27
svn path=/trunk/; revision=42507
2009-08-08 11:55:51 +00:00
Gregor Schneider
522d088b11 -time() returns a valid value even if no pointer is passed
-Exposes another bug: kernel32's GetSystemTimeAsFileTime currently returns invalid (too low) time values

svn path=/trunk/; revision=42506
2009-08-08 11:40:48 +00:00
Christoph von Wittich
cc30ba1d67 fix rc files
svn path=/trunk/; revision=42505
2009-08-08 10:48:08 +00:00
Christoph von Wittich
aa0abcf51e partial revert of r41765
svn path=/trunk/; revision=42504
2009-08-08 10:22:51 +00:00
Christoph von Wittich
6dc4143481 partial revert of r41770
svn path=/trunk/; revision=42503
2009-08-08 10:18:41 +00:00
Christoph von Wittich
847a9ddf02 partial revert of r41768
svn path=/trunk/; revision=42502
2009-08-08 10:14:13 +00:00
Christoph von Wittich
80e7d449b2 partial revert of r41766
svn path=/trunk/; revision=42501
2009-08-08 10:09:14 +00:00
Pierre Schweitzer
92a36f7e01 Include header where needed
svn path=/trunk/; revision=42499
2009-08-08 09:49:27 +00:00
Christoph von Wittich
db136c3959 -sync wrc to wine 1.1.27
-apply a patch from Marcus Meissner to fix reading from stdin (broken in current wine)

svn path=/trunk/; revision=42498
2009-08-08 09:09:37 +00:00
Christoph von Wittich
e465790307 sync jscript_winetest with wine 1.1.27
svn path=/trunk/; revision=42497
2009-08-08 07:34:31 +00:00
Christoph von Wittich
23d4ad046d sync jscript with wine 1.1.27
svn path=/trunk/; revision=42496
2009-08-08 07:34:09 +00:00
Hervé Poussineau
2a10e77d03 [lsasrv] Do not launch a thread to listen for incoming calls, but do it directly
Better LsarClose stub, which tries to do the right thing
Fix a few prototypes
See issue #4689 for more details.

svn path=/trunk/; revision=42495
2009-08-08 07:27:37 +00:00
Christoph von Wittich
ac25f23e18 delete obsolete diff
svn path=/trunk/; revision=42494
2009-08-08 07:20:55 +00:00
Christoph von Wittich
f2475c62a6 allow warnings for idl
svn path=/trunk/; revision=42493
2009-08-08 07:06:52 +00:00
Christoph von Wittich
681b7b3276 try to re enable rpc4rt winetest
svn path=/trunk/; revision=42492
2009-08-08 06:47:51 +00:00
Cameron Gutman
c319a3c9bb - Stop trying to find more adapters if it failed to avoid spamming the debug log
- Should fix buildbot test 2nd stage

svn path=/trunk/; revision=42491
2009-08-08 03:18:41 +00:00
Timo Kreuzer
7b56dfa270 NtUserGetIconInfo: Move lockingunlocking out of SEH, as this is a bad idea. Get rid of RETURN(). Add a comment.
svn path=/trunk/; revision=42490
2009-08-08 02:47:32 +00:00
Timo Kreuzer
c136124b2f [win32k]
- Use DIB_GetDIBWidthBytes and BitsPerFormat instead of switch
- Add SPS_CHANGE flag when calling IntEngSetPointerShape
- Fixes VMWare Driver mouse pointer regression

svn path=/trunk/; revision=42489
2009-08-08 02:42:41 +00:00
Timo Kreuzer
257366ffa4 Comment out rpcrt4 winetest, as it breaks testcd.
svn path=/trunk/; revision=42488
2009-08-08 01:35:06 +00:00
Timo Kreuzer
f691efa3b4 Update the fill brush, in NtGdiFillPath.
svn path=/trunk/; revision=42487
2009-08-08 00:50:42 +00:00
Stefan Ginsberg
dce78c56fc - Don't use dllexport for dxapi -- we have a .spec
svn path=/trunk/; revision=42486
2009-08-07 21:53:26 +00:00
Stefan Ginsberg
a553ba4adc - Use APIENTRY compatible -- wdmaud now builds
svn path=/trunk/; revision=42485
2009-08-07 21:27:45 +00:00
Stefan Ginsberg
41f20a9b19 - Don't assume _MSC_VER means PSDK in regedit -- add a note so this isn't forgotten.
svn path=/trunk/; revision=42484
2009-08-07 21:15:17 +00:00
Stefan Ginsberg
a980836dd8 - Make rapps MSVC-friendly
svn path=/trunk/; revision=42483
2009-08-07 21:10:16 +00:00
Christoph von Wittich
3a66251576 sync rpcrt4 winetest with wine 1.1.26
svn path=/trunk/; revision=42482
2009-08-07 21:02:55 +00:00
Christoph von Wittich
cf7b35520e APIENTRY LONG --> LONG APIENTRY
svn path=/trunk/; revision=42481
2009-08-07 20:17:55 +00:00
Aleksey Bragin
e3ff5fffdc - Sync WIDL and ole32 with Wine-1.1.23, w/o syncing rpcrt4. Credits go to Christoph for helping out with this sync. Tested with rpcrt4_winetests and MS Office 2003 setup.
svn path=/trunk/; revision=42480
2009-08-07 20:15:12 +00:00
Stefan Ginsberg
94ece7bbdb . Define APIENTRY compatibly for MSVC
svn path=/trunk/; revision=42479
2009-08-07 20:12:19 +00:00
Stefan Ginsberg
35c6c8de82 - C89 compliance for iphlpapi
svn path=/trunk/; revision=42478
2009-08-07 20:03:37 +00:00
Stefan Ginsberg
ba45460b9c - Fix broken include path for MSVC -- appwiz, input, joy and telephon applets now compile
svn path=/trunk/; revision=42477
2009-08-07 19:49:22 +00:00
Stefan Ginsberg
cae766f61e - Remove another assumption that _MSC_VER means the MSVC build environment -- aclui now builds.
svn path=/trunk/; revision=42476
2009-08-07 19:37:11 +00:00
Stefan Ginsberg
0787f783d7 Move variable initialization to top of scope.
Welcome to MSVC, eventlog. It is safer here.

svn path=/trunk/; revision=42475
2009-08-07 19:19:46 +00:00
Stefan Ginsberg
5c28e5923e - Remove HalDisplayString from the DDK as it doesn't belong there and is already in the NDK.
- Move KeFlushQueuedDpcs from NDK to DDK as this is where it belongs -- it is a documented routine.

svn path=/trunk/; revision=42474
2009-08-07 19:16:01 +00:00
Michael Martin
8b8078a0da - Calling NtLoadDriver on an already loaded driver should fail with STATUS_IMAGE_ALREADY_LOADED. Fixes one test for kmtest driver tests and a bugcheck when loading the driver a second time.
svn path=/trunk/; revision=42473
2009-08-07 18:27:31 +00:00
KJK::Hyperion
90ae79bfc0 modified include/psdk/windows.h
modified   include/psdk/winnt.h
   Visual C++ needs love, too. Extend conditional w32api code for Watcom C to Visual C++

svn path=/trunk/; revision=42472
2009-08-07 17:07:10 +00:00
Stefan Ginsberg
578de69cda - Properly stub atan2/exp/fmod/ldexp for MSVC -- #error out on them instead of calling nonexisting functions to fail at link time (wtf?).
svn path=/trunk/; revision=42471
2009-08-07 16:40:11 +00:00
KJK::Hyperion
10fb22e0d9 Use include path for typeof.h that only depends on global include paths (typeof.h -> wine/typeof.h)
svn path=/trunk/; revision=42470
2009-08-07 15:35:41 +00:00
KJK::Hyperion
32072cfccd added include/reactos/wine/typeof.h
Simulate typeof operator for the Wine code that requires it

modified   ReactOS-generic.rbuild
   Force-include typeof.h when compiling with Visual C++

svn path=/trunk/; revision=42469
2009-08-07 15:25:03 +00:00
Cameron Gutman
c732d0bbfb - We associate the MDL with the IRP later (in TdiBuildSend, TdiBuildReceive, etc)
svn path=/trunk/; revision=42468
2009-08-07 15:22:24 +00:00
Cameron Gutman
3bc15ea3c0 - Call IoCompleteRequest to free IRPs created by IoBuildDeviceIoControlRequest
- Fixes bug 4770

svn path=/trunk/; revision=42467
2009-08-07 15:00:42 +00:00
Christoph von Wittich
093197d2de include windef.h to get the definitions for BYTE and DWORD req. by bdatypes.h
svn path=/trunk/; revision=42466
2009-08-07 14:09:36 +00:00
Christoph von Wittich
84ef1b5a06 stub bdasup
svn path=/trunk/; revision=42465
2009-08-07 13:23:35 +00:00
Gregor Schneider
5122d6becf IntChangeDisplaySettings: set last error before leaving the function
NtUserChangeDisplaySettings: copy devmode only if passed, use SEH with buffer probing over CopyFromCaller

svn path=/trunk/; revision=42464
2009-08-07 12:10:59 +00:00
Gregor Schneider
0d14376113 Remove deprecated define
svn path=/trunk/; revision=42463
2009-08-07 12:06:04 +00:00
Christoph von Wittich
31b15e4854 add bdasup.h
svn path=/trunk/; revision=42462
2009-08-07 12:04:50 +00:00
Stefan Ginsberg
ac7daf7ccf - winddk.h: Don't define NTSYSAPI and NTSYSCALLAPI -- this is defined in ntdef.h. Use NTSYSAPI for HalDispatchTable instead of DECLSPEC_IMPORT (see below).
- wdm.h: Properly define NTKERNELAPI.
- ntifs.h: Properly define NTKERNELAPI, and don't redefine NTSYSAPI.
- ntoskrnl: Apply the WDK hack for our headers (and gcc) too. Also redefine NTHALAPI for NDK so we don't auto-import KdComPortInUse -- ld complains about this.
- Apply this for cmlib, csq and rossym too.
- Use this in HAL too, and redefine NTSYSAPI so we don't auto import some structures from the kernel. Also, don't define __declspec(dllimport) to nothing -- this doesn't work with gcc, and doesn't seem to be necessary. I tried building HAL with the WDK and this wasn't an issue.

svn path=/trunk/; revision=42461
2009-08-07 10:45:59 +00:00
Johannes Anderwald
8a3b6b1983 - Remove hack of starting stream automatically when first IRP has arrived
svn path=/trunk/; revision=42460
2009-08-07 10:16:25 +00:00
Johannes Anderwald
7121ab4d0e - Set the stream state to run when opening the device
- Set the stream state to stop when closing the device

svn path=/trunk/; revision=42459
2009-08-07 10:11:24 +00:00
Stefan Ginsberg
7b78af8b30 - Add inlined assembly for MSVC to _clearfp, _control87, _fpreset, _logb and _statusfp, move fpreset into arch-specific directory and remove x86 #ifdefs from the code.
- Disable warning C4733 for __wine_push_frame and __wine_pop_frame

svn path=/trunk/; revision=42458
2009-08-07 09:36:53 +00:00
Johannes Anderwald
2abccb66e9 [KS]
- Remove a hack for sysaudio + kmixer
[PORTCLS]
- Disable assert untill stream allocator is in place
- Remove dead code
- Implement IPortPinWaveCyclic_HandleKsStream
[KMIXER]
- Remove unused code
- Implement creating the allocator
- Properly implement openening the device
[STREAM]
- Use GLOBAL as the reference string
- Setup a pin create item
[SYSAUDIO]
- Use reference string GLOBAL to open kmixer
- Use reference string GLOBAL for opening sysaudio. Will be removed once bug 4566 is resolved

svn path=/trunk/; revision=42457
2009-08-07 09:34:52 +00:00
Daniel Reimer
74733cd9aa Bug 4700: Translation patch, Dutch, for explorer-new by Jan Roeloffzen
Bug 4733: Japanese translation for explorer-new and winemine by Tomoya Kitagawa
Bug 4738: Brazilian Portuguese translation for User Environment by Wagner Leandro Bueno Angelo
Bug 4749: Czech translation update by Radek Liska
Bug 4761: Norwegian translate by Lars Martin Hambro

svn path=/trunk/; revision=42456
2009-08-07 08:56:06 +00:00
Cameron Gutman
f1b8d48df1 - Send a gratuitous ARP packet when our IP address changes
svn path=/trunk/; revision=42455
2009-08-07 03:21:56 +00:00
Timo Kreuzer
50eb85ed3b Fix a serious bug, that led to reading beyound the end of the mask bitmap, if it was not twice as big as the color bitmap.
svn path=/trunk/; revision=42454
2009-08-07 03:14:55 +00:00
Cameron Gutman
353d0a8d27 - Fix a bug resulting in ROS discarding all gratuitous ARP packets
- Remove an unnecessary check

svn path=/trunk/; revision=42453
2009-08-07 02:39:38 +00:00
KJK::Hyperion
3bcb06c85c See r42442. One of the affected files was duplicated, so we duplicate the fix
svn path=/trunk/; revision=42452
2009-08-07 02:24:46 +00:00
KJK::Hyperion
6046aeca98 modified base/applications/network/netstat/netstat.c
Another mysterious case of stdlib.h being automatically included for gcc but not cl, another module compiling with Visual C++

svn path=/trunk/; revision=42451
2009-08-07 02:15:25 +00:00
KJK::Hyperion
5662c48394 modified lib/3rdparty/libsamplerate/libsamplerate.rbuild
We have lrint and lrintf, don't provide inline implementations

Three cheers for libsamplerate, congratulations to it for compiling on Visual C++

svn path=/trunk/; revision=42450
2009-08-07 02:10:12 +00:00
KJK::Hyperion
7d62f33141 Visual C++ doesn't like division by zero in constants: for now, don't define NAN, HUGE_VAL, HUGE_VALF, INFINITY for Visual C++
svn path=/trunk/; revision=42449
2009-08-07 02:03:25 +00:00
KJK::Hyperion
2161df104c modified dll/win32/opengl32/gl.c
modified   dll/win32/opengl32/opengl32.c
   Give prototypes to all functions
   Implement OpenGL thunks in assembler for Visual C++
   Nope, environment is not compiler this time, either

modified   dll/win32/opengl32/opengl32.h
   Don't use dllexport, we have a spec file

Congratulations opengl32, you now build with Visual C++

svn path=/trunk/; revision=42448
2009-08-07 01:50:19 +00:00
Timo Kreuzer
29c24f700e [win32k]
Implement GreMovePointer and GreSetPointerShape, calling the eng functions and use them instead of the former mess in IntSetCursor. Fix IntShowMousePointer, EngSetPointerShape to properly handle the color bitmap. We now have support for colored mouse cursors, like used by our paint.

svn path=/trunk/; revision=42447
2009-08-07 01:44:38 +00:00
KJK::Hyperion
314fa19276 modified base/services/audiosrv/pnp_list_manager.c
About the trillionth time Arch forgets that malloc is declared in stdlib.h

One more module builds with Visual C++

svn path=/trunk/; revision=42446
2009-08-07 01:20:23 +00:00
KJK::Hyperion
51473767f2 modified dll/win32/advapi32/advapi32.h
For some reason, <limits.h> was included for gcc, but not Visual C++: include it explicitly just in case

And we welcome advapi32 to the club of modules that compile with Visual C++

svn path=/trunk/; revision=42445
2009-08-07 01:15:48 +00:00
KJK::Hyperion
ba42f38a63 modified lib/3rdparty/libxml2/libxml2.rbuild
libxml2 wants __MINGW32__, let's give it __MINGW32__. This should probably defined globally, because our Visual C++ environment is kind of MinGW, after all

And libxml2 compiles with Visual C++, too

svn path=/trunk/; revision=42444
2009-08-07 01:06:18 +00:00
KJK::Hyperion
064df4b419 modified include/crt/float.h
added      include/crt/msc/msc_float.h
   Implement <float.h> for Visual C++

svn path=/trunk/; revision=42443
2009-08-07 01:03:09 +00:00
KJK::Hyperion
83e0a3e605 modified jmorecfg.h
Arch Blackmann confuses compiler with build environment in libjpeg too. No project is safe

modified   libjpeg.rbuild
   HAVE_CONFIG_H is only used in ansi2knr.c, which we don't build

added      libjpeg.reactos.diff
   Added patch files with changes from vendor drop

Yes, libjpeg now compiles with Visual C++, in case you were wondering

svn path=/trunk/; revision=42442
2009-08-07 00:37:45 +00:00
Timo Kreuzer
6c2f42c953 [FORMATTING]
Apply consistent 4 space indentation
No code change

svn path=/trunk/; revision=42441
2009-08-06 23:09:13 +00:00
Dmitry Gorbachev
2e74dd3e76 Add GetLogicalProcessorInformation() and a stub for ReOpenFile() by Alwyn Tan's request.
svn path=/trunk/; revision=42440
2009-08-06 22:53:04 +00:00
Johannes Anderwald
78f8e0a7c2 - Add a few parameters check
- Calculate resource list size with FIELD_OFFSET macro
- Fix a big bug in IResourceList_fnAddEntryFromParent which didnt copy the untranslated resource list entry

svn path=/trunk/; revision=42439
2009-08-06 21:45:10 +00:00
Johannes Anderwald
ba99294c86 - Check if translated / untranslated resource list is empty
- If both are empty, create an empty resource list
- May fix a crash with Yamaha XG Pci 

svn path=/trunk/; revision=42438
2009-08-06 20:44:53 +00:00
Stefan Ginsberg
cb95320734 - Fix the last mingw msvc build issues -- just use function forwarders for msvc instead of using gcc alias symbols. Also add msvc assembly to the "fp10" implementation.
svn path=/trunk/; revision=42435
2009-08-06 19:23:44 +00:00
Gregor Schneider
e0699eeea3 [Temp] Revert checkpoints, comment out first two tests to check possible memory corruptions from those functions, trace mktime tests in more detail
svn path=/trunk/; revision=42433
2009-08-06 17:32:36 +00:00
Stefan Ginsberg
360c153fad - Don't define ssize_t -- it is already done in rosdhcp.h
svn path=/trunk/; revision=42432
2009-08-06 16:57:56 +00:00
Gregor Schneider
71da990c0e [Temp] add some checkpoints to narrow the mysterious buildserver msvcrt test crash position #2
svn path=/trunk/; revision=42430
2009-08-06 16:08:49 +00:00
Stefan Ginsberg
60bf2397d9 - Don't rely on the default calling convention being cdecl for function pointers
svn path=/trunk/; revision=42429
2009-08-06 15:27:23 +00:00
Gregor Schneider
1a3dc30655 Retrieve the timezone bias in mktime via GetTimeZoneInformation
svn path=/trunk/; revision=42428
2009-08-06 15:18:24 +00:00
Gregor Schneider
7dc02145d2 [Temp] add some checkpoints to narrow the mysterious buildserver msvcrt test crash position
svn path=/trunk/; revision=42427
2009-08-06 14:23:40 +00:00
Gregor Schneider
44007e0af4 -Increase array size to allow proper string termination (MSVC warning #C4045)
-The code correctly copies only the first TCHAR4 value being the string itself

svn path=/trunk/; revision=42426
2009-08-06 12:45:11 +00:00
Stefan Ginsberg
740e3ee947 - MSVC fix: static __inline__ -> FORCEINLINE
svn path=/trunk/; revision=42425
2009-08-06 11:59:20 +00:00
Gregor Schneider
f5a461d8bf Switch from time to time_new 2/2:
-Rename time_new to time

svn path=/trunk/; revision=42423
2009-08-06 11:38:09 +00:00
Gregor Schneider
bb36c210f0 Switch from time to time_new 1/2:
-Get updated headers into place, prepare rbuild file, delete old dir

svn path=/trunk/; revision=42422
2009-08-06 11:37:09 +00:00
Aleksey Bragin
c2b61c7b42 - Add PsGetThreadId declaration.
svn path=/trunk/; revision=42419
2009-08-06 11:16:42 +00:00
Stefan Ginsberg
c63b98f537 - crt: Use ANSI C types
- math.h: Move nonstandard inline using nonstandard function into nonstandard group
- crtdefs.h: Don't disable non-ANSI C definitions for MSVC only -- the behaviour should be the same for all compilers, so always disable them -- fixes various msvc build errors introduced by 42369.

svn path=/trunk/; revision=42418
2009-08-06 11:03:08 +00:00
Gregor Schneider
760207bad2 -Merge license change from AMD64 branch (r42414)
-Adjust the return value of mktime by the chosen timezone after normalizing

svn path=/trunk/; revision=42417
2009-08-06 11:01:44 +00:00
Timo Kreuzer
a66ba8f68a Change license of my crt time code to LGPL, this is a minimum requirement to be usable by mingw.
svn path=/branches/ros-amd64-bringup/; revision=42414
2009-08-06 01:26:50 +00:00
Gregor Schneider
de5d448389 -Deactivate _invalid_parameter for now, depends on the strsafe crt implementation also in AMD64 branch
-Fix the weekday offset in gmtime
-Offset the year in *ctime by 1900, fix obvious typos
-Set structure packing to char level: without it the 26 character array is 32 characters wide and the string can't be constructed properly because of alignment characters in between (shouldn't be a problem when _UNICODE is defined)
-Test results: awesome, will be integrated soon

svn path=/trunk/; revision=42413
2009-08-06 00:26:23 +00:00
Stefan Ginsberg
2591c586a2 - Fix msvc build of win32k -- reported by Amine.
svn path=/trunk/; revision=42412
2009-08-05 22:01:21 +00:00
Gregor Schneider
8b24ebb671 -Import tkreuzer's time implementation from AMD64 branch
svn path=/trunk/; revision=42411
2009-08-05 19:30:37 +00:00
Christoph von Wittich
0c4008a938 brouser -> browser
svn path=/trunk/; revision=42410
2009-08-05 19:19:52 +00:00
Gregor Schneider
cb0fe726e8 -Add a crt regression test suite, extending the msvcrt winetests
-iofunc tests were used to verify r42382, added another one that tests swprintf double conversion (roscalc issue)
-time tests crash with the current crt implementation

svn path=/trunk/; revision=42408
2009-08-05 17:13:12 +00:00
Stefan Ginsberg
c9c4cbdc8e - Fix release build broken in 42400
svn path=/trunk/; revision=42407
2009-08-05 15:00:30 +00:00
Cameron Gutman
027a914d20 - Fix a bug in TDI_TRANSPORT_ADDRESS_FILE handling
- Remove some dead code

svn path=/trunk/; revision=42404
2009-08-05 07:52:15 +00:00
Cameron Gutman
2ca9ad54c6 - Correct the loopback adapter's address mask and broadcast address
svn path=/trunk/; revision=42403
2009-08-05 03:25:27 +00:00
Gregor Schneider
282b5c28f5 asctime/ctime: Check for too low input time, fixes one msvcrt time winetest
svn path=/trunk/; revision=42402
2009-08-05 02:06:25 +00:00
Gregor Schneider
0e0ee67a1a -_ecvt really uses a static buffer for return values
-Handle memory allocation failure

svn path=/trunk/; revision=42401
2009-08-05 02:02:25 +00:00
Cameron Gutman
313b147b5f - Partial rewrite of recursive mutex code
- Makes the recursive mutex faster and smaller
 - Fixes several unprotected accesses to recursive mutex

svn path=/trunk/; revision=42400
2009-08-04 23:51:39 +00:00
Cameron Gutman
083150d2cd - Add missing locking to DeallocatePort
svn path=/trunk/; revision=42399
2009-08-04 23:35:50 +00:00
Gregor Schneider
914b6fa743 Fix formatting
svn path=/trunk/; revision=42398
2009-08-04 23:32:38 +00:00
Johannes Anderwald
4703287161 - Implement KsMergeAutomationTables
svn path=/trunk/; revision=42397
2009-08-04 23:30:39 +00:00
Johannes Anderwald
fb559b8ef2 - Add KsRemoveItemFromObjectBag prototype
svn path=/trunk/; revision=42396
2009-08-04 23:30:09 +00:00
Timo Kreuzer
8721e16aef Leftover from r42394, gendib, too
svn path=/trunk/; revision=42395
2009-08-04 22:51:55 +00:00
Timo Kreuzer
ab4e8492d0 Patch by Amine Khaldi: Get rid of XlatePatternToDest in BLTINFO and in the DIB code.
svn path=/trunk/; revision=42394
2009-08-04 22:19:24 +00:00
Timo Kreuzer
e66c3e1ea4 Set pulXlate to aulXlate when freeing the allocated buffer to prevent double frees.
svn path=/trunk/; revision=42393
2009-08-04 21:31:34 +00:00
Timo Kreuzer
351632de29 XLATEOBJ rewrite.
The new XLATEOBJ is not allocated from paged pool anymore, but instead allocated on the stack and Initialized. Only when we habe more than a color table with more than 6 entries, we need to allocate an additional buffer. The new interface: EXLATEOBJ_vInitialize is the main init function. It takes a source and destination palette and back and fore colors for monochome surfaces. EXLATEOBJ_vInitXlateFromDCs
takes the source and dest DC and is for color translation between 2 surfaces represented by 2 DCs. EXLATEOBJ_vInitBrushXlate initializes an XLATEOBJ for a pattern brush. Finally EXLATEOBJ_vCleanup needs to be called when the XLATEOBJ is not needed anymore. Implement individual iXlate functions for certain cases and store a function pointer in the EXLATEOBJ structure for quick access.
Change the usage of the PALETTE.Mode member to be a flag instead of an enum, add usage of PAL_MONOCHOME, PAL_RGB16_555 and PAL_RGB16_565. Add gpalMono, which *should* be used as palette for 1bpp DDBs. Currently there's a hack in the XLATEOBJ init code, to hack around the fact that this is missing. Fix the Hatch brush patterns, as they were inverted. Implement PALETTE_ulGetNearestBitFieldsIndex and PALETTE_ulGetNearestIndex. Get rid of the XLATEOBJ for the mouse pointer instead realize the pointer before usage.
Get rid of logicalToSystem PALETTE member. NtGdiGetDIBitsInternal: Don't create a DIBBrush from the BITMAPINFO, when pvBits is NULL, as the function might be uninitualized. This fixes a crash of gdi_regtest. The whole function is quite ugly and needs to be rewritten (like probably the rest of the DIB code). This fixes the problem of artifacts in the selected desktop icons and some color problems.

svn path=/trunk/; revision=42391
2009-08-04 20:37:10 +00:00
Stefan Ginsberg
ba959a4eaa - Make kernel build again after __STDC__ change in 42369
svn path=/trunk/; revision=42390
2009-08-04 19:05:29 +00:00
Cameron Gutman
7bd9b42040 - Hardcode the return value of OID_GEN_HARDWARE_STATUS again due to media detection issues on certain pcnet adapters (such as vmware's emulated pcnet adapter)
svn path=/trunk/; revision=42389
2009-08-04 19:04:08 +00:00
Dmitry Chapyshev
2669a0a58d - Add "ReactOS Application Manager". This program is replacement "Download !" and appwiz.cpl.
svn path=/trunk/; revision=42388
2009-08-04 19:02:56 +00:00
Cameron Gutman
77fee2514d - Finally get IRP_MJ_CLOSE working properly
- Remove handling of IRP_MJ_CLEANUP and move the code to the DispatchClose routine
 - Remove the hack (holding an extra reference and not closing the handle) which hid these bugs
 - Fixes some memory and handle leaks too

svn path=/trunk/; revision=42387
2009-08-04 18:56:56 +00:00
Stefan Ginsberg
50e193b557 - Follow up to 41644: Get rid of the Wine headers using include_next as the definitions are now in the PSDK, wrapped under _WINE. Also define _WINE for the modules using those types.
- Move MCI_OPEN_DRIVER and MCI_CLOSE_DRIVER to mmddk.h as this is where they belong. Also move them out of the _WINE guard as those defines are present in the official headers.
- Add GetDriverFlags to mmsystem.h (missed this one in 41644).
- Most Wine code now compiles fine in MSVC.
- Wrap include_next in crt/float.h under a __GNUC__ guard -- not quite correct as the included float.h defines some stuff that should be in the "real" float.h.
- winnt.h: Remove duplicated LANG* defines that are already defined there and present in the official headers. Remove the _WINE guard from the rest as we may want to provide translations for those languages too.

svn path=/trunk/; revision=42386
2009-08-04 18:34:06 +00:00
Dmitry Chapyshev
353932e6da - Sync FreeLibrary with Wine. Fixes an exception at installation Firefox 3.5.x
svn path=/trunk/; revision=42385
2009-08-04 16:43:37 +00:00
Cameron Gutman
73fed81949 - Add a debug print
svn path=/trunk/; revision=42384
2009-08-04 16:22:12 +00:00
Gregor Schneider
f9ae6c7786 _ecvt:
- Rewrite the function, getting rid of alloca and unneeded code parts
- Relies on working sprintf, especially allows to detect the decimal point position independent of wanted precision
- Fixes all msvcrt printf winetests

svn path=/trunk/; revision=42383
2009-08-04 15:17:00 +00:00
Gregor Schneider
a08bde0eb5 sprintf:
- Implement higher precision exponent selection, checked against ecvt test cases to match wanted behavior
- msvcrt printf winetests up by ~10 because current ecvt relies on non-correct behavior
- Cleanup unneeded checks, wrong variable usages, add new header

svn path=/trunk/; revision=42382
2009-08-04 15:09:47 +00:00
Stefan Ginsberg
a1c98e143e - Remove asm-optimized versions of RtlRandom and RtlUniform -- there is *no* reason to use hand-optimized assembly for simple routines like these -- let the compiler do its job, please. Also, we compiled random.c *and* random_asm.S, meaning we duplicated the functions -- the compiler didn't detect this and silently used the C versions.
- Don't forward RtlRandomEx to RtlRandom in ntdll -- RtlRandomEx should use a different algorithm (but is simply a copy of RtlRandom right now).
- Revert RtlUniform back to the "slow" version -- let the compiler do its job instead of obfuscating code for a miniscule speed gain.

svn path=/trunk/; revision=42378
2009-08-04 11:22:50 +00:00
Aleksey Bragin
d2ab670235 - Add PsGetProcessInheritedFromUniqueProcessId declaration to NDK.
svn path=/trunk/; revision=42376
2009-08-03 21:01:48 +00:00
Cameron Gutman
1b403e9be7 Broadcast fixes
- Treat 255.255.255.255 as an undefined address
 - Choose the first interface when sending a broadcast packet (fixes failing with STATUS_NETWORK_UNREACHABLE when trying to send a broadcast packet)
 - Fix a broadcast address check so 255.255.255.255 will also pass (fixes sending queued broadcast packets)
 - Now a broadcast packet can be successfully sent from an interface with a valid IP address (previously they could only be sent when the interface didn't have an NCE entry)

svn path=/trunk/; revision=42375
2009-08-03 20:10:47 +00:00
Stefan Ginsberg
99d9c85c54 - Cleanup from 42219 -- remove superfluous return statement
svn path=/trunk/; revision=42374
2009-08-03 20:00:58 +00:00
Johannes Anderwald
1feebad9c0 - Add swenum.h (written from scratch)
svn path=/trunk/; revision=42373
2009-08-03 19:41:56 +00:00
Cameron Gutman
861fa72645 - Fix some cleanup vs. close confusion
- Check if the search context address is unspecified

svn path=/trunk/; revision=42372
2009-08-03 19:34:51 +00:00
Stefan Ginsberg
25c8a63177 - Minisync of gdiplus to fix a C4717 warning
svn path=/trunk/; revision=42371
2009-08-03 19:27:41 +00:00
Stefan Ginsberg
95cfd1d8da - mingw: __builtin_return_address -> _ReturnAddress, __builtin_frame_address -> _AddressOfReturnAddress
- ReactOS-generic.rbuild: Define __STDC__ for MSVC to fix some code depending on it (not using /Za as it breaks other code)

svn path=/trunk/; revision=42369
2009-08-03 18:02:07 +00:00
Stefan Ginsberg
f32da36427 - Err, fix build of DxHalTest
svn path=/trunk/; revision=42368
2009-08-03 17:40:40 +00:00
Stefan Ginsberg
bab8a60b46 - Make symdump and ctm msvc-aware
svn path=/trunk/; revision=42367
2009-08-03 17:08:45 +00:00
Stefan Ginsberg
c9e1afaeda - Remove WIP comment -- the fix is correct
svn path=/trunk/; revision=42366
2009-08-03 17:08:17 +00:00
Stefan Ginsberg
c71617e216 - Fix some msvc issues in rostests
svn path=/trunk/; revision=42365
2009-08-03 16:59:43 +00:00
Gregor Schneider
771b93f448 Use ALL_X macros in fstat, fixes one msvcrt file winetest
svn path=/trunk/; revision=42364
2009-08-03 16:57:20 +00:00
Gregor Schneider
9d8f60cf81 - Fix mbslwr: increment pointer in both cases (prevents infinite loops)
- Check for null character pointers, apply somewhat readable formatting
- Add some useful header information
See issue #4755 for more details.

svn path=/trunk/; revision=42363
2009-08-03 16:15:40 +00:00
Stefan Ginsberg
7aa73a6110 - strmini.h: Include windef.h so CDECL gets defined for msvc version of DEFINE_GUIDEX in ks.h
- Fix misc msvc issues in paint, setup, mmsys and mmebuddy
- Simplify the way kernel32 is built, reverting the "test" from 14241

svn path=/trunk/; revision=42362
2009-08-03 13:46:37 +00:00
Cameron Gutman
5e1ea71af7 - Revert r42358 due to what seems to be issues handling cleanup IRPs
svn path=/trunk/; revision=42360
2009-08-03 07:07:21 +00:00
Cameron Gutman
268d0a868c - Fix a typo
svn path=/trunk/; revision=42359
2009-08-03 06:57:21 +00:00
Cameron Gutman
aee54b26cf - Check if the handle is valid before closing it
- Remove (unused) TdiCloseDevice
 - Don't reference the Connection/Address File object twice (it is already referenced in TdiOpenDevice)

svn path=/trunk/; revision=42358
2009-08-03 03:41:34 +00:00
Timo Kreuzer
7d6218e65b More gdi xlate tests.
svn path=/trunk/; revision=42357
2009-08-03 02:27:08 +00:00
Cameron Gutman
3ced893fd0 - Keep waiting for a reply if we get one that is not ours or invalid
- Make sure the packet we got is from our target otherwise discard it

svn path=/trunk/; revision=42356
2009-08-03 02:15:17 +00:00
Cameron Gutman
b85fb3bd9f - Don't hold the spin lock when calling the request completion handler
svn path=/trunk/; revision=42355
2009-08-03 00:23:55 +00:00
Cameron Gutman
e975dfead9 - Copy the datagram data to all matching receive requests instead of just the first one we find
- Fix (completely broken) datagram truncation

svn path=/trunk/; revision=42354
2009-08-02 23:17:39 +00:00
Timo Kreuzer
341886a1c1 asm version of DIB_32BPP_ColorFill:
- Add frame pointer
- Get rid of algin_draw, 32bpp surfaces must be DWORD aligned
- Optimize the loop
- Add comments

svn path=/trunk/; revision=42353
2009-08-02 22:31:29 +00:00
Dmitry Gorbachev
8876d8092b Remove r42305 hack, preserve racial purity of KiSystemStartupReal.
svn path=/trunk/; revision=42352
2009-08-02 21:27:26 +00:00
Dmitry Gorbachev
ba74c030d2 Add a new hack.
svn path=/trunk/; revision=42351
2009-08-02 21:27:01 +00:00
Dmitry Gorbachev
5da0923cf0 Love Nystrom (=lovenystrom=at=hotmail=dot=com=), bug #4727
- Change some 'suspiciously looking' code in bootvid.dll.
- BOOTCHAR_HEIGHT: a new macro to use instead of a plain integer.
- CHAR_GEN_UPSIDE_DOWN: define it for upside down font data.

svn path=/trunk/; revision=42350
2009-08-02 21:26:05 +00:00
Stefan Ginsberg
f78dc5c1e5 - Wooops, fix dxg and dxapi build after 42346.
svn path=/trunk/; revision=42349
2009-08-02 21:04:13 +00:00
Stefan Ginsberg
5fcfaf2e11 - probe.h: "NTOSKRNL unfortunately doesn't export RtlRaiseStatus!" -- no, but it does export ExRaiseStatus, so use it instead from win32k instead of "W32kRaiseStatus". Also use ExRaiseAccessViolation instead of RtlRaiseStatus(STATUS_ACCESS_VIOLATION) to save some space.
- ddraw.h: Don't check if WINNT is defined, our winnt.h defines _WINNT_H. Also fix the way CO_E_NOTINITIALIZED is defined.
- Define NT_BUILD_ENVIRONMENT in win32k so the define in ddraw.h doesn't conflict with winerror.h. Not sure if this is correct, but our headers are a mess.
- Add a hack to disable C4276 (caused by napi.h) until a more proper fix is devised.
- Win32K now fully compiles in MSVC.

svn path=/trunk/; revision=42346
2009-08-02 20:35:19 +00:00
Jeffrey Morlan
ee2e05e18d ReadFile: When reading from a console handle with processed input mode enabled, simulate EOF if the first character read is ^Z (Bug 4745)
svn path=/trunk/; revision=42345
2009-08-02 18:56:05 +00:00
Johannes Anderwald
2d8cd02bb5 [PORTCLS]
- Fix lots of COM object leaks
- IPortWaveCyclic & IPortTopology drivers now shutdown cleanly
- Implement freeing of all registered physical connections and release of the registered power management interface
[SYSAUDIO]
- Close handles to audio filters


svn path=/trunk/; revision=42344
2009-08-02 18:20:39 +00:00
Stefan Ginsberg
93109445ba - npapi.h: Correct definitions of function pointer prototypes.
- ntifs.h & cmdata.h : Don't use array size of 0. Fixes C4200.
- wdm.h: Correct definition of 64-bit SLIST_HEADER. Add explicit casts to avoid /W4 warnings in RtlEnlargedUnsignedDivide.
- winddk.h: Add MSVC intrinsic __readfsbyte for KeGetCurrentProcessorNumber. Misc fixes.
- Fix various msvc issues in cmd, setupapi, usetup, win32csr, winlogon, msafd, ws2_32 and ext2lib, most notably:
  - cmd & doskey: Don't use fishy gcc extension to allocate variable-sized arrays from the stack. Use the heap instead.
- Disable warning C4733 for mingw_main too (was only done for mingw_wmain previously).
- advapi32: Pass the correct handles to TRACE -- spotted by MSVC.
- Set the specified register in ecx in MSVC versions of Ke386Wrmsr and Ke386Rdmsr instead of reading from/writing to a random MSR. Yay /W4.

svn path=/trunk/; revision=42342
2009-08-02 17:38:27 +00:00
Gregor Schneider
3283ffdef8 Cleanup in win32k/dib:
- Replace old headers with new ones, programmers added according to svn blame info
- Apply consistent 2pt indentation because of the many indentation levels in this code; getting rid of a tab and 2/3/4pt mixture 
- Rename universal StretchBlt file to reflect content

svn path=/trunk/; revision=42339
2009-08-02 15:49:17 +00:00
Jeffrey Morlan
54817d5b14 Fix many incompatibilities in DIR switch parsing, including those noted in Bug 4744.
svn path=/trunk/; revision=42338
2009-08-02 15:16:03 +00:00
Johannes Anderwald
3871f9be2f - Implement KsStreamPointerDelete, KsStreamPointerScheduleTimeout, KsStreamPointerCancelTimeout, KsPinGetFirstCloneStreamPointer, KsStreamPointerGetNextClone
- Partly Implement IKsPin_DispatchDeviceIoControl, IKsPin_Close

svn path=/trunk/; revision=42337
2009-08-02 14:40:15 +00:00
Johannes Anderwald
aae0987d13 [KS]
- Acquire Spinlock at dpc level
- Release cancel spinlock at correct level
[PORTCLS]
- Check if current partially processed irp has been cancelled and complete it in that case
- Silence debug flood

svn path=/trunk/; revision=42335
2009-08-02 12:38:08 +00:00
Johannes Anderwald
9061b8ee40 [KS]
- Implement KsQueryInformationFile
- Properly implement KsStreamIo
- Fix a desastreous bug in KsRemoveIrpFromCancelableQueue
- Implement KsMoveIrpsOnCancelableQueue
[PORTCLS]
- Switch portcls to use the provided ks irp queue function instead of the homegrown IRP_MAPPING routines. Irp queueing is now faster and consumes less memory
- Return an allocated silence buffer when there are no mappings available
- HACK-Remove: Don't pre-complete any audio buffers now anymore. If you experience audio stuttering, let me know
[SYSAUDIO, PORTCLS, KMIXER]
- FastRead / FastWrite routines must store their return values in the status block as KsStreamIo now checks these

svn path=/trunk/; revision=42334
2009-08-02 11:40:38 +00:00
Hervé Poussineau
47f744578f [rbuild] Copy files to livecd output directory only if they have changed
svn path=/trunk/; revision=42330
2009-08-02 08:06:17 +00:00
Hervé Poussineau
85161ab551 [rbuild] Fix wrapping of long lines in generated makefile
svn path=/trunk/; revision=42329
2009-08-02 08:06:04 +00:00
Timo Kreuzer
b779385488 Add regtests/gdi
Tests for gdi, written in winetest style so it can be easily plugged into sysreg. Currently containing some xlate tests. More to come.

svn path=/trunk/; revision=42328
2009-08-02 00:26:51 +00:00
Stefan Ginsberg
478b2c3e4e - Properly define dummy unions/structs for MSVC too.
svn path=/trunk/; revision=42327
2009-08-01 19:10:16 +00:00
Gregor Schneider
1221835ea5 FloodFill:
- Remove unneeded casts when setting the initial flood start, add debug print for flood region location (silenced)
- Improve memory guards, free memory on error

svn path=/trunk/; revision=42324
2009-08-01 17:58:28 +00:00
Gregor Schneider
c152d5480d FloodFill:
-Get rid of global variables for flood control
-Translate the provided color to the surface, not the other way around (improves speed)
-Rename the function to reflect the functionality
-Add comments on how to implement support for hatched brushes and non-standard surfaces
-Thanks to tkreuzer for feedback

svn path=/trunk/; revision=42323
2009-08-01 14:39:40 +00:00
Gregor Schneider
f8ffccf7de GetWindowLongPtr returns a LONG_PTR, so be it
svn path=/trunk/; revision=42322
2009-08-01 11:32:48 +00:00
Gregor Schneider
7163d097d0 - Handle WM_SETREDRAW messages differently in the DefWndProc, ported from current Wine
- Fixes mIRC riched component regression, no more riched20 reverts for releases needed
See issue #4098 for more details.

svn path=/trunk/; revision=42321
2009-08-01 11:26:40 +00:00
Gregor Schneider
3002ba1042 Fix a typo in EngMovePointer
svn path=/trunk/; revision=42318
2009-07-31 19:55:16 +00:00
Stefan Ginsberg
e28ef8646f - ...mised this one
svn path=/trunk/; revision=42317
2009-07-31 18:40:19 +00:00
Gregor Schneider
04ae85ed31 Remove leftover debug print
svn path=/trunk/; revision=42316
2009-07-31 18:32:33 +00:00
Stefan Ginsberg
f037eef079 - Fix gdi32 build due to missing ";"
svn path=/trunk/; revision=42315
2009-07-31 18:30:37 +00:00
Stefan Ginsberg
a8889958e3 - delayimp.h: Use FORCEINLINE instead of static __inline__
- winbase.h: Make winbase.h usable by MSVC
- winuser.h: Add missing const specifiers to GetTabbedTextExtentA/W, TabbedTextOutA/W, ToAscii/Ex and ToUnicode/Ex
- Make gdi32, user32, beepmidi and csrss drmk build in msvc
- Fix most msvc issues in win32k -- a few remain
- Make ntoskrnl compile with /W1 again

svn path=/trunk/; revision=42314
2009-07-31 18:21:24 +00:00
Gregor Schneider
d5ec42ec61 - Use system wide caret width and height if one of those parameters is zero
- Ref: http://msdn.microsoft.com/en-us/library/ms648399(VS.85).aspx
- Allows to show the caret in riched20a components (Wordpad f.e.)
See issue #1559 for more details.

svn path=/trunk/; revision=42313
2009-07-31 17:11:21 +00:00
Dmitry Gorbachev
a180d74579 Fix _M_X86 -> _M_IX86.
svn path=/trunk/; revision=42312
2009-07-31 16:32:22 +00:00
Gregor Schneider
3e5f2f10f3 - Implement Floodfill: iterative four neighbors version
- Details for this algorithm are described in the comments
- Nice with the paint clone since the bucket fill tool works now

svn path=/trunk/; revision=42311
2009-07-31 15:41:09 +00:00
Johannes Anderwald
ace530421a - Partly Implement KsRegisterFilterWithNoKSPins
- Implement _KsEdit

svn path=/trunk/; revision=42310
2009-07-31 10:10:26 +00:00
Gregor Schneider
3f5c25c304 Don't try to delete non existing XLateObjects (NULL brushes return those for example)
svn path=/trunk/; revision=42309
2009-07-30 21:12:06 +00:00
Dmitry Gorbachev
cdd031231c - Fix a bug in GPF handler, do not hang in it.
- Initialize Esp field in TSS.

svn path=/trunk/; revision=42306
2009-07-30 17:54:21 +00:00
Dmitry Gorbachev
a640545b8b Add a hack in KiSystemStartupReal function until Better Times.
svn path=/trunk/; revision=42305
2009-07-30 17:54:01 +00:00
Johannes Anderwald
cd03260db2 - Partly Implement KsCacheMedium
- Implement KsHandleSizedListQuery
- Remove KsGetChildCreateParameter, it is not exported in NT 5.1 KS

svn path=/trunk/; revision=42303
2009-07-30 16:51:03 +00:00
Johannes Anderwald
974e0eca7e - Implement KsAcquireResetValue, KsCompletePendingRequest, KsAllocateExtraData
svn path=/trunk/; revision=42302
2009-07-30 14:20:13 +00:00
Johannes Anderwald
f8107d7dc9 - Implement KsFreeEventList, KsDisableEvent
svn path=/trunk/; revision=42298
2009-07-30 09:43:54 +00:00
Johannes Anderwald
9042c879ed - Implement KsAddEvent, KsDefaultAddEventHandler, KsPinAttachAndGate, KsPinAttachOrGate, KsPinGetAndGate
svn path=/trunk/; revision=42296
2009-07-30 07:31:41 +00:00
Johannes Anderwald
3aba36805e - Implement KsDeviceSetBusData, KsDeviceGetBusData, KsGetPinFromIrp
svn path=/trunk/; revision=42295
2009-07-30 06:29:24 +00:00
Johannes Anderwald
2b1eb860d8 - Add RtlConvertLongToLuid, RtlConvertUlongToLuid
svn path=/trunk/; revision=42294
2009-07-30 06:26:28 +00:00
James Tabor
f4eed04d0a - Fix Class ids.
svn path=/trunk/; revision=42293
2009-07-30 01:37:02 +00:00
Gregor Schneider
2f0c6dbb98 user32:
- Restructure and simplify CreateCursorFromData
- Call CreateIconFromResourceEx properly allowing it to create colored icons (although it doesn't care about that yet)
- Fix some comment typos
win32k:
- Don't just copy the pointer to an XLATEOBJ, copy instead. The caller will free it, EngSetPointerShape will do so too (causing either double-frees or memory write errors)

svn path=/trunk/; revision=42291
2009-07-29 18:28:11 +00:00
Johannes Anderwald
76ec995125 - Start Implementing IKsPin interface
- Increment PinInstanceCount when a pin has succcessfully been created
- Implement KsPinAcquireProcessingMutex, KsPinGetConnectedPinDeviceObject, KsPinGetConnectedFileObject, KsPinGetConnectedPinInterface, KsPinGetNextSiblingPin, KsPinGetParentFilter, KsPinRegisterFrameReturnCallback, KsPinRegisterHandshakeCallback, KsPinRegisterIrpCompletionCallback, KsPinRegisterPowerCallbacks, KsPinReleaseProcessingMutex
- Initialize pin dispatch table
- Add create items for allocator, clock, node create requests
- AVStream clients should now be able to instantiated pins, streaming not yet supported

svn path=/trunk/; revision=42283
2009-07-29 09:48:36 +00:00
Johannes Anderwald
c0e19ca77b - Add KsGetNextSibling, KsFreeObjectBag
svn path=/trunk/; revision=42282
2009-07-29 09:33:40 +00:00
Stefan Ginsberg
43f03aef8a - Fix 41969 -- the wrong flag got set, creating a broken, unusable debug object. Please make sure you know basic C before trying some clever optimization. Debuggers should now work again...
svn path=/trunk/; revision=42280
2009-07-28 21:48:49 +00:00
Johannes Anderwald
3bf37964b7 - Implement KsAcquireControl, KsReleaseControl
- Add create item for creation of pins and topology nodes
- Implement pin creation handler

svn path=/trunk/; revision=42279
2009-07-28 19:32:22 +00:00
Johannes Anderwald
52e5cc0ba2 - Copy Filter descriptor for each instantiated filter
- Implement KsFilterAddTopologyConnections, KsFilterCreatePinFactory

svn path=/trunk/; revision=42278
2009-07-28 18:38:13 +00:00
Johannes Anderwald
5372462044 - Implement KsFilterAcquireProcessingMutex, KsFilterReleaseProcessingMutex, KsFilterGetChildPinCount, KsFilterRegisterPowerCallbacks, KsGetFilterFromIrp
svn path=/trunk/; revision=42277
2009-07-28 17:01:36 +00:00
Johannes Anderwald
fc288c23fc - Add KsPinGetParentFilter prototype
svn path=/trunk/; revision=42276
2009-07-28 16:42:36 +00:00
Johannes Anderwald
64fa3b028f - Implement KsGetObjectFromFileObject, KsGetObjectFromFileObject, KsGetObjectTypeFromIrp, KsGetParent
- Create object bag for IKsFilter, IKsFilterFactory and IKsDevice

svn path=/trunk/; revision=42275
2009-07-28 16:18:05 +00:00
Johannes Anderwald
ca60ae56c0 - Implement KsGetObjectFromFileObject, KsGetObjectFromFileObject, KsGetObjectTypeFromIrp, KsGetParent
svn path=/trunk/; revision=42268
2009-07-28 13:52:57 +00:00
Johannes Anderwald
5e12a7edb1 - Implement KoDriverInitialize, KoDeviceInitialize
- Fix storing of device descriptor in KsInitializeDriver, KsAddDevice

svn path=/trunk/; revision=42264
2009-07-28 10:22:02 +00:00
Aleksey Bragin
88c914b528 - Fix a regression introduced in 40710, which caused all machine-specific memory regions to be concatenated into one big LoaderSpecialMemory. Restore previous behaviour by properly matching Arc and bootloader memory types.
svn path=/trunk/; revision=42263
2009-07-28 10:00:58 +00:00
Ged Murphy
7de1640e35 winsock2.h should come before windows.h
svn path=/trunk/; revision=42257
2009-07-27 19:42:05 +00:00
Johannes Anderwald
dd0ab576f9 - Implement KsReferenceBusObject, KsReferenceSoftwareBusObject, KsDereferenceSoftwareBusObject, KsDereferenceBusObject
svn path=/trunk/; revision=42256
2009-07-27 18:40:50 +00:00
Johannes Anderwald
b3ea37e803 + portcls
+ ks
- ws2help_new

svn path=/trunk/; revision=42255
2009-07-27 18:18:20 +00:00
Johannes Anderwald
aaf60514ff - Remove DriverEntry as ks is kernel mode dll
- Implement KsGetImageNameAndResourceId, KsMapModuleName

svn path=/trunk/; revision=42254
2009-07-27 16:17:24 +00:00
ReactOS Portable Systems Group
1cc5142060 - Remove dead (uncalled) function.
svn path=/trunk/; revision=42253
2009-07-27 02:23:25 +00:00
ReactOS Portable Systems Group
3e04cabe4e - Create a double-mapping PTE for the shared user data region and fault it in whenever a process touches that address.
- Remove the old hack which used the PCR's page frame number to create a fake PTE each time to reference it, basing on the fact that the shared user data region was on the same page as the PCR on certain architectures.

svn path=/trunk/; revision=42252
2009-07-27 02:13:19 +00:00
ReactOS Portable Systems Group
059da34e93 - Create \dev\physmem section during section initialization, not later.
- Setup SharedUserData settings during Phase 0, not Phase 1. Fixes an old bug where the Inbv driver assumed ReactOS was in "server mode" simply because the default SharedUserData->NtProductType was "0" (which is an invalid product type, but it's != NtProductTypeNt).
  - Also fixed it such that this reports NtProductServer, which is what ReactOS reports to be (Windows 2003 Server SP 1).
- Initialize the modified page writer and balancer thread in phase 1, not phase 2.
  - Phase 2 should make the executive pageable, but I don't think this is supported yet...


svn path=/trunk/; revision=42251
2009-07-27 00:52:44 +00:00
ReactOS Portable Systems Group
e754e12bd3 - Fix a ridiculous copy-paste-error-while-writing-the-commit-log error. Sorry for breaking the build!
svn path=/trunk/; revision=42250
2009-07-27 00:17:38 +00:00
ReactOS Portable Systems Group
5899e14bd1 - Delete the blaoted, overweight and slow nonpaged pool implementation.
- Plug-in support to use the ARM nonpaged pool instead.
- This patch has been tested for over 2 months and all known regressions were fixed.
  - Thanks to Aleksey Bragin for providing a pool regression suite.
  - Thanks to Aleksey Bragin for providing initial implementation details and code from older attempts.
  - Thanks to http://uninformed.org/?v=4&a=2&t=txt and http://www.dfrws.org/2008/proceedings/p58-schuster_pres.pdf for allocation strategies.


svn path=/trunk/; revision=42249
2009-07-27 00:14:56 +00:00
ReactOS Portable Systems Group
1eba02fc2f - Do not print out ReactOS nonpaged pool VA address range anymore, since it will be deprecated.
svn path=/trunk/; revision=42248
2009-07-27 00:11:39 +00:00
ReactOS Portable Systems Group
360720bdb6 - The old nonpaged pool statistic functions (TAB+xxx) in KDBG are incompatible with newer nonpaged pool implementation -- remove them.
- The NtQuerySystemInformation API's pool information levels provide the same information, when implemented properly.


svn path=/trunk/; revision=42247
2009-07-27 00:10:37 +00:00
ReactOS Portable Systems Group
8257a252cb - DebugPool implementation is not compatible with newer nonpaged pool algorithms, so remove support for nonpaged pool debugging.
- Special pool implementation will restore this functionality.

svn path=/trunk/; revision=42246
2009-07-27 00:09:09 +00:00
ReactOS Portable Systems Group
a6757c9637 - Implement the algorithms for pool allocation and de-allocation:
- Only tested/works with nonpaged pool for now.
  - No support for session pool or special pool.
  - No support for pool tagging.
  - No support for accounting (free/available pages, etc).
  - No optimizations other than your average combine-with-previous-free and combine-with-next-free mechanisms to avoid fragmentation.
  - No support for debugging.
  - No consistency/validation checks.
  - Heavily commented for the inquiring mind.
  - Thread/MP safe.
- Not used yet.


svn path=/trunk/; revision=42245
2009-07-27 00:05:45 +00:00
Timo Kreuzer
250d69afc8 Sync to trunk head (r42241)
svn path=/branches/ros-amd64-bringup/; revision=42244
2009-07-26 23:21:27 +00:00
Timo Kreuzer
e917c6e96d Some fixes for CLIENTINFO, based on symbol files
svn path=/trunk/; revision=42243
2009-07-26 22:57:05 +00:00
Timo Kreuzer
250737d475 [rbuild] Implement delay import support for gcc in rbuild.
As soon as you declare a library import with 
<library delayimport="true"> you will link to the autogenerated delayimportlib. This will currenlty not work without a patched version of dlltool.

svn path=/trunk/; revision=42242
2009-07-26 22:36:55 +00:00
Timo Kreuzer
3f10e1dc73 Fix 64bit compilation issues.
svn path=/trunk/; revision=42241
2009-07-26 22:34:03 +00:00
Timo Kreuzer
7e526ac7de Hey Arch, thanks for breaking other architectures...
svn path=/trunk/; revision=42240
2009-07-26 21:46:21 +00:00
Timo Kreuzer
e17b565fc0 Add -Wno-format to dmusic
svn path=/branches/ros-amd64-bringup/; revision=42239
2009-07-26 20:35:05 +00:00
Timo Kreuzer
f4a678a29a Fix some 64 bit isuues.
svn path=/branches/ros-amd64-bringup/; revision=42238
2009-07-26 20:31:23 +00:00
ReactOS Portable Systems Group
6182f013fe - Initialize MmLowestPhysicalPage to -1, otherwise setting this value will never work properly since we'll never find a page lower than 0 (the default laoder-initialized value).
- Fixed by Stef.


svn path=/trunk/; revision=42237
2009-07-26 19:44:27 +00:00
James Tabor
c8b2a78d5b - At a minimum set the desktop to global class.
svn path=/trunk/; revision=42236
2009-07-26 16:57:34 +00:00
Stefan Ginsberg
25aa6b6a41 - Revert winbase.h interlocked intrinsic change for now *sigh*
svn path=/trunk/; revision=42235
2009-07-26 16:18:56 +00:00
James Tabor
e0b7b058c3 - [Win32k] More Class work. Moved to use thread and process information structures.
- Tested wine, Firefox 1.15.xx and AbiWord 2.6.8.

svn path=/trunk/; revision=42234
2009-07-26 16:17:50 +00:00
Stefan Ginsberg
c43cc84996 - Misc fixes for msvc:
- C89 compliance for "dbgprint"
- Fix more calling convention declarations in the DDK and gdi32
- Define noreturn attribute for crt's abort compatibly
- Fix some of the mess in psdk's intrinsics -- this needs some major clean up.
- Define DbgPrintEx the same way in debug.h as in NDK and DDK
- UUID doesn't need Wine-specific types -- include standard PSDK headers.

svn path=/trunk/; revision=42233
2009-07-26 15:36:35 +00:00
Dmitry Chapyshev
92a18fff94 - Use documented structure instead array
- Add some defines

svn path=/trunk/; revision=42232
2009-07-26 13:16:19 +00:00
James Tabor
b163f7f34a - Fixed event code. Remove junk too.
svn path=/trunk/; revision=42230
2009-07-26 12:27:15 +00:00
Dmitry Gorbachev
1632e8b1db Silence a warning.
svn path=/trunk/; revision=42229
2009-07-26 09:55:46 +00:00
Dmitry Gorbachev
015656ff6d Silence a warning.
svn path=/trunk/; revision=42228
2009-07-26 09:52:27 +00:00
Dmitry Gorbachev
79b4bf14f7 Silence a warning.
svn path=/trunk/; revision=42227
2009-07-26 09:52:00 +00:00
ReactOS Portable Systems Group
c417ef7e62 - Get rid of the concept and tracking of "mapped pages". The MapCount was never checked anywhere in terms of page accounting -- only the reference count is.
- Fix the issue with the system attempting to map page 0 into hyperspace.

svn path=/trunk/; revision=42226
2009-07-26 08:20:29 +00:00
Cameron Gutman
698ff57ea6 - Begin using ws2help_new
- I have tested this with various applications in ROS
 - Part 2 of 2

svn path=/trunk/; revision=42225
2009-07-26 06:00:32 +00:00
Cameron Gutman
a619244941 - Remove our old ws2help in preparation for the transition to ws2help_new
- This will not build
 - Part 1 of 2

svn path=/trunk/; revision=42224
2009-07-26 05:51:30 +00:00
James Tabor
2c0294638d - [Win32k] Moving forward and replace some of the old header types with the new ones. This will continue and start the win32k object manager rewrite. Finding more bugs and this is still a work in progress. Run across the C_ASSERT bug. I see someone else noticed it.
- Finished the user32 system class proc start-up.
- Tested wine, Firefox 1.15.xx and AbiWord 2.6.8.

svn path=/trunk/; revision=42223
2009-07-26 01:59:08 +00:00
Timo Kreuzer
c70b54758f Add hack for gnu ld like in mingw lib, as it uses _image_base__ insetad of __ImageBase
svn path=/trunk/; revision=42222
2009-07-26 00:22:57 +00:00
Stefan Ginsberg
31015fdb85 - Fix memory leak from r42218 ;0)
svn path=/trunk/; revision=42221
2009-07-25 22:19:45 +00:00
ReactOS Portable Systems Group
1093de04f2 - This is a HIGH RISK patch. It has been tested on multiple emulators and configurations but requires broader input.
- Implement several changes to PFN database management:
  - The PTEs for the PFN Database are now created by ARM3. Unlike the old code which create PTE for every page on the machine, ARM3 only creates PTEs to account for pages that should be in the PFN database.
  - A second related change is what "pages should be in the PFN database". Previously, reserved or otherwise non-existing (ie: holes) memory regions would get a PFN entry created and marked as "BIOS". This is wasteful and not compatible with Windows: there should not be PFN entries created at all.
    - So we removed BIOS PFN entries, and now only create PTEs for valid pages as listed in the physical memory ranges.
    - This allows machines with "holes" in their physical address space not to waste dozens of MBs of nonpaged pool
    - Also saves memory on regular machines too, since 1-4MB worth of memory will now not be in the DB anymore
  - To keep track of pages that are invalid/unknown/ignored, there is now a "PFN Bitmap". This bitmap has one bit set for each valid PFN in the database.
    - And so, MiGetPfnEntry now also validates that, if there is a PFN Bitmap, the requested PFN is actually present in the database.
  - This introduces a major functional change: device pages, reserved pages, and other BIOS pages cannot be referenced, shared, or managed in any meaningful way.
    - We have attempted to fix parts of the OS that depended on this, but there may still be bugs.
      - A known issue may be an assertion during reboot and/or shutdown in the hyperspace mapping function. It is currently safe to simply "cont" in the debugger a couple of times.
        - We are working on a fix.

svn path=/trunk/; revision=42220
2009-07-25 21:35:31 +00:00
Stefan Ginsberg
fba1aea89e - RamdiskWorkerThread: Don't return IoCompleteRequest as we return void (IoCompleteRequest returns void though), msvc doesn't like this.
- Fix calling convention declaration for scsi function prototypes 

svn path=/trunk/; revision=42219
2009-07-25 20:24:50 +00:00
Stefan Ginsberg
45934cfbe5 - Fix most freeldr compilation issues, most notably:
- Define structure packing correctly for msvc.
- Define Ke386EraseFlags for msvc too.
- Don't return a function returning void in a function returning void.
- VideoFadeIn: Don't rely on some fishy gcc extension for allocating memory from the stack -- just use the heap instead.
- Winldr remains

svn path=/trunk/; revision=42218
2009-07-25 20:17:23 +00:00
Cameron Gutman
849236d3ac - Make ipconfig /renew work even if we haven't got an address yet
- Fix several potential crashes
 - Fix an infinite loop caused by us sending a discover packet without adding a protocol first (this is exposed by releasing then renewing)
 - Fixes bug 4630

svn path=/trunk/; revision=42217
2009-07-25 19:51:54 +00:00
Stefan Ginsberg
f9f57c59fc - FIELD_OFFSET returns LONG, not LONG_PTR or size_t.
- Define TYPE_ALIGNMENT for msvc.
- Define DbgPrintEx the same way in NDK and DDK
- C_ASSERT is a typedef, so don't put it inside functions as msvc doesn't allow this.
- Kernel now *compiles* with RosBE + msvc _and_ our DDK. Linker errors from the ninth circle of hell remains.

svn path=/trunk/; revision=42216
2009-07-25 19:38:52 +00:00
Stefan Ginsberg
64f43cb6a5 - Fix a critical bug in ExAllocatePoolWithQuota spotted by msvc. Because of the current POOL_TAGGING mess in wdm.h, ExAllocatePoolWithQuotaTag is defined to ExAllocatePoolWithQuota, so when ExAllocatePoolWithQuota called the with-tag version, it ended up calling _itself_. Fix this by undefining the broken macro.
svn path=/trunk/; revision=42215
2009-07-25 16:53:25 +00:00
Dmitry Chapyshev
0f8b51f5ac - Add stubs for AppCleanup and videoThunk32
- Partially implement capCreateCaptureWindowW and capGetDriverDescriptionW

svn path=/trunk/; revision=42214
2009-07-25 15:57:18 +00:00
Stefan Ginsberg
50eda0f7b9 - Fix incorrect definition of ZwCreateDebugObject after revision 41969 -- spotted by BugBoy
svn path=/trunk/; revision=42213
2009-07-25 15:31:57 +00:00
Stefan Ginsberg
dd27bbdbb7 - Leftover 2 from 42210
svn path=/trunk/; revision=42212
2009-07-25 14:55:52 +00:00
Stefan Ginsberg
709b93538f - Leftover from previous commit
svn path=/trunk/; revision=42211
2009-07-25 14:54:31 +00:00
Stefan Ginsberg
bb2feeb63e - Fix most of the network stack for msvc (except tcpip and oskittcp)
- Fix calling convention definitions for ntdd8042.h
- Fix msfs' calling convention

svn path=/trunk/; revision=42210
2009-07-25 14:51:56 +00:00
Stefan Ginsberg
ee9bf7482b - Revert 42206 change to ddraw.h as it breaks dxapi
svn path=/trunk/; revision=42209
2009-07-25 14:32:06 +00:00
Stefan Ginsberg
d8d66829d7 - Make ks and portcls compile under msvc
svn path=/trunk/; revision=42208
2009-07-25 14:06:06 +00:00
Stefan Ginsberg
ac4633793f - Make most of the the video stack compile with msvc
svn path=/trunk/; revision=42206
2009-07-25 13:15:22 +00:00
Stefan Ginsberg
87b36d171a - Make mp HAL MSC compatible
svn path=/trunk/; revision=42205
2009-07-25 11:44:27 +00:00
Stefan Ginsberg
23abd61d3e - Fix some kernel MSC compilation issues:
- ShutdownThreadMain: Define SMP-only variables compatibly
- MmArmInitSystem: Define MiNonPagedPoolStart and MiNonPagedPoolLength externs compatibly
- KdbpCallMainLoop: Add VOID to parameter list

svn path=/trunk/; revision=42204
2009-07-25 11:43:48 +00:00
Aleksey Bragin
21777b7cab - Create a solid black brush for background color of a ConsoleWindowClass.
svn path=/trunk/; revision=42202
2009-07-25 10:24:41 +00:00
Dmitry Chapyshev
d86c7f9de6 - Implement capCreateCaptureWindowA and capGetDriverDescriptionA (based on Wine code)
svn path=/trunk/; revision=42198
2009-07-25 09:41:17 +00:00
Dmitry Chapyshev
3b72642a0a - Add avicap32 (stubs only)
- Add mfc42u.dll, msvbvm50.dll, msvbvm60.dll, msvcirt.dll optional entries to reactos.dff

svn path=/trunk/; revision=42197
2009-07-25 09:28:18 +00:00
Dmitry Gorbachev
b2085629b4 Do not fail when compiling with GCC 4.4.1
svn path=/trunk/; revision=42196
2009-07-25 09:24:30 +00:00
Dmitry Gorbachev
16aca3f92f Add / update Czech translations. Radek Liska. Bugs #4707 and #4708.
svn path=/trunk/; revision=42195
2009-07-25 09:18:52 +00:00
Dmitry Gorbachev
5687429f69 Undo part of r42190. Sorry.
svn path=/trunk/; revision=42194
2009-07-25 07:59:18 +00:00
Dmitry Gorbachev
6e31a0dd00 Fix some bugs, reported by GCC.
svn path=/trunk/; revision=42193
2009-07-25 07:42:15 +00:00
Dmitry Gorbachev
4deef99ee8 Silence GCC warnings.
svn path=/trunk/; revision=42192
2009-07-25 07:41:42 +00:00
Dmitry Gorbachev
1e3f2b9732 - Declare iswblank() in wctype.h, not isblank().
- Add iswblank() to wchar.h, too.

svn path=/trunk/; revision=42191
2009-07-25 07:41:14 +00:00
Dmitry Gorbachev
1c413906b2 Fix "misrepresented license in FreeLDR", Robert Millan (rmh.reactos at aybabtu.com), bug #4673.
svn path=/trunk/; revision=42190
2009-07-25 07:40:39 +00:00
Dmitry Gorbachev
759abadd3d Do not fail with 'l' type modifier. Bug #4438.
svn path=/trunk/; revision=42189
2009-07-25 07:40:35 +00:00
Cameron Gutman
adb1a3f3c8 ws2_32_new compatibility fixes
- Fix the rest of the code which was using errno instead of WSAGetLastError()
 - Remove some dead code

svn path=/trunk/; revision=42188
2009-07-25 02:28:11 +00:00
Cameron Gutman
daba4d6880 ws2_32_new compatibility fixes
- Use Sleep() to wait when we have no interfaces because select() will fail and return without waiting
 - Use WSAGetLastError() instead of errno

svn path=/trunk/; revision=42187
2009-07-25 02:01:13 +00:00
James Tabor
1871ebd28c - Removed unused ppi pointer.
svn path=/trunk/; revision=42186
2009-07-25 01:42:04 +00:00
James Tabor
3ac2563fbb - [Win32k] More work on classes. ReactOS seems to return the opposite WinProc and sometimes it is a CallProcData handle. This is confusing the class wine tests. The last thing it should do is return CallProcData handle after attempting to find the right proc. Fixed message class bits. Moved CallProc to CallProcData and updated related code. Started alternate function to replace NtUserGetClassLong and NtUserGetWindowLong.
- Tested wine, Firefox 1.15.xx and AbiWord 2.6.8.

svn path=/trunk/; revision=42185
2009-07-25 00:41:22 +00:00
Cameron Gutman
f9fe2ff6a8 - Add support for adapters added after DHCP is started
- Automatically request an IP address after an interface becomes ready (needed for DHCP support on WLAN adapters)

svn path=/trunk/; revision=42182
2009-07-24 21:06:20 +00:00
Cameron Gutman
15a5343ec1 - Implement OID_GEN_HARDWARE_STATUS
svn path=/trunk/; revision=42180
2009-07-24 20:49:39 +00:00
Dmitry Gorbachev
3c44feca52 - Turn a macro into an inline function to avoid a warning.
- Remove a stray acute accent.

svn path=/trunk/; revision=42179
2009-07-24 19:52:05 +00:00
Stefan Ginsberg
e603692f33 - Leftover from 42176
svn path=/trunk/; revision=42178
2009-07-24 19:39:07 +00:00
Stefan Ginsberg
dd85cb77ca - Kill off diskdump too
svn path=/trunk/; revision=42177
2009-07-24 19:09:39 +00:00
Stefan Ginsberg
00e30f7010 - Get rid of ccros.h, deprecated by revision 42175
svn path=/trunk/; revision=42176
2009-07-24 17:35:28 +00:00
ReactOS Portable Systems Group
ab184fab15 - Remove deprecated/old/buggy/unused code.
- Make MxGetNextPage return the lowest free physical page, not the highest.
  - This way we fragment the address space less.
  - Also makes calculation of "forgotten" pages when we build the PFN database earlier.
- Remove MmAllocEarlyPage and use MxGetNextPage instead.

svn path=/trunk/; revision=42175
2009-07-24 15:49:27 +00:00
Timo Kreuzer
ce0ed78587 - move delayimp.h to psdk
svn path=/trunk/; revision=42174
2009-07-24 11:29:54 +00:00
Dmitry Gorbachev
f9341cafca Add missing license.
svn path=/trunk/; revision=42173
2009-07-24 10:52:49 +00:00
Timo Kreuzer
07203a50c1 [delayimp]
- move IndexFromPImgThunkData and PFromRva to delayimp.h
- use __ImageBase insetad of _image_base__
- fix include guard
- RVA is a DWORD, not a PVOID

svn path=/trunk/; revision=42172
2009-07-24 10:25:53 +00:00
Ged Murphy
9e27cfbe88 Add a missing mockup image
svn path=/trunk/; revision=42171
2009-07-24 07:44:51 +00:00
Timo Kreuzer
7fa58c4d87 Add license header (LGPL)
svn path=/trunk/; revision=42170
2009-07-24 04:30:09 +00:00
Timo Kreuzer
ceff19824f Implement delayimp lib
This library will allow to delay import from dlls, if used together with the corresponding delayimport lib for that dll. An initial patch for dlltool can be found in bug #4730.
Based on Matt Pietrek's "Under the Hood" article: http://www.microsoft.com/msj/1298/hood/hood1298.aspx and msdn documentation.

svn path=/trunk/; revision=42169
2009-07-24 04:24:36 +00:00
James Tabor
9fd89d0e43 - [Win32k] More work on classes. Fixed SEH abuse and implemented NtUserGetWOWClass. Minor bug fixes and modifications that help function compatibility based on wine.
- Tested wine (some improvements and losses): Msi seems to be fixed, did not test before these changes. My guess is Jeffrey Morlan fixed it in 42163, so a Big Thank You!!! Tested Firefox 1.15.xx and AbiWord 2.6.8.

svn path=/trunk/; revision=42168
2009-07-24 01:03:11 +00:00
Ged Murphy
1a67e2e700 I always forget about RosBE ....
svn path=/trunk/; revision=42167
2009-07-23 22:11:06 +00:00
Johannes Anderwald
ed9d21232d - fix clobering of stack in the event, property, method and start device routine
svn path=/trunk/; revision=42166
2009-07-23 21:48:47 +00:00
Ged Murphy
54d58cdb65 Draw the appropriate taskbar mockup image in the dialog when the user clicks the checkboxes
svn path=/trunk/; revision=42165
2009-07-23 21:35:52 +00:00
Johannes Anderwald
77a79fb006 - Add calling convention for callback typedefs
- Ros needs msvc!

svn path=/trunk/; revision=42164
2009-07-23 21:32:39 +00:00
Jeffrey Morlan
91de7b5fd3 LoadLibraryExW: After loading a library as a datafile, clean up properly (don't leak SearchPath, and don't free DllName if we didn't allocate it)
svn path=/trunk/; revision=42163
2009-07-23 20:48:43 +00:00
Stefan Ginsberg
c3f828c7ee - Use the KiProcessorBlock array to loop the PRCBs in a portable way
svn path=/trunk/; revision=42162
2009-07-23 19:37:09 +00:00
Johannes Anderwald
15bec214b5 - Don't blame Arch, it was ks.h
svn path=/trunk/; revision=42161
2009-07-23 19:27:53 +00:00
Johannes Anderwald
4fdbdba1d9 [KS]
- Implement KsAcquireDevice, KsReleaseDevice, KsTerminateDevice
- Fix unimplemented tags
- Use double in spec for functions taking longlong arguments [[Colin Finck]]

svn path=/trunk/; revision=42156
2009-07-23 15:19:46 +00:00
Johannes Anderwald
c2874dcc29 - Add types to unbreak build
- thanks dreimer

svn path=/trunk/; revision=42155
2009-07-23 14:18:22 +00:00
Johannes Anderwald
2227681545 - Add tons of stubs
- Add (existing) exported functions
- Ks mostly has now WinXP' ks exported functions

svn path=/trunk/; revision=42153
2009-07-23 13:13:45 +00:00
Cameron Gutman
dff406bfd7 - Implement link speed and duplex detection
- Fix LED programming (we didn't set LEDPE so all our programming was ignored)
 - Add some other LED programming
 - Fixes bug 4703

svn path=/trunk/; revision=42152
2009-07-23 04:21:06 +00:00
James Tabor
194297c386 - [Win32k] More work on classes. Wine test drop to 35 failures from 52, now with the system class rewrite it is up to 42 failures. There is one User32 loaded so there is one User client Instance for this system. One System class per system not including Public (Global) or Private (Local) classes per process. Sorting continues.
- Tested wine (some improvements and losses), Firefox 1.15.xx and AbiWord 2.6.8.

svn path=/trunk/; revision=42151
2009-07-23 01:34:31 +00:00
Johannes Anderwald
1ad4db139c - Implement KsQueryObjectAccessMask, KsQueryObjectCreateItem
- Use KSQUEUE_SPINLOCK_IRP_STORAGE macro for access the stored spin lock

svn path=/trunk/; revision=42150
2009-07-23 00:47:21 +00:00
Johannes Anderwald
db1215455b - Remove old irp queue implementation
- Implement KsCancelIo, KsReleaseIrpOnCancelableQueue, KsRemoveIrpFromCancelableQueue, KsRemoveSpecificIrpFromCancelableQueue, KsAddIrpToCancelableQueue, KsCancelRoutine

svn path=/trunk/; revision=42149
2009-07-23 00:13:04 +00:00
ReactOS Portable Systems Group
916f5b12a6 - Initialize the value of MmBootImageSize in ARM3 now.
- Also fix its value such that it's PDE aligned -- this makes sure that we don't step on any of the boot loader's PDE mappings and can blow everything away later.
- Initialize the MmSystem/User/Probe Addresses in ARM3 as well (no functional change).
- Print out a lot more of the VA ranges in ARM3's Phase 2 initialization. Most of the VA space is now dumped out.
- Write out the code to initialize session space VA ranges
  - Image space, view space, working set space and pool space values are all calculated properly.
    - NT default sizes are used, without support for registry overrides (yet).
  - Also system view space is initialized and sized.
  - Code is heavily commented and explained for inquisitive minds.
- Define the paged pool start address, minimum/default size, and add some extra pool header asserts/definitions.
- Define MmPagedPoolInfo to keep track of all paged pool related information (start/end PTEs, VA ranges, allocation/free bitmaps, etc).
- Fixed a lot of comments and added some new ones to provide extra clarity.
- Implement MiBuildPagedPool. It has two jobs:
  - Build and create the shadow system page directory, which double-maps the System process' PDE.
    - More explenations are in the comments.
  - Define the paged pool region and size, and initialize MmPagedPoolInfo accordingly.
  - Create and setup the paged pool allocation and free bitmaps (again explained in the comments).
- There shouldn't be any real functional change yet due to this commit.
  - We need to create memory areas for session space and system view space otherwise the VA regions could get used by ReactOS instead.


svn path=/trunk/; revision=42148
2009-07-22 22:46:29 +00:00
Johannes Anderwald
721b165dbb - Fix totally broken KSWORKER implementation (it may have worked, but it didnt do what it should have)
- Re-Implement KsQueueWorkItem, KsIncrementCountedWorker, KsDecrementCountedWorker, KsRegisterCountedWorker, KsUnregisterWorker, KsRegisterWorker

svn path=/trunk/; revision=42147
2009-07-22 21:27:44 +00:00
Johannes Anderwald
f035e43e1e - Use KSSTRING instead of hardcoding object class
- Implement KsValidateAllocatorCreateRequest, KsValidateClockCreateRequest, KsValidateTopologyNodeCreateRequest

svn path=/trunk/; revision=42146
2009-07-22 19:08:57 +00:00
Johannes Anderwald
ddf9f8aa58 - Add flags
- Revert 42107

svn path=/trunk/; revision=42145
2009-07-22 19:05:58 +00:00
Johannes Anderwald
3e489bf3af [KS]
- Rewrite KSCREATE_ITEM handling to support clocks, nodes, allocators. 
- Store create items in list instead of an array. Consequently, the code can be re-used for KSDEVICE_HEADER / KSOBJECT_HEADER functions. 
- Implement KsAddObjectCreateItemToObjectHeader
- Implement now KspCreate and IKsDevice_Create properly
- Implement KsGetDevice by using KSBASIC_HEADER struct which must be positioned before its object specific (PKSFILTER, PKSFILTERFACTOR, PKSPIN)
- Remove a hack from KspCreateObjectType
[PORTCLS]
- Store real dispatched object in FsContext2
- Implement a fast device i/o handler
- Increase minimum data threshold when a stream stops prematurely by 10 audio frames (port driver WaveCyclic)
- Remove the hack of checking wether pin create request is passed. Since create items now work nicely, use a different function and handle pin creation requests seperately.
[KMIXER]
- Remove the hack of checking wether pin create request is passed. Since create items now work nicely, use a different function and handle pin creation requests seperately.
[SYSAUDIO]
- Remove the hack of checking wether pin create request is passed. Since create items now work nicely, use a different function and handle pin creation requests seperately.



svn path=/trunk/; revision=42143
2009-07-22 14:42:51 +00:00
Matthias Kupfer
8497361513 fix a minor translation mistake
svn path=/trunk/; revision=42140
2009-07-22 12:11:56 +00:00
Aleksey Bragin
a208c2340f - Add missing braces to prevent PVOID pointer arithmetic.
svn path=/trunk/; revision=42138
2009-07-22 11:15:34 +00:00
ReactOS Portable Systems Group
95688079e3 - Prettify PFN dump output (add totals for each consumer and page type).
svn path=/trunk/; revision=42132
2009-07-22 07:52:47 +00:00
ReactOS Portable Systems Group
23a2825b03 - Separe ARM3 Init into 3 defined phases:
- 1: No PFN Database exists
  - 2: PFN Database exists
  - 3: ReactOS NP Pool exists (deprecated)
- Cleanup ReactOS Mm init to work with this.
- ARM3 Phase 1 Init now uses pages directly from the physical memory descriptor.
  - This similar to how "MmAllocEarlyPage" used to work. 
    - A new function MxGetNextPage now does this.
    - MxGetNextPage can allocate more than just one page however (making it possible to get contiguous physical memory without going through the PFN-based MmAllocateContiguousMemory beast)
    - Also MxGetNextPage will bugcheck with INSTALL_MORE_MEMORY if it runs out of pages.
  - Renamed the physical memory descriptor variables to MxFreeDescriptor, MxOldFreeDescriptor instead of MiFreeDescriptor and MiOrgFreeDescriptor (based on NT symbols)
  - Nonpaged pool PDEs, PFN database PDEs, and initial nonpaged pool PTEs are now allocated through MxGetNextPage.
- Fix an off by one error in the sizing of MxPfnAllocation.
- The PFN database is now fully "owned" by ARM3 in terms of its PDE mappings and VA location at 0xB0000000.
  - ie. MmArmPfnDatabase is now MmPfnDatabase.
  - The actual PFN database entries and setup are still done by the ReactOS Mm.
- Got rid of ARM nonpaged pool allocator test.
- Repositioned ReactOS nonpaged pool (deprecated) after the boot image (used to be after the PFN database).
  - Paged pool follows.

svn path=/trunk/; revision=42131
2009-07-22 07:33:22 +00:00
James Tabor
e3ef0343ba - [Win32k] Rename class and window structures.
svn path=/trunk/; revision=42130
2009-07-22 05:23:08 +00:00
James Tabor
9e5cbe0781 - Fix crash in wine test.
svn path=/trunk/; revision=42129
2009-07-22 04:26:35 +00:00
James Tabor
0485c0c365 - [Win32k] Update class and window structures.
- Rewritten Set/GetWindowContextHelpId.
- Removed NtUserRegisterClassEx, replaced it with NtUserRegisterClassExWOW.
- Updated all related files and functions.


svn path=/trunk/; revision=42128
2009-07-22 04:11:06 +00:00
Cameron Gutman
9144a1bbf6 - Don't fail the entire probe if something goes wrong when allocating a controller (this is what we do if _MULTI_UHCI is not defined also)
svn path=/trunk/; revision=42127
2009-07-22 02:20:24 +00:00
Cameron Gutman
ab3c1cfd2c - Return the DEVICE_OBJECT we got instead of NULL
svn path=/trunk/; revision=42126
2009-07-22 02:06:50 +00:00
Cameron Gutman
b63b5ba1fb - Fix compilation of usbdriver with _MULTI_UHCI defined
svn path=/trunk/; revision=42125
2009-07-22 01:47:27 +00:00
ReactOS Portable Systems Group
1f4bf9180e - Get rid of debug spew used during testing.
svn path=/trunk/; revision=42124
2009-07-21 20:04:17 +00:00
Aleksey Bragin
012c86a88f - Add cryptdlg as autosynced.
svn path=/trunk/; revision=42123
2009-07-21 19:00:08 +00:00
Dmitry Chapyshev
badf1a329a - Revert my previous changes in QueueUserWorkItem
svn path=/trunk/; revision=42122
2009-07-21 16:38:50 +00:00
Sylvain Petreolle
15293b22aa Fix svn repository address
svn path=/trunk/; revision=42121
2009-07-21 15:51:27 +00:00
Sylvain Petreolle
2bd9e63884 - Update Module List
- Fix arguments check

svn path=/trunk/; revision=42120
2009-07-21 14:58:11 +00:00
Johannes Anderwald
4d14e675c2 - Update Module List
svn path=/trunk/; revision=42119
2009-07-21 13:53:20 +00:00
Sylvain Petreolle
4df2364dc6 fix includes case
svn path=/trunk/; revision=42118
2009-07-21 13:44:45 +00:00
Johannes Anderwald
4725a4fd9c - Rewrite KsDefaultDispatchPnp to make it actually work
- Implement KsDefaultDispatchPower, KsDefaultForwardIrp
- Return the correct device object in KsQueryDevicePnpObject
- Implement KsReadFile, KsSetInformationFile and partly KsQueryInformationFile
- Remove KspClose, KspRead, KspWrite, KspFlushBuffers, KspQuerySecurity, KspSetSecurity and all these IOCTL in KspDispatchIrp
- Rewrite KsDispatchIrp to handle IRP_MJ_CREATE & IRP_MJ_POWER, IRP_MJ_PNP for AV Stream minidrivers and forward IRP_MJ_SYSTEM_CONTROL requests to the registered pnp base object
- Unsupported IOCTLs are now completed with KsDispatchInvalidDeviceRequest (previously leaked)


svn path=/trunk/; revision=42117
2009-07-21 13:32:28 +00:00
ReactOS Portable Systems Group
de33ea571e - Do not set the non-x86 file system and disk read buffers to some random static variable that isn't even initialized on time.
- As a temporary hack, hard-code them to 0x80000000, a valid RAM address on OMAP3.
    - This code path is only used on ARM anyway, so it's not such a big deal, but a better fix should be done later.
- OmapLDR can now boot FreeLDR, which attempts to load NTOSKRNL.EXE and dies.
  - Need to revisit significant parts of the MMU code before attempting to go further; this won't likely be done for a good couple of months.

svn path=/trunk/; revision=42116
2009-07-21 09:44:36 +00:00
Dmitry Chapyshev
c2018d5633 - Add ws2help from alex-network-branch
svn path=/trunk/; revision=42115
2009-07-21 09:16:26 +00:00
Dmitry Chapyshev
fd8fa4a64c - Fix some warnings
svn path=/trunk/; revision=42114
2009-07-21 09:10:28 +00:00
Dmitry Chapyshev
c856ffc8ed - .def -> .spec
- Fix .rbuild

svn path=/trunk/; revision=42113
2009-07-21 09:06:25 +00:00
Dmitry Chapyshev
0b019f3ae8 - Add some defines, prototypes. It fixes compilation ws2_32_new
svn path=/trunk/; revision=42112
2009-07-21 09:03:03 +00:00
Dmitry Chapyshev
713ca4ef89 - Fix types of parameters for WPUFDIsSet, WSCInstallProvider
svn path=/trunk/; revision=42111
2009-07-21 08:59:30 +00:00
James Tabor
b5f733b8ce - [Win32k] Update class structure and fixed on class wine test.
svn path=/trunk/; revision=42110
2009-07-21 02:56:24 +00:00
Johannes Anderwald
764ee24fea allocators.c
- Implement IKsAllocator interface and use it in new implemented KsCreateAllocator, KsCreateDefaultAllocatorEx, KsValidateAllocatorFramingEx
api.c
- Implement KsSetDevicePnpAndBaseObject, KsQueryDevicePnpObject, KsSetTargetState, KsSetTargetDeviceObject, KsSetPowerDispatch, KsFreeDeviceHeader, KsFreeObjectHeader, KsAllocateObjectCreateItem, KsFreeObjectCreateItem, KsFreeObjectCreateItemsByContext, KsCreateDefaultSecurity
clocks.c
- Implement KsCreateClock, KsCreateDefaultClock,  partly implement KsAllocateDefaultClockEx, KsFreeDefaultClock, KsGetDefaultClockState, KsSetDefaultClockState, KsGetDefaultClockTime, KsSetDefaultClockTime
device.c
- Partly implement IKsDevice interface in order to let AVStream client devices initialize
- Implement KsInitializeDevice
- Implement registering of device interface for AVStream drivers
driver.c
- Implement KsGetDeviceForDeviceObject
- Set device flags for ks
- Store Address for client drivers device extension
filter.c
- Implement IKsFilter & IKsControl interface
- Handle KSPROPERTY requests
filterfactory.c
- Implement IKsFilterFactory interface
- Implement KsCreateFilterFactory, KsFilterFactorySetDeviceClassesState, KsFilterFactoryGetSymbolicLink, KsFilterFactoryAddCreateItem
- Add KsFilterFactoryUpdateCacheData
image.c
- Implement KsLoadResource
irp.c
- Implement KsDispatchQuerySecurity, KsDispatchSetSecurity, KsWriteFile, KsDefaultIoCompletion

svn path=/trunk/; revision=42109
2009-07-20 23:26:57 +00:00
James Tabor
928ed84e9f - [Win32k] Update window structure.
svn path=/trunk/; revision=42108
2009-07-20 23:18:16 +00:00
Dmitry Gorbachev
04dbe9d46f Fix compilation of drmk.sys
svn path=/trunk/; revision=42107
2009-07-20 23:04:01 +00:00
Cameron Gutman
985618d74e - Update TotalLength based on the fragment size
- Make fragment offset into 8-byte units
 - Don't perform a useless checksum calculation
 - Fixes datagram fragmentation (tested using ping with a packet size of 16000)
 - This also seems to fix DHCP over a bridged NIC in vbox

svn path=/trunk/; revision=42104
2009-07-20 19:46:54 +00:00
Dmitry Chapyshev
207b294387 - Add some defines
svn path=/trunk/; revision=42103
2009-07-20 19:45:06 +00:00
Dmitry Chapyshev
9545bd7992 - Implement WSAHtons, WSANtohs
- Add some cases to MsafdReturnWithErrno, SockAsyncSelectCompletionRoutine
Opera loads pages now, but the keyboard does not work.
Patch by Mikhail Denisenko (denisenkom@gmail.com)
See issue #4151 for more details.

svn path=/trunk/; revision=42102
2009-07-20 18:30:30 +00:00
Dmitry Chapyshev
b46f7e4773 - Add debug print to MiQueryVirtualMemory
svn path=/trunk/; revision=42101
2009-07-20 18:03:16 +00:00
Johannes Anderwald
3cf7214094 - A few updates from the Ninja-Arch
svn path=/trunk/; revision=42100
2009-07-20 17:14:21 +00:00
James Tabor
95d1d17ba9 - [Win32k] Make co_IntCreateWindowEx return pointer to public window structure.
svn path=/trunk/; revision=42092
2009-07-19 21:18:08 +00:00
Hervé Poussineau
6a16259ee6 Fix bug introduced in r1514, where memory was freed once in DLL_THREAD_DETACH and once more in DLL_PROCESS_DETACH
svn path=/trunk/; revision=42089
2009-07-19 18:37:58 +00:00
Cameron Gutman
54b3d22e33 - Generate a random ID for use during datagram reassembly
svn path=/trunk/; revision=42088
2009-07-19 17:40:36 +00:00
Cameron Gutman
b43fbb516b - Properly implement ICMP
- Now Raw IP works correctly because it isn't being hacked to handle ICMP packets

svn path=/trunk/; revision=42087
2009-07-19 14:48:48 +00:00
Hervé Poussineau
a86419a500 Add missing SetWindowsHookW prototype
svn path=/trunk/; revision=42086
2009-07-19 14:03:10 +00:00
Cameron Gutman
2fe1aab7fe - Send all waiting packets instead of only the first one to prevent a buildup of queued packets on a non-sendable NCE which becomes sendable later
svn path=/trunk/; revision=42076
2009-07-19 07:06:08 +00:00
Daniel Reimer
9c61a1e9ae Sync Christoph Style. It builds, but only uses the first RC file in the rbuild file. Seems like a bug to me. Needs more investigation.
svn path=/trunk/; revision=42073
2009-07-18 22:17:34 +00:00
Daniel Reimer
3732a01a8a Sync Christoph Style. It builds, but only uses the first RC file in the rbuild file. Seems like a bug to me. Needs more investigation.
svn path=/trunk/; revision=42071
2009-07-18 22:01:42 +00:00
Daniel Reimer
2c069c546e Sync to winfile to Wine 1.1.26
svn path=/trunk/; revision=42069
2009-07-18 19:48:17 +00:00
Daniel Reimer
5e9aac5f3d Sync to winhlp32, xcopy to Wine 1.1.26
wordpad sync does not generate a valid win32 resource
Out of no reason wine changed the way they include theirs rc files.
rsrc.rc is no more and all rcs are added as headers with own includes into the makefile. I have no idea if we plan to do it that way, so I changed this back to the old behavior.

svn path=/trunk/; revision=42068
2009-07-18 19:47:54 +00:00
Dmitry Chapyshev
0183a1cc69 - Partially sync with Wine 1.1.26
svn path=/trunk/; revision=42065
2009-07-18 19:25:33 +00:00
Dmitry Chapyshev
2794a2eba0 - Add SEH protection at memory copying. Fixes crash at "setupapi_winetest devinst"
svn path=/trunk/; revision=42064
2009-07-18 19:22:12 +00:00
Dmitry Chapyshev
100a69c0f3 - Sync SHDefExtractIconW with Wine. Fixes crash at shelllink test
svn path=/trunk/; revision=42058
2009-07-18 18:47:40 +00:00
Cameron Gutman
91f79593a7 - Don't change the lock's OldIrql value until we actually have the lock because we need this value to unlock correctly
- This should fix bug 4704

svn path=/trunk/; revision=42054
2009-07-18 17:57:38 +00:00
Johannes Anderwald
ab1fc18975 - Fix wait condition
svn path=/trunk/; revision=42052
2009-07-18 15:20:53 +00:00
Johannes Anderwald
2b9d1b809c [USERINIT]
- Move code for playing logon sound to winlogon where it should belong
[WINLOGON]
- Create a thread for playing the logon sound
- Query the status of sysaudio. If sysaudio isnt running yet, wait a second.
- Wait for max 20 seconds to get sysaudio running
- Finally logon sound should work

svn path=/trunk/; revision=42051
2009-07-18 15:19:57 +00:00
Johannes Anderwald
dac78ab19a [WDMAUD.DRV]
- Implement retrieving the preferred frame size
- Set Maximum buffer limit to one second
[PORTCLS]
- Implement a dynamic buffer enlarging. In case a audio stream stops prematurely, increase the audio buffer limit by 1/3
- Implement KSPROPERTY_CONNECTION_ALLOCATORFRAMING for IPortPinWaveCyclic + IPortPinWavePci
- Move IPortWavePciStream object to IPortPinWavePci, as IPrefetchOffset needs a tight integration (TBD)
- Define pin property handler for IPortDMus (some audio devices may now show more than one waveout device)
- Implement IPortEvents_fnAddEventToEventList for IPortWavePci
[WDMAUD_KERNEL]
- Implement IOCTL_GETFRAMESIZE
[SYSAUDIO]
- Fix a bug in the Pin_fnWrite, though code isnt used yet
-?
- Adobe Flash Player & Vlc may now have a better playback because the audio stream is now updated more often (because audio packet now use the preferred frame size which is in most cases 10ms).


svn path=/trunk/; revision=42016
2009-07-17 19:15:52 +00:00
Dmitry Gorbachev
6d59a5cfa7 Change the order in which file systems are recognized, do not mistake FAT32 for Ext2.
svn path=/trunk/; revision=42015
2009-07-17 19:14:08 +00:00
Dmitry Chapyshev
3b39cbc701 - Samplify SwitchToThread and QueueUserWorkItem
- Remove unneeded InternalWorkItemTrampoline function and QUEUE_USER_WORKITEM_CONTEXT structure
- Other small changes

svn path=/trunk/; revision=42012
2009-07-17 18:42:12 +00:00
James Tabor
c0db0a0a0b - Cleanup and minor changes.
- The use of CSRSS for creating the desktop window is a cleverly written hack. Real genius! The down side, this is a good example of thread coding, I do hate having to remove it. We could just leave it in there unused to keep it as an example. Let me know.

svn path=/trunk/; revision=42011
2009-07-17 18:41:29 +00:00
Dmitry Chapyshev
1f53c74091 - Remove unneeded check and cycle
svn path=/trunk/; revision=42006
2009-07-17 17:53:37 +00:00
Dmitry Chapyshev
91cae70e59 - Re-implement FreeLibrary (for support LOAD_LIBRARY_AS_DATAFILE)
- HeapAlloc -> RtlAllocateHeap, GetProcessHeap -> RtlGetProcessHeap, HeapFree -> RtlFreeHeap, CloseHandle -> NtClose
- Remove FIXME in LoadModule

svn path=/trunk/; revision=42005
2009-07-17 17:15:17 +00:00
Dmitry Chapyshev
0e63dbb11d - Implement LOAD_LIBRARY_AS_DATAFILE flag for LoadLibraryExW (based on Wine code).
svn path=/trunk/; revision=42004
2009-07-17 15:53:15 +00:00
Dmitry Chapyshev
f86de98c40 - Rewrite SearchPathW (based on Wine code). It fixes regression in mysql
svn path=/trunk/; revision=42003
2009-07-17 13:24:07 +00:00
Johannes Anderwald
6324272e80 - Fix build
svn path=/trunk/; revision=41997
2009-07-17 10:19:47 +00:00
Johannes Anderwald
3e07d5777f - Don't hardcode the sound kernel buffersize and maximum buffer count and make it possible to override it because kernel streaming pins have specific frame size requirements.
- See KSALLOCATOR_FRAMING struct

svn path=/trunk/; revision=41996
2009-07-17 09:24:11 +00:00
Timo Kreuzer
4e4807dd53 Add Accessibility registry key
svn path=/trunk/; revision=41995
2009-07-16 22:51:43 +00:00
James Tabor
7502481918 - Fix fixed math, thanks Lentin.
svn path=/trunk/; revision=41994
2009-07-16 19:34:42 +00:00
James Tabor
bcbeefce98 - Implementation of registering system atom listings with table references. Se bug 4705.
svn path=/trunk/; revision=41993
2009-07-16 19:07:04 +00:00
James Tabor
6e038baa16 - Hax Fix: Edit control atom support, see bug 4705.
svn path=/trunk/; revision=41992
2009-07-16 17:56:19 +00:00
Johannes Anderwald
3be8b1374b - Dont try allocate a error log packet as IoAllocateErrorLogEntry appears to be broken
svn path=/trunk/; revision=41991
2009-07-16 14:42:43 +00:00
Stefan Ginsberg
5e0347a52b Fix definition of KeInitializeSpinLock for x86 - it never inlined the operation. It should check if WIN9X_COMPAT_SPINLOCK is defined and don't inline it if so. Also, don't define this flag when building ntoskrnl (MS DDK/WDK compilation fix) so we get the inline. Instead, make the implementation "internal" to fix compilation.
svn path=/trunk/; revision=41990
2009-07-16 11:42:09 +00:00
Aleksey Bragin
c825c5dc02 Maciej Bialas <bjauy@o2.pl>
- Don't check boot partition during unattended setup if MBR installation is skipped anyway.

svn path=/trunk/; revision=41989
2009-07-16 09:09:26 +00:00
Timo Kreuzer
fe5c1a52ce [WIN32K] Keep a shared lock on palettes selected into DCs.
This allows us to get rid of a large number of lock and unlock operations and checks.

svn path=/trunk/; revision=41988
2009-07-15 21:06:40 +00:00
Timo Kreuzer
6255ce1380 Remove unused struct ColorShifts
svn path=/trunk/; revision=41987
2009-07-15 20:02:33 +00:00
Stefan Ginsberg
a06a2ab53c - What's the deal with using Iof* and Obf*, Arch?
svn path=/trunk/; revision=41986
2009-07-15 19:40:44 +00:00
Stefan Ginsberg
29fa9f1dd8 - Hey Arch, did you know MmpDeleteSection can be called for a Section Object before it is fully set up (when ObDereferenceObject is called before all fields are initialized), and it will now crash due to a bogus, nonintialized Segment/ImageSection pointer? Always zero out the whole buffer to prevent this. Fixes the kernel32 loader Winetest.
svn path=/trunk/; revision=41985
2009-07-15 18:35:31 +00:00
ReactOS Portable Systems Group
3989bd4e3c - NEVER TELL ME THE ODDS (of breaking the build).
svn path=/trunk/; revision=41984
2009-07-15 18:31:53 +00:00
ReactOS Portable Systems Group
cc98ebfe87 - Add initial support for TI OMAP3530 (last commit said OMAP3450, this was incorrect), an ARM Cortex-A8 based SoC.
- This gets us booting to FreeLDR with some serial output.
  - The entire MMU code needs a rewrite.

svn path=/trunk/; revision=41983
2009-07-15 18:30:04 +00:00
ReactOS Portable Systems Group
4c1ac0d33e - Build freeldr_arch first -- otherwise the fact you specific a file as "first = true" won't do anything, since it will only be the "first" in its sub-build.
- This is required because freeldr is a binary file, and so the first function must be the start routine.
  - Freeldr_startup ironically does not contain the startup code, since startup code is arch-specific, it actually lives in freeldr_arch.
- Also get rid of another ARM linker hack, and define the correct base address for FreeLDR on OMAP3450.
  - Need a platform-specific way of specifying this.

svn path=/trunk/; revision=41982
2009-07-15 18:25:26 +00:00
ReactOS Portable Systems Group
f5af0cd513 - Start re-defining the PTE and PDE structures for:
- ARMv6 support.
  - Support of new ARM3 and overall portability.
    - Still have to find a better way to deal with the fact that PDE/PTE types are different on ARM.
- Fix the current arm low-level mm implementation to use the new structures.
  - However parts of the code will now be totaly obsoleted by the new ARMv6 MMU support.
- The ARM port now builds again.

svn path=/trunk/; revision=41981
2009-07-15 18:20:53 +00:00
ReactOS Portable Systems Group
5ca7892171 - Move ARM3's init.c to i386-specific directory.
svn path=/trunk/; revision=41980
2009-07-15 17:55:13 +00:00
ReactOS Portable Systems Group
dc3d103e78 - Use the new portable flag definitions.
svn path=/trunk/; revision=41979
2009-07-15 17:53:45 +00:00
ReactOS Portable Systems Group
a8fd19398a - Define portable flags for touching fields in the MMPTE structure, which might have different names/not exist on other architectures.
- Define PTE_BASE and PDE_BASE since these are the correct cross-platform definitions.


svn path=/trunk/; revision=41978
2009-07-15 17:52:32 +00:00
ReactOS Portable Systems Group
a58fa89df3 - Don't use "static" in the kernel.
- Also prevents from getting a warning on ARM and other platforms that don't do PSEH2 since they have native exception support.


svn path=/trunk/; revision=41977
2009-07-15 17:50:50 +00:00
ReactOS Portable Systems Group
e9b1e01407 - Remove FreeLDR linker hack on ARM.
svn path=/trunk/; revision=41976
2009-07-15 17:49:38 +00:00
ReactOS Portable Systems Group
92c0f0afef - Hackfix floating point call in rtl's printf until the compiler guys get their shit together.
svn path=/trunk/; revision=41975
2009-07-15 17:49:05 +00:00
ReactOS Portable Systems Group
17fcd0b411 - Make platform specific directory to please the ARM folks.
svn path=/trunk/; revision=41974
2009-07-15 17:28:23 +00:00
Stefan Ginsberg
2b3f6a29ae - Remove the object body zeroing hack from ObpAllocateObject now that callers that relied on this have been fixed. Fixes ~4000 unnecessary buffer zeroing operations just for boot!
svn path=/trunk/; revision=41973
2009-07-15 16:52:47 +00:00
Stefan Ginsberg
ddbfcbae40 - Don't assume the object body allocated by ObCreateObject (through ObpAllocateObject) is zero-initialized (it shouldn't be).
svn path=/trunk/; revision=41972
2009-07-15 16:13:08 +00:00
Dmitry Chapyshev
bfb7dae4a2 - Currently, SearchPathW fails with path such as subdir\binary.exe. This patch is there to address it. It permits VBoxService to launch, and probably others.
Patch by zefklop (jerome.gardou@laposte.net)
See issue #4697 for more details.

svn path=/trunk/; revision=41971
2009-07-15 15:27:59 +00:00
Johannes Anderwald
179d9487dd - Interrupt is only shareable if the type is latched
- Only transfer as maximum the FrameSize which was obtained by IMiniportWaveCyclicStream::SetNotficationFreq
- Remove the pin service group member before queing the workitem to close the stream

svn path=/trunk/; revision=41970
2009-07-15 14:11:00 +00:00
Stefan Ginsberg
1996b84fae - The 4th parameter of NtCreateDebugObject is not a BOOLEAN -- it is a ULONG, meaning it could contain several flags (but only 0x1 seems to be valid). Add DBGK_KILL_PROCESS_ON_EXIT as this flag and use it.
svn path=/trunk/; revision=41969
2009-07-15 14:01:15 +00:00
Dmitry Gorbachev
9044027a2d Update Romanian translations. Petru Dimitriu, bug #4692.
svn path=/trunk/; revision=41968
2009-07-15 13:04:16 +00:00
Dmitry Gorbachev
c2ba17c1c2 Update Norwegian translation. Patch by LMH1, bug #4695.
svn path=/trunk/; revision=41967
2009-07-15 10:54:37 +00:00
Johannes Anderwald
ea930be882 - ReactOS only supports WAVE_FORMAT_PCM
- Helps apps like Adobe Flash Player to output the supported format

svn path=/trunk/; revision=41966
2009-07-15 10:49:17 +00:00
Stefan Ginsberg
bee032b26c - Don't use Kf* and Kef* in portable code.
svn path=/trunk/; revision=41965
2009-07-15 10:22:05 +00:00
Dmitry Chapyshev
163b140789 - Update Russian translation
svn path=/trunk/; revision=41964
2009-07-15 05:49:29 +00:00
James Tabor
b96f3f2222 - Implement support for HWND_MESSAGE. Need full testing!
svn path=/trunk/; revision=41963
2009-07-15 05:33:21 +00:00
Cameron Gutman
202957e751 - Start reporting packet statistics
- We currently only report received bytes, sent bytes, discarded packets due to unknown protocol, send errors, and receive errors
 - The network adapter properties window now shows correct send/receive bytes info

svn path=/trunk/; revision=41962
2009-07-15 03:14:13 +00:00
Ged Murphy
09fbbfac10 - Add resources to all remaining languages
- Patch by Gabriel Ilardi

svn path=/trunk/; revision=41961
2009-07-14 20:40:13 +00:00
Ged Murphy
ef5fe6d814 - Update Russian resources
- Patch by tower

svn path=/trunk/; revision=41960
2009-07-14 20:32:31 +00:00
Cameron Gutman
77264a99fe - Release all adapter IP addresses when using /release
svn path=/trunk/; revision=41959
2009-07-14 20:14:32 +00:00
Cameron Gutman
2ac1ae299f - Fix build
svn path=/trunk/; revision=41958
2009-07-14 19:55:41 +00:00
James Tabor
0690ae1a7c - Remove HWND_MESSAGE patch.
svn path=/trunk/; revision=41957
2009-07-14 19:49:48 +00:00
James Tabor
f0069bef60 - Update Xp w32process structure with real names, based on W7U symbols. Ref: http://www.reactos.org/wiki/index.php/Techwiki/win32k/W32PROCESS
svn path=/trunk/; revision=41956
2009-07-14 19:48:23 +00:00
Cameron Gutman
c7364bef38 - Renew the IP address of all adapters when using /renew
- Leave the critical section in failure case
 - Check for NULL adapter (CID 499)
 - Implement IpRenewAddress and IpReleaseAddress
 - Fixes ipconfig /release and ipconfig /renew

svn path=/trunk/; revision=41955
2009-07-14 19:43:57 +00:00
Stefan Ginsberg
45a41f9932 - Don't use KfRaiseIrql in portable code
svn path=/trunk/; revision=41954
2009-07-14 18:47:15 +00:00
Ged Murphy
e45154cf53 - Update polish resources
- Patch by Maciej Bialas (bjauy at o2 dot pl)

svn path=/trunk/; revision=41952
2009-07-14 13:02:23 +00:00
Timo Kreuzer
50ce23a64f Get rid of memcpy at all and use memove instead like windows does, but instead of duplicating the code, forward the exports. Fixes crt build.
svn path=/branches/ros-amd64-bringup/; revision=41949
2009-07-13 23:49:14 +00:00
Timo Kreuzer
2d893b9293 compile csrss only if USERMODE is set to 1
svn path=/branches/ros-amd64-bringup/; revision=41947
2009-07-13 23:25:47 +00:00
Ged Murphy
eea0a464f4 Fix a syntax error which VS strangely missed
svn path=/trunk/; revision=41945
2009-07-13 22:24:16 +00:00
Ged Murphy
b277f4e9a8 Fix a double definition
svn path=/trunk/; revision=41944
2009-07-13 21:38:08 +00:00
Ged Murphy
6cf5f907f1 Add the resources for the tray property dialog, based on the Vista dialog look and feel
svn path=/trunk/; revision=41943
2009-07-13 21:31:56 +00:00
Jeffrey Morlan
1c0bdb07e1 Make IF EXIST directory\ (with trailing backslash) work
svn path=/trunk/; revision=41942
2009-07-13 18:55:33 +00:00
Cameron Gutman
234f0e77c4 - Stop reporting that we are NDIS 5.1 until S/G DMA is implemented in HAL so unified 2K/XP drivers don't try to use it
- Enable a debug print to notify that attempting to use S/G is about to crash ROS
 - Thanks to niski for testing

svn path=/trunk/; revision=41941
2009-07-13 17:16:19 +00:00
Aleksey Bragin
be56928252 - Fix formatting.
svn path=/trunk/; revision=41940
2009-07-13 12:50:08 +00:00
James Tabor
145e9fad83 - Half-implement MmPageEntireDriver and use it to set the module instance for win32k. ATM, it does not set the entry pageable.
- I mean no disrespect to the Arm developers, I'm an admire of your great work with ReactOS! By my commits you can see the need for the offset address when calling internal procs in win32k.
- References: MmPageEntireDriver, http://www.osronline.com/ddkx/kmarch/k106_7os2.htm

svn path=/trunk/; revision=41939
2009-07-13 05:00:17 +00:00
James Tabor
7d031bd233 - Fix build.
svn path=/trunk/; revision=41938
2009-07-13 03:55:03 +00:00
James Tabor
13af552ba5 - Add initialization of system atoms and fix build.
svn path=/trunk/; revision=41937
2009-07-13 03:49:58 +00:00
James Tabor
fdf30001fb - Implement NtUserInitializeClientPfnArrays, tested and will be needed in later commits.
svn path=/trunk/; revision=41936
2009-07-13 03:37:00 +00:00
Johannes Anderwald
6d29129c8f [WDMAUD_KERNEL]
-? Hey Arch, don't be so picky when something goes wrong. 
- Fix enumeration of wave out / in devices for Vmware adapter
- Playback still hangs

svn path=/trunk/; revision=41935
2009-07-12 15:44:33 +00:00
ReactOS Portable Systems Group
0067e2c1a5 - Fix several problems with the System PTE implementation, including the lack of locks.
- I also didn't fully like the idea of sticking "-1" into a 5-bit wide bitfield -- instead just stuff it as 0xFFFFF with a typecast. 
    - This seems to be NT's MM_EMPTY_LIST that shows up in a couple of ASSERTs on the checked build.
- This fixes several random crashes seen on my test boxes when mapping MDLs and using NP expansion VA.
- Dedicated to Brüno.

svn path=/trunk/; revision=41934
2009-07-12 13:06:41 +00:00
ReactOS Portable Systems Group
1279c44e6c - Implement the rest of the nonpaged pool allocator, now with support for allocating pages in the nonpaged pool expansion area.
- This uses System PTEs, so if you're still not sick of the same old mantra -- optimizations to the former will help the latter.
    - Additionally, we should eventually implement a single-page SLIST for nonpaged pool pages, which will greately improve allocate/free of 1 page.
- As a reminder, this code isn't being used yet.

svn path=/trunk/; revision=41933
2009-07-12 13:02:05 +00:00
ReactOS Portable Systems Group
d9b66b43bd - Stop excercising the nonpaged pool allocator since there have been no complaints and internal testing has revealed no faults.
svn path=/trunk/; revision=41932
2009-07-12 13:00:19 +00:00
ReactOS Portable Systems Group
032b0e4144 - Fix incomplete comment due to accidental early-merge.
svn path=/trunk/; revision=41931
2009-07-12 12:59:21 +00:00
Dmitry Chapyshev
92272be249 - Implement QueryFullProcessImageNameA/W (based on Wine code). +35 passed tests
svn path=/trunk/; revision=41930
2009-07-12 12:21:20 +00:00
ReactOS Portable Systems Group
4fd7e25d0c Header fixes for ARM to deal with the header cleanup that was performed earlier this year...
* ARMDDK is now rationed between user-mode and kernel-mode definitions and imported by WINNT and WINDDK both (Since these don't include each others anymore)
Make the MDL flags crossarch instead of x86 only
The ARM tree now builds completely, except for the new ARM3 code in ntos... good job guys. 10/10. wasn't this supposed to make things --portable--?

svn path=/trunk/; revision=41929
2009-07-12 10:52:13 +00:00
ReactOS Portable Systems Group
4df3c6ea54 Add some more intrinsics, and change _enable and _disable to use the new ARMv6 instructions instead... we'll have to make similar changes to the routines that use SWP
svn path=/trunk/; revision=41928
2009-07-12 10:49:47 +00:00
ReactOS Portable Systems Group
883152449c Define all the other PROCESSOR_ARCHITECTURE values too
svn path=/trunk/; revision=41927
2009-07-12 10:48:23 +00:00
ReactOS Portable Systems Group
7653420856 Deal with the fact that DirectoryTableBase in EPROCESS has now been defined as PULONG instead of LARGE_INTEGER
Remove ARM-specific hyperspace functions since these are portable now

svn path=/trunk/; revision=41926
2009-07-12 10:47:45 +00:00
ReactOS Portable Systems Group
0a25cb7cf3 Fix some interlock routine definitions on platforms that use it (not x86)
svn path=/trunk/; revision=41925
2009-07-12 10:45:59 +00:00
ReactOS Portable Systems Group
6a31fba13b Use portable ExInterlockedWhatever instead of non-portable Exf* function... the headers will do the right thing based on the arch
svn path=/trunk/; revision=41924
2009-07-12 10:45:33 +00:00
ReactOS Portable Systems Group
01614d1ae5 Don't try to write to "EAX" register on anything else but x86. Please write portable code in crossarch sources.
svn path=/trunk/; revision=41923
2009-07-12 10:44:53 +00:00
ReactOS Portable Systems Group
3cba568950 Move HYPER_SPACE definition to x86 header, since ARM already defines it (and it's somewhere else). Thi sis an arch-specific define
svn path=/trunk/; revision=41922
2009-07-12 10:44:22 +00:00
ReactOS Portable Systems Group
a865f1ce7c These fields don't exist on ARM, so only C_ASSERT them on x86
svn path=/trunk/; revision=41921
2009-07-12 10:43:29 +00:00
ReactOS Portable Systems Group
6f5fac8d38 Fix accidental exclusion of _get_environ functions on ARM, and exclude them only on x86-64 as it seemed to have been intented
svn path=/trunk/; revision=41920
2009-07-12 10:43:06 +00:00
ReactOS Portable Systems Group
1fd4832ed6 More properly neuter PSEH2 on ARM
svn path=/trunk/; revision=41919
2009-07-12 10:42:04 +00:00
ReactOS Portable Systems Group
af9020285f Define the base addresses as ULONG_PTR since pointer math on void* is illegal
svn path=/trunk/; revision=41918
2009-07-12 10:41:50 +00:00
ReactOS Portable Systems Group
5295bfbae2 Do not build some floating point math functions on ARM right now, since they seem to call x86 inline assembly
Investigate this later...

svn path=/trunk/; revision=41917
2009-07-12 10:41:23 +00:00
ReactOS Portable Systems Group
6174f3d53a Revert the change to tcsrchr, it should be a XINT not a TCHAR
svn path=/trunk/; revision=41916
2009-07-12 10:40:39 +00:00
ReactOS Portable Systems Group
1554007aa6 KEBUGCHECK was deprecated, so use KeBugCheck
svn path=/trunk/; revision=41915
2009-07-12 10:40:16 +00:00
ReactOS Portable Systems Group
ac6394ae92 Don't export the HAL drive letter assignment functions on ARM
The fast mutex functions are in the HAL on non-x86 builds, so don't forward them back to ntos

svn path=/trunk/; revision=41914
2009-07-12 10:39:58 +00:00
ReactOS Portable Systems Group
bde8298af7 The Halp* drive assignment stuff doesn't exist on ARM, AFAIK
svn path=/trunk/; revision=41913
2009-07-12 10:39:04 +00:00
ReactOS Portable Systems Group
deccae397c Use the pspec, there's no hal_arm.def anymore
svn path=/trunk/; revision=41912
2009-07-12 10:38:26 +00:00
ReactOS Portable Systems Group
20e4690b06 Only build winsetupldr for x86, since there's no NT for ARM
svn path=/trunk/; revision=41911
2009-07-12 10:38:05 +00:00
ReactOS Portable Systems Group
52009e13dd Only call WinLDR for x86 since there is no NT for ARM
svn path=/trunk/; revision=41910
2009-07-12 10:37:38 +00:00
ReactOS Portable Systems Group
6dc2e41228 Add minimal support for ARM to winebuild, just enough to get it to build and spew out spec files.
Hopefully it's not used for anything more cpu-specific thank that...


svn path=/trunk/; revision=41909
2009-07-12 10:36:36 +00:00
ReactOS Portable Systems Group
c8f6ed5179 Add back support for WINEBUILD_FLAGS which someone removed when going from modulehandler.cpp to rules.mak... thanks.
svn path=/trunk/; revision=41908
2009-07-12 10:35:46 +00:00
Cameron Gutman
47ac65adaa - Store the static default gateway forward entry in DHCP_ADAPTER
- Loop the adapter list backward so DhclientInfo gets linked properly

svn path=/trunk/; revision=41907
2009-07-12 05:21:52 +00:00
James Tabor
172daf63c3 - If any dib sections was created, set the flag.
svn path=/trunk/; revision=41906
2009-07-12 02:59:59 +00:00
James Tabor
038073d31c - Start initializing client pfn arrays so that they can be loaded into the server information structure and help register class atoms in win32k.
svn path=/trunk/; revision=41905
2009-07-12 02:09:49 +00:00
Johannes Anderwald
1ad4b7ad1f - Fix build (2/X)
svn path=/trunk/; revision=41904
2009-07-12 00:37:48 +00:00
Johannes Anderwald
4e2840db1d [AUDIO_TEST]
- Fix build

svn path=/trunk/; revision=41903
2009-07-12 00:23:09 +00:00
Johannes Anderwald
56e5803f59 [MMEBUDDY]
- Pass DeviceId to GetDeviceCapabilities function
[WDMAUD.DRV]
- Use DeviceId to determine the capabilities of the requested device, not just always the first one

svn path=/trunk/; revision=41902
2009-07-11 23:49:24 +00:00
Johannes Anderwald
a0e15ca40c - Use free index directly
- Update interface

svn path=/trunk/; revision=41901
2009-07-11 23:23:40 +00:00
Johannes Anderwald
14ecd271ba - Implement retrieving position
svn path=/trunk/; revision=41900
2009-07-11 23:21:41 +00:00
Johannes Anderwald
85cde828b2 - Implement retrieving position
svn path=/trunk/; revision=41899
2009-07-11 23:21:09 +00:00
Johannes Anderwald
dec6dd70e3 - Add function for retrieving current position
svn path=/trunk/; revision=41898
2009-07-11 23:20:22 +00:00
James Tabor
a522461492 - Global/LocalFlags, now checking the right bit for discared heap and not doing it the wine way.
svn path=/trunk/; revision=41896
2009-07-11 22:52:36 +00:00
James Tabor
471fee4cfa - Fix Global/LocalFlags returns. Now pass all kernel32 heap tests.
svn path=/trunk/; revision=41895
2009-07-11 22:14:19 +00:00
Johannes Anderwald
1e3850cd25 [WDMAUD.DRV]
- The wave / mixer / midi handles are kernel handles, consequently wdmaud_kernel must close them

svn path=/trunk/; revision=41894
2009-07-11 22:02:30 +00:00
Dmitry Chapyshev
66a1d260cb - Set status to STATUS_OBJECT_NAME_INVALID if NtCreateMailslotFile returned STATUS_NOT_SUPPORTED
svn path=/trunk/; revision=41893
2009-07-11 20:34:33 +00:00
Timo Kreuzer
ba31bc03ca [win32k] Implement brush realization part 2 / 2
Use EBRUSHOBJ_pvGetEngBrush to get a handle to the realized (color translated) brush and use this instead of the original pattern when doing patblts. We don't use any XLATEOBJ anymore. I'll leave it to the interested reader to cleanup the DIB code from remnants of pattern to dest color translation.

svn path=/trunk/; revision=41892
2009-07-11 20:15:37 +00:00
Johannes Anderwald
9e97547323 - Implement dynamic unregistration of physical connections
- Implement IUnregisterPhysicalConnection interface for all port drivers


svn path=/trunk/; revision=41891
2009-07-11 19:01:18 +00:00
Johannes Anderwald
9913f96067 - Implement dynamic unregistration of audio devices
- IoGetDeviceProperty expects the PDO, not FDO
- Implement IUnregisterSubdevice interface for all port drivers


svn path=/trunk/; revision=41890
2009-07-11 17:44:41 +00:00
Jeffrey Morlan
038d68b156 Don't use non-portable %zd format. Instead, use %d and cast the variable to an int to ensure printf can read the argument properly
svn path=/trunk/; revision=41889
2009-07-11 16:16:39 +00:00
Matthias Kupfer
8022a4015e make status window parts more flexible in size
svn path=/trunk/; revision=41888
2009-07-11 15:59:46 +00:00
Dmitry Chapyshev
e58af99cc1 - Fix 3 "kernel32_winetest environ" tests. All environ tests passed now
svn path=/trunk/; revision=41887
2009-07-11 14:18:06 +00:00
Johannes Anderwald
76d872ed01 [KMIXER]
- Set KSCREATE_ITEM_WILDCARD flag to receive all requests in one handler
-- 
Kmixer is now back accessible

svn path=/trunk/; revision=41886
2009-07-11 13:52:36 +00:00
Michael Martin
6181543561 - NtMapViewOfSection: When referencing the section object by handle, don't assume access mask of SECTION_MAP_READ. Access mask must be determined from page protection attributes passed in Protect parameter. Fixes 5 winetests for kernel32 virtual.
svn path=/trunk/; revision=41885
2009-07-11 13:40:56 +00:00
Dmitry Chapyshev
fad802aace - Fix one "kernel32_winetest time" test. All time tests passed now
svn path=/trunk/; revision=41884
2009-07-11 13:35:38 +00:00
Matthias Kupfer
0937dce274 use application icon for about dialog
svn path=/trunk/; revision=41883
2009-07-11 13:34:18 +00:00
ReactOS Portable Systems Group
73972e4928 Fix the signature of tcsrchr. The last prameter is a TCHAR, not a XINT.
svn path=/trunk/; revision=41882
2009-07-11 13:12:09 +00:00
ReactOS Portable Systems Group
db532903fb Don't build stack-based WINE exception handling on ARM -- we have .pdata
svn path=/trunk/; revision=41881
2009-07-11 13:11:44 +00:00
ReactOS Portable Systems Group
3622a2263a *** WE WILL NOW BE FOCUSING AND BUILDING FOR ARM CORTEX-A8 (ARMv7) ***
***   SUPPORT FOR ARMv6 WILL ALSO BE ENFORCED, BUT NOTHING LOWER   ***
***       THE TARGET PLATFORM IS TI OMAP3-35xx and OMAP3-34xx      ***

svn path=/trunk/; revision=41880
2009-07-11 13:04:46 +00:00
ReactOS Portable Systems Group
a9f8283eba Fix PSEH2 ARM neutering
svn path=/trunk/; revision=41879
2009-07-11 13:02:22 +00:00
ReactOS Portable Systems Group
0c7489b058 Also define PAGE_SIZE in armddk.h if it isn't already defined (allows cmlib to compile, amongst others)
svn path=/trunk/; revision=41878
2009-07-11 13:00:09 +00:00
ReactOS Portable Systems Group
0e36ca655c GAS should also receive the -march flag, not just the compiler... otherwise, gcc won't let you use things like "cmov" on x86, or anything beyond the armv4 instruction set on ARM
svn path=/trunk/; revision=41877
2009-07-11 12:57:41 +00:00
ReactOS Portable Systems Group
f00eeb0707 WINNT.H already defines CONTEXT so avoid a double-definition if ARMDDK is included
svn path=/trunk/; revision=41876
2009-07-11 12:36:20 +00:00
ReactOS Portable Systems Group
8473ade2b8 Define PAGE_SIZE in winnt.h for now, for modules that don't include the NDK, and then make the NDK and WINNT.H safe to use combined
svn path=/trunk/; revision=41875
2009-07-11 12:35:29 +00:00
ReactOS Portable Systems Group
de1eda4f79 How was this code even supposed to compile???
svn path=/trunk/; revision=41874
2009-07-11 12:34:25 +00:00
ReactOS Portable Systems Group
6f78cdb634 Make rotl what the headers expect
svn path=/trunk/; revision=41873
2009-07-11 12:33:10 +00:00
ReactOS Portable Systems Group
69b01954bd Neuter PSEH2 on ARM
svn path=/trunk/; revision=41872
2009-07-11 12:32:38 +00:00
ReactOS Portable Systems Group
9041b47435 Define ALLOCA_S_MARKER_SIZE for arm
svn path=/trunk/; revision=41871
2009-07-11 12:32:09 +00:00
ReactOS Portable Systems Group
cc54067fdd Just cause it ain't AMD64 ain't meaning it's just x86... so make the macro x86-inclusive instead of x64-exclusive (since we don't want those definitions on ARM either)
svn path=/trunk/; revision=41870
2009-07-11 12:04:26 +00:00
ReactOS Portable Systems Group
b7705f8eeb Fix incorrect use of PVOID for pointer math, hidden by bad typecasts...
svn path=/trunk/; revision=41869
2009-07-11 12:03:28 +00:00
ReactOS Portable Systems Group
fffb5af849 Fix lack of casts in certain intrinsic functions, and add others that were being called but not yet implemented... hopefully 4.4 handles built-in intrinsics for ARM now (remains to be seen)
svn path=/trunk/; revision=41868
2009-07-11 12:02:47 +00:00
ReactOS Portable Systems Group
9964f5e49f KeGetDCacheFillSize is arch-specific, so define it in the x86 region only
svn path=/trunk/; revision=41867
2009-07-11 12:02:05 +00:00
ReactOS Portable Systems Group
a3d7cdabd2 Import the generic template and comment out _M_ARM since the toolchain already defines it.
THE ARM BUILD STARTS UP AGAIN (all host tools and makefiles are generated correctly).
NEW TARGET TOOLCHAIN IS NOW CEGCC 0.55 (GCC-4.4.0).

svn path=/trunk/; revision=41866
2009-07-11 11:52:22 +00:00
Dmitry Chapyshev
4fa43e4494 - Return ERROR_NOT_SUPPORTED error code instead ERROR_CALL_NOT_IMPLEMENTED (in BackupRead, BackupSeek, BackupWrite)
- Direct call for Set(Get)LastError
- Add RemoveVectoredContinueHandler, InterlockedCompareExchange64, GetCurrentProcessorNumber, BaseCheckRunApp, AddVectoredContinueHandler to export list

svn path=/trunk/; revision=41865
2009-07-11 11:50:42 +00:00
ReactOS Portable Systems Group
f1ab67f6ce Too many things in -i386 were still "generic" and had to be duplicated accross plat-specific rbuild files, so moved a whole bunch of them into the generic rbuild.
Ironically, the one thing that isn't generic -- which files get built -- was in the generic file, blocking the arm rbuild from ever being able to use it, so I split this out now.
Cleaned up the i386 and arm rbuild files to use the new generic rbuild.
Brought the arm rbuild file up to spec to use the new compilerset/linkerset and msvc-compliant options.

svn path=/trunk/; revision=41864
2009-07-11 11:47:21 +00:00
ReactOS Portable Systems Group
c1d5a1f6e8 stop building ntdll as a win32dll so we can fucking stop auto-importing mingw_common and kernel32 into it... it's supposed to be built as a /SUBSYSTEM:WINDOWS dll but since rbuild has now decided to fuck around with these DLLs, it's safer to build it as native so it can be left the fuck alone and not auto-import half the tree
svn path=/trunk/; revision=41863
2009-07-11 11:43:49 +00:00
ReactOS Portable Systems Group
9a787312ff __gnu__inline is not supported for a long time in gcc anymore, so remove this to fix a bunch of warnings
svn path=/trunk/; revision=41862
2009-07-11 11:42:29 +00:00
ReactOS Portable Systems Group
c3ca589de0 use %zd for SIZE_T, not just %d
svn path=/trunk/; revision=41861
2009-07-11 11:41:42 +00:00
ReactOS Portable Systems Group
b6f27fe11d Fix a braindead bug that killed my system (512MB) since the loop goes on past 4096 pages if you have enough non paged pool... do you even test this?
svn path=/trunk/; revision=41860
2009-07-11 09:36:18 +00:00
ReactOS Portable Systems Group
2aabdcc5fd - Implement a simple nonpaged pool page allocator and deallocator:
- Not actually used yet!
  - No support for expansion nonpaged pool yet.
  - No major optimizations.
    - We simply do the sane thing of trying to combine the next free allocation with the one we're about to make, on free.
      - If possible, we'll also check if the previous allocation was a free block, and we'll merge ourselves (and in the best case, whoever is following us) into that block instead.
  - No debug checks/validation.
- Write a couple lines of code to allocate and free up to 4096 pages (it will stop when it runs out).
  - This is to properly excercise this code on everyone's machines to make sure it works fine (it adds a little delay to booting, but only temporary).

svn path=/trunk/; revision=41859
2009-07-11 06:46:39 +00:00
Cameron Gutman
08df2017e3 - Initialize remote address to 0 if the caller didn't specify one
svn path=/trunk/; revision=41858
2009-07-11 04:54:44 +00:00
Timo Kreuzer
85f298694e Only call the drivers DrvRealizeBrush when called from BRUSHOBJ_pbGetRbrush. The driver might punt back to GDI and gdi might want to realize the brush although the surface is driver managed. Shuffle functions.
svn path=/trunk/; revision=41857
2009-07-11 01:19:39 +00:00
Timo Kreuzer
635703bc86 Fix cleanup in EBRUSHOBJ_vUpdate, that I commented out for testing purposes.
svn path=/trunk/; revision=41856
2009-07-11 01:05:05 +00:00
Timo Kreuzer
aede9079c6 [win32k] Implement brush realization part 1 / 2
- Fix BRUSHOBJ_pvGetRbrush, it's supposed to provide a realization, when there is none. For this reason call ENRUSHOBJ_bRealizeBrush, that will call Eng/DrvRealizeBrush to create a realisation. The old implementation never did this and I wonder how 3rd party display drivers were expected to work correctly without this.
- Implement EBRUSHOBJ_pvGetEngBrush working similar to BRUSHOBJ_pvGetRbrush, but providing the engbrush as GDI's realization. It's currently implemented as a handle to a translated pattern and not used anywhere yet.
- Rename EBRUSHOBJ_vUnrealizeBrus to EBRUSHOBJ_vCleanup. This function now needs to be called to free the resources for a BRUSHOBJECT that GDI or a driver might have allocated. This is done in DC_Cleanup before deleting the DC and in EBRUSHOBJ_vUpdate before newly initializing it.
- Get rid of the EBRUSHOBJ's XlateObject, instead for now create new XLATEOBJ's whenever needed. Don't worry these will be gone, as soon as we make use of the engbrush.
- Pass a pointer to the DC to EBRUSHOBJ_vInit, as this allows us to save stuff like the back and fore color.
- Fix a bitmap leak: CallDibStretchBlt returned before releasing the reference to the pattern surface.
- Some FASTCALL -> NTAPI changes
- tested with VBE, VMWare-Tools and VBox driver
- I hope I didn't forget anything

svn path=/trunk/; revision=41855
2009-07-10 23:44:05 +00:00
Stefan Ginsberg
a05e363fc9 - Don't link portcls and kmixer to the static version rtl -- those routines are exported by ntoskrnl (and all imports were resolved there anyway).
svn path=/trunk/; revision=41854
2009-07-10 23:13:13 +00:00
Jeffrey Morlan
3c8f7c0167 Rearrange some code in cmd parser, avoiding excessive stack space usage (Bug 4536)
svn path=/trunk/; revision=41853
2009-07-10 22:33:18 +00:00
Cameron Gutman
8cda4903ab - Fix more global variable abuse
- Fix some inaccurate cur_time values

svn path=/trunk/; revision=41852
2009-07-10 21:32:02 +00:00
Benedikt Freisen
2b1fbadac0 - During resizing the future size is shown in the status bar
- Rubber works as color replacer when used with right mouse button
     (mouse handling code reorganized)
- Bug occuring when painting to neg. coordinates finally fixed
- Polygon-tool added
- Bezier-tool added

svn path=/trunk/; revision=41851
2009-07-10 18:21:27 +00:00
Daniel Reimer
6488e69c4a Revert the sync, it breaks build. further investigation will be made next week. 2/2
Sry for the 4 stolen rev numbers ;-)

svn path=/trunk/; revision=41850
2009-07-10 17:25:11 +00:00
Daniel Reimer
91d9b85d53 Revert the sync, it breaks build. further investigation will be made next week. 1/2
svn path=/trunk/; revision=41849
2009-07-10 17:17:43 +00:00
Ged Murphy
c58c9ebb32 - Add the task manager to the tray context menu
- Add a bit of code for the tray properties dialog

svn path=/trunk/; revision=41848
2009-07-10 17:10:20 +00:00
Timo Kreuzer
8333c72806 - Move XLATEOBJ_hGetColorTransform to xlate.c
- Implement InitXlateImpl(), that currently does ... nothing :)
- Don't pass a palette type to IntEngCreateXlate, when already passing a valid palette.

svn path=/trunk/; revision=41847
2009-07-10 17:01:12 +00:00
Daniel Reimer
5b403acdfc Update Wordpad, winhlp32, xcopy to Wine HEAD.
svn path=/trunk/; revision=41846
2009-07-10 16:57:06 +00:00
Daniel Reimer
6de49104bf Update Winfile to Wine HEAD.
svn path=/trunk/; revision=41845
2009-07-10 16:55:08 +00:00
Johannes Anderwald
b046ce1926 [KS]
- The pin creation parameters are now placed right after the reference string. Handle this case in KsValidateConnectRequest
- Only store the passed create items, no need  to copy the passed create items. This is required for enabling dynamic audio devices
- Fix copying of the object class in KsAllocateObjectHeader
- Check for KSCREATE_ITEM_IRP_STORAGE flag in KsCreate
[PORTCLS]
- Reduce initial audio buffer to about 1/3 second which greatly improves performance
[SYSAUDIO]
- Remove concept of audio subdevices
- Remove imported KsCreatePin
- Replace OpenDevice loop hack

svn path=/trunk/; revision=41842
2009-07-10 15:14:56 +00:00
Johannes Anderwald
976cb25f51 - Add create item flags
svn path=/trunk/; revision=41841
2009-07-10 14:41:14 +00:00
Timo Kreuzer
660f744f6f Add static palettes gpalRGB and gpalBGR. They will be used later.
svn path=/trunk/; revision=41840
2009-07-10 13:40:36 +00:00
Dmitry Chapyshev
312cc46636 - Add user mode buffer probing for NtCreateKey, NtEnumerateKey, NtEnumerateValueKey, NtQueryKey, NtQueryValueKey
svn path=/trunk/; revision=41839
2009-07-10 10:02:37 +00:00
Cameron Gutman
4af59e7e33 - Use the target hardware address to find the correct DHCP_ADAPTER for the received packet
svn path=/trunk/; revision=41838
2009-07-10 01:15:51 +00:00
Stefan Ginsberg
2dbd55ac66 - Fix a serious bug in KiDispatchException; DbgkForwardException got called with the SecondChance parameter set to FALSE when forwarding second chance exceptions to user mode debuggers! This bug, introduced in revision 23802, made second chance exceptions appear as first chance to user mode debuggers (meaning unhandled exceptions wouldn't get caught). Bug exposed by the ntdll winetest.
svn path=/trunk/; revision=41837
2009-07-10 01:06:09 +00:00
Johannes Anderwald
e421f65c2b - Remove obsolete DbgBreakPoint
svn path=/trunk/; revision=41836
2009-07-09 22:04:31 +00:00
Johannes Anderwald
d50238833b - Fix a bug which was responsible for most audio-related crashes
- Found by DosX (Gregor Schneider)
- Fix memory leak

See issue #4674 for more details.

svn path=/trunk/; revision=41835
2009-07-09 21:49:04 +00:00
Timo Kreuzer
2d834b1bdd freeldr: Remove duplicated / unused files for amd64 architecture
See issue #4672 for more details.

svn path=/trunk/; revision=41834
2009-07-09 21:41:58 +00:00
Cameron Gutman
e99d1fe3f9 - Implement IOCTL_AFD_SET_INFO
- We currently disregard the value of BlockingMode so this causes no behavior change

svn path=/trunk/; revision=41833
2009-07-09 16:47:11 +00:00
Cameron Gutman
5571325492 - Don't overwrite previously set flags
svn path=/trunk/; revision=41832
2009-07-09 15:55:29 +00:00
Dmitry Gorbachev
52f4e2b161 Add an assertion. Bug #4670.
svn path=/trunk/; revision=41831
2009-07-09 14:56:59 +00:00
Johannes Anderwald
c70e3fd433 - Fix a few bugs in the sample rate conversion code
- Might fix playback for audio samples out of audio adapter supported range

svn path=/trunk/; revision=41830
2009-07-09 14:09:27 +00:00
Timo Kreuzer
7b83de4325 - Move GDI_DEBUG stuff to make it compile again
- Comment out some GDI_DEBUG prints related to deferred deletion, as this floods the log too much

svn path=/trunk/; revision=41829
2009-07-09 13:36:42 +00:00
Johannes Anderwald
fb73a62428 - Stop removing good code, Arch!
svn path=/trunk/; revision=41828
2009-07-09 13:23:00 +00:00
ReactOS Portable Systems Group
16e52e7c46 - Fix a critical bug in the German hack which was causing the last PDE not to be synched with the ReactOS Memory Manager (or worse, the first, if there was only one PDE).
- Add a new file which will hold the executive layer above the pool allocator (the Ex* routines).
  - This should eventually be moved to \ex.
  - Note that the current ReactOS pool Ex* routines are in \mm, which is dead wrong.
- Define the POOL_DESCRIPTOR and POOL_HEADER structures for the NT 5.2 pool.
- Define, create, and implement the routine to initialize a pool vector.
  - For now, we assume you want the nonpaged pool vector/descriptor.
  - Call this routine from the ARM3 initialization routine.
- No changes to system behavior other than the bugfix above.


svn path=/trunk/; revision=41824
2009-07-09 09:33:49 +00:00
Dmitry Chapyshev
62951bd925 - Update Russian translation
svn path=/trunk/; revision=41823
2009-07-09 06:16:10 +00:00
Samuel Serapion
db63f43bde The beginning of the Makefile has comments about the usage of special build flags, one of them, ROS_PREFIX has this notice: "Don't include the dash (-) before gcc.". RBuild has grown up and used the documented behavior but RosBE and the makefile itself isn't consistent and ignore this tidbit.
Attempt to fix build for amd64 and others that use ROS_PREFIX on windows, current rosbe + addon for amd64 dont work without patching the scripts, call me for details...

svn path=/branches/ros-amd64-bringup/; revision=41821
2009-07-09 01:28:44 +00:00
Timo Kreuzer
69d04cfc34 Get rid of the DCs XlateBrush and XlatePen. The resulting code isn't any better yet, but this step is needed for the upcoming xlateobj rewrite.
svn path=/trunk/; revision=41820
2009-07-08 21:53:35 +00:00
Timo Kreuzer
903a26ae64 BltMask: remove unnecessary check
svn path=/trunk/; revision=41819
2009-07-08 21:35:33 +00:00
Timo Kreuzer
9a36897e48 IntGdiPolyPatBlt: Don't unnecessarily update the dc's brush, improve and simplyfy code,
svn path=/trunk/; revision=41818
2009-07-08 21:05:37 +00:00
Stefan Ginsberg
915bec118b - Revert 41788, replaced by a real fix in 41815.
See issue #4663 for more details.

svn path=/trunk/; revision=41817
2009-07-08 21:04:54 +00:00
Stefan Ginsberg
c589c03a22 - NtUserMessageCall: Fix probe-and-capture for the FNID_BROADCASTSYSTEMMESSAGE case -- win32k must copy user mode buffers to safe memory before reading from them (or wrap the operations in SEH). Copy the buffer to the stack as it is small.
svn path=/trunk/; revision=41816
2009-07-08 20:41:58 +00:00
KJK::Hyperion
488bf13922 modified lib/pseh/i386/framebased-gcchack.c
Notorious ass-clown Arch Blackmann forgot to pop the trylevel that handled an exception. Subsequent throws would keep being caught by the same trylevel over and over again, and infinite loops are indeed possible. Eat shit and die, Arch
   If test_bug_4663 test in the PSEH2 test suite is actually representative of the bug, the bug itself may have been fixed

svn path=/trunk/; revision=41815
2009-07-08 20:32:50 +00:00
KJK::Hyperion
3728596a8e modified pseh2/psehtest.c
We need a bigger boat. Improve the test for bug #4663

svn path=/trunk/; revision=41814
2009-07-08 20:28:33 +00:00
Gregor Schneider
973a9493c4 According to http://msdn.microsoft.com/en-us/library/tcxf1dw6(VS.71).aspx and http://www.cplusplus.com/reference/clibrary/cstdio/printf/ there are no %le and %lf printf formats. The 'l' specifier is used for integers or wide characters, 'L' for long double. Outputting a double doesn't require any additional specifier (see http://msdn.microsoft.com/en-us/library/hf4y5e3w(VS.71).aspx).
svn path=/trunk/; revision=41813
2009-07-08 20:06:11 +00:00
KJK::Hyperion
9060c87bad modified include/reactos/libs/pseh/pseh2.h
Only leave the frame in the outermost _SEH2_END (like in PSEH1)

svn path=/trunk/; revision=41812
2009-07-08 19:52:48 +00:00
KJK::Hyperion
d6dcda9708 modified tests/pseh2/psehtest.c
Don't use ok() when we mean trace()
   Fix the stack after corruption of the registration list
   Revised figures: "only" FOURTY of ninety-three tests fail with a corrupted registration list

svn path=/trunk/; revision=41811
2009-07-08 19:40:54 +00:00
KJK::Hyperion
dfccee750d modified tests/pseh2/psehtest.c
Test case for bug #4663 (still unsolved)
   New sanity check for correct unlinking of the frame. !!!EIGHTY TESTS OUT OF NINETY-THREE CURRENTLY FAIL THIS!!!

svn path=/trunk/; revision=41810
2009-07-08 19:30:02 +00:00
Samuel Serapion
e89338deae Remove unneeded character in ROS_PREFIX case of invocation so that TryToDetectThisCompiler() doesn't fail
svn path=/branches/ros-amd64-bringup/; revision=41809
2009-07-08 17:28:52 +00:00
Jeffrey Morlan
24fe0f5f8c In cmd: free all memory before exiting to prevent "memory leak" messages (bug 4510). Also, CMD /? should exit with a code of 1 instead of 0.
svn path=/trunk/; revision=41808
2009-07-08 17:28:21 +00:00
Thomas Bluemel
6ddc722505 Simplify code, thx Ged
svn path=/trunk/; revision=41807
2009-07-08 16:57:12 +00:00
Timo Kreuzer
3fc14e0331 [FORMATTING]
no code change

svn path=/trunk/; revision=41806
2009-07-08 16:19:11 +00:00
Thomas Bluemel
8d45a2401a Allow activating tasks
svn path=/trunk/; revision=41805
2009-07-08 14:33:25 +00:00
Samuel Serapion
09fa8c5b2c Remove unneeded character in ROS_PREFIX case of invocation
svn path=/branches/ros-amd64-bringup/; revision=41804
2009-07-08 08:13:37 +00:00
Cameron Gutman
137c0f6dd5 - Fix retrieval of the default gateway (missing default gateway in ipconfig)
svn path=/trunk/; revision=41803
2009-07-08 07:33:12 +00:00
Cameron Gutman
43a5a4bdb5 - Remove an old hack (r14812) which limited ROS to use only one DNS server
svn path=/trunk/; revision=41802
2009-07-08 07:02:33 +00:00
KJK::Hyperion
1aef6c7fa4 Reverting part of r40006 that introduced a regression (Arch Blackmann HAS been committing to mingw-w64). A real fix, if this is hiding a bug elsewhere, will have to wait until a proper vendor drop of mingw-w64
svn path=/trunk/; revision=41801
2009-07-08 00:48:05 +00:00
Gregor Schneider
453d1d9077 AlphaBlend:
- Return immediately if any bitmap size is smaller than zero
- Also check calculated input bitmap size against source size
- Remove outdated FIXME
- Fixes three gdi32 bitmap winetests

svn path=/trunk/; revision=41800
2009-07-07 16:58:36 +00:00
Gregor Schneider
e80cf32fd5 Geoffroy Couprie <geo DOT couprie AT gmail DOT com>:
- Fix a printf case, where the exponent is zero
- Implement exponent increment/decrement for printf in scientific notation
My changes <grschneider AT gmail DOT com>:
- Change some lessequal/greaterequal to equal
- Exchange OR with AND operation
- Modify patch identation to match current code, remove FIXME
- Skipped the ecvt part of the patch (not needed, sprint has the bugs)
- Fixes five msvcrt printf winetests, see bug #4584 for more information

svn path=/trunk/; revision=41799
2009-07-07 16:19:34 +00:00
James Tabor
552a269ce8 - Add another Vista function WindowFromPhysicalPoint to user32.
svn path=/trunk/; revision=41798
2009-07-07 16:19:23 +00:00
Cameron Gutman
4837e387d0 - Recommit r41782 now that DHCP is ready for the fix
- Start the indexes at 0 (Software loopback will take index 0)

svn path=/trunk/; revision=41797
2009-07-07 05:29:37 +00:00
Cameron Gutman
bfee1bad64 - Remove a bad ASSERT
- TCPPacketSendComplete isn't called from oskittcp

svn path=/trunk/; revision=41796
2009-07-07 04:47:48 +00:00
Cameron Gutman
fc4ea7b821 - Set Size to the size of the buffer we allocated (it previously had stack garbage in it which prevented proper buffer sizing)
- Fixes a buffer overwrite
 - Multiple NIC support is here! (DHCP currently doesn't work for multiple NICs so a static IP address is needed for now)

svn path=/trunk/; revision=41795
2009-07-07 04:40:54 +00:00
James Tabor
94b14962cf - Hit another one. Check window is still alive.
svn path=/trunk/; revision=41794
2009-07-07 03:23:27 +00:00
James Tabor
775000286f - Check window is still alive.
svn path=/trunk/; revision=41793
2009-07-07 00:06:54 +00:00
Stefan Ginsberg
1ab79b4fa3 - Remove a deprecated check from MmpAccessFault -- PsGetCurrentProcess doesn't return NULL since revision 24148.
svn path=/trunk/; revision=41792
2009-07-06 23:35:59 +00:00
James Tabor
a4009f2c99 - Update apptest.
svn path=/trunk/; revision=41791
2009-07-06 20:57:23 +00:00
James Tabor
49042185f8 - fix build.
svn path=/trunk/; revision=41790
2009-07-06 20:56:48 +00:00
James Tabor
9e489f0c75 - Update UpdateLayeredWindow and Indirect.
svn path=/trunk/; revision=41789
2009-07-06 20:56:17 +00:00
Dmitry Gorbachev
b045cc3db5 "Fix" MDL PROBE FAILED! bug #4663.
svn path=/trunk/; revision=41788
2009-07-06 18:28:11 +00:00
Dmitry Gorbachev
e3a50e4fbb Fix compilation with latest GCC.
svn path=/trunk/; revision=41787
2009-07-06 18:26:57 +00:00
KJK::Hyperion
4ff21182dd Reverting incomplete commit r41782 on request of the author
svn path=/trunk/; revision=41786
2009-07-06 18:19:05 +00:00
James Tabor
57aa46671d - Update apitests.
svn path=/trunk/; revision=41785
2009-07-06 16:24:00 +00:00
James Tabor
797cea831c - Update NtGdiOpenDCW to the newest sdk.
svn path=/trunk/; revision=41784
2009-07-06 16:22:11 +00:00
Cameron Gutman
5477d3c2ff - Fix return value of tdiGetMibForIfEntity so it doesn't return a failure status on success
svn path=/trunk/; revision=41783
2009-07-06 07:54:28 +00:00
Cameron Gutman
fe902d9d86 - Register us as a protocol and start the loopback adapter only after we are fully initialized
- Start the loopback adapter before registering as a protocol so binding happens in the correct order (will be important for my next commit)
 - TODO: Cleanup this code

svn path=/trunk/; revision=41782
2009-07-06 04:13:55 +00:00
Matthias Kupfer
c8fc6c56e5 If you hit the close button the taskmanager shouldn't start up anymore
svn path=/trunk/; revision=41781
2009-07-05 15:02:29 +00:00
Dmitry Gorbachev
94fe2f6efe Update Norwegian translations. Lars Martin Hambro, bug #4655.
svn path=/trunk/; revision=41780
2009-07-05 14:51:07 +00:00
Dmitry Gorbachev
bc9c521a84 If exception occurs, leave critical section. Bug #4431.
svn path=/trunk/; revision=41779
2009-07-05 14:08:10 +00:00
James Tabor
0d5243017d - Move PostThreadMessage internals into its own function.
svn path=/trunk/; revision=41778
2009-07-05 07:47:41 +00:00
James Tabor
4419fee70a - Discontinue the use of thread information for the hook check and use client information.
- Moved code around to make it readable.

svn path=/trunk/; revision=41777
2009-07-05 04:00:59 +00:00
James Tabor
3df7c8cf6a - Implement the client shutdown procedure. Tested with wine user32 msg undocumented 0x3B tests. Wine tests: msg: 6175 tests executed (0 marked as todo, 937 failures), 5 skipped.
- Add missing end session types.
- Reference: winproc.c WM_CLIENTSHUTDOWN http://wiki.winprog.org/wiki/Windows_messages

svn path=/trunk/; revision=41776
2009-07-05 02:21:35 +00:00
Cameron Gutman
3c12bab49c - Revert r41761
svn path=/trunk/; revision=41775
2009-07-04 21:28:39 +00:00
James Tabor
77c9c52324 - Cleanup patch tab removeal.
svn path=/trunk/; revision=41773
2009-07-04 16:43:59 +00:00
James Tabor
0aeef70968 - Updates and changes to, with one add on and removal: MenuWindowProc (Not supported in kernel space), PopupMenuWndProcA, PostMessage, SendNotifyMessage and win32k hook debugs.
- Patch by Smiley <johnyadams@hotmail.com>: Wrong PostMessage and SendNotifyMessage behavior, see Bug 4646.
- Reference: Related to TranslateMessage: http://msdn.microsoft.com/en-us/library/aa912145.aspx , Related to PopupMenuWndProcA: Registration of Atom classes, Unicode only: http://www.reactos.org/archives/public/ros-dev/2007-October/009976.html

svn path=/trunk/; revision=41772
2009-07-04 16:31:11 +00:00
Timo Kreuzer
43005003c0 Implement PALETTE_ulGetNearestPaletteIndex and PALETTE_ulGetRGBColorFromIndex, replacing COLOR_LookupNearestColor and COLOR_PaletteLookupPixel
Implement PALETTE_vGetBitMasks

svn path=/trunk/; revision=41771
2009-07-04 13:56:33 +00:00
Christoph von Wittich
b6a256d5f2 sync localui with wine 1.1.25
svn path=/trunk/; revision=41770
2009-07-04 11:52:35 +00:00
Christoph von Wittich
2a8f77e56f sync jscript with wine 1.1.25
svn path=/trunk/; revision=41769
2009-07-04 11:49:53 +00:00
Christoph von Wittich
1e74322bd6 sync cryptui with wine 1.1.25
svn path=/trunk/; revision=41768
2009-07-04 11:47:38 +00:00
Timo Kreuzer
954c70f444 Remove useless function
svn path=/trunk/; revision=41767
2009-07-04 11:45:42 +00:00
Christoph von Wittich
bf334e3e90 sync cryptdlg with wine 1.1.25
svn path=/trunk/; revision=41766
2009-07-04 11:44:39 +00:00
Christoph von Wittich
aec2100352 sync crypt32 with wine 1.1.25
svn path=/trunk/; revision=41765
2009-07-04 11:41:32 +00:00
Dmitry Chapyshev
ed3075871f - GetProcessHeap -> RtlGetProcessHeap
- Add checks at heap allocation
- Add some debug prints

svn path=/trunk/; revision=41764
2009-07-04 08:48:18 +00:00
Cameron Gutman
1511c65eb3 - Don't use a global interface_info struct
- This should allow for multiple NIC support but it's currently broken because GetIfTable returns invalid information for NICs after the first one which prevents DHCP initialization for those adapters

svn path=/trunk/; revision=41763
2009-07-04 03:36:19 +00:00
Timo Kreuzer
4e4637dbb8 Merge eng/palette.c, objects/palobj.c and objects/color.c into objects/palette.c, dropping some useless bitrotting code. The rest of the code needs some love and cleanup.
Btw, Arch, how's the weather?

svn path=/trunk/; revision=41762
2009-07-04 00:18:32 +00:00
Cameron Gutman
37671f6a9e - Fix a typo
svn path=/trunk/; revision=41761
2009-07-04 00:04:05 +00:00
Timo Kreuzer
2120170004 [FORMATTING]
palette.c: remove extended header, fix indentation, no code change

svn path=/trunk/; revision=41760
2009-07-03 23:06:04 +00:00
Timo Kreuzer
5fcc972751 [FORMATTING]
palobj.c: Fix indentation, no code change.

svn path=/trunk/; revision=41759
2009-07-03 22:47:33 +00:00
Sylvain Petreolle
5110e854a6 - Disable debugging flood
svn path=/trunk/; revision=41758
2009-07-03 22:41:56 +00:00
Dmitry Chapyshev
5dbd7278db - .def -> .spec
- Add stubs for AsrAddSifEntryW, AsrCreateStateFileW, AsrFreeContext, AsrRestorePlugPlayRegistryData

svn path=/trunk/; revision=41756
2009-07-03 11:21:42 +00:00
Dmitry Chapyshev
b060be6762 - Fixes return values for PeekMessageA/W
svn path=/trunk/; revision=41755
2009-07-03 09:53:34 +00:00
Dmitry Chapyshev
09f8aa06a9 - Use PWINDOW_OBJECT instead HWND in PostTimerMessages, IntGetPaintMessage, co_MsqTranslateMouseMessage, co_MsqPeekHardwareMessage, co_MsqFindMessage, co_MsqWaitForNewMessages, MsqGetTimerMessage, MsqGetFirstTimerExpiry, co_IntPeekMessage
- Allow hWnd equal -1, 0x0000ffff, 0xffffffff
- Fixes 3 winetests for PeekMessageA/W

svn path=/trunk/; revision=41754
2009-07-03 09:37:44 +00:00
James Tabor
86fe4eade9 - More Window Threads issues. Need to finish the window object rewrite!
svn path=/trunk/; revision=41753
2009-07-03 08:03:56 +00:00
Cameron Gutman
5e7a8d3a1a - TCPIP lock rewrite (part 3 of 3)
- Use a spin lock to protect the signalled connections list
 - Add a debug ASSERT into each function that depends on the TCPLock being held
 - Release TCPLock before completing the IRP
 - Add some locking where it was forgotten
 - Optimize HandleSignalledConnection

svn path=/trunk/; revision=41752
2009-07-03 06:28:59 +00:00
Cameron Gutman
4c8e421fe9 - TCPIP locking rewrite (part 2 of x)
- Add locking in places that need it
 - Eliminate double acquisition of TCPLock for the same request
 - Next step: Verify that all places that need locking have it

svn path=/trunk/; revision=41751
2009-07-03 00:57:47 +00:00
Dmitry Gorbachev
e50ff89e86 Color schemes by Peter Dimitriu. Bug #4654.
svn path=/trunk/; revision=41750
2009-07-02 22:41:39 +00:00
Matthias Kupfer
f71dce8c39 IntIsMenu() removed - use UserGetMenuObject() instead
svn path=/trunk/; revision=41749
2009-07-02 22:28:58 +00:00
Colin Finck
6f56231f21 Merge the OpenTTD update from 0.3.10 branch
svn path=/trunk/; revision=41748
2009-07-02 21:18:18 +00:00
James Tabor
a9a2a4be8f - In the process of rewriting IntGdiCreateDisplayDC, making it an intermediate level support function for IntGdiCreateDC.
svn path=/trunk/; revision=41744
2009-07-02 19:09:32 +00:00
Benedikt Freisen
d5fa564670 Fixed cropping function and implemented size boxes
svn path=/trunk/; revision=41742
2009-07-02 17:02:37 +00:00
Daniel Reimer
8371c9d0d1 Bug 4636: Romanian translation patch by Dimitriu Petru
Bug 4638: Japanese translation update for some files by Tomoya Kitagawa
Bug 4651: Unfinished translation to polish (ichoroszi@gmail.com)
Bug 4652: update for slovak and others translations by Mario Kacmar

svn path=/trunk/; revision=41739
2009-07-02 08:33:06 +00:00
Johannes Anderwald
6b46801171 - Register a device interface for each stream
svn path=/trunk/; revision=41738
2009-07-02 07:58:06 +00:00
Cameron Gutman
21929c948e - tcpip locking rewrite (part 1 of x)
- Use ExInterlocked list functions to manipulate the request lists
 - Fix usage of the wrong lock to protect the listen request list
 - Next step: Optimize usage of TCPLock

svn path=/trunk/; revision=41737
2009-07-02 07:16:50 +00:00
Cameron Gutman
661d9e889c - Don't cancel already completed requests
- Fix potential NULL pointer access
 - Actually disassociate the address file and connection in DispTdiDisassociateAddress
 - Insert new requests at the end of the list not the beginning

svn path=/trunk/; revision=41736
2009-07-02 06:51:34 +00:00
James Tabor
b0f7201ddb - wine sync dde.c and dde_private.h to 1.1.24.
svn path=/trunk/; revision=41735
2009-07-02 05:07:12 +00:00
Matthias Kupfer
a0680b7d25 Mikhail Denisenko <denisenkom AT gmail DOT com>
- Add symbols to system menu by using marlett font.
- See issue #4450 for details.

svn path=/trunk/; revision=41733
2009-07-01 21:56:44 +00:00
Christoph von Wittich
9f3c9390f1 fix msvc build
svn path=/trunk/; revision=41732
2009-07-01 21:31:13 +00:00
Matthias Kupfer
f11dc64ecc change to LOGFONTW, because it's unicode
svn path=/trunk/; revision=41730
2009-07-01 20:54:40 +00:00
Colin Finck
8e916f0d4b Add some more working apps to the Downloader list, update the RosBE link.
Based on a patch by Victor Martinez

svn path=/trunk/; revision=41729
2009-07-01 19:49:45 +00:00
Benedikt Freisen
18bef83e69 Paint:
- Fixed new bug in palette drawing (replacing a + by a -)
- Added "Show grid" and "Show miniature" functions
- Therefore changed the menus -> please check translations

svn path=/trunk/; revision=41728
2009-07-01 19:24:17 +00:00
James Tabor
345be0f17a - Add more vista types. Added another window message type, based on winproc.c. Added two vista prototypes for ntuser.
- Implemented new PostMessage and SendNotifyMessage, this is for bug 4646. I realize the need to update/sync dde code from wine. This relates to the new post and send functions and the use of MsgiKMToUMMessage. Trying to understand this mess.
- CreateDesktop is used to create the HWND_MESSAGE for the desktop. This is a work in progress. The ntuser prototype is updated too. Now pass the correct data from user to kernel space.
- Major update to event code and testing with user32 wine test msg. ATM, only two ntuser notifications are sent if the app has a event hook. Need to add more notifications at the correct points.
- Code arranging in hooks. Testing with user32 cross test works, need to add more ntuser hook calls at the correct points.
- Testing: More is required! User32 cross tests win and msg, win test hangs at flush_events. FF 1.5.x (Still has that funny minimize bug. Play with it and see. Missing one more check I think.) and AbiWord 2.4.1. Notepad lite is doing something very naughty inside it's hook call, with out the source, testing it will be imposable, so someone needs to find an open source program that does the same thing.
- Reference: Drag and drop file into window: winproc.c WM_COPYGLOBALDATA http://wiki.winprog.org/wiki/Windows_messages

svn path=/trunk/; revision=41727
2009-07-01 17:19:16 +00:00
Johannes Anderwald
67c08d9b00 - Remove dead code
- Reuse free audio handle index

svn path=/trunk/; revision=41726
2009-07-01 15:00:12 +00:00
Johannes Anderwald
f6ef04567a - Partly Implement StreamClassReadWriteConfig
- Allocate a HwInstance buffer which is passed to each instantiated filter instance

svn path=/trunk/; revision=41725
2009-07-01 14:44:31 +00:00
Dmitry Gorbachev
645b22988a Fix some warnings / bugs.
svn path=/trunk/; revision=41724
2009-07-01 09:59:47 +00:00
Cameron Gutman
fdb5cd14fe - Fix corruption of ARP target protocol address
- We were copying the address type (1 byte) and 3 bytes of the target address instead of all 4 bytes of the target address

svn path=/trunk/; revision=41723
2009-07-01 05:14:56 +00:00
Timo Kreuzer
8cb1238455 intrin_x86: Don't test for __MSVCSRT__ when implementing _rotr and _rotl. gcc defines __MSVCSRT__ and "knows" these funtions, but doesn't implemnt them.
svn path=/trunk/; revision=41722
2009-07-01 00:40:07 +00:00
Cameron Gutman
fd848cadad - Put the correct source address in Raw IP and UDP packets
- Remove (now unused) IPGetDefaultAddress which just broke things
 - Fixes responses from different IP addresses when trying to ping the loopback adapter
 - See issue #4573 for more details

svn path=/trunk/; revision=41720
2009-06-30 21:14:21 +00:00
James Tabor
5ad493ce71 - Implement support function adding global atoms in win32k.
svn path=/trunk/; revision=41719
2009-06-30 19:12:02 +00:00
Cameron Gutman
95f968d50b - Restore a value that is lost in MiniportReset when AddressingReset is TRUE
- I need to do more investigation on which values need to be restored but I know CurrentLookahead is one of them
 - Add support for protocol-initiated miniport resets

svn path=/trunk/; revision=41718
2009-06-30 18:44:26 +00:00
Christoph von Wittich
2fc619f0ec this should fix ATI IXP700 in compat mode
See issue #4591 for more details.

svn path=/trunk/; revision=41717
2009-06-30 15:57:20 +00:00
Colin Finck
f0b9fbd0f9 SVN maintenance: Add missing svn:ignore properties to many directories and fix some existing ones
svn path=/trunk/; revision=41716
2009-06-30 15:39:49 +00:00
Colin Finck
3c23e13901 Remove non-existing "windows" module, the "optional" one is still just virtual.
See issue #4645 for more details.

svn path=/trunk/; revision=41715
2009-06-30 15:09:08 +00:00
Christoph von Wittich
25e9d83a07 replace some values by constants
svn path=/trunk/; revision=41714
2009-06-30 14:21:33 +00:00
Aleksey Bragin
e468760dd8 - Rewrite VideoPort and Win32k (Eng) event functions to:
* Use a documented ENG_EVENT structure (thus be compatible with Windows videoprt/win32k) instead of a stupid (PKEVENT) casting everywhere through EngEvent or VideoPort event functions;
 * Implement additional checks for user mapped events in EngDeleteEvent and EngWaitForSingleObject;
 * Implement EngReadStateEvent and EngClearEvent.
 * Provide a better, readable code which matches kernelstyle coding guidelines;
 * Remove (stub out) totally incorrect and buggy map user events support;
- Compile videoprt with ms-extensions flag enabled.

svn path=/trunk/; revision=41713
2009-06-30 13:42:42 +00:00
Aleksey Bragin
615a35bf83 - Remove empty directory (include/reactos/drivers/drivers).
svn path=/trunk/; revision=41712
2009-06-30 13:10:27 +00:00
Christoph von Wittich
b82cc3d686 get rid of obsolete SHLocalAlloc/Free functions and export the correct v6 functions instead
patch by <jerome dot gardou at laposte dot net>

svn path=/trunk/; revision=41711
2009-06-30 10:48:41 +00:00
ReactOS Portable Systems Group
c254a0e212 - Move MmIsThisAnNtSystem and MmQueryMemorySize to mmsup.c instead of randomly in mminit.c.
- Cleanup some externs that were never referenced in mminit.c.
- Remove MiShutdownMemoryManager since it was dead code.
- There is no need to define the MiKseg0Start/End variables and loop through the memory descriptors to find the last kernel image. We already have this information through LoaderPagesSpanned saved in MmBootImageSize.
  - Removed these variables, code that depended on them, and MiGetLastKernelAddress, and switch to just using MmBootImageSize, which simplifies things a lot.
- Also simplify the way that the initial memory latout is setup. Now the PFN database will always start after MmBootImageSize + KSEG0_BASE, instead of relying on the fact FreeLDR, on certain machines, may have had leftover space in the 6MB allocation that it makes (And worse, assuming FreeLDR on all architectures will allocate 6MB).
  - This standardizes the PFN database address and makes the code portable.
  - Same for the nonpaged pool address.
- Should not call MmInitializeHandBuiltProcess for the idle process -- this will be called for the system process in PsCreateProcess.
  - The only thing we need, as the comment says, is the kernel MADDRESS_SPACE, so just initialize the lock for it.
- Do not zero MmStats since the load-linker takes care of that for us since it's a global.


svn path=/trunk/; revision=41710
2009-06-30 10:45:36 +00:00
ReactOS Portable Systems Group
15eecb0b40 - Cleanup some debug-only debug prints.
- Make the VA-range-printing debug prints match the same format as those in ReactOS Mm (MiDbgKernelLayout).
  - Add the appropriate number of spaces so that the layout appears continuous, even though it's coming from two source files.
  - This makes it easy to see the VA mappings at boot (but not all of them).


svn path=/trunk/; revision=41709
2009-06-30 10:38:51 +00:00
ReactOS Portable Systems Group
f91f8ec7cf - Rewrite MmAllocateNonCachedMemory and MmFreeNonCachedMemory to use the new functionality present in ARM3.
- These functions now use the MDL routines to allocate their physical memory, since the constraints and requirements are identical as for a non-cached MDL mapping.
  - As for the virtual address space, it is guaranteed once again by System PTEs!
    - If it's not getting old already, optimizations to the System PTE code will, yet again, yield improvements here as well.
- This is the last large kernel-facing memory allocator that needed updating to use System PTEs instead.
  - Only the pool allocator remains (which, for nonpaged pool, also uses System PTEs, present in the nonpaged pool expansion VA).
    - That effort will take significantly longer.


svn path=/trunk/; revision=41708
2009-06-30 08:55:18 +00:00
ReactOS Portable Systems Group
bd27f08336 - Major rewrite of Memory Descriptor List (MDL) implementation (moving it towards using System PTEs).
- MmCreateMdl, MmSizeOfMdl: No Change.
  - MmBuildMdlForNonPagedPool: Do not use MmGetPfnForProcess, just normal PMMPTE manipulation.
    - This seems to cause issues in certain scenarios, because in ReactOS, nonpaged pool, a resident and guaranteed resources, does not always have its PDEs mapped!
    - By calling MmGetPfnForProcess, this wound up in the annals of ReactOS mm code, which lazy-remapped the PDE. We detected this issue specifically in the cache manager, and fixed it there. It should not appear anywhere else.
  - MmAllocatePagesForMdl, MmAllocatePagesForMdlEx, MmFreePagesFromMdl:
    - The *Ex function is now implemented.
    - Allocating pages now uses MiAllocatePagesForMdl, which is based on the older MmAllocPagesSpecifyRange.
      - The code is cleaner, better commented, and better handles partial MDLs.
      - Cache flags are still ignored (so the Ex functionality isn't really there).
  - MmMapLockedPages, MmMapLockedPagesSpecifyCache, MmUnmapLockedPages:
    - These functions now use System PTEs for the mappings, instead of the hacked-up "MDL Mapping Space".
      - This frees up 256MB of Kernel Virtual Address Space.
      - Takes advantage of all System PTE functionality.
      - Once again, optimizations in the System PTE code will be felt here.
    - For user-space mappings however, the old code is still kept and used.
      - MiMapLockedPagesInUserSpace and MiUnMapLockedPagesInUserSpace are now in virtual.c and provide this.
  - MmProbeAndLockPages, MmUnlockPages:
    - The pages are actually probed now, in SEH. This did not seem to happen before (did someone misread the function's name?)
    - Probe for write is only done for write access to user pages (as documented).
    - We do not probe/check for write access for kernel requests (force Operation to be IoReadAccess).
    - Proper locking is used now: Address Space lock for user mappings, PFN lock for kernel mappings.
    - Faulting in pages (to make them available before locking) is now done outside the address space/PFN lock.
      - You don't want to be holding a spinlock/mutex while doing disk I/O!
    - For write/modify access, if the PTE is not writable, fail the request since the PTE protection overrides.
      - However, if the PTE is writable but also copy on write, then we'll fault the page in for write access, which is a legitimate operation for certain user-mode scenarios.
      - The old version always provided the CopyOnWrite behavior, even for non-CopyOnWrite pages!
    - Reference and lock every valid page that has a PFN entry (non-I/O Pages).
      - The older code did not seem to lock pages that had to be faulted in (weren't already valid).
    - Cleanup the cleanup code (no pun intended). Because we now mark the pages as locked early-on, and because of changes in MmUnlockPages, we can simply use MmUnlockPages in case of error, since it will be able to fully back-out and references/locks that we did.
      - Previous code attempted to do this on its own, in a pretty inconsistent manner, which would leave page leaks (both in references and lock count).
    - In MmUnlockPages, not as many changes, but we now:
      - Still make sure that an I/O Mapping MDL doesn't have valid PFN database pages (non-I/O).
        - An MDL can cover pages that are both I/O mapped and RAM mapped, so we have to unlock/dereference the latter instead of skipping them as the old code did.
      - Use the PFN lock when checking pages and unlocking/dereferencing them.
  - Overall, non-complete MDLs are now marked by having a -1 PFN, and the MDL code has been updated to early-break out of page-scanning loops and/or ignore such pages, which can happen in a sparse MDL.
  - Implementation has been tested on VMWare and QEMU for a variety of tasks and was found to be reliable and stable.

svn path=/trunk/; revision=41707
2009-06-30 08:29:22 +00:00
Cameron Gutman
fdf20e8c9a - Memtrack enhancements
- It now warns us when it detects an entry that wasn't freed by a memtrack-enabled function
 - It also provides some info when it detects a double free
 - Removed some extra tag tracking junk

svn path=/trunk/; revision=41705
2009-06-30 02:30:36 +00:00
Matthias Kupfer
90f47c629c - revert selecting color and inactive menu state, because it doesn't work that way
- needs further invastigation

svn path=/trunk/; revision=41704
2009-06-30 00:44:59 +00:00
Colin Finck
66873243b7 Andrew Steinborn (asteinborn78@gmail.com)
- Update Firefox link to 3.0.11
  Will also be merged to the 0.3.10 release once I clean up the Downloader list there.

See issue #4642 for more details.

svn path=/trunk/; revision=41702
2009-06-29 22:21:11 +00:00
Christoph von Wittich
fad8c3dbfa fix formatting
svn path=/trunk/; revision=41700
2009-06-29 21:10:40 +00:00
Cameron Gutman
6bed52e321 - Allocate IP_PACKET on the stack
- Reduces non-paged memory consumption

svn path=/trunk/; revision=41698
2009-06-29 20:18:32 +00:00
Matthias Kupfer
44ab91c5e6 - continue "marletting"
- scrollbar size grip with marlett
- untested for DFCS_SIZEGRIPRIGHT, but should work too

svn path=/trunk/; revision=41697
2009-06-29 20:18:21 +00:00
Christoph von Wittich
c80e60de20 more header cleanup
svn path=/trunk/; revision=41696
2009-06-29 19:50:12 +00:00
Christoph von Wittich
9458da0029 fix build
svn path=/trunk/; revision=41695
2009-06-29 18:47:29 +00:00
Colin Finck
4d9e5830a1 SVN maintenance: Remove some svn:keywords properties
svn path=/trunk/; revision=41694
2009-06-29 18:24:35 +00:00
Christoph von Wittich
c80579baa7 include winreg.h
svn path=/trunk/; revision=41693
2009-06-29 18:23:48 +00:00
Christoph von Wittich
567fa14209 sync test.h with wine 1.1.24
svn path=/trunk/; revision=41691
2009-06-29 17:57:47 +00:00
Christoph von Wittich
5c86565676 define WINE_UNICODE_API msvc compatible
svn path=/trunk/; revision=41690
2009-06-29 17:53:26 +00:00
Christoph von Wittich
9efabca05c some header cleanup
svn path=/trunk/; revision=41689
2009-06-29 17:38:57 +00:00
Matthias Kupfer
6d45e8b2a1 CBS_DISABLENOSCROLL ist quite useless
svn path=/trunk/; revision=41688
2009-06-29 17:24:42 +00:00
ReactOS Portable Systems Group
2d48fb35be - Fix an incorrect (should be 1024) ASSERT by removing it entirely (no real point to having it).
- Fixes issues on systems where it turns out the PDE-alignment actually goes beyond 4 million bytes (since 4MB is a little bit more, and is the maximum alignment-based boost you can get).


svn path=/trunk/; revision=41687
2009-06-29 17:17:22 +00:00
Matthias Kupfer
6ac24476f4 fix scrollbar button issue and make it look like windows
svn path=/trunk/; revision=41686
2009-06-29 16:47:56 +00:00
Christoph von Wittich
35b378556e sync wincrypt.h with wine 1.1.24
svn path=/trunk/; revision=41685
2009-06-29 16:26:46 +00:00
Christoph von Wittich
06f4d32679 -revert IXP700 change as it doesn't seem to fix the issue (AHCI only?)
-fix support for ICH7,ICH7M,ICH8,ICH8M,ICH9,ICH9R,ICH9M and ICH10 in compat mode

svn path=/trunk/; revision=41684
2009-06-29 14:32:37 +00:00
Matthias Kupfer
675f170bbc - minor improvements in drawing
- remarks for problems and further changes

svn path=/trunk/; revision=41682
2009-06-29 11:23:10 +00:00
James Tabor
15f261eec5 - Fix build: use gpsi->dwInstalledEventHooks instead of gpsi->SrvEventActivity
svn path=/trunk/; revision=41680
2009-06-29 06:07:15 +00:00
Timo Kreuzer
5dd7ba40f8 - Remove ntuser syscolor functions from win32k (NtUserCallTwoParam)
- Remove syscolor pen support from win32k
- use gpsi->dwInstalledEventHooks instead of gpsi->SrvEventActivity
- remove reactos specific fields from SERVERINFO

svn path=/trunk/; revision=41679
2009-06-29 03:36:31 +00:00
Timo Kreuzer
314b21119c Get rid of the SysColorPen stuff in user32, it's a wine concept. Use DC pen instead.
svn path=/trunk/; revision=41678
2009-06-29 02:49:57 +00:00
Johannes Anderwald
cbad176bd8 - Remove alternative definition of KSDATAFORMAT which was introduced in 41468 and also exists in MS header
- Fixes breakage of AC97 in real hw
- MS should start fixing their headers

svn path=/trunk/; revision=41677
2009-06-28 23:16:41 +00:00
Christoph von Wittich
6a728de43e add SIIMIO flag for IXP700 like done for Silicon Image controllers
svn path=/trunk/; revision=41676
2009-06-28 21:02:44 +00:00
Aleksey Bragin
5f39190d38 - Prevent PEVENT type redifinition (which is fine with MSVC but not with GCC).
svn path=/trunk/; revision=41675
2009-06-28 20:52:37 +00:00
Johannes Anderwald
92fa1b9f95 - Fix broken check for KSDATARANGE_AUDIO
- Zero struct

svn path=/trunk/; revision=41674
2009-06-28 20:06:45 +00:00
Aleksey Bragin
07fd6e0b76 - Add ENG_EVENT structure definition (from MSDN) to ntddvdeo.h.
- Fix PEVENT definition in video.h: it's not some mystic VIDEO_PORT_EVENT which is not defined anywhere, it's a documented structure, which has to be compatible with the structure used in win32k EngEvent* functions too.

svn path=/trunk/; revision=41673
2009-06-28 18:58:45 +00:00
Matthias Kupfer
831c3b7900 add svchost.exe to install package
svn path=/trunk/; revision=41672
2009-06-28 18:23:05 +00:00
Daniel Reimer
4a92fcca6f Sync wordpad and winhlp32 with wine 1.1.24.
svn path=/trunk/; revision=41671
2009-06-28 17:27:56 +00:00
Colin Finck
1daa242cc5 - Give the "windows" module a more meaningful name.
It's now called "optional" as it started to contain other stuff apart from Windows native libraries.
- Add an optional file reference to the Systema font for Japanese text. The Japanese ROS GUI is already using it.
  This is probably just an intermediate solution as the font is Japanese-only (no Chinese or Korean support) and might not fit that well for dialogs, but it should serve us well for some time.

svn path=/trunk/; revision=41666
2009-06-28 14:41:02 +00:00
KJK::Hyperion
b9613ba11f modified base/applications/taskmgr/affinity.c
modified   base/applications/taskmgr/debug.c
modified   base/applications/taskmgr/endproc.c
modified   base/applications/taskmgr/priority.c
   Arch Blackmann has never heard of exotic features of the C language such as "subroutines"

modified   base/applications/taskmgr/dbgchnl.c
modified   base/applications/taskmgr/procpage.c
modified   base/applications/taskmgr/procpage.h
   Did you know that Task Manager killed the wrong process when using the context menu? Fixed by using a sophisticated "subroutine" that reads the process entry index from the currently selected list item's client data, replacing the copy-pasted code that used the index of the list entry as the process entry index (which only worked before due to no sorting)
   Save the sort column and order

modified   base/applications/taskmgr/taskmgr.c
   Sort by image name by default

svn path=/trunk/; revision=41664
2009-06-28 14:22:09 +00:00
Johannes Anderwald
a40dc20557 - Fix build
svn path=/trunk/; revision=41663
2009-06-28 14:12:58 +00:00
Johannes Anderwald
4a0debf9c8 - Start implementing the stream class driver
- Implemented StreamClassRegisterAdapter, StreamClassReenumerateStreams, StreamClassDebugAssert, StreamClassDebugPrint, StreamClassGetDmaBuffer
- Drivers using stream class driver should now be able to initialize

svn path=/trunk/; revision=41662
2009-06-28 13:58:47 +00:00
Christoph von Wittich
593091354a fix formatting
svn path=/trunk/; revision=41661
2009-06-28 13:52:27 +00:00
Dmitry Chapyshev
a291ebef7a - Change icon for msiexec to Tango icon
svn path=/trunk/; revision=41660
2009-06-28 09:21:47 +00:00
ReactOS Portable Systems Group
9aa3e64dfc - Create mmsup.c in ReactOS memory manager directory. It hosts misc support functions:
- Copy kmap.c here, since it's the very definition of "misc support function"
  - Copy some exported functions in mm.c which were listed as "misc functions"
    - Warn that current implementation of MmIsNonPagedSystemAddressValid will kill kittens.
- Rename mm.c to mmfault.c, since other than the misc functions now in mmsup.c, it was all routines to handle page/access faults.
  - Warn that MmIsAddressValid, as currently implemented, kills puppies.
  - Move WriteWatch functions to virtual.c since they're part of the Virtual API system call set already hosted there.
  - Move the global variables that people had been throwing in here to mminit.c, which is slightly more appropriate.
- Move wset.c's MmTrimUserMemory to balance.c, since that's where all other similar functions are located.
  - Incidentally, kill wset.c, as this was the only function present.
- No functional changes, just refactoring and cleanup (other than warning the critter murder the two broken functions will achieve if called).

svn path=/trunk/; revision=41659
2009-06-28 07:52:30 +00:00
ReactOS Portable Systems Group
6da15076da - Move all the functions from drvlck.c and verifier.c to ARM3's drvmgmt.c:
- "Managing driver managing" (by David Welch) is no more... the routines have been properly renamed and cleaned up.
  - Also moved Driver Verifier helper routines in here, and fixed a couple of bugs:
    - Do not allow hooking of the kernel or HAL image (tested on Windows Server 2003)
    - Cleanup some useless variable redefinitions and code complexity.
  - Documented what some of the Mm Lock/Unlock Pageable Section/Driver functions should do, for later if needed.
  - Made aliasses so the typo "Pagable" functions redirect to the correct "Pageable" functions.
  - No functional change -- the Verifier functions were unused, and the drvlock.c functions were unimplemented (and still are).
  - Also move one more *Pageable* function from wset.c to ARM3's drvmgmt.c -- it seemed to have been a lost orphan (Also unimplemented).


svn path=/trunk/; revision=41658
2009-06-28 07:32:52 +00:00
ReactOS Portable Systems Group
ca525de77d - Reimplement MmAllocateContiguousMemory, MmAllocateContiguousMemorySpecifyCache, MmFreeContiguousMemory, MmFreeContiguousMemorySpecifyCache:
- Use a smarter algorithm (as described here: http://www.microsoft.com/whdc/Driver/tips/ContigMem.mspx) to first try to satisfy the allocation by a simple nonpaged pool allocation (for cached requests only).
    - This range is then checked for physical continuity, since it's not guaranteed for non-initial-pool allocations (and right now in ReactOS, it never is).
  - As a fallback, Windows NT then attempts to scan free nonpaged pool pages. This is not yet implemented since the ReactOS nonpaged pool is not usually contiguous (to the level that NT's is).
    - When the ARM pool is implemented and replaces nonpaged pool, this code path will have to be implemented.
  - As a last resort, the actual PFN database is scanned for contiguous free pages.
    - ReactOS used MmGetContiguousPages for this, which blindly scanned the PFN database. New MiFindContinuousPages will scan the physical memory descriptor block recently implemented, which avoids going over pages we already know are going to be unusable.
    - The ReactOS function also held the PFN lock for the entire duration of the scan, which is significant on systems with large memory. Instead, we make an initial unsafe scan first, and only lock when we think we've found a correct range (and we'll then reconfirm the ranges).
    - Finally, the older function actually did a double-scan to try to avoid using memory ranges under 16MB, which was useless on today's systems and also rather inefficient.
    - Other than that, the actual setup of the PFN entry is copy-pasted from the old ReactOS function, so nothing's changed there -- the page still looks the same, but the selection algorithm is faster and more accurate.
  - Once the pages are found, we piggyback on the new I/O mapping mechanism (which uses System PTEs) instead of doing it all over by hand as before.
  - Since the underlying support is still System PTEs, once again, optimizations to that component will yield significant improvements here too.

svn path=/trunk/; revision=41657
2009-06-28 05:43:12 +00:00
James Tabor
25e75aa265 - Add more hooks, where wine has them placed. Fixed user32 hooks for win32k.
svn path=/trunk/; revision=41656
2009-06-28 03:02:15 +00:00
Timo Kreuzer
f0ab7bf60b unbreak build of rostests
svn path=/trunk/; revision=41655
2009-06-28 00:05:51 +00:00
Christoph von Wittich
21351adff5 fix advapi32 crypt winetests
patch sent to wine

svn path=/trunk/; revision=41654
2009-06-27 23:55:29 +00:00
Timo Kreuzer
1fc4b3e8ca [FORMATTING] Fix indentation, no code change
svn path=/trunk/; revision=41653
2009-06-27 23:54:02 +00:00
Timo Kreuzer
36526f9157 Update SERVERINFO, PFNCLIENT, PFNCLIENTWORKER to Windows 7 version, add OEMBITMAPINFO, DPISERVERINFO, PERUSERSERVERINFO
Add -fms-extensions compilerflag to user32, win32k, csrss, win32csr.

svn path=/trunk/; revision=41652
2009-06-27 23:33:57 +00:00
Timo Kreuzer
8af77479df Don't save/change/restore the DC pen in IntDrawScrollInterior, where it's not used at all.
svn path=/trunk/; revision=41651
2009-06-27 23:12:22 +00:00
ReactOS Portable Systems Group
39374c3ad4 - Copying from destination to destination isn't very smart.
- Fix bug when creating the physical memory descriptor block.


svn path=/trunk/; revision=41650
2009-06-27 22:51:23 +00:00
ReactOS Portable Systems Group
e52bb6e5ac - Actually it seems MmGetPhysicalMemoryRanges uses the MmPhysicalMemoryBlock, so go ahead and implement that function.
- Thanks to Matthieu Suiche (http://www.msuiche.net/2008/09/17/retrieving-mmphysicalmemoryblock-regardless-of-the-nt-version/).
  - Move physical.c into ARM3 and call it dynamic.c since these functions are for Dynamic Memory (Hotplug) for Server 2003.
  - Remove the old copyright header, as copy-pasting 5 DDK function definitions and rewriting them to say UNIMPLEMENTED isn't much of a copyright.


svn path=/trunk/; revision=41649
2009-06-27 22:39:03 +00:00
ReactOS Portable Systems Group
b254273e3b - Call MmArmInitSystem for a second time, this time in Phase 1.
- This will call MmInitializeMemoryLimits (now implemented) which will go ahead and create the MmPhysicalMemoryBlock.
    - This block contains the physical memory "runs" that are valid on the system, allowing the PFN database to differentiate between valid and non-valid RAM (instead of marking things as "BIOS").
  - Also this will come in handy later for various utilities.


svn path=/trunk/; revision=41648
2009-06-27 22:16:47 +00:00
Sylvain Petreolle
d7a781de82 Taskmgr didn't build without compilation units,
moving PerfDataGet to perfdata functions fixes it.

svn path=/trunk/; revision=41647
2009-06-27 22:05:53 +00:00
James Tabor
5c0c60f056 - Fix callback set and changed data. Process hooks if we are hooked.
svn path=/trunk/; revision=41646
2009-06-27 20:52:33 +00:00
KJK::Hyperion
dd218680c6 Allow sorting the list of processes in Task Manager by any column. Patch by Maxime Vernier <maximevernier@gmail.com> with fixes by Sylvain Petreolle <spetreolle@yahoo.fr> and KJK::Hyperion <hackbunny@reactos.org>
See issue #4608 for more details.

svn path=/trunk/; revision=41645
2009-06-27 19:16:29 +00:00
Stefan Ginsberg
ad91dd3fcd - Add some defines in preparation for _WINE.
- Add missing ExtDeviceMode and PrivateExtractIconsA/W to PSDK and remove from Wine-only headers, as these are defined in the official PSDK.

svn path=/trunk/; revision=41644
2009-06-27 19:06:00 +00:00
Christoph von Wittich
29572196b7 fix two kernel32 locale winetests
svn path=/trunk/; revision=41643
2009-06-27 18:46:10 +00:00
James Tabor
dc74ea0bbe - Implement the rest of the HCBT_ support.
svn path=/trunk/; revision=41642
2009-06-27 18:36:29 +00:00
Sylvain Petreolle
4c329721d8 Add MIXERCONTROL_CONTROLTYPE_BASS_BOOST and KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
svn path=/trunk/; revision=41641
2009-06-27 14:41:56 +00:00
Stefan Ginsberg
74ddcbe68d - KeDetachProcess & KeUnstackDetachProcess: Fix a typo when swapping back to the original process that would switch _from_ the original process to itself. We now properly swap from the _current_ process.
svn path=/trunk/; revision=41640
2009-06-27 11:07:58 +00:00
ReactOS Portable Systems Group
fea1ac4782 - This patch is lets you visually dump the entire ReactOS PFN database, useful for debugging. Surprising nobody had done in this in the past, since it wasn't too hard (but it took a bit long to figure out how to get it in there).
- That's what she said.


svn path=/trunk/; revision=41639
2009-06-27 09:54:56 +00:00
Cameron Gutman
a932210bfa - Always call the completion handler so we don't leak packet descriptors
- Don't remove the NCE if we fail because it may not be ours
 - Mark the IRPs pending before we insert them into our queue
 - Check that the addresses match so we don't receive somebody else's packets
 - Part 1 of 2

svn path=/trunk/; revision=41638
2009-06-27 08:48:58 +00:00
ReactOS Portable Systems Group
ad9f3a761f - Remove leftover performance tracing code.
svn path=/trunk/; revision=41637
2009-06-27 08:43:56 +00:00
ReactOS Portable Systems Group
ddedfd132a - Reimplement kernel stack allocation (MmCreateKernelStack, MmDeleteKernelStack, MmGrowKernelStack, MmGrowKernelStackEx):
- Use System PTEs.
  - Allocate 12KB stacks with a 4KB guard page, and expand them up to 60KB as required.
    - Previous implementation always allocated 60KB, without any guard page.
  - The result is that on a minimal ReactOS install, simply booting up now requires an average of 0.5MB less of physical memory than before.
  - And once again, optimizations to the system PTE allocation code should significantly improve performance.
  - Should also analyze benefits of using a dead stack slist as done on Windows. (Assembla Ticket #39).


svn path=/trunk/; revision=41636
2009-06-27 08:41:45 +00:00
Christoph von Wittich
5a526879a4 tabs -> spaces
use more consistent indentation

svn path=/trunk/; revision=41635
2009-06-27 07:38:02 +00:00
ReactOS Portable Systems Group
fdf4fe9afa - Allocate enough space for the ARM3 PFN database, and fixup the calculation of the initial nonpaged pool.
- The ARM3 PFN database is more of a "shadow" database not to interfere with the real ReactOS PFN database. It starts at 0xB0000000, which is where the initial nonpaged pool started (which now starts somewhere after the ARM3 PFN database).
- No new behavior has been introduced other than additional physical memory consumption for the PFN DB pages, and updated memory layout in the ARM3 world.


svn path=/trunk/; revision=41634
2009-06-27 07:14:52 +00:00
Cameron Gutman
2d20864907 - Use the timeout that the caller gives us if it is nonzero so we don't block forever if nobody wakes us
svn path=/trunk/; revision=41633
2009-06-27 07:03:45 +00:00
Cameron Gutman
9722b61095 - The timeout value passed to tsleep is in milliseconds and so_linger is in seconds so convert to milliseconds
svn path=/trunk/; revision=41632
2009-06-27 06:59:22 +00:00
ReactOS Portable Systems Group
689615967e - Blow away the bottom 2GB of virtual address space in the ARM^3 initializer. Previously this was kind of done with MmUnmapPageTable in MmInit1, but this code (And the function, which had only been used for this purpose, are gone)
- Also set the Page Directory for the system/idle process in a slightly more correct way, instead of depending on the CR3 value. Do this in ARM^3 now, and remove the older code (and the MmGetPageDirectory function, which was only used by this).


svn path=/trunk/; revision=41631
2009-06-27 05:32:53 +00:00
Cameron Gutman
dabb3e9f98 - Don't leave the listen IRP in the queue when cancelling the listen request
- Kill all the requests before closing the socket
 - Notify oskittcp when we are cancelling requests so it can properly close the socket

svn path=/trunk/; revision=41630
2009-06-27 03:23:10 +00:00
Cameron Gutman
97d8658da9 - Acquire the cancel spin lock before calling IoSetCancelRoutine
- Remove some extra junk

svn path=/trunk/; revision=41629
2009-06-27 03:14:06 +00:00
ReactOS Portable Systems Group
128aefcd63 - Rewrite MmMapIoSpace and MmUnmapIoSpace to use System PTEs instead.
- Much faster and cleaner (will be even faster when System PTE allocation is optimized).
- Better handling of esoteric caching options, especially relevant for ARM.
  - Handled through the MiPlatformCacheAttributes, which should be defined differently for each platform (TODO).
    - Handles both I/O (device) and RAM physical memory.
- Correct flushing of CPU caches (not a big deal on x86, but matters on ARM).


svn path=/trunk/; revision=41628
2009-06-27 03:03:24 +00:00
ReactOS Portable Systems Group
6e8a0cf662 - ARM3-ify hypermap.c
svn path=/trunk/; revision=41627
2009-06-27 03:00:35 +00:00
ReactOS Portable Systems Group
a39c949acf - Implement MiReleaseSystemPtes which is the function to deallocate System PTE allocations.
- We do some minor optimizations to combine chunks if possible after a free, similar to MD Block algorithms in freeldr.c.

svn path=/trunk/; revision=41626
2009-06-27 02:56:58 +00:00
Johannes Anderwald
a0803f70c2 - Add STREAM_DEBUG_LEVEL
svn path=/trunk/; revision=41625
2009-06-26 16:30:44 +00:00
Johannes Anderwald
8b461b7616 - Write strmini.h for stream class driver
svn path=/trunk/; revision=41624
2009-06-26 15:51:14 +00:00
Johannes Anderwald
af23e9415c - Callback routine expects fdo
- Fix boot

svn path=/trunk/; revision=41623
2009-06-26 14:17:12 +00:00
Johannes Anderwald
a74571e0a9 - fix build broken in rev 41621
svn path=/trunk/; revision=41622
2009-06-26 13:08:09 +00:00
Johannes Anderwald
28685db4e4 - Rewrite PcRegisterIoTimeout, PcUnregisterIoTimeout to support more than one PIO_TIMER_ROUTINE per device object
svn path=/trunk/; revision=41621
2009-06-26 12:05:13 +00:00
Aleksey Bragin
d6d058ab49 - Implement NtSetThreadExecutionState (in place of what has been committed in r41599 and reverted in 41619).
svn path=/trunk/; revision=41620
2009-06-26 09:39:00 +00:00
Christoph von Wittich
c98e73cfce revert 41599
svn path=/trunk/; revision=41619
2009-06-26 07:22:34 +00:00
Christoph von Wittich
4e67d94e81 fix formatting
svn path=/trunk/; revision=41618
2009-06-26 06:34:25 +00:00
James Tabor
f69cbf46cc - Fix breakage when in HCBT_CREATEWND callback.
svn path=/trunk/; revision=41617
2009-06-26 02:10:52 +00:00
James Tabor
336fb5e2d6 - Turn off callback for HCBT_CREATEWND.
svn path=/trunk/; revision=41616
2009-06-26 00:30:54 +00:00
James Tabor
576c4e61fe - Fix ATOM check for HCBT_CREATEWND callback.
svn path=/trunk/; revision=41615
2009-06-25 21:00:16 +00:00
James Tabor
f1ab1a2cae - Implement HCBT_CREATEWND support. Tested with user32 cross wine tests, still hangs on win test. For Christoph.
svn path=/trunk/; revision=41614
2009-06-25 20:39:32 +00:00
Sylvain Petreolle
8ce3178f05 Add accessibility keys.
svn path=/trunk/; revision=41613
2009-06-25 19:58:12 +00:00
Johannes Anderwald
7480a839ca - revert 41605 as its incorrect
svn path=/trunk/; revision=41612
2009-06-25 18:48:46 +00:00
Christoph von Wittich
c1b0f80304 sync shell32 with wine 1.1.24
svn path=/trunk/; revision=41611
2009-06-25 14:39:01 +00:00
Dmitry Gorbachev
ff37974bba Remove a hack from NtAccessCheck(). Bug #4169.
svn path=/trunk/; revision=41610
2009-06-25 13:29:58 +00:00
KJK::Hyperion
d53c35b02b No reason to compile PSEH2 with other compilers than GCC
svn path=/trunk/; revision=41607
2009-06-25 10:27:57 +00:00
Johannes Anderwald
f760f8c906 - Don't modify access status when function fails
- reduces advapi32_winetest security failures by 3

svn path=/trunk/; revision=41605
2009-06-25 07:16:26 +00:00
Timo Kreuzer
68ccd5f6e4 Rewrite (NtUser)SystemParametersInfo and related.
- Instead of getting the data from the window station and other strange places, the values are now mostly stored in a global variable. This is possible because NtUserSystemParametersInfo should fail anyway when being called from a non-interactive windowstation (tested on windows XP).
- WM_SETTINGCHANGE is now properly sent not posted to all toplevel Windows also passing the registry string as the lParam value (strings could need some testing).
- SystemMetrics are now set and updated from system parameters.
- Most values are now properly loaded from registry and also saved.
- user32_winetest sysparams: before: 634 executed / 235 failures, after: 1093 executed, 11 failures
- Fixes the non-bold caption font in 2nd stage.
- Implements a number SPI codes.
- Implements helper functions for registry and file access
Thanks to all testers for all the regression testing :)


See issue #4595 for more details.

svn path=/trunk/; revision=41604
2009-06-25 02:43:38 +00:00
Dmitry Gorbachev
8101b8e12f Hack: partially undo r38510 changes to overcome regression (bug #4169).
svn path=/trunk/; revision=41603
2009-06-24 22:23:29 +00:00
Christoph von Wittich
1ef5fa35af fix typo
svn path=/trunk/; revision=41602
2009-06-24 22:12:48 +00:00
Christoph von Wittich
d01aa9d736 fix formatting
svn path=/trunk/; revision=41601
2009-06-24 22:07:50 +00:00
Cameron Gutman
5d33bdc236 - Fix a crash that happens when we are running at APC_LEVEL, acquire the recursive mutex (which improperly handled APC_LEVEL), then attempt to access paged pool (or do anything else that depends on Irql < DISPATCH_LEVEL)
- Optimize the code for acquiring and releasing the recursive mutex at DISPATCH_LEVEL

svn path=/trunk/; revision=41600
2009-06-24 21:57:48 +00:00
Christoph von Wittich
5206a90897 stub NtSetThreadExecutionState needed by PowerPoint Viewer 2003
svn path=/trunk/; revision=41599
2009-06-24 19:53:54 +00:00
Christoph von Wittich
b1dcc588eb fix crash while loading PowerPoint 2003 Viewer
See issue #4624 for more details.

svn path=/trunk/; revision=41598
2009-06-24 19:53:06 +00:00
Stefan Ginsberg
de0a0cf543 - Hey Arch, try to learn basic PSEH2 syntax before fuddling around with it.
svn path=/trunk/; revision=41597
2009-06-23 23:06:10 +00:00
Cameron Gutman
5c78f6d219 - Fix the order of checks
svn path=/trunk/; revision=41590
2009-06-23 14:51:50 +00:00
Cameron Gutman
d516d6898c - We only need 11 chars to hold our 32-bit integer and the trailing NULL char
- Make sure we don't overread our buffer

svn path=/trunk/; revision=41589
2009-06-23 14:47:48 +00:00
Cameron Gutman
42e13d3260 - Move NDIS_VERSION into ndissys.h and use it for NdisGetVersion also
svn path=/trunk/; revision=41587
2009-06-23 14:09:59 +00:00
Cameron Gutman
39572f4e0d - Fix adapter failure if a network address of invalid length is specified
svn path=/trunk/; revision=41586
2009-06-23 14:00:49 +00:00
Cameron Gutman
8267318b15 - Fix a crash when reading the network address from the registry
- Fixes bug 4634

svn path=/trunk/; revision=41585
2009-06-23 13:58:56 +00:00
Christoph von Wittich
d8a2e91f8e sync urlmon with wine 1.1.24
svn path=/trunk/; revision=41584
2009-06-23 13:37:11 +00:00
Cameron Gutman
e230289f94 - Fix adapter failure when a network address is not specified in the registry
- As a bonus, it also fixes OID_802_3_PERMANENT_ADDRESS

svn path=/trunk/; revision=41583
2009-06-23 12:41:14 +00:00
Christoph von Wittich
0e7c48671b sync ntdll rtlstr winetest with wine 1.1.24
svn path=/trunk/; revision=41582
2009-06-23 12:02:58 +00:00
Christoph von Wittich
aa2eef5de1 sync crypt32_winetest with wine 1.1.24
svn path=/trunk/; revision=41581
2009-06-23 11:47:46 +00:00
Christoph von Wittich
2d5297edef sync kernel32_winetest with wine 1.1.24
svn path=/trunk/; revision=41580
2009-06-23 11:44:23 +00:00
Christoph von Wittich
c90eb62d17 sync shlwapi with wine 1.1.24
svn path=/trunk/; revision=41579
2009-06-23 11:24:10 +00:00
ReactOS Portable Systems Group
2c293c30c4 - Reimplement the way zeroing PTEs are used:
- First, switch to using system PTEs as it should've been from the beginning. Our original implementation was broken and prone to race conditions, which Dmitry graciously fixed.
  - We can now remove the MiZeroPageInternal hack that was used as a way to avoid deadlock/contention in the zero paths.
  - Zeroing PTEs is done at DPC level in ReactOS, to avoid ReactOS-specific race issues. In Windows NT, this operation is always done at passive.
  - Zeroing PTEs are similar to hyperspace PTEs, but they can be mapped in chunks for optimization. 
    - ReactOS does not currently make use of this functionality, so zeroing is pretty slow, especially on bootup if you have lots of memory (all RAM is zeroed).
    - The existing ReactOS "compatibility layer" for hyperspace was augmented to seamlessly use the new zeroing PTE API.
  - You must now unmap zeroing PTEs -- MiZeroPage was modified to do this.
  - System PTE binning, NBQUEUES and SLISTS would optimize this further. TBD.
- Once again, tested on the trinity of supported emulators.


svn path=/trunk/; revision=41578
2009-06-23 09:34:45 +00:00
ReactOS Portable Systems Group
d11a34b5ed - Jesus Christ man, learn some C, will you?
- Fix boot.
- The lack of colorful poetry is brought to you by cogent human beings on the West Coast whom you should be thankful haven't gone to bed yet.


svn path=/trunk/; revision=41577
2009-06-23 09:23:16 +00:00
ReactOS Portable Systems Group
25941abce1 - So it turns out bad things can happen if you play behind Mm's back.
- The lovely poetry is brought to you by 7AM coding marathons...


svn path=/trunk/; revision=41576
2009-06-23 09:11:01 +00:00
ReactOS Portable Systems Group
9730c51810 - Move ARM Pool to 0xB0000000 to avoid clashing with existing ReactOS address space components (shouldn't happen if things work right, but better safe than sorry).
- Implement System PTE allocator (MiReserveAlignedSystemPtes and MiReserveSystemPtes). Very simple yet functional, no optimizes for now.
- Allocate 32 zeoring PTEs from the System PTE pool.
  - Not used yet, only the allocation is made to test the current framework.
- Tested on VirtualBox, QEMU and VMWare with RAM sizes from 128MB to 1536MB with no problems.


svn path=/trunk/; revision=41575
2009-06-23 07:49:39 +00:00
ReactOS Portable Systems Group
12ed6254a7 - Move hypermap.c into ARM3 since it will be changed to use System PTEs for zero PTEs to solve the current race conditions that had to be fixed/hacked around in the current implementation.
- DO NOT MAP HYPERSPACE PTEs as GLOBAL! They are now mapped as local, which might fix some really strange bugs that could've occured in the past.
- Use MiPteToAddress instead of manually doing the bitmagic when mapping a page into hyperspace.


svn path=/trunk/; revision=41574
2009-06-23 07:32:43 +00:00
ReactOS Portable Systems Group
52fc282ff3 - For one thing, fix build in ARM3/init.c (sorry!)
- Secondly, initialize hyperspace in ARM³ now, at the correct place:
  - Also, create the hyperspace PDE here, and not in FreeLDR, which was incorrect in the first place.
    - This might help booting Windows/WinLDR.
- Install-tested w/ networking, with no issues found, on:
  - Virtual Box 2.4
  - VMWare 6.5
  - QEMU 0.9.0
- PEBKAC?


svn path=/trunk/; revision=41573
2009-06-23 06:39:10 +00:00
ReactOS Portable Systems Group
fbca42cd9f - Do not zero out MC_SYSTEM pages if they are "early pages" either. This could cause issues on certain systems where mapping the PFN database required "early pages", and they were zeroed before hyperspace was ready.
- Add a new flag to MmGetContigousPages to specify if these pages should be zeroed or not. Allows the nonpaged pool pages not to get automatically zeroed when allocated (the NP pool allocator can do this by itself later). This allows initial nonpaged pool to be allocated before hyperspace is ready.


svn path=/trunk/; revision=41572
2009-06-23 06:32:11 +00:00
ReactOS Portable Systems Group
bb161e9df2 - Do not reformat other people's code simply to reformat it.
svn path=/trunk/; revision=41571
2009-06-23 05:00:48 +00:00
ReactOS Portable Systems Group
a0a3c1519e - Revert 41567:
- ARM³ (Alternate ReactOS Memory Management Module) "stuff" is not ACORN Risc Machines (ARM) Port "stuff".
  - We are lucky this user made this change before the rest of the code was checked in -- hyperspace, MDLs, nonpaged pool, kernel stacks, I/O mappings, noncached memory and contigous memory will soon all be built on ARM³ -- good thing this wasn't the case yet!
  - Recommend this user gets banned for reverting code without approval within the 24hr grace period in ReactOS guidelines.
  - If you have a bug to report, use Bugzilla, not your head as a sledgehammer.


svn path=/trunk/; revision=41570
2009-06-23 04:59:32 +00:00
Christoph von Wittich
2cbbe81d25 fix comment IsUserAdmin -> IsUserAnAdmin
svn path=/trunk/; revision=41569
2009-06-22 22:59:30 +00:00
Christoph von Wittich
c8ee793546 partial advapi32 sid sync to wine 1.1.24
svn path=/trunk/; revision=41568
2009-06-22 22:54:03 +00:00
Christoph von Wittich
1196d45474 don't build arm stuff on non arm builds
fixes 2nd stage

svn path=/trunk/; revision=41567
2009-06-22 22:48:39 +00:00
Johannes Anderwald
535d640ce0 - define YieldProcessor msvc compatible
- rtl now builds

svn path=/trunk/; revision=41566
2009-06-22 21:07:52 +00:00
KJK::Hyperion
6943f54891 Change <wine/list.h> to use the magic attribute salad for inline functions in headers
svn path=/trunk/; revision=41565
2009-06-22 20:29:48 +00:00
KJK::Hyperion
7c326b484e Don't want to fix all uses of PSEH2 macros, therefore have some curly braces, everyone
svn path=/trunk/; revision=41564
2009-06-22 20:27:16 +00:00
KJK::Hyperion
c14238f2a9 Correct placement of calling convention attribute
svn path=/trunk/; revision=41563
2009-06-22 20:25:25 +00:00
KJK::Hyperion
c768112083 modified lib/sdk/crt/include/float.h
What the hell has <float.h> to do with S_IFIFO, Arch?

svn path=/trunk/; revision=41562
2009-06-22 20:22:06 +00:00
KJK::Hyperion
7faf270a8a modified lib/rtl/exception.c
Silence unavoidable warning

modified   lib/rtl/generictable.c
   Avoid silenceable warning

svn path=/trunk/; revision=41561
2009-06-22 20:19:06 +00:00
KJK::Hyperion
e89c456751 modified dll/win32/kernel32/file/volume.c
modified   dll/win32/kernel32/misc/actctx.c
modified   dll/win32/kernel32/misc/lang.c
   C89 compliance

modified   dll/win32/kernel32/k32.h
   Include <limits.h>

modified   dll/win32/kernel32/misc/res.c
   Hey Arch, instead of copying and pasting definitions from <wine/list.h>, why don't you include it?

svn path=/trunk/; revision=41560
2009-06-22 20:15:42 +00:00
Christoph von Wittich
4f96f16ac2 sync CreateWellKnownSid with wine 1.1.24
svn path=/trunk/; revision=41559
2009-06-22 20:08:05 +00:00
Christoph von Wittich
156d181a79 sync advapi32_winetest with wine 1.1.24
svn path=/trunk/; revision=41558
2009-06-22 20:07:32 +00:00
KJK::Hyperion
223ecea05b #define inline to __inline for Visual C++ when compiling C sources
svn path=/trunk/; revision=41557
2009-06-22 20:03:20 +00:00
KJK::Hyperion
2cdaa146f7 modified dll/ntdll/include/ntdll.h
Explicitly include <pseh/pseh2.h>

modified   dll/ntdll/ldr/utils.c
   Use ANSI C variadic macros, instead of hacks

ntdll now compiles with Visual C++

svn path=/trunk/; revision=41556
2009-06-22 20:00:38 +00:00
Christoph von Wittich
b704b9556d sync user32 button with wine 1.1.24
svn path=/trunk/; revision=41555
2009-06-22 19:56:37 +00:00
Christoph von Wittich
1e54de4e07 sync user32_winetest with wine 1.1.24
svn path=/trunk/; revision=41554
2009-06-22 19:52:48 +00:00
Christoph von Wittich
edb01fbf5b sync credui with wine 1.1.24
svn path=/trunk/; revision=41553
2009-06-22 19:47:30 +00:00
Christoph von Wittich
075273b3ea sync hhctrl.ocx with wine 1.1.24
svn path=/trunk/; revision=41552
2009-06-22 19:38:47 +00:00
Christoph von Wittich
05a9130669 sync cryptdlg and cryptui with wine 1.1.24
svn path=/trunk/; revision=41551
2009-06-22 19:29:26 +00:00
Christoph von Wittich
c7b0db5721 sync crypt32 with wine 1.1.24
svn path=/trunk/; revision=41550
2009-06-22 19:27:02 +00:00
Timo Kreuzer
d9e863dd3e winfax: covert to spec
svn path=/branches/ros-amd64-bringup/; revision=41549
2009-06-22 14:58:08 +00:00
Timo Kreuzer
0c5c63214f Allow warnings in win32k for now
svn path=/branches/ros-amd64-bringup/; revision=41548
2009-06-22 14:17:06 +00:00
Timo Kreuzer
0ed6de9136 Only export FLOATOBJ_* api on x86
svn path=/branches/ros-amd64-bringup/; revision=41547
2009-06-22 14:16:20 +00:00
Timo Kreuzer
0a1f19ab1c Add _FLOATOBJ_GetFix for non-x86
svn path=/branches/ros-amd64-bringup/; revision=41546
2009-06-22 14:15:35 +00:00
Aleksey Bragin
9152e0286c - Remove padding member from ETHREAD, it's not needed anymore after KTHREAD has been fixed.
svn path=/trunk/; revision=41545
2009-06-22 14:09:16 +00:00
Christoph von Wittich
5c0ec477eb sync advpack and msi with wine 1.1.24
svn path=/trunk/; revision=41544
2009-06-22 14:01:24 +00:00
Christoph von Wittich
fe3ce41568 sync jscript_winetest with wine 1.1.24
svn path=/trunk/; revision=41543
2009-06-22 13:51:31 +00:00
Christoph von Wittich
e44867e54a sync jscript with wine 1.1.24
svn path=/trunk/; revision=41542
2009-06-22 13:51:07 +00:00
Dmitry Gorbachev
debf9f3155 Fix build.
svn path=/trunk/; revision=41541
2009-06-22 13:47:10 +00:00
Timo Kreuzer
59dabf5cdb Make parameters for NtUserCallOneParam and NtUserCallTwoParam DWORD_PTR instead of DWORD
svn path=/branches/ros-amd64-bringup/; revision=41540
2009-06-22 13:46:22 +00:00
Dmitry Gorbachev
e890438845 Silence warnings.
svn path=/trunk/; revision=41539
2009-06-22 13:37:49 +00:00
Dmitry Gorbachev
8374c07f2d Fix comment.
svn path=/trunk/; revision=41538
2009-06-22 13:28:18 +00:00
Dmitry Gorbachev
d103f7f548 [FORMATTING]
svn path=/trunk/; revision=41537
2009-06-22 13:26:12 +00:00
Timo Kreuzer
413a1e88b5 win32csr: convert to spec
svn path=/branches/ros-amd64-bringup/; revision=41536
2009-06-22 11:39:43 +00:00
Dmitry Gorbachev
1fcd100e50 Remove unused functions.
svn path=/trunk/; revision=41535
2009-06-22 11:33:19 +00:00
Dmitry Gorbachev
ae5cb55a9c - If KDBG is not compiled in, try to use GDB instead.
- Check WrapperTable.KdpPrintRoutine.
- Allow to use GDB (/DEBUGPORT=GDB) and have debug output (/DEBUGPORT=COM1) at the same time.

svn path=/trunk/; revision=41534
2009-06-22 11:32:58 +00:00
Dmitry Gorbachev
30a7c1f02f Change GDB stub.
svn path=/trunk/; revision=41533
2009-06-22 11:32:25 +00:00
Dmitry Gorbachev
ce839b70b3 Remove unused stuff.
svn path=/trunk/; revision=41532
2009-06-22 11:31:57 +00:00
Timo Kreuzer
5cc5e6428a fix pointer <-> DWORD casts
svn path=/branches/ros-amd64-bringup/; revision=41531
2009-06-22 11:15:14 +00:00
ReactOS Portable Systems Group
dba96538b8 - Initialize system PTE space.
svn path=/trunk/; revision=41530
2009-06-22 10:22:19 +00:00
ReactOS Portable Systems Group
872b7b4830 - Initialize count of System PTEs:
- Use 7000 for systems with 19MB of RAM or less, 11000 for systems between 19 and 32MB of RAM, and 22000 for systems with more than that.
  - Windows will go up to 50000 on server machines, but this is likely not needed now (22000 system PTEs is roughly 100 MB).
  - This now affects the calculation of MmNonPagedSystemStart, which is now correct and reflects the nonpaged address space of the system.
  - System PTEs are not yet initialized (but their page tables are mapped by the same code which maps nonpaged pool expansion VA page tables).


svn path=/trunk/; revision=41529
2009-06-22 09:34:24 +00:00
ReactOS Portable Systems Group
e5cc98dbc4 - Initialize nonpaged pool expansion system PTEs (MiInitializeSystemPtes):
- Just supports expansion space for now, not system space.
  - Very basic initialization of the accounting structures required.
  - Sets up the first two system PTE clusters for the space (the first contains the linkage, the second contains the sizage).
  - Called from MiInitializeArmPool.


svn path=/trunk/; revision=41528
2009-06-22 08:51:28 +00:00
ReactOS Portable Systems Group
e980bd998f - Initialize the ARM pool (MiInitializeArmPool):
- Do some additional accounting to keep track of initial nonpaged pool range and size.
  - Create and initialize the free page lists, and free page entries.
  - Validate that the initial nonpaged pool address space was properly mapped.
  - Validate that the expansion nonpaged pool address space is unmapped, and prepare to map it.


svn path=/trunk/; revision=41527
2009-06-22 08:22:41 +00:00
Cameron Gutman
773786eb4c - Revert wininet back to pre-41059
- Fixes random corruption of downloads

svn path=/trunk/; revision=41526
2009-06-22 06:45:21 +00:00
ReactOS Portable Systems Group
f2ce1cf66f - Begin the implementation of the ARM Pool Manager, a replacement for the ReactOS nonpaged pool.
- Define the nonpaged system address space as done on Windows (see init.c for a brief introduction and source reading materials on this).
  - Size up the ARM pool as done on Windows (again, see init.c for documentation on this).
  - Create the PDEs for the expansion pool and the initial pool.
  - Allocate the pages for the initial pool, and map them.
    - Unlike ReactOS, ARM³ does the right thing and uses physically continuous pages.
  - Define two new static MEMORY_AREAs for the expansion and initial ARM pool.
  - No actual pool code/implementation is available yet, we are just slicing up the address space for now (mhmm... cake!)*.

* There is no cake.


svn path=/trunk/; revision=41525
2009-06-22 06:16:57 +00:00
ReactOS Portable Systems Group
47122e35e8 - The SVN pre-commit hook is broken: /srv/svn/reactos/hooks/commit-eol-style-check.pl: `/usr/bin/svnlook proplist /srv/svn/reactos -t 41523-w6z --verbose trunk/reactos/ntoskrnl/mm/ARM?\194?\179/init.c' failed with this output:
svnlook: Path 'trunk/reactos/ntoskrnl/mm/ARM?\194?\179/init.c' does not exist.


svn path=/trunk/; revision=41524
2009-06-22 06:13:23 +00:00
ReactOS Portable Systems Group
eb4911e3e8 - Add a directory for the Alternative ReactOS Memory Management Module (ARM³), also called the ARM (port) Memory Manager.
svn path=/trunk/; revision=41523
2009-06-22 04:57:21 +00:00
Cameron Gutman
55b816a7c4 - Fix a bug that caused translations of NdisParameterInteger values into unicode strings to produce bad results
- Fix a bug that caused NdisParameterMultiString values to be written to the registry incorrectly

svn path=/trunk/; revision=41522
2009-06-22 01:10:58 +00:00
Cameron Gutman
12b34a994b - Partial rewrite of NdisReadConfiguration
- It now determines the parameter type based on the key instead of the ParameterType passed by the caller (documented on MSDN)
 - It also always sets (*ParameterValue)->ParameterType to NdisParameterInteger when reading an integer or hex integer value (documented on MSDN)
 - This will fix miniport drivers that supply a bogus ParameterType value because it is ignored by NDIS on NT

svn path=/trunk/; revision=41521
2009-06-22 00:49:06 +00:00
KJK::Hyperion
586a1d0fff Move gcc -g and -Wall options out of rbuild and into .rbuild files
Move non-architecture-specific msc options to ReactOS-generic.rbuild

svn path=/trunk/; revision=41520
2009-06-21 22:13:28 +00:00
KJK::Hyperion
da2965ea12 Compilers other than GCC deserve offsetof, don't they?
svn path=/trunk/; revision=41519
2009-06-21 21:40:37 +00:00
KJK::Hyperion
d38eca89a3 Don't change an std::set in the loop that enumerates it. Patch by Daniel Zimmermann <netzimme@aim.com>
See issue #3128 for more details.

svn path=/trunk/; revision=41518
2009-06-21 21:37:47 +00:00
Johannes Anderwald
46ec0bb579 - Fix a buffer overrun
svn path=/trunk/; revision=41517
2009-06-21 21:35:40 +00:00
Daniel Reimer
fda2c1efd7 Bug 4626: slovak update by Mario Kacmar
svn path=/trunk/; revision=41516
2009-06-21 20:00:00 +00:00
Aleksey Bragin
024b2b410c - Implement two helper functions to correctly set permissions for a window station and desktops. Those are unused now, but they are going to solve two problems in current winlogon. First of them being a "big HACK" in CreateWindowStationAndDesktops(), which has to do CloseDesktop / OpenDesktopW to get a non-inheritable handle with GENERIC_ALL righs. Second problem is that security attributes structure passed to CreateWindowStationW and CreateDesktopW are invalid because now lpSecurityDescriptor points to an ACL but it's supposed to point to an actual SECURITY_DESCRIPTOR structure. Information from: http://msdn.microsoft.com/en-us/library/aa379608.aspx.
svn path=/trunk/; revision=41515
2009-06-21 19:23:06 +00:00
Stefan Ginsberg
d3421fde4b - Define noreturn attribute for KeBugCheckWithTf and KiBugCheckDebugBreak in a msvc compatible way
svn path=/trunk/; revision=41513
2009-06-21 17:06:34 +00:00
Johannes Anderwald
93a8c8a165 - Don't release object which drivers should release
- Fixes a few crashes when starting another audio stream

svn path=/trunk/; revision=41512
2009-06-21 10:48:09 +00:00
ReactOS Portable Systems Group
88b93de202 - MC_NPPOOL is special-cased in the memory balancer core to always force the allocation of a page, even in low-memory conditions (which in ReactOS, occur early-on because, in a stroke of typical ReactOS genius, the balancer core is called before the balancer initailizes its values and thresholds). Make MC_SYSTEM special-cased as well, so we never fail to allocate page tables early-on.
- This fixes booting on systems which required enough page tables such that the balancer refused the allocation of new pages (around 64+16 pages for page tables of 4KB each, ie. 320MB).


svn path=/trunk/; revision=41511
2009-06-21 09:08:05 +00:00
ReactOS Portable Systems Group
e7b3dac46f - Nonpaged pool MEMORY_AREA is now initialized during nonpaged pool initialization (and it is now a static MEMORY_AREA).
- Paged pool MEMORY_AREA is now initialized during paged pool initialization.
- Remaining MEMORY_AREAs (KPCR and KUSER_SHARED_DATA) are now created in MiInitSystemMemoryAreas (and they are also static) instead of MmInitVirtualMemory, since this is really what the function was doing.
  - The page table and hyperspace MEMORY_AREAs are still initialized the same, but are also now static.
  - The creation of these core/system memory areas is now done much earlier. For example, hyperspace memory area is now created before hyperspace is mapped.
- Nonpaged pool, paged pool, and working set initialization is now done outside MiInitSystemMemoryAreas and roughly at the same time as before.
- Removed MmInitVirtualMemory as it had become a kitchen sink of random Memory Manager initialization code.
- I/O and Local APIC MEMORY_AREAs are not created anymore, since that should be done by the HAL, not the kernel.


svn path=/trunk/; revision=41510
2009-06-21 06:36:45 +00:00
ReactOS Portable Systems Group
f29743948c - Introduce a new MEMORY_AREA flag, MEMORY_AREA_STATIC:
- MEMORY_AREA structures are typically allocated from nonpaged pool, under the assumption it exists.
  - However, nonpaged pool itself is described by a MEMORY_AREA.  Right now, this MEMORY_AREA is created after nonpaged pool has been initialized (it is a miracle this works).
  - This new flag allows MEMORY_AREA structures to be allocated statically, allowing the description of certain system address space components, themselves prerequisites to nonpaged pool creation, as well as the nonpaged pool component itself, before nonpaged pool has been initialized.
  - This is not yet used.


svn path=/trunk/; revision=41509
2009-06-21 05:46:50 +00:00
ReactOS Portable Systems Group
ec3307ef64 - Define a new consumer: MC_SYSTEM:
- Right now, it is only used for allocating new page tables for kernel-mode mappings.
  - This consumer's pages are never zeroed automatically (this is a more endemic ReactOS problem -- kernel pages are zeroed when they shouldn't be).
    - New page tables, however, should indeed be zeroed, so now they are zeroed manually with RtlZeroMemory.
    - The page zero function is not called anymore, and a useless zero-space hyperspace mapping is thus saved each time this happens.
    - Because of this, zero-space hyperspace mappings are required much later in the Memory Manager's initialization steps than before.

svn path=/trunk/; revision=41508
2009-06-21 05:33:48 +00:00
ReactOS Portable Systems Group
7afb3ea904 - Add another helper: MiGetPfnEntryIndex. This returns the page frame number (PFN) for a given MMPFN entry.
- Also add MiPteToAddress to complement MiAddressToPte. This returns the VA for a given PTE. Bonus points if you can figure out the bit magic.


svn path=/trunk/; revision=41507
2009-06-21 04:28:31 +00:00
ReactOS Portable Systems Group
6464056a16 - Get rid of MmPageArray and MmPageArraySize since these were defined as just being ReactOS-specific clones of MmPfnDatabase and MmHighestPhysicalPage. Ergo, use the latter in relevant places.
svn path=/trunk/; revision=41506
2009-06-21 04:14:49 +00:00
ReactOS Portable Systems Group
f7ed5bd01d - It is very possible for MiGetPfnEntry to be called for a page above the page array size, since not all pages are represented in the array. In this scenario, MiGetPfnEntry should return NULL (and the caller should be prepared for this scenario).
- Also move out the extern definitions outside of the inline, so that other functions may access them and consequently removing a needless UNREFERENCED_PARAMETER.


svn path=/trunk/; revision=41505
2009-06-21 04:09:25 +00:00
ReactOS Portable Systems Group
7f3a8dc045 - Add missing flags for MmAllocatePagesForMdlEx.
svn path=/trunk/; revision=41504
2009-06-21 03:59:23 +00:00
ReactOS Portable Systems Group
4fbc4ba227 - Remove MmGetPageFlags and MmSetPageFlags, there are no consumers of these two functions.
- Get rid of PHYSICAL_PAGE structure and move to WinNT MMPFN structure instead:
  - Define a preprocessor legacy mapping so that freelist.c receives only minimal changes:
    - This mapping allows the old meanings of the PHYSICAL_PAGE fields to remain, but now part of the new MMPFN structure
    - Other modules (balance.c and mm.h) use the new structure directly, since only 3 lines of code required changes.
  - The NT structure is 8 bytes smaller than the ReactOS structure, which saves about 1MB of physical memory and kernel VA space
    for each 512MB of RAM, or 25% less. This also enables ReactOS to support 25% more memory than before (64GB instead of 48GB).


svn path=/trunk/; revision=41503
2009-06-21 03:57:42 +00:00
Timo Kreuzer
6534c06742 wdmaud: Make DeviceIndex a ULONG_PTR
svn path=/branches/ros-amd64-bringup/; revision=41502
2009-06-21 02:23:48 +00:00
Timo Kreuzer
b0aae1ac7e Fix uninitialized variable warning.
svn path=/branches/ros-amd64-bringup/; revision=41501
2009-06-21 01:25:57 +00:00
Timo Kreuzer
5c9cf2de60 Pass ULONG* to MiniQueryInformation for the number of written bytes instead of ULONG_PTR*
svn path=/branches/ros-amd64-bringup/; revision=41500
2009-06-21 00:36:29 +00:00
Timo Kreuzer
d25e377997 reenable the dirty wine hack, but not for amd64!
svn path=/branches/ros-amd64-bringup/; revision=41499
2009-06-21 00:29:43 +00:00
Johannes Anderwald
66a0e71bf5 - Use interval of 10ms for the periodic timer IPortPinWaveRT
- Initialize a periodic timer for IPortPinWavePci
- Might fix Vortex AU8820C0 card

svn path=/trunk/; revision=41498
2009-06-21 00:16:32 +00:00
Johannes Anderwald
eef3e1deca - Define private interface IPortWaveRTStreamInit in order to deal with PHYSICAL_ADDRESS as return value
- Implement reading/writing into cyclic buffer for IPortPinWaveRT 
- Allocate an audio buffer when the pin is initialized. This needs to be changed once KSPROPERTY_RTAUDIO_BUFFER is implemented
- Fix a bug in PcNewPort
- Remove obsolete code from IPortWavePci
- Return the allocated MDL from IPortWaveRTStream::AllocateContiguousPagesForMdl
- Create a system thread when using IServiceGroup::RequestDelayedService
- ReactOS now partly supports Vista audio driver model

svn path=/trunk/; revision=41497
2009-06-20 23:37:55 +00:00
Timo Kreuzer
169da3458b Fix _WIN64 definition of PORT_MAXIMUM_MESSAGE_LENGTH in the NDK and only define it for NTOS_MODE_USER as it's also defined by wdm.h
svn path=/branches/ros-amd64-bringup/; revision=41495
2009-06-20 20:53:47 +00:00
Timo Kreuzer
98debfcbd4 Add back the stuff I accidentilly removed with the last sync
svn path=/branches/ros-amd64-bringup/; revision=41494
2009-06-20 19:52:29 +00:00
Timo Kreuzer
6a3624a96d Update README.WINE from trunk
svn path=/branches/ros-amd64-bringup/; revision=41493
2009-06-20 19:38:33 +00:00
Timo Kreuzer
5fdb2304a4 merge 41026 from trunk
svn path=/branches/ros-amd64-bringup/; revision=41492
2009-06-20 19:29:55 +00:00
Timo Kreuzer
827b44e76c Fix definition of DBG
svn path=/branches/ros-amd64-bringup/; revision=41491
2009-06-20 18:19:23 +00:00
Timo Kreuzer
39b609743e add missing file
svn path=/branches/ros-amd64-bringup/; revision=41490
2009-06-20 17:51:44 +00:00
Johannes Anderwald
9c621c0524 - Free forgotten irps
- Implement PcCompleteIrp

svn path=/trunk/; revision=41489
2009-06-20 16:00:45 +00:00
Timo Kreuzer
4135e99ab6 Merge trunk head (r41474)
svn path=/branches/ros-amd64-bringup/; revision=41488
2009-06-20 13:45:51 +00:00
Timo Kreuzer
9deeed5323 add files that got lost
svn path=/branches/ros-amd64-bringup/; revision=41487
2009-06-20 12:56:13 +00:00
Timo Kreuzer
0b908b6c29 Fix a comment like in trunk.
svn path=/branches/ros-amd64-bringup/; revision=41486
2009-06-20 12:41:17 +00:00
Timo Kreuzer
e71bc2b3e6 Fix 64bit issues.
svn path=/branches/ros-amd64-bringup/; revision=41485
2009-06-20 12:40:11 +00:00
Timo Kreuzer
cdaa1f6d82 Add macros for Rtl large integer functions
svn path=/branches/ros-amd64-bringup/; revision=41484
2009-06-20 12:39:21 +00:00
Timo Kreuzer
70b8038494 NDK: fix definition of HARDERROR_MSG
svn path=/branches/ros-amd64-bringup/; revision=41483
2009-06-20 12:37:30 +00:00
Timo Kreuzer
24c3776a22 comment out nt4compat usb driver, it doesn't compile
svn path=/branches/ros-amd64-bringup/; revision=41482
2009-06-20 12:36:25 +00:00
Timo Kreuzer
59ab82b643 comment out telnet for now, it doesn't compile
svn path=/branches/ros-amd64-bringup/; revision=41481
2009-06-20 12:31:02 +00:00
Timo Kreuzer
380a44fcc5 Fix 64bit issues, add a wine compatibility hack
svn path=/branches/ros-amd64-bringup/; revision=41480
2009-06-20 12:29:21 +00:00
Timo Kreuzer
90b890bba4 Remove usage of RETURN() macro
svn path=/branches/ros-amd64-bringup/; revision=41479
2009-06-20 12:14:20 +00:00
Timo Kreuzer
756ff0f16c Fix "no newline at end of file"
svn path=/branches/ros-amd64-bringup/; revision=41478
2009-06-20 11:45:31 +00:00
Timo Kreuzer
0938cd6626 fix x86 compilation
svn path=/branches/ros-amd64-bringup/; revision=41476
2009-06-20 11:21:33 +00:00
Timo Kreuzer
a2914115fe Fix outdated rbuild flags
svn path=/branches/ros-amd64-bringup/; revision=41475
2009-06-20 11:05:46 +00:00
Christoph von Wittich
d9042af464 partial dbghelp wine sync
svn path=/trunk/; revision=41474
2009-06-19 22:14:54 +00:00
Christoph von Wittich
aa85426a38 improve some more Lsa stubs
svn path=/trunk/; revision=41473
2009-06-19 22:08:02 +00:00
Christoph von Wittich
2869ff1fbc better stub for LsaEnumerateAccountRights
svn path=/trunk/; revision=41472
2009-06-19 21:54:19 +00:00
Stefan Ginsberg
b1821667f4 - Define noreturn attribute for KeBugCheck/Ex in a msvc-compatible way
svn path=/trunk/; revision=41471
2009-06-19 19:43:41 +00:00
Stefan Ginsberg
d749e95880 - Define UNREFERENCED_PARAMETER for cmlib when built as host and reapply 41455.
svn path=/trunk/; revision=41470
2009-06-19 16:05:16 +00:00
Johannes Anderwald
db429325e1 - Fix build
svn path=/trunk/; revision=41469
2009-06-19 13:59:27 +00:00
Johannes Anderwald
10e71311b1 - Make ks.h and drmk.h msvc compatible
svn path=/trunk/; revision=41468
2009-06-19 12:07:17 +00:00
Johannes Anderwald
f791b1fa91 - Improve user mode buffer probing
svn path=/trunk/; revision=41467
2009-06-19 10:50:19 +00:00
Dmitry Chapyshev
97aea8189d - Add target process reference/dereference in ProcessWow64Information case of NtQueryInformationProcess.
- Check buffer length

svn path=/trunk/; revision=41466
2009-06-19 08:49:01 +00:00
Dmitry Chapyshev
1cdc856b9c - Check buffer length for ProcessQuotaLimits/ProcessBasePriority/ProcessRaisePriority/ProcessWx86Information/ProcessDebugPort cases
svn path=/trunk/; revision=41465
2009-06-19 08:22:24 +00:00
Dmitry Chapyshev
8b7d2f3924 - Add probing of the result buffers
svn path=/trunk/; revision=41464
2009-06-19 07:46:46 +00:00
Cameron Gutman
12adb28b86 - Fix 2 typos
svn path=/trunk/; revision=41463
2009-06-19 07:34:34 +00:00
Cameron Gutman
1cde39c156 - Report that we are NDIS 5.1
svn path=/trunk/; revision=41462
2009-06-19 06:53:58 +00:00
Cameron Gutman
cf30be51fb - Big debugging update
- Also fix some little bugs and reduce code duplication

svn path=/trunk/; revision=41461
2009-06-19 06:47:00 +00:00
Cameron Gutman
02b61191c8 - Make CancelId a LONG
svn path=/trunk/; revision=41460
2009-06-19 05:12:20 +00:00
KJK::Hyperion
591cbf3208 modified tools/rbuild/backend/mingw/compilers/gcc.mak
modified   tools/rbuild/backend/mingw/compilers/msc.mak
   New rules for C preprocessor that compiles to standard output (RBUILD_PIPE_CPP, RBUILD_PIPE_CXX_CPP)

modified   tools/rbuild/backend/mingw/rules.mak
   Use RBUILD_PIPE_CPP in RBUILD_WRC_RULE, instead of hardcoding GCC

svn path=/trunk/; revision=41459
2009-06-19 02:28:33 +00:00
KJK::Hyperion
f073fbe6ab Revert 41455
svn path=/trunk/; revision=41458
2009-06-19 01:12:25 +00:00
KJK::Hyperion
204b2befbb modified drivers/filesystems/fastfat/blockdev.c
modified   drivers/filesystems/fastfat/dirwr.c
modified   drivers/filesystems/fastfat/ea.c
modified   drivers/filesystems/fastfat/finfo.c
   Silence "argument unused" warnings
   Corrected several accesses to potentially uninitialized variables

modified   drivers/filesystems/fastfat/vfat.h
   Visual C++ is no longer a guarantee of compilation with the DDK

Patch by Samuel Serapión <samdwise51@gmail.com>

svn path=/trunk/; revision=41457
2009-06-19 00:21:21 +00:00
KJK::Hyperion
82276953f4 modified drivers/input/i8042prt/createclose.c
modified   drivers/input/i8042prt/i8042prt.c
modified   drivers/input/i8042prt/keyboard.c
modified   drivers/input/i8042prt/misc.c
modified   drivers/input/i8042prt/mouse.c
modified   drivers/input/i8042prt/readwrite.c
   Silence "argument unused" and "unused variable" warnings
   Corrected several accesses to potentially uninitialized variables

Patch by Samuel Serapión <samdwise51@gmail.com>

svn path=/trunk/; revision=41456
2009-06-19 00:17:15 +00:00
KJK::Hyperion
dc90252573 modified lib/cmlib/hivecell.c
modified   lib/cmlib/hiveinit.c
   Silence "argument unused" warnings

Patch by Samuel Serapión <samdwise51@gmail.com>

svn path=/trunk/; revision=41455
2009-06-19 00:12:26 +00:00
KJK::Hyperion
f06e2b532c modified drivers/bus/pci/fdo.c
modified   drivers/bus/pci/pci.c
modified   drivers/bus/pci/pdo.c
   Silence "argument unused" warnings
   Corrected a potentially uninitialized variable access

Patch by Samuel Serapión <samdwise51@gmail.com>

svn path=/trunk/; revision=41454
2009-06-19 00:09:42 +00:00
Stefan Ginsberg
a4cad0ba8d - Fix compiler flag for rosautotest
- Get rid of -Wno-format in the Winetests, replacing it with __ROS_LONG64__.

svn path=/trunk/; revision=41453
2009-06-18 22:16:49 +00:00
Stefan Ginsberg
4acc879393 - Revert 39470, reapplying the __ROS_LONG64__ check for INT_PTR and UINT_PTR on 32-bit.
svn path=/trunk/; revision=41452
2009-06-18 22:07:20 +00:00
Stefan Ginsberg
85c7801c12 - Only pass gcc flags to gcc.
svn path=/trunk/; revision=41451
2009-06-18 22:06:16 +00:00
Aleksey Bragin
4f6ecaaec2 - Implement ProcessQuotaLimits case for NtQueryInformationProcess. Based on Dmitry Chapyshev's patch.
svn path=/trunk/; revision=41450
2009-06-18 19:46:18 +00:00
Stefan Ginsberg
6cfc9ab326 - Add missing NTAPI to DriverEntry
svn path=/trunk/; revision=41449
2009-06-18 19:13:05 +00:00
Stefan Ginsberg
3d64a589fb - Do not pass gcc and ld flags to other tools
svn path=/trunk/; revision=41448
2009-06-18 18:18:57 +00:00
Daniel Reimer
065a190de7 Bug 4620: Incorrect code page output in shutdown.exe (Russian locale) by John White
Polish Translation Updates by Maciej Bialas

svn path=/trunk/; revision=41447
2009-06-18 15:47:41 +00:00
Timo Kreuzer
7d8b1bafe3 wdmaud.drv: don't cast DWORD to PVOID, use UlongToPtr instead
svn path=/branches/ros-amd64-bringup/; revision=41101
2009-05-24 12:53:47 +00:00
Timo Kreuzer
bbcfae27c5 usermgr: fix 2 POINTER<->DWORD casts
svn path=/branches/ros-amd64-bringup/; revision=41098
2009-05-24 11:32:59 +00:00
Timo Kreuzer
44ac61e7bb Fix pointer to DWORD cast. I also sent it to tftp on sourceforge.
svn path=/branches/ros-amd64-bringup/; revision=41097
2009-05-24 10:43:30 +00:00
Timo Kreuzer
bc94257cf1 untfs: convert to spec
svn path=/branches/ros-amd64-bringup/; revision=41086
2009-05-23 23:21:50 +00:00
Timo Kreuzer
4099518a6c ufatx: convert to spec
svn path=/branches/ros-amd64-bringup/; revision=41085
2009-05-23 23:20:16 +00:00
Timo Kreuzer
034e7f9add ufat: convert to spec
svn path=/branches/ros-amd64-bringup/; revision=41084
2009-05-23 23:18:42 +00:00
Timo Kreuzer
4f9f03ba0e uext: convert to spec
svn path=/branches/ros-amd64-bringup/; revision=41083
2009-05-23 23:16:52 +00:00
Timo Kreuzer
b60649538c twaain_32: convert to spec
svn path=/branches/ros-amd64-bringup/; revision=41082
2009-05-23 23:07:48 +00:00
Timo Kreuzer
bd27ff9406 ndis.h: Fix definition of NdisQueryPacketLength
svn path=/branches/ros-amd64-bringup/; revision=41071
2009-05-23 11:40:44 +00:00
Timo Kreuzer
107b7b3802 tcpip: fix a pointer to ULONG cast
svn path=/branches/ros-amd64-bringup/; revision=41070
2009-05-23 11:37:02 +00:00
Timo Kreuzer
606b5e8b01 syssetup: convert to spec
svn path=/branches/ros-amd64-bringup/; revision=41052
2009-05-23 01:02:23 +00:00
Timo Kreuzer
c9eb3be968 sndblast: convert to spec
svn path=/branches/ros-amd64-bringup/; revision=41050
2009-05-23 00:53:54 +00:00
Timo Kreuzer
a379eccd66 Change return type of OpenMRUListW and CreateMRUListW to HANDLE, add a comment that CREATEMRULISTW is already defined differently in explorer_new/undoc.h
svn path=/branches/ros-amd64-bringup/; revision=41049
2009-05-23 00:15:56 +00:00
Timo Kreuzer
96288db253 Shel32:
- DialogProc returns INT_PTR and not BOOL
- Don't cast a pointer to LONG
- Use INT_PTR instead of int for pointer math

svn path=/branches/ros-amd64-bringup/; revision=41048
2009-05-22 23:56:31 +00:00
Timo Kreuzer
70abca9899 Get rid of deprectaed LargeInteger functions and use native int64 math instead.
svn path=/branches/ros-amd64-bringup/; revision=41047
2009-05-22 23:52:52 +00:00
Timo Kreuzer
17eb05caa5 #if out an unused static funtion. Don't know if it's still useful. Ged?
svn path=/branches/ros-amd64-bringup/; revision=41046
2009-05-22 22:17:55 +00:00
Timo Kreuzer
135a854683 commdlg.h: fix and update definition of OPENFILENAMEAW
svn path=/branches/ros-amd64-bringup/; revision=41045
2009-05-22 22:04:18 +00:00
Timo Kreuzer
a0fbc3edc2 Cast NULL to DWORD?
svn path=/branches/ros-amd64-bringup/; revision=41044
2009-05-22 21:52:28 +00:00
Timo Kreuzer
b90d10d8f6 fix merge artifact
svn path=/branches/ros-amd64-bringup/; revision=41036
2009-05-21 20:36:53 +00:00
Timo Kreuzer
a67efbb26f Stubplement fmodf
svn path=/branches/ros-amd64-bringup/; revision=41035
2009-05-21 20:34:30 +00:00
Timo Kreuzer
aeaf524709 ACPI: Several 64 bit fixes, TODO: fix amd64 assembly in platform/acgcc.h
svn path=/branches/ros-amd64-bringup/; revision=41034
2009-05-21 19:47:30 +00:00
Timo Kreuzer
3cb029711a Fix ntoskrnl exports on amd64 by adding a FASTCALL macro that expands to stdcall on amd64 builds.
svn path=/branches/ros-amd64-bringup/; revision=41033
2009-05-21 19:43:14 +00:00
Timo Kreuzer
1e6ef30c73 Sync trunk head (r41026)
svn path=/branches/ros-amd64-bringup/; revision=41032
2009-05-21 18:39:21 +00:00
Timo Kreuzer
346b0cc936 update README.WINE
svn path=/branches/ros-amd64-bringup/; revision=41031
2009-05-21 17:53:50 +00:00
Timo Kreuzer
6991aa7bb0 wdm.h: fix definition of 64bit SLIST_HEADER
winnt.h: add 64bit SLIST_HEADER

svn path=/branches/ros-amd64-bringup/; revision=41030
2009-05-21 17:51:59 +00:00
Timo Kreuzer
c8576b3e28 sql.h: fix SQLFetchScroll prototype
sqlext.h: add a hack for wine sources

svn path=/branches/ros-amd64-bringup/; revision=41029
2009-05-21 17:44:32 +00:00
Timo Kreuzer
15da2d4c26 odbc32: Fix build.
svn path=/branches/ros-amd64-bringup/; revision=41028
2009-05-21 17:37:09 +00:00
Timo Kreuzer
3c27022ec9 Update odbc32 to Wine-1.1.21. It still doesn't work at all.
svn path=/branches/ros-amd64-bringup/; revision=41027
2009-05-21 17:32:41 +00:00
Timo Kreuzer
b764d1abae mswsock: remove the old def file
svn path=/branches/ros-amd64-bringup/; revision=41009
2009-05-20 02:00:05 +00:00
Timo Kreuzer
5ec7b1d738 HACK-O-LINK libcoldname.a from explorer.rbuild to make x86 builds happy.
svn path=/branches/ros-amd64-bringup/; revision=41008
2009-05-20 01:55:31 +00:00
Timo Kreuzer
a731816b78 get rid of libcoldname in rbuild
svn path=/branches/ros-amd64-bringup/; revision=41007
2009-05-20 01:55:15 +00:00
Timo Kreuzer
11535ca1db Add initial version of RtlInterlockedPopEntrySList and stubs for RtlInterlockedPushEntrySList and RtlInterlockedFlushSList
svn path=/branches/ros-amd64-bringup/; revision=41006
2009-05-20 01:32:48 +00:00
Timo Kreuzer
a387997e48 update main rbuild file
svn path=/branches/ros-amd64-bringup/; revision=41005
2009-05-20 01:30:20 +00:00
Timo Kreuzer
a9feb7f7f5 add crt to gdiplus libraries in x64 builds
svn path=/branches/ros-amd64-bringup/; revision=41004
2009-05-20 01:28:15 +00:00
Timo Kreuzer
7cab8638a8 build ntvdm only on x86
svn path=/branches/ros-amd64-bringup/; revision=41003
2009-05-20 01:18:32 +00:00
Timo Kreuzer
6a56a40ddf netshell: don't cast the 1st parameter of InterlockedExchange to volatile void **, but to void **
svn path=/branches/ros-amd64-bringup/; revision=41001
2009-05-19 22:10:47 +00:00
Timo Kreuzer
f109d67838 mswsock: convert to spec, taken from wine
svn path=/branches/ros-amd64-bringup/; revision=41000
2009-05-19 21:59:10 +00:00
Timo Kreuzer
23c431bbce msiexec: silence format warnings
svn path=/branches/ros-amd64-bringup/; revision=40999
2009-05-19 21:54:47 +00:00
Timo Kreuzer
a98ac8915e go back to SOCKET for AFD_HANDLE.Handle
svn path=/branches/ros-amd64-bringup/; revision=40997
2009-05-19 21:45:40 +00:00
Timo Kreuzer
cac551770b msacm.h: fix tag of ACMFILTERCHOOSEA and include mmreg.h that some wine code expects
svn path=/branches/ros-amd64-bringup/; revision=40996
2009-05-19 21:36:21 +00:00
Timo Kreuzer
7161bd24d1 64bit fixes for sqltype.h, also resort and cleanup
svn path=/branches/ros-amd64-bringup/; revision=40995
2009-05-19 21:34:54 +00:00
Timo Kreuzer
25f348be35 Update README.WINE
svn path=/branches/ros-amd64-bringup/; revision=40994
2009-05-19 20:51:00 +00:00
Timo Kreuzer
313cac7b63 msgina: fix 64bit build
svn path=/branches/ros-amd64-bringup/; revision=40993
2009-05-19 20:47:52 +00:00
Timo Kreuzer
18a762257e msconfig: don't use inline functions as case labels
svn path=/branches/ros-amd64-bringup/; revision=40992
2009-05-19 20:41:44 +00:00
Timo Kreuzer
fa5a0bdf43 msafd: convert to spec / fix 64bit build
svn path=/branches/ros-amd64-bringup/; revision=40991
2009-05-19 20:35:33 +00:00
Timo Kreuzer
7413e6dd9e msacm32: fix 64bit build
svn path=/branches/ros-amd64-bringup/; revision=40989
2009-05-19 19:55:46 +00:00
Timo Kreuzer
4e8a65c0e2 update mascm_ros.diff
svn path=/branches/ros-amd64-bringup/; revision=40987
2009-05-19 19:08:45 +00:00
Timo Kreuzer
dee1f1eef4 Sync msacm with wine HEAD
svn path=/branches/ros-amd64-bringup/; revision=40986
2009-05-19 19:04:36 +00:00
Timo Kreuzer
7d5b634591 mesa32: Remove outdated files.
svn path=/branches/ros-amd64-bringup/; revision=40985
2009-05-19 18:55:08 +00:00
Timo Kreuzer
65d6a4e66a Fix mesa build on x64
svn path=/branches/ros-amd64-bringup/; revision=40984
2009-05-19 17:52:57 +00:00
Timo Kreuzer
788168c898 Implement ceilf, floorf and sqrtf for x64 in assembly. Based on public domain code from netbsd.
svn path=/branches/ros-amd64-bringup/; revision=40935
2009-05-16 02:10:16 +00:00
Timo Kreuzer
6af837bb6d Remove the old explorer from amd64 builds. It only makes problems and explorer_new will hopefully be ready in time ;-)
svn path=/branches/ros-amd64-bringup/; revision=40929
2009-05-15 13:12:20 +00:00
Timo Kreuzer
8c6bd4382d cmd: Cast the result of GetProcAddress to PVOID before assigning to a function pointer. Fixes a warning on 64 bit builds.
svn path=/branches/ros-amd64-bringup/; revision=40928
2009-05-15 13:09:20 +00:00
Timo Kreuzer
5cedbbbe09 bmfd: HGLYPH is an ULONG. Use offset to glyph entry as HGLYPH instead of the pointer to fix 64bit build.
svn path=/branches/ros-amd64-bringup/; revision=40927
2009-05-15 12:24:00 +00:00
Timo Kreuzer
0794324b2c return ERROR_INVALID_FUNCTION on amd64, not ERROR_INVALID_ACCESS from VideoPortEn/DisableInterrupt. Fixes compilation of videoprt for amd64.
svn path=/branches/ros-amd64-bringup/; revision=40926
2009-05-15 12:11:44 +00:00
Timo Kreuzer
42d3e8269b remove obsolete def file
svn path=/branches/ros-amd64-bringup/; revision=40925
2009-05-15 11:33:10 +00:00
Timo Kreuzer
fd1f331646 Merge from trunk what got lost
svn path=/branches/ros-amd64-bringup/; revision=40760
2009-05-01 12:52:27 +00:00
Timo Kreuzer
4939f886a3 No more need for allowwarnings="true"
svn path=/branches/ros-amd64-bringup/; revision=40755
2009-04-30 10:59:15 +00:00
Timo Kreuzer
303949b9a6 dsound: Make DSDRIVERDESC.dnDevNode a DWORD_PTR and DSPROPERTY.InstanceId a ULONG_PTR.
svn path=/branches/ros-amd64-bringup/; revision=40753
2009-04-30 10:57:39 +00:00
Timo Kreuzer
4f95eb3806 reduce difference to trunk
svn path=/branches/ros-amd64-bringup/; revision=40742
2009-04-29 21:59:36 +00:00
Timo Kreuzer
c95c888219 Sync to trunk r40610
svn path=/branches/ros-amd64-bringup/; revision=40611
2009-04-20 19:32:39 +00:00
Timo Kreuzer
f32f3ce2bc Comment out mpu401
svn path=/branches/ros-amd64-bringup/; revision=40609
2009-04-20 16:47:21 +00:00
Timo Kreuzer
0041324ff2 Fix build of mmbuddy, add a comment.
svn path=/branches/ros-amd64-bringup/; revision=40608
2009-04-20 16:45:52 +00:00
Timo Kreuzer
39a344baf1 Fix handling of UWOP_ALLOC_LARGE, thanks to ktietz for noticing.
svn path=/branches/ros-amd64-bringup/; revision=40605
2009-04-20 11:11:12 +00:00
Timo Kreuzer
4485b3c504 Simplify code in RtlLookupFunctionEntry. Add missing breaks in RtlVirtualUnwind. Improve documentation comments.
svn path=/branches/ros-amd64-bringup/; revision=40604
2009-04-20 10:25:49 +00:00
Timo Kreuzer
e49fa4f867 Sync trunk r40500
svn path=/branches/ros-amd64-bringup/; revision=40543
2009-04-16 14:44:19 +00:00
Timo Kreuzer
fee472aeef Fix switching from long mode to real mode, by jumping into a compatibility segment first. This wasn't needed by qemu, but other emulators didn't like it. Now it boots on Virtualbox, too and VMWare shows at least the blue loading screen before crashing.
svn path=/branches/ros-amd64-bringup/; revision=40324
2009-04-02 05:11:02 +00:00
Timo Kreuzer
7e05c19aeb comment out audio drivers for now
svn path=/branches/ros-amd64-bringup/; revision=40255
2009-03-26 12:24:46 +00:00
Timo Kreuzer
9426678d4d Fix compilation of freeldr. (a number of ULONG / ULONG_PTR issues, remove LoadReactOSSetup2 for non-x86 builds
svn path=/branches/ros-amd64-bringup/; revision=40247
2009-03-26 04:57:19 +00:00
Samuel Serapion
4b70da652e Remove wine/msacm.h it just duplicated the one with have in psdk/ but with extra incorrect definitions.
Fix ACMDRVSTREAMINSTANCE, ACMDRVSTREAMHEADER, PORTALLOC, WAVEOPENDESC, MIDIOPENDESC, MIXEROPENDESC structures.
Fix ACMFILTERENUMCBA/W, ACMFILTERTAGENUMCBA/W, ACMFORMATENUMCA/W, ACMFORMATTAGENUMCBA/W callbacks.
Fix acmDriverEnum, acmFilterEnumA/W, acmFormatEnumA/W, acmFormatTagEnumA/W, acmStreamOpen, CloseDriver, OpenDriver, SendDriverMessage, mmTaskSignal, mmGetCurrentTask

svn path=/branches/ros-amd64-bringup/; revision=40155
2009-03-21 11:07:04 +00:00
Samuel Serapion
c4cf580089 Convert to C, its easier to link(specially in the kernel). :)
svn path=/branches/ros-amd64-bringup/; revision=40154
2009-03-21 10:39:37 +00:00
Samuel Serapion
ac6b763456 Use InterlockedCompareExchangePointer.
svn path=/branches/ros-amd64-bringup/; revision=40153
2009-03-21 10:37:38 +00:00
Samuel Serapion
373313779a Don't disable this module.
svn path=/branches/ros-amd64-bringup/; revision=40151
2009-03-21 10:33:14 +00:00
Samuel Serapion
f77097f175 update file list (still commented out)
svn path=/branches/ros-amd64-bringup/; revision=40149
2009-03-21 05:14:56 +00:00
Samuel Serapion
7cb8d3ec13 commit mysteriously missing file.
svn path=/branches/ros-amd64-bringup/; revision=40132
2009-03-20 11:00:23 +00:00
Samuel Serapion
aad24cec2c Fix merge artifacts.
svn path=/branches/ros-amd64-bringup/; revision=40131
2009-03-20 10:53:46 +00:00
Samuel Serapion
770a78a826 If you build it, they will come. The program builds but does not load in windows with error STATUS_INVALID_IMAGE_FORMAT. (Suspect linker).
svn path=/branches/ros-amd64-bringup/; revision=40130
2009-03-20 10:40:44 +00:00
Samuel Serapion
ec90c91ee0 Fix 64bit build. Dedicated to silverblade (please review).
svn path=/branches/ros-amd64-bringup/; revision=40128
2009-03-20 10:16:44 +00:00
Samuel Serapion
15df429e5a Fix 64bit build. Dedicated to silverblade (please review).
svn path=/branches/ros-amd64-bringup/; revision=40127
2009-03-20 09:51:21 +00:00
Samuel Serapion
3c43a58bf7 Remove debug code.
svn path=/branches/ros-amd64-bringup/; revision=40126
2009-03-20 09:36:43 +00:00
Samuel Serapion
53c322ef97 Fix 64bit build.
svn path=/branches/ros-amd64-bringup/; revision=40125
2009-03-20 09:34:46 +00:00
Samuel Serapion
8c587d3f9e Fix 64bit build. It works too.
svn path=/branches/ros-amd64-bringup/; revision=40124
2009-03-20 09:33:38 +00:00
Samuel Serapion
3c4881567e Even more 64bit fixes.
svn path=/branches/ros-amd64-bringup/; revision=40123
2009-03-20 09:32:37 +00:00
Samuel Serapion
60271cd307 64bit build fixes.
svn path=/branches/ros-amd64-bringup/; revision=40122
2009-03-20 08:04:54 +00:00
Samuel Serapion
867884849e commit mysteriously missing file.
svn path=/branches/ros-amd64-bringup/; revision=40121
2009-03-20 07:34:16 +00:00
Samuel Serapion
9e73e100b0 Fix 64bit build.
svn path=/branches/ros-amd64-bringup/; revision=40120
2009-03-20 07:31:50 +00:00
Samuel Serapion
10b011eab9 commit mysteriously missing file.
svn path=/branches/ros-amd64-bringup/; revision=40119
2009-03-20 07:13:40 +00:00
Samuel Serapion
513d389c61 %m is a glibc extension, convert it to "%s", strerror(errno). and fix 64bit build of dhcp service
svn path=/branches/ros-amd64-bringup/; revision=40118
2009-03-20 06:33:05 +00:00
Samuel Serapion
b034938796 I'm just looking at ReactOS-i386.rbuild and unbreaking the build.
svn path=/branches/ros-amd64-bringup/; revision=40117
2009-03-20 05:37:12 +00:00
Samuel Serapion
c0dfae16a8 Clean up merge leftovers.
svn path=/branches/ros-amd64-bringup/; revision=40116
2009-03-20 05:14:39 +00:00
Samuel Serapion
1e85ed8608 Implement generic forms of __wine_push_frame and __wine_pop_frame (from wine). This code is duplicated but looks different, specifically the use of Frame->Next and Frame->Prev, this is just an effect of different definitions for EXCEPTION_REGISTRATION_RECORD both Next and Prev are actually the same. Maybe someone could look into tidying this up a bit.
svn path=/branches/ros-amd64-bringup/; revision=40114
2009-03-20 04:42:55 +00:00
Timo Kreuzer
df26a19873 remove allowwarnings="true"
svn path=/branches/ros-amd64-bringup/; revision=40096
2009-03-18 19:26:12 +00:00
Timo Kreuzer
1cb78466dd %m is a glibc extension, convert it to "%s", strerror(errno).
svn path=/branches/ros-amd64-bringup/; revision=40095
2009-03-18 19:25:16 +00:00
Timo Kreuzer
2c94b2b818 Sync to trunk head (r40091)
svn path=/branches/ros-amd64-bringup/; revision=40093
2009-03-18 17:32:39 +00:00
Timo Kreuzer
0eeabbf6e0 - Add a USE_COMPILER_EXCEPTIONS to make Widl work again
- comment out _X86AMD64_ for now

svn path=/branches/ros-amd64-bringup/; revision=40092
2009-03-18 17:24:41 +00:00
Timo Kreuzer
7ef3df4e3b implement __mulh and __umulh
svn path=/branches/ros-amd64-bringup/; revision=40088
2009-03-18 16:17:53 +00:00
Timo Kreuzer
0aa7524668 #undef i386 in the pspec file
svn path=/branches/ros-amd64-bringup/; revision=40087
2009-03-18 10:30:42 +00:00
Timo Kreuzer
cc46ea9be4 Fix 2 small typos
svn path=/branches/ros-amd64-bringup/; revision=39639
2009-02-17 04:11:41 +00:00
Timo Kreuzer
f17b5540cf fix PSEH build for x86
svn path=/branches/ros-amd64-bringup/; revision=39625
2009-02-16 14:44:05 +00:00
Timo Kreuzer
92649ee4f7 - Add an own fastinterlck.c for amd64
- Don't compile the generic interlocked functions
- Implement ExQueryDepthSList and add it to exports
- replace a bunch of #ifdefs with -arch=...

svn path=/branches/ros-amd64-bringup/; revision=39544
2009-02-11 00:38:42 +00:00
Timo Kreuzer
0377e0f619 x64 version of ntoskrnl doesn't export ExInterlockedAddLargeStatistic
svn path=/branches/ros-amd64-bringup/; revision=39533
2009-02-10 15:15:07 +00:00
Timo Kreuzer
3b1562f65b ExInitializeSystemlookasideList: Use InitializeSListHead instead of directly accessing the members
ExpAllocateLocallyUniqueId: use InterlockedCompareExchange64 instead of non-portable ExfInterlockedCompareExchange64

svn path=/branches/ros-amd64-bringup/; revision=39522
2009-02-10 05:27:36 +00:00
Timo Kreuzer
00f7494e8e According to msdn CryptReleaseContext returns 0 on error.
but INVALID_HANDLE_VALUE is -1, go back to original code

svn path=/branches/ros-amd64-bringup/; revision=39469
2009-02-08 03:27:01 +00:00
Timo Kreuzer
ca968fbb46 fix some definitions in mmsystem.h
svn path=/branches/ros-amd64-bringup/; revision=39468
2009-02-08 03:10:23 +00:00
Timo Kreuzer
dadf662776 rbuild: improve r37786 a bit
- Link to libgcc_eh for C++ apps.

svn path=/branches/ros-amd64-bringup/; revision=39416
2009-02-05 18:37:48 +00:00
Timo Kreuzer
ae1cda6270 rbuild: implement MingwModuleHandler::GetDebugFormat(), returning "dwarf-2" on amd64, "stabs+" in all other cases so far.
svn path=/branches/ros-amd64-bringup/; revision=39415
2009-02-05 18:29:24 +00:00
Timo Kreuzer
203459bc9e csrsrv: convert to spec
svn path=/branches/ros-amd64-bringup/; revision=39375
2009-02-04 03:41:43 +00:00
Timo Kreuzer
2204f4ce96 remove an old hack
svn path=/branches/ros-amd64-bringup/; revision=39373
2009-02-04 03:34:53 +00:00
Timo Kreuzer
66f30cfa89 Fix LDR_DATA_TABLE_ENTRY mamber names
svn path=/branches/ros-amd64-bringup/; revision=39372
2009-02-04 03:15:10 +00:00
Timo Kreuzer
8c77907bae rbuild: this got lost, too
svn path=/branches/ros-amd64-bringup/; revision=39371
2009-02-04 01:45:14 +00:00
Timo Kreuzer
0b3583a39b rbuild: merge what got lost from r38301
svn path=/branches/ros-amd64-bringup/; revision=39370
2009-02-04 01:44:23 +00:00
Timo Kreuzer
e3af9afd04 sync widl to trunk r39350
svn path=/branches/ros-amd64-bringup/; revision=39367
2009-02-04 01:23:02 +00:00
Timo Kreuzer
29801bdec4 merge r39363 from trunk
svn path=/branches/ros-amd64-bringup/; revision=39365
2009-02-04 00:08:00 +00:00
Timo Kreuzer
886623464d remove duplicate reference to libcntpr
svn path=/branches/ros-amd64-bringup/; revision=39363
2009-02-04 00:04:22 +00:00
Timo Kreuzer
cfd74942e7 dxtn: convert to spec
svn path=/branches/ros-amd64-bringup/; revision=39361
2009-02-03 23:59:05 +00:00
Timo Kreuzer
4507070315 update tracert from trunk
svn path=/branches/ros-amd64-bringup/; revision=39360
2009-02-03 23:53:04 +00:00
Timo Kreuzer
c7f6d8fd09 update ping from trunk
svn path=/branches/ros-amd64-bringup/; revision=39358
2009-02-03 23:37:52 +00:00
Timo Kreuzer
bc2fb17d2b update calc part 2
svn path=/branches/ros-amd64-bringup/; revision=39356
2009-02-03 23:21:36 +00:00
Timo Kreuzer
861dce28f8 Update calc
svn path=/branches/ros-amd64-bringup/; revision=39355
2009-02-03 23:19:18 +00:00
Timo Kreuzer
f611bc9f3d Sync to trunk r39350.
Usermode is broken. Some idl problem.

svn path=/branches/ros-amd64-bringup/; revision=39352
2009-02-03 22:14:40 +00:00
Timo Kreuzer
a3df672920 [DDK] Move rtl byteswap functions to wdm.h and add intrinsic definitions
svn path=/branches/ros-amd64-bringup/; revision=39347
2009-02-03 19:55:11 +00:00
Timo Kreuzer
6130b41fe2 [NDK] Use intrinsics for rtl byteswap functions for GNUC, too. Only include them if NTOS_MODE_USER. Fuctions are only present for NTDDI_VERSION >= NTDDI_WIN2K
svn path=/branches/ros-amd64-bringup/; revision=39346
2009-02-03 19:51:09 +00:00
Timo Kreuzer
f983125e50 ksuser: convert to spec, don't allow warnings
svn path=/branches/ros-amd64-bringup/; revision=39345
2009-02-03 19:42:31 +00:00
Timo Kreuzer
19e9f7ea24 Fix broken and overcomplicated pointer arithmetic
svn path=/branches/ros-amd64-bringup/; revision=39342
2009-02-03 19:26:00 +00:00
Timo Kreuzer
e7cb518fd7 deconstify target in interlocked intrinsics
svn path=/branches/ros-amd64-bringup/; revision=39338
2009-02-03 16:48:50 +00:00
Timo Kreuzer
f61c37c2cb fix prototype of RtlAllocateHeap
svn path=/branches/ros-amd64-bringup/; revision=39335
2009-02-03 15:43:51 +00:00
Timo Kreuzer
61467fd142 hid: convert to spec (taken from wine)
svn path=/branches/ros-amd64-bringup/; revision=39333
2009-02-03 15:23:27 +00:00
Timo Kreuzer
58ab969261 implement __iob_func()
svn path=/branches/ros-amd64-bringup/; revision=39331
2009-02-03 15:14:30 +00:00
Timo Kreuzer
38c6f78763 dnsapi.dll: convert to spec (taken from wine)
svn path=/branches/ros-amd64-bringup/; revision=39328
2009-02-03 14:57:37 +00:00
Timo Kreuzer
5f3118f01c include time.h for struct tm
svn path=/branches/ros-amd64-bringup/; revision=39325
2009-02-03 14:43:10 +00:00
Timo Kreuzer
665679dffe time.h: rename include guard to _INC_TIME, remove localtime_s and localtime_r definition, define asctime_s only if __STDC_WANT_SECURE_LIB is defined.
svn path=/branches/ros-amd64-bringup/; revision=39324
2009-02-03 14:34:30 +00:00
Timo Kreuzer
d12be4b77d add localtime_s prototype here, as it's not part of official headers
svn path=/branches/ros-amd64-bringup/; revision=39317
2009-02-03 13:00:31 +00:00
Timo Kreuzer
70e9bdcc15 revert last commit, this is wine code, we need allowwarnings="true"
svn path=/branches/ros-amd64-bringup/; revision=39313
2009-02-03 12:35:49 +00:00
Timo Kreuzer
793fdfb70a Use %p instead of %0xlx as format for pointer sized variable.
svn path=/branches/ros-amd64-bringup/; revision=39312
2009-02-03 12:31:24 +00:00
Timo Kreuzer
89b023d340 implement _mktime32, _mkgmtime32, _mktime64, _mkgmtime64 and use a worker function for all versions.
svn path=/branches/ros-amd64-bringup/; revision=39311
2009-02-03 12:27:01 +00:00
Timo Kreuzer
f9df018c07 remove #if 0 hack
svn path=/branches/ros-amd64-bringup/; revision=39306
2009-02-03 11:12:22 +00:00
Timo Kreuzer
877dfe0d32 #if out x86 specific inline code for other archictectures
svn path=/branches/ros-amd64-bringup/; revision=39299
2009-02-03 03:51:40 +00:00
Timo Kreuzer
b59c53ef27 #if out x86 specific inline code for other archictectures
svn path=/branches/ros-amd64-bringup/; revision=39298
2009-02-03 03:51:15 +00:00
Timo Kreuzer
f0497fd9c5 kd64: Add KdpSysGetVersion to internal header
svn path=/branches/ros-amd64-bringup/; revision=39297
2009-02-03 01:08:26 +00:00
Timo Kreuzer
2a2d68b378 Fix LDR_DATA_TABLE_ENTRY member names
svn path=/branches/ros-amd64-bringup/; revision=39296
2009-02-03 01:07:37 +00:00
Timo Kreuzer
3d3f2049c4 Fix KiInitGdtEntry
svn path=/branches/ros-amd64-bringup/; revision=39278
2009-02-01 22:08:01 +00:00
Timo Kreuzer
61f5b1e0b2 Add a comment, remove a comment
svn path=/branches/ros-amd64-bringup/; revision=39199
2009-01-29 16:00:22 +00:00
Timo Kreuzer
95d550f693 fix Ki386InitializeTss
svn path=/branches/ros-amd64-bringup/; revision=39198
2009-01-29 15:56:54 +00:00
Timo Kreuzer
0534c6e4a6 KD64: implement case 0 for KdpReadControlSpace, which returns a pointer to the Pcr.
svn path=/branches/ros-amd64-bringup/; revision=39191
2009-01-28 23:34:04 +00:00
Samuel Serapion
02f91befe1 Fix typo.
svn path=/branches/ros-amd64-bringup/; revision=39173
2009-01-28 12:08:33 +00:00
Timo Kreuzer
ae77b8e1f9 kd64: Implement KdpRead/WriteMachineSpecificRegister
svn path=/branches/ros-amd64-bringup/; revision=39162
2009-01-28 04:15:09 +00:00
Timo Kreuzer
7b5da63100 KD64: remove some FrLdrDbgPrints, fix a warning.
svn path=/branches/ros-amd64-bringup/; revision=39161
2009-01-28 04:14:05 +00:00
Samuel Serapion
3d6da207d7 The wbinvd instruction is the same on amd64
svn path=/branches/ros-amd64-bringup/; revision=39160
2009-01-28 03:07:51 +00:00
Timo Kreuzer
a04bd167e3 Ke: Remove unused KiInitializeMachineType and Ki486CompatibilityLock. Remove a bunch of FrLdrDbgPrints. Resort KiSystemStartupReal, initialize the LoaderBlocks Process and Prcb field for Cpu0, get the Pcr from the LoaderBlock.
svn path=/branches/ros-amd64-bringup/; revision=39155
2009-01-27 22:14:06 +00:00
Timo Kreuzer
5374ad15b8 hal: fix some ULONG/ULONG_PTR issues
svn path=/branches/ros-amd64-bringup/; revision=39151
2009-01-27 21:35:00 +00:00
Timo Kreuzer
4889abaf25 kd64: Move KdpSysGetVersion into arch-specific file
svn path=/branches/ros-amd64-bringup/; revision=39136
2009-01-27 16:26:30 +00:00
Timo Kreuzer
10b297f752 kdcom: xor 1 to CurrentPacketId when we receive an ACK, not when we send one. Remove the SYNC_PACKET_ID hack. Now breaking in after DbgPrints works.
svn path=/branches/ros-amd64-bringup/; revision=39133
2009-01-27 12:58:24 +00:00
Timo Kreuzer
ae0c07b4f8 Acknowledge a packet with the received packet's PacketId, not with the current sending PacketId.
svn path=/branches/ros-amd64-bringup/; revision=39131
2009-01-27 12:15:22 +00:00
Timo Kreuzer
08050b1520 Increment rip in KiBreakPointTrap and reenable decrement in KiDispatchException. (Do we really need it, first inc then dec? At least x86 does it that way) Setup fs selector in KiSystemStartupReal, pass a pointer to FrLdrDbgPrint to kdcom, fix some typos. Finally breaking into the debugger and continuing really works.
svn path=/branches/ros-amd64-bringup/; revision=39126
2009-01-27 01:57:35 +00:00
Timo Kreuzer
dc125646a5 kdcom: add SYNC_PACKET_ID for PACKET_TYPE_KD_DEBUG_IO to make debugprints work.
svn path=/branches/ros-amd64-bringup/; revision=39124
2009-01-27 00:55:03 +00:00
Timo Kreuzer
b906e54b40 rsym64: instead of stripping sections from the middle of the PE, convert them to bss sections to make windows happy and keep the files small. Thanks to kjk for finding the problem.
svn path=/branches/ros-amd64-bringup/; revision=39121
2009-01-26 22:48:54 +00:00
Timo Kreuzer
109668d7a2 remove a test hack that sneaked in and broke exception directory
svn path=/branches/ros-amd64-bringup/; revision=39114
2009-01-26 17:01:49 +00:00
Timo Kreuzer
3e88b3778e ntoskrnl/Ke: setup stack segment selector in KeSetupsStackAndInitializeKernel, comment out decrement of Rip on int3 dispatch (needs further investigation), use CONTEXT_ALL flags when creating the CONTEXT from the trap frame in KeDispatchException
svn path=/branches/ros-amd64-bringup/; revision=39074
2009-01-25 01:17:04 +00:00
Timo Kreuzer
a8d4d9d5c5 freeldr: setup more entries of the gdt
svn path=/branches/ros-amd64-bringup/; revision=39073
2009-01-25 01:06:34 +00:00
Timo Kreuzer
b783e3b2bf rsym64: add a temp hack, keeping the .eh_frame section, as windows cries when we remove it for some reason, needs more investigation what goes wrong.
svn path=/branches/ros-amd64-bringup/; revision=39072
2009-01-24 22:50:02 +00:00
Timo Kreuzer
3210df5936 Merge 38960 from trunk
svn path=/branches/ros-amd64-bringup/; revision=39071
2009-01-24 22:34:39 +00:00
Samuel Serapion
4fd7607a1b Fix compilation on gcc 4.4.0
svn path=/branches/ros-amd64-bringup/; revision=39060
2009-01-24 11:05:13 +00:00
Samuel Serapion
ed09d1bb98 Fix compilation for gcc 4.4.0 and 64bits
svn path=/branches/ros-amd64-bringup/; revision=39059
2009-01-24 11:04:21 +00:00
Timo Kreuzer
9d8a81b57d KD64: Use CURRENT_KD_SECONDARY_VERSION instead of default in KdVersionBlock. Use UseExceptionRecordTo64. add some dirty hacks, until either WinDbg gets proper addresses sent or we have SEH implemented.
svn path=/branches/ros-amd64-bringup/; revision=39056
2009-01-24 01:05:38 +00:00
Timo Kreuzer
5fde806e8b add ExceptionRecordTo64 macro that copies the exception excord on win64, and calls ExceptionRecord32To64 on win32
svn path=/branches/ros-amd64-bringup/; revision=39055
2009-01-24 00:59:37 +00:00
Timo Kreuzer
b92e8a49aa Add property USERMODE, set it to 1 to compile usermode parts (base, dlls and mingw lib)
svn path=/branches/ros-amd64-bringup/; revision=39053
2009-01-23 23:37:51 +00:00
Timo Kreuzer
af71294b61 NDK: fix and update LDR_DATA_TABLE_ENTRY
svn path=/branches/ros-amd64-bringup/; revision=39052
2009-01-23 22:13:08 +00:00
Timo Kreuzer
da3e5b3190 add mingw lib back to build
svn path=/branches/ros-amd64-bringup/; revision=39043
2009-01-23 12:51:43 +00:00
Timo Kreuzer
11412f0a26 ks64: Don't truncate the Thread pointer. Silence a warning.
svn path=/branches/ros-amd64-bringup/; revision=39019
2009-01-22 15:55:21 +00:00
Timo Kreuzer
fbdecd3e79 kd64: KdpReadControlSpace works a bit different on x64, u.ReadMemory.TargetBaseAddress is not used as an offset, it's rather an index. On 1 a pointer to the prcb is returned, on 2 ProcessorState.SpecialRegisters is copied. Fix usage of IN and OUT.
svn path=/branches/ros-amd64-bringup/; revision=39005
2009-01-21 22:21:19 +00:00
Timo Kreuzer
145902626f Merge 38961 from trunk
svn path=/branches/ros-amd64-bringup/; revision=39003
2009-01-21 18:32:33 +00:00
Timo Kreuzer
5f4c3a7d19 kdcom: If a MessageData pointer is passed to KdReceivePacket, fill in Size member. Some cleanup. Now we pass the former assertion, but crash in KdpReadVirtualMemory. This lloks more like a bug in the x64 version of KdpReadControlSpace. Vista64 returns a kernel pointer that used in the following ReadMemory packet. Ros returns some crap.
svn path=/branches/ros-amd64-bringup/; revision=39002
2009-01-21 18:19:52 +00:00
Timo Kreuzer
d740961aa2 kdcom: Implement KdpReceivePacketLeader that tries to get a packet leader and starts over as soon as a single byte is wrong. Use it instead of the old code in KdReceivePacket. Implement more of KdReceivePacket, handling the actual packets. Make use of CurrentPacketId that gets xored with 1 when sending acks and initialized on a reset. Not handling this correctly made WinDbg wait for more packets, although it sent an ack packet already.
Only return KdPacketReceived on an ack packet, when we requested one. Stuff starts to work now. WinDbg connects then reports "Assertion 'Data->Length == 0' failed at ntoskrnl\kd64\kdapi.c line 310".

svn path=/branches/ros-amd64-bringup/; revision=38985
2009-01-21 02:53:48 +00:00
Timo Kreuzer
bb91a6f44a rsym64: only compare lower 16 bits of checksum
svn path=/branches/ros-amd64-bringup/; revision=38973
2009-01-20 13:46:24 +00:00
Timo Kreuzer
7ad31d2719 kdcom: implement KdpSendControlPacket and use it to respond with a reset packet to a reset packet. WindDbg expects this and will now finally except the resent packet and respond with a DBGKD_MANIPULATE_STATE64
svn path=/branches/ros-amd64-bringup/; revision=38971
2009-01-20 10:05:21 +00:00
Timo Kreuzer
eabd9536dd kdcom: partly handle control packets, now we resend our data on reset packets, but WinDbg still doesn't like them.
svn path=/branches/ros-amd64-bringup/; revision=38967
2009-01-20 03:17:31 +00:00
Timo Kreuzer
b03befb720 kdcom: initial implementation of KdSendPacket() and KdReceivePacket(). Based on info in ms windbgkd.h and http://www.nynaeve.net/?p=169
Now we start exchanging packets, but still not good enough to get things going.

svn path=/branches/ros-amd64-bringup/; revision=38966
2009-01-20 02:57:14 +00:00
Timo Kreuzer
2aa87f6dc5 kdcom: add a debug hack to use com2 for WinDbg, while com1 stays for FrLdrDbgPrint. Also mark the Port as initialized in KdDebuggerInitialize0. Remove the KD_RECV_CODE enum, use the KDSTATUS enum that already exist. Implement PACKET_TYPE_KD_POLL_BREAKIN case for KdReceivePacket as described in http://www.nynaeve.net/?p=169 Now we return from KdPollBreakIn().
svn path=/branches/ros-amd64-bringup/; revision=38965
2009-01-20 01:50:13 +00:00
Timo Kreuzer
9313950dd3 kdcom: Add KD_RECEIVE_CODE enum, implement KdpReceiveBuffer, HACK: misuse KdDebuggerInitialize1 to set a pointer to FrLdrDbgPrint
svn path=/branches/ros-amd64-bringup/; revision=38964
2009-01-20 01:05:07 +00:00
Timo Kreuzer
727c68db9e Implement KdpSendBuffer, KdpCalculateChecksum,
reference: http://www.vista-xp.co.uk/forums/technical-reference-library/2540-basics-debugging.html

svn path=/branches/ros-amd64-bringup/; revision=38963
2009-01-20 00:42:10 +00:00
Timo Kreuzer
89bebbd18c go back to no debugging channels in freeldr
svn path=/branches/ros-amd64-bringup/; revision=38959
2009-01-19 23:02:13 +00:00
Timo Kreuzer
eb53e42811 crt update:
- initial implementation of secure crt functions for vista compatibility (implement _get_invalid_parameter_handler, _set_invalid_parameter_handler, _invalid_parameter)
- rewrite time apis, add TLS support, add 64bit time functions and secure crt function support

svn path=/branches/ros-amd64-bringup/; revision=38956
2009-01-19 22:05:27 +00:00
Timo Kreuzer
a6ccd8981a time.h: add asctime_s and localtime_s, remove sec_api include
wchar.h: fix WTIME definitions

svn path=/branches/ros-amd64-bringup/; revision=38955
2009-01-19 21:53:26 +00:00
Timo Kreuzer
da6a9dbfe5 Remove double brackets, I missed. Add a DPRINT1 if kernel is not loaded.
svn path=/branches/ros-amd64-bringup/; revision=38951
2009-01-19 18:50:19 +00:00
Timo Kreuzer
74bcfdb123 Fix return value of FrLdrReadAndMapImage when image is already loaded.
svn path=/branches/ros-amd64-bringup/; revision=38950
2009-01-19 18:45:26 +00:00
Timo Kreuzer
03c5f702be Fix rsym a bit, so that it properly calculates the section start. Now reactos boots again.
svn path=/branches/ros-amd64-bringup/; revision=38947
2009-01-19 18:05:27 +00:00
Timo Kreuzer
4915884a37 improve freeldr debug prints:
- include reactos/debug.h
- rename DebugPrint to DbgPrintMask
- use DbgPrint to DPRINTM, add file and line and get rid of the ugly double brackets

svn path=/branches/ros-amd64-bringup/; revision=38942
2009-01-19 16:29:02 +00:00
Timo Kreuzer
b0c158cf99 ok, better test changes before comitting them ;-)
svn path=/branches/ros-amd64-bringup/; revision=38921
2009-01-18 22:35:17 +00:00
Timo Kreuzer
2a568fccdc Tracing the data exchanged between Windows64 and WinDbg shows that DBGKD_CONTROL_REPORT is a bit different to x86 version.
svn path=/branches/ros-amd64-bringup/; revision=38920
2009-01-18 21:55:59 +00:00
Samuel Serapion
865a88e5b0 Re: 38126
- Sorry, but this hack cannot go away at this time.

svn path=/branches/ros-amd64-bringup/; revision=38878
2009-01-18 10:03:47 +00:00
Samuel Serapion
f07877a8c6 Remove unnecessary dependency, fix build a bit.
svn path=/branches/ros-amd64-bringup/; revision=38877
2009-01-18 09:44:36 +00:00
Samuel Serapion
6e949303bb - Don't go SIZE_T crazy.
svn path=/branches/ros-amd64-bringup/; revision=38593
2009-01-06 00:35:05 +00:00
Timo Kreuzer
f82333b8ea Sync to trunk r38500
svn path=/branches/ros-amd64-bringup/; revision=38502
2009-01-01 22:38:03 +00:00
Timo Kreuzer
9ff809f84c sync to trunk r38300
svn path=/branches/ros-amd64-bringup/; revision=38498
2009-01-01 14:45:53 +00:00
Timo Kreuzer
79287b3e31 Sync to trunk r38250
svn path=/branches/ros-amd64-bringup/; revision=38496
2009-01-01 13:32:17 +00:00
Timo Kreuzer
4994d3c247 add missing files
svn path=/branches/ros-amd64-bringup/; revision=38493
2008-12-31 16:35:20 +00:00
Timo Kreuzer
32911b0635 Sync to trunk r38200
svn path=/branches/ros-amd64-bringup/; revision=38489
2008-12-31 14:31:22 +00:00
Timo Kreuzer
87385f6149 fix HeapAlloc prototype
svn path=/branches/ros-amd64-bringup/; revision=38478
2008-12-30 20:49:46 +00:00
Timo Kreuzer
58afe72aa3 comment out atexit
svn path=/branches/ros-amd64-bringup/; revision=38477
2008-12-30 20:48:35 +00:00
Samuel Serapion
479377dfd0 Fixed a pointer truncation for 64-bit platform.
svn path=/branches/ros-amd64-bringup/; revision=38425
2008-12-28 14:26:21 +00:00
Samuel Serapion
6ecedd47a1 More heap fixes, ported from WINE
svn path=/branches/ros-amd64-bringup/; revision=38424
2008-12-28 14:24:49 +00:00
Samuel Serapion
390ac5feda Fix RtlAllocateHeap, RtlExtendHeap,RtlSizeHeap definitions.
svn path=/branches/ros-amd64-bringup/; revision=38423
2008-12-28 14:20:37 +00:00
Samuel Serapion
ffe3ffa1cf Correct SYSTEM_PROCESS_INFORMATION
svn path=/branches/ros-amd64-bringup/; revision=38356
2008-12-26 16:18:50 +00:00
Timo Kreuzer
93f32e7657 Initial x64 SEH support for rsym64. Together with the x64 SEH macros, it (partly) creates the needed tables. It has also revealed that there is something broken with DW_CFA_advance_loc4.
svn path=/branches/ros-amd64-bringup/; revision=38341
2008-12-25 00:20:47 +00:00
Samuel Serapion
eb32a3cd15 From MSDN "If you are retrieving a pointer or a handle, this function supersedes the GetWindowLong function. To write code that is compatible with both 32-bit and 64-bit versions of Windows, use Get/SetWindowLongPtr."
svn path=/branches/ros-amd64-bringup/; revision=38335
2008-12-24 22:05:17 +00:00
Samuel Serapion
e47dc393c2 Re-add telnet since it builds(or will build).
svn path=/branches/ros-amd64-bringup/; revision=38334
2008-12-24 22:01:45 +00:00
Timo Kreuzer
5c2787148f #define _alloca() to __builtin_alloca(), that's the only way it will work properly on x64 anyway.
svn path=/branches/ros-amd64-bringup/; revision=38333
2008-12-24 20:55:01 +00:00
Timo Kreuzer
8963c5225c Delete broken _alloca implementation, before someone actually starts using it ;-)
svn path=/branches/ros-amd64-bringup/; revision=38332
2008-12-24 20:26:23 +00:00
Timo Kreuzer
a027c06dd6 Add more IMAGE_SCN_ flags
svn path=/branches/ros-amd64-bringup/; revision=38331
2008-12-24 18:03:55 +00:00
Timo Kreuzer
2b77a843b0 rsym64: Fix a bunch bugs, cleanup code. Now it can strip sections at any position, so if eh_frame is not at the end, we only waste a little address space, and we got plenty of that.
svn path=/branches/ros-amd64-bringup/; revision=38330
2008-12-24 18:02:47 +00:00
Samuel Serapion
16ff8f92cb Repeat after me "typedef INT_PTR(CALLBACK *DLGPROC)(HWND,UINT,WPARAM,LPARAM);", sorry.
svn path=/branches/ros-amd64-bringup/; revision=38268
2008-12-22 06:45:49 +00:00
Samuel Serapion
564312ffb7 devcpux:
- Fix ProcessorDlgProc definition
- Convert to spec.
slayer:
- Convert to spec.

svn path=/branches/ros-amd64-bringup/; revision=38265
2008-12-22 05:42:05 +00:00
Samuel Serapion
162c2a5804 Fix compilation and some warnings.
svn path=/branches/ros-amd64-bringup/; revision=38264
2008-12-22 04:51:38 +00:00
Samuel Serapion
2824f8b4a0 Fix definitions of WAVEOPENDESC, WAVEHDR structures.
Fix prototypes for DefDriverProc, waveOutMessage, waveOutGetDevCapsA/W, waveInGetDevCapsA/W, waveInMessage, midiStreamOpen, midiOutGetDevCapsA/W, midiOutOpen, midiOutMessage, midiInGetDevCapsA/W, midiInOpen, midiInMessage, auxGetDevCapsA/W, auxOutMessage, mixerGetDevCapsA/W, mixerOpen, timeSetEvent, joyGetDevCapsA/W, mciSendCommandA/W, and mciGetCreatorTask.

svn path=/branches/ros-amd64-bringup/; revision=38263
2008-12-22 04:50:48 +00:00
Samuel Serapion
266b729240 Fix EDITSTREAM structure
svn path=/branches/ros-amd64-bringup/; revision=38260
2008-12-22 03:22:05 +00:00
Samuel Serapion
24342b9c3c Support IMAGE_REL_BASED_DIR64.
svn path=/branches/ros-amd64-bringup/; revision=38259
2008-12-22 03:09:04 +00:00
Timo Kreuzer
caacb7bff8 convert to spec
svn path=/branches/ros-amd64-bringup/; revision=38151
2008-12-17 15:27:56 +00:00
Timo Kreuzer
8d0dd50137 fix a cast and convert to spec
svn path=/branches/ros-amd64-bringup/; revision=38150
2008-12-17 15:19:08 +00:00
Timo Kreuzer
0651a3109d Fix pointer<->ULONG cast
svn path=/branches/ros-amd64-bringup/; revision=38149
2008-12-17 14:46:23 +00:00
Timo Kreuzer
d1eea0b572 convert to spec
svn path=/branches/ros-amd64-bringup/; revision=38148
2008-12-17 14:43:12 +00:00
Timo Kreuzer
b4f1e51d0e revert 38134, it breaks other stuff
svn path=/branches/ros-amd64-bringup/; revision=38139
2008-12-17 01:36:21 +00:00
Timo Kreuzer
16bbd1dbf5 Update ntdll def file
svn path=/branches/ros-amd64-bringup/; revision=38138
2008-12-17 01:30:12 +00:00
Timo Kreuzer
3eba336ee7 comment out a few exports, now msvcrt can be built
svn path=/branches/ros-amd64-bringup/; revision=38137
2008-12-17 01:29:41 +00:00
Timo Kreuzer
547e215d9e fix overcomplicated and broken definitions of __iob_func and _iob
svn path=/branches/ros-amd64-bringup/; revision=38136
2008-12-17 01:28:37 +00:00
Timo Kreuzer
c302a05577 fix _locaktime64 for x86
svn path=/branches/ros-amd64-bringup/; revision=38135
2008-12-17 01:27:37 +00:00
Timo Kreuzer
e74941a2fd comment out some files from mingw lib that result in duplicate definitions, as they are also in crt
svn path=/branches/ros-amd64-bringup/; revision=38134
2008-12-17 01:17:47 +00:00
Timo Kreuzer
e44fb72b24 - Add asm stubs for atan2, exp, fmod, ldexp, log10
- hack in _time64 and _localtime64

svn path=/branches/ros-amd64-bringup/; revision=38133
2008-12-17 01:16:58 +00:00
Timo Kreuzer
81173b5784 remove RtlpGetStackLimits from crt
svn path=/branches/ros-amd64-bringup/; revision=38132
2008-12-17 01:14:36 +00:00
Timo Kreuzer
c91997a275 Make sure mingw_common imports are resolved, by adding it to mingw_main, mingw_wmain and mingw_dllmain
svn path=/branches/ros-amd64-bringup/; revision=38130
2008-12-16 23:33:43 +00:00
Timo Kreuzer
168e4491b2 - DLLs that don't contain any code (like cfgmgr) don't need to have an .eh_frame section. Make sure rsym64 continues in that case.
- Handle DW_CFA_GNU_args_size

svn path=/branches/ros-amd64-bringup/; revision=38129
2008-12-16 23:32:03 +00:00
Timo Kreuzer
7ff45ee579 new def file for ntdll, based on Vista64 exports
svn path=/branches/ros-amd64-bringup/; revision=38128
2008-12-16 22:45:26 +00:00
Timo Kreuzer
5fa3aa4e15 Implement asm stubs for alldiv, atan, ceil, cos, fabs, floor, log, pow, sin, sqrt, tan, _chkstk, _alloca_probe to libcntpr. Now we can build ntdll.
svn path=/branches/ros-amd64-bringup/; revision=38127
2008-12-16 20:46:34 +00:00
Timo Kreuzer
fd16ec3f12 reduce hacks: build complete lib folder
svn path=/branches/ros-amd64-bringup/; revision=38126
2008-12-16 18:44:20 +00:00
Timo Kreuzer
8d14dcfcd8 hack away broken UNALIGNED. Maybe someone has a real solution for this... encoded?
svn path=/branches/ros-amd64-bringup/; revision=38125
2008-12-16 18:44:09 +00:00
Timo Kreuzer
fb50d69cc7 comment out RtlWalkFrameChain for x64, we currently implement it in lib/rtl (we probably need a seperate um implementation later though)
svn path=/branches/ros-amd64-bringup/; revision=38122
2008-12-16 18:28:48 +00:00
Timo Kreuzer
bafa860eb4 remove kernel32 dependency from mingw lib
svn path=/branches/ros-amd64-bringup/; revision=38119
2008-12-16 17:37:45 +00:00
Timo Kreuzer
944d1fea6a use setjmp/longjmp from libcntpr
svn path=/branches/ros-amd64-bringup/; revision=38114
2008-12-15 20:38:21 +00:00
Samuel Serapion
c97d86c1df opps, same here.
svn path=/branches/ros-amd64-bringup/; revision=38111
2008-12-15 17:20:44 +00:00
Samuel Serapion
fe19c9eaa6 - Fix UNALIGNED definition in crt.
- Definition not fixed in psdk because attribute(packed) is ignored on pointers and causes warnings, that with the pedantic warnings as errors break everything.

svn path=/branches/ros-amd64-bringup/; revision=38110
2008-12-15 17:19:10 +00:00
Timo Kreuzer
7dff983dd1 For some reason SVN didn't sync the line ending changes, although it's a binary file.
svn path=/branches/ros-amd64-bringup/; revision=38106
2008-12-15 13:19:02 +00:00
Timo Kreuzer
6803d9fd10 Use KeGetCurrentPrcb() instead of KeGetPcr()->Prcb / KeGetPcr()->CurrentPrcb
svn path=/branches/ros-amd64-bringup/; revision=38105
2008-12-15 12:56:15 +00:00
Samuel Serapion
8f799ea5b2 Accidentally undid 64 bit fixes, revert
svn path=/branches/ros-amd64-bringup/; revision=38100
2008-12-15 04:28:45 +00:00
Samuel Serapion
901f0cf805 attempt to fix kernel build.
svn path=/branches/ros-amd64-bringup/; revision=38099
2008-12-15 04:19:03 +00:00
Samuel Serapion
f771d5b193 Fix build a bit.
svn path=/branches/ros-amd64-bringup/; revision=38098
2008-12-15 04:17:53 +00:00
Samuel Serapion
45cf586a15 Sync to trunk head(r38096)
svn path=/branches/ros-amd64-bringup/; revision=38097
2008-12-15 04:14:26 +00:00
Samuel Serapion
0588a0d2a7 Sync to wine64. Adds support for amd64 relays.. not that we use this feature.
svn path=/branches/ros-amd64-bringup/; revision=38096
2008-12-15 02:45:33 +00:00
Samuel Serapion
d169f154e0 Fix packing for commdlg
svn path=/branches/ros-amd64-bringup/; revision=38095
2008-12-15 02:17:21 +00:00
Samuel Serapion
f9f9de97ed Start making heap 64bit friendly.
svn path=/branches/ros-amd64-bringup/; revision=38094
2008-12-15 02:13:20 +00:00
Samuel Serapion
a04b01097c hack for wine specific hack.
svn path=/branches/ros-amd64-bringup/; revision=38093
2008-12-15 02:09:44 +00:00
Samuel Serapion
c35f0410c2 Fix 64bit-warnings.
svn path=/branches/ros-amd64-bringup/; revision=38092
2008-12-15 01:45:23 +00:00
Samuel Serapion
119dbe70f5 Fix some 64bit portability issues.
svn path=/branches/ros-amd64-bringup/; revision=38091
2008-12-15 00:30:46 +00:00
Samuel Serapion
fdc49dfd3d Fix 64bit widl stubs.
svn path=/branches/ros-amd64-bringup/; revision=38090
2008-12-15 00:23:37 +00:00
Samuel Serapion
d4682afd4e define _SEH2_FINALLY
svn path=/branches/ros-amd64-bringup/; revision=38089
2008-12-15 00:22:04 +00:00
Timo Kreuzer
973a6f3ef5 Patch by encoded: update SHARED_CACHE_MAP
svn path=/branches/ros-amd64-bringup/; revision=38080
2008-12-14 17:59:11 +00:00
Samuel Serapion
aa4aedbeca same here.
svn path=/branches/ros-amd64-bringup/; revision=38073
2008-12-14 06:18:50 +00:00
Samuel Serapion
a2b06cb051 revert CryptReleaseContext "fix", WINE headers made a fool out of me... need sleep.
fix FARPROC, NEARPROC, PROC definitions, for real this time


svn path=/branches/ros-amd64-bringup/; revision=38072
2008-12-14 06:17:16 +00:00
Samuel Serapion
053c7f0490 Fix CryptReleaseContext.
svn path=/branches/ros-amd64-bringup/; revision=38071
2008-12-14 05:37:45 +00:00
Samuel Serapion
6dc71816b0 Fix CryptReleaseContext definition.
svn path=/branches/ros-amd64-bringup/; revision=38070
2008-12-14 04:36:07 +00:00
Timo Kreuzer
b3689bb450 Add a hack to wait for WinDbg after KdInitSystem.
svn path=/branches/ros-amd64-bringup/; revision=38057
2008-12-13 21:46:38 +00:00
Timo Kreuzer
36e8f534f6 ProgramCounter is 64 bit, so don't cast to ULONG
svn path=/branches/ros-amd64-bringup/; revision=38056
2008-12-13 21:42:34 +00:00
Timo Kreuzer
d533d151de Fix a typo, comment out a DPRINT
svn path=/branches/ros-amd64-bringup/; revision=38055
2008-12-13 21:37:59 +00:00
Timo Kreuzer
3420558496 Add _setjmp / longjmp to libcntpr, so we don't need to reimplement it in ntoskrnl. Should probably be done for x86, too.
svn path=/branches/ros-amd64-bringup/; revision=38053
2008-12-13 21:35:24 +00:00
Timo Kreuzer
8acd97a881 fix declaration of FrLdrDbgPrint
svn path=/branches/ros-amd64-bringup/; revision=38015
2008-12-11 11:40:04 +00:00
Timo Kreuzer
285fc8662b Update KTRAP_FRAME offsets
svn path=/branches/ros-amd64-bringup/; revision=38014
2008-12-11 11:38:57 +00:00
Timo Kreuzer
a64377d43d fix KTRAP_FRAME
svn path=/branches/ros-amd64-bringup/; revision=38013
2008-12-11 11:38:17 +00:00
Timo Kreuzer
8ceeb927f5 Fix a typo
svn path=/branches/ros-amd64-bringup/; revision=38003
2008-12-10 22:32:21 +00:00
Timo Kreuzer
3e1cd207ec Goodbye kdbg, hello WINKD
svn path=/branches/ros-amd64-bringup/; revision=37992
2008-12-10 01:27:58 +00:00
Timo Kreuzer
c5456baba1 Fix hal build
svn path=/branches/ros-amd64-bringup/; revision=37991
2008-12-10 01:26:44 +00:00
Timo Kreuzer
45de0f48eb add CBSTACK constants, need to check for correctness
svn path=/branches/ros-amd64-bringup/; revision=37990
2008-12-10 01:26:10 +00:00
Timo Kreuzer
ad9a017e45 Make winkd somewhat portable.
svn path=/branches/ros-amd64-bringup/; revision=37989
2008-12-10 01:25:09 +00:00
Timo Kreuzer
89d7e5d386 Fix KiDebugServiceTrap, so that it calls KiDispatchException with the right parameters. Disable saving of xmm registers for now, as it causes breakpoint traps (emulation still active?)
svn path=/branches/ros-amd64-bringup/; revision=37988
2008-12-10 01:15:46 +00:00
Timo Kreuzer
7bf8f6a4dc Fix DebugService
svn path=/branches/ros-amd64-bringup/; revision=37987
2008-12-10 01:08:40 +00:00
Timo Kreuzer
ba7785e2e0 Implement KdDebuggerInitialize0 and stubplement KdSendPacket, enough to get DebugOutput with WINKD work
svn path=/branches/ros-amd64-bringup/; revision=37986
2008-12-10 01:07:03 +00:00
Timo Kreuzer
22093ab465 Add KiCallUserMode stub
svn path=/branches/ros-amd64-bringup/; revision=37985
2008-12-10 00:58:18 +00:00
Timo Kreuzer
e2f0929100 Implement KeFreezeExecution and KeThawExecution
svn path=/branches/ros-amd64-bringup/; revision=37984
2008-12-10 00:56:59 +00:00
Timo Kreuzer
62eea8eb12 fix Ke386SetCr2
svn path=/branches/ros-amd64-bringup/; revision=37969
2008-12-09 15:50:10 +00:00
Timo Kreuzer
a113e3117f Make PsNtosImageBase an ULONG_PTR
svn path=/branches/ros-amd64-bringup/; revision=37968
2008-12-09 15:46:57 +00:00
Timo Kreuzer
6a834d507b fix ULONG/ULONG_PTR isuue
svn path=/branches/ros-amd64-bringup/; revision=37967
2008-12-09 15:45:54 +00:00
Timo Kreuzer
26c33b4493 Make IMAGE_ORDINAL_FLAG64 an ULONGLONG
svn path=/branches/ros-amd64-bringup/; revision=37966
2008-12-09 15:37:05 +00:00
Timo Kreuzer
cd48c95985 partly implement x64 versions of _setjmp, _setjmpex and longjmp
svn path=/branches/ros-amd64-bringup/; revision=37949
2008-12-08 22:51:29 +00:00
Timo Kreuzer
fe06da72d9 undef _ftime before implementing it
svn path=/branches/ros-amd64-bringup/; revision=37948
2008-12-08 22:31:27 +00:00
Timo Kreuzer
0b3653890a revert 37924, which reverted 37889, which works now
svn path=/branches/ros-amd64-bringup/; revision=37938
2008-12-08 13:43:12 +00:00
Timo Kreuzer
05409a610c update rsym from trunk
svn path=/branches/ros-amd64-bringup/; revision=37937
2008-12-08 13:42:25 +00:00
Timo Kreuzer
36855d6572 Fix gdi32 spec file. Some functions have SIZEL as parameter, which is 2*32bit on x86 and 1*64 bit on x64. We don't support this atm.
svn path=/branches/ros-amd64-bringup/; revision=37933
2008-12-08 12:37:15 +00:00
Timo Kreuzer
aa78ad4132 revert 36672 (SIZEL counts as 2 parameters)
svn path=/branches/ros-amd64-bringup/; revision=37932
2008-12-08 11:06:45 +00:00
Timo Kreuzer
26b6703525 sync trunk head (r37928)
svn path=/branches/ros-amd64-bringup/; revision=37931
2008-12-08 08:30:30 +00:00
Timo Kreuzer
ce87e09449 #define _INTEGRAL_MAX_BITS in _mingw.h
svn path=/branches/ros-amd64-bringup/; revision=37930
2008-12-08 08:02:40 +00:00
Timo Kreuzer
5b04a0fdc3 add framebased-gcchack.c to i386 build of pseh
svn path=/branches/ros-amd64-bringup/; revision=37929
2008-12-08 08:02:07 +00:00
Timo Kreuzer
e3ba8a1fb2 forward AttachThreadInput to win32k
svn path=/branches/ros-amd64-bringup/; revision=37927
2008-12-08 07:39:37 +00:00
Timo Kreuzer
8b0f0064d7 - fix *HOOKPROC definition
- add 64 bit BitTest functions

svn path=/branches/ros-amd64-bringup/; revision=37926
2008-12-08 07:37:16 +00:00
Timo Kreuzer
d14238f78f - reduce differences to trunk
svn path=/branches/ros-amd64-bringup/; revision=37925
2008-12-08 07:36:10 +00:00
Timo Kreuzer
dc1e12189e revert 37889 (still consuses rsym)
svn path=/branches/ros-amd64-bringup/; revision=37924
2008-12-08 07:33:04 +00:00
Timo Kreuzer
e8109f52a0 revert 37475 and 37818
svn path=/branches/ros-amd64-bringup/; revision=37923
2008-12-08 07:32:09 +00:00
Timo Kreuzer
03eee46a37 revert r35657
svn path=/branches/ros-amd64-bringup/; revision=37912
2008-12-07 15:15:15 +00:00
Timo Kreuzer
0f2c90f639 enable saving of xmm registers in RtlCaptureContext
svn path=/branches/ros-amd64-bringup/; revision=37911
2008-12-07 12:59:41 +00:00
Timo Kreuzer
bff1ad35c5 don't truncate a handle
svn path=/branches/ros-amd64-bringup/; revision=37909
2008-12-07 10:56:42 +00:00
Timo Kreuzer
4997973066 fix definition of SOCKET
TODO: revert "fixes" to code dealing with broken SOCKET definition

svn path=/branches/ros-amd64-bringup/; revision=37908
2008-12-07 08:36:06 +00:00
Timo Kreuzer
3acf547596 clear direction flag on interrupt
svn path=/branches/ros-amd64-bringup/; revision=37907
2008-12-06 23:37:30 +00:00
Timo Kreuzer
8adfb2a358 merge trunk head (37902)
svn path=/branches/ros-amd64-bringup/; revision=37904
2008-12-06 19:06:05 +00:00
Timo Kreuzer
9aa69b88a9 oops, looks like I forgot to commit this file (SEH2 stubs)
svn path=/branches/ros-amd64-bringup/; revision=37903
2008-12-06 18:33:48 +00:00
Timo Kreuzer
e2ee57a571 Allow loading files with relocs stripped off.
Finally it boots again.

svn path=/branches/ros-amd64-bringup/; revision=37896
2008-12-06 13:47:03 +00:00
Timo Kreuzer
6ebdb10425 recalculate VA and PA of .pdata section
svn path=/branches/ros-amd64-bringup/; revision=37895
2008-12-06 13:43:35 +00:00
Timo Kreuzer
188952468c merge rbuild changes 37811-37861 from trunk
svn path=/branches/ros-amd64-bringup/; revision=37889
2008-12-06 10:48:26 +00:00
Timo Kreuzer
8aca543566 merge 37780 from trunk
fix it so on x64 builds we use dwarf2 debugging format.

svn path=/branches/ros-amd64-bringup/; revision=37887
2008-12-06 10:17:19 +00:00
Timo Kreuzer
679f58e5d3 merge rbuild changes 37747,37778 from trunk
svn path=/branches/ros-amd64-bringup/; revision=37886
2008-12-06 09:52:19 +00:00
Timo Kreuzer
8c23ab3a5c merge rbuild changes 37270-37632 from trunk
svn path=/branches/ros-amd64-bringup/; revision=37884
2008-12-06 09:37:08 +00:00
Timo Kreuzer
76bb5fc5c9 disable build of icu and nls for now (doesn't compile)
svn path=/branches/ros-amd64-bringup/; revision=37881
2008-12-06 09:23:40 +00:00
Timo Kreuzer
3b6968f600 Add ExpInterlockedFlushSList stub
svn path=/branches/ros-amd64-bringup/; revision=37880
2008-12-06 09:21:46 +00:00
Timo Kreuzer
8b3d618a2b add back InterlockedPush/PopEntrySList
svn path=/branches/ros-amd64-bringup/; revision=37879
2008-12-06 09:20:54 +00:00
Timo Kreuzer
b0a4815b79 fix inflib_host build
svn path=/branches/ros-amd64-bringup/; revision=37878
2008-12-06 09:16:56 +00:00
Timo Kreuzer
24b6b8de23 inlcude excpt.h in winnt.h
svn path=/branches/ros-amd64-bringup/; revision=37875
2008-12-06 08:46:08 +00:00
Timo Kreuzer
3e92a627fa avoid redefinition of PTCSTR and fix missing PTCHAR
svn path=/branches/ros-amd64-bringup/; revision=37874
2008-12-06 08:38:09 +00:00
Timo Kreuzer
5fca453788 STDCALL->NTAPI
svn path=/branches/ros-amd64-bringup/; revision=37873
2008-12-06 08:02:11 +00:00
Timo Kreuzer
150d33cede - fix what got broken with recent merge in intrin_x86.h
- add intrinsic bittest functions to wdm.h

svn path=/branches/ros-amd64-bringup/; revision=37872
2008-12-05 20:18:58 +00:00
Timo Kreuzer
c8eaf02a99 STDCALL -> NTAPI
svn path=/branches/ros-amd64-bringup/; revision=37871
2008-12-05 19:30:32 +00:00
Timo Kreuzer
74e41179f8 - cleanup merge mess
svn path=/branches/ros-amd64-bringup/; revision=37870
2008-12-05 16:42:35 +00:00
Timo Kreuzer
4f4ec6b380 add dummy LDT_ENTRY
svn path=/branches/ros-amd64-bringup/; revision=37869
2008-12-05 16:39:16 +00:00
Timo Kreuzer
bc194edcd9 add CONTEXT flags for x64
svn path=/branches/ros-amd64-bringup/; revision=37868
2008-12-05 16:29:01 +00:00
Timo Kreuzer
d00a945f03 sync to trunk head (37853) (except rbuild changes)
This breaks everything. Sorry, but it has to be done.
Will fix ASAP.

svn path=/branches/ros-amd64-bringup/; revision=37867
2008-12-05 15:30:17 +00:00
Timo Kreuzer
2677618d96 "save your files before committing them!" -> good
"test your changes before comitting them!" -> better
revert 37787

svn path=/branches/ros-amd64-bringup/; revision=37854
2008-12-04 17:49:36 +00:00
Timo Kreuzer
7b3990cadd Partly implement KiDispatchException, based on x86 implementation.
svn path=/branches/ros-amd64-bringup/; revision=37849
2008-12-04 15:39:42 +00:00
Timo Kreuzer
b1ceb41863 Implement KeContextToTrapFrame and KeTrapFrameToContext
svn path=/branches/ros-amd64-bringup/; revision=37847
2008-12-04 15:01:02 +00:00
Timo Kreuzer
e9912c00c4 fix a comment, #undef RtlGetCallersaddress before implementing it
svn path=/branches/ros-amd64-bringup/; revision=37844
2008-12-04 11:26:30 +00:00
Timo Kreuzer
fb37702d2c Some assembly code to save restore registers on traps
svn path=/branches/ros-amd64-bringup/; revision=37837
2008-12-03 17:45:50 +00:00
Timo Kreuzer
f657ba453e - Implement iInitializeCouFeatures, replacing KiSetCR0Bits. This allows us to save / restore xmm registers
- check supported cpu features

svn path=/branches/ros-amd64-bringup/; revision=37822
2008-12-03 17:24:40 +00:00
Timo Kreuzer
92426e1c0f fix UNIMPLEMENTED asm macro
svn path=/branches/ros-amd64-bringup/; revision=37821
2008-12-03 17:15:09 +00:00
Timo Kreuzer
e1f844ee1f add more stuff to x64 asm.h
svn path=/branches/ros-amd64-bringup/; revision=37820
2008-12-03 16:39:26 +00:00
Timo Kreuzer
3425904a18 Simplyfy KiGetFeatureBits
svn path=/branches/ros-amd64-bringup/; revision=37819
2008-12-03 15:40:26 +00:00
Timo Kreuzer
70106f69f6 fix ULONG/ULONG_PTR issue
svn path=/branches/ros-amd64-bringup/; revision=37818
2008-12-03 14:10:19 +00:00
Samuel Serapion
95073b5aac save your files before committing them!
svn path=/branches/ros-amd64-bringup/; revision=37787
2008-12-01 03:12:14 +00:00
Samuel Serapion
64ea71c749 - Fix build.
- Exclude uniata from build.
- Compile more drivers.
- Make cdrom driver compile.
- Fix TDI spec file.
- Exclude C_ASSERT thats only relevant to some i386 asm.
- Link to libgcc_eh for C++ apps.

svn path=/branches/ros-amd64-bringup/; revision=37786
2008-12-01 02:47:26 +00:00
Samuel Serapion
431f306971 convert to spec
svn path=/branches/ros-amd64-bringup/; revision=37717
2008-11-29 10:18:10 +00:00
Samuel Serapion
e0f98e15a0 convert to spec
svn path=/branches/ros-amd64-bringup/; revision=37716
2008-11-29 10:17:51 +00:00
Samuel Serapion
7c0fbcd014 convert to spec
svn path=/branches/ros-amd64-bringup/; revision=37698
2008-11-28 02:34:09 +00:00
Samuel Serapion
99f446f5ff Fix 64bit warnings and errors.
Silence result computed not used warnings.
(Update your mingw-w64 to the latest snapshot to be able to build explorer).
Some linker issues still remain.

svn path=/branches/ros-amd64-bringup/; revision=37696
2008-11-27 21:22:59 +00:00
Timo Kreuzer
b899b58373 Add KTRAP_FRAME offsets to asm.h
svn path=/branches/ros-amd64-bringup/; revision=37536
2008-11-21 23:12:02 +00:00
Timo Kreuzer
fa47606621 Fix definitions of PFN_COUNT and (S)PFN_NUMBER
svn path=/branches/ros-amd64-bringup/; revision=37507
2008-11-21 11:32:37 +00:00
Timo Kreuzer
03fcd64b99 use the real RtlGetCallersAddress in ntoskrnl
svn path=/branches/ros-amd64-bringup/; revision=37494
2008-11-20 23:29:00 +00:00
Timo Kreuzer
10578c9846 fix amd64 / ia64 default definition of RtlGetCallersAddress
svn path=/branches/ros-amd64-bringup/; revision=37493
2008-11-20 23:25:09 +00:00
Timo Kreuzer
ee0da72800 Implement RtlpTryToUnwindEpilog, which tries to unwind a function, if we are in the epilog by parsing the allowed opcodes.
svn path=/branches/ros-amd64-bringup/; revision=37492
2008-11-20 21:55:44 +00:00
Timo Kreuzer
e7b4c29057 EPROCESS.Session should be a HANDLE.
svn path=/branches/ros-amd64-bringup/; revision=37475
2008-11-19 22:28:26 +00:00
Timo Kreuzer
adffadbbe7 make use of the new macros in ke/trap.S
svn path=/branches/ros-amd64-bringup/; revision=37474
2008-11-19 22:03:29 +00:00
Timo Kreuzer
db582cc3f1 Implement RtlCompareMemory is assembly, not used yet.
svn path=/branches/ros-amd64-bringup/; revision=37473
2008-11-19 21:54:37 +00:00
Timo Kreuzer
fcc5b3bfbf Move asmmacro.h to ndk, cause we need it outside of ntoskrnl, too.
svn path=/branches/ros-amd64-bringup/; revision=37472
2008-11-19 21:51:34 +00:00
Timo Kreuzer
a0de230f73 Some asm macros for x64. They allow creating unwind info in a MASM like way, As a general rule for all asm functions changing the stack pointer, use ".proc FunctionName" (without '_' prefix) before the function and ".endproc" after the function and use .allocstack, .pushreg, etc. after the corresponding opcode.
svn path=/branches/ros-amd64-bringup/; revision=37469
2008-11-19 21:24:52 +00:00
Timo Kreuzer
4a08b236bd - use (unsigned) long instead of ULONG
- add DW_CFA_offset_extended_sf

svn path=/branches/ros-amd64-bringup/; revision=37462
2008-11-19 19:03:40 +00:00
Timo Kreuzer
7ea9dd6a28 - Fix several ULONG/ULONG_PTR issues
- Add a parameter to DefaultQueryInfoBufferCheck for ULONG_PTR/SIZE_T ResultLength

svn path=/branches/ros-amd64-bringup/; revision=37435
2008-11-18 03:41:21 +00:00
Timo Kreuzer
ca24ca153b ETHREAD.TopLevelIrp is ULONG_PTR, not ULONG
svn path=/branches/ros-amd64-bringup/; revision=37434
2008-11-18 03:01:31 +00:00
Timo Kreuzer
6918fdc238 fix InterlockedExchangePointer usage
svn path=/branches/ros-amd64-bringup/; revision=37433
2008-11-18 02:40:51 +00:00
Timo Kreuzer
0460be46a7 fix a typo
svn path=/branches/ros-amd64-bringup/; revision=37432
2008-11-18 02:31:40 +00:00
Timo Kreuzer
39f948a7a4 forgot this file
svn path=/branches/ros-amd64-bringup/; revision=37431
2008-11-18 02:27:04 +00:00
Timo Kreuzer
eda691f786 cleanup ntoskrnl.exe:
- Move the last stubs into better places
- implement KeQueryActiveProcessors, KeInvalidateAllCaches, KeGetRecommendedSharedDataAlignment, KeSaveStateForHibernate, KeSetDmaIoCoherency, PsGetContext, PsSetContext based on x86 implementations.
- remove KdbpGetCommandLine from kd.c where it wasn't supposed to be
- remove amd64stubs.c

svn path=/branches/ros-amd64-bringup/; revision=37430
2008-11-18 02:25:41 +00:00
Timo Kreuzer
6496939b20 update amd64subs.c
svn path=/branches/ros-amd64-bringup/; revision=37429
2008-11-18 00:41:47 +00:00
Timo Kreuzer
682555b37e RtlWalkFrameChain:
- stop when we leave the stack or Rip gets 0

svn path=/branches/ros-amd64-bringup/; revision=37428
2008-11-18 00:39:39 +00:00
Timo Kreuzer
7df503962d remove kernel32 dependency from mingw.rbuild
svn path=/branches/ros-amd64-bringup/; revision=37427
2008-11-18 00:32:20 +00:00
Timo Kreuzer
9726adc85e "[00:08] Stefan100: 5) Alex_Ionescu will have your head"
Well, no risk, no fun... ;-)
Implement RtlpGetStackLimits

svn path=/branches/ros-amd64-bringup/; revision=37426
2008-11-18 00:31:22 +00:00
Timo Kreuzer
83991b3750 Implement RtlGetCallersAddress
svn path=/branches/ros-amd64-bringup/; revision=37425
2008-11-17 23:24:59 +00:00
Timo Kreuzer
ec5a72dda9 StackLimit < StackBase! Rename parameters in prototype of RtlpGetStackLimits to LowLimit and HighLimit.
svn path=/branches/ros-amd64-bringup/; revision=37424
2008-11-17 22:24:54 +00:00
Timo Kreuzer
cc2e388034 ...and remove it from amd64stubs.c
svn path=/branches/ros-amd64-bringup/; revision=37420
2008-11-17 19:53:18 +00:00
Timo Kreuzer
48d69bb1fc Add RtlUnwind stub to rtl...
svn path=/branches/ros-amd64-bringup/; revision=37419
2008-11-17 19:52:30 +00:00
Timo Kreuzer
f94841be68 Remove even more stubs
svn path=/branches/ros-amd64-bringup/; revision=37418
2008-11-17 19:48:00 +00:00
Timo Kreuzer
21dbc05113 remove more stubs
svn path=/branches/ros-amd64-bringup/; revision=37417
2008-11-17 19:26:58 +00:00
Timo Kreuzer
a2c562c00b ntoskrnl:
- Use generic Interlocked functions for amd64, too
- use generic rbuild file (2 hax left)
- add baseaddress for ntoskrnl
- update and sort amd64stubs

svn path=/branches/ros-amd64-bringup/; revision=37410
2008-11-17 16:24:37 +00:00
Samuel Serapion
b89fdd3cc2 - Use TARGET_CPPFLAGS, needs latest ROSBE.
- Link crt runtime to dlls too.

svn path=/branches/ros-amd64-bringup/; revision=37392
2008-11-17 06:08:13 +00:00
Samuel Serapion
20092b5ba7 - call __main (C++ initialization) gcc inserts this call automatically for a function called "main", but not for "wmain" fixes explorer
- support pseudo runtime relocation v2.
- re-enable commented out code for security cookies.
- rename entry point __tmainCRTStartup.
- gccmain.c re-add comment explaining this file's purpose.

svn path=/branches/ros-amd64-bringup/; revision=37391
2008-11-17 05:51:18 +00:00
Timo Kreuzer
7a6bb9e3e7 RtlCaptureContext can throw an exception. As we need to push the flags on the stack, we need to create unwind info to make sure we can properly unwind. So instead of pushing the flags and then popping them back, push them on the stack at the beginning of the function, reference the location later, clean up the stack at the function end. Also add .cif_adjust_cfa_offset unwind op.
svn path=/branches/ros-amd64-bringup/; revision=37370
2008-11-15 01:21:50 +00:00
Samuel Serapion
da81081fc1 Kill auto-import insurgent.
svn path=/branches/ros-amd64-bringup/; revision=37354
2008-11-14 05:53:40 +00:00
Samuel Serapion
13ddfe0c4a Kill auto-import insurgent.
svn path=/branches/ros-amd64-bringup/; revision=37353
2008-11-14 05:53:00 +00:00
Samuel Serapion
6043e97ff0 Correct definitions for WIN32 and WIN64.
svn path=/branches/ros-amd64-bringup/; revision=37352
2008-11-14 05:51:46 +00:00
Samuel Serapion
7ef39ab041 Declare war, shock and awe, and utterly defeat auto-import in one day.
svn path=/branches/ros-amd64-bringup/; revision=37351
2008-11-14 05:49:21 +00:00
Timo Kreuzer
31f36a74b1 Forgot this one
svn path=/branches/ros-amd64-bringup/; revision=37334
2008-11-13 04:54:47 +00:00
Timo Kreuzer
1bc69803f8 ULONG -> ULONG_PTR in KeRosDumpStackFrames
svn path=/branches/ros-amd64-bringup/; revision=37333
2008-11-13 04:48:07 +00:00
Timo Kreuzer
f391b2f222 Initial Implementations of RtlVirtualUnwind and RtlWalkFrameChain. They are not yet perfect, but unwinding works!
svn path=/branches/ros-amd64-bringup/; revision=37332
2008-11-13 04:17:53 +00:00
Timo Kreuzer
714e1a9b56 Remove RtlCaptureContext from stubs
svn path=/branches/ros-amd64-bringup/; revision=37331
2008-11-13 04:06:02 +00:00
Timo Kreuzer
fe2843026f RtlCaptureContext:
- Don't safe the current rsp, but the one before calling the function.
- Try to optimize a bit by moving stuff around

svn path=/branches/ros-amd64-bringup/; revision=37330
2008-11-13 04:05:06 +00:00
Timo Kreuzer
1e2be3b9a7 Fix a bug in DeDecodeU/Sleb128, resulting in wrong allocation unwind codes. Add some debugging stuff.
svn path=/branches/ros-amd64-bringup/; revision=37329
2008-11-13 03:32:09 +00:00
Timo Kreuzer
e428d08732 - Implement RtlCaptureContext
- Reenable KeRosDumpStackFrames

svn path=/branches/ros-amd64-bringup/; revision=37324
2008-11-12 23:38:33 +00:00
Timo Kreuzer
88f62c6544 Add CONTEXT offsets to asm.h
svn path=/branches/ros-amd64-bringup/; revision=37323
2008-11-12 23:03:17 +00:00
Timo Kreuzer
71d1bca21f Use PULONG instead of PSIZE_T in DefaultQueryInfoBufferCheck. Fixes 5 warnings, creates 1.
svn path=/branches/ros-amd64-bringup/; revision=37322
2008-11-12 23:02:22 +00:00
Timo Kreuzer
b5cbca16f7 Make sure we don't parse instructions beyond the eh_frame section. Looks like in some cases the last Fde isn't terminated with a 0 Length field.
svn path=/branches/ros-amd64-bringup/; revision=37320
2008-11-12 21:30:16 +00:00
Timo Kreuzer
f3668beb0c Implement RtlLookupFunctionTable, RtlLookupFunctionEntry and a usermode/kernelmode version of RtlpLookupModuleBase helper function.
svn path=/branches/ros-amd64-bringup/; revision=37308
2008-11-12 15:24:40 +00:00
Timo Kreuzer
3005f566a0 Add UNWIND_HISTORY_TABLE_ENTRY and UNWIND_HISTORY_TABLE
svn path=/branches/ros-amd64-bringup/; revision=37307
2008-11-12 15:23:16 +00:00
Timo Kreuzer
9ae42204ec Warn if a section doesn't fit into the ImageSize
svn path=/branches/ros-amd64-bringup/; revision=37306
2008-11-12 14:43:25 +00:00
Timo Kreuzer
7db1ae03ba Oops, fix SizeOfImage
svn path=/branches/ros-amd64-bringup/; revision=37305
2008-11-12 14:39:46 +00:00
Timo Kreuzer
f1648ec5f2 Update SizeOfImage in PE header, fixes boot.
svn path=/branches/ros-amd64-bringup/; revision=37302
2008-11-12 12:30:19 +00:00
Samuel Serapion
e2f5a5dda0 Add the architecture to the iso name.
svn path=/branches/ros-amd64-bringup/; revision=37301
2008-11-12 09:22:54 +00:00
Timo Kreuzer
47c9fd4484 revert changes in reactos.dff
svn path=/branches/ros-amd64-bringup/; revision=37300
2008-11-12 05:30:34 +00:00
Timo Kreuzer
7ac869cef9 Also update ntoskrnl linkerflag.
svn path=/branches/ros-amd64-bringup/; revision=37294
2008-11-11 21:57:15 +00:00
Timo Kreuzer
3fdd600cf9 Add a linkerflag to make sure we get an .eh_frame section. Todo: Get it at the end of the executable, so we can safely remove it. Remove duplicate disable-stdcall-fixup
Fixes build.

svn path=/branches/ros-amd64-bringup/; revision=37293
2008-11-11 21:51:53 +00:00
10748 changed files with 1495305 additions and 792821 deletions

View File

@@ -1,13 +1,12 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
@@ -16,7 +15,7 @@ software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
@@ -56,8 +55,8 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
@@ -111,7 +110,7 @@ above, provided that you also meet all of these conditions:
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
@@ -169,7 +168,7 @@ access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
@@ -226,7 +225,7 @@ impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
@@ -256,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -278,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
@@ -304,10 +303,9 @@ the "copyright" line and a pointer to where the full notice is found.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
@@ -337,5 +335,5 @@ necessary. Here is a sample; alter the names:
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

504
reactos/COPYING.LIB Normal file
View File

@@ -0,0 +1,504 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!

674
reactos/COPYING3 Normal file
View File

@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

165
reactos/COPYING3.LIB Normal file
View File

@@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

View File

@@ -16,7 +16,7 @@ Daniel Reimer <reimer.daniel@freenet.de>
David Welch <welch@cwcom.net>
Dmitry Chapyshev <dmitry@reactos.org>
Emanuele Aliberti <ea@iol.it>
Eric Kohl <ekohl@rz-online.de>
Eric Kohl
Eugene Ingerman <geneing@myrealbox.com>
Filip Navara <xnavara@volny.cz>
Frederik Leemans
@@ -31,7 +31,7 @@ Hartmut Birr <hartmut.birr@gmx.de>
Hernan Ochoa
Herve Poussineau <hpoussin@reactos.com>
Iwan Fatahi <i_fatahi@hotmail.com>
James B. Tabor <jimtabor.rosdev@gmail.com> <jimtabor@adsl-64-217-116-74.dsl.hstntx.swbell.net>
James Tabor <james.tabor@reactos.org> <jimtabor.rosdev@gmail.com> <jamestabor_rosdev@yahoo.com>
Jason Eager
Jason Filby <jasonfilby@yahoo.com>
Jason Weiler
@@ -66,7 +66,7 @@ Royce Mitchell III <royce3@ev1.net>
Samuel Serapi<70>n <samdwise51@gmail.com>
Saveliy Tretiakov <saveliyt@mail.ru>
Stefan Ginsberg <stefan__100__@hotmail.com>
Steven Edwards <steven_ed4153@yahoo.com>
Steven Edwards <winehacker@gmail.com>
Thomas Weidenmueller <w3seek@users.sourceforge.net>
Timo Kreuzer <timo.kreuzer@reactos.org>
Victor Kirhenshtein <sauros@iname.com>

View File

@@ -1,4 +1,4 @@
# Doxyfile 1.5.8
# Doxyfile 1.6.2
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project
@@ -54,11 +54,11 @@ CREATE_SUBDIRS = YES
# information to generate all constant output in the proper language.
# The default language is English, other supported languages are:
# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
# Croatian, Czech, Danish, Dutch, Farsi, Finnish, French, German, Greek,
# Hungarian, Italian, Japanese, Japanese-en (Japanese with English messages),
# Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, Polish,
# Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, Slovene,
# Spanish, Swedish, and Ukrainian.
# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak,
# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
OUTPUT_LANGUAGE = English
@@ -124,7 +124,7 @@ FULL_PATH_NAMES = YES
# If left blank the directory from which doxygen is run is used as the
# path to strip.
STRIP_FROM_PATH = .
STRIP_FROM_PATH =
# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
# the path mentioned in the documentation of a class, which tells
@@ -169,13 +169,13 @@ MULTILINE_CPP_IS_BRIEF = NO
# member inherits the documentation from any documented member that it
# re-implements.
INHERIT_DOCS = NO
INHERIT_DOCS = YES
# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
# a new page for each member. If set to NO, the documentation of a member will
# be part of the file/class/namespace that contains it.
SEPARATE_MEMBER_PAGES = NO
SEPARATE_MEMBER_PAGES = YES
# The TAB_SIZE tag can be used to set the number of spaces in a tab.
# Doxygen uses this value to replace tabs by spaces in code fragments.
@@ -224,7 +224,8 @@ OPTIMIZE_OUTPUT_VHDL = NO
# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP,
# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat
# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran),
# use: inc=Fortran f=C
# use: inc=Fortran f=C. Note that for custom extensions you also need to set
# FILE_PATTERNS otherwise the files are not read by doxygen.
EXTENSION_MAPPING =
@@ -396,6 +397,12 @@ HIDE_SCOPE_NAMES = NO
SHOW_INCLUDE_FILES = YES
# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen
# will list include files with double quotes in the documentation
# rather than with sharp brackets.
FORCE_LOCAL_INCLUDES = NO
# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
# is inserted in the documentation for inline members.
@@ -415,6 +422,16 @@ SORT_MEMBER_DOCS = YES
SORT_BRIEF_DOCS = NO
# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen
# will sort the (brief and detailed) documentation of class members so that
# constructors and destructors are listed first. If set to NO (the default)
# the constructors will appear in the respective orders defined by
# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS.
# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO
# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
SORT_MEMBERS_CTORS_1ST = NO
# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
# hierarchy of group names into alphabetical order. If set to NO (the default)
# the group names will appear in their defined order.
@@ -591,11 +608,13 @@ INPUT_ENCODING = UTF-8
# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
FILE_PATTERNS = *.c \
*.cc \
*.cxx \
*.cpp \
*.c++ \
*.h \
*.hh \
*.hxx \
*.hpp \
*.idl
@@ -644,7 +663,7 @@ EXAMPLE_PATH =
# and *.h) to filter out the source-files in the directories. If left
# blank all files are included.
EXAMPLE_PATTERNS =
EXAMPLE_PATTERNS = *
# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
# searched for input files to be used with the \include or \dontinclude
@@ -710,7 +729,7 @@ STRIP_CODE_COMMENTS = YES
# then for each documented function all documented
# functions referencing it will be listed.
REFERENCED_BY_RELATION = NO
REFERENCED_BY_RELATION = YES
# If the REFERENCES_RELATION tag is set to YES
# then for each documented function all documented entities
@@ -737,7 +756,7 @@ USE_HTAGS = NO
# will generate a verbatim copy of the header file for each class for
# which an include is specified. Set to NO to disable this.
VERBATIM_HEADERS = YES
VERBATIM_HEADERS = NO
#---------------------------------------------------------------------------
# configuration options related to the alphabetical class index
@@ -804,6 +823,12 @@ HTML_FOOTER = Doxygen/footer.html
HTML_STYLESHEET =
# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
# page will contain the date and time when the page was generated. Setting
# this to NO can help when comparing the output of multiple runs.
HTML_TIMESTAMP = NO
# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
# files or namespaces will be aligned in HTML using tables. If set to
# NO a bullet list will be used.
@@ -937,6 +962,23 @@ QHP_SECT_FILTER_ATTRS =
QHG_LOCATION =
# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files
# will be generated, which together with the HTML files, form an Eclipse help
# plugin. To install this plugin and make it available under the help contents
# menu in Eclipse, the contents of the directory containing the HTML and XML
# files needs to be copied into the plugins directory of eclipse. The name of
# the directory within the plugins directory should be the same as
# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before
# the help appears.
GENERATE_ECLIPSEHELP = NO
# A unique identifier for the eclipse help plugin. When installing the plugin
# the directory name containing the HTML and XML files should also have
# this name.
ECLIPSE_DOC_ID = org.doxygen.Project
# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
# top of each HTML page. The value NO (the default) enables the index and
# the value YES disables it.
@@ -950,20 +992,18 @@ ENUM_VALUES_PER_LINE = 4
# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
# structure should be generated to display hierarchical information.
# If the tag value is set to FRAME, a side panel will be generated
# If the tag value is set to YES, a side panel will be generated
# containing a tree-like index structure (just like the one that
# is generated for HTML Help). For this to work a browser that supports
# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
# probably better off using the HTML help feature. Other possible values
# for this tag are: HIERARCHIES, which will generate the Groups, Directories,
# and Class Hierarchy pages using a tree view instead of an ordered list;
# ALL, which combines the behavior of FRAME and HIERARCHIES; and NONE, which
# disables this behavior completely. For backwards compatibility with previous
# releases of Doxygen, the values YES and NO are equivalent to FRAME and NONE
# respectively.
# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser).
# Windows users are probably better off using the HTML help feature.
GENERATE_TREEVIEW = NONE
GENERATE_TREEVIEW = NO
# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories,
# and Class Hierarchy pages using a tree view instead of an ordered list.
USE_INLINE_TREES = NO
# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
# used to set the initial width (in pixels) of the frame in which the tree
@@ -979,6 +1019,26 @@ TREEVIEW_WIDTH = 250
FORMULA_FONTSIZE = 10
# When the SEARCHENGINE tag is enabled doxygen will generate a search box
# for the HTML output. The underlying search engine uses javascript
# and DHTML and should work on any modern browser. Note that when using
# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets
# (GENERATE_DOCSET) there is already a search function so this one should
# typically be disabled. For large projects the javascript based search engine
# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
# implemented using a PHP enabled web server instead of at the web client
# using Javascript. Doxygen will generate the search PHP script and index
# file to put on the web server. The advantage of the server
# based approach is that it scales better to large projects and allows
# full text search. The disadvances is that it is more difficult to setup
# and does not have live searching capabilities.
SERVER_BASED_SEARCH = YES
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
#---------------------------------------------------------------------------
@@ -995,7 +1055,10 @@ GENERATE_LATEX = NO
LATEX_OUTPUT = latex
# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
# invoked. If left blank `latex' will be used as the default command name.
# invoked. If left blank `latex' will be used as the default command name.
# Note that when enabling USE_PDFLATEX this option is only used for
# generating bitmaps for formulas in the HTML output, but not in the
# Makefile that is written to the output directory.
LATEX_CMD_NAME = latex
@@ -1055,6 +1118,13 @@ LATEX_BATCHMODE = NO
LATEX_HIDE_INDICES = NO
# If LATEX_SOURCE_CODE is set to YES then doxygen will include
# source code with syntax highlighting in the LaTeX output.
# Note that which sources are shown also depends on other settings
# such as SOURCE_BROWSER.
LATEX_SOURCE_CODE = NO
#---------------------------------------------------------------------------
# configuration options related to the RTF output
#---------------------------------------------------------------------------
@@ -1206,14 +1276,14 @@ PERLMOD_PRETTY = YES
PERLMOD_MAKEVAR_PREFIX =
#---------------------------------------------------------------------------
# Configuration options related to the preprocessor
# Configuration options related to the preprocessor
#---------------------------------------------------------------------------
# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
# evaluate all C-preprocessor directives found in the sources and include
# files.
ENABLE_PREPROCESSING = NO
ENABLE_PREPROCESSING = YES
# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
# names in the source code. If set to NO (the default) only conditional
@@ -1272,7 +1342,7 @@ EXPAND_AS_DEFINED =
SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------
# Configuration::additions related to external references
# Configuration::additions related to external references
#---------------------------------------------------------------------------
# The TAGFILES option can be used to specify one or more tagfiles.
@@ -1315,7 +1385,7 @@ EXTERNAL_GROUPS = YES
PERL_PATH = /usr/bin/perl
#---------------------------------------------------------------------------
# Configuration options related to the dot tool
# Configuration options related to the dot tool
#---------------------------------------------------------------------------
# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
@@ -1507,12 +1577,3 @@ GENERATE_LEGEND = YES
# the various graphs.
DOT_CLEANUP = YES
#---------------------------------------------------------------------------
# Options related to the search engine
#---------------------------------------------------------------------------
# The SEARCHENGINE tag specifies whether or not a search engine should be
# used. If set to NO the values of all tags below this one will be ignored.
SEARCHENGINE = YES

View File

@@ -1,504 +0,0 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!

View File

@@ -46,6 +46,10 @@
# This is faster than the depends target which does a complete dependency
# check of the ReactOS codebase.
#
# bootcdregtest
# This target builds an ISO (ReactOS-RegTest.ISO) which is used for unattended
# regression testing.
#
#
# Accepted environment variables:
#
@@ -112,6 +116,10 @@
# will go from 80 to 40MB, memory usage from 58 to 38MB and the install CD
# from 18 to 13MB. The variable defaults to no.
#
# ROS_GENERATE_RSYM
# This variable controls generation of RSYM symbol data. The value can be
# either yes (to generate symbol data) or no. The variable defaults to yes.
#
# ROS_RBUILDFLAGS
# Pass parameters to rbuild.
# -v Be verbose.
@@ -148,6 +156,11 @@ $(error ReactOS's makefiles use GNU Make 3.80+ features, you have $(MAKE_VERSION
endif
# END of code borrowed from GMSL ( http://gmsl.sourceforge.net/ )
define NL
endef
.PHONY: all
.PHONY: clean
.PHONY: world
@@ -160,11 +173,7 @@ else
endif
ifeq ($(ROS_AUTOMAKE),)
ifeq ($(ARCH),i386)
ROS_AUTOMAKE=makefile.auto
else
ROS_AUTOMAKE=makefile-$(ARCH).auto
endif
ROS_AUTOMAKE=makefile-$(ARCH).auto
endif
all: $(ROS_AUTOMAKE)
@@ -230,7 +239,7 @@ ifeq ($(HALFVERBOSEECHO),yes)
ECHO_CVTRES =@echo $(QUOTE)[CVTRES] $@$(QUOTE)
ECHO_WIDL =@echo $(QUOTE)[WIDL] $@$(QUOTE)
ECHO_BIN2RES =@echo $(QUOTE)[BIN2RES] $<$(QUOTE)
ECHO_DLLTOOL =@echo $(QUOTE)[DLLTOOL] $@$(QUOTE)
ECHO_IMPLIB =@echo $(QUOTE)[IMPLIB] $@$(QUOTE)
ECHO_LD =@echo $(QUOTE)[LD] $@$(QUOTE)
ECHO_HOSTLD =@echo $(QUOTE)[HOST-LD] $@$(QUOTE)
ECHO_LINK =@echo $(QUOTE)[LINK] $@$(QUOTE)
@@ -238,6 +247,7 @@ ifeq ($(HALFVERBOSEECHO),yes)
ECHO_OBJDUMP =@echo $(QUOTE)[OBJDUMP] $@$(QUOTE)
ECHO_RBUILD =@echo $(QUOTE)[RBUILD] $@$(QUOTE)
ECHO_RSYM =@echo $(QUOTE)[RSYM] $@$(QUOTE)
ECHO_PEFIXUP =@echo $(QUOTE)[PEFIXUP] $@$(QUOTE)
ECHO_WMC =@echo $(QUOTE)[WMC] $@$(QUOTE)
ECHO_NCI =@echo $(QUOTE)[NCI] $@$(QUOTE)
ECHO_CABMAN =@echo $(QUOTE)[CABMAN] $<$(QUOTE)
@@ -249,6 +259,7 @@ ifeq ($(HALFVERBOSEECHO),yes)
ECHO_STRIP =@echo $(QUOTE)[STRIP] $@$(QUOTE)
ECHO_RGENSTAT=@echo $(QUOTE)[RGENSTAT] $@$(QUOTE)
ECHO_DEPENDS =@echo $(QUOTE)[DEPENDS] $<$(QUOTE)
ECHO_RSP =@echo $(QUOTE)[RSP] $@$(QUOTE)
else
ECHO_CP =
ECHO_MKDIR =
@@ -268,7 +279,7 @@ else
ECHO_CVTRES =
ECHO_WIDL =
ECHO_BIN2RES =
ECHO_DLLTOOL =
ECHO_IMPLIB =
ECHO_LD =
ECHO_HOSTLD =
ECHO_NM =
@@ -286,6 +297,7 @@ else
ECHO_STRIP =
ECHO_RGENSTAT=
ECHO_DEPENDS =
ECHO_RSP =
endif
# Set host compiler/linker
@@ -341,6 +353,7 @@ ifeq ($(HOST),mingw32-linux)
endif
export SEP = /
mkdir = -$(Q)mkdir -p
checkpoint = $(Q)touch
rm = $(Q)rm -f
cp = $(Q)cp
NUL = /dev/null
@@ -349,6 +362,7 @@ else # mingw32-windows
ROS_EMPTY =
export SEP = \$(ROS_EMPTY)
mkdir = -$(Q)mkdir
checkpoint = $(Q)copy /y NUL
rm = $(Q)del /f /q
cp = $(Q)copy /y
NUL = NUL
@@ -462,11 +476,6 @@ rgenstat: $(RGENSTAT_TARGET)
$(ECHO_RGENSTAT)
$(Q)$(RGENSTAT_TARGET) apistatus.lst apistatus.xml
.PHONY: cb
cb: $(ROS_BUILDENGINE)
$(ECHO_RBUILD)
$(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) cb
.PHONY: msbuild
msbuild: $(ROS_BUILDENGINE)
$(ECHO_RBUILD)
@@ -517,6 +526,11 @@ msvc9: $(ROS_BUILDENGINE)
$(ECHO_RBUILD)
$(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs9.00 -voversionconfiguration msvc
.PHONY: msvc10
msvc10: $(ROS_BUILDENGINE)
$(ECHO_RBUILD)
$(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs10.00 -voversionconfiguration msvc
.PHONY: msvc6_clean
msvc6_clean: $(ROS_BUILDENGINE)
$(ECHO_RBUILD)
@@ -542,6 +556,11 @@ msvc9_clean: $(ROS_BUILDENGINE)
$(ECHO_RBUILD)
$(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs9.00 -voversionconfiguration msvc
.PHONY: msvc10_clean
msvc10_clean: $(ROS_BUILDENGINE)
$(ECHO_RBUILD)
$(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs10.00 -voversionconfiguration msvc
.PHONY: msvc_clean
msvc_clean: $(ROS_BUILDENGINE)
$(ECHO_RBUILD)

View File

@@ -0,0 +1,113 @@
<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
<project name="ReactOS" makefile="makefile-amd64.auto" xmlns:xi="http://www.w3.org/2001/XInclude" allowwarnings="true">
<xi:include href="config-amd64.rbuild">
<xi:fallback>
<xi:include href="config-amd64.template.rbuild" />
</xi:fallback>
</xi:include>
<xi:include href="ReactOS-generic.rbuild" />
<define name="_M_AMD64" />
<define name="_AMD64_" />
<define name="_M_AXP64" />
<define name="__x86_64__" />
<!-- define name="_X86AMD64_" / FIXME: what is this used for? -->
<define name="_WIN64" />
<define name="TARGET_amd64" host="true" />
<define name="USE_COMPILER_EXCEPTIONS" />
<define name ="NO_UNDERSCORE_PREFIX" />
<property name="PLATFORM" value="PC"/>
<property name="usewrc" value="false"/>
<property name="WINEBUILD_FLAGS" value="--kill-at"/>
<group compilerset="gcc">
<if property="OPTIMIZE" value="1">
<compilerflag>-ftracer</compilerflag>
<compilerflag>-momit-leaf-frame-pointer</compilerflag>
</if>
<compilerflag>-fms-extensions</compilerflag>
<compilerflag>-mpreferred-stack-boundary=4</compilerflag>
<compilerflag compiler="midl">-m64 --win64</compilerflag>
<!-- compilerflag compiler="cc,cxx">-gstabs+</compilerflag -->
<!-- compilerflag compiler="as">-gstabs+</compilerflag -->
<compilerflag>-U_X86_</compilerflag>
<compilerflag>-UWIN32</compilerflag>
<compilerflag>-Wno-format</compilerflag>
</group>
<group linkerset="ld">
<linkerflag>-disable-stdcall-fixup</linkerflag>
<linkerflag>-file-alignment=0x1000</linkerflag>
<linkerflag>-section-alignment=0x1000</linkerflag>
<linkerflag>--unique=.eh_frame</linkerflag>
<linkerflag>-static</linkerflag>
<linkerflag>--exclude-all-symbols</linkerflag>
</group>
<if property="USERMODE" value="1">
<directory name="base">
<directory name="applications">
<xi:include href="base/applications/applications.rbuild" />
</directory>
<directory name="services">
<xi:include href="base/services/services.rbuild" />
</directory>
<directory name="setup">
<xi:include href="base/setup/setup.rbuild" />
</directory>
<directory name="shell">
<directory name="cmd">
<xi:include href="base/shell/cmd/cmd.rbuild" />
</directory>
<directory name="explorer-new">
<xi:include href="base/shell/explorer-new/explorer.rbuild" />
</directory>
</directory>
<directory name="system">
<xi:include href="base/system/system.rbuild" />
</directory>
</directory>
<directory name="dll">
<xi:include href="dll/dll.rbuild" />
</directory>
</if>
<directory name="boot">
<xi:include href="boot/boot.rbuild" />
</directory>
<directory name="drivers">
<xi:include href="drivers/drivers.rbuild" />
</directory>
<directory name="hal">
<xi:include href="hal/hal.rbuild" />
</directory>
<directory name="include">
<xi:include href="include/directory.rbuild" />
</directory>
<directory name="lib">
<xi:include href="lib/lib.rbuild" />
</directory>
<directory name="media">
<xi:include href="media/media.rbuild" />
</directory>
<directory name="modules">
<xi:include href="modules/directory.rbuild" />
</directory>
<directory name="ntoskrnl">
<xi:include href="ntoskrnl/ntoskrnl.rbuild" />
<if property="BUILD_MP" value="1">
<xi:include href="ntoskrnl/ntkrnlmp.rbuild" />
</if>
</directory>
<directory name="subsystems">
<xi:include href="subsystems/subsystems.rbuild" />
</directory>
<directory name="tools">
<xi:include href="tools/tools.rbuild" />
</directory>
</project>

View File

@@ -7,74 +7,42 @@
</xi:fallback>
</xi:include>
<xi:include href="baseaddress.rbuild" />
<xi:include href="ReactOS-generic.rbuild" />
<define name="__REACTOS__" />
<!-- <define name="_M_ARM" /> Already defined by toolchain -->
<define name="_ARM_" />
<define name="__arm__" />
<define name="TARGET_arm" host="true" />
<if property="DBG" value="1">
<define name="DBG">1</define>
<define name="_SEH_ENABLE_TRACE" />
<property name="DBG_OR_KDBG" value="true" />
</if>
<if property="DBG" value="0">
<define name="DBG">0</define>
</if>
<if property="KDBG" value="1">
<define name="KDBG">1</define>
<property name="DBG_OR_KDBG" value="true" />
</if>
<include>.</include>
<include>include</include>
<include root="intermediate">include</include>
<include>include/psdk</include>
<include root="intermediate">include/psdk</include>
<include>include/dxsdk</include>
<include root="intermediate">include/dxsdk</include>
<include>include/crt</include>
<include>include/crt/mingw32</include>
<include>include/ddk</include>
<include>include/GL</include>
<include>include/ndk</include>
<include>include/reactos</include>
<include root="intermediate">include/reactos</include>
<include root="intermediate">include/reactos/mc</include>
<include>include/reactos/libs</include>
<include>include/reactos/arm</include>
<define name="USE_COMPILER_EXCEPTIONS" />
<property name="WINEBUILD_FLAGS" value="--kill-at"/>
<property name="NTOSKRNL_SHARED" value="-file-alignment=0x1000 -section-alignment=0x1000 -shared"/>
<include>include/reactos/arm</include>
<if property="SARCH" value="versatile">
<define name="BOARD_CONFIG_VERSATILE"/>
</if>
<if property="OPTIMIZE" value="1">
<compilerflag>-Os</compilerflag>
<compilerflag>-ftracer</compilerflag>
</if>
<if property="OPTIMIZE" value="2">
<compilerflag>-Os</compilerflag>
</if>
<if property="OPTIMIZE" value="3">
<compilerflag>-O1</compilerflag>
</if>
<if property="OPTIMIZE" value="4">
<compilerflag>-O2</compilerflag>
</if>
<if property="OPTIMIZE" value="5">
<compilerflag>-O3</compilerflag>
</if>
<group compilerset="gcc">
<if property="OPTIMIZE" value="1">
<compilerflag>-ftracer</compilerflag>
</if>
<compilerflag>-fms-extensions</compilerflag>
<compilerflag>-Wno-attributes</compilerflag>
<compilerflag>-U_UNICODE</compilerflag>
<compilerflag>-UUNICODE</compilerflag>
</group>
<define name="__MSVCRT__"/>
<compilerflag>-Wno-attributes</compilerflag>
<compilerflag>-fno-strict-aliasing</compilerflag>
<linkerflag>--strip-debug</linkerflag>
<linkerflag>-static</linkerflag>
<define name="__MSVCRT__"/> <!-- DUBIOUS -->
<group linkerset="ld">
<linkerflag>--strip-debug</linkerflag> <!-- INVESTIGATE -->
<linkerflag>-static</linkerflag> <!-- INVESTIGATE -->
<linkerflag>-file-alignment=0x1000</linkerflag>
<linkerflag>-section-alignment=0x1000</linkerflag>
</group>
<directory name="media">
<directory name="nls">
@@ -85,7 +53,10 @@
<directory name="drivers">
<directory name="csq">
<xi:include href="lib/drivers/csq/csq.rbuild" />
</directory>
</directory>
</directory>
<directory name="cportlib">
<xi:include href="lib/cportlib/cportlib.rbuild" />
</directory>
<directory name="debugsup">
<xi:include href="lib/debugsup/debugsup.rbuild" />
@@ -106,6 +77,9 @@
<directory name="inflib">
<xi:include href="lib/inflib/inflib.rbuild" />
</directory>
<directory name="newinflib">
<xi:include href="lib/newinflib/inflib.rbuild" />
</directory>
<directory name="cmlib">
<xi:include href="lib/cmlib/cmlib.rbuild" />
</directory>
@@ -120,6 +94,9 @@
<xi:include href="lib/sdk/crt/crt.rbuild" />
<xi:include href="lib/sdk/crt/libcntpr.rbuild" />
</directory>
<directory name="ioevent">
<xi:include href="lib/sdk/ioevent/ioevent.rbuild" />
</directory>
<directory name="nt">
<xi:include href="lib/sdk/nt/nt.rbuild" />
</directory>
@@ -144,17 +121,7 @@
<xi:include href="ntoskrnl/ntoskrnl.rbuild" />
</directory>
<directory name="hal">
<directory name="halarm">
<directory name="generic">
<xi:include href="hal/halarm/generic/generic.rbuild" />
</directory>
<directory name="up">
<xi:include href="hal/halarm/up/halup.rbuild" />
</directory>
</directory>
<directory name="hal">
<xi:include href="hal/hal/hal.rbuild" />
</directory>
<xi:include href="hal/hal.rbuild" />
</directory>
<directory name="boot">
<xi:include href="boot/boot.rbuild" />
@@ -188,11 +155,9 @@
</directory>
<directory name="base">
<directory name="system">
<directory name="smss">
<xi:include href="base/system/smss/smss.rbuild" />
</directory>
<directory name="smss">
<xi:include href="base/system/smss/smss.rbuild" />
</directory>
</directory>
</directory>
<define name="_USE_32BIT_TIME_T" />
</project>

View File

@@ -86,47 +86,68 @@
<include host="true">include/reactos</include>
<include host="true">include/reactos/wine</include>
<directory name="base">
<xi:include href="base/base.rbuild" />
</directory>
<directory name="boot">
<xi:include href="boot/boot.rbuild" />
</directory>
<directory name="dll">
<xi:include href="dll/dll.rbuild" />
</directory>
<directory name="drivers">
<xi:include href="drivers/drivers.rbuild" />
</directory>
<directory name="hal">
<xi:include href="hal/hal.rbuild" />
</directory>
<directory name="include">
<xi:include href="include/directory.rbuild" />
</directory>
<directory name="lib">
<xi:include href="lib/lib.rbuild" />
</directory>
<directory name="media">
<xi:include href="media/media.rbuild" />
</directory>
<directory name="modules">
<xi:include href="modules/directory.rbuild" />
</directory>
<directory name="ntoskrnl">
<xi:include href="ntoskrnl/ntoskrnl.rbuild" />
<if property="BUILD_MP" value="1">
<xi:include href="ntoskrnl/ntkrnlmp.rbuild" />
<group compilerset="gcc">
<compilerflag>-Wall</compilerflag>
<compilerflag>-Wno-char-subscripts</compilerflag>
<compilerflag compiler="cxx">-Wno-non-virtual-dtor</compilerflag>
</group>
<group compilerset="msc">
<define name="inline" compiler="cc">__inline</define>
<define name="__STDC__" compiler="cc">1</define>
<compilerflag>/Zl</compilerflag>
<compilerflag>/Zi</compilerflag>
<compilerflag>/W1</compilerflag>
</group>
<group compilerset="gcc">
<if property="OPTIMIZE" value="1">
<compilerflag>-Os</compilerflag>
</if>
<if property="OPTIMIZE" value="2">
<compilerflag>-Os</compilerflag>
</if>
<if property="OPTIMIZE" value="3">
<compilerflag>-O1</compilerflag>
</if>
<if property="OPTIMIZE" value="4">
<compilerflag>-O2</compilerflag>
</if>
<if property="OPTIMIZE" value="5">
<compilerflag>-O3</compilerflag>
</if>
</directory>
<directory name="subsystems">
<xi:include href="subsystems/subsystems.rbuild" />
</directory>
<directory name="tools">
<xi:include href="tools/tools.rbuild" />
</directory>
<compilerflag compiler="cxx" compilerset="gcc">-Wno-non-virtual-dtor</compilerflag>
<compilerflag>-fno-strict-aliasing</compilerflag>
<compilerflag>-Wpointer-arith</compilerflag>
<compilerflag>-Wno-multichar</compilerflag>
<compilerflag>-Wno-error=uninitialized</compilerflag>
<!-- compilerflag>-H</compilerflag> enable this for header traces -->
</group>
<group compilerset="msc">
<if property="OPTIMIZE" value="1">
<compilerflag>/O1</compilerflag>
</if>
<if property="OPTIMIZE" value="2">
<compilerflag>/O2</compilerflag>
</if>
<if property="OPTIMIZE" value="3">
<compilerflag>/Ox /GS-</compilerflag>
<compilerflag>/Ot</compilerflag>
</if>
<if property="OPTIMIZE" value="4">
<compilerflag>/Ox /GS-</compilerflag>
<compilerflag>/Os</compilerflag>
</if>
<if property="OPTIMIZE" value="5">
<compilerflag>/Ox /GS-</compilerflag>
<compilerflag>/Os</compilerflag>
<compilerflag>/Ob2</compilerflag>
<compilerflag>/GF</compilerflag>
<compilerflag>/Gy</compilerflag>
</if>
<compilerflag>/GS-</compilerflag>
</group>
<compilerflag compilerset="msc">/wd4711</compilerflag>
</group>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
<project name="ReactOS" makefile="makefile.auto" xmlns:xi="http://www.w3.org/2001/XInclude">
<project name="ReactOS" makefile="makefile-i386.auto" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="config.rbuild">
<xi:fallback>
<xi:include href="config.template.rbuild" />
@@ -15,69 +15,67 @@
<define name="TARGET_i386" host="true" />
<define name="USE_COMPILER_EXCEPTIONS" />
<define name="_USE_32BIT_TIME_T" />
<property name="NTOSKRNL_SHARED" value="-file-alignment=0x1000 -section-alignment=0x1000 -shared"/>
<property name="PLATFORM" value="PC"/>
<group compilerset="gcc">
<if property="OPTIMIZE" value="1">
<compilerflag>-Os</compilerflag>
<compilerflag>-ftracer</compilerflag>
<compilerflag>-momit-leaf-frame-pointer</compilerflag>
</if>
<if property="OPTIMIZE" value="2">
<compilerflag>-Os</compilerflag>
</if>
<if property="OPTIMIZE" value="3">
<compilerflag>-O1</compilerflag>
</if>
<if property="OPTIMIZE" value="4">
<compilerflag>-O2</compilerflag>
</if>
<if property="OPTIMIZE" value="5">
<compilerflag>-O3</compilerflag>
</if>
<compilerflag>-fms-extensions</compilerflag>
<compilerflag>-mpreferred-stack-boundary=2</compilerflag>
<compilerflag>-fno-strict-aliasing</compilerflag>
<compilerflag>-Wno-strict-aliasing</compilerflag>
<compilerflag>-Wpointer-arith</compilerflag>
<compilerflag>-Wno-multichar</compilerflag>
<!-- compilerflag>-H</compilerflag> enable this for header traces -->
</group>
<group compilerset="msc">
<if property="OPTIMIZE" value="1">
<compilerflag>/O1</compilerflag>
</if>
<if property="OPTIMIZE" value="2">
<compilerflag>/O2</compilerflag>
</if>
<if property="OPTIMIZE" value="3">
<compilerflag>/Ox /GS-</compilerflag>
<compilerflag>/Ot</compilerflag>
</if>
<if property="OPTIMIZE" value="4">
<compilerflag>/Ox /GS-</compilerflag>
<compilerflag>/Os</compilerflag>
</if>
<if property="OPTIMIZE" value="5">
<compilerflag>/Ox /GS-</compilerflag>
<compilerflag>/Os</compilerflag>
<compilerflag>/Ob2</compilerflag>
<compilerflag>/GF</compilerflag>
<compilerflag>/Gy</compilerflag>
</if>
<compilerflag>/GS-</compilerflag>
<compilerflag>/Zl</compilerflag>
<compilerflag>/Zi</compilerflag>
<compilerflag>/Wall</compilerflag>
<compilerflag compiler="midl">-m32 --win32</compilerflag>
<compilerflag compiler="cc,cxx">-gstabs+</compilerflag>
<compilerflag compiler="cc,cxx">-fno-set-stack-executable</compilerflag>
<compilerflag compiler="cc,cxx">-fno-optimize-sibling-calls</compilerflag>
<compilerflag compiler="as">-gstabs+</compilerflag>
</group>
<group linkerset="ld">
<linkerflag>-disable-stdcall-fixup</linkerflag>
<linkerflag>-file-alignment=0x1000</linkerflag>
<linkerflag>-section-alignment=0x1000</linkerflag>
</group>
<define name="_USE_32BIT_TIME_T" />
<directory name="base">
<xi:include href="base/base.rbuild" />
</directory>
<directory name="boot">
<xi:include href="boot/boot.rbuild" />
</directory>
<directory name="dll">
<xi:include href="dll/dll.rbuild" />
</directory>
<directory name="drivers">
<xi:include href="drivers/drivers.rbuild" />
</directory>
<directory name="hal">
<xi:include href="hal/hal.rbuild" />
</directory>
<directory name="include">
<xi:include href="include/directory.rbuild" />
</directory>
<directory name="lib">
<xi:include href="lib/lib.rbuild" />
</directory>
<directory name="media">
<xi:include href="media/media.rbuild" />
</directory>
<directory name="modules">
<xi:include href="modules/directory.rbuild" />
</directory>
<directory name="ntoskrnl">
<xi:include href="ntoskrnl/ntoskrnl.rbuild" />
<if property="BUILD_MP" value="1">
<xi:include href="ntoskrnl/ntkrnlmp.rbuild" />
</if>
</directory>
<directory name="subsystems">
<xi:include href="subsystems/subsystems.rbuild" />
</directory>
<directory name="tools">
<xi:include href="tools/tools.rbuild" />
</directory>
</project>

View File

@@ -20,4 +20,6 @@
<compilerflag>-meabi</compilerflag>
<compilerflag>-O2</compilerflag>
<compilerflag>-Wno-strict-aliasing</compilerflag>
<compilerflag compiler="cc,cxx">-gstabs+</compilerflag>
<compilerflag compiler="as">-gstabs+</compilerflag>
</project>

View File

@@ -16,12 +16,12 @@
<directory name="control">
<xi:include href="control/control.rbuild" />
</directory>
<directory name="downloader">
<xi:include href="downloader/downloader.rbuild" />
</directory>
<directory name="dxdiag">
<xi:include href="dxdiag/dxdiag.rbuild" />
</directory>
<directory name="extrac32">
<xi:include href="extrac32/extrac32.rbuild" />
</directory>
<directory name="fontview">
<xi:include href="fontview/fontview.rbuild" />
</directory>
@@ -79,6 +79,9 @@
<directory name="shutdown">
<xi:include href="shutdown/shutdown.rbuild" />
</directory>
<directory name="sndrec32">
<xi:include href="sndrec32/sndrec32.rbuild" />
</directory>
<directory name="sndvol32">
<xi:include href="sndvol32/sndvol32.rbuild" />
</directory>
@@ -97,4 +100,7 @@
<directory name="write">
<xi:include href="write/write.rbuild" />
</directory>
<directory name="rapps">
<xi:include href="rapps/rapps.rbuild" />
</directory>
</group>

View File

@@ -14,7 +14,7 @@
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <precomp.h>
@@ -180,14 +180,14 @@ BOOL
PrintFileDacl(IN LPTSTR FilePath,
IN LPTSTR FileName)
{
SIZE_T Indent;
SIZE_T Length;
PSECURITY_DESCRIPTOR SecurityDescriptor;
DWORD SDSize = 0;
TCHAR FullFileName[MAX_PATH + 1];
BOOL Error = FALSE, Ret = FALSE;
Indent = _tcslen(FilePath) + _tcslen(FileName);
if (Indent++ > MAX_PATH - 1)
Length = _tcslen(FilePath) + _tcslen(FileName);
if (Length > MAX_PATH)
{
/* file name too long */
SetLastError(ERROR_FILE_NOT_FOUND);
@@ -529,7 +529,6 @@ _tmain(int argc, const TCHAR *argv[])
WIN32_FIND_DATA FindData;
HANDLE hFind;
DWORD LastError;
BOOL ContinueAccessDenied = FALSE;
if (argc > 2)
{
@@ -572,8 +571,7 @@ _tmain(int argc, const TCHAR *argv[])
{
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED &&
ContinueAccessDenied)
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
}

View File

@@ -2,7 +2,6 @@
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<module name="cacls" type="win32cui" installbase="system32" installname="cacls.exe" unicode="true">
<include base="cacls">.</include>
<library>kernel32</library>
<library>advapi32</library>
<library>ntdll</library>
<library>user32</library>

View File

@@ -0,0 +1,78 @@
LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
BEGIN
IDS_HELP, "<22>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>̃A<CC83>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD>X<EFBFBD>g(ACL) <20><><EFBFBD>\\<5C><><EFBFBD>܂<EFBFBD><DC82>͕ύX<CF8D><58><EFBFBD>܂<EFBFBD><DC82>B\n\n\
CACLS <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD> [/T] [/E] [/C] [/G <20><><EFBFBD>[<5B>U<EFBFBD>[<5B><>:<3A>A<EFBFBD>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58>]\n\
[/R <20><><EFBFBD>[<5B>U<EFBFBD>[<5B><> [...]] [/P <20><><EFBFBD>[<5B>U<EFBFBD>[<5B><>:<3A>A<EFBFBD>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58> [...]]\n\
[/D <20><><EFBFBD>[<5B>U<EFBFBD>[<5B><> [...]]\n\
<20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD> ACL <20><><EFBFBD>\\<5C><><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B\n\
/T <20><><EFBFBD>݂̃f<CC83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>Ƃ<EFBFBD><C682>ׂẴT<CC83>u<EFBFBD>f<EFBFBD>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>ɂ<EFBFBD><C982><EFBFBD>\n\
<20>w<EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD> ACL <20><><EFBFBD>ύX<CF8D><58><EFBFBD>܂<EFBFBD><DC82>B\n\
/E ACL <20><><EFBFBD>u<EFBFBD><75><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɁAACL <20><><EFBFBD>ҏW<D28F><57><EFBFBD>܂<EFBFBD><DC82>B\n\
/C <20>A<EFBFBD>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD>ۃG<DB83><47><EFBFBD>[<5B>𖳎<EFBFBD><F096B38E><EFBFBD><EFBFBD>āAACL <20>̕ύX<CF8D>𑱍s<F091B18D><73><EFBFBD>܂<EFBFBD><DC82>B\n\
/G <20><><EFBFBD>[<5B>U<EFBFBD>[<5B><>:<3A>A<EFBFBD>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58>\n\
<20>w<EFBFBD><EFBFBD><EFBFBD><EA82BD><EFBFBD>[<5B>U<EFBFBD>[<5B>ɃA<C983>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>^<5E><><EFBFBD>܂<EFBFBD><DC82>B\n\
<20>A<EFBFBD>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58>: R <20>ǂݎ<C782><DD8E><EFBFBD>\n\
W <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
C <20>ύX (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)\n\
F <20>t<EFBFBD><74> <20>R<EFBFBD><52><EFBFBD>g<EFBFBD><67><EFBFBD>[<5B><>\n\
/R <20><><EFBFBD>[<5B>U<EFBFBD>[<5B><> <20>w<EFBFBD><EFBFBD><EFBFBD><EA82BD><EFBFBD>[<5B>U<EFBFBD>[<5B>̃A<CC83>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B\n\
(/E <20>I<EFBFBD>v<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>Ƌ<EFBFBD><C68B>Ɏg<C98E>p)<29>B\n\
/P <20><><EFBFBD>[<5B>U<EFBFBD>[<5B><>:<3A>A<EFBFBD>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58>\n\
<20>w<EFBFBD><EFBFBD><EFBFBD><EA82BD><EFBFBD>[<5B>U<EFBFBD>[<5B>̃A<CC83>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>u<EFBFBD><75><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B\n\
<20>A<EFBFBD>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58>: N <20>Ȃ<EFBFBD>\n\
W <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
R <20>ǂݎ<C782><DD8E><EFBFBD>\n\
C <20>ύX (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)\n\
F <20>t<EFBFBD><74> <20>R<EFBFBD><52><EFBFBD>g<EFBFBD><67><EFBFBD>[<5B><>\n\
/D <20><><EFBFBD>[<5B>U<EFBFBD>[<5B><> <20>w<EFBFBD><EFBFBD><EFBFBD><EA82BD><EFBFBD>[<5B>U<EFBFBD>[<5B>̃A<CC83>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>ۂ<EFBFBD><DB82>܂<EFBFBD><DC82>B\n\
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD><EFBFBD><E882B7><EFBFBD>ɂ́A<CD81><41><EFBFBD>C<EFBFBD><43><EFBFBD>h<EFBFBD>J<EFBFBD>[<5B>h<EFBFBD><68><EFBFBD>g<EFBFBD>p<EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82>B\n\
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃<EFBFBD><EFBFBD>[<5B>U<EFBFBD>[<5B><><EFBFBD>w<EFBFBD><77><EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82>B\n\n\
<EFBFBD>ȗ<EFBFBD><EFBFBD>`:\n\
CI - <20>R<EFBFBD><52><EFBFBD>e<EFBFBD>i<EFBFBD>p<EFBFBD><70><EFBFBD>B\n\
ACE <20>̓f<CD83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>Ɍp<C98C><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B\n\
OI - <20>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>p<EFBFBD><70><EFBFBD>B\n\
ACE <20>̓t<CD83>@<40>C<EFBFBD><43><EFBFBD>Ɍp<C98C><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B\n\
IO - <20>p<EFBFBD><70><EFBFBD>̂݁B\n\
ACE <20>͌<EFBFBD><CD8C>݂̃t<CC83>@<40>C<EFBFBD><43>/<2F>f<EFBFBD>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>ɓK<C993>p<EFBFBD><70><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B\n"
IDS_ABBR_CI, "(CI)"
IDS_ABBR_OI, "(OI)"
IDS_ABBR_IO, "(IO)"
IDS_ABBR_FULL, "F"
IDS_ABBR_READ, "R"
IDS_ABBR_WRITE, "W"
IDS_ABBR_CHANGE, "C"
IDS_ABBR_NONE, "N"
IDS_ALLOW, ""
IDS_DENY, "(DENY)"
IDS_SPECIAL_ACCESS, "(special access:)"
IDS_GENERIC_READ, "GENERIC_READ"
IDS_GENERIC_WRITE, "GENERIC_WRITE"
IDS_GENERIC_EXECUTE, "GENERIC_EXECUTE"
IDS_GENERIC_ALL, "GENERIC_ALL"
IDS_FILE_GENERIC_EXECUTE, "FILE_GENERIC_EXECUTE"
IDS_FILE_GENERIC_READ, "FILE_GENERIC_READ"
IDS_FILE_GENERIC_WRITE, "FILE_GENERIC_WRITE"
IDS_FILE_READ_DATA, "FILE_READ_DATA"
IDS_FILE_WRITE_DATA, "FILE_WRITE_DATA"
IDS_FILE_APPEND_DATA, "FILE_APPEND_DATA"
IDS_FILE_READ_EA, "FILE_READ_EA"
IDS_FILE_WRITE_EA, "FILE_WRITE_EA"
IDS_FILE_EXECUTE, "FILE_EXECUTE"
IDS_FILE_DELETE_CHILD, "FILE_DELETE_CHILD"
IDS_FILE_READ_ATTRIBUTES, "FILE_READ_ATTRIBUTES"
IDS_FILE_WRITE_ATTRIBUTES, "FILE_WRITE_ATTRIBUTES"
IDS_MAXIMUM_ALLOWED, "MAXIMUM_ALLOWED"
IDS_ACCESS_SYSTEM_SECURITY, "ACCESS_SYSTEM_SECURITY"
IDS_SPECIFIC_RIGHTS_ALL, "SPECIFIC_RIGHTS_ALL"
IDS_STANDARD_RIGHTS_REQUIRED, "STANDARD_RIGHTS_REQUIRED"
IDS_SYNCHRONIZE, "SYNCHRONIZE"
IDS_WRITE_OWNER, "WRITE_OWNER"
IDS_WRITE_DAC, "WRITE_DAC"
IDS_READ_CONTROL, "READ_CONTROL"
IDS_DELETE, "DELETE"
IDS_STANDARD_RIGHTS_ALL, "STANDARD_RIGHTS_ALL"
END

View File

@@ -15,7 +15,7 @@
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED

View File

@@ -1,95 +1,95 @@
/*
* cacls (TRADITIONAL Chinese resources)
* (<28>c<EFBFBD><EFBFBD><E9A4A4><EFBFBD>귽)
* Copyright 2007 jauming <jauming.tw@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
STRINGTABLE DISCARDABLE
BEGIN
IDS_HELP, "<22><><EFBFBD>ܩΪ̭ק<CCAD><D7A7><EFBFBD><EFBFBD>󪺳X<F3AABAB3>ݱ<EFBFBD><DDB1><EFBFBD><EFBFBD><EFBFBD> \n\n\
CACLS filename [/T] [/E] [/C] [/G user:perm [...]] [/R user [...]]\n\
[/P user:perm [...]] [/D user [...]]\n\
filename <20><><EFBFBD><EFBFBD> ACLs<4C>C\n\
/T <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>e<EFBFBD>ؿ<EFBFBD><D8BF>Ψ<EFBFBD><CEA8>Ҧ<EFBFBD><D2A6>l<EFBFBD>ؿ<EFBFBD><D8BF><EFBFBD>\n\
<20><><EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ACL<43>C\n\
/E <20>s<EFBFBD><73> ACL <20>Ӥ<EFBFBD><D3A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>C\n\
/C <20>b<EFBFBD>X<EFBFBD>{<7B>ڵ<EFBFBD><DAB5>X<EFBFBD>ݿ<EFBFBD><DDBF>~<7E><><EFBFBD>~<7E><><EFBFBD>C\n\
/G user:perm <20><EFBFBD><E1A4A9><EFBFBD>w<EFBFBD>Τ<EFBFBD><CEA4>X<EFBFBD><58><EFBFBD>v<EFBFBD><76><EFBFBD>C\n\
Perm <20>i<EFBFBD>H<EFBFBD>O: R Ū<><C5AA> \n\
W <20>g<EFBFBD>J \n\
C <20><><EFBFBD><EFBFBD>(<28>g<EFBFBD>J) \n\
F <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \n\
/R user <20>M<EFBFBD>P<EFBFBD><50><EFBFBD>w<EFBFBD>Τ<CEA4>X<EFBFBD><58><EFBFBD>v<EFBFBD><76>(<28>Ȧb<C8A6>O /E <20>@<40>_<EFBFBD>ϥήɦX<C9A6>k)<29>C\n\
/P user:perm <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>Τ<CEA4>X<EFBFBD><58><EFBFBD>v<EFBFBD><76><EFBFBD>C\n\
Perm <20>i<EFBFBD>H<EFBFBD>O: N <20>L \n\
R Ū<><C5AA> \n\
W <20>g<EFBFBD>J \n\
C <20><><EFBFBD><EFBFBD>(<28>g<EFBFBD>J) \n\
F <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \n\
/D user <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD>w<EFBFBD>Τ<CEA4>X<EFBFBD>ݡC\n\
<EFBFBD>b<EFBFBD>R<EFBFBD>O<EFBFBD><EFBFBD><EFBFBD>i<EFBFBD>H<EFBFBD>ϥγq<EFBFBD>t<EFBFBD>ū<EFBFBD><EFBFBD>w<EFBFBD>h<EFBFBD>Ӥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>C\n\
<EFBFBD>z<EFBFBD>]<5D>i<EFBFBD>H<EFBFBD>b<EFBFBD>R<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>h<EFBFBD>ӥΤ<D3A5><CEA4>C\n\n\
<EFBFBD>Y<EFBFBD>g: \n\
CI - <20>e<EFBFBD><65><EFBFBD>~<7E>ӡC\n\
ACE<43>|<7C>ѥؿ<D1A5><D8BF>~<7E>ӡC\n\
OI - <20><><EFBFBD>H<EFBFBD>~<7E>ӡC\n\
ACE <20>|<7C>Ѥ<EFBFBD><D1A4><EFBFBD><EFBFBD>~<7E>ӡC\n\
IO - <20>u<EFBFBD>~<7E>ӡC\n\
ACE <20><><EFBFBD>A<EFBFBD>Ω<EFBFBD><CEA9><EFBFBD><EFBFBD>e<EFBFBD><65><EFBFBD><EFBFBD>/<2F>ؿ<EFBFBD><D8BF>C\n"
IDS_ABBR_CI, "(CI)"
IDS_ABBR_OI, "(OI)"
IDS_ABBR_IO, "(IO)"
IDS_ABBR_FULL, "F"
IDS_ABBR_READ, "R"
IDS_ABBR_WRITE, "W"
IDS_ABBR_CHANGE, "C"
IDS_ABBR_NONE, "N"
IDS_ALLOW, ""
IDS_DENY, "(DENY)"
IDS_SPECIAL_ACCESS, "(special access:)"
IDS_GENERIC_READ, "GENERIC_READ"
IDS_GENERIC_WRITE, "GENERIC_WRITE"
IDS_GENERIC_EXECUTE, "GENERIC_EXECUTE"
IDS_GENERIC_ALL, "GENERIC_ALL"
IDS_FILE_GENERIC_EXECUTE, "FILE_GENERIC_EXECUTE"
IDS_FILE_GENERIC_READ, "FILE_GENERIC_READ"
IDS_FILE_GENERIC_WRITE, "FILE_GENERIC_WRITE"
IDS_FILE_READ_DATA, "FILE_READ_DATA"
IDS_FILE_WRITE_DATA, "FILE_WRITE_DATA"
IDS_FILE_APPEND_DATA, "FILE_APPEND_DATA"
IDS_FILE_READ_EA, "FILE_READ_EA"
IDS_FILE_WRITE_EA, "FILE_WRITE_EA"
IDS_FILE_EXECUTE, "FILE_EXECUTE"
IDS_FILE_DELETE_CHILD, "FILE_DELETE_CHILD"
IDS_FILE_READ_ATTRIBUTES, "FILE_READ_ATTRIBUTES"
IDS_FILE_WRITE_ATTRIBUTES, "FILE_WRITE_ATTRIBUTES"
IDS_MAXIMUM_ALLOWED, "MAXIMUM_ALLOWED"
IDS_ACCESS_SYSTEM_SECURITY, "ACCESS_SYSTEM_SECURITY"
IDS_SPECIFIC_RIGHTS_ALL, "SPECIFIC_RIGHTS_ALL"
IDS_STANDARD_RIGHTS_REQUIRED, "STANDARD_RIGHTS_REQUIRED"
IDS_SYNCHRONIZE, "SYNCHRONIZE"
IDS_WRITE_OWNER, "WRITE_OWNER"
IDS_WRITE_DAC, "WRITE_DAC"
IDS_READ_CONTROL, "READ_CONTROL"
IDS_DELETE, "DELETE"
IDS_STANDARD_RIGHTS_ALL, "STANDARD_RIGHTS_ALL"
END
/*
* cacls (TRADITIONAL Chinese resources)
* (<28>c<EFBFBD><EFBFBD><E9A4A4><EFBFBD>귽)
* Copyright 2007 jauming <jauming.tw@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
STRINGTABLE DISCARDABLE
BEGIN
IDS_HELP, "<22><><EFBFBD>ܩΪ̭ק<CCAD><D7A7><EFBFBD><EFBFBD>󪺳X<F3AABAB3>ݱ<EFBFBD><DDB1><EFBFBD><EFBFBD><EFBFBD> \n\n\
CACLS filename [/T] [/E] [/C] [/G user:perm [...]] [/R user [...]]\n\
[/P user:perm [...]] [/D user [...]]\n\
filename <20><><EFBFBD><EFBFBD> ACLs<4C>C\n\
/T <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>e<EFBFBD>ؿ<EFBFBD><D8BF>Ψ<EFBFBD><CEA8>Ҧ<EFBFBD><D2A6>l<EFBFBD>ؿ<EFBFBD><D8BF><EFBFBD>\n\
<20><><EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ACL<43>C\n\
/E <20>s<EFBFBD><73> ACL <20>Ӥ<EFBFBD><D3A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>C\n\
/C <20>b<EFBFBD>X<EFBFBD>{<7B>ڵ<EFBFBD><DAB5>X<EFBFBD>ݿ<EFBFBD><DDBF>~<7E><><EFBFBD>~<7E><><EFBFBD>C\n\
/G user:perm <20><EFBFBD><E1A4A9><EFBFBD>w<EFBFBD>Τ<EFBFBD><CEA4>X<EFBFBD><58><EFBFBD>v<EFBFBD><76><EFBFBD>C\n\
Perm <20>i<EFBFBD>H<EFBFBD>O: R Ū<><C5AA> \n\
W <20>g<EFBFBD>J \n\
C <20><><EFBFBD><EFBFBD>(<28>g<EFBFBD>J) \n\
F <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \n\
/R user <20>M<EFBFBD>P<EFBFBD><50><EFBFBD>w<EFBFBD>Τ<CEA4>X<EFBFBD><58><EFBFBD>v<EFBFBD><76>(<28>Ȧb<C8A6>O /E <20>@<40>_<EFBFBD>ϥήɦX<C9A6>k)<29>C\n\
/P user:perm <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>Τ<CEA4>X<EFBFBD><58><EFBFBD>v<EFBFBD><76><EFBFBD>C\n\
Perm <20>i<EFBFBD>H<EFBFBD>O: N <20>L \n\
R Ū<><C5AA> \n\
W <20>g<EFBFBD>J \n\
C <20><><EFBFBD><EFBFBD>(<28>g<EFBFBD>J) \n\
F <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \n\
/D user <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD>w<EFBFBD>Τ<CEA4>X<EFBFBD>ݡC\n\
<EFBFBD>b<EFBFBD>R<EFBFBD>O<EFBFBD><EFBFBD><EFBFBD>i<EFBFBD>H<EFBFBD>ϥγq<EFBFBD>t<EFBFBD>ū<EFBFBD><EFBFBD>w<EFBFBD>h<EFBFBD>Ӥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>C\n\
<EFBFBD>z<EFBFBD>]<5D>i<EFBFBD>H<EFBFBD>b<EFBFBD>R<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>h<EFBFBD>ӥΤ<D3A5><CEA4>C\n\n\
<EFBFBD>Y<EFBFBD>g: \n\
CI - <20>e<EFBFBD><65><EFBFBD>~<7E>ӡC\n\
ACE<43>|<7C>ѥؿ<D1A5><D8BF>~<7E>ӡC\n\
OI - <20><><EFBFBD>H<EFBFBD>~<7E>ӡC\n\
ACE <20>|<7C>Ѥ<EFBFBD><D1A4><EFBFBD><EFBFBD>~<7E>ӡC\n\
IO - <20>u<EFBFBD>~<7E>ӡC\n\
ACE <20><><EFBFBD>A<EFBFBD>Ω<EFBFBD><CEA9><EFBFBD><EFBFBD>e<EFBFBD><65><EFBFBD><EFBFBD>/<2F>ؿ<EFBFBD><D8BF>C\n"
IDS_ABBR_CI, "(CI)"
IDS_ABBR_OI, "(OI)"
IDS_ABBR_IO, "(IO)"
IDS_ABBR_FULL, "F"
IDS_ABBR_READ, "R"
IDS_ABBR_WRITE, "W"
IDS_ABBR_CHANGE, "C"
IDS_ABBR_NONE, "N"
IDS_ALLOW, ""
IDS_DENY, "(DENY)"
IDS_SPECIAL_ACCESS, "(special access:)"
IDS_GENERIC_READ, "GENERIC_READ"
IDS_GENERIC_WRITE, "GENERIC_WRITE"
IDS_GENERIC_EXECUTE, "GENERIC_EXECUTE"
IDS_GENERIC_ALL, "GENERIC_ALL"
IDS_FILE_GENERIC_EXECUTE, "FILE_GENERIC_EXECUTE"
IDS_FILE_GENERIC_READ, "FILE_GENERIC_READ"
IDS_FILE_GENERIC_WRITE, "FILE_GENERIC_WRITE"
IDS_FILE_READ_DATA, "FILE_READ_DATA"
IDS_FILE_WRITE_DATA, "FILE_WRITE_DATA"
IDS_FILE_APPEND_DATA, "FILE_APPEND_DATA"
IDS_FILE_READ_EA, "FILE_READ_EA"
IDS_FILE_WRITE_EA, "FILE_WRITE_EA"
IDS_FILE_EXECUTE, "FILE_EXECUTE"
IDS_FILE_DELETE_CHILD, "FILE_DELETE_CHILD"
IDS_FILE_READ_ATTRIBUTES, "FILE_READ_ATTRIBUTES"
IDS_FILE_WRITE_ATTRIBUTES, "FILE_WRITE_ATTRIBUTES"
IDS_MAXIMUM_ALLOWED, "MAXIMUM_ALLOWED"
IDS_ACCESS_SYSTEM_SECURITY, "ACCESS_SYSTEM_SECURITY"
IDS_SPECIFIC_RIGHTS_ALL, "SPECIFIC_RIGHTS_ALL"
IDS_STANDARD_RIGHTS_REQUIRED, "STANDARD_RIGHTS_REQUIRED"
IDS_SYNCHRONIZE, "SYNCHRONIZE"
IDS_WRITE_OWNER, "WRITE_OWNER"
IDS_WRITE_DAC, "WRITE_DAC"
IDS_READ_CONTROL, "READ_CONTROL"
IDS_DELETE, "DELETE"
IDS_STANDARD_RIGHTS_ALL, "STANDARD_RIGHTS_ALL"
END

View File

@@ -1,5 +1,4 @@
#ifndef _CACLS_RESOURCE_H
#define _CACLS_RESOURCE_H
#pragma once
#define IDS_HELP 101
#define IDS_ABBR_CI 102
@@ -40,5 +39,3 @@
#define IDS_READ_CONTROL 137
#define IDS_DELETE 138
#define IDS_STANDARD_RIGHTS_ALL 139
#endif /* _CACLS_RESOURCE_H */

View File

@@ -10,6 +10,7 @@
#include "lang/fr-FR.rc"
#include "lang/id-ID.rc"
#include "lang/it-IT.rc"
#include "lang/ja-JP.rc"
#include "lang/ko-KR.rc"
#include "lang/no-NO.rc"
#include "lang/nl-NL.rc"

View File

@@ -1,5 +1,4 @@
#ifndef __CALC_H__
#define __CALC_H__
#pragma once
#include <windows.h>
#include <tchar.h>
@@ -236,5 +235,3 @@ INT_PTR CALLBACK AboutDlgProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp);
void ConvExecute(HWND hWnd);
void ConvAdjust(HWND hWnd, int n_cat);
void ConvInit(HWND hWnd);
#endif

View File

@@ -4,7 +4,6 @@
<include base="calc">.</include>
<define name="DISABLE_HTMLHELP_SUPPORT">1</define>
<library>advapi32</library>
<library>kernel32</library>
<library>gdi32</library>
<library>user32</library>
<file>about.c</file>

View File

@@ -56,35 +56,35 @@ static const conv_t conv_ANGLE[] = {
/*
1 acre ................ = 4840 square yd = 4046,8564224 mq
1 acre brazil ......... =
1 acre france ......... =
1 acre brazil ......... =
1 acre france ......... =
1 acre scots .......... = 5000 mq
1 acre us ............. = 4840*(36/39.37)^2 m = 6272640/1549.9969 m
1 are ................. = 100 mq
1 chou ................ = 108000*(10/33)^2 mq
1 danbo ............... =
1 danbo ............... =
1 ha .................. = 10000 mq
1 jeongbo ............. =
1 morgen hungary ...... =
1 mu .................. =
1 ping ................ =
1 pyeong .............. =
1 pyeongbangja ........ =
1 rai ................. =
1 jeongbo ............. =
1 morgen hungary ...... =
1 mu .................. = 2000/3 mq
1 ping ................ =
1 pyeong .............. =
1 pyeongbangja ........ =
1 rai ................. = 1600 mq
1 se .................. = 1080*(10/33)^2 mq
1 square cm ........... = 0.0001 mq
1 square chr .......... =
1 square chr .......... =
1 square fathom ....... = 1.8288^2 = 3.34450944 mq
1 square fathom hungary = 1.8964838^2 = 3.59665080366244 mq
1 square ft ........... = 0,09290304 mq
1 square in ........... = 0,00064516 mq
1 square km ........... = 1000000 mq
1 square lar .......... =
1 square lar .......... =
1 square mile ......... = 1609.344^2 = 2589988.110336 mq
1 square mm ........... = 0,000001 mq
1 square shaku ........ = (10/33)^2 mq
1 square tsuen ........ =
1 square va ........... =
1 square tsuen ........ =
1 square va ........... =
1 square yard ......... = 0,83612736 mq
1 tan ................. = 10800*(10/33)^2 mq
1 tsubo ............... = 36*(10/33)^2 mq
@@ -101,11 +101,11 @@ static const conv_t conv_AREA[] = {
DECLARE_CONV_UNIT(AREA, HECTARES, "$*10000", "$/10000")
// DECLARE_CONV_UNIT(AREA, JEONGBO, "$", "$")
// DECLARE_CONV_UNIT(AREA, MORGEN_HUNGARY, "$", "$")
// DECLARE_CONV_UNIT(AREA, MU, "$", "$")
DECLARE_CONV_UNIT(AREA, MU, "$*(2000/3)", "$/(2000/3)")
// DECLARE_CONV_UNIT(AREA, PING, "$", "$")
// DECLARE_CONV_UNIT(AREA, PYEONG, "$", "$")
// DECLARE_CONV_UNIT(AREA, PYEONGBANGJA, "$", "$")
// DECLARE_CONV_UNIT(AREA, RAI, "$", "$")
DECLARE_CONV_UNIT(AREA, RAI, "$*1600", "$/1600")
DECLARE_CONV_UNIT(AREA, SE, "$*108000/1089", "$*1089/108000")
DECLARE_CONV_UNIT(AREA, SQUARE_CENTIMETERS, "$*0,0001", "$/0,0001")
// DECLARE_CONV_UNIT(AREA, SQUARE_CHR, "$", "$")
@@ -197,46 +197,47 @@ static const conv_t conv_ENERGY[] = {
1 barleycorn ..... = 1/3 inch = 0.9144/108 m
1 cm ............. = 1/100 m
1 chain uk ....... = 22 yards = 22*0.9144 m
1 chi ............ =
1 chi ............ = 1/3 m
1 chou ........... = 3600/33 m
1 chr ............ =
1 chr ............ =
1 cun ............ = 1/10 chi = 1/30 m
1 fathom ......... = 2 yard = 2*0.9144 m
1 fathom ungary .. = 1.8964838 m (fixed)
1 feet ........... = 12 inch = 0.9144/3 m
1 furlong ........ = 10 chains = 220*0.9144 m
1 gan ............ =
1 gan ............ =
1 hand ........... = 4 inches = 0.9144/9 m
1 hunh ........... =
1 hunh ........... =
1 inch ........... = yard/36 = 0.9144/36 m
1 ja ............. =
1 jeong .......... =
1 kabiet ......... =
1 ja ............. =
1 jeong .......... =
1 kabiet ......... =
1 ken ............ = 60/33 m
1 keub ........... =
1 keub ........... =
1 km ............. = 1000 m
1 lar ............ =
1 lar ............ =
1 light year ..... = 9460730472580800 m
1 link uk ........ = 0.01 chains = 0.22*0.9144 m
1 micron ......... = 0.000001 m
1 mile ........... = 1760 yards = 1609.344 m
1 millimeter ..... = 1/1000 m
1 nautical mile .. = 1852 m
1 nieu ........... =
1 nieu ........... =
1 parsec ......... = 30856800000000000 m
1 pica ........... = yard/216 = 0.9144/216 m
1 ri japan ....... =
1 ri korea ....... =
1 ri japan ....... =
1 ri korea ....... =
1 rod ............ = 5.0292 m
1 sawk ........... =
1 sen ............ =
1 sawk ........... =
1 sen ............ =
1 shaku .......... = 10/33 m
1 span ........... = 9 inches = 0.9144/4 m
1 sun ............ = 10/330 m
1 tsuen .......... =
1 va ............. =
1 sun ............ = 1/33 m
1 tsuen .......... =
1 va ............. =
1 yard ........... = 0.9144 m
1 yote ........... =
1 zhang .......... =
1 yote ........... =
1 zhang .......... =
*/
static const conv_t conv_LENGTH[] = {
DECLARE_CONV_UNIT(LENGTH, ANGSTROMS, "$*0.0000000001", "$/0.0000000001")
@@ -244,10 +245,10 @@ static const conv_t conv_LENGTH[] = {
DECLARE_CONV_UNIT(LENGTH, BARLEYCORNS, "$*0.9144/108", "$/0.9144*108")
DECLARE_CONV_UNIT(LENGTH, CENTIMETERS, "$/100", "$*100")
DECLARE_CONV_UNIT(LENGTH, CHAINS_UK, "$*20.1168", "$/20.1168")
// DECLARE_CONV_UNIT(LENGTH, CHI, "$", "$")
DECLARE_CONV_UNIT(LENGTH, CHI, "$/3", "$*3")
DECLARE_CONV_UNIT(LENGTH, CHOU, "$*3600/33", "$*33/3600")
// DECLARE_CONV_UNIT(LENGTH, CHR, "$", "$")
// DECLARE_CONV_UNIT(LENGTH, CUN, "$", "$")
DECLARE_CONV_UNIT(LENGTH, CUN, "$/30", "$*30")
DECLARE_CONV_UNIT(LENGTH, FATHOMS, "$*1.8288", "$/1.8288")
DECLARE_CONV_UNIT(LENGTH, FATHOMS_HUNGARY, "$*1.8964838", "$/1.8964838")
DECLARE_CONV_UNIT(LENGTH, FEET, "$*0.3048", "$/0.3048")
@@ -280,7 +281,7 @@ static const conv_t conv_LENGTH[] = {
// DECLARE_CONV_UNIT(LENGTH, SEN, "$", "$")
DECLARE_CONV_UNIT(LENGTH, SHAKU, "$*10/33", "$*33/10")
DECLARE_CONV_UNIT(LENGTH, SPAN, "$*0.9144/4", "$*4/0.9144")
DECLARE_CONV_UNIT(LENGTH, SUN, "$*10/330", "$*330/10")
DECLARE_CONV_UNIT(LENGTH, SUN, "$*1/33", "$*33")
// DECLARE_CONV_UNIT(LENGTH, TSUEN, "$", "$")
// DECLARE_CONV_UNIT(LENGTH, VA, "$", "$")
DECLARE_CONV_UNIT(LENGTH, YARDS, "$*0.9144", "$/0.9144")
@@ -312,7 +313,7 @@ static const conv_t conv_POWER[] = {
1 hPa = 100 Pa
1 kPa = 1000 Pa
1 mm HG = 133.322 Pa
1 psi = 6894.757 Pa
1 psi = 6894.757 Pa
*/
static const conv_t conv_PRESSURE[] = {
DECLARE_CONV_UNIT(PRESSURE, ATMOSPHERES, "$*101325", "$/101325")
@@ -330,18 +331,20 @@ static const conv_t conv_PRESSURE[] = {
1 hour ...... = 3600 s
1 microsecond = 0.000001 s
1 millisecond = 0.001 s
1 nanosecond. = 0.000000001 s
1 minute .... = 60 s
1 week ...... = 669600 s
*/
static const conv_t conv_TIME[] = {
DECLARE_CONV_UNIT(TIME, MINUTES, "$*60", "$/60")
DECLARE_CONV_UNIT(TIME, DAYS, "$*86400", "$/86400")
DECLARE_CONV_UNIT(TIME, HOURS, "$*3600", "$/3600")
DECLARE_CONV_UNIT(TIME, MILLISECONDS, "$*0.001", "$/0.001")
DECLARE_CONV_UNIT(TIME, MICROSECONDS, "$*0.000001", "$/0.000001")
DECLARE_CONV_UNIT(TIME, SECONDS, "$", "$")
DECLARE_CONV_UNIT(TIME, WEEKS, "$*604800", "$/604800")
DECLARE_CONV_UNIT(TIME, YEARS, "$*31556952", "$/31556952")
DECLARE_CONV_UNIT(TIME, MINUTES, "$*60", "$/60")
DECLARE_CONV_UNIT(TIME, DAYS, "$*86400", "$/86400")
DECLARE_CONV_UNIT(TIME, HOURS, "$*3600", "$/3600")
DECLARE_CONV_UNIT(TIME, MILLISECONDS, "$*0.001", "$/0.001")
DECLARE_CONV_UNIT(TIME, MICROSECONDS, "$*0.000001", "$/0.000001")
DECLARE_CONV_UNIT(TIME, NANOSECONDS, "$*0.000000001", "$/0.000000001")
DECLARE_CONV_UNIT(TIME, SECONDS, "$", "$")
DECLARE_CONV_UNIT(TIME, WEEKS, "$*604800", "$/604800")
DECLARE_CONV_UNIT(TIME, YEARS, "$*31556952", "$/31556952")
DECLARE_CONV_END
};
@@ -382,7 +385,7 @@ static const conv_t conv_VELOCITY[] = {
/*
1 barrel uk ...... = 163.65924 l
1 barrel oil ..... = 158.987295 l
1 bun ............ =
1 bun ............ =
1 bushel uk ...... = 36.36872 l
1 bushel us ...... = 35.23907017 l
1 cubic cm ...... = 0.001 l
@@ -390,17 +393,17 @@ static const conv_t conv_VELOCITY[] = {
1 cubic inch ..... = 0.016387064 l
1 cubic meter .... = 1000 l
1 cubic yard ..... = 764.554857 l
1 doe ............ =
1 doe ............ =
1 fluid ounce uk = 0.0284130625 l
1 fluid ounce us = 0.0295735295625 l
1 gallon uk ...... = 4.54609 l
1 gallon dry us .. = 4.40488377086 l
1 gallon liquid us = 3.785411784 l
1 gou ............ = 0.1809 l
1 hop ............ =
1 icce ........... =
1 kwian .......... =
1 mal ............ =
1 hop ............ =
1 icce ........... =
1 kwian .......... =
1 mal ............ =
1 milliliter ..... = 0.001 l
1 pint uk ........ = 0.56826125 l
1 pint dry us .... = 0.5506104713575 l
@@ -408,10 +411,10 @@ static const conv_t conv_VELOCITY[] = {
1 quart uk ....... = 1.1365225 l
1 quart dry us ... = 1.101220942715 l
1 quart liquid us = 0.946352946 l
1 seki ........... =
1 syou ........... =
1 tananloung ..... =
1 tang ........... =
1 seki ........... =
1 syou ........... =
1 tananloung ..... =
1 tang ........... =
1 to ............. = 18040 l
*/
static const conv_t conv_VOLUME[] = {
@@ -455,16 +458,16 @@ static const conv_t conv_VOLUME[] = {
/*
1 baht ............ = 12.244 g
1 carat ........... = 0.2 g
1 chung ........... =
1 don ............. =
1 geun ............ =
1 gwan ............ =
1 harb ............ =
1 jin china ....... =
1 jin taiwan ...... =
1 Kan ............. =
1 chung ........... =
1 don ............. =
1 geun ............ =
1 gwan ............ =
1 harb ............ =
1 jin china ....... =
1 jin taiwan ...... =
1 Kan ............. = 3750 g
1 Kilograms ....... = 1000 g
1 Kin ............. =
1 Kin ............. = 600 g
1 Liang China ..... =
1 Liang Taiwan .... =
1 monme ........... = 3.75 g
@@ -472,9 +475,9 @@ static const conv_t conv_VOLUME[] = {
1 ounce troy ...... = 31.1034768 g
1 pound ........... = 453.59237 g
1 quintal metric .. = 100000 g
1 saloung ......... =
1 saloung ......... =
1 stone ........... = 6350.29318 g
1 tamlung ......... =
1 tamlung ......... =
1 ton ............. = 1000000 g
1 ton uk .......... = 1016046.9088 g // long ton
1 ton us .......... = 907184.74 g // short ton
@@ -490,9 +493,9 @@ static const conv_t conv_WEIGHT[] = {
// DECLARE_CONV_UNIT(WEIGHT, HARB, "$", "$")
// DECLARE_CONV_UNIT(WEIGHT, JIN_CHINA, "$", "$")
// DECLARE_CONV_UNIT(WEIGHT, JIN_TAIWAN, "$", "$")
// DECLARE_CONV_UNIT(WEIGHT, KAN, "$", "$")
DECLARE_CONV_UNIT(WEIGHT, KAN, "$*3750", "$/3750")
DECLARE_CONV_UNIT(WEIGHT, KILOGRAMS, "$*1000", "$/1000")
// DECLARE_CONV_UNIT(WEIGHT, KIN, "$", "$")
DECLARE_CONV_UNIT(WEIGHT, KIN, "$*600", "$/600")
// DECLARE_CONV_UNIT(WEIGHT, LIANG_CHINA, "$", "$")
// DECLARE_CONV_UNIT(WEIGHT, LIANG_TAIWAN, "$", "$")
DECLARE_CONV_UNIT(WEIGHT, MONME, "$*3.75", "$/3.75")
@@ -548,7 +551,7 @@ void ConvExecute(HWND hWnd)
break;
}
}
/* The units can be sorted, so I must search the exact match */
item = items;
SendDlgItemMessage(hWnd, IDC_COMBO_FROM, CB_GETLBTEXT, from, (LPARAM)txt_cb);

View File

@@ -639,6 +639,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "<22><><EFBFBD>"
IDS_TIME_HOURS "<22><><EFBFBD><EFBFBD>"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_MICROSECONDS "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
IDS_TIME_MILLISECONDS "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
IDS_TIME_MINUTES "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"

View File

@@ -644,6 +644,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "Dny"
IDS_TIME_HOURS "Hodiny"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_MICROSECONDS "Mikrosekundy"
IDS_TIME_MILLISECONDS "Milisekundy"
IDS_TIME_MINUTES "Minuty"

View File

@@ -324,7 +324,7 @@ END
IDD_DIALOG_STAT DIALOGEX DISCARDABLE 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statistik Box"
CAPTION "Statistikbox"
FONT 8, "MS Shell Dlg"
BEGIN
LISTBOX IDC_LIST_STAT,4,4,156,40,LBS_NOINTEGRALHEIGHT |
@@ -465,11 +465,11 @@ END
// FL<46>CHENTYPEN
STRINGTABLE DISCARDABLE
BEGIN
IDS_AREA_ACRES "Acres"
IDS_AREA_ACRES_BRAZIL "Acres (Brasilien)"
IDS_AREA_ACRES_FRANCE "Acres (Frankreich)"
IDS_AREA_ACRES_SCOTS "Acres (Schottland)"
IDS_AREA_ACRES_US "Acres (USA)"
IDS_AREA_ACRES "Acre"
IDS_AREA_ACRES_BRAZIL "Acre (Brasilien)"
IDS_AREA_ACRES_FRANCE "Acre (Frankreich)"
IDS_AREA_ACRES_SCOTS "Acre (Schottland)"
IDS_AREA_ACRES_US "Acre (USA)"
IDS_AREA_ARES "Ar"
IDS_AREA_CHOU "Chou"
IDS_AREA_DANBO "Danbo"
@@ -482,21 +482,21 @@ BEGIN
IDS_AREA_PYEONGBANGJA "Pyeongbangja"
IDS_AREA_RAI "Rai"
IDS_AREA_SE "Se"
IDS_AREA_SQUARE_CHR "Qaudratchr"
IDS_AREA_SQUARE_FATHOMS "Qaudratfathom"
IDS_AREA_SQUARE_FATHOMS_HUNGARY "Qaudratfathom (Ungarn)"
IDS_AREA_SQUARE_FEET "Qaudratfu<EFBFBD>"
IDS_AREA_SQUARE_KILOMETERS "Qaudratkilometer"
IDS_AREA_SQUARE_LAR "Qaudratlar"
IDS_AREA_SQUARE_METER "Qaudratmeter"
IDS_AREA_SQUARE_MILES "Qaudratmeilen"
IDS_AREA_SQUARE_MILLIMETERS "Qaudratmillimeter"
IDS_AREA_SQUARE_SHAKU "Qaudratshaku"
IDS_AREA_SQUARE_TSUEN "Qaudrattsuen"
IDS_AREA_SQUARE_VA "Qaudratva"
IDS_AREA_SQUARE_YARD "Qaudratyard"
IDS_AREA_SQUARE_CHR "Quadratchr"
IDS_AREA_SQUARE_FATHOMS "Quadratfathom"
IDS_AREA_SQUARE_FATHOMS_HUNGARY "Quadratfathom (Ungarn)"
IDS_AREA_SQUARE_FEET "Quadratfu<EFBFBD>"
IDS_AREA_SQUARE_KILOMETERS "Quadratkilometer"
IDS_AREA_SQUARE_LAR "Quadratlar"
IDS_AREA_SQUARE_METER "Quadratmeter"
IDS_AREA_SQUARE_MILES "Quadratmeilen"
IDS_AREA_SQUARE_MILLIMETERS "Quadratmillimeter"
IDS_AREA_SQUARE_SHAKU "Quadratshaku"
IDS_AREA_SQUARE_TSUEN "Quadrattsuen"
IDS_AREA_SQUARE_VA "Quadratva"
IDS_AREA_SQUARE_YARD "Quadratyard"
IDS_AREA_SQUARE_CENTIMETERS "Quadratzentimeter"
IDS_AREA_SQUARE_INCHES "Qaudratzoll"
IDS_AREA_SQUARE_INCHES "Quadratzoll"
IDS_AREA_TAN "Tan"
IDS_AREA_TSUBO "Tsubo"
END
@@ -517,7 +517,7 @@ BEGIN
IDS_CURRENCY_DEUTSCHE_MARK "Deutsche Mark"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Finnische Mark"
IDS_CURRENCY_FRENCH_FRANC "Franz<6E>schishe Franc"
IDS_CURRENCY_FRENCH_FRANC "Franz<6E>schische Franc"
IDS_CURRENCY_GREEK_DRACHMA "Griechische Drachme"
IDS_CURRENCY_IRISH_POUND "Irische Pfund"
IDS_CURRENCY_ITALIAN_LIRA "Italienische Lire"
@@ -639,6 +639,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "Tagen"
IDS_TIME_HOURS "Stunden"
IDS_TIME_NANOSECONDS "Nanosekunden"
IDS_TIME_MICROSECONDS "Mikrosekunden"
IDS_TIME_MILLISECONDS "Millisekunden"
IDS_TIME_MINUTES "Minuten"

View File

@@ -639,6 +639,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "<22><><EFBFBD><EFBFBD><EFBFBD>"
IDS_TIME_HOURS "<22><><EFBFBD><EFBFBD>"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_MICROSECONDS "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
IDS_TIME_MILLISECONDS "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
IDS_TIME_MINUTES "<22><><EFBFBD><EFBFBD><EFBFBD>"

View File

@@ -639,6 +639,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "Days"
IDS_TIME_HOURS "Hours"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_MICROSECONDS "Microseconds"
IDS_TIME_MILLISECONDS "Milliseconds"
IDS_TIME_MINUTES "Minutes"

View File

@@ -644,6 +644,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "D<>as"
IDS_TIME_HOURS "Horas"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_MICROSECONDS "Microsegundos"
IDS_TIME_MILLISECONDS "Milisegundos"
IDS_TIME_MINUTES "Minutos"

View File

@@ -639,6 +639,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "Jours"
IDS_TIME_HOURS "Heures"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_MICROSECONDS "Microsecondes"
IDS_TIME_MILLISECONDS "Millisecondes"
IDS_TIME_MINUTES "Minutes"

View File

@@ -639,6 +639,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "Giorni"
IDS_TIME_HOURS "Ore"
IDS_TIME_NANOSECONDS "Nanosecondi"
IDS_TIME_MICROSECONDS "Microsecondi"
IDS_TIME_MILLISECONDS "Millisecondi"
IDS_TIME_MINUTES "Minuti"

View File

@@ -643,6 +643,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "Days"
IDS_TIME_HOURS "Hours"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_MICROSECONDS "Microseconds"
IDS_TIME_MILLISECONDS "Milliseconds"
IDS_TIME_MINUTES "Minutes"

View File

@@ -639,6 +639,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "Dagen"
IDS_TIME_HOURS "Uren"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_MICROSECONDS "Microseconden"
IDS_TIME_MILLISECONDS "Milliseconden"
IDS_TIME_MINUTES "Minuten"
@@ -703,7 +704,7 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_WEIGHT_BAHT "Baht"
IDS_WEIGHT_CARATS "Carats"
IDS_WEIGHT_CARATS "Karaat"
IDS_WEIGHT_CHUNG "Chung"
IDS_WEIGHT_DON "Don"
IDS_WEIGHT_GEUN "Geun"

View File

@@ -639,6 +639,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "**"
IDS_TIME_HOURS "**"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_MICROSECONDS "**"
IDS_TIME_MILLISECONDS "**"
IDS_TIME_MINUTES "**"

View File

@@ -464,9 +464,9 @@ END
// TYPES OF ANGLES
STRINGTABLE DISCARDABLE
BEGIN
IDS_ANGLE_DEGREES "Stopni"
IDS_ANGLE_GRADIANS "Gradian<EFBFBD>w"
IDS_ANGLE_RADIANS "Radian<EFBFBD>w"
IDS_ANGLE_DEGREES "Stopnie"
IDS_ANGLE_GRADIANS "Gradiany"
IDS_ANGLE_RADIANS "Radiany"
END
// TYPES OF AREAS
@@ -489,21 +489,21 @@ BEGIN
IDS_AREA_PYEONGBANGJA "Pyeongbangja"
IDS_AREA_RAI "Rai"
IDS_AREA_SE "Se"
IDS_AREA_SQUARE_CENTIMETERS "Centymetr<EFBFBD>w kwadratowych"
IDS_AREA_SQUARE_CHR "Chr kwadratowych"
IDS_AREA_SQUARE_FATHOMS "S<><53>ni kwadratowych"
IDS_AREA_SQUARE_FATHOMS_HUNGARY "S<><53>ni kwadratowych (W<>gry)"
IDS_AREA_SQUARE_FEET "St<EFBFBD>p kwadratowych"
IDS_AREA_SQUARE_INCHES "Cali kwadratowych"
IDS_AREA_SQUARE_KILOMETERS "Kilometr<EFBFBD>w kwadratowych"
IDS_AREA_SQUARE_LAR "Lar kwadratowych"
IDS_AREA_SQUARE_METER "Metr<EFBFBD>w kwadratowych"
IDS_AREA_SQUARE_MILES "Mil kwadratowych"
IDS_AREA_SQUARE_MILLIMETERS "Milimetr<EFBFBD>w kwadratowych"
IDS_AREA_SQUARE_SHAKU "Shaku kwadratowych"
IDS_AREA_SQUARE_TSUEN "Tsuen kwadratowych"
IDS_AREA_SQUARE_VA "Va kwadratowych"
IDS_AREA_SQUARE_YARD "Jard<EFBFBD>w kwadratowych"
IDS_AREA_SQUARE_CENTIMETERS "Centymetry kwadratowe"
IDS_AREA_SQUARE_CHR "Chr kwadratowe"
IDS_AREA_SQUARE_FATHOMS "S<><53>nie kwadratowe"
IDS_AREA_SQUARE_FATHOMS_HUNGARY "S<><53>nie kwadratowe (W<>gry)"
IDS_AREA_SQUARE_FEET "Stopy kwadratowe"
IDS_AREA_SQUARE_INCHES "Cale kwadratowe"
IDS_AREA_SQUARE_KILOMETERS "Kilometry kwadratowe"
IDS_AREA_SQUARE_LAR "Lar kwadratowe"
IDS_AREA_SQUARE_METER "Metry kwadratowe"
IDS_AREA_SQUARE_MILES "Mile kwadratowe"
IDS_AREA_SQUARE_MILLIMETERS "Milimetry kwadratowe"
IDS_AREA_SQUARE_SHAKU "Shaku kwadratowe"
IDS_AREA_SQUARE_TSUEN "Tsuen kwadratowe"
IDS_AREA_SQUARE_VA "Va kwadratowe"
IDS_AREA_SQUARE_YARD "Jardy kwadratowe"
IDS_AREA_TAN "Tan"
IDS_AREA_TSUBO "Tsubo"
END
@@ -511,10 +511,10 @@ END
// TYPES OF COMSUMPTIONS
STRINGTABLE DISCARDABLE
BEGIN
IDS_CONSUMPTION_KM_PER_L "Kilometr<EFBFBD>w/litr"
IDS_CONSUMPTION_L_PER_100_KM "Litr<EFBFBD>w/100 kilometr<74>ws"
IDS_CONSUMPTION_MILES_GALLON_UK "Mil/galon (UK)"
IDS_CONSUMPTION_MILES_GALLON_US "Mil/galon (USA)"
IDS_CONSUMPTION_KM_PER_L "Kilometry/litr"
IDS_CONSUMPTION_L_PER_100_KM "Litry/100 kilometr<74>w"
IDS_CONSUMPTION_MILES_GALLON_UK "Mile/galon (UK)"
IDS_CONSUMPTION_MILES_GALLON_US "Mile/galon (USA)"
END
// TYPES OF CURRENCIES
@@ -543,56 +543,56 @@ END
// TYPES OF ENERGIES
STRINGTABLE DISCARDABLE
BEGIN
IDS_ENERGY_15_C_CALORIES "15 <20>C kalorii"
IDS_ENERGY_15_C_CALORIES "15 <20>C kalorie"
IDS_ENERGY_BTUS "British Thermal Unit"
IDS_ENERGY_ERGS "Erg<EFBFBD>w"
IDS_ENERGY_EVS "Elektronowolt"
IDS_ENERGY_FOOT_POUNDS "Foot-pound"
IDS_ENERGY_ERGS "Ergi"
IDS_ENERGY_EVS "Elektronowolty"
IDS_ENERGY_FOOT_POUNDS "Stopo-funty"
IDS_ENERGY_IT_CALORIES "Mi<4D>dzynarodowa Tablica kalorii"
IDS_ENERGY_IT_KILOCALORIES "Mi<4D>dzynarodowa Tablica kilokalorii"
IDS_ENERGY_JOULES "D<>uli"
IDS_ENERGY_KILOJOULES "Kilod<6F>uli"
IDS_ENERGY_KILOWATT_HOURS "Kilowatogodzin"
IDS_ENERGY_NUTRITION_CALORIES "Kalorii spo<70>ywczych"
IDS_ENERGY_TH_CALORIES "Kalorii termochemicznych"
IDS_ENERGY_JOULES "D<>ule"
IDS_ENERGY_KILOJOULES "Kilod<6F>ule"
IDS_ENERGY_KILOWATT_HOURS "Kilowatogodziny"
IDS_ENERGY_NUTRITION_CALORIES "Kalorie spo<70>ywcze"
IDS_ENERGY_TH_CALORIES "Kalorie termochemiczne"
END
// TYPES OF LENGTHS
STRINGTABLE DISCARDABLE
BEGIN
IDS_LENGTH_ANGSTROMS "Angsztrem<EFBFBD>w"
IDS_LENGTH_ASTRONOMICAL_UNITS "Jednostek Astronomicznych"
IDS_LENGTH_BARLEYCORNS "Palc<EFBFBD>w"
IDS_LENGTH_CENTIMETERS "Centimetr<EFBFBD>w"
IDS_LENGTH_ANGSTROMS "Angsztremy"
IDS_LENGTH_ASTRONOMICAL_UNITS "Jednostki Astronomiczne"
IDS_LENGTH_BARLEYCORNS "Palce"
IDS_LENGTH_CENTIMETERS "Centymetry"
IDS_LENGTH_CHAINS_UK "Chains (UK)"
IDS_LENGTH_CHI "Chi"
IDS_LENGTH_CHOU "Chou"
IDS_LENGTH_CHR "Chr"
IDS_LENGTH_CUN "Cun"
IDS_LENGTH_FATHOMS "S<><53>ni"
IDS_LENGTH_FATHOMS_HUNGARY "S<><53>ni (W<>gry)"
IDS_LENGTH_FEET "St<EFBFBD>p"
IDS_LENGTH_FATHOMS "S<><53>nie"
IDS_LENGTH_FATHOMS_HUNGARY "S<><53>nie (W<>gry)"
IDS_LENGTH_FEET "Stopy"
IDS_LENGTH_FURLONGS "Furlongs"
IDS_LENGTH_GAN "Gan"
IDS_LENGTH_HANDS "D<>oni"
IDS_LENGTH_HANDS "D<>onie"
IDS_LENGTH_HUNH "Hunh"
IDS_LENGTH_INCHES "Cali"
IDS_LENGTH_INCHES "Cale"
IDS_LENGTH_JA "Ja"
IDS_LENGTH_JEONG "Jeong"
IDS_LENGTH_KABIET "Kabiet"
IDS_LENGTH_KEN "Ken"
IDS_LENGTH_KEUB "Keub"
IDS_LENGTH_KILOMETERS "Kilometer<EFBFBD>w"
IDS_LENGTH_KILOMETERS "Kilometry"
IDS_LENGTH_LAR "Lar"
IDS_LENGTH_LIGHT_YEARS "Lat <20>wietlnych"
IDS_LENGTH_LIGHT_YEARS "Lata <20>wietlne"
IDS_LENGTH_LINKS_UK "Links (UK)"
IDS_LENGTH_METERS "Metr<EFBFBD>w"
IDS_LENGTH_MICRONS "Mikrometr<EFBFBD>w"
IDS_LENGTH_MILES "Mil"
IDS_LENGTH_MILLIMETERS "Millimetr<EFBFBD>w"
IDS_LENGTH_NAUTICAL_MILES "Mil morskich"
IDS_LENGTH_METERS "Metry"
IDS_LENGTH_MICRONS "Mikrometry"
IDS_LENGTH_MILES "Mile"
IDS_LENGTH_MILLIMETERS "Milimetry"
IDS_LENGTH_NAUTICAL_MILES "Mile morskie"
IDS_LENGTH_NIEU "Nieu"
IDS_LENGTH_PARSECS "Parsek<EFBFBD>w"
IDS_LENGTH_PARSECS "Parseki"
IDS_LENGTH_PICAS "Picas"
IDS_LENGTH_RI_JAPAN "Ri (Japan)"
IDS_LENGTH_RI_KOREA "Ri (Korea)"
@@ -604,7 +604,7 @@ BEGIN
IDS_LENGTH_SUN "Sun"
IDS_LENGTH_TSUEN "Tsuen"
IDS_LENGTH_VA "Va"
IDS_LENGTH_YARDS "Jard<EFBFBD>w"
IDS_LENGTH_YARDS "Jardy"
IDS_LENGTH_YOTE "Yote"
IDS_LENGTH_ZHANG "Zhang"
END
@@ -613,23 +613,23 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_POWER_BTUS_PER_MINUTE "BTU na minut<75>"
IDS_POWER_FPS_PER_MINUTE "Foot-pound na minut<75>"
IDS_POWER_HORSEPOWER "Koni mechanicznych"
IDS_POWER_KILOWATTS "Kilowat<EFBFBD>w"
IDS_POWER_MEGAWATTS "Megawat<EFBFBD>w"
IDS_POWER_WATTS "Wat<EFBFBD>w"
IDS_POWER_FPS_PER_MINUTE "Stopo-funty na minut<75>"
IDS_POWER_HORSEPOWER "Konie mechaniczne"
IDS_POWER_KILOWATTS "Kilowaty"
IDS_POWER_MEGAWATTS "Megawaty"
IDS_POWER_WATTS "Waty"
END
// TYPE OF PRESSURES
STRINGTABLE DISCARDABLE
BEGIN
IDS_PRESSURE_ATMOSPHERES "Atmosfer"
IDS_PRESSURE_BARS "Bar<EFBFBD>w"
IDS_PRESSURE_HECTOPASCALS "Hektopaskali"
IDS_PRESSURE_KILOPASCALS "Kilopaskali"
IDS_PRESSURE_MM_OF_MERCURY "Millimetr<EFBFBD>w s<>upka rt<72>ci"
IDS_PRESSURE_PASCALS "Paskali"
IDS_PRESSURE_PSI "Funt<EFBFBD>w na cal kwadratowy"
IDS_PRESSURE_ATMOSPHERES "Atmosfery"
IDS_PRESSURE_BARS "Bary"
IDS_PRESSURE_HECTOPASCALS "Hektopaskale"
IDS_PRESSURE_KILOPASCALS "Kilopaskale"
IDS_PRESSURE_MM_OF_MERCURY "Milimetry s<>upka rt<72>ci"
IDS_PRESSURE_PASCALS "Paskale"
IDS_PRESSURE_PSI "Funty na cal kwadratowy"
END
// TYPES OF TEMPERATURES
@@ -645,60 +645,61 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "Dni"
IDS_TIME_HOURS "Godzin"
IDS_TIME_MICROSECONDS "Mikrosekund"
IDS_TIME_MILLISECONDS "Milisekund"
IDS_TIME_MINUTES "Minut"
IDS_TIME_SECONDS "Sekund"
IDS_TIME_WEEKS "Tygodni"
IDS_TIME_YEARS "Lat"
IDS_TIME_HOURS "Godziny"
IDS_TIME_NANOSECONDS "Nanosekundy"
IDS_TIME_MICROSECONDS "Mikrosekundy"
IDS_TIME_MILLISECONDS "Milisekundy"
IDS_TIME_MINUTES "Minuty"
IDS_TIME_SECONDS "Sekundy"
IDS_TIME_WEEKS "Tygodnie"
IDS_TIME_YEARS "Lata"
END
// TYPES OF VELOCITIES
STRINGTABLE DISCARDABLE
BEGIN
IDS_VELOCITY_CMS_SECOND "Centimetr<EFBFBD>w/sekund<6E>"
IDS_VELOCITY_FEET_HOUR "St<EFBFBD>p/godzin<69>"
IDS_VELOCITY_FEET_SECOND "St<EFBFBD>p/sekund<6E>"
IDS_VELOCITY_KILOMETERS_HOUR "Kilometr<EFBFBD>w/godzin<69>"
IDS_VELOCITY_KNOTS "W<>z<EFBFBD><EFBFBD>w"
IDS_VELOCITY_MACH "Mach<EFBFBD>w"
IDS_VELOCITY_METERS_SECOND "Metr<EFBFBD>w/sekund<6E>"
IDS_VELOCITY_MILES_HOUR "Mil/godzin<69>"
IDS_VELOCITY_CMS_SECOND "Centymetry/sekund<6E>"
IDS_VELOCITY_FEET_HOUR "Stopy/godzin<69>"
IDS_VELOCITY_FEET_SECOND "Stopy/sekund<6E>"
IDS_VELOCITY_KILOMETERS_HOUR "Kilometry/godzin<69>"
IDS_VELOCITY_KNOTS "W<>z<EFBFBD>y"
IDS_VELOCITY_MACH "Machy"
IDS_VELOCITY_METERS_SECOND "Metry/sekund<6E>"
IDS_VELOCITY_MILES_HOUR "Mile/godzin<69>"
END
// TYPES OF VOLUMES
STRINGTABLE DISCARDABLE
BEGIN
IDS_VOLUME_BARRELS_UK "Bary<72>ek (UK)"
IDS_VOLUME_BARRELS_OIL "Bary<72>ek"
IDS_VOLUME_BARRELS_UK "Bary<72>ki (UK)"
IDS_VOLUME_BARRELS_OIL "Bary<72>ki"
IDS_VOLUME_BUN "Bun"
IDS_VOLUME_BUSHELS_UK "Buszli (UK)"
IDS_VOLUME_BUSHELS_US "Buszli (US)"
IDS_VOLUME_CUBIC_CENTIMETERS "Centymetr<EFBFBD>w sze<7A>ciennych"
IDS_VOLUME_CUBIC_FEET "St<EFBFBD>p sze<7A>ciennych"
IDS_VOLUME_CUBIC_INCHES "Cali sze<7A>ciennych"
IDS_VOLUME_CUBIC_METERS "Metr<EFBFBD>w sze<7A>ciennych"
IDS_VOLUME_CUBIC_YARDS "Jard<EFBFBD>w sze<7A>ciennych"
IDS_VOLUME_BUSHELS_UK "Buszle (UK)"
IDS_VOLUME_BUSHELS_US "Buszle (US)"
IDS_VOLUME_CUBIC_CENTIMETERS "Centymetry sze<7A>cienne"
IDS_VOLUME_CUBIC_FEET "Stopy sze<7A>cienne"
IDS_VOLUME_CUBIC_INCHES "Cale sze<7A>cienne"
IDS_VOLUME_CUBIC_METERS "Metry sze<7A>cienne"
IDS_VOLUME_CUBIC_YARDS "Jardy sze<7A>cienne"
IDS_VOLUME_DOE "Doe"
IDS_VOLUME_FLUID_OUNCES_UK "Uncji, p<>yn (UK)"
IDS_VOLUME_FLUID_OUNCES_US "Uncji, p<>yn (US)"
IDS_VOLUME_GALLONS_UK "Galon<EFBFBD>w (UK)"
IDS_VOLUME_GALLONS_DRY_US "Galon<EFBFBD>w, sypkie (US)"
IDS_VOLUME_GALLONS_LIQUID_US "Gallons, p<>yn (US)"
IDS_VOLUME_FLUID_OUNCES_UK "Uncje, p<>yn (UK)"
IDS_VOLUME_FLUID_OUNCES_US "Uncje, p<>yn (US)"
IDS_VOLUME_GALLONS_UK "Galony (UK)"
IDS_VOLUME_GALLONS_DRY_US "Galony, sypkie (US)"
IDS_VOLUME_GALLONS_LIQUID_US "Galony, p<>yn (US)"
IDS_VOLUME_GOU "Gou"
IDS_VOLUME_HOP "Hop"
IDS_VOLUME_ICCE "Icce"
IDS_VOLUME_KWIAN "Kwian"
IDS_VOLUME_LITERS "Litr<EFBFBD>w"
IDS_VOLUME_LITERS "Litry"
IDS_VOLUME_MAL "Mal"
IDS_VOLUME_MILLILITERS "Milliliters"
IDS_VOLUME_PINTS_UK "Pint (UK)"
IDS_VOLUME_PINTS_DRY_US "Pint, sypkie (US)"
IDS_VOLUME_PINTS_LIQUID_US "Pint, p<>yn (US)"
IDS_VOLUME_QUARTS_UK "Kwart (UK)"
IDS_VOLUME_QUARTS_DRY_US "Kwart, sypkie (US)"
IDS_VOLUME_QUARTS_LIQUID_US "Kwart, p<>yn (US)"
IDS_VOLUME_MILLILITERS "Mililitry"
IDS_VOLUME_PINTS_UK "Pinty (UK)"
IDS_VOLUME_PINTS_DRY_US "Pinty, sypkie (US)"
IDS_VOLUME_PINTS_LIQUID_US "Pinty, p<>yn (US)"
IDS_VOLUME_QUARTS_UK "Kwarty (UK)"
IDS_VOLUME_QUARTS_DRY_US "Kwarty, sypkie (US)"
IDS_VOLUME_QUARTS_LIQUID_US "Kwarty, p<>yn (US)"
IDS_VOLUME_SEKI "Seki"
IDS_VOLUME_SYOU "Syou"
IDS_VOLUME_TANANLOUNG "Tananloung"
@@ -709,26 +710,26 @@ END
// TYPES OF WEIGHTS
STRINGTABLE DISCARDABLE
BEGIN
IDS_WEIGHT_BAHT "Baht<EFBFBD>w"
IDS_WEIGHT_CARATS "Karat<EFBFBD>w"
IDS_WEIGHT_BAHT "Bahty"
IDS_WEIGHT_CARATS "Karaty"
IDS_WEIGHT_CHUNG "Chung"
IDS_WEIGHT_DON "Don"
IDS_WEIGHT_GEUN "Geun"
IDS_WEIGHT_GRAMS "Gram<EFBFBD>w"
IDS_WEIGHT_GRAMS "Gramy"
IDS_WEIGHT_GWAN "Gwan"
IDS_WEIGHT_HARB "Harb"
IDS_WEIGHT_JIN_CHINA "Jin (China)"
IDS_WEIGHT_JIN_TAIWAN "Jin (Taiwan)"
IDS_WEIGHT_KAN "Kan"
IDS_WEIGHT_KILOGRAMS "Kilogram<EFBFBD>w"
IDS_WEIGHT_KILOGRAMS "Kilogramy"
IDS_WEIGHT_KIN "Kin"
IDS_WEIGHT_LIANG_CHINA "Liang (China)"
IDS_WEIGHT_LIANG_TAIWAN "Liang (Taiwan)"
IDS_WEIGHT_MONME "Monme"
IDS_WEIGHT_OUNCES_AVOIRDUPOIS "Uncji, avoirdupois"
IDS_WEIGHT_OUNCES_TROY "Uncji, aptekarskie"
IDS_WEIGHT_POUNDS "Funt<EFBFBD>w"
IDS_WEIGHT_QUINTAL_METRIC "Kwintali"
IDS_WEIGHT_OUNCES_AVOIRDUPOIS "Uncje, avoirdupois"
IDS_WEIGHT_OUNCES_TROY "Uncje, aptekarskie"
IDS_WEIGHT_POUNDS "Funty"
IDS_WEIGHT_QUINTAL_METRIC "Kwintale"
IDS_WEIGHT_SALOUNG "Saloung"
IDS_WEIGHT_STONES "Kamieni"
IDS_WEIGHT_TAMLUNG "Tamlung"

View File

@@ -1,5 +1,7 @@
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
#pragma code_page(65001)
// Dialog
IDD_DIALOG_SCIENTIFIC DIALOGEX 0, 0, 316, 161
@@ -122,7 +124,7 @@ BEGIN
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "E",IDC_BUTTON_E,262,140,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "<EFBFBD>i",IDC_BUTTON_AND,288,64,24,17,BS_CENTER | BS_VCENTER |
PUSHBUTTON "Şi",IDC_BUTTON_AND,288,64,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Xor",IDC_BUTTON_XOR,288,83,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
@@ -151,7 +153,7 @@ BEGIN
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "CE",IDC_BUTTON_CE,228,40,40,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "<EFBFBD>napoi",IDC_BUTTON_BACK,184,40,40,17,BS_CENTER |
PUSHBUTTON "Înapoi",IDC_BUTTON_BACK,184,40,40,17,BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
RTEXT "",IDC_TEXT_OUTPUT,4,4,308,12,SS_CENTERIMAGE,
WS_EX_CLIENTEDGE
@@ -168,7 +170,7 @@ BEGIN
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "CE",IDC_BUTTON_CE,84,24,40,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "<EFBFBD>napoi",IDC_BUTTON_BACK,40,24,40,17,BS_CENTER |
PUSHBUTTON "Înapoi",IDC_BUTTON_BACK,40,24,40,17,BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
RTEXT "",IDC_TEXT_OUTPUT,4,4,164,12,SS_CENTERIMAGE,
WS_EX_CLIENTEDGE
@@ -245,7 +247,7 @@ BEGIN
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,276,24,40,17
CONTROL "CE",IDC_BUTTON_CE,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,232,24,40,17
CONTROL "<EFBFBD>napoi",IDC_BUTTON_BACK,"Button",BS_OWNERDRAW |
CONTROL "Înapoi",IDC_BUTTON_BACK,"Button",BS_OWNERDRAW |
BS_CENTER | BS_VCENTER | BS_NOTIFY | WS_TABSTOP,188,24,
40,17
RTEXT "",IDC_TEXT_OUTPUT,4,4,312,12,SS_CENTERIMAGE,
@@ -349,7 +351,7 @@ BEGIN
POPUP "Vizualizare"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "<EFBFBD>tiin<EFBFBD>ific", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Ştiințific", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Conversie", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -381,7 +383,7 @@ BEGIN
POPUP "Vizualizare"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "<EFBFBD>tiin<EFBFBD>ific", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Ştiințific", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Conversie", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -414,7 +416,7 @@ BEGIN
POPUP "Vizualizare"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "<EFBFBD>tiin<EFBFBD>ific", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Ştiințific", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Conversie", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Grupare cifre", IDM_VIEW_GROUP, CHECKED
@@ -431,7 +433,7 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_STRING_LICENSE "ReactOS Calc este software liber sub licen<EFBFBD>a GNU GPL. \r\n\r\nG<EFBFBD>si<EFBFBD>i o copie a acestei licen<EFBFBD>e aici:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nDe asemenea g<EFBFBD>si<EFBFBD>i traduceri ale aceste licen<EFBFBD>e aici:\r\nhttp://www.gnu.org/licenses/translations.html\r\nTraducerea <EFBFBD>n limba rom<EFBFBD>n<EFBFBD> de Petru Dimitriu."
IDS_STRING_LICENSE "ReactOS Calc este software liber sub licența GNU GPL. \r\n\r\nGăsiți o copie a acestei licențe aici:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nDe asemenea găsiți traduceri ale aceste licențe aici:\r\nhttp://www.gnu.org/licenses/translations.html\r\nTraducerea în limba română de Petru Dimitriu."
IDS_MATH_ERROR "Eroare"
IDS_QUICKHELP "Ajutor rapid"
END
@@ -440,18 +442,18 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_CONV_ANGLE "Unghi"
IDS_CONV_AREA "Suprafa<EFBFBD><EFBFBD>"
IDS_CONV_AREA "Suprafață"
IDS_CONV_CONSUMPTION "Consum (motoare)"
IDS_CONV_CURRENCY "Valut<EFBFBD>"
IDS_CONV_CURRENCY "Valută"
IDS_CONV_ENERGY "Energie"
IDS_CONV_LENGTH "Lungimi"
IDS_CONV_POWER "Putere"
IDS_CONV_PRESSURE "Presiune"
IDS_CONV_TEMPERATURE "Temperatur<EFBFBD>"
IDS_CONV_TEMPERATURE "Temperatură"
IDS_CONV_TIME "Timp"
IDS_CONV_VELOCITY "Velocitate"
IDS_CONV_VOLUME "Volum"
IDS_CONV_WEIGHT "Mas<EFBFBD>"
IDS_CONV_WEIGHT "Masă"
END
// TYPES OF ANGLES
@@ -467,7 +469,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_AREA_ACRES "Acri"
IDS_AREA_ACRES_BRAZIL "Acri (Brazilia)"
IDS_AREA_ACRES_FRANCE "Acri (Fran<EFBFBD>a)"
IDS_AREA_ACRES_FRANCE "Acri (Franța)"
IDS_AREA_ACRES_SCOTS "Acri (Scots)"
IDS_AREA_ACRES_US "Acri (SUA)"
IDS_AREA_ARES "Ares"
@@ -482,21 +484,21 @@ BEGIN
IDS_AREA_PYEONGBANGJA "Pyeongbangja"
IDS_AREA_RAI "Rai"
IDS_AREA_SE "Se"
IDS_AREA_SQUARE_CENTIMETERS "Centimetri p<EFBFBD>tra<EFBFBD>i"
IDS_AREA_SQUARE_CHR "Chr p<EFBFBD>tra<EFBFBD>i"
IDS_AREA_SQUARE_FATHOMS "Fathomi p<EFBFBD>tra<EFBFBD>i"
IDS_AREA_SQUARE_FATHOMS_HUNGARY "Fathomi p<EFBFBD>tra<EFBFBD>i (Ungaria)"
IDS_AREA_SQUARE_FEET "Picioare p<EFBFBD>trate"
IDS_AREA_SQUARE_INCHES "<EFBFBD>oli p<EFBFBD>tra<EFBFBD>i"
IDS_AREA_SQUARE_KILOMETERS "Kilometri p<EFBFBD>tra<EFBFBD>i"
IDS_AREA_SQUARE_LAR "Lar p<EFBFBD>tra<EFBFBD>i"
IDS_AREA_SQUARE_METER "Metri p<EFBFBD>tra<EFBFBD>i"
IDS_AREA_SQUARE_MILES "Mile p<EFBFBD>trate"
IDS_AREA_SQUARE_MILLIMETERS "Milimetri p<EFBFBD>tra<EFBFBD>i"
IDS_AREA_SQUARE_SHAKU "Shaku p<EFBFBD>tra<EFBFBD>i"
IDS_AREA_SQUARE_TSUEN "Tsuen p<EFBFBD>tra<EFBFBD>i"
IDS_AREA_SQUARE_VA "Va p<EFBFBD>tra<EFBFBD>i"
IDS_AREA_SQUARE_YARD "Yarzi p<EFBFBD>tra<EFBFBD>i"
IDS_AREA_SQUARE_CENTIMETERS "Centimetri pătrați"
IDS_AREA_SQUARE_CHR "Chr pătrați"
IDS_AREA_SQUARE_FATHOMS "Fathomi pătrați"
IDS_AREA_SQUARE_FATHOMS_HUNGARY "Fathomi pătrați (Ungaria)"
IDS_AREA_SQUARE_FEET "Picioare pătrate"
IDS_AREA_SQUARE_INCHES "țoli pătrați"
IDS_AREA_SQUARE_KILOMETERS "Kilometri pătrați"
IDS_AREA_SQUARE_LAR "Lar pătrați"
IDS_AREA_SQUARE_METER "Metri pătrați"
IDS_AREA_SQUARE_MILES "Mile pătrate"
IDS_AREA_SQUARE_MILLIMETERS "Milimetri pătrați"
IDS_AREA_SQUARE_SHAKU "Shaku pătrați"
IDS_AREA_SQUARE_TSUEN "Tsuen pătrați"
IDS_AREA_SQUARE_VA "Va pătrați"
IDS_AREA_SQUARE_YARD "Yarzi pătrați"
IDS_AREA_TAN "Tan"
IDS_AREA_TSUBO "Tsubo"
END
@@ -513,48 +515,48 @@ END
// TYPES OF CURRENCIES
STRINGTABLE DISCARDABLE
BEGIN
IDS_CURRENCY_AUSTRIAN_SCHILLING "<EFBFBD>iling autriac"
IDS_CURRENCY_AUSTRIAN_SCHILLING "Şiling autriac"
IDS_CURRENCY_BELGIAN_FRANC "Franc belgian"
IDS_CURRENCY_CYPRIOT_POUND "Lir<EFBFBD> cipriot<EFBFBD>"
IDS_CURRENCY_CZECH_KORUNA "Coroan<EFBFBD> ceh<EFBFBD>"
IDS_CURRENCY_DEUTSCHE_MARK "Marc<EFBFBD> nem<EFBFBD>easc<EFBFBD>"
IDS_CURRENCY_CYPRIOT_POUND "Liră cipriotă"
IDS_CURRENCY_CZECH_KORUNA "Coroană cehă"
IDS_CURRENCY_DEUTSCHE_MARK "Marcă nemțească"
IDS_CURRENCY_DUTCH_GUILDER "Guilder olandez"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Marc<EFBFBD> finlandez<EFBFBD>"
IDS_CURRENCY_FINNISH_MARKKA "Marcă finlandeză"
IDS_CURRENCY_FRENCH_FRANC "Franc framcez"
IDS_CURRENCY_GREEK_DRACHMA "Drahm<EFBFBD> greceasc<EFBFBD>"
IDS_CURRENCY_IRISH_POUND "Lir<EFBFBD> irlandez<EFBFBD>"
IDS_CURRENCY_ITALIAN_LIRA "Lir<EFBFBD> italian<EFBFBD>"
IDS_CURRENCY_GREEK_DRACHMA "Drahmă grecească"
IDS_CURRENCY_IRISH_POUND "Liră irlandeză"
IDS_CURRENCY_ITALIAN_LIRA "Liră italiană"
IDS_CURRENCY_LUXEMBOURG_FRANC "Franc luxemburghez"
IDS_CURRENCY_MALTESE_LIRA "Litr<EFBFBD> maltez<EFBFBD>"
IDS_CURRENCY_MALTESE_LIRA "Litră malteză"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Escudo portughez"
IDS_CURRENCY_SLOVAK_KORUNA "Coroan<EFBFBD> slovac<EFBFBD>"
IDS_CURRENCY_SLOVAK_KORUNA "Coroană slovacă"
IDS_CURRENCY_SLOVENIAN_TOLAR "Tolar sloven"
IDS_CURRENCY_SPANISH_PESETA "Peseta spaniol<EFBFBD>"
IDS_CURRENCY_SPANISH_PESETA "Peseta spaniolă"
END
// TYPES OF ENERGIES
STRINGTABLE DISCARDABLE
BEGIN
IDS_ENERGY_15_C_CALORIES "Calorii 15 <EFBFBD>C"
IDS_ENERGY_BTUS "Unit<EFBFBD><EFBFBD>i termale britanice"
IDS_ENERGY_15_C_CALORIES "Calorii 15 °C"
IDS_ENERGY_BTUS "Unități termale britanice"
IDS_ENERGY_ERGS "Ergs"
IDS_ENERGY_EVS "Electron-Vol<EFBFBD>i"
IDS_ENERGY_FOOT_POUNDS "Picioare-Livr<EFBFBD>"
IDS_ENERGY_IT_CALORIES "Calorii Tabel Interna<EFBFBD>ional"
IDS_ENERGY_IT_KILOCALORIES "Kilocalorii Tabel Interna<EFBFBD>ional"
IDS_ENERGY_EVS "Electron-Volți"
IDS_ENERGY_FOOT_POUNDS "Picioare-Livră"
IDS_ENERGY_IT_CALORIES "Calorii Tabel Internațional"
IDS_ENERGY_IT_KILOCALORIES "Kilocalorii Tabel Internațional"
IDS_ENERGY_JOULES "Jouli"
IDS_ENERGY_KILOJOULES "KiloJouli"
IDS_ENERGY_KILOWATT_HOURS "Kilowatt ore"
IDS_ENERGY_NUTRITION_CALORIES "Calorii nutri<EFBFBD>ie"
IDS_ENERGY_TH_CALORIES "Calorie termochimic<EFBFBD>"
IDS_ENERGY_NUTRITION_CALORIES "Calorii nutriție"
IDS_ENERGY_TH_CALORIES "Calorie termochimică"
END
// TYPES OF LENGTHS
STRINGTABLE DISCARDABLE
BEGIN
IDS_LENGTH_ANGSTROMS "Angstr<EFBFBD>ms"
IDS_LENGTH_ASTRONOMICAL_UNITS "Unit<EFBFBD><EFBFBD>i astronomice"
IDS_LENGTH_ANGSTROMS "Ångströms"
IDS_LENGTH_ASTRONOMICAL_UNITS "Unități astronomice"
IDS_LENGTH_BARLEYCORNS "Barleycorns"
IDS_LENGTH_CENTIMETERS "Centimetri"
IDS_LENGTH_CHAINS_UK "Chains (Marea Britanie)"
@@ -569,7 +571,7 @@ BEGIN
IDS_LENGTH_GAN "Gan"
IDS_LENGTH_HANDS "Hands"
IDS_LENGTH_HUNH "Hunh"
IDS_LENGTH_INCHES "Incii (<EFBFBD>oli)"
IDS_LENGTH_INCHES "Incii (țoli)"
IDS_LENGTH_JA "Ja"
IDS_LENGTH_JEONG "Jeong"
IDS_LENGTH_KABIET "Kabiet"
@@ -577,7 +579,7 @@ BEGIN
IDS_LENGTH_KEUB "Keub"
IDS_LENGTH_KILOMETERS "Kilometeri"
IDS_LENGTH_LAR "Lar"
IDS_LENGTH_LIGHT_YEARS "Ani lumin<EFBFBD>"
IDS_LENGTH_LIGHT_YEARS "Ani lumină"
IDS_LENGTH_LINKS_UK "Links (Marea Britanie)"
IDS_LENGTH_METERS "Metri"
IDS_LENGTH_MICRONS "Microni"
@@ -605,12 +607,12 @@ END
// TYPES OF POWERS
STRINGTABLE DISCARDABLE
BEGIN
IDS_POWER_BTUS_PER_MINUTE "Unit<EFBFBD><EFBFBD>i termice britanice pe minut"
IDS_POWER_BTUS_PER_MINUTE "Unități termice britanice pe minut"
IDS_POWER_FPS_PER_MINUTE "Picior-livre pe minut"
IDS_POWER_HORSEPOWER "Cai putere"
IDS_POWER_KILOWATTS "Kilowa<EFBFBD>i"
IDS_POWER_MEGAWATTS "Megawa<EFBFBD>i"
IDS_POWER_WATTS "Wa<EFBFBD>i"
IDS_POWER_KILOWATTS "Kilowați"
IDS_POWER_MEGAWATTS "Megawați"
IDS_POWER_WATTS "Wați"
END
// TYPE OF PRESSURES
@@ -620,9 +622,9 @@ BEGIN
IDS_PRESSURE_BARS "Bari"
IDS_PRESSURE_HECTOPASCALS "Hectopascali"
IDS_PRESSURE_KILOPASCALS "Kilopascali"
IDS_PRESSURE_MM_OF_MERCURY "Milimetri coloan<EFBFBD> de mercur"
IDS_PRESSURE_MM_OF_MERCURY "Milimetri coloană de mercur"
IDS_PRESSURE_PASCALS "Pascali"
IDS_PRESSURE_PSI "Livre-for<EFBFBD><EFBFBD> pe <EFBFBD>ol p<EFBFBD>trat"
IDS_PRESSURE_PSI "Livre-forță pe țol pătrat"
END
// TYPES OF TEMPERATURES
@@ -639,25 +641,26 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "Zile"
IDS_TIME_HOURS "Ore"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_MICROSECONDS "Microsecunde"
IDS_TIME_MILLISECONDS "Milisecunde"
IDS_TIME_MINUTES "Minute"
IDS_TIME_SECONDS "Secunde"
IDS_TIME_WEEKS "S<EFBFBD>pt<EFBFBD>m<EFBFBD>ni"
IDS_TIME_WEEKS "Săptămâni"
IDS_TIME_YEARS "Ani"
END
// TYPES OF VELOCITIES
STRINGTABLE DISCARDABLE
BEGIN
IDS_VELOCITY_CMS_SECOND "Centimetri/or<EFBFBD>"
IDS_VELOCITY_FEET_HOUR "Picioare/or<EFBFBD>"
IDS_VELOCITY_FEET_SECOND "Picioare/secund<EFBFBD>"
IDS_VELOCITY_CMS_SECOND "Centimetri/oră"
IDS_VELOCITY_FEET_HOUR "Picioare/oră"
IDS_VELOCITY_FEET_SECOND "Picioare/secundă"
IDS_VELOCITY_KILOMETERS_HOUR "Kilometri/ore"
IDS_VELOCITY_KNOTS "Nod"
IDS_VELOCITY_MACH "Mach"
IDS_VELOCITY_METERS_SECOND "Metri/secund<EFBFBD>"
IDS_VELOCITY_MILES_HOUR "Mile/or<EFBFBD>"
IDS_VELOCITY_METERS_SECOND "Metri/secundă"
IDS_VELOCITY_MILES_HOUR "Mile/oră"
END
// TYPES OF VOLUMES
@@ -670,7 +673,7 @@ BEGIN
IDS_VOLUME_BUSHELS_US "Bushels (SUA)"
IDS_VOLUME_CUBIC_CENTIMETERS "Centrimetri cubi"
IDS_VOLUME_CUBIC_FEET "Picioare^3"
IDS_VOLUME_CUBIC_INCHES "<EFBFBD>oli cubi"
IDS_VOLUME_CUBIC_INCHES "țoli cubi"
IDS_VOLUME_CUBIC_METERS "Metri cubi"
IDS_VOLUME_CUBIC_YARDS "Yarzi cubi"
IDS_VOLUME_DOE "Doe"
@@ -729,3 +732,5 @@ BEGIN
IDS_WEIGHT_TONS_UK "Tone (Marea Britanie)"
IDS_WEIGHT_TONS_US "Tone (SUA)"
END
#pragma code_page(default)

View File

@@ -639,6 +639,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "<22><><EFBFBD><EFBFBD>"
IDS_TIME_HOURS "<22><><EFBFBD>"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_MICROSECONDS "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
IDS_TIME_MILLISECONDS "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
IDS_TIME_MINUTES "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"

View File

@@ -1,10 +1,9 @@
/* TRANSLATOR : M<>rio Ka<4B>m<EFBFBD>r /Mario Kacmar/ aka Kario (kario@szm.sk)
* DATE OF TR.: 30-01-2008
* LAST CHANGE: 27-01-2009
* LAST CHANGE: 31-05-2010
* ---------------------------------------
* TODO:
* 1. treba usporiada<EFBFBD> jednotky pod<6F>a abecedy
* 2. pridanie naviga<67>n<EFBFBD>ch zna<6E>iek "&"
* pridanie naviga<67>n<EFBFBD>ch zna<6E>iek "&" ?
*/
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
@@ -445,30 +444,30 @@ BEGIN
IDS_QUICKHELP "R<>chla pomoc"
END
// types of conversion
// Types of conversion
STRINGTABLE DISCARDABLE
BEGIN
IDS_CONV_TIME "<22>as"
IDS_CONV_LENGTH "D<><44>ka"
IDS_CONV_ENERGY "Energia"
IDS_CONV_WEIGHT "Hmotnos<6F>"
IDS_CONV_CURRENCY "Mena"
IDS_CONV_VOLUME "Objem"
IDS_CONV_AREA "Plocha"
IDS_CONV_VELOCITY "R<>chlos<6F>"
IDS_CONV_CONSUMPTION "Spotreba motorov" //Spotreba (motory)
IDS_CONV_TEMPERATURE "Teplota"
IDS_CONV_PRESSURE "Tlak"
IDS_CONV_ANGLE "Uhol"
IDS_CONV_AREA "Plocha"
IDS_CONV_CONSUMPTION "Spotreba motorov" //Spotreba (motory)
IDS_CONV_CURRENCY "Mena"
IDS_CONV_ENERGY "Energia"
IDS_CONV_LENGTH "D<><44>ka"
IDS_CONV_POWER "V<>kon"
IDS_CONV_PRESSURE "Tlak"
IDS_CONV_TEMPERATURE "Teplota"
IDS_CONV_TIME "<22>as"
IDS_CONV_VELOCITY "R<>chlos<6F>"
IDS_CONV_VOLUME "Objem"
IDS_CONV_WEIGHT "Hmotnos<6F>"
END
// TYPES OF ANGLES
STRINGTABLE DISCARDABLE
BEGIN
IDS_ANGLE_DEGREES "Stupne"
IDS_ANGLE_GRADIANS "Grady"
IDS_ANGLE_RADIANS "Radi<64>ny"
IDS_ANGLE_DEGREES "Stupne"
END
// TYPES OF AREAS
@@ -522,24 +521,24 @@ END
// TYPES OF CURRENCIES
STRINGTABLE DISCARDABLE
BEGIN
IDS_CURRENCY_AUSTRIAN_SCHILLING "Rak<61>sky <20>iling"
IDS_CURRENCY_BELGIAN_FRANC "Belgick<63> frank"
IDS_CURRENCY_CYPRIOT_POUND "Cypersk<73> libra"
IDS_CURRENCY_CZECH_KORUNA "<22>esk<73> koruna"
IDS_CURRENCY_DEUTSCHE_MARK "Nemeck<63> marka"
IDS_CURRENCY_DUTCH_GUILDER "Holandsk<73> gulden"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Finsk<EFBFBD> marka"
IDS_CURRENCY_FINNISH_MARKKA "F<EFBFBD>nska marka"
IDS_CURRENCY_FRENCH_FRANC "Franc<6E>zsky frank"
IDS_CURRENCY_GREEK_DRACHMA "Gr<47>cka drachma"
IDS_CURRENCY_DUTCH_GUILDER "Holandsk<73> gulden"
IDS_CURRENCY_IRISH_POUND "Irish pound"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luxembourg franc"
IDS_CURRENCY_MALTESE_LIRA "Maltese lira"
IDS_CURRENCY_DEUTSCHE_MARK "Nemeck<63> marka"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portoguese escudo"
IDS_CURRENCY_AUSTRIAN_SCHILLING "Rak<61>zsky <20>iling"
IDS_CURRENCY_IRISH_POUND "<22>rska libra"
IDS_CURRENCY_ITALIAN_LIRA "Taliansk<73> l<>ra"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luxembursk<EFBFBD> frank"
IDS_CURRENCY_MALTESE_LIRA "Maltsk<EFBFBD> l<EFBFBD>ra"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portugalsk<73> escudo"
IDS_CURRENCY_SLOVAK_KORUNA "Slovensk<73> koruna"
IDS_CURRENCY_SLOVENIAN_TOLAR "Slovinsk<73> toliar"
IDS_CURRENCY_SPANISH_PESETA "<22>panielska peseta"
IDS_CURRENCY_ITALIAN_LIRA "Talianska l<>ra"
END
// TYPES OF ENERGIES
@@ -571,10 +570,14 @@ BEGIN
IDS_LENGTH_CHOU "Chou"
IDS_LENGTH_CHR "Chr"
IDS_LENGTH_CUN "Cun"
IDS_LENGTH_FATHOMS "Siahy"
IDS_LENGTH_FATHOMS_HUNGARY "Siahy (Ma<4D>arsko)"
IDS_LENGTH_FEET "Stopy"
IDS_LENGTH_FURLONGS "Furlongs"
IDS_LENGTH_GAN "Gan"
IDS_LENGTH_HANDS "Hands"
IDS_LENGTH_HUNH "Hunh"
IDS_LENGTH_INCHES "Palce"
IDS_LENGTH_JA "Ja"
IDS_LENGTH_JEONG "Jeong"
IDS_LENGTH_KABIET "Kabiet"
@@ -582,6 +585,7 @@ BEGIN
IDS_LENGTH_KEUB "Keub"
IDS_LENGTH_KILOMETERS "Kilometre"
IDS_LENGTH_LAR "Lar"
IDS_LENGTH_LIGHT_YEARS "Sveteln<6C> roky"
IDS_LENGTH_LINKS_UK "Links (UK)"
IDS_LENGTH_METERS "Metre"
IDS_LENGTH_MICRONS "Mikr<6B>ny"
@@ -589,7 +593,6 @@ BEGIN
IDS_LENGTH_MILLIMETERS "Milimetre"
IDS_LENGTH_NAUTICAL_MILES "N<>morn<72> m<>le"
IDS_LENGTH_NIEU "Nieu"
IDS_LENGTH_INCHES "Palce"
IDS_LENGTH_PARSECS "Parsecy"
IDS_LENGTH_PICAS "Picas"
IDS_LENGTH_RI_JAPAN "Ri (Japonsko)"
@@ -598,12 +601,8 @@ BEGIN
IDS_LENGTH_SAWK "Sawk"
IDS_LENGTH_SEN "Sen"
IDS_LENGTH_SHAKU "Shaku"
IDS_LENGTH_FATHOMS "Siahy"
IDS_LENGTH_FATHOMS_HUNGARY "Siahy (Ma<4D>arsko)"
IDS_LENGTH_SPAN "Span"
IDS_LENGTH_FEET "Stopy"
IDS_LENGTH_SUN "Sun"
IDS_LENGTH_LIGHT_YEARS "Sveteln<6C> roky"
IDS_LENGTH_TSUEN "Tsuen"
IDS_LENGTH_VA "Va"
IDS_LENGTH_YARDS "Yardy"
@@ -616,8 +615,8 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_POWER_BTUS_PER_MINUTE "Britsk<73> term<72>lne jednotky za min<69>tu"
IDS_POWER_FPS_PER_MINUTE "Foot-Pounds za min<69>tu"
IDS_POWER_KILOWATTS "Kilowatty"
IDS_POWER_HORSEPOWER "Ko<4B>sk<73> sily"
IDS_POWER_KILOWATTS "Kilowatty"
IDS_POWER_MEGAWATTS "Megawatty"
IDS_POWER_WATTS "Watty"
END
@@ -629,9 +628,9 @@ BEGIN
IDS_PRESSURE_BARS "Bary"
IDS_PRESSURE_HECTOPASCALS "Hektopascals"
IDS_PRESSURE_KILOPASCALS "Kilopascals"
IDS_PRESSURE_PSI "Libry na <20>tvorcov<6F> palec"
IDS_PRESSURE_MM_OF_MERCURY "Millimeters of mercury"
IDS_PRESSURE_PASCALS "Pascals"
IDS_PRESSURE_PSI "Libry na <20>tvorcov<6F> palec"
END
// TYPES OF TEMPERATURES
@@ -648,25 +647,26 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "Dni"
IDS_TIME_HOURS "Hodiny"
IDS_TIME_NANOSECONDS "Nanosekundy"
IDS_TIME_MICROSECONDS "Mikrosekundy"
IDS_TIME_MILLISECONDS "Milisekundy"
IDS_TIME_MINUTES "Min<69>ty"
IDS_TIME_YEARS "Roky"
IDS_TIME_SECONDS "Sekundy"
IDS_TIME_WEEKS "T<><54>dne"
IDS_TIME_YEARS "Roky"
END
// TYPES OF VELOCITIES
STRINGTABLE DISCARDABLE
BEGIN
IDS_VELOCITY_CMS_SECOND "Centimetre/hodinu"
IDS_VELOCITY_FEET_HOUR "Stopy/hodinu"
IDS_VELOCITY_FEET_SECOND "Stopy/sekundu"
IDS_VELOCITY_KILOMETERS_HOUR "Kilometre/hodinu"
IDS_VELOCITY_KNOTS "Knots"
IDS_VELOCITY_MACH "Mach"
IDS_VELOCITY_METERS_SECOND "Metre/sekundu"
IDS_VELOCITY_MILES_HOUR "M<>le/hodinu"
IDS_VELOCITY_FEET_HOUR "Stopy/hodinu"
IDS_VELOCITY_FEET_SECOND "Stopy/sekundu"
END
// TYPES OF VOLUMES
@@ -677,6 +677,11 @@ BEGIN
IDS_VOLUME_BUN "Bun"
IDS_VOLUME_BUSHELS_UK "Bu<42>ely (UK)" //Bu<42>el, Bu<42>le? Bu<42>ly?
IDS_VOLUME_BUSHELS_US "Bu<42>ely (USA)"
IDS_VOLUME_CUBIC_CENTIMETERS "Kubick<63> centimetre"
IDS_VOLUME_CUBIC_FEET "Kubick<63> stopy"
IDS_VOLUME_CUBIC_INCHES "Kubick<63> palce"
IDS_VOLUME_CUBIC_METERS "Kubick<63> metre"
IDS_VOLUME_CUBIC_YARDS "Kubick<63> yardy"
IDS_VOLUME_DOE "Doe"
IDS_VOLUME_FLUID_OUNCES_UK "Fluid ounces (UK)"
IDS_VOLUME_FLUID_OUNCES_US "Fluid ounces (USA)"
@@ -686,11 +691,6 @@ BEGIN
IDS_VOLUME_GOU "Gou"
IDS_VOLUME_HOP "Hop"
IDS_VOLUME_ICCE "Icce"
IDS_VOLUME_CUBIC_CENTIMETERS "Kubick<63> centimetre"
IDS_VOLUME_CUBIC_FEET "Kubick<63> stopy"
IDS_VOLUME_CUBIC_INCHES "Kubick<63> palce"
IDS_VOLUME_CUBIC_METERS "Kubick<63> metre"
IDS_VOLUME_CUBIC_YARDS "Kubick<63> yardy"
IDS_VOLUME_KWIAN "Kwian"
IDS_VOLUME_LITERS "Litre"
IDS_VOLUME_MAL "Mal"
@@ -712,7 +712,7 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_WEIGHT_BAHT "Baht"
IDS_WEIGHT_QUINTAL_METRIC "Cent (metrick<63>)"
IDS_WEIGHT_CARATS "Kar<61>ty"
IDS_WEIGHT_CHUNG "Chung"
IDS_WEIGHT_DON "Don"
IDS_WEIGHT_GEUN "Geun"
@@ -722,19 +722,19 @@ BEGIN
IDS_WEIGHT_JIN_CHINA "Jin (<28><>na)"
IDS_WEIGHT_JIN_TAIWAN "Jin (Tchajvan)"
IDS_WEIGHT_KAN "Kan"
IDS_WEIGHT_CARATS "Kar<61>ty"
IDS_WEIGHT_KILOGRAMS "Kilogramy"
IDS_WEIGHT_KIN "Kin"
IDS_WEIGHT_LIANG_CHINA "Liang (<28><>na)"
IDS_WEIGHT_LIANG_TAIWAN "Liang (Tchajvan)"
IDS_WEIGHT_POUNDS "Libry"
IDS_WEIGHT_MONME "Monme"
IDS_WEIGHT_OUNCES_AVOIRDUPOIS "Unce, anglosask<73>"
IDS_WEIGHT_OUNCES_TROY "Unce, tr<74>jska"
IDS_WEIGHT_POUNDS "Libry"
IDS_WEIGHT_QUINTAL_METRIC "Cent (metrick<63>)"
IDS_WEIGHT_SALOUNG "Saloung"
IDS_WEIGHT_STONES "Stones"
IDS_WEIGHT_TAMLUNG "Tamlung"
IDS_WEIGHT_TONNES "Tony"
IDS_WEIGHT_TONS_UK "Tony (UK)"
IDS_WEIGHT_TONS_US "Tony (USA)"
IDS_WEIGHT_OUNCES_AVOIRDUPOIS "Unce, anglosask<73>"
IDS_WEIGHT_OUNCES_TROY "Unce, tr<74>jska"
END

View File

@@ -644,6 +644,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "Days"
IDS_TIME_HOURS "Hours"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_MICROSECONDS "Microseconds"
IDS_TIME_MILLISECONDS "Milliseconds"
IDS_TIME_MINUTES "Minutes"

View File

@@ -647,6 +647,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "<22><><EFBFBD><EFBFBD>"
IDS_TIME_HOURS "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_MICROSECONDS "̳<><CCB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
IDS_TIME_MILLISECONDS "̳<><CCB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
IDS_TIME_MINUTES "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"

View File

@@ -276,10 +276,11 @@
#define IDS_TIME_HOURS 3002
#define IDS_TIME_MICROSECONDS 3003
#define IDS_TIME_MILLISECONDS 3004
#define IDS_TIME_MINUTES 3005
#define IDS_TIME_SECONDS 3006
#define IDS_TIME_WEEKS 3007
#define IDS_TIME_YEARS 3008
#define IDS_TIME_NANOSECONDS 3005
#define IDS_TIME_MINUTES 3006
#define IDS_TIME_SECONDS 3007
#define IDS_TIME_WEEKS 3008
#define IDS_TIME_YEARS 3009
/* TYPES OF VELOCITIES */
#define IDS_VELOCITY_CMS_SECOND 3100

View File

@@ -15,7 +15,7 @@
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <windows.h>

View File

@@ -2,7 +2,6 @@
void prepare_rpn_result_2(calc_number_t *rpn, TCHAR *buffer, int size, int base)
{
TCHAR *ptr, *dst;
calc_number_t tmp;
int width;
@@ -21,9 +20,12 @@ void prepare_rpn_result_2(calc_number_t *rpn, TCHAR *buffer, int size, int base)
/* calculate the width of integer number */
width = (rpn->f==0) ? 1 : (int)log10(fabs(rpn->f))+1;
if (calc.sci_out == TRUE || width > MAX_LD_WIDTH || width < -MAX_LD_WIDTH)
ptr = buffer + _stprintf(buffer, TEXT("%#le"), rpn->f);
_stprintf(buffer, TEXT("%#e"), rpn->f);
else {
ptr = buffer + _stprintf(buffer, TEXT("%#*.*lf"), width, ((MAX_LD_WIDTH-width-1)>=0) ? MAX_LD_WIDTH-width-1 : 0, rpn->f);
TCHAR *ptr, *dst;
ptr = buffer + _stprintf(buffer, TEXT("%#*.*f"), width, ((MAX_LD_WIDTH-width-1)>=0) ? MAX_LD_WIDTH-width-1 : 0, rpn->f);
/* format sring ensures there is a '.': */
dst = _tcschr(buffer, TEXT('.'));
while (--ptr > dst)
if (*ptr != TEXT('0'))

View File

@@ -861,18 +861,18 @@ static INT_PTR CALLBACK DlgStatProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
n = SendDlgItemMessage(hWnd, IDC_LIST_STAT, LB_GETCURSEL, 0, 0);
if (n == (DWORD)-1)
return TRUE;
PostMessage(GetParent(hWnd), WM_LOAD_STAT, (WPARAM)n, 0);
PostMessage(GetParent(hWnd), WM_LOAD_STAT, (WPARAM)n, 0);
return TRUE;
case IDC_BUTTON_CD:
n = SendDlgItemMessage(hWnd, IDC_LIST_STAT, LB_GETCURSEL, 0, 0);
if (n == (DWORD)-1)
return TRUE;
SendDlgItemMessage(hWnd, IDC_LIST_STAT, LB_DELETESTRING, (WPARAM)n, 0);
SendDlgItemMessage(hWnd, IDC_LIST_STAT, LB_DELETESTRING, (WPARAM)n, 0);
update_n_stats_items(hWnd, buffer);
delete_stat_item(n);
return TRUE;
case IDC_BUTTON_CAD:
SendDlgItemMessage(hWnd, IDC_LIST_STAT, LB_RESETCONTENT, 0, 0);
SendDlgItemMessage(hWnd, IDC_LIST_STAT, LB_RESETCONTENT, 0, 0);
clean_stat_list();
update_n_stats_items(hWnd, buffer);
return TRUE;
@@ -910,20 +910,20 @@ static WPARAM idm_2_idc(int idm)
static void CopyMemToClipboard(void *ptr)
{
if(OpenClipboard(NULL)) {
HGLOBAL clipbuffer;
TCHAR *buffer;
HGLOBAL clipbuffer;
TCHAR *buffer;
EmptyClipboard();
clipbuffer = GlobalAlloc(GMEM_DDESHARE, (_tcslen(ptr)+1)*sizeof(TCHAR));
buffer = (TCHAR *)GlobalLock(clipbuffer);
_tcscpy(buffer, ptr);
GlobalUnlock(clipbuffer);
EmptyClipboard();
clipbuffer = GlobalAlloc(GMEM_DDESHARE, (_tcslen(ptr)+1)*sizeof(TCHAR));
buffer = (TCHAR *)GlobalLock(clipbuffer);
_tcscpy(buffer, ptr);
GlobalUnlock(clipbuffer);
#ifdef UNICODE
SetClipboardData(CF_UNICODETEXT,clipbuffer);
SetClipboardData(CF_UNICODETEXT,clipbuffer);
#else
SetClipboardData(CF_TEXT,clipbuffer);
SetClipboardData(CF_TEXT,clipbuffer);
#endif
CloseClipboard();
CloseClipboard();
}
}
@@ -942,16 +942,16 @@ static char *ReadClipboard(void)
char *buffer = NULL;
if (OpenClipboard(NULL)) {
HANDLE hData = GetClipboardData(CF_TEXT);
HANDLE hData = GetClipboardData(CF_TEXT);
char *fromClipboard;
if (hData != NULL) {
fromClipboard = (char *)GlobalLock(hData);
if (strlen(fromClipboard))
buffer = _strupr(_strdup(fromClipboard));
GlobalUnlock( hData );
buffer = _strupr(_strdup(fromClipboard));
GlobalUnlock( hData );
}
CloseClipboard();
CloseClipboard();
}
return buffer;
}
@@ -1110,20 +1110,20 @@ static void handle_context_menu(HWND hWnd, WPARAM wp, LPARAM lp)
{
TCHAR text[64];
HMENU hMenu = CreatePopupMenu();
DWORD idm;
BOOL idm;
LoadString(calc.hInstance, IDS_QUICKHELP, text, SIZEOF(text));
AppendMenu(hMenu, MF_STRING | MF_ENABLED, IDM_HELP_HELP, text);
idm = (DWORD)TrackPopupMenu(hMenu,
TPM_LEFTALIGN | TPM_TOPALIGN | TPM_RETURNCMD | TPM_RIGHTBUTTON,
LOWORD(lp),
HIWORD(lp),
0,
hWnd,
NULL);
idm = TrackPopupMenu( hMenu,
TPM_LEFTALIGN | TPM_TOPALIGN | TPM_RETURNCMD | TPM_RIGHTBUTTON,
LOWORD(lp),
HIWORD(lp),
0,
hWnd,
NULL);
DestroyMenu(hMenu);
#ifndef DISABLE_HTMLHELP_SUPPORT
if (idm != 0) {
if (idm) {
HH_POPUP popup;
memset(&popup, 0, sizeof(popup));
@@ -1139,6 +1139,8 @@ static void handle_context_menu(HWND hWnd, WPARAM wp, LPARAM lp)
popup.idString = GetWindowLongPtr((HWND)wp, GWL_ID);
HtmlHelp((HWND)wp, HTMLHELP_PATH("/popups.txt"), HH_DISPLAY_TEXT_POPUP, (DWORD_PTR)&popup);
}
#else
(void)idm;
#endif
}

View File

@@ -1,85 +1,85 @@
/*
* PROJECT: ReactOS Character Map
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/charmap/about.c
* PURPOSE: about dialog
* COPYRIGHT: Copyright 2007 Ged Murphy <gedmurphy@reactos.org>
*
*/
#include <precomp.h>
static
INT_PTR
CALLBACK
AboutDialogProc(HWND hDlg,
UINT message,
WPARAM wParam,
LPARAM lParam)
{
static HICON hIcon = NULL;
switch (message)
{
case WM_INITDIALOG:
{
HWND hLicenseEditWnd;
WCHAR strLicense[700];
hIcon = LoadImageW(hInstance,
MAKEINTRESOURCEW(IDI_ICON),
IMAGE_ICON,
16,
16,
0);
if (hIcon)
{
SendMessageW(hDlg,
WM_SETICON,
ICON_SMALL,
(LPARAM)hIcon);
}
hLicenseEditWnd = GetDlgItem(hDlg,
IDC_LICENSE_EDIT);
if (LoadStringW(hInstance,
IDS_LICENSE,
strLicense,
sizeof(strLicense) / sizeof(WCHAR)))
{
SetWindowTextW(hLicenseEditWnd,
strLicense);
}
return TRUE;
}
case WM_COMMAND:
{
if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
{
DestroyIcon(hIcon);
EndDialog(hDlg,
LOWORD(wParam));
return TRUE;
}
break;
}
}
return FALSE;
}
VOID
ShowAboutDlg(HWND hWndParent)
{
DialogBoxW(hInstance,
MAKEINTRESOURCEW(IDD_ABOUTBOX),
hWndParent,
AboutDialogProc);
}
/*
* PROJECT: ReactOS Character Map
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/charmap/about.c
* PURPOSE: about dialog
* COPYRIGHT: Copyright 2007 Ged Murphy <gedmurphy@reactos.org>
*
*/
#include <precomp.h>
static
INT_PTR
CALLBACK
AboutDialogProc(HWND hDlg,
UINT message,
WPARAM wParam,
LPARAM lParam)
{
static HICON hIcon = NULL;
switch (message)
{
case WM_INITDIALOG:
{
HWND hLicenseEditWnd;
WCHAR strLicense[700];
hIcon = LoadImageW(hInstance,
MAKEINTRESOURCEW(IDI_ICON),
IMAGE_ICON,
16,
16,
0);
if (hIcon)
{
SendMessageW(hDlg,
WM_SETICON,
ICON_SMALL,
(LPARAM)hIcon);
}
hLicenseEditWnd = GetDlgItem(hDlg,
IDC_LICENSE_EDIT);
if (LoadStringW(hInstance,
IDS_LICENSE,
strLicense,
sizeof(strLicense) / sizeof(WCHAR)))
{
SetWindowTextW(hLicenseEditWnd,
strLicense);
}
return TRUE;
}
case WM_COMMAND:
{
if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
{
DestroyIcon(hIcon);
EndDialog(hDlg,
LOWORD(wParam));
return TRUE;
}
break;
}
}
return FALSE;
}
VOID
ShowAboutDlg(HWND hWndParent)
{
DialogBoxW(hInstance,
MAKEINTRESOURCEW(IDD_ABOUTBOX),
hWndParent,
AboutDialogProc);
}

View File

@@ -1,368 +1,368 @@
/*
* PROJECT: ReactOS Character Map
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/charmap/charmap.c
* PURPOSE: main dialog implementation
* COPYRIGHT: Copyright 2007 Ged Murphy <gedmurphy@reactos.org>
*
*/
#include <precomp.h>
#define ID_ABOUT 0x1
HINSTANCE hInstance;
/* Font-enumeration callback */
static
int
CALLBACK
EnumFontNames(ENUMLOGFONTEXW *lpelfe,
NEWTEXTMETRICEXW *lpntme,
DWORD FontType,
LPARAM lParam)
{
HWND hwndCombo = (HWND)lParam;
LPWSTR pszName = lpelfe->elfLogFont.lfFaceName;
/* make sure font doesn't already exist in our list */
if(SendMessageW(hwndCombo,
CB_FINDSTRING,
0,
(LPARAM)pszName) == CB_ERR)
{
INT idx;
BOOL fFixed;
BOOL fTrueType;
/* add the font */
idx = (INT)SendMessageW(hwndCombo,
CB_ADDSTRING,
0,
(LPARAM)pszName);
/* record the font's attributes (Fixedwidth and Truetype) */
fFixed = (lpelfe->elfLogFont.lfPitchAndFamily & FIXED_PITCH) ? TRUE : FALSE;
fTrueType = (lpelfe->elfLogFont.lfOutPrecision == OUT_STROKE_PRECIS) ? TRUE : FALSE;
/* store this information in the list-item's userdata area */
SendMessageW(hwndCombo,
CB_SETITEMDATA,
idx,
MAKEWPARAM(fFixed, fTrueType));
}
return 1;
}
/* Initialize the font-list by enumeration all system fonts */
static
VOID
FillFontStyleComboList(HWND hwndCombo)
{
HDC hdc;
LOGFONTW lf;
/* FIXME: for fun, draw each font in its own style */
HFONT hFont = GetStockObject(DEFAULT_GUI_FONT);
SendMessageW(hwndCombo,
WM_SETFONT,
(WPARAM)hFont,
0);
ZeroMemory(&lf, sizeof(lf));
lf.lfCharSet = DEFAULT_CHARSET;
hdc = GetDC(hwndCombo);
/* store the list of fonts in the combo */
EnumFontFamiliesExW(hdc,
&lf,
(FONTENUMPROCW)EnumFontNames,
(LPARAM)hwndCombo,
0);
ReleaseDC(hwndCombo,
hdc);
SendMessageW(hwndCombo,
CB_SETCURSEL,
0,
0);
}
static
VOID
ChangeMapFont(HWND hDlg)
{
HWND hCombo;
HWND hMap;
LPWSTR lpFontName;
INT Len;
hCombo = GetDlgItem(hDlg, IDC_FONTCOMBO);
Len = GetWindowTextLengthW(hCombo);
if (Len != 0)
{
lpFontName = HeapAlloc(GetProcessHeap(),
0,
(Len + 1) * sizeof(WCHAR));
if (lpFontName)
{
SendMessageW(hCombo,
WM_GETTEXT,
Len + 1,
(LPARAM)lpFontName);
hMap = GetDlgItem(hDlg, IDC_FONTMAP);
SendMessageW(hMap,
FM_SETFONT,
0,
(LPARAM)lpFontName);
}
HeapFree(GetProcessHeap(),
0,
lpFontName);
}
}
static
VOID
AddCharToSelection(HWND hText,
WCHAR ch)
{
LPWSTR lpText;
INT Len = GetWindowTextLength(hText);
if (Len != 0)
{
lpText = HeapAlloc(GetProcessHeap(),
0,
(Len + 2) * sizeof(WCHAR));
if (lpText)
{
LPWSTR lpStr = lpText;
SendMessageW(hText,
WM_GETTEXT,
Len + 1,
(LPARAM)lpStr);
lpStr += Len;
*lpStr = ch;
lpStr++;
*lpStr = L'\0';
SendMessageW(hText,
WM_SETTEXT,
0,
(LPARAM)lpText);
HeapFree(GetProcessHeap(),
0,
lpText);
}
}
else
{
WCHAR szText[2];
szText[0] = ch;
szText[1] = L'\0';
SendMessageW(hText,
WM_SETTEXT,
0,
(LPARAM)szText);
}
}
static
INT_PTR
CALLBACK
DlgProc(HWND hDlg,
UINT Message,
WPARAM wParam,
LPARAM lParam)
{
static HICON hSmIcon;
static HICON hBgIcon;
LPWSTR lpAboutText = NULL;
switch(Message)
{
case WM_INITDIALOG:
{
HMENU hSysMenu;
hSmIcon = LoadImageW(hInstance,
MAKEINTRESOURCEW(IDI_ICON),
IMAGE_ICON,
16,
16,
0);
if (hSmIcon)
{
SendMessageW(hDlg,
WM_SETICON,
ICON_SMALL,
(LPARAM)hSmIcon);
}
hBgIcon = LoadImageW(hInstance,
MAKEINTRESOURCEW(IDI_ICON),
IMAGE_ICON,
32,
32,
0);
if (hBgIcon)
{
SendMessageW(hDlg,
WM_SETICON,
ICON_BIG,
(LPARAM)hBgIcon);
}
FillFontStyleComboList(GetDlgItem(hDlg,
IDC_FONTCOMBO));
ChangeMapFont(hDlg);
hSysMenu = GetSystemMenu(hDlg,
FALSE);
if (hSysMenu != NULL)
{
if (LoadStringW(hInstance,
IDS_ABOUT,
lpAboutText,
0))
{
AppendMenuW(hSysMenu,
MF_SEPARATOR,
0,
NULL);
AppendMenuW(hSysMenu,
MF_STRING,
ID_ABOUT,
lpAboutText);
}
}
return TRUE;
}
case WM_COMMAND:
{
switch(LOWORD(wParam))
{
case IDC_FONTMAP:
{
switch (HIWORD(wParam))
{
case FM_SETCHAR:
AddCharToSelection(GetDlgItem(hDlg, IDC_TEXTBOX),
LOWORD(lParam));
break;
}
}
break;
case IDC_FONTCOMBO:
{
if (HIWORD(wParam) == CBN_SELCHANGE)
{
ChangeMapFont(hDlg);
}
}
break;
case IDC_SELECT:
{
WCHAR ch;
HWND hMap = GetDlgItem(hDlg, IDC_FONTMAP);
ch = (WCHAR) SendMessageW(hMap, FM_GETCHAR, 0, 0);
if (ch)
{
AddCharToSelection(GetDlgItem(hDlg, IDC_TEXTBOX),
ch);
}
break;
}
case IDOK:
if (hSmIcon)
DestroyIcon(hSmIcon);
if (hBgIcon)
DestroyIcon(hBgIcon);
EndDialog(hDlg, 0);
break;
}
}
break;
case WM_SYSCOMMAND:
{
switch(wParam)
{
case ID_ABOUT:
ShowAboutDlg(hDlg);
break;
}
}
break;
case WM_CLOSE:
if (hSmIcon)
DestroyIcon(hSmIcon);
if (hBgIcon)
DestroyIcon(hBgIcon);
EndDialog(hDlg, 0);
break;
default:
return FALSE;
}
return FALSE;
}
INT
WINAPI
wWinMain(HINSTANCE hInst,
HINSTANCE hPrev,
LPWSTR Cmd,
int iCmd)
{
INITCOMMONCONTROLSEX iccx;
INT Ret = 1;
hInstance = hInst;
iccx.dwSize = sizeof(INITCOMMONCONTROLSEX);
iccx.dwICC = ICC_TAB_CLASSES;
InitCommonControlsEx(&iccx);
if (RegisterMapClasses(hInstance))
{
Ret = DialogBoxW(hInstance,
MAKEINTRESOURCEW(IDD_CHARMAP),
NULL,
DlgProc) >= 0;
UnregisterMapClasses(hInstance);
}
return Ret;
}
/*
* PROJECT: ReactOS Character Map
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/charmap/charmap.c
* PURPOSE: main dialog implementation
* COPYRIGHT: Copyright 2007 Ged Murphy <gedmurphy@reactos.org>
*
*/
#include <precomp.h>
#define ID_ABOUT 0x1
HINSTANCE hInstance;
/* Font-enumeration callback */
static
int
CALLBACK
EnumFontNames(ENUMLOGFONTEXW *lpelfe,
NEWTEXTMETRICEXW *lpntme,
DWORD FontType,
LPARAM lParam)
{
HWND hwndCombo = (HWND)lParam;
LPWSTR pszName = lpelfe->elfLogFont.lfFaceName;
/* make sure font doesn't already exist in our list */
if(SendMessageW(hwndCombo,
CB_FINDSTRING,
0,
(LPARAM)pszName) == CB_ERR)
{
INT idx;
BOOL fFixed;
BOOL fTrueType;
/* add the font */
idx = (INT)SendMessageW(hwndCombo,
CB_ADDSTRING,
0,
(LPARAM)pszName);
/* record the font's attributes (Fixedwidth and Truetype) */
fFixed = (lpelfe->elfLogFont.lfPitchAndFamily & FIXED_PITCH) ? TRUE : FALSE;
fTrueType = (lpelfe->elfLogFont.lfOutPrecision == OUT_STROKE_PRECIS) ? TRUE : FALSE;
/* store this information in the list-item's userdata area */
SendMessageW(hwndCombo,
CB_SETITEMDATA,
idx,
MAKEWPARAM(fFixed, fTrueType));
}
return 1;
}
/* Initialize the font-list by enumeration all system fonts */
static
VOID
FillFontStyleComboList(HWND hwndCombo)
{
HDC hdc;
LOGFONTW lf;
/* FIXME: for fun, draw each font in its own style */
HFONT hFont = GetStockObject(DEFAULT_GUI_FONT);
SendMessageW(hwndCombo,
WM_SETFONT,
(WPARAM)hFont,
0);
ZeroMemory(&lf, sizeof(lf));
lf.lfCharSet = DEFAULT_CHARSET;
hdc = GetDC(hwndCombo);
/* store the list of fonts in the combo */
EnumFontFamiliesExW(hdc,
&lf,
(FONTENUMPROCW)EnumFontNames,
(LPARAM)hwndCombo,
0);
ReleaseDC(hwndCombo,
hdc);
SendMessageW(hwndCombo,
CB_SETCURSEL,
0,
0);
}
static
VOID
ChangeMapFont(HWND hDlg)
{
HWND hCombo;
HWND hMap;
LPWSTR lpFontName;
INT Len;
hCombo = GetDlgItem(hDlg, IDC_FONTCOMBO);
Len = GetWindowTextLengthW(hCombo);
if (Len != 0)
{
lpFontName = HeapAlloc(GetProcessHeap(),
0,
(Len + 1) * sizeof(WCHAR));
if (lpFontName)
{
SendMessageW(hCombo,
WM_GETTEXT,
Len + 1,
(LPARAM)lpFontName);
hMap = GetDlgItem(hDlg, IDC_FONTMAP);
SendMessageW(hMap,
FM_SETFONT,
0,
(LPARAM)lpFontName);
}
HeapFree(GetProcessHeap(),
0,
lpFontName);
}
}
static
VOID
AddCharToSelection(HWND hText,
WCHAR ch)
{
LPWSTR lpText;
INT Len = GetWindowTextLength(hText);
if (Len != 0)
{
lpText = HeapAlloc(GetProcessHeap(),
0,
(Len + 2) * sizeof(WCHAR));
if (lpText)
{
LPWSTR lpStr = lpText;
SendMessageW(hText,
WM_GETTEXT,
Len + 1,
(LPARAM)lpStr);
lpStr += Len;
*lpStr = ch;
lpStr++;
*lpStr = L'\0';
SendMessageW(hText,
WM_SETTEXT,
0,
(LPARAM)lpText);
HeapFree(GetProcessHeap(),
0,
lpText);
}
}
else
{
WCHAR szText[2];
szText[0] = ch;
szText[1] = L'\0';
SendMessageW(hText,
WM_SETTEXT,
0,
(LPARAM)szText);
}
}
static
INT_PTR
CALLBACK
DlgProc(HWND hDlg,
UINT Message,
WPARAM wParam,
LPARAM lParam)
{
static HICON hSmIcon;
static HICON hBgIcon;
LPWSTR lpAboutText = NULL;
switch(Message)
{
case WM_INITDIALOG:
{
HMENU hSysMenu;
hSmIcon = LoadImageW(hInstance,
MAKEINTRESOURCEW(IDI_ICON),
IMAGE_ICON,
16,
16,
0);
if (hSmIcon)
{
SendMessageW(hDlg,
WM_SETICON,
ICON_SMALL,
(LPARAM)hSmIcon);
}
hBgIcon = LoadImageW(hInstance,
MAKEINTRESOURCEW(IDI_ICON),
IMAGE_ICON,
32,
32,
0);
if (hBgIcon)
{
SendMessageW(hDlg,
WM_SETICON,
ICON_BIG,
(LPARAM)hBgIcon);
}
FillFontStyleComboList(GetDlgItem(hDlg,
IDC_FONTCOMBO));
ChangeMapFont(hDlg);
hSysMenu = GetSystemMenu(hDlg,
FALSE);
if (hSysMenu != NULL)
{
if (LoadStringW(hInstance,
IDS_ABOUT,
lpAboutText,
0))
{
AppendMenuW(hSysMenu,
MF_SEPARATOR,
0,
NULL);
AppendMenuW(hSysMenu,
MF_STRING,
ID_ABOUT,
lpAboutText);
}
}
return TRUE;
}
case WM_COMMAND:
{
switch(LOWORD(wParam))
{
case IDC_FONTMAP:
{
switch (HIWORD(wParam))
{
case FM_SETCHAR:
AddCharToSelection(GetDlgItem(hDlg, IDC_TEXTBOX),
LOWORD(lParam));
break;
}
}
break;
case IDC_FONTCOMBO:
{
if (HIWORD(wParam) == CBN_SELCHANGE)
{
ChangeMapFont(hDlg);
}
}
break;
case IDC_SELECT:
{
WCHAR ch;
HWND hMap = GetDlgItem(hDlg, IDC_FONTMAP);
ch = (WCHAR) SendMessageW(hMap, FM_GETCHAR, 0, 0);
if (ch)
{
AddCharToSelection(GetDlgItem(hDlg, IDC_TEXTBOX),
ch);
}
break;
}
case IDOK:
if (hSmIcon)
DestroyIcon(hSmIcon);
if (hBgIcon)
DestroyIcon(hBgIcon);
EndDialog(hDlg, 0);
break;
}
}
break;
case WM_SYSCOMMAND:
{
switch(wParam)
{
case ID_ABOUT:
ShowAboutDlg(hDlg);
break;
}
}
break;
case WM_CLOSE:
if (hSmIcon)
DestroyIcon(hSmIcon);
if (hBgIcon)
DestroyIcon(hBgIcon);
EndDialog(hDlg, 0);
break;
default:
return FALSE;
}
return FALSE;
}
INT
WINAPI
wWinMain(HINSTANCE hInst,
HINSTANCE hPrev,
LPWSTR Cmd,
int iCmd)
{
INITCOMMONCONTROLSEX iccx;
INT Ret = 1;
hInstance = hInst;
iccx.dwSize = sizeof(INITCOMMONCONTROLSEX);
iccx.dwICC = ICC_TAB_CLASSES;
InitCommonControlsEx(&iccx);
if (RegisterMapClasses(hInstance))
{
Ret = DialogBoxW(hInstance,
MAKEINTRESOURCEW(IDD_CHARMAP),
NULL,
DlgProc) >= 0;
UnregisterMapClasses(hInstance);
}
return Ret;
}

View File

@@ -1,17 +1,16 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<module name="charmap" type="win32gui" installbase="system32" installname="charmap.exe" unicode="yes">
<include base="charmap">.</include>
<library>gdi32</library>
<library>kernel32</library>
<library>user32</library>
<library>comctl32</library>
<compilationunit name="unit.c">
<file>about.c</file>
<file>charmap.c</file>
<file>lrgcell.c</file>
<file>map.c</file>
</compilationunit>
<file>charmap.rc</file>
<pch>precomp.h</pch>
</module>
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<module name="charmap" type="win32gui" installbase="system32" installname="charmap.exe" unicode="yes">
<include base="charmap">.</include>
<library>gdi32</library>
<library>user32</library>
<library>comctl32</library>
<compilationunit name="unit.c">
<file>about.c</file>
<file>charmap.c</file>
<file>lrgcell.c</file>
<file>map.c</file>
</compilationunit>
<file>charmap.rc</file>
<pch>precomp.h</pch>
</module>

View File

@@ -30,6 +30,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "&<26><>..."
END

View File

@@ -30,6 +30,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "&En quant a..."
END

View File

@@ -35,6 +35,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "&O programu..."
END

View File

@@ -30,6 +30,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "Dieses Programm ist kostenlos; Sie k<>nnen es frei verteilen mit od. ohne <20>nderungen unter der GNU Lesser General Public License wie es von der Free Software Foundation ver<65>ffentlicht wurde; entweder Version 2.1 der Lizenz, oder eine sp<73>tere Version (ihrer Wahl).\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE "Dieses Programm ist kostenlos; Sie k<>nnen es frei verteilen mit od. ohne <20>nderungen unter der GNU Lesser General Public License wie es von der Free Software Foundation ver<65>ffentlicht wurde; entweder Version 2.1 der Lizenz, oder eine sp<73>tere Version (ihrer Wahl).\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "<22>&ber..."
END

View File

@@ -32,6 +32,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>..."
END

View File

@@ -30,6 +30,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "A&bout..."
END

View File

@@ -30,6 +30,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "&Acerca de ..."
END

View File

@@ -30,6 +30,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier tout en respectant les termes de la ""GNU General Public License"" publi<6C>e par la Free Software Foundation; dans sa version 2 (ou selon votre pr<70>f<EFBFBD>rence) toute version ult<6C>rieure.\r\n\r\nCe programme est distribu<62> dans l'espoir qu'il sera utile, cependant SANS GARANTIE D'AUCUNE SORTE ; sans m<>me une garantie implicite de COMMERCIABILIT<49> ou DE CONFORMIT<49> <20> UNE UTILISATION PARTICULI<4C>RE. \r\n\r\nVoir la Licence Publique G<>n<EFBFBD>rale GNU pour plus de d<>tails. Vous devriez avoir re<72>u un exemplaire de la Licence Publique G<>n<EFBFBD>rale GNU avec ce programme ; si ce n'est pas le cas, <20>crivez <20> la Free Software Foundation Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE "Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier tout en respectant les termes de la ""GNU General Public License"" publi<6C>e par la Free Software Foundation; dans sa version 2 (ou selon votre pr<70>f<EFBFBD>rence) toute version ult<6C>rieure.\r\n\r\nCe programme est distribu<62> dans l'espoir qu'il sera utile, cependant SANS GARANTIE D'AUCUNE SORTE ; sans m<>me une garantie implicite de COMMERCIABILIT<49> ou DE CONFORMIT<49> <20> UNE UTILISATION PARTICULI<4C>RE. \r\n\r\nVoir la Licence Publique G<>n<EFBFBD>rale GNU pour plus de d<>tails. Vous devriez avoir re<72>u un exemplaire de la Licence Publique G<>n<EFBFBD>rale GNU avec ce programme ; si ce n'est pas le cas, <20>crivez <20> la Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "<22> propos..."
END

View File

@@ -30,6 +30,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "Program ini adalah software bebas; anda dapat mendistribusikan dan/atau mengubahnya di bawah term GNU General Public License seperti dipublikasikan oleh Free Software Foundation; baik Lisensi versi 2, atau (menurut opini anda) setiap versi berikutnya.\r\n\r\nProgram ini didistribusikan dengan harapan ia akan berguna, tetapi TANPA JAMINAN APAPUN; bahkan tanpa jaminan berarti dari MERCANTABILITAS atau KECUKUPAN UNTUK KEPERLUAN TERTENTU. Lihat GNU General Public License untuk lebih jelasnya.\r\n\r\nAnda seharusnya menerima duplikat GNU General Public License bersamaan dengan program ini; jika tidak, tulis ke Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE "Program ini adalah software bebas; anda dapat mendistribusikan dan/atau mengubahnya di bawah term GNU General Public License seperti dipublikasikan oleh Free Software Foundation; baik Lisensi versi 2, atau (menurut opini anda) setiap versi berikutnya.\r\n\r\nProgram ini didistribusikan dengan harapan ia akan berguna, tetapi TANPA JAMINAN APAPUN; bahkan tanpa jaminan berarti dari MERCANTABILITAS atau KECUKUPAN UNTUK KEPERLUAN TERTENTU. Lihat GNU General Public License untuk lebih jelasnya.\r\n\r\nAnda seharusnya menerima duplikat GNU General Public License bersamaan dengan program ini; jika tidak, tulis ke Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "Te&ntang..."
END

View File

@@ -30,6 +30,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE, "Questo programma <20> software libero; pu<70> redistribuirlo e/o modificarlo sotto\ni termini della licenza pubblica GNU come pubblicata dalla Free Software Foundation; sia la versione 2 sia una versione successiva (a sua scelta).\r\n\r\nQuesto programma <20> distribuito\nnella speranza che sia utile, ma SENZA ALCUNA GARANZIA; senza neanche la garanzia implicita\ndi NEGOZIABILITA' o APPLICABILITA' per un particolare scopo. Si veda la licenza generale pubblica GNU per maggiori dettagli.\r\n\r\nDovrebbe aver ricevuto una copia assieme a questo programma; se cos<6F> non fosse, scriva alla Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE, "Questo programma <20> software libero; pu<70> redistribuirlo e/o modificarlo sotto\ni termini della licenza pubblica GNU come pubblicata dalla Free Software Foundation; sia la versione 2 sia una versione successiva (a sua scelta).\r\n\r\nQuesto programma <20> distribuito\nnella speranza che sia utile, ma SENZA ALCUNA GARANZIA; senza neanche la garanzia implicita\ndi NEGOZIABILITA' o APPLICABILITA' per un particolare scopo. Si veda la licenza generale pubblica GNU per maggiori dettagli.\r\n\r\nDovrebbe aver ricevuto una copia assieme a questo programma; se cos<6F> non fosse, scriva alla Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "&Informazioni su..."
END

View File

@@ -0,0 +1,35 @@
LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT
IDD_CHARMAP DIALOGEX 6, 6, 293, 205 //233
CAPTION "<22><><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>[<5B>h<EFBFBD>\\"
FONT 9,"MS UI Gothic",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_VISIBLE | WS_SYSMENU | WS_MINIMIZEBOX
BEGIN
LTEXT "<22>t<EFBFBD>H<EFBFBD><48><EFBFBD>g:", IDC_STATIC, 6, 7, 24, 9
COMBOBOX IDC_FONTCOMBO, 36, 5, 210, 210, WS_CHILD | WS_VISIBLE | WS_VSCROLL | CBS_DROPDOWNLIST | CBS_SORT | CBS_HASSTRINGS
PUSHBUTTON "<22>w<EFBFBD><77><EFBFBD>v", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "<22>R<EFBFBD>s<EFBFBD>[<5B><><EFBFBD><EFBFBD><E995B6>:", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
DEFPUSHBUTTON "<22>I<EFBFBD><49>", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "<22>R<EFBFBD>s<EFBFBD>[", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "<22>ڍו\\<5C><>", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP
//EDITTEXT IDC_DISPLAY, 8, 217, 278, 13, WS_VISIBLE | WS_TABSTOP | ES_READONLY
END
IDD_ABOUTBOX DIALOGEX 22,16,210,182
CAPTION "<22><><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>[<5B>h<EFBFBD>\\<5C>ɂ‚<C982><C282><EFBFBD>"
FONT 9,"MS UI Gothic",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
LTEXT "<22><><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>[<5B>h<EFBFBD>\\ v0.1\nCopyright (C) 2007 Ged Murphy (gedmurphy@reactos.org)", IDC_STATIC, 48, 7, 150, 36
PUSHBUTTON "<22>‚<EFBFBD><C282><EFBFBD>", IDOK, 75, 162, 44, 15
ICON IDI_ICON, IDC_STATIC, 10, 10, 7, 30
EDITTEXT IDC_LICENSE_EDIT, 8, 44, 194, 107, WS_VISIBLE | WS_VSCROLL | WS_TABSTOP | ES_READONLY | ES_MULTILINE
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "<22>o<EFBFBD>[<5B>W<EFBFBD><57><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(&B)..."
END

View File

@@ -33,6 +33,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "<22><><EFBFBD><EFBFBD>(&A)"
END

View File

@@ -1,44 +1,44 @@
/*
* PROJECT: ReactOS Character Map
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/charmap/lang/lt-LT.rc
* PURPOSE: Lithuanian Language File
* TRANSLATOR: Vytis "CMan" Gird<72>ijauskas (cman@cman.us)
* DATE: 2007-09-23
*/
LANGUAGE LANG_LITHUANIAN, SUBLANG_DEFAULT
IDD_CHARMAP DIALOGEX 6, 6, 293, 205 //233
CAPTION "Simboli<6C> lentel<65>"
FONT 8,"MS Shell Dlg",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_VISIBLE | WS_SYSMENU | WS_MINIMIZEBOX
BEGIN
LTEXT "<22>riftas:", IDC_STATIC, 6, 7, 24, 9
COMBOBOX IDC_FONTCOMBO, 36, 5, 210, 210, WS_CHILD | WS_VISIBLE | WS_VSCROLL | CBS_DROPDOWNLIST | CBS_SORT | CBS_HASSTRINGS
PUSHBUTTON "Pagalba", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Simboliai kopijavimui:", IDC_STATIC, 6, 188, 72, 9
EDITTEXT IDC_TEXTBOX, 81, 186, 107, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
DEFPUSHBUTTON "Parinkti", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Kopijuoti", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Advanced view", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP
//EDITTEXT IDC_DISPLAY, 8, 217, 278, 13, WS_VISIBLE | WS_TABSTOP | ES_READONLY
END
IDD_ABOUTBOX DIALOGEX 22,16,210,182
CAPTION "Apie simboli<6C> lentel<65>"
FONT 8,"MS Shell Dlg",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
LTEXT "Simboli<6C> lentel<65> v0.1\n(C) 2007 Ged Murphy (gedmurphy@reactos.org)", IDC_STATIC, 48, 7, 150, 36
PUSHBUTTON "U<>verti", IDOK, 83, 161, 44, 15
ICON IDI_ICON, IDC_STATIC, 10, 10, 7, 30
EDITTEXT IDC_LICENSE_EDIT, 8, 44, 194, 107, WS_VISIBLE | WS_VSCROLL | WS_TABSTOP | ES_READONLY | ES_MULTILINE
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_ABOUT "&Apie..."
END
/*
* PROJECT: ReactOS Character Map
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/charmap/lang/lt-LT.rc
* PURPOSE: Lithuanian Language File
* TRANSLATOR: Vytis "CMan" Gird<72>ijauskas (cman@cman.us)
* DATE: 2007-09-23
*/
LANGUAGE LANG_LITHUANIAN, SUBLANG_DEFAULT
IDD_CHARMAP DIALOGEX 6, 6, 293, 205 //233
CAPTION "Simboli<6C> lentel<65>"
FONT 8,"MS Shell Dlg",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_VISIBLE | WS_SYSMENU | WS_MINIMIZEBOX
BEGIN
LTEXT "<22>riftas:", IDC_STATIC, 6, 7, 24, 9
COMBOBOX IDC_FONTCOMBO, 36, 5, 210, 210, WS_CHILD | WS_VISIBLE | WS_VSCROLL | CBS_DROPDOWNLIST | CBS_SORT | CBS_HASSTRINGS
PUSHBUTTON "Pagalba", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Simboliai kopijavimui:", IDC_STATIC, 6, 188, 72, 9
EDITTEXT IDC_TEXTBOX, 81, 186, 107, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
DEFPUSHBUTTON "Parinkti", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Kopijuoti", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Advanced view", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP
//EDITTEXT IDC_DISPLAY, 8, 217, 278, 13, WS_VISIBLE | WS_TABSTOP | ES_READONLY
END
IDD_ABOUTBOX DIALOGEX 22,16,210,182
CAPTION "Apie simboli<6C> lentel<65>"
FONT 8,"MS Shell Dlg",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
LTEXT "Simboli<6C> lentel<65> v0.1\n(C) 2007 Ged Murphy (gedmurphy@reactos.org)", IDC_STATIC, 48, 7, 150, 36
PUSHBUTTON "U<>verti", IDOK, 83, 161, 44, 15
ICON IDI_ICON, IDC_STATIC, 10, 10, 7, 30
EDITTEXT IDC_LICENSE_EDIT, 8, 44, 194, 107, WS_VISIBLE | WS_VSCROLL | WS_TABSTOP | ES_READONLY | ES_MULTILINE
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "&Apie..."
END

View File

@@ -30,6 +30,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "Over..."
END

View File

@@ -30,6 +30,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "Dette programmet er gratis programvare; du kan distribuere det og/eller endre det under betingelsene av GNU General Public License som er utgitt av Free Software Foundation; version 2 av lisensen, eller (etter din mening) alle senere versjoner.\r\n\r\nDette programmet er utgitt i h<>p for at det skal kunne brukes, men DET ER INGEN GARANTIER; uten heller forutsatt garantier av SALGBARHET eller SIKKETHET FOR EN ENKELTHET FORM<52>L. Se p<> GNU General Public Lisensen for mere detaljer.\r\n\r\nDu skal ha motatt en kopi av GNU General Public Lisensen sammen med denne programmet; hvis du ikke har motatt det, skriv til Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE "Dette programmet er gratis programvare; du kan distribuere det og/eller endre det under betingelsene av GNU General Public License som er utgitt av Free Software Foundation; version 2 av lisensen, eller (etter din mening) alle senere versjoner.\r\n\r\nDette programmet er utgitt i h<>p for at det skal kunne brukes, men DET ER INGEN GARANTIER; uten heller forutsatt garantier av SALGBARHET eller SIKKETHET FOR EN ENKELTHET FORM<52>L. Se p<> GNU General Public Lisensen for mere detaljer.\r\n\r\nDu skal ha motatt en kopi av GNU General Public Lisensen sammen med denne programmet; hvis du ikke har motatt det, skriv til Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "O&m..."
END

View File

@@ -3,6 +3,7 @@
* xxrogers@users.sourceforge.net
* https://sourceforge.net/projects/reactospl
*/
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
IDD_CHARMAP DIALOGEX 6, 6, 293, 205 //233
@@ -35,6 +36,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "Niniejszy program jest wolnym oprogramowaniem; mo<6D>esz go rozprowadza<7A> dalej i/lub modyfikowa<77> na warunkach Powszechnej Licencji Publicznej GNU, wydanej przez Fundacj<63> Wolnego Oprogramowania - wed<65>ug wersji 2 tej Licencji lub (wed<65>ug twojego wyboru) kt<6B>rej<65> z p<><70>niejszych wersji.\r\n\r\nNiniejszy program rozpowszechniany jest z nadziej<65>, i<> b<>dzie on u<>yteczny - jednak BEZ JAKIEJKOLWIEK GWARANCJI, nawet domy<6D>lnej gwarancji PRZYDATNO<4E>CI HANDLOWEJ albo PRZYDATNO<4E>CI DO OKRE<52>LONYCH ZASTOSOWA<57>. W celu uzyskania bli<6C>szych informacji si<73>gnij do Powszechnej Licencji Publicznej GNU.\r\n\r\nZ pewno<6E>ci<63> wraz z niniejszym programem otrzyma<6D>e<EFBFBD> te<74> egzemplarz Powszechnej Licencji Publicznej GNU (GNU General Public License); je<6A>li nie - napisz do Free Software Foundation, Inc., 59 Temple Place, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_LICENSE "Niniejszy program jest wolnym oprogramowaniem; mo<6D>esz go rozprowadza<7A> dalej i/lub modyfikowa<77> na warunkach Powszechnej Licencji Publicznej GNU, wydanej przez Fundacj<63> Wolnego Oprogramowania - wed<65>ug wersji 2 tej Licencji lub (wed<65>ug twojego wyboru) kt<6B>rej<65> z p<><70>niejszych wersji.\r\n\r\nNiniejszy program rozpowszechniany jest z nadziej<65>, i<> b<>dzie on u<>yteczny - jednak BEZ JAKIEJKOLWIEK GWARANCJI, nawet domy<6D>lnej gwarancji PRZYDATNO<4E>CI HANDLOWEJ albo PRZYDATNO<4E>CI DO OKRE<52>LONYCH ZASTOSOWA<57>. W celu uzyskania bli<6C>szych informacji si<73>gnij do Powszechnej Licencji Publicznej GNU.\r\n\r\nZ pewno<6E>ci<63> wraz z niniejszym programem otrzyma<6D>e<EFBFBD> te<74> egzemplarz Powszechnej Licencji Publicznej GNU (GNU General Public License); je<6A>li nie - napisz do Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "&O programie..."
END

View File

@@ -32,6 +32,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "<22><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>; <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> (<28><><EFBFBD>) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> GNU, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>; <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> (<28><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>.\r\n\r\n<><6E><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>, <20><><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> GNU.\r\n\r\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> GNU, <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Free Software Foundation, Inc.), 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE "<22><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>; <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> (<28><><EFBFBD>) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> GNU, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>; <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> (<28><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>.\r\n\r\n<><6E><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>, <20><><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> GNU.\r\n\r\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> GNU, <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Free Software Foundation, Inc.), 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "&<26> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>..."
END

View File

@@ -39,6 +39,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE, "Tento program je vo<76>n<EFBFBD> softv<74>r; m<><6D>ete ho <20><>ri<72> a/alebo modifikova<76> pod<6F>a podmienok GNU V<>eobecnej verejnej licencie (GNU General Public License) ako bola zverejnen<65> nad<61>ciou Free Software Foundation; bu<62> verzie 2 tejto licencie, alebo (pod<6F>a V<><56>ho uv<75><76>enia) niektorej neskor<6F>ej verzie.\r\n\r\nTento program je distribuovan<61> v n<>deji, <20>e bude u<>ito<74>n<EFBFBD>, av<61>ak BEZ AKEJKO<4B>VEK Z<>RUKY; rovnako bez z<>ruky PREDAJNOSTI alebo VHODNOSTI PRE UR<55>IT<49> <20><>EL. Pre viac detailov si pozrite GNU V<>eobecn<63> verejn<6A> licenciu (GNU General Public License).\r\n\r\nK<6E>piu V<>eobecnej verejnej licencie GNU ste mali dosta<74> spolu s t<>mto programom; ak nie, nap<61><70>te si o <20>u na Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_LICENSE, "Tento program je vo<76>n<EFBFBD> softv<74>r; m<><6D>ete ho <20><>ri<72> a/alebo modifikova<76> pod<6F>a podmienok GNU V<>eobecnej verejnej licencie (GNU General Public License) ako bola zverejnen<65> nad<61>ciou Free Software Foundation; bu<62> verzie 2 tejto licencie, alebo (pod<6F>a V<><56>ho uv<75><76>enia) niektorej neskor<6F>ej verzie.\r\n\r\nTento program je distribuovan<61> v n<>deji, <20>e bude u<>ito<74>n<EFBFBD>, av<61>ak BEZ AKEJKO<4B>VEK Z<>RUKY; rovnako bez z<>ruky PREDAJNOSTI alebo VHODNOSTI PRE UR<55>IT<49> <20><>EL. Pre viac detailov si pozrite GNU V<>eobecn<63> verejn<6A> licenciu (GNU General Public License).\r\n\r\nK<6E>piu V<>eobecnej verejnej licencie GNU ste mali dosta<74> spolu s t<>mto programom; ak nie, nap<61><70>te si o <20>u na Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "<22>&o je Mapa znakov"
END

View File

@@ -21,12 +21,12 @@ BEGIN
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
DEFPUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Advanced view", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP
//AUTOCHECKBOX "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP
//EDITTEXT IDC_DISPLAY, 8, 217, 278, 13, WS_VISIBLE | WS_TABSTOP | ES_READONLY
END
IDD_ABOUTBOX DIALOGEX 22,16,210,182
CAPTION "<22><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
CAPTION "<22><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>..."
FONT 8,"MS Shell Dlg",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
@@ -38,6 +38,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>; <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><> (<28><><EFBFBD>) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> ³<><C2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> GNU, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>; <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2 <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\r\n\r\n<><6E> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><>䳿 <20><> <20><>, <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ҳ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ҳ<EFBFBD><D2B2> <20><><EFBFBD><EFBFBD>Ҳ <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҳ <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> ³<><C2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> GNU.\r\n\r\n<><6E><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ³<><C2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> GNU. <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Free Software Foundation, Inc.), 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_ABOUT "&<26><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>..."
IDS_LICENSE "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>; <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> ³<><C2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> GNU, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>; <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2 <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\r\n\r\n<><6E> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><>䳿 <20><> <20><>, <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ҳ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ҳ<EFBFBD><D2B2> <20><><EFBFBD><EFBFBD>Ҳ <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҳ <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> ³<><C2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> GNU.\r\n\r\n<><6E><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ³<><C2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> GNU. <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Free Software Foundation, Inc.), 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "&<26><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>..."
END

View File

@@ -0,0 +1,37 @@
// Chinese (Simplified) language resource file (Elton Chung, elton328@gmail.com)
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
IDD_CHARMAP DIALOGEX 6, 6, 293, 205 //233
CAPTION "<22>ַ<EFBFBD><D6B7><EFBFBD>"
FONT 8,"MS Shell Dlg",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_VISIBLE | WS_SYSMENU | WS_MINIMIZEBOX
BEGIN
LTEXT "<22><><EFBFBD><EFBFBD>:", IDC_STATIC, 6, 7, 24, 9
COMBOBOX IDC_FONTCOMBO, 36, 5, 210, 210, WS_CHILD | WS_VISIBLE | WS_VSCROLL | CBS_DROPDOWNLIST | CBS_SORT | CBS_HASSTRINGS
PUSHBUTTON "˵<><CBB5>", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "<22><><EFBFBD><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5>ַ<EFBFBD>:", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
DEFPUSHBUTTON "ѡ<><D1A1>", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "<22><><EFBFBD><EFBFBD>", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Advanced view", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP
//EDITTEXT IDC_DISPLAY, 8, 217, 278, 13, WS_VISIBLE | WS_TABSTOP | ES_READONLY
END
IDD_ABOUTBOX DIALOGEX 22,16,210,182
CAPTION "<22><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>"
FONT 8,"MS Shell Dlg",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
LTEXT "<22>ַ<EFBFBD><D6B7><EFBFBD> v0.1\nCopyright (C) 2007 Ged Murphy (gedmurphy@reactos.org)", IDC_STATIC, 48, 7, 150, 36
PUSHBUTTON "<22>ر<EFBFBD>", IDOK, 75, 162, 44, 15
ICON IDI_ICON, IDC_STATIC, 10, 10, 7, 30
EDITTEXT IDC_LICENSE_EDIT, 8, 44, 194, 107, WS_VISIBLE | WS_VSCROLL | WS_TABSTOP | ES_READONLY | ES_MULTILINE
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_ABOUT "<22><><EFBFBD><EFBFBD>(&A)..."
END

View File

@@ -0,0 +1,37 @@
// Chinese (Traditional) language resource file (Elton Chung, elton328@gmail.com)
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
IDD_CHARMAP DIALOGEX 6, 6, 293, 205 //233
CAPTION "<22>r<EFBFBD>Ū<EFBFBD>"
FONT 8,"MS Shell Dlg",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_VISIBLE | WS_SYSMENU | WS_MINIMIZEBOX
BEGIN
LTEXT "<22>r<EFBFBD><72><EFBFBD>G", IDC_STATIC, 6, 7, 24, 9
COMBOBOX IDC_FONTCOMBO, 36, 5, 210, 210, WS_CHILD | WS_VISIBLE | WS_VSCROLL | CBS_DROPDOWNLIST | CBS_SORT | CBS_HASSTRINGS
PUSHBUTTON "<22><><EFBFBD><EFBFBD>", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "<22>ݽƻs<C6BB><73><EFBFBD>r<EFBFBD>šG", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
DEFPUSHBUTTON "<22><><EFBFBD><EFBFBD>", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "<22>ƻs", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Advanced view", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP
//EDITTEXT IDC_DISPLAY, 8, 217, 278, 13, WS_VISIBLE | WS_TABSTOP | ES_READONLY
END
IDD_ABOUTBOX DIALOGEX 22,16,210,182
CAPTION "<22><><EFBFBD><EFBFBD><EFBFBD>r<EFBFBD>Ū<EFBFBD>"
FONT 8,"MS Shell Dlg",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
LTEXT "<22>r<EFBFBD>Ū<EFBFBD> v0.1\nCopyright (C) 2007 Ged Murphy (gedmurphy@reactos.org)", IDC_STATIC, 48, 7, 150, 36
PUSHBUTTON "<22><><EFBFBD><EFBFBD>", IDOK, 75, 162, 44, 15
ICON IDI_ICON, IDC_STATIC, 10, 10, 7, 30
EDITTEXT IDC_LICENSE_EDIT, 8, 44, 194, 107, WS_VISIBLE | WS_VSCROLL | WS_TABSTOP | ES_READONLY | ES_MULTILINE
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
IDS_ABOUT "<22><><EFBFBD><EFBFBD>(&A)..."
END

View File

@@ -1,165 +1,165 @@
/*
* PROJECT: ReactOS Character Map
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/charmap/lrgcell.c
* PURPOSE: large cell window implementation
* COPYRIGHT: Copyright 2007 Ged Murphy <gedmurphy@reactos.org>
*
*/
#include <precomp.h>
static
HFONT
SetLrgFont(PMAP infoPtr)
{
LOGFONTW lf;
HFONT hFont = NULL;
HDC hdc;
HWND hCombo;
LPWSTR lpFontName;
INT Len;
hCombo = GetDlgItem(infoPtr->hParent,
IDC_FONTCOMBO);
Len = GetWindowTextLengthW(hCombo);
if (Len != 0)
{
lpFontName = HeapAlloc(GetProcessHeap(),
0,
(Len + 1) * sizeof(WCHAR));
if (lpFontName)
{
SendMessageW(hCombo,
WM_GETTEXT,
31,
(LPARAM)lpFontName);
ZeroMemory(&lf,
sizeof(lf));
hdc = GetDC(infoPtr->hLrgWnd);
lf.lfHeight = GetDeviceCaps(hdc,
LOGPIXELSY) / 2;
ReleaseDC(infoPtr->hLrgWnd,
hdc);
lf.lfCharSet = DEFAULT_CHARSET;
wcscpy(lf.lfFaceName,
lpFontName);
hFont = CreateFontIndirectW(&lf);
HeapFree(GetProcessHeap(),
0,
lpFontName);
}
}
return hFont;
}
LRESULT CALLBACK
LrgCellWndProc(HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
PMAP infoPtr;
LRESULT Ret = 0;
static INT cxClient, cyClient;
static RECT rc;
static HFONT hFont = NULL;
infoPtr = (PMAP)GetWindowLongPtrW(hwnd,
GWLP_USERDATA);
if (infoPtr == NULL && uMsg != WM_CREATE)
{
goto HandleDefaultMessage;
}
switch (uMsg)
{
case WM_CREATE:
{
infoPtr = (PMAP)(((LPCREATESTRUCTW)lParam)->lpCreateParams);
SetWindowLongPtrW(hwnd,
GWLP_USERDATA,
(LONG_PTR)infoPtr);
hFont = SetLrgFont(infoPtr);
break;
}
case WM_SIZE:
{
cxClient = LOWORD(lParam);
cyClient = HIWORD(lParam);
rc.left = 0;
rc.top = 0;
rc.right = cxClient;
rc.bottom = cyClient;
break;
}
case WM_PAINT:
{
PAINTSTRUCT ps;
HDC hdc;
HFONT hOldFont;
hdc = BeginPaint(hwnd,
&ps);
Rectangle(hdc,
0,
0,
cxClient,
cyClient);
hOldFont = SelectObject(hdc, hFont);
DrawTextW(hdc,
&infoPtr->pActiveCell->ch,
1,
&rc,
DT_CENTER | DT_VCENTER | DT_SINGLELINE);
SelectObject(hdc, hOldFont);
EndPaint(hwnd,
&ps);
break;
}
case WM_DESTROY:
{
DeleteObject(hFont);
break;
}
default:
{
HandleDefaultMessage:
Ret = DefWindowProcW(hwnd,
uMsg,
wParam,
lParam);
break;
}
}
return Ret;
}
/*
* PROJECT: ReactOS Character Map
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/charmap/lrgcell.c
* PURPOSE: large cell window implementation
* COPYRIGHT: Copyright 2007 Ged Murphy <gedmurphy@reactos.org>
*
*/
#include <precomp.h>
static
HFONT
SetLrgFont(PMAP infoPtr)
{
LOGFONTW lf;
HFONT hFont = NULL;
HDC hdc;
HWND hCombo;
LPWSTR lpFontName;
INT Len;
hCombo = GetDlgItem(infoPtr->hParent,
IDC_FONTCOMBO);
Len = GetWindowTextLengthW(hCombo);
if (Len != 0)
{
lpFontName = HeapAlloc(GetProcessHeap(),
0,
(Len + 1) * sizeof(WCHAR));
if (lpFontName)
{
SendMessageW(hCombo,
WM_GETTEXT,
31,
(LPARAM)lpFontName);
ZeroMemory(&lf,
sizeof(lf));
hdc = GetDC(infoPtr->hLrgWnd);
lf.lfHeight = GetDeviceCaps(hdc,
LOGPIXELSY) / 2;
ReleaseDC(infoPtr->hLrgWnd,
hdc);
lf.lfCharSet = DEFAULT_CHARSET;
wcscpy(lf.lfFaceName,
lpFontName);
hFont = CreateFontIndirectW(&lf);
HeapFree(GetProcessHeap(),
0,
lpFontName);
}
}
return hFont;
}
LRESULT CALLBACK
LrgCellWndProc(HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
PMAP infoPtr;
LRESULT Ret = 0;
static INT cxClient, cyClient;
static RECT rc;
static HFONT hFont = NULL;
infoPtr = (PMAP)GetWindowLongPtrW(hwnd,
GWLP_USERDATA);
if (infoPtr == NULL && uMsg != WM_CREATE)
{
goto HandleDefaultMessage;
}
switch (uMsg)
{
case WM_CREATE:
{
infoPtr = (PMAP)(((LPCREATESTRUCTW)lParam)->lpCreateParams);
SetWindowLongPtrW(hwnd,
GWLP_USERDATA,
(LONG_PTR)infoPtr);
hFont = SetLrgFont(infoPtr);
break;
}
case WM_SIZE:
{
cxClient = LOWORD(lParam);
cyClient = HIWORD(lParam);
rc.left = 0;
rc.top = 0;
rc.right = cxClient;
rc.bottom = cyClient;
break;
}
case WM_PAINT:
{
PAINTSTRUCT ps;
HDC hdc;
HFONT hOldFont;
hdc = BeginPaint(hwnd,
&ps);
Rectangle(hdc,
0,
0,
cxClient,
cyClient);
hOldFont = SelectObject(hdc, hFont);
DrawTextW(hdc,
&infoPtr->pActiveCell->ch,
1,
&rc,
DT_CENTER | DT_VCENTER | DT_SINGLELINE);
SelectObject(hdc, hOldFont);
EndPaint(hwnd,
&ps);
break;
}
case WM_DESTROY:
{
DeleteObject(hFont);
break;
}
default:
{
HandleDefaultMessage:
Ret = DefWindowProcW(hwnd,
uMsg,
wParam,
lParam);
break;
}
}
return Ret;
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,57 +1,57 @@
#ifndef __CHARMAP_PRECOMP_H
#define __CHARMAP_PRECOMP_H
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <commctrl.h>
#include "resource.h"
#define XCELLS 20
#define YCELLS 10
#define XLARGE 45
#define YLARGE 25
#define FM_SETFONT (WM_USER + 1)
#define FM_GETCHAR (WM_USER + 2)
#define FM_SETCHAR (WM_USER + 3)
extern HINSTANCE hInstance;
typedef struct _CELL
{
RECT CellExt;
RECT CellInt;
BOOL bActive;
BOOL bLarge;
WCHAR ch;
} CELL, *PCELL;
typedef struct _MAP
{
HWND hMapWnd;
HWND hParent;
HWND hLrgWnd;
SIZE ClientSize;
SIZE CellSize;
CELL Cells[YCELLS][XCELLS];
PCELL pActiveCell;
HFONT hFont;
LOGFONTW CurrentFont;
INT iYStart;
} MAP, *PMAP;
typedef struct {
NMHDR hdr;
WCHAR ch;
} MAPNOTIFY, *LPMAPNOTIFY;
LRESULT CALLBACK LrgCellWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
VOID ShowAboutDlg(HWND hWndParent);
BOOL RegisterMapClasses(HINSTANCE hInstance);
VOID UnregisterMapClasses(HINSTANCE hInstance);
#endif /* __CHARMAP_PRECOMP_H */
#ifndef __CHARMAP_PRECOMP_H
#define __CHARMAP_PRECOMP_H
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <commctrl.h>
#include "resource.h"
#define XCELLS 20
#define YCELLS 10
#define XLARGE 45
#define YLARGE 25
#define FM_SETFONT (WM_USER + 1)
#define FM_GETCHAR (WM_USER + 2)
#define FM_SETCHAR (WM_USER + 3)
extern HINSTANCE hInstance;
typedef struct _CELL
{
RECT CellExt;
RECT CellInt;
BOOL bActive;
BOOL bLarge;
WCHAR ch;
} CELL, *PCELL;
typedef struct _MAP
{
HWND hMapWnd;
HWND hParent;
HWND hLrgWnd;
SIZE ClientSize;
SIZE CellSize;
CELL Cells[YCELLS][XCELLS];
PCELL pActiveCell;
HFONT hFont;
LOGFONTW CurrentFont;
INT iYStart;
} MAP, *PMAP;
typedef struct {
NMHDR hdr;
WCHAR ch;
} MAPNOTIFY, *LPMAPNOTIFY;
LRESULT CALLBACK LrgCellWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
VOID ShowAboutDlg(HWND hWndParent);
BOOL RegisterMapClasses(HINSTANCE hInstance);
VOID UnregisterMapClasses(HINSTANCE hInstance);
#endif /* __CHARMAP_PRECOMP_H */

View File

@@ -1,19 +1,19 @@
#define IDC_STATIC -1
#define IDI_ICON 100
#define IDD_CHARMAP 200
#define IDD_ABOUTBOX 201
#define IDC_FONTCOMBO 1001
#define IDC_CMHELP 1002
#define IDC_FONTMAP 1003
#define IDC_TEXTBOX 1004
#define IDC_SELECT 1005
#define IDC_COPY 1006
#define IDC_ADVVIEW 1007
#define IDC_DISPLAY 1008
#define IDC_LICENSE_EDIT 1009
#define IDS_LICENSE 1010
#define IDS_ABOUT 1011
#define IDC_STATIC -1
#define IDI_ICON 100
#define IDD_CHARMAP 200
#define IDD_ABOUTBOX 201
#define IDC_FONTCOMBO 1001
#define IDC_CMHELP 1002
#define IDC_FONTMAP 1003
#define IDC_TEXTBOX 1004
#define IDC_SELECT 1005
#define IDC_COPY 1006
#define IDC_ADVVIEW 1007
#define IDC_DISPLAY 1008
#define IDC_LICENSE_EDIT 1009
#define IDS_LICENSE 1010
#define IDS_ABOUT 1011

View File

@@ -8,19 +8,22 @@ IDI_ICON ICON "res/charmap.ico"
#include "lang/bg-BG.rc"
#include "lang/ca-ES.rc"
#include "lang/cs-CZ.rc"
#include "lang/en-US.rc"
#include "lang/de-DE.rc"
#include "lang/el-GR.rc"
#include "lang/en-US.rc"
#include "lang/es-ES.rc"
#include "lang/fr-FR.rc"
#include "lang/id-ID.rc"
#include "lang/it-IT.rc"
#include "lang/ja-JP.rc"
#include "lang/ko-KR.rc"
#include "lang/lt-LT.rc"
#include "lang/no-NO.rc"
#include "lang/nl-NL.rc"
#include "lang/no-NO.rc"
#include "lang/pl-PL.rc"
#include "lang/pt-BR.rc"
#include "lang/ru-RU.rc"
#include "lang/sk-SK.rc"
#include "lang/uk-UA.rc"
#include "lang/ru-RU.rc"
#include "lang/el-GR.rc"
#include "lang/zh-CN.rc"
#include "lang/zh-TW.rc"

View File

@@ -19,6 +19,9 @@
<directory name="more">
<xi:include href="more/more.rbuild" />
</directory>
<directory name="reg">
<xi:include href="reg/reg.rbuild" />
</directory>
<directory name="xcopy">
<xi:include href="xcopy/xcopy.rbuild" />
</directory>

View File

@@ -35,6 +35,7 @@ int _tmain(int argc, TCHAR ** argv)
{
char psBuffer[128];
char psBuffer2[128];
char *nlptr2;
char cmd[255];
char test[300];
FILE *pPipe;
@@ -60,7 +61,7 @@ int _tmain(int argc, TCHAR ** argv)
{
while(fgets(psBuffer2, 128, pPipe2))
{
char *nlptr2 = strchr(psBuffer2, '\n');
nlptr2 = strchr(psBuffer2, '\n');
if (nlptr2)
*nlptr2 = '\0';
puts(psBuffer2);

View File

@@ -1,6 +1,5 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd">
<module name="dbgprint" type="win32cui" installbase="system32" installname="dbgprint.exe">
<library>kernel32</library>
<file>dbgprint.c</file>
</module>
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd">
<module name="dbgprint" type="win32cui" installbase="system32" installname="dbgprint.exe">
<file>dbgprint.c</file>
</module>

View File

@@ -19,15 +19,27 @@ static VOID SetInsert(DWORD dwFlag)
static VOID PrintHistory(VOID)
{
DWORD Length = GetConsoleCommandHistoryLength(pszExeName);
DWORD BufferLength;
PBYTE HistBuf;
TCHAR *Hist;
TCHAR *HistEnd;
/* On Windows, the ANSI version of GetConsoleCommandHistory requires
* a buffer twice as large as the actual history length. */
BYTE HistBuf[Length * (sizeof(WCHAR) / sizeof(TCHAR))];
TCHAR *Hist = (TCHAR *)HistBuf;
TCHAR *HistEnd = (TCHAR *)&HistBuf[Length];
BufferLength = Length * (sizeof(WCHAR) / sizeof(TCHAR)) * sizeof(BYTE);
if (GetConsoleCommandHistory(Hist, sizeof HistBuf, pszExeName))
HistBuf = HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY,
BufferLength);
if (!HistBuf) return;
Hist = (TCHAR *)HistBuf;
HistEnd = (TCHAR *)&HistBuf[Length];
if (GetConsoleCommandHistory(Hist, BufferLength, pszExeName))
for (; Hist < HistEnd; Hist += _tcslen(Hist) + 1)
_tprintf(_T("%s\n"), Hist);
HeapFree(GetProcessHeap(), 0, HistBuf);
}
static INT SetMacro(LPTSTR definition)
@@ -65,23 +77,39 @@ static INT SetMacro(LPTSTR definition)
static VOID PrintMacros(LPTSTR pszExeName, LPTSTR Indent)
{
DWORD Length = GetConsoleAliasesLength(pszExeName);
BYTE AliasBuf[Length];
TCHAR *Alias = (TCHAR *)AliasBuf;
TCHAR *AliasEnd = (TCHAR *)&AliasBuf[Length];
PBYTE AliasBuf;
TCHAR *Alias;
TCHAR *AliasEnd;
if (GetConsoleAliases(Alias, sizeof AliasBuf, pszExeName))
AliasBuf = HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY,
Length * sizeof(BYTE));
if (!AliasBuf) return;
Alias = (TCHAR *)AliasBuf;
AliasEnd = (TCHAR *)&AliasBuf[Length];
if (GetConsoleAliases(Alias, Length * sizeof(BYTE), pszExeName))
for (; Alias < AliasEnd; Alias += _tcslen(Alias) + 1)
_tprintf(_T("%s%s\n"), Indent, Alias);
HeapFree(GetProcessHeap(), 0, AliasBuf);
}
static VOID PrintAllMacros(VOID)
{
DWORD Length = GetConsoleAliasExesLength();
BYTE ExeNameBuf[Length];
TCHAR *ExeName = (TCHAR *)ExeNameBuf;
TCHAR *ExeNameEnd = (TCHAR *)&ExeNameBuf[Length];
PBYTE ExeNameBuf;
TCHAR *ExeName;
TCHAR *ExeNameEnd;
if (GetConsoleAliasExes(ExeName, sizeof ExeNameBuf))
ExeNameBuf = HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY,
Length * sizeof(BYTE));
if (!ExeNameBuf) return;
ExeName = (TCHAR *)ExeNameBuf;
ExeNameEnd = (TCHAR *)&ExeNameBuf[Length];
if (GetConsoleAliasExes(ExeName, Length * sizeof(BYTE)))
{
for (; ExeName < ExeNameEnd; ExeName += _tcslen(ExeName) + 1)
{
@@ -90,6 +118,8 @@ static VOID PrintAllMacros(VOID)
_tprintf(_T("\n"));
}
}
HeapFree(GetProcessHeap(), 0, ExeNameBuf);
}
static VOID ReadFromFile(LPTSTR param)

View File

@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd">
<module name="doskey" type="win32cui" installbase="system32" installname="doskey.exe" unicode="yes">
<library>kernel32</library>
<library>user32</library>
<file>doskey.c</file>
<file>doskey.rc</file>

View File

@@ -5,4 +5,8 @@
#include <windows.h>
#include "doskey.h"
#include "lang/bg-BG.rc"
#include "lang/de-DE.rc"
#include "lang/en-US.rc"
#include "lang/uk-UA.rc"

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
BEGIN
IDS_HELP, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
\n\
DOSKEY [/INSERT | /OVERSTRIKE] [/EXENAME=exe] [/HISTORY] [/LISTSIZE=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]\n\
[/REINSTALL] [/MACROS[:exe | :ALL]] [/MACROFILE=<3D><><EFBFBD><EFBFBD>] [macroname=[<5B><><EFBFBD><EFBFBD><EFBFBD>]]\n\
\n\
/INSERT <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/OVERSTRIKE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/EXENAME=<3D><><EFBFBD><EFBFBD><EFBFBD>exe <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
<20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> cmd.exe.\n\
/HISTORY <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/LISTSIZE=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/REINSTALL <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/MACROS <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/MACROS:<3A><><EFBFBD><EFBFBD><EFBFBD>exe <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/MACROS:ALL <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/MACROFILE=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>.\n\
macroname <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
text <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n"
IDS_INVALID_MACRO_DEF, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>: %s\n"
END

View File

@@ -0,0 +1,28 @@
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE
BEGIN
IDS_HELP, "Verwaltet Einstellungen, Verlauf und Makros der Kommandozeile.\n\
\n\
DOSKEY [/INSERT | /OVERSTRIKE] [/EXENAME=exe] [/HISTORY] [/LISTSIZE=size]\n\
[/REINSTALL] [/MACROS[:exe | :ALL]] [/MACROFILE=file] [macroname=[text]]\n\
\n\
/INSERT Aktiviert den Einfügemodus.\n\
/OVERSTRIKE Deaktiviert den Einfügemodus.\n\
/EXENAME=exename Legt den Namen der Anwendung, auf die die Einstel-\n\
lungen angewendet werden sollen, fest. Der Standard-\n\
wert ist cmd.exe.\n\
/HISTORY Zeigt den Befehlsverlauf an.\n\
/LISTSIZE=size Legt die Anzahl der Befehle per Verlaufspuffer fest.\n\
/REINSTALL Leert den Befehlsverlauf.\n\
/MACROS Zeigt Makrodefinitionen an.\n\
/MACROS:exename Zeigt Makrodefinitionen für eine Anwendung an.\n\
/MACROS:ALL Zeigt Makrodefinitionen für alle Anwendungen an.\n\
/MACROFILE=file Lädt Makrodefinitionen aus einer Datei.\n\
macroname Legt den Namen eines zu erstellenden Makros fest.\n\
text Legt den ersetzenden Text des Makros fest.\n"
IDS_INVALID_MACRO_DEF, "Ungültige Makrodefinition: %s\n"
END

View File

@@ -18,7 +18,7 @@ DOSKEY [/INSERT | /OVERSTRIKE] [/EXENAME=exe] [/HISTORY] [/LISTSIZE=size]\n\
/MACROS Displays macro definitions.\n\
/MACROS:exename Displays macro definitions for a specific program.\n\
/MACROS:ALL Displays macro definitions for all programs.\n\
/MACROFILE=filename Loads macro definitions from a file.\n\
/MACROFILE=file Loads macro definitions from a file.\n\
macroname Specifies the name of a macro to create.\n\
text Specifies the replacement text for the macro.\n"

View File

@@ -0,0 +1,35 @@
/*
* PROJECT: ReactOS DOSKey
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/cmdutils/doskey/lang/uk-UA.rc
* PURPOSE: Ukraianian Language File for ReactOS DOSKey
* TRANSLATOR: Sakara Yevhen
*/
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
BEGIN
IDS_HELP, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
\n\
DOSKEY [/INSERT | /OVERSTRIKE] [/EXENAME=exe] [/HISTORY] [/LISTSIZE=size]\n\
[/REINSTALL] [/MACROS[:exe | :ALL]] [/MACROFILE=file] [macroname=[text]]\n\
\n\
/INSERT <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/OVERSTRIKE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/EXENAME=exename <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>'<27> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
<20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> cmd.exe.\n\
/HISTORY ³<><C2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/LISTSIZE=size <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/REINSTALL <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/MACROS ³<><C2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/MACROS:exename ³<><C2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/MACROS:ALL ³<><C2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/MACROFILE=filename <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>.\n\
macroname <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>'<27> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
text <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n"
IDS_INVALID_MACRO_DEF, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: %s\n"
END

View File

@@ -15,9 +15,9 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

View File

@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd">
<module name="find" type="win32cui" installbase="system32" installname="find.exe">
<library>kernel32</library>
<library>user32</library>
<file>find.c</file>
<file>find.rc</file>

View File

@@ -1,17 +1,17 @@
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Visualizza le linee di un file che contengono un stringa.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"stringa\" [ file... ]\n\
/C Conta il numero di linee che contengono la stringa\n\
/I Ignora maiuscole/minuscole\n\
/N Numera le linee visualizzate a partire da 1\n\
/V Visualizza le linee che non contengono la stringa"
IDS_NO_SUCH_FILE, "FIND: %s: File non trovato\n"
IDS_CANNOT_OPEN, "FIND: %s: Impossibile aprire il file\n"
END
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Visualizza le linee di un file che contengono un stringa.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"stringa\" [ file... ]\n\
/C Conta il numero di linee che contengono la stringa\n\
/I Ignora maiuscole/minuscole\n\
/N Numera le linee visualizzate a partire da 1\n\
/V Visualizza le linee che non contengono la stringa"
IDS_NO_SUCH_FILE, "FIND: %s: File non trovato\n"
IDS_CANNOT_OPEN, "FIND: %s: Impossibile aprire il file\n"
END

View File

@@ -1,26 +1,26 @@
/*
* PROJECT: ReactOS find command
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/cmdutils/find/lang/lt-LT.rc
* PURPOSE: Lithuanian Language File
* TRANSLATOR: Vytis "CMan" Gird<72>ijauskas (cman@cman.us)
* DATE: 2007-09-23
*/
LANGUAGE LANG_LITHUANIAN, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Spausdina visas bylos eilutes, kuriose yra ie<69>komas tekstas.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"tekstas\" [ byla... ]\n\
/C Skai<61>iuoti eilutes, kuriose yra ie<69>komas tekstas\n\
/I Ignoruoti raid<69>i<EFBFBD> dyd<79>\n\
/N Numeruoti vaizduojamas eilutes, pradedant nuo 1\n\
/V Spausdinti eilutes, kuriose n<>ra ie<69>komo teksto"
IDS_NO_SUCH_FILE, "FIND: %s: Tokios bylos n<>ra\n"
IDS_CANNOT_OPEN, "FIND: %s: Nepavyko atverti bylos\n"
END
/*
* PROJECT: ReactOS find command
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/cmdutils/find/lang/lt-LT.rc
* PURPOSE: Lithuanian Language File
* TRANSLATOR: Vytis "CMan" Gird<72>ijauskas (cman@cman.us)
* DATE: 2007-09-23
*/
LANGUAGE LANG_LITHUANIAN, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Spausdina visas bylos eilutes, kuriose yra ie<69>komas tekstas.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"tekstas\" [ byla... ]\n\
/C Skai<61>iuoti eilutes, kuriose yra ie<69>komas tekstas\n\
/I Ignoruoti raid<69>i<EFBFBD> dyd<79>\n\
/N Numeruoti vaizduojamas eilutes, pradedant nuo 1\n\
/V Spausdinti eilutes, kuriose n<>ra ie<69>komo teksto"
IDS_NO_SUCH_FILE, "FIND: %s: Tokios bylos n<>ra\n"
IDS_CANNOT_OPEN, "FIND: %s: Nepavyko atverti bylos\n"
END

View File

@@ -1,3 +1,3 @@
#define IDS_USAGE 1000
#define IDS_NO_SUCH_FILE 1001
#define IDS_CANNOT_OPEN 1002
#define IDS_USAGE 1000
#define IDS_NO_SUCH_FILE 1001
#define IDS_CANNOT_OPEN 1002

View File

@@ -12,9 +12,9 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
/* $Id$
*

View File

@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd">
<module name="hostname" type="win32cui" installbase="system32" installname="hostname.exe">
<library>kernel32</library>
<file>hostname.c</file>
<file>hostname.rc</file>
</module>

View File

@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd">
<module name="lodctr" type="win32cui" installbase="system32" installname="lodctr.exe" unicode="yes">
<library>kernel32</library>
<library>loadperf</library>
<library>wine</library>
<file>lodctr_main.c</file>

View File

@@ -1,15 +1,15 @@
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "Visualizza dati una schermata per volta.\n\n\
MORE < [Drive:][Path]File\n\
Comando | MORE \n\
MORE [Drive:][Path]File\n\n\
[Drive:][Path]File Il file da visualizzare.\n\
Comando\t\t Il comando di cui l'output dev'essere visualizzato.\n\n\
Alla richiesta ""-- Continua --"" premere un tasto qualsiasi per visualizzare la pagina successiva.\n"
IDS_CONTINUE, " -- Continua (100%) -- "
IDS_FILE_ACCESS, "Impossibile accedere al file %s."
END
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "Visualizza dati una schermata per volta.\n\n\
MORE < [Drive:][Path]File\n\
Comando | MORE \n\
MORE [Drive:][Path]File\n\n\
[Drive:][Path]File Il file da visualizzare.\n\
Comando\t\t Il comando di cui l'output dev'essere visualizzato.\n\n\
Alla richiesta ""-- Continua --"" premere un tasto qualsiasi per visualizzare la pagina successiva.\n"
IDS_CONTINUE, " -- Continua (100%) -- "
IDS_FILE_ACCESS, "Impossibile accedere al file %s."
END

View File

@@ -1,27 +1,27 @@
/*
* PROJECT: ReactOS more command
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/cmdutils/more/lang/lt-LT.rc
* PURPOSE: Lithuanian Language File
* TRANSLATOR: Vytis "CMan" Gird<72>ijauskas (cman@cman.us)
* DATE: 2007-09-23
*/
LANGUAGE LANG_LITHUANIAN, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "Atvaizduoja duomenis puslapiais.\n\n\
MORE < [Diskas:][Kelias iki bylos]Bylos vardas\n\
Komanda | MORE \n\
MORE [Diskas:][Kelias iki bylos]Bylos vardas\n\n\
[Diskas:][Kelias iki bylos]Bylos vardas Byla, kurios turinys turi b<>ti\n\
atvaizduotas.\n\
Komanda Komanda, kurios rezultatas turi\n\
b<>ti atvaizduotas.\n\n\
Pasirod<6F>ius raginimui ""-- Toliau --"" spauskite bet kur<75> klavi<76><69>, kad\n\
pamatytum<75>te sekant<6E> puslap<61>.\n"
IDS_CONTINUE, " -- Toliau (100%) -- "
IDS_FILE_ACCESS, "Nepavyko atverti bylos %s."
END
/*
* PROJECT: ReactOS more command
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/cmdutils/more/lang/lt-LT.rc
* PURPOSE: Lithuanian Language File
* TRANSLATOR: Vytis "CMan" Gird<72>ijauskas (cman@cman.us)
* DATE: 2007-09-23
*/
LANGUAGE LANG_LITHUANIAN, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "Atvaizduoja duomenis puslapiais.\n\n\
MORE < [Diskas:][Kelias iki bylos]Bylos vardas\n\
Komanda | MORE \n\
MORE [Diskas:][Kelias iki bylos]Bylos vardas\n\n\
[Diskas:][Kelias iki bylos]Bylos vardas Byla, kurios turinys turi b<>ti\n\
atvaizduotas.\n\
Komanda Komanda, kurios rezultatas turi\n\
b<>ti atvaizduotas.\n\n\
Pasirod<6F>ius raginimui ""-- Toliau --"" spauskite bet kur<75> klavi<76><69>, kad\n\
pamatytum<75>te sekant<6E> puslap<61>.\n"
IDS_CONTINUE, " -- Toliau (100%) -- "
IDS_FILE_ACCESS, "Nepavyko atverti bylos %s."
END

View File

@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd">
<module name="more" type="win32cui" installbase="system32" installname="more.exe">
<library>kernel32</library>
<library>ntdll</library>
<library>user32</library>
<file>more.c</file>

View File

@@ -1,20 +1,5 @@
#ifndef RESOURCE_H__ /* resource.h */
#define RESOURCE_H__
#pragma once
#define IDS_USAGE 100
#define IDS_CONTINUE 101
#define IDS_FILE_ACCESS 102
#endif /* EOF of resource.h */

View File

@@ -0,0 +1,40 @@
/*
* REG.EXE - Wine-compatible reg program.
* Danish language support
*
* Copyright 2008 Jens Albretsen <jens@albretsen.dk>
* 2010 Thomas Larsen
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "reg.h"
#pragma code_page(65001)
LANGUAGE LANG_DANISH, SUBLANG_DEFAULT
STRINGTABLE
{
STRING_USAGE, "Syntaksen for dette kommando er:\n\nREG [ ADD | DELETE | QUERY ]\nREG kommando /?\n"
STRING_ADD_USAGE, "REG ADD nøgle_navn [/v værdi | /ve] [/t type] [/s separator] [/d data] [/f]\n"
STRING_DELETE_USAGE, "REG DELETE nøgle_navn [/v værdi | /ve | /va] [/f]\n"
STRING_QUERY_USAGE, "REG QUERY nøgle_navn [/v værdi | /ve] [/s]\n"
STRING_SUCCESS, "Operationen blev afsluttet med succes\n"
STRING_INVALID_KEY, "Fejl: Ugyldigt nøgle navn\n"
STRING_INVALID_CMDLINE, "Fejl: Ugyldige kommando linje parametre\n"
STRING_NO_REMOTE, "Fejl: Kunne ikke tilføje nøgler til fjern maskinen\n"
STRING_CANNOT_FIND, "Fejl: Systemet kunne ikke finde, den angivet registrerings nøgle eller værdi\n"
}

View File

@@ -0,0 +1,40 @@
/*
* REG.EXE - Wine-compatible reg program.
* German language support
*
* Copyright 2008 Andrej Sinicyn
* Copyright 2009 Michael Stefaniuc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "reg.h"
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
#pragma code_page(65001)
STRINGTABLE
{
STRING_USAGE, "Die Syntax von diesem Befehl ist:\n\nREG [ ADD | DELETE | QUERY ]\nREG Befehl /?\n"
STRING_ADD_USAGE, "REG ADD Schlüssel [/v Wert | /ve] [/t Typ] [/s Trenner] [/d Daten] [/f]\n"
STRING_DELETE_USAGE, "REG DELETE Schlüssel [/v Wert | /ve | /va] [/f]\n"
STRING_QUERY_USAGE, "REG QUERY Schlüssel [/v Wert | /ve] [/s]\n"
STRING_SUCCESS, "Der Vorgang wurde erfolgreich abgeschlossen\n"
STRING_INVALID_KEY, "Fehler: Ungültiger Schlüssel\n"
STRING_INVALID_CMDLINE, "Fehler: Ungültige Befehlszeilenargumente\n"
STRING_NO_REMOTE, "Fehler: Konnte Schlüssel nicht zum remote Rechner hinzufügen\n"
STRING_CANNOT_FIND, "Fehler: Der angegebene Schlüssel oder Wert konnte nicht gefunden werden\n"
}

View File

@@ -0,0 +1,37 @@
/*
* REG.EXE - Wine-compatible reg program.
* English language support
*
* Copyright 2008 Andrew Riedi
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "reg.h"
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
STRINGTABLE
{
STRING_USAGE, "The syntax of this command is:\n\nREG [ ADD | DELETE | QUERY ]\nREG command /?\n"
STRING_ADD_USAGE, "REG ADD key_name [/v value_name | /ve] [/t type] [/s separator] [/d data] [/f]\n"
STRING_DELETE_USAGE, "REG DELETE key_name [/v value_name | /ve | /va] [/f]\n"
STRING_QUERY_USAGE, "REG QUERY key_name [/v value_name | /ve] [/s]\n"
STRING_SUCCESS, "The operation completed successfully\n"
STRING_INVALID_KEY, "Error: Invalid key name\n"
STRING_INVALID_CMDLINE, "Error: Invalid command line parameters\n"
STRING_NO_REMOTE, "Error: Unable to add keys to remote machine\n"
STRING_CANNOT_FIND, "Error: The system was unable to find the specified registry key or value\n"
}

View File

@@ -0,0 +1,40 @@
/*
* REG.EXE - Wine-compatible reg program.
* Spanish language support
*
* Copyright 2010 José Rostagno
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "reg.h"
/* UTF-8 */
#pragma code_page(65001)
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
STRINGTABLE
{
STRING_USAGE, "La sintaxis de este comando es:\n\nREG [ ADD | DELETE | QUERY ]\nREG comando /?\n"
STRING_ADD_USAGE, "REG ADD nombre_clave [/v nombre_valor | /ve] [/t tipo] [/s separador] [/d datos] [/f]\n"
STRING_DELETE_USAGE, "REG DELETE nombre_clave [/v nombre_valor | /ve | /va] [/f]\n"
STRING_QUERY_USAGE, "REG QUERY nombre_clave [/v nombre_valor | /ve] [/s]\n"
STRING_SUCCESS, "La operación finalizó con éxito\n"
STRING_INVALID_KEY, "Error: nombre de clave no válido\n"
STRING_INVALID_CMDLINE, "Error: parámetros de línea de comandos inválidos\n"
STRING_NO_REMOTE, "Error: No se puede agregar claves al equipo remoto\n"
STRING_CANNOT_FIND, "Error: El sistema no pudo encontrar la clave o el valor del Registro especificado\n"
}

Some files were not shown because too many files have changed in this diff Show More