William,
There are a few alternatives. First, and probably the simplest, there is an
environment variable called "NUMBER_OF_PROCESSORS" on Windows 2000, Windows
20003, and Windows XP. You could use Environment class in the System
namespace as follows.
string strNumberOfProcessors = Environment.GetEnvironmentVariable(
"NUMBER_OF_PROCESSORS" );
Second, this information is also exposed via WMI which you could query using
classes in the System.Management namespace. The third alternative is to
call a Win32 API function, GetSystemInfo, via P/Invoke.
Hope this helps.
--
Jeffrey Wynn
(E-Mail Removed)
"William Stacey" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there a class to get the number of processors? tia
>
> --
> William Stacey
>
>
>