Call iexplore and open an specific url from another program? CompactFramework

  • Thread starter Thread starter Eduardo S.E. de Castro
  • Start date Start date
E

Eduardo S.E. de Castro

Hi
Can some one help me?
I´m using CompactFrameWork and C#.
I did a method that open iexplore from my app, but I don't know how can
I force iexplore open an url that I choose, I tried "iexplore www.somethig",
it doesn't work.

Thanks
 
You pass the URL as a parameter in the CreateProcess PInvoke:

[DllImport("Coredll.dll")]
private extern static int CreateProcess(string pszImageName, string
pszCmdLine, IntPtr psaProcess, IntPtr psaThread, bool fInheritHandles, int
fdwCreate, IntPtr pvEnvironment, IntPtr pszCurDir, IntPtr psiStartInfo,
IntPtr pProcInfo);

CreateProcess("iexplore", "http://www.opennetcf.org/", IntPtr.Zero,
IntPtr.Zero, false, 0, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
 
Back
Top