Article View: borland.public.cppbuilder.nativeapi
Article #3771Re: locating boot.ini
From: Alan Bellingham
Date: Tue, 09 May 2006 13:18
Date: Tue, 09 May 2006 13:18
40 lines
2468 bytes
2468 bytes
"Ed Mulroy" <dont_email_me@bitbuc.ket> wrote: >There may not be such a file. For example, I have no boot.ini on my Windows >XP machine. Might boot.ini be only for used the Windows 95/98/ME branch? Have you checked in c:\? It's not immediately obvious: ------------------------------------------------- C:\>dir boot.ini Volume in drive C is Win2K Volume Serial Number is 84ED-4755 Directory of C:\ File Not Found C:\>attrib boot.ini A SH C:\boot.ini C:\> ------------------------------------------------- >To find a file on the disk use the FindFirstFile/FindNextFile/FindClose set >of Windows functions. That set of functions works on a given directory so >to search a while drive, start at the root and for every directory you find >then search in it, and so on down the chain. You can get a list of the >drives with either of the Windows functions GetLogicalDrives or >GetLogicalDriveStrings. I don't think any recursive option is required - if it's not in the root directory, I don't expect ntldr (or is it ntdetect.com) to bother doing a full scan through all directories. It's reasonable for an OS loader to require vital files to be easily accessible. However, it might possibly be on a volume that's not actually visible to the OS, so I suspect it's not going to be an easy Alan Bellingham -- ACCU Conference 2007 - venue to be determined.
Technical Details
Message-ID:
<m7516298em23gpnb2j9449af89a3csg9gq@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.musoftware.de!news.albasani.net!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<44606967@newsgroups.borland.com> <446086a1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,96aff176f11cc858 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: locating boot.ini Date: Tue, 09 May 2006 14:18:30 +0100 Reply-To: alanb@episys.com Message-ID: <m7516298em23gpnb2j9449af89a3csg9gq@4ax.com> References: <44606967@newsgroups.borland.com> <446086a1$1@newsgroups.borland.com> X-Newsreader: Forte Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 193.129.251.253 X-Trace: newsgroups.borland.com 1147180710 193.129.251.253 (9 May 2006 06:18:30 -0700) Lines: 40 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.musoftware.de!news.albasani.net!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail