int main( int argc, char *argv[] ) { VOID KiSystemStartup(); TestFunction = SeRtlTest; KiSystemStartup(); return( 0 ); }
int _CDECL main( int argc, char *argv[] ) { #ifdef SIMULATOR extern ULONG MmNumberOfPhysicalPages; char *s; while (--argc) { s = *++argv; if (*s == '-') { s++; if (*s >= '0' && *s <= '9') { MmNumberOfPhysicalPages = atol( s ); DbgPrint( "INIT: Configured with %d pages of physical memory.\n", MmNumberOfPhysicalPages ); } else if (!strcmp( s, "SCR" )) { IoInitIncludeDevices |= IOINIT_SCREEN; DbgPrint( "INIT: Configured with Screen device driver.\n" ); } else if (!strcmp( s, "MOU" )) { IoInitIncludeDevices |= IOINIT_MOUSE; DbgPrint( "INIT: Configured with Mouse device driver.\n" ); } else if (!strcmp( s, "KBD" )) { IoInitIncludeDevices |= IOINIT_KEYBOARD; DbgPrint( "INIT: Configured with Keyboard device driver.\n" ); } else if (!strcmp( s, "RAW" )) { IoInitIncludeDevices |= IOINIT_RAWFS; DbgPrint( "INIT: Configured with RAW File System driver.\n" ); } else if (!strcmp( s, "FAT" )) { IoInitIncludeDevices |= IOINIT_FATFS; DbgPrint( "INIT: Configured with FAT File System driver.\n" ); } else if (!strcmp( s, "SVR" )) { IoInitIncludeDevices |= IOINIT_DDFS | IOINIT_FATFS | IOINIT_SERVER_FSD | IOINIT_SERVER_LOOPBACK | IOINIT_NBF; if ( MmNumberOfPhysicalPages < 512 ) { MmNumberOfPhysicalPages = 512; } DbgPrint( "INIT: Configured for LAN Manager server.\n" ); } else { DbgPrint( "INIT: Invalid switch - %s\n", s ); } } else { break; } } #endif // SIMULATOR TestFunction = NULL; KiSystemStartup(); return( 0 ); }