| View previous topic :: View next topic |
| Author |
Message |
malfunction Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Jan 2007 Posts: 1015 Location: http://www.behindthecorner.com/
|
Posted: Mon Feb 25, 2008 1:03 pm Post subject: [DELPHI] How to get your HardDisk's serial number |
|
|
How to get your HardDisk's serial number without ripping your computer apart. Was bored on holiday and started doing some stuff with delphi and thought of this funny and pretty useless idea and well i had nothing else to do so here it is:
| Code: | function GetHardDiskSerial(const DriveLetter: Char): string;
var
NotUsed: DWORD;
VolumeFlags: DWORD;
VolumeInfo: array[0..MAX_PATH] of Char;
VolumeSerialNumber: DWORD;
begin
GetVolumeInformation(PChar(DriveLetter + ':\'),
nil, SizeOf(VolumeInfo), @VolumeSerialNumber, NotUsed,
VolumeFlags, nil, 0);
Result := Format('Label = %s VolSer = %8.8X',
[VolumeInfo, VolumeSerialNumber])
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage(GetHardDiskSerial('c'));
end; |
_________________
|
|
| Back to top |
|
 |
HolyBlah Master Cheater
Reputation: 2
Joined: 24 Aug 2007 Posts: 446
|
|
| Back to top |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Tue Feb 26, 2008 6:01 am Post subject: |
|
|
| Quote: | | Was bored on holiday and started doing some stuff with delphi and thought of this funny and pretty useless idea |
wow, your so full of shit
post a link to google if your gonna keep doing this
_________________
|
|
| Back to top |
|
 |
malfunction Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Jan 2007 Posts: 1015 Location: http://www.behindthecorner.com/
|
Posted: Tue Feb 26, 2008 8:11 am Post subject: |
|
|
| Snootae wrote: | | Quote: | | Was bored on holiday and started doing some stuff with delphi and thought of this funny and pretty useless idea |
wow, your so full of shit
post a link to google if your gonna keep doing this |
look whos talking maplefag atleast i dont play MS
_________________
|
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Tue Feb 26, 2008 8:27 am Post subject: |
|
|
| Posting it from another resource is no crime, but saying that you've made it is going across the line.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Feb 26, 2008 11:46 pm Post subject: |
|
|
Locked to prevent more flaming. As you have been warned already skyllakarean, if you continue to post others work and take credit for it, you will be banned.
_________________
- Retired. |
|
| Back to top |
|
 |
|