Autor Beitrag
MrCoder
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65

WinXP, SuSE Linux
D7 Ent
BeitragVerfasst: Mi 26.05.04 14:17 
Hallo Leute :D,
ich hab zuletzt versucht, eine Server-Dienstanwendung zu schreiben,
die auf Anfrage die Liste aller offenen Fenster auflistet und wenn
nötig schliesst. Doch leider tut sich ein Problem auf: EnumWindows
schlägt irgendwie fehl. Ich habe den Verdacht, dass es daran liegt,
dass der Dienst nicht auf einem Speziellen Desktop("Window Station")
ausgeführt wird...
Kann mir jemand eine Konkrete Antwort (evtl. auch Lösung) liefern???

Helft mir bitte!
Ich bedanke mich schon im vorraus.

Mr. Coder 8)

Moderiert von user profile iconMotzi: BB-Tags aus Titel entfernt
Moderiert von user profile iconTino: Topic aus Sonstiges verschoben am Di 20.07.2004 um 12:29
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mi 26.05.04 16:46 
Ganz recht.. Services werden in einer anderen WindowStation ausgeführt und ein Fenster-Handle ist immer nur innerhalb einer WindowStation gültig..! Daher kann dein Service nicht auf die Fenster auf deinem Desktop zugreifen..!

Lösungen: entweder den Service interaktiv laufen lassen oder aber die WindowStation zur Laufzeit dynamisch ändern... ist beides mehr oder weniger anfällig auf Shatter-Attacken..

Wozu muss das Prog eigentlich als Service laufen..??

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

WinXP, SuSE Linux
D7 Ent
BeitragVerfasst: Do 27.05.04 15:07 
Titel: Interaktiv?
Hallo,

wie kann ich denn den Dienst interaktiv machen?
Einfach TService.Interactive := True ?
Wird EnumWindows dann sofort funktionieren?
Ach ja und das Programm soll so eine Art "Remote-Admin"
wie VNC sein und soll auch Screenshots machen. :wink:
Danke für die Hilfe

Mr. Coder
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 27.05.04 19:35 
Ja.. wenn der Service als interaktiver Service läuft, läuft er in der WinSta0-WindowStation.. die einzige die Benutzereingaben entgegennehmen kann und mit der man immer arbeitet..

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

WinXP, SuSE Linux
D7 Ent
BeitragVerfasst: Fr 28.05.04 13:02 
Ok, Danke!

Mr. Coder