This is a good blog post about implementing the WER API's documented on MSDN

http://msdn.microsoft.com/en-us/library/bb513616(VS.85).aspx

Example of implementation by Claus Brod

#define private public Crashing with style on Vista, part II (25 Jun 2007)