0

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

Sebastian Redl
  • 69,373
  • 8
  • 123
  • 157
user121986
  • 81
  • 1
  • 2
  • 1
    Unless you're specifically asking about Metro (or whatever they're called these days) apps, is there any reason to think it works differently from previous versions? – Sebastian Redl May 02 '13 at 12:24
  • It should work in traditional desktop applications, nothing specific to Windows 8. Store applications use another way to implement multithreading. – Alex F May 02 '13 at 12:25

2 Answers2

2

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.

raj raj
  • 1,932
  • 1
  • 14
  • 15
0

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

ybo
  • 16,967
  • 2
  • 28
  • 31