GetConfigSize
Get the number of Sources, Events and DocLinks in a configuration file.
This does only work for opened files. To get the size of a configuration before exporting it, call IEvtConfiguration::GetConfigSize().
HRESULT GetConfigSize([out] long*
nSources, [out] long* nEvents, [out] long* nLinks);
Parameters
nSources
[out] Number of Sources in the configuration
nEvents
[out] Number of Events in the configuration
nLinks
[out] Number of DocLinks in the configuration
Return Values
S_OK
Success.
E_ACCESSDENIED
The parser is locked by an asynchronous operation.
E_FAIL
Error.
Remarks
Returned values may not be exact, as parsers may guess the size for performance reasons or rely on meta data previously added to the file.
For example the XML and Tps parsers will return 0, when opening a 'HandMade' file the first time. The method will only work for files, saved with the Parser.