Creating thread in windows 8 with c language

427 Views Asked by At

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

2

There are 2 best solutions below

0
On

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

0
On

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.