Search code examples
windowsfile-sharing

How to programmatically pop up "File Sharing" dialog on windows


As you might know after right click a folder and choose "Share with" -> "Specific people" windows will pop up a dialog named "File Sharing" and let you choose user account/permission.

My question is: Is there any way to pop up this dialog by programming?


Solution

  • I've found a solution, using ShowShareFolderUI on ntshrui.dll can do this job

    See this link on MSDN