
On Sun, 01 Aug 2004 22:31:22 +0200 Bronek Kozicki <brok@rubikon.pl> wrote:
However, you may define this symbol ("extern "C" const DWORD _tls_used[6]; const DWORD _tls_used[6] = ...") yourself in executable (but not in .tls section) and if you build this symbol right way (as demonstrated by Holger and specified in section 6.7.1 of PE/COFF specification) your callback procedure will be recognized by operating system and called at the right time. I think that it does not conform to PE/COFF specification (section 6.7 explicitly specify section name .tls) but it works, even on MSVC6 (but not under MinGW, hmmm ...).
Just tried this at home. My MSVC 6.0 compiler does not do the trick. :-( Might it be, that running on W2K is the problem? Roland