When I first started to learn about wine development I stumbled across some examples exactly like these in the wine wiki. A quick search reveals them (the first 3) http://wiki.winehq.org/DeveloperExamples?action=fullsearch&context=180&a...
I myself like this aproach, it's a very useful form of documentation.