| 7 | static WNDPROC g_pfnListViewProc = NULL; |
| 8 | |
| 9 | static LRESULT CALLBACK LogListViewProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { |
| 10 | if (msg == LVM_INSERTITEM) { |
| 11 | LVITEM *item = (LVITEM *)lParam; |
| 12 | if (item && (item->mask & LVIF_TEXT) && item->pszText) { |
| 13 | LogInternal(item->pszText); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | return CallWindowProc(g_pfnListViewProc, hwnd, msg, wParam, lParam); |
| 18 | } |
| 19 | |
| 20 | PLUGIN_METHOD(InitLog) { |
| 21 | PLUGIN_INIT(); |
nothing calls this directly
no test coverage detected