# Re: 请问有什么好方法可以取得硬碟序号呢???

Posted by 霈捷 on September 24, 1998 at 17:45:09:

In Reply to: 请问有什么好方法可以取得硬碟序号呢??? posted by Abel on September 24, 1998 at 11:30:52:

: 请问有什么好方法可以取得硬碟序号呢???

使用API
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

Follow Ups: