Autor Beitrag
scrooge
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 200



BeitragVerfasst: So 28.12.03 19:36 
Hi,

die Frage hier bezieht sich eigentlich auf eine andere in der Datei-Zugriff-Sparte. Wollte fragen, ob es eine Windows-Message gibt die ausgegeben wird, wenn ein Prozess durch den TaskManager gekillt wird (oder besser: Nachricht, wenn Prozess im Allgemeinen , wodurch auch immer, beendet wird).
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Di 30.12.03 20:57 
Hallo,

schau mal inder Onlinehilfe/PSDK unter "WM_ENDSESSION" und "WM_QUERYENDSESSION" nach.

_________________
Life is a bad adventure, but the graphic is really good!
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 31.12.03 09:25 
Wie ist euer Englisch, Jungs?
PSDK hat folgendes geschrieben:
The WM_QUERYENDSESSION message is sent when the user chooses to end the session or when an application calls the ExitWindows function. If any application returns zero, the session is not ended. The system stops sending WM_QUERYENDSESSION messages as soon as one application returns zero.

After processing this message, the system sends the WM_ENDSESSION message with the wParam parameter set to the results of the WM_QUERYENDSESSION message.

Soll heißen: Ich glaube nicht, dass WM_ENDSESSION bzw. WM_QUERYENDSESSION die richtige Antwort ist.
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Mi 31.12.03 16:52 
Hallo,

ich kann englisch... anscheinen habe ich @scrooge nicht verstanden... Also, er will doch eine Message, wenn Windows beendet wird? WM_ENDSESSION ist die einzige, die man bei "System Shutdown Messages" findet... Na ja, war ja nur so ein Tipp...

_________________
Life is a bad adventure, but the graphic is really good!
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 31.12.03 18:49 
Titel: Re: Windows-Message für das Beenden eines Prozesses durch de
Nix für ungut, Andreas, aber dann scheint Deutsch dein Problem zu sein. ;)
Ich lese:
scrooge hat folgendes geschrieben:
Wollte fragen, ob es eine Windows-Message gibt die ausgegeben wird, wenn ein Prozess durch den TaskManager gekillt wird (oder besser: Nachricht, wenn Prozess im Allgemeinen , wodurch auch immer, beendet wird).

Vom Beenden von Windows war nicht die Rede.
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Mi 31.12.03 20:59 
Hallo,

:oops: hast Recht... nennt man PMIGBOM... sorry.

Habe das dann mal mit Winsight überprüft. Es kommen:
WM_CLOSE
WM_WINDOWPOSCHANGING
WM_GETTEXT
WM_WINDOWPOSCHANGED
WM_DESTROY
WM_NCDESTROY
Hilft wohl wenig weiter... Na ja, spiel mal einwenig mit WinSight rum, villeicht gibts da ja andere Parameter wenn man den Taskam nimmt...

_________________
Life is a bad adventure, but the graphic is really good!
w3seek
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 64

Win XP; Win 2k; Suse 9.0
D5 Std, D6 Personal
BeitragVerfasst: Mi 31.12.03 22:50 
falsch, es werden gar keine messages gesendet! Der Prozess wird einfach terminiert.

_________________
OS: WinXP, 2000, Debian
Software: MingW, Delphi 5 Standard, Delphi 6 Personal, FreePascal
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Mi 31.12.03 22:56 
Hallo,

ich dachte halt, villeicht ändert sich einer der parameter... kann das sein???

_________________
Life is a bad adventure, but the graphic is really good!
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 31.12.03 23:23 
wo gibts denn WinSight ??

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Mi 31.12.03 23:25 
Hallo,

ist bei Delphi dabei (zumindest bei 6 und 7?). Im Startmenü bei Delphi!

_________________
Life is a bad adventure, but the graphic is really good!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 01.01.04 13:08 
ah ja. danke !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
w3seek
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 64

Win XP; Win 2k; Suse 9.0
D5 Std, D6 Personal
BeitragVerfasst: Do 01.01.04 13:40 
Andreas Pfau hat folgendes geschrieben:
ich dachte halt, villeicht ändert sich einer der parameter... kann das sein???


darf ich fragen von was du redest?

_________________
OS: WinXP, 2000, Debian
Software: MingW, Delphi 5 Standard, Delphi 6 Personal, FreePascal
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Do 01.01.04 15:19 
w3seek hat folgendes geschrieben:
falsch, es werden gar keine messages gesendet! Der Prozess wird einfach terminiert.

Nein... es wird zuerst eine Message geschickt, und wenn innerhalb eines bestimmten Zeitraumes das Programm nicht auf diese Message reagiert und sich beendet betrachtet Windows diesen Prozess als "nicht reagierend" und beendet ihn. Es ist aber natürlich was anderes ob du das Programm über "Anwendungen" oder "Prozesse" beendest. Bei Prozessen wird der Prozess gleich mit TerminateProcess "abgeschossen", das ist richtig...

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Do 01.01.04 15:32 
Hallo,

@w3seek, ich meinte, dass villeicht einer der Parameter der MEssages, die beimbeenden gesendet werden, anders ist, wenn das Programm vom TM aus beendet wird... Nur so eine flüchtige idee.

_________________
Life is a bad adventure, but the graphic is really good!
scrooge Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 200



BeitragVerfasst: Fr 02.01.04 16:42 
Habs noch nie ausprobiert, aber ich schätze mal, dass der Task-Manager das direkt anzeigt, sobald ein Prozess, wie auch immer, beendet wird. Wenn ja, müsste der ja auch irgendwoher die Info bekommen haben ?!
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Fr 02.01.04 16:50 
scrooge hat folgendes geschrieben:
Habs noch nie ausprobiert, aber ich schätze mal, dass der Task-Manager das direkt anzeigt, sobald ein Prozess, wie auch immer, beendet wird. Wenn ja, müsste der ja auch irgendwoher die Info bekommen haben ?!

Der Taskmanager aktualisiert sich in regelmäßigen Zeitintervallen, sonst könnte er ja auch nicht immer die jeweils aktuelle CPU-Auslastung und Prozesszeiten anzeigen...

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!