Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from winapi to windows-rs #46

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Conversation

ncihnegn
Copy link
Contributor

Fix #43.

Copy link
Owner

@kotauskas kotauskas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not the biggest fan of the handle transmutes everywhere. src/os/windows/mod.rs would be a good place to put a function that converts BorrowedHandle<'_> to windows-rs's abysmal HANDLE type. (Also, that don't even need to be a transmute, the isize field is public and the standard library RawHandle type is a pointer, meaning that it can be casted to isize.)

@ncihnegn ncihnegn force-pushed the windows-rs branch 2 times, most recently from c6261ae to b4b086d Compare November 14, 2023 07:36
@ncihnegn
Copy link
Contributor Author

Added helpers for BorrowedHandle and OwnedHandle.

@ncihnegn ncihnegn requested a review from kotauskas November 23, 2023 05:50
@kotauskas kotauskas merged commit 7d47640 into kotauskas:main Jan 25, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace winapi dependency with windows crate
2 participants