public static void viewPicFromWindows(string pPicPath) { if (pPicPath!="" && System.IO.File.Exists(pPicPath)) { string str = pPicPath; try { Process process = new Process { StartInfo = { FileName = str, Arguments = @"rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen", UseShellExecute = true, WindowStyle = ProcessWindowStyle.Hidden } }; process.Start(); process.Close(); } catch (Exception exception) { } } }
作者:
cglnet
本文版权归cglNet和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.