beckhoff — 9.3.8.1 GetMsgString

API 9.3.8.1 GetMsgString ITcEvent [ } 157] The method GetMsgString returns the formatted message string for the requested language. Internally it calls the method ITcLogFormatter::GetCompleteString of the formatter that was assigned when the event was issued from a COM client or through an ADS call to the TcEventLog [ } 128] object of the TcEventLogger. HRESULT LoggedEvents([in] long langId, [out,retval] BSTR* msg); Parameters langId [in] The language Id of the requested language. The requested language should be tagged by *LCIDs. The next table shows a sample for some language ids.

In the configuration of the event formatter the languages are tagged by the same language id msg [out, retval] Pointer to an BSTR string that returns the formatted string for the requested language. Return Values S_OK Function was successfully called E_POINTER msg was no valid pointer. TcEventLogger 158 Version: 1.1 ITcEvent Methods and Properties Description State [} 169] returns the event state.

MustConfirm [} 169] returns if the alarm must be confirmed DateConfirmed [} 170] returns the date and time of the confirmation MsConfirmed [} 171] returns the millisecond part of confirmation time DateReset [} 172] returns the date and time when the event was reset MsReset [} 172] returns the millisecond part of reset time UserData [} 173] returns the user data EnumDocLinks [} 174] returns an enumeration object that can be used to enumerated through the list of document links. TcId not implemented Signal [} 174] signals the alarm LCID Description 1031 German 1033 US English 1034 Spanish - Spain 1036 French