00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00020 #include <ntddk.h>
00021 #include "cbm_driver.h"
00022
00031 ULONG
00032 CbmGetCurrentProcessorNumber(VOID)
00033 {
00034 #ifdef COMPILE_W98_API
00035 return 0;
00036 #else
00037 return KeGetCurrentProcessorNumber();
00038 #endif
00039 }
00040
00041 ULONG
00042 CbmGetNumberProcessors(VOID)
00043 {
00044 #ifdef COMPILE_W98_API
00045
00046 return 1;
00047
00048 #elif COMPILE_W2K_API
00049
00050 return *KeNumberProcessors;
00051
00052 #else
00053
00054 return KeNumberProcessors;
00055
00056 #endif
00057 }