The SetDebugErrorLevel function sets the minimum error level at which the system will generate debugging events and pass them to a debugger.
VOID SetDebugErrorLevel(
DWORD dwLevel // debugging error level
);
Value | Meaning |
---|---|
0 | Does not report any errors. This value is the default error level. |
SLE_ERROR | Reports only ERROR level debugging events. |
SLE_MINORERROR | Reports only MINORERROR level and ERROR level debugging events. |
SLE_WARNING | Reports WARNING level, MINORERROR level, and ERROR level debugging events. |
This function does not return a value.
The debugger calls SetDebugErrorLevel to specify the types of errors that it should be notified about.
If the debugging error level is greater than the error that occurred, the value for the GetLastError function is set, but the kernel does not generate a debugging event.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Debugging Overview, Debugging Functions