by ComputerGuru · 4y ago · 0 comments
I wonder if there was an alternative specifically for the scrollbar here - some way of obtaining an outer "shell" (via win32k, but then basically "orphaning" it so that you can't do anything besides kill it when you're finished) that just provides the window with an empty scrollable element that is then populated by the restricted process.
That ship has really sailed though; I think the days of native widgets are quickly coming to an end.
I didn’t think Weyland had its own toolkit?
And can you run for example Weyland on Windows?
Also, the problem, I guess, is not just drawing (which could be done securely in a frame-buffer), but that you have to receive the events.
I guess uxtheme is unsuitable for win32k lockdown for some reason, probably because it's GDI-based.
[1]: https://devblogs.microsoft.com/oldnewthing/20050211-00/?p=36...
You’re right, uxtheme can’t be called directly from content because of win32k dependencies. One option could be for content to request the parent to draw those controls, but as you can imagine there are drawbacks to doing that. As usual, there are a lot of trade offs involved.