1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

need Help

Discussion in 'Delphi Components,Freeware, Open Source' started by xfilles, May 13, 2013.

  1. xfilles
    Offline

    xfilles DF Junior

    How to read the unique serial number of hard disk ........?
    Thnxxx
     
  2. Exlim
    Offline

    Exlim DF Junior

    Try the following:

    unit Unit1;

    interface

    uses
      Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
      Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;

    type
      TForm1 = class(TForm)
        Label1: TLabel;
        Button1: TButton;
        procedure Button1Click(Sender: TObject);
      private
        { Private declarations }
      public
        { Public declarations }
      end;

    var
      Form1: TForm1;

    implementation

    {$R *.dfm}
    function GetVolumeSerial(const Drive : PChar) : string;
    var
      VolumeSerialNumber : DWORD;
      MaximumComponentLength : DWORD;
      FileSystemFlags : DWORD;
      SerialNumber : string;
    begin
      Result:='';

      GetVolumeInformation(
            Drive,
            nil,
            0,
            @VolumeSerialNumber,
            MaximumComponentLength,
            FileSystemFlags,
            nil,
            0) ;
      SerialNumber :=
            IntToHex(HiWord(VolumeSerialNumber), 4) +
            ' - ' +
            IntToHex(LoWord(VolumeSerialNumber), 4) ;

      Result := SerialNumber;
    end; //GetVolumeSerial
    procedure TForm1.Button1Click(Sender: TObject);
    begin
      Label1.Caption := GetVolumeSerial('c:\');
    end;

    end.
     
  3. xfilles
    Offline

    xfilles DF Junior

    Thinck  you but
    function GetVolumeSerial(const Drive : PChar) : string;
    wok for the drive (c:\) what i need is th unique SN Of th Hard Disk
     
  4. AdminDF
    Online

    AdminDFAdminDF is a Verified Member Delphifan Staff Member DF Staff

    yes you can try funciton but i giv you one component you can see all system infomation about computer

    MiTeC System Information Component Suite v10.9.2 Full Source-ProLaZ

    Code:
    Components
    TMiTeC_SystemInfo: gathers all following components to one for simple use
    TMiTeC_APM: provides informaton about Advanced Power Management
    TMiTeC_BT: detects Bluetooth devices using Native Bluetooth Enumerator)
    TMiTeC_CPU: provides detailed CPU information
    TMiTeC_Devices: provides devices information like Windows Device Manager
    TMiTeC_Disk: provides logical drive information
    TMiTeC_Display: provides display adapter information
    TMiTeC_DMA: provides direct memory acceess
    TMiTeC_Engines: provides information about various installed engines
    TMiTeC_Machine: provides informaton about computer or virtual machine, BIOS etc.
    TMiTeC_Media: provides media devices information
    TMiTeC_Memory: provides memory information
    TMiTeC_Monitor: provides all connected moitors information
    TMiTeC_Network: provides network card info, TCP/IP ad Winsock config, installed protocols, clients and services.
    TMiTeC_OperatingSystem: provides OS detailed information, Locale, Timezone, NT specific info, hotfixes, internet settings etc.
    TMiTeC_Printers: detects installed printers and their properties
    TMiTeC_ProcessList: collects list of running processes, services, drivers and windows and their properties
    TMiTeC_SMBIOS: reads SMBIOS information from memory
    TMiTeC_Software: provides list of installed software
    TMiTeC_Startup: provides list of applications that are started during system startup
    TMiTeC_Storage: detects S-ATA, ATA, ATAPI, RAID, SCSI, USB, Firewire storage devices and their parameters
    TMiTeC_USB: detects USB ports and devices and their parameters
    TMiTeC_DeviceMonitor: It fires event whenever any usb, firewire etc. device or volume is connected or disconnected to machine.
    TMiTeC_MSProduct (MSI_MSProduct.pas) added. It detects some Microsoft products installed and their product keys
    TMiTeC_DriveContent (MSI_DriveContent.pas) added. It scans and saves specified drive content
    TMiTeC_DiskMonitor (MSI_DiskMonitor.pas) added. It watches specified drive or path and fires event when specified event occurs
    
     Demos
    Main Demo - complex demo featuring system information overview
    Resource Meter - displays User, GDI and System resources
    Memory Viewer - shows physical memory from entered address and saves it
    USB Devices - demonstrates USB ports and devices enumeration
    Disk View - demonstrates storage devices enumeration
    Process Viewer - demonstrates running processes enumeration
    WMI demo - complex demo featuring system information overview obtained via WMI
    Device Monitor demo - complex demo featuring TMiTeC_DeviceMonitor component
    Bluetooth devices demo - complex demo featuring TMiTeC_BT component
    
     Applications
    MSI: all-features-presenting application with professional design and look for system information and evaluation
    WMI Explorer: WMI object explorer with WQL query tool
    ROM BIOS Explorer: tool for BIOS/SMBIOS/DMI browsing and disassembling
    GetSys: console application providing system information
    Process Viewer: tool for running processes exploring. Under NT allows explore also services and drivers.

    Download
     
  5. xfilles
    Offline

    xfilles DF Junior

    Think Verry Match r3n4m3
    I will try it
     

Share This Page