Le site pinvoke.net dit que le bon prototype est :
<DllImport("psapi.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _
Public Shared Function EnumProcesses( _
<MarshalAs(UnmanagedType.LPArray, ArraySubType=UnmanagedType.U4),[In],[Out]> _
ByVal processIds As Integer(), _
ByVal size As Integer, _
<[Out]()> ByRef needed As Integer) As Boolean
End Function
http://pinvoke.net/default.aspx/psapi/EnumProcesses.html
Mais en mon avis, c’est plus faciale à utiliser Process.GetProcesses() :
http://msdn2.microsoft.com/fr-fr/library/1f3ys1f9(VS.80).aspx