IN_PAGE lPageID;
IN_LAYER lLayerID = 0;
SHORT layerCount;
/* Get the layer ID for the first layer on page 65545 of the currently opened document */
if ( ( nError = IN_GetLayerIDs( 65545, 1, &layerCount, &lLayerID ) ) != IN_SUCCESS )
{
ErrorHandler( nError, "Error message:" );
}