http://bugs.winehq.org/show_bug.cgi?id=5231
------- Additional Comments From dank@kegel.com 2006-14-05 12:29 ------- "Moving USER handles to server" is in Dimi Paun's TODO list (http://wiki.winehq.org/DimiPaun) so he probably has an idea how to proceed.
It looks like the place to study is: http://source.winehq.org/source/server/user.c http://source.winehq.org/source/server/user.h Mostly that just deals with windows at the moment.