I don't think I'm supposed to see this #12148

Closed
opened 2026-01-31 03:07:27 +00:00 by claunia · 6 comments
Owner

Originally created by @vefatica on GitHub (Jan 22, 2021).

image
Here's how it came to be.

Scheduled task:
"WTElevated" run_on_demand, highest priveleges, action: C:\Users\vefatica\AppData\Local\Microsoft\WindowsApps\wt.EXE

Then from any Windows shell in WT,

schtasks.exe /run /tn WTElevated

That window is:

Handle:  0x00140470
Process: 2380
Module:  N/A
Class:   PseudoConsoleWindow
Title:   [none]
Enabled: Yes
Visible: Yes
Show:    NORMAL
LTRB:    380 74 516 113

It's from the elevated WT that was started:

01/22  15:36:37.794   8888   6724        0.953      73.0  WindowsTerminal.exe
01/22  15:36:37.916   9168   1120        0.016      12.4  RuntimeBroker.exe
01/22  15:36:37.992   2380   8888        0.031       9.1  OpenConsole.exe
01/22  15:36:37.995   6680   8888        0.156      33.2  tcc.exe

If I "X" it, it disappears, OpenConsole.exe keeps running, and the elevated WT/TCC session remains intact.

Originally created by @vefatica on GitHub (Jan 22, 2021). ![image](https://user-images.githubusercontent.com/61856645/105541827-5f795800-5cc6-11eb-89fa-de55e36c7d14.png) Here's how it came to be. Scheduled task: "WTElevated" run_on_demand, highest priveleges, action: C:\Users\vefatica\AppData\Local\Microsoft\WindowsApps\wt.EXE Then from any Windows shell in WT, `schtasks.exe /run /tn WTElevated` That window is: ``` Handle: 0x00140470 Process: 2380 Module: N/A Class: PseudoConsoleWindow Title: [none] Enabled: Yes Visible: Yes Show: NORMAL LTRB: 380 74 516 113 ``` It's from the elevated WT that was started: ``` 01/22 15:36:37.794 8888 6724 0.953 73.0 WindowsTerminal.exe 01/22 15:36:37.916 9168 1120 0.016 12.4 RuntimeBroker.exe 01/22 15:36:37.992 2380 8888 0.031 9.1 OpenConsole.exe 01/22 15:36:37.995 6680 8888 0.156 33.2 tcc.exe ``` If I "X" it, it disappears, OpenConsole.exe keeps running, and the elevated WT/TCC session remains intact.
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 03:07:27 +00:00
Author
Owner

@DHowett commented on GitHub (Jan 22, 2021):

This is the result of doing a ShowWindow on the pseudoconsole pseudowindow.

@DHowett commented on GitHub (Jan 22, 2021): This is the result of doing a ShowWindow on the pseudoconsole pseudowindow.
Author
Owner

@DHowett commented on GitHub (Jan 22, 2021):

We could probably fix it, but ... why? :P

@DHowett commented on GitHub (Jan 22, 2021): We could probably fix it, but ... why? :P
Author
Owner

@vefatica commented on GitHub (Jan 22, 2021):

Why is the ShowWindow being done? Normally a PseudoConsoleWindow class window started by WT is not visible.

@vefatica commented on GitHub (Jan 22, 2021): Why is the ShowWindow being done? Normally a PseudoConsoleWindow class window started by WT is not visible.
Author
Owner

@DHowett commented on GitHub (Jan 22, 2021):

Presumably, somebody's calling it. We never show it on our own -- somebody has to be getting the window handle and showing it directly.

@DHowett commented on GitHub (Jan 22, 2021): Presumably, somebody's calling it. We never show it on our own -- somebody has to be getting the window handle and showing it directly.
Author
Owner

@DHowett commented on GitHub (Jan 22, 2021):

(Since that's not one of the console APIs, I can't help you trace it in conhost ;P)

@DHowett commented on GitHub (Jan 22, 2021): (Since that's not one of the console APIs, I can't help you trace it in conhost ;P)
Author
Owner

@vefatica commented on GitHub (Jan 22, 2021):

Hmmm! I wonder who's doing that; it's not me. If I check "Hidden" for the task I still see it (and I still see WT also).

@vefatica commented on GitHub (Jan 22, 2021): Hmmm! I wonder who's doing that; it's not me. If I check "Hidden" for the task I still see it (and I still see WT also).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12148