Compartilhar via


Using Filters (Windows CE 5.0)

Send Feedback

Filters are groups of rules that determine which messages will be displayed, while presets are groups of filters.

**Note  ** All filters in PREfast are exclusionary. You use filters to tell PREfast what you do not want to see. Any warnings matching the criteria in a particular filter will be hidden when the filter is applied.

Using Filters in the Defect Log UI

Click the Filter button at the top of the Message List window to open the filter dialog box.

The filter dialog box contains a filter definition box, a list of presets, and a group of buttons for use when using filters. For more information about presets, see Using Presets.

Filter Definition Box

There are three columns in the filter definition box:

  • A column that displays check boxes showing which warnings you have selected
  • A warning column that displays the warning numbers and file types available for filtering
  • A column containing the description of the warning

You can sort all columns.

Buttons

  • You must click OK or APPLY to filter the message list:
    • The OK button applies the filter and closes the Filter dialog box.
    • The APPLY button applies the filter without closing the dialog box.
  • The CANCEL button hides the Filter dialog box without applying the filter or any changes you made.
  • The FILTER button at the top of the screen hides the Filter dialog box.
  • The INVERT button changes the status of check boxes to the opposite status. This is useful for large changes to filters.

Filter Types

PREfast provides several standard filters that appear in the filter dialog box. The standard filters are represented in the Filters.xml file that is installed in the %PREFAST_ROOT%scripts\DefectUI directory.

The filters in Filters.xml are always loaded first. You can then modify these filters.

It is recommended that you do not change this file directly because it is overridden during the update process. Instead, use this file as a model for your own filter files.

See Also

Filtering the Message List Window

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.