Expand Minimize

IoIncrementKeepAliveCount routine

The IoIncrementKeepAliveCount routine increments a reference count associated with an Windows Store 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.

Syntax


NTSTATUS IoIncrementKeepAliveCount(
  _Inout_  PFILE_OBJECT FileObject,
  _Inout_  PEPROCESS Process
);

Parameters

FileObject [in, out]

The file object handle to the device.

Process [in, out]

The process associated with the device.

Return value

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

Requirements

Version

Available in Windows 8.

Header

Ntddk.h (include Ntddk.h)

Library

Ntoskrnl.lib

DLL

Ntoskrnl.dll

See also

IoDecrementKeepAliveCount

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft