Windows Folder Share API

两盒软妹~` 提交于 2019-12-20 05:36:07

问题


is there a WIN32 API available to manage folder sharing in Windows? Some links to examples will be helpful. Thanks.


回答1:


Yes, since Windows 2000 Professional there's a networking API available in netapi32.dll which provides this functionality. Functions like NetShareAdd, NetShareCheck, NetShareDel let you manage the shared files. See

http://msdn.microsoft.com/en-us/library/bb525393(VS.85).aspx

for more information,




回答2:


There is a tutorial for doing this with C#, might be some help?



来源:https://stackoverflow.com/questions/1011520/windows-folder-share-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!