Citrix ICA Vuser Functions (CTRX) > Alphabetical List of Functions > ctrx_set_exception

ctrx_set_exception

Example: ctrx_set_exception General Functions

Specifies exception handling.

Deprecated. Use ctrx_execute_on_window.

void ctrx_set_exception( char *window_name, long handler );
window_name A name of the window that initiates the handler.
handler The function to invoke when the window is displayed.

ctrx_set_exception specifies the function to call when a window appears. When a window, typically a popup dialog box, with name window_name appears, the handler function is invoked.

The asterisk wildcard character (*) can be used in window_name.

Put the actions you wish to perform in the handler function, which must have the following prototype:

int handler( char *title);

The name of the window is passed to the handler as title argument.

Return Values

This function has no return value.

Parameterization

No parameterization is available for this function.