Registriert seit: 4. Nov 2013
28 Beiträge
|
AW: Wie, um den Code zu übersetzen C + + bis Delphi
5. Nov 2013, 02:35
Danke! In jedem Fall zeigt Müll ...
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
const
created: DWORD = 1;
var
WimHandle: THandle;
Size: Integer;
Buffer: PChar;
Pot: PDWORD;
begin
WimHandle := WIMCreateFile
(PWideChar('e:\TestWim\x86\sources\boot.wim'),
WIM_GENERIC_READ, WIM_OPEN_EXISTING, WIM_FLAG_SHARE_WRITE,
WIM_COMPRESS_XPRESS, @created);
Size := 10000;
GetMem(Buffer, Size);
Pot := @Size;
if WIMGetImageInformation(WimHandle, Buffer, Pot) Then
begin
Memo1.Lines.Add(Buffer);
// Memo1.Text := String(Buffer);;
end;
FreeAndNil(Buffer);
end;
|
|
Zitat
|