On Fri Sep 5 08:33:30 2025 +0000, Hans Leidekker wrote:
That's the convention MS uses for these size_is parameters. They are implicit and must always precede conformant array parameters. https://learn.microsoft.com/en-us/uwp/winrt-cref/winrt-type-system, section on array parameters says: "The array size parameter does not have a name". C doesn't allow that, so I think the underscores are used to avoid potential name conflicts. Also note that winmd skips these size_is parameters and encodes arrays as NULL terminated arrays.
Do we need to match Microsoft's parameter names? Are they encoded in whatever winrt's equivalent of a typelib is?