As well as the many examples that follow, you should also have a look at the PPWIZARD Extensions section as it contains many header files that make excellent examples.