| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected