Autor Beitrag
luckyluke84
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 54

WinXP
Lazarus
BeitragVerfasst: Mi 03.11.04 13:28 
Hallo Community!

Auch nach langem Suchen bin ich hier im Forum nicht fündig geworden...
Wie man ein Handle ermittelt weiß ich eigentlich. Aufgeschmissen bin
ich jetzt weil ich nur den Dateinamen gegeben hab.
Kann mir jemand sagen/zeigen wie's geht?


Danke
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 03.11.04 13:31 
OpenFile oder FileOpen, musst in die Win32 SDK Hilfe oer MSDN sehen, wie's heißt oder ausprobieren, ich bin mir grad nicht sicher.

Dann bekommst du ein Handle auf die Datei, die dann zur Manipulation der Datei mit den API-Routinen von Windows verwendet werden kann. (Nicht jedoch mit den Delphi-Routinen)
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 03.11.04 13:47 
Oder meinst du jetzt das Handle einer laufenden Exe-Datei? Dann kuck dir mal Suche im MSDN OPENPROCESS an.
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: Mi 03.11.04 14:17 
@jaenicke: Die API-Funktion von öffnen von Dateien heißt CreateFile, nicht OpenFile.

_________________
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.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 03.11.04 14:44 
gabs da nicht mal ne funktion bei den schweizern ?
www.swissdelphicenter.ch

_________________
In the beginning was the word.
And the word was content-type: text/plain.