Use GetLastError when ShellExecuteEx fails.