Skip to content

Don't specialize HANDLE #1439

@kennykerr

Description

@kennykerr

Win32::Foundation::HANDLE is specialized by the windows and windows-sys crates to use *mut c_void as the underlying type rather than isize, as defined by the Windows metadata. This seemed convenient at first since that's how std::os::windows::raw::HANDLE is defined. But this then causes friction between HANDLE and the many other handle types defined by the Windows API that, more correctly, use isize as their underlying type.

So I'm considering just sticking with what the Windows metadata says to avoid the friction with other Windows types and APIs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions