My guess is that file.doverb always includes SEE_MASK_INVOKEIDLIST in
SHELLEXECUTEINFO's fMask member (Bruce?). This causes the use of a
file's context menu mechanism instead of the registered
"shell\<verb>\command" mechanism. That should be no big deal except
for misbehaving context menu handlers.
A example seems to be "Hex Workshop" (Breakpoint Software). If you
install HexWorks32's context menu handler, it inserts a "Hex Edit with
Hex Workshop" context menu item. With that context menu handler
installed, if I issue file.doverb("file","edit") I get the hex editor
even if <file> has a registered "edit" verb (and "Edit" context menu
item). I'm confident it's not PPro's fault since I can duplicate the
unexpected result in a stand-alone test using ShellExecuteEx() with
SEE_MASK_INVOKEIDLIST. Can anyone with the Hex Workshop context menu
handler verify this? ... try file.doverb("file","edit") on a BAT file
or any file with both "Edit" and "Hex Edit with Hex Workshop" on its
context menu.
I suspect this is because Hex Workshop's context menu handler's
::GetCommandString() doesn't check that the string matches the string
expected by Hex Workshop [when they don't match, Hex Workshop should
refuse to handle the request and Windows will try another context menu
handler]. I very recently mentioned this to Breakpoint Software (no
reply yet).
I have seen misbehaving context menu handlers before. I'm not
suggesting PPro should do anything about this, but two things come to
mind ... an optional "context" (or "no context") flag for
file.doverb() or a separate file.docontext() function.
- Vince
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/