InterlockedCompareExchange128 is not found on newer sdk

Alexandra Wheeler 0 Reputation points
2024-04-24T13:50:04.7333333+00:00

I'm running into a problem using windows 11 sdk (10.0.22621.0) through Microsoft Visual Studio. However I'm running into a problem where it cannot find "InterlockedCompareExchange128".

The specific error message looks like:
error C3861: 'InterlockedCompareExchange128': identifier not found

It can find InterlockedCompareExchange64, but not InterlockedCompareExchange128. I've previously used windows 10 sdk (10.0.18362.0) where everything worked.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,654 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.