🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1569

Re: Converting to and from *extended file paths *

#1569
From: Mike Collins
Date: Mon, 16 Jul 2007 12:26
52 lines
2719 bytes
Thanks for the input Bob, was really just looking for some starting points - 
which you have given me.

Basically, most of the native API's aren't documented on MSDN - the only 
partial references are in the DDK - but mostly these related to kernal mode 
functions.  I had to hunt for days to find the information that i needed. 
There are a few reference books out there:

Windows 2000 - Undocumented Secrets

Windows 2000 / NT Native API reference

Windows NT Undocumented APIs (www.ntinternals.net)

www.sysinternals.com

- if there is anythings specific that you would like to know, please feel 
free to e-mail me and i'll show you what i have...


"Bob Gonder" <notbg@notmindspring.invalid> wrote in message 
news:cndk93hd6roqqs7lsso36q8lo9eibusamu@4ax.com...
> Mike Collins wrote:
>
>>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).
>
> Do you have a link to this Query?
> MSDN doesn't have that function.
>
>>>>\Device\Harddisk\Volume1\Windows\system32\notepad.exe
>
> If that is the actual string returned, then maybe this would work?
>
> I suppose you just know that it is a device of some sort.
> "\\Device"
>
> You can  GetDriveType
> "\\Harddisk"
> "\\Cdrom"
>
> You can query the drive for PARTITION_INFORMATION_EX
> "\\Volume"+pie.PartitionNumber
> Or my previous suggestion GetVolumeInformation
> "\\"+lpVolumeNameBuffer
>
> Add the path.
>
> 
Technical Details
Message-ID: <469b5384@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.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
References: <4697853e@newsgroups.borland.com> <pn4f93pgj3ghntrb47c12he658laicl5ps@4ax.com> <4698ff14$1@newsgroups.borland.com> <cndk93hd6roqqs7lsso36q8lo9eibusamu@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> <4698ff14$1@newsgroups.borland.com> <cndk93hd6roqqs7lsso36q8lo9eibusamu@4ax.com>
Subject: Re: Converting to and from *extended file paths *
Date: Mon, 16 Jul 2007 12:26:48 -0000
Lines: 54
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: 81.155.207.165
Message-ID: <469b5384@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1184584580 81.155.207.165 (16 Jul 2007 04:16:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.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: 2573