ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE - 7058 (0x1B92)

The remote control of the console was terminated because the display mode was changed. Changing the display mode in a remote control session is not supported.

Updated: Feb 21, 2026

Technical Meaning

The error code ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE (7058, 0x1B92) indicates that a remote control session was terminated because the display mode of the console was changed. This error is specific to scenarios where a user or system process attempts to remotely control another console session while the display mode is altered.

Error Details

This error code is typically encountered in environments where Remote Desktop Services (RDS) are used, such as Terminal Services sessions or RemoteFX sessions. The change in display mode can be initiated by the user manually adjusting settings or through system-level changes that affect the console's visual output.

Usage Context

The context of this error is specific to scenarios involving remote control and display mode management within Windows environments. It highlights a situation where the current operation cannot proceed due to an external change in the display configuration, which is not supported during active remote sessions.

Developer Interpretation

Developers should interpret this error as indicating that a remote control session has been terminated unexpectedly due to a change in the console's display mode. This can occur when the user or system attempts to modify the display settings while another process is actively using the console for remote operations. Developers should be aware of this limitation and handle it appropriately within their applications, ensuring that any necessary cleanup or state restoration is performed.

Related Errors

  • ERROR_CTX_LOGON_FAILED (0xC0000135): Indicates a failure in logging on to a session.
  • ERROR_CTX_CLIENT_DISCONNECTED (0x80060024): Occurs when the client disconnects from a remote session.

FAQ

Q: What causes this error?

A: This error is caused by changing the display mode during an active remote control session, which is not supported.

Q: How can I handle this error in my application?

A: Ensure that your application checks for and handles this error gracefully. You may need to implement logic to terminate or pause any ongoing operations when this error occurs and then resume them after the display mode has been stabilized.

Summary

The ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE (7058, 0x1B92) error code is specific to scenarios where a remote control session is terminated due to an unsupported change in the console's display mode. Developers should be aware of this limitation and handle it appropriately within their applications to ensure smooth operation and user experience.