Je suis quelque chose.
d'abord un article: http://www.askvg.com/how-to-customize-windows-explorer-command-bar que j'ai trouvé la recherche de {5c4f28b5-f869-4e84-8e60-f11db97c5cc7}
qui est le FolderType CLSID pour Générique.
Vous trouverez ceux du registre Windows dans HKEY_LOCAL_MACHINE
sous la clé:
SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes
Lire l'article il est assez instructif! Mais si vous voulez avoir un code déjà:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\TasksNoItemsSelected]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\TasksNoItemsSelected\0]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\TasksNoItemsSelected\0\{E7E304C4-3C99-49BD-9E5F-980D15103C50}]
"Icon"="C:\\Windows\\System32\\shell32.dll,3"
"InfoTip"="some bla bla "
"Title"="a button!"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\TasksNoItemsSelected\0\{E7E304C4-3C99-49BD-9E5F-980D15103C50}\shell]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\TasksNoItemsSelected\0\{E7E304C4-3C99-49BD-9E5F-980D15103C50}\shell\InvokeTask]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\TasksNoItemsSelected\0\{E7E304C4-3C99-49BD-9E5F-980D15103C50}\shell\InvokeTask\command]
@="\"C:\\Users\\DUMMYUSER\\hello.exe\""
Rigth au milieu que vous avez un CLSID aléatoire créé avec le Titre aka texte du bouton ou de l'étiquette, InfoTip qui apparaît lors du survol avec le curseur et Icône qui malheureusement ne fonctionne pas. A la fin, il y a la commande à exécuter. Changez ceux-ci à votre désir, enregistrez-le en tant que * .reg et lancez-le.
Il faut dire un peu: ne fonctionne pas sur les utilisateurs non-administrateurs! J'ai essayé mais il semble que vous ne pouvez pas simplement remplacer HKEY_LOCAL_MACHINE
avec HKEY_CURRENT_USER
.
Quelle version de Windows? XP ou Vista? – onnodb
Oh, j'ai oublié de mentionner que ..... Je cherche à ajouter un bouton à Vista et 7 toolbands. Le IShellBrowser SetToolbarItems() fonctionne uniquement avec XP. Je viens de trouver celui-là hier et j'ai oublié de mettre à jour la question. Pourtant, je cherche la méthode appropriée pour manipuler les barres d'outils Vista et 7, le cas échéant .... –