On 9/25/2013 16:03, Aric Stewart wrote: > defaultContext = ImmCreateContext(); > + if (defaultContext) > + ((InputContextData*)defaultContext)->threadDefault = TRUE; I think a nicer way is to let ImmCreateContext() set this attribute.