win32clipboard.GetClipboardSequenceNumber

int = GetClipboardSequenceNumber()

The GetClipboardSequenceNumber function returns the clipboard sequence number for the current window station.

Comments

This method is not available on some early Windows (eg 95) machines.

[This is preliminary documentation and subject to change.]
The system keeps a 32-bit serial number for the clipboard for each window station. This number is incremented whenever the contents of the clipboard change or the clipboard is emptied. You can track this value to determine whether the clipboard contents have changed and optimize creating DataObjects. If clipboard rendering is delayed, the sequence number is not incremented until the changes are rendered.

Win32 API References

Search for GetClipboardSequenceNumber at msdn, google or google groups.

Return Value

The return value is the clipboard sequence number. If you do not have WINSTA_ACCESSCLIPBOARD access to the window station, the function returns zero.