You have a mismatch between `cSocket::IsVistaOrLater()` (in Socket.h), `IsWindowsVistaOrLater()` used here and `::IsVistaOrLater()` declared later on in this file.

Also, brace on separate line. :)