PFLT_DISCONNECT_NOTIFY callback function (fltkernel.h)

FltMgr calls a minifilter's DisconnectNotifyCallback callback function to notify the minifilter when a client port is being disconnected.

Syntax

PFLT_DISCONNECT_NOTIFY PfltDisconnectNotify;

void PfltDisconnectNotify(
  PVOID ConnectionCookie
)
{...}

Parameters

ConnectionCookie

[in] Pointer to minifilter-defined information that uniquely identifies this client port. When the client port was created, the minifilter returned this context pointer in the ConnectionPortCookie parameter of its ConnectNotifyCallback routine.

Return value

None

Remarks

FltMgr calls DisconnectNotifyCallback whenever the user-mode handle count for the client port reaches zero or when the minifilter is about to be unloaded.

For more information, see Communication between user-mode and minifilters.

Requirements

Requirement Value
Header fltkernel.h
Library FltMgr.lib
DLL FltMgr.sys
IRQL PASSIVE_LEVEL

See also

ConnectNotifyCallback

FltCreateCommunicationPort