Commit graph

30286 commits

Author SHA1 Message Date
Dmitry Chapyshev 72aa848eff - Increasing the size of controls
svn path=/trunk/; revision=33158
2008-04-27 09:07:43 +00:00
Magnus Olsen 3919a3d42a EDD_DIRECTDRAW_GLOBAL mark out ddSurfaceCallbacks is corrct and corrected the comment about it
updateddump_edd_directdraw_global so it dump even more data. 

svn path=/trunk/; revision=33157
2008-04-27 01:11:13 +00:00
Magnus Olsen 08f772b7c6 BugFix : EDD_DIRECTDRAW_GLOBAL put ddCallbacks in right position.
that mean  driver api DestroyDriver, CreateSurface, SetColorKey, SetMode, WaitForVerticalBlank, CanCreateSurface, CreatePalette, GetScanLine, MapMemory works inside ms dxg.sys now
test of that is NtGdiDdCreateSurface, NtGdiDdSetColorKey, NtGdiDdWaitForVerticalBlank, NtGdiDdCanCreateSurface, NtGdiDdCreatePalette, NtGdiDdGetScanLine
works and show prof it being call to the drv. that mean we got the graphic card api working now. It still exists bugs. Long live our ReactX that showing frist life sign with ms dxg.sys inside vmware and thuse api working. But it is not egunt getting a dx apps working yet. 

svn path=/trunk/; revision=33156
2008-04-26 20:18:42 +00:00
Dmitry Chapyshev c6a77c874d - Add new layouts to bootcd
svn path=/trunk/; revision=33155
2008-04-26 19:07:51 +00:00
Dmitry Chapyshev 14c92a0ec5 Add keyboard layouts:
- Canadian French (Legacy)
- Canadian Multilingual Standard
- Dutch
- Estonian
- Georgian
- Latvian
- Macedonian (FYRO)

svn path=/trunk/; revision=33154
2008-04-26 19:07:16 +00:00
Magnus Olsen 77edaa1c87 finish proting of intEnableDriver from ReactOS 0.3.1 - 0.3.2 that have been rename to intEnableReactXDriver
lefttodo fix correct positions of everything in the edd_directdraw_global amd fill in the driver phdev correct in that struct as well.
Hacked : NtGdiDdGetScanLine for now, it crash when it being call again. 


svn path=/trunk/; revision=33153
2008-04-26 18:25:24 +00:00
Magnus Olsen cd73d524b9 Add : started port in intEnableDriver from reactos 0.3.2 and rename it to intEnableReactXDriver. it is the part activate the graphic card directx support.
Add : more debug data for ReactX it is need it to fill all edd_ struct right, allot of the debug functions will go away after we got up stable interface. 
BugFix : EDD_DIRECTDRAW_LOCAL the struct did miss one member. 

svn path=/trunk/; revision=33152
2008-04-26 17:27:35 +00:00
Magnus Olsen da69013f65 remove some debug output it is not longer need it.
Bugfix PEDD_DIRECTDRAW_LOCAL define 
add allot debug data at NtGdiDdQueryDirectDrawObject we are here now, prepare activate the whole graphic driver directx interface. 
we will add back some older code of the old desgin of the directx interface, for we need init the graphic card directx interface
it is not done by dxg.sys, it is done by win32k and dxg.sys using the cached data from win32k. rember it is cached for each drv. 
but we will only support one graphic drv for dx for now, when the code comes alive again.

svn path=/trunk/; revision=33151
2008-04-26 14:13:59 +00:00
Magnus Olsen 9206e4dfaf fixed bit more in the struct EDD_DIRECTDRAW_GLOBAL,
the struct are still wrong. trust only on thuse I wrote verify on 

svn path=/trunk/; revision=33150
2008-04-26 12:55:14 +00:00
Daniel Reimer 75fc10972f Add alternative German "de-ergo/eMeier 0.1", "NEO 1.1" and "Ristome" Layouts.
If you have a modified Keyboard lying around, have fun writing.

svn path=/trunk/; revision=33149
2008-04-26 12:30:46 +00:00
Magnus Olsen c7ef3adff2 Bugfix : EngDeleteSemaphore one line patch by Samuel Serapión (samcharly at hotmail dot com) aka irc : encoded
-------------
it did not releas the create resuse, it was leaking.  

svn path=/trunk/; revision=33148
2008-04-26 12:11:01 +00:00
Magnus Olsen a5887ec19a fixed : we do not longer losing the hdev for ms dxg.sys
fixed : remove few hacks I did and reactivate some api I did take offline. 
the struct EDD_DIRECTDRAW_LOCAL from yuah gdi book does not match windows xp, I have verify some member for windows xp.
the struct EDD_DIRECTDRAW_GLOBAL from yuah gdi book does not match windows xp, I have verify some member for windows xp.
and add two new member so hPDEV get in right place. 



svn path=/trunk/; revision=33147
2008-04-26 09:29:10 +00:00
Dmitry Chapyshev ae3f9c0f59 - Add US IBM Arabic 238_L and Icelandic layouts to bootcd
svn path=/trunk/; revision=33146
2008-04-25 16:50:06 +00:00
Dmitry Chapyshev 94996695bd - Add US IBM Arabic 238_L keyboard layout
- Add Icelandic keyboard layout

svn path=/trunk/; revision=33145
2008-04-25 16:49:17 +00:00
Daniel Reimer 4cbe7697a1 Replace ROSCalc with Wine Calc.
svn path=/trunk/; revision=33144
2008-04-25 15:41:03 +00:00
Daniel Reimer bdfd4666ac Replace Wine Calc with ROSCalc
svn path=/trunk/; revision=33143
2008-04-25 15:40:31 +00:00
Daniel Reimer 4c90f1b335 What do we learn here? Always try patches with a updated trunk. Removed Bulgarian Translation again. Its outdated.
svn path=/trunk/; revision=33142
2008-04-25 11:55:28 +00:00
Daniel Reimer 3f380b3dc9 Bug 3192: Bulgarian translation of ReactOS by Станев (sstpr@narod.ru)
Bug 3194: Czech translation update by Radek Liška (radekliska@gmail.com)

svn path=/trunk/; revision=33141
2008-04-25 11:46:01 +00:00
Johannes Anderwald baf72dcc52 - implement enumerating DirectPlay service providers
- update resources

svn path=/trunk/; revision=33140
2008-04-25 10:56:18 +00:00
Aleksey Bragin 37f8eef287 - Add more MDL flags.
- Reformat MDL implementation (mdlsup.c) to make it readable, and add comments.
- Add a couple dozen assertions to validate that MDL flags, state and addresses.
- Use ADDRESS_AND_SIZE_TO_SPAN_PAGES macro for nice MDL calculations.
- Set Mdl->Process only when required, and set/unset various MDL flags which were being ignored/incorrectly manipulated.
- Keep track of Process->NumberOfLockedPages during MDL lock/unlock.
- Don't return the base address of the MDL allocation when mapping locked pages - MDLs have a byte offset which was being ignored.
- Fix incorrect usage of MDLs found in the kernel (thanks to the new assertions).
- Split kernel vs. user mode MDL requests in a much more organized and optimized fashion.
- Fix a number of smaller bugs throughout the code.

svn path=/trunk/; revision=33139
2008-04-25 07:55:12 +00:00
Magnus Olsen c9e1e6a6ad adding more debug output for dx
svn path=/trunk/; revision=33138
2008-04-25 05:47:32 +00:00
Timo Kreuzer 92fefe8a51 ULONG -> SIZE_T
svn path=/trunk/; revision=33137
2008-04-25 01:42:25 +00:00
Timo Kreuzer 7a84e0d0f9 ULONG -> SIZE_T for ZwAllocateVirtualMemory and MmMapViewOfSection
svn path=/trunk/; revision=33136
2008-04-25 01:16:08 +00:00
Timo Kreuzer 3115ae246c fix cast of pointer: ULONG -> ULONG_PTR
svn path=/trunk/; revision=33135
2008-04-25 01:09:28 +00:00
Timo Kreuzer 26ce8577f2 fix EngAllocUserMem parameter
svn path=/trunk/; revision=33134
2008-04-25 00:38:32 +00:00
Aleksey Bragin d136b969cf - Rewrite NtRead/WriteVirtualMemory around MiCopyVirtualMemory, and use MmMapLockedPagesSpecifyCache to do the bulk of the work, instead of the MDL hacks that were previously used.
- Reformat and cleanup the entire file, deprecate NtVirtualLock/Unlock which didn't really work (and aren't really required for any apps for now)
- Major perf optimizations to NtRead/VirtualMemory: Use pool memory transfer when more efficient than MDL, and use local stack buffer when size permits.
- This patch provides up to 109% improvement (more than twice as fast) in certain virtual memory operations.
- Thanks to Alex for researching this issue, and providing the internal information on the various optimizations and behaviors the NT implementation uses.

svn path=/trunk/; revision=33133
2008-04-24 21:26:01 +00:00
Gregor Brunmar 4b3ff92f36 Added some work-in-progress structs needed for IDirect3D9::CreateDevice()
svn path=/trunk/; revision=33132
2008-04-24 19:57:41 +00:00
Gregor Brunmar 48b2c90e2f Renamed internal Direct3D9 structure to make more sense
svn path=/trunk/; revision=33131
2008-04-24 18:29:50 +00:00
Colin Finck a8253264f5 kbswitch:
- Revert some changes from r33106:
    * Set the size of szTempLCID back to CCH_LAYOUT_ID + 1, a layout ID mustn't be longer than this.
      As we pass the correct size to the Registry functions as well, there can be no buffer overflow.
      MAX_PATH was probably used here, because input.dll had a bug as well, so that it saved the layout ID with the wrong length.
    * Use wsprintf over _stprintf
    * Pass the correct value to dwBufLen (in bytes, not in TCHAR's!)
- Add back SystemParametersInfo, so that the system gets to know about the keyboard layout change.
  EnumWindows is still used for setting the new keyboard layout to all existing Windows.
- Don't show a different menu for left and right clicks, that's not how most popup menus work under Windows.
  Instead append all menu items from the menu template to the popup menu.
- Call SetForegroundWindow before and post a WM_NULL message after calling TrackPopupMenu, so that the popup menu will be closed, when the user clicks somewhere else
- Fix indentation

input.dll:
- Fix some incorrect lengths passed to other functions
- Get rid of some unneeded variables
- Always use the 32-bit Registry functions over the old 16-bit deprecated ones
- Fix some other stuff here and there

svn path=/trunk/; revision=33130
2008-04-24 17:57:48 +00:00
Aleksey Bragin 9dc0da2dea - Reformat Se code and put functions to more appropriate locations.
svn path=/trunk/; revision=33129
2008-04-23 20:38:37 +00:00
Aleksey Bragin c72bfe8de2 - Fix logic bugs in LpcRequestPort (which is not the same as NtRequestPort as someone incorrectly assumed previously) and also reference/dereference the process who owns the server mapping.
svn path=/trunk/; revision=33128
2008-04-23 16:40:08 +00:00
Dmitry Chapyshev 983f990ed9 - Update Russian translation
svn path=/trunk/; revision=33127
2008-04-23 15:54:29 +00:00
Daniel Reimer 5da9bd0da2 Revert r33093. It breaks build for me and fixes no circular dependency for the rest.
Set the new added wine dlls to autosync in readme.wine.

svn path=/trunk/; revision=33126
2008-04-23 09:55:55 +00:00
Magnus Olsen 20a98cecc9 start setup edd directdraw local
svn path=/trunk/; revision=33125
2008-04-23 05:45:59 +00:00
Magnus Olsen e637f94339 change directx struct
svn path=/trunk/; revision=33124
2008-04-23 05:44:20 +00:00
Magnus Olsen 4f75f1d31c comment out one line for now.
for we will use same struct as gdi object in dx/reactx header. 

svn path=/trunk/; revision=33123
2008-04-23 05:23:51 +00:00
Magnus Olsen 0d59c944b1 take offline some code, this file should be take code from win32k.
it is same as gdi handle alloc doing it. 

svn path=/trunk/; revision=33122
2008-04-23 05:21:59 +00:00
Johannes Anderwald 15d071da9a - enlarge the dialog window
- load treeview classes on startup
- link to dinput8 + dxguid library
- start implementing DirectInput dialog
- use DirectInput version 8 for now


svn path=/trunk/; revision=33121
2008-04-22 23:19:50 +00:00
KJK::Hyperion 5e675fb7e6 modified include/psdk/ntdef.h
Make C_ASSERT standards-compliant. Hopefully fixed for good

svn path=/trunk/; revision=33120
2008-04-22 23:09:05 +00:00
Johannes Anderwald 468e944166 - add missing constants required for dxdiag
svn path=/trunk/; revision=33119
2008-04-22 22:52:44 +00:00
KJK::Hyperion 8388a8705e I am stupid and buildbot is broken
svn path=/trunk/; revision=33118
2008-04-22 22:51:30 +00:00
KJK::Hyperion 5870ed88cc modified include/psdk/ntdef.h
C_ASSERT is equivalent to a typedef, NOT a variable declaration

modified   ntoskrnl/mm/pe.c
   Convert as many ASSERTs as possible to C_ASSERT

svn path=/trunk/; revision=33117
2008-04-22 22:45:53 +00:00
Aleksey Bragin e74ec0acfc Bug fixes from Alex:
- CDFS should enter a critical region before acquiring a resource.
- "Fix" resource assert during installation by adding some padding at the end of the VFAT FCB header -- corruption happens at pad 51.
- Once we detect corruption at pad 51, skip the FCB instead of attempting to flush it.
- Fix a serious bug in our detection of incorrect resource usage while APCs are not disabled.
- Fix a serious bug which caused shared resources not to wake up waiters when it was released, and which cause it to wake up waiters when there were still active locks held.
 
New ERESOURCE implementation by Aleksey (thanks to Alex for providing the information required)
- Remove ERESOURCE_XP concept, and fix the three incorrect and different definitions of the ERESOURCE structure.
- Fix the ERESOURCE implementation to use the new Vista ERESOURCE type. Two main changes:
   * The count is now a 32-bit count called ActiveEntries. ActiveCount is now simply a flip-flop bit (0/1) for backward compatibility (we set to 0 when active entries is 0, and 1 when active entries is > 0)
   * Instead of caching two owners, we only cache one owner, in the OwnerEntry field.
- Optimize some search algorithms slightly (just better code).
- Remove duplicated code for ExReleaseResourceLite and call ExReleaseResourceForThreadLite instead. Alex says this is ok.

svn path=/trunk/; revision=33111
2008-04-22 20:44:34 +00:00
Dmitry Chapyshev 64a5765676 - Add "Preferences" button
svn path=/trunk/; revision=33109
2008-04-22 20:01:08 +00:00
Dmitry Chapyshev a869e80716 - Add kbswitch to bootcd
svn path=/trunk/; revision=33108
2008-04-22 19:09:13 +00:00
KJK::Hyperion 722e39a1cd Revert 33105, C_ASSERT is broken
svn path=/trunk/; revision=33107
2008-04-22 19:03:21 +00:00
Dmitry Chapyshev 2d438bced6 - Keyboard layout switching works now in ReactOS!
svn path=/trunk/; revision=33106
2008-04-22 19:01:56 +00:00
KJK::Hyperion 57e6630f32 modified ntoskrnl/mm/pe.c
Convert as many ASSERTs as possible to C_ASSERT

svn path=/trunk/; revision=33105
2008-04-22 18:49:22 +00:00
Hervé Poussineau 21ffe8e67a Change default intermediate directory to obj directory.
svn path=/trunk/; revision=33094
2008-04-22 05:52:18 +00:00
Johannes Anderwald 9fd974d671 - add a proxy idl file
- should fix the circual dependency

svn path=/trunk/; revision=33093
2008-04-21 22:49:48 +00:00