Client/Server Runtime Subsystem
≈ 6 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
The Client/Server Runtime Subsystem, or csrss.exe, is a component of the Windows NT family of operating systems that provides the user mode side of the Win32 subsystem. In modern versions of Windows, it is primarily involved with process and thread management, console window handling, side-by-side assembly loading and the shutdown process. Historically, it had also been responsible for window management and graphics rendering, however, these operations have been moved to kernel mode starting with Windows NT 4.0 to improve performance.[1]
CSRSS instances are marked as critical processes, meaning that terminating one will crash the system, if the critical status is removed and one is terminated, the system will freeze. Built-in process management tools in most Windows versions will also refuse to kill instances of CSRSS. Under normal operation, there is a CSRSS instance for each session (two in Windows Vista and newer, one in earlier versions,[2] both assuming there are no active RDP connections which spawn extra sessions).
Technical details
edit edit sourceCSRSS runs as a user-mode system service. When a user-mode process calls a function involving console windows, process/thread creation, or side-by-side support, instead of issuing a system call, the Win32 libraries (kernel32.dll, user32.dll, gdi32.dll) send an inter-process call to the CSRSS process which does most of the actual work without compromising the kernel.[3] Window manager and GDI services are handled by a kernel mode driver (win32k.sys) instead.[4]
CSRSS is called along with winlogon.exe from smss.exe at Windows start-up. If either of the files is corrupted or otherwise inaccessible, SMSS will tell the kernel to shut down the start-up process with a Blue screen of death.[5] The error code for this fault is 0xc000021a (STATUS_SYSTEM_PROCESS_TERMINATED).
In Windows 7 and later, instead of drawing console windows itself, CSRSS spawns conhost.exe subprocesses to draw console windows for command line programs with the permissions of that user.
Malware hoaxes
edit edit sourceThere are numerous virus hoaxes that claim that csrss.exe is malware and should be removed to prevent damage to the system; these are false, as removing csrss.exe or killing the csrss.exe process will result in a system crash in Windows applications.
In addition, technical support scammers pretending to be Microsoft representatives are known to use csrss.exe as "proof" of a virus infection, and convince the user being scammed into purchasing their rogue security software to remove it.[6]
See also
edit edit sourceReferences
edit edit source- ^ "The Windows NT 4.0 Kernel mode change". MS Windows NT Kernel-mode User and GDI White Paper. Microsoft. Retrieved 2009-01-19.
- ^ "Inside the Windows Vista Kernel – Startup Processes". Microsoft. Retrieved 2010-10-01.
- ^ "Detailed implementation of a system service in Windows NT". Undocumented Windows NT. Archived from the original on 2011-07-17. Retrieved 2010-06-10.
- ^ Russinovich, Mark (2009). Windows Internals, 5th Edition. Microsoft Press. p. 54.
- ^ "How to troubleshoot a "STOP 0xC000021A" error in Windows XP or Windows Server 2003". support.microsoft.com. Retrieved 2020-03-15.
- ^ Cimpanu, Catalin (Jan 22, 2016). "Symantec Disavows Business Partner Caught Running a Tech Support Scam". Softpedia. Retrieved July 29, 2016.
External links
edit edit source Microsoft Windows components- APIs
- Architecture
- Booting process
- Games
tools
- App Installer
- Command Prompt
- Control Panel
- Device Manager
- DirectX Diagnostic Tool
- Disk Cleanup
- Drive Optimizer
- Driver Verifier
- Event Viewer
- IExpress
- Management Console
- Netsh
- Performance Monitor
- PowerShell
- Recovery Console
- Resource Monitor
- Settings
- Sysprep
- System Configuration
- System File Checker
- System Information
- System Policy Editor
- System Restore
- Task Manager
- Windows Backup
- Windows Error Reporting
- Windows Ink
- Windows Installer
- Windows Update
- WinRE
- WMI
- Calculator
- Calendar
- Camera
- Character Map
- City Art Search
- Clipchamp
- Clock
- Company Portal
- Copilot
- Edge
- Fax and Scan
- Feedback Hub
- Get Help
- Magnifier
- Media Player
- Mesh
- Messaging
- Mobility Center
- Money
- Movies & TV
- Narrator
- News
- Notepad
- OneDrive
- OneNote
- Paint
- PC Manager
- People
- Phone Link
- Photos
- Quick Assist
- Remote Desktop Connection
- Snipping Tool
- Sound Recorder
- Speech Recognition
- Sticky Notes
- Store
- Terminal
- To Do
- Weather
- Whiteboard
- Windows App
- Xbox
- Active Directory
- Active DRM Services
- DFS Replication
- Distributed Transaction Coordinator
- DNS
- Domains
- Folder redirection
- Group Policy
- Hyper-V
- IIS
- MSMQ
- Network Access Protection
- Print Services for UNIX
- PWS
- Remote Desktop Services
- Remote Differential Compression
- Remote Installation Services
- Roaming user profiles
- Server Core
- SharePoint
- System Resource Manager
- Windows Deployment Services
- Windows Media Services
- WSUS
- Boot Manager
- Console
- CSRSS
- Desktop Window Manager
- Enhanced Write Filter
- Graphics Device Interface
- Hardware Abstraction Layer
- I/O request packet
- Imaging Format
- Kernel Transaction Manager
- Library files
- Logical Disk Manager
- LSASS
- MinWin
- NTLDR
- Ntoskrnl.exe
- Object Manager
- Open XML Paper Specification
- Portable Executable
- Registry
- Resource Protection
- Security Account Manager
- Server Message Block
- Shadow Copy
- SMSS
- System Idle Process
- USER
- WHEA
- Winlogon
- WinUSB
Microsoft Store
Text derived from https://en.wikipedia.org/w/index.php?oldid=1373508189 under CC BY-SA 4.0; modifications have been made.