define _WIN32_WINNT

1. #define _WIN32_WINNT = 0x0501
2. -D _WIN32_WINNT=0x0501
3. Properties>C/C++>Proporcessor heading, _WIN32_WINNT = 0x0501.

it is needed to call winuser API defined for XP above