The definition is guarded for the minimum target windows version. This guard uses one of your definitions or NTDDI_VERSION (which is created from the other definition within (sdkddkver.h).
Correcting the version details of _WIN32_WINNT, WINVER solved the issue. Go to:
Properties->Configuration properties->C/C++->Preprocessor->Preprocessor
Definitions and check what macros are defined.
changing them to
NTDDI_VERSION= 0x06030000 WINVER=0x0A00 _WIN32_WINNT=0x0A00
solved my problem. Here 0A00 is for windows10.Refer below link https://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx