Вниз
Скачать: 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.013 c
7-36860
StasVashuk
2003-10-06 16:40
2003.12.12
Вопрос о модулях.


3-36556
Степан
2003-11-20 19:24
2003.12.12
ADO, пустая таблица


14-36815
viktor_mixalich
2003-11-19 22:47
2003.12.12
Возможна ли сеть 100/10 по 1й паре провода??


7-36865
smit
2003-10-06 10:48
2003.12.12
Ещё немножко о модемах...


1-36636
McSimm2
2003-12-03 10:01
2003.12.12
Как в переменную типа pchar записать имеющийся адрес




   Наверх