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

Ilya Mentsiuk 1 Reputation point
2021-03-11T11:13:38.97+00:00

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 development | Windows API - Win32
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.