Export (0) Print
Expand All
Expand Minimize

FltCloseCommunicationPort function

FltCloseCommunicationPort closes a minifilter driver's communication server port.

Syntax


VOID FltCloseCommunicationPort(
  _In_  PFLT_PORT ServerPort
);

Parameters

ServerPort [in]

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

Return value

None

Remarks

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.

Requirements

Header

Fltkernel.h (include Fltkernel.h)

Library

Fltmgr.lib

IRQL

PASSIVE_LEVEL

See also

FilterConnectCommunicationPort
FltCloseClientPort
FltCreateCommunicationPort
FltSendMessage
PFLT_FILTER_UNLOAD_CALLBACK

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft