* window handle
USER32: FindWindow, FindWindowEx, GetWindow, GetActiveWindow, GetForegroundWindow, etc, depending on what your situation is.
* window x and y positions
* window width and height
* window width and height
USER32: GetWindowInfo
Return scancodes (not ASCII) for key events whether the B+ application is in 'focus' or not
See this thread (among others): win32api and getting hotkeys problem? ideas? soja, james, tracer?