Removed direct access to the WND struct.