Article View: borland.public.cppbuilder.nativeapi
Article #3776Re: locating boot.ini
From: Remy Lebeau (TeamB)
Date: Tue, 09 May 2006 16:52
Date: Tue, 09 May 2006 16:52
28 lines
2031 bytes
2031 bytes
"Mike Collins" <its@TheBottomOfThePost.com> wrote in message news:446098c1@newsgroups.borland.com... > What I was primarily wondering was if there was an api like > GetSystemDirectory() that I could use to locate the ware abouts > of boot.ini. There is nothing specific for that. However, since bootini is located at "%homedrive%\boot.ini", you can try using GetEnvironmentVariable() to resolve "%homedrive%" into a physical path. > As has been pointed out here, boot.ini does not always exists and it > is a hidden file, but it also does not HAVE to exist on c: either. Depending > on how this system was set up, it may appear in other drives and I believe > that it is possible to have more than one boot.ini on the system. I need > to check this file for just that reason i.e. to see if there are any other, > working OS's installed. Typically, boot.ini would reside at the root C:\ folder so that the machine can find it before loading any OS, and then the contents of boot.ini tells bootloader which OSes are installed so that bootloader can display a dual-boot menu to the user. Gambit
Technical Details
Message-ID:
<4460c93a$1@newsgroups.borland.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!newsgroups.borland.com!not-for-mailReferences:
<44606967@newsgroups.borland.com> <446098c1@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <44606967@newsgroups.borland.com> <446098c1@newsgroups.borland.com> Subject: Re: locating boot.ini Date: Tue, 9 May 2006 09:52:02 -0700 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4460c93a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1147193658 68.69.17.41 (9 May 2006 09:54:18 -0700) 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!newsgroups.borland.com!not-for-mail