Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 948 Bytes

SetErrorMode.md

File metadata and controls

47 lines (31 loc) · 948 Bytes

Home

Function name : SetErrorMode

Group: Error Handling - Library: kernel32


Controls whether the system will handle the specified types of serious errors, or whether the process will handle them.


Code examples:

Using the SetErrorMode for determining if a floppy drive is ready

Declaration:

UINT SetErrorMode(
  UINT uMode   // process error mode
);  

FoxPro declaration:

DECLARE INTEGER SetErrorMode IN kernel32;
	INTEGER uMode  

Parameters:

uMode [in] Specifies the process error mode.


Return value:

The return value is the previous state of the error-mode bit flags.


Comments:

See also: GetErrorMode.