Testing the presence of a thread’s TOC

You can use msiTocEntry to test for the presence of a thread's ToC entry by specifying {}, an empty string, as the variable name.

For example:

Input: msiTocEntry conn_0 {}
Output: 1

Input: msiTocEntry some_thread_name {}
Output: 0