How can I get the number of logical CPUs on WinRT?

boost, c++, microsoft-metro, winapi, windows-runtime

Solution

You can call the Windows API function `GetNativeSystemInfo`, which is permitted in Metro style apps.

Problem

I'm trying to compile Boost 1.49.0 for WinRT. I've got it down to one method: GetSystemInfo(), which is used in boost::thread::hardware_concurrency() to obtain the number of logical processors on the system. I haven't found any replacement in WinRT yet. Is there an alternative method I could use?

Original source