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_kum...@mcafee.com> wrote in message 
news:99bf678aa9903444947981da6ee1d966012...@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@python.org
> http://mail.python.org/mailman/listinfo/python-win32
> 



_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to