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?
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?