The Windows Runtime PassArray is a read-only array, even though it isn’t declared const

6 · Raymond Chen · Aug. 25, 2021, 2:02 p.m.
As I noted some time ago, the Windows Runtime PassArray pattern passes a read-only non-owning counted array which is nevertheless not declared as const. Indeed, if you try to force the array type to be const in your IDL declaration: HRESULT SetData([in] UINT32 dataSize, The post The Windows Runtime PassArray is a read-only array, even though it isn’t declared <CODE>const</CODE> appeared first on The Old New Thing....