FltCloseCommunicationPort function

Download EaseFilter Filter Driver SDK Setup File
Download EaseFilter Filter Driver SDK Zip File

FltCloseCommunicationPort closes a minifilter driver's communication server port.


VOID FLTAPI FltCloseCommunicationPort(
  PFLT_PORT ServerPort



Opaque port handle for the server port to be closed. This parameter is required and cannot be NULL.

Return value



FltCloseCommunicationPort closes a communication server port that was created by a previous call to FltCreateCommunicationPort.

A minifilter driver normally calls FltCloseCommunicationPort from its FilterUnloadCallback (PFLT_FILTER_UNLOAD_CALLBACK) routine.

After FltCloseCommunicationPort is called, the opaque port handle specified by the ServerPort parameter is no longer valid and cannot safely be used. (The ServerPort handle is for the communication server port that the minifilter driver uses to listen for incoming connections.)

When the communication server port is closed, existing connections are not affected. However, no more incoming connections will be accepted.

This routine closes handle for the minifilter driver's server port, which listens for incoming connections. To disconnect a specific connection from the minifilter driver, use FltCloseClientPort.


Target Platform Universal
Header fltkernel.h (include Fltkernel.h)
Library Fltmgr.lib
DLL Fltmgr.sys