doc/docs/technical-documentation/wslhost.exe.md
wslhost.exe is a Windows executable that's used to display desktop notifications, and run Linux processes in the background.
When running as COM server, wslhost.exe registers a NotificationActivatorFactory, which is then used to display desktop notifications to the user.
Notifications can be used to:
See: src/windows/common/notifications.cpp
When wsl.exe terminates before the associated Linux process terminates, wslhost.exe takes over the lifetime of the Linux process.
This allows Linux processes to keep running Windows commands and access the terminal even after the associated wsl.exe terminates.
See src/windows/wslhost/main.cpp and interop