HNHacker News
TopNewBestAskShowJobs

becarefulyo

139 karma · joined January 7, 2017

submissionscomments
becarefulyo··on Calling Windows 10 APIs from a WinForms or WPF application
In that case, you put your Windows 10 stuff in a different .dll that doesn't get deployed on old versions of Windows.

The article has an example.

becarefulyo··on Calling Windows 10 APIs from a WinForms or WPF application
The Windows 10 API provides API availability checks. So you target the latest version but then add checks to see what API's are available.

This is nice because it encapsulates both OS version API differences and device capabilities.

https://blogs.windows.com/buildingapps/2015/09/15/dynamicall...

    using Windows.Foundation.Metadata;
     
    if(ApiInformation.IsTypePresent("Windows.Media.Playlists.Playlist"))
    {
        await myAwesomePlaylist.SaveAsAsync( ... );
    }

    if(ApiInformation.IsApiContractPresent("Windows.Media.Playlists.PlaylistsContract"), 1, 0)
    {
       // Now I can use all PlayList APIs
    }
becarefulyo··on Calling Windows 10 APIs from a WinForms or WPF application
The article has Win32 examples too.
becarefulyo··on Windows Code Samples
There is a new XAML feature called x:Bind where the XAML compiler code-gens the data binding code instead of the framework doing it all at runtime. You can set breakpoints in the generated code.

https://msdn.microsoft.com/en-us/windows/uwp/xaml-platform/x...

Instead of C++/Cx, you can use the new C++/WinRT, which uses standard C++ syntax and adds "await" to make async programming much easier.

https://github.com/Microsoft/cppwinrt

becarefulyo··on “Reclaim Windows 10” Powershell Script
I'm an enigneer on Windows. We actually use the crash dumps and the more the better so we can prioritize reliability bugs. Usage telemetry helps us prioritize work, like which settings to migrate from Control Panel to Settings first, or to see if design changes actually made things better for people.
becarefulyo··on “Reclaim Windows 10” Powershell Script
Careful, by default this disables the lock screen.
← PreviousPage 2 of 2