Moved all Windows API definitions to their own class.
Started to refactor code.