Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
WinQueryClipbrdOwner (1.2)
◄Function Group► ◄Overview► ◄Changes► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINCLIPBOARD
HWND WinQueryClipbrdOwner(hab, fLock)
HAB hab; /* anchor-block handle */
BOOL fLock; /* lock/unlock viewer flag */
The WinQueryClipbrdOwner function retrieves the handle of the window that
currently owns the clipboard (if any).
Parameter Description
────────────────────────────────────────────────────────────────────────────
hab Identifies an anchor block.
fLock This parameter is ignored by MS OS/2 versions 1.2 and later.
Return Value
The return value is the window handle of the current clipboard owner if the
function is successful; it is NULL if the clipboard is not owned by any
window or if an error occurs.
See Also
WinLockWindow, WinQueryClipbrdViewer, WinSetClipbrdOwner
♦