A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/CyberShadow/DustMite/wiki/Suppressing-Windows-crashes below:

Suppressing Windows crashes · CyberShadow/DustMite Wiki · GitHub

Suppressing the standard "Program has stopped working" dialog on Windows

The following D program will launch another program with the general protection fault error dialog disabled.

import std.process;

extern(Windows) void SetErrorMode(int);
enum : uint { SEM_FAILCRITICALERRORS = 1, SEM_NOGPFAULTERRORBOX = 2 }

int main(string[] args)
{
	SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
	return spawnProcess(args[1..$]).wait();
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4