OleIconToCursor  1.VB3WN

Converts an icon to a cursor. For Win32 applications, this function calls the Win32 function CopyCursor(hIcon).

STDAPI OleIconToCursor(

    HINSTANCE hinstExe,

//Ignored in Win32

    HICON hIcon

//Handle to the icon

   );

 

 

Parameters

hinstExe

[in] Ignored in Win32.

hIcon

[in] Handle to the icon to be converted to a cursor.

 

Remarks

The return value is an HCURSOR for the new cursor object. The caller is responsible for deleting this cursor with the Win32 function DestroyCursor. If the conversion could not be completed, the return value is NULL.