@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The WinExec API !!!!C# Signature: [DllImport("kernel32.dll")] static extern uint WinExec(string lpCmdLine, uint uCmdShow); !!!!VB.NET Signature: <DllImport("kernel32.dll")> _ Public Function WinExec(ByVal lpCmdLine As String, ByVal uCmdShow As System.UInt32) As System.UInt32 End Function !!!!User-Defined Types: None. !!!!Notes: None. !!!!Tips & Tricks: VB.NET does not have many boolean operators defined to allow you to use or convert to the System.UInt32 type. See the topic entitled "Decimal to UInt32 Conversion" in the .NET Framework Class Library on MSDN. !!!!Sample Code: For VB.NET: Dim SW_HIDE As System.UInt32 = Decimal.ToUInt32(0) Dim SW_SHOW As System.UInt32 = Decimal.ToUInt32(5) WinExec(strFilename, SW_SHOW) For C#.NET: Unit u=new Unit();//edit by m.r.Chabi WinExec("control timedate.cpl",u); // will show the time and date settings window !!!!Alternative Managed API: Do you know one? Please contribute it!! Documentation: WinExec@msdn on MSDN
Edit kernel32.WinExec
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.