Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than kernel32, prefix the name with the module name and a period.
<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
Unit u=new Unit();
WinExec("control timedate.cpl",u); // will show the time and date settings window
Alternative Managed API:
Do you know one? Please contribute it!!
The WinExec API
5/28/2022 11:08:23 PM - -183.87.197.27
TODO - a short description of this collection of constants
4/6/2012 12:59:20 AM - anonymous
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).