You can use jedwing CHMLib to list topics in a CHM file. For instance:
static int CallBack( struct chmFile *h, struct chmUnitInfo *pUI, void *context ) { printf( "%s\n", pUI->path ); return CHM_ENUMERATOR_CONTINUE; } int main() { chmFile *pFile = chm_open( "<Path to your CHM file>" ); if ( pFile ) { chm_enumerate( pFile, CHM_ENUMERATE_NORMAL, CallBack, 0 ); chm_close( pFile ); } return 0; }
After listing the topics, you can check the candidate URL against your listing.
source share