Compare commits

...

1374 Commits

Author SHA1 Message Date
Thomas Faber
245051f2bf [CLT2012]
- Fix directory creation in first stage
- Avoid relocation of syssetup

svn path=/branches/ros-branch-0_3_14-clt2012/; revision=56139
2012-03-13 09:04:26 +00:00
Thomas Faber
4cb64ace63 [CLT2012]
- Remove the outdated USB driver

svn path=/branches/ros-branch-0_3_14-clt2012/; revision=56138
2012-03-13 00:08:45 +00:00
Thomas Faber
05577a9a89 [CLT2012]
- Include the Lautus visual style by Pisarz (as a blob for now), and enable it by default

svn path=/branches/ros-branch-0_3_14-clt2012/; revision=56136
2012-03-12 22:50:39 +00:00
Thomas Faber
7f2624f282 [CLT2012]
- Add CLT wallpaper based on Angelus_ReactOS7_Dark_4-3

svn path=/branches/ros-branch-0_3_14-clt2012/; revision=56134
2012-03-12 16:06:54 +00:00
Thomas Faber
77b07c3a96 [CLT2012]
- Partly revert r53422 to allow hybrid CD booting again. Thanks to Giannis.

svn path=/branches/ros-branch-0_3_14-clt2012/; revision=56123
2012-03-11 21:09:16 +00:00
Thomas Faber
76a461dd16 [CLT2012]
- Add hybrid CD tools by Colin. See r51077, r46059

svn path=/branches/ros-branch-0_3_14-clt2012/; revision=56101
2012-03-10 09:41:41 +00:00
Thomas Faber
18ac12569f [CLT2012]
- Adjust the CD root readme.txt for CLT
- Add CD options to welcome.exe
- Taken from previous years, see r51078, r46065

svn path=/branches/ros-branch-0_3_14-clt2012/; revision=56100
2012-03-10 09:38:41 +00:00
Thomas Faber
ee9c5e2290 [CLT2012]
- Change version to 0.3.14-CLT2012

svn path=/branches/ros-branch-0_3_14-clt2012/; revision=56095
2012-03-09 19:28:53 +00:00
Cameron Gutman
5a288c9f90 [NTOSKRNL]
- Add an assertion to catch a bug in the I/O manager

svn path=/trunk/; revision=56093
2012-03-08 23:02:45 +00:00
Stefan Ginsberg
ad0cb34f20 - Addendum to 56090.
svn path=/trunk/; revision=56092
2012-03-08 09:23:24 +00:00
Stefan Ginsberg
12d6452264 Build fix from the cmake noob.
svn path=/trunk/; revision=56091
2012-03-08 09:20:31 +00:00
Stefan Ginsberg
1016fc25ff - Fix DBG macro AGAIN which got broken during the switch to cmake. Checked build: DBG = 1, free build: DBG = 0. Noobs.
svn path=/trunk/; revision=56090
2012-03-08 09:18:28 +00:00
Cameron Gutman
a7caca2e37 [NTOSKRNL]
- Release the IO database lock before unloading the device (and driver too) to prevent deadlocks

svn path=/trunk/; revision=56089
2012-03-08 03:02:28 +00:00
Cameron Gutman
e0c8eedd51 [NTOSKRNL]
- Fix broken reference counting and dereferencing the wrong device object

svn path=/trunk/; revision=56088
2012-03-08 02:58:21 +00:00
Cameron Gutman
592be28128 [NTOSKRNL]
- Dereference the correct device object (the one who asked for shutdown notification) instead of whatever happens to be on the top of the device stack
- Fix flag issues

svn path=/trunk/; revision=56087
2012-03-08 02:43:47 +00:00
James Tabor
f3bea9c548 [Screen Savers]
- CMake it! MazeScr is skipped for now.

svn path=/trunk/; revision=56086
2012-03-08 02:02:58 +00:00
Jérôme Gardou
63fa6d040d [DAMN_IT]
- addendum to r56081

svn path=/trunk/; revision=56082
2012-03-07 21:46:15 +00:00
Jérôme Gardou
4bdb6a42f2 [CMAKE]
* unify spec2def and add_importlib_target
* use module name instead of spec file name for deciding importlib target name

svn path=/trunk/; revision=56081
2012-03-07 21:21:27 +00:00
Pierre Schweitzer
92de8cffa3 [HALX86]
Fix halx86 release build

svn path=/trunk/; revision=56080
2012-03-07 21:19:30 +00:00
Pierre Schweitzer
b603bd5a6b [WIN32CSR]
Fix win32csr release build

svn path=/trunk/; revision=56079
2012-03-07 21:18:59 +00:00
Pierre Schweitzer
56f5b39130 [WIN32K]
Fix win32k release build

svn path=/trunk/; revision=56078
2012-03-07 21:18:30 +00:00
Pierre Schweitzer
388562e5ec [DDK]
Fix release build?

svn path=/trunk/; revision=56077
2012-03-07 19:46:16 +00:00
Rafal Harabien
e7b9093f5c [FREELDR]
- Try to fix release build

svn path=/trunk/; revision=56076
2012-03-07 13:47:38 +00:00
Rafal Harabien
b44e551110 [SHELL32]
- Improve drive properties dialog. Patch by Edijs Kolesnikovičs <terminedijs at yahoo dot com>
See issue #6833 for more details.

svn path=/trunk/; revision=56075
2012-03-07 13:34:10 +00:00
Rafal Harabien
10450502d4 [SHELL32]
- Improve file properties dialog. Patch by Edijs Kolesnikovičs <terminedijs at yahoo dot com>
See issue #6829 for more details.

svn path=/trunk/; revision=56074
2012-03-07 13:25:45 +00:00
Pierre Schweitzer
034c8a3379 [NTOSKRNL]
Fix wrong sizeof usage with performance counters

svn path=/trunk/; revision=56073
2012-03-07 07:38:31 +00:00
Rafal Harabien
0f6c290bfa [WIN32K]
- When using output rect clipping results in input rect, scale them to input rect size. Fixes gdiplus:graphics winetest crash.

svn path=/trunk/; revision=56072
2012-03-07 00:24:14 +00:00
Cameron Gutman
f184a271ca [NTOSKRNL]
- Hack IopDeleteDriver to workaround the boot driver unloading bugs I mailed ros-dev about
- Should fix KVM testbot

svn path=/trunk/; revision=56071
2012-03-07 00:14:13 +00:00
Cameron Gutman
e97f05f899 [NTOSKRNL]
- Don't zero a page again that is already zeroed

svn path=/trunk/; revision=56070
2012-03-07 00:01:51 +00:00
Cameron Gutman
092d67d890 [NTOSKRNL]
- Fix the unload path
- This does expose some bugs: 2 cont-able assertions in ARM3 after unplugging a USB storage device (during usbstor unload), HID unload doesn't seem to work correctly (somebody still has references to the devices), other issues may pop up too

svn path=/trunk/; revision=56069
2012-03-06 22:50:13 +00:00
Cameron Gutman
ca8ba290ce [NTOSKRNL]
- Cleanup device removal/unloading
- Should not have any behavior changes yet

svn path=/trunk/; revision=56068
2012-03-06 22:36:27 +00:00
Cameron Gutman
ccae886429 [MOUCLASS][KBDCLASS]
- Fix a file object reference leak on legacy enumerated keyboard and mouse port drivers

svn path=/trunk/; revision=56067
2012-03-06 22:20:02 +00:00
Cameron Gutman
8fb6abbc24 [NTOSKRNL]
- Fix yet another major device object reference leak (1 per power IRP)

svn path=/trunk/; revision=56066
2012-03-06 22:06:44 +00:00
Cameron Gutman
2a70af6641 [NTOSKRNL]
- Fix a major device object reference leak (1 per PnP IRP)

svn path=/trunk/; revision=56065
2012-03-06 21:58:29 +00:00
Cameron Gutman
bb4fbc5ac7 [USBCCGP]
- Add a DriverUnload handler as required by WDM spec

svn path=/trunk/; revision=56064
2012-03-06 21:24:36 +00:00
Cameron Gutman
f706d2ed15 [NTOSKRNL]
- Fix several driver object reference leaks
- Fix a kmtest regarding previously loaded drivers
- Part 1 of getting PnP driver unload to work properly

svn path=/trunk/; revision=56063
2012-03-06 21:07:25 +00:00
Timo Kreuzer
6ca9e86d16 [WIN32K]
Initialize the DC's CombinedClip when creating the DC. Fixes a crash caused by Explorer++

svn path=/trunk/; revision=56061
2012-03-06 10:33:28 +00:00
Stefan Ginsberg
5001cb2608 - Stop using ObfXXX and IofXXX in C code. This is bad style. Always use the non-f versions in C code.
- Fix the way we undefined IoCallDriver and IoCompleteRequest so existing and future code in irp.c will use the correct function when using the Io* versions.
Part 1 of 2.

svn path=/trunk/; revision=56060
2012-03-05 20:43:47 +00:00
Jérôme Gardou
44ea840535 There are days like that, when you'd better refrain from commit anything.
svn path=/trunk/; revision=56059
2012-03-05 20:34:50 +00:00
Jérôme Gardou
a0e5de9deb [UXTHEME]
- fix a few winetest
Patch by Ben Pye (bfhben __ gmail __ com)

svn path=/trunk/; revision=56058
2012-03-05 20:21:43 +00:00
Rafal Harabien
2181eb4926 [CMAKE]
- Fix GCC warnings when building cmlib

svn path=/trunk/; revision=56057
2012-03-05 20:20:50 +00:00
Rafal Harabien
6e4c0662ea [GDIPLUS_WINETEST]
- Sync to Wine 1.3.37

svn path=/trunk/; revision=56056
2012-03-05 20:18:32 +00:00
Rafal Harabien
4ecb1c4ca7 [GDIPLUS]
- Sync to Wine 1.3.37

svn path=/trunk/; revision=56055
2012-03-05 20:17:42 +00:00
Jérôme Gardou
a9d90422fd first cause of broken commits: the headers. Addendum r56048
svn path=/trunk/; revision=56054
2012-03-05 20:08:08 +00:00
Rafal Harabien
ea7b00c53e [HIDPARSER]
- Implement translating customer page to scan-codes

svn path=/trunk/; revision=56053
2012-03-05 19:58:43 +00:00
Cameron Gutman
0c5896f63f [NTOSKRNL]
- Assert that the PFN lock is held during MmReferencePage
- Assert that the PFN lock is not held during MmFreeMemoryArea

svn path=/trunk/; revision=56052
2012-03-05 19:54:00 +00:00
Cameron Gutman
cfb8d5658b [NEWCC]
- Check that the memory area is not being deleted before using it

svn path=/trunk/; revision=56051
2012-03-05 19:48:24 +00:00
Cameron Gutman
d78bbd2aab [NTOSKRNL]
- Fix incorrect placement of the PDE freeing code which caused a deadlock to occur if a low memory condition was indicated by ARM3

svn path=/trunk/; revision=56050
2012-03-05 19:40:44 +00:00
Cameron Gutman
9973fe86bf [NEWCC]
- Hold the PFN lock when referencing pages

svn path=/trunk/; revision=56049
2012-03-05 19:29:39 +00:00
Jérôme Gardou
4a78d2e988 [CABINET]
- Really use random temporary file name

svn path=/trunk/; revision=56048
2012-03-05 19:18:19 +00:00
Cameron Gutman
18a6ac6ae4 [NEWCC]
- Don't allow a locked page to be paged out

svn path=/trunk/; revision=56047
2012-03-05 19:15:15 +00:00
Rafal Harabien
76f7011ac8 [HIDPARSER]
- Fix scan-codes for PrintScreen and PauseBreak

svn path=/trunk/; revision=56046
2012-03-05 19:07:01 +00:00
Jérôme Gardou
c3d23e2e30 [CABINET]
- always close the cabinet after being done, even of case of failure.

svn path=/trunk/; revision=56045
2012-03-05 18:51:05 +00:00
Cameron Gutman
97fa0caa77 [NEWCC]
- Revert 56043

svn path=/trunk/; revision=56044
2012-03-05 18:50:12 +00:00
Cameron Gutman
5ebff54d57 [NEWCC]
- Turn NewCC on temporarily for some testing
- Patchbot is broken so I had to do it this way :(

svn path=/trunk/; revision=56043
2012-03-05 18:42:40 +00:00
Jérôme Gardou
8cad601e40 [CABINET]
- always test your code before commiting, I'm sure I already told you that.

svn path=/trunk/; revision=56042
2012-03-05 18:37:33 +00:00
Jérôme Gardou
f14cc87389 [CABMAN]
- Try to fix some drama

svn path=/trunk/; revision=56041
2012-03-05 18:22:36 +00:00
Cameron Gutman
9234774efe [NEWCC]
- Tag NewCC sections as ROS section objects so they don't get pulled into ARM3 code paths

svn path=/trunk/; revision=56040
2012-03-05 17:35:07 +00:00
Sir Richard
e4e166e6ae [NTOS]: Use ARM3 sections for the NLS mapping -- excercises both the system mapping as well as the per-process mapping. WorksForMe(c). Hopefully things will be better than last time now, and their usage can increase.
svn path=/trunk/; revision=56039
2012-03-05 17:10:51 +00:00
Cameron Gutman
4e9be483ad [NTOSKRNL]
- Use ARM3 hyperspace mapping calls instead of the legacy RosMm API

svn path=/trunk/; revision=56038
2012-03-05 17:08:02 +00:00
Rafal Harabien
e6c3edf112 [KBDHID][HIDPARSER]
- Fix extended keys (scan-codes prefixed with E0) translation. Fixes Win-key.

svn path=/trunk/; revision=56037
2012-03-05 17:07:15 +00:00
Cameron Gutman
676849ab0b [NTOS]
- Fix a broken assertion

svn path=/trunk/; revision=56036
2012-03-05 16:48:26 +00:00
Sir Richard
d124bde10c Two Part Patch which fixes ARM3 Section Support (not yet enabled). This had been enabled in the past for testing and resulted in bizare crashes during testing. The amount of fixing required should reveal why:
Part 1: Page Fault Path Fixes
[NTOS]: As an optimization, someone seems to have had changed the MiResolveDemandZeroFault prototype not to require a PTE, and to instead take a protection mask directly. While clever, this broke support for ARM3 sections, because the code was now assuming that the protection of the PTE for the input address should be used -- while in NT Sections we instead use what are called ProtoType PTEs. This was very annoying to debug, but since the cause has been fixed, I've reverted back to the old convention in which the PTE is passed-in, and this can be a different PTE than the PTE for the address, as it should be.
[NTOS]: Due to the reverting of the original path, another optimization, in which MiResolveDemandZeroFault was being called directly instead of going through MiDispatchFault and writing an invalid demand-zero PDE has also been removed. PDE faults are now going through the correct, expected path.
[NTOS]: MiResolveDemandZeroFault was always creating Kernel PTEs. It should create User PTEs when necessary.
[NTOS]: MiDeletePte was assuming any prototype PTE is a forked PTE. Forked PTEs only happen when the addresses in the PTE don't match, so check for that too.
Part 2: ARM3 Section Object Fixes
[NTOS]: Fix issue when trying to make both ROS_SECTION_OBJECTs and NT's SECTION co-exist. We relied on the *caller* knowing what kind of section this is, and that can't be a good idea. Now, when the caller requests an ARM3 section vs a ROS section, we use a marker to detect what kind of section this is for later APIs.
[NTOS]: For section VADs, we were storing the ReactOS MEMORY_AREA in the ControlArea... however, the mappings of one individual section object share a single control area, even though they have multiple MEMORY_AREAs (one for each mapping). As such, we overwrote the MEMORY_AREA continously, and at free-time, double or triple-freed the same memory area.
[NTOS]: Moved the MEMORY_AREA to the "Banked" field of the long VAD, instead of the ControlArea. Allocate MMVAD_LONGs for ARM3 sections for now, to support this. Also, after deleting the MEMORY_AREA while parsing VADs, we now use a special marker to detect double-frees, and we also use a special marker to make sure we have a Long VAD as expected.

svn path=/trunk/; revision=56035
2012-03-05 16:41:46 +00:00
Stefan Ginsberg
5219e590b0 [NTOS]
- Fix handling of command strings in KdpTrap.

svn path=/trunk/; revision=56034
2012-03-05 14:52:03 +00:00
Cameron Gutman
b244ec1114 [USBSTOR]
- Deny removal to fix a race with the legacy disk class driver

svn path=/trunk/; revision=56033
2012-03-05 14:42:05 +00:00
Stefan Ginsberg
9816f534ee [PSDK]
- Update DBGKD_MAJOR_TYPES. Dedicated to Alex ;)

svn path=/trunk/; revision=56031
2012-03-05 13:02:21 +00:00
Stefan Ginsberg
bb50e00be0 [XDK]
- Forgot this one in 55840

svn path=/trunk/; revision=56029
2012-03-05 12:57:08 +00:00
Stefan Ginsberg
549d8709b3 [FREELDR]
- Give freeldr its own RtlAssert to avoid linking to the one in rtl. Makes it possible to use the DbgPrompt version (currently #if 0-ed) of RtlAssert in ntdll/ntos without breaking freeldr linking.

svn path=/trunk/; revision=56028
2012-03-05 12:50:08 +00:00
Kamil Hornicek
caefd349c5 [TRANSLATION]
- Follow-up to r55891.
- Resource cleanup.

svn path=/trunk/; revision=56027
2012-03-05 11:13:13 +00:00
Art Yerkes
d9d0e1ad2a [FSRTL]
Fix my lock implementation to a degree.
- Have a single list associated with the CSQ.
- Remove some confusion from when the lock information was a
generic table.
- Make the compare function not be confused by attempts to
give strange offsets and lengths.
- Make the uninitialize function complete all lock requests
as specified.
- Remove my unneeded attempt to shoehorn in an eresource.

svn path=/trunk/; revision=56026
2012-03-05 09:49:06 +00:00
Art Yerkes
bd9aa57445 [NEWCC]
Use the same method pagefile.c does to read in a page without mapping it.

svn path=/trunk/; revision=56025
2012-03-05 04:34:06 +00:00
Art Yerkes
4d698f45aa [NEWCC]
Fix paging out.
- We know we're in a wait entry in the section.  What we really want to know
is if it's safe to evict this address space when withdrawing the mappings.
- We don't want to corrupt our wait entry in the section page table to keep
accumulating dirty state into the page out process until it's time to finally
evict.

svn path=/trunk/; revision=56024
2012-03-05 02:20:22 +00:00
Art Yerkes
1490d48263 [NEWCC]
Prevent us from recording an impossible dirty swap entry in the section page table.

svn path=/trunk/; revision=56023
2012-03-05 01:52:47 +00:00
Cameron Gutman
ea50be62a0 [NEWCC]
- Add missing wait entry handling

svn path=/trunk/; revision=56022
2012-03-04 23:45:16 +00:00
Pierre Schweitzer
3f0a38fdc9 [RAMDISK]
Implement RamdiskRemoveBusDevice.
Stubplement RamdiskDeleteDiskDevice.
Use them in RamdiskPnp.

svn path=/trunk/; revision=56021
2012-03-04 23:08:33 +00:00
Cameron Gutman
c257a48ec6 [NTOSKRNL]
- Kill this straggler from last commit

svn path=/trunk/; revision=56020
2012-03-04 22:45:46 +00:00
Jérôme Gardou
24b9fc3fe0 [NTOSKRNL/MM]
- do not initialize idle process address space lock twice

svn path=/trunk/; revision=56019
2012-03-04 22:39:15 +00:00
Cameron Gutman
50e1500799 [NTOSKRNL]
- Consolidate most of the PDE reference counting code into the arch-specific RosMm folder where it belongs

svn path=/trunk/; revision=56018
2012-03-04 22:31:30 +00:00
Rafal Harabien
41364b7c5a [EXPLORER-NEW]
- Add more items to taskbar popup menu. Patch by Edijs Kolesnikovičs <terminedijs at yahoo dot com>
See issue #6242 for more details.

svn path=/trunk/; revision=56017
2012-03-04 22:07:27 +00:00
Pierre Schweitzer
8fdf9b6765 [RAMDISK]
Implement RamdiskScsi, RamdiskSystemControl, RamdiskPower

svn path=/trunk/; revision=56016
2012-03-04 21:42:16 +00:00
Cameron Gutman
4350714766 [NEWCC]
- Turn off a bit more debugging so NewCC is largely quiet unless there's a problem

svn path=/trunk/; revision=56015
2012-03-04 21:36:34 +00:00
Cameron Gutman
28a5fcc313 [NTOSKRNL]
- Fix a major bug in the failure path of IoCreateDevice that would cause corruption of kernel memory if IopCreateVpb failed

svn path=/trunk/; revision=56014
2012-03-04 21:18:01 +00:00
Rafal Harabien
f8ada9b34d [SHELL32]
- Fix folder properties dialog. Patch by Edijs Kolesnikovičs <terminedijs at yahoo dot com>
See issue #6832 for more details.

svn path=/trunk/; revision=56013
2012-03-04 20:58:37 +00:00
Jérôme Gardou
5b9d2a760e [NTOSKRNL/MM]
- initialize VmWorkingSet pointer for system process.
Should fix random crashes when paging out.

svn path=/trunk/; revision=56012
2012-03-04 20:30:42 +00:00
Rafal Harabien
8a1d72a7cd [SHELL32]
- Improve shortcut properties dialog. Patch by Edijs Kolesnikovičs <terminedijs at yahoo dot com>
See issue #6848 for more details.

svn path=/trunk/; revision=56011
2012-03-04 20:28:29 +00:00
Sir Richard
61dab06b71 [NTOS]: For debugging only, want to see what is excercising MmAllocatePagesForMdl. The way I wrote this seems broken, but I can't find anything to test it with.
svn path=/trunk/; revision=56010
2012-03-04 19:51:22 +00:00
Pierre Schweitzer
4f16fa360c [RAMDISK]
Implement RamdiskFlushBuffers, RamdiskUnload

svn path=/trunk/; revision=56009
2012-03-04 19:48:09 +00:00
Kamil Hornicek
b9862648ef [WIN32K]
Take the "unsignedness" of the index into account.

svn path=/trunk/; revision=56007
2012-03-04 19:20:25 +00:00
Pierre Schweitzer
300da180c0 [RAMDISK]
Implement RamdiskSetPartitionInfo and make use of it
Also use RamdiskGetPartitionInfo in RamdiskWorkerThread

svn path=/trunk/; revision=56002
2012-03-04 18:32:07 +00:00
Jérôme Gardou
75e0ec3feb [NTOSKRNL]
- fix code assuming System process pointer is never NULL, which is the case when we're creating it.

svn path=/trunk/; revision=56001
2012-03-04 17:57:44 +00:00
Sir Richard
645e6a793a [MEGAPERF]: This build introduces the following performance boosts:
- Using a dead stack lookaside list for up to 5 dead kernel thread stacks. 1500% improvement when rapidly destroying/creating threads, such as during second stage setup and many winetests.
- Using a free pool page lookaside list for up to 12 free non-paged or paged pool pages. 800% improvement when allocating big pages from the pool, as well as during pool expansion.
- Using a bucketized per-processor and local list (in the KPRCB) for block sizes between 1 and 32 bytes. 1000% improvement when rapidly allocating/freeing small pool allocations, and 8x reduction in pool fragmentation.

svn path=/trunk/; revision=56000
2012-03-04 17:56:00 +00:00
Sir Richard
6c3e9221be [NTOS]: Drop a reference count to the page table in MiDeleteSystemPageableVm as ARM3 now owns PDEs. This helps out yet again to free a little bit of extra RAM up.
svn path=/trunk/; revision=55999
2012-03-04 17:42:56 +00:00
Timo Kreuzer
e3e2689cbf [GENDIB]
- Generate ansi style indentation
- Fix signed/unsigned MSVC warnings in generated code

svn path=/trunk/; revision=55998
2012-03-04 13:33:07 +00:00
Timo Kreuzer
10dabf2876 [GENDIB]
Fix formatting

svn path=/trunk/; revision=55997
2012-03-04 13:06:02 +00:00
Pierre Schweitzer
d2e6e7b9d0 [NTOSKRNL]
Comment out two overzealous ASSERTs

svn path=/trunk/; revision=55996
2012-03-04 12:52:02 +00:00
Timo Kreuzer
354085c7e8 [WIN32K]
Fix build 2

svn path=/trunk/; revision=55995
2012-03-04 12:01:59 +00:00
Timo Kreuzer
3159c6f62f [WIN32K]
Fix build

svn path=/trunk/; revision=55994
2012-03-04 11:43:08 +00:00
Timo Kreuzer
a508886eb0 [WIN32K]
- Fix a possible integer overflow in NtGdiCreateBitmap
- Don't cast length of LARGE_STRING (ULONG) to USHORT, instead truncate to MAXUSHORT. This is still hacky, but better than before.
- Fix MSVC warnings

svn path=/trunk/; revision=55993
2012-03-04 11:32:43 +00:00
Johannes Anderwald
a5bdcfa727 [LIBUSB]
- Fix bug while scanning endpoint descriptors
- Do not assume interface info has the correct number of pipes set
- Fix alternate interface handling
- Tested in VBox + USB Audio Device

svn path=/trunk/; revision=55992
2012-03-04 11:07:13 +00:00
Sir Richard
9bb1ba5ee4 [NTOS]: If the address space is exhausted, don't ASSERT, simply return failure just as Windows does. Should fix the last of the ASSERTions on TestBot.
Next step is to support VirtualProtect/Query correctly.

svn path=/trunk/; revision=55991
2012-03-04 07:04:42 +00:00
Sir Richard
83a2328786 [NTOS]: Blimey this was a hard one. When using the reserved flag to request 1MB in a new process (which is used for starting SMSS and CSRSS), we must request 1MB - 256 bytes (or any number, actually) to offset the fact that with a base address of 0x4, a 1MB region gets us at 0x100FFF, and not 0xFFFF, because Windows computes ending address *before* alignment, and then returns a new region size for you (so if you pass in 1MB, you get 1MB + 4096KB). In Win32csr, when the code is trying to release 1MB, this ended up in our "Case A", because it would still leave a page in the VAD. Fixed rtl to request just shy off a MB. Verified on Windows as well.
[NTOS]: The fix above was due to fixing "EndingAddress" which was being initialized to zero too late (after writing to it!). This caused allocations with a fixed base address that were already on top of another allocation not to be seen as a conflict, then we tried inserting a VAD and received an ASSERT saying we've already found a VAD there. After fixing the sizing code, the bug above creeped up.
Whoever wrote the NtFreeVirtualMemory test is a godsend. It has been nailing bug after bug in the VAD implementation. Thank you.

svn path=/trunk/; revision=55990
2012-03-04 06:42:49 +00:00
Johannes Anderwald
acb68dc20d [KS]
- Fix property item merge in KsMergeAutomationTable

 

svn path=/trunk/; revision=55989
2012-03-04 04:44:48 +00:00
Sir Richard
4411be35e7 [NTOS]: Release the *right* lock. "Fix the fix" as the yuppies say.
svn path=/trunk/; revision=55988
2012-03-04 03:18:47 +00:00
Alex Ionescu
26b48236fb [WIN32K]: Should fix usb/livecd failure reported by igorko. bug 6696..or something?
svn path=/trunk/; revision=55987
2012-03-04 03:06:20 +00:00
Alex Ionescu
a604834220 [SMSS]: No longer fail on invalid known DLL checksum until I can fix the loader API.
svn path=/trunk/; revision=55986
2012-03-04 03:00:01 +00:00
Sir Richard
4c07bf2fcd [NTOS]: Don't keep the address space locked when failing in NtFreeVirtualMemory. Dang this testbot is good at catching those bugs.
svn path=/trunk/; revision=55985
2012-03-04 02:56:16 +00:00
Johannes Anderwald
0e20c445f1 [KS]
- Handle custom sized nodes

svn path=/trunk/; revision=55984
2012-03-04 02:39:37 +00:00
Johannes Anderwald
0b301f3da8 [USBHUB]
- Implement retrieving USB_BUS_INTERFACE_USBDI_GUID interface
[KS]
- Add PnP hack for IoSetDeviceInterfaceState

svn path=/trunk/; revision=55983
2012-03-04 02:17:13 +00:00
Sir Richard
9732b09bc6 [NTOS]: Delete anonmem.c and move the ARM3-compatible code to ARM3/virtual.c. Whatever remained is for sections only, so move it to mm/section.c
[NTOS]: Fix some broken assertions in NtFreeVirtualMemory. Lesson: Do not try to "optimize" Microsoft's ASSERTs.

svn path=/trunk/; revision=55982
2012-03-04 02:03:46 +00:00
Sir Richard
2d534ce868 [RTL]: Sorry, forgot this critical part of the VAD commit.
svn path=/trunk/; revision=55981
2012-03-04 00:47:20 +00:00
Cameron Gutman
79dd33a566 [UNIATA]
- Try to fix KVM testbot

svn path=/trunk/; revision=55980
2012-03-03 23:13:21 +00:00
Cameron Gutman
2b71ec3e05 [USETUP]
- Turn off debugging
- Fix the checkpoint print so it doesn't happen anytime a usetup progress bar reaches 50%

svn path=/trunk/; revision=55979
2012-03-03 23:04:10 +00:00
Cameron Gutman
6b93fbc2de [STORAGE]
- Back by popular demand, the storage driver to end all storage drivers, uniata!
- I had forgotten how many issues atapi had itself and the hardware compatibility improvement (if there was one) was offset by lack of features

svn path=/trunk/; revision=55978
2012-03-03 22:46:04 +00:00
Sir Richard
08e91a3df6 [NTOS]: Implement VAD-based Virtual Memory Management. MEMORY_AREA_VIRTUAL_MEMORY is gone. Tested for 3 days with various experiments and handled all the cases and issues that appeared. Some code paths are not implemented because they were not encountered. Will consider implementing them if anything breaks -- note however that those code paths were not handled in RosMM either, so no new regressions are expected.
Hoping this will work on other configurations other than just my test virtual machine. If so, it is a big day in Mm history. Only sections and cache still use the old Mm functionality. I -will- revert this if all hell breaks loose.

svn path=/trunk/; revision=55977
2012-03-03 22:34:35 +00:00
Cameron Gutman
297eb4a462 [USBCCGP]
- Implement support for getting string descriptors (may need more work)
- USB mass storage devices which are part of a composite device now initialize

svn path=/trunk/; revision=55976
2012-03-03 21:23:04 +00:00
Hervé Poussineau
3e4f41c5e9 ntoskrnl: fix pointer dereference before testing for it
svn path=/trunk/; revision=55975
2012-03-03 21:11:42 +00:00
Timo Kreuzer
f99547ad97 [PSDK] Add missing definitions to wingdi.h
[WIN32K] Fix MSVC warnings

svn path=/trunk/; revision=55974
2012-03-03 20:57:42 +00:00
Hervé Poussineau
b541b98d59 freeldr/pxe: remove some traces
svn path=/trunk/; revision=55973
2012-03-03 20:57:17 +00:00
Hervé Poussineau
22f20d79fc Revert most of r53392 effects.
When IoReportDetectedDevice() creates a PDO, the PDO is in no way related to the DriverObject given to the function.
Driver calling IoReportDetectedDevice() should then ensure that it attachs a FDO on top of this PDO.

svn path=/trunk/; revision=55972
2012-03-03 20:39:51 +00:00
Cameron Gutman
85f9f9e518 [LIBUSB]
- Don't assert that the clear stall will complete successfully since it may be sent for a removal
- Fixes removal surprise removal of HID devices

svn path=/trunk/; revision=55971
2012-03-03 20:17:29 +00:00
Timo Kreuzer
fed10df057 [WIN32K]
- Fix a memory leak in EngUnloadImage
- add an ASSERT

svn path=/trunk/; revision=55970
2012-03-03 20:00:51 +00:00
Kamil Hornicek
40a8a3c833 [TRANSLATION]
Dll/cpl UTF-8 conversion patch by Elton Chung.
See issue #6333 for more details.

svn path=/trunk/; revision=55969
2012-03-03 19:29:06 +00:00
Johannes Anderwald
487dd93eed [USBCCGP]
- Handle IRP_MN_QUERY_INTERFACE

svn path=/trunk/; revision=55968
2012-03-03 18:37:23 +00:00
Johannes Anderwald
cc99088ec9 [LIBUSB]
- Fix infinite loop

svn path=/trunk/; revision=55967
2012-03-03 15:16:43 +00:00
Johannes Anderwald
530db30b69 [USBCCG]
- Remove hacks
- Include alternate interface descriptors in the configuration descriptor

svn path=/trunk/; revision=55966
2012-03-03 15:08:28 +00:00
Johannes Anderwald
13daf0dd8a [USBD]
- Rewrite broken USBD_CreateConfigurationRequestEx
- It did not calculate the required urb size correctly 
- It did not store the correct number of provided interfaces
- Length of each interface information was wrong

svn path=/trunk/; revision=55965
2012-03-03 14:41:12 +00:00
Johannes Anderwald
ccdeb596e1 [USBHUB]
- Handle retrieving string descriptors failure

svn path=/trunk/; revision=55964
2012-03-03 11:38:37 +00:00
Cameron Gutman
6a0de53856 - Enable debugging for testbot
svn path=/trunk/; revision=55963
2012-03-02 20:49:53 +00:00
Johannes Anderwald
3436355fe0 [NDK]
- Add missing definitions

svn path=/trunk/; revision=55962
2012-03-02 20:08:51 +00:00
Johannes Anderwald
a3a80c53a9 [USBUHCI]
- Load USBUHCI during 1st stage setup

svn path=/trunk/; revision=55961
2012-03-02 18:30:46 +00:00
Johannes Anderwald
9c2012dd56 [USBEHCI]
- Check if allocation of queue heads failed
- Implement removing of completed queue head

svn path=/trunk/; revision=55960
2012-03-02 18:26:08 +00:00
Cameron Gutman
ae6b312494 [USBUHCI]
- Enable usbuhci for testing
[USBOHCI]
- Add back getting port count in a loop to work around AMD chipset errata

svn path=/trunk/; revision=55959
2012-03-02 18:02:50 +00:00
Cameron Gutman
29571a7f78 [STORAGE]
- Experimental change to try to increase real hardware compatibility
- Load both atapi and uniata and allow atapi to have priority and uniata will pick up devices that atapi doesn't like
- Fix a bug in uniata enumeration

svn path=/trunk/; revision=55958
2012-03-02 17:19:04 +00:00
Johannes Anderwald
c0d2920f33 [USBEHCI]
- Partly implement support for interrupt transfers, WIP, untested

svn path=/trunk/; revision=55957
2012-03-02 14:21:44 +00:00
Dmitry Gorbachev
b5f0b7ae64 [Disk_new]
Silence GCC 4.6 array bounds warning/error.

svn path=/trunk/; revision=55956
2012-03-01 21:43:23 +00:00
Christoph von Wittich
6e9f60e050 [cmake]
this should work according to Amine

svn path=/trunk/; revision=55955
2012-03-01 21:00:22 +00:00
Christoph von Wittich
3e1d7c333e [cmake]
-it looks like IF(${CMAKE_SYSTEM_NAME} MATCHES "Windows") return TRUE on MacOS/Linux when cross compiling
-file(TO_NATIVE_PATH) is broken as well
...
next try


svn path=/trunk/; revision=55954
2012-03-01 20:29:18 +00:00
Christoph von Wittich
c1f93e68a9 [cmake]
fix for the fix
thanks Alex for testing

this should reduce testman log size by at least 500KB

svn path=/trunk/; revision=55953
2012-03-01 19:43:00 +00:00
Christoph von Wittich
4beba5d550 [cmake]
fix for unix/linux

svn path=/trunk/; revision=55952
2012-03-01 19:09:07 +00:00
Kamil Hornicek
e5df8b4d9d [WINED3D|DDRAW|D3D8|D3D9]
Sync to Wine 1.3.37.

svn path=/trunk/; revision=55951
2012-03-01 18:39:47 +00:00
Christoph von Wittich
4d85ddbba8 [cmake]
reduce debug spam (only tested on windows)

svn path=/trunk/; revision=55950
2012-03-01 18:38:22 +00:00
Cameron Gutman
9c50c787b4 [USBOHCI]
- Add a OHCI reset hack based on Linux code

svn path=/trunk/; revision=55948
2012-03-01 18:05:59 +00:00
Timo Kreuzer
51220b9ed1 [NTOSKRNL]
Remove the broken ASSERT once again. Sigh...

svn path=/trunk/; revision=55947
2012-03-01 18:03:08 +00:00
Giannis Adamopoulos
22a4a0901f [freeldr]
- Implement enabling extended debug output in freeldr without the need to recompile it. Add an option in the f8 menu that allows the user to specify which debug channels and levels will be enabled.

svn path=/trunk/; revision=55946
2012-03-01 16:32:00 +00:00
Johannes Anderwald
3735fcc5cd [LIBUSB]
- Check the device descriptor is valid
- Implement function to return max packet size

svn path=/trunk/; revision=55945
2012-03-01 15:51:59 +00:00
Timo Kreuzer
f8a832a4ea Party revert r55722: "[CSRSRV]: Some misc cleanup of dead code. No functional change.", which caused MSVC builds to hang on 2nd stage
svn path=/trunk/; revision=55943
2012-03-01 14:17:23 +00:00
Johannes Anderwald
d431e272f8 [USBLIB]
- Split retrieving the full configuration descriptor into 2 steps
- Fixes errors while initializing usb devices on UHCI controller
- Tested in VmWare / VBox and real hardware

svn path=/trunk/; revision=55942
2012-03-01 14:16:33 +00:00
Johannes Anderwald
348d7d4625 [USBHUB]
- Remove broken assert

svn path=/trunk/; revision=55941
2012-03-01 14:13:21 +00:00
Johannes Anderwald
1de7f626b6 [USBUHCI]
- Fix usblib regression

svn path=/trunk/; revision=55940
2012-03-01 12:49:20 +00:00
Kamil Hornicek
e1a1d2a0d6 [TRANSLATION]
Missed this one in r55891.

svn path=/trunk/; revision=55939
2012-03-01 11:30:51 +00:00
Sir Richard
64d3af216f [NTOS]: A few other fixups to the page fault path:
1) Assert on empty kernel PTE instead of handling it as a bugcheck. Windows ASSERTs too. Also clarify some ASSERTs which Windows also does versus ASSERTs we are only doing due to lack of support for said feature.
2) User page fault path can now distinguish between a user-mode PTE fault, and a kernel-mode fault on a user PDE, both by creating a correct kernel PDE when needed instead of always creating user PTEs, as well as by only touching the UsedPageTableEntry reference counting mechanism when a user-address is in play.
3) Related to #2, also recognize when the faulting PTE is actually a PDE in the self-mapping region -- another scenario when the "user fault" is actually a kernel fault for a user PDE.
4) Add one more path where a Paged Pool PDE fixup can save the day instead of always faulting.
5) Finally, related to #2 and #3, handle the MI_IS_PAGE_TABLE_OR_HYPER_ADDRESS scenario for a User PDE by treating it as a user fault. The code looks deceptively similar but there are slight differences which require the separate codepaths with some duplicated code. The magic is in the ordering.
In trunk, these changes should not cause any regressions (let's hope so). On the internal VAD-based Virtual Memory branch, they now allow booting to 3rd stage and a fully usable ReactOS environment. MEMORY_AREA_VIRTUAL_MEMORY is gone on that branch. It's coming.
[NTOS]: Use PAGE_READWRITE as hardcoded protection instead of PAGE_EXECUTE_READWRITE -- the difference is meaningless on ReactOS Mm but actually causes issues on ARM3 with VADs.

svn path=/trunk/; revision=55938
2012-02-29 23:11:21 +00:00
Kamil Hornicek
536a78293d [BOOTDATA]
reactos.dff was superseded by reactos.dff.in

svn path=/trunk/; revision=55937
2012-02-29 20:43:23 +00:00
Pierre Schweitzer
3f3e67e418 [NTOSKRNL]
Implement FsRtlNotifyFilterChangeDirectory

svn path=/trunk/; revision=55936
2012-02-29 20:11:51 +00:00
Pierre Schweitzer
a7644056d7 [NTOSKRNL]
Forgot to commit that file

svn path=/trunk/; revision=55935
2012-02-29 20:03:46 +00:00
Pierre Schweitzer
7e1f7945ed [NTOSKRNL]
Stub FsRtlCancelNotify
Implement FsRtlCheckNotifyForDelete, FsRtlNotifyCompleteIrp, FsRtlNotifyCompleteIrpList, FsRtlNotifySetCancelRoutine

svn path=/trunk/; revision=55934
2012-02-29 20:01:21 +00:00
Cameron Gutman
04177d9d19 [ROSAUTOTEST]
- Flush file buffers after writing to the crash recovery journal

svn path=/trunk/; revision=55933
2012-02-29 19:44:44 +00:00
Pierre Schweitzer
9624a85234 [NTOSKRNL]
Fix a bug in FsRtlNotifyCleanup: only remove notification from list when we're about to complete it.

svn path=/trunk/; revision=55932
2012-02-29 19:43:35 +00:00
Pierre Schweitzer
4c30c5549a [NTOSKRNL]
Fix formatting, no code change

svn path=/trunk/; revision=55931
2012-02-29 19:29:03 +00:00
Pierre Schweitzer
256540b703 [NTOSKRNL]
Use LIST_ENTRY not pointer on them as head

svn path=/trunk/; revision=55930
2012-02-29 19:26:43 +00:00
Pierre Schweitzer
171a3edfaa [NTOSKRNL]
Get rid off TAG macro

svn path=/trunk/; revision=55929
2012-02-29 19:12:59 +00:00
Cameron Gutman
bc96c38875 [USBEHCI]
- Add back the m_PortResetInProgress hack for broken vbox behavior

svn path=/trunk/; revision=55928
2012-02-29 19:05:16 +00:00
Johannes Anderwald
82d9d774ca [USBHUB]
- Check if FDO is root hub fdo
- Partly implement fdo hub initialization
- Implement IOCTL_INTERNAL_USB_GET_DEVICE_HANDLE, IOCTL_INTERNAL_USB_GET_ROOTHUB_PDO

svn path=/trunk/; revision=55927
2012-02-29 18:51:07 +00:00
Cameron Gutman
9e6f877683 [NTOSKRNL]
- Add a missing device node flag to legacy reported devices to avoid an assertion failure during installation
- The fact that this was exposed by a change in device node linking order terrifies me

svn path=/trunk/; revision=55926
2012-02-29 18:50:07 +00:00
Jérôme Gardou
d5b957c1ac [NTOSKRNL/MM]
- assert PDE ref count consistency everywhere
 - fix the fix(tm) : after reference decrement, the maximum must not be reached

svn path=/trunk/; revision=55925
2012-02-29 17:41:45 +00:00
Aleksey Bragin
4aeb0801e9 - Fix one more assert in addition to 55921.
svn path=/trunk/; revision=55924
2012-02-29 17:13:05 +00:00
Johannes Anderwald
7de856c877 [USBHUB]
- Clean up code, fix memory leaks, check returns codes, add asserts
- Use root device handle which is is prerequisite for usb hub support
[USBLIB]
- Fix root hub handle checks
- Add more code for hub support

svn path=/trunk/; revision=55923
2012-02-29 17:08:32 +00:00
Sir Richard
cbfb67842f [NTOS]: Define the Decommitted PTE structure.
svn path=/trunk/; revision=55922
2012-02-29 16:58:46 +00:00
Alex Ionescu
1401fbea9b [NTOSKRNL]: Fix broken UsedPageTableEntries/page table ref counting ASSERTs. The reference can be UP TO 1024, inclusive, but no more. This might fix a bunch of assertions related to this. Thanks to Richard for catching this one during his VAD work.
svn path=/trunk/; revision=55921
2012-02-29 16:25:43 +00:00
Johannes Anderwald
d485558f04 [USBUHCI]
- Try fix build

svn path=/trunk/; revision=55920
2012-02-29 16:15:05 +00:00
Timo Kreuzer
232e8cd9f5 [GDI32]
Fix MSVC warnings

svn path=/trunk/; revision=55919
2012-02-29 15:34:43 +00:00
Johannes Anderwald
a3b5c86363 [USBOHCI]
- Fix msvc build

svn path=/trunk/; revision=55918
2012-02-29 11:06:57 +00:00
Johannes Anderwald
a755140405 [USBEHCI]
- Fix stack corruption found by msvc
- Fix msvc build

svn path=/trunk/; revision=55917
2012-02-29 10:59:48 +00:00
Johannes Anderwald
ad333c1655 [USBEHCI]
- Fix regressions caused by libusb

svn path=/trunk/; revision=55916
2012-02-29 09:41:34 +00:00
Art Yerkes
743a8996a2 [FSRTL]
Import mostly-complete file locking implementation from arty-newcc.

svn path=/trunk/; revision=55915
2012-02-29 09:18:57 +00:00
Art Yerkes
9d75a5ebae [FSRTL]
Import code from Pierre Schweitzer's fsrtl branch.
- Large MCB and MCB
- Change notification

svn path=/trunk/; revision=55914
2012-02-29 09:18:01 +00:00
Johannes Anderwald
c131df4a4c [USBOHCI]
- Fix regressions introduced by libusb

svn path=/trunk/; revision=55913
2012-02-29 09:15:42 +00:00
Cameron Gutman
bf426aafef [NTOSKRNL]
- Fix linking of device children to respect the enumeration order instead of linking in reverse enumeration order
- PCI cards (and other devices) now enumerate in the correct order

svn path=/trunk/; revision=55912
2012-02-29 06:08:15 +00:00
Cameron Gutman
4ba7e8a742 - Missed this bit
svn path=/trunk/; revision=55911
2012-02-29 05:01:31 +00:00
Cameron Gutman
90e94e42c5 [USBUHCI][USBOHCI][USBEHCI]
- Don't modify PCI configuration in AddDevice function
[USBEHCI]
- Don't halt the controller while the BIOS still has control of it

svn path=/trunk/; revision=55910
2012-02-29 04:58:27 +00:00
Johannes Anderwald
6a2de16a81 [USBOHCI]
- Remove duplicated code
[USBUHCI]
- Use libusb

svn path=/trunk/; revision=55909
2012-02-28 22:09:57 +00:00
Johannes Anderwald
300e78822d [USBOHCI]
- Fix build

svn path=/trunk/; revision=55908
2012-02-28 19:01:02 +00:00
Johannes Anderwald
071158cb87 [USBOHCI]
- Use libusb library
- Cleanup code
[USBEHCI]
- Apply interface changes

svn path=/trunk/; revision=55907
2012-02-28 18:54:30 +00:00
Alex Ionescu
c615973655 [NDK]: Clarify copyright granting and attribution requirements in NDK readme.
svn path=/trunk/; revision=55906
2012-02-28 18:38:28 +00:00
Timo Kreuzer
dc4b573964 [NDK]
- Transfer copyright to Alex Ionescu.
- Remove obsolete file

svn path=/trunk/; revision=55905
2012-02-28 18:21:34 +00:00
Alex Ionescu
67cac70ffa [NDK]: Update readme.txt and commit the license files which were never in the repository for some reason.
svn path=/trunk/; revision=55904
2012-02-28 17:57:16 +00:00
Timo Kreuzer
35784af061 [NTSOKRNL]
Remove a broken ASSERT. Fixes MSVC build


svn path=/trunk/; revision=55903
2012-02-28 17:50:21 +00:00
Johannes Anderwald
ec76cc0bc3 [USBEHCI]
- Fix msvc build

svn path=/trunk/; revision=55902
2012-02-28 17:26:16 +00:00
Johannes Anderwald
e9012aba15 [USBEHCI]
- Use libusb library
- Cleanup code

svn path=/trunk/; revision=55901
2012-02-28 15:13:30 +00:00
Johannes Anderwald
fd61a9d77c [LIBUSB]
- Add library which implements generic host controller tasks

svn path=/trunk/; revision=55900
2012-02-28 15:01:27 +00:00
Johannes Anderwald
e021058e30 [USBEHCI]
- Rewrite configuration handling, WIP

svn path=/trunk/; revision=55899
2012-02-28 10:29:37 +00:00
Cameron Gutman
72a7d22233 [NTOSKRNL]
- Fix PDE reference counting
- Now only the recursive fault remains as an issue in the page out path

svn path=/trunk/; revision=55898
2012-02-28 09:30:53 +00:00
Cameron Gutman
24264b8dc2 [NTOSKRNL]
- Change MmDereferencePage to MmReleasePageMemoryConsumer to do proper page usage tracking
- Remove an unnecessary reference and dereference

svn path=/trunk/; revision=55897
2012-02-28 08:34:16 +00:00
Cameron Gutman
3998099eae [EXT2LIB]
- Fix formatting FAT or NTFS volumes into EXT2 by defining ZAP_BOOTBLOCK and fixing a bug in zap_sector()
[USETUP]
- Enable ext2 as an option in setup
- Formatting and building file copy list works but setup stalls shortly after starting to copy files (NewCC on)

svn path=/trunk/; revision=55896
2012-02-28 05:10:40 +00:00
Cameron Gutman
29f3456caf [NEWCC]
- Fix several locking issues to better fit with RosMm
- Page out is critical as we use it now (shutdown) so force address space locking
- Fix an address space lock leak for VM regions
- Quiet some debugging and enable/change some other
- Still some lingering issues in page out exist which seem to be related to zefklop's PDE ref counting stuff and a weird one where we fault on the PFN database
- Besides the aforementioned issues, NewCC is surprisingly solid. I was able to boot to 3rd stage without a problem and run some apps.

svn path=/trunk/; revision=55895
2012-02-28 04:01:33 +00:00
Sir Richard
6086842a76 [NTOS]: A few key changes to the page fault path:
1) MiCheckVirtualAddress should be called *after* determining if the PTE is a Demand Zero PTE. This is because when memory is allocated with MEM_RESERVE, and then MEM_COMMIT is called later, the VAD does not have the MemCommit flag set to TRUE. As such, MiCheckVirtualAddress returns MM_NOACCESS for the VAD (even though one is found) and the demand zero fault results in an access violation. Double-checked with Windows and this is the right behavior.
2) MiCheckVirtualAddress now supports non-commited reserve VADs (ie: trying to access MEM_RESERVE memory). It used to ASSERT, now it returns MM_NOACCESS so an access violation is raised. Before change #1, this would also happen if MEM_COMMIT was later performed on the ranges, but this is now fixed.
3) When calling MiResolveDemandZeroFault, we should not make the PDE a demand zero PDE. This is senseless. The whole point is that the PDE does exist, and MiInitializePfn needs it to keep track of the page table allocation. Removed the nonsensical line of code which performed cleard the PDE during a demand-zero fault.
I am able to boot to 3rd stage with these changes, so I have seen no regressions. Additionally, with these changes, the as-of-yet-uncommitted VAD-based Virtual Memory code completes 1st stage setup successfully, instead of instantly crashing on boot.

svn path=/trunk/; revision=55894
2012-02-27 23:42:22 +00:00
Sir Richard
8e25b78c44 [NTOS]: Micro-formatting changes to NtAllocateVirtualMemory and NtFreeVirtualMemory which make it easier for me to cut/paste the new VAD-based code in. No actual changes to behavior.
svn path=/trunk/; revision=55893
2012-02-27 23:36:25 +00:00
Amine Khaldi
c3baab78ea [CMAKE]
* Remove some accidental changes.
[INETCPL]
* Include the correct pt language rc file.

svn path=/trunk/; revision=55892
2012-02-27 22:52:09 +00:00
Amine Khaldi
5e9ad9f31b * ReactOS binaries hold resource files to *all* the languages we support, which increases their size, and increases the memory footprint, and on top of that they become useless as soon as you select a language in the 1st stage installer. Introduce a way to compile ros with one localization so that we can compile ReactOS with only one localization, which eliminates the problem mentioned above, and allows us to reduce the compile time, the disk space needed for build, and the runtime memory footprint.
* The default build will continue to include all the localizations, but you can set it otherwise through a cmake variable (I18N_LANG) at configure time.
* Brought to you by Team Localization (Kamil Hornicek and Amine Khaldi) ;)

svn path=/trunk/; revision=55891
2012-02-27 22:46:20 +00:00
Sylvain Petreolle
64be055c58 [KERNEL32_WINETEST]
Addendum to 55888:
allow to run MEM_RESET tests in interactive mode.

svn path=/trunk/; revision=55890
2012-02-27 20:19:21 +00:00
Johannes Anderwald
1efde9717f [USBSTOR]
- Do not retry commands more than once
- Enable error handling in the data completion stage

svn path=/trunk/; revision=55889
2012-02-27 20:10:46 +00:00
Kamil Hornicek
f051482d69 [KERNEL32_WINETEST]
Disable tests that would hit asserts due to current work on VM. Requested functionality is missing and will be for some time.

svn path=/trunk/; revision=55888
2012-02-27 19:33:15 +00:00
Cameron Gutman
ac6c5a4738 [NTOSKRNL]
- Fix kernel memory corruption when a driver fails to initialize
- Fix a handle leak in a failure case

svn path=/trunk/; revision=55887
2012-02-27 19:31:11 +00:00
Alex Ionescu
c61e296b73 [NTOSKRNL]: Don't assert if there's no VAD found in NtFreeVirtualMemory... perhaps a wrong address was used on purpose (such as during a Winetest). Simply do what ROS does when a MAREA is not found and return failure. However if a VAD *was* found, keep all the other ASSERTs...
svn path=/trunk/; revision=55886
2012-02-27 17:17:31 +00:00
Sir Richard
7b2b759953 [NTOS]: Continued preparations for VAD-based Virtual Memory. ASSERT in NtAllocateVirtualMemory any functionality that will not be supported by the VAD-based system (and is not really supported right now either). Make NtFreeVirtualMemory ASSERT that a correct VAD has been found when freeing memory -- which we always expect at this point. Also ASSERT that the VAD has a valid range and flags.
[NTOS]: Do a more stringent check to refuse COPY_ON_WRITE flag sent through NtAllocateVirtualMemory.
[NTOS]: For VM-based Memory Areas, acquire and then release the process working set lock while inserting the VAD, to simulate what the VAD-based Virtual Memory behavior will look like.
[NTOS]: Disable paging for VM-based Memory Areas since this will not be supported with VADs.
[KERNEL32]: CopyLoop was requesting 2 zero bits when calling NtAllocateVirtualMemory. Not sure if this was really the intent or not, but both the new as well as the old NtAllocateVirtualMemory do not support this (the new one will ASSERT). Since this functionality never worked, request 0 bits instead to avoid hitting the ASSERT.
Any problems with what the VAD system will introduce should be revealed by now. From this build until the one which will have the VAD-based system in place, no further VM-related issues should crop up.

svn path=/trunk/; revision=55885
2012-02-27 17:10:44 +00:00
Sylvain Petreolle
806732f98e [USETUP]
Fix installation directories set into unattend.inf,
they were ignored and installed always into \ReactOS.

svn path=/trunk/; revision=55884
2012-02-27 16:37:48 +00:00
Sir Richard
aaa881ed5a [NTOS]: Preparations for the VAD-based Virtual Memory system begin. Disable changing protection on Virtual Memory pages, and make all pages PAGE_EXECUTE_READWRITE for now. In theory, this should not cause any real problems, and sets the stage for the initial functionality regressions that the VAD-based system will introduce. I will eventually plan on fixing them.
svn path=/trunk/; revision=55883
2012-02-27 16:12:11 +00:00
Alex Ionescu
2c7855ed9d [NTOSKRNL]: Drop the reference on the PDE for kernel stack pages being deleted, now that zekflop has made all PDEs ARM3-owned.
svn path=/trunk/; revision=55882
2012-02-27 16:10:30 +00:00
Alex Ionescu
270acce7b4 [NTOSKRNL]: This should not fix anything.
svn path=/trunk/; revision=55881
2012-02-27 15:50:25 +00:00
Alex Ionescu
ef59218343 [CMLIB]: Great job -- crashing trunk on a pool tag just so people can be forced to know what it is. Change the registry pool tag from "th" (wtf?) to "CM25" which is a bit closer to Windows. In reality all of TAG_CM should be broken out in many more pieces. Fixes boot breakpoint.
svn path=/trunk/; revision=55880
2012-02-27 15:28:06 +00:00
Sir Richard
5009959437 [NTOS]: Handle memory allocation failures correctly, supporting all the required debug and caller flags (such as RAISE_ON_FAILURE). We no longer simply just return "NULL" in failure cases.
[NTOS]: Implement counters for paged and nonpaged pool. First-stage setup now shows Kernel Pool values again, as does Task Manager. Fixes the regression introduced when pool/non-paged pool was no longer managed through "memory consumer" API.
[NTOS]: Add more debugging paths and flags that were sent over from the "Aleksey Pool Patch". Most of them are not implemented.
[NTOS]: Fix a missing case when a pool header check was not being done.
[NTOS]: Check IRQL levels during pool allocation and free.
With tags and the counters, pool leaks should be massively more debuggable now.

svn path=/trunk/; revision=55879
2012-02-27 08:21:15 +00:00
Dmitry Gorbachev
567e9e3a71 [NDK]
- Fix declaration of HalPrivateDispatchTable for FreeLDR.

[FREELDR]
- Rename BiosMemoryMap to XboxMemoryMap. Another BiosMemoryMap is in meminit.c

[NTOSKRNL][WIN32K][FTP]
- Fix some variables.

svn path=/trunk/; revision=55878
2012-02-26 19:04:00 +00:00
Kamil Hornicek
260ccab1cd [BOOTDATA]
Include unattend.inf by default (as it was almost done in r28835). No need to have it "disabled" twice.

svn path=/trunk/; revision=55876
2012-02-26 15:05:59 +00:00
Cameron Gutman
08262c3c70 [USBOHCI][USBUHCI][USBEHCI]
- Don't overwrite the status from ClearPortFeature with STATUS_SUCCESS
- Partially fixes full speed port handoff

svn path=/trunk/; revision=55875
2012-02-26 06:33:21 +00:00
Sir Richard
b6c8b61ceb [NTOS]: Implement pool tagging for large allocations too. Once again, no expansion is implemented.
svn path=/trunk/; revision=55874
2012-02-26 05:53:53 +00:00
Amine Khaldi
512c21b125 [CMAKE]
* Introduce a way to compile GCC builds with PDB style debug info (isolated into .dbg files). This will reduce the memory footprint considerably, among other benefits.

svn path=/trunk/; revision=55873
2012-02-25 23:50:38 +00:00
Sir Richard
ec4df1d177 [NTOS]: Implement pool tag tracking and pool tag querying. Big Pool tags are not yet supported, but will be shortly. Expansion is not yet supported.
svn path=/trunk/; revision=55872
2012-02-25 23:14:37 +00:00
Cameron Gutman
fb942b740a [NTOSKRNL]
- Set the SYNCHRONIZE flag in desired access when opening a registry hive for synchronous I/O

svn path=/trunk/; revision=55871
2012-02-25 22:27:27 +00:00
Amine Khaldi
04e46d06af [CMAKE]
* Get GCC version and add some compiler flags conditionally based on it. Dedicated to Dmitry.

svn path=/trunk/; revision=55870
2012-02-25 22:01:20 +00:00
Amine Khaldi
183b2632a2 * Delete unused startup code.
svn path=/trunk/; revision=55869
2012-02-25 21:48:43 +00:00
Dmitry Gorbachev
1550726927 [FREELDR][NTOSKRNL][TOOLS]
- Delete unused files.
- Use extension LDS instead of LNK (Windows shortcut file) for LD linker scripts.

svn path=/trunk/; revision=55868
2012-02-25 21:45:56 +00:00
Cameron Gutman
aeac841aa8 [USBSTOR]
- Fix corruption of SCSI read format capacity by writing the LUN to the wrong location

svn path=/trunk/; revision=55867
2012-02-25 21:18:17 +00:00
Kamil Hornicek
3db7e1b78c Fix build?
svn path=/trunk/; revision=55866
2012-02-25 21:09:28 +00:00
Sir Richard
ca1f0374ab [NTOS]: Implementation of the "Generic DPC" functionality from Windows NT 5.2, which is a forced-synchronization all-CPU DPC callback mechanism. Implemented, and exported all APIs requireted, and added to NDK. NOTE: This implementation only works for Single Processor systems (NT_UP) since this is all that ReactOS currently works on.
This is needed for poolmon/querying pool tags.

svn path=/trunk/; revision=55865
2012-02-25 20:40:06 +00:00
Alex Ionescu
2a87bcea2b [NDK]: Add missing type to NDK.
svn path=/trunk/; revision=55864
2012-02-25 20:38:20 +00:00
Alex Ionescu
b90bb9d570 [CSRSRV]: Quiet, you!
svn path=/trunk/; revision=55863
2012-02-25 20:31:28 +00:00
Giannis Adamopoulos
23c1c259f0 [win32k]
- move wallpaper info from WINSTATION_OBJECT to SPIVALUES. Also remove some unused fields from WINSTATION_OBJECT

svn path=/trunk/; revision=55862
2012-02-25 20:06:15 +00:00
Pierre Schweitzer
f1838c9108 [USER32]
Correct user32 japanese translation (and fix build as well)

svn path=/trunk/; revision=55861
2012-02-25 19:28:00 +00:00
Amine Khaldi
f17583a648 [SHELL32]
* Misses these.

svn path=/trunk/; revision=55860
2012-02-25 19:02:49 +00:00
Amine Khaldi
acf789af2a [SHELL32]
* Prefix the local version.h and version.rc with shell32_.
* Include the rgs resource files in a portable way.

svn path=/trunk/; revision=55859
2012-02-25 18:52:16 +00:00
Sir Richard
a62fbc4a47 [NTOS]: Compute the size of, and allocate, the Pool Tracker Table and the Big Page Tracker Table, which are the core data structures that make pool tagging functionality work.
svn path=/trunk/; revision=55858
2012-02-25 18:51:21 +00:00
Giannis Adamopoulos
bde6f12e52 [win32k]
- null terminate DesktopObject->pDeskInfo->szDesktopName and WindowStationObject->Name
- null terminate the buffer when NtUserGetObjectInformation is called with UOI_NAME parameter
- should fix a random failure in user32:desktop tests

svn path=/trunk/; revision=55857
2012-02-25 18:26:05 +00:00
Amine Khaldi
7d3f5052d0 * Addendum to r55855.
svn path=/trunk/; revision=55856
2012-02-25 17:23:58 +00:00
Amine Khaldi
818418643e * Rbuild, our build system, has served us well so far, but its usefulness has since been vastly overshadowed by its awfulness. It's time to fix it.
svn path=/trunk/; revision=55855
2012-02-25 17:23:37 +00:00
Eric Kohl
0fa8a3b725 [RTL]
Formatting, no code changes.

svn path=/trunk/; revision=55854
2012-02-25 15:20:32 +00:00
Cameron Gutman
11c95e90a7 [USBEHCI]
- Create a macro for properly checking for low speed devices
- Check again for a low speed device after the EHCI reset completes
- Don't ignore status changes on ports that we have released (revert part of r55851)

svn path=/trunk/; revision=55853
2012-02-25 06:23:12 +00:00
Cameron Gutman
266e31d825 [USBHUB]
- Fix reset event handling in cases where reset does not end up in a new device created
- My MacBook Pro completes USB initialization free of hangs now (usbstor disabled)

svn path=/trunk/; revision=55852
2012-02-25 05:46:19 +00:00
Cameron Gutman
c14c8d7ef4 [USBHUB]
- Handle errors returned from the HCD correctly
[USBEHCI]
- Discard any changes on ports that were given to the companion controller

svn path=/trunk/; revision=55851
2012-02-25 04:45:30 +00:00
Cameron Gutman
7991e67594 [USBEHCI]
- More EHCI reset fixes and general code cleanup

svn path=/trunk/; revision=55850
2012-02-25 04:27:39 +00:00
Johannes Anderwald
7d6c0c114c [USBEHCI]
- Fix reset port sequence #2
- Clear unwanted bits
- Fix wait time as in spec
- Wait max 500ms for the reset bit to clear, otherwise restart the reset sequence
- Check if work item is currently queued

svn path=/trunk/; revision=55849
2012-02-25 03:28:17 +00:00
Cameron Gutman
b4d2570c4b [USBOHCI]
- Implement per-port power control

svn path=/trunk/; revision=55848
2012-02-25 02:20:15 +00:00
Johannes Anderwald
494fa29ffa [USBCCGP]
- Formatting, no code changes

svn path=/trunk/; revision=55847
2012-02-25 00:35:40 +00:00
Cameron Gutman
e188a743cb [INF]
- Fix the Live CD regression (RBuild only - The irony is not lost on me) caused by r55555
- There is another regression that still prevents booting though 

svn path=/trunk/; revision=55846
2012-02-25 00:34:48 +00:00
Cameron Gutman
0e05873866 [USBOHCI]
- Fix a broken assertion and print out the alignment mask and HCCA pointer

svn path=/trunk/; revision=55845
2012-02-24 23:14:19 +00:00
Cameron Gutman
17b865ebc2 [USBOHCI]
- Fix various initialization bugs

svn path=/trunk/; revision=55844
2012-02-24 23:05:22 +00:00
Johannes Anderwald
d9f4f1b411 [USBUHCI]
- Invert data toggle

svn path=/trunk/; revision=55843
2012-02-24 17:58:55 +00:00
Giannis Adamopoulos
419f51fd4c [win32k]
-remove unrelated and unused information from the WINSTATION_OBJECT

svn path=/trunk/; revision=55842
2012-02-24 15:32:13 +00:00
Giannis Adamopoulos
5bd20ac181 [win32k]
- Properly create the WindowStations directory in NtUserInitialize. Now we take into account the fact that if we are not in session 0, it should be created in \Sessions direcory
- Clean up IntParseDesktopPath and make it use the correct WindowStations 
- Add some comments and cleanup
- Remove the unused IntGetFullWindowStationName, IntGetWindowStationObject and IntGetWinStaObj

svn path=/trunk/; revision=55841
2012-02-24 15:22:11 +00:00
Stefan Ginsberg
f1d41e1808 [NTOSKRNL]
- Remove nasty hack to make Windows PCI driver load. This may not be required after the fixes that were committed after this hack. If it is still necessary then please fix whatever issue makes the PCI driver crash instead of relying on a return from bugcheck call to work...

[DDK]
- Mark KeBugCheckEx as noreturn again. Should fix Prefast issues where it thought execution could return from the call and would warn about false issues.

svn path=/trunk/; revision=55840
2012-02-24 13:51:52 +00:00
Art Yerkes
b10383d1ff [NEWCC]
Integrate september's speed improvements, which now work.
Remove the flush hack when unpinning cache segments.

svn path=/trunk/; revision=55839
2012-02-24 11:33:23 +00:00
Daniel Reimer
e81ed04aa0 Update for rapps
svn path=/trunk/; revision=55838
2012-02-24 10:33:06 +00:00
Art Yerkes
3e19b0bab3 [NEWCC]
Update used page table entry counts when mapping pages in cache sections.

svn path=/trunk/; revision=55837
2012-02-24 10:05:06 +00:00
Cameron Gutman
34136e69cf [USBOHCI]
- Try to fix some real hardware OHCI initialization hangs

svn path=/trunk/; revision=55836
2012-02-24 07:26:43 +00:00
Dmitry Gorbachev
6ebf8c2537 [FREELDR][NTOSKRNL]
Update linker scripts.

svn path=/trunk/; revision=55835
2012-02-23 18:59:24 +00:00
Stefan Ginsberg
cd616fb1b2 [CMAKE]
- Specify C4700 (uninitialized variable usage) to cause an error on compile as this is very likely to result in broken code.
[NTDLL]
- Disable ASSERT in LdrpSearchPath that could be reading an uninitialized variable. The routine is not fully implemented so this should likely be re-enabled once it is.
[BROWSEUI]
- Add missing call to BuildRebarBandInfo, or we would end up with an unitialized variable sent to SendMessage.
[PCIX]
- Fix broken ASSERT
- Fix usage of wrong (and uninitialized) variable in the Unicode case for PciGetDescriptionMessage.
[DDK]
- Prepend "_" to local variable of NdisChainBufferAtBack. Fixes code in ndisuio that called this using the same name as the macro's variable (which resulted in NdisChainBufferAtBack assigning the variable to itself).
[WIN32K]
- Fix WinPosShowIconTitle that checked if a variable was NULL before assigning it to anything.

svn path=/trunk/; revision=55834
2012-02-23 13:06:11 +00:00
Amine Khaldi
e14f67f95d [NEWCC]
A reintegration checkpoint for the NewCC branch, brought to you by Team NewCC.

Differences with current ReactOS trunk:

* A new memory area type, MEMORY_AREA_CACHE, is added, which represents a mapped region of a file. In NEWCC mode, user sections are MEMORY_AREA_CACHE type as well, and obey new semantics. In non-NEWCC mode, they aren't used.
* A way of claiming a page entry for a specific thread's work is added. Placing the special SWAPENTRY value MM_WAIT_ENTRY in a page table, or in a section page table should indicate that memory management code is intended to wait for another thread to make some status change before checking the state of the page entry again. In code that uses this convention, a return value of STATUS_SUCCESS + 1 is used to indicate that the caller should use the MiWaitForPageEvent macro to wait until somebody has change the state of a wait entry before checking again. This is a lighter weight mechanism than PAGEOPs.
* A way of asking the caller to perform some blocking operation without locks held is provided. This replaces some spaghettified code in which locks are repeatedly taken and broken by code that performs various blocking operations. Using this mechanism, it is possible to do a small amount of non-blocking work, fill in a request, then return STATUS_MORE_PROCESSING_REQUIRED to request that locks be dropped and the blocking operation be carried out. A MM_REQUIRED_RESOURCES structure is provided to consumers of this contract to use to accumulate state across many blocking operations. Several functions wrapping blocking operations are provided in ntoskrnl/cache/reqtools.c.
* Image section pages are no longer direct mapped. This is done to simplify consolidation of ownership of pages under the data section system. At a later time, it may be possible to make data pages directly available to image sections for the same file. This is likely the only direct performance impact this code makes on non-NEWCC mode.

RMAPs:

* A new type of RMAP entry is introduced, distinguished by RMAP_IS_SEGMENT(Address) of the rmap entry. This kind of entry contains a pointer to a section page table node in the Process pointer, which in turn links back to the MM_SECTION_SEGMENT it belongs to. Therefore, a page belonging only to a segment (that is, a segment page that isn't mapped) can exist and be evicted using the normal page eviction mechanism in balance.c. Each of the rmap function has been modified to deal with segment rmaps.
* The low 8 bits of the Address field in a segment rmap denote the entry number in the generic table node pointed to by Process that points to the page the rmap belongs to. By combining them, you can determine the file offset the page belongs to.
* In NEWCC mode, MmSharePageEntry/UnsharePageEntry are not used, and instead the page reference count is used to keep track of the number of mappings of a page, allowing the last reference expiring to allow the page to be recycled without much intervention. These are still used in non-NEWCC mode. One change has been made, the count fields have been narrowed by 1 bit to make room for a dirty bit in SSE entries, needed when a page is present but unmapped.

Section page tables:

* The section page tables are now implemented using RtlGenericTables. This enables a fairly compact representation of section page tables without having the existence of a section object imply 4k of fake PDEs. In addition, each node in the generic table has a wide file offset that is a multiple of 256 pages, or 1 megabyte total. Besides needing wide file offsets, the only other visible change caused by the switch to generic tables for section page tables is the need to lock the section segment before interacting with the section page table.

Eviction:

* Page eviction in cache sections is accomplished by MmpPageOutPhysicalAddress. In the case of a shared page, it tries to remove all mappings of the indicated page. If this process fails at any point, the page will simply be drawn back into the target address spaces. After succeeding at this, if TRUE has been accumulated into the page's dirty bit in the section page table, it is written back, and then permanently removed.

NewCC mode:

* NEWCC mode is introduced, which rewrites the file cache to a set of cache stripes actively mapped, along with unmapped section data.
* NewCC is more authentic in its interpretation of the external interface to the windows cache than the current cache manager, implementing each of the cache manager functions according to the documented interface with no preconceived ideas about how anything should be implemented internally. Cache stripes are implemented on top of section objects, using the same memory manager paths, and therefore economizing code and complexity. This replaces a rather complicated system in which pages can be owned by the cache manager and the memory manager simultaneously and they must cooperate in a fairly sophisticated way to manage them. Since they're quite interdependent in the current code, modifying either is very difficult. In NEWCC, they have a clear division of labor and thus can be worked on independently.
* Several third party filesystems that use the kernel Cc interface work properly using NEWCC, including matt wu's ext3 driver.
* In contrast with code that tries to make CcInitializeCacheMap and CcUninitializeCacheMap into a pair that supports reference counting, NEWCC lazily initializes the shared and private cache maps as needed and uses the presence of a PrivateCacheMap on at least one file pointing to the SharedCacheMap as an indication that the FILE_OBJECT reference in the SharedCacheMap should still be held. When the last PrivateCacheMap is discarded, that's the appropriate time to tear down caching for a specific file, as the SharedCacheMap data is allowed to be saved and reused. We honor this by making the SharedCacheMap into a depot for keeping track of the PrivateCacheMap objects associated with views of a file.

svn path=/trunk/; revision=55833
2012-02-23 12:03:06 +00:00
Cameron Gutman
8cf1d52f96 [USBUHCI]
- Delay for the correct amount of time when performing a global reset and a port reset
- Loosen the loop timings a bit to allow for more time for real hardware to complete start/stop/reset
- Clear only the change bits that were set and handle both bits in the either case
- Perform a synchronous callback when the reset completes

svn path=/trunk/; revision=55832
2012-02-23 05:27:24 +00:00
Johannes Anderwald
62517e4042 [USBUHCI]
- Remove left-over assert
- Remove dead code
- Enable port after reset

svn path=/trunk/; revision=55831
2012-02-23 05:07:07 +00:00
Johannes Anderwald
36bbd6f1a1 [USBUHCI]
- Fix initialization bugs in real hardware

svn path=/trunk/; revision=55830
2012-02-23 03:22:57 +00:00
Johannes Anderwald
03ac0279e8 [HIDCLASS] [USBUHCI]
- Silence traces

svn path=/trunk/; revision=55829
2012-02-23 01:51:55 +00:00
Johannes Anderwald
3d22956ff8 [USBUHCI]
- OHCI -> UHCI
- Implement timer routine which checks for new detected devices. In case a port change is detected, the sce callback routine is invoked

svn path=/trunk/; revision=55828
2012-02-23 01:27:19 +00:00
Cameron Gutman
a982c0c4c9 [NTOSKRNL]
- Reenable and fix the correct reset code
[HIDCLASS]
- Disable removal of PDOs due to IRP cancellation issues
[USBEHCI][USBOHCI][USBUHCI]
- Disable removal of FDOs due to reinitialization issues

svn path=/trunk/; revision=55827
2012-02-23 01:23:30 +00:00
Cameron Gutman
8afc22a95d [NTOSKRNL]
- Fix device node flag corruption

svn path=/trunk/; revision=55826
2012-02-23 00:41:50 +00:00
Johannes Anderwald
fc053ddc31 [USBCCGP]
- Print interface details when dumping the function descriptor
- Fix bug USBCCG_AppendInterfaceNumber, which is not yet used

svn path=/trunk/; revision=55825
2012-02-23 00:37:41 +00:00
Johannes Anderwald
5f9384fd6f [HIDPARSE]
- Fix several wrong translated scan codes

svn path=/trunk/; revision=55824
2012-02-23 00:35:46 +00:00
Johannes Anderwald
488d2d353b [HIDCLASS]
- Silence traces
- Signal event when last pending transfer is done
- Reject new transfers when stop is in progress

svn path=/trunk/; revision=55823
2012-02-23 00:34:36 +00:00
Cameron Gutman
e8ad1a668c [USBUHCI]
- Add rbuild file and enable build

svn path=/trunk/; revision=55821
2012-02-22 23:35:11 +00:00
Johannes Anderwald
4b02150831 [USBUHCI]
- Silence traces
- Implement abort pipe
- Implement support for interrupt transfers

svn path=/trunk/; revision=55820
2012-02-22 23:24:53 +00:00
Cameron Gutman
86ebeb35cc [NTOSKRNL]
- Add back the reset hack of doom to circumvent broken removal code in just about every driver

svn path=/trunk/; revision=55819
2012-02-22 23:08:52 +00:00
Johannes Anderwald
eadaa2c3de [USBCCGP]
- Fix retrieving string descriptors

svn path=/trunk/; revision=55818
2012-02-22 21:26:36 +00:00
Sylvain Petreolle
17f35a7781 [MEDIA/INF]
Fix line endings.

svn path=/trunk/; revision=55817
2012-02-22 21:25:47 +00:00
Stefan Ginsberg
7d0b41713a Missed this one...
svn path=/trunk/; revision=55816
2012-02-22 21:22:13 +00:00
Stefan Ginsberg
4cb002ee80 [NTOSKRNL]
Some misc fixes to make kernel compile warning-free with /W3. Also fix a bug that completely broke the ProcessWx86Information case for NtQueryInformationProcess by missing to reference/dereference and acquiring the specified process' EPROCESS.

svn path=/trunk/; revision=55815
2012-02-22 21:18:56 +00:00
Thomas Faber
26a8d7fa89 [USER32_WINETEST]
- Do not depend on argument evaluation order and thus uninitialized values. Sent and applied upstream. Dedicated to Stefan

svn path=/trunk/; revision=55814
2012-02-22 21:12:59 +00:00
Stefan Ginsberg
0761804e03 Some misc fixes to Prefast.
[DDK]
- ndis.h Don't use local variables with the same name as function parameters.
[PSDK]
- access.idl Remove incorrect annotation
- usbioctl.h Not really a Prefast issue, but switch to use ANYSIZE_ARRAY like we do everywhere else.
- winddi.h EngQueryDeviceAttribute's 6th parameter is IN, not OUT
- winefs.h Fix FileEncryptionStatus to use annotations. Its definition in winbase.h already has them and this caused a conflict.
[WINE]
- debug.h Remove unnecessary check (in ReactOS) that made Prefast sad.
- test.h Disable a false-positive C28182.

svn path=/trunk/; revision=55813
2012-02-22 20:58:20 +00:00
Johannes Anderwald
946cac440c [USBEHCI] [USBOHCI] [USBUHCI]
- Fix retrieving configuration index for real
- Thanks to Thomas Faber

svn path=/trunk/; revision=55812
2012-02-22 19:25:54 +00:00
Johannes Anderwald
eb1402eb83 [USBOHCI] [USBEHCI] [USBUHCI]
- Don't assume iConfiguration value of configuration descriptor is zero based aligned
- Fixes bugcheck in VmWare

svn path=/trunk/; revision=55811
2012-02-22 18:57:49 +00:00
Johannes Anderwald
4877f634cc [USBUHCI]
- Detect the size of the configuration descriptor before obtaining the full configuration descriptor
- Fix integer overflow in BuildTransferDescriptorChain

svn path=/trunk/; revision=55810
2012-02-22 18:34:39 +00:00
Johannes Anderwald
6528183f15 [USBUHCI]
- Queue dpc when the interrupt indicates completion of a transfer or an error interrupt
- Implement checking if a queue head is complete
- Free queue heads and associated endpoint descriptors

svn path=/trunk/; revision=55809
2012-02-22 17:24:43 +00:00
Stefan Ginsberg
e9cca27577 [DDK]
- Fix a whole fat bunch of Prefast warnings by making the IoCsqxxx declarations in csq.h match the ones in wdm.h.

svn path=/trunk/; revision=55808
2012-02-22 17:00:06 +00:00
Sylvain Petreolle
d97f0de65f [CABMAN]
Enable debug in order to figure the testbot problems.

svn path=/trunk/; revision=55807
2012-02-22 15:30:48 +00:00
Johannes Anderwald
a0375291e4 [USBUHCI]
- Write the configure bit
- Clear connection change and port suspend bit when set after controller initialization
- Queue work item after the reset port is complete
- Disable port before reseting it
- Wait time for reset is 50ms, not 25ms
- Clear reset change bit when clearing reset feature
- Implement enabling port feature


svn path=/trunk/; revision=55806
2012-02-22 14:11:23 +00:00
Thomas Faber
6d5fb45681 [RTL]
- Fix use of uninitialized variables in failure case of RtlSetCurrentDirectory_U. CID 15339, 15340
- Handles should be NULL, not 0

svn path=/trunk/; revision=55805
2012-02-22 12:02:59 +00:00
Thomas Faber
2541f45e51 [SMSS2]
- Fix an uninitialized variable usage, CID 15345
- Fix an incorrect sizeof usage, CID 15317

svn path=/trunk/; revision=55804
2012-02-22 11:31:04 +00:00
Thomas Faber
0348878822 [SMSS2]
- When deleting an old page file, take the newly freed space into account
- Keep at least 64 MB of disk free instead of 32 so that 2nd stage can succeed with a small disk
- Miscellaneous fixes and simplifications in the page file code

svn path=/trunk/; revision=55803
2012-02-22 09:07:03 +00:00
Alex Ionescu
af5c7e9398 [KERNEL32]: Rewrite the File Change Notification APIs since they were pretty much wrong (not surprising as we don't implement the functionality in the kernel/filesystems).
[KERNEL32]: Enable support for asynchronous I/O callbacks with SxS/Fusion activation context support. Right now only added to the file Change notification APIs, but ReadFileEx and WriteFileEx should use them too.

svn path=/trunk/; revision=55801
2012-02-21 23:27:45 +00:00
Jérôme Gardou
cf3fb86313 [CRT]
- fix array size to match what implementation expects.
Found by Thomas Faber. See issue 6903 for details.

svn path=/trunk/; revision=55800
2012-02-21 23:19:47 +00:00
Johannes Anderwald
b517b30866 [USBUHCI]
- Sync shared parts with usbohci driver
- Fixes memory bug, includes data toggle support, device cleanup etc...

svn path=/trunk/; revision=55799
2012-02-21 23:18:46 +00:00
Giannis Adamopoulos
d52969aa28 [win32k]
- Properly destroy the THREADINFO if we fail to create it. We don't leak the THREADINFO no in case of failure. It should also fix random assertion failure when running user32:desktop tests

svn path=/trunk/; revision=55798
2012-02-21 23:07:30 +00:00
Jérôme Gardou
2c48227400 [CRT]
- C standard for free says "if pointer is NULL, no action is taken".
 - MSDN for HeapFree says "if pointer is NULL, behavior is undefined".
Thanks to Thomas for teaching wine guys how to read.

svn path=/trunk/; revision=55797
2012-02-21 22:08:24 +00:00
Jérôme Gardou
def6dd986d revert r55794, the problem is elsewhere
svn path=/trunk/; revision=55796
2012-02-21 21:58:42 +00:00
Alex Ionescu
7c480c24b8 [KERNEL32]: Lock/UnlockFile APIs should not allow console handles. Also remove superflous parameter check.
[KERNEL32]: Lock/UnlockFile APIs should handle STATUS_PENDING/ERROR_IO_PENDING situations instead of always assuming the Nt functions return synchronously.
[KERNEL32]: Other stylying changes + commenting/annotations.

svn path=/trunk/; revision=55795
2012-02-21 21:38:08 +00:00
Jérôme Gardou
1c15cfffb4 [CRT]
- Check for NULL before freeing

svn path=/trunk/; revision=55794
2012-02-21 21:36:01 +00:00
Alex Ionescu
d363c616d6 [KERNEL32]: Format, comment, annotate, cleanup the I/O completion APIs.
svn path=/trunk/; revision=55793
2012-02-21 21:31:01 +00:00
Cameron Gutman
b43c3d21c0 [USBOHCI]
- Fix indication of USB_PORT_STATUS_RESET changes
- Fixes premature completion of resets causing assertions to fail

svn path=/trunk/; revision=55792
2012-02-21 20:32:48 +00:00
Alex Ionescu
0bbab987c0 [KERNEL32]: Use macro for CreateMailSlotA->CreateMailSlotW.
svn path=/trunk/; revision=55791
2012-02-21 19:19:44 +00:00
Alex Ionescu
8c1ab63ced [KERNEL32]: CreateHardLinkW was not setting last error on failure.
[KERNEL32]: Cleanup/format/comment/annotate CreateHardLink*.

svn path=/trunk/; revision=55790
2012-02-21 19:18:57 +00:00
Johannes Anderwald
49103eac64 [USBUHCI]
- UHCI has 2 ports

svn path=/trunk/; revision=55789
2012-02-21 18:53:04 +00:00
Johannes Anderwald
1511120650 [USBUHCI]
- Implement starting the controller

svn path=/trunk/; revision=55788
2012-02-21 18:33:37 +00:00
Johannes Anderwald
d8b2ccec60 [USBUHCI]
- Implement function to retrieve queue head for the specified transfer type
- Pass device speed to IUSBRequest initialization routines
- Implementing inserting the new queue head into the required queue head 
- Implement support for control transfers, not yet used

svn path=/trunk/; revision=55787
2012-02-21 18:19:24 +00:00
Amine Khaldi
a14929eb93 [LIBPNG]
* Sync up to 1.5.9.

svn path=/trunk/; revision=55786
2012-02-21 18:17:50 +00:00
Amine Khaldi
12f0f9cfd6 [CMAKE]
* Reorder the modules addresses based on their dependencies.

svn path=/trunk/; revision=55785
2012-02-21 18:01:08 +00:00
Jérôme Gardou
e99ab8c0fc [WIN32K]
- allocate FAST_MUTEX objects from non paged pool.
This should ix a bunch of weird testbot failures.
Any suggestion on the TAG is welcome

svn path=/trunk/; revision=55784
2012-02-21 18:00:50 +00:00
Amine Khaldi
216a2fef8c [FTFD]
* Properly set the base address.

svn path=/trunk/; revision=55783
2012-02-21 18:00:08 +00:00
Jérôme Gardou
021494660d [CMAKE]
- fix copy-paste typo

svn path=/trunk/; revision=55782
2012-02-21 17:23:59 +00:00
Jérôme Gardou
e391cda0b8 fix msvc build, try 2
svn path=/trunk/; revision=55781
2012-02-21 15:52:30 +00:00
Johannes Anderwald
1dce437b2b [USBUHCI]
- Start implementing UHCI controller

svn path=/trunk/; revision=55780
2012-02-21 15:49:08 +00:00
Jérôme Gardou
ddc66b9898 fix build, sorry...
svn path=/trunk/; revision=55779
2012-02-21 15:17:33 +00:00
Jérôme Gardou
78412e7ca0 [CMAKE]
- get rid of the no longer needed importlibs directory
 - exclude importlibs from all target in MSVC build

svn path=/trunk/; revision=55778
2012-02-21 15:03:19 +00:00
Jérôme Gardou
8d5f2380bf [CMAKE]
- fix MSVC build

svn path=/trunk/; revision=55777
2012-02-21 14:56:36 +00:00
Jérôme Gardou
7c9159f25f [CMAKE]
- generate 'real' libraries for import libraries
This way only the link step relies on them.
Should avoid rebuilding half of the tree next time Alex changes ntdll.spec
A relinking orgy is more than enough

svn path=/trunk/; revision=55776
2012-02-21 14:32:05 +00:00
Johannes Anderwald
b398f3fe30 [USBCCGP]
- Send unconfigure request when the device is removed
[USBOHCI]
- Handle unconfigure request

svn path=/trunk/; revision=55775
2012-02-21 03:03:27 +00:00
Cameron Gutman
5b71379204 [HIVESYS]
- Load FS drivers on demand instead of boot start because WinLdr already adds the boot FS driver to the start list

svn path=/trunk/; revision=55774
2012-02-21 02:19:04 +00:00
Cameron Gutman
b0965ffa70 [NTOSKRNL]
- Add prints to unloading functions because things seem very wonky here
- This exposes some previously unknown behavior of fastfat actually being unloaded in early boot (with uniata and buslogic failing unload due to missing DriverUnload)

svn path=/trunk/; revision=55773
2012-02-21 01:26:29 +00:00
Johannes Anderwald
177a18b44b [HIDCLASS]
- Call mini driver for pnp events
- Wait for all pending irps to complete
[HIDUSB]
- Fix bug when removing device object found by Cameron Gutman
[USBOHCI]
- Remove assert 
- Delete configuration descriptors when device is deleted

svn path=/trunk/; revision=55772
2012-02-21 01:16:56 +00:00
Jérôme Gardou
5429a4441e if A ASSERT B => ASSERT(B or not A)
svn path=/trunk/; revision=55771
2012-02-21 00:46:18 +00:00
Jérôme Gardou
55993182a9 [NTOSKRNL/MM]
- finally, release user shared data at process address space cleanup.
 - release PDE pages that might not be freed at process end.
 - Let the caller handle PDE release when deleting a PTE
 - restore Richard's ASSERT : All user PDE pages are now freed!

svn path=/trunk/; revision=55770
2012-02-21 00:32:24 +00:00
Kamil Hornicek
680e4604d2 [TRANSLATION]
da-da -> da-dk

svn path=/trunk/; revision=55769
2012-02-21 00:15:25 +00:00
Amine Khaldi
991d17ef5f [LIBXSLT]
* Properly set a module type to take advantage of automatically setting the base address.

svn path=/trunk/; revision=55768
2012-02-20 23:46:02 +00:00
Amine Khaldi
8138c72aae [CMAKE]
* Alter the current base addresses, and introduce all the missing ones.
* We have a much better way to assign them, thanks to Timo's excellent suggestions.
* Big thanks go to Geir Hauge for making us an awesome script that conveniently and automagically generates baseaddress.cmake.
* Dedicated to Alex.

svn path=/trunk/; revision=55767
2012-02-20 23:44:41 +00:00
Cameron Gutman
87c1a78ebb [NTOSKRNL]
- Silence a warning
- Unsilence 2 warnings

svn path=/trunk/; revision=55766
2012-02-20 23:34:17 +00:00
Amine Khaldi
2494d9170c * Addendum to r55764.
svn path=/trunk/; revision=55765
2012-02-20 22:09:21 +00:00
Amine Khaldi
459a045652 [CMAKE]
* Simplify the way we handle importlib targets by taking control of the importlib name.

svn path=/trunk/; revision=55764
2012-02-20 22:08:14 +00:00
Jérôme Gardou
d720941f1e [NTOSKRNL/MM]
- Stop leaking references to PDEs.
Still one reference left to the TLB mapping at process deletion.

svn path=/trunk/; revision=55763
2012-02-20 20:51:18 +00:00
Jérôme Gardou
30703d5a5d [USETUP]
- Print a bit more information when failing.

svn path=/trunk/; revision=55762
2012-02-20 20:51:09 +00:00
Jérôme Gardou
435f5a8bfd [NTOSKRNL/MM]
- Make MmWorkingSetList PTE local
 - Map MmWorkingSetList to Vm.VmWorkingSetList when creating process.

svn path=/trunk/; revision=55761
2012-02-20 20:50:36 +00:00
Sylvain Petreolle
8df2149dc1 [MEDIA/INF]
Ukrainian translation by Igor Paliychuk.

svn path=/trunk/; revision=55760
2012-02-20 19:55:16 +00:00
Giannis Adamopoulos
35fb03888f - Hide test traces in test cd. This should make comparing test logs easier
svn path=/trunk/; revision=55759
2012-02-20 19:26:27 +00:00
Giannis Adamopoulos
287bd60ec8 [win32k]
- Fix SPI_SETMOUSESPEED
- Patch by Edijs Kolesnikovics, terminedijs@yahoo.com 

svn path=/trunk/; revision=55758
2012-02-20 18:05:33 +00:00
Kamil Hornicek
dcb742b114 [TRANSLATION]
Renaming to match the CHINESE_TRADITIONAL sub lang.

svn path=/trunk/; revision=55757
2012-02-20 16:49:48 +00:00
Johannes Anderwald
1c6cfe79fb [USBHUB]
- Check if the request is for a valid PDO

svn path=/trunk/; revision=55756
2012-02-20 15:54:19 +00:00
Giannis Adamopoulos
123637fd96 [win32k]
- Do not store the PDEVOBJ and a fake name in MONITOR struct. Use MONITOR.HDEV instead (which is an opaque pointer to a PDEVOBJ)

svn path=/trunk/; revision=55755
2012-02-20 13:23:32 +00:00
Kamil Hornicek
5cce4a8bd0 missed this one, sorry
svn path=/trunk/; revision=55754
2012-02-20 12:21:43 +00:00
Kamil Hornicek
b3b352bf6e [TRANSLATION]
Rename pt-pt to match the pt-br sublang.

svn path=/trunk/; revision=55753
2012-02-20 12:20:42 +00:00
Cameron Gutman
e321ae7ab1 [KBDCLASS][MOUCLASS]
- Demote an assertion into a warning

svn path=/trunk/; revision=55752
2012-02-20 12:08:35 +00:00
Cameron Gutman
9a4a85968d [KBDCLASS]
- Kill the rest of the input stack hack of doom

svn path=/trunk/; revision=55751
2012-02-20 11:47:46 +00:00
Cameron Gutman
e7d4fc1686 [I8042PRT]
- "All this file is a big hack and should be removed one day…" - Today is that day! setup.c is no more!
[TXTSETUP.SIF]
- Move keyboard drivers to the Keyboard.Load section
[USETUP]
- Add a small keyboard class installation hack
- USB keyboards now load during 1st stage

svn path=/trunk/; revision=55750
2012-02-20 11:41:28 +00:00
Giannis Adamopoulos
07bda3bb7e [win32k]
- There is no need to cache the current window station in SystemParametersInfo. Query it directly when needed

svn path=/trunk/; revision=55749
2012-02-20 11:35:14 +00:00
Cameron Gutman
e37e71082a - Fix copy paste error
svn path=/trunk/; revision=55748
2012-02-20 11:33:11 +00:00
Cameron Gutman
c6679c9df4 [NTOSKRNL]
- Create the DeviceClasses key necessary for device interfaces to be registered successfully in 1st stage
- This may not be the correct place to do this so anyone is free to move it

svn path=/trunk/; revision=55747
2012-02-20 11:30:51 +00:00
Giannis Adamopoulos
000dac9eb6 [win32k]
- Create defaultDCstate when the first dc is created not when the first dce is created
- Fix build

svn path=/trunk/; revision=55746
2012-02-20 10:58:55 +00:00
Giannis Adamopoulos
6e4d714573 [win32k]
- Peb->ProcessParameters->DesktopInfo must be probed and captured with SEH before used in win32k

svn path=/trunk/; revision=55745
2012-02-20 10:51:07 +00:00
Giannis Adamopoulos
42dde0a3ef [win32k]
- Remove an unused function

svn path=/trunk/; revision=55744
2012-02-20 10:47:13 +00:00
Cameron Gutman
94da11bec8 [NTOSKRNL]
- First check if a driver object exists before trying to load the service module to properly handle boot drivers

svn path=/trunk/; revision=55743
2012-02-20 10:24:14 +00:00
Cameron Gutman
b175abf7c1 [USBEHCI]
- When releasing a low or full speed device, set the EHCI_PRT_RELEASEOWNERSHIP bit with the current port status so that any change bits are acknowledged
- Fixes detecting new devices after a companion controller handoff

svn path=/trunk/; revision=55742
2012-02-20 09:23:33 +00:00
Cameron Gutman
20008617a0 [USBOHCI]
- Finally fix the OHCI reset bug for real and remove hacks

svn path=/trunk/; revision=55741
2012-02-20 09:00:09 +00:00
Cameron Gutman
cb23c43428 [USBOHCI]
- Set the power switching configuration into a known state when initializing the controller

svn path=/trunk/; revision=55740
2012-02-20 08:41:19 +00:00
Cameron Gutman
07f816a3f9 [USBOHCI]
- Queue a work item to handle an enable status change condition

svn path=/trunk/; revision=55739
2012-02-20 08:25:38 +00:00
Cameron Gutman
bc411bd0a0 [USBOHCI]
- Don't clear extra change bits

svn path=/trunk/; revision=55738
2012-02-20 08:09:31 +00:00
Alex Ionescu
e96c88b49b [NTOSKRNL]: Fix the zombie fix. Should fix toolhelp tests.
[NTOSKRNL]: If you're going to fake success when doing access checks, also grant the rights that would normally be refused, for consistency's sake. Should fix a bunch of the kernel32:synch tests (which have nothing to do with synch...).

svn path=/trunk/; revision=55737
2012-02-20 07:30:26 +00:00
Alex Ionescu
0e6938d173 [NDK]: Fix completely messed up SYSTEM_PROCESS_INFORMATION and SYSTEM_THREAD_INFORMATION classes, which were causing the kernel to return totally wrong data for NtQuerySystemInformation(SystemProcessInformation). Fixes Winetests, I assume Taskmgr, and other similar system tools.
svn path=/trunk/; revision=55736
2012-02-20 06:45:02 +00:00
Alex Ionescu
0e2219f054 [NTOSKRNL]: MOV CRX, YYY and MOV YYY, CRX, as well as the DR equivalents were not correctly detected as privileged instructions in the GPF handler. Fixes Winetests.
[NTOSKRNL]: The "Write" bit in the x86 Error Code is not bit 1, it is bit 2. Fix all the GPF handlers to check for bit 2 instead when determining if an exception was due to read or write. Fixes Winetests.
I'll say it nicely this time for Timo: when you rewrite ASM, do it carefully :)

svn path=/trunk/; revision=55735
2012-02-20 06:43:54 +00:00
Alex Ionescu
1e172203a6 [NTOSKRNL]: Implement ProcessDebugObjectHandle and a bunch more query/set process classes. Fixes Winetests.
[NTOSKRNL]: We should not be setting *ReturnLength in most failure cases, so no longer do so. Fixes Winetests.

svn path=/trunk/; revision=55734
2012-02-20 06:42:02 +00:00
Alex Ionescu
62930b0461 [RTL]: Force RtlIpToString APIs to behave inexplicably like on Windows, returning -1 instead of crashing when sprintfing to a NULL pointer.
svn path=/trunk/; revision=55733
2012-02-20 06:37:13 +00:00
Alex Ionescu
d3418a128b [KERNEL32]: Add support for NO_DEBUG_INHERIT in CreateProcess. Fixes a winetest.
svn path=/trunk/; revision=55732
2012-02-20 06:36:17 +00:00
Alex Ionescu
4e027af35c [NTOSKRNL]: NtQuerySystemInformation(SystemProcessInformation) should skip zombie processes, and it should use the KTHREAD ThreadListEntry, not the ETHREAD ThreadListEntry. Fixes winetest since Idle Threads are int he former, not the latter (verified and Windows does this too).
svn path=/trunk/; revision=55731
2012-02-20 06:35:05 +00:00
Sir Richard
8fa73c4dc6 [NTDLL_WINETEST]: Skip an obviously nonsensical test of trying to sprintf into NULL.
svn path=/trunk/; revision=55730
2012-02-20 01:13:50 +00:00
Alex Ionescu
19a5d85926 [NTDLL/RTL]: Implement RtlGet/SetThreadErrorMode.
[NTDLL/RTL]: Fix RtlIpv4AddressToStringA and RtlIpv4AddressToStringW to work like in Windows (and crash with a NULL buffer).

svn path=/trunk/; revision=55729
2012-02-20 01:13:31 +00:00
Alex Ionescu
9d05ce3297 [NTOSKRNL]: Fix ntdll:om winetest. When querying for filenames if the caller did not specify a buffer large enough (which they normally don't, initially), we would just fail but not tell them how large to request it (so they'd get back an uninitailized huge value).
svn path=/trunk/; revision=55728
2012-02-20 00:11:24 +00:00
Giannis Adamopoulos
b65af38817 [user32_apitest]
- Test the initial desktop and window station of processes

svn path=/trunk/; revision=55727
2012-02-19 23:46:06 +00:00
Giannis Adamopoulos
97e75d9ef2 [win32k]
- remove assertions from the process callout checking that ppiCurrent->rpdeskStartup and ppiCurrent->hdeskStartup are valid. This can happen in case we fail to open the initial desktop or window station

svn path=/trunk/; revision=55726
2012-02-19 23:29:28 +00:00
Cameron Gutman
69d0df4728 [USBEHCI]
- Try to fix reset bugs in my code and remove hacks
- Don't clear extra bits when acknowledging a port connect status change
[USBOHCI]
- Code cleanup
- No functional change

svn path=/trunk/; revision=55725
2012-02-19 22:22:45 +00:00
Giannis Adamopoulos
850d4b4ddf [ntoskrnl]
- Fix a crash in KiSystemCall that was caused because PsConvertToGuiThread may have switched to a large kernel stack, but still returned with failure because win32k did not succeed. To fix it reload the trap frame after the call before checking for success.

svn path=/trunk/; revision=55724
2012-02-19 22:05:25 +00:00
Alex Ionescu
d46e167a87 sigh.
svn path=/trunk/; revision=55723
2012-02-19 20:23:56 +00:00
Alex Ionescu
ca2598c831 [CSRSRV]: Some misc cleanup of dead code. No functional change.
svn path=/trunk/; revision=55722
2012-02-19 20:16:36 +00:00
Alex Ionescu
79ef1a1380 [CSRSRV]: Heh, fix a bug, which I think caused the crash in CSRSS during other process' crashes.
svn path=/trunk/; revision=55721
2012-02-19 20:13:07 +00:00
Alex Ionescu
0e457a22c3 [CSRSRV/KERNEL32]: Close the last big architectural known issue: we were not notifying CSRSRV of server threads within server-to-server situations. Port and fix CsrCreateRemoteThread from CSRSRV2, and call it from Kernel32 now when running inside the server itself. Also fix BaseProcessStart not to exit the whole process during an exception.
At this point, other issues are unknown regressions.

svn path=/trunk/; revision=55720
2012-02-19 20:09:49 +00:00
Alex Ionescu
339ee42bae [NTOSKRNL]: The ExitTime in ETHREAD is unionized and only valid if the thread actually exited, so don't always return the raw value -- return 0 if the thread is still alive. Fixes code which uses ExitTime != 0 to tell if a thread is still alive or not -- everyone always thought all ReactOS threads are always dead.
svn path=/trunk/; revision=55719
2012-02-19 20:08:11 +00:00
Alex Ionescu
682a93c9f9 [CSRSRV]: Sometimes too much of a hybrid is no longer a good thing. Rewrite the CSRSRV API loop to match (almost -- except the actual API conversion which is different in ReactOS) the CSRSRV2 loop, with the correct handling of datagrams, errors, exceptions, death messages, etc...
[CSRSRV]: Add special handling for certain messages (similar to how "Reply" is used in CSRSRV2) so that we don't keep replying to the wrong thead. For example, during an ExitProcess, special handling is needed at the end of the loop.
[CSRSRV]: Remove the last few remaining legacy process management function and use the correct CsrLock/Unlock APIs instead. No longer leak references for every process like crazy. Fully manage proc/thread/session reference counts now.
At this point it looks like there might just be one issue left before this thing works right (minus potential regressions due to missed hacks).

svn path=/trunk/; revision=55718
2012-02-19 19:40:28 +00:00
Alex Ionescu
0181638af5 [KERNEL32/CSRSRV]: Handle ExitProcess CSRSS message and implement CsrDestroyProcess to do so. Also implement CsrDestroyThread for future purposes.
svn path=/trunk/; revision=55717
2012-02-19 18:46:05 +00:00
Alex Ionescu
860a4e8855 [CSRSRV]: Don't bail out incorrectly if we get a LPC_EXCEPTION. Also DPRINT1 when we get one.
svn path=/trunk/; revision=55716
2012-02-19 18:23:31 +00:00
Alex Ionescu
bb061c1598 [CSRSRV]: Implement support for exception messages now that these get sent.
svn path=/trunk/; revision=55715
2012-02-19 18:05:49 +00:00
Johannes Anderwald
607a047392 [USBCCGP]
- Remove assert hit during install of hid devices

svn path=/trunk/; revision=55714
2012-02-19 15:43:18 +00:00
Alex Ionescu
2a5d344d96 [CSRSRV/KERNEL32]: Do the Windows thing and send a unified LPC message when a new process is created, which includes the thread information as well, instead of sending two LPC messages per process. Perf++.
[CSRSRV/kERNEL32]: Switch to using the Windows CSRSS message structure for a new process, minus the bInheritHandles field which we still support for ReactOS compatibility.
[CSRSRV]: Port CsrCreateProcess from CSRSRV2, rewrite CsrSrvCreateProcess to use this API, and add required ReactOS compatibility hacks. A lot of stuff is still not supported, but the minimum (ie: previous ReactOS functionality) has been maintained during the transition. Processes are now tracked correctly, but there are still refcount leaks (known, to be fixed later).
Will let this breathe for a bit now to catch regressions. Work can now continue back on the kernel32 side while that happens.

svn path=/trunk/; revision=55711
2012-02-19 11:39:07 +00:00
Alex Ionescu
83ad639dc9 [CSRSRV]: It seems safe to now enable the #if0'ed out functionality of CsrCreateThread, as all thread/processes are tracked properly now.
svn path=/trunk/; revision=55710
2012-02-19 11:34:45 +00:00
Stefan Ginsberg
b2cabd4df9 [NTOSKRNL]
- Fix KiEnterV86Mode's check for TRAP_DEBUG to #if instead of #ifdef, it is either defined to 1 or 0, like DBG.

svn path=/trunk/; revision=55709
2012-02-19 10:38:38 +00:00
Alex Ionescu
7991c9c192 [CSRSRV]: Let's see if touching the CSR header file kills CSRSRV again. Re-enable the #if'0ed code that merely added a few fields to the create process structure. I think we no longer have weird fucked up dependencies on exact structure byte sizes. I hope.
svn path=/trunk/; revision=55708
2012-02-19 10:19:16 +00:00
Alex Ionescu
8306172b6a [CSRSRV]: Properly implement CsrSrvCreateThread now that the worker thread issue is fixed. CSR_THREAD's are now created for everyone, and CSRSS succesfully duplicates their thread handle! Also, while connections from unknown threads are still allowed (in case I missed something), we do warn on the console about these guys now.
svn path=/trunk/; revision=55707
2012-02-19 10:12:14 +00:00
Alex Ionescu
07ea12ee5b [RTL/NTDLL/KERNEL32]: Rtl provides worker queue and timer queue functionality, which queues a worker thread associated with a caller-supplied callback. In Windows, Rtl by default calls RtlCreateUserThread, but as soon as kernel32 loads, it's DllMain calls an exported function RtlSetThreadPoolStartFunc which changes that default to a special Base function that calls CreateRemoteThread instead. The net result is that Win32 processes using the Rtl functionality get their threads properly registered with CSRSS. In ReactOS, this did not happen, so when those threads called into CSRSS, CSRSS had no CSR_THREAD structure/state for them, which is why CsrCreateThread (and the API loop) are so badly hacked. This commit implements RtlSetThreadPoolStartFunc, implements the kernel32 base functions which wrap CreateRemoteThread, and implements the rtl functions which wrap RtlCreateUserThread. Services, Setup, and any ReactOS application using RPC now have the worker threads correctly registered.
svn path=/trunk/; revision=55706
2012-02-19 10:06:31 +00:00
Alex Ionescu
55e9cddf05 [CSRSRV]: Take a refernece to the client thread since we are dereffing it...
svn path=/trunk/; revision=55705
2012-02-19 10:00:47 +00:00
Alex Ionescu
f34ec165f6 [CSRSRV]: Port CsrLockedReferenceThread from CSRSRV2.
svn path=/trunk/; revision=55704
2012-02-19 09:57:00 +00:00
Alex Ionescu
131b6d2ea6 [CSRSRV2]: Bugfix, don't dereference the thread instead of referencing it!
svn path=/trunk/; revision=55703
2012-02-19 09:54:41 +00:00
Johannes Anderwald
83e2f62323 [USBSTOR]
- Fix bugs introduced in rev 55695

svn path=/trunk/; revision=55702
2012-02-19 09:45:54 +00:00
Thomas Faber
f9a5be185d [NTOSKRNL]
- Make Trap debugging usable again. Suggested by Stefan.

svn path=/trunk/; revision=55701
2012-02-19 08:38:09 +00:00
Alex Ionescu
59ac9cae89 [CSRSRV]: Fix scenario when a new thread is being created from within CSRSRV and it could not register itself due to the new server-to-server support. Fixes CTRL-C and using the "X" button in a console window to close it, which had regressed since the server-to-server commit.
svn path=/trunk/; revision=55700
2012-02-19 07:22:37 +00:00
Alex Ionescu
7d4a765fe0 [CSRSRV]: I confused ShutdownCallback with DisconnectCallback. What win32csr needs is actually the later. Fixed that. Also removed CallProcessDeleted since we already call the Disconnectcallback from CsrRemoveProcess, which we do call in CSRSRV. Enabled the code that was disabled.
svn path=/trunk/; revision=55699
2012-02-19 06:44:09 +00:00
Alex Ionescu
002ef4e66b [CSRSRV]: Switch to the CSRSRV2 model of having a dynamic amount of threads handling CSRSS requests depending on how many are deadlocked, instead of creating a thread for every single client. CSRSRV now has about 2 API threads instead of 16.
svn path=/trunk/; revision=55698
2012-02-19 06:32:17 +00:00
Alex Ionescu
86597860d2 [CSRSRV]: No longer accept connections from unknown processes.
svn path=/trunk/; revision=55697
2012-02-19 04:18:33 +00:00
Alex Ionescu
e403a8e2e1 [CSRSRV/WIN32CSR]: Remove all the code that was setting new values for DataLength/TotalLength in the LPC header. I have no idea why the code was doing this. I suspect it's partly to blame for why changing the structures of the CSRSS messages caused bizarre failures. Perhaps this behavior was needed with the original winsock-based LPC implementation that I rewrote back in 2006?
svn path=/trunk/; revision=55696
2012-02-19 03:51:36 +00:00
Johannes Anderwald
53bd8f1e21 [USBSTOR]
- Queue inquriry & format capacity command with an irp

svn path=/trunk/; revision=55695
2012-02-19 02:47:35 +00:00
Alex Ionescu
fa51806949 Missed these guys.
svn path=/trunk/; revision=55694
2012-02-19 02:25:31 +00:00
Alex Ionescu
d68458a259 [NTOSKRNL]: Implement ThreadBreakOnTermination for the SET case.
Cleanup some dbgprints.

svn path=/trunk/; revision=55693
2012-02-19 02:24:52 +00:00
Alex Ionescu
37d7c2aa03 [CSRSRV/WIN32CSR]: Make Win32CSR much closer to a real CSRSS Server DLL than before, and make calling the Server callbacks compatible with the correct CSR_SERVER_DLL structure. API dispatching is still all wrong, though.
svn path=/trunk/; revision=55692
2012-02-19 01:53:58 +00:00
Johannes Anderwald
6e38e0e13c [USBEHCI]
- Remove assertion which no longer holds
- Delete old queue head after a new queue head has been sucessfully fetched 

svn path=/trunk/; revision=55691
2012-02-19 00:16:50 +00:00
Alex Ionescu
727c97602e [NTOSKRNL]: When you rewrite my ASM code, get it right, dumbasses. Thanks Stefan.
svn path=/trunk/; revision=55690
2012-02-19 00:08:50 +00:00
Alex Ionescu
1966e04ee2 [CSRSRV]: Remove a bunch of hacks and don't attach the shared section when CSRSS is connecting to itself (which happens because our Win32k does that). Things are cleaner now :)
svn path=/trunk/; revision=55689
2012-02-19 00:04:05 +00:00
Alex Ionescu
28f0bba7b4 [NTOSKRNL]: Implement SeCheckPrivilegedObject and call it in the two cases where it's needed (when changing process priority) instead of spamming the debug log that we're not doing the check.
[NTOSKRNL]: Implement ProcessUserModeIOPL info level (and implement Ke386SetIopl) instead of spamming we can't do this.
[NTOSKRNL]: Implement ProcessExecuteOptions info level (and implement MmSetExecuteOptions) instead of spamming we can't do this.
[NDK]: Add NoExecute Flags based on ProcessHacker.
No longer spammed to death for every process all the time.

svn path=/trunk/; revision=55688
2012-02-18 23:59:31 +00:00
Johannes Anderwald
656f87b67c [USBOHCI]
- Don't preserve command status values when notifying controller of a new bulk / control endpoint
- Abort pipe & reset data toggle in the sync reset routine
- Allocate interface descriptors and endpoint handles when creating the configuration descriptor
- Implement routine for allocating chained descriptors 
- Implement data toggle for bulk&interrupt transfers
- Mass storage devices should now work in real hardware with OHCI controller
- Tested in real hardware with NEC Corporation USB [1033:0035] (rev 43)

svn path=/trunk/; revision=55687
2012-02-18 23:23:13 +00:00
Amine Khaldi
87a7ba545c * Get rid of $Id$ usage and the related svn property.
svn path=/trunk/; revision=55685
2012-02-18 22:57:24 +00:00
Alex Ionescu
3bd63cad35 [KERNEL32]: Try to connect to the Console Server when initializing console support. For normal apps, won't do anything since ConnectionInfo == NULL (to hack around the fact there's no server in ReactOS for this), but for DLLs running inside of CSRSS, because we now support Server-to-Server, the call will detect that and not fail. This fixes the "failed to give us console" error when kernel32 inside of csrss tries to get a console (which it shouldn't). There's still user32 to cleanup.
svn path=/trunk/; revision=55684
2012-02-18 22:29:46 +00:00
Stefan Ginsberg
c718e04922 [NTOSKRNL]
KdInitSystem may be called after system set up if /CRASHDEBUG is enabled and a bugcheck or NMI occurs. With the INIT discard/delete now implemented, and KdInitSystem marked for INIT, this would have resulted in a crash...during a system crash, if /CRASHDEBUG had been enabled. Fun.

svn path=/trunk/; revision=55680
2012-02-18 13:39:08 +00:00
Johannes Anderwald
ab8f90859c [USBOHCI]
- Fix regressions which resulted in hang after reseting device
- Introduced in revision 55662
- Tested in VBox + Mass Storage Device

svn path=/trunk/; revision=55679
2012-02-18 12:28:20 +00:00
Thomas Faber
c73d3138d4 [ADVAPI32]
- Fix buffer overflow in LookupAccountSidA
See issue #6752 for more details.

svn path=/trunk/; revision=55678
2012-02-18 12:00:50 +00:00
Alex Ionescu
e5f337a82b [CSRSRV]: Port CsrCallServerFromServer (and hackplement a reactos-compatible implememntation) from CSRSRV2.
[CSRSRV/CSRSRV2]: Fix CsrLockProcessByPid -- it was skipping the root process itself, so requests coming from a CSRSS-hosted DLL would fail (which is exactly what server-to-server depends on).
[NTDLL]: Enable support for server-to-server calls!
Server-to-server calls work now, and one of the multiple mapping hacks is gone. User32 and kernel32 still need a bit of fixes to get rid of the other hacks, though. Also, Perf++.

svn path=/trunk/; revision=55677
2012-02-18 01:27:50 +00:00
Alex Ionescu
87a966228c [NTOSKRNL]: And finally, the third part of Richard's patch, cleaned up and ready to go. This cleans up the INIT and SCN_MEM_DISCARDABLE sections from all drivers and the kernel. Reduces RAM usage by another 350KB on my test box.
svn path=/trunk/; revision=55676
2012-02-17 22:57:32 +00:00
Timo Kreuzer
69172a1b38 [FREELDR]
- Fix heap code for 64 bit (before someone asks: the reason to use ULONG_PTR instead of ULONG is warning free code without casts)

svn path=/trunk/; revision=55675
2012-02-17 17:22:14 +00:00
Jérôme Gardou
48cf74fcca [NTOSKRNL/ARM3]
- remove useless code : Page Directories Entries are backed by ARM3 managed pages

svn path=/trunk/; revision=55674
2012-02-17 16:14:12 +00:00
Johannes Anderwald
301809cb8d [KERNEL32]
- Fix error status of GetQueuedCompletionStatus, which should set the error to WAIT_TIMEOUT
- Fixes 4 failing winetests 
- Patch by Samuel Serapion (samcharly_hotmail_com)

See issue #6907 for more details.

svn path=/trunk/; revision=55673
2012-02-17 16:11:40 +00:00
Jérôme Gardou
484671d6c8 [CMAKE]
- use quotes in reactos.dff for every platform.
Paths beginning with '.' are no longer seen as directives

svn path=/trunk/; revision=55672
2012-02-17 15:54:05 +00:00
Timo Kreuzer
4c5e2c71ec [WIN32K]
Fix another bug in NtGdiSelectBitmap, where selecting the same bitmap a second time, would release the bitmap

svn path=/trunk/; revision=55671
2012-02-17 15:51:13 +00:00
Kamil Hornicek
04135b7ce4 [ROSAUTOTEST]
If the last chunk of the string sent to StringOut isn't a whole line and forcePrint is set to false, send back what's left after processing. The caller is then responsible for prepending that string next time it calls StringOut. Should fix the rest of debug log corruptions.

svn path=/trunk/; revision=55670
2012-02-17 12:31:32 +00:00
Johannes Anderwald
c0f7614fb0 [CDROM_NEW]
- Misc build fixes for mingw and msvc with cmake

svn path=/trunk/; revision=55669
2012-02-17 12:07:17 +00:00
Thomas Faber
3fec97b52e [CABMAN]
- Fix MSVC build

svn path=/trunk/; revision=55668
2012-02-17 08:26:33 +00:00
Alex Ionescu
7313a0dacd [NTOSKRNL]: This second part of Richard's patch implements MmFreeLoaderBlock, which results in 932KB less RAM being used on my 3rd stage test after first boot. It deletes the boot registry, NLS, and heap data.
svn path=/trunk/; revision=55667
2012-02-17 07:23:27 +00:00
Alex Ionescu
c21ab0f761 [NTOSKRNL]: This is kind of embarssing, but after doing a local grep for some of cgutman and zekflop's changes (respectively the patch that had added MmDeleteProcessPageDirectory, and the mshtml fix patch), I fell upon a .patch file. It included 3 memory-leak-fixing patches from richard that had been sent to me during his last days -- which, had I paid attention, would've fixed the MSHTML bug and the memory leaks months ago! I've tried my best to now re-integrate a portion of the patch (the other two portions deal with freeing the loader block, and freeing .INIT sections, and I will commit them later) with the current state of trunk. Some things that patch did, no longer seem to work, and I've commented where appropriate. But in general it does seem to dereference/delete some PTEs that had been left behind before (such as deleted TEBs, and deleted VA mappings). It no longer seems to be able to delete the root PDE nor the shared data page however (this worked in the original patch's timeframe). Zekflop, tkreuzer, please take a look. I hope this will set us on a better path!
svn path=/trunk/; revision=55666
2012-02-17 07:07:47 +00:00
Alex Ionescu
7cb7765a31 [WIN32CSR/CSRSRV]: Make the outdated CSR_PLUGIN architecture as close to the CSR_SERVER_DLL architecture as possible for easier migration later. Main changes are return values/number of parameters, importing csrsrv functions instead of using a manual export table, and other similar small changes. Also, add win32csr.dll to the registry command-line for CSRSS, but still load it hard-coded for now.
svn path=/trunk/; revision=55665
2012-02-17 05:15:13 +00:00
Cameron Gutman
03166cbd75 [CLASS2]
- Clear the DO_DEVICE_INITIALIZING flag on the new device objects

svn path=/trunk/; revision=55664
2012-02-17 04:34:10 +00:00
Cameron Gutman
5a766eeaac [CLASS2]
- Store the registry path passed in ScsiClassInitialize to pass in ScsiClassAddDevice

svn path=/trunk/; revision=55663
2012-02-17 04:21:51 +00:00
Cameron Gutman
075cf8cdc9 [USBOHCI]
- Remove massive hacks from our port reset code
- We now wait for the reset complete interrupt instead of stalling 10ms and continuing
- Don't wait for a port to stabilize unless there's actually a device connected
[USBEHCI]
- Fix very long delay between setting the reset bit and clearing it
- Wait for the port to come back enabled before finishing the reset
- Don't wait for a port to stabilize unless there's actually a device connected

svn path=/trunk/; revision=55662
2012-02-17 03:45:46 +00:00
Johannes Anderwald
c1c3ea3ac8 [USBSTOR]
- Only send read format capacity when the device type is zero (direct access device)
- Add fixme
[INF]
- Fix issue
- USB CDROM installation now starts

svn path=/trunk/; revision=55661
2012-02-17 03:44:56 +00:00
Johannes Anderwald
1ead4da36a [USBSTOR]
- Fix build

svn path=/trunk/; revision=55660
2012-02-17 03:04:32 +00:00
Johannes Anderwald
27f6cfc84e [USBSTOR]
- Implement timer routine which checks for hung srbs, not yet activated
- Stop timer when the device is stopped
- Implement function to check if the attached device is a floppy device
- Implement function to send read format capacity request
- Implement missing hardware id / device id support for floppy
- Add retry count parameter for debugging purposes
- Tested in VBox + VmWare + RH

svn path=/trunk/; revision=55659
2012-02-17 03:02:14 +00:00
Alex Ionescu
918a786b67 [WIN32CSR]: link with CSRSRV in rbuild too.
svn path=/trunk/; revision=55658
2012-02-17 01:27:20 +00:00
Alex Ionescu
4cbb5ac02e [CSRSRV]: Add a future hack.
svn path=/trunk/; revision=55657
2012-02-17 01:23:25 +00:00
Alex Ionescu
a83b8752d4 [WIN32CSR]: Link with CSRSRV.
svn path=/trunk/; revision=55656
2012-02-17 01:22:19 +00:00
Alex Ionescu
77dfdf0e87 [CSRSRV2]: formatting fix.
svn path=/trunk/; revision=55655
2012-02-17 01:21:35 +00:00
Cameron Gutman
d2edf9524d [NTOSKRNL]
- Don't enumerate the root bus via the firmware mapper because HAL no longer sucks and it will do it properly for us

svn path=/trunk/; revision=55654
2012-02-17 00:21:50 +00:00
Johannes Anderwald
ca7612e876 [USBEHCI]
- Fix a few 64-bit issues

svn path=/trunk/; revision=55653
2012-02-16 23:19:27 +00:00
Cameron Gutman
684eccd71e [HAL]
- Don't send a bogus bus number (-1) to the PCI driver because then it tries to scan that bus and obviously doesn't find anything
- Legacy HAL can now enumerate boot critical PCI devices (like the USB controller) and build the device stack for USB boot
[HIVESYS]
- Missed this spot where usbhub is installed for an external hub causing a crash

svn path=/trunk/; revision=55652
2012-02-16 23:08:05 +00:00
Timo Kreuzer
ced3afac1d {MOUNTMGR]
- Use portable KeXxxSpinLock, instead of fastcall variants
- Fix usage of uninitialized variable
- Fix typos in assignments
- Fix several integer size bugs
- Fix uninitialied variables (and those gcc couldn't identify as initialized)
- Fix MSVC warnings

svn path=/trunk/; revision=55651
2012-02-16 22:03:33 +00:00
Alex Ionescu
9f969348ab [CSRSRV]: Call the fake BaseSrv Init function during Server DLL load, not during SharedSection load, to be closer to where it should be.
[CSRSRV]: Enable some disabled code-paths and fix some locking patterns to be closer to what the code should look/be like. Correct ref count management is one of the things where regressions could show up later, so trying to nail these down now.

svn path=/trunk/; revision=55650
2012-02-16 21:46:59 +00:00
Alex Ionescu
142db9abdf [CSRSRV]: Hackfix "LPC Failed" errors.
svn path=/trunk/; revision=55649
2012-02-16 20:17:10 +00:00
Alex Ionescu
63d6bdc644 [CSRSRV]: Make CSRSRV "load" its own DLL as it should. This lets it support CSRSRV native APIs from NTDLL (which we don't send yet).
svn path=/trunk/; revision=55648
2012-02-16 20:08:34 +00:00
Alex Ionescu
d221bdfbb1 [NTDLL/INCLUDE]: Rename the CSRSRV API Numbers not to conflict with the actual functions.
[CSRSRV]: Import server.c from CSRSRV2, and move the existing CsrSrv functions we had from wapi.c to server.c (with the reactOS-specific hacks we had). The other CsrSrv* functions are not yet used.


svn path=/trunk/; revision=55647
2012-02-16 19:53:47 +00:00
Alex Ionescu
7ed48291c6 [CSRSRV2]: Bug fixes.
svn path=/trunk/; revision=55646
2012-02-16 19:15:00 +00:00
Jérôme Gardou
ea17e55e0a [NTOSKRNL/MM]
- First drop of a new implementation of NtAllocateVirtualMemory.
Very incomplete, don't hesitate to drop in and complete it.
For now, only MEM_RESERVE is kind of supported, as well as MEM_RESERVE|MEM_COMMIT

svn path=/trunk/; revision=55645
2012-02-16 17:24:15 +00:00
Jérôme Gardou
aff775994d [NTOSKRNL]
- One can't only use MEM_COMMIT for reserving memory

svn path=/trunk/; revision=55644
2012-02-16 17:24:01 +00:00
Jérôme Gardou
8c58f02839 [NTOSKRNL/MM]
- fix returned value in case of failure in MiFindEmptyAddressRangeDownTree

svn path=/trunk/; revision=55643
2012-02-16 17:22:54 +00:00
Pierre Schweitzer
0dd7e4f27f [CABMAN]
Get rid of MAX_PATH

svn path=/trunk/; revision=55642
2012-02-16 17:21:10 +00:00
Pierre Schweitzer
cc6395f4b1 [CABMAN]
Attempt to fix 2.
MAX_PATH shouldn't be defined/used any longer

svn path=/trunk/; revision=55641
2012-02-16 17:13:38 +00:00
Pierre Schweitzer
50bb4a925e [CABMAN]
Fix Windows build

svn path=/trunk/; revision=55640
2012-02-16 17:02:28 +00:00
Pierre Schweitzer
59dc941721 [CABMAN]
Ensure line reading buffer is big enough to hold complete paths.
Remove a magic value usage accordingly.

svn path=/trunk/; revision=55639
2012-02-16 16:50:16 +00:00
Alex Ionescu
d2af91632d [CSRSRV]: Improve ClientConnectionThread a bit to make it look a bit more like CSRSRV2 and add some extra functionality.
[CSRSRV]: Port from CSRSRV2 and use CsrApiPortInitialize instead of CsrpCreateListenPort. This will set appropriate SDs and also wait for all threads to be ready.

svn path=/trunk/; revision=55638
2012-02-16 16:40:15 +00:00
Alex Ionescu
a6998d5930 [CSRSRV]: Move the CsrSv* APIs to session.c where they belong. Also enable most of the code in CsrSbCreateSession now since it works, minus one hack needed since we don't have a real BaseSrv yet.
svn path=/trunk/; revision=55637
2012-02-16 16:21:48 +00:00
Timo Kreuzer
7816af6cb9 [WIN32K]
- Modify NtGdiSelectBitmap to correctly handle the case of pdc->dclevel.pSurface == 0
- Small code improvement without functional change for rtlstr functions

svn path=/trunk/; revision=55636
2012-02-16 16:05:25 +00:00
Johannes Anderwald
a49c373b0c [USBEHCI]
- Fix build

svn path=/trunk/; revision=55635
2012-02-16 14:52:57 +00:00
Johannes Anderwald
df5cd2fcac [USBEHCI]
- Abort pipe when performing sync reset request
- add assert to check for bogus interface descriptors
- use endpoint max packet size when available
- flip data toggle after each transfer
- remove dead code
- use maximum of 4 pages or rest current buffer size when performing a bulk requests
- use nak reload count 3
- perform 1 transaction per frame


svn path=/trunk/; revision=55634
2012-02-16 14:49:59 +00:00
Timo Kreuzer
bd3f5b9708 [RTL]
Fix a bug I introduced in r55527

svn path=/trunk/; revision=55633
2012-02-16 14:37:53 +00:00
Jérôme Gardou
1a194db4e7 [CMAKE]
- use relative paths for reactos.dff generation.
May fix Pierre's issue, but a deeper fix is needed.

svn path=/trunk/; revision=55632
2012-02-16 13:03:29 +00:00
Jérôme Gardou
af5540c434 [NTOSKRNL/MM]
- use ARM3 allocation for PDE pages.
There is now one table for system PDEs, and their pages are not leaked anymore.
Also fix bug 5857 (aka mshtml bug).
Only for x86 now. Timo, I think you should do it for amd64 as well.
Thanks for your patience, go back to testing now.
A huge congrats to Cameron and Thomas, without them I wouldn't even have dared touching this code.

svn path=/trunk/; revision=55631
2012-02-16 11:16:10 +00:00
Sylvain Petreolle
ebc25c8702 [CSRSRV]
Fix rbuild file.

svn path=/trunk/; revision=55630
2012-02-16 09:13:20 +00:00
Dmitry Gorbachev
9bb411c33c [EXPLORER-NEW]
Do not define GUID which is already defined in PSDK.

svn path=/trunk/; revision=55629
2012-02-16 07:42:28 +00:00
Dmitry Gorbachev
426717cc3c [WIN32K]
Use local labels in the inline asm code to avoid a clash when building with link-time code generation.

[PSEH]
Do not push memory operands with ESP as the base register (can happen when compiling with some GCC options), load arguments into registers.

Fix formatting.

svn path=/trunk/; revision=55628
2012-02-16 07:37:27 +00:00
Dmitry Gorbachev
84d86eb242 Add include paths
svn path=/trunk/; revision=55627
2012-02-16 07:28:53 +00:00
Alex Ionescu
8bd17c0446 [CSRSRV]: Port the CsrWait* and CsrSession* APIs from CSRSRV2. Not yet used, so no real functional change. Fixup a few structures where needed. Initalize session support during CSRSRV initialization. We have a pretty good hybrid now, some few more changes here and there and we can perhaps start having the beginnings our own "basesrv.dll",
svn path=/trunk/; revision=55626
2012-02-16 06:57:27 +00:00
Alex Ionescu
0f20fb2587 [CSRSRV]: Move the newly ported process APIs to procsup.c where they belong more. No functional change.
svn path=/trunk/; revision=55625
2012-02-16 06:45:25 +00:00
Alex Ionescu
51bc2e4f04 [CSRSRV]: Port the alloc/dealloc/insert/remove CsrProcess management functions from CSRSRV2. There is no longer a hash table being used but instead a linked list just like in real CSRSRV(2 for us). This brings us closer to the CSRSRV2 model and makes some of the older ported code cleaner too.
svn path=/trunk/; revision=55624
2012-02-16 03:41:18 +00:00
Alex Ionescu
8a5a44161a [CSRSRV2]: Formatting fix.
svn path=/trunk/; revision=55623
2012-02-16 03:38:21 +00:00
Alex Ionescu
77c513ac1e [CSRSRV]: Fix \Local symbolic link. Thanks to vicmarcal (and the new awesome testman).
svn path=/trunk/; revision=55622
2012-02-16 01:27:11 +00:00
Kamil Hornicek
a7b1c97a33 [ROSAUTOTEST]
Some bug fixing.

svn path=/trunk/; revision=55621
2012-02-16 00:52:20 +00:00
Alex Ionescu
891ac6118d [CSRSRV]: Add a new linked list for console processes, as ListLink is used for all CSR_PROCESSes.
svn path=/trunk/; revision=55620
2012-02-15 22:15:33 +00:00
Timo Kreuzer
28178ca5e9 [COMDLG32]
Really fix msvc build

svn path=/trunk/; revision=55619
2012-02-15 21:57:13 +00:00
Kamil Hornicek
032a2af1fb [ROSAUTOTEST]
Try to print whole lines so the output from tests doesn't get mixed with debug output from other reactos components.

svn path=/trunk/; revision=55618
2012-02-15 21:18:13 +00:00
Alex Ionescu
4b16693aed [CSRSRV/WIN32CSR]: No code change, but rename CSRSS_PROCESS_DATA to CSR_PROCESS and all the right fields -- put ReactOS-specific fields at the end. Do all the right renames needed for compilation. No functionality change.
svn path=/trunk/; revision=55617
2012-02-15 20:29:08 +00:00
Rafal Harabien
14471474b7 - Fix MSVC build
svn path=/trunk/; revision=55616
2012-02-15 20:25:35 +00:00
Alex Ionescu
f43c33aa00 [CSRSRV]: Remove the CSRAPI Heap and just use the CSR Heap. In the future there will be separate DLLs each with their own heap, but now it's all one DLL.
[CSRSRV]: Port CsrSbApiRequestThread, CsrSbApiHandleConnectionRequest and all the Sb* APIs from CSRSRV2. Comment out parts that can't work yet.
[CSRSRV]; Port CsrSbApiPortInitialize, CsrSetProcessSecurity, CsrCreateLocalSystemSD, and almost all of CsrServerInitialization. Initialization is almost identical to CSRSRV2 now.
[CSRSRV]: Kill "Complete" routine support, nobody was using this.

svn path=/trunk/; revision=55615
2012-02-15 19:53:31 +00:00
Alex Ionescu
beedafd586 [CSRSRV2]: Fix some bugs.
svn path=/trunk/; revision=55614
2012-02-15 19:47:28 +00:00
Rafal Harabien
38df4fd23c - Fix MSVC build
svn path=/trunk/; revision=55613
2012-02-15 17:39:18 +00:00
Rafal Harabien
d4cc49dd21 [COMDLG32]
- Sync to Wine 1.3.37

svn path=/trunk/; revision=55612
2012-02-15 17:35:24 +00:00
Rafal Harabien
b9f8ea2889 [COMDLG32]
- Sync to Wine 1.3.37

svn path=/trunk/; revision=55611
2012-02-15 17:33:15 +00:00
Alex Ionescu
aef22ce5a7 [CSRSRV]: Merge some initialization code from CSRSRV, including CsrParseServerCommandLine and CsrCreateSessionObjectDirectory. CsrSrvCreateSharedSection is now called correctly based on registry/command-line settings. Remove legacy functions that are no longer needed as a result.
[CSRSRV]: Flatten out the initialization code instead of a table of initialization functions.
[CSRSRV]: Make BasepFakeStaticServerData (our fake BaseSrv.DLL that's static inside CSRSRV for now) also create the BaseNamedObject Directory, along with the right ACLs and symbolic links, as well as the \Restricted sub-directory. Remove legacy function that was doing this before.

svn path=/trunk/; revision=55610
2012-02-15 16:11:12 +00:00
Timo Kreuzer
c81baaf1d3 [FREELDR]
Silence some heap debug prints

svn path=/trunk/; revision=55609
2012-02-15 16:03:01 +00:00
Alex Ionescu
3658dda143 [CSRSRV2]: Fix GetDosDevicesProtection.
svn path=/trunk/; revision=55608
2012-02-15 15:06:53 +00:00
Alex Ionescu
7428341ac4 [CSRSRV]: Update CsrAddStaticServerthread and CsrDestroyThread based on code from CSRSRV2. Main change is that ProtectHandle/UnProtectHandle is now called.
svn path=/trunk/; revision=55607
2012-02-15 15:05:35 +00:00
Alex Ionescu
393487dbd2 [CSRSRV2]: Formatting and a few bug fixes.
svn path=/trunk/; revision=55606
2012-02-15 15:03:42 +00:00
Rafal Harabien
c6bc27e78c [NTOSKRNL]
- Null-terminate command before copying it to LastCommand buffer.

svn path=/trunk/; revision=55605
2012-02-15 13:24:39 +00:00
Rafal Harabien
126b25c4bb [SHELL32]
- Partially revert r54068. "My Video" is not a typo but name of registry value, which match Win2k3.
See issue #6568 for more details.

svn path=/trunk/; revision=55604
2012-02-15 12:43:00 +00:00
Alex Ionescu
a371650c63 [NTOSKRNL]: Implement NtSetInformationObject(ObjectSessionInformation).
[NTOSKRNL]: Implement NtQueryInformationProcess(ProcessLUIDDeviceMapsEnabled).

svn path=/trunk/; revision=55603
2012-02-15 06:48:39 +00:00
Johannes Anderwald
95bb53eb1a [USBSTOR]
- Fix build

svn path=/trunk/; revision=55602
2012-02-15 03:55:11 +00:00
Johannes Anderwald
58df973ed5 [USBSTOR]
- Rewrite error handling
- Check if CSW is valid
- Check if the error handling was already started
- Reset device if required
- Error handling was completely broken and did not follow the reset procedure as defined in USB Mass Storage Specification Bulk Only Section 5.3.4
- Mass storage device now longer hang when receiving the read capacity request and ReactOS assigns a symbolic link
- Mass storage devices not yet fully working

svn path=/trunk/; revision=55601
2012-02-15 03:52:37 +00:00
Thomas Faber
377558ac5a [SMSS2]
- Do not print an uninitialized string

svn path=/trunk/; revision=55600
2012-02-14 23:06:28 +00:00
Timo Kreuzer
8c702c171c [FREELDR]
Add a hack to zero out heap allocations in the hope it fixes strange behavour

svn path=/trunk/; revision=55599
2012-02-14 22:08:34 +00:00
Timo Kreuzer
32d2f0f41c [FREELDR]
Add code to check for heap buffer overwrites

svn path=/trunk/; revision=55598
2012-02-14 21:56:39 +00:00
Timo Kreuzer
ff85135725 [FREELDR]
Fix a bug in the new heap code and re-enable it. The previous problems seem to be gone. Thanks to Amine for testing.

svn path=/trunk/; revision=55597
2012-02-14 19:48:04 +00:00
Cameron Gutman
f1886c94fc [NTOSKRNL]
- Change screen debug background to black for improved readability as per Johannes' request

svn path=/trunk/; revision=55596
2012-02-14 19:32:56 +00:00
Johannes Anderwald
56eadc580a [USBEHCI]
- Remove bogus assert
- Store full configuration descriptor
- skip intermediate descriptors until the requested descriptor is found while parsing the configuration descriptor
- simplify CUSBDevice::GetConfigurationDescriptors
- check if an interface descriptor has endpoint descriptors


svn path=/trunk/; revision=55595
2012-02-14 19:10:34 +00:00
Johannes Anderwald
65666555ca [USBEHCI] [USBOHCI]
- Do not queue a work item twice 

svn path=/trunk/; revision=55594
2012-02-14 19:04:23 +00:00
Rafal Harabien
5ca21de331 [COMCTL32]
- If no control or one of wizard buttons has focus in PROPSHEET_SetWizButtons, set focus to default wizard button. Tested in Win2k3. Worse fix was already in diff but wasn't applied.

svn path=/trunk/; revision=55593
2012-02-14 14:17:18 +00:00
Sylvain Petreolle
3a2974ab60 [ROSAPPS]
Add cmdutils apps to build.

svn path=/trunk/; revision=55592
2012-02-14 14:03:05 +00:00
Johannes Anderwald
daa3a4d63f [USBSTOR]
- Display errors when csw fails

svn path=/trunk/; revision=55591
2012-02-14 08:57:22 +00:00
Alex Ionescu
bc5bf60461 [CSRSS]: Remove unneeded initialization code, and move Win32k.sys related initailization to win32csr. Note that the "VDM IVT" stuff should move to videoprt's handler for IRP_MJ_CREATE, and opening the "\\DISPLAY1" needs to go in Win32k.sys (under NtUserInitialize I think).
[BOOT REGISTRY]: Cleanup subsystem entries to match Windows.

svn path=/trunk/; revision=55590
2012-02-14 08:23:01 +00:00
Alex Ionescu
9829c56509 [SMSS2/SMSS]: Nuke SMSS. SMSS2 is now in full control.
svn path=/trunk/; revision=55589
2012-02-14 06:06:39 +00:00
Cameron Gutman
4780c28aa1 [USB]
- Disable support for external USB hubs until they are properly supported

svn path=/trunk/; revision=55588
2012-02-14 04:15:57 +00:00
Alex Ionescu
9cd61471e9 Build fix.
svn path=/trunk/; revision=55587
2012-02-14 01:38:35 +00:00
Rafal Harabien
138580f9c6 [COMCTL32]
- Draw shadow if item has focus but isn't selected

svn path=/trunk/; revision=55586
2012-02-14 00:58:59 +00:00
Alex Ionescu
b5303c046f [CSRSRV2/CSRSS2]: Make multiple fixes to, bring up to speed, and finish implementation of the CSRSS/CSRSRV that has been laying around in trunk since forever. Not yet tested if it actually works yet, but it should now build and be much closer to fully functional. Of course, the trick is to figure out how to get it to co-exist with the current CSRSS/win32csr.
svn path=/trunk/; revision=55585
2012-02-14 00:57:32 +00:00
Alex Ionescu
9e265ba699 [SMLIB]: Implement SmSessionComplete.
svn path=/trunk/; revision=55584
2012-02-14 00:54:32 +00:00
Rafal Harabien
0674ee0915 [COMCTL32]
- Add support for LVS_EX_TRANSPARENTSHADOWTEXT style
[SHELL32]
- Add drop shadows support for desktop
- Set proper label color based on background color when drop shadows is disabled
- Update desktop colors when WM_SYSCOLORCHANGE or WM_SETTINGCHANGE msg is received
[BOOTDATA]
- Enable drop shadows by default (this option was hardcoded to 1 before)
[DESK]
- Send WM_SETTINGCHANGE with wParam = 0 when applying changes
[EXPLORER]
- Broadcast WM_SETTINGCHANGE message to shell view window

svn path=/trunk/; revision=55583
2012-02-13 20:52:20 +00:00
Jérôme Gardou
b4b1d63a78 [NTOSKRNL]
- Use proper macro for getting PDE from PTE.

svn path=/trunk/; revision=55582
2012-02-13 19:09:10 +00:00
Rafal Harabien
283c4ef464 - Really fix MSVC build...
svn path=/trunk/; revision=55581
2012-02-13 17:44:56 +00:00
Rafal Harabien
0fd800f47b - Fix MSVC build
svn path=/trunk/; revision=55580
2012-02-13 17:37:27 +00:00
Rafal Harabien
edd9177562 - Fix MSVC build (patch by Thomas Fabber reverted by me in previous commit)
svn path=/trunk/; revision=55579
2012-02-13 17:04:52 +00:00
Rafal Harabien
4cf1b4adda [COMCTL32]
- Add DrawShadowText implementation

svn path=/trunk/; revision=55578
2012-02-13 16:53:00 +00:00
Rafal Harabien
b226050aa4 - Fix rbuild build
svn path=/trunk/; revision=55577
2012-02-13 16:44:27 +00:00
Rafal Harabien
b6aeea23cf [COMCTL32]
- Sync to Wine 1.3.37

svn path=/trunk/; revision=55576
2012-02-13 16:34:02 +00:00
Timo Kreuzer
7a0cab18d0 [RTL]
Add missing parameter checks to RtlAreBitsClear and RtlAreBitsSet

svn path=/trunk/; revision=55575
2012-02-13 14:35:26 +00:00
Johannes Anderwald
6c35ffefb5 [USBOHCI]
- Set endpoint direction indicator for control transfers
- Mask Version bits when printing out version
- Implement function for dumping endpoint descriptor
- Implement retrieving pid direction from setup packet
- Flip the pid direction for the status descriptor when data is transferred
- Return packet size 8 when using the control pipe
- OHCI control transfer hang is gone 
- OHCI control should now work and attached HID devices finish initialization

svn path=/trunk/; revision=55574
2012-02-13 13:39:20 +00:00
Johannes Anderwald
6fe02c8f47 [USBHUB]
- Remove some hardcoded constants

svn path=/trunk/; revision=55573
2012-02-13 11:45:34 +00:00
Johannes Anderwald
a4870d538f [HIDUSB]
- Retrieve protocol after configuration has been selected
- Fixes HID regression
See issue #6886 for more details.

svn path=/trunk/; revision=55572
2012-02-13 11:12:58 +00:00
Johannes Anderwald
32157dc192 [HIDUSB]
- Check if boot procol is supported
- Don't assert on boot protocol active
See issue #6886 for more details.

svn path=/trunk/; revision=55571
2012-02-12 22:17:50 +00:00
Cameron Gutman
8b553a4ba7 [BLUE]
- Fix code designed to avoid touching the hardware if it is already owned
[KDIO]
- Take ownership of the display if we're debugging to screen
[TXTSETUP.SIF]
- Add an example entry of DbgOsLoadOptions for debugging 1st stage to screen
- 1st stage setup can now be debugged completely to screen with a modified txtsetup.sif (comment 1st DbgOsLoadOptions and uncomment 2nd)

svn path=/trunk/; revision=55570
2012-02-12 21:16:34 +00:00
Cameron Gutman
65beefbcd8 [USBDRV]
- Terminate the NT4 USB driver

svn path=/trunk/; revision=55569
2012-02-12 18:34:05 +00:00
Cameron Gutman
98d609d403 [USB]
- Merge r55564 and r55567 from usb-bringup-trunk
- USB development should now be done in trunk exclusively (UHCI implementation may be an exception)

svn path=/trunk/; revision=55568
2012-02-12 18:28:52 +00:00
Daniel Reimer
b0a26de757 Anschluß is no German!
Changing to Anschluss

svn path=/trunk/; revision=55565
2012-02-12 16:12:33 +00:00
Kamil Hornicek
47862c0956 [WIN32K]
Fix a potential memory leak. Spotted by Samuel Serapion.

svn path=/trunk/; revision=55562
2012-02-12 14:40:25 +00:00
Amine Khaldi
97524f1807 [XCOPY]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55560
2012-02-12 13:33:30 +00:00
Rafal Harabien
7147c51e0d [WIN32K]
- GetFocus returns NULL if calling thread is not a foreground thread

svn path=/trunk/; revision=55559
2012-02-12 12:23:54 +00:00
Rafal Harabien
65d63893a7 [WIN32K]
- Clip test vertically in ExtTextOut when ETO_CLIPPED is used

svn path=/trunk/; revision=55558
2012-02-12 11:02:00 +00:00
Amine Khaldi
cf9ae4daf8 [DISK_NEW]
* Fix msvc build.

svn path=/trunk/; revision=55557
2012-02-12 10:23:27 +00:00
Giannis Adamopoulos
fb671e96e8 [win32k]
- Initilize ExDesktopObjectType->TypeInfo.ValidAccessMask and ExWindowStationObjectType->TypeInfo.ValidAccessMask to let win32k use access checks to desktop and window station objects
- When opening a desktop and window station during THREADINFO initialization, give full access to the objects

svn path=/trunk/; revision=55556
2012-02-12 10:13:16 +00:00
Cameron Gutman
022f4b2ce5 [USB]
- We proudly merge the first charge of the usb-bringup branch. We do want to stress hardware support is still under heavy development and testing in real hardware is experimental
- Merge the Human Interface Device Stack(HID) which is used for mice / keyboards and other devices which use the USB interface, consisting of hidusb, hidparse, hidclass, mouhid, kbdhid
- Merge the composite driver, supports USB composite devices, laid out in usbccgp
- Merge the generic hub driver, which supports the USB root hub and in future USB hubs. Driver is usbhub
- Merge the Open Host Controller Interface driver (ohci)
- Merge the Enhanced Host Controller Interface driver (ehci)
- Merge the many fixes in other areas of ReactOS needed for USB to work (ntoskrnl, pci, inf, umpnpmgr, usetup)
- Special thanks goes the Haiku team, whose excellent code has provided a great base for the development of the new ReactOS USB / HID stack
- The development of the USB stack has shown the great potential when ReactOS developers team up together to achieve a common goal. The involved developers are here, listed alphabetically:

Alex Ionescu
Amine Khaldi
Cameron Gutman
Johannes Anderwald
Michel Martin
Thomas Faber
Thomas Lotz(Haiku)

Let's start the ReactOS revolution

svn path=/trunk/; revision=55555
2012-02-12 04:59:51 +00:00
Cameron Gutman
8141780521 [BUILD]
- Add rbuild files
- Fix dumb dependencies in cmake files
[DEBUG]
- Kill more debugging

svn path=/branches/usb-bringup-trunk/; revision=55554
2012-02-12 03:48:54 +00:00
Cameron Gutman
50daddc967 [HIDCLASS][HIDPARSE][HIDUSB][KBDHID][MOUHID][USBCCGP][USBD][USBEHCI][USBOHCI][USBHUB][USBSTOR]
- Massive debug spam reduction

svn path=/branches/usb-bringup-trunk/; revision=55553
2012-02-12 02:53:34 +00:00
Johannes Anderwald
68c1c7661e [USBEHCI]
- Enable async park mode when available
- Use correct type for the pipe handle
- Implement  URB_FUNCTION_GET_STATUS_FROM_INTERFACE,  URB_FUNCTION_GET_STATUS_FROM_ENDPOINT
- Verify that there is buffer provided in SubmitSetupPacket
[KBDCLASS]
- Forward requests to lower device

svn path=/branches/usb-bringup-trunk/; revision=55552
2012-02-12 00:49:18 +00:00
Timo Kreuzer
b3c15e9acd [FREELDR]
Revert to using the old heap code, as it broke 2nd stage on some systems

svn path=/trunk/; revision=55551
2012-02-12 00:01:01 +00:00
Giannis Adamopoulos
bf9a2b9964 [win32k]
- In reactos when an application tries to use a desktop or window station object we never check if it should have access to the object. However the only exception to this is NtUserGetObjectInformation. Since desktops and windows stations are a mess, NtUserGetObjectInformation always fails. Ironically windows do such access checks everywhere except NtUserGetObjectInformation. Fix NtUserGetObjectInformation by removing access checks
- Note: access checks for every other place will be fixed soon

svn path=/trunk/; revision=55550
2012-02-11 22:17:46 +00:00
Giannis Adamopoulos
9c80eb0d00 [win32k]
- Update pti->pClientInfo->hKL when pti->KeyboardLayout changes
- Fixes assertion after activating a second keyboard layout

svn path=/trunk/; revision=55549
2012-02-11 22:09:01 +00:00
Johannes Anderwald
2a06585e89 [USBSTOR]
- Implement retrieving endpoint halted status
- Fix multiple bugs which leaded to crashes (wrong device object passed). Usbstor now successfully restarts requests after handling the errors
- Implement mass storage reset, not yet used
- Add checks in CSW completion



svn path=/branches/usb-bringup-trunk/; revision=55548
2012-02-11 19:26:18 +00:00
Amine Khaldi
4ff2062ccb * Fix MSVC build.
svn path=/trunk/; revision=55547
2012-02-11 16:59:10 +00:00
Rafal Harabien
038a7c87d1 [NTDLL]
- Fix uninitialized variable usage causing first chance exceptions during SMSS2 loading on livecd

svn path=/trunk/; revision=55546
2012-02-11 15:30:50 +00:00
Amine Khaldi
a070e2aaf2 * Sync up to trunk r55544.
svn path=/branches/usb-bringup-trunk/; revision=55545
2012-02-11 11:27:29 +00:00
Amine Khaldi
c6574346df [PSDK]
* ntdddisk.h: Import a recent fix from trunk.

svn path=/branches/usb-bringup-trunk/; revision=55544
2012-02-11 10:34:28 +00:00
Amine Khaldi
b9193d4c1b [PSDK]
* ntdddisk.h: Improve some definitions and add some missing ones.

svn path=/trunk/; revision=55543
2012-02-11 10:32:22 +00:00
Cameron Gutman
812ea7c71a [PCI]
- Add forgotten line

svn path=/branches/usb-bringup-trunk/; revision=55542
2012-02-11 06:56:10 +00:00
Cameron Gutman
f896aeba5e [ACPI]
- Fix incorrect maximum bound for resource requirements
- Handle PCI buses manually
[HAL]
- Don't hang if the IRP_MN_QUERY_INTERFACE is received
[INF]
- Misc fixes

svn path=/branches/usb-bringup-trunk/; revision=55541
2012-02-11 06:25:16 +00:00
Cameron Gutman
ec01d86009 [PCI]
- Set device command flags when starting the PCI device PDO

svn path=/branches/usb-bringup-trunk/; revision=55540
2012-02-11 05:47:56 +00:00
Cameron Gutman
66246c5c2d [PCIX]
- Ignore invalid extended capabilities pointer
- Don't hang on unimplemented IRPs that we actually use

svn path=/branches/usb-bringup-trunk/; revision=55539
2012-02-11 05:15:25 +00:00
Cameron Gutman
a8c87a2245 [NTOSKRNL]
- Call HalAdjustResourceList to fixup the requirements list before building the resource list

svn path=/branches/usb-bringup-trunk/; revision=55538
2012-02-11 04:14:41 +00:00
Cameron Gutman
1bff183ee1 [NTOSKRNL]
- Implement IopFixupResourceListWithRequirements to replace IopCreateResourceListFromRequirements
- This functions fills in gaps between required resources and currently allocated resources in the resource list
- It also implements support for alternate requirement descriptors which IopCreateResourceListFromRequirements ignored
- Fix a critical bug in requirement processing that could result in the kernel allocating resources outside the devices requested range
- Now the PnP manager will actually claim resources that the device reports that it needs but it does not currently have

svn path=/branches/usb-bringup-trunk/; revision=55537
2012-02-11 03:54:10 +00:00
Johannes Anderwald
6ced7570a0 [USBEHCI]
- Store configuration index in the setup packet
- Perform retrieving the configuration request before storing the configuration details. Perform the same action for the select interface request
- EHCI now supports selecting configuration & interface on devices with more than one configuration (previously only one configuration was supported)
- Code has not yet been tested, as no available usb device has such feature

svn path=/branches/usb-bringup-trunk/; revision=55536
2012-02-11 02:10:20 +00:00
Cameron Gutman
f61b43a5c1 [HAL]
- Print a message when a PCI device requires an interrupt but has none assigned

svn path=/branches/usb-bringup-trunk/; revision=55535
2012-02-11 01:11:47 +00:00
James Tabor
338cb3493d Alexandre Julliard : Draw the mask with SRCCOPY in DrawIcon when the image isn't being drawn.
svn path=/trunk/; revision=55534
2012-02-11 01:09:41 +00:00
James Tabor
e1f18f1b3b Dmitry Timoshkov : user32: RealChildWindowFromPoint should skip invisible windows.
svn path=/trunk/; revision=55533
2012-02-11 00:44:16 +00:00
Cameron Gutman
4664ff43e2 [IPHLPAPI]
- Forward ICMP function calls to icmp.dll (for XP and higher)

svn path=/trunk/; revision=55532
2012-02-10 22:16:03 +00:00
Johannes Anderwald
3a5a6bf017 [USBSTOR]
- Read Capacity cmd length is 10 bytes

svn path=/branches/usb-bringup-trunk/; revision=55531
2012-02-10 21:42:42 +00:00
Johannes Anderwald
1ecef805ff [USBEHCI]
- Partly revert 55516, as the memory bug got fixed

svn path=/branches/usb-bringup-trunk/; revision=55530
2012-02-10 20:15:39 +00:00
Timo Kreuzer
3234bb7c43 [FREELDR]
Fix 64 bit warnings
Patch by Samuel Serapion, slightly modified by me

svn path=/trunk/; revision=55529
2012-02-10 19:10:17 +00:00
Pierre Schweitzer
fd8ceb0b0d [NTOSKRNL]
IoCreateSymbolicLink -> IoAssignArcName

svn path=/trunk/; revision=55528
2012-02-10 18:57:55 +00:00
Timo Kreuzer
cb1539b7df [RTL]
Fix64 bit warnings

svn path=/trunk/; revision=55527
2012-02-10 17:36:11 +00:00
Cameron Gutman
4c47e234d1 [CLASS2]
- Fix boot from HDD with USB drive present
- Fix USB drive failure with no HDD present

svn path=/branches/usb-bringup-trunk/; revision=55526
2012-02-10 17:14:39 +00:00
Johannes Anderwald
6c4befe209 [USBEHCI] [USBOHCI]
- Don't corrupt memory when a queue head / transfer descriptor is freed
- How did this work before...

svn path=/branches/usb-bringup-trunk/; revision=55525
2012-02-10 16:28:35 +00:00
Johannes Anderwald
147eeaf010 [USB-BRINGUP-TRUNK]
- Rename usbehci & usbhub

svn path=/branches/usb-bringup-trunk/; revision=55524
2012-02-10 11:58:11 +00:00
Giannis Adamopoulos
af8d992a9e [win32k]
- fix some more tests in user32:winstation

svn path=/trunk/; revision=55522
2012-02-09 23:18:47 +00:00
Johannes Anderwald
b5c9d47586 [USBHUB]
- Fix mingw build

svn path=/branches/usb-bringup-trunk/; revision=55521
2012-02-09 21:37:37 +00:00
Timo Kreuzer
ed481636c6 [FREELDR]
Fix rbuild...

svn path=/trunk/; revision=55520
2012-02-09 20:11:35 +00:00
Timo Kreuzer
dd52d89b53 [FREELDR]
Rename Heap_new.c to Heap.c

svn path=/trunk/; revision=55519
2012-02-09 20:10:26 +00:00
Timo Kreuzer
e2efea8263 [FREELDR]
- Enable new heap code and cleanup the heap, releasing unused memory, before starting reactos
- Gives our kernel about 4MB additional memory, which - at the current leak rate - means around 8 minutes longer before it runs out of memory :)
- Using the temp heap for all temporary allocations should increase the amount of saved space

svn path=/trunk/; revision=55518
2012-02-09 20:01:10 +00:00
Giannis Adamopoulos
9cde5acdc8 [win32k]
- Use the parse context to store whether or not the desktop object was created. If the object was not created, NtUserCreateDesktop should return immediately (this can happen if it didn't exist)
- Before this , if the desktop already exited, we opened the existing desktop and initialized it again. We also created another desktop heap, desktop window, etc.. This fact confused threads using this desktop and caused problems like the assertion we see in the test suite

svn path=/trunk/; revision=55517
2012-02-09 19:41:38 +00:00
Johannes Anderwald
d54653187b [USBEHCI]
- Revert 55515, 55502, 55491, 55490, 55489 as it breaks mass storage support in VBox + Vmware

svn path=/branches/usb-bringup-trunk/; revision=55516
2012-02-09 19:11:13 +00:00
Johannes Anderwald
08ec4cc76d [EHCI]
- Try fix bulk transfers #1

svn path=/branches/usb-bringup-trunk/; revision=55515
2012-02-09 16:06:34 +00:00
Johannes Anderwald
42ff9c13c0 [USBHUB]
- Ignore error when the device provides a string descriptor but no contents
- Fixes installation of cheap usb devices

svn path=/branches/usb-bringup-trunk/; revision=55514
2012-02-09 15:33:09 +00:00
Timo Kreuzer
672c617e8c [NTOSKRNL]
Use MiNonPagedSystemSize when creating the system NP memory area instead of making assumptions about the memory layout
Finally the amd64 port boots into usermode and usetup is partly working, formats the harddisk but freezes, when copying files.

svn path=/trunk/; revision=55513
2012-02-09 12:04:31 +00:00
Timo Kreuzer
2de5176c84 {RTL]
- Fix RtlLengthSecurityDescriptor
- Fix pointer calculation in amd64 interlocked slist code
- Assert that the slist entry pointer is 16 byte aligned
[CRT]
- Add amd64 stubs for acos and acosf

svn path=/trunk/; revision=55512
2012-02-09 11:54:59 +00:00
Timo Kreuzer
0b2dbd9cea [USB]
Don't compile nt4 compat driver for amd64

svn path=/trunk/; revision=55511
2012-02-09 11:51:21 +00:00
Timo Kreuzer
680bfb5aa7 [CLASS2]
Fix 64 bit warnings

svn path=/trunk/; revision=55510
2012-02-09 11:34:21 +00:00
Alex Ionescu
14ba04899c [SMSS2]: Implement SmpCallCsrCreateProcess and SmpLoadSubsystem. We now load CSRSS and everything works 100%! Winlogon is now launched by SMSS2 and no regressions have been found.
[SMSS]: Turn off all code other than setting up the pagefile.
There's a lot of debug prints, as soon as things seem stable after a few days, SMSS will be gone and SMSS2 will take over and DPRINT1s will mostly be gone.

svn path=/trunk/; revision=55509
2012-02-09 02:21:56 +00:00
Alex Ionescu
e23e0ca401 [SMSS2]: Implement SmpExecPgm and SmpSbCreateSession. Nothing happens (STATUS_OBJECT_NAME_NOT_FOUND is returned) because we don't really launch CSRSS and so we can't find a subsystem for Winlogon and fail (as expected for now).
svn path=/trunk/; revision=55508
2012-02-09 00:07:36 +00:00
Alex Ionescu
09c7bc60a5 [SMSS2]: Make not-implemented functions return a failure. Cleanup the SMSS hack in the _main function to be cleaner. Add a few more functions and flags to the header. Fix a function prototype.
svn path=/trunk/; revision=55507
2012-02-08 23:49:19 +00:00
Timo Kreuzer
2adafb93b0 [SHELL32]
Fix a bug I introduced in r55498
Spotted by Thomas

svn path=/trunk/; revision=55506
2012-02-08 22:53:29 +00:00
Timo Kreuzer
54bd4f5cc8 [NTOSKRNL]
- Implement amd64 version of MmDeleteProcessPageDirectory
- Fix amd64 build

svn path=/trunk/; revision=55505
2012-02-08 22:23:10 +00:00
Timo Kreuzer
683b30a149 [XDK/DDK]
Slightly reorganize architecture dependent headers, so that ASSERT can be used
[CRT]
Use some definitions only for vista+, since 2k3 msvcrt doesn't have them

svn path=/trunk/; revision=55504
2012-02-08 22:15:06 +00:00
Timo Kreuzer
5eeb447451 [SMLIB]
"Fix" 64 bit compilation

svn path=/trunk/; revision=55503
2012-02-08 22:11:02 +00:00
Johannes Anderwald
00f2bd907d [EHCI]
- Add back old implementation for testing purposes (if'd out)
- Display more status field of queue head / transfer descriptor
- Dump queue head when a halted queue is detected
- Display data toggle status

svn path=/branches/usb-bringup-trunk/; revision=55502
2012-02-08 22:06:00 +00:00
Alex Ionescu
e856535365 [SMSS2]: Implement (not yet used) Session Management APIs.
svn path=/trunk/; revision=55501
2012-02-08 22:05:53 +00:00
Alex Ionescu
17492f9097 [CSRSRV]: The connection with SMSS(2) should be done after initialization, not before. This is because in SMSS2, there is no "Complete" API -- you are assumed to be ready when you connect, instead of connecting + completing later. Should not break SMSS behavior, but required for SMSS2.
[CSRSRV]: Fix many bugs in ServerSbApiPortThread. This function never worked as SMSS never actually connects to the SB API Port. Since SMSS2 does, a few bugs were discovered. Also, hack-plement the one SB API that is required for SMSS2 (SbpCreateSession). All we do is resume the thread we receive (Winlogon)... normally we'd also register a hard-error port, etc.
[CSRSRV]: If connecting with SMDLL to SMSS did not work (such as on my system where SMSS is no longer there), try using SMLIB and SMSS2 instead. This way CSRSS still works with both environments.
[CSRSRV]: Required rbuild/cmake changes to build with SMLIB.

svn path=/trunk/; revision=55500
2012-02-08 21:56:23 +00:00
Alex Ionescu
f1831b3bac [SM Headers]: Fix a few typos.
svn path=/trunk/; revision=55499
2012-02-08 21:53:00 +00:00
Timo Kreuzer
9e03b92631 [SHELL32]
Fix 64 bit MSVC build, fix some warnings

svn path=/trunk/; revision=55498
2012-02-08 21:38:53 +00:00
Rafal Harabien
b6d994d577 [SHELL32]
- Fix warnings in MSVC

svn path=/trunk/; revision=55497
2012-02-08 19:03:43 +00:00
Timo Kreuzer
a713dd0ea3 [HAL]
Fix syntax, patch by Victor Martinez

svn path=/trunk/; revision=55496
2012-02-08 18:29:08 +00:00
Timo Kreuzer
d964bd32f2 [ATL]
Fix an MSVC warning

svn path=/trunk/; revision=55495
2012-02-08 17:16:00 +00:00
Timo Kreuzer
03e2adb69e [NDK]
Add definition of PWOW64_CONTEXT

svn path=/trunk/; revision=55494
2012-02-08 16:25:13 +00:00
Cameron Gutman
4b30c8402f [USBHUB]
- Don't wait for the work item to complete in the SCE completion handler
- Use an event to signal the completion of a reset and wait for that event during IRP_MN_START_DEVICE handling so devices are enumerated synchronously which allows USB boot devices to be enumerated

svn path=/branches/usb-bringup-trunk/; revision=55493
2012-02-08 15:50:52 +00:00
Johannes Anderwald
0913187636 [USBEHCI]
- Fix a few bulk transfer bugs
- Enable interrupt completion on last interrupt 
- Increment transferred offset 
- Mass storage device now gets further (passing SRB_FUNCTION_CLAIM_DEVICE)

svn path=/branches/usb-bringup-trunk/; revision=55491
2012-02-08 01:10:36 +00:00
Johannes Anderwald
d1da088aa8 [USBEHCI]
- Merge hub controller from usbohci
- Partly implement AbortPipe request
- Implement resetting data toggle in HandleSyncResetAndClearStall

svn path=/branches/usb-bringup-trunk/; revision=55490
2012-02-07 22:20:46 +00:00
Johannes Anderwald
133cb2712c [USBEHCI]
- Rewrite the transfer descriptor handling
- Take into account the direction of the pid
- Revert previously added hacks 
- Support now more than one transfer descriptor for control transfers
- Include the bulk transfers in one queue head which should speed up operation
- Store data toggle in usb endpoint structure
- Mass storage devices now passes the control status phase on real hw and enters bulk operation stage

svn path=/branches/usb-bringup-trunk/; revision=55489
2012-02-07 21:48:05 +00:00
Pierre Schweitzer
eece771f9f [RAPPS]
Fix French translation encoding

svn path=/trunk/; revision=55488
2012-02-07 20:40:00 +00:00
Timo Kreuzer
48449b1971 [CRT]
Fix 64 bit build of MSVCRT

svn path=/trunk/; revision=55487
2012-02-07 18:09:25 +00:00
Pierre Schweitzer
26260e22cb [NTOSKRNL]
*grmbl*
s/UINT_MAX/ULONG_MAX/g
*grmbl*

svn path=/trunk/; revision=55486
2012-02-07 17:50:00 +00:00
Pierre Schweitzer
b3466d43ab [NTOSKRNL]
Fix a FIXME in IopCreateArcNames.
This allows ntoskrnl to find where it boots from and where it is when performing remote boot.
Now ReactOS should boot a bit farther using PXE :-).

svn path=/trunk/; revision=55485
2012-02-07 17:40:15 +00:00
Johannes Anderwald
4009376a99 [USBEHCI]
- Fix data toggle misuse
- EHCI host error is now fixed
- Fixed by the Haiku dev Michael Lotz

svn path=/branches/usb-bringup-trunk/; revision=55484
2012-02-07 16:46:19 +00:00
Johannes Anderwald
0ecb2a6706 [USBEHCI]
- Don't set NumberOfTransaction 0x3 for the async queue head(Haiku doesnt do it too)
- Also don't set maximum packet length or interrupt on complete
- Stop the async / periodic schedules after acquiring ownership from os (ported from the Pedigree OS)
- Remove unused structs from header 
- Allocate device descriptor from start of a page to prevent alignment issues
- Clear halted bit in the queue overlay transaction layer (usb_queue.cpp:507)
- Always set the alternative and next pointers in BuildControlTransferQueueHead
- Use data the toggle in the transfer requests
- Start using toggle in bulk requests, invert data toggle after each descriptor
- EHCI controller still reports error 0xA / 0xB which is USB Error Interrupt + Frame List Rollover + [USB Interrupt]
- Errors need to be researched more, though the control transfers results appear o.k.
- Tested in real hw + ros stack with USB Mass Storage Device
- Currently hangs after first completed CDB/Data/CSW block

svn path=/branches/usb-bringup-trunk/; revision=55483
2012-02-07 16:18:56 +00:00
Jérôme Gardou
31a15829d9 [WIN32KDLL]
- use spec file
 - fix use of def files

svn path=/trunk/; revision=55482
2012-02-07 14:54:02 +00:00
Timo Kreuzer
f89567dbbb [smmsg.h]
Fix 64 bit compilation

svn path=/trunk/; revision=55481
2012-02-07 13:21:04 +00:00
Alex Ionescu
5df1402bab [SMLIB]: Rbuild fix.
svn path=/trunk/; revision=55480
2012-02-07 08:05:06 +00:00
Alex Ionescu
7c4171a370 [SMLIB]: Forgot to commit this directory.
svn path=/trunk/; revision=55479
2012-02-07 07:43:20 +00:00
Alex Ionescu
dfb761830d [SMSS2]: Implement executing the initial command as well as doing the SM-to-SM initial connection.
[SMSS2]: Implement the main LPC loop and handle all the supported APIs (all stubs for now). Also handle new connection requests and implement SmpHandleConnectionRequest.
[SMSS2]: Implement subsystem helper functions.
[SMSS2]: Use SmApiPort2 instead of Sm2ApiPort.
[SMSS2]: Rename the SMSRV_APIs not to conflict with the function names, nor with the client functions in smlib.

svn path=/trunk/; revision=55478
2012-02-07 07:13:42 +00:00
Cameron Gutman
27a04819e7 [USBEHCI]
- Wait for periodic scheduling to start
- Increase the wait interval for asynchronous scheduling to start

svn path=/branches/usb-bringup-trunk/; revision=55477
2012-02-07 02:22:34 +00:00
Cameron Gutman
ec95123297 [USBOHCI]
- Enable bus master on OHCI controllers if it's not set by default

svn path=/branches/usb-bringup-trunk/; revision=55476
2012-02-07 01:59:18 +00:00
Amine Khaldi
60e9668112 [CLASSPNP]
* Rename class.spec to classpnp.spec and adjust the build files accordingly.
[DISK_NEW]
* Fix the build files (cmake and rbuild).
* Fix InitSafeBootMode use.
* Add disk_new to build.

svn path=/branches/usb-bringup-trunk/; revision=55475
2012-02-06 22:48:17 +00:00
Amine Khaldi
6fe69b972d [WDMGUID]
* Add missing GUID_DEVINTERFACE_PARTITION guid.

svn path=/branches/usb-bringup-trunk/; revision=55474
2012-02-06 22:45:18 +00:00
Amine Khaldi
19caa78426 [NTOSKRNL]
* Fix build.

svn path=/branches/usb-bringup-trunk/; revision=55473
2012-02-06 22:01:35 +00:00
Timo Kreuzer
35a3e62e9d [NTOSKRNL]
- Implement MiIsUserP*e inline functions to efficiently determine if a pte is a pte/pde/ppe or pxe for a user mode page
- Make MiDetermineUserGlobalPteMask work for _MI_PAGING_LEVELS >= 3
- In MiResolveDemandZeroFault, use MI_MAKE_HARDWARE_PTE only, it does all the necessary work.

svn path=/trunk/; revision=55472
2012-02-06 22:01:09 +00:00
Amine Khaldi
3bc403f6e7 [SMSS2]
* Fix build.

svn path=/trunk/; revision=55471
2012-02-06 20:53:47 +00:00
Amine Khaldi
7a516cc7e6 [MSI_WINETEST]
* Sync to Wine 1.3.37. This partially reverts r55047.

svn path=/trunk/; revision=55470
2012-02-06 20:43:38 +00:00
Amine Khaldi
5d71814fc4 [MSI]
* Properly sync to Wine 1.3.37. This partially reverts r55046.

svn path=/trunk/; revision=55469
2012-02-06 20:43:28 +00:00
Alex Ionescu
56152bb4a9 [SMSS2]: I hate you, rbuild.
svn path=/trunk/; revision=55468
2012-02-06 19:37:19 +00:00
Alex Ionescu
524f08e959 [SMSS2]: Implement SmpTranslateSystemPartitionInformation which sets a few last registry keys as part of the initialization process.
[SMSS2]: Implement SmpLoadSubsystemsForMuSession which correctly creates a session, loads win32k.sys inside of it, and then detaches from the session. Winlogon.exe is set as the initial command (but not launched), and CSRSS is fake-started.
[CSRSRV]: No longer start win32k.sys, that's not your job.
[SMSS2]: Kill most debug prints that aren't errors.

svn path=/trunk/; revision=55467
2012-02-06 18:57:18 +00:00
Amine Khaldi
9aaaa6c4a2 [SXS]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55466
2012-02-06 18:48:50 +00:00
Alex Ionescu
560ff3fed9 [SMSS2/SMSS]: Put SMSS back in charge of the pagefile as yet another attempt to fix KVM.
[NTOSKRNL]: Stub-plement SystemSessionDetachInformation.

svn path=/trunk/; revision=55465
2012-02-06 18:14:36 +00:00
Alex Ionescu
5fb988c04d [NTOSKRNL]: Stubplement SystemSessionCreateInformation (it allocates a real Session ID and sets the right EPROCESS flags). Nobody uses this yet (future SMSS2 will).
[SMSS2]: More attempts at fixing KVM.

svn path=/trunk/; revision=55464
2012-02-06 17:41:49 +00:00
Alex Ionescu
1fbcc2809f [SMSS2]: Add some debugging to figure out what's happening on KVM.
svn path=/trunk/; revision=55463
2012-02-06 17:03:59 +00:00
Timo Kreuzer
60f4720280 [NTOSKRNL]
Handle 3 and 4 level page tables in MmArmAccessFault

svn path=/trunk/; revision=55462
2012-02-06 15:08:32 +00:00
Cameron Gutman
1374772ff7 [NTOSKRNL]
- Assert that reference counts are sane in MmReferencePage and MmDereferencePage

svn path=/trunk/; revision=55461
2012-02-06 15:04:12 +00:00
Timo Kreuzer
1e7a03a903 [NTOSKRNL]
Add a modification that I missed to apply.

svn path=/trunk/; revision=55460
2012-02-06 14:35:09 +00:00
Timo Kreuzer
02fdd71dd4 [NTOSKRNL]
- Modify the logic in MmArmAccessFault, so that faults on kernel mode addresses including page table addresses are handled in the first part and user mode addresses (VADs) in the second part. This works, because for the special case of page table addresses, the user mode and kernel mode part of the code end up doing the same thing and this simplifies the code.
- In the user mode part call MiCheckVirtualAddress early and bail out if no VAD is found, since we do not care about any other cases any more.

svn path=/trunk/; revision=55459
2012-02-06 14:32:07 +00:00
Giannis Adamopoulos
0e7cf2af87 [win32k]
- Cleanup Win32kProcessCallback and Win32kThreadCallback
- Even though it works, trying to post a message in Win32kProcessCallback after the THREADINFO is destroyed can only cause trouble, so move it in Win32kThreadCallback
- There is no need to try opening a desktop and windowstation before winlogon initializes
- Handle errors properly when we fail to get a default window station and desktop for the new process
- Enable win32k syscall hook callbacks
- Rewrite SetThreadDesktop to update THREADINFO properly and handle errors properly
- Do not initialize the THREADINFO in GetW32ThreadInfo as it is now done properly (actually leave a small hack that updates pci->dwTIFlags)
- Add UserDbgAssertThreadInfo that asserts the integrity of THREADINFO, CLIENTINFO and CLIENTTHREADINFO. This is called by GetW32ThreadInfo and the syscall hook callbacks

svn path=/trunk/; revision=55458
2012-02-06 12:30:59 +00:00
Giannis Adamopoulos
da5891c24b [win32k]
- Fix a warning caused by my previous commit

svn path=/trunk/; revision=55457
2012-02-06 11:00:52 +00:00
Timo Kreuzer
44d9f6f838 [NTOSKRNL]
- Implement MiSynchronizeSystemPde, which does what its name suggests, synchronize a system PDE and is an improved replacement (with a more proper name) for MiCheckPdeForPagedPool
- Move some code to avoid an additional check
- Call MiResolveDemandZeroFault directy instead of creating a demand zero PDE and then calling MiDispatchFault, which after a lot of checks will finally do the same

svn path=/trunk/; revision=55456
2012-02-06 10:46:52 +00:00
Alex Ionescu
ed64af75b6 [SMSS]: Nuke the environment code and instead inherit SMSS2's, which does all the right things. #if 0 all the non-used code, and nuke support for the "debug" subsystem as well as the custom "SmQuery" APIs.
[SMSS2]: Use SMSS2's environment when creating SMSS.

svn path=/trunk/; revision=55455
2012-02-06 09:29:33 +00:00
Timo Kreuzer
b207b33d11 [ÇNTOSKRNL]
- modify MiResolveDemandZeroFault to take the page protection as a parameter instead of the PTE. This will be used soon.
- Move increment of counters into the region where the pfn lock is held to avoid race conditions and make heavy locked operations unneccessary
- Add some ASSERTs

svn path=/trunk/; revision=55454
2012-02-06 09:26:23 +00:00
Alex Ionescu
12f8a6d6a6 [SMSS2]: Implement SmpProcessFileRenames and actually create the paging file now. All initialization work is now done by SMSS2.
[SMSS]: Neuter away most of the code and only keep SMSS around for managing the API port.
Next step is to make the SMSS2 API port go into use.

svn path=/trunk/; revision=55453
2012-02-06 09:06:38 +00:00
Alex Ionescu
f17b946a88 [NTOSKRNL]: Finish implementation of NtAreMappedFilesTheSame based on what winetests revealed. Should fix all 20+ winetests in this area, on top of making Ldr suck less.
svn path=/trunk/; revision=55452
2012-02-06 08:17:03 +00:00
Johannes Anderwald
99a3cc7d54 [DISK]
- Add more structures to ntdddisk.h
- Fix more compile errors in disk_new
- disk_new builds but fails to link as classpnp import lib is broken

svn path=/branches/usb-bringup-trunk/; revision=55451
2012-02-06 08:15:21 +00:00
Cameron Gutman
385ddbfd32 [USBEHCI]
- Implement ResetController and call it before setting up the controller
- Don't disable 64-bit addressing until the BIOS gives up control of the controller
- Comment out manually clearing the SMI interrupt and the BIOS owned flag by request of janderwald
- EHCI no longer hangs for me on real hardware during controller initialization

svn path=/branches/usb-bringup-trunk/; revision=55450
2012-02-06 07:41:20 +00:00
Johannes Anderwald
f0520a8b63 [DDK]
- More header fixes for disk_new

svn path=/branches/usb-bringup-trunk/; revision=55449
2012-02-06 07:35:22 +00:00
Alex Ionescu
16b9a65060 [NTOSKRNL]: Partly implement NtAreMappedFilesTheSame...
[NTDLL]: Fix (although I'm not sure quite why) LdrpCheckForLoadedDll which was crashing now that I've fixed PAGE_EXECUTE sections with only FILE_EXECUTE handles. Ironically, this meant that LdrpCheckForLoadedDll never worked until my previous fix some revisions ago, it always returned FALSE.
This should fix KVM/QEMU crashes...

svn path=/trunk/; revision=55448
2012-02-06 06:53:28 +00:00
Johannes Anderwald
2f6346e3cf [DISK_NEW]
- Fix compilation of new disk driver 
- Patch by Alex Ionescu

svn path=/branches/usb-bringup-trunk/; revision=55447
2012-02-06 06:50:19 +00:00
Timo Kreuzer
a78b493a6b [NTOSKRNL]
In PeFmtCreateSection don't use the ImageBase field of the ImageOptionalHeader directly, since it's different between PE32 and PE64. Use the ImageSectionObject->ImageBase field instead, which already contains the correct value.

svn path=/trunk/; revision=55446
2012-02-06 00:29:50 +00:00
Timo Kreuzer
83904f66db [NTOSKRNL]
- Add MM_HAL_VA_END and use it in MiAddHalIoMappings instead of making assumptions about the page tables
- Add MM_SHARED_USER_DATA_VA for x86
- use MM_SHARED_USER_DATA_VA in Mm to avoid ambiguities
- fix or comment out USER_SHARED_DATA in asm headers, as it should be the kernel mode address here
- set Teb->ExceptionList to NULL on amd64, it is used as a link to the Wow64 TEB, if any

svn path=/trunk/; revision=55445
2012-02-06 00:24:31 +00:00
Amine Khaldi
6c70734db8 * Fix wallpaper names in reactos.dff.
svn path=/branches/ros-branch-0_3_14/; revision=55444
2012-02-05 22:33:16 +00:00
Rafal Harabien
ac08c3201c - Update dff to include new wallpapers
svn path=/branches/ros-branch-0_3_14/; revision=55443
2012-02-05 21:19:26 +00:00
Daniel Reimer
a10e76cc38 Massive rapps update. Almost anything revisited and corrected.
svn path=/trunk/; revision=55442
2012-02-05 21:15:01 +00:00
Giannis Adamopoulos
aac3d18763 [rosautotest]
- When rosautotest is launched, show how much time has past since the machine has started
- Also show how much time each individual test need to complete
- The purpose of this feature isn't to benchmark the os but to let us spot regressions regarding test time 

svn path=/trunk/; revision=55441
2012-02-05 20:56:21 +00:00
Johannes Anderwald
ba68ad2102 [HIDPARSE]
- Check if the report uses a report id
- Fix arrows in USB 2 PS/2 conversion table (Needs more fixing)

svn path=/branches/usb-bringup-trunk/; revision=55440
2012-02-05 20:28:26 +00:00
Giannis Adamopoulos
a423f34284 [win32k]
- load gpsi->dtCaretBlink and g_PaintDesktopVersion in sysparams.c
- Rename IntGdiGetLanguageID to UserGetLanguageID
- Remove some unused functions and definitions

svn path=/trunk/; revision=55439
2012-02-05 20:21:22 +00:00
Timo Kreuzer
440561287c [NTOSKRNL]
- Modify MiRosTakeOverPebTebRanges to only create a memory area for the shared user page and rename it to MiRosTakeOverSharedUserPage. Previously it was creating a memory area for the whole region from USER_SHARED_DATA up to MM_HIGHEST_USER_ADDRESS, which is the majority of the x64 user mode address space and doesn't even contain the PEB/TEB. Those are allocated below the shared user page and get their memory areas created in MiInsertNode.
- Add amd64 versions of MmGetPageTableForProcess, MmUnmapPageTable, MmGetPageFileMapping

svn path=/trunk/; revision=55438
2012-02-05 18:41:37 +00:00
Timo Kreuzer
78b0ef2aa4 [NTOSKRNL]
- Rewrite SeCaptureSecurityDescriptor. The old code was mess and totally broken for 64 bit.
- Many fixes to security descriptor code that was making wrong assumptions about the SECURITY_DESCRIPTOR structures

svn path=/trunk/; revision=55437
2012-02-05 17:57:34 +00:00
Amine Khaldi
b5d2889fe6 * Merge r55430 from trunk.
svn path=/branches/ros-branch-0_3_14/; revision=55436
2012-02-05 17:50:42 +00:00
Amine Khaldi
842eead3d3 * Merge r55432 from trunk.
svn path=/branches/ros-branch-0_3_14/; revision=55435
2012-02-05 17:27:26 +00:00
Amine Khaldi
34f85f1924 * Properly set the default wallpaper for both bootcd and livecd. Missed this file in the previous commit.
svn path=/branches/ros-branch-0_3_14/; revision=55434
2012-02-05 17:26:22 +00:00
Timo Kreuzer
53b6f45505 [NTOSKRNL]
Handle _MI_PAGING_LEVELS >= 3 in MiBuildPagedPool and MmArmAccessFault

svn path=/trunk/; revision=55433
2012-02-05 17:19:58 +00:00
Amine Khaldi
66ef59c637 [PORTCLS]
* Silence some debug info.

svn path=/trunk/; revision=55432
2012-02-05 17:19:07 +00:00
Timo Kreuzer
75a453ceba [NTOSKRNL/NEWCC]
Fix MSVC build and warnings

svn path=/trunk/; revision=55431
2012-02-05 16:42:22 +00:00
Thomas Faber
0c13e015cf [CRT]
- Fix multiple free in msvcrt_free_io. Fixes VLC Player crash on exit. Wine already has it right.

svn path=/trunk/; revision=55430
2012-02-05 15:47:41 +00:00
Johannes Anderwald
cf494ea401 [HIDCLASS]
- Check if attaching to device stack failed. In that case fail the request
[HIDUSB]
- Always set SupriseRemovalOk
[USBCCGP] [HIDCLASS] [USBHUB] [USBSTOR]
- Check if the pdo is still in the pdo list. Only call IoDeleteDevice in that case

svn path=/branches/usb-bringup-trunk/; revision=55429
2012-02-05 15:36:00 +00:00
Rafal Harabien
eb0a5bb375 - Update Start Menu bitmaps to contain a proper version number instead of "0.4 - SVN"
svn path=/branches/ros-branch-0_3_14/; revision=55428
2012-02-05 14:27:44 +00:00
Amine Khaldi
5e27501533 * Adjust wallpapers names and convert them to bmp.
* Properly set the default wallpaper for both bootcd and livecd.

svn path=/branches/ros-branch-0_3_14/; revision=55427
2012-02-05 14:12:32 +00:00
Rafal Harabien
0bb1f439a4 [CMAKE]
- Add wallpaper optional module to CMake build

svn path=/trunk/; revision=55426
2012-02-05 13:44:16 +00:00
Rafal Harabien
8562446b0d - Add CMakeLists for wallpaper
svn path=/trunk/; revision=55425
2012-02-05 13:43:04 +00:00
Olaf Siejka
a0f9dfe66d [TRANSLATION]
- Bulgarian translation update of several modules (bug no. 6840), by CCTANEB, minor fixes by me;
- Polish translation update of sysdm by me;



svn path=/trunk/; revision=55424
2012-02-05 12:21:11 +00:00
Timo Kreuzer
d7bdbf2152 [NTOSKRNL]
- Fix a bug in CmpSetSystemValues, where an uninitialized handle would be closed in the failure path.
- Add a hack on top of the MI_GET_ROS_DATA(x) hack so that we can squeeze a pointer into a 32 bit field.
Make MmInitializeProcessAddressSpace amd64 ready and use a portable way to determine the page table base pfn in MiInitializeWorkingSetList
- Make MmProbeAndLockPages ready for 3 and 4 level page tables
add MiIsPteOnP*eBoundary macros - use  these in MmProbeAndLockPages
- Raise IRQL to SYNCH_LEVEL not DISPATCH_LEVEL in KiAcquireDispatcherLock
- Add MiNonPagedSystemSize for all architectures
- Fix amd64 definition of KERNEL_HANDLE_FLAG
- Fix definition of PrototypePte
- Fix KiGetLinkedTrapFrame()
- Make MmProtectTpPteMask 64 bit wide 
- Fix definition of MI_PTE_LOOKUP_NEEDED for amd64
- Impllement KiSendEOI() to be able to send an EOI from C code.
- Fix some MSVC/amd64 warnings

svn path=/trunk/; revision=55423
2012-02-04 23:08:20 +00:00
Pierre Schweitzer
82848d85df [MOUNTMGR]
Implement DeleteRemoteDatabaseEntry

svn path=/branches/usb-bringup-trunk/; revision=55422
2012-02-04 22:01:12 +00:00
Timo Kreuzer
cb837e18a1 [FREELDR]
- Don't map the low 1 MB into kernel space, it's pointless and leads to inconsistencies between reported memory type and what is found in the page tables. On x86 it works, because it uses an overcomplicated pfn initialization wih redundent checks. Anyway this memory, containing freeldr and real mode code, was simply wasted.
- Silence some debug prints
- Fix warnings

svn path=/trunk/; revision=55421
2012-02-04 21:53:09 +00:00
Cameron Gutman
c7cf9aa8b0 [PSDK]
- Define USBDI_VERSION to 0x500 instead 0x600 because we support none of the Vista APIs so USBD will report the correct version

svn path=/branches/usb-bringup-trunk/; revision=55420
2012-02-04 21:50:44 +00:00
Sylvain Petreolle
98a73736a6 [ADVAPI32]
Don't export Vista+, unused and unimplemented APIs.
Some apps / tests detect their presence and try to use them.

svn path=/trunk/; revision=55419
2012-02-04 21:42:22 +00:00
Timo Kreuzer
eb594c7610 [NDK]
Fix amd64 definitions of SYNCH_LEVEL, DISPATCH_LENGTH, KINTERRUPT, KTHREAD, KPROCESS, EPROCESS
- add MM_SHARED_USER_DATA_VA
- Add PsGetProcessSessionId prototype
- Remove duplicated RtlWow64Get/SetThreadContext prototypes

svn path=/trunk/; revision=55418
2012-02-04 21:16:52 +00:00
Eric Kohl
5a51670178 [ADVAPI32]
Add or fix parameter checks.

svn path=/trunk/; revision=55417
2012-02-04 19:56:21 +00:00
Cameron Gutman
6e3fa77024 [USBD]
- Add and fix missing exports
- Add UNIMPLEMENTED to unimplemented functions
- Fix completely broken USBD_GetPdoRegistryParameter (which wasn't even exported because somebody made a typo and couldn't figure it out)
- My Linksys USB300M driver now loads but it runs into some unimplemented code paths in usbehci

svn path=/branches/usb-bringup-trunk/; revision=55416
2012-02-04 18:39:09 +00:00
Timo Kreuzer
9fa8f0915e [RTL]
- Fix RtlLengthSecurityDescriptor
- Implement amd64 version of Implement RtlInitializeContext
- Add unwind info to amd64 debug asm functions
- Fix 64 bit HEAP_COMMON_ENTRY structure The resulting version doesn't exactly match the original windows one, but its compatible, as every field, except the dummy fields - which are omitted - is at its correct position.

svn path=/trunk/; revision=55415
2012-02-04 18:35:56 +00:00
Timo Kreuzer
cbee83498e [NTDLL]
- Implement amd64 version of LdrInitializeThunk and KiUserApcDispatcher
- Export ExpInterlockedPopEntrySList* on amd64, too
- Fix some 64 bit issues

svn path=/trunk/; revision=55414
2012-02-04 18:25:25 +00:00
Timo Kreuzer
85bb9f1bce [XDK]
- fix ASSERTs in amd64 inline functions
- fix definition of KWAIT_BLOCK
These fixes are not critical, so I don't update wdm.h to avoid additional recompilation

svn path=/trunk/; revision=55413
2012-02-04 17:29:34 +00:00
Johannes Anderwald
9f4adfb8ee [USBOHCI]
- Revert 55411

svn path=/branches/usb-bringup-trunk/; revision=55412
2012-02-04 15:04:27 +00:00
Johannes Anderwald
80c665d2ac [HIDCLASS]
- Remove PDO from pdo list when it is destroyed
- Handle IRP_MN_QUERY_REMOVE_DEVICE, IRP_MN_CANCEL_STOP_DEVICE, IRP_MN_QUERY_STOP_DEVICE, IRP_MN_CANCEL_REMOVE_DEVICE
[HIDUSB]
- Add driver unload routine
[MOUHID]
- Wait for completion of pending irp
[USBHUB]
- Remove pdo from PDO list
- Handle IRP_MN_QUERY_DEVICE_RELATIONS
- Add stub driver unload routine
[USBOHCI]
- handle IRP_MN_REMOVE for FDO
- remove ASSERT

svn path=/branches/usb-bringup-trunk/; revision=55411
2012-02-04 14:10:18 +00:00
Thomas Faber
d5606434e4 [RTL]
- Work around Wine's misuse of critical section debug flags. Hopefully fixes KVM

svn path=/trunk/; revision=55410
2012-02-04 13:47:16 +00:00
Timo Kreuzer
5634a14cce [ASM]
Modify syscall stub macros to be compatible with the new amd64 stubs

svn path=/trunk/; revision=55409
2012-02-04 12:29:24 +00:00
Timo Kreuzer
61a48a890e [CMLIB]
Fix 64 bit / MSVC warnings

svn path=/trunk/; revision=55408
2012-02-04 12:23:27 +00:00
Timo Kreuzer
afd88373ce [NTOSKRNL/MM/AMD64]
- Implement more of MmCreateProcessAddressSpace
- Acquire pfn lock and use MiRemoveZeroPage in MiGetPteForProcess

svn path=/trunk/; revision=55407
2012-02-04 12:13:53 +00:00
Eric Kohl
775cef8b4c [EVENTLOG]
- Change LogfInitializeNew and LogfInitializeExisting to return an NTSTATUS code instead of a BOOL value.
- LogfInitializeExisting no longer calls LogfInitializeNew when reading a log file fails but returns a proper status code instead.

svn path=/trunk/; revision=55406
2012-02-04 11:34:13 +00:00
Timo Kreuzer
597c140370 [NTOSKRNL/KE/AMD64]
- Fix stack alignment in KiSwitchToBootStack
- Handle ExceptionFrame == NULL in KeContextToTrapFrame and KeTrapFrameToContext
- Implement KiSwapContextInternal
- Fix KiSwapContext and KiThreadStartup
- Implement dispatching of user mode exceptions including in-paging of module data used by the kernel-debugger
- Implement KeInitializeInterrupt, KeConnectInterrupt, KeSynchronizeExecution
- Don't zero more than the actual PCR size in KiInitializePcr
- Add asm function KiInitializeSegments to initialize the segment selectors to proper values
- Initialize system call entrypoints in KiInitializeCpu
- Implement KiDpcInterruptHandler, KiIdleLoop, KiInitializeUserApc, KiSwapProcess, KiSystemCallHandler, KiInitializeContextThread, KiSwapContextResume
- Implement asm functions KiRetireDpcList, KiInterruptDispatch, KiSystemCallEntry64, KiZwSystemService

svn path=/trunk/; revision=55405
2012-02-04 11:32:13 +00:00
Timo Kreuzer
de74279d5b [ASM/AMD64]
- Add multiple amd64 asm constant and structure offset definitions
- Add more unwind information to the amd64 trap entry code
- Add IRQL check, APC check and segment sanitize code to trap entry/exit

svn path=/trunk/; revision=55404
2012-02-04 11:01:19 +00:00
Timo Kreuzer
0fcb7d138d [NTOSKRNL/MM/AMD64]
- Add MI_REAL_SYSTEM_RANGE_START, which is the canonical system space base address, while MmSystemRangeStart variable contains a broken value, like on Windows.
- Define MmSystemRangeStart to MI_REAL_SYSTEM_RANGE_START, since on amd64 there is no dynamic system space start address and we don't want to use the broken address anywhere
- Add some more address layout definitions
- Add MiIsPteOnP*eBoundary() macro
- Add MMPPE, MI_WRITE_VALID_PPE and ValidKernelPpe definitions
- Fix initialization of PrototypePte
- Add mappings for VAD bitmap and working set list to MiInitializePageTable
- Fix calculations in MiBuildNonPagedPool
- Improve MiBuildSystemPteSpace
- Implement MiBuildPfnDatabase, MiAddDescriptorToDatabase, MiBuildPfnDatabaseFromPageTables, MiSetupPfnForPageTable all of these are written to be portable, yet they are untested on anything else than amd64 builds
- Mostly finish MiInitMachineDependent

svn path=/trunk/; revision=55403
2012-02-04 10:40:27 +00:00
Rafal Harabien
adffed162f [BOOTDATA]
- Don't create paging files on livecd. Verified by Alex Ionescu.

svn path=/trunk/; revision=55402
2012-02-03 23:43:42 +00:00
Cameron Gutman
3bc323077a [HIVESYS]
- Add HID devices to the critical device database
- Fixes issues with mouse/keyboard not working until new device wizards are dismissed (USB drives work too)
[UMPNPMGR]
- Fix install failure after the kernel detects a critical device
[NTOSKRNL]
- Finally enable the proper IopResetDevice code
- Driver updating without a reboot for running devices is supported now (if someone will write the GUI)
[USBEHCI][USBOHCI]
- Fix removal bugs

svn path=/branches/usb-bringup-trunk/; revision=55401
2012-02-03 23:34:21 +00:00
Alex Ionescu
b1e15cc96d [SMSS2]: Implement the rest of the code to create page files. All that's missing is the actual call to NtCreatePagingFile.
svn path=/trunk/; revision=55400
2012-02-03 23:11:28 +00:00
Cameron Gutman
e7484d185a [PCI][HIDCLASS][HIDUSB][KBDHID][MOUHID][USBCCGP][USBOHCI][USBEHCI][USBHUB][USBSTOR]
- Handle query remove IRPs
- Fix some other removal bugs

svn path=/branches/usb-bringup-trunk/; revision=55399
2012-02-03 22:59:53 +00:00
Timo Kreuzer
b7f8e21b52 Fix gcc build
svn path=/trunk/; revision=55398
2012-02-03 21:12:18 +00:00
Timo Kreuzer
36a816a584 [NTOSKRNL]
- Rewrite MmFindGapBottomUp and MmFindGapTopDown, the old versions were broken and were first checking the address range after the first memory area and only used the area below (above) the first memory are when nothing free was found.
- Fix an ASSERT, that gets triggered now that the memory areas are created at the "right" locations
- Create a memory are for the boot loaded images, which previously could be overwritten happily by new memory areas, which was only prevented by the brokenness of the code
- Fix a few memory regions so that they are correct for amd64 builds as well

svn path=/trunk/; revision=55397
2012-02-03 20:59:35 +00:00
Johannes Anderwald
9eed4afb3d [USBCCGP]
- Remove hack of forwarding pdo requests to lower device object of fdo
- Implement handling of reset port and cycle port
- IOCTL_INTERNAL_USB_RESET_PORT /  IOCTL_INTERNAL_USB_CYCLE_PORT now need to be implemented in usbhub

svn path=/branches/usb-bringup-trunk/; revision=55396
2012-02-03 16:03:42 +00:00
Johannes Anderwald
fb0e8c40ac [USBOHCI]
- Fix mingw build

svn path=/branches/usb-bringup-trunk/; revision=55395
2012-02-03 15:55:04 +00:00
Johannes Anderwald
c2d96ce7ff [USBOHCI]
- Implement reseting pipe and clear pipe stall

svn path=/branches/usb-bringup-trunk/; revision=55394
2012-02-03 14:47:18 +00:00
Johannes Anderwald
690f71f605 [USBOHCI]
- Fix build

svn path=/branches/usb-bringup-trunk/; revision=55393
2012-02-03 13:02:45 +00:00
Johannes Anderwald
71b5a853dc [USBOHCI]
- Don't hardcode the device speed

svn path=/branches/usb-bringup-trunk/; revision=55392
2012-02-03 11:29:03 +00:00
Thomas Faber
173b42e7cb [SMSS2]
- Properly handle an empty list in SmpSaveRegistryValue
- Compare the value string for equality, as the comment says, not inequality
- This fixes a crash, although another solution may perhaps be better

svn path=/trunk/; revision=55391
2012-02-03 11:21:15 +00:00
Johannes Anderwald
8e66575f08 [USBOHCI]
- Consider device speed when building the device endpoint descriptor

svn path=/branches/usb-bringup-trunk/; revision=55390
2012-02-03 11:02:37 +00:00
Johannes Anderwald
4cbccecd5c [USBOHCI]
- Check if the transfer descriptors reported errors and propagate the error in the urb status field
- OHCI now reports error which the class driver are handling
- Allocate device descriptor from non paged pool to prevent possible alignment problems
- Fix checking of completed transfer descriptors
- Fix double freeing of descriptors
- Cleanup endpoints when the halted bit is set by the host controllers
- Check for the endpoint direction in the data descriptor
- Setup descriptor needs buffer rounding set

svn path=/branches/usb-bringup-trunk/; revision=55389
2012-02-03 09:52:29 +00:00
Ziliang Guo
84efd2dcf8 Merge in r55173 as per Amine's request. Also apply Cameron's patch that attempts to hack around the memory manager bug.
svn path=/branches/ros-branch-0_3_14/; revision=55388
2012-02-03 03:51:58 +00:00
Johannes Anderwald
b1587061be [EHCI]
- Explictely clear bios owned flag and remove all SMI interrupts

svn path=/branches/usb-bringup-trunk/; revision=55387
2012-02-02 23:35:56 +00:00
Johannes Anderwald
dbbb319a35 [USBEHCI]
- Check for bios ownership
- Acquire ownership if bios owns it
- Verify ownership

svn path=/branches/usb-bringup-trunk/; revision=55386
2012-02-02 23:09:53 +00:00
Johannes Anderwald
7626aedc3b [USBEHCI]
- Use constants instead of hardcoding register offsets. Taken from Haiku
- Elements in HCSP-PORTROUTE are 4 bit entries instead

svn path=/branches/usb-bringup-trunk/; revision=55385
2012-02-02 22:18:58 +00:00
Timo Kreuzer
4895b9388e [SMSS2]
Fix MSVC build

svn path=/trunk/; revision=55384
2012-02-02 20:50:22 +00:00
Amine Khaldi
46ba8b17cc [NTOSKRNL]
* Fix MSVC build.

svn path=/trunk/; revision=55383
2012-02-02 20:45:49 +00:00
Cameron Gutman
afe62bf2cf [USETUP]
- Write the partition table back after CheckActiveBootPartition() because it could've changed the partition table on a disk with no active partition
- Fixes issues installing ROS on new disks and disks with no active partitions (including USB disks)

svn path=/branches/usb-bringup-trunk/; revision=55382
2012-02-02 19:57:13 +00:00
Johannes Anderwald
59de50814d [USBSTOR]
- Add sanity checks
- Check if device needs CDB padding and return error in that case

svn path=/branches/usb-bringup-trunk/; revision=55381
2012-02-02 19:37:38 +00:00
Cameron Gutman
087dfd04c9 [USBOHCI]
- Fix device enumeration on boot

svn path=/branches/usb-bringup-trunk/; revision=55380
2012-02-02 18:29:30 +00:00
Johannes Anderwald
e2654208c6 [INF]
- Add install section for hid compatible device
- Reviewed by Cameron Gutman

svn path=/branches/usb-bringup-trunk/; revision=55379
2012-02-02 18:26:10 +00:00
Johannes Anderwald
28ae797644 [HIDCLASS]
- Also store the HID_DEVICE_UP format in the hardware id list

svn path=/branches/usb-bringup-trunk/; revision=55378
2012-02-02 18:10:11 +00:00
Cameron Gutman
1f7ea29e28 [NTOSKRNL]
- Revert 54008

svn path=/branches/usb-bringup-trunk/; revision=55377
2012-02-02 18:08:28 +00:00
Cameron Gutman
ad9b2cb9cc [TXTSETUP.SIF]
- Install hidusb for USB human interface devices during 1st stage setup

svn path=/branches/usb-bringup-trunk/; revision=55376
2012-02-02 17:46:28 +00:00
Cameron Gutman
b6406a158e [HIDCLASS]
- Ignore failure to register a device interface during 1st stage setup

svn path=/branches/usb-bringup-trunk/; revision=55375
2012-02-02 17:42:55 +00:00
Cameron Gutman
a38869d14c [INF]
- Don't install the usbuhci service yet because we have no driver

svn path=/branches/usb-bringup-trunk/; revision=55374
2012-02-02 15:35:31 +00:00
Johannes Anderwald
ea9834831e [INF]
- Fix unknown device for hid keyboard

svn path=/branches/usb-bringup-trunk/; revision=55373
2012-02-02 10:36:33 +00:00
Johannes Anderwald
820049768b [USBCCGP]
- Remove hacks used for broken usbd driver
- Implement IRP_MN_REMOVE for FDO & PDO

svn path=/branches/usb-bringup-trunk/; revision=55372
2012-02-02 10:17:14 +00:00
Ziliang Guo
0392d3b913 Initial pass at adding wallpapers.
svn path=/branches/ros-branch-0_3_14/; revision=55371
2012-02-02 01:30:25 +00:00
Johannes Anderwald
aa485d63fd [USBD]
- In 2012 a long protected natural resource for bugs was shutdown due to popular usb device support demand
- Fix length check in USBD_ParseDescriptors. (PLONG)Descriptor + TotalLength is not the length of the configuration descriptor but twice the configuration descriptor
- Reset found variable in the loop. This fixes finding of interfaces which are not the first one in the configuration descriptor
- Again moving to next usb descriptor was broken. UsbDeviceDescriptor = UsbDeviceDescriptor + UsbDeviceDescriptor->bLength does not move to the next but to next XX descriprors specified by bLength
- Introduced in rev 17382 (14/08/2005)
 

svn path=/branches/usb-bringup-trunk/; revision=55370
2012-02-01 16:59:13 +00:00
Johannes Anderwald
55cb471b4f [KBDHID]
- Implement IOCTL_KEYBOARD_QUERY_TYPEMATIC, IOCTL_KEYBOARD_SET_TYPEMATIC
- Fix bug in the dispatch routine
- Keyboard presses are no longer reported twice

svn path=/branches/usb-bringup-trunk/; revision=55369
2012-02-01 14:28:02 +00:00
Johannes Anderwald
704bae2492 [HIDPARSER]
- A key break code indicator is 0x80, not 0x1
[USBCCGP]
- Silence debug print
[KBDHID]
- Implement IOCTL_KEYBOARD_QUERY_INDICATORS, IOCTL_KEYBOARD_SET_INDICATORS
- Partly implement dispatching to kbdclass
- Kbdclass now receives keys from kbdhid. Not yet fully working
- Tested in XP+ ReactOS USB Stack + ReactOS HID stack + USB Composite Device Keyboard 

svn path=/branches/usb-bringup-trunk/; revision=55368
2012-02-01 13:34:20 +00:00
Cameron Gutman
5ab8673f32 [USBEHCI][USBOHCI]
- Wait 100 milliseconds for the port power and insertion to stabilize
- Wait for the 10 millisecond "recovery" period after reset

svn path=/branches/usb-bringup-trunk/; revision=55367
2012-02-01 12:16:47 +00:00
Cameron Gutman
33c1f6019d [USBEHCI]
- Wait 20 milliseconds for port reset

svn path=/branches/usb-bringup-trunk/; revision=55366
2012-02-01 11:49:57 +00:00
Cameron Gutman
6c5ad5e239 [USBEHCI]
- Wait 20 milliseconds after enabling power for the port to stabilize

svn path=/branches/usb-bringup-trunk/; revision=55365
2012-02-01 11:22:43 +00:00
Johannes Anderwald
205e63a314 [HIDPARSE]
- Use report value when report item bitcount > 1
[KBDHID]
- Print raw report
- KBDHID starts to receive normal keys and modifier keys

svn path=/branches/usb-bringup-trunk/; revision=55364
2012-02-01 10:36:19 +00:00
Ziliang Guo
551ad41c6e Merge r55012 adding Wine3D control panel as per Amine's request.
svn path=/branches/ros-branch-0_3_14/; revision=55363
2012-02-01 04:58:00 +00:00
James Tabor
75c818eefb [User32]
- Attempt to fix the font leak when switching applications. Tested with other applications other than Acrobat Reader since it crashes when installing. See bug 5314.

svn path=/trunk/; revision=55362
2012-02-01 03:09:57 +00:00
Johannes Anderwald
2cc2771f69 [HIDUSB]
- Add support function to detect when the boot protocol is still active

svn path=/branches/usb-bringup-trunk/; revision=55361
2012-02-01 03:02:25 +00:00
Johannes Anderwald
ba8cbe2e17 [USBOHCI]
- Fix bugs in HandleClassEndpoint, HandleClassInterface which always set direction device to host instead of relying to the transfer flags provided
- Allow setup packets w/o a data stage

svn path=/branches/usb-bringup-trunk/; revision=55360
2012-02-01 02:36:53 +00:00
Johannes Anderwald
78f3a69807 [USBCCGP]
- Fix multiple bugs while selecting configuration
- Silence traces

svn path=/branches/usb-bringup-trunk/; revision=55359
2012-02-01 01:44:21 +00:00
Amine Khaldi
86b5a7c90b [README.WINE]
* Mark some modules, that are in sync with Wine 1.3.37, as such.

svn path=/trunk/; revision=55358
2012-01-31 20:53:40 +00:00
Johannes Anderwald
d0cec1a401 [HIDPARSE]
- Implement HidP_GetUsagesEx
- HidP_GetUsagesEx uses HidP_GetUsages with undefined usage page
- Required for hid usb support
- Check if there is a maximum set. In that case verify if a usage maximum has been set and apply it to the currnt usage. Fixes asserts while usb composite device installation (keyboard)

svn path=/branches/usb-bringup-trunk/; revision=55357
2012-01-31 19:00:45 +00:00
Johannes Anderwald
3bb6d463d3 [HIDCLASS]
- Implement set idle request. The device should only send data when there is actual data. May also fix the mouse debug flood when mouse is ejected
- Not yet supported in OHCI
- Add missing constants

svn path=/branches/usb-bringup-trunk/; revision=55356
2012-01-31 18:37:49 +00:00
Cameron Gutman
c07fd3b20f [NTOSKRNL]
- Don't check for the correct parent in IopActionInitChildServices
- This function is also used to load drivers later for devices enumerated early in boot (before we have access to the disk) and we want it to run for all devices on the system, not just those that are immediate children of the root node
- Fixes broken PnP in 3rd stage

svn path=/branches/usb-bringup-trunk/; revision=55355
2012-01-31 18:26:03 +00:00
Pierre Schweitzer
69e98d5671 [NTOSKRNL]
Implement IoVolumeDeviceToDosName(), taking advantage of newcomer in the branch, MountMgr :-).
This implementation will in fact don't work as MountMgr doesn't implement that part... But the day it's ready, this function will be!

svn path=/branches/usb-bringup-trunk/; revision=55354
2012-01-31 18:18:46 +00:00
Johannes Anderwald
277b8f0871 [HIDPARSER]
- Rewrite hidparser so that it support multiple top level collections
- Add support for flat collection context meaning all context structures are aligned in after each other. The reason this is required is that usermode hid.dll will access the same structure and thus can't use kernel pointers. User mode hid.dll is used to support keyboard with custom keys (for example search key, email key etc)

svn path=/branches/usb-bringup-trunk/; revision=55353
2012-01-31 16:19:33 +00:00
Cameron Gutman
f53d09f118 [USBSTOR]
- Add forgotten event initialization from last usbstor commit

svn path=/branches/usb-bringup-trunk/; revision=55352
2012-01-31 15:59:59 +00:00
Cameron Gutman
b3994ae487 [USETUP]
- Don't quit if setup doesn't find a non-PnP HDD (until PnP stuff works better)

svn path=/branches/usb-bringup-trunk/; revision=55351
2012-01-31 15:45:43 +00:00
Cameron Gutman
823a29d5e3 [USBSTOR]
- Fix handling of SRB_FUNCTION_FLUSH and SRB_FUNCTION_SHUTDOWN to prevent data loss

svn path=/branches/usb-bringup-trunk/; revision=55350
2012-01-31 15:33:32 +00:00
Giannis Adamopoulos
29a7102825 [user32_apitest]
- Add some more tests

svn path=/trunk/; revision=55349
2012-01-31 10:49:44 +00:00
Johannes Anderwald
47e18d8e47 - Remove old version of usbehci and usbhub
svn path=/branches/usb-bringup-trunk/; revision=55348
2012-01-31 10:11:39 +00:00
Giannis Adamopoulos
3d8783aa35 [user32_apitest]
- Add a couple of tests for SPI_SETMOUSESPEED and SPI_GETMOUSESPEED
- inspired by bug 905

svn path=/trunk/; revision=55347
2012-01-31 09:58:05 +00:00
Alex Ionescu
5ebd3e62cf [SMSS2]: Implement helper functions for reading and writing to the BSD (What lets Windows know if this was a good boot/shutdown or a bad one, and to display the recovery settings or not (FreeLDR should do this...)). Implement the functions needed to launch native applications, and add support for launching autochk and any other bootexecute applications. Set the correct SessionID with the kernel by calling ProcessSessionInformation. Pending File Rename Operations are the last big thing left, plus actual pagefile creation.
[SMSS2]: Fix a bug in SmpParseCommandLine.

svn path=/trunk/; revision=55346
2012-01-31 02:38:42 +00:00
Alex Ionescu
292010dcd6 [NDK/RTL]: Fix RtlGetSetBootStatusData prototype and add the BSD Items that can be set with it.
svn path=/trunk/; revision=55345
2012-01-31 02:33:02 +00:00
Ziliang Guo
483bd4cbff Really update the release version this time.
svn path=/branches/ros-branch-0_3_14/; revision=55344
2012-01-31 01:41:32 +00:00
Alex Ionescu
b12e5cfc77 [SMSS2]: Implement SmpCreateDynamicEnvironmentVariables such that all the SMSS-generated variables are created. Compared to SMSS it has some bug fixes and also handles the safe-mode options key. Next step is to handle boot/setup/execute keys and get autochk running from SMSS2.
[SMSS]: No longer initialize the registry, let SMSS2 do that now.

svn path=/trunk/; revision=55343
2012-01-31 01:19:14 +00:00
Alex Ionescu
432f60ee68 [NDK]: D'oh.
svn path=/trunk/; revision=55342
2012-01-30 22:55:24 +00:00
Cameron Gutman
a77425676b [USBEHCI]
- Remove debug spam

svn path=/branches/usb-bringup-trunk/; revision=55341
2012-01-30 22:54:40 +00:00
Alex Ionescu
0f85c44176 [SMSS2]: Create and define the volume descriptor structure, and go ahead and build some volume descriptors!
svn path=/trunk/; revision=55340
2012-01-30 22:50:37 +00:00
Cameron Gutman
be54f427e6 [USBHUB]
- Missed a fix from last commit
- Wait for the device status change work item to complete
- The USB stack is now properly constructed for USB booting

svn path=/branches/usb-bringup-trunk/; revision=55339
2012-01-30 22:45:16 +00:00
Cameron Gutman
475fe08f3c [USBHUB]
- Send the SCE IRP before resetting the port so we can wait on it for device enumeration

svn path=/branches/usb-bringup-trunk/; revision=55338
2012-01-30 22:19:47 +00:00
Cameron Gutman
5236296f5c [HAL]
- Remove differences between legacy and ACPI HAL initialization

svn path=/branches/usb-bringup-trunk/; revision=55337
2012-01-30 21:47:30 +00:00
Cameron Gutman
4a9fcb6569 [HIVESYS]
- Fix the service entries
[HAL]
- Synchronously invalidate device relations
[NTOSKRNL]
- Remove hacks

svn path=/branches/usb-bringup-trunk/; revision=55336
2012-01-30 21:36:51 +00:00
Alex Ionescu
51dbd93981 [SMSS2]: Implement all the processing required for being able to create emergency, system, and manual-sized page files, on both fixed drives any "any" drives. Missing the code to build volume descriptors and to actually ask the kernel to create the file (right now, just prints what should be done and sizes).
svn path=/trunk/; revision=55335
2012-01-30 21:28:48 +00:00
Thomas Faber
2740865cc0 [COMCTL32]
- Fix the fix for MSVC build (r55306). This is the version accepted by Wine.

svn path=/trunk/; revision=55334
2012-01-30 20:29:12 +00:00
Alex Ionescu
973a9360b2 [SMSS2]: Implement command line and token parsing. Implement pagefile descriptor structure, format, flags, and parsing. They are now created as they should. Use SmpHeap instead of RtlGetProcessHeap() to keep code cleaner. Use SmpSystemRoot instead of NtSystemRoot now that it's being defined. "Environment" in registry should be parsed twice to handle nested expansions.
svn path=/trunk/; revision=55333
2012-01-30 19:29:30 +00:00
Johannes Anderwald
a7eba59665 [HIDPARSE]
- Start support for multi top level hid collections
- Not yet full implemented
- Required for proper usb composite support

svn path=/branches/usb-bringup-trunk/; revision=55332
2012-01-30 19:29:26 +00:00
Ziliang Guo
29bb3f9591 Change version string to release header for rbuild. Next time we release, do this in the cmake file.
svn path=/branches/ros-branch-0_3_14/; revision=55331
2012-01-30 18:23:14 +00:00
Alex Ionescu
51fe71aec3 [NTOSKRNL]: Keep doing the old region/swap work incorrectly, but at least return a correct size. Let's see if this fixes it.
svn path=/trunk/; revision=55330
2012-01-30 17:19:14 +00:00
Johannes Anderwald
c9a760c226 [HIDCLASS]
- Prevent buffer overflow in HidClassPDO_HandleQueryHardwareId
- Reimplement HidClassPDO_HandleQueryInstanceId
- USB Composite driver now gets further(hangs at installation stage)

svn path=/branches/usb-bringup-trunk/; revision=55329
2012-01-30 16:47:39 +00:00
Cameron Gutman
3aff101683 [HALACPI]
- Create PDO earlier so ACPI can be loaded earlier in boot
[HIVESYS]
- Create critical device database with required devices for USB boot
[NTOSKRNL]
- Read the CDDB and install devices that are critical for boot
- This implementation won't be 100% correct until a PnP manager rewrite but it should work well enough for our needs
- Not complete and disabled atm

svn path=/branches/usb-bringup-trunk/; revision=55328
2012-01-30 16:23:44 +00:00
Johannes Anderwald
652e0ab582 [KBDHID]
- Fix typo
[USBCCGP]
- Remove unused variable

svn path=/branches/usb-bringup-trunk/; revision=55327
2012-01-30 13:31:05 +00:00
Johannes Anderwald
679512e16c [USBCCGP]
- Add function to append interface number
- Append function number to BusQueryDeviceId / BusQueryInstanceId
- USBCCGP is now properly enumerated and its child device start to get installed

svn path=/branches/usb-bringup-trunk/; revision=55326
2012-01-30 12:42:05 +00:00
Johannes Anderwald
d7bc987891 [USBCCGP]
- Fix bug while scanning configuration descriptor
- Store interface list in the PDO device extension
- Display interface numbers when dumping function descriptor
- Fix a few bugs while selecting the configuration for the PDO

svn path=/branches/usb-bringup-trunk/; revision=55325
2012-01-30 10:41:52 +00:00
Alex Ionescu
9f51b3ff35 [SMSS2]: Implement KnownDLL and DOSDevice initialization now that the kernel bugs are gone. Compared to SMSS, SMSS2 is smarter and uses a Ldr callback to manually add any imported DLLs of KnownDLLs to the KnownDLL list, which helps with long-term app launch performance. Next up will be environment and page file.
svn path=/trunk/; revision=55324
2012-01-30 10:22:21 +00:00
Alex Ionescu
864a1bc6ae [NTOSKRNL]: Here's another gem. SMSS2 couldn't call LdrVerifyImageCheckSum, nor could it create Known DLL sections (of course, magically SMSS could). Turns out what Mm expects in terms of file access rights when you map a section has almost nothing to do with what it should expect. Added a new function to ARM3 (which had most of the code there already) so correctly determine which file access rights should be needed. One big change is that you can now map sections with PAGE_EXECUTE if you only have FILE_EXECUTE (FILE_READ_DATA no longer required), as things should be.
svn path=/trunk/; revision=55323
2012-01-30 10:15:29 +00:00
Johannes Anderwald
6ce77d6cb7 [HIDUSB]
- Pass the interface number in the request when issuing hid get report descriptor
- Fixes wrong report descriptors being obtained

svn path=/branches/usb-bringup-trunk/; revision=55322
2012-01-30 09:53:18 +00:00
Alex Ionescu
25c5926fcb [NDK]: LDR_CALLBACK's second parameter is a PCHAR.
svn path=/trunk/; revision=55321
2012-01-30 09:43:24 +00:00
Alex Ionescu
3c2b7f8a5b [NTOSKRNL]: One of my favorite bugfixes to date: While working on SMSS2, I notice that Win32->NT path conversion is failing and %SystemRoot% is not being translated. Yet, this is supposed to be part of the core environment that the kernel sends to SMSS! I analyze the old SMSS, and in there, it works. Puzzled, I DPRINT1 out the environment only to see that it is empty. I do the same in the kernel -- empty! The old SMSS is currently manually regenerating its critical environment, as if the kernel never sent it (which perfectly hid the bug that our kernel...actually did never send it!). But why were we sending no environment? It turns out our environment string was 0x10000 bytes, just one byte longer than MAX_USHORT and overflowing back to zero -- hence our Appends were all silently failing. But why was our environment string 0x10000, when we allocate 0x1000 bytes only? And here comes the Mm bug. When you allocate virtual memory in Windows you are forced to use 64K alignment, and Windows internally will align the VAD on a 64K boundary. In ReactOS however, we actually allocate, map, and reserve a full 64K memory area, as well as actually modify the region size that the caller has sent, returning the caller a 64K-aligned size no matter what (whereas Windows would return the original 4KB size). I've thus added a simple hack which still allocates a full 64K memory area (who knows what would break if not), but only aligns the region size to a page size -- less swap pages are reserved, and the caller only receives a page-aligned region, instead of 64K. This now fixes ExpLoadInitialProcess and anyone else that was requesting a 4KB page and getting 64KB in exchange...
svn path=/trunk/; revision=55320
2012-01-30 09:42:47 +00:00
Alex Ionescu
b42b421bea [SMSS]: Co-exist with SMSS2 by using OBJ_OPENIF when creating object directories and sections, in case SMSS2 has already done so (which now it probably will).
[SMSS2]: Implement all the required registry configuration parsing functions. KnownDLLs, DosDevices, PageFiles, Subsystems, ExcludedKnownDLLs, PendingFileRenameOperations, ObjectDirectories, Environment keys are all processed and put into lists. Other than creating the object directories and setting the environment variables, though, no other work happens -- but we do DPRINT1 what should happen.

svn path=/trunk/; revision=55319
2012-01-30 08:02:17 +00:00
Alex Ionescu
bb3783a524 [NTOSKRNL]: hubris [ˈhjuːbrɪs], hybris n.
1. Belief that Ob is perfect.
Fix a major bug which allowed user-mode applications to get kernel handles if they so requested -- of course, they woudl then be completely unable to use such handles. This pattern is seen in Rtl code which we share, and where the intent is to give kernel kernel handles, and user user handles, so OBJ_KERNEL_HANDLE is unconditionally used, which in NT had the right effect. For us though, it gave unusable user-handles. This had the direct effect of completely breaking RtlQueryRegistryValues from user-mode if the TOPKEY or SUBKEY flags were used.

svn path=/trunk/; revision=55318
2012-01-30 07:48:49 +00:00
Alex Ionescu
ddeb8354e4 [SMSS2]: Initialize a bunch more internal stuff, and start parsing the registry for settings. Right now just ProtectionMode and AllowProtectedRenames are parsed. Stub functions needed for the rest of initialization. Create the \Sessions directory. Hack to work under setup. Loop BootExecute and PageFile entries. Create SMSS environment. Detect MiniNT mode (PE/LiveCD). Delete SAFEBOOT_OPTION if found.
svn path=/trunk/; revision=55317
2012-01-30 05:32:34 +00:00
Cameron Gutman
c6e7f39b35 [USETUP]
- Fix selection of the active partition
- Running 1st stage setup to a USB drive now results in a bootable USB drive that successfully runs FreeLoader which can load the ROS kernel, HAL, and other critical boot executables from the USB drive but ROS fails early in boot after FreeLoader hands control to the kernel

svn path=/branches/usb-bringup-trunk/; revision=55316
2012-01-30 04:52:37 +00:00
Cameron Gutman
2b79f855e1 [USBSTOR]
- Handle SRB_FUNCTION_SHUTDOWN successfully (failing it results in a stack overflow due to a bug in disk.sys)
- Fixes the crash during shutdown after using a USB drive

svn path=/branches/usb-bringup-trunk/; revision=55315
2012-01-30 04:18:59 +00:00
Alex Ionescu
bbaf1702fe [SMSS2]: Create the VolumesSafeForWriteAccess and Sm2ApiPort. Create all the required security descriptors. Create the two API threads. Initialize a bunch of other stuff needed for later. Initialize tag heap and enable hard errors. Api loop waits on the LPC port but nothing should be going through there for now.
svn path=/trunk/; revision=55314
2012-01-30 03:44:27 +00:00
Alex Ionescu
4459aa9ea3 [SMSS]: Oh, right, compilation units. I had forgotten how much I hate rbuild.
svn path=/trunk/; revision=55313
2012-01-30 03:16:47 +00:00
Alex Ionescu
df41abd401 [SMSS2]: Oh, right, rbuild.
svn path=/trunk/; revision=55312
2012-01-30 02:49:16 +00:00
Alex Ionescu
88cd0f3813 [SMSS2]: Flesh out the _main function in the new SMSS, including the SEH filter and SmpTerminate support. Instead of launching Winlogon (The "initial command", we launch the ReactOS SMSS for now -- and kill the system if it is ever terminated, as we should). We use the right priority, set the right critical flags, use the correct debug parameters, and acquire/release the correct privileges. Only thing not supported is launching ntsd if the "Debug Initial Command" global flag is set. I promise to implement that once someone implements ntsd ;-)
svn path=/trunk/; revision=55311
2012-01-30 02:10:39 +00:00
Alex Ionescu
4e3bf71826 [RTL]: Document, define, implement, and export RtlSetThreadIsCritical.
svn path=/trunk/; revision=55310
2012-01-30 01:14:33 +00:00
Cameron Gutman
f740e9241e [INF]
- Formatting fixes
[TXTSETUP.SIF]
- Boot load certain USB drivers in 1st stage for eventual support for installing from USB

svn path=/branches/usb-bringup-trunk/; revision=55309
2012-01-30 00:23:11 +00:00
Alex Ionescu
64cab88494 [SMLIB]: Add NT-compatible SmConnectToSm and SmExecPgm functions to smlib, which CSRSS and other subsystems can use to talk to SMSS (and SMSS when it talks to itself). Not yet used.
svn path=/trunk/; revision=55308
2012-01-30 00:12:38 +00:00
Cameron Gutman
bf71578096 [INF]
- Formatting fixes
- Add missing device description
- Set to boot start for USB boot support

svn path=/branches/usb-bringup-trunk/; revision=55307
2012-01-30 00:05:14 +00:00
Thomas Faber
1aac8171b0 [COMCTL32]
- Fix MSVC build. Already sent upstream

svn path=/trunk/; revision=55306
2012-01-29 23:30:22 +00:00
Cameron Gutman
4ac7c1e1f7 [INF]
- Enable boot start for USB drivers (part 1 of 2)

svn path=/branches/usb-bringup-trunk/; revision=55305
2012-01-29 23:28:34 +00:00
Johannes Anderwald
3f91d309f7 [INF]
- Add usbccgp installation section

svn path=/branches/usb-bringup-trunk/; revision=55304
2012-01-29 23:27:03 +00:00
Amine Khaldi
4d623fd547 [RICHED20]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55303
2012-01-29 23:23:23 +00:00
Johannes Anderwald
fc2d4e3800 - Remove cruft from CMakeLists.txt
- Silence debug flood
- Remove debugging code
- Add traces for composite device detection
- Don't print device descriptor

svn path=/branches/usb-bringup-trunk/; revision=55302
2012-01-29 23:11:21 +00:00
Amine Khaldi
ed317865e3 [RASAPI32_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55301
2012-01-29 23:00:48 +00:00
Amine Khaldi
7dbc8a9586 [RASAPI32]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55300
2012-01-29 23:00:39 +00:00
Cameron Gutman
d5f187d853 [USETUP]
- Fix the ordering of disks in the 1st stage setup list
- Search for the active partition on the selected install disk instead of the first disk

svn path=/branches/usb-bringup-trunk/; revision=55299
2012-01-29 22:54:57 +00:00
Amine Khaldi
503dee91c9 [QUERY]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55298
2012-01-29 22:39:18 +00:00
Amine Khaldi
15fb0aecc1 [PSTOREC]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55297
2012-01-29 22:24:35 +00:00
Amine Khaldi
2d57ba7294 [PRINTUI]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55296
2012-01-29 21:39:30 +00:00
Amine Khaldi
c43966f688 [WTSAPI32]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55295
2012-01-29 21:29:40 +00:00
Johannes Anderwald
a4c2608e34 [USBEHCI]
- Enable device as pci bus master
- Fixes hanging of Vmware USB EHCI controller
- Revert changes from 55293 from usb_queue
- Currently crashes when usbstor wants to receive descriptors

svn path=/branches/usb-bringup-trunk/; revision=55294
2012-01-29 20:34:46 +00:00
Johannes Anderwald
2b13dd5132 [USBEHCI]
- Update async address everytime a new queue head is added as specified in EHCI spec section 3.2
- Add more checks
- Vmware EHCI not yet working

svn path=/branches/usb-bringup-trunk/; revision=55293
2012-01-29 17:30:31 +00:00
Johannes Anderwald
99c0842bcb [EHCI]
- EHCI controllers support 15 ports as specified

svn path=/branches/usb-bringup-trunk/; revision=55292
2012-01-29 17:25:34 +00:00
Johannes Anderwald
403bb82e09 [USBEHCI]
- Rewrite the init routine of EHCI controller
- Implement PORT_POWER

svn path=/branches/usb-bringup-trunk/; revision=55291
2012-01-29 17:24:41 +00:00
Alex Ionescu
bb0bb575b6 [SMSS]: Add a new header which precisely documents the SB and SM packet structure and protocol. These match the Server 2003 SP1 definitions and sizes and would allow a ReactOS SMSS to talk to a Windows CSRSS and vice-versa.
svn path=/trunk/; revision=55290
2012-01-29 17:16:01 +00:00
Giannis Adamopoulos
07155c928c [user32]
- don't use DbgPrint for error messages

svn path=/trunk/; revision=55289
2012-01-29 11:13:07 +00:00
Giannis Adamopoulos
2bf1a41895 [win32k]
- Show some error messages in case NtUserSystemParametersInfo fails

svn path=/trunk/; revision=55288
2012-01-29 10:32:59 +00:00
James Tabor
7b6ae5355e - uxtheme is forked.
svn path=/trunk/; revision=55287
2012-01-29 03:28:39 +00:00
Amine Khaldi
4252262d8b [ODBCCP32_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55286
2012-01-28 23:15:16 +00:00
Amine Khaldi
93e3e8cf84 [ODBCCP32]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55285
2012-01-28 23:15:03 +00:00
Amine Khaldi
9beddcf6f5 [MSIMTF]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55284
2012-01-28 22:42:14 +00:00
Amine Khaldi
34ad19014e [STDOLE32.TLB]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55283
2012-01-28 22:22:11 +00:00
Amine Khaldi
f96ae418aa [NTDSAPI]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55282
2012-01-28 22:07:27 +00:00
Amine Khaldi
2b498df22f [STDOLE2.TLB]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55281
2012-01-28 21:08:43 +00:00
Amine Khaldi
eaad3df7dc * Add mscoree winetest to the rbuild build too.
svn path=/trunk/; revision=55280
2012-01-28 21:04:16 +00:00
Eric Kohl
9b2103620b [EVENTLOG]
- Log files which are opened when the eventlog service is started are permanent files and will only be closed when the service is stopped. Other log files are closed when their handle is closed.
- Opening a non existing backup log file must fail.
- Opening an existing backup log files opens the file for reading only.

svn path=/trunk/; revision=55279
2012-01-28 20:15:41 +00:00
Johannes Anderwald
312148342c [USBCCGP]
- Start implementing select configuration request

svn path=/branches/usb-bringup-trunk/; revision=55278
2012-01-28 19:49:53 +00:00
Amine Khaldi
e1632d9cd8 [MSCOREE_WINETEST]
* Add mscoree winetest from Wine 1.3.37.

svn path=/trunk/; revision=55277
2012-01-28 17:34:42 +00:00
Amine Khaldi
53d0c6b010 [MSCOREE]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55276
2012-01-28 17:34:24 +00:00
Amine Khaldi
5f4ae9949c [WINEMP3.ACM]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55275
2012-01-28 17:21:07 +00:00
Amine Khaldi
b20df12944 [MLANG_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55274
2012-01-28 17:12:03 +00:00
Amine Khaldi
97dfbce665 [MLANG]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55273
2012-01-28 17:11:55 +00:00
Amine Khaldi
1b4f459fcc [PSDK]
* Import cor.idl, cordebug.idl and metahost.idl from Wine.
* Remove the now unneeded cor.h.
* Update corerror.h, corhdr.h, mscoree.idl and winsxs.idl from Wine.
* Update the cmake and rbuild files to reflect the changes.

svn path=/trunk/; revision=55272
2012-01-28 11:58:18 +00:00
Amine Khaldi
140671d476 [NTPRINT_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55271
2012-01-28 10:29:55 +00:00
Amine Khaldi
2801c84858 [NTPRINT]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55270
2012-01-28 10:29:40 +00:00
Amine Khaldi
35f0f5f497 [MOUNTMGR]
* Silence some gcc warnings.

svn path=/branches/usb-bringup-trunk/; revision=55269
2012-01-27 23:11:19 +00:00
Amine Khaldi
a56d039edf [MSISIP]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55268
2012-01-27 23:08:50 +00:00
Amine Khaldi
cea6972358 [OBJSEL]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55267
2012-01-27 22:24:01 +00:00
Cameron Gutman
eb13400efd [TXTSETUP.SIF]
- Start the USB composite generic parent driver during 1st stage

svn path=/branches/usb-bringup-trunk/; revision=55265
2012-01-27 22:00:48 +00:00
Amine Khaldi
6f45707947 [DDK]
* Update dmusicks.h annotations.

svn path=/trunk/; revision=55264
2012-01-27 21:27:13 +00:00
Thomas Faber
d07efed2e7 [USP10]
- Fix MSVC build. Sent and applied upstream.

svn path=/trunk/; revision=55263
2012-01-27 21:20:03 +00:00
Amine Khaldi
e70779e693 [SDK/UUID]
* Add atliface.idl for the MSVC build. Dedicated to Thomas.

svn path=/trunk/; revision=55262
2012-01-27 21:09:57 +00:00
Johannes Anderwald
a960e537aa [USBCCGP]
- Implement counting of all interface descriptors
- Store device descriptor and configuration descriptor in pdo device extension
- Store all interface descriptors for an composite audio device
- Implement parsing and constructing a special configuration descriptor for each individual device function
- Implement URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE for device descriptor and configuration descriptor
- USBGCCGP now receives select configuration request
- Tested in XP + Ros USB Stack + USB Audio Device

svn path=/branches/usb-bringup-trunk/; revision=55261
2012-01-27 20:58:58 +00:00
Amine Khaldi
889ed6d338 [NDDEAPI]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55260
2012-01-27 20:21:06 +00:00
Amine Khaldi
f6aa73bd07 [COMCTL32]
* Sync more of header.c with Wine 1.3.37. Fixes build.

svn path=/trunk/; revision=55259
2012-01-27 19:22:05 +00:00
Amine Khaldi
7d0b56b9e1 [MSTASK_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55258
2012-01-27 18:48:41 +00:00
Amine Khaldi
04c708b1b0 [MSTASK]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55257
2012-01-27 18:48:31 +00:00
Amine Khaldi
43220d11a5 [MOUNTMGR]
* Fix build.

svn path=/branches/usb-bringup-trunk/; revision=55256
2012-01-27 18:45:54 +00:00
Johannes Anderwald
35c824d26f [USBCCGP]
- Use Function index than interface number. Fixes invalid hardware ids
- Fix construction of compatible id
- USB Audio device now installs on XP when usbccgp is used 
- Now asserts in sb-bringup-trunk\drivers\usb\usbccgp\pdo.c:343) PDO_Dispatch Function f not implemented, which is implemented next

svn path=/branches/usb-bringup-trunk/; revision=55255
2012-01-27 18:33:41 +00:00
James Tabor
4365081a5a [ComCtl32]
- Partial sync to wine 1.3.37 without the ComCtl32 diff applied. This fixes the hangs and the exceptions during testing. Researching DrawFocusRect issues. Please Developers, note any information for the diff other than what is posted on svn, also this is open to anyone to be synced.

svn path=/trunk/; revision=55254
2012-01-27 18:25:24 +00:00
Johannes Anderwald
07e8b3be9b [USBCCGP]
- Implement counting interface descriptors
- Fix allocating interface list
- Fix multiple bugs when copying interface information
- Implement support function to dump function descriptor
- Fix multiple bugs when creating compatible / hardware id string
- Implement legacy enumerator, which will be used for HID composite devices
- Implement special enumerator for audio devices
- Display static GenericCompositeUSBDeviceString, needs to be read from registry in order to be MUI aware
- Device initializes and device wizard pops up
- Tested in XP with Ros USB stack + USB Audio Microphone 

svn path=/branches/usb-bringup-trunk/; revision=55253
2012-01-27 18:04:39 +00:00
Amine Khaldi
dcacccd06b [DDK]
* Update csq.h annotations.

svn path=/trunk/; revision=55252
2012-01-27 17:34:49 +00:00
Amine Khaldi
db610e682b [MSCTF_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55251
2012-01-27 17:32:46 +00:00
Amine Khaldi
839270d4f0 [MSCTF]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55250
2012-01-27 17:31:52 +00:00
Amine Khaldi
617f816f13 [ITSS_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55249
2012-01-27 17:05:41 +00:00
Amine Khaldi
dc4400d15d [ITSS]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55248
2012-01-27 17:05:33 +00:00
Amine Khaldi
75035a17de [NTOSKRNL]
* Laa-a-a-a-dies and gentlemen..... It was a deferred success. Move along mes chers, you make the place look crowded.

svn path=/trunk/; revision=55247
2012-01-27 15:24:58 +00:00
Amine Khaldi
ddd36eed48 [INETCOMM_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55246
2012-01-27 14:39:30 +00:00
Amine Khaldi
46a657c5a3 [INETCOMM]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55245
2012-01-27 14:39:25 +00:00
Johannes Anderwald
fc557e4320 [HIDCLASS]
- IOCTL are only supported for PDOs

svn path=/branches/usb-bringup-trunk/; revision=55244
2012-01-27 14:08:40 +00:00
Amine Khaldi
47ddfedeed [PSDK]
* Update wtsapi32.h from Wine.

svn path=/trunk/; revision=55243
2012-01-27 14:00:42 +00:00
Amine Khaldi
8544ad6ea2 [DDK]
* Update drmk.h annotations.

svn path=/trunk/; revision=55242
2012-01-27 13:52:36 +00:00
Amine Khaldi
8f57857595 [MSG711.ACM]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55241
2012-01-27 13:50:29 +00:00
Amine Khaldi
06e3fa71d5 [INSENG]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55240
2012-01-27 13:43:48 +00:00
Amine Khaldi
1cb7059396 [HNETCFG]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55239
2012-01-27 13:09:03 +00:00
Johannes Anderwald
0a2f895e36 [USBHUB_NEW]
- Rewrite GetDeviceIds function
- Don't rely on hardcoded constants when building the device id strings
- Don't corrupt the device id string when building the instance id string
- Fix bug in GetUsbStringDescriptor which read beyond the allocated string when copying the result.

svn path=/branches/usb-bringup-trunk/; revision=55238
2012-01-27 12:29:18 +00:00
Amine Khaldi
2d45672a9d [HLINK_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55237
2012-01-27 12:14:09 +00:00
Amine Khaldi
cdd2116957 [HLINK]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55236
2012-01-27 12:14:01 +00:00
Amine Khaldi
2b0aee28de [MSCMS_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55235
2012-01-27 11:01:09 +00:00
Amine Khaldi
5bade8d8fb [MSCMS]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55234
2012-01-27 11:01:06 +00:00
Amine Khaldi
d85e3f4b78 [MSFTEDIT]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55233
2012-01-27 10:32:23 +00:00
Cameron Gutman
6f54b01f29 [USBEHCI]
- Fix initialization bugs for EHCI controllers
- Try again to release ownership of low-speed devices after reset
- Wait for the port reset to complete

svn path=/branches/usb-bringup-trunk/; revision=55232
2012-01-27 06:27:12 +00:00
Cameron Gutman
9b540bf8a8 [USBOHCI]
- Attempt to fix reset race conditions

svn path=/branches/usb-bringup-trunk/; revision=55231
2012-01-27 05:20:37 +00:00
Johannes Anderwald
a594afcd76 [USBOHCI]
- Revert previous revision

svn path=/branches/usb-bringup-trunk/; revision=55230
2012-01-27 02:12:32 +00:00
Johannes Anderwald
972bb5254a [USBOHCI]
- Fix setting device address

svn path=/branches/usb-bringup-trunk/; revision=55229
2012-01-27 02:09:18 +00:00
Cameron Gutman
bad9585013 [USBHUB_NEW]
- Fix buffer overflow for composite devices

svn path=/branches/usb-bringup-trunk/; revision=55228
2012-01-27 02:02:11 +00:00
Alex Ionescu
433b6266c6 Laa-a-a-a-dies and gentlemen.....
For your unique, viewing and executing pleasure..
For one time only....by popular demand....
The one...
The only...
The unforgettable, unforgivable...
Meanest, baddest, piece of code around...
He's back..... with a vengeance...
The ultimate...
Mega...
Uber..
Amazing...
HACK
OF
DOOOOOOOOOOOOOOOOOOOOOOOOOOOOOM
</applause>

svn path=/trunk/; revision=55227
2012-01-26 21:16:59 +00:00
Amine Khaldi
98c2a10bd6 [MSADP32.ACM]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55226
2012-01-26 20:59:35 +00:00
Cameron Gutman
f0363e1cc1 [USBEHCI_NEW]
- Disable debug spam

svn path=/branches/usb-bringup-trunk/; revision=55225
2012-01-26 20:25:12 +00:00
Amine Khaldi
934c32a726 [NTOSKRNL]
* Remove some redundant definitions now that they've been added in r55220. Fixes build.

svn path=/trunk/; revision=55224
2012-01-26 20:06:08 +00:00
Cameron Gutman
bc7a50b969 [USBSTOR]
- Set the correct transfer direction value in the CBW
- Fixes the infamous system hang that occurred when writing to a USB drive

svn path=/branches/usb-bringup-trunk/; revision=55223
2012-01-26 20:02:42 +00:00
Cameron Gutman
38758cfacb [USBSTOR]
- USBD_SHORT_TRANSFER_OK is only a valid flag if USBD_TRANSFER_DIRECTION_IN is also set 

svn path=/branches/usb-bringup-trunk/; revision=55222
2012-01-26 19:30:46 +00:00
Amine Khaldi
d88311c29f [DDK]
* portcls.h: Don't check for non existing NTDDI_WIN2003.

svn path=/trunk/; revision=55221
2012-01-26 19:18:19 +00:00
Alex Ionescu
f9013c3575 [SDK]: Some fixes/additions to this header.
svn path=/trunk/; revision=55220
2012-01-26 19:15:07 +00:00
Johannes Anderwald
8f792f3587 [USBCCGP]
- Implement querying device relations for FDO
- Implement creating device objects for each discovered function
- Invalidate device relations after the child pdo have been created
- Implement PDO device relations, most of query id, query device capabilities, start device
- USBCCGP should now initialize and create the child pdos
- Next is device control handling
- WIP, untested

svn path=/branches/usb-bringup-trunk/; revision=55219
2012-01-26 19:11:44 +00:00
Amine Khaldi
84a2257119 [CMAKE]
* Define _inline to __inline when cross compiling. Dedicated to Alex.

svn path=/trunk/; revision=55218
2012-01-26 19:09:02 +00:00
Cameron Gutman
a565eb2d37 [USETUP]
- Merge r55212 and 55215
- Add a temporary hack to allow testing installation on a device not bootable by the BIOS (like USB drives in VirtualBox)
- USB devices now show up as installation targets during setup but attempting to install onto them results in setup hanging due to bugs in the USB code

svn path=/branches/usb-bringup-trunk/; revision=55217
2012-01-26 18:49:50 +00:00
Amine Khaldi
4757317188 [SYSSETUP]
* Register atl before anything else on rbuild builds too.

svn path=/trunk/; revision=55216
2012-01-26 18:42:55 +00:00
Cameron Gutman
b896ffbf17 [USETUP]
- Allow removable media to be selected as an installation target
- Fix broken unpartitioned space calculation if the first partition starts below the disk's track size (such as a 1MB aligned partition)

svn path=/trunk/; revision=55215
2012-01-26 18:27:21 +00:00
Johannes Anderwald
d2da1fb8a7 [DISK_NEW]
- Revert NTAPI changes

svn path=/branches/usb-bringup-trunk/; revision=55214
2012-01-26 17:26:49 +00:00
Johannes Anderwald
6f7593eb7b - Use WIN32_WINNT >=0x600
svn path=/branches/usb-bringup-trunk/; revision=55213
2012-01-26 17:24:52 +00:00
Cameron Gutman
f7df1564c3 [USETUP]
- Fix an off-by-one bug in the drive letter assignment code that prevented the 4th partition on a disk from being assigned a drive letter

svn path=/trunk/; revision=55212
2012-01-26 17:01:40 +00:00
Johannes Anderwald
c30c0341fd - Import disk.sys from Windows XP DDK
- Does not yet build

svn path=/branches/usb-bringup-trunk/; revision=55211
2012-01-26 16:55:19 +00:00
Amine Khaldi
9306cf966f [SYSSETUP]
* Register atl before anything else.

svn path=/trunk/; revision=55210
2012-01-26 16:12:48 +00:00
James Tabor
81ec63a850 [User32_wineTest] - Sync to Wine 1.3.37.
svn path=/trunk/; revision=55209
2012-01-26 15:55:16 +00:00
Amine Khaldi
75cfcb0115 [DDK]
* Update bdasup.h annotations.

svn path=/trunk/; revision=55208
2012-01-26 15:22:08 +00:00
Amine Khaldi
bf0952f9a8 * Addendum to r55201.
svn path=/trunk/; revision=55207
2012-01-26 15:19:30 +00:00
James Tabor
4e28716aca [ComCtl32_wineTest] - Sync to Wine 1.3.37.
svn path=/trunk/; revision=55206
2012-01-26 15:19:24 +00:00
James Tabor
58447ec236 [Usp10_wineTest] - Sync to Wine 1.3.37.
svn path=/trunk/; revision=55205
2012-01-26 15:18:59 +00:00
Amine Khaldi
3c2d102561 [MCIWAVE]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55204
2012-01-26 15:17:25 +00:00
James Tabor
31c093f050 - Sync up to support ComCtl32 tests.
svn path=/trunk/; revision=55203
2012-01-26 15:17:18 +00:00
James Tabor
8ac4dcd6dd [User32] - Edit, Sync to Wine 1.3.37.
svn path=/trunk/; revision=55202
2012-01-26 15:09:49 +00:00
James Tabor
c8c27cf35b [Usp10] - Sync to Wine 1.3.37.
svn path=/trunk/; revision=55201
2012-01-26 15:07:46 +00:00
Amine Khaldi
dd90d2334d [AMSTREAM_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55200
2012-01-26 15:03:34 +00:00
Amine Khaldi
20becb4a6e [AMSTREAM]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55199
2012-01-26 15:03:30 +00:00
Amine Khaldi
3abad07395 [STRMIIDS]
* Add CLSID_MediaStreamFilter.

svn path=/trunk/; revision=55198
2012-01-26 14:46:32 +00:00
Johannes Anderwald
2d7c9100e1 [USBCCGP]
- Query bus interface and check if USBC_DEVICE_CONFIGURATION_INTERFACE_V1 is supported. This interface is implemented by attached usb filter drivers and is used to enumerate functions of the composite usb device 
- Implement enumeration of function by using usb interface association descriptors and by the USBC_DEVICE_CONFIGURATION_INTERFACE_V1
- Needs audio legacy method and union function descriptors to be fully functional
- WIP, not yet tested
- Fix build with mingw by declaring _DISK_GEOMETRY_EX outside the function


svn path=/branches/usb-bringup-trunk/; revision=55197
2012-01-26 13:45:59 +00:00
Cameron Gutman
b4c6fa3b4c [USBOHCI]
- Wait the required time for the port to be ready after powering it up

svn path=/branches/usb-bringup-trunk/; revision=55196
2012-01-26 04:35:04 +00:00
Johannes Anderwald
1cede4f077 [USBCCGP]
- Start implement USB Composite generic parent driver which is used for USB composite devices
- Start implement FDO initialization, needs to implement parsing of usb interface assocaition descriptor to complete FDO initialization

svn path=/branches/usb-bringup-trunk/; revision=55195
2012-01-26 03:42:56 +00:00
Cameron Gutman
e33d8f1ee5 [HIDCLASS]
- Implement IRP_MN_REMOVE_DEVICE for FDOs and PDOs
- USB mice will now work after being disconnected then reconnected

svn path=/branches/usb-bringup-trunk/; revision=55194
2012-01-26 03:27:22 +00:00
Cameron Gutman
f7c472bda7 [NTOSKRNL]
- Add a hack so that registering an interface after a remove and reconnect works

svn path=/branches/usb-bringup-trunk/; revision=55193
2012-01-26 03:24:47 +00:00
Cameron Gutman
2be02c1c91 [MOUCLASS]
- Pass down unsupported IRPs instead of completing them

svn path=/branches/usb-bringup-trunk/; revision=55192
2012-01-26 02:59:58 +00:00
Cameron Gutman
36ad09a7b5 [MOUHID]
- Multiple the scroll value by WHEEL_DELTA (120) like i8042prt does
- Scrolling with USB mice works now
- Disable debugging

svn path=/branches/usb-bringup-trunk/; revision=55191
2012-01-26 02:50:15 +00:00
Cameron Gutman
270bb180e0 [MOUHID]
- Only set the MOUSE_WHEEL flag if the wheel data is non-zero

svn path=/branches/usb-bringup-trunk/; revision=55190
2012-01-26 02:20:11 +00:00
Cameron Gutman
c60ff01cc6 [USBOHCI]
- Properly dismiss the enable status changed interrupt to avoid an interrupt storm after a device is disconnected

svn path=/branches/usb-bringup-trunk/; revision=55189
2012-01-26 01:46:06 +00:00
Cameron Gutman
334c9ed261 [USBEHCI]
- Fix GetPortStatus() and remove the cached status stuff (except for reset that we have to cache because the EHCI spec has no port reset complete bit)

svn path=/branches/usb-bringup-trunk/; revision=55188
2012-01-26 00:29:25 +00:00
Cameron Gutman
e4cf28f086 [USBHUB_NEW]
- Revert r55167 now that OHCI is fixed
- USB drives attached to an OHCI controller before boot are now enumerated without a reconnect needed

svn path=/branches/usb-bringup-trunk/; revision=55187
2012-01-26 00:11:15 +00:00
Cameron Gutman
bbd84c4171 [USBHUB_NEW]
- Remove the hacky way of determining if a device connect occurred (prone to all sorts of race conditions) and just always create a device since the only reason we reset right now is for a device connect

svn path=/branches/usb-bringup-trunk/; revision=55186
2012-01-26 00:02:03 +00:00
Cameron Gutman
23f71216c4 [USBOHCI]
- Fix and enable the proper GetPortStatus implementation
- Remove the old hacked cached port status mess

svn path=/branches/usb-bringup-trunk/; revision=55185
2012-01-25 23:56:29 +00:00
Aleksey Bragin
94ea8b7bfa - Better fix for the registry value bug introduced by Rafal. The string is guaranteed to be NULL terminated, however MaximumLength is off by one in some cases (more specifically in videoprt.c:131 two NULLs are being added by sizeof(Insert1) and sizeof(Insert2)).
See issue #6838 for more details.

svn path=/trunk/; revision=55184
2012-01-25 22:09:49 +00:00
Aleksey Bragin
84c799fc9b [VIDEOPRT]
- Create DEVICEMAP\VIDEO key with proper length. Fixes a bug exposed as "Arwinss unable to change resolution".
See issue #6838 for more details.

svn path=/trunk/; revision=55183
2012-01-25 20:20:04 +00:00
Johannes Anderwald
84e941632b [USBOHCI]
- Disable GetPortStatus implementation
- Fix build

svn path=/branches/usb-bringup-trunk/; revision=55182
2012-01-25 19:56:35 +00:00
Cameron Gutman
25d8cf82c9 [USBOHCI]
- Fix StartController() to perform initialization according to OHCI spec
- Fixes the infamous OHCI initialization hang on real hardware

svn path=/branches/usb-bringup-trunk/; revision=55181
2012-01-25 19:46:44 +00:00
Amine Khaldi
7594122962 [PSDK]
* Update wincon.h annotations.

svn path=/trunk/; revision=55180
2012-01-25 19:13:31 +00:00
Amine Khaldi
cefc253b66 [MCISEQ]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55179
2012-01-25 19:12:49 +00:00
Amine Khaldi
4ea062311b [FUSION_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55178
2012-01-25 19:09:28 +00:00
Amine Khaldi
569369e549 [FUSION]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55177
2012-01-25 19:09:23 +00:00
Johannes Anderwald
219fac4641 [USBOHCI]
- Add alignment check

svn path=/branches/usb-bringup-trunk/; revision=55176
2012-01-25 18:56:56 +00:00
Amine Khaldi
23bec34537 [MOUNTMGR]
* Fix the CMake config.

svn path=/branches/usb-bringup-trunk/; revision=55175
2012-01-25 17:02:47 +00:00
Timo Kreuzer
3468e87b38 [NTOSKRNL]
Refactor KeUpdateSystemTime, improving readability, fixing a concurrency issue and fixing the code for 64 bit.

svn path=/trunk/; revision=55174
2012-01-25 16:56:06 +00:00
Timo Kreuzer
c707066acb [FREELDR]
Fix wrong buffer size calculation that could lead to memory corruption
Kudos go to Jardar for debugging the issue.

svn path=/trunk/; revision=55173
2012-01-25 16:45:42 +00:00
Sylvain Petreolle
1ef28d6071 [WININET]
Add zlib include path / link.

svn path=/trunk/; revision=55172
2012-01-25 11:33:05 +00:00
Johannes Anderwald
58dab5a63b [USBOHCI]
- No need to turn off interrupts 
- Check if bios is active
- Check for timeouts when resetting host controller

svn path=/branches/usb-bringup-trunk/; revision=55171
2012-01-25 09:50:04 +00:00
Cameron Gutman
6c55f96de8 [USBOHCI]
- Don't turn off interrupts before setting the OHCI_OWNERSHIP_CHANGE_REQUEST bit because it prevents the SMM driver from receiving the interrupt that tells it to give up ownership of the host controller
- This fix should be merged to Haiku also which has the same bug

svn path=/branches/usb-bringup-trunk/; revision=55170
2012-01-25 06:35:00 +00:00
Cameron Gutman
75676e7e49 [USBSTOR]
- Use the correct USBD_TRANSFER_DIRECTION value for write operations

svn path=/branches/usb-bringup-trunk/; revision=55169
2012-01-25 06:09:24 +00:00
Johannes Anderwald
40df6bbbe4 [USBHUB]
- Partly revert 55167, it conflicts with hotplugging

svn path=/branches/usb-bringup-trunk/; revision=55168
2012-01-25 04:00:33 +00:00
Johannes Anderwald
a0dc4083ad [USBSTOR]
- Add debug trace
[USBOHCI]
- Implement proper GetPortStatus
[USBHUB]
- Reset all connected ports before sending first SCE
- USB Devices present before booting are now detected with OHCI controller. EHCI code is present but not yet activated

svn path=/branches/usb-bringup-trunk/; revision=55167
2012-01-25 03:39:57 +00:00
Cameron Gutman
6fab1a7c6a [USBSTOR]
- Fix a bug in SRB queuing

svn path=/branches/usb-bringup-trunk/; revision=55166
2012-01-25 01:46:35 +00:00
Cameron Gutman
e3d0e34a18 [USBSTOR]
- Get the actual value for the removable media bit instead of hardcoding it to true

svn path=/branches/usb-bringup-trunk/; revision=55165
2012-01-25 01:09:59 +00:00
Cameron Gutman
601d6a1e9f [CDROM.INF]
- Fix various issues

svn path=/branches/usb-bringup-trunk/; revision=55164
2012-01-25 00:16:40 +00:00
Amine Khaldi
a802e528e2 [MCICDA]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55163
2012-01-25 00:15:18 +00:00
Thomas Faber
bd7ee66285 [WS2_32]
- Fix invalid AQ_WIN16 comparisons. Spotted by you-know-what. Fix taken from Wine.

svn path=/trunk/; revision=55162
2012-01-25 00:12:18 +00:00
Thomas Faber
e724bc4582 [NTOSKRNL]
- Fix some DPRINTs. Spotted by VS11.

svn path=/trunk/; revision=55161
2012-01-25 00:09:43 +00:00
Cameron Gutman
131dbc69a7 [USBSTOR]
- Don't lie about removable media support for anything except hard drives

svn path=/branches/usb-bringup-trunk/; revision=55160
2012-01-25 00:03:18 +00:00
Johannes Anderwald
82f380100b [INF]
- Try add support for USB CD/DVD Drives

svn path=/branches/usb-bringup-trunk/; revision=55159
2012-01-24 23:19:43 +00:00
Amine Khaldi
e4c4891711 [PSDK]
* Update winbase.h annotations.

svn path=/trunk/; revision=55158
2012-01-24 23:11:46 +00:00
Cameron Gutman
11e87a17ea [USBSTOR]
- Rewrite pending SRB handling and change some behavior of the IRP queue
- The caller is no longer responsible for checking whether it can call USBSTOR_QueueNextRequest; frozen IRP queue and pending SRB are both handled for them
- It's no longer required for the caller of USBSTOR_QueueTerminateRequest to know whether the SRB was active (which was impossible before when handling a cancellation)
- Many potential race issues with IRP cancellation are eliminated
- Debugging hung SRBs is much easier now that pointer to the active one is stored in the FDO

svn path=/branches/usb-bringup-trunk/; revision=55157
2012-01-24 23:04:31 +00:00
Pierre Schweitzer
31572e7770 [MOUNTMGR]
Finally add the long awaited Mount Point Manager (aka mountmgr).
It's not complete yet, but will do most of the job it's been designed for.
What's missing is some dos volumes handlers, complete database support (local - registry - is complete, remote - files - is not).
It handles NTFS properties like reparse points.
It also handles devices with drive letters and those without drive letters (by using their unique ID).
Devices removal/arrival is detected through notifications (might be an issue).
Some work will have to be done in storage stack to fully support it.
Most of its IOCTL have been implemented (it's possible, for example, to notify a volume arrival through them, in case notifications don't work).

There's still some work to do on it to have it complete and fully implemented.
Enjoy!


svn path=/branches/usb-bringup-trunk/; revision=55156
2012-01-24 22:54:14 +00:00
Cameron Gutman
2f5db208de [USBSTOR]
- Fix broken IRP error handling and leaking memory

svn path=/branches/usb-bringup-trunk/; revision=55155
2012-01-24 22:28:44 +00:00
Cameron Gutman
75947d6708 [USBEHCI/USBOHCI]
- Handle invalid device handles gracefully instead of crashing

svn path=/branches/usb-bringup-trunk/; revision=55154
2012-01-24 22:21:30 +00:00
Timo Kreuzer
456a8b2857 Fix build
svn path=/trunk/; revision=55153
2012-01-24 21:56:02 +00:00
Cameron Gutman
a65fd45042 [USBSTOR]
- Release the spinlock before returning (accidentally removed)

svn path=/branches/usb-bringup-trunk/; revision=55152
2012-01-24 21:33:51 +00:00
Timo Kreuzer
97efb41b10 [NDK/DDK]
- Improve/fix/update/add several function declarations and structures
Patch by Samuel Serapion

svn path=/trunk/; revision=55151
2012-01-24 21:15:55 +00:00
Thomas Faber
50b16668d7 [FREELDR]
- Do not declare functions without prototypes
- DPRINT fix
- Powered by VS11

svn path=/trunk/; revision=55150
2012-01-24 20:57:03 +00:00
Johannes Anderwald
4f681bfe61 [USBEHCI]
- Display error status when host controller reports failure

svn path=/branches/usb-bringup-trunk/; revision=55149
2012-01-24 20:49:01 +00:00
Thomas Faber
cd46fe19a9 [CRYPT32]
- Fix MSVC build. Sent and applied upstream.

svn path=/trunk/; revision=55148
2012-01-24 20:34:31 +00:00
Johannes Anderwald
b4447be2c3 [USBHUB]
- Fix bugs introduced in 55134, 55135
- USB Mass Storage devices should now automatically install again

svn path=/branches/usb-bringup-trunk/; revision=55147
2012-01-24 17:00:30 +00:00
Amine Khaldi
90350df69a [DDK]
* Update classpnp.h annotations.

svn path=/trunk/; revision=55146
2012-01-24 14:10:25 +00:00
Amine Khaldi
b167579013 [MCIAVI32]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55145
2012-01-24 14:07:33 +00:00
Amine Khaldi
d1c328619d [IMAADP32.ACM]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55144
2012-01-24 14:02:18 +00:00
Amine Khaldi
db5937bfd8 [PSDK]
* Update mmddk.h from Wine.

svn path=/trunk/; revision=55143
2012-01-24 13:55:54 +00:00
Amine Khaldi
6528ad11a0 [HTTPAPI]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55142
2012-01-24 13:54:58 +00:00
Amine Khaldi
12d4780a2a [DWMAPI]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55141
2012-01-24 13:52:57 +00:00
Amine Khaldi
5df9522396 [CRYPTNET_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55140
2012-01-24 13:50:35 +00:00
Amine Khaldi
3c65192b65 [CRYPTNET]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55139
2012-01-24 13:50:22 +00:00
Cameron Gutman
94f1525447 [USBSTOR]
- Fix cancellation for IRPs that have already been dispatched for processing by IoStartNextPacket
- Don't complete IRPs with the IRP list lock held
- Clear the cancel routine before completing the IRP

svn path=/branches/usb-bringup-trunk/; revision=55138
2012-01-24 04:39:09 +00:00
Cameron Gutman
cd1f4631f1 [CLASS2]
- Add back an accidentally removed line

svn path=/branches/usb-bringup-trunk/; revision=55137
2012-01-24 03:33:45 +00:00
Cameron Gutman
fa62dde61b [CLASS2]
- Add more black magic to remove symbolic links when a drive is removed

svn path=/branches/usb-bringup-trunk/; revision=55136
2012-01-24 03:25:52 +00:00
Johannes Anderwald
3b70f619c8 [USBHUB]
- Add more checks for detecting composite device

svn path=/branches/usb-bringup-trunk/; revision=55135
2012-01-23 23:41:40 +00:00
Johannes Anderwald
e62233a8e7 [USBHUB]
- Check if the device is a composite device
- Report USB\COMPOSITE as compatible id when a usb compsite device is detected

svn path=/branches/usb-bringup-trunk/; revision=55134
2012-01-23 23:29:54 +00:00
Amine Khaldi
d32ee1f611 [PSDK]
* Update dwmapi.h from Wine.

svn path=/trunk/; revision=55133
2012-01-23 22:30:15 +00:00
Amine Khaldi
fc30d8ec5b [MSI]
* Add some registration that was missing from the sync.

svn path=/trunk/; revision=55132
2012-01-23 21:40:37 +00:00
Amine Khaldi
fbabfef54d [MSI/BOOTDATA]
* Improve and correct registering the CLISDs for MSI (they match Wine and Windows now). This reverts r55052.

svn path=/trunk/; revision=55131
2012-01-23 20:59:35 +00:00
Rafal Harabien
2d3c112a48 [NTOSKRNL]
- Fix returning uninitialized status (CID 15086)

svn path=/trunk/; revision=55130
2012-01-23 20:49:08 +00:00
Thomas Faber
52654ceb2e [DDK/XDK]
- Disable VS11 warning about cast between different function classes (IO_DPC_ROUTINE to KDEFERRED_ROUTINE) where needed

svn path=/trunk/; revision=55129
2012-01-23 19:58:06 +00:00
Thomas Faber
2ea0f55590 [NTOSKRNL/IO]
- Always use interlocked operations on DeviceObject->ReferenceCount

svn path=/trunk/; revision=55128
2012-01-23 19:48:18 +00:00
Thomas Faber
d68b29a234 [FASTFAT]
- Fix an if condition in VfatCreateFile causing opening a volume to always return access denied
- Fix some DPRINT issues
- Powered by VS11

svn path=/trunk/; revision=55127
2012-01-23 19:36:59 +00:00
Amine Khaldi
312f5bfd31 [PSDK]
* Update winsock2.h annotations.

svn path=/trunk/; revision=55126
2012-01-23 19:12:00 +00:00
Amine Khaldi
a474329019 [DDK]
* Update hidclass.h and hubbusif.h annotations.

svn path=/trunk/; revision=55125
2012-01-23 19:07:50 +00:00
Amine Khaldi
d870b715ea [SMSS2]
* Fix build.

svn path=/trunk/; revision=55124
2012-01-23 17:02:51 +00:00
Alex Ionescu
cbc1c975e0 [SMSS]: Add a new SMSS2 with the goal of having a Windows-compatible LPC API that will work with the new CSRSS that's already in the tree. So far, it launches the old SMSS and quits.
svn path=/trunk/; revision=55123
2012-01-23 16:49:52 +00:00
Johannes Anderwald
98731d6286 [USBOHCI]
- Fix warning
- Remove assert
[USBEHCI]
- Remove assert

svn path=/branches/usb-bringup-trunk/; revision=55122
2012-01-23 16:47:19 +00:00
Cameron Gutman
eb6202bdb6 [USBEHCI]
- Remove unused variable

svn path=/branches/usb-bringup-trunk/; revision=55121
2012-01-23 16:29:43 +00:00
Johannes Anderwald
fa3c4bb4eb [USBHUB]
- Silent traces

svn path=/branches/usb-bringup-trunk/; revision=55120
2012-01-23 16:25:43 +00:00
Cameron Gutman
1f321cafad [USB-BRINGUP-TRUNK]
- Allow surprise removal of HID devices
- Don't assemble useless empty resource lists

svn path=/branches/usb-bringup-trunk/; revision=55119
2012-01-23 16:22:43 +00:00
Johannes Anderwald
33e7325e17 [USBSTOR]
- Silent traces

svn path=/branches/usb-bringup-trunk/; revision=55118
2012-01-23 16:22:33 +00:00
Johannes Anderwald
88a17911fa [USBEHCI]
- Remove traces

svn path=/branches/usb-bringup-trunk/; revision=55117
2012-01-23 16:17:21 +00:00
Amine Khaldi
5c2fb9efb7 [DDK]
* Update usbbusif.h, usbdlib.h and usbscan.h annotations.

svn path=/trunk/; revision=55116
2012-01-23 16:07:08 +00:00
Cameron Gutman
2e9bda4f63 [USB-BRINGUP-TRUNK]
- Store correct device power state for PowerSystemWorking

svn path=/branches/usb-bringup-trunk/; revision=55115
2012-01-23 16:06:32 +00:00
Amine Khaldi
95ceec858b [COMCAT_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55114
2012-01-23 16:04:06 +00:00
Amine Khaldi
8231f5eadb * Update the sync notes for clusapi, comcat, compstui and cryptdll.
svn path=/trunk/; revision=55113
2012-01-23 16:03:34 +00:00
Cameron Gutman
d55c9c5101 [USB-BRINGUP-TRUNK]
- Restore the frame interval register after a reset as per OHCI spec

svn path=/branches/usb-bringup-trunk/; revision=55112
2012-01-23 15:53:25 +00:00
Amine Khaldi
ad68c5f813 [CRYPTDLG]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55111
2012-01-23 15:51:05 +00:00
Johannes Anderwald
8478147bbf [USBEHCI]
- Use the same lock in the IUSBQueue as in the IDMAMemoryManager
- add debug traces (default off)

svn path=/branches/usb-bringup-trunk/; revision=55110
2012-01-23 15:49:43 +00:00
Amine Khaldi
2b23e89568 [CRYPT32_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55109
2012-01-23 15:45:22 +00:00
Amine Khaldi
7f7460e8c4 [CRYPT32]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55108
2012-01-23 15:45:15 +00:00
Amine Khaldi
9c46bd0ddd [CREDUI_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55107
2012-01-23 15:43:10 +00:00
Amine Khaldi
533493eb7f [CREDUI]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55106
2012-01-23 15:42:58 +00:00
Amine Khaldi
3cfc88d970 [PSDK]
* Update winuser.h annotations.

svn path=/trunk/; revision=55105
2012-01-23 15:19:38 +00:00
Amine Khaldi
50c33aa429 [CABINET_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55104
2012-01-23 15:12:57 +00:00
Amine Khaldi
5cf9ee2b66 [CABINET]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55103
2012-01-23 15:12:50 +00:00
Amine Khaldi
e4bb3d1eb0 [PSDK]
* Update wincrypt.h from Wine.

svn path=/trunk/; revision=55102
2012-01-23 14:07:25 +00:00
Amine Khaldi
37799a6aef [ADVAPI32]
* Missed this change in my previous commit.

svn path=/trunk/; revision=55101
2012-01-23 13:58:34 +00:00
Amine Khaldi
a8739a7969 [PSDK]
* Fix some annotations in winddi.h.

svn path=/trunk/; revision=55100
2012-01-23 13:32:25 +00:00
Amine Khaldi
f9f32b715e [BCRYPT]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55099
2012-01-23 13:30:23 +00:00
Amine Khaldi
0a0e949048 [ADVPACK_WINETEST]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55098
2012-01-23 12:26:48 +00:00
Amine Khaldi
7b65a2d418 [ADVPACK]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55097
2012-01-23 12:26:32 +00:00
Amine Khaldi
d15876f775 [TOOLS/UNICODE]
* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55096
2012-01-23 12:03:23 +00:00
Amine Khaldi
9fe3f47e12 [DDK]
* Update ndis.h annotations.

svn path=/trunk/; revision=55095
2012-01-23 12:01:07 +00:00
Cameron Gutman
437353f8cd [USB-BRINGUP-TRUNK]
- Compute the frame interval correctly
- Fixes a deadlock on real hardware after enabling interrupts

svn path=/branches/usb-bringup-trunk/; revision=55094
2012-01-23 10:10:51 +00:00
Alex Ionescu
9d0af37bb8 [KERNEL32]: Fix a copy-pasta (and a regression). Thanks vicmarcal/testbot.
svn path=/trunk/; revision=55093
2012-01-23 05:32:11 +00:00
Alex Ionescu
08b2762e84 [KERNEL32]: Changes to proc.c:
- ReadProcessMemory/WriteProcessMemory only write to *lpNumberOfBytesRead/Written if user-mode passed in the parameter, as its an optional argument in Win32, but not in NT. Instead, use a local variable. This means that anyone calling ReadProcessMemory/WriteProcessMemory in ReactOS before with a NULL output argument (totally valid) was getting an error before!
- WriteProcessMemory actually returns STATUS_ACCESS_VIOLATION in a few cases, even if it's defined as a BOOL function. Code on Google shows major applications depending on this, which we weren't doing.
- Rewrite InitCommandLines to be much simpler. No normalization or copying or ANSi/OEM logic is needed.
- GetProcessAffinityMask should use the BaseStaticServerData from CSRSS instead of querying system information each time.
- GetProcessShutdownParameters and SetProcessShutdownParameters should use the LPC status code from CSRSS, not the LPC API status code.
- GetProcessWorkingSetSize now calls GetProcessWorkingSetSizeEx.
- Implement GetProcessWorkingSetSizeEx.
- SetProcessWorkingSetSize now calls SetProcessWorkingSetSizeEx.
- Implement SetProcessWorkingSetSizeEx.
- Acquire the required privilege in SetProcessWorkingSetSize(Ex).
- Fail with correct status code in SetProcessWorkingSetSize(Ex).
- GetExitCodeProcess should check if this is a VDM process and get the exit code that way.
- GetStartupInfoW should not fail if the input is NULL. It should crash.
- GetStartupInfoW was not filling out the lpReserved field, which should contain the ShellInfo buffer.
- GetStartupInfoW was always setting standard handles -- it should not do so if those are console handles.
- GetStartupInfoA was not thread-safe.
- GetStartupInfoA was assuming all Unicode->ANSI conversions will be successful.
- GetStartupInfoA was not filling out lpReserved either.
- ExitProcess was not using SEH and was not using the PEB lock.
- TerminateProcess was not setting ERROR_INVALID_HANDLE last error code.
- FatalAppExitA was not using static TEB buffer, and was always assuming success.
- FatalAppExitW was doing some sort of bizarre hack. It now raises as a hard error as it should.
- FatalExit now displays a debugger input interface on checked builds, just like Windows.
- SetPriorityClass now tries to acquire the real time privilege when needed, and handles failure to do so.
- GetProcessVersion rewritten to be cleaner and simpler.
- Annotate and reformat functions where needed.
- Rename lpfnGlobalRegisterWaitForInputIdle to UserWaitForInputIdleRoutine
- GetProcessPriorityBoost is now BOOL-safe.
- IsWow64Process now sets NT error code using only one API.
- CommandLineStringA/W -> BaseAnsiCommandLine/BaseUnicodeCommandLine.


svn path=/trunk/; revision=55092
2012-01-23 04:57:12 +00:00
Johannes Anderwald
1cdf0e1d0d [USBEHCI]
- Don't complete irps with lock held

svn path=/branches/usb-bringup-trunk/; revision=55091
2012-01-23 04:22:11 +00:00
Johannes Anderwald
b434c46463 [USBEHCI]
- Don't acquire spinlock twice

svn path=/branches/usb-bringup-trunk/; revision=55090
2012-01-23 03:50:11 +00:00
Johannes Anderwald
99926db97d [USBSTOR]
- Fix attempt #2  the offset bug
- fix identation

svn path=/branches/usb-bringup-trunk/; revision=55089
2012-01-23 02:58:52 +00:00
Johannes Anderwald
8baf90438a [USBSTOR]
- Fix bug in usbstor, which did not take the offset into account

svn path=/branches/usb-bringup-trunk/; revision=55088
2012-01-23 02:49:40 +00:00
Cameron Gutman
9758b6cc87 [USB-BRINGUP-TRUNK]
- Don't send removal IRPs to device nodes already pending removal
- USB device removal and reinsertion works now

svn path=/branches/usb-bringup-trunk/; revision=55087
2012-01-23 00:50:25 +00:00
Cameron Gutman
3de4023a19 [USB-BRINGUP-TRUNK]
- Fix a broken check that resulted in freeing the same device object twice
- Enable the IoDetachDevice call in usbstor now that the kernel bug is fixed

svn path=/branches/usb-bringup-trunk/; revision=55086
2012-01-23 00:39:28 +00:00
Johannes Anderwald
7ec08a5b86 [USBOHCI]
- Implement interrupt routing

svn path=/branches/usb-bringup-trunk/; revision=55085
2012-01-23 00:36:00 +00:00
Thomas Faber
abb3023120 [USBHUB_NEW]
- Fix another calling convention issue

svn path=/branches/usb-bringup-trunk/; revision=55084
2012-01-23 00:27:30 +00:00
Johannes Anderwald
6612dad386 [USBHUB_NEW]
- Fix calling convention of completion routine

svn path=/branches/usb-bringup-trunk/; revision=55083
2012-01-22 23:56:03 +00:00
Johannes Anderwald
d5dec59f82 [USBHUB_NEW]
- Fix calling convention of completion routine

svn path=/branches/usb-bringup-trunk/; revision=55082
2012-01-22 23:25:33 +00:00
Giannis Adamopoulos
51a64982dd [kernel32]
- Fix IntReadConsoleOutputCharacter to copy the correct count of characters. Its 3rd parameter is a character count and not buffer size. 
- Should fix infinite loop when kernel32:console test runs

svn path=/trunk/; revision=55081
2012-01-22 22:27:08 +00:00
Cameron Gutman
a1bb133fae [USB-BRINGUP-TRUNK]
- Implement device disconnect indication for usbehci and usbohci
- Implement device removal for FDOs and PDOs in usbstor and usbhub

svn path=/branches/usb-bringup-trunk/; revision=55080
2012-01-22 21:58:06 +00:00
Cameron Gutman
a51ccbc555 [USB-BRINGUP-TRUNK]
- Send removal IRPs to children and removal relations before sending to the device itself

svn path=/branches/usb-bringup-trunk/; revision=55079
2012-01-22 21:50:29 +00:00
Timo Kreuzer
51772abf74 [PSDK}
Add missing BYTE GAMMA_TABLES declaration

svn path=/trunk/; revision=55078
2012-01-22 21:49:13 +00:00
Cameron Gutman
06f0615bab [USB-BRINGUP-TRUNK]
- Load the disk class for USB drives in 1st stage
- They don't show up on the partition page due to some usetup stuff that needs to be changed

svn path=/branches/usb-bringup-trunk/; revision=55076
2012-01-22 16:55:16 +00:00
Johannes Anderwald
b4a6fc90da [USBSTOR]
- Implement legacy IOCTL IOCTL_SCSI_GET_CAPABILITIES,  IOCTL_SCSI_GET_INQUIRY_DATA, IOCTL_SCSI_GET_ADDRESS
- Patch by Cameron Gutman and minor modifications

svn path=/branches/usb-bringup-trunk/; revision=55075
2012-01-22 16:39:53 +00:00
Cameron Gutman
1365766e59 [USB-BRINGUP-TRUNK]
- Remove the legacy usbdrv

svn path=/branches/usb-bringup-trunk/; revision=55074
2012-01-22 16:07:58 +00:00
Johannes Anderwald
b4b01452fe [INF]
- Add keyboard installation inf

svn path=/branches/usb-bringup-trunk/; revision=55073
2012-01-22 15:25:43 +00:00
Amine Khaldi
1cda28b92a [PSDK]
* Missed this one.

svn path=/trunk/; revision=55072
2012-01-22 15:17:55 +00:00
Johannes Anderwald
9d6209dc3a [USBHUB]
- Fix build

svn path=/branches/usb-bringup-trunk/; revision=55071
2012-01-22 14:58:19 +00:00
Johannes Anderwald
f0f22e7bb2 [USBHUB]
- Check if there is device description buffer, as some usb devices don't provide one

svn path=/branches/usb-bringup-trunk/; revision=55070
2012-01-22 14:51:32 +00:00
Amine Khaldi
b8cd14e65a [DDK]
* Update wdm.h, ntifs.h and ntddk.h to reflect the recent XDK changes.

svn path=/trunk/; revision=55069
2012-01-22 14:51:10 +00:00
Amine Khaldi
e313bf569b [PSDK]
* Add __out_data_source annotation.

svn path=/trunk/; revision=55068
2012-01-22 14:47:46 +00:00
Amine Khaldi
7a3aa20827 [XDK]
* Massive annotations commit. Dedicated to Timo.

svn path=/trunk/; revision=55067
2012-01-22 14:43:53 +00:00
Amine Khaldi
d888562716 [MSI]
* Adopt a compatible syntax for the resource file.

svn path=/trunk/; revision=55066
2012-01-22 14:33:44 +00:00
Amine Khaldi
eae2260976 [MSHTML]
* Adopt a compatible syntax for the resource files.

svn path=/trunk/; revision=55065
2012-01-22 14:32:11 +00:00
Amine Khaldi
585b0e0314 [GDI32]
* Fix a typo.

svn path=/trunk/; revision=55064
2012-01-22 14:24:23 +00:00
Amine Khaldi
f317e5c438 [PSDK]
* Add some annotations.

svn path=/trunk/; revision=55063
2012-01-22 14:15:04 +00:00
Pierre Schweitzer
97b331fc37 [MSI]
Partly revert r55050.
It should work without now

svn path=/trunk/; revision=55062
2012-01-22 11:04:20 +00:00
Pierre Schweitzer
256d09b06b [MSI]
Delete useless file.
Spotted by Thomas Faber

svn path=/trunk/; revision=55061
2012-01-22 11:01:32 +00:00
James Tabor
73f8b2c4a9 - Remove 16 bit code.
svn path=/trunk/; revision=55060
2012-01-22 03:05:59 +00:00
James Tabor
1dd928f142 - Add surrogate pair macros.
svn path=/trunk/; revision=55059
2012-01-22 00:44:51 +00:00
Thomas Faber
5e5122e56d [NETSHELL]
- Fix MSVC build

svn path=/trunk/; revision=55058
2012-01-22 00:39:44 +00:00
Cameron Gutman
a9d56f0a13 [CDFS]
- Prevent an infinite loop in CdfsDeviceIoControl if the the verify request is successful but IoCallDriver keeps returning STATUS_VERIFY_REQUIRED

svn path=/trunk/; revision=55057
2012-01-21 22:16:46 +00:00
Cameron Gutman
40a4151403 [USB-BRINGUP-TRUNK]
- Add a class2 hack to recognize and assign drive letters to storage devices added while the system is running

svn path=/branches/usb-bringup-trunk/; revision=55056
2012-01-21 22:08:33 +00:00
Thomas Faber
1481da8a20 [KERNEL32]
- Fix MSVC build

svn path=/trunk/; revision=55055
2012-01-21 21:36:17 +00:00
Johannes Anderwald
304b6964ed [INF]
- Add Microsoft Mice Device Description
- fixes hid device entries where instead of device description the device id is displayed 

svn path=/branches/usb-bringup-trunk/; revision=55054
2012-01-21 18:18:25 +00:00
Pierre Schweitzer
485c250872 [MSI]
Add forgotten dependency on CMake.
Should fix build (finally)

svn path=/trunk/; revision=55053
2012-01-21 18:00:41 +00:00
Pierre Schweitzer
bfd5b961d5 [BOOTDATA]
Register CLSIDs for MSI

svn path=/trunk/; revision=55052
2012-01-21 17:57:39 +00:00
Pierre Schweitzer
64b31ed54c [PSDK]
Sync rpcproxy.h with Wine head

svn path=/trunk/; revision=55051
2012-01-21 17:46:22 +00:00
Pierre Schweitzer
f377c4d885 [IMAGEHLP]
Fix CMake build (will be that way after sync)

[MSI]
Allow warnings for the moment

This should fix CMake build~

svn path=/trunk/; revision=55050
2012-01-21 17:41:53 +00:00
Johannes Anderwald
a1a29073fa [HIDCLASS]
- Remove asserts which are hit during shutdown

svn path=/branches/usb-bringup-trunk/; revision=55049
2012-01-21 17:32:59 +00:00
Pierre Schweitzer
71425e3fc4 [PSDK]
Fix CMake msi.dll build?

svn path=/trunk/; revision=55048
2012-01-21 17:29:25 +00:00
Pierre Schweitzer
14c14451f5 [MSI_WINETEST]
Sync msi_winetest.exe with Wine head

svn path=/trunk/; revision=55047
2012-01-21 17:21:57 +00:00
Pierre Schweitzer
0e8f6c0bf8 [MSI]
Sync msi.dll with Wine head

svn path=/trunk/; revision=55046
2012-01-21 17:19:12 +00:00
Johannes Anderwald
0594c0a9a7 [USBHUB]
- Silence traces

svn path=/branches/usb-bringup-trunk/; revision=55045
2012-01-21 17:07:01 +00:00
Johannes Anderwald
6d707f2fb5 [HIDCLASS]
- Fix typo

svn path=/branches/usb-bringup-trunk/; revision=55044
2012-01-21 17:02:16 +00:00
Rafal Harabien
c52fdad546 [USER32]
- Fix loading of MENUEX resources

svn path=/trunk/; revision=55043
2012-01-21 13:55:09 +00:00
Cameron Gutman
a687ae8748 [USB-BRINGUP-TRUNK]
- Don't do any special checks for AddDevice; a failure check is enough

svn path=/branches/usb-bringup-trunk/; revision=55042
2012-01-21 04:17:22 +00:00
Cameron Gutman
8fdcfb28ce [USB-BRINGUP-TRUNK]
- Open a file handle to the port driver like Windows does
- USB mice are working now

svn path=/branches/usb-bringup-trunk/; revision=55041
2012-01-21 02:59:46 +00:00
Johannes Anderwald
48c2e17262 [HIDCLASS]
- Remove superflous asserts

svn path=/branches/usb-bringup-trunk/; revision=55040
2012-01-21 01:56:02 +00:00
Johannes Anderwald
82153d9360 [USB-BRINGUP]
- Fix build of hidparse

svn path=/branches/usb-bringup-trunk/; revision=55039
2012-01-21 01:48:30 +00:00
Cameron Gutman
27023d1ff7 [USB-BRINGUP-TRUNK]
- Fix HID class installation

svn path=/branches/usb-bringup-trunk/; revision=55038
2012-01-21 01:44:10 +00:00
Cameron Gutman
3537485361 [USB-BRINGUP-TRUNK]
- Fix input.inf and include it in reactos.cab

svn path=/branches/usb-bringup-trunk/; revision=55037
2012-01-21 01:29:33 +00:00
Cameron Gutman
336d055fa8 [USB-BRINGUP-TRUNK]
- Fix a BSOD during usbstor device initialization
- Enable usbstor in 1st stage

svn path=/branches/usb-bringup-trunk/; revision=55036
2012-01-21 00:31:09 +00:00
Cameron Gutman
bac7373d51 [USB-BRINGUP-TRUNK]
- Revert r55030

svn path=/branches/usb-bringup-trunk/; revision=55035
2012-01-21 00:09:55 +00:00
Cameron Gutman
d0fd35677e [USB-BRINGUP-TRUNK]
- Add usbd to bootcd because usbohci depends on it
- Make device interface creation failure a non-fatal error so the port drivers start successfully in 1st stage

svn path=/branches/usb-bringup-trunk/; revision=55034
2012-01-20 23:58:29 +00:00
Cameron Gutman
cd068cb3c8 [USB-BRINGUP-TRUNK]
- Add add_cd_file line for mouhid

svn path=/branches/usb-bringup-trunk/; revision=55033
2012-01-20 23:24:07 +00:00
Cameron Gutman
d8d06f0903 [USB-BRINGUP-TRUNK]
- Fix usbohci build

svn path=/branches/usb-bringup-trunk/; revision=55032
2012-01-20 23:19:18 +00:00
Thomas Faber
74a51ae888 [KMTESTS]
- Fix IRP handling, and some 64 bit warnings

svn path=/trunk/; revision=55031
2012-01-20 23:12:44 +00:00
Cameron Gutman
5c6676a9a6 [USB-BRINGUP-TRUNK]
- Fix hidparser build
- Based on a patch from igorko

svn path=/branches/usb-bringup-trunk/; revision=55030
2012-01-20 23:03:27 +00:00
Cameron Gutman
9dacc2a9ac [USB-BRINGUP-TRUNK]
- Fix usbehci build

svn path=/branches/usb-bringup-trunk/; revision=55029
2012-01-20 22:53:30 +00:00
Cameron Gutman
90e0d854c5 [USB-BRINGUP-TRUNK]
- Fix hidusb build

svn path=/branches/usb-bringup-trunk/; revision=55028
2012-01-20 22:38:39 +00:00
Cameron Gutman
9035fcb4a7 [USB-BRINGUP-TRUNK]
- Fix uninitialized variable use and more build errors

svn path=/branches/usb-bringup-trunk/; revision=55027
2012-01-20 22:35:52 +00:00
Rafal Harabien
7e9887db23 - Fix rbuild build
svn path=/trunk/; revision=55026
2012-01-20 22:35:10 +00:00
Cameron Gutman
86feb20aad [USB-BRINGUP-TRUNK]
- Fix build errors in kbdhid and mouhid

svn path=/branches/usb-bringup-trunk/; revision=55025
2012-01-20 22:17:32 +00:00
Cameron Gutman
3a034047fc [USB-BRINGUP-TRUNK]
- Add USB stuff to 1st stage setup

svn path=/branches/usb-bringup-trunk/; revision=55024
2012-01-20 22:04:57 +00:00
Rafal Harabien
3f4ee4fefa - Fix build
svn path=/trunk/; revision=55023
2012-01-20 21:59:33 +00:00
Rafal Harabien
52e21a81b1 [NETSHELL]
- Rewrite in C++ to improve readability

svn path=/trunk/; revision=55022
2012-01-20 21:50:54 +00:00
Cameron Gutman
f5223ccf13 [USB-BRINGUP-TRUNK]
- Remove outdated cmake attribute

svn path=/branches/usb-bringup-trunk/; revision=55021
2012-01-20 21:28:33 +00:00
Cameron Gutman
753f07c723 [USB-BRINGUP-TRUNK]
- Merge 54115-54859

svn path=/branches/usb-bringup-trunk/; revision=55020
2012-01-20 21:19:37 +00:00
Cameron Gutman
6e24a0c6a8 [USB-BRINGUP-TRUNK]
- Merge 51335-53500

svn path=/branches/usb-bringup-trunk/; revision=55019
2012-01-20 21:07:56 +00:00
Cameron Gutman
c2d0d784c7 [USB-BRINGUP-TRUNK]
- Create a branch to do a proper merge of USB work from a trunk base instead of from cmake-bringup
- In the future, DO NOT under any circumstances branch another branch. This leads to merge problems!

svn path=/branches/usb-bringup-trunk/; revision=55018
2012-01-20 20:58:46 +00:00
Pierre Schweitzer
f65034e760 [RTL]
- Reimplement RtlSetCurrentDirectory_U. This fixes bugs & implements references count
- Fix the FIXME in RtlpDosPathNameToRelativeNtPathName_Ustr by incrementing references count

svn path=/trunk/; revision=55017
2012-01-20 20:21:16 +00:00
Pierre Schweitzer
823685091e [NDK]
Properly define RTLP_CURDIR_REF

svn path=/trunk/; revision=55016
2012-01-20 20:18:31 +00:00
Thomas Faber
af2d1c6f98 [HAL] - Do not truncate PCI device names in debug dump; misc fixes
[PCI] - Get rid of some magic numbers

svn path=/trunk/; revision=55015
2012-01-20 19:53:00 +00:00
Timo Kreuzer
2191cf1a2d [HAL]
- Implement IrqlToSoftVector() macro and use it in HalRequestSoftwareInterrupt, so that on amd64 the correct interrupt is triggered.
- Really start at the lowest vector for the IRQL in HalpAllocateSystemInterrupt
- Small code refactoring

svn path=/trunk/; revision=55014
2012-01-20 16:32:43 +00:00
Cameron Gutman
13baf6cb0b [FASTFAT]
- Check the return value of CcPinRead

svn path=/trunk/; revision=55013
2012-01-20 00:32:47 +00:00
Kamil Hornicek
15aa273475 [WINED3DCFG]
Add a simple control panel applet for WineD3D runtime configuration.

svn path=/trunk/; revision=55012
2012-01-19 18:15:49 +00:00
Amine Khaldi
60eea2d779 * Branch for the 0.3.14 release.
svn path=/branches/ros-branch-0_3_14/; revision=55011
2012-01-19 15:13:24 +00:00
Kamil Hornicek
251c457026 [MSTSC]
- Add full screen support.
- Fix starting from command line.

svn path=/trunk/; revision=55010
2012-01-19 14:10:02 +00:00
Kamil Hornicek
909247fa75 what's wrong with the cmake build bot I don't know. someone please fix it
svn path=/trunk/; revision=55009
2012-01-19 02:50:20 +00:00
Kamil Hornicek
f89a2404f3 [MSTSC]
- Add support for user name settings.
- Obtain user name / domain hints from registry.
- Pass user/domain info to the server if available.
- Add Czech translation.

svn path=/trunk/; revision=55008
2012-01-19 02:27:20 +00:00
Amine Khaldi
284faf3581 [PORTCLS]
* Fix a bug in PcNewResourceSublist which led to memory corruption.

svn path=/trunk/; revision=55007
2012-01-18 23:34:26 +00:00
Kamil Hornicek
d2ce0487ef [TRANSLATION]
- Add Czech resources for devmgmt.

svn path=/trunk/; revision=55006
2012-01-18 22:03:05 +00:00
Rafal Harabien
8a4eca0155 [EXPLORER-NEW]
- Move helper macros for IDeskBarClient to shlobj.h
- Remove duplicated commented out calls (spotted by Amine Khaldi)

svn path=/trunk/; revision=55005
2012-01-18 17:02:34 +00:00
Rafal Harabien
b13c03475a [EXPLORER-NEW]
- Use macros for calling IBanneredBar methods
- Remove some definitions from todo header because they are already in shlguid_undoc.h

svn path=/trunk/; revision=55004
2012-01-18 16:23:13 +00:00
Kamil Hornicek
d6606f146d [MSTSC]
- Fix some corner cases for settings parsing (empty values, values containing delimiters).
- If provided, take port number into account.

svn path=/trunk/; revision=55003
2012-01-18 13:09:18 +00:00
Amine Khaldi
0102072a69 [PORTCLS]
* Fix some memory leaks.
* Add some comments.
* Fix broken PcNewResourceSublist which ignored the MaximumEntries parameter.
* Add more checks.

svn path=/trunk/; revision=55002
2012-01-17 23:42:13 +00:00
Amine Khaldi
3209e691d6 [DDK]
* Add fltkernel.h.

svn path=/trunk/; revision=55001
2012-01-17 23:41:54 +00:00
Cameron Gutman
cd00d99985 - Merge the remaining portion of the wlan-bringup branch
- ReactOS now supports open and WEP encrypted networks (both ad-hoc and infrastructure) (WPA(2) will be supported later)
- Use the wlanconf tool to configure the WLAN adapter (after installing the XP driver for your WLAN adapter)
- "wlanconf -c <SSID>" connects to an infrastructure network. Adding the "-a" option connects to (or creates) an ad-hoc network. Adding "-w <WEP>" will enable WEP encryption using the supplied key. 
- "wlanconf -s" will scan and display a list of the surrounding networks and various attributes like signal strength, SSID, BSSID, network mode, and supported rates
- "wlanconf" will display the current WLAN configuration details if the adapter is connected
- The DHCP service will detect network changes and refresh its state accordingly when associating with a new wireless network

svn path=/trunk/; revision=55000
2012-01-17 23:11:28 +00:00
Amine Khaldi
5bd3511c86 * Introduce support for compilers with /analyze support in _PREFAST_ mode.
* Allow Cameron to enjoy the next revision.

svn path=/trunk/; revision=54999
2012-01-17 23:10:16 +00:00
Rafal Harabien
2fd2d0327b [NETSHELL]
- Display proper icons in network connections folder

svn path=/trunk/; revision=54998
2012-01-17 22:33:11 +00:00
Rafal Harabien
e69c077ca9 [SHELL32]
- Give numeric identifiers to all dialogs
- Add file copy dialog to languages files where it was lacking
- Remove unused admin tools icon duplicate

svn path=/trunk/; revision=54997
2012-01-17 21:28:17 +00:00
Rafal Harabien
505eb702bb [SHELL32]
- TABs -> spaces

svn path=/trunk/; revision=54994
2012-01-17 18:45:41 +00:00
Cameron Gutman
cc334002e9 [NTOSKRNL]
- Only return the dirty bit if the PTE is actually valid
- Avoid an unneeded TLB flush when setting the dirty bit

svn path=/trunk/; revision=54993
2012-01-17 18:06:53 +00:00
Rafal Harabien
292cd6d2b7 [WININET]
- Don't use shell32 functions when processing DLL_PROCESS_ATTACH because shell32.dll can be initialized later. Fixes shell32+wininet debug spam at boot.

svn path=/trunk/; revision=54992
2012-01-17 17:59:26 +00:00
Rafal Harabien
a058f2e9f9 [SHELL32]
- Improve formatting in shelllink.cpp
- Load shortcut icon in property page

svn path=/trunk/; revision=54991
2012-01-17 17:57:23 +00:00
Alex Ionescu
3735acec50 Fix boot. The fact this fixes it should worry about the state of CSRSS...
svn path=/trunk/; revision=54990
2012-01-17 17:42:47 +00:00
Rafal Harabien
3ea87d4d2b [SHELL32]
- Remove useless function

svn path=/trunk/; revision=54989
2012-01-17 16:49:39 +00:00
Cameron Gutman
5bed4995b4 [NTOSKRNL]
- Deallocate the process page directory when destroying its address space (removed in r48233 and now resurrected in a version compatible with ARM3)
- Fixes leaking system pages on each process exit (868 MC_SYSTEM pages were allocated just sitting at the desktop on livecd without the patch, only 187 with the patch)

svn path=/trunk/; revision=54988
2012-01-17 07:03:46 +00:00
Eric Kohl
c114281942 [EVENTLOG]
- LogfCreate: Use NtCreateFile instead of CreateFile
- Implement ElfCreateBackupLogHandle

svn path=/trunk/; revision=54987
2012-01-16 23:23:29 +00:00
Alex Ionescu
3b7a2e8b40 [KERNEL32]: Reimplement BasePushProcessParameters for future extensibility, also cleanup some code paths and fix a few bugs.
[KERNEL32]: Add some more SXS and CSRSS structures.

svn path=/trunk/; revision=54986
2012-01-16 21:27:50 +00:00
Rafal Harabien
e7f2a28453 [SHELL32]
- Load shell extensions from Directory key only for file system directories. Fixes New menu being added to special folders context menu (for example My Computer or Control Panel)
- Load shell extensions from AllFilesystemObjects only for files and directories
- Hardcode special folders attributes in proper place

svn path=/trunk/; revision=54985
2012-01-16 19:54:24 +00:00
Amine Khaldi
1c69ba02dd [DDK]
* Add fltuser.h

svn path=/trunk/; revision=54983
2012-01-15 20:29:11 +00:00
Amine Khaldi
cb7b48735d [PORTCLS]
* Fix a bug which closed an already invalid handle.
* Allow only general registry keys to be deleted.
* Do not close a key twice in the error case.

svn path=/trunk/; revision=54982
2012-01-15 20:27:15 +00:00
Cameron Gutman
37e9364cdd - Merge r54980 from wlan-bringup
svn path=/trunk/; revision=54981
2012-01-15 19:53:52 +00:00
Rafal Harabien
99b2e3df40 [SHELL32]
- Improve code readability in defcontextmenu.cpp
- Fix few leaks
- Properly handle reference count when creating objects

svn path=/trunk/; revision=54979
2012-01-15 19:45:02 +00:00
Amine Khaldi
04acd45a57 [DDK]
* Don't include wdm.h twice in portcls.h.

svn path=/trunk/; revision=54978
2012-01-15 19:10:19 +00:00
Rafal Harabien
8f70e43420 [SHELL32]
- Don't load shell extensions from * key for background context menu. Fixes #6668 (background context menu not working after installing Notepad++)
- Properly set pidlFolder argument in extensions Initialize function call
- Fix openwithmenu.rgs file creating two keys instead of one

svn path=/trunk/; revision=54977
2012-01-15 16:45:36 +00:00
Pierre Schweitzer
ea28cf9d0d [RAPPS]
Update FireFox links.
Convert CreateCabFile.bat to CreateCabFile.sh

svn path=/trunk/; revision=54976
2012-01-15 15:22:28 +00:00
Alex Ionescu
a633ce1b38 Note, none of this code is being used/called yet.
[KERNEL32]: Implement BasepSxsCloseHandles, BasepReplaceProcessThreadTokens, BasepIsProcessAllowed, BasepCheckWebBladeHashes, BasepIsImageVersionOk which will be needed for the future CreateProcess re-implementation. These functions partly support SxS, Safer (Authz) and Application Certification features added in XP/2003. We also emulate support for Computer Server, Web Blade Server and Embedded ReactOS. The last function does correct image version checks to prevent invalid binaries from running.
[KERNEL32]: Implement BaseUpdateVDMEntry and BaseCheckForVDM using the new CSRSS messages (not implemented on the server-side yet). Stubplement BaseCheckVDM. These will be needed for future VDM-stub-support (primarly so we can run 16-bit installers).
[KERNEL32]: Implement BasepFreeAppCompatData, BasepCheckBadapp, and IsShimInfrastructureDisabled (exported as BaseIsAppcompatInfrastructureDisabled). These stub most of the required/exported application compatibility APIs, as long as someone sets DisableAppCompat in \\Registry\\MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\AppCompatibility.

svn path=/trunk/; revision=54975
2012-01-15 14:49:49 +00:00
Rafal Harabien
d98246b122 [SHELL32]
- Add New menu to context menu handlers. Fixes regression introduced by r54959.
- Remove unwanted files
See issue #6823 for more details.

svn path=/trunk/; revision=54974
2012-01-15 14:25:11 +00:00
Rafal Harabien
e09723d6ba [SHELL32]
- Revert r54967. Test bots should already work.

svn path=/trunk/; revision=54973
2012-01-15 13:38:59 +00:00
Rafal Harabien
fedd178564 [INTL]
- Add DPRINTs to track possible unattended setup timeouts

svn path=/trunk/; revision=54972
2012-01-15 13:37:25 +00:00
Rafal Harabien
cb74343620 [SYSSETUP]
- Fix GetRosInstallCD - GetLogicalDriveStringsW returns drive paths, not letters.
- When building intl.cpl command line for unattended setup don't use %S - swprint interprets it as multi-byte string. Use "%s" instead. This bug caused yesterdays KVM problems.

svn path=/trunk/; revision=54971
2012-01-15 13:24:26 +00:00
Amine Khaldi
e94b30cdf1 [DDK]
* Add fltuserstructures.h

svn path=/trunk/; revision=54970
2012-01-15 10:11:22 +00:00
Amine Khaldi
6c47d1fade [PORTCLS]
* Initializes object attributes with correct handle attributes.
* Use the provided access rights and create options.
See issue #5934 for more details.

svn path=/trunk/; revision=54969
2012-01-15 10:10:54 +00:00
Alex Ionescu
4a76b4fbe8 [NTDLL]: Add, export, and stubplement RtlComputeImportTableHash and document in NDK.
[NTDLL]: Use HANDLE instead of Win32 HKEY.
[NDK]: Add missing NtCreateProcessEx flags and some missing Ldr functions + missing RtlGetFullPathName_UstrEx.
[CSRSS]: Define two new CSRSS messages (not implemented): UpdateVdmEntry and GetVdmExitCode.

svn path=/trunk/; revision=54968
2012-01-15 03:16:00 +00:00
Rafal Harabien
4902210307 - Try to fix KVM
svn path=/trunk/; revision=54967
2012-01-15 00:59:29 +00:00
Cameron Gutman
f679ffe173 - Merge 54929, 54930, 54932, 54933, 54934, 54939, 54941, 54942, 54944, 54945, 54946, and 54947
- The DHCP service now recognizes adapter configuration and media state changes without manual intervention
- Multiple bugs with a static IP configuration are fixed
- IpRenewAddress (ipconfig /renew) and IpReleaseAddress (ipconfig /release) no longer corrupt internal DHCP state
- Routes that cannot currently be resolved by ARP no longer become corrupted by the neighbor timeout

svn path=/trunk/; revision=54966
2012-01-14 19:42:58 +00:00
Eric Kohl
c673f85060 [EVENTLOG]
- Fix a non-initialized variable.

svn path=/trunk/; revision=54965
2012-01-14 18:56:55 +00:00
Rafal Harabien
fa989547b6 [SHELL32]
- If there is no default menu item, make Open With menu item the default, rename it to Open and disallow it to be submenu.
See issue #6801 for more details.

svn path=/trunk/; revision=54964
2012-01-14 17:50:33 +00:00
Amine Khaldi
ac19035f70 [CMAKE]
* Set DBG to false in Release build type.
* Set _WINKD_ to false in Release build type for MSVC builds.

svn path=/trunk/; revision=54963
2012-01-14 17:31:20 +00:00
Amine Khaldi
17801390f6 [CMAKE/MSVC]
* Improve the way we set the debugging flags for debug and release build types.
* Don't generate debug info when we're in prefast mode and don't prefix with prefast when linking executables.
* We don't need to alter the c/c++ compiler variables in prefast mode anymore.

svn path=/trunk/; revision=54962
2012-01-14 17:27:17 +00:00
Amine Khaldi
9cc4152eb3 [XDK/DDK]
* Remove unneeded declarations.

svn path=/trunk/; revision=54961
2012-01-14 17:19:04 +00:00
Rafal Harabien
c254d1b61b [SHELL32]
- Rewrite Control_DoLaunch. Now if cpl has only one applet, applet name/id is ignored
- When launching control panel applets always execute rundll32 instead of using static handlers from registry

svn path=/trunk/; revision=54960
2012-01-14 17:14:54 +00:00
Amine Khaldi
6b49e8c209 [SHELL32]
* Remove the loading new item service hack.
* Implement proper loading of dynamic background item context.

svn path=/trunk/; revision=54959
2012-01-14 17:03:40 +00:00
Amine Khaldi
654ebc6892 [SETUPAPI]
* Apply a default date of 00/00/0000 when DriverVer is missing. Should fix installation of drivers which do not provide a DriverVer directive.
See issue #6676 for more details.

svn path=/trunk/; revision=54958
2012-01-14 15:47:59 +00:00
Rafal Harabien
35da3cbf00 [SHELL32]
- Fix exception in shortcut properties dialog

svn path=/trunk/; revision=54957
2012-01-14 13:46:33 +00:00
Rafal Harabien
d55ddcd563 [SHELL32]
- Implement changing filename in file properties dialog
- Fix changing volume label in drive properties dialog
- Remove WS_TABSTOP style from some read-only controls

svn path=/trunk/; revision=54956
2012-01-14 13:20:38 +00:00
Amine Khaldi
1629830cd9 [PSDK/PRFAST]
* Suppress warnings about duplicated model and inconsistent annotations.

svn path=/trunk/; revision=54955
2012-01-14 12:48:14 +00:00
Amine Khaldi
28c0503514 [CMAKE]
* Improve handling of linking executables in prefast mode.

svn path=/trunk/; revision=54954
2012-01-14 12:44:00 +00:00
Rafal Harabien
a79949498a [FASTFAT]
- Fix DOSDATE struct declaration. Fixes invalid creation, last modified and accessed times on FAT volumes

svn path=/trunk/; revision=54953
2012-01-14 12:02:39 +00:00
Amine Khaldi
68df282e69 [PSDK]
* Stub _Kernel_acquires_resource_ and _Maybe_raises_SEH_exception_ annotations and add __maybenull_impl.

svn path=/trunk/; revision=54952
2012-01-14 11:27:20 +00:00
Amine Khaldi
8b47b1ead8 [DDK]
* Add fltwinerror.h

svn path=/trunk/; revision=54951
2012-01-14 11:16:50 +00:00
Amine Khaldi
370d6aadf7 [CMAKE]
* CreateBootSectorTarget2: Properly set the C compiler for both normal and prefast modes.

svn path=/trunk/; revision=54950
2012-01-14 11:15:33 +00:00
Amine Khaldi
4a3a3231c2 [NTOSKRNL]
* Use a different variable for the inside loop.

svn path=/trunk/; revision=54949
2012-01-14 11:14:40 +00:00
Rafal Harabien
e33ae91647 [SHELL32]
- Move folder properties to CFileDefExt class and share as much code as possible. Now changing file attributes is implemented.
- Fix a warning (patch by EDIJS - #6821)
- Load property sheet handlers from "Directory" key

svn path=/trunk/; revision=54948
2012-01-13 23:41:09 +00:00
Kamil Hornicek
fa7cafe95d [SERVMAN]
Improve the button bitmaps so they look consistent in both enabled and disabled state.

svn path=/trunk/; revision=54943
2012-01-13 21:47:22 +00:00
Timo Kreuzer
67e4d0dc93 [PSDK]
- add missing stubs to driverspecs.h
- Add concurrencysal.h
- add some missing definitions to sal.h and specstrings.h

svn path=/trunk/; revision=54940
2012-01-13 19:01:47 +00:00
Timo Kreuzer
6d4cdfa8a6 [XDK]
Fix build

svn path=/trunk/; revision=54938
2012-01-13 17:49:40 +00:00
Timo Kreuzer
717a730361 [XDK]
- Add some missing NTAPI
- move some types into appropriate headers
- make sure $endif is followed by (...)

svn path=/trunk/; revision=54937
2012-01-13 17:45:26 +00:00
Rafal Harabien
6041e7f0e9 [SHELL32]
- Display free and used space and capacity in bytes and gigabytes for all drives in drive properties dialog
- Format date and time in file properties according to system locale
- Initialize checkboxes in file properties dialog
- Improve polish translation

svn path=/trunk/; revision=54936
2012-01-13 17:42:27 +00:00
Amine Khaldi
c5c4832280 [USBDRV]
* Mark dev_mgr_cancel_irp as NTAPI.

svn path=/trunk/; revision=54935
2012-01-13 14:34:28 +00:00
Rafal Harabien
1888ec14b8 [SHELL32]
- Update file icon after rename operation
See issue #6815 for more details.

svn path=/trunk/; revision=54928
2012-01-12 22:26:50 +00:00
Rafal Harabien
4715b94b0c [SHELL32]
- Add "Description" string to resources. Don't show application file extension in Description field (for applications without version info). Patch by Edijs Kolesnikovis (#6819)
- Implement associated application icon loading in File Properties dialog
- Implement "Change" button in File Properties dialog

svn path=/trunk/; revision=54927
2012-01-12 21:43:46 +00:00
Rafal Harabien
665fe8fcb7 [SHELL32]
- Show drive icon in properties dialog
- Show nice pie chart for space usage

svn path=/trunk/; revision=54926
2012-01-12 20:10:35 +00:00
Rafal Harabien
a55d842965 [SHELL32]
- Fix first chance exception if application has no strings in version info
- If Lang is not set use US English version info. Fixes WinRAR version info.
- Applications has Description filed instead of Opens With
- Load language in file version info

svn path=/trunk/; revision=54925
2012-01-12 16:32:02 +00:00
Timo Kreuzer
6fa29d2d3a [WIN32K]
Try to fix boot

svn path=/trunk/; revision=54924
2012-01-12 15:41:56 +00:00
Rafal Harabien
41a8364f1c [SHELL32]
- Fix copying files in New menu. Fixes WinRAR new items.
- Don't show message if copying file failed because empty file is already created

svn path=/trunk/; revision=54923
2012-01-12 14:47:26 +00:00
Timo Kreuzer
dc8fff1c5a [WIN32K]
- Simplify BITMAP_CopyBitmap, by using the SURFOBJ members directly instead of calling BITMAP_GetObject.
- Use RtlCopyMemory directly in BITMAP_CopyBitmap and remove IntSetBitmapBits
- Improve prototype of GreCreateBitmap(Ex) by using ULONG instead of INT for the bitmap dimensions (negative values are invalid)
- remove a duplicated type definition

svn path=/trunk/; revision=54922
2012-01-12 14:42:59 +00:00
Timo Kreuzer
90a6256ef8 [PSDK]
Remove a deprecated definition from winddi.h

svn path=/trunk/; revision=54921
2012-01-12 14:32:43 +00:00
Timo Kreuzer
7e9e5c272b [PSDK]
- Add some missing definitions (Vista+) to winddi.h
- Fix and improve annotations in winddi.h

svn path=/trunk/; revision=54920
2012-01-12 13:24:32 +00:00
Timo Kreuzer
10947637fa [PSDK]
Rewrite sal.h so that it actually works with __desclspec()

svn path=/trunk/; revision=54919
2012-01-12 12:52:33 +00:00
Cameron Gutman
0286bc6dc3 [PCNET]
- Remove an incorrect comment

svn path=/trunk/; revision=54918
2012-01-12 03:16:48 +00:00
Cameron Gutman
3a504014d4 - Merge 54895, 54896, 54899, 54912, 54913, 54915, and 54916 from wlan-bringup
svn path=/trunk/; revision=54917
2012-01-12 03:12:49 +00:00
Rafal Harabien
b56fc432c1 [SHELL32]
- Register CDrvDefExt
- Add application icon and "Change..." button to file properties dialog. Patch by EDIJS (#6817)

svn path=/trunk/; revision=54911
2012-01-11 22:08:04 +00:00
Rafal Harabien
87f7c2cb47 [SHELL32]
- Move drive default property sheet pages to CDrvDefExt shell extension
- Read cleanup mgr path from registry
- Fix default extension being released in wrong moment

svn path=/trunk/; revision=54910
2012-01-11 21:58:47 +00:00
Rafal Harabien
68cdddaa2f [FMIFS]
- Make header C++ friendly

svn path=/trunk/; revision=54909
2012-01-11 21:31:52 +00:00
Rafal Harabien
bc92eceb86 [SHELL32]
- Add CLSID_ShellFileDefExt, CLSID_ShellDrvDefExt, CLSID_ShellNetDefExt GUIDs
- Move File Properties default pages to CFileDefExt

svn path=/trunk/; revision=54908
2012-01-11 20:20:01 +00:00
Rafal Harabien
d0b26386cd [SHELL32]
- Display application description in Opens With field of File Properties dialog
- Minor improvements

svn path=/trunk/; revision=54907
2012-01-11 14:13:14 +00:00
Rafal Harabien
64760a47a1 [SHELL32]
- Don't check exe files for Open With application
- If application is invalid display proper text
- Properly handle application parameters and quotes when parsing application command. Patch by EDIJS, improved by me.
See issue #6770 for more details.

svn path=/trunk/; revision=54906
2012-01-10 19:57:53 +00:00
Rafal Harabien
d8433417af [SHELL32]
- Simplify and fix getting file type description and icon in File Properties dialog
- Apply EDIJS's patch for scrolling text in location field on File Properties dialog (#6807)

svn path=/trunk/; revision=54905
2012-01-10 17:56:43 +00:00
Rafal Harabien
822e0f32da [SHELL32]
- Make File Properties code safer and better
- Change version information when it user selects item in listbox (in previous version user had to double click)
- Show filename only in Open With dialog. Part of patch by EDIJS (#6772)

svn path=/trunk/; revision=54904
2012-01-10 16:53:46 +00:00
Rafal Harabien
95da52581a [SHELL32]
- Formatting + changed few declarations.

svn path=/trunk/; revision=54903
2012-01-10 16:01:13 +00:00
Rafal Harabien
d35c3eedcb - Fix year in all files copyright info
- Replace tabs by spaces

svn path=/trunk/; revision=54902
2012-01-10 15:34:28 +00:00
Timo Kreuzer
9dd162b0ac [WIN32K]
- Fix parameter to DrvEnablePDEV
- improve DPRINTs

svn path=/trunk/; revision=54901
2012-01-10 14:59:23 +00:00
Timo Kreuzer
dfc99f6701 [PSDK]
- add annotations to winddi.h
- use function types for Drv* declarations

svn path=/trunk/; revision=54900
2012-01-10 14:47:43 +00:00
Rafal Harabien
0c953875b4 [SHELL32]
- Add item icons to New menu
- Fix some leaks in New menu
- Properly handle New Folder and New Link items

svn path=/trunk/; revision=54894
2012-01-09 23:01:01 +00:00
Sylvain Petreolle
d788826576 [SVCHOST]
Convert to Unicode.
Fix buffer overruns and bad maths when UNICODE is defined.

Patch by Samuel Serapion.

svn path=/trunk/; revision=54893
2012-01-09 22:47:16 +00:00
Timo Kreuzer
cc92aa149f remove leftover spotted by Amine
svn path=/trunk/; revision=54892
2012-01-09 22:06:04 +00:00
Timo Kreuzer
6119fdaad4 [PSDK/DDK]
- Add MAX_NATURAL_ALIGNMENT, MEMORY_ALLOCATION_ALIGNMENT and PROBE_ALIGNMENT defintions to ntdef.h
- disable prefast warnings about banned api usage, dpc access and seh filter expression
- annotate string types (PSTR, etc) as _Null_terminated_

svn path=/trunk/; revision=54891
2012-01-09 21:55:56 +00:00
Eric Kohl
a3f9a8eb4c [EVENTLOG]
- Simplify ElfCreateEventLogHandle, ElfDeleteEventLogHandle and their callers.
- Implement ElfrOpenBELA and ElfrOpenBELW.
- Add ElfDeleteEventLogHandle stub.

svn path=/trunk/; revision=54886
2012-01-08 23:03:23 +00:00
Timo Kreuzer
1b857fffe9 [WDM] Add missing #if (NTDDI_VERSION >= ...)
NTOSKRNL/LPC] Don't check if ReplyMessage is NULL inside SEH, since it's dereferenced later anyway
[WIN32K] Don't try to print uninitialized variables
Patch by Samuel Serapion

svn path=/trunk/; revision=54881
2012-01-08 21:17:40 +00:00
Eric Kohl
c7021c5563 [ADVAPI32]
Pass an NT path to ElfrOpenBELW.

svn path=/trunk/; revision=54878
2012-01-08 10:08:33 +00:00
Amine Khaldi
17930265ac [PREFAST]
* Write PREfast defect log to the console. Dedicated to Timo.

svn path=/trunk/; revision=54868
2012-01-07 21:50:10 +00:00
Thomas Faber
5814b59433 [CLASSPNP]
- Fix incorrect casts. Patch by Samuel Serapion

svn path=/trunk/; revision=54867
2012-01-07 18:08:10 +00:00
Thomas Faber
900f2cecbe [LSASRV] - Correctly set return values in LsapGetObjectAttribute
[CDMAKE] - Handle out-of-memory condition
- Patch by Samuel Serapion

svn path=/trunk/; revision=54866
2012-01-07 17:45:26 +00:00
Thomas Faber
f2d3731646 [NTOSKRNL/MM]
- Fix memory type comparison in MiScanMemoryDescriptors. Spotted by Samuel Serapion

svn path=/trunk/; revision=54865
2012-01-07 17:05:41 +00:00
Timo Kreuzer
d70e186df5 [CMAKE]
Add inetcpl to msvc build

svn path=/trunk/; revision=54864
2012-01-07 16:31:13 +00:00
Timo Kreuzer
c62e8a8680 [DDK]
Add wsk.h

svn path=/trunk/; revision=54863
2012-01-07 16:14:00 +00:00
Timo Kreuzer
0972817d02 [CMAKE]
add _PREFAST_ option for amd64, too

svn path=/trunk/; revision=54862
2012-01-07 16:05:25 +00:00
Johannes Anderwald
c8c261269c [WDMAUD]
- Improve error check

svn path=/trunk/; revision=54861
2012-01-07 15:42:53 +00:00
Johannes Anderwald
0ff1f7b6ae [SHELL32]
- Check if querying  shell details failed

svn path=/trunk/; revision=54860
2012-01-07 15:40:27 +00:00
Timo Kreuzer
6df852ceb8 [SAL.h]
Add definitions for declspec based sal

svn path=/trunk/; revision=54851
2012-01-06 17:02:57 +00:00
Johannes Anderwald
065fd7dbd5 [USB-BRINGUP]
- Add keyboard hid driver template ripped off from mouhid driver
- Implement keyboard driver initialization

svn path=/branches/usb-bringup/; revision=54850
2012-01-06 16:35:55 +00:00
Rafal Harabien
e33649d62d [SHELL32]
- Fix few leaks and possible buffer overflows in New menu code
- Add icons of folder and shortcut to New menu
- Display message if file can't be created

svn path=/trunk/; revision=54848
2012-01-05 23:04:06 +00:00
Eric Kohl
658d817a6e [EVENTLOG]
- Implement LogfBackupFile.
- Fix a typo.

svn path=/trunk/; revision=54847
2012-01-05 23:03:40 +00:00
Eric Kohl
262ece40e1 [ADVAPI32]
Pass nt paths to ElfrBackupELFW and ElfrClearELFW.

svn path=/trunk/; revision=54846
2012-01-05 22:07:33 +00:00
Rafal Harabien
61e7814932 [SHELL32]
- Formatting. No code changes.

svn path=/trunk/; revision=54845
2012-01-05 18:34:35 +00:00
Rafal Harabien
898071bb08 [SHELL32]
- Rewrite Open With menu and dialog
- Load all applications
- Use treeview with Recommended and Other programs
- Don't allow duplicates
- Load registry keys in proper way

svn path=/trunk/; revision=54844
2012-01-05 18:31:18 +00:00
Johannes Anderwald
f53c2c4f14 [HID]
- Implement quering compatible ids
- Fix result status for quering instance id
- Fix bug in msmouse.inf

svn path=/branches/usb-bringup/; revision=54843
2012-01-05 18:22:48 +00:00
Rafal Harabien
9aae27bf4a [NOTEPAD][WORDPAD]
- Add version information
[BOOTDATA]
- Add Notepad, Wordpad and Paint to Applications registry key

svn path=/trunk/; revision=54842
2012-01-05 17:59:19 +00:00
Timo Kreuzer
5a729992d7 [CMAKE]
Add an option to compile with PREFAST enabled, when using MSVC

svn path=/trunk/; revision=54841
2012-01-05 17:19:15 +00:00
Timo Kreuzer
8266c38acf [SAL.H]
Add macros and types for attribute based SAL

svn path=/trunk/; revision=54840
2012-01-05 17:06:10 +00:00
Timo Kreuzer
73c64d97fb [PSDK/DDK/XDK]
- Add new style SAL definitions (only dummys for now)
- Move old style SAL definitions to sal_old.h
- Convert annotations in sspi.h to new style
- Allow new style annotations for C++ again, old style annotations are not possible with C++ and gcc headers

svn path=/trunk/; revision=54839
2012-01-05 11:20:28 +00:00
Johannes Anderwald
ee21e811d0 [USB-BRINGUP]
- Add a ReactOS hack to let the hid stack initialize
- Add input.inf
- HID Mouse initializes and starts, now win32k needs some work to open the mice

svn path=/branches/usb-bringup/; revision=54838
2012-01-05 04:05:10 +00:00
Johannes Anderwald
21fb64f0bf [USB-BRINGUP]
- Fix creating instance id
- Print debug message
- Sync msmouse with head and add hid installation
- Needs input.inf written
- HID stack starts to initializes and then fails the to enable the device interface (/drivers/hid/hidclass/pdo.c:511), Logs show that IoGetDeviceObjectPointer() fails with STATUS_UNSUCCESSFUL

svn path=/branches/usb-bringup/; revision=54837
2012-01-05 01:24:11 +00:00
Johannes Anderwald
4dc6e068e2 [USB-BRINGUP]
- Create a pesudo random instance id
- Fixes assert when plugin usb devices whose device descriptor don't provide a serial number

svn path=/branches/usb-bringup/; revision=54836
2012-01-05 00:13:50 +00:00
Johannes Anderwald
874bc6a408 [USB-BRINGUP]
- Fix build

svn path=/branches/usb-bringup/; revision=54835
2012-01-04 22:21:03 +00:00
Johannes Anderwald
d1e00dac5c [USB-BRINGUP]
- Implement a HID parsing library, which is based on Haiku`s exellent HID Stack
- Implement HidP_FreeCollection, HidP_GetCaps, HidP_GetCollectionDescription, HidP_MaxUsageListLength, HidP_GetSpecificValueCaps, HidP_GetUsages, HidP_GetScaledUsageValue
- hidparse driver is now implemented enough to support a hid mouse
- Tested in VBox 4.1.4 + WinXP + ReactOS usbohci+ mouhid+ hidclass+ hidparse+hidusb

svn path=/branches/usb-bringup/; revision=54834
2012-01-04 21:58:18 +00:00
Aleksey Bragin
430051bd93 [NTOS]
- Cast to actually returned types not just PVOID.

svn path=/trunk/; revision=54833
2012-01-04 12:22:38 +00:00
Aleksey Bragin
340ac9a8d6 [NDK]
- Fix a typo ("add more underscores!") in a struct forward declaration.

svn path=/trunk/; revision=54832
2012-01-04 12:18:23 +00:00
Pierre Schweitzer
612b04ffe2 [WININET]
Fix handle leak
Already sent & committed upstream: 85e2b4d7df

svn path=/trunk/; revision=54830
2012-01-03 20:45:28 +00:00
Pierre Schweitzer
1bb43abd3a [DPLAYX]
Fix handle leak
Already sent & committed upstream: 2d14f89fea

svn path=/trunk/; revision=54829
2012-01-03 20:44:42 +00:00
Pierre Schweitzer
de15bc1cbb [SHELL32_WINETEST]
Get back previously commented out tests

svn path=/trunk/; revision=54828
2012-01-03 20:41:32 +00:00
Timo Kreuzer
da309e313f [USBDRV]
remove hacks to fix build


svn path=/trunk/; revision=54827
2012-01-03 20:23:29 +00:00
Timo Kreuzer
dfb2191a95 Fix build
svn path=/trunk/; revision=54826
2012-01-03 20:15:25 +00:00
Timo Kreuzer
e198afb1c1 [XDK/DDK]
- Add sspi.h to xdk and and include it in ntifs.h.
Dedicated to Alex

svn path=/trunk/; revision=54825
2012-01-03 19:42:58 +00:00
Timo Kreuzer
1e610c23cc [PSDK]
- Add sal.h and include it in specstrings.h
- Inlude specstrigs.h from crtdfs.h

svn path=/trunk/; revision=54824
2012-01-03 19:41:18 +00:00
Pierre Schweitzer
f6bc586f58 [RTL]
Complete RtlpDosPathNameToRelativeNtPathName_Ustr() rewrite by properly handling relative names.
This fixes several regressions brought by r54804 (see winetests).
This also fixes file system corruption when using directory functions.
This may also fix general file system corruption, so, please retest bug #6720.

svn path=/trunk/; revision=54820
2012-01-03 19:08:46 +00:00
Sylvain Petreolle
362af7d9dc [ROSTESTS]
Fix oleaut32_winetest cmake build.

svn path=/trunk/; revision=54815
2012-01-03 11:38:21 +00:00
Pierre Schweitzer
73a5efbb25 [SHELL32_WINETEST]
Comment out yet another test.
Let's hope it will take testbot back and allow debugging.

svn path=/trunk/; revision=54814
2012-01-03 06:33:06 +00:00
Jérôme Gardou
bc74a80807 [CMAKE]
- add module module type, which is basically a DLL without entry point and use it for typelibs
- get rid of custom targets for generating .tlb files and use source file dependencies instead

svn path=/trunk/; revision=54813
2012-01-03 00:17:18 +00:00
Pierre Schweitzer
2d253f5f35 [SHELL32_WINETEST]
Fix build
*grmbl*

svn path=/trunk/; revision=54812
2012-01-02 23:56:55 +00:00
Pierre Schweitzer
fd8923e542 [SHELL32_WINETEST]
Comment out two series of tests untill a proper fix is available. Those lead to memory misuse in shell32.
This has been revealed by r54804.
Should fix both test bots.

svn path=/trunk/; revision=54811
2012-01-02 23:47:32 +00:00
Johannes Anderwald
07ae01f96c [USB-BRINGUP]
- Create PDO for each top level collection found
- Use the specified collection index instead of the first
- add collection id to hardware id when the device has more than one top level collection, see http://msdn.microsoft.com/en-us/windows/hardware/gg487473 for details

svn path=/branches/usb-bringup/; revision=54808
2012-01-02 12:00:51 +00:00
Johannes Anderwald
842fe995ce [USB-BRINGUP]
- Fake status success for unimplemented IRP_MN_REMOVE_DEVICE
- Fix tons of bugs in the read report completion routine
- Implement function to re-use a complete report irp
- Use correct device object when invoking the mini driver's dispatch routine in the read function
- silence a few traces
- Mouse now works with with ReactOS USB stack + ReactOS HID stack (TBD: implement hidparse.sys)

svn path=/branches/usb-bringup/; revision=54806
2012-01-01 22:48:08 +00:00
Johannes Anderwald
f687f32e69 [USB-BRINGUP]
- Move attributes / device description to common struct
- Partly implement IRP_MJ_CREATE, IRP_MJ_CLOSE, IRP_MJ_READ

svn path=/branches/usb-bringup/; revision=54798
2011-12-31 19:09:26 +00:00
Johannes Anderwald
eb5e8a089b [USB-BRINGUP]
- Fix bug in HidUsb_AbortPipe, which passed the wrong handle
- Implement reset port routine
- Implement reset worker routine when reading report fails

svn path=/branches/usb-bringup/; revision=54797
2011-12-31 18:22:18 +00:00
Johannes Anderwald
d5ab604853 [USB-BRINGUP]
- Partly implement IRP_MN_START_DEVICE for PDO 
- PDO  now completely initializes
- Remaining IOCTL to implement IRP_MJ_CREATE, IRP_MJ_CLOSE, IRP_MJ_FLUSH, IRP_MJ_READ for partial mouse support in hidclass

svn path=/branches/usb-bringup/; revision=54792
2011-12-31 04:13:37 +00:00
Johannes Anderwald
a64411cfbf [USB-BRINGUP]
- Implement HidClassFDO_DeviceRelations
- Implement IOCTL_HID_GET_COLLECTION_INFORMATION,  IOCTL_HID_GET_COLLECTION_DESCRIPTOR
- Implement IRP_MN_QUERY_ID, IRP_MN_QUERY_CAPABILITIES, IRP_MN_QUERY_BUS_INFORMATION, IRP_MN_QUERY_PNP_STATE, IRP_MN_QUERY_DEVICE_RELATIONS, 
- HIDClass PDO is now created and starts initialization, needs IRP_MN_START_DEVICE request implementation
- Tested in Vbox 4.1.4 + WinXP + ReactOS hidusb,hidmou,hidclass

svn path=/branches/usb-bringup/; revision=54791
2011-12-31 03:33:14 +00:00
Johannes Anderwald
ef72bc2d72 [USB-BRINGUP]
- add missing defines

svn path=/branches/usb-bringup/; revision=54790
2011-12-31 03:21:11 +00:00
Johannes Anderwald
c671800d55 [USB-BRINGUP]
- Rename device extension
- Implement FDO Initialization (IRP_MN_START_DEVICE)

svn path=/branches/usb-bringup/; revision=54787
2011-12-30 14:34:07 +00:00
Johannes Anderwald
ceb3f5ee43 [USB-BRINGUP]
- Implement AddDevice routine for hidusb
- Fix bug in Hid_DispatchUrb, which returned not initialized status code
- Implement IOCTL_HID_GET_REPORT_DESCRIPTOR, IOCTL_HID_READ_REPORT
- Add support routines for reseting / aborting pipe, not yet used
- TBD: implement error handling
- hidusb now works in combination with a usb mouse (other hid devices such as keyboards will require more ioctl implemented)
- Tested in Vbox 4.1.4 + WinXP + ReactOS usbhid.sys + ReactOS usbmou.sys
- Testing procedure -> inject usb mouse after startup (needs mouse integration disabled -> thanks to timo for pointing this out)

svn path=/branches/usb-bringup/; revision=54781
2011-12-29 19:03:40 +00:00
Johannes Anderwald
7e231e2c92 [USBOHCI]
- Silence a few traces
- Add a hack for handling  URB_FUNCTION_CLASS_INTERFACE. The hid bus driver performs this request with zero buffer length, which is not valid. Needs more investigation

svn path=/branches/usb-bringup/; revision=54777
2011-12-29 10:13:36 +00:00
Johannes Anderwald
4e6638bcc3 [USB-BRINGUP]
- Usage page of zero is not used, increment, the MouHid_ButtonUpFlags / MouHid_ButtonDownFlags array
- Mouse clicks now work
- Implement flushing of the hid report queue
- Driver now works in VBox 4.1.4 + WinXP 
- Secondary mouse pointer does not move in VBox (either a Vbox bug / WinXP), tested with ms driver and the same results were reveiled

svn path=/branches/usb-bringup/; revision=54776
2011-12-29 10:07:00 +00:00
Johannes Anderwald
6717a4ecfe [USB-BRINGUP]
- Fix up / down button detection
- Fix move detection. Mouse changes are now detected
- Mouse does not yet work in Vbox, as mouclass driver is for unknown reasons not connecting to the mouhid, needs to be investigated
- Tested in VBox 4.1.4 + ReactOS mouhid.sys

svn path=/branches/usb-bringup/; revision=54775
2011-12-28 17:18:56 +00:00
Johannes Anderwald
b27438e17d [USB-BRINGUP]
- Fix a few bugs & race condition in the read report routine
- mouhid initializes and is able to read input reports
- button press / wheel state change is detected
- mouse move detection not yet working

svn path=/branches/usb-bringup/; revision=54774
2011-12-28 16:35:41 +00:00
Johannes Anderwald
012eac6d8f [USB-BRINGUP]
- Implement mouse move detection, wheel state detection

svn path=/branches/usb-bringup/; revision=54772
2011-12-28 11:36:05 +00:00
Johannes Anderwald
d4bb27774a [USB-BRINGUP]
- Partly implement mouse read completion
- Implement read initiation
- Implement MouHid_Create, MouHid_Close

svn path=/branches/usb-bringup/; revision=54768
2011-12-27 02:35:03 +00:00
Johannes Anderwald
05c20641db - Link to hal
- Implement mouse button change detection
- Implement support routine for dispatching mouse input data
- Allocate mdl for input report, not yet used

svn path=/branches/usb-bringup/; revision=54767
2011-12-27 00:46:10 +00:00
Johannes Anderwald
bf1f779fff [USB-BRINGUP]
- Implement retrieving device / configuration descriptor
- Partly implement hid descriptor parsing
- Select configuration when initialization is complete
- Implement starting up device

svn path=/branches/usb-bringup/; revision=54765
2011-12-26 21:51:05 +00:00
Johannes Anderwald
c626190319 [USB-BRINGUP]
- Implement IOCTL_HID_GET_DEVICE_ATTRIBUTES, IOCTL_HID_GET_DEVICE_DESCRIPTOR for hidusb
- Partly implement pnp dispatch routines for hidusb

svn path=/branches/usb-bringup/; revision=54764
2011-12-26 18:20:32 +00:00
Johannes Anderwald
3477d17d4b [USB-BRINGUP]
- Halfplement mouse hid driver, WIP, untested

svn path=/branches/usb-bringup/; revision=54762
2011-12-26 03:37:22 +00:00
Johannes Anderwald
69dfb12f9a [HIDCLASS]
- Implement AddDevice routine

svn path=/branches/usb-bringup/; revision=54760
2011-12-25 23:07:50 +00:00
Johannes Anderwald
8632f8d0f0 [USB-BRINGUP]
- add template for hidclass driver 
- fix hidusb build

svn path=/branches/usb-bringup/; revision=54759
2011-12-25 20:21:34 +00:00
Johannes Anderwald
d13f78582b - - rearrange hid stack
svn path=/branches/usb-bringup/; revision=54758
2011-12-25 18:28:57 +00:00
Johannes Anderwald
c9d5364c98 - rearrange hid stack
svn path=/branches/usb-bringup/; revision=54757
2011-12-25 18:25:18 +00:00
Johannes Anderwald
d8200951b5 - rearrange hid stack
svn path=/branches/usb-bringup/; revision=54756
2011-12-25 18:23:22 +00:00
Johannes Anderwald
3c59337294 - rearrange hid stack
svn path=/branches/usb-bringup/; revision=54754
2011-12-25 18:17:07 +00:00
Johannes Anderwald
b03bdfff2a - add directory for hid stack
svn path=/branches/usb-bringup/; revision=54753
2011-12-25 18:16:35 +00:00
Johannes Anderwald
1205becf05 [USB-BRINGUP]
- Implement HidP_UsageListDifference, HidP_GetUsagesEx, HidP_UsageAndPageListDifference
- Fix api prototypes
- Fix HidP_GetUsages linking

svn path=/branches/usb-bringup/; revision=54752
2011-12-25 17:09:09 +00:00
Johannes Anderwald
df17bddc0f - Fix function declaration
- add missing constant

svn path=/branches/usb-bringup/; revision=54737
2011-12-23 15:21:28 +00:00
Johannes Anderwald
756f0b704b [USBEHCI]
- Implement URB_FUNCTION_ISOCH_TRANSFER, URB_FUNCTION_CLASS_ENDPOINT, URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE

svn path=/branches/usb-bringup/; revision=54736
2011-12-23 15:20:00 +00:00
Johannes Anderwald
2e871fddb3 [HID]
- Implement HidD_GetIndexedString, HidD_GetMsGenreDescriptor, HidD_GetConfiguration, HidD_SetConfiguration, HidP_GetUsagesEx

svn path=/branches/usb-bringup/; revision=54115
2011-10-13 17:51:13 +00:00
Johannes Anderwald
6cd3e83d47 [HIDUSB]
- Add stub hidusb driver
- Hidusb driver is reponsible to connect with the hidclass driver (not yet present) and connect hid framework with usb hid devices

svn path=/branches/usb-bringup/; revision=53500
2011-08-30 16:01:00 +00:00
Johannes Anderwald
326fe80f8b [DDK]
- Add header for hid framework

svn path=/branches/usb-bringup/; revision=53499
2011-08-30 15:46:09 +00:00
Cameron Gutman
b8d27ea0ac [USBSTOR]
- Fix a typo so SRB_FUNCTION_RELEASE_DEVICE actually does what was intended

svn path=/branches/usb-bringup/; revision=52072
2011-06-03 05:43:41 +00:00
Cameron Gutman
392e4b95be [USBSTOR]
- Don't leave DISPATCH_LEVEL while holding a spin lock acquired at DISPATCH_LEVEL
- Synchronize cancellation checking by acquiring the cancel spin lock

svn path=/branches/usb-bringup/; revision=52071
2011-06-03 05:38:27 +00:00
Johannes Anderwald
ab7ce0c45c [HIDPARSE]
- Start of HID parser driver
- Contains currently only stubs

svn path=/branches/usb-bringup/; revision=52067
2011-06-02 19:13:51 +00:00
Johannes Anderwald
0dede89665 [USBSTOR]
- Comment out getting usb device interface. It is currently unused and usbhub does not yet support it
- Forward pnp capabilities request to lower device object
- Fix compilation by Usurp

svn path=/branches/usb-bringup/; revision=52063
2011-06-02 15:35:04 +00:00
Johannes Anderwald
217a0347b7 [USB-BRINGUP]
- Copy disk.inf from trunk
- Add upper layer filter partmgr when usb mass storage device is plugged in
- Usbstor now loads and starts up
- Currently stops at loading partmgr(not yet present)

svn path=/branches/usb-bringup/; revision=52039
2011-06-01 12:01:55 +00:00
Johannes Anderwald
da9d8082b0 [USBSTOR]
- Remove superflous declaration
- Fix bug when quering for compatible ids
- Remove unused local variable

svn path=/branches/usb-bringup/; revision=52038
2011-06-01 11:31:34 +00:00
Johannes Anderwald
d7582766db [USBHUB_NEW]
- Check if the port is usb 2.0 controller. In that case call the Usb2.0 initialize function
- Prevents crash when used with usbohci

svn path=/branches/usb-bringup/; revision=52036
2011-06-01 08:31:33 +00:00
Johannes Anderwald
804a2dc28a [USBHUB_NEW]
- Fix compilation

svn path=/branches/usb-bringup/; revision=52035
2011-06-01 08:10:41 +00:00
Johannes Anderwald
f73caa061d [USBOHCI]
- More traces to fix isochronous problem
- Fix broken assert found by mjmartin

svn path=/branches/usb-bringup/; revision=52004
2011-05-30 06:55:32 +00:00
Johannes Anderwald
d2accc6c3e [USBOHCI]
- Fix OHCI_ISO_TD structure. Fixes host system crashes in Windows XP
- Fix multiple bugs in isochronous transfer implementation
- Still not yet working, as the interrupt completion is not fired yet

svn path=/branches/usb-bringup/; revision=51998
2011-05-29 19:54:55 +00:00
Johannes Anderwald
2231c8333a [USBOHCI]
- Implement function to retrieve isochronous head endpoint descriptor
- Implement function to retrieve current frame number
- Set isochronous descriptor flag for head endpoint
- Implement retrieve device status for devices
- Implement retrieve class status from device
- Partly implement isochronous descriptor handling in usb queue
- Start implementing isochronous transfers in ISUBRequest
- Code currently not tested as the Virtual Machine with XP + ReactOS usbohci driver brings down the host system when starting the iso transfers. Ironically it crashes in MS usbohci driver


svn path=/branches/usb-bringup/; revision=51957
2011-05-27 13:04:55 +00:00
Johannes Anderwald
9aff3e967c [USBOHCI]
- Set up periodic threshold (90 %)
- Add function to retrieve interrupt endpoints
- Add function to retrieve specific descriptors from interface. These are used by HID devices such as mice / keyboards
- Add function to retrieve interrupt interval
- Enqueue all endpoint descriptors at the end of the associated queue
- Only notify hardware of insertion when it is an bulk / control request
- Scan interrupt endpoint list to find the completed transfer descriptor
- Add debugging function to print out linked endpoint descriptors
- Interrupt transfers are now implemented. 
- Tested in Windows XP SP3 + Vbox 4.04 + Microsoft 5-Button Mouse. The HID mouse installs, initializes and starts up. Unfortunately the mouse does not work as expected yet

svn path=/branches/usb-bringup/; revision=51922
2011-05-26 12:37:18 +00:00
Johannes Anderwald
667b425b6c [USBOHCI]
- Remove dead code
- Silence traces
- Pass status & DoneHead as parameters to dpc routine
- Move IUSBRequest cleanup code into new function and use it for bulk / control transfer cleanup
- Fix bugs in AllocateEndpointDescriptor. It did not take the device address into account. It also did not respect the direction of the descriptor
- Implement support for bulk transfer requests
- Handle irp completion in CompletionCallback
- Tested in Windows XP SP3 + Vbox 4.04 + USB2.0 disabled + ReactOS usbstor + USB mass storage device
- OHCI Mass storage support is now also ready
- Next interrupt transfers

svn path=/branches/usb-bringup/; revision=51917
2011-05-26 02:15:11 +00:00
Johannes Anderwald
2c6077dc50 [USBOHCI]
- Add glue code for supporting iso transfers
- Remove dead from Handle
- Remove broken asserts
- Add support for string descriptors
- Add support for class specific endpoint requests (Needs be ported to usbehci)
- Link to usbd driver
- Add support for retrieving string descriptor
- Rewrite configuration descriptor handling in IUSBDevice. New code is smaller, smarter and handles a lot more cases. Needs to be ported to usbehci
- Wrap usbdlib.h include in extern c macro, it has c linkage
- Control transfers should now work 
- Need to implement support for isochronous / bulk / interrupt transfers until functional
- Tested with Bluetooth USB Stick (multi function, interrupt / bulk / control / isochronous) / USB Microphone (isochronous & control) in XP SP3

svn path=/branches/usb-bringup/; revision=51900
2011-05-25 02:11:06 +00:00
Johannes Anderwald
beec9a7b25 [USBD]
- Add missing export

svn path=/branches/usb-bringup/; revision=51899
2011-05-24 23:03:35 +00:00
Johannes Anderwald
ed6fad617e [USBOHCI]
- Don't allocate buffer twice
- Cleanup endpoint / general transfer descriptors

svn path=/branches/usb-bringup/; revision=51892
2011-05-24 18:29:57 +00:00
Johannes Anderwald
e24bfbfa91 [USBOHCI]
- Add sanity checks
- Preserve  command status value when notifying the hc that a control / bulk endpoint was added
- Re-enable root hub notification interrupt when reset port has been completed
- Dispatch processing to USBQeueu when DoneHead event arrives
- Scan endpoints to find the logical endpoint which was completed by the hardware
- Signal completion to IUSBRequest by calling CompletionCallback
- Create a final transfer descriptor which is linked to the endpoint descriptor
- Control transfers now appear to be working (Device retrieves device descriptor / configuration descriptor and succeeds in setting device address)
- Configuration parsing code needs more work now (currently fails there due to invalid / unexpected configuration descriptor from device)

svn path=/branches/usb-bringup/; revision=51888
2011-05-24 17:57:00 +00:00
Johannes Anderwald
b275073474 [USBOHCI]
- Enable global power mode
- Wait untill reset is complete
- Clear reset complete bit when reset is done
- Enable port
- Reset port now works
- USBOHCI still hangs after adding first control request, needs more investigation

svn path=/branches/usb-bringup/; revision=51883
2011-05-24 12:51:03 +00:00
Johannes Anderwald
f75cb3d51d [USBOHCI]
- Start implementing control transfers
- Move initialization of usb queue after the bulk / control head endpoints have been created
- Add interface functions to retrieve bulk / control head endpoint descriptors
- Add macros for setting transfer descriptors field (taken from Haiku)
- Partly implement IUSBQueue::AddUSBRequest for control / bulk transfers
- Create endpoint descriptor for control request and link setup descriptor to it 
- Link setup descriptors to data descriptor / status descriptor
- WIP (needs fixes)

svn path=/branches/usb-bringup/; revision=51864
2011-05-23 17:42:52 +00:00
Johannes Anderwald
c5acda628c [USBOHCI]
- Fix bug in calculating offset of status register
- Start implementing deferred processing routine
- Signal status change when new device is arrived
- Implement basic GetPortStatus
- Start implementing SetPortFeature, ClearPortStatus
- ResetPort not yet fully working, WIP

svn path=/branches/usb-bringup/; revision=51858
2011-05-23 11:29:55 +00:00
Johannes Anderwald
89d52d98bb [OHCI]
- Add check that controller is functional state
- enable interrupts after the controller has been started
- partly implement isr routine

svn path=/branches/usb-bringup/; revision=51852
2011-05-22 20:48:50 +00:00
Johannes Anderwald
d4c4a2e080 [USBOHCI]
- Start of OHCI support
- Based on new usbehci driver and Haiku USB Stack
- Driver initializes the controller and retrieve number of ports

svn path=/branches/usb-bringup/; revision=51851
2011-05-22 19:36:13 +00:00
Johannes Anderwald
3dfadd12ae [USBEHCI]
- Enable sync frame list

svn path=/branches/usb-bringup/; revision=51827
2011-05-20 15:06:39 +00:00
Johannes Anderwald
9e2ca3d539 [USBEHCI]
- Pass memory manager to USBQueue object
- Fix bug in memory manager which did not check if an allocation equals page size
- Implement interrupt queue head array with frequencys of 1ms up to 32ms
- Store queue heads in the sync schedule array
- WIP

svn path=/branches/usb-bringup/; revision=51826
2011-05-20 14:47:15 +00:00
Michael Martin
ff208f7adb [USBSTOR]
- Add error handling to USBSTOR_CSWCompletionRoutine for errors that can be recovered via reset of pipe/port/controller. Only pipe reset is attempted. WIP.

svn path=/branches/usb-bringup/; revision=51808
2011-05-17 11:26:25 +00:00
Johannes Anderwald
a5d0b5fdef [USBSTOR]
- Implement retrieving serial number from device
- Use serial number to format instance id and retrieve in StorageDeviceProperty requests
- Silence traces


svn path=/branches/usb-bringup/; revision=51770
2011-05-15 17:57:02 +00:00
Johannes Anderwald
e9a0c8ba68 [USBSTOR]
- Add asserts
- Rewrite queue methods to accept the FDO only 
- Fix multiple synchronization bugs
- Don't start next irp before current irp has completed
- Use contiouslogicalbytes blocks from srb
- Should fix race conditions

svn path=/branches/usb-bringup/; revision=51764
2011-05-15 14:59:16 +00:00
Johannes Anderwald
793e8870ca [USBSTOR]
- Fix one more warning

svn path=/branches/usb-bringup/; revision=51760
2011-05-15 12:49:17 +00:00
Johannes Anderwald
5c5f758afa [USBSTOR]
- Silence warnings
- Silence traces
- Add asserts
- Add code to detect usb reset in progress. In that case cancel the request
- Add more code to synchronize urb action
- WIP, still hangs are observed

svn path=/branches/usb-bringup/; revision=51759
2011-05-15 12:47:54 +00:00
Michael Martin
e5f521c90a [USBSTOR]
- Start implementing error handling.
- On errors use a worker thread to attempt a recovery. If successful restart the operation that failed.
- If STALL_PID is received reset the pipe of the device.
- Not entered into code path yet. WIP.

svn path=/branches/usb-bringup/; revision=51754
2011-05-15 11:23:16 +00:00
Michael Martin
f1ec4fbe16 [USBSTOR]
- USBSTOR_SendRequest: The buffer for read/write may not be NonPagedPool, which is documented as a requirement for using MmBuildMdlForNonPagedPool. Also locking the buffers pages is also not an option as the routine is called at DISPATCH_LEVEL.
It so happens that Irp->MdlAddress is valid for read/write operations. Use it instead of procedure above.
- Add a sanity check to make sure the Mdl does describe the transfer buffer.
Fixes IRQL_NOT_LESS_OR_EQUAL bugcheck in windows. These changes also may fixed writing to device.

svn path=/branches/usb-bringup/; revision=51752
2011-05-15 08:23:32 +00:00
Johannes Anderwald
be12088a55 [USBSTOR]
- Start implementing queued srb handling
- Implement SRB_FUNCTION_RELEASE_QUEUE, SRB_FUNCTION_FLUSH, SRB_FUNCTION_FLUSH_QUEUE
- WIP, not yet working perfectly

svn path=/branches/usb-bringup/; revision=51739
2011-05-14 18:09:00 +00:00
Johannes Anderwald
3f8c058a07 [USBSTOR]
- Start implementing write command
- Disabled for now as it causes corruptions

svn path=/branches/usb-bringup/; revision=51695
2011-05-13 14:44:24 +00:00
Johannes Anderwald
89aa9d3264 [USBSTOR]
- Fix bug in read command, which uses wrong format. LBA address is stored in the CDB10 struct
- Don't build the mdl for nonpaged pool if the driver passes an mdl (i/o paging requests)
- Usbstor can now list disk contents and browse files when used in Windows XP
- Need to implement SCSIOP_WRITE to write files

svn path=/branches/usb-bringup/; revision=51694
2011-05-13 14:04:38 +00:00
Johannes Anderwald
eb228159bc [USBSTOR]
- Handle SCSIOP_MEDIUM_REMOVAL
- Handle paging i/o requests. These request don't provide a data buffer in the srb, but the buffer is stored in the irp' mdl
- Fix the hack for unimplemented Mode Sense command
- Usbstor now completes initializes and receives read requests
- Still need to fix read request, as Windows XP fails to recognize the disk format, WIP

svn path=/branches/usb-bringup/; revision=51693
2011-05-13 13:37:50 +00:00
Michael Martin
98ed611448 [USBSTOR]
- Add a check at USBSTOR_FdoHandleStartDevice to make sure the device uses Bulk Transfers.
- Use macros for initializing the Urbs. The macros ensure that the proper fields of the URB are set correctly.
Fixes failing of getting device descriptor and getting devices BlockLength.


svn path=/branches/usb-bringup/; revision=51691
2011-05-13 09:14:28 +00:00
Michael Martin
9d7751a2f6 [USBHUB_NEW]
- Only get the string descriptors if they are available. Fixes crash when using usb mouse and keyboards in windows.

svn path=/branches/usb-bringup/; revision=51688
2011-05-12 23:31:32 +00:00
Michael Martin
76310d7679 [USBEHCI_NEW]
- Modify BuildBulkTransferQueueHead to support TransferBufferLengths larger than PAGE_SIZE * 5.
- Acquire a SpinLock before adding QueueHeads to AsyncList and PendingList.
- Dont request a new QueueHead for incomplete transfers in QueueHeadCompletion, as the memory for the just completed QueueHead has not been released yet. Doing so overwrites the m_TransferDescriptor[x] members with new address resulting in memory leaks. Instead request a new QueueHead after the QueueHead has been freed in QueueHeadCleanup.
- Fix a bug where a QueueHead was removed from the m_CompletedRequestAsyncList instead of the m_PendingRequestAsyncList.
- Temporary hackfix InternalCalculateTransferLength to return the TransferBufferLength. This hack will be removed as soon as possible.
- With these changes the hub and ehci driver allow viewing content of and transfers to/from usb disks.

svn path=/branches/usb-bringup/; revision=51684
2011-05-12 13:35:06 +00:00
Michael Martin
8d98341ac8 [USBHUB_NEW]
- Implement IOCTL_INTERNAL_USB_GET_PORT_STATUS.
- Fixes to comments




svn path=/branches/usb-bringup/; revision=51683
2011-05-12 12:58:07 +00:00
Johannes Anderwald
b0b03bfdd1 [USBSTOR]
- Rewrite scsi method to act asynchronous

svn path=/branches/usb-bringup/; revision=51673
2011-05-11 03:49:15 +00:00
Michael Martin
4f76ebe078 [USBHUB_NEW]
- Save PortNumber in child device extensions as its needed when PNP request device capabilities.
- Handle IOCTL_INTERNAL_USB_SUBMIT_URB request by creating a new Irp and passing the Urb down to the miniport. 
- Now working with our ehci driver, we at least see a usb driver and can browse directory in Windows, though doing so results in assert as ehci doesnt support transfers over 5 Pages yet. Fix coming soon.



svn path=/branches/usb-bringup/; revision=51672
2011-05-11 02:25:11 +00:00
Johannes Anderwald
fc298e51a5 [USBSTOR]
- Partly implement test unit command

svn path=/branches/usb-bringup/; revision=51671
2011-05-10 23:26:56 +00:00
Michael Martin
db5142f32f [USBHUB_NEW]
- Forgotten change in 51641. Fixes build of usbhub.

svn path=/branches/usb-bringup/; revision=51657
2011-05-09 10:48:00 +00:00
Johannes Anderwald
fc34f0177d [USBSTOR]
- Start implementing SCSI read

svn path=/branches/usb-bringup/; revision=51654
2011-05-08 22:18:55 +00:00
Johannes Anderwald
45f27e8b8c [USBEHCI_NEW]
- Fix retrieving drive capacity
- Fix ufi command structures

svn path=/branches/usb-bringup/; revision=51649
2011-05-08 19:33:41 +00:00
Michael Martin
741b7ea0aa [USBEHCI_NEW]
- When clearing feature port reset, remove the flag from Change and if the port is hardware enabled set the enable flag in Status. 
- When checking port status, if Change has any flags set an SCE request most be completed. Verified while writing usbhub driver in xp.
- Probably fixes a case where an endless loop of completing SCE requests.

svn path=/branches/usb-bringup/; revision=51642
2011-05-08 12:42:15 +00:00
Michael Martin
3063e3bf5e [USBHUB_NEW]
- Implement constructing CompatibleIds string using device descriptor. However, if the Class of the device descriptor is 0, then Class, SubClass and Prot which make up this string must come from the Interface.
- Change Ids and Descriptions to Unicode Strings. 
- Move the creating of Id strings to one place, CreateDeviceIds, and called it at device creation.

svn path=/branches/usb-bringup/; revision=51641
2011-05-08 12:24:26 +00:00
Michael Martin
54c5af9906 [USBHUB_NEW]
- Some devices implement a default Language, LangId of 0. Some do not. Use LangId 0x0409 (English) until LangId is implemented.
- Remove an unused variable.

svn path=/branches/usb-bringup/; revision=51622
2011-05-07 16:10:09 +00:00
Michael Martin
e9fe271ad6 [USBHUB_NEW]
- The lower level driver completes the SCE IRP whenever the change state has been modified for a port. When handling the SCE IRP completion only check for flags in change state. The Change flags must be cleared else the hub driver will get non stop SCE IRP completions.
- Allocate IRP from Pool vice calling IoAllocateIrp. Dont free the IRP in the completion routine as the port driver, oddly, frees them.
- GetUsbDeviceDescriptor: Remove use of MDL and use only buffer instead to make our new usbehci happy.
- When calling the interface routines, correctly use the BusContext returned from the interface instead of the RootHubPdo. This worked on windows as it just happened they were the same.
- Implement RootHubInitCallbackFunction, which only job currently is to send the first SCE IRP.
- For Start Device for child device objects fake success for now. Will be implemented later.
- Implement returning IRP_MN_QUERY_IDs, IRP_MN_QUERY_DEVICE_TEXTs and IRP_MN_QUERY_BUS_INFORMATION.
- Add basic handling for IRP_MJ_POWER.
- Misc code changes.
 

svn path=/branches/usb-bringup/; revision=51620
2011-05-07 14:49:02 +00:00
Johannes Anderwald
5573560a44 [USBSTOR]
- Implement SCSI mode sense

svn path=/branches/usb-bringup/; revision=51609
2011-05-06 17:23:19 +00:00
Johannes Anderwald
ff67bee091 [USBSTOR]
- Implement retrieving drive capacity
- Use constant from scsi.h instead of defining own format
- Don't reset returned parameters length to zero, as ioctl handler might set it


svn path=/branches/usb-bringup/; revision=51608
2011-05-06 16:25:01 +00:00
Johannes Anderwald
5c9e645604 [USBSTOR]
- Implement retrieving adapter descriptor (IOCTL_STORAGE_QUERY_PROPERTY)
- Implement retrieving device descriptor (IOCTL_STORAGE_QUERY_PROPERTY)
- Next Function to implement is SRB_FUNCTION_EXECUTE_SCSI

svn path=/branches/usb-bringup/; revision=51607
2011-05-06 13:29:27 +00:00
Johannes Anderwald
c5af801a10 [USBSTOR]
- Rename common device extension, it conflicts with classpnp.h header structures
- Start implementing disk ioctls
- Implement SRB_FUNCTION_CLAIM_DEVICE, SRB_FUNCTION_RELEASE_DEVICE

svn path=/branches/usb-bringup/; revision=51585
2011-05-05 00:39:00 +00:00
Johannes Anderwald
dd5249b4b6 [USBEHCI_NEW]
- Silence debug flood

svn path=/branches/usb-bringup/; revision=51584
2011-05-05 00:35:56 +00:00
Johannes Anderwald
c071ae0f59 [USBSTOR]
- Make DeviceId generation to match ms usbstor
- Don't hardcode the device type in USBSTOR_PdoHandleQueryHardwareId
- Don't hardcode device type in USBSTOR_PdoHandleQueryCompatibleId
- Hackfix generation of instance id
- Add comments
- Cleanup code
- Usbstor now receives ioctl from disk.sys

svn path=/branches/usb-bringup/; revision=51582
2011-05-04 23:14:32 +00:00
Michael Martin
e84208fd18 [USBHUB_NEW]
- Add UsbDeviceHandle to child device extensions structure to be passed with URB requests.
- Reimplement the Worker Thread DeviceStatusChangeThread called on SCE completion. Each SetFeature and ClearFeature resend SCE request.
Only create the usb child device if the PortStatusChange member of the device extensions was modified.
- Implement CreateUsbChildDeviceObject used for creating a deviceobject for the USB device and initializing it.
- Implement GetUsbStringDescriptor for getting DeviceId, TextDescription and InstanceId from USB Device.
- Move the initial QueryStatusChangeEndpoint to after the hub device receives start pnp.
- USBHUB driver is now back to the same functionality of previous version. Showing the device wizard for connected devices.

svn path=/branches/usb-bringup/; revision=51581
2011-05-04 21:45:55 +00:00
Johannes Anderwald
8d93646c2d [USBSTOR]
- Rewrite hardware id / instance id matching
- Implement support for compatible id
- UsbStor still not attached to disk.sys, needs more research on how to get this done

svn path=/branches/usb-bringup/; revision=51580
2011-05-04 20:19:33 +00:00
Michael Martin
0fe38c839b [USBHUB_NEW]
- Change parameter name for DeviceObject in functions to clearify which device object is to received IRPs.
- Fix a typo in GetPortStatusAndChange that caused the function to return nothing for status and change.
- Call QueryStatusChangeEndpoint to send the first SCE request in Query Bus Releations.
- Complete implementation of StatusChangeEndpointCompletion. Queue a work item for DeviceStatusChangeThread, which will be used to initialize the usb device and create related device objects.



svn path=/branches/usb-bringup/; revision=51576
2011-05-04 12:58:42 +00:00
Johannes Anderwald
062111f2e1 [USBSTOR]
- Don't free device descriptor if it failed to acquire it
- Don't move out of usb configuration array. Found by special pool
- Fix bug when storing interface information which lead to a overwrite
- Implement retrieving generic type for device
- Fix bugs in QueryDeviceId
- Implement querying hardware ids
- Implement querying instance ids
- With these changes, usbstor now initializes and create pdo, which is also enumerated
- Needs more code / fixes so that disk.sys attaches to usbstor
- WIP

svn path=/branches/usb-bringup/; revision=51575
2011-05-04 12:33:01 +00:00
Johannes Anderwald
11ca3bd492 [USBEHCI_NEW]
- Fix warnings
- Fix mingw build

svn path=/branches/usb-bringup/; revision=51573
2011-05-04 12:09:07 +00:00
Johannes Anderwald
c2b34a98be [USBEHCI_NEW]
- Invoke status change callback at passive level
- Fill out usb descriptor struct instead passing everything in char array
- Use 1 byte interrupt endpoint packet size for hub for now
- Fill in interface information when SelectConfiguration request is passed. Fixes sce callback and pool corruptions
- Return device descriptor in USBHI_QueryDeviceInformation
- Tested in WinXP with special pool enabled & overrun support

svn path=/branches/usb-bringup/; revision=51572
2011-05-04 11:49:00 +00:00
Michael Martin
9cbc4f8f60 [USBHUB_NEW]
- Add UsbHub_New to build.



svn path=/branches/usb-bringup/; revision=51570
2011-05-04 01:08:37 +00:00
Michael Martin
af70a910fb [USBHUB_NEW]
- Start work on reimplementing UsbHub driver.
- Implement SubmitRequestToRootHub, QueryStatusChangeEndpoint, QueryInterface, GetPortStatusAndChange, SetPortFeature and ClearPortFeature.Handle QueryBusRelations.
- Partially implement PNP handling for FDO. When starting the device get all the information about the RootHub the driver will need and enable Power on all ports.
- Partially implement PNP handling for PDO, QueryId and QueryDeviceText.
- WIP



svn path=/branches/usb-bringup/; revision=51569
2011-05-04 01:07:21 +00:00
Johannes Anderwald
7821a805ef [USBSTOR]
- Implement retrieving string device type from SCSI device type
- Handle BusQueryDeviceId
- Implement support routines for sending CBW / CSW / Data
- Implement retrieving device type (SCSI inquiry request)
- WIP

svn path=/branches/usb-bringup/; revision=51567
2011-05-03 19:40:03 +00:00
Johannes Anderwald
991d02daa5 [USBEHCI_NEW]
- Remove function declaration
[USBSTOR]
- Start on usbstor driver (USB Mass Storage Driver)
- Implement reading device descriptor / configuration descriptor
- Implement scanning of configuration descriptor for bulk in / bulk out endpoints
- Implement selecting configuration and interface and verify selected interface
- Implement reading max lun and create child device object for each lun
- Handle PnP requests for functional device object
- Implement support routines to send urb's to lower device object (usbhub)
- Start implementing PDO routines

svn path=/branches/usb-bringup/; revision=51563
2011-05-03 00:15:23 +00:00
Johannes Anderwald
bca978808b [USBEHCI_NEW]
- Silence usb bulk control traces

svn path=/branches/usb-bringup/; revision=51507
2011-04-30 18:46:10 +00:00
Johannes Anderwald
6321f84f30 [USBEHCI_NEW]
- Store number of bytes transferred in the transfer descriptors
- Perform queue head completion when the door bell ring has been acknowledged. Fixes race condition between multiple irps in the async list
- Fix calculation of transfer length when the request is an bulk in operation
- Use EndPointDescriptor member to access transfer type / pid direction
- Use MmGetSystemAddressForMdlSafe to retrieve system address for urb buffer
- Fix check if first transfer buffer finishes on first size if the size is of page_size
- With these changes and little luck and good weather, usb mass storage devices have been seen to  work in Windows XP SP3 
- Code inspired of mjmartin usbehci driver and Haiku's usb stack


svn path=/branches/usb-bringup/; revision=51506
2011-04-30 17:44:43 +00:00
Johannes Anderwald
547ea14508 [USBEHCI_NEW]
- Port URB_FUNCTION_CLASS_INTERFACE from mjmartin usbehci driver
- Fix typo in interface declaration
- Disable assert for now
- Return irp status pending when irp is added to the queue
- Fix bug in InternalGetPidDirection
- More work on the bulk transfers, not yet working

svn path=/branches/usb-bringup/; revision=51501
2011-04-30 08:04:35 +00:00
Michael Martin
bdfaf318b8 [USBEHCI_NEW]
- Fix a type causing CommitIrp to fail.
- Add a sanity check in StatusChangeEndpointCallBack to check that a pending SCE irp is queued.
- Start Implementing Bulk Transfers. Needs more work.



svn path=/branches/usb-bringup/; revision=51493
2011-04-29 13:16:03 +00:00
Michael Martin
07dbb71da0 [USBEHCI_NEW]
- Set the NakCountReload to 0 in the QueueHead that is set in the Async register, as this is a dead QueueHead marked as halted and does not need it.
- Set the Async register in StartController. Note: The Async and Periodic registers can only be modified when the controller is stopped. 
- Driver now works in Qemu.

svn path=/branches/usb-bringup/; revision=51491
2011-04-29 06:14:44 +00:00
Johannes Anderwald
20a1892864 [USBEHCI_NEW]
- Fix SelectConfiguration / SelectInterface
- By mjmartin

svn path=/branches/usb-bringup/; revision=51490
2011-04-29 03:17:57 +00:00
Johannes Anderwald
3b6ba2f1d8 [USBEHCI_NEW]
- Implement SelectInterface / SelectConfiguration based on mjmartin usbehci driver
- Initialization runs untill SelectInterface request
- Tested with WinXP SP2

svn path=/branches/usb-bringup/; revision=51489
2011-04-29 02:46:04 +00:00
Michael Martin
f48754e09b [USBEHCI_NEW]
- hub_controller.cpp: Change RtlSetBit and RtlClearBit to RtlSetBtis and RtlClearBits for Win2k compatibility.

svn path=/branches/usb-bringup/; revision=51488
2011-04-29 02:19:10 +00:00
Johannes Anderwald
e8cf4c5591 [USBEHCI_NEW]
- Remove assert for unknown clear feature
- Implement retrieving string descriptors, based on mjmartin usbehci driver
- Start implementing USBHI_RestoreUsbDevice
- Fixup device stack in USBHI_SetDeviceHandleData. Needs more investigation

svn path=/branches/usb-bringup/; revision=51487
2011-04-28 23:59:53 +00:00
Johannes Anderwald
823176506d [USBEHCI_NEW]
- Implement retrieving device / configuration descriptor for usb devices
- Based on mjmartin usbehci driver
- Mass storage device found wizard now pops up (fails to install - WIP)

svn path=/branches/usb-bringup/; revision=51478
2011-04-28 17:45:32 +00:00
Johannes Anderwald
a3f701378c [USBEHCI_NEW]
- Move error checking if controller reported an error inside the door bell ring check block
- Extend interface of IUSBRequest to include DeviceAddress, which is needed to retrieve configuration descriptor of newly set address
- Allocate CtrlSetup from nonpaged pool
- Release setup packet on cleanup
- Devices now receive an device address
- Currently asserts while retrieving configuration descriptor as this code path is not yet existant
*** Assertion failed: Urb->UrbHeader.UsbdDeviceHandle == NULL
***   Source File: d:\usb-bringup\drivers\usb\usbehci_new\hub_controller.cpp, line 1118

svn path=/branches/usb-bringup/; revision=51477
2011-04-28 16:40:07 +00:00
Johannes Anderwald
ede1d48da4 [USBEHCI_NEW]
- Change interface to return real async queue head
- Set the async queue head register after the controller has been started
- Enable async queue in StartController
- Port DumpDeviceDescriptor from mjmartin usbehci driver
- Remove pseudo queue head from usb queue, instead use the real async queue head exported from IUSBHardwareDevice 
- Get physical address for transfer data in BuildControlTransferQueueHead
- Retrieving device descriptor now ~works, currently stops at setting device address (needs more work)

svn path=/branches/usb-bringup/; revision=51476
2011-04-28 15:16:33 +00:00
Johannes Anderwald
8df637b778 [USBEHCI_NEW]
- Check if the current request type is supported (currently only control is supported, bulk will be implemented soon)
- Fix bug in IUSBRequest::CreateQueueHead
- Code runs now until first device descriptor get request (async / periodic queue not yet enabled)
- mjmartin usbehci status not yet reached
- Let the fun now begin ;)

svn path=/branches/usb-bringup/; revision=51474
2011-04-28 13:13:13 +00:00
Johannes Anderwald
ede324a063 [USBEHCI_NEW]
- Cache port status & port change settings because it appears that some ehci controllers do not store the status reset register bit correctly
- This commit is a temporary solutions, needs to be reworked
- Return correct status from HandleClassOther
- Handle IOCTL_INTERNAL_USB_SUBMIT_IDLE_NOTIFICATION to return status success

svn path=/branches/usb-bringup/; revision=51473
2011-04-28 12:41:16 +00:00
Johannes Anderwald
591cffee7c [USBEHCI_NEW]
- Return the physical address of the async queue head in CUSBHardwareDevice::GetAsyncListRegister
- Remove superflous entries from queue head structure, they are processed within IUSBRequest class
- Remove USBHI_GetPortHackFlags, this function has been deprecated
- Add interface functions for IUSBRequest / IUSBQueue
- Callback into IUSBQueue when a hardware interrupt arrives
- Implement callback function to check for completed queue heads / free completed queue head depending on the Async Advance interrupt bit

svn path=/branches/usb-bringup/; revision=51466
2011-04-27 16:23:42 +00:00
Johannes Anderwald
346a95197f [USBEHCI_NEW]
- Fix build 
- Implement retrieving configuration descriptor (USBHI_GetUsbDescriptors)
- Implement function to build a setup packet from urb (taken from mjmartin usbehci driver)

svn path=/branches/usb-bringup/; revision=51443
2011-04-24 09:26:22 +00:00
Johannes Anderwald
982eb59ba0 [USBEHCI_NEW]
- Create member for storing the request object
- Add interface function which is invoked when the queue head should be freed
- Add support functions which deal with completed queue heads

svn path=/branches/usb-bringup/; revision=51440
2011-04-23 19:36:23 +00:00
Michael Martin
4dff45da57 [USBEHCI_NEW]
hub_controller: 
- Implement  StatusChangeEndpointCallBack called by HardwareDevice class when port status has changed on controller.
- Move Status Change Endpoint query code to IQueryStatusChageEndpoint as it is also needed by StatusChangeEndpointCallBack.
usb_request: 
- Implement InternalCreateUsbRequest.
usb_queue:
- Implement  CreateUsbRequest and AddUsbRequest
hardware:
- Implement GetAsyncListRegister and GetPeriodicListRegister.
- Implement SetStatusChangeEndpointCallBack for setting callback and context. Call the callback when a port status changes.
- Initialize the UsbQueue after creating the AsyncQueueHead, as the UsbQueue calls will call back with GetAsyncListRegister.



svn path=/branches/usb-bringup/; revision=51407
2011-04-20 04:30:22 +00:00
Johannes Anderwald
d4f7a44a18 [USBEHCI_NEW]
- Fix warning because comparing signed vs unsigned
- Implement function for retrieving the device descriptor
- Implement function for retrieving a configuration descriptor (including contained interface descriptor and endpoint descriptor)
- Cleanup interface for IUSBRequest:
- When caller initializes IUSBRequest with an IRP, then the operation mode is asynchronously. Therefore when the request is completed, IUSBRequest::ShouldReleaseRequestAfterCompletion will return true, which makes IUSBQueue call Release on IUSBRequest
- When the caller initializes IUSBRequest with an setup packet, the operation mode is synchronously. After submitting the IUSBRequest to queue, the caller should call IUSBRequest::GetResultStatus. This function will then block untill the operation has been completed. However, the caller needs to call Release() as those requests are not cleaned up by the IUSBQueue


svn path=/branches/usb-bringup/; revision=51406
2011-04-19 18:35:40 +00:00
Michael Martin
9b8bc8512c [USBEHCI_NEW]
- Initialize the MemoryManager only after allocating a CommonBuffer to pass to it.
- Create a QueueHead to put into the AsyncList Register.


svn path=/branches/usb-bringup/; revision=51402
2011-04-19 15:06:26 +00:00
Michael Martin
775c4ce80d [USBEHCI_NEW]
- hub_controller: Implement Status Change Endpoint for RootHub. 
Handling the URB can return STATUS_PENDING, as in the new SCE code. Check for this before completing the Irp.
Uncomment calls to PortStatus, SetPortFeature, and ClearPortStatus now that they are implemented.
- For function receiving a port number check that its not larger than the actual number of ports on the controller.

svn path=/branches/usb-bringup/; revision=51401
2011-04-19 13:57:32 +00:00
Michael Martin
40e499c2d4 [USBEHCI_NEW]
- Forgotten changes in r51397.

svn path=/branches/usb-bringup/; revision=51398
2011-04-19 07:36:44 +00:00
Michael Martin
c3d1d6fda9 [USBEHCI_NEW]
- Move USB_REQUEST_SET_FEATURE / USB_REQUEST_GET_FEATURE flags to header file.
- Remove QueueHead and Descriptor creation as its in UsbRequest.
- Move DMACommon Buffer allocation back to UsbHardwareDevice class.
- Implement Port Handling functions GetPortStatus, ClearPortStatus and SetPortFeature.
- Implement GetUSBQueue for returning pointer to UsbQueue and GetDMA to return DMAMemoryManager.
- Fix a typo in one of the defines for Port Register Flags.

svn path=/branches/usb-bringup/; revision=51397
2011-04-19 06:56:30 +00:00
Johannes Anderwald
3ac2c07f55 [USBEHCI_NEW]
- Null terminate buffer from IOCTL_USB_GET_ROOT_HUB_NAME, fixes usbview problems
- Implement URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER, IUSBHardware needs more work
- Silence debug traces
- Start implementing IUSBRequest interfaces
- Complete unhandled major irp with status success

svn path=/branches/usb-bringup/; revision=51396
2011-04-19 01:21:10 +00:00
Michael Martin
d3e13a4ada [USBEHCI_NEW]
- Use PQUEUE_HEAD as the Head of pending list  and Async (Active) list vice using PLIST_ENTRY.
- Implement linking/unlinking a QueueHead to these Head QueueHeads.
- Implement chain linking/unlinking of QueueHeads. Thr plan being to used these functions during DMA operations to pull a number of QueueHeads from the pending list to place into the Async list for execution. 
- Will look for optimization in these functions later.

svn path=/branches/usb-bringup/; revision=51390
2011-04-18 11:34:02 +00:00
Michael Martin
9067f34e6f [USBEHCI_NEW]
- Use LIST_ENTRY in QueueHeads and Descriptors vice Next and Previous Pointers.
- Add functions to interface for setting AsyncListRegister and PeriodicListRegister.
- USBHardwareDevice: Initialize USBQueue when handling PNPStart.
- USBQueue: Allocate Common Buffer and use it to Create and Initialize DmaMemoryManager object.
- USBQueue: Implement CreateQueueHead and CreateDescriptor.

svn path=/branches/usb-bringup/; revision=51388
2011-04-18 00:06:37 +00:00
Johannes Anderwald
a2b99febfa [USBEHCI_NEW]
- Add interface function GetHubControllerSymbolicLink
- Implement IOCTL_USB_GET_ROOT_HUB_NAME for usbview

svn path=/branches/usb-bringup/; revision=51387
2011-04-17 22:38:32 +00:00
Michael Martin
bbad937d99 [USBEHCI_NEW]
- Update interfaces with new methods needed for UsbHardWare class.
- Remove GetDmaMemoryManager as the DmaMemory will only be needed by UsbQueue class.
- GetDeviceDetails: Only fill in a parameter if its not null.
- Start implementing UsbQueue class.

svn path=/branches/usb-bringup/; revision=51386
2011-04-17 22:06:20 +00:00
Johannes Anderwald
d8b732ed43 [USBEHCI_NEW]
- Implement IRP_MN_QUERY_DEVICE_RELATIONS for hub controller object
- Implement stub handler for URB_FUNCTION_CLASS_OTHER, URB_FUNCTION_SELECT_CONFIGURATION
- Partly implement URB_FUNCTION_GET_STATUS_FROM_DEVICE
- Return success from unimplemented USBHI_Initialize20Hub routine
- based on mjmartin usbehci driver
- Tested in Windows XP SP2

svn path=/branches/usb-bringup/; revision=51385
2011-04-17 21:35:25 +00:00
Johannes Anderwald
5290479c41 [USBEHCI_NEW]
- Setup a default device descriptor for the root hub and initialize it with vendor & product id
- Partly implement URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE, URB_FUNCTION_CLASS_DEVICE
- based on mjmartin usbehci 

svn path=/branches/usb-bringup/; revision=51384
2011-04-17 19:23:13 +00:00
Johannes Anderwald
79bfd697d0 [USBEHCI_NEW]
- Fix bug in CDMAMemoryManager initialization, which calculated the bitmap length wrong
- Create interface IUSBDevice, which will be used to abstract connected usb devices
- Implement support functions for the device interface. 
- Implement USBHI_CreateUsbDevice, USBHI_InitializeUsbDevice, USBHI_GetUsbDescriptors, USBHI_RemoveUsbDevice, USBHI_GetExtendedHubInformation, USBHI_RootHubInitNotification, USBHI_SetDeviceHandleData, USBDI_GetUSBDIVersion, USBDI_IsDeviceHighSpeed
- Partly implement USBHI_QueryDeviceInformation
- Based on mjmartin usbehci 

svn path=/branches/usb-bringup/; revision=51372
2011-04-17 08:20:40 +00:00
Johannes Anderwald
e06b7ac5cc [USBEHCI_NEW]
- Implement IDMAMemoryManager interface, with IDMAMemoryManager::Allocate, IDMAMemoryManager::Free
- Fix interface of IDMAMemoryManager
- Will be used by IUSBHardwareDevice

svn path=/branches/usb-bringup/; revision=51369
2011-04-16 12:26:06 +00:00
Johannes Anderwald
767daa4af0 [USBEHCI_NEW]
- Add reference count when the hub controller is created. Necessary to prevent the controller from getting deleted when the hub driver performs interface reference removes
- Implement IRP_MN_QUERY_ID, based on mjmartin ehci driver
- Fix bug in IRP_MN_QUERY_BUS_INFORMATION, it is supposed to return a PNP_BUS_INFORMATION not a simple guid
- Implement IOCTL_INTERNAL_USB_GET_DEVICE_HANDLE, IOCTL_INTERNAL_USB_GET_ROOTHUB_PDO, IOCTL_INTERNAL_USB_GET_HUB_COUNT based on mjmartin ehci driver
- Add interfaces for communicating with the hub driver
- Dispatch internal device requests not wmi requests (EHCI_Dispatch)

svn path=/branches/usb-bringup/; revision=51368
2011-04-16 09:47:43 +00:00
Michael Martin
b8c05840fb [USBEHCI_NEW]
- Change VendorId and DeviceId to the same size as PciConfig members, PUSHORT.
- Add support function GetBusInterface.
- Implement GetDeviceDetails and ResetPort.

svn path=/branches/usb-bringup/; revision=51367
2011-04-16 06:59:45 +00:00
Michael Martin
acbd41ebf5 [USBEHCI_NEW]
- Add flags for Port Status Control Register and remove structiures for Port Status Control Register.
- Remove USB Status Register and use the flags instead.
- Remove functions that are not used and never will be.
- Implement InterruptServiceRoutine and Deffered Procedure Routine.
- Partially implement port status change to detect device insert and removal.

svn path=/branches/usb-bringup/; revision=51366
2011-04-16 05:55:02 +00:00
Michael Martin
9b44c5121d [USBEHCI_NEW]
- Add flags and structures needed for communicating with controller and handling schedules.
- Add support routines for modifying operational registers on controller.
- Implement getting the controller capabilties, starting and stopping the controller.

svn path=/branches/usb-bringup/; revision=51365
2011-04-16 02:20:23 +00:00
Johannes Anderwald
a61d852c84 [USBEHCI_NEW]
- Create Interface IDispatchIrp which is used to handle ioctl requests
- Partly implement IHubController interface

svn path=/branches/usb-bringup/; revision=51355
2011-04-15 17:57:24 +00:00
Johannes Anderwald
6815708639 [USBEHCI_NEW]
- Define tag for allocations
- Fixes assert hit in ReactOS
- Fix typo in IHubController interface declaration

svn path=/branches/usb-bringup/; revision=51353
2011-04-15 15:45:09 +00:00
Johannes Anderwald
c1964ed574 [USBEHCI_NEW]
- Fix IOCTL_GET_HCD_DRIVERKEY_NAME implementation
- Now needs IOCTL_USB_GET_ROOT_HUB_NAME to get further in usbview
- Tested in Windows XP SP2

svn path=/branches/usb-bringup/; revision=51350
2011-04-15 14:58:50 +00:00
Johannes Anderwald
297f2e3dd4 [USBEHCI_NEW]
- Build fix #1 for mingw
- Define cxa_pure_virtual which is required that gcc is aware that it should really use the libc++ instead of falling back to libc

svn path=/branches/usb-bringup/; revision=51348
2011-04-15 14:13:24 +00:00
Johannes Anderwald
24188364ec [USBEHCI_NEW]
- Implement CHCDController::Initialize, CHCDController::HandlePnp for PDO / FDO, 
- Partly implement CHCDController::HandleDeviceControl
- Based on mjmartin usbehci sources
- Driver now startups and acquires pnp resources
- Fails in HandleDeviceControl with IOCTL_GET_HCD_DRIVERKEY_NAME when usbview is launched
- Tested in Windows XP SP2 + Vmware Server 2.0.2

svn path=/branches/usb-bringup/; revision=51343
2011-04-14 16:42:02 +00:00
Johannes Anderwald
6ba926eecc [USBEHCI_NEW]
- Fix build breakage from 51341

svn path=/branches/usb-bringup/; revision=51342
2011-04-14 13:03:01 +00:00
Johannes Anderwald
abb1319801 [USBEHCI_NEW]
- Implement CUSBHardwareDevice::Initialize, CUSBHardwareDevice::AcquireDeviceLock, CUSBHardwareDevice::ReleaseDeviceLock
- Partly implement CUSBHardwareDevice::PnpStart
- Code from CUSBHardwareDevice::PnpStart was taken from mjmartin usbehci implementation

svn path=/branches/usb-bringup/; revision=51341
2011-04-14 12:55:41 +00:00
Johannes Anderwald
2e9250bbec [USBEHCI_NEW]
- Implement stubs for classes CHCDController and CUSBHardwareDevice
- Implement CreateHCDController, CreateUSBHardware
- Implement CUSBHardwareDevice::QueryInterface, CUSBHardwareDevice::AddRef, CUSBHardwareDevice::Release
- Implement CHCDController::AddRef, CHCDController::Release, CHCDController::QueryInterface

svn path=/branches/usb-bringup/; revision=51337
2011-04-14 11:58:07 +00:00
Johannes Anderwald
009b2e00df [USBEHCI_NEW]
- Create empty USB EHCI driver in c++
- Design & review the interfaces with mjmartin
- Create stubs for creating IUSBHardwareDevice / IHCDController classes
- Implement DriverEntry, EHCI_AddDevice and EHCI_Dispatch

svn path=/branches/usb-bringup/; revision=51335
2011-04-14 11:35:16 +00:00
Colin Finck
2ad47f0104 - Change the root "readme.txt" file to have a CLT2011 text.
- Add all CD options to "welcome.exe", modify its code a bit to support this.

This is all stuff which has already been done last year, see r46065.

svn path=/branches/ros-branch-0_3_13-clt2011/; revision=51078
2011-03-16 23:19:36 +00:00
Colin Finck
77565b18aa Import my Hybrid-CD stuff from last year.
Hopefully the kernel hack is not required anymore..

svn path=/branches/ros-branch-0_3_13-clt2011/; revision=51077
2011-03-16 22:34:40 +00:00
Colin Finck
93e878aefe Add the CLT2011 wallpaper (2/2)
svn path=/branches/ros-branch-0_3_13-clt2011/; revision=51076
2011-03-16 22:14:40 +00:00
Colin Finck
86ee618d32 Add the CLT2011 wallpaper (1/2)
svn path=/branches/ros-branch-0_3_13-clt2011/; revision=51075
2011-03-16 22:12:30 +00:00
Colin Finck
bca2d0d658 Change version to 0.3.13-CLT2011
svn path=/branches/ros-branch-0_3_13-clt2011/; revision=51074
2011-03-16 21:33:38 +00:00
Colin Finck
03dc76ef23 Merge 51053, 51069
svn path=/branches/ros-branch-0_3_13/; revision=51070
2011-03-16 16:57:58 +00:00
Colin Finck
43903288f4 Merge r51067
svn path=/branches/ros-branch-0_3_13/; revision=51068
2011-03-16 16:17:03 +00:00
Colin Finck
bdd21d454d Hackfix for Far 1.65.
Although the file manager didn't become fully usable with this patch, it works better than without and the patch doesn't seem to have negative side effects.

See issue #5503 for more details.

svn path=/branches/ros-branch-0_3_13/; revision=51066
2011-03-16 15:09:31 +00:00
Colin Finck
d4028b14b9 Merge 51058, 51062-51063
svn path=/branches/ros-branch-0_3_13/; revision=51064
2011-03-16 14:08:30 +00:00
Colin Finck
f7404c57db Merge r51046-r51048
svn path=/branches/ros-branch-0_3_13/; revision=51049
2011-03-14 14:58:36 +00:00
Colin Finck
867a0ff468 Merge r51043 and r51044
svn path=/branches/ros-branch-0_3_13/; revision=51045
2011-03-13 22:10:29 +00:00
Colin Finck
03c991f93b Revert r51031
[13:43]	<smiley1_>	fuck
[13:44]	<smiley1_>	INVALID_KERNEL_HANDLE ?!?
[13:45]	<smiley1_>	Caemyr: after my latest commit 5 tests end with this bugcheck

svn path=/branches/ros-branch-0_3_13/; revision=51040
2011-03-13 18:05:43 +00:00
Colin Finck
9cccfb8a2d Get rid of the "old boot method" entries.
In contrast to my previous commit, this should indeed be merged to Trunk, but please don't forget to get rid of the corresponding FreeLDR code as well then.

svn path=/branches/ros-branch-0_3_13/; revision=51038
2011-03-13 17:54:42 +00:00
Colin Finck
d2eb058174 - Change the version to 0.3.13
- Set "Angelus_02_ROSWP.bmp" as the default wallpaper
- Add a shortcut to RApps to the Desktop
- Change the boot logo to update the copyright year. Done with GIMP this time as it was one of the few tools to create proper 4-bit RLE files.
  This logo shall not be merged back to Trunk, because Aleksey wants to have another bitmap ready by the next release.

svn path=/branches/ros-branch-0_3_13/; revision=51037
2011-03-13 17:49:31 +00:00
Colin Finck
7223cdea1f Scale down the wallpaper to 800x600. For some reason, scaling down the image through the "Stretch" option of the Desktop doesn't seem to work.
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46087
2010-03-11 00:01:33 +00:00
Colin Finck
68a571a5eb Use a different wallpaper for CLT2010 (2/2)
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46082
2010-03-10 22:42:35 +00:00
Colin Finck
90d4bdb342 Use a different wallpaper for CLT2010 (1/2)
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46081
2010-03-10 22:39:41 +00:00
Colin Finck
fa76f34fd4 Merge 45535 (the big RosBE 1.5 compatibility patch)
This branch HAS to be built with the current RosBE version now.

svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46070
2010-03-10 19:45:47 +00:00
Colin Finck
b5b864a3c6 Combine the Step1/Step2 creation of the Hybrid-CD. Extra stuff can be added to the directory "hybridcd_extras" now.
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46066
2010-03-10 18:17:50 +00:00
Colin Finck
17cecb05e3 Update the root "readme.txt" of the CD and the "welcome.exe" app to show more options.
This is also stuff, which was mostly done by Andrew Greenwood for FOSDEM last year. I just changed it for our needs.

svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46065
2010-03-10 17:46:49 +00:00
Colin Finck
fc77cd5e6c - Add a script for creating a Hybrid-CD (combined Boot-CD & Live-CD).
Kudos for this go to Andrew Greenwood, I just scripted his way of creating the disc.
- Combining them also requires changing the Live-CD directory in the kernel to "live", which renders regular Live-CDs created in this tree unbootable.

svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46059
2010-03-10 16:05:55 +00:00
Colin Finck
3344531228 Merge 45730 (rapps link fix)
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46057
2010-03-10 14:33:36 +00:00
Colin Finck
5c260d2745 Backport the new boot and shutdown screen and slightly modify it for extra awesomeness! :-)
This includes:
- Merging 45269,45270,45614,45618,45619,45822,45966.
- Hardcoding NtProductWinNt instead of NtProductServer as the product type. I didn't merge the new code for this as I'm not sure about its dependencies.
- Changing 1.bmp and 6.bmp for CLT2010.

svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46055
2010-03-10 14:25:05 +00:00
Colin Finck
ccd44d9ac4 Change the copyright year as well.
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46032
2010-03-09 13:42:12 +00:00
Colin Finck
37c48ca11e Change version to 0.3.11-CLT2010
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46031
2010-03-09 13:27:53 +00:00
Colin Finck
ed469a00af Merge r44552
svn path=/branches/ros-branch-0_3_11/; revision=44553
2009-12-12 17:15:19 +00:00
Colin Finck
f2c93ea2b8 Here comes ReactOS "FOR WORKGROUPS" 0.3.11! :-)
svn path=/branches/ros-branch-0_3_11/; revision=44531
2009-12-10 23:19:12 +00:00
Colin Finck
1b51adc031 Revert to the old boot method for the release on request of Aleksey
svn path=/branches/ros-branch-0_3_11/; revision=44367
2009-12-02 20:02:07 +00:00
Aleksey Bragin
5911400ccc - Merge 44348 and 44349 to 0.3.11 branch.
svn path=/branches/ros-branch-0_3_11/; revision=44350
2009-12-01 21:36:23 +00:00
Aleksey Bragin
68d04648a4 - Merge 44301 (network revert).
svn path=/branches/ros-branch-0_3_11/; revision=44336
2009-11-30 21:52:07 +00:00
Colin Finck
0b321cfcbf Revert 43921 on demand of Aleksey
svn path=/branches/ros-branch-0_3_11/; revision=44316
2009-11-28 22:54:47 +00:00
Colin Finck
0127705606 Dmitry Gorbachev:
- Replace our Japanese "Systema" font added for releases by "Droid Sans Fallback" from the Android project.
  This font is licensed under Apache 2.0 license (notice included) and also offers us Chinese and Korean characters.

  You have to copy "DroidSansFallback.ttf" from http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts to "modules/optional".

svn path=/branches/ros-branch-0_3_11/; revision=44305
2009-11-28 15:04:15 +00:00
Colin Finck
79c56c5d7b Hack: Add the APPDATA variable to the environment created by userenv as it was done for previous releases.
svn path=/branches/ros-branch-0_3_11/; revision=44300
2009-11-28 00:29:52 +00:00
Colin Finck
9123974a75 Hack: Hackfix the HitTest problem in mstsc as it was done for previous releases
svn path=/branches/ros-branch-0_3_11/; revision=44299
2009-11-28 00:17:11 +00:00
Colin Finck
583c59f82e - Change the version to 0.3.11
- Set "Angelus_02_ROSWP.bmp" as the default wallpaper
- Add a shortcut to RApps to the Desktop

svn path=/branches/ros-branch-0_3_11/; revision=44298
2009-11-28 00:14:56 +00:00
351 changed files with 34498 additions and 56832 deletions

View File

@@ -0,0 +1,82 @@
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
IDR_MAINMENU MENU
BEGIN
POPUP "&Soubor"
BEGIN
MENUITEM "&Konec", IDC_EXIT
END
POPUP "&Akce"
BEGIN
MENUITEM "Tisk", IDC_PRINT, GRAYED
MENUITEM SEPARATOR
MENUITEM "Vlastnosti", IDC_PROP, GRAYED
MENUITEM SEPARATOR
MENUITEM "Nápověda", IDC_PROGHELP, GRAYED
END
POPUP "&Zobrazení"
BEGIN
MENUITEM "Zařízení podle typu", IDC_DEVBYTYPE, CHECKED
MENUITEM "Zařízení podle připojení", IDC_STATIC, GRAYED
MENUITEM "Prostředky podle typu", IDC_STATIC, GRAYED
MENUITEM "Prostředky podle připojení", IDC_STATIC, GRAYED
END
POPUP "Nápověda"
BEGIN
MENUITEM "Nápověda", IDC_PROGHELP
MENUITEM "O programu", IDC_ABOUT
END
END
IDR_POPUP MENU
BEGIN
POPUP "popup"
BEGIN
MENUITEM "Vlastnosti", IDC_PROP, GRAYED
MENUITEM SEPARATOR
MENUITEM "Nápověda", IDC_PROGHELP
END
END
IDD_ABOUTBOX DIALOGEX 22,16,190,182
CAPTION "O Správci zařízení"
FONT 8,"MS Shell Dlg",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
LTEXT "Správce zařízení v0.1\nCopyright (C) 2006\nby Ged Murphy (gedmurphy@gmail.com)", IDC_STATIC, 48, 7, 130, 30
PUSHBUTTON "Zavřít", IDOK, 75, 162, 44, 15
ICON IDI_MAIN_ICON, IDC_STATIC, 10, 10, 7, 30
EDITTEXT IDC_LICENSE_EDIT, 8, 44, 174, 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."
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOOLTIP_PROP "Vlastnosti"
IDS_TOOLTIP_REFRESH "Obnovit"
IDS_TOOLTIP_HELP "Nápověda"
IDS_TOOLTIP_EXIT "Konec"
END
/* Hints */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPNAME "ReactOS Správce zařízení"
IDS_HINT_BLANK " "
IDS_HINT_EXIT " Ukončit pogram."
IDS_HINT_REFRESH " Obnovit seznam zařízení."
IDS_HINT_PROP " Zobrazit kartu vlastností pro vybranou položku."
IDS_HINT_HELP " Zobrazit nápovědu."
IDS_HINT_ABOUT " O ReactOS Správci zařízení."
IDS_HINT_SYS_RESTORE " Obnoví normální velikost okna."
IDS_HINT_SYS_MOVE " Přesune okno."
IDS_HINT_SYS_SIZE " Změní velikost okna."
IDS_HINT_SYS_MINIMIZE " Minimalizuje okno."
IDS_HINT_SYS_MAXIMIZE " Maximalizuje okno."
IDS_HINT_SYS_CLOSE " Zavře toto okno."
END

View File

@@ -15,6 +15,7 @@ IDB_EXIT BITMAP DISCARDABLE "res/exit.bmp"
// UTF-8
#pragma code_page(65001)
#include "lang/bg-BG.rc"
#include "lang/cs-CZ.rc"
#include "lang/de-DE.rc"
#include "lang/el-GR.rc"
#include "lang/en-US.rc"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

After

Width:  |  Height:  |  Size: 822 B

View File

@@ -11,6 +11,12 @@
#include <windows.h>
#include "definitions.h"
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Paint\0"
#define REACTOS_STR_INTERNAL_NAME "mspaint\0"
#define REACTOS_STR_ORIGINAL_FILENAME "mspaint.exe\0"
#include <reactos/version.rc>
#include "icons.rc"
// UTF-8

View File

@@ -27,7 +27,6 @@ HINSTANCE hInst;
static VOID ReLoadGeneralPage(PINFO pInfo);
static VOID ReLoadDisplayPage(PINFO pInfo);
static VOID
DoOpenFile(PINFO pInfo)
{
@@ -98,6 +97,61 @@ OnTabWndSelChange(PINFO pInfo)
}
static VOID
LoadUsernameHint(HWND hDlg, INT iCur)
{
WCHAR szValue[MAXVALUE+1000];
WCHAR szName[MAX_KEY_NAME];
WCHAR szKeyName[] = L"Software\\Microsoft\\Terminal Server Client\\Servers";
PWCHAR lpAddress;
HKEY hKey;
HKEY hSubKey;
LONG lRet = ERROR_SUCCESS;
INT iIndex = 0;
DWORD dwSize = MAX_KEY_NAME;
SendDlgItemMessageW(hDlg, IDC_SERVERCOMBO, CB_GETLBTEXT, (WPARAM)iCur, (LPARAM)szValue);
/* remove possible port number */
lpAddress = wcstok(szValue, L":");
if (lpAddress == NULL)
return;
if (RegOpenKeyExW(HKEY_CURRENT_USER,
szKeyName,
0,
KEY_READ,
&hKey) == ERROR_SUCCESS)
{
while (lRet == ERROR_SUCCESS)
{
dwSize = MAX_KEY_NAME;
lRet = RegEnumKeyExW(hKey, iIndex, szName, &dwSize, NULL, NULL, NULL, NULL);
if(lRet == ERROR_SUCCESS && wcscmp(szName, lpAddress) == 0)
{
if(RegOpenKeyExW(hKey, szName, 0, KEY_READ, &hSubKey) != ERROR_SUCCESS)
break;
dwSize = MAXVALUE;
if(RegQueryValueExW(hKey, L"UsernameHint", 0, NULL, (LPBYTE)szValue, &dwSize) == ERROR_SUCCESS)
{
SetDlgItemTextW(hDlg, IDC_NAMEEDIT, szValue);
}
RegCloseKey(hSubKey);
break;
}
iIndex++;
}
RegCloseKey(hKey);
}
}
static VOID
FillServerAddesssCombo(PINFO pInfo)
{
@@ -107,6 +161,7 @@ FillServerAddesssCombo(PINFO pInfo)
LONG ret = ERROR_SUCCESS;
DWORD size;
INT i = 0;
BOOL found = FALSE;
if (RegOpenKeyExW(HKEY_CURRENT_USER,
KeyName,
@@ -152,6 +207,7 @@ FillServerAddesssCombo(PINFO pInfo)
CB_ADDSTRING,
0,
(LPARAM)lpAddress);
found = TRUE;
}
HeapFree(GetProcessHeap(),
@@ -177,6 +233,17 @@ FillServerAddesssCombo(PINFO pInfo)
0,
(LPARAM)Name);
}
if(found)
{
SendDlgItemMessageW(pInfo->hGeneralPage,
IDC_SERVERCOMBO,
CB_SETCURSEL,
0,
0);
LoadUsernameHint(pInfo->hGeneralPage, 0);
}
}
@@ -194,6 +261,16 @@ ReLoadGeneralPage(PINFO pInfo)
IDC_SERVERCOMBO,
lpText);
}
/* set user name */
lpText = GetStringFromSettings(pInfo->pRdpSettings,
L"username");
if (lpText)
{
SetDlgItemTextW(pInfo->hGeneralPage,
IDC_NAMEEDIT,
lpText);
}
}
@@ -279,15 +356,18 @@ GeneralDlgProc(HWND hDlg,
CB_GETCURSEL,
0,
0);
cur++;
last = SendDlgItemMessageW(hDlg,
IDC_SERVERCOMBO,
CB_GETCOUNT,
0,
0);
if (cur == last)
if ((cur + 1) == last)
MessageBoxW(hDlg, L"SMB is not yet supported", L"RDP error", MB_ICONERROR);
else
{
LoadUsernameHint(hDlg, cur);
}
}
break;
@@ -455,7 +535,7 @@ AddDisplayDevice(PINFO pInfo, PDISPLAY_DEVICEW DisplayDevice)
newEntry->Resolutions = HeapAlloc(GetProcessHeap(),
0,
ResolutionsCount * sizeof(RESOLUTION_INFO));
ResolutionsCount * (sizeof(RESOLUTION_INFO) + 1));
if (!newEntry->Resolutions) goto ByeBye;
newEntry->ResolutionsCount = ResolutionsCount;
@@ -473,6 +553,11 @@ AddDisplayDevice(PINFO pInfo, PDISPLAY_DEVICEW DisplayDevice)
i++;
}
}
/* fullscreen */
newEntry->Resolutions[i].dmPelsWidth = GetSystemMetrics(SM_CXSCREEN);
newEntry->Resolutions[i].dmPelsHeight = GetSystemMetrics(SM_CYSCREEN);
descriptionSize = (wcslen(DisplayDevice->DeviceString) + 1) * sizeof(WCHAR);
description = HeapAlloc(GetProcessHeap(), 0, descriptionSize);
if (!description) goto ByeBye;
@@ -677,22 +762,36 @@ ReLoadDisplayPage(PINFO pInfo)
{
DWORD index;
INT width, height, pos = 0;
INT bpp, num, i;
INT bpp, num, i, screenmode;
BOOL bSet = FALSE;
/* get fullscreen info */
screenmode = GetIntegerFromSettings(pInfo->pRdpSettings, L"screen mode id");
/* set trackbar position */
width = GetIntegerFromSettings(pInfo->pRdpSettings, L"desktopwidth");
height = GetIntegerFromSettings(pInfo->pRdpSettings, L"desktopheight");
if (width != -1 && height != -1)
{
for (index = 0; index < pInfo->CurrentDisplayDevice->ResolutionsCount; index++)
if(screenmode == 2)
{
if (pInfo->CurrentDisplayDevice->Resolutions[index].dmPelsWidth == width &&
pInfo->CurrentDisplayDevice->Resolutions[index].dmPelsHeight == height)
pos = SendDlgItemMessageW(pInfo->hDisplayPage,
IDC_GEOSLIDER,
TBM_GETRANGEMAX,
0,
0);
}
else
{
for (index = 0; index < pInfo->CurrentDisplayDevice->ResolutionsCount; index++)
{
pos = index;
break;
if (pInfo->CurrentDisplayDevice->Resolutions[index].dmPelsWidth == width &&
pInfo->CurrentDisplayDevice->Resolutions[index].dmPelsHeight == height)
{
pos = index;
break;
}
}
}
}

View File

@@ -11,6 +11,7 @@ BEGIN
LTEXT "Сървър:",IDC_STATIC,37,41,30,8
LTEXT "Потребител:",IDC_STATIC,37,58,48,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Запис",IDC_SAVE,67,139,50,14
PUSHBUTTON "Запис като...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "Отваряне...",IDC_OPEN,177,139,50,14

View File

@@ -11,6 +11,7 @@ BEGIN
LTEXT "Servidor:",IDC_STATIC,47,41,25,8
LTEXT "Nom d'usuari:",IDC_STATIC,47,58,38,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Desa",IDC_SAVE,67,139,50,14
PUSHBUTTON "Desa com...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "Obre...",IDC_OPEN,177,139,50,14

View File

@@ -0,0 +1,64 @@
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
IDD_GENERAL DIALOGEX 0, 0, 242, 175
STYLE DS_SHELLFONT | WS_CHILD
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
GROUPBOX "Přihlašovací údaje",IDC_STATIC,7,7,228,89
GROUPBOX "Nastavení spojení",IDC_STATIC,7,103,228,65
ICON "", IDC_LOGONICON, 15,19,20,20
LTEXT "Zadejte adresu serveru",IDC_STATIC,47,24,81,8
LTEXT "Server:",IDC_STATIC,47,41,25,8
LTEXT "Uživatelské jméno:",IDC_STATIC,47,58,60,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Uložit",IDC_SAVE,67,139,50,14
PUSHBUTTON "Uložit jako...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "Otevřít...",IDC_OPEN,177,139,50,14
ICON "", IDC_CONNICON, 16,114,20,20
LTEXT "Uložit současné nastavení nebo načíst nastavení ze souboru",IDC_STATIC,50,115,172,20
END
IDD_DISPLAY DIALOGEX 0, 0, 242, 175
STYLE DS_SHELLFONT | WS_CHILD
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
GROUPBOX "Velikost vzdálené plochy",IDC_STATIC,7,7,228,68
GROUPBOX "Barvy",IDC_STATIC,7,83,228,85
ICON "", IDC_REMICON, 15,19,20,20
ICON "", IDC_COLORSICON, 15,98,20,20
LTEXT "Nastavením posuvníku do krajní pravé polohy zvolíte režim celé obrazovky",IDC_STATIC,53,22,175,21
CONTROL "", IDC_GEOSLIDER, "msctls_trackbar32", TBS_AUTOTICKS | WS_TABSTOP, 56, 42, 124, 17
COMBOBOX IDC_BPPCOMBO,56,102,128,80, CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
CONTROL "",IDC_COLORIMAGE,"Static",SS_OWNERDRAW | SS_SUNKEN, 56,121,127,10
LTEXT "Poznámka: Toto nastavení může být změněno nastavením na serveru",IDC_STATIC,56,143,165,18
LTEXT "Méně",IDC_STATIC,35,42,16,8
LTEXT "Více",IDC_STATIC,189,42,17,8
LTEXT "", IDC_SETTINGS_RESOLUTION_TEXT, 56, 62, 120, 10, SS_CENTER
END
IDD_CONNECTDIALOG DIALOGEX 0, 0, 260, 262
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Připojení ke vzdálené ploše"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "Připojit",IDOK,147,245,50,14
PUSHBUTTON "Storno",IDCANCEL,203,245,50,14
CONTROL "",IDC_TAB,"SysTabControl32",0x0,7,50,246,190
END
STRINGTABLE
BEGIN
IDS_TAB_GENERAL "Obecné"
IDS_TAB_DISPLAY "Zobrazení"
IDS_256COLORS "256 Barev"
IDS_HIGHCOLOR15 "32,768 Barev (15 bit)"
IDS_HIGHCOLOR16 "65,536 Barev (16 bit)"
IDS_HIGHCOLOR24 "16,777,216 Barev (24 bit)"
IDS_PIXEL "%lux%lu Pixelů"
IDS_FULLSCREEN "Celá obrazovka"
IDS_BROWSESERVER "<Najít další...>"
IDS_HEADERTEXT1 "Vzdálená plocha"
IDS_HEADERTEXT2 "Připojení"
END

View File

@@ -11,6 +11,7 @@ BEGIN
LTEXT "Server:",IDC_STATIC,47,41,25,8
LTEXT "Benutzername:",IDC_STATIC,47,58,50,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Speichern",IDC_SAVE,67,139,50,14
PUSHBUTTON "Speichern unter",IDC_SAVEAS,120,139,55,14
PUSHBUTTON "Öffnen...",IDC_OPEN,177,139,50,14

View File

@@ -11,6 +11,7 @@ BEGIN
LTEXT "Διακομιστής:",IDC_STATIC,47,41,30,8
LTEXT "Όνομα χρήστη:",IDC_STATIC,47,58,38,8
COMBOBOX IDC_SERVERCOMBO,89,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Αποθήκευση",IDC_SAVE,67,139,50,14
PUSHBUTTON "Αποθήκευση Ως...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "Άνοιγμα...",IDC_OPEN,177,139,50,14

View File

@@ -11,6 +11,7 @@ BEGIN
LTEXT "Server:",IDC_STATIC,47,41,25,8
LTEXT "User name:",IDC_STATIC,47,58,38,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Save",IDC_SAVE,67,139,50,14
PUSHBUTTON "Save As...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "Open...",IDC_OPEN,177,139,50,14

View File

@@ -16,6 +16,7 @@ BEGIN
LTEXT "Servidor:",IDC_STATIC,47,41,28,8
LTEXT "Nombre de usuario:",IDC_STATIC,47,58,70,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Guardar",IDC_SAVE,60,139,50,14 //67
PUSHBUTTON "Guardar Como...",IDC_SAVEAS,115,139,58,14 //123,50
PUSHBUTTON "Abrir...",IDC_OPEN,177,139,50,14

View File

@@ -11,6 +11,7 @@ BEGIN
LTEXT "Serveur:",IDC_STATIC,47,41,25,8
LTEXT "Nom d'utilisateur:",IDC_STATIC,47,58,38,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Enregistrer",IDC_SAVE,67,139,50,14
PUSHBUTTON "Enregistrer Sous...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "Ouvrir...",IDC_OPEN,177,139,50,14

View File

@@ -11,6 +11,7 @@ BEGIN
LTEXT "Computer:",IDC_STATIC,47,41,35,8
LTEXT "Nome utente:",IDC_STATIC,47,58,68,8
COMBOBOX IDC_SERVERCOMBO,90,39,136,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Salva",IDC_SAVE,43,139,58,14
PUSHBUTTON "Salva con nome",IDC_SAVEAS,107,139,58,14
PUSHBUTTON "Apri",IDC_OPEN,169,139,58,14

View File

@@ -11,6 +11,7 @@ BEGIN
LTEXT "サーバ:",IDC_STATIC,47,41,25,8
LTEXT "ユーザー名:",IDC_STATIC,47,58,38,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "保存",IDC_SAVE,67,139,50,14
PUSHBUTTON "名前を付けて保存...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "開く...",IDC_OPEN,177,139,50,14

View File

@@ -15,6 +15,7 @@ BEGIN
LTEXT "서버 주소:",IDC_STATIC,47,41,25,8
LTEXT "사용자 이름:",IDC_STATIC,47,58,38,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "저장",IDC_SAVE,67,139,50,14
PUSHBUTTON "다른 이름으로 저장...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "열기...",IDC_OPEN,177,139,50,14

View File

@@ -13,6 +13,7 @@ BEGIN
LTEXT "Serveris:",IDC_STATIC,47,41,30,8
LTEXT "Vartotojo vardas:",IDC_STATIC,47,58,60,8
COMBOBOX IDC_SERVERCOMBO,107,39,113,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Saugoti",IDC_SAVE,67,139,50,14
PUSHBUTTON "Saugoti kaip...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "Atidaryti...",IDC_OPEN,177,139,50,14

View File

@@ -11,6 +11,7 @@ BEGIN
LTEXT "Server:",IDC_STATIC,47,41,25,8
LTEXT "Brukernavn:",IDC_STATIC,47,58,38,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Lagre",IDC_SAVE,67,139,50,14
PUSHBUTTON "Lagre som...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "Åpne...",IDC_OPEN,177,139,50,14

View File

@@ -21,6 +21,7 @@ BEGIN
LTEXT "Serwer:",IDC_STATIC,39,42,29,8
LTEXT "Nazwa użytkownika:",IDC_STATIC,39,57,42,18
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Zapisz",IDC_SAVE,67,139,50,14
PUSHBUTTON "Zapisz jako...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "Otwórz...",IDC_OPEN,177,139,50,14

View File

@@ -18,6 +18,7 @@ BEGIN
LTEXT "Server:", IDC_STATIC,47,41,25,8
LTEXT "Nume utilizator:", IDC_STATIC,47,58,58,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Pă&strează", IDC_SAVE,57,139,50,14
PUSHBUTTON "&Păstrare în…", IDC_SAVEAS,112,139,60,14
PUSHBUTTON "&Deschidere…", IDC_OPEN,177,139,50,14

View File

@@ -11,6 +11,7 @@ BEGIN
LTEXT "Сервер:",IDC_STATIC,52,41,31,8
LTEXT "Имя пользователя:",IDC_STATIC,15,58,67,8
COMBOBOX IDC_SERVERCOMBO,86,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Сохранить",IDC_SAVE,49,139,50,14
PUSHBUTTON "Сохранить как...",IDC_SAVEAS,103,139,70,14
PUSHBUTTON "Открыть...",IDC_OPEN,177,139,50,14

View File

@@ -15,6 +15,7 @@ BEGIN
LTEXT "Server:",IDC_STATIC,47,41,25,8
LTEXT "Používateľské meno:",IDC_STATIC,47,58,38,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "&Uložiť",IDC_SAVE,67,139,50,14
PUSHBUTTON "Uložiť &ako...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "&Otvoriť...",IDC_OPEN,177,139,50,14

View File

@@ -18,6 +18,7 @@ BEGIN
LTEXT "Server:",IDC_STATIC,47,41,25,8
LTEXT "Användarnamn:",IDC_STATIC,47,58,38,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Spara",IDC_SAVE,67,139,50,14
PUSHBUTTON "Spara som...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "Öppna...",IDC_OPEN,177,139,50,14

View File

@@ -19,6 +19,7 @@ BEGIN
LTEXT "Сервер:",IDC_STATIC,47,41,27,8
LTEXT "Користувач:",IDC_STATIC,47,58,41,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "Зберегти",IDC_SAVE,67,139,50,14
PUSHBUTTON "Зберегти як...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "Відкрити...",IDC_OPEN,177,139,50,14

View File

@@ -15,6 +15,7 @@ BEGIN
LTEXT "服务器:",IDC_STATIC,47,41,25,8
LTEXT "用户名:",IDC_STATIC,47,58,38,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "保存",IDC_SAVE,67,139,50,14
PUSHBUTTON "另存为...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "打开...",IDC_OPEN,177,139,50,14

View File

@@ -18,6 +18,7 @@ BEGIN
LTEXT "伺服器:",IDC_STATIC,47,41,25,8
LTEXT "用戶名:",IDC_STATIC,47,58,38,8
COMBOBOX IDC_SERVERCOMBO,79,39,141,150,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_NAMEEDIT, 110, 55, 110, 14, WS_TABSTOP | ES_AUTOHSCROLL
PUSHBUTTON "儲存",IDC_SAVE,67,139,50,14
PUSHBUTTON "另存為...",IDC_SAVEAS,123,139,50,14
PUSHBUTTON "開啟...",IDC_OPEN,177,139,50,14

View File

@@ -17,7 +17,7 @@
#define MAXKEY 256
#define MAXVALUE 256
#define NUM_SETTINGS 4
#define NUM_SETTINGS 6
extern LPWSTR lpSettings[];
typedef struct _SETTINGS

View File

@@ -16,6 +16,7 @@
#define IDC_GEOSLIDER 1012
#define IDC_BPPCOMBO 1013
#define IDC_SETTINGS_RESOLUTION_TEXT 1014
#define IDC_NAMEEDIT 1015
#define IDC_LOGONICON 1016
#define IDC_CONNICON 1017

View File

@@ -16,6 +16,7 @@ IDB_SPECT BITMAP "res/spectrum.bmp"
#pragma code_page(65001)
#include "lang/bg-BG.rc"
#include "lang/ca-ES.rc"
#include "lang/cs-CZ.rc"
#include "lang/de-DE.rc"
#include "lang/el-GR.rc"
#include "lang/en-US.rc"

View File

@@ -8,6 +8,8 @@ LPWSTR lpSettings[NUM_SETTINGS] =
L"desktopheight",
L"session bpp",
L"full address",
L"username",
L"screen mode id",
};
VOID
@@ -27,7 +29,7 @@ SaveAllSettings(PINFO pInfo)
szValue);
}
/* resolution */
/* resolution and fullscreen*/
ret = SendDlgItemMessage(pInfo->hDisplayPage,
IDC_GEOSLIDER,
TBM_GETPOS,
@@ -35,6 +37,9 @@ SaveAllSettings(PINFO pInfo)
0);
if (ret != -1)
{
SetIntegerToSettings(pInfo->pRdpSettings,
L"screen mode id",
(ret == SendDlgItemMessageW(pInfo->hDisplayPage, IDC_GEOSLIDER, TBM_GETRANGEMAX, 0, 0)) ? 2 : 1);
SetIntegerToSettings(pInfo->pRdpSettings,
L"desktopwidth",
pInfo->DisplayDeviceList->Resolutions[ret].dmPelsWidth);
@@ -63,6 +68,17 @@ SaveAllSettings(PINFO pInfo)
ret);
}
}
/* user name */
if (GetDlgItemText(pInfo->hGeneralPage,
IDC_NAMEEDIT,
szValue,
MAXVALUE))
{
SetStringToSettings(pInfo->pRdpSettings,
L"username",
szValue);
}
}
@@ -230,6 +246,7 @@ ParseSettings(PRDPSETTINGS pRdpSettings,
{
LPWSTR lpStr = lpBuffer;
WCHAR szSeps[] = L":\r\n";
WCHAR szNewline[] = L"\r\n";
LPWSTR lpToken;
BOOL bFound;
INT i;
@@ -258,7 +275,7 @@ ParseSettings(PRDPSETTINGS pRdpSettings,
else if (lpToken[0] == L's')
{
pRdpSettings->pSettings[i].Type = lpToken[0];
lpToken = wcstok(NULL, szSeps);
lpToken = wcstok(NULL, szNewline);
if (lpToken != NULL)
wcscpy(pRdpSettings->pSettings[i].Value.s, lpToken);
}
@@ -268,10 +285,7 @@ ParseSettings(PRDPSETTINGS pRdpSettings,
/* move past the type and value */
if (!bFound)
{
lpToken = wcstok(NULL, szSeps);
lpToken = wcstok(NULL, szSeps);
}
lpToken = wcstok(NULL, szNewline);
/* move to next key */
lpToken = wcstok(NULL, szSeps);

View File

@@ -958,6 +958,56 @@ mi_paint_rect(char * data, int width, int height, int x, int y, int cx, int cy)
}
static INT
GetPortNumber(PCHAR szAddress)
{
PCHAR szPort;
INT iPort = TCP_PORT_RDP;
szPort = strtok(szAddress, ":");
if (szPort != NULL)
{
szPort = strtok(NULL, ":");
if (szPort != NULL)
{
iPort = atoi(szPort);
if (iPort <= 0 || iPort > 0xFFFF)
iPort = TCP_PORT_RDP;
}
}
return iPort;
}
static VOID
SetDomainAndUsername(PCHAR pName)
{
PCHAR pDomain;
PCHAR pUsername;
strcpy(g_domain, "");
strcpy(g_username, "");
pDomain = strtok(pName, "\\");
if(pDomain == NULL)
return;
pUsername = strtok(NULL, "\\");
if(pUsername == NULL)
{
strcpy(g_username, pDomain);
return;
}
strcpy(g_username, pUsername);
strcpy(g_domain, pDomain);
return;
}
static BOOL
ParseCommandLine(LPWSTR lpCmdLine,
@@ -977,8 +1027,10 @@ ParseCommandLine(LPWSTR lpCmdLine,
}
else
{
/* default to 16bpp */
/* default to screen size, 16bpp */
SetIntegerToSettings(pRdpSettings, L"session bpp", 16);
SetIntegerToSettings(pRdpSettings, L"desktopwidth", GetSystemMetrics(SM_CXSCREEN));
SetIntegerToSettings(pRdpSettings, L"desktopheight", GetSystemMetrics(SM_CYSCREEN));
lpToken = wcstok(lpStr, szSeps);
while (lpToken)
@@ -1006,6 +1058,10 @@ ParseCommandLine(LPWSTR lpCmdLine,
lpToken += 2;
SetIntegerToSettings(pRdpSettings, L"desktopheight", _wtoi(lpToken));
}
else if (*lpToken == L'f')
{
SetIntegerToSettings(pRdpSettings, L"screen mode id", 2);
}
lpToken = wcstok(NULL, szSeps);
}
@@ -1051,18 +1107,29 @@ wWinMain(HINSTANCE hInstance,
uni_to_str(szValue, GetStringFromSettings(pRdpSettings, L"full address"));
/* GetPortNumber also removes possible trailing port number from address */
g_tcp_port_rdp = GetPortNumber(szValue);
strcpy(g_servername, szValue);
//g_port = 3389;
strcpy(g_username, "");
uni_to_str(szValue, GetStringFromSettings(pRdpSettings, L"username"));
SetDomainAndUsername(szValue);
strcpy(g_password, "");
g_server_depth = GetIntegerFromSettings(pRdpSettings, L"session bpp");
if (g_server_depth > 16) g_server_depth = 16; /* hack, we don't support 24bpp yet */
g_width = GetIntegerFromSettings(pRdpSettings, L"desktopwidth");
g_height = GetIntegerFromSettings(pRdpSettings, L"desktopheight");
g_screen_width = GetSystemMetrics(SM_CXSCREEN);
g_screen_height = GetSystemMetrics(SM_CYSCREEN);
g_xoff = GetSystemMetrics(SM_CXEDGE) * 2;
g_yoff = GetSystemMetrics(SM_CYCAPTION) + GetSystemMetrics(SM_CYEDGE) * 2;
g_width = GetIntegerFromSettings(pRdpSettings, L"desktopwidth");
g_height = GetIntegerFromSettings(pRdpSettings, L"desktopheight");
if (GetIntegerFromSettings(pRdpSettings, L"screen mode id") == 2)
{
g_fullscreen = 1;
g_xoff = 0;
g_yoff = 0;
}
else
{
g_xoff = GetSystemMetrics(SM_CXEDGE) * 2;
g_yoff = GetSystemMetrics(SM_CYCAPTION) + GetSystemMetrics(SM_CYEDGE) * 2;
}
ui_main();
ret = 0;

View File

@@ -0,0 +1 @@
../../../output-MinGW-i386/host-tools/tools/cabman/cabman -M raw -S rappmgr.cab rapps/*.txt

View File

@@ -2,59 +2,59 @@
[Section]
Name = Mozilla Firefox 3.6
Version = 3.6.24
Version = 3.6.25
Licence = MPL/GPL/LGPL
Description = The most popular and one of the best free Web Browsers out there.
Size = 8.3M
Size = 7.5M
Category = 5
URLSite = http://www.mozilla.com/en-US/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/en-US/Firefox%20Setup%203.6.24.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/en-US/Firefox%20Setup%203.6.25.exe
CDPath = none
[Section.0407]
Description = Der populärste und einer der besten freien Webbrowser.
Size = 8.1M
Size = 7.4M
URLSite = http://www.mozilla-europe.org/de/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/de/Firefox%20Setup%203.6.24.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/de/Firefox%20Setup%203.6.25.exe
[Section.040a]
Description = El más popular y uno de los mejores navegadores web gratuitos que hay.
Size = 8.1M
Size = 7.4M
URLSite = http://www.mozilla-europe.org/es/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/es-ES/Firefox%20Setup%203.6.24.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/es-ES/Firefox%20Setup%203.6.25.exe
[Section.040c]
Description = Le navigateur web gratuit le plus populaire et l'un des meilleurs.
Size = 8.1M
Size = 7.6M
URLSite = http://www.mozilla-europe.org/fr/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/fr/Firefox%20Setup%203.6.24.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/fr/Firefox%20Setup%203.6.25.exe
[Section.0414]
Description = Mest populære og best også gratis nettleserene der ute.
Size = 8.1M
Size = 7.4M
URLSite = http://www.mozilla-europe.org/no/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/nb-NO/Firefox%20Setup%203.6.24.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/nb-NO/Firefox%20Setup%203.6.25.exe
[Section.0415]
Description = Najpopularniejsza i jedna z najlepszych darmowych przeglądarek internetowych.
Size = 9.0M
Size = 8.2M
URLSite = http://www.mozilla-europe.org/pl/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/pl/Firefox%20Setup%203.6.24.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/pl/Firefox%20Setup%203.6.25.exe
[Section.0419]
Description = Один из самых популярных и лучших бесплатных браузеров.
Size = 8.5M
Size = 7.8M
URLSite = http://www.mozilla-europe.org/ru/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/ru/Firefox%20Setup%203.6.24.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/ru/Firefox%20Setup%203.6.25.exe
[Section.041b]
Description = Najpopulárnejší a jeden z najlepších slobodný webových prehliadačov.
Size = 8.5MB
Size = 7.8MB
URLSite = http://www.mozilla-europe.org/sk/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/sk/Firefox%20Setup%203.6.24.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/sk/Firefox%20Setup%203.6.25.exe
[Section.0422]
Description = Найпопулярніший та один з кращих безплатних веб-браузерів.
Size = 8.5M
Size = 7.7M
URLSite = http://www.mozilla-europe.org/uk/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/uk/Firefox%20Setup%203.6.24.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.6/win32/uk/Firefox%20Setup%203.6.25.exe

View File

@@ -1,60 +1,60 @@
; UTF-8
[Section]
Name = Mozilla Firefox 8
Version = 8.0.1
Name = Mozilla Firefox 9
Version = 9.0.1
Licence = MPL/GPL/LGPL
Description = The most popular and one of the best free Web Browsers out there.
Size = 14.1M
Size = 14.6M
Category = 5
URLSite = http://www.mozilla.com/en-US/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/8.0.1/win32/en-US/Firefox%20Setup%208.0.1.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-9.0/win32/en-US/Firefox%20Setup%209.0.1.exe
CDPath = none
[Section.0407]
Description = Der populärste und einer der besten freien Webbrowser.
Size = 13.9M
Size = 14.4M
URLSite = http://www.mozilla-europe.org/de/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/8.0.1/win32/de/Firefox%20Setup%208.0.1.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-9.0/win32/de/Firefox%20Setup%209.0.1.exe
[Section.040a]
Description = El más popular y uno de los mejores navegadores web gratuitos que hay.
Size = 13.9M
Size = 14.4M
URLSite = http://www.mozilla-europe.org/es/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/8.0.1/win32/es-ES/Firefox%20Setup%208.0.1.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-9.0/win32/es-ES/Firefox%20Setup%209.0.1.exe
[Section.040c]
Description = Le navigateur web gratuit le plus populaire et l'un des meilleurs.
Size = 14.2M
Size = 14.7M
URLSite = http://www.mozilla-europe.org/fr/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/8.0.1/win32/fr/Firefox%20Setup%208.0.1.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-9.0/win32/fr/Firefox%20Setup%209.0.1.exe
[Section.0414]
Description = Mest populære og best også gratis nettleserene der ute.
Size = 13.9M
Size = 14.4M
URLSite = http://www.mozilla-europe.org/no/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/8.0.1/win32/nb-NO/Firefox%20Setup%208.0.1.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-9.0/win32/nb-NO/Firefox%20Setup%209.0.1.exe
[Section.0415]
Description = Najpopularniejsza i jedna z najlepszych darmowych przeglądarek internetowych.
Size = 14.8M
Size = 15.3M
URLSite = http://www.mozilla-europe.org/pl/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/8.0.1/win32/pl/Firefox%20Setup%208.0.1.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-9.0/win32/pl/Firefox%20Setup%209.0.1.exe
[Section.0419]
Description = Один из самых популярных и лучших бесплатных браузеров.
Size = 14.3M
Size = 14.8M
URLSite = http://www.mozilla-europe.org/ru/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/8.0.1/win32/ru/Firefox%20Setup%208.0.1.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-9.0/win32/ru/Firefox%20Setup%209.0.1.exe
[Section.041b]
Description = Najpopulárnejší a jeden z najlepších slobodný webových prehliadačov.
Size = 14.6MB
Size = 15.1MB
URLSite = http://www.mozilla-europe.org/sk/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/8.0.1/win32/sk/Firefox%20Setup%208.0.1.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-9.0/win32/sk/Firefox%20Setup%209.0.1.exe
[Section.0422]
Description = Найпопулярніший та один з кращих безплатних веб-браузерів.
Size = 14.3M
Size = 14.8M
URLSite = http://www.mozilla-europe.org/uk/
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/8.0.1/win32/uk/Firefox%20Setup%208.0.1.exe
URLDownload = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-9.0/win32/uk/Firefox%20Setup%209.0.1.exe

View File

@@ -19,6 +19,12 @@
#include "wordpad.h"
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS WordPad\0"
#define REACTOS_STR_INTERNAL_NAME "wordpad\0"
#define REACTOS_STR_ORIGINAL_FILENAME "wordpad.exe\0"
#include <reactos/version.rc>
MAINACCELTABLE ACCELERATORS
BEGIN
"1", ID_BACK_1, VIRTKEY, CONTROL

View File

@@ -267,7 +267,9 @@ PLOGFILE LoadLogFile(HKEY hKey, WCHAR * LogName)
DWORD MaxValueLen, ValueLen, Type, ExpandedLen;
WCHAR *Buf = NULL, *Expanded = NULL;
LONG Result;
PLOGFILE pLogf;
PLOGFILE pLogf = NULL;
UNICODE_STRING FileName;
NTSTATUS Status;
DPRINT("LoadLogFile: %S\n", LogName);
@@ -314,13 +316,21 @@ PLOGFILE LoadLogFile(HKEY hKey, WCHAR * LogName)
ExpandEnvironmentStrings(Buf, Expanded, ExpandedLen);
if (!RtlDosPathNameToNtPathName_U(Expanded, &FileName,
NULL, NULL))
{
DPRINT1("Can't convert path!\n");
HeapFree(MyHeap, 0, Expanded);
HeapFree(MyHeap, 0, Buf);
return NULL;
}
DPRINT("%S -> %S\n", Buf, Expanded);
pLogf = LogfCreate(LogName, Expanded);
if (pLogf == NULL)
Status = LogfCreate(&pLogf, LogName, &FileName);
if (!NT_SUCCESS(Status))
{
DPRINT1("Failed to create %S!\n", Expanded);
DPRINT1("Failed to create %S! (Status %08lx)\n", Expanded, Status);
}
HeapFree(MyHeap, 0, Buf);
@@ -495,7 +505,7 @@ VOID PRINT_HEADER(PEVENTLOGHEADER header)
DPRINT("Flags: ");
if (header->Flags & ELF_LOGFILE_HEADER_DIRTY) DPRINT("ELF_LOGFILE_HEADER_DIRTY");
if (header->Flags & ELF_LOGFILE_HEADER_WRAP) DPRINT("| ELF_LOGFILE_HEADER_WRAP ");
if (header->Flags & ELF_LOGGFILE_LOGFULL_WRITTEN) DPRINT("| ELF_LOGGFILE_LOGFULL_WRITTEN ");
if (header->Flags & ELF_LOGFILE_LOGFULL_WRITTEN) DPRINT("| ELF_LOGFILE_LOGFULL_WRITTEN ");
if (header->Flags & ELF_LOGFILE_ARCHIVE_SET) DPRINT("| ELF_LOGFILE_ARCHIVE_SET ");
DPRINT("\n");
}

View File

@@ -19,7 +19,7 @@
#include <lpcfuncs.h>
#include <rtlfuncs.h>
#include <obfuncs.h>
#include <iotypes.h>
#include <iofuncs.h>
#include <debug.h>
#include "eventlogrpc_s.h"
@@ -42,7 +42,7 @@ typedef struct _IO_ERROR_LPC
*/
#define ELF_LOGFILE_HEADER_DIRTY 1
#define ELF_LOGFILE_HEADER_WRAP 2
#define ELF_LOGGFILE_LOGFULL_WRITTEN 4
#define ELF_LOGFILE_LOGFULL_WRITTEN 4
#define ELF_LOGFILE_ARCHIVE_SET 8
/* FIXME: MSDN reads that the following two structs are in winnt.h. Are they? */
@@ -102,12 +102,17 @@ typedef struct _EVENTSOURCE
WCHAR szName[1];
} EVENTSOURCE, *PEVENTSOURCE;
/* Log Handle Flags */
#define LOG_HANDLE_BACKUP_FILE 1
typedef struct _LOGHANDLE
{
LIST_ENTRY LogHandleListEntry;
PEVENTSOURCE EventSource;
PLOGFILE LogFile;
ULONG CurrentRecord;
ULONG Flags;
WCHAR szName[1];
} LOGHANDLE, *PLOGHANDLE;
@@ -149,8 +154,10 @@ NTSTATUS
LogfBackupFile(PLOGFILE LogFile,
PUNICODE_STRING BackupFileName);
PLOGFILE LogfCreate(WCHAR * LogName,
WCHAR * FileName);
NTSTATUS
LogfCreate(PLOGFILE *Logfile,
WCHAR * LogName,
PUNICODE_STRING FileName);
VOID LogfClose(PLOGFILE LogFile);

View File

@@ -288,104 +288,127 @@ BOOL LogfInitializeExisting(PLOGFILE LogFile)
return TRUE;
}
PLOGFILE LogfCreate(WCHAR * LogName, WCHAR * FileName)
{
PLOGFILE LogFile;
BOOL bResult, bCreateNew = FALSE;
LogFile = (LOGFILE *) HeapAlloc(MyHeap, HEAP_ZERO_MEMORY, sizeof(LOGFILE));
if (!LogFile)
NTSTATUS
LogfCreate(PLOGFILE *LogFile,
WCHAR * LogName,
PUNICODE_STRING FileName)
{
OBJECT_ATTRIBUTES ObjectAttributes;
IO_STATUS_BLOCK IoStatusBlock;
PLOGFILE pLogFile;
BOOL bResult, bCreateNew = FALSE;
NTSTATUS Status = STATUS_SUCCESS;
pLogFile = (LOGFILE *) HeapAlloc(MyHeap, HEAP_ZERO_MEMORY, sizeof(LOGFILE));
if (!pLogFile)
{
DPRINT1("Can't allocate heap!\n");
return NULL;
return STATUS_NO_MEMORY;
}
LogFile->hFile = CreateFile(FileName,
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ,
NULL,
OPEN_ALWAYS,
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_RANDOM_ACCESS,
NULL);
InitializeObjectAttributes(&ObjectAttributes,
FileName,
OBJ_CASE_INSENSITIVE,
NULL,
NULL);
if (LogFile->hFile == INVALID_HANDLE_VALUE)
Status = NtCreateFile(&pLogFile->hFile,
GENERIC_READ | GENERIC_WRITE | SYNCHRONIZE,
&ObjectAttributes,
&IoStatusBlock,
NULL,
FILE_ATTRIBUTE_NORMAL,
FILE_SHARE_READ,
FILE_OPEN_IF,
FILE_SYNCHRONOUS_IO_NONALERT,
NULL,
0);
if (!NT_SUCCESS(Status))
{
DPRINT1("Can't create file %S.\n", FileName);
HeapFree(MyHeap, 0, LogFile);
return NULL;
DPRINT1("Can't create file %wZ (Status: 0x%08lx)\n", FileName, Status);
goto fail;
}
bCreateNew = (GetLastError() == ERROR_ALREADY_EXISTS) ? FALSE : TRUE;
bCreateNew = (IoStatusBlock.Information == FILE_CREATED) ? TRUE: FALSE;
LogFile->LogName =
pLogFile->LogName =
(WCHAR *) HeapAlloc(MyHeap,
HEAP_ZERO_MEMORY,
(lstrlenW(LogName) + 1) * sizeof(WCHAR));
if (LogFile->LogName)
lstrcpyW(LogFile->LogName, LogName);
else
{
DPRINT1("Can't allocate heap\n");
HeapFree(MyHeap, 0, LogFile);
return NULL;
}
LogFile->FileName =
(WCHAR *) HeapAlloc(MyHeap,
HEAP_ZERO_MEMORY,
(lstrlenW(FileName) + 1) * sizeof(WCHAR));
if (LogFile->FileName)
lstrcpyW(LogFile->FileName, FileName);
else
if (pLogFile->LogName == NULL)
{
DPRINT1("Can't allocate heap\n");
Status = STATUS_NO_MEMORY;
goto fail;
}
LogFile->OffsetInfo =
lstrcpyW(pLogFile->LogName, LogName);
pLogFile->FileName =
(WCHAR *) HeapAlloc(MyHeap,
HEAP_ZERO_MEMORY,
(lstrlenW(FileName->Buffer) + 1) * sizeof(WCHAR));
if (pLogFile->FileName == NULL)
{
DPRINT1("Can't allocate heap\n");
Status = STATUS_NO_MEMORY;
goto fail;
}
lstrcpyW(pLogFile->FileName, FileName->Buffer);
pLogFile->OffsetInfo =
(PEVENT_OFFSET_INFO) HeapAlloc(MyHeap,
HEAP_ZERO_MEMORY,
sizeof(EVENT_OFFSET_INFO) * 64);
if (!LogFile->OffsetInfo)
if (pLogFile->OffsetInfo == NULL)
{
DPRINT1("Can't allocate heap\n");
Status = STATUS_NO_MEMORY;
goto fail;
}
LogFile->OffsetInfoSize = 64;
pLogFile->OffsetInfoSize = 64;
if (bCreateNew)
bResult = LogfInitializeNew(LogFile);
bResult = LogfInitializeNew(pLogFile);
else
bResult = LogfInitializeExisting(LogFile);
bResult = LogfInitializeExisting(pLogFile);
if (!bResult)
goto fail;
RtlInitializeResource(&LogFile->Lock);
LogfListAddItem(LogFile);
return LogFile;
fail:
if (LogFile)
{
if (LogFile->OffsetInfo)
HeapFree(MyHeap, 0, LogFile->OffsetInfo);
if (LogFile->FileName)
HeapFree(MyHeap, 0, LogFile->FileName);
if (LogFile->LogName)
HeapFree(MyHeap, 0, LogFile->LogName);
HeapFree(MyHeap, 0, LogFile);
Status = STATUS_UNSUCCESSFUL;
goto fail;
}
return NULL;
RtlInitializeResource(&pLogFile->Lock);
LogfListAddItem(pLogFile);
fail:
if (!NT_SUCCESS(Status))
{
if ((pLogFile->hFile != NULL) && (pLogFile->hFile != INVALID_HANDLE_VALUE))
CloseHandle(pLogFile->hFile);
if (pLogFile->OffsetInfo)
HeapFree(MyHeap, 0, pLogFile->OffsetInfo);
if (pLogFile->FileName)
HeapFree(MyHeap, 0, pLogFile->FileName);
if (pLogFile->LogName)
HeapFree(MyHeap, 0, pLogFile->LogName);
HeapFree(MyHeap, 0, pLogFile);
}
else
{
*LogFile = pLogFile;
}
return Status;
}
VOID LogfClose(PLOGFILE LogFile)
@@ -1077,13 +1100,200 @@ NTSTATUS
LogfBackupFile(PLOGFILE LogFile,
PUNICODE_STRING BackupFileName)
{
// RtlAcquireResourceShared(&LogFile->Lock, TRUE);
OBJECT_ATTRIBUTES ObjectAttributes;
IO_STATUS_BLOCK IoStatusBlock;
EVENTLOGHEADER Header;
EVENTLOGEOF EofRec;
HANDLE FileHandle = NULL;
ULONG i;
LARGE_INTEGER FileOffset;
NTSTATUS Status;
PUCHAR Buffer = NULL;
/* FIXME: Write a backup file */
DWORD dwOffset, dwRead, dwRecSize;
// RtlReleaseResource(&LogFile->Lock);
DPRINT("LogfBackupFile(%p, %wZ)\n", LogFile, BackupFileName);
return STATUS_NOT_IMPLEMENTED;
/* Lock the log file shared */
RtlAcquireResourceShared(&LogFile->Lock, TRUE);
InitializeObjectAttributes(&ObjectAttributes,
BackupFileName,
OBJ_CASE_INSENSITIVE,
NULL,
NULL);
Status = NtCreateFile(&FileHandle,
GENERIC_READ | GENERIC_WRITE | SYNCHRONIZE,
&ObjectAttributes,
&IoStatusBlock,
NULL,
FILE_ATTRIBUTE_NORMAL,
FILE_SHARE_READ,
FILE_CREATE,
FILE_WRITE_THROUGH | FILE_SYNCHRONOUS_IO_NONALERT,
NULL,
0);
if (!NT_SUCCESS(Status))
{
DPRINT("Can't create backup file %wZ (Status: 0x%08lx)\n", BackupFileName, Status);
goto Done;
}
/* Initialize the (dirty) log file header */
Header.HeaderSize = sizeof(EVENTLOGHEADER);
Header.Signature = LOGFILE_SIGNATURE;
Header.MajorVersion = MAJORVER;
Header.MinorVersion = MINORVER;
Header.StartOffset = sizeof(EVENTLOGHEADER);
Header.EndOffset = sizeof(EVENTLOGHEADER);
Header.CurrentRecordNumber = 1;
Header.OldestRecordNumber = 1;
Header.MaxSize = 0;
Header.Flags = ELF_LOGFILE_HEADER_DIRTY;
Header.Retention = LogFile->Header.Retention;
Header.EndHeaderSize = sizeof(EVENTLOGHEADER);
/* Write the (dirty) log file header */
Status = NtWriteFile(FileHandle,
NULL,
NULL,
NULL,
&IoStatusBlock,
&Header,
sizeof(EVENTLOGHEADER),
NULL,
NULL);
if (!NT_SUCCESS(Status))
{
DPRINT1("Failed to write the log file header (Status: 0x%08lx)\n", Status);
goto Done;
}
for (i = LogFile->Header.OldestRecordNumber; i < LogFile->Header.CurrentRecordNumber; i++)
{
dwOffset = LogfOffsetByNumber(LogFile, i);
if (dwOffset == 0)
break;
if (SetFilePointer(LogFile->hFile, dwOffset, NULL, FILE_BEGIN) == INVALID_SET_FILE_POINTER)
{
DPRINT1("SetFilePointer() failed!\n");
goto Done;
}
if (!ReadFile(LogFile->hFile, &dwRecSize, sizeof(DWORD), &dwRead, NULL))
{
DPRINT1("ReadFile() failed!\n");
goto Done;
}
if (SetFilePointer(LogFile->hFile, dwOffset, NULL, FILE_BEGIN) == INVALID_SET_FILE_POINTER)
{
DPRINT1("SetFilePointer() failed!\n");
goto Done;
}
Buffer = HeapAlloc(MyHeap, 0, dwRecSize);
if (Buffer == NULL)
{
DPRINT1("HeapAlloc() failed!\n");
goto Done;
}
if (!ReadFile(LogFile->hFile, &Buffer, dwRecSize, &dwRead, NULL))
{
DPRINT1("ReadFile() failed!\n");
goto Done;
}
/* Write the event record */
Status = NtWriteFile(FileHandle,
NULL,
NULL,
NULL,
&IoStatusBlock,
Buffer,
dwRecSize,
NULL,
NULL);
if (!NT_SUCCESS(Status))
{
DPRINT1("NtWriteFile() failed!\n");
goto Done;
}
/* Update the header information */
Header.EndOffset += dwRecSize;
/* Free the buffer */
HeapFree(MyHeap, 0, Buffer);
Buffer = NULL;
}
/* Initialize the EOF record */
EofRec.RecordSizeBeginning = sizeof(EVENTLOGEOF);
EofRec.Ones = 0x11111111;
EofRec.Twos = 0x22222222;
EofRec.Threes = 0x33333333;
EofRec.Fours = 0x44444444;
EofRec.BeginRecord = sizeof(EVENTLOGHEADER);
EofRec.EndRecord = Header.EndOffset;
EofRec.CurrentRecordNumber = LogFile->Header.CurrentRecordNumber;
EofRec.OldestRecordNumber = LogFile->Header.OldestRecordNumber;
EofRec.RecordSizeEnd = sizeof(EVENTLOGEOF);
/* Write the EOF record */
Status = NtWriteFile(FileHandle,
NULL,
NULL,
NULL,
&IoStatusBlock,
&EofRec,
sizeof(EVENTLOGEOF),
NULL,
NULL);
if (!NT_SUCCESS(Status))
{
DPRINT1("NtWriteFile() failed!\n");
goto Done;
}
/* Update the header information */
Header.CurrentRecordNumber = LogFile->Header.CurrentRecordNumber;
Header.OldestRecordNumber = LogFile->Header.OldestRecordNumber;
Header.MaxSize = Header.EndOffset + sizeof(EVENTLOGEOF);
Header.Flags = 0;
/* Write the (clean) log file header */
FileOffset.QuadPart = 0;
Status = NtWriteFile(FileHandle,
NULL,
NULL,
NULL,
&IoStatusBlock,
&Header,
sizeof(EVENTLOGHEADER),
&FileOffset,
NULL);
if (!NT_SUCCESS(Status))
{
DPRINT1("NtWriteFile() failed!\n");
}
Done:
/* Free the buffer */
if (Buffer != NULL)
HeapFree(MyHeap, 0, Buffer);
/* Close the backup file */
if (FileHandle != NULL)
NtClose(FileHandle);
/* Unlock the log file */
RtlReleaseResource(&LogFile->Lock);
return Status;
}

View File

@@ -44,12 +44,17 @@ DWORD WINAPI RpcThreadRoutine(LPVOID lpParameter)
return 0;
}
PLOGHANDLE ElfCreateEventLogHandle(LPCWSTR Name, BOOL Create)
static NTSTATUS
ElfCreateEventLogHandle(PLOGHANDLE *LogHandle,
LPCWSTR Name,
BOOL Create)
{
PLOGHANDLE lpLogHandle;
PLOGFILE currentLogFile = NULL;
INT i, LogsActive;
PEVENTSOURCE pEventSource;
NTSTATUS Status = STATUS_SUCCESS;
DPRINT("ElfCreateEventLogHandle(Name: %S)\n", Name);
@@ -58,7 +63,7 @@ PLOGHANDLE ElfCreateEventLogHandle(LPCWSTR Name, BOOL Create)
if (!lpLogHandle)
{
DPRINT1("Failed to allocate Heap!\n");
return NULL;
return STATUS_NO_MEMORY;
}
wcscpy(lpLogHandle->szName, Name);
@@ -68,7 +73,8 @@ PLOGHANDLE ElfCreateEventLogHandle(LPCWSTR Name, BOOL Create)
if (LogsActive == 0)
{
DPRINT1("EventLog service reports no log files!\n");
goto Cleanup;
Status = STATUS_UNSUCCESSFUL;
goto Done;
}
/* If Creating, default to the Application Log in case we fail, as documented on MSDN */
@@ -114,19 +120,73 @@ PLOGHANDLE ElfCreateEventLogHandle(LPCWSTR Name, BOOL Create)
}
if (!lpLogHandle->LogFile)
goto Cleanup;
Status = STATUS_UNSUCCESSFUL;
/* Append log handle */
InsertTailList(&LogHandleListHead, &lpLogHandle->LogHandleListEntry);
Done:
if (NT_SUCCESS(Status))
{
/* Append log handle */
InsertTailList(&LogHandleListHead, &lpLogHandle->LogHandleListEntry);
*LogHandle = lpLogHandle;
}
else
{
HeapFree(GetProcessHeap(), 0, lpLogHandle);
}
return lpLogHandle;
Cleanup:
HeapFree(GetProcessHeap(), 0, lpLogHandle);
return NULL;
return Status;
}
static NTSTATUS
ElfCreateBackupLogHandle(PLOGHANDLE *LogHandle,
PUNICODE_STRING FileName)
{
PLOGHANDLE lpLogHandle;
NTSTATUS Status = STATUS_SUCCESS;
DPRINT("ElfCreateBackupLogHandle(FileName: %wZ)\n", FileName);
lpLogHandle = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(LOGHANDLE));
if (lpLogHandle == NULL)
{
DPRINT1("Failed to allocate Heap!\n");
return STATUS_NO_MEMORY;
}
/* Create the log file */
Status = LogfCreate(&lpLogHandle->LogFile,
NULL,
FileName);
if (!NT_SUCCESS(Status))
{
DPRINT1("Failed to create the log file! (Status 0x%08lx)\n", Status);
goto Done;
}
/* Set the backup flag */
lpLogHandle->Flags |= LOG_HANDLE_BACKUP_FILE;
/* Get the current record */
lpLogHandle->CurrentRecord = LogfGetOldestRecord(lpLogHandle->LogFile);
Done:
if (NT_SUCCESS(Status))
{
/* Append log handle */
InsertTailList(&LogHandleListHead, &lpLogHandle->LogHandleListEntry);
*LogHandle = lpLogHandle;
}
else
{
HeapFree(GetProcessHeap(), 0, lpLogHandle);
}
return Status;
}
PLOGHANDLE ElfGetLogHandleEntryByHandle(IELF_HANDLE EventLogHandle)
{
PLOGHANDLE lpLogHandle;
@@ -141,18 +201,23 @@ PLOGHANDLE ElfGetLogHandleEntryByHandle(IELF_HANDLE EventLogHandle)
return lpLogHandle;
}
BOOL ElfDeleteEventLogHandle(IELF_HANDLE EventLogHandle)
static NTSTATUS
ElfDeleteEventLogHandle(IELF_HANDLE EventLogHandle)
{
PLOGHANDLE lpLogHandle = (PLOGHANDLE)EventLogHandle;
if (!ElfGetLogHandleEntryByHandle(lpLogHandle))
{
return FALSE;
}
return STATUS_INVALID_HANDLE;
/* Close the log file if it is a backup file */
if (lpLogHandle->Flags & LOG_HANDLE_BACKUP_FILE)
LogfClose(lpLogHandle->LogFile);
RemoveEntryList(&lpLogHandle->LogHandleListEntry);
HeapFree(GetProcessHeap(),0,lpLogHandle);
return TRUE;
return STATUS_SUCCESS;
}
/* Function 0 */
@@ -199,12 +264,7 @@ NTSTATUS ElfrBackupELFW(
NTSTATUS ElfrCloseEL(
IELF_HANDLE *LogHandle)
{
if (!ElfDeleteEventLogHandle(*LogHandle))
{
return STATUS_INVALID_HANDLE;
}
return STATUS_SUCCESS;
return ElfDeleteEventLogHandle(*LogHandle);
}
@@ -212,12 +272,7 @@ NTSTATUS ElfrCloseEL(
NTSTATUS ElfrDeregisterEventSource(
IELF_HANDLE *LogHandle)
{
if (!ElfDeleteEventLogHandle(*LogHandle))
{
return STATUS_INVALID_HANDLE;
}
return STATUS_SUCCESS;
return ElfDeleteEventLogHandle(*LogHandle);
}
@@ -307,14 +362,9 @@ NTSTATUS ElfrOpenELW(
/*FIXME: Must verify that caller has read access */
*LogHandle = ElfCreateEventLogHandle(ModuleName->Buffer, FALSE);
if (*LogHandle == NULL)
{
return STATUS_INVALID_PARAMETER;
}
return STATUS_SUCCESS;
return ElfCreateEventLogHandle((PLOGHANDLE *)LogHandle,
ModuleName->Buffer,
FALSE);
}
@@ -342,9 +392,9 @@ NTSTATUS ElfrRegisterEventSourceW(
/*FIXME: Must verify that caller has write access */
*LogHandle = ElfCreateEventLogHandle(ModuleName->Buffer, TRUE);
return STATUS_SUCCESS;
return ElfCreateEventLogHandle((PLOGHANDLE *)LogHandle,
ModuleName->Buffer,
TRUE);
}
@@ -356,8 +406,17 @@ NTSTATUS ElfrOpenBELW(
DWORD MinorVersion,
IELF_HANDLE *LogHandle)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
DPRINT("ElfrOpenBELW(%wZ)\n", BackupFileName);
if ((MajorVersion != 1) || (MinorVersion != 1))
return STATUS_INVALID_PARAMETER;
/*FIXME: UNCServerName must specify the server */
/*FIXME: Must verify that caller has read access */
return ElfCreateBackupLogHandle((PLOGHANDLE *)LogHandle,
(PUNICODE_STRING)BackupFileName);
}
@@ -474,6 +533,14 @@ NTSTATUS ElfrReportEventW(
DPRINT("Info: %wZ\n", Strings[i]);
break;
case EVENTLOG_AUDIT_SUCCESS:
DPRINT("Audit Success: %wZ\n", Strings[i]);
break;
case EVENTLOG_AUDIT_FAILURE:
DPRINT("Audit Failure: %wZ\n", Strings[i]);
break;
default:
DPRINT1("Type %hu: %wZ\n", EventType, Strings[i]);
break;
@@ -597,16 +664,13 @@ NTSTATUS ElfrOpenELA(
/* FIXME: Must verify that caller has read access */
*LogHandle = ElfCreateEventLogHandle(ModuleNameW.Buffer, FALSE);
Status = ElfCreateEventLogHandle((PLOGHANDLE *)LogHandle,
ModuleNameW.Buffer,
FALSE);
RtlFreeUnicodeString(&ModuleNameW);
if (*LogHandle == NULL)
{
return STATUS_INVALID_PARAMETER;
}
return STATUS_SUCCESS;
return Status;
}
@@ -646,12 +710,13 @@ NTSTATUS ElfrRegisterEventSourceA(
/* FIXME: Must verify that caller has write access */
*LogHandle = ElfCreateEventLogHandle(ModuleNameW.Buffer,
TRUE);
Status = ElfCreateEventLogHandle((PLOGHANDLE *)LogHandle,
ModuleNameW.Buffer,
TRUE);
RtlFreeUnicodeString(&ModuleNameW);
return STATUS_SUCCESS;
return Status;
}
@@ -663,8 +728,36 @@ NTSTATUS ElfrOpenBELA(
DWORD MinorVersion,
IELF_HANDLE *LogHandle)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
UNICODE_STRING BackupFileNameW;
NTSTATUS Status;
DPRINT("ElfrOpenBELA(%Z)\n", BackupFileName);
Status = RtlAnsiStringToUnicodeString(&BackupFileNameW,
(PANSI_STRING)BackupFileName,
TRUE);
if (!NT_SUCCESS(Status))
{
DPRINT1("RtlAnsiStringToUnicodeString failed (Status 0x%08lx)\n", Status);
return Status;
}
if ((MajorVersion != 1) || (MinorVersion != 1))
{
RtlFreeUnicodeString(&BackupFileNameW);
return STATUS_INVALID_PARAMETER;
}
/*FIXME: UNCServerName must specify the server */
/*FIXME: Must verify that caller has read access */
Status = ElfCreateBackupLogHandle((PLOGHANDLE *)LogHandle,
&BackupFileNameW);
RtlFreeUnicodeString(&BackupFileNameW);
return Status;
}

View File

@@ -1,6 +1,6 @@
add_executable(svchost svchost.c svchost.rc)
set_module_type(svchost win32cui)
set_module_type(svchost win32cui UNICODE)
add_importlibs(svchost advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET svchost DESTINATION reactos/system32 FOR all)

View File

@@ -93,7 +93,7 @@ BOOL PrepareService(LPCTSTR ServiceName)
}
/* Convert possible %SystemRoot% to a real path */
BufferSize = ExpandEnvironmentStrings(Buffer, DllPath, sizeof(DllPath));
BufferSize = ExpandEnvironmentStrings(Buffer, DllPath, _countof(DllPath));
if (0 == BufferSize)
{
DPRINT1("Invalid ServiceDll path: %s\n", Buffer);
@@ -124,7 +124,7 @@ BOOL PrepareService(LPCTSTR ServiceName)
}
memset(Service, 0, sizeof(SERVICE));
Service->Name = HeapAlloc(GetProcessHeap(), 0, _tcslen(ServiceName) + sizeof(TCHAR));
Service->Name = HeapAlloc(GetProcessHeap(), 0, (_tcslen(ServiceName)+1) * sizeof(TCHAR));
if (NULL == Service->Name)
{
DPRINT1("Not enough memory for service: %s\n", ServiceName);
@@ -199,7 +199,7 @@ DWORD LoadServiceCategory(LPCTSTR ServiceCategory)
if (TRUE == PrepareService(ServiceName))
++NrOfServices;
BufferIndex += (Length + 1) * sizeof(TCHAR);
BufferIndex += Length + 1;
ServiceName = &Buffer[BufferIndex];
}
@@ -238,7 +238,7 @@ int _tmain (int argc, LPTSTR argv [])
PSERVICE Service = FirstService;
/* Fill the service table */
for (i = 0; i < NrOfServices; ++i)
for (i = 0; i < NrOfServices; i++)
{
DPRINT("Loading service: %s\n", Service->Name);
ServiceTable[i].lpServiceName = Service->Name;
@@ -251,7 +251,7 @@ int _tmain (int argc, LPTSTR argv [])
ServiceTable[i].lpServiceProc = NULL;
if (FALSE == StartServiceCtrlDispatcher(ServiceTable))
printf("Failed to start service control dispatcher, ErrorCode: %lu\n", GetLastError());
DPRINT1("Failed to start service control dispatcher, ErrorCode: %lu\n", GetLastError());
HeapFree(GetProcessHeap(), 0, ServiceTable);
}
@@ -260,7 +260,7 @@ int _tmain (int argc, LPTSTR argv [])
DPRINT1("Not enough memory for the service table, trying to allocate %u bytes\n", sizeof(SERVICE_TABLE_ENTRY) * (NrOfServices + 1));
}
DPRINT1("Freeing services...\n");
DPRINT("Freeing services...\n");
FreeServices();
return 0;

View File

@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<module name="svchost" type="win32cui" installbase="system32" installname="svchost.exe">
<module name="svchost" type="win32cui" installbase="system32" installname="svchost.exe" unicode="yes">
<include base="svchost">.</include>
<library>advapi32</library>
<file>svchost.c</file>

View File

@@ -4,5 +4,5 @@ set_rc_compiler()
add_executable(welcome welcome.c welcome.rc)
set_module_type(welcome win32gui UNICODE)
add_importlibs(welcome gdi32 user32 msvcrt kernel32 ntdll)
add_importlibs(welcome gdi32 user32 shell32 msvcrt kernel32 ntdll)
add_cd_file(TARGET welcome DESTINATION reactos NO_CAB FOR bootcd)

View File

@@ -1,82 +0,0 @@
/*
* Bulgarian(BG) resources
*
* Copyright (C) 2005 Violin Iliev
* www.violin-bg.com
*
* 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.
*
* 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, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Добре дошли"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Добре дошли в операционна система React.\n\nИзберете си от темите в ляво."
// IDS_CHECKTEXT "Показвай отново този прозорец"
// IDS_CLOSETEXT "Изход"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Инсталиране на ReactOS"
IDS_TOPICBUTTON1 "Разгледай това CD"
IDS_TOPICBUTTON2 "Изход"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Инсталиране на ReactOSS"
IDS_TOPICTITLE1 "Разгледай това CD"
IDS_TOPICTITLE2 "Изход"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Създаване на нова инсталация ня ReactOS или обновяване на съществуваща такава."
IDS_TOPICDESC1 "Разглеждане на CD-то."
IDS_TOPICDESC2 "Натиснете за изход от програмата."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,60 +0,0 @@
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Vítejte"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Vítejte v operačním systému ReactOS.\n\nKlepněte na tlačítko v levém sloupci."
// IDS_CHECKTEXT "Zobrazit dialog znovu"
// IDS_CLOSETEXT "Konec"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Instalovat ReactOS"
IDS_TOPICBUTTON1 "Prohlížet toto CD"
IDS_TOPICBUTTON2 "Konec"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Instalovat ReactOS"
IDS_TOPICTITLE1 "Prohlížet toto CD"
IDS_TOPICTITLE2 "Konec"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Nainstaluje ReactOS na Váš počítač nebo zaktualizuje existující systém."
IDS_TOPICDESC1 "Prohlížet toto CD."
IDS_TOPICDESC2 "Klepněte pro ukončení tohoto programu."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,60 +0,0 @@
LANGUAGE LANG_DANISH, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Velkommen"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Velkommen til ReactOs operativ System.\n\nKlik på et emne til venstre."
// IDS_CHECKTEXT "Vis denne dialog igen ved opstart"
// IDS_CLOSETEXT "Afslut"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Installer ReactOS"
IDS_TOPICBUTTON1 "Gennemse Cdrom"
IDS_TOPICBUTTON2 "Afslut"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Installer ReactOS"
IDS_TOPICTITLE1 "Gennemse Cdrom"
IDS_TOPICTITLE2 "Afslut"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Opret en ny ReactOS installation på din computer eller opgradere en eksisterende installation."
IDS_TOPICDESC1 "Gennemse Reactos Installations Cdrom"
IDS_TOPICDESC2 "Klik på Afslut for at lukke."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -9,56 +9,57 @@ LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Willkommen"
IDS_APPTITLE "ReactOS 0.3.14 - CLT 2012"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Willkommen in ReactOS.\n\nKlicken Sie auf ein Thema auf der linken Seite."
// IDS_CHECKTEXT "Dialog beim nächsen Start wieder anzeigen"
// IDS_CLOSETEXT "Beenden"
IDS_DEFAULTTOPICDESC "ReactOS ist ein modernes Open-Source-Betriebssystem, welches auf dem Design von Windows® XP/2003 basiert. Dazu gehört sowohl die volle Kompatibilität mit Windows-Anwendungen und -Treibern als auch eine ähnliche Benutzeroberfläche, damit sich die meisten Anwender sofort zurechtfinden. Der Quellcode des gesamten Systems ist frei verfügbar und steht größtenteils unter der GNU General Public License."
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "ReactOS installieren"
IDS_TOPICBUTTON1 "CD durchsuchen"
IDS_TOPICBUTTON2 "Beenden"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
IDS_TOPICBUTTON1 "ReactOS in QEMU ausprobieren"
IDS_TOPICBUTTON2 "ReactOS Build Environment installieren"
IDS_TOPICBUTTON3 "ReactOS-Quellcodepaket öffnen"
IDS_TOPICBUTTON4 "Die ReactOS-Website besuchen"
IDS_TOPICBUTTON5 "Die CD durchsuchen"
IDS_TOPICBUTTON6 "Beenden"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "ReactOS installieren"
IDS_TOPICTITLE1 "CD durchsuchen"
IDS_TOPICTITLE2 "Beenden"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
IDS_TOPICTITLE1 "ReactOS in QEMU ausprobieren"
IDS_TOPICTITLE2 "ReactOS Build Environment installieren"
IDS_TOPICTITLE3 "ReactOS-Quellcodepaket öffnen"
IDS_TOPICTITLE4 "Die ReactOS-Website besuchen"
IDS_TOPICTITLE5 "Die CD durchsuchen"
IDS_TOPICTITLE6 "Beenden"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Installiert ReactOS auf ihrem Computer oder aktualisiert eine bestehende Installation."
IDS_TOPICDESC1 "Die ReactOS-CD durchsuchen."
IDS_TOPICDESC2 "Klicken Sie, um dieses Programm zu beenden."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
IDS_TOPICDESC0 "Installiert ReactOS auf ihrem Computer.\n\nBitte beachten Sie, dass Sie zur Zeit Ihren Computer mit der ReactOS-CD im Laufwerk neu starten müssen, um die Installation zu starten.\n\nAlternativ können Sie ReactOS problemlos in einer virtuellen QEMU-Maschine ausprobieren, wenn Sie den entsprechenden Menüpunkt auf der linken Seite wählen."
IDS_TOPICDESC1 "Möglicherweise möchten Sie ein Betriebssystem im Alpha-Stadium nicht auf Ihrem eigenen Computer testen oder es gibt Probleme bei der Installation. Daher haben wir ReactOS auf einer virtuellen QEMU-Maschine vorinstalliert, mit der Sie das Betriebssystem problemlos testen können, ohne dass es direkt auf Ihrem Computer installiert werden muss.\n\nEin Klick auf diesen Menüpunkt öffnet das QEMU-Paket in Ihrem ZIP-Archivprogramm."
IDS_TOPICDESC2 "Damit ReactOS so einfach wie möglich kompiliert werden kann, wurde das ReactOS Build Environment geschaffen. Dieses enthält die passenden Compiler-Versionen und alle nötigen Tools, um den gesamten ReactOS-Quellcode zu kompilieren.\n\nDie Windows-Version des Build Environments ist kompatibel mit Windows 2000, XP oder neueren Versionen. Sie wird über diesen Menüpunkt installiert.\nDie CD enthält auch das Build Environment für Unix-ähnliche Betriebssysteme, wie z.B. Linux oder Mac OS X.\n\nZusätzlich befindet sich auf dieser CD der Quellcode dieser ReactOS-Version in einer ZIP-Datei."
IDS_TOPICDESC3 "Die CD enthält auch den gesamten Quellcode dieser ReactOS-Version, welcher mit dem ReactOS Build Environment kompiliert werden kann.\nEin Klick auf diesen Menüpunkt öffnet ihn in Ihrem ZIP-Archivprogramm."
IDS_TOPICDESC4 "Die ReactOS-Website liefert viele weitere Informationen über das Projekt. Hier finden Sie die neusten ReactOS-Versionen und Neuigkeiten bezüglich der Entwicklung."
IDS_TOPICDESC5 "Durchsuchen Sie den Inhalt dieser CD."
IDS_TOPICDESC6 "Beendet das AutoRun-Programm."
END
/* Topic actions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICACTION0 "<msg>Zur Zeit müssen Sie Ihren Computer mit der ReactOS-CD im Laufwerk neu starten, um die Installation zu starten.\n\nBITTE BEACHTEN SIE: Es wird dringend davon abgeraten, ReactOS auf einem Computer zu installieren, welcher wichtige Daten enthält!"
IDS_TOPICACTION1 "..\\ReactOS in QEMU\\ReactOS-0.3.14-CLT2012-QEMU.zip"
IDS_TOPICACTION2 "..\\ReactOS Build Environment\\RosBE-2.0.exe"
IDS_TOPICACTION3 "..\\ReactOS-Quellcode\\ReactOS-0.3.14-CLT2012-Quellcode.zip"
IDS_TOPICACTION4 "http://www.reactos.org/"
IDS_TOPICACTION5 "explorer.exe"
IDS_TOPICACTION6 "<exit>"
END
/* EOF */

View File

@@ -1,60 +0,0 @@
LANGUAGE LANG_GREEK, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Καλώς Ήλθατε"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Καλώς ήλθατε στο React Λειτουργικό Σύστημα.\n\nΕπιλέξτε ένα θέμα από το μενού στα αριστερά."
// IDS_CHECKTEXT "Show this dialog again"
// IDS_CLOSETEXT "Exit"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Εγκατάσταση του ReactOS"
IDS_TOPICBUTTON1 "Εξερεύνηση αυτού του CD"
IDS_TOPICBUTTON2 "Έξοδος"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Εγκατάσταση του ReactOS"
IDS_TOPICTITLE1 "Εξερεύνηση αυτού του CD"
IDS_TOPICTITLE2 "Έξοδος"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Δημιουργία νέας εγκατάστασης του ReactOS στον υπολογιστή ή αναβάθμιση μιας ήδη υπάρχουσας εγκατάστασης."
IDS_TOPICDESC1 "Εξερεύνηση αυτού του CD."
IDS_TOPICDESC2 "Πατήστε για να τερματίσετε την εφαρμογή αυτή."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,60 +0,0 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Welcome"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Welcome to React Operating System.\n\nClick a topic on the left."
// IDS_CHECKTEXT "Show this dialog again"
// IDS_CLOSETEXT "Exit"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Install ReactOS"
IDS_TOPICBUTTON1 "Browse this CD"
IDS_TOPICBUTTON2 "Exit"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Install ReactOS"
IDS_TOPICTITLE1 "Browse this CD"
IDS_TOPICTITLE2 "Exit"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Create a new ReactOS installation on your computer or upgrade an existing installation."
IDS_TOPICDESC1 "Browse the CD."
IDS_TOPICDESC2 "Click to exit this application."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,60 +0,0 @@
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Bienvenido"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Bienvenido al Sistema Operativo React.\n\nHaz Click en una opción a la izquierda."
// IDS_CHECKTEXT "Mostrar este dialogo otra vez"
// IDS_CLOSETEXT "Salir"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Instalar ReactOS"
IDS_TOPICBUTTON1 "Explorar este CD"
IDS_TOPICBUTTON2 "Salir"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Instalar ReactOS"
IDS_TOPICTITLE1 "Explorar este CD"
IDS_TOPICTITLE2 "Salir"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Crear una nueva instalación de ReactOS en su PC o actualizar una instalación existente."
IDS_TOPICDESC1 "Explorar este CD."
IDS_TOPICDESC2 "Haz Click para salir de esta aplicación."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,60 +0,0 @@
LANGUAGE LANG_ESTONIAN, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Tere tulemast"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Tere tulemast operatsioonisüsteemi ReactOS.\n\nVali teema vasakult."
// IDS_CHECKTEXT "Näita seda dialoogi veel"
// IDS_CLOSETEXT "Välju"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Paigalda ReactOS"
IDS_TOPICBUTTON1 "Sirvi CD sisu"
IDS_TOPICBUTTON2 "Välju"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Paigalda ReactOS"
IDS_TOPICTITLE1 "Sirvi CD sisu"
IDS_TOPICTITLE2 "Välju"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Paigalda ReactOS oma arvutisse või uuenda olemasolevat installatsiooni."
IDS_TOPICDESC1 "Sirvi CD sisu."
IDS_TOPICDESC2 "Vajuta, et väljuda."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,81 +0,0 @@
/*
* FRENCH(FR) resources
*
* Copyright (C) 2005
*
* 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.
*
* 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, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Bienvenue"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Bienvenue sur le système d'exploitation ReactOS.\n\nCliquez sur une section à gauche."
// IDS_CHECKTEXT "Afficher cette boîte de dialogue de nouveau."
// IDS_CLOSETEXT "Quitter"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Installer ReactOS"
IDS_TOPICBUTTON1 "Naviguer dans ce CD"
IDS_TOPICBUTTON2 "Quitter"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Installer ReactOS"
IDS_TOPICTITLE1 "Naviguer dans ce CD"
IDS_TOPICTITLE2 "Quitter"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Crée une nouvelle installation de ReactOS sur votre ordinateur ou met à jour votre installation actuelle."
IDS_TOPICDESC1 "Explore le CD."
IDS_TOPICDESC2 "Cliquez pour quitter l'installation."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,64 +0,0 @@
/*
* Copyright 2005 Robert Horvath - Hungarian trasnlation - talley at cubeclub.hu
*/
LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Üdvözlünk"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Üdvözlünk a React Operációs Rendszerben.\n\n"
// IDS_CHECKTEXT "Show this dialog again"
// IDS_CLOSETEXT "Kilépés"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "ReactOS telepítése"
IDS_TOPICBUTTON1 "A CD böngészése"
IDS_TOPICBUTTON2 "Kilépés"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "ReactOS telepítése"
IDS_TOPICTITLE1 "A CD böngészése"
IDS_TOPICTITLE2 "Kilépés"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "A ReactOS telepítése vagy frissítése."
IDS_TOPICDESC1 "A CD böngészése"
IDS_TOPICDESC2 "Kilépés"
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,64 +0,0 @@
/*
* Indonesian resources by Zaenal Mutaqin (ade999 at gmail dot com)
*/
LANGUAGE LANG_INDONESIAN, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Selamat Datang"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Selamat datang di React Operating System.\n\nKlik topik di sisi kiri."
// IDS_CHECKTEXT "Show this dialog again"
// IDS_CLOSETEXT "Exit"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Instalasi ReactOS"
IDS_TOPICBUTTON1 "Lihat CD ini"
IDS_TOPICBUTTON2 "Keluar"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Instalasi ReactOS"
IDS_TOPICTITLE1 "Lihat CD ini"
IDS_TOPICTITLE2 "Keluar"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Buat instalasi baru ReactOS pada komputer anda atau tingkatkan instalasi yang sudah ada."
IDS_TOPICDESC1 "Lihat CD."
IDS_TOPICDESC2 "Klik untuk keluar aplikasi ini."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,62 +0,0 @@
/* It.rc by Roberto 'Speekix' Pellegrino */
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Benvenuto"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Benvenuto nel React Operating System.\n\nClicca su un argomento a sinistra."
// IDS_CHECKTEXT "Mostra ancora questa finestra"
// IDS_CLOSETEXT "Esci"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Installa ReactOS"
IDS_TOPICBUTTON1 "Esplora il CD"
IDS_TOPICBUTTON2 "Esci"
// IDS_TOPICBUTTON3 "Argomento Vuoto 3"
// IDS_TOPICBUTTON4 "Argomento Vuoto 4"
// IDS_TOPICBUTTON5 "Argomento Vuoto 5"
// IDS_TOPICBUTTON6 "Argomento Vuoto 6"
// IDS_TOPICBUTTON7 "Argomento Vuoto 7"
// IDS_TOPICBUTTON8 "Argomento Vuoto 8"
// IDS_TOPICBUTTON9 "Argomento Vuoto 9"
END
/* Topic Titolos */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Installa ReactOS"
IDS_TOPICTITLE1 "Esplora il CD"
IDS_TOPICTITLE2 "Esci"
// IDS_TOPICTITLE3 "Argomento Vuoto Titolo 3"
// IDS_TOPICTITLE4 "Argomento Vuoto Titolo 4"
// IDS_TOPICTITLE5 "Argomento Vuoto Titolo 5"
// IDS_TOPICTITLE6 "Argomento Vuoto Titolo 6"
// IDS_TOPICTITLE7 "Argomento Vuoto Titolo 7"
// IDS_TOPICTITLE8 "Argomento Vuoto Titolo 8"
// IDS_TOPICTITLE9 "Argomento Vuoto Titolo 9"
END
/* Descrizione argomentos */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Crea una nuova installazione di ReactOS sul tuo computer o aggiorna l'installazione esistente."
IDS_TOPICDESC1 "Esplora il CD."
IDS_TOPICDESC2 "Clicca per uscire dall'applicazione."
// IDS_TOPICDESC3 "Descrizione argomento 3.\n\nDescrivi l'argomento 3 qui."
// IDS_TOPICDESC4 "Descrizione argomento 4.\n\nDescrivi l'argomento 4 qui."
// IDS_TOPICDESC5 "Descrizione argomento 5.\n\nDescrivi l'argomento 5 qui."
// IDS_TOPICDESC6 "Descrizione argomento 6.\n\nDescrivi l'argomento 6 qui."
// IDS_TOPICDESC7 "Descrizione argomento 7.\n\nDescrivi l'argomento 7 qui."
// IDS_TOPICDESC8 "Descrizione argomento 8.\n\nDescrivi l'argomento 8 qui."
// IDS_TOPICDESC9 "Descrizione argomento 9.\n\nDescrivi l'argomento 9 qui."
END
/* EOF */

View File

@@ -1,60 +0,0 @@
LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Welcome"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "React へようこそ。\n\n左側のトピックをクリックしてください。"
// IDS_CHECKTEXT "Show this dialog again"
// IDS_CLOSETEXT "Exit"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "ReactOS をインストールする"
IDS_TOPICBUTTON1 "この CD を開く"
IDS_TOPICBUTTON2 "終了"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "ReactOS をインストールする"
IDS_TOPICTITLE1 "この CD を開く"
IDS_TOPICTITLE2 "終了"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "コンピュータに新しく ReactOS をインストールしたり、既存の ReactOS をアップグレードします。"
IDS_TOPICDESC1 "CD の内容を参照します。"
IDS_TOPICDESC2 "クリックするとこのアプリケーションを終了します。"
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,62 +0,0 @@
// Translation by Vytis 'CMan' Girdžijauskas cman@cman.us
LANGUAGE LANG_LITHUANIAN, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Sveiki"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Sveiki, čia React Operacinė Sistema.\n\nPasirinkite punktą kairėje."
// IDS_CHECKTEXT "Rodyti šį langą vėl"
// IDS_CLOSETEXT "Išeiti"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Įdiegti ReactOS"
IDS_TOPICBUTTON1 "Peržiūrėti šį CD"
IDS_TOPICBUTTON2 "Išeiti"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Įdiegti ReactOS"
IDS_TOPICTITLE1 "Peržiūrėti šį CD"
IDS_TOPICTITLE2 "Išeiti"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Įdiekite arba atnaujinkite ReactOS."
IDS_TOPICDESC1 "Peržiūrėti šį CD."
IDS_TOPICDESC2 "Paspauskite, kad išeitumėte iš programos."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,60 +0,0 @@
LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Welkom"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Welkom bij het React Operation System.\n\nKlik links op een onderwerp."
// IDS_CHECKTEXT "Ga terug naar dit scherm"
// IDS_CLOSETEXT "Afsluiten"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Installeer ReactOS"
IDS_TOPICBUTTON1 "Deze CD Verkennen"
IDS_TOPICBUTTON2 "Afsluiten"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Installeer ReactOS"
IDS_TOPICTITLE1 "Deze CD Verkennen"
IDS_TOPICTITLE2 "Afsluiten"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Maak een nieuwe ReactOS installatie of upgrade een bestaande installatie."
IDS_TOPICDESC1 "Deze CD Verkennen."
IDS_TOPICDESC2 "Klik om dit programma af te sluiten."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,60 +0,0 @@
LANGUAGE LANG_NORWEGIAN, SUBLANG_NEUTRAL
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Velkommen"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Velkommen til React Operativsystem.\n\nTrykk et emne til venstre."
// IDS_CHECKTEXT "Vis denne dialoget igjen"
// IDS_CLOSETEXT "Avslutt"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Innstaller ReactOS"
IDS_TOPICBUTTON1 "Utforsk denne CD"
IDS_TOPICBUTTON2 "Avslutt"
// IDS_TOPICBUTTON3 "Tomt emne 3"
// IDS_TOPICBUTTON4 "Tomt emne 4"
// IDS_TOPICBUTTON5 "Tomt emne 5"
// IDS_TOPICBUTTON6 "Tomt emne 6"
// IDS_TOPICBUTTON7 "Tomt emne 7"
// IDS_TOPICBUTTON8 "Tomt emne 8"
// IDS_TOPICBUTTON9 "Tomt emne 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Innstaller ReactOS"
IDS_TOPICTITLE1 "Utforsk denne CD"
IDS_TOPICTITLE2 "Avslutt"
// IDS_TOPICTITLE3 "Tomt emne tittel 3"
// IDS_TOPICTITLE4 "Tomt emne tittel 4"
// IDS_TOPICTITLE5 "Tomt emne tittel 5"
// IDS_TOPICTITLE6 "Tomt emne tittel 6"
// IDS_TOPICTITLE7 "Tomt emne tittel 7"
// IDS_TOPICTITLE8 "Tomt emne tittel 8"
// IDS_TOPICTITLE9 "Tomt emne tittel 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Opprett en ny ReactOS innstallasjon på din datamaskin eller oppgrader eksisterende innstallasjon."
IDS_TOPICDESC1 "Utforsk CDen."
IDS_TOPICDESC2 "Trykk avslutt for å avslutte denne applikasjonen."
// IDS_TOPICDESC3 "Emner beskrivelse 3.\n\nBeskriv emner 3 her."
// IDS_TOPICDESC4 "Emner beskrivelse 4.\n\nBeskriv emner 4 her."
// IDS_TOPICDESC5 "Emner beskrivelse 5.\n\nBeskriv emner 5 her."
// IDS_TOPICDESC6 "Emner beskrivelse 6.\n\nBeskriv emner 6 her."
// IDS_TOPICDESC7 "Emner beskrivelse 7.\n\nBeskriv emner 7 her."
// IDS_TOPICDESC8 "Emner beskrivelse 8.\n\nBeskriv emner 8 her."
// IDS_TOPICDESC9 "Emner beskrivelse 9.\n\nBeskriv emner 9 her."
END
/* EOF */

View File

@@ -1,66 +0,0 @@
/*
* translated by Polish Translation Team (Apr, 2007)
* https://sourceforge.net/projects/reactospl
* UTF-8 conversion by Caemyr (May, 2011)
*/
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Zapraszamy"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Witaj w systemie operacyjnym ReactOS.\n\nWybierz temat po lewej."
// IDS_CHECKTEXT "Pokaż ten dialog ponownie"
// IDS_CLOSETEXT "Wyjście"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Zainstaluj ReactOS"
IDS_TOPICBUTTON1 "Przeglądaj CD"
IDS_TOPICBUTTON2 "Wyjście"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Zainstaluj ReactOS"
IDS_TOPICTITLE1 "Przeglądaj CD"
IDS_TOPICTITLE2 "Wyjście"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Utwórz nową instalację ReactOS na komputerze lub aktualizuj już istniejącą."
IDS_TOPICDESC1 "Przeglądaj CD."
IDS_TOPICDESC2 "Kliknij, aby zakończyć aplikację."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,60 +0,0 @@
LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Bem vindo"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Bem vindo ao Sistema Operacional React (ReactOS).\n\nClique em um tópico à esquerda."
// IDS_CHECKTEXT "Exibir este diálogo novamente"
// IDS_CLOSETEXT "Sair"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Instalar ReactOS"
IDS_TOPICBUTTON1 "Examinar este CD"
IDS_TOPICBUTTON2 "Sair"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Instalar ReactOS"
IDS_TOPICTITLE1 "Examinar este CD"
IDS_TOPICTITLE2 "Sair"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Cria uma nova instalação do ReactOS em seu computador ou atualiza uma instalação já existente."
IDS_TOPICDESC1 "Exibe os arquivos contidos no CD."
IDS_TOPICDESC2 "Clique para fechar este aplicativo."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,67 +0,0 @@
/*
* FILE: base/setup/welcome/lang/ro-RO.rc
* ReactOS Project (http://www.reactos.org)
* TRANSLATOR: Fulea Ștefan (PM on ReactOS Forum to fulea.stefan)
* CHANGE LOG: 2011-10-30 initial translation
*/
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Bun venit"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Bun venit în Sistemul de Operare React.\n\nAlegeți o opțiune din stânga."
// IDS_CHECKTEXT "Afișează acest dialog și altă dată"
// IDS_CLOSETEXT "Ieșire"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Instalare ReactOS"
IDS_TOPICBUTTON1 "Explorare CD"
IDS_TOPICBUTTON2 "Ieșire"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Instalare ReactOS"
IDS_TOPICTITLE1 "Explorare CD"
IDS_TOPICTITLE2 "Ieșire"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Creați o instalare nouă sau actualizați o instalare existentă."
IDS_TOPICDESC1 "Explorați conținutul acestui CD."
IDS_TOPICDESC2 "Apăsați pentru a ieși din aplicație."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,62 +0,0 @@
/* $Id: En.rc 21257 2006-03-08 23:07:09Z audit $ */
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Добро пожаловать!"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Добро пожаловать в ReactOS.\n\nВыберите пункт слева."
// IDS_CHECKTEXT "Показывать это окно снова"
// IDS_CLOSETEXT "Выход"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Установить ReactOS"
IDS_TOPICBUTTON1 "Обзор диска"
IDS_TOPICBUTTON2 "Выход"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Установить ReactOS"
IDS_TOPICTITLE1 "Обзор диска"
IDS_TOPICTITLE2 "Выход"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Установит ReactOS на Ваш компьютер с нуля или обновит уже установленную версию."
IDS_TOPICDESC1 "Обзор диска."
IDS_TOPICDESC2 "Выберите для выхода из этого приложения."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,62 +0,0 @@
// Slovak translation by Kario 2007 <kario@szm.sk>
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Vitajte"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Vitajte v operačnom systéme ReactOS.\n\nKliknite na tlačidlo v ľavom stĺpci."
// IDS_CHECKTEXT "Zobraziť toto okno aj nabudúce"
// IDS_CLOSETEXT "Koniec"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Inštalovať ReactOS"
IDS_TOPICBUTTON1 "Prezerať toto CD"
IDS_TOPICBUTTON2 "Koniec"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Inštalovať ReactOS"
IDS_TOPICTITLE1 "Prezerať toto CD"
IDS_TOPICTITLE2 "Koniec"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Nainštaluje ReactOS na Váš počítač alebo zaktualizuje už existujúci systém."
IDS_TOPICDESC1 "Prezerať toto CD."
IDS_TOPICDESC2 "Kliknutím ukončíte tento program."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,80 +0,0 @@
/*
* Swedish (SE) resources
*
* Copyright (C) 2005 David Nordenberg
*
* 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.
*
* 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, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Välkommen"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Välkommen till React Operating System.\n\nKlicka på ett avsnitt till vänster."
// IDS_CHECKTEXT "Show this dialog again"
// IDS_CLOSETEXT "Exit"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Installera ReactOS"
IDS_TOPICBUTTON1 "Utforska skivan"
IDS_TOPICBUTTON2 "Avsluta"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Installera ReactOS"
IDS_TOPICTITLE1 "Utforska skivan"
IDS_TOPICTITLE2 "Avsluta"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Skapa en ny ReactOS installation på den här datorn eller uppgradera en befintlig."
IDS_TOPICDESC1 "Utforska skivan."
IDS_TOPICDESC2 "Avsluta det här programmet."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,67 +0,0 @@
/*
* PROJECT: ReactOS welcome/autorun application
* LICENSE: See COPYING in the top level directory
* FILE: base/setup/welcome/lang/th-TH.rc
* TRANSLATOR: Sumath Aowsakulsutthi
*/
LANGUAGE LANG_THAI, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - ยินดีต้อนรับ"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "ยินดีต้อนรับสู่ระบบปฏิบัติการ React \n\nกดเลือกเนื้อหาบนแถบซ้ายมือ"
// IDS_CHECKTEXT "แสดงคำแนะนำอีกครั้ง"
// IDS_CLOSETEXT "ออกจากโปรแกรม"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "ติดตั้ง ReactOS"
IDS_TOPICBUTTON1 "ดูรายละเอียดของแผ่นซีดีนี้"
IDS_TOPICBUTTON2 "ออกจากโปรแกรม"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "ติดตั้ง ReactOS"
IDS_TOPICTITLE1 "ดูรายละเอียดของแผ่นซีดีนี้"
IDS_TOPICTITLE2 "ออกจากโปรแกรม"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "คุณต้องการติดตั้ง ReactOS ลงในเครื่องคอมพิวเตอร์ของคุณ\n\nหรือต้องการปรับแต่งเพิ่มเติมจากที่มีอยู่เดิม."
IDS_TOPICDESC1 "ดูรายละเอียดของแผ่นซีดีนี้."
IDS_TOPICDESC2 "กดเลือกที่นี่เพื่อต้องการออกจากการติดตั้ง."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,80 +0,0 @@
/*
* Welcome (Ukrainian resources)
*
* Copyright 2006 Artem Reznikov
*
* 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.
*
* 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, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - Ласкаво просимо"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "Ласкаво просимо до операційної системи ReactOS.\n\nКлацніть по темі ліворуч"
// IDS_CHECKTEXT "Показувати цей діалог знов"
// IDS_CLOSETEXT "Вихід"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "Встановлення ReactOS"
IDS_TOPICBUTTON1 "Огляд цього CD"
IDS_TOPICBUTTON2 "Вихід"
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "Встановлення ReactOS"
IDS_TOPICTITLE1 "Огляд цього CD"
IDS_TOPICTITLE2 "Вихід"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "Створення нової інсталяції ReactOS на Вашому комп'ютері чи оновлення існуючої інсталяції."
IDS_TOPICDESC1 "Проглянути CD."
IDS_TOPICDESC2 "Натисніть для виходу з цієї програми."
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -1,80 +0,0 @@
/*
* welcome (Simplified Chinese resources)
* (简体中文资源)
* Copyright 2007 zhangbing <e_zb@21cn.com, ezb@mail.gywb.cn>
*
* 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 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser 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
*/
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
/* String Tables */
/* Default settings */
STRINGTABLE DISCARDABLE
BEGIN
IDS_APPTITLE "ReactOS - 欢迎"
IDS_DEFAULTTOPICTITLE "ReactOS"
IDS_DEFAULTTOPICDESC "欢迎使用 React 操作系统。\n\n 请点击左边的主题。"
// IDS_CHECKTEXT "Show this dialog again"
// IDS_CLOSETEXT "Exit"
END
/* Topic buttons */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICBUTTON0 "安装 ReactOS"
IDS_TOPICBUTTON1 "浏览 CD"
IDS_TOPICBUTTON2 "退出 "
// IDS_TOPICBUTTON3 "Empty Topic 3"
// IDS_TOPICBUTTON4 "Empty Topic 4"
// IDS_TOPICBUTTON5 "Empty Topic 5"
// IDS_TOPICBUTTON6 "Empty Topic 6"
// IDS_TOPICBUTTON7 "Empty Topic 7"
// IDS_TOPICBUTTON8 "Empty Topic 8"
// IDS_TOPICBUTTON9 "Empty Topic 9"
END
/* Topic titles */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICTITLE0 "安装 ReactOS"
IDS_TOPICTITLE1 "浏览 CD"
IDS_TOPICTITLE2 "退出"
// IDS_TOPICTITLE3 "Empty Topic Title 3"
// IDS_TOPICTITLE4 "Empty Topic Title 4"
// IDS_TOPICTITLE5 "Empty Topic Title 5"
// IDS_TOPICTITLE6 "Empty Topic Title 6"
// IDS_TOPICTITLE7 "Empty Topic Title 7"
// IDS_TOPICTITLE8 "Empty Topic Title 8"
// IDS_TOPICTITLE9 "Empty Topic Title 9"
END
/* Topic descriptions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICDESC0 "重新安装 ReactOS 或 更新你的ReactOS 。"
IDS_TOPICDESC1 "浏览 CD 的内容。"
IDS_TOPICDESC2 "点击退出应用程序。"
// IDS_TOPICDESC3 "Topic description 3.\n\nDescribe topic 3 here."
// IDS_TOPICDESC4 "Topic description 4.\n\nDescribe topic 4 here."
// IDS_TOPICDESC5 "Topic description 5.\n\nDescribe topic 5 here."
// IDS_TOPICDESC6 "Topic description 6.\n\nDescribe topic 6 here."
// IDS_TOPICDESC7 "Topic description 7.\n\nDescribe topic 7 here."
// IDS_TOPICDESC8 "Topic description 8.\n\nDescribe topic 8 here."
// IDS_TOPICDESC9 "Topic description 9.\n\nDescribe topic 9 here."
END
/* EOF */

View File

@@ -22,47 +22,7 @@ IDB_TITLEBITMAP BITMAP DISCARDABLE "res/title.bmp"
//IDB_TOPICBITMAP9 BITMAP DISCARDABLE "res/topic9.bmp"
/* Topic actions */
STRINGTABLE DISCARDABLE
BEGIN
IDS_TOPICACTION0 "reactos.exe"
IDS_TOPICACTION1 "explorer.exe"
IDS_TOPICACTION2 "<exit>" /* this quits the app */
// IDS_TOPICACTION3 "..."
// IDS_TOPICACTION4 "..."
// IDS_TOPICACTION5 "..."
// IDS_TOPICACTION6 "..."
// IDS_TOPICACTION7 "..."
// IDS_TOPICACTION8 "..."
// IDS_TOPICACTION9 "..."
END
/* Language-specific resources */
// UTF-8
#pragma code_page(65001)
#include "lang/bg-BG.rc"
#include "lang/cs-CZ.rc"
#include "lang/da-DK.rc"
#include "lang/de-DE.rc"
#include "lang/el-GR.rc"
#include "lang/en-US.rc"
#include "lang/es-ES.rc"
#include "lang/et-EE.rc"
#include "lang/fr-FR.rc"
#include "lang/hu-HU.rc"
#include "lang/id-ID.rc"
#include "lang/it-IT.rc"
#include "lang/ja-JP.rc"
#include "lang/lt-LT.rc"
#include "lang/no-NO.rc"
#include "lang/nl-NL.rc"
#include "lang/pl-PL.rc"
#include "lang/pt-BR.rc"
#include "lang/ro-RO.rc"
#include "lang/ru-RU.rc"
#include "lang/sk-SK.rc"
#include "lang/sv-SE.rc"
#include "lang/th-TH.rc"
#include "lang/uk-UA.rc"
#include "lang/zh-CN.rc"

View File

@@ -46,6 +46,7 @@
#define TITLE_WIDTH 480
#define TITLE_HEIGHT 93
#define TOPIC_DESC_LENGTH 1024
/* GLOBALS ******************************************************************/
@@ -238,16 +239,12 @@ ButtonSubclassWndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static BOOL
RunApplication(int nTopic)
{
PROCESS_INFORMATION ProcessInfo;
STARTUPINFO StartupInfo;
TCHAR AppName[256];
TCHAR CurrentDir[256];
TCHAR AppName[512];
TCHAR Parameters[2];
int nLength;
InvalidateRect(hwndMain, NULL, TRUE);
GetCurrentDirectory(256, CurrentDir);
nLength = LoadString(hInstance, IDS_TOPICACTION0 + nTopic, AppName, 256);
if (nLength == 0)
return TRUE;
@@ -255,25 +252,18 @@ RunApplication(int nTopic)
if (!_tcsicmp(AppName, TEXT("<exit>")))
return FALSE;
if (!_tcsnicmp(AppName, TEXT("<msg>"), 5))
{
MessageBox(hwndMain, AppName + 5, TEXT("ReactOS"), MB_OK | MB_TASKMODAL);
return TRUE;
}
if (_tcsicmp(AppName, TEXT("explorer.exe")) == 0)
{
_tcscat(AppName, TEXT(" "));
_tcscat(AppName, CurrentDir);
}
_tcscpy(Parameters, TEXT("\\"));
else
*Parameters = 0;
memset(&StartupInfo, 0, sizeof(STARTUPINFO));
StartupInfo.cb = sizeof(STARTUPINFO);
StartupInfo.lpTitle = TEXT("Test");
StartupInfo.dwFlags = STARTF_USESHOWWINDOW;
StartupInfo.wShowWindow = SW_SHOWNORMAL;
CreateProcess(NULL, AppName, NULL, NULL, FALSE, CREATE_NEW_CONSOLE,NULL,
CurrentDir,
&StartupInfo,
&ProcessInfo);
CloseHandle(ProcessInfo.hProcess);
CloseHandle(ProcessInfo.hThread);
ShellExecute(NULL, TEXT("open"), AppName, Parameters, NULL, SW_SHOWDEFAULT);
return TRUE;
}
@@ -521,7 +511,7 @@ OnPaint(HWND hWnd, WPARAM wParam, LPARAM lParam)
HFONT hOldFont;
RECT rcTitle, rcDescription;
TCHAR szTopicTitle[80];
TCHAR szTopicDesc[256];
TCHAR szTopicDesc[TOPIC_DESC_LENGTH];
int nLength;
BITMAP bmpInfo;
TCHAR version[50];
@@ -605,13 +595,13 @@ OnPaint(HWND hWnd, WPARAM wParam, LPARAM lParam)
if (nTopic == -1)
{
nLength = LoadString(hInstance, IDS_DEFAULTTOPICDESC, szTopicDesc, 256);
nLength = LoadString(hInstance, IDS_DEFAULTTOPICDESC, szTopicDesc, TOPIC_DESC_LENGTH);
}
else
{
nLength = LoadString(hInstance, IDS_TOPICDESC0 + nTopic, szTopicDesc, 256);
nLength = LoadString(hInstance, IDS_TOPICDESC0 + nTopic, szTopicDesc, TOPIC_DESC_LENGTH);
if (nLength == 0)
nLength = LoadString(hInstance, IDS_DEFAULTTOPICDESC, szTopicDesc, 256);
nLength = LoadString(hInstance, IDS_DEFAULTTOPICDESC, szTopicDesc, TOPIC_DESC_LENGTH);
}
SetBkMode(hdc, TRANSPARENT);

View File

@@ -5,6 +5,7 @@
<include base="welcome">.</include>
<library>gdi32</library>
<library>user32</library>
<library>shell32</library>
<file>welcome.c</file>
<file>welcome.rc</file>
</module>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -818,20 +818,14 @@ UpdateStartMenu(IN OUT IMenuPopup *pMenuPopup,
(PVOID)&pbb);
if (SUCCEEDED(hRet))
{
// hRet = IBanneredBar_SetBitmap(pbb,
// hbmBanner);
hRet = pbb->lpVtbl->SetBitmap(pbb,
hbmBanner);
hRet = IBanneredBar_SetBitmap(pbb, hbmBanner);
/* Update the icon size */
//hRet = IBanneredBar_SetIconSize(pbb,
// bSmallIcons ? BMICON_SMALL : BMICON_LARGE);
hRet = pbb->lpVtbl->SetIconSize(pbb,
hRet = IBanneredBar_SetIconSize(pbb,
bSmallIcons ? BMICON_SMALL : BMICON_LARGE);
//IBanneredBar_Release(pbb);
pbb->lpVtbl->Release(pbb);
IBanneredBar_Release(pbb);
}
return hRet;
@@ -889,11 +883,8 @@ CreateStartMenu(IN ITrayWindow *Tray,
hr = IMenuPopup_QueryInterface(pMp, &IID_IInitializeObject, (PVOID*)&pIo);
if (SUCCEEDED(hr))
{
//hr = IInitializeObject_Initialize(pIo);
hr = pIo->lpVtbl->Initialize(pIo);
//IInitializeObject_Release(pIo);
pIo->lpVtbl->Release(pIo);
hr = IInitializeObject_Initialize(pIo);
IInitializeObject_Release(pIo);
}
else
hr = S_OK;

View File

@@ -1,41 +1,11 @@
#pragma once
#ifdef INTERFACE
#undef INTERFACE
#endif
/* FIXME: Ugly hack!!! FIX ASAP! Move to uuid! */
static const GUID IID_HACK_IShellView2 = {0x88E39E80,0x3578,0x11CF,{0xAE,0x69,0x08,0x00,0x2B,0x2E,0x12,0x62}};
#define IID_IShellView2 IID_HACK_IShellView2
static const GUID IID_HACK_IShellView3 = {0xEC39FA88,0xF8AF,0x41CF,{0x84,0x21,0x38,0xBE,0xD2,0x8F,0x46,0x73}};
#define IID_IShellView3 IID_HACK_IShellView2
static const GUID VID_HACK_LargeIcons = {0x0057D0E0, 0x3573, 0x11CF, {0xAE, 0x69, 0x08, 0x00, 0x2B, 0x2E, 0x12, 0x62}};
#define VID_LargeIcons VID_HACK_LargeIcons
static const GUID IID_HACK_IDeskBarClient = {0xEB0FE175, 0x1A3A, 0x11D0, {0x89, 0xB3, 0x00, 0xA0, 0xC9, 0x0A, 0x90, 0xAC}};
#define IID_IDeskBarClient IID_HACK_IDeskBarClient
static const GUID IID_HACK_IDeskBar = {0xEB0FE173, 0x1A3A, 0x11D0, {0x89, 0xB3, 0x00, 0xA0, 0xC9, 0x0A, 0x90, 0xAC}};
#define IID_IDeskBar IID_HACK_IDeskBar
static const GUID IID_HACK_IMenuPopup = {0xD1E7AFEB,0x6A2E,0x11D0,{0x8C,0x78,0x00,0xC0,0x4F,0xD9,0x18,0xB4}};
#define IID_IMenuPopup IID_HACK_IMenuPopup
static const GUID IID_HACK_IBanneredBar = {0x596A9A94,0x013E,0x11D1,{0x8D,0x34,0x00,0xA0,0xC9,0x0F,0x27,0x19}};
#define IID_IBanneredBar IID_HACK_IBanneredBar
static const GUID IID_HACK_IInitializeObject = {0x4622AD16,0xFF23,0x11D0,{0x8D,0x34,0x00,0xA0,0xC9,0x0F,0x27,0x19}};
#define IID_IInitializeObject IID_HACK_IInitializeObject
static const GUID SID_HACK_SMenuPopup = {0xD1E7AFEB,0x6A2E,0x11D0,{0x8C,0x78,0x00,0xC0,0x4F,0xD9,0x18,0xB4}};
#define SID_SMenuPopup SID_HACK_SMenuPopup
#ifdef COBJMACROS
#define IDeskBarClient_QueryInterface(T,a,b) (T)->lpVtbl->QueryInterface(T,a,b)
#define IDeskBarClient_AddRef(T) (T)->lpVtbl->AddRef(T)
#define IDeskBarClient_Release(T) (T)->lpVtbl->Release(T)
#define IDeskBarClient_GetWindow(T,a) (T)->lpVtbl->GetWindow(T,a)
#define IDeskBarClient_ContextSensitiveHelp(T,a) (T)->lpVtbl->ContextSensitiveHelp(T,a)
#define IDeskBarClient_SetDeskBarSite(T,a) (T)->lpVtbl->SetDeskBarSite(T,a)
#define IDeskBarClient_SetModeDBC(T,a) (T)->lpVtbl->SetModeDBC(T,a)
#define IDeskBarClient_UIActivateDBC(T,a) (T)->lpVtbl->UIActivateDBC(T,a)
#define IDeskBarClient_GetSize(T,a,b) (T)->lpVtbl->GetSize(T,a,b)
#endif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -171,7 +171,7 @@
<property name="BASEADDRESS_MSCTF" value="0x746e0000" />
<property name="BASEADDRESS_QUARTZ" value="0x747d0000" />
<property name="BASEADDRESS_USERENV" value="0x74850000" />
<property name="BASEADDRESS_SYSSETUP" value="0x74a10000" />
<property name="BASEADDRESS_SYSSETUP" value="0x74900000" />
<property name="BASEADDRESS_WS2_32" value="0x74aa0000" />
<property name="BASEADDRESS_POWRPROF" value="0x74ad0000" />
<property name="BASEADDRESS_MSXML3" value="0x74ae0000" />

View File

@@ -316,6 +316,10 @@ HKCR,"NDS\Clsid","",0x00000002,"{323991f0-7bad-11cf-b03d-00aa006e0975}"
HKCR,"WinNT\Clsid","",0x00000002,"{8b20cd60-0f29-11cf-abc4-02608c9e7553}"
; Applications
HKCR,"Applications\notepad.exe\shell\open\command","",0x00000002,"notepad.exe %1"
HKCR,"Applications\mspaint.exe\shell\open\command","",0x00000002,"mspaint.exe %1"
HKCR,"Applications\wordpad.exe\shell\open\command","",0x00000002,"wordpad.exe %1"
; For language support:

Binary file not shown.

View File

@@ -1398,20 +1398,6 @@ HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSe
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\Vga\Device0","DefaultSettings.XResolution",0x00010001,640
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\Vga\Device0","DefaultSettings.YResolution",0x00010001,480
; USB uhci/ehci driver
;HKLM,"SYSTEM\CurrentControlSet\Services\usbdrv","ErrorControl",0x00010001,0x00000000
;HKLM,"SYSTEM\CurrentControlSet\Services\usbdrv","Group",0x00000000,"Base"
;HKLM,"SYSTEM\CurrentControlSet\Services\usbdrv","ImagePath",0x00020000,"system32\drivers\usbdrv.sys"
;HKLM,"SYSTEM\CurrentControlSet\Services\usbdrv","Start",0x00010001,0x00000001
;HKLM,"SYSTEM\CurrentControlSet\Services\usbdrv","Type",0x00010001,0x00000001
; USB storage driver
;HKLM,"SYSTEM\CurrentControlSet\Services\usbstor","ErrorControl",0x00010001,0x00000000
;HKLM,"SYSTEM\CurrentControlSet\Services\usbstor","Group",0x00000000,"Extended Base"
;HKLM,"SYSTEM\CurrentControlSet\Services\usbstor","ImagePath",0x00020000,"system32\drivers\usbstor.sys"
;HKLM,"SYSTEM\CurrentControlSet\Services\usbstor","Start",0x00010001,0x00000003
;HKLM,"SYSTEM\CurrentControlSet\Services\usbstor","Type",0x00010001,0x00000001
; Windows Installer Service
HKLM,"SYSTEM\CurrentControlSet\Services\MSIserver","DisplayName",0x00000000,"ReactOS Installer"
HKLM,"SYSTEM\CurrentControlSet\Services\MSIserver","Description",0x00000000,"Controls installation, maintenance, and removal of software packaged as an msi (Windows Installer)"

View File

@@ -1666,7 +1666,7 @@ HKLM,"SYSTEM\CurrentControlSet\Services\Themes","ErrorControl",0x00010001,0x0000
HKLM,"SYSTEM\CurrentControlSet\Services\Themes","Group",0x00000000,"UIGroup"
HKLM,"SYSTEM\CurrentControlSet\Services\Themes","ImagePath",0x00020000,"%SystemRoot%\system32\thmsvc.exe"
HKLM,"SYSTEM\CurrentControlSet\Services\Themes","ObjectName",0x00000000,"LocalSystem"
HKLM,"SYSTEM\CurrentControlSet\Services\Themes","Start",0x00010001,0x00000003
HKLM,"SYSTEM\CurrentControlSet\Services\Themes","Start",0x00010001,0x00000002
HKLM,"SYSTEM\CurrentControlSet\Services\Themes","Type",0x00010001,0x00000020
; Sound Blaster (NT4)
@@ -1730,20 +1730,6 @@ HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSe
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\Vga\Device0","DefaultSettings.XResolution",0x00010001,640
HKLM,"SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\Vga\Device0","DefaultSettings.YResolution",0x00010001,480
; USB uhci/ehci driver
HKLM,"SYSTEM\CurrentControlSet\Services\usbdrv","ErrorControl",0x00010001,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Services\usbdrv","Group",0x00000000,"Base"
HKLM,"SYSTEM\CurrentControlSet\Services\usbdrv","ImagePath",0x00020000,"system32\drivers\usbdrv.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\usbdrv","Start",0x00010001,0x00000004
HKLM,"SYSTEM\CurrentControlSet\Services\usbdrv","Type",0x00010001,0x00000001
; USB storage driver
;HKLM,"SYSTEM\CurrentControlSet\Services\usbstor","ErrorControl",0x00010001,0x00000000
;HKLM,"SYSTEM\CurrentControlSet\Services\usbstor","Group",0x00000000,"Extended Base"
;HKLM,"SYSTEM\CurrentControlSet\Services\usbstor","ImagePath",0x00020000,"system32\drivers\usbstor.sys"
;HKLM,"SYSTEM\CurrentControlSet\Services\usbstor","Start",0x00010001,0x00000003
;HKLM,"SYSTEM\CurrentControlSet\Services\usbstor","Type",0x00010001,0x00000001
; Windows Installer Service
HKLM,"SYSTEM\CurrentControlSet\Services\MSIserver","DisplayName",0x00000000,"ReactOS Installer"
HKLM,"SYSTEM\CurrentControlSet\Services\MSIserver","Description",0x00000000,"Controls installation, maintenance, and removal of software packaged as an msi (Windows Installer)"

View File

@@ -21,6 +21,9 @@ Signature = "$ReactOS$"
6 = inf
7 = bin
8 = media
9 = Resources
10 = Resources\Themes
11 = Resources\Themes\Lautus
.InfEnd
@@ -694,6 +697,9 @@ media\inf\xboxdisp.inf 6
; Media Files
media\sounds\ReactOS_LogOn.wav 8
; Lautus Theme
media\themes\Lautus.msstyles 11 optional
; Ini Files
boot\bootdata\system.ini 4
@@ -888,4 +894,4 @@ modules\rostests\kmtests\example\example_drv.sys 7 o
modules\rostests\kmtests\ntos_io\iodeviceobject_drv.sys 7 optional
modules\rostests\kmtests\ntos_io\iohelper_drv.sys 7 optional
modules\wallpaper\Angelus_02_ROSWP.bmp 4 optional
modules\wallpaper\dark-clt2012.bmp 4 optional

View File

@@ -22,6 +22,9 @@ Signature = "$ReactOS$"
6 = inf
7 = bin
8 = media
9 = Resources
10 = Resources\Themes
11 = Resources\Themes\Lautus
.InfEnd
@@ -53,4 +56,4 @@ modules\optional\vmx_svga.inf 6 optional
modules\optional\vmx_svga.sys 2 optional
modules\optional\wine_gecko-1.0.0-x86.cab 4 optional
modules\wallpaper\Angelus_02_ROSWP.bmp 4 optional
modules\wallpaper\dark-clt2012.bmp 4 optional

View File

@@ -1,54 +1,25 @@
========================
ReactOS Version 0.3.x
Updated July 28, 2007
========================
===========================================================================
ReactOS Version 0.3.14
f<EFBFBD>r die Chemnitzer Linux-Tage 2012
===========================================================================
1. What is ReactOS?
-------------------
Willkommen zu ReactOS!
ReactOS is an Open Source effort to develop a quality operating system that is
compatible with applications and drivers written for the Microsoft Windows NT
family of operating systems (NT4, 2000, XP, 2003, Vista).
CD-INHALT:
Website: http://www.reactos.org/
* ReactOS Live-System/Installation
* ReactOS in einer virtuellen QEMU-Maschine
* ReactOS Build Environment (RosBE)
* Quellcode
Diese CD sollte unter Windows ein AutoRun-Programm starten. Alternativ
k<EFBFBD>nnen Sie sich den CD-Inhalt <20>ber einen Dateibrowser anschauen.
Die Ordnernamen sollten selbsterkl<6B>rend sein.
2. Relationship with the WINE project
-------------------------------------
Der gesamte Quellcode des Betriebssystems l<>sst sich unter Einsatz des
ReactOS Build Environments sowohl unter Windows als auch unter
Unix-<2D>hnlichen Betriebssystemen wie Linux kompilieren.
ReactOS has always intended to work with the WINE project to share as much
programming effort as possible. This mainly concerns User Mode DLLs and
still happens to a degree today. Other areas of cooperation lie in
applications and testing suites.
Weitere Informationen <20>ber ReactOS finden Sie unter www.reactos.org!
3. Future compatibility
-----------------------
The ReactOS project, although currently focused on Windows XP
compatibility, is always keeping an eye toward compatibility with
Windows Vista and future Windows NT releases.
4. Supporting other System Applications
---------------------------------------
The Windows NT architecture allows for subsystems, as does the ReactOS
architecture. A subsystem is an implementation of the APIs of another
operating system, allowing ReactOS to run applications from other systems. We
are already looking at subsystems for: Java, OS/2, and DOS and possibly others
in the future.
5. Tutorials
------------
Developer and User Tutorials: http://www.reactos.org/wiki/index.php/Main_Page
The tutorials contain more information on the project, compiling and testing
ReactOS - among other topics. Contributors to the project are always welcome.
6. Author
---------
This document was written by Jason Filby (jasonfilby@yahoo.com).
===========================================================================

View File

@@ -32,7 +32,6 @@ kdcom.dll=,,,,,,,,,,,,2
disk.sys=,,,,,,x,,,,,,4
floppy.sys=,,,,,,x,,,,,,4
i8042prt.sys=,,,,,,x,,,,,,4
usbdrv.sys=,,,,,,,,,,,,4
kbdclass.sys=,,,,,,x,,,,,,4
l_intl.nls=,,,,,,,,,,,,2
ntfs.sys=,,,,,,,,,,,,4

View File

@@ -250,7 +250,8 @@ DetectPnpBios(PCONFIGURATION_COMPONENT_DATA SystemKey, ULONG *BusNumber)
TRACE("Estimated buffer size %u\n", NodeSize * NodeCount);
/* Set 'Configuration Data' value */
Size = sizeof(CM_PARTIAL_RESOURCE_LIST) + (NodeSize * NodeCount);
Size = sizeof(CM_PARTIAL_RESOURCE_LIST)
+ sizeof(CM_PNP_BIOS_INSTALLATION_CHECK) + (NodeSize * NodeCount);
PartialResourceList = MmHeapAlloc(Size);
if (PartialResourceList == NULL)
{
@@ -268,8 +269,8 @@ DetectPnpBios(PCONFIGURATION_COMPONENT_DATA SystemKey, ULONG *BusNumber)
PartialResourceList->PartialDescriptors[0].ShareDisposition =
CmResourceShareUndetermined;
Ptr = (char *)(((ULONG_PTR)&PartialResourceList->PartialDescriptors[0]) +
sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR));
/* The buffer starts after PartialResourceList->PartialDescriptors[0] */
Ptr = (char *)(PartialResourceList + 1);
/* Set instalation check data */
memcpy (Ptr, InstData, sizeof(CM_PNP_BIOS_INSTALLATION_CHECK));
@@ -292,6 +293,12 @@ DetectPnpBios(PCONFIGURATION_COMPONENT_DATA SystemKey, ULONG *BusNumber)
DeviceNode->Size,
DeviceNode->Size);
if (PnpBufferSize + DeviceNode->Size > Size)
{
ERR("Buffer too small!\n");
break;
}
memcpy (Ptr,
DeviceNode,
DeviceNode->Size);

View File

@@ -231,15 +231,20 @@ VOID RunLoader(VOID)
IniOpenSection("Operating Systems", &SectionId);
IniReadSettingByName(SectionId, SectionName, SettingValue, sizeof(SettingValue));
#ifndef _M_ARM
// Install the drive mapper according to this sections drive mappings
#if defined(_M_IX86) && !defined(_MSC_VER)
DriveMapMapDrivesInSection(SectionName);
#endif
#ifdef FREELDR_REACTOS_SETUP
// WinLdr-style boot
LoadReactOSSetup();
#elif defined(_M_IX86)
if (_stricmp(BootType, "ReactOSSetup") == 0)
{
LoadReactOSSetup();
}
else
#endif
#ifdef _M_IX86
if (_stricmp(BootType, "Windows") == 0)
{
LoadAndBootWindows(SectionName, SettingValue, 0);
@@ -268,6 +273,7 @@ VOID RunLoader(VOID)
{
LoadAndBootDrive(SectionName);
}
#endif
#else
LoadAndBootWindows(SectionName, SettingValue, _WIN32_WINNT_WS03);
#endif

View File

@@ -294,7 +294,8 @@ function(set_module_type MODULE TYPE)
set(__subsystem console)
elseif(${TYPE} STREQUAL win32gui)
set(__subsystem windows)
elseif(NOT ((${TYPE} STREQUAL win32dll) OR (${TYPE} STREQUAL win32ocx) OR (${TYPE} STREQUAL cpl)))
elseif(NOT ((${TYPE} STREQUAL win32dll) OR (${TYPE} STREQUAL win32ocx)
OR (${TYPE} STREQUAL cpl) OR (${TYPE} STREQUAL module)))
message(FATAL_ERROR "Unknown type ${TYPE} for module ${MODULE}")
endif()
@@ -336,6 +337,8 @@ function(set_module_type MODULE TYPE)
elseif(${TYPE} STREQUAL nativedll)
set(__entrypoint DllMain)
set(__entrystack 12)
elseif(${TYPE} STREQUAL module)
set(__entrypoint 0)
endif()
if(DEFINED __entrypoint)

View File

@@ -213,15 +213,15 @@ endif()
#SET(CMAKE_C_LINK_EXECUTABLE "<CMAKE_COMMAND> -E vs_link_exe ${CMAKE_C_LINK_EXECUTABLE}")
SET(CMAKE_BUILD_TYPE_INIT Debug)
SET(CMAKE_CXX_FLAGS_DEBUG_INIT "/Zi /Ob0 /Od")
SET(CMAKE_C_FLAGS_DEBUG_INIT "/Zi /Ob0 /Od")
SET(CMAKE_CXX_FLAGS_DEBUG_INIT "")
SET(CMAKE_C_FLAGS_DEBUG_INIT "")
SET(CMAKE_CXX_FLAGS_INIT "")
SET(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "/O1 /Ob1 /D NDEBUG")
SET(CMAKE_CXX_FLAGS_RELEASE_INIT "/O2 /Ob2 /D NDEBUG")
SET(CMAKE_CXX_FLAGS_RELEASE_INIT "")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "/Zi /O2 /Ob1")
SET(CMAKE_C_FLAGS_INIT "")
SET(CMAKE_C_FLAGS_MINSIZEREL_INIT "/O1 /Ob1 /D NDEBUG")
SET(CMAKE_C_FLAGS_RELEASE_INIT "/O2 /Ob2 /D NDEBUG")
SET(CMAKE_C_FLAGS_RELEASE_INIT "")
SET(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "/Zi /O2 /Ob1")
SET(CMAKE_C_STANDARD_LIBRARIES_INIT "")
SET(CMAKE_EXE_LINKER_FLAGS_INIT "${CMAKE_EXE_LINKER_FLAGS_INIT}")

View File

@@ -41,3 +41,8 @@ This settings is disabled (0) by default.")
set(USERMODE TRUE CACHE BOOL
"Whether to compile any usermode parts. This is while kernel mode is under
heavy development and usermode part not relevant for bootcd.")
if(MSVC)
set(_PREFAST_ FALSE CACHE BOOL
"Whether to enable PREFAST while compiling.")
endif()

View File

@@ -25,14 +25,23 @@ set(GDB FALSE CACHE BOOL
"Whether to compile for debugging with GDB.
If you don't use GDB, don't enable this.")
set(DBG TRUE CACHE BOOL
if(${CMAKE_BUILD_TYPE} MATCHES Release)
set(DBG FALSE CACHE BOOL
"Whether to compile for debugging.")
else()
set(DBG TRUE CACHE BOOL
"Whether to compile for debugging.")
endif()
if(MSVC)
set(KDBG FALSE CACHE BOOL
"Whether to compile in the integrated kernel debugger.")
set(_WINKD_ TRUE CACHE BOOL
"Whether to compile with the KD protocol.")
if(${CMAKE_BUILD_TYPE} MATCHES Release)
set(_WINKD_ FALSE CACHE BOOL "Whether to compile with the KD protocol.")
else()
set(_WINKD_ TRUE CACHE BOOL "Whether to compile with the KD protocol.")
endif()
else()
set(KDBG TRUE CACHE BOOL
"Whether to compile in the integrated kernel debugger.")
@@ -55,3 +64,8 @@ set(BUILD_MP TRUE CACHE BOOL
set(GENERATE_DEPENDENCY_GRAPH FALSE CACHE BOOL
"Whether to create a graphml dependency of dlls.")
if(MSVC)
set(_PREFAST_ FALSE CACHE BOOL
"Whether to enable PREFAST while compiling.")
endif()

View File

@@ -53,7 +53,7 @@ function(get_defines OUTPUT_VAR)
set(${OUTPUT_VAR} ${__tmp_var} PARENT_SCOPE)
endfunction()
function(add_typelib TARGET)
function(add_typelib)
get_includes(INCLUDES)
get_defines(DEFINES)
foreach(FILE ${ARGN})
@@ -64,7 +64,6 @@ function(add_typelib TARGET)
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${FILE} ${IDL_DEPENDS})
list(APPEND OBJECTS ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.tlb)
endforeach()
add_custom_target(${TARGET} ALL DEPENDS ${OBJECTS})
endfunction()
function(add_idl_headers TARGET)

View File

@@ -21,6 +21,16 @@ add_definitions(/Dinline=__inline /D__STDC__=1)
add_compile_flags("/X /GR- /GS- /Zl /W3")
# Debugging
if(${CMAKE_BUILD_TYPE} MATCHES Debug)
if(NOT _PREFAST_)
add_compile_flags("/Zi")
endif()
add_compile_flags("/Ob0 /Od")
elseif(${CMAKE_BUILD_TYPE} MATCHES Release)
add_compile_flags("/Ob2 /D NDEBUG")
endif()
if(${_MACHINE_ARCH_FLAG} MATCHES X86)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO /NODEFAULTLIB /RELEASE")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO /NODEFAULTLIB /RELEASE")
@@ -43,15 +53,32 @@ if(MSVC_IDE)
# We may temporarily use just the global defines, but this is not a solution as some modules (minihal for example) apply additional definitions to source files, so we get an incorrect build of such targets.
get_directory_property(definitions DEFINITIONS)
set(CMAKE_ASM_COMPILE_OBJECT
"<CMAKE_C_COMPILER> /nologo /X /I${REACTOS_SOURCE_DIR}/include/asm /I${REACTOS_BINARY_DIR}/include/asm <FLAGS> ${definitions} /D__ASM__ /D_USE_ML /EP /c <SOURCE> > <OBJECT>.tmp"
"cl /nologo /X /I${REACTOS_SOURCE_DIR}/include/asm /I${REACTOS_BINARY_DIR}/include/asm <FLAGS> ${definitions} /D__ASM__ /D_USE_ML /EP /c <SOURCE> > <OBJECT>.tmp"
"<CMAKE_ASM_COMPILER> /nologo /Cp /Fo<OBJECT> /c /Ta <OBJECT>.tmp")
else()
# NMake Makefiles
set(CMAKE_ASM_COMPILE_OBJECT
"<CMAKE_C_COMPILER> /nologo /X /I${REACTOS_SOURCE_DIR}/include/asm /I${REACTOS_BINARY_DIR}/include/asm <FLAGS> <DEFINES> /D__ASM__ /D_USE_ML /EP /c <SOURCE> > <OBJECT>.tmp"
"cl /nologo /X /I${REACTOS_SOURCE_DIR}/include/asm /I${REACTOS_BINARY_DIR}/include/asm <FLAGS> <DEFINES> /D__ASM__ /D_USE_ML /EP /c <SOURCE> > <OBJECT>.tmp"
"<CMAKE_ASM_COMPILER> /nologo /Cp /Fo<OBJECT> /c /Ta <OBJECT>.tmp")
endif()
if(_PREFAST_)
if(MSVC_VERSION EQUAL 1600 OR MSVC_VERSION GREATER 1600)
add_compile_flags("/analyze")
else()
message("PREFAST enabled!")
set(CMAKE_C_COMPILE_OBJECT "prefast cl ${CMAKE_START_TEMP_FILE} ${CMAKE_CL_NOLOGO} <FLAGS> <DEFINES> /Fo<OBJECT> -c <SOURCE>${CMAKE_END_TEMP_FILE}"
"prefast LIST")
set(CMAKE_CXX_COMPILE_OBJECT "prefast cl ${CMAKE_START_TEMP_FILE} ${CMAKE_CL_NOLOGO} <FLAGS> <DEFINES> /TP /Fo<OBJECT> -c <SOURCE>${CMAKE_END_TEMP_FILE}"
"prefast LIST")
set(CMAKE_C_LINK_EXECUTABLE
"cl ${CMAKE_CL_NOLOGO} <OBJECTS> ${CMAKE_START_TEMP_FILE} <FLAGS> /Fe<TARGET> -link /implib:<TARGET_IMPLIB> /version:<TARGET_VERSION_MAJOR>.<TARGET_VERSION_MINOR> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>${CMAKE_END_TEMP_FILE}")
set(CMAKE_CXX_LINK_EXECUTABLE
"cl ${CMAKE_CL_NOLOGO} <OBJECTS> ${CMAKE_START_TEMP_FILE} <FLAGS> /Fe<TARGET> -link /implib:<TARGET_IMPLIB> /version:<TARGET_VERSION_MAJOR>.<TARGET_VERSION_MINOR> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>${CMAKE_END_TEMP_FILE}")
endif()
endif()
set(CMAKE_RC_CREATE_SHARED_LIBRARY ${CMAKE_C_CREATE_SHARED_LIBRARY})
set(CMAKE_ASM_CREATE_SHARED_LIBRARY ${CMAKE_C_CREATE_SHARED_LIBRARY})
set(CMAKE_ASM_CREATE_STATIC_LIBRARY ${CMAKE_C_CREATE_STATIC_LIBRARY})
@@ -197,7 +224,7 @@ function(CreateBootSectorTarget2 _target_name _asm_file _binary_file _base_addre
add_custom_command(
OUTPUT ${_temp_file}
COMMAND ${CMAKE_C_COMPILER} /nologo /X /I${REACTOS_SOURCE_DIR}/include/asm /I${REACTOS_BINARY_DIR}/include/asm /D__ASM__ /D_USE_ML /EP /c ${_asm_file} > ${_temp_file}
COMMAND cl /nologo /X /I${REACTOS_SOURCE_DIR}/include/asm /I${REACTOS_BINARY_DIR}/include/asm /D__ASM__ /D_USE_ML /EP /c ${_asm_file} > ${_temp_file}
DEPENDS ${_asm_file})
add_custom_command(

View File

@@ -4,9 +4,7 @@ add_subdirectory(appwiz)
add_subdirectory(console)#Warning: console\\/lang/cs-CZ.rc:143: unrecognized escape sequence
add_subdirectory(desk)
add_subdirectory(hdwwiz)
if(NOT MSVC)
add_subdirectory(inetcpl) # FIXME: msvc build.
endif()
add_subdirectory(inetcpl)
add_subdirectory(input)
add_subdirectory(intl)
add_subdirectory(joy)
@@ -20,3 +18,4 @@ add_subdirectory(sysdm)
add_subdirectory(telephon)
add_subdirectory(timedate)
add_subdirectory(usrmgr)
add_subdirectory(wined3dcfg)

View File

@@ -55,4 +55,7 @@
<directory name="usrmgr">
<xi:include href="usrmgr/usrmgr.rbuild" />
</directory>
<directory name="wined3dcfg">
<xi:include href="wined3dcfg/wined3dcfg.rbuild" />
</directory>
</group>

View File

@@ -28,7 +28,8 @@ add_importlibs(intl
advapi32
setupapi
shell32
kernel32)
kernel32
ntdll)
add_pch(intl intl.h)
add_cd_file(TARGET intl DESTINATION reactos/system32 FOR all)

View File

@@ -331,7 +331,8 @@ GeneralPageProc(HWND hwndDlg,
{
SetNewLocale(UnattendLCID);
PostQuitMessage(0);
}
} else
DPRINT1("VerifyUnattendLCID failed\n");
return TRUE;
}
break;

View File

@@ -67,29 +67,26 @@ OpenSetupInf(VOID)
lpCmdLine = GetCommandLine();
lpSwitch = _tcsstr(lpCmdLine, _T("/f:\""));
if(!lpSwitch)
{
if (!lpSwitch)
return FALSE;
}
len = _tcslen(lpSwitch);
if (len < 5)
{
return FALSE;
}
if(lpSwitch[len-1] != _T('\"'))
if (len < 5 || lpSwitch[len-1] != _T('\"'))
{
DPRINT1("Invalid switch: %ls\n", lpSwitch);
return FALSE;
}
lpSwitch[len-1] = _T('\0');
hSetupInf = SetupOpenInfFile(&lpSwitch[4], NULL,
INF_STYLE_OLDNT, NULL);
hSetupInf = SetupOpenInfFile(&lpSwitch[4], NULL, INF_STYLE_OLDNT, NULL);
if (hSetupInf == INVALID_HANDLE_VALUE)
{
DPRINT1("Failed to open INF file: %ls\n", &lpSwitch[4]);
return FALSE;
}
return (hSetupInf != INVALID_HANDLE_VALUE);
return TRUE;
}
VOID
@@ -104,6 +101,7 @@ ParseSetupInf(VOID)
&InfContext))
{
SetupCloseInfFile(hSetupInf);
DPRINT1("SetupFindFirstLine failed\n");
return;
}
@@ -111,6 +109,7 @@ ParseSetupInf(VOID)
sizeof(szBuffer) / sizeof(TCHAR), NULL))
{
SetupCloseInfFile(hSetupInf);
DPRINT1("SetupGetStringField failed\n");
return;
}

Some files were not shown because too many files have changed in this diff Show More