Are there any ways (or functions) to save data from HANDLE
to a file without data loss and load data from file to a HANDLE
? Assuming that it's a HANDLE
to a data obtained from GetClipboardData
.
It would be great if there are answers for all possible data types in clipboard formats but I would look by piority for CF_LOCALE
, CF_TEXT
, CF_OEMTEXT
and CF_UNICODETEXT
.
I tried to convert from HANDLE
to pointer but I don't know how to get the data properly (as the handle only point to the first data without further information)
I tried to obtain some useful handle information to know what is possibly inside, but I cannot retrieve it.
There are too few attempts to try as very few (or no one) asked about this question...