I am trying to access InterLockedExchange function by reading dlls in windows using ctypes python library. My broader goal is to implement atomic operations while I am using mmap in different services. The issue is I am not able to find this function import ctypes dll_path = 'C:\Windows\System32\kernel32.dll' kernel32 = ctypes.CDLL(dll_path) interlocked_exchange = kernel32.InterlockedExchange AttributeError: function 'InterlockedExchange' not found Continue reading...