HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "Shell" returns the shell name, usually Explorer.exe. However, it does not contain the path, or identify a particular executable file.
Enumerating the Task List locates the task Explorer.exe.
But what if the user had ran another, unrelated task called Explorer.exe?
What is the best way to determine that a particular instance of Explorer.exe is actually the shell?
I need to avoid confusion between task(s) which are the shell, and tasks which may not be the shell, but share the same name i.e. Explorer.exe