I just committed a first fix for bug 42021 and 40149. PInvoke should now deal correctly with A/W versions of functions. There is still a remaining Bug in mcs/reflection, but it work when you compile with csc. - Dietmar