Was this problem solved? I'm in the same situation, but it appears that the function requires an input queue (the handle/id for which is the same as the thread which is hosting a window). I've resorted to creating a hidden window, is there any way to simulate this call via documented/undocumented API?