FilterInstanceFindClose function

The FilterInstanceFindClose function closes the specified minifilter instance search handle. The FilterInstanceFindFirst and FilterInstanceFindNext functions use this search handle to locate instances of a minifilter.

Syntax


HRESULT FilterInstanceFindClose(
  _In_ HANDLE hFilterInstanceFind
);

Parameters

hFilterInstanceFind [in]

Minifilter instance search handle to close. This handle must have been opened by a previous call to FilterInstanceFindFirst.

Return value

FilterInstanceFindClose returns S_OK if successful. Otherwise, it returns an error value.

Remarks

After the FilterInstanceFindClose function is called, the minifilter instance search handle specified by the hFilterInstanceFind parameter cannot be used in subsequent calls to FilterInstanceFindFirst or FilterInstanceFindClose.

Use FilterInstanceFindClose to close handles returned by calls to FilterInstanceFindFirst. Use FilterInstanceClose to close handles returned by calls to FilterInstanceCreate.

Requirements

Target platform

Universal

Header

Fltuser.h (include Fltuser.h)

Library

FltLib.lib

DLL

FltLib.dll

See also

FilterInstanceClose
FilterInstanceCreate
FilterInstanceFindFirst
FilterInstanceFindNext

 

 

Send comments about this topic to Microsoft

Show: