Get the underlying C struct for a Windows thread context