Reactos
at master 39 lines 961 B view raw
1/*** 2*seterrm.c - Set mode for handling critical errors 3* 4* Copyright (c) Microsoft Corporation. All rights reserved. 5* 6*Purpose: 7* Defines signal() and raise(). 8* 9*******************************************************************************/ 10 11#include <corecrt_internal.h> 12#include <stdlib.h> 13 14/*** 15*void _seterrormode(mode) - set the critical error mode 16* 17*Purpose: 18* 19*Entry: 20* int mode - error mode: 21* 22* 0 means system displays a prompt asking user how to 23* respond to the error. Choices differ depending on the 24* error but may include Abort, Retry, Ignore, and Fail. 25* 26* 1 means the call system call causing the error will fail 27* and return an error indicating the cause. 28* 29*Exit: 30* none 31* 32*Exceptions: 33* 34*******************************************************************************/ 35 36extern "C" void __cdecl _seterrormode(int const mode) 37{ 38 SetErrorMode(mode); 39}