Add

#define _WIN32_WINNT 0x400

To your header and

using namespace std;

to your source file.
See if that helps.