Article View: borland.public.cppbuilder.nativeapi
Article #1563Re: Converting to and from *extended file paths *
From: Mike Collins
Date: Sat, 14 Jul 2007 18:02
Date: Sat, 14 Jul 2007 18:02
39 lines
2329 bytes
2329 bytes
Hi Bob, in this particular case, i'm hooking the lowest native api call used to create a process i.e. Nt/ZwCreateSection. This is the format that the file path is returned in, when i query the file handle of this api (using ZwQueryObject). Any other ideas? "Bob Gonder" <notbg@notmindspring.invalid> wrote in message news:pn4f93pgj3ghntrb47c12he658laicl5ps@4ax.com... > Mike Collins wrote: > >>However, with respect to application execution, i get a path returned from >>the control mechanism in the form of : >> >>\Device\Harddisk\Volume1\Windows\system32\notepad.exe > > Not ringing any bells here. > What is the control mechanism using to create this path? > > Can you show a real example of what that path looks like for > C:\Windows\System32\notepad.exe > >>- what i need to know it, how to i convert to and from the two types of >>paths that i'm being provided with. Is it possible to convert the >>"c:\..." >>path to a "\Device\.." style path? >> >>Hope this makes sense, > > The question makes sense, just the \Device\Harddisk\Volume1\ > is a bit hazy. > > You can get a volume from GetVolumeInformation(), but I have no idea > if that is what you want for that portion of the path. > > Probably you will end up somewhere in DeviceIoControl() > > >
Technical Details
Message-ID:
<4698ff14$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4697853e@newsgroups.borland.com> <pn4f93pgj3ghntrb47c12he658laicl5ps@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7324c995313c3b47 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost> Newsgroups: borland.public.cppbuilder.nativeapi References: <4697853e@newsgroups.borland.com> <pn4f93pgj3ghntrb47c12he658laicl5ps@4ax.com> Subject: Re: Converting to and from *extended file paths * Date: Sat, 14 Jul 2007 18:02:24 -0000 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.3959 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4073 NNTP-Posting-Host: 79.73.17.175 Message-ID: <4698ff14$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1184431892 79.73.17.175 (14 Jul 2007 09:51:32 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 2183