GetSourceName

The method GetSourceName returns a formatted Sourcename for the requested language. The TcEvent object methode ITcEvent::SourceName calls this mehod.

HRESULTGetSourceName( [in]long nSrcId,
                       [in]langId,
                       [out,retval] BSTR* szName)

Parameter

nSrcId

[in] Variable with the Source Id

langId

[in] The language id of the needed language. The needed language should be marked with *LCIDs. The following table gives a list of some language ids.

LCID

Description

1031

German

1033

US English

1034

Spanish

1036

French

szName

[out, retval] 

Pointer to a BSTR string that returns the Sourcename

 

Return Values

S_OK

Function successful.

E_POINTER

szName was an invalid pointer.

Notes

Most standard Formatters, like the XML based Formatter (TcEventFormatter.TcXmlFormatter) try to return a string in the default language when the requested language cannot be found in the configuration of the formatter.
*LCID: more information in the MSDN Library.