Questions tagged [reparsepoint]

an NTFS file system object containing data that is processed by the file system filter when the associated file or directory is accessed, generally used for references to data stored elsewhere. Used by Windows to implement symbolic links, junctions points, volume mount points, and Microsoft Remote Storage Server (RSS). Application-specific file system filters can implement reparse points that extend the functionality of the file system in other ways.

28 questions
1
vote
1 answer

How to get the actual directory path on windows using .NET?

My need is simple. Given a Windows directory path all I want is the actual path. I am sure the terminology is wrong, so I am giving an example. Given C:\Documents and Settings\All Users the method should display: C:\ProgramData on windows…
mark
  • 59,016
  • 79
  • 296
  • 580
1
vote
1 answer

DeviceIoControl Invalid access to memory location

I am getting invalid access to memory location when I run the following code WIN32_FIND_DATAW FD; WCHAR cPath[MAX_PATH], cFindPath[MAX_PATH]; if (!GetCurrentDirectoryW(MAX_PATH, cPath)) ErrorExit("GetCurrentDirectory"); else printf("Current…
Venkatesh
  • 1,537
  • 15
  • 28
1
vote
1 answer

Modifying attributes of a NTFS junction point

I am using this libray in order to create or get my junction points. Once I have got such a JunctionPoint instance I am able to create a DirectoryInfo from the Link's (*) path and read the LastWriteTimeUtc property. Now I would like to set this…
wodzu
  • 3,004
  • 3
  • 25
  • 41
1
vote
0 answers

Alternative to FindFirstVolumeMountPoint which doesn't require admin rights?

Is there an alternative to FindFirstVolumeMountPoint (and friends) that won't fail if the user running the code is not admin? I was thinking about HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices for one, but when I look at it, it wouldn't give me any…
0xC0000022L
  • 20,597
  • 9
  • 86
  • 152
1
vote
1 answer

C/C++, NTFS. Multiple reparse points

MSDN says "There is a limit of 31 reparse points on any given path." (http://msdn.microsoft.com/en-us/library/windows/desktop/aa365503%28v=vs.85%29.aspx) So, a single file can have max. 31 reparse points (?) To check if a file has "a" reparse point,…
deviantfan
  • 11,268
  • 3
  • 32
  • 49
1
vote
0 answers

How can I determine if a directory exists on a network drive or not?

I'm looping through directories on a network drive, but some directories are bad ReparsePoints and don't actually exist. Using Directory.Exists returns true after about 30 seconds, and so does new DirectoryInfo(dir).Exists, however trying to open…
Rachel
  • 130,264
  • 66
  • 304
  • 490
0
votes
1 answer

Similar to junction points, directory symbolic links, mount points

I wrote a program to detect if a directory is a ReparsePoint and it precisely detects junction points, directory symbolic links and mount drives. I saw a directory which looks and works similar to junction point(I didn't create it, created by…
sparrow
  • 5
  • 2
0
votes
1 answer

How to read files in a junction point directory, using GetFileInformationByHandleEx?

I have this code which runs fine if path points to a regular directory: #include #include int main() { wchar_t path[1024] = L"C:\\MyPath\\MyDir"; auto h = CreateFile(path, FILE_LIST_DIRECTORY, FILE_SHARE_READ,…
0
votes
1 answer

Deleting reparse point

I created a reparse point using the junction.exe utility. Now when I try deleting it using the "-d" switch, it returns an error and claims that access is denied. Checking the Properties for the junction folder, there is a greyed-out check mark at…
Dave
  • 11
  • 1
0
votes
0 answers

One Drive as Reparse Point

Consider a following standalone source code which I am experimenting on Win 10 Fall Creators Update Version 10.0.16299 Build 16299 #include #include #include #include #if !defined…
Recker
  • 1,915
  • 25
  • 55
0
votes
1 answer

Getting target path of junction always seems to end in "Error 5 Access Denied"

I have a project where I have to get the target of a junction. This is some code I came up with: #include "stdafx.h" #include #include #define BUFSIZE MAX_PATH using namespace std; int main() { TCHAR Path[BUFSIZE]; DWORD…
Erwin
  • 1,484
  • 1
  • 18
  • 32
0
votes
1 answer

ReparsePoint attribute remove PowerShell

Hi I have some files on network share that I need to remove ReparsePoint attribute. I have tried to set those file attributes to 'Normal' but it didn't remove 'ReparsePoint' Clear-Host $Path = "\\network\share" Get-ChildItem $Path -recurse…
Szafa
  • 23
  • 5
0
votes
1 answer

Warning in Sys.junction(from, to) : cannot set reparse point in R

I am using R 3.2x64 and the Development Version of RStudio (0.99) on Windows 8-1 x64. I am not succeeding in performing the R CMD checks of any new package since I have been thrown the following message : "... cannot set reparse point". Below a more…
Giorgio Spedicato
  • 2,413
  • 3
  • 31
  • 45
1
2