The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => Topic started by: Ewayne on February 04, 2005, 03:08:19 PM

Title: To Hutch
Post by: Ewayne on February 04, 2005, 03:08:19 PM
Hi Hutch,

Did you know that the CopyCursor function is not referenced in your user32.lib or user32.inc?

Thanks,

Ewayne
Title: Re: To Hutch
Post by: hutch-- on February 04, 2005, 04:09:10 PM
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.
Title: Re: To Hutch
Post by: MichaelW on February 04, 2005, 06:04:03 PM
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