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
);
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.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in olectl.h.
Import Library: Included as a resource in olepro32.dll.