I want to make a quick check if in a complete path a Junction point is used. I already have a function to test a folder like IsJunction() but maybe there is an
IsJunction()
Look at the solution of Jeff Brown.
He implemented your features in a static class, that seems to just work fine.
http://www.codeproject.com/KB/files/JunctionPointsNet.aspx