Вниз
Скачать: 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.011 c
7-36857
Tik
2003-10-07 11:40
2003.12.12
---|Ветка была без названия|---


4-36899
mOOx_
2003-10-16 12:15
2003.12.12
Абсолютные координаты окна


1-36618
Imshanya
2003-12-01 13:52
2003.12.12
Запуск из програмы OutlookExperess с параметрами.


1-36730
ased
2003-12-02 12:05
2003.12.12
Запуск exe для 1024x768 в 800x600


3-36570
Developerr
2003-11-20 11:42
2003.12.12
Как перевисти текст из поля Memo в обычную строку?




   Наверх