2 ms·
> hData is null! Why is that? It turns out that the clipboard allows an application to pass in null to SetClipboardData for a given format. "Turns out"? This
by kazinator 9y ago
> hData is null! Why is that? It turns out that the clipboard allows an application to pass in null to SetClipboardData for a given format.
"Turns out"? This is clearly spelled out in the MSDN API documentation, which is all you need to understand all this. (No NotePad stack traces required, let alone ones in a proportional font).
SetClipboard: https://msdn.microsoft.com/en-us/library/windows/desktop/ms649051(v=vs.85).aspx https://msdn.microsoft.com/en-us/library/windows/desktop/ms6...
hMem [in, optional]
Type: HANDLE
A handle to the data in the specified format. This parameter can be NULL, indicating that the window provides data in the specified clipboard format (renders the format) upon request.