FltClose function (fltkernel.h)
FltClose closes a file handle that was opened by FltCreateFile or FltCreateFileEx.
Syntax
NTSTATUS FLTAPI FltClose(
[in] HANDLE FileHandle
);
Parameters
[in] FileHandle
Handle created by a successful call to FltCreateFile or FltCreateFileEx.
Return value
FltClose returns STATUS_SUCCESS or an appropriate NTSTATUS value such as the following:
Return code | Description |
---|---|
|
FileHandle was not a valid file handle. This is an error code. |
Remarks
FltClose is only for closing file handles opened by FltCreateFile or FltCreateFileEx. It should not be used to close arbitrary handles.
Requirements
Requirement | Value |
---|---|
Target Platform | Universal |
Header | fltkernel.h (include Fltkernel.h) |
Library | FltMgr.lib |
DLL | Fltmgr.sys |
IRQL | PASSIVE_LEVEL |