Autor Beitrag
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 14.08.05 12:34 
Hallo, ich suche eine Möglichkeit, wie mein Prog erkennt wenn Windows herrunterfährt.
Die Suche half mir net weiter, vielleicht kennt jemand die Lösung.

mfg
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: So 14.08.05 13:29 
Die Message WM_QUERYENDSESSION wird, glaube ich, an alle Applikationen geschickt. Wenn Deine App das nicht will, dann kann Sie das Runterfahren i.a. unterbrechen.
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 14.08.05 14:03 
Ne, sie soll's nur wissen wenn Windows tunterfährt um rechtzietig noch Daten zu speichern.

Zitat:
Die Message WM_QUERYENDSESSION wird, glaube ich, an alle Applikationen geschickt.

Und wie empfang ich die?
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 14.08.05 14:26 
such mal nach dem begriff !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 14.08.05 14:38 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure CloseOnShutdown; message WM_QUERYENDSESSION;//hier Fehler
.
.
implementation

procedure TForm1.CloseOnShutown;
begin
     Self.CLose;
end;

Das hab ich gefunden. Nur bei kommt folgender Fehler:
Zitat:
[Fehler] Unit1.pas(20): E2138 Ungültige Botschaftsparameterliste


Lösungsvorschläge?
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: So 14.08.05 15:09 
F1 drücken ... und DOH lesen, verstehen, gelerntes ausprobieren ...

ausblenden Delphi-Quelltext
1:
procedure CloseOnShutdown(var Message: TMessage); message WM_QUERYENDSESSION;					

_________________
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.
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 14.08.05 15:39 
Ich danke vielmals.