Hi,
if you want to use multiple processors in parallel simply start parallel threads using mostly this functions:
extern CreateThread
extern CloseHandle
extern ResumeThread
extern SuspendThread
extern SetThreadPriority
extern GetCurrentThreadId
extern WaitForMultipleObjects
...
All from kernel32.dll
Because those threads (by default - it's possible but not recommended to assign them to target CPUs manually) will be distributed to all available CPUs rsp. cores by OS controlled thread dispatcher(s) you need not to know the number of CPUs...
But if you want your program to know this number the simplest way would be to ask the environment variable NUMBER_OF_PROCESSORS
Cheers,
Mene