[Fontconfig] How to properly implement FcFStatFs on Win32?
Diego Santa Cruz
Diego.SantaCruz at spinetix.com
Mon Oct 8 10:21:00 PDT 2012
> -----Original Message-----
> From: fontconfig-bounces+diego.santacruz=spinetix.com at lists.freedesktop.org
[mailto:fontconfig-bounces+diego.santacruz=spinetix.com at lists.freedesktop.org
> On Behalf Of Pavel Koshevoy
> Sent: 08 October 2012 17:20
> To: fontconfig at lists.freedesktop.org
> Subject: Re: [Fontconfig] How to properly implement FcFStatFs on Win32?
> On 10/8/2012 4:02 AM, Diego Santa Cruz wrote:
> > Hi all,
> > I am porting fontconfig 2.10.1 to Win32 compiled with MSVC 2008 (see
> > e-mail about the project files for details).
> > It is working fine but I do not know how to properly implement the
> > FcFStatFs() function under Win32.
> > For the broken timestamps I guess I could use
> > to get the filesystem name and check for FAT or FAT32.
> > But I have no idea as to how to detect if a file is on a network FS. Any
> > ideas? As far as I could find out mmap'ing files on network shares is a
> > dangerous as depending on the version of Windows the program may get an
> > exception when reading from the file when the server goes off-line, so
> > determining if a file is remote or not would be important. Any pointers
> > which Win32 function to use to get that info would be greatly
> > Thanks,
> Perhaps NetUseEnum could help here?
> I haven't tried this myself, so I may be wrong.
Looking around the doc I think WNetGetUniversalName
9.aspx) seems to be a better candidate, I will be trying that tomorrow if I
get some time.
Diego Santa Cruz, PhD
Rue des Terreaux 17
1003, Lausanne, Switzerland
T +41 21 341 15 50
F +41 21 311 19 56
diego.santacruz at spinetix.com
More information about the Fontconfig