ODBG_Pluginmainloop
From OllyDbg Plugin API
Optional callback function. If present, OllyDbg will call it on each pass of main loop. Here you can do all your periodical tasks. Don't assume that calls are equidistant; they aren't. Do not export this function unnecessarily, as this may negatively influence the overall speed!
void ODBG_Pluginmainloop(DEBUG_EVENT *debugevent);
Parameters:
debugevent - pointer to debug event received by call to Windows API function WaitForDebugEvent, or NULL if there was no event.