diff --git a/Source/WindowsShellExtension/dllmain.cpp b/Source/WindowsShellExtension/dllmain.cpp index 53e07725f..f2cad9366 100644 --- a/Source/WindowsShellExtension/dllmain.cpp +++ b/Source/WindowsShellExtension/dllmain.cpp @@ -16,6 +16,13 @@ #define SHELLEXT_GUID "20669675-b281-4c4f-94fb-cb6fd3995545" #endif // MEDIAINFO_QT +//#define MEDIAINFO_DEBUG // Uncomment to view debug printing using https://learn.microsoft.com/en-us/sysinternals/downloads/debugview +#ifdef MEDIAINFO_DEBUG + #define DebugPrintW(...) OutputDebugStringW(wil::str_printf(L##__VA_ARGS__).c_str()) +#else + #define DebugPrintW(...) +#endif // MEDIAINFO_DEBUG + constexpr const wchar_t* menu_entry_title = L"MediaInfo"; constexpr const wchar_t* exe_filename = L"MediaInfo.exe"; @@ -455,13 +462,9 @@ struct ExplorerCommandHandler : public winrt::implements