-
Notifications
You must be signed in to change notification settings - Fork 606
Don't specialize HANDLE #1439
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request