CitrixWaitForWindowCreation, used for screen synchronization, is the most important Citrix function.
The first parameter that synchronizations consider is window caption. If during replay a window caption is returned that matches the caption of the window that was recorded during replay, then the verification succeeds.
The second parameter considered is the match parameter. Normally this is an exact, case-sensitive comparison of window caption strings.
The third parameter is the style of the window. If a window caption name is not available, then a portion of the style name is used to identify the window. Styles reflect whether or not windows were maximized during recording.
The fourth parameter considered is the position of the window. This may be a negative number, as maximized windows have a position of -4, -4. This parameter can be controlled via the Force window position profile setting. When this profile setting is enabled, windows are automatically moved to the exact positions they held during recording.
The fifth parameter is window size. During replay windows must be resized to the same size they had during recording.