+// Return TRUE if NTFS boot files are found, FALSE otherwise.
+// Assumes Volume is already mounted.
+static BOOLEAN HasWindowsBiosBootFiles(REFIT_VOLUME *Volume) {
+ BOOLEAN FilesFound = TRUE;
+
+ if (Volume->RootDir != NULL) {
+ FilesFound = (FileExists(Volume->RootDir, L"NTLDR") && // Windows XP boot files
+ FileExists(Volume->RootDir, L"ntdetect.com") &&
+ FileExists(Volume->RootDir, L"boot.ini")) ||
+ FileExists(Volume->RootDir, L"Windows"); // Windows 7 ID (imperfect; TODO: Improve)
+ } // if
+ return FilesFound;
+} // static VOID HasWindowsBiosBootFiles()
+