IT漫步

技术生活札记©Yaohui


Collecting User-Mode Dumps for Windows Applications

By the sytem: https://learn.microsoft.com/zh-cn/windows/win32/wer/collecting-user-mode-dumps REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /v DumpType /t REG_DWORD /d 2 /f REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /v DumpCount /t REG_DWORD /d 3 /f REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /v DumpFolder /t REG_EXPAND_SZ /d C:\app\CrashDumps /f By programmatical: https://stackoverflow.com/questions/1547211/how-to-create-minidump-for-my-process-when-it-crashes#1547251





Run application as whatever user called it (non-administrator) on Windows 10 (Supressing UAC Prompts)

cmd min C set __COMPAT_LAYER=RunAsInvoker && start "" %1 For example: @echo off set __COMPAT_LAYER=RunAsInvoker start "" XXX.exe exit /b 0 ref https://stackoverflow.com/questions/37878185/what-does-compat-layer-actually-do





Proudly powered by WordPress