The code doesn't seem to work. It doesn't list everything and it definitely is not working in Windows 8. I have emailed Mark @ sysinternals and asked him if he could show me a sample. So far, no answer.
This problem seems impossible to solve! Such a simple task, so impossible, so complex and NO ONE can do it.