Re: [Mingw-w64-public] How to recognize symlinks in WIN32?

2015-01-14 Thread Greg Jung
Hi all, I've been doing some experimentation today and discovered another twist in the story which relates to cygwin - so I forward this on to cygwin-user list, also. I have been testing the code below against symlinks created in cygwin64 (I'm running win7 64-bit; I have mingw/msys, msys2

Re: [Mingw-w64-public] How to recognize symlinks in WIN32?

2015-01-14 Thread dw
I'm not quite sure what you are looking for. However, maybe this will help: I created an NTFS symbolic file link with (data.raw is just a normal file): mklink c:\idelme\data2.raw c:\idelme\data.raw From there, I was able to see that it was a symbolic link with: #include windows.h #include

Re: [Mingw-w64-public] How to recognize symlinks in WIN32?

2015-01-14 Thread Greg Jung
Yes I've seen that, if my second post appeared, the symlinks created with cygwin are the ones giving me trouble. These links are invisible to CMD.exe, by someone's design: CYGWIN- created links in Directory of e:\cygwin64\lib\nox 03/31/2014 09:39 AMDIR . 03/31/2014 09:39 AM

[Mingw-w64-public] How to recognize symlinks in WIN32?

2015-01-14 Thread Greg Jung
Hi Folks, I've been trying to program a recognition of NTFS symbolic link files; What I;ve gleaned from MSDN procedures don't seem to work. Below are coded three methods 1) (untested) open file and call GetFileInformationByHandleEx. I can't get winbase.h header definitions recognized 2)