Lockdown and Idle events

G

Guest

Hi all
I would like to run my app (C# 3.0 Win application) on the following XP
pro/home events:
Enter and exit idle mode (peripherals don't get input for few minutes)
Station lockdown and entrance (winkey + L or alt+ctrl+del -> lock computer)
I can create windows C# service that periodically check (if its possible)
the different situations, but I don’t want to add load to the station.

Please advice,

Sharon
 
G

Guest

FYI i found some win32 entry :

Private Declare Sub LockWorkstation Lib "User32.dll" Alias
"LockWorkStation" ()

Private Declare Function OpenDesktop Lib "user32" Alias "OpenDesktopA"
(params) as Long

Private Declare Function CloseDesktop Lib "user32" (ByVal hDesktop As Long)
As Long

I will try to use them.
Thank you
Sharon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top