<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi everyone,</p>
<p><br>
</p>
<p>i'm trying to search for a way for win32 to get the cpu core
count. i found the c code:<br>
</p>
<pre class="default prettyprint prettyprinted" style=""><code><span class="pln">SYSTEM_INFO sysinfo</span><span class="pun">;</span><span class="pln">
</span><span class="typ">GetSystemInfo</span><span class="pun">(&</span><span class="pln">sysinfo</span><span class="pun">);</span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> numCPU </span><span class="pun">=</span><span class="pln"> sysinfo</span><span class="pun">.</span><span class="pln">dwNumberOfProcessors</span><span class="pun">;
Is there a way i can get the return value numCPU and create a variable out of it ? for apple and linux i allready have a
solution only win32 is left.
best regards!
</span></code></pre>
</body>
</html>