reactos.git
13 years ago[CMAKE]
Timo Kreuzer [Sun, 19 Sep 2010 20:06:02 +0000 (20:06 +0000)]
[CMAKE]
- Add support for gui configurable options
- globalize compiler specific cmake files
- Add compiler specific macros set_entrypoint, set_module_type

svn path=/branches/cmake-bringup/; revision=48821

13 years ago[CMAKE]
Timo Kreuzer [Sun, 19 Sep 2010 18:53:55 +0000 (18:53 +0000)]
[CMAKE]
Add RC compiler and Assembler to MSC toolchain

svn path=/branches/cmake-bringup/; revision=48820

13 years ago[CMAKE]
Timo Kreuzer [Sun, 19 Sep 2010 18:52:34 +0000 (18:52 +0000)]
[CMAKE]
Add MSVC compatible MC command

svn path=/branches/cmake-bringup/; revision=48819

13 years ago[MSVC]
Timo Kreuzer [Sun, 19 Sep 2010 17:39:09 +0000 (17:39 +0000)]
[MSVC]
Don't pass gcc specific options to msvc

svn path=/branches/cmake-bringup/; revision=48818

13 years ago[CMAKE]
Sylvain Petreolle [Sun, 19 Sep 2010 16:36:43 +0000 (16:36 +0000)]
[CMAKE]
Add ext2 to build.

svn path=/branches/cmake-bringup/; revision=48816

13 years ago[MSVC]
Timo Kreuzer [Sun, 19 Sep 2010 16:27:13 +0000 (16:27 +0000)]
[MSVC]
remove intrinsics that don't exist

svn path=/branches/cmake-bringup/; revision=48815

13 years ago[CMAKE]
Sylvain Petreolle [Sun, 19 Sep 2010 16:16:01 +0000 (16:16 +0000)]
[CMAKE]
Fix minicd boot regression.
Remove unneeded usetup link to msvcrt.

svn path=/branches/cmake-bringup/; revision=48814

13 years ago[CMAKE]
Amine Khaldi [Sun, 19 Sep 2010 11:19:16 +0000 (11:19 +0000)]
[CMAKE]
- Add network drivers (afd, ne2000, pcnet, ndis, tcpip and tdi) to build.

svn path=/branches/cmake-bringup/; revision=48811

13 years ago[CMAKE]
Amine Khaldi [Sun, 19 Sep 2010 00:27:24 +0000 (00:27 +0000)]
[CMAKE]
- Introduce MSVC toolchain support. Just use -DCMAKE_TOOLCHAIN_FILE=toolchain-msvc.cmake for the toolchain.
- Sync setjmp.h from trunk.
- Improve mingw targets (mingw_common, mingw_wmain, oldnames... etc) a bit to make them compile and link with msvc.
- Dedicated to Timo ;)

svn path=/branches/cmake-bringup/; revision=48809

13 years ago[CMAKE]
Amine Khaldi [Sun, 19 Sep 2010 00:15:45 +0000 (00:15 +0000)]
[CMAKE]
- *cough* Separate compiler specific flags.

svn path=/branches/cmake-bringup/; revision=48808

13 years ago[CMAKE]
Sylvain Petreolle [Sat, 18 Sep 2010 15:22:08 +0000 (15:22 +0000)]
[CMAKE]
Generalize CMAKE_C_CREATE_SHARED_LIBRARY and remove per project instances.
Thanks to Amine for regexxer tool discovery ;)

svn path=/branches/cmake-bringup/; revision=48804

13 years ago[CMAKE]
Amine Khaldi [Sat, 18 Sep 2010 12:14:03 +0000 (12:14 +0000)]
[CMAKE]
- Generalize CMAKE_C_LINK_EXECUTABLE and CMAKE_EXE_LINKER_FLAGS, and use additional flags per module.
- Fix usetup: make it depend on psdk and buildno_header, and also fix the entry point (_NtProcessStartup -> _NtProcessStartup@4)
- Make ext2lib depend on psdk.

svn path=/branches/cmake-bringup/; revision=48802

13 years ago[CMAKE]
Amine Khaldi [Fri, 17 Sep 2010 22:19:48 +0000 (22:19 +0000)]
[CMAKE]
- Export cdmake as a native tool.

svn path=/branches/cmake-bringup/; revision=48798

