microsoft / win32metadata

Tooling to generate metadata for Win32 APIs in the Windows SDK.
Other
1.34k stars 118 forks source link

More Retained functions #1994

Closed AArnott closed 2 weeks ago

AArnott commented 2 months ago

1726 introduced a [Retained] attribute to be applied on parameters that are pointers that the win32 function retains for longer than the direct function call.

As @colejohnson66 calls out in https://github.com/microsoft/CsWin32/issues/1244, ReadFileEx and WriteFileEx are async functions, but they are not tagged with [Retained].