reparsepoint

What is the best way to check for reparse point in .net (c#)?

My function is pretty much a standard search function... I've included it below. In the function I have 1 line of code responsible for weeding out Repart NTFS points. if (attributes.ToString().IndexOf("ReparsePoint") == -1) The problem is now I am getting an error Access to the path 'c:\System Volume Information' is denied. I debu...

C# - How to retreive the target of a Junction or Symlink with a standard user

Hi I am trying to get the target of a junction in my program, but the only way I managed do it is: Requesting Backup privileges p-invoke CreateFile with special parameters to get a handle to the file/dir. DeviceIoControl call to the get the target. The 1st step will not work with normal user accounts, because they have no Backup ...

Detect Symbolic Links, Junction Points, Mount Points and Hard Links

Hi, does anyone know how to check if a file or directory is either a Symbolic Link, Junction Point, Mount Point or Hard Link? As far as i know a symbolic links are detected by checking a file for its "ReparsePoint" attribute. Junction points are detected by checking a directory for the "ReparsePoint" attribute. So if the "ReparsePoint"...