Detect hardware before ntoskrnl.exe will be loaded.