Autor Beitrag
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Di 19.10.04 20:31 
Hi!

Weiß jemand, ob es eine Möglichkeit gibt, aus einem Service heraus die gleiche Funktionalität wie SetWindowsHookEx zu erriechen? Ich habe das Problem, dass:
MSDN SetWindowsHookEx hat folgendes geschrieben:
The global hooks are a shared resource, and installing one affects all applications in the same desktop as the calling thread


Und da ein Dienst als Benutzer "SYSTEM" läuft, wird der Hook bei den Benutzern nicht installiert :(





MrSaint

[EDIT: Für mich wär es natürlich am besten, wenn der Hook dann bei _allen_ Benutzern funktionieren würde, egal welcher sich nun anmeldet ;) ]

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems