Table of contents
TOC
Collapse the table of content
Expand the table of content

Returning Status from a Minifilter DriverEntry Routine

Last Updated: 4/22/2017

A minifilter driver's DriverEntry routine normally returns STATUS_SUCCESS. But if minifilter initialization fails, the DriverEntry routine should return an appropriate error NTSTATUS value.

If the DriverEntry routine returns a status value that is not a success NTSTATUS value, the system responds by unloading the minifilter driver. The minifilter driver's FilterUnloadCallback routine is not called. For this reason, the DriverEntry routine must free any memory that was allocated for system resources before returning a status value that is not a success NTSTATUS value.


© 2017 Microsoft