-
Notifications
You must be signed in to change notification settings - Fork 17
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
Win, is_format_avail(13)
fails after Ctrl + C
#33
Comments
abroad code seems to be correct as it acquire clipboard before checking format Note that I provide wrapper over enumeration API But it seems you already tried and see clipboard format is available So I would suspect windows bug first Another thing to consider is that I would recommend to check for both Note that all clipboard APIs will have errno set as 0 when format is not available so you could technically go ahead and use |
I've tried, but it fails rustdesk/rustdesk#6859 (comment) I'll try to find out what error can be returned by |
Note that while clipboard is global, it is tied to user session (but this should not be a problem if service is part of user session) |
There is important note about service on MS docs:
|
@fufesou I checked my windows laptop and looking at default clipboard service it is runs (log ons) as my user |
Well it was wild guess, in any case I do not have believe it has anything to do with winapi itself but I'll keep this issue open until you'll find solution |
Hi, thanks for this great crate.
It's not a bug of this crate, but it's a related strange issue.
issue
Have you ever meet the issue that:
is_format_avail(13)
is_format_avail(13)
returns 0, butGetLastError()
returns 0.related
Hi, I've used this crate through arboard .
Someone is facing this problem. But I cannot find out why it happens.
rustdesk/rustdesk#6859 (comment)
rustdesk/rustdesk#6859 (comment)
The code in
arboard
ishttps://github.com/fufesou/arboard/blob/aa0de068a9b1bccad764a67276007768111ec3aa/src/platform/windows.rs#L489
thanks
It seems this issue happens only on his one machine.
It may be related to his machine settings.
It would be great if anyone knows about this issue or can give a little hint.
The text was updated successfully, but these errors were encountered: