Hello Rafi,
The more general issue here is, how to pass data to the DllMain procedure at all from the caller. I do not know of a way to do this. If you could find a way, you could pass the sequence context and access TestStand objects directly through the ActiveX API as you would in any code module. There is no other way. Hope this helps clear things up a bit. Thank you for contacting National Instruments and take care!
Regards,
Aaron B.
National Instruments