【问题标题】:Information about Container Resource容器资源信息
【发布时间】:2013-07-01 09:17:15
【问题描述】:

我正在编写代码以使用 WNetOpenEnum 函数WNetEnumResource 枚举网络中的设备,链接 http://msdn.microsoft.com/en-us/library/windows/desktop/aa385478(v=vs.85).aspx 中的 msdn 文档将术语提到为 容器资源。我用谷歌搜索过,但没有得到太多相同的信息,请告诉我容器资源到底是什么意思。

【问题讨论】:

    标签: winapi networking


    【解决方案1】:

    就像你链接的手册页上所说的:

    WNetOpenEnum 函数用于开始枚举单个容器中的资源。以下示例显示了 Microsoft LAN Manager 网络和 Novell NetWare 网络的层次结构并标识了容器。

    LanMan (container, in this case the provider) 
      ACCOUNTING (container, in this case the domain) 
        \\ACCTSPAY (container, in this case the server) 
          PAYFILES (disk) 
          LASERJET (print) 
    

    这里的容器是LanManACCOUNTING\\ACCTSPAY

    NetWare (container, in this case the provider) 
      MARKETING (container, in this case the server) 
        SYS (disk, first one on any NetWare server) 
        ANOTHERVOLUME (disk) 
        LASERJET (print) 
    

    这里NetWareMARKETING 是容器。

    【讨论】:

    • 我确实读过这个,打印和磁盘资源是作为容器资源来的吗?
    • 不,那些是打印和磁盘资源。
    • 所以说函数会枚举一个容器中的所有设备,也就是一个域。
    猜你喜欢
    • 1970-01-01
    • 2020-03-16
    • 1970-01-01
    • 1970-01-01
    • 2022-09-28
    • 1970-01-01
    • 1970-01-01
    • 2020-03-07
    • 1970-01-01
    相关资源
    最近更新 更多