News for hackers. Stuff that matters.
Re:Is there a maximum size for Windows clipboard data? by ErikAugust on Wednesday June 08, 2022 @11:37AM (#31668949)
Wouldn’t it be nice if it threw an error, and didn’t just return NULL?
Re:Is there a maximum size for Windows clipboard data? by bsnal on Wednesday June 08, 2022 @12:46PM (#31670072)
If you get NULL, you are supposed to call GetLastError to get information on what happened.
Re:Is there a maximum size for Windows clipboard data? by taspeotis on Wednesday June 08, 2022 @10:46PM (#31677094)
How would you like this C API to throw an error?
Re:Is there a maximum size for Windows clipboard data? by Akronymus on Wednesday June 08, 2022 @11:48AM (#31669145)
Itd be nice if the proviser were to show a dialog that a copy was requested but couldnt be provided. Altough, dunno what a good message for that would be.
Re:Is there a maximum size for Windows clipboard data? by hackmiester on Wednesday June 08, 2022 @12:04PM (#31669410)
Very old school windows apps like SecureCRT display semi-helpful messages for this. Better than a silent failure anyway.
Re:Is there a maximum size for Windows clipboard data? by passivate on Thursday June 09, 2022 @12:16AM (#31677484)
I don't think low level system APIs when called from an App should be messing with UI components. Can you explain what is better about it?
Re:Is there a maximum size for Windows clipboard data? by Akronymus on Thursday June 09, 2022 @04:12AM (#31678749)
I don't think it is the system level API, but rather the program receiving a notification that the copy paste didn't succeed where the program can then display an error/warning. At least from my understanding.