If you look to registry after switching to Terminal Windows mode, you can see that
GUID will be written with other values:
reg add "HKEY_CURRENT_USER\Console\%%%%Startup" /v "DelegationConsole" /d "{B23D10C0-E52E-411E-9D5B-C09FDF709C7D}" /f
reg add "HKEY_CURRENT_USER\Console\%%%%Startup" /v "DelegationTerminal" /d "{B23D10C0-E52E-411E-9D5B-C09FDF709C7D}" /f
start "Ztree" C:\ZTreeWin\ZTW.EXE /XT /MAX /APIT /OD /SD /ZM /Y
sleep 3
reg add "HKEY_CURRENT_USER\Console\%%%%Startup" /v "DelegationConsole" /d "{2EACA947-7F5F-4CFA-BA87-8F7FBEEFBE69}" /f
reg add "HKEY_CURRENT_USER\Console\%%%%Startup" /v "DelegationTerminal" /d "{E12CFF52-A866-4C77-9A90-F570A7AA2C6B}" /f
So writing those values to registry after launching of Ztree will do it...
BTW Windows decision mode writes all zeros to both GUIDs. Maybe there is some way how to tell in this mode to Windows which Console to use to specific console program, but till now I found no info...
> But this is only ADD key to registry.
> I was not able to set to console mode, then start ztree, then switch
> back to terminal mode