Hi I am having 2 VC++ solutions \"A\" & \"B\" (VS2008) both are having the same codebase (with just few lines of code different). Using DXVAHD.h in both.
dxvahd.
WINAPI_FAMILY is also set depending on the targeted Windows version.
See this discussion and the linked blog post series.
In particular, if you're not writing an "App" (for >= Win 8) then:
Prefer use of the standard _WIN32_WINNT Windows Defines for selecting the correct Win32 API (i.e. many Win32 APIs required for use in Windows Store apps are the Vista (0x0600), Windows 7 (0x0601), or Windows 8 (0x0602) version.
You can use WINVER or _WIN32_WINNT.