I want to use the CopyCursor Windows API which is documented in the WinSDK and Microsoft MSDN to change an Icon to a Cursor. I found the declaration for this API in the VB 5 and VB 6 API Viewer. It's declared as follows:
Public Declare Function CopyCursor Lib "user32" Alias "CopyCursor" (ByVal hcur As Long) As Long
I put it into my code and it came back with the following error:
Error Number = 453
Error Description = Can't find DLL entry point CopyCursor in user32
After getting this error, I looked in the WINUSER.H header file for the Windows API and it's there. I looked at the exported functions in the USER32.DLL by using Dependency Walker and it did not show that the CopyCursor API was exported. It did have the CopyIcon API exported, but that's now what I need.
The version of USER32.DLL that I'm using is : 4.00.950
Can anyone tell me why that function is documented, and can be found in the API Viewer but can't be used because USER32.DLL doesn't export it?
Is there another API I can use to do this?
Is there another way to do this without the Windows API?