13 years agoAdd Amine's libgcc.a.
Sylvain Petreolle [Fri, 17 Sep 2010 20:41:58 +0000 (20:41 +0000)]
Add Amine's libgcc.a.
This allows to build without rosbe change.
(forgotten in previous commit)

svn path=/branches/cmake-bringup/; revision=48797

13 years agoMove all temporary import libs to a single directory.
Sylvain Petreolle [Fri, 17 Sep 2010 20:27:01 +0000 (20:27 +0000)]
Move all temporary import libs to a single directory.
This allows linking to libraries with "-lfoo".

svn path=/branches/cmake-bringup/; revision=48796

13 years ago[CMAKE]
Amine Khaldi [Mon, 13 Sep 2010 13:48:29 +0000 (13:48 +0000)]
[CMAKE]
- Add pci, pcixn pcmcia, videoprt and wmilib to build.

svn path=/branches/cmake-bringup/; revision=48765

13 years ago[CMAKE]
Amine Khaldi [Sun, 12 Sep 2010 21:03:47 +0000 (21:03 +0000)]
[CMAKE]
- Introduce support for the amd64 toolchain. Using it is as simple as adding -DARCH=amd64 to the cmake line (next to the toolchain file define).
- Dedicated to Sylvain (Usurp) ;)

svn path=/branches/cmake-bringup/; revision=48763

13 years ago[CMAKE]
Amine Khaldi [Sun, 12 Sep 2010 21:02:18 +0000 (21:02 +0000)]
[CMAKE]
- Improve bootvid, crt and ntoskrnl.

svn path=/branches/cmake-bringup/; revision=48762

13 years ago[CMAKE]
Amine Khaldi [Sun, 12 Sep 2010 19:38:21 +0000 (19:38 +0000)]
[CMAKE]
- Fix usetup build.

svn path=/branches/cmake-bringup/; revision=48760

13 years agoAdd usetup to build.
Sylvain Petreolle [Sun, 12 Sep 2010 15:12:20 +0000 (15:12 +0000)]
Add usetup to build.

svn path=/branches/cmake-bringup/; revision=48755

13 years ago[FREELDR]
Amine Khaldi [Sun, 5 Sep 2010 16:31:06 +0000 (16:31 +0000)]
[FREELDR]
- Update fathelp.S to reflect Timo's recent changes in trunk.

svn path=/branches/cmake-bringup/; revision=48702

13 years ago[CMAKE]
Amine Khaldi [Sat, 4 Sep 2010 16:59:33 +0000 (16:59 +0000)]
[CMAKE]
- Mark nci_output and nci_folders as lists.

svn path=/branches/cmake-bringup/; revision=48699

13 years ago[CMAKE]
Amine Khaldi [Sat, 4 Sep 2010 16:12:21 +0000 (16:12 +0000)]
[CMAKE]
- Mark nci output as generated.

svn path=/branches/cmake-bringup/; revision=48698

13 years ago[CMAKE]
Amine Khaldi [Sat, 4 Sep 2010 14:14:45 +0000 (14:14 +0000)]
[CMAKE]
- Add floppy to build.

svn path=/branches/cmake-bringup/; revision=48697

13 years ago[CMAKE]
Amine Khaldi [Sat, 4 Sep 2010 13:43:01 +0000 (13:43 +0000)]
[CMAKE]
- Add fastfat and isapnp to build.

svn path=/branches/cmake-bringup/; revision=48696

13 years ago[CMAKE]
Amine Khaldi [Sat, 4 Sep 2010 13:36:49 +0000 (13:36 +0000)]
[CMAKE]
- Add cdrom, class2, disk and ramdisk to build.

svn path=/branches/cmake-bringup/; revision=48695

13 years ago[CMAKE]
Amine Khaldi [Sat, 4 Sep 2010 13:16:29 +0000 (13:16 +0000)]
[CMAKE]
- Add buslogic to build.
- Fix a typo.

svn path=/branches/cmake-bringup/; revision=48694

13 years ago[CMAKE]
Amine Khaldi [Sat, 4 Sep 2010 12:57:01 +0000 (12:57 +0000)]
[CMAKE]
- Add atapi, blue, cdfs and uniata to build.

svn path=/branches/cmake-bringup/; revision=48693

13 years ago[CMAKE]
Amine Khaldi [Fri, 3 Sep 2010 14:33:39 +0000 (14:33 +0000)]
[CMAKE]
- Add battc, acpica and acpi to build.

