home.social

#winrt — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #winrt, aggregated by home.social.

fetched live
  1. Microsoft、JavaScriptからWinRT APIを直接呼び出せる仕組みをパブリックプレビュー/Electron/Node.jsアプリからローカルAIや通知を利用。動的な生成で従来の不便を解消
    forest.watch.impress.co.jp/doc

    #forest_watch_impress #JavaScript #Node_js #Electron #winapp #WinRT #プログラミング #Windows

  2. UIをコマンドでタッチ・ドラッグ、JS/TSからWinRT APIを直接呼び出し ~「winapp CLI 0.5.0」が公開/「Claude Code」向けプラグインを追加、「VS Code」拡張機能も拡充
    forest.watch.impress.co.jp/doc

    #forest_watch_impress #WinUI #winapp #Windows_App_Development_CLI #WinRT #プログラミング #Windows

  3. Sharing the result of a single Windows Runtime IAsyncOperation among multiple coroutines, part 1 | by Raymond Chen

    devblogs.microsoft.com/oldnewt

    #windowsdev #winrt #csharp #cpp

  4. Sharing the result of a single Windows Runtime IAsyncOperation among multiple coroutines, part 1 | by Raymond Chen

    devblogs.microsoft.com/oldnewt

    #windowsdev #winrt #csharp #cpp

  5. A hypothetical redesign of System.Diagnostics.Process to avoid confusion over properties that are valid only when you are the one who called Start | by Raymond Chen

    devblogs.microsoft.com/oldnewt

    #windowsdev #winrt #csharp #programming

  6. A hypothetical redesign of System.Diagnostics.Process to avoid confusion over properties that are valid only when you are the one who called Start | by Raymond Chen

    devblogs.microsoft.com/oldnewt

    #windowsdev #winrt #csharp #programming

  7. "Cool API you wanna use there, would be a shame if it doesn't work on half your target systems" - #Microsoft, with the #WinRT PackageManager API.

    Fuck you.

    #Win32

  8. How?

    Type: System.Runtime.InteropServices.COMException
    Message:
    Stack Trace: at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|38_0(Int32 hr)
    at …
    at Windows.ApplicationModel.StartupTask.GetAsync(String taskId)

    Why is StartupTask.GetAsync(id) failing.

    And why isn't the exception showing the error code?

    #Windows #WinRT

  9. Anyone here with #WinRT knowledge?
    If I have e.g. com:ComInterface and com4:ComInterface registered, does com4 on supported systems override the com declaration?

    #Windows #Win32 #UWP #MSIX

  10. Why is #WinRT / WinMD so much more pain than creating the same in regular #MIDL #COM?

    #Win32

  11. Has someone performed any micro benchmarking of COM/WinRT against PInvoke?
    I.e. I have a wrapper in WinRT, and call some Win32-function, vs calling the Win32 function directly from C#?

    #DotNet #CSharp #Windows #WinRT #Cpp

  12. Anyone here got a fancy wrapper struct for COM instances, that allows for dot-method calls, is IDisposable, and works seamlessly with IUnknown**, void**, T**, out IUnknown*, out void*, out T*, and doesn't depend on weird Marshal RCW-behaviors?
    Basically C++ smart pointers for COM (like WIL/WinRT com_ptr, com_ref).

    #DotNet #CSharp #Win32
    #Cpp #WinRT

  13. Ever wanted to use the shiny modern #WinRT Print Dialog from within your proven #Wpf Application?

    Well ... now you can!
    github.com/Diahon/Diahon.WinUI

    #dotnet #uwp #winui #winui3

  14. Well! I have to say, kudos to the #winrt projection team from microsoft and #dotnet using the winrt api from both #fsharp and #rust is nearly the same

    In this case I'm just using the
    Windows.Security.Cryptography.DataProtection namespace to read a file using the winrt api (I could use bcl/std apis I know) convert it into a stream, use the DataProtection apis to encrypt the file, the encrypted file gets saved as a new file (so I can see it rather than just do it to the same file) and then decrypt that file into a new one which technically is just a copy of the first one but after encryption/decryption :)

  15. Trying out #WinRT APIs for hours just to find out they're only supported in Windows IoT version is my passion 🤪.

  16. Do you think using #fsharp is somewhat niche?
    Well... I got you a real niche!
    Recording with your camera using
    #WinRT APIs with
    @[email protected]
    as your window handle provider from F#
    😅

    I should technically be able to use MAUI or other windows desktop solution (WPF or WinForms) but I figured that If Avalonia (which works wonders with F#) could give me a window handle that's all I needed.

    So yeah... any time you feel you think desktop and servers with F# is niche, remember there's a dude trying out WinRT APIs with F# and a cross-platform framework

    If you ask me "Why not MAUI"? I'd answer:

    I don't know, does it even support F#?
    Feel free to poke me with a sample with it I'll happily try it out :)