There is CreateHardLink
function to create Hardlinks.(Since Win2000)
And there is CreateSymbolicLink
function since Vista has been released.
But why isn't there a CreateJunction
?
How does mklink
make a junction?
And How do I write codes to make junction in my app?
They're reparse points, so FSCTL_SET_REPARSE_POINT is the magic FSCTL. Here's an example, never tried it but seems right:
http://www.flexhex.com/docs/articles/hard-links.phtml
-scott