[python-win32] Context menu for library
Roger Upole
rupole at hotmail.com
Sat Nov 17 01:52:51 CET 2012
You should be able to get the context menu by creating a shell item
for the library file (using eg shell.SHCreateShellItem), and then
call BindToHandler using BHID_SFUIObject and IID_IContextMenu.
That should result in an IContextMenu object, from which you can
fill in a menu handle using QueryContextMenu. You'd then need to
call IContextMenu.GetCommandString for each item id in the menu
(and probably submenus too).
Roger
<Nitin_Kumar3 at McAfee.com> wrote in message news:99BF678AA9903444947981DA6EE1D9660129D5 at DNVEXAPAC1N2.corp.nai.org...
Hi,
I want to fetch all the context menus for Windows 7 Libraries (Documents,Music,Pictures...).
As for these libraries we can't find any registry as we have shellex entry for files and folders.
Can anyone please let me know how can we can get context menu items using python?
Thanks
Nitin K
[mfe_primary_logo_rgb]
--------------------------------------------------------------------------------
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
More information about the python-win32
mailing list