枚举网络份额 [英] Enumerating network shares
本文介绍了枚举网络份额的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
.net框架中是否存在枚举主机上文件共享的部分?我发现一些使用WMI的东西,但我不想走那条路.
Is there a part of the .net framework that enumerates the file shares on a host? I've found some things that use the WMI, but I'd prefer not to go that route.
推荐答案
您可以使用NetShareEnum win32 api. http://www.pinvoke.net/default.aspx/netapi32/netshareenum.html
You can use NetShareEnum win32 api. http://www.pinvoke.net/default.aspx/netapi32/netshareenum.html
或者查看下面的项目,该项目就是.NET Wrapper之上的项目. http://www.codeproject.com/KB/IP/networkshares.aspx
Or look at the following project which is .NET Wrapper over it. http://www.codeproject.com/KB/IP/networkshares.aspx
这篇关于枚举网络份额的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文