Dismiss Notice

REGISTRATION IS AFTER ADMIN ACTIVATION

DONATIONS WITH PAYPAL CLICK TO BUTTON

1 MONTH VIP - 5$; 3 MONTHS VIP - 10$; 6 MONTHS VIP - 20$; 1 YEAR VIP - 30$; 2 YEARS VIP - 50$; GOLD USER FOR LIFE VIP - 150$

DONATIONS WITH Bitcoin Address:3NRs3CK3fhXifrNYxHEZKpETDd9vNLMsMD

Dismiss Notice
The registration is approved by the Administrator. It takes about 1 day to approve your registration
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' 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
    Online

    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 Administrator 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

Laws
Our website, law, laws, copyright and aims to be respectful of individual rights. Our site, as defined in the law of 5651 serves as a provider of space. According to the law, contrary to the law of site management has no obligation to monitor content. Therefore, our site has adopted the principle of fit and remove. Works are subject to copyright laws and is shared in a manner that violated their legal rights, or professional associations, rights holders who, adsdelphi@gmail.com I can reach us at e-mail address. Complaints considered to be infringing on the examination of the content will be removed from our site.
Donate Help To Us and Be VIP
DONATIONS WITH PAYPAL CLICK TO BUTTON
6 MONTHS VIP - 20$; 1 YEAR VIP - 30$; 2 YEARS VIP - 50$; GOLD USER FOR LIFE VIP - 150$
Social Block