【发布时间】:2015-07-31 17:26:56
【问题描述】:
我想为 Windows 7 或 8 构建一个 Win32 程序。我希望能够在 Windows 8 上支持触摸注入。InitializeTouchInjection 是初始化它的符号,但仅在 Windows 8 中可用。有没有办法在加载时或运行时检查 Windows 版本和该符号的链接?目前我在 Windows 7 中加载时得到未定义的链接。
【问题讨论】:
-
您可能想了解 Windows API 中的 dynamic link library functions。
-
使用 delayload 或 GetProcAddress
-
使用 GetProcAddress 解决了我的问题。