For all your PC requirements
New Products
GetDiskSerial.DLL is a standard Windows DLL that does not depend on the "support" libraries. You can use it to read the serial number of hard disk easily. As we all know, this serial number is unique in the world. So this DLL is of great use, for example, you can use this serial number to create an machine id or encrypt number.
The GetDiskSerial.DLL has already succeeded to get the Serial Number in Delphi, C++Builder, C#, Visual C++, Visual Basic, Visual Basic.NET, PowerBuilder, Visual Foxpro and Clarion. Here you can download examples of above development language at this site.
- Size only 45KB now !
- REAL serial number of hard disk. NOT Partition ID, NOT Volume ID !
- Not require administrator rights in Win NT/2000/XP/Vista/WIN7 !

» 1. Delphi Sample Code: Generate unique HardwareID with Delphi
function GetHardwareID(HDD, NIC, CPU, BIOS: LongBool; REGCODE: PChar):PChar; stdcall;
external 'HardwareID.dll' name 'GetHardwareID';
implementation
{$R *.dfm}
procedure TForm1.btnGetClick(Sender: TObject);
begin
edtHWID.Text:= GetHardwareID(cbHDD.Checked,
cbNIC.Checked,
cbCPU.Checked,
cbBIOS.Checked,
'License Code');
end;
» 2. C++ Builder Sample Code: Generate unique HardwareID with C++ Builder
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
char* (__stdcall *GetHardwareID)(BOOL, BOOL, BOOL, BOOL, char*);
char* (__stdcall *GetHardwareIDWithAppID)(char*, BOOL, BOOL, BOOL, BOOL, char*);
HINSTANCE DllInst = NULL;
char* RegCode = "xxxx-xxxx"; //Enter your license key
//---------------------------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
if (DllInst == NULL) DllInst = LoadLibrary("HardwareID.dll");
if (DllInst)
{
GetHardwareID = (char* (__stdcall*)(BOOL, BOOL, BOOL, BOOL, char*))
GetProcAddress(DllInst,"GetHardwareID");
//Call GetHardwareID
Edit1->Text = GetHardwareID(cbHDD->Checked, cbNIC->Checked,
cbCPU->Checked, cbBIOS->Checked, RegCode);
}
}
//---------------------------------------------------------------------------
» 3. C# Sample Code: Generate unique HardwareID with C# (C-Sharp)
public partial class Form1 : Form
{
// Declare Statement, by AzSDK Technology
[DllImport("HardwareID.dll")]
public static extern String GetHardwareID(bool HDD,
bool NIC,
bool CPU,
bool BIOS,
string sLicenseCode);
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
textBox1.Text = GetHardwareID(cb_HDD.Checked, cb_NIC.Checked,
cb_CPU.Checked, cb_BIOS.Checked, "License Code");
}
}
» 4. VB.NET Sample Code: Generate unique HardwareID with vb.net
Imports System.Runtime.InteropServices
Public Class Form1
Public Declare Function GetHardwareID Lib "HardwareID.dll" (ByVal HDD As Boolean,
ByVal NIC As Boolean,
ByVal CPU As Boolean,
ByVal BIOS As Boolean,
ByVal sLicenseCode As String)
As String
Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
_Handles button1.Click
textBox1.Text = GetHardwareID(cb_HDD.Checked,
cb_NIC.Checked,
cb_CPU.Checked,
cb_BIOS.Checked,
"License Code")
End Sub
You can download trial version HERE.
GetDiskSerial DLL
Personal Developer License
JUST: 39.95 USD
30 Days no question asked refund guarantee according to seller terms and conditions.