Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
761 B

//#include "miniport.h"
//#include "video.h"
//#include <ntdef.h>
//#include <ntexapi.h>
#include "ntos.h"
#include "zwapi.h"
#include "stdlib.h"
int
UPMachine()
{
SYSTEM_BASIC_INFORMATION sbi;
if (NT_SUCCESS(ZwQuerySystemInformation(
SystemBasicInformation,
&sbi,
sizeof(SYSTEM_BASIC_INFORMATION),
NULL))) {
if (sbi.NumberOfProcessors == 1) {
//
// There is only on processor in the machine.
//
return TRUE;
}
}
//
// If there were more than one processors, or if we could
// not determine the number of processors, then return
// FALSE.
//
return FALSE;
}