Microsoft KB Archive/103240

DOCERR: CloseClipboard Suggests Calling DuplicateHandle

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

4.00 | 3.10 3.50 3.51

WINDOWS | WINDOWS NT

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.