CommandLine wirkungslos bei CreateProcess() !?

Hallo,
hier mein Quelltext:

public void StartIE(string webaddress){

const uint NORMAL_PRIORITY_CLASS = 0x0020; bool retValue;
string Application = „C://Programme/Internet Explorer/IEXPLORE.exe“;
string CommandLine = webaddress;

PROCESS_INFORMATION pInfo = new PROCESS_INFORMATION();
STARTUPINFO sInfo = new STARTUPINFO();
SECURITY_ATTRIBUTES pSec = new SECURITY_ATTRIBUTES();
SECURITY_ATTRIBUTES tSec = new SECURITY_ATTRIBUTES();

retValue = CreateProcess(Application,CommandLine,ref pSec,ref tSec,false,NORMAL_PRIORITY_CLASS,IntPtr.Zero,null,ref sInfo,out pInfo);

}//end_StartIE

Der Browser wird zwar geöffnet, aber nicht mit der übergebenen URL! Was mache ich falsch?

Danke i.V. und Gruß,
Beanpole

P.S. Über der Funktion steht natürlich folgendes:

[DllImport(„kernel32.dll“)]

static extern bool CreateProcess(string lpApplicationName,string lpCommandLine, ref SECURITY_ATTRIBUTES lpProcessAttributes, ref SECURITY_ATTRIBUTES lpThreadAttributes, bool bInheritHandles,uint dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory,[In] ref STARTUPINFO lpStartupInfo,out PROCESS_INFORMATION lpProcessInformation);

hi

wieso nimmst du nicht die managed class, statt über die Windows API zu gehen?

System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo = new System.Diagnostics.ProcessStartInfo("IEXPLORE.EXE", "http://www.wer-weiss-was.de");
p.Start();

gruss

Schau Dir die Doku nochmal genau an. Um Paramter (wie die URL) zu übergeben, gibt es eine eigene Eigenschaft.

(Und ich hät den Code auch nicht „unmanagement“ laufen lassen …)

Chris