SHORT nPageCount;
/* Get the number of pages in document window 2 */
if ( ( nError = IN_GetNumberPages( 2, &nPageCount ) ) != IN_SUCCESS )
{
ErrorHandler( nError, "Error message:" );
}