简体   繁体   中英

Creating thread in windows 8 with c language

i wanted to know does the routine CreateThread works in windows 8 ? if yes does it enough to add header file #include or some other changes are added in windows 8

CreateThread function is supported by Windows Desktop Apps only but is not supported by Windows Metro-Style Apps. If you see the Windows 8 architecture , you can find that Win32 library is not available for Metro Apps. You will have to use ThreadPool.RunAsync methods instead.

The MSDN page for CreateThread doesn't document any limitation for Windows 8 so it has to work. The "Requirements" section mentions that you should include a different

Processthreadsapi.h on Windows 8 and Windows Server 2012

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM