Cancellation of Windows Runtime activities is asynchronous | by Raymond Chen

https://devblogs.microsoft.com/oldnewthing/20260624-00/?p=112465

#windowsdev #winrt #async #csharp #cpp

Cancellation of Windows Runtime activities is asynchronous - The Old New Thing

You're asking for it to cancel, but it doesn't wait for confirmation.

The Old New Thing

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

https://devblogs.microsoft.com/oldnewthing/20260527-00/?p=112361

#windowsdev #winrt #csharp #cpp

Sharing the result of a single Windows Runtime IAsyncOperation among multiple coroutines, part 1 - The Old New Thing

Caching the result and knowing when the cache is valid.

The Old New Thing

If C# and JavaScript lets me await a Windows Runtime asynchronous operation more than once, why not C++/WinRT? | by Raymond Chen

https://devblogs.microsoft.com/oldnewthing/20260526-00/?p=112354

#windowsdev #winrt #cpp #javascript #winjs #csharp #dotnet #programming

If C# and JavaScript lets me await a Windows Runtime asynchronous operation more than once, why not C++/WinRT? - The Old New Thing

A difference in philosophy.

The Old New Thing

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

https://devblogs.microsoft.com/oldnewthing/20260525-00/?p=112351

#windowsdev #winrt #csharp #programming

A hypothetical redesign of System.Diagnostics.Process to avoid confusion over properties that are valid only when you are the one who called Start - The Old New Thing

Putting them in a place that can access only if you call Start.

The Old New Thing
UI is tough. Binding is worse. #WinRT #WPF

"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

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

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

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

#Win32

Windows Runtime API design principles around read-write properties: Idempotence and self-assignment | by Raymond Chen

https://devblogs.microsoft.com/oldnewthing/20251008-00/?p=111660

#winrt #windowsdev #apidesign #windowssdk #windows #programming

Windows Runtime API design principles around read-write properties: Idempotence and self-assignment - The Old New Thing

Setting it to the value it already has is not a crime.

The Old New Thing