What exceptions can occur when using PInvoke or are all errors handled by the method return values and it is up to the developer to check and raise exceptions if ne
pinvoke also throws a MissingMethodException on mobile devices, when the process is out of memory: http://www.tomergabel.com/NETCompactFrameworkPInvokeAndMissingMethodException.aspx