SetDebugErrorLevel

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
);
 

Parameters

dwLevel
Specifies the minimum error level for debugging events. If an error is equal to or above this level, the system generates a debugging event. This parameter must be one of the following values:
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.

Return Values

This function does not return a value.

Remarks

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.

QuickInfo

  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.

See Also

Debugging Overview, Debugging Functions