Microsoft KB Archive/103240

From BetaArchive Wiki

DOCERR: CloseClipboard() Suggests Calling DuplicateHandle()

PSS ID Number: Q103240 Article last modified on 11-02-1995

4.00 | 3.10 3.50 3.51


The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API) included with:
- Microsoft Windows NT versions 3.5 and 3.51 - Microsoft Windows 95 version 4.0

The documentation for CloseClipboard() suggests using DuplicateHandle() on a clipboard object before closing the clipboard, in order to use that object after the clipboard is closed. Doing so results in a return of ERROR_INVALID_HANDLE.

The Win32 SDK 3.1 documentation is in error. DuplicateHandle() is specified to work only on console input, console output, events, files, file mappings, mutexes, pipes, processes, semaphores, and thread handles.

The Win32 SDK 3.5 documentation has been corrected.

Additional reference words: 3.10 3.50 3.51 4.00 95 KBCategory: kbui kbdocerr KBSubcategory: UsrClp ============================================================================= Copyright Microsoft Corporation 1995.