On 11/19/2026 7:45 AM, Bonita Montero wrote:
> Am 18.11.2026 um 21:59 schrieb Chris M. Thomasson:
>
>> Yeah. Also, in a dll: TlsAlloc and friends are the way to go.
>> Iirc, in DLLMain, set everything up.
>
> You can write your own DllMain without honouring TlsAlloc.
> The kernel does everything for you and places the right
> TLS-index in the thread-information block.
>
Its been a while since I created a lot of DLL's in Windows, but:
https://learn.microsoft.com/en-us/windows/win32/dlls/using-thread-local-storage-in-a-dynamic-link-library