Locking Desktop and Threading Issue



Hi, I have an application that displays forms on the users desktop,
what I am doing with it is having a SystemEvents
SessionSwitchEventHandler to capture the lock of the desktop, I would
like to kill the forms when this event is captured, that piece is
fine, but I would like to sleep the app until the
SessionSwitchReason.SessionUnlock happens then I can wake it again and
go the correct part of the code? Can I wake a sleeping thread, or
should I not sleep the thread at all, is there another way to get the
thread to sleep or hibernate and then wake up?

Thanks
Eamonn

.



Relevant Pages

  • Re: Locking Desktop and Threading Issue
    ... what I am doing with it is having a SystemEvents ... SessionSwitchEventHandler to capture the lock of the desktop, ... should I not sleep the thread at all, is there another way to get the ...
    (microsoft.public.dotnet.framework)
  • Re: The meaning of time in mathematics
    ... >>> I think you need some kind of medication ... >>> Or sleep. ... I think Mike has some interesting points. ... Apparently Dali's aim was to capture as accurately ...
    (sci.math)
  • Re: D3 Phantom Logoff/on nightly process
    ... execute "reset-user nnn" ... Although not from a phantom, this has been 100% reliable over many ... Begin capture. ...
    (comp.databases.pick)
  • Re: FREE ENERGY INVENTIONS
    ... now lets wake up and make a solar panel that can capture the ... > full 1000watts per square metre. ... capture half the energy. ...
    (sci.energy)
  • Premiere Timed Capture
    ... I want to capture a long video while I sleep but cannot make ... I have Premiere Pro 1.5 and I cannot find the timed capture ...
    (rec.video.desktop)

Loading