FilterClose function

The FilterClose function closes an open minifilter handle.

Syntax


HRESULT FilterClose(
  _In_  HFILTER hFilter
);

Parameters

hFilter [in]

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

Header

Fltuser.h (include Fltuser.h)

Library

FltLib.lib

See also

CloseHandle
FilterConnectCommunicationPort
FilterCreate
FilterFindClose
FilterFindFirst

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft