Synchronization with Visual C++ and the Windows API -> https://www.codeproject.com/Articles/5278932/Synchronization-with-Visual-Cplusplus-and-the-Wind