Autor Beitrag
baka0815
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 489
Erhaltene Danke: 14

Win 10, Win 8, Debian GNU/Linux
Delphi 10.1 Berlin, Java, C#
BeitragVerfasst: Mo 16.06.08 09:49 
Der Titel sagt schon fast alles aus. Ich bekomme ein Handle auf eine Datei an eine Funktion übergeben und möchte nun gerne wissen, welcher Dateiname zu diesem Handle gehört.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
function DateiName(F: File): string;
begin
  Result := DerDateiNameDesHandles(F);
end;

Gibt es da in Delphi/der Windows API eine Funktion?
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 16.06.08 10:21 
Nein.

Einzig über den Kernel-Mode gibt es Möglichkeiten, diese sind aber undokumentiert und mit hoher Wahrscheinlichkeit crasht man sich dabe den Rechner, wenn man nen Fehler macht.

Ändere lieber dein Programm-Konzept entsprechend.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
baka0815 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 489
Erhaltene Danke: 14

Win 10, Win 8, Debian GNU/Linux
Delphi 10.1 Berlin, Java, C#
BeitragVerfasst: Mo 16.06.08 10:36 
Ich hab' so eine Antwort befürchtet.

Gut, weiß ich Bescheid, danke.