From: Erwin W. <wat...@xs...> - 2011-04-26 08:15:52
|
On 04/24/2011 12:12 PM, LRN wrote: > On 24.04.2011 13:50, Erwin Waterlander wrote: >> OK. Thanks for the info. What are the WinAPI functions that I should use >> for testing if a file is a symbolic link and to get the path to its >> target? I couldn't find it. I have very little experience with WinAPI. > I think [1] should make a good reading. > WinAPI functions like CreateFile() and DeviceIoControl() are involved > most of the time. You should also read about Reparse Points, because > symlinks are implemented that way on NT. I think [2] might have the > right info (not sure about the license on the code there). > In some cases you're lucky, as simple WinAPI functions will give you the > info you need or will do the things you need done. Read carefully about > symlink effects on WinAPI functions in [1] > > [1] http://msdn.microsoft.com/en-us/library/aa365680%28v=vs.85%29.aspx > [2] http://www.codeproject.com/KB/vista/ReparsePointID.aspx > > Thanks. best regards, Erwin |