The SetDebugErrorLevel function sets the minimum error level at which Windows 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.
See: