FilterInstanceClose function (fltuser.h)

The FilterInstanceClose function closes a minifilter instance handle opened by FilterInstanceCreate.

Syntax

HRESULT FilterInstanceClose(
  [in] HFILTER_INSTANCE hInstance
);

Parameters

[in] hInstance

Minifilter instance handle returned by a previous call to FilterInstanceCreate.

Return value

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

Remarks

After the FilterInstanceClose function is called, the minifilter instance handle specified by the hFilterInstanceFind parameter is no longer valid and cannot safely be used.

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

Requirements

Requirement Value
Target Platform Universal
Header fltuser.h (include Fltuser.h)
Library FltLib.lib
DLL FltLib.dll

See also

FilterInstanceCreate

FilterInstanceFindClose

FilterInstanceFindFirst