--- In [email protected], "brucexs" <bswit...@...> wrote: > > --- In [email protected], "qzzyyx" <BlackHole@> wrote: > > > > I have a PowerPro button: > > > > Command: d:\tcmd9\tcc.exe > > Start: Hidden > > Parameters: /c start > > > %...@regquery["HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\ProjectMRUList\File1"] > > > > TCC.EXE is the second-latest version of what was the 4NT command > > interpreter. My PowerPro button effectively starts Microsoft's DevEnv > > with my last project active. > > > > But if there's already an instance of d:\tcmd9\tcc.exe running, and I > > click the PowerPro button, the running instance becomes hidden (and > > the desired task gets gone, so I suspect PowerPro is also starting a > > new, hidden, instance). > > > > Even stranger, if an instance of d:\tcmd10\tcc.exe, a newer version, > > is running, the same thing happens. > > > > I don't think TCC.EXE does any DDE (i.e., you can't give a command to > > an already running instance). So what's happening? Is PowerPro doing > > exactly what I said (starting a new instance) and, in the process, > > hiding every instance of any TCC.EXE it can find? > > > > In any event, how can I stop that? > > > > Thanks. > > > > - Vince > > > > If you are not using "switch-to-if-active", then I believe that all > PowerPro is doing is using the Windows system routine "ShellExecuteEx" > to run the command line; the hidden parameter is just passed onto this > routine which has an equivalent flag.
According to WinDbg, PowerPro **is** calling ShowWindow() with the handle of the existing instance and with the SW_HIDE parameter. Why is it doing that?
