| Previous | Next |
| ERROR_HOOK_TYPE_NOT_ALLOWED | ERROR_TIMEOUT |
ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION
The caller is not connected to an interactive window station.
ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION is Win32 error 1459 (0x5B3). Only the interactive window station can display user interface and receive keyboard or mouse input. Services, scheduled tasks, isolated processes, and processes on other window stations cannot assume access to the logged-on user’s WinSta0 desktop.
Situations that trigger the mismatch
- a Windows service tries to display a dialog or manipulate user windows
- a task runs without an interactive logon but calls USER32 functionality
- the process was explicitly attached to a private noninteractive window station
- code targets the wrong Remote Desktop Services session
- a helper inherits window-station or desktop state that differs from its intended user
Evidence to preserve
Log process and session IDs, token user, logon type, process window-station name, desktop name, service or task configuration, and the exact UI API. Record the active console session and any intended target user. This separates a permissions failure from a fundamental absence of interactive input/output.
Diagnostic sequence
Use GetProcessWindowStation and window-station information to identify the caller’s context. Determine whether the design truly requires user interaction. For services, inspect whether work should instead be performed by a per-user agent launched in the user session and connected through authenticated IPC.
Do not rely on legacy “interact with desktop” service behavior. Session isolation exists for security and reliability. Copying handles or changing the service’s window station does not solve user identity, session targeting, UIPI, desktop access, and lifecycle concerns.
Recovery architecture
Move presentation and input handling into a process running as the intended interactive user. Keep privileged operations in the service and exchange narrowly defined requests over a secured channel. For unattended tasks, replace dialogs with logs, event notifications, or explicit failure status.
Related errors
ERROR_ACCESS_DENIED can indicate missing access rights to a window station or desktop. Error 1459 says the operation itself requires an interactive station, so granting more rights to a noninteractive station is not sufficient.
Example
A backup service calls MessageBox when removable media is missing. Because the service runs in session 0 on a noninteractive station, the call fails with 1459. Sending a notification to a signed-in tray agent preserves service isolation and presents the prompt in the correct session.
References
- Microsoft: System Error Codes (1300–1699)
- Microsoft: Window Stations
- Microsoft: Process Connection to a Window Station
Looking for a different code? Search another status or error code.