| View previous topic :: View next topic |
| Author |
Message |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Wed Dec 19, 2007 6:08 pm Post subject: How to get the hardware ID? |
|
|
| So how do you get the hardware ID??? |
|
| Back to top |
|
 |
Ksbunker Advanced Cheater
Reputation: 0
Joined: 18 Oct 2006 Posts: 88
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Thu Dec 20, 2007 6:04 pm Post subject: |
|
|
| But It has that parameter in the call. So how do I call it? |
|
| Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Thu Dec 20, 2007 8:27 pm Post subject: |
|
|
Try this
C++:
DWORD V, M, F;
GetVolumeInformation("C:\", NULL, 0, @V, M, F, NULL, 0);
// V has the Serial Number of GetVolumeInformation of the C drive.
Customize it, add math. |
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Sun Dec 23, 2007 8:43 pm Post subject: |
|
|
| VB please... I can use null because its a parameter... |
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Sun Dec 23, 2007 9:15 pm Post subject: |
|
|
| Code: | Option Explicit
Private Declare Function GetVolumeInformation Lib "kernel32" Alias "GetVolumeInformationA" (ByVal RootPathName As String, ByVal VolumeNameBuffer As String, ByVal VolumeNameSize As Long, ByRef VolumeSerialNumber As Long, ByRef MaximumComponentLength As Long, ByRef FileSystemFlags As Long, ByVal FileSystemNameBuffer As String, ByVal FileSystemNameSize As Long) As Long
Private Sub Form_Load()
Dim VolumeName As String, SerialNumber As Long, Unused As Long
VolumeName = String$(64, 0)
If GetVolumeInformation("C:\", VolumeName, Len(VolumeName), _
SerialNumber, Unused, Unused, vbNullString, 0) <> 0 Then
Debug.Print "Volume label: "; Trim(VolumeName)
Debug.Print "Serial number: "; Hex$(SerialNumber)
Else
Debug.Print "Error: " & Err.LastDllError
End If
End Sub |
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
|