Skip to content

Latest commit

 

History

History
54 lines (28 loc) · 1.47 KB

File metadata and controls

54 lines (28 loc) · 1.47 KB
description Description of 'interlocked_compare_exchange' function in HyperDbg Scripts

interlocked_compare_exchange

Function

interlocked_compare_exchange

Syntax

interlocked_compare_exchange( GlobalVariable, Expression, Expression );

Parameters

[GlobalVariable (Destination)]

     A global variable that is compared with the value of **Comperand**.

[Expression (ExChange)]

     Specifies the output value pointed to by **Destination** if the input value pointed to by **Destination** equals the value of **Comperand**.

[Expression (Comperand)]

    Specifies the value that is compared with the input value pointed to by **Destination**.

Description

Performs an atomic operation that compares the input value pointed to by Destination with the value of Comperand.

Return value

The function returns the original value of *Destination.

Examples

None

Remarks

None

Related

interlocked_exchange_add

interlocked_increment

interlocked_exchange

interlocked_decrement