Added comment on how mime type detection works
Cosmectic refactoring of named pipe creation.
Use handle class for HMODULE in custom action. Add back test for immersive case.