bool mahaf_IsPhysicalMappingDangerous() { // pre-XP versions don't prevent re-mapping pages with incompatible // attributes, which may lead to disaster due to TLB corruption. if(wversion_Number() < WVERSION_XP) return true; return false; }
static size_t OperatingSystemFootprint() { #if OS_WIN switch(wversion_Number()) { case WVERSION_2K: case WVERSION_XP: return 150; case WVERSION_XP64: return 200; default: // newer Windows version: assume the worst, and don't warn case WVERSION_VISTA: return 300; case WVERSION_7: return 250; } #else return 200; #endif }