views:

33

answers:

1

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?

+2  A: 

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

snoone