Why Invoke ShellExecute in a installer get SE_ERR_ACCESSDENIED?
From: bassil (bassil_at_discussions.microsoft.com)
Date: 08/22/05
- Next message: Nicole Calinoiu: "Re: StreamWriter causes SecurityException when attempting to write to network drive..need help"
- Previous message: Nicole Calinoiu: "Re: Sandboxing AppDomain"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 22 Aug 2005 08:51:21 -0700
hi,
I invoke ShellExecute in a installer class return ok when pass in a local
folder.
However I always get SE_ERR_ACCESSDENIED if pass in a url?
[DllImport("shell32.dll")]
public static extern int ShellExecute(IntPtr hWnd,
string lpszOp, string lpszFile,
string lpszParams, string lpszDir,int FsShowCmd);
nRet = ShellExecute((IntPtr)0, "OPEN", "c:\\dir",null, null, 1);
return ok, how ever following always get SE_ERR_ACCESSDENIED
nRet = ShellExecute((IntPtr)0, "OPEN",
"http://localhost/aspnetsamples",null, null, 1);
any idea?
Thanks in advance!
Bassil
- Next message: Nicole Calinoiu: "Re: StreamWriter causes SecurityException when attempting to write to network drive..need help"
- Previous message: Nicole Calinoiu: "Re: Sandboxing AppDomain"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]