Updated to not rely on rundll32.exe any more.