update an interface for hooks

add dictionary argument to get various window information