Skip to content

Latest commit

 

History

History
75 lines (55 loc) · 2.46 KB

nf-wdm-ioadjustpagingpathcount.md

File metadata and controls

75 lines (55 loc) · 2.46 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:wdm.IoAdjustPagingPathCount
IoAdjustPagingPathCount macro (wdm.h)
The IoAdjustPagingPathCount routine increments or decrements a caller-supplied page-file counter as an atomic operation.
kernel\ioadjustpagingpathcount.htm
kernel
04/30/2018
IoAdjustPagingPathCount macro
IoAdjustPagingPathCount, IoAdjustPagingPathCount routine [Kernel-Mode Driver Architecture], k104_f52acd6d-f3f6-43c2-a339-3060a12a6298.xml, kernel.ioadjustpagingpathcount, wdm/IoAdjustPagingPathCount
wdm.h
Wdm.h, Ntddk.h, Ntifs.h
Desktop
Available starting with Windows 2000.
Any level
Windows
IoAdjustPagingPathCount
wdm/IoAdjustPagingPathCount
APIRef
kbSyntax
HeaderDef
Wdm.h
IoAdjustPagingPathCount

IoAdjustPagingPathCount macro

-description

The IoAdjustPagingPathCount routine increments or decrements a caller-supplied page-file counter as an atomic operation.

-parameters

-param count [in]

Pointer to a caller-supplied variable that contains a counter. A driver typically stores a page-file counter in the device extension for the device.

-param paging [in]

Specifies whether the counter is to be incremented or decremented. A value of TRUE specifies an increment operation.

-remarks

This routine is useful for maintaining a count of paging files on a device. The operating system notifies a driver that a paging file has been created on, or removed from, one of the driver's devices by sending an IRP. The IRP has the major code IRP_MJ_PNP and the minor code IRP_MN_DEVICE_USAGE_NOTIFICATION.

This routine can be used for other counters, such as counters for hibernation files or crash-dump files.

-see-also

IRP_MJ_PNP

IRP_MN_DEVICE_USAGE_NOTIFICATION