Hallo,
hier mein Quelltext:
<BR>
-----------------<BR>
public void StartIE(string <b>webaddress</b>){<BR><BR>
const uint NORMAL_PRIORITY_CLASS = 0x0020;
bool retValue;
<BR>string Application = "C://Programme/Internet Explorer/IEXPLORE.exe";
<BR>string <b>CommandLine = webaddress</b>;
PROCESS_INFORMATION pInfo = new PROCESS_INFORMATION(); <BR>
STARTUPINFO sInfo = new STARTUPINFO(); <BR>
SECURITY_ATTRIBUTES pSec = new SECURITY_ATTRIBUTES();<BR>
SECURITY_ATTRIBUTES tSec = new SECURITY_ATTRIBUTES();<BR>
retValue = CreateProcess(Application,<b>CommandLine</b>,ref pSec,ref tSec,false,NORMAL_PRIORITY_CLASS,IntPtr.Zero,null, ref sInfo,out pInfo);
<BR><BR>}//end_StartIE
<BR>-----------------
<BR>
Der Browser wird zwar geöffnet, aber nicht mit der übergebenen URL! Was mache ich falsch?
Danke i.V. und Gruß,
ANDI
<BR><BR><BR>
<i>
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);</i>
hier mein Quelltext:
<BR>
-----------------<BR>
public void StartIE(string <b>webaddress</b>){<BR><BR>
const uint NORMAL_PRIORITY_CLASS = 0x0020;
bool retValue;
<BR>string Application = "C://Programme/Internet Explorer/IEXPLORE.exe";
<BR>string <b>CommandLine = webaddress</b>;
PROCESS_INFORMATION pInfo = new PROCESS_INFORMATION(); <BR>
STARTUPINFO sInfo = new STARTUPINFO(); <BR>
SECURITY_ATTRIBUTES pSec = new SECURITY_ATTRIBUTES();<BR>
SECURITY_ATTRIBUTES tSec = new SECURITY_ATTRIBUTES();<BR>
retValue = CreateProcess(Application,<b>CommandLine</b>,ref pSec,ref tSec,false,NORMAL_PRIORITY_CLASS,IntPtr.Zero,null, ref sInfo,out pInfo);
<BR><BR>}//end_StartIE
<BR>-----------------
<BR>
Der Browser wird zwar geöffnet, aber nicht mit der übergebenen URL! Was mache ich falsch?
Danke i.V. und Gruß,
ANDI
<BR><BR><BR>
<i>
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);</i>
Comment