Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Copies the specified cursor.
void CopyCursor(
[in] pcur
);
[in] pcur
Type: HCURSOR
A handle to the cursor to be copied.
None
CopyCursor enables an application or DLL to obtain the handle to a cursor shape owned by another module. Then if the other module is freed, the application is still able to use the cursor shape.
Before closing, an application must call the DestroyCursor function to free any system resources associated with the cursor.
Do not use the CopyCursor function for animated cursors. Instead, use the CopyImage function.
CopyCursor is implemented as a call to the CopyIcon function.
#define CopyCursor(pcur) ((HCURSOR)CopyIcon((HICON)(pcur)))
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | winuser.h (include Windows.h) |
Conceptual
Reference
Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!