svn path=/branches/cmake-bringup/; revision=48691

13 years ago[CMAKE]
Amine Khaldi [Fri, 3 Sep 2010 00:03:00 +0000 (00:03 +0000)]
[CMAKE]
- Improve gendib build.
- Add gendib generated source files.
- Add win32k to build. Dedicated to Timo ;)

svn path=/branches/cmake-bringup/; revision=48690

13 years ago[CMAKE]
Amine Khaldi [Thu, 2 Sep 2010 22:38:36 +0000 (22:38 +0000)]
[CMAKE]
- Add ftfd driver to build.

svn path=/branches/cmake-bringup/; revision=48689

13 years ago[FREELDR]
Amine Khaldi [Thu, 2 Sep 2010 21:00:02 +0000 (21:00 +0000)]
[FREELDR]
- Use fathelp.S from r43775 (amd64 branch by timo)
[CMAKE]
- Improve hal, ntoskrnl and freeldr/setupldr build.

svn path=/branches/cmake-bringup/; revision=48688

13 years ago[FREELDR]
Amine Khaldi [Thu, 2 Sep 2010 17:39:45 +0000 (17:39 +0000)]
[FREELDR]
- Convert fat12/16 boot sector helper code to gas syntax. Brought to you by the Arty.
[CMAKE]
- Add freeldr and setupldr to build.

svn path=/branches/cmake-bringup/; revision=48687

13 years ago[CMAKE]
Amine Khaldi [Tue, 31 Aug 2010 23:48:26 +0000 (23:48 +0000)]
[CMAKE]
- Add mini_hal to build.

svn path=/branches/cmake-bringup/; revision=48672

13 years ago[CMAKE]
Amine Khaldi [Tue, 31 Aug 2010 21:24:12 +0000 (21:24 +0000)]
[CMAKE]
- libcntpr needs buildno.h

svn path=/branches/cmake-bringup/; revision=48671

13 years ago[CMAKE]
Amine Khaldi [Tue, 31 Aug 2010 18:40:19 +0000 (18:40 +0000)]
[CMAKE]
- Add boot sectors to build.

svn path=/branches/cmake-bringup/; revision=48669

13 years ago[CMAKE]
Amine Khaldi [Tue, 31 Aug 2010 17:55:28 +0000 (17:55 +0000)]
[CMAKE]
- Add scsiport to build.

svn path=/branches/cmake-bringup/; revision=48668

13 years ago[CMAKE]
Amine Khaldi [Tue, 31 Aug 2010 16:30:02 +0000 (16:30 +0000)]
[CMAKE]
- Add bootvid, kddll, kdcom, nmidebug and null drivers to build.

svn path=/branches/cmake-bringup/; revision=48666

13 years ago[CMAKE]
Amine Khaldi [Tue, 31 Aug 2010 14:05:07 +0000 (14:05 +0000)]
[CMAKE]
- Add input drivers (i8042prt, kbdclass, mouclass and sermouse) to build.

svn path=/branches/cmake-bringup/; revision=48664

13 years ago[CMAKE]
Amine Khaldi [Tue, 31 Aug 2010 13:25:10 +0000 (13:25 +0000)]
[CMAKE]
- Improve handling buildno.h

svn path=/branches/cmake-bringup/; revision=48663

13 years ago[CMAKE]
Amine Khaldi [Tue, 31 Aug 2010 11:11:11 +0000 (11:11 +0000)]
[CMAKE]
- Add placeholders for the remaining dlls.

svn path=/branches/cmake-bringup/; revision=48662

13 years ago[CMAKE]
Amine Khaldi [Tue, 31 Aug 2010 10:34:15 +0000 (10:34 +0000)]
[CMAKE]
- Add beep driver to build.

svn path=/branches/cmake-bringup/; revision=48661

13 years ago[CMAKE]
Amine Khaldi [Mon, 30 Aug 2010 14:31:44 +0000 (14:31 +0000)]
[CMAKE]
- Add ze kirnel to build.

svn path=/branches/cmake-bringup/; revision=48659

13 years ago[CMAKE]
Amine Khaldi [Mon, 30 Aug 2010 14:30:09 +0000 (14:30 +0000)]
[CMAKE]
- Improve rossym lib.

svn path=/branches/cmake-bringup/; revision=48658

13 years ago[CMAKE]
Amine Khaldi [Mon, 30 Aug 2010 13:00:41 +0000 (13:00 +0000)]
[CMAKE]
- Improve pseh.

svn path=/branches/cmake-bringup/; revision=48656

13 years ago[CMAKE]
Amine Khaldi [Mon, 30 Aug 2010 12:37:44 +0000 (12:37 +0000)]
[CMAKE]
- Improve rtl.

svn path=/branches/cmake-bringup/; revision=48655

13 years ago[CMAKE]
Amine Khaldi [Sun, 29 Aug 2010 21:32:32 +0000 (21:32 +0000)]
[CMAKE]
- Improve ntdll.

svn path=/branches/cmake-bringup/; revision=48652

13 years ago[CMAKE]
Amine Khaldi [Sun, 29 Aug 2010 18:32:17 +0000 (18:32 +0000)]
[CMAKE]
- Improve kernel32.

svn path=/branches/cmake-bringup/; revision=48647

13 years ago[CMAKE]
Amine Khaldi [Sun, 29 Aug 2010 17:30:24 +0000 (17:30 +0000)]
[CMAKE]
- Add hal (yes, hal) to build.

svn path=/branches/cmake-bringup/; revision=48645

13 years ago[CMAKE]
Amine Khaldi [Sun, 29 Aug 2010 14:13:38 +0000 (14:13 +0000)]
[CMAKE]
- Add samsrv, sccbase, schannel, sensapi, serialui, shdoclc, shfolder, shlwapi, slbcsp, smdll, sndblst, snmpapi, spoolss, srclient, sxs, t2embed, tapi32, tapiui, traffic, updspapi, url, usp10 and uxtheme to build.
- Add mlang, mpr, and shell32 import libs.
- Fix shdoclc and shlwapi translations (patches will be sent upstream).
- Improve mmebuddy.

svn path=/branches/cmake-bringup/; revision=48644

13 years ago[CMAKE]
Amine Khaldi [Sun, 29 Aug 2010 11:07:31 +0000 (11:07 +0000)]
[CMAKE]
- Rewrite crt and libcntpr targets, with support for other than i386.
- Bring-in logf.c from trunk.

svn path=/branches/cmake-bringup/; revision=48643

13 years ago[CMAKE]
Amine Khaldi [Sat, 28 Aug 2010 17:41:06 +0000 (17:41 +0000)]
[CMAKE]
- Include crt headers when compiling RC files.

svn path=/branches/cmake-bringup/; revision=48634

13 years ago[CMAKE]
Amine Khaldi [Sat, 28 Aug 2010 13:20:03 +0000 (13:20 +0000)]
[CMAKE]
- Add mscoree, msg711.acm, msgina, msgsm32.acm, msimg32, msnet32, mssign32, mssip32, msvcrt20, msvcrt40, msvfw32, msvidc32, mswsock, nddeapi, netapi32, newdev, ntdsapi, ntlanman, ntprint, olecli32, oledlg, olesvr32, olethk32, pidgen, powrprof, printui, query, rasapi32, rasdlg, rasman, resutils and samlib to build.

svn path=/branches/cmake-bringup/; revision=48633

13 years ago[CMAKE]
Amine Khaldi [Mon, 23 Aug 2010 22:23:02 +0000 (22:23 +0000)]
[CMAKE]
- Add mciseq, mciwave, mmdrv, modemui, mpr, mprapi, msadp32.acm, msafd and mscms to build.
- Fixed mpr resource files (should be submitted upstream).

svn path=/branches/cmake-bringup/; revision=48613

13 years ago[CMAKE]
Amine Khaldi [Mon, 23 Aug 2010 15:23:35 +0000 (15:23 +0000)]
[CMAKE]
- Update user32 now that we have a target named imm32.

svn path=/branches/cmake-bringup/; revision=48609

13 years ago[CMAKE]
Amine Khaldi [Mon, 23 Aug 2010 14:40:47 +0000 (14:40 +0000)]
[CMAKE]
- Add fmifs, fusion, getuname, hid, httpapi, iccvid, icmp, imaadp32.acm, imagehlp, imm32, initpki, iphlpapi, itircl, loadperf, lpk, lz32, mapi32, mciavi32, mcicda and mciqtz32 to build.

svn path=/branches/cmake-bringup/; revision=48608

13 years ago[CMAKE]
Amine Khaldi [Mon, 23 Aug 2010 14:34:34 +0000 (14:34 +0000)]
[CMAKE]
- Temporarily add libdbghelp.a and libdhcpcsvc.a

