Collect crash .dmp and .hdmp files after a crash of C++ service and a user-mode app
===

I'm coding in C++/MFC using WinAPIs. My software consists of a local service and a user-mode app that provides user interface for a logged in Windows user. I'm looking for a way to collect .dmp and .hdmp files in case of crash in either of those modules. I know that [WER][1] supposedly collects them and submits them to Microsoft. Is there a way to collect those files and keep them somewhere on the hard drive?

PS. I need this to work under Windows XP SP3, Vista, 7, 8.


  [1]: http://msdn.microsoft.com/en-us/library/bb513641%28v=vs.85%29