Discussion:
ShellExecuteEx fails for long arguments
(too old to reply)
Ashutosh
2008-06-24 23:32:47 UTC
Permalink
Hi,
Is there any limit for the arguments size when using ShellExecuteEx ? It
fails if the argument is very long (beyond 1024 chars).


Regards,
Ashutosh
M. Shoaib Surya
2008-06-25 07:07:24 UTC
Permalink
"If you are using the ShellExecute/Ex function, then you become subject to
the INTERNET_MAX_URL_LENGTH (around 2048) command line length limit imposed
by the ShellExecute/Ex functions."
http://blogs.msdn.com/oldnewthing/archive/2003/12/10/56028.aspx

"The lpFile member of the SHELLEXECUTEINFO structure passed in this
function's only parameter may not exceed INTERNET_MAX_URL_LENGTH characters"
http://msdn.microsoft.com/en-us/library/bb759845.aspx


Regards,
Shoaib.
Post by Ashutosh
Hi,
Is there any limit for the arguments size when using ShellExecuteEx ? It
fails if the argument is very long (beyond 1024 chars).
Regards,
Ashutosh
Ashutosh Bhawasinka
2008-06-25 11:07:28 UTC
Permalink
Thanks!
Post by M. Shoaib Surya
"If you are using the ShellExecute/Ex function, then you become subject to
the INTERNET_MAX_URL_LENGTH (around 2048) command line length limit imposed
by the ShellExecute/Ex functions."
http://blogs.msdn.com/oldnewthing/archive/2003/12/10/56028.aspx
"The lpFile member of the SHELLEXECUTEINFO structure passed in this
function's only parameter may not exceed INTERNET_MAX_URL_LENGTH characters"
http://msdn.microsoft.com/en-us/library/bb759845.aspx
Regards,
Shoaib.
Post by Ashutosh
Hi,
Is there any limit for the arguments size when using ShellExecuteEx ? It
fails if the argument is very long (beyond 1024 chars).
Regards,
Ashutosh
Loading...