The limitation that prevents the use of __declspec(thread) in code that is dynamically loaded using LoadLibrary, no longer applies when running under Vista or Windows Server 2008. On these two platforms (either 32-bit or 64-bit) __declspec(thread) works correctly in code loaded at runtime, explicitly using LoadLibrary.