Open AArnott opened 11 months ago
Given the following metadata definition of WlanOpenHandle:
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)
I expect the last parameter to be an out SafeHandle-derived type that calls WlanCloseHandle when released.
out SafeHandle
WlanCloseHandle
Actual behavior
Given the following metadata definition of
WlanOpenHandle
:CsWin32 generates the following friendly overload:
Expected behavior
I expect the last parameter to be an
out SafeHandle
-derived type that callsWlanCloseHandle
when released.