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

Type: limit access to close_handle? (Desktop handles cannot ever be closed using it) #33

Open
MaulingMonkey opened this issue Sep 7, 2022 · 0 comments
Labels
enhancement Improve existing stuff

Comments

@MaulingMonkey
Copy link
Owner

Niche function, fairly harmless runtime bug if called (e.g. passing a desktop handle results in ERROR_INVALID_HANDLE.)

Some other generic HANDLE functions (e.g. get_handle_information) should still work on desktop handles. This might simply be a matter of preventing desktop::OwnedHandle => handle::Owned conversion, but still allowing conversion to handle::Borrowed?

@MaulingMonkey MaulingMonkey added the enhancement Improve existing stuff label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve existing stuff
Projects
None yet
Development

No branches or pull requests

1 participant