called cfinvoke on setemil