Alexandre Julliard : widl: Add a more generic way of determining the type of handle for a function.