bluestone
the zip files there contain source. You can start with AkelDLL Simple plugin-example.
And what do you mean by cliptext? Multi-clipboard? You may look at the CaptureClipboard plugin, it is something similar.