svn path=/branches/cmake-bringup/; revision=48607

13 years ago[CMAKE]
Amine Khaldi [Sun, 22 Aug 2010 23:59:45 +0000 (23:59 +0000)]
[CMAKE]
- Add dciman32, dhcpcsvc, dnsapi, dwmapi and faultrep to build.

svn path=/branches/cmake-bringup/; revision=48599

13 years ago[CMAKE]
Amine Khaldi [Sun, 22 Aug 2010 23:46:10 +0000 (23:46 +0000)]
[CMAKE]
- Fix adns lib.

svn path=/branches/cmake-bringup/; revision=48598

13 years ago[CMAKE]
Amine Khaldi [Sun, 22 Aug 2010 22:52:07 +0000 (22:52 +0000)]
[CMAKE]
- Add compstui, credui, crtdll, crypt32, cryptdll and dbghelp to build.

svn path=/branches/cmake-bringup/; revision=48596

13 years ago[CMAKE]
Amine Khaldi [Sun, 22 Aug 2010 22:43:43 +0000 (22:43 +0000)]
[CMAKE]
- Guard pseh2.h against RC_INVOKED.

svn path=/branches/cmake-bringup/; revision=48594

13 years ago[CMAKE]
Amine Khaldi [Sun, 22 Aug 2010 13:40:53 +0000 (13:40 +0000)]
[CMAKE]
- Manually add source file (as suggested by Colin).
- I've filed a feature request to have the same effect when still using GLOB/GLOB_RECURSE : http://public.kitware.com/Bug/view.php?id=11156

svn path=/branches/cmake-bringup/; revision=48592

13 years ago[CMAKE]
Amine Khaldi [Sun, 22 Aug 2010 13:38:36 +0000 (13:38 +0000)]
[CMAKE]
- Cache the mingw32 prefix.
- Improve the RC compiler invocation.

svn path=/branches/cmake-bringup/; revision=48591

13 years ago[CMAKE]
Amine Khaldi [Sun, 22 Aug 2010 01:17:53 +0000 (01:17 +0000)]
[CMAKE]
- Add cabinet, cards, cfgmgr32 and clusapi to build.

svn path=/branches/cmake-bringup/; revision=48589

13 years ago[CMAKE]
Amine Khaldi [Sun, 22 Aug 2010 00:52:26 +0000 (00:52 +0000)]
[CMAKE]
- Add avicap32, batt and beepmidi to build.
- Fix a typo.

svn path=/branches/cmake-bringup/; revision=48588

13 years ago[CMAKE]
Amine Khaldi [Sat, 21 Aug 2010 23:52:17 +0000 (23:52 +0000)]
[CMAKE]
- Add activeds, advpack and authz to build.

svn path=/branches/cmake-bringup/; revision=48587

13 years ago[CMAKE]
Amine Khaldi [Sat, 21 Aug 2010 23:35:57 +0000 (23:35 +0000)]
[CMAKE]
- Add acledit to build.

svn path=/branches/cmake-bringup/; revision=48586

13 years ago[CMAKE]
Amine Khaldi [Sat, 21 Aug 2010 23:25:35 +0000 (23:25 +0000)]
[CMAKE]
- Add aclui to build.

svn path=/branches/cmake-bringup/; revision=48585

13 years ago[CMAKE]
Amine Khaldi [Sat, 21 Aug 2010 23:23:46 +0000 (23:23 +0000)]
[CMAKE]
- Add a macro to handle generating definition files from spec files (for Wine dlls)

svn path=/branches/cmake-bringup/; revision=48584

13 years ago[NTOSKRNL]
Cameron Gutman [Sat, 21 Aug 2010 22:08:00 +0000 (22:08 +0000)]
[NTOSKRNL]
- Fix a typo that broke handling of DevicePropertyEnumeratorName inside IoGetDeviceProperty

svn path=/trunk/; revision=48583

13 years ago[WIN32K]
Timo Kreuzer [Sat, 21 Aug 2010 22:00:50 +0000 (22:00 +0000)]
[WIN32K]
Use the object type index, not the shifted full object type to decide what to do with an object in NtGdiDeleteObjectApp. Fixes leaking derived types such as pens.

svn path=/trunk/; revision=48582

