Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

processor.c

Go to the documentation of this file.
00001 /*
00002  *  This program is free software; you can redistribute it and/or
00003  *  modify it under the terms of the GNU General Public License
00004  *  as published by the Free Software Foundation; either version
00005  *  2 of the License, or (at your option) any later version.
00006  *
00007  *  Copyright 2005 Spiro Trikaliotis
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 }

Generated on Sun Apr 30 18:45:57 2006 for opencbm by  doxygen 1.4.2