> > Also, are there any examples out there in C land on how to read > and write to the two clipboards? > Not really examples but Jamie Zawinski has a pretty nice writeup here: https://www.jwz.org/doc/x-cut-and-paste.html