reactos.git
15 years agoReplace ROSCalc with Wine Calc.
Daniel Reimer [Fri, 25 Apr 2008 15:41:03 +0000 (15:41 +0000)]
Replace ROSCalc with Wine Calc.

svn path=/trunk/; revision=33144

15 years agoReplace Wine Calc with ROSCalc
Daniel Reimer [Fri, 25 Apr 2008 15:40:31 +0000 (15:40 +0000)]
Replace Wine Calc with ROSCalc

svn path=/trunk/; revision=33143

15 years agoWhat do we learn here? Always try patches with a updated trunk. Removed Bulgarian...
Daniel Reimer [Fri, 25 Apr 2008 11:55:28 +0000 (11:55 +0000)]
What do we learn here? Always try patches with a updated trunk. Removed Bulgarian Translation again. Its outdated.

svn path=/trunk/; revision=33142

15 years agoBug 3192: Bulgarian translation of ReactOS by Станев (sstpr@narod.ru)
Daniel Reimer [Fri, 25 Apr 2008 11:46:01 +0000 (11:46 +0000)]
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

15 years ago- implement enumerating DirectPlay service providers
Johannes Anderwald [Fri, 25 Apr 2008 10:56:18 +0000 (10:56 +0000)]
- implement enumerating DirectPlay service providers
- update resources

svn path=/trunk/; revision=33140

15 years ago- Add more MDL flags.
Aleksey Bragin [Fri, 25 Apr 2008 07:55:12 +0000 (07:55 +0000)]
- 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

15 years agoadding more debug output for dx
Magnus Olsen [Fri, 25 Apr 2008 05:47:32 +0000 (05:47 +0000)]
adding more debug output for dx

svn path=/trunk/; revision=33138

15 years agoULONG -> SIZE_T
Timo Kreuzer [Fri, 25 Apr 2008 01:42:25 +0000 (01:42 +0000)]
ULONG -> SIZE_T

svn path=/trunk/; revision=33137

15 years agoULONG -> SIZE_T for ZwAllocateVirtualMemory and MmMapViewOfSection
Timo Kreuzer [Fri, 25 Apr 2008 01:16:08 +0000 (01:16 +0000)]
ULONG -> SIZE_T for ZwAllocateVirtualMemory and MmMapViewOfSection

svn path=/trunk/; revision=33136

15 years agofix cast of pointer: ULONG -> ULONG_PTR
Timo Kreuzer [Fri, 25 Apr 2008 01:09:28 +0000 (01:09 +0000)]
fix cast of pointer: ULONG -> ULONG_PTR

svn path=/trunk/; revision=33135

15 years agofix EngAllocUserMem parameter
Timo Kreuzer [Fri, 25 Apr 2008 00:38:32 +0000 (00:38 +0000)]
fix EngAllocUserMem parameter

svn path=/trunk/; revision=33134

15 years ago- Rewrite NtRead/WriteVirtualMemory around MiCopyVirtualMemory, and use MmMapLockedPa...
Aleksey Bragin [Thu, 24 Apr 2008 21:26:01 +0000 (21:26 +0000)]
- 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

15 years agoAdded some work-in-progress structs needed for IDirect3D9::CreateDevice()
Gregor Brunmar [Thu, 24 Apr 2008 19:57:41 +0000 (19:57 +0000)]
Added some work-in-progress structs needed for IDirect3D9::CreateDevice()

svn path=/trunk/; revision=33132

15 years agoRenamed internal Direct3D9 structure to make more sense
Gregor Brunmar [Thu, 24 Apr 2008 18:29:50 +0000 (18:29 +0000)]
Renamed internal Direct3D9 structure to make more sense

svn path=/trunk/; revision=33131

15 years agokbswitch:
Colin Finck [Thu, 24 Apr 2008 17:57:48 +0000 (17:57 +0000)]
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

15 years ago- Reformat Se code and put functions to more appropriate locations.
Aleksey Bragin [Wed, 23 Apr 2008 20:38:37 +0000 (20:38 +0000)]
- Reformat Se code and put functions to more appropriate locations.

svn path=/trunk/; revision=33129

15 years ago- Fix logic bugs in LpcRequestPort (which is not the same as NtRequestPort as someone...
Aleksey Bragin [Wed, 23 Apr 2008 16:40:08 +0000 (16:40 +0000)]
- 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

15 years ago- Update Russian translation
Dmitry Chapyshev [Wed, 23 Apr 2008 15:54:29 +0000 (15:54 +0000)]
- Update Russian translation

svn path=/trunk/; revision=33127

16 years agoRevert r33093. It breaks build for me and fixes no circular dependency for the rest.
Daniel Reimer [Wed, 23 Apr 2008 09:55:55 +0000 (09:55 +0000)]
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

16 years agostart setup edd directdraw local
Magnus Olsen [Wed, 23 Apr 2008 05:45:59 +0000 (05:45 +0000)]
start setup edd directdraw local

svn path=/trunk/; revision=33125

16 years agochange directx struct
Magnus Olsen [Wed, 23 Apr 2008 05:44:20 +0000 (05:44 +0000)]
change directx struct

svn path=/trunk/; revision=33124

16 years agocomment out one line for now.
Magnus Olsen [Wed, 23 Apr 2008 05:23:51 +0000 (05:23 +0000)]
comment out one line for now.
for we will use same struct as gdi object in dx/reactx header.

svn path=/trunk/; revision=33123

16 years agotake offline some code, this file should be take code from win32k.
Magnus Olsen [Wed, 23 Apr 2008 05:21:59 +0000 (05:21 +0000)]
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

16 years ago- enlarge the dialog window
Johannes Anderwald [Tue, 22 Apr 2008 23:19:50 +0000 (23:19 +0000)]
- 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

16 years agomodified include/psdk/ntdef.h
KJK::Hyperion [Tue, 22 Apr 2008 23:09:05 +0000 (23:09 +0000)]
modified   include/psdk/ntdef.h
   Make C_ASSERT standards-compliant. Hopefully fixed for good

svn path=/trunk/; revision=33120

16 years ago- add missing constants required for dxdiag
Johannes Anderwald [Tue, 22 Apr 2008 22:52:44 +0000 (22:52 +0000)]
- add missing constants required for dxdiag

svn path=/trunk/; revision=33119

16 years agoI am stupid and buildbot is broken
KJK::Hyperion [Tue, 22 Apr 2008 22:51:30 +0000 (22:51 +0000)]
I am stupid and buildbot is broken

svn path=/trunk/; revision=33118

16 years agomodified include/psdk/ntdef.h
KJK::Hyperion [Tue, 22 Apr 2008 22:45:53 +0000 (22:45 +0000)]
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

16 years agoBug fixes from Alex:
Aleksey Bragin [Tue, 22 Apr 2008 20:44:34 +0000 (20:44 +0000)]
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

16 years ago- Add "Preferences" button
Dmitry Chapyshev [Tue, 22 Apr 2008 20:01:08 +0000 (20:01 +0000)]
- Add "Preferences" button

svn path=/trunk/; revision=33109

16 years ago- Add kbswitch to bootcd
Dmitry Chapyshev [Tue, 22 Apr 2008 19:09:13 +0000 (19:09 +0000)]
- Add kbswitch to bootcd

svn path=/trunk/; revision=33108

16 years agoRevert 33105, C_ASSERT is broken
KJK::Hyperion [Tue, 22 Apr 2008 19:03:21 +0000 (19:03 +0000)]
Revert 33105, C_ASSERT is broken

svn path=/trunk/; revision=33107

16 years ago- Keyboard layout switching works now in ReactOS!
Dmitry Chapyshev [Tue, 22 Apr 2008 19:01:56 +0000 (19:01 +0000)]
- Keyboard layout switching works now in ReactOS!

svn path=/trunk/; revision=33106

16 years agomodified ntoskrnl/mm/pe.c
KJK::Hyperion [Tue, 22 Apr 2008 18:49:22 +0000 (18:49 +0000)]
modified   ntoskrnl/mm/pe.c
   Convert as many ASSERTs as possible to C_ASSERT

svn path=/trunk/; revision=33105

16 years agoChange default intermediate directory to obj directory.
Hervé Poussineau [Tue, 22 Apr 2008 05:52:18 +0000 (05:52 +0000)]
Change default intermediate directory to obj directory.

svn path=/trunk/; revision=33094

16 years ago- add a proxy idl file
Johannes Anderwald [Mon, 21 Apr 2008 22:49:48 +0000 (22:49 +0000)]
- add a proxy idl file
- should fix the circual dependency

svn path=/trunk/; revision=33093

16 years ago- The address space lock is a pushlock -- pushlocks can fail if callers are acquiring...
Aleksey Bragin [Mon, 21 Apr 2008 21:42:00 +0000 (21:42 +0000)]
- The address space lock is a pushlock -- pushlocks can fail if callers are acquiring them without first disabling APCs, so they should always be acquired within a critical region. Fix the address space lock to do this.
- Don't keep track of the page table reference count table in the address space structure, nobody was using this.
- Instead of using either a global kernel pushlock for the kernel address space, and a per-process lock for process address space, always use a per-process lock (the kernel address space uses the idle process' lock).
- Instead of acquiring/releasing the lock by dereferencing the process which owns the address space, hold a pointer to the lock directly. This removes an extra dereference, and also allows the kernel lock to work (because kernel address space doesn't have an associated process).
- Inline the lock acquisition/release functions and the get-address-space functions.
- Measured a 20% performance boost during boot-up, and 150% during installation.
- Patch by Alex.

svn path=/trunk/; revision=33092

16 years ago- Remove perf code from Ob SD Cache implementation.
Aleksey Bragin [Mon, 21 Apr 2008 18:33:23 +0000 (18:33 +0000)]
- Remove perf code from Ob SD Cache implementation.

svn path=/trunk/; revision=33091

16 years agoAttempt to fix problem where there should have not been a problem. Remember this...
James Tabor [Mon, 21 Apr 2008 18:28:35 +0000 (18:28 +0000)]
Attempt to fix problem where there should have not been a problem. Remember this, do not fix it when it is not broken. I will restore GdiFixUpHandle back to the original state later.

svn path=/trunk/; revision=33090

16 years agoA driver-supplied Cancel routine is called with the cancel spin lock held, it must...
Andrew Munger [Mon, 21 Apr 2008 12:10:55 +0000 (12:10 +0000)]
A driver-supplied Cancel routine is called with the cancel spin lock held, it must be released on IRP completion.
This was inverted in mouclass. Fix by Samuel Serapión.

svn path=/trunk/; revision=33089

16 years ago- check input in PNP_GetRootDeviceInstance
Johannes Anderwald [Mon, 21 Apr 2008 12:08:42 +0000 (12:08 +0000)]
- check input in PNP_GetRootDeviceInstance
- fix length check in PNP_GetClassName
- allocate device id string dynamically in to avoid a potential buffer overflow
- use lstrlenW over wcslen in PnpEventThread

svn path=/trunk/; revision=33088

16 years agoImplemented DxEngGetRedirectionBitmap. Fixed GdiGetSetCopyCount.
James Tabor [Mon, 21 Apr 2008 05:56:49 +0000 (05:56 +0000)]
Implemented DxEngGetRedirectionBitmap. Fixed GdiGetSetCopyCount.

svn path=/trunk/; revision=33087

16 years agodid the mistake commit the reactos.diff again :(
Magnus Olsen [Mon, 21 Apr 2008 05:43:51 +0000 (05:43 +0000)]
did the mistake commit the reactos.diff again :(

svn path=/trunk/; revision=33086

16 years ago- Add Russian translation
Dmitry Chapyshev [Mon, 21 Apr 2008 05:43:23 +0000 (05:43 +0000)]
- Add Russian translation

svn path=/trunk/; revision=33085

16 years agoDxDdStartupDxGraphics
Magnus Olsen [Mon, 21 Apr 2008 05:42:08 +0000 (05:42 +0000)]
DxDdStartupDxGraphics
Bugfix : the load order, it try loading vista dxkrnl.sys frist then it try loading dxg.System
rember I have not tested vista dxkrnl.sys in reactos at all yet.

Bugfix :
thx piggworth for notice the hDev was never resive to DxEngLockHdev, it still does not do in some case.
we need more invigaste why

svn path=/trunk/; revision=33084

16 years agoForgot this file.
Ziliang Guo [Mon, 21 Apr 2008 03:50:48 +0000 (03:50 +0000)]
Forgot this file.

svn path=/trunk/; revision=33083

16 years agoFix memory leaks, patch by Samuel Serapión
Ziliang Guo [Mon, 21 Apr 2008 02:15:19 +0000 (02:15 +0000)]
Fix memory leaks, patch by Samuel Serapión

svn path=/trunk/; revision=33082

16 years agoHeader updates from Samuel
Ziliang Guo [Mon, 21 Apr 2008 02:13:57 +0000 (02:13 +0000)]
Header updates from Samuel

svn path=/trunk/; revision=33081

16 years ago- directory.rbuild in rosapps should be alphabetically sorted, so move drivers to...
Aleksey Bragin [Sun, 20 Apr 2008 20:54:06 +0000 (20:54 +0000)]
- directory.rbuild in rosapps should be alphabetically sorted, so move drivers to its respected place.
- Move service skeleton into templates directory, it's there for that kind of stuff.

svn path=/trunk/; revision=33080

16 years ago- Make the "Exit" string translateable
Colin Finck [Sun, 20 Apr 2008 19:49:10 +0000 (19:49 +0000)]
- Make the "Exit" string translateable
- Use the last possible ID for this command, so we can add as many keyboard layouts as possible to the popup menu
- Send a WM_CLOSE message when clicking "Exit", don't duplicate the WM_DESTROY code here

svn path=/trunk/; revision=33079

16 years agoPrevent mshtml registration (doesn't work yet)
Hervé Poussineau [Sun, 20 Apr 2008 19:10:41 +0000 (19:10 +0000)]
Prevent mshtml registration (doesn't work yet)
See issue #3189 for more details.

svn path=/trunk/; revision=33078

16 years ago- Add "Exit" item to menu
Dmitry Chapyshev [Sun, 20 Apr 2008 18:59:58 +0000 (18:59 +0000)]
- Add "Exit" item to menu

svn path=/trunk/; revision=33077

16 years agoFix indentation in the .rbuild file and remove some libs we don't use
Colin Finck [Sun, 20 Apr 2008 18:06:36 +0000 (18:06 +0000)]
Fix indentation in the .rbuild file and remove some libs we don't use

svn path=/trunk/; revision=33075

16 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Sun, 20 Apr 2008 17:11:36 +0000 (17:11 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=33074

16 years agoAdd ERROR_WINHTTP_AUTODETECTION_FAILED
Hervé Poussineau [Sun, 20 Apr 2008 17:11:12 +0000 (17:11 +0000)]
Add ERROR_WINHTTP_AUTODETECTION_FAILED

svn path=/trunk/; revision=33073

16 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Sun, 20 Apr 2008 17:07:15 +0000 (17:07 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=33072

16 years agoAdd GetCharABCWidthsI, GetGlyphIndicesA/W prototypes
Hervé Poussineau [Sun, 20 Apr 2008 17:06:50 +0000 (17:06 +0000)]
Add GetCharABCWidthsI, GetGlyphIndicesA/W prototypes

svn path=/trunk/; revision=33071

16 years agoAdd usp10 base address
Hervé Poussineau [Sun, 20 Apr 2008 17:06:38 +0000 (17:06 +0000)]
Add usp10 base address

svn path=/trunk/; revision=33070

16 years agoRemove rasdlg again. Misinterpretation by me. Sorry for that.
Daniel Reimer [Sun, 20 Apr 2008 16:49:57 +0000 (16:49 +0000)]
Remove rasdlg again. Misinterpretation by me. Sorry for that.

svn path=/trunk/; revision=33069

16 years agofix another stack crouptions for wrong prototype
Magnus Olsen [Sun, 20 Apr 2008 16:29:43 +0000 (16:29 +0000)]
fix another stack crouptions for wrong prototype

svn path=/trunk/; revision=33068

16 years agofix the trunk build for real now, i hate sell man calling in the phone.
Magnus Olsen [Sun, 20 Apr 2008 16:14:06 +0000 (16:14 +0000)]
fix the trunk build for real now, i hate sell man calling in the phone.

svn path=/trunk/; revision=33067

16 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Sun, 20 Apr 2008 16:10:55 +0000 (16:10 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=33066

16 years agofix the no init value in kbswith
Magnus Olsen [Sun, 20 Apr 2008 16:10:27 +0000 (16:10 +0000)]
fix the no init value in kbswith

svn path=/trunk/; revision=33065

16 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Sun, 20 Apr 2008 16:01:17 +0000 (16:01 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=33064

16 years agoSupport memicmpW() Wine specific function
Hervé Poussineau [Sun, 20 Apr 2008 16:01:04 +0000 (16:01 +0000)]
Support memicmpW() Wine specific function

svn path=/trunk/; revision=33063

16 years ago- Add the actual function for switching the keyboard layout
Colin Finck [Sun, 20 Apr 2008 15:48:43 +0000 (15:48 +0000)]
- Add the actual function for switching the keyboard layout
- Handle keyboard layout substitutes (like the "German (IBM)" layout)
- Refactor many parts of the code:
   * Always close hKey handles after they were successfully opened
   * Build the keyboard layout menu one time and not everytime, when it's opened
   * Use smaller sizes for some string variables, defined with CCH_LAYOUT_ID and CCH_ULONG_DEC.
     This also ensures that we don't retrieve bigger values, which would be invalid.
- Use a consistent indentation

svn path=/trunk/; revision=33062

16 years agoSynced Winhelp
Daniel Reimer [Sun, 20 Apr 2008 15:38:34 +0000 (15:38 +0000)]
Synced Winhelp
Updated README.WINE
- Added atl.dll, pdh.dll, rasapi32, rasdlg, stdole2.tlb, tapi32, usp10, winhttp
All of these are from wine. I called them Out of sync now. Change the way you want.

svn path=/trunk/; revision=33061

16 years agoLet DxEngScreenAccessCheck() always return true for now until we implemete it
Magnus Olsen [Sun, 20 Apr 2008 14:46:03 +0000 (14:46 +0000)]
Let DxEngScreenAccessCheck() always return true for now until we implemete it
it mean dxg.sys have preemptions to access the screen.

svn path=/trunk/; revision=33060

16 years agoBug 3188: Lithuanian translation by Vytis Girdzijauskas (cman@cman.us)
Daniel Reimer [Sun, 20 Apr 2008 14:44:14 +0000 (14:44 +0000)]
Bug 3188: Lithuanian translation by Vytis Girdzijauskas (cman@cman.us)

svn path=/trunk/; revision=33059

16 years agoBug 3188: Lithuanian translation by Vytis Girdzijauskas (cman@cman.us)
Daniel Reimer [Sun, 20 Apr 2008 14:44:13 +0000 (14:44 +0000)]
Bug 3188: Lithuanian translation by Vytis Girdzijauskas (cman@cman.us)

svn path=/trunk/; revision=33058

16 years agoadd dump of edd_directdraw_global
Magnus Olsen [Sun, 20 Apr 2008 14:10:08 +0000 (14:10 +0000)]
add dump of edd_directdraw_global
so we can easy see what it contain.

svn path=/trunk/; revision=33057

16 years agotake pfnDxDdCanCreateSurface offline for now
Magnus Olsen [Sun, 20 Apr 2008 13:08:25 +0000 (13:08 +0000)]
take pfnDxDdCanCreateSurface offline for now

svn path=/trunk/; revision=33056

16 years agoReinsert the <group> tag to stay XML compatible.
Colin Finck [Sun, 20 Apr 2008 12:29:19 +0000 (12:29 +0000)]
Reinsert the <group> tag to stay XML compatible.
XML forbids to have more than one root element in a file.

svn path=/trunk/; revision=33055

16 years agoadd two hack so dxg.sys continue works for now.
Magnus Olsen [Sun, 20 Apr 2008 11:50:43 +0000 (11:50 +0000)]
add two hack so dxg.sys continue works for now.
it does not longer crash at DdDeleteDirectDrawObject for it never been call longer to dxg.sys until I figout why
take DxEngLockShareSem and DxEngUnLockShareSem offline need more invigaste how it is done in windows.
take DxGdiDdGetScanLine offline for now so it does not crash dxg.sys

svn path=/trunk/; revision=33054

16 years ago- Add application for keyboard layouts switching (not finished)
Dmitry Chapyshev [Sun, 20 Apr 2008 10:41:34 +0000 (10:41 +0000)]
- Add application for keyboard layouts switching (not finished)

svn path=/trunk/; revision=33053

16 years agoDon't terminate a cpp_quote statement with a semicolon. New versions of WIDL will...
Eric Kohl [Sun, 20 Apr 2008 10:10:18 +0000 (10:10 +0000)]
Don't terminate a cpp_quote statement with a semicolon. New versions of WIDL will emit an error.

svn path=/trunk/; revision=33052

16 years ago- Frag fully builds.
Aleksey Bragin [Sun, 20 Apr 2008 09:23:29 +0000 (09:23 +0000)]
- Frag fully builds.
- Unfrag fails to link (both are still excluded from the build process).

svn path=/trunk/; revision=33051

16 years ago- avoid using BringWindowToTop as it creates display problems
Johannes Anderwald [Sun, 20 Apr 2008 08:48:55 +0000 (08:48 +0000)]
- avoid using BringWindowToTop as it creates display problems
- build a custom function GetRegValue to allow dxdiag be used on older Windows versions
- try to fix potential buffer overflows

svn path=/trunk/; revision=33050

16 years ago- Fix formatting
Dmitry Chapyshev [Sun, 20 Apr 2008 07:57:28 +0000 (07:57 +0000)]
- Fix formatting

svn path=/trunk/; revision=33049

16 years ago- Implement "Add keyboard layout" dialog
Dmitry Chapyshev [Sun, 20 Apr 2008 07:34:59 +0000 (07:34 +0000)]
- Implement "Add keyboard layout" dialog
- Other small changes

svn path=/trunk/; revision=33048

16 years ago- Fix typo
Dmitry Chapyshev [Sun, 20 Apr 2008 07:32:38 +0000 (07:32 +0000)]
- Fix typo

svn path=/trunk/; revision=33047

16 years agosorry did commit a file that should not be commit, it is my local changes for testing dx.
Magnus Olsen [Sun, 20 Apr 2008 07:22:36 +0000 (07:22 +0000)]
sorry did commit a file that should not be commit, it is my local changes for testing dx.

svn path=/trunk/; revision=33046

16 years agofixed 3 diffent bug for ms dxg.sys
Magnus Olsen [Sun, 20 Apr 2008 07:17:17 +0000 (07:17 +0000)]
fixed 3 diffent bug for ms dxg.sys
add correct prototypes for DxEngLockShareSem and DxEngUnlockShareSem
add param check in NtGdiDdDeleteDirectDrawObject
it now crash after or inside DxEngLockShareSem when it call on NtGdiDdDeleteDirectDrawObject

svn path=/trunk/; revision=33045

16 years agofix formatting
Christoph von Wittich [Sun, 20 Apr 2008 06:30:38 +0000 (06:30 +0000)]
fix formatting

svn path=/trunk/; revision=33044

16 years agoadd back a check for the negative value
Magnus Olsen [Sun, 20 Apr 2008 06:25:30 +0000 (06:25 +0000)]
add back a check for  the negative value
thx Christoph_vW notes this mistake.

svn path=/trunk/; revision=33043

16 years agoIdx already contains the length of the string
Colin Finck [Sat, 19 Apr 2008 23:57:44 +0000 (23:57 +0000)]
Idx already contains the length of the string
Just loop and remove all newline & line feed characters from the right instead of doing this with 8 strlen calls

svn path=/trunk/; revision=33042

16 years agoFix two very small bugs found by running this code in valgrind.
Art Yerkes [Sat, 19 Apr 2008 23:16:39 +0000 (23:16 +0000)]
Fix two very small bugs found by running this code in valgrind.

svn path=/trunk/; revision=33041

16 years agoadded 3 more correct prototype for dxeng.c
Magnus Olsen [Sat, 19 Apr 2008 22:38:54 +0000 (22:38 +0000)]
added 3 more correct prototype for dxeng.c
now we crash on NTGdiDdDeleteDirectDrawObject

svn path=/trunk/; revision=33040

16 years agodo not assert if DPRINT1("Object->cExclusiveLock = %d\n", Object->cExclusiveLock);
Magnus Olsen [Sat, 19 Apr 2008 22:11:39 +0000 (22:11 +0000)]
do not assert if DPRINT1("Object->cExclusiveLock = %d\n", Object->cExclusiveLock);
this can happen in ms dxg.sys for it can lock same dc twice or more.
then call to unlock it equal many times.

svn path=/trunk/; revision=33039

16 years ago- Remove unneeded stoneage stuff.
Aleksey Bragin [Sat, 19 Apr 2008 21:27:16 +0000 (21:27 +0000)]
- Remove unneeded stoneage stuff.

svn path=/trunk/; revision=33038

16 years agoadd tempory hack for alloc EDD_DIRECTDRAW_GLOBAL for win32k.
Magnus Olsen [Sat, 19 Apr 2008 20:50:39 +0000 (20:50 +0000)]
add tempory hack for alloc EDD_DIRECTDRAW_GLOBAL for win32k.
this should be done for each drv, not a global for whole win32k
it is only gobal for that drv, then we set the pointer to each hdc
that is how it should be done.

svn path=/trunk/; revision=33037

16 years agofixed stack corutions for dxeng api they do not have STDCALL set, we need figout...
Magnus Olsen [Sat, 19 Apr 2008 20:17:51 +0000 (20:17 +0000)]
fixed stack corutions for dxeng api they do not have STDCALL set, we need figout which have STDCALL or FASTCALL. I only set STDCALL on tested functions for dxgen this will fix the stack corruptions we did have in ms dxsys.sys, now we need setup internal struct for dx. I also add some debug data output so we can see what been requested to send back from DxEngGetHdevData

svn path=/trunk/; revision=33036

16 years agoPlugged in the old NtGdiSetDIBits for now. Need to investigate the problems with...
James Tabor [Sat, 19 Apr 2008 19:00:34 +0000 (19:00 +0000)]
Plugged in the old NtGdiSetDIBits for now. Need to investigate the problems with SaveDC and CreateCompatibleDC.

svn path=/trunk/; revision=33035

16 years agoNtGdiDdCreateDirectDrawObject
Magnus Olsen [Sat, 19 Apr 2008 12:46:54 +0000 (12:46 +0000)]
NtGdiDdCreateDirectDrawObject
Bugfix : do not set pfnDdCreateDirectDrawObject before the dxg.sys been load.
Add : allown loading of vista name of dx kernel known as dxkrnl.sys

DxDdStartupDxGraphics add debug out for it, that can be use to see how the list being load.

svn path=/trunk/; revision=33034

16 years agoadd small help text and file dump from win32kdxtest
Magnus Olsen [Sat, 19 Apr 2008 07:21:03 +0000 (07:21 +0000)]
add small help text and file dump from win32kdxtest

svn path=/trunk/; revision=33032

16 years agoTidy ups some missed changes.
James Tabor [Sat, 19 Apr 2008 02:42:37 +0000 (02:42 +0000)]
Tidy ups some missed changes.

svn path=/trunk/; revision=33031

16 years agoUpdate OffsetClipRgn, IntersectClipRect, GetRgnBox, moved SetDIBitsToDevice from...
James Tabor [Sat, 19 Apr 2008 02:20:36 +0000 (02:20 +0000)]
Update OffsetClipRgn, IntersectClipRect, GetRgnBox, moved SetDIBitsToDevice from stubs and misc changes. Properly implement EngGetDriverName and EngGetPrinterDataFileName.

svn path=/trunk/; revision=33030

16 years agoPatch by Stefan Ginsberg (stefan__100__ AT hotmail DOT com): Win32k half: Remove...
James Tabor [Sat, 19 Apr 2008 00:24:34 +0000 (00:24 +0000)]
Patch by Stefan Ginsberg (stefan__100__ AT hotmail DOT com): Win32k half: Remove NtGdiSetDIBits, all related files updated.include

svn path=/trunk/; revision=33029

16 years agoPatchPatch by Stefan Ginsberg (stefan__100__ AT hotmail DOT com): Gdi32 half only...
James Tabor [Fri, 18 Apr 2008 23:51:29 +0000 (23:51 +0000)]
PatchPatch by Stefan Ginsberg (stefan__100__ AT hotmail DOT com): Gdi32 half only: Implement SetDIBits, I made corrections to the patch to handle palette and proper hdc handling.

svn path=/trunk/; revision=33028

16 years ago- Include tditest in rosapps build.
Aleksey Bragin [Fri, 18 Apr 2008 20:46:48 +0000 (20:46 +0000)]
- Include tditest in rosapps build.

svn path=/trunk/; revision=33027