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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,411 questions
{count} votes