HFS-ConsoleHide2Tray is a tool for managing the console of HTTP File Server version 3 (HFS 3), enabling its minimization to the system tray. Reliably hides the HFS console using Named Pipes. Consists of two components:
- HFS Plugin (retrieves and transmits window handles).
- Native Application (C++ tray manager).
No installation required — operates in portable mode.
- Automatically hides the console when the app starts.
- Quick visibility toggle via the tray icon:
- Double left-click.
- Context menu: "Hide/Show HFS Console".
- Windows 11 ConPTY support (CASCADIA_HOSTING_WINDOW_CLASS). Handles HWND changes when dragging console tabs.
- Architecture:
- Agent: HFS plugin in JavaScript (Node.js).
- Tray Manager: Native C++ application.
- System Integration:
- WinAPI for window management (
ShowWindow). - Shell API for tray operations (
Shell_NotifyIcon). - Windows message processing (
WndProc).
- WinAPI for window management (
- Security:
- Works exclusively with local HFS processes.
- No network calls.
- Libraries:
user32.lib(window management)Shell32.lib(system tray)
sequenceDiagram
participant HFS
participant Plugin
participant TrayApp
participant WinAPI
HFS->>Plugin: Initialization
Plugin->>PowerShell: Get HWND
PowerShell->>WinAPI: GetConsoleWindow()
WinAPI-->>Plugin: Window handle
Plugin->>Named Pipe: Create server
loop On each interaction
alt Invalid HWND
TrayApp->>Named Pipe: GET_HWNDS request
Named Pipe-->>TrayApp: HWND (0x...)
TrayApp->>WinAPI: Verify IsWindow()
end
end
TrayApp->>WinAPI: ShowWindow(SW_HIDE/SW_SHOW)
- Copy the plugin folder to
\pluginsin your HFS directory. - Activate the plugin via the HFS web interface.
- Server:
- HTTP File Server v3
- Installed ConsoleHide2Tray-agent plugin.
- Client:
- Windows 7 or newer.
Support:
- BTC:
bc1qeuq7s8w0x7ma59mwd4gtj7e9rjl2g9xqvxdsl6 - TON:
UQAOQXGtTi_aM1u54aQjb8QiXZkQdaL9MDSky5LHN0F5-yF2
