You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Offer SafeHandle parameter overloads where 'base type' typedef structs are taken #491
Consider the SelectObject method, which takes an HGDIOBJ as its second parameter. This is a 'base type' of sorts among the win32metadata structs. Its [AlsoUsableFor] derived types include HBITMAP and others which carry RAIIFree attributes and thus would warrant a SafeHandle. But as SelectObject takes the base type, and no RAIIFree attribute is applied to that struct, a SelectObject overload that takes the base SafeHandle type should be generated.
Activity
jnm2 commentedon Jan 26, 2022
ℹ️ I opened #205 for SelectObject specifically. (The title isn't mine.)
AArnott commentedon Jan 26, 2022
Duplicate of #205