Autor Beitrag
PascalFreundin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25

Win 98-SE, XP-Prof.
D3 Prof.
BeitragVerfasst: Mo 17.11.03 15:50 
Dank meines Stöberns in Euren Beiträgen habe ich es geschafft, mein Programm-Icon in der TNA unterzubringen. Es ist auch nur dort sichtbar und wird nicht in der "üblichen" Taskleiste angezeigt, wenn es läuft.

Mein Problem ist jetzt:
Wie kann ich ermitteln, ob dieses Programm (meines) bereits läuft?
Kann ich irgendwo auslesen, welche Programme in der TNA bereits laufen?
Im Moment ist es nämlich leider so, daß es mehrfach gestartet werden kann, wie kann ich das verhindern?


Zuletzt bearbeitet von PascalFreundin am Mi 10.12.03 16:41, insgesamt 1-mal bearbeitet
mr_data
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 31

Win XP, Win2K
D5, D6 Pers.
BeitragVerfasst: Mo 17.11.03 16:17 
Hallo,

da musst du bitte mal Googeln. Es gab mal eine fertige Unit Oneinst,
die finde ich aber momentan nicht mehr.

Die entscheidende Win-API-Funktion heisst Createmutex.

Hier steht z.B. was :
www.xs4all.nl/~pzaal...tips/application.htm

_________________
"Sehnst du dich nach den Tagen zurück, wo Männer noch Männer waren und ihre Gerätetreiber selbst schrieben?" (Linux-Freigabe 0.02)
------------------------------------
Tschüß Data
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mo 17.11.03 16:24 
Suche in: Delphi-Forum, Delphi-Library CREATESEMAPHORE ist Suche in: Delphi-Forum, Delphi-Library CREATEMUTEX vorzuziehen... (einfach mal im Forum suchen -> oder einfach den 2 Links folgen)

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
PascalFreundin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25

Win 98-SE, XP-Prof.
D3 Prof.
BeitragVerfasst: Mo 17.11.03 16:36 
=> mr_data: DANKE! Dein Tip war GOLD wert, es funktioniert!

=> Motzi: Die Geschichte mit den Semaphoren werde ich noch ausprobieren, DANKE!

DANKE für die prompte Hilfe!!! :D