Error handling and More dll arg types