GetWindowID function retrieves the control Id of the specified window.
$ctrl_id = GetWindowID( $hwnd );
Handle to a window for which control ID is to be retrieved.
Control id of a window