Tried several times, always exactly the same though...
I have not found the pattern yet (might involve a reboot), but once it shows the correct icon it nevers goes back to the XY icon, until I install a new XY version which always starts with the wrong icon for a while (some hours...). Mystery...
Just to make sure: I did not code anything about icons here.
Any news about that ?
I have the same behaviour and I have never seen the original command prompt icon...
Thought that was solved, but when I just checked, all I got was the wrong icon. (though just after installing the new beta, so I might check again tomorrow)
Checked it again after a fresh boot (&before installing the new beta)
-> still the wrong icon and in the background
Last edited by RalphM on 30 May 2007 20:38, edited 1 time in total.
Ralph
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)
Any news about that ?
I have the same behaviour and I have never seen the original command prompt icon...
This is a strange thing. There's some random factor in it that's certainly not coming from my code. I see the correct icon always since months, so I thought the case was solved. Sorry, no idea.
FWIW I am also seeing this behavior. If I examine the cmd process with SysInternals Process Explorer (ProcExp) there's a slightly different right-click menu behavior for these cmd processes than a standard cmd.exe process - for a normal cmd.exe, ProcExp has a context menu ("Window") that will let you bring it's window to the foreground, minimize, maximize, etc. For an XY-started cmd process, the "Window" menu item is disabled.
So it seems there's something different about the console window for these cmd processes.
Also, in case it matters, the cmd window that XY starts does not come up with the focus - it seems to me that it should, but I'm not sure if that's really how it should work.
May I ask how the cmd process is started (CreateProcess, ShellExec, or some other method) and what parameters are used? (I hope this is not proprietary info - obviously ignore if it is).
mwb1100 wrote:May I ask how the cmd process is started (CreateProcess, ShellExec, or some other method) and what parameters are used? (I hope this is not proprietary info - obviously ignore if it is).
AllocConsole, SetConsoleTitle, CreateProcessA
I do NOT set these:
lpStartupInfo.dwFlags = STARTF_USESHOWWINDOW 'use the wShowWindow parameter
lpStartupInfo.wShowWindow = SW_SHOW 'set it
mwb1100 wrote:May I ask how the cmd process is started (CreateProcess, ShellExec, or some other method) and what parameters are used? (I hope this is not proprietary info - obviously ignore if it is).