Skip to content

Latest commit

 

History

History
68 lines (53 loc) · 2.01 KB

nf-ntddk-ioincrementkeepalivecount.md

File metadata and controls

68 lines (53 loc) · 2.01 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:ntddk.IoIncrementKeepAliveCount
IoIncrementKeepAliveCount function (ntddk.h)
The IoIncrementKeepAliveCount routine increments a reference count associated with a Windows app process on a specific device.
kernel\ioincrementkeepalivecount.htm
kernel
04/30/2018
IoIncrementKeepAliveCount function
IoIncrementKeepAliveCount, IoIncrementKeepAliveCount routine [Kernel-Mode Driver Architecture], kernel.ioincrementkeepalivecount, ntddk/IoIncrementKeepAliveCount
ntddk.h
Ntddk.h
Universal
Available in Windows 8.
Ntoskrnl.lib
Ntoskrnl.exe
Windows
IoIncrementKeepAliveCount
ntddk/IoIncrementKeepAliveCount
APIRef
kbSyntax
DllExport
Ntoskrnl.exe
IoIncrementKeepAliveCount

IoIncrementKeepAliveCount function

-description

The IoIncrementKeepAliveCount routine increments a reference count associated with a Windows app process on a specific device. This routine is called by a kernel mode driver in response to the app opening a process for I/O. This prevents Windows from suspending the app before the I/O process is complete.

-parameters

-param FileObject [in, out]

The file object handle to the device.

-param Process [in, out]

The process associated with the device.

-returns

This routine returns STATUS_SUCCESS on success, or the appropriate NTSTATUS error code on failure. NTSTATUS error codes are defined in Ntstatus.h.

-see-also

IoDecrementKeepAliveCount