This question in stackoverflow asks how [ThreadStatic] is implemented: How does the ThreadStatic attribute work?
Some suggested that it should be viewed as an extension of the Thread object. I'm not sure if that means it is based on win32 TLS.
My question is can I somehow gain access to a value of a [ThreadStatic] from current thread in .NET profiler code? That is, in native code.
For example, if I could find using the win32 thread id the region in memory where all of the thread static fields are, and find specific fields I need to retrieve.
Thx