Screen Snapshot with Cursor
I have written a code that takes a snapshot of the Screen and the mouse pointer and generates a .bmp file. I have managed to succesfully capture the cursor location but the problem is that the snapshot generated shows the mouse cursor as a Hourglass icon (or any relative icon that shows a busy state).
I have used a combination of GetIconInfo and DrawIconEx to do this.
There could be 2 possible reasons (acc. to me)
1) WHen the code takes a snapshot of the screen/captures the mouse pointer it temporarily (not visible to the eye) goes into a busy state and that is why the captured image shows that way
2) I may not have specified everything required to aquire the correct icon of the cursor and so it takes some default icon (which may be the busy state icon).
I would like to know if the method I followed is correct as regards to capturing the cursor and why it is unable to get the correct Icon of the cursor