FltCloseCommunicationPort function (fltkernel.h)
FltCloseCommunicationPort closes a minifilter driver's communication server port.
Syntax
VOID FLTAPI FltCloseCommunicationPort(
[in] PFLT_PORT ServerPort
);
Parameters
[in] ServerPort
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
Requirement | Value |
---|---|
Target Platform | Universal |
Header | fltkernel.h (include Fltkernel.h) |
Library | Fltmgr.lib |
DLL | Fltmgr.sys |
IRQL | PASSIVE_LEVEL |