I would like to know if Windows Error Reporting is enabled on the OS on which my code runs. What is the registry key to find this information?
Under Windows 7 (and probably Vista, perhaps XP) Windows Error Reporting is the Wersvc service.
You can check it's start state settings in
If you want to find out if it's actually running or not, then you'll need to look someplace other than the registry.
For Vista the keys are •HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting •HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting
I believe in XP it is HKEY_LOCAL_MACHINE\Software\Microsoft\PCHealth\ErrorReporting