How to retrieve the target of a Junction or Symlink with a standard user
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 privileges, and I don't want to get the UAC User Consent window every time I do this. I think this is doable somehow, because a normal "dir /A:L" command resolves the target of the links. flq I think that this answer in stackoverflow would help you? How do I