I'd like to make a folder on my pc with path like c:\foobar\ available to network users with path like\\my_computer_name\something

How do I do this automatically using the windows API ?
Which functions should I use ?


I want to know this, so I can have a small app that simply shares or hides my folders automatically, without much work.