Bewerken

Delen via


PoEndDeviceBusy function (wdm.h)

The PoEndDeviceBusy routine marks the end of a period of time in which the device is busy.

Syntax

void PoEndDeviceBusy(
  [in, out] PULONG IdlePointer
);

Parameters

[in, out] IdlePointer

A pointer to an idle counter. This is a pointer value that was previously returned by the PoRegisterDeviceForIdleDetection routine. Because PoRegisterDeviceForIdleDetection might return a NULL pointer, the caller must verify that the pointer is non-NULL before it calls PoEndDeviceBusy.

Return value

None

Remarks

The PoStartDeviceBusy and PoEndDeviceBusy routines mark the start and end of a time period in which a device is busy. Each call to PoStartDeviceBusy must be followed by a corresponding call to PoEndDeviceBusy. For more information about how these routines work together, see PoStartDeviceBusy.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 7.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level

See also

PoRegisterDeviceForIdleDetection

PoStartDeviceBusy