Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.computer > #10096

Re: Win7 Q: Task Host Window???

From VanguardLH <V@nguard.LH>
Newsgroups alt.computer
Subject Re: Win7 Q: Task Host Window???
Date 2016-12-04 04:02 -0600
Organization Usenet Elder
Message-ID <eai7t2Fi5iU1@mid.individual.net> (permalink)
References <7PQ0A.291883$OG2.289002@fx40.iad>

Show all headers | View raw


Robert Baer <robertbaer@localnet.com> on 2016/12/04 wrote:

> All of a sudden at shutdown, NO programs running, i get this stupid
> Task Host Window message saying it needs to be ended/shut down first.
> 
> 
> Please enlighten me on this junk as how to fix it. I see that there
> is a LOT of discussion on this and so far, nobody has found a truly
> permanent solution (other than wiping HD and starting from scratch). 
> 
> I see that Win8 had the same problem after update to 8.1. I wonder if
> un-declared Win7 update did similar dirt? 

Taskhost is a helper application.  From an online search:

  The taskhost.exe is a Task Host which is a generic Host Process for 
  Windows 7 32-bit Services. The full path to this file should be shown 
  in TUT as C:\Windows\System32\Taskhost.exe. TASKHOST is a generic 
  process which acts as a host for processes that run from DLLs rather 
  than EXEs.

Instead of loading an .exe to load a program, the program is contained
within a DLL (dynamic linked library).  This is a file full of methods
(functions) that other programs can call.  It may have a main() entry
point which can execute code when the .dll gets loaded into memory but
not all DLLs have one.  What taskhost can do is call a function within
the DLL to run that method.

Any program can use taskhost to execute code from within a .dll file.
Services are supposed to be designed to not require any user interface;
that is, services run as hidden processes (often rolled together into
the svchost.exe process).  So if a service needs to provide a GUI for
the user at some point, it can use taskhost to run a method from a DLL
for the product for which that service got created.  For example, I have
a taskhost.exe process loaded (but that doesn't mean it is running
anything, only that it got called as some point as a helper program).
When I use SysInternals' Process Explorer to look at the properties of
taskhost.exe (under the Image tab), all I see is that services.exe had
loaded taskhost.exe.  There are a ton of processes grouped (owned) by
the services.exe process.  Because those services or background
processes can consume a lot of CPU at times, you will sometimes see
taskhost.exe using a lot of CPU cycles.  Here is some info found online:

  TASKHOST is a generic process which acts as a host for processes that 
  run from DLLs rather than EXEs. At startup TASKHOST checks the 
  Services portion of the Registry to construct a list of DLL-based 
  services that it needs to load, and then loads them. There can be many 
  instances of TASKHOST running, as there will be one instance of 
  TASKHOST for every DLL-based service or grouping of services (the 
  grouping of services is determined by the programmers who wrote the 
  services in question).
  
taskhost.exe is known as the "Host Process for Windows Tasks".  Using
that string, online search can find many articles, like:

http://www.howtogeek.com/269307/what-is-host-process-for-windows-tasks-and-why-are-so-many-running-on-my-pc/

rundll32.exe does the same thing: runs a method from DLL.  I don't know
why they need both taskhost.exe and rundll32.exe.  Perhaps rundll32.exe
is a simpler method caller than taskhost.exe.

So you have some program or its service that uses taskhost to call a
method from a DLL instead of providing its own .exe file to do the same.
You can use SysInternals' Process Explorer to look at the command line
used to load taskhost to see what were the arguments (what .dll file and
what method called from it).  The method taskhost was told from the DLL
file might not be responding to a shutdown request.  Typically the
methods are not full-blown programs so they may hang, crash, or become
unresponsive when they error or simply not respond or do so quickly
enough when the OS requests them to unload.  After all, the actual
parent program is taskhost.exe, not the method it called.  Taskhost is
probably not designed to perform a full-blown program and the method
should be doing the response to the OS request to shutdown.

There is no way that you never have any programs running in Windows.
There is, of course, Windows itself but you also have many services and
background tasks running.

Malware can call itself anything, like taskhost.exe.  The official file
should be under the System32 folder but it is also possible it has been
replaced.  I don't know if it is a system-protected file (I would hope
so) that SFC or an in-place upgrade (Repair) would fix.

> Geez, even Win10 has this !

Which points to a common denominator: the user who installs the same
program in both versions of Windows, or does an upgrade from Win7/8 to
Win10 while toting along all the pollution from the old setup instead of
doing a fresh install of Win10.

Back to alt.computer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Win7 Q: Task Host Window??? Robert Baer <robertbaer@localnet.com> - 2016-12-04 00:52 -0800
  Re: Win7 Q: Task Host Window??? Paul <nospam@needed.invalid> - 2016-12-04 04:29 -0500
    Re: Win7 Q: Task Host Window??? Robert Baer <robertbaer@localnet.com> - 2016-12-05 14:36 -0800
  Re: Win7 Q: Task Host Window??? VanguardLH <V@nguard.LH> - 2016-12-04 04:02 -0600

csiph-web