Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2003-04-27 09:08:51


"Trevor Taylor" <xju_at_[hidden]> wrote in message
news:3EAB5928.4000407_at_telstra.com...
> So it sounds to me like the :blat is *not* part of the extension. It
> sounds like the NT file name is made up of three parts: name, extension
> and "stream".
>
> In which case I think it is fine to have functions extension() and
> change_extension() - they just should not report or modify the stream
part.
>
> To implement them I guess I'd need to know whether the file name was an
> NTFS filename, and then how to reliably locate the "extension" part?
>
Functin DeviceIoControl() with parameter IOCTL_DISK_GET_PARTITION_INFO can
do it. It is available on NT/W2K.

Does it make sense to take into account NTFS drives for Win95/98 (from
www.systeminternals.com) or Linux NTFS drivers?

/Pavel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk