In the SDK help files, it gives the following info...
The following table indicates the macros you must define to target each system using the SDK headers.
Minimum System Required Macros to Define
Windows 95 and Windows NT 4.0 WINVER=0x0400
Windows 98 and Windows NT 4.0 _WIN32_WINDOWS=0x0410 and WINVER=0x0400
Windows NT 4.0 _WIN32_WINNT=0x0400 and WINVER=0x0400
Windows 98 and Windows 2000 WINVER=0x0500
Windows 2000 _WIN32_WINNT=0x0500 and WINVER=0x0500
Internet Explorer 3.0 _WIN32_IE=0x0300
Internet Explorer 4.0 _WIN32_IE=0x0400
Internet Explorer 5.0 _WIN32_IE=0x0500
I tried using the example you show, and I too got an 'unidentified identifier' error... if you put an
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
it works
fine...