Unicode-aware file shortcuts in Windows

"Martin v. Löwis" martin at v.loewis.de
Sat Sep 17 10:48:45 EDT 2005


John Bauman wrote:
> I see that another way is available here: 
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_int/shell_int_programming/shortcuts/shortcut.asp
> I haven't tried, and I don't have the knowledge to convert the C++ to 
> Python, but it works at a lower level and may get around the bugs. It does 
> seem that the name of the file isn't Unicode in their method, either, so I'm 
> not sure if it'll work. 

There are two versions of the IShellLink interface: IShellLinkA and
IShellLinkW. You need to use the *W version to pass characters outside
the ANSI code page.

Regards,
Martin



More information about the Python-list mailing list