Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Copies the specified cursor.
Syntax
HCURSOR CopyCursor(
[in] pcur
);
Parameters
[in] pcur
Type: HCURSOR
A handle to the cursor to be copied.
Return value
Type: HCURSOR
If the call succeeds, the return value is a handle to the duplicate cursor.
If the call fails, the return value is NULL. To get extended error information, call GetLastError.
Remarks
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)))
Requirements
| 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) |
See also
Conceptual
Reference