Search code examples
winapidirectoryshortcut

What is the MS Win32 API to know a folder is shortcuts?


In Vista and Windows 7, there are many folders are shortcuts, like "C:\Users\Administrator\Application Data", use FindFileFirst serial API can enumerate all files under the folder, however we can NOT open it in Windows Explorer, I will also get error while call CreateFile to open the folder or the file enumerated by FindFileFirst serial API. I want to know what is the MS Win32 API to know a folder is shortcuts? Is FILE_ATTRIBUTE_REPARSE_POINT flag using for this kind of folder?


Solution

  • I have known the answer, see on this blog. https://devblogs.microsoft.com/oldnewthing/20041227-00/?p=36883