访问量: 34167次,访客数: 29218人,浏览量: 1次 
首页  编辑  

打开Windows运行程序对话框

Tags: /C#/API调用/   Date Created: Tue Jun 10 2008 01:18:08 GMT+0000 (Coordinated Universal Time)

using System . Runtime . InteropServices;

[ DllImport ( "shell32.dll" , EntryPoint = "#61" )]

private static extern int SHRunDialog( IntPtr hOwner, int Unknown1, int Unknown2,

    string szTitle, string szPrompt, int uFlags);

private void button1_Click( object sender , EventArgs e)

{

   SHRundialog(Handle, 0 , 0 , null , null , 2 );

}