Infosys在阅读器中打开 / AI 翻译

TcEventLogger · 0 次阅读

GetClassPrio

This method returns the Class and Priority. This is used for alerts that are triggered by the PLC method ADSLOGEVENT, by setting the flag to TRUE, or by callig a function like ITcEventLogC::ReportEvent,ITcEventC3::ReportEventEx or  ITcEventLog::ReportEvent with the TcEventFlags set to TCEVENTFLAG_PRIOCLASS.

HRESULTGetClassPrio([in]long nEventId,
                    [in]long nSrcId,
                    [out] TcEventClass * pClass,
                    [out] long * pPriority)

 

pClass

[in] Pointer to a TcEventClass value, tht hold the EventClass

pPriority

[out, retval] Pointer to a long variable, that gets the Event Priority. The Priority is defined by TcEventPriority.

Return Values

S_OK

Function successful.

E_POINTER

pClass oder pPriority are no valid pointers.