关于通过sereval NetrShareEnum调用枚举所有共享资源的问题 [英] A problem about enumerating all shared resources by sereval NetrShareEnum calls

查看:182
本文介绍了关于通过sereval NetrShareEnum调用枚举所有共享资源的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 当我们支持NetrShareEnum接口(参见
[MS-SRVS] 3.1.4.8,opnum 15)来枚举Linux服务器上的共享资源时,我们遇到了一个难题。由于共享资源和其他系统限制太多,我们希望枚举对Windows
客户端的第一个NetrShareEnum响应中的一些共享资源,并在随后的NetrShareEnum调用中返回剩余资源。但似乎Windows客户端在这种情况下效果不佳。

NetrShareEnum定义如下:

NET_API_STATUS NetrShareEnum(

   [in,string,unique] SRVSVC_HANDLE ServerName,

   [in,out] LPSHARE_ENUM_STRUCT InfoStruct,

   [in] DWORD PreferedMaximumLength,

   [out] DWORD * TotalEntries,

   [in,out,unique] DWORD * ResumeHandle

);

收到响应后,Windows客户端会弹出一个错误对话框,意味着有更多日期可用,并且不会请求
后续的NetrShareEnum调用来获取服务器上的剩余共享。这就是问题我们不知道原因。
所以我们需要你的帮助并期待你的建议。我们还注意到请求中的
NetrShareEnum.PreferedMaximumLength为0xFFFFFFFF。这是否意味着服务器必须返回第一个NetrShareEnum回复中的所有股票?

After receiveing the reponse, the Windows client pops up a error dialog meaning more date is available and does not request the subsequent NetrShareEnum call to obtain the remaining shares on the server. That is the question and we don't know the reason. So we need your help and expect your suggestion. we also note that the NetrShareEnum.PreferedMaximumLength is 0xFFFFFFFF in the request. Does this mean that the server must return all the shares in the first  NetrShareEnum response?

谢谢!

祝福!

推荐答案

感谢您提出问题。 同事会尽快与您联系以调查此问题。

Thank you for your question.  A colleague will contact you soon to investigate this issue.

问候,

Mark Miller | Microsoft开放规范团队

Mark Miller | Microsoft Open Specifications Team


这篇关于关于通过sereval NetrShareEnum调用枚举所有共享资源的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