For Windows 10, IsWindows10OrGreater returns false unless the application contains a manifest that includes a compatibility section that contains the GUID that designates Windows 10.
这个具体怎么解决啊。
For Windows 10, IsWindows10OrGreater returns false unless the application contains a manifest that includes a compatibility section that contains the GUID that designates Windows 10.
这个具体怎么解决啊。
用GetVersionEx,然后设置正确你的exe的guid信息
What you need to do is add the proper GUID(s) to your application (.exe/.dll) binaries (via manifest XML information). In other words, if you specifically state your application supports 8.1, GetVersionEx() will return proper information when running on Windows 8.1. If you do not, GetVersionEx() will lie to you.
GUID List for the Lazy
Vista: {e2011457-1546-43c5-a5fe-008deee3d3f0}
Windows 7: {35138b9a-5d96-4fbd-8e2d-a2440225f93a}
Windows 8: {4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}
Windows 8.1: {1f676c76-80e1-4239-95bb-83d0f6d0da78}
Windows 10: {8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}