Hello you all,
for everyone who likes to know the solution this is what i was able to find
greetz
[StructLayout(LayoutKind.Sequential)]
public class SHELLEXECUTEINFO
{
public int cbSize;
public int fMask;
public int hwnd;
[MarshalAs(UnmanagedType.LPWStr)]
public string lpVerb;
[MarshalAs(UnmanagedType.LPWStr)]
public string lpFile;
[MarshalAs(UnmanagedType.LPWStr)]
public string lpParameters;
[MarshalAs(UnmanagedType.LPWStr)]
public string lpDirectory;
public int nShow;
public int hInstApp;
public int lpIDList;
public string lpClass;
public int hkeyClass;
public int dwHotKey;
public int hIcon;
public int hProcess;
}
[DllImport("Shell32.dll", CharSet=CharSet.Auto)]
public static extern int ShellExecuteEx (SHELLEXECUTEINFO shinfo);
private const int SW_SHOW = 5;
private const int SEE_MASK_INVOKEIDLIST = 0x0C;
private void Form1_Load(object sender, System.EventArgs e)
{
SHELLEXECUTEINFO shInfo = new SHELLEXECUTEINFO();
shInfo.cbSize = Marshal.SizeOf(typeof(SHELLEXECUTEINFO));
shInfo.lpFile = @"c:\windows\notepad.exe";
shInfo.nShow = SW_SHOW;
shInfo.fMask = SEE_MASK_INVOKEIDLIST;
shInfo.lpVerb = "properties";
ShellExecuteEx (shInfo);
}