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?