The information in this article applies to:
SUMMARYThe documentation for SetClipboardData() states that CF_PRIVATEFIRST can be used to put private data formats on the clipboard. It also states that data of this format is not automatically deleted. However, that is apparently not true. That is, the data is removed automatically when the clipboard is emptied (sending a WM_DESTROYCLIPBOARD message) and the new item is set into the clipboard. The old item is shown; however, the handle now is invalid because GlobalFree() is called on it. MORE INFORMATION
GlobalFree() was not called on this handle. If you try to use the other
handle to this memory, you will find that the one you initially received
from GlobalAlloc() is still valid. Only the clipboard handle has been
invalidated by the call to EmptyClipboard().
Additional query words:
Keywords : kbClipboard kbNTOS kbWinOS2000 kbSDKWin32 kbGrpUser kbWinOS |
Last Reviewed: February 1, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |