ShellExecute (shell32)
Last changed: -188.102.225.40

.
Summary
Performs an operation on a specified file.

C# Signature:

[DllImport("shell32.dll", EntryPoint = "ShellExecute")]    
public static extern int ShellExecuteA(int hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd);    

VB Signature:

Declare Function ShellExecuteExW Lib "shell32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

[DllImport("Shell32.dll", CharSet = CharSet.Auto, SetLastError = true)]
static extern IntPtr ShellExecute(IntPtr hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd);

// Example to open a URL
IntPtr result = ShellExecute(IntPtr.Zero, "open", "http://www.google.com", null, null, 1);

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation