Вниз
Скачать: CL | DM;

Серийный номер диска   Найти похожие ветки 

← →
TCrash ©   (2003-10-17 14:19) [0]

При форматировании жесткого диска яму выдается серийный номер, который выглядит как ХХХХ-ХХХХ, какой функцией его можно узнать.
И можно ли получить заводской номер жесткого диска


← →
Song ©   (2003-10-17 14:28) [1]

GetVolumeInformation()


← →
HolACost! ©   (2003-10-17 15:28) [2]

можно


← →
Zew ©   (2003-10-17 18:16) [3]

Наверное это поможет
unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;

type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;
VolLabel, SN, FileSystem, S : string;

implementation

{$R *.dfm}

// метка диска
procedure GetDriveInfo(VolumeName: string; var VolumeLabel, SerialNumber, FileSystem: string);
var
VolLabel, FileSysName :array [0..255] of char;
SerNum :pdword;
MaxCompLen, FileSysFlags :dword;
begin
New(SerNum);
GetVolumeInformation(PChar(VolumeName), VolLabel, 255, SerNum, MaxCompLen, FileSysFlags, FileSysName, 255);
VolumeLabel:=VolLabel;
SerialNumber:=Format("%x",[SerNum^]);
FileSystem:=FileSysName;
Dispose(SerNum);
end;
begin
s := "С:\"; // имя CD дисковода
GetDriveInfo(S, VolLabel, SN, FileSystem);
ShowMessage(SN);
end.


← →
HolACost! ©   (2003-10-19 11:35) [4]

Zew © (17.10.03 18:16) [3]
Сомниваюсь! :)))
Это гены тогда....



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.014 c
1-36737
Dracula2000
2003-12-02 10:30
2003.12.12
Grid or DBGrid


3-36558
The
2003-11-20 10:52
2003.12.12
Помогите составить запрос


1-36740
SDW_syscoder
2003-12-02 09:19
2003.12.12
Класс TStringList


4-36890
Lam
2003-10-17 15:32
2003.12.12
Справка


14-36850
Карелин Артем
2003-11-20 14:36
2003.12.12
Знатоки АСМА. Что это за фигня??




   Наверх