question

IlyaMentsiuk-6771 avatar image
0 Votes"
IlyaMentsiuk-6771 asked ·

Can't copy files via clipboard in win 10 service app

There is process that run under service and has SYSTEM authority. This process creates window and calls AddClipboardFormatListener to get clipboard notification. TEXT data can be red from clipboard. But when try to copy file (press Ctral+C) CountClipboardFormats() returns 0.

windows-api-general
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello, @IlyaMentsiuk-6771

But when try to copy file (press Ctral+C) CountClipboardFormats() returns 0.

Remarks: If the function fails, the return value is zero. To get extended error information, call GetLastError.

Please check the returned error code, it will tell you the reason.


0 Votes 0 ·

0 Answers