Skip to content

Offer SafeHandle parameter overloads where 'base type' typedef structs are taken #491

Closed

Description

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

  1. jnm2 commented on Jan 26, 2022

    @jnm2
    Contributor

    ℹ️ I opened #205 for SelectObject specifically. (The title isn't mine.)

  2. AArnott commented on Jan 26, 2022

    @AArnott
    MemberAuthor

    Duplicate of #205

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions