CairoDesktop.DesktopIcons.ShowOpenWithDialog C# (CSharp) Method

ShowOpenWithDialog() private method

Calls the Windows OpenWith dialog (shell32.dll) to open the file specified.
private ShowOpenWithDialog ( string fileName ) : void
fileName string Path to the file to open
return void
        private void ShowOpenWithDialog(string fileName)
        {
            System.Diagnostics.Process owProc = new System.Diagnostics.Process();
            owProc.StartInfo.UseShellExecute = true;
            owProc.StartInfo.FileName = Environment.GetEnvironmentVariable("WINDIR") + @"\system32\rundll32.exe";
            owProc.StartInfo.Arguments =
                @"C:\WINDOWS\system32\shell32.dll,OpenAs_RunDLL " + fileName;
            owProc.Start();
        }