我需要什么 DLL 和库才能使用 `timeBeginPeriod` 或 `timeapi.h` 的其他部分?

问题描述

尽管许多 Windows API 函数存在于 Windowsapp.lib 或 API 集中(请参阅 this answer to How to declare and link to RoInitialize,RoUninitialize,RoGetActivationFactory and HSTRING Functions in Mingw Gcc),但许多函数不在 listed as included in WindowsApp.libthe extension APIs 中。

例如,timeBeginPeriod,我想用它来设置 Sleep 的分辨率。

它是 Timeapi 的一部分,在 WindowsApp.lib 或扩展 API 中可用的函数列表中的任何地方都没有提及。该文档也没有提到任何 API 集。

  • 我是否链接到 winmm.libwinmm.dll
  • 我是否包含 Windows.htimeapi.h

我怎么知道? RoInitialize 没有提到 DLL 或 API 集,但有几个可用。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)