RegisterShellExtContextMenuHandler
Es gibt ein paar gut dokumentierte Beispiele zum Entwickeln einer eigenen Explorer-Shellerweiterung (Kontextmenü).
Klassischerweise wird die Erweiterung so registriert (Ausschnitt):
Die Fileextension (hier ".cpp") betrifft jedoch immer automatisch einen Filetyp / Schlüssel in HKEY_CLASSES_ROOT.
Wie kann ich die Dll für HKEY_CLASSES_ROOT\SystemFileAssociations\Image registrieren?
Wäre der Code:
dann richtig?
Gruß Peter
Klassischerweise wird die Erweiterung so registriert (Ausschnitt):
// Register the context menu handler. The context menu handler is
// associated with the .cpp file class.
hr = RegisterShellExtContextMenuHandler(L".cpp",
CLSID_FileContextMenuExt,
L"CppShellExtContextMenuHandler.FileContextMenuExt");
Die Fileextension (hier ".cpp") betrifft jedoch immer automatisch einen Filetyp / Schlüssel in HKEY_CLASSES_ROOT.
Wie kann ich die Dll für HKEY_CLASSES_ROOT\SystemFileAssociations\Image registrieren?
Wäre der Code:
hr = RegisterShellExtContextMenuHandler(L"SystemFileAssociations\Image",
…
Gruß Peter
Please also mark the comments that contributed to the solution of the article
Content-Key: 373070
Url: https://administrator.de/contentid/373070
Printed on: April 19, 2024 at 20:04 o'clock
1 Comment