Difference between revisions of "Arwinss"

From ReactOS Wiki
Jump to: navigation, search
(TODO list)
(TODO list)
Line 57: Line 57:
 
3. Fix installer/uninstaller crash(see bug {{bug|5631}})
 
3. Fix installer/uninstaller crash(see bug {{bug|5631}})
  
4. Fix garbage on desktop after closing some apps(see bug {{ARWINSSBUG|76}})
+
4. Fix garbage on desktop after closing some apps {{ARWINSSBUG|76}}
  
 
5. <del>Fix zoom and tabs in Firefox(see bug {{bug|5637}})</del>
 
5. <del>Fix zoom and tabs in Firefox(see bug {{bug|5637}})</del>

Revision as of 18:06, 26 October 2015

This page is probably outdated

The information on this page might not be valid for the current state of ReactOS.
A Wiki Administrator should look at this page and decide or discuss what to do with it.


Arwinss is an alternative implementation of the core Win32 subsystem components. Technical information about implementation details is available at this page: Arwinss technical.

Usage

Before continuing, I'd recommend a separate build folder for building Arwinss. Otherwise you'll have to revert the Arwinss changes and rebuild ReactOS.

Checkout the arwinss branch (svn://svn.reactos.org/reactos/branches/arwinss), and compile using following command:

ninja comctl32 user32 gdi32 win32k winent win32csr freetype kernel32 explorer winlogon

or just type:

ninja

This will build all needed modules of a new subsystem. Copy them to the installed ReactOS version (see Transfer files from the host OS to the virtual drive)

or, even easier, type:

ninja bootcd

If you want to build the winex11 module, you must first copy the lib/3rdparty/libX11/libX11.a file from your working copy to the obj-i386/lib/3rdparty/libX11 directory (creating it if it does not exist). This will fix the winex11.drv linking issues, and you can just type

makex winex11

to build this optional module.

Architecture

Arwinss uses parts of the Wine architecture and parts of Windows NT architecture in appropriate places and in a good way. The overall call flow / architecture of Arwinss looks like this:

Arwinss.png

It consists of the following modules, one of them being optional (winex11.drv):

  • arwinss/freetype – implements usermode font rendering (FreeType library, with small ReactOS glue), used by GDI32.DLL
  • arwinss/client/user32 – implements USER API
  • arwinss/client/gdi32 – implements GDI API
  • arwinss/client/winent.drv/winent.drv – implements native graphics and user drivers
  • arwinss/client/winex11.drv/ – implements X11 X-windows graphics and user drivers
  • win32ss – implements kernel mode counter part of the native graphics driver, a Simple Window Manager (SWM) and a kernel mode USER server.
  • win32csr – implements needed parts of the CSR subsystem along with handling user input

Hacking

Most of the hacking happens in WINENT.DRV and WIN32K.SYS, with very rare fixes to the user32/gdi32 (mainly, because it's a tested Wine's code with only minor changes).

Convention for marking changes. C++ code comments (//) mean that the place has some special mark up for debugging. A typical use is for a

// FIXME: Something

Potential Benefits

These bugs would be fixed if Arwinss was ready (just a short list): {{#bugzilla:|id=933,1175,1239,1776,2428,3500,4443,4612,5069|columns=id,resolution,summary}}

As one can see from these bug titles it mainly boils down to drastically improved user32 and gdi32 support.

TODO list

1. Fix redrawing issues(bugs #5225 and #5218)

2. Fix crash that prevents booting in VirtualBox

3. Fix installer/uninstaller crash(see bug #5631)

4. Fix garbage on desktop after closing some apps (see bug #76)

5. Fix zoom and tabs in Firefox(see bug #5637)

6. Fix "Window titles are shown as inactive (gray) while being active" (see bug #5206)

7. Fix arwinss related program crashes(see bug #5627)

8. Fix font mapping (see bug #5327)

9. Fix interaction of windows in apps with few windows(see bug #5232)

10. Fix low level input hooks (used for example in DosBox)

Unimplemented/Fixme that appear during work

1. fixme:(dll\win32\arwinss\winent.drv\userdrv.c:665) RosDrv_SetWindowStyle is UNIMPLEMENTED!

2. fixme:(dll\win32\arwinss\winent.drv\userdrv.c:642) RosDrv_SetWindowIcon is UNIMPLEMENTED!

3. (subsystems\win32\win32k_arwinss\wine\queue.c:814) TODO: Check if anyone is waiting on queue is missing!

4. (subsystems\win32\win32k_arwinss\eng\device.c:927) FIXME: DeviceName is NULL, trying display nr. 1 (TuxRacer)

5. fixme:(dll\win32\arwinss\winent.drv\userdrv.c:636) RosDrv_SetWindowRgn is UNIMPLEMENTED! (Reget)

6. fixme:(dll\win32\arwinss\winent.drv\userdrv.c:626) RosDrv_SetLayeredWindowAttributes is UNIMPLEMENTED! (Qutim)

7. err:(dll\win32\arwinss\winent.drv\gdidrv.c:353) ExtEscape for escape 8 is unimplemented! (SuperTux 0.3.3; ROS text screensaver)

8. fixme:(dll\win32\arwinss\winent.drv\clipboard.c:2440) NTDRV_CLIPBOARD_IsSelectionOwner is UNIMPLEMENTED! (AbiWord. Notepad++)

9. fixme:(dll\win32\arwinss\winent.drv\gdidrv.c:451) RosDrv_GetTextExtentExPoint is UNIMPLEMENTED!

10. fixme:(dll\win32\arwinss\winent.drv\gdidrv.c:609) RosDrv_RealizePalette is UNIMPLEMENTED!

11. fixme:(dll\win32\arwinss\winent.drv\gdidrv.c:959) RosDrv_UnrealizePalette is UNIMPLEMENTED!

12. fixme:(dll\win32\arwinss\winent.drv\gdidrv.c:433) RosDrv_GetNearestColor is UNIMPLEMENTED!

Testing

You can get the latest ARWINSS ISO here.

See Also