Work with threads and objects synchronizing, WinAPI.