Jaren Parsons of the Microsoft Visual Basic Team created PInvoke Interop Assistant. In a blog announcing the tool he says: “The motivation behind this tool is writing PInvoke is a hard and often tedious task. There are many rules you must obey and many exceptions that must be taken into account.”
Read about the tool and get a link to download it at: Making PInvoke Easy