13 years ago[NTOSKRNL]
Cameron Gutman [Sat, 21 Aug 2010 21:39:53 +0000 (21:39 +0000)]
[NTOSKRNL]
- Don't overwrite the ACPI hardware key on every boot

svn path=/trunk/; revision=48581

13 years ago[NTOSKRNL]
Cameron Gutman [Sat, 21 Aug 2010 21:25:07 +0000 (21:25 +0000)]
[NTOSKRNL]
- Append the DLL name and NULL terminate the string more nicely

svn path=/trunk/; revision=48580

13 years ago[WIN32K]
Timo Kreuzer [Sat, 21 Aug 2010 19:55:09 +0000 (19:55 +0000)]
[WIN32K]
- Allocate the DCs prgnVis in DC_AllocDC, instead of "on demand" in GdiSelectVisRgn and properly handle failure case. This fixes a possible crash, when running out of gdi handles.

svn path=/trunk/; revision=48579

13 years ago[WIN32K]
Timo Kreuzer [Fri, 20 Aug 2010 19:24:48 +0000 (19:24 +0000)]
[WIN32K]
- co_IntTranslateMouseMessage: properly initialize *HitTest and only send WM_NCHITTEST when the message is going to be removed
- co_IntPeekMessage: Prevent possible use of uninitialized HitTest by ProcessMouseMessage()
- Patch by Jan Roeloffzen [jroeloffzen at hotmail dot com]
- Fixes bug 2139

svn path=/trunk/; revision=48576

13 years ago[PSDK]
Amine Khaldi [Fri, 20 Aug 2010 16:55:33 +0000 (16:55 +0000)]
[PSDK]
- Add missing DISPLAY_BRIGHTNESS and some related definitions.

svn path=/trunk/; revision=48575

13 years ago[NTOSKRNL]
Cameron Gutman [Fri, 20 Aug 2010 04:45:25 +0000 (04:45 +0000)]
[NTOSKRNL]
- The trailing NULL is NOT included in the string length
- IopNotifyPlugPlayNotification needs a pointer to an actual GUID not a UNICODE_STRING
- The Power Manager can now see ACPI power devices again
- ROS will now do a graceful shutdown and power off if the power button is pressed and ACPI is enabled

svn path=/trunk/; revision=48574

13 years ago[ACPI]
Cameron Gutman [Fri, 20 Aug 2010 03:08:50 +0000 (03:08 +0000)]
[ACPI]
- Do all of the work inside the DPC so we don't have IRQL issues when entering the memory manager
- This is a slight hack but we can be assured that data won't be over 24 bits unless somebody wants to push the power/sleep button over 16 million times

svn path=/trunk/; revision=48573

13 years ago[NTOSKRNL]
Cameron Gutman [Fri, 20 Aug 2010 02:27:05 +0000 (02:27 +0000)]
[NTOSKRNL]
- Shutdown the system if we receive a SYS_BUTTON_POWER event
- Register for GUID_DEVICE_LID arrival events so we can receive lid events

svn path=/trunk/; revision=48572

13 years ago[NTOSKRNL]
Cameron Gutman [Thu, 19 Aug 2010 23:26:44 +0000 (23:26 +0000)]
[NTOSKRNL]
- Add a special case to IopInitializeDevice for raw devices
- Call IopInitializeDevice to set up our device node and ready it to start
- Fixes assertions hit by ACPI and PCIX

svn path=/trunk/; revision=48570

13 years ago[OSKITTCP]
Cameron Gutman [Thu, 19 Aug 2010 22:15:58 +0000 (22:15 +0000)]
[OSKITTCP]
- Disable routing because oskit needs to let our code do that
- Comment out the ACK hack and restore the default BSD behavior

svn path=/trunk/; revision=48569

13 years ago[Win32k]
Michael Martin [Thu, 19 Aug 2010 10:52:36 +0000 (10:52 +0000)]
[Win32k]
- For SetTimer nIDEvent can be 0 in which case return 1. Zero still needs to be used for nIDEvent when killing the timer. Fixes bug 5553.
- Modify windowless timers to use IDEvent values decrementing from the max number of windowless timers vice incrementing from 1. Done to match windows behavior.

svn path=/trunk/; revision=48568

13 years ago[NTOSKRNL]
Timo Kreuzer [Thu, 19 Aug 2010 10:03:03 +0000 (10:03 +0000)]
[NTOSKRNL]
- Add missing parentheses. Fixes "cont"

svn path=/trunk/; revision=48567

13 years ago[NTOSKRNL]
Timo Kreuzer [Thu, 19 Aug 2010 09:03:36 +0000 (09:03 +0000)]
[NTOSKRNL]
Fix handling of next instruction in kdbg.
Patch by Daniel Zimmermann, modified by Aleksey Bragin

See issue #4457 for more details.

svn path=/trunk/; revision=48566

13 years ago[NTOSKRNL]
Timo Kreuzer [Thu, 19 Aug 2010 08:50:23 +0000 (08:50 +0000)]
[NTOSKRNL]
- Implement support for /BURNMEMORY option.
- Don't stop boot on bad memory type
Patch by Jay Smith, modified by Aleksey, even more modified by me.

See issue #4957 for more details.

svn path=/trunk/; revision=48565

13 years ago[NETSTAT]
Cameron Gutman [Thu, 19 Aug 2010 06:25:20 +0000 (06:25 +0000)]
[NETSTAT]
- Allocate memory for the TCP table properly
- Only netstat -a should show UDP connections
- Patch by Jan Roeloffzen [jroeloffzen at hotmail dot com]

svn path=/trunk/; revision=48564

13 years ago[IPHLPAPI]
Cameron Gutman [Thu, 19 Aug 2010 06:05:35 +0000 (06:05 +0000)]
[IPHLPAPI]
- Copy our TCP table into the caller's buffer if we actually get one (not yet!)
- Return ERROR_NO_DATA if we fail to get anything from TCP/IP
- Fixes bug #4185

svn path=/trunk/; revision=48563

13 years ago[NTOSKRNL]
Timo Kreuzer [Thu, 19 Aug 2010 05:10:16 +0000 (05:10 +0000)]
[NTOSKRNL]
- Initialize the Parent member of the new Vad to NULL. This also initializes the Balance to 0 aka RtlBalancedAvlTree
Should fix the failed assertion that randomly occurs.

svn path=/trunk/; revision=48562

13 years ago[IP]
Cameron Gutman [Thu, 19 Aug 2010 02:41:54 +0000 (02:41 +0000)]
[IP]
- Fix a major bug in socket closure. Prior to this, a socket with pending IRPs that could not be satisfied when the socket was closed would be destroyed without completing the pending requests. Now, we check all of our IRP queues if we get a SEL_FIN signal and kill all the requests that cannot be satisfied immediately.
- Maybe it's just me but Firefox 2 seems much more responsive after this fix (like actually usable!)

svn path=/trunk/; revision=48561

13 years ago[FASTFAT]
Timo Kreuzer [Wed, 18 Aug 2010 23:21:15 +0000 (23:21 +0000)]
[FASTFAT]
Make our FAT driver PNP aware.
On PNP requests it should handle, it will return STATUS_NOT_IMPLEMENTED.
On the others, it will pass them to lower driver.
This is the first step outside the kernel into getting IoGetRelatedTargetDevice (and so notifications) working.
It doesn't work at the moment, as class2 doesn't handle PNP.

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

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

svn path=/trunk/; revision=48560

13 years ago[NTOSKRNL]
Timo Kreuzer [Tue, 17 Aug 2010 16:04:46 +0000 (16:04 +0000)]
[NTOSKRNL]
- Simplified IopGetRelatedTargetDevice implementation
- Added notification in case of success in NtSetVolumeInformationFile()
Patch by Pierre Schweitzer

svn path=/trunk/; revision=48559

13 years ago[NTOSKRNL]
Timo Kreuzer [Mon, 16 Aug 2010 20:18:25 +0000 (20:18 +0000)]
[NTOSKRNL]
- Fixed IoGetRequestorProcess, IoGetRequestorProcessId, IoGetRequestorSessionId
- Pass user buffer in NtNotifyChangeDirectoryFile
- Fixed magic value in IoGetPagingIoPriority
Patch by Pierre Schweitzer

svn path=/trunk/; revision=48557

13 years ago[NTDLL]
Timo Kreuzer [Mon, 16 Aug 2010 01:57:09 +0000 (01:57 +0000)]
[NTDLL]
LdrPerformRelocations: Delta is a LONG_PTR rather than ULONG_PTR

See issue #5577 for more details.

svn path=/trunk/; revision=48556

13 years ago[WIN32K]
Timo Kreuzer [Mon, 16 Aug 2010 01:29:13 +0000 (01:29 +0000)]
[WIN32K]
- Remove IntEngExtEscape stub. This function is completely useless. If the driver doesn't provide a DrvEscape, the function should simply fail and must return 0, not -1.
- If a NULL surface is passed, pass on NULL pso to the driver function

See issue #4563 for more details.

svn path=/trunk/; revision=48555

13 years ago[user32_winetest]
Timo Kreuzer [Mon, 16 Aug 2010 00:06:55 +0000 (00:06 +0000)]
[user32_winetest]
Skip 2 tests that hang on reactos. Patch by Giannis Adamopoulos

svn path=/trunk/; revision=48554

13 years ago[NTOSKRNL]
Aleksey Bragin [Sun, 15 Aug 2010 08:48:03 +0000 (08:48 +0000)]
[NTOSKRNL]
- Revert 48546. The code was correct, and there is more of same code in other places which firstly cancels the IRP and then moves to the next entry. The actual bug is somewhere else.
See issue #5550 for more details.

svn path=/trunk/; revision=48551

13 years ago- IRP_MN_QUERY_RESOURCE_REQUIREMENTS half support now, PciQueryRequirements, PciAlloc...
evb [Sat, 14 Aug 2010 18:06:19 +0000 (18:06 +0000)]
- IRP_MN_QUERY_RESOURCE_REQUIREMENTS half support now, PciQueryRequirements, PciAllocateIoRequrementsList, full implement, but PciBuildRequirementsList return 0 always for now
- Debug helpers: PciDebugPrintIoResReqList, PciDebugPrintIoResource, PciDebugCmResourceTypeToText
Now hit assert Assertion '(DeviceNode->Flags & DNF_ADDED)' failed at ntoskrnl/io/pnpmgr/pnpmgr.c line 201, too night to debug, maybe tomorow

svn path=/trunk/; revision=48550

13 years ago- IRP_MN_QUERY_RESOURCES support for PDO (PciQueryResources, PciAllocateCmResourceLis...
evb [Sat, 14 Aug 2010 17:33:10 +0000 (17:33 +0000)]
- IRP_MN_QUERY_RESOURCES support for PDO (PciQueryResources, PciAllocateCmResourceList), now remain IRP_MN_QUERY_RESOURCE_REQUIREMENTS to last device stack interogration from PNPMGR

svn path=/trunk/; revision=48549

13 years ago- Add support for PnP IRP to PDO: IRP_MN_QUERY_BUS_INFORMATION (PciQueryBusInformatio...
evb [Sat, 14 Aug 2010 17:09:20 +0000 (17:09 +0000)]
- Add support for PnP IRP to PDO: IRP_MN_QUERY_BUS_INFORMATION (PciQueryBusInformation), IRP_MN_QUERY_ID (PciQueryId), IRP_MN_QUERY_DEVICE_TEXT (PciQueryDeviceText), IRP_MN_QUERY_CAPABILITIES (PciQueryCapabilities), IRP_MN_QUERY_DEVICE_RELATIONS (PciQueryTargetDeviceRelations implement, PciQueryEjectionRelations, stub)
- Stub support for PnP IRP to PDO: IRP_MN_QUERY_RESOURCE_REQUIREMENTS (PciQueryRequirements), IRP_MN_QUERY_RESOURCES(PciQueryResources)
- Add support for PnP IRP to FDO: IRP_MN_QUERY_CAPABILITIES (handle in PciFdoIrpQueryDeviceCapabilities)
- Build device capability UI number (PciDetermineSlotNumber), use PIR$ (seem support broken, need to check loader) or device property for bus not root
- Use parent attachee device and this PDO for build device/system wake states, latency, device/system power mappings
- PCI-ID manage support: PciInitIdBuffer, PciIdPrintf, PciIdPrintfAppend
- Debug helper: PciDebugDumpQueryCapabilities
- Thanks richard for advise + beer
PCI-X driver now pass 10000 codes lines!

svn path=/trunk/; revision=48548

13 years ago[NTOSKRNL]
Cameron Gutman [Sat, 14 Aug 2010 14:55:12 +0000 (14:55 +0000)]
[NTOSKRNL]
- Move to the next entry in the thread IRP list before calling IoCancelIrp because if everything works as expected and IoCompleteRequest is called, we could end up with the IRP ripped out from under us before can move to the next element
- See issue #5550 for details.

svn path=/trunk/; revision=48546