The window handle that is passed to this function can be the handle of a window with the same, or different, message queue as the caller, thereby allowing the caller to obtain data from windows belonging to other threads.
The specified index is valid only if all of the bytes referenced are within the reserved memory.