Example #1
0
static void GetObjectDescription(DBEVENTINFO *dbei, TCHAR* str, int cbStr)
{
	switch(dbei->eventType) {
	case EVENTTYPE_MESSAGE:
		GetMessageDescription(dbei, str, cbStr);
		break;

	case EVENTTYPE_URL:
		GetUrlDescription(dbei, str, cbStr);
		break;

	case EVENTTYPE_FILE:
		GetFileDescription(dbei, str, cbStr);
		break;

	default:
		DBEVENTTYPEDESCR *et = (DBEVENTTYPEDESCR*)CallService(MS_DB_EVENT_GETTYPE, (WPARAM)dbei->szModule, (LPARAM)dbei->eventType);
		if (et && (et->flags & DETF_HISTORY))
			GetMessageDescription(dbei, str, cbStr);
		else
			*str = 0;
}	}
Example #2
0
void EventList::GetObjectDescription( DBEVENTINFO *dbei, TCHAR* str, int cbStr )
{
	GetMessageDescription( dbei, str, cbStr );
}