⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wnetopenenum.htm

📁 WinAPI函数打包下载.rar
💻 HTM
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<style><!--
body,table {font-family:"宋体"; font-size: 9pt; line-height:11pt;}
a {text-decoration:none} a:hover {color:red;text-decoration:underline}
--></style>
<title>WNetOpenEnum</title>
</head>

<body link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor="#FFC8C8">
<div align="center"><center>

<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" height="16"><a name="WNetOpenEnum">WNetOpenEnum</a></td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
  <tr>
    <td width="102%" colspan="3">VB声明</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">Declare Function WNetOpenEnum Lib &quot;mpr.dll&quot; Alias 
    &quot;WNetOpenEnumA&quot; (ByVal dwScope As Long, ByVal dwType As Long, ByVal dwUsage As 
    Long, lpNetResource As NETRESOURCE, lphEnum As Long) As Long</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">说明</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">启动对网络资源进行枚举的过程。这个函数会返回由<a
    href="WNetEnumResource.htm" tppabs="http://personal.hb.cninfo.net/~vbapi/WNetEnumResource.htm">WNetEnumResource</a>函数用于枚举资源所用的一个句柄</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">返回值</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">Long,零表示成功。会设置<a href="GetLastError.htm" tppabs="http://personal.hb.cninfo.net/~vbapi/GetLastError.htm">GetLastError</a>。如<a
    href="GetLastError.htm" tppabs="http://personal.hb.cninfo.net/~vbapi/GetLastError.htm">GetLastError</a>是ERROR_EXTENDED_ERROR,则可用<a
    href="WNetGetLastError.htm" tppabs="http://personal.hb.cninfo.net/~vbapi/WNetGetLastError.htm">WNetGetLastError</a>取得额外的错误信息</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">参数表</td>
  </tr>
  <tr>
    <td width="25%">参数</td>
    <td width="77%" colspan="2">类型及说明</td>
  </tr>
  <tr>
    <td width="25%" rowspan="4">dwScope</td>
    <td width="77%" colspan="2">Long,指定要枚举的资源范围。可设为下述常数之一:</td>
  </tr>
  <tr>
    <td width="37%">RESOURCE_CONNECTED</td>
    <td width="38%">枚举已连接的资源(忽略dwUsage)</td>
  </tr>
  <tr>
    <td width="37%">RESOURCE_GLOBALNET</td>
    <td width="38%">枚举所有资源</td>
  </tr>
  <tr>
    <td width="37%">RESOURCE_REMEMBERED</td>
    <td width="38%">只枚举永久性连接</td>
  </tr>
  <tr>
    <td width="25%" rowspan="4">dwType</td>
    <td width="77%" colspan="2">Long,下述常数之一</td>
  </tr>
  <tr>
    <td width="37%">RESOURCE_ANY</td>
    <td width="38%">枚举所有类型的网络资源</td>
  </tr>
  <tr>
    <td width="37%">RESOURCE_DISK</td>
    <td width="38%">枚举磁盘资源</td>
  </tr>
  <tr>
    <td width="37%">RESOURCE_PRINT</td>
    <td width="38%">枚举打印资源</td>
  </tr>
  <tr>
    <td width="25%" rowspan="3">dwUsage</td>
    <td width="77%" colspan="2">Long,可设为零,表示枚举所有资源;或设为下述常数的一个或两个:</td>
  </tr>
  <tr>
    <td width="37%">RESOURCEUSAGE_CONNECTABLE</td>
    <td width="38%">只枚举那些能够连接的资源</td>
  </tr>
  <tr>
    <td width="37%">RESOURCEUSAGE_CONTAINER</td>
    <td width="38%">只枚举包含了其他资源的资源</td>
  </tr>
  <tr>
    <td width="25%">lpNetResource</td>
    <td width="77%" colspan="2"><a href="NETRESOURCE.htm" tppabs="http://personal.hb.cninfo.net/~vbapi/NETRESOURCE.htm">NETRESOURCE</a>,这个结构指定了一个容器资源。该函数会枚举包含于这里指定的某个指定资源内的资源。如设为NULL(把声明变成ByVal 
    As Long),那么函数会枚举顶级网络资源。倘若在dwScope参数里没有指定RESOURCE_GLOBALNET,那么必须为NULL</td>
  </tr>
  <tr>
    <td width="25%">lphEnum</td>
    <td width="77%" colspan="2">Long,指定一个变量,用于装载一个枚举句柄。该句柄由<a
    href="WNetEnumResource.htm" tppabs="http://personal.hb.cninfo.net/~vbapi/WNetEnumResource.htm">WNetEnumResource</a>函数使用。必须用<a
    href="WNetCloseEnum.htm" tppabs="http://personal.hb.cninfo.net/~vbapi/WNetCloseEnum.htm">WNetCloseEnum</a>函数将其清除</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%"><p align="right"><a href="#WNetOpenEnum">Top</a></td>
  </tr>
</table>
</center></div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -