Session, Station, Desktop, Hooking

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello,

I am trying to create monitoring software for XP+ OS's.
I'm looking for feedback to tell me if I missed something, or am doing
something the wrong way.

Is there a way to monitor Desktop Creation/Switching?
Is the best method for having desktop being hooked

What I'm currently trying to do is:
Have a service with HandlerEx detect session changes
For each user that logs on, use CreateProcess to create a process that:
(CreateProcess for a process as LocalSystem, for global hook functionality)
Loads SQL Connection string (Created with Everyone has Read
Properties, in HKEY_LOCALMACHINE\...)
Create Table/Whatnot
CreateFileMapping and CreateEvent with NULL DACL, and names based
upon the LUID
?Hook Winstation/Desktop Creation? ( Is there a way to monitor their
creation/destruction without making an API hook? )
?Hook Switch Desktop?
For each Winstation (I've read that terminal services, and
everything only use WinSta0 for user input, is this right?)
SetProcessWinstation
For each Desktop that is not winlogon/lock
SetThreadDesktop(GetInputDesktop)
Install WH_SHELL hook
Hook mapsview and opens event, notifying process of
changes (synchronized via atomicly modified shared variable)
Loop that monitor's Logoff, and WH_SHELL changes
Shutdown/logoff, send message to child process(es)

PS. Ctrl+Enter = arg!


.



Relevant Pages

  • Re: Question: AE Colorlink
    ... used it with a standard IIgs RGB monitor, ... to hook it up to the SCART input ... From the pinout documents for the IIgs' DB-15 video connector, ...
    (comp.sys.apple2)
  • Re: TVs
    ... play games on the TV instead of monitor? ... Kinda like we used to hook ... Dad's Atari up to the big 25" TV to play Krazy Shootout? ... Never compare yourself to the best others can do, ...
    (rec.games.computer.ultima.dragons)
  • Re: Question: AE Colorlink
    ... used it with a standard IIgs RGB monitor, ... to hook it up to the SCART input ... From the pinout documents for the IIgs' DB-15 video connector, ...
    (comp.sys.apple2)
  • Re: DSC 632 1555MX & TLM troubles
    ... I am getting a Trouble Code #3 ... whenever my phone line goes off hook. ... The monitor company is getting messages all ... reported is too low which will trigger the TLM). ...
    (alt.security.alarms)