Hi Hutch,
Did you know that the CopyCursor function is not referenced in your user32.lib or user32.inc?
Thanks,
Ewayne
Ewayne,
I just dumped the user32.dll in my win2k sp4 and it does not contain the export for CopyCursor at all. It is referenced in the Whistler edition of the PLATFORMSDK I use for win2k and says user32.dll but I cannot find it.
LATER : I cannot find it in either the win2k libraries or the current server 2003 libraries either.
Thinking that CopyCursor might have been removed from the later service packs for security reasons, I checked the Windows 2000 USER32.DLL v5.0.2180.1 (pre-SP1 AFAIK), and CopyCursor is not listed among the exports. Then I checked USER32.DLL v5.0.2195.7017 from Windows 98 SE and it is not listed there either. Then a search of both systems for a dll that contains the name CopyCursor turned up nothing. Then I found this in the winuser.h that was distributed with the PSDK:
Quote
#ifndef _MAC
#define CopyCursor(pcur) ((HCURSOR)CopyIcon((HICON)(pcur)))
#else
WINUSERAPI
HCURSOR
WINAPI
CopyCursor(
IN HCURSOR hCursor);
#endif