View Single Post
  #1  
Old January 15th 07, 11:00 AM posted to microsoft.public.windowsxp.general,microsoft.public.win98.shell,microsoft.public.cs.windows,microsoft.public.dotnet.general,microsoft.public.win32.programmer.gdi
external usenet poster
 
Posts: n/a
Default How to avoid SendTo max-param-len limitation

hello

I write a little program, that receive as parameters some filepaths and use
them. The program will be "put" into SendTo menu and be available from
RightClick-SendTo menu.

The problem is that Windows execs programs in SendTo with ShellExecute witch
can send max 2048 char in WinXP and arownd 260 in Win95. This is a very big
and unexpected limitation.

Anyone knows how to avoid this ?

All programs in my SendTo menu are subject of this limitation except
Compressed (zipped) Folder,Mail Recipient. Windows seems to avoid this limit
by creating and asociating a new extension (ex: .ZFSendToTarget) and making
some triks into the registry. But I cant figure what is going on and how to
implement something like this...

[HKEY_CLASSES_ROOT\.ZFSendToTarget]
@="CLSID\\{888DCA60-FC0A-11CF-8F0F-00C04FD7D062}"

[HKEY_CLASSES_ROOT\.ZFSendToTarget\PersistentHandle r]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"


[HKEY_CLASSES_ROOT\CLSID\{888DCA60-FC0A-11CF-8F0F-00C04FD7D062}]
DefaultIcon
(default) = %SystemRoot%\system32\zipfldr.dll
InProcServer32
(default) = %SystemRoot%\system32\zipfldr.dll
ThreadingModel = Apartment
ShellEx/DropHandler
(default) = {888DCA60-FC0A-11CF-8F0F-00C04FD7D062}


i'm a little bit stuck and any help will be great ....
thanks