News for hackers. Stuff that matters.
Re:Is there a maximum size for Windows clipboard data? by bennysomething on Wednesday June 08, 2022 @02:22PM (#31671851)
Genuine question, why is it even possible to lock the clip board?
Re:Is there a maximum size for Windows clipboard data? by ectopod on Wednesday June 08, 2022 @04:09PM (#31673286)
An application doing a paste needs to query the available clipboard formats and then ask for the data from one of them. This wouldn't work reliably if other applications could simultaneously change the clipboard. So the OpenClipboard API locks the clipboard and applications need to remember to call CloseClipboard.
Re:Is there a maximum size for Windows clipboard data? by RajT88 on Wednesday June 08, 2022 @03:29PM (#31672748)
I have tried to track this down - it seems like at some point it was not possible. My guess is Vista is when the lock was implemented. I've come up blank repeatedly.

I am sure Raymond Chen knows. Looks like comments are allowed on his blog too!