>You might try posting your questions to
>microsoft.public.dotnet.languages.csharp or
>microsoft.public.dotnet.languages.vb, whichever is your choice. They are a
>lot more active than this one is.
I'd recommend posting to a group like
microsoft.public.win32.programmer.kernel instead. The questions are in
no way related to C# or VB. The answer will likely be the same
regardless of which language you want to do this from.
>> * On NTFS a file can have several names (hard links). How to enlist
>> them ?
I don't know any other way than to enumerate all files/links and
checking if they refer to the same physical file (by calling
GetFileInformationByHandle and comparing
BY_HANDLE_FILE_INFORMATION.nFileIndexHigh/Low).
>> * I'm going to create a file and I exactly know the future size. How
>> can I
[quoted text clipped - 5 lines]
>> Given a "folder" name, how to determine whether it is a regular
>> folder, a mount point or a junction ?
You can use GetVolumeNameForVolumeMountPoint or
FindFirstVolumeMountPoint and related fuctions to determine which
mount points there are.
Junctions are implemented with reparse points, so you can check the
attributes of the directory and look for FileAttributes.ReparsePoint.
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
modosansreves - 10 Mar 2007 13:51 GMT
Thank you very much, Mattias :)
Unfortunately, I didn't met GetVolumeNameForVolumeMountPoint before
and now I know at least one solution to my problems and a land to dig
for other solutions.
Thank you very much Robin! I had missed these and they seem to be more
in line with my current needs. I wouldn't have known about them if you
hadn't gone out of your way to direct someone there.
BrianH
> You might try posting your questions to
> microsoft.public.dotnet.languages.csharp or
> microsoft.public.dotnet.languages.vb, whichever is your choice. They are a
> lot more active than this one is.
>
> ...
RobinS - 15 Mar 2007 19:18 GMT
You're welcome. I just cruise through once in a while and let people know.
Good luck.
Robin S.
--------------------
> Thank you very much Robin! I had missed these and they seem to be more
> in line with my current needs. I wouldn't have known about them if you
[quoted text clipped - 8 lines]
>>
>> ...