getting the current mouse cursor image in c++ or c
===

In my application I want to get the current mouse cursor to display it in an applet. for that I have to write a C or C++ function that returns mouse cursor as a buffered image.

(here I choose C or C++ because of the speed of execution. other than that I found c# code snippet that get the cursor as a bit map in this article http://www.codeproject.com/Articles/12850/Capturing-the-Desktop-Screen-with-the-Mouse-Cursor.) 

In msdn library there is a function that returns a handle to the current cursor. but handle can do nothing other than passing to a function. is there a function that returns the current cursor as a buffered image or can I get cursor image using handle itself?