KsIncrementCountedWorker - NtDoc

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

KSDDKAPI ULONG KsIncrementCountedWorker(
  [in] PKSWORKER Worker
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

KsIncrementCountedWorker function

Description

Increments the current worker count, and optionally queues the counted work item with the worker previously created by KsRegisterCountedWorker.

Parameters

Worker [in]

Contains the previously allocated worker.

Return value

Returns the current counter. A count of one implies that a worker was actually scheduled.

Remarks

This should be called after an addition has been made to the worker's list of tasks to perform. A corresponding call to KsDecrementCountedWorker should be made within the work item after each task has been completed. This may be called at DISPATCH_LEVEL.

See also

KsDecrementCountedWorker

KsRegisterCountedWorker