[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [RFC] Checking paths are legal

From: Jon Foster <jon_at_jon-foster.co.uk>
Date: 2004-09-05 00:37:16 CEST


Barry Scott wrote:
> I think you can get the list of DOS device names from QueryDosDevice by
> passing NULL as the lpDeviecName.

When I do that I get an empty list back. The documentation for that
function is particularly poor, I can't understand exactly what it's for.
(The documentation tells you how to use the function in great detail,
it just assumes you know what they mean by "DOS Device". Sigh.)
I can't believe Microsoft would be so stupid as to allow you to add new
reserved filenames at runtime... would they?

> Then you will get all devices that a windows platform treats as special.
> I'd thought that you needed to look in the registry, but I found that
> not all the keys in
> HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices
> but only some of them prevent you creating a file. For exmaple MAILSLOT
> works as a filename.

There are also a few (e.g. COM3 on my PC) that don't work as filenames
but aren't listed in that registry key. So the relationship between that
registry key and the list of reserved filenames is unclear to me.

The hard-coded names in my patch were taken directly from Microsoft's
web site. See:


Thanks & regards,


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Sep 5 00:37:53 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.