دستهها
تماس سریع با ما
بایگانی ماهیانه: نوامبر 2012
Get Disk Serial Number
function GetDiskSerialNumber(Disk: char): string; var VolumeSerialNumber, MaximumComponentLength, FileSystemFlags: DWORD; SerialNumber: string; begin GetVolumeInformation(PChar(Disk + ‘:\’), nil, ۰, @VolumeSerialNumber, MaximumComponentLength, FileSystemFlags, nil, ۰); SerialNumber := Format(‘%.4X-%.4X’, [HiWord(VolumeSerialNumber), LoWord(VolumeSerialNumber)]); Result := SerialNumber; end;
Cpu Speed
UNIT UCPUSPD; INTERFACE USES WINDOWS, MESSAGES, SYSUTILS, CLASSES, GRAPHICS, CONTROLS, FORMS, DIALOGS, COMCTRLS, STDCTRLS, BUTTONS; TYPE TFORMCPUSPEED = CLASS(TFORM) BITBTNSTART: TBITBTN; BITBTNSTOP: TBITBTN; LABELCPUSPEED: TLABEL; PROCEDURE BITBTNSTARTCLICK(SENDER: TOBJECT); PROCEDURE BITBTNSTOPCLICK(SENDER: TOBJECT); PRIVATE { PRIVATE DECLARATIONS } STOP: BOOLEAN; PUBLIC { … ادامهی خواندن