Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.12.12;
Скачать: 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 вся ветка

Текущий архив: 2003.12.12;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.012 c
3-36564
Russko
2003-11-20 14:07
2003.12.12
ORDER BY


7-36866
KIE
2003-10-06 12:19
2003.12.12
Как мне получить изображение с ...


1-36663
Igit
2003-11-27 10:17
2003.12.12
Как сохранить IStream в файл?


1-36734
LittleGirly
2003-12-02 10:24
2003.12.12
Вопрос по TreeView


3-36514
Улан
2003-11-19 07:16
2003.12.12
dbf+ADO