ERROR_INVALID_CURSOR_HANDLE - 1402 (0x57A)
Invalid cursor handle.
Updated: Feb 21, 2026
Technical Meaning
The ERROR_INVALID_CURSOR_HANDLE error code indicates that a cursor handle provided to an API function is invalid. A cursor handle is typically used in graphical user interface (GUI) operations, such as drawing or manipulating cursors on the screen.
Error Details
This error is returned when the system detects an attempt to use an invalid cursor handle in a function call. The cursor handle may have been created but has since been destroyed, or it was never valid in the first place.
Usage Context
This error code can be encountered in various Windows API functions that deal with cursors. Common APIs where this error might occur include those related to mouse input handling and graphical rendering.
Developer Interpretation
When encountering ERROR_INVALID_CURSOR_HANDLE, developers should ensure that cursor handles are properly managed and not used after they have been destroyed or invalidated. This includes checking the validity of the handle before passing it to any API function, and ensuring that all resources associated with the handle are released when no longer needed.
Related Errors
ERROR_INVALID_HANDLE(6)ERROR_BAD_LENGTH(107)ERROR_NOACCESS(82)
FAQ
Q: What does ERROR_INVALID_CURSOR_HANDLE mean?
A: It indicates that an invalid cursor handle was used in a function call.
Q: How can I prevent this error?
A: Ensure that cursor handles are valid and not used after they have been destroyed. Validate the handle before passing it to any API function.
Summary
ERROR_INVALID_CURSOR_HANDLE is a generic error code indicating an invalid cursor handle was provided in a Windows API call. Developers should manage cursor handles carefully to avoid this error.