You need to do the following:
#include <Windows.h> // comes first
#include "ftd2xx.h" // comes *after* Windows.h
The FTDI include file is broken as it doesn't properly include the windows header even though it relies on windows types. You must do it yourself instead.