nca_get_top_window

Window Object Functions

Gets the logical name of the top window.

int nca_get_top_window( char *winName );
winName A pointer to a string buffer to store the name.

The nca_get_top_window assigns the name of the top window to the user-allocated buffer pointed to by winName.

Return Values

Oracle NCA Error Codes

Parameterization

Parameterization is not available for this function.

Example

This example show the use of nca_get_top_window to get the name of the window to close it.

char topwin[1024];
nca_get_top_window(topwin);
if (strcmp(topwin, "Note")
    nca_win_close(topwin);