VideoPortInterlockedIncrement function (video.h)

The VideoPortInterlockedIncrement function increments a caller-supplied variable as an atomic operation.

Syntax

VIDEOPORT_API LONG VideoPortInterlockedIncrement(
  [in] IN PLONG Addend
);

Parameters

[in] Addend

Pointer to the variable to be incremented.

Return value

VideoPortInterlockedIncrement returns the incremented value.

Remarks

When possible and whenever appropriate, VideoPortInterlockedIncrement is implemented inline by the compiler. It can be safely used on pageable data.

This function is atomic only with respect to other VideoPortInterlockedXxx calls.

Requirements

Requirement Value
Minimum supported client Available in Windows 2000 and later versions of the Windows operating systems.
Target Platform Desktop
Header video.h (include Video.h)
Library Videoprt.lib
DLL Videoprt.sys
IRQL Any level

See also

VideoPortInterlockedDecrement

VideoPortInterlockedExchange