-
Notifications
You must be signed in to change notification settings - Fork 119
Support [RAIIFree] on output parameters #1078
Copy link
Copy link
Closed
Labels
metadata gemA feature of the metadata that cswin32 does not yet utilitzeA feature of the metadata that cswin32 does not yet utilitze
Description
Actual behavior
Given the following metadata definition of WlanOpenHandle:
public unsafe static extern uint WlanOpenHandle([In] uint dwClientVersion, [Optional][Reserved] void* pReserved, [Out] uint* pdwNegotiatedVersion, [Out][RAIIFree("WlanCloseHandle")] HANDLE* phClientHandle);CsWin32 generates the following friendly overload:
internal static unsafe uint WlanOpenHandle(uint dwClientVersion, out uint pdwNegotiatedVersion, winmdroot.Foundation.HANDLE* phClientHandle)Expected behavior
I expect the last parameter to be an out SafeHandle-derived type that calls WlanCloseHandle when released.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
metadata gemA feature of the metadata that cswin32 does not yet utilitzeA feature of the metadata that cswin32 does not yet utilitze