News for hackers. Stuff that matters.
Re:Internet Explorer zero-day by kodablah on Sunday May 13, 2018 @10:36AM (#17059097)
I saw this as part of https://docs.microsoft.com/en-us/windows/uwp/cpp-and-winrt-a... (and the previous cppwinrt github project) but I haven't dug too deeply. I wonder if the restrictions are too limiting. Any bare-bones win32 example of using it in a simple cpp file? I plan on doing a poc myself soon.
Re:Internet Explorer zero-day by mastax on Sunday May 13, 2018 @02:04PM (#17060118)
Using WinRT stuff in a Win32 app is quite simple. Add windowsapp.lib, #include "winrt/Windows.Foundation.h", and call winrt::init_apartment();. There's no easy way to embed Xaml controls, though. I think the only option would be to have a separate Xaml window, get its HWND, and SetWindowLong+SetParent to force it to be a child window.
Re:Internet Explorer zero-day by poizan42 on Monday May 14, 2018 @02:41AM (#17063252)
There's this: Walkthrough: Hosting WPF Content in Win32[0]

That does use C++/CLI though, but I'm sure you can play around with the embedded api if you really want a pure C++ solution.

[0] https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanc...

Re:Internet Explorer zero-day by mastax on Tuesday May 15, 2018 @11:50AM (#17074868)
WPF ≠ UWP XAML, which is what the EdgeHTML control is.
Re:Internet Explorer zero-day by poizan42 on Friday May 18, 2018 @05:14AM (#17099870)
Well, the controls in question here are WPF and WinForms hosts for UWP controls, so if you can host WPF then you can use the UWP host control to host UWP content. Yeah, its a bit roundabouts, but I think it is the only supported way right now.