James Tabor пишет:
Remember this is a multi-threaded thingy too. If we
unload a keyboard, it will
need to sweep all the threads under that winstation. I think the current thread
holds the winstation. So,, it would be easy to sweep for a specific group of
threads.
In windows, when one thread unloads layout used by other threads, it is
not removed from system and can be still used.
It only gets marked as unloaded and dissapears from
GetKeyboardLayoutList. That's why I added RefCount to KBL.