This is the mail archive of the
mailing list for the Cygwin project.
Re: clipboard details
On Mar 26 12:15, Corinna Vinschen wrote:
> On Mar 25 00:28, Thomas Wolff wrote:
> > 2 comments about accessing the Windows clipboard:
> > * Does the Windows clipboard maintain a timestamp? If so, it would
> > be useful to propagate it to /dev/clipboard as its virtual last
> > modification time.
> It doesn't. The clipboard only supports a sequence number. It
> would be possible to convert that to a virtual modification timestamp,
> but it's tricky. I have an idea how to do it, but I have to test it.
I've just implemented a simple method to store the timestamp in the
clipboard data itself. Since there's no way to modify stored data, only
one timestamp is stored and then used as modification and access time.
This only works within Cygwin. If you change the clipboard from outside
Cygwin, the timestamps will be very likely reset because the
Cygwin-specific clipboard data will be deleted, so this is not reliable.
The problem is that the clipboard is window station specific and there's
no way to store window station specific, persistent data somewhere else.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple