FilterDetach (Compact 2013)

3/26/2014

NDIS calls a filter driver's FilterDetach function to release all the resources that are associated with a filter module.

Syntax

VOID
  FilterDetach(
    IN NDIS_HANDLE  FilterModuleContext
    );

Parameters

  • FilterModuleContext
    A handle to the context area for the filter module that NDIS will remove from the driver stack. The filter driver created and initialized this context area in the FilterAttach function.

Return Value

None

Remarks

FilterDetach is a required function. NDIS calls FilterDetach to remove a filter module from a driver stack. NDIS calls FilterDetach when the filter module is in the Paused state.

FilterDetach frees the driver's context areas and other resources (such as buffer pools) for the affected filter module.

After the filter driver returns from FilterDetach, the filter module is in the Detached state.

NDIS calls FilterDetach at IRQL = PASSIVE_LEVEL.

Requirements

Header

filter.h

See Also

Reference

NDIS Filter Driver Functions
FilterAttach