CONTEXT (defined in winnt.h) which describes the state of the CPU (mostly registers and flags). It is accessed with the GetThreadContext()` function LOCALE_SYSTEM_DEFAULT, whose value ix 0x0800 ). SetThreadLocale. System.Globalization.RegionInfo::CurrentRegion. BaseThreadInitThunk whose prototype appears to be void __fastcall BaseThreadInitThunk( ULONG Unknown, PVOID StartAddress, PVOID ThreadParameter );
Interlocked… WinAPI functions provide a simple mechanism to synchronzie access to data that is shared by multiple threads.