procedure ShowValuesAtHex10(const aFilename: string; const aMemo: TMemo);
var
fs: TFileStream;
q: QWord;
d: DWord absolute q;
w: Word absolute q;
b: Byte absolute q;
begin
if FileExists(aFilename) and (FileSize(aFilename) > $20)
and Assigned(aMemo) then begin
fs:=TFilestream.Create(aFilename, fmOpenRead);
try
fs.Position:=$10;
q:=fs.ReadQWord;
aMemo.Clear;
aMemo.Append(Format('Byte: %x',[b]));
aMemo.Append(Format('Word: %x',[w]));
aMemo.Append(Format('DWord: %x',[d]));
aMemo.Append(Format('QWord: %x',[q]));
finally
fs.free;
end;
end;
end;