[英]Creating thread in windows 8 with c language
i wanted to know does the routine CreateThread works in windows 8 ? 我想知道例程CreateThread在Windows 8中是否有效? if yes does it enough to add header file #include or some other changes are added in windows 8
如果是,它足以添加头文件#include或在Windows 8中添加一些其他更改
CreateThread function is supported by Windows Desktop Apps only but is not supported by Windows Metro-Style Apps. Windows桌面应用程序仅支持CreateThread功能,但Windows Metro风格应用程序不支持。 If you see the Windows 8 architecture , you can find that Win32 library is not available for Metro Apps.
如果您看到Windows 8体系结构 ,则可以发现Win32库不适用于Metro Apps。 You will have to use ThreadPool.RunAsync methods instead.
您将不得不使用ThreadPool.RunAsync方法 。
The MSDN page for CreateThread doesn't document any limitation for Windows 8 so it has to work. CreateThread的MSDN页面不记录对Windows 8的任何限制,因此它必须工作。 The "Requirements" section mentions that you should include a different
“要求”部分提到您应该包含其他内容
Processthreadsapi.h on Windows 8 and Windows Server 2012
Windows 8和Windows Server 2012上的Processthreadsapi.h
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.