Skip to content

K32EnumProcessModules takes HINSTANCE instead of HMODULE #834

Closed

Description

@pie-flavor

MSDN says HMODULE *lphModule, shows up in ILSpy as HINSTANCE* lphModule and in Rust as lphmodule: *mut HINSTANCE

Activity

  1. kennykerr commented on Mar 16, 2022

    @kennykerr
    Contributor

    HINSTANCE and HMODULE mean the same thing today. They only have different type aliases in the Windows SDK for historical reasons. I think the metadata just picked a winner to avoid having two different types, which can lead to incompatibilities in strongly typed languages.

  2. added
    question
    on Mar 17, 2022
  3. added
    usability
    and removed
    question
    on Mar 21, 2022
  4. mikebattista commented on Mar 21, 2022

    @mikebattista
    Contributor

    We can replace all HINSTANCEs with HMODULE.

  5. added a commit that references this issue on Mar 28, 2026
    c5769c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

usability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions