VideoPortInterlockedDecrement function (video.h)

The VideoPortInterlockedDecrement function decrements a caller-supplied variable as an atomic operation.

Syntax

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

Parameters

[in] Addend

Pointer to the variable to be decremented.

Return value

VideoPortInterlockedDecrement returns the decremented value.

Remarks

When possible and whenever appropriate, VideoPortInterlockedDecrement 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

VideoPortInterlockedExchange

VideoPortInterlockedIncrement