How can I programmatically find the network path by which a folder has been shared?

When you right-click a folder in Explorer, select Properties, and go to the Sharing tab, there is a section titled “Network File and Folder Sharing”, and in there, it tells you the network path by which this folder has been shared. (Or “Not shared” if it hasn’t been shared at all.) How can I obtain this path programmatically? There

Click here to read the article