def LoadCHM(self, archiveName):
if self.filename is not None:<EOL><INDENT>self.CloseCHM()<EOL><DEDENT>self.file = chmlib.chm_open(archiveName)<EOL>if self.file is None:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>self.filename = archiveName<EOL>self.GetArchiveInfo()<EOL>return <NUM_LIT:1><EOL>
Loads a CHM archive.
        This function will also call GetArchiveInfo to obtain information
        such as the index file name and the topics file. It returns 1 on
        success, and 0 if it fails.