I just want to find out which location does the WER write its dump file? Also is this location specific to OS?
The documentation for WER says you can set registry setting to control the dump location and the type of dump
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\DumpFolder
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\DumpType
Default value for DumpFolder is %LOCALAPPDATA%\CrashDumps.