Interfacing with the Windows API