MCPcopy Create free account
hub / github.com/MediaArea/MediaInfo / GetIcon

Function GetIcon

Source/WindowsShellExtension/dllmain.cpp:434–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432 }
433
434 IFACEMETHODIMP GetIcon(_In_opt_ IShellItemArray* items, _Outptr_ PWSTR* icon) {
435 // Provide icon for display in File Explorer context menu entry
436 // Get path to application exe and use it as source for icon
437 UNREFERENCED_PARAMETER(items);
438 std::filesystem::path module_path{ wil::GetModuleFileNameW<std::wstring>(wil::GetModuleInstanceHandle()) };
439 module_path = module_path.remove_filename();
440 module_path /= exe_filename;
441 return SHStrDupW(module_path.c_str(), icon);
442 }
443
444 IFACEMETHODIMP GetToolTip(_In_opt_ IShellItemArray* items, _Outptr_ PWSTR* infoTip) {
445 UNREFERENCED_PARAMETER(items);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected