3989.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行

HTML
23
字号
<html>
  <head>
    <title>Re: 如何取得指定磁碟的 serial volume 序号</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: 如何取得指定磁碟的 serial volume 序号</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:k8088@ms3.hinet.net">霈捷</a> on July 17, 1998 at 10:49:03:<p>
In Reply to: <a href="3966.html">如何取得指定磁碟的 serial volume 序号</a> posted by 陈春雨 on July 16, 1998 at 18:34:51:<p>
: 请教各方高手,该如何在vb中取得指定磁碟的serial volume 序号??<br>: 有没有现成的函数??<br>: ps.不是磁碟的label哦!!<p>用GetVolumeInformation API<br>Declare Function GetVolumeInformation Lib "kernel32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As String, ByVal nVolumeNameSize As Long, lpVolumeSerialNumber As Long, lpMaximumComponentLength As Long, lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) As Long<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 3989-->
</ul><!--end: 3989-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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