Skip to content

v47 renames HINSTANCE to HMODULE #1508

Closed as not planned
Closed as not planned

Description

@kennykerr

Why was this done? They're interchangeable in the Windows headers but it's quite a sweeping change.

Activity

  1. mikebattista commented on Mar 23, 2023

    @mikebattista
    Contributor

    See #834. This is intentional.

  2. kennykerr commented on Mar 23, 2023

    @kennykerr
    ContributorAuthor

    Thanks, but that doesn't explain why the change was made. So now it's more consistent with the documentation for some APIs but inconsistent with many other prominent APIs like CreateWindow and friends. I don't really mind which it is since they're equivalent, but arbitrary changes just cause unnecessary ripples. Perhaps just something to keep in mind in future.

  3. mikebattista commented on Mar 23, 2023

    @mikebattista
    Contributor

    The changes aren't arbitrary. This is Win32 metadata and HMODULE is the Win32 variant. HINSTANCE is an artifact of Win16. This change updates the typedef to the modern variant.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions