SetDebugErrorLevel  1O7ZFS0 

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

   );

 

 

Parameters

dwLevel

Specifies the minimum error level for debugging events. If an error is equal to or above this level, Windows 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 GetLastError11C2VS7 function is set, but the kernel does not generate a debugging event.