FilterClose function (fltuser.h)
The FilterClose function closes an open minifilter handle.
Syntax
HRESULT FilterClose(
[in] HFILTER hFilter
);
Parameters
[in] hFilter
Minifilter handle returned by a previous call to FilterCreate.
Return value
FilterClose returns S_OK if successful. Otherwise, it returns an error value.
Remarks
After FilterClose is called, the minifilter handle that the hFilter parameter specifies is no longer valid and cannot safely be used.
Use FilterClose to close open minifilter handles returned by calls to FilterCreate. Use FilterFindClose to close handles returned by calls to FilterFindFirst.
To close a connection port handle that was opened by calling FilterConnectCommunicationPort, use CloseHandle.
Requirements
Requirement | Value |
---|---|
Target Platform | Universal |
Header | fltuser.h (include Fltuser.h) |
Library | FltLib.lib |
DLL | FltLib.dll |