# define MAX_DOCS 9
SHORT nPageCount;
IN_PAGE lPageIDs[MAX_DOCS];
/* Get the IDs of the pages in the active document window */
if ( ( nError = IN_GetPageIDs( 0, MAX_DOCS, &nPageCount, lPageIDs ) ) != IN_SUCCESS )
{
ErrorHandler( nError, "Error message:" );
}