#if _WIN32_WINNT < 0x0403#error This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.#endif
在stdafx.h加上#define _WIN32_WINNT 0x0501(0501表示xp)