Following demonstrates using a timer to handle OpenClipboard failures. Multiple instances of the clipboard format listener are running, and the DebugView output shows the number of times each instance tried to open the clipboard before it succeeded. In this example a 50ms interval was used for the timer. The image also demonstrates that the WM_CLIPBOARDUPDATE message is not posted until the clipboard is closed.
The next image shows results without using a timer or looping. The error message indicates which process has the clipboard open which causes the OpenClipboard function failure.