Commit graph

23163 commits

Author SHA1 Message Date
Magnus Olsen 1c4a115ec0 adding check if it is IID_IDirectDraw7 on right place and learn it is lpDD->QueryInterface that optain the d3d interface.
svn path=/trunk/; revision=25015
2006-12-02 10:27:56 +00:00
Magnus Olsen 1c7d9c3cb9 remove trunk stuff. for it was wine idea, if you reading msdn and test ms ddraw you can not use other interface that IID_IDirectDraw7
but wine allown you use older IID interface. But It will be hell to support DirectX 1-6 IID_IDirectDraw, IID_IDirectDraw2, IID_IDirectDraw4 so we doing like microsoft kill it. and this check can be use to detect if it wine ddraw or not. like test if other that IID_IDirectDraw7 are vaild. 

svn path=/trunk/; revision=25014
2006-12-02 10:20:33 +00:00
Magnus Olsen 17e88e019f Adding two new debuger macro and debocument each debug macro I am using in windows and why you should use one of them
with time the debug macro will be compelete remove. 

svn path=/trunk/; revision=25013
2006-12-02 08:30:16 +00:00
Magnus Olsen 817dba67ef Colin Finck (mail at colinfinck dot de)
patch to sysdm (id=1161)
fixing truncate of string and making allot better layout of the system info. 


See issue #1858 for more details.

svn path=/trunk/; revision=25012
2006-12-01 17:36:07 +00:00
Alex Ionescu d67835f9dc - Kill some debug prints.
- Remove debug-test infinite loop from DbgkForwardException
- Fix missing "break" statement in DbgkFreeDebugEvent, causing a handle leak, and in DbgkpOpenHandles, causing user-mode to get a kernel-mode handle for DLL images instead of the correct duplicated one.
- Currently struggling with the fact that ArbitraryUserPointer seems to be reset to zero before it's read for the debug event, so DLL names don't come through.

svn path=/trunk/; revision=25011
2006-12-01 08:20:37 +00:00
Alex Ionescu 94912681e1 - Write DLL Being mapped into NtTib->ArbitraryUserPointer so that the debugger can pick it up.
- Fix bugs in DbgkWakeTarget, DbgkCreateThread, DbgkMapViewOfSection and call from NtMapViewOfSection.

svn path=/trunk/; revision=25010
2006-12-01 07:36:49 +00:00
Magnus Olsen 898809f6cb fixed crash in stub of createsurface
svn path=/trunk/; revision=25009
2006-11-30 22:58:48 +00:00
Magnus Olsen 04210101de stubed Main_DirectDraw_SetCooperativeLevel
it need be rewrite

svn path=/trunk/; revision=25008
2006-11-30 21:43:07 +00:00
Magnus Olsen c2e48f423c fixing stub of drvsetcolorkey
svn path=/trunk/; revision=25007
2006-11-30 21:04:09 +00:00
Johannes Anderwald c906b40fe9 - bye bye fixdef
svn path=/trunk/; revision=25006
2006-11-30 20:57:52 +00:00
Alex Ionescu b41e5c3b6c - Fix a bug in DbgkCreateThread which wasn't saving the initial thread information in the right place. The process create event is now fully supported and properly returns the entrypoint of the application.
svn path=/trunk/; revision=25005
2006-11-30 20:46:48 +00:00
Alex Ionescu 3851db2429 - Implement support for DEBUG_PROCESS in CreateProcess so that processes can be started with a debugger (works and tested with a new test app).
- We still seem to be suffering from a bug during certain debug event waits.

svn path=/trunk/; revision=25004
2006-11-30 20:37:21 +00:00
Alex Ionescu 7909b7a822 - Properly set and check the image notification flag for the process in DbgkCreateThread. Patch by hto.
See issue #1879 for more details.

svn path=/trunk/; revision=25003
2006-11-30 19:52:49 +00:00
Alex Ionescu 9ab9cf7351 - Fix various Dbgk bugs in the DbgUI and Win32 Debug wrapper APIs.
- Win32 Debug test application now works as well as Native one.
- The Dbgk framework still crashes on exceptions, I think.

svn path=/trunk/; revision=25002
2006-11-30 19:38:04 +00:00
Ged Murphy fb9895a402 allow the Americans their incorrect spellings and add a correct UK resource file ;)
svn path=/trunk/; revision=25001
2006-11-30 19:23:19 +00:00
Alex Ionescu 3087c4530c - Remove Dbgk entries from KrnlFun.c, the subsystem is now implemented, save a few small bugs.
- Congratulations ROS on your 25000th commit!

svn path=/trunk/; revision=25000
2006-11-30 19:04:17 +00:00
Alex Ionescu 6a8ff3fea2 - Update Dbgk test application to test Win32 as well (definable by a compile-time #define).
svn path=/trunk/; revision=24999
2006-11-30 19:02:22 +00:00
Ged Murphy d7ac88ec6f - implement 'blur' and 'sharpness'
- implement 'contrast' allowing for separate adjustment of RGB colours
- Decorate the contrast / blur function names to make GCC happy. These functions will be merged at a later stage
- implement fading in and out of the floating windows. To activate, hover your cursor over one of the windows, then away again. Only works in Windows, ROS has missing translucency functionality at the moment.

svn path=/trunk/; revision=24998
2006-11-30 19:02:14 +00:00
Alex Ionescu ad0227d2bf - Fix a bug in DbgkOpenHandles which was causing file handles to get lost.
- Process create, thread create and DLL load events are now working perfectly. See http://www.tinykrnl.org/dbgworking.png

svn path=/trunk/; revision=24997
2006-11-30 18:30:05 +00:00
Alex Ionescu 5d44e00704 - Fix critical I/O bugs in IopParseFile which were causing the file object's device object pointer to be associated to the FSD (File System Device) instead of the Disk Driver, as well as the dereference of the FSD after the Disk Driver had been referenced (causing too many derefs for one, and to many refs for the other). Also fix a bug in IopQueryDeviceInformation which was querying the Disk Driver instead of the FSD.
- This also fixes IopQueryNameFile to properly return the entire name of the file now, instead of only the FSD part (probably fixes a dozen regressions).

svn path=/trunk/; revision=24996
2006-11-30 18:04:22 +00:00
Johannes Anderwald a76f1549b6 - various msvc compability fixes
- 2 errors remaining:
conio.c(2104) : error C2065: 'CONSOLE_INPUT_MODE_VALID' : undeclared identifier
conio.c(2108) : error C2065: 'CONSOLE_OUTPUT_MODE_VALID' : undeclared identifier

those two constants should be moved into the NDK(declared in wincon.h)...

svn path=/trunk/; revision=24993
2006-11-30 16:48:13 +00:00
Christoph von Wittich 6714832496 check for compiler version
svn path=/trunk/; revision=24992
2006-11-30 15:11:26 +00:00
Johannes Anderwald 55e6bb5471 - fix msvc_clean target
- implement cleaning up def files which are generated by fixdef

svn path=/trunk/; revision=24991
2006-11-30 12:20:40 +00:00
Johannes Anderwald 5d44e0c10f - silence debug prints
- create new generated file with _msvc postfix

svn path=/trunk/; revision=24990
2006-11-30 11:24:46 +00:00
Aleksey Bragin d59a0757d9 Fix HALMP build
svn path=/trunk/; revision=24989
2006-11-30 11:24:03 +00:00
Alex Ionescu 58809635ad - Raw test app for DbgUi+Dbgk Debugging Subsystem (skeletal, and doesn't test Win32 APIs).
svn path=/trunk/; revision=24988
2006-11-30 09:54:31 +00:00
Alex Ionescu 3b4c74ae10 - Client IDs were OK, I incorrectly assumed they weren't due to the concidence they were equal to the thead/process handles. Actual bug was NtDebugContinue not accepting a valid status value. This is fixed now.
svn path=/trunk/; revision=24987
2006-11-30 09:30:07 +00:00
Alex Ionescu cca4a71164 - Fix some bugs in NtWaitForDebugEvent which caused debug events to be sent in the wrong order and also more then one event to be sent at the same time (and thus some events skipped).
- Test app now properly receives the "create process" event along with valid process/thread handles and the image base. No file handle sent yet because of the I/O Manager File Object bug.
- There's still a bug in NtContinueDebugEvent due to wrong Client IDs being sent.

svn path=/trunk/; revision=24986
2006-11-30 09:22:07 +00:00
Alex Ionescu ef1120e56b - Fix DbgkSectionHandleToFileHandle.
- Implement MmGetFileNameForSection.
- There is a bug in ObQueryNameString for file objects, so the full name isn't returned...

svn path=/trunk/; revision=24985
2006-11-30 05:22:20 +00:00
Alex Ionescu d4cf4b1b58 - Fix a bug in NtWaitForDebugEvent.
- Dbgk kindaaaa works now, as a proof-of-concept more then anything else since some helper Mm routines are missing. Still have some bugs to fix, but connecting, attaching and waiting on events seems not to crash anymore (And returns partially valid data).

svn path=/trunk/; revision=24984
2006-11-30 04:52:22 +00:00
Alex Ionescu e6463c5a34 - Implement an unhandled case in DbgkSetProcessDebugPort. The event queue is now properly parsed during connect and the event is signaled to start flushing the queue.
- Still got some bugs, but attach works...

svn path=/trunk/; revision=24983
2006-11-30 04:45:01 +00:00
Magnus Olsen d1e6b52baa forgot this file
svn path=/trunk/; revision=24982
2006-11-30 04:35:10 +00:00
Alex Ionescu d83fcae7d1 - Forgot to actually initialize Dbgk during system initialization, so any API would crash.
- Fix some stupid bugs in NtCreateDebugObject.
- Add tracing framework and add tracing to all of debug.c.
- Dbgk *almost* works: http://www.tinykrnl.org/dbgworking.png. Here I attach to services.exe and the kernel is sending notifications for all threads and DLLs loaded.

svn path=/trunk/; revision=24981
2006-11-30 04:16:35 +00:00
Alex Ionescu 2a4049fdfc - Implement DbgkPostFakeThreadMessages.
- Add Dbgk-calls to NtMap/UnmapViewOfSection to nodify debugging services of new DLL image load.
- Dbgk support is now skeletally complete, I will write a simple test app to test some functionality and start finding/fixing bugs.

svn path=/trunk/; revision=24980
2006-11-30 01:57:25 +00:00
Eric Kohl 9ceed92dda Move global variables into a struct that is attached to the property sheet page dialog.
svn path=/trunk/; revision=24979
2006-11-29 23:03:18 +00:00
Johannes Anderwald bb39bd7162 - implement a basic scanning dection algorithm
- please review :P

svn path=/trunk/; revision=24978
2006-11-29 22:49:16 +00:00
Alex Ionescu b906fae81e - Add profil.c and stub HalStartProfileInterrupt, HalStopProfileInterrupt and HalSetProfileInterval, and export these functions.
- KdComPortInUse is exported by HAL, not kdcom, so make the change.
- Register the KD support routines that kdcom on NT uses and implement most of them (except support for PCI Debug Cards).
- I can now get Windows to recognize the HAL but it freezes during loading (Due to broken IRQL implementation) and WinDBG won't connect to it.

svn path=/trunk/; revision=24977
2006-11-29 22:12:50 +00:00
Magnus Olsen 893be43835 1. adding surface callbacks stub, and activate them.
2. Finish the mix betwin HAL and HEL that we can do for now. 
3. Finish the switch betwin HAL and HEL that we can do for now. 
4. mange activate a DDCALLBACKS stub that was not posible before with wine ddraw.h header. after I wrote a new ddraw.f header for ReactOS, it works to actiavte FlipToGDISurface  HEL callbacks. But it is stub for moment. 

svn path=/trunk/; revision=24976
2006-11-29 22:09:52 +00:00
Johannes Anderwald 93c26f0ab5 - beginning of a def conversion utility
svn path=/trunk/; revision=24975
2006-11-29 21:08:15 +00:00
Alex Ionescu 358a8ed849 - Don't freeze on spurious interrupt.
svn path=/trunk/; revision=24974
2006-11-29 19:23:06 +00:00
Alex Ionescu 37d156c4c8 - Swap the IDT where we should, in KiSystemStartup instead of the freeldr.c hackfile. This, coupled with the previous patch, should make NTLDR-booting even more succesful since interrupts won't crash/be ignored.
svn path=/trunk/; revision=24973
2006-11-29 19:20:17 +00:00
Alex Ionescu 96d593c9ba - Finally figured out a way to make the old HAL IRQ implementation work with the new Ke Interrupt implementation without requiring my new HAL IRQ code (which doesn't work).
- Remove the "deprecated" directory from ntoskrnl since it now truly is.
- Remove KeInitInterrupts hack.
- Remove KiDispatchInterrupt2 export hack from kernel and stop using it from the HAL.
- HAL can now be built/tested with Windows/TinyKRNL since the export hack is gone and interrupts are sent properly through the IDT.
- Remove a bunch of completed krnlfun entries.
- Fix progressbar during bootcd bug.

svn path=/trunk/; revision=24972
2006-11-29 19:13:12 +00:00
Magnus Olsen 495e62c516 fixing more of dections of DDCREATE_HARDWAREONLY and DDCREATE_EMULATIONONLY,
we are now swicting betwin mix HEL and HAL, only HAL, or only HEL. But this is not complete yet

svn path=/trunk/; revision=24971
2006-11-29 19:12:06 +00:00
Magnus Olsen 1d4d4056b4 fixing some of the mix betwin hel and hal. (still not complete)
fixing some of dections of DDCREATE_HARDWAREONLY and DDCREATE_EMULATIONONLY,
we are now swicting betwin mix HEL and HAL, only HAL, or only HEL. But this is not complete yet
adding more comment so i do not forget in startuphal

svn path=/trunk/; revision=24970
2006-11-29 18:51:04 +00:00
Alex Ionescu 9f841739ff - Fix again
svn path=/trunk/; revision=24969
2006-11-29 17:57:56 +00:00
Alex Ionescu f675588849 - Properly fix boot/build.
svn path=/trunk/; revision=24968
2006-11-29 17:35:15 +00:00
Christoph von Wittich 09f6f9fded skip binutils detection when no build date is returned (fix linux build)
svn path=/trunk/; revision=24967
2006-11-29 15:55:17 +00:00
Johannes Anderwald b74888ef0d - fix build (commenting out calls)
svn path=/trunk/; revision=24966
2006-11-29 12:36:33 +00:00
Johannes Anderwald 76a4c9efc1 - fix build (commenting out calls)
svn path=/trunk/; revision=24965
2006-11-29 10:19:00 +00:00
Alex Ionescu d466efb4fb - Fixup all the file headers with proper paths and authors.
- Move sysbus.c contents (a 4 line function) into bus.c.
- Unify initialization code.
- Delete and disable stall execution calibration (currently using the default). Will implement later in a more precise manner (this routine was bizarly setting the MHz of the CPU in the PRCB in some cases...).

svn path=/trunk/; revision=24964
2006-11-29 08:28:20 +00:00