Hi there,

I write a small applicaiton in C# to mimic the SnapShot/32 application
functionality. I use Win32GDI rountines to grab the images and this is the
easy part.

The difficult part is to mimic the SnapS way of letting user to select a
window he/she wants to snap. It works like this:

1. the user does whatever he wants in the system
2. he/she presses some hotkey (RegisterHotKey) and the SnapS gets active
(but does not show its window)
3. instead the mouse cursor is globally changed to a cross and globally
captured until the first click
4. when the user clicks a window, its image is captured

my problem is the number 3. I've tried to capture the mouse with
SetCapture/.Capture = true but it does not work when the capturing window is
not a foreground window. I also try to change mouse cursor shape globally
with no results. I am sure that SnapS does not use any hooks (and I also do
not want to).

the question is: how the described functionality is achieved?

thanks for any clues,
Wiktor