def METHOD_NAME(folio, creator, replay):
    """ GUI API - Setup an archive recording session
    File* file = pmRecordSetup("folio", "creator", 0)
    """
    if not isinstance(folio, bytes):
        folio = folio.encode('utf-8')
    if not isinstance(creator, bytes):
        creator = creator.encode('utf-8')
    file_result = LIBPCP_GUI.METHOD_NAME(c_char_p(folio),
                                           c_char_p(creator), replay)
    if file_result == 0:
        raise pmErr(file_result)
    return file_result