Attached is a patch that adds the IShellLinkDataList interface to
comtypes.shelllink and a couple of structures that can be used to
change the settings of the console when the link is targetting cmd.

Run into some problem trying to create a
comtypes/test/test_shelllink.py to cover this. I wanted to do
something clever with subprocess, but:

# Running a .lnk precludes piping output from the subprocess, so the
shortcut would have to record its own results.
# Even that's no good for testing the console data block additions, as
the settings of the cmd instance needed to run the .lnk override the
properties set on the shortcut.

If there's a way to run the shortcut without going through cmd that
method might be okay.

For the moment I wrote a few random tests that mostly just poke the
interfaces a bit and serve as a demonstration.

Suggestions for improvements welcome.

Martin

Attachment: comtypes_shelllinkdatalist_wip.diff
Description: Binary data

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to