Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "SetErrorMode" in [All]

kernel32

.
Summary
.

static extern ErrorModes     SetErrorMode( ErrorModes uMode );

.

    Public Declare Function SetErrorMode Lib "kernel32" (ByVal uMode As ErrorModes) As ErrorModes

.

    static extern ErrorModes SetErrorMode(ErrorModes uMode);

.

        SetErrorMode(ErrorModes.SEM_NOGPFAULTERRORBOX | ErrorModes.SEM_NOOPENFILEERRORBOX); // this funtion prevents error dialog box to show up after application crash

.
Documentation
[SetErrorMode] on MSDN
.

Use the same flags as for SetErrorMode:

.

From the Microsoft documentation for SetErrorMode, for systems running Windows 7 and later, "Callers should favor SetThreadErrorMode over SetErrorMode since it is less disruptive to the normal behavior of the system." This API is not supported on systems running versions of Windows that are older than 7.


 
Access PInvoke.net directly from VS: