// ntddk.h
NTSTATUS IoDecrementKeepAliveCount(
[in, out] PFILE_OBJECT FileObject,
[in, out] PEPROCESS Process
);
View the official Windows Driver Kit DDI referenceNo description available.
The IoDecrementKeepAliveCount routine decrements a reference count associated with a Windows app on a specific device. This routine is called by a kernel mode driver when the app's I/O process has completed. If the app's reference count drops to 0, Windows can suspend the app.
FileObject [in, out]The file object handle to the device.
Process [in, out]The process associated with the device.
This routine returns STATUS_SUCCESS on success, or the appropriate NTSTATUS error code on failure. NTSTATUS error codes are defined in Ntstatus.h.