# Re: !!!请问如何用vb取得硬碟序号

Posted by 普罗 on October 13, 1999 at 17:14:41:

In Reply to: !!!请问如何用vb取得硬碟序号 posted by andy on October 13, 1999 at 16:48:22:

: 如提

可以使用下列之API

Private Declare Function GetVolumeInformation Lib "kernel32.dll" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As String, ByVal nVolumeNameSize As Integer, lpVolumeSerialNumber As Long, lpMaximumComponentLength As Long, lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) As Long

Follow Ups: