Understanding PREfast for Drivers Filters
A PREfast for Drivers filter is a set of warnings that you can apply to a PREfast for Drivers Defect Log. When you apply a filter, PREfast for Drivers displays only the warnings that are included in the filter; all other warnings are hidden. You can use the preset filters that are included in PREfast for Drivers or create your own.
Typically, users begin by applying a filter that includes only the most reliable and serious warnings. They investigate those warnings and fix errors, and then run PREfast for Drivers again. On the next run, they first apply the same filter to view the effect of their fixes, and then apply a different filter, or remove all filters, and examine the results.
PREfast for Drivers filters have the following characteristics:
A filter affects only the appearance of a Defect Log. It does not delete any warnings or otherwise alter the log contents.
Filters are inclusive, that is, PREfast for Drivers displays the warnings that are included in the filter and hides all other warnings.
You can apply only one filter at a time to a Defect Log.
You can create or change a filter at any time by checking or clearing the check boxes for the warnings in a Defect Log, but you cannot save changes to a preset filter.
Preset filters are persistent. When you apply a preset filter to a Defect Log, the filter selection is stored in the registry and the filter is applied to all Defect Logs until you change or remove the filter.
Filters are not associated with a particular Defect Log. If you apply a preset filter to one Defect Log, that filter is applied to any Defect Log that you view until you remove it or select a different filter.
Once applied, the filter affects the XML-formatted display of the Defect Log that appears when you type a PREfast View command and the text-formatted display of the Defect Log that appears when you type a PREfast List command.
You can apply a preset filter to a Defect Log before or after you open it. You can create or change a filter only when the Defect Log is open.
Send comments about this topic to Microsoft
Build date: 5/3/2011