KsDecrementCountedWorker - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ks.h

KSDDKAPI ULONG KsDecrementCountedWorker(
  [in] PKSWORKER Worker
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ks-ksdecrementcountedworker)

KsDecrementCountedWorker function

Description

Decrements the current worker count of a worker previous created by KsRegisterCountedWorker. This should be called after each task within a worker has been completed.

Parameters

Worker [in]

Contains the previously allocated worker.

Return value

Returns the current counter. A count of zero implies that the task list has been completed.

Remarks

KsDecrementCountedWorker should be called after each task within a worker has been completed. A corresponding call to KsIncrementCountedWorker would have previously incremented the count. KsDecrementCountedWorker may be called at DISPATCH_LEVEL.

See also

KsIncrementCountedWorker

KsRegisterCountedWorker