Storing ToC data into a variable

Use msiTocEntry to store the ToC data into a variable.

  • If the thread has a ToC entry, then msiTocEntry stores the data into the variable and returns "1".
  • If the thread does not have a ToC entry, then msiTocEntry returns 0 and leaves the variable unmodified.

For example:

Input: msiTocEntry conn_0 var
Output: 1

Input: echo $var
Output: {INDEX 1} {ALIVE 0} {CREATED 1} {NAME conn_0}