Use win API for temp files