When does #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) in dxvahd.h Microsoft header file become true

前端 未结 2 748
没有蜡笔的小新
没有蜡笔的小新 2021-01-05 07:03

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.

2条回答
  •  渐次进展
    2021-01-05 07:18

    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.

提交回复
热议问题