找不到用于使用CreateEventEx编译的包含文件 [英] cannot find what include file to use to compile with CreateEventEx
问题描述
我想在C ++项目中使用CreateEventEx。但是我无法使用包含文件。
I would like to use CreateEventEx in a C++ project. But I cannot fine the include file to use.
推荐答案
包括
Include
#include <windows.h>
有关详细信息,请参阅: http://msdn.microsoft.com/ en-us / library / windows / desktop / aa383745(v = vs.85).aspx [ ^ ]。
如果您从Microsoft查找API的Web帮助(例如,这里 [ ^ ]),几乎总有一个标题部分,在此链接显示
If you look up the web help for the API from Microsoft (eg. here[^]), there is almost always a "header" section, which at this link shows
Windows Vista,Windows 7,Windows Server 2008和Windows Server 2008 R2上的WinBase.h(包括Windows.h);
Windows 8和Windows Server 2012上的Synchapi.h
WinBase.h on Windows Vista, Windows 7, Windows Server 2008, and Windows Server 2008 R2 (include Windows.h);
Synchapi.h on Windows 8 and Windows Server 2012
这意味着它包含在windows.h中,直到Windows 7,并且需要来自Windows 8的synchapi.h以及。
which means that it is included with windows.h up to Windows 7, and needs synchapi.h from Windows 8 and beyond.
这篇关于找不到用于使用CreateEventEx编译的包含文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!