Added parameters to window